@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.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/es/_chunks/dep-5U9UjDaf.js.map +1 -1
- package/es/_chunks/dep-CD_4-1Xb.js.map +1 -1
- package/es/_chunks/{dep-CRURwzDj.js → dep-CsSvR9wN.js} +9 -3
- package/es/_chunks/dep-CsSvR9wN.js.map +1 -0
- package/es/_chunks/dep-DJmE940f.js.map +1 -1
- package/es/_chunks/dep-DbVHGoUC.js.map +1 -1
- package/es/_chunks/{dep-D8jki30S.js → dep-aX8qrQpB.js} +2 -2
- package/es/_chunks/{dep-D8jki30S.js.map → dep-aX8qrQpB.js.map} +1 -1
- package/es/alert/Alert.js +9 -2
- package/es/alert/Alert.js.map +1 -1
- package/es/alert/index.js +4 -1
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/index.css +7 -30
- package/es/badge/style/index.css +5 -10
- package/es/button/_example/base.js +1 -158
- package/es/button/_example/base.js.map +1 -1
- package/es/button/_example/icon.js +1 -157
- package/es/button/_example/icon.js.map +1 -1
- package/es/button/style/index.css +4 -19
- package/es/checkbox/style/index.css +9 -26
- package/es/color-picker/ColorPicker.js +3 -3
- package/es/color-picker/components/panel/format/index.js +4 -1
- package/es/color-picker/components/panel/format/index.js.map +1 -1
- package/es/color-picker/components/panel/format/inputs.js +3 -0
- package/es/color-picker/components/panel/format/inputs.js.map +1 -1
- package/es/color-picker/components/trigger.js +3 -0
- package/es/color-picker/components/trigger.js.map +1 -1
- package/es/color-picker/style/index.css +43 -138
- package/es/color-picker/utils/color-picker/index.js.map +1 -1
- package/es/dialog/Dialog.js +4 -1
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.js +5 -2
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/index.js +4 -3
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.js +3 -2
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/index.css +51 -188
- package/es/drawer/Drawer.js +15 -8
- package/es/drawer/Drawer.js.map +1 -1
- package/es/drawer/index.js +5 -2
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/style/index.css +12 -41
- package/es/form/Form.js +3 -0
- package/es/form/Form.js.map +1 -1
- package/es/form/FormItem.js +3 -0
- package/es/form/FormItem.js.map +1 -1
- package/es/form/index.js +3 -0
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +13 -33
- package/es/index.js +3 -3
- package/es/input/Input.js +10 -2
- package/es/input/Input.js.map +1 -1
- package/es/input/index.js +4 -1
- package/es/input/index.js.map +1 -1
- package/es/input/style/index.css +17 -63
- package/es/input-number/InputNumber.js +4 -1
- package/es/input-number/InputNumber.js.map +1 -1
- package/es/input-number/index.js +4 -1
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/css.js +1 -1
- package/es/input-number/style/index.css +7 -39
- package/es/input-number/useInputNumber.js.map +1 -1
- package/es/ip-input/style/index.css +21 -87
- package/es/layout/style/index.css +5 -19
- package/es/list/List.js.map +1 -1
- package/es/list/ListItem.js.map +1 -1
- package/es/list/ListItemMeta.js.map +1 -1
- package/es/list/style/css.js +1 -1
- package/es/list/style/index.css +11 -39
- package/es/loading/style/index.css +10 -65
- package/es/notification/style/index.css +6 -24
- package/es/popup/style/index.css +9 -20
- package/es/radio/style/index.css +11 -36
- package/es/select/Select.js +4 -1
- package/es/select/Select.js.map +1 -1
- package/es/select/index.js +4 -1
- package/es/select/index.js.map +1 -1
- package/es/select/style/index.css +17 -52
- package/es/select-input/SelectInput.js +3 -0
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/hook/useMultiple.js +3 -0
- package/es/select-input/hook/useMultiple.js.map +1 -1
- package/es/select-input/hook/useSingle.js +3 -0
- package/es/select-input/hook/useSingle.js.map +1 -1
- package/es/select-input/index.js +3 -0
- package/es/select-input/index.js.map +1 -1
- package/es/slider/Slider.js +3 -0
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/index.js +3 -0
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/css.js +1 -1
- package/es/slider/style/index.css +18 -59
- package/es/style/index.css +0 -2
- package/es/switch/Switch.js +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style/index.css +10 -37
- package/es/tab/style/index.css +6 -31
- package/es/table/TBody.js +10 -1
- package/es/table/TBody.js.map +1 -1
- package/es/table/Table.js +4 -0
- package/es/table/Table.js.map +1 -1
- package/es/table/index.js +4 -0
- package/es/table/index.js.map +1 -1
- package/es/table/style/index.css +5 -15
- package/es/tag/style/index.css +4 -16
- package/es/tag-input/TagInput.js +3 -0
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/index.js +3 -0
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/style/index.css +7 -53
- package/es/utils/log/index.js.map +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-CRURwzDj.js.map +0 -1
- package/es/alert/Alert.d.ts +0 -7
- package/es/alert/defaultProps.d.ts +0 -2
- package/es/alert/index.d.ts +0 -5
- package/es/alert/style/css.d.ts +0 -1
- package/es/alert/style/index.d.ts +0 -1
- package/es/alert/type.d.ts +0 -45
- package/es/badge/Badge.d.ts +0 -7
- package/es/badge/defaultProps.d.ts +0 -2
- package/es/badge/index.d.ts +0 -5
- package/es/badge/style/css.d.ts +0 -1
- package/es/badge/style/index.d.ts +0 -1
- package/es/badge/type.d.ts +0 -50
- package/es/button/Button.d.ts +0 -6
- package/es/button/defaultProps.d.ts +0 -2
- package/es/button/index.d.ts +0 -5
- package/es/button/style/css.d.ts +0 -1
- package/es/button/style/index.d.ts +0 -1
- package/es/button/type.d.ts +0 -81
- package/es/checkbox/Checkbox.d.ts +0 -10
- package/es/checkbox/CheckboxGroup.d.ts +0 -14
- package/es/checkbox/defaultProps.d.ts +0 -3
- package/es/checkbox/index.d.ts +0 -11
- package/es/checkbox/style/css.d.ts +0 -1
- package/es/checkbox/style/index.d.ts +0 -1
- package/es/checkbox/type.d.ts +0 -115
- package/es/color-picker/ColorPickPanel.d.ts +0 -4
- package/es/color-picker/ColorPicker.d.ts +0 -4
- package/es/color-picker/components/panel/alpha.d.ts +0 -4
- package/es/color-picker/components/panel/format/index.d.ts +0 -10
- package/es/color-picker/components/panel/format/inputs.d.ts +0 -4
- package/es/color-picker/components/panel/header.d.ts +0 -13
- package/es/color-picker/components/panel/hue.d.ts +0 -4
- package/es/color-picker/components/panel/index.d.ts +0 -4
- package/es/color-picker/components/panel/saturation.d.ts +0 -4
- package/es/color-picker/components/panel/slider.d.ts +0 -11
- package/es/color-picker/components/panel/swatches.d.ts +0 -11
- package/es/color-picker/components/trigger.d.ts +0 -9
- package/es/color-picker/defaultProps.d.ts +0 -2
- package/es/color-picker/helpers.d.ts +0 -5
- package/es/color-picker/hooks/useClassNames.d.ts +0 -2
- package/es/color-picker/hooks/useStyles.d.ts +0 -14
- package/es/color-picker/index.d.ts +0 -6
- package/es/color-picker/style/css.d.ts +0 -1
- package/es/color-picker/style/index.d.ts +0 -1
- package/es/color-picker/type.d.ts +0 -135
- package/es/color-picker/utils/color-picker/cmyk.d.ts +0 -27
- package/es/color-picker/utils/color-picker/color.d.ts +0 -144
- package/es/color-picker/utils/color-picker/constants.d.ts +0 -30
- package/es/color-picker/utils/color-picker/draggable.d.ts +0 -23
- package/es/color-picker/utils/color-picker/format.d.ts +0 -64
- package/es/color-picker/utils/color-picker/gradient.d.ts +0 -22
- package/es/color-picker/utils/color-picker/index.d.ts +0 -7
- package/es/color-picker/utils/color-picker/types.d.ts +0 -28
- package/es/common/Check.d.ts +0 -22
- package/es/common/FakeArrow.d.ts +0 -9
- package/es/common/PluginContainer.d.ts +0 -9
- package/es/common/Portal.d.ts +0 -16
- package/es/common/observe.d.ts +0 -1
- package/es/common.d.ts +0 -81
- package/es/config-provider/ConfigContext.d.ts +0 -13
- package/es/config-provider/ConfigProvider.d.ts +0 -25
- package/es/config-provider/index.d.ts +0 -7
- package/es/config-provider/type.d.ts +0 -1029
- package/es/dialog/Dialog.d.ts +0 -8
- package/es/dialog/DialogCard.d.ts +0 -8
- package/es/dialog/defaultProps.d.ts +0 -6
- package/es/dialog/hooks/useDialogDrag.d.ts +0 -7
- package/es/dialog/hooks/useDialogEsc.d.ts +0 -3
- package/es/dialog/hooks/useDialogPosition.d.ts +0 -2
- package/es/dialog/hooks/useLockStyle.d.ts +0 -2
- package/es/dialog/index.d.ts +0 -8
- package/es/dialog/plugin.d.ts +0 -6
- package/es/dialog/style/css.d.ts +0 -1
- package/es/dialog/style/index.d.ts +0 -1
- package/es/dialog/type.d.ts +0 -227
- package/es/dialog/utils.d.ts +0 -1
- package/es/drawer/Drawer.d.ts +0 -11
- package/es/drawer/defaultProps.d.ts +0 -2
- package/es/drawer/hooks/useDrag.d.ts +0 -8
- package/es/drawer/hooks/useLockStyle.d.ts +0 -1
- package/es/drawer/index.d.ts +0 -4
- package/es/drawer/style/css.d.ts +0 -1
- package/es/drawer/style/index.d.ts +0 -1
- package/es/drawer/type.d.ts +0 -199
- package/es/drawer/utils/index.d.ts +0 -23
- package/es/fireworks/Fireworks.d.ts +0 -7
- package/es/fireworks/index.d.ts +0 -5
- package/es/fireworks/style/css.d.ts +0 -0
- package/es/fireworks/style/index.d.ts +0 -0
- package/es/fireworks/type.d.ts +0 -69
- package/es/form/Form.d.ts +0 -8
- package/es/form/FormContext.d.ts +0 -59
- package/es/form/FormItem.d.ts +0 -23
- package/es/form/FormList.d.ts +0 -4
- package/es/form/const.d.ts +0 -6
- package/es/form/defaultProps.d.ts +0 -3
- package/es/form/easing.d.ts +0 -2
- package/es/form/formModel.d.ts +0 -37
- package/es/form/hooks/interface.d.ts +0 -16
- package/es/form/hooks/useForm.d.ts +0 -3
- package/es/form/hooks/useFormItemInitialData.d.ts +0 -9
- package/es/form/hooks/useFormItemStyle.d.ts +0 -10
- package/es/form/hooks/useInstance.d.ts +0 -16
- package/es/form/hooks/useWatch.d.ts +0 -3
- package/es/form/index.d.ts +0 -7
- package/es/form/scroll.d.ts +0 -39
- package/es/form/style/css.d.ts +0 -1
- package/es/form/style/index.d.ts +0 -1
- package/es/form/type.d.ts +0 -486
- package/es/form/utils/index.d.ts +0 -5
- package/es/global-config/default-config.d.ts +0 -84
- package/es/global-config/locale/ar_KW.d.ts +0 -239
- package/es/global-config/locale/en_US.d.ts +0 -263
- package/es/global-config/locale/it_IT.d.ts +0 -263
- package/es/global-config/locale/ja_JP.d.ts +0 -263
- package/es/global-config/locale/ko_KR.d.ts +0 -263
- package/es/global-config/locale/ru_RU.d.ts +0 -263
- package/es/global-config/locale/zh_CN.d.ts +0 -263
- package/es/global-config/locale/zh_TW.d.ts +0 -263
- package/es/global-config/mobile/default-config.d.ts +0 -7
- package/es/global-config/mobile/locale/ar_KW.d.ts +0 -98
- package/es/global-config/mobile/locale/en_US.d.ts +0 -99
- package/es/global-config/mobile/locale/it_IT.d.ts +0 -99
- package/es/global-config/mobile/locale/ja_JP.d.ts +0 -99
- package/es/global-config/mobile/locale/ko_KR.d.ts +0 -99
- package/es/global-config/mobile/locale/ru_RU.d.ts +0 -99
- package/es/global-config/mobile/locale/zh_CN.d.ts +0 -99
- package/es/global-config/mobile/locale/zh_TW.d.ts +0 -99
- package/es/global-config/t.d.ts +0 -25
- package/es/hooks/useAttach.d.ts +0 -10
- package/es/hooks/useCommonClassName.d.ts +0 -54
- package/es/hooks/useConfig.d.ts +0 -2
- package/es/hooks/useControlled.d.ts +0 -9
- package/es/hooks/useDeepEffect.d.ts +0 -7
- package/es/hooks/useDefaultProps.d.ts +0 -1
- package/es/hooks/useDomCallback.d.ts +0 -1
- package/es/hooks/useDomRefCallback.d.ts +0 -1
- package/es/hooks/useDragSorter.d.ts +0 -28
- package/es/hooks/useEventCallback.d.ts +0 -9
- package/es/hooks/useGlobalConfig.d.ts +0 -1
- package/es/hooks/useGlobalIcon.d.ts +0 -5
- package/es/hooks/useLastest.d.ts +0 -2
- package/es/hooks/useLayoutEffect.d.ts +0 -3
- package/es/hooks/useMouseEvent.d.ts +0 -25
- package/es/hooks/useMutationObserver.d.ts +0 -4
- package/es/hooks/usePopper.d.ts +0 -19
- package/es/hooks/useResizeObserve.d.ts +0 -1
- package/es/hooks/useRipple.d.ts +0 -0
- package/es/hooks/useSetState.d.ts +0 -7
- package/es/hooks/useVirtualScroll.d.ts +0 -30
- package/es/hooks/useWindowSize.d.ts +0 -6
- package/es/index.d.ts +0 -25
- package/es/input/Input.d.ts +0 -16
- package/es/input/InputGroup.d.ts +0 -10
- package/es/input/defaultProps.d.ts +0 -17
- package/es/input/index.d.ts +0 -6
- package/es/input/style/css.d.ts +0 -1
- package/es/input/style/index.d.ts +0 -1
- package/es/input/type.d.ts +0 -237
- package/es/input-number/InputNumber.d.ts +0 -17
- package/es/input-number/defaultProps.d.ts +0 -2
- package/es/input-number/index.d.ts +0 -5
- package/es/input-number/style/css.d.ts +0 -1
- package/es/input-number/style/index.d.ts +0 -1
- package/es/input-number/type.d.ts +0 -156
- package/es/input-number/useInputNumber.d.ts +0 -51
- package/es/ip-input/IPInput.d.ts +0 -5
- package/es/ip-input/defaultProps.d.ts +0 -2
- package/es/ip-input/index.d.ts +0 -3
- package/es/ip-input/style/css.d.ts +0 -1
- package/es/ip-input/style/index.d.ts +0 -1
- package/es/ip-input/type.d.ts +0 -113
- package/es/ip-input/utils.d.ts +0 -35
- package/es/layout/Aside.d.ts +0 -11
- package/es/layout/Layout.d.ts +0 -26
- package/es/layout/defaultProps.d.ts +0 -5
- package/es/layout/index.d.ts +0 -10
- package/es/layout/style/css.d.ts +0 -1
- package/es/layout/style/index.d.ts +0 -1
- package/es/layout/type.d.ts +0 -38
- package/es/list/List.d.ts +0 -17
- package/es/list/ListItem.d.ts +0 -15
- package/es/list/ListItemMeta.d.ts +0 -10
- package/es/list/defaultProps.d.ts +0 -7
- package/es/list/hooks/useListVirtualScroll.d.ts +0 -24
- package/es/list/index.d.ts +0 -10
- package/es/list/style/css.d.ts +0 -1
- package/es/list/style/index.d.ts +0 -1
- package/es/list/type.d.ts +0 -92
- package/es/loading/Gradient.d.ts +0 -6
- package/es/loading/Loading.d.ts +0 -7
- package/es/loading/circleAdapter.d.ts +0 -1
- package/es/loading/defaultProps.d.ts +0 -2
- package/es/loading/index.d.ts +0 -5
- package/es/loading/style/css.d.ts +0 -1
- package/es/loading/style/index.d.ts +0 -1
- package/es/loading/type.d.ts +0 -68
- package/es/loading/utils/setStyle.d.ts +0 -7
- package/es/locale/LocalReceiver.d.ts +0 -6
- package/es/locale/ar_KW.d.ts +0 -3
- package/es/locale/en_US.d.ts +0 -3
- package/es/locale/it_IT.d.ts +0 -3
- package/es/locale/ja_JP.d.ts +0 -3
- package/es/locale/ko_KR.d.ts +0 -3
- package/es/locale/ru_RU.d.ts +0 -3
- package/es/locale/zh_CN.d.ts +0 -3
- package/es/locale/zh_TW.d.ts +0 -3
- package/es/myform/index.d.ts +0 -0
- package/es/notification/Notify.d.ts +0 -11
- package/es/notification/NotifyContainer.d.ts +0 -13
- package/es/notification/NotifyContext.d.ts +0 -23
- package/es/notification/NotifyItem.d.ts +0 -4
- package/es/notification/index.d.ts +0 -3
- package/es/notification/style/css.d.ts +0 -1
- package/es/notification/style/index.d.ts +0 -1
- package/es/notification/type.d.ts +0 -22
- package/es/popup/Popup.d.ts +0 -21
- package/es/popup/defaultProps.d.ts +0 -5
- package/es/popup/hooks/useTrigger.d.ts +0 -20
- package/es/popup/index.d.ts +0 -5
- package/es/popup/style/css.d.ts +0 -1
- package/es/popup/style/index.d.ts +0 -1
- package/es/popup/type.d.ts +0 -109
- package/es/portal/Portal.d.ts +0 -16
- package/es/portal/index.d.ts +0 -1
- package/es/radio/Radio.d.ts +0 -8
- package/es/radio/RadioGroup.d.ts +0 -14
- package/es/radio/defaultProps.d.ts +0 -3
- package/es/radio/index.d.ts +0 -10
- package/es/radio/style/css.d.ts +0 -0
- package/es/radio/style/index.d.ts +0 -1
- package/es/radio/type.d.ts +0 -117
- package/es/radio/useKeyboard.d.ts +0 -4
- package/es/select/Option.d.ts +0 -24
- package/es/select/OptionGroup.d.ts +0 -7
- package/es/select/PopupContent.d.ts +0 -24
- package/es/select/Select.d.ts +0 -13
- package/es/select/defaultProps.d.ts +0 -4
- package/es/select/hooks/useOptions.d.ts +0 -16
- package/es/select/hooks/usePanelVirtualScroll.d.ts +0 -24
- package/es/select/index.d.ts +0 -8
- package/es/select/style/css.d.ts +0 -1
- package/es/select/style/index.d.ts +0 -1
- package/es/select/type.d.ts +0 -344
- package/es/select/utils/helper.d.ts +0 -18
- package/es/select-input/SelectInput.d.ts +0 -11
- package/es/select-input/defaultProps.d.ts +0 -2
- package/es/select-input/hook/useMultiple.d.ts +0 -23
- package/es/select-input/hook/useOverlayInnerStyle.d.ts +0 -11
- package/es/select-input/hook/useSingle.d.ts +0 -16
- package/es/select-input/index.d.ts +0 -5
- package/es/select-input/interface.d.ts +0 -17
- package/es/select-input/style/css.d.ts +0 -1
- package/es/select-input/style/index.d.ts +0 -1
- package/es/select-input/type.d.ts +0 -243
- package/es/slider/Slider.d.ts +0 -7
- package/es/slider/SliderHandleButton.d.ts +0 -11
- package/es/slider/defaultProps.d.ts +0 -5
- package/es/slider/index.d.ts +0 -5
- package/es/slider/style/css.d.ts +0 -1
- package/es/slider/style/index.d.ts +0 -1
- package/es/slider/type.d.ts +0 -78
- 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.d.ts +0 -1
- package/es/switch/Switch.d.ts +0 -9
- package/es/switch/defaultProps.d.ts +0 -2
- package/es/switch/index.d.ts +0 -4
- package/es/switch/style/css.d.ts +0 -1
- package/es/switch/style/index.d.ts +0 -1
- package/es/switch/type.d.ts +0 -48
- package/es/tab/TabBar.d.ts +0 -9
- package/es/tab/TabNav.d.ts +0 -10
- package/es/tab/TabNavItem.d.ts +0 -15
- package/es/tab/TabPanel.d.ts +0 -9
- package/es/tab/Tabs.d.ts +0 -10
- package/es/tab/defaultProps.d.ts +0 -3
- package/es/tab/index.d.ts +0 -8
- package/es/tab/style/index.d.ts +0 -1
- package/es/tab/type.d.ts +0 -130
- package/es/tab/useTabClass.d.ts +0 -8
- package/es/table/Cell.d.ts +0 -18
- package/es/table/TBody.d.ts +0 -28
- package/es/table/THead.d.ts +0 -10
- package/es/table/TR.d.ts +0 -28
- package/es/table/Table.d.ts +0 -6
- package/es/table/defaultProps.d.ts +0 -2
- package/es/table/hooks/index.d.ts +0 -4
- package/es/table/hooks/useTableClassName.d.ts +0 -26
- package/es/table/hooks/useTableStyle.d.ts +0 -11
- package/es/table/index.d.ts +0 -5
- package/es/table/style/css.d.ts +0 -1
- package/es/table/style/index.d.ts +0 -1
- package/es/table/type.d.ts +0 -195
- package/es/tag/Tag.d.ts +0 -14
- package/es/tag/defaultProps.d.ts +0 -7
- package/es/tag/index.d.ts +0 -4
- package/es/tag/style/css.d.ts +0 -1
- package/es/tag/style/index.d.ts +0 -1
- package/es/tag/type.d.ts +0 -169
- package/es/tag-input/TagInput.d.ts +0 -9
- package/es/tag-input/defaultProps.d.ts +0 -2
- package/es/tag-input/hooks/useHover.d.ts +0 -17
- package/es/tag-input/hooks/useTagList.d.ts +0 -30
- package/es/tag-input/hooks/useTagScroll.d.ts +0 -25
- package/es/tag-input/index.d.ts +0 -5
- package/es/tag-input/style/css.d.ts +0 -1
- package/es/tag-input/style/index.d.ts +0 -1
- package/es/tag-input/type.d.ts +0 -235
- package/es/tag-input/useTagList.d.ts +0 -30
- package/es/utils/composeRefs.d.ts +0 -2
- package/es/utils/dom.d.ts +0 -7
- package/es/utils/forwardRefWithStatics.d.ts +0 -2
- package/es/utils/getScrollbarWidth.d.ts +0 -6
- package/es/utils/helper.d.ts +0 -46
- package/es/utils/input-number/large-number.d.ts +0 -85
- package/es/utils/input-number/number.d.ts +0 -81
- package/es/utils/isFragment.d.ts +0 -4
- package/es/utils/listener.d.ts +0 -4
- package/es/utils/log/index.d.ts +0 -2
- package/es/utils/log/log.d.ts +0 -3
- package/es/utils/log/types.d.ts +0 -8
- package/es/utils/noop.d.ts +0 -2
- package/es/utils/number.d.ts +0 -7
- package/es/utils/parentTNode.d.ts +0 -10
- package/es/utils/parseTNode.d.ts +0 -10
- package/es/utils/react-render.d.ts +0 -16
- package/es/utils/ref.d.ts +0 -1
- package/es/utils/refs.d.ts +0 -13
- package/es/utils/scroll.d.ts +0 -3
- package/es/utils/style.d.ts +0 -4
- package/es/utils/transition.d.ts +0 -20
package/es/hooks/useAttach.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,54 +0,0 @@
|
|
|
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>;
|
package/es/hooks/useConfig.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useDefaultProps<T>(originalProps: T, defaultProps: Partial<T>): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useDomRefCallback<T extends HTMLElement>(): readonly [T, (dom: T | null) => void];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useDomRefCallback(): [HTMLElement, React.Dispatch<React.SetStateAction<HTMLElement>>];
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useGlobalIcon(tdIcon: Record<string, unknown>): {};
|
|
@@ -1,5 +0,0 @@
|
|
|
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 {};
|
package/es/hooks/useLastest.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
package/es/hooks/usePopper.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useResizeObserver(container: React.MutableRefObject<HTMLElement | null>, callback: (data: ResizeObserverEntry[]) => void, enabled?: boolean): void;
|
package/es/hooks/useRipple.d.ts
DELETED
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,30 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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/input/Input.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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/InputGroup.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/**
|
|
4
|
-
* 是否拆分
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
separate?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default InputGroup;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const inputDefaultProps: {
|
|
2
|
-
align: "left" | "center" | "right";
|
|
3
|
-
autoWidth: boolean;
|
|
4
|
-
autocomplete: any;
|
|
5
|
-
autofocus: boolean;
|
|
6
|
-
borderless: boolean;
|
|
7
|
-
allowInput: boolean;
|
|
8
|
-
clearable: boolean;
|
|
9
|
-
placeholder: any;
|
|
10
|
-
readonly: boolean;
|
|
11
|
-
showClearIconOnEmpty: boolean;
|
|
12
|
-
size: string;
|
|
13
|
-
spellCheck: boolean;
|
|
14
|
-
status: string;
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
package/es/input/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "./style/index.js";
|
|
2
|
-
export type { InputProps, InputRef } from "./Input";
|
|
3
|
-
export * from "./type";
|
|
4
|
-
export declare const Input: import("react").ForwardRefExoticComponent<import("./Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
-
export declare const InputGroup: import("react").ForwardRefExoticComponent<import("./InputGroup").InputGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export default Input;
|
package/es/input/style/css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/input/type.d.ts
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { TNode, TElement, SizeEnum, ClassName } from "../common";
|
|
2
|
-
import { MouseEvent, KeyboardEvent, ClipboardEvent, FocusEvent, WheelEvent, FormEvent, CompositionEvent } from "react";
|
|
3
|
-
export interface TdInputProps {
|
|
4
|
-
/**
|
|
5
|
-
* 文本内容位置,居左/居中/居右
|
|
6
|
-
* @default left
|
|
7
|
-
*/
|
|
8
|
-
align?: "left" | "center" | "right";
|
|
9
|
-
/**
|
|
10
|
-
* 输入框是否可输入内容
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
allowInput?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 超出 `maxlength` 或 `maxcharacter` 之后是否允许继续输入
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* 宽度随内容自适应
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
autoWidth?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 是否开启自动填充功能,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
|
25
|
-
*/
|
|
26
|
-
autocomplete?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 自动聚焦
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
autofocus?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 是否开启无边框模式
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
borderless?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* 是否可清空
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
clearable?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 是否禁用输入框
|
|
44
|
-
*/
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* 指定输入框展示值的格式
|
|
48
|
-
*/
|
|
49
|
-
format?: InputFormatType;
|
|
50
|
-
/**
|
|
51
|
-
* t-input 同级类名,示例:'name1 name2 name3' 或 `['name1', 'name2']` 或 `[{ 'name1': true }]`
|
|
52
|
-
*/
|
|
53
|
-
inputClass?: ClassName;
|
|
54
|
-
/**
|
|
55
|
-
* 左侧文本
|
|
56
|
-
*/
|
|
57
|
-
label?: TNode;
|
|
58
|
-
/**
|
|
59
|
-
* 用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用
|
|
60
|
-
*/
|
|
61
|
-
maxcharacter?: number;
|
|
62
|
-
/**
|
|
63
|
-
* 用户最多可以输入的文本长度,一个中文等于一个计数长度。值为空,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用
|
|
64
|
-
*/
|
|
65
|
-
maxlength?: number;
|
|
66
|
-
/**
|
|
67
|
-
* 名称
|
|
68
|
-
* @default ''
|
|
69
|
-
*/
|
|
70
|
-
name?: string;
|
|
71
|
-
/**
|
|
72
|
-
* 占位符
|
|
73
|
-
*/
|
|
74
|
-
placeholder?: string;
|
|
75
|
-
/**
|
|
76
|
-
* 组件前置图标
|
|
77
|
-
*/
|
|
78
|
-
prefixIcon?: TElement;
|
|
79
|
-
/**
|
|
80
|
-
* 只读状态
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
readonly?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* 输入框内容为空时,悬浮状态是否显示清空按钮,默认不显示
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
showClearIconOnEmpty?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 输入框尺寸
|
|
91
|
-
* @default medium
|
|
92
|
-
*/
|
|
93
|
-
size?: SizeEnum;
|
|
94
|
-
/**
|
|
95
|
-
* 是否开启拼写检查,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/spellcheck)
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
spellCheck?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* 输入框状态
|
|
101
|
-
* @default default
|
|
102
|
-
*/
|
|
103
|
-
status?: "default" | "success" | "warning" | "error";
|
|
104
|
-
/**
|
|
105
|
-
* 后置图标前的后置内容
|
|
106
|
-
*/
|
|
107
|
-
suffix?: TNode;
|
|
108
|
-
/**
|
|
109
|
-
* 组件后置图标
|
|
110
|
-
*/
|
|
111
|
-
suffixIcon?: TElement;
|
|
112
|
-
/**
|
|
113
|
-
* 输入框下方提示文本,会根据不同的 `status` 呈现不同的样式
|
|
114
|
-
*/
|
|
115
|
-
tips?: TNode;
|
|
116
|
-
/**
|
|
117
|
-
* 输入框类型
|
|
118
|
-
* @default text
|
|
119
|
-
*/
|
|
120
|
-
type?: "text" | "number" | "url" | "tel" | "password" | "search" | "submit" | "hidden";
|
|
121
|
-
/**
|
|
122
|
-
* 输入框的值
|
|
123
|
-
* @default ''
|
|
124
|
-
*/
|
|
125
|
-
value?: InputValue;
|
|
126
|
-
/**
|
|
127
|
-
* 输入框的值,非受控属性
|
|
128
|
-
* @default ''
|
|
129
|
-
*/
|
|
130
|
-
defaultValue?: InputValue;
|
|
131
|
-
/**
|
|
132
|
-
* 失去焦点时触发
|
|
133
|
-
*/
|
|
134
|
-
onBlur?: (value: InputValue, context: {
|
|
135
|
-
e: FocusEvent<HTMLInputElement>;
|
|
136
|
-
}) => void;
|
|
137
|
-
/**
|
|
138
|
-
* 输入框值发生变化时触发。参数 `trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制
|
|
139
|
-
*/
|
|
140
|
-
onChange?: (value: InputValue, context?: {
|
|
141
|
-
e?: FormEvent<HTMLInputElement> | MouseEvent<Element> | CompositionEvent<HTMLDivElement>;
|
|
142
|
-
trigger: "input" | "initial" | "clear";
|
|
143
|
-
}) => void;
|
|
144
|
-
/**
|
|
145
|
-
* 清空按钮点击时触发
|
|
146
|
-
*/
|
|
147
|
-
onClear?: (context: {
|
|
148
|
-
e: MouseEvent<SVGElement>;
|
|
149
|
-
}) => void;
|
|
150
|
-
/**
|
|
151
|
-
* 点击组件时触发
|
|
152
|
-
*/
|
|
153
|
-
onClick?: (context: {
|
|
154
|
-
e: MouseEvent<HTMLDivElement>;
|
|
155
|
-
}) => void;
|
|
156
|
-
/**
|
|
157
|
-
* 中文输入结束时触发
|
|
158
|
-
*/
|
|
159
|
-
onCompositionend?: (value: InputValue, context: {
|
|
160
|
-
e: CompositionEvent<HTMLDivElement>;
|
|
161
|
-
}) => void;
|
|
162
|
-
/**
|
|
163
|
-
* 中文输入开始时触发
|
|
164
|
-
*/
|
|
165
|
-
onCompositionstart?: (value: InputValue, context: {
|
|
166
|
-
e: CompositionEvent<HTMLDivElement>;
|
|
167
|
-
}) => void;
|
|
168
|
-
/**
|
|
169
|
-
* 回车键按下时触发
|
|
170
|
-
*/
|
|
171
|
-
onEnter?: (value: InputValue, context: {
|
|
172
|
-
e: KeyboardEvent<HTMLInputElement>;
|
|
173
|
-
}) => void;
|
|
174
|
-
/**
|
|
175
|
-
* 获得焦点时触发
|
|
176
|
-
*/
|
|
177
|
-
onFocus?: (value: InputValue, context: {
|
|
178
|
-
e: FocusEvent<HTMLInputElement>;
|
|
179
|
-
}) => void;
|
|
180
|
-
/**
|
|
181
|
-
* 键盘按下时触发
|
|
182
|
-
*/
|
|
183
|
-
onKeydown?: (value: InputValue, context: {
|
|
184
|
-
e: KeyboardEvent<HTMLDivElement>;
|
|
185
|
-
}) => void;
|
|
186
|
-
/**
|
|
187
|
-
* 按下字符键时触发(keydown -> keypress -> keyup)
|
|
188
|
-
*/
|
|
189
|
-
onKeypress?: (value: InputValue, context: {
|
|
190
|
-
e: KeyboardEvent<HTMLDivElement>;
|
|
191
|
-
}) => void;
|
|
192
|
-
/**
|
|
193
|
-
* 释放键盘时触发
|
|
194
|
-
*/
|
|
195
|
-
onKeyup?: (value: InputValue, context: {
|
|
196
|
-
e: KeyboardEvent<HTMLDivElement>;
|
|
197
|
-
}) => void;
|
|
198
|
-
/**
|
|
199
|
-
* 进入输入框时触发
|
|
200
|
-
*/
|
|
201
|
-
onMouseenter?: (context: {
|
|
202
|
-
e: MouseEvent<HTMLDivElement>;
|
|
203
|
-
}) => void;
|
|
204
|
-
/**
|
|
205
|
-
* 离开输入框时触发
|
|
206
|
-
*/
|
|
207
|
-
onMouseleave?: (context: {
|
|
208
|
-
e: MouseEvent<HTMLDivElement>;
|
|
209
|
-
}) => void;
|
|
210
|
-
/**
|
|
211
|
-
* 粘贴事件,`pasteValue` 表示粘贴板的内容
|
|
212
|
-
*/
|
|
213
|
-
onPaste?: (context: {
|
|
214
|
-
e: ClipboardEvent<HTMLDivElement>;
|
|
215
|
-
pasteValue: string;
|
|
216
|
-
}) => void;
|
|
217
|
-
/**
|
|
218
|
-
* 字数超出限制时触发
|
|
219
|
-
*/
|
|
220
|
-
onValidate?: (context: {
|
|
221
|
-
error?: "exceed-maximum" | "below-minimum";
|
|
222
|
-
}) => void;
|
|
223
|
-
/**
|
|
224
|
-
* 输入框中滚动鼠标时触发
|
|
225
|
-
*/
|
|
226
|
-
onWheel?: (context: {
|
|
227
|
-
e: WheelEvent<HTMLDivElement>;
|
|
228
|
-
}) => void;
|
|
229
|
-
}
|
|
230
|
-
export interface TdInputGroupProps {
|
|
231
|
-
/**
|
|
232
|
-
* 多个输入框之间是否需要间隔
|
|
233
|
-
*/
|
|
234
|
-
separate?: boolean;
|
|
235
|
-
}
|
|
236
|
-
export type InputFormatType = (value: InputValue) => string;
|
|
237
|
-
export type InputValue = string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { ForwardedRef } from "react";
|
|
2
|
-
import { InputNumberValue, TdInputNumberProps } from "./type";
|
|
3
|
-
import { StyledProps } from "../common";
|
|
4
|
-
export interface InputNumberProps<T = InputNumberValue> extends TdInputNumberProps<T>, StyledProps {
|
|
5
|
-
}
|
|
6
|
-
export interface InputNumberRef {
|
|
7
|
-
currentElement: ForwardedRef<HTMLDivElement>;
|
|
8
|
-
inputElement: ForwardedRef<HTMLDivElement>;
|
|
9
|
-
}
|
|
10
|
-
declare function TdInputNumber<T extends InputNumberValue = InputNumberValue>(originalProps: InputNumberProps<T>, ref: ForwardedRef<InputNumberRef>): React.JSX.Element;
|
|
11
|
-
export type InputNumberOuterForwardRef = {
|
|
12
|
-
<T>(props: InputNumberProps<T> & {
|
|
13
|
-
ref?: ForwardedRef<InputNumberRef>;
|
|
14
|
-
}): ReturnType<typeof TdInputNumber>;
|
|
15
|
-
} & React.ForwardRefExoticComponent<InputNumberProps>;
|
|
16
|
-
declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps<InputNumberValue> & React.RefAttributes<InputNumberRef>>;
|
|
17
|
-
export default InputNumber;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "./style/index.js";
|
|
2
|
-
export type { InputNumberProps } from "./InputNumber";
|
|
3
|
-
export * from "./type";
|
|
4
|
-
export declare const InputNumber: import("react").ForwardRefExoticComponent<import("./InputNumber").InputNumberProps<import("./type").InputNumberValue> & import("react").RefAttributes<import("./InputNumber").InputNumberRef>>;
|
|
5
|
-
export default InputNumber;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|