tntd 2.7.30 → 2.7.32
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/ellipsis/index.js +2 -0
- package/es/ellipsis/index.js.map +1 -1
- package/es/form/form.js +37 -38
- package/es/form/form.js.map +1 -1
- package/es/tntd-form/_util/context.js.map +1 -0
- package/es/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js +9 -0
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
- package/es/tntd-form/_util/hooks/useForceUpdate.js +5 -0
- package/es/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
- package/es/tntd-form/_util/responsiveObserve.js +59 -0
- package/es/tntd-form/_util/responsiveObserve.js.map +1 -0
- package/es/tntd-form/_util/styleChecker.js +26 -0
- package/es/tntd-form/_util/styleChecker.js.map +1 -0
- package/es/tntd-form/grid/RowContext.js.map +1 -0
- package/es/{grid-v4 → tntd-form/grid}/col.js +1 -0
- package/es/tntd-form/grid/col.js.map +1 -0
- package/es/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
- package/es/tntd-form/grid/index.js.map +1 -0
- package/es/{grid-v4 → tntd-form/grid}/row.js +0 -1
- package/es/tntd-form/grid/row.js.map +1 -0
- package/es/tntd-form/grid/style/index.js.map +1 -0
- package/lib/ellipsis/index.d.ts.map +1 -1
- package/lib/ellipsis/index.js +2 -0
- package/lib/ellipsis/index.js.map +1 -1
- package/lib/form/form.d.ts +1 -2
- package/lib/form/form.d.ts.map +1 -1
- package/lib/form/form.js +41 -40
- package/lib/form/form.js.map +1 -1
- package/lib/tntd-form/_util/context.d.ts.map +1 -0
- package/lib/tntd-form/_util/context.js.map +1 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +3 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
- package/lib/{tntd-select/rc-select/hooks/useDelayReset.js → tntd-form/_util/hooks/useFlexGapSupport.js} +9 -25
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +3 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +1 -0
- package/lib/{tntd-select/rc-select/hooks/useId.js → tntd-form/_util/hooks/useForceUpdate.js} +8 -32
- package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
- package/lib/tntd-form/_util/responsiveObserve.d.ts +22 -0
- package/lib/tntd-form/_util/responsiveObserve.d.ts.map +1 -0
- package/lib/tntd-form/_util/responsiveObserve.js +73 -0
- package/lib/tntd-form/_util/responsiveObserve.js.map +1 -0
- package/lib/tntd-form/_util/styleChecker.d.ts +5 -0
- package/lib/tntd-form/_util/styleChecker.d.ts.map +1 -0
- package/lib/tntd-form/_util/styleChecker.js +42 -0
- package/lib/tntd-form/_util/styleChecker.js.map +1 -0
- package/lib/tntd-form/grid/RowContext.d.ts.map +1 -0
- package/lib/tntd-form/grid/RowContext.js.map +1 -0
- package/lib/tntd-form/grid/col.d.ts.map +1 -0
- package/lib/tntd-form/grid/col.js.map +1 -0
- package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
- package/lib/tntd-form/grid/index.d.ts.map +1 -0
- package/lib/tntd-form/grid/index.js.map +1 -0
- package/lib/tntd-form/grid/row.d.ts.map +1 -0
- package/lib/{grid-v4 → tntd-form/grid}/row.js +0 -1
- package/lib/tntd-form/grid/row.js.map +1 -0
- package/lib/tntd-form/grid/style/index.d.ts.map +1 -0
- package/lib/tntd-form/grid/style/index.js.map +1 -0
- package/lib/tntd-form/tntd-form.stories.d.ts +1 -1
- package/package.json +1 -1
- package/themes/common/index.less +3 -3
- package/es/affix/style/index.js.map +0 -1
- package/es/affix/style/index.less +0 -6
- package/es/alert/style/index.js +0 -2
- package/es/alert/style/index.js.map +0 -1
- package/es/alert/style/index.less +0 -188
- package/es/anchor/style/index.js +0 -4
- package/es/anchor/style/index.js.map +0 -1
- package/es/anchor/style/index.less +0 -82
- package/es/auto-complete/style/index.js +0 -5
- package/es/auto-complete/style/index.js.map +0 -1
- package/es/auto-complete/style/index.less +0 -92
- package/es/avatar/style/index.js +0 -2
- package/es/avatar/style/index.js.map +0 -1
- package/es/avatar/style/index.less +0 -59
- package/es/back-top/style/index.js +0 -2
- package/es/back-top/style/index.js.map +0 -1
- package/es/back-top/style/index.less +0 -42
- package/es/back-top/style/responsive.less +0 -11
- package/es/badge/style/index.js +0 -2
- package/es/badge/style/index.js.map +0 -1
- package/es/badge/style/index.less +0 -190
- package/es/breadcrumb/style/index.js +0 -4
- package/es/breadcrumb/style/index.js.map +0 -1
- package/es/breadcrumb/style/index.less +0 -51
- package/es/button/style/index.js +0 -2
- package/es/button/style/index.js.map +0 -1
- package/es/button/style/index.less +0 -224
- package/es/button/style/mixin.less +0 -357
- package/es/calendar/style/index.js +0 -5
- package/es/calendar/style/index.js.map +0 -1
- package/es/calendar/style/index.less +0 -278
- package/es/card/style/index.js +0 -6
- package/es/card/style/index.js.map +0 -1
- package/es/card/style/index.less +0 -263
- package/es/card/style/size.less +0 -25
- package/es/carousel/style/index.js +0 -2
- package/es/carousel/style/index.js.map +0 -1
- package/es/carousel/style/index.less +0 -238
- package/es/cascader/style/index.js +0 -5
- package/es/cascader/style/index.js.map +0 -1
- package/es/cascader/style/index.less +0 -227
- package/es/checkbox/style/index.js +0 -2
- package/es/checkbox/style/index.js.map +0 -1
- package/es/checkbox/style/index.less +0 -4
- package/es/checkbox/style/mixin.less +0 -220
- package/es/col/style/index.js +0 -4
- package/es/col/style/index.js.map +0 -1
- package/es/collapse/style/index.js +0 -2
- package/es/collapse/style/index.js.map +0 -1
- package/es/collapse/style/index.less +0 -134
- package/es/comment/style/index.js +0 -2
- package/es/comment/style/index.js.map +0 -1
- package/es/comment/style/index.less +0 -93
- package/es/config-provider/style/index.js +0 -1
- package/es/config-provider/style/index.js.map +0 -1
- package/es/config-provider/style/index.less +0 -2
- package/es/date-picker/style/Calendar.less +0 -402
- package/es/date-picker/style/DecadePanel.less +0 -81
- package/es/date-picker/style/MonthPanel.less +0 -86
- package/es/date-picker/style/MonthPicker.less +0 -11
- package/es/date-picker/style/Picker.less +0 -113
- package/es/date-picker/style/RangePicker.less +0 -248
- package/es/date-picker/style/TimePicker.less +0 -151
- package/es/date-picker/style/WeekPicker.less +0 -21
- package/es/date-picker/style/YearPanel.less +0 -85
- package/es/date-picker/style/index.js +0 -7
- package/es/date-picker/style/index.js.map +0 -1
- package/es/date-picker/style/index.less +0 -17
- package/es/descriptions/style/index.js +0 -2
- package/es/descriptions/style/index.js.map +0 -1
- package/es/descriptions/style/index.less +0 -144
- package/es/divider/style/index.js +0 -2
- package/es/divider/style/index.js.map +0 -1
- package/es/divider/style/index.less +0 -109
- package/es/drawer/style/drawer.less +0 -230
- package/es/drawer/style/index.js +0 -3
- package/es/drawer/style/index.js.map +0 -1
- package/es/drawer/style/index.less +0 -3
- package/es/dropdown/style/index.js +0 -4
- package/es/dropdown/style/index.js.map +0 -1
- package/es/dropdown/style/index.less +0 -282
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/index.js.map +0 -1
- package/es/empty/style/index.less +0 -52
- package/es/form/style/index.js +0 -4
- package/es/form/style/index.js.map +0 -1
- package/es/form/style/index.less +0 -653
- package/es/form/style/mixin.less +0 -126
- package/es/grid-v4/RowContext.js.map +0 -1
- package/es/grid-v4/col.js.map +0 -1
- package/es/grid-v4/hooks/useBreakpoint.js.map +0 -1
- package/es/grid-v4/index.js.map +0 -1
- package/es/grid-v4/row.js.map +0 -1
- package/es/grid-v4/style/index.js +0 -2
- package/es/grid-v4/style/index.js.map +0 -1
- package/es/grid-v4/style/index.less +0 -124
- package/es/grid-v4/style/mixin.less +0 -57
- package/es/grid-v4/style/rtl.less +0 -69
- package/es/handle/handle.js +0 -138
- package/es/handle/handle.js.map +0 -1
- package/es/icon/style/index.js +0 -2
- package/es/icon/style/index.js.map +0 -1
- package/es/icon/style/index.less +0 -4
- package/es/input/style/index.js +0 -4
- package/es/input/style/index.js.map +0 -1
- package/es/input/style/index.less +0 -57
- package/es/input/style/mixin.less +0 -449
- package/es/input/style/search-input.less +0 -34
- package/es/input-number/style/index.js +0 -2
- package/es/input-number/style/index.js.map +0 -1
- package/es/input-number/style/index.less +0 -179
- package/es/layout/style/index.js +0 -2
- package/es/layout/style/index.js.map +0 -1
- package/es/layout/style/index.less +0 -124
- package/es/layout/style/light.less +0 -15
- package/es/list/style/bordered.less +0 -41
- package/es/list/style/index.js +0 -7
- package/es/list/style/index.js.map +0 -1
- package/es/list/style/index.less +0 -234
- package/es/list/style/responsive.less +0 -40
- package/es/locale-provider/style/index.js +0 -1
- package/es/locale-provider/style/index.js.map +0 -1
- package/es/locale-provider/style/index.less +0 -2
- package/es/mention/index.js +0 -4
- package/es/mention/index.js.map +0 -1
- package/es/mentions/style/index.js +0 -4
- package/es/mentions/style/index.js.map +0 -1
- package/es/mentions/style/index.less +0 -164
- package/es/menu/style/dark.less +0 -139
- package/es/menu/style/index.js +0 -5
- package/es/menu/style/index.js.map +0 -1
- package/es/menu/style/index.less +0 -515
- package/es/message/style/index.js +0 -2
- package/es/message/style/index.js.map +0 -1
- package/es/message/style/index.less +0 -75
- package/es/modal/style/confirm.less +0 -78
- package/es/modal/style/index.js +0 -4
- package/es/modal/style/index.js.map +0 -1
- package/es/modal/style/index.less +0 -4
- package/es/modal/style/modal.less +0 -165
- package/es/notification/style/index.js +0 -2
- package/es/notification/style/index.js.map +0 -1
- package/es/notification/style/index.less +0 -199
- package/es/page-header/style/index.js +0 -4
- package/es/page-header/style/index.js.map +0 -1
- package/es/page-header/style/index.less +0 -119
- package/es/pagination/style/index.js +0 -4
- package/es/pagination/style/index.js.map +0 -1
- package/es/pagination/style/index.less +0 -400
- package/es/popconfirm/style/index.js +0 -5
- package/es/popconfirm/style/index.js.map +0 -1
- package/es/popover/style/index.js +0 -4
- package/es/popover/style/index.js.map +0 -1
- package/es/popover/style/index.less +0 -205
- package/es/progress/style/index.js +0 -2
- package/es/progress/style/index.js.map +0 -1
- package/es/progress/style/index.less +0 -182
- package/es/radio/style/index.js +0 -2
- package/es/radio/style/index.js.map +0 -1
- package/es/radio/style/index.less +0 -327
- package/es/rate/style/index.js +0 -4
- package/es/rate/style/index.js.map +0 -1
- package/es/rate/style/index.less +0 -85
- package/es/result/style/index.js +0 -2
- package/es/result/style/index.js.map +0 -1
- package/es/result/style/index.less +0 -71
- package/es/row/style/index.js +0 -4
- package/es/row/style/index.js.map +0 -1
- package/es/select/style/index.js +0 -4
- package/es/select/style/index.js.map +0 -1
- package/es/select/style/index.less +0 -604
- package/es/skeleton/style/index.js +0 -2
- package/es/skeleton/style/index.js.map +0 -1
- package/es/skeleton/style/index.less +0 -130
- package/es/slider/style/index.js +0 -4
- package/es/slider/style/index.js.map +0 -1
- package/es/slider/style/index.less +0 -197
- package/es/spin/style/index.js +0 -2
- package/es/spin/style/index.js.map +0 -1
- package/es/spin/style/index.less +0 -214
- package/es/statistic/style/index.js +0 -2
- package/es/statistic/style/index.js.map +0 -1
- package/es/statistic/style/index.less +0 -40
- package/es/steps/style/compatibility.less +0 -50
- package/es/steps/style/custom-icon.less +0 -31
- package/es/steps/style/index.js +0 -2
- package/es/steps/style/index.js.map +0 -1
- package/es/steps/style/label-placement.less +0 -38
- package/es/steps/style/progress-dot.less +0 -80
- package/es/steps/style/vertical.less +0 -74
- package/es/style/color/bezierEasing.less +0 -110
- package/es/style/color/colorPalette.less +0 -75
- package/es/style/color/colors.less +0 -149
- package/es/style/color/tinyColor.less +0 -1184
- package/es/style/core/base.less +0 -510
- package/es/style/core/iconfont.less +0 -19
- package/es/style/core/index.less +0 -4
- package/es/style/core/motion/fade.less +0 -31
- package/es/style/core/motion/move.less +0 -120
- package/es/style/core/motion/other.less +0 -40
- package/es/style/core/motion/slide.less +0 -120
- package/es/style/core/motion/swing.less +0 -34
- package/es/style/core/motion/zoom.less +0 -162
- package/es/style/core/motion.less +0 -20
- package/es/style/index.js +0 -1
- package/es/style/index.js.map +0 -1
- package/es/style/index.less +0 -2
- package/es/style/mixins/clearfix.less +0 -13
- package/es/style/mixins/compatibility.less +0 -22
- package/es/style/mixins/iconfont.less +0 -43
- package/es/style/mixins/index.less +0 -10
- package/es/style/mixins/motion.less +0 -35
- package/es/style/mixins/operation-unit.less +0 -18
- package/es/style/mixins/reset.less +0 -13
- package/es/style/mixins/size.less +0 -10
- package/es/style/mixins/typography.less +0 -49
- package/es/style/themes/default.less +0 -699
- package/es/style/themes/index.less +0 -1
- package/es/style/v2-compatible-reset.js +0 -1
- package/es/style/v2-compatible-reset.js.map +0 -1
- package/es/style/v2-compatible-reset.less +0 -51
- package/es/switch/style/index.js +0 -2
- package/es/switch/style/index.js.map +0 -1
- package/es/switch/style/index.less +0 -178
- package/es/table/style/index.js +0 -10
- package/es/table/style/index.js.map +0 -1
- package/es/table/style/index.less +0 -800
- package/es/table/style/size.less +0 -179
- package/es/tabs/style/card-style.less +0 -186
- package/es/tabs/style/index.js +0 -2
- package/es/tabs/style/index.js.map +0 -1
- package/es/tabs/style/index.less +0 -436
- package/es/tag/style/index.js +0 -2
- package/es/tag/style/index.js.map +0 -1
- package/es/tag/style/index.less +0 -106
- package/es/time-picker/style/index.js +0 -2
- package/es/time-picker/style/index.js.map +0 -1
- package/es/time-picker/style/index.less +0 -246
- package/es/timeline/style/index.js +0 -2
- package/es/timeline/style/index.js.map +0 -1
- package/es/timeline/style/index.less +0 -167
- package/es/tntd-form/TntdForm/components/Item.js +0 -55
- package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
- package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
- package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
- package/es/tntd-form/TntdForm/components/List.js +0 -102
- package/es/tntd-form/TntdForm/components/List.js.map +0 -1
- package/es/tntd-form/TntdForm/index.js +0 -55
- package/es/tntd-form/TntdForm/index.js.map +0 -1
- package/es/tntd-form/TntdForm/interface.js +0 -1
- package/es/tntd-form/TntdForm/interface.js.map +0 -1
- package/es/tntd-form/TntdForm/store.js +0 -2
- package/es/tntd-form/TntdForm/store.js.map +0 -1
- package/es/tntd-form/TntdForm/utils.js +0 -219
- package/es/tntd-form/TntdForm/utils.js.map +0 -1
- package/es/tntd-select/_util/DisabledContext.js +0 -12
- package/es/tntd-select/_util/DisabledContext.js.map +0 -1
- package/es/tntd-select/_util/FormItemInputContext.js +0 -2
- package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/es/tntd-select/_util/PurePanel.js +0 -66
- package/es/tntd-select/_util/PurePanel.js.map +0 -1
- package/es/tntd-select/_util/SizeContext.js +0 -2
- package/es/tntd-select/_util/SizeContext.js.map +0 -1
- package/es/tntd-select/_util/context.js.map +0 -1
- package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/es/tntd-select/_util/getIcons.js +0 -74
- package/es/tntd-select/_util/getIcons.js.map +0 -1
- package/es/tntd-select/_util/interface.js +0 -4
- package/es/tntd-select/_util/interface.js.map +0 -1
- package/es/tntd-select/_util/motion.js +0 -47
- package/es/tntd-select/_util/motion.js.map +0 -1
- package/es/tntd-select/_util/type.js +0 -3
- package/es/tntd-select/_util/type.js.map +0 -1
- package/es/tntd-select/_util/useCompactItemContext.js +0 -26
- package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/es/tntd-select/_util/warning.js +0 -14
- package/es/tntd-select/_util/warning.js.map +0 -1
- package/es/tntd-select/rc-select/BaseSelect.js +0 -524
- package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/es/tntd-select/rc-select/OptGroup.js +0 -4
- package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/es/tntd-select/rc-select/Option.js +0 -4
- package/es/tntd-select/rc-select/Option.js.map +0 -1
- package/es/tntd-select/rc-select/OptionList.js +0 -346
- package/es/tntd-select/rc-select/OptionList.js.map +0 -1
- package/es/tntd-select/rc-select/Select.js +0 -440
- package/es/tntd-select/rc-select/Select.js.map +0 -1
- package/es/tntd-select/rc-select/SelectContext.js +0 -3
- package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/es/tntd-select/rc-select/SelectTrigger.js +0 -130
- package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/Input.js +0 -103
- package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -171
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -98
- package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/index.js +0 -158
- package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/es/tntd-select/rc-select/TransBtn.js +0 -36
- package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -24
- package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -9
- package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useCache.js +0 -38
- package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -23
- package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useId.js +0 -26
- package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -16
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLock.js +0 -25
- package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useOptions.js +0 -43
- package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -13
- package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -28
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/es/tntd-select/rc-select/index.js +0 -7
- package/es/tntd-select/rc-select/index.js.map +0 -1
- package/es/tntd-select/rc-select/interface.js +0 -1
- package/es/tntd-select/rc-select/interface.js.map +0 -1
- package/es/tntd-select/rc-select/utils/commonUtil.js +0 -30
- package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/keyUtil.js +0 -9
- package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -55
- package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/platformUtil.js +0 -4
- package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/valueUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
- package/es/tooltip/style/index.js +0 -2
- package/es/tooltip/style/index.js.map +0 -1
- package/es/tooltip/style/index.less +0 -187
- package/es/transfer/style/customize.less +0 -62
- package/es/transfer/style/index.js +0 -7
- package/es/transfer/style/index.js.map +0 -1
- package/es/transfer/style/index.less +0 -191
- package/es/tree/style/directory.less +0 -95
- package/es/tree/style/index.js +0 -2
- package/es/tree/style/index.js.map +0 -1
- package/es/tree/style/index.less +0 -280
- package/es/tree/style/mixin.less +0 -29
- package/es/tree-select/style/index.js +0 -6
- package/es/tree-select/style/index.js.map +0 -1
- package/es/tree-select/style/index.less +0 -191
- package/es/typography/style/index.js +0 -5
- package/es/typography/style/index.js.map +0 -1
- package/es/typography/style/index.less +0 -204
- package/es/upload/style/index.js +0 -5
- package/es/upload/style/index.js.map +0 -1
- package/es/upload/style/index.less +0 -542
- package/es/version/style/index.js +0 -2
- package/es/version/style/index.js.map +0 -1
- package/lib/affix/style/index.d.ts.map +0 -1
- package/lib/affix/style/index.js.map +0 -1
- package/lib/affix/style/index.less +0 -6
- package/lib/alert/style/index.d.ts +0 -3
- package/lib/alert/style/index.d.ts.map +0 -1
- package/lib/alert/style/index.js +0 -4
- package/lib/alert/style/index.js.map +0 -1
- package/lib/alert/style/index.less +0 -188
- package/lib/anchor/style/index.d.ts +0 -4
- package/lib/anchor/style/index.d.ts.map +0 -1
- package/lib/anchor/style/index.js +0 -5
- package/lib/anchor/style/index.js.map +0 -1
- package/lib/anchor/style/index.less +0 -82
- package/lib/auto-complete/style/index.d.ts +0 -5
- package/lib/auto-complete/style/index.d.ts.map +0 -1
- package/lib/auto-complete/style/index.js +0 -6
- package/lib/auto-complete/style/index.js.map +0 -1
- package/lib/auto-complete/style/index.less +0 -92
- package/lib/avatar/style/index.d.ts +0 -3
- package/lib/avatar/style/index.d.ts.map +0 -1
- package/lib/avatar/style/index.js +0 -4
- package/lib/avatar/style/index.js.map +0 -1
- package/lib/avatar/style/index.less +0 -59
- package/lib/back-top/style/index.d.ts +0 -3
- package/lib/back-top/style/index.d.ts.map +0 -1
- package/lib/back-top/style/index.js +0 -4
- package/lib/back-top/style/index.js.map +0 -1
- package/lib/back-top/style/index.less +0 -42
- package/lib/back-top/style/responsive.less +0 -11
- package/lib/badge/style/index.d.ts +0 -3
- package/lib/badge/style/index.d.ts.map +0 -1
- package/lib/badge/style/index.js +0 -4
- package/lib/badge/style/index.js.map +0 -1
- package/lib/badge/style/index.less +0 -190
- package/lib/breadcrumb/style/index.d.ts +0 -5
- package/lib/breadcrumb/style/index.d.ts.map +0 -1
- package/lib/breadcrumb/style/index.js +0 -6
- package/lib/breadcrumb/style/index.js.map +0 -1
- package/lib/breadcrumb/style/index.less +0 -51
- package/lib/button/style/index.d.ts +0 -3
- package/lib/button/style/index.d.ts.map +0 -1
- package/lib/button/style/index.js +0 -4
- package/lib/button/style/index.js.map +0 -1
- package/lib/button/style/index.less +0 -224
- package/lib/button/style/mixin.less +0 -357
- package/lib/calendar/style/index.d.ts +0 -5
- package/lib/calendar/style/index.d.ts.map +0 -1
- package/lib/calendar/style/index.js +0 -6
- package/lib/calendar/style/index.js.map +0 -1
- package/lib/calendar/style/index.less +0 -278
- package/lib/card/style/index.d.ts +0 -6
- package/lib/card/style/index.d.ts.map +0 -1
- package/lib/card/style/index.js +0 -7
- package/lib/card/style/index.js.map +0 -1
- package/lib/card/style/index.less +0 -263
- package/lib/card/style/size.less +0 -25
- package/lib/carousel/style/index.d.ts +0 -3
- package/lib/carousel/style/index.d.ts.map +0 -1
- package/lib/carousel/style/index.js +0 -4
- package/lib/carousel/style/index.js.map +0 -1
- package/lib/carousel/style/index.less +0 -238
- package/lib/cascader/style/index.d.ts +0 -5
- package/lib/cascader/style/index.d.ts.map +0 -1
- package/lib/cascader/style/index.js +0 -6
- package/lib/cascader/style/index.js.map +0 -1
- package/lib/cascader/style/index.less +0 -227
- package/lib/checkbox/style/index.d.ts +0 -3
- package/lib/checkbox/style/index.d.ts.map +0 -1
- package/lib/checkbox/style/index.js +0 -4
- package/lib/checkbox/style/index.js.map +0 -1
- package/lib/checkbox/style/index.less +0 -4
- package/lib/checkbox/style/mixin.less +0 -220
- package/lib/col/style/index.d.ts +0 -3
- package/lib/col/style/index.d.ts.map +0 -1
- package/lib/col/style/index.js +0 -4
- package/lib/col/style/index.js.map +0 -1
- package/lib/collapse/style/index.d.ts +0 -3
- package/lib/collapse/style/index.d.ts.map +0 -1
- package/lib/collapse/style/index.js +0 -4
- package/lib/collapse/style/index.js.map +0 -1
- package/lib/collapse/style/index.less +0 -134
- package/lib/comment/style/index.d.ts +0 -3
- package/lib/comment/style/index.d.ts.map +0 -1
- package/lib/comment/style/index.js +0 -4
- package/lib/comment/style/index.js.map +0 -1
- package/lib/comment/style/index.less +0 -93
- package/lib/config-provider/style/index.d.ts +0 -2
- package/lib/config-provider/style/index.d.ts.map +0 -1
- package/lib/config-provider/style/index.js +0 -3
- package/lib/config-provider/style/index.js.map +0 -1
- package/lib/config-provider/style/index.less +0 -2
- package/lib/date-picker/style/Calendar.less +0 -402
- package/lib/date-picker/style/DecadePanel.less +0 -81
- package/lib/date-picker/style/MonthPanel.less +0 -86
- package/lib/date-picker/style/MonthPicker.less +0 -11
- package/lib/date-picker/style/Picker.less +0 -113
- package/lib/date-picker/style/RangePicker.less +0 -248
- package/lib/date-picker/style/TimePicker.less +0 -151
- package/lib/date-picker/style/WeekPicker.less +0 -21
- package/lib/date-picker/style/YearPanel.less +0 -85
- package/lib/date-picker/style/index.d.ts +0 -6
- package/lib/date-picker/style/index.d.ts.map +0 -1
- package/lib/date-picker/style/index.js +0 -7
- package/lib/date-picker/style/index.js.map +0 -1
- package/lib/date-picker/style/index.less +0 -17
- package/lib/descriptions/style/index.d.ts +0 -3
- package/lib/descriptions/style/index.d.ts.map +0 -1
- package/lib/descriptions/style/index.js +0 -4
- package/lib/descriptions/style/index.js.map +0 -1
- package/lib/descriptions/style/index.less +0 -144
- package/lib/divider/style/index.d.ts +0 -3
- package/lib/divider/style/index.d.ts.map +0 -1
- package/lib/divider/style/index.js +0 -4
- package/lib/divider/style/index.js.map +0 -1
- package/lib/divider/style/index.less +0 -109
- package/lib/drawer/style/drawer.less +0 -230
- package/lib/drawer/style/index.d.ts +0 -3
- package/lib/drawer/style/index.d.ts.map +0 -1
- package/lib/drawer/style/index.js +0 -4
- package/lib/drawer/style/index.js.map +0 -1
- package/lib/drawer/style/index.less +0 -3
- package/lib/dropdown/style/index.d.ts +0 -4
- package/lib/dropdown/style/index.d.ts.map +0 -1
- package/lib/dropdown/style/index.js +0 -5
- package/lib/dropdown/style/index.js.map +0 -1
- package/lib/dropdown/style/index.less +0 -282
- package/lib/empty/style/index.d.ts +0 -3
- package/lib/empty/style/index.d.ts.map +0 -1
- package/lib/empty/style/index.js +0 -4
- package/lib/empty/style/index.js.map +0 -1
- package/lib/empty/style/index.less +0 -52
- package/lib/form/style/index.d.ts +0 -4
- package/lib/form/style/index.d.ts.map +0 -1
- package/lib/form/style/index.js +0 -5
- package/lib/form/style/index.js.map +0 -1
- package/lib/form/style/index.less +0 -653
- package/lib/form/style/mixin.less +0 -126
- package/lib/grid-v4/RowContext.d.ts.map +0 -1
- package/lib/grid-v4/RowContext.js.map +0 -1
- package/lib/grid-v4/col.d.ts.map +0 -1
- package/lib/grid-v4/col.js.map +0 -1
- package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/grid-v4/hooks/useBreakpoint.js.map +0 -1
- package/lib/grid-v4/index.d.ts.map +0 -1
- package/lib/grid-v4/index.js.map +0 -1
- package/lib/grid-v4/row.d.ts.map +0 -1
- package/lib/grid-v4/row.js.map +0 -1
- package/lib/grid-v4/style/index.d.ts +0 -2
- package/lib/grid-v4/style/index.d.ts.map +0 -1
- package/lib/grid-v4/style/index.js +0 -3
- package/lib/grid-v4/style/index.js.map +0 -1
- package/lib/grid-v4/style/index.less +0 -124
- package/lib/grid-v4/style/mixin.less +0 -57
- package/lib/grid-v4/style/rtl.less +0 -69
- package/lib/handle/handle.d.ts +0 -3
- package/lib/handle/handle.d.ts.map +0 -1
- package/lib/handle/handle.js +0 -181
- package/lib/handle/handle.js.map +0 -1
- package/lib/icon/style/index.d.ts +0 -3
- package/lib/icon/style/index.d.ts.map +0 -1
- package/lib/icon/style/index.js +0 -4
- package/lib/icon/style/index.js.map +0 -1
- package/lib/icon/style/index.less +0 -4
- package/lib/input/style/index.d.ts +0 -4
- package/lib/input/style/index.d.ts.map +0 -1
- package/lib/input/style/index.js +0 -5
- package/lib/input/style/index.js.map +0 -1
- package/lib/input/style/index.less +0 -57
- package/lib/input/style/mixin.less +0 -449
- package/lib/input/style/search-input.less +0 -34
- package/lib/input-number/style/index.d.ts +0 -3
- package/lib/input-number/style/index.d.ts.map +0 -1
- package/lib/input-number/style/index.js +0 -4
- package/lib/input-number/style/index.js.map +0 -1
- package/lib/input-number/style/index.less +0 -179
- package/lib/layout/style/index.d.ts +0 -3
- package/lib/layout/style/index.d.ts.map +0 -1
- package/lib/layout/style/index.js +0 -4
- package/lib/layout/style/index.js.map +0 -1
- package/lib/layout/style/index.less +0 -124
- package/lib/layout/style/light.less +0 -15
- package/lib/list/style/bordered.less +0 -41
- package/lib/list/style/index.d.ts +0 -7
- package/lib/list/style/index.d.ts.map +0 -1
- package/lib/list/style/index.js +0 -8
- package/lib/list/style/index.js.map +0 -1
- package/lib/list/style/index.less +0 -234
- package/lib/list/style/responsive.less +0 -40
- package/lib/locale-provider/style/index.d.ts +0 -2
- package/lib/locale-provider/style/index.d.ts.map +0 -1
- package/lib/locale-provider/style/index.js +0 -3
- package/lib/locale-provider/style/index.js.map +0 -1
- package/lib/locale-provider/style/index.less +0 -2
- package/lib/mention/index.js +0 -25
- package/lib/mentions/style/index.d.ts +0 -4
- package/lib/mentions/style/index.d.ts.map +0 -1
- package/lib/mentions/style/index.js +0 -5
- package/lib/mentions/style/index.js.map +0 -1
- package/lib/mentions/style/index.less +0 -164
- package/lib/menu/style/dark.less +0 -139
- package/lib/menu/style/index.d.ts +0 -4
- package/lib/menu/style/index.d.ts.map +0 -1
- package/lib/menu/style/index.js +0 -5
- package/lib/menu/style/index.js.map +0 -1
- package/lib/menu/style/index.less +0 -515
- package/lib/message/style/index.d.ts +0 -3
- package/lib/message/style/index.d.ts.map +0 -1
- package/lib/message/style/index.js +0 -4
- package/lib/message/style/index.js.map +0 -1
- package/lib/message/style/index.less +0 -75
- package/lib/modal/style/confirm.less +0 -78
- package/lib/modal/style/index.d.ts +0 -4
- package/lib/modal/style/index.d.ts.map +0 -1
- package/lib/modal/style/index.js +0 -5
- package/lib/modal/style/index.js.map +0 -1
- package/lib/modal/style/index.less +0 -4
- package/lib/modal/style/modal.less +0 -165
- package/lib/notification/style/index.d.ts +0 -3
- package/lib/notification/style/index.d.ts.map +0 -1
- package/lib/notification/style/index.js +0 -4
- package/lib/notification/style/index.js.map +0 -1
- package/lib/notification/style/index.less +0 -199
- package/lib/page-header/style/index.d.ts +0 -4
- package/lib/page-header/style/index.d.ts.map +0 -1
- package/lib/page-header/style/index.js +0 -5
- package/lib/page-header/style/index.js.map +0 -1
- package/lib/page-header/style/index.less +0 -119
- package/lib/pagination/style/index.d.ts +0 -4
- package/lib/pagination/style/index.d.ts.map +0 -1
- package/lib/pagination/style/index.js +0 -5
- package/lib/pagination/style/index.js.map +0 -1
- package/lib/pagination/style/index.less +0 -400
- package/lib/popconfirm/style/index.d.ts +0 -4
- package/lib/popconfirm/style/index.d.ts.map +0 -1
- package/lib/popconfirm/style/index.js +0 -5
- package/lib/popconfirm/style/index.js.map +0 -1
- package/lib/popover/style/index.d.ts +0 -3
- package/lib/popover/style/index.d.ts.map +0 -1
- package/lib/popover/style/index.js +0 -4
- package/lib/popover/style/index.js.map +0 -1
- package/lib/popover/style/index.less +0 -205
- package/lib/progress/style/index.d.ts +0 -3
- package/lib/progress/style/index.d.ts.map +0 -1
- package/lib/progress/style/index.js +0 -4
- package/lib/progress/style/index.js.map +0 -1
- package/lib/progress/style/index.less +0 -182
- package/lib/radio/style/index.d.ts +0 -3
- package/lib/radio/style/index.d.ts.map +0 -1
- package/lib/radio/style/index.js +0 -4
- package/lib/radio/style/index.js.map +0 -1
- package/lib/radio/style/index.less +0 -327
- package/lib/rate/style/index.d.ts +0 -4
- package/lib/rate/style/index.d.ts.map +0 -1
- package/lib/rate/style/index.js +0 -5
- package/lib/rate/style/index.js.map +0 -1
- package/lib/rate/style/index.less +0 -85
- package/lib/result/style/index.d.ts +0 -3
- package/lib/result/style/index.d.ts.map +0 -1
- package/lib/result/style/index.js +0 -4
- package/lib/result/style/index.js.map +0 -1
- package/lib/result/style/index.less +0 -71
- package/lib/row/style/index.d.ts +0 -3
- package/lib/row/style/index.d.ts.map +0 -1
- package/lib/row/style/index.js +0 -4
- package/lib/row/style/index.js.map +0 -1
- package/lib/select/style/index.d.ts +0 -4
- package/lib/select/style/index.d.ts.map +0 -1
- package/lib/select/style/index.js +0 -5
- package/lib/select/style/index.js.map +0 -1
- package/lib/select/style/index.less +0 -604
- package/lib/skeleton/style/index.d.ts +0 -3
- package/lib/skeleton/style/index.d.ts.map +0 -1
- package/lib/skeleton/style/index.js +0 -4
- package/lib/skeleton/style/index.js.map +0 -1
- package/lib/skeleton/style/index.less +0 -130
- package/lib/slider/style/index.d.ts +0 -4
- package/lib/slider/style/index.d.ts.map +0 -1
- package/lib/slider/style/index.js +0 -5
- package/lib/slider/style/index.js.map +0 -1
- package/lib/slider/style/index.less +0 -197
- package/lib/spin/style/index.d.ts +0 -3
- package/lib/spin/style/index.d.ts.map +0 -1
- package/lib/spin/style/index.js +0 -4
- package/lib/spin/style/index.js.map +0 -1
- package/lib/spin/style/index.less +0 -214
- package/lib/statistic/style/index.d.ts +0 -3
- package/lib/statistic/style/index.d.ts.map +0 -1
- package/lib/statistic/style/index.js +0 -4
- package/lib/statistic/style/index.js.map +0 -1
- package/lib/statistic/style/index.less +0 -40
- package/lib/steps/style/compatibility.less +0 -50
- package/lib/steps/style/custom-icon.less +0 -31
- package/lib/steps/style/index.d.ts +0 -3
- package/lib/steps/style/index.d.ts.map +0 -1
- package/lib/steps/style/index.js +0 -4
- package/lib/steps/style/index.js.map +0 -1
- package/lib/steps/style/label-placement.less +0 -38
- package/lib/steps/style/progress-dot.less +0 -80
- package/lib/steps/style/vertical.less +0 -74
- package/lib/style/color/bezierEasing.less +0 -110
- package/lib/style/color/colorPalette.less +0 -75
- package/lib/style/color/colors.less +0 -149
- package/lib/style/color/tinyColor.less +0 -1184
- package/lib/style/core/base.less +0 -510
- package/lib/style/core/iconfont.less +0 -19
- package/lib/style/core/index.less +0 -4
- package/lib/style/core/motion/fade.less +0 -31
- package/lib/style/core/motion/move.less +0 -120
- package/lib/style/core/motion/other.less +0 -40
- package/lib/style/core/motion/slide.less +0 -120
- package/lib/style/core/motion/swing.less +0 -34
- package/lib/style/core/motion/zoom.less +0 -162
- package/lib/style/core/motion.less +0 -20
- package/lib/style/index.d.ts +0 -2
- package/lib/style/index.d.ts.map +0 -1
- package/lib/style/index.js +0 -3
- package/lib/style/index.js.map +0 -1
- package/lib/style/index.less +0 -2
- package/lib/style/mixins/clearfix.less +0 -13
- package/lib/style/mixins/compatibility.less +0 -22
- package/lib/style/mixins/iconfont.less +0 -43
- package/lib/style/mixins/index.less +0 -10
- package/lib/style/mixins/motion.less +0 -35
- package/lib/style/mixins/operation-unit.less +0 -18
- package/lib/style/mixins/reset.less +0 -13
- package/lib/style/mixins/size.less +0 -10
- package/lib/style/mixins/typography.less +0 -49
- package/lib/style/themes/default.less +0 -699
- package/lib/style/themes/index.less +0 -1
- package/lib/style/v2-compatible-reset.d.ts +0 -2
- package/lib/style/v2-compatible-reset.d.ts.map +0 -1
- package/lib/style/v2-compatible-reset.js +0 -3
- package/lib/style/v2-compatible-reset.js.map +0 -1
- package/lib/style/v2-compatible-reset.less +0 -51
- package/lib/switch/style/index.d.ts +0 -3
- package/lib/switch/style/index.d.ts.map +0 -1
- package/lib/switch/style/index.js +0 -4
- package/lib/switch/style/index.js.map +0 -1
- package/lib/switch/style/index.less +0 -178
- package/lib/table/style/index.d.ts +0 -9
- package/lib/table/style/index.d.ts.map +0 -1
- package/lib/table/style/index.js +0 -10
- package/lib/table/style/index.js.map +0 -1
- package/lib/table/style/index.less +0 -800
- package/lib/table/style/size.less +0 -179
- package/lib/tabs/style/card-style.less +0 -186
- package/lib/tabs/style/index.d.ts +0 -3
- package/lib/tabs/style/index.d.ts.map +0 -1
- package/lib/tabs/style/index.js +0 -4
- package/lib/tabs/style/index.js.map +0 -1
- package/lib/tabs/style/index.less +0 -436
- package/lib/tag/style/index.d.ts +0 -3
- package/lib/tag/style/index.d.ts.map +0 -1
- package/lib/tag/style/index.js +0 -4
- package/lib/tag/style/index.js.map +0 -1
- package/lib/tag/style/index.less +0 -106
- package/lib/time-picker/style/index.d.ts +0 -3
- package/lib/time-picker/style/index.d.ts.map +0 -1
- package/lib/time-picker/style/index.js +0 -4
- package/lib/time-picker/style/index.js.map +0 -1
- package/lib/time-picker/style/index.less +0 -246
- package/lib/timeline/style/index.d.ts +0 -3
- package/lib/timeline/style/index.d.ts.map +0 -1
- package/lib/timeline/style/index.js +0 -4
- package/lib/timeline/style/index.js.map +0 -1
- package/lib/timeline/style/index.less +0 -167
- package/lib/tntd-form/TntdForm/components/Item.js +0 -65
- package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
- package/lib/tntd-form/TntdForm/components/List.js +0 -123
- package/lib/tntd-form/TntdForm/index.js +0 -72
- package/lib/tntd-form/TntdForm/interface.js +0 -5
- package/lib/tntd-form/TntdForm/store.js +0 -10
- package/lib/tntd-form/TntdForm/utils.js +0 -239
- package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
- package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/DisabledContext.js +0 -22
- package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
- package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.js +0 -12
- package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
- package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
- package/lib/tntd-select/_util/PurePanel.js +0 -90
- package/lib/tntd-select/_util/PurePanel.js.map +0 -1
- package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
- package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/SizeContext.js +0 -12
- package/lib/tntd-select/_util/SizeContext.js.map +0 -1
- package/lib/tntd-select/_util/context.d.ts.map +0 -1
- package/lib/tntd-select/_util/context.js.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/lib/tntd-select/_util/getIcons.d.ts +0 -25
- package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
- package/lib/tntd-select/_util/getIcons.js +0 -84
- package/lib/tntd-select/_util/getIcons.js.map +0 -1
- package/lib/tntd-select/_util/interface.d.ts +0 -25
- package/lib/tntd-select/_util/interface.d.ts.map +0 -1
- package/lib/tntd-select/_util/interface.js +0 -16
- package/lib/tntd-select/_util/interface.js.map +0 -1
- package/lib/tntd-select/_util/motion.d.ts +0 -9
- package/lib/tntd-select/_util/motion.d.ts.map +0 -1
- package/lib/tntd-select/_util/motion.js +0 -59
- package/lib/tntd-select/_util/motion.js.map +0 -1
- package/lib/tntd-select/_util/type.d.ts +0 -10
- package/lib/tntd-select/_util/type.d.ts.map +0 -1
- package/lib/tntd-select/_util/type.js +0 -21
- package/lib/tntd-select/_util/type.js.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
- package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.js +0 -35
- package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/lib/tntd-select/_util/warning.d.ts +0 -4
- package/lib/tntd-select/_util/warning.d.ts.map +0 -1
- package/lib/tntd-select/_util/warning.js +0 -24
- package/lib/tntd-select/_util/warning.js.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
- package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.js +0 -566
- package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
- package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.js +0 -13
- package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/lib/tntd-select/rc-select/Option.d.ts +0 -15
- package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Option.js +0 -13
- package/lib/tntd-select/rc-select/Option.js.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
- package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.js +0 -372
- package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
- package/lib/tntd-select/rc-select/Select.d.ts +0 -115
- package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Select.js +0 -509
- package/lib/tntd-select/rc-select/Select.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
- package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.js +0 -13
- package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.js +0 -149
- package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
- package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.js +0 -110
- package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -193
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -116
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
- package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.js +0 -159
- package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
- package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.js +0 -48
- package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -35
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -21
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.js +0 -49
- package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -72
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -26
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.js +0 -39
- package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -53
- package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -22
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -43
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/lib/tntd-select/rc-select/index.d.ts +0 -11
- package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/index.js +0 -38
- package/lib/tntd-select/rc-select/index.js.map +0 -1
- package/lib/tntd-select/rc-select/interface.d.ts +0 -23
- package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/interface.js +0 -5
- package/lib/tntd-select/rc-select/interface.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -43
- package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -16
- package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -60
- package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -10
- package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -132
- package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -127
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
- package/lib/tooltip/style/index.d.ts +0 -3
- package/lib/tooltip/style/index.d.ts.map +0 -1
- package/lib/tooltip/style/index.js +0 -4
- package/lib/tooltip/style/index.js.map +0 -1
- package/lib/tooltip/style/index.less +0 -187
- package/lib/transfer/style/customize.less +0 -62
- package/lib/transfer/style/index.d.ts +0 -7
- package/lib/transfer/style/index.d.ts.map +0 -1
- package/lib/transfer/style/index.js +0 -8
- package/lib/transfer/style/index.js.map +0 -1
- package/lib/transfer/style/index.less +0 -191
- package/lib/tree/style/directory.less +0 -95
- package/lib/tree/style/index.d.ts +0 -3
- package/lib/tree/style/index.d.ts.map +0 -1
- package/lib/tree/style/index.js +0 -4
- package/lib/tree/style/index.js.map +0 -1
- package/lib/tree/style/index.less +0 -280
- package/lib/tree/style/mixin.less +0 -29
- package/lib/tree-select/style/index.d.ts +0 -5
- package/lib/tree-select/style/index.d.ts.map +0 -1
- package/lib/tree-select/style/index.js +0 -6
- package/lib/tree-select/style/index.js.map +0 -1
- package/lib/tree-select/style/index.less +0 -191
- package/lib/typography/style/index.d.ts +0 -5
- package/lib/typography/style/index.d.ts.map +0 -1
- package/lib/typography/style/index.js +0 -6
- package/lib/typography/style/index.js.map +0 -1
- package/lib/typography/style/index.less +0 -204
- package/lib/upload/style/index.d.ts +0 -5
- package/lib/upload/style/index.d.ts.map +0 -1
- package/lib/upload/style/index.js +0 -6
- package/lib/upload/style/index.js.map +0 -1
- package/lib/upload/style/index.less +0 -542
- package/lib/version/style/index.d.ts +0 -2
- package/lib/version/style/index.d.ts.map +0 -1
- package/lib/version/style/index.js +0 -3
- package/lib/version/style/index.js.map +0 -1
- /package/es/{tntd-select → tntd-form}/_util/context.js +0 -0
- /package/es/{tntd-select → tntd-form}/_util/defaultRenderEmpty.js +0 -0
- /package/es/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
- /package/es/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
- /package/es/{grid-v4 → tntd-form/grid}/index.js +0 -0
- /package/es/{affix → tntd-form/grid}/style/index.js +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/context.d.ts +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/context.js +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.d.ts +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/RowContext.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/col.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/col.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/index.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/index.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/row.d.ts +0 -0
- /package/lib/{affix → tntd-form/grid}/style/index.d.ts +0 -0
- /package/lib/{affix → tntd-form/grid}/style/index.js +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare type DisabledType = true | false | undefined;
|
|
3
|
-
declare const DisabledContext: React.Context<DisabledType>;
|
|
4
|
-
export interface DisabledContextProps {
|
|
5
|
-
disabled?: DisabledType;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const DisabledContextProvider: React.FC<DisabledContextProps>;
|
|
9
|
-
export default DisabledContext;
|
|
10
|
-
//# sourceMappingURL=DisabledContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisabledContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/DisabledContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,oBAAY,YAAY,GAAG,IAAI,GAAG,KAAK,GAAG,SAAS,CAAA;AAEnD,QAAA,MAAM,eAAe,6BAA2C,CAAA;AAEhE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAOlE,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.DisabledContextProvider = void 0;
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
-
var DisabledContext = React.createContext(false);
|
|
12
|
-
var DisabledContextProvider = function DisabledContextProvider(_ref) {
|
|
13
|
-
var children = _ref.children,
|
|
14
|
-
disabled = _ref.disabled;
|
|
15
|
-
var originDisabled = React.useContext(DisabledContext);
|
|
16
|
-
return React.createElement(DisabledContext.Provider, {
|
|
17
|
-
value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
|
|
18
|
-
}, children);
|
|
19
|
-
};
|
|
20
|
-
exports.DisabledContextProvider = DisabledContextProvider;
|
|
21
|
-
var _default = DisabledContext;
|
|
22
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisabledContext.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/DisabledContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAI9B,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,CAAe,KAAK,CAAC,CAAA;AAOzD,MAAM,uBAAuB,GAAmC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChG,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;IACxD,OAAO,CACL,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,cAAc,IACxD,QAAQ,CACgB,CAC5B,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,uBAAuB,2BAOnC;AAED,kBAAe,eAAe,CAAA","sourcesContent":["import * as React from 'react'\n\nexport type DisabledType = true | false | undefined\n\nconst DisabledContext = React.createContext<DisabledType>(false)\n\nexport interface DisabledContextProps {\n disabled?: DisabledType\n children?: React.ReactNode\n}\n\nexport const DisabledContextProvider: React.FC<DisabledContextProps> = ({ children, disabled }) => {\n const originDisabled = React.useContext(DisabledContext)\n return (\n <DisabledContext.Provider value={disabled ?? originDisabled}>\n {children}\n </DisabledContext.Provider>\n )\n}\n\nexport default DisabledContext\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormItemInputContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/FormItemInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAE7D,eAAO,MAAM,oBAAoB,2CAAsD,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FormItemInputContext = void 0;
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
-
var FormItemInputContext = React.createContext({});
|
|
12
|
-
exports.FormItemInputContext = FormItemInputContext;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormItemInputContext.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/FormItemInputContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAGjB,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAA6B,EAAE,CAAC,CAAA","sourcesContent":["import * as React from 'react'\nimport type { FormItemStatusContextProps } from './interface'\n\nexport const FormItemInputContext = React.createContext<FormItemStatusContextProps>({})\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface BaseProps {
|
|
3
|
-
prefixCls?: string;
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
}
|
|
6
|
-
export default function genPurePanel<ComponentProps extends BaseProps>(Component: any, defaultPrefixCls?: string, getDropdownCls?: null | ((prefixCls: string) => string), postProps?: (props: ComponentProps) => ComponentProps): (props: Omit<ComponentProps, "open" | "visible"> & {
|
|
7
|
-
open?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
//# sourceMappingURL=PurePanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PurePanel.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/PurePanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAGD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,cAAc,SAAS,SAAS,EACnE,SAAS,EAAE,GAAG,EACd,gBAAgB,CAAC,EAAE,MAAM,EACzB,cAAc,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC,EACvD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,cAAc;;kBA6EtD"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = genPurePanel;
|
|
8
|
-
var _useMergedState3 = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _context = require("./context");
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
18
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
19
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
-
/* istanbul ignore next */
|
|
21
|
-
function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) {
|
|
22
|
-
function PurePanel(props) {
|
|
23
|
-
var customizePrefixCls = props.prefixCls,
|
|
24
|
-
style = props.style;
|
|
25
|
-
var holderRef = React.useRef(null);
|
|
26
|
-
var _React$useState = React.useState(0),
|
|
27
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
28
|
-
popupHeight = _React$useState2[0],
|
|
29
|
-
setPopupHeight = _React$useState2[1];
|
|
30
|
-
var _React$useState3 = React.useState(0),
|
|
31
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
32
|
-
popupWidth = _React$useState4[0],
|
|
33
|
-
setPopupWidth = _React$useState4[1];
|
|
34
|
-
var _useMergedState = (0, _useMergedState3["default"])(false, {
|
|
35
|
-
value: props.open
|
|
36
|
-
}),
|
|
37
|
-
_useMergedState2 = _slicedToArray(_useMergedState, 2),
|
|
38
|
-
open = _useMergedState2[0],
|
|
39
|
-
setOpen = _useMergedState2[1];
|
|
40
|
-
var _React$useContext = React.useContext(_context.ConfigContext),
|
|
41
|
-
getPrefixCls = _React$useContext.getPrefixCls;
|
|
42
|
-
var prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);
|
|
43
|
-
React.useEffect(function () {
|
|
44
|
-
// We do not care about ssr
|
|
45
|
-
setOpen(true);
|
|
46
|
-
if (typeof ResizeObserver !== 'undefined') {
|
|
47
|
-
var resizeObserver = new ResizeObserver(function (entries) {
|
|
48
|
-
var element = entries[0].target;
|
|
49
|
-
setPopupHeight(element.offsetHeight + 8);
|
|
50
|
-
setPopupWidth(element.offsetWidth);
|
|
51
|
-
});
|
|
52
|
-
var interval = setInterval(function () {
|
|
53
|
-
var _a;
|
|
54
|
-
var dropdownCls = getDropdownCls ? ".".concat(getDropdownCls(prefixCls)) : ".".concat(prefixCls, "-dropdown");
|
|
55
|
-
var popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls);
|
|
56
|
-
if (popup) {
|
|
57
|
-
clearInterval(interval);
|
|
58
|
-
resizeObserver.observe(popup);
|
|
59
|
-
}
|
|
60
|
-
}, 10);
|
|
61
|
-
return function () {
|
|
62
|
-
clearInterval(interval);
|
|
63
|
-
resizeObserver.disconnect();
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}, []);
|
|
67
|
-
var mergedProps = Object.assign(Object.assign({}, props), {
|
|
68
|
-
style: Object.assign(Object.assign({}, style), {
|
|
69
|
-
margin: 0
|
|
70
|
-
}),
|
|
71
|
-
open: open,
|
|
72
|
-
visible: open,
|
|
73
|
-
getPopupContainer: function getPopupContainer() {
|
|
74
|
-
return holderRef.current;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
if (postProps) {
|
|
78
|
-
mergedProps = postProps(mergedProps);
|
|
79
|
-
}
|
|
80
|
-
return React.createElement("div", {
|
|
81
|
-
ref: holderRef,
|
|
82
|
-
style: {
|
|
83
|
-
paddingBottom: popupHeight,
|
|
84
|
-
position: 'relative',
|
|
85
|
-
minWidth: popupWidth
|
|
86
|
-
}
|
|
87
|
-
}, React.createElement(Component, Object.assign({}, mergedProps)));
|
|
88
|
-
}
|
|
89
|
-
return PurePanel;
|
|
90
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PurePanel.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/PurePanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAA8D;AAC9D,6CAA+B;AAC/B,uCAAyC;AAOzC,0BAA0B;AAC1B,SAAwB,YAAY,CAClC,SAAc,EACd,gBAAyB,EACzB,cAAuD,EACvD,SAAqD;IAIrD,SAAS,SAAS,CAAC,KAAgB;QACjC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;QAEvD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;QACrD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK,EAAE;YAC5C,KAAK,EAAE,KAAK,CAAC,IAAI;SAClB,CAAC,CAAC;QAEH,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,YAAY,CAAC,gBAAgB,IAAI,QAAQ,EAAE,kBAAkB,CAAC,CAAC;QAEjF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,2BAA2B;YAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;YAEd,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;gBACzC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;oBACpD,MAAM,OAAO,GAAmB,OAAO,CAAC,CAAC,CAAC,CAAC,MAAa,CAAC;oBACzD,cAAc,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;oBACzC,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;gBACrC,CAAC,CAAC,CAAC;gBAEH,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;;oBAChC,MAAM,WAAW,GAAG,cAAc;wBAChC,CAAC,CAAC,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;wBACjC,CAAC,CAAC,IAAI,SAAS,WAAW,CAAC;oBAC7B,MAAM,KAAK,GAAG,MAAA,SAAS,CAAC,OAAO,0CAAE,aAAa,CAAC,WAAW,CAAC,CAAC;oBAE5D,IAAI,KAAK,EAAE;wBACT,aAAa,CAAC,QAAQ,CAAC,CAAC;wBACxB,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,EAAE,EAAE,CAAC,CAAC;gBAEP,OAAO,GAAG,EAAE;oBACV,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACxB,cAAc,CAAC,UAAU,EAAE,CAAC;gBAC9B,CAAC,CAAC;aACH;QACH,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,IAAI,WAAW,mCACV,KAAK,KACR,KAAK,kCACA,KAAK,KACR,MAAM,EAAE,CAAC,KAEX,IAAI,EACJ,OAAO,EAAE,IAAI,EACb,iBAAiB,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAQ,GAC5C,CAAC;QAEF,IAAI,SAAS,EAAE;YACb,WAAW,GAAG,SAAS,CAAC,WAA6B,CAAC,CAAC;SACxD;QAED,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,EACd,KAAK,EAAE;gBACL,aAAa,EAAE,WAAW;gBAC1B,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,UAAU;aACrB;YAED,oBAAC,SAAS,oBAAK,WAAW,EAAI,CAC1B,CACP,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAjFD,+BAiFC","sourcesContent":["import useMergedState from 'rc-util/lib/hooks/useMergedState';\nimport * as React from 'react';\nimport { ConfigContext } from './context'\n\nexport interface BaseProps {\n prefixCls?: string;\n style?: React.CSSProperties;\n}\n\n/* istanbul ignore next */\nexport default function genPurePanel<ComponentProps extends BaseProps>(\n Component: any,\n defaultPrefixCls?: string,\n getDropdownCls?: null | ((prefixCls: string) => string),\n postProps?: (props: ComponentProps) => ComponentProps,\n) {\n type WrapProps = Omit<ComponentProps, 'open' | 'visible'> & { open?: boolean };\n\n function PurePanel(props: WrapProps) {\n const { prefixCls: customizePrefixCls, style } = props;\n\n const holderRef = React.useRef<HTMLDivElement>(null);\n const [popupHeight, setPopupHeight] = React.useState(0);\n const [popupWidth, setPopupWidth] = React.useState(0);\n const [open, setOpen] = useMergedState(false, {\n value: props.open,\n });\n\n const { getPrefixCls } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);\n\n React.useEffect(() => {\n // We do not care about ssr\n setOpen(true);\n\n if (typeof ResizeObserver !== 'undefined') {\n const resizeObserver = new ResizeObserver((entries) => {\n const element: HTMLDivElement = entries[0].target as any;\n setPopupHeight(element.offsetHeight + 8);\n setPopupWidth(element.offsetWidth);\n });\n\n const interval = setInterval(() => {\n const dropdownCls = getDropdownCls\n ? `.${getDropdownCls(prefixCls)}`\n : `.${prefixCls}-dropdown`;\n const popup = holderRef.current?.querySelector(dropdownCls);\n\n if (popup) {\n clearInterval(interval);\n resizeObserver.observe(popup);\n }\n }, 10);\n\n return () => {\n clearInterval(interval);\n resizeObserver.disconnect();\n };\n }\n }, []);\n\n let mergedProps: WrapProps = {\n ...props,\n style: {\n ...style,\n margin: 0,\n },\n open,\n visible: open,\n getPopupContainer: () => holderRef.current!,\n };\n\n if (postProps) {\n mergedProps = postProps(mergedProps as ComponentProps);\n }\n\n return (\n <div\n ref={holderRef}\n style={{\n paddingBottom: popupHeight,\n position: 'relative',\n minWidth: popupWidth,\n }}\n >\n <Component {...mergedProps} />\n </div>\n );\n }\n\n return PurePanel;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SizeContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/SizeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,WAAW,yBAA2C,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.SizeContext = void 0;
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
-
var SizeContext = React.createContext(undefined);
|
|
12
|
-
exports.SizeContext = SizeContext;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SizeContext.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/SizeContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAGjB,QAAA,WAAW,GAAG,KAAK,CAAC,aAAa,CAAW,SAAS,CAAC,CAAA","sourcesContent":["import * as React from 'react'\nimport type { SizeType } from './interface'\n\nexport const SizeContext = React.createContext<SizeType>(undefined)\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAQD,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAErD,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D,oBAAY,YAAY,GAAG,OAAO,GAAG,UAAU,CAAA;AAE/C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAA;IACtC,iBAAiB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,WAAW,CAAA;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACzE,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,UAAU,CAAC,EAAE;QACX,eAAe,CAAC,EAAE,OAAO,CAAA;KAC1B,CAAA;IACD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,OAAO,CAAA;KACf,CAAA;IACD,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;KACzB,CAAA;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,CAAA;CACF;AAGD,eAAO,MAAM,aAAa,oCAGxB,CAAA;AAEF,eAAO,MAAM,cAAc,qCAAyB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/context.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAOzB,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,kBAA2B,EAAE,EAAE;IAC9E,IAAI,kBAAkB;QAAE,OAAO,kBAAkB,CAAA;IAEjD,OAAO,SAAS,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;AACvD,CAAC,CAAA;AAQY,QAAA,oBAAoB,GAAG,SAAS,CAAA;AAiC7C,4FAA4F;AAC/E,QAAA,aAAa,GAAG,eAAK,CAAC,aAAa,CAAsB;IACpE,6DAA6D;IAC7D,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAA;AAEW,QAAA,cAAc,GAAG,qBAAa,CAAC,QAAQ,CAAA","sourcesContent":["import React from 'react'\nimport type { RenderEmptyHandler } from './defaultRenderEmpty'\n\nexport interface CSPConfig {\n nonce?: string\n}\n\nconst defaultGetPrefixCls = (suffixCls?: string, customizePrefixCls?: string) => {\n if (customizePrefixCls) return customizePrefixCls\n\n return suffixCls ? `tntd-rc-${suffixCls}` : 'tntd-rc'\n}\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type RequiredMark = boolean | 'optional'\n\nexport const defaultIconPrefixCls = 'anticon'\n\nexport interface ConfigConsumerProps {\n getTargetContainer?: () => HTMLElement\n getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement\n rootPrefixCls?: string\n iconPrefixCls?: string\n getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string\n renderEmpty?: RenderEmptyHandler\n csp?: CSPConfig\n autoInsertSpaceInButton?: boolean\n input?: {\n autoComplete?: string\n }\n pagination?: {\n showSizeChanger?: boolean\n }\n locale?: object\n pageHeader?: {\n ghost: boolean\n }\n direction?: DirectionType\n space?: {\n size?: SizeType | number\n }\n virtual?: boolean\n dropdownMatchSelectWidth?: boolean\n form?: {\n requiredMark?: RequiredMark\n colon?: boolean\n }\n}\n\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.\nexport const ConfigContext = React.createContext<ConfigConsumerProps>({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n})\n\nexport const ConfigConsumer = ConfigContext.Consumer\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultRenderEmpty.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/defaultRenderEmpty.tsx"],"names":[],"mappings":";AAWA,QAAA,MAAM,kBAAkB,kBAAmB,MAAM,gBAwBhD,CAAA;AAED,oBAAY,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultRenderEmpty.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/defaultRenderEmpty.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA8B;AAC9B,uCAA0C;AAC1C,4FAAmE;AAEnE,MAAM,kBAAkB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAAC,CACpD,oBAAC,wBAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAEpC,OAAO,CACL,oBAAC,wBAAc,IAAC,aAAa,EAAC,YAAY,IACvC,CAAC,MAAM,EAAE,EAAE;QACV,OAAO,CACL,6BAAK,SAAS,EAAE,+BAA+B,MAAM,EAAE;YACrD,6BACE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,GAAG,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,GAC5C;YACF,6BAAK,SAAS,EAAC,6BAA6B,IACxC,MAAmC,CAAC,MAAM,CACxC,CACF,CACP,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACc,CAClB,CAAA;AAID,kBAAe,kBAAkB,CAAA","sourcesContent":["/*\n * @Descripttion: 空状态\n * @Author: 郑泳健\n * @Date: 2022-12-19 16:45:16\n * @LastEditors: 郑泳健\n * @LastEditTime: 2023-02-07 11:47:03\n */\nimport * as React from 'react'\nimport { ConfigConsumer } from './context'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\n\nconst defaultRenderEmpty = (componentName: string) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefix = getPrefixCls('empty')\n\n return (\n <LocaleReceiver componentName=\"TntdSelect\">\n {(locale) => {\n return (\n <div className={`tntd-select-no-data-wrapper ${prefix}`}>\n <img\n style={{ width: 80, height: 50 }}\n src={require('../img/no-data-s.png').default}\n />\n <div className=\"tntd-select-no-data-content\">\n {(locale as Record<'noData', object>).noData}\n </div>\n </div>\n )\n }}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n\nexport type RenderEmptyHandler = typeof defaultRenderEmpty\n\nexport default defaultRenderEmpty\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
|
|
4
|
-
export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showArrow, feedbackIcon, }: {
|
|
5
|
-
suffixIcon?: React.ReactNode;
|
|
6
|
-
clearIcon?: RenderNode;
|
|
7
|
-
menuItemSelectedIcon?: RenderNode;
|
|
8
|
-
removeIcon?: RenderNode;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
hasFeedback?: boolean;
|
|
12
|
-
feedbackIcon?: ReactNode;
|
|
13
|
-
prefixCls: string;
|
|
14
|
-
showArrow?: boolean;
|
|
15
|
-
}): {
|
|
16
|
-
clearIcon: {};
|
|
17
|
-
suffixIcon: JSX.Element | (({ open, showSearch }: {
|
|
18
|
-
open: boolean;
|
|
19
|
-
showSearch: boolean;
|
|
20
|
-
}) => JSX.Element);
|
|
21
|
-
itemIcon: {} | null;
|
|
22
|
-
removeIcon: {} | null;
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=getIcons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIcons.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/getIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,aAAK,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;AAErE,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,GACb,EAAE;IACD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,oBAAoB,CAAC,EAAE,UAAU,CAAA;IACjC,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;;;cAoBqD,OAAO;oBAAc,OAAO;;;;EA+BjF"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = getIcons;
|
|
8
|
-
require("antd/lib/icon/style");
|
|
9
|
-
var _icon = _interopRequireDefault(require("antd/lib/icon"));
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
function getIcons(_ref) {
|
|
15
|
-
var suffixIcon = _ref.suffixIcon,
|
|
16
|
-
clearIcon = _ref.clearIcon,
|
|
17
|
-
menuItemSelectedIcon = _ref.menuItemSelectedIcon,
|
|
18
|
-
removeIcon = _ref.removeIcon,
|
|
19
|
-
loading = _ref.loading,
|
|
20
|
-
multiple = _ref.multiple,
|
|
21
|
-
hasFeedback = _ref.hasFeedback,
|
|
22
|
-
prefixCls = _ref.prefixCls,
|
|
23
|
-
showArrow = _ref.showArrow,
|
|
24
|
-
feedbackIcon = _ref.feedbackIcon;
|
|
25
|
-
// Clear Icon
|
|
26
|
-
var mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : React.createElement(_icon["default"], {
|
|
27
|
-
type: "close-circle",
|
|
28
|
-
theme: "filled"
|
|
29
|
-
});
|
|
30
|
-
// Validation Feedback Icon
|
|
31
|
-
var getSuffixIconNode = function getSuffixIconNode(arrowIcon) {
|
|
32
|
-
return React.createElement(React.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
|
|
33
|
-
};
|
|
34
|
-
// Arrow item icon
|
|
35
|
-
var mergedSuffixIcon = null;
|
|
36
|
-
if (suffixIcon !== undefined) {
|
|
37
|
-
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
38
|
-
} else if (loading) {
|
|
39
|
-
mergedSuffixIcon = getSuffixIconNode(React.createElement(_icon["default"], {
|
|
40
|
-
type: "loading"
|
|
41
|
-
}));
|
|
42
|
-
} else {
|
|
43
|
-
var iconCls = "".concat(prefixCls, "-suffix");
|
|
44
|
-
mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
|
|
45
|
-
var open = _ref2.open,
|
|
46
|
-
showSearch = _ref2.showSearch;
|
|
47
|
-
if (open && showSearch) {
|
|
48
|
-
return getSuffixIconNode(React.createElement(_icon["default"], {
|
|
49
|
-
className: iconCls,
|
|
50
|
-
type: "search"
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
return getSuffixIconNode(React.createElement(_icon["default"], {
|
|
54
|
-
className: iconCls,
|
|
55
|
-
type: "down"
|
|
56
|
-
}));
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
// Checked item icon
|
|
60
|
-
var mergedItemIcon = null;
|
|
61
|
-
if (menuItemSelectedIcon !== undefined) {
|
|
62
|
-
mergedItemIcon = menuItemSelectedIcon;
|
|
63
|
-
} else if (multiple) {
|
|
64
|
-
mergedItemIcon = React.createElement(_icon["default"], {
|
|
65
|
-
type: "check"
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
mergedItemIcon = null;
|
|
69
|
-
}
|
|
70
|
-
var mergedRemoveIcon = null;
|
|
71
|
-
if (removeIcon !== undefined) {
|
|
72
|
-
mergedRemoveIcon = removeIcon;
|
|
73
|
-
} else {
|
|
74
|
-
mergedRemoveIcon = React.createElement(_icon["default"], {
|
|
75
|
-
type: "close"
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
clearIcon: mergedClearIcon,
|
|
80
|
-
suffixIcon: mergedSuffixIcon,
|
|
81
|
-
itemIcon: mergedItemIcon,
|
|
82
|
-
removeIcon: mergedRemoveIcon
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIcons.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/getIcons.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAA8B;AAC9B,+BAA2B;AAI3B,SAAwB,QAAQ,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,GAYb;IACC,aAAa;IACb,MAAM,eAAe,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,oBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,CAAA;IAEhF,2BAA2B;IAC3B,MAAM,iBAAiB,GAAG,CAAC,SAAqB,EAAE,EAAE,CAAC,CACnD;QACG,SAAS,KAAK,KAAK,IAAI,SAAS;QAChC,WAAW,IAAI,YAAY,CAC3B,CACJ,CAAA;IAED,kBAAkB;IAClB,IAAI,gBAAgB,GAAG,IAAI,CAAA;IAC3B,IAAI,UAAU,KAAK,SAAS,EAAE;QAC5B,gBAAgB,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAA;KACjD;SAAM,IAAI,OAAO,EAAE;QAClB,gBAAgB,GAAG,iBAAiB,CAAC,oBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,GAAG,CAAC,CAAA;KAC9D;SAAM;QACL,MAAM,OAAO,GAAG,GAAG,SAAS,SAAS,CAAA;QACrC,gBAAgB,GAAG,CAAC,EAAE,IAAI,EAAE,UAAU,EAA0C,EAAE,EAAE;YAClF,IAAI,IAAI,IAAI,UAAU,EAAE;gBACtB,OAAO,iBAAiB,CAAC,oBAAC,WAAI,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,QAAQ,GAAG,CAAC,CAAA;aACrE;YACD,OAAO,iBAAiB,CAAC,oBAAC,WAAI,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,GAAG,CAAC,CAAA;QACpE,CAAC,CAAA;KACF;IAED,oBAAoB;IACpB,IAAI,cAAc,GAAG,IAAI,CAAA;IACzB,IAAI,oBAAoB,KAAK,SAAS,EAAE;QACtC,cAAc,GAAG,oBAAoB,CAAA;KACtC;SAAM,IAAI,QAAQ,EAAE;QACnB,cAAc,GAAG,oBAAC,WAAI,IAAC,IAAI,EAAC,OAAO,GAAG,CAAA;KACvC;SAAM;QACL,cAAc,GAAG,IAAI,CAAA;KACtB;IAED,IAAI,gBAAgB,GAAG,IAAI,CAAA;IAC3B,IAAI,UAAU,KAAK,SAAS,EAAE;QAC5B,gBAAgB,GAAG,UAAU,CAAA;KAC9B;SAAM;QACL,gBAAgB,GAAG,oBAAC,WAAI,IAAC,IAAI,EAAC,OAAO,GAAG,CAAA;KACzC;IAED,OAAO;QACL,SAAS,EAAE,eAAe;QAC1B,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,gBAAgB;KAC7B,CAAA;AACH,CAAC;AAzED,2BAyEC","sourcesContent":["import type { ReactNode } from 'react'\nimport * as React from 'react'\nimport { Icon } from 'antd'\n\ntype RenderNode = React.ReactNode | ((props: any) => React.ReactNode)\n\nexport default function getIcons({\n suffixIcon,\n clearIcon,\n menuItemSelectedIcon,\n removeIcon,\n loading,\n multiple,\n hasFeedback,\n prefixCls,\n showArrow,\n feedbackIcon,\n}: {\n suffixIcon?: React.ReactNode\n clearIcon?: RenderNode\n menuItemSelectedIcon?: RenderNode\n removeIcon?: RenderNode\n loading?: boolean\n multiple?: boolean\n hasFeedback?: boolean\n feedbackIcon?: ReactNode\n prefixCls: string\n showArrow?: boolean\n}) {\n // Clear Icon\n const mergedClearIcon = clearIcon ?? <Icon type=\"close-circle\" theme=\"filled\" />\n\n // Validation Feedback Icon\n const getSuffixIconNode = (arrowIcon?: ReactNode) => (\n <>\n {showArrow !== false && arrowIcon}\n {hasFeedback && feedbackIcon}\n </>\n )\n\n // Arrow item icon\n let mergedSuffixIcon = null\n if (suffixIcon !== undefined) {\n mergedSuffixIcon = getSuffixIconNode(suffixIcon)\n } else if (loading) {\n mergedSuffixIcon = getSuffixIconNode(<Icon type=\"loading\" />)\n } else {\n const iconCls = `${prefixCls}-suffix`\n mergedSuffixIcon = ({ open, showSearch }: { open: boolean; showSearch: boolean }) => {\n if (open && showSearch) {\n return getSuffixIconNode(<Icon className={iconCls} type=\"search\" />)\n }\n return getSuffixIconNode(<Icon className={iconCls} type=\"down\" />)\n }\n }\n\n // Checked item icon\n let mergedItemIcon = null\n if (menuItemSelectedIcon !== undefined) {\n mergedItemIcon = menuItemSelectedIcon\n } else if (multiple) {\n mergedItemIcon = <Icon type=\"check\" />\n } else {\n mergedItemIcon = null\n }\n\n let mergedRemoveIcon = null\n if (removeIcon !== undefined) {\n mergedRemoveIcon = removeIcon\n } else {\n mergedRemoveIcon = <Icon type=\"close\" />\n }\n\n return {\n clearIcon: mergedClearIcon,\n suffixIcon: mergedSuffixIcon,\n itemIcon: mergedItemIcon,\n removeIcon: mergedRemoveIcon,\n }\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, JSXElementConstructor } from 'react';
|
|
2
|
-
export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
3
|
-
export declare type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
4
|
-
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
5
|
-
declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
|
6
|
-
export declare type ValidateStatus = typeof ValidateStatuses[number];
|
|
7
|
-
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
8
|
-
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
9
|
-
declare const InputStatuses: ["warning", "error", ""];
|
|
10
|
-
export declare type InputStatus = typeof InputStatuses[number];
|
|
11
|
-
export interface SpaceCompactItemContextType {
|
|
12
|
-
compactSize?: SizeType;
|
|
13
|
-
compactDirection?: 'horizontal' | 'vertical';
|
|
14
|
-
isFirstItem?: boolean;
|
|
15
|
-
isLastItem?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface FormItemStatusContextProps {
|
|
18
|
-
isFormItemInput?: boolean;
|
|
19
|
-
status?: ValidateStatus;
|
|
20
|
-
hasFeedback?: boolean;
|
|
21
|
-
feedbackIcon?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare type DropdownRender = (menu: ReactElement<any, string | JSXElementConstructor<any>>) => ReactElement<any, string | JSXElementConstructor<any>>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAEhE,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAErD,eAAO,MAAM,KAAK,uCAA2C,CAAA;AAE7D,QAAA,MAAM,gBAAgB,mDAAyD,CAAA;AAE/E,oBAAY,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE5D,QAAA,MAAM,gBAAgB,sDAA4D,CAAA;AAElF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAEnE,QAAA,MAAM,aAAa,0BAAgC,CAAA;AAEnD,oBAAY,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,gBAAgB,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC/B;AAED,oBAAY,cAAc,GAAG,CAC3B,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,KACzD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.tuple = void 0;
|
|
7
|
-
var tuple = function tuple() {
|
|
8
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
|
-
args[_key] = arguments[_key];
|
|
10
|
-
}
|
|
11
|
-
return args;
|
|
12
|
-
};
|
|
13
|
-
exports.tuple = tuple;
|
|
14
|
-
var ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '');
|
|
15
|
-
var SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
16
|
-
var InputStatuses = tuple('warning', 'error', '');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/interface.ts"],"names":[],"mappings":";;;AAMO,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAhD,QAAA,KAAK,SAA2C;AAE7D,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;AAI/E,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAIlF,MAAM,aAAa,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA","sourcesContent":["import type { ReactElement, JSXElementConstructor } from 'react'\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport const tuple = <T extends string[]>(...args: T) => args\n\nconst ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '')\n\nexport type ValidateStatus = typeof ValidateStatuses[number]\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight')\n\nexport type SelectCommonPlacement = typeof SelectPlacements[number]\n\nconst InputStatuses = tuple('warning', 'error', '')\n\nexport type InputStatus = typeof InputStatuses[number]\n\nexport interface SpaceCompactItemContextType {\n compactSize?: SizeType\n compactDirection?: 'horizontal' | 'vertical'\n isFirstItem?: boolean\n isLastItem?: boolean\n}\n\nexport interface FormItemStatusContextProps {\n isFormItemInput?: boolean\n status?: ValidateStatus\n hasFeedback?: boolean\n feedbackIcon?: React.ReactNode\n}\n\nexport type DropdownRender = (\n menu: ReactElement<any, string | JSXElementConstructor<any>>\n) => ReactElement<any, string | JSXElementConstructor<any>>\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CSSMotionProps } from 'rc-motion';
|
|
2
|
-
declare const collapseMotion: CSSMotionProps;
|
|
3
|
-
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
4
|
-
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
5
|
-
declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
|
|
6
|
-
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string | undefined) => string;
|
|
7
|
-
export { getTransitionName, getTransitionDirection };
|
|
8
|
-
export default collapseMotion;
|
|
9
|
-
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA6C,MAAM,WAAW,CAAC;AAc3F,QAAA,MAAM,cAAc,EAAE,cAYrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,sDAA4D,CAAC;AACnF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEpE,QAAA,MAAM,sBAAsB,cAAe,qBAAqB,GAAG,SAAS,8BAK3E,CAAC;AAEF,QAAA,MAAM,iBAAiB,kBAAmB,MAAM,UAAU,MAAM,gDAK/D,CAAC;AACF,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;AACrD,eAAe,cAAc,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getTransitionName = exports.getTransitionDirection = exports["default"] = void 0;
|
|
7
|
-
var _type = require("./type");
|
|
8
|
-
// ================== Collapse Motion ==================
|
|
9
|
-
var getCollapsedHeight = function getCollapsedHeight() {
|
|
10
|
-
return {
|
|
11
|
-
height: 0,
|
|
12
|
-
opacity: 0
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
var getRealHeight = function getRealHeight(node) {
|
|
16
|
-
var scrollHeight = node.scrollHeight;
|
|
17
|
-
return {
|
|
18
|
-
height: scrollHeight,
|
|
19
|
-
opacity: 1
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
var getCurrentHeight = function getCurrentHeight(node) {
|
|
23
|
-
return {
|
|
24
|
-
height: node ? node.offsetHeight : 0
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
var skipOpacityTransition = function skipOpacityTransition(_, event) {
|
|
28
|
-
return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
|
|
29
|
-
};
|
|
30
|
-
var collapseMotion = {
|
|
31
|
-
motionName: 'ant-motion-collapse',
|
|
32
|
-
onAppearStart: getCollapsedHeight,
|
|
33
|
-
onEnterStart: getCollapsedHeight,
|
|
34
|
-
onAppearActive: getRealHeight,
|
|
35
|
-
onEnterActive: getRealHeight,
|
|
36
|
-
onLeaveStart: getCurrentHeight,
|
|
37
|
-
onLeaveActive: getCollapsedHeight,
|
|
38
|
-
onAppearEnd: skipOpacityTransition,
|
|
39
|
-
onEnterEnd: skipOpacityTransition,
|
|
40
|
-
onLeaveEnd: skipOpacityTransition,
|
|
41
|
-
motionDeadline: 500
|
|
42
|
-
};
|
|
43
|
-
var SelectPlacements = (0, _type.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
44
|
-
var getTransitionDirection = function getTransitionDirection(placement) {
|
|
45
|
-
if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
|
|
46
|
-
return "slide-down";
|
|
47
|
-
}
|
|
48
|
-
return "slide-up";
|
|
49
|
-
};
|
|
50
|
-
exports.getTransitionDirection = getTransitionDirection;
|
|
51
|
-
var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
|
|
52
|
-
if (transitionName !== undefined) {
|
|
53
|
-
return transitionName;
|
|
54
|
-
}
|
|
55
|
-
return "".concat(rootPrefixCls, "-").concat(motion);
|
|
56
|
-
};
|
|
57
|
-
exports.getTransitionName = getTransitionName;
|
|
58
|
-
var _default = collapseMotion;
|
|
59
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/motion.ts"],"names":[],"mappings":";;;AAEA,iCAA+B;AAE/B,wDAAwD;AACxD,MAAM,kBAAkB,GAAuB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACjF,MAAM,aAAa,GAAuB,IAAI,CAAC,EAAE;IAC/C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AAC9C,CAAC,CAAC;AACF,MAAM,gBAAgB,GAAuB,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAChG,MAAM,qBAAqB,GAA0B,CAAC,CAAC,EAAE,KAAkB,EAAE,EAAE,CAC7E,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,MAAK,IAAI,IAAK,KAAyB,CAAC,YAAY,KAAK,QAAQ,CAAC;AAEnF,MAAM,cAAc,GAAmB;IACrC,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,kBAAkB;IAChC,cAAc,EAAE,aAAa;IAC7B,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,qBAAqB;IACjC,UAAU,EAAE,qBAAqB;IACjC,cAAc,EAAE,GAAG;CACpB,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,YAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAGnF,MAAM,sBAAsB,GAAG,CAAC,SAA4C,EAAE,EAAE;IAC9E,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,UAAU,CAAC,EAAE;QACpF,OAAO,YAAY,CAAC;KACrB;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAQ0B,wDAAsB;AANlD,MAAM,iBAAiB,GAAG,CAAC,aAAqB,EAAE,MAAc,EAAE,cAAuB,EAAE,EAAE;IAC3F,IAAI,cAAc,KAAK,SAAS,EAAE;QAChC,OAAO,cAAc,CAAC;KACvB;IACD,OAAO,GAAG,aAAa,IAAI,MAAM,EAAE,CAAC;AACtC,CAAC,CAAC;AACO,8CAAiB;AAC1B,kBAAe,cAAc,CAAC","sourcesContent":["import type { CSSMotionProps, MotionEndEventHandler, MotionEventHandler } from 'rc-motion';\nimport type { MotionEvent } from 'rc-motion/lib/interface';\nimport { tuple } from './type';\n\n// ================== Collapse Motion ==================\nconst getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 });\nconst getRealHeight: MotionEventHandler = node => {\n const { scrollHeight } = node;\n return { height: scrollHeight, opacity: 1 };\n};\nconst getCurrentHeight: MotionEventHandler = node => ({ height: node ? node.offsetHeight : 0 });\nconst skipOpacityTransition: MotionEndEventHandler = (_, event: MotionEvent) =>\n event?.deadline === true || (event as TransitionEvent).propertyName === 'height';\n\nconst collapseMotion: CSSMotionProps = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500,\n};\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');\nexport type SelectCommonPlacement = typeof SelectPlacements[number];\n\nconst getTransitionDirection = (placement: SelectCommonPlacement | undefined) => {\n if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {\n return `slide-down`;\n }\n return `slide-up`;\n};\n\nconst getTransitionName = (rootPrefixCls: string, motion: string, transitionName?: string) => {\n if (transitionName !== undefined) {\n return transitionName;\n }\n return `${rootPrefixCls}-${motion}`;\n};\nexport { getTransitionName, getTransitionDirection };\nexport default collapseMotion;"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
|
-
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
3
|
-
/**
|
|
4
|
-
* https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
|
5
|
-
* performing indexing
|
|
6
|
-
*/
|
|
7
|
-
export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
8
|
-
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
9
|
-
export declare type LiteralUnion<T extends U, U> = T | (U & {});
|
|
10
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/type.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK,uCAA2C,CAAC;AAE9D,eAAO,MAAM,QAAQ,uCAA2C,CAAC;AAEjE;;;GAGG;AACH,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElG,2DAA2D;AAC3D,oBAAY,YAAY,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.tupleNum = exports.tuple = void 0;
|
|
7
|
-
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
|
|
8
|
-
var tuple = function tuple() {
|
|
9
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10
|
-
args[_key] = arguments[_key];
|
|
11
|
-
}
|
|
12
|
-
return args;
|
|
13
|
-
};
|
|
14
|
-
exports.tuple = tuple;
|
|
15
|
-
var tupleNum = function tupleNum() {
|
|
16
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
17
|
-
args[_key2] = arguments[_key2];
|
|
18
|
-
}
|
|
19
|
-
return args;
|
|
20
|
-
};
|
|
21
|
-
exports.tupleNum = tupleNum;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/type.ts"],"names":[],"mappings":";;;AAAA,qHAAqH;AAC9G,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC;AAAjD,QAAA,KAAK,SAA4C;AAEvD,MAAM,QAAQ,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC;AAApD,QAAA,QAAQ,YAA4C","sourcesContent":["// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport const tuple = <T extends string[]>(...args: T) => args;\n\nexport const tupleNum = <T extends number[]>(...args: T) => args;\n\n/**\n * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without\n * performing indexing\n */\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;\n\n/** https://github.com/Microsoft/TypeScript/issues/29729 */\nexport type LiteralUnion<T extends U, U> = T | (U & {});\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { DirectionType, SpaceCompactItemContextType } from './interface';
|
|
3
|
-
export declare const SpaceCompactItemContext: React.Context<SpaceCompactItemContextType | null>;
|
|
4
|
-
export declare const useCompactItemContext: (prefixCls: string, direction: DirectionType) => {
|
|
5
|
-
compactSize: import("./interface").SizeType;
|
|
6
|
-
compactDirection: "horizontal" | "vertical" | undefined;
|
|
7
|
-
compactItemClassnames: string;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=useCompactItemContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCompactItemContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/useCompactItemContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAG7E,eAAO,MAAM,uBAAuB,mDAAgE,CAAA;AAEpG,eAAO,MAAM,qBAAqB,cAAe,MAAM,aAAa,aAAa;;;;CAsBhF,CAAA"}
|