@gobolt/genesis 0.3.9 → 0.3.11
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/dist/bundle.css +41 -41
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +2 -0
- package/dist/components/Select/SelectTrigger.cjs +1 -2
- package/dist/components/Select/SelectTrigger.js +1 -2
- package/dist/components/Table/TableControls/PaginationNumber.cjs +1 -3
- package/dist/components/Table/TableControls/PaginationNumber.js +1 -3
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +2 -2
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +2 -2
- package/dist/components/Table/TableWithControls/TableWithControls.cjs +2 -2
- package/dist/components/Table/TableWithControls/TableWithControls.d.ts +1 -1
- package/dist/components/Table/TableWithControls/TableWithControls.js +2 -2
- package/dist/components/Tabs/styles.d.ts +3 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.cjs +3 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +3 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.cjs +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.js +4 -5
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.cjs +4 -5
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +4 -5
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.cjs +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.cjs +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +2 -3
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.cjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.cjs +78 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.js +79 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.cjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.cjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.cjs +33 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +34 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.cjs +23 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.cjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.cjs +62 -275
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +62 -275
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.cjs +19 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +20 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/index.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.js +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.cjs +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.js +2 -2
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.cjs +2 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +2 -1
- package/dist/node_modules/@rc-component/trigger/es/index.cjs +3 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +3 -1
- package/dist/node_modules/antd/es/_util/ActionButton.cjs +4 -4
- package/dist/node_modules/antd/es/_util/ActionButton.js +4 -4
- package/dist/node_modules/antd/es/_util/colors.cjs +1 -2
- package/dist/node_modules/antd/es/_util/colors.js +1 -2
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.cjs +14 -0
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.js +15 -0
- package/dist/node_modules/antd/es/_util/extendsObject.cjs +11 -13
- package/dist/node_modules/antd/es/_util/extendsObject.js +11 -13
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.cjs +80 -0
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.js +61 -0
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.cjs +17 -0
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.js +18 -0
- package/dist/node_modules/antd/es/_util/motion.cjs +13 -16
- package/dist/node_modules/antd/es/_util/motion.js +13 -16
- package/dist/node_modules/antd/es/_util/placements.cjs +4 -4
- package/dist/node_modules/antd/es/_util/placements.js +4 -4
- package/dist/node_modules/antd/es/_util/responsiveObserver.cjs +18 -20
- package/dist/node_modules/antd/es/_util/responsiveObserver.js +18 -20
- package/dist/node_modules/antd/es/_util/scrollTo.cjs +1 -2
- package/dist/node_modules/antd/es/_util/scrollTo.js +1 -2
- package/dist/node_modules/antd/es/_util/toList.cjs +5 -4
- package/dist/node_modules/antd/es/_util/toList.js +5 -4
- package/dist/node_modules/antd/es/_util/warning.cjs +8 -6
- package/dist/node_modules/antd/es/_util/warning.js +3 -2
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.cjs +10 -13
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +11 -14
- package/dist/node_modules/antd/es/_util/wave/style.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
- package/dist/node_modules/antd/es/avatar/Avatar.cjs +22 -28
- package/dist/node_modules/antd/es/avatar/Avatar.js +22 -28
- package/dist/node_modules/antd/es/avatar/AvatarGroup.cjs +2 -3
- package/dist/node_modules/antd/es/avatar/AvatarGroup.js +2 -3
- package/dist/node_modules/antd/es/avatar/style/index.cjs +14 -7
- package/dist/node_modules/antd/es/avatar/style/index.js +14 -7
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.cjs +3 -4
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js +3 -4
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.cjs +4 -5
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.js +4 -5
- package/dist/node_modules/antd/es/button/button.cjs +20 -9
- package/dist/node_modules/antd/es/button/button.js +21 -10
- package/dist/node_modules/antd/es/button/style/index.cjs +15 -8
- package/dist/node_modules/antd/es/button/style/index.js +15 -8
- package/dist/node_modules/antd/es/button/style/token.cjs +1 -0
- package/dist/node_modules/antd/es/button/style/token.js +1 -0
- package/dist/node_modules/antd/es/card/Card.cjs +1 -2
- package/dist/node_modules/antd/es/card/Card.js +1 -2
- package/dist/node_modules/antd/es/card/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +1 -1
- package/dist/node_modules/antd/es/checkbox/Checkbox.cjs +3 -3
- package/dist/node_modules/antd/es/checkbox/Checkbox.js +3 -3
- package/dist/node_modules/antd/es/checkbox/Group.cjs +4 -4
- package/dist/node_modules/antd/es/checkbox/Group.js +4 -4
- package/dist/node_modules/antd/es/checkbox/style/index.cjs +26 -27
- package/dist/node_modules/antd/es/checkbox/style/index.js +26 -27
- package/dist/node_modules/antd/es/color-picker/color.cjs +9 -12
- package/dist/node_modules/antd/es/color-picker/color.js +9 -12
- package/dist/node_modules/antd/es/color-picker/util.cjs +12 -0
- package/dist/node_modules/antd/es/color-picker/util.js +13 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.cjs +4 -5
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +4 -5
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.cjs +10 -3
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.js +10 -3
- package/dist/node_modules/antd/es/config-provider/PropWarning.cjs +3 -4
- package/dist/node_modules/antd/es/config-provider/PropWarning.js +3 -4
- package/dist/node_modules/antd/es/config-provider/SizeContext.cjs +4 -5
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +4 -5
- package/dist/node_modules/antd/es/config-provider/UnstableContext.cjs +2 -2
- package/dist/node_modules/antd/es/config-provider/UnstableContext.js +2 -2
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.cjs +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.js +1 -1
- package/dist/node_modules/antd/es/config-provider/index.cjs +3 -2
- package/dist/node_modules/antd/es/config-provider/index.js +3 -2
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.cjs +23 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +23 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.cjs +22 -10
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +22 -10
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.cjs +50 -0
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.js +32 -0
- package/dist/node_modules/antd/es/date-picker/style/index.cjs +18 -16
- package/dist/node_modules/antd/es/date-picker/style/index.js +18 -16
- package/dist/node_modules/antd/es/date-picker/style/panel.cjs +30 -40
- package/dist/node_modules/antd/es/date-picker/style/panel.js +30 -40
- package/dist/node_modules/antd/es/dropdown/dropdown-button.cjs +10 -4
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +10 -4
- package/dist/node_modules/antd/es/dropdown/dropdown.cjs +25 -23
- package/dist/node_modules/antd/es/dropdown/dropdown.js +25 -23
- package/dist/node_modules/antd/es/dropdown/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
- package/dist/node_modules/antd/es/empty/index.cjs +11 -9
- package/dist/node_modules/antd/es/empty/index.js +11 -9
- package/dist/node_modules/antd/es/empty/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js +1 -1
- package/dist/node_modules/antd/es/form/ErrorList.cjs +13 -16
- package/dist/node_modules/antd/es/form/ErrorList.js +13 -16
- package/dist/node_modules/antd/es/form/Form.cjs +4 -3
- package/dist/node_modules/antd/es/form/Form.js +2 -1
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.cjs +9 -7
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.js +9 -7
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.cjs +16 -13
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.js +16 -13
- package/dist/node_modules/antd/es/form/FormItem/index.cjs +8 -12
- package/dist/node_modules/antd/es/form/FormItem/index.js +8 -12
- package/dist/node_modules/antd/es/form/FormItemLabel.cjs +22 -26
- package/dist/node_modules/antd/es/form/FormItemLabel.js +22 -26
- package/dist/node_modules/antd/es/form/context.cjs +6 -7
- package/dist/node_modules/antd/es/form/context.js +6 -7
- package/dist/node_modules/antd/es/form/hooks/useForm.cjs +4 -3
- package/dist/node_modules/antd/es/form/hooks/useForm.js +3 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.cjs +3 -4
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.js +3 -4
- package/dist/node_modules/antd/es/form/hooks/useVariants.cjs +1 -2
- package/dist/node_modules/antd/es/form/hooks/useVariants.js +1 -2
- package/dist/node_modules/antd/es/form/index.cjs +1 -1
- package/dist/node_modules/antd/es/form/style/fallbackCmp.cjs +4 -5
- package/dist/node_modules/antd/es/form/style/fallbackCmp.js +4 -5
- package/dist/node_modules/antd/es/form/style/index.cjs +62 -92
- package/dist/node_modules/antd/es/form/style/index.js +62 -92
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.cjs +1 -3
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.js +1 -3
- package/dist/node_modules/antd/es/input/Input.cjs +3 -3
- package/dist/node_modules/antd/es/input/Input.js +3 -3
- package/dist/node_modules/antd/es/input/OTP/OTPInput.cjs +31 -13
- package/dist/node_modules/antd/es/input/OTP/OTPInput.js +26 -8
- package/dist/node_modules/antd/es/input/OTP/index.cjs +2 -1
- package/dist/node_modules/antd/es/input/OTP/index.js +2 -1
- package/dist/node_modules/antd/es/input/Password.cjs +3 -2
- package/dist/node_modules/antd/es/input/Password.js +3 -2
- package/dist/node_modules/antd/es/input/Search.cjs +18 -14
- package/dist/node_modules/antd/es/input/Search.js +18 -14
- package/dist/node_modules/antd/es/input/TextArea.cjs +42 -6
- package/dist/node_modules/antd/es/input/TextArea.js +42 -6
- package/dist/node_modules/antd/es/input/style/index.cjs +7 -20
- package/dist/node_modules/antd/es/input/style/index.js +7 -20
- package/dist/node_modules/antd/es/input/style/otp.cjs +23 -1
- package/dist/node_modules/antd/es/input/style/otp.js +23 -1
- package/dist/node_modules/antd/es/input/style/textarea.cjs +27 -5
- package/dist/node_modules/antd/es/input/style/textarea.js +27 -5
- package/dist/node_modules/antd/es/input/style/variants.cjs +25 -29
- package/dist/node_modules/antd/es/input/style/variants.js +25 -29
- package/dist/node_modules/antd/es/layout/Sider.cjs +9 -21
- package/dist/node_modules/antd/es/layout/Sider.js +9 -21
- package/dist/node_modules/antd/es/layout/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.js +1 -1
- package/dist/node_modules/antd/es/locale/en_US.cjs +2 -1
- package/dist/node_modules/antd/es/locale/en_US.js +2 -1
- package/dist/node_modules/antd/es/menu/MenuItem.cjs +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.cjs +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/node_modules/antd/es/menu/menu.cjs +2 -2
- package/dist/node_modules/antd/es/menu/menu.js +2 -2
- package/dist/node_modules/antd/es/menu/style/index.cjs +1 -3
- package/dist/node_modules/antd/es/menu/style/index.js +1 -3
- package/dist/node_modules/antd/es/menu/style/rtl.cjs +21 -24
- package/dist/node_modules/antd/es/menu/style/rtl.js +21 -24
- package/dist/node_modules/antd/es/menu/style/theme.cjs +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.cjs +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.cjs +2 -11
- package/dist/node_modules/antd/es/pagination/style/index.js +2 -11
- package/dist/node_modules/antd/es/popover/PurePanel.cjs +5 -6
- package/dist/node_modules/antd/es/popover/PurePanel.js +5 -6
- package/dist/node_modules/antd/es/popover/index.cjs +2 -2
- package/dist/node_modules/antd/es/popover/index.js +3 -2
- package/dist/node_modules/antd/es/progress/Line.cjs +4 -7
- package/dist/node_modules/antd/es/progress/Line.js +4 -7
- package/dist/node_modules/antd/es/progress/utils.cjs +13 -16
- package/dist/node_modules/antd/es/progress/utils.js +13 -16
- package/dist/node_modules/antd/es/radio/group.cjs +10 -4
- package/dist/node_modules/antd/es/radio/group.js +8 -2
- package/dist/node_modules/antd/es/radio/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/radio/style/index.js +2 -2
- package/dist/node_modules/antd/es/result/index.cjs +21 -24
- package/dist/node_modules/antd/es/result/index.js +21 -24
- package/dist/node_modules/antd/es/result/noFound.cjs +117 -139
- package/dist/node_modules/antd/es/result/noFound.js +117 -139
- package/dist/node_modules/antd/es/result/serverError.cjs +131 -154
- package/dist/node_modules/antd/es/result/serverError.js +131 -154
- package/dist/node_modules/antd/es/result/unauthorized.cjs +113 -125
- package/dist/node_modules/antd/es/result/unauthorized.js +113 -125
- package/dist/node_modules/antd/es/segmented/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/segmented/style/index.js +2 -2
- package/dist/node_modules/antd/es/select/index.cjs +42 -15
- package/dist/node_modules/antd/es/select/index.js +42 -15
- package/dist/node_modules/antd/es/select/style/index.cjs +17 -11
- package/dist/node_modules/antd/es/select/style/index.js +17 -11
- package/dist/node_modules/antd/es/select/style/multiple.cjs +2 -1
- package/dist/node_modules/antd/es/select/style/multiple.js +2 -1
- package/dist/node_modules/antd/es/select/useIcons.cjs +18 -20
- package/dist/node_modules/antd/es/select/useIcons.js +18 -20
- package/dist/node_modules/antd/es/select/usePopupRender.cjs +14 -0
- package/dist/node_modules/antd/es/select/usePopupRender.js +15 -0
- package/dist/node_modules/antd/es/skeleton/Title.cjs +14 -17
- package/dist/node_modules/antd/es/skeleton/Title.js +14 -17
- package/dist/node_modules/antd/es/skeleton/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/skeleton/style/index.js +1 -1
- package/dist/node_modules/antd/es/space/Item.cjs +7 -8
- package/dist/node_modules/antd/es/space/Item.js +7 -8
- package/dist/node_modules/antd/es/spin/Indicator/Progress.cjs +4 -6
- package/dist/node_modules/antd/es/spin/Indicator/Progress.js +4 -6
- package/dist/node_modules/antd/es/spin/Indicator/index.cjs +2 -1
- package/dist/node_modules/antd/es/spin/Indicator/index.js +2 -1
- package/dist/node_modules/antd/es/spin/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/spin/style/index.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.cjs +6 -3
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +6 -3
- package/dist/node_modules/antd/es/style/compact-item.cjs +10 -8
- package/dist/node_modules/antd/es/style/compact-item.js +10 -8
- package/dist/node_modules/antd/es/style/index.cjs +13 -16
- package/dist/node_modules/antd/es/style/index.js +13 -16
- package/dist/node_modules/antd/es/style/motion/motion.cjs +1 -2
- package/dist/node_modules/antd/es/style/motion/motion.js +1 -2
- package/dist/node_modules/antd/es/switch/index.cjs +3 -3
- package/dist/node_modules/antd/es/switch/index.js +3 -3
- package/dist/node_modules/antd/es/table/InternalTable.cjs +1 -2
- package/dist/node_modules/antd/es/table/InternalTable.js +1 -2
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.cjs +51 -64
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +53 -66
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.cjs +20 -30
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.js +20 -30
- package/dist/node_modules/antd/es/table/hooks/usePagination.js +2 -2
- package/dist/node_modules/antd/es/table/hooks/useSelection.cjs +29 -34
- package/dist/node_modules/antd/es/table/hooks/useSelection.js +29 -34
- package/dist/node_modules/antd/es/table/hooks/useSorter.cjs +26 -44
- package/dist/node_modules/antd/es/table/hooks/useSorter.js +26 -44
- package/dist/node_modules/antd/es/table/style/filter.cjs +2 -2
- package/dist/node_modules/antd/es/table/style/filter.js +2 -2
- package/dist/node_modules/antd/es/table/style/index.cjs +3 -1
- package/dist/node_modules/antd/es/table/style/index.js +3 -1
- package/dist/node_modules/antd/es/table/style/sticky.cjs +1 -1
- package/dist/node_modules/antd/es/table/style/sticky.js +1 -1
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.cjs +4 -5
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.js +4 -5
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.cjs +8 -1
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.js +8 -1
- package/dist/node_modules/antd/es/tabs/index.cjs +20 -10
- package/dist/node_modules/antd/es/tabs/index.js +20 -10
- package/dist/node_modules/antd/es/tabs/style/index.cjs +42 -14
- package/dist/node_modules/antd/es/tabs/style/index.js +42 -14
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.cjs +4 -5
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +4 -5
- package/dist/node_modules/antd/es/theme/useToken.cjs +1 -13
- package/dist/node_modules/antd/es/theme/useToken.js +1 -13
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.cjs +1 -1
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.js +1 -1
- package/dist/node_modules/antd/es/tooltip/index.cjs +6 -5
- package/dist/node_modules/antd/es/tooltip/index.js +6 -5
- package/dist/node_modules/antd/es/tooltip/style/index.cjs +13 -17
- package/dist/node_modules/antd/es/tooltip/style/index.js +13 -17
- package/dist/node_modules/antd/es/tooltip/util.cjs +5 -0
- package/dist/node_modules/antd/es/tooltip/util.js +5 -0
- package/dist/node_modules/antd/es/tree/DirectoryTree.cjs +4 -5
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +4 -5
- package/dist/node_modules/antd/es/tree/style/directory.cjs +50 -48
- package/dist/node_modules/antd/es/tree/style/directory.js +50 -48
- package/dist/node_modules/antd/es/tree/style/index.cjs +12 -13
- package/dist/node_modules/antd/es/tree/style/index.js +12 -13
- package/dist/node_modules/antd/es/tree/utils/dictUtil.cjs +7 -8
- package/dist/node_modules/antd/es/tree/utils/dictUtil.js +7 -8
- package/dist/node_modules/antd/es/tree/utils/iconUtil.cjs +3 -2
- package/dist/node_modules/antd/es/tree/utils/iconUtil.js +3 -2
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.cjs +13 -13
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.js +13 -13
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.cjs +4 -5
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.js +4 -5
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.cjs +6 -7
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.js +6 -7
- package/dist/node_modules/antd/es/typography/Base/index.cjs +16 -16
- package/dist/node_modules/antd/es/typography/Base/index.js +16 -16
- package/dist/node_modules/antd/es/typography/Editable.cjs +13 -16
- package/dist/node_modules/antd/es/typography/Editable.js +13 -16
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +4 -5
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +4 -5
- package/dist/node_modules/antd/es/typography/style/index.cjs +6 -6
- package/dist/node_modules/antd/es/typography/style/index.js +6 -6
- package/dist/node_modules/antd/es/typography/style/mixins.cjs +2 -2
- package/dist/node_modules/antd/es/typography/style/mixins.js +2 -2
- package/dist/node_modules/antd/es/version/version.cjs +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/d3-ease/src/elastic.cjs +2 -2
- package/dist/node_modules/d3-ease/src/elastic.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.cjs +13 -13
- package/dist/node_modules/dayjs/dayjs.min.js +13 -13
- package/dist/node_modules/dayjs/plugin/advancedFormat.cjs +5 -5
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +5 -5
- package/dist/node_modules/dayjs/plugin/customParseFormat.cjs +15 -15
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +15 -15
- package/dist/node_modules/dayjs/plugin/localeData.cjs +11 -11
- package/dist/node_modules/dayjs/plugin/localeData.js +11 -11
- package/dist/node_modules/dayjs/plugin/weekOfYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekOfYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.js +3 -3
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.cjs +2 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +2 -2
- package/dist/node_modules/rc-field-form/es/Field.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/Field.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +2 -2
- package/dist/node_modules/rc-input/es/Input.cjs +2 -1
- package/dist/node_modules/rc-input/es/Input.js +2 -1
- package/dist/node_modules/rc-menu/es/MenuItem.cjs +2 -2
- package/dist/node_modules/rc-menu/es/MenuItem.js +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.cjs +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.js +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.cjs +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.js +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.cjs +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.js +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +2 -2
- package/dist/node_modules/rc-select/es/OptionList.cjs +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.cjs +8 -47
- package/dist/node_modules/rc-select/es/Selector/Input.js +8 -47
- package/dist/node_modules/rc-select/es/hooks/useCache.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useCache.js +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +2 -2
- package/dist/node_modules/rc-table/es/Body/BodyRow.cjs +22 -8
- package/dist/node_modules/rc-table/es/Body/BodyRow.js +22 -8
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.cjs +3 -3
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.js +3 -3
- package/dist/node_modules/rc-table/es/Body/MeasureCell.cjs +2 -1
- package/dist/node_modules/rc-table/es/Body/MeasureCell.js +2 -1
- package/dist/node_modules/rc-table/es/Body/MeasureRow.cjs +10 -5
- package/dist/node_modules/rc-table/es/Body/MeasureRow.js +10 -5
- package/dist/node_modules/rc-table/es/Body/index.cjs +24 -6
- package/dist/node_modules/rc-table/es/Body/index.js +24 -6
- package/dist/node_modules/rc-table/es/FixedHolder/index.cjs +3 -4
- package/dist/node_modules/rc-table/es/FixedHolder/index.js +3 -4
- package/dist/node_modules/rc-table/es/Table.cjs +17 -15
- package/dist/node_modules/rc-table/es/Table.js +18 -16
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.cjs +10 -4
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.js +10 -4
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.cjs +5 -3
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.js +5 -3
- package/dist/node_modules/rc-table/es/hooks/useFrame.js +1 -1
- package/dist/node_modules/rc-tabs/es/TabNavList/index.cjs +30 -21
- package/dist/node_modules/rc-tabs/es/TabNavList/index.js +31 -22
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.cjs +9 -2
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.js +9 -2
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.cjs +1 -1
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -13
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +1 -13
- package/dist/node_modules/rc-tree/es/Tree.cjs +2 -2
- package/dist/node_modules/rc-tree/es/Tree.js +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.cjs +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.js +2 -2
- package/dist/node_modules/rc-util/es/composeProps.cjs +20 -0
- package/dist/node_modules/rc-util/es/composeProps.js +21 -0
- package/dist/node_modules/rc-util/es/isMobile.cjs +2 -2
- package/dist/node_modules/rc-util/es/isMobile.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/List.cjs +3 -2
- package/dist/node_modules/rc-virtual-list/es/List.js +3 -2
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.cjs +21 -23
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +21 -23
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.cjs +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.cjs +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.cjs +6 -6
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +6 -6
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +26 -26
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +26 -26
- package/dist/node_modules/unified/lib/callable-instance.cjs +2 -2
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unist-util-is/lib/index.cjs +2 -2
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.cjs +5 -5
- package/dist/node_modules/vfile-message/lib/index.js +5 -5
- package/dist/providers/ToastProvider.cjs +1 -1
- package/dist/providers/ToastProvider.js +1 -1
- package/dist/styles/global-styles.cjs +6 -6
- package/dist/styles/global-styles.js +6 -6
- package/package.json +1 -1
- package/dist/node_modules/@fontsource/inter/300.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/300.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/400.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/400.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/500.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/500.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/600.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/600.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/700.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/700.css.js +0 -1
- package/dist/node_modules/@fontsource/roboto-mono/400.css.cjs +0 -1
- package/dist/node_modules/@fontsource/roboto-mono/400.css.js +0 -1
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.cjs +0 -1
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.js +0 -1
|
@@ -22,6 +22,7 @@ import useStyle from "../style/index.js";
|
|
|
22
22
|
import { useIcons, getPlaceholder } from "../util.js";
|
|
23
23
|
import { QUARTERPICKER, QUARTER, TIMEPICKER, TIME, YEARPICKER, YEAR, MONTHPICKER, MONTH, WEEKPICKER, WEEK } from "./constant.js";
|
|
24
24
|
import useComponents from "./useComponents.js";
|
|
25
|
+
import useMergedPickerSemantic from "../hooks/useMergedPickerSemantic.js";
|
|
25
26
|
import { ConfigContext } from "../../config-provider/context.js";
|
|
26
27
|
import useLocale from "../../locale/useLocale.js";
|
|
27
28
|
var __rest = function(s, e) {
|
|
@@ -48,13 +49,16 @@ const generatePicker = (generateConfig) => {
|
|
|
48
49
|
bordered,
|
|
49
50
|
placement,
|
|
50
51
|
placeholder,
|
|
52
|
+
popupStyle,
|
|
51
53
|
popupClassName,
|
|
52
54
|
dropdownClassName,
|
|
53
55
|
disabled: customDisabled,
|
|
54
56
|
status: customStatus,
|
|
55
57
|
variant: customVariant,
|
|
56
|
-
onCalendarChange
|
|
57
|
-
|
|
58
|
+
onCalendarChange,
|
|
59
|
+
styles,
|
|
60
|
+
classNames: classNames$1
|
|
61
|
+
} = props, restProps = __rest(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
|
|
58
62
|
const {
|
|
59
63
|
getPrefixCls,
|
|
60
64
|
direction,
|
|
@@ -91,10 +95,18 @@ const generatePicker = (generateConfig) => {
|
|
|
91
95
|
if (process.env.NODE_ENV !== "production") {
|
|
92
96
|
const warning = devUseWarning(displayName || "DatePicker");
|
|
93
97
|
process.env.NODE_ENV !== "production" ? warning(picker !== "quarter", "deprecated", `DatePicker.${displayName} is legacy usage. Please use DatePicker[picker='${picker}'] directly.`) : void 0;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
const deprecatedProps = {
|
|
99
|
+
dropdownClassName: "classNames.popup.root",
|
|
100
|
+
popupClassName: "classNames.popup.root",
|
|
101
|
+
popupStyle: "styles.popup.root",
|
|
102
|
+
bordered: "variant",
|
|
103
|
+
onSelect: "onCalendarChange"
|
|
104
|
+
};
|
|
105
|
+
Object.entries(deprecatedProps).forEach(([oldProp, newProp]) => {
|
|
106
|
+
warning.deprecated(!(oldProp in props), oldProp, newProp);
|
|
107
|
+
});
|
|
97
108
|
}
|
|
109
|
+
const [mergedClassNames, mergedStyles] = useMergedPickerSemantic(consumerName, classNames$1, styles, popupClassName || dropdownClassName, popupStyle);
|
|
98
110
|
const [mergedAllowClear, removeIcon] = useIcons(props, prefixCls);
|
|
99
111
|
const mergedComponents = useComponents(components);
|
|
100
112
|
const mergedSize = useSize((ctx) => {
|
|
@@ -112,7 +124,7 @@ const generatePicker = (generateConfig) => {
|
|
|
112
124
|
const suffixNode = /* @__PURE__ */ React.createElement(React.Fragment, null, mergedPicker === "time" ? /* @__PURE__ */ React.createElement(RefIcon, null) : /* @__PURE__ */ React.createElement(RefIcon$1, null), hasFeedback && feedbackIcon);
|
|
113
125
|
const [contextLocale] = useLocale("DatePicker", locale);
|
|
114
126
|
const locale$1 = Object.assign(Object.assign({}, contextLocale), props.locale);
|
|
115
|
-
const [zIndex] = useZIndex("DatePicker", (_a =
|
|
127
|
+
const [zIndex] = useZIndex("DatePicker", (_a = mergedStyles.popup.root) === null || _a === void 0 ? void 0 : _a.zIndex);
|
|
116
128
|
return wrapCSSVar(/* @__PURE__ */ React.createElement(ContextIsolator, {
|
|
117
129
|
space: true
|
|
118
130
|
}, /* @__PURE__ */ React.createElement(RefPicker, Object.assign({
|
|
@@ -140,8 +152,8 @@ const generatePicker = (generateConfig) => {
|
|
|
140
152
|
className: classNames({
|
|
141
153
|
[`${prefixCls}-${mergedSize}`]: mergedSize,
|
|
142
154
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
143
|
-
}, getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.className, className, cssVarCls, rootCls, rootClassName),
|
|
144
|
-
style: Object.assign(Object.assign({}, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.style), style),
|
|
155
|
+
}, getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.className, className, cssVarCls, rootCls, rootClassName, mergedClassNames.root),
|
|
156
|
+
style: Object.assign(Object.assign(Object.assign({}, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.style), style), mergedStyles.root),
|
|
145
157
|
prefixCls,
|
|
146
158
|
getPopupContainer: customizeGetPopupContainer || getPopupContainer,
|
|
147
159
|
generateConfig,
|
|
@@ -149,10 +161,10 @@ const generatePicker = (generateConfig) => {
|
|
|
149
161
|
direction,
|
|
150
162
|
disabled: mergedDisabled,
|
|
151
163
|
classNames: {
|
|
152
|
-
popup: classNames(hashId, cssVarCls, rootCls, rootClassName,
|
|
164
|
+
popup: classNames(hashId, cssVarCls, rootCls, rootClassName, mergedClassNames.popup.root)
|
|
153
165
|
},
|
|
154
166
|
styles: {
|
|
155
|
-
popup: Object.assign(Object.assign({},
|
|
167
|
+
popup: Object.assign(Object.assign({}, mergedStyles.popup.root), {
|
|
156
168
|
zIndex
|
|
157
169
|
})
|
|
158
170
|
},
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var React = require("react");
|
|
3
|
+
var index$1 = require("../../../../../_virtual/index.cjs");
|
|
4
|
+
var index = require("../../_util/hooks/useMergeSemantic/index.cjs");
|
|
5
|
+
var context = require("../../config-provider/context.cjs");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
var n = /* @__PURE__ */ Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function(k) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return e[k];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
25
|
+
const useMergedPickerSemantic = (pickerType, classNames, styles, popupClassName, popupStyle) => {
|
|
26
|
+
const {
|
|
27
|
+
classNames: contextClassNames,
|
|
28
|
+
styles: contextStyles
|
|
29
|
+
} = context.useComponentConfig(pickerType);
|
|
30
|
+
const [mergedClassNames, mergedStyles] = index.default([contextClassNames, classNames], [contextStyles, styles], {
|
|
31
|
+
popup: {
|
|
32
|
+
_default: "root"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return React__namespace.useMemo(() => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
const filledClassNames = Object.assign(Object.assign({}, mergedClassNames), {
|
|
38
|
+
popup: Object.assign(Object.assign({}, mergedClassNames.popup), {
|
|
39
|
+
root: index$1((_a = mergedClassNames.popup) === null || _a === void 0 ? void 0 : _a.root, popupClassName)
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
const filledStyles = Object.assign(Object.assign({}, mergedStyles), {
|
|
43
|
+
popup: Object.assign(Object.assign({}, mergedStyles.popup), {
|
|
44
|
+
root: Object.assign(Object.assign({}, (_b = mergedStyles.popup) === null || _b === void 0 ? void 0 : _b.root), popupStyle)
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
return [filledClassNames, filledStyles];
|
|
48
|
+
}, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
|
|
49
|
+
};
|
|
50
|
+
module.exports = useMergedPickerSemantic;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import classNames from "../../../../../_virtual/index.js";
|
|
3
|
+
import useMergeSemantic from "../../_util/hooks/useMergeSemantic/index.js";
|
|
4
|
+
import { useComponentConfig } from "../../config-provider/context.js";
|
|
5
|
+
const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassName, popupStyle) => {
|
|
6
|
+
const {
|
|
7
|
+
classNames: contextClassNames,
|
|
8
|
+
styles: contextStyles
|
|
9
|
+
} = useComponentConfig(pickerType);
|
|
10
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames$1], [contextStyles, styles], {
|
|
11
|
+
popup: {
|
|
12
|
+
_default: "root"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return React.useMemo(() => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const filledClassNames = Object.assign(Object.assign({}, mergedClassNames), {
|
|
18
|
+
popup: Object.assign(Object.assign({}, mergedClassNames.popup), {
|
|
19
|
+
root: classNames((_a = mergedClassNames.popup) === null || _a === void 0 ? void 0 : _a.root, popupClassName)
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
const filledStyles = Object.assign(Object.assign({}, mergedStyles), {
|
|
23
|
+
popup: Object.assign(Object.assign({}, mergedStyles.popup), {
|
|
24
|
+
root: Object.assign(Object.assign({}, (_b = mergedStyles.popup) === null || _b === void 0 ? void 0 : _b.root), popupStyle)
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
return [filledClassNames, filledStyles];
|
|
28
|
+
}, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
useMergedPickerSemantic as default
|
|
32
|
+
};
|
|
@@ -28,12 +28,9 @@ var panel = require("./panel.cjs");
|
|
|
28
28
|
var token = require("./token.cjs");
|
|
29
29
|
var variants = require("./variants.cjs");
|
|
30
30
|
var token$1 = require("../../input/style/token.cjs");
|
|
31
|
-
const genPickerPadding = (
|
|
32
|
-
const height = token2.calc(fontHeight).add(2).equal();
|
|
33
|
-
const paddingTop = token2.max(token2.calc(inputHeight).sub(height).div(2).equal(), 0);
|
|
34
|
-
const paddingBottom = token2.max(token2.calc(inputHeight).sub(height).sub(paddingTop).equal(), 0);
|
|
31
|
+
const genPickerPadding = (paddingBlock, paddingInline) => {
|
|
35
32
|
return {
|
|
36
|
-
padding: `${index$1.unit(
|
|
33
|
+
padding: `${index$1.unit(paddingBlock)} ${index$1.unit(paddingInline)}`
|
|
37
34
|
};
|
|
38
35
|
};
|
|
39
36
|
const genPickerStatusStyle = (token2) => {
|
|
@@ -58,10 +55,10 @@ const genPickerStatusStyle = (token2) => {
|
|
|
58
55
|
};
|
|
59
56
|
};
|
|
60
57
|
const genPickerStyle = (token2) => {
|
|
58
|
+
var _a;
|
|
61
59
|
const {
|
|
62
60
|
componentCls,
|
|
63
61
|
antCls,
|
|
64
|
-
controlHeight,
|
|
65
62
|
paddingInline,
|
|
66
63
|
lineWidth,
|
|
67
64
|
lineType,
|
|
@@ -70,13 +67,15 @@ const genPickerStyle = (token2) => {
|
|
|
70
67
|
motionDurationMid,
|
|
71
68
|
colorTextDisabled,
|
|
72
69
|
colorTextPlaceholder,
|
|
73
|
-
controlHeightLG,
|
|
74
70
|
fontSizeLG,
|
|
71
|
+
inputFontSizeLG,
|
|
72
|
+
fontSizeSM,
|
|
73
|
+
inputFontSizeSM,
|
|
75
74
|
controlHeightSM,
|
|
76
75
|
paddingInlineSM,
|
|
77
76
|
paddingXS,
|
|
78
77
|
marginXS,
|
|
79
|
-
|
|
78
|
+
colorIcon,
|
|
80
79
|
lineWidthBold,
|
|
81
80
|
colorPrimary,
|
|
82
81
|
motionDurationSlow,
|
|
@@ -93,12 +92,11 @@ const genPickerStyle = (token2) => {
|
|
|
93
92
|
presetsMaxWidth,
|
|
94
93
|
boxShadowPopoverArrow,
|
|
95
94
|
fontHeight,
|
|
96
|
-
fontHeightLG,
|
|
97
95
|
lineHeightLG
|
|
98
96
|
} = token2;
|
|
99
97
|
return [
|
|
100
98
|
{
|
|
101
|
-
[componentCls]: Object.assign(Object.assign(Object.assign({}, index.resetComponent(token2)), genPickerPadding(token2,
|
|
99
|
+
[componentCls]: Object.assign(Object.assign(Object.assign({}, index.resetComponent(token2)), genPickerPadding(token2.paddingBlock, token2.paddingInline)), {
|
|
102
100
|
position: "relative",
|
|
103
101
|
display: "inline-flex",
|
|
104
102
|
alignItems: "center",
|
|
@@ -120,7 +118,7 @@ const genPickerStyle = (token2) => {
|
|
|
120
118
|
display: "inline-block",
|
|
121
119
|
width: "100%",
|
|
122
120
|
color: "inherit",
|
|
123
|
-
fontSize: token2.fontSize,
|
|
121
|
+
fontSize: (_a = token2.inputFontSize) !== null && _a !== void 0 ? _a : token2.fontSize,
|
|
124
122
|
lineHeight: token2.lineHeight,
|
|
125
123
|
transition: `all ${motionDurationMid}`
|
|
126
124
|
}, index$2.genPlaceholderStyle(colorTextPlaceholder)), {
|
|
@@ -150,13 +148,17 @@ const genPickerStyle = (token2) => {
|
|
|
150
148
|
}
|
|
151
149
|
},
|
|
152
150
|
// Size
|
|
153
|
-
"&-large": Object.assign(Object.assign({}, genPickerPadding(token2,
|
|
151
|
+
"&-large": Object.assign(Object.assign({}, genPickerPadding(token2.paddingBlockLG, token2.paddingInlineLG)), {
|
|
154
152
|
[`${componentCls}-input > input`]: {
|
|
155
|
-
fontSize: fontSizeLG,
|
|
153
|
+
fontSize: inputFontSizeLG !== null && inputFontSizeLG !== void 0 ? inputFontSizeLG : fontSizeLG,
|
|
156
154
|
lineHeight: lineHeightLG
|
|
157
155
|
}
|
|
158
156
|
}),
|
|
159
|
-
"&-small": Object.assign({}, genPickerPadding(token2,
|
|
157
|
+
"&-small": Object.assign(Object.assign({}, genPickerPadding(token2.paddingBlockSM, token2.paddingInlineSM)), {
|
|
158
|
+
[`${componentCls}-input > input`]: {
|
|
159
|
+
fontSize: inputFontSizeSM !== null && inputFontSizeSM !== void 0 ? inputFontSizeSM : fontSizeSM
|
|
160
|
+
}
|
|
161
|
+
}),
|
|
160
162
|
[`${componentCls}-suffix`]: {
|
|
161
163
|
display: "flex",
|
|
162
164
|
flex: "none",
|
|
@@ -187,7 +189,7 @@ const genPickerStyle = (token2) => {
|
|
|
187
189
|
verticalAlign: "top"
|
|
188
190
|
},
|
|
189
191
|
"&:hover": {
|
|
190
|
-
color:
|
|
192
|
+
color: colorIcon
|
|
191
193
|
}
|
|
192
194
|
},
|
|
193
195
|
"&:hover": {
|
|
@@ -211,7 +213,7 @@ const genPickerStyle = (token2) => {
|
|
|
211
213
|
verticalAlign: "top",
|
|
212
214
|
cursor: "default",
|
|
213
215
|
[`${componentCls}-focused &`]: {
|
|
214
|
-
color:
|
|
216
|
+
color: colorIcon
|
|
215
217
|
},
|
|
216
218
|
[`${componentCls}-range-separator &`]: {
|
|
217
219
|
[`${componentCls}-disabled &`]: {
|
|
@@ -27,12 +27,9 @@ import { initPickerPanelToken, prepareComponentToken } from "./token.js";
|
|
|
27
27
|
import { initPanelComponentToken } from "./token.js";
|
|
28
28
|
import genVariantsStyle from "./variants.js";
|
|
29
29
|
import { initInputToken } from "../../input/style/token.js";
|
|
30
|
-
const genPickerPadding = (
|
|
31
|
-
const height = token.calc(fontHeight).add(2).equal();
|
|
32
|
-
const paddingTop = token.max(token.calc(inputHeight).sub(height).div(2).equal(), 0);
|
|
33
|
-
const paddingBottom = token.max(token.calc(inputHeight).sub(height).sub(paddingTop).equal(), 0);
|
|
30
|
+
const genPickerPadding = (paddingBlock, paddingInline) => {
|
|
34
31
|
return {
|
|
35
|
-
padding: `${unit(
|
|
32
|
+
padding: `${unit(paddingBlock)} ${unit(paddingInline)}`
|
|
36
33
|
};
|
|
37
34
|
};
|
|
38
35
|
const genPickerStatusStyle = (token) => {
|
|
@@ -57,10 +54,10 @@ const genPickerStatusStyle = (token) => {
|
|
|
57
54
|
};
|
|
58
55
|
};
|
|
59
56
|
const genPickerStyle = (token) => {
|
|
57
|
+
var _a;
|
|
60
58
|
const {
|
|
61
59
|
componentCls,
|
|
62
60
|
antCls,
|
|
63
|
-
controlHeight,
|
|
64
61
|
paddingInline,
|
|
65
62
|
lineWidth,
|
|
66
63
|
lineType,
|
|
@@ -69,13 +66,15 @@ const genPickerStyle = (token) => {
|
|
|
69
66
|
motionDurationMid,
|
|
70
67
|
colorTextDisabled,
|
|
71
68
|
colorTextPlaceholder,
|
|
72
|
-
controlHeightLG,
|
|
73
69
|
fontSizeLG,
|
|
70
|
+
inputFontSizeLG,
|
|
71
|
+
fontSizeSM,
|
|
72
|
+
inputFontSizeSM,
|
|
74
73
|
controlHeightSM,
|
|
75
74
|
paddingInlineSM,
|
|
76
75
|
paddingXS,
|
|
77
76
|
marginXS,
|
|
78
|
-
|
|
77
|
+
colorIcon,
|
|
79
78
|
lineWidthBold,
|
|
80
79
|
colorPrimary,
|
|
81
80
|
motionDurationSlow,
|
|
@@ -92,12 +91,11 @@ const genPickerStyle = (token) => {
|
|
|
92
91
|
presetsMaxWidth,
|
|
93
92
|
boxShadowPopoverArrow,
|
|
94
93
|
fontHeight,
|
|
95
|
-
fontHeightLG,
|
|
96
94
|
lineHeightLG
|
|
97
95
|
} = token;
|
|
98
96
|
return [
|
|
99
97
|
{
|
|
100
|
-
[componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genPickerPadding(token,
|
|
98
|
+
[componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genPickerPadding(token.paddingBlock, token.paddingInline)), {
|
|
101
99
|
position: "relative",
|
|
102
100
|
display: "inline-flex",
|
|
103
101
|
alignItems: "center",
|
|
@@ -119,7 +117,7 @@ const genPickerStyle = (token) => {
|
|
|
119
117
|
display: "inline-block",
|
|
120
118
|
width: "100%",
|
|
121
119
|
color: "inherit",
|
|
122
|
-
fontSize: token.fontSize,
|
|
120
|
+
fontSize: (_a = token.inputFontSize) !== null && _a !== void 0 ? _a : token.fontSize,
|
|
123
121
|
lineHeight: token.lineHeight,
|
|
124
122
|
transition: `all ${motionDurationMid}`
|
|
125
123
|
}, genPlaceholderStyle(colorTextPlaceholder)), {
|
|
@@ -149,13 +147,17 @@ const genPickerStyle = (token) => {
|
|
|
149
147
|
}
|
|
150
148
|
},
|
|
151
149
|
// Size
|
|
152
|
-
"&-large": Object.assign(Object.assign({}, genPickerPadding(token,
|
|
150
|
+
"&-large": Object.assign(Object.assign({}, genPickerPadding(token.paddingBlockLG, token.paddingInlineLG)), {
|
|
153
151
|
[`${componentCls}-input > input`]: {
|
|
154
|
-
fontSize: fontSizeLG,
|
|
152
|
+
fontSize: inputFontSizeLG !== null && inputFontSizeLG !== void 0 ? inputFontSizeLG : fontSizeLG,
|
|
155
153
|
lineHeight: lineHeightLG
|
|
156
154
|
}
|
|
157
155
|
}),
|
|
158
|
-
"&-small": Object.assign({}, genPickerPadding(token,
|
|
156
|
+
"&-small": Object.assign(Object.assign({}, genPickerPadding(token.paddingBlockSM, token.paddingInlineSM)), {
|
|
157
|
+
[`${componentCls}-input > input`]: {
|
|
158
|
+
fontSize: inputFontSizeSM !== null && inputFontSizeSM !== void 0 ? inputFontSizeSM : fontSizeSM
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
159
161
|
[`${componentCls}-suffix`]: {
|
|
160
162
|
display: "flex",
|
|
161
163
|
flex: "none",
|
|
@@ -186,7 +188,7 @@ const genPickerStyle = (token) => {
|
|
|
186
188
|
verticalAlign: "top"
|
|
187
189
|
},
|
|
188
190
|
"&:hover": {
|
|
189
|
-
color:
|
|
191
|
+
color: colorIcon
|
|
190
192
|
}
|
|
191
193
|
},
|
|
192
194
|
"&:hover": {
|
|
@@ -210,7 +212,7 @@ const genPickerStyle = (token) => {
|
|
|
210
212
|
verticalAlign: "top",
|
|
211
213
|
cursor: "default",
|
|
212
214
|
[`${componentCls}-focused &`]: {
|
|
213
|
-
color:
|
|
215
|
+
color: colorIcon
|
|
214
216
|
},
|
|
215
217
|
[`${componentCls}-range-separator &`]: {
|
|
216
218
|
[`${componentCls}-disabled &`]: {
|
|
@@ -288,8 +288,8 @@ const genPanelStyle = (token) => {
|
|
|
288
288
|
width: pickerControlIconSize,
|
|
289
289
|
height: pickerControlIconSize,
|
|
290
290
|
border: `0 solid currentcolor`,
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
292
|
+
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
293
293
|
content: '""'
|
|
294
294
|
}
|
|
295
295
|
},
|
|
@@ -303,8 +303,8 @@ const genPanelStyle = (token) => {
|
|
|
303
303
|
width: pickerControlIconSize,
|
|
304
304
|
height: pickerControlIconSize,
|
|
305
305
|
border: "0 solid currentcolor",
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
307
|
+
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
308
308
|
content: '""'
|
|
309
309
|
}
|
|
310
310
|
},
|
|
@@ -389,49 +389,39 @@ const genPanelStyle = (token) => {
|
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
391
|
// ====================== Week Panel ======================
|
|
392
|
-
"&-week-panel": {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
392
|
+
"&-week-panel-row": {
|
|
393
|
+
td: {
|
|
394
|
+
"&:before": {
|
|
395
|
+
transition: `background ${motionDurationMid}`
|
|
396
|
+
},
|
|
397
|
+
"&:first-child:before": {
|
|
398
|
+
borderStartStartRadius: borderRadiusSM,
|
|
399
|
+
borderEndStartRadius: borderRadiusSM
|
|
400
|
+
},
|
|
401
|
+
"&:last-child:before": {
|
|
402
|
+
borderStartEndRadius: borderRadiusSM,
|
|
403
|
+
borderEndEndRadius: borderRadiusSM
|
|
399
404
|
}
|
|
400
405
|
},
|
|
401
|
-
"
|
|
402
|
-
|
|
406
|
+
"&:hover td:before": {
|
|
407
|
+
background: cellHoverBg
|
|
408
|
+
},
|
|
409
|
+
"&-range-start td, &-range-end td, &-selected td, &-hover td": {
|
|
410
|
+
// Rise priority to override hover style
|
|
411
|
+
[`&${pickerCellCls}`]: {
|
|
403
412
|
"&:before": {
|
|
404
|
-
|
|
413
|
+
background: colorPrimary
|
|
405
414
|
},
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
borderEndStartRadius: borderRadiusSM
|
|
415
|
+
[`&${componentCls}-cell-week`]: {
|
|
416
|
+
color: new FastColor.FastColor(colorTextLightSolid).setA(0.5).toHexString()
|
|
409
417
|
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
borderEndEndRadius: borderRadiusSM
|
|
418
|
+
[pickerCellInnerCls]: {
|
|
419
|
+
color: colorTextLightSolid
|
|
413
420
|
}
|
|
414
|
-
},
|
|
415
|
-
"&:hover td:before": {
|
|
416
|
-
background: cellHoverBg
|
|
417
|
-
},
|
|
418
|
-
"&-range-start td, &-range-end td, &-selected td, &-hover td": {
|
|
419
|
-
// Rise priority to override hover style
|
|
420
|
-
[`&${pickerCellCls}`]: {
|
|
421
|
-
"&:before": {
|
|
422
|
-
background: colorPrimary
|
|
423
|
-
},
|
|
424
|
-
[`&${componentCls}-cell-week`]: {
|
|
425
|
-
color: new FastColor.FastColor(colorTextLightSolid).setA(0.5).toHexString()
|
|
426
|
-
},
|
|
427
|
-
[pickerCellInnerCls]: {
|
|
428
|
-
color: colorTextLightSolid
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
"&-range-hover td:before": {
|
|
433
|
-
background: controlItemBgActive
|
|
434
421
|
}
|
|
422
|
+
},
|
|
423
|
+
"&-range-hover td:before": {
|
|
424
|
+
background: controlItemBgActive
|
|
435
425
|
}
|
|
436
426
|
},
|
|
437
427
|
// >>> ShowWeek
|
|
@@ -286,8 +286,8 @@ const genPanelStyle = (token) => {
|
|
|
286
286
|
width: pickerControlIconSize,
|
|
287
287
|
height: pickerControlIconSize,
|
|
288
288
|
border: `0 solid currentcolor`,
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
290
|
+
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
291
291
|
content: '""'
|
|
292
292
|
}
|
|
293
293
|
},
|
|
@@ -301,8 +301,8 @@ const genPanelStyle = (token) => {
|
|
|
301
301
|
width: pickerControlIconSize,
|
|
302
302
|
height: pickerControlIconSize,
|
|
303
303
|
border: "0 solid currentcolor",
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
305
|
+
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
306
306
|
content: '""'
|
|
307
307
|
}
|
|
308
308
|
},
|
|
@@ -387,49 +387,39 @@ const genPanelStyle = (token) => {
|
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
389
|
// ====================== Week Panel ======================
|
|
390
|
-
"&-week-panel": {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
390
|
+
"&-week-panel-row": {
|
|
391
|
+
td: {
|
|
392
|
+
"&:before": {
|
|
393
|
+
transition: `background ${motionDurationMid}`
|
|
394
|
+
},
|
|
395
|
+
"&:first-child:before": {
|
|
396
|
+
borderStartStartRadius: borderRadiusSM,
|
|
397
|
+
borderEndStartRadius: borderRadiusSM
|
|
398
|
+
},
|
|
399
|
+
"&:last-child:before": {
|
|
400
|
+
borderStartEndRadius: borderRadiusSM,
|
|
401
|
+
borderEndEndRadius: borderRadiusSM
|
|
397
402
|
}
|
|
398
403
|
},
|
|
399
|
-
"
|
|
400
|
-
|
|
404
|
+
"&:hover td:before": {
|
|
405
|
+
background: cellHoverBg
|
|
406
|
+
},
|
|
407
|
+
"&-range-start td, &-range-end td, &-selected td, &-hover td": {
|
|
408
|
+
// Rise priority to override hover style
|
|
409
|
+
[`&${pickerCellCls}`]: {
|
|
401
410
|
"&:before": {
|
|
402
|
-
|
|
411
|
+
background: colorPrimary
|
|
403
412
|
},
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
borderEndStartRadius: borderRadiusSM
|
|
413
|
+
[`&${componentCls}-cell-week`]: {
|
|
414
|
+
color: new FastColor(colorTextLightSolid).setA(0.5).toHexString()
|
|
407
415
|
},
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
borderEndEndRadius: borderRadiusSM
|
|
416
|
+
[pickerCellInnerCls]: {
|
|
417
|
+
color: colorTextLightSolid
|
|
411
418
|
}
|
|
412
|
-
},
|
|
413
|
-
"&:hover td:before": {
|
|
414
|
-
background: cellHoverBg
|
|
415
|
-
},
|
|
416
|
-
"&-range-start td, &-range-end td, &-selected td, &-hover td": {
|
|
417
|
-
// Rise priority to override hover style
|
|
418
|
-
[`&${pickerCellCls}`]: {
|
|
419
|
-
"&:before": {
|
|
420
|
-
background: colorPrimary
|
|
421
|
-
},
|
|
422
|
-
[`&${componentCls}-cell-week`]: {
|
|
423
|
-
color: new FastColor(colorTextLightSolid).setA(0.5).toHexString()
|
|
424
|
-
},
|
|
425
|
-
[pickerCellInnerCls]: {
|
|
426
|
-
color: colorTextLightSolid
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
"&-range-hover td:before": {
|
|
431
|
-
background: controlItemBgActive
|
|
432
419
|
}
|
|
420
|
+
},
|
|
421
|
+
"&-range-hover td:before": {
|
|
422
|
+
background: controlItemBgActive
|
|
433
423
|
}
|
|
434
424
|
},
|
|
435
425
|
// >>> ShowWeek
|
|
@@ -69,11 +69,14 @@ const DropdownButton = (props) => {
|
|
|
69
69
|
mouseLeaveDelay,
|
|
70
70
|
overlayClassName,
|
|
71
71
|
overlayStyle,
|
|
72
|
+
destroyOnHidden,
|
|
72
73
|
destroyPopupOnHide,
|
|
73
|
-
dropdownRender
|
|
74
|
-
|
|
74
|
+
dropdownRender,
|
|
75
|
+
popupRender
|
|
76
|
+
} = props, restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]);
|
|
75
77
|
const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
|
|
76
78
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
79
|
+
const mergedPopupRender = popupRender || dropdownRender;
|
|
77
80
|
const dropdownProps = {
|
|
78
81
|
menu,
|
|
79
82
|
arrow,
|
|
@@ -87,14 +90,17 @@ const DropdownButton = (props) => {
|
|
|
87
90
|
mouseLeaveDelay,
|
|
88
91
|
overlayClassName,
|
|
89
92
|
overlayStyle,
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
destroyOnHidden,
|
|
94
|
+
popupRender: mergedPopupRender
|
|
92
95
|
};
|
|
93
96
|
const {
|
|
94
97
|
compactSize,
|
|
95
98
|
compactItemClassnames
|
|
96
99
|
} = Compact.useCompactItemContext(prefixCls, direction);
|
|
97
100
|
const classes = index(buttonPrefixCls, compactItemClassnames, className);
|
|
101
|
+
if ("destroyPopupOnHide" in props) {
|
|
102
|
+
dropdownProps.destroyPopupOnHide = destroyPopupOnHide;
|
|
103
|
+
}
|
|
98
104
|
if ("overlay" in props) {
|
|
99
105
|
dropdownProps.overlay = overlay;
|
|
100
106
|
}
|
|
@@ -49,11 +49,14 @@ const DropdownButton = (props) => {
|
|
|
49
49
|
mouseLeaveDelay,
|
|
50
50
|
overlayClassName,
|
|
51
51
|
overlayStyle,
|
|
52
|
+
destroyOnHidden,
|
|
52
53
|
destroyPopupOnHide,
|
|
53
|
-
dropdownRender
|
|
54
|
-
|
|
54
|
+
dropdownRender,
|
|
55
|
+
popupRender
|
|
56
|
+
} = props, restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]);
|
|
55
57
|
const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
|
|
56
58
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
59
|
+
const mergedPopupRender = popupRender || dropdownRender;
|
|
57
60
|
const dropdownProps = {
|
|
58
61
|
menu,
|
|
59
62
|
arrow,
|
|
@@ -67,14 +70,17 @@ const DropdownButton = (props) => {
|
|
|
67
70
|
mouseLeaveDelay,
|
|
68
71
|
overlayClassName,
|
|
69
72
|
overlayStyle,
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
destroyOnHidden,
|
|
74
|
+
popupRender: mergedPopupRender
|
|
72
75
|
};
|
|
73
76
|
const {
|
|
74
77
|
compactSize,
|
|
75
78
|
compactItemClassnames
|
|
76
79
|
} = useCompactItemContext(prefixCls, direction);
|
|
77
80
|
const classes = classNames(buttonPrefixCls, compactItemClassnames, className);
|
|
81
|
+
if ("destroyPopupOnHide" in props) {
|
|
82
|
+
dropdownProps.destroyPopupOnHide = destroyPopupOnHide;
|
|
83
|
+
}
|
|
78
84
|
if ("overlay" in props) {
|
|
79
85
|
dropdownProps.overlay = overlay;
|
|
80
86
|
}
|