@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
|
@@ -42,12 +42,12 @@ const genCardStyle = (token) => {
|
|
|
42
42
|
color: itemSelectedColor,
|
|
43
43
|
background: token.colorBgContainer
|
|
44
44
|
},
|
|
45
|
-
[`${componentCls}-tab-focus
|
|
45
|
+
[`${componentCls}-tab-focus:has(${componentCls}-tab-btn:focus-visible)`]: index$1.genFocusOutline(token, -3),
|
|
46
|
+
[`& ${componentCls}-tab${componentCls}-tab-focus ${componentCls}-tab-btn:focus-visible`]: {
|
|
47
|
+
outline: "none"
|
|
48
|
+
},
|
|
46
49
|
[`${componentCls}-ink-bar`]: {
|
|
47
50
|
visibility: "hidden"
|
|
48
|
-
},
|
|
49
|
-
[`& ${componentCls}-tab${componentCls}-tab-focus ${componentCls}-tab-btn`]: {
|
|
50
|
-
outline: "none"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
// ========================== Top & Bottom ==========================
|
|
@@ -181,7 +181,7 @@ const genDropdownStyle = (token) => {
|
|
|
181
181
|
_skip_check_: true,
|
|
182
182
|
value: token.marginSM
|
|
183
183
|
},
|
|
184
|
-
color: token.
|
|
184
|
+
color: token.colorIcon,
|
|
185
185
|
fontSize: token.fontSizeSM,
|
|
186
186
|
background: "transparent",
|
|
187
187
|
border: 0,
|
|
@@ -414,10 +414,13 @@ const genSizeStyle = (token) => {
|
|
|
414
414
|
componentCls,
|
|
415
415
|
cardPaddingSM,
|
|
416
416
|
cardPaddingLG,
|
|
417
|
+
cardHeightSM,
|
|
418
|
+
cardHeightLG,
|
|
417
419
|
horizontalItemPaddingSM,
|
|
418
420
|
horizontalItemPaddingLG
|
|
419
421
|
} = token;
|
|
420
422
|
return {
|
|
423
|
+
// >>>>> shared
|
|
421
424
|
[componentCls]: {
|
|
422
425
|
"&-small": {
|
|
423
426
|
[`> ${componentCls}-nav`]: {
|
|
@@ -431,16 +434,23 @@ const genSizeStyle = (token) => {
|
|
|
431
434
|
[`> ${componentCls}-nav`]: {
|
|
432
435
|
[`${componentCls}-tab`]: {
|
|
433
436
|
padding: horizontalItemPaddingLG,
|
|
434
|
-
fontSize: token.titleFontSizeLG
|
|
437
|
+
fontSize: token.titleFontSizeLG,
|
|
438
|
+
lineHeight: token.lineHeightLG
|
|
435
439
|
}
|
|
436
440
|
}
|
|
437
441
|
}
|
|
438
442
|
},
|
|
443
|
+
// >>>>> card
|
|
439
444
|
[`${componentCls}-card`]: {
|
|
445
|
+
// Small
|
|
440
446
|
[`&${componentCls}-small`]: {
|
|
441
447
|
[`> ${componentCls}-nav`]: {
|
|
442
448
|
[`${componentCls}-tab`]: {
|
|
443
449
|
padding: cardPaddingSM
|
|
450
|
+
},
|
|
451
|
+
[`${componentCls}-nav-add`]: {
|
|
452
|
+
minWidth: cardHeightSM,
|
|
453
|
+
minHeight: cardHeightSM
|
|
444
454
|
}
|
|
445
455
|
},
|
|
446
456
|
[`&${componentCls}-bottom`]: {
|
|
@@ -470,10 +480,15 @@ const genSizeStyle = (token) => {
|
|
|
470
480
|
}
|
|
471
481
|
}
|
|
472
482
|
},
|
|
483
|
+
// Large
|
|
473
484
|
[`&${componentCls}-large`]: {
|
|
474
485
|
[`> ${componentCls}-nav`]: {
|
|
475
486
|
[`${componentCls}-tab`]: {
|
|
476
487
|
padding: cardPaddingLG
|
|
488
|
+
},
|
|
489
|
+
[`${componentCls}-nav-add`]: {
|
|
490
|
+
minWidth: cardHeightLG,
|
|
491
|
+
minHeight: cardHeightLG
|
|
477
492
|
}
|
|
478
493
|
}
|
|
479
494
|
}
|
|
@@ -528,7 +543,7 @@ const genTabStyle = (token) => {
|
|
|
528
543
|
_skip_check_: true,
|
|
529
544
|
value: token.marginXS
|
|
530
545
|
},
|
|
531
|
-
color: token.
|
|
546
|
+
color: token.colorIcon,
|
|
532
547
|
fontSize: token.fontSizeSM,
|
|
533
548
|
background: "transparent",
|
|
534
549
|
border: "none",
|
|
@@ -546,7 +561,7 @@ const genTabStyle = (token) => {
|
|
|
546
561
|
color: itemSelectedColor,
|
|
547
562
|
textShadow: token.tabsActiveTextShadow
|
|
548
563
|
},
|
|
549
|
-
[`&${tabCls}-focus ${tabCls}-btn`]:
|
|
564
|
+
[`&${tabCls}-focus ${tabCls}-btn:focus-visible`]: index$1.genFocusOutline(token),
|
|
550
565
|
[`&${tabCls}-disabled`]: {
|
|
551
566
|
color: token.colorTextDisabled,
|
|
552
567
|
cursor: "not-allowed"
|
|
@@ -745,11 +760,11 @@ const genTabsStyle = (token) => {
|
|
|
745
760
|
},
|
|
746
761
|
[`${componentCls}-nav-add`]: Object.assign({
|
|
747
762
|
minWidth: cardHeight,
|
|
763
|
+
minHeight: cardHeight,
|
|
748
764
|
marginLeft: {
|
|
749
765
|
_skip_check_: true,
|
|
750
766
|
value: cardGutter
|
|
751
767
|
},
|
|
752
|
-
padding: index.unit(token.paddingXS),
|
|
753
768
|
background: "transparent",
|
|
754
769
|
border: `${index.unit(token.lineWidth)} ${token.lineType} ${colorBorderSecondary}`,
|
|
755
770
|
borderRadius: `${index.unit(token.borderRadiusLG)} ${index.unit(token.borderRadiusLG)} 0 0`,
|
|
@@ -803,15 +818,28 @@ const genTabsStyle = (token) => {
|
|
|
803
818
|
};
|
|
804
819
|
};
|
|
805
820
|
const prepareComponentToken = (token) => {
|
|
806
|
-
const
|
|
821
|
+
const {
|
|
822
|
+
cardHeight,
|
|
823
|
+
cardHeightSM,
|
|
824
|
+
cardHeightLG,
|
|
825
|
+
controlHeight,
|
|
826
|
+
controlHeightLG
|
|
827
|
+
} = token;
|
|
828
|
+
const mergedCardHeight = cardHeight || controlHeightLG;
|
|
829
|
+
const mergedCardHeightSM = cardHeightSM || controlHeight;
|
|
830
|
+
const mergedCardHeightLG = cardHeightLG || controlHeightLG + 8;
|
|
807
831
|
return {
|
|
808
832
|
zIndexPopup: token.zIndexPopupBase + 50,
|
|
809
833
|
cardBg: token.colorFillAlter,
|
|
810
|
-
|
|
834
|
+
// We can not pass this as valid value,
|
|
835
|
+
// Since `cardHeight` will lock nav add button height.
|
|
836
|
+
cardHeight: mergedCardHeight,
|
|
837
|
+
cardHeightSM: mergedCardHeightSM,
|
|
838
|
+
cardHeightLG: mergedCardHeightLG,
|
|
811
839
|
// Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
|
|
812
|
-
cardPadding: `${(
|
|
813
|
-
cardPaddingSM: `${token.
|
|
814
|
-
cardPaddingLG: `${token.
|
|
840
|
+
cardPadding: `${(mergedCardHeight - token.fontHeight) / 2 - token.lineWidth}px ${token.padding}px`,
|
|
841
|
+
cardPaddingSM: `${(mergedCardHeightSM - token.fontHeight) / 2 - token.lineWidth}px ${token.paddingXS}px`,
|
|
842
|
+
cardPaddingLG: `${(mergedCardHeightLG - token.fontHeightLG) / 2 - token.lineWidth}px ${token.padding}px`,
|
|
815
843
|
titleFontSize: token.fontSize,
|
|
816
844
|
titleFontSizeLG: token.fontSizeLG,
|
|
817
845
|
titleFontSizeSM: token.fontSize,
|
|
@@ -40,12 +40,12 @@ const genCardStyle = (token) => {
|
|
|
40
40
|
color: itemSelectedColor,
|
|
41
41
|
background: token.colorBgContainer
|
|
42
42
|
},
|
|
43
|
-
[`${componentCls}-tab-focus
|
|
43
|
+
[`${componentCls}-tab-focus:has(${componentCls}-tab-btn:focus-visible)`]: genFocusOutline(token, -3),
|
|
44
|
+
[`& ${componentCls}-tab${componentCls}-tab-focus ${componentCls}-tab-btn:focus-visible`]: {
|
|
45
|
+
outline: "none"
|
|
46
|
+
},
|
|
44
47
|
[`${componentCls}-ink-bar`]: {
|
|
45
48
|
visibility: "hidden"
|
|
46
|
-
},
|
|
47
|
-
[`& ${componentCls}-tab${componentCls}-tab-focus ${componentCls}-tab-btn`]: {
|
|
48
|
-
outline: "none"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
// ========================== Top & Bottom ==========================
|
|
@@ -179,7 +179,7 @@ const genDropdownStyle = (token) => {
|
|
|
179
179
|
_skip_check_: true,
|
|
180
180
|
value: token.marginSM
|
|
181
181
|
},
|
|
182
|
-
color: token.
|
|
182
|
+
color: token.colorIcon,
|
|
183
183
|
fontSize: token.fontSizeSM,
|
|
184
184
|
background: "transparent",
|
|
185
185
|
border: 0,
|
|
@@ -412,10 +412,13 @@ const genSizeStyle = (token) => {
|
|
|
412
412
|
componentCls,
|
|
413
413
|
cardPaddingSM,
|
|
414
414
|
cardPaddingLG,
|
|
415
|
+
cardHeightSM,
|
|
416
|
+
cardHeightLG,
|
|
415
417
|
horizontalItemPaddingSM,
|
|
416
418
|
horizontalItemPaddingLG
|
|
417
419
|
} = token;
|
|
418
420
|
return {
|
|
421
|
+
// >>>>> shared
|
|
419
422
|
[componentCls]: {
|
|
420
423
|
"&-small": {
|
|
421
424
|
[`> ${componentCls}-nav`]: {
|
|
@@ -429,16 +432,23 @@ const genSizeStyle = (token) => {
|
|
|
429
432
|
[`> ${componentCls}-nav`]: {
|
|
430
433
|
[`${componentCls}-tab`]: {
|
|
431
434
|
padding: horizontalItemPaddingLG,
|
|
432
|
-
fontSize: token.titleFontSizeLG
|
|
435
|
+
fontSize: token.titleFontSizeLG,
|
|
436
|
+
lineHeight: token.lineHeightLG
|
|
433
437
|
}
|
|
434
438
|
}
|
|
435
439
|
}
|
|
436
440
|
},
|
|
441
|
+
// >>>>> card
|
|
437
442
|
[`${componentCls}-card`]: {
|
|
443
|
+
// Small
|
|
438
444
|
[`&${componentCls}-small`]: {
|
|
439
445
|
[`> ${componentCls}-nav`]: {
|
|
440
446
|
[`${componentCls}-tab`]: {
|
|
441
447
|
padding: cardPaddingSM
|
|
448
|
+
},
|
|
449
|
+
[`${componentCls}-nav-add`]: {
|
|
450
|
+
minWidth: cardHeightSM,
|
|
451
|
+
minHeight: cardHeightSM
|
|
442
452
|
}
|
|
443
453
|
},
|
|
444
454
|
[`&${componentCls}-bottom`]: {
|
|
@@ -468,10 +478,15 @@ const genSizeStyle = (token) => {
|
|
|
468
478
|
}
|
|
469
479
|
}
|
|
470
480
|
},
|
|
481
|
+
// Large
|
|
471
482
|
[`&${componentCls}-large`]: {
|
|
472
483
|
[`> ${componentCls}-nav`]: {
|
|
473
484
|
[`${componentCls}-tab`]: {
|
|
474
485
|
padding: cardPaddingLG
|
|
486
|
+
},
|
|
487
|
+
[`${componentCls}-nav-add`]: {
|
|
488
|
+
minWidth: cardHeightLG,
|
|
489
|
+
minHeight: cardHeightLG
|
|
475
490
|
}
|
|
476
491
|
}
|
|
477
492
|
}
|
|
@@ -526,7 +541,7 @@ const genTabStyle = (token) => {
|
|
|
526
541
|
_skip_check_: true,
|
|
527
542
|
value: token.marginXS
|
|
528
543
|
},
|
|
529
|
-
color: token.
|
|
544
|
+
color: token.colorIcon,
|
|
530
545
|
fontSize: token.fontSizeSM,
|
|
531
546
|
background: "transparent",
|
|
532
547
|
border: "none",
|
|
@@ -544,7 +559,7 @@ const genTabStyle = (token) => {
|
|
|
544
559
|
color: itemSelectedColor,
|
|
545
560
|
textShadow: token.tabsActiveTextShadow
|
|
546
561
|
},
|
|
547
|
-
[`&${tabCls}-focus ${tabCls}-btn`]:
|
|
562
|
+
[`&${tabCls}-focus ${tabCls}-btn:focus-visible`]: genFocusOutline(token),
|
|
548
563
|
[`&${tabCls}-disabled`]: {
|
|
549
564
|
color: token.colorTextDisabled,
|
|
550
565
|
cursor: "not-allowed"
|
|
@@ -743,11 +758,11 @@ const genTabsStyle = (token) => {
|
|
|
743
758
|
},
|
|
744
759
|
[`${componentCls}-nav-add`]: Object.assign({
|
|
745
760
|
minWidth: cardHeight,
|
|
761
|
+
minHeight: cardHeight,
|
|
746
762
|
marginLeft: {
|
|
747
763
|
_skip_check_: true,
|
|
748
764
|
value: cardGutter
|
|
749
765
|
},
|
|
750
|
-
padding: unit(token.paddingXS),
|
|
751
766
|
background: "transparent",
|
|
752
767
|
border: `${unit(token.lineWidth)} ${token.lineType} ${colorBorderSecondary}`,
|
|
753
768
|
borderRadius: `${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)} 0 0`,
|
|
@@ -801,15 +816,28 @@ const genTabsStyle = (token) => {
|
|
|
801
816
|
};
|
|
802
817
|
};
|
|
803
818
|
const prepareComponentToken = (token) => {
|
|
804
|
-
const
|
|
819
|
+
const {
|
|
820
|
+
cardHeight,
|
|
821
|
+
cardHeightSM,
|
|
822
|
+
cardHeightLG,
|
|
823
|
+
controlHeight,
|
|
824
|
+
controlHeightLG
|
|
825
|
+
} = token;
|
|
826
|
+
const mergedCardHeight = cardHeight || controlHeightLG;
|
|
827
|
+
const mergedCardHeightSM = cardHeightSM || controlHeight;
|
|
828
|
+
const mergedCardHeightLG = cardHeightLG || controlHeightLG + 8;
|
|
805
829
|
return {
|
|
806
830
|
zIndexPopup: token.zIndexPopupBase + 50,
|
|
807
831
|
cardBg: token.colorFillAlter,
|
|
808
|
-
|
|
832
|
+
// We can not pass this as valid value,
|
|
833
|
+
// Since `cardHeight` will lock nav add button height.
|
|
834
|
+
cardHeight: mergedCardHeight,
|
|
835
|
+
cardHeightSM: mergedCardHeightSM,
|
|
836
|
+
cardHeightLG: mergedCardHeightLG,
|
|
809
837
|
// Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
|
|
810
|
-
cardPadding: `${(
|
|
811
|
-
cardPaddingSM: `${token.
|
|
812
|
-
cardPaddingLG: `${token.
|
|
838
|
+
cardPadding: `${(mergedCardHeight - token.fontHeight) / 2 - token.lineWidth}px ${token.padding}px`,
|
|
839
|
+
cardPaddingSM: `${(mergedCardHeightSM - token.fontHeight) / 2 - token.lineWidth}px ${token.paddingXS}px`,
|
|
840
|
+
cardPaddingLG: `${(mergedCardHeightLG - token.fontHeightLG) / 2 - token.lineWidth}px ${token.padding}px`,
|
|
813
841
|
titleFontSize: token.fontSize,
|
|
814
842
|
titleFontSizeLG: token.fontSizeLG,
|
|
815
843
|
titleFontSizeSM: token.fontSize,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var FastColor = require("../../../../../@ant-design/fast-color/es/FastColor.cjs");
|
|
3
|
-
function genColorMapToken(seed,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} = _ref;
|
|
3
|
+
function genColorMapToken(seed, {
|
|
4
|
+
generateColorPalettes,
|
|
5
|
+
generateNeutralColorPalettes
|
|
6
|
+
}) {
|
|
8
7
|
const {
|
|
9
8
|
colorSuccess: colorSuccessBase,
|
|
10
9
|
colorWarning: colorWarningBase,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FastColor } from "../../../../../@ant-design/fast-color/es/FastColor.js";
|
|
2
|
-
function genColorMapToken(seed,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} = _ref;
|
|
2
|
+
function genColorMapToken(seed, {
|
|
3
|
+
generateColorPalettes,
|
|
4
|
+
generateNeutralColorPalettes
|
|
5
|
+
}) {
|
|
7
6
|
const {
|
|
8
7
|
colorSuccess: colorSuccessBase,
|
|
9
8
|
colorWarning: colorWarningBase,
|
|
@@ -40,17 +40,6 @@ const unitless = {
|
|
|
40
40
|
opacityImage: true
|
|
41
41
|
};
|
|
42
42
|
const ignore = {
|
|
43
|
-
size: true,
|
|
44
|
-
sizeSM: true,
|
|
45
|
-
sizeLG: true,
|
|
46
|
-
sizeMD: true,
|
|
47
|
-
sizeXS: true,
|
|
48
|
-
sizeXXS: true,
|
|
49
|
-
sizeMS: true,
|
|
50
|
-
sizeXL: true,
|
|
51
|
-
sizeXXL: true,
|
|
52
|
-
sizeUnit: true,
|
|
53
|
-
sizeStep: true,
|
|
54
43
|
motionBase: true,
|
|
55
44
|
motionUnit: true
|
|
56
45
|
};
|
|
@@ -83,8 +72,7 @@ const getComputedToken = (originToken, overrideToken, theme2) => {
|
|
|
83
72
|
});
|
|
84
73
|
mergedDerivativeToken = alias(mergedDerivativeToken);
|
|
85
74
|
if (components) {
|
|
86
|
-
Object.entries(components).forEach((
|
|
87
|
-
let [key, value] = _ref;
|
|
75
|
+
Object.entries(components).forEach(([key, value]) => {
|
|
88
76
|
const {
|
|
89
77
|
theme: componentTheme
|
|
90
78
|
} = value, componentTokens = __rest(value, ["theme"]);
|
|
@@ -38,17 +38,6 @@ const unitless = {
|
|
|
38
38
|
opacityImage: true
|
|
39
39
|
};
|
|
40
40
|
const ignore = {
|
|
41
|
-
size: true,
|
|
42
|
-
sizeSM: true,
|
|
43
|
-
sizeLG: true,
|
|
44
|
-
sizeMD: true,
|
|
45
|
-
sizeXS: true,
|
|
46
|
-
sizeXXS: true,
|
|
47
|
-
sizeMS: true,
|
|
48
|
-
sizeXL: true,
|
|
49
|
-
sizeXXL: true,
|
|
50
|
-
sizeUnit: true,
|
|
51
|
-
sizeStep: true,
|
|
52
41
|
motionBase: true,
|
|
53
42
|
motionUnit: true
|
|
54
43
|
};
|
|
@@ -81,8 +70,7 @@ const getComputedToken = (originToken, overrideToken, theme) => {
|
|
|
81
70
|
});
|
|
82
71
|
mergedDerivativeToken = formatToken(mergedDerivativeToken);
|
|
83
72
|
if (components) {
|
|
84
|
-
Object.entries(components).forEach((
|
|
85
|
-
let [key, value] = _ref;
|
|
73
|
+
Object.entries(components).forEach(([key, value]) => {
|
|
86
74
|
const {
|
|
87
75
|
theme: componentTheme
|
|
88
76
|
} = value, componentTokens = __rest(value, ["theme"]);
|
|
@@ -10,6 +10,7 @@ var placements = require("../_util/placements.cjs");
|
|
|
10
10
|
var reactNode = require("../_util/reactNode.cjs");
|
|
11
11
|
var warning = require("../_util/warning.cjs");
|
|
12
12
|
var zindexContext = require("../_util/zindexContext.cjs");
|
|
13
|
+
var context = require("../config-provider/context.cjs");
|
|
13
14
|
require("../../../@ant-design/cssinjs/es/extractStyle.cjs");
|
|
14
15
|
require("../../../@ant-design/cssinjs/es/hooks/useCacheToken.cjs");
|
|
15
16
|
require("../../../@ant-design/cssinjs/es/StyleContext.cjs");
|
|
@@ -27,7 +28,6 @@ var useToken = require("../theme/useToken.cjs");
|
|
|
27
28
|
var PurePanel = require("./PurePanel.cjs");
|
|
28
29
|
var index$1 = require("./style/index.cjs");
|
|
29
30
|
var util = require("./util.cjs");
|
|
30
|
-
var context = require("../config-provider/context.cjs");
|
|
31
31
|
function _interopNamespaceDefault(e) {
|
|
32
32
|
var n = /* @__PURE__ */ Object.create(null);
|
|
33
33
|
if (e) {
|
|
@@ -67,6 +67,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
67
67
|
afterOpenChange,
|
|
68
68
|
afterVisibleChange,
|
|
69
69
|
destroyTooltipOnHide,
|
|
70
|
+
destroyOnHidden,
|
|
70
71
|
arrow = true,
|
|
71
72
|
title,
|
|
72
73
|
overlay,
|
|
@@ -83,7 +84,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
83
84
|
overlayClassName,
|
|
84
85
|
styles,
|
|
85
86
|
classNames: tooltipClassNames
|
|
86
|
-
} = props, restProps = __rest(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
87
|
+
} = props, restProps = __rest(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
87
88
|
const mergedShowArrow = !!arrow;
|
|
88
89
|
const [, token] = useToken.default();
|
|
89
90
|
const {
|
|
@@ -114,8 +115,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
114
115
|
};
|
|
115
116
|
});
|
|
116
117
|
if (process.env.NODE_ENV !== "production") {
|
|
117
|
-
[["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((
|
|
118
|
-
let [deprecatedName, newName] = _ref;
|
|
118
|
+
[["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([deprecatedName, newName]) => {
|
|
119
119
|
warning$1.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
120
120
|
});
|
|
121
121
|
process.env.NODE_ENV !== "production" ? warning$1(!destroyTooltipOnHide || typeof destroyTooltipOnHide === "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.") : void 0;
|
|
@@ -205,7 +205,8 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
205
205
|
motionName: motion.getTransitionName(rootPrefixCls, "zoom-big-fast", props.transitionName),
|
|
206
206
|
motionDeadline: 1e3
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
// TODO: In the future, destroyTooltipOnHide in rc-tooltip needs to be upgrade to destroyOnHidden
|
|
209
|
+
destroyTooltipOnHide: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : !!destroyTooltipOnHide
|
|
209
210
|
}), tempOpen ? reactNode.cloneElement(child, {
|
|
210
211
|
className: childCls
|
|
211
212
|
}) : child);
|
|
@@ -9,6 +9,7 @@ import getPlacements from "../_util/placements.js";
|
|
|
9
9
|
import { isFragment, cloneElement } from "../_util/reactNode.js";
|
|
10
10
|
import { devUseWarning } from "../_util/warning.js";
|
|
11
11
|
import zIndexContext from "../_util/zindexContext.js";
|
|
12
|
+
import { useComponentConfig } from "../config-provider/context.js";
|
|
12
13
|
import "../../../@ant-design/cssinjs/es/extractStyle.js";
|
|
13
14
|
import "../../../@ant-design/cssinjs/es/hooks/useCacheToken.js";
|
|
14
15
|
import "../../../@ant-design/cssinjs/es/StyleContext.js";
|
|
@@ -26,7 +27,6 @@ import useToken from "../theme/useToken.js";
|
|
|
26
27
|
import PurePanel from "./PurePanel.js";
|
|
27
28
|
import useStyle from "./style/index.js";
|
|
28
29
|
import { parseColor } from "./util.js";
|
|
29
|
-
import { useComponentConfig } from "../config-provider/context.js";
|
|
30
30
|
var __rest = function(s, e) {
|
|
31
31
|
var t = {};
|
|
32
32
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -47,6 +47,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
47
47
|
afterOpenChange,
|
|
48
48
|
afterVisibleChange,
|
|
49
49
|
destroyTooltipOnHide,
|
|
50
|
+
destroyOnHidden,
|
|
50
51
|
arrow = true,
|
|
51
52
|
title,
|
|
52
53
|
overlay,
|
|
@@ -63,7 +64,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
63
64
|
overlayClassName,
|
|
64
65
|
styles,
|
|
65
66
|
classNames: tooltipClassNames
|
|
66
|
-
} = props, restProps = __rest(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
67
|
+
} = props, restProps = __rest(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
67
68
|
const mergedShowArrow = !!arrow;
|
|
68
69
|
const [, token] = useToken();
|
|
69
70
|
const {
|
|
@@ -94,8 +95,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
94
95
|
};
|
|
95
96
|
});
|
|
96
97
|
if (process.env.NODE_ENV !== "production") {
|
|
97
|
-
[["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((
|
|
98
|
-
let [deprecatedName, newName] = _ref;
|
|
98
|
+
[["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([deprecatedName, newName]) => {
|
|
99
99
|
warning.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
100
100
|
});
|
|
101
101
|
process.env.NODE_ENV !== "production" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.") : void 0;
|
|
@@ -185,7 +185,8 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
185
185
|
motionName: getTransitionName(rootPrefixCls, "zoom-big-fast", props.transitionName),
|
|
186
186
|
motionDeadline: 1e3
|
|
187
187
|
},
|
|
188
|
-
|
|
188
|
+
// TODO: In the future, destroyTooltipOnHide in rc-tooltip needs to be upgrade to destroyOnHidden
|
|
189
|
+
destroyTooltipOnHide: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : !!destroyTooltipOnHide
|
|
189
190
|
}), tempOpen ? cloneElement(child, {
|
|
190
191
|
className: childCls
|
|
191
192
|
}) : child);
|
|
@@ -62,7 +62,7 @@ const genTooltipStyle = (token) => {
|
|
|
62
62
|
minWidth: centerAlignMinWidth,
|
|
63
63
|
minHeight: controlHeight,
|
|
64
64
|
padding: `${index$1.unit(token.calc(paddingSM).div(2).equal())} ${index$1.unit(paddingXS)}`,
|
|
65
|
-
color: tooltipColor
|
|
65
|
+
color: `var(--ant-tooltip-color,${tooltipColor})`,
|
|
66
66
|
textAlign: "start",
|
|
67
67
|
textDecoration: "none",
|
|
68
68
|
wordWrap: "break-word",
|
|
@@ -84,21 +84,18 @@ const genTooltipStyle = (token) => {
|
|
|
84
84
|
[`${componentCls}-content`]: {
|
|
85
85
|
position: "relative"
|
|
86
86
|
}
|
|
87
|
-
}), genPresetColor(token, (colorKey,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[`${componentCls}-arrow`]: {
|
|
97
|
-
"--antd-arrow-background-color": darkColor
|
|
98
|
-
}
|
|
87
|
+
}), genPresetColor(token, (colorKey, {
|
|
88
|
+
darkColor
|
|
89
|
+
}) => ({
|
|
90
|
+
[`&${componentCls}-${colorKey}`]: {
|
|
91
|
+
[`${componentCls}-inner`]: {
|
|
92
|
+
backgroundColor: darkColor
|
|
93
|
+
},
|
|
94
|
+
[`${componentCls}-arrow`]: {
|
|
95
|
+
"--antd-arrow-background-color": darkColor
|
|
99
96
|
}
|
|
100
|
-
}
|
|
101
|
-
})), {
|
|
97
|
+
}
|
|
98
|
+
}))), {
|
|
102
99
|
// RTL
|
|
103
100
|
"&-rtl": {
|
|
104
101
|
direction: "rtl"
|
|
@@ -125,8 +122,7 @@ const prepareComponentToken = (token) => Object.assign(Object.assign({
|
|
|
125
122
|
})), roundedArrow.getArrowToken(statistic.merge(token, {
|
|
126
123
|
borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)
|
|
127
124
|
})));
|
|
128
|
-
var useStyle =
|
|
129
|
-
let injectStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
125
|
+
var useStyle = (prefixCls, injectStyle = true) => {
|
|
130
126
|
const useStyle2 = genStyleUtils.genStyleHooks("Tooltip", (token) => {
|
|
131
127
|
const {
|
|
132
128
|
borderRadius,
|
|
@@ -60,7 +60,7 @@ const genTooltipStyle = (token) => {
|
|
|
60
60
|
minWidth: centerAlignMinWidth,
|
|
61
61
|
minHeight: controlHeight,
|
|
62
62
|
padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,
|
|
63
|
-
color: tooltipColor
|
|
63
|
+
color: `var(--ant-tooltip-color,${tooltipColor})`,
|
|
64
64
|
textAlign: "start",
|
|
65
65
|
textDecoration: "none",
|
|
66
66
|
wordWrap: "break-word",
|
|
@@ -82,21 +82,18 @@ const genTooltipStyle = (token) => {
|
|
|
82
82
|
[`${componentCls}-content`]: {
|
|
83
83
|
position: "relative"
|
|
84
84
|
}
|
|
85
|
-
}), genPresetColor(token, (colorKey,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
[`${componentCls}-arrow`]: {
|
|
95
|
-
"--antd-arrow-background-color": darkColor
|
|
96
|
-
}
|
|
85
|
+
}), genPresetColor(token, (colorKey, {
|
|
86
|
+
darkColor
|
|
87
|
+
}) => ({
|
|
88
|
+
[`&${componentCls}-${colorKey}`]: {
|
|
89
|
+
[`${componentCls}-inner`]: {
|
|
90
|
+
backgroundColor: darkColor
|
|
91
|
+
},
|
|
92
|
+
[`${componentCls}-arrow`]: {
|
|
93
|
+
"--antd-arrow-background-color": darkColor
|
|
97
94
|
}
|
|
98
|
-
}
|
|
99
|
-
})), {
|
|
95
|
+
}
|
|
96
|
+
}))), {
|
|
100
97
|
// RTL
|
|
101
98
|
"&-rtl": {
|
|
102
99
|
direction: "rtl"
|
|
@@ -123,8 +120,7 @@ const prepareComponentToken = (token) => Object.assign(Object.assign({
|
|
|
123
120
|
})), getArrowToken(merge(token, {
|
|
124
121
|
borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)
|
|
125
122
|
})));
|
|
126
|
-
var useStyle =
|
|
127
|
-
let injectStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
123
|
+
var useStyle = (prefixCls, injectStyle = true) => {
|
|
128
124
|
const useStyle2 = genStyleHooks("Tooltip", (token) => {
|
|
129
125
|
const {
|
|
130
126
|
borderRadius,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var index = require("../../../../_virtual/index.cjs");
|
|
3
3
|
var colors = require("../_util/colors.cjs");
|
|
4
|
+
var util = require("../color-picker/util.cjs");
|
|
4
5
|
function parseColor(prefixCls, color) {
|
|
5
6
|
const isInternalColor = colors.isPresetColor(color);
|
|
6
7
|
const className = index({
|
|
@@ -8,8 +9,12 @@ function parseColor(prefixCls, color) {
|
|
|
8
9
|
});
|
|
9
10
|
const overlayStyle = {};
|
|
10
11
|
const arrowStyle = {};
|
|
12
|
+
const rgb = util.generateColor(color).toRgb();
|
|
13
|
+
const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;
|
|
14
|
+
const textColor = luminance < 0.5 ? "#FFF" : "#000";
|
|
11
15
|
if (color && !isInternalColor) {
|
|
12
16
|
overlayStyle.background = color;
|
|
17
|
+
overlayStyle["--ant-tooltip-color"] = textColor;
|
|
13
18
|
arrowStyle["--antd-arrow-background-color"] = color;
|
|
14
19
|
}
|
|
15
20
|
return {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import classNames from "../../../../_virtual/index.js";
|
|
2
2
|
import { isPresetColor } from "../_util/colors.js";
|
|
3
|
+
import { generateColor } from "../color-picker/util.js";
|
|
3
4
|
function parseColor(prefixCls, color) {
|
|
4
5
|
const isInternalColor = isPresetColor(color);
|
|
5
6
|
const className = classNames({
|
|
@@ -7,8 +8,12 @@ function parseColor(prefixCls, color) {
|
|
|
7
8
|
});
|
|
8
9
|
const overlayStyle = {};
|
|
9
10
|
const arrowStyle = {};
|
|
11
|
+
const rgb = generateColor(color).toRgb();
|
|
12
|
+
const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;
|
|
13
|
+
const textColor = luminance < 0.5 ? "#FFF" : "#000";
|
|
10
14
|
if (color && !isInternalColor) {
|
|
11
15
|
overlayStyle.background = color;
|
|
16
|
+
overlayStyle["--ant-tooltip-color"] = textColor;
|
|
12
17
|
arrowStyle["--antd-arrow-background-color"] = color;
|
|
13
18
|
}
|
|
14
19
|
return {
|
|
@@ -48,11 +48,10 @@ function getIcon(props) {
|
|
|
48
48
|
}
|
|
49
49
|
return expanded ? /* @__PURE__ */ React__namespace.createElement(FolderOpenOutlined, null) : /* @__PURE__ */ React__namespace.createElement(FolderOutlined, null);
|
|
50
50
|
}
|
|
51
|
-
function getTreeData(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
51
|
+
function getTreeData({
|
|
52
|
+
treeData,
|
|
53
|
+
children
|
|
54
|
+
}) {
|
|
56
55
|
return treeData || treeUtil.convertTreeToData(children);
|
|
57
56
|
}
|
|
58
57
|
const DirectoryTree = (_a, ref) => {
|