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,13 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { DefaultOptionType } from './Select';
|
|
3
|
-
export interface OptGroupProps extends Omit<DefaultOptionType, 'options'> {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export interface OptionGroupFC extends React.FC<OptGroupProps> {
|
|
7
|
-
/** Legacy for check if is a Option Group */
|
|
8
|
-
isSelectOptGroup: boolean;
|
|
9
|
-
}
|
|
10
|
-
/** This is a placeholder, not real render in dom */
|
|
11
|
-
declare const OptGroup: OptionGroupFC;
|
|
12
|
-
export default OptGroup;
|
|
13
|
-
//# sourceMappingURL=OptGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OptGroup.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/OptGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC;IACvE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC;IAC5D,4CAA4C;IAC5C,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,oDAAoD;AACpD,QAAA,MAAM,QAAQ,EAAE,aAA0B,CAAC;AAG3C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
/** This is a placeholder, not real render in dom */
|
|
8
|
-
var OptGroup = function OptGroup() {
|
|
9
|
-
return null;
|
|
10
|
-
};
|
|
11
|
-
OptGroup.isSelectOptGroup = true;
|
|
12
|
-
var _default = OptGroup;
|
|
13
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OptGroup.js","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/OptGroup.tsx"],"names":[],"mappings":";;AAaA,oDAAoD;AACpD,MAAM,QAAQ,GAAkB,GAAG,EAAE,CAAC,IAAI,CAAC;AAC3C,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC;AAEjC,kBAAe,QAAQ,CAAC","sourcesContent":["/* istanbul ignore file */\nimport type * as React from 'react';\nimport type { DefaultOptionType } from './Select';\n\nexport interface OptGroupProps extends Omit<DefaultOptionType, 'options'> {\n children?: React.ReactNode;\n}\n\nexport interface OptionGroupFC extends React.FC<OptGroupProps> {\n /** Legacy for check if is a Option Group */\n isSelectOptGroup: boolean;\n}\n\n/** This is a placeholder, not real render in dom */\nconst OptGroup: OptionGroupFC = () => null;\nOptGroup.isSelectOptGroup = true;\n\nexport default OptGroup;\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { DefaultOptionType } from './Select';
|
|
3
|
-
export interface OptionProps extends Omit<DefaultOptionType, 'label'> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** Save for customize data */
|
|
6
|
-
[prop: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export interface OptionFC extends React.FC<OptionProps> {
|
|
9
|
-
/** Legacy for check if is a Option Group */
|
|
10
|
-
isSelectOption: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** This is a placeholder, not real render in dom */
|
|
13
|
-
declare const Option: OptionFC;
|
|
14
|
-
export default Option;
|
|
15
|
-
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/Option.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,8BAA8B;IAC9B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB;AAED,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC;IACrD,4CAA4C;IAC5C,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,oDAAoD;AACpD,QAAA,MAAM,MAAM,EAAE,QAAqB,CAAC;AAGpC,eAAe,MAAM,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
/** This is a placeholder, not real render in dom */
|
|
8
|
-
var Option = function Option() {
|
|
9
|
-
return null;
|
|
10
|
-
};
|
|
11
|
-
Option.isSelectOption = true;
|
|
12
|
-
var _default = Option;
|
|
13
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/Option.tsx"],"names":[],"mappings":";;AAgBA,oDAAoD;AACpD,MAAM,MAAM,GAAa,GAAG,EAAE,CAAC,IAAI,CAAC;AACpC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;AAE7B,kBAAe,MAAM,CAAC","sourcesContent":["/* istanbul ignore file */\nimport type * as React from 'react';\nimport type { DefaultOptionType } from './Select';\n\nexport interface OptionProps extends Omit<DefaultOptionType, 'label'> {\n children: React.ReactNode;\n\n /** Save for customize data */\n [prop: string]: any; // eslint-disable-line @typescript-eslint/no-explicit-any\n}\n\nexport interface OptionFC extends React.FC<OptionProps> {\n /** Legacy for check if is a Option Group */\n isSelectOption: boolean;\n}\n\n/** This is a placeholder, not real render in dom */\nconst Option: OptionFC = () => null;\nOption.isSelectOption = true;\n\nexport default Option;\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ScrollConfig } from 'rc-virtual-list/lib/List';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare type OptionListProps = Record<string, never>;
|
|
4
|
-
export interface RefOptionListProps {
|
|
5
|
-
onKeyDown: React.KeyboardEventHandler;
|
|
6
|
-
onKeyUp: React.KeyboardEventHandler;
|
|
7
|
-
scrollTo?: (args: number | ScrollConfig) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const RefOptionList: React.ForwardRefExoticComponent<React.RefAttributes<RefOptionListProps>>;
|
|
10
|
-
export default RefOptionList;
|
|
11
|
-
//# sourceMappingURL=OptionList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/OptionList.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,oBAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACtC,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,KAAK,IAAI,CAAC;CAClD;AAoXD,QAAA,MAAM,aAAa,0EAA+B,CAAC;AAGnD,eAAe,aAAa,CAAC"}
|
|
@@ -1,372 +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"] = void 0;
|
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
|
|
10
|
-
var _useMemo = _interopRequireDefault(require("rc-util/lib/hooks/useMemo"));
|
|
11
|
-
var _omit = _interopRequireDefault(require("rc-util/lib/omit"));
|
|
12
|
-
var _pickAttrs = _interopRequireDefault(require("rc-util/lib/pickAttrs"));
|
|
13
|
-
var _rcVirtualList = _interopRequireDefault(require("rc-virtual-list"));
|
|
14
|
-
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _SelectContext = _interopRequireDefault(require("./SelectContext"));
|
|
16
|
-
var _TransBtn = _interopRequireDefault(require("./TransBtn"));
|
|
17
|
-
var _useBaseProps2 = _interopRequireDefault(require("./hooks/useBaseProps"));
|
|
18
|
-
var _platformUtil = require("./utils/platformUtil");
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
25
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
26
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
28
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
29
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
30
|
-
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."); }
|
|
31
|
-
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); }
|
|
32
|
-
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; }
|
|
33
|
-
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; } }
|
|
34
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
36
|
-
var t = {};
|
|
37
|
-
for (var p in s) {
|
|
38
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
39
|
-
}
|
|
40
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
};
|
|
45
|
-
function isTitleType(content) {
|
|
46
|
-
return typeof content === 'string' || typeof content === 'number';
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Using virtual list of option display.
|
|
50
|
-
* Will fallback to dom if use customize render.
|
|
51
|
-
*/
|
|
52
|
-
var OptionList = function OptionList(_, ref) {
|
|
53
|
-
var _useBaseProps = (0, _useBaseProps2["default"])(),
|
|
54
|
-
prefixCls = _useBaseProps.prefixCls,
|
|
55
|
-
id = _useBaseProps.id,
|
|
56
|
-
open = _useBaseProps.open,
|
|
57
|
-
multiple = _useBaseProps.multiple,
|
|
58
|
-
mode = _useBaseProps.mode,
|
|
59
|
-
searchValue = _useBaseProps.searchValue,
|
|
60
|
-
toggleOpen = _useBaseProps.toggleOpen,
|
|
61
|
-
notFoundContent = _useBaseProps.notFoundContent,
|
|
62
|
-
onPopupScroll = _useBaseProps.onPopupScroll;
|
|
63
|
-
var _React$useContext = React.useContext(_SelectContext["default"]),
|
|
64
|
-
flattenOptions = _React$useContext.flattenOptions,
|
|
65
|
-
onActiveValue = _React$useContext.onActiveValue,
|
|
66
|
-
defaultActiveFirstOption = _React$useContext.defaultActiveFirstOption,
|
|
67
|
-
onSelect = _React$useContext.onSelect,
|
|
68
|
-
menuItemSelectedIcon = _React$useContext.menuItemSelectedIcon,
|
|
69
|
-
rawValues = _React$useContext.rawValues,
|
|
70
|
-
fieldNames = _React$useContext.fieldNames,
|
|
71
|
-
virtual = _React$useContext.virtual,
|
|
72
|
-
direction = _React$useContext.direction,
|
|
73
|
-
listHeight = _React$useContext.listHeight,
|
|
74
|
-
listItemHeight = _React$useContext.listItemHeight,
|
|
75
|
-
optionRender = _React$useContext.optionRender;
|
|
76
|
-
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
77
|
-
var memoFlattenOptions = (0, _useMemo["default"])(function () {
|
|
78
|
-
return flattenOptions;
|
|
79
|
-
}, [open, flattenOptions], function (prev, next) {
|
|
80
|
-
return next[0] && prev[1] !== next[1];
|
|
81
|
-
});
|
|
82
|
-
// =========================== List ===========================
|
|
83
|
-
var listRef = React.useRef(null);
|
|
84
|
-
var onListMouseDown = function onListMouseDown(event) {
|
|
85
|
-
event.preventDefault();
|
|
86
|
-
};
|
|
87
|
-
var scrollIntoView = function scrollIntoView(args) {
|
|
88
|
-
if (listRef.current) {
|
|
89
|
-
listRef.current.scrollTo(typeof args === 'number' ? {
|
|
90
|
-
index: args
|
|
91
|
-
} : args);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
// ========================== Active ==========================
|
|
95
|
-
var getEnabledActiveIndex = function getEnabledActiveIndex(index) {
|
|
96
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
97
|
-
var len = memoFlattenOptions.length;
|
|
98
|
-
for (var i = 0; i < len; i += 1) {
|
|
99
|
-
var current = (index + i * offset + len) % len;
|
|
100
|
-
var _memoFlattenOptions$c = memoFlattenOptions[current],
|
|
101
|
-
group = _memoFlattenOptions$c.group,
|
|
102
|
-
data = _memoFlattenOptions$c.data;
|
|
103
|
-
if (!group && !data.disabled) {
|
|
104
|
-
return current;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return -1;
|
|
108
|
-
};
|
|
109
|
-
var _React$useState = React.useState(function () {
|
|
110
|
-
return getEnabledActiveIndex(0);
|
|
111
|
-
}),
|
|
112
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
113
|
-
activeIndex = _React$useState2[0],
|
|
114
|
-
setActiveIndex = _React$useState2[1];
|
|
115
|
-
var setActive = function setActive(index) {
|
|
116
|
-
var fromKeyboard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
117
|
-
setActiveIndex(index);
|
|
118
|
-
var info = {
|
|
119
|
-
source: fromKeyboard ? 'keyboard' : 'mouse'
|
|
120
|
-
};
|
|
121
|
-
// Trigger active event
|
|
122
|
-
var flattenItem = memoFlattenOptions[index];
|
|
123
|
-
if (!flattenItem) {
|
|
124
|
-
onActiveValue(null, -1, info);
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
onActiveValue(flattenItem.value, index, info);
|
|
128
|
-
};
|
|
129
|
-
// Auto active first item when list length or searchValue changed
|
|
130
|
-
(0, React.useEffect)(function () {
|
|
131
|
-
setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
|
|
132
|
-
}, [memoFlattenOptions.length, searchValue]);
|
|
133
|
-
// https://github.com/ant-design/ant-design/issues/34975
|
|
134
|
-
var isSelected = React.useCallback(function (value) {
|
|
135
|
-
return rawValues.has(value) && mode !== 'combobox';
|
|
136
|
-
}, [mode, _toConsumableArray(rawValues).toString(), rawValues.size]);
|
|
137
|
-
// Auto scroll to item position in single mode
|
|
138
|
-
(0, React.useEffect)(function () {
|
|
139
|
-
var _a;
|
|
140
|
-
/**
|
|
141
|
-
* React will skip `onChange` when component update.
|
|
142
|
-
* `setActive` function will call root accessibility state update which makes re-render.
|
|
143
|
-
* So we need to delay to let Input component trigger onChange first.
|
|
144
|
-
*/
|
|
145
|
-
var timeoutId = setTimeout(function () {
|
|
146
|
-
if (!multiple && open && rawValues.size === 1) {
|
|
147
|
-
var value = Array.from(rawValues)[0];
|
|
148
|
-
var index = memoFlattenOptions.findIndex(function (_ref) {
|
|
149
|
-
var data = _ref.data;
|
|
150
|
-
return data.value === value;
|
|
151
|
-
});
|
|
152
|
-
if (index !== -1) {
|
|
153
|
-
setActive(index);
|
|
154
|
-
scrollIntoView(index);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
// Force trigger scrollbar visible when open
|
|
159
|
-
if (open) {
|
|
160
|
-
(_a = listRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo(undefined);
|
|
161
|
-
}
|
|
162
|
-
return function () {
|
|
163
|
-
return clearTimeout(timeoutId);
|
|
164
|
-
};
|
|
165
|
-
}, [open, searchValue]);
|
|
166
|
-
// ========================== Values ==========================
|
|
167
|
-
var onSelectValue = function onSelectValue(value) {
|
|
168
|
-
if (value !== undefined) {
|
|
169
|
-
onSelect(value, {
|
|
170
|
-
selected: !rawValues.has(value)
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
// Single mode should always close by select
|
|
174
|
-
if (!multiple) {
|
|
175
|
-
toggleOpen(false);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
// ========================= Keyboard =========================
|
|
179
|
-
React.useImperativeHandle(ref, function () {
|
|
180
|
-
return {
|
|
181
|
-
onKeyDown: function onKeyDown(event) {
|
|
182
|
-
var which = event.which,
|
|
183
|
-
ctrlKey = event.ctrlKey;
|
|
184
|
-
switch (which) {
|
|
185
|
-
// >>> Arrow keys & ctrl + n/p on Mac
|
|
186
|
-
case _KeyCode["default"].N:
|
|
187
|
-
case _KeyCode["default"].P:
|
|
188
|
-
case _KeyCode["default"].UP:
|
|
189
|
-
case _KeyCode["default"].DOWN:
|
|
190
|
-
{
|
|
191
|
-
var offset = 0;
|
|
192
|
-
if (which === _KeyCode["default"].UP) {
|
|
193
|
-
offset = -1;
|
|
194
|
-
} else if (which === _KeyCode["default"].DOWN) {
|
|
195
|
-
offset = 1;
|
|
196
|
-
} else if ((0, _platformUtil.isPlatformMac)() && ctrlKey) {
|
|
197
|
-
if (which === _KeyCode["default"].N) {
|
|
198
|
-
offset = 1;
|
|
199
|
-
} else if (which === _KeyCode["default"].P) {
|
|
200
|
-
offset = -1;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (offset !== 0) {
|
|
204
|
-
var nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);
|
|
205
|
-
scrollIntoView(nextActiveIndex);
|
|
206
|
-
setActive(nextActiveIndex, true);
|
|
207
|
-
}
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
// >>> Select
|
|
211
|
-
case _KeyCode["default"].ENTER:
|
|
212
|
-
{
|
|
213
|
-
// value
|
|
214
|
-
var item = memoFlattenOptions[activeIndex];
|
|
215
|
-
if (item && !item.data.disabled) {
|
|
216
|
-
onSelectValue(item.value);
|
|
217
|
-
} else {
|
|
218
|
-
onSelectValue(undefined);
|
|
219
|
-
}
|
|
220
|
-
if (open) {
|
|
221
|
-
event.preventDefault();
|
|
222
|
-
}
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
// >>> Close
|
|
226
|
-
case _KeyCode["default"].ESC:
|
|
227
|
-
{
|
|
228
|
-
toggleOpen(false);
|
|
229
|
-
if (open) {
|
|
230
|
-
event.stopPropagation();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
onKeyUp: function onKeyUp() {},
|
|
236
|
-
scrollTo: function scrollTo(index) {
|
|
237
|
-
scrollIntoView(index);
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
});
|
|
241
|
-
// ========================== Render ==========================
|
|
242
|
-
if (memoFlattenOptions.length === 0) {
|
|
243
|
-
return React.createElement("div", {
|
|
244
|
-
role: "listbox",
|
|
245
|
-
id: "".concat(id, "_list"),
|
|
246
|
-
className: "".concat(itemPrefixCls, "-empty"),
|
|
247
|
-
onMouseDown: onListMouseDown
|
|
248
|
-
}, notFoundContent);
|
|
249
|
-
}
|
|
250
|
-
var omitFieldNameList = Object.keys(fieldNames).map(function (key) {
|
|
251
|
-
return fieldNames[key];
|
|
252
|
-
});
|
|
253
|
-
var getLabel = function getLabel(item) {
|
|
254
|
-
return item.label;
|
|
255
|
-
};
|
|
256
|
-
function getItemAriaProps(item, index) {
|
|
257
|
-
var group = item.group;
|
|
258
|
-
return {
|
|
259
|
-
role: group ? 'presentation' : 'option',
|
|
260
|
-
id: "".concat(id, "_list_").concat(index)
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
var renderItem = function renderItem(index) {
|
|
264
|
-
var item = memoFlattenOptions[index];
|
|
265
|
-
if (!item) return null;
|
|
266
|
-
var itemData = item.data || {};
|
|
267
|
-
var value = itemData.value;
|
|
268
|
-
var group = item.group;
|
|
269
|
-
var attrs = (0, _pickAttrs["default"])(itemData, true);
|
|
270
|
-
var mergedLabel = getLabel(item);
|
|
271
|
-
return item ? React.createElement("div", Object.assign({
|
|
272
|
-
"aria-label": typeof mergedLabel === 'string' && !group ? mergedLabel : null
|
|
273
|
-
}, attrs, {
|
|
274
|
-
key: index
|
|
275
|
-
}, getItemAriaProps(item, index), {
|
|
276
|
-
"aria-selected": isSelected(value)
|
|
277
|
-
}), value) : null;
|
|
278
|
-
};
|
|
279
|
-
var a11yProps = {
|
|
280
|
-
role: 'listbox',
|
|
281
|
-
id: "".concat(id, "_list")
|
|
282
|
-
};
|
|
283
|
-
return React.createElement(React.Fragment, null, virtual && React.createElement("div", Object.assign({}, a11yProps, {
|
|
284
|
-
style: {
|
|
285
|
-
height: 0,
|
|
286
|
-
width: 0,
|
|
287
|
-
overflow: 'hidden'
|
|
288
|
-
}
|
|
289
|
-
}), renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), React.createElement(_rcVirtualList["default"], {
|
|
290
|
-
itemKey: "key",
|
|
291
|
-
ref: listRef,
|
|
292
|
-
data: memoFlattenOptions,
|
|
293
|
-
height: listHeight,
|
|
294
|
-
itemHeight: listItemHeight,
|
|
295
|
-
fullHeight: false,
|
|
296
|
-
onMouseDown: onListMouseDown,
|
|
297
|
-
onScroll: onPopupScroll,
|
|
298
|
-
virtual: virtual,
|
|
299
|
-
direction: direction,
|
|
300
|
-
innerProps: virtual ? null : a11yProps
|
|
301
|
-
}, function (item, itemIndex) {
|
|
302
|
-
var _classNames;
|
|
303
|
-
var _a;
|
|
304
|
-
var group = item.group,
|
|
305
|
-
groupOption = item.groupOption,
|
|
306
|
-
data = item.data,
|
|
307
|
-
label = item.label,
|
|
308
|
-
value = item.value;
|
|
309
|
-
var key = data.key;
|
|
310
|
-
// Group
|
|
311
|
-
if (group) {
|
|
312
|
-
var groupTitle = (_a = data.title) !== null && _a !== void 0 ? _a : isTitleType(label) ? label.toString() : undefined;
|
|
313
|
-
return React.createElement("div", {
|
|
314
|
-
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
|
|
315
|
-
title: groupTitle
|
|
316
|
-
}, label !== undefined ? label : key);
|
|
317
|
-
}
|
|
318
|
-
var disabled = data.disabled,
|
|
319
|
-
title = data.title,
|
|
320
|
-
children = data.children,
|
|
321
|
-
style = data.style,
|
|
322
|
-
className = data.className,
|
|
323
|
-
otherProps = __rest(data, ["disabled", "title", "children", "style", "className"]);
|
|
324
|
-
var passedProps = (0, _omit["default"])(otherProps, omitFieldNameList);
|
|
325
|
-
// Option
|
|
326
|
-
var selected = isSelected(value);
|
|
327
|
-
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
328
|
-
var optionClassName = (0, _classnames["default"])(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
329
|
-
var mergedLabel = getLabel(item);
|
|
330
|
-
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
331
|
-
// https://github.com/ant-design/ant-design/issues/34145
|
|
332
|
-
var content = typeof mergedLabel === 'number' ? mergedLabel : mergedLabel || value;
|
|
333
|
-
// https://github.com/ant-design/ant-design/issues/26717
|
|
334
|
-
var optionTitle = isTitleType(content) ? content.toString() : undefined;
|
|
335
|
-
if (title !== undefined) {
|
|
336
|
-
optionTitle = title;
|
|
337
|
-
}
|
|
338
|
-
return React.createElement("div", Object.assign({}, (0, _pickAttrs["default"])(passedProps), !virtual ? getItemAriaProps(item, itemIndex) : {}, {
|
|
339
|
-
"aria-selected": selected,
|
|
340
|
-
className: optionClassName,
|
|
341
|
-
title: optionTitle,
|
|
342
|
-
onMouseMove: function onMouseMove() {
|
|
343
|
-
if (activeIndex === itemIndex || disabled) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
setActive(itemIndex);
|
|
347
|
-
},
|
|
348
|
-
onClick: function onClick() {
|
|
349
|
-
if (!disabled) {
|
|
350
|
-
onSelectValue(value);
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
style: style
|
|
354
|
-
}), React.createElement("div", {
|
|
355
|
-
className: "".concat(optionPrefixCls, "-content")
|
|
356
|
-
}, typeof optionRender === 'function' ? optionRender(item, {
|
|
357
|
-
index: itemIndex
|
|
358
|
-
}) : content), React.isValidElement(menuItemSelectedIcon) || selected, iconVisible && React.createElement(_TransBtn["default"], {
|
|
359
|
-
className: "".concat(itemPrefixCls, "-option-state"),
|
|
360
|
-
customizeIcon: menuItemSelectedIcon,
|
|
361
|
-
customizeIconProps: {
|
|
362
|
-
value: value,
|
|
363
|
-
disabled: disabled,
|
|
364
|
-
isSelected: selected
|
|
365
|
-
}
|
|
366
|
-
}, selected ? '✓' : null));
|
|
367
|
-
}));
|
|
368
|
-
};
|
|
369
|
-
var RefOptionList = React.forwardRef(OptionList);
|
|
370
|
-
RefOptionList.displayName = 'OptionList';
|
|
371
|
-
var _default = RefOptionList;
|
|
372
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OptionList.js","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/OptionList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAoC;AACpC,kEAA0C;AAC1C,wEAAgD;AAChD,4DAAoC;AACpC,sEAA8C;AAE9C,sEAAmC;AAEnC,6CAA+B;AAC/B,iCAAkC;AAElC,oEAA4C;AAC5C,0DAAkC;AAClC,wEAAgD;AAEhD,uDAAqD;AAWrD,SAAS,WAAW,CAAC,OAAY;IAC/B,OAAO,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC;AACpE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,GAA2D,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACpF,MAAM,EACJ,SAAS,EACT,EAAE,EACF,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,UAAU,EACV,eAAe,EACf,aAAa,GACd,GAAG,IAAA,sBAAY,GAAE,CAAC;IACnB,MAAM,EACJ,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,cAAc,EACd,YAAY,GACb,GAAG,KAAK,CAAC,UAAU,CAAC,uBAAa,CAAC,CAAC;IAEpC,MAAM,aAAa,GAAG,GAAG,SAAS,OAAO,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,KAAK,UAAU;oBACjC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;oBAC1C,CAAC,CAAC,OAAO,CACP;gBACL,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,IAAI,QAAQ;gBACtD,WAAW,IAAI,CACd,oBAAC,kBAAQ,IACP,SAAS,EAAE,GAAG,aAAa,eAAe,EAC1C,aAAa,EAAE,oBAAoB,EACnC,kBAAkB,EAAE;wBAClB,KAAK;wBACL,QAAQ;wBACR,UAAU,EAAE,QAAQ;qBACrB,IAEA,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CACb,CACZ,CACG,CACP,CAAC;QACJ,CAAC,CACI,CACN,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACnD,aAAa,CAAC,WAAW,GAAG,YAAY,CAAC;AAEzC,kBAAe,aAAa,CAAC","sourcesContent":["import classNames from 'classnames';\nimport KeyCode from 'rc-util/lib/KeyCode';\nimport useMemo from 'rc-util/lib/hooks/useMemo';\nimport omit from 'rc-util/lib/omit';\nimport pickAttrs from 'rc-util/lib/pickAttrs';\nimport type { ListRef } from 'rc-virtual-list';\nimport List from 'rc-virtual-list';\nimport type { ScrollConfig } from 'rc-virtual-list/lib/List';\nimport * as React from 'react';\nimport { useEffect } from 'react';\nimport type { BaseOptionType, RawValueType } from './Select';\nimport SelectContext from './SelectContext';\nimport TransBtn from './TransBtn';\nimport useBaseProps from './hooks/useBaseProps';\nimport type { FlattenOptionData } from './interface';\nimport { isPlatformMac } from './utils/platformUtil';\n\n// export interface OptionListProps<OptionsType extends object[]> {\nexport type OptionListProps = Record<string, never>;\n\nexport interface RefOptionListProps {\n onKeyDown: React.KeyboardEventHandler;\n onKeyUp: React.KeyboardEventHandler;\n scrollTo?: (args: number | ScrollConfig) => void;\n}\n\nfunction isTitleType(content: any) {\n return typeof content === 'string' || typeof content === 'number';\n}\n\n/**\n * Using virtual list of option display.\n * Will fallback to dom if use customize render.\n */\nconst OptionList: React.ForwardRefRenderFunction<RefOptionListProps, {}> = (_, ref) => {\n const {\n prefixCls,\n id,\n open,\n multiple,\n mode,\n searchValue,\n toggleOpen,\n notFoundContent,\n onPopupScroll,\n } = useBaseProps();\n const {\n flattenOptions,\n onActiveValue,\n defaultActiveFirstOption,\n onSelect,\n menuItemSelectedIcon,\n rawValues,\n fieldNames,\n virtual,\n direction,\n listHeight,\n listItemHeight,\n optionRender,\n } = React.useContext(SelectContext);\n\n const itemPrefixCls = `${prefixCls}-item`;\n\n const memoFlattenOptions = useMemo(\n () => flattenOptions,\n [open, flattenOptions],\n (prev, next) => next[0] && prev[1] !== next[1],\n );\n\n // =========================== List ===========================\n const listRef = React.useRef<ListRef>(null);\n\n const onListMouseDown: React.MouseEventHandler<HTMLDivElement> = (event) => {\n event.preventDefault();\n };\n\n const scrollIntoView = (args: number | ScrollConfig) => {\n if (listRef.current) {\n listRef.current.scrollTo(typeof args === 'number' ? { index: args } : args);\n }\n };\n\n // ========================== Active ==========================\n const getEnabledActiveIndex = (index: number, offset: number = 1): number => {\n const len = memoFlattenOptions.length;\n\n for (let i = 0; i < len; i += 1) {\n const current = (index + i * offset + len) % len;\n\n const { group, data } = memoFlattenOptions[current];\n if (!group && !data.disabled) {\n return current;\n }\n }\n\n return -1;\n };\n\n const [activeIndex, setActiveIndex] = React.useState(() => getEnabledActiveIndex(0));\n const setActive = (index: number, fromKeyboard = false) => {\n setActiveIndex(index);\n\n const info = { source: fromKeyboard ? ('keyboard' as const) : ('mouse' as const) };\n\n // Trigger active event\n const flattenItem = memoFlattenOptions[index];\n if (!flattenItem) {\n onActiveValue(null, -1, info);\n return;\n }\n onActiveValue(flattenItem.value, index, info);\n };\n\n // Auto active first item when list length or searchValue changed\n useEffect(() => {\n setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);\n }, [memoFlattenOptions.length, searchValue]);\n\n // https://github.com/ant-design/ant-design/issues/34975\n const isSelected = React.useCallback(\n (value: RawValueType) => rawValues.has(value) && mode !== 'combobox',\n [mode, [...rawValues].toString(), rawValues.size],\n );\n\n // Auto scroll to item position in single mode\n useEffect(() => {\n /**\n * React will skip `onChange` when component update.\n * `setActive` function will call root accessibility state update which makes re-render.\n * So we need to delay to let Input component trigger onChange first.\n */\n const timeoutId = setTimeout(() => {\n if (!multiple && open && rawValues.size === 1) {\n const value: RawValueType = Array.from(rawValues)[0];\n const index = memoFlattenOptions.findIndex(({ data }) => data.value === value);\n\n if (index !== -1) {\n setActive(index);\n scrollIntoView(index);\n }\n }\n });\n\n // Force trigger scrollbar visible when open\n if (open) {\n listRef.current?.scrollTo(undefined);\n }\n\n return () => clearTimeout(timeoutId);\n }, [open, searchValue]);\n\n // ========================== Values ==========================\n const onSelectValue = (value: RawValueType) => {\n if (value !== undefined) {\n onSelect(value, { selected: !rawValues.has(value) });\n }\n\n // Single mode should always close by select\n if (!multiple) {\n toggleOpen(false);\n }\n };\n\n // ========================= Keyboard =========================\n React.useImperativeHandle(ref, () => ({\n onKeyDown: (event) => {\n const { which, ctrlKey } = event;\n switch (which) {\n // >>> Arrow keys & ctrl + n/p on Mac\n case KeyCode.N:\n case KeyCode.P:\n case KeyCode.UP:\n case KeyCode.DOWN: {\n let offset = 0;\n if (which === KeyCode.UP) {\n offset = -1;\n } else if (which === KeyCode.DOWN) {\n offset = 1;\n } else if (isPlatformMac() && ctrlKey) {\n if (which === KeyCode.N) {\n offset = 1;\n } else if (which === KeyCode.P) {\n offset = -1;\n }\n }\n\n if (offset !== 0) {\n const nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);\n scrollIntoView(nextActiveIndex);\n setActive(nextActiveIndex, true);\n }\n\n break;\n }\n\n // >>> Select\n case KeyCode.ENTER: {\n // value\n const item = memoFlattenOptions[activeIndex];\n if (item && !item.data.disabled) {\n onSelectValue(item.value);\n } else {\n onSelectValue(undefined);\n }\n\n if (open) {\n event.preventDefault();\n }\n\n break;\n }\n\n // >>> Close\n case KeyCode.ESC: {\n toggleOpen(false);\n if (open) {\n event.stopPropagation();\n }\n }\n }\n },\n onKeyUp: () => {},\n\n scrollTo: (index) => {\n scrollIntoView(index);\n },\n }));\n\n // ========================== Render ==========================\n if (memoFlattenOptions.length === 0) {\n return (\n <div\n role=\"listbox\"\n id={`${id}_list`}\n className={`${itemPrefixCls}-empty`}\n onMouseDown={onListMouseDown}\n >\n {notFoundContent}\n </div>\n );\n }\n\n const omitFieldNameList = Object.keys(fieldNames).map((key) => fieldNames[key]);\n\n const getLabel = (item: Record<string, any>) => item.label;\n\n function getItemAriaProps(item: FlattenOptionData<BaseOptionType>, index: number) {\n const { group } = item;\n\n return {\n role: group ? 'presentation' : 'option',\n id: `${id}_list_${index}`,\n };\n }\n\n const renderItem = (index: number) => {\n const item = memoFlattenOptions[index];\n if (!item) return null;\n\n const itemData = item.data || {};\n const { value } = itemData;\n const { group } = item;\n const attrs = pickAttrs(itemData, true);\n const mergedLabel = getLabel(item);\n return item ? (\n <div\n aria-label={typeof mergedLabel === 'string' && !group ? mergedLabel : null}\n {...attrs}\n key={index}\n {...getItemAriaProps(item, index)}\n aria-selected={isSelected(value)}\n >\n {value}\n </div>\n ) : null;\n };\n\n const a11yProps = {\n role: 'listbox',\n id: `${id}_list`,\n };\n\n return (\n <>\n {virtual && (\n <div {...a11yProps} style={{ height: 0, width: 0, overflow: 'hidden' }}>\n {renderItem(activeIndex - 1)}\n {renderItem(activeIndex)}\n {renderItem(activeIndex + 1)}\n </div>\n )}\n <List<FlattenOptionData<BaseOptionType>>\n itemKey=\"key\"\n ref={listRef}\n data={memoFlattenOptions}\n height={listHeight}\n itemHeight={listItemHeight}\n fullHeight={false}\n onMouseDown={onListMouseDown}\n onScroll={onPopupScroll}\n virtual={virtual}\n direction={direction}\n innerProps={virtual ? null : a11yProps}\n >\n {(item, itemIndex) => {\n const { group, groupOption, data, label, value } = item;\n const { key } = data;\n\n // Group\n if (group) {\n const groupTitle = data.title ?? (isTitleType(label) ? label.toString() : undefined);\n\n return (\n <div\n className={classNames(itemPrefixCls, `${itemPrefixCls}-group`)}\n title={groupTitle}\n >\n {label !== undefined ? label : key}\n </div>\n );\n }\n\n const { disabled, title, children, style, className, ...otherProps } = data;\n const passedProps = omit(otherProps, omitFieldNameList);\n\n // Option\n const selected = isSelected(value);\n\n const optionPrefixCls = `${itemPrefixCls}-option`;\n const optionClassName = classNames(itemPrefixCls, optionPrefixCls, className, {\n [`${optionPrefixCls}-grouped`]: groupOption,\n [`${optionPrefixCls}-active`]: activeIndex === itemIndex && !disabled,\n [`${optionPrefixCls}-disabled`]: disabled,\n [`${optionPrefixCls}-selected`]: selected,\n });\n\n const mergedLabel = getLabel(item);\n\n const iconVisible =\n !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;\n\n // https://github.com/ant-design/ant-design/issues/34145\n const content = typeof mergedLabel === 'number' ? mergedLabel : mergedLabel || value;\n // https://github.com/ant-design/ant-design/issues/26717\n let optionTitle = isTitleType(content) ? content.toString() : undefined;\n if (title !== undefined) {\n optionTitle = title;\n }\n\n return (\n <div\n {...pickAttrs(passedProps)}\n {...(!virtual ? getItemAriaProps(item, itemIndex) : {})}\n aria-selected={selected}\n className={optionClassName}\n title={optionTitle}\n onMouseMove={() => {\n if (activeIndex === itemIndex || disabled) {\n return;\n }\n setActive(itemIndex);\n }}\n onClick={() => {\n if (!disabled) {\n onSelectValue(value);\n }\n }}\n style={style}\n >\n <div className={`${optionPrefixCls}-content`}>\n {typeof optionRender === 'function'\n ? optionRender(item, { index: itemIndex })\n : content}\n </div>\n {React.isValidElement(menuItemSelectedIcon) || selected}\n {iconVisible && (\n <TransBtn\n className={`${itemPrefixCls}-option-state`}\n customizeIcon={menuItemSelectedIcon}\n customizeIconProps={{\n value,\n disabled,\n isSelected: selected,\n }}\n >\n {selected ? '✓' : null}\n </TransBtn>\n )}\n </div>\n );\n }}\n </List>\n </>\n );\n};\n\nconst RefOptionList = React.forwardRef(OptionList);\nRefOptionList.displayName = 'OptionList';\n\nexport default RefOptionList;\n"]}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* To match accessibility requirement, we always provide an input in the component.
|
|
3
|
-
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
|
|
4
|
-
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
|
5
|
-
*
|
|
6
|
-
* ref:
|
|
7
|
-
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
|
8
|
-
*
|
|
9
|
-
* New api:
|
|
10
|
-
* - listHeight
|
|
11
|
-
* - listItemHeight
|
|
12
|
-
* - component
|
|
13
|
-
*
|
|
14
|
-
* Remove deprecated api:
|
|
15
|
-
* - multiple
|
|
16
|
-
* - tags
|
|
17
|
-
* - combobox
|
|
18
|
-
* - firstActiveValue
|
|
19
|
-
* - dropdownMenuStyle
|
|
20
|
-
* - openClassName (Not list in api)
|
|
21
|
-
*
|
|
22
|
-
* Update:
|
|
23
|
-
* - `backfill` only support `combobox` mode
|
|
24
|
-
* - `combobox` mode not support `labelInValue` since it's meaningless
|
|
25
|
-
* - `getInputElement` only support `combobox` mode
|
|
26
|
-
* - `onChange` return OptionData instead of ReactNode
|
|
27
|
-
* - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
|
|
28
|
-
* - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
|
|
29
|
-
* - `combobox` mode not support `optionLabelProp`
|
|
30
|
-
*/
|
|
31
|
-
import * as React from 'react';
|
|
32
|
-
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef, DisplayValueType, RenderNode } from './BaseSelect';
|
|
33
|
-
import OptGroup from './OptGroup';
|
|
34
|
-
import Option from './Option';
|
|
35
|
-
import type { FlattenOptionData } from './interface';
|
|
36
|
-
export declare type OnActiveValue = (active: RawValueType, index: number, info?: {
|
|
37
|
-
source?: 'keyboard' | 'mouse';
|
|
38
|
-
}) => void;
|
|
39
|
-
export declare type OnInternalSelect = (value: RawValueType, info: {
|
|
40
|
-
selected: boolean;
|
|
41
|
-
}) => void;
|
|
42
|
-
export declare type RawValueType = string | number;
|
|
43
|
-
export interface LabelInValueType {
|
|
44
|
-
label: React.ReactNode;
|
|
45
|
-
value: RawValueType;
|
|
46
|
-
/** @deprecated `key` is useless since it should always same as `value` */
|
|
47
|
-
key?: React.Key;
|
|
48
|
-
}
|
|
49
|
-
export declare type DraftValueType = RawValueType | LabelInValueType | DisplayValueType | (RawValueType | LabelInValueType | DisplayValueType)[];
|
|
50
|
-
export declare type FilterFunc<OptionType> = (inputValue: string, option?: OptionType) => boolean;
|
|
51
|
-
export interface FieldNames {
|
|
52
|
-
value?: string;
|
|
53
|
-
label?: string;
|
|
54
|
-
groupLabel?: string;
|
|
55
|
-
options?: string;
|
|
56
|
-
}
|
|
57
|
-
export interface BaseOptionType {
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
[name: string]: any;
|
|
60
|
-
}
|
|
61
|
-
export interface DefaultOptionType extends BaseOptionType {
|
|
62
|
-
label: React.ReactNode;
|
|
63
|
-
value?: string | number | null;
|
|
64
|
-
children?: Omit<DefaultOptionType, 'children'>[];
|
|
65
|
-
}
|
|
66
|
-
export declare type SelectHandler<ValueType, OptionType extends BaseOptionType = DefaultOptionType> = (value: ValueType, option: OptionType) => void;
|
|
67
|
-
declare type ArrayElementType<T> = T extends (infer E)[] ? E : T;
|
|
68
|
-
export interface SelectProps<ValueType = any, OptionType extends BaseOptionType = DefaultOptionType> extends BaseSelectPropsWithoutPrivate {
|
|
69
|
-
prefixCls?: string;
|
|
70
|
-
id?: string;
|
|
71
|
-
backfill?: boolean;
|
|
72
|
-
fieldNames?: FieldNames;
|
|
73
|
-
/** @deprecated Use `searchValue` instead */
|
|
74
|
-
inputValue?: string;
|
|
75
|
-
searchValue?: string;
|
|
76
|
-
onSearch?: (value: string) => void;
|
|
77
|
-
autoClearSearchValue?: boolean;
|
|
78
|
-
onSelect?: SelectHandler<ArrayElementType<ValueType>, OptionType>;
|
|
79
|
-
onDeselect?: SelectHandler<ArrayElementType<ValueType>, OptionType>;
|
|
80
|
-
/**
|
|
81
|
-
* In Select, `false` means do nothing.
|
|
82
|
-
* In TreeSelect, `false` will highlight match item.
|
|
83
|
-
* It's by design.
|
|
84
|
-
*/
|
|
85
|
-
filterOption?: boolean | FilterFunc<OptionType>;
|
|
86
|
-
filterSort?: (optionA: OptionType, optionB: OptionType) => number;
|
|
87
|
-
optionFilterProp?: string;
|
|
88
|
-
optionLabelProp?: string;
|
|
89
|
-
children?: React.ReactNode;
|
|
90
|
-
options?: OptionType[];
|
|
91
|
-
optionRender?: (oriOption: FlattenOptionData<BaseOptionType>, info: {
|
|
92
|
-
index: number;
|
|
93
|
-
}) => React.ReactNode;
|
|
94
|
-
defaultActiveFirstOption?: boolean;
|
|
95
|
-
virtual?: boolean;
|
|
96
|
-
direction?: 'ltr' | 'rtl';
|
|
97
|
-
listHeight?: number;
|
|
98
|
-
listItemHeight?: number;
|
|
99
|
-
menuItemSelectedIcon?: RenderNode;
|
|
100
|
-
mode?: 'combobox' | 'multiple' | 'tags';
|
|
101
|
-
labelInValue?: boolean;
|
|
102
|
-
value?: ValueType | null;
|
|
103
|
-
defaultValue?: ValueType | null;
|
|
104
|
-
onChange?: (value: ValueType, option: OptionType | OptionType[]) => void;
|
|
105
|
-
}
|
|
106
|
-
declare const TypedSelect: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
|
|
107
|
-
children?: React.ReactNode;
|
|
108
|
-
} & {
|
|
109
|
-
ref?: React.Ref<BaseSelectRef> | undefined;
|
|
110
|
-
}) => React.ReactElement) & {
|
|
111
|
-
Option: typeof Option;
|
|
112
|
-
OptGroup: typeof OptGroup;
|
|
113
|
-
};
|
|
114
|
-
export default TypedSelect;
|
|
115
|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