@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,113 @@
|
|
|
1
|
+
import { StyledProps } from "../common";
|
|
2
|
+
export interface TdIPInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* 受控值,格式为 "192.168.0.1" 或 "2001:db8::1" 或 "192.168.0.1/24"
|
|
5
|
+
*/
|
|
6
|
+
value?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 非受控初始值
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 值变化时触发
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 失去焦点时触发
|
|
17
|
+
*/
|
|
18
|
+
onBlur?: (value: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* 获得焦点时触发
|
|
21
|
+
*/
|
|
22
|
+
onFocus?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* 是否允许 IPv6
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
allowIPv6?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 是否允许 CIDR 格式(带掩码)
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
allowCIDR?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 占位符
|
|
35
|
+
*/
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 是否禁用
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 是否只读
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
readOnly?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 是否显示清空按钮
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
showClear?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 是否自动聚焦第一个输入框
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
autoFocus?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* 是否显示分隔符(仅视觉,不可编辑)
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
showSegmentSeparators?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 自定义格式化函数
|
|
63
|
+
*/
|
|
64
|
+
formatter?: (value: string) => string;
|
|
65
|
+
/**
|
|
66
|
+
* 输入框 ID
|
|
67
|
+
*/
|
|
68
|
+
id?: string;
|
|
69
|
+
/**
|
|
70
|
+
* 输入框 name 属性
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
|
+
/**
|
|
74
|
+
* aria-label
|
|
75
|
+
*/
|
|
76
|
+
ariaLabel?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 段输入框的 className
|
|
79
|
+
*/
|
|
80
|
+
segmentClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* 段输入框的 style
|
|
83
|
+
*/
|
|
84
|
+
inputStyle?: React.CSSProperties;
|
|
85
|
+
/**
|
|
86
|
+
* 分隔符(默认根据 IPv4/IPv6 自动选择)
|
|
87
|
+
*/
|
|
88
|
+
separator?: string;
|
|
89
|
+
/**
|
|
90
|
+
* 提示文本
|
|
91
|
+
*/
|
|
92
|
+
tips?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface IPInputProps extends TdIPInputProps, StyledProps {
|
|
95
|
+
}
|
|
96
|
+
export interface IPInputRef {
|
|
97
|
+
/**
|
|
98
|
+
* 聚焦第一个输入框
|
|
99
|
+
*/
|
|
100
|
+
focus: () => void;
|
|
101
|
+
/**
|
|
102
|
+
* 失焦
|
|
103
|
+
*/
|
|
104
|
+
blur: () => void;
|
|
105
|
+
/**
|
|
106
|
+
* 清空所有输入
|
|
107
|
+
*/
|
|
108
|
+
clear: () => void;
|
|
109
|
+
/**
|
|
110
|
+
* 获取当前值
|
|
111
|
+
*/
|
|
112
|
+
getValue: () => string;
|
|
113
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IP 地址验证和解析工具函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 验证 IPv4 地址段(0-255)
|
|
6
|
+
*/
|
|
7
|
+
export declare function isValidIPv4Segment(segment: string, allowLeadingZeros?: boolean): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 验证 IPv4 地址
|
|
10
|
+
*/
|
|
11
|
+
export declare function isValidIPv4(ip: string, allowLeadingZeros?: boolean): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 验证 CIDR 掩码(IPv4: 0-32, IPv6: 0-128)
|
|
14
|
+
*/
|
|
15
|
+
export declare function isValidCIDRMask(mask: string, isIPv6?: boolean): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 验证 IPv6 地址(简化版,使用正则)
|
|
18
|
+
* 支持压缩表示法 :: 和混合 IPv4/IPv6
|
|
19
|
+
*/
|
|
20
|
+
export declare function isValidIPv6(ip: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 从文本中提取 IP 地址
|
|
23
|
+
*/
|
|
24
|
+
export declare function extractIPFromText(text: string): {
|
|
25
|
+
ip: string;
|
|
26
|
+
cidr?: string;
|
|
27
|
+
} | null;
|
|
28
|
+
/**
|
|
29
|
+
* 解析 IP 地址为段数组(IPv4)
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseIPv4ToSegments(ip: string): string[];
|
|
32
|
+
/**
|
|
33
|
+
* 将段数组组合为 IP 地址(IPv4)
|
|
34
|
+
*/
|
|
35
|
+
export declare function segmentsToIPv4(segments: string[]): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TdAsideProps } from "./type";
|
|
3
|
+
import { StyledProps } from "../common";
|
|
4
|
+
export interface AsideProps extends TdAsideProps, StyledProps {
|
|
5
|
+
/**
|
|
6
|
+
* 文本内容
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Aside: React.FC<AsideProps>;
|
|
11
|
+
export default Aside;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
|
|
2
|
+
import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { u as useConfig } from '../_chunks/dep-gy8uvBaS.js';
|
|
6
|
+
import { u as useDefaultProps } from '../_chunks/dep-DGvfel3I.js';
|
|
7
|
+
import '../_chunks/dep-D-UKOauR.js';
|
|
8
|
+
import '../_chunks/dep-5U9UjDaf.js';
|
|
9
|
+
import 'dayjs';
|
|
10
|
+
|
|
11
|
+
var _excluded = ["width", "className", "style", "children"];
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
var Aside = function Aside(props) {
|
|
15
|
+
var _useDefaultProps = useDefaultProps(props, {
|
|
16
|
+
width: "232px"
|
|
17
|
+
}),
|
|
18
|
+
width = _useDefaultProps.width,
|
|
19
|
+
className = _useDefaultProps.className,
|
|
20
|
+
style = _useDefaultProps.style,
|
|
21
|
+
children = _useDefaultProps.children,
|
|
22
|
+
otherAsideProps = _objectWithoutProperties(_useDefaultProps, _excluded);
|
|
23
|
+
var _useConfig = useConfig(),
|
|
24
|
+
classPrefix = _useConfig.classPrefix;
|
|
25
|
+
var asideClassNames = classNames("".concat(classPrefix, "-layout__sider"), className);
|
|
26
|
+
var asideWidth = typeof width === "number" ? "".concat(width, "px") : width;
|
|
27
|
+
var asideStyle = _objectSpread({
|
|
28
|
+
width: asideWidth,
|
|
29
|
+
maxWidth: asideWidth,
|
|
30
|
+
minWidth: asideWidth,
|
|
31
|
+
flex: "0 0 ".concat(asideWidth)
|
|
32
|
+
}, style);
|
|
33
|
+
return /* @__PURE__ */React.createElement("aside", _objectSpread({
|
|
34
|
+
className: asideClassNames,
|
|
35
|
+
style: asideStyle
|
|
36
|
+
}, otherAsideProps), children);
|
|
37
|
+
};
|
|
38
|
+
Aside.displayName = "Aside";
|
|
39
|
+
|
|
40
|
+
export { Aside as default };
|
|
41
|
+
//# sourceMappingURL=Aside.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Aside.js","sources":["../../../components/layout/Aside.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { TdAsideProps } from \"./type\";\nimport { StyledProps } from \"../common\";\nimport useDefaultProps from \"../hooks/useDefaultProps\";\nexport interface AsideProps extends TdAsideProps, StyledProps {\n /**\n * 文本内容\n */\n children?: React.ReactNode;\n}\n\nconst Aside: React.FC<AsideProps> = (props) => {\n const { width, className, style, children, ...otherAsideProps } = useDefaultProps(props, { width: \"232px\" });\n\n const { classPrefix } = useConfig();\n const asideClassNames = classNames(`${classPrefix}-layout__sider`, className);\n const asideWidth: string = typeof width === \"number\" ? `${width}px` : width;\n\n const asideStyle: React.CSSProperties = {\n width: asideWidth,\n maxWidth: asideWidth,\n minWidth: asideWidth,\n flex: `0 0 ${asideWidth}`,\n ...style\n };\n\n return (\n <aside className={asideClassNames} style={asideStyle} {...otherAsideProps}>\n {children}\n </aside>\n );\n};\n\nAside.displayName = \"Aside\";\n\nexport default Aside;\n"],"names":["Aside","props","_useDefaultProps","useDefaultProps","width","className","style","children","otherAsideProps","_objectWithoutProperties","_excluded","_useConfig","useConfig","classPrefix","asideClassNames","classNames","concat","asideWidth","asideStyle","_objectSpread","maxWidth","minWidth","flex","React","createElement","displayName"],"mappings":";;;;;;;;;;;;;AAaA,IAAMA,KAAA,GAA8B,SAA9BA,KAAAA,CAA+BC,KAAA,EAAU;AAC7C,EAAA,IAAAC,gBAAA,GAAkEC,eAAA,CAAgBF,KAAA,EAAO;AAAEG,MAAAA,KAAA,EAAO;AAAQ,KAAC,CAAA;IAAnGA,KAAA,GAAAF,gBAAA,CAAAE,KAAA;IAAOC,SAAA,GAAAH,gBAAA,CAAAG,SAAA;IAAWC,KAAA,GAAAJ,gBAAA,CAAAI,KAAA;IAAOC,QAAA,GAAAL,gBAAA,CAAAK,QAAA;AAAaC,IAAAA,eAAA,GAAAC,wBAAA,CAAAP,gBAAA,EAAAQ,SAAA,CAAA;AAE9C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;EACR,IAAMC,eAAA,GAAkBC,UAAA,CAAA,EAAA,CAAAC,MAAA,CAAcH,WAAW,EAAA,gBAAA,CAAA,EAAkBR,SAAS,CAAA;EAC5E,IAAMY,aAAqB,OAAOb,KAAA,KAAU,QAAA,GAAA,EAAA,CAAAY,MAAA,CAAcZ,KAAK,EAAA,IAAA,CAAA,GAAOA,KAAA;EAEtE,IAAMc,UAAA,GAAAC,aAAA,CAAA;AACJf,IAAAA,KAAA,EAAOa,UAAA;AACPG,IAAAA,QAAA,EAAUH,UAAA;AACVI,IAAAA,QAAA,EAAUJ,UAAA;IACVK,IAAA,EAAA,MAAA,CAAAN,MAAA,CAAaC,UAAU;AAAA,GAAA,EACpBX,KAAA,CACL;AAEA,EAAA,sBACEiB,KAAA,CAAAC,aAAA,CAAC;AAAMnB,IAAAA,SAAA,EAAWS,eAAA;AAAiBR,IAAAA,OAAOY;GAAA,EAAgBV,kBACvDD,QACH,CAAA;AAEJ;AAEAP,KAAA,CAAMyB,WAAA,GAAc,OAAA;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyledProps } from "../common";
|
|
3
|
+
import { TdLayoutProps, TdHeaderProps, TdFooterProps } from "./type";
|
|
4
|
+
import Aside from "./Aside";
|
|
5
|
+
export interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const Header: React.FC<HeaderProps>;
|
|
18
|
+
declare const Footer: React.FC<FooterProps>;
|
|
19
|
+
declare const Content: React.FC<ContentProps>;
|
|
20
|
+
declare const Layout: React.FC<LayoutProps> & {
|
|
21
|
+
Header: typeof Header;
|
|
22
|
+
Content: typeof Content;
|
|
23
|
+
Footer: typeof Footer;
|
|
24
|
+
Aside: typeof Aside;
|
|
25
|
+
};
|
|
26
|
+
export default Layout;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { _ as _typeof } from '../_chunks/dep-D-UKOauR.js';
|
|
2
|
+
import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
|
|
3
|
+
import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
|
|
4
|
+
import React, { useMemo } from 'react';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { u as useConfig } from '../_chunks/dep-gy8uvBaS.js';
|
|
7
|
+
import Aside from './Aside.js';
|
|
8
|
+
import { p as parseTNode } from '../_chunks/dep-D6YxJv-F.js';
|
|
9
|
+
import '../_chunks/dep-5U9UjDaf.js';
|
|
10
|
+
import 'dayjs';
|
|
11
|
+
import '../_chunks/dep-DGvfel3I.js';
|
|
12
|
+
import 'lodash-es';
|
|
13
|
+
|
|
14
|
+
var _excluded = ["className", "style", "children", "height"],
|
|
15
|
+
_excluded2 = ["className", "style", "children", "height"],
|
|
16
|
+
_excluded3 = ["className", "style", "children", "content"],
|
|
17
|
+
_excluded4 = ["direction", "className", "style", "children"];
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
+
var Header = function Header(props) {
|
|
21
|
+
var _useConfig = useConfig(),
|
|
22
|
+
classPrefix = _useConfig.classPrefix;
|
|
23
|
+
var className = props.className,
|
|
24
|
+
_props$style = props.style,
|
|
25
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
26
|
+
children = props.children,
|
|
27
|
+
height = props.height,
|
|
28
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
29
|
+
var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
|
|
30
|
+
var headerClassNames = classNames("".concat(classPrefix, "-layout__header"), className);
|
|
31
|
+
return /* @__PURE__ */React.createElement("header", _objectSpread({
|
|
32
|
+
className: headerClassNames,
|
|
33
|
+
style: _objectSpread({
|
|
34
|
+
height: renderHeight
|
|
35
|
+
}, style)
|
|
36
|
+
}, others), parseTNode(children));
|
|
37
|
+
};
|
|
38
|
+
var Footer = function Footer(props) {
|
|
39
|
+
var _useConfig2 = useConfig(),
|
|
40
|
+
classPrefix = _useConfig2.classPrefix;
|
|
41
|
+
var className = props.className,
|
|
42
|
+
_props$style2 = props.style,
|
|
43
|
+
style = _props$style2 === void 0 ? {} : _props$style2,
|
|
44
|
+
children = props.children,
|
|
45
|
+
height = props.height,
|
|
46
|
+
others = _objectWithoutProperties(props, _excluded2);
|
|
47
|
+
var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
|
|
48
|
+
var footerClassNames = classNames("".concat(classPrefix, "-layout__footer"), className);
|
|
49
|
+
return /* @__PURE__ */React.createElement("footer", _objectSpread({
|
|
50
|
+
className: footerClassNames,
|
|
51
|
+
style: _objectSpread({
|
|
52
|
+
height: renderHeight
|
|
53
|
+
}, style)
|
|
54
|
+
}, others), parseTNode(children));
|
|
55
|
+
};
|
|
56
|
+
var Content = function Content(props) {
|
|
57
|
+
var _useConfig3 = useConfig(),
|
|
58
|
+
classPrefix = _useConfig3.classPrefix;
|
|
59
|
+
var className = props.className,
|
|
60
|
+
style = props.style,
|
|
61
|
+
children = props.children,
|
|
62
|
+
content = props.content,
|
|
63
|
+
others = _objectWithoutProperties(props, _excluded3);
|
|
64
|
+
var contentClassNames = classNames("".concat(classPrefix, "-layout__content"), className);
|
|
65
|
+
return /* @__PURE__ */React.createElement("main", _objectSpread({
|
|
66
|
+
className: contentClassNames,
|
|
67
|
+
style: style
|
|
68
|
+
}, others), parseTNode(content) || parseTNode(children));
|
|
69
|
+
};
|
|
70
|
+
var Layout = function Layout(props) {
|
|
71
|
+
var direction = props.direction,
|
|
72
|
+
className = props.className,
|
|
73
|
+
style = props.style,
|
|
74
|
+
children = props.children,
|
|
75
|
+
otherLayoutProps = _objectWithoutProperties(props, _excluded4);
|
|
76
|
+
var shouldAsides = useMemo(function () {
|
|
77
|
+
var asides = [];
|
|
78
|
+
React.Children.forEach(children, function (child) {
|
|
79
|
+
if (!child || _typeof(child) !== "object") {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (child.type === Aside) {
|
|
83
|
+
asides.push(child);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return !!asides.length;
|
|
87
|
+
}, [children]);
|
|
88
|
+
var _useConfig4 = useConfig(),
|
|
89
|
+
classPrefix = _useConfig4.classPrefix;
|
|
90
|
+
var layoutClassNames = classNames("".concat(classPrefix, "-layout"), _defineProperty(_defineProperty({}, "".concat(classPrefix, "-layout--with-sider"), shouldAsides), "".concat(classPrefix, "-layout__direction-").concat(direction), direction), className);
|
|
91
|
+
return /* @__PURE__ */React.createElement("div", _objectSpread({
|
|
92
|
+
className: layoutClassNames,
|
|
93
|
+
style: style
|
|
94
|
+
}, otherLayoutProps), parseTNode(children));
|
|
95
|
+
};
|
|
96
|
+
Layout.Header = Header;
|
|
97
|
+
Layout.Content = Content;
|
|
98
|
+
Layout.Footer = Footer;
|
|
99
|
+
Layout.Aside = Aside;
|
|
100
|
+
Header.displayName = "Header";
|
|
101
|
+
Content.displayName = "Content";
|
|
102
|
+
Footer.displayName = "Footer";
|
|
103
|
+
Layout.displayName = "Layout";
|
|
104
|
+
|
|
105
|
+
export { Layout as default };
|
|
106
|
+
//# sourceMappingURL=Layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../components/layout/Layout.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { StyledProps } from \"../common\";\nimport { TdLayoutProps, TdHeaderProps, TdFooterProps } from \"./type\";\nimport { useMemo } from \"react\";\nimport Aside from \"./Aside\";\nimport parseTNode from \"../utils/parseTNode\";\nexport interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\nexport interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\nconst Header: React.FC<HeaderProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const headerClassNames = classNames(`${classPrefix}-layout__header`, className);\n return (\n <header className={headerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </header>\n );\n};\n\nconst Footer: React.FC<FooterProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const footerClassNames = classNames(`${classPrefix}-layout__footer`, className);\n return (\n <footer className={footerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </footer>\n );\n};\nconst Content: React.FC<ContentProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style, children, content, ...others } = props;\n const contentClassNames = classNames(`${classPrefix}-layout__content`, className);\n return (\n <main className={contentClassNames} style={style} {...others}>\n {parseTNode(content) || parseTNode(children)}\n </main>\n );\n};\n\nconst Layout: React.FC<LayoutProps> & {\n Header: typeof Header;\n Content: typeof Content;\n Footer: typeof Footer;\n Aside: typeof Aside;\n} = (props) => {\n const { direction, className, style, children, ...otherLayoutProps } = props;\n\n const shouldAsides = useMemo(() => {\n const asides: React.ReactElement[] = [];\n React.Children.forEach(children, (child: React.ReactElement) => {\n if (!child || typeof child !== \"object\") {\n return;\n }\n if (child.type === Aside) {\n asides.push(child);\n }\n });\n return !!asides.length;\n }, [children]);\n\n const { classPrefix } = useConfig();\n const layoutClassNames = classNames(\n `${classPrefix}-layout`,\n {\n [`${classPrefix}-layout--with-sider`]: shouldAsides,\n [`${classPrefix}-layout__direction-${direction}`]: direction\n },\n className\n );\n\n return (\n <div className={layoutClassNames} style={style} {...otherLayoutProps}>\n {parseTNode(children)}\n </div>\n );\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Aside = Aside;\n\nHeader.displayName = \"Header\";\nContent.displayName = \"Content\";\nFooter.displayName = \"Footer\";\nLayout.displayName = \"Layout\";\n\nexport default Layout;\n"],"names":["Header","props","_useConfig","useConfig","classPrefix","className","style","_props$style","children","height","others","_objectWithoutProperties","_excluded","renderHeight","isNaN","Number","concat","headerClassNames","classNames","React","createElement","_objectSpread","parseTNode","Footer","_useConfig2","_props$style2","_excluded2","footerClassNames","Content","_useConfig3","content","_excluded3","contentClassNames","Layout","direction","otherLayoutProps","_excluded4","shouldAsides","useMemo","asides","Children","forEach","child","_typeof","type","Aside","push","length","_useConfig4","layoutClassNames","_defineProperty","displayName"],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TdAsideProps, TdFooterProps, TdHeaderProps, TdLayoutProps } from "./type";
|
|
2
|
+
export declare const asideDefaultProps: TdAsideProps;
|
|
3
|
+
export declare const footerDefaultProps: TdFooterProps;
|
|
4
|
+
export declare const headerDefaultProps: TdHeaderProps;
|
|
5
|
+
export declare const layoutDefaultProps: TdLayoutProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./style/index.js";
|
|
2
|
+
export type { LayoutProps } from "./Layout";
|
|
3
|
+
export * from "./type";
|
|
4
|
+
export declare const Layout: import("react").FC<import("./Layout").LayoutProps> & {
|
|
5
|
+
Header: import("react").FC<import("./Layout").HeaderProps>;
|
|
6
|
+
Content: import("react").FC<import("./Layout").ContentProps>;
|
|
7
|
+
Footer: import("react").FC<import("./Layout").FooterProps>;
|
|
8
|
+
Aside: import("react").FC<import("./Aside").AsideProps>;
|
|
9
|
+
};
|
|
10
|
+
export default Layout;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Layout$1 from './Layout.js';
|
|
2
|
+
import './css.js';
|
|
3
|
+
import '../_chunks/dep-D-UKOauR.js';
|
|
4
|
+
import '../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import '../_chunks/dep-DN7d1SzH.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '../_chunks/dep-gy8uvBaS.js';
|
|
9
|
+
import '../_chunks/dep-5U9UjDaf.js';
|
|
10
|
+
import 'dayjs';
|
|
11
|
+
import './Aside.js';
|
|
12
|
+
import '../_chunks/dep-DGvfel3I.js';
|
|
13
|
+
import '../_chunks/dep-D6YxJv-F.js';
|
|
14
|
+
import 'lodash-es';
|
|
15
|
+
|
|
16
|
+
var Layout = Layout$1;
|
|
17
|
+
|
|
18
|
+
export { Layout, Layout as default };
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../components/layout/index.ts"],"sourcesContent":["import _Layout from \"./Layout\";\n\nimport \"./style/index.js\";\n\nexport type { LayoutProps } from \"./Layout\";\nexport * from \"./type\";\n\nexport const Layout = _Layout;\nexport default Layout;\n"],"names":["Layout","_Layout"],"mappings":";;;;;;;;;;;;;;;AAOO,IAAMA,MAAA,GAASC;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.t-layout {
|
|
2
|
+
font: var(--td-font-body-medium);
|
|
3
|
+
color: var(--td-text-color-primary);
|
|
4
|
+
-webkit-box-sizing: border-box;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
list-style: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.t-layout,
|
|
12
|
+
.t-layout__direction-vertical {
|
|
13
|
+
display: -webkit-box;
|
|
14
|
+
display: -ms-flexbox;
|
|
15
|
+
display: flex;
|
|
16
|
+
-webkit-box-orient: vertical;
|
|
17
|
+
-webkit-box-direction: normal;
|
|
18
|
+
-ms-flex-direction: column;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
background: var(--td-bg-color-page);
|
|
21
|
+
-webkit-box-flex: 1;
|
|
22
|
+
-ms-flex: auto;
|
|
23
|
+
flex: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.t-layout--with-sider,
|
|
27
|
+
.t-layout__direction-horizontal {
|
|
28
|
+
-webkit-box-orient: horizontal;
|
|
29
|
+
-webkit-box-direction: normal;
|
|
30
|
+
-ms-flex-direction: row;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.t-layout__header {
|
|
35
|
+
height: var(--td-comp-size-xxxl);
|
|
36
|
+
background-color: var(--td-bg-color-container);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.t-layout__content {
|
|
40
|
+
-webkit-box-flex: 1;
|
|
41
|
+
-ms-flex: auto;
|
|
42
|
+
flex: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.t-layout__sider {
|
|
46
|
+
position: relative;
|
|
47
|
+
-webkit-transition: all 0.2s;
|
|
48
|
+
transition: all 0.2s;
|
|
49
|
+
background: var(--td-bg-color-container);
|
|
50
|
+
width: 232px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.t-layout__footer {
|
|
54
|
+
color: var(--td-text-color-placeholder);
|
|
55
|
+
padding: 24px;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TNode } from "../common";
|
|
2
|
+
export interface TdLayoutProps {
|
|
3
|
+
/**
|
|
4
|
+
* 【开发中】布局方向
|
|
5
|
+
*/
|
|
6
|
+
direction?: "vertical" | "horizontal";
|
|
7
|
+
}
|
|
8
|
+
export interface TdHeaderProps {
|
|
9
|
+
/**
|
|
10
|
+
* 顶栏高度。样式表(class)中定义的默认高度为:64px
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
height?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TdAsideProps {
|
|
16
|
+
/**
|
|
17
|
+
* 侧边栏宽度。样式表(class)中定义的默认宽度为:232px
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
width?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface TdContentProps {
|
|
23
|
+
/**
|
|
24
|
+
* 内容,同 content
|
|
25
|
+
*/
|
|
26
|
+
children?: TNode;
|
|
27
|
+
/**
|
|
28
|
+
* 内容
|
|
29
|
+
*/
|
|
30
|
+
content?: TNode;
|
|
31
|
+
}
|
|
32
|
+
export interface TdFooterProps {
|
|
33
|
+
/**
|
|
34
|
+
* 底栏高度。样式表(class)中定义的默认高度为:24px
|
|
35
|
+
* @default ''
|
|
36
|
+
*/
|
|
37
|
+
height?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StyledProps } from "../common";
|
|
3
|
+
import type { ListInstanceFunctions, TdListProps } from "./type";
|
|
4
|
+
export interface ListProps extends TdListProps, StyledProps {
|
|
5
|
+
/**
|
|
6
|
+
* 文本内容
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 列表组件
|
|
12
|
+
*/
|
|
13
|
+
declare const List: React.FunctionComponent<ListProps & React.RefAttributes<ListInstanceFunctions>> & {
|
|
14
|
+
ListItem: React.ForwardRefExoticComponent<import("./ListItem").ListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
15
|
+
ListItemMeta: React.ForwardRefExoticComponent<import("./ListItemMeta").ListItemMetaProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
};
|
|
17
|
+
export default List;
|