@chaoswise/ui 3.0.22 → 3.1.0
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/lib/Alert/index.js +48 -2
- package/lib/Alert/index.style.js +36 -0
- package/lib/Antd5/_util/ActionButton.js +4 -2
- package/lib/Antd5/_util/ContextIsolator.js +27 -0
- package/lib/Antd5/_util/easings.js +2 -2
- package/lib/Antd5/_util/getScroll.js +9 -8
- package/lib/Antd5/_util/hooks/useClosable.js +3 -2
- package/lib/Antd5/_util/hooks/useUniqueMemo.js +123 -0
- package/lib/Antd5/_util/hooks/useZIndex.js +31 -15
- package/lib/Antd5/_util/motion.js +3 -2
- package/lib/Antd5/_util/placements.js +2 -2
- package/lib/Antd5/_util/scrollTo.js +1 -1
- package/lib/Antd5/_util/statusUtils.js +1 -1
- package/lib/Antd5/_util/toList.js +5 -0
- package/lib/Antd5/_util/warning.js +0 -1
- package/lib/Antd5/_util/wave/WaveEffect.js +2 -2
- package/lib/Antd5/_util/wave/interface.js +2 -1
- package/lib/Antd5/_util/wave/useWave.js +1 -1
- package/lib/Antd5/_util/wave/util.js +1 -9
- package/lib/Antd5/alert/Alert.js +1 -2
- package/lib/Antd5/alert/ErrorBoundary.js +1 -1
- package/lib/Antd5/alert/design/behavior-pattern.js +3 -3
- package/lib/Antd5/alert/style/index.js +6 -4
- package/lib/Antd5/anchor/Anchor.js +8 -7
- package/lib/Antd5/anchor/AnchorLink.js +4 -4
- package/lib/Antd5/app/index.js +2 -1
- package/lib/Antd5/app/style/index.js +5 -4
- package/lib/Antd5/auto-complete/index.js +1 -1
- package/lib/Antd5/avatar/group.js +35 -17
- package/lib/Antd5/avatar/style/index.js +18 -13
- package/lib/Antd5/back-top/index.js +3 -2
- package/lib/Antd5/badge/ScrollNumber.js +1 -1
- package/lib/Antd5/badge/SingleNumber.js +17 -16
- package/lib/Antd5/badge/style/index.js +6 -7
- package/lib/Antd5/badge/style/ribbon.js +3 -3
- package/lib/Antd5/breadcrumb/design/behavior-pattern.js +4 -4
- package/lib/Antd5/breadcrumb/style/index.js +2 -2
- package/lib/Antd5/button/LoadingIcon.js +5 -10
- package/lib/Antd5/button/button-group.js +0 -1
- package/lib/Antd5/button/button.js +70 -41
- package/lib/Antd5/button/buttonHelpers.js +7 -5
- package/lib/Antd5/button/style/{compactCmp.js → compact.js} +20 -27
- package/lib/Antd5/button/style/group.js +9 -7
- package/lib/Antd5/button/style/index.js +150 -110
- package/lib/Antd5/button/style/token.js +8 -1
- package/lib/Antd5/calendar/generateCalendar.js +25 -28
- package/lib/Antd5/calendar/style/index.js +4 -4
- package/lib/Antd5/card/Card.js +3 -3
- package/lib/Antd5/card/style/index.js +6 -9
- package/lib/Antd5/carousel/index.js +3 -3
- package/lib/Antd5/carousel/style/index.js +1 -1
- package/lib/Antd5/cascader/Panel.js +7 -2
- package/lib/Antd5/cascader/hooks/useBase.js +3 -2
- package/lib/Antd5/cascader/hooks/useColumnIcons.js +6 -3
- package/lib/Antd5/cascader/index.js +1 -1
- package/lib/Antd5/cascader/style/columns.js +6 -4
- package/lib/Antd5/checkbox/Checkbox.js +11 -5
- package/lib/Antd5/checkbox/style/index.js +6 -3
- package/lib/Antd5/collapse/Collapse.js +2 -1
- package/lib/Antd5/collapse/style/index.js +20 -13
- package/lib/Antd5/color-picker/ColorPicker.js +120 -78
- package/lib/Antd5/color-picker/ColorPickerPanel.js +44 -26
- package/lib/Antd5/color-picker/color.js +82 -10
- package/lib/Antd5/color-picker/components/ColorAlphaInput.js +2 -2
- package/lib/Antd5/color-picker/components/ColorClear.js +2 -2
- package/lib/Antd5/color-picker/components/ColorHexInput.js +5 -4
- package/lib/Antd5/color-picker/components/ColorInput.js +4 -3
- package/lib/Antd5/color-picker/components/ColorPresets.js +1 -1
- package/lib/Antd5/color-picker/components/ColorSlider.js +139 -0
- package/lib/Antd5/color-picker/components/ColorTrigger.js +52 -26
- package/lib/Antd5/color-picker/components/PanelPicker/GradientColorBar.js +130 -0
- package/lib/Antd5/color-picker/components/PanelPicker/index.js +194 -0
- package/lib/Antd5/color-picker/context.js +1 -5
- package/lib/Antd5/color-picker/hooks/useModeColor.js +87 -0
- package/lib/Antd5/color-picker/style/color-block.js +3 -2
- package/lib/Antd5/color-picker/style/index.js +33 -15
- package/lib/Antd5/color-picker/style/input.js +1 -1
- package/lib/Antd5/color-picker/style/picker.js +6 -33
- package/lib/Antd5/color-picker/style/slider.js +87 -0
- package/lib/Antd5/color-picker/util.js +53 -7
- package/lib/Antd5/config-provider/context.js +3 -1
- package/lib/Antd5/config-provider/cssVariables.js +0 -1
- package/lib/Antd5/config-provider/defaultRenderEmpty.js +8 -1
- package/lib/Antd5/config-provider/index.js +13 -5
- package/lib/Antd5/config-provider/style/index.js +0 -1
- package/lib/Antd5/date-picker/PickerButton.js +3 -2
- package/lib/Antd5/date-picker/design/behavior-pattern.js +15 -15
- package/lib/Antd5/date-picker/generatePicker/constant.js +15 -0
- package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +16 -11
- package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +19 -15
- package/lib/Antd5/date-picker/generatePicker/index.js +2 -2
- package/lib/Antd5/date-picker/generatePicker/interface.js +1 -1
- package/lib/Antd5/date-picker/index.js +2 -17
- package/lib/Antd5/date-picker/locale/ar_EG.js +9 -1
- package/lib/Antd5/date-picker/locale/az_AZ.js +9 -1
- package/lib/Antd5/date-picker/locale/el_GR.js +9 -1
- package/lib/Antd5/date-picker/locale/ja_JP.js +11 -1
- package/lib/Antd5/date-picker/locale/kn_IN.js +9 -1
- package/lib/Antd5/date-picker/locale/pl_PL.js +9 -1
- package/lib/Antd5/date-picker/locale/uk_UA.js +10 -1
- package/lib/Antd5/date-picker/style/index.js +13 -10
- package/lib/Antd5/date-picker/style/panel.js +36 -32
- package/lib/Antd5/date-picker/style/token.js +1 -1
- package/lib/Antd5/date-picker/util.js +0 -48
- package/lib/Antd5/descriptions/hooks/useItems.js +5 -0
- package/lib/Antd5/descriptions/hooks/useRow.js +42 -34
- package/lib/Antd5/descriptions/style/index.js +20 -8
- package/lib/Antd5/divider/index.js +4 -3
- package/lib/Antd5/divider/style/index.js +19 -4
- package/lib/Antd5/drawer/DrawerPanel.js +11 -20
- package/lib/Antd5/drawer/index.js +39 -42
- package/lib/Antd5/drawer/style/index.js +10 -11
- package/lib/Antd5/dropdown/dropdown.js +5 -7
- package/lib/Antd5/dropdown/style/index.js +27 -11
- package/lib/Antd5/empty/empty.js +9 -3
- package/lib/Antd5/empty/simple.js +9 -3
- package/lib/Antd5/empty/style/index.js +1 -1
- package/lib/Antd5/float-button/BackTop.js +3 -2
- package/lib/Antd5/float-button/FloatButton.js +16 -5
- package/lib/Antd5/float-button/FloatButtonGroup.js +76 -52
- package/lib/Antd5/float-button/style/index.js +117 -76
- package/lib/Antd5/float-button/style/keyframes.js +118 -0
- package/lib/Antd5/form/ErrorList.js +14 -2
- package/lib/Antd5/form/Form.js +11 -3
- package/lib/Antd5/form/FormItem/ItemHolder.js +8 -4
- package/lib/Antd5/form/FormItem/index.js +6 -4
- package/lib/Antd5/form/FormItemInput.js +68 -28
- package/lib/Antd5/form/FormItemLabel.js +3 -3
- package/lib/Antd5/form/hooks/useForm.js +8 -1
- package/lib/Antd5/form/hooks/useVariants.js +10 -4
- package/lib/Antd5/form/style/explain.js +9 -8
- package/lib/Antd5/form/style/index.js +30 -18
- package/lib/Antd5/grid/row.js +2 -2
- package/lib/Antd5/image/index.js +3 -1
- package/lib/Antd5/image/style/index.js +17 -20
- package/lib/Antd5/index.js +2 -1
- package/lib/Antd5/input/Input.js +18 -38
- package/lib/Antd5/input/OTP/OTPInput.js +10 -5
- package/lib/Antd5/input/OTP/index.js +12 -4
- package/lib/Antd5/input/Password.js +6 -2
- package/lib/Antd5/input/Search.js +2 -4
- package/lib/Antd5/input/TextArea.js +1 -1
- package/lib/Antd5/input/style/index.js +72 -63
- package/lib/Antd5/input/style/otp.js +1 -1
- package/lib/Antd5/input/style/variants.js +38 -23
- package/lib/Antd5/input/utils.js +0 -1
- package/lib/Antd5/input-number/index.js +19 -22
- package/lib/Antd5/input-number/style/index.js +26 -16
- package/lib/Antd5/layout/Sider.js +15 -8
- package/lib/Antd5/layout/style/index.js +6 -96
- package/lib/Antd5/layout/style/sider.js +115 -0
- package/lib/Antd5/list/Item.js +18 -5
- package/lib/Antd5/list/index.js +15 -10
- package/lib/Antd5/list/style/index.js +40 -41
- package/lib/Antd5/locale/ar_EG.js +14 -1
- package/lib/Antd5/locale/az_AZ.js +78 -28
- package/lib/Antd5/locale/bn_BD.js +0 -1
- package/lib/Antd5/locale/by_BY.js +0 -1
- package/lib/Antd5/locale/ca_ES.js +0 -1
- package/lib/Antd5/locale/cs_CZ.js +0 -1
- package/lib/Antd5/locale/de_DE.js +0 -1
- package/lib/Antd5/locale/el_GR.js +104 -3
- package/lib/Antd5/locale/en_GB.js +0 -1
- package/lib/Antd5/locale/en_US.js +4 -2
- package/lib/Antd5/locale/es_ES.js +10 -6
- package/lib/Antd5/locale/et_EE.js +0 -1
- package/lib/Antd5/locale/eu_ES.js +4 -2
- package/lib/Antd5/locale/fa_IR.js +0 -1
- package/lib/Antd5/locale/fr_BE.js +5 -1
- package/lib/Antd5/locale/fr_CA.js +0 -1
- package/lib/Antd5/locale/fr_FR.js +5 -6
- package/lib/Antd5/locale/ga_IE.js +0 -1
- package/lib/Antd5/locale/gl_ES.js +0 -1
- package/lib/Antd5/locale/he_IL.js +0 -1
- package/lib/Antd5/locale/hi_IN.js +0 -1
- package/lib/Antd5/locale/hr_HR.js +0 -1
- package/lib/Antd5/locale/id_ID.js +4 -2
- package/lib/Antd5/locale/index.js +1 -1
- package/lib/Antd5/locale/it_IT.js +0 -1
- package/lib/Antd5/locale/ja_JP.js +4 -2
- package/lib/Antd5/locale/ka_GE.js +0 -1
- package/lib/Antd5/locale/kk_KZ.js +0 -1
- package/lib/Antd5/locale/km_KH.js +0 -1
- package/lib/Antd5/locale/kn_IN.js +82 -4
- package/lib/Antd5/locale/ko_KR.js +4 -2
- package/lib/Antd5/locale/lt_LT.js +4 -2
- package/lib/Antd5/locale/ml_IN.js +0 -1
- package/lib/Antd5/locale/mn_MN.js +86 -2
- package/lib/Antd5/locale/ms_MY.js +101 -18
- package/lib/Antd5/locale/my_MM.js +0 -1
- package/lib/Antd5/locale/nb_NO.js +0 -1
- package/lib/Antd5/locale/ne_NP.js +104 -2
- package/lib/Antd5/locale/nl_BE.js +5 -1
- package/lib/Antd5/locale/nl_NL.js +5 -1
- package/lib/Antd5/locale/pl_PL.js +0 -1
- package/lib/Antd5/locale/pt_BR.js +0 -1
- package/lib/Antd5/locale/pt_PT.js +55 -38
- package/lib/Antd5/locale/ro_RO.js +0 -1
- package/lib/Antd5/locale/ru_RU.js +9 -2
- package/lib/Antd5/locale/si_LK.js +0 -1
- package/lib/Antd5/locale/sk_SK.js +0 -1
- package/lib/Antd5/locale/sr_RS.js +0 -1
- package/lib/Antd5/locale/sv_SE.js +0 -1
- package/lib/Antd5/locale/th_TH.js +11 -3
- package/lib/Antd5/locale/tk_TK.js +0 -1
- package/lib/Antd5/locale/tr_TR.js +2 -1
- package/lib/Antd5/locale/uk_UA.js +1 -1
- package/lib/Antd5/locale/ur_PK.js +0 -1
- package/lib/Antd5/locale/uz_UZ.js +6 -7
- package/lib/Antd5/locale/zh_CN.js +4 -2
- package/lib/Antd5/locale/zh_HK.js +0 -1
- package/lib/Antd5/locale/zh_TW.js +0 -1
- package/lib/Antd5/mentions/index.js +4 -4
- package/lib/Antd5/menu/MenuItem.js +6 -5
- package/lib/Antd5/menu/OverrideContext.js +4 -3
- package/lib/Antd5/menu/SubMenu.js +2 -2
- package/lib/Antd5/menu/menu.js +2 -2
- package/lib/Antd5/menu/style/index.js +58 -40
- package/lib/Antd5/menu/style/theme.js +24 -20
- package/lib/Antd5/menu/style/vertical.js +10 -7
- package/lib/Antd5/message/PurePanel.js +22 -40
- package/lib/Antd5/message/style/index.js +8 -47
- package/lib/Antd5/message/useMessage.js +3 -15
- package/lib/Antd5/modal/Modal.js +50 -38
- package/lib/Antd5/modal/PurePanel.js +0 -1
- package/lib/Antd5/modal/confirm.js +4 -5
- package/lib/Antd5/modal/style/confirm.js +1 -2
- package/lib/Antd5/modal/style/index.js +13 -3
- package/lib/Antd5/modal/useModal/HookModal.js +4 -3
- package/lib/Antd5/modal/useModal/index.js +0 -1
- package/lib/Antd5/notification/index.js +6 -3
- package/lib/Antd5/notification/style/index.js +35 -3
- package/lib/Antd5/notification/useNotification.js +6 -1
- package/lib/Antd5/pagination/Pagination.js +10 -5
- package/lib/Antd5/pagination/design/behavior-pattern.js +3 -3
- package/lib/Antd5/pagination/style/bordered.js +1 -1
- package/lib/Antd5/pagination/style/index.js +27 -18
- package/lib/Antd5/popconfirm/PurePanel.js +7 -7
- package/lib/Antd5/popover/PurePanel.js +16 -6
- package/lib/Antd5/popover/index.js +7 -19
- package/lib/Antd5/popover/style/index.js +3 -1
- package/lib/Antd5/progress/Line.js +27 -19
- package/lib/Antd5/progress/design/behavior-pattern.js +3 -3
- package/lib/Antd5/progress/progress.js +37 -11
- package/lib/Antd5/progress/style/index.js +46 -11
- package/lib/Antd5/progress/utils.js +20 -18
- package/lib/Antd5/qr-code/QrcodeStatus.js +42 -0
- package/lib/Antd5/qr-code/index.js +31 -31
- package/lib/Antd5/rate/index.js +8 -2
- package/lib/Antd5/result/noFound.js +3 -1
- package/lib/Antd5/result/serverError.js +3 -1
- package/lib/Antd5/result/unauthorized.js +5 -3
- package/lib/Antd5/segmented/index.js +5 -3
- package/lib/Antd5/segmented/style/index.js +11 -3
- package/lib/Antd5/select/index.js +4 -2
- package/lib/Antd5/select/style/dropdown.js +1 -1
- package/lib/Antd5/select/style/index.js +21 -8
- package/lib/Antd5/select/style/multiple.js +18 -9
- package/lib/Antd5/select/style/single.js +8 -10
- package/lib/Antd5/select/style/token.js +9 -2
- package/lib/Antd5/select/style/variants.js +20 -11
- package/lib/Antd5/skeleton/Image.js +6 -4
- package/lib/Antd5/skeleton/Node.js +1 -3
- package/lib/Antd5/skeleton/Paragraph.js +1 -1
- package/lib/Antd5/skeleton/Title.js +9 -6
- package/lib/Antd5/skeleton/style/index.js +13 -13
- package/lib/Antd5/slider/Context.js +4 -0
- package/lib/Antd5/slider/SliderTooltip.js +9 -5
- package/lib/Antd5/slider/index.js +32 -31
- package/lib/Antd5/slider/style/index.js +60 -44
- package/lib/Antd5/space/Compact.js +1 -1
- package/lib/Antd5/space/index.js +3 -3
- package/lib/Antd5/spin/Indicator/Looper.js +29 -0
- package/lib/Antd5/spin/Indicator/Progress.js +78 -0
- package/lib/Antd5/spin/Indicator/index.js +21 -0
- package/lib/Antd5/spin/index.js +27 -45
- package/lib/Antd5/spin/style/index.js +54 -17
- package/lib/Antd5/spin/usePercent.js +40 -0
- package/lib/Antd5/splitter/Panel.js +36 -0
- package/lib/Antd5/splitter/SplitBar.js +124 -0
- package/lib/Antd5/splitter/Splitter.js +194 -0
- package/lib/Antd5/{_util/transButton.js → splitter/hooks/useItems.js} +28 -54
- package/lib/Antd5/splitter/hooks/useResizable.js +43 -0
- package/lib/Antd5/splitter/hooks/useResize.js +138 -0
- package/lib/Antd5/splitter/hooks/useSizes.js +109 -0
- package/lib/Antd5/splitter/index.js +5 -0
- package/lib/Antd5/splitter/interface.js +1 -0
- package/lib/Antd5/splitter/style/index.js +219 -0
- package/lib/Antd5/statistic/style/index.js +1 -1
- package/lib/Antd5/steps/style/custom-icon.js +1 -1
- package/lib/Antd5/steps/style/index.js +11 -8
- package/lib/Antd5/steps/style/inline.js +5 -4
- package/lib/Antd5/steps/style/progress-dot.js +2 -2
- package/lib/Antd5/steps/style/small.js +3 -3
- package/lib/Antd5/steps/style/vertical.js +2 -2
- package/lib/Antd5/style/index.js +37 -13
- package/lib/Antd5/style/motion/slide.js +6 -5
- package/lib/Antd5/style/placementArrow.js +15 -6
- package/lib/Antd5/switch/style/index.js +1 -1
- package/lib/Antd5/table/Column.js +2 -3
- package/lib/Antd5/table/ColumnGroup.js +2 -3
- package/lib/Antd5/table/ExpandIcon.js +6 -6
- package/lib/Antd5/table/InternalTable.js +6 -6
- package/lib/Antd5/table/RcTable/VirtualTable.js +3 -2
- package/lib/Antd5/table/RcTable/index.js +3 -2
- package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +82 -61
- package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +7 -7
- package/lib/Antd5/table/hooks/useFilter/index.js +28 -26
- package/lib/Antd5/table/hooks/useLazyKVMap.js +5 -5
- package/lib/Antd5/table/hooks/useSelection.js +21 -11
- package/lib/Antd5/table/hooks/useSorter.js +66 -42
- package/lib/Antd5/table/hooks/useTitleColumns.js +9 -7
- package/lib/Antd5/table/interface.js +1 -1
- package/lib/Antd5/table/style/bordered.js +5 -3
- package/lib/Antd5/table/style/expand.js +44 -38
- package/lib/Antd5/table/style/filter.js +1 -1
- package/lib/Antd5/table/style/index.js +26 -21
- package/lib/Antd5/table/style/selection.js +3 -1
- package/lib/Antd5/table/style/sorter.js +3 -1
- package/lib/Antd5/table/style/virtual.js +2 -2
- package/lib/Antd5/table/util.js +9 -8
- package/lib/Antd5/tabs/style/index.js +2 -2
- package/lib/Antd5/tag/style/index.js +2 -2
- package/lib/Antd5/theme/index.js +12 -5
- package/lib/Antd5/theme/interface/cssinjs-utils.js +1 -0
- package/lib/Antd5/theme/internal.js +10 -5
- package/lib/Antd5/theme/themes/dark/colors.js +3 -0
- package/lib/Antd5/theme/themes/dark/index.js +1 -0
- package/lib/Antd5/theme/themes/default/colors.js +3 -0
- package/lib/Antd5/theme/themes/default/index.js +6 -2
- package/lib/Antd5/theme/themes/seed.js +5 -2
- package/lib/Antd5/theme/themes/shared/genColorMapToken.js +2 -0
- package/lib/Antd5/theme/themes/shared/genFontSizes.js +1 -1
- package/lib/Antd5/theme/useToken.js +2 -1
- package/lib/Antd5/theme/util/alias.js +1 -1
- package/lib/Antd5/theme/util/genStyleUtils.js +61 -0
- package/lib/Antd5/time-picker/index.js +15 -2
- package/lib/Antd5/time-picker/locale/az_AZ.js +2 -1
- package/lib/Antd5/time-picker/locale/it_IT.js +2 -1
- package/lib/Antd5/time-picker/locale/uk_UA.js +2 -1
- package/lib/Antd5/timeline/TimelineItemList.js +0 -1
- package/lib/Antd5/timeline/style/index.js +1 -1
- package/lib/Antd5/tooltip/index.js +3 -2
- package/lib/Antd5/tooltip/style/index.js +3 -1
- package/lib/Antd5/tooltip/util.js +0 -1
- package/lib/Antd5/tour/panelRender.js +7 -13
- package/lib/Antd5/tour/style/index.js +6 -13
- package/lib/Antd5/transfer/ListItem.js +3 -3
- package/lib/Antd5/transfer/hooks/useData.js +1 -1
- package/lib/Antd5/transfer/hooks/useSelection.js +26 -21
- package/lib/Antd5/transfer/style/index.js +12 -22
- package/lib/Antd5/tree/Tree.js +2 -0
- package/lib/Antd5/tree/style/directory.js +39 -0
- package/lib/Antd5/tree/style/index.js +115 -166
- package/lib/Antd5/tree/utils/dropIndicator.js +3 -2
- package/lib/Antd5/tree/utils/iconUtil.js +5 -1
- package/lib/Antd5/tree-select/index.js +47 -43
- package/lib/Antd5/typography/Base/CopyBtn.js +17 -17
- package/lib/Antd5/typography/Base/Ellipsis.js +48 -40
- package/lib/Antd5/typography/Base/index.js +20 -60
- package/lib/Antd5/typography/Base/util.js +31 -1
- package/lib/Antd5/typography/Editable.js +11 -10
- package/lib/Antd5/typography/Title.js +1 -6
- package/lib/Antd5/typography/Typography.js +2 -6
- package/lib/Antd5/typography/hooks/useCopyClick.js +3 -2
- package/lib/Antd5/typography/hooks/usePrevious.js +1 -1
- package/lib/Antd5/{message/assets/Close.js → typography/hooks/useTooltipProps.js} +24 -16
- package/lib/Antd5/typography/style/mixins.js +3 -9
- package/lib/Antd5/upload/Upload.js +55 -83
- package/lib/Antd5/upload/UploadList/ListItem.js +15 -9
- package/lib/Antd5/upload/UploadList/index.js +33 -47
- package/lib/Antd5/upload/style/dragger.js +5 -26
- package/lib/Antd5/upload/style/list.js +2 -7
- package/lib/Antd5/version/version.js +1 -1
- package/lib/Antd5/watermark/context.js +1 -1
- package/lib/Antd5/watermark/index.js +35 -18
- package/lib/Antd5/watermark/useClips.js +2 -1
- package/lib/Antd5/watermark/useRafDebounce.js +1 -1
- package/lib/Antd5/watermark/utils.js +1 -1
- package/lib/Button/index.style.js +1 -3
- package/lib/CWSelect/index.js +39 -1
- package/lib/CWSelect/index.style.js +39 -0
- package/lib/CWTree/index.js +3 -9
- package/lib/CWTree/index.style.js +2 -0
- package/lib/ConfigProvider/ConfigProvider.js +9 -10
- package/lib/ConfigProvider/customTheme.js +9 -2
- package/lib/ConfigProvider/theme/common.js +140 -0
- package/lib/ConfigProvider/theme/dark.js +2 -0
- package/lib/ConfigProvider/theme/default.js +115 -0
- package/lib/ConfigProvider/theme/utils.js +49 -0
- package/lib/QuickTransfer/index.js +44 -48
- package/lib/RangePicker/components/ExtraQuickSelect.js +1 -4
- package/lib/RangePicker/index.js +38 -26
- package/lib/RangePicker/utils/generate/dayjs.js +1 -1
- package/lib/Splitter/index.js +2 -0
- package/package.json +37 -35
- package/lib/Antd5/color-picker/components/PanelPicker.js +0 -53
- package/lib/Antd5/color-picker/hooks/useColorState.js +0 -53
- package/lib/Antd5/layout/style/light.js +0 -24
- package/lib/Antd5/style/operationUnit.js +0 -18
- package/lib/Antd5/theme/util/calc/CSSCalculator.js +0 -119
- package/lib/Antd5/theme/util/calc/NumCalculator.js +0 -81
- package/lib/Antd5/theme/util/calc/calculator.js +0 -10
- package/lib/Antd5/theme/util/calc/index.js +0 -9
- package/lib/Antd5/theme/util/genComponentStyleHook.js +0 -243
- package/lib/Antd5/theme/util/maxmin.js +0 -27
- package/lib/Antd5/theme/util/statistic.js +0 -74
- package/lib/Antd5/typography/hooks/useUpdatedEffect.js +0 -13
- package/lib/Antd5/version/token-meta.json +0 -1
- package/lib/Antd5/version/token.json +0 -1
- package/lib/ConfigProvider/customTheme.json +0 -163
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { resetComponent } from '../../style';
|
|
8
|
+
import { genStyleHooks } from '../../theme/internal';
|
|
9
|
+
var genRtlStyle = function genRtlStyle(token) {
|
|
10
|
+
var componentCls = token.componentCls;
|
|
11
|
+
return _defineProperty(_defineProperty({}, "&-rtl".concat(componentCls, "-horizontal"), _defineProperty({}, "> ".concat(componentCls, "-bar"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-bar-collapse-previous"), {
|
|
12
|
+
insetInlineEnd: 0,
|
|
13
|
+
insetInlineStart: 'unset'
|
|
14
|
+
}), "".concat(componentCls, "-bar-collapse-next"), {
|
|
15
|
+
insetInlineEnd: 'unset',
|
|
16
|
+
insetInlineStart: 0
|
|
17
|
+
}))), "&-rtl".concat(componentCls, "-vertical"), _defineProperty({}, "> ".concat(componentCls, "-bar"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-bar-collapse-previous"), {
|
|
18
|
+
insetInlineEnd: '50%',
|
|
19
|
+
insetInlineStart: 'unset'
|
|
20
|
+
}), "".concat(componentCls, "-bar-collapse-next"), {
|
|
21
|
+
insetInlineEnd: '50%',
|
|
22
|
+
insetInlineStart: 'unset'
|
|
23
|
+
})));
|
|
24
|
+
};
|
|
25
|
+
var centerStyle = {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: '50%',
|
|
28
|
+
left: {
|
|
29
|
+
_skip_check_: true,
|
|
30
|
+
value: '50%'
|
|
31
|
+
},
|
|
32
|
+
transform: 'translate(-50%, -50%)'
|
|
33
|
+
};
|
|
34
|
+
var genSplitterStyle = function genSplitterStyle(token) {
|
|
35
|
+
var componentCls = token.componentCls,
|
|
36
|
+
colorFill = token.colorFill,
|
|
37
|
+
splitBarDraggableSize = token.splitBarDraggableSize,
|
|
38
|
+
splitBarSize = token.splitBarSize,
|
|
39
|
+
splitTriggerSize = token.splitTriggerSize,
|
|
40
|
+
controlItemBgHover = token.controlItemBgHover,
|
|
41
|
+
controlItemBgActive = token.controlItemBgActive,
|
|
42
|
+
controlItemBgActiveHover = token.controlItemBgActiveHover;
|
|
43
|
+
var splitBarCls = "".concat(componentCls, "-bar");
|
|
44
|
+
var splitMaskCls = "".concat(componentCls, "-mask");
|
|
45
|
+
var splitPanelCls = "".concat(componentCls, "-panel");
|
|
46
|
+
var halfTriggerSize = token.calc(splitTriggerSize).div(2).equal();
|
|
47
|
+
return _defineProperty({}, componentCls, _objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
48
|
+
display: 'flex',
|
|
49
|
+
width: '100%',
|
|
50
|
+
height: '100%',
|
|
51
|
+
alignItems: 'stretch'
|
|
52
|
+
}, "> ".concat(splitBarCls), _defineProperty(_defineProperty(_defineProperty({
|
|
53
|
+
flex: 'none',
|
|
54
|
+
position: 'relative',
|
|
55
|
+
userSelect: 'none'
|
|
56
|
+
}, "".concat(splitBarCls, "-dragger"), _objectSpread(_objectSpread({}, centerStyle), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
57
|
+
zIndex: 1,
|
|
58
|
+
// Hover background
|
|
59
|
+
'&::before': _objectSpread({
|
|
60
|
+
content: '""',
|
|
61
|
+
background: controlItemBgHover
|
|
62
|
+
}, centerStyle),
|
|
63
|
+
// Spinner
|
|
64
|
+
'&::after': _objectSpread({
|
|
65
|
+
content: '""',
|
|
66
|
+
background: colorFill
|
|
67
|
+
}, centerStyle)
|
|
68
|
+
}, "&:hover:not(".concat(splitBarCls, "-dragger-active)"), {
|
|
69
|
+
'&::before': {
|
|
70
|
+
background: controlItemBgActive
|
|
71
|
+
}
|
|
72
|
+
}), '&-active', {
|
|
73
|
+
zIndex: 2,
|
|
74
|
+
'&::before': {
|
|
75
|
+
background: controlItemBgActiveHover
|
|
76
|
+
}
|
|
77
|
+
}), "&-disabled".concat(splitBarCls, "-dragger"), {
|
|
78
|
+
zIndex: 0,
|
|
79
|
+
'&, &:hover, &-active': {
|
|
80
|
+
cursor: 'default',
|
|
81
|
+
'&::before': {
|
|
82
|
+
background: controlItemBgHover
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'&::after': {
|
|
86
|
+
display: 'none'
|
|
87
|
+
}
|
|
88
|
+
}))), "".concat(splitBarCls, "-collapse-bar"), _objectSpread(_objectSpread({}, centerStyle), {}, {
|
|
89
|
+
zIndex: 1,
|
|
90
|
+
background: controlItemBgHover,
|
|
91
|
+
fontSize: token.fontSizeSM,
|
|
92
|
+
borderRadius: token.borderRadiusXS,
|
|
93
|
+
color: token.colorText,
|
|
94
|
+
cursor: 'pointer',
|
|
95
|
+
opacity: 0,
|
|
96
|
+
display: 'flex',
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
// Hover
|
|
100
|
+
'&:hover': {
|
|
101
|
+
background: controlItemBgActive
|
|
102
|
+
},
|
|
103
|
+
// Active
|
|
104
|
+
'&:active': {
|
|
105
|
+
background: controlItemBgActiveHover
|
|
106
|
+
}
|
|
107
|
+
})), '&:hover, &:active', _defineProperty({}, "".concat(splitBarCls, "-collapse-bar"), {
|
|
108
|
+
opacity: 1
|
|
109
|
+
}))), splitMaskCls, {
|
|
110
|
+
position: 'fixed',
|
|
111
|
+
zIndex: token.zIndexPopupBase,
|
|
112
|
+
inset: 0,
|
|
113
|
+
'&-horizontal': {
|
|
114
|
+
cursor: 'col-resize'
|
|
115
|
+
},
|
|
116
|
+
'&-vertical': {
|
|
117
|
+
cursor: 'row-resize'
|
|
118
|
+
}
|
|
119
|
+
}), '&-horizontal', _defineProperty({
|
|
120
|
+
flexDirection: 'row'
|
|
121
|
+
}, "> ".concat(splitBarCls), _defineProperty(_defineProperty({
|
|
122
|
+
width: 0
|
|
123
|
+
}, "".concat(splitBarCls, "-dragger"), {
|
|
124
|
+
cursor: 'col-resize',
|
|
125
|
+
height: '100%',
|
|
126
|
+
width: splitTriggerSize,
|
|
127
|
+
'&::before': {
|
|
128
|
+
height: '100%',
|
|
129
|
+
width: splitBarSize
|
|
130
|
+
},
|
|
131
|
+
'&::after': {
|
|
132
|
+
height: splitBarDraggableSize,
|
|
133
|
+
width: splitBarSize
|
|
134
|
+
}
|
|
135
|
+
}), "".concat(splitBarCls, "-collapse-bar"), {
|
|
136
|
+
width: token.fontSizeSM,
|
|
137
|
+
height: token.controlHeightSM,
|
|
138
|
+
'&-start': {
|
|
139
|
+
left: {
|
|
140
|
+
_skip_check_: true,
|
|
141
|
+
value: 'auto'
|
|
142
|
+
},
|
|
143
|
+
right: {
|
|
144
|
+
_skip_check_: true,
|
|
145
|
+
value: halfTriggerSize
|
|
146
|
+
},
|
|
147
|
+
transform: 'translateY(-50%)'
|
|
148
|
+
},
|
|
149
|
+
'&-end': {
|
|
150
|
+
left: {
|
|
151
|
+
_skip_check_: true,
|
|
152
|
+
value: halfTriggerSize
|
|
153
|
+
},
|
|
154
|
+
right: {
|
|
155
|
+
_skip_check_: true,
|
|
156
|
+
value: 'auto'
|
|
157
|
+
},
|
|
158
|
+
transform: 'translateY(-50%)'
|
|
159
|
+
}
|
|
160
|
+
}))), '&-vertical', _defineProperty({
|
|
161
|
+
flexDirection: 'column'
|
|
162
|
+
}, "> ".concat(splitBarCls), _defineProperty(_defineProperty({
|
|
163
|
+
height: 0
|
|
164
|
+
}, "".concat(splitBarCls, "-dragger"), {
|
|
165
|
+
cursor: 'row-resize',
|
|
166
|
+
width: '100%',
|
|
167
|
+
height: splitTriggerSize,
|
|
168
|
+
'&::before': {
|
|
169
|
+
width: '100%',
|
|
170
|
+
height: splitBarSize
|
|
171
|
+
},
|
|
172
|
+
'&::after': {
|
|
173
|
+
width: splitBarDraggableSize,
|
|
174
|
+
height: splitBarSize
|
|
175
|
+
}
|
|
176
|
+
}), "".concat(splitBarCls, "-collapse-bar"), {
|
|
177
|
+
height: token.fontSizeSM,
|
|
178
|
+
width: token.controlHeightSM,
|
|
179
|
+
'&-start': {
|
|
180
|
+
top: 'auto',
|
|
181
|
+
bottom: halfTriggerSize,
|
|
182
|
+
transform: 'translateX(-50%)'
|
|
183
|
+
},
|
|
184
|
+
'&-end': {
|
|
185
|
+
top: halfTriggerSize,
|
|
186
|
+
bottom: 'auto',
|
|
187
|
+
transform: 'translateX(-50%)'
|
|
188
|
+
}
|
|
189
|
+
}))), splitPanelCls, _defineProperty({
|
|
190
|
+
overflow: 'auto',
|
|
191
|
+
padding: '0 1px',
|
|
192
|
+
scrollbarWidth: 'thin',
|
|
193
|
+
boxSizing: 'border-box',
|
|
194
|
+
'&-hidden': {
|
|
195
|
+
padding: 0,
|
|
196
|
+
overflow: 'hidden'
|
|
197
|
+
}
|
|
198
|
+
}, "&:has(".concat(componentCls, ":only-child)"), {
|
|
199
|
+
overflow: 'hidden'
|
|
200
|
+
})), genRtlStyle(token)));
|
|
201
|
+
};
|
|
202
|
+
export var prepareComponentToken = function prepareComponentToken(token) {
|
|
203
|
+
var _token$splitBarDragga;
|
|
204
|
+
var splitBarSize = token.splitBarSize || 2;
|
|
205
|
+
var splitTriggerSize = token.splitTriggerSize || 6;
|
|
206
|
+
// https://github.com/ant-design/ant-design/pull/51223
|
|
207
|
+
var resizeSpinnerSize = token.resizeSpinnerSize || 20;
|
|
208
|
+
var splitBarDraggableSize = (_token$splitBarDragga = token.splitBarDraggableSize) !== null && _token$splitBarDragga !== void 0 ? _token$splitBarDragga : resizeSpinnerSize;
|
|
209
|
+
return {
|
|
210
|
+
splitBarSize: splitBarSize,
|
|
211
|
+
splitTriggerSize: splitTriggerSize,
|
|
212
|
+
splitBarDraggableSize: splitBarDraggableSize,
|
|
213
|
+
resizeSpinnerSize: resizeSpinnerSize
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
// ============================== Export ==============================
|
|
217
|
+
export default genStyleHooks('Splitter', function (token) {
|
|
218
|
+
return [genSplitterStyle(token)];
|
|
219
|
+
}, prepareComponentToken);
|
|
@@ -15,7 +15,7 @@ var genStatisticStyle = function genStatisticStyle(token) {
|
|
|
15
15
|
colorTextHeading = token.colorTextHeading,
|
|
16
16
|
contentFontSize = token.contentFontSize,
|
|
17
17
|
fontFamily = token.fontFamily;
|
|
18
|
-
return _defineProperty({},
|
|
18
|
+
return _defineProperty({}, componentCls, _objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-title"), {
|
|
19
19
|
marginBottom: marginXXS,
|
|
20
20
|
color: colorTextDescription,
|
|
21
21
|
fontSize: titleFontSize
|
|
@@ -17,7 +17,7 @@ var genStepsCustomIconStyle = function genStepsCustomIconStyle(token) {
|
|
|
17
17
|
width: customIconSize,
|
|
18
18
|
height: customIconSize,
|
|
19
19
|
fontSize: customIconFontSize,
|
|
20
|
-
lineHeight:
|
|
20
|
+
lineHeight: unit(customIconSize)
|
|
21
21
|
}))), "&:not(".concat(componentCls, "-vertical)"), _defineProperty({}, "".concat(componentCls, "-item-custom"), _defineProperty({}, "".concat(componentCls, "-item-icon"), {
|
|
22
22
|
width: 'auto',
|
|
23
23
|
background: 'none'
|
|
@@ -66,9 +66,10 @@ var genStepsItemStyle = function genStepsItemStyle(token) {
|
|
|
66
66
|
}, "> ".concat(stepsItemCls, "-container > ").concat(stepsItemCls, "-tail, > ").concat(stepsItemCls, "-container > ").concat(stepsItemCls, "-content > ").concat(stepsItemCls, "-title::after"), {
|
|
67
67
|
display: 'none'
|
|
68
68
|
})
|
|
69
|
-
}), "".concat(stepsItemCls, "-container"),
|
|
70
|
-
outline: 'none'
|
|
71
|
-
|
|
69
|
+
}), "".concat(stepsItemCls, "-container"), {
|
|
70
|
+
outline: 'none',
|
|
71
|
+
'&:focus-visible': _defineProperty({}, stepItemIconCls, _objectSpread({}, genFocusOutline(token)))
|
|
72
|
+
}), "".concat(stepItemIconCls, ", ").concat(stepsItemCls, "-content"), {
|
|
72
73
|
display: 'inline-block',
|
|
73
74
|
verticalAlign: 'top'
|
|
74
75
|
}), stepItemIconCls, _defineProperty({
|
|
@@ -80,7 +81,7 @@ var genStepsItemStyle = function genStepsItemStyle(token) {
|
|
|
80
81
|
marginInlineEnd: token.marginXS,
|
|
81
82
|
fontSize: token.iconFontSize,
|
|
82
83
|
fontFamily: token.fontFamily,
|
|
83
|
-
lineHeight:
|
|
84
|
+
lineHeight: unit(token.iconSize),
|
|
84
85
|
textAlign: 'center',
|
|
85
86
|
borderRadius: token.iconSize,
|
|
86
87
|
border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " transparent"),
|
|
@@ -110,7 +111,7 @@ var genStepsItemStyle = function genStepsItemStyle(token) {
|
|
|
110
111
|
paddingInlineEnd: token.padding,
|
|
111
112
|
color: token.colorText,
|
|
112
113
|
fontSize: token.fontSizeLG,
|
|
113
|
-
lineHeight:
|
|
114
|
+
lineHeight: unit(token.titleLineHeight),
|
|
114
115
|
'&::after': {
|
|
115
116
|
position: 'absolute',
|
|
116
117
|
top: token.calc(token.titleLineHeight).div(2).equal(),
|
|
@@ -146,9 +147,11 @@ var genStepsClickableStyle = function genStepsClickableStyle(token) {
|
|
|
146
147
|
cursor: 'pointer'
|
|
147
148
|
}, "".concat(componentCls, "-item"), _defineProperty({}, "&-title, &-subtitle, &-description, &-icon ".concat(componentCls, "-icon"), {
|
|
148
149
|
transition: "color ".concat(motionDurationSlow)
|
|
149
|
-
})), '&:hover', _defineProperty({}, "".concat(componentCls, "-item"),
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
})), '&:hover', _defineProperty({}, "".concat(componentCls, "-item"), {
|
|
151
|
+
'&-title, &-subtitle, &-description': {
|
|
152
|
+
color: token.colorPrimary
|
|
153
|
+
}
|
|
154
|
+
}))), "&:not(".concat(componentCls, "-item-process)"), _defineProperty({}, "& > ".concat(componentCls, "-item-container[role='button']:hover"), _defineProperty({}, "".concat(componentCls, "-item"), {
|
|
152
155
|
'&-icon': _defineProperty({
|
|
153
156
|
borderColor: token.colorPrimary
|
|
154
157
|
}, "".concat(componentCls, "-icon"), {
|
|
@@ -19,7 +19,7 @@ var genStepsInlineStyle = function genStepsInlineStyle(token) {
|
|
|
19
19
|
display: 'inline-flex'
|
|
20
20
|
}, "".concat(componentCls, "-item"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
21
21
|
flex: 'none',
|
|
22
|
-
'&-container':
|
|
22
|
+
'&-container': {
|
|
23
23
|
padding: "".concat(unit(containerPaddingTop), " ").concat(unit(token.paddingXXS), " 0"),
|
|
24
24
|
margin: "0 ".concat(unit(token.calc(token.marginXXS).div(2).equal())),
|
|
25
25
|
borderRadius: token.borderRadiusSM,
|
|
@@ -27,10 +27,11 @@ var genStepsInlineStyle = function genStepsInlineStyle(token) {
|
|
|
27
27
|
transition: "background-color ".concat(token.motionDurationMid),
|
|
28
28
|
'&:hover': {
|
|
29
29
|
background: token.controlItemBgHover
|
|
30
|
+
},
|
|
31
|
+
"&[role='button']:hover": {
|
|
32
|
+
opacity: 1
|
|
30
33
|
}
|
|
31
|
-
},
|
|
32
|
-
opacity: 1
|
|
33
|
-
}),
|
|
34
|
+
},
|
|
34
35
|
'&-icon': _defineProperty(_defineProperty({
|
|
35
36
|
width: inlineDotSize,
|
|
36
37
|
height: inlineDotSize,
|
|
@@ -33,7 +33,7 @@ var genStepsProgressDotStyle = function genStepsProgressDotStyle(token) {
|
|
|
33
33
|
height: dotSize,
|
|
34
34
|
marginInlineStart: token.calc(token.descriptionMaxWidth).sub(dotSize).div(2).equal(),
|
|
35
35
|
paddingInlineEnd: 0,
|
|
36
|
-
lineHeight:
|
|
36
|
+
lineHeight: unit(dotSize),
|
|
37
37
|
background: 'transparent',
|
|
38
38
|
border: 0
|
|
39
39
|
}, "".concat(componentCls, "-icon-dot"), {
|
|
@@ -63,7 +63,7 @@ var genStepsProgressDotStyle = function genStepsProgressDotStyle(token) {
|
|
|
63
63
|
top: token.calc(dotSize).sub(dotCurrentSize).div(2).equal(),
|
|
64
64
|
width: dotCurrentSize,
|
|
65
65
|
height: dotCurrentSize,
|
|
66
|
-
lineHeight:
|
|
66
|
+
lineHeight: unit(dotCurrentSize),
|
|
67
67
|
background: 'none',
|
|
68
68
|
marginInlineStart: token.calc(token.descriptionMaxWidth).sub(dotCurrentSize).div(2).equal()
|
|
69
69
|
}), "&-process ".concat(componentCls, "-icon"), _defineProperty({}, "&:first-child ".concat(componentCls, "-icon-dot"), {
|
|
@@ -22,13 +22,13 @@ var genStepsSmallStyle = function genStepsSmallStyle(token) {
|
|
|
22
22
|
marginBottom: 0,
|
|
23
23
|
marginInline: "0 ".concat(unit(token.marginXS)),
|
|
24
24
|
fontSize: fontSizeSM,
|
|
25
|
-
lineHeight:
|
|
25
|
+
lineHeight: unit(iconSizeSM),
|
|
26
26
|
textAlign: 'center',
|
|
27
27
|
borderRadius: iconSizeSM
|
|
28
28
|
}), "".concat(componentCls, "-item-title"), {
|
|
29
29
|
paddingInlineEnd: token.paddingSM,
|
|
30
30
|
fontSize: fontSize,
|
|
31
|
-
lineHeight:
|
|
31
|
+
lineHeight: unit(iconSizeSM),
|
|
32
32
|
'&::after': {
|
|
33
33
|
top: token.calc(iconSizeSM).div(2).equal()
|
|
34
34
|
}
|
|
@@ -46,7 +46,7 @@ var genStepsSmallStyle = function genStepsSmallStyle(token) {
|
|
|
46
46
|
borderRadius: 0
|
|
47
47
|
}, "> ".concat(componentCls, "-icon"), {
|
|
48
48
|
fontSize: iconSizeSM,
|
|
49
|
-
lineHeight:
|
|
49
|
+
lineHeight: unit(iconSizeSM),
|
|
50
50
|
transform: 'none'
|
|
51
51
|
})));
|
|
52
52
|
};
|
|
@@ -23,7 +23,7 @@ var genStepsVerticalStyle = function genStepsVerticalStyle(token) {
|
|
|
23
23
|
minHeight: token.calc(token.controlHeight).mul(1.5).equal(),
|
|
24
24
|
overflow: 'hidden'
|
|
25
25
|
}), "".concat(componentCls, "-item-title"), {
|
|
26
|
-
lineHeight:
|
|
26
|
+
lineHeight: unit(iconSize)
|
|
27
27
|
}), "".concat(componentCls, "-item-description"), {
|
|
28
28
|
paddingBottom: token.paddingSM
|
|
29
29
|
})), "> ".concat(componentCls, "-item > ").concat(componentCls, "-item-container > ").concat(componentCls, "-item-tail"), {
|
|
@@ -49,7 +49,7 @@ var genStepsVerticalStyle = function genStepsVerticalStyle(token) {
|
|
|
49
49
|
insetInlineStart: token.calc(iconSizeSM).div(2).sub(token.lineWidth).equal(),
|
|
50
50
|
padding: "".concat(unit(token.calc(token.marginXXS).mul(1.5).add(iconSizeSM).equal()), " 0 ").concat(unit(token.calc(token.marginXXS).mul(1.5).equal()))
|
|
51
51
|
}), "".concat(componentCls, "-item-title"), {
|
|
52
|
-
lineHeight:
|
|
52
|
+
lineHeight: unit(iconSizeSM)
|
|
53
53
|
})));
|
|
54
54
|
};
|
|
55
55
|
export default genStepsVerticalStyle;
|
package/lib/Antd5/style/index.js
CHANGED
|
@@ -4,9 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
/* eslint-disable import/prefer-default-export */
|
|
8
7
|
import { unit } from '@ant-design/cssinjs';
|
|
9
|
-
export { operationUnit } from './operationUnit';
|
|
10
8
|
export var textEllipsis = {
|
|
11
9
|
overflow: 'hidden',
|
|
12
10
|
whiteSpace: 'nowrap',
|
|
@@ -66,7 +64,7 @@ export var clearFix = function clearFix() {
|
|
|
66
64
|
};
|
|
67
65
|
export var genLinkStyle = function genLinkStyle(token) {
|
|
68
66
|
return {
|
|
69
|
-
a:
|
|
67
|
+
a: {
|
|
70
68
|
color: token.colorLink,
|
|
71
69
|
textDecoration: token.linkDecoration,
|
|
72
70
|
backgroundColor: 'transparent',
|
|
@@ -81,17 +79,21 @@ export var genLinkStyle = function genLinkStyle(token) {
|
|
|
81
79
|
},
|
|
82
80
|
'&:active': {
|
|
83
81
|
color: token.colorLinkActive
|
|
82
|
+
},
|
|
83
|
+
'&:active, &:hover': {
|
|
84
|
+
textDecoration: token.linkHoverDecoration,
|
|
85
|
+
outline: 0
|
|
86
|
+
},
|
|
87
|
+
// https://github.com/ant-design/ant-design/issues/22503
|
|
88
|
+
'&:focus': {
|
|
89
|
+
textDecoration: token.linkFocusDecoration,
|
|
90
|
+
outline: 0
|
|
91
|
+
},
|
|
92
|
+
'&[disabled]': {
|
|
93
|
+
color: token.colorTextDisabled,
|
|
94
|
+
cursor: 'not-allowed'
|
|
84
95
|
}
|
|
85
|
-
}
|
|
86
|
-
textDecoration: token.linkHoverDecoration,
|
|
87
|
-
outline: 0
|
|
88
|
-
}), '&:focus', {
|
|
89
|
-
textDecoration: token.linkFocusDecoration,
|
|
90
|
-
outline: 0
|
|
91
|
-
}), '&[disabled]', {
|
|
92
|
-
color: token.colorTextDisabled,
|
|
93
|
-
cursor: 'not-allowed'
|
|
94
|
-
})
|
|
96
|
+
}
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
export var genCommonStyle = function genCommonStyle(token, componentPrefixCls, rootCls, resetFont) {
|
|
@@ -123,4 +125,26 @@ export var genFocusStyle = function genFocusStyle(token) {
|
|
|
123
125
|
return {
|
|
124
126
|
'&:focus-visible': _objectSpread({}, genFocusOutline(token))
|
|
125
127
|
};
|
|
128
|
+
};
|
|
129
|
+
export var operationUnit = function operationUnit(token) {
|
|
130
|
+
return _objectSpread(_objectSpread({
|
|
131
|
+
// FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
|
|
132
|
+
// And Typography use this to generate link style which should not do this.
|
|
133
|
+
color: token.colorLink,
|
|
134
|
+
textDecoration: token.linkDecoration,
|
|
135
|
+
outline: 'none',
|
|
136
|
+
cursor: 'pointer',
|
|
137
|
+
transition: "all ".concat(token.motionDurationSlow),
|
|
138
|
+
border: 0,
|
|
139
|
+
padding: 0,
|
|
140
|
+
background: 'none',
|
|
141
|
+
userSelect: 'none'
|
|
142
|
+
}, genFocusStyle(token)), {}, {
|
|
143
|
+
'&:focus, &:hover': {
|
|
144
|
+
color: token.colorLinkHover
|
|
145
|
+
},
|
|
146
|
+
'&:active': {
|
|
147
|
+
color: token.colorLinkActive
|
|
148
|
+
}
|
|
149
|
+
});
|
|
126
150
|
};
|
|
@@ -124,14 +124,15 @@ export var initSlideMotion = function initSlideMotion(token, motionName) {
|
|
|
124
124
|
var _slideMotion$motionNa = slideMotion[motionName],
|
|
125
125
|
inKeyframes = _slideMotion$motionNa.inKeyframes,
|
|
126
126
|
outKeyframes = _slideMotion$motionNa.outKeyframes;
|
|
127
|
-
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), _defineProperty(_defineProperty({}, "\n ".concat(motionCls, "-enter,\n ").concat(motionCls, "-appear\n "),
|
|
127
|
+
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), _defineProperty(_defineProperty({}, "\n ".concat(motionCls, "-enter,\n ").concat(motionCls, "-appear\n "), {
|
|
128
128
|
transform: 'scale(0)',
|
|
129
129
|
transformOrigin: '0% 0%',
|
|
130
130
|
opacity: 0,
|
|
131
|
-
animationTimingFunction: token.motionEaseOutQuint
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
animationTimingFunction: token.motionEaseOutQuint,
|
|
132
|
+
'&-prepare': {
|
|
133
|
+
transform: 'scale(1)'
|
|
134
|
+
}
|
|
135
|
+
}), "".concat(motionCls, "-leave"), {
|
|
135
136
|
animationTimingFunction: token.motionEaseInQuint
|
|
136
137
|
})];
|
|
137
138
|
};
|
|
@@ -4,6 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { unit } from '@ant-design/cssinjs';
|
|
7
8
|
import { genRoundedArrow } from './roundedArrow';
|
|
8
9
|
export var MAX_VERTICAL_CONTENT_RADIUS = 8;
|
|
9
10
|
export function getArrowOffsetToken(options) {
|
|
@@ -55,17 +56,21 @@ export default function getArrowStyle(token, colorBg, options) {
|
|
|
55
56
|
value: '50%'
|
|
56
57
|
},
|
|
57
58
|
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
|
58
|
-
}),
|
|
59
|
+
}), '&-placement-topLeft', _defineProperty({
|
|
60
|
+
'--arrow-offset-horizontal': arrowOffsetHorizontal
|
|
61
|
+
}, "> ".concat(componentCls, "-arrow"), {
|
|
59
62
|
left: {
|
|
60
63
|
_skip_check_: true,
|
|
61
64
|
value: arrowOffsetHorizontal
|
|
62
65
|
}
|
|
63
|
-
}),
|
|
66
|
+
})), '&-placement-topRight', _defineProperty({
|
|
67
|
+
'--arrow-offset-horizontal': "calc(100% - ".concat(unit(arrowOffsetHorizontal), ")")
|
|
68
|
+
}, "> ".concat(componentCls, "-arrow"), {
|
|
64
69
|
right: {
|
|
65
70
|
_skip_check_: true,
|
|
66
71
|
value: arrowOffsetHorizontal
|
|
67
72
|
}
|
|
68
|
-
}))), isInject(!!arrowPlacement.bottom, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ["&-placement-bottom > ".concat(componentCls, "-arrow"), "&-placement-bottomLeft > ".concat(componentCls, "-arrow"), "&-placement-bottomRight > ".concat(componentCls, "-arrow")].join(','), {
|
|
73
|
+
})))), isInject(!!arrowPlacement.bottom, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ["&-placement-bottom > ".concat(componentCls, "-arrow"), "&-placement-bottomLeft > ".concat(componentCls, "-arrow"), "&-placement-bottomRight > ".concat(componentCls, "-arrow")].join(','), {
|
|
69
74
|
top: arrowDistance,
|
|
70
75
|
transform: "translateY(-100%)"
|
|
71
76
|
}), "&-placement-bottom > ".concat(componentCls, "-arrow"), {
|
|
@@ -74,17 +79,21 @@ export default function getArrowStyle(token, colorBg, options) {
|
|
|
74
79
|
value: '50%'
|
|
75
80
|
},
|
|
76
81
|
transform: "translateX(-50%) translateY(-100%)"
|
|
77
|
-
}),
|
|
82
|
+
}), '&-placement-bottomLeft', _defineProperty({
|
|
83
|
+
'--arrow-offset-horizontal': arrowOffsetHorizontal
|
|
84
|
+
}, "> ".concat(componentCls, "-arrow"), {
|
|
78
85
|
left: {
|
|
79
86
|
_skip_check_: true,
|
|
80
87
|
value: arrowOffsetHorizontal
|
|
81
88
|
}
|
|
82
|
-
}),
|
|
89
|
+
})), '&-placement-bottomRight', _defineProperty({
|
|
90
|
+
'--arrow-offset-horizontal': "calc(100% - ".concat(unit(arrowOffsetHorizontal), ")")
|
|
91
|
+
}, "> ".concat(componentCls, "-arrow"), {
|
|
83
92
|
right: {
|
|
84
93
|
_skip_check_: true,
|
|
85
94
|
value: arrowOffsetHorizontal
|
|
86
95
|
}
|
|
87
|
-
}))), isInject(!!arrowPlacement.left, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ["&-placement-left > ".concat(componentCls, "-arrow"), "&-placement-leftTop > ".concat(componentCls, "-arrow"), "&-placement-leftBottom > ".concat(componentCls, "-arrow")].join(','), {
|
|
96
|
+
})))), isInject(!!arrowPlacement.left, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ["&-placement-left > ".concat(componentCls, "-arrow"), "&-placement-leftTop > ".concat(componentCls, "-arrow"), "&-placement-leftBottom > ".concat(componentCls, "-arrow")].join(','), {
|
|
88
97
|
right: {
|
|
89
98
|
_skip_check_: true,
|
|
90
99
|
value: arrowDistance
|
|
@@ -171,7 +171,7 @@ var genSwitchStyle = function genSwitchStyle(token) {
|
|
|
171
171
|
boxSizing: 'border-box',
|
|
172
172
|
minWidth: trackMinWidth,
|
|
173
173
|
height: trackHeight,
|
|
174
|
-
lineHeight:
|
|
174
|
+
lineHeight: unit(trackHeight),
|
|
175
175
|
verticalAlign: 'middle',
|
|
176
176
|
background: token.colorTextQuaternary,
|
|
177
177
|
border: '0',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* istanbul ignore next */
|
|
2
2
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
|
3
|
-
|
|
4
|
-
function Column(_) {
|
|
3
|
+
var Column = function Column(_) {
|
|
5
4
|
return null;
|
|
6
|
-
}
|
|
5
|
+
};
|
|
7
6
|
export default Column;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* istanbul ignore next */
|
|
2
2
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
|
3
|
-
|
|
4
|
-
function ColumnGroup(_) {
|
|
3
|
+
var ColumnGroup = function ColumnGroup(_) {
|
|
5
4
|
return null;
|
|
6
|
-
}
|
|
5
|
+
};
|
|
7
6
|
export default ColumnGroup;
|
|
@@ -6,12 +6,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
function renderExpandIcon(locale) {
|
|
9
|
-
return function
|
|
10
|
-
var prefixCls =
|
|
11
|
-
onExpand =
|
|
12
|
-
record =
|
|
13
|
-
expanded =
|
|
14
|
-
expandable =
|
|
9
|
+
return function (props) {
|
|
10
|
+
var prefixCls = props.prefixCls,
|
|
11
|
+
onExpand = props.onExpand,
|
|
12
|
+
record = props.record,
|
|
13
|
+
expanded = props.expanded,
|
|
14
|
+
expandable = props.expandable;
|
|
15
15
|
var iconPrefix = "".concat(prefixCls, "-row-expand-icon");
|
|
16
16
|
return _jsx("button", {
|
|
17
17
|
type: "button",
|
|
@@ -134,7 +134,7 @@ var InternalTable = function InternalTable(props, ref) {
|
|
|
134
134
|
})) {
|
|
135
135
|
return 'nest';
|
|
136
136
|
}
|
|
137
|
-
if (expandedRowRender || expandable && expandable.expandedRowRender) {
|
|
137
|
+
if (expandedRowRender || expandable !== null && expandable !== void 0 && expandable.expandedRowRender) {
|
|
138
138
|
return 'row';
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
@@ -177,9 +177,9 @@ var InternalTable = function InternalTable(props, ref) {
|
|
|
177
177
|
changeInfo.pagination.current = 1;
|
|
178
178
|
}
|
|
179
179
|
// Trigger pagination events
|
|
180
|
-
if (pagination
|
|
181
|
-
var _changeInfo$paginatio2;
|
|
182
|
-
pagination.onChange(1, (_changeInfo$paginatio2 = changeInfo.pagination) === null || _changeInfo$paginatio2 === void 0 ? void 0 : _changeInfo$paginatio2.pageSize);
|
|
180
|
+
if (pagination) {
|
|
181
|
+
var _pagination$onChange, _changeInfo$paginatio2;
|
|
182
|
+
(_pagination$onChange = pagination.onChange) === null || _pagination$onChange === void 0 || _pagination$onChange.call(pagination, 1, (_changeInfo$paginatio2 = changeInfo.pagination) === null || _changeInfo$paginatio2 === void 0 ? void 0 : _changeInfo$paginatio2.pageSize);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
if (scroll && scroll.scrollToFirstRowOnChange !== false && internalRefs.body.current) {
|
|
@@ -298,7 +298,7 @@ var InternalTable = function InternalTable(props, ref) {
|
|
|
298
298
|
return mergedData;
|
|
299
299
|
}
|
|
300
300
|
return mergedData.slice((current - 1) * pageSize, current * pageSize);
|
|
301
|
-
}, [!!pagination, mergedData, mergedPagination
|
|
301
|
+
}, [!!pagination, mergedData, mergedPagination === null || mergedPagination === void 0 ? void 0 : mergedPagination.current, mergedPagination === null || mergedPagination === void 0 ? void 0 : mergedPagination.pageSize, mergedPagination === null || mergedPagination === void 0 ? void 0 : mergedPagination.total]);
|
|
302
302
|
// ========================== Selections ==========================
|
|
303
303
|
var _useSelection = useSelection({
|
|
304
304
|
prefixCls: prefixCls,
|
|
@@ -395,7 +395,7 @@ var InternalTable = function InternalTable(props, ref) {
|
|
|
395
395
|
}
|
|
396
396
|
var wrapperClassNames = classNames(cssVarCls, rootCls, "".concat(prefixCls, "-wrapper"), table === null || table === void 0 ? void 0 : table.className, _defineProperty({}, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), className, rootClassName, hashId);
|
|
397
397
|
var mergedStyle = _objectSpread(_objectSpread({}, table === null || table === void 0 ? void 0 : table.style), style);
|
|
398
|
-
var emptyText = locale
|
|
398
|
+
var emptyText = typeof (locale === null || locale === void 0 ? void 0 : locale.emptyText) !== 'undefined' ? locale.emptyText : (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Table')) || _jsx(DefaultRenderEmpty, {
|
|
399
399
|
componentName: "Table"
|
|
400
400
|
});
|
|
401
401
|
// ========================== Render ==========================
|
|
@@ -2,8 +2,9 @@ import { genVirtualTable } from 'rc-table';
|
|
|
2
2
|
/**
|
|
3
3
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
var RcVirtualTable = genVirtualTable(function (prev, next) {
|
|
6
6
|
var prevRenderTimes = prev._renderTimes;
|
|
7
7
|
var nextRenderTimes = next._renderTimes;
|
|
8
8
|
return prevRenderTimes !== nextRenderTimes;
|
|
9
|
-
});
|
|
9
|
+
});
|
|
10
|
+
export default RcVirtualTable;
|
|
@@ -2,8 +2,9 @@ import { genTable } from 'rc-table';
|
|
|
2
2
|
/**
|
|
3
3
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
var RcTable = genTable(function (prev, next) {
|
|
6
6
|
var prevRenderTimes = prev._renderTimes;
|
|
7
7
|
var nextRenderTimes = next._renderTimes;
|
|
8
8
|
return prevRenderTimes !== nextRenderTimes;
|
|
9
|
-
});
|
|
9
|
+
});
|
|
10
|
+
export default RcTable;
|