@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
|
@@ -2,9 +2,10 @@ import React__default, { useMemo, useContext, useState, useRef, Children, useEff
|
|
|
2
2
|
import classNames from "../../../../_virtual/index.js";
|
|
3
3
|
import omit from "../../../rc-util/es/omit.js";
|
|
4
4
|
import { useComposeRef } from "../../../rc-util/es/ref.js";
|
|
5
|
+
import useLayoutEffect from "../../../rc-util/es/hooks/useLayoutEffect.js";
|
|
5
6
|
import { devUseWarning } from "../_util/warning.js";
|
|
6
7
|
import Wave from "../_util/wave/index.js";
|
|
7
|
-
import { useComponentConfig } from "../config-provider/context.js";
|
|
8
|
+
import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
|
|
8
9
|
import DisabledContext from "../config-provider/DisabledContext.js";
|
|
9
10
|
import useSize from "../config-provider/hooks/useSize.js";
|
|
10
11
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
@@ -53,7 +54,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
53
54
|
variant,
|
|
54
55
|
type,
|
|
55
56
|
danger = false,
|
|
56
|
-
shape
|
|
57
|
+
shape: customizeShape,
|
|
57
58
|
size: customizeSize,
|
|
58
59
|
styles,
|
|
59
60
|
disabled: customDisabled,
|
|
@@ -72,16 +73,26 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
72
73
|
autoFocus
|
|
73
74
|
} = props, rest = __rest(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
74
75
|
const mergedType = type || "default";
|
|
76
|
+
const {
|
|
77
|
+
button
|
|
78
|
+
} = React__default.useContext(ConfigContext);
|
|
79
|
+
const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || "default";
|
|
75
80
|
const [mergedColor, mergedVariant] = useMemo(() => {
|
|
76
81
|
if (color && variant) {
|
|
77
82
|
return [color, variant];
|
|
78
83
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
if (type || danger) {
|
|
85
|
+
const colorVariantPair = ButtonTypeMap[mergedType] || [];
|
|
86
|
+
if (danger) {
|
|
87
|
+
return ["danger", colorVariantPair[1]];
|
|
88
|
+
}
|
|
89
|
+
return colorVariantPair;
|
|
90
|
+
}
|
|
91
|
+
if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {
|
|
92
|
+
return [button.color, button.variant];
|
|
82
93
|
}
|
|
83
|
-
return
|
|
84
|
-
}, [type, color, variant, danger]);
|
|
94
|
+
return ["default", "outlined"];
|
|
95
|
+
}, [type, color, variant, danger, button === null || button === void 0 ? void 0 : button.variant, button === null || button === void 0 ? void 0 : button.color]);
|
|
85
96
|
const isDanger = mergedColor === "danger";
|
|
86
97
|
const mergedColorText = isDanger ? "dangerous" : mergedColor;
|
|
87
98
|
const {
|
|
@@ -112,7 +123,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
112
123
|
isMountRef.current = true;
|
|
113
124
|
};
|
|
114
125
|
}, []);
|
|
115
|
-
|
|
126
|
+
useLayoutEffect(() => {
|
|
116
127
|
let delayTimer = null;
|
|
117
128
|
if (loadingOrDelay.delay > 0) {
|
|
118
129
|
delayTimer = setTimeout(() => {
|
|
@@ -129,7 +140,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
129
140
|
}
|
|
130
141
|
}
|
|
131
142
|
return cleanupTimer;
|
|
132
|
-
}, [loadingOrDelay]);
|
|
143
|
+
}, [loadingOrDelay.delay, loadingOrDelay.loading]);
|
|
133
144
|
useEffect(() => {
|
|
134
145
|
if (!buttonRef.current || !mergedInsertSpace) {
|
|
135
146
|
return;
|
|
@@ -179,7 +190,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
179
190
|
const linkButtonRestProps = omit(rest, ["navigate"]);
|
|
180
191
|
const classes = classNames(prefixCls, hashId, cssVarCls, {
|
|
181
192
|
[`${prefixCls}-${shape}`]: shape !== "default" && shape,
|
|
182
|
-
//
|
|
193
|
+
// Compatible with versions earlier than 5.21.0
|
|
183
194
|
[`${prefixCls}-${mergedType}`]: mergedType,
|
|
184
195
|
[`${prefixCls}-dangerous`]: danger,
|
|
185
196
|
[`${prefixCls}-color-${mergedColorText}`]: mergedColorText,
|
|
@@ -28,7 +28,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
28
28
|
opacityLoading,
|
|
29
29
|
motionDurationSlow,
|
|
30
30
|
motionEaseInOut,
|
|
31
|
-
|
|
31
|
+
iconGap,
|
|
32
32
|
calc
|
|
33
33
|
} = token2;
|
|
34
34
|
return {
|
|
@@ -36,7 +36,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
36
36
|
outline: "none",
|
|
37
37
|
position: "relative",
|
|
38
38
|
display: "inline-flex",
|
|
39
|
-
gap:
|
|
39
|
+
gap: iconGap,
|
|
40
40
|
alignItems: "center",
|
|
41
41
|
justifyContent: "center",
|
|
42
42
|
fontWeight,
|
|
@@ -88,7 +88,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
88
88
|
[`&:not(${componentCls}-icon-end)`]: {
|
|
89
89
|
[`${componentCls}-loading-icon-motion`]: {
|
|
90
90
|
"&-appear-start, &-enter-start": {
|
|
91
|
-
marginInlineEnd: calc(
|
|
91
|
+
marginInlineEnd: calc(iconGap).mul(-1).equal()
|
|
92
92
|
},
|
|
93
93
|
"&-appear-active, &-enter-active": {
|
|
94
94
|
marginInlineEnd: 0
|
|
@@ -97,7 +97,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
97
97
|
marginInlineEnd: 0
|
|
98
98
|
},
|
|
99
99
|
"&-leave-active": {
|
|
100
|
-
marginInlineEnd: calc(
|
|
100
|
+
marginInlineEnd: calc(iconGap).mul(-1).equal()
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
},
|
|
@@ -105,7 +105,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
105
105
|
flexDirection: "row-reverse",
|
|
106
106
|
[`${componentCls}-loading-icon-motion`]: {
|
|
107
107
|
"&-appear-start, &-enter-start": {
|
|
108
|
-
marginInlineStart: calc(
|
|
108
|
+
marginInlineStart: calc(iconGap).mul(-1).equal()
|
|
109
109
|
},
|
|
110
110
|
"&-appear-active, &-enter-active": {
|
|
111
111
|
marginInlineStart: 0
|
|
@@ -114,7 +114,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
114
114
|
marginInlineStart: 0
|
|
115
115
|
},
|
|
116
116
|
"&-leave-active": {
|
|
117
|
-
marginInlineStart: calc(
|
|
117
|
+
marginInlineStart: calc(iconGap).mul(-1).equal()
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -234,8 +234,10 @@ const genPresetColorStyle = (token2) => {
|
|
|
234
234
|
borderColor: activeColor,
|
|
235
235
|
background: token2.colorBgContainer
|
|
236
236
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, lightColor, {
|
|
237
|
+
color: darkColor,
|
|
237
238
|
background: lightHoverColor
|
|
238
239
|
}, {
|
|
240
|
+
color: darkColor,
|
|
239
241
|
background: lightBorderColor
|
|
240
242
|
})), genTextLinkButtonStyle(token2, darkColor, "link", {
|
|
241
243
|
color: hoverColor
|
|
@@ -261,8 +263,10 @@ const genDefaultButtonStyle = (token2) => Object.assign(Object.assign(Object.ass
|
|
|
261
263
|
color: token2.solidTextColor,
|
|
262
264
|
background: token2.colorBgSolidActive
|
|
263
265
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorFillTertiary, {
|
|
266
|
+
color: token2.defaultColor,
|
|
264
267
|
background: token2.colorFillSecondary
|
|
265
268
|
}, {
|
|
269
|
+
color: token2.defaultColor,
|
|
266
270
|
background: token2.colorFill
|
|
267
271
|
})), genGhostButtonStyle(token2.componentCls, token2.ghostBg, token2.defaultGhostColor, token2.defaultGhostBorderColor, token2.colorTextDisabled, token2.colorBorder)), genTextLinkButtonStyle(token2, token2.textTextColor, "link", {
|
|
268
272
|
color: token2.colorLinkHover,
|
|
@@ -282,8 +286,10 @@ const genPrimaryButtonStyle = (token2) => Object.assign(Object.assign(Object.ass
|
|
|
282
286
|
borderColor: token2.colorPrimaryActive,
|
|
283
287
|
background: token2.colorBgContainer
|
|
284
288
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorPrimaryBg, {
|
|
289
|
+
color: token2.colorPrimary,
|
|
285
290
|
background: token2.colorPrimaryBgHover
|
|
286
291
|
}, {
|
|
292
|
+
color: token2.colorPrimary,
|
|
287
293
|
background: token2.colorPrimaryBorder
|
|
288
294
|
})), genTextLinkButtonStyle(token2, token2.colorPrimaryText, "text", {
|
|
289
295
|
color: token2.colorPrimaryTextHover,
|
|
@@ -317,8 +323,10 @@ const genDangerousStyle = (token2) => Object.assign(Object.assign(Object.assign(
|
|
|
317
323
|
color: token2.colorErrorActive,
|
|
318
324
|
borderColor: token2.colorErrorActive
|
|
319
325
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorErrorBg, {
|
|
326
|
+
color: token2.colorError,
|
|
320
327
|
background: token2.colorErrorBgFilledHover
|
|
321
328
|
}, {
|
|
329
|
+
color: token2.colorError,
|
|
322
330
|
background: token2.colorErrorBgActive
|
|
323
331
|
})), genTextLinkButtonStyle(token2, token2.colorError, "text", {
|
|
324
332
|
color: token2.colorErrorHover,
|
|
@@ -385,8 +393,7 @@ const genCompatibleButtonStyle = (token2) => Object.assign(Object.assign(Object.
|
|
|
385
393
|
}, {
|
|
386
394
|
color: token2.colorLinkActive
|
|
387
395
|
}));
|
|
388
|
-
const genButtonStyle =
|
|
389
|
-
let prefixCls = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
396
|
+
const genButtonStyle = (token2, prefixCls = "") => {
|
|
390
397
|
const {
|
|
391
398
|
componentCls,
|
|
392
399
|
controlHeight,
|
|
@@ -27,7 +27,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
27
27
|
opacityLoading,
|
|
28
28
|
motionDurationSlow,
|
|
29
29
|
motionEaseInOut,
|
|
30
|
-
|
|
30
|
+
iconGap,
|
|
31
31
|
calc
|
|
32
32
|
} = token;
|
|
33
33
|
return {
|
|
@@ -35,7 +35,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
35
35
|
outline: "none",
|
|
36
36
|
position: "relative",
|
|
37
37
|
display: "inline-flex",
|
|
38
|
-
gap:
|
|
38
|
+
gap: iconGap,
|
|
39
39
|
alignItems: "center",
|
|
40
40
|
justifyContent: "center",
|
|
41
41
|
fontWeight,
|
|
@@ -87,7 +87,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
87
87
|
[`&:not(${componentCls}-icon-end)`]: {
|
|
88
88
|
[`${componentCls}-loading-icon-motion`]: {
|
|
89
89
|
"&-appear-start, &-enter-start": {
|
|
90
|
-
marginInlineEnd: calc(
|
|
90
|
+
marginInlineEnd: calc(iconGap).mul(-1).equal()
|
|
91
91
|
},
|
|
92
92
|
"&-appear-active, &-enter-active": {
|
|
93
93
|
marginInlineEnd: 0
|
|
@@ -96,7 +96,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
96
96
|
marginInlineEnd: 0
|
|
97
97
|
},
|
|
98
98
|
"&-leave-active": {
|
|
99
|
-
marginInlineEnd: calc(
|
|
99
|
+
marginInlineEnd: calc(iconGap).mul(-1).equal()
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
@@ -104,7 +104,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
104
104
|
flexDirection: "row-reverse",
|
|
105
105
|
[`${componentCls}-loading-icon-motion`]: {
|
|
106
106
|
"&-appear-start, &-enter-start": {
|
|
107
|
-
marginInlineStart: calc(
|
|
107
|
+
marginInlineStart: calc(iconGap).mul(-1).equal()
|
|
108
108
|
},
|
|
109
109
|
"&-appear-active, &-enter-active": {
|
|
110
110
|
marginInlineStart: 0
|
|
@@ -113,7 +113,7 @@ const genSharedButtonStyle = (token) => {
|
|
|
113
113
|
marginInlineStart: 0
|
|
114
114
|
},
|
|
115
115
|
"&-leave-active": {
|
|
116
|
-
marginInlineStart: calc(
|
|
116
|
+
marginInlineStart: calc(iconGap).mul(-1).equal()
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -233,8 +233,10 @@ const genPresetColorStyle = (token) => {
|
|
|
233
233
|
borderColor: activeColor,
|
|
234
234
|
background: token.colorBgContainer
|
|
235
235
|
})), genDashedButtonStyle(token)), genFilledButtonStyle(token, lightColor, {
|
|
236
|
+
color: darkColor,
|
|
236
237
|
background: lightHoverColor
|
|
237
238
|
}, {
|
|
239
|
+
color: darkColor,
|
|
238
240
|
background: lightBorderColor
|
|
239
241
|
})), genTextLinkButtonStyle(token, darkColor, "link", {
|
|
240
242
|
color: hoverColor
|
|
@@ -260,8 +262,10 @@ const genDefaultButtonStyle = (token) => Object.assign(Object.assign(Object.assi
|
|
|
260
262
|
color: token.solidTextColor,
|
|
261
263
|
background: token.colorBgSolidActive
|
|
262
264
|
})), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorFillTertiary, {
|
|
265
|
+
color: token.defaultColor,
|
|
263
266
|
background: token.colorFillSecondary
|
|
264
267
|
}, {
|
|
268
|
+
color: token.defaultColor,
|
|
265
269
|
background: token.colorFill
|
|
266
270
|
})), genGhostButtonStyle(token.componentCls, token.ghostBg, token.defaultGhostColor, token.defaultGhostBorderColor, token.colorTextDisabled, token.colorBorder)), genTextLinkButtonStyle(token, token.textTextColor, "link", {
|
|
267
271
|
color: token.colorLinkHover,
|
|
@@ -281,8 +285,10 @@ const genPrimaryButtonStyle = (token) => Object.assign(Object.assign(Object.assi
|
|
|
281
285
|
borderColor: token.colorPrimaryActive,
|
|
282
286
|
background: token.colorBgContainer
|
|
283
287
|
})), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorPrimaryBg, {
|
|
288
|
+
color: token.colorPrimary,
|
|
284
289
|
background: token.colorPrimaryBgHover
|
|
285
290
|
}, {
|
|
291
|
+
color: token.colorPrimary,
|
|
286
292
|
background: token.colorPrimaryBorder
|
|
287
293
|
})), genTextLinkButtonStyle(token, token.colorPrimaryText, "text", {
|
|
288
294
|
color: token.colorPrimaryTextHover,
|
|
@@ -316,8 +322,10 @@ const genDangerousStyle = (token) => Object.assign(Object.assign(Object.assign(O
|
|
|
316
322
|
color: token.colorErrorActive,
|
|
317
323
|
borderColor: token.colorErrorActive
|
|
318
324
|
})), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorErrorBg, {
|
|
325
|
+
color: token.colorError,
|
|
319
326
|
background: token.colorErrorBgFilledHover
|
|
320
327
|
}, {
|
|
328
|
+
color: token.colorError,
|
|
321
329
|
background: token.colorErrorBgActive
|
|
322
330
|
})), genTextLinkButtonStyle(token, token.colorError, "text", {
|
|
323
331
|
color: token.colorErrorHover,
|
|
@@ -384,8 +392,7 @@ const genCompatibleButtonStyle = (token) => Object.assign(Object.assign(Object.a
|
|
|
384
392
|
}, {
|
|
385
393
|
color: token.colorLinkActive
|
|
386
394
|
}));
|
|
387
|
-
const genButtonStyle =
|
|
388
|
-
let prefixCls = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
395
|
+
const genButtonStyle = (token, prefixCls = "") => {
|
|
389
396
|
const {
|
|
390
397
|
componentCls,
|
|
391
398
|
controlHeight,
|
|
@@ -46,6 +46,7 @@ const prepareComponentToken = (token) => {
|
|
|
46
46
|
}), {});
|
|
47
47
|
return Object.assign(Object.assign({}, shadowColorTokens), {
|
|
48
48
|
fontWeight: 400,
|
|
49
|
+
iconGap: token.marginXS,
|
|
49
50
|
defaultShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`,
|
|
50
51
|
primaryShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`,
|
|
51
52
|
dangerShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`,
|
|
@@ -45,6 +45,7 @@ const prepareComponentToken = (token) => {
|
|
|
45
45
|
}), {});
|
|
46
46
|
return Object.assign(Object.assign({}, shadowColorTokens), {
|
|
47
47
|
fontWeight: 400,
|
|
48
|
+
iconGap: token.marginXS,
|
|
48
49
|
defaultShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`,
|
|
49
50
|
primaryShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`,
|
|
50
51
|
dangerShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`,
|
|
@@ -92,8 +92,7 @@ const Card = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
92
92
|
const [variant] = useVariants("card", customVariant, bordered);
|
|
93
93
|
if (process.env.NODE_ENV !== "production") {
|
|
94
94
|
const warning$1 = warning.devUseWarning("Card");
|
|
95
|
-
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((
|
|
96
|
-
let [deprecatedName, newName] = _ref;
|
|
95
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach(([deprecatedName, newName]) => {
|
|
97
96
|
warning$1.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
98
97
|
});
|
|
99
98
|
}
|
|
@@ -72,8 +72,7 @@ const Card = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
72
72
|
const [variant] = useVariant("card", customVariant, bordered);
|
|
73
73
|
if (process.env.NODE_ENV !== "production") {
|
|
74
74
|
const warning = devUseWarning("Card");
|
|
75
|
-
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((
|
|
76
|
-
let [deprecatedName, newName] = _ref;
|
|
75
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach(([deprecatedName, newName]) => {
|
|
77
76
|
warning.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
78
77
|
});
|
|
79
78
|
}
|
|
@@ -133,7 +133,7 @@ const genCardActionsStyle = (token) => {
|
|
|
133
133
|
[`a:not(${componentCls}-btn), > ${iconCls}`]: {
|
|
134
134
|
display: "inline-block",
|
|
135
135
|
width: "100%",
|
|
136
|
-
color: token.
|
|
136
|
+
color: token.colorIcon,
|
|
137
137
|
lineHeight: index.unit(token.fontHeight),
|
|
138
138
|
transition: `color ${token.motionDurationMid}`,
|
|
139
139
|
"&:hover": {
|
|
@@ -131,7 +131,7 @@ const genCardActionsStyle = (token) => {
|
|
|
131
131
|
[`a:not(${componentCls}-btn), > ${iconCls}`]: {
|
|
132
132
|
display: "inline-block",
|
|
133
133
|
width: "100%",
|
|
134
|
-
color: token.
|
|
134
|
+
color: token.colorIcon,
|
|
135
135
|
lineHeight: unit(token.fontHeight),
|
|
136
136
|
transition: `color ${token.motionDurationMid}`,
|
|
137
137
|
"&:hover": {
|
|
@@ -98,9 +98,9 @@ const InternalCheckbox = (props, ref$1) => {
|
|
|
98
98
|
const [wrapCSSVar, hashId, cssVarCls] = index.default(prefixCls, rootCls);
|
|
99
99
|
const checkboxProps = Object.assign({}, restProps);
|
|
100
100
|
if (checkboxGroup && !skipGroup) {
|
|
101
|
-
checkboxProps.onChange =
|
|
101
|
+
checkboxProps.onChange = (...args) => {
|
|
102
102
|
if (restProps.onChange) {
|
|
103
|
-
restProps.onChange.apply(restProps,
|
|
103
|
+
restProps.onChange.apply(restProps, args);
|
|
104
104
|
}
|
|
105
105
|
if (checkboxGroup.toggleOption) {
|
|
106
106
|
checkboxGroup.toggleOption({
|
|
@@ -137,7 +137,7 @@ const InternalCheckbox = (props, ref$1) => {
|
|
|
137
137
|
className: checkboxClass,
|
|
138
138
|
disabled: mergedDisabled,
|
|
139
139
|
ref: mergedRef
|
|
140
|
-
})), children !== void 0 && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
140
|
+
})), children !== void 0 && children !== null && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
141
141
|
className: `${prefixCls}-label`
|
|
142
142
|
}, children))));
|
|
143
143
|
};
|
|
@@ -78,9 +78,9 @@ const InternalCheckbox = (props, ref) => {
|
|
|
78
78
|
const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, rootCls);
|
|
79
79
|
const checkboxProps = Object.assign({}, restProps);
|
|
80
80
|
if (checkboxGroup && !skipGroup) {
|
|
81
|
-
checkboxProps.onChange =
|
|
81
|
+
checkboxProps.onChange = (...args) => {
|
|
82
82
|
if (restProps.onChange) {
|
|
83
|
-
restProps.onChange.apply(restProps,
|
|
83
|
+
restProps.onChange.apply(restProps, args);
|
|
84
84
|
}
|
|
85
85
|
if (checkboxGroup.toggleOption) {
|
|
86
86
|
checkboxGroup.toggleOption({
|
|
@@ -117,7 +117,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
117
117
|
className: checkboxClass,
|
|
118
118
|
disabled: mergedDisabled,
|
|
119
119
|
ref: mergedRef
|
|
120
|
-
})), children !== void 0 && /* @__PURE__ */ React.createElement("span", {
|
|
120
|
+
})), children !== void 0 && children !== null && /* @__PURE__ */ React.createElement("span", {
|
|
121
121
|
className: `${prefixCls}-label`
|
|
122
122
|
}, children))));
|
|
123
123
|
};
|
|
@@ -103,13 +103,13 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
103
103
|
value: option.value,
|
|
104
104
|
checked: value.includes(option.value),
|
|
105
105
|
onChange: option.onChange,
|
|
106
|
-
className: `${groupPrefixCls}-item`,
|
|
106
|
+
className: index$1(`${groupPrefixCls}-item`, option.className),
|
|
107
107
|
style: option.style,
|
|
108
108
|
title: option.title,
|
|
109
109
|
id: option.id,
|
|
110
110
|
required: option.required
|
|
111
111
|
}, option.label)) : children;
|
|
112
|
-
const
|
|
112
|
+
const memoizedContext = React__namespace.useMemo(() => ({
|
|
113
113
|
toggleOption,
|
|
114
114
|
value,
|
|
115
115
|
disabled: restProps.disabled,
|
|
@@ -117,7 +117,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
117
117
|
// https://github.com/ant-design/ant-design/issues/16376
|
|
118
118
|
registerValue,
|
|
119
119
|
cancelValue
|
|
120
|
-
};
|
|
120
|
+
}), [toggleOption, value, restProps.disabled, restProps.name, registerValue, cancelValue]);
|
|
121
121
|
const classString = index$1(groupPrefixCls, {
|
|
122
122
|
[`${groupPrefixCls}-rtl`]: direction === "rtl"
|
|
123
123
|
}, className, rootClassName, cssVarCls, rootCls, hashId);
|
|
@@ -127,7 +127,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
127
127
|
}, domProps, {
|
|
128
128
|
ref
|
|
129
129
|
}), /* @__PURE__ */ React__namespace.createElement(GroupContext.Provider, {
|
|
130
|
-
value:
|
|
130
|
+
value: memoizedContext
|
|
131
131
|
}, childrenNode)));
|
|
132
132
|
});
|
|
133
133
|
exports.GroupContext = GroupContext;
|
|
@@ -82,13 +82,13 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
82
82
|
value: option.value,
|
|
83
83
|
checked: value.includes(option.value),
|
|
84
84
|
onChange: option.onChange,
|
|
85
|
-
className: `${groupPrefixCls}-item`,
|
|
85
|
+
className: classNames(`${groupPrefixCls}-item`, option.className),
|
|
86
86
|
style: option.style,
|
|
87
87
|
title: option.title,
|
|
88
88
|
id: option.id,
|
|
89
89
|
required: option.required
|
|
90
90
|
}, option.label)) : children;
|
|
91
|
-
const
|
|
91
|
+
const memoizedContext = React.useMemo(() => ({
|
|
92
92
|
toggleOption,
|
|
93
93
|
value,
|
|
94
94
|
disabled: restProps.disabled,
|
|
@@ -96,7 +96,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
96
96
|
// https://github.com/ant-design/ant-design/issues/16376
|
|
97
97
|
registerValue,
|
|
98
98
|
cancelValue
|
|
99
|
-
};
|
|
99
|
+
}), [toggleOption, value, restProps.disabled, restProps.name, registerValue, cancelValue]);
|
|
100
100
|
const classString = classNames(groupPrefixCls, {
|
|
101
101
|
[`${groupPrefixCls}-rtl`]: direction === "rtl"
|
|
102
102
|
}, className, rootClassName, cssVarCls, rootCls, hashId);
|
|
@@ -106,7 +106,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
106
106
|
}, domProps, {
|
|
107
107
|
ref
|
|
108
108
|
}), /* @__PURE__ */ React.createElement(GroupContext.Provider, {
|
|
109
|
-
value:
|
|
109
|
+
value: memoizedContext
|
|
110
110
|
}, childrenNode)));
|
|
111
111
|
});
|
|
112
112
|
export {
|
|
@@ -82,7 +82,7 @@ const genCheckboxStyle = (token) => {
|
|
|
82
82
|
cursor: "pointer",
|
|
83
83
|
opacity: 0,
|
|
84
84
|
margin: 0,
|
|
85
|
-
[`&:focus-visible + ${checkboxCls}-inner`]:
|
|
85
|
+
[`&:focus-visible + ${checkboxCls}-inner`]: index.genFocusOutline(token)
|
|
86
86
|
},
|
|
87
87
|
// Wrapper > Checkbox > inner
|
|
88
88
|
[`${checkboxCls}-inner`]: {
|
|
@@ -169,26 +169,28 @@ const genCheckboxStyle = (token) => {
|
|
|
169
169
|
{
|
|
170
170
|
[checkboxCls]: {
|
|
171
171
|
"&-indeterminate": {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
172
|
+
"&": {
|
|
173
|
+
// Wrapper > Checkbox > inner
|
|
174
|
+
[`${checkboxCls}-inner`]: {
|
|
175
|
+
backgroundColor: `${token.colorBgContainer}`,
|
|
176
|
+
borderColor: `${token.colorBorder}`,
|
|
177
|
+
"&:after": {
|
|
178
|
+
top: "50%",
|
|
179
|
+
insetInlineStart: "50%",
|
|
180
|
+
width: token.calc(token.fontSizeLG).div(2).equal(),
|
|
181
|
+
height: token.calc(token.fontSizeLG).div(2).equal(),
|
|
182
|
+
backgroundColor: token.colorPrimary,
|
|
183
|
+
border: 0,
|
|
184
|
+
transform: "translate(-50%, -50%) scale(1)",
|
|
185
|
+
opacity: 1,
|
|
186
|
+
content: '""'
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
// https://github.com/ant-design/ant-design/issues/50074
|
|
190
|
+
[`&:hover ${checkboxCls}-inner`]: {
|
|
191
|
+
backgroundColor: `${token.colorBgContainer}`,
|
|
192
|
+
borderColor: `${token.colorPrimary}`
|
|
186
193
|
}
|
|
187
|
-
},
|
|
188
|
-
// https://github.com/ant-design/ant-design/issues/50074
|
|
189
|
-
[`&:hover ${checkboxCls}-inner`]: {
|
|
190
|
-
backgroundColor: `${token.colorBgContainer} !important`,
|
|
191
|
-
borderColor: `${token.colorPrimary} !important`
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
}
|
|
@@ -234,14 +236,11 @@ function getStyle(prefixCls, token) {
|
|
|
234
236
|
checkboxCls: `.${prefixCls}`,
|
|
235
237
|
checkboxSize: token.controlInteractiveSize
|
|
236
238
|
});
|
|
237
|
-
return
|
|
239
|
+
return genCheckboxStyle(checkboxToken);
|
|
238
240
|
}
|
|
239
|
-
var useStyle = genStyleUtils.genStyleHooks("Checkbox", (token,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
} = _ref;
|
|
243
|
-
return [getStyle(prefixCls, token)];
|
|
244
|
-
});
|
|
241
|
+
var useStyle = genStyleUtils.genStyleHooks("Checkbox", (token, {
|
|
242
|
+
prefixCls
|
|
243
|
+
}) => [getStyle(prefixCls, token)]);
|
|
245
244
|
exports.default = useStyle;
|
|
246
245
|
exports.genCheckboxStyle = genCheckboxStyle;
|
|
247
246
|
exports.getStyle = getStyle;
|
|
@@ -80,7 +80,7 @@ const genCheckboxStyle = (token) => {
|
|
|
80
80
|
cursor: "pointer",
|
|
81
81
|
opacity: 0,
|
|
82
82
|
margin: 0,
|
|
83
|
-
[`&:focus-visible + ${checkboxCls}-inner`]:
|
|
83
|
+
[`&:focus-visible + ${checkboxCls}-inner`]: genFocusOutline(token)
|
|
84
84
|
},
|
|
85
85
|
// Wrapper > Checkbox > inner
|
|
86
86
|
[`${checkboxCls}-inner`]: {
|
|
@@ -167,26 +167,28 @@ const genCheckboxStyle = (token) => {
|
|
|
167
167
|
{
|
|
168
168
|
[checkboxCls]: {
|
|
169
169
|
"&-indeterminate": {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
170
|
+
"&": {
|
|
171
|
+
// Wrapper > Checkbox > inner
|
|
172
|
+
[`${checkboxCls}-inner`]: {
|
|
173
|
+
backgroundColor: `${token.colorBgContainer}`,
|
|
174
|
+
borderColor: `${token.colorBorder}`,
|
|
175
|
+
"&:after": {
|
|
176
|
+
top: "50%",
|
|
177
|
+
insetInlineStart: "50%",
|
|
178
|
+
width: token.calc(token.fontSizeLG).div(2).equal(),
|
|
179
|
+
height: token.calc(token.fontSizeLG).div(2).equal(),
|
|
180
|
+
backgroundColor: token.colorPrimary,
|
|
181
|
+
border: 0,
|
|
182
|
+
transform: "translate(-50%, -50%) scale(1)",
|
|
183
|
+
opacity: 1,
|
|
184
|
+
content: '""'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
// https://github.com/ant-design/ant-design/issues/50074
|
|
188
|
+
[`&:hover ${checkboxCls}-inner`]: {
|
|
189
|
+
backgroundColor: `${token.colorBgContainer}`,
|
|
190
|
+
borderColor: `${token.colorPrimary}`
|
|
184
191
|
}
|
|
185
|
-
},
|
|
186
|
-
// https://github.com/ant-design/ant-design/issues/50074
|
|
187
|
-
[`&:hover ${checkboxCls}-inner`]: {
|
|
188
|
-
backgroundColor: `${token.colorBgContainer} !important`,
|
|
189
|
-
borderColor: `${token.colorPrimary} !important`
|
|
190
192
|
}
|
|
191
193
|
}
|
|
192
194
|
}
|
|
@@ -232,14 +234,11 @@ function getStyle(prefixCls, token) {
|
|
|
232
234
|
checkboxCls: `.${prefixCls}`,
|
|
233
235
|
checkboxSize: token.controlInteractiveSize
|
|
234
236
|
});
|
|
235
|
-
return
|
|
237
|
+
return genCheckboxStyle(checkboxToken);
|
|
236
238
|
}
|
|
237
|
-
var useStyle = genStyleHooks("Checkbox", (token,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
} = _ref;
|
|
241
|
-
return [getStyle(prefixCls, token)];
|
|
242
|
-
});
|
|
239
|
+
var useStyle = genStyleHooks("Checkbox", (token, {
|
|
240
|
+
prefixCls
|
|
241
|
+
}) => [getStyle(prefixCls, token)]);
|
|
243
242
|
export {
|
|
244
243
|
useStyle as default,
|
|
245
244
|
genCheckboxStyle,
|
|
@@ -7,7 +7,7 @@ require("../../../../_virtual/index.cjs");
|
|
|
7
7
|
require("react");
|
|
8
8
|
const toHexFormat = (value, alpha) => (value === null || value === void 0 ? void 0 : value.replace(/[^\w/]/g, "").slice(0, alpha ? 8 : 6)) || "";
|
|
9
9
|
const getHex = (value, alpha) => value ? toHexFormat(value, alpha) : "";
|
|
10
|
-
let AggregationColor = /* @__PURE__ */ function() {
|
|
10
|
+
let AggregationColor = /* @__PURE__ */ (function() {
|
|
11
11
|
function AggregationColor2(color$1) {
|
|
12
12
|
classCallCheck(this, AggregationColor2);
|
|
13
13
|
var _a;
|
|
@@ -23,16 +23,13 @@ let AggregationColor = /* @__PURE__ */ function() {
|
|
|
23
23
|
}
|
|
24
24
|
const isArray = Array.isArray(color$1);
|
|
25
25
|
if (isArray && color$1.length) {
|
|
26
|
-
this.colors = color$1.map((
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
percent
|
|
34
|
-
};
|
|
35
|
-
});
|
|
26
|
+
this.colors = color$1.map(({
|
|
27
|
+
color: c,
|
|
28
|
+
percent
|
|
29
|
+
}) => ({
|
|
30
|
+
color: new AggregationColor2(c),
|
|
31
|
+
percent
|
|
32
|
+
}));
|
|
36
33
|
this.metaColor = new color.Color(this.colors[0].color.metaColor);
|
|
37
34
|
} else {
|
|
38
35
|
this.metaColor = new color.Color(isArray ? "" : color$1);
|
|
@@ -112,7 +109,7 @@ let AggregationColor = /* @__PURE__ */ function() {
|
|
|
112
109
|
});
|
|
113
110
|
}
|
|
114
111
|
}]);
|
|
115
|
-
}();
|
|
112
|
+
})();
|
|
116
113
|
exports.AggregationColor = AggregationColor;
|
|
117
114
|
exports.getHex = getHex;
|
|
118
115
|
exports.toHexFormat = toHexFormat;
|