@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
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import tinyColor from "tinycolor2";
|
|
2
|
-
import { GradientColorPoint, GradientColors } from "./gradient";
|
|
3
|
-
import type { ColorFormat } from "./types";
|
|
4
|
-
export interface ColorObject {
|
|
5
|
-
alpha: number;
|
|
6
|
-
css: string;
|
|
7
|
-
hex: string;
|
|
8
|
-
hex8: string;
|
|
9
|
-
hsl: string;
|
|
10
|
-
hsla: string;
|
|
11
|
-
hsv: string;
|
|
12
|
-
hsva: string;
|
|
13
|
-
rgb: string;
|
|
14
|
-
rgba: string;
|
|
15
|
-
saturation: number;
|
|
16
|
-
value: number;
|
|
17
|
-
isGradient: boolean;
|
|
18
|
-
linearGradient?: string;
|
|
19
|
-
}
|
|
20
|
-
interface ColorStates {
|
|
21
|
-
s: number;
|
|
22
|
-
v: number;
|
|
23
|
-
h: number;
|
|
24
|
-
a: number;
|
|
25
|
-
}
|
|
26
|
-
interface GradientStates {
|
|
27
|
-
colors: GradientColorPoint[];
|
|
28
|
-
degree: number;
|
|
29
|
-
selectedId: string;
|
|
30
|
-
css?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 将渐变对象转换成字符串
|
|
34
|
-
*/
|
|
35
|
-
export declare const gradientColors2string: (object: GradientColors) => string;
|
|
36
|
-
/**
|
|
37
|
-
* 去除颜色的透明度
|
|
38
|
-
*/
|
|
39
|
-
export declare const getColorWithoutAlpha: (color: string) => string;
|
|
40
|
-
export declare const genId: () => string;
|
|
41
|
-
/**
|
|
42
|
-
* 生成一个渐变颜色
|
|
43
|
-
* @param left
|
|
44
|
-
* @param color
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
export declare const genGradientPoint: (left: number, color: string, id?: string) => GradientColorPoint;
|
|
48
|
-
export declare class Color {
|
|
49
|
-
states: ColorStates;
|
|
50
|
-
originColor: string;
|
|
51
|
-
isGradient: boolean;
|
|
52
|
-
gradientStates: GradientStates;
|
|
53
|
-
constructor(input: string);
|
|
54
|
-
update(input: string): void;
|
|
55
|
-
get saturation(): number;
|
|
56
|
-
set saturation(value: number);
|
|
57
|
-
get value(): number;
|
|
58
|
-
set value(value: number);
|
|
59
|
-
get hue(): number;
|
|
60
|
-
set hue(value: number);
|
|
61
|
-
get alpha(): number;
|
|
62
|
-
set alpha(value: number);
|
|
63
|
-
get rgb(): string;
|
|
64
|
-
get rgba(): string;
|
|
65
|
-
get hsv(): string;
|
|
66
|
-
get hsva(): string;
|
|
67
|
-
get hsl(): string;
|
|
68
|
-
get hsla(): string;
|
|
69
|
-
get hex(): string;
|
|
70
|
-
get hex8(): string;
|
|
71
|
-
get cmyk(): string;
|
|
72
|
-
get css(): string;
|
|
73
|
-
get linearGradient(): string;
|
|
74
|
-
get gradientColors(): GradientColorPoint[];
|
|
75
|
-
set gradientColors(colors: GradientColorPoint[]);
|
|
76
|
-
get gradientSelectedId(): string;
|
|
77
|
-
set gradientSelectedId(id: string);
|
|
78
|
-
get gradientDegree(): number;
|
|
79
|
-
set gradientDegree(degree: number);
|
|
80
|
-
get gradientSelectedPoint(): GradientColorPoint;
|
|
81
|
-
getFormatsColorMap(): {
|
|
82
|
-
HEX: string;
|
|
83
|
-
CMYK: string;
|
|
84
|
-
RGB: string;
|
|
85
|
-
RGBA: string;
|
|
86
|
-
HSL: string;
|
|
87
|
-
HSLA: string;
|
|
88
|
-
HSV: string;
|
|
89
|
-
HSVA: string;
|
|
90
|
-
CSS: string;
|
|
91
|
-
HEX8: string;
|
|
92
|
-
};
|
|
93
|
-
getFormattedColor(format: ColorFormat, enableAlpha: boolean): string;
|
|
94
|
-
updateCurrentGradientColor(): false | this;
|
|
95
|
-
updateStates(input: string): void;
|
|
96
|
-
getRgba(): {
|
|
97
|
-
r: number;
|
|
98
|
-
g: number;
|
|
99
|
-
b: number;
|
|
100
|
-
a: number;
|
|
101
|
-
};
|
|
102
|
-
getCmyk(): {
|
|
103
|
-
c: number;
|
|
104
|
-
m: number;
|
|
105
|
-
y: number;
|
|
106
|
-
k: number;
|
|
107
|
-
};
|
|
108
|
-
getHsva(): tinyColor.ColorFormats.HSVA;
|
|
109
|
-
getHsla(): tinyColor.ColorFormats.HSLA;
|
|
110
|
-
/**
|
|
111
|
-
* 判断输入色是否与当前色相同
|
|
112
|
-
*/
|
|
113
|
-
equals(color: string): boolean;
|
|
114
|
-
/**
|
|
115
|
-
* 校验输入色是否是一个有效颜色
|
|
116
|
-
* @param color
|
|
117
|
-
* @returns
|
|
118
|
-
*/
|
|
119
|
-
static isValid(color: string): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* 对象转颜色字符串
|
|
122
|
-
*/
|
|
123
|
-
static object2color(object: any, format: ColorFormat): string;
|
|
124
|
-
/**
|
|
125
|
-
* 是否是渐变色
|
|
126
|
-
* @param input
|
|
127
|
-
* @returns
|
|
128
|
-
*/
|
|
129
|
-
static isGradientColor: (input: string) => boolean;
|
|
130
|
-
/**
|
|
131
|
-
* 比较两个颜色是否相同
|
|
132
|
-
* @param color1
|
|
133
|
-
* @param color2
|
|
134
|
-
* @returns
|
|
135
|
-
*/
|
|
136
|
-
static compare: (color1: string, color2: string) => boolean;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* 获取对外输出的color对象
|
|
140
|
-
* @param color
|
|
141
|
-
* @returns
|
|
142
|
-
*/
|
|
143
|
-
export declare const getColorObject: (color: Color) => ColorObject | null;
|
|
144
|
-
export default Color;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { BasicColorFormat, ColorInputProp } from "./types";
|
|
2
|
-
export declare const TD_COLOR_USED_COLORS_MAX_SIZE = 100;
|
|
3
|
-
export declare const COLOR_MODES: {
|
|
4
|
-
monochrome: string;
|
|
5
|
-
"linear-gradient": string;
|
|
6
|
-
};
|
|
7
|
-
export declare const DEFAULT_COLOR = "#001F97";
|
|
8
|
-
export declare const DEFAULT_LINEAR_GRADIENT = "linear-gradient(90deg, rgba(241,29,0,1) 0%, rgba(73,106,220,1) 100%);";
|
|
9
|
-
export declare const DEFAULT_SYSTEM_SWATCH_COLORS: string[];
|
|
10
|
-
/**
|
|
11
|
-
* 非透明色格式化类型
|
|
12
|
-
*/
|
|
13
|
-
export declare const FORMATS: readonly ["HEX", "RGB", "HSL", "HSV", "CMYK", "CSS"];
|
|
14
|
-
/**
|
|
15
|
-
* 透明色格式化类型映射
|
|
16
|
-
*/
|
|
17
|
-
export declare const ALPHA_FORMAT_MAP: {
|
|
18
|
-
readonly HEX: "HEX8";
|
|
19
|
-
readonly RGB: "RGBA";
|
|
20
|
-
readonly HSL: "HSLA";
|
|
21
|
-
readonly HSV: "HSVA";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* 不同格式对应的输入框
|
|
25
|
-
*/
|
|
26
|
-
export declare const COLOR_FORMAT_INPUTS: Record<BasicColorFormat, ColorInputProp[]>;
|
|
27
|
-
export declare const SATURATION_PANEL_DEFAULT_WIDTH = 230;
|
|
28
|
-
export declare const SATURATION_PANEL_DEFAULT_HEIGHT = 168;
|
|
29
|
-
export declare const SLIDER_DEFAULT_WIDTH = 186;
|
|
30
|
-
export declare const GRADIENT_SLIDER_DEFAULT_WIDTH = 176;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface Coordinate {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export type DraggableEvent = MouseEvent;
|
|
6
|
-
interface DraggableCallback {
|
|
7
|
-
(coordinate: Coordinate, event?: DraggableEvent): void;
|
|
8
|
-
}
|
|
9
|
-
export interface DraggableProps {
|
|
10
|
-
start?: DraggableCallback;
|
|
11
|
-
drag?: DraggableCallback;
|
|
12
|
-
end?: DraggableCallback;
|
|
13
|
-
}
|
|
14
|
-
export declare class Draggable {
|
|
15
|
-
#private;
|
|
16
|
-
private dragging;
|
|
17
|
-
private $el;
|
|
18
|
-
private props;
|
|
19
|
-
private handles;
|
|
20
|
-
constructor(el: HTMLElement, options?: DraggableProps);
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
|
23
|
-
export default Draggable;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import Color from './color';
|
|
2
|
-
import type { ColorFormat } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* 兜底处理用户传入的格式,例如:
|
|
5
|
-
* - 传入 `RGB`, 但 `enableAlpha` ,则返回 `RGBA`
|
|
6
|
-
*/
|
|
7
|
-
export declare const initColorFormat: (format: ColorFormat, enableAlpha: boolean) => ColorFormat;
|
|
8
|
-
/**
|
|
9
|
-
* 获取不同格式的输入输出值
|
|
10
|
-
* - encode:将字符串转换为单独的颜色值,例如 `{r: 255, g: 255, b: 255}`
|
|
11
|
-
* - decode:获取完整的颜色字符串,例如 `rgb(255, 255, 255)`
|
|
12
|
-
*/
|
|
13
|
-
export declare const getColorFormatMap: (color: Color, type: "encode" | "decode") => {
|
|
14
|
-
HEX: string;
|
|
15
|
-
CMYK: string;
|
|
16
|
-
RGB: string;
|
|
17
|
-
RGBA: string;
|
|
18
|
-
HSL: string;
|
|
19
|
-
HSLA: string;
|
|
20
|
-
HSV: string;
|
|
21
|
-
HSVA: string;
|
|
22
|
-
CSS: string;
|
|
23
|
-
HEX8: string;
|
|
24
|
-
} | {
|
|
25
|
-
HSV: import("tinycolor2").ColorFormats.HSVA;
|
|
26
|
-
HSVA: import("tinycolor2").ColorFormats.HSVA;
|
|
27
|
-
HSL: import("tinycolor2").ColorFormats.HSLA;
|
|
28
|
-
HSLA: import("tinycolor2").ColorFormats.HSLA;
|
|
29
|
-
RGB: {
|
|
30
|
-
r: number;
|
|
31
|
-
g: number;
|
|
32
|
-
b: number;
|
|
33
|
-
a: number;
|
|
34
|
-
};
|
|
35
|
-
RGBA: {
|
|
36
|
-
r: number;
|
|
37
|
-
g: number;
|
|
38
|
-
b: number;
|
|
39
|
-
a: number;
|
|
40
|
-
};
|
|
41
|
-
CMYK: {
|
|
42
|
-
c: number;
|
|
43
|
-
m: number;
|
|
44
|
-
y: number;
|
|
45
|
-
k: number;
|
|
46
|
-
};
|
|
47
|
-
CSS: {
|
|
48
|
-
css: string;
|
|
49
|
-
};
|
|
50
|
-
HEX: {
|
|
51
|
-
hex: string;
|
|
52
|
-
};
|
|
53
|
-
HEX8: {
|
|
54
|
-
hex: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* 获取下拉框的格式选项
|
|
59
|
-
*/
|
|
60
|
-
export declare const getColorFormatOptions: (enableAlpha: boolean) => readonly ["HEX", "RGB", "HSL", "HSV", "CMYK", "CSS"] | ("HEX" | "RGB" | "HSL" | "HSV" | "CMYK" | "CSS" | "HEX8" | "RGBA" | "HSLA" | "HSVA")[];
|
|
61
|
-
/**
|
|
62
|
-
* 获取当前格式的输入框配置
|
|
63
|
-
*/
|
|
64
|
-
export declare const getColorFormatInputs: (format: ColorFormat, enableAlpha: boolean) => import("./types").ColorInputProp[];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface GradientColorPoint {
|
|
2
|
-
id?: string;
|
|
3
|
-
color?: string;
|
|
4
|
-
left?: number;
|
|
5
|
-
}
|
|
6
|
-
export interface GradientColors {
|
|
7
|
-
points: GradientColorPoint[];
|
|
8
|
-
degree: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 验证是否是渐变字符串
|
|
12
|
-
* @param input
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare const isGradientColor: (input: string) => null | RegExpExecArray;
|
|
16
|
-
/**
|
|
17
|
-
* 解析渐变字符串为 GradientColors 对象
|
|
18
|
-
* @param input
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
export declare const parseGradientString: (input: string) => GradientColors | false;
|
|
22
|
-
export default parseGradientString;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ALPHA_FORMAT_MAP, FORMATS } from './constants';
|
|
2
|
-
/**
|
|
3
|
-
* 非透明色类型
|
|
4
|
-
*/
|
|
5
|
-
export type BasicColorFormat = typeof FORMATS[number];
|
|
6
|
-
/**
|
|
7
|
-
* 支持转为透明格式的非透明色类型
|
|
8
|
-
*/
|
|
9
|
-
export type AlphaConvertibleFormat = keyof typeof ALPHA_FORMAT_MAP;
|
|
10
|
-
/**
|
|
11
|
-
* 透明色类型
|
|
12
|
-
*/
|
|
13
|
-
export type AlphaColorFormat = typeof ALPHA_FORMAT_MAP[AlphaConvertibleFormat];
|
|
14
|
-
/**
|
|
15
|
-
* 完整的颜色格式类型
|
|
16
|
-
*/
|
|
17
|
-
export type ColorFormat = BasicColorFormat | AlphaColorFormat;
|
|
18
|
-
/**
|
|
19
|
-
* 不同颜色格式对应的输入框配置
|
|
20
|
-
*/
|
|
21
|
-
export interface ColorInputProp {
|
|
22
|
-
key: string;
|
|
23
|
-
min?: number;
|
|
24
|
-
max?: number;
|
|
25
|
-
type: 'input' | 'inputNumber';
|
|
26
|
-
flex?: number;
|
|
27
|
-
format?: Function;
|
|
28
|
-
}
|
package/es/common/Check.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyledProps } from "../common";
|
|
3
|
-
import { TdCheckboxProps } from "../checkbox/type";
|
|
4
|
-
export interface CheckProps extends TdCheckboxProps, StyledProps {
|
|
5
|
-
type: "radio" | "radio-button" | "checkbox";
|
|
6
|
-
allowUncheck?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
stopLabelTrigger?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Check 组件支持使用 CheckContext 进行状态托管
|
|
13
|
-
*/
|
|
14
|
-
export declare const CheckContext: React.Context<CheckContextValue>;
|
|
15
|
-
/**
|
|
16
|
-
* 托管 Check 组件的状态,请提供 inject() 方法注入托管好的 props
|
|
17
|
-
*/
|
|
18
|
-
export interface CheckContextValue {
|
|
19
|
-
inject: (props: CheckProps) => CheckProps;
|
|
20
|
-
}
|
|
21
|
-
declare const Check: React.ForwardRefExoticComponent<CheckProps & React.RefAttributes<HTMLLabelElement>>;
|
|
22
|
-
export default Check;
|
package/es/common/FakeArrow.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ConfigProviderProps } from "../config-provider";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param notSet 默认不传设置为true,函数是调用唤起组件不需要同步设置全局上下文信息
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
declare const PluginContainer: React.FC<ConfigProviderProps>;
|
|
9
|
-
export default PluginContainer;
|
package/es/common/Portal.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AttachNode, AttachNodeReturnValue } from "../common";
|
|
3
|
-
export interface PortalProps {
|
|
4
|
-
/**
|
|
5
|
-
* 指定挂载的 HTML 节点, false 为挂载在 body
|
|
6
|
-
*/
|
|
7
|
-
attach?: React.ReactElement | AttachNode | boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 触发元素
|
|
10
|
-
*/
|
|
11
|
-
triggerNode?: HTMLElement;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare function getAttach(attach: PortalProps["attach"], triggerNode?: HTMLElement): AttachNodeReturnValue;
|
|
15
|
-
declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<unknown>>;
|
|
16
|
-
export default Portal;
|
package/es/common/observe.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function observe(element: HTMLElement, root: HTMLElement, callback: Function, marginBottom: number): IntersectionObserver;
|
package/es/common.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactElement, FormEvent } from "react";
|
|
2
|
-
export interface StyledProps {
|
|
3
|
-
style?: React.CSSProperties;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export type FormResetEvent = FormEvent<HTMLFormElement>;
|
|
7
|
-
export type FormSubmitEvent = FormEvent<HTMLFormElement>;
|
|
8
|
-
export type AttachNodeReturnValue = HTMLElement | Element | Document | null;
|
|
9
|
-
export type AttachNode = CSSSelector | ((triggerNode?: HTMLElement) => AttachNodeReturnValue);
|
|
10
|
-
export type CSSSelector = string;
|
|
11
|
-
export type Styles = CSSProperties;
|
|
12
|
-
export type TNode<T = undefined> = T extends undefined ? React.ReactNode : React.ReactNode | ((props: T) => React.ReactNode);
|
|
13
|
-
export type ClassName = string | string[] | {
|
|
14
|
-
[key: string]: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type SizeEnum = "small" | "medium" | "large";
|
|
17
|
-
export type ShapeEnum = "circle" | "round";
|
|
18
|
-
export type HorizontalAlignEnum = "left" | "center" | "right";
|
|
19
|
-
export type VerticalAlignEnum = "top" | "middle" | "bottom";
|
|
20
|
-
export type LayoutEnum = "vertical" | "horizontal";
|
|
21
|
-
export type TElement<T = undefined> = T extends undefined ? ReactElement : (props: T) => ReactElement;
|
|
22
|
-
export interface TScroll {
|
|
23
|
-
/**
|
|
24
|
-
* 表示除可视区域外,额外渲染的行数,避免快速滚动过程中,新出现的内容来不及渲染从而出现空白
|
|
25
|
-
* @default 20
|
|
26
|
-
*/
|
|
27
|
-
bufferSize?: number;
|
|
28
|
-
/**
|
|
29
|
-
* 表示每行内容是否同一个固定高度,仅在 `scroll.type` 为 `virtual` 时有效,该属性设置为 `true` 时,可用于简化虚拟滚动内部计算逻辑,提升性能,此时则需要明确指定 `scroll.rowHeight` 属性的值
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
isFixedRowHeight?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 行高,不会给元素添加样式高度,仅作为滚动时的行高参考。一般情况不需要设置该属性。如果设置,可尽量将该属性设置为每行平均高度,从而使得滚动过程更加平滑
|
|
35
|
-
*/
|
|
36
|
-
rowHeight?: number;
|
|
37
|
-
/**
|
|
38
|
-
* 启动虚拟滚动的阈值。为保证组件收益最大化,当数据量小于阈值 `scroll.threshold` 时,无论虚拟滚动的配置是否存在,组件内部都不会开启虚拟滚动
|
|
39
|
-
* @default 100
|
|
40
|
-
*/
|
|
41
|
-
threshold?: number;
|
|
42
|
-
/**
|
|
43
|
-
* 滚动加载类型,有两种:懒加载和虚拟滚动。<br />值为 `lazy` ,表示滚动时会进行懒加载,非可视区域内的内容将不会默认渲染,直到该内容可见时,才会进行渲染,并且已渲染的内容滚动到不可见时,不会被销毁;<br />值为`virtual`时,表示会进行虚拟滚动,无论滚动条滚动到哪个位置,同一时刻,仅渲染该可视区域内的内容,当需要展示的数据量较大时,建议开启该特性
|
|
44
|
-
*/
|
|
45
|
-
type: "lazy" | "virtual";
|
|
46
|
-
}
|
|
47
|
-
export interface ScrollToElementParams {
|
|
48
|
-
/** 跳转元素下标 */
|
|
49
|
-
index?: number;
|
|
50
|
-
/** 跳转元素距离顶部的距离 */
|
|
51
|
-
top?: number;
|
|
52
|
-
/** 单个元素高度非固定场景下,即 isFixedRowHeight = false。延迟设置元素位置,一般用于依赖不同高度异步渲染等场景,单位:毫秒 */
|
|
53
|
-
time?: number;
|
|
54
|
-
behavior?: "auto" | "smooth";
|
|
55
|
-
/** 跳转元素的 key */
|
|
56
|
-
key?: string | number;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 通用全局类型
|
|
60
|
-
* */
|
|
61
|
-
export type PlainObject = {
|
|
62
|
-
[key: string]: unknown;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated use TScroll instead
|
|
66
|
-
*/
|
|
67
|
-
export type InfinityScroll = TScroll;
|
|
68
|
-
export declare const ARROW_DOWN_REG: RegExp;
|
|
69
|
-
export declare const ARROW_UP_REG: RegExp;
|
|
70
|
-
export declare const ARROW_LEFT_REG: RegExp;
|
|
71
|
-
export declare const ARROW_RIGHT_REG: RegExp;
|
|
72
|
-
export declare const ESCAPE_REG: RegExp;
|
|
73
|
-
export declare const SPACE_REG: RegExp;
|
|
74
|
-
export declare const ENTER_REG: RegExp;
|
|
75
|
-
export declare const SHIFT_REG: RegExp;
|
|
76
|
-
export declare const CLEAR_REG: RegExp;
|
|
77
|
-
export declare const ALL_REG: RegExp;
|
|
78
|
-
export declare const CHECKED_CODE_REG: RegExp;
|
|
79
|
-
export declare const THEME_MODE = "theme-mode";
|
|
80
|
-
export type ScrollContainer = string | (() => HTMLElement | Window) | HTMLElement | Window | null;
|
|
81
|
-
export type ScrollContainerElement = HTMLElement | Window;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GlobalConfigProvider } from "./type";
|
|
2
|
-
export declare const defaultClassPrefix = "t";
|
|
3
|
-
import defaultLocale from "../locale/zh_CN";
|
|
4
|
-
export declare const defaultGlobalConfig: GlobalConfigProvider;
|
|
5
|
-
export declare const defaultContext: {
|
|
6
|
-
globalConfig: GlobalConfigProvider;
|
|
7
|
-
};
|
|
8
|
-
export type Config = typeof defaultContext;
|
|
9
|
-
declare const ConfigContext: import("react").Context<{
|
|
10
|
-
globalConfig: GlobalConfigProvider;
|
|
11
|
-
}>;
|
|
12
|
-
export default ConfigContext;
|
|
13
|
-
export type Locale = typeof defaultLocale;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Config } from "./ConfigContext";
|
|
3
|
-
import { GlobalConfigProvider } from "./type";
|
|
4
|
-
export interface ConfigProviderProps extends Config {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* 不需要设置全局上下文信息
|
|
8
|
-
* 不传或者false:表示全局上下文变动,需要更新全局上下文的信息放入到变量中
|
|
9
|
-
* true:表示全局上下文信息不需要重新设置,
|
|
10
|
-
* 解决问题:当plugin调用的时候,单独包裹的Provider 也会传全局变量,仅自身可用,多次调用时相互之间不会冲突。
|
|
11
|
-
* 插件单独的config方法依然可用。自身属性通过props传递
|
|
12
|
-
* 例如:多处调用message.config 如果每次都更新全局上下文,插件调用时配置会相互影响,导致行为结果跟预期不一致。
|
|
13
|
-
*/
|
|
14
|
-
notSet?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const merge: (src: GlobalConfigProvider, config: GlobalConfigProvider) => GlobalConfigProvider;
|
|
17
|
-
export declare const getGlobalConfig: (configInfo?: GlobalConfigProvider) => GlobalConfigProvider;
|
|
18
|
-
export declare const setGlobalConfig: (configInfo?: GlobalConfigProvider) => void;
|
|
19
|
-
declare function ConfigProvider({ children, globalConfig, notSet }: ConfigProviderProps): React.JSX.Element;
|
|
20
|
-
declare namespace ConfigProvider {
|
|
21
|
-
var getGlobalConfig: (configInfo?: GlobalConfigProvider) => GlobalConfigProvider;
|
|
22
|
-
var setGlobalConfig: (configInfo?: GlobalConfigProvider) => void;
|
|
23
|
-
var displayName: string;
|
|
24
|
-
}
|
|
25
|
-
export default ConfigProvider;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import ConfigProvider, { merge } from "./ConfigProvider";
|
|
2
|
-
import ConfigContext from "./ConfigContext";
|
|
3
|
-
export type { Config, Locale } from "./ConfigContext";
|
|
4
|
-
export type { ConfigProviderProps } from "./ConfigProvider";
|
|
5
|
-
export * from "./type";
|
|
6
|
-
export { ConfigContext, ConfigProvider, merge };
|
|
7
|
-
export default ConfigProvider;
|