@chaoswise/ui 3.0.23 → 3.1.1
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/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 +4 -2
- 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 +1 -1
- 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 +44 -10
- package/lib/Antd5/checkbox/Group.js +7 -2
- package/lib/Antd5/checkbox/assets/duigou1.js +29 -0
- package/lib/Antd5/checkbox/assets/duigou2.js +29 -0
- package/lib/Antd5/checkbox/style/index.js +112 -6
- 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/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/radio/radio.js +4 -10
- package/lib/Antd5/radio/style/index.js +65 -80
- 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/typography/hooks/useTooltipProps.js +30 -0
- package/lib/Antd5/typography/style/mixins.js +3 -9
- 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/AppHolder/index.js +2 -1
- 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 +11 -10
- package/lib/ConfigProvider/customTheme.js +6 -0
- package/lib/ConfigProvider/theme/common.js +140 -0
- package/lib/ConfigProvider/theme/dark.js +2 -0
- package/lib/ConfigProvider/theme/default.js +122 -0
- package/lib/ConfigProvider/theme/utils.js +49 -0
- package/lib/Header/UserSetting/TenantTree.js +0 -1
- package/lib/Pagination/index.style.js +1 -1
- package/lib/QuickTransfer/index.js +45 -59
- package/lib/SiderMenu/index.style.js +4 -2
- package/lib/Slider/index.style.js +2 -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
|
@@ -34,6 +34,9 @@ export var generateNeutralColorPalettes = function generateNeutralColorPalettes(
|
|
|
34
34
|
colorFillSecondary: getAlphaColor(colorTextBase, 0.12),
|
|
35
35
|
colorFillTertiary: getAlphaColor(colorTextBase, 0.08),
|
|
36
36
|
colorFillQuaternary: getAlphaColor(colorTextBase, 0.04),
|
|
37
|
+
colorBgSolid: getAlphaColor(colorTextBase, 0.95),
|
|
38
|
+
colorBgSolidHover: getAlphaColor(colorTextBase, 1),
|
|
39
|
+
colorBgSolidActive: getAlphaColor(colorTextBase, 0.9),
|
|
37
40
|
colorBgElevated: getSolidColor(colorBgBase, 12),
|
|
38
41
|
colorBgContainer: getSolidColor(colorBgBase, 8),
|
|
39
42
|
colorBgLayout: getSolidColor(colorBgBase, 0),
|
|
@@ -20,6 +20,7 @@ var derivative = function derivative(token, mapToken) {
|
|
|
20
20
|
return prev;
|
|
21
21
|
}, {});
|
|
22
22
|
}).reduce(function (prev, cur) {
|
|
23
|
+
// biome-ignore lint/style/noParameterAssign: it is a reduce
|
|
23
24
|
prev = _objectSpread(_objectSpread({}, prev), cur);
|
|
24
25
|
return prev;
|
|
25
26
|
}, {});
|
|
@@ -32,6 +32,9 @@ export var generateNeutralColorPalettes = function generateNeutralColorPalettes(
|
|
|
32
32
|
colorFillSecondary: getAlphaColor(colorTextBase, 0.06),
|
|
33
33
|
colorFillTertiary: getAlphaColor(colorTextBase, 0.04),
|
|
34
34
|
colorFillQuaternary: getAlphaColor(colorTextBase, 0.02),
|
|
35
|
+
colorBgSolid: getAlphaColor(colorTextBase, 1),
|
|
36
|
+
colorBgSolidHover: getAlphaColor(colorTextBase, 0.75),
|
|
37
|
+
colorBgSolidActive: getAlphaColor(colorTextBase, 0.95),
|
|
35
38
|
colorBgLayout: getSolidColor(colorBgBase, 4),
|
|
36
39
|
colorBgContainer: getSolidColor(colorBgBase, 0),
|
|
37
40
|
colorBgElevated: getSolidColor(colorBgBase, 0),
|
|
@@ -4,7 +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 { generate } from '@ant-design/colors';
|
|
7
|
+
import { generate, presetPalettes, presetPrimaryColors } from '@ant-design/colors';
|
|
8
8
|
import { defaultPresetColors } from '../seed';
|
|
9
9
|
import genColorMapToken from '../shared/genColorMapToken';
|
|
10
10
|
import genCommonMapToken from '../shared/genCommonMapToken';
|
|
@@ -13,14 +13,18 @@ import genFontMapToken from '../shared/genFontMapToken';
|
|
|
13
13
|
import genSizeMapToken from '../shared/genSizeMapToken';
|
|
14
14
|
import { generateColorPalettes, generateNeutralColorPalettes } from './colors';
|
|
15
15
|
export default function derivative(token) {
|
|
16
|
+
// pink is deprecated name of magenta, keep this for backwards compatibility
|
|
17
|
+
presetPrimaryColors.pink = presetPrimaryColors.magenta;
|
|
18
|
+
presetPalettes.pink = presetPalettes.magenta;
|
|
16
19
|
var colorPalettes = Object.keys(defaultPresetColors).map(function (colorKey) {
|
|
17
|
-
var colors = generate(token[colorKey]);
|
|
20
|
+
var colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate(token[colorKey]);
|
|
18
21
|
return new Array(10).fill(1).reduce(function (prev, _, i) {
|
|
19
22
|
prev["".concat(colorKey, "-").concat(i + 1)] = colors[i];
|
|
20
23
|
prev["".concat(colorKey).concat(i + 1)] = colors[i];
|
|
21
24
|
return prev;
|
|
22
25
|
}, {});
|
|
23
26
|
}).reduce(function (prev, cur) {
|
|
27
|
+
// biome-ignore lint/style/noParameterAssign: it is a reduce
|
|
24
28
|
prev = _objectSpread(_objectSpread({}, prev), cur);
|
|
25
29
|
return prev;
|
|
26
30
|
}, {});
|
|
@@ -5,12 +5,15 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
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
7
|
export var defaultPresetColors = {
|
|
8
|
-
blue: '#
|
|
8
|
+
blue: '#1677FF',
|
|
9
9
|
purple: '#722ED1',
|
|
10
10
|
cyan: '#13C2C2',
|
|
11
11
|
green: '#52C41A',
|
|
12
12
|
magenta: '#EB2F96',
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use magenta instead
|
|
15
|
+
*/
|
|
16
|
+
pink: '#EB2F96',
|
|
14
17
|
red: '#F5222D',
|
|
15
18
|
orange: '#FA8C16',
|
|
16
19
|
yellow: '#FADB14',
|
|
@@ -24,6 +24,7 @@ export default function genColorMapToken(seed, _ref) {
|
|
|
24
24
|
// Color Link
|
|
25
25
|
var colorLink = seed.colorLink || seed.colorInfo;
|
|
26
26
|
var linkColors = generateColorPalettes(colorLink);
|
|
27
|
+
var colorErrorBgFilledHover = new TinyColor(errorColors[1]).mix(new TinyColor(errorColors[3]), 50).toHexString();
|
|
27
28
|
return _objectSpread(_objectSpread({}, neutralColors), {}, {
|
|
28
29
|
colorPrimaryBg: primaryColors[1],
|
|
29
30
|
colorPrimaryBgHover: primaryColors[2],
|
|
@@ -47,6 +48,7 @@ export default function genColorMapToken(seed, _ref) {
|
|
|
47
48
|
colorSuccessTextActive: successColors[10],
|
|
48
49
|
colorErrorBg: errorColors[1],
|
|
49
50
|
colorErrorBgHover: errorColors[2],
|
|
51
|
+
colorErrorBgFilledHover: colorErrorBgFilledHover,
|
|
50
52
|
colorErrorBgActive: errorColors[3],
|
|
51
53
|
colorErrorBorder: errorColors[3],
|
|
52
54
|
colorErrorBorderHover: errorColors[4],
|
|
@@ -5,7 +5,7 @@ export function getLineHeight(fontSize) {
|
|
|
5
5
|
export default function getFontSizes(base) {
|
|
6
6
|
var fontSizes = new Array(10).fill(null).map(function (_, index) {
|
|
7
7
|
var i = index - 1;
|
|
8
|
-
var baseSize = base * Math.pow(
|
|
8
|
+
var baseSize = base * Math.pow(Math.E, i / 5);
|
|
9
9
|
var intSize = index > 1 ? Math.floor(baseSize) : Math.ceil(baseSize);
|
|
10
10
|
// Convert to even
|
|
11
11
|
return Math.floor(intSize / 2) * 2;
|
|
@@ -63,7 +63,7 @@ export default function formatToken(derivativeToken) {
|
|
|
63
63
|
// Font
|
|
64
64
|
fontSizeIcon: mergedToken.fontSizeSM,
|
|
65
65
|
// Line
|
|
66
|
-
lineWidthFocus: mergedToken.lineWidth *
|
|
66
|
+
lineWidthFocus: mergedToken.lineWidth * 3,
|
|
67
67
|
// Control
|
|
68
68
|
lineWidth: mergedToken.lineWidth,
|
|
69
69
|
controlOutlineWidth: mergedToken.lineWidth * 2,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { useContext } from 'react';
|
|
8
|
+
import { genStyleUtils } from '@ant-design/cssinjs-utils';
|
|
9
|
+
import { ConfigContext } from '../../config-provider/context';
|
|
10
|
+
import { genCommonStyle, genLinkStyle } from '../../style';
|
|
11
|
+
import useLocalToken, { unitless } from '../useToken';
|
|
12
|
+
import useResetIconStyle from './useResetIconStyle';
|
|
13
|
+
var _genStyleUtils = genStyleUtils({
|
|
14
|
+
usePrefix: function usePrefix() {
|
|
15
|
+
var _useContext = useContext(ConfigContext),
|
|
16
|
+
getPrefixCls = _useContext.getPrefixCls,
|
|
17
|
+
iconPrefixCls = _useContext.iconPrefixCls;
|
|
18
|
+
var rootPrefixCls = getPrefixCls();
|
|
19
|
+
return {
|
|
20
|
+
rootPrefixCls: rootPrefixCls,
|
|
21
|
+
iconPrefixCls: iconPrefixCls
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
useToken: function useToken() {
|
|
25
|
+
var _useLocalToken = useLocalToken(),
|
|
26
|
+
_useLocalToken2 = _slicedToArray(_useLocalToken, 5),
|
|
27
|
+
theme = _useLocalToken2[0],
|
|
28
|
+
realToken = _useLocalToken2[1],
|
|
29
|
+
hashId = _useLocalToken2[2],
|
|
30
|
+
token = _useLocalToken2[3],
|
|
31
|
+
cssVar = _useLocalToken2[4];
|
|
32
|
+
return {
|
|
33
|
+
theme: theme,
|
|
34
|
+
realToken: realToken,
|
|
35
|
+
hashId: hashId,
|
|
36
|
+
token: token,
|
|
37
|
+
cssVar: cssVar
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
useCSP: function useCSP() {
|
|
41
|
+
var _useContext2 = useContext(ConfigContext),
|
|
42
|
+
csp = _useContext2.csp,
|
|
43
|
+
iconPrefixCls = _useContext2.iconPrefixCls;
|
|
44
|
+
// Generate style for icons
|
|
45
|
+
useResetIconStyle(iconPrefixCls, csp);
|
|
46
|
+
return csp !== null && csp !== void 0 ? csp : {};
|
|
47
|
+
},
|
|
48
|
+
getResetStyles: function getResetStyles(token) {
|
|
49
|
+
return [{
|
|
50
|
+
'&': genLinkStyle(token)
|
|
51
|
+
}];
|
|
52
|
+
},
|
|
53
|
+
getCommonStyle: genCommonStyle,
|
|
54
|
+
getCompUnitless: function getCompUnitless() {
|
|
55
|
+
return unitless;
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
genStyleHooks = _genStyleUtils.genStyleHooks,
|
|
59
|
+
genComponentStyleHook = _genStyleUtils.genComponentStyleHook,
|
|
60
|
+
genSubStyleComponent = _genStyleUtils.genSubStyleComponent;
|
|
61
|
+
export { genStyleHooks, genComponentStyleHook, genSubStyleComponent };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
var _excluded = ["addon", "renderExtraFooter"];
|
|
1
|
+
var _excluded = ["addon", "renderExtraFooter", "variant", "bordered"];
|
|
2
2
|
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); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
3
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
11
|
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; }
|
|
@@ -12,6 +18,7 @@ import * as React from 'react';
|
|
|
12
18
|
import genPurePanel from '../_util/PurePanel';
|
|
13
19
|
import { devUseWarning } from '../_util/warning';
|
|
14
20
|
import DatePicker from '../date-picker';
|
|
21
|
+
import useVariant from '../form/hooks/useVariants';
|
|
15
22
|
var InternalTimePicker = DatePicker.TimePicker,
|
|
16
23
|
InternalRangePicker = DatePicker.RangePicker;
|
|
17
24
|
var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -24,11 +31,16 @@ var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
24
31
|
var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
25
32
|
var addon = _ref.addon,
|
|
26
33
|
renderExtraFooter = _ref.renderExtraFooter,
|
|
34
|
+
variant = _ref.variant,
|
|
35
|
+
bordered = _ref.bordered,
|
|
27
36
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
28
37
|
if (process.env.NODE_ENV !== 'production') {
|
|
29
38
|
var warning = devUseWarning('TimePicker');
|
|
30
39
|
warning.deprecated(!addon, 'addon', 'renderExtraFooter');
|
|
31
40
|
}
|
|
41
|
+
var _useVariant = useVariant('timePicker', variant, bordered),
|
|
42
|
+
_useVariant2 = _slicedToArray(_useVariant, 1),
|
|
43
|
+
mergedVariant = _useVariant2[0];
|
|
32
44
|
var internalRenderExtraFooter = React.useMemo(function () {
|
|
33
45
|
if (renderExtraFooter) {
|
|
34
46
|
return renderExtraFooter;
|
|
@@ -41,7 +53,8 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
41
53
|
return _jsx(InternalTimePicker, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
42
54
|
mode: undefined,
|
|
43
55
|
ref: ref,
|
|
44
|
-
renderExtraFooter: internalRenderExtraFooter
|
|
56
|
+
renderExtraFooter: internalRenderExtraFooter,
|
|
57
|
+
variant: mergedVariant
|
|
45
58
|
}));
|
|
46
59
|
});
|
|
47
60
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -71,7 +71,6 @@ var TimelineItemList = function TimelineItemList(_ref) {
|
|
|
71
71
|
itemProps = _objectWithoutProperties(item, _excluded2);
|
|
72
72
|
return /*#__PURE__*/_createElement(TimelineItem, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
73
73
|
className: classNames([itemClassName, !reverse && !!pending ? pendingClass : readyClass, getPositionCls((_item$position = item === null || item === void 0 ? void 0 : item.position) !== null && _item$position !== void 0 ? _item$position : '', idx)]),
|
|
74
|
-
/* eslint-disable-next-line react/no-array-index-key */
|
|
75
74
|
key: (item === null || item === void 0 ? void 0 : item.key) || idx
|
|
76
75
|
}));
|
|
77
76
|
});
|
|
@@ -18,6 +18,7 @@ import * as React from 'react';
|
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import RcTooltip from 'rc-tooltip';
|
|
20
20
|
import useMergedState from 'rc-util/lib/hooks/useMergedState';
|
|
21
|
+
import ContextIsolator from '../_util/ContextIsolator';
|
|
21
22
|
import { useZIndex } from '../_util/hooks/useZIndex';
|
|
22
23
|
import { getTransitionName } from '../_util/motion';
|
|
23
24
|
import getPlacements from '../_util/placements';
|
|
@@ -25,7 +26,6 @@ import { cloneElement, isFragment } from '../_util/reactNode';
|
|
|
25
26
|
import { devUseWarning } from '../_util/warning';
|
|
26
27
|
import zIndexContext from '../_util/zindexContext';
|
|
27
28
|
import { ConfigContext } from '../config-provider';
|
|
28
|
-
import { NoCompactStyle } from '../space/Compact';
|
|
29
29
|
import { useToken } from '../theme/internal';
|
|
30
30
|
import PurePanel from './PurePanel';
|
|
31
31
|
import useStyle from './style';
|
|
@@ -126,7 +126,8 @@ var InternalTooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
126
126
|
}
|
|
127
127
|
return overlay || title || '';
|
|
128
128
|
}, [overlay, title]);
|
|
129
|
-
var memoOverlayWrapper = _jsx(
|
|
129
|
+
var memoOverlayWrapper = _jsx(ContextIsolator, {
|
|
130
|
+
space: true,
|
|
130
131
|
children: typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay
|
|
131
132
|
});
|
|
132
133
|
var getPopupContainer = props.getPopupContainer,
|
|
@@ -28,7 +28,9 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
28
28
|
width: 'max-content',
|
|
29
29
|
maxWidth: tooltipMaxWidth,
|
|
30
30
|
visibility: 'visible',
|
|
31
|
-
|
|
31
|
+
// When use `autoArrow`, origin will follow the arrow position
|
|
32
|
+
'--valid-offset-x': 'var(--arrow-offset-horizontal, var(--arrow-x))',
|
|
33
|
+
transformOrigin: ["var(--valid-offset-x, 50%)", "var(--arrow-y, 50%)"].join(' '),
|
|
32
34
|
'&-hidden': {
|
|
33
35
|
display: 'none'
|
|
34
36
|
},
|
|
@@ -2,7 +2,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
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; }
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
4
4
|
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); }
|
|
5
|
-
/* eslint-disable import/prefer-default-export */
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import { isPresetColor } from '../_util/colors';
|
|
8
7
|
export function parseColor(prefixCls, color) {
|
|
@@ -47,20 +47,14 @@ var TourPanel = function TourPanel(props) {
|
|
|
47
47
|
stepType = stepProps.type,
|
|
48
48
|
closable = stepProps.closable;
|
|
49
49
|
var mergedType = stepType !== null && stepType !== void 0 ? stepType : type;
|
|
50
|
-
var mergedCloseIcon =
|
|
51
|
-
|
|
50
|
+
var mergedCloseIcon = _jsx("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
onClick: onClose,
|
|
53
|
+
className: "".concat(prefixCls, "-close"),
|
|
54
|
+
children: (closable === null || closable === void 0 ? void 0 : closable.closeIcon) || _jsx(CloseOutlined, {
|
|
52
55
|
className: "".concat(prefixCls, "-close-icon")
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
defaultCloseIcon = closable.closeIcon;
|
|
56
|
-
}
|
|
57
|
-
return _jsx("button", {
|
|
58
|
-
type: "button",
|
|
59
|
-
onClick: onClose,
|
|
60
|
-
className: "".concat(prefixCls, "-close"),
|
|
61
|
-
children: defaultCloseIcon
|
|
62
|
-
});
|
|
63
|
-
}, [closable]);
|
|
56
|
+
})
|
|
57
|
+
});
|
|
64
58
|
var isLastStep = current === total - 1;
|
|
65
59
|
var prevBtnClick = function prevBtnClick() {
|
|
66
60
|
var _prevButtonProps$onCl;
|
|
@@ -13,19 +13,16 @@ import { genStyleHooks, mergeToken } from '../../theme/internal';
|
|
|
13
13
|
// =============================== Base ===============================
|
|
14
14
|
var genBaseStyle = function genBaseStyle(token) {
|
|
15
15
|
var componentCls = token.componentCls,
|
|
16
|
-
lineHeight = token.lineHeight,
|
|
17
16
|
padding = token.padding,
|
|
18
17
|
paddingXS = token.paddingXS,
|
|
19
18
|
borderRadius = token.borderRadius,
|
|
20
19
|
borderRadiusXS = token.borderRadiusXS,
|
|
21
20
|
colorPrimary = token.colorPrimary,
|
|
22
|
-
colorText = token.colorText,
|
|
23
21
|
colorFill = token.colorFill,
|
|
24
22
|
indicatorHeight = token.indicatorHeight,
|
|
25
23
|
indicatorWidth = token.indicatorWidth,
|
|
26
24
|
boxShadowTertiary = token.boxShadowTertiary,
|
|
27
|
-
|
|
28
|
-
fontSize = token.fontSize,
|
|
25
|
+
zIndexPopup = token.zIndexPopup,
|
|
29
26
|
colorBgElevated = token.colorBgElevated,
|
|
30
27
|
fontWeightStrong = token.fontWeightStrong,
|
|
31
28
|
marginXS = token.marginXS,
|
|
@@ -38,13 +35,10 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
38
35
|
antCls = token.antCls,
|
|
39
36
|
primaryPrevBtnBg = token.primaryPrevBtnBg;
|
|
40
37
|
return [_defineProperty(_defineProperty(_defineProperty({}, componentCls, _objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
41
|
-
color: colorText,
|
|
42
38
|
position: 'absolute',
|
|
43
|
-
zIndex:
|
|
44
|
-
|
|
39
|
+
zIndex: zIndexPopup,
|
|
40
|
+
maxWidth: 'fit-content',
|
|
45
41
|
visibility: 'visible',
|
|
46
|
-
fontSize: fontSize,
|
|
47
|
-
lineHeight: lineHeight,
|
|
48
42
|
width: 520,
|
|
49
43
|
'--antd-arrow-background-color': colorBgElevated,
|
|
50
44
|
'&-pure': {
|
|
@@ -93,14 +87,13 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
93
87
|
width: '100%'
|
|
94
88
|
}
|
|
95
89
|
}), "".concat(componentCls, "-header"), _defineProperty({
|
|
96
|
-
padding: "".concat(unit(padding), " ").concat(unit(padding), " ").concat(unit(paddingXS))
|
|
90
|
+
padding: "".concat(unit(padding), " ").concat(unit(padding), " ").concat(unit(paddingXS)),
|
|
91
|
+
width: "calc(100% - ".concat(unit(closeBtnSize), ")"),
|
|
92
|
+
wordBreak: 'break-word'
|
|
97
93
|
}, "".concat(componentCls, "-title"), {
|
|
98
|
-
lineHeight: lineHeight,
|
|
99
|
-
fontSize: fontSize,
|
|
100
94
|
fontWeight: fontWeightStrong
|
|
101
95
|
})), "".concat(componentCls, "-description"), {
|
|
102
96
|
padding: "0 ".concat(unit(padding)),
|
|
103
|
-
lineHeight: lineHeight,
|
|
104
97
|
wordWrap: 'break-word'
|
|
105
98
|
}), "".concat(componentCls, "-footer"), _defineProperty(_defineProperty({
|
|
106
99
|
padding: "".concat(unit(paddingXS), " ").concat(unit(padding), " ").concat(unit(padding)),
|
|
@@ -14,7 +14,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
|
-
import TransButton from '../_util/transButton';
|
|
18
17
|
import Checkbox from '../checkbox';
|
|
19
18
|
import { useLocale } from '../locale';
|
|
20
19
|
import defaultLocale from '../locale/en_US';
|
|
@@ -46,12 +45,13 @@ var ListItem = function ListItem(props) {
|
|
|
46
45
|
});
|
|
47
46
|
if (showRemove) {
|
|
48
47
|
return _jsxs("li", _objectSpread(_objectSpread({}, liProps), {}, {
|
|
49
|
-
children: [labelNode, _jsx(
|
|
48
|
+
children: [labelNode, _jsx("button", {
|
|
49
|
+
type: "button",
|
|
50
50
|
disabled: disabled || item.disabled,
|
|
51
51
|
className: "".concat(prefixCls, "-content-item-remove"),
|
|
52
52
|
"aria-label": contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.remove,
|
|
53
53
|
onClick: function onClick() {
|
|
54
|
-
onRemove === null || onRemove === void 0
|
|
54
|
+
return onRemove === null || onRemove === void 0 ? void 0 : onRemove(item);
|
|
55
55
|
},
|
|
56
56
|
children: _jsx(DeleteOutlined, {})
|
|
57
57
|
})]
|
|
@@ -16,7 +16,7 @@ var useData = function useData(dataSource, rowKey, targetKeys) {
|
|
|
16
16
|
var mergedDataSource = React.useMemo(function () {
|
|
17
17
|
return (dataSource || []).map(function (record) {
|
|
18
18
|
if (rowKey) {
|
|
19
|
-
|
|
19
|
+
return _objectSpread(_objectSpread({}, record), {}, {
|
|
20
20
|
key: rowKey(record)
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1
5
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
7
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -5,6 +9,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
11
|
import * as React from 'react';
|
|
12
|
+
import { useEvent, useMergedState } from 'rc-util';
|
|
8
13
|
var EMPTY_KEYS = [];
|
|
9
14
|
function filterKeys(keys, dataKeys) {
|
|
10
15
|
var filteredKeys = keys.filter(function (key) {
|
|
@@ -15,8 +20,7 @@ function filterKeys(keys, dataKeys) {
|
|
|
15
20
|
function flattenKeys(keys) {
|
|
16
21
|
return Array.from(keys).join(';');
|
|
17
22
|
}
|
|
18
|
-
export default function useSelection(leftDataSource, rightDataSource) {
|
|
19
|
-
var selectedKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EMPTY_KEYS;
|
|
23
|
+
export default function useSelection(leftDataSource, rightDataSource, selectedKeys) {
|
|
20
24
|
// Prepare `dataSource` keys
|
|
21
25
|
var _React$useMemo = React.useMemo(function () {
|
|
22
26
|
return [new Set(leftDataSource.map(function (src) {
|
|
@@ -29,28 +33,29 @@ export default function useSelection(leftDataSource, rightDataSource) {
|
|
|
29
33
|
leftKeys = _React$useMemo2[0],
|
|
30
34
|
rightKeys = _React$useMemo2[1];
|
|
31
35
|
// Selected Keys
|
|
32
|
-
var
|
|
33
|
-
|
|
36
|
+
var _useMergedState = useMergedState(EMPTY_KEYS, {
|
|
37
|
+
value: selectedKeys
|
|
34
38
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
//
|
|
45
|
-
React.useEffect(function () {
|
|
46
|
-
setSourceSelectedKeys(filterKeys(selectedKeys, leftKeys));
|
|
47
|
-
setTargetSelectedKeys(filterKeys(selectedKeys, rightKeys));
|
|
48
|
-
}, [selectedKeys]);
|
|
49
|
-
// Reset when data changed
|
|
39
|
+
_useMergedState2 = _slicedToArray(_useMergedState, 2),
|
|
40
|
+
mergedSelectedKeys = _useMergedState2[0],
|
|
41
|
+
setMergedSelectedKeys = _useMergedState2[1];
|
|
42
|
+
var sourceSelectedKeys = React.useMemo(function () {
|
|
43
|
+
return filterKeys(mergedSelectedKeys, leftKeys);
|
|
44
|
+
}, [mergedSelectedKeys, leftKeys]);
|
|
45
|
+
var targetSelectedKeys = React.useMemo(function () {
|
|
46
|
+
return filterKeys(mergedSelectedKeys, rightKeys);
|
|
47
|
+
}, [mergedSelectedKeys, rightKeys]);
|
|
48
|
+
// // Reset when data changed
|
|
50
49
|
React.useEffect(function () {
|
|
51
|
-
|
|
52
|
-
setTargetSelectedKeys(filterKeys(targetSelectedKeys, rightKeys));
|
|
50
|
+
setMergedSelectedKeys([].concat(_toConsumableArray(filterKeys(mergedSelectedKeys, leftKeys)), _toConsumableArray(filterKeys(mergedSelectedKeys, rightKeys))));
|
|
53
51
|
}, [flattenKeys(leftKeys), flattenKeys(rightKeys)]);
|
|
52
|
+
// Update keys
|
|
53
|
+
var setSourceSelectedKeys = useEvent(function (nextSrcKeys) {
|
|
54
|
+
setMergedSelectedKeys([].concat(_toConsumableArray(nextSrcKeys), _toConsumableArray(targetSelectedKeys)));
|
|
55
|
+
});
|
|
56
|
+
var setTargetSelectedKeys = useEvent(function (nextTargetKeys) {
|
|
57
|
+
setMergedSelectedKeys([].concat(_toConsumableArray(sourceSelectedKeys), _toConsumableArray(nextTargetKeys)));
|
|
58
|
+
});
|
|
54
59
|
return [
|
|
55
60
|
// Keys
|
|
56
61
|
sourceSelectedKeys, targetSelectedKeys,
|
|
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
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
7
|
import { unit } from '@ant-design/cssinjs';
|
|
8
|
-
import { resetComponent, resetIcon, textEllipsis } from '../../style';
|
|
8
|
+
import { resetComponent, resetIcon, textEllipsis, operationUnit } from '../../style';
|
|
9
9
|
import { genStyleHooks, mergeToken } from '../../theme/internal';
|
|
10
10
|
var genTransferCustomizeStyle = function genTransferCustomizeStyle(token) {
|
|
11
11
|
var antCls = token.antCls,
|
|
@@ -18,7 +18,8 @@ var genTransferCustomizeStyle = function genTransferCustomizeStyle(token) {
|
|
|
18
18
|
flex: '1 1 50%',
|
|
19
19
|
width: 'auto',
|
|
20
20
|
height: 'auto',
|
|
21
|
-
minHeight: listHeight
|
|
21
|
+
minHeight: listHeight,
|
|
22
|
+
minWidth: 0
|
|
22
23
|
}), "".concat(tableCls, "-wrapper"), _defineProperty(_defineProperty({}, "".concat(tableCls, "-small"), _defineProperty({
|
|
23
24
|
border: 0,
|
|
24
25
|
borderRadius: 0
|
|
@@ -57,6 +58,7 @@ var genTransferListStyle = function genTransferListStyle(token) {
|
|
|
57
58
|
itemPaddingBlock = token.itemPaddingBlock,
|
|
58
59
|
controlItemBgActive = token.controlItemBgActive,
|
|
59
60
|
colorTextDisabled = token.colorTextDisabled,
|
|
61
|
+
colorTextSecondary = token.colorTextSecondary,
|
|
60
62
|
listHeight = token.listHeight,
|
|
61
63
|
listWidth = token.listWidth,
|
|
62
64
|
listWidthLG = token.listWidthLG,
|
|
@@ -150,20 +152,12 @@ var genTransferListStyle = function genTransferListStyle(token) {
|
|
|
150
152
|
'&-text': _objectSpread(_objectSpread({}, textEllipsis), {}, {
|
|
151
153
|
flex: 'auto'
|
|
152
154
|
}),
|
|
153
|
-
'&-remove': {
|
|
154
|
-
position: 'relative',
|
|
155
|
+
'&-remove': _objectSpread(_objectSpread({}, operationUnit(token)), {}, {
|
|
155
156
|
color: colorBorder,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
'&:hover': {
|
|
159
|
-
color: token.colorLinkHover
|
|
160
|
-
},
|
|
161
|
-
'&::after': {
|
|
162
|
-
position: 'absolute',
|
|
163
|
-
inset: "-".concat(unit(itemPaddingBlock), " -50%"),
|
|
164
|
-
content: '""'
|
|
157
|
+
'&:hover, &:focus': {
|
|
158
|
+
color: colorTextSecondary
|
|
165
159
|
}
|
|
166
|
-
}
|
|
160
|
+
})
|
|
167
161
|
}, "&:not(".concat(componentCls, "-list-content-item-disabled)"), _defineProperty({
|
|
168
162
|
'&:hover': {
|
|
169
163
|
backgroundColor: controlItemBgHover,
|
|
@@ -224,15 +218,11 @@ var genTransferStyle = function genTransferStyle(token) {
|
|
|
224
218
|
flexDirection: 'column',
|
|
225
219
|
alignSelf: 'center',
|
|
226
220
|
margin: "0 ".concat(unit(marginXS)),
|
|
227
|
-
verticalAlign: 'middle'
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
'&:first-child': {
|
|
231
|
-
marginBottom: marginXXS
|
|
232
|
-
}
|
|
233
|
-
}, iconCls, {
|
|
221
|
+
verticalAlign: 'middle',
|
|
222
|
+
gap: marginXXS
|
|
223
|
+
}, "".concat(antCls, "-btn ").concat(iconCls), {
|
|
234
224
|
fontSize: fontSizeIcon
|
|
235
|
-
}))))
|
|
225
|
+
}))));
|
|
236
226
|
};
|
|
237
227
|
var genTransferRTLStyle = function genTransferRTLStyle(token) {
|
|
238
228
|
var componentCls = token.componentCls;
|
package/lib/Antd5/tree/Tree.js
CHANGED
|
@@ -34,6 +34,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
34
34
|
showIcon = _props$showIcon === void 0 ? false : _props$showIcon,
|
|
35
35
|
showLine = props.showLine,
|
|
36
36
|
switcherIcon = props.switcherIcon,
|
|
37
|
+
switcherLoadingIcon = props.switcherLoadingIcon,
|
|
37
38
|
_props$blockNode = props.blockNode,
|
|
38
39
|
blockNode = _props$blockNode === void 0 ? false : _props$blockNode,
|
|
39
40
|
children = props.children,
|
|
@@ -92,6 +93,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
92
93
|
return _jsx(SwitcherIconCom, {
|
|
93
94
|
prefixCls: prefixCls,
|
|
94
95
|
switcherIcon: switcherIcon,
|
|
96
|
+
switcherLoadingIcon: switcherLoadingIcon,
|
|
95
97
|
treeNodeProps: nodeProps,
|
|
96
98
|
showLine: showLine
|
|
97
99
|
});
|