antdv-next 0.0.111 → 1.0.0-alpha.2
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/LICENSE +21 -0
- package/dist/_util/ActionButton.js +129 -0
- package/dist/_util/ContextIsolator.js +36 -0
- package/dist/_util/capitalize.js +8 -0
- package/dist/_util/colors.d.ts +10 -0
- package/dist/_util/colors.js +26 -0
- package/dist/_util/convertToTooltipProps.js +11 -0
- package/dist/_util/copy.js +49 -0
- package/dist/_util/easings.js +10 -0
- package/dist/_util/extendsObject.js +14 -0
- package/dist/_util/gapSize.js +15 -0
- package/dist/_util/getAllowClear.js +14 -0
- package/dist/_util/getScroll.js +20 -0
- package/dist/_util/hooks/index.d.ts +4 -0
- package/dist/_util/hooks/index.js +7 -0
- package/dist/_util/hooks/useChildLoadEvents.js +57 -0
- package/dist/_util/hooks/useClosable.d.ts +11 -0
- package/dist/_util/hooks/useClosable.js +147 -0
- package/dist/_util/hooks/useMergeSemantic.d.ts +14 -0
- package/dist/_util/hooks/useMergeSemantic.js +116 -0
- package/dist/_util/hooks/useMergedMask.d.ts +10 -0
- package/dist/_util/hooks/useMergedMask.js +29 -0
- package/dist/_util/hooks/useMultipleSelect.js +36 -0
- package/dist/_util/hooks/useOrientation.d.ts +6 -0
- package/dist/_util/hooks/useOrientation.js +20 -0
- package/dist/_util/hooks/usePatchElement.js +16 -0
- package/dist/_util/hooks/useResponsive.d.ts +7 -0
- package/dist/_util/hooks/useResponsive.js +33 -0
- package/dist/_util/hooks/useZIndex.d.ts +1 -0
- package/dist/_util/hooks/useZIndex.js +61 -0
- package/dist/_util/isNonNullable.js +8 -0
- package/dist/_util/mediaQueryUtil.js +12 -0
- package/dist/_util/motion.d.ts +7 -0
- package/dist/_util/motion.js +61 -0
- package/dist/_util/placements.d.ts +10 -0
- package/dist/_util/placements.js +130 -0
- package/dist/_util/responsiveObserver.d.ts +7 -0
- package/dist/_util/responsiveObserver.js +106 -0
- package/dist/_util/scrollTo.js +24 -0
- package/dist/_util/statusUtils.d.ts +7 -0
- package/dist/_util/statusUtils.js +18 -0
- package/dist/_util/styleChecker.js +9 -0
- package/dist/_util/throttleByAnimationFrame.js +22 -0
- package/dist/_util/toList.js +9 -0
- package/dist/_util/tools.js +35 -0
- package/dist/_util/transKeys.js +18 -0
- package/dist/_util/type.d.ts +15 -0
- package/dist/_util/vueNode.js +38 -0
- package/dist/_util/warning.d.ts +14 -0
- package/dist/_util/warning.js +54 -0
- package/dist/_util/wave/WaveEffect.js +171 -0
- package/dist/_util/wave/index.js +81 -0
- package/dist/_util/wave/interface.d.ts +14 -0
- package/dist/_util/wave/interface.js +7 -0
- package/dist/_util/wave/style.d.ts +7 -0
- package/dist/_util/wave/style.js +28 -0
- package/dist/_util/wave/useWave.js +42 -0
- package/dist/_util/wave/util.js +17 -0
- package/dist/_util/zindexContext.js +21 -0
- package/dist/_virtual/rolldown_runtime.js +13 -0
- package/dist/affix/index.d.ts +25 -0
- package/dist/affix/index.js +212 -0
- package/dist/affix/style/index.d.ts +13 -0
- package/dist/affix/style/index.js +16 -0
- package/dist/affix/utils.js +16 -0
- package/dist/alert/Alert.d.ts +59 -0
- package/dist/alert/Alert.js +356 -0
- package/dist/alert/index.d.ts +1 -0
- package/dist/alert/index.js +7 -0
- package/dist/alert/style/index.d.ts +23 -0
- package/dist/alert/style/index.js +137 -0
- package/dist/anchor/Anchor.d.ts +52 -0
- package/dist/anchor/Anchor.js +273 -0
- package/dist/anchor/AnchorLink.d.ts +14 -0
- package/dist/anchor/AnchorLink.js +95 -0
- package/dist/anchor/context.js +13 -0
- package/dist/anchor/index.d.ts +2 -0
- package/dist/anchor/index.js +7 -0
- package/dist/anchor/style/index.d.ts +18 -0
- package/dist/anchor/style/index.js +106 -0
- package/dist/antd.js +414 -0
- package/dist/app/App.d.ts +11 -0
- package/dist/app/App.js +88 -0
- package/dist/app/context.d.ts +18 -0
- package/dist/app/context.js +30 -0
- package/dist/app/index.d.ts +9 -0
- package/dist/app/index.js +13 -0
- package/dist/app/style/index.d.ts +7 -0
- package/dist/app/style/index.js +19 -0
- package/dist/app/useApp.d.ts +6 -0
- package/dist/app/useApp.js +8 -0
- package/dist/avatar/Avatar.d.ts +41 -0
- package/dist/avatar/Avatar.js +211 -0
- package/dist/avatar/AvatarContext.d.ts +7 -0
- package/dist/avatar/AvatarContext.js +13 -0
- package/dist/avatar/AvatarGroup.d.ts +24 -0
- package/dist/avatar/AvatarGroup.js +99 -0
- package/dist/avatar/index.d.ts +10 -0
- package/dist/avatar/index.js +10 -0
- package/dist/avatar/style/index.d.ts +68 -0
- package/dist/avatar/style/index.js +84 -0
- package/dist/badge/Ribbon.d.ts +23 -0
- package/dist/badge/Ribbon.js +77 -0
- package/dist/badge/ScrollNumber.js +80 -0
- package/dist/badge/SingleNumber.js +96 -0
- package/dist/badge/index.d.ts +47 -0
- package/dist/badge/index.js +249 -0
- package/dist/badge/style/index.d.ts +49 -0
- package/dist/badge/style/index.js +260 -0
- package/dist/badge/style/ribbon.js +69 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +89 -0
- package/dist/breadcrumb/Breadcrumb.js +191 -0
- package/dist/breadcrumb/BreadcrumbContext.js +13 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +32 -0
- package/dist/breadcrumb/BreadcrumbItem.js +161 -0
- package/dist/breadcrumb/BreadcrumbSeparator.js +27 -0
- package/dist/breadcrumb/index.d.ts +2 -0
- package/dist/breadcrumb/index.js +7 -0
- package/dist/breadcrumb/style/index.d.ts +43 -0
- package/dist/breadcrumb/style/index.js +78 -0
- package/dist/breadcrumb/useItemRender.js +44 -0
- package/dist/button/Button.d.ts +62 -0
- package/dist/button/Button.js +344 -0
- package/dist/button/DefaultLoadingIcon.js +91 -0
- package/dist/button/IconWrapper.js +20 -0
- package/dist/button/buttonHelper.d.ts +16 -0
- package/dist/button/buttonHelper.js +79 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.js +8 -0
- package/dist/button/style/compact.js +42 -0
- package/dist/button/style/group.js +42 -0
- package/dist/button/style/index.d.ts +2 -0
- package/dist/button/style/index.js +138 -0
- package/dist/button/style/token.d.ts +234 -0
- package/dist/button/style/token.js +84 -0
- package/dist/button/style/variant.js +178 -0
- package/dist/calendar/Header.js +274 -0
- package/dist/calendar/generateCalendar.d.ts +89 -0
- package/dist/calendar/generateCalendar.js +285 -0
- package/dist/calendar/index.d.ts +14 -0
- package/dist/calendar/index.js +13 -0
- package/dist/calendar/locale/ar_EG.js +7 -0
- package/dist/calendar/locale/az_AZ.js +7 -0
- package/dist/calendar/locale/bg_BG.js +7 -0
- package/dist/calendar/locale/bn_BD.js +7 -0
- package/dist/calendar/locale/by_BY.js +7 -0
- package/dist/calendar/locale/ca_ES.js +7 -0
- package/dist/calendar/locale/cs_CZ.js +7 -0
- package/dist/calendar/locale/da_DK.js +7 -0
- package/dist/calendar/locale/de_DE.js +7 -0
- package/dist/calendar/locale/el_GR.js +7 -0
- package/dist/calendar/locale/en_GB.js +7 -0
- package/dist/calendar/locale/en_US.d.ts +1 -0
- package/dist/calendar/locale/en_US.js +7 -0
- package/dist/calendar/locale/es_ES.js +7 -0
- package/dist/calendar/locale/et_EE.js +7 -0
- package/dist/calendar/locale/eu_ES.js +7 -0
- package/dist/calendar/locale/fa_IR.js +7 -0
- package/dist/calendar/locale/fi_FI.js +7 -0
- package/dist/calendar/locale/fr_BE.js +7 -0
- package/dist/calendar/locale/fr_CA.js +7 -0
- package/dist/calendar/locale/fr_FR.js +7 -0
- package/dist/calendar/locale/ga_IE.js +7 -0
- package/dist/calendar/locale/gl_ES.js +7 -0
- package/dist/calendar/locale/he_IL.js +7 -0
- package/dist/calendar/locale/hi_IN.js +7 -0
- package/dist/calendar/locale/hr_HR.js +7 -0
- package/dist/calendar/locale/hu_HU.js +7 -0
- package/dist/calendar/locale/id_ID.js +7 -0
- package/dist/calendar/locale/is_IS.js +7 -0
- package/dist/calendar/locale/it_IT.js +7 -0
- package/dist/calendar/locale/ja_JP.js +7 -0
- package/dist/calendar/locale/ka_GE.js +7 -0
- package/dist/calendar/locale/kk_KZ.js +7 -0
- package/dist/calendar/locale/km_KH.js +7 -0
- package/dist/calendar/locale/kmr_IQ.js +7 -0
- package/dist/calendar/locale/kn_IN.js +7 -0
- package/dist/calendar/locale/ko_KR.js +7 -0
- package/dist/calendar/locale/lt_LT.js +7 -0
- package/dist/calendar/locale/lv_LV.js +7 -0
- package/dist/calendar/locale/mk_MK.js +7 -0
- package/dist/calendar/locale/ml_IN.js +7 -0
- package/dist/calendar/locale/mn_MN.js +7 -0
- package/dist/calendar/locale/mr_IN.js +7 -0
- package/dist/calendar/locale/ms_MY.js +7 -0
- package/dist/calendar/locale/my_MM.js +7 -0
- package/dist/calendar/locale/nb_NO.js +7 -0
- package/dist/calendar/locale/nl_BE.js +7 -0
- package/dist/calendar/locale/nl_NL.js +7 -0
- package/dist/calendar/locale/pl_PL.js +7 -0
- package/dist/calendar/locale/pt_BR.js +7 -0
- package/dist/calendar/locale/pt_PT.js +7 -0
- package/dist/calendar/locale/ro_RO.js +7 -0
- package/dist/calendar/locale/ru_RU.js +7 -0
- package/dist/calendar/locale/si_LK.js +7 -0
- package/dist/calendar/locale/sk_SK.js +7 -0
- package/dist/calendar/locale/sl_SI.js +7 -0
- package/dist/calendar/locale/sr_RS.js +7 -0
- package/dist/calendar/locale/sv_SE.js +7 -0
- package/dist/calendar/locale/ta_IN.js +7 -0
- package/dist/calendar/locale/th_TH.js +7 -0
- package/dist/calendar/locale/tk_TK.js +7 -0
- package/dist/calendar/locale/tr_TR.js +7 -0
- package/dist/calendar/locale/uk_UA.js +7 -0
- package/dist/calendar/locale/ur_PK.js +7 -0
- package/dist/calendar/locale/uz_UZ.js +7 -0
- package/dist/calendar/locale/vi_VN.js +7 -0
- package/dist/calendar/locale/zh_CN.js +7 -0
- package/dist/calendar/locale/zh_TW.js +7 -0
- package/dist/calendar/style/index.d.ts +40 -0
- package/dist/calendar/style/index.js +153 -0
- package/dist/card/Card.d.ts +67 -0
- package/dist/card/Card.js +305 -0
- package/dist/card/CardGrid.d.ts +10 -0
- package/dist/card/CardGrid.js +36 -0
- package/dist/card/CardMeta.d.ts +29 -0
- package/dist/card/CardMeta.js +105 -0
- package/dist/card/index.d.ts +3 -0
- package/dist/card/index.js +16 -0
- package/dist/card/style/index.d.ts +73 -0
- package/dist/card/style/index.js +263 -0
- package/dist/carousel/index.d.ts +52 -0
- package/dist/carousel/index.js +411 -0
- package/dist/carousel/style/index.d.ts +45 -0
- package/dist/carousel/style/index.js +304 -0
- package/dist/cascader/Panel.d.ts +23 -0
- package/dist/cascader/Panel.js +125 -0
- package/dist/cascader/hooks/useBase.js +17 -0
- package/dist/cascader/hooks/useCheckable.js +10 -0
- package/dist/cascader/hooks/useColumnIcons.js +13 -0
- package/dist/cascader/index.d.ts +90 -0
- package/dist/cascader/index.js +628 -0
- package/dist/cascader/style/columns.js +77 -0
- package/dist/cascader/style/index.d.ts +48 -0
- package/dist/cascader/style/index.js +35 -0
- package/dist/cascader/style/panel.js +24 -0
- package/dist/checkbox/Checkbox.d.ts +51 -0
- package/dist/checkbox/Checkbox.js +230 -0
- package/dist/checkbox/Group.d.ts +48 -0
- package/dist/checkbox/Group.js +141 -0
- package/dist/checkbox/GroupContext.js +13 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +12 -0
- package/dist/checkbox/style/index.d.ts +8 -0
- package/dist/checkbox/style/index.js +167 -0
- package/dist/checkbox/useBubbleLock.js +33 -0
- package/dist/collapse/Collapse.d.ts +76 -0
- package/dist/collapse/Collapse.js +179 -0
- package/dist/collapse/CollapsePanel.d.ts +7 -0
- package/dist/collapse/index.d.ts +2 -0
- package/dist/collapse/index.js +7 -0
- package/dist/collapse/style/index.d.ts +39 -0
- package/dist/collapse/style/index.js +173 -0
- package/dist/color-picker/ColorPicker.d.ts +49 -0
- package/dist/color-picker/ColorPicker.js +336 -0
- package/dist/color-picker/ColorPickerPanel.js +173 -0
- package/dist/color-picker/color.d.ts +32 -0
- package/dist/color-picker/color.js +79 -0
- package/dist/color-picker/components/ColorAlphaInput.js +49 -0
- package/dist/color-picker/components/ColorClear.js +42 -0
- package/dist/color-picker/components/ColorHexInput.js +46 -0
- package/dist/color-picker/components/ColorHsbInput.js +69 -0
- package/dist/color-picker/components/ColorInput.js +94 -0
- package/dist/color-picker/components/ColorPresets.js +84 -0
- package/dist/color-picker/components/ColorRgbInput.js +66 -0
- package/dist/color-picker/components/ColorSlider.js +194 -0
- package/dist/color-picker/components/ColorSteppers.js +63 -0
- package/dist/color-picker/components/ColorTrigger.js +92 -0
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +163 -0
- package/dist/color-picker/components/PanelPicker/index.js +136 -0
- package/dist/color-picker/components/PanelPresets.js +23 -0
- package/dist/color-picker/context.js +20 -0
- package/dist/color-picker/hooks/useModeColor.js +59 -0
- package/dist/color-picker/index.d.ts +3 -0
- package/dist/color-picker/index.js +7 -0
- package/dist/color-picker/interface.d.ts +116 -0
- package/dist/color-picker/interface.js +7 -0
- package/dist/color-picker/style/color-block.js +35 -0
- package/dist/color-picker/style/index.d.ts +7 -0
- package/dist/color-picker/style/index.js +175 -0
- package/dist/color-picker/style/input.js +69 -0
- package/dist/color-picker/style/picker.js +36 -0
- package/dist/color-picker/style/presets.js +84 -0
- package/dist/color-picker/style/slider.js +81 -0
- package/dist/color-picker/util.js +56 -0
- package/dist/components.d.ts +154 -0
- package/dist/components.js +231 -0
- package/dist/config-provider/DisabledContext.js +26 -0
- package/dist/config-provider/SizeContext.d.ts +6 -0
- package/dist/config-provider/SizeContext.js +21 -0
- package/dist/config-provider/context.d.ts +207 -0
- package/dist/config-provider/context.js +104 -0
- package/dist/config-provider/defaultRenderEmpty.d.ts +7 -0
- package/dist/config-provider/defaultRenderEmpty.js +36 -0
- package/dist/config-provider/define.d.ts +107 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +18 -0
- package/dist/config-provider/hooks/useSize.js +16 -0
- package/dist/config-provider/hooks/useTheme.js +48 -0
- package/dist/config-provider/hooks/useThemeKey.js +9 -0
- package/dist/config-provider/index.d.ts +12 -0
- package/dist/config-provider/index.js +809 -0
- package/dist/config-provider/style/index.js +4 -0
- package/dist/date-picker/PickerButton.js +113 -0
- package/dist/date-picker/generatePicker/SuffixIcon.js +51 -0
- package/dist/date-picker/generatePicker/constant.js +9 -0
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +39 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +1333 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +40 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.js +1346 -0
- package/dist/date-picker/generatePicker/index.d.ts +32 -0
- package/dist/date-picker/generatePicker/index.js +20 -0
- package/dist/date-picker/generatePicker/interface.d.ts +136 -0
- package/dist/date-picker/generatePicker/useComponents.js +12 -0
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +38 -0
- package/dist/date-picker/index.d.ts +55 -0
- package/dist/date-picker/index.js +23 -0
- package/dist/date-picker/locale/ar_EG.js +42 -0
- package/dist/date-picker/locale/az_AZ.js +24 -0
- package/dist/date-picker/locale/bg_BG.js +16 -0
- package/dist/date-picker/locale/bn_BD.js +23 -0
- package/dist/date-picker/locale/by_BY.js +24 -0
- package/dist/date-picker/locale/ca_ES.js +16 -0
- package/dist/date-picker/locale/cs_CZ.js +16 -0
- package/dist/date-picker/locale/da_DK.js +16 -0
- package/dist/date-picker/locale/de_DE.js +39 -0
- package/dist/date-picker/locale/el_GR.js +24 -0
- package/dist/date-picker/locale/en_GB.js +24 -0
- package/dist/date-picker/locale/en_US.d.ts +7 -0
- package/dist/date-picker/locale/en_US.js +24 -0
- package/dist/date-picker/locale/es_ES.js +39 -0
- package/dist/date-picker/locale/et_EE.js +16 -0
- package/dist/date-picker/locale/eu_ES.js +16 -0
- package/dist/date-picker/locale/fa_IR.js +24 -0
- package/dist/date-picker/locale/fi_FI.js +16 -0
- package/dist/date-picker/locale/fr_BE.js +23 -0
- package/dist/date-picker/locale/fr_CA.js +23 -0
- package/dist/date-picker/locale/fr_FR.js +23 -0
- package/dist/date-picker/locale/ga_IE.js +23 -0
- package/dist/date-picker/locale/gl_ES.js +16 -0
- package/dist/date-picker/locale/he_IL.js +16 -0
- package/dist/date-picker/locale/hi_IN.js +23 -0
- package/dist/date-picker/locale/hr_HR.js +23 -0
- package/dist/date-picker/locale/hu_HU.js +16 -0
- package/dist/date-picker/locale/id_ID.js +24 -0
- package/dist/date-picker/locale/is_IS.js +16 -0
- package/dist/date-picker/locale/it_IT.js +16 -0
- package/dist/date-picker/locale/ja_JP.js +47 -0
- package/dist/date-picker/locale/ka_GE.js +23 -0
- package/dist/date-picker/locale/kk_KZ.js +23 -0
- package/dist/date-picker/locale/km_KH.js +23 -0
- package/dist/date-picker/locale/kmr_IQ.js +16 -0
- package/dist/date-picker/locale/kn_IN.js +24 -0
- package/dist/date-picker/locale/ko_KR.js +47 -0
- package/dist/date-picker/locale/lt_LT.js +24 -0
- package/dist/date-picker/locale/lv_LV.js +16 -0
- package/dist/date-picker/locale/mk_MK.js +16 -0
- package/dist/date-picker/locale/ml_IN.js +23 -0
- package/dist/date-picker/locale/mn_MN.js +16 -0
- package/dist/date-picker/locale/mr_IN.js +24 -0
- package/dist/date-picker/locale/ms_MY.js +16 -0
- package/dist/date-picker/locale/my_MM.js +24 -0
- package/dist/date-picker/locale/nb_NO.js +23 -0
- package/dist/date-picker/locale/nl_BE.js +23 -0
- package/dist/date-picker/locale/nl_NL.js +23 -0
- package/dist/date-picker/locale/pl_PL.js +42 -0
- package/dist/date-picker/locale/pt_BR.js +16 -0
- package/dist/date-picker/locale/pt_PT.js +42 -0
- package/dist/date-picker/locale/ro_RO.js +16 -0
- package/dist/date-picker/locale/ru_RU.js +46 -0
- package/dist/date-picker/locale/si_LK.js +24 -0
- package/dist/date-picker/locale/sk_SK.js +16 -0
- package/dist/date-picker/locale/sl_SI.js +39 -0
- package/dist/date-picker/locale/sr_RS.js +23 -0
- package/dist/date-picker/locale/sv_SE.js +23 -0
- package/dist/date-picker/locale/ta_IN.js +23 -0
- package/dist/date-picker/locale/th_TH.js +23 -0
- package/dist/date-picker/locale/tk_TK.js +24 -0
- package/dist/date-picker/locale/tr_TR.js +23 -0
- package/dist/date-picker/locale/uk_UA.js +46 -0
- package/dist/date-picker/locale/ur_PK.js +23 -0
- package/dist/date-picker/locale/uz_UZ.js +23 -0
- package/dist/date-picker/locale/vi_VN.js +47 -0
- package/dist/date-picker/locale/zh_CN.js +25 -0
- package/dist/date-picker/locale/zh_TW.js +25 -0
- package/dist/date-picker/style/index.d.ts +3 -0
- package/dist/date-picker/style/index.js +296 -0
- package/dist/date-picker/style/multiple.js +81 -0
- package/dist/date-picker/style/panel.d.ts +3 -0
- package/dist/date-picker/style/panel.js +388 -0
- package/dist/date-picker/style/token.d.ts +87 -0
- package/dist/date-picker/style/token.js +63 -0
- package/dist/date-picker/style/util.js +92 -0
- package/dist/date-picker/style/variants.js +34 -0
- package/dist/date-picker/util.js +37 -0
- package/dist/descriptions/Cell.js +97 -0
- package/dist/descriptions/DescriptionsContext.js +13 -0
- package/dist/descriptions/Item.d.ts +18 -0
- package/dist/descriptions/Row.js +158 -0
- package/dist/descriptions/constant.js +13 -0
- package/dist/descriptions/hooks/useItems.js +23 -0
- package/dist/descriptions/hooks/useRow.js +54 -0
- package/dist/descriptions/index.d.ts +57 -0
- package/dist/descriptions/index.js +181 -0
- package/dist/descriptions/style/index.d.ts +59 -0
- package/dist/descriptions/style/index.js +144 -0
- package/dist/divider/index.d.ts +37 -0
- package/dist/divider/index.js +171 -0
- package/dist/divider/style/index.d.ts +24 -0
- package/dist/divider/style/index.js +128 -0
- package/dist/drawer/DrawerPanel.d.ts +49 -0
- package/dist/drawer/DrawerPanel.js +210 -0
- package/dist/drawer/index.d.ts +53 -0
- package/dist/drawer/index.js +504 -0
- package/dist/drawer/style/index.d.ts +28 -0
- package/dist/drawer/style/index.js +216 -0
- package/dist/drawer/style/motion.js +53 -0
- package/dist/dropdown/dropdown.d.ts +64 -0
- package/dist/dropdown/dropdown.js +255 -0
- package/dist/dropdown/index.d.ts +9 -0
- package/dist/dropdown/index.js +11 -0
- package/dist/dropdown/style/index.d.ts +20 -0
- package/dist/dropdown/style/index.js +233 -0
- package/dist/dropdown/style/status.js +16 -0
- package/dist/empty/empty.js +70 -0
- package/dist/empty/index.d.ts +37 -0
- package/dist/empty/index.js +114 -0
- package/dist/empty/simple.js +48 -0
- package/dist/empty/style/index.d.ts +7 -0
- package/dist/empty/style/index.js +49 -0
- package/dist/flex/index.d.ts +14 -0
- package/dist/flex/index.js +67 -0
- package/dist/flex/interface.d.ts +16 -0
- package/dist/flex/style/index.d.ts +8 -0
- package/dist/flex/style/index.js +67 -0
- package/dist/flex/utils.js +64 -0
- package/dist/float-button/BackTop.d.ts +25 -0
- package/dist/float-button/BackTop.js +199 -0
- package/dist/float-button/FloatButton.d.ts +62 -0
- package/dist/float-button/FloatButton.js +217 -0
- package/dist/float-button/FloatButtonGroup.d.ts +39 -0
- package/dist/float-button/FloatButtonGroup.js +334 -0
- package/dist/float-button/PurePanel.js +274 -0
- package/dist/float-button/context.js +20 -0
- package/dist/float-button/index.d.ts +3 -0
- package/dist/float-button/index.js +18 -0
- package/dist/float-button/style/button.js +59 -0
- package/dist/float-button/style/group.js +74 -0
- package/dist/float-button/style/index.d.ts +8 -0
- package/dist/float-button/style/index.js +26 -0
- package/dist/form/ErrorList.js +127 -0
- package/dist/form/Form.d.ts +87 -0
- package/dist/form/Form.js +453 -0
- package/dist/form/FormItem/ItemHolder.js +258 -0
- package/dist/form/FormItem/StatusProvider.js +93 -0
- package/dist/form/FormItem/index.d.ts +60 -0
- package/dist/form/FormItem/index.js +437 -0
- package/dist/form/FormItemInput.d.ts +19 -0
- package/dist/form/FormItemInput.js +166 -0
- package/dist/form/FormItemLabel.d.ts +31 -0
- package/dist/form/FormItemLabel.js +134 -0
- package/dist/form/context.js +117 -0
- package/dist/form/hooks/useForm.js +9 -0
- package/dist/form/hooks/useVariant.js +21 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +12 -0
- package/dist/form/interface.d.ts +9 -0
- package/dist/form/namePathType.d.ts +9 -0
- package/dist/form/style/explain.js +36 -0
- package/dist/form/style/fallbackCmp.js +15 -0
- package/dist/form/style/index.d.ts +58 -0
- package/dist/form/style/index.js +309 -0
- package/dist/form/types.d.ts +162 -0
- package/dist/form/util.js +35 -0
- package/dist/form/utils/asyncUtil.js +24 -0
- package/dist/form/utils/messages.js +50 -0
- package/dist/form/utils/typeUtil.js +8 -0
- package/dist/form/utils/validateUtil.js +149 -0
- package/dist/form/utils/valueUtil.js +50 -0
- package/dist/form/validateMessagesContext.js +13 -0
- package/dist/grid/RowContext.js +13 -0
- package/dist/grid/col.d.ts +32 -0
- package/dist/grid/col.js +167 -0
- package/dist/grid/hooks/useBreakpoint.js +23 -0
- package/dist/grid/hooks/useGutter.js +36 -0
- package/dist/grid/index.d.ts +23 -0
- package/dist/grid/index.js +11 -0
- package/dist/grid/row.d.ts +21 -0
- package/dist/grid/row.js +108 -0
- package/dist/grid/style/index.d.ts +7 -0
- package/dist/grid/style/index.js +96 -0
- package/dist/image/PreviewGroup.d.ts +22 -0
- package/dist/image/PreviewGroup.js +134 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +33 -0
- package/dist/image/hooks/usePreviewConfig.js +66 -0
- package/dist/image/index.d.ts +71 -0
- package/dist/image/index.js +165 -0
- package/dist/image/style/index.d.ts +34 -0
- package/dist/image/style/index.js +208 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.js +118 -0
- package/dist/input/Group.d.ts +11 -0
- package/dist/input/Group.js +58 -0
- package/dist/input/Input.d.ts +72 -0
- package/dist/input/Input.js +346 -0
- package/dist/input/OTP/OTPInput.js +217 -0
- package/dist/input/OTP/index.d.ts +43 -0
- package/dist/input/OTP/index.js +206 -0
- package/dist/input/Password.d.ts +36 -0
- package/dist/input/Password.js +270 -0
- package/dist/input/Search.d.ts +43 -0
- package/dist/input/Search.js +325 -0
- package/dist/input/TextArea.d.ts +55 -0
- package/dist/input/TextArea.js +264 -0
- package/dist/input/hooks/useRemovePasswordTimeout.js +29 -0
- package/dist/input/index.d.ts +29 -0
- package/dist/input/index.js +31 -0
- package/dist/input/style/index.d.ts +4 -0
- package/dist/input/style/index.js +379 -0
- package/dist/input/style/otp.js +47 -0
- package/dist/input/style/search.js +24 -0
- package/dist/input/style/textarea.js +79 -0
- package/dist/input/style/token.d.ts +93 -0
- package/dist/input/style/token.js +37 -0
- package/dist/input/style/variants.js +276 -0
- package/dist/input-number/index.d.ts +76 -0
- package/dist/input-number/index.js +403 -0
- package/dist/input-number/style/index.d.ts +2 -0
- package/dist/input-number/style/index.js +198 -0
- package/dist/input-number/style/token.d.ts +62 -0
- package/dist/input-number/style/token.js +26 -0
- package/dist/layout/Sider.d.ts +33 -0
- package/dist/layout/Sider.js +172 -0
- package/dist/layout/context.js +16 -0
- package/dist/layout/hooks/useHasSider.js +9 -0
- package/dist/layout/index.d.ts +14 -0
- package/dist/layout/index.js +21 -0
- package/dist/layout/layout.d.ts +12 -0
- package/dist/layout/layout.js +151 -0
- package/dist/layout/style/index.d.ts +94 -0
- package/dist/layout/style/index.js +77 -0
- package/dist/layout/style/sider.js +82 -0
- package/dist/locale/ar_EG.d.ts +6 -0
- package/dist/locale/ar_EG.js +127 -0
- package/dist/locale/az_AZ.d.ts +6 -0
- package/dist/locale/az_AZ.js +144 -0
- package/dist/locale/bg_BG.d.ts +6 -0
- package/dist/locale/bg_BG.js +102 -0
- package/dist/locale/bn_BD.d.ts +6 -0
- package/dist/locale/bn_BD.js +128 -0
- package/dist/locale/by_BY.d.ts +6 -0
- package/dist/locale/by_BY.js +130 -0
- package/dist/locale/ca_ES.d.ts +6 -0
- package/dist/locale/ca_ES.js +126 -0
- package/dist/locale/cs_CZ.d.ts +6 -0
- package/dist/locale/cs_CZ.js +141 -0
- package/dist/locale/da_DK.d.ts +6 -0
- package/dist/locale/da_DK.js +112 -0
- package/dist/locale/de_DE.d.ts +6 -0
- package/dist/locale/de_DE.js +130 -0
- package/dist/locale/el_GR.d.ts +6 -0
- package/dist/locale/el_GR.js +142 -0
- package/dist/locale/en_GB.d.ts +6 -0
- package/dist/locale/en_GB.js +130 -0
- package/dist/locale/en_US.d.ts +6 -0
- package/dist/locale/en_US.js +144 -0
- package/dist/locale/es_ES.d.ts +6 -0
- package/dist/locale/es_ES.js +130 -0
- package/dist/locale/et_EE.d.ts +6 -0
- package/dist/locale/et_EE.js +130 -0
- package/dist/locale/eu_ES.d.ts +6 -0
- package/dist/locale/eu_ES.js +140 -0
- package/dist/locale/fa_IR.d.ts +6 -0
- package/dist/locale/fa_IR.js +143 -0
- package/dist/locale/fi_FI.d.ts +6 -0
- package/dist/locale/fi_FI.js +63 -0
- package/dist/locale/fr_BE.d.ts +6 -0
- package/dist/locale/fr_BE.js +127 -0
- package/dist/locale/fr_CA.d.ts +6 -0
- package/dist/locale/fr_CA.js +127 -0
- package/dist/locale/fr_FR.d.ts +6 -0
- package/dist/locale/fr_FR.js +127 -0
- package/dist/locale/ga_IE.d.ts +6 -0
- package/dist/locale/ga_IE.js +122 -0
- package/dist/locale/gl_ES.d.ts +6 -0
- package/dist/locale/gl_ES.js +110 -0
- package/dist/locale/he_IL.d.ts +6 -0
- package/dist/locale/he_IL.js +116 -0
- package/dist/locale/hi_IN.d.ts +6 -0
- package/dist/locale/hi_IN.js +128 -0
- package/dist/locale/hr_HR.d.ts +6 -0
- package/dist/locale/hr_HR.js +127 -0
- package/dist/locale/hu_HU.d.ts +6 -0
- package/dist/locale/hu_HU.js +54 -0
- package/dist/locale/hy_AM.d.ts +6 -0
- package/dist/locale/hy_AM.js +105 -0
- package/dist/locale/id_ID.d.ts +6 -0
- package/dist/locale/id_ID.js +143 -0
- package/dist/locale/index.d.ts +68 -0
- package/dist/locale/index.js +35 -0
- package/dist/locale/is_IS.d.ts +6 -0
- package/dist/locale/is_IS.js +102 -0
- package/dist/locale/it_IT.d.ts +6 -0
- package/dist/locale/it_IT.js +141 -0
- package/dist/locale/ja_JP.d.ts +6 -0
- package/dist/locale/ja_JP.js +143 -0
- package/dist/locale/ka_GE.d.ts +6 -0
- package/dist/locale/ka_GE.js +128 -0
- package/dist/locale/kk_KZ.d.ts +6 -0
- package/dist/locale/kk_KZ.js +123 -0
- package/dist/locale/km_KH.d.ts +6 -0
- package/dist/locale/km_KH.js +104 -0
- package/dist/locale/kmr_IQ.d.ts +6 -0
- package/dist/locale/kmr_IQ.js +53 -0
- package/dist/locale/kn_IN.d.ts +6 -0
- package/dist/locale/kn_IN.js +130 -0
- package/dist/locale/ko_KR.d.ts +6 -0
- package/dist/locale/ko_KR.js +140 -0
- package/dist/locale/ku_IQ.d.ts +6 -0
- package/dist/locale/ku_IQ.js +53 -0
- package/dist/locale/lt_LT.d.ts +6 -0
- package/dist/locale/lt_LT.js +140 -0
- package/dist/locale/lv_LV.d.ts +6 -0
- package/dist/locale/lv_LV.js +53 -0
- package/dist/locale/mk_MK.d.ts +6 -0
- package/dist/locale/mk_MK.js +63 -0
- package/dist/locale/ml_IN.d.ts +6 -0
- package/dist/locale/ml_IN.js +128 -0
- package/dist/locale/mn_MN.d.ts +6 -0
- package/dist/locale/mn_MN.js +130 -0
- package/dist/locale/mr_IN.d.ts +6 -0
- package/dist/locale/mr_IN.js +132 -0
- package/dist/locale/ms_MY.d.ts +6 -0
- package/dist/locale/ms_MY.js +141 -0
- package/dist/locale/my_MM.d.ts +6 -0
- package/dist/locale/my_MM.js +131 -0
- package/dist/locale/nb_NO.d.ts +6 -0
- package/dist/locale/nb_NO.js +123 -0
- package/dist/locale/ne_NP.d.ts +6 -0
- package/dist/locale/ne_NP.js +143 -0
- package/dist/locale/nl_BE.d.ts +6 -0
- package/dist/locale/nl_BE.js +128 -0
- package/dist/locale/nl_NL.d.ts +6 -0
- package/dist/locale/nl_NL.js +128 -0
- package/dist/locale/pl_PL.d.ts +6 -0
- package/dist/locale/pl_PL.js +130 -0
- package/dist/locale/pt_BR.d.ts +6 -0
- package/dist/locale/pt_BR.js +130 -0
- package/dist/locale/pt_PT.d.ts +6 -0
- package/dist/locale/pt_PT.js +143 -0
- package/dist/locale/ro_RO.d.ts +6 -0
- package/dist/locale/ro_RO.js +128 -0
- package/dist/locale/ru_RU.d.ts +6 -0
- package/dist/locale/ru_RU.js +142 -0
- package/dist/locale/si_LK.d.ts +6 -0
- package/dist/locale/si_LK.js +130 -0
- package/dist/locale/sk_SK.d.ts +6 -0
- package/dist/locale/sk_SK.js +130 -0
- package/dist/locale/sl_SI.d.ts +6 -0
- package/dist/locale/sl_SI.js +53 -0
- package/dist/locale/sr_RS.d.ts +6 -0
- package/dist/locale/sr_RS.js +128 -0
- package/dist/locale/sv_SE.d.ts +6 -0
- package/dist/locale/sv_SE.js +134 -0
- package/dist/locale/ta_IN.d.ts +6 -0
- package/dist/locale/ta_IN.js +127 -0
- package/dist/locale/th_TH.d.ts +6 -0
- package/dist/locale/th_TH.js +143 -0
- package/dist/locale/tk_TK.d.ts +6 -0
- package/dist/locale/tk_TK.js +124 -0
- package/dist/locale/tr_TR.d.ts +6 -0
- package/dist/locale/tr_TR.js +129 -0
- package/dist/locale/uk_UA.d.ts +6 -0
- package/dist/locale/uk_UA.js +135 -0
- package/dist/locale/ur_PK.d.ts +6 -0
- package/dist/locale/ur_PK.js +128 -0
- package/dist/locale/useLocale.d.ts +8 -0
- package/dist/locale/useLocale.js +24 -0
- package/dist/locale/uz_UZ.d.ts +6 -0
- package/dist/locale/uz_UZ.js +134 -0
- package/dist/locale/vi_VN.d.ts +6 -0
- package/dist/locale/vi_VN.js +143 -0
- package/dist/locale/zh_CN.d.ts +6 -0
- package/dist/locale/zh_CN.js +144 -0
- package/dist/locale/zh_HK.d.ts +6 -0
- package/dist/locale/zh_HK.js +139 -0
- package/dist/locale/zh_TW.d.ts +6 -0
- package/dist/locale/zh_TW.js +142 -0
- package/dist/masonry/Masonry.d.ts +50 -0
- package/dist/masonry/Masonry.js +203 -0
- package/dist/masonry/MasonryItem.d.ts +17 -0
- package/dist/masonry/MasonryItem.js +81 -0
- package/dist/masonry/hooks/useDelay.js +20 -0
- package/dist/masonry/hooks/usePositions.js +30 -0
- package/dist/masonry/hooks/useRefs.js +15 -0
- package/dist/masonry/index.d.ts +1 -0
- package/dist/masonry/index.js +10 -0
- package/dist/masonry/style/index.d.ts +7 -0
- package/dist/masonry/style/index.js +40 -0
- package/dist/mentions/index.d.ts +78 -0
- package/dist/mentions/index.js +339 -0
- package/dist/mentions/style/index.d.ts +24 -0
- package/dist/mentions/style/index.js +193 -0
- package/dist/menu/MenuContext.d.ts +9 -0
- package/dist/menu/MenuContext.js +28 -0
- package/dist/menu/MenuDivider.d.ts +10 -0
- package/dist/menu/MenuDivider.js +35 -0
- package/dist/menu/MenuItem.d.ts +31 -0
- package/dist/menu/MenuItem.js +197 -0
- package/dist/menu/OverrideContext.js +27 -0
- package/dist/menu/SubMenu.d.ts +19 -0
- package/dist/menu/SubMenu.js +159 -0
- package/dist/menu/index.d.ts +29 -0
- package/dist/menu/index.js +195 -0
- package/dist/menu/interface.d.ts +26 -0
- package/dist/menu/menu.d.ts +68 -0
- package/dist/menu/menu.js +342 -0
- package/dist/menu/style/horizontal.js +33 -0
- package/dist/menu/style/index.d.ts +331 -0
- package/dist/menu/style/index.js +425 -0
- package/dist/menu/style/rtl.js +16 -0
- package/dist/menu/style/theme.js +109 -0
- package/dist/menu/style/vertical.js +133 -0
- package/dist/message/PurePanel.d.ts +36 -0
- package/dist/message/PurePanel.js +212 -0
- package/dist/message/index.d.ts +24 -0
- package/dist/message/index.js +238 -0
- package/dist/message/interface.d.ts +91 -0
- package/dist/message/style/index.d.ts +24 -0
- package/dist/message/style/index.js +114 -0
- package/dist/message/useMessage.d.ts +8 -0
- package/dist/message/useMessage.js +236 -0
- package/dist/message/util.js +22 -0
- package/dist/modal/ConfirmDialog.js +1047 -0
- package/dist/modal/Modal.d.ts +10 -0
- package/dist/modal/Modal.js +478 -0
- package/dist/modal/components/ConfirmCancelBtn.js +35 -0
- package/dist/modal/components/ConfirmOkBtn.js +36 -0
- package/dist/modal/components/NormalCancelBtn.js +22 -0
- package/dist/modal/components/NormalOkBtn.js +28 -0
- package/dist/modal/confirm.d.ts +20 -0
- package/dist/modal/confirm.js +373 -0
- package/dist/modal/context.js +13 -0
- package/dist/modal/destroyFns.js +6 -0
- package/dist/modal/index.d.ts +20 -0
- package/dist/modal/index.js +25 -0
- package/dist/modal/interface.d.ts +163 -0
- package/dist/modal/locale.js +10 -0
- package/dist/modal/shared.js +117 -0
- package/dist/modal/style/confirm.js +69 -0
- package/dist/modal/style/index.d.ts +63 -0
- package/dist/modal/style/index.js +261 -0
- package/dist/modal/useModal/HookModal.js +72 -0
- package/dist/modal/useModal/index.d.ts +7 -0
- package/dist/modal/useModal/index.js +97 -0
- package/dist/modal/useModal/types.d.ts +9 -0
- package/dist/notification/PurePanel.d.ts +41 -0
- package/dist/notification/PurePanel.js +326 -0
- package/dist/notification/index.d.ts +24 -0
- package/dist/notification/index.js +195 -0
- package/dist/notification/interface.d.ts +85 -0
- package/dist/notification/interface.js +12 -0
- package/dist/notification/style/index.d.ts +45 -0
- package/dist/notification/style/index.js +206 -0
- package/dist/notification/style/placement.js +75 -0
- package/dist/notification/style/pure-panel.js +19 -0
- package/dist/notification/style/stack.js +88 -0
- package/dist/notification/useNotification.d.ts +8 -0
- package/dist/notification/useNotification.js +251 -0
- package/dist/notification/util.js +64 -0
- package/dist/package.d.ts +5 -0
- package/dist/package.js +5 -0
- package/dist/pagination/Pagination.d.ts +10 -0
- package/dist/pagination/Pagination.js +341 -0
- package/dist/pagination/index.d.ts +2 -0
- package/dist/pagination/index.js +7 -0
- package/dist/pagination/interface.d.ts +71 -0
- package/dist/pagination/style/bordered.js +73 -0
- package/dist/pagination/style/index.d.ts +64 -0
- package/dist/pagination/style/index.js +439 -0
- package/dist/pagination/useShowSizeChanger.js +18 -0
- package/dist/popconfirm/PurePanel.d.ts +28 -0
- package/dist/popconfirm/PurePanel.js +284 -0
- package/dist/popconfirm/index.d.ts +52 -0
- package/dist/popconfirm/index.js +316 -0
- package/dist/popconfirm/style/index.d.ts +13 -0
- package/dist/popconfirm/style/index.js +45 -0
- package/dist/popover/PurePanel.js +361 -0
- package/dist/popover/index.d.ts +31 -0
- package/dist/popover/index.js +232 -0
- package/dist/popover/style/index.d.ts +42 -0
- package/dist/popover/style/index.js +114 -0
- package/dist/progress/Circle.js +204 -0
- package/dist/progress/Line.js +235 -0
- package/dist/progress/Steps.js +148 -0
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +7 -0
- package/dist/progress/progress.d.ts +74 -0
- package/dist/progress/progress.js +283 -0
- package/dist/progress/style/index.d.ts +38 -0
- package/dist/progress/style/index.js +190 -0
- package/dist/progress/utils.js +51 -0
- package/dist/qrcode/QrcodeStatus.js +49 -0
- package/dist/qrcode/index.d.ts +10 -0
- package/dist/qrcode/index.js +207 -0
- package/dist/qrcode/interface.d.ts +40 -0
- package/dist/qrcode/style/index.d.ts +7 -0
- package/dist/qrcode/style/index.js +62 -0
- package/dist/radio/context.js +20 -0
- package/dist/radio/group.js +199 -0
- package/dist/radio/index.d.ts +18 -0
- package/dist/radio/index.js +19 -0
- package/dist/radio/interface.d.ts +72 -0
- package/dist/radio/radio.d.ts +10 -0
- package/dist/radio/radio.js +200 -0
- package/dist/radio/radioButton.js +87 -0
- package/dist/radio/style/index.d.ts +82 -0
- package/dist/radio/style/index.js +326 -0
- package/dist/rate/index.d.ts +25 -0
- package/dist/rate/index.js +179 -0
- package/dist/rate/style/index.d.ts +39 -0
- package/dist/rate/style/index.js +80 -0
- package/dist/reset.css +253 -0
- package/dist/result/index.d.ts +48 -0
- package/dist/result/index.js +211 -0
- package/dist/result/noFound.d.ts +6 -0
- package/dist/result/noFound.js +293 -0
- package/dist/result/serverError.d.ts +6 -0
- package/dist/result/serverError.js +335 -0
- package/dist/result/style/index.d.ts +28 -0
- package/dist/result/style/index.js +84 -0
- package/dist/result/unauthorized.d.ts +6 -0
- package/dist/result/unauthorized.js +287 -0
- package/dist/segmented/index.d.ts +58 -0
- package/dist/segmented/index.js +179 -0
- package/dist/segmented/style/index.d.ts +48 -0
- package/dist/segmented/style/index.js +176 -0
- package/dist/select/index.d.ts +119 -0
- package/dist/select/index.js +658 -0
- package/dist/select/mergedBuiltinPlacements.js +41 -0
- package/dist/select/style/dropdown.js +119 -0
- package/dist/select/style/index.d.ts +2 -0
- package/dist/select/style/index.js +86 -0
- package/dist/select/style/select-input-customize.js +20 -0
- package/dist/select/style/select-input-multiple.js +99 -0
- package/dist/select/style/select-input.js +237 -0
- package/dist/select/style/token.d.ts +130 -0
- package/dist/select/style/token.js +40 -0
- package/dist/select/useIcons.js +38 -0
- package/dist/select/usePopupRender.js +18 -0
- package/dist/select/useShowArrow.js +16 -0
- package/dist/skeleton/Avatar.d.ts +10 -0
- package/dist/skeleton/Avatar.js +54 -0
- package/dist/skeleton/Button.d.ts +11 -0
- package/dist/skeleton/Button.js +57 -0
- package/dist/skeleton/Element.d.ts +11 -0
- package/dist/skeleton/Element.js +52 -0
- package/dist/skeleton/Image.d.ts +8 -0
- package/dist/skeleton/Image.js +47 -0
- package/dist/skeleton/Input.d.ts +11 -0
- package/dist/skeleton/Input.js +53 -0
- package/dist/skeleton/Node.d.ts +17 -0
- package/dist/skeleton/Node.js +43 -0
- package/dist/skeleton/Paragraph.d.ts +12 -0
- package/dist/skeleton/Paragraph.js +49 -0
- package/dist/skeleton/Skeleton.d.ts +45 -0
- package/dist/skeleton/Skeleton.js +176 -0
- package/dist/skeleton/Title.d.ts +11 -0
- package/dist/skeleton/Title.js +39 -0
- package/dist/skeleton/index.d.ts +6 -0
- package/dist/skeleton/index.js +12 -0
- package/dist/skeleton/style/index.d.ts +42 -0
- package/dist/skeleton/style/index.js +243 -0
- package/dist/slider/Context.js +15 -0
- package/dist/slider/SliderTooltip.js +167 -0
- package/dist/slider/index.d.ts +76 -0
- package/dist/slider/index.js +317 -0
- package/dist/slider/style/index.d.ts +98 -0
- package/dist/slider/style/index.js +262 -0
- package/dist/slider/useRafLock.js +25 -0
- package/dist/space/Addon.d.ts +13 -0
- package/dist/space/Addon.js +53 -0
- package/dist/space/Compact.d.ts +12 -0
- package/dist/space/Compact.js +123 -0
- package/dist/space/Item.js +40 -0
- package/dist/space/context.js +13 -0
- package/dist/space/index.d.ts +39 -0
- package/dist/space/index.js +160 -0
- package/dist/space/style/addon.js +83 -0
- package/dist/space/style/index.d.ts +8 -0
- package/dist/space/style/index.js +43 -0
- package/dist/spin/Indicator/Looper.js +40 -0
- package/dist/spin/Indicator/Progress.js +74 -0
- package/dist/spin/Indicator/index.js +47 -0
- package/dist/spin/index.d.ts +47 -0
- package/dist/spin/index.js +176 -0
- package/dist/spin/style/index.d.ts +28 -0
- package/dist/spin/style/index.js +227 -0
- package/dist/spin/usePercent.js +40 -0
- package/dist/splitter/Panel.js +64 -0
- package/dist/splitter/SplitBar.d.ts +7 -0
- package/dist/splitter/SplitBar.js +261 -0
- package/dist/splitter/Splitter.d.ts +10 -0
- package/dist/splitter/Splitter.js +217 -0
- package/dist/splitter/hooks/sizeUtil.js +49 -0
- package/dist/splitter/hooks/useItems.js +38 -0
- package/dist/splitter/hooks/useResizable.js +59 -0
- package/dist/splitter/hooks/useResize.js +113 -0
- package/dist/splitter/hooks/useSizes.js +72 -0
- package/dist/splitter/index.d.ts +8 -0
- package/dist/splitter/index.js +14 -0
- package/dist/splitter/interface.d.ts +68 -0
- package/dist/splitter/style/index.d.ts +29 -0
- package/dist/splitter/style/index.js +260 -0
- package/dist/statistic/Number.js +64 -0
- package/dist/statistic/Statistic.d.ts +50 -0
- package/dist/statistic/Statistic.js +189 -0
- package/dist/statistic/Timer.d.ts +39 -0
- package/dist/statistic/Timer.js +169 -0
- package/dist/statistic/index.d.ts +29 -0
- package/dist/statistic/index.js +14 -0
- package/dist/statistic/style/index.d.ts +18 -0
- package/dist/statistic/style/index.js +44 -0
- package/dist/statistic/utils.d.ts +13 -0
- package/dist/statistic/utils.js +42 -0
- package/dist/steps/PanelArrow.js +24 -0
- package/dist/steps/ProgressIcon.js +46 -0
- package/dist/steps/context.js +13 -0
- package/dist/steps/index.d.ts +87 -0
- package/dist/steps/index.js +287 -0
- package/dist/steps/style/horizontal.js +24 -0
- package/dist/steps/style/icon.js +41 -0
- package/dist/steps/style/index.d.ts +76 -0
- package/dist/steps/style/index.js +116 -0
- package/dist/steps/style/inline.js +47 -0
- package/dist/steps/style/label-placement.js +82 -0
- package/dist/steps/style/nav.js +89 -0
- package/dist/steps/style/panel.js +101 -0
- package/dist/steps/style/progress-dot.js +38 -0
- package/dist/steps/style/progress.js +70 -0
- package/dist/steps/style/rtl.js +25 -0
- package/dist/steps/style/small.js +20 -0
- package/dist/steps/style/status.js +182 -0
- package/dist/steps/style/util.js +23 -0
- package/dist/steps/style/vertical.js +29 -0
- package/dist/style/compact-item-vertical.js +34 -0
- package/dist/style/compact-item.js +45 -0
- package/dist/style/index.js +138 -0
- package/dist/style/motion/collapse.js +17 -0
- package/dist/style/motion/fade.js +30 -0
- package/dist/style/motion/index.js +7 -0
- package/dist/style/motion/motion.js +44 -0
- package/dist/style/motion/move.js +136 -0
- package/dist/style/motion/slide.js +139 -0
- package/dist/style/motion/zoom.js +176 -0
- package/dist/style/placementArrow.d.ts +13 -0
- package/dist/style/placementArrow.js +144 -0
- package/dist/style/roundedArrow.d.ts +15 -0
- package/dist/style/roundedArrow.js +69 -0
- package/dist/switch/index.d.ts +54 -0
- package/dist/switch/index.js +192 -0
- package/dist/switch/style/index.d.ts +73 -0
- package/dist/switch/style/index.js +247 -0
- package/dist/table/Column.d.ts +20 -0
- package/dist/table/Column.js +195 -0
- package/dist/table/ColumnGroup.d.ts +21 -0
- package/dist/table/ColumnGroup.js +198 -0
- package/dist/table/ExpandIcon.js +28 -0
- package/dist/table/InternalTable.d.ts +84 -0
- package/dist/table/InternalTable.js +604 -0
- package/dist/table/Table.d.ts +26 -0
- package/dist/table/Table.js +254 -0
- package/dist/table/hooks/useContainerWidth.js +18 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +431 -0
- package/dist/table/hooks/useFilter/FilterSearch.js +21 -0
- package/dist/table/hooks/useFilter/FilterWrapper.js +30 -0
- package/dist/table/hooks/useFilter/index.js +148 -0
- package/dist/table/hooks/useLazyKVMap.js +33 -0
- package/dist/table/hooks/usePagination.js +56 -0
- package/dist/table/hooks/useSelection.d.ts +12 -0
- package/dist/table/hooks/useSelection.js +391 -0
- package/dist/table/hooks/useSorter.js +263 -0
- package/dist/table/hooks/useTitleColumns.js +18 -0
- package/dist/table/index.d.ts +25 -0
- package/dist/table/index.js +31 -0
- package/dist/table/interface.d.ts +199 -0
- package/dist/table/style/bordered.js +81 -0
- package/dist/table/style/ellipsis.js +28 -0
- package/dist/table/style/empty.js +16 -0
- package/dist/table/style/expand.js +91 -0
- package/dist/table/style/filter.js +103 -0
- package/dist/table/style/fixed.js +48 -0
- package/dist/table/style/index.d.ts +175 -0
- package/dist/table/style/index.js +245 -0
- package/dist/table/style/pagination.js +22 -0
- package/dist/table/style/radius.js +28 -0
- package/dist/table/style/rtl.js +28 -0
- package/dist/table/style/selection.js +59 -0
- package/dist/table/style/size.js +34 -0
- package/dist/table/style/sorter.js +66 -0
- package/dist/table/style/sticky.js +39 -0
- package/dist/table/style/summary.js +20 -0
- package/dist/table/style/virtual.js +60 -0
- package/dist/table/util.js +26 -0
- package/dist/table/utils.js +18 -0
- package/dist/tabs/TabPane.d.ts +23 -0
- package/dist/tabs/TabPane.js +13 -0
- package/dist/tabs/hooks/useAnimateConfig.js +26 -0
- package/dist/tabs/hooks/useLegacyItems.js +54 -0
- package/dist/tabs/index.d.ts +94 -0
- package/dist/tabs/index.js +362 -0
- package/dist/tabs/style/index.d.ts +138 -0
- package/dist/tabs/style/index.js +618 -0
- package/dist/tabs/style/motion.js +31 -0
- package/dist/tag/CheckableTag.d.ts +34 -0
- package/dist/tag/CheckableTag.js +79 -0
- package/dist/tag/CheckableTagGroup.d.ts +43 -0
- package/dist/tag/CheckableTagGroup.js +122 -0
- package/dist/tag/hooks/useColor.js +49 -0
- package/dist/tag/index.d.ts +48 -0
- package/dist/tag/index.js +217 -0
- package/dist/tag/style/index.d.ts +23 -0
- package/dist/tag/style/index.js +137 -0
- package/dist/tag/style/presetCmp.js +30 -0
- package/dist/tag/style/statusCmp.js +36 -0
- package/dist/theme/context.d.ts +4 -0
- package/dist/theme/context.js +26 -0
- package/dist/theme/getDesignToken.d.ts +8 -0
- package/dist/theme/getDesignToken.js +17 -0
- package/dist/theme/index.d.ts +39 -0
- package/dist/theme/index.js +30 -0
- package/dist/theme/interface/alias.d.ts +569 -0
- package/dist/theme/interface/components.d.ts +142 -0
- package/dist/theme/interface/cssinjs-utils.d.ts +10 -0
- package/dist/theme/interface/index.d.ts +12 -0
- package/dist/theme/interface/maps/colors.d.ts +547 -0
- package/dist/theme/interface/maps/font.d.ts +135 -0
- package/dist/theme/interface/maps/index.d.ts +29 -0
- package/dist/theme/interface/maps/size.d.ts +91 -0
- package/dist/theme/interface/maps/style.d.ts +45 -0
- package/dist/theme/interface/presetColors.d.ts +9 -0
- package/dist/theme/interface/presetColors.js +19 -0
- package/dist/theme/interface/seeds.d.ts +231 -0
- package/dist/theme/internal.d.ts +12 -0
- package/dist/theme/internal.js +11 -0
- package/dist/theme/themes/compact/genCompactSizeMapToken.js +19 -0
- package/dist/theme/themes/compact/index.js +25 -0
- package/dist/theme/themes/dark/colorAlgorithm.js +12 -0
- package/dist/theme/themes/dark/colors.js +49 -0
- package/dist/theme/themes/dark/index.js +39 -0
- package/dist/theme/themes/default/colorAlgorithm.js +12 -0
- package/dist/theme/themes/default/colors.js +49 -0
- package/dist/theme/themes/default/index.d.ts +8 -0
- package/dist/theme/themes/default/index.js +43 -0
- package/dist/theme/themes/default/theme.d.ts +1 -0
- package/dist/theme/themes/default/theme.js +9 -0
- package/dist/theme/themes/seed.js +58 -0
- package/dist/theme/themes/shared/genColorMapToken.js +77 -0
- package/dist/theme/themes/shared/genCommonMapToken.js +16 -0
- package/dist/theme/themes/shared/genControlHeight.js +13 -0
- package/dist/theme/themes/shared/genFontMapToken.js +40 -0
- package/dist/theme/themes/shared/genFontSizes.js +20 -0
- package/dist/theme/themes/shared/genRadius.js +30 -0
- package/dist/theme/themes/shared/genSizeMapToken.js +18 -0
- package/dist/theme/useToken.d.ts +4 -0
- package/dist/theme/useToken.js +102 -0
- package/dist/theme/util/alias.js +165 -0
- package/dist/theme/util/genPresetColor.d.ts +2 -0
- package/dist/theme/util/genPresetColor.js +23 -0
- package/dist/theme/util/genStyleUtils.d.ts +3 -0
- package/dist/theme/util/genStyleUtils.js +57 -0
- package/dist/theme/util/getAlphaColor.js +33 -0
- package/dist/theme/util/useResetIconStyle.d.ts +2 -0
- package/dist/theme/util/useResetIconStyle.js +21 -0
- package/dist/time-picker/index.d.ts +93 -0
- package/dist/time-picker/index.js +2382 -0
- package/dist/time-picker/locale/ar_EG.js +9 -0
- package/dist/time-picker/locale/az_AZ.js +9 -0
- package/dist/time-picker/locale/bg_BG.js +9 -0
- package/dist/time-picker/locale/bn_BD.js +9 -0
- package/dist/time-picker/locale/by_BY.js +9 -0
- package/dist/time-picker/locale/ca_ES.js +9 -0
- package/dist/time-picker/locale/cs_CZ.js +9 -0
- package/dist/time-picker/locale/da_DK.js +9 -0
- package/dist/time-picker/locale/de_DE.js +9 -0
- package/dist/time-picker/locale/el_GR.js +9 -0
- package/dist/time-picker/locale/en_GB.js +9 -0
- package/dist/time-picker/locale/en_US.js +9 -0
- package/dist/time-picker/locale/es_ES.js +9 -0
- package/dist/time-picker/locale/et_EE.js +9 -0
- package/dist/time-picker/locale/eu_ES.js +9 -0
- package/dist/time-picker/locale/fa_IR.js +9 -0
- package/dist/time-picker/locale/fi_FI.js +9 -0
- package/dist/time-picker/locale/fr_BE.js +9 -0
- package/dist/time-picker/locale/fr_CA.js +9 -0
- package/dist/time-picker/locale/fr_FR.js +9 -0
- package/dist/time-picker/locale/ga_IE.js +9 -0
- package/dist/time-picker/locale/gl_ES.js +9 -0
- package/dist/time-picker/locale/he_IL.js +9 -0
- package/dist/time-picker/locale/hi_IN.js +9 -0
- package/dist/time-picker/locale/hr_HR.js +9 -0
- package/dist/time-picker/locale/hu_HU.js +9 -0
- package/dist/time-picker/locale/id_ID.js +9 -0
- package/dist/time-picker/locale/is_IS.js +9 -0
- package/dist/time-picker/locale/it_IT.js +9 -0
- package/dist/time-picker/locale/ja_JP.js +9 -0
- package/dist/time-picker/locale/ka_GE.js +9 -0
- package/dist/time-picker/locale/kk_KZ.js +9 -0
- package/dist/time-picker/locale/km_KH.js +9 -0
- package/dist/time-picker/locale/kmr_IQ.js +9 -0
- package/dist/time-picker/locale/kn_IN.js +9 -0
- package/dist/time-picker/locale/ko_KR.js +9 -0
- package/dist/time-picker/locale/lt_LT.js +9 -0
- package/dist/time-picker/locale/lv_LV.js +9 -0
- package/dist/time-picker/locale/mk_MK.js +9 -0
- package/dist/time-picker/locale/ml_IN.js +9 -0
- package/dist/time-picker/locale/mn_MN.js +9 -0
- package/dist/time-picker/locale/mr_IN.js +9 -0
- package/dist/time-picker/locale/ms_MY.js +9 -0
- package/dist/time-picker/locale/my_MM.js +9 -0
- package/dist/time-picker/locale/nb_NO.js +9 -0
- package/dist/time-picker/locale/nl_BE.js +9 -0
- package/dist/time-picker/locale/nl_NL.js +9 -0
- package/dist/time-picker/locale/pl_PL.js +9 -0
- package/dist/time-picker/locale/pt_BR.js +9 -0
- package/dist/time-picker/locale/pt_PT.js +9 -0
- package/dist/time-picker/locale/ro_RO.js +9 -0
- package/dist/time-picker/locale/ru_RU.js +9 -0
- package/dist/time-picker/locale/si_LK.js +9 -0
- package/dist/time-picker/locale/sk_SK.js +9 -0
- package/dist/time-picker/locale/sl_SI.js +9 -0
- package/dist/time-picker/locale/sr_RS.js +9 -0
- package/dist/time-picker/locale/sv_SE.js +9 -0
- package/dist/time-picker/locale/ta_IN.js +9 -0
- package/dist/time-picker/locale/th_TH.js +9 -0
- package/dist/time-picker/locale/tk_TK.js +9 -0
- package/dist/time-picker/locale/tr_TR.js +9 -0
- package/dist/time-picker/locale/uk_UA.js +9 -0
- package/dist/time-picker/locale/ur_PK.js +9 -0
- package/dist/time-picker/locale/uz_UZ.js +9 -0
- package/dist/time-picker/locale/vi_VN.js +9 -0
- package/dist/time-picker/locale/zh_CN.js +9 -0
- package/dist/time-picker/locale/zh_TW.js +9 -0
- package/dist/timeline/Timeline.d.ts +47 -0
- package/dist/timeline/Timeline.js +90 -0
- package/dist/timeline/TimelineItem.d.ts +20 -0
- package/dist/timeline/TimelineItem.js +103 -0
- package/dist/timeline/TimelineItemList.js +146 -0
- package/dist/timeline/index.d.ts +2 -0
- package/dist/timeline/index.js +7 -0
- package/dist/timeline/style/index.d.ts +33 -0
- package/dist/timeline/style/index.js +165 -0
- package/dist/tooltip/PurePanel.d.ts +9 -0
- package/dist/tooltip/PurePanel.js +160 -0
- package/dist/tooltip/UniqueProvider/MotionContent.js +20 -0
- package/dist/tooltip/UniqueProvider/index.d.ts +6 -0
- package/dist/tooltip/UniqueProvider/index.js +45 -0
- package/dist/tooltip/hooks/useMergedArrow.js +19 -0
- package/dist/tooltip/index.d.ts +95 -0
- package/dist/tooltip/index.js +271 -0
- package/dist/tooltip/style/index.d.ts +15 -0
- package/dist/tooltip/style/index.js +112 -0
- package/dist/tooltip/util.js +26 -0
- package/dist/tour/index.d.ts +11 -0
- package/dist/tour/index.js +266 -0
- package/dist/tour/interface.d.ts +90 -0
- package/dist/tour/panelRender.js +163 -0
- package/dist/tour/style/index.d.ts +30 -0
- package/dist/tour/style/index.js +160 -0
- package/dist/transfer/Actions.d.ts +21 -0
- package/dist/transfer/Actions.js +144 -0
- package/dist/transfer/ListBody.js +281 -0
- package/dist/transfer/ListItem.js +107 -0
- package/dist/transfer/Section.d.ts +7 -0
- package/dist/transfer/Section.js +408 -0
- package/dist/transfer/Transfer.d.ts +10 -0
- package/dist/transfer/Transfer.js +438 -0
- package/dist/transfer/hooks/useData.js +42 -0
- package/dist/transfer/hooks/useSelection.js +43 -0
- package/dist/transfer/index.d.ts +16 -0
- package/dist/transfer/index.js +21 -0
- package/dist/transfer/interface.d.ts +161 -0
- package/dist/transfer/interface.js +9 -0
- package/dist/transfer/search.d.ts +24 -0
- package/dist/transfer/search.js +46 -0
- package/dist/transfer/style/index.d.ts +38 -0
- package/dist/transfer/style/index.js +213 -0
- package/dist/tree/DirectoryTree.d.ts +17 -0
- package/dist/tree/DirectoryTree.js +408 -0
- package/dist/tree/Tree.d.ts +173 -0
- package/dist/tree/Tree.js +420 -0
- package/dist/tree/index.d.ts +12 -0
- package/dist/tree/index.js +17 -0
- package/dist/tree/style/directory.js +34 -0
- package/dist/tree/style/index.d.ts +51 -0
- package/dist/tree/style/index.js +264 -0
- package/dist/tree/utils/dictUtil.js +54 -0
- package/dist/tree/utils/dropIndicator.js +33 -0
- package/dist/tree/utils/iconUtil.js +72 -0
- package/dist/tree-select/index.d.ts +98 -0
- package/dist/tree-select/index.js +744 -0
- package/dist/tree-select/style/index.d.ts +8 -0
- package/dist/tree-select/style/index.js +35 -0
- package/dist/typography/Base/CopyBtn.js +108 -0
- package/dist/typography/Base/Ellipsis.js +240 -0
- package/dist/typography/Base/EllipsisTooltip.js +32 -0
- package/dist/typography/Base/index.js +453 -0
- package/dist/typography/Base/util.js +33 -0
- package/dist/typography/Editable.js +146 -0
- package/dist/typography/Link.d.ts +16 -0
- package/dist/typography/Link.js +147 -0
- package/dist/typography/Paragraph.d.ts +11 -0
- package/dist/typography/Paragraph.js +128 -0
- package/dist/typography/Text.d.ts +13 -0
- package/dist/typography/Text.js +136 -0
- package/dist/typography/Title.d.ts +14 -0
- package/dist/typography/Title.js +144 -0
- package/dist/typography/Typography.d.ts +11 -0
- package/dist/typography/Typography.js +66 -0
- package/dist/typography/hooks/useCopyClick.js +60 -0
- package/dist/typography/hooks/useMergedConfig.js +16 -0
- package/dist/typography/hooks/usePrevious.js +17 -0
- package/dist/typography/hooks/useTooltipProps.js +22 -0
- package/dist/typography/index.d.ts +30 -0
- package/dist/typography/index.js +27 -0
- package/dist/typography/interface.d.ts +95 -0
- package/dist/typography/style/index.d.ts +19 -0
- package/dist/typography/style/index.js +78 -0
- package/dist/typography/style/mixins.js +189 -0
- package/dist/upload/Dragger.d.ts +13 -0
- package/dist/upload/Dragger.js +194 -0
- package/dist/upload/Upload.d.ts +12 -0
- package/dist/upload/Upload.js +491 -0
- package/dist/upload/UploadList/ListItem.js +233 -0
- package/dist/upload/UploadList/index.js +263 -0
- package/dist/upload/index.d.ts +17 -0
- package/dist/upload/index.js +17 -0
- package/dist/upload/interface.d.ts +141 -0
- package/dist/upload/style/dragger.js +58 -0
- package/dist/upload/style/index.d.ts +18 -0
- package/dist/upload/style/index.js +53 -0
- package/dist/upload/style/list.js +80 -0
- package/dist/upload/style/motion.js +41 -0
- package/dist/upload/style/picture.js +183 -0
- package/dist/upload/style/rtl.js +9 -0
- package/dist/upload/utils.js +99 -0
- package/dist/version/index.js +7 -0
- package/dist/watermark/context.js +37 -0
- package/dist/watermark/index.d.ts +26 -0
- package/dist/watermark/index.js +269 -0
- package/dist/watermark/useClips.js +92 -0
- package/dist/watermark/useRafDebounce.js +20 -0
- package/dist/watermark/useSingletonCache.js +22 -0
- package/dist/watermark/useWatermark.js +41 -0
- package/dist/watermark/utils.js +22 -0
- package/global.d.ts +117 -0
- package/package.json +92 -4
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
4
|
+
import "../_util/hooks/index.js";
|
|
5
|
+
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
6
|
+
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
7
|
+
import tooltip_default from "../tooltip/index.js";
|
|
8
|
+
import { TARGET_CLS } from "../_util/wave/interface.js";
|
|
9
|
+
import wave_default from "../_util/wave/index.js";
|
|
10
|
+
import useBreakpoint_default from "../grid/hooks/useBreakpoint.js";
|
|
11
|
+
import { useInternalContext } from "./context.js";
|
|
12
|
+
import PanelArrow_default from "./PanelArrow.js";
|
|
13
|
+
import ProgressIcon_default from "./ProgressIcon.js";
|
|
14
|
+
import style_default from "./style/index.js";
|
|
15
|
+
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
16
|
+
import { clsx } from "@v-c/util";
|
|
17
|
+
import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
18
|
+
import { CheckOutlined } from "@antdv-next/icons";
|
|
19
|
+
import VcSteps from "@v-c/steps";
|
|
20
|
+
|
|
21
|
+
//#region src/steps/index.tsx
|
|
22
|
+
function _isSlot(s) {
|
|
23
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
24
|
+
}
|
|
25
|
+
const waveEffectClassNames = { itemIcon: TARGET_CLS };
|
|
26
|
+
const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
27
|
+
const internalContent = useInternalContext();
|
|
28
|
+
const { direction: rtlDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls } = useComponentBaseConfig("steps", props);
|
|
29
|
+
const { size, items, responsive, type, classes, styles } = toPropsRefs(props, "size", "items", "responsive", "type", "classes", "styles");
|
|
30
|
+
const components = computed(() => {
|
|
31
|
+
return {
|
|
32
|
+
root: internalContent.value?.rootComponent,
|
|
33
|
+
item: internalContent.value?.itemComponent
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const itemIconCls = computed(() => `${prefixCls.value}-item-icon`);
|
|
37
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
38
|
+
const mergedSize = useSize(size);
|
|
39
|
+
const mergedItems = computed(() => (items.value || []).filter(Boolean));
|
|
40
|
+
const breakpoint = useBreakpoint_default(responsive);
|
|
41
|
+
const xl = computed(() => breakpoint.value?.xl);
|
|
42
|
+
const mergedType = computed(() => {
|
|
43
|
+
if (type.value && type.value !== "default") return type.value;
|
|
44
|
+
if (props.progressDot) return "dot";
|
|
45
|
+
return type.value;
|
|
46
|
+
});
|
|
47
|
+
const isInline = computed(() => mergedType.value === "inline");
|
|
48
|
+
const isDot = computed(() => mergedType.value === "dot" || mergedType.value === "inline");
|
|
49
|
+
const mergedOrientation = computed(() => {
|
|
50
|
+
const nextOrientation = props.orientation || props.direction;
|
|
51
|
+
if (mergedType.value === "panel") return "horizontal";
|
|
52
|
+
return responsive.value && xl.value || nextOrientation === "vertical" ? "vertical" : "horizontal";
|
|
53
|
+
});
|
|
54
|
+
const mergedTitlePlacement = computed(() => {
|
|
55
|
+
if (isDot.value || mergedOrientation.value === "vertical") return mergedOrientation.value === "vertical" ? "horizontal" : "vertical";
|
|
56
|
+
if (type.value === "navigation") return "horizontal";
|
|
57
|
+
return props.titlePlacement || props.labelPlacement || "horizontal";
|
|
58
|
+
});
|
|
59
|
+
const mergedPercent = computed(() => isInline.value ? void 0 : props?.percent);
|
|
60
|
+
const mergedProps = computed(() => {
|
|
61
|
+
return {
|
|
62
|
+
...props,
|
|
63
|
+
size: mergedSize.value,
|
|
64
|
+
type: mergedType.value,
|
|
65
|
+
orientation: mergedOrientation.value,
|
|
66
|
+
titlePlacement: mergedTitlePlacement.value,
|
|
67
|
+
percent: mergedPercent.value
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(computed(() => waveEffectClassNames), contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
71
|
+
if (isDev) {
|
|
72
|
+
const { labelPlacement, progressDot, direction } = props;
|
|
73
|
+
const warning = devUseWarning("Steps");
|
|
74
|
+
warning.deprecated(!labelPlacement, "labelPlacement", "titlePlacement");
|
|
75
|
+
warning.deprecated(!progressDot, "progressDot", "type=\"dot\"");
|
|
76
|
+
warning.deprecated(!direction, "direction", "orientation");
|
|
77
|
+
warning.deprecated(mergedItems.value.every((item) => !item.description), "items.description", "items.content");
|
|
78
|
+
}
|
|
79
|
+
return () => {
|
|
80
|
+
const { variant, onChange, offset, ellipsis, rootClass, current,...restProps } = props;
|
|
81
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
82
|
+
const iconRender = slots?.iconRender || props?.iconRender;
|
|
83
|
+
const legacyProgressDotRenderFn = () => {
|
|
84
|
+
return mergedType.value === "dot" && typeof props.progressDot === "function" ? props.progressDot : void 0;
|
|
85
|
+
};
|
|
86
|
+
const legacyProgressDotRender = legacyProgressDotRenderFn();
|
|
87
|
+
const internalIconRender = (_, info) => {
|
|
88
|
+
const { index, item, active, components: { Icon: StepIcon } } = info;
|
|
89
|
+
const { status, icon } = item;
|
|
90
|
+
let iconContent;
|
|
91
|
+
if (isDot.value || icon) iconContent = icon;
|
|
92
|
+
else switch (status) {
|
|
93
|
+
case "finish":
|
|
94
|
+
iconContent = createVNode(CheckOutlined, { "class": `${itemIconCls.value}-finish` }, null);
|
|
95
|
+
break;
|
|
96
|
+
case "error":
|
|
97
|
+
iconContent = createVNode(CheckOutlined, { "class": `${itemIconCls.value}-error` }, null);
|
|
98
|
+
break;
|
|
99
|
+
default: {
|
|
100
|
+
let numNode = createVNode("span", { "class": `${itemIconCls.value}-number` }, [info.index + 1]);
|
|
101
|
+
if (status === "process" && mergedPercent.value !== void 0) {
|
|
102
|
+
const _numNode = function() {
|
|
103
|
+
return numNode;
|
|
104
|
+
}();
|
|
105
|
+
numNode = createVNode(ProgressIcon_default, {
|
|
106
|
+
"prefixCls": prefixCls.value,
|
|
107
|
+
"percent": mergedPercent.value
|
|
108
|
+
}, _isSlot(numNode) ? numNode : { default: () => [_numNode] });
|
|
109
|
+
}
|
|
110
|
+
iconContent = numNode;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
let iconNode = createVNode(StepIcon, null, _isSlot(iconContent) ? iconContent : { default: () => [iconContent] });
|
|
114
|
+
if (iconRender) iconNode = iconRender({
|
|
115
|
+
oriNode: iconNode,
|
|
116
|
+
info: {
|
|
117
|
+
index,
|
|
118
|
+
active,
|
|
119
|
+
item,
|
|
120
|
+
components: { Icon: StepIcon }
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
else if (typeof legacyProgressDotRender === "function") iconNode = legacyProgressDotRender({
|
|
124
|
+
iconDot: iconNode,
|
|
125
|
+
info: {
|
|
126
|
+
index,
|
|
127
|
+
...item
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return iconNode;
|
|
131
|
+
};
|
|
132
|
+
const itemRender = (itemNode, itemInfo) => {
|
|
133
|
+
let content = itemNode;
|
|
134
|
+
const itemContent = getSlotPropsFnRun({}, itemInfo.item, "content");
|
|
135
|
+
if (isInline.value && itemContent) content = createVNode(tooltip_default, {
|
|
136
|
+
"destroyOnHidden": true,
|
|
137
|
+
"title": itemContent
|
|
138
|
+
}, _isSlot(itemNode) ? itemNode : { default: () => [itemNode] });
|
|
139
|
+
return createVNode(wave_default, {
|
|
140
|
+
"component": "Steps",
|
|
141
|
+
"disabled": itemInfo.item.disabled || !onChange,
|
|
142
|
+
"colorSource": variant === "filled" ? "color" : null
|
|
143
|
+
}, _isSlot(content) ? content : { default: () => [content] });
|
|
144
|
+
};
|
|
145
|
+
const itemWrapperRender = mergedType.value === "panel" ? (itemNode) => {
|
|
146
|
+
return createVNode(Fragment, null, [itemNode, createVNode(PanelArrow_default, { "prefixCls": prefixCls.value }, null)]);
|
|
147
|
+
} : void 0;
|
|
148
|
+
const mergedStyle = {
|
|
149
|
+
"--steps-items-offset": offset,
|
|
150
|
+
...contextStyle.value,
|
|
151
|
+
...style
|
|
152
|
+
};
|
|
153
|
+
const stepsClassName = clsx(contextClassName.value, `${prefixCls.value}-${variant}`, {
|
|
154
|
+
[`${prefixCls.value}-${mergedType.value}`]: mergedType.value !== "dot" ? mergedType.value : false,
|
|
155
|
+
[`${prefixCls.value}-rtl`]: rtlDirection.value === "rtl",
|
|
156
|
+
[`${prefixCls.value}-dot`]: isDot.value,
|
|
157
|
+
[`${prefixCls.value}-ellipsis`]: ellipsis,
|
|
158
|
+
[`${prefixCls.value}-with-progress`]: mergedPercent.value !== void 0,
|
|
159
|
+
[`${prefixCls.value}-${mergedSize.value}`]: mergedSize.value
|
|
160
|
+
}, className, rootClass, hashId.value, cssVarCls.value);
|
|
161
|
+
return createVNode(VcSteps, mergeProps(restProps, restAttrs, {
|
|
162
|
+
"prefixCls": prefixCls.value,
|
|
163
|
+
"className": stepsClassName,
|
|
164
|
+
"style": mergedStyle,
|
|
165
|
+
"classNames": mergedClassNames.value,
|
|
166
|
+
"styles": mergedStyles.value,
|
|
167
|
+
"orientation": mergedOrientation.value,
|
|
168
|
+
"titlePlacement": mergedTitlePlacement.value,
|
|
169
|
+
"components": components.value,
|
|
170
|
+
"current": current,
|
|
171
|
+
"items": mergedItems.value,
|
|
172
|
+
"onChange": (current$1) => {
|
|
173
|
+
onChange?.(current$1);
|
|
174
|
+
emit("update:current", current$1);
|
|
175
|
+
},
|
|
176
|
+
"iconRender": internalIconRender,
|
|
177
|
+
"itemRender": itemRender,
|
|
178
|
+
"itemWrapperRender": itemWrapperRender
|
|
179
|
+
}), null);
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
emits: ["update:current"],
|
|
183
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
184
|
+
prefixCls: {
|
|
185
|
+
type: String,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
rootClass: {
|
|
189
|
+
type: String,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
classes: {
|
|
193
|
+
type: [Object, Function],
|
|
194
|
+
required: false
|
|
195
|
+
},
|
|
196
|
+
styles: {
|
|
197
|
+
type: [Object, Function],
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
variant: {
|
|
201
|
+
type: String,
|
|
202
|
+
required: false
|
|
203
|
+
},
|
|
204
|
+
size: {
|
|
205
|
+
type: String,
|
|
206
|
+
required: false
|
|
207
|
+
},
|
|
208
|
+
type: {
|
|
209
|
+
type: String,
|
|
210
|
+
required: false
|
|
211
|
+
},
|
|
212
|
+
direction: {
|
|
213
|
+
type: String,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
orientation: {
|
|
217
|
+
type: String,
|
|
218
|
+
required: false
|
|
219
|
+
},
|
|
220
|
+
labelPlacement: {
|
|
221
|
+
type: String,
|
|
222
|
+
required: false
|
|
223
|
+
},
|
|
224
|
+
titlePlacement: {
|
|
225
|
+
type: String,
|
|
226
|
+
required: false
|
|
227
|
+
},
|
|
228
|
+
progressDot: {
|
|
229
|
+
type: [Boolean, Function],
|
|
230
|
+
required: false
|
|
231
|
+
},
|
|
232
|
+
responsive: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
required: false
|
|
235
|
+
},
|
|
236
|
+
ellipsis: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
required: false
|
|
239
|
+
},
|
|
240
|
+
offset: {
|
|
241
|
+
type: Number,
|
|
242
|
+
required: false
|
|
243
|
+
},
|
|
244
|
+
current: {
|
|
245
|
+
type: Number,
|
|
246
|
+
required: false
|
|
247
|
+
},
|
|
248
|
+
initial: {
|
|
249
|
+
type: Number,
|
|
250
|
+
required: false
|
|
251
|
+
},
|
|
252
|
+
items: {
|
|
253
|
+
type: Array,
|
|
254
|
+
required: false
|
|
255
|
+
},
|
|
256
|
+
percent: {
|
|
257
|
+
type: Number,
|
|
258
|
+
required: false
|
|
259
|
+
},
|
|
260
|
+
status: {
|
|
261
|
+
type: String,
|
|
262
|
+
required: false
|
|
263
|
+
},
|
|
264
|
+
iconRender: {
|
|
265
|
+
type: Function,
|
|
266
|
+
required: false
|
|
267
|
+
},
|
|
268
|
+
onChange: {
|
|
269
|
+
type: Function,
|
|
270
|
+
required: false
|
|
271
|
+
}
|
|
272
|
+
}, {
|
|
273
|
+
variant: "filled",
|
|
274
|
+
responsive: true,
|
|
275
|
+
offset: 0,
|
|
276
|
+
current: 0
|
|
277
|
+
}),
|
|
278
|
+
name: "ASteps",
|
|
279
|
+
inheritAttrs: false
|
|
280
|
+
});
|
|
281
|
+
Steps.install = (app) => {
|
|
282
|
+
app.component(Steps.name, Steps);
|
|
283
|
+
};
|
|
284
|
+
var steps_default = Steps;
|
|
285
|
+
|
|
286
|
+
//#endregion
|
|
287
|
+
export { steps_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/steps/style/horizontal.ts
|
|
2
|
+
const genHorizontalStyle = (token) => {
|
|
3
|
+
const { componentCls } = token;
|
|
4
|
+
const itemCls = `${componentCls}-item`;
|
|
5
|
+
return { [`${componentCls}-horizontal`]: { [`> ${itemCls}`]: {
|
|
6
|
+
flex: "1 1 auto",
|
|
7
|
+
minWidth: token.iconSize,
|
|
8
|
+
[`${itemCls}-rail`]: {
|
|
9
|
+
"--steps-horizontal-rail-margin": "calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",
|
|
10
|
+
"position": "static",
|
|
11
|
+
"marginTop": "var(--steps-horizontal-rail-margin)",
|
|
12
|
+
"width": "auto",
|
|
13
|
+
"borderBlockStartWidth": "var(--steps-rail-size)",
|
|
14
|
+
"flex": 1,
|
|
15
|
+
"minWidth": 0,
|
|
16
|
+
"alignSelf": "flex-start",
|
|
17
|
+
"transform": "translateY(-50%)"
|
|
18
|
+
}
|
|
19
|
+
} } };
|
|
20
|
+
};
|
|
21
|
+
var horizontal_default = genHorizontalStyle;
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { horizontal_default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/steps/style/icon.ts
|
|
2
|
+
const genIconStyle = (token) => {
|
|
3
|
+
const { componentCls, customIconFontSize, motionDurationSlow } = token;
|
|
4
|
+
const itemCls = `${componentCls}-item`;
|
|
5
|
+
return { [componentCls]: {
|
|
6
|
+
"--steps-icon-size": token.iconSize,
|
|
7
|
+
"--steps-icon-border-width": token.lineWidth,
|
|
8
|
+
[`${itemCls}-icon`]: {
|
|
9
|
+
width: "var(--steps-icon-size)",
|
|
10
|
+
height: "var(--steps-icon-size)",
|
|
11
|
+
margin: 0,
|
|
12
|
+
flex: "none",
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
fontSize: token.iconFontSize,
|
|
17
|
+
fontFamily: token.fontFamily,
|
|
18
|
+
lineHeight: "var(--steps-icon-size)",
|
|
19
|
+
textAlign: "center",
|
|
20
|
+
borderRadius: "var(--steps-icon-size)",
|
|
21
|
+
border: `var(--steps-icon-border-width) ${token.lineType} transparent`,
|
|
22
|
+
transition: [
|
|
23
|
+
"background",
|
|
24
|
+
"border",
|
|
25
|
+
"color",
|
|
26
|
+
"inset",
|
|
27
|
+
"transform"
|
|
28
|
+
].map((key) => `${key} ${motionDurationSlow}`).join(", "),
|
|
29
|
+
zIndex: 1
|
|
30
|
+
},
|
|
31
|
+
[`${itemCls}-custom ${itemCls}-icon`]: {
|
|
32
|
+
background: "none",
|
|
33
|
+
border: 0,
|
|
34
|
+
fontSize: customIconFontSize
|
|
35
|
+
}
|
|
36
|
+
} };
|
|
37
|
+
};
|
|
38
|
+
var icon_default = genIconStyle;
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { icon_default as default };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import "../../theme/internal.js";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/steps/style/index.d.ts
|
|
5
|
+
interface ComponentToken {
|
|
6
|
+
/**
|
|
7
|
+
* @desc 描述区域最大宽度
|
|
8
|
+
* @descEN Max width of description area
|
|
9
|
+
* @deprecated This value has been removed by default since v6
|
|
10
|
+
*/
|
|
11
|
+
descriptionMaxWidth?: number;
|
|
12
|
+
/**
|
|
13
|
+
* @desc 自定义图标容器尺寸
|
|
14
|
+
* @descEN Size of custom icon container
|
|
15
|
+
*/
|
|
16
|
+
customIconSize: number;
|
|
17
|
+
/**
|
|
18
|
+
* @desc 自定义图标 top
|
|
19
|
+
* @descEN Top of custom icon
|
|
20
|
+
*/
|
|
21
|
+
customIconTop: number;
|
|
22
|
+
/**
|
|
23
|
+
* @desc 自定义图标大小
|
|
24
|
+
* @descEN Font size of custom icon
|
|
25
|
+
*/
|
|
26
|
+
customIconFontSize: number;
|
|
27
|
+
/**
|
|
28
|
+
* @desc 图标容器尺寸
|
|
29
|
+
* @descEN Size of icon container
|
|
30
|
+
*/
|
|
31
|
+
iconSize: number;
|
|
32
|
+
/**
|
|
33
|
+
* @desc 图标 top
|
|
34
|
+
* @descEN Top of icon
|
|
35
|
+
*/
|
|
36
|
+
iconTop: number;
|
|
37
|
+
/**
|
|
38
|
+
* @desc 图标大小
|
|
39
|
+
* @descEN Size of icon
|
|
40
|
+
*/
|
|
41
|
+
iconFontSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* @desc 点状步骤点大小
|
|
44
|
+
* @descEN Size of dot
|
|
45
|
+
*/
|
|
46
|
+
dotSize: number;
|
|
47
|
+
/**
|
|
48
|
+
* @desc 点状步骤点当前大小
|
|
49
|
+
* @descEN Current size of dot
|
|
50
|
+
*/
|
|
51
|
+
dotCurrentSize: number;
|
|
52
|
+
/**
|
|
53
|
+
* @desc 可跳转步骤条箭头颜色
|
|
54
|
+
* @descEN Color of arrow in nav
|
|
55
|
+
*/
|
|
56
|
+
navArrowColor: string;
|
|
57
|
+
/**
|
|
58
|
+
* @desc 可跳转步骤条内容最大宽度
|
|
59
|
+
* @descEN Max width of nav content
|
|
60
|
+
*/
|
|
61
|
+
navContentMaxWidth: CSSProperties['maxWidth'];
|
|
62
|
+
/**
|
|
63
|
+
* @desc 小号步骤条图标大小
|
|
64
|
+
* @descEN Size of small steps icon
|
|
65
|
+
*/
|
|
66
|
+
iconSizeSM: number;
|
|
67
|
+
/**
|
|
68
|
+
* TODO: deprecated warning since not used anymore
|
|
69
|
+
* @desc 标题行高
|
|
70
|
+
* @descEN Line height of title
|
|
71
|
+
* @deprecated Not used anymore
|
|
72
|
+
*/
|
|
73
|
+
titleLineHeight: number | string;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
export { ComponentToken };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { resetComponent, textEllipsis } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { mergeToken } from "../../theme/internal.js";
|
|
4
|
+
import horizontal_default from "./horizontal.js";
|
|
5
|
+
import icon_default from "./icon.js";
|
|
6
|
+
import inline_default from "./inline.js";
|
|
7
|
+
import label_placement_default from "./label-placement.js";
|
|
8
|
+
import nav_default from "./nav.js";
|
|
9
|
+
import panel_default from "./panel.js";
|
|
10
|
+
import progress_default from "./progress.js";
|
|
11
|
+
import progress_dot_default from "./progress-dot.js";
|
|
12
|
+
import rtl_default from "./rtl.js";
|
|
13
|
+
import small_default from "./small.js";
|
|
14
|
+
import status_default from "./status.js";
|
|
15
|
+
import vertical_default from "./vertical.js";
|
|
16
|
+
|
|
17
|
+
//#region src/steps/style/index.ts
|
|
18
|
+
const genBasicStyle = (token) => {
|
|
19
|
+
const { componentCls } = token;
|
|
20
|
+
const itemCls = `${componentCls}-item`;
|
|
21
|
+
return { [componentCls]: {
|
|
22
|
+
"--steps-title-font-size": token.fontSizeLG,
|
|
23
|
+
"--steps-title-line-height": token.lineHeightLG,
|
|
24
|
+
"--steps-subtitle-font-size": token.fontSize,
|
|
25
|
+
"--steps-subtitle-line-height": token.lineHeight,
|
|
26
|
+
"--steps-item-wrapper-padding-top": "0px",
|
|
27
|
+
"--steps-rail-size": token.lineWidth,
|
|
28
|
+
"--steps-rail-line-style": token.lineType,
|
|
29
|
+
...resetComponent(token),
|
|
30
|
+
"display": "flex",
|
|
31
|
+
"flexWrap": "nowrap",
|
|
32
|
+
"alignItems": "flex-start",
|
|
33
|
+
[itemCls]: {
|
|
34
|
+
flex: "none",
|
|
35
|
+
position: "relative"
|
|
36
|
+
},
|
|
37
|
+
[`${itemCls}-wrapper`]: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
flexWrap: "nowrap",
|
|
40
|
+
paddingTop: `var(--steps-item-wrapper-padding-top)`
|
|
41
|
+
},
|
|
42
|
+
[`${itemCls}-header`]: {
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexWrap: "nowrap",
|
|
45
|
+
alignItems: "center"
|
|
46
|
+
},
|
|
47
|
+
[`${itemCls}-title`]: {
|
|
48
|
+
color: token.colorText,
|
|
49
|
+
fontSize: `var(--steps-title-font-size)`,
|
|
50
|
+
lineHeight: `var(--steps-title-line-height)`,
|
|
51
|
+
wordBreak: "break-word"
|
|
52
|
+
},
|
|
53
|
+
[`${itemCls}-subtitle`]: {
|
|
54
|
+
color: token.colorTextDescription,
|
|
55
|
+
fontWeight: "normal",
|
|
56
|
+
fontSize: `var(--steps-subtitle-font-size)`,
|
|
57
|
+
lineHeight: `var(--steps-subtitle-line-height)`,
|
|
58
|
+
marginInlineStart: token.marginXS,
|
|
59
|
+
wordBreak: "break-word"
|
|
60
|
+
},
|
|
61
|
+
[`${itemCls}-content`]: {
|
|
62
|
+
color: token.colorTextDescription,
|
|
63
|
+
fontSize: token.fontSize,
|
|
64
|
+
lineHeight: token.lineHeight,
|
|
65
|
+
wordBreak: "break-word"
|
|
66
|
+
},
|
|
67
|
+
[`${itemCls}-rail`]: {
|
|
68
|
+
borderStyle: "var(--steps-rail-line-style)",
|
|
69
|
+
borderWidth: 0
|
|
70
|
+
},
|
|
71
|
+
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content, ${itemCls}-rail`]: { transition: `all ${token.motionDurationSlow}` },
|
|
72
|
+
[`&${componentCls}-ellipsis`]: { [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: textEllipsis },
|
|
73
|
+
[`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { cursor: "pointer" }
|
|
74
|
+
} };
|
|
75
|
+
};
|
|
76
|
+
const prepareComponentToken = (token) => ({
|
|
77
|
+
titleLineHeight: token.controlHeight,
|
|
78
|
+
customIconSize: token.controlHeight,
|
|
79
|
+
customIconTop: 0,
|
|
80
|
+
customIconFontSize: token.controlHeightSM,
|
|
81
|
+
iconSize: token.controlHeight,
|
|
82
|
+
iconTop: -.5,
|
|
83
|
+
iconFontSize: token.fontSize,
|
|
84
|
+
iconSizeSM: token.fontSizeHeading3,
|
|
85
|
+
dotSize: token.controlHeight / 4,
|
|
86
|
+
dotCurrentSize: token.controlHeightLG / 4,
|
|
87
|
+
navArrowColor: token.colorTextDisabled,
|
|
88
|
+
navContentMaxWidth: "unset",
|
|
89
|
+
descriptionMaxWidth: void 0,
|
|
90
|
+
waitIconColor: token.wireframe ? token.colorTextDisabled : token.colorTextLabel,
|
|
91
|
+
waitIconBgColor: token.wireframe ? token.colorBgContainer : token.colorFillContent,
|
|
92
|
+
waitIconBorderColor: token.wireframe ? token.colorTextDisabled : "transparent",
|
|
93
|
+
finishIconBgColor: token.wireframe ? token.colorBgContainer : token.controlItemBgActive,
|
|
94
|
+
finishIconBorderColor: token.wireframe ? token.colorPrimary : token.controlItemBgActive
|
|
95
|
+
});
|
|
96
|
+
var style_default = genStyleHooks("Steps", (token) => {
|
|
97
|
+
const stepsToken = mergeToken(token, { inlineDotSize: 6 });
|
|
98
|
+
return [
|
|
99
|
+
genBasicStyle(stepsToken),
|
|
100
|
+
icon_default(stepsToken),
|
|
101
|
+
vertical_default(stepsToken),
|
|
102
|
+
horizontal_default(stepsToken),
|
|
103
|
+
label_placement_default(stepsToken),
|
|
104
|
+
small_default(stepsToken),
|
|
105
|
+
progress_dot_default(stepsToken),
|
|
106
|
+
status_default(stepsToken),
|
|
107
|
+
nav_default(stepsToken),
|
|
108
|
+
panel_default(stepsToken),
|
|
109
|
+
inline_default(stepsToken),
|
|
110
|
+
progress_default(stepsToken),
|
|
111
|
+
rtl_default(stepsToken)
|
|
112
|
+
];
|
|
113
|
+
}, prepareComponentToken);
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
export { style_default as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region src/steps/style/inline.ts
|
|
2
|
+
const genInlineStyle = (token) => {
|
|
3
|
+
const { componentCls, inlineDotSize } = token;
|
|
4
|
+
const containerPaddingTop = token.calc(token.paddingXS).add(token.lineWidth).equal();
|
|
5
|
+
const itemCls = `${componentCls}-item`;
|
|
6
|
+
return { [`${componentCls}-inline`]: {
|
|
7
|
+
"--steps-items-offset": "0",
|
|
8
|
+
"--steps-item-wrapper-padding-top": containerPaddingTop,
|
|
9
|
+
"display": "inline-flex",
|
|
10
|
+
"&:before": {
|
|
11
|
+
content: "\"\"",
|
|
12
|
+
flex: "var(--steps-items-offset)"
|
|
13
|
+
},
|
|
14
|
+
[itemCls]: {
|
|
15
|
+
"--steps-title-vertical-row-gap": token.paddingXS,
|
|
16
|
+
"--steps-icon-size": inlineDotSize,
|
|
17
|
+
"--steps-icon-size-active": inlineDotSize,
|
|
18
|
+
"--steps-title-font-size": token.fontSizeSM,
|
|
19
|
+
"--steps-title-line-height": token.lineHeightSM,
|
|
20
|
+
"--steps-item-title-color": token.colorTextSecondary,
|
|
21
|
+
"--steps-subtitle-font-size": token.fontSizeSM,
|
|
22
|
+
"--steps-subtitle-line-height": token.lineHeightSM,
|
|
23
|
+
"--steps-item-subtitle-color": token.colorTextQuaternary,
|
|
24
|
+
"--steps-rail-size": token.lineWidth,
|
|
25
|
+
"--steps-title-horizontal-rail-gap": "0px",
|
|
26
|
+
"flex": 1,
|
|
27
|
+
"&-wrapper": {
|
|
28
|
+
"paddingInline": token.paddingXXS,
|
|
29
|
+
"marginInline": token.calc(token.marginXXS).div(2).equal(),
|
|
30
|
+
"borderRadius": token.borderRadiusSM,
|
|
31
|
+
"cursor": "pointer",
|
|
32
|
+
"transition": `background ${token.motionDurationMid}`,
|
|
33
|
+
"&:hover": { background: token.controlItemBgHover }
|
|
34
|
+
},
|
|
35
|
+
"&-icon": { [`${itemCls}-icon-dot`]: { "&:after": { display: "none" } } },
|
|
36
|
+
"&-title": {
|
|
37
|
+
fontWeight: "normal",
|
|
38
|
+
whiteSpace: "nowrap"
|
|
39
|
+
},
|
|
40
|
+
"&-content": { display: "none" }
|
|
41
|
+
}
|
|
42
|
+
} };
|
|
43
|
+
};
|
|
44
|
+
var inline_default = genInlineStyle;
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { inline_default as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { getItemWithWidthStyle } from "./util.js";
|
|
2
|
+
|
|
3
|
+
//#region src/steps/style/label-placement.ts
|
|
4
|
+
const genLabelPlacementStyle = (token) => {
|
|
5
|
+
const { componentCls, descriptionMaxWidth, marginXS, fontHeightLG, calc } = token;
|
|
6
|
+
const itemCls = `${componentCls}-item`;
|
|
7
|
+
return {
|
|
8
|
+
[componentCls]: {
|
|
9
|
+
"--steps-icon-size-max": "max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",
|
|
10
|
+
[`${itemCls}-icon`]: { marginBlockStart: `calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)` }
|
|
11
|
+
},
|
|
12
|
+
[`${componentCls}-title-horizontal`]: {
|
|
13
|
+
"--steps-title-horizontal-item-margin": token.margin,
|
|
14
|
+
"--steps-title-horizontal-rail-margin": token.margin,
|
|
15
|
+
"--steps-title-horizontal-title-height": fontHeightLG,
|
|
16
|
+
"--steps-heading-height": `max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))`,
|
|
17
|
+
[`&${componentCls}-horizontal, &${componentCls}-horizontal-alternate`]: {
|
|
18
|
+
[`${itemCls}:not(:first-child)`]: { marginInlineStart: `var(--steps-title-horizontal-item-margin)` },
|
|
19
|
+
[`${itemCls}:last-child`]: { flex: "0 1 auto" },
|
|
20
|
+
[`${itemCls}-wrapper`]: { columnGap: token.marginXS }
|
|
21
|
+
},
|
|
22
|
+
[`&${componentCls}-vertical`]: {
|
|
23
|
+
[`${itemCls}-wrapper`]: { columnGap: token.margin },
|
|
24
|
+
[`${itemCls}-empty-header`]: {
|
|
25
|
+
[`${itemCls}-header`]: { minHeight: "auto" },
|
|
26
|
+
[`${itemCls}-content`]: { marginTop: calc("var(--steps-heading-height)").sub(token.fontHeight).div(2).equal() }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
[`${itemCls}-section`]: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
minWidth: 0
|
|
32
|
+
},
|
|
33
|
+
[`${itemCls}-header`]: { minHeight: "var(--steps-heading-height)" },
|
|
34
|
+
[`${itemCls}-title`]: { flex: "0 1 auto" },
|
|
35
|
+
[`${itemCls}-content`]: { maxWidth: descriptionMaxWidth },
|
|
36
|
+
[`${itemCls}-subtitle`]: { flex: "0 9999 auto" },
|
|
37
|
+
[`&${componentCls}-horizontal ${itemCls}-rail`]: {
|
|
38
|
+
"--steps-item-wrapper-padding-top": "0px",
|
|
39
|
+
"flex": 1,
|
|
40
|
+
"marginInlineStart": `var(--steps-title-horizontal-rail-margin)`
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
[`${componentCls}-title-vertical`]: {
|
|
44
|
+
"--steps-title-vertical-row-gap": token.paddingSM,
|
|
45
|
+
"--steps-title-horizontal-rail-gap": token.marginXXS,
|
|
46
|
+
"--steps-heading-height": "var(--steps-icon-size-max)",
|
|
47
|
+
[`> ${itemCls}`]: {
|
|
48
|
+
flex: 1,
|
|
49
|
+
[`${itemCls}-wrapper`]: {
|
|
50
|
+
flexDirection: "column",
|
|
51
|
+
rowGap: `var(--steps-title-vertical-row-gap)`,
|
|
52
|
+
alignItems: "center"
|
|
53
|
+
},
|
|
54
|
+
[`${itemCls}-section`]: { alignSelf: "stretch" },
|
|
55
|
+
[`${itemCls}-header`]: {
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
alignItems: "center"
|
|
58
|
+
},
|
|
59
|
+
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: {
|
|
60
|
+
textAlign: "center",
|
|
61
|
+
maxWidth: "100%"
|
|
62
|
+
},
|
|
63
|
+
[`${itemCls}-subtitle`]: { margin: 0 },
|
|
64
|
+
[`${itemCls}-rail`]: {
|
|
65
|
+
position: "absolute",
|
|
66
|
+
top: 0,
|
|
67
|
+
width: `calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)`,
|
|
68
|
+
insetInlineStart: `calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))`
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
...getItemWithWidthStyle(token, marginXS, {
|
|
72
|
+
[`${itemCls}:last-child`]: { flex: "none" },
|
|
73
|
+
[`${itemCls}-icon`]: { alignSelf: "flex-start" },
|
|
74
|
+
[`${itemCls}-section`]: { width: descriptionMaxWidth }
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
var label_placement_default = genLabelPlacementStyle;
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
export { label_placement_default as default };
|