├── .gitignore ├── .mergify.yml ├── bsconfig.json ├── README.md ├── package.json ├── LICENSE ├── yarn.lock └── src └── Antd.re /.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | node_modules 3 | .merlin 4 | npm-debug.log 5 | bundledOutputs/ 6 | lib/ 7 | .DS_Store -------------------------------------------------------------------------------- /.mergify.yml: -------------------------------------------------------------------------------- 1 | rules: 2 | default: 3 | protection: 4 | required_pull_request_reviews: 5 | required_approving_review_count: 1 6 | required_status_checks: 7 | contexts: [] 8 | -------------------------------------------------------------------------------- /bsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bs-antd", 3 | "reason": { 4 | "react-jsx": 2 5 | }, 6 | "bs-dependencies": ["reason-react"], 7 | "bsc-flags": ["-bs-super-errors"], 8 | "sources": [ 9 | { 10 | "dir": "src" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bs-antd 2 | 3 | [BuckleScript](https://github.com/bucklescript/bucklescript) bindings for [Ant Design](https://ant.design/index-cn). 4 | 5 | ## Generated by [edn-reason-react](https://github.com/tiensonqin/edn-reason-react) 6 | 7 | ## Converted by [Reason Tools](https://chrome.google.com/webstore/detail/reason-tools/kmdelnjbembbiodplmhgfjpecibfhadd) 8 | 9 | Btw, if anyone wants to be the new maintainer, just tell me. 10 | tiensonqin@gmail.com 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bs-antd", 3 | "version": "0.0.2", 4 | "description": "BuckleScript bindings for ant design.", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "bsb -make-world -clean-world", 8 | "watch": "bsb -make-world -clean-world -w" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/tiensonqin/bs-antd.git" 13 | }, 14 | "keywords": [ 15 | "antd", 16 | "BuckleScript", 17 | "Reason" 18 | ], 19 | "author": "Tienson Qin (tiensonqin@gmail.com)", 20 | "license": "MIT", 21 | "bugs": { 22 | "url": "https://github.com/tiensonqin/bs-antd/issues" 23 | }, 24 | "homepage": "https://github.com/tiensonqin/bs-antd#readme", 25 | "devDependencies": { 26 | "bs-platform": "^1.9.3" 27 | }, 28 | "dependencies": { 29 | "reason-react": "^0.2.4" 30 | }, 31 | "directories": { 32 | "lib": "lib" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Tienson Qin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | asap@~2.0.3: 6 | version "2.0.6" 7 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" 8 | 9 | bs-platform@^1.9.3: 10 | version "1.10.3" 11 | resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-1.10.3.tgz#da5aaba2e0507f5f85a5f662818b7f8734156f84" 12 | 13 | core-js@^1.0.0: 14 | version "1.2.7" 15 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 16 | 17 | encoding@^0.1.11: 18 | version "0.1.12" 19 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 20 | dependencies: 21 | iconv-lite "~0.4.13" 22 | 23 | fbjs@^0.8.16: 24 | version "0.8.16" 25 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" 26 | dependencies: 27 | core-js "^1.0.0" 28 | isomorphic-fetch "^2.1.1" 29 | loose-envify "^1.0.0" 30 | object-assign "^4.1.0" 31 | promise "^7.1.1" 32 | setimmediate "^1.0.5" 33 | ua-parser-js "^0.7.9" 34 | 35 | iconv-lite@~0.4.13: 36 | version "0.4.19" 37 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 38 | 39 | is-stream@^1.0.1: 40 | version "1.1.0" 41 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 42 | 43 | isomorphic-fetch@^2.1.1: 44 | version "2.2.1" 45 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 46 | dependencies: 47 | node-fetch "^1.0.1" 48 | whatwg-fetch ">=0.10.0" 49 | 50 | js-tokens@^3.0.0: 51 | version "3.0.2" 52 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 53 | 54 | loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: 55 | version "1.3.1" 56 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 57 | dependencies: 58 | js-tokens "^3.0.0" 59 | 60 | node-fetch@^1.0.1: 61 | version "1.7.3" 62 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" 63 | dependencies: 64 | encoding "^0.1.11" 65 | is-stream "^1.0.1" 66 | 67 | object-assign@^4.1.0, object-assign@^4.1.1: 68 | version "4.1.1" 69 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 70 | 71 | promise@^7.1.1: 72 | version "7.3.1" 73 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" 74 | dependencies: 75 | asap "~2.0.3" 76 | 77 | prop-types@^15.6.0: 78 | version "15.6.0" 79 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856" 80 | dependencies: 81 | fbjs "^0.8.16" 82 | loose-envify "^1.3.1" 83 | object-assign "^4.1.1" 84 | 85 | react-dom@>=15.0.0: 86 | version "16.0.0" 87 | resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.0.0.tgz#9cc3079c3dcd70d4c6e01b84aab2a7e34c303f58" 88 | dependencies: 89 | fbjs "^0.8.16" 90 | loose-envify "^1.1.0" 91 | object-assign "^4.1.1" 92 | prop-types "^15.6.0" 93 | 94 | react@>=15.0.0: 95 | version "16.0.0" 96 | resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d" 97 | dependencies: 98 | fbjs "^0.8.16" 99 | loose-envify "^1.1.0" 100 | object-assign "^4.1.1" 101 | prop-types "^15.6.0" 102 | 103 | reason-react@^0.2.4: 104 | version "0.2.4" 105 | resolved "https://registry.yarnpkg.com/reason-react/-/reason-react-0.2.4.tgz#96d85a533fc93e695818dbb3e6a8ae05fbf0de7d" 106 | dependencies: 107 | react ">=15.0.0" 108 | react-dom ">=15.0.0" 109 | 110 | setimmediate@^1.0.5: 111 | version "1.0.5" 112 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 113 | 114 | ua-parser-js@^0.7.9: 115 | version "0.7.17" 116 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" 117 | 118 | whatwg-fetch@>=0.10.0: 119 | version "2.0.3" 120 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 121 | -------------------------------------------------------------------------------- /src/Antd.re: -------------------------------------------------------------------------------- 1 | let optBoolToOptJsBoolean = 2 | fun 3 | | None => None 4 | | Some((v)) => Some(v); 5 | 6 | let unwrapBool = (v) => Js.Undefined.from_opt @@ optBoolToOptJsBoolean(v); 7 | 8 | module Popconfirm = { 9 | [@bs.module] external popconfirm : ReasonReact.reactClass = "antd/lib/popconfirm"; 10 | let make = 11 | ( 12 | ~onCancel=?, 13 | ~className=?, 14 | ~title=?, 15 | ~cancelText=?, 16 | ~style=?, 17 | ~id=?, 18 | ~onConfirm=?, 19 | ~okText=?, 20 | ~okType=? 21 | ) => 22 | ReasonReact.wrapJsForReason( 23 | ~reactClass=popconfirm, 24 | ~props= 25 | Js.Undefined.( 26 | { 27 | "onCancel": from_opt(onCancel), 28 | "className": from_opt(className), 29 | "title": from_opt(title), 30 | "cancelText": from_opt(cancelText), 31 | "style": from_opt(style), 32 | "id": from_opt(id), 33 | "onConfirm": from_opt(onConfirm), 34 | "okText": from_opt(okText), 35 | "okType": from_opt(okType) 36 | } 37 | ) 38 | ); 39 | }; 40 | 41 | module LocaleProvider = { 42 | [@bs.module] external localeProvider : ReasonReact.reactClass = "antd/lib/locale-provider"; 43 | let make = (~id=?, ~className=?, ~style=?, ~locale=?) => 44 | ReasonReact.wrapJsForReason( 45 | ~reactClass=localeProvider, 46 | ~props= 47 | Js.Undefined.( 48 | { 49 | "id": from_opt(id), 50 | "className": from_opt(className), 51 | "style": from_opt(style), 52 | "locale": from_opt(locale) 53 | } 54 | ) 55 | ); 56 | }; 57 | 58 | module Tree = { 59 | [@bs.module] external tree : ReasonReact.reactClass = "antd/lib/tree"; 60 | let make = 61 | ( 62 | ~defaultCheckedKeys=?, 63 | ~multiple=?, 64 | ~defaultExpandAll=?, 65 | ~selectedKeys=?, 66 | ~filterTreeNode=?, 67 | ~defaultExpandedKeys=?, 68 | ~onCheck=?, 69 | ~expandedKeys=?, 70 | ~onSelect=?, 71 | ~loadData=?, 72 | ~showLine=?, 73 | ~onDragEnter=?, 74 | ~autoExpandParent=?, 75 | ~onRightClick=?, 76 | ~checkedKeys=?, 77 | ~showIcon=?, 78 | ~className=?, 79 | ~style=?, 80 | ~checkable=?, 81 | ~onDragOver=?, 82 | ~onDragLeave=?, 83 | ~onExpand=?, 84 | ~id=?, 85 | ~checkStrictly=?, 86 | ~onDragEnd=?, 87 | ~draggable=?, 88 | ~onDragStart=?, 89 | ~onDrop=?, 90 | ~defaultSelectedKeys=? 91 | ) => 92 | ReasonReact.wrapJsForReason( 93 | ~reactClass=tree, 94 | ~props= 95 | Js.Undefined.( 96 | { 97 | "defaultCheckedKeys": from_opt(defaultCheckedKeys), 98 | "multiple": unwrapBool(multiple), 99 | "defaultExpandAll": unwrapBool(defaultExpandAll), 100 | "selectedKeys": from_opt(selectedKeys), 101 | "filterTreeNode": from_opt(filterTreeNode), 102 | "defaultExpandedKeys": from_opt(defaultExpandedKeys), 103 | "onCheck": from_opt(onCheck), 104 | "expandedKeys": from_opt(expandedKeys), 105 | "onSelect": from_opt(onSelect), 106 | "loadData": from_opt(loadData), 107 | "showLine": unwrapBool(showLine), 108 | "onDragEnter": from_opt(onDragEnter), 109 | "autoExpandParent": unwrapBool(autoExpandParent), 110 | "onRightClick": from_opt(onRightClick), 111 | "checkedKeys": from_opt(checkedKeys), 112 | "showIcon": unwrapBool(showIcon), 113 | "className": from_opt(className), 114 | "style": from_opt(style), 115 | "checkable": unwrapBool(checkable), 116 | "onDragOver": from_opt(onDragOver), 117 | "onDragLeave": from_opt(onDragLeave), 118 | "onExpand": from_opt(onExpand), 119 | "id": from_opt(id), 120 | "checkStrictly": from_opt(checkStrictly), 121 | "onDragEnd": from_opt(onDragEnd), 122 | "draggable": unwrapBool(draggable), 123 | "onDragStart": from_opt(onDragStart), 124 | "onDrop": from_opt(onDrop), 125 | "defaultSelectedKeys": from_opt(defaultSelectedKeys) 126 | } 127 | ) 128 | ); 129 | module TreeNode = { 130 | [@bs.module "antd/lib/tree"] external treeNode : ReasonReact.reactClass = "TreeNode"; 131 | let make = 132 | ( 133 | ~disabled=?, 134 | ~disableCheckbox=?, 135 | ~title=?, 136 | ~key=?, 137 | ~isLeaf=?, 138 | ~id=?, 139 | ~className=?, 140 | ~style=? 141 | ) => 142 | ReasonReact.wrapJsForReason( 143 | ~reactClass=treeNode, 144 | ~props= 145 | Js.Undefined.( 146 | { 147 | "disabled": unwrapBool(disabled), 148 | "disableCheckbox": unwrapBool(disableCheckbox), 149 | "title": from_opt(title), 150 | "key": from_opt(key), 151 | "isLeaf": unwrapBool(isLeaf), 152 | "id": from_opt(id), 153 | "className": from_opt(className), 154 | "style": from_opt(style) 155 | } 156 | ) 157 | ); 158 | }; 159 | }; 160 | 161 | module Table = { 162 | [@bs.module] external table : ReasonReact.reactClass = "antd/lib/table"; 163 | let make = 164 | ( 165 | ~onRowMouseLeave=?, 166 | ~defaultExpandedRowKeys=?, 167 | ~onRowDoubleClick=?, 168 | ~onExpandedRowsChange=?, 169 | ~rowKey=?, 170 | ~locale=?, 171 | ~showHeader=?, 172 | ~columns=?, 173 | ~defaultExpandAllRows=?, 174 | ~bordered=?, 175 | ~indentSize=?, 176 | ~footer=?, 177 | ~expandedRowRender=?, 178 | ~className=?, 179 | ~size=?, 180 | ~title=?, 181 | ~style=?, 182 | ~rowClassName=?, 183 | ~expandedRowKeys=?, 184 | ~scroll=?, 185 | ~onExpand=?, 186 | ~dataSource=?, 187 | ~pagination=?, 188 | ~id=?, 189 | ~onRowMouseEnter=?, 190 | ~rowSelection=?, 191 | ~onRowClick=?, 192 | ~onChange=?, 193 | ~loading=? 194 | ) => 195 | ReasonReact.wrapJsForReason( 196 | ~reactClass=table, 197 | ~props= 198 | Js.Undefined.( 199 | { 200 | "onRowMouseLeave": from_opt(onRowMouseLeave), 201 | "defaultExpandedRowKeys": from_opt(defaultExpandedRowKeys), 202 | "onRowDoubleClick": from_opt(onRowDoubleClick), 203 | "onExpandedRowsChange": from_opt(onExpandedRowsChange), 204 | "rowKey": from_opt(rowKey), 205 | "locale": from_opt(locale), 206 | "showHeader": unwrapBool(showHeader), 207 | "columns": from_opt(columns), 208 | "defaultExpandAllRows": unwrapBool(defaultExpandAllRows), 209 | "bordered": unwrapBool(bordered), 210 | "indentSize": from_opt(indentSize), 211 | "footer": from_opt(footer), 212 | "expandedRowRender": from_opt(expandedRowRender), 213 | "className": from_opt(className), 214 | "size": from_opt(size), 215 | "title": from_opt(title), 216 | "style": from_opt(style), 217 | "rowClassName": from_opt(rowClassName), 218 | "expandedRowKeys": from_opt(expandedRowKeys), 219 | "scroll": from_opt(scroll), 220 | "onExpand": from_opt(onExpand), 221 | "dataSource": from_opt(dataSource), 222 | "pagination": from_opt(pagination), 223 | "id": from_opt(id), 224 | "onRowMouseEnter": from_opt(onRowMouseEnter), 225 | "rowSelection": from_opt(rowSelection), 226 | "onRowClick": from_opt(onRowClick), 227 | "onChange": from_opt(onChange), 228 | "loading": unwrapBool(loading) 229 | } 230 | ) 231 | ); 232 | module Column = { 233 | [@bs.module "antd/lib/table"] external column : ReasonReact.reactClass = "Column"; 234 | let make = 235 | ( 236 | ~filterMultiple=?, 237 | ~filtered=?, 238 | ~filterDropdown=?, 239 | ~filterIcon=?, 240 | ~key=?, 241 | ~filters=?, 242 | ~width=?, 243 | ~filterDropdownVisible=?, 244 | ~className=?, 245 | ~title=?, 246 | ~style=?, 247 | ~render=?, 248 | ~colSpan=?, 249 | ~sorter=?, 250 | ~id=?, 251 | ~sortOrder=?, 252 | ~onFilter=?, 253 | ~filteredValue=?, 254 | ~onCellClick=?, 255 | ~fixed=?, 256 | ~dataIndex=?, 257 | ~onFilterDropdownVisibleChange=? 258 | ) => 259 | ReasonReact.wrapJsForReason( 260 | ~reactClass=column, 261 | ~props= 262 | Js.Undefined.( 263 | { 264 | "filterMultiple": unwrapBool(filterMultiple), 265 | "filtered": unwrapBool(filtered), 266 | "filterDropdown": from_opt(filterDropdown), 267 | "filterIcon": from_opt(filterIcon), 268 | "key": from_opt(key), 269 | "filters": from_opt(filters), 270 | "width": from_opt(width), 271 | "filterDropdownVisible": unwrapBool(filterDropdownVisible), 272 | "className": from_opt(className), 273 | "title": from_opt(title), 274 | "style": from_opt(style), 275 | "render": from_opt(render), 276 | "colSpan": from_opt(colSpan), 277 | "sorter": from_opt(sorter), 278 | "id": from_opt(id), 279 | "sortOrder": from_opt(sortOrder), 280 | "onFilter": from_opt(onFilter), 281 | "filteredValue": from_opt(filteredValue), 282 | "onCellClick": from_opt(onCellClick), 283 | "fixed": from_opt(fixed), 284 | "dataIndex": from_opt(dataIndex), 285 | "onFilterDropdownVisibleChange": from_opt(onFilterDropdownVisibleChange) 286 | } 287 | ) 288 | ); 289 | }; 290 | module ColumnGroup = { 291 | [@bs.module "antd/lib/table"] external columnGroup : ReasonReact.reactClass = "ColumnGroup"; 292 | let make = (~id=?, ~className=?, ~style=?, ~title=?) => 293 | ReasonReact.wrapJsForReason( 294 | ~reactClass=columnGroup, 295 | ~props= 296 | Js.Undefined.( 297 | { 298 | "id": from_opt(id), 299 | "className": from_opt(className), 300 | "style": from_opt(style), 301 | "title": from_opt(title) 302 | } 303 | ) 304 | ); 305 | }; 306 | }; 307 | 308 | module Affix = { 309 | [@bs.module] external affix : ReasonReact.reactClass = "antd/lib/affix"; 310 | let make = 311 | ( 312 | ~offsetTop=?, 313 | ~offset=?, 314 | ~offsetBottom=?, 315 | ~target=?, 316 | ~onChange=?, 317 | ~id=?, 318 | ~className=?, 319 | ~style=? 320 | ) => 321 | ReasonReact.wrapJsForReason( 322 | ~reactClass=affix, 323 | ~props= 324 | Js.Undefined.( 325 | { 326 | "offsetTop": from_opt(offsetTop), 327 | "offset": from_opt(offset), 328 | "offsetBottom": from_opt(offsetBottom), 329 | "target": from_opt(target), 330 | "onChange": from_opt(onChange), 331 | "id": from_opt(id), 332 | "className": from_opt(className), 333 | "style": from_opt(style) 334 | } 335 | ) 336 | ); 337 | }; 338 | 339 | module Tabs = { 340 | [@bs.module] external tabs : ReasonReact.reactClass = "antd/lib/tabs"; 341 | let make = 342 | ( 343 | ~onEdit=?, 344 | ~tabBarExtraContent=?, 345 | ~hideAdd=?, 346 | ~tabPosition=?, 347 | ~type_=?, 348 | ~activeKey=?, 349 | ~onNextClick=?, 350 | ~onPrevClick=?, 351 | ~className=?, 352 | ~size=?, 353 | ~style=?, 354 | ~id=?, 355 | ~tabBarStyle=?, 356 | ~defaultActiveKey=?, 357 | ~onChange=?, 358 | ~onTabClick=?, 359 | ~animated=? 360 | ) => 361 | ReasonReact.wrapJsForReason( 362 | ~reactClass=tabs, 363 | ~props= 364 | Js.Undefined.( 365 | { 366 | "onEdit": from_opt(onEdit), 367 | "tabBarExtraContent": from_opt(tabBarExtraContent), 368 | "hideAdd": unwrapBool(hideAdd), 369 | "tabPosition": from_opt(tabPosition), 370 | "type": from_opt(type_), 371 | "activeKey": from_opt(activeKey), 372 | "onNextClick": from_opt(onNextClick), 373 | "onPrevClick": from_opt(onPrevClick), 374 | "className": from_opt(className), 375 | "size": from_opt(size), 376 | "style": from_opt(style), 377 | "id": from_opt(id), 378 | "tabBarStyle": from_opt(tabBarStyle), 379 | "defaultActiveKey": from_opt(defaultActiveKey), 380 | "onChange": from_opt(onChange), 381 | "onTabClick": from_opt(onTabClick), 382 | "animated": unwrapBool(animated) 383 | } 384 | ) 385 | ); 386 | module TabPane = { 387 | [@bs.module "antd/lib/tabs"] external tabPane : ReasonReact.reactClass = "TabPane"; 388 | let make = (~key=?, ~tab=?, ~forceRender=?, ~id=?, ~className=?, ~style=?) => 389 | ReasonReact.wrapJsForReason( 390 | ~reactClass=tabPane, 391 | ~props= 392 | Js.Undefined.( 393 | { 394 | "key": from_opt(key), 395 | "tab": from_opt(tab), 396 | "forceRender": unwrapBool(forceRender), 397 | "id": from_opt(id), 398 | "className": from_opt(className), 399 | "style": from_opt(style) 400 | } 401 | ) 402 | ); 403 | }; 404 | }; 405 | 406 | module Radio = { 407 | [@bs.module] external radio : ReasonReact.reactClass = "antd/lib/radio"; 408 | let make = (~checked=?, ~defaultChecked=?, ~value=?, ~disabled=?, ~id=?, ~className=?, ~style=?) => 409 | ReasonReact.wrapJsForReason( 410 | ~reactClass=radio, 411 | ~props= 412 | Js.Undefined.( 413 | { 414 | "checked": unwrapBool(checked), 415 | "defaultChecked": unwrapBool(defaultChecked), 416 | "value": from_opt(value), 417 | "disabled": unwrapBool(disabled), 418 | "id": from_opt(id), 419 | "className": from_opt(className), 420 | "style": from_opt(style) 421 | } 422 | ) 423 | ); 424 | module Group = { 425 | [@bs.module "antd/lib/radio"] external group : ReasonReact.reactClass = "Group"; 426 | let make = 427 | ( 428 | ~disabled=?, 429 | ~name=?, 430 | ~value=?, 431 | ~className=?, 432 | ~size=?, 433 | ~style=?, 434 | ~id=?, 435 | ~options=?, 436 | ~defaultValue=?, 437 | ~onChange=? 438 | ) => 439 | ReasonReact.wrapJsForReason( 440 | ~reactClass=group, 441 | ~props= 442 | Js.Undefined.( 443 | { 444 | "disabled": unwrapBool(disabled), 445 | "name": from_opt(name), 446 | "value": from_opt(value), 447 | "className": from_opt(className), 448 | "size": from_opt(size), 449 | "style": from_opt(style), 450 | "id": from_opt(id), 451 | "options": from_opt(options), 452 | "defaultValue": from_opt(defaultValue), 453 | "onChange": from_opt(onChange) 454 | } 455 | ) 456 | ); 457 | }; 458 | module Button = { 459 | [@bs.module "antd/lib/radio"] external button : ReasonReact.reactClass = "Button"; 460 | let make = 461 | ( 462 | ~defaultChecked=?, 463 | ~disabled=?, 464 | ~name=?, 465 | ~value=?, 466 | ~onMouseEnter=?, 467 | ~className=?, 468 | ~style=?, 469 | ~checked=?, 470 | ~id=?, 471 | ~onMouseLeave=?, 472 | ~onChange=? 473 | ) => 474 | ReasonReact.wrapJsForReason( 475 | ~reactClass=button, 476 | ~props= 477 | Js.Undefined.( 478 | { 479 | "defaultChecked": unwrapBool(defaultChecked), 480 | "disabled": unwrapBool(disabled), 481 | "name": from_opt(name), 482 | "value": from_opt(value), 483 | "onMouseEnter": from_opt(onMouseEnter), 484 | "className": from_opt(className), 485 | "style": from_opt(style), 486 | "checked": unwrapBool(checked), 487 | "id": from_opt(id), 488 | "onMouseLeave": from_opt(onMouseLeave), 489 | "onChange": from_opt(onChange) 490 | } 491 | ) 492 | ); 493 | }; 494 | }; 495 | 496 | module Button = { 497 | [@bs.module] external button : ReasonReact.reactClass = "antd/lib/button"; 498 | let make = 499 | ( 500 | ~type_=?, 501 | ~icon=?, 502 | ~className=?, 503 | ~size=?, 504 | ~style=?, 505 | ~htmlType=?, 506 | ~loading=?, 507 | ~id=?, 508 | ~shape=?, 509 | ~ghost=?, 510 | ~onClick=? 511 | ) => 512 | ReasonReact.wrapJsForReason( 513 | ~reactClass=button, 514 | ~props= 515 | Js.Undefined.( 516 | { 517 | "type": from_opt(type_), 518 | "icon": from_opt(icon), 519 | "className": from_opt(className), 520 | "size": from_opt(size), 521 | "style": from_opt(style), 522 | "htmlType": from_opt(htmlType), 523 | "loading": from_opt(loading), 524 | "id": from_opt(id), 525 | "shape": from_opt(shape), 526 | "ghost": from_opt(ghost), 527 | "onClick": from_opt(onClick) 528 | } 529 | ) 530 | ); 531 | }; 532 | 533 | module Layout = { 534 | [@bs.module] external layout : ReasonReact.reactClass = "antd/lib/layout"; 535 | let make = (~id=?, ~className=?, ~style=?) => 536 | ReasonReact.wrapJsForReason( 537 | ~reactClass=layout, 538 | ~props= 539 | Js.Undefined.( 540 | {"id": from_opt(id), "className": from_opt(className), "style": from_opt(style)} 541 | ) 542 | ); 543 | module Header = { 544 | [@bs.module "antd/lib/layout"] external header : ReasonReact.reactClass = "Header"; 545 | let make = (~id=?, ~className=?, ~style=?) => 546 | ReasonReact.wrapJsForReason( 547 | ~reactClass=header, 548 | ~props= 549 | Js.Undefined.( 550 | {"id": from_opt(id), "className": from_opt(className), "style": from_opt(style)} 551 | ) 552 | ); 553 | }; 554 | module Footer = { 555 | [@bs.module "antd/lib/layout"] external footer : ReasonReact.reactClass = "Footer"; 556 | let make = (~id=?, ~className=?, ~style=?) => 557 | ReasonReact.wrapJsForReason( 558 | ~reactClass=footer, 559 | ~props= 560 | Js.Undefined.( 561 | {"id": from_opt(id), "className": from_opt(className), "style": from_opt(style)} 562 | ) 563 | ); 564 | }; 565 | module Content = { 566 | [@bs.module "antd/lib/layout"] external content : ReasonReact.reactClass = "Content"; 567 | let make = (~id=?, ~className=?, ~style=?) => 568 | ReasonReact.wrapJsForReason( 569 | ~reactClass=content, 570 | ~props= 571 | Js.Undefined.( 572 | {"id": from_opt(id), "className": from_opt(className), "style": from_opt(style)} 573 | ) 574 | ); 575 | }; 576 | module Sider = { 577 | [@bs.module "antd/lib/layout"] external sider : ReasonReact.reactClass = "Sider"; 578 | let make = 579 | ( 580 | ~collapsedWidth=?, 581 | ~collapsible=?, 582 | ~breakpoint=?, 583 | ~width=?, 584 | ~className=?, 585 | ~style=?, 586 | ~id=?, 587 | ~defaultCollapsed=?, 588 | ~reverseArrow=?, 589 | ~onCollapse=?, 590 | ~trigger=?, 591 | ~collapsed=? 592 | ) => 593 | ReasonReact.wrapJsForReason( 594 | ~reactClass=sider, 595 | ~props= 596 | Js.Undefined.( 597 | { 598 | "collapsedWidth": from_opt(collapsedWidth), 599 | "collapsible": unwrapBool(collapsible), 600 | "breakpoint": from_opt(breakpoint), 601 | "width": from_opt(width), 602 | "className": from_opt(className), 603 | "style": from_opt(style), 604 | "id": from_opt(id), 605 | "defaultCollapsed": unwrapBool(defaultCollapsed), 606 | "reverseArrow": unwrapBool(reverseArrow), 607 | "onCollapse": from_opt(onCollapse), 608 | "trigger": from_opt(trigger), 609 | "collapsed": unwrapBool(collapsed) 610 | } 611 | ) 612 | ); 613 | }; 614 | }; 615 | 616 | module Notification = { 617 | type stringOrNode; 618 | type options; 619 | type key = string; 620 | [@bs.module "antd/lib/notification"] external success : options => unit = ""; 621 | [@bs.module "antd/lib/notification"] external error : options => unit = ""; 622 | [@bs.module "antd/lib/notification"] external info : options => unit = ""; 623 | [@bs.module "antd/lib/notification"] external warning : options => unit = ""; 624 | [@bs.module "antd/lib/notification"] external warn : options => unit = ""; 625 | [@bs.module "antd/lib/notification"] external close : key => unit = ""; 626 | [@bs.module "antd/lib/notification"] external destroy : unit => unit = ""; 627 | [@bs.module "antd/lib/notification"] external config : options => unit = ""; 628 | }; 629 | 630 | module Checkbox = { 631 | [@bs.module] external checkbox : ReasonReact.reactClass = "antd/lib/checkbox"; 632 | let make = 633 | ( 634 | ~defaultChecked=?, 635 | ~disabled=?, 636 | ~name=?, 637 | ~value=?, 638 | ~onMouseEnter=?, 639 | ~className=?, 640 | ~style=?, 641 | ~checked=?, 642 | ~id=?, 643 | ~onMouseLeave=?, 644 | ~onChange=? 645 | ) => 646 | ReasonReact.wrapJsForReason( 647 | ~reactClass=checkbox, 648 | ~props= 649 | Js.Undefined.( 650 | { 651 | "defaultChecked": unwrapBool(defaultChecked), 652 | "disabled": unwrapBool(disabled), 653 | "name": from_opt(name), 654 | "value": from_opt(value), 655 | "onMouseEnter": from_opt(onMouseEnter), 656 | "className": from_opt(className), 657 | "style": from_opt(style), 658 | "checked": unwrapBool(checked), 659 | "id": from_opt(id), 660 | "onMouseLeave": from_opt(onMouseLeave), 661 | "onChange": from_opt(onChange) 662 | } 663 | ) 664 | ); 665 | module Group = { 666 | [@bs.module "antd/lib/checkbox"] external group : ReasonReact.reactClass = "Group"; 667 | let make = 668 | ( 669 | ~defaultValue=?, 670 | ~value=?, 671 | ~options=?, 672 | ~onChange=?, 673 | ~disabled=?, 674 | ~id=?, 675 | ~className=?, 676 | ~style=? 677 | ) => 678 | ReasonReact.wrapJsForReason( 679 | ~reactClass=group, 680 | ~props= 681 | Js.Undefined.( 682 | { 683 | "defaultValue": from_opt(defaultValue), 684 | "value": from_opt(value), 685 | "options": from_opt(options), 686 | "onChange": from_opt(onChange), 687 | "disabled": unwrapBool(disabled), 688 | "id": from_opt(id), 689 | "className": from_opt(className), 690 | "style": from_opt(style) 691 | } 692 | ) 693 | ); 694 | }; 695 | }; 696 | 697 | module Transfer = { 698 | [@bs.module] external transfer : ReasonReact.reactClass = "antd/lib/transfer"; 699 | let make = 700 | ( 701 | ~searchPlaceholder=?, 702 | ~titles=?, 703 | ~onSelectChange=?, 704 | ~showSearch=?, 705 | ~onSearchChange=?, 706 | ~footer=?, 707 | ~className=?, 708 | ~style=?, 709 | ~notFoundContent=?, 710 | ~render=?, 711 | ~lazy_=?, 712 | ~dataSource=?, 713 | ~id=?, 714 | ~operations=?, 715 | ~onScroll=?, 716 | ~listStyle=?, 717 | ~onChange=?, 718 | ~filterOption=?, 719 | ~targetKeys=? 720 | ) => 721 | ReasonReact.wrapJsForReason( 722 | ~reactClass=transfer, 723 | ~props= 724 | Js.Undefined.( 725 | { 726 | "searchPlaceholder": from_opt(searchPlaceholder), 727 | "titles": from_opt(titles), 728 | "onSelectChange": from_opt(onSelectChange), 729 | "showSearch": unwrapBool(showSearch), 730 | "onSearchChange": from_opt(onSearchChange), 731 | "footer": from_opt(footer), 732 | "className": from_opt(className), 733 | "style": from_opt(style), 734 | "notFoundContent": from_opt(notFoundContent), 735 | "render": from_opt(render), 736 | "lazy": from_opt(lazy_), 737 | "dataSource": from_opt(dataSource), 738 | "id": from_opt(id), 739 | "operations": from_opt(operations), 740 | "onScroll": from_opt(onScroll), 741 | "listStyle": from_opt(listStyle), 742 | "onChange": from_opt(onChange), 743 | "filterOption": unwrapBool(filterOption), 744 | "targetKeys": from_opt(targetKeys) 745 | } 746 | ) 747 | ); 748 | }; 749 | 750 | module Popover = { 751 | [@bs.module] external popover : ReasonReact.reactClass = "antd/lib/popover"; 752 | let make = (~id=?, ~className=?, ~style=?, ~title=?, ~content=?) => 753 | ReasonReact.wrapJsForReason( 754 | ~reactClass=popover, 755 | ~props= 756 | Js.Undefined.( 757 | { 758 | "id": from_opt(id), 759 | "className": from_opt(className), 760 | "style": from_opt(style), 761 | "title": from_opt(title), 762 | "content": from_opt(content) 763 | } 764 | ) 765 | ); 766 | }; 767 | 768 | module AutoComplete = { 769 | [@bs.module] external autoComplete : ReasonReact.reactClass = "antd/lib/auto-complete"; 770 | let make = 771 | ( 772 | ~children=?, 773 | ~disabled=?, 774 | ~onSelect=?, 775 | ~allowClear=?, 776 | ~placeholder=?, 777 | ~value=?, 778 | ~backfill=?, 779 | ~className=?, 780 | ~onSearch=?, 781 | ~style=?, 782 | ~dataSource=?, 783 | ~id=?, 784 | ~defaultActiveFirstOption=?, 785 | ~defaultValue=?, 786 | ~onChange=?, 787 | ~filterOption=? 788 | ) => 789 | ReasonReact.wrapJsForReason( 790 | ~reactClass=autoComplete, 791 | ~props= 792 | Js.Undefined.( 793 | { 794 | "children": from_opt(children), 795 | "disabled": unwrapBool(disabled), 796 | "onSelect": from_opt(onSelect), 797 | "allowClear": unwrapBool(allowClear), 798 | "placeholder": from_opt(placeholder), 799 | "value": from_opt(value), 800 | "backfill": unwrapBool(backfill), 801 | "className": from_opt(className), 802 | "onSearch": from_opt(onSearch), 803 | "style": from_opt(style), 804 | "dataSource": from_opt(dataSource), 805 | "id": from_opt(id), 806 | "defaultActiveFirstOption": unwrapBool(defaultActiveFirstOption), 807 | "defaultValue": from_opt(defaultValue), 808 | "onChange": from_opt(onChange), 809 | "filterOption": unwrapBool(filterOption) 810 | } 811 | ) 812 | ); 813 | }; 814 | 815 | module Steps = { 816 | [@bs.module] external steps : ReasonReact.reactClass = "antd/lib/steps"; 817 | let make = 818 | ( 819 | ~progressDot=?, 820 | ~className=?, 821 | ~size=?, 822 | ~style=?, 823 | ~status=?, 824 | ~id=?, 825 | ~current=?, 826 | ~iconPrefix=?, 827 | ~direction=? 828 | ) => 829 | ReasonReact.wrapJsForReason( 830 | ~reactClass=steps, 831 | ~props= 832 | Js.Undefined.( 833 | { 834 | "progressDot": from_opt(progressDot), 835 | "className": from_opt(className), 836 | "size": from_opt(size), 837 | "style": from_opt(style), 838 | "status": from_opt(status), 839 | "id": from_opt(id), 840 | "current": from_opt(current), 841 | "iconPrefix": from_opt(iconPrefix), 842 | "direction": from_opt(direction) 843 | } 844 | ) 845 | ); 846 | module Step = { 847 | [@bs.module "antd/lib/steps"] external step : ReasonReact.reactClass = "Step"; 848 | let make = (~status=?, ~title=?, ~description=?, ~icon=?, ~id=?, ~className=?, ~style=?) => 849 | ReasonReact.wrapJsForReason( 850 | ~reactClass=step, 851 | ~props= 852 | Js.Undefined.( 853 | { 854 | "status": from_opt(status), 855 | "title": from_opt(title), 856 | "description": from_opt(description), 857 | "icon": from_opt(icon), 858 | "id": from_opt(id), 859 | "className": from_opt(className), 860 | "style": from_opt(style) 861 | } 862 | ) 863 | ); 864 | }; 865 | }; 866 | 867 | module Alert = { 868 | [@bs.module] external alert : ReasonReact.reactClass = "antd/lib/alert"; 869 | let make = 870 | ( 871 | ~description=?, 872 | ~closable=?, 873 | ~banner=?, 874 | ~onClose=?, 875 | ~type_=?, 876 | ~showIcon=?, 877 | ~className=?, 878 | ~style=?, 879 | ~id=?, 880 | ~closeText=?, 881 | ~message=? 882 | ) => 883 | ReasonReact.wrapJsForReason( 884 | ~reactClass=alert, 885 | ~props= 886 | Js.Undefined.( 887 | { 888 | "description": from_opt(description), 889 | "closable": unwrapBool(closable), 890 | "banner": unwrapBool(banner), 891 | "onClose": from_opt(onClose), 892 | "type": from_opt(type_), 893 | "showIcon": unwrapBool(showIcon), 894 | "className": from_opt(className), 895 | "style": from_opt(style), 896 | "id": from_opt(id), 897 | "closeText": from_opt(closeText), 898 | "message": from_opt(message) 899 | } 900 | ) 901 | ); 902 | }; 903 | 904 | module TimePicker = { 905 | [@bs.module] external timePicker : ReasonReact.reactClass = "antd/lib/time-picker"; 906 | let make = 907 | ( 908 | ~onOpenChange=?, 909 | ~format=?, 910 | ~getPopupContainer=?, 911 | ~disabled=?, 912 | ~disabledSeconds=?, 913 | ~placeholder=?, 914 | ~use12Hours=?, 915 | ~popupClassName=?, 916 | ~value=?, 917 | ~disabledMinutes=?, 918 | ~hideDisabledOptions=?, 919 | ~className=?, 920 | ~style=?, 921 | ~disabledHours=?, 922 | ~id=?, 923 | ~defaultOpenValue=?, 924 | ~defaultValue=?, 925 | ~onChange=?, 926 | ~addon=?, 927 | ~open_=? 928 | ) => 929 | ReasonReact.wrapJsForReason( 930 | ~reactClass=timePicker, 931 | ~props= 932 | Js.Undefined.( 933 | { 934 | "onOpenChange": from_opt(onOpenChange), 935 | "format": from_opt(format), 936 | "getPopupContainer": from_opt(getPopupContainer), 937 | "disabled": unwrapBool(disabled), 938 | "disabledSeconds": from_opt(disabledSeconds), 939 | "placeholder": from_opt(placeholder), 940 | "use12Hours": unwrapBool(use12Hours), 941 | "popupClassName": from_opt(popupClassName), 942 | "value": from_opt(value), 943 | "disabledMinutes": from_opt(disabledMinutes), 944 | "hideDisabledOptions": unwrapBool(hideDisabledOptions), 945 | "className": from_opt(className), 946 | "style": from_opt(style), 947 | "disabledHours": from_opt(disabledHours), 948 | "id": from_opt(id), 949 | "defaultOpenValue": from_opt(defaultOpenValue), 950 | "defaultValue": from_opt(defaultValue), 951 | "onChange": from_opt(onChange), 952 | "addon": from_opt(addon), 953 | "open": unwrapBool(open_) 954 | } 955 | ) 956 | ); 957 | }; 958 | 959 | module Icon = { 960 | [@bs.module] external icon : ReasonReact.reactClass = "antd/lib/icon"; 961 | let make = (~type_=?, ~spin=?, ~onClick=?, ~id=?, ~className=?, ~style=?) => 962 | ReasonReact.wrapJsForReason( 963 | ~reactClass=icon, 964 | ~props= 965 | Js.Undefined.( 966 | { 967 | "type": from_opt(type_), 968 | "spin": from_opt(spin), 969 | "onClick": from_opt(onClick), 970 | "id": from_opt(id), 971 | "className": from_opt(className), 972 | "style": from_opt(style) 973 | } 974 | ) 975 | ); 976 | }; 977 | 978 | module Dropdown = { 979 | [@bs.module] external dropdown : ReasonReact.reactClass = "antd/lib/dropdown"; 980 | let make = 981 | ( 982 | ~align=?, 983 | ~disabled=?, 984 | ~type_=?, 985 | ~className=?, 986 | ~size=?, 987 | ~style=?, 988 | ~overlay=?, 989 | ~onVisibleChange=?, 990 | ~id=?, 991 | ~visible=?, 992 | ~placement=?, 993 | ~trigger=?, 994 | ~onClick=? 995 | ) => 996 | ReasonReact.wrapJsForReason( 997 | ~reactClass=dropdown, 998 | ~props= 999 | Js.Undefined.( 1000 | { 1001 | "align": from_opt(align), 1002 | "disabled": unwrapBool(disabled), 1003 | "type": from_opt(type_), 1004 | "className": from_opt(className), 1005 | "size": from_opt(size), 1006 | "style": from_opt(style), 1007 | "overlay": from_opt(overlay), 1008 | "onVisibleChange": from_opt(onVisibleChange), 1009 | "id": from_opt(id), 1010 | "visible": unwrapBool(visible), 1011 | "placement": from_opt(placement), 1012 | "trigger": from_opt(trigger), 1013 | "onClick": from_opt(onClick) 1014 | } 1015 | ) 1016 | ); 1017 | }; 1018 | 1019 | module Rate = { 1020 | [@bs.module] external rate : ReasonReact.reactClass = "antd/lib/rate"; 1021 | let make = 1022 | ( 1023 | ~disabled=?, 1024 | ~allowHalf=?, 1025 | ~value=?, 1026 | ~onHoverChange=?, 1027 | ~className=?, 1028 | ~style=?, 1029 | ~id=?, 1030 | ~count=?, 1031 | ~defaultValue=?, 1032 | ~onChange=?, 1033 | ~character=? 1034 | ) => 1035 | ReasonReact.wrapJsForReason( 1036 | ~reactClass=rate, 1037 | ~props= 1038 | Js.Undefined.( 1039 | { 1040 | "disabled": unwrapBool(disabled), 1041 | "allowHalf": unwrapBool(allowHalf), 1042 | "value": from_opt(value), 1043 | "onHoverChange": from_opt(onHoverChange), 1044 | "className": from_opt(className), 1045 | "style": from_opt(style), 1046 | "id": from_opt(id), 1047 | "count": from_opt(count), 1048 | "defaultValue": from_opt(defaultValue), 1049 | "onChange": from_opt(onChange), 1050 | "character": from_opt(character) 1051 | } 1052 | ) 1053 | ); 1054 | }; 1055 | 1056 | module Modal = { 1057 | [@bs.module] external modal : ReasonReact.reactClass = "antd/lib/modal"; 1058 | let make = 1059 | ( 1060 | ~closable=?, 1061 | ~getContainer=?, 1062 | ~visible=?, 1063 | ~okText=?, 1064 | ~okType=?, 1065 | ~maskClosable=?, 1066 | ~wrapClassName=?, 1067 | ~className=?, 1068 | ~style=?, 1069 | ~onCancel=?, 1070 | ~onOk=?, 1071 | ~width=?, 1072 | ~id=?, 1073 | ~footer=?, 1074 | ~title=?, 1075 | ~cancelText=?, 1076 | ~confirmLoading=?, 1077 | ~afterClose=?, 1078 | ~zIndex=? 1079 | ) => 1080 | ReasonReact.wrapJsForReason( 1081 | ~reactClass=modal, 1082 | ~props= 1083 | Js.Undefined.( 1084 | { 1085 | "closable": unwrapBool(closable), 1086 | "getContainer": from_opt(getContainer), 1087 | "visible": unwrapBool(visible), 1088 | "okText": from_opt(okText), 1089 | "okType": from_opt(okType), 1090 | "maskClosable": unwrapBool(maskClosable), 1091 | "wrapClassName": from_opt(wrapClassName), 1092 | "className": from_opt(className), 1093 | "style": from_opt(style), 1094 | "onCancel": from_opt(onCancel), 1095 | "onOk": from_opt(onOk), 1096 | "width": from_opt(width), 1097 | "id": from_opt(id), 1098 | "footer": from_opt(footer), 1099 | "title": from_opt(title), 1100 | "cancelText": from_opt(cancelText), 1101 | "confirmLoading": unwrapBool(confirmLoading), 1102 | "afterClose": from_opt(afterClose), 1103 | "zIndex": from_opt(zIndex) 1104 | } 1105 | ) 1106 | ); 1107 | type options; 1108 | type ref; 1109 | [@bs.module "antd/lib/modal"] external info : options => ref = ""; 1110 | [@bs.module "antd/lib/modal"] external success : options => ref = ""; 1111 | [@bs.module "antd/lib/modal"] external error : options => ref = ""; 1112 | [@bs.module "antd/lib/modal"] external warning : options => ref = ""; 1113 | [@bs.module "antd/lib/modal"] external confirm : options => ref = ""; 1114 | }; 1115 | 1116 | module Carousel = { 1117 | [@bs.module] external carousel : ReasonReact.reactClass = "antd/lib/carousel"; 1118 | let make = 1119 | ( 1120 | ~vertical=?, 1121 | ~autoplay=?, 1122 | ~afterChange=?, 1123 | ~easing=?, 1124 | ~className=?, 1125 | ~style=?, 1126 | ~id=?, 1127 | ~effect=?, 1128 | ~beforeChange=?, 1129 | ~dots=? 1130 | ) => 1131 | ReasonReact.wrapJsForReason( 1132 | ~reactClass=carousel, 1133 | ~props= 1134 | Js.Undefined.( 1135 | { 1136 | "vertical": unwrapBool(vertical), 1137 | "autoplay": unwrapBool(autoplay), 1138 | "afterChange": from_opt(afterChange), 1139 | "easing": from_opt(easing), 1140 | "className": from_opt(className), 1141 | "style": from_opt(style), 1142 | "id": from_opt(id), 1143 | "effect": from_opt(effect), 1144 | "beforeChange": from_opt(beforeChange), 1145 | "dots": unwrapBool(dots) 1146 | } 1147 | ) 1148 | ); 1149 | }; 1150 | 1151 | module Card = { 1152 | [@bs.module] external card : ReasonReact.reactClass = "antd/lib/card"; 1153 | let make = 1154 | ( 1155 | ~bodyStyle=?, 1156 | ~extra=?, 1157 | ~bordered=?, 1158 | ~className=?, 1159 | ~title=?, 1160 | ~style=?, 1161 | ~id=?, 1162 | ~noHovering=?, 1163 | ~loading=? 1164 | ) => 1165 | ReasonReact.wrapJsForReason( 1166 | ~reactClass=card, 1167 | ~props= 1168 | Js.Undefined.( 1169 | { 1170 | "bodyStyle": from_opt(bodyStyle), 1171 | "extra": from_opt(extra), 1172 | "bordered": unwrapBool(bordered), 1173 | "className": from_opt(className), 1174 | "title": from_opt(title), 1175 | "style": from_opt(style), 1176 | "id": from_opt(id), 1177 | "noHovering": unwrapBool(noHovering), 1178 | "loading": unwrapBool(loading) 1179 | } 1180 | ) 1181 | ); 1182 | module Grid = { 1183 | [@bs.module "antd/lib/card"] external grid : ReasonReact.reactClass = "Grid"; 1184 | let make = (~id=?, ~className=?, ~style=?) => 1185 | ReasonReact.wrapJsForReason( 1186 | ~reactClass=grid, 1187 | ~props= 1188 | Js.Undefined.( 1189 | {"id": from_opt(id), "className": from_opt(className), "style": from_opt(style)} 1190 | ) 1191 | ); 1192 | }; 1193 | }; 1194 | 1195 | module Calendar = { 1196 | [@bs.module] external calendar : ReasonReact.reactClass = "antd/lib/calendar"; 1197 | let make = 1198 | ( 1199 | ~monthFullCellRender=?, 1200 | ~fullscreen=?, 1201 | ~onSelect=?, 1202 | ~locale=?, 1203 | ~value=?, 1204 | ~monthCellRender=?, 1205 | ~mode=?, 1206 | ~className=?, 1207 | ~style=?, 1208 | ~id=?, 1209 | ~disabledDate=?, 1210 | ~dateFullCellRender=?, 1211 | ~defaultValue=?, 1212 | ~dateCellRender=?, 1213 | ~onPanelChange=? 1214 | ) => 1215 | ReasonReact.wrapJsForReason( 1216 | ~reactClass=calendar, 1217 | ~props= 1218 | Js.Undefined.( 1219 | { 1220 | "monthFullCellRender": from_opt(monthFullCellRender), 1221 | "fullscreen": unwrapBool(fullscreen), 1222 | "onSelect": from_opt(onSelect), 1223 | "locale": from_opt(locale), 1224 | "value": from_opt(value), 1225 | "monthCellRender": from_opt(monthCellRender), 1226 | "mode": from_opt(mode), 1227 | "className": from_opt(className), 1228 | "style": from_opt(style), 1229 | "id": from_opt(id), 1230 | "disabledDate": from_opt(disabledDate), 1231 | "dateFullCellRender": from_opt(dateFullCellRender), 1232 | "defaultValue": from_opt(defaultValue), 1233 | "dateCellRender": from_opt(dateCellRender), 1234 | "onPanelChange": from_opt(onPanelChange) 1235 | } 1236 | ) 1237 | ); 1238 | }; 1239 | 1240 | module Switch_ = { 1241 | [@bs.module] external switch_ : ReasonReact.reactClass = "antd/lib/switch"; 1242 | let make = 1243 | ( 1244 | ~defaultChecked=?, 1245 | ~disabled=?, 1246 | ~checkedChildren=?, 1247 | ~className=?, 1248 | ~size=?, 1249 | ~style=?, 1250 | ~checked=?, 1251 | ~id=?, 1252 | ~unCheckedChildren=?, 1253 | ~onChange=? 1254 | ) => 1255 | ReasonReact.wrapJsForReason( 1256 | ~reactClass=switch__, 1257 | ~props= 1258 | Js.Undefined.( 1259 | { 1260 | "defaultChecked": unwrapBool(defaultChecked), 1261 | "disabled": unwrapBool(disabled), 1262 | "checkedChildren": from_opt(checkedChildren), 1263 | "className": from_opt(className), 1264 | "size": from_opt(size), 1265 | "style": from_opt(style), 1266 | "checked": unwrapBool(checked), 1267 | "id": from_opt(id), 1268 | "unCheckedChildren": from_opt(unCheckedChildren), 1269 | "onChange": from_opt(onChange) 1270 | } 1271 | ) 1272 | ); 1273 | }; 1274 | 1275 | module DatePicker = { 1276 | [@bs.module] external datePicker : ReasonReact.reactClass = "antd/lib/date-picker"; 1277 | let make = 1278 | ( 1279 | ~onOpenChange=?, 1280 | ~format=?, 1281 | ~disabled=?, 1282 | ~allowClear=?, 1283 | ~placeholder=?, 1284 | ~disabledTime=?, 1285 | ~locale=?, 1286 | ~getCalendarContainer=?, 1287 | ~value=?, 1288 | ~popupStyle=?, 1289 | ~onOk=?, 1290 | ~showToday=?, 1291 | ~className=?, 1292 | ~size=?, 1293 | ~showTime=?, 1294 | ~style=?, 1295 | ~showTimeDefaultValue=?, 1296 | ~id=?, 1297 | ~disabledDate=?, 1298 | ~renderExtraFooter=?, 1299 | ~defaultValue=?, 1300 | ~onChange=?, 1301 | ~open_=? 1302 | ) => 1303 | ReasonReact.wrapJsForReason( 1304 | ~reactClass=datePicker, 1305 | ~props= 1306 | Js.Undefined.( 1307 | { 1308 | "onOpenChange": from_opt(onOpenChange), 1309 | "format": from_opt(format), 1310 | "disabled": unwrapBool(disabled), 1311 | "allowClear": unwrapBool(allowClear), 1312 | "placeholder": from_opt(placeholder), 1313 | "disabledTime": from_opt(disabledTime), 1314 | "locale": from_opt(locale), 1315 | "getCalendarContainer": from_opt(getCalendarContainer), 1316 | "value": from_opt(value), 1317 | "popupStyle": from_opt(popupStyle), 1318 | "onOk": from_opt(onOk), 1319 | "showToday": unwrapBool(showToday), 1320 | "className": from_opt(className), 1321 | "size": from_opt(size), 1322 | "showTime": from_opt(showTime), 1323 | "style": from_opt(style), 1324 | "showTime.defaultValue": from_opt(showTimeDefaultValue), 1325 | "id": from_opt(id), 1326 | "disabledDate": from_opt(disabledDate), 1327 | "renderExtraFooter": from_opt(renderExtraFooter), 1328 | "defaultValue": from_opt(defaultValue), 1329 | "onChange": from_opt(onChange), 1330 | "open": unwrapBool(open_) 1331 | } 1332 | ) 1333 | ); 1334 | }; 1335 | 1336 | module Mention = { 1337 | [@bs.module] external mention : ReasonReact.reactClass = "antd/lib/mention"; 1338 | let make = 1339 | ( 1340 | ~suggestionStyle=?, 1341 | ~getSuggestionContainer=?, 1342 | ~disabled=?, 1343 | ~onSelect=?, 1344 | ~placeholder=?, 1345 | ~value=?, 1346 | ~onSearchChange=?, 1347 | ~onBlur=?, 1348 | ~className=?, 1349 | ~prefix=?, 1350 | ~style=?, 1351 | ~notFoundContent=?, 1352 | ~multiLines=?, 1353 | ~readOnly=?, 1354 | ~id=?, 1355 | ~suggestions=?, 1356 | ~defaultValue=?, 1357 | ~onChange=?, 1358 | ~loading=?, 1359 | ~onFocus=? 1360 | ) => 1361 | ReasonReact.wrapJsForReason( 1362 | ~reactClass=mention, 1363 | ~props= 1364 | Js.Undefined.( 1365 | { 1366 | "suggestionStyle": from_opt(suggestionStyle), 1367 | "getSuggestionContainer": from_opt(getSuggestionContainer), 1368 | "disabled": unwrapBool(disabled), 1369 | "onSelect": from_opt(onSelect), 1370 | "placeholder": from_opt(placeholder), 1371 | "value": from_opt(value), 1372 | "onSearchChange": from_opt(onSearchChange), 1373 | "onBlur": from_opt(onBlur), 1374 | "className": from_opt(className), 1375 | "prefix": from_opt(prefix), 1376 | "style": from_opt(style), 1377 | "notFoundContent": from_opt(notFoundContent), 1378 | "multiLines": unwrapBool(multiLines), 1379 | "readOnly": from_opt(readOnly), 1380 | "id": from_opt(id), 1381 | "suggestions": from_opt(suggestions), 1382 | "defaultValue": from_opt(defaultValue), 1383 | "onChange": from_opt(onChange), 1384 | "loading": unwrapBool(loading), 1385 | "onFocus": from_opt(onFocus) 1386 | } 1387 | ) 1388 | ); 1389 | type t; 1390 | [@bs.module "antd/lib/mention"] external toString : t => string = ""; 1391 | [@bs.module "antd/lib/mention"] external toContentState : string => t = ""; 1392 | [@bs.module "antd/lib/mention"] external toEditorState : string => t = ""; 1393 | [@bs.module "antd/lib/mention"] external getMentions : t => Js.Array.t(string) = ""; 1394 | module Nav = { 1395 | [@bs.module "antd/lib/mention"] external nav : ReasonReact.reactClass = "Nav"; 1396 | let make = (~value=?, ~data=?, ~disabled=?, ~id=?, ~className=?, ~style=?) => 1397 | ReasonReact.wrapJsForReason( 1398 | ~reactClass=nav, 1399 | ~props= 1400 | Js.Undefined.( 1401 | { 1402 | "value": from_opt(value), 1403 | "data": from_opt(data), 1404 | "disabled": unwrapBool(disabled), 1405 | "id": from_opt(id), 1406 | "className": from_opt(className), 1407 | "style": from_opt(style) 1408 | } 1409 | ) 1410 | ); 1411 | }; 1412 | }; 1413 | 1414 | module Pagination = { 1415 | [@bs.module] external pagination : ReasonReact.reactClass = "antd/lib/pagination"; 1416 | let make = 1417 | ( 1418 | ~simple=?, 1419 | ~showSizeChanger=?, 1420 | ~defaultPageSize=?, 1421 | ~itemRender=?, 1422 | ~showTotal=?, 1423 | ~className=?, 1424 | ~size=?, 1425 | ~style=?, 1426 | ~showQuickJumper=?, 1427 | ~total=?, 1428 | ~pageSize=?, 1429 | ~id=?, 1430 | ~current=?, 1431 | ~pageSizeOptions=?, 1432 | ~onShowSizeChange=?, 1433 | ~onChange=?, 1434 | ~defaultCurrent=? 1435 | ) => 1436 | ReasonReact.wrapJsForReason( 1437 | ~reactClass=pagination, 1438 | ~props= 1439 | Js.Undefined.( 1440 | { 1441 | "simple": unwrapBool(simple), 1442 | "showSizeChanger": unwrapBool(showSizeChanger), 1443 | "defaultPageSize": from_opt(defaultPageSize), 1444 | "itemRender": from_opt(itemRender), 1445 | "showTotal": from_opt(showTotal), 1446 | "className": from_opt(className), 1447 | "size": from_opt(size), 1448 | "style": from_opt(style), 1449 | "showQuickJumper": unwrapBool(showQuickJumper), 1450 | "total": from_opt(total), 1451 | "pageSize": from_opt(pageSize), 1452 | "id": from_opt(id), 1453 | "current": from_opt(current), 1454 | "pageSizeOptions": from_opt(pageSizeOptions), 1455 | "onShowSizeChange": from_opt(onShowSizeChange), 1456 | "onChange": from_opt(onChange), 1457 | "defaultCurrent": from_opt(defaultCurrent) 1458 | } 1459 | ) 1460 | ); 1461 | }; 1462 | 1463 | module Cascader = { 1464 | [@bs.module] external cascader : ReasonReact.reactClass = "antd/lib/cascader"; 1465 | let make = 1466 | ( 1467 | ~getPopupContainer=?, 1468 | ~disabled=?, 1469 | ~allowClear=?, 1470 | ~loadData=?, 1471 | ~placeholder=?, 1472 | ~showSearch=?, 1473 | ~popupClassName=?, 1474 | ~value=?, 1475 | ~onPopupVisibleChange=?, 1476 | ~displayRender=?, 1477 | ~className=?, 1478 | ~size=?, 1479 | ~style=?, 1480 | ~notFoundContent=?, 1481 | ~changeOnSelect=?, 1482 | ~id=?, 1483 | ~expandTrigger=?, 1484 | ~popupPlacement=?, 1485 | ~options=?, 1486 | ~defaultValue=?, 1487 | ~onChange=? 1488 | ) => 1489 | ReasonReact.wrapJsForReason( 1490 | ~reactClass=cascader, 1491 | ~props= 1492 | Js.Undefined.( 1493 | { 1494 | "getPopupContainer": from_opt(getPopupContainer), 1495 | "disabled": unwrapBool(disabled), 1496 | "allowClear": unwrapBool(allowClear), 1497 | "loadData": from_opt(loadData), 1498 | "placeholder": from_opt(placeholder), 1499 | "showSearch": unwrapBool(showSearch), 1500 | "popupClassName": from_opt(popupClassName), 1501 | "value": from_opt(value), 1502 | "onPopupVisibleChange": from_opt(onPopupVisibleChange), 1503 | "displayRender": from_opt(displayRender), 1504 | "className": from_opt(className), 1505 | "size": from_opt(size), 1506 | "style": from_opt(style), 1507 | "notFoundContent": from_opt(notFoundContent), 1508 | "changeOnSelect": unwrapBool(changeOnSelect), 1509 | "id": from_opt(id), 1510 | "expandTrigger": from_opt(expandTrigger), 1511 | "popupPlacement": from_opt(popupPlacement), 1512 | "options": from_opt(options), 1513 | "defaultValue": from_opt(defaultValue), 1514 | "onChange": from_opt(onChange) 1515 | } 1516 | ) 1517 | ); 1518 | }; 1519 | 1520 | module Col = { 1521 | [@bs.module] external col : ReasonReact.reactClass = "antd/lib/col"; 1522 | let make = 1523 | ( 1524 | ~push=?, 1525 | ~lg=?, 1526 | ~offset=?, 1527 | ~sm=?, 1528 | ~xs=?, 1529 | ~className=?, 1530 | ~style=?, 1531 | ~id=?, 1532 | ~order=?, 1533 | ~xl=?, 1534 | ~pull=?, 1535 | ~md=?, 1536 | ~span=? 1537 | ) => 1538 | ReasonReact.wrapJsForReason( 1539 | ~reactClass=col, 1540 | ~props= 1541 | Js.Undefined.( 1542 | { 1543 | "push": from_opt(push), 1544 | "lg": from_opt(lg), 1545 | "offset": from_opt(offset), 1546 | "sm": from_opt(sm), 1547 | "xs": from_opt(xs), 1548 | "className": from_opt(className), 1549 | "style": from_opt(style), 1550 | "id": from_opt(id), 1551 | "order": from_opt(order), 1552 | "xl": from_opt(xl), 1553 | "pull": from_opt(pull), 1554 | "md": from_opt(md), 1555 | "span": from_opt(span) 1556 | } 1557 | ) 1558 | ); 1559 | }; 1560 | 1561 | module Spin = { 1562 | [@bs.module] external spin : ReasonReact.reactClass = "antd/lib/spin"; 1563 | let make = 1564 | (~size=?, ~spinning=?, ~tip=?, ~delay=?, ~wrapperClassName=?, ~id=?, ~className=?, ~style=?) => 1565 | ReasonReact.wrapJsForReason( 1566 | ~reactClass=spin, 1567 | ~props= 1568 | Js.Undefined.( 1569 | { 1570 | "size": from_opt(size), 1571 | "spinning": unwrapBool(spinning), 1572 | "tip": from_opt(tip), 1573 | "delay": from_opt(delay), 1574 | "wrapperClassName": from_opt(wrapperClassName), 1575 | "id": from_opt(id), 1576 | "className": from_opt(className), 1577 | "style": from_opt(style) 1578 | } 1579 | ) 1580 | ); 1581 | }; 1582 | 1583 | module Avatar = { 1584 | [@bs.module] external avatar : ReasonReact.reactClass = "antd/lib/avatar"; 1585 | let make = (~props=?, ~size=?, ~src=?, ~icon=?, ~id=?, ~className=?, ~style=?) => 1586 | ReasonReact.wrapJsForReason( 1587 | ~reactClass=avatar, 1588 | ~props= 1589 | Js.Undefined.( 1590 | { 1591 | "props": from_opt(props), 1592 | "size": from_opt(size), 1593 | "src": from_opt(src), 1594 | "icon": from_opt(icon), 1595 | "id": from_opt(id), 1596 | "className": from_opt(className), 1597 | "style": from_opt(style) 1598 | } 1599 | ) 1600 | ); 1601 | }; 1602 | 1603 | module TreeSelect = { 1604 | [@bs.module] external treeSelect : ReasonReact.reactClass = "antd/lib/tree-select"; 1605 | let make = 1606 | ( 1607 | ~multiple=?, 1608 | ~treeCheckStrictly=?, 1609 | ~treeData=?, 1610 | ~treeNodeLabelProp=?, 1611 | ~searchPlaceholder=?, 1612 | ~getPopupContainer=?, 1613 | ~disabled=?, 1614 | ~treeDataSimpleMode=?, 1615 | ~onSelect=?, 1616 | ~allowClear=?, 1617 | ~loadData=?, 1618 | ~placeholder=?, 1619 | ~treeCheckable=?, 1620 | ~showSearch=?, 1621 | ~value=?, 1622 | ~dropdownStyle=?, 1623 | ~filterTreeNode=?, 1624 | ~labelInValue=?, 1625 | ~className=?, 1626 | ~size=?, 1627 | ~onSearch=?, 1628 | ~style=?, 1629 | ~treeDefaultExpandAll=?, 1630 | ~dropdownMatchSelectWidth=?, 1631 | ~id=?, 1632 | ~treeNodeFilterProp=?, 1633 | ~treeDefaultExpandedKeys=?, 1634 | ~defaultValue=?, 1635 | ~onChange=?, 1636 | ~showCheckedStrategy=? 1637 | ) => 1638 | ReasonReact.wrapJsForReason( 1639 | ~reactClass=treeSelect, 1640 | ~props= 1641 | Js.Undefined.( 1642 | { 1643 | "multiple": unwrapBool(multiple), 1644 | "treeCheckStrictly": unwrapBool(treeCheckStrictly), 1645 | "treeData": from_opt(treeData), 1646 | "treeNodeLabelProp": from_opt(treeNodeLabelProp), 1647 | "searchPlaceholder": from_opt(searchPlaceholder), 1648 | "getPopupContainer": from_opt(getPopupContainer), 1649 | "disabled": unwrapBool(disabled), 1650 | "treeDataSimpleMode": from_opt(treeDataSimpleMode), 1651 | "onSelect": from_opt(onSelect), 1652 | "allowClear": unwrapBool(allowClear), 1653 | "loadData": from_opt(loadData), 1654 | "placeholder": from_opt(placeholder), 1655 | "treeCheckable": unwrapBool(treeCheckable), 1656 | "showSearch": unwrapBool(showSearch), 1657 | "value": from_opt(value), 1658 | "dropdownStyle": from_opt(dropdownStyle), 1659 | "filterTreeNode": unwrapBool(filterTreeNode), 1660 | "labelInValue": from_opt(labelInValue), 1661 | "className": from_opt(className), 1662 | "size": from_opt(size), 1663 | "onSearch": from_opt(onSearch), 1664 | "style": from_opt(style), 1665 | "treeDefaultExpandAll": unwrapBool(treeDefaultExpandAll), 1666 | "dropdownMatchSelectWidth": unwrapBool(dropdownMatchSelectWidth), 1667 | "id": from_opt(id), 1668 | "treeNodeFilterProp": from_opt(treeNodeFilterProp), 1669 | "treeDefaultExpandedKeys": from_opt(treeDefaultExpandedKeys), 1670 | "defaultValue": from_opt(defaultValue), 1671 | "onChange": from_opt(onChange), 1672 | "showCheckedStrategy": from_opt(showCheckedStrategy) 1673 | } 1674 | ) 1675 | ); 1676 | module TreeNode = { 1677 | [@bs.module "antd/lib/tree-select"] external treeNode : ReasonReact.reactClass = "TreeNode"; 1678 | let make = 1679 | ( 1680 | ~disabled=?, 1681 | ~disableCheckbox=?, 1682 | ~isLeaf=?, 1683 | ~key=?, 1684 | ~value=?, 1685 | ~className=?, 1686 | ~title=?, 1687 | ~style=?, 1688 | ~id=? 1689 | ) => 1690 | ReasonReact.wrapJsForReason( 1691 | ~reactClass=treeNode, 1692 | ~props= 1693 | Js.Undefined.( 1694 | { 1695 | "disabled": unwrapBool(disabled), 1696 | "disableCheckbox": unwrapBool(disableCheckbox), 1697 | "isLeaf": unwrapBool(isLeaf), 1698 | "key": from_opt(key), 1699 | "value": from_opt(value), 1700 | "className": from_opt(className), 1701 | "title": from_opt(title), 1702 | "style": from_opt(style), 1703 | "id": from_opt(id) 1704 | } 1705 | ) 1706 | ); 1707 | }; 1708 | }; 1709 | 1710 | module BackTop = { 1711 | [@bs.module] external backTop : ReasonReact.reactClass = "antd/lib/back-top"; 1712 | let make = (~visibilityHeight=?, ~onClick=?, ~target=?, ~id=?, ~className=?, ~style=?) => 1713 | ReasonReact.wrapJsForReason( 1714 | ~reactClass=backTop, 1715 | ~props= 1716 | Js.Undefined.( 1717 | { 1718 | "visibilityHeight": from_opt(visibilityHeight), 1719 | "onClick": from_opt(onClick), 1720 | "target": from_opt(target), 1721 | "id": from_opt(id), 1722 | "className": from_opt(className), 1723 | "style": from_opt(style) 1724 | } 1725 | ) 1726 | ); 1727 | }; 1728 | 1729 | module Breadcrumb = { 1730 | [@bs.module] external breadcrumb : ReasonReact.reactClass = "antd/lib/breadcrumb"; 1731 | let make = (~routes=?, ~params=?, ~separator=?, ~itemRender=?, ~id=?, ~className=?, ~style=?) => 1732 | ReasonReact.wrapJsForReason( 1733 | ~reactClass=breadcrumb, 1734 | ~props= 1735 | Js.Undefined.( 1736 | { 1737 | "routes": from_opt(routes), 1738 | "params": from_opt(params), 1739 | "separator": from_opt(separator), 1740 | "itemRender": from_opt(itemRender), 1741 | "id": from_opt(id), 1742 | "className": from_opt(className), 1743 | "style": from_opt(style) 1744 | } 1745 | ) 1746 | ); 1747 | module Item = { 1748 | [@bs.module "antd/lib/breadcrumb"] external item : ReasonReact.reactClass = "Item"; 1749 | let make = (~id=?, ~className=?, ~style=?, ~separator=?, ~href=?) => 1750 | ReasonReact.wrapJsForReason( 1751 | ~reactClass=item, 1752 | ~props= 1753 | Js.Undefined.( 1754 | { 1755 | "id": from_opt(id), 1756 | "className": from_opt(className), 1757 | "style": from_opt(style), 1758 | "separator": from_opt(separator), 1759 | "href": from_opt(href) 1760 | } 1761 | ) 1762 | ); 1763 | }; 1764 | }; 1765 | 1766 | module Collapse = { 1767 | [@bs.module] external collapse : ReasonReact.reactClass = "antd/lib/collapse"; 1768 | let make = (~activeKey=?, ~defaultActiveKey=?, ~onChange=?, ~id=?, ~className=?, ~style=?) => 1769 | ReasonReact.wrapJsForReason( 1770 | ~reactClass=collapse, 1771 | ~props= 1772 | Js.Undefined.( 1773 | { 1774 | "activeKey": from_opt(activeKey), 1775 | "defaultActiveKey": from_opt(defaultActiveKey), 1776 | "onChange": from_opt(onChange), 1777 | "id": from_opt(id), 1778 | "className": from_opt(className), 1779 | "style": from_opt(style) 1780 | } 1781 | ) 1782 | ); 1783 | module Panel = { 1784 | [@bs.module "antd/lib/collapse"] external panel : ReasonReact.reactClass = "Panel"; 1785 | let make = (~key=?, ~header=?, ~disabled=?, ~id=?, ~className=?, ~style=?) => 1786 | ReasonReact.wrapJsForReason( 1787 | ~reactClass=panel, 1788 | ~props= 1789 | Js.Undefined.( 1790 | { 1791 | "key": from_opt(key), 1792 | "header": from_opt(header), 1793 | "disabled": unwrapBool(disabled), 1794 | "id": from_opt(id), 1795 | "className": from_opt(className), 1796 | "style": from_opt(style) 1797 | } 1798 | ) 1799 | ); 1800 | }; 1801 | }; 1802 | 1803 | module Form = { 1804 | [@bs.module] external form : ReasonReact.reactClass = "antd/lib/form"; 1805 | let make = (~layout=?, ~onSubmit=?, ~hideRequiredMark=?, ~id=?, ~className=?, ~style=?) => 1806 | ReasonReact.wrapJsForReason( 1807 | ~reactClass=form, 1808 | ~props= 1809 | Js.Undefined.( 1810 | { 1811 | "layout": from_opt(layout), 1812 | "onSubmit": from_opt(onSubmit), 1813 | "hideRequiredMark": unwrapBool(hideRequiredMark), 1814 | "id": from_opt(id), 1815 | "className": from_opt(className), 1816 | "style": from_opt(style) 1817 | } 1818 | ) 1819 | ); 1820 | type wrapper = [@bs] (ReasonReact.reactClass => ReasonReact.reactClass); 1821 | [@bs.module "antd/lib/form"] external create : unit => wrapper = "create"; 1822 | let wrapper = (~component, ~make', ~props, ~children) => { 1823 | let wrapper = create(); 1824 | let reactClass' = ReasonReact.wrapReasonForJs(~component=component, (_) => make'([||])); 1825 | let reactClass = [@bs] wrapper(reactClass'); 1826 | ReasonReact.wrapJsForReason(~reactClass=reactClass, ~props=props, children); 1827 | }; 1828 | module Item = { 1829 | [@bs.module "antd/lib/form"] external item : ReasonReact.reactClass = "Item"; 1830 | let make = 1831 | ( 1832 | ~colon=?, 1833 | ~validateStatus=?, 1834 | ~extra=?, 1835 | ~className=?, 1836 | ~required=?, 1837 | ~style=?, 1838 | ~label=?, 1839 | ~id=?, 1840 | ~wrapperCol=?, 1841 | ~help=?, 1842 | ~hasFeedback=?, 1843 | ~labelCol=? 1844 | ) => 1845 | ReasonReact.wrapJsForReason( 1846 | ~reactClass=item, 1847 | ~props= 1848 | Js.Undefined.( 1849 | { 1850 | "colon": unwrapBool(colon), 1851 | "validateStatus": from_opt(validateStatus), 1852 | "extra": from_opt(extra), 1853 | "className": from_opt(className), 1854 | "required": unwrapBool(required), 1855 | "style": from_opt(style), 1856 | "label": from_opt(label), 1857 | "id": from_opt(id), 1858 | "wrapperCol": from_opt(wrapperCol), 1859 | "help": from_opt(help), 1860 | "hasFeedback": unwrapBool(hasFeedback), 1861 | "labelCol": from_opt(labelCol) 1862 | } 1863 | ) 1864 | ); 1865 | }; 1866 | }; 1867 | 1868 | module Tag = { 1869 | [@bs.module] external tag : ReasonReact.reactClass = "antd/lib/tag"; 1870 | let make = (~color=?, ~closable=?, ~onClose=?, ~afterClose=?, ~id=?, ~className=?, ~style=?) => 1871 | ReasonReact.wrapJsForReason( 1872 | ~reactClass=tag, 1873 | ~props= 1874 | Js.Undefined.( 1875 | { 1876 | "color": from_opt(color), 1877 | "closable": unwrapBool(closable), 1878 | "onClose": from_opt(onClose), 1879 | "afterClose": from_opt(afterClose), 1880 | "id": from_opt(id), 1881 | "className": from_opt(className), 1882 | "style": from_opt(style) 1883 | } 1884 | ) 1885 | ); 1886 | module CheckableTag = { 1887 | [@bs.module "antd/lib/tag"] external checkableTag : ReasonReact.reactClass = "CheckableTag"; 1888 | let make = (~id=?, ~className=?, ~style=?, ~checked=?, ~onChange=?) => 1889 | ReasonReact.wrapJsForReason( 1890 | ~reactClass=checkableTag, 1891 | ~props= 1892 | Js.Undefined.( 1893 | { 1894 | "id": from_opt(id), 1895 | "className": from_opt(className), 1896 | "style": from_opt(style), 1897 | "checked": unwrapBool(checked), 1898 | "onChange": from_opt(onChange) 1899 | } 1900 | ) 1901 | ); 1902 | }; 1903 | }; 1904 | 1905 | module Anchor = { 1906 | [@bs.module] external anchor : ReasonReact.reactClass = "antd/lib/anchor"; 1907 | let make = 1908 | ( 1909 | ~offsetTop=?, 1910 | ~offsetBottom=?, 1911 | ~bounds=?, 1912 | ~affix=?, 1913 | ~showInkInFixed=?, 1914 | ~id=?, 1915 | ~className=?, 1916 | ~style=? 1917 | ) => 1918 | ReasonReact.wrapJsForReason( 1919 | ~reactClass=anchor, 1920 | ~props= 1921 | Js.Undefined.( 1922 | { 1923 | "offsetTop": from_opt(offsetTop), 1924 | "offsetBottom": from_opt(offsetBottom), 1925 | "bounds": from_opt(bounds), 1926 | "affix": unwrapBool(affix), 1927 | "showInkInFixed": unwrapBool(showInkInFixed), 1928 | "id": from_opt(id), 1929 | "className": from_opt(className), 1930 | "style": from_opt(style) 1931 | } 1932 | ) 1933 | ); 1934 | module Link = { 1935 | [@bs.module "antd/lib/anchor"] external link : ReasonReact.reactClass = "Link"; 1936 | let make = (~id=?, ~className=?, ~style=?, ~href=?, ~title=?) => 1937 | ReasonReact.wrapJsForReason( 1938 | ~reactClass=link, 1939 | ~props= 1940 | Js.Undefined.( 1941 | { 1942 | "id": from_opt(id), 1943 | "className": from_opt(className), 1944 | "style": from_opt(style), 1945 | "href": from_opt(href), 1946 | "title": from_opt(title) 1947 | } 1948 | ) 1949 | ); 1950 | }; 1951 | }; 1952 | 1953 | module Input = { 1954 | [@bs.module] external input : ReasonReact.reactClass = "antd/lib/input"; 1955 | let make = 1956 | ( 1957 | ~suffix=?, 1958 | ~disabled=?, 1959 | ~addonAfter=?, 1960 | ~placeholder=?, 1961 | ~value=?, 1962 | ~type_=?, 1963 | ~addonBefore=?, 1964 | ~className=?, 1965 | ~size=?, 1966 | ~prefix=?, 1967 | ~style=?, 1968 | ~onPressEnter=?, 1969 | ~id=?, 1970 | ~defaultValue=?, 1971 | ~onChange=? 1972 | ) => 1973 | ReasonReact.wrapJsForReason( 1974 | ~reactClass=input, 1975 | ~props= 1976 | Js.Undefined.( 1977 | { 1978 | "suffix": from_opt(suffix), 1979 | "disabled": unwrapBool(disabled), 1980 | "addonAfter": from_opt(addonAfter), 1981 | "placeholder": from_opt(placeholder), 1982 | "value": from_opt(value), 1983 | "type": from_opt(type_), 1984 | "addonBefore": from_opt(addonBefore), 1985 | "className": from_opt(className), 1986 | "size": from_opt(size), 1987 | "prefix": from_opt(prefix), 1988 | "style": from_opt(style), 1989 | "onPressEnter": from_opt(onPressEnter), 1990 | "id": from_opt(id), 1991 | "defaultValue": from_opt(defaultValue), 1992 | "onChange": from_opt(onChange) 1993 | } 1994 | ) 1995 | ); 1996 | module TextArea = { 1997 | [@bs.module "antd/lib/input"] external textArea : ReasonReact.reactClass = "TextArea"; 1998 | let make = 1999 | (~defaultValue=?, ~value=?, ~onPressEnter=?, ~autosize=?, ~id=?, ~className=?, ~style=?) => 2000 | ReasonReact.wrapJsForReason( 2001 | ~reactClass=textArea, 2002 | ~props= 2003 | Js.Undefined.( 2004 | { 2005 | "defaultValue": from_opt(defaultValue), 2006 | "value": from_opt(value), 2007 | "onPressEnter": from_opt(onPressEnter), 2008 | "autosize": unwrapBool(autosize), 2009 | "id": from_opt(id), 2010 | "className": from_opt(className), 2011 | "style": from_opt(style) 2012 | } 2013 | ) 2014 | ); 2015 | }; 2016 | module Search = { 2017 | [@bs.module "antd/lib/input"] external search : ReasonReact.reactClass = "Search"; 2018 | let make = (~id=?, ~className=?, ~style=?, ~onSearch=?) => 2019 | ReasonReact.wrapJsForReason( 2020 | ~reactClass=search, 2021 | ~props= 2022 | Js.Undefined.( 2023 | { 2024 | "id": from_opt(id), 2025 | "className": from_opt(className), 2026 | "style": from_opt(style), 2027 | "onSearch": from_opt(onSearch) 2028 | } 2029 | ) 2030 | ); 2031 | }; 2032 | module Group = { 2033 | [@bs.module "antd/lib/input"] external group : ReasonReact.reactClass = "Group"; 2034 | let make = (~id=?, ~className=?, ~style=?, ~size=?, ~compact=?) => 2035 | ReasonReact.wrapJsForReason( 2036 | ~reactClass=group, 2037 | ~props= 2038 | Js.Undefined.( 2039 | { 2040 | "id": from_opt(id), 2041 | "className": from_opt(className), 2042 | "style": from_opt(style), 2043 | "size": from_opt(size), 2044 | "compact": unwrapBool(compact) 2045 | } 2046 | ) 2047 | ); 2048 | }; 2049 | }; 2050 | 2051 | module Timeline = { 2052 | [@bs.module] external timeline : ReasonReact.reactClass = "antd/lib/timeline"; 2053 | let make = (~id=?, ~className=?, ~style=?, ~pending=?) => 2054 | ReasonReact.wrapJsForReason( 2055 | ~reactClass=timeline, 2056 | ~props= 2057 | Js.Undefined.( 2058 | { 2059 | "id": from_opt(id), 2060 | "className": from_opt(className), 2061 | "style": from_opt(style), 2062 | "pending": from_opt(pending) 2063 | } 2064 | ) 2065 | ); 2066 | module Item = { 2067 | [@bs.module "antd/lib/timeline"] external item : ReasonReact.reactClass = "Item"; 2068 | let make = (~id=?, ~className=?, ~style=?, ~color=?, ~dot=?) => 2069 | ReasonReact.wrapJsForReason( 2070 | ~reactClass=item, 2071 | ~props= 2072 | Js.Undefined.( 2073 | { 2074 | "id": from_opt(id), 2075 | "className": from_opt(className), 2076 | "style": from_opt(style), 2077 | "color": from_opt(color), 2078 | "dot": from_opt(dot) 2079 | } 2080 | ) 2081 | ); 2082 | }; 2083 | }; 2084 | 2085 | module Progress = { 2086 | [@bs.module] external progress : ReasonReact.reactClass = "antd/lib/progress"; 2087 | let make = 2088 | ( 2089 | ~format=?, 2090 | ~gapDegree=?, 2091 | ~width=?, 2092 | ~type_=?, 2093 | ~className=?, 2094 | ~style=?, 2095 | ~status=?, 2096 | ~strokeWidth=?, 2097 | ~id=?, 2098 | ~percent=?, 2099 | ~showInfo=?, 2100 | ~gapPosition=? 2101 | ) => 2102 | ReasonReact.wrapJsForReason( 2103 | ~reactClass=progress, 2104 | ~props= 2105 | Js.Undefined.( 2106 | { 2107 | "format": from_opt(format), 2108 | "gapDegree": from_opt(gapDegree), 2109 | "width": from_opt(width), 2110 | "type": from_opt(type_), 2111 | "className": from_opt(className), 2112 | "style": from_opt(style), 2113 | "status": from_opt(status), 2114 | "strokeWidth": from_opt(strokeWidth), 2115 | "id": from_opt(id), 2116 | "percent": from_opt(percent), 2117 | "showInfo": unwrapBool(showInfo), 2118 | "gapPosition": from_opt(gapPosition) 2119 | } 2120 | ) 2121 | ); 2122 | }; 2123 | 2124 | module Badge = { 2125 | [@bs.module] external badge : ReasonReact.reactClass = "antd/lib/badge"; 2126 | let make = 2127 | ( 2128 | ~overflowCount=?, 2129 | ~className=?, 2130 | ~style=?, 2131 | ~status=?, 2132 | ~id=?, 2133 | ~showZero=?, 2134 | ~count=?, 2135 | ~dot=?, 2136 | ~text=? 2137 | ) => 2138 | ReasonReact.wrapJsForReason( 2139 | ~reactClass=badge, 2140 | ~props= 2141 | Js.Undefined.( 2142 | { 2143 | "overflowCount": from_opt(overflowCount), 2144 | "className": from_opt(className), 2145 | "style": from_opt(style), 2146 | "status": from_opt(status), 2147 | "id": from_opt(id), 2148 | "showZero": unwrapBool(showZero), 2149 | "count": from_opt(count), 2150 | "dot": unwrapBool(dot), 2151 | "text": from_opt(text) 2152 | } 2153 | ) 2154 | ); 2155 | }; 2156 | 2157 | module Menu = { 2158 | [@bs.module] external menu : ReasonReact.reactClass = "antd/lib/menu"; 2159 | let make = 2160 | ( 2161 | ~onOpenChange=?, 2162 | ~selectedKeys=?, 2163 | ~onSelect=?, 2164 | ~mode=?, 2165 | ~multiple=?, 2166 | ~inlineIndent=?, 2167 | ~className=?, 2168 | ~style=?, 2169 | ~theme=?, 2170 | ~openAnimation=?, 2171 | ~id=?, 2172 | ~openKeys=?, 2173 | ~defaultSelectedKeys=?, 2174 | ~defaultOpenKeys=?, 2175 | ~onDeselect=?, 2176 | ~onClick=?, 2177 | ~selectable=?, 2178 | ~inlineCollapsed=?, 2179 | ~openTransitionName=? 2180 | ) => 2181 | ReasonReact.wrapJsForReason( 2182 | ~reactClass=menu, 2183 | ~props= 2184 | Js.Undefined.( 2185 | { 2186 | "onOpenChange": from_opt(onOpenChange), 2187 | "selectedKeys": from_opt(selectedKeys), 2188 | "onSelect": from_opt(onSelect), 2189 | "mode": from_opt(mode), 2190 | "multiple": from_opt(multiple), 2191 | "inlineIndent": from_opt(inlineIndent), 2192 | "className": from_opt(className), 2193 | "style": from_opt(style), 2194 | "theme": from_opt(theme), 2195 | "openAnimation": from_opt(openAnimation), 2196 | "id": from_opt(id), 2197 | "openKeys": from_opt(openKeys), 2198 | "defaultSelectedKeys": from_opt(defaultSelectedKeys), 2199 | "defaultOpenKeys": from_opt(defaultOpenKeys), 2200 | "onDeselect": from_opt(onDeselect), 2201 | "onClick": from_opt(onClick), 2202 | "selectable": from_opt(selectable), 2203 | "inlineCollapsed": from_opt(inlineCollapsed), 2204 | "openTransitionName": from_opt(openTransitionName) 2205 | } 2206 | ) 2207 | ); 2208 | module Divider = { 2209 | [@bs.module "antd/lib/menu"] external divider : ReasonReact.reactClass = "Divider"; 2210 | let make = (~id=?, ~className=?, ~style=?, ~disabled=?) => 2211 | ReasonReact.wrapJsForReason( 2212 | ~reactClass=divider, 2213 | ~props= 2214 | Js.Undefined.( 2215 | { 2216 | "id": from_opt(id), 2217 | "className": from_opt(className), 2218 | "style": from_opt(style), 2219 | "disabled": unwrapBool(disabled) 2220 | } 2221 | ) 2222 | ); 2223 | }; 2224 | module Item = { 2225 | [@bs.module "antd/lib/menu"] external item : ReasonReact.reactClass = "Item"; 2226 | let make = (~id=?, ~className=?, ~style=?, ~disabled=?, ~key=?) => 2227 | ReasonReact.wrapJsForReason( 2228 | ~reactClass=item, 2229 | ~props= 2230 | Js.Undefined.( 2231 | { 2232 | "id": from_opt(id), 2233 | "className": from_opt(className), 2234 | "style": from_opt(style), 2235 | "disabled": unwrapBool(disabled), 2236 | "key": from_opt(key) 2237 | } 2238 | ) 2239 | ); 2240 | }; 2241 | module SubMenu = { 2242 | [@bs.module "antd/lib/menu"] external subMenu : ReasonReact.reactClass = "SubMenu"; 2243 | let make = 2244 | ( 2245 | ~disabled=?, 2246 | ~key=?, 2247 | ~title=?, 2248 | ~children=?, 2249 | ~onTitleClick=?, 2250 | ~id=?, 2251 | ~className=?, 2252 | ~style=? 2253 | ) => 2254 | ReasonReact.wrapJsForReason( 2255 | ~reactClass=subMenu, 2256 | ~props= 2257 | Js.Undefined.( 2258 | { 2259 | "disabled": unwrapBool(disabled), 2260 | "key": from_opt(key), 2261 | "title": from_opt(title), 2262 | "children": from_opt(children), 2263 | "onTitleClick": from_opt(onTitleClick), 2264 | "id": from_opt(id), 2265 | "className": from_opt(className), 2266 | "style": from_opt(style) 2267 | } 2268 | ) 2269 | ); 2270 | }; 2271 | module ItemGroup = { 2272 | [@bs.module "antd/lib/menu"] external itemGroup : ReasonReact.reactClass = "ItemGroup"; 2273 | let make = (~id=?, ~className=?, ~style=?, ~title=?, ~children=?) => 2274 | ReasonReact.wrapJsForReason( 2275 | ~reactClass=itemGroup, 2276 | ~props= 2277 | Js.Undefined.( 2278 | { 2279 | "id": from_opt(id), 2280 | "className": from_opt(className), 2281 | "style": from_opt(style), 2282 | "title": from_opt(title), 2283 | "children": from_opt(children) 2284 | } 2285 | ) 2286 | ); 2287 | }; 2288 | }; 2289 | 2290 | module Tooltip = { 2291 | [@bs.module] external tooltip : ReasonReact.reactClass = "antd/lib/tooltip"; 2292 | let make = 2293 | ( 2294 | ~arrowPointAtCenter=?, 2295 | ~getPopupContainer=?, 2296 | ~autoAdjustOverflow=?, 2297 | ~mouseEnterDelay=?, 2298 | ~mouseLeaveDelay=?, 2299 | ~className=?, 2300 | ~title=?, 2301 | ~style=?, 2302 | ~overlay=?, 2303 | ~onVisibleChange=?, 2304 | ~id=?, 2305 | ~overlayStyle=?, 2306 | ~overlayClassName=?, 2307 | ~visible=?, 2308 | ~placement=?, 2309 | ~trigger=? 2310 | ) => 2311 | ReasonReact.wrapJsForReason( 2312 | ~reactClass=tooltip, 2313 | ~props= 2314 | Js.Undefined.( 2315 | { 2316 | "arrowPointAtCenter": unwrapBool(arrowPointAtCenter), 2317 | "getPopupContainer": from_opt(getPopupContainer), 2318 | "autoAdjustOverflow": unwrapBool(autoAdjustOverflow), 2319 | "mouseEnterDelay": from_opt(mouseEnterDelay), 2320 | "mouseLeaveDelay": from_opt(mouseLeaveDelay), 2321 | "className": from_opt(className), 2322 | "title": from_opt(title), 2323 | "style": from_opt(style), 2324 | "overlay": from_opt(overlay), 2325 | "onVisibleChange": from_opt(onVisibleChange), 2326 | "id": from_opt(id), 2327 | "overlayStyle": from_opt(overlayStyle), 2328 | "overlayClassName": from_opt(overlayClassName), 2329 | "visible": unwrapBool(visible), 2330 | "placement": from_opt(placement), 2331 | "trigger": from_opt(trigger) 2332 | } 2333 | ) 2334 | ); 2335 | }; 2336 | 2337 | module Upload = { 2338 | [@bs.module] external upload : ReasonReact.reactClass = "antd/lib/upload"; 2339 | let make = 2340 | ( 2341 | ~withCredentials=?, 2342 | ~multiple=?, 2343 | ~defaultFileList=?, 2344 | ~disabled=?, 2345 | ~listType=?, 2346 | ~name=?, 2347 | ~className=?, 2348 | ~headers=?, 2349 | ~style=?, 2350 | ~id=?, 2351 | ~customRequest=?, 2352 | ~showUploadList=?, 2353 | ~action=?, 2354 | ~supportServerRender=?, 2355 | ~onChange=?, 2356 | ~beforeUpload=?, 2357 | ~onRemove=?, 2358 | ~fileList=?, 2359 | ~accept=?, 2360 | ~onPreview=?, 2361 | ~data=? 2362 | ) => 2363 | ReasonReact.wrapJsForReason( 2364 | ~reactClass=upload, 2365 | ~props= 2366 | Js.Undefined.( 2367 | { 2368 | "withCredentials": unwrapBool(withCredentials), 2369 | "multiple": unwrapBool(multiple), 2370 | "defaultFileList": from_opt(defaultFileList), 2371 | "disabled": unwrapBool(disabled), 2372 | "listType": from_opt(listType), 2373 | "name": from_opt(name), 2374 | "className": from_opt(className), 2375 | "headers": from_opt(headers), 2376 | "style": from_opt(style), 2377 | "id": from_opt(id), 2378 | "customRequest": from_opt(customRequest), 2379 | "showUploadList": unwrapBool(showUploadList), 2380 | "action": from_opt(action), 2381 | "supportServerRender": unwrapBool(supportServerRender), 2382 | "onChange": from_opt(onChange), 2383 | "beforeUpload": from_opt(beforeUpload), 2384 | "onRemove": from_opt(onRemove), 2385 | "fileList": from_opt(fileList), 2386 | "accept": from_opt(accept), 2387 | "onPreview": from_opt(onPreview), 2388 | "data": from_opt(data) 2389 | } 2390 | ) 2391 | ); 2392 | }; 2393 | 2394 | module InputNumber = { 2395 | [@bs.module] external inputNumber : ReasonReact.reactClass = "antd/lib/input-number"; 2396 | let make = 2397 | ( 2398 | ~min=?, 2399 | ~disabled=?, 2400 | ~formatter=?, 2401 | ~value=?, 2402 | ~precision=?, 2403 | ~className=?, 2404 | ~size=?, 2405 | ~style=?, 2406 | ~parser=?, 2407 | ~max=?, 2408 | ~id=?, 2409 | ~defaultValue=?, 2410 | ~onChange=?, 2411 | ~step=? 2412 | ) => 2413 | ReasonReact.wrapJsForReason( 2414 | ~reactClass=inputNumber, 2415 | ~props= 2416 | Js.Undefined.( 2417 | { 2418 | "min": from_opt(min), 2419 | "disabled": unwrapBool(disabled), 2420 | "formatter": from_opt(formatter), 2421 | "value": from_opt(value), 2422 | "precision": from_opt(precision), 2423 | "className": from_opt(className), 2424 | "size": from_opt(size), 2425 | "style": from_opt(style), 2426 | "parser": from_opt(parser), 2427 | "max": from_opt(max), 2428 | "id": from_opt(id), 2429 | "defaultValue": from_opt(defaultValue), 2430 | "onChange": from_opt(onChange), 2431 | "step": from_opt(step) 2432 | } 2433 | ) 2434 | ); 2435 | }; 2436 | 2437 | module Message = { 2438 | type content; 2439 | type duration = int; 2440 | type options; 2441 | type callback = [@bs] (unit => unit); 2442 | [@bs.module "antd/lib/message"] external success : (content, duration, callback) => unit = ""; 2443 | [@bs.module "antd/lib/message"] external error : (content, duration, callback) => unit = ""; 2444 | [@bs.module "antd/lib/message"] external info : (content, duration, callback) => unit = ""; 2445 | [@bs.module "antd/lib/message"] external warning : (content, duration, callback) => unit = ""; 2446 | [@bs.module "antd/lib/message"] external warn : (content, duration, callback) => unit = ""; 2447 | [@bs.module "antd/lib/message"] external loading : (content, duration, callback) => unit = ""; 2448 | [@bs.module "antd/lib/message"] external config : options => unit = ""; 2449 | [@bs.module "antd/lib/message"] external destroy : unit => unit = ""; 2450 | }; 2451 | 2452 | module Row = { 2453 | [@bs.module] external row : ReasonReact.reactClass = "antd/lib/row"; 2454 | let make = (~type_=?, ~gutter=?, ~align=?, ~justify=?, ~id=?, ~className=?, ~style=?) => 2455 | ReasonReact.wrapJsForReason( 2456 | ~reactClass=row, 2457 | ~props= 2458 | Js.Undefined.( 2459 | { 2460 | "type": from_opt(type_), 2461 | "gutter": from_opt(gutter), 2462 | "align": from_opt(align), 2463 | "justify": from_opt(justify), 2464 | "id": from_opt(id), 2465 | "className": from_opt(className), 2466 | "style": from_opt(style) 2467 | } 2468 | ) 2469 | ); 2470 | }; 2471 | 2472 | module Select = { 2473 | [@bs.module] external select : ReasonReact.reactClass = "antd/lib/select"; 2474 | let make = 2475 | ( 2476 | ~multiple=?, 2477 | ~getPopupContainer=?, 2478 | ~disabled=?, 2479 | ~optionLabelProp=?, 2480 | ~onSelect=?, 2481 | ~allowClear=?, 2482 | ~placeholder=?, 2483 | ~showSearch=?, 2484 | ~value=?, 2485 | ~mode=?, 2486 | ~dropdownStyle=?, 2487 | ~onBlur=?, 2488 | ~firstActiveValue=?, 2489 | ~className=?, 2490 | ~size=?, 2491 | ~dropdownClassName=?, 2492 | ~onSearch=?, 2493 | ~style=?, 2494 | ~notFoundContent=?, 2495 | ~labelInValue=?, 2496 | ~dropdownMatchSelectWidth=?, 2497 | ~tags=?, 2498 | ~id=?, 2499 | ~defaultActiveFirstOption=?, 2500 | ~optionFilterProp=?, 2501 | ~defaultValue=?, 2502 | ~onChange=?, 2503 | ~combobox=?, 2504 | ~filterOption=?, 2505 | ~tokenSeparators=?, 2506 | ~onDeselect=?, 2507 | ~onFocus=? 2508 | ) => 2509 | ReasonReact.wrapJsForReason( 2510 | ~reactClass=select, 2511 | ~props= 2512 | Js.Undefined.( 2513 | { 2514 | "multiple": unwrapBool(multiple), 2515 | "getPopupContainer": from_opt(getPopupContainer), 2516 | "disabled": unwrapBool(disabled), 2517 | "optionLabelProp": from_opt(optionLabelProp), 2518 | "onSelect": from_opt(onSelect), 2519 | "allowClear": unwrapBool(allowClear), 2520 | "placeholder": from_opt(placeholder), 2521 | "showSearch": unwrapBool(showSearch), 2522 | "value": from_opt(value), 2523 | "mode": from_opt(mode), 2524 | "dropdownStyle": from_opt(dropdownStyle), 2525 | "onBlur": from_opt(onBlur), 2526 | "firstActiveValue": from_opt(firstActiveValue), 2527 | "className": from_opt(className), 2528 | "size": from_opt(size), 2529 | "dropdownClassName": from_opt(dropdownClassName), 2530 | "onSearch": from_opt(onSearch), 2531 | "style": from_opt(style), 2532 | "notFoundContent": from_opt(notFoundContent), 2533 | "labelInValue": unwrapBool(labelInValue), 2534 | "dropdownMatchSelectWidth": unwrapBool(dropdownMatchSelectWidth), 2535 | "tags": unwrapBool(tags), 2536 | "id": from_opt(id), 2537 | "defaultActiveFirstOption": unwrapBool(defaultActiveFirstOption), 2538 | "optionFilterProp": from_opt(optionFilterProp), 2539 | "defaultValue": from_opt(defaultValue), 2540 | "onChange": from_opt(onChange), 2541 | "combobox": unwrapBool(combobox), 2542 | "filterOption": unwrapBool(filterOption), 2543 | "tokenSeparators": from_opt(tokenSeparators), 2544 | "onDeselect": from_opt(onDeselect), 2545 | "onFocus": from_opt(onFocus) 2546 | } 2547 | ) 2548 | ); 2549 | module Option = { 2550 | [@bs.module "antd/lib/select"] external option : ReasonReact.reactClass = "Option"; 2551 | let make = (~value=?, ~key=?, ~title=?, ~disabled=?, ~id=?, ~className=?, ~style=?) => 2552 | ReasonReact.wrapJsForReason( 2553 | ~reactClass=option, 2554 | ~props= 2555 | Js.Undefined.( 2556 | { 2557 | "value": from_opt(value), 2558 | "key": from_opt(key), 2559 | "title": from_opt(title), 2560 | "disabled": unwrapBool(disabled), 2561 | "id": from_opt(id), 2562 | "className": from_opt(className), 2563 | "style": from_opt(style) 2564 | } 2565 | ) 2566 | ); 2567 | }; 2568 | module OptGroup = { 2569 | [@bs.module "antd/lib/select"] external optGroup : ReasonReact.reactClass = "OptGroup"; 2570 | let make = (~id=?, ~className=?, ~style=?, ~label=?, ~key=?) => 2571 | ReasonReact.wrapJsForReason( 2572 | ~reactClass=optGroup, 2573 | ~props= 2574 | Js.Undefined.( 2575 | { 2576 | "id": from_opt(id), 2577 | "className": from_opt(className), 2578 | "style": from_opt(style), 2579 | "label": from_opt(label), 2580 | "key": from_opt(key) 2581 | } 2582 | ) 2583 | ); 2584 | }; 2585 | }; 2586 | 2587 | module Slider = { 2588 | [@bs.module] external slider : ReasonReact.reactClass = "antd/lib/slider"; 2589 | let make = 2590 | ( 2591 | ~onAfterChange=?, 2592 | ~min=?, 2593 | ~disabled=?, 2594 | ~vertical=?, 2595 | ~value=?, 2596 | ~range=?, 2597 | ~included=?, 2598 | ~className=?, 2599 | ~style=?, 2600 | ~max=?, 2601 | ~id=?, 2602 | ~marks=?, 2603 | ~tipFormatter=?, 2604 | ~defaultValue=?, 2605 | ~onChange=?, 2606 | ~step=?, 2607 | ~dots=? 2608 | ) => 2609 | ReasonReact.wrapJsForReason( 2610 | ~reactClass=slider, 2611 | ~props= 2612 | Js.Undefined.( 2613 | { 2614 | "onAfterChange": from_opt(onAfterChange), 2615 | "min": from_opt(min), 2616 | "disabled": unwrapBool(disabled), 2617 | "vertical": unwrapBool(vertical), 2618 | "value": from_opt(value), 2619 | "range": unwrapBool(range), 2620 | "included": unwrapBool(included), 2621 | "className": from_opt(className), 2622 | "style": from_opt(style), 2623 | "max": from_opt(max), 2624 | "id": from_opt(id), 2625 | "marks": from_opt(marks), 2626 | "tipFormatter": from_opt(tipFormatter), 2627 | "defaultValue": from_opt(defaultValue), 2628 | "onChange": from_opt(onChange), 2629 | "step": from_opt(step), 2630 | "dots": unwrapBool(dots) 2631 | } 2632 | ) 2633 | ); 2634 | }; 2635 | --------------------------------------------------------------------------------