@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
package/lib/Antd5/modal/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var _excluded = ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles"];
|
|
2
|
+
var _excluded = ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -18,6 +18,7 @@ import * as React from 'react';
|
|
|
18
18
|
import CloseOutlined from '@ant-design/icons/CloseOutlined';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
import Dialog from 'rc-dialog';
|
|
21
|
+
import ContextIsolator from '../_util/ContextIsolator';
|
|
21
22
|
import useClosable, { pickClosable } from '../_util/hooks/useClosable';
|
|
22
23
|
import { useZIndex } from '../_util/hooks/useZIndex';
|
|
23
24
|
import { getTransitionName } from '../_util/motion';
|
|
@@ -26,8 +27,7 @@ import { devUseWarning } from '../_util/warning';
|
|
|
26
27
|
import zIndexContext from '../_util/zindexContext';
|
|
27
28
|
import { ConfigContext } from '../config-provider';
|
|
28
29
|
import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
|
|
29
|
-
import
|
|
30
|
-
import { NoCompactStyle } from '../space/Compact';
|
|
30
|
+
import Skeleton from '../skeleton';
|
|
31
31
|
import { usePanelRef } from '../watermark/context';
|
|
32
32
|
import { Footer, renderCloseIcon } from './shared';
|
|
33
33
|
import useStyle from './style';
|
|
@@ -89,6 +89,8 @@ var Modal = function Modal(props) {
|
|
|
89
89
|
footer = props.footer,
|
|
90
90
|
modalClassNames = props.classNames,
|
|
91
91
|
modalStyles = props.styles,
|
|
92
|
+
children = props.children,
|
|
93
|
+
loading = props.loading,
|
|
92
94
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
93
95
|
var prefixCls = getPrefixCls('modal', customizePrefixCls);
|
|
94
96
|
var rootPrefixCls = getPrefixCls();
|
|
@@ -100,10 +102,10 @@ var Modal = function Modal(props) {
|
|
|
100
102
|
hashId = _useStyle2[1],
|
|
101
103
|
cssVarCls = _useStyle2[2];
|
|
102
104
|
var wrapClassNameExtended = classNames(wrapClassName, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-centered"), !!centered), "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'));
|
|
103
|
-
var dialogFooter = footer !== null && _jsx(Footer, _objectSpread(_objectSpread({}, props), {}, {
|
|
105
|
+
var dialogFooter = footer !== null && !loading ? _jsx(Footer, _objectSpread(_objectSpread({}, props), {}, {
|
|
104
106
|
onOk: handleOk,
|
|
105
107
|
onCancel: handleCancel
|
|
106
|
-
}));
|
|
108
|
+
})) : null;
|
|
107
109
|
var _useClosable = useClosable(pickClosable(props), pickClosable(modalContext), {
|
|
108
110
|
closable: true,
|
|
109
111
|
closeIcon: _jsx(CloseOutlined, {
|
|
@@ -113,9 +115,10 @@ var Modal = function Modal(props) {
|
|
|
113
115
|
return renderCloseIcon(prefixCls, icon);
|
|
114
116
|
}
|
|
115
117
|
}),
|
|
116
|
-
_useClosable2 = _slicedToArray(_useClosable,
|
|
118
|
+
_useClosable2 = _slicedToArray(_useClosable, 3),
|
|
117
119
|
mergedClosable = _useClosable2[0],
|
|
118
|
-
mergedCloseIcon = _useClosable2[1]
|
|
120
|
+
mergedCloseIcon = _useClosable2[1],
|
|
121
|
+
closeBtnIsDisabled = _useClosable2[2];
|
|
119
122
|
// ============================ Refs ============================
|
|
120
123
|
// Select `ant-modal-content` by `panelRef`
|
|
121
124
|
var panelRef = usePanelRef(".".concat(prefixCls, "-content"));
|
|
@@ -125,37 +128,46 @@ var Modal = function Modal(props) {
|
|
|
125
128
|
zIndex = _useZIndex2[0],
|
|
126
129
|
contextZIndex = _useZIndex2[1];
|
|
127
130
|
// =========================== Render ===========================
|
|
128
|
-
return wrapCSSVar(_jsx(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
closeIcon: mergedCloseIcon
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}))
|
|
158
|
-
|
|
131
|
+
return wrapCSSVar(_jsx(ContextIsolator, {
|
|
132
|
+
form: true,
|
|
133
|
+
space: true,
|
|
134
|
+
children: _jsx(zIndexContext.Provider, {
|
|
135
|
+
value: contextZIndex,
|
|
136
|
+
children: _jsx(Dialog, _objectSpread(_objectSpread({
|
|
137
|
+
width: width
|
|
138
|
+
}, restProps), {}, {
|
|
139
|
+
zIndex: zIndex,
|
|
140
|
+
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
141
|
+
prefixCls: prefixCls,
|
|
142
|
+
rootClassName: classNames(hashId, rootClassName, cssVarCls, rootCls),
|
|
143
|
+
footer: dialogFooter,
|
|
144
|
+
visible: open !== null && open !== void 0 ? open : visible,
|
|
145
|
+
mousePosition: (_restProps$mousePosit = restProps.mousePosition) !== null && _restProps$mousePosit !== void 0 ? _restProps$mousePosit : mousePosition,
|
|
146
|
+
onClose: handleCancel,
|
|
147
|
+
closable: mergedClosable ? {
|
|
148
|
+
disabled: closeBtnIsDisabled,
|
|
149
|
+
closeIcon: mergedCloseIcon
|
|
150
|
+
} : mergedClosable,
|
|
151
|
+
closeIcon: mergedCloseIcon,
|
|
152
|
+
focusTriggerAfterClose: focusTriggerAfterClose,
|
|
153
|
+
transitionName: getTransitionName(rootPrefixCls, 'zoom', props.transitionName),
|
|
154
|
+
maskTransitionName: getTransitionName(rootPrefixCls, 'fade', props.maskTransitionName),
|
|
155
|
+
className: classNames(hashId, className, modalContext === null || modalContext === void 0 ? void 0 : modalContext.className),
|
|
156
|
+
style: _objectSpread(_objectSpread({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.style), style),
|
|
157
|
+
classNames: _objectSpread(_objectSpread(_objectSpread({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.classNames), modalClassNames), {}, {
|
|
158
|
+
wrapper: classNames(wrapClassNameExtended, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper)
|
|
159
|
+
}),
|
|
160
|
+
styles: _objectSpread(_objectSpread({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.styles), modalStyles),
|
|
161
|
+
panelRef: panelRef,
|
|
162
|
+
children: loading ? _jsx(Skeleton, {
|
|
163
|
+
active: true,
|
|
164
|
+
title: false,
|
|
165
|
+
paragraph: {
|
|
166
|
+
rows: 4
|
|
167
|
+
},
|
|
168
|
+
className: "".concat(prefixCls, "-body-skeleton")
|
|
169
|
+
}) : children
|
|
170
|
+
}))
|
|
159
171
|
})
|
|
160
172
|
}));
|
|
161
173
|
};
|
|
@@ -14,7 +14,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
18
17
|
import * as React from 'react';
|
|
19
18
|
import classNames from 'classnames';
|
|
20
19
|
import { Panel } from 'rc-dialog';
|
|
@@ -55,7 +55,6 @@ export default function confirm(config) {
|
|
|
55
55
|
warnContext('Modal');
|
|
56
56
|
}
|
|
57
57
|
var container = document.createDocumentFragment();
|
|
58
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
59
58
|
var currentConfig = _objectSpread(_objectSpread({}, config), {}, {
|
|
60
59
|
close: close,
|
|
61
60
|
open: true
|
|
@@ -66,14 +65,14 @@ export default function confirm(config) {
|
|
|
66
65
|
args[_key] = arguments[_key];
|
|
67
66
|
}
|
|
68
67
|
var triggerCancel = args.some(function (param) {
|
|
69
|
-
return param
|
|
68
|
+
return param === null || param === void 0 ? void 0 : param.triggerCancel;
|
|
70
69
|
});
|
|
71
|
-
if (
|
|
72
|
-
|
|
70
|
+
if (triggerCancel) {
|
|
71
|
+
var _config$onCancel;
|
|
72
|
+
(_config$onCancel = config.onCancel) === null || _config$onCancel === void 0 || _config$onCancel.call.apply(_config$onCancel, [config, function () {}].concat(_toConsumableArray(args.slice(1))));
|
|
73
73
|
}
|
|
74
74
|
for (var i = 0; i < destroyFns.length; i++) {
|
|
75
75
|
var fn = destroyFns[i];
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
77
76
|
if (fn === close) {
|
|
78
77
|
destroyFns.splice(i, 1);
|
|
79
78
|
break;
|
|
@@ -9,7 +9,6 @@ import { unit } from '@ant-design/cssinjs';
|
|
|
9
9
|
import { prepareComponentToken, prepareToken } from '.';
|
|
10
10
|
import { clearFix } from '../../style';
|
|
11
11
|
import { genSubStyleComponent } from '../../theme/internal';
|
|
12
|
-
import customStyle from '../../../Modal/confirmGlobalStyle';
|
|
13
12
|
// ============================= Confirm ==============================
|
|
14
13
|
var genModalConfirmStyle = function genModalConfirmStyle(token) {
|
|
15
14
|
var componentCls = token.componentCls,
|
|
@@ -76,7 +75,7 @@ var genModalConfirmStyle = function genModalConfirmStyle(token) {
|
|
|
76
75
|
// ============================== Export ==============================
|
|
77
76
|
export default genSubStyleComponent(['Modal', 'confirm'], function (token) {
|
|
78
77
|
var modalToken = prepareToken(token);
|
|
79
|
-
return [genModalConfirmStyle(modalToken)
|
|
78
|
+
return [genModalConfirmStyle(modalToken)];
|
|
80
79
|
}, prepareComponentToken, {
|
|
81
80
|
// confirm is weak than modal since no conflict here
|
|
82
81
|
order: -1000
|
|
@@ -112,11 +112,14 @@ var genModalStyle = function genModalStyle(token) {
|
|
|
112
112
|
display: 'flex',
|
|
113
113
|
fontSize: token.fontSizeLG,
|
|
114
114
|
fontStyle: 'normal',
|
|
115
|
-
lineHeight:
|
|
115
|
+
lineHeight: unit(token.modalCloseBtnSize),
|
|
116
116
|
justifyContent: 'center',
|
|
117
117
|
textTransform: 'none',
|
|
118
118
|
textRendering: 'auto'
|
|
119
119
|
},
|
|
120
|
+
'&:disabled': {
|
|
121
|
+
pointerEvents: 'none'
|
|
122
|
+
},
|
|
120
123
|
'&:hover': {
|
|
121
124
|
color: token.modalCloseIconHoverColor,
|
|
122
125
|
backgroundColor: token.colorBgTextHover,
|
|
@@ -132,12 +135,19 @@ var genModalStyle = function genModalStyle(token) {
|
|
|
132
135
|
marginBottom: token.headerMarginBottom,
|
|
133
136
|
padding: token.headerPadding,
|
|
134
137
|
borderBottom: token.headerBorderBottom
|
|
135
|
-
}), "".concat(componentCls, "-body"), {
|
|
138
|
+
}), "".concat(componentCls, "-body"), _defineProperty({
|
|
136
139
|
fontSize: token.fontSize,
|
|
137
140
|
lineHeight: token.lineHeight,
|
|
138
141
|
wordWrap: 'break-word',
|
|
139
142
|
padding: token.bodyPadding
|
|
140
|
-
}
|
|
143
|
+
}, "".concat(componentCls, "-body-skeleton"), {
|
|
144
|
+
width: '100%',
|
|
145
|
+
height: '100%',
|
|
146
|
+
display: 'flex',
|
|
147
|
+
justifyContent: 'center',
|
|
148
|
+
alignItems: 'center',
|
|
149
|
+
margin: "".concat(unit(token.margin), " auto")
|
|
150
|
+
})), "".concat(componentCls, "-footer"), _defineProperty({
|
|
141
151
|
textAlign: 'end',
|
|
142
152
|
background: token.footerBg,
|
|
143
153
|
marginTop: token.footerMarginTop,
|
|
@@ -52,10 +52,11 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
52
52
|
args[_key] = arguments[_key];
|
|
53
53
|
}
|
|
54
54
|
var triggerCancel = args.some(function (param) {
|
|
55
|
-
return param
|
|
55
|
+
return param === null || param === void 0 ? void 0 : param.triggerCancel;
|
|
56
56
|
});
|
|
57
|
-
if (
|
|
58
|
-
|
|
57
|
+
if (triggerCancel) {
|
|
58
|
+
var _innerConfig$onCancel;
|
|
59
|
+
(_innerConfig$onCancel = innerConfig.onCancel) === null || _innerConfig$onCancel === void 0 || _innerConfig$onCancel.call.apply(_innerConfig$onCancel, [innerConfig, function () {}].concat(_toConsumableArray(args.slice(1))));
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
React.useImperativeHandle(ref, function () {
|
|
@@ -29,7 +29,9 @@ function getGlobalContext() {
|
|
|
29
29
|
rtl = _defaultGlobalConfig.rtl,
|
|
30
30
|
maxCount = _defaultGlobalConfig.maxCount,
|
|
31
31
|
top = _defaultGlobalConfig.top,
|
|
32
|
-
bottom = _defaultGlobalConfig.bottom
|
|
32
|
+
bottom = _defaultGlobalConfig.bottom,
|
|
33
|
+
showProgress = _defaultGlobalConfig.showProgress,
|
|
34
|
+
pauseOnHover = _defaultGlobalConfig.pauseOnHover;
|
|
33
35
|
var mergedContainer = (getContainer === null || getContainer === void 0 ? void 0 : getContainer()) || document.body;
|
|
34
36
|
return {
|
|
35
37
|
getContainer: function getContainer() {
|
|
@@ -38,7 +40,9 @@ function getGlobalContext() {
|
|
|
38
40
|
rtl: rtl,
|
|
39
41
|
maxCount: maxCount,
|
|
40
42
|
top: top,
|
|
41
|
-
bottom: bottom
|
|
43
|
+
bottom: bottom,
|
|
44
|
+
showProgress: showProgress,
|
|
45
|
+
pauseOnHover: pauseOnHover
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
var GlobalHolder = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -127,7 +131,6 @@ function flushNotice() {
|
|
|
127
131
|
}
|
|
128
132
|
// >>> Execute task
|
|
129
133
|
taskQueue.forEach(function (task) {
|
|
130
|
-
// eslint-disable-next-line default-case
|
|
131
134
|
switch (task.type) {
|
|
132
135
|
case 'open':
|
|
133
136
|
{
|
|
@@ -25,13 +25,15 @@ export var genNoticeStyle = function genNoticeStyle(token) {
|
|
|
25
25
|
notificationBg = token.notificationBg,
|
|
26
26
|
notificationPadding = token.notificationPadding,
|
|
27
27
|
notificationMarginEdge = token.notificationMarginEdge,
|
|
28
|
+
notificationProgressBg = token.notificationProgressBg,
|
|
29
|
+
notificationProgressHeight = token.notificationProgressHeight,
|
|
28
30
|
fontSize = token.fontSize,
|
|
29
31
|
lineHeight = token.lineHeight,
|
|
30
32
|
width = token.width,
|
|
31
33
|
notificationIconSize = token.notificationIconSize,
|
|
32
34
|
colorText = token.colorText;
|
|
33
35
|
var noticeCls = "".concat(componentCls, "-notice");
|
|
34
|
-
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
36
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
35
37
|
position: 'relative',
|
|
36
38
|
marginBottom: notificationMarginBottom,
|
|
37
39
|
marginInlineStart: 'auto',
|
|
@@ -94,7 +96,35 @@ export var genNoticeStyle = function genNoticeStyle(token) {
|
|
|
94
96
|
'&:active': {
|
|
95
97
|
backgroundColor: token.colorBgTextActive
|
|
96
98
|
}
|
|
97
|
-
}, genFocusStyle(token))), "".concat(noticeCls, "-
|
|
99
|
+
}, genFocusStyle(token))), "".concat(noticeCls, "-progress"), {
|
|
100
|
+
position: 'absolute',
|
|
101
|
+
display: 'block',
|
|
102
|
+
appearance: 'none',
|
|
103
|
+
WebkitAppearance: 'none',
|
|
104
|
+
inlineSize: "calc(100% - ".concat(unit(borderRadiusLG), " * 2)"),
|
|
105
|
+
left: {
|
|
106
|
+
_skip_check_: true,
|
|
107
|
+
value: borderRadiusLG
|
|
108
|
+
},
|
|
109
|
+
right: {
|
|
110
|
+
_skip_check_: true,
|
|
111
|
+
value: borderRadiusLG
|
|
112
|
+
},
|
|
113
|
+
bottom: 0,
|
|
114
|
+
blockSize: notificationProgressHeight,
|
|
115
|
+
border: 0,
|
|
116
|
+
'&, &::-webkit-progress-bar': {
|
|
117
|
+
borderRadius: borderRadiusLG,
|
|
118
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
119
|
+
},
|
|
120
|
+
'&::-moz-progress-bar': {
|
|
121
|
+
background: notificationProgressBg
|
|
122
|
+
},
|
|
123
|
+
'&::-webkit-progress-value': {
|
|
124
|
+
borderRadius: borderRadiusLG,
|
|
125
|
+
background: notificationProgressBg
|
|
126
|
+
}
|
|
127
|
+
}), "".concat(noticeCls, "-btn"), {
|
|
98
128
|
"float": 'right',
|
|
99
129
|
marginTop: token.marginSM
|
|
100
130
|
});
|
|
@@ -174,7 +204,9 @@ export var prepareNotificationToken = function prepareNotificationToken(token) {
|
|
|
174
204
|
notificationPadding: "".concat(unit(token.paddingMD), " ").concat(unit(token.paddingContentHorizontalLG)),
|
|
175
205
|
notificationMarginEdge: token.marginLG,
|
|
176
206
|
animationMaxHeight: 150,
|
|
177
|
-
notificationStackLayer: 3
|
|
207
|
+
notificationStackLayer: 3,
|
|
208
|
+
notificationProgressHeight: 2,
|
|
209
|
+
notificationProgressBg: "linear-gradient(90deg, ".concat(token.colorPrimaryBorderHover, ", ").concat(token.colorPrimary, ")")
|
|
178
210
|
});
|
|
179
211
|
return notificationToken;
|
|
180
212
|
};
|
|
@@ -60,7 +60,10 @@ var Holder = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
60
60
|
rtl = props.rtl,
|
|
61
61
|
onAllRemoved = props.onAllRemoved,
|
|
62
62
|
stack = props.stack,
|
|
63
|
-
duration = props.duration
|
|
63
|
+
duration = props.duration,
|
|
64
|
+
_props$pauseOnHover = props.pauseOnHover,
|
|
65
|
+
pauseOnHover = _props$pauseOnHover === void 0 ? true : _props$pauseOnHover,
|
|
66
|
+
showProgress = props.showProgress;
|
|
64
67
|
var _useContext = useContext(ConfigContext),
|
|
65
68
|
getPrefixCls = _useContext.getPrefixCls,
|
|
66
69
|
getPopupContainer = _useContext.getPopupContainer,
|
|
@@ -94,6 +97,8 @@ var Holder = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
94
97
|
return (staticGetContainer === null || staticGetContainer === void 0 ? void 0 : staticGetContainer()) || (getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer()) || document.body;
|
|
95
98
|
},
|
|
96
99
|
maxCount: maxCount,
|
|
100
|
+
pauseOnHover: pauseOnHover,
|
|
101
|
+
showProgress: showProgress,
|
|
97
102
|
onAllRemoved: onAllRemoved,
|
|
98
103
|
renderNotifications: renderNotifications,
|
|
99
104
|
stack: stack === false ? false : {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var _excluded = ["prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "selectComponentClass", "responsive", "showSizeChanger"];
|
|
2
|
+
var _excluded = ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "selectComponentClass", "responsive", "showSizeChanger"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -31,7 +31,8 @@ import { MiddleSelect, MiniSelect } from './Select';
|
|
|
31
31
|
import useStyle from './style';
|
|
32
32
|
import BorderedStyle from './style/bordered';
|
|
33
33
|
var Pagination = function Pagination(props) {
|
|
34
|
-
var
|
|
34
|
+
var align = props.align,
|
|
35
|
+
customizePrefixCls = props.prefixCls,
|
|
35
36
|
customizeSelectPrefixCls = props.selectPrefixCls,
|
|
36
37
|
className = props.className,
|
|
37
38
|
rootClassName = props.rootClassName,
|
|
@@ -77,7 +78,9 @@ var Pagination = function Pagination(props) {
|
|
|
77
78
|
tabIndex: -1,
|
|
78
79
|
children: direction === 'rtl' ? _jsx(LeftOutlined, {}) : _jsx(RightOutlined, {})
|
|
79
80
|
});
|
|
80
|
-
var jumpPrevIcon =
|
|
81
|
+
var jumpPrevIcon =
|
|
82
|
+
// biome-ignore lint/a11y/useValidAnchor: it is hard to refactor
|
|
83
|
+
_jsx("a", {
|
|
81
84
|
className: "".concat(prefixCls, "-item-link"),
|
|
82
85
|
children: _jsxs("div", {
|
|
83
86
|
className: "".concat(prefixCls, "-item-container"),
|
|
@@ -88,7 +91,9 @@ var Pagination = function Pagination(props) {
|
|
|
88
91
|
}), ellipsis]
|
|
89
92
|
})
|
|
90
93
|
});
|
|
91
|
-
var jumpNextIcon =
|
|
94
|
+
var jumpNextIcon =
|
|
95
|
+
// biome-ignore lint/a11y/useValidAnchor: it is hard to refactor
|
|
96
|
+
_jsx("a", {
|
|
92
97
|
className: "".concat(prefixCls, "-item-link"),
|
|
93
98
|
children: _jsxs("div", {
|
|
94
99
|
className: "".concat(prefixCls, "-item-container"),
|
|
@@ -113,7 +118,7 @@ var Pagination = function Pagination(props) {
|
|
|
113
118
|
var mergedSize = useSize(customizeSize);
|
|
114
119
|
var isSmall = mergedSize === 'small' || !!(xs && !mergedSize && responsive);
|
|
115
120
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
116
|
-
var extendedClassName = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-mini"), isSmall), "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-bordered"), token.wireframe), pagination === null || pagination === void 0 ? void 0 : pagination.className, className, rootClassName, hashId, cssVarCls);
|
|
121
|
+
var extendedClassName = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(align), !!align), "".concat(prefixCls, "-mini"), isSmall), "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-bordered"), token.wireframe), pagination === null || pagination === void 0 ? void 0 : pagination.className, className, rootClassName, hashId, cssVarCls);
|
|
117
122
|
var mergedStyle = _objectSpread(_objectSpread({}, pagination === null || pagination === void 0 ? void 0 : pagination.style), style);
|
|
118
123
|
return wrapCSSVar(_jsxs(_Fragment, {
|
|
119
124
|
children: [token.wireframe && _jsx(BorderedStyle, {
|
|
@@ -14,17 +14,17 @@ var BehaviorPattern = function BehaviorPattern() {
|
|
|
14
14
|
id: '200000005',
|
|
15
15
|
label: '调整单页展示条数',
|
|
16
16
|
targetType: 'extension',
|
|
17
|
-
link: '
|
|
17
|
+
link: 'pagination-index-tab-design-demo-page-size'
|
|
18
18
|
}, {
|
|
19
19
|
id: '200000006',
|
|
20
20
|
label: '快速跳转',
|
|
21
21
|
targetType: 'extension',
|
|
22
|
-
link: '
|
|
22
|
+
link: 'pagination-index-tab-design-demo-quick-jump'
|
|
23
23
|
}, {
|
|
24
24
|
id: '200000007',
|
|
25
25
|
label: '了解数据总量',
|
|
26
26
|
targetType: 'extension',
|
|
27
|
-
link: '
|
|
27
|
+
link: 'pagination-index-tab-design-demo-total'
|
|
28
28
|
}]
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -4,7 +4,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
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
5
|
import { unit } from '@ant-design/cssinjs';
|
|
6
6
|
import { prepareComponentToken, prepareToken } from '.';
|
|
7
|
-
import { genSubStyleComponent } from '../../theme/
|
|
7
|
+
import { genSubStyleComponent } from '../../theme/internal';
|
|
8
8
|
var genBorderedStyle = function genBorderedStyle(token) {
|
|
9
9
|
var componentCls = token.componentCls;
|
|
10
10
|
return _defineProperty(_defineProperty({}, "".concat(componentCls).concat(componentCls, "-bordered").concat(componentCls, "-disabled:not(").concat(componentCls, "-mini)"), _defineProperty(_defineProperty({
|
|
@@ -111,18 +111,20 @@ var genPaginationMiniStyle = function genPaginationMiniStyle(token) {
|
|
|
111
111
|
height: token.itemSizeSM,
|
|
112
112
|
marginInlineEnd: 0,
|
|
113
113
|
lineHeight: unit(token.itemSizeSM)
|
|
114
|
-
}), "&".concat(componentCls, "-mini ").concat(componentCls, "-options"),
|
|
115
|
-
marginInlineStart: token.paginationMiniOptionsMarginInlineStart
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
}), "&".concat(componentCls, "-mini ").concat(componentCls, "-options"), {
|
|
115
|
+
marginInlineStart: token.paginationMiniOptionsMarginInlineStart,
|
|
116
|
+
'&-size-changer': {
|
|
117
|
+
top: token.miniOptionsSizeChangerTop
|
|
118
|
+
},
|
|
119
|
+
'&-quick-jumper': {
|
|
120
|
+
height: token.itemSizeSM,
|
|
121
|
+
lineHeight: unit(token.itemSizeSM),
|
|
122
|
+
input: _objectSpread(_objectSpread({}, genInputSmallStyle(token)), {}, {
|
|
123
|
+
width: token.paginationMiniQuickJumperInputWidth,
|
|
124
|
+
height: token.controlHeightSM
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
});
|
|
126
128
|
};
|
|
127
129
|
var genPaginationSimpleStyle = function genPaginationSimpleStyle(token) {
|
|
128
130
|
var componentCls = token.componentCls;
|
|
@@ -151,7 +153,6 @@ var genPaginationSimpleStyle = function genPaginationSimpleStyle(token) {
|
|
|
151
153
|
input: {
|
|
152
154
|
boxSizing: 'border-box',
|
|
153
155
|
height: '100%',
|
|
154
|
-
marginInlineEnd: token.marginXS,
|
|
155
156
|
padding: "0 ".concat(unit(token.paginationItemPaddingInline)),
|
|
156
157
|
textAlign: 'center',
|
|
157
158
|
backgroundColor: token.itemInputBg,
|
|
@@ -203,7 +204,6 @@ var genPaginationJumpStyle = function genPaginationJumpStyle(token) {
|
|
|
203
204
|
display: 'block',
|
|
204
205
|
margin: 'auto',
|
|
205
206
|
color: token.colorTextDisabled,
|
|
206
|
-
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
207
207
|
letterSpacing: token.paginationEllipsisLetterSpacing,
|
|
208
208
|
textAlign: 'center',
|
|
209
209
|
textIndent: token.paginationEllipsisTextIndent,
|
|
@@ -221,7 +221,7 @@ var genPaginationJumpStyle = function genPaginationJumpStyle(token) {
|
|
|
221
221
|
height: token.itemSize,
|
|
222
222
|
color: token.colorText,
|
|
223
223
|
fontFamily: token.fontFamily,
|
|
224
|
-
lineHeight:
|
|
224
|
+
lineHeight: unit(token.itemSize),
|
|
225
225
|
textAlign: 'center',
|
|
226
226
|
verticalAlign: 'middle',
|
|
227
227
|
listStyle: 'none',
|
|
@@ -229,7 +229,6 @@ var genPaginationJumpStyle = function genPaginationJumpStyle(token) {
|
|
|
229
229
|
cursor: 'pointer',
|
|
230
230
|
transition: "all ".concat(token.motionDurationMid)
|
|
231
231
|
}), "".concat(componentCls, "-prev, ").concat(componentCls, "-next"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
232
|
-
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
233
232
|
outline: 0,
|
|
234
233
|
button: {
|
|
235
234
|
color: token.colorText,
|
|
@@ -300,7 +299,7 @@ var genPaginationItemStyle = function genPaginationItemStyle(token) {
|
|
|
300
299
|
textAlign: 'center',
|
|
301
300
|
verticalAlign: 'middle',
|
|
302
301
|
listStyle: 'none',
|
|
303
|
-
backgroundColor:
|
|
302
|
+
backgroundColor: token.itemBg,
|
|
304
303
|
border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " transparent"),
|
|
305
304
|
borderRadius: token.borderRadius,
|
|
306
305
|
outline: 0,
|
|
@@ -340,6 +339,16 @@ var genPaginationItemStyle = function genPaginationItemStyle(token) {
|
|
|
340
339
|
var genPaginationStyle = function genPaginationStyle(token) {
|
|
341
340
|
var componentCls = token.componentCls;
|
|
342
341
|
return _defineProperty(_defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty({
|
|
342
|
+
display: 'flex',
|
|
343
|
+
'&-start': {
|
|
344
|
+
justifyContent: 'start'
|
|
345
|
+
},
|
|
346
|
+
'&-center': {
|
|
347
|
+
justifyContent: 'center'
|
|
348
|
+
},
|
|
349
|
+
'&-end': {
|
|
350
|
+
justifyContent: 'end'
|
|
351
|
+
},
|
|
343
352
|
'ul, ol': {
|
|
344
353
|
margin: 0,
|
|
345
354
|
padding: 0,
|
|
@@ -399,7 +408,7 @@ export var prepareToken = function prepareToken(token) {
|
|
|
399
408
|
paginationMiniQuickJumperInputWidth: token.calc(token.controlHeightLG).mul(1.1).equal(),
|
|
400
409
|
paginationItemPaddingInline: token.calc(token.marginXXS).mul(1.5).equal(),
|
|
401
410
|
paginationEllipsisLetterSpacing: token.calc(token.marginXXS).div(2).equal(),
|
|
402
|
-
paginationSlashMarginInlineStart: token.
|
|
411
|
+
paginationSlashMarginInlineStart: token.marginSM,
|
|
403
412
|
paginationSlashMarginInlineEnd: token.marginSM,
|
|
404
413
|
paginationEllipsisTextIndent: '0.13em' // magic for ui experience
|
|
405
414
|
}, initInputToken(token));
|
|
@@ -49,8 +49,8 @@ export var Overlay = function Overlay(props) {
|
|
|
49
49
|
var _useLocale = useLocale('Popconfirm', defaultLocale.Popconfirm),
|
|
50
50
|
_useLocale2 = _slicedToArray(_useLocale, 1),
|
|
51
51
|
contextLocale = _useLocale2[0];
|
|
52
|
-
var
|
|
53
|
-
var
|
|
52
|
+
var titleNode = getRenderPropValue(title);
|
|
53
|
+
var descriptionNode = getRenderPropValue(description);
|
|
54
54
|
return _jsxs("div", {
|
|
55
55
|
className: "".concat(prefixCls, "-inner-content"),
|
|
56
56
|
onClick: onPopupClick,
|
|
@@ -61,12 +61,12 @@ export var Overlay = function Overlay(props) {
|
|
|
61
61
|
children: icon
|
|
62
62
|
}), _jsxs("div", {
|
|
63
63
|
className: "".concat(prefixCls, "-message-text"),
|
|
64
|
-
children: [
|
|
65
|
-
className:
|
|
66
|
-
children:
|
|
67
|
-
}),
|
|
64
|
+
children: [titleNode && _jsx("div", {
|
|
65
|
+
className: "".concat(prefixCls, "-title"),
|
|
66
|
+
children: titleNode
|
|
67
|
+
}), descriptionNode && _jsx("div", {
|
|
68
68
|
className: "".concat(prefixCls, "-description"),
|
|
69
|
-
children:
|
|
69
|
+
children: descriptionNode
|
|
70
70
|
})]
|
|
71
71
|
})]
|
|
72
72
|
}), _jsxs("div", {
|
|
@@ -20,17 +20,20 @@ import { Popup } from 'rc-tooltip';
|
|
|
20
20
|
import { getRenderPropValue } from '../_util/getRenderPropValue';
|
|
21
21
|
import { ConfigContext } from '../config-provider';
|
|
22
22
|
import useStyle from './style';
|
|
23
|
-
export var
|
|
23
|
+
export var Overlay = function Overlay(_ref) {
|
|
24
|
+
var title = _ref.title,
|
|
25
|
+
content = _ref.content,
|
|
26
|
+
prefixCls = _ref.prefixCls;
|
|
24
27
|
if (!title && !content) {
|
|
25
28
|
return null;
|
|
26
29
|
}
|
|
27
30
|
return _jsxs(_Fragment, {
|
|
28
31
|
children: [title && _jsx("div", {
|
|
29
32
|
className: "".concat(prefixCls, "-title"),
|
|
30
|
-
children:
|
|
31
|
-
}), _jsx("div", {
|
|
33
|
+
children: title
|
|
34
|
+
}), content && _jsx("div", {
|
|
32
35
|
className: "".concat(prefixCls, "-inner-content"),
|
|
33
|
-
children:
|
|
36
|
+
children: content
|
|
34
37
|
})]
|
|
35
38
|
});
|
|
36
39
|
};
|
|
@@ -44,15 +47,22 @@ export var RawPurePanel = function RawPurePanel(props) {
|
|
|
44
47
|
title = props.title,
|
|
45
48
|
content = props.content,
|
|
46
49
|
children = props.children;
|
|
50
|
+
var titleNode = getRenderPropValue(title);
|
|
51
|
+
var contentNode = getRenderPropValue(content);
|
|
52
|
+
var cls = classNames(hashId, prefixCls, "".concat(prefixCls, "-pure"), "".concat(prefixCls, "-placement-").concat(placement), className);
|
|
47
53
|
return _jsxs("div", {
|
|
48
|
-
className:
|
|
54
|
+
className: cls,
|
|
49
55
|
style: style,
|
|
50
56
|
children: [_jsx("div", {
|
|
51
57
|
className: "".concat(prefixCls, "-arrow")
|
|
52
58
|
}), _jsx(Popup, _objectSpread(_objectSpread({}, props), {}, {
|
|
53
59
|
className: hashId,
|
|
54
60
|
prefixCls: prefixCls,
|
|
55
|
-
children: children ||
|
|
61
|
+
children: children || _jsx(Overlay, {
|
|
62
|
+
prefixCls: prefixCls,
|
|
63
|
+
title: titleNode,
|
|
64
|
+
content: contentNode
|
|
65
|
+
})
|
|
56
66
|
}))]
|
|
57
67
|
});
|
|
58
68
|
};
|