@tendaui/react 1.1.1 → 1.1.2
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.
- package/es/_chunks/{dep-D7LanWes.js → dep-4LYjB3c6.js} +3 -18
- package/es/_chunks/dep-4LYjB3c6.js.map +1 -0
- package/es/_chunks/dep-5U9UjDaf.js +345 -0
- package/es/_chunks/dep-5U9UjDaf.js.map +1 -0
- package/es/_chunks/{dep-B7HmDtze.js → dep-B4_O1Vgv.js} +2 -2
- package/es/_chunks/{dep-B7HmDtze.js.map → dep-B4_O1Vgv.js.map} +1 -1
- package/es/_chunks/dep-BP0-apUT.js.map +1 -1
- package/es/_chunks/dep-BRbJGDI9.js +7 -0
- package/es/_chunks/dep-BRbJGDI9.js.map +1 -0
- package/es/_chunks/{dep-EcrDKDlu.js → dep-BYlJzn45.js} +10 -9
- package/es/_chunks/dep-BYlJzn45.js.map +1 -0
- package/es/_chunks/dep-BbeHB7S3.js +116 -0
- package/es/_chunks/dep-BbeHB7S3.js.map +1 -0
- package/es/_chunks/{dep-DB5wmwh1.js → dep-Bjfn7Zv_.js} +2 -2
- package/es/_chunks/{dep-DB5wmwh1.js.map → dep-Bjfn7Zv_.js.map} +1 -1
- package/es/_chunks/{dep-C36au4Ip.js → dep-BuIAffJt.js} +2 -2
- package/es/_chunks/{dep-C36au4Ip.js.map → dep-BuIAffJt.js.map} +1 -1
- package/es/_chunks/{dep-bWaVq_y3.js → dep-ByzdZjUR.js} +2 -2
- package/es/_chunks/dep-ByzdZjUR.js.map +1 -0
- package/es/_chunks/dep-CD_4-1Xb.js +103 -0
- package/es/_chunks/dep-CD_4-1Xb.js.map +1 -0
- package/es/_chunks/{dep-Dk2xX8lh.js → dep-CJCt0IS0.js} +5 -212
- package/es/_chunks/dep-CJCt0IS0.js.map +1 -0
- package/es/_chunks/dep-CMPsNAXF.js +52 -0
- package/es/_chunks/dep-CMPsNAXF.js.map +1 -0
- package/es/_chunks/dep-COy5g3FT.js +512 -0
- package/es/_chunks/dep-COy5g3FT.js.map +1 -0
- package/es/_chunks/{dep-CoIiHOgo.js → dep-CRURwzDj.js} +3 -3
- package/es/_chunks/{dep-CoIiHOgo.js.map → dep-CRURwzDj.js.map} +1 -1
- package/es/_chunks/dep-C_wPqvpm.js +36 -0
- package/es/_chunks/dep-C_wPqvpm.js.map +1 -0
- package/es/_chunks/dep-Ccktr_jk.js +33 -0
- package/es/_chunks/dep-Ccktr_jk.js.map +1 -0
- package/es/_chunks/dep-Chz4ZJCb.js +20 -0
- package/es/_chunks/dep-Chz4ZJCb.js.map +1 -0
- package/es/_chunks/dep-CkmtEv0Y.js +55 -0
- package/es/_chunks/dep-CkmtEv0Y.js.map +1 -0
- package/es/_chunks/dep-DJmE940f.js +764 -0
- package/es/_chunks/dep-DJmE940f.js.map +1 -0
- package/es/_chunks/{dep-DHWwZ2Nj.js → dep-DQ6kXoi8.js} +2 -2
- package/es/_chunks/{dep-DHWwZ2Nj.js.map → dep-DQ6kXoi8.js.map} +1 -1
- package/es/_chunks/{dep-0QH2Ee4R.js → dep-DRwijJcv.js} +5 -5
- package/es/_chunks/dep-DRwijJcv.js.map +1 -0
- package/es/_chunks/dep-DTlQ2dCA.js +46 -0
- package/es/_chunks/dep-DTlQ2dCA.js.map +1 -0
- package/es/_chunks/dep-DURB9x8g.js +170 -0
- package/es/_chunks/dep-DURB9x8g.js.map +1 -0
- package/es/_chunks/{dep-DZ_0EvBk.js → dep-DX65P8M9.js} +4 -45
- package/es/_chunks/dep-DX65P8M9.js.map +1 -0
- package/es/_chunks/{dep-BH5n5r1M.js → dep-DbVHGoUC.js} +2 -2
- package/es/_chunks/dep-DbVHGoUC.js.map +1 -0
- package/es/_chunks/dep-Dlppf0JU.js +214 -0
- package/es/_chunks/dep-Dlppf0JU.js.map +1 -0
- package/es/_chunks/dep-Dr5wkz0z.js +266 -0
- package/es/_chunks/dep-Dr5wkz0z.js.map +1 -0
- package/es/_chunks/dep-DwWrhxkd.js.map +1 -1
- package/es/_chunks/dep-Tshfumgl.js +31 -0
- package/es/_chunks/dep-Tshfumgl.js.map +1 -0
- package/es/_chunks/{dep-u1x3x6MJ.js → dep-gy8uvBaS.js} +2 -2
- package/es/_chunks/{dep-u1x3x6MJ.js.map → dep-gy8uvBaS.js.map} +1 -1
- package/es/_chunks/dep-oUgTcXgm.js +11 -0
- package/es/_chunks/dep-oUgTcXgm.js.map +1 -0
- package/es/_chunks/dep-zOZQ0R9g.js +1181 -0
- package/es/_chunks/dep-zOZQ0R9g.js.map +1 -0
- package/es/alert/Alert.d.ts +7 -0
- package/es/alert/Alert.js +4 -3
- package/es/alert/Alert.js.map +1 -1
- package/es/alert/defaultProps.d.ts +2 -0
- package/es/alert/index.d.ts +5 -0
- package/es/alert/index.js +4 -3
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/css.d.ts +1 -0
- package/es/alert/style/index.d.ts +1 -0
- package/es/alert/type.d.ts +45 -0
- package/es/badge/Badge.d.ts +7 -0
- package/es/badge/Badge.js +3 -2
- package/es/badge/Badge.js.map +1 -1
- package/es/badge/defaultProps.d.ts +2 -0
- package/es/badge/index.d.ts +5 -0
- package/es/badge/index.js +3 -2
- package/es/badge/index.js.map +1 -1
- package/es/badge/style/css.d.ts +1 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/type.d.ts +50 -0
- package/es/button/Button.d.ts +6 -0
- package/es/button/Button.js +7 -5
- package/es/button/Button.js.map +1 -1
- package/es/button/_example/base.js +171 -0
- package/es/button/_example/base.js.map +1 -0
- package/es/button/_example/icon.js +181 -0
- package/es/button/_example/icon.js.map +1 -0
- package/es/button/defaultProps.d.ts +2 -0
- package/es/button/index.d.ts +5 -0
- package/es/button/index.js +7 -5
- package/es/button/index.js.map +1 -1
- package/es/button/style/css.d.ts +1 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/type.d.ts +81 -0
- package/es/checkbox/Checkbox.d.ts +10 -0
- package/es/checkbox/Checkbox.js +5 -4
- package/es/checkbox/Checkbox.js.map +1 -1
- package/es/checkbox/CheckboxGroup.d.ts +14 -0
- package/es/checkbox/CheckboxGroup.js +5 -4
- package/es/checkbox/CheckboxGroup.js.map +1 -1
- package/es/checkbox/defaultProps.d.ts +3 -0
- package/es/checkbox/index.d.ts +11 -0
- package/es/checkbox/index.js +5 -4
- package/es/checkbox/index.js.map +1 -1
- package/es/checkbox/style/css.d.ts +1 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/type.d.ts +115 -0
- package/es/color-picker/ColorPickPanel.d.ts +4 -0
- package/es/color-picker/ColorPickPanel.js +44 -0
- package/es/color-picker/ColorPickPanel.js.map +1 -0
- package/es/color-picker/ColorPicker.d.ts +4 -0
- package/es/color-picker/ColorPicker.js +118 -0
- package/es/color-picker/ColorPicker.js.map +1 -0
- package/es/color-picker/components/panel/alpha.d.ts +4 -0
- package/es/color-picker/components/panel/alpha.js +44 -0
- package/es/color-picker/components/panel/alpha.js.map +1 -0
- package/es/color-picker/components/panel/format/index.d.ts +10 -0
- package/es/color-picker/components/panel/format/index.js +128 -0
- package/es/color-picker/components/panel/format/index.js.map +1 -0
- package/es/color-picker/components/panel/format/inputs.d.ts +4 -0
- package/es/color-picker/components/panel/format/inputs.js +147 -0
- package/es/color-picker/components/panel/format/inputs.js.map +1 -0
- package/es/color-picker/components/panel/header.d.ts +13 -0
- package/es/color-picker/components/panel/header.js +60 -0
- package/es/color-picker/components/panel/header.js.map +1 -0
- package/es/color-picker/components/panel/hue.d.ts +4 -0
- package/es/color-picker/components/panel/hue.js +33 -0
- package/es/color-picker/components/panel/hue.js.map +1 -0
- package/es/color-picker/components/panel/index.d.ts +4 -0
- package/es/color-picker/components/panel/index.js +32 -0
- package/es/color-picker/components/panel/index.js.map +1 -0
- package/es/color-picker/components/panel/saturation.d.ts +4 -0
- package/es/color-picker/components/panel/saturation.js +101 -0
- package/es/color-picker/components/panel/saturation.js.map +1 -0
- package/es/color-picker/components/panel/slider.d.ts +11 -0
- package/es/color-picker/components/panel/slider.js +121 -0
- package/es/color-picker/components/panel/slider.js.map +1 -0
- package/es/color-picker/components/panel/swatches.d.ts +11 -0
- package/es/color-picker/components/panel/swatches.js +100 -0
- package/es/color-picker/components/panel/swatches.js.map +1 -0
- package/es/color-picker/components/trigger.d.ts +9 -0
- package/es/color-picker/components/trigger.js +73 -0
- package/es/color-picker/components/trigger.js.map +1 -0
- package/es/color-picker/defaultProps.d.ts +2 -0
- package/es/color-picker/helpers.d.ts +5 -0
- package/es/color-picker/hooks/useClassNames.d.ts +2 -0
- package/es/color-picker/hooks/useStyles.d.ts +14 -0
- package/es/color-picker/index.d.ts +6 -0
- package/es/color-picker/index.js +62 -0
- package/es/color-picker/index.js.map +1 -0
- package/es/color-picker/style/index.css +597 -0
- package/es/color-picker/style/index.d.ts +1 -0
- package/es/color-picker/style/index.js +2 -0
- package/es/color-picker/style/index.js.map +1 -0
- package/es/color-picker/type.d.ts +135 -0
- package/es/color-picker/utils/color-picker/cmyk.d.ts +27 -0
- package/es/color-picker/utils/color-picker/color.d.ts +144 -0
- package/es/color-picker/utils/color-picker/constants.d.ts +30 -0
- package/es/color-picker/utils/color-picker/draggable.d.ts +23 -0
- package/es/color-picker/utils/color-picker/format.d.ts +64 -0
- package/es/color-picker/utils/color-picker/gradient.d.ts +22 -0
- package/es/color-picker/utils/color-picker/index.d.ts +7 -0
- package/es/color-picker/utils/color-picker/index.js +147 -0
- package/es/color-picker/utils/color-picker/index.js.map +1 -0
- package/es/color-picker/utils/color-picker/types.d.ts +28 -0
- package/es/common/Check.d.ts +22 -0
- package/es/common/Check.js +4 -3
- package/es/common/Check.js.map +1 -1
- package/es/common/FakeArrow.d.ts +9 -0
- package/es/common/FakeArrow.js +3 -2
- package/es/common/FakeArrow.js.map +1 -1
- package/es/common/PluginContainer.d.ts +9 -0
- package/es/common/PluginContainer.js +2 -1
- package/es/common/PluginContainer.js.map +1 -1
- package/es/common/Portal.d.ts +16 -0
- package/es/common/Portal.js +6 -3
- package/es/common/Portal.js.map +1 -1
- package/es/common/observe.d.ts +1 -0
- package/es/common.d.ts +81 -0
- package/es/config-provider/ConfigContext.d.ts +13 -0
- package/es/config-provider/ConfigContext.js +5 -16
- package/es/config-provider/ConfigContext.js.map +1 -1
- package/es/config-provider/ConfigProvider.d.ts +25 -0
- package/es/config-provider/ConfigProvider.js +2 -1
- package/es/config-provider/ConfigProvider.js.map +1 -1
- package/es/config-provider/index.d.ts +7 -0
- package/es/config-provider/index.js +2 -1
- package/es/config-provider/index.js.map +1 -1
- package/es/config-provider/type.d.ts +1029 -0
- package/es/dialog/Dialog.d.ts +8 -0
- package/es/dialog/Dialog.js +12 -149
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.d.ts +8 -0
- package/es/dialog/DialogCard.js +9 -7
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/defaultProps.d.ts +6 -0
- package/es/dialog/hooks/useDialogDrag.d.ts +7 -0
- package/es/dialog/hooks/useDialogEsc.d.ts +3 -0
- package/es/dialog/hooks/useDialogPosition.d.ts +2 -0
- package/es/dialog/hooks/useLockStyle.d.ts +2 -0
- package/es/dialog/index.d.ts +8 -0
- package/es/dialog/index.js +12 -8
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.d.ts +6 -0
- package/es/dialog/plugin.js +15 -10
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/css.d.ts +1 -0
- package/es/dialog/style/index.d.ts +1 -0
- package/es/dialog/type.d.ts +227 -0
- package/es/dialog/utils.d.ts +1 -0
- package/es/drawer/Drawer.d.ts +11 -0
- package/es/drawer/Drawer.js +458 -0
- package/es/drawer/Drawer.js.map +1 -0
- package/es/drawer/defaultProps.d.ts +2 -0
- package/es/drawer/hooks/useDrag.d.ts +8 -0
- package/es/drawer/hooks/useLockStyle.d.ts +1 -0
- package/es/drawer/index.d.ts +4 -0
- package/es/drawer/index.js +39 -0
- package/es/drawer/index.js.map +1 -0
- package/es/drawer/style/css.d.ts +1 -0
- package/es/drawer/style/css.js +1 -0
- package/es/drawer/style/index.css +231 -0
- package/es/drawer/style/index.d.ts +1 -0
- package/es/drawer/style/index.js +2 -0
- package/es/drawer/style/index.js.map +1 -0
- package/es/drawer/type.d.ts +199 -0
- package/es/drawer/utils/index.d.ts +23 -0
- package/es/drawer/utils/index.js +46 -0
- package/es/drawer/utils/index.js.map +1 -0
- package/es/fireworks/Fireworks.d.ts +7 -0
- package/es/fireworks/Fireworks.js +139 -0
- package/es/fireworks/Fireworks.js.map +1 -0
- package/es/fireworks/index.d.ts +5 -0
- package/es/fireworks/index.js +16 -0
- package/es/fireworks/index.js.map +1 -0
- package/es/fireworks/style/css.d.ts +1 -0
- package/es/fireworks/style/css.js +2 -0
- package/es/fireworks/style/index.css +121 -0
- package/es/fireworks/style/index.d.ts +1 -0
- package/es/fireworks/style/index.js +2 -0
- package/es/fireworks/style/index.js.map +1 -0
- package/es/fireworks/type.d.ts +69 -0
- package/es/form/Form.d.ts +8 -0
- package/es/form/Form.js +14 -10
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.d.ts +59 -0
- package/es/form/FormItem.d.ts +23 -0
- package/es/form/FormItem.js +14 -10
- package/es/form/FormItem.js.map +1 -1
- package/es/form/FormList.d.ts +4 -0
- package/es/form/FormList.js +2 -1
- package/es/form/FormList.js.map +1 -1
- package/es/form/const.d.ts +6 -0
- package/es/form/defaultProps.d.ts +3 -0
- package/es/form/easing.d.ts +2 -0
- package/es/form/formModel.d.ts +37 -0
- package/es/form/hooks/interface.d.ts +16 -0
- package/es/form/hooks/useForm.d.ts +3 -0
- package/es/form/hooks/useFormItemInitialData.d.ts +9 -0
- package/es/form/hooks/useFormItemStyle.d.ts +10 -0
- package/es/form/hooks/useFormItemStyle.js +4 -3
- package/es/form/hooks/useFormItemStyle.js.map +1 -1
- package/es/form/hooks/useInstance.d.ts +16 -0
- package/es/form/hooks/useInstance.js +5 -4
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/hooks/useWatch.d.ts +3 -0
- package/es/form/index.d.ts +7 -0
- package/es/form/index.js +14 -10
- package/es/form/index.js.map +1 -1
- package/es/form/scroll.d.ts +39 -0
- package/es/form/style/css.d.ts +1 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/form/type.d.ts +486 -0
- package/es/form/utils/index.d.ts +5 -0
- package/es/global-config/default-config.d.ts +84 -0
- package/es/global-config/locale/ar_KW.d.ts +239 -0
- package/es/global-config/locale/en_US.d.ts +263 -0
- package/es/global-config/locale/it_IT.d.ts +263 -0
- package/es/global-config/locale/ja_JP.d.ts +263 -0
- package/es/global-config/locale/ko_KR.d.ts +263 -0
- package/es/global-config/locale/ru_RU.d.ts +263 -0
- package/es/global-config/locale/zh_CN.d.ts +263 -0
- package/es/global-config/locale/zh_TW.d.ts +263 -0
- package/es/global-config/mobile/default-config.d.ts +7 -0
- package/es/global-config/mobile/locale/ar_KW.d.ts +98 -0
- package/es/global-config/mobile/locale/en_US.d.ts +99 -0
- package/es/global-config/mobile/locale/it_IT.d.ts +99 -0
- package/es/global-config/mobile/locale/ja_JP.d.ts +99 -0
- package/es/global-config/mobile/locale/ko_KR.d.ts +99 -0
- package/es/global-config/mobile/locale/ru_RU.d.ts +99 -0
- package/es/global-config/mobile/locale/zh_CN.d.ts +99 -0
- package/es/global-config/mobile/locale/zh_TW.d.ts +99 -0
- package/es/global-config/t.d.ts +25 -0
- package/es/hooks/useAttach.d.ts +10 -0
- package/es/hooks/useCommonClassName.d.ts +54 -0
- package/es/hooks/useConfig.d.ts +2 -0
- package/es/hooks/useControlled.d.ts +9 -0
- package/es/hooks/useDeepEffect.d.ts +7 -0
- package/es/hooks/useDefaultProps.d.ts +1 -0
- package/es/hooks/useDomCallback.d.ts +1 -0
- package/es/hooks/useDomRefCallback.d.ts +1 -0
- package/es/hooks/useDragSorter.d.ts +28 -0
- package/es/hooks/useEventCallback.d.ts +9 -0
- package/es/hooks/useGlobalConfig.d.ts +1 -0
- package/es/hooks/useGlobalIcon.d.ts +5 -0
- package/es/hooks/useLastest.d.ts +2 -0
- package/es/hooks/useLayoutEffect.d.ts +3 -0
- package/es/hooks/useMouseEvent.d.ts +25 -0
- package/es/hooks/useMutationObserver.d.ts +4 -0
- package/es/hooks/usePopper.d.ts +19 -0
- package/es/hooks/useResizeObserve.d.ts +1 -0
- package/es/hooks/useRipple.d.ts +0 -0
- package/es/hooks/useSetState.d.ts +7 -0
- package/es/hooks/useVirtualScroll.d.ts +30 -0
- package/es/hooks/useWindowSize.d.ts +6 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +68 -14
- package/es/index.js.map +1 -1
- package/es/input/Input.d.ts +16 -0
- package/es/input/Input.js +5 -5
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.d.ts +10 -0
- package/es/input/defaultProps.d.ts +17 -0
- package/es/input/index.d.ts +6 -0
- package/es/input/index.js +5 -3
- package/es/input/index.js.map +1 -1
- package/es/input/style/css.d.ts +1 -0
- package/es/input/style/index.d.ts +1 -0
- package/es/input/type.d.ts +237 -0
- package/es/input-number/InputNumber.d.ts +17 -0
- package/es/input-number/InputNumber.js +139 -0
- package/es/input-number/InputNumber.js.map +1 -0
- package/es/input-number/defaultProps.d.ts +2 -0
- package/es/input-number/index.d.ts +5 -0
- package/es/input-number/index.js +43 -0
- package/es/input-number/index.js.map +1 -0
- package/es/input-number/style/css.d.ts +1 -0
- package/es/input-number/style/css.js +1 -0
- package/es/input-number/style/index.css +331 -0
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/style/index.js.map +1 -0
- package/es/input-number/type.d.ts +156 -0
- package/es/input-number/useInputNumber.d.ts +51 -0
- package/es/input-number/useInputNumber.js +809 -0
- package/es/input-number/useInputNumber.js.map +1 -0
- package/es/ip-input/IPInput.d.ts +5 -0
- package/es/ip-input/IPInput.js +16 -0
- package/es/ip-input/IPInput.js.map +1 -0
- package/es/ip-input/defaultProps.d.ts +2 -0
- package/es/ip-input/index.d.ts +3 -0
- package/es/ip-input/index.js +16 -0
- package/es/ip-input/index.js.map +1 -0
- package/es/ip-input/style/index.css +323 -0
- package/es/ip-input/style/index.d.ts +1 -0
- package/es/ip-input/style/index.js +2 -0
- package/es/ip-input/style/index.js.map +1 -0
- package/es/ip-input/type.d.ts +113 -0
- package/es/ip-input/utils.d.ts +35 -0
- package/es/layout/Aside.d.ts +11 -0
- package/es/layout/Aside.js +41 -0
- package/es/layout/Aside.js.map +1 -0
- package/es/layout/Layout.d.ts +26 -0
- package/es/layout/Layout.js +106 -0
- package/es/layout/Layout.js.map +1 -0
- package/es/layout/defaultProps.d.ts +5 -0
- package/es/layout/index.d.ts +10 -0
- package/es/layout/index.js +19 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/style/index.css +56 -0
- package/es/layout/style/index.d.ts +1 -0
- package/es/layout/style/index.js +2 -0
- package/es/layout/style/index.js.map +1 -0
- package/es/layout/type.d.ts +38 -0
- package/es/list/List.d.ts +17 -0
- package/es/list/List.js +217 -0
- package/es/list/List.js.map +1 -0
- package/es/list/ListItem.d.ts +15 -0
- package/es/list/ListItem.js +31 -0
- package/es/list/ListItem.js.map +1 -0
- package/es/list/ListItemMeta.d.ts +10 -0
- package/es/list/ListItemMeta.js +45 -0
- package/es/list/ListItemMeta.js.map +1 -0
- package/es/list/defaultProps.d.ts +7 -0
- package/es/list/hooks/useListVirtualScroll.d.ts +24 -0
- package/es/list/index.d.ts +10 -0
- package/es/list/index.js +40 -0
- package/es/list/index.js.map +1 -0
- package/es/list/style/css.d.ts +1 -0
- package/es/list/style/css.js +1 -0
- package/es/list/style/index.css +172 -0
- package/es/list/style/index.d.ts +1 -0
- package/es/list/style/index.js +2 -0
- package/es/list/style/index.js.map +1 -0
- package/es/list/type.d.ts +92 -0
- package/es/loading/Gradient.d.ts +6 -0
- package/es/loading/Gradient.js +4 -3
- package/es/loading/Gradient.js.map +1 -1
- package/es/loading/Loading.d.ts +7 -0
- package/es/loading/Loading.js +7 -5
- package/es/loading/Loading.js.map +1 -1
- package/es/loading/circleAdapter.d.ts +1 -0
- package/es/loading/defaultProps.d.ts +2 -0
- package/es/loading/index.d.ts +5 -0
- package/es/loading/index.js +7 -5
- package/es/loading/index.js.map +1 -1
- package/es/loading/style/css.d.ts +1 -0
- package/es/loading/style/index.d.ts +1 -0
- package/es/loading/type.d.ts +68 -0
- package/es/loading/utils/setStyle.d.ts +7 -0
- package/es/locale/LocalReceiver.d.ts +6 -0
- package/es/locale/ar_KW.d.ts +3 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/it_IT.d.ts +3 -0
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ko_KR.d.ts +3 -0
- package/es/locale/ru_RU.d.ts +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_TW.d.ts +3 -0
- package/es/myform/index.d.ts +0 -0
- package/es/notification/Notify.d.ts +11 -0
- package/es/notification/NotifyContainer.d.ts +13 -0
- package/es/notification/NotifyContainer.js +3 -2
- package/es/notification/NotifyContainer.js.map +1 -1
- package/es/notification/NotifyContext.d.ts +23 -0
- package/es/notification/NotifyContext.js +3 -2
- package/es/notification/NotifyContext.js.map +1 -1
- package/es/notification/NotifyItem.d.ts +4 -0
- package/es/notification/NotifyItem.js +3 -2
- package/es/notification/NotifyItem.js.map +1 -1
- package/es/notification/index.d.ts +3 -0
- package/es/notification/index.js +3 -2
- package/es/notification/index.js.map +1 -1
- package/es/notification/style/css.d.ts +1 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/type.d.ts +22 -0
- package/es/popup/Popup.d.ts +21 -0
- package/es/popup/Popup.js +36 -100
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/defaultProps.d.ts +5 -0
- package/es/popup/hooks/useTrigger.d.ts +20 -0
- package/es/popup/index.d.ts +5 -0
- package/es/popup/index.js +8 -4
- package/es/popup/index.js.map +1 -1
- package/es/popup/style/css.d.ts +1 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/type.d.ts +109 -0
- package/es/portal/Portal.d.ts +16 -0
- package/es/portal/Portal.js +2 -1
- package/es/portal/Portal.js.map +1 -1
- package/es/portal/index.d.ts +1 -0
- package/es/portal/index.js +2 -1
- package/es/portal/index.js.map +1 -1
- package/es/radio/Radio.d.ts +8 -0
- package/es/radio/Radio.js +22 -0
- package/es/radio/Radio.js.map +1 -0
- package/es/radio/RadioGroup.d.ts +14 -0
- package/es/radio/RadioGroup.js +22 -0
- package/es/radio/RadioGroup.js.map +1 -0
- package/es/radio/defaultProps.d.ts +3 -0
- package/es/radio/index.d.ts +10 -0
- package/es/radio/index.js +28 -0
- package/es/radio/index.js.map +1 -0
- package/es/radio/style/css.d.ts +0 -0
- package/es/radio/style/css.js +0 -0
- package/es/radio/style/index.css +333 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.js +2 -0
- package/es/radio/style/index.js.map +1 -0
- package/es/radio/type.d.ts +117 -0
- package/es/radio/useKeyboard.d.ts +4 -0
- package/es/select/Option.d.ts +24 -0
- package/es/select/Option.js +3 -2
- package/es/select/Option.js.map +1 -1
- package/es/select/OptionGroup.d.ts +7 -0
- package/es/select/OptionGroup.js +4 -3
- package/es/select/OptionGroup.js.map +1 -1
- package/es/select/PopupContent.d.ts +24 -0
- package/es/select/PopupContent.js +6 -4
- package/es/select/PopupContent.js.map +1 -1
- package/es/select/Select.d.ts +13 -0
- package/es/select/Select.js +21 -12
- package/es/select/Select.js.map +1 -1
- package/es/select/defaultProps.d.ts +4 -0
- package/es/select/hooks/useOptions.d.ts +16 -0
- package/es/select/hooks/usePanelVirtualScroll.d.ts +24 -0
- package/es/select/index.d.ts +8 -0
- package/es/select/index.js +14 -8
- package/es/select/index.js.map +1 -1
- package/es/select/style/css.d.ts +1 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/select/type.d.ts +344 -0
- package/es/select/utils/helper.d.ts +18 -0
- package/es/select-input/SelectInput.d.ts +11 -0
- package/es/select-input/SelectInput.js +10 -5
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/defaultProps.d.ts +2 -0
- package/es/select-input/hook/useMultiple.d.ts +23 -0
- package/es/select-input/hook/useMultiple.js +7 -4
- package/es/select-input/hook/useMultiple.js.map +1 -1
- package/es/select-input/hook/useOverlayInnerStyle.d.ts +11 -0
- package/es/select-input/hook/useSingle.d.ts +16 -0
- package/es/select-input/hook/useSingle.js +5 -3
- package/es/select-input/hook/useSingle.js.map +1 -1
- package/es/select-input/index.d.ts +5 -0
- package/es/select-input/index.js +10 -5
- package/es/select-input/index.js.map +1 -1
- package/es/select-input/interface.d.ts +17 -0
- package/es/select-input/style/css.d.ts +1 -0
- package/es/select-input/style/index.d.ts +1 -0
- package/es/select-input/type.d.ts +243 -0
- package/es/slider/Slider.d.ts +7 -0
- package/es/slider/Slider.js +668 -0
- package/es/slider/Slider.js.map +1 -0
- package/es/slider/SliderHandleButton.d.ts +11 -0
- package/es/slider/SliderHandleButton.js +48 -0
- package/es/slider/SliderHandleButton.js.map +1 -0
- package/es/slider/defaultProps.d.ts +5 -0
- package/es/slider/index.d.ts +5 -0
- package/es/slider/index.js +46 -0
- package/es/slider/index.js.map +1 -0
- package/es/slider/style/css.d.ts +1 -0
- package/es/slider/style/css.js +1 -0
- package/es/slider/style/index.css +252 -0
- package/es/slider/style/index.d.ts +1 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/style/index.js.map +1 -0
- package/es/slider/type.d.ts +78 -0
- package/es/space/defaultProps.d.ts +0 -0
- package/es/space/index.d.ts +0 -0
- package/es/space/type.d.ts +0 -0
- package/es/style/index.css +24 -34
- package/es/style/index.d.ts +1 -0
- package/es/switch/Switch.d.ts +9 -0
- package/es/switch/Switch.js +9 -47
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/defaultProps.d.ts +2 -0
- package/es/switch/index.d.ts +4 -0
- package/es/switch/index.js +8 -5
- package/es/switch/index.js.map +1 -1
- package/es/switch/style/css.d.ts +1 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/type.d.ts +48 -0
- package/es/tab/TabBar.d.ts +9 -0
- package/es/tab/TabBar.js +109 -0
- package/es/tab/TabBar.js.map +1 -0
- package/es/tab/TabNav.d.ts +10 -0
- package/es/tab/TabNav.js +123 -0
- package/es/tab/TabNav.js.map +1 -0
- package/es/tab/TabNavItem.d.ts +15 -0
- package/es/tab/TabNavItem.js +65 -0
- package/es/tab/TabNavItem.js.map +1 -0
- package/es/tab/TabPanel.d.ts +9 -0
- package/es/tab/TabPanel.js +11 -0
- package/es/tab/TabPanel.js.map +1 -0
- package/es/tab/Tabs.d.ts +10 -0
- package/es/tab/Tabs.js +95 -0
- package/es/tab/Tabs.js.map +1 -0
- package/es/tab/defaultProps.d.ts +3 -0
- package/es/tab/index.d.ts +8 -0
- package/es/tab/index.js +31 -0
- package/es/tab/index.js.map +1 -0
- package/es/tab/style/index.css +159 -0
- package/es/tab/style/index.d.ts +1 -0
- package/es/tab/style/index.js +2 -0
- package/es/tab/style/index.js.map +1 -0
- package/es/tab/type.d.ts +130 -0
- package/es/tab/useTabClass.d.ts +8 -0
- package/es/table/Cell.d.ts +18 -0
- package/es/table/Cell.js +73 -0
- package/es/table/Cell.js.map +1 -0
- package/es/table/TBody.d.ts +28 -0
- package/es/table/TBody.js +70 -0
- package/es/table/TBody.js.map +1 -0
- package/es/table/THead.d.ts +10 -0
- package/es/table/THead.js +56 -0
- package/es/table/THead.js.map +1 -0
- package/es/table/TR.d.ts +28 -0
- package/es/table/TR.js +76 -0
- package/es/table/TR.js.map +1 -0
- package/es/table/Table.d.ts +6 -0
- package/es/table/Table.js +98 -0
- package/es/table/Table.js.map +1 -0
- package/es/table/defaultProps.d.ts +2 -0
- package/es/table/hooks/index.d.ts +4 -0
- package/es/table/hooks/index.js +98 -0
- package/es/table/hooks/index.js.map +1 -0
- package/es/table/hooks/useTableClassName.d.ts +26 -0
- package/es/table/hooks/useTableStyle.d.ts +11 -0
- package/es/table/index.d.ts +5 -0
- package/es/table/index.js +22 -0
- package/es/table/index.js.map +1 -0
- package/es/table/style/css.d.ts +1 -0
- package/es/table/style/css.js +1 -0
- package/es/table/style/index.css +139 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.js +2 -0
- package/es/table/style/index.js.map +1 -0
- package/es/table/type.d.ts +195 -0
- package/es/tag/Tag.d.ts +14 -0
- package/es/tag/Tag.js +5 -1182
- package/es/tag/Tag.js.map +1 -1
- package/es/tag/defaultProps.d.ts +7 -0
- package/es/tag/index.d.ts +4 -0
- package/es/tag/index.js +5 -3
- package/es/tag/index.js.map +1 -1
- package/es/tag/style/css.d.ts +1 -0
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/type.d.ts +169 -0
- package/es/tag-input/TagInput.d.ts +9 -0
- package/es/tag-input/TagInput.js +7 -4
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/defaultProps.d.ts +2 -0
- package/es/tag-input/hooks/useHover.d.ts +17 -0
- package/es/tag-input/hooks/useTagList.d.ts +30 -0
- package/es/tag-input/hooks/useTagList.js +5 -3
- package/es/tag-input/hooks/useTagList.js.map +1 -1
- package/es/tag-input/hooks/useTagScroll.d.ts +25 -0
- package/es/tag-input/index.d.ts +5 -0
- package/es/tag-input/index.js +7 -4
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/style/css.d.ts +1 -0
- package/es/tag-input/style/index.d.ts +1 -0
- package/es/tag-input/type.d.ts +235 -0
- package/es/tag-input/useTagList.d.ts +30 -0
- package/es/tag-input/useTagList.js +5 -3
- package/es/tag-input/useTagList.js.map +1 -1
- package/es/utils/composeRefs.d.ts +2 -0
- package/es/utils/dom.d.ts +7 -0
- package/es/utils/forwardRefWithStatics.d.ts +2 -0
- package/es/utils/getScrollbarWidth.d.ts +6 -0
- package/es/utils/helper.d.ts +46 -0
- package/es/utils/input-number/large-number.d.ts +85 -0
- package/es/utils/input-number/number.d.ts +81 -0
- package/es/utils/isFragment.d.ts +4 -0
- package/es/utils/listener.d.ts +4 -0
- package/es/utils/log/index.d.ts +2 -0
- package/es/utils/log/index.js +27 -0
- package/es/utils/log/index.js.map +1 -0
- package/es/utils/log/log.d.ts +3 -0
- package/es/utils/log/types.d.ts +8 -0
- package/es/utils/noop.d.ts +2 -0
- package/es/utils/number.d.ts +7 -0
- package/es/utils/parentTNode.d.ts +10 -0
- package/es/utils/parseTNode.d.ts +10 -0
- package/es/utils/react-render.d.ts +16 -0
- package/es/utils/ref.d.ts +1 -0
- package/es/utils/refs.d.ts +13 -0
- package/es/utils/scroll.d.ts +3 -0
- package/es/utils/style.d.ts +4 -0
- package/es/utils/transition.d.ts +20 -0
- package/package.json +60 -59
- package/LICENSE +0 -21
- package/es/_chunks/dep-0QH2Ee4R.js.map +0 -1
- package/es/_chunks/dep-BH5n5r1M.js.map +0 -1
- package/es/_chunks/dep-D7LanWes.js.map +0 -1
- package/es/_chunks/dep-DZ_0EvBk.js.map +0 -1
- package/es/_chunks/dep-Dk2xX8lh.js.map +0 -1
- package/es/_chunks/dep-EcrDKDlu.js.map +0 -1
- package/es/_chunks/dep-bWaVq_y3.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AttachNode } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* useAttach
|
|
4
|
+
*
|
|
5
|
+
* 挂载节点 优先级:
|
|
6
|
+
*
|
|
7
|
+
* props attach -> globalConfig.attach.component -> globalConfig.attach -> default = 'body'
|
|
8
|
+
*/
|
|
9
|
+
declare const useAttach: (name: string, attach: AttachNode | undefined) => AttachNode;
|
|
10
|
+
export default useAttach;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export default function useCommonClassName(): {
|
|
2
|
+
SIZE: {
|
|
3
|
+
default: string;
|
|
4
|
+
xs: string;
|
|
5
|
+
small: string;
|
|
6
|
+
medium: string;
|
|
7
|
+
large: string;
|
|
8
|
+
xl: string;
|
|
9
|
+
block: string;
|
|
10
|
+
};
|
|
11
|
+
STATUS: {
|
|
12
|
+
loading: string;
|
|
13
|
+
disabled: string;
|
|
14
|
+
focused: string;
|
|
15
|
+
success: string;
|
|
16
|
+
error: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
selected: string;
|
|
19
|
+
active: string;
|
|
20
|
+
checked: string;
|
|
21
|
+
current: string;
|
|
22
|
+
hidden: string;
|
|
23
|
+
visible: string;
|
|
24
|
+
expanded: string;
|
|
25
|
+
indeterminate: string;
|
|
26
|
+
};
|
|
27
|
+
sizeClassNames: {
|
|
28
|
+
default: string;
|
|
29
|
+
xs: string;
|
|
30
|
+
small: string;
|
|
31
|
+
medium: string;
|
|
32
|
+
large: string;
|
|
33
|
+
xl: string;
|
|
34
|
+
block: string;
|
|
35
|
+
};
|
|
36
|
+
statusClassNames: {
|
|
37
|
+
loading: string;
|
|
38
|
+
disabled: string;
|
|
39
|
+
focused: string;
|
|
40
|
+
success: string;
|
|
41
|
+
error: string;
|
|
42
|
+
warning: string;
|
|
43
|
+
selected: string;
|
|
44
|
+
active: string;
|
|
45
|
+
checked: string;
|
|
46
|
+
current: string;
|
|
47
|
+
hidden: string;
|
|
48
|
+
visible: string;
|
|
49
|
+
expanded: string;
|
|
50
|
+
indeterminate: string;
|
|
51
|
+
};
|
|
52
|
+
classPrefix: string;
|
|
53
|
+
};
|
|
54
|
+
export type CommonClassNameType = ReturnType<typeof useCommonClassName>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type DefaultOptions<T extends string> = `default${Capitalize<T>}`;
|
|
2
|
+
export interface ChangeHander<T, P extends unknown[]> {
|
|
3
|
+
(value: T, ...args: P): void;
|
|
4
|
+
}
|
|
5
|
+
type ToString<T extends string | number | symbol> = T extends string ? T : `${Extract<T, number>}`;
|
|
6
|
+
declare const useControlled: <P extends unknown[], R extends object, K extends keyof R>(props: R, valueKey: K, onChange: ChangeHander<R[K], P>, defaultOptions?: {
|
|
7
|
+
[key in DefaultOptions<ToString<K>>]: R[K];
|
|
8
|
+
}) => [R[K], ChangeHander<R[K], P>];
|
|
9
|
+
export default useControlled;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useDefaultProps<T>(originalProps: T, defaultProps: Partial<T>): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useDomRefCallback<T extends HTMLElement>(): readonly [T, (dom: T | null) => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useDomRefCallback(): [HTMLElement, React.Dispatch<React.SetStateAction<HTMLElement>>];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface DragSortProps<T> {
|
|
2
|
+
sortOnDraggable: boolean;
|
|
3
|
+
onDragSort?: (context: DragSortContext<T>) => void;
|
|
4
|
+
onDragOverCheck?: {
|
|
5
|
+
x?: boolean;
|
|
6
|
+
targetClassNameRegExp?: RegExp;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
type DragFnType<T = unknown> = (e?: React.DragEvent<HTMLTableRowElement>, index?: number, record?: T) => void;
|
|
10
|
+
interface DragSortInnerData<T = unknown> {
|
|
11
|
+
dragging?: boolean;
|
|
12
|
+
draggable?: boolean;
|
|
13
|
+
onDragStart?: DragFnType<T>;
|
|
14
|
+
onDragOver?: DragFnType<T>;
|
|
15
|
+
onDrop?: DragFnType<T>;
|
|
16
|
+
onDragEnd?: DragFnType<T>;
|
|
17
|
+
}
|
|
18
|
+
export interface DragSortInnerProps<T = unknown> extends DragSortInnerData<T> {
|
|
19
|
+
getDragProps?: (index?: number, record?: T) => DragSortInnerData<T>;
|
|
20
|
+
}
|
|
21
|
+
export interface DragSortContext<T> {
|
|
22
|
+
currentIndex: number;
|
|
23
|
+
current: T;
|
|
24
|
+
targetIndex: number;
|
|
25
|
+
target: T;
|
|
26
|
+
}
|
|
27
|
+
declare function useDragSorter<T>(props: DragSortProps<T>): DragSortInnerProps<T>;
|
|
28
|
+
export default useDragSorter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type AnyFunction = (...args: unknown[]) => unknown;
|
|
2
|
+
/**
|
|
3
|
+
* Similar to useCallback, with a few subtle differences:
|
|
4
|
+
* - The returned function is a stable reference, and will always be the same between renders
|
|
5
|
+
* - No dependency lists required
|
|
6
|
+
* - Properties or state accessed within the callback will always be "current"
|
|
7
|
+
*/
|
|
8
|
+
export default function useEventCallback<TCallback extends AnyFunction>(callback: TCallback): TCallback;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useGlobalIcon(tdIcon: Record<string, unknown>): {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconProps } from "@tendaui/icons";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type ConvertedIconComponent = React.ForwardRefExoticComponent<Omit<IconProps, "svg" | "type"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export default function useGlobalIcon(tdIcon: Record<string, ConvertedIconComponent>): Record<string, ConvertedIconComponent>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type MouseEventLike = MouseEvent | React.MouseEvent | TouchEvent | React.TouchEvent;
|
|
2
|
+
export type MouseCallback = MouseEvent | React.MouseEvent | Touch | React.Touch;
|
|
3
|
+
/**
|
|
4
|
+
* 鼠标相对当前元素的坐标
|
|
5
|
+
*/
|
|
6
|
+
export interface MouseCoordinate {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MouseContext {
|
|
11
|
+
coordinate: MouseCoordinate;
|
|
12
|
+
}
|
|
13
|
+
type MouseEventOptions = {
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
enableTouch?: boolean;
|
|
16
|
+
onDown?: (e: MouseCallback, ctx: MouseContext) => void;
|
|
17
|
+
onMove?: (e: MouseCallback, ctx: MouseContext) => void;
|
|
18
|
+
onUp?: (e: MouseCallback, ctx: MouseContext) => void;
|
|
19
|
+
onEnter?: (e: MouseCallback, ctx: MouseContext) => void;
|
|
20
|
+
onLeave?: (e: MouseCallback, ctx: MouseContext) => void;
|
|
21
|
+
};
|
|
22
|
+
declare const useMouseEvent: (elementRef: React.RefObject<HTMLElement | null>, options: MouseEventOptions) => {
|
|
23
|
+
isMoving: boolean;
|
|
24
|
+
};
|
|
25
|
+
export default useMouseEvent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createPopper as defaultCreatePopper, type Options as PopperOptions, type VirtualElement, type State as PopperState, type Instance as PopperInstance } from "@popperjs/core";
|
|
2
|
+
import type { Styles } from "../common";
|
|
3
|
+
type Options = Partial<PopperOptions & {
|
|
4
|
+
createPopper: typeof defaultCreatePopper;
|
|
5
|
+
}>;
|
|
6
|
+
type Attributes = {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type UsePopperResult = {
|
|
12
|
+
state?: PopperState;
|
|
13
|
+
styles: Record<string, Styles>;
|
|
14
|
+
attributes: Attributes;
|
|
15
|
+
update: PopperInstance["update"] | null;
|
|
16
|
+
forceUpdate: PopperInstance["forceUpdate"] | null;
|
|
17
|
+
};
|
|
18
|
+
declare const usePopper: (referenceElement?: Element | VirtualElement, popperElement?: HTMLElement, options?: Options) => UsePopperResult;
|
|
19
|
+
export default usePopper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useResizeObserver(container: React.MutableRefObject<HTMLElement | null>, callback: (data: ResizeObserverEntry[]) => void, enabled?: boolean): void;
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 管理 object 类型 state 的 Hooks,用法与 class 组件的 this.setState 基本一致。
|
|
3
|
+
* @param initialState
|
|
4
|
+
* @returns [state, setMergeState]
|
|
5
|
+
*/
|
|
6
|
+
declare const useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
|
|
7
|
+
export default useSetState;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通用虚拟滚动,可支持 Select/List/Table/TreeSelect/Cascader 等组件
|
|
3
|
+
*/
|
|
4
|
+
import { MutableRefObject } from "react";
|
|
5
|
+
import type { ScrollToElementParams, TScroll } from "../common";
|
|
6
|
+
export type UseVirtualScrollParams = {
|
|
7
|
+
/** 列数据 */
|
|
8
|
+
data: {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}[];
|
|
11
|
+
scroll: TScroll & {
|
|
12
|
+
fixedRows?: Array<number>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const useVirtualScroll: (container: MutableRefObject<HTMLElement>, params: UseVirtualScrollParams) => {
|
|
16
|
+
visibleData: unknown[];
|
|
17
|
+
translateY: number;
|
|
18
|
+
scrollHeight: number;
|
|
19
|
+
isVirtualScroll: boolean;
|
|
20
|
+
handleScroll: () => void;
|
|
21
|
+
handleRowMounted: (rowData: {
|
|
22
|
+
ref: HTMLElement;
|
|
23
|
+
data: {
|
|
24
|
+
__VIRTUAL_SCROLL_INDEX: number;
|
|
25
|
+
};
|
|
26
|
+
}) => void;
|
|
27
|
+
scrollToElement: (p: ScrollToElementParams) => void;
|
|
28
|
+
};
|
|
29
|
+
export type VirtualScrollConfig = ReturnType<typeof useVirtualScroll>;
|
|
30
|
+
export default useVirtualScroll;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "./loading";
|
|
2
|
+
export * from "./popup";
|
|
3
|
+
export * from "./button";
|
|
4
|
+
export * from "./input";
|
|
5
|
+
export * from "./alert";
|
|
6
|
+
export * from "./badge";
|
|
7
|
+
export * from "./radio";
|
|
8
|
+
export * from "./checkbox";
|
|
9
|
+
export * from "./input-number";
|
|
10
|
+
export * from "./config-provider";
|
|
11
|
+
export * from "./layout";
|
|
12
|
+
export * from "./tag";
|
|
13
|
+
export * from "./tag-input";
|
|
14
|
+
export * from "./select";
|
|
15
|
+
export * from "./select-input";
|
|
16
|
+
export * from "./list";
|
|
17
|
+
export * from "./notification";
|
|
18
|
+
export * from "./dialog";
|
|
19
|
+
export * from "./switch";
|
|
20
|
+
export * from "./form";
|
|
21
|
+
export * from "./ip-input";
|
|
22
|
+
export * from "./fireworks";
|
|
23
|
+
export * from "./drawer";
|
|
24
|
+
export * from "./slider";
|
|
25
|
+
export * from "./color-picker";
|
package/es/index.js
CHANGED
|
@@ -4,42 +4,55 @@ export { Button } from './button/index.js';
|
|
|
4
4
|
export { Input, InputGroup } from './input/index.js';
|
|
5
5
|
export { Alert } from './alert/index.js';
|
|
6
6
|
export { Badge } from './badge/index.js';
|
|
7
|
+
export { Radio, RadioGroup } from './radio/index.js';
|
|
7
8
|
export { Checkbox } from './checkbox/index.js';
|
|
9
|
+
export { InputNumber } from './input-number/index.js';
|
|
8
10
|
import './config-provider/index.js';
|
|
11
|
+
export { Layout } from './layout/index.js';
|
|
9
12
|
export { Tag } from './tag/index.js';
|
|
10
13
|
export { TagInput } from './tag-input/index.js';
|
|
11
14
|
export { Select } from './select/index.js';
|
|
12
15
|
export { SelectInput } from './select-input/index.js';
|
|
16
|
+
export { List } from './list/index.js';
|
|
13
17
|
export { notification } from './notification/index.js';
|
|
14
18
|
export { Dialog, DialogCard, DialogPlugin, dialog } from './dialog/index.js';
|
|
15
19
|
export { Switch } from './switch/index.js';
|
|
16
20
|
export { Form } from './form/index.js';
|
|
17
|
-
|
|
21
|
+
import './ip-input/index.js';
|
|
22
|
+
export { Fireworks } from './fireworks/index.js';
|
|
23
|
+
export { Drawer } from './drawer/index.js';
|
|
24
|
+
export { Slider } from './slider/index.js';
|
|
25
|
+
export { ColorPicker, ColorPickerPanel } from './color-picker/index.js';
|
|
26
|
+
export { C as ConfigContext } from './_chunks/dep-5U9UjDaf.js';
|
|
18
27
|
export { default as ConfigProvider, merge } from './config-provider/ConfigProvider.js';
|
|
19
28
|
export { NotificationProvider, useNotification } from './notification/NotifyContext.js';
|
|
29
|
+
export { I as IPInput, e as extractIPFromText, b as isValidCIDRMask, a as isValidIPv4, i as isValidIPv4Segment, c as isValidIPv6, p as parseIPv4ToSegments, s as segmentsToIPv4 } from './_chunks/dep-COy5g3FT.js';
|
|
20
30
|
import './loading/Loading.js';
|
|
21
31
|
import './_chunks/dep-Cwish4GD.js';
|
|
22
32
|
import './_chunks/dep-D-UKOauR.js';
|
|
23
33
|
import './_chunks/dep-CzLhKWCf.js';
|
|
24
34
|
import 'react';
|
|
25
35
|
import 'classnames';
|
|
26
|
-
import './_chunks/dep-
|
|
36
|
+
import './_chunks/dep-DRwijJcv.js';
|
|
27
37
|
import 'lodash-es';
|
|
28
|
-
import './_chunks/dep-
|
|
38
|
+
import './_chunks/dep-gy8uvBaS.js';
|
|
29
39
|
import './common/Portal.js';
|
|
30
40
|
import 'react-dom';
|
|
41
|
+
import './_chunks/dep-BRbJGDI9.js';
|
|
31
42
|
import './loading/Gradient.js';
|
|
32
|
-
import './_chunks/dep-
|
|
43
|
+
import './_chunks/dep-DQ6kXoi8.js';
|
|
33
44
|
import './_chunks/dep-DN7d1SzH.js';
|
|
34
45
|
import './_chunks/dep-PPA-yoAy.js';
|
|
35
46
|
import './_chunks/dep-DGvfel3I.js';
|
|
36
|
-
import './_chunks/dep-
|
|
47
|
+
import './_chunks/dep-DbVHGoUC.js';
|
|
37
48
|
import './loading/style/css.js';
|
|
38
49
|
import './popup/Popup.js';
|
|
39
50
|
import './portal/Portal.js';
|
|
40
51
|
import './_chunks/dep-DwWrhxkd.js';
|
|
52
|
+
import './_chunks/dep-CkmtEv0Y.js';
|
|
41
53
|
import 'react-is';
|
|
42
54
|
import './_chunks/dep-C1XcmShP.js';
|
|
55
|
+
import './_chunks/dep-Ccktr_jk.js';
|
|
43
56
|
import './_chunks/dep-CgyDw_YI.js';
|
|
44
57
|
import '@popperjs/core';
|
|
45
58
|
import 'react-fast-compare';
|
|
@@ -54,25 +67,37 @@ import './input/InputGroup.js';
|
|
|
54
67
|
import './input/style/css.js';
|
|
55
68
|
import './alert/Alert.js';
|
|
56
69
|
import './_chunks/dep-U1T8CQY9.js';
|
|
57
|
-
import './_chunks/dep-
|
|
70
|
+
import './_chunks/dep-ByzdZjUR.js';
|
|
58
71
|
import './alert/style/css.js';
|
|
59
72
|
import './badge/Badge.js';
|
|
60
73
|
import './badge/style/css.js';
|
|
61
|
-
import './_chunks/dep-
|
|
74
|
+
import './_chunks/dep-Dr5wkz0z.js';
|
|
62
75
|
import './_chunks/dep-BP0-apUT.js';
|
|
63
76
|
import 'hoist-non-react-statics';
|
|
64
77
|
import './common/Check.js';
|
|
78
|
+
import './_chunks/dep-DTlQ2dCA.js';
|
|
79
|
+
import './radio/style/css.js';
|
|
80
|
+
import './_chunks/dep-B4_O1Vgv.js';
|
|
65
81
|
import './checkbox/style/css.js';
|
|
82
|
+
import './input-number/InputNumber.js';
|
|
83
|
+
import './input-number/useInputNumber.js';
|
|
84
|
+
import './utils/log/index.js';
|
|
85
|
+
import './input-number/style/css.js';
|
|
86
|
+
import './layout/Layout.js';
|
|
87
|
+
import './layout/Aside.js';
|
|
88
|
+
import './css.js';
|
|
66
89
|
import './tag/Tag.js';
|
|
90
|
+
import './_chunks/dep-zOZQ0R9g.js';
|
|
67
91
|
import './tag/style/css.js';
|
|
68
92
|
import './tag-input/TagInput.js';
|
|
69
93
|
import './tag-input/hooks/useTagList.js';
|
|
70
94
|
import './hooks/useDragSorter.js';
|
|
71
95
|
import './tag-input/style/css.js';
|
|
72
96
|
import './select/Select.js';
|
|
73
|
-
import './_chunks/dep-
|
|
74
|
-
import './_chunks/dep-
|
|
97
|
+
import './_chunks/dep-CJCt0IS0.js';
|
|
98
|
+
import './_chunks/dep-Bjfn7Zv_.js';
|
|
75
99
|
import './select/Option.js';
|
|
100
|
+
import './_chunks/dep-Dlppf0JU.js';
|
|
76
101
|
import './common/FakeArrow.js';
|
|
77
102
|
import './_chunks/dep-D8jki30S.js';
|
|
78
103
|
import './select/style/css.js';
|
|
@@ -80,11 +105,18 @@ import './select-input/SelectInput.js';
|
|
|
80
105
|
import './select-input/hook/useSingle.js';
|
|
81
106
|
import './select-input/hook/useMultiple.js';
|
|
82
107
|
import './select-input/style/css.js';
|
|
108
|
+
import './list/List.js';
|
|
109
|
+
import './_chunks/dep-CD_4-1Xb.js';
|
|
110
|
+
import './list/ListItem.js';
|
|
111
|
+
import './list/ListItemMeta.js';
|
|
112
|
+
import './list/style/css.js';
|
|
83
113
|
import './notification/style/css.js';
|
|
84
114
|
import './dialog/Dialog.js';
|
|
85
|
-
import './_chunks/dep-
|
|
115
|
+
import './_chunks/dep-C_wPqvpm.js';
|
|
116
|
+
import './_chunks/dep-CRURwzDj.js';
|
|
117
|
+
import './_chunks/dep-BbeHB7S3.js';
|
|
86
118
|
import './dialog/plugin.js';
|
|
87
|
-
import './_chunks/dep-
|
|
119
|
+
import './_chunks/dep-DX65P8M9.js';
|
|
88
120
|
import './common/PluginContainer.js';
|
|
89
121
|
import './dialog/style/css.js';
|
|
90
122
|
import './switch/Switch.js';
|
|
@@ -92,12 +124,34 @@ import './switch/style/css.js';
|
|
|
92
124
|
import './form/Form.js';
|
|
93
125
|
import './form/hooks/useInstance.js';
|
|
94
126
|
import './form/utils/index.js';
|
|
95
|
-
import './_chunks/dep-
|
|
127
|
+
import './_chunks/dep-4LYjB3c6.js';
|
|
128
|
+
import './_chunks/dep-Chz4ZJCb.js';
|
|
96
129
|
import './form/FormContext.js';
|
|
97
|
-
import './_chunks/dep-
|
|
98
|
-
import './_chunks/dep-
|
|
130
|
+
import './_chunks/dep-BYlJzn45.js';
|
|
131
|
+
import './_chunks/dep-BuIAffJt.js';
|
|
99
132
|
import './form/FormList.js';
|
|
100
133
|
import './form/style/css.js';
|
|
134
|
+
import './fireworks/Fireworks.js';
|
|
135
|
+
import './fireworks/style/css.js';
|
|
136
|
+
import './drawer/Drawer.js';
|
|
137
|
+
import './drawer/utils/index.js';
|
|
138
|
+
import './drawer/style/css.js';
|
|
139
|
+
import './slider/Slider.js';
|
|
140
|
+
import './slider/SliderHandleButton.js';
|
|
141
|
+
import './slider/style/css.js';
|
|
142
|
+
import './color-picker/ColorPickPanel.js';
|
|
143
|
+
import './_chunks/dep-DURB9x8g.js';
|
|
144
|
+
import './color-picker/utils/color-picker/index.js';
|
|
145
|
+
import './_chunks/dep-DJmE940f.js';
|
|
146
|
+
import './_chunks/dep-oUgTcXgm.js';
|
|
147
|
+
import './color-picker/components/panel/alpha.js';
|
|
148
|
+
import './color-picker/components/panel/slider.js';
|
|
149
|
+
import './color-picker/components/panel/hue.js';
|
|
150
|
+
import './color-picker/components/panel/saturation.js';
|
|
151
|
+
import './color-picker/components/panel/swatches.js';
|
|
152
|
+
import './color-picker/ColorPicker.js';
|
|
153
|
+
import './color-picker/components/trigger.js';
|
|
154
|
+
import 'dayjs';
|
|
101
155
|
import './notification/NotifyContainer.js';
|
|
102
156
|
import './notification/NotifyItem.js';
|
|
103
157
|
//# sourceMappingURL=index.js.map
|
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TdInputProps } from "./type";
|
|
3
|
+
import { StyledProps } from "../common";
|
|
4
|
+
export interface InputProps extends TdInputProps, StyledProps {
|
|
5
|
+
showInput?: boolean;
|
|
6
|
+
keepWrapperWidth?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface InputRef extends React.RefObject<unknown> {
|
|
9
|
+
currentElement: HTMLDivElement;
|
|
10
|
+
inputElement: HTMLInputElement;
|
|
11
|
+
focus: () => void;
|
|
12
|
+
blur: () => void;
|
|
13
|
+
select: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export default Input;
|
package/es/input/Input.js
CHANGED
|
@@ -4,18 +4,19 @@ import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
|
|
|
4
4
|
import React, { forwardRef, useRef, useState, useEffect, useImperativeHandle } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { IconClose, IconEyeClosed, IconEyeOpened } from '@tendaui/icons';
|
|
7
|
-
import { u as useIsomorphicLayoutEffect } from '../_chunks/dep-
|
|
7
|
+
import { u as useIsomorphicLayoutEffect } from '../_chunks/dep-BRbJGDI9.js';
|
|
8
8
|
import { u as useControlled } from '../_chunks/dep-DwWrhxkd.js';
|
|
9
9
|
import { p as parseTNode } from '../_chunks/dep-D6YxJv-F.js';
|
|
10
10
|
import { u as useDefaultProps } from '../_chunks/dep-DGvfel3I.js';
|
|
11
11
|
import { isFunction } from 'lodash-es';
|
|
12
|
-
import { u as useConfig } from '../_chunks/dep-
|
|
12
|
+
import { u as useConfig } from '../_chunks/dep-gy8uvBaS.js';
|
|
13
13
|
import '../_chunks/dep-D-UKOauR.js';
|
|
14
|
-
import '../
|
|
14
|
+
import '../_chunks/dep-DRwijJcv.js';
|
|
15
|
+
import '../_chunks/dep-5U9UjDaf.js';
|
|
16
|
+
import 'dayjs';
|
|
15
17
|
|
|
16
18
|
var inputDefaultProps = {
|
|
17
19
|
align: "left",
|
|
18
|
-
allowInputOverMax: false,
|
|
19
20
|
autoWidth: false,
|
|
20
21
|
autocomplete: void 0,
|
|
21
22
|
autofocus: false,
|
|
@@ -28,7 +29,6 @@ var inputDefaultProps = {
|
|
|
28
29
|
// 是否只读,在只读模式下,输入框不能输入,且没有清除按钮,优先级高于 allowInput、clearable
|
|
29
30
|
readonly: false,
|
|
30
31
|
showClearIconOnEmpty: false,
|
|
31
|
-
showLimitNumber: false,
|
|
32
32
|
size: "medium",
|
|
33
33
|
spellCheck: false,
|
|
34
34
|
status: "default",
|