tntd 2.7.23 → 2.7.24
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/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/locale/en_US.js +5 -2
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +4 -1
- package/es/locale/zh_CN.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
- package/es/tntd-rc-select/_util/DisabledContext.js +8 -0
- package/es/tntd-rc-select/_util/DisabledContext.js.map +1 -0
- package/es/tntd-rc-select/_util/FormItemInputContext.js +3 -0
- package/es/tntd-rc-select/_util/FormItemInputContext.js.map +1 -0
- package/es/tntd-rc-select/_util/PurePanel.js +55 -0
- package/es/tntd-rc-select/_util/PurePanel.js.map +1 -0
- package/es/tntd-rc-select/_util/SizeContext.js +3 -0
- package/es/tntd-rc-select/_util/SizeContext.js.map +1 -0
- package/es/tntd-rc-select/_util/context.js +14 -0
- package/es/tntd-rc-select/_util/context.js.map +1 -0
- package/es/tntd-rc-select/_util/defaultRenderEmpty.js +20 -0
- package/es/tntd-rc-select/_util/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-rc-select/_util/getIcons.js +52 -0
- package/es/tntd-rc-select/_util/getIcons.js.map +1 -0
- package/es/tntd-rc-select/_util/interface.js +5 -0
- package/es/tntd-rc-select/_util/interface.js.map +1 -0
- package/es/tntd-rc-select/_util/motion.js +38 -0
- package/es/tntd-rc-select/_util/motion.js.map +1 -0
- package/es/tntd-rc-select/_util/type.js +4 -0
- package/es/tntd-rc-select/_util/type.js.map +1 -0
- package/es/tntd-rc-select/_util/useCompactItemContext.js +24 -0
- package/es/tntd-rc-select/_util/useCompactItemContext.js.map +1 -0
- package/es/tntd-rc-select/_util/warning.js +15 -0
- package/es/tntd-rc-select/_util/warning.js.map +1 -0
- package/es/tntd-rc-select/img/no-data-s.png +0 -0
- package/es/tntd-rc-select/index.js +103 -0
- package/es/tntd-rc-select/index.js.map +1 -0
- package/es/tntd-rc-select/style/index.less +1657 -0
- package/es/tntd-select/_util/DisabledContext.js +8 -0
- package/es/tntd-select/_util/DisabledContext.js.map +1 -0
- package/es/tntd-select/_util/FormItemInputContext.js +3 -0
- package/es/tntd-select/_util/FormItemInputContext.js.map +1 -0
- package/es/tntd-select/_util/PurePanel.js +4 -17
- package/es/tntd-select/_util/PurePanel.js.map +1 -1
- package/es/tntd-select/_util/SizeContext.js +3 -0
- package/es/tntd-select/_util/SizeContext.js.map +1 -0
- package/es/tntd-select/_util/context.js +14 -0
- package/es/tntd-select/_util/context.js.map +1 -0
- package/es/tntd-select/_util/defaultRenderEmpty.js +20 -0
- package/es/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-select/_util/getIcons.js +52 -0
- package/es/tntd-select/_util/getIcons.js.map +1 -0
- package/es/tntd-select/_util/interface.js +5 -0
- package/es/tntd-select/_util/interface.js.map +1 -0
- package/es/tntd-select/_util/motion.js +15 -8
- package/es/tntd-select/_util/motion.js.map +1 -1
- package/es/tntd-select/_util/type.js +4 -0
- package/es/tntd-select/_util/type.js.map +1 -0
- package/es/tntd-select/_util/useCompactItemContext.js +24 -0
- package/es/tntd-select/_util/useCompactItemContext.js.map +1 -0
- package/es/tntd-select/_util/warning.js +14 -5
- package/es/tntd-select/_util/warning.js.map +1 -1
- package/es/tntd-select/index.js +7 -1
- package/es/tntd-select/index.js.map +1 -1
- package/es/tntd-select/rc-select/BaseSelect.js +429 -0
- package/es/tntd-select/rc-select/BaseSelect.js.map +1 -0
- package/es/tntd-select/rc-select/OptGroup.js +5 -0
- package/es/tntd-select/rc-select/OptGroup.js.map +1 -0
- package/es/tntd-select/rc-select/Option.js +5 -0
- package/es/tntd-select/rc-select/Option.js.map +1 -0
- package/es/tntd-select/rc-select/OptionList.js +257 -0
- package/es/tntd-select/rc-select/OptionList.js.map +1 -0
- package/es/tntd-select/rc-select/Select.js +428 -0
- package/es/tntd-select/rc-select/Select.js.map +1 -0
- package/es/tntd-select/rc-select/SelectContext.js +4 -0
- package/es/tntd-select/rc-select/SelectContext.js.map +1 -0
- package/es/tntd-select/rc-select/SelectTrigger.js +91 -0
- package/es/tntd-select/rc-select/SelectTrigger.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/Input.js +47 -0
- package/es/tntd-select/rc-select/Selector/Input.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js +97 -0
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/SingleSelector.js +45 -0
- package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
- package/es/tntd-select/rc-select/Selector/index.js +136 -0
- package/es/tntd-select/rc-select/Selector/index.js.map +1 -0
- package/es/tntd-select/rc-select/TransBtn.js +22 -0
- package/es/tntd-select/rc-select/TransBtn.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useAllowClear.js +25 -0
- package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useBaseProps.js +10 -0
- package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useCache.js +34 -0
- package/es/tntd-select/rc-select/hooks/useCache.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useDelayReset.js +24 -0
- package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js +55 -0
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useId.js +28 -0
- package/es/tntd-select/rc-select/hooks/useId.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +18 -0
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useLock.js +26 -0
- package/es/tntd-select/rc-select/hooks/useLock.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useOptions.js +45 -0
- package/es/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useRefFunc.js +14 -0
- package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +32 -0
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
- package/es/tntd-select/rc-select/index.js +8 -0
- package/es/tntd-select/rc-select/index.js.map +1 -0
- package/es/tntd-select/rc-select/interface.js +2 -0
- package/es/tntd-select/rc-select/interface.js.map +1 -0
- package/es/tntd-select/rc-select/utils/commonUtil.js +32 -0
- package/es/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/keyUtil.js +34 -0
- package/es/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/legacyUtil.js +32 -0
- package/es/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/platformUtil.js +5 -0
- package/es/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/valueUtil.js +99 -0
- package/es/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js +100 -0
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/locale/default.d.ts +4 -1
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +4 -1
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +5 -2
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +4 -1
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +4 -1
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
- package/lib/tntd-rc-select/_util/DisabledContext.d.ts +10 -0
- package/lib/tntd-rc-select/_util/DisabledContext.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/DisabledContext.js +35 -0
- package/lib/tntd-rc-select/_util/DisabledContext.js.map +1 -0
- package/lib/tntd-rc-select/_util/FormItemInputContext.d.ts +4 -0
- package/lib/tntd-rc-select/_util/FormItemInputContext.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/FormItemInputContext.js +29 -0
- package/lib/tntd-rc-select/_util/FormItemInputContext.js.map +1 -0
- package/lib/tntd-rc-select/_util/PurePanel.d.ts +9 -0
- package/lib/tntd-rc-select/_util/PurePanel.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/PurePanel.js +84 -0
- package/lib/tntd-rc-select/_util/PurePanel.js.map +1 -0
- package/lib/tntd-rc-select/_util/SizeContext.d.ts +4 -0
- package/lib/tntd-rc-select/_util/SizeContext.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/SizeContext.js +29 -0
- package/lib/tntd-rc-select/_util/SizeContext.js.map +1 -0
- package/lib/tntd-rc-select/_util/context.d.ts +42 -0
- package/lib/tntd-rc-select/_util/context.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/context.js +20 -0
- package/lib/tntd-rc-select/_util/context.js.map +1 -0
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts +5 -0
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +48 -0
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-rc-select/_util/getIcons.d.ts +25 -0
- package/lib/tntd-rc-select/_util/getIcons.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/getIcons.js +78 -0
- package/lib/tntd-rc-select/_util/getIcons.js.map +1 -0
- package/lib/tntd-rc-select/_util/interface.d.ts +25 -0
- package/lib/tntd-rc-select/_util/interface.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/interface.js +9 -0
- package/lib/tntd-rc-select/_util/interface.js.map +1 -0
- package/lib/tntd-rc-select/_util/motion.d.ts +9 -0
- package/lib/tntd-rc-select/_util/motion.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/motion.js +42 -0
- package/lib/tntd-rc-select/_util/motion.js.map +1 -0
- package/lib/tntd-rc-select/_util/type.d.ts +10 -0
- package/lib/tntd-rc-select/_util/type.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/type.js +9 -0
- package/lib/tntd-rc-select/_util/type.js.map +1 -0
- package/lib/tntd-rc-select/_util/useCompactItemContext.d.ts +9 -0
- package/lib/tntd-rc-select/_util/useCompactItemContext.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +54 -0
- package/lib/tntd-rc-select/_util/useCompactItemContext.js.map +1 -0
- package/lib/tntd-rc-select/_util/warning.d.ts +4 -0
- package/lib/tntd-rc-select/_util/warning.d.ts.map +1 -0
- package/lib/tntd-rc-select/_util/warning.js +40 -0
- package/lib/tntd-rc-select/_util/warning.js.map +1 -0
- package/lib/tntd-rc-select/img/no-data-s.png +0 -0
- package/lib/tntd-rc-select/index.d.ts +44 -0
- package/lib/tntd-rc-select/index.d.ts.map +1 -0
- package/lib/tntd-rc-select/index.js +131 -0
- package/lib/tntd-rc-select/index.js.map +1 -0
- package/lib/tntd-rc-select/style/index.less +1657 -0
- package/lib/tntd-select/_util/DisabledContext.d.ts +10 -0
- package/lib/tntd-select/_util/DisabledContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/DisabledContext.js +35 -0
- package/lib/tntd-select/_util/DisabledContext.js.map +1 -0
- package/lib/tntd-select/_util/FormItemInputContext.d.ts +4 -0
- package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/FormItemInputContext.js +29 -0
- package/lib/tntd-select/_util/FormItemInputContext.js.map +1 -0
- package/lib/tntd-select/_util/PurePanel.d.ts +3 -2
- package/lib/tntd-select/_util/PurePanel.d.ts.map +1 -1
- package/lib/tntd-select/_util/PurePanel.js +4 -19
- package/lib/tntd-select/_util/PurePanel.js.map +1 -1
- package/lib/tntd-select/_util/SizeContext.d.ts +4 -0
- package/lib/tntd-select/_util/SizeContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/SizeContext.js +29 -0
- package/lib/tntd-select/_util/SizeContext.js.map +1 -0
- package/lib/tntd-select/_util/context.d.ts +42 -0
- package/lib/tntd-select/_util/context.d.ts.map +1 -0
- package/lib/tntd-select/_util/context.js +20 -0
- package/lib/tntd-select/_util/context.js.map +1 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts +5 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.js +48 -0
- package/lib/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-select/_util/getIcons.d.ts +25 -0
- package/lib/tntd-select/_util/getIcons.d.ts.map +1 -0
- package/lib/tntd-select/_util/getIcons.js +78 -0
- package/lib/tntd-select/_util/getIcons.js.map +1 -0
- package/lib/tntd-select/_util/interface.d.ts +25 -0
- package/lib/tntd-select/_util/interface.d.ts.map +1 -0
- package/lib/tntd-select/_util/interface.js +9 -0
- package/lib/tntd-select/_util/interface.js.map +1 -0
- package/lib/tntd-select/_util/motion.d.ts +5 -4
- package/lib/tntd-select/_util/motion.d.ts.map +1 -1
- package/lib/tntd-select/_util/motion.js +16 -8
- package/lib/tntd-select/_util/motion.js.map +1 -1
- package/lib/tntd-select/_util/type.d.ts +10 -0
- package/lib/tntd-select/_util/type.d.ts.map +1 -0
- package/lib/tntd-select/_util/type.js +9 -0
- package/lib/tntd-select/_util/type.js.map +1 -0
- package/lib/tntd-select/_util/useCompactItemContext.d.ts +9 -0
- package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +1 -0
- package/lib/tntd-select/_util/useCompactItemContext.js +54 -0
- package/lib/tntd-select/_util/useCompactItemContext.js.map +1 -0
- package/lib/tntd-select/_util/warning.d.ts +3 -4
- package/lib/tntd-select/_util/warning.d.ts.map +1 -1
- package/lib/tntd-select/_util/warning.js +13 -5
- package/lib/tntd-select/_util/warning.js.map +1 -1
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +7 -1
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tntd-select/rc-select/BaseSelect.d.ts +114 -0
- package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/BaseSelect.js +459 -0
- package/lib/tntd-select/rc-select/BaseSelect.js.map +1 -0
- package/lib/tntd-select/rc-select/OptGroup.d.ts +13 -0
- package/lib/tntd-select/rc-select/OptGroup.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/OptGroup.js +7 -0
- package/lib/tntd-select/rc-select/OptGroup.js.map +1 -0
- package/lib/tntd-select/rc-select/Option.d.ts +15 -0
- package/lib/tntd-select/rc-select/Option.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Option.js +7 -0
- package/lib/tntd-select/rc-select/Option.js.map +1 -0
- package/lib/tntd-select/rc-select/OptionList.d.ts +11 -0
- package/lib/tntd-select/rc-select/OptionList.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/OptionList.js +285 -0
- package/lib/tntd-select/rc-select/OptionList.js.map +1 -0
- package/lib/tntd-select/rc-select/Select.d.ts +115 -0
- package/lib/tntd-select/rc-select/Select.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Select.js +456 -0
- package/lib/tntd-select/rc-select/Select.js.map +1 -0
- package/lib/tntd-select/rc-select/SelectContext.d.ts +23 -0
- package/lib/tntd-select/rc-select/SelectContext.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/SelectContext.js +29 -0
- package/lib/tntd-select/rc-select/SelectContext.js.map +1 -0
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts +31 -0
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/SelectTrigger.js +119 -0
- package/lib/tntd-select/rc-select/SelectTrigger.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/Input.d.ts +27 -0
- package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/Input.js +75 -0
- package/lib/tntd-select/rc-select/Selector/Input.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +17 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +125 -0
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +9 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js +73 -0
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
- package/lib/tntd-select/rc-select/Selector/index.d.ts +83 -0
- package/lib/tntd-select/rc-select/Selector/index.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/Selector/index.js +164 -0
- package/lib/tntd-select/rc-select/Selector/index.js.map +1 -0
- package/lib/tntd-select/rc-select/TransBtn.d.ts +13 -0
- package/lib/tntd-select/rc-select/TransBtn.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/TransBtn.js +50 -0
- package/lib/tntd-select/rc-select/TransBtn.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +9 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js +32 -0
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +14 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js +37 -0
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts +8 -0
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useCache.js +59 -0
- package/lib/tntd-select/rc-select/hooks/useCache.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js +50 -0
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +4 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +80 -0
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useId.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useId.js +59 -0
- package/lib/tntd-select/rc-select/hooks/useId.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +44 -0
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts +8 -0
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useLock.js +52 -0
- package/lib/tntd-select/rc-select/hooks/useLock.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +12 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.js +71 -0
- package/lib/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +6 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js +40 -0
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +2 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +58 -0
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
- package/lib/tntd-select/rc-select/index.d.ts +11 -0
- package/lib/tntd-select/rc-select/index.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/index.js +17 -0
- package/lib/tntd-select/rc-select/index.js.map +1 -0
- package/lib/tntd-select/rc-select/interface.d.ts +23 -0
- package/lib/tntd-select/rc-select/interface.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/interface.js +3 -0
- package/lib/tntd-select/rc-select/interface.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +10 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.js +39 -0
- package/lib/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +3 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.js +41 -0
- package/lib/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +4 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.js +62 -0
- package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +2 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.js +9 -0
- package/lib/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +24 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.js +109 -0
- package/lib/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +5 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +1 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +130 -0
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.SizeContext = void 0;
|
|
27
|
+
const React = __importStar(require("react"));
|
|
28
|
+
exports.SizeContext = React.createContext(undefined);
|
|
29
|
+
//# sourceMappingURL=SizeContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SizeContext.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/SizeContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAGjB,QAAA,WAAW,GAAG,KAAK,CAAC,aAAa,CAAW,SAAS,CAAC,CAAA","sourcesContent":["import * as React from 'react'\nimport type { SizeType } from './interface'\n\nexport const SizeContext = React.createContext<SizeType>(undefined)\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RenderEmptyHandler } from './defaultRenderEmpty';
|
|
3
|
+
export interface CSPConfig {
|
|
4
|
+
nonce?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
7
|
+
export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
8
|
+
export declare type RequiredMark = boolean | 'optional';
|
|
9
|
+
export declare const defaultIconPrefixCls = "anticon";
|
|
10
|
+
export interface ConfigConsumerProps {
|
|
11
|
+
getTargetContainer?: () => HTMLElement;
|
|
12
|
+
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
|
13
|
+
rootPrefixCls?: string;
|
|
14
|
+
iconPrefixCls?: string;
|
|
15
|
+
getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
|
|
16
|
+
renderEmpty?: RenderEmptyHandler;
|
|
17
|
+
csp?: CSPConfig;
|
|
18
|
+
autoInsertSpaceInButton?: boolean;
|
|
19
|
+
input?: {
|
|
20
|
+
autoComplete?: string;
|
|
21
|
+
};
|
|
22
|
+
pagination?: {
|
|
23
|
+
showSizeChanger?: boolean;
|
|
24
|
+
};
|
|
25
|
+
locale?: object;
|
|
26
|
+
pageHeader?: {
|
|
27
|
+
ghost: boolean;
|
|
28
|
+
};
|
|
29
|
+
direction?: DirectionType;
|
|
30
|
+
space?: {
|
|
31
|
+
size?: SizeType | number;
|
|
32
|
+
};
|
|
33
|
+
virtual?: boolean;
|
|
34
|
+
dropdownMatchSelectWidth?: boolean;
|
|
35
|
+
form?: {
|
|
36
|
+
requiredMark?: RequiredMark;
|
|
37
|
+
colon?: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare const ConfigContext: React.Context<ConfigConsumerProps>;
|
|
41
|
+
export declare const ConfigConsumer: React.Consumer<ConfigConsumerProps>;
|
|
42
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAQD,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAErD,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D,oBAAY,YAAY,GAAG,OAAO,GAAG,UAAU,CAAA;AAE/C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAA;IACtC,iBAAiB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,WAAW,CAAA;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACzE,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,UAAU,CAAC,EAAE;QACX,eAAe,CAAC,EAAE,OAAO,CAAA;KAC1B,CAAA;IACD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,OAAO,CAAA;KACf,CAAA;IACD,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;KACzB,CAAA;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,CAAA;CACF;AAGD,eAAO,MAAM,aAAa,oCAGxB,CAAA;AAEF,eAAO,MAAM,cAAc,qCAAyB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ConfigConsumer = exports.ConfigContext = exports.defaultIconPrefixCls = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
9
|
+
if (customizePrefixCls)
|
|
10
|
+
return customizePrefixCls;
|
|
11
|
+
return suffixCls ? `tntd-rc-${suffixCls}` : 'tntd-rc';
|
|
12
|
+
};
|
|
13
|
+
exports.defaultIconPrefixCls = 'anticon';
|
|
14
|
+
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
|
|
15
|
+
exports.ConfigContext = react_1.default.createContext({
|
|
16
|
+
// We provide a default function for Context without provider
|
|
17
|
+
getPrefixCls: defaultGetPrefixCls,
|
|
18
|
+
});
|
|
19
|
+
exports.ConfigConsumer = exports.ConfigContext.Consumer;
|
|
20
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/context.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAOzB,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,kBAA2B,EAAE,EAAE;IAC9E,IAAI,kBAAkB;QAAE,OAAO,kBAAkB,CAAA;IAEjD,OAAO,SAAS,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;AACvD,CAAC,CAAA;AAQY,QAAA,oBAAoB,GAAG,SAAS,CAAA;AAiC7C,4FAA4F;AAC/E,QAAA,aAAa,GAAG,eAAK,CAAC,aAAa,CAAsB;IACpE,6DAA6D;IAC7D,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAA;AAEW,QAAA,cAAc,GAAG,qBAAa,CAAC,QAAQ,CAAA","sourcesContent":["import React from 'react'\nimport type { RenderEmptyHandler } from './defaultRenderEmpty'\n\nexport interface CSPConfig {\n nonce?: string\n}\n\nconst defaultGetPrefixCls = (suffixCls?: string, customizePrefixCls?: string) => {\n if (customizePrefixCls) return customizePrefixCls\n\n return suffixCls ? `tntd-rc-${suffixCls}` : 'tntd-rc'\n}\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type RequiredMark = boolean | 'optional'\n\nexport const defaultIconPrefixCls = 'anticon'\n\nexport interface ConfigConsumerProps {\n getTargetContainer?: () => HTMLElement\n getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement\n rootPrefixCls?: string\n iconPrefixCls?: string\n getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string\n renderEmpty?: RenderEmptyHandler\n csp?: CSPConfig\n autoInsertSpaceInButton?: boolean\n input?: {\n autoComplete?: string\n }\n pagination?: {\n showSizeChanger?: boolean\n }\n locale?: object\n pageHeader?: {\n ghost: boolean\n }\n direction?: DirectionType\n space?: {\n size?: SizeType | number\n }\n virtual?: boolean\n dropdownMatchSelectWidth?: boolean\n form?: {\n requiredMark?: RequiredMark\n colon?: boolean\n }\n}\n\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.\nexport const ConfigContext = React.createContext<ConfigConsumerProps>({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n})\n\nexport const ConfigConsumer = ConfigContext.Consumer\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultRenderEmpty.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/defaultRenderEmpty.tsx"],"names":[],"mappings":";AAWA,QAAA,MAAM,kBAAkB,kBAAmB,MAAM,gBAwBhD,CAAA;AAED,oBAAY,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
/*
|
|
30
|
+
* @Descripttion: 空状态
|
|
31
|
+
* @Author: 郑泳健
|
|
32
|
+
* @Date: 2022-12-19 16:45:16
|
|
33
|
+
* @LastEditors: 郑泳健
|
|
34
|
+
* @LastEditTime: 2023-02-07 11:47:03
|
|
35
|
+
*/
|
|
36
|
+
const React = __importStar(require("react"));
|
|
37
|
+
const context_1 = require("./context");
|
|
38
|
+
const LocaleReceiver_1 = __importDefault(require("antd/es/locale-provider/LocaleReceiver"));
|
|
39
|
+
const defaultRenderEmpty = (componentName) => (React.createElement(context_1.ConfigConsumer, null, ({ getPrefixCls }) => {
|
|
40
|
+
const prefix = getPrefixCls('empty');
|
|
41
|
+
return (React.createElement(LocaleReceiver_1.default, { componentName: "TntdSelect" }, (locale) => {
|
|
42
|
+
return (React.createElement("div", { className: `tntd-select-no-data-wrapper ${prefix}` },
|
|
43
|
+
React.createElement("img", { style: { width: 80, height: 50 }, src: require('../img/no-data-s.png').default }),
|
|
44
|
+
React.createElement("div", { className: "tntd-select-no-data-content" }, locale.noData)));
|
|
45
|
+
}));
|
|
46
|
+
}));
|
|
47
|
+
exports.default = defaultRenderEmpty;
|
|
48
|
+
//# sourceMappingURL=defaultRenderEmpty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultRenderEmpty.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/defaultRenderEmpty.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA8B;AAC9B,uCAA0C;AAC1C,4FAAmE;AAEnE,MAAM,kBAAkB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAAC,CACpD,oBAAC,wBAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAEpC,OAAO,CACL,oBAAC,wBAAc,IAAC,aAAa,EAAC,YAAY,IACvC,CAAC,MAAM,EAAE,EAAE;QACV,OAAO,CACL,6BAAK,SAAS,EAAE,+BAA+B,MAAM,EAAE;YACrD,6BACE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,GAAG,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,GAC5C;YACF,6BAAK,SAAS,EAAC,6BAA6B,IACxC,MAAmC,CAAC,MAAM,CACxC,CACF,CACP,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACc,CAClB,CAAA;AAID,kBAAe,kBAAkB,CAAA","sourcesContent":["/*\n * @Descripttion: 空状态\n * @Author: 郑泳健\n * @Date: 2022-12-19 16:45:16\n * @LastEditors: 郑泳健\n * @LastEditTime: 2023-02-07 11:47:03\n */\nimport * as React from 'react'\nimport { ConfigConsumer } from './context'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\n\nconst defaultRenderEmpty = (componentName: string) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefix = getPrefixCls('empty')\n\n return (\n <LocaleReceiver componentName=\"TntdSelect\">\n {(locale) => {\n return (\n <div className={`tntd-select-no-data-wrapper ${prefix}`}>\n <img\n style={{ width: 80, height: 50 }}\n src={require('../img/no-data-s.png').default}\n />\n <div className=\"tntd-select-no-data-content\">\n {(locale as Record<'noData', object>).noData}\n </div>\n </div>\n )\n }}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n\nexport type RenderEmptyHandler = typeof defaultRenderEmpty\n\nexport default defaultRenderEmpty\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
|
|
4
|
+
export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showArrow, feedbackIcon, }: {
|
|
5
|
+
suffixIcon?: React.ReactNode;
|
|
6
|
+
clearIcon?: RenderNode;
|
|
7
|
+
menuItemSelectedIcon?: RenderNode;
|
|
8
|
+
removeIcon?: RenderNode;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
hasFeedback?: boolean;
|
|
12
|
+
feedbackIcon?: ReactNode;
|
|
13
|
+
prefixCls: string;
|
|
14
|
+
showArrow?: boolean;
|
|
15
|
+
}): {
|
|
16
|
+
clearIcon: {};
|
|
17
|
+
suffixIcon: JSX.Element | (({ open, showSearch }: {
|
|
18
|
+
open: boolean;
|
|
19
|
+
showSearch: boolean;
|
|
20
|
+
}) => JSX.Element);
|
|
21
|
+
itemIcon: {} | null;
|
|
22
|
+
removeIcon: {} | null;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=getIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIcons.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/getIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,aAAK,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;AAErE,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,GACb,EAAE;IACD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,oBAAoB,CAAC,EAAE,UAAU,CAAA;IACjC,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;;;cAoBqD,OAAO;oBAAc,OAAO;;;;EA+BjF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const React = __importStar(require("react"));
|
|
27
|
+
const antd_1 = require("antd");
|
|
28
|
+
function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showArrow, feedbackIcon, }) {
|
|
29
|
+
// Clear Icon
|
|
30
|
+
const mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : React.createElement(antd_1.Icon, { type: "close-circle", theme: "filled" });
|
|
31
|
+
// Validation Feedback Icon
|
|
32
|
+
const getSuffixIconNode = (arrowIcon) => (React.createElement(React.Fragment, null,
|
|
33
|
+
showArrow !== false && arrowIcon,
|
|
34
|
+
hasFeedback && feedbackIcon));
|
|
35
|
+
// Arrow item icon
|
|
36
|
+
let mergedSuffixIcon = null;
|
|
37
|
+
if (suffixIcon !== undefined) {
|
|
38
|
+
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
39
|
+
}
|
|
40
|
+
else if (loading) {
|
|
41
|
+
mergedSuffixIcon = getSuffixIconNode(React.createElement(antd_1.Icon, { type: "loading" }));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const iconCls = `${prefixCls}-suffix`;
|
|
45
|
+
mergedSuffixIcon = ({ open, showSearch }) => {
|
|
46
|
+
if (open && showSearch) {
|
|
47
|
+
return getSuffixIconNode(React.createElement(antd_1.Icon, { className: iconCls, type: "search" }));
|
|
48
|
+
}
|
|
49
|
+
return getSuffixIconNode(React.createElement(antd_1.Icon, { className: iconCls, type: "down" }));
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
// Checked item icon
|
|
53
|
+
let mergedItemIcon = null;
|
|
54
|
+
if (menuItemSelectedIcon !== undefined) {
|
|
55
|
+
mergedItemIcon = menuItemSelectedIcon;
|
|
56
|
+
}
|
|
57
|
+
else if (multiple) {
|
|
58
|
+
mergedItemIcon = React.createElement(antd_1.Icon, { type: "check" });
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
mergedItemIcon = null;
|
|
62
|
+
}
|
|
63
|
+
let mergedRemoveIcon = null;
|
|
64
|
+
if (removeIcon !== undefined) {
|
|
65
|
+
mergedRemoveIcon = removeIcon;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
mergedRemoveIcon = React.createElement(antd_1.Icon, { type: "close" });
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
clearIcon: mergedClearIcon,
|
|
72
|
+
suffixIcon: mergedSuffixIcon,
|
|
73
|
+
itemIcon: mergedItemIcon,
|
|
74
|
+
removeIcon: mergedRemoveIcon,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.default = getIcons;
|
|
78
|
+
//# sourceMappingURL=getIcons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIcons.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/getIcons.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAA8B;AAC9B,+BAA2B;AAI3B,SAAwB,QAAQ,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,GAYb;IACC,aAAa;IACb,MAAM,eAAe,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,oBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,CAAA;IAEhF,2BAA2B;IAC3B,MAAM,iBAAiB,GAAG,CAAC,SAAqB,EAAE,EAAE,CAAC,CACnD;QACG,SAAS,KAAK,KAAK,IAAI,SAAS;QAChC,WAAW,IAAI,YAAY,CAC3B,CACJ,CAAA;IAED,kBAAkB;IAClB,IAAI,gBAAgB,GAAG,IAAI,CAAA;IAC3B,IAAI,UAAU,KAAK,SAAS,EAAE;QAC5B,gBAAgB,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAA;KACjD;SAAM,IAAI,OAAO,EAAE;QAClB,gBAAgB,GAAG,iBAAiB,CAAC,oBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,GAAG,CAAC,CAAA;KAC9D;SAAM;QACL,MAAM,OAAO,GAAG,GAAG,SAAS,SAAS,CAAA;QACrC,gBAAgB,GAAG,CAAC,EAAE,IAAI,EAAE,UAAU,EAA0C,EAAE,EAAE;YAClF,IAAI,IAAI,IAAI,UAAU,EAAE;gBACtB,OAAO,iBAAiB,CAAC,oBAAC,WAAI,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,QAAQ,GAAG,CAAC,CAAA;aACrE;YACD,OAAO,iBAAiB,CAAC,oBAAC,WAAI,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,GAAG,CAAC,CAAA;QACpE,CAAC,CAAA;KACF;IAED,oBAAoB;IACpB,IAAI,cAAc,GAAG,IAAI,CAAA;IACzB,IAAI,oBAAoB,KAAK,SAAS,EAAE;QACtC,cAAc,GAAG,oBAAoB,CAAA;KACtC;SAAM,IAAI,QAAQ,EAAE;QACnB,cAAc,GAAG,oBAAC,WAAI,IAAC,IAAI,EAAC,OAAO,GAAG,CAAA;KACvC;SAAM;QACL,cAAc,GAAG,IAAI,CAAA;KACtB;IAED,IAAI,gBAAgB,GAAG,IAAI,CAAA;IAC3B,IAAI,UAAU,KAAK,SAAS,EAAE;QAC5B,gBAAgB,GAAG,UAAU,CAAA;KAC9B;SAAM;QACL,gBAAgB,GAAG,oBAAC,WAAI,IAAC,IAAI,EAAC,OAAO,GAAG,CAAA;KACzC;IAED,OAAO;QACL,SAAS,EAAE,eAAe;QAC1B,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,gBAAgB;KAC7B,CAAA;AACH,CAAC;AAzED,2BAyEC","sourcesContent":["import type { ReactNode } from 'react'\nimport * as React from 'react'\nimport { Icon } from 'antd'\n\ntype RenderNode = React.ReactNode | ((props: any) => React.ReactNode)\n\nexport default function getIcons({\n suffixIcon,\n clearIcon,\n menuItemSelectedIcon,\n removeIcon,\n loading,\n multiple,\n hasFeedback,\n prefixCls,\n showArrow,\n feedbackIcon,\n}: {\n suffixIcon?: React.ReactNode\n clearIcon?: RenderNode\n menuItemSelectedIcon?: RenderNode\n removeIcon?: RenderNode\n loading?: boolean\n multiple?: boolean\n hasFeedback?: boolean\n feedbackIcon?: ReactNode\n prefixCls: string\n showArrow?: boolean\n}) {\n // Clear Icon\n const mergedClearIcon = clearIcon ?? <Icon type=\"close-circle\" theme=\"filled\" />\n\n // Validation Feedback Icon\n const getSuffixIconNode = (arrowIcon?: ReactNode) => (\n <>\n {showArrow !== false && arrowIcon}\n {hasFeedback && feedbackIcon}\n </>\n )\n\n // Arrow item icon\n let mergedSuffixIcon = null\n if (suffixIcon !== undefined) {\n mergedSuffixIcon = getSuffixIconNode(suffixIcon)\n } else if (loading) {\n mergedSuffixIcon = getSuffixIconNode(<Icon type=\"loading\" />)\n } else {\n const iconCls = `${prefixCls}-suffix`\n mergedSuffixIcon = ({ open, showSearch }: { open: boolean; showSearch: boolean }) => {\n if (open && showSearch) {\n return getSuffixIconNode(<Icon className={iconCls} type=\"search\" />)\n }\n return getSuffixIconNode(<Icon className={iconCls} type=\"down\" />)\n }\n }\n\n // Checked item icon\n let mergedItemIcon = null\n if (menuItemSelectedIcon !== undefined) {\n mergedItemIcon = menuItemSelectedIcon\n } else if (multiple) {\n mergedItemIcon = <Icon type=\"check\" />\n } else {\n mergedItemIcon = null\n }\n\n let mergedRemoveIcon = null\n if (removeIcon !== undefined) {\n mergedRemoveIcon = removeIcon\n } else {\n mergedRemoveIcon = <Icon type=\"close\" />\n }\n\n return {\n clearIcon: mergedClearIcon,\n suffixIcon: mergedSuffixIcon,\n itemIcon: mergedItemIcon,\n removeIcon: mergedRemoveIcon,\n }\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement, JSXElementConstructor } from 'react';
|
|
2
|
+
export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
3
|
+
export declare type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
4
|
+
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
5
|
+
declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
|
6
|
+
export declare type ValidateStatus = typeof ValidateStatuses[number];
|
|
7
|
+
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
8
|
+
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
9
|
+
declare const InputStatuses: ["warning", "error", ""];
|
|
10
|
+
export declare type InputStatus = typeof InputStatuses[number];
|
|
11
|
+
export interface SpaceCompactItemContextType {
|
|
12
|
+
compactSize?: SizeType;
|
|
13
|
+
compactDirection?: 'horizontal' | 'vertical';
|
|
14
|
+
isFirstItem?: boolean;
|
|
15
|
+
isLastItem?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface FormItemStatusContextProps {
|
|
18
|
+
isFormItemInput?: boolean;
|
|
19
|
+
status?: ValidateStatus;
|
|
20
|
+
hasFeedback?: boolean;
|
|
21
|
+
feedbackIcon?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare type DropdownRender = (menu: ReactElement<any, string | JSXElementConstructor<any>>) => ReactElement<any, string | JSXElementConstructor<any>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAEhE,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAErD,eAAO,MAAM,KAAK,uCAA2C,CAAA;AAE7D,QAAA,MAAM,gBAAgB,mDAAyD,CAAA;AAE/E,oBAAY,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE5D,QAAA,MAAM,gBAAgB,sDAA4D,CAAA;AAElF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAEnE,QAAA,MAAM,aAAa,0BAAgC,CAAA;AAEnD,oBAAY,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,gBAAgB,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC/B;AAED,oBAAY,cAAc,GAAG,CAC3B,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,KACzD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tuple = void 0;
|
|
4
|
+
const tuple = (...args) => args;
|
|
5
|
+
exports.tuple = tuple;
|
|
6
|
+
const ValidateStatuses = (0, exports.tuple)('success', 'warning', 'error', 'validating', '');
|
|
7
|
+
const SelectPlacements = (0, exports.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
8
|
+
const InputStatuses = (0, exports.tuple)('warning', 'error', '');
|
|
9
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/interface.ts"],"names":[],"mappings":";;;AAMO,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAhD,QAAA,KAAK,SAA2C;AAE7D,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;AAI/E,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAIlF,MAAM,aAAa,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA","sourcesContent":["import type { ReactElement, JSXElementConstructor } from 'react'\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport const tuple = <T extends string[]>(...args: T) => args\n\nconst ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '')\n\nexport type ValidateStatus = typeof ValidateStatuses[number]\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight')\n\nexport type SelectCommonPlacement = typeof SelectPlacements[number]\n\nconst InputStatuses = tuple('warning', 'error', '')\n\nexport type InputStatus = typeof InputStatuses[number]\n\nexport interface SpaceCompactItemContextType {\n compactSize?: SizeType\n compactDirection?: 'horizontal' | 'vertical'\n isFirstItem?: boolean\n isLastItem?: boolean\n}\n\nexport interface FormItemStatusContextProps {\n isFormItemInput?: boolean\n status?: ValidateStatus\n hasFeedback?: boolean\n feedbackIcon?: React.ReactNode\n}\n\nexport type DropdownRender = (\n menu: ReactElement<any, string | JSXElementConstructor<any>>\n) => ReactElement<any, string | JSXElementConstructor<any>>\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CSSMotionProps } from 'rc-motion';
|
|
2
|
+
declare const collapseMotion: CSSMotionProps;
|
|
3
|
+
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
4
|
+
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
5
|
+
declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
|
|
6
|
+
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string | undefined) => string;
|
|
7
|
+
export { getTransitionName, getTransitionDirection };
|
|
8
|
+
export default collapseMotion;
|
|
9
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA6C,MAAM,WAAW,CAAA;AAc1F,QAAA,MAAM,cAAc,EAAE,cAYrB,CAAA;AAED,QAAA,MAAM,gBAAgB,sDAA4D,CAAA;AAClF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAEnE,QAAA,MAAM,sBAAsB,cAAe,qBAAqB,GAAG,SAAS,8BAK3E,CAAA;AAED,QAAA,MAAM,iBAAiB,kBAAmB,MAAM,UAAU,MAAM,gDAK/D,CAAA;AACD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAA;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTransitionDirection = exports.getTransitionName = void 0;
|
|
4
|
+
const type_1 = require("./type");
|
|
5
|
+
// ================== Collapse Motion ==================
|
|
6
|
+
const getCollapsedHeight = () => ({ height: 0, opacity: 0 });
|
|
7
|
+
const getRealHeight = (node) => {
|
|
8
|
+
const { scrollHeight } = node;
|
|
9
|
+
return { height: scrollHeight, opacity: 1 };
|
|
10
|
+
};
|
|
11
|
+
const getCurrentHeight = (node) => ({ height: node ? node.offsetHeight : 0 });
|
|
12
|
+
const skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
|
|
13
|
+
const collapseMotion = {
|
|
14
|
+
motionName: 'ant-motion-collapse',
|
|
15
|
+
onAppearStart: getCollapsedHeight,
|
|
16
|
+
onEnterStart: getCollapsedHeight,
|
|
17
|
+
onAppearActive: getRealHeight,
|
|
18
|
+
onEnterActive: getRealHeight,
|
|
19
|
+
onLeaveStart: getCurrentHeight,
|
|
20
|
+
onLeaveActive: getCollapsedHeight,
|
|
21
|
+
onAppearEnd: skipOpacityTransition,
|
|
22
|
+
onEnterEnd: skipOpacityTransition,
|
|
23
|
+
onLeaveEnd: skipOpacityTransition,
|
|
24
|
+
motionDeadline: 500,
|
|
25
|
+
};
|
|
26
|
+
const SelectPlacements = (0, type_1.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
27
|
+
const getTransitionDirection = (placement) => {
|
|
28
|
+
if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
|
|
29
|
+
return `slide-down`;
|
|
30
|
+
}
|
|
31
|
+
return `slide-up`;
|
|
32
|
+
};
|
|
33
|
+
exports.getTransitionDirection = getTransitionDirection;
|
|
34
|
+
const getTransitionName = (rootPrefixCls, motion, transitionName) => {
|
|
35
|
+
if (transitionName !== undefined) {
|
|
36
|
+
return transitionName;
|
|
37
|
+
}
|
|
38
|
+
return `${rootPrefixCls}-${motion}`;
|
|
39
|
+
};
|
|
40
|
+
exports.getTransitionName = getTransitionName;
|
|
41
|
+
exports.default = collapseMotion;
|
|
42
|
+
//# sourceMappingURL=motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/motion.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAE9B,wDAAwD;AACxD,MAAM,kBAAkB,GAAuB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;AAChF,MAAM,aAAa,GAAuB,CAAC,IAAI,EAAE,EAAE;IACjD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAA;AAC7C,CAAC,CAAA;AACD,MAAM,gBAAgB,GAAuB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AACjG,MAAM,qBAAqB,GAA0B,CAAC,CAAC,EAAE,KAAkB,EAAE,EAAE,CAC7E,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,MAAK,IAAI,IAAK,KAAyB,CAAC,YAAY,KAAK,QAAQ,CAAA;AAElF,MAAM,cAAc,GAAmB;IACrC,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,kBAAkB;IAChC,cAAc,EAAE,aAAa;IAC7B,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,qBAAqB;IACjC,UAAU,EAAE,qBAAqB;IACjC,cAAc,EAAE,GAAG;CACpB,CAAA;AAED,MAAM,gBAAgB,GAAG,IAAA,YAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAGlF,MAAM,sBAAsB,GAAG,CAAC,SAA4C,EAAE,EAAE;IAC9E,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,UAAU,CAAC,EAAE;QACpF,OAAO,YAAY,CAAA;KACpB;IACD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAQ2B,wDAAsB;AANlD,MAAM,iBAAiB,GAAG,CAAC,aAAqB,EAAE,MAAc,EAAE,cAAuB,EAAE,EAAE;IAC3F,IAAI,cAAc,KAAK,SAAS,EAAE;QAChC,OAAO,cAAc,CAAA;KACtB;IACD,OAAO,GAAG,aAAa,IAAI,MAAM,EAAE,CAAA;AACrC,CAAC,CAAA;AACQ,8CAAiB;AAC1B,kBAAe,cAAc,CAAA","sourcesContent":["import type { CSSMotionProps, MotionEndEventHandler, MotionEventHandler } from 'rc-motion'\nimport type { MotionEvent } from 'rc-motion/lib/interface'\nimport { tuple } from './type'\n\n// ================== Collapse Motion ==================\nconst getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 })\nconst getRealHeight: MotionEventHandler = (node) => {\n const { scrollHeight } = node\n return { height: scrollHeight, opacity: 1 }\n}\nconst getCurrentHeight: MotionEventHandler = (node) => ({ height: node ? node.offsetHeight : 0 })\nconst skipOpacityTransition: MotionEndEventHandler = (_, event: MotionEvent) =>\n event?.deadline === true || (event as TransitionEvent).propertyName === 'height'\n\nconst collapseMotion: CSSMotionProps = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500,\n}\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight')\nexport type SelectCommonPlacement = typeof SelectPlacements[number]\n\nconst getTransitionDirection = (placement: SelectCommonPlacement | undefined) => {\n if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {\n return `slide-down`\n }\n return `slide-up`\n}\n\nconst getTransitionName = (rootPrefixCls: string, motion: string, transitionName?: string) => {\n if (transitionName !== undefined) {\n return transitionName\n }\n return `${rootPrefixCls}-${motion}`\n}\nexport { getTransitionName, getTransitionDirection }\nexport default collapseMotion\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
|
+
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
3
|
+
/**
|
|
4
|
+
* https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
|
5
|
+
* performing indexing
|
|
6
|
+
*/
|
|
7
|
+
export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
8
|
+
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
9
|
+
export declare type LiteralUnion<T extends U, U> = T | (U & {});
|
|
10
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/type.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK,uCAA2C,CAAA;AAE7D,eAAO,MAAM,QAAQ,uCAA2C,CAAA;AAEhE;;;GAGG;AACH,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAEjG,2DAA2D;AAC3D,oBAAY,YAAY,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tupleNum = exports.tuple = void 0;
|
|
4
|
+
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
|
|
5
|
+
const tuple = (...args) => args;
|
|
6
|
+
exports.tuple = tuple;
|
|
7
|
+
const tupleNum = (...args) => args;
|
|
8
|
+
exports.tupleNum = tupleNum;
|
|
9
|
+
//# sourceMappingURL=type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/type.ts"],"names":[],"mappings":";;;AAAA,qHAAqH;AAC9G,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAhD,QAAA,KAAK,SAA2C;AAEtD,MAAM,QAAQ,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAnD,QAAA,QAAQ,YAA2C","sourcesContent":["// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport const tuple = <T extends string[]>(...args: T) => args\n\nexport const tupleNum = <T extends number[]>(...args: T) => args\n\n/**\n * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without\n * performing indexing\n */\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never\n\n/** https://github.com/Microsoft/TypeScript/issues/29729 */\nexport type LiteralUnion<T extends U, U> = T | (U & {})\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DirectionType, SpaceCompactItemContextType } from './interface';
|
|
3
|
+
export declare const SpaceCompactItemContext: React.Context<SpaceCompactItemContextType | null>;
|
|
4
|
+
export declare const useCompactItemContext: (prefixCls: string, direction: DirectionType) => {
|
|
5
|
+
compactSize: import("./interface").SizeType;
|
|
6
|
+
compactDirection: "horizontal" | "vertical" | undefined;
|
|
7
|
+
compactItemClassnames: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useCompactItemContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompactItemContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/useCompactItemContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAG7E,eAAO,MAAM,uBAAuB,mDAAgE,CAAA;AAEpG,eAAO,MAAM,qBAAqB,cAAe,MAAM,aAAa,aAAa;;;;CAsBhF,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.useCompactItemContext = exports.SpaceCompactItemContext = void 0;
|
|
30
|
+
const React = __importStar(require("react"));
|
|
31
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
exports.SpaceCompactItemContext = React.createContext(null);
|
|
33
|
+
const useCompactItemContext = (prefixCls, direction) => {
|
|
34
|
+
const compactItemContext = React.useContext(exports.SpaceCompactItemContext);
|
|
35
|
+
const compactItemClassnames = React.useMemo(() => {
|
|
36
|
+
if (!compactItemContext)
|
|
37
|
+
return '';
|
|
38
|
+
const { compactDirection, isFirstItem, isLastItem } = compactItemContext;
|
|
39
|
+
const separator = compactDirection === 'vertical' ? '-vertical-' : '-';
|
|
40
|
+
return (0, classnames_1.default)({
|
|
41
|
+
[`${prefixCls}-compact${separator}item`]: true,
|
|
42
|
+
[`${prefixCls}-compact${separator}first-item`]: isFirstItem,
|
|
43
|
+
[`${prefixCls}-compact${separator}last-item`]: isLastItem,
|
|
44
|
+
[`${prefixCls}-compact${separator}item-rtl`]: direction === 'rtl',
|
|
45
|
+
});
|
|
46
|
+
}, [prefixCls, direction, compactItemContext]);
|
|
47
|
+
return {
|
|
48
|
+
compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
|
|
49
|
+
compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,
|
|
50
|
+
compactItemClassnames,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
exports.useCompactItemContext = useCompactItemContext;
|
|
54
|
+
//# sourceMappingURL=useCompactItemContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompactItemContext.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/useCompactItemContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAE9B,4DAAmC;AAEtB,QAAA,uBAAuB,GAAG,KAAK,CAAC,aAAa,CAAqC,IAAI,CAAC,CAAA;AAE7F,MAAM,qBAAqB,GAAG,CAAC,SAAiB,EAAE,SAAwB,EAAE,EAAE;IACnF,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAA;IAEpE,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/C,IAAI,CAAC,kBAAkB;YAAE,OAAO,EAAE,CAAA;QAElC,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,kBAAkB,CAAA;QACxE,MAAM,SAAS,GAAG,gBAAgB,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAA;QAEtE,OAAO,IAAA,oBAAU,EAAC;YAChB,CAAC,GAAG,SAAS,WAAW,SAAS,MAAM,CAAC,EAAE,IAAI;YAC9C,CAAC,GAAG,SAAS,WAAW,SAAS,YAAY,CAAC,EAAE,WAAW;YAC3D,CAAC,GAAG,SAAS,WAAW,SAAS,WAAW,CAAC,EAAE,UAAU;YACzD,CAAC,GAAG,SAAS,WAAW,SAAS,UAAU,CAAC,EAAE,SAAS,KAAK,KAAK;SAClE,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAE9C,OAAO;QACL,WAAW,EAAE,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW;QAC5C,gBAAgB,EAAE,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,gBAAgB;QACtD,qBAAqB;KACtB,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,qBAAqB,yBAsBjC","sourcesContent":["import * as React from 'react'\nimport type { DirectionType, SpaceCompactItemContextType } from './interface'\nimport classNames from 'classnames'\n\nexport const SpaceCompactItemContext = React.createContext<SpaceCompactItemContextType | null>(null)\n\nexport const useCompactItemContext = (prefixCls: string, direction: DirectionType) => {\n const compactItemContext = React.useContext(SpaceCompactItemContext)\n\n const compactItemClassnames = React.useMemo(() => {\n if (!compactItemContext) return ''\n\n const { compactDirection, isFirstItem, isLastItem } = compactItemContext\n const separator = compactDirection === 'vertical' ? '-vertical-' : '-'\n\n return classNames({\n [`${prefixCls}-compact${separator}item`]: true,\n [`${prefixCls}-compact${separator}first-item`]: isFirstItem,\n [`${prefixCls}-compact${separator}last-item`]: isLastItem,\n [`${prefixCls}-compact${separator}item-rtl`]: direction === 'rtl',\n })\n }, [prefixCls, direction, compactItemContext])\n\n return {\n compactSize: compactItemContext?.compactSize,\n compactDirection: compactItemContext?.compactDirection,\n compactItemClassnames,\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/warning.ts"],"names":[],"mappings":"AAIA,aAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAG5E,QAAA,IAAI,OAAO,EAAE,OAAc,CAAA;AAY3B,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const warning_1 = __importStar(require("rc-util/lib/warning"));
|
|
27
|
+
function noop() { }
|
|
28
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
29
|
+
let warning = noop;
|
|
30
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
+
warning = (valid, component, message) => {
|
|
32
|
+
(0, warning_1.default)(valid, `[antd: ${component}] ${message}`);
|
|
33
|
+
// StrictMode will inject console which will not throw warning in React 17.
|
|
34
|
+
if (process.env.NODE_ENV === 'test') {
|
|
35
|
+
(0, warning_1.resetWarned)();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.default = warning;
|
|
40
|
+
//# sourceMappingURL=warning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warning.js","sourceRoot":"","sources":["../../../src/tntd-rc-select/_util/warning.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA4D;AAE5D,SAAS,IAAI,KAAI,CAAC;AAIlB,qDAAqD;AACrD,IAAI,OAAO,GAAY,IAAI,CAAA;AAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAO,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACtC,IAAA,iBAAS,EAAC,KAAK,EAAE,UAAU,SAAS,KAAK,OAAO,EAAE,CAAC,CAAA;QAEnD,2EAA2E;QAC3E,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE;YACnC,IAAA,qBAAW,GAAE,CAAA;SACd;IACH,CAAC,CAAA;CACF;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import rcWarning, { resetWarned } from 'rc-util/lib/warning'\n\nfunction noop() {}\n\ntype Warning = (valid: boolean, component: string, message?: string) => void\n\n// eslint-disable-next-line import/no-mutable-exports\nlet warning: Warning = noop\nif (process.env.NODE_ENV !== 'production') {\n warning = (valid, component, message) => {\n rcWarning(valid, `[antd: ${component}] ${message}`)\n\n // StrictMode will inject console which will not throw warning in React 17.\n if (process.env.NODE_ENV === 'test') {\n resetWarned()\n }\n }\n}\n\nexport default warning\n"]}
|
|
Binary file
|