tntd 2.7.29 → 2.7.30
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/affix/style/index.js.map +1 -0
- package/es/affix/style/index.less +6 -0
- package/es/alert/style/index.js +2 -0
- package/es/alert/style/index.js.map +1 -0
- package/es/alert/style/index.less +188 -0
- package/es/anchor/style/index.js +4 -0
- package/es/anchor/style/index.js.map +1 -0
- package/es/anchor/style/index.less +82 -0
- package/es/auto-complete/style/index.js +5 -0
- package/es/auto-complete/style/index.js.map +1 -0
- package/es/auto-complete/style/index.less +92 -0
- package/es/avatar/style/index.js +2 -0
- package/es/avatar/style/index.js.map +1 -0
- package/es/avatar/style/index.less +59 -0
- package/es/back-top/style/index.js +2 -0
- package/es/back-top/style/index.js.map +1 -0
- package/es/back-top/style/index.less +42 -0
- package/es/back-top/style/responsive.less +11 -0
- package/es/badge/style/index.js +2 -0
- package/es/badge/style/index.js.map +1 -0
- package/es/badge/style/index.less +190 -0
- package/es/breadcrumb/style/index.js +4 -0
- package/es/breadcrumb/style/index.js.map +1 -0
- package/es/breadcrumb/style/index.less +51 -0
- package/es/button/style/index.js +2 -0
- package/es/button/style/index.js.map +1 -0
- package/es/button/style/index.less +224 -0
- package/es/button/style/mixin.less +357 -0
- package/es/calendar/style/index.js +5 -0
- package/es/calendar/style/index.js.map +1 -0
- package/es/calendar/style/index.less +278 -0
- package/es/card/style/index.js +6 -0
- package/es/card/style/index.js.map +1 -0
- package/es/card/style/index.less +263 -0
- package/es/card/style/size.less +25 -0
- package/es/carousel/style/index.js +2 -0
- package/es/carousel/style/index.js.map +1 -0
- package/es/carousel/style/index.less +238 -0
- package/es/cascader/style/index.js +5 -0
- package/es/cascader/style/index.js.map +1 -0
- package/es/cascader/style/index.less +227 -0
- package/es/checkbox/style/index.js +2 -0
- package/es/checkbox/style/index.js.map +1 -0
- package/es/checkbox/style/index.less +4 -0
- package/es/checkbox/style/mixin.less +220 -0
- package/es/col/style/index.js +4 -0
- package/es/col/style/index.js.map +1 -0
- package/es/collapse/style/index.js +2 -0
- package/es/collapse/style/index.js.map +1 -0
- package/es/collapse/style/index.less +134 -0
- package/es/comment/style/index.js +2 -0
- package/es/comment/style/index.js.map +1 -0
- package/es/comment/style/index.less +93 -0
- package/es/config-provider/style/index.js +1 -0
- package/es/config-provider/style/index.js.map +1 -0
- package/es/config-provider/style/index.less +2 -0
- package/es/date-picker/style/Calendar.less +402 -0
- package/es/date-picker/style/DecadePanel.less +81 -0
- package/es/date-picker/style/MonthPanel.less +86 -0
- package/es/date-picker/style/MonthPicker.less +11 -0
- package/es/date-picker/style/Picker.less +113 -0
- package/es/date-picker/style/RangePicker.less +248 -0
- package/es/date-picker/style/TimePicker.less +151 -0
- package/es/date-picker/style/WeekPicker.less +21 -0
- package/es/date-picker/style/YearPanel.less +85 -0
- package/es/date-picker/style/index.js +7 -0
- package/es/date-picker/style/index.js.map +1 -0
- package/es/date-picker/style/index.less +17 -0
- package/es/descriptions/style/index.js +2 -0
- package/es/descriptions/style/index.js.map +1 -0
- package/es/descriptions/style/index.less +144 -0
- package/es/divider/style/index.js +2 -0
- package/es/divider/style/index.js.map +1 -0
- package/es/divider/style/index.less +109 -0
- package/es/drawer/style/drawer.less +230 -0
- package/es/drawer/style/index.js +3 -0
- package/es/drawer/style/index.js.map +1 -0
- package/es/drawer/style/index.less +3 -0
- package/es/dropdown/style/index.js +4 -0
- package/es/dropdown/style/index.js.map +1 -0
- package/es/dropdown/style/index.less +282 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/index.js.map +1 -0
- package/es/empty/style/index.less +52 -0
- package/es/form/style/index.js +4 -0
- package/es/form/style/index.js.map +1 -0
- package/es/form/style/index.less +653 -0
- package/es/form/style/mixin.less +126 -0
- package/es/grid-v4/RowContext.js.map +1 -0
- package/es/{tntd-form/grid → grid-v4}/col.js +0 -1
- package/es/grid-v4/col.js.map +1 -0
- package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
- package/es/grid-v4/index.js.map +1 -0
- package/es/{tntd-form/grid → grid-v4}/row.js +1 -0
- package/es/grid-v4/row.js.map +1 -0
- package/es/grid-v4/style/index.js +2 -0
- package/es/grid-v4/style/index.js.map +1 -0
- package/es/grid-v4/style/index.less +124 -0
- package/es/grid-v4/style/mixin.less +57 -0
- package/es/grid-v4/style/rtl.less +69 -0
- package/es/handle/handle.js +138 -0
- package/es/handle/handle.js.map +1 -0
- package/es/icon/style/index.js +2 -0
- package/es/icon/style/index.js.map +1 -0
- package/es/icon/style/index.less +4 -0
- package/es/input/style/index.js +4 -0
- package/es/input/style/index.js.map +1 -0
- package/es/input/style/index.less +57 -0
- package/es/input/style/mixin.less +449 -0
- package/es/input/style/search-input.less +34 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/style/index.js.map +1 -0
- package/es/input-number/style/index.less +179 -0
- package/es/layout/style/index.js +2 -0
- package/es/layout/style/index.js.map +1 -0
- package/es/layout/style/index.less +124 -0
- package/es/layout/style/light.less +15 -0
- package/es/list/style/bordered.less +41 -0
- package/es/list/style/index.js +7 -0
- package/es/list/style/index.js.map +1 -0
- package/es/list/style/index.less +234 -0
- package/es/list/style/responsive.less +40 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.js.map +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/mention/index.js +4 -0
- package/es/mention/index.js.map +1 -0
- package/es/mentions/style/index.js +4 -0
- package/es/mentions/style/index.js.map +1 -0
- package/es/mentions/style/index.less +164 -0
- package/es/menu/style/dark.less +139 -0
- package/es/menu/style/index.js +5 -0
- package/es/menu/style/index.js.map +1 -0
- package/es/menu/style/index.less +515 -0
- package/es/message/style/index.js +2 -0
- package/es/message/style/index.js.map +1 -0
- package/es/message/style/index.less +75 -0
- package/es/modal/style/confirm.less +78 -0
- package/es/modal/style/index.js +4 -0
- package/es/modal/style/index.js.map +1 -0
- package/es/modal/style/index.less +4 -0
- package/es/modal/style/modal.less +165 -0
- package/es/notification/style/index.js +2 -0
- package/es/notification/style/index.js.map +1 -0
- package/es/notification/style/index.less +199 -0
- package/es/page-header/style/index.js +4 -0
- package/es/page-header/style/index.js.map +1 -0
- package/es/page-header/style/index.less +119 -0
- package/es/pagination/style/index.js +4 -0
- package/es/pagination/style/index.js.map +1 -0
- package/es/pagination/style/index.less +400 -0
- package/es/popconfirm/style/index.js +5 -0
- package/es/popconfirm/style/index.js.map +1 -0
- package/es/popover/style/index.js +4 -0
- package/es/popover/style/index.js.map +1 -0
- package/es/popover/style/index.less +205 -0
- package/es/progress/style/index.js +2 -0
- package/es/progress/style/index.js.map +1 -0
- package/es/progress/style/index.less +182 -0
- package/es/radio/style/index.js +2 -0
- package/es/radio/style/index.js.map +1 -0
- package/es/radio/style/index.less +327 -0
- package/es/rate/style/index.js +4 -0
- package/es/rate/style/index.js.map +1 -0
- package/es/rate/style/index.less +85 -0
- package/es/result/style/index.js +2 -0
- package/es/result/style/index.js.map +1 -0
- package/es/result/style/index.less +71 -0
- package/es/row/style/index.js +4 -0
- package/es/row/style/index.js.map +1 -0
- package/es/select/style/index.js +4 -0
- package/es/select/style/index.js.map +1 -0
- package/es/select/style/index.less +604 -0
- package/es/skeleton/style/index.js +2 -0
- package/es/skeleton/style/index.js.map +1 -0
- package/es/skeleton/style/index.less +130 -0
- package/es/slider/style/index.js +4 -0
- package/es/slider/style/index.js.map +1 -0
- package/es/slider/style/index.less +197 -0
- package/es/spin/style/index.js +2 -0
- package/es/spin/style/index.js.map +1 -0
- package/es/spin/style/index.less +214 -0
- package/es/statistic/style/index.js +2 -0
- package/es/statistic/style/index.js.map +1 -0
- package/es/statistic/style/index.less +40 -0
- package/es/steps/style/compatibility.less +50 -0
- package/es/steps/style/custom-icon.less +31 -0
- package/es/steps/style/index.js +2 -0
- package/es/steps/style/index.js.map +1 -0
- package/es/steps/style/label-placement.less +38 -0
- package/es/steps/style/progress-dot.less +80 -0
- package/es/steps/style/vertical.less +74 -0
- package/es/style/color/bezierEasing.less +110 -0
- package/es/style/color/colorPalette.less +75 -0
- package/es/style/color/colors.less +149 -0
- package/es/style/color/tinyColor.less +1184 -0
- package/es/style/core/base.less +510 -0
- package/es/style/core/iconfont.less +19 -0
- package/es/style/core/index.less +4 -0
- package/es/style/core/motion/fade.less +31 -0
- package/es/style/core/motion/move.less +120 -0
- package/es/style/core/motion/other.less +40 -0
- package/es/style/core/motion/slide.less +120 -0
- package/es/style/core/motion/swing.less +34 -0
- package/es/style/core/motion/zoom.less +162 -0
- package/es/style/core/motion.less +20 -0
- package/es/style/index.js +1 -0
- package/es/style/index.js.map +1 -0
- package/es/style/index.less +2 -0
- package/es/style/mixins/clearfix.less +13 -0
- package/es/style/mixins/compatibility.less +22 -0
- package/es/style/mixins/iconfont.less +43 -0
- package/es/style/mixins/index.less +10 -0
- package/es/style/mixins/motion.less +35 -0
- package/es/style/mixins/operation-unit.less +18 -0
- package/es/style/mixins/reset.less +13 -0
- package/es/style/mixins/size.less +10 -0
- package/es/style/mixins/typography.less +49 -0
- package/es/style/themes/default.less +699 -0
- package/es/style/themes/index.less +1 -0
- package/es/style/v2-compatible-reset.js +1 -0
- package/es/style/v2-compatible-reset.js.map +1 -0
- package/es/style/v2-compatible-reset.less +51 -0
- package/es/switch/style/index.js +2 -0
- package/es/switch/style/index.js.map +1 -0
- package/es/switch/style/index.less +178 -0
- package/es/table/style/index.js +10 -0
- package/es/table/style/index.js.map +1 -0
- package/es/table/style/index.less +800 -0
- package/es/table/style/size.less +179 -0
- package/es/tabs/style/card-style.less +186 -0
- package/es/tabs/style/index.js +2 -0
- package/es/tabs/style/index.js.map +1 -0
- package/es/tabs/style/index.less +436 -0
- package/es/tabs/tabs.js +8 -5
- package/es/tabs/tabs.js.map +1 -1
- package/es/tag/style/index.js +2 -0
- package/es/tag/style/index.js.map +1 -0
- package/es/tag/style/index.less +106 -0
- package/es/time-picker/style/index.js +2 -0
- package/es/time-picker/style/index.js.map +1 -0
- package/es/time-picker/style/index.less +246 -0
- package/es/timeline/style/index.js +2 -0
- package/es/timeline/style/index.js.map +1 -0
- package/es/timeline/style/index.less +167 -0
- package/es/tntd-form/TntdForm/components/Item.js +55 -0
- package/es/tntd-form/TntdForm/components/Item.js.map +1 -0
- package/es/tntd-form/TntdForm/components/ItemComp.js +186 -0
- package/es/tntd-form/TntdForm/components/ItemComp.js.map +1 -0
- package/es/tntd-form/TntdForm/components/List.js +102 -0
- package/es/tntd-form/TntdForm/components/List.js.map +1 -0
- package/es/tntd-form/TntdForm/index.js +55 -0
- package/es/tntd-form/TntdForm/index.js.map +1 -0
- package/es/tntd-form/TntdForm/interface.js +1 -0
- package/es/tntd-form/TntdForm/interface.js.map +1 -0
- package/es/tntd-form/TntdForm/store.js +2 -0
- package/es/tntd-form/TntdForm/store.js.map +1 -0
- package/es/tntd-form/TntdForm/utils.js +219 -0
- package/es/tntd-form/TntdForm/utils.js.map +1 -0
- package/es/tntd-select/_util/DisabledContext.js +12 -0
- package/es/tntd-select/_util/DisabledContext.js.map +1 -0
- package/es/tntd-select/_util/FormItemInputContext.js +2 -0
- package/es/tntd-select/_util/FormItemInputContext.js.map +1 -0
- package/es/tntd-select/_util/PurePanel.js +66 -0
- package/es/tntd-select/_util/PurePanel.js.map +1 -0
- package/es/tntd-select/_util/SizeContext.js +2 -0
- package/es/tntd-select/_util/SizeContext.js.map +1 -0
- package/es/tntd-select/_util/context.js.map +1 -0
- package/es/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-select/_util/getIcons.js +74 -0
- package/es/tntd-select/_util/getIcons.js.map +1 -0
- package/es/tntd-select/_util/interface.js +4 -0
- package/es/tntd-select/_util/interface.js.map +1 -0
- package/es/tntd-select/_util/motion.js +47 -0
- package/es/tntd-select/_util/motion.js.map +1 -0
- package/es/tntd-select/_util/type.js +3 -0
- package/es/tntd-select/_util/type.js.map +1 -0
- package/es/tntd-select/_util/useCompactItemContext.js +26 -0
- package/es/tntd-select/_util/useCompactItemContext.js.map +1 -0
- package/es/tntd-select/_util/warning.js +14 -0
- package/es/tntd-select/_util/warning.js.map +1 -0
- package/es/tntd-select/rc-select/BaseSelect.js +524 -0
- package/es/tntd-select/rc-select/BaseSelect.js.map +1 -0
- package/es/tntd-select/rc-select/OptGroup.js +4 -0
- package/es/tntd-select/rc-select/OptGroup.js.map +1 -0
- package/es/tntd-select/rc-select/Option.js +4 -0
- package/es/tntd-select/rc-select/Option.js.map +1 -0
- package/es/tntd-select/rc-select/OptionList.js +346 -0
- package/es/tntd-select/rc-select/OptionList.js.map +1 -0
- package/es/tntd-select/rc-select/Select.js +440 -0
- package/es/tntd-select/rc-select/Select.js.map +1 -0
- package/es/tntd-select/rc-select/SelectContext.js +3 -0
- package/es/tntd-select/rc-select/SelectContext.js.map +1 -0
- package/es/tntd-select/rc-select/SelectTrigger.js +130 -0
- package/es/tntd-select/rc-select/SelectTrigger.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/Input.js +103 -0
- package/es/tntd-select/rc-select/Selector/Input.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js +171 -0
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/SingleSelector.js +98 -0
- package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/index.js +158 -0
- package/es/tntd-select/rc-select/Selector/index.js.map +1 -0
- package/es/tntd-select/rc-select/TransBtn.js +36 -0
- package/es/tntd-select/rc-select/TransBtn.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useAllowClear.js +24 -0
- package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useBaseProps.js +9 -0
- package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useCache.js +38 -0
- package/es/tntd-select/rc-select/hooks/useCache.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useDelayReset.js +23 -0
- package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js +55 -0
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useId.js +26 -0
- package/es/tntd-select/rc-select/hooks/useId.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +16 -0
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useLock.js +25 -0
- package/es/tntd-select/rc-select/hooks/useLock.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useOptions.js +43 -0
- package/es/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useRefFunc.js +13 -0
- package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +28 -0
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
- package/es/tntd-select/rc-select/index.js +7 -0
- package/es/tntd-select/rc-select/index.js.map +1 -0
- package/es/tntd-select/rc-select/interface.js +1 -0
- package/es/tntd-select/rc-select/interface.js.map +1 -0
- package/es/tntd-select/rc-select/utils/commonUtil.js +30 -0
- package/es/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/keyUtil.js +9 -0
- package/es/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/legacyUtil.js +55 -0
- package/es/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/platformUtil.js +4 -0
- package/es/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/valueUtil.js +112 -0
- package/es/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js +112 -0
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
- package/es/tooltip/style/index.js +2 -0
- package/es/tooltip/style/index.js.map +1 -0
- package/es/tooltip/style/index.less +187 -0
- package/es/transfer/style/customize.less +62 -0
- package/es/transfer/style/index.js +7 -0
- package/es/transfer/style/index.js.map +1 -0
- package/es/transfer/style/index.less +191 -0
- package/es/tree/style/directory.less +95 -0
- package/es/tree/style/index.js +2 -0
- package/es/tree/style/index.js.map +1 -0
- package/es/tree/style/index.less +280 -0
- package/es/tree/style/mixin.less +29 -0
- package/es/tree-select/style/index.js +6 -0
- package/es/tree-select/style/index.js.map +1 -0
- package/es/tree-select/style/index.less +191 -0
- package/es/typography/style/index.js +5 -0
- package/es/typography/style/index.js.map +1 -0
- package/es/typography/style/index.less +204 -0
- package/es/upload/style/index.js +5 -0
- package/es/upload/style/index.js.map +1 -0
- package/es/upload/style/index.less +542 -0
- package/es/utils/lang.js +5 -0
- package/es/utils/lang.js.map +1 -1
- package/es/version/style/index.js +2 -0
- package/es/version/style/index.js.map +1 -0
- package/lib/affix/style/index.d.ts.map +1 -0
- package/lib/affix/style/index.js.map +1 -0
- package/lib/affix/style/index.less +6 -0
- package/lib/alert/style/index.d.ts +3 -0
- package/lib/alert/style/index.d.ts.map +1 -0
- package/lib/alert/style/index.js +4 -0
- package/lib/alert/style/index.js.map +1 -0
- package/lib/alert/style/index.less +188 -0
- package/lib/anchor/style/index.d.ts +4 -0
- package/lib/anchor/style/index.d.ts.map +1 -0
- package/lib/anchor/style/index.js +5 -0
- package/lib/anchor/style/index.js.map +1 -0
- package/lib/anchor/style/index.less +82 -0
- package/lib/auto-complete/style/index.d.ts +5 -0
- package/lib/auto-complete/style/index.d.ts.map +1 -0
- package/lib/auto-complete/style/index.js +6 -0
- package/lib/auto-complete/style/index.js.map +1 -0
- package/lib/auto-complete/style/index.less +92 -0
- package/lib/avatar/style/index.d.ts +3 -0
- package/lib/avatar/style/index.d.ts.map +1 -0
- package/lib/avatar/style/index.js +4 -0
- package/lib/avatar/style/index.js.map +1 -0
- package/lib/avatar/style/index.less +59 -0
- package/lib/back-top/style/index.d.ts +3 -0
- package/lib/back-top/style/index.d.ts.map +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/style/index.js.map +1 -0
- package/lib/back-top/style/index.less +42 -0
- package/lib/back-top/style/responsive.less +11 -0
- package/lib/badge/style/index.d.ts +3 -0
- package/lib/badge/style/index.d.ts.map +1 -0
- package/lib/badge/style/index.js +4 -0
- package/lib/badge/style/index.js.map +1 -0
- package/lib/badge/style/index.less +190 -0
- package/lib/breadcrumb/style/index.d.ts +5 -0
- package/lib/breadcrumb/style/index.d.ts.map +1 -0
- package/lib/breadcrumb/style/index.js +6 -0
- package/lib/breadcrumb/style/index.js.map +1 -0
- package/lib/breadcrumb/style/index.less +51 -0
- package/lib/button/style/index.d.ts +3 -0
- package/lib/button/style/index.d.ts.map +1 -0
- package/lib/button/style/index.js +4 -0
- package/lib/button/style/index.js.map +1 -0
- package/lib/button/style/index.less +224 -0
- package/lib/button/style/mixin.less +357 -0
- package/lib/calendar/style/index.d.ts +5 -0
- package/lib/calendar/style/index.d.ts.map +1 -0
- package/lib/calendar/style/index.js +6 -0
- package/lib/calendar/style/index.js.map +1 -0
- package/lib/calendar/style/index.less +278 -0
- package/lib/card/style/index.d.ts +6 -0
- package/lib/card/style/index.d.ts.map +1 -0
- package/lib/card/style/index.js +7 -0
- package/lib/card/style/index.js.map +1 -0
- package/lib/card/style/index.less +263 -0
- package/lib/card/style/size.less +25 -0
- package/lib/carousel/style/index.d.ts +3 -0
- package/lib/carousel/style/index.d.ts.map +1 -0
- package/lib/carousel/style/index.js +4 -0
- package/lib/carousel/style/index.js.map +1 -0
- package/lib/carousel/style/index.less +238 -0
- package/lib/cascader/style/index.d.ts +5 -0
- package/lib/cascader/style/index.d.ts.map +1 -0
- package/lib/cascader/style/index.js +6 -0
- package/lib/cascader/style/index.js.map +1 -0
- package/lib/cascader/style/index.less +227 -0
- package/lib/checkbox/style/index.d.ts +3 -0
- package/lib/checkbox/style/index.d.ts.map +1 -0
- package/lib/checkbox/style/index.js +4 -0
- package/lib/checkbox/style/index.js.map +1 -0
- package/lib/checkbox/style/index.less +4 -0
- package/lib/checkbox/style/mixin.less +220 -0
- package/lib/col/style/index.d.ts +3 -0
- package/lib/col/style/index.d.ts.map +1 -0
- package/lib/col/style/index.js +4 -0
- package/lib/col/style/index.js.map +1 -0
- package/lib/collapse/style/index.d.ts +3 -0
- package/lib/collapse/style/index.d.ts.map +1 -0
- package/lib/collapse/style/index.js +4 -0
- package/lib/collapse/style/index.js.map +1 -0
- package/lib/collapse/style/index.less +134 -0
- package/lib/comment/style/index.d.ts +3 -0
- package/lib/comment/style/index.d.ts.map +1 -0
- package/lib/comment/style/index.js +4 -0
- package/lib/comment/style/index.js.map +1 -0
- package/lib/comment/style/index.less +93 -0
- package/lib/config-provider/style/index.d.ts +2 -0
- package/lib/config-provider/style/index.d.ts.map +1 -0
- package/lib/config-provider/style/index.js +3 -0
- package/lib/config-provider/style/index.js.map +1 -0
- package/lib/config-provider/style/index.less +2 -0
- package/lib/date-picker/style/Calendar.less +402 -0
- package/lib/date-picker/style/DecadePanel.less +81 -0
- package/lib/date-picker/style/MonthPanel.less +86 -0
- package/lib/date-picker/style/MonthPicker.less +11 -0
- package/lib/date-picker/style/Picker.less +113 -0
- package/lib/date-picker/style/RangePicker.less +248 -0
- package/lib/date-picker/style/TimePicker.less +151 -0
- package/lib/date-picker/style/WeekPicker.less +21 -0
- package/lib/date-picker/style/YearPanel.less +85 -0
- package/lib/date-picker/style/index.d.ts +6 -0
- package/lib/date-picker/style/index.d.ts.map +1 -0
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/style/index.js.map +1 -0
- package/lib/date-picker/style/index.less +17 -0
- package/lib/descriptions/style/index.d.ts +3 -0
- package/lib/descriptions/style/index.d.ts.map +1 -0
- package/lib/descriptions/style/index.js +4 -0
- package/lib/descriptions/style/index.js.map +1 -0
- package/lib/descriptions/style/index.less +144 -0
- package/lib/divider/style/index.d.ts +3 -0
- package/lib/divider/style/index.d.ts.map +1 -0
- package/lib/divider/style/index.js +4 -0
- package/lib/divider/style/index.js.map +1 -0
- package/lib/divider/style/index.less +109 -0
- package/lib/drawer/style/drawer.less +230 -0
- package/lib/drawer/style/index.d.ts +3 -0
- package/lib/drawer/style/index.d.ts.map +1 -0
- package/lib/drawer/style/index.js +4 -0
- package/lib/drawer/style/index.js.map +1 -0
- package/lib/drawer/style/index.less +3 -0
- package/lib/dropdown/style/index.d.ts +4 -0
- package/lib/dropdown/style/index.d.ts.map +1 -0
- package/lib/dropdown/style/index.js +5 -0
- package/lib/dropdown/style/index.js.map +1 -0
- package/lib/dropdown/style/index.less +282 -0
- package/lib/empty/style/index.d.ts +3 -0
- package/lib/empty/style/index.d.ts.map +1 -0
- package/lib/empty/style/index.js +4 -0
- package/lib/empty/style/index.js.map +1 -0
- package/lib/empty/style/index.less +52 -0
- package/lib/form/style/index.d.ts +4 -0
- package/lib/form/style/index.d.ts.map +1 -0
- package/lib/form/style/index.js +5 -0
- package/lib/form/style/index.js.map +1 -0
- package/lib/form/style/index.less +653 -0
- package/lib/form/style/mixin.less +126 -0
- package/lib/grid-v4/RowContext.d.ts.map +1 -0
- package/lib/grid-v4/RowContext.js.map +1 -0
- package/lib/grid-v4/col.d.ts.map +1 -0
- package/lib/grid-v4/col.js.map +1 -0
- package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
- package/lib/grid-v4/index.d.ts.map +1 -0
- package/lib/grid-v4/index.js.map +1 -0
- package/lib/grid-v4/row.d.ts.map +1 -0
- package/lib/{tntd-form/grid → grid-v4}/row.js +1 -0
- package/lib/grid-v4/row.js.map +1 -0
- package/lib/grid-v4/style/index.d.ts +2 -0
- package/lib/grid-v4/style/index.d.ts.map +1 -0
- package/lib/grid-v4/style/index.js +3 -0
- package/lib/grid-v4/style/index.js.map +1 -0
- package/lib/grid-v4/style/index.less +124 -0
- package/lib/grid-v4/style/mixin.less +57 -0
- package/lib/grid-v4/style/rtl.less +69 -0
- package/lib/handle/handle.d.ts +3 -0
- package/lib/handle/handle.d.ts.map +1 -0
- package/lib/handle/handle.js +181 -0
- package/lib/handle/handle.js.map +1 -0
- package/lib/icon/style/index.d.ts +3 -0
- package/lib/icon/style/index.d.ts.map +1 -0
- package/lib/icon/style/index.js +4 -0
- package/lib/icon/style/index.js.map +1 -0
- package/lib/icon/style/index.less +4 -0
- package/lib/input/style/index.d.ts +4 -0
- package/lib/input/style/index.d.ts.map +1 -0
- package/lib/input/style/index.js +5 -0
- package/lib/input/style/index.js.map +1 -0
- package/lib/input/style/index.less +57 -0
- package/lib/input/style/mixin.less +449 -0
- package/lib/input/style/search-input.less +34 -0
- package/lib/input-number/style/index.d.ts +3 -0
- package/lib/input-number/style/index.d.ts.map +1 -0
- package/lib/input-number/style/index.js +4 -0
- package/lib/input-number/style/index.js.map +1 -0
- package/lib/input-number/style/index.less +179 -0
- package/lib/layout/style/index.d.ts +3 -0
- package/lib/layout/style/index.d.ts.map +1 -0
- package/lib/layout/style/index.js +4 -0
- package/lib/layout/style/index.js.map +1 -0
- package/lib/layout/style/index.less +124 -0
- package/lib/layout/style/light.less +15 -0
- package/lib/list/style/bordered.less +41 -0
- package/lib/list/style/index.d.ts +7 -0
- package/lib/list/style/index.d.ts.map +1 -0
- package/lib/list/style/index.js +8 -0
- package/lib/list/style/index.js.map +1 -0
- package/lib/list/style/index.less +234 -0
- package/lib/list/style/responsive.less +40 -0
- package/lib/locale-provider/style/index.d.ts +2 -0
- package/lib/locale-provider/style/index.d.ts.map +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.js.map +1 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/mention/index.js +25 -0
- package/lib/mentions/style/index.d.ts +4 -0
- package/lib/mentions/style/index.d.ts.map +1 -0
- package/lib/mentions/style/index.js +5 -0
- package/lib/mentions/style/index.js.map +1 -0
- package/lib/mentions/style/index.less +164 -0
- package/lib/menu/style/dark.less +139 -0
- package/lib/menu/style/index.d.ts +4 -0
- package/lib/menu/style/index.d.ts.map +1 -0
- package/lib/menu/style/index.js +5 -0
- package/lib/menu/style/index.js.map +1 -0
- package/lib/menu/style/index.less +515 -0
- package/lib/message/style/index.d.ts +3 -0
- package/lib/message/style/index.d.ts.map +1 -0
- package/lib/message/style/index.js +4 -0
- package/lib/message/style/index.js.map +1 -0
- package/lib/message/style/index.less +75 -0
- package/lib/modal/style/confirm.less +78 -0
- package/lib/modal/style/index.d.ts +4 -0
- package/lib/modal/style/index.d.ts.map +1 -0
- package/lib/modal/style/index.js +5 -0
- package/lib/modal/style/index.js.map +1 -0
- package/lib/modal/style/index.less +4 -0
- package/lib/modal/style/modal.less +165 -0
- package/lib/notification/style/index.d.ts +3 -0
- package/lib/notification/style/index.d.ts.map +1 -0
- package/lib/notification/style/index.js +4 -0
- package/lib/notification/style/index.js.map +1 -0
- package/lib/notification/style/index.less +199 -0
- package/lib/page-header/style/index.d.ts +4 -0
- package/lib/page-header/style/index.d.ts.map +1 -0
- package/lib/page-header/style/index.js +5 -0
- package/lib/page-header/style/index.js.map +1 -0
- package/lib/page-header/style/index.less +119 -0
- package/lib/pagination/style/index.d.ts +4 -0
- package/lib/pagination/style/index.d.ts.map +1 -0
- package/lib/pagination/style/index.js +5 -0
- package/lib/pagination/style/index.js.map +1 -0
- package/lib/pagination/style/index.less +400 -0
- package/lib/popconfirm/style/index.d.ts +4 -0
- package/lib/popconfirm/style/index.d.ts.map +1 -0
- package/lib/popconfirm/style/index.js +5 -0
- package/lib/popconfirm/style/index.js.map +1 -0
- package/lib/popover/style/index.d.ts +3 -0
- package/lib/popover/style/index.d.ts.map +1 -0
- package/lib/popover/style/index.js +4 -0
- package/lib/popover/style/index.js.map +1 -0
- package/lib/popover/style/index.less +205 -0
- package/lib/progress/style/index.d.ts +3 -0
- package/lib/progress/style/index.d.ts.map +1 -0
- package/lib/progress/style/index.js +4 -0
- package/lib/progress/style/index.js.map +1 -0
- package/lib/progress/style/index.less +182 -0
- package/lib/radio/style/index.d.ts +3 -0
- package/lib/radio/style/index.d.ts.map +1 -0
- package/lib/radio/style/index.js +4 -0
- package/lib/radio/style/index.js.map +1 -0
- package/lib/radio/style/index.less +327 -0
- package/lib/rate/style/index.d.ts +4 -0
- package/lib/rate/style/index.d.ts.map +1 -0
- package/lib/rate/style/index.js +5 -0
- package/lib/rate/style/index.js.map +1 -0
- package/lib/rate/style/index.less +85 -0
- package/lib/result/style/index.d.ts +3 -0
- package/lib/result/style/index.d.ts.map +1 -0
- package/lib/result/style/index.js +4 -0
- package/lib/result/style/index.js.map +1 -0
- package/lib/result/style/index.less +71 -0
- package/lib/row/style/index.d.ts +3 -0
- package/lib/row/style/index.d.ts.map +1 -0
- package/lib/row/style/index.js +4 -0
- package/lib/row/style/index.js.map +1 -0
- package/lib/select/style/index.d.ts +4 -0
- package/lib/select/style/index.d.ts.map +1 -0
- package/lib/select/style/index.js +5 -0
- package/lib/select/style/index.js.map +1 -0
- package/lib/select/style/index.less +604 -0
- package/lib/skeleton/style/index.d.ts +3 -0
- package/lib/skeleton/style/index.d.ts.map +1 -0
- package/lib/skeleton/style/index.js +4 -0
- package/lib/skeleton/style/index.js.map +1 -0
- package/lib/skeleton/style/index.less +130 -0
- package/lib/slider/style/index.d.ts +4 -0
- package/lib/slider/style/index.d.ts.map +1 -0
- package/lib/slider/style/index.js +5 -0
- package/lib/slider/style/index.js.map +1 -0
- package/lib/slider/style/index.less +197 -0
- package/lib/spin/style/index.d.ts +3 -0
- package/lib/spin/style/index.d.ts.map +1 -0
- package/lib/spin/style/index.js +4 -0
- package/lib/spin/style/index.js.map +1 -0
- package/lib/spin/style/index.less +214 -0
- package/lib/statistic/style/index.d.ts +3 -0
- package/lib/statistic/style/index.d.ts.map +1 -0
- package/lib/statistic/style/index.js +4 -0
- package/lib/statistic/style/index.js.map +1 -0
- package/lib/statistic/style/index.less +40 -0
- package/lib/steps/style/compatibility.less +50 -0
- package/lib/steps/style/custom-icon.less +31 -0
- package/lib/steps/style/index.d.ts +3 -0
- package/lib/steps/style/index.d.ts.map +1 -0
- package/lib/steps/style/index.js +4 -0
- package/lib/steps/style/index.js.map +1 -0
- package/lib/steps/style/label-placement.less +38 -0
- package/lib/steps/style/progress-dot.less +80 -0
- package/lib/steps/style/vertical.less +74 -0
- package/lib/style/color/bezierEasing.less +110 -0
- package/lib/style/color/colorPalette.less +75 -0
- package/lib/style/color/colors.less +149 -0
- package/lib/style/color/tinyColor.less +1184 -0
- package/lib/style/core/base.less +510 -0
- package/lib/style/core/iconfont.less +19 -0
- package/lib/style/core/index.less +4 -0
- package/lib/style/core/motion/fade.less +31 -0
- package/lib/style/core/motion/move.less +120 -0
- package/lib/style/core/motion/other.less +40 -0
- package/lib/style/core/motion/slide.less +120 -0
- package/lib/style/core/motion/swing.less +34 -0
- package/lib/style/core/motion/zoom.less +162 -0
- package/lib/style/core/motion.less +20 -0
- package/lib/style/index.d.ts +2 -0
- package/lib/style/index.d.ts.map +1 -0
- package/lib/style/index.js +3 -0
- package/lib/style/index.js.map +1 -0
- package/lib/style/index.less +2 -0
- package/lib/style/mixins/clearfix.less +13 -0
- package/lib/style/mixins/compatibility.less +22 -0
- package/lib/style/mixins/iconfont.less +43 -0
- package/lib/style/mixins/index.less +10 -0
- package/lib/style/mixins/motion.less +35 -0
- package/lib/style/mixins/operation-unit.less +18 -0
- package/lib/style/mixins/reset.less +13 -0
- package/lib/style/mixins/size.less +10 -0
- package/lib/style/mixins/typography.less +49 -0
- package/lib/style/themes/default.less +699 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/style/v2-compatible-reset.d.ts +2 -0
- package/lib/style/v2-compatible-reset.d.ts.map +1 -0
- package/lib/style/v2-compatible-reset.js +3 -0
- package/lib/style/v2-compatible-reset.js.map +1 -0
- package/lib/style/v2-compatible-reset.less +51 -0
- package/lib/switch/style/index.d.ts +3 -0
- package/lib/switch/style/index.d.ts.map +1 -0
- package/lib/switch/style/index.js +4 -0
- package/lib/switch/style/index.js.map +1 -0
- package/lib/switch/style/index.less +178 -0
- package/lib/table/style/index.d.ts +9 -0
- package/lib/table/style/index.d.ts.map +1 -0
- package/lib/table/style/index.js +10 -0
- package/lib/table/style/index.js.map +1 -0
- package/lib/table/style/index.less +800 -0
- package/lib/table/style/size.less +179 -0
- package/lib/tabs/style/card-style.less +186 -0
- package/lib/tabs/style/index.d.ts +3 -0
- package/lib/tabs/style/index.d.ts.map +1 -0
- package/lib/tabs/style/index.js +4 -0
- package/lib/tabs/style/index.js.map +1 -0
- package/lib/tabs/style/index.less +436 -0
- package/lib/tabs/tabs.d.ts +1 -0
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +7 -4
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tag/style/index.d.ts +3 -0
- package/lib/tag/style/index.d.ts.map +1 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/tag/style/index.js.map +1 -0
- package/lib/tag/style/index.less +106 -0
- package/lib/time-picker/style/index.d.ts +3 -0
- package/lib/time-picker/style/index.d.ts.map +1 -0
- package/lib/time-picker/style/index.js +4 -0
- package/lib/time-picker/style/index.js.map +1 -0
- package/lib/time-picker/style/index.less +246 -0
- package/lib/timeline/style/index.d.ts +3 -0
- package/lib/timeline/style/index.d.ts.map +1 -0
- package/lib/timeline/style/index.js +4 -0
- package/lib/timeline/style/index.js.map +1 -0
- package/lib/timeline/style/index.less +167 -0
- package/lib/tntd-form/TntdForm/components/Item.js +65 -0
- package/lib/tntd-form/TntdForm/components/ItemComp.js +215 -0
- package/lib/tntd-form/TntdForm/components/List.js +123 -0
- package/lib/tntd-form/TntdForm/index.js +72 -0
- package/lib/tntd-form/TntdForm/interface.js +5 -0
- package/lib/tntd-form/TntdForm/store.js +10 -0
- package/lib/tntd-form/TntdForm/utils.js +239 -0
- package/lib/tntd-form/tntd-form.stories.d.ts +1 -1
- package/lib/tntd-select/_util/DisabledContext.d.ts +10 -0
- package/lib/tntd-select/_util/DisabledContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/DisabledContext.js +22 -0
- package/lib/tntd-select/_util/DisabledContext.js.map +1 -0
- package/lib/tntd-select/_util/FormItemInputContext.d.ts +4 -0
- package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/FormItemInputContext.js +12 -0
- package/lib/tntd-select/_util/FormItemInputContext.js.map +1 -0
- package/lib/tntd-select/_util/PurePanel.d.ts +9 -0
- package/lib/tntd-select/_util/PurePanel.d.ts.map +1 -0
- package/lib/tntd-select/_util/PurePanel.js +90 -0
- package/lib/tntd-select/_util/PurePanel.js.map +1 -0
- package/lib/tntd-select/_util/SizeContext.d.ts +4 -0
- package/lib/tntd-select/_util/SizeContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/SizeContext.js +12 -0
- package/lib/tntd-select/_util/SizeContext.js.map +1 -0
- package/lib/tntd-select/_util/context.d.ts.map +1 -0
- package/lib/tntd-select/_util/context.js.map +1 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-select/_util/getIcons.d.ts +25 -0
- package/lib/tntd-select/_util/getIcons.d.ts.map +1 -0
- package/lib/tntd-select/_util/getIcons.js +84 -0
- package/lib/tntd-select/_util/getIcons.js.map +1 -0
- package/lib/tntd-select/_util/interface.d.ts +25 -0
- package/lib/tntd-select/_util/interface.d.ts.map +1 -0
- package/lib/tntd-select/_util/interface.js +16 -0
- package/lib/tntd-select/_util/interface.js.map +1 -0
- package/lib/tntd-select/_util/motion.d.ts +9 -0
- package/lib/tntd-select/_util/motion.d.ts.map +1 -0
- package/lib/tntd-select/_util/motion.js +59 -0
- package/lib/tntd-select/_util/motion.js.map +1 -0
- package/lib/tntd-select/_util/type.d.ts +10 -0
- package/lib/tntd-select/_util/type.d.ts.map +1 -0
- package/lib/tntd-select/_util/type.js +21 -0
- package/lib/tntd-select/_util/type.js.map +1 -0
- package/lib/tntd-select/_util/useCompactItemContext.d.ts +9 -0
- package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/useCompactItemContext.js +35 -0
- package/lib/tntd-select/_util/useCompactItemContext.js.map +1 -0
- package/lib/tntd-select/_util/warning.d.ts +4 -0
- package/lib/tntd-select/_util/warning.d.ts.map +1 -0
- package/lib/tntd-select/_util/warning.js +24 -0
- package/lib/tntd-select/_util/warning.js.map +1 -0
- package/lib/tntd-select/rc-select/BaseSelect.d.ts +114 -0
- package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/BaseSelect.js +566 -0
- package/lib/tntd-select/rc-select/BaseSelect.js.map +1 -0
- package/lib/tntd-select/rc-select/OptGroup.d.ts +13 -0
- package/lib/tntd-select/rc-select/OptGroup.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/OptGroup.js +13 -0
- package/lib/tntd-select/rc-select/OptGroup.js.map +1 -0
- package/lib/tntd-select/rc-select/Option.d.ts +15 -0
- package/lib/tntd-select/rc-select/Option.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Option.js +13 -0
- package/lib/tntd-select/rc-select/Option.js.map +1 -0
- package/lib/tntd-select/rc-select/OptionList.d.ts +11 -0
- package/lib/tntd-select/rc-select/OptionList.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/OptionList.js +372 -0
- package/lib/tntd-select/rc-select/OptionList.js.map +1 -0
- package/lib/tntd-select/rc-select/Select.d.ts +115 -0
- package/lib/tntd-select/rc-select/Select.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Select.js +509 -0
- package/lib/tntd-select/rc-select/Select.js.map +1 -0
- package/lib/tntd-select/rc-select/SelectContext.d.ts +23 -0
- package/lib/tntd-select/rc-select/SelectContext.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/SelectContext.js +13 -0
- package/lib/tntd-select/rc-select/SelectContext.js.map +1 -0
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts +31 -0
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/SelectTrigger.js +149 -0
- package/lib/tntd-select/rc-select/SelectTrigger.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/Input.d.ts +27 -0
- package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/Input.js +110 -0
- package/lib/tntd-select/rc-select/Selector/Input.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +17 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +193 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +9 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js +116 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/index.d.ts +83 -0
- package/lib/tntd-select/rc-select/Selector/index.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/index.js +159 -0
- package/lib/tntd-select/rc-select/Selector/index.js.map +1 -0
- package/lib/tntd-select/rc-select/TransBtn.d.ts +13 -0
- package/lib/tntd-select/rc-select/TransBtn.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/TransBtn.js +48 -0
- package/lib/tntd-select/rc-select/TransBtn.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +9 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js +35 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +14 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js +21 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts +8 -0
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useCache.js +49 -0
- package/lib/tntd-select/rc-select/hooks/useCache.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +1 -0
- package/lib/{tntd-form/_util/hooks/useFlexGapSupport.js → tntd-select/rc-select/hooks/useDelayReset.js} +25 -9
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +4 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +72 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useId.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +1 -0
- package/lib/{tntd-form/_util/hooks/useForceUpdate.js → tntd-select/rc-select/hooks/useId.js} +32 -8
- package/lib/tntd-select/rc-select/hooks/useId.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +26 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts +8 -0
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLock.js +39 -0
- package/lib/tntd-select/rc-select/hooks/useLock.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +12 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.js +53 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js +22 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +2 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +43 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
- package/lib/tntd-select/rc-select/index.d.ts +11 -0
- package/lib/tntd-select/rc-select/index.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/index.js +38 -0
- package/lib/tntd-select/rc-select/index.js.map +1 -0
- package/lib/tntd-select/rc-select/interface.d.ts +23 -0
- package/lib/tntd-select/rc-select/interface.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/interface.js +5 -0
- package/lib/tntd-select/rc-select/interface.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +10 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.js +43 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +3 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.js +16 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +4 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.js +60 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +2 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.js +10 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +24 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.js +132 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +5 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +127 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
- package/lib/tooltip/style/index.d.ts +3 -0
- package/lib/tooltip/style/index.d.ts.map +1 -0
- package/lib/tooltip/style/index.js +4 -0
- package/lib/tooltip/style/index.js.map +1 -0
- package/lib/tooltip/style/index.less +187 -0
- package/lib/transfer/style/customize.less +62 -0
- package/lib/transfer/style/index.d.ts +7 -0
- package/lib/transfer/style/index.d.ts.map +1 -0
- package/lib/transfer/style/index.js +8 -0
- package/lib/transfer/style/index.js.map +1 -0
- package/lib/transfer/style/index.less +191 -0
- package/lib/tree/style/directory.less +95 -0
- package/lib/tree/style/index.d.ts +3 -0
- package/lib/tree/style/index.d.ts.map +1 -0
- package/lib/tree/style/index.js +4 -0
- package/lib/tree/style/index.js.map +1 -0
- package/lib/tree/style/index.less +280 -0
- package/lib/tree/style/mixin.less +29 -0
- package/lib/tree-select/style/index.d.ts +5 -0
- package/lib/tree-select/style/index.d.ts.map +1 -0
- package/lib/tree-select/style/index.js +6 -0
- package/lib/tree-select/style/index.js.map +1 -0
- package/lib/tree-select/style/index.less +191 -0
- package/lib/typography/style/index.d.ts +5 -0
- package/lib/typography/style/index.d.ts.map +1 -0
- package/lib/typography/style/index.js +6 -0
- package/lib/typography/style/index.js.map +1 -0
- package/lib/typography/style/index.less +204 -0
- package/lib/upload/style/index.d.ts +5 -0
- package/lib/upload/style/index.d.ts.map +1 -0
- package/lib/upload/style/index.js +6 -0
- package/lib/upload/style/index.js.map +1 -0
- package/lib/upload/style/index.less +542 -0
- package/lib/utils/lang.d.ts.map +1 -1
- package/lib/utils/lang.js +5 -0
- package/lib/utils/lang.js.map +1 -1
- package/lib/version/style/index.d.ts +2 -0
- package/lib/version/style/index.d.ts.map +1 -0
- package/lib/version/style/index.js +3 -0
- package/lib/version/style/index.js.map +1 -0
- package/package.json +1 -1
- package/es/tntd-form/_util/context.js.map +0 -1
- package/es/tntd-form/_util/defaultRenderEmpty.js.map +0 -1
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js +0 -9
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +0 -1
- package/es/tntd-form/_util/hooks/useForceUpdate.js +0 -5
- package/es/tntd-form/_util/hooks/useForceUpdate.js.map +0 -1
- package/es/tntd-form/_util/responsiveObserve.js +0 -59
- package/es/tntd-form/_util/responsiveObserve.js.map +0 -1
- package/es/tntd-form/_util/styleChecker.js +0 -26
- package/es/tntd-form/_util/styleChecker.js.map +0 -1
- package/es/tntd-form/grid/RowContext.js.map +0 -1
- package/es/tntd-form/grid/col.js.map +0 -1
- package/es/tntd-form/grid/hooks/useBreakpoint.js.map +0 -1
- package/es/tntd-form/grid/index.js.map +0 -1
- package/es/tntd-form/grid/row.js.map +0 -1
- package/es/tntd-form/grid/style/index.js.map +0 -1
- package/lib/tntd-form/_util/context.d.ts.map +0 -1
- package/lib/tntd-form/_util/context.js.map +0 -1
- package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +0 -1
- package/lib/tntd-form/_util/defaultRenderEmpty.js.map +0 -1
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +0 -3
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +0 -1
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +0 -1
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +0 -3
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +0 -1
- package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +0 -1
- package/lib/tntd-form/_util/responsiveObserve.d.ts +0 -22
- package/lib/tntd-form/_util/responsiveObserve.d.ts.map +0 -1
- package/lib/tntd-form/_util/responsiveObserve.js +0 -73
- package/lib/tntd-form/_util/responsiveObserve.js.map +0 -1
- package/lib/tntd-form/_util/styleChecker.d.ts +0 -5
- package/lib/tntd-form/_util/styleChecker.d.ts.map +0 -1
- package/lib/tntd-form/_util/styleChecker.js +0 -42
- package/lib/tntd-form/_util/styleChecker.js.map +0 -1
- package/lib/tntd-form/grid/RowContext.d.ts.map +0 -1
- package/lib/tntd-form/grid/RowContext.js.map +0 -1
- package/lib/tntd-form/grid/col.d.ts.map +0 -1
- package/lib/tntd-form/grid/col.js.map +0 -1
- package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +0 -1
- package/lib/tntd-form/grid/index.d.ts.map +0 -1
- package/lib/tntd-form/grid/index.js.map +0 -1
- package/lib/tntd-form/grid/row.d.ts.map +0 -1
- package/lib/tntd-form/grid/row.js.map +0 -1
- package/lib/tntd-form/grid/style/index.d.ts.map +0 -1
- package/lib/tntd-form/grid/style/index.js.map +0 -1
- /package/es/{tntd-form/grid → affix}/style/index.js +0 -0
- /package/es/{tntd-form/grid → grid-v4}/RowContext.js +0 -0
- /package/es/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.js +0 -0
- /package/es/{tntd-form/grid → grid-v4}/index.js +0 -0
- /package/es/{tntd-form → tntd-select}/_util/context.js +0 -0
- /package/es/{tntd-form → tntd-select}/_util/defaultRenderEmpty.js +0 -0
- /package/lib/{tntd-form/grid → affix}/style/index.d.ts +0 -0
- /package/lib/{tntd-form/grid → affix}/style/index.js +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/RowContext.d.ts +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/RowContext.js +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/col.d.ts +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/col.js +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.js +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/index.d.ts +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/index.js +0 -0
- /package/lib/{tntd-form/grid → grid-v4}/row.d.ts +0 -0
- /package/lib/{tntd-form → tntd-select}/_util/context.d.ts +0 -0
- /package/lib/{tntd-form → tntd-select}/_util/context.js +0 -0
- /package/lib/{tntd-form → tntd-select}/_util/defaultRenderEmpty.d.ts +0 -0
- /package/lib/{tntd-form → tntd-select}/_util/defaultRenderEmpty.js +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import warning from 'rc-util/lib/warning';
|
|
2
|
+
function getKey(data, index) {
|
|
3
|
+
const {
|
|
4
|
+
key
|
|
5
|
+
} = data;
|
|
6
|
+
let value;
|
|
7
|
+
if ('value' in data) {
|
|
8
|
+
({
|
|
9
|
+
value
|
|
10
|
+
} = data);
|
|
11
|
+
}
|
|
12
|
+
if (key !== null && key !== undefined) {
|
|
13
|
+
return key;
|
|
14
|
+
}
|
|
15
|
+
if (value !== undefined) {
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
return `rc-index-key-${index}`;
|
|
19
|
+
}
|
|
20
|
+
export function fillFieldNames(fieldNames, childrenAsData) {
|
|
21
|
+
const {
|
|
22
|
+
label,
|
|
23
|
+
value,
|
|
24
|
+
options,
|
|
25
|
+
groupLabel
|
|
26
|
+
} = fieldNames || {};
|
|
27
|
+
const mergedLabel = label || (childrenAsData ? 'children' : 'label');
|
|
28
|
+
return {
|
|
29
|
+
label: mergedLabel,
|
|
30
|
+
value: value || 'value',
|
|
31
|
+
options: options || 'options',
|
|
32
|
+
groupLabel: groupLabel || mergedLabel
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Flat options into flatten list.
|
|
37
|
+
* We use `optionOnly` here is aim to avoid user use nested option group.
|
|
38
|
+
* Here is simply set `key` to the index if not provided.
|
|
39
|
+
*/
|
|
40
|
+
export function flattenOptions(options, {
|
|
41
|
+
fieldNames,
|
|
42
|
+
childrenAsData
|
|
43
|
+
} = {}) {
|
|
44
|
+
const flattenList = [];
|
|
45
|
+
const {
|
|
46
|
+
label: fieldLabel,
|
|
47
|
+
value: fieldValue,
|
|
48
|
+
options: fieldOptions,
|
|
49
|
+
groupLabel
|
|
50
|
+
} = fillFieldNames(fieldNames, false);
|
|
51
|
+
function dig(list, isGroupOption) {
|
|
52
|
+
list.forEach(data => {
|
|
53
|
+
if (isGroupOption || !(fieldOptions in data)) {
|
|
54
|
+
const value = data[fieldValue];
|
|
55
|
+
// Option
|
|
56
|
+
flattenList.push({
|
|
57
|
+
key: getKey(data, flattenList.length),
|
|
58
|
+
groupOption: isGroupOption,
|
|
59
|
+
data,
|
|
60
|
+
label: data[fieldLabel],
|
|
61
|
+
value
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
let grpLabel = data[groupLabel];
|
|
65
|
+
if (grpLabel === undefined && childrenAsData) {
|
|
66
|
+
grpLabel = data.label;
|
|
67
|
+
}
|
|
68
|
+
// Option Group
|
|
69
|
+
flattenList.push({
|
|
70
|
+
key: getKey(data, flattenList.length),
|
|
71
|
+
group: true,
|
|
72
|
+
data,
|
|
73
|
+
label: grpLabel
|
|
74
|
+
});
|
|
75
|
+
dig(data[fieldOptions], true);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
dig(options, false);
|
|
80
|
+
return flattenList;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Inject `props` into `option` for legacy usage
|
|
84
|
+
*/
|
|
85
|
+
export function injectPropsWithOption(option) {
|
|
86
|
+
const newOption = Object.assign({}, option);
|
|
87
|
+
if (!('props' in newOption)) {
|
|
88
|
+
Object.defineProperty(newOption, 'props', {
|
|
89
|
+
get() {
|
|
90
|
+
warning(false, 'Return type is option instead of Option instance. Please read value directly instead of reading from `props`.');
|
|
91
|
+
return newOption;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return newOption;
|
|
96
|
+
}
|
|
97
|
+
export function getSeparatedContent(text, tokens) {
|
|
98
|
+
if (!tokens || !tokens.length) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
let match = false;
|
|
102
|
+
function separate(str, [token, ...restTokens]) {
|
|
103
|
+
if (!token) {
|
|
104
|
+
return [str];
|
|
105
|
+
}
|
|
106
|
+
const list = str.split(token);
|
|
107
|
+
match = match || list.length > 1;
|
|
108
|
+
return list.reduce((prevList, unitStr) => [...prevList, ...separate(unitStr, restTokens)], []).filter(unit => unit);
|
|
109
|
+
}
|
|
110
|
+
const list = separate(text, tokens);
|
|
111
|
+
return match ? list : null;
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueUtil.js","sourceRoot":"","sources":["../../../../src/tntd-select/rc-select/utils/valueUtil.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAI1C,SAAS,MAAM,CAAC,IAAoB,EAAE,KAAa;IACjD,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACrB,IAAI,KAAmB,CAAC;IAExB,IAAI,OAAO,IAAI,IAAI,EAAE;QACnB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;K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QAAQ,CAAC,GAAW,EAAE,CAAC,KAAK,EAAE,GAAG,UAAU,CAAW;QAC7D,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC;SACd;QAED,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,KAAK,GAAG,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAEjC,OAAO,IAAI;aACR,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,GAAG,QAAQ,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC;aAClF,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7B,CAAC","sourcesContent":["import type { BaseOptionType, DefaultOptionType } from '../Select';\nimport warning from 'rc-util/lib/warning';\nimport type { RawValueType, FieldNames } from '../Select';\nimport type { FlattenOptionData } from '../interface';\n\nfunction getKey(data: BaseOptionType, index: number) {\n const { key } = data;\n let value: RawValueType;\n\n if ('value' in data) {\n ({ value } = data);\n }\n\n if (key !== null && key !== undefined) {\n return key;\n }\n if (value !== undefined) {\n return value;\n }\n return `rc-index-key-${index}`;\n}\n\nexport function fillFieldNames(fieldNames: FieldNames | undefined, childrenAsData: boolean) {\n const { label, value, options, groupLabel } = fieldNames || {};\n const mergedLabel = label || (childrenAsData ? 'children' : 'label');\n\n return {\n label: mergedLabel,\n value: value || 'value',\n options: options || 'options',\n groupLabel: groupLabel || mergedLabel,\n };\n}\n\n/**\n * Flat options into flatten list.\n * We use `optionOnly` here is aim to avoid user use nested option group.\n * Here is simply set `key` to the index if not provided.\n */\nexport function flattenOptions<OptionType extends BaseOptionType = DefaultOptionType>(\n options: OptionType[],\n { fieldNames, childrenAsData }: { fieldNames?: FieldNames; childrenAsData?: boolean } = {},\n): FlattenOptionData<OptionType>[] {\n const flattenList: FlattenOptionData<OptionType>[] = [];\n\n const {\n label: fieldLabel,\n value: fieldValue,\n options: fieldOptions,\n groupLabel\n } = fillFieldNames(fieldNames, false);\n\n function dig(list: OptionType[], isGroupOption: boolean) {\n list.forEach((data) => {\n if (isGroupOption || !(fieldOptions in data)) {\n const value = data[fieldValue];\n\n // Option\n flattenList.push({\n key: getKey(data, flattenList.length),\n groupOption: isGroupOption,\n data,\n label: data[fieldLabel],\n value,\n });\n } else {\n let grpLabel = data[groupLabel];\n if (grpLabel === undefined && childrenAsData) {\n grpLabel = data.label;\n }\n\n // Option Group\n flattenList.push({\n key: getKey(data, flattenList.length),\n group: true,\n data,\n label: grpLabel,\n });\n\n dig(data[fieldOptions], true);\n }\n });\n }\n\n dig(options, false);\n\n return flattenList;\n}\n\n/**\n * Inject `props` into `option` for legacy usage\n */\nexport function injectPropsWithOption<T extends object>(option: T): T {\n const newOption = { ...option };\n if (!('props' in newOption)) {\n Object.defineProperty(newOption, 'props', {\n get() {\n warning(\n false,\n 'Return type is option instead of Option instance. Please read value directly instead of reading from `props`.',\n );\n return newOption;\n },\n });\n }\n\n return newOption;\n}\n\nexport function getSeparatedContent(text: string, tokens: string[]): string[] {\n if (!tokens || !tokens.length) {\n return null;\n }\n\n let match = false;\n\n function separate(str: string, [token, ...restTokens]: string[]) {\n if (!token) {\n return [str];\n }\n\n const list = str.split(token);\n match = match || list.length > 1;\n\n return list\n .reduce((prevList, unitStr) => [...prevList, ...separate(unitStr, restTokens)], [])\n .filter((unit) => unit);\n }\n\n const list = separate(text, tokens);\n return match ? list : null;\n}\n"]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import toNodeArray from 'rc-util/lib/Children/toArray';
|
|
2
|
+
import warning, { noteOnce } from 'rc-util/lib/warning';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { isMultiple } from '../BaseSelect';
|
|
5
|
+
import { toArray } from './commonUtil';
|
|
6
|
+
import { convertChildrenToData } from './legacyUtil';
|
|
7
|
+
function warningProps(props) {
|
|
8
|
+
const {
|
|
9
|
+
mode,
|
|
10
|
+
options,
|
|
11
|
+
children,
|
|
12
|
+
backfill,
|
|
13
|
+
allowClear,
|
|
14
|
+
placeholder,
|
|
15
|
+
getInputElement,
|
|
16
|
+
showSearch,
|
|
17
|
+
onSearch,
|
|
18
|
+
defaultOpen,
|
|
19
|
+
autoFocus,
|
|
20
|
+
labelInValue,
|
|
21
|
+
value,
|
|
22
|
+
inputValue,
|
|
23
|
+
optionLabelProp
|
|
24
|
+
} = props;
|
|
25
|
+
const multiple = isMultiple(mode);
|
|
26
|
+
const mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';
|
|
27
|
+
const mergedOptions = options || convertChildrenToData(children);
|
|
28
|
+
// `tags` should not set option as disabled
|
|
29
|
+
warning(mode !== 'tags' || mergedOptions.every(opt => !opt.disabled), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
|
|
30
|
+
// `combobox` & `tags` should option be `string` type
|
|
31
|
+
if (mode === 'tags' || mode === 'combobox') {
|
|
32
|
+
const hasNumberValue = mergedOptions.some(item => {
|
|
33
|
+
if (item.options) {
|
|
34
|
+
return item.options.some(opt => typeof ('value' in opt ? opt.value : opt.key) === 'number');
|
|
35
|
+
}
|
|
36
|
+
return typeof ('value' in item ? item.value : item.key) === 'number';
|
|
37
|
+
});
|
|
38
|
+
warning(!hasNumberValue, '`value` of Option should not use number type when `mode` is `tags` or `combobox`.');
|
|
39
|
+
}
|
|
40
|
+
// `combobox` should not use `optionLabelProp`
|
|
41
|
+
warning(mode !== 'combobox' || !optionLabelProp, '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.');
|
|
42
|
+
// Only `combobox` support `backfill`
|
|
43
|
+
warning(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.');
|
|
44
|
+
// Only `combobox` support `getInputElement`
|
|
45
|
+
warning(mode === 'combobox' || !getInputElement, '`getInputElement` only work with `combobox` mode.');
|
|
46
|
+
// Customize `getInputElement` should not use `allowClear` & `placeholder`
|
|
47
|
+
noteOnce(mode !== 'combobox' || !getInputElement || !allowClear || !placeholder, 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.');
|
|
48
|
+
// `onSearch` should use in `combobox` or `showSearch`
|
|
49
|
+
if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') {
|
|
50
|
+
warning(false, '`onSearch` should work with `showSearch` instead of use alone.');
|
|
51
|
+
}
|
|
52
|
+
noteOnce(!defaultOpen || autoFocus, '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.');
|
|
53
|
+
if (value !== undefined && value !== null) {
|
|
54
|
+
const values = toArray(value);
|
|
55
|
+
warning(!labelInValue || values.every(val => typeof val === 'object' && ('key' in val || 'value' in val)), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
56
|
+
warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
57
|
+
}
|
|
58
|
+
// Syntactic sugar should use correct children type
|
|
59
|
+
if (children) {
|
|
60
|
+
let invalidateChildType = null;
|
|
61
|
+
toNodeArray(children).some(node => {
|
|
62
|
+
if (!React.isValidElement(node) || !node.type) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
const {
|
|
66
|
+
type
|
|
67
|
+
} = node;
|
|
68
|
+
if (type.isSelectOption) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
if (type.isSelectOptGroup) {
|
|
72
|
+
const allChildrenValid = toNodeArray(node.props.children).every(subNode => {
|
|
73
|
+
if (!React.isValidElement(subNode) || !node.type || subNode.type.isSelectOption) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
invalidateChildType = subNode.type;
|
|
77
|
+
return false;
|
|
78
|
+
});
|
|
79
|
+
if (allChildrenValid) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
invalidateChildType = type;
|
|
85
|
+
return true;
|
|
86
|
+
});
|
|
87
|
+
if (invalidateChildType) {
|
|
88
|
+
warning(false, `\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${invalidateChildType.displayName || invalidateChildType.name || invalidateChildType}\`.`);
|
|
89
|
+
}
|
|
90
|
+
warning(inputValue === undefined, '`inputValue` is deprecated, please use `searchValue` instead.');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// value in Select option should not be null
|
|
94
|
+
// note: OptGroup has options too
|
|
95
|
+
export function warningNullOptions(options, fieldNames) {
|
|
96
|
+
if (options) {
|
|
97
|
+
const recursiveOptions = (optionsList, inGroup = false) => {
|
|
98
|
+
for (let i = 0; i < optionsList.length; i++) {
|
|
99
|
+
const option = optionsList[i];
|
|
100
|
+
if (option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value] === null) {
|
|
101
|
+
warning(false, '`value` in Select options should not be `null`.');
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
if (!inGroup && Array.isArray(option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.options]) && recursiveOptions(option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.options], true)) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
recursiveOptions(options);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export default warningProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warningPropsUtil.js","sourceRoot":"","sources":["../../../../src/tntd-select/rc-select/utils/warningPropsUtil.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,OAAO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,CACN,CAAC;SACH;QAED,OAAO,CACL,UAAU,KAAK,SAAS,EACxB,+DAA+D,CAChE,CAAC;KACH;AACH,CAAC;AAED,4CAA4C;AAC5C,iCAAiC;AACjC,MAAM,UAAU,kBAAkB,CAAC,OAA4B,EAAE,UAAsB;IACrF,IAAI,OAAO,EAAE;QACX,MAAM,gBAAgB,GAAG,CAAC,WAAgC,EAAE,UAAmB,KAAK,EAAE,EAAE;YACtF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC3C,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;gBAE9B,IAAI,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,CAAC,KAAK,IAAI,EAAE;oBACtC,OAAO,CAAC,KAAK,EAAE,iDAAiD,CAAC,CAAC;oBAClE,OAAO,IAAI,CAAC;iBACb;gBAED,IACE,CAAC,OAAO;oBACR,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC,CAAC;oBAC1C,gBAAgB,CAAC,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EACnD;oBACA,MAAM;iBACP;aACF;QACH,CAAC,CAAC;QAEF,gBAAgB,CAAC,OAAO,CAAC,CAAC;KAC3B;AACH,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import toNodeArray from 'rc-util/lib/Children/toArray';\nimport warning, { noteOnce } from 'rc-util/lib/warning';\nimport * as React from 'react';\nimport { isMultiple } from '../BaseSelect';\nimport type {\n BaseOptionType,\n DefaultOptionType,\n FieldNames,\n LabelInValueType,\n RawValueType,\n SelectProps,\n} from '../Select';\nimport { toArray } from './commonUtil';\nimport { convertChildrenToData } from './legacyUtil';\n\nfunction warningProps(props: SelectProps) {\n const {\n mode,\n options,\n children,\n backfill,\n allowClear,\n placeholder,\n getInputElement,\n showSearch,\n onSearch,\n defaultOpen,\n autoFocus,\n labelInValue,\n value,\n inputValue,\n optionLabelProp,\n } = props;\n\n const multiple = isMultiple(mode);\n const mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';\n const mergedOptions = options || convertChildrenToData(children);\n\n // `tags` should not set option as disabled\n warning(\n mode !== 'tags' || mergedOptions.every((opt: { disabled?: boolean }) => !opt.disabled),\n 'Please avoid setting option to disabled in tags mode since user can always type text as tag.',\n );\n\n // `combobox` & `tags` should option be `string` type\n if (mode === 'tags' || mode === 'combobox') {\n const hasNumberValue = mergedOptions.some((item) => {\n if (item.options) {\n return item.options.some(\n (opt: BaseOptionType) => typeof ('value' in opt ? opt.value : opt.key) === 'number',\n );\n }\n return typeof ('value' in item ? item.value : item.key) === 'number';\n });\n\n warning(\n !hasNumberValue,\n '`value` of Option should not use number type when `mode` is `tags` or `combobox`.',\n );\n }\n\n // `combobox` should not use `optionLabelProp`\n warning(\n mode !== 'combobox' || !optionLabelProp,\n '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.',\n );\n\n // Only `combobox` support `backfill`\n warning(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.');\n\n // Only `combobox` support `getInputElement`\n warning(\n mode === 'combobox' || !getInputElement,\n '`getInputElement` only work with `combobox` mode.',\n );\n\n // Customize `getInputElement` should not use `allowClear` & `placeholder`\n noteOnce(\n mode !== 'combobox' || !getInputElement || !allowClear || !placeholder,\n 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.',\n );\n\n // `onSearch` should use in `combobox` or `showSearch`\n if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') {\n warning(false, '`onSearch` should work with `showSearch` instead of use alone.');\n }\n\n noteOnce(\n !defaultOpen || autoFocus,\n '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.',\n );\n\n if (value !== undefined && value !== null) {\n const values = toArray<RawValueType | LabelInValueType>(value);\n warning(\n !labelInValue ||\n values.every((val) => typeof val === 'object' && ('key' in val || 'value' in val)),\n '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`',\n );\n\n warning(\n !multiple || Array.isArray(value),\n '`value` should be array when `mode` is `multiple` or `tags`',\n );\n }\n\n // Syntactic sugar should use correct children type\n if (children) {\n let invalidateChildType = null;\n toNodeArray(children).some((node: React.ReactNode) => {\n if (!React.isValidElement(node) || !node.type) {\n return false;\n }\n\n const { type } = node as { type: { isSelectOption?: boolean; isSelectOptGroup?: boolean } };\n\n if (type.isSelectOption) {\n return false;\n }\n if (type.isSelectOptGroup) {\n const allChildrenValid = toNodeArray(node.props.children).every(\n (subNode: React.ReactElement) => {\n if (\n !React.isValidElement(subNode) ||\n !node.type ||\n (subNode.type as { isSelectOption?: boolean }).isSelectOption\n ) {\n return true;\n }\n invalidateChildType = subNode.type;\n return false;\n },\n );\n\n if (allChildrenValid) {\n return false;\n }\n return true;\n }\n invalidateChildType = type;\n return true;\n });\n\n if (invalidateChildType) {\n warning(\n false,\n `\\`children\\` should be \\`Select.Option\\` or \\`Select.OptGroup\\` instead of \\`${\n invalidateChildType.displayName || invalidateChildType.name || invalidateChildType\n }\\`.`,\n );\n }\n\n warning(\n inputValue === undefined,\n '`inputValue` is deprecated, please use `searchValue` instead.',\n );\n }\n}\n\n// value in Select option should not be null\n// note: OptGroup has options too\nexport function warningNullOptions(options: DefaultOptionType[], fieldNames: FieldNames) {\n if (options) {\n const recursiveOptions = (optionsList: DefaultOptionType[], inGroup: boolean = false) => {\n for (let i = 0; i < optionsList.length; i++) {\n const option = optionsList[i];\n\n if (option[fieldNames?.value] === null) {\n warning(false, '`value` in Select options should not be `null`.');\n return true;\n }\n\n if (\n !inGroup &&\n Array.isArray(option[fieldNames?.options]) &&\n recursiveOptions(option[fieldNames?.options], true)\n ) {\n break;\n }\n }\n };\n\n recursiveOptions(options);\n }\n}\n\nexport default warningProps;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n"]}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@import '../../style/themes/index';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
|
|
4
|
+
@tooltip-prefix-cls: ~'@{ant-prefix}-tooltip';
|
|
5
|
+
|
|
6
|
+
@tooltip-arrow-shadow-width: 3px;
|
|
7
|
+
|
|
8
|
+
@tooltip-arrow-rotate-width: sqrt(@tooltip-arrow-width * @tooltip-arrow-width * 2) +
|
|
9
|
+
@tooltip-arrow-shadow-width * 2;
|
|
10
|
+
|
|
11
|
+
@tooltip-arrow-offset-vertical: 5px; // 8 - 3px
|
|
12
|
+
@tooltip-arrow-offset-horizontal: 13px; // 16 - 3px
|
|
13
|
+
|
|
14
|
+
// Base class
|
|
15
|
+
.@{tooltip-prefix-cls} {
|
|
16
|
+
.reset-component;
|
|
17
|
+
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: @zindex-tooltip;
|
|
20
|
+
display: block;
|
|
21
|
+
max-width: @tooltip-max-width;
|
|
22
|
+
visibility: visible;
|
|
23
|
+
|
|
24
|
+
&-hidden {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-placement-top,
|
|
29
|
+
&-placement-topLeft,
|
|
30
|
+
&-placement-topRight {
|
|
31
|
+
padding-bottom: @tooltip-distance;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-placement-right,
|
|
35
|
+
&-placement-rightTop,
|
|
36
|
+
&-placement-rightBottom {
|
|
37
|
+
padding-left: @tooltip-distance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-placement-bottom,
|
|
41
|
+
&-placement-bottomLeft,
|
|
42
|
+
&-placement-bottomRight {
|
|
43
|
+
padding-top: @tooltip-distance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-placement-left,
|
|
47
|
+
&-placement-leftTop,
|
|
48
|
+
&-placement-leftBottom {
|
|
49
|
+
padding-right: @tooltip-distance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Wrapper for the tooltip content
|
|
53
|
+
&-inner {
|
|
54
|
+
min-width: 30px;
|
|
55
|
+
min-height: 32px;
|
|
56
|
+
padding: 6px 8px;
|
|
57
|
+
color: @tooltip-color;
|
|
58
|
+
text-align: left;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
word-wrap: break-word;
|
|
61
|
+
background-color: @tooltip-bg;
|
|
62
|
+
border-radius: @border-radius-base;
|
|
63
|
+
box-shadow: @box-shadow-base;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Arrows
|
|
67
|
+
&-arrow {
|
|
68
|
+
position: absolute;
|
|
69
|
+
display: block;
|
|
70
|
+
width: @tooltip-arrow-rotate-width;
|
|
71
|
+
height: @tooltip-arrow-rotate-width;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
background: transparent;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
|
|
76
|
+
&::before {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
display: block;
|
|
83
|
+
width: @tooltip-arrow-width;
|
|
84
|
+
height: @tooltip-arrow-width;
|
|
85
|
+
margin: auto;
|
|
86
|
+
background-color: @tooltip-bg;
|
|
87
|
+
content: '';
|
|
88
|
+
pointer-events: auto;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-placement-top &-arrow,
|
|
93
|
+
&-placement-topLeft &-arrow,
|
|
94
|
+
&-placement-topRight &-arrow {
|
|
95
|
+
bottom: calc(@tooltip-distance - @tooltip-arrow-rotate-width);
|
|
96
|
+
|
|
97
|
+
&::before {
|
|
98
|
+
box-shadow: @tooltip-arrow-shadow-width @tooltip-arrow-shadow-width 7px fade(@black, 7%);
|
|
99
|
+
transform: translateY(-@tooltip-arrow-rotate-width / 2) rotate(45deg);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&-placement-top &-arrow {
|
|
104
|
+
left: 50%;
|
|
105
|
+
transform: translateX(-50%);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-placement-topLeft &-arrow {
|
|
109
|
+
left: @tooltip-arrow-offset-horizontal;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-placement-topRight &-arrow {
|
|
113
|
+
right: @tooltip-arrow-offset-horizontal;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-placement-right &-arrow,
|
|
117
|
+
&-placement-rightTop &-arrow,
|
|
118
|
+
&-placement-rightBottom &-arrow {
|
|
119
|
+
left: calc(@tooltip-distance - @tooltip-arrow-rotate-width);
|
|
120
|
+
|
|
121
|
+
&::before {
|
|
122
|
+
box-shadow: -@tooltip-arrow-shadow-width @tooltip-arrow-shadow-width 7px fade(@black, 7%);
|
|
123
|
+
transform: translateX(@tooltip-arrow-rotate-width / 2) rotate(45deg);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-placement-right &-arrow {
|
|
128
|
+
top: 50%;
|
|
129
|
+
transform: translateY(-50%);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&-placement-rightTop &-arrow {
|
|
133
|
+
top: @tooltip-arrow-offset-vertical;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&-placement-rightBottom &-arrow {
|
|
137
|
+
bottom: @tooltip-arrow-offset-vertical;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-placement-left &-arrow,
|
|
141
|
+
&-placement-leftTop &-arrow,
|
|
142
|
+
&-placement-leftBottom &-arrow {
|
|
143
|
+
right: calc(@tooltip-distance - @tooltip-arrow-rotate-width);
|
|
144
|
+
|
|
145
|
+
&::before {
|
|
146
|
+
box-shadow: @tooltip-arrow-shadow-width -@tooltip-arrow-shadow-width 7px fade(@black, 7%);
|
|
147
|
+
transform: translateX(-@tooltip-arrow-rotate-width / 2) rotate(45deg);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-placement-left &-arrow {
|
|
152
|
+
top: 50%;
|
|
153
|
+
transform: translateY(-50%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-placement-leftTop &-arrow {
|
|
157
|
+
top: @tooltip-arrow-offset-vertical;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-placement-leftBottom &-arrow {
|
|
161
|
+
bottom: @tooltip-arrow-offset-vertical;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-placement-bottom &-arrow,
|
|
165
|
+
&-placement-bottomLeft &-arrow,
|
|
166
|
+
&-placement-bottomRight &-arrow {
|
|
167
|
+
top: calc(@tooltip-distance - @tooltip-arrow-rotate-width);
|
|
168
|
+
|
|
169
|
+
&::before {
|
|
170
|
+
box-shadow: -@tooltip-arrow-shadow-width -@tooltip-arrow-shadow-width 7px fade(@black, 7%);
|
|
171
|
+
transform: translateY(@tooltip-arrow-rotate-width / 2) rotate(45deg);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&-placement-bottom &-arrow {
|
|
176
|
+
left: 50%;
|
|
177
|
+
transform: translateX(-50%);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-placement-bottomLeft &-arrow {
|
|
181
|
+
left: @tooltip-arrow-offset-horizontal;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&-placement-bottomRight &-arrow {
|
|
185
|
+
right: @tooltip-arrow-offset-horizontal;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import './index.less';
|
|
2
|
+
|
|
3
|
+
@table-prefix-cls: ~'@{ant-prefix}-table';
|
|
4
|
+
|
|
5
|
+
.@{transfer-prefix-cls}-customize-list {
|
|
6
|
+
display: flex;
|
|
7
|
+
|
|
8
|
+
.@{transfer-prefix-cls}-operation {
|
|
9
|
+
flex: none;
|
|
10
|
+
align-self: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.@{transfer-prefix-cls}-list {
|
|
14
|
+
flex: auto;
|
|
15
|
+
width: auto;
|
|
16
|
+
height: auto;
|
|
17
|
+
min-height: @transfer-list-height;
|
|
18
|
+
|
|
19
|
+
&-body {
|
|
20
|
+
&-with-search {
|
|
21
|
+
padding-top: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Search box in customize mode do not need fix top
|
|
25
|
+
&-search-wrapper {
|
|
26
|
+
position: relative;
|
|
27
|
+
padding-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-customize-wrapper {
|
|
31
|
+
padding: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// =================== Hook Components ===================
|
|
37
|
+
.@{table-prefix-cls}-wrapper {
|
|
38
|
+
.@{table-prefix-cls}-small {
|
|
39
|
+
border: 0;
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
|
|
42
|
+
> .@{table-prefix-cls}-content {
|
|
43
|
+
// Header background color
|
|
44
|
+
> .@{table-prefix-cls}-body > table > .@{table-prefix-cls}-thead > tr > th {
|
|
45
|
+
background: @table-header-bg;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.@{table-prefix-cls}-row:last-child td {
|
|
49
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.@{table-prefix-cls}-body {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.@{table-prefix-cls}-pagination.@{ant-prefix}-pagination {
|
|
59
|
+
margin: 16px 0 4px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transfer/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AAErB,qBAAqB;AACrB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,mBAAmB,CAAA","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n\n// style dependencies\nimport '../../empty/style'\nimport '../../checkbox/style'\nimport '../../button/style'\nimport '../../input/style'\n"]}
|