@tendaui/react 1.1.5 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/es/_chunks/dep-5U9UjDaf.js.map +1 -1
  4. package/es/_chunks/dep-CD_4-1Xb.js.map +1 -1
  5. package/es/_chunks/{dep-CRURwzDj.js → dep-CsSvR9wN.js} +9 -3
  6. package/es/_chunks/dep-CsSvR9wN.js.map +1 -0
  7. package/es/_chunks/dep-DJmE940f.js.map +1 -1
  8. package/es/_chunks/dep-DbVHGoUC.js.map +1 -1
  9. package/es/_chunks/{dep-D8jki30S.js → dep-aX8qrQpB.js} +2 -2
  10. package/es/_chunks/{dep-D8jki30S.js.map → dep-aX8qrQpB.js.map} +1 -1
  11. package/es/alert/Alert.js +9 -2
  12. package/es/alert/Alert.js.map +1 -1
  13. package/es/alert/index.js +4 -1
  14. package/es/alert/index.js.map +1 -1
  15. package/es/alert/style/index.css +7 -30
  16. package/es/badge/style/index.css +5 -10
  17. package/es/button/_example/base.js +1 -158
  18. package/es/button/_example/base.js.map +1 -1
  19. package/es/button/_example/icon.js +1 -157
  20. package/es/button/_example/icon.js.map +1 -1
  21. package/es/button/style/index.css +4 -19
  22. package/es/checkbox/style/index.css +9 -26
  23. package/es/color-picker/ColorPicker.js +3 -3
  24. package/es/color-picker/components/panel/format/index.js +4 -1
  25. package/es/color-picker/components/panel/format/index.js.map +1 -1
  26. package/es/color-picker/components/panel/format/inputs.js +3 -0
  27. package/es/color-picker/components/panel/format/inputs.js.map +1 -1
  28. package/es/color-picker/components/trigger.js +3 -0
  29. package/es/color-picker/components/trigger.js.map +1 -1
  30. package/es/color-picker/style/index.css +43 -138
  31. package/es/color-picker/utils/color-picker/index.js.map +1 -1
  32. package/es/dialog/Dialog.js +4 -1
  33. package/es/dialog/Dialog.js.map +1 -1
  34. package/es/dialog/DialogCard.js +5 -2
  35. package/es/dialog/DialogCard.js.map +1 -1
  36. package/es/dialog/index.js +4 -3
  37. package/es/dialog/index.js.map +1 -1
  38. package/es/dialog/plugin.js +3 -2
  39. package/es/dialog/plugin.js.map +1 -1
  40. package/es/dialog/style/index.css +51 -188
  41. package/es/drawer/Drawer.js +15 -8
  42. package/es/drawer/Drawer.js.map +1 -1
  43. package/es/drawer/index.js +5 -2
  44. package/es/drawer/index.js.map +1 -1
  45. package/es/drawer/style/index.css +12 -41
  46. package/es/form/Form.js +3 -0
  47. package/es/form/Form.js.map +1 -1
  48. package/es/form/FormItem.js +3 -0
  49. package/es/form/FormItem.js.map +1 -1
  50. package/es/form/index.js +3 -0
  51. package/es/form/index.js.map +1 -1
  52. package/es/form/style/index.css +13 -33
  53. package/es/index.js +3 -3
  54. package/es/input/Input.js +10 -2
  55. package/es/input/Input.js.map +1 -1
  56. package/es/input/index.js +4 -1
  57. package/es/input/index.js.map +1 -1
  58. package/es/input/style/index.css +17 -63
  59. package/es/input-number/InputNumber.js +4 -1
  60. package/es/input-number/InputNumber.js.map +1 -1
  61. package/es/input-number/index.js +4 -1
  62. package/es/input-number/index.js.map +1 -1
  63. package/es/input-number/style/css.js +1 -1
  64. package/es/input-number/style/index.css +7 -39
  65. package/es/input-number/useInputNumber.js.map +1 -1
  66. package/es/ip-input/style/index.css +21 -87
  67. package/es/layout/style/index.css +5 -19
  68. package/es/list/List.js.map +1 -1
  69. package/es/list/ListItem.js.map +1 -1
  70. package/es/list/ListItemMeta.js.map +1 -1
  71. package/es/list/style/css.js +1 -1
  72. package/es/list/style/index.css +11 -39
  73. package/es/loading/style/index.css +10 -65
  74. package/es/notification/style/index.css +6 -24
  75. package/es/popup/style/index.css +9 -20
  76. package/es/radio/style/index.css +11 -36
  77. package/es/select/Select.js +4 -1
  78. package/es/select/Select.js.map +1 -1
  79. package/es/select/index.js +4 -1
  80. package/es/select/index.js.map +1 -1
  81. package/es/select/style/index.css +17 -52
  82. package/es/select-input/SelectInput.js +3 -0
  83. package/es/select-input/SelectInput.js.map +1 -1
  84. package/es/select-input/hook/useMultiple.js +3 -0
  85. package/es/select-input/hook/useMultiple.js.map +1 -1
  86. package/es/select-input/hook/useSingle.js +3 -0
  87. package/es/select-input/hook/useSingle.js.map +1 -1
  88. package/es/select-input/index.js +3 -0
  89. package/es/select-input/index.js.map +1 -1
  90. package/es/slider/Slider.js +3 -0
  91. package/es/slider/Slider.js.map +1 -1
  92. package/es/slider/SliderHandleButton.js.map +1 -1
  93. package/es/slider/index.js +3 -0
  94. package/es/slider/index.js.map +1 -1
  95. package/es/slider/style/css.js +1 -1
  96. package/es/slider/style/index.css +18 -59
  97. package/es/style/index.css +0 -2
  98. package/es/switch/Switch.js +1 -1
  99. package/es/switch/index.js +1 -1
  100. package/es/switch/style/index.css +10 -37
  101. package/es/tab/style/index.css +6 -31
  102. package/es/table/TBody.js +10 -1
  103. package/es/table/TBody.js.map +1 -1
  104. package/es/table/Table.js +4 -0
  105. package/es/table/Table.js.map +1 -1
  106. package/es/table/index.js +4 -0
  107. package/es/table/index.js.map +1 -1
  108. package/es/table/style/index.css +5 -15
  109. package/es/tag/style/index.css +4 -16
  110. package/es/tag-input/TagInput.js +3 -0
  111. package/es/tag-input/TagInput.js.map +1 -1
  112. package/es/tag-input/index.js +3 -0
  113. package/es/tag-input/index.js.map +1 -1
  114. package/es/tag-input/style/index.css +7 -53
  115. package/es/utils/log/index.js.map +1 -1
  116. package/package.json +3 -3
  117. package/es/_chunks/dep-CRURwzDj.js.map +0 -1
  118. package/es/alert/Alert.d.ts +0 -7
  119. package/es/alert/defaultProps.d.ts +0 -2
  120. package/es/alert/index.d.ts +0 -5
  121. package/es/alert/style/css.d.ts +0 -1
  122. package/es/alert/style/index.d.ts +0 -1
  123. package/es/alert/type.d.ts +0 -45
  124. package/es/badge/Badge.d.ts +0 -7
  125. package/es/badge/defaultProps.d.ts +0 -2
  126. package/es/badge/index.d.ts +0 -5
  127. package/es/badge/style/css.d.ts +0 -1
  128. package/es/badge/style/index.d.ts +0 -1
  129. package/es/badge/type.d.ts +0 -50
  130. package/es/button/Button.d.ts +0 -6
  131. package/es/button/defaultProps.d.ts +0 -2
  132. package/es/button/index.d.ts +0 -5
  133. package/es/button/style/css.d.ts +0 -1
  134. package/es/button/style/index.d.ts +0 -1
  135. package/es/button/type.d.ts +0 -81
  136. package/es/checkbox/Checkbox.d.ts +0 -10
  137. package/es/checkbox/CheckboxGroup.d.ts +0 -14
  138. package/es/checkbox/defaultProps.d.ts +0 -3
  139. package/es/checkbox/index.d.ts +0 -11
  140. package/es/checkbox/style/css.d.ts +0 -1
  141. package/es/checkbox/style/index.d.ts +0 -1
  142. package/es/checkbox/type.d.ts +0 -115
  143. package/es/color-picker/ColorPickPanel.d.ts +0 -4
  144. package/es/color-picker/ColorPicker.d.ts +0 -4
  145. package/es/color-picker/components/panel/alpha.d.ts +0 -4
  146. package/es/color-picker/components/panel/format/index.d.ts +0 -10
  147. package/es/color-picker/components/panel/format/inputs.d.ts +0 -4
  148. package/es/color-picker/components/panel/header.d.ts +0 -13
  149. package/es/color-picker/components/panel/hue.d.ts +0 -4
  150. package/es/color-picker/components/panel/index.d.ts +0 -4
  151. package/es/color-picker/components/panel/saturation.d.ts +0 -4
  152. package/es/color-picker/components/panel/slider.d.ts +0 -11
  153. package/es/color-picker/components/panel/swatches.d.ts +0 -11
  154. package/es/color-picker/components/trigger.d.ts +0 -9
  155. package/es/color-picker/defaultProps.d.ts +0 -2
  156. package/es/color-picker/helpers.d.ts +0 -5
  157. package/es/color-picker/hooks/useClassNames.d.ts +0 -2
  158. package/es/color-picker/hooks/useStyles.d.ts +0 -14
  159. package/es/color-picker/index.d.ts +0 -6
  160. package/es/color-picker/style/css.d.ts +0 -1
  161. package/es/color-picker/style/index.d.ts +0 -1
  162. package/es/color-picker/type.d.ts +0 -135
  163. package/es/color-picker/utils/color-picker/cmyk.d.ts +0 -27
  164. package/es/color-picker/utils/color-picker/color.d.ts +0 -144
  165. package/es/color-picker/utils/color-picker/constants.d.ts +0 -30
  166. package/es/color-picker/utils/color-picker/draggable.d.ts +0 -23
  167. package/es/color-picker/utils/color-picker/format.d.ts +0 -64
  168. package/es/color-picker/utils/color-picker/gradient.d.ts +0 -22
  169. package/es/color-picker/utils/color-picker/index.d.ts +0 -7
  170. package/es/color-picker/utils/color-picker/types.d.ts +0 -28
  171. package/es/common/Check.d.ts +0 -22
  172. package/es/common/FakeArrow.d.ts +0 -9
  173. package/es/common/PluginContainer.d.ts +0 -9
  174. package/es/common/Portal.d.ts +0 -16
  175. package/es/common/observe.d.ts +0 -1
  176. package/es/common.d.ts +0 -81
  177. package/es/config-provider/ConfigContext.d.ts +0 -13
  178. package/es/config-provider/ConfigProvider.d.ts +0 -25
  179. package/es/config-provider/index.d.ts +0 -7
  180. package/es/config-provider/type.d.ts +0 -1029
  181. package/es/dialog/Dialog.d.ts +0 -8
  182. package/es/dialog/DialogCard.d.ts +0 -8
  183. package/es/dialog/defaultProps.d.ts +0 -6
  184. package/es/dialog/hooks/useDialogDrag.d.ts +0 -7
  185. package/es/dialog/hooks/useDialogEsc.d.ts +0 -3
  186. package/es/dialog/hooks/useDialogPosition.d.ts +0 -2
  187. package/es/dialog/hooks/useLockStyle.d.ts +0 -2
  188. package/es/dialog/index.d.ts +0 -8
  189. package/es/dialog/plugin.d.ts +0 -6
  190. package/es/dialog/style/css.d.ts +0 -1
  191. package/es/dialog/style/index.d.ts +0 -1
  192. package/es/dialog/type.d.ts +0 -227
  193. package/es/dialog/utils.d.ts +0 -1
  194. package/es/drawer/Drawer.d.ts +0 -11
  195. package/es/drawer/defaultProps.d.ts +0 -2
  196. package/es/drawer/hooks/useDrag.d.ts +0 -8
  197. package/es/drawer/hooks/useLockStyle.d.ts +0 -1
  198. package/es/drawer/index.d.ts +0 -4
  199. package/es/drawer/style/css.d.ts +0 -1
  200. package/es/drawer/style/index.d.ts +0 -1
  201. package/es/drawer/type.d.ts +0 -199
  202. package/es/drawer/utils/index.d.ts +0 -23
  203. package/es/fireworks/Fireworks.d.ts +0 -7
  204. package/es/fireworks/index.d.ts +0 -5
  205. package/es/fireworks/style/css.d.ts +0 -0
  206. package/es/fireworks/style/index.d.ts +0 -0
  207. package/es/fireworks/type.d.ts +0 -69
  208. package/es/form/Form.d.ts +0 -8
  209. package/es/form/FormContext.d.ts +0 -59
  210. package/es/form/FormItem.d.ts +0 -23
  211. package/es/form/FormList.d.ts +0 -4
  212. package/es/form/const.d.ts +0 -6
  213. package/es/form/defaultProps.d.ts +0 -3
  214. package/es/form/easing.d.ts +0 -2
  215. package/es/form/formModel.d.ts +0 -37
  216. package/es/form/hooks/interface.d.ts +0 -16
  217. package/es/form/hooks/useForm.d.ts +0 -3
  218. package/es/form/hooks/useFormItemInitialData.d.ts +0 -9
  219. package/es/form/hooks/useFormItemStyle.d.ts +0 -10
  220. package/es/form/hooks/useInstance.d.ts +0 -16
  221. package/es/form/hooks/useWatch.d.ts +0 -3
  222. package/es/form/index.d.ts +0 -7
  223. package/es/form/scroll.d.ts +0 -39
  224. package/es/form/style/css.d.ts +0 -1
  225. package/es/form/style/index.d.ts +0 -1
  226. package/es/form/type.d.ts +0 -486
  227. package/es/form/utils/index.d.ts +0 -5
  228. package/es/global-config/default-config.d.ts +0 -84
  229. package/es/global-config/locale/ar_KW.d.ts +0 -239
  230. package/es/global-config/locale/en_US.d.ts +0 -263
  231. package/es/global-config/locale/it_IT.d.ts +0 -263
  232. package/es/global-config/locale/ja_JP.d.ts +0 -263
  233. package/es/global-config/locale/ko_KR.d.ts +0 -263
  234. package/es/global-config/locale/ru_RU.d.ts +0 -263
  235. package/es/global-config/locale/zh_CN.d.ts +0 -263
  236. package/es/global-config/locale/zh_TW.d.ts +0 -263
  237. package/es/global-config/mobile/default-config.d.ts +0 -7
  238. package/es/global-config/mobile/locale/ar_KW.d.ts +0 -98
  239. package/es/global-config/mobile/locale/en_US.d.ts +0 -99
  240. package/es/global-config/mobile/locale/it_IT.d.ts +0 -99
  241. package/es/global-config/mobile/locale/ja_JP.d.ts +0 -99
  242. package/es/global-config/mobile/locale/ko_KR.d.ts +0 -99
  243. package/es/global-config/mobile/locale/ru_RU.d.ts +0 -99
  244. package/es/global-config/mobile/locale/zh_CN.d.ts +0 -99
  245. package/es/global-config/mobile/locale/zh_TW.d.ts +0 -99
  246. package/es/global-config/t.d.ts +0 -25
  247. package/es/hooks/useAttach.d.ts +0 -10
  248. package/es/hooks/useCommonClassName.d.ts +0 -54
  249. package/es/hooks/useConfig.d.ts +0 -2
  250. package/es/hooks/useControlled.d.ts +0 -9
  251. package/es/hooks/useDeepEffect.d.ts +0 -7
  252. package/es/hooks/useDefaultProps.d.ts +0 -1
  253. package/es/hooks/useDomCallback.d.ts +0 -1
  254. package/es/hooks/useDomRefCallback.d.ts +0 -1
  255. package/es/hooks/useDragSorter.d.ts +0 -28
  256. package/es/hooks/useEventCallback.d.ts +0 -9
  257. package/es/hooks/useGlobalConfig.d.ts +0 -1
  258. package/es/hooks/useGlobalIcon.d.ts +0 -5
  259. package/es/hooks/useLastest.d.ts +0 -2
  260. package/es/hooks/useLayoutEffect.d.ts +0 -3
  261. package/es/hooks/useMouseEvent.d.ts +0 -25
  262. package/es/hooks/useMutationObserver.d.ts +0 -4
  263. package/es/hooks/usePopper.d.ts +0 -19
  264. package/es/hooks/useResizeObserve.d.ts +0 -1
  265. package/es/hooks/useRipple.d.ts +0 -0
  266. package/es/hooks/useSetState.d.ts +0 -7
  267. package/es/hooks/useVirtualScroll.d.ts +0 -30
  268. package/es/hooks/useWindowSize.d.ts +0 -6
  269. package/es/index.d.ts +0 -25
  270. package/es/input/Input.d.ts +0 -16
  271. package/es/input/InputGroup.d.ts +0 -10
  272. package/es/input/defaultProps.d.ts +0 -17
  273. package/es/input/index.d.ts +0 -6
  274. package/es/input/style/css.d.ts +0 -1
  275. package/es/input/style/index.d.ts +0 -1
  276. package/es/input/type.d.ts +0 -237
  277. package/es/input-number/InputNumber.d.ts +0 -17
  278. package/es/input-number/defaultProps.d.ts +0 -2
  279. package/es/input-number/index.d.ts +0 -5
  280. package/es/input-number/style/css.d.ts +0 -1
  281. package/es/input-number/style/index.d.ts +0 -1
  282. package/es/input-number/type.d.ts +0 -156
  283. package/es/input-number/useInputNumber.d.ts +0 -51
  284. package/es/ip-input/IPInput.d.ts +0 -5
  285. package/es/ip-input/defaultProps.d.ts +0 -2
  286. package/es/ip-input/index.d.ts +0 -3
  287. package/es/ip-input/style/css.d.ts +0 -1
  288. package/es/ip-input/style/index.d.ts +0 -1
  289. package/es/ip-input/type.d.ts +0 -113
  290. package/es/ip-input/utils.d.ts +0 -35
  291. package/es/layout/Aside.d.ts +0 -11
  292. package/es/layout/Layout.d.ts +0 -26
  293. package/es/layout/defaultProps.d.ts +0 -5
  294. package/es/layout/index.d.ts +0 -10
  295. package/es/layout/style/css.d.ts +0 -1
  296. package/es/layout/style/index.d.ts +0 -1
  297. package/es/layout/type.d.ts +0 -38
  298. package/es/list/List.d.ts +0 -17
  299. package/es/list/ListItem.d.ts +0 -15
  300. package/es/list/ListItemMeta.d.ts +0 -10
  301. package/es/list/defaultProps.d.ts +0 -7
  302. package/es/list/hooks/useListVirtualScroll.d.ts +0 -24
  303. package/es/list/index.d.ts +0 -10
  304. package/es/list/style/css.d.ts +0 -1
  305. package/es/list/style/index.d.ts +0 -1
  306. package/es/list/type.d.ts +0 -92
  307. package/es/loading/Gradient.d.ts +0 -6
  308. package/es/loading/Loading.d.ts +0 -7
  309. package/es/loading/circleAdapter.d.ts +0 -1
  310. package/es/loading/defaultProps.d.ts +0 -2
  311. package/es/loading/index.d.ts +0 -5
  312. package/es/loading/style/css.d.ts +0 -1
  313. package/es/loading/style/index.d.ts +0 -1
  314. package/es/loading/type.d.ts +0 -68
  315. package/es/loading/utils/setStyle.d.ts +0 -7
  316. package/es/locale/LocalReceiver.d.ts +0 -6
  317. package/es/locale/ar_KW.d.ts +0 -3
  318. package/es/locale/en_US.d.ts +0 -3
  319. package/es/locale/it_IT.d.ts +0 -3
  320. package/es/locale/ja_JP.d.ts +0 -3
  321. package/es/locale/ko_KR.d.ts +0 -3
  322. package/es/locale/ru_RU.d.ts +0 -3
  323. package/es/locale/zh_CN.d.ts +0 -3
  324. package/es/locale/zh_TW.d.ts +0 -3
  325. package/es/myform/index.d.ts +0 -0
  326. package/es/notification/Notify.d.ts +0 -11
  327. package/es/notification/NotifyContainer.d.ts +0 -13
  328. package/es/notification/NotifyContext.d.ts +0 -23
  329. package/es/notification/NotifyItem.d.ts +0 -4
  330. package/es/notification/index.d.ts +0 -3
  331. package/es/notification/style/css.d.ts +0 -1
  332. package/es/notification/style/index.d.ts +0 -1
  333. package/es/notification/type.d.ts +0 -22
  334. package/es/popup/Popup.d.ts +0 -21
  335. package/es/popup/defaultProps.d.ts +0 -5
  336. package/es/popup/hooks/useTrigger.d.ts +0 -20
  337. package/es/popup/index.d.ts +0 -5
  338. package/es/popup/style/css.d.ts +0 -1
  339. package/es/popup/style/index.d.ts +0 -1
  340. package/es/popup/type.d.ts +0 -109
  341. package/es/portal/Portal.d.ts +0 -16
  342. package/es/portal/index.d.ts +0 -1
  343. package/es/radio/Radio.d.ts +0 -8
  344. package/es/radio/RadioGroup.d.ts +0 -14
  345. package/es/radio/defaultProps.d.ts +0 -3
  346. package/es/radio/index.d.ts +0 -10
  347. package/es/radio/style/css.d.ts +0 -0
  348. package/es/radio/style/index.d.ts +0 -1
  349. package/es/radio/type.d.ts +0 -117
  350. package/es/radio/useKeyboard.d.ts +0 -4
  351. package/es/select/Option.d.ts +0 -24
  352. package/es/select/OptionGroup.d.ts +0 -7
  353. package/es/select/PopupContent.d.ts +0 -24
  354. package/es/select/Select.d.ts +0 -13
  355. package/es/select/defaultProps.d.ts +0 -4
  356. package/es/select/hooks/useOptions.d.ts +0 -16
  357. package/es/select/hooks/usePanelVirtualScroll.d.ts +0 -24
  358. package/es/select/index.d.ts +0 -8
  359. package/es/select/style/css.d.ts +0 -1
  360. package/es/select/style/index.d.ts +0 -1
  361. package/es/select/type.d.ts +0 -344
  362. package/es/select/utils/helper.d.ts +0 -18
  363. package/es/select-input/SelectInput.d.ts +0 -11
  364. package/es/select-input/defaultProps.d.ts +0 -2
  365. package/es/select-input/hook/useMultiple.d.ts +0 -23
  366. package/es/select-input/hook/useOverlayInnerStyle.d.ts +0 -11
  367. package/es/select-input/hook/useSingle.d.ts +0 -16
  368. package/es/select-input/index.d.ts +0 -5
  369. package/es/select-input/interface.d.ts +0 -17
  370. package/es/select-input/style/css.d.ts +0 -1
  371. package/es/select-input/style/index.d.ts +0 -1
  372. package/es/select-input/type.d.ts +0 -243
  373. package/es/slider/Slider.d.ts +0 -7
  374. package/es/slider/SliderHandleButton.d.ts +0 -11
  375. package/es/slider/defaultProps.d.ts +0 -5
  376. package/es/slider/index.d.ts +0 -5
  377. package/es/slider/style/css.d.ts +0 -1
  378. package/es/slider/style/index.d.ts +0 -1
  379. package/es/slider/type.d.ts +0 -78
  380. package/es/space/defaultProps.d.ts +0 -0
  381. package/es/space/index.d.ts +0 -0
  382. package/es/space/type.d.ts +0 -0
  383. package/es/style/index.d.ts +0 -1
  384. package/es/switch/Switch.d.ts +0 -9
  385. package/es/switch/defaultProps.d.ts +0 -2
  386. package/es/switch/index.d.ts +0 -4
  387. package/es/switch/style/css.d.ts +0 -1
  388. package/es/switch/style/index.d.ts +0 -1
  389. package/es/switch/type.d.ts +0 -48
  390. package/es/tab/TabBar.d.ts +0 -9
  391. package/es/tab/TabNav.d.ts +0 -10
  392. package/es/tab/TabNavItem.d.ts +0 -15
  393. package/es/tab/TabPanel.d.ts +0 -9
  394. package/es/tab/Tabs.d.ts +0 -10
  395. package/es/tab/defaultProps.d.ts +0 -3
  396. package/es/tab/index.d.ts +0 -8
  397. package/es/tab/style/index.d.ts +0 -1
  398. package/es/tab/type.d.ts +0 -130
  399. package/es/tab/useTabClass.d.ts +0 -8
  400. package/es/table/Cell.d.ts +0 -18
  401. package/es/table/TBody.d.ts +0 -28
  402. package/es/table/THead.d.ts +0 -10
  403. package/es/table/TR.d.ts +0 -28
  404. package/es/table/Table.d.ts +0 -6
  405. package/es/table/defaultProps.d.ts +0 -2
  406. package/es/table/hooks/index.d.ts +0 -4
  407. package/es/table/hooks/useTableClassName.d.ts +0 -26
  408. package/es/table/hooks/useTableStyle.d.ts +0 -11
  409. package/es/table/index.d.ts +0 -5
  410. package/es/table/style/css.d.ts +0 -1
  411. package/es/table/style/index.d.ts +0 -1
  412. package/es/table/type.d.ts +0 -195
  413. package/es/tag/Tag.d.ts +0 -14
  414. package/es/tag/defaultProps.d.ts +0 -7
  415. package/es/tag/index.d.ts +0 -4
  416. package/es/tag/style/css.d.ts +0 -1
  417. package/es/tag/style/index.d.ts +0 -1
  418. package/es/tag/type.d.ts +0 -169
  419. package/es/tag-input/TagInput.d.ts +0 -9
  420. package/es/tag-input/defaultProps.d.ts +0 -2
  421. package/es/tag-input/hooks/useHover.d.ts +0 -17
  422. package/es/tag-input/hooks/useTagList.d.ts +0 -30
  423. package/es/tag-input/hooks/useTagScroll.d.ts +0 -25
  424. package/es/tag-input/index.d.ts +0 -5
  425. package/es/tag-input/style/css.d.ts +0 -1
  426. package/es/tag-input/style/index.d.ts +0 -1
  427. package/es/tag-input/type.d.ts +0 -235
  428. package/es/tag-input/useTagList.d.ts +0 -30
  429. package/es/utils/composeRefs.d.ts +0 -2
  430. package/es/utils/dom.d.ts +0 -7
  431. package/es/utils/forwardRefWithStatics.d.ts +0 -2
  432. package/es/utils/getScrollbarWidth.d.ts +0 -6
  433. package/es/utils/helper.d.ts +0 -46
  434. package/es/utils/input-number/large-number.d.ts +0 -85
  435. package/es/utils/input-number/number.d.ts +0 -81
  436. package/es/utils/isFragment.d.ts +0 -4
  437. package/es/utils/listener.d.ts +0 -4
  438. package/es/utils/log/index.d.ts +0 -2
  439. package/es/utils/log/log.d.ts +0 -3
  440. package/es/utils/log/types.d.ts +0 -8
  441. package/es/utils/noop.d.ts +0 -2
  442. package/es/utils/number.d.ts +0 -7
  443. package/es/utils/parentTNode.d.ts +0 -10
  444. package/es/utils/parseTNode.d.ts +0 -10
  445. package/es/utils/react-render.d.ts +0 -16
  446. package/es/utils/ref.d.ts +0 -1
  447. package/es/utils/refs.d.ts +0 -13
  448. package/es/utils/scroll.d.ts +0 -3
  449. package/es/utils/style.d.ts +0 -4
  450. package/es/utils/transition.d.ts +0 -20
@@ -1,59 +0,0 @@
1
- import React from "react";
2
- import { TdFormProps, TdFormListProps, NamePath } from "./type";
3
- import { FormItemInstance } from "./FormItem";
4
- import { InternalFormInstance } from "./hooks/interface";
5
- declare const FormContext: React.Context<{
6
- form?: InternalFormInstance;
7
- labelWidth?: TdFormProps["labelWidth"];
8
- statusIcon?: TdFormProps["statusIcon"];
9
- labelAlign: TdFormProps["labelAlign"];
10
- layout: TdFormProps["layout"];
11
- colon: TdFormProps["colon"];
12
- initialData: TdFormProps["initialData"];
13
- requiredMark: TdFormProps["requiredMark"];
14
- requiredMarkPosition: TdFormProps["requiredMarkPosition"];
15
- scrollToFirstError: TdFormProps["scrollToFirstError"];
16
- showErrorMessage: TdFormProps["showErrorMessage"];
17
- resetType: TdFormProps["resetType"];
18
- disabled: TdFormProps["disabled"];
19
- rules: TdFormProps["rules"];
20
- errorMessage: TdFormProps["errorMessage"];
21
- formMapRef: React.RefObject<Map<NamePath, React.RefObject<FormItemInstance>>>;
22
- floatingFormDataRef: React.RefObject<Record<string, unknown>>;
23
- onFormItemValueChange: (changedValue: Record<string, unknown>) => void;
24
- }>;
25
- export declare const useFormContext: () => {
26
- form?: InternalFormInstance;
27
- labelWidth?: TdFormProps["labelWidth"];
28
- statusIcon?: TdFormProps["statusIcon"];
29
- labelAlign: TdFormProps["labelAlign"];
30
- layout: TdFormProps["layout"];
31
- colon: TdFormProps["colon"];
32
- initialData: TdFormProps["initialData"];
33
- requiredMark: TdFormProps["requiredMark"];
34
- requiredMarkPosition: TdFormProps["requiredMarkPosition"];
35
- scrollToFirstError: TdFormProps["scrollToFirstError"];
36
- showErrorMessage: TdFormProps["showErrorMessage"];
37
- resetType: TdFormProps["resetType"];
38
- disabled: TdFormProps["disabled"];
39
- rules: TdFormProps["rules"];
40
- errorMessage: TdFormProps["errorMessage"];
41
- formMapRef: React.RefObject<Map<NamePath, React.RefObject<FormItemInstance>>>;
42
- floatingFormDataRef: React.RefObject<Record<string, unknown>>;
43
- onFormItemValueChange: (changedValue: Record<string, unknown>) => void;
44
- };
45
- export default FormContext;
46
- export declare const FormListContext: React.Context<{
47
- name: NamePath;
48
- rules: TdFormListProps["rules"];
49
- formListMapRef: React.RefObject<Map<NamePath, React.RefObject<FormItemInstance>>>;
50
- initialData: TdFormListProps["initialData"];
51
- form?: InternalFormInstance;
52
- }>;
53
- export declare const useFormListContext: () => {
54
- name: NamePath;
55
- rules: TdFormListProps["rules"];
56
- formListMapRef: React.RefObject<Map<NamePath, React.RefObject<FormItemInstance>>>;
57
- initialData: TdFormListProps["initialData"];
58
- form?: InternalFormInstance;
59
- };
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { StyledProps } from "../common";
3
- import type { FormInstanceFunctions, NamePath, TdFormItemProps, ValueType } from "./type";
4
- export interface FormItemProps extends TdFormItemProps, StyledProps {
5
- children?: React.ReactNode | React.ReactNode[] | ((form: FormInstanceFunctions) => React.ReactElement);
6
- }
7
- export interface FormItemInstance {
8
- name?: NamePath;
9
- isUpdated?: boolean;
10
- value?: ValueType;
11
- getValue?: (...args: unknown[]) => unknown;
12
- setValue?: (...args: unknown[]) => unknown;
13
- setField?: (...args: unknown[]) => unknown;
14
- validate?: (...args: unknown[]) => unknown;
15
- resetField?: (...args: unknown[]) => unknown;
16
- setValidateMessage?: (...args: unknown[]) => unknown;
17
- getValidateMessage?: (...args: unknown[]) => unknown;
18
- resetValidate?: (...args: unknown[]) => unknown;
19
- validateOnly?: (...args: unknown[]) => unknown;
20
- isFormList?: boolean;
21
- }
22
- declare const FormItem: React.ForwardRefExoticComponent<FormItemProps & React.RefAttributes<FormItemInstance>>;
23
- export default FormItem;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import type { TdFormListProps } from "./type";
3
- declare const FormList: React.FC<TdFormListProps>;
4
- export default FormList;
@@ -1,6 +0,0 @@
1
- export declare const enum ValidateStatus {
2
- SUCCESS = "success",
3
- WARNING = "warning",
4
- ERROR = "error",
5
- VALIDATING = "validating"
6
- }
@@ -1,3 +0,0 @@
1
- import { TdFormProps, TdFormItemProps } from "./type";
2
- export declare const formDefaultProps: TdFormProps;
3
- export declare const formItemDefaultProps: TdFormItemProps;
@@ -1,2 +0,0 @@
1
- export type EasingFunction = (t: number, b: number, c: number, d: number) => number;
2
- export declare const easeInOutCubic: EasingFunction;
@@ -1,37 +0,0 @@
1
- import isDate from "validator/lib/isDate";
2
- import isEmail from "validator/lib/isEmail";
3
- import isURL from "validator/lib/isURL";
4
- import { CustomValidator, FormRule, ValueType, AllValidateResult } from "./type";
5
- export declare function isValueEmpty(val: ValueType): boolean;
6
- declare const VALIDATE_MAP: {
7
- date: typeof isDate;
8
- url: typeof isURL;
9
- email: typeof isEmail;
10
- required: (val: ValueType) => boolean;
11
- whitespace: (val: ValueType) => boolean;
12
- boolean: (val: ValueType) => boolean;
13
- max: (val: ValueType, num: number) => boolean;
14
- min: (val: ValueType, num: number) => boolean;
15
- len: (val: ValueType, num: number) => boolean;
16
- number: (val: ValueType) => boolean;
17
- enum: (val: ValueType, strs: Array<string>) => boolean;
18
- idcard: (val: ValueType) => boolean;
19
- telnumber: (val: ValueType) => boolean;
20
- pattern: (val: ValueType, regexp: RegExp) => boolean;
21
- validator: (val: ValueType, validate: CustomValidator) => ReturnType<CustomValidator>;
22
- };
23
- export type ValidateFuncType = (typeof VALIDATE_MAP)[keyof typeof VALIDATE_MAP];
24
- /**
25
- * 校验某一条数据的某一条规则,一种校验规则不满足则不再进行校验。
26
- * @param value 值
27
- * @param rule 校验规则
28
- * @returns 两种校验结果,一种是内置校验规则的校验结果,二种是自定义校验规则(validator)的校验结果
29
- */
30
- export declare function validateOneRule(value: ValueType, rule: FormRule): Promise<AllValidateResult>;
31
- export declare function validate(value: ValueType, rules: Array<FormRule>): Promise<AllValidateResult[]>;
32
- /**
33
- * Replace with template.
34
- * `${name} is wrong` + { name: 'password' } = password is wrong
35
- */
36
- export declare function parseMessage(template: string, options: Record<string, string>): string;
37
- export {};
@@ -1,16 +0,0 @@
1
- import type { NamePath, FormInstanceFunctions } from "../type";
2
- export type Store = Record<string, unknown>;
3
- export type WatchCallBack = (values: Store, namePathList: NamePath) => void;
4
- export interface InternalHooks {
5
- notifyWatch: (name: NamePath) => void;
6
- registerWatch: (callback: WatchCallBack) => () => void;
7
- getPrevStore: () => Store;
8
- setPrevStore: (store: Store) => void;
9
- flashQueue: () => void;
10
- setForm: (form: FormInstanceFunctions) => void;
11
- }
12
- export interface InternalFormInstance extends FormInstanceFunctions {
13
- _init?: boolean;
14
- store?: Store;
15
- getInternalHooks?: (secret: string) => InternalHooks | null;
16
- }
@@ -1,3 +0,0 @@
1
- import type { InternalFormInstance } from "./interface";
2
- export declare const HOOK_MARK = "TD_FORM_INTERNAL_HOOKS";
3
- export default function useForm(form?: InternalFormInstance): InternalFormInstance[];
@@ -1,9 +0,0 @@
1
- import { FormItemProps } from "../FormItem";
2
- export declare const ctrlKeyMap: Map<any, any>;
3
- export declare const initialDataMap: Map<any, any>;
4
- export default function useFormItemInitialData(name: FormItemProps["name"]): {
5
- getDefaultInitialData: ({ children, initialData }: {
6
- children: FormItemProps["children"];
7
- initialData: FormItemProps["initialData"];
8
- }) => any;
9
- };
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- export default function useFormItemStyle(props: any): {
3
- formItemClass: string;
4
- formItemLabelClass: string;
5
- contentClass: () => string;
6
- labelStyle: {};
7
- contentStyle: {};
8
- helpNode: React.JSX.Element;
9
- extraNode: React.JSX.Element;
10
- };
@@ -1,16 +0,0 @@
1
- import type { TdFormProps, FormValidateResult, FormResetParams, FormValidateMessage, NamePath } from "../type";
2
- import type { FormItemInstance } from "../FormItem";
3
- export default function useInstance(props: TdFormProps, formRef: any, formMapRef: React.MutableRefObject<Map<NamePath, React.RefObject<FormItemInstance>>>, floatingFormDataRef: React.RefObject<Record<string, unknown>>): {
4
- submit: (e?: React.FormEvent<HTMLFormElement>) => void;
5
- reset: (params: FormResetParams<FormData>) => void;
6
- validate: (param?: Record<string, unknown>) => Promise<FormValidateResult<FormData>>;
7
- validateOnly: (param?: Record<string, unknown>) => Promise<FormValidateResult<FormData>>;
8
- clearValidate: (fields?: Array<keyof FormData>) => void;
9
- setFields: (fields?: any[]) => void;
10
- setFieldsValue: (fields?: {}) => void;
11
- setValidateMessage: (message: FormValidateMessage<FormData>) => void;
12
- getValidateMessage: (fields?: Array<keyof FormData>) => {};
13
- getFieldValue: (name: NamePath) => unknown;
14
- getFieldsValue: (nameList: string[] | boolean) => {};
15
- getCurrentElement: () => any;
16
- };
@@ -1,3 +0,0 @@
1
- import type { NamePath } from "../type";
2
- import type { InternalFormInstance } from "./interface";
3
- export default function useWatch(name: NamePath, form: InternalFormInstance): any;
@@ -1,7 +0,0 @@
1
- import "./style/index.js";
2
- export type { FormProps } from "./Form";
3
- export type { FormItemProps } from "./FormItem";
4
- export * from "./type";
5
- export * from "./hooks/interface";
6
- export declare const Form: import("react").FunctionComponent<import("./Form").FormProps & import("react").RefAttributes<import("./type").FormInstanceFunctions<import("./type").Data>>> & Record<string, unknown>;
7
- export default Form;
@@ -1,39 +0,0 @@
1
- import { ScrollContainer, ScrollContainerElement } from "../common";
2
- import { EasingFunction } from "./easing";
3
- export declare function hasBodyScrollbar(): boolean;
4
- export declare const isNodeOverflow: (ele: Element | Element[]) => boolean;
5
- /**
6
- * 获取滚动容器
7
- * 因为 document 不存在 scroll 等属性, 因此排除 document
8
- * window | HTMLElement
9
- * @param {ScrollContainerElement} [container='body']
10
- * @returns {ScrollContainer}
11
- */
12
- export declare const getScrollContainer: (container?: ScrollContainer) => ScrollContainerElement;
13
- /**
14
- * 获取滚动距离
15
- *
16
- * @export
17
- * @param {ScrollTarget} target
18
- * @param {boolean} isLeft true 为获取 scrollLeft, false 为获取 scrollTop
19
- * @returns {number}
20
- */
21
- export declare function getScroll(target: ScrollTarget, isLeft?: boolean): number;
22
- export type ScrollTarget = HTMLElement | Window | Document;
23
- interface ScrollTopOptions {
24
- container?: ScrollTarget;
25
- duration?: number;
26
- easing?: EasingFunction;
27
- }
28
- export declare function scrollTo(target: number, opt: ScrollTopOptions): Promise<unknown>;
29
- /**
30
- * 获取当前视图滑动的距离
31
- * @returns { scrollTop: number, scrollLeft: number }
32
- */
33
- export declare function getWindowScroll(): {
34
- scrollTop: number;
35
- scrollLeft: number;
36
- };
37
- export type AnchorContainer = HTMLElement | Window;
38
- export declare function getOffsetTop(target: HTMLElement, container: AnchorContainer): number;
39
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};