@swiftcrab/crab 0.0.4 → 0.0.5
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/README.md +1 -143
- package/package.json +7 -4
- package/es/_util/ActionButton.d.ts +0 -19
- package/es/_util/ActionButton.js +0 -47
- package/es/_util/ContextIsolator.d.ts +0 -3
- package/es/_util/ContextIsolator.js +0 -40
- package/es/_util/PurePanel.d.ts +0 -9
- package/es/_util/PurePanel.js +0 -40
- package/es/_util/aria-data-attrs.d.ts +0 -4
- package/es/_util/aria-data-attrs.js +0 -0
- package/es/_util/capitalize.d.ts +0 -1
- package/es/_util/capitalize.js +0 -1
- package/es/_util/colors.d.ts +0 -13
- package/es/_util/colors.js +0 -1
- package/es/_util/easings.d.ts +0 -1
- package/es/_util/easings.js +0 -1
- package/es/_util/extendsObject.d.ts +0 -3
- package/es/_util/extendsObject.js +0 -1
- package/es/_util/gapSize.d.ts +0 -3
- package/es/_util/gapSize.js +0 -1
- package/es/_util/getAllowClear.d.ts +0 -4
- package/es/_util/getAllowClear.js +0 -1
- package/es/_util/getRenderPropValue.d.ts +0 -3
- package/es/_util/getRenderPropValue.js +0 -1
- package/es/_util/getScroll.d.ts +0 -3
- package/es/_util/getScroll.js +0 -1
- package/es/_util/hooks/useClosable.d.ts +0 -31
- package/es/_util/hooks/useClosable.js +0 -1
- package/es/_util/hooks/useForceUpdate.d.ts +0 -2
- package/es/_util/hooks/useForceUpdate.js +0 -1
- package/es/_util/hooks/useMultipleSelect.d.ts +0 -6
- package/es/_util/hooks/useMultipleSelect.js +0 -1
- package/es/_util/hooks/usePatchElement.d.ts +0 -5
- package/es/_util/hooks/usePatchElement.js +0 -1
- package/es/_util/hooks/useProxyImperativeHandle.d.ts +0 -4
- package/es/_util/hooks/useProxyImperativeHandle.js +0 -1
- package/es/_util/hooks/useSyncState.d.ts +0 -3
- package/es/_util/hooks/useSyncState.js +0 -1
- package/es/_util/hooks/useUniqueMemo.d.ts +0 -6
- package/es/_util/hooks/useUniqueMemo.js +0 -1
- package/es/_util/hooks/useZIndex.d.ts +0 -8
- package/es/_util/hooks/useZIndex.js +0 -35
- package/es/_util/isNumeric.d.ts +0 -2
- package/es/_util/isNumeric.js +0 -1
- package/es/_util/isPrimitive.d.ts +0 -2
- package/es/_util/isPrimitive.js +0 -1
- package/es/_util/motion.d.ts +0 -7
- package/es/_util/motion.js +0 -40
- package/es/_util/placements.d.ts +0 -21
- package/es/_util/placements.js +0 -1
- package/es/_util/reactNode.d.ts +0 -7
- package/es/_util/reactNode.js +0 -1
- package/es/_util/responsiveObserver.d.ts +0 -22
- package/es/_util/responsiveObserver.js +0 -35
- package/es/_util/scrollTo.d.ts +0 -10
- package/es/_util/scrollTo.js +0 -1
- package/es/_util/statusUtils.d.ts +0 -6
- package/es/_util/statusUtils.js +0 -1
- package/es/_util/styleChecker.d.ts +0 -3
- package/es/_util/styleChecker.js +0 -1
- package/es/_util/throttleByAnimationFrame.d.ts +0 -5
- package/es/_util/throttleByAnimationFrame.js +0 -1
- package/es/_util/toList.d.ts +0 -1
- package/es/_util/toList.js +0 -1
- package/es/_util/transKeys.d.ts +0 -3
- package/es/_util/transKeys.js +0 -1
- package/es/_util/type.d.ts +0 -54
- package/es/_util/type.js +0 -0
- package/es/_util/warning.d.ts +0 -31
- package/es/_util/warning.js +0 -1
- package/es/_util/wave/WaveEffect.d.ts +0 -10
- package/es/_util/wave/WaveEffect.js +0 -40
- package/es/_util/wave/index.d.ts +0 -9
- package/es/_util/wave/index.js +0 -40
- package/es/_util/wave/interface.d.ts +0 -11
- package/es/_util/wave/interface.js +0 -40
- package/es/_util/wave/style.d.ts +0 -7
- package/es/_util/wave/style.js +0 -35
- package/es/_util/wave/useWave.d.ts +0 -4
- package/es/_util/wave/useWave.js +0 -40
- package/es/_util/wave/util.d.ts +0 -2
- package/es/_util/wave/util.js +0 -1
- package/es/_util/zindexContext.d.ts +0 -3
- package/es/_util/zindexContext.js +0 -1
- package/es/affix/index.d.ts +0 -22
- package/es/affix/index.js +0 -40
- package/es/affix/style/index.d.ts +0 -11
- package/es/affix/style/index.js +0 -35
- package/es/affix/utils.d.ts +0 -4
- package/es/affix/utils.js +0 -1
- package/es/alert/Alert.d.ts +0 -42
- package/es/alert/Alert.js +0 -42
- package/es/alert/ErrorBoundary.d.ts +0 -24
- package/es/alert/ErrorBoundary.js +0 -42
- package/es/alert/index.d.ts +0 -8
- package/es/alert/index.js +0 -42
- package/es/alert/style/index.d.ts +0 -26
- package/es/alert/style/index.js +0 -37
- package/es/anchor/Anchor.d.ts +0 -59
- package/es/anchor/Anchor.js +0 -40
- package/es/anchor/AnchorLink.d.ts +0 -14
- package/es/anchor/AnchorLink.js +0 -40
- package/es/anchor/context.d.ts +0 -4
- package/es/anchor/context.js +0 -1
- package/es/anchor/index.d.ts +0 -10
- package/es/anchor/index.js +0 -40
- package/es/anchor/style/index.d.ts +0 -16
- package/es/anchor/style/index.js +0 -35
- package/es/app/context.d.ts +0 -16
- package/es/app/context.js +0 -1
- package/es/app/index.d.ts +0 -16
- package/es/app/index.js +0 -76
- package/es/app/style/index.d.ts +0 -6
- package/es/app/style/index.js +0 -35
- package/es/auto-complete/index.d.ts +0 -28
- package/es/auto-complete/index.js +0 -78
- package/es/avatar/AvatarContext.d.ts +0 -9
- package/es/avatar/AvatarContext.js +0 -1
- package/es/avatar/avatar.d.ts +0 -26
- package/es/avatar/avatar.js +0 -40
- package/es/avatar/group.d.ts +0 -27
- package/es/avatar/group.js +0 -49
- package/es/avatar/index.d.ts +0 -10
- package/es/avatar/index.js +0 -49
- package/es/avatar/style/index.d.ts +0 -51
- package/es/avatar/style/index.js +0 -35
- package/es/badge/Ribbon.d.ts +0 -16
- package/es/badge/Ribbon.js +0 -40
- package/es/badge/ScrollNumber.d.ts +0 -18
- package/es/badge/ScrollNumber.js +0 -40
- package/es/badge/SingleNumber.d.ts +0 -14
- package/es/badge/SingleNumber.js +0 -1
- package/es/badge/index.d.ts +0 -41
- package/es/badge/index.js +0 -40
- package/es/badge/style/index.d.ts +0 -104
- package/es/badge/style/index.js +0 -35
- package/es/badge/style/ribbon.d.ts +0 -2
- package/es/badge/style/ribbon.js +0 -35
- package/es/breadcrumb/Breadcrumb.d.ts +0 -58
- package/es/breadcrumb/Breadcrumb.js +0 -87
- package/es/breadcrumb/BreadcrumbItem.d.ts +0 -31
- package/es/breadcrumb/BreadcrumbItem.js +0 -83
- package/es/breadcrumb/BreadcrumbSeparator.d.ts +0 -4
- package/es/breadcrumb/BreadcrumbSeparator.js +0 -40
- package/es/breadcrumb/index.d.ts +0 -4
- package/es/breadcrumb/index.js +0 -87
- package/es/breadcrumb/style/index.d.ts +0 -41
- package/es/breadcrumb/style/index.js +0 -38
- package/es/breadcrumb/useItemRender.d.ts +0 -8
- package/es/breadcrumb/useItemRender.js +0 -1
- package/es/breadcrumb/useItems.d.ts +0 -6
- package/es/breadcrumb/useItems.js +0 -1
- package/es/button/IconWrapper.d.ts +0 -9
- package/es/button/IconWrapper.js +0 -1
- package/es/button/LoadingIcon.d.ts +0 -11
- package/es/button/LoadingIcon.js +0 -1
- package/es/button/button-group.d.ts +0 -12
- package/es/button/button-group.js +0 -40
- package/es/button/button.d.ts +0 -44
- package/es/button/button.js +0 -47
- package/es/button/buttonHelpers.d.ts +0 -18
- package/es/button/buttonHelpers.js +0 -1
- package/es/button/index.d.ts +0 -6
- package/es/button/index.js +0 -47
- package/es/button/style/compact.d.ts +0 -2
- package/es/button/style/compact.js +0 -47
- package/es/button/style/group.d.ts +0 -4
- package/es/button/style/group.js +0 -1
- package/es/button/style/index.d.ts +0 -4
- package/es/button/style/index.js +0 -47
- package/es/button/style/token.d.ts +0 -233
- package/es/button/style/token.js +0 -47
- package/es/calendar/Header.d.ts +0 -17
- package/es/calendar/Header.js +0 -79
- package/es/calendar/generateCalendar.d.ts +0 -44
- package/es/calendar/generateCalendar.js +0 -118
- package/es/calendar/index.d.ts +0 -10
- package/es/calendar/index.js +0 -118
- package/es/calendar/locale/ar_EG.d.ts +0 -2
- package/es/calendar/locale/ar_EG.js +0 -1
- package/es/calendar/locale/az_AZ.d.ts +0 -2
- package/es/calendar/locale/az_AZ.js +0 -1
- package/es/calendar/locale/bg_BG.d.ts +0 -2
- package/es/calendar/locale/bg_BG.js +0 -1
- package/es/calendar/locale/bn_BD.d.ts +0 -2
- package/es/calendar/locale/bn_BD.js +0 -1
- package/es/calendar/locale/by_BY.d.ts +0 -2
- package/es/calendar/locale/by_BY.js +0 -1
- package/es/calendar/locale/ca_ES.d.ts +0 -2
- package/es/calendar/locale/ca_ES.js +0 -1
- package/es/calendar/locale/cs_CZ.d.ts +0 -2
- package/es/calendar/locale/cs_CZ.js +0 -1
- package/es/calendar/locale/da_DK.d.ts +0 -2
- package/es/calendar/locale/da_DK.js +0 -1
- package/es/calendar/locale/de_DE.d.ts +0 -2
- package/es/calendar/locale/de_DE.js +0 -1
- package/es/calendar/locale/el_GR.d.ts +0 -2
- package/es/calendar/locale/el_GR.js +0 -1
- package/es/calendar/locale/en_GB.d.ts +0 -2
- package/es/calendar/locale/en_GB.js +0 -1
- package/es/calendar/locale/en_US.d.ts +0 -2
- package/es/calendar/locale/en_US.js +0 -1
- package/es/calendar/locale/es_ES.d.ts +0 -2
- package/es/calendar/locale/es_ES.js +0 -1
- package/es/calendar/locale/et_EE.d.ts +0 -2
- package/es/calendar/locale/et_EE.js +0 -1
- package/es/calendar/locale/eu_ES.d.ts +0 -2
- package/es/calendar/locale/eu_ES.js +0 -1
- package/es/calendar/locale/fa_IR.d.ts +0 -2
- package/es/calendar/locale/fa_IR.js +0 -1
- package/es/calendar/locale/fi_FI.d.ts +0 -2
- package/es/calendar/locale/fi_FI.js +0 -1
- package/es/calendar/locale/fr_BE.d.ts +0 -2
- package/es/calendar/locale/fr_BE.js +0 -1
- package/es/calendar/locale/fr_CA.d.ts +0 -2
- package/es/calendar/locale/fr_CA.js +0 -1
- package/es/calendar/locale/fr_FR.d.ts +0 -2
- package/es/calendar/locale/fr_FR.js +0 -1
- package/es/calendar/locale/ga_IE.d.ts +0 -2
- package/es/calendar/locale/ga_IE.js +0 -1
- package/es/calendar/locale/gl_ES.d.ts +0 -2
- package/es/calendar/locale/gl_ES.js +0 -1
- package/es/calendar/locale/he_IL.d.ts +0 -2
- package/es/calendar/locale/he_IL.js +0 -1
- package/es/calendar/locale/hi_IN.d.ts +0 -2
- package/es/calendar/locale/hi_IN.js +0 -1
- package/es/calendar/locale/hr_HR.d.ts +0 -2
- package/es/calendar/locale/hr_HR.js +0 -1
- package/es/calendar/locale/hu_HU.d.ts +0 -2
- package/es/calendar/locale/hu_HU.js +0 -1
- package/es/calendar/locale/id_ID.d.ts +0 -2
- package/es/calendar/locale/id_ID.js +0 -1
- package/es/calendar/locale/is_IS.d.ts +0 -2
- package/es/calendar/locale/is_IS.js +0 -1
- package/es/calendar/locale/it_IT.d.ts +0 -2
- package/es/calendar/locale/it_IT.js +0 -1
- package/es/calendar/locale/ja_JP.d.ts +0 -2
- package/es/calendar/locale/ja_JP.js +0 -1
- package/es/calendar/locale/ka_GE.d.ts +0 -2
- package/es/calendar/locale/ka_GE.js +0 -1
- package/es/calendar/locale/kk_KZ.d.ts +0 -2
- package/es/calendar/locale/kk_KZ.js +0 -1
- package/es/calendar/locale/km_KH.d.ts +0 -2
- package/es/calendar/locale/km_KH.js +0 -1
- package/es/calendar/locale/kmr_IQ.d.ts +0 -2
- package/es/calendar/locale/kmr_IQ.js +0 -1
- package/es/calendar/locale/kn_IN.d.ts +0 -2
- package/es/calendar/locale/kn_IN.js +0 -1
- package/es/calendar/locale/ko_KR.d.ts +0 -2
- package/es/calendar/locale/ko_KR.js +0 -1
- package/es/calendar/locale/lt_LT.d.ts +0 -2
- package/es/calendar/locale/lt_LT.js +0 -1
- package/es/calendar/locale/lv_LV.d.ts +0 -2
- package/es/calendar/locale/lv_LV.js +0 -1
- package/es/calendar/locale/mk_MK.d.ts +0 -2
- package/es/calendar/locale/mk_MK.js +0 -1
- package/es/calendar/locale/ml_IN.d.ts +0 -2
- package/es/calendar/locale/ml_IN.js +0 -1
- package/es/calendar/locale/mn_MN.d.ts +0 -2
- package/es/calendar/locale/mn_MN.js +0 -1
- package/es/calendar/locale/ms_MY.d.ts +0 -2
- package/es/calendar/locale/ms_MY.js +0 -1
- package/es/calendar/locale/my_MM.d.ts +0 -2
- package/es/calendar/locale/my_MM.js +0 -1
- package/es/calendar/locale/nb_NO.d.ts +0 -2
- package/es/calendar/locale/nb_NO.js +0 -1
- package/es/calendar/locale/nl_BE.d.ts +0 -2
- package/es/calendar/locale/nl_BE.js +0 -1
- package/es/calendar/locale/nl_NL.d.ts +0 -2
- package/es/calendar/locale/nl_NL.js +0 -1
- package/es/calendar/locale/pl_PL.d.ts +0 -2
- package/es/calendar/locale/pl_PL.js +0 -1
- package/es/calendar/locale/pt_BR.d.ts +0 -2
- package/es/calendar/locale/pt_BR.js +0 -1
- package/es/calendar/locale/pt_PT.d.ts +0 -2
- package/es/calendar/locale/pt_PT.js +0 -1
- package/es/calendar/locale/ro_RO.d.ts +0 -2
- package/es/calendar/locale/ro_RO.js +0 -1
- package/es/calendar/locale/ru_RU.d.ts +0 -2
- package/es/calendar/locale/ru_RU.js +0 -1
- package/es/calendar/locale/si_LK.d.ts +0 -2
- package/es/calendar/locale/si_LK.js +0 -1
- package/es/calendar/locale/sk_SK.d.ts +0 -2
- package/es/calendar/locale/sk_SK.js +0 -1
- package/es/calendar/locale/sl_SI.d.ts +0 -2
- package/es/calendar/locale/sl_SI.js +0 -1
- package/es/calendar/locale/sr_RS.d.ts +0 -2
- package/es/calendar/locale/sr_RS.js +0 -1
- package/es/calendar/locale/sv_SE.d.ts +0 -2
- package/es/calendar/locale/sv_SE.js +0 -1
- package/es/calendar/locale/ta_IN.d.ts +0 -2
- package/es/calendar/locale/ta_IN.js +0 -1
- package/es/calendar/locale/th_TH.d.ts +0 -2
- package/es/calendar/locale/th_TH.js +0 -1
- package/es/calendar/locale/tk_TK.d.ts +0 -2
- package/es/calendar/locale/tk_TK.js +0 -1
- package/es/calendar/locale/tr_TR.d.ts +0 -2
- package/es/calendar/locale/tr_TR.js +0 -1
- package/es/calendar/locale/uk_UA.d.ts +0 -2
- package/es/calendar/locale/uk_UA.js +0 -1
- package/es/calendar/locale/ur_PK.d.ts +0 -2
- package/es/calendar/locale/ur_PK.js +0 -1
- package/es/calendar/locale/uz_UZ.d.ts +0 -2
- package/es/calendar/locale/uz_UZ.js +0 -1
- package/es/calendar/locale/vi_VN.d.ts +0 -2
- package/es/calendar/locale/vi_VN.js +0 -1
- package/es/calendar/locale/zh_CN.d.ts +0 -2
- package/es/calendar/locale/zh_CN.js +0 -1
- package/es/calendar/locale/zh_TW.d.ts +0 -2
- package/es/calendar/locale/zh_TW.js +0 -1
- package/es/calendar/style/index.d.ts +0 -61
- package/es/calendar/style/index.js +0 -86
- package/es/calendar-panel/index.d.ts +0 -7
- package/es/calendar-panel/index.js +0 -40
- package/es/calendar-panel/style/index.d.ts +0 -4
- package/es/calendar-panel/style/index.js +0 -35
- package/es/calendar-panel/style/style.d.ts +0 -1
- package/es/calendar-panel/style/style.js +0 -639
- package/es/calendar-panel/types.d.ts +0 -158
- package/es/calendar-panel/types.js +0 -0
- package/es/calendar-panel/utils.d.ts +0 -39
- package/es/calendar-panel/utils.js +0 -1
- package/es/card/Card.d.ts +0 -56
- package/es/card/Card.js +0 -67
- package/es/card/Grid.d.ts +0 -9
- package/es/card/Grid.js +0 -40
- package/es/card/Meta.d.ts +0 -11
- package/es/card/Meta.js +0 -40
- package/es/card/index.d.ts +0 -13
- package/es/card/index.js +0 -67
- package/es/card/style/index.d.ts +0 -51
- package/es/card/style/index.js +0 -44
- package/es/carousel/index.d.ts +0 -27
- package/es/carousel/index.js +0 -40
- package/es/carousel/style/index.d.ts +0 -43
- package/es/carousel/style/index.js +0 -35
- package/es/cascader/Panel.d.ts +0 -12
- package/es/cascader/Panel.js +0 -49
- package/es/cascader/hooks/useBase.d.ts +0 -8
- package/es/cascader/hooks/useBase.js +0 -40
- package/es/cascader/hooks/useCheckable.d.ts +0 -2
- package/es/cascader/hooks/useCheckable.js +0 -1
- package/es/cascader/hooks/useColumnIcons.d.ts +0 -3
- package/es/cascader/hooks/useColumnIcons.js +0 -1
- package/es/cascader/index.d.ts +0 -55
- package/es/cascader/index.js +0 -87
- package/es/cascader/style/columns.d.ts +0 -4
- package/es/cascader/style/columns.js +0 -44
- package/es/cascader/style/index.d.ts +0 -51
- package/es/cascader/style/index.js +0 -44
- package/es/cascader/style/panel.d.ts +0 -2
- package/es/cascader/style/panel.js +0 -44
- package/es/checkbox/Checkbox.d.ts +0 -43
- package/es/checkbox/Checkbox.js +0 -46
- package/es/checkbox/Group.d.ts +0 -32
- package/es/checkbox/Group.js +0 -46
- package/es/checkbox/GroupContext.d.ts +0 -12
- package/es/checkbox/GroupContext.js +0 -1
- package/es/checkbox/index.d.ts +0 -11
- package/es/checkbox/index.js +0 -46
- package/es/checkbox/style/index.d.ts +0 -23
- package/es/checkbox/style/index.js +0 -41
- package/es/checkbox/useBubbleLock.d.ts +0 -7
- package/es/checkbox/useBubbleLock.js +0 -1
- package/es/clap-overflow/index.d.ts +0 -19
- package/es/clap-overflow/index.js +0 -40
- package/es/clap-overflow/style/index.d.ts +0 -16
- package/es/clap-overflow/style/index.js +0 -35
- package/es/col/index.d.ts +0 -4
- package/es/col/index.js +0 -40
- package/es/col/style/index.d.ts +0 -2
- package/es/col/style/index.js +0 -1
- package/es/collapse/Collapse.d.ts +0 -45
- package/es/collapse/Collapse.js +0 -47
- package/es/collapse/CollapsePanel.d.ts +0 -19
- package/es/collapse/CollapsePanel.js +0 -40
- package/es/collapse/index.d.ts +0 -4
- package/es/collapse/index.js +0 -47
- package/es/collapse/style/index.d.ts +0 -46
- package/es/collapse/style/index.js +0 -42
- package/es/color-picker/ColorPicker.d.ts +0 -8
- package/es/color-picker/ColorPicker.js +0 -130
- package/es/color-picker/ColorPickerPanel.d.ts +0 -9
- package/es/color-picker/ColorPickerPanel.js +0 -130
- package/es/color-picker/color.d.ts +0 -34
- package/es/color-picker/color.js +0 -1
- package/es/color-picker/components/ColorAlphaInput.d.ts +0 -9
- package/es/color-picker/components/ColorAlphaInput.js +0 -70
- package/es/color-picker/components/ColorClear.d.ts +0 -9
- package/es/color-picker/components/ColorClear.js +0 -1
- package/es/color-picker/components/ColorHexInput.d.ts +0 -9
- package/es/color-picker/components/ColorHexInput.js +0 -65
- package/es/color-picker/components/ColorHsbInput.d.ts +0 -9
- package/es/color-picker/components/ColorHsbInput.js +0 -70
- package/es/color-picker/components/ColorInput.d.ts +0 -14
- package/es/color-picker/components/ColorInput.js +0 -115
- package/es/color-picker/components/ColorPresets.d.ts +0 -12
- package/es/color-picker/components/ColorPresets.js +0 -47
- package/es/color-picker/components/ColorRgbInput.d.ts +0 -9
- package/es/color-picker/components/ColorRgbInput.js +0 -70
- package/es/color-picker/components/ColorSlider.d.ts +0 -20
- package/es/color-picker/components/ColorSlider.js +0 -61
- package/es/color-picker/components/ColorSteppers.d.ts +0 -15
- package/es/color-picker/components/ColorSteppers.js +0 -70
- package/es/color-picker/components/ColorTrigger.d.ts +0 -20
- package/es/color-picker/components/ColorTrigger.js +0 -1
- package/es/color-picker/components/PanelPicker/GradientColorBar.d.ts +0 -8
- package/es/color-picker/components/PanelPicker/GradientColorBar.js +0 -61
- package/es/color-picker/components/PanelPicker/index.d.ts +0 -3
- package/es/color-picker/components/PanelPicker/index.js +0 -130
- package/es/color-picker/components/PanelPresets.d.ts +0 -3
- package/es/color-picker/components/PanelPresets.js +0 -47
- package/es/color-picker/context.d.ts +0 -38
- package/es/color-picker/context.js +0 -1
- package/es/color-picker/hooks/useModeColor.d.ts +0 -17
- package/es/color-picker/hooks/useModeColor.js +0 -1
- package/es/color-picker/index.d.ts +0 -4
- package/es/color-picker/index.js +0 -130
- package/es/color-picker/interface.d.ts +0 -73
- package/es/color-picker/interface.js +0 -1
- package/es/color-picker/style/color-block.d.ts +0 -8
- package/es/color-picker/style/color-block.js +0 -1
- package/es/color-picker/style/index.d.ts +0 -62
- package/es/color-picker/style/index.js +0 -35
- package/es/color-picker/style/input.d.ts +0 -5
- package/es/color-picker/style/input.js +0 -1
- package/es/color-picker/style/picker.d.ts +0 -5
- package/es/color-picker/style/picker.js +0 -1
- package/es/color-picker/style/presets.d.ts +0 -5
- package/es/color-picker/style/presets.js +0 -1
- package/es/color-picker/style/slider.d.ts +0 -5
- package/es/color-picker/style/slider.js +0 -1
- package/es/color-picker/util.d.ts +0 -15
- package/es/color-picker/util.js +0 -1
- package/es/config-provider/DisabledContext.d.ts +0 -8
- package/es/config-provider/DisabledContext.js +0 -1
- package/es/config-provider/MotionWrapper.d.ts +0 -5
- package/es/config-provider/MotionWrapper.js +0 -35
- package/es/config-provider/PropWarning.d.ts +0 -6
- package/es/config-provider/PropWarning.js +0 -1
- package/es/config-provider/SizeContext.d.ts +0 -9
- package/es/config-provider/SizeContext.js +0 -1
- package/es/config-provider/UnstableContext.d.ts +0 -10
- package/es/config-provider/UnstableContext.js +0 -1
- package/es/config-provider/context.d.ts +0 -248
- package/es/config-provider/context.js +0 -1
- package/es/config-provider/cssVariables.d.ts +0 -3
- package/es/config-provider/cssVariables.js +0 -6
- package/es/config-provider/defaultRenderEmpty.d.ts +0 -8
- package/es/config-provider/defaultRenderEmpty.js +0 -41
- package/es/config-provider/hooks/useCSSVarCls.d.ts +0 -7
- package/es/config-provider/hooks/useCSSVarCls.js +0 -35
- package/es/config-provider/hooks/useConfig.d.ts +0 -5
- package/es/config-provider/hooks/useConfig.js +0 -1
- package/es/config-provider/hooks/useSize.d.ts +0 -3
- package/es/config-provider/hooks/useSize.js +0 -1
- package/es/config-provider/hooks/useTheme.d.ts +0 -4
- package/es/config-provider/hooks/useTheme.js +0 -35
- package/es/config-provider/hooks/useThemeKey.d.ts +0 -3
- package/es/config-provider/hooks/useThemeKey.js +0 -1
- package/es/config-provider/index.d.ts +0 -139
- package/es/config-provider/index.js +0 -40
- package/es/config-provider/style/index.d.ts +0 -1
- package/es/config-provider/style/index.js +0 -35
- package/es/copy/index.d.ts +0 -13
- package/es/copy/index.js +0 -1
- package/es/date-picker/PickerButton.d.ts +0 -4
- package/es/date-picker/PickerButton.js +0 -47
- package/es/date-picker/generatePicker/constant.d.ts +0 -5
- package/es/date-picker/generatePicker/constant.js +0 -1
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +0 -17
- package/es/date-picker/generatePicker/generateRangePicker.js +0 -98
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +0 -25
- package/es/date-picker/generatePicker/generateSinglePicker.js +0 -98
- package/es/date-picker/generatePicker/index.d.ts +0 -36
- package/es/date-picker/generatePicker/index.js +0 -98
- package/es/date-picker/generatePicker/interface.d.ts +0 -72
- package/es/date-picker/generatePicker/interface.js +0 -0
- package/es/date-picker/generatePicker/useComponents.d.ts +0 -13
- package/es/date-picker/generatePicker/useComponents.js +0 -47
- package/es/date-picker/index.d.ts +0 -48
- package/es/date-picker/index.js +0 -98
- package/es/date-picker/locale/ar_EG.d.ts +0 -3
- package/es/date-picker/locale/ar_EG.js +0 -1
- package/es/date-picker/locale/az_AZ.d.ts +0 -3
- package/es/date-picker/locale/az_AZ.js +0 -1
- package/es/date-picker/locale/bg_BG.d.ts +0 -3
- package/es/date-picker/locale/bg_BG.js +0 -1
- package/es/date-picker/locale/bn_BD.d.ts +0 -3
- package/es/date-picker/locale/bn_BD.js +0 -1
- package/es/date-picker/locale/by_BY.d.ts +0 -3
- package/es/date-picker/locale/by_BY.js +0 -1
- package/es/date-picker/locale/ca_ES.d.ts +0 -3
- package/es/date-picker/locale/ca_ES.js +0 -1
- package/es/date-picker/locale/cs_CZ.d.ts +0 -3
- package/es/date-picker/locale/cs_CZ.js +0 -1
- package/es/date-picker/locale/da_DK.d.ts +0 -3
- package/es/date-picker/locale/da_DK.js +0 -1
- package/es/date-picker/locale/de_DE.d.ts +0 -3
- package/es/date-picker/locale/de_DE.js +0 -1
- package/es/date-picker/locale/el_GR.d.ts +0 -3
- package/es/date-picker/locale/el_GR.js +0 -1
- package/es/date-picker/locale/en_GB.d.ts +0 -3
- package/es/date-picker/locale/en_GB.js +0 -1
- package/es/date-picker/locale/en_US.d.ts +0 -3
- package/es/date-picker/locale/en_US.js +0 -1
- package/es/date-picker/locale/es_ES.d.ts +0 -3
- package/es/date-picker/locale/es_ES.js +0 -1
- package/es/date-picker/locale/et_EE.d.ts +0 -3
- package/es/date-picker/locale/et_EE.js +0 -1
- package/es/date-picker/locale/eu_ES.d.ts +0 -3
- package/es/date-picker/locale/eu_ES.js +0 -1
- package/es/date-picker/locale/fa_IR.d.ts +0 -3
- package/es/date-picker/locale/fa_IR.js +0 -1
- package/es/date-picker/locale/fi_FI.d.ts +0 -3
- package/es/date-picker/locale/fi_FI.js +0 -1
- package/es/date-picker/locale/fr_BE.d.ts +0 -3
- package/es/date-picker/locale/fr_BE.js +0 -1
- package/es/date-picker/locale/fr_CA.d.ts +0 -3
- package/es/date-picker/locale/fr_CA.js +0 -1
- package/es/date-picker/locale/fr_FR.d.ts +0 -3
- package/es/date-picker/locale/fr_FR.js +0 -1
- package/es/date-picker/locale/ga_IE.d.ts +0 -3
- package/es/date-picker/locale/ga_IE.js +0 -1
- package/es/date-picker/locale/gl_ES.d.ts +0 -3
- package/es/date-picker/locale/gl_ES.js +0 -1
- package/es/date-picker/locale/he_IL.d.ts +0 -3
- package/es/date-picker/locale/he_IL.js +0 -1
- package/es/date-picker/locale/hi_IN.d.ts +0 -3
- package/es/date-picker/locale/hi_IN.js +0 -1
- package/es/date-picker/locale/hr_HR.d.ts +0 -3
- package/es/date-picker/locale/hr_HR.js +0 -1
- package/es/date-picker/locale/hu_HU.d.ts +0 -3
- package/es/date-picker/locale/hu_HU.js +0 -1
- package/es/date-picker/locale/id_ID.d.ts +0 -3
- package/es/date-picker/locale/id_ID.js +0 -1
- package/es/date-picker/locale/is_IS.d.ts +0 -3
- package/es/date-picker/locale/is_IS.js +0 -1
- package/es/date-picker/locale/it_IT.d.ts +0 -3
- package/es/date-picker/locale/it_IT.js +0 -1
- package/es/date-picker/locale/ja_JP.d.ts +0 -3
- package/es/date-picker/locale/ja_JP.js +0 -1
- package/es/date-picker/locale/ka_GE.d.ts +0 -3
- package/es/date-picker/locale/ka_GE.js +0 -1
- package/es/date-picker/locale/kk_KZ.d.ts +0 -3
- package/es/date-picker/locale/kk_KZ.js +0 -1
- package/es/date-picker/locale/km_KH.d.ts +0 -3
- package/es/date-picker/locale/km_KH.js +0 -1
- package/es/date-picker/locale/kmr_IQ.d.ts +0 -3
- package/es/date-picker/locale/kmr_IQ.js +0 -1
- package/es/date-picker/locale/kn_IN.d.ts +0 -3
- package/es/date-picker/locale/kn_IN.js +0 -1
- package/es/date-picker/locale/ko_KR.d.ts +0 -3
- package/es/date-picker/locale/ko_KR.js +0 -1
- package/es/date-picker/locale/lt_LT.d.ts +0 -3
- package/es/date-picker/locale/lt_LT.js +0 -1
- package/es/date-picker/locale/lv_LV.d.ts +0 -3
- package/es/date-picker/locale/lv_LV.js +0 -1
- package/es/date-picker/locale/mk_MK.d.ts +0 -3
- package/es/date-picker/locale/mk_MK.js +0 -1
- package/es/date-picker/locale/ml_IN.d.ts +0 -3
- package/es/date-picker/locale/ml_IN.js +0 -1
- package/es/date-picker/locale/mn_MN.d.ts +0 -3
- package/es/date-picker/locale/mn_MN.js +0 -1
- package/es/date-picker/locale/ms_MY.d.ts +0 -3
- package/es/date-picker/locale/ms_MY.js +0 -1
- package/es/date-picker/locale/my_MM.d.ts +0 -3
- package/es/date-picker/locale/my_MM.js +0 -1
- package/es/date-picker/locale/nb_NO.d.ts +0 -3
- package/es/date-picker/locale/nb_NO.js +0 -1
- package/es/date-picker/locale/nl_BE.d.ts +0 -3
- package/es/date-picker/locale/nl_BE.js +0 -1
- package/es/date-picker/locale/nl_NL.d.ts +0 -3
- package/es/date-picker/locale/nl_NL.js +0 -1
- package/es/date-picker/locale/pl_PL.d.ts +0 -3
- package/es/date-picker/locale/pl_PL.js +0 -1
- package/es/date-picker/locale/pt_BR.d.ts +0 -3
- package/es/date-picker/locale/pt_BR.js +0 -1
- package/es/date-picker/locale/pt_PT.d.ts +0 -3
- package/es/date-picker/locale/pt_PT.js +0 -1
- package/es/date-picker/locale/ro_RO.d.ts +0 -3
- package/es/date-picker/locale/ro_RO.js +0 -1
- package/es/date-picker/locale/ru_RU.d.ts +0 -4
- package/es/date-picker/locale/ru_RU.js +0 -1
- package/es/date-picker/locale/si_LK.d.ts +0 -3
- package/es/date-picker/locale/si_LK.js +0 -1
- package/es/date-picker/locale/sk_SK.d.ts +0 -3
- package/es/date-picker/locale/sk_SK.js +0 -1
- package/es/date-picker/locale/sl_SI.d.ts +0 -3
- package/es/date-picker/locale/sl_SI.js +0 -1
- package/es/date-picker/locale/sr_RS.d.ts +0 -3
- package/es/date-picker/locale/sr_RS.js +0 -1
- package/es/date-picker/locale/sv_SE.d.ts +0 -3
- package/es/date-picker/locale/sv_SE.js +0 -1
- package/es/date-picker/locale/ta_IN.d.ts +0 -3
- package/es/date-picker/locale/ta_IN.js +0 -1
- package/es/date-picker/locale/th_TH.d.ts +0 -3
- package/es/date-picker/locale/th_TH.js +0 -1
- package/es/date-picker/locale/tk_TK.d.ts +0 -3
- package/es/date-picker/locale/tk_TK.js +0 -1
- package/es/date-picker/locale/tr_TR.d.ts +0 -3
- package/es/date-picker/locale/tr_TR.js +0 -1
- package/es/date-picker/locale/uk_UA.d.ts +0 -3
- package/es/date-picker/locale/uk_UA.js +0 -1
- package/es/date-picker/locale/ur_PK.d.ts +0 -3
- package/es/date-picker/locale/ur_PK.js +0 -1
- package/es/date-picker/locale/uz_UZ.d.ts +0 -3
- package/es/date-picker/locale/uz_UZ.js +0 -1
- package/es/date-picker/locale/vi_VN.d.ts +0 -3
- package/es/date-picker/locale/vi_VN.js +0 -1
- package/es/date-picker/locale/zh_CN.d.ts +0 -3
- package/es/date-picker/locale/zh_CN.js +0 -1
- package/es/date-picker/locale/zh_TW.d.ts +0 -3
- package/es/date-picker/locale/zh_TW.js +0 -1
- package/es/date-picker/style/index.d.ts +0 -7
- package/es/date-picker/style/index.js +0 -86
- package/es/date-picker/style/multiple.d.ts +0 -4
- package/es/date-picker/style/multiple.js +0 -35
- package/es/date-picker/style/panel.d.ts +0 -6
- package/es/date-picker/style/panel.js +0 -12
- package/es/date-picker/style/token.d.ts +0 -103
- package/es/date-picker/style/token.js +0 -35
- package/es/date-picker/style/variants.d.ts +0 -4
- package/es/date-picker/style/variants.js +0 -35
- package/es/date-picker/util.d.ts +0 -8
- package/es/date-picker/util.js +0 -1
- package/es/descriptions/Cell.d.ts +0 -17
- package/es/descriptions/Cell.js +0 -1
- package/es/descriptions/DescriptionsContext.d.ts +0 -7
- package/es/descriptions/DescriptionsContext.js +0 -1
- package/es/descriptions/Item.d.ts +0 -13
- package/es/descriptions/Item.js +0 -1
- package/es/descriptions/Row.d.ts +0 -13
- package/es/descriptions/Row.js +0 -1
- package/es/descriptions/constant.d.ts +0 -3
- package/es/descriptions/constant.js +0 -1
- package/es/descriptions/hooks/useItems.d.ts +0 -4
- package/es/descriptions/hooks/useItems.js +0 -35
- package/es/descriptions/hooks/useRow.d.ts +0 -3
- package/es/descriptions/hooks/useRow.js +0 -1
- package/es/descriptions/index.d.ts +0 -42
- package/es/descriptions/index.js +0 -40
- package/es/descriptions/style/index.d.ts +0 -52
- package/es/descriptions/style/index.js +0 -35
- package/es/divider/index.d.ts +0 -20
- package/es/divider/index.js +0 -40
- package/es/divider/style/index.d.ts +0 -23
- package/es/divider/style/index.js +0 -35
- package/es/drag/SortableBoard.d.ts +0 -4
- package/es/drag/SortableBoard.js +0 -1
- package/es/drag/SortableBoardProvider.d.ts +0 -14
- package/es/drag/SortableBoardProvider.js +0 -1
- package/es/drag/SortableList.d.ts +0 -8
- package/es/drag/SortableList.js +0 -1
- package/es/drag/SortableZone.d.ts +0 -7
- package/es/drag/SortableZone.js +0 -1
- package/es/drag/SortableZoneShared.d.ts +0 -36
- package/es/drag/SortableZoneShared.js +0 -1
- package/es/drag/index.d.ts +0 -12
- package/es/drag/index.js +0 -1
- package/es/drag/type.d.ts +0 -362
- package/es/drag/type.js +0 -0
- package/es/drawer/DrawerPanel.d.ts +0 -49
- package/es/drawer/DrawerPanel.js +0 -54
- package/es/drawer/index.d.ts +0 -34
- package/es/drawer/index.js +0 -54
- package/es/drawer/style/index.d.ts +0 -23
- package/es/drawer/style/index.js +0 -35
- package/es/drawer/style/motion.d.ts +0 -4
- package/es/drawer/style/motion.js +0 -1
- package/es/dropdown/dropdown-button.d.ts +0 -21
- package/es/dropdown/dropdown-button.js +0 -88
- package/es/dropdown/dropdown.d.ts +0 -50
- package/es/dropdown/dropdown.js +0 -83
- package/es/dropdown/index.d.ts +0 -8
- package/es/dropdown/index.js +0 -88
- package/es/dropdown/style/index.d.ts +0 -40
- package/es/dropdown/style/index.js +0 -64
- package/es/dropdown/style/status.d.ts +0 -4
- package/es/dropdown/style/status.js +0 -1
- package/es/empty/empty.d.ts +0 -3
- package/es/empty/empty.js +0 -36
- package/es/empty/index.d.ts +0 -21
- package/es/empty/index.js +0 -41
- package/es/empty/simple.d.ts +0 -3
- package/es/empty/simple.js +0 -36
- package/es/empty/style/index.d.ts +0 -5
- package/es/empty/style/index.js +0 -35
- package/es/flex/index.d.ts +0 -4
- package/es/flex/index.js +0 -40
- package/es/flex/interface.d.ts +0 -15
- package/es/flex/interface.js +0 -0
- package/es/flex/style/index.d.ts +0 -30
- package/es/flex/style/index.js +0 -35
- package/es/flex/utils.d.ts +0 -6
- package/es/flex/utils.js +0 -1
- package/es/form/ErrorList.d.ts +0 -13
- package/es/form/ErrorList.js +0 -50
- package/es/form/Form.d.ts +0 -43
- package/es/form/Form.js +0 -50
- package/es/form/FormItem/ItemHolder.d.ts +0 -18
- package/es/form/FormItem/ItemHolder.js +0 -59
- package/es/form/FormItem/StatusProvider.d.ts +0 -16
- package/es/form/FormItem/StatusProvider.js +0 -1
- package/es/form/FormItem/index.d.ts +0 -46
- package/es/form/FormItem/index.js +0 -59
- package/es/form/FormItemInput.d.ts +0 -22
- package/es/form/FormItemInput.js +0 -50
- package/es/form/FormItemLabel.d.ts +0 -22
- package/es/form/FormItemLabel.js +0 -49
- package/es/form/FormList.d.ts +0 -25
- package/es/form/FormList.js +0 -40
- package/es/form/context.d.ts +0 -52
- package/es/form/context.js +0 -1
- package/es/form/hooks/useChildren.d.ts +0 -2
- package/es/form/hooks/useChildren.js +0 -1
- package/es/form/hooks/useDebounce.d.ts +0 -1
- package/es/form/hooks/useDebounce.js +0 -1
- package/es/form/hooks/useForm.d.ts +0 -8
- package/es/form/hooks/useForm.js +0 -1
- package/es/form/hooks/useFormInstance.d.ts +0 -2
- package/es/form/hooks/useFormInstance.js +0 -1
- package/es/form/hooks/useFormItemStatus.d.ts +0 -9
- package/es/form/hooks/useFormItemStatus.js +0 -1
- package/es/form/hooks/useFormWarning.d.ts +0 -2
- package/es/form/hooks/useFormWarning.js +0 -1
- package/es/form/hooks/useFrameState.d.ts +0 -3
- package/es/form/hooks/useFrameState.js +0 -1
- package/es/form/hooks/useItemRef.d.ts +0 -3
- package/es/form/hooks/useItemRef.js +0 -1
- package/es/form/hooks/useVariants.d.ts +0 -7
- package/es/form/hooks/useVariants.js +0 -40
- package/es/form/index.d.ts +0 -26
- package/es/form/index.js +0 -59
- package/es/form/interface.d.ts +0 -3
- package/es/form/interface.js +0 -0
- package/es/form/style/explain.d.ts +0 -4
- package/es/form/style/explain.js +0 -3
- package/es/form/style/fallbackCmp.d.ts +0 -6
- package/es/form/style/fallbackCmp.js +0 -45
- package/es/form/style/index.d.ts +0 -74
- package/es/form/style/index.js +0 -45
- package/es/form/util.d.ts +0 -9
- package/es/form/util.js +0 -1
- package/es/form/validateMessagesContext.d.ts +0 -3
- package/es/form/validateMessagesContext.js +0 -1
- package/es/form-area/ValidateTooltip.d.ts +0 -12
- package/es/form-area/ValidateTooltip.js +0 -353
- package/es/form-area/index.d.ts +0 -4
- package/es/form-area/index.js +0 -353
- package/es/form-area/renderItemMap.d.ts +0 -45
- package/es/form-area/renderItemMap.js +0 -353
- package/es/form-area/type.d.ts +0 -160
- package/es/form-area/type.js +0 -0
- package/es/gantt/index.d.ts +0 -4
- package/es/gantt/index.js +0 -101
- package/es/gantt/style/index.d.ts +0 -4
- package/es/gantt/style/index.js +0 -35
- package/es/gantt/style/style.d.ts +0 -1
- package/es/gantt/style/style.js +0 -372
- package/es/gantt/type.d.ts +0 -138
- package/es/gantt/type.js +0 -0
- package/es/gantt/utils.d.ts +0 -36
- package/es/gantt/utils.js +0 -1
- package/es/grid/RowContext.d.ts +0 -6
- package/es/grid/RowContext.js +0 -1
- package/es/grid/col.d.ts +0 -29
- package/es/grid/col.js +0 -40
- package/es/grid/hooks/useBreakpoint.d.ts +0 -3
- package/es/grid/hooks/useBreakpoint.js +0 -35
- package/es/grid/index.d.ts +0 -10
- package/es/grid/index.js +0 -40
- package/es/grid/row.d.ts +0 -20
- package/es/grid/row.js +0 -40
- package/es/grid/style/index.d.ts +0 -7
- package/es/grid/style/index.js +0 -35
- package/es/hooks/index.d.ts +0 -5
- package/es/hooks/index.js +0 -353
- package/es/hooks/useDrawer.d.ts +0 -10
- package/es/hooks/useDrawer.js +0 -1
- package/es/hooks/useForm.d.ts +0 -15
- package/es/hooks/useForm.js +0 -353
- package/es/hooks/useModal.d.ts +0 -10
- package/es/hooks/useModal.js +0 -1
- package/es/hooks/useParsedHash.d.ts +0 -7
- package/es/hooks/useParsedHash.js +0 -1
- package/es/hooks/useUrlState.d.ts +0 -9
- package/es/hooks/useUrlState.js +0 -1
- package/es/hour-panel/index.d.ts +0 -4
- package/es/hour-panel/index.js +0 -99
- package/es/hour-panel/style/index.d.ts +0 -12
- package/es/hour-panel/style/index.js +0 -35
- package/es/hour-panel/style/style.d.ts +0 -1
- package/es/hour-panel/style/style.js +0 -351
- package/es/hour-panel/types.d.ts +0 -145
- package/es/hour-panel/types.js +0 -1
- package/es/hour-panel/utils.d.ts +0 -31
- package/es/hour-panel/utils.js +0 -1
- package/es/icon/index.d.ts +0 -2
- package/es/icon/index.js +0 -1
- package/es/image/PreviewGroup.d.ts +0 -15
- package/es/image/PreviewGroup.js +0 -54
- package/es/image/index.d.ts +0 -9
- package/es/image/index.js +0 -54
- package/es/image/style/index.d.ts +0 -59
- package/es/image/style/index.js +0 -49
- package/es/index.d.ts +0 -161
- package/es/index.js +0 -356
- package/es/input/Group.d.ts +0 -15
- package/es/input/Group.js +0 -58
- package/es/input/Input.d.ts +0 -25
- package/es/input/Input.js +0 -58
- package/es/input/OTP/OTPInput.d.ts +0 -11
- package/es/input/OTP/OTPInput.js +0 -58
- package/es/input/OTP/index.d.ts +0 -29
- package/es/input/OTP/index.js +0 -58
- package/es/input/Password.d.ts +0 -14
- package/es/input/Password.js +0 -58
- package/es/input/Search.d.ts +0 -12
- package/es/input/Search.js +0 -65
- package/es/input/TextArea.d.ts +0 -25
- package/es/input/TextArea.js +0 -58
- package/es/input/hooks/useRemovePasswordTimeout.d.ts +0 -2
- package/es/input/hooks/useRemovePasswordTimeout.js +0 -1
- package/es/input/index.d.ts +0 -20
- package/es/input/index.js +0 -65
- package/es/input/style/index.d.ts +0 -17
- package/es/input/style/index.js +0 -53
- package/es/input/style/otp.d.ts +0 -2
- package/es/input/style/otp.js +0 -35
- package/es/input/style/token.d.ts +0 -97
- package/es/input/style/token.js +0 -35
- package/es/input/style/variants.d.ts +0 -15
- package/es/input/style/variants.js +0 -35
- package/es/input/utils.d.ts +0 -8
- package/es/input/utils.js +0 -1
- package/es/input-number/index.d.ts +0 -34
- package/es/input-number/index.js +0 -70
- package/es/input-number/style/index.d.ts +0 -18
- package/es/input-number/style/index.js +0 -65
- package/es/input-number/style/token.d.ts +0 -52
- package/es/input-number/style/token.js +0 -35
- package/es/layout/Sider.d.ts +0 -28
- package/es/layout/Sider.js +0 -40
- package/es/layout/context.d.ts +0 -8
- package/es/layout/context.js +0 -1
- package/es/layout/hooks/useHasSider.d.ts +0 -2
- package/es/layout/hooks/useHasSider.js +0 -40
- package/es/layout/index.d.ts +0 -15
- package/es/layout/index.js +0 -40
- package/es/layout/layout.d.ts +0 -18
- package/es/layout/layout.js +0 -40
- package/es/layout/style/index.d.ts +0 -96
- package/es/layout/style/index.js +0 -35
- package/es/layout/style/sider.d.ts +0 -2
- package/es/layout/style/sider.js +0 -35
- package/es/list/Item.d.ts +0 -35
- package/es/list/Item.js +0 -40
- package/es/list/context.d.ts +0 -8
- package/es/list/context.js +0 -1
- package/es/list/index.d.ts +0 -56
- package/es/list/index.js +0 -111
- package/es/list/style/index.d.ts +0 -62
- package/es/list/style/index.js +0 -35
- package/es/locale/ar_EG.d.ts +0 -3
- package/es/locale/ar_EG.js +0 -1
- package/es/locale/az_AZ.d.ts +0 -3
- package/es/locale/az_AZ.js +0 -1
- package/es/locale/bg_BG.d.ts +0 -3
- package/es/locale/bg_BG.js +0 -1
- package/es/locale/bn_BD.d.ts +0 -3
- package/es/locale/bn_BD.js +0 -1
- package/es/locale/by_BY.d.ts +0 -3
- package/es/locale/by_BY.js +0 -1
- package/es/locale/ca_ES.d.ts +0 -3
- package/es/locale/ca_ES.js +0 -1
- package/es/locale/context.d.ts +0 -6
- package/es/locale/context.js +0 -1
- package/es/locale/cs_CZ.d.ts +0 -3
- package/es/locale/cs_CZ.js +0 -1
- package/es/locale/da_DK.d.ts +0 -3
- package/es/locale/da_DK.js +0 -1
- package/es/locale/de_DE.d.ts +0 -3
- package/es/locale/de_DE.js +0 -1
- package/es/locale/el_GR.d.ts +0 -3
- package/es/locale/el_GR.js +0 -1
- package/es/locale/en_GB.d.ts +0 -3
- package/es/locale/en_GB.js +0 -1
- package/es/locale/en_US.d.ts +0 -3
- package/es/locale/en_US.js +0 -1
- package/es/locale/es_ES.d.ts +0 -3
- package/es/locale/es_ES.js +0 -1
- package/es/locale/et_EE.d.ts +0 -3
- package/es/locale/et_EE.js +0 -1
- package/es/locale/eu_ES.d.ts +0 -3
- package/es/locale/eu_ES.js +0 -1
- package/es/locale/fa_IR.d.ts +0 -3
- package/es/locale/fa_IR.js +0 -1
- package/es/locale/fi_FI.d.ts +0 -3
- package/es/locale/fi_FI.js +0 -1
- package/es/locale/fr_BE.d.ts +0 -3
- package/es/locale/fr_BE.js +0 -1
- package/es/locale/fr_CA.d.ts +0 -3
- package/es/locale/fr_CA.js +0 -1
- package/es/locale/fr_FR.d.ts +0 -3
- package/es/locale/fr_FR.js +0 -1
- package/es/locale/ga_IE.d.ts +0 -3
- package/es/locale/ga_IE.js +0 -1
- package/es/locale/gl_ES.d.ts +0 -3
- package/es/locale/gl_ES.js +0 -1
- package/es/locale/he_IL.d.ts +0 -3
- package/es/locale/he_IL.js +0 -1
- package/es/locale/hi_IN.d.ts +0 -3
- package/es/locale/hi_IN.js +0 -1
- package/es/locale/hr_HR.d.ts +0 -3
- package/es/locale/hr_HR.js +0 -1
- package/es/locale/hu_HU.d.ts +0 -3
- package/es/locale/hu_HU.js +0 -1
- package/es/locale/hy_AM.d.ts +0 -3
- package/es/locale/hy_AM.js +0 -2
- package/es/locale/id_ID.d.ts +0 -3
- package/es/locale/id_ID.js +0 -1
- package/es/locale/index.d.ts +0 -61
- package/es/locale/index.js +0 -1
- package/es/locale/is_IS.d.ts +0 -3
- package/es/locale/is_IS.js +0 -1
- package/es/locale/it_IT.d.ts +0 -3
- package/es/locale/it_IT.js +0 -1
- package/es/locale/ja_JP.d.ts +0 -3
- package/es/locale/ja_JP.js +0 -1
- package/es/locale/ka_GE.d.ts +0 -3
- package/es/locale/ka_GE.js +0 -1
- package/es/locale/kk_KZ.d.ts +0 -3
- package/es/locale/kk_KZ.js +0 -1
- package/es/locale/km_KH.d.ts +0 -3
- package/es/locale/km_KH.js +0 -1
- package/es/locale/kmr_IQ.d.ts +0 -3
- package/es/locale/kmr_IQ.js +0 -1
- package/es/locale/kn_IN.d.ts +0 -3
- package/es/locale/kn_IN.js +0 -1
- package/es/locale/ko_KR.d.ts +0 -3
- package/es/locale/ko_KR.js +0 -1
- package/es/locale/ku_IQ.d.ts +0 -3
- package/es/locale/ku_IQ.js +0 -1
- package/es/locale/lt_LT.d.ts +0 -3
- package/es/locale/lt_LT.js +0 -1
- package/es/locale/lv_LV.d.ts +0 -3
- package/es/locale/lv_LV.js +0 -1
- package/es/locale/mk_MK.d.ts +0 -3
- package/es/locale/mk_MK.js +0 -1
- package/es/locale/ml_IN.d.ts +0 -3
- package/es/locale/ml_IN.js +0 -1
- package/es/locale/mn_MN.d.ts +0 -3
- package/es/locale/mn_MN.js +0 -1
- package/es/locale/ms_MY.d.ts +0 -3
- package/es/locale/ms_MY.js +0 -1
- package/es/locale/my_MM.d.ts +0 -3
- package/es/locale/my_MM.js +0 -1
- package/es/locale/nb_NO.d.ts +0 -3
- package/es/locale/nb_NO.js +0 -1
- package/es/locale/ne_NP.d.ts +0 -3
- package/es/locale/ne_NP.js +0 -1
- package/es/locale/nl_BE.d.ts +0 -3
- package/es/locale/nl_BE.js +0 -1
- package/es/locale/nl_NL.d.ts +0 -3
- package/es/locale/nl_NL.js +0 -1
- package/es/locale/pl_PL.d.ts +0 -3
- package/es/locale/pl_PL.js +0 -1
- package/es/locale/pt_BR.d.ts +0 -3
- package/es/locale/pt_BR.js +0 -1
- package/es/locale/pt_PT.d.ts +0 -3
- package/es/locale/pt_PT.js +0 -1
- package/es/locale/ro_RO.d.ts +0 -3
- package/es/locale/ro_RO.js +0 -1
- package/es/locale/ru_RU.d.ts +0 -3
- package/es/locale/ru_RU.js +0 -1
- package/es/locale/si_LK.d.ts +0 -3
- package/es/locale/si_LK.js +0 -1
- package/es/locale/sk_SK.d.ts +0 -3
- package/es/locale/sk_SK.js +0 -1
- package/es/locale/sl_SI.d.ts +0 -3
- package/es/locale/sl_SI.js +0 -1
- package/es/locale/sr_RS.d.ts +0 -3
- package/es/locale/sr_RS.js +0 -1
- package/es/locale/sv_SE.d.ts +0 -3
- package/es/locale/sv_SE.js +0 -1
- package/es/locale/ta_IN.d.ts +0 -3
- package/es/locale/ta_IN.js +0 -1
- package/es/locale/th_TH.d.ts +0 -3
- package/es/locale/th_TH.js +0 -1
- package/es/locale/tk_TK.d.ts +0 -3
- package/es/locale/tk_TK.js +0 -1
- package/es/locale/tr_TR.d.ts +0 -3
- package/es/locale/tr_TR.js +0 -1
- package/es/locale/uk_UA.d.ts +0 -3
- package/es/locale/uk_UA.js +0 -1
- package/es/locale/ur_PK.d.ts +0 -3
- package/es/locale/ur_PK.js +0 -1
- package/es/locale/useLocale.d.ts +0 -4
- package/es/locale/useLocale.js +0 -1
- package/es/locale/uz_UZ.d.ts +0 -3
- package/es/locale/uz_UZ.js +0 -1
- package/es/locale/vi_VN.d.ts +0 -3
- package/es/locale/vi_VN.js +0 -1
- package/es/locale/zh_CN.d.ts +0 -3
- package/es/locale/zh_CN.js +0 -1
- package/es/locale/zh_HK.d.ts +0 -3
- package/es/locale/zh_HK.js +0 -1
- package/es/locale/zh_TW.d.ts +0 -3
- package/es/locale/zh_TW.js +0 -1
- package/es/mentions/index.d.ts +0 -45
- package/es/mentions/index.js +0 -58
- package/es/mentions/style/index.d.ts +0 -22
- package/es/mentions/style/index.js +0 -53
- package/es/menu/MenuContext.d.ts +0 -11
- package/es/menu/MenuContext.js +0 -1
- package/es/menu/MenuDivider.d.ts +0 -9
- package/es/menu/MenuDivider.js +0 -40
- package/es/menu/MenuItem.d.ts +0 -13
- package/es/menu/MenuItem.js +0 -49
- package/es/menu/OverrideContext.d.ts +0 -13
- package/es/menu/OverrideContext.js +0 -40
- package/es/menu/SubMenu.d.ts +0 -13
- package/es/menu/SubMenu.js +0 -35
- package/es/menu/index.d.ts +0 -32
- package/es/menu/index.js +0 -66
- package/es/menu/interface.d.ts +0 -20
- package/es/menu/interface.js +0 -0
- package/es/menu/menu.d.ts +0 -19
- package/es/menu/menu.js +0 -66
- package/es/menu/style/horizontal.d.ts +0 -4
- package/es/menu/style/horizontal.js +0 -3
- package/es/menu/style/index.d.ts +0 -354
- package/es/menu/style/index.js +0 -61
- package/es/menu/style/rtl.d.ts +0 -5
- package/es/menu/style/rtl.js +0 -2
- package/es/menu/style/theme.d.ts +0 -4
- package/es/menu/style/theme.js +0 -1
- package/es/menu/style/vertical.d.ts +0 -4
- package/es/menu/style/vertical.js +0 -9
- package/es/message/PurePanel.d.ts +0 -23
- package/es/message/PurePanel.js +0 -47
- package/es/message/index.d.ts +0 -23
- package/es/message/index.js +0 -47
- package/es/message/interface.d.ts +0 -66
- package/es/message/interface.js +0 -0
- package/es/message/style/index.d.ts +0 -23
- package/es/message/style/index.js +0 -42
- package/es/message/useMessage.d.ts +0 -8
- package/es/message/useMessage.js +0 -47
- package/es/message/util.d.ts +0 -4
- package/es/message/util.js +0 -1
- package/es/modal/ConfirmDialog.d.ts +0 -32
- package/es/modal/ConfirmDialog.js +0 -69
- package/es/modal/Modal.d.ts +0 -4
- package/es/modal/Modal.js +0 -68
- package/es/modal/PurePanel.d.ts +0 -9
- package/es/modal/PurePanel.js +0 -69
- package/es/modal/components/ConfirmCancelBtn.d.ts +0 -10
- package/es/modal/components/ConfirmCancelBtn.js +0 -47
- package/es/modal/components/ConfirmOkBtn.d.ts +0 -9
- package/es/modal/components/ConfirmOkBtn.js +0 -47
- package/es/modal/components/NormalCancelBtn.d.ts +0 -8
- package/es/modal/components/NormalCancelBtn.js +0 -47
- package/es/modal/components/NormalOkBtn.d.ts +0 -8
- package/es/modal/components/NormalOkBtn.js +0 -47
- package/es/modal/confirm.d.ts +0 -20
- package/es/modal/confirm.js +0 -69
- package/es/modal/context.d.ts +0 -8
- package/es/modal/context.js +0 -1
- package/es/modal/destroyFns.d.ts +0 -2
- package/es/modal/destroyFns.js +0 -1
- package/es/modal/index.d.ts +0 -15
- package/es/modal/index.js +0 -69
- package/es/modal/interface.d.ts +0 -123
- package/es/modal/interface.js +0 -0
- package/es/modal/locale.d.ts +0 -7
- package/es/modal/locale.js +0 -1
- package/es/modal/shared.d.ts +0 -9
- package/es/modal/shared.js +0 -47
- package/es/modal/style/confirm.d.ts +0 -2
- package/es/modal/style/confirm.js +0 -50
- package/es/modal/style/index.d.ts +0 -110
- package/es/modal/style/index.js +0 -49
- package/es/modal/useModal/HookModal.d.ts +0 -17
- package/es/modal/useModal/HookModal.js +0 -69
- package/es/modal/useModal/index.d.ts +0 -8
- package/es/modal/useModal/index.js +0 -69
- package/es/notification/PurePanel.d.ts +0 -27
- package/es/notification/PurePanel.js +0 -40
- package/es/notification/index.d.ts +0 -22
- package/es/notification/index.js +0 -40
- package/es/notification/interface.d.ts +0 -68
- package/es/notification/interface.js +0 -1
- package/es/notification/style/index.d.ts +0 -89
- package/es/notification/style/index.js +0 -35
- package/es/notification/style/placement.d.ts +0 -5
- package/es/notification/style/placement.js +0 -1
- package/es/notification/style/pure-panel.d.ts +0 -2
- package/es/notification/style/pure-panel.js +0 -35
- package/es/notification/style/stack.d.ts +0 -4
- package/es/notification/style/stack.js +0 -1
- package/es/notification/useNotification.d.ts +0 -8
- package/es/notification/useNotification.js +0 -40
- package/es/notification/util.d.ts +0 -5
- package/es/notification/util.js +0 -1
- package/es/pagination/Pagination.d.ts +0 -25
- package/es/pagination/Pagination.js +0 -111
- package/es/pagination/index.d.ts +0 -3
- package/es/pagination/index.js +0 -111
- package/es/pagination/style/bordered.d.ts +0 -2
- package/es/pagination/style/bordered.js +0 -68
- package/es/pagination/style/index.d.ts +0 -99
- package/es/pagination/style/index.js +0 -68
- package/es/pagination/useShowSizeChanger.d.ts +0 -3
- package/es/pagination/useShowSizeChanger.js +0 -1
- package/es/popconfirm/PurePanel.d.ts +0 -20
- package/es/popconfirm/PurePanel.js +0 -56
- package/es/popconfirm/index.d.ts +0 -30
- package/es/popconfirm/index.js +0 -56
- package/es/popconfirm/style/index.d.ts +0 -17
- package/es/popconfirm/style/index.js +0 -35
- package/es/popover/PurePanel.d.ts +0 -17
- package/es/popover/PurePanel.js +0 -49
- package/es/popover/index.d.ts +0 -15
- package/es/popover/index.js +0 -49
- package/es/popover/style/index.d.ts +0 -46
- package/es/popover/style/index.js +0 -44
- package/es/progress/Circle.d.ts +0 -10
- package/es/progress/Circle.js +0 -49
- package/es/progress/Line.d.ts +0 -36
- package/es/progress/Line.js +0 -35
- package/es/progress/Steps.d.ts +0 -9
- package/es/progress/Steps.js +0 -1
- package/es/progress/index.d.ts +0 -3
- package/es/progress/index.js +0 -49
- package/es/progress/progress.d.ts +0 -58
- package/es/progress/progress.js +0 -49
- package/es/progress/style/index.d.ts +0 -38
- package/es/progress/style/index.js +0 -35
- package/es/progress/utils.d.ts +0 -10
- package/es/progress/utils.js +0 -1
- package/es/qr-code/QrcodeStatus.d.ts +0 -11
- package/es/qr-code/QrcodeStatus.js +0 -47
- package/es/qr-code/index.d.ts +0 -4
- package/es/qr-code/index.js +0 -47
- package/es/qr-code/interface.d.ts +0 -29
- package/es/qr-code/interface.js +0 -0
- package/es/qr-code/style/index.d.ts +0 -6
- package/es/qr-code/style/index.js +0 -35
- package/es/qrcode/index.d.ts +0 -2
- package/es/qrcode/index.js +0 -47
- package/es/qrcode/interface.d.ts +0 -1
- package/es/qrcode/interface.js +0 -0
- package/es/qrcode/style/index.d.ts +0 -1
- package/es/qrcode/style/index.js +0 -35
- package/es/radio/context.d.ts +0 -7
- package/es/radio/context.js +0 -1
- package/es/radio/group.d.ts +0 -4
- package/es/radio/group.js +0 -41
- package/es/radio/index.d.ts +0 -11
- package/es/radio/index.js +0 -41
- package/es/radio/interface.d.ts +0 -43
- package/es/radio/interface.js +0 -0
- package/es/radio/radio.d.ts +0 -4
- package/es/radio/radio.js +0 -41
- package/es/radio/radioButton.d.ts +0 -6
- package/es/radio/radioButton.js +0 -41
- package/es/radio/style/index.d.ts +0 -76
- package/es/radio/style/index.js +0 -36
- package/es/rate/index.d.ts +0 -8
- package/es/rate/index.js +0 -49
- package/es/rate/style/index.d.ts +0 -27
- package/es/rate/style/index.js +0 -35
- package/es/result/index.d.ts +0 -33
- package/es/result/index.js +0 -40
- package/es/result/noFound.d.ts +0 -3
- package/es/result/noFound.js +0 -1
- package/es/result/serverError.d.ts +0 -3
- package/es/result/serverError.js +0 -1
- package/es/result/style/index.d.ts +0 -27
- package/es/result/style/index.js +0 -35
- package/es/result/unauthorized.d.ts +0 -3
- package/es/result/unauthorized.js +0 -1
- package/es/row/index.d.ts +0 -4
- package/es/row/index.js +0 -40
- package/es/row/style/index.d.ts +0 -2
- package/es/row/style/index.js +0 -1
- package/es/search-area/index.d.ts +0 -5
- package/es/search-area/index.js +0 -353
- package/es/search-area/style/index.d.ts +0 -2
- package/es/search-area/style/index.js +0 -1
- package/es/segmented/index.d.ts +0 -26
- package/es/segmented/index.js +0 -40
- package/es/segmented/style/index.d.ts +0 -46
- package/es/segmented/style/index.js +0 -35
- package/es/select/index.d.ts +0 -57
- package/es/select/index.js +0 -78
- package/es/select/mergedBuiltinPlacements.d.ts +0 -4
- package/es/select/mergedBuiltinPlacements.js +0 -1
- package/es/select/style/dropdown.d.ts +0 -4
- package/es/select/style/dropdown.js +0 -24
- package/es/select/style/index.d.ts +0 -4
- package/es/select/style/index.js +0 -73
- package/es/select/style/multiple.d.ts +0 -32
- package/es/select/style/multiple.js +0 -40
- package/es/select/style/single.d.ts +0 -3
- package/es/select/style/single.js +0 -45
- package/es/select/style/token.d.ts +0 -138
- package/es/select/style/token.js +0 -1
- package/es/select/style/variants.d.ts +0 -4
- package/es/select/style/variants.js +0 -1
- package/es/select/useIcons.d.ts +0 -26
- package/es/select/useIcons.js +0 -1
- package/es/select/useShowArrow.d.ts +0 -8
- package/es/select/useShowArrow.js +0 -1
- package/es/skeleton/Avatar.d.ts +0 -7
- package/es/skeleton/Avatar.js +0 -47
- package/es/skeleton/Button.d.ts +0 -8
- package/es/skeleton/Button.js +0 -47
- package/es/skeleton/Element.d.ts +0 -12
- package/es/skeleton/Element.js +0 -1
- package/es/skeleton/Image.d.ts +0 -6
- package/es/skeleton/Image.js +0 -48
- package/es/skeleton/Input.d.ts +0 -8
- package/es/skeleton/Input.js +0 -47
- package/es/skeleton/Node.d.ts +0 -8
- package/es/skeleton/Node.js +0 -47
- package/es/skeleton/Paragraph.d.ts +0 -11
- package/es/skeleton/Paragraph.js +0 -1
- package/es/skeleton/Skeleton.d.ts +0 -32
- package/es/skeleton/Skeleton.js +0 -48
- package/es/skeleton/Title.d.ts +0 -9
- package/es/skeleton/Title.js +0 -1
- package/es/skeleton/index.d.ts +0 -3
- package/es/skeleton/index.js +0 -48
- package/es/skeleton/style/index.d.ts +0 -40
- package/es/skeleton/style/index.js +0 -42
- package/es/slider/Context.d.ts +0 -9
- package/es/slider/Context.js +0 -1
- package/es/slider/SliderTooltip.d.ts +0 -8
- package/es/slider/SliderTooltip.js +0 -49
- package/es/slider/index.d.ts +0 -97
- package/es/slider/index.js +0 -61
- package/es/slider/style/index.d.ts +0 -97
- package/es/slider/style/index.js +0 -47
- package/es/slider/useRafLock.d.ts +0 -1
- package/es/slider/useRafLock.js +0 -1
- package/es/space/Compact.d.ts +0 -25
- package/es/space/Compact.js +0 -40
- package/es/space/Item.d.ts +0 -10
- package/es/space/Item.js +0 -1
- package/es/space/context.d.ts +0 -6
- package/es/space/context.js +0 -1
- package/es/space/index.d.ts +0 -28
- package/es/space/index.js +0 -40
- package/es/space/style/compact.d.ts +0 -8
- package/es/space/style/compact.js +0 -1
- package/es/space/style/index.d.ts +0 -7
- package/es/space/style/index.js +0 -35
- package/es/spin/Indicator/Looper.d.ts +0 -6
- package/es/spin/Indicator/Looper.js +0 -1
- package/es/spin/Indicator/Progress.d.ts +0 -7
- package/es/spin/Indicator/Progress.js +0 -1
- package/es/spin/Indicator/index.d.ts +0 -7
- package/es/spin/Indicator/index.js +0 -1
- package/es/spin/index.d.ts +0 -36
- package/es/spin/index.js +0 -40
- package/es/spin/style/index.d.ts +0 -26
- package/es/spin/style/index.js +0 -35
- package/es/spin/usePercent.d.ts +0 -1
- package/es/spin/usePercent.js +0 -1
- package/es/splitter/Panel.d.ts +0 -7
- package/es/splitter/Panel.js +0 -1
- package/es/splitter/SplitBar.d.ts +0 -19
- package/es/splitter/SplitBar.js +0 -1
- package/es/splitter/Splitter.d.ts +0 -4
- package/es/splitter/Splitter.js +0 -40
- package/es/splitter/hooks/useItems.d.ts +0 -12
- package/es/splitter/hooks/useItems.js +0 -1
- package/es/splitter/hooks/useResizable.d.ts +0 -7
- package/es/splitter/hooks/useResizable.js +0 -1
- package/es/splitter/hooks/useResize.d.ts +0 -6
- package/es/splitter/hooks/useResize.js +0 -1
- package/es/splitter/hooks/useSizes.d.ts +0 -8
- package/es/splitter/hooks/useSizes.js +0 -1
- package/es/splitter/index.d.ts +0 -8
- package/es/splitter/index.js +0 -40
- package/es/splitter/interface.d.ts +0 -64
- package/es/splitter/interface.js +0 -0
- package/es/splitter/style/index.d.ts +0 -27
- package/es/splitter/style/index.js +0 -35
- package/es/statistic/Countdown.d.ts +0 -10
- package/es/statistic/Countdown.js +0 -48
- package/es/statistic/Number.d.ts +0 -8
- package/es/statistic/Number.js +0 -1
- package/es/statistic/Statistic.d.ts +0 -21
- package/es/statistic/Statistic.js +0 -48
- package/es/statistic/index.d.ts +0 -11
- package/es/statistic/index.js +0 -48
- package/es/statistic/interface.d.ts +0 -0
- package/es/statistic/interface.js +0 -0
- package/es/statistic/style/index.d.ts +0 -16
- package/es/statistic/style/index.js +0 -35
- package/es/statistic/utils.d.ts +0 -15
- package/es/statistic/utils.js +0 -1
- package/es/steps/index.d.ts +0 -39
- package/es/steps/index.js +0 -49
- package/es/steps/style/custom-icon.d.ts +0 -5
- package/es/steps/style/custom-icon.js +0 -1
- package/es/steps/style/horizontal.d.ts +0 -5
- package/es/steps/style/horizontal.js +0 -1
- package/es/steps/style/index.d.ts +0 -102
- package/es/steps/style/index.js +0 -35
- package/es/steps/style/inline.d.ts +0 -5
- package/es/steps/style/inline.js +0 -1
- package/es/steps/style/label-placement.d.ts +0 -5
- package/es/steps/style/label-placement.js +0 -1
- package/es/steps/style/nav.d.ts +0 -5
- package/es/steps/style/nav.js +0 -1
- package/es/steps/style/progress-dot.d.ts +0 -5
- package/es/steps/style/progress-dot.js +0 -1
- package/es/steps/style/progress.d.ts +0 -5
- package/es/steps/style/progress.js +0 -1
- package/es/steps/style/rtl.d.ts +0 -5
- package/es/steps/style/rtl.js +0 -1
- package/es/steps/style/small.d.ts +0 -5
- package/es/steps/style/small.js +0 -1
- package/es/steps/style/vertical.d.ts +0 -5
- package/es/steps/style/vertical.js +0 -1
- package/es/steps/useLegacyItems.d.ts +0 -3
- package/es/steps/useLegacyItems.js +0 -1
- package/es/style/compact-item-vertical.d.ts +0 -3
- package/es/style/compact-item-vertical.js +0 -1
- package/es/style/compact-item.d.ts +0 -17
- package/es/style/compact-item.js +0 -1
- package/es/style/index.d.ts +0 -12
- package/es/style/index.js +0 -1
- package/es/style/motion/collapse.d.ts +0 -3
- package/es/style/motion/collapse.js +0 -3
- package/es/style/motion/fade.d.ts +0 -6
- package/es/style/motion/fade.js +0 -10
- package/es/style/motion/index.d.ts +0 -6
- package/es/style/motion/index.js +0 -21
- package/es/style/motion/motion.d.ts +0 -2
- package/es/style/motion/motion.js +0 -7
- package/es/style/motion/move.d.ts +0 -14
- package/es/style/motion/move.js +0 -10
- package/es/style/motion/slide.d.ts +0 -14
- package/es/style/motion/slide.js +0 -10
- package/es/style/motion/zoom.d.ts +0 -18
- package/es/style/motion/zoom.js +0 -10
- package/es/style/placementArrow.d.ts +0 -19
- package/es/style/placementArrow.js +0 -1
- package/es/style/roundedArrow.d.ts +0 -7
- package/es/style/roundedArrow.js +0 -1
- package/es/switch/index.d.ts +0 -37
- package/es/switch/index.js +0 -40
- package/es/switch/style/index.d.ts +0 -71
- package/es/switch/style/index.js +0 -35
- package/es/table/Column.d.ts +0 -8
- package/es/table/Column.js +0 -1
- package/es/table/ColumnGroup.d.ts +0 -10
- package/es/table/ColumnGroup.js +0 -1
- package/es/table/ExpandIcon.d.ts +0 -12
- package/es/table/ExpandIcon.js +0 -1
- package/es/table/InternalTable.d.ts +0 -32
- package/es/table/InternalTable.js +0 -216
- package/es/table/RcTable/VirtualTable.d.ts +0 -5
- package/es/table/RcTable/VirtualTable.js +0 -1
- package/es/table/RcTable/index.d.ts +0 -5
- package/es/table/RcTable/index.js +0 -1
- package/es/table/Table.d.ts +0 -17
- package/es/table/Table.js +0 -216
- package/es/table/hooks/useContainerWidth.d.ts +0 -1
- package/es/table/hooks/useContainerWidth.js +0 -1
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +0 -31
- package/es/table/hooks/useFilter/FilterDropdown.js +0 -113
- package/es/table/hooks/useFilter/FilterSearch.d.ts +0 -12
- package/es/table/hooks/useFilter/FilterSearch.js +0 -65
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +0 -8
- package/es/table/hooks/useFilter/FilterWrapper.js +0 -1
- package/es/table/hooks/useFilter/index.d.ts +0 -22
- package/es/table/hooks/useFilter/index.js +0 -113
- package/es/table/hooks/useLazyKVMap.d.ts +0 -4
- package/es/table/hooks/useLazyKVMap.js +0 -1
- package/es/table/hooks/usePagination.d.ts +0 -5
- package/es/table/hooks/usePagination.js +0 -1
- package/es/table/hooks/useSelection.d.ts +0 -20
- package/es/table/hooks/useSelection.js +0 -95
- package/es/table/hooks/useSorter.d.ts +0 -19
- package/es/table/hooks/useSorter.js +0 -49
- package/es/table/hooks/useTitleColumns.d.ts +0 -4
- package/es/table/hooks/useTitleColumns.js +0 -1
- package/es/table/index.d.ts +0 -7
- package/es/table/index.js +0 -216
- package/es/table/interface.d.ts +0 -194
- package/es/table/interface.js +0 -1
- package/es/table/style/bordered.d.ts +0 -5
- package/es/table/style/bordered.js +0 -10
- package/es/table/style/ellipsis.d.ts +0 -5
- package/es/table/style/ellipsis.js +0 -4
- package/es/table/style/empty.d.ts +0 -5
- package/es/table/style/empty.js +0 -1
- package/es/table/style/expand.d.ts +0 -5
- package/es/table/style/expand.js +0 -1
- package/es/table/style/filter.d.ts +0 -4
- package/es/table/style/filter.js +0 -1
- package/es/table/style/fixed.d.ts +0 -5
- package/es/table/style/fixed.js +0 -21
- package/es/table/style/index.d.ts +0 -202
- package/es/table/style/index.js +0 -97
- package/es/table/style/pagination.d.ts +0 -5
- package/es/table/style/pagination.js +0 -1
- package/es/table/style/radius.d.ts +0 -5
- package/es/table/style/radius.js +0 -1
- package/es/table/style/rtl.d.ts +0 -5
- package/es/table/style/rtl.js +0 -1
- package/es/table/style/selection.d.ts +0 -5
- package/es/table/style/selection.js +0 -5
- package/es/table/style/size.d.ts +0 -5
- package/es/table/style/size.js +0 -10
- package/es/table/style/sorter.d.ts +0 -5
- package/es/table/style/sorter.js +0 -4
- package/es/table/style/sticky.d.ts +0 -5
- package/es/table/style/sticky.js +0 -1
- package/es/table/style/summary.d.ts +0 -5
- package/es/table/style/summary.js +0 -1
- package/es/table/style/virtual.d.ts +0 -5
- package/es/table/style/virtual.js +0 -4
- package/es/table/util.d.ts +0 -13
- package/es/table/util.js +0 -1
- package/es/tabs/TabPane.d.ts +0 -5
- package/es/tabs/TabPane.js +0 -1
- package/es/tabs/hooks/useAnimateConfig.d.ts +0 -3
- package/es/tabs/hooks/useAnimateConfig.js +0 -40
- package/es/tabs/hooks/useLegacyItems.d.ts +0 -4
- package/es/tabs/hooks/useLegacyItems.js +0 -1
- package/es/tabs/index.d.ts +0 -29
- package/es/tabs/index.js +0 -51
- package/es/tabs/style/index.d.ts +0 -136
- package/es/tabs/style/index.js +0 -46
- package/es/tabs/style/motion.d.ts +0 -4
- package/es/tabs/style/motion.js +0 -10
- package/es/tag/CheckableTag.d.ts +0 -17
- package/es/tag/CheckableTag.js +0 -40
- package/es/tag/index.d.ts +0 -27
- package/es/tag/index.js +0 -40
- package/es/tag/style/index.d.ts +0 -25
- package/es/tag/style/index.js +0 -35
- package/es/tag/style/presetCmp.d.ts +0 -2
- package/es/tag/style/presetCmp.js +0 -35
- package/es/tag/style/statusCmp.d.ts +0 -2
- package/es/tag/style/statusCmp.js +0 -35
- package/es/theme/context.d.ts +0 -31
- package/es/theme/context.js +0 -3
- package/es/theme/getDesignToken.d.ts +0 -4
- package/es/theme/getDesignToken.js +0 -35
- package/es/theme/index.d.ts +0 -35
- package/es/theme/index.js +0 -35
- package/es/theme/interface/alias.d.ts +0 -545
- package/es/theme/interface/alias.js +0 -0
- package/es/theme/interface/components.d.ts +0 -140
- package/es/theme/interface/components.js +0 -0
- package/es/theme/interface/cssinjs-utils.d.ts +0 -10
- package/es/theme/interface/cssinjs-utils.js +0 -0
- package/es/theme/interface/index.d.ts +0 -15
- package/es/theme/interface/index.js +0 -1
- package/es/theme/interface/maps/colors.d.ts +0 -530
- package/es/theme/interface/maps/colors.js +0 -0
- package/es/theme/interface/maps/font.d.ts +0 -117
- package/es/theme/interface/maps/font.js +0 -0
- package/es/theme/interface/maps/index.d.ts +0 -29
- package/es/theme/interface/maps/index.js +0 -0
- package/es/theme/interface/maps/size.d.ts +0 -69
- package/es/theme/interface/maps/size.js +0 -0
- package/es/theme/interface/maps/style.d.ts +0 -42
- package/es/theme/interface/maps/style.js +0 -0
- package/es/theme/interface/presetColors.d.ts +0 -11
- package/es/theme/interface/presetColors.js +0 -1
- package/es/theme/interface/seeds.d.ts +0 -225
- package/es/theme/interface/seeds.js +0 -0
- package/es/theme/internal.d.ts +0 -13
- package/es/theme/internal.js +0 -35
- package/es/theme/themes/ColorMap.d.ts +0 -15
- package/es/theme/themes/ColorMap.js +0 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.d.ts +0 -2
- package/es/theme/themes/compact/genCompactSizeMapToken.js +0 -1
- package/es/theme/themes/compact/index.d.ts +0 -4
- package/es/theme/themes/compact/index.js +0 -1
- package/es/theme/themes/dark/colorAlgorithm.d.ts +0 -2
- package/es/theme/themes/dark/colorAlgorithm.js +0 -1
- package/es/theme/themes/dark/colors.d.ts +0 -3
- package/es/theme/themes/dark/colors.js +0 -1
- package/es/theme/themes/dark/index.d.ts +0 -4
- package/es/theme/themes/dark/index.js +0 -1
- package/es/theme/themes/default/colorAlgorithm.d.ts +0 -2
- package/es/theme/themes/default/colorAlgorithm.js +0 -1
- package/es/theme/themes/default/colors.d.ts +0 -3
- package/es/theme/themes/default/colors.js +0 -1
- package/es/theme/themes/default/index.d.ts +0 -2
- package/es/theme/themes/default/index.js +0 -1
- package/es/theme/themes/seed.d.ts +0 -4
- package/es/theme/themes/seed.js +0 -3
- package/es/theme/themes/shared/genColorMapToken.d.ts +0 -8
- package/es/theme/themes/shared/genColorMapToken.js +0 -1
- package/es/theme/themes/shared/genCommonMapToken.d.ts +0 -2
- package/es/theme/themes/shared/genCommonMapToken.js +0 -1
- package/es/theme/themes/shared/genControlHeight.d.ts +0 -3
- package/es/theme/themes/shared/genControlHeight.js +0 -1
- package/es/theme/themes/shared/genFontMapToken.d.ts +0 -3
- package/es/theme/themes/shared/genFontMapToken.js +0 -1
- package/es/theme/themes/shared/genFontSizes.d.ts +0 -5
- package/es/theme/themes/shared/genFontSizes.js +0 -1
- package/es/theme/themes/shared/genRadius.d.ts +0 -3
- package/es/theme/themes/shared/genRadius.js +0 -1
- package/es/theme/themes/shared/genSizeMapToken.d.ts +0 -2
- package/es/theme/themes/shared/genSizeMapToken.js +0 -1
- package/es/theme/useToken.d.ts +0 -19
- package/es/theme/useToken.js +0 -35
- package/es/theme/util/alias.d.ts +0 -12
- package/es/theme/util/alias.js +0 -35
- package/es/theme/util/genPresetColor.d.ts +0 -15
- package/es/theme/util/genPresetColor.js +0 -1
- package/es/theme/util/genStyleUtils.d.ts +0 -26
- package/es/theme/util/genStyleUtils.js +0 -35
- package/es/theme/util/getAlphaColor.d.ts +0 -2
- package/es/theme/util/getAlphaColor.js +0 -1
- package/es/theme/util/useResetIconStyle.d.ts +0 -3
- package/es/theme/util/useResetIconStyle.js +0 -35
- package/es/time-out/index.d.ts +0 -18
- package/es/time-out/index.js +0 -40
- package/es/time-out/style/index.d.ts +0 -31
- package/es/time-out/style/index.js +0 -35
- package/es/time-out/style/style.d.ts +0 -1
- package/es/time-out/style/style.js +0 -104
- package/es/time-picker/index.d.ts +0 -30
- package/es/time-picker/index.js +0 -98
- package/es/time-picker/locale/ar_EG.d.ts +0 -3
- package/es/time-picker/locale/ar_EG.js +0 -1
- package/es/time-picker/locale/az_AZ.d.ts +0 -3
- package/es/time-picker/locale/az_AZ.js +0 -1
- package/es/time-picker/locale/bg_BG.d.ts +0 -3
- package/es/time-picker/locale/bg_BG.js +0 -1
- package/es/time-picker/locale/bn_BD.d.ts +0 -3
- package/es/time-picker/locale/bn_BD.js +0 -1
- package/es/time-picker/locale/by_BY.d.ts +0 -3
- package/es/time-picker/locale/by_BY.js +0 -1
- package/es/time-picker/locale/ca_ES.d.ts +0 -3
- package/es/time-picker/locale/ca_ES.js +0 -1
- package/es/time-picker/locale/cs_CZ.d.ts +0 -3
- package/es/time-picker/locale/cs_CZ.js +0 -1
- package/es/time-picker/locale/da_DK.d.ts +0 -3
- package/es/time-picker/locale/da_DK.js +0 -1
- package/es/time-picker/locale/de_DE.d.ts +0 -3
- package/es/time-picker/locale/de_DE.js +0 -1
- package/es/time-picker/locale/el_GR.d.ts +0 -3
- package/es/time-picker/locale/el_GR.js +0 -1
- package/es/time-picker/locale/en_GB.d.ts +0 -3
- package/es/time-picker/locale/en_GB.js +0 -1
- package/es/time-picker/locale/en_US.d.ts +0 -3
- package/es/time-picker/locale/en_US.js +0 -1
- package/es/time-picker/locale/es_ES.d.ts +0 -3
- package/es/time-picker/locale/es_ES.js +0 -1
- package/es/time-picker/locale/et_EE.d.ts +0 -3
- package/es/time-picker/locale/et_EE.js +0 -1
- package/es/time-picker/locale/eu_ES.d.ts +0 -3
- package/es/time-picker/locale/eu_ES.js +0 -1
- package/es/time-picker/locale/fa_IR.d.ts +0 -3
- package/es/time-picker/locale/fa_IR.js +0 -1
- package/es/time-picker/locale/fi_FI.d.ts +0 -3
- package/es/time-picker/locale/fi_FI.js +0 -1
- package/es/time-picker/locale/fr_BE.d.ts +0 -3
- package/es/time-picker/locale/fr_BE.js +0 -1
- package/es/time-picker/locale/fr_CA.d.ts +0 -3
- package/es/time-picker/locale/fr_CA.js +0 -1
- package/es/time-picker/locale/fr_FR.d.ts +0 -3
- package/es/time-picker/locale/fr_FR.js +0 -1
- package/es/time-picker/locale/ga_IE.d.ts +0 -3
- package/es/time-picker/locale/ga_IE.js +0 -1
- package/es/time-picker/locale/gl_ES.d.ts +0 -3
- package/es/time-picker/locale/gl_ES.js +0 -1
- package/es/time-picker/locale/he_IL.d.ts +0 -3
- package/es/time-picker/locale/he_IL.js +0 -1
- package/es/time-picker/locale/hi_IN.d.ts +0 -3
- package/es/time-picker/locale/hi_IN.js +0 -1
- package/es/time-picker/locale/hr_HR.d.ts +0 -3
- package/es/time-picker/locale/hr_HR.js +0 -1
- package/es/time-picker/locale/hu_HU.d.ts +0 -3
- package/es/time-picker/locale/hu_HU.js +0 -1
- package/es/time-picker/locale/id_ID.d.ts +0 -3
- package/es/time-picker/locale/id_ID.js +0 -1
- package/es/time-picker/locale/is_IS.d.ts +0 -3
- package/es/time-picker/locale/is_IS.js +0 -1
- package/es/time-picker/locale/it_IT.d.ts +0 -3
- package/es/time-picker/locale/it_IT.js +0 -1
- package/es/time-picker/locale/ja_JP.d.ts +0 -3
- package/es/time-picker/locale/ja_JP.js +0 -1
- package/es/time-picker/locale/ka_GE.d.ts +0 -3
- package/es/time-picker/locale/ka_GE.js +0 -1
- package/es/time-picker/locale/kk_KZ.d.ts +0 -3
- package/es/time-picker/locale/kk_KZ.js +0 -1
- package/es/time-picker/locale/km_KH.d.ts +0 -3
- package/es/time-picker/locale/km_KH.js +0 -1
- package/es/time-picker/locale/kmr_IQ.d.ts +0 -3
- package/es/time-picker/locale/kmr_IQ.js +0 -1
- package/es/time-picker/locale/kn_IN.d.ts +0 -3
- package/es/time-picker/locale/kn_IN.js +0 -1
- package/es/time-picker/locale/ko_KR.d.ts +0 -3
- package/es/time-picker/locale/ko_KR.js +0 -1
- package/es/time-picker/locale/lt_LT.d.ts +0 -3
- package/es/time-picker/locale/lt_LT.js +0 -1
- package/es/time-picker/locale/lv_LV.d.ts +0 -3
- package/es/time-picker/locale/lv_LV.js +0 -1
- package/es/time-picker/locale/mk_MK.d.ts +0 -3
- package/es/time-picker/locale/mk_MK.js +0 -1
- package/es/time-picker/locale/ml_IN.d.ts +0 -3
- package/es/time-picker/locale/ml_IN.js +0 -1
- package/es/time-picker/locale/mn_MN.d.ts +0 -3
- package/es/time-picker/locale/mn_MN.js +0 -1
- package/es/time-picker/locale/ms_MY.d.ts +0 -3
- package/es/time-picker/locale/ms_MY.js +0 -1
- package/es/time-picker/locale/my_MM.d.ts +0 -3
- package/es/time-picker/locale/my_MM.js +0 -1
- package/es/time-picker/locale/nb_NO.d.ts +0 -3
- package/es/time-picker/locale/nb_NO.js +0 -1
- package/es/time-picker/locale/nl_BE.d.ts +0 -3
- package/es/time-picker/locale/nl_BE.js +0 -1
- package/es/time-picker/locale/nl_NL.d.ts +0 -3
- package/es/time-picker/locale/nl_NL.js +0 -1
- package/es/time-picker/locale/pl_PL.d.ts +0 -3
- package/es/time-picker/locale/pl_PL.js +0 -1
- package/es/time-picker/locale/pt_BR.d.ts +0 -3
- package/es/time-picker/locale/pt_BR.js +0 -1
- package/es/time-picker/locale/pt_PT.d.ts +0 -3
- package/es/time-picker/locale/pt_PT.js +0 -1
- package/es/time-picker/locale/ro_RO.d.ts +0 -3
- package/es/time-picker/locale/ro_RO.js +0 -1
- package/es/time-picker/locale/ru_RU.d.ts +0 -4
- package/es/time-picker/locale/ru_RU.js +0 -1
- package/es/time-picker/locale/si_LK.d.ts +0 -3
- package/es/time-picker/locale/si_LK.js +0 -1
- package/es/time-picker/locale/sk_SK.d.ts +0 -3
- package/es/time-picker/locale/sk_SK.js +0 -1
- package/es/time-picker/locale/sl_SI.d.ts +0 -3
- package/es/time-picker/locale/sl_SI.js +0 -1
- package/es/time-picker/locale/sr_RS.d.ts +0 -3
- package/es/time-picker/locale/sr_RS.js +0 -1
- package/es/time-picker/locale/sv_SE.d.ts +0 -3
- package/es/time-picker/locale/sv_SE.js +0 -1
- package/es/time-picker/locale/ta_IN.d.ts +0 -3
- package/es/time-picker/locale/ta_IN.js +0 -1
- package/es/time-picker/locale/th_TH.d.ts +0 -3
- package/es/time-picker/locale/th_TH.js +0 -1
- package/es/time-picker/locale/tk_TK.d.ts +0 -3
- package/es/time-picker/locale/tk_TK.js +0 -1
- package/es/time-picker/locale/tr_TR.d.ts +0 -3
- package/es/time-picker/locale/tr_TR.js +0 -1
- package/es/time-picker/locale/uk_UA.d.ts +0 -3
- package/es/time-picker/locale/uk_UA.js +0 -1
- package/es/time-picker/locale/ur_PK.d.ts +0 -3
- package/es/time-picker/locale/ur_PK.js +0 -1
- package/es/time-picker/locale/uz_UZ.d.ts +0 -3
- package/es/time-picker/locale/uz_UZ.js +0 -1
- package/es/time-picker/locale/vi_VN.d.ts +0 -3
- package/es/time-picker/locale/vi_VN.js +0 -1
- package/es/time-picker/locale/zh_CN.d.ts +0 -3
- package/es/time-picker/locale/zh_CN.js +0 -1
- package/es/time-picker/locale/zh_TW.d.ts +0 -3
- package/es/time-picker/locale/zh_TW.js +0 -1
- package/es/timeline/Timeline.d.ts +0 -20
- package/es/timeline/Timeline.js +0 -48
- package/es/timeline/TimelineItem.d.ts +0 -20
- package/es/timeline/TimelineItem.js +0 -40
- package/es/timeline/TimelineItemList.d.ts +0 -7
- package/es/timeline/TimelineItemList.js +0 -40
- package/es/timeline/index.d.ts +0 -4
- package/es/timeline/index.js +0 -48
- package/es/timeline/style/index.d.ts +0 -31
- package/es/timeline/style/index.js +0 -43
- package/es/timeline/useItems.d.ts +0 -4
- package/es/timeline/useItems.js +0 -1
- package/es/tooltip/PurePanel.d.ts +0 -7
- package/es/tooltip/PurePanel.js +0 -49
- package/es/tooltip/index.d.ts +0 -80
- package/es/tooltip/index.js +0 -49
- package/es/tooltip/style/index.d.ts +0 -13
- package/es/tooltip/style/index.js +0 -44
- package/es/tooltip/util.d.ts +0 -6
- package/es/tooltip/util.js +0 -1
- package/es/tour/PurePanel.d.ts +0 -6
- package/es/tour/PurePanel.js +0 -56
- package/es/tour/index.d.ts +0 -7
- package/es/tour/index.js +0 -56
- package/es/tour/interface.d.ts +0 -31
- package/es/tour/interface.js +0 -0
- package/es/tour/panelRender.d.ts +0 -12
- package/es/tour/panelRender.js +0 -47
- package/es/tour/style/index.d.ts +0 -28
- package/es/tour/style/index.js +0 -35
- package/es/transfer/ListBody.d.ts +0 -17
- package/es/transfer/ListBody.js +0 -117
- package/es/transfer/ListItem.d.ts +0 -15
- package/es/transfer/ListItem.js +0 -46
- package/es/transfer/hooks/useData.d.ts +0 -5
- package/es/transfer/hooks/useData.js +0 -1
- package/es/transfer/hooks/useSelection.d.ts +0 -9
- package/es/transfer/hooks/useSelection.js +0 -1
- package/es/transfer/index.d.ts +0 -91
- package/es/transfer/index.js +0 -153
- package/es/transfer/interface.d.ts +0 -7
- package/es/transfer/interface.js +0 -0
- package/es/transfer/list.d.ts +0 -48
- package/es/transfer/list.js +0 -153
- package/es/transfer/operation.d.ts +0 -17
- package/es/transfer/operation.js +0 -47
- package/es/transfer/search.d.ts +0 -11
- package/es/transfer/search.js +0 -65
- package/es/transfer/style/index.d.ts +0 -36
- package/es/transfer/style/index.js +0 -35
- package/es/tree/DirectoryTree.d.ts +0 -16
- package/es/tree/DirectoryTree.js +0 -48
- package/es/tree/Tree.d.ts +0 -136
- package/es/tree/Tree.js +0 -48
- package/es/tree/index.d.ts +0 -16
- package/es/tree/index.js +0 -48
- package/es/tree/style/directory.d.ts +0 -3
- package/es/tree/style/directory.js +0 -1
- package/es/tree/style/index.d.ts +0 -57
- package/es/tree/style/index.js +0 -43
- package/es/tree/utils/dictUtil.d.ts +0 -13
- package/es/tree/utils/dictUtil.js +0 -1
- package/es/tree/utils/dropIndicator.d.ts +0 -11
- package/es/tree/utils/dropIndicator.js +0 -1
- package/es/tree/utils/iconUtil.d.ts +0 -13
- package/es/tree/utils/iconUtil.js +0 -1
- package/es/tree-select/index.d.ts +0 -61
- package/es/tree-select/index.js +0 -86
- package/es/tree-select/style/index.d.ts +0 -6
- package/es/tree-select/style/index.js +0 -43
- package/es/type/index.d.ts +0 -1
- package/es/type/index.js +0 -356
- package/es/typography/Base/CopyBtn.d.ts +0 -13
- package/es/typography/Base/CopyBtn.js +0 -49
- package/es/typography/Base/Ellipsis.d.ts +0 -18
- package/es/typography/Base/Ellipsis.js +0 -1
- package/es/typography/Base/EllipsisTooltip.d.ts +0 -10
- package/es/typography/Base/EllipsisTooltip.js +0 -49
- package/es/typography/Base/index.d.ts +0 -59
- package/es/typography/Base/index.js +0 -83
- package/es/typography/Base/util.d.ts +0 -10
- package/es/typography/Base/util.js +0 -1
- package/es/typography/Editable.d.ts +0 -20
- package/es/typography/Editable.js +0 -74
- package/es/typography/Link.d.ts +0 -7
- package/es/typography/Link.js +0 -83
- package/es/typography/Paragraph.d.ts +0 -6
- package/es/typography/Paragraph.js +0 -83
- package/es/typography/Text.d.ts +0 -7
- package/es/typography/Text.js +0 -83
- package/es/typography/Title.d.ts +0 -8
- package/es/typography/Title.js +0 -83
- package/es/typography/Typography.d.ts +0 -19
- package/es/typography/Typography.js +0 -56
- package/es/typography/hooks/useCopyClick.d.ts +0 -11
- package/es/typography/hooks/useCopyClick.js +0 -1
- package/es/typography/hooks/useMergedConfig.d.ts +0 -1
- package/es/typography/hooks/useMergedConfig.js +0 -1
- package/es/typography/hooks/usePrevious.d.ts +0 -2
- package/es/typography/hooks/usePrevious.js +0 -1
- package/es/typography/hooks/useTooltipProps.d.ts +0 -61
- package/es/typography/hooks/useTooltipProps.js +0 -1
- package/es/typography/index.d.ts +0 -13
- package/es/typography/index.js +0 -83
- package/es/typography/style/index.d.ts +0 -18
- package/es/typography/style/index.js +0 -51
- package/es/typography/style/mixins.d.ts +0 -9
- package/es/typography/style/mixins.js +0 -6
- package/es/upload/Dragger.d.ts +0 -10
- package/es/upload/Dragger.js +0 -80
- package/es/upload/Upload.d.ts +0 -23
- package/es/upload/Upload.js +0 -80
- package/es/upload/UploadList/ListItem.d.ts +0 -28
- package/es/upload/UploadList/ListItem.js +0 -49
- package/es/upload/UploadList/index.d.ts +0 -8
- package/es/upload/UploadList/index.js +0 -57
- package/es/upload/index.d.ts +0 -13
- package/es/upload/index.js +0 -80
- package/es/upload/interface.d.ts +0 -138
- package/es/upload/interface.js +0 -0
- package/es/upload/style/dragger.d.ts +0 -4
- package/es/upload/style/dragger.js +0 -7
- package/es/upload/style/index.d.ts +0 -16
- package/es/upload/style/index.js +0 -66
- package/es/upload/style/list.d.ts +0 -4
- package/es/upload/style/list.js +0 -4
- package/es/upload/style/motion.d.ts +0 -4
- package/es/upload/style/motion.js +0 -10
- package/es/upload/style/picture.d.ts +0 -5
- package/es/upload/style/picture.js +0 -12
- package/es/upload/style/rtl.d.ts +0 -4
- package/es/upload/style/rtl.js +0 -1
- package/es/upload/utils.d.ts +0 -8
- package/es/upload/utils.js +0 -2
- package/es/utils/common.d.ts +0 -73
- package/es/utils/common.js +0 -4
- package/es/utils/index.d.ts +0 -2
- package/es/utils/index.js +0 -4
- package/es/utils/moneyFormat.d.ts +0 -38
- package/es/utils/moneyFormat.js +0 -1
- package/es/version/index.d.ts +0 -2
- package/es/version/index.js +0 -1
- package/es/watermark/context.d.ts +0 -8
- package/es/watermark/context.js +0 -1
- package/es/watermark/index.d.ts +0 -26
- package/es/watermark/index.js +0 -35
- package/es/watermark/useClips.d.ts +0 -7
- package/es/watermark/useClips.js +0 -1
- package/es/watermark/useRafDebounce.d.ts +0 -4
- package/es/watermark/useRafDebounce.js +0 -1
- package/es/watermark/useWatermark.d.ts +0 -13
- package/es/watermark/useWatermark.js +0 -1
- package/es/watermark/utils.d.ts +0 -7
- package/es/watermark/utils.js +0 -1
- package/umd/index.min.js +0 -629
package/es/anchor/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import*as T from'react';import T__default,{createContext,useContext}from'react';import Eo from'classnames';import Io from'rc-util/lib/hooks/useEvent';import Tn from'scroll-into-view-if-needed';import Wo from'rc-util/lib/raf';import'rc-util/lib/warning';import At from'rc-resize-observer';import mn from'rc-util/lib/omit';import {createTheme,useCacheToken,unit,useStyleRegister}from'@ant-design/cssinjs';import Jr from'@ant-design/icons/lib/components/Context';import qr from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-pagination/lib/locale/en_US';import fr from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Ar from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Qr from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';function We(e){return e!=null&&e===e.window}var ar=e=>{if(typeof window>"u")return 0;let o=0;return We(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!We(e)&&typeof o!="number"&&(o=(e.ownerDocument??e).documentElement?.scrollTop),o},Oe=ar;function $o(e,o,r,n){let t=r-o;return e/=n/2,e<1?t/2*e*e*e+o:t/2*((e-=2)*e*e+2)+o}function ao(e,o={}){let{getContainer:r=()=>window,callback:n,duration:t=450}=o,l=r(),i=Oe(l),s=Date.now(),p=()=>{let c=Date.now()-s,m=$o(c>t?t:c,i,e,t);We(l)?l.scrollTo(window.pageXOffset,m):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=m:l.scrollTop=m,c<t?Wo(p):typeof n=="function"&&n();};Wo(p);}function Oo(){}var lr=Oo,Bo=T.createContext({}),Be=()=>{let e=()=>{};return e.deprecated=Oo,e},be=lr;function sr(e){let o,r=t=>()=>{o=null,e(...t);},n=(...t)=>{o==null&&(o=Wo(r(t)));};return n.cancel=()=>{Wo.cancel(o),o=null;},n}var so=sr;var Vo=createContext(void 0);({lang:{...fr}});var I="${label} is not a valid ${type}",gr={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:I,method:I,array:I,object:I,number:I,date:I,boolean:I,integer:I,float:I,regexp:I,email:I,url:I,hex:I},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}},re=gr;({...re.Modal});var Ge=[],Xo=()=>Ge.reduce((e,o)=>({...e,...o}),re.Modal);function jo(e){if(e){let o={...e};return Ge.push(o),Xo(),()=>{Ge=Ge.filter(r=>r!==o),Xo();}}({...re.Modal});}var Cr=createContext(void 0),ve=Cr;var Uo="internalMark",yr=e=>{let{locale:o={},children:r,_ANT_MARK__:n}=e;T.useEffect(()=>jo(o?.Modal),[o]);let t=T.useMemo(()=>({...o,exist:true}),[o]);return T.createElement(ve.Provider,{value:t},r)},Ko=yr;var po={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xr={...po,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},q=xr;function mo(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:l,colorInfo:i,colorPrimary:s,colorBgBase:p,colorTextBase:a}=e,c=o(s),m=o(n),d=o(t),C=o(l),P=o(i),G=r(p,a),S=e.colorLink||e.colorInfo,k=o(S),E=new TinyColor(C[1]).mix(new TinyColor(C[3]),50).toHexString();return {...G,colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:E,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:P[1],colorInfoBgHover:P[2],colorInfoBorder:P[3],colorInfoBorderHover:P[4],colorInfoHover:P[4],colorInfo:P[6],colorInfoActive:P[7],colorInfoTextHover:P[8],colorInfoText:P[9],colorInfoTextActive:P[10],colorLinkHover:k[4],colorLink:k[6],colorLinkActive:k[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var hr=e=>{let o=e,r=e,n=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:o,borderRadiusOuter:t}},qo=hr;function go(e){let{motionUnit:o,motionBase:r,borderRadius:n,lineWidth:t}=e;return {motionDurationFast:`${(r+o).toFixed(1)}s`,motionDurationMid:`${(r+o*2).toFixed(1)}s`,motionDurationSlow:`${(r+o*3).toFixed(1)}s`,lineWidthBold:t+1,...qo(n)}}var Sr=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Qo=Sr;function Yo(e){return (e+8)/e}function uo(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,l=e*Math.E**(t/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:Yo(r)}))}var Tr=e=>{let o=uo(e),r=o.map(c=>c.size),n=o.map(c=>c.lineHeight),t=r[1],l=r[0],i=r[2],s=n[1],p=n[0],a=n[2];return {fontSizeSM:l,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:a,lineHeightSM:p,fontHeight:Math.round(s*t),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(p*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Jo=Tr;function Co(e){let{sizeUnit:o,sizeStep:r}=e;return {sizeXXL:o*(r+8),sizeXL:o*(r+4),sizeLG:o*(r+2),sizeMD:o*(r+1),sizeMS:o*r,size:o*r,sizeSM:o*(r-1),sizeXS:o*(r-2),sizeXXS:o*(r-3)}}var D=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),me=(e,o)=>new TinyColor(e).darken(o).toHexString();var et=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},ot=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:D(n,.88),colorTextSecondary:D(n,.65),colorTextTertiary:D(n,.45),colorTextQuaternary:D(n,.25),colorFill:D(n,.15),colorFillSecondary:D(n,.06),colorFillTertiary:D(n,.04),colorFillQuaternary:D(n,.02),colorBgSolid:D(n,1),colorBgSolidHover:D(n,.75),colorBgSolidActive:D(n,.95),colorBgLayout:me(r,4),colorBgContainer:me(r,0),colorBgElevated:me(r,0),colorBgSpotlight:D(n,.85),colorBgBlur:"transparent",colorBorder:me(r,15),colorBorderSecondary:me(r,6)}};function ho(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(po).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,l,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...mo(e,{generateColorPalettes:et,generateNeutralColorPalettes:ot}),...Jo(e.fontSize),...Co(e),...Qo(e),...go(e)}}var Xe=createTheme(ho),Me={token:q,override:{override:q},hashed:true},Le=T__default.createContext(Me);var je="ant",Ae="anticon";var Mr=(e,o)=>o||(e?`${je}-${e}`:je),w=T.createContext({getPrefixCls:Mr,iconPrefixCls:Ae}),{Consumer:Lr}=w;var wr=`-ant-${Date.now()}-${Math.random()}`;function Er(e,o){let r={},n=(i,s)=>{let p=i.clone();return p=s?.(p)||p,p.toRgbString()},t=(i,s)=>{let p=new TinyColor(i),a=generate(p.toRgbString());r[`${s}-color`]=n(p),r[`${s}-color-disabled`]=a[1],r[`${s}-color-hover`]=a[4],r[`${s}-color-active`]=a[6],r[`${s}-color-outline`]=p.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=a[0],r[`${s}-color-deprecated-border`]=a[2];};if(o.primaryColor){t(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),s=generate(i.toRgbString());s.forEach((a,c)=>{r[`primary-${c+1}`]=a;}),r["primary-color-deprecated-l-35"]=n(i,a=>a.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,a=>a.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,a=>a.tint(20)),r["primary-color-deprecated-t-50"]=n(i,a=>a.tint(50)),r["primary-color-deprecated-f-12"]=n(i,a=>a.setAlpha(a.getAlpha()*.12));let p=new TinyColor(s[0]);r["primary-color-active-deprecated-f-30"]=n(p,a=>a.setAlpha(a.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(p,a=>a.darken(2));}return o.successColor&&t(o.successColor,"success"),o.warningColor&&t(o.warningColor,"warning"),o.errorColor&&t(o.errorColor,"error"),o.infoColor&&t(o.infoColor,"info"),`
|
|
4
|
-
:root {
|
|
5
|
-
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
|
-
`)}
|
|
7
|
-
}
|
|
8
|
-
`.trim()}function nt(e,o){let r=Er(e,o);Ar()?updateCSS(r,`${wr}-dynamic-theme`):be();}var To=T.createContext(false),it=({children:e,disabled:o})=>{let r=T.useContext(To);return T.createElement(To.Provider,{value:o??r},e)},at=To;var ko=T.createContext(void 0),lt=({children:e,size:o})=>{let r=T.useContext(ko);return T.createElement(ko.Provider,{value:o||r},e)},Re=ko;function Ir(){let e=useContext(at),o=useContext(Re);return {componentDisabled:e,componentSize:o}}var ct=Ir;var ft={version:"0.0.3"};var mt=ft.version;function Po(e){return e>=0&&e<=255}function zr(e,o){let{r,g:n,b:t,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:s,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let c=Math.round((r-i*(1-a))/a),m=Math.round((n-s*(1-a))/a),d=Math.round((t-p*(1-a))/a);if(Po(c)&&Po(m)&&Po(d))return new TinyColor({r:c,g:m,b:d,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var we=zr;function Ue(e){let{override:o,...r}=e,n={...o};Object.keys(q).forEach(d=>{delete n[d];});let t={...r,...n},l=480,i=576,s=768,p=992,a=1200,c=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:we(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:we(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:we(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:we(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
-
`,boxShadowSecondary:`
|
|
13
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
-
`,boxShadowTertiary:`
|
|
17
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
-
`,screenXS:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:a-1,screenXL:a,screenXLMin:a,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
-
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
-
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
-
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
-
`,boxShadowDrawerRight:`
|
|
25
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
-
`,boxShadowDrawerLeft:`
|
|
29
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
-
`,boxShadowDrawerUp:`
|
|
33
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
-
`,boxShadowDrawerDown:`
|
|
37
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var vo={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},$r={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},Wr={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},dt=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...l}=o,i={...n,override:t};return i=Ue(i),l&&Object.entries(l).forEach(([s,p])=>{let{theme:a,...c}=p,m=c;a&&(m=dt({...i,...c},{override:c},a)),i[s]=m;}),i};function V(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=T__default.useContext(Le),l=`${mt}-${o||""}`,i=r||Xe,[s,p,a]=useCacheToken(i,[q,e],{salt:l,override:n,getComputedToken:dt,formatToken:Ue,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:vo,ignore:$r,preserve:Wr}});return [i,a,o?p:"",s,t]}var gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ut=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),Or=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var Ct=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),yt=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,l=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...s,...i,[t]:i}}};var Ke=e=>({[`.${e}`]:{...Or(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Ee,genComponentStyleHook:Fr,genSubStyleComponent:Vr}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(w);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=V();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(w);return e??{}},getResetStyles:(e,o)=>[{"&":Ct(e)},Ke(o?.prefix.iconPrefixCls??Ae)],getCommonStyle:yt,getCompUnitless:(()=>vo)});var Xr=(e,o)=>{let[r,n]=V();return useStyleRegister({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Ke(e)])},qe=Xr;var _r={...T},{useId:St}=_r,Ur=()=>"",Kr=typeof St>"u"?Ur:St,Tt=Kr;function Mo(e,o,r){Be();let t=e||{},l=t.inherit===false||!o?{...Me,hashed:o?.hashed??Me.hashed,cssVar:o?.cssVar}:o,i=Tt();return qr(()=>{if(!e)return o;let s={...l.components};Object.keys(e.components||{}).forEach(c=>{s[c]={...s[c],...e.components[c]};});let p=`css-var-${i.replace(/:/g,"")}`,a=(t.cssVar??l.cssVar)&&{prefix:r?.prefixCls,...typeof l.cssVar=="object"?l.cssVar:{},...typeof t.cssVar=="object"?t.cssVar:{},key:typeof t.cssVar=="object"&&t.cssVar?.key||p};return {...l,...t,token:{...l.token,...t.token},components:s,cssVar:a}},[t,l],(s,p)=>s.some((a,c)=>{let m=p[c];return !Qr(a,m,true)}))}function Lo(e){let{children:o}=e,[,r]=V(),{motion:n}=r,t=T.useRef(false);return t.current=t.current||n===false,t.current?T.createElement(Provider,{motion:n},o):o}T.memo(({dropdownMatchSelectWidth:e})=>(Be().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var Pt=()=>null;var on=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],vt;function an(){return vt||je}function ln(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var sn=e=>{let{prefixCls:o,iconPrefixCls:r,theme:n,holderRender:t}=e;o!==void 0&&(vt=o),n&&(ln(n)?(nt(an(),n)):n);};var cn=e=>{let{children:o,csp:r,autoInsertSpaceInButton:n,alert:t,anchor:l,form:i,locale:s,componentSize:p,direction:a,space:c,splitter:m,virtual:d,dropdownMatchSelectWidth:C,popupMatchSelectWidth:P,popupOverflow:G,legacyLocale:S,parentContext:k,iconPrefixCls:E,theme:X,componentDisabled:A,segmented:z,statistic:N,spin:H,calendar:Q,carousel:$,cascader:W,collapse:Z,typography:ue,checkbox:ne,descriptions:b,divider:j,drawer:ie,skeleton:Ce,steps:ye,image:_,layout:ee,list:xe,mentions:he,modal:Se,progress:L,result:g,slider:x,breadcrumb:O,menu:U,pagination:ae,input:Ze,textArea:eo,empty:ze,badge:Ne,radio:oo,rate:to,switch:f,transfer:h,avatar:R,message:Y,tag:Te,table:oe,card:B,tabs:te,timeline:He,timePicker:Ft,upload:Vt,notification:Gt,tree:Xt,colorPicker:jt,datePicker:_t,rangePicker:Ut,flex:Kt,wave:qt,dropdown:Qt,warning:Yt,tour:Jt,variant:Zt,inputNumber:er,treeSelect:or}=e,Do=T.useCallback((v,F)=>{let{prefixCls:ce}=e;if(F)return F;let pe=ce||k.getPrefixCls("");return v?`${pe}-${v}`:pe},[k.getPrefixCls,e.prefixCls]),ke=E||k.iconPrefixCls||Ae,Pe=r||k.csp;qe(ke,Pe);let ro=Mo(X,k.theme,{prefixCls:Do("")}),no={csp:Pe,autoInsertSpaceInButton:n,alert:t,anchor:l,locale:s||S,direction:a,space:c,splitter:m,virtual:d,popupMatchSelectWidth:P??C,popupOverflow:G,getPrefixCls:Do,iconPrefixCls:ke,theme:ro,segmented:z,statistic:N,spin:H,calendar:Q,carousel:$,cascader:W,collapse:Z,typography:ue,checkbox:ne,descriptions:b,divider:j,drawer:ie,skeleton:Ce,steps:ye,image:_,input:Ze,textArea:eo,layout:ee,list:xe,mentions:he,modal:Se,progress:L,result:g,slider:x,breadcrumb:O,menu:U,pagination:ae,empty:ze,badge:Ne,radio:oo,rate:to,switch:f,transfer:h,avatar:R,message:Y,tag:Te,table:oe,card:B,tabs:te,timeline:He,timePicker:Ft,upload:Vt,notification:Gt,tree:Xt,colorPicker:jt,datePicker:_t,rangePicker:Ut,flex:Kt,wave:qt,dropdown:Qt,warning:Yt,tour:Jt,variant:Zt,inputNumber:er,treeSelect:or},le={...k};Object.keys(no).forEach(v=>{no[v]!==void 0&&(le[v]=no[v]);}),on.forEach(v=>{let F=e[v];F&&(le[v]=F);}),typeof n<"u"&&(le.button={autoInsertSpace:n,...le.button});let se=qr(()=>le,le,(v,F)=>{let ce=Object.keys(v),pe=Object.keys(F);return ce.length!==pe.length||ce.some($e=>v[$e]!==F[$e])}),tr=T.useMemo(()=>({prefixCls:ke,csp:Pe}),[ke,Pe]),M=T.createElement(T.Fragment,null,T.createElement(Pt,{dropdownMatchSelectWidth:C}),o),zo=T.useMemo(()=>merge(re.Form?.defaultValidateMessages||{},se.locale?.Form?.defaultValidateMessages||{},se.form?.validateMessages||{},i?.validateMessages||{}),[se,i?.validateMessages]);Object.keys(zo).length>0&&(M=T.createElement(Vo.Provider,{value:zo},M)),s&&(M=T.createElement(Ko,{locale:s,_ANT_MARK__:Uo},M)),(M=T.createElement(Jr.Provider,{value:tr},M)),p&&(M=T.createElement(lt,{size:p},M)),M=T.createElement(Lo,null,M);let rr=T.useMemo(()=>{let{algorithm:v,token:F,components:ce,cssVar:pe,...$e}=ro||{},No=v&&(!Array.isArray(v)||v.length>0)?createTheme(v):Xe,io={};Object.entries(ce||{}).forEach(([nr,ir])=>{let K={...ir};"algorithm"in K&&(K.algorithm===true?K.theme=No:(Array.isArray(K.algorithm)||typeof K.algorithm=="function")&&(K.theme=createTheme(K.algorithm)),delete K.algorithm),io[nr]=K;});let Ho={...q,...F};return {...$e,theme:No,token:Ho,components:io,override:{override:Ho,...io},cssVar:pe}},[ro]);return X&&(M=T.createElement(Le.Provider,{value:rr},M)),se.warning&&(M=T.createElement(Bo.Provider,{value:se.warning},M)),A!==void 0&&(M=T.createElement(it,{disabled:A},M)),T.createElement(w.Provider,{value:se},M)},Ie=e=>{let o=T.useContext(w),r=T.useContext(ve);return T.createElement(cn,{parentContext:o,legacyLocale:r,...e})};Ie.ConfigContext=w;Ie.SizeContext=Re;Ie.config=sn;Ie.useConfig=ct;Object.defineProperty(Ie,"SizeContext",{get:()=>(Re)});var pn=e=>{let{componentCls:o}=e;return {[o]:{position:"fixed",zIndex:e.zIndexPopup}}},fn=e=>({zIndexPopup:e.zIndexBase+10}),Mt=Ee("Affix",pn,fn);function De(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Ao(e,o,r){if(r!==void 0&&Math.round(o.top)>Math.round(e.top)-r)return r+o.top}function Ro(e,o,r){if(r!==void 0&&Math.round(o.bottom)<Math.round(e.bottom)+r){let n=window.innerHeight-o.bottom;return r+n}}var Rt=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function dn(){return typeof window<"u"?window:null}var wt=0,Et=1,gn=T__default.forwardRef((e,o)=>{let{style:r,offsetTop:n,offsetBottom:t,prefixCls:l,className:i,rootClassName:s,children:p,target:a,onChange:c}=e,{getPrefixCls:m,getTargetContainer:d}=T__default.useContext(w),C=m("affix",l),[P,G]=T__default.useState(false),[S,k]=T__default.useState(),[E,X]=T__default.useState(),A=T__default.useRef(wt),z=T__default.useRef(null),N=T__default.useRef(null),H=T__default.useRef(null),Q=T__default.useRef(null),$=T__default.useRef(null),W=a??d??dn,Z=t===void 0&&n===void 0?0:n,ue=()=>{if(A.current!==Et||!Q.current||!H.current||!W)return;let L=W();if(L){let g={status:wt},x=De(H.current);if(x.top===0&&x.left===0&&x.width===0&&x.height===0)return;let O=De(L),U=Ao(x,O,Z),ae=Ro(x,O,t);U!==void 0?(g.affixStyle={position:"fixed",top:U,width:x.width,height:x.height},g.placeholderStyle={width:x.width,height:x.height}):ae!==void 0&&(g.affixStyle={position:"fixed",bottom:ae,width:x.width,height:x.height},g.placeholderStyle={width:x.width,height:x.height}),g.lastAffix=!!g.affixStyle,P!==g.lastAffix&&c?.(g.lastAffix),A.current=g.status,k(g.affixStyle),X(g.placeholderStyle),G(g.lastAffix);}},ne=()=>{A.current=Et,ue();},b=so(()=>{ne();}),j=so(()=>{if(W&&S){let L=W();if(L&&H.current){let g=De(L),x=De(H.current),O=Ao(x,g,Z),U=Ro(x,g,t);if(O!==void 0&&S.top===O||U!==void 0&&S.bottom===U)return}}ne();}),ie=()=>{let L=W?.();L&&(Rt.forEach(g=>{N.current&&z.current?.removeEventListener(g,N.current),L?.addEventListener(g,j);}),z.current=L,N.current=j);},Ce=()=>{$.current&&(clearTimeout($.current),$.current=null);let L=W?.();Rt.forEach(g=>{L?.removeEventListener(g,j),N.current&&z.current?.removeEventListener(g,N.current);}),b.cancel(),j.cancel();};T__default.useImperativeHandle(o,()=>({updatePosition:b})),T__default.useEffect(()=>($.current=setTimeout(ie),()=>Ce()),[]),T__default.useEffect(()=>{ie();},[a,S]),T__default.useEffect(()=>{b();},[a,n,t]);let[ye,_,ee]=Mt(C),xe=Eo(s,_,C,ee),he=Eo({[xe]:S}),Se=mn(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return ye(T__default.createElement(At,{onResize:b},T__default.createElement("div",{style:r,className:i,ref:H,...Se},S&&T__default.createElement("div",{style:E,"aria-hidden":"true"}),T__default.createElement("div",{className:he,ref:Q,style:S},T__default.createElement(At,{onResize:b},p)))))}),It=gn;var un=e=>{let[,,,,o]=V();return o?`${e}-css-var`:""},Dt=un;var Cn=T.createContext(void 0),Ye=Cn;var yn=e=>{let{href:o,title:r,prefixCls:n,children:t,className:l,target:i,replace:s}=e,p=T.useContext(Ye),{registerLink:a,unregisterLink:c,scrollTo:m,onClick:d,activeLink:C,direction:P}=p||{};T.useEffect(()=>(a?.(o),()=>{c?.(o);}),[o]);let G=z=>{d?.(z,{title:r,href:o}),m?.(o),s&&(z.preventDefault(),window.location.replace(o));},{getPrefixCls:S}=T.useContext(w),k=S("anchor",n),E=C===o,X=Eo(`${k}-link`,l,{[`${k}-link-active`]:E}),A=Eo(`${k}-link-title`,{[`${k}-link-title-active`]:E});return T.createElement("div",{className:X},T.createElement("a",{className:A,href:o,title:typeof r=="string"?r:"",target:i,onClick:G},r),P!=="horizontal"?t:null)},Je=yn;var xn=e=>{let{componentCls:o,holderOffsetBlock:r,motionDurationSlow:n,lineWidthBold:t,colorPrimary:l,lineType:i,colorSplit:s,calc:p}=e;return {[`${o}-wrapper`]:{marginBlockStart:p(r).mul(-1).equal(),paddingBlockStart:r,[o]:{...ut(e),position:"relative",paddingInlineStart:t,[`${o}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...gt,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${o}-link-title`]:{color:e.colorPrimary},[`${o}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${o}-wrapper-horizontal)`]:{[o]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(t)} ${i} ${s}`,content:'" "'},[`${o}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${n} ease-in-out`,width:t,backgroundColor:l,[`&${o}-ink-visible`]:{display:"inline-block"}}}},[`${o}-fixed ${o}-ink ${o}-ink`]:{display:"none"}}}},hn=e=>{let{componentCls:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:t}=e;return {[`${o}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[o]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${o}-link:first-of-type`]:{paddingInline:0},[`${o}-ink`]:{position:"absolute",bottom:0,transition:`left ${r} ease-in-out, width ${r} ease-in-out`,height:n,backgroundColor:t}}}}},Sn=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),Ht=Ee("Anchor",e=>{let{fontSize:o,fontSizeLG:r,paddingXXS:n,calc:t}=e,l=mergeToken(e,{holderOffsetBlock:n,anchorPaddingBlockSecondary:t(n).div(2).equal(),anchorTitleBlock:t(o).div(14).mul(3).equal(),anchorBallSize:t(r).div(2).equal()});return [xn(l),hn(l)]},Sn);function kn(){return window}function $t(e,o){if(!e.getClientRects().length)return 0;let r=e.getBoundingClientRect();return r.width||r.height?o===window?r.top-e.ownerDocument.documentElement.clientTop:r.top-o.getBoundingClientRect().top:r.top}var Wt=/#([\S ]+)$/,Pn=e=>{let{rootClassName:o,prefixCls:r,className:n,style:t,offsetTop:l,affix:i=true,showInkInFixed:s=false,children:p,items:a,direction:c="vertical",bounds:m,targetOffset:d,onClick:C,onChange:P,getContainer:G,getCurrentAnchor:S,replace:k}=e,[E,X]=T.useState([]),[A,z]=T.useState(null),N=T.useRef(A),H=T.useRef(null),Q=T.useRef(null),$=T.useRef(false),{direction:W,anchor:Z,getTargetContainer:ue,getPrefixCls:ne}=T.useContext(w),b=ne("anchor",r),j=Dt(b),[ie,Ce,ye]=Ht(b,j),_=G??ue??kn,ee=JSON.stringify(E),xe=Io(f=>{E.includes(f)||X(h=>[...h,f]);}),he=Io(f=>{E.includes(f)&&X(h=>h.filter(R=>R!==f));}),Se=()=>{let f=H.current?.querySelector(`.${b}-link-title-active`);if(f&&Q.current){let{style:h}=Q.current,R=c==="horizontal";h.top=R?"":`${f.offsetTop+f.clientHeight/2}px`,h.height=R?"":`${f.clientHeight}px`,h.left=R?`${f.offsetLeft}px`:"",h.width=R?`${f.clientWidth}px`:"",R&&Tn(f,{scrollMode:"if-needed",block:"nearest"});}},L=(f,h=0,R=5)=>{let Y=[],Te=_();return f.forEach(oe=>{let B=Wt.exec(oe?.toString());if(!B)return;let te=document.getElementById(B[1]);if(te){let He=$t(te,Te);He<=h+R&&Y.push({link:oe,top:He});}}),Y.length?Y.reduce((B,te)=>te.top>B.top?te:B).link:""},g=Io(f=>{if(N.current===f)return;let h=typeof S=="function"?S(f):f;z(h),N.current=h,P?.(f);}),x=T.useCallback(()=>{if($.current)return;let f=L(E,d!==void 0?d:l||0,m);g(f);},[ee,d,l]),O=T.useCallback(f=>{g(f);let h=Wt.exec(f);if(!h)return;let R=document.getElementById(h[1]);if(!R)return;let Y=_(),Te=Oe(Y),oe=$t(R,Y),B=Te+oe;B-=d!==void 0?d:l||0,$.current=true,ao(B,{getContainer:_,callback(){$.current=false;}});},[d,l]),U=Eo(Ce,ye,j,o,`${b}-wrapper`,{[`${b}-wrapper-horizontal`]:c==="horizontal",[`${b}-rtl`]:W==="rtl"},n,Z?.className),ae=Eo(b,{[`${b}-fixed`]:!i&&!s}),Ze=Eo(`${b}-ink`,{[`${b}-ink-visible`]:A}),eo={maxHeight:l?`calc(100vh - ${l}px)`:"100vh",...Z?.style,...t},ze=f=>Array.isArray(f)?f.map(h=>T.createElement(Je,{replace:k,...h,key:h.key},c==="vertical"&&ze(h.children))):null,Ne=T.createElement("div",{ref:H,className:U,style:eo},T.createElement("div",{className:ae},T.createElement("span",{className:Ze,ref:Q}),"items"in e?ze(a):p));T.useEffect(()=>{let f=_();return x(),f?.addEventListener("scroll",x),()=>{f?.removeEventListener("scroll",x);}},[ee]),T.useEffect(()=>{typeof S=="function"&&g(S(N.current||""));},[S]),T.useEffect(()=>{Se();},[c,S,ee,A]);let oo=T.useMemo(()=>({registerLink:xe,unregisterLink:he,scrollTo:O,activeLink:A,onClick:C,direction:c}),[A,C,O,c]),to=i&&typeof i=="object"?i:void 0;return ie(T.createElement(Ye.Provider,{value:oo},i?T.createElement(It,{offsetTop:l,target:_,...to},Ne):Ne))},Ot=Pn;var Bt=Ot;Bt.Link=Je;var xs=Bt;export{xs as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { GetDefaultToken } from '../../theme/internal';
|
|
2
|
-
export interface ComponentToken {
|
|
3
|
-
/**
|
|
4
|
-
* @desc 链接纵向内间距
|
|
5
|
-
* @descEN Vertical padding of link
|
|
6
|
-
*/
|
|
7
|
-
linkPaddingBlock: number;
|
|
8
|
-
/**
|
|
9
|
-
* @desc 链接横向内间距
|
|
10
|
-
* @descEN Horizontal padding of link
|
|
11
|
-
*/
|
|
12
|
-
linkPaddingInlineStart: number;
|
|
13
|
-
}
|
|
14
|
-
export declare const prepareComponentToken: GetDefaultToken<'Anchor'>;
|
|
15
|
-
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
16
|
-
export default _default;
|
package/es/anchor/style/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as xe from'react';import xe__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var E={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},j=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ge=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var W=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),N=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,l=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var P=e=>({[`.${e}`]:{...ge(),[`.${e} .${e}-icon`]:{display:"block"}}});function V(e){return (e+8)/e}function v(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:V(r)}))}var _={version:"0.0.3"};var q=_.version;var M={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},fe={...M,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},u=fe;function H(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:l,colorInfo:i,colorPrimary:c,colorBgBase:g,colorTextBase:s}=e,a=t(c),p=t(n),m=t(o),f=t(l),C=t(i),se=r(g,s),ce=e.colorLink||e.colorInfo,h=t(ce),pe=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...se,colorPrimaryBg:a[1],colorPrimaryBgHover:a[2],colorPrimaryBorder:a[3],colorPrimaryBorderHover:a[4],colorPrimaryHover:a[5],colorPrimary:a[6],colorPrimaryActive:a[7],colorPrimaryTextHover:a[8],colorPrimaryText:a[9],colorPrimaryTextActive:a[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:pe,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var de=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},Q=de;function w(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,...Q(n)}}var Ce=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},K=Ce;var ue=e=>{let t=v(e),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),o=r[1],l=r[0],i=r[2],c=n[1],g=n[0],s=n[2];return {fontSizeSM:l,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:s,lineHeightSM:g,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(g*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Y=ue;function A(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var d=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),y=(e,t)=>new TinyColor(e).darken(t).toHexString();var Z=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ee=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:d(n,.88),colorTextSecondary:d(n,.65),colorTextTertiary:d(n,.45),colorTextQuaternary:d(n,.25),colorFill:d(n,.15),colorFillSecondary:d(n,.06),colorFillTertiary:d(n,.04),colorFillQuaternary:d(n,.02),colorBgSolid:d(n,1),colorBgSolidHover:d(n,.75),colorBgSolidActive:d(n,.95),colorBgLayout:y(r,4),colorBgContainer:y(r,0),colorBgElevated:y(r,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:y(r,15),colorBorderSecondary:y(r,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(M).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,l,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...H(e,{generateColorPalettes:Z,generateNeutralColorPalettes:ee}),...Y(e.fontSize),...A(e),...K(e),...w(e)}}var oe=createTheme(D),te={token:u,override:{override:u},hashed:true},L=xe__default.createContext(te);function F(e){return e>=0&&e<=255}function Te(e,t){let{r,g:n,b:o,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:c,b:g}=new TinyColor(t).toRgb();for(let s=.01;s<=1;s+=.01){let a=Math.round((r-i*(1-s))/s),p=Math.round((n-c*(1-s))/s),m=Math.round((o-g*(1-s))/s);if(F(a)&&F(p)&&F(m))return new TinyColor({r:a,g:p,b:m,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var S=Te;function T(e){let{override:t,...r}=e,n={...t};Object.keys(u).forEach(m=>{delete n[m];});let o={...r,...n},l=480,i=576,c=768,g=992,s=1200,a=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:S(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:S(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:S(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:S(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
-
`,boxShadowSecondary:`
|
|
8
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
-
`,boxShadowTertiary:`
|
|
12
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
-
`,screenXS:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:g-1,screenLG:g,screenLGMin:g,screenLGMax:s-1,screenXL:s,screenXLMin:s,screenXLMax:a-1,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
-
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
-
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
-
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
-
`,boxShadowDrawerRight:`
|
|
20
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
-
`,boxShadowDrawerLeft:`
|
|
24
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
-
`,boxShadowDrawerUp:`
|
|
28
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
-
`,boxShadowDrawerDown:`
|
|
32
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var X={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Pe={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},ve={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},re=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...l}=t,i={...n,override:o};return i=T(i),l&&Object.entries(l).forEach(([c,g])=>{let{theme:s,...a}=g,p=a;s&&(p=re({...i,...a},{override:a},s)),i[c]=p;}),i};function x(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=xe__default.useContext(L),l=`${q}-${t||""}`,i=r||oe,[c,g,s]=useCacheToken(i,[u,e],{salt:l,override:n,getComputedToken:re,formatToken:T,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:X,ignore:Pe,preserve:ve}});return [i,s,t?g:"",c,o]}var ne="ant",G="anticon";var Me=(e,t)=>t||(e?`${ne}-${e}`:ne),b=xe.createContext({getPrefixCls:Me,iconPrefixCls:G}),{Consumer:Io}=b;var{genStyleHooks:O,genComponentStyleHook:He,genSubStyleComponent:we}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(b);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=x();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(b);return e??{}},getResetStyles:(e,t)=>[{"&":W(e)},P(t?.prefix.iconPrefixCls??G)],getCommonStyle:N,getCompUnitless:(()=>X)});var Ae=e=>{let{componentCls:t,holderOffsetBlock:r,motionDurationSlow:n,lineWidthBold:o,colorPrimary:l,lineType:i,colorSplit:c,calc:g}=e;return {[`${t}-wrapper`]:{marginBlockStart:g(r).mul(-1).equal(),paddingBlockStart:r,[t]:{...j(e),position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...E,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(o)} ${i} ${c}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${n} ease-in-out`,width:o,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Be=e=>{let{componentCls:t,motionDurationSlow:r,lineWidthBold:n,colorPrimary:o}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${r} ease-in-out, width ${r} ease-in-out`,height:n,backgroundColor:o}}}}},Ie=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),mt=O("Anchor",e=>{let{fontSize:t,fontSizeLG:r,paddingXXS:n,calc:o}=e,l=mergeToken(e,{holderOffsetBlock:n,anchorPaddingBlockSecondary:o(n).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(r).div(2).equal()});return [Ae(l),Be(l)]},Ie);export{mt as default,Ie as prepareComponentToken};
|
package/es/app/context.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ConfigOptions as MessageConfig, MessageInstance } from '../message/interface';
|
|
3
|
-
import type { HookAPI as ModalHookAPI } from '../modal/useModal';
|
|
4
|
-
import type { NotificationConfig, NotificationInstance } from '../notification/interface';
|
|
5
|
-
export interface AppConfig {
|
|
6
|
-
message?: MessageConfig;
|
|
7
|
-
notification?: NotificationConfig;
|
|
8
|
-
}
|
|
9
|
-
export declare const AppConfigContext: React.Context<AppConfig>;
|
|
10
|
-
export interface useAppProps {
|
|
11
|
-
message: MessageInstance;
|
|
12
|
-
notification: NotificationInstance;
|
|
13
|
-
modal: ModalHookAPI;
|
|
14
|
-
}
|
|
15
|
-
declare const AppContext: React.Context<useAppProps>;
|
|
16
|
-
export default AppContext;
|
package/es/app/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from'react';var i=o.createContext({}),t=o.createContext({message:{},notification:{},modal:{}}),n=t;export{i as AppConfigContext,n as default};
|
package/es/app/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { AnyObject, CustomComponent } from '../_util/type';
|
|
4
|
-
import type { AppConfig, useAppProps } from './context';
|
|
5
|
-
export interface AppProps<P = AnyObject> extends AppConfig {
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
rootClassName?: string;
|
|
9
|
-
prefixCls?: string;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
component?: CustomComponent<P> | false;
|
|
12
|
-
}
|
|
13
|
-
declare const App: React.FC<AppProps> & {
|
|
14
|
-
useApp: () => useAppProps;
|
|
15
|
-
};
|
|
16
|
-
export default App;
|
package/es/app/index.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import*as k from'react';import k__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect}from'react';import yt from'classnames';import'rc-util/lib/warning';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Ws from'@ant-design/icons/lib/components/Context';import Os from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import ts from'rc-pagination/lib/locale/en_US';import es from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Ss from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import As from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import El,{Provider}from'rc-motion';import gl from'@ant-design/icons/CloseOutlined';import {useNotification,NotificationProvider}from'rc-notification';import sl from'@ant-design/icons/CheckCircleFilled';import ll from'@ant-design/icons/CloseCircleFilled';import cl from'@ant-design/icons/ExclamationCircleFilled';import pl from'@ant-design/icons/InfoCircleFilled';import ml from'@ant-design/icons/LoadingOutlined';import'react-dom';import {unmount,render}from'rc-util/lib/React/render';import xp from'rc-util/lib/hooks/useState';import Bi from'rc-util/lib/omit';import {useComposeRef,supportRef,composeRef,getNodeRef}from'rc-util/lib/ref';import Gl from'rc-util/lib/Dom/isVisible';import zl from'rc-util/lib/hooks/useEvent';import qn from'rc-util/lib/raf';import Vc from'rc-util/lib/Children/toArray';import {Color}from'@rc-component/color-picker';import'rc-util/lib/hooks/useMergedState';import Wc from'@ant-design/icons/RightOutlined';import gc from'rc-collapse';import Tm from'rc-dialog';import'rc-field-form';import Np from'rc-util/lib/pickAttrs';import'rc-util/lib/Dom/styleChecker';function tn(){}var Qa=tn,rn=k.createContext({}),ie=()=>{let e=()=>{};return e.deprecated=tn,e},Ve=Qa;var nn=createContext(void 0);var Ja={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Vo=Ja;var os={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...es},timePickerLocale:{...Vo}},jo=os;var an=jo;var j="${label} is not a valid ${type}",rs={locale:"en",Pagination:ts,DatePicker:jo,TimePicker:Vo,Calendar:an,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:j,method:j,array:j,object:j,number:j,date:j,boolean:j,integer:j,float:j,regexp:j,email:j,url:j,hex:j},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Y=rs;var _o={...Y.Modal},Uo=[],sn=()=>Uo.reduce((e,o)=>({...e,...o}),Y.Modal);function ln(e){if(e){let o={...e};return Uo.push(o),_o=sn(),()=>{Uo=Uo.filter(t=>t!==o),_o=sn();}}_o={...Y.Modal};}function Nt(){return _o}var is=createContext(void 0),je=is;var as=(e,o)=>{let t=k.useContext(je),r=k.useMemo(()=>{let i=o||Y[e],a=t?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,o,t]),n=k.useMemo(()=>{let i=t?.locale;return t?.exist&&!i?Y.locale:i},[t]);return [r,n]},Se=as;var cn="internalMark",ss=e=>{let{locale:o={},children:t,_ANT_MARK__:r}=e;k.useEffect(()=>ln(o?.Modal),[o]);let n=k.useMemo(()=>({...o,exist:true}),[o]);return k.createElement(je.Provider,{value:n},t)},pn=ss;var wt={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ls={...wt,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},se=ls;function Et(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,p=o(s),m=o(r),d=o(n),g=o(i),u=o(a),f=t(l,c),C=e.colorLink||e.colorInfo,S=o(C),y=new TinyColor(g[1]).mix(new TinyColor(g[3]),50).toHexString();return {...f,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var cs=e=>{let o=e,t=e,r=e,n=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:n}},mn=cs;function Lt(e){let{motionUnit:o,motionBase:t,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:n+1,...mn(r)}}var ps=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},dn=ps;function Ue(e){return (e+8)/e}function Ht(e){let o=new Array(10).fill(null).map((t,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:Ue(t)}))}var ms=e=>{let o=Ht(e),t=o.map(p=>p.size),r=o.map(p=>p.lineHeight),n=t[1],i=t[0],a=t[2],s=r[1],l=r[0],c=r[2];return {fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},fn=ms;function Ft(e){let{sizeUnit:o,sizeStep:t}=e;return {sizeXXL:o*(t+8),sizeXL:o*(t+4),sizeLG:o*(t+2),sizeMD:o*(t+1),sizeMS:o*t,size:o*t,sizeSM:o*(t-1),sizeXS:o*(t-2),sizeXXS:o*(t-3)}}var _=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),Ke=(e,o)=>new TinyColor(e).darken(o).toHexString();var un=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},Cn=(e,o)=>{let t=e||"#fff",r=o||"#000";return {colorBgBase:t,colorTextBase:r,colorText:_(r,.88),colorTextSecondary:_(r,.65),colorTextTertiary:_(r,.45),colorTextQuaternary:_(r,.25),colorFill:_(r,.15),colorFillSecondary:_(r,.06),colorFillTertiary:_(r,.04),colorFillQuaternary:_(r,.02),colorBgSolid:_(r,1),colorBgSolidHover:_(r,.75),colorBgSolidActive:_(r,.95),colorBgLayout:Ke(t,4),colorBgContainer:Ke(t,0),colorBgElevated:Ke(t,0),colorBgSpotlight:_(r,.85),colorBgBlur:"transparent",colorBorder:Ke(t,15),colorBorderSecondary:Ke(t,6)}};function At(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(wt).map(t=>{let r=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((n,i,a)=>(n[`${t}-${a+1}`]=r[a],n[`${t}${a+1}`]=r[a],n),{})}).reduce((t,r)=>(t={...t,...r},t),{});return {...e,...o,...Et(e,{generateColorPalettes:un,generateNeutralColorPalettes:Cn}),...fn(e.fontSize),...Ft(e),...dn(e),...Lt(e)}}var Ko=createTheme(At),Co={token:se,override:{override:se},hashed:true},yo=k__default.createContext(Co);var xe="ant",So="anticon";var Cs=(e,o)=>o||(e?`${xe}-${e}`:xe),h=k.createContext({getPrefixCls:Cs,iconPrefixCls:So}),{Consumer:ys}=h;var bs=`-ant-${Date.now()}-${Math.random()}`;function hs(e,o){let t={},r=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new TinyColor(a),c=generate(l.toRgbString());t[`${s}-color`]=r(l),t[`${s}-color-disabled`]=c[1],t[`${s}-color-hover`]=c[4],t[`${s}-color-active`]=c[6],t[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=c[0],t[`${s}-color-deprecated-border`]=c[2];};if(o.primaryColor){n(o.primaryColor,"primary");let a=new TinyColor(o.primaryColor),s=generate(a.toRgbString());s.forEach((c,p)=>{t[`primary-${p+1}`]=c;}),t["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),t["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),t["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),t["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),t["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));let l=new TinyColor(s[0]);t["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return o.successColor&&n(o.successColor,"success"),o.warningColor&&n(o.warningColor,"warning"),o.errorColor&&n(o.errorColor,"error"),o.infoColor&&n(o.infoColor,"info"),`
|
|
4
|
-
:root {
|
|
5
|
-
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
|
-
`)}
|
|
7
|
-
}
|
|
8
|
-
`.trim()}function xn(e,o){let t=hs(e,o);Ss()?updateCSS(t,`${bs}-dynamic-theme`):Ve();}var Wt=k.createContext(false),Xo=({children:e,disabled:o})=>{let t=k.useContext(Wt);return k.createElement(Wt.Provider,{value:o??t},e)},qo=Wt;var Gt=k.createContext(void 0),bn=({children:e,size:o})=>{let t=k.useContext(Gt);return k.createElement(Gt.Provider,{value:o||t},e)},we=Gt;function Ps(){let e=useContext(qo),o=useContext(we);return {componentDisabled:e,componentSize:o}}var Pn=Ps;var vn={version:"0.0.3"};var Rn=vn.version;function Vt(e){return e>=0&&e<=255}function vs(e,o){let{r:t,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new TinyColor(o).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((t-a*(1-c))/c),m=Math.round((r-s*(1-c))/c),d=Math.round((n-l*(1-c))/c);if(Vt(p)&&Vt(m)&&Vt(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:t,g:r,b:n,a:1}).toRgbString()}var xo=vs;function Qo(e){let{override:o,...t}=e,r={...o};Object.keys(se).forEach(d=>{delete r[d];});let n={...t,...r},i=480,a=576,s=768,l=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:xo(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:xo(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:xo(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:xo(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
9
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
-
`,boxShadowSecondary:`
|
|
13
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
-
`,boxShadowTertiary:`
|
|
17
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
-
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
-
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
-
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
-
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
-
`,boxShadowDrawerRight:`
|
|
25
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
-
`,boxShadowDrawerLeft:`
|
|
29
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
-
`,boxShadowDrawerUp:`
|
|
33
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
-
`,boxShadowDrawerDown:`
|
|
37
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var _t={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Ms={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},ks={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},$n=(e,o,t)=>{let r=t.getDerivativeToken(e),{override:n,...i}=o,a={...r,override:n};return a=Qo(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c,...p}=l,m=p;c&&(m=$n({...a,...p},{override:p},c)),a[s]=m;}),a};function E(){let{token:e,hashed:o,theme:t,override:r,cssVar:n}=k__default.useContext(yo),i=`${Rn}-${o||""}`,a=t||Ko,[s,l,c]=useCacheToken(a,[se,e],{salt:i,override:r,getComputedToken:$n,formatToken:Qo,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:_t,ignore:Ms,preserve:ks}});return [a,c,o?l:"",s,n]}var be=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),bo=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Mn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),kn=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),In=(e,o,t,r)=>{let n=`[class^="${o}"], [class*=" ${o}"]`,i=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...s,...a,[n]:a}}},Ns=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ze=e=>({"&:focus-visible":{...Ns(e)}}),Yo=e=>({[`.${e}`]:{...bo(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:D,genComponentStyleHook:Ut,genSubStyleComponent:Be}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(h);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,r,n]=E();return {theme:e,realToken:o,hashId:t,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(h);return e??{}},getResetStyles:(e,o)=>[{"&":kn(e)},Yo(o?.prefix.iconPrefixCls??So)],getCommonStyle:In,getCompUnitless:(()=>_t)});var Es=(e,o)=>{let[t,r]=E();return useStyleRegister({theme:t,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Yo(e)])},Jo=Es;var Hs={...k},{useId:wn}=Hs,Fs=()=>"",zs=typeof wn>"u"?Fs:wn,Bn=zs;function Kt(e,o,t){ie();let n=e||{},i=n.inherit===false||!o?{...Co,hashed:o?.hashed??Co.hashed,cssVar:o?.cssVar}:o,a=Bn();return Os(()=>{if(!e)return o;let s={...i.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let l=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:t?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||l};return {...i,...n,token:{...i.token,...n.token},components:s,cssVar:c}},[n,i],(s,l)=>s.some((c,p)=>{let m=l[p];return !As(c,m,true)}))}function Xt(e){let{children:o}=e,[,t]=E(),{motion:r}=t,n=k.useRef(false);return n.current=n.current||r===false,n.current?k.createElement(Provider,{motion:r},o):o}k.memo(({dropdownMatchSelectWidth:e})=>(ie().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var Ln=()=>null;var js=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Fn;function Xs(){return Fn||xe}function qs(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var Zs=e=>{let{prefixCls:o,iconPrefixCls:t,theme:r,holderRender:n}=e;o!==void 0&&(Fn=o),r&&(qs(r)?(xn(Xs(),r)):r);};var Qs=e=>{let{children:o,csp:t,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:p,splitter:m,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:u,popupOverflow:f,legacyLocale:C,parentContext:S,iconPrefixCls:y,theme:b,componentDisabled:P,segmented:v,statistic:x,spin:M,calendar:T,carousel:$,cascader:B,collapse:R,typography:G,checkbox:U,descriptions:ee,divider:oe,drawer:K,skeleton:ye,steps:I,image:Oe,layout:ao,list:so,mentions:te,modal:V,progress:Io,result:Ie,slider:re,breadcrumb:No,menu:lo,pagination:wo,input:Ne,textArea:Bo,empty:Eo,badge:co,radio:Lo,rate:bt,switch:Ho,transfer:ht,avatar:Fo,message:zo,tag:Pt,table:po,card:Oo,tabs:Ao,timeline:Tt,timePicker:vt,upload:Do,notification:Wo,tree:mo,colorPicker:H,datePicker:Rt,rangePicker:Oa,flex:Aa,wave:Da,dropdown:Wa,warning:Ga,tour:Va,variant:ja,inputNumber:_a,treeSelect:Ua}=e,Yr=k.useCallback((F,ne)=>{let{prefixCls:We}=e;if(ne)return ne;let Ge=We||S.getPrefixCls("");return F?`${Ge}-${F}`:Ge},[S.getPrefixCls,e.prefixCls]),fo=y||S.iconPrefixCls||So,go=t||S.csp;Jo(fo,go);let $t=Kt(b,S.theme,{prefixCls:Yr("")}),Mt={csp:go,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:s||C,direction:c,space:p,splitter:m,virtual:d,popupMatchSelectWidth:u??g,popupOverflow:f,getPrefixCls:Yr,iconPrefixCls:fo,theme:$t,segmented:v,statistic:x,spin:M,calendar:T,carousel:$,cascader:B,collapse:R,typography:G,checkbox:U,descriptions:ee,divider:oe,drawer:K,skeleton:ye,steps:I,image:Oe,input:Ne,textArea:Bo,layout:ao,list:so,mentions:te,modal:V,progress:Io,result:Ie,slider:re,breadcrumb:No,menu:lo,pagination:wo,empty:Eo,badge:co,radio:Lo,rate:bt,switch:Ho,transfer:ht,avatar:Fo,message:zo,tag:Pt,table:po,card:Oo,tabs:Ao,timeline:Tt,timePicker:vt,upload:Do,notification:Wo,tree:mo,colorPicker:H,datePicker:Rt,rangePicker:Oa,flex:Aa,wave:Da,dropdown:Wa,warning:Ga,tour:Va,variant:ja,inputNumber:_a,treeSelect:Ua},Ae={...S};Object.keys(Mt).forEach(F=>{Mt[F]!==void 0&&(Ae[F]=Mt[F]);}),js.forEach(F=>{let ne=e[F];ne&&(Ae[F]=ne);}),typeof r<"u"&&(Ae.button={autoInsertSpace:r,...Ae.button});let De=Os(()=>Ae,Ae,(F,ne)=>{let We=Object.keys(F),Ge=Object.keys(ne);return We.length!==Ge.length||We.some(Go=>F[Go]!==ne[Go])}),Ka=k.useMemo(()=>({prefixCls:fo,csp:go}),[fo,go]),A=k.createElement(k.Fragment,null,k.createElement(Ln,{dropdownMatchSelectWidth:g}),o),Jr=k.useMemo(()=>merge(Y.Form?.defaultValidateMessages||{},De.locale?.Form?.defaultValidateMessages||{},De.form?.validateMessages||{},a?.validateMessages||{}),[De,a?.validateMessages]);Object.keys(Jr).length>0&&(A=k.createElement(nn.Provider,{value:Jr},A)),s&&(A=k.createElement(pn,{locale:s,_ANT_MARK__:cn},A)),(A=k.createElement(Ws.Provider,{value:Ka},A)),l&&(A=k.createElement(bn,{size:l},A)),A=k.createElement(Xt,null,A);let Xa=k.useMemo(()=>{let{algorithm:F,token:ne,components:We,cssVar:Ge,...Go}=$t||{},en=F&&(!Array.isArray(F)||F.length>0)?createTheme(F):Ko,kt={};Object.entries(We||{}).forEach(([qa,Za])=>{let ae={...Za};"algorithm"in ae&&(ae.algorithm===true?ae.theme=en:(Array.isArray(ae.algorithm)||typeof ae.algorithm=="function")&&(ae.theme=createTheme(ae.algorithm)),delete ae.algorithm),kt[qa]=ae;});let on={...se,...ne};return {...Go,theme:en,token:on,components:kt,override:{override:on,...kt},cssVar:Ge}},[$t]);return b&&(A=k.createElement(yo.Provider,{value:Xa},A)),De.warning&&(A=k.createElement(rn.Provider,{value:De.warning},A)),P!==void 0&&(A=k.createElement(Xo,{disabled:P},A)),k.createElement(h.Provider,{value:De},A)},Qe=e=>{let o=k.useContext(h),t=k.useContext(je);return k.createElement(Qs,{parentContext:o,legacyLocale:t,...e})};Qe.ConfigContext=h;Qe.SizeContext=we;Qe.config=Zs;Qe.useConfig=Pn;Object.defineProperty(Qe,"SizeContext",{get:()=>(we)});var qt=Qe;var Ys=e=>{let[,,,,o]=E();return o?`${e}-css-var`:""},he=Ys;var el=k__default.createContext(void 0),ot=el;var le=100,tl=10,Ee=le*tl,zn={Modal:le,Drawer:le,Popover:le,Popconfirm:le,Tooltip:le,Tour:le,FloatButton:le},rl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function nl(e){return e in zn}var On=(e,o)=>{let[,t]=E(),r=k__default.useContext(ot),n=nl(e),i;if(o!==void 0)i=[o,o];else {let a=r??0;n?a+=(r?0:t.zIndexPopupBase)+zn[e]:a+=rl[e],i=[r===void 0?o:a,a];}return i};var il=e=>{let{componentCls:o,iconCls:t,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:m,marginXS:d,paddingXS:g,borderRadiusLG:u,zIndexPopup:f,contentPadding:C,contentBg:S}=e,y=`${o}-notice`,b=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),P=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),v={padding:g,textAlign:"center",[`${o}-custom-content`]:{display:"flex",alignItems:"center"},[`${o}-custom-content > ${t}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:C,background:S,borderRadius:u,boxShadow:r,pointerEvents:"all"},[`${o}-success > ${t}`]:{color:i},[`${o}-error > ${t}`]:{color:a},[`${o}-warning > ${t}`]:{color:s},[`${o}-info > ${t},
|
|
41
|
-
${o}-loading > ${t}`]:{color:l}};return [{[o]:{...be(e),color:n,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:f,[`${o}-move-up`]:{animationFillMode:"forwards"},[`
|
|
42
|
-
${o}-move-up-appear,
|
|
43
|
-
${o}-move-up-enter
|
|
44
|
-
`]:{animationName:b,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`
|
|
45
|
-
${o}-move-up-appear${o}-move-up-appear-active,
|
|
46
|
-
${o}-move-up-enter${o}-move-up-enter-active
|
|
47
|
-
`]:{animationPlayState:"running"},[`${o}-move-up-leave`]:{animationName:P,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`${o}-move-up-leave${o}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[o]:{[`${y}-wrapper`]:{...v}}},{[`${o}-notice-pure-panel`]:{...v,padding:0,textAlign:"start"}}]},al=e=>({zIndexPopup:e.zIndexPopupBase+Ee+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Zt=D("Message",e=>{let o=mergeToken(e,{height:150});return [il(o)]},al);var fl={info:k.createElement(pl,null),success:k.createElement(sl,null),error:k.createElement(ll,null),warning:k.createElement(cl,null),loading:k.createElement(ml,null)},Dn=({prefixCls:e,type:o,icon:t,children:r})=>k.createElement("div",{className:yt(`${e}-custom-content`,`${e}-${o}`)},t||fl[o],k.createElement("span",null,r));function Wn(e,o){return {motionName:o??`${e}-move-up`}}function Gn(e){let o,t=new Promise(n=>{o=e(()=>{n(true);});}),r=()=>{o?.();};return r.then=(n,i)=>t.then(n,i),r.promise=t,r}var yl=8,Sl=3,xl=({children:e,prefixCls:o})=>{let t=he(o),[r,n,i]=Zt(o,t);return r(k.createElement(NotificationProvider,{classNames:{list:yt(n,i,t)}},e))},bl=(e,{prefixCls:o,key:t})=>k.createElement(xl,{prefixCls:o,key:t},e),hl=k.forwardRef((e,o)=>{let{top:t,prefixCls:r,getContainer:n,maxCount:i,duration:a=Sl,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:m,message:d,direction:g}=k.useContext(h),u=r||p("message"),f=()=>({left:"50%",transform:"translateX(-50%)",top:t??yl}),C=()=>yt({[`${u}-rtl`]:s??g==="rtl"}),S=()=>Wn(u,l),y=k.createElement("span",{className:`${u}-close-x`},k.createElement(gl,{className:`${u}-close-icon`})),[b,P]=useNotification({prefixCls:u,style:f,className:C,motion:S,closable:false,closeIcon:y,duration:a,getContainer:()=>n?.()||m?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:bl});return k.useImperativeHandle(o,()=>({...b,prefixCls:u,message:d})),P}),Vn=0;function Pl(e){let o=k.useRef(null);ie();return [k.useMemo(()=>{let n=c=>{o.current?.close(c);},i=c=>{if(!o.current){let M=()=>{};return M.then=()=>{},M}let{open:p,prefixCls:m,message:d}=o.current,g=`${m}-notice`,{content:u,icon:f,type:C,key:S,className:y,style:b,onClose:P,...v}=c,x=S;return x==null&&(Vn+=1,x=`antd-message-${Vn}`),Gn(M=>(p({...v,key:x,content:k.createElement(Dn,{prefixCls:m,type:C,icon:f},u),placement:"top",className:yt(C&&`${g}-${C}`,y,d?.className),style:{...d?.style,...b},onClose:()=>{P?.(),M();}}),()=>{n(x);}))},s={open:i,destroy:c=>{c!==void 0?n(c):o.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(m,d,g)=>{let u;m&&typeof m=="object"&&"content"in m?u=m:u={content:m};let f,C;typeof d=="function"?C=d:(f=d,C=g);let S={onClose:C,duration:f,...u,type:c};return i(S)};s[c]=p;}),s},[]),k.createElement(hl,{key:"message-holder",...e,ref:o})]}function Yt(e){return Pl(e)}function Jt(){let[e,o]=k.useState([]),t=k.useCallback(r=>(o(n=>[...n,r]),()=>{o(n=>n.filter(i=>i!==r));}),[]);return [e,t]}var $l=(e,o)=>(render(e,o),()=>unmount(o)),Ml=$l;function er(){return Ml}var or=()=>({height:0,opacity:0}),jn=e=>{let{scrollHeight:o}=e;return {height:o,opacity:1}},kl=e=>({height:e?e.offsetHeight:0}),tr=(e,o)=>o?.deadline===true||o.propertyName==="height",Il=(e=xe)=>({motionName:`${e}-motion-collapse`,onAppearStart:or,onEnterStart:or,onAppearActive:jn,onEnterActive:jn,onLeaveStart:kl,onLeaveActive:or,onAppearEnd:tr,onEnterEnd:tr,onLeaveEnd:tr,motionDeadline:500});var Ye=(e,o,t)=>t!==void 0?t:`${e}-${o}`;var _n=Il;function Un(e){return e&&k__default.isValidElement(e)&&e.type===k__default.Fragment}var Nl=(e,o,t)=>k__default.isValidElement(e)?k__default.cloneElement(e,typeof t=="function"?t(e.props||{}):t):o;function Le(e,o){return Nl(e,e,o)}var wl=e=>{let{componentCls:o,colorPrimary:t}=e;return {[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Kn=Ut("Wave",e=>[wl(e)]);var nt=`${xe}-wave-target`;function rr(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Xn(e){let{borderTopColor:o,borderColor:t,backgroundColor:r}=getComputedStyle(e);return rr(o)?o:rr(t)?t:rr(r)?r:null}function nr(e){return Number.isNaN(e)?0:e}var Hl=e=>{let{className:o,target:t,component:r,registerUnmount:n}=e,i=k.useRef(null),a=k.useRef(null);k.useEffect(()=>{a.current=n();},[]);let[s,l]=k.useState(null),[c,p]=k.useState([]),[m,d]=k.useState(0),[g,u]=k.useState(0),[f,C]=k.useState(0),[S,y]=k.useState(0),[b,P]=k.useState(false),v={left:m,top:g,width:f,height:S,borderRadius:c.map(T=>`${T}px`).join(" ")};s&&(v["--wave-color"]=s);function x(){let T=getComputedStyle(t);l(Xn(t));let $=T.position==="static",{borderLeftWidth:B,borderTopWidth:R}=T;d($?t.offsetLeft:nr(-parseFloat(B))),u($?t.offsetTop:nr(-parseFloat(R))),C(t.offsetWidth),y(t.offsetHeight);let{borderTopLeftRadius:G,borderTopRightRadius:U,borderBottomLeftRadius:ee,borderBottomRightRadius:oe}=T;p([G,U,oe,ee].map(K=>nr(parseFloat(K))));}if(k.useEffect(()=>{if(t){let T=qn(()=>{x(),P(true);}),$;return typeof ResizeObserver<"u"&&($=new ResizeObserver(x),$.observe(t)),()=>{qn.cancel(T),$?.disconnect();}}},[]),!b)return null;let M=(r==="Checkbox"||r==="Radio")&&t?.classList.contains(nt);return k.createElement(El,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,$)=>{if($.deadline||$.propertyName==="opacity"){let B=i.current?.parentElement;a.current?.().then(()=>{B?.remove();});}return false}},({className:T},$)=>k.createElement("div",{ref:composeRef(i,$),className:yt(o,T,{"wave-quick":M}),style:v}))},Fl=(e,o)=>{let{component:t}=o;if(t==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=er(),i=null;function a(){return i}i=n(k.createElement(Hl,{...o,target:e,registerUnmount:a}),r);},Zn=Fl;var Ol=(e,o,t)=>{let{wave:r}=k.useContext(h),[,n,i]=E(),a=zl(c=>{let p=e.current;if(r?.disabled||!p)return;let m=p.querySelector(`.${nt}`)||p,{showEffect:d}=r||{};(d||Zn)(m,{className:o,token:n,component:t,event:c,hashId:i});}),s=k.useRef(null);return c=>{qn.cancel(s.current),s.current=qn(()=>{a(c);});}},Yn=Ol;var Ul=e=>{let{children:o,disabled:t,component:r}=e,{getPrefixCls:n}=useContext(h),i=useRef(null),a=n("wave"),[,s]=Kn(a),l=Yn(i,yt(a,s),r);if(k__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||t)return;let m=d=>{!Gl(d.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||l(d);};return p.addEventListener("click",m,true),()=>{p.removeEventListener("click",m,true);}},[t]),!k__default.isValidElement(o))return o??null;let c=supportRef(o)?composeRef(getNodeRef(o),i):i;return Le(o,{ref:c})},ei=Ul;var Kl=e=>{let o=k__default.useContext(we);return k__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},ho=Kl;var Xl=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ti=Xl;var ql=e=>{let{componentCls:o,antCls:t}=e;return {[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Zl=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};D("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [ql(o),Zl(o),ti(o)]},()=>({}),{resetStyle:false});var ri=k.createContext(null),ni=(e,o)=>{let t=k.useContext(ri),r=k.useMemo(()=>{if(!t)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return yt(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:r}},ii=({children:e})=>k.createElement(ri.Provider,{value:null},e);var ir=k.createContext(void 0),ec=e=>{let{getPrefixCls:o,direction:t}=k.useContext(h),{prefixCls:r,size:n,className:i,...a}=e,s=o("btn-group",r),[,,l]=E(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}let p=yt(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:t==="rtl"},i,l);return k.createElement(ir.Provider,{value:n},k.createElement("div",{...a,className:p}))},ai=ec;var si=/^[\u4E00-\u9FA5]{2}$/,at=si.test.bind(si);function st(e){return e==="danger"?{danger:true}:{type:e}}function li(e){return typeof e=="string"}function lt(e){return e==="text"||e==="link"}function oc(e,o){if(e==null)return;let t=o?" ":"";return typeof e!="string"&&typeof e!="number"&&li(e.type)&&at(e.props.children)?Le(e,{children:e.props.children.split("").join(t)}):li(e)?at(e)?k__default.createElement("span",null,e.split("").join(t)):k__default.createElement("span",null,e):Un(e)?k__default.createElement("span",null,e):e}function ci(e,o){let t=false,r=[];return k__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(t&&a){let s=r.length-1,l=r[s];r[s]=`${l}${n}`;}else r.push(n);t=a;}),k__default.Children.map(r,n=>oc(n,o))}var ic=forwardRef((e,o)=>{let{className:t,style:r,children:n,prefixCls:i}=e,a=yt(`${i}-icon`,t);return k__default.createElement("span",{ref:o,className:a,style:r},n)}),ct=ic;var pi=forwardRef((e,o)=>{let{prefixCls:t,className:r,style:n,iconClassName:i}=e,a=yt(`${t}-loading-icon`,r);return k__default.createElement(ct,{prefixCls:t,className:a,style:n,ref:o},k__default.createElement(ml,{className:i}))}),ar=()=>({width:0,opacity:0,transform:"scale(0)"}),sr=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cc=e=>{let{prefixCls:o,loading:t,existIcon:r,className:n,style:i,mount:a}=e,s=!!t;return r?k__default.createElement(pi,{prefixCls:o,className:n,style:i}):k__default.createElement(El,{visible:s,motionName:`${o}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:ar,onAppearActive:sr,onEnterStart:ar,onEnterActive:sr,onLeaveStart:sr,onLeaveActive:ar},({className:l,style:c},p)=>{let m={...i,...c};return k__default.createElement(pi,{prefixCls:o,className:yt(n,l),style:m,ref:p})})},di=cc;var fi=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),pc=e=>{let{componentCls:o,fontSize:t,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:t}},fi(`${o}-primary`,n),fi(`${o}-danger`,i)]}},gi=pc;var mc=(e,o)=>e?.replace(/[^\w/]/g,"").slice(0,o?8:6)||"",dc=(e,o)=>e?mc(e,o):"",vo=class e{metaColor;colors;cleared=false;constructor(o){if(o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=o.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=o.cleared;return}let t=Array.isArray(o);t&&o.length?(this.colors=o.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(t?"":o),(!o||t&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return dc(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(o){return !o||this.isGradient()!==o.isGradient()?false:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((t,r)=>{let n=o.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===o.toHexString()}};var uc=k.forwardRef((e,o)=>{let{getPrefixCls:t}=k.useContext(h),{prefixCls:r,className:n,showArrow:i=true}=e,a=t("collapse",r),s=yt({[`${a}-no-arrow`]:!i},n);return k.createElement(gc.Panel,{ref:o,...e,prefixCls:a,className:s})}),Ci=uc;var Cc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
48
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
49
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),lr=Cc;var yc=e=>({animationDuration:e,animationFillMode:"both"}),Sc=e=>({animationDuration:e,animationFillMode:"both"}),eo=(e,o,t,r,n=false)=>{let i=n?"&":"";return {[`
|
|
50
|
-
${i}${e}-enter,
|
|
51
|
-
${i}${e}-appear
|
|
52
|
-
`]:{...yc(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...Sc(r),animationPlayState:"paused"},[`
|
|
53
|
-
${i}${e}-enter${e}-enter-active,
|
|
54
|
-
${i}${e}-appear${e}-appear-active
|
|
55
|
-
`]:{animationName:o,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}};var Si=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),xi=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),cr=(e,o=false)=>{let{antCls:t}=e,r=`${t}-fade`,n=o?"&":"";return [eo(r,Si,xi,e.motionDurationMid,o),{[`
|
|
56
|
-
${n}${r}-enter,
|
|
57
|
-
${n}${r}-appear
|
|
58
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}});new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}});new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}});new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}});var bi=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hi=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),pr=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),mr=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Pi=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ti=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),vi=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ri=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$i=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Mi=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ki=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ii=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Hc={zoom:{inKeyframes:bi,outKeyframes:hi},"zoom-big":{inKeyframes:pr,outKeyframes:mr},"zoom-big-fast":{inKeyframes:pr,outKeyframes:mr},"zoom-left":{inKeyframes:vi,outKeyframes:Ri},"zoom-right":{inKeyframes:$i,outKeyframes:Mi},"zoom-up":{inKeyframes:Pi,outKeyframes:Ti},"zoom-down":{inKeyframes:ki,outKeyframes:Ii}},dr=(e,o)=>{let{antCls:t}=e,r=`${t}-${o}`,{inKeyframes:n,outKeyframes:i}=Hc[o];return [eo(r,n,i,e.motionDurationMid),{[`
|
|
59
|
-
${r}-enter,
|
|
60
|
-
${r}-appear
|
|
61
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Fc=e=>{let{componentCls:o,contentBg:t,padding:r,headerBg:n,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:p,colorBorder:m,colorText:d,colorTextHeading:g,colorTextDisabled:u,fontSizeLG:f,lineHeight:C,lineHeightLG:S,marginSM:y,paddingSM:b,paddingLG:P,paddingXS:v,motionDurationSlow:x,fontSizeIcon:M,contentPadding:T,fontHeight:$,fontHeightLG:B}=e,R=`${unit(c)} ${p} ${m}`;return {[o]:{...be(e),backgroundColor:n,border:R,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${o}-item`]:{borderBottom:R,"&:last-child":{[`
|
|
62
|
-
&,
|
|
63
|
-
& > ${o}-header`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`> ${o}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:C,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${o}-header-text`]:{flex:"auto"},[`${o}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${o}-arrow`]:{...bo(),fontSize:M,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${o}-header-text`]:{marginInlineEnd:"auto"}},[`${o}-collapsible-header`]:{cursor:"default",[`${o}-header-text`]:{flex:"none",cursor:"pointer"}},[`${o}-collapsible-icon`]:{cursor:"unset",[`${o}-expand-icon`]:{cursor:"pointer"}}},[`${o}-content`]:{color:d,backgroundColor:t,borderTop:R,[`& > ${o}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${o}-item`]:{[`> ${o}-header`]:{padding:a,paddingInlineStart:v,[`> ${o}-expand-icon`]:{marginInlineStart:e.calc(b).sub(v).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:b}}},"&-large":{[`> ${o}-item`]:{fontSize:f,lineHeight:S,[`> ${o}-header`]:{padding:s,paddingInlineStart:r,[`> ${o}-expand-icon`]:{height:B,marginInlineStart:e.calc(P).sub(r).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:P}}},[`${o}-item:last-child`]:{borderBottom:0,[`> ${o}-content`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`& ${o}-item-disabled > ${o}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${o}-icon-position-end`]:{[`& > ${o}-item`]:{[`> ${o}-header`]:{[`${o}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}}}},zc=e=>{let{componentCls:o}=e,t=`> ${o}-item > ${o}-header ${o}-arrow`;return {[`${o}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},Oc=e=>{let{componentCls:o,headerBg:t,paddingXXS:r,colorBorder:n}=e;return {[`${o}-borderless`]:{backgroundColor:t,border:0,[`> ${o}-item`]:{borderBottom:`1px solid ${n}`},[`
|
|
64
|
-
> ${o}-item:last-child,
|
|
65
|
-
> ${o}-item:last-child ${o}-header
|
|
66
|
-
`]:{borderRadius:0},[`> ${o}-item:last-child`]:{borderBottom:0},[`> ${o}-item > ${o}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${o}-item > ${o}-content > ${o}-content-box`]:{paddingTop:r}}}},Ac=e=>{let{componentCls:o,paddingSM:t}=e;return {[`${o}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${o}-item`]:{borderBottom:0,[`> ${o}-content`]:{backgroundColor:"transparent",border:0,[`> ${o}-content-box`]:{paddingBlock:t}}}}}},Dc=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Ni=D("Collapse",e=>{let o=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Fc(o),Oc(o),Ac(o),zc(o),lr(o)]},Dc);var jc=k.forwardRef((e,o)=>{let{getPrefixCls:t,direction:r,collapse:n}=k.useContext(h),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=true,ghost:p,size:m,expandIconPosition:d="start",children:g,expandIcon:u}=e,f=ho(R=>m??R??"middle"),C=t("collapse",i),S=t(),[y,b,P]=Ni(C),v=k.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),x=u??n?.expandIcon,M=k.useCallback((R={})=>{let G=typeof x=="function"?x(R):k.createElement(Wc,{rotate:R.isActive?90:void 0,"aria-label":R.isActive?"expanded":"collapsed"});return Le(G,()=>({className:yt(G?.props?.className,`${C}-arrow`)}))},[x,C]),T=yt(`${C}-icon-position-${v}`,{[`${C}-borderless`]:!c,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!p,[`${C}-${f}`]:f!=="middle"},n?.className,a,s,b,P),$={..._n(S),motionAppear:false,leavedClassName:`${C}-content-hidden`},B=k.useMemo(()=>g?Vc(g).map((R,G)=>{let U=R.props;if(U?.disabled){let ee=R.key??String(G),oe={...Bi(R.props,["disabled"]),key:ee,collapsible:U.collapsible??"disabled"};return Le(R,oe)}return R}):null,[g]);return y(k.createElement(gc,{ref:o,openMotion:$,...Bi(e,["rootClassName"]),expandIcon:M,prefixCls:C,className:T,style:{...n?.style,...l}},B))});Object.assign(jc,{Panel:Ci});var Ei=(e,o)=>{let{r:t,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(o).toHsv();return i<=.5?a.v>.5:t*.299+r*.587+n*.114>192};var pt=e=>{let{paddingInline:o,onlyIconSize:t}=e;return mergeToken(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},mt=e=>{let o=e.contentFontSize??e.fontSize,t=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??Ue(o),i=e.contentLineHeightSM??Ue(t),a=e.contentLineHeightLG??Ue(r),s=Ei(new vo(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:o,contentFontSizeSM:t,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-o*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-t*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var Kc=e=>{let{componentCls:o,iconCls:t,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return {[o]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${o}-icon > svg`]:bo(),"> a":{color:"currentColor"},"&:not(:disabled)":Ze(e),[`&${o}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${o}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${o}-icon-only`]:{paddingInline:0,[`&${o}-compact-item`]:{flex:"none"},[`&${o}-round`]:{width:"auto"}},[`&${o}-loading`]:{opacity:n,cursor:"default"},[`${o}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${o}-icon-end)`]:{[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Li=(e,o,t)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":o,"&:active":t}}),Xc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),qc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Zc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gr=(e,o,t,r,n,i,a,s)=>({[`&${e}-background-ghost`]:{color:t||void 0,background:o,borderColor:r||void 0,boxShadow:"none",...Li(e,{background:o,...a},{background:o,...s}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),Qc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...Zc(e)}}),Yc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),dt=(e,o,t,r)=>({...(r&&["link","text"].includes(r)?Yc:Qc)(e),...Li(e.componentCls,o,t)}),ur=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:o,background:t,...dt(e,r,n)}}),Cr=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:o,background:t,...dt(e,r,n)}}),yr=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Sr=(e,o,t,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:o,...dt(e,t,r)}}),oo=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-${t}`]:{color:o,boxShadow:"none",...dt(e,r,n,t)}}),Jc=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...ur(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...yr(e),...Sr(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...oo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...gr(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),ep=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Cr(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...yr(e),...Sr(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...oo(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...gr(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),op=e=>({color:e.colorError,boxShadow:e.dangerShadow,...ur(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Cr(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...yr(e),...Sr(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...oo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...oo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...gr(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),tp=e=>{let{componentCls:o}=e;return {[`${o}-color-default`]:Jc(e),[`${o}-color-primary`]:ep(e),[`${o}-color-dangerous`]:op(e)}},rp=e=>({...Cr(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...oo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...ur(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...oo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),xr=(e,o="")=>{let{componentCls:t,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return [{[o]:{fontSize:n,height:r,padding:`${unit(l)} ${unit(a)}`,borderRadius:i,[`&${t}-icon-only`]:{width:r,[s]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${t}${t}-circle${o}`]:Xc(e)},{[`${t}${t}-round${o}`]:qc(e)}]},np=e=>{let o=mergeToken(e,{fontSize:e.contentFontSize});return xr(o,e.componentCls)},ip=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return xr(o,`${e.componentCls}-sm`)},ap=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return xr(o,`${e.componentCls}-lg`)},sp=e=>{let{componentCls:o}=e;return {[o]:{[`&${o}-block`]:{width:"100%"}}}},Hi=D("Button",e=>{let o=pt(e);return [Kc(o),np(o),ip(o),ap(o),sp(o),tp(o),rp(o),gi(o)]},mt,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function lp(e,o,t){let{focusElCls:r,focus:n,borderElCls:i}=t,a=i?"> *":"",s=["hover",n?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[s]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function cp(e,o,t){let{borderElCls:r}=t,n=r?`> ${r}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Fi(e,o={focus:true}){let{componentCls:t}=e,r=`${t}-compact`;return {[r]:{...lp(e,r,o),...cp(t,r,o)}}}function pp(e,o){return {[`&-item:not(${o}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mp(e,o){return {[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function zi(e){let o=`${e.componentCls}-compact-vertical`;return {[o]:{...pp(e,o),...mp(e.componentCls,o)}}}var dp=e=>{let{componentCls:o,colorPrimaryHover:t,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=s=>({[`${o}-compact${s?"-vertical":""}-item${o}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:t,content:'""',width:s?"100%":r,height:s?r:"100%"}}});return {...a(),...a(true)}},Oi=Be(["Button","compact"],e=>{let o=pt(e);return [Fi(o),zi(o),dp(o)]},mt);function Cp(e){if(typeof e=="object"&&e){let o=e?.delay;return o=!Number.isNaN(o)&&typeof o=="number"?o:0,{loading:o<=0,delay:o}}return {loading:!!e,delay:0}}var yp={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Sp=k__default.forwardRef((e,o)=>{let{loading:t=false,prefixCls:r,color:n,variant:i,type:a,danger:s=false,shape:l="default",size:c,styles:p,disabled:m,className:d,rootClassName:g,children:u,icon:f,iconPosition:C="start",ghost:S=false,block:y=false,htmlType:b="button",classNames:P,style:v={},autoInsertSpace:x,autoFocus:M,...T}=e,$=a||"default",[B,R]=useMemo(()=>{if(n&&i)return [n,i];let H=yp[$]||[];return s?["danger",H[1]]:H},[a,n,i,s]),U=B==="danger"?"dangerous":B,{getPrefixCls:ee,direction:oe,button:K}=useContext(h),ye=x??K?.autoInsertSpace??true,I=ee("btn",r),[Oe,ao,so]=Hi(I),te=useContext(qo),V=m??te,Io=useContext(ir),Ie=useMemo(()=>Cp(t),[t]),[re,No]=useState(Ie.loading),[lo,wo]=useState(false),Ne=useRef(null),Bo=useComposeRef(o,Ne),Eo=Children.count(u)===1&&!f&&!lt(R),co=useRef(true);k__default.useEffect(()=>(co.current=false,()=>{co.current=true;}),[]),useEffect(()=>{let H=null;Ie.delay>0?H=setTimeout(()=>{H=null,No(true);},Ie.delay):No(Ie.loading);function Rt(){H&&(clearTimeout(H),H=null);}return Rt},[Ie]),useEffect(()=>{if(!Ne.current||!ye)return;let H=Ne.current.textContent||"";Eo&&at(H)?lo||wo(true):lo&&wo(false);}),useEffect(()=>{M&&Ne.current&&Ne.current.focus();},[]);let Lo=k__default.useCallback(H=>{if(re||V){H.preventDefault();return}e.onClick?.(H);},[e.onClick,re,V]),{compactSize:bt,compactItemClassnames:Ho}=ni(I,oe),ht={large:"lg",small:"sm",middle:void 0},Fo=ho(H=>c??bt??Io??H),zo=Fo?ht[Fo]??"":"",Pt=re?"loading":f,po=Bi(T,["navigate"]),Oo=yt(I,ao,so,{[`${I}-${l}`]:l!=="default"&&l,[`${I}-${$}`]:$,[`${I}-dangerous`]:s,[`${I}-color-${U}`]:U,[`${I}-variant-${R}`]:R,[`${I}-${zo}`]:zo,[`${I}-icon-only`]:!u&&u!==0&&!!Pt,[`${I}-background-ghost`]:S&&!lt(R),[`${I}-loading`]:re,[`${I}-two-chinese-chars`]:lo&&ye&&!re,[`${I}-block`]:y,[`${I}-rtl`]:oe==="rtl",[`${I}-icon-end`]:C==="end"},Ho,d,g,K?.className),Ao={...K?.style,...v},Tt=yt(P?.icon,K?.classNames?.icon),vt={...p?.icon||{},...K?.styles?.icon||{}},Do=f&&!re?k__default.createElement(ct,{prefixCls:I,className:Tt,style:vt},f):k__default.createElement(di,{existIcon:!!f,prefixCls:I,loading:re,mount:co.current}),Wo=u||u===0?ci(u,Eo&&ye):null;if(po.href!==void 0)return Oe(k__default.createElement("a",{...po,className:yt(Oo,{[`${I}-disabled`]:V}),href:V?void 0:po.href,style:Ao,onClick:Lo,ref:Bo,tabIndex:V?-1:0},Do,Wo));let mo=k__default.createElement("button",{...T,type:b,className:Oo,style:Ao,onClick:Lo,disabled:V,ref:Bo},Do,Wo,Ho&&k__default.createElement(Oi,{prefixCls:I}));return lt(R)||(mo=k__default.createElement(ei,{component:"Button",disabled:re},mo)),Oe(mo)}),Tr=Sp;Tr.Group=ai;Tr.__ANT_BUTTON=true;var Gi=Tr;var to=Gi;function vr(e){return !!e?.then}var bp=e=>{let{type:o,children:t,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:p}=e,m=k.useRef(false),d=k.useRef(null),[g,u]=xp(false),f=(...y)=>{i?.(...y);};k.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{d.current?.focus({preventScroll:true});})),()=>{y&&clearTimeout(y);}},[]);let C=y=>{vr(y)&&(u(true),y.then((...b)=>{u(false,true),f(...b),m.current=false;},b=>{if(u(false,true),m.current=false,!l?.())return Promise.reject(b)}));},S=y=>{if(m.current)return;if(m.current=true,!p){f();return}let b;if(s){if(b=p(y),c&&!vr(b)){m.current=false,f(y);return}}else if(p.length)b=p(i),m.current=false;else if(b=p(),!vr(b)){f();return}C(b);};return k.createElement(to,{...st(o),onClick:S,loading:g,prefixCls:r,...n,ref:d},t)},ft=bp;var de=k__default.createContext({}),{Provider:gt}=de;var vp=()=>{let{autoFocusButton:e,cancelButtonProps:o,cancelTextLocale:t,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=useContext(de);return n?k__default.createElement(ft,{isSilent:r,actionFn:s,close:(...c)=>{a?.(...c),l?.(false);},autoFocus:e==="cancel",buttonProps:o,prefixCls:`${i}-btn`},t):null},Rr=vp;var Mp=()=>{let{autoFocusButton:e,close:o,isSilent:t,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=useContext(de);return k__default.createElement(ft,{isSilent:t,type:a||"primary",actionFn:l,close:(...c)=>{o?.(...c),s?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},$r=Mp;k.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});k.createContext(null);k.createContext({prefixCls:""});var Vi=k.createContext({}),ji=({children:e,status:o,override:t})=>{let r=k.useContext(Vi),n=k.useMemo(()=>{let i={...r};return t&&delete i.isFormItemInput,o&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[o,t,r]);return k.createElement(Vi.Provider,{value:n},e)};k.createContext(void 0);var kp=e=>{let{space:o,form:t,children:r}=e;if(r==null)return null;let n=r;return t&&(n=k__default.createElement(ji,{override:true,status:true},n)),o&&(n=k__default.createElement(ii,null,n)),n},Ui=kp;function Mr(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function Ki(e){let{closable:o,closeIcon:t}=e||{};return k__default.useMemo(()=>{if(!o&&(o===false||t===false||t===null))return false;if(o===void 0&&t===void 0)return null;let r={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return o&&typeof o=="object"&&(r={...r,...o}),r},[o,t])}function Xi(...e){let o={};return e.forEach(t=>{t&&Object.keys(t).forEach(r=>{t[r]!==void 0&&(o[r]=t[r]);});}),o}var wp={};function kr(e,o,t=wp){let r=Ki(e),n=Ki(o),i=typeof r!="boolean"?!!r?.disabled:false,a=k__default.useMemo(()=>({closeIcon:k__default.createElement(gl,null),...t}),[t]),s=k__default.useMemo(()=>r===false?false:r?Xi(a,n,r):n===false?false:n?Xi(a,n):a.closable?a:false,[r,n,a]);return k__default.useMemo(()=>{if(s===false)return [false,null,i];let{closeIconRender:l}=a,{closeIcon:c}=s,p=c;if(p!=null){l&&(p=l(c));let m=Np(s,true);Object.keys(m).length&&(p=k__default.isValidElement(p)?k__default.cloneElement(p,m):k__default.createElement("span",{...m},p));}return [true,p,i]},[s,a])}var qi=()=>window.document.documentElement;var Bp=e=>{let{prefixCls:o,className:t,style:r,size:n,shape:i}=e,a=yt({[`${o}-lg`]:n==="large",[`${o}-sm`]:n==="small"}),s=yt({[`${o}-circle`]:i==="circle",[`${o}-square`]:i==="square",[`${o}-round`]:i==="round"}),l=k.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return k.createElement("span",{className:yt(o,a,s,t),style:{...l,...r}})},$e=Bp;var Hp=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ct=e=>({height:e,lineHeight:unit(e)}),ro=e=>({width:e,...Ct(e)}),Fp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Hp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Nr=(e,o)=>({width:o(e).mul(5).equal(),minWidth:o(e).mul(5).equal(),...Ct(e)}),zp=e=>{let{skeletonAvatarCls:o,gradientFromColor:t,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:t,...ro(r)},[`${o}${o}-circle`]:{borderRadius:"50%"},[`${o}${o}-lg`]:{...ro(n)},[`${o}${o}-sm`]:{...ro(i)}}},Op=e=>{let{controlHeight:o,borderRadiusSM:t,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,...Nr(o,s)},[`${r}-lg`]:{...Nr(n,s)},[`${r}-sm`]:{...Nr(i,s)}}},Zi=e=>({width:e,...Ct(e)}),Ap=e=>{let{skeletonImageCls:o,imageSizeBase:t,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[o]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...Zi(i(t).mul(2).equal()),[`${o}-path`]:{fill:"#bfbfbf"},[`${o}-svg`]:{...Zi(t),maxWidth:i(t).mul(4).equal(),maxHeight:i(t).mul(4).equal()},[`${o}-svg${o}-svg-circle`]:{borderRadius:"50%"}},[`${o}${o}-circle`]:{borderRadius:"50%"}}},wr=(e,o,t)=>{let{skeletonButtonCls:r}=e;return {[`${t}${r}-circle`]:{width:o,minWidth:o,borderRadius:"50%"},[`${t}${r}-round`]:{borderRadius:o}}},Br=(e,o)=>({width:o(e).mul(2).equal(),minWidth:o(e).mul(2).equal(),...Ct(e)}),Dp=e=>{let{borderRadiusSM:o,skeletonButtonCls:t,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...Br(r,s)},...wr(e,r,t),[`${t}-lg`]:{...Br(n,s)},...wr(e,n,`${t}-lg`),[`${t}-sm`]:{...Br(i,s)},...wr(e,i,`${t}-sm`)}},Wp=e=>{let{componentCls:o,skeletonAvatarCls:t,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:p,gradientFromColor:m,padding:d,marginSM:g,borderRadius:u,titleHeight:f,blockRadius:C,paragraphLiHeight:S,controlHeightXS:y,paragraphMarginTop:b}=e;return {[o]:{display:"table",width:"100%",[`${o}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[t]:{display:"inline-block",verticalAlign:"top",background:m,...ro(l)},[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:{...ro(c)},[`${t}-sm`]:{...ro(p)}},[`${o}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:f,background:m,borderRadius:C,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:m,borderRadius:C,"+ li":{marginBlockStart:y}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${o}-content`]:{[`${r}, ${n} > li`]:{borderRadius:u}}},[`${o}-with-avatar ${o}-content`]:{[r]:{marginBlockStart:g,[`+ ${n}`]:{marginBlockStart:b}}},[`${o}${o}-element`]:{display:"inline-block",width:"auto",...Dp(e),...zp(e),...Op(e),...Ap(e)},[`${o}${o}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${o}${o}-active`]:{[`
|
|
67
|
-
${r},
|
|
68
|
-
${n} > li,
|
|
69
|
-
${t},
|
|
70
|
-
${i},
|
|
71
|
-
${a},
|
|
72
|
-
${s}
|
|
73
|
-
`]:{...Fp(e)}}}},Gp=e=>{let{colorFillContent:o,colorFill:t}=e,r=o,n=t;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Q=D("Skeleton",e=>{let{componentCls:o,calc:t}=e,r=mergeToken(e,{skeletonAvatarCls:`${o}-avatar`,skeletonTitleCls:`${o}-title`,skeletonParagraphCls:`${o}-paragraph`,skeletonButtonCls:`${o}-button`,skeletonInputCls:`${o}-input`,skeletonImageCls:`${o}-image`,imageSizeBase:t(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [Wp(r)]},Gp,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var _p=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=k.useContext(h),l=s("skeleton",o),[c,p,m]=Q(l),d=Bi(e,["prefixCls","className"]),g=yt(l,`${l}-element`,{[`${l}-active`]:n},t,r,p,m);return c(k.createElement("div",{className:g},k.createElement($e,{prefixCls:`${l}-avatar`,shape:i,size:a,...d})))},Qi=_p;var Xp=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:s}=k.useContext(h),l=s("skeleton",o),[c,p,m]=Q(l),d=Bi(e,["prefixCls"]),g=yt(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},t,r,p,m);return c(k.createElement("div",{className:g},k.createElement($e,{prefixCls:`${l}-button`,size:a,...d})))},Yi=Xp;var qp="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Zp=e=>{let{prefixCls:o,className:t,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=k.useContext(h),s=a("skeleton",o),[l,c,p]=Q(s),m=yt(s,`${s}-element`,{[`${s}-active`]:i},t,r,c,p);return l(k.createElement("div",{className:m},k.createElement("div",{className:yt(`${s}-image`,t),style:n},k.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},k.createElement("title",null,"Image placeholder"),k.createElement("path",{d:qp,className:`${s}-image-path`})))))},ea=Zp;var Jp=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:s}=k.useContext(h),l=s("skeleton",o),[c,p,m]=Q(l),d=Bi(e,["prefixCls"]),g=yt(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},t,r,p,m);return c(k.createElement("div",{className:g},k.createElement($e,{prefixCls:`${l}-input`,size:a,...d})))},oa=Jp;var em=e=>{let{prefixCls:o,className:t,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:s}=k.useContext(h),l=s("skeleton",o),[c,p,m]=Q(l),d=yt(l,`${l}-element`,{[`${l}-active`]:i},p,t,r,m);return c(k.createElement("div",{className:d},k.createElement("div",{className:yt(`${l}-image`,t),style:n},a)))},ra=em;var tm=(e,o)=>{let{width:t,rows:r=2}=o;if(Array.isArray(t))return t[e];if(r-1===e)return t},rm=e=>{let{prefixCls:o,className:t,style:r,rows:n}=e,i=[...new Array(n)].map((a,s)=>k.createElement("li",{key:s,style:{width:tm(s,e)}}));return k.createElement("ul",{className:yt(o,t),style:r},i)},na=rm;var im=({prefixCls:e,className:o,width:t,style:r})=>k.createElement("h3",{className:yt(e,o),style:{width:t,...r}}),aa=im;function Lr(e){return e&&typeof e=="object"?e:{}}function sm(e,o){return e&&!o?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lm(e,o){return !e&&o?{width:"38%"}:e&&o?{width:"50%"}:{}}function cm(e,o){let t={};return (!e||!o)&&(t.width="61%"),!e&&o?t.rows=3:t.rows=2,t}var no=e=>{let{prefixCls:o,loading:t,className:r,rootClassName:n,style:i,children:a,avatar:s=false,title:l=true,paragraph:c=true,active:p,round:m}=e,{getPrefixCls:d,direction:g,skeleton:u}=k.useContext(h),f=d("skeleton",o),[C,S,y]=Q(f);if(t||!("loading"in e)){let b=!!s,P=!!l,v=!!c,x;if(b){let $={prefixCls:`${f}-avatar`,...sm(P,v),...Lr(s)};x=k.createElement("div",{className:`${f}-header`},k.createElement($e,{...$}));}let M;if(P||v){let $;if(P){let R={prefixCls:`${f}-title`,...lm(b,v),...Lr(l)};$=k.createElement(aa,{...R});}let B;if(v){let R={prefixCls:`${f}-paragraph`,...cm(b,P),...Lr(c)};B=k.createElement(na,{...R});}M=k.createElement("div",{className:`${f}-content`},$,B);}let T=yt(f,{[`${f}-with-avatar`]:b,[`${f}-active`]:p,[`${f}-rtl`]:g==="rtl",[`${f}-round`]:m},u?.className,r,n,S,y);return C(k.createElement("div",{className:T,style:{...u?.style,...i}},x,M))}return a??null};no.Button=Yi;no.Avatar=Qi;no.Input=oa;no.Image=ea;no.Node=ra;var sa=no;var la=sa;function ca(){}var mm=k.createContext({add:ca,remove:ca});function pa(e){let o=k.useContext(mm),t=k.useRef(null);return zl(n=>{if(n){let i=e?n.querySelector(e):n;o.add(i),t.current=i;}else o.remove(t.current);})}var gm=()=>{let{cancelButtonProps:e,cancelTextLocale:o,onCancel:t}=useContext(de);return k__default.createElement(to,{onClick:t,...e},o)},Hr=gm;var ym=()=>{let{confirmLoading:e,okButtonProps:o,okType:t,okTextLocale:r,onOk:n}=useContext(de);return k__default.createElement(to,{...st(t),loading:e,onClick:n,...o},r)},Fr=ym;function ma(e,o){return k__default.createElement("span",{className:`${e}-close-x`},o||k__default.createElement(gl,{className:`${e}-close-icon`}))}var da=e=>{let{okText:o,okType:t="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[p]=Se("Modal",Nt()),m=o||p?.okText,d=r||p?.cancelText,g={confirmLoading:n,okButtonProps:s,cancelButtonProps:l,okTextLocale:m,cancelTextLocale:d,okType:t,onOk:i,onCancel:a},u=k__default.useMemo(()=>g,[...Object.values(g)]),f;return typeof c=="function"||typeof c>"u"?(f=k__default.createElement(k__default.Fragment,null,k__default.createElement(Fr,null),k__default.createElement(Hr,null)),typeof c=="function"&&(f=c(f,{OkBtn:Fr,CancelBtn:Hr})),f=k__default.createElement(gt,{value:u},f)):f=c,k__default.createElement(Xo,{disabled:false},f)};function fa(e){return {position:e,inset:0}}var xm=e=>{let{componentCls:o,antCls:t}=e;return [{[`${o}-root`]:{[`${o}${t}-zoom-enter, ${o}${t}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${o}${t}-zoom-leave ${o}-content`]:{pointerEvents:"none"},[`${o}-mask`]:{...fa("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${o}-hidden`]:{display:"none"}},[`${o}-wrap`]:{...fa("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${o}-root`]:cr(e)}]},bm=e=>{let{componentCls:o}=e;return [{[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl"},[`${o}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[o]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[o]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${o}-centered`]:{[o]:{flex:1}}}}},{[o]:{...be(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${o}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${o}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${o}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Ze(e)},[`${o}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${o}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${o}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${o}-open`]:{overflow:"hidden"}}},{[`${o}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${o}-content,
|
|
74
|
-
${o}-body,
|
|
75
|
-
${o}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${o}-confirm-body`]:{marginBottom:"auto"}}}]},hm=e=>{let{componentCls:o}=e;return {[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl",[`${o}-confirm-body`]:{direction:"rtl"}}}}},zr=e=>{let o=e.padding,t=e.fontSizeHeading5,r=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(r).mul(t).equal()).add(e.calc(o).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Or=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${unit(e.padding)} ${unit(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${unit(e.paddingXS)} ${unit(e.padding)}`:0,footerBorderTop:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${unit(e.padding*2)} ${unit(e.padding*2)} ${unit(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ga=D("Modal",e=>{let o=zr(e);return [bm(o),hm(o),xm(o),dr(o,"zoom")]},Or,{unitless:{titleLineHeight:true}});var Ar,vm=e=>{Ar={x:e.pageX,y:e.pageY},setTimeout(()=>{Ar=null;},100);};qi()&&document.documentElement.addEventListener("click",vm,true);var Rm=e=>{let{getPopupContainer:o,getPrefixCls:t,direction:r,modal:n}=k.useContext(h),i=te=>{let{onCancel:V}=e;V?.(te);},a=te=>{let{onOk:V}=e;V?.(te);},{prefixCls:s,className:l,rootClassName:c,open:p,wrapClassName:m,centered:d,getContainer:g,focusTriggerAfterClose:u=true,style:f,visible:C,width:S=520,footer:y,classNames:b,styles:P,children:v,loading:x,...M}=e,T=t("modal",s),$=t(),B=he(T),[R,G,U]=ga(T,B),ee=yt(m,{[`${T}-centered`]:!!d,[`${T}-wrap-rtl`]:r==="rtl"}),oe=y!==null&&!x?k.createElement(da,{...e,onOk:a,onCancel:i}):null,[K,ye,I]=kr(Mr(e),Mr(n),{closable:true,closeIcon:k.createElement(gl,{className:`${T}-close-icon`}),closeIconRender:te=>ma(T,te)}),Oe=pa(`.${T}-content`),[ao,so]=On("Modal",M.zIndex);return R(k.createElement(Ui,{form:true,space:true},k.createElement(ot.Provider,{value:so},k.createElement(Tm,{width:S,...M,zIndex:ao,getContainer:g===void 0?o:g,prefixCls:T,rootClassName:yt(G,c,U,B),footer:oe,visible:p??C,mousePosition:M.mousePosition??Ar,onClose:i,closable:K&&{disabled:I,closeIcon:ye},closeIcon:ye,focusTriggerAfterClose:u,transitionName:Ye($,"zoom",e.transitionName),maskTransitionName:Ye($,"fade",e.maskTransitionName),className:yt(G,l,n?.className),style:{...n?.style,...f},classNames:{...n?.classNames,...b,wrapper:yt(ee,b?.wrapper)},styles:{...n?.styles,...P},panelRef:Oe},x?k.createElement(la,{active:true,title:false,paragraph:{rows:4},className:`${T}-body-skeleton`}):v))))},ua=Rm;var $m=e=>{let{componentCls:o,titleFontSize:t,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,p=`${o}-confirm`;return {[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...Mn()},[`&${o} ${o}-body`]:{padding:c},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:t,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
|
|
76
|
-
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ya=Be(["Modal","confirm"],e=>{let o=zr(e);return [$m(o)]},Or,{order:-1e3});function wm(e){let{prefixCls:o,icon:t,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c,...p}=e,m=t;if(!t&&t!==null)switch(a){case "info":m=k.createElement(pl,null);break;case "success":m=k.createElement(sl,null);break;case "error":m=k.createElement(ll,null);break;default:m=k.createElement(cl,null);}let d=s??a==="confirm",g=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Se("Modal"),f=c||u,C=r||(d?f?.okText:f?.justOkText),S=n||f?.cancelText,y={autoFocusButton:g,cancelTextLocale:S,okTextLocale:C,mergedOkCancel:d,...p},b=k.useMemo(()=>y,[...Object.values(y)]),P=k.createElement(k.Fragment,null,k.createElement(Rr,null),k.createElement($r,null)),v=e.title!==void 0&&e.title!==null,x=`${i}-body`;return k.createElement("div",{className:`${i}-body-wrapper`},k.createElement("div",{className:yt(x,{[`${x}-has-title`]:v})},m,k.createElement("div",{className:`${i}-paragraph`},v&&k.createElement("span",{className:`${i}-title`},e.title),k.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?k.createElement(gt,{value:b},k.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(P,{OkBtn:$r,CancelBtn:Rr}):P)):l,k.createElement(ya,{prefixCls:o}))}var Bm=e=>{let{close:o,zIndex:t,afterClose:r,open:n,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:p,wrapClassName:m,rootPrefixCls:d,bodyStyle:g,closable:u=false,closeIcon:f,modalRender:C,focusTriggerAfterClose:S,onConfirm:y,styles:b}=e,P=`${p}-confirm`,v=e.width||416,x=e.style||{},M=e.mask===void 0?true:e.mask,T=e.maskClosable===void 0?false:e.maskClosable,$=yt(P,`${P}-${e.type}`,{[`${P}-rtl`]:c==="rtl"},e.className),[,B]=E(),R=k.useMemo(()=>t!==void 0?t:B.zIndexPopupBase+Ee,[t,B]);return k.createElement(ua,{prefixCls:p,className:$,wrapClassName:yt({[`${P}-centered`]:!!e.centered},m),onCancel:()=>{o?.({triggerCancel:true}),y?.(false);},open:n,title:"",footer:null,transitionName:Ye(d||"","zoom",e.transitionName),maskTransitionName:Ye(d||"","fade",e.maskTransitionName),mask:M,maskClosable:T,style:x,styles:{body:g,mask:l,...b},width:v,zIndex:R,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:u,closeIcon:f,modalRender:C,focusTriggerAfterClose:S},k.createElement(wm,{...e,confirmPrefixCls:P}))},Em=e=>{let{rootPrefixCls:o,iconPrefixCls:t,direction:r,theme:n}=e;return k.createElement(qt,{prefixCls:o,iconPrefixCls:t,direction:r,theme:n},k.createElement(Bm,{...e}))},Wr=Em;function Sa(e){return {...e,type:"warning"}}function xa(e){return {...e,type:"info"}}function ba(e){return {...e,type:"success"}}function ha(e){return {...e,type:"error"}}function Pa(e){return {...e,type:"confirm"}}var Hm=({afterClose:e,config:o,...t},r)=>{let[n,i]=k.useState(true),[a,s]=k.useState(o),{direction:l,getPrefixCls:c}=k.useContext(h),p=c("modal"),m=c(),d=()=>{e(),a.afterClose?.();},g=(...C)=>{i(false),C.some(y=>y?.triggerCancel)&&a.onCancel?.(()=>{},...C.slice(1));};k.useImperativeHandle(r,()=>({destroy:g,update:C=>{s(S=>({...S,...C}));}}));let u=a.okCancel??a.type==="confirm",[f]=Se("Modal",Y.Modal);return k.createElement(Wr,{prefixCls:p,rootPrefixCls:m,...a,close:g,open:n,afterClose:d,okText:a.okText||(u?f?.okText:f?.justOkText),direction:a.direction||l,cancelText:a.cancelText||f?.cancelText,...t})},Ta=k.forwardRef(Hm);var va=0,Fm=k.memo(k.forwardRef((e,o)=>{let[t,r]=Jt();return k.useImperativeHandle(o,()=>({patchElement:r}),[]),k.createElement(k.Fragment,null,t)}));function zm(){let e=k.useRef(null),[o,t]=k.useState([]);k.useEffect(()=>{o.length&&([...o].forEach(a=>{a();}),t([]));},[o]);let r=k.useCallback(i=>function(s){va+=1;let l=k.createRef(),c,p=new Promise(f=>{c=f;}),m=false,d,g=k.createElement(Ta,{key:`modal-${va}`,config:i(s),ref:l,afterClose:()=>{d?.();},isSilent:()=>m,onConfirm:f=>{c(f);}});return d=e.current?.patchElement(g),{destroy:()=>{function f(){l.current?.destroy();}l.current?f():t(C=>[...C,f]);},update:f=>{function C(){l.current?.update(f);}l.current?C():t(S=>[...S,C]);},then:f=>(m=true,p.then(f))}},[]);return [k.useMemo(()=>({info:r(xa),success:r(ba),error:r(ha),warning:r(Sa),confirm:r(Pa)}),[]),k.createElement(Fm,{key:"modal-holder",ref:e})]}var Ra=zm;var Om=e=>{let{componentCls:o,notificationMarginEdge:t,animationMaxHeight:r}=e,n=`${o}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[o]:{[`&${o}-top, &${o}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${o}-top`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:a}},[`&${o}-bottom`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:s}},[`&${o}-topRight, &${o}-bottomRight`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:i}},[`&${o}-topLeft, &${o}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:t,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:l}}}}},$a=Om;var Ma=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Am={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Dm=(e,o)=>{let{componentCls:t}=e;return {[`${t}-${o}`]:{[`&${t}-stack > ${t}-notice-wrapper`]:{[o.startsWith("top")?"top":"bottom"]:0,[Am[o]]:{value:0,_skip_check_:true}}}}},Wm=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...o}},Gm=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...o}},Vm=e=>{let{componentCls:o}=e;return {[`${o}-stack`]:{[`& > ${o}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...Wm(e)}},[`${o}-stack:not(${o}-stack-expanded)`]:{[`& > ${o}-notice-wrapper`]:{...Gm(e)}},[`${o}-stack${o}-stack-expanded`]:{[`& > ${o}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...Ma.map(t=>Dm(e,t)).reduce((t,r)=>({...t,...r}),{})}},ka=Vm;var Vr=e=>{let{iconCls:o,componentCls:t,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:p,colorTextHeading:m,notificationBg:d,notificationPadding:g,notificationMarginEdge:u,notificationProgressBg:f,notificationProgressHeight:C,fontSize:S,lineHeight:y,width:b,notificationIconSize:P,colorText:v}=e,x=`${t}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[x]:{padding:g,width:b,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:m,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:S,color:v},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(P).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(P).equal(),fontSize:S},[`${x}-icon`]:{position:"absolute",fontSize:P,lineHeight:1,[`&-success${o}`]:{color:s},[`&-info${o}`]:{color:l},[`&-warning${o}`]:{color:c},[`&-error${o}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Ze(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:f},"&::-webkit-progress-value":{borderRadius:a,background:f}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},_m=e=>{let{componentCls:o,notificationMarginBottom:t,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${o}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:t},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[o]:{...be(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${o}-hook-holder`]:{position:"relative"},[`${o}-fade-appear-prepare`]:{opacity:"0 !important"},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[o]:{[`${a}-wrapper`]:{...Vr(e)}}}]},jr=e=>({zIndexPopup:e.zIndexPopupBase+Ee+50,width:384}),_r=e=>{let o=e.paddingMD,t=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:o,notificationPaddingHorizontal:t,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ur=D("Notification",e=>{let o=_r(e);return [_m(o),$a(o),ka(o)]},jr);Be(["Notification","PurePanel"],e=>{let o=`${e.componentCls}-notice`,t=_r(e);return {[`${o}-pure-panel`]:{...Vr(t),width:t.width,maxWidth:`calc(100vw - ${unit(e.calc(t.notificationMarginEdge).mul(2).equal())})`,margin:0}}},jr);function Kr(e,o){return o===null||o===false?null:o||k.createElement(gl,{className:`${e}-close-icon`})}var Jm={success:sl,info:pl,error:ll,warning:cl},Na=e=>{let{prefixCls:o,icon:t,type:r,message:n,description:i,btn:a,role:s="alert"}=e,l=null;return t?l=k.createElement("span",{className:`${o}-icon`},t):r&&(l=k.createElement(Jm[r]||null,{className:yt(`${o}-icon`,`${o}-icon-${r}`)})),k.createElement("div",{className:yt({[`${o}-with-icon`]:l}),role:s},l,k.createElement("div",{className:`${o}-message`},n),k.createElement("div",{className:`${o}-description`},i),a&&k.createElement("div",{className:`${o}-btn`},a))};function wa(e,o,t){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:o,bottom:"auto"};break;case "topLeft":r={left:0,top:o,bottom:"auto"};break;case "topRight":r={right:0,top:o,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case "bottomLeft":r={left:0,top:"auto",bottom:t};break;default:r={right:0,top:"auto",bottom:t};break}return r}function Ba(e){return {motionName:`${e}-fade`}}var Ea=24,rd=4.5,nd="topRight",id=({children:e,prefixCls:o})=>{let t=he(o),[r,n,i]=Ur(o,t);return r(k__default.createElement(NotificationProvider,{classNames:{list:yt(n,i,t)}},e))},ad=(e,{prefixCls:o,key:t})=>k__default.createElement(id,{prefixCls:o,key:t},e),sd=k__default.forwardRef((e,o)=>{let{top:t,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:p,pauseOnHover:m=true,showProgress:d}=e,{getPrefixCls:g,getPopupContainer:u,notification:f,direction:C}=useContext(h),[,S]=E(),y=n||g("notification"),b=T=>wa(T,t??Ea,r??Ea),P=()=>yt({[`${y}-rtl`]:s??C==="rtl"}),v=()=>Ba(y),[x,M]=useNotification({prefixCls:y,style:b,className:P,motion:v,closable:true,closeIcon:Kr(y),duration:p??rd,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:m,showProgress:d,onAllRemoved:l,renderNotifications:ad,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:S.margin}});return k__default.useImperativeHandle(o,()=>({...x,prefixCls:y,notification:f})),M});function ld(e){let o=k__default.useRef(null);ie();return [k__default.useMemo(()=>{let n=l=>{if(!o.current){return}let{open:c,prefixCls:p,notification:m}=o.current,d=`${p}-notice`,{message:g,description:u,icon:f,type:C,btn:S,className:y,style:b,role:P="alert",closeIcon:v,closable:x,...M}=l,T=Kr(d,typeof v<"u"?v:m?.closeIcon);return c({placement:e?.placement??nd,...M,content:k__default.createElement(Na,{prefixCls:d,icon:f,type:C,message:g,description:u,btn:S,role:P}),className:yt(C&&`${d}-${C}`,y,m?.className),style:{...m?.style,...b},closeIcon:T,closable:x??!!T})},a={open:n,destroy:l=>{l!==void 0?o.current?.close(l):o.current?.destroy();}};return ["success","info","warning","error"].forEach(l=>{a[l]=c=>n({...c,type:l});}),a},[]),k__default.createElement(sd,{key:"notification-holder",...e,ref:o})]}function qr(e){return ld(e)}var Zr=k__default.createContext({}),cd=k__default.createContext({message:{},notification:{},modal:{}}),Qr=cd;var pd=e=>{let{componentCls:o,colorText:t,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[o]:{color:t,fontSize:r,lineHeight:n,fontFamily:i,[`&${o}-rtl`]:{direction:"rtl"}}}},md=()=>({}),Ha=D("App",pd,md);var fd=()=>k__default.useContext(Qr),za=e=>{let{prefixCls:o,children:t,className:r,rootClassName:n,message:i,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:p}=useContext(h),m=p("app",o),[d,g,u]=Ha(m),f=yt(g,m,r,n,u,{[`${m}-rtl`]:c==="rtl"}),C=useContext(Zr),S=k__default.useMemo(()=>({message:{...C.message,...i},notification:{...C.notification,...a}}),[i,a,C.message,C.notification]),[y,b]=Yt(S.message),[P,v]=qr(S.notification),[x,M]=Ra(),T=k__default.useMemo(()=>({message:y,notification:P,modal:x}),[y,P,x]);ie()(!(u&&l===false),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let $=l===false?k__default.Fragment:l,B={className:f,style:s};return d(k__default.createElement(Qr.Provider,{value:T},k__default.createElement(Zr.Provider,{value:S},k__default.createElement($,{...l===false?void 0:B},M,b,v,t))))};za.useApp=fd;var IT=za;export{IT as default};
|
package/es/app/style/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { GetDefaultToken } from '../../theme/internal';
|
|
2
|
-
export interface ComponentToken {
|
|
3
|
-
}
|
|
4
|
-
export declare const prepareComponentToken: GetDefaultToken<'App'>;
|
|
5
|
-
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
6
|
-
export default _default;
|