@chaoswise/ui 3.0.5 → 3.0.6
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/package.json +1 -1
- package/lib/AbreastLayout/CollapsedBtn.js +0 -45
- package/lib/AbreastLayout/CollapsedIcon.js +0 -14
- package/lib/AbreastLayout/NavTreeContainer.js +0 -26
- package/lib/AbreastLayout/assets/icon.png +0 -0
- package/lib/AbreastLayout/assets/icon.svg +0 -11
- package/lib/AbreastLayout/assets/icon1.svg +0 -20
- package/lib/AbreastLayout/index.js +0 -215
- package/lib/AbreastLayout/index.style.js +0 -91
- package/lib/Ace/ace.js +0 -600
- package/lib/Ace/diff.js +0 -291
- package/lib/Ace/editorOptions.js +0 -34
- package/lib/Ace/index.js +0 -6
- package/lib/Ace/split.js +0 -462
- package/lib/AdaptiveLayout/index.js +0 -251
- package/lib/Affix/index.js +0 -2
- package/lib/Alert/index.js +0 -2
- package/lib/Anchor/index.js +0 -2
- package/lib/Antd5/_util/ActionButton.js +0 -117
- package/lib/Antd5/_util/PurePanel.js +0 -103
- package/lib/Antd5/_util/aria-data-attrs.js +0 -1
- package/lib/Antd5/_util/capitalize.js +0 -7
- package/lib/Antd5/_util/colors.js +0 -26
- package/lib/Antd5/_util/easings.js +0 -10
- package/lib/Antd5/_util/extendsObject.js +0 -26
- package/lib/Antd5/_util/gapSize.js +0 -10
- package/lib/Antd5/_util/getAllowClear.js +0 -16
- package/lib/Antd5/_util/getRenderPropValue.js +0 -6
- package/lib/Antd5/_util/getScroll.js +0 -29
- package/lib/Antd5/_util/hooks/useClosable.js +0 -119
- package/lib/Antd5/_util/hooks/useForceUpdate.js +0 -15
- package/lib/Antd5/_util/hooks/useMultipleSelect.js +0 -47
- package/lib/Antd5/_util/hooks/usePatchElement.js +0 -33
- package/lib/Antd5/_util/hooks/useProxyImperativeHandle.js +0 -32
- package/lib/Antd5/_util/hooks/useSyncState.js +0 -13
- package/lib/Antd5/_util/hooks/useZIndex.js +0 -56
- package/lib/Antd5/_util/isNumeric.js +0 -4
- package/lib/Antd5/_util/motion.js +0 -47
- package/lib/Antd5/_util/placements.js +0 -182
- package/lib/Antd5/_util/reactNode.js +0 -13
- package/lib/Antd5/_util/responsiveObserver.js +0 -123
- package/lib/Antd5/_util/scrollTo.js +0 -34
- package/lib/Antd5/_util/statusUtils.js +0 -12
- package/lib/Antd5/_util/styleChecker.js +0 -6
- package/lib/Antd5/_util/throttleByAnimationFrame.js +0 -30
- package/lib/Antd5/_util/transButton.js +0 -63
- package/lib/Antd5/_util/transKeys.js +0 -18
- package/lib/Antd5/_util/type.js +0 -1
- package/lib/Antd5/_util/warning.js +0 -59
- package/lib/Antd5/_util/wave/WaveEffect.js +0 -160
- package/lib/Antd5/_util/wave/index.js +0 -63
- package/lib/Antd5/_util/wave/interface.js +0 -1
- package/lib/Antd5/_util/wave/style.js +0 -32
- package/lib/Antd5/_util/wave/useWave.js +0 -48
- package/lib/Antd5/_util/wave/util.js +0 -29
- package/lib/Antd5/_util/zindexContext.js +0 -6
- package/lib/Antd5/affix/index.js +0 -228
- package/lib/Antd5/affix/style/index.js +0 -20
- package/lib/Antd5/affix/utils.js +0 -19
- package/lib/Antd5/alert/Alert.js +0 -233
- package/lib/Antd5/alert/ErrorBoundary.js +0 -76
- package/lib/Antd5/alert/design/behavior-pattern.js +0 -31
- package/lib/Antd5/alert/index.js +0 -5
- package/lib/Antd5/alert/style/index.js +0 -153
- package/lib/Antd5/anchor/Anchor.js +0 -278
- package/lib/Antd5/anchor/AnchorLink.js +0 -67
- package/lib/Antd5/anchor/context.js +0 -3
- package/lib/Antd5/anchor/index.js +0 -5
- package/lib/Antd5/anchor/style/index.js +0 -124
- package/lib/Antd5/app/context.js +0 -8
- package/lib/Antd5/app/index.js +0 -93
- package/lib/Antd5/app/style/index.js +0 -24
- package/lib/Antd5/auto-complete/index.js +0 -112
- package/lib/Antd5/avatar/AvatarContext.js +0 -3
- package/lib/Antd5/avatar/avatar.js +0 -189
- package/lib/Antd5/avatar/group.js +0 -103
- package/lib/Antd5/avatar/index.js +0 -6
- package/lib/Antd5/avatar/style/index.js +0 -110
- package/lib/Antd5/back-top/index.js +0 -113
- package/lib/Antd5/back-top/style/index.js +0 -82
- package/lib/Antd5/badge/Ribbon.js +0 -65
- package/lib/Antd5/badge/ScrollNumber.js +0 -72
- package/lib/Antd5/badge/SingleNumber.js +0 -122
- package/lib/Antd5/badge/index.js +0 -189
- package/lib/Antd5/badge/style/index.js +0 -291
- package/lib/Antd5/badge/style/ribbon.js +0 -72
- package/lib/Antd5/breadcrumb/Breadcrumb.js +0 -157
- package/lib/Antd5/breadcrumb/BreadcrumbItem.js +0 -103
- package/lib/Antd5/breadcrumb/BreadcrumbSeparator.js +0 -16
- package/lib/Antd5/breadcrumb/design/behavior-pattern.js +0 -36
- package/lib/Antd5/breadcrumb/index.js +0 -2
- package/lib/Antd5/breadcrumb/style/index.js +0 -82
- package/lib/Antd5/breadcrumb/useItemRender.js +0 -57
- package/lib/Antd5/breadcrumb/useItems.js +0 -42
- package/lib/Antd5/button/IconWrapper.js +0 -17
- package/lib/Antd5/button/LoadingIcon.js +0 -87
- package/lib/Antd5/button/button-group.js +0 -59
- package/lib/Antd5/button/button.js +0 -230
- package/lib/Antd5/button/buttonHelpers.js +0 -68
- package/lib/Antd5/button/index.js +0 -3
- package/lib/Antd5/button/style/compactCmp.js +0 -46
- package/lib/Antd5/button/style/group.js +0 -52
- package/lib/Antd5/button/style/index.js +0 -322
- package/lib/Antd5/button/style/token.js +0 -61
- package/lib/Antd5/calendar/Header.js +0 -176
- package/lib/Antd5/calendar/generateCalendar.js +0 -225
- package/lib/Antd5/calendar/index.js +0 -5
- package/lib/Antd5/calendar/locale/ar_EG.js +0 -2
- package/lib/Antd5/calendar/locale/az_AZ.js +0 -2
- package/lib/Antd5/calendar/locale/bg_BG.js +0 -2
- package/lib/Antd5/calendar/locale/bn_BD.js +0 -2
- package/lib/Antd5/calendar/locale/by_BY.js +0 -2
- package/lib/Antd5/calendar/locale/ca_ES.js +0 -2
- package/lib/Antd5/calendar/locale/cs_CZ.js +0 -2
- package/lib/Antd5/calendar/locale/da_DK.js +0 -2
- package/lib/Antd5/calendar/locale/de_DE.js +0 -2
- package/lib/Antd5/calendar/locale/el_GR.js +0 -2
- package/lib/Antd5/calendar/locale/en_GB.js +0 -2
- package/lib/Antd5/calendar/locale/en_US.js +0 -2
- package/lib/Antd5/calendar/locale/es_ES.js +0 -2
- package/lib/Antd5/calendar/locale/et_EE.js +0 -2
- package/lib/Antd5/calendar/locale/eu_ES.js +0 -2
- package/lib/Antd5/calendar/locale/fa_IR.js +0 -2
- package/lib/Antd5/calendar/locale/fi_FI.js +0 -2
- package/lib/Antd5/calendar/locale/fr_BE.js +0 -2
- package/lib/Antd5/calendar/locale/fr_CA.js +0 -2
- package/lib/Antd5/calendar/locale/fr_FR.js +0 -2
- package/lib/Antd5/calendar/locale/ga_IE.js +0 -2
- package/lib/Antd5/calendar/locale/gl_ES.js +0 -2
- package/lib/Antd5/calendar/locale/he_IL.js +0 -2
- package/lib/Antd5/calendar/locale/hi_IN.js +0 -2
- package/lib/Antd5/calendar/locale/hr_HR.js +0 -2
- package/lib/Antd5/calendar/locale/hu_HU.js +0 -2
- package/lib/Antd5/calendar/locale/id_ID.js +0 -2
- package/lib/Antd5/calendar/locale/is_IS.js +0 -2
- package/lib/Antd5/calendar/locale/it_IT.js +0 -2
- package/lib/Antd5/calendar/locale/ja_JP.js +0 -2
- package/lib/Antd5/calendar/locale/ka_GE.js +0 -2
- package/lib/Antd5/calendar/locale/kk_KZ.js +0 -2
- package/lib/Antd5/calendar/locale/km_KH.js +0 -2
- package/lib/Antd5/calendar/locale/kmr_IQ.js +0 -2
- package/lib/Antd5/calendar/locale/kn_IN.js +0 -2
- package/lib/Antd5/calendar/locale/ko_KR.js +0 -2
- package/lib/Antd5/calendar/locale/lt_LT.js +0 -2
- package/lib/Antd5/calendar/locale/lv_LV.js +0 -2
- package/lib/Antd5/calendar/locale/mk_MK.js +0 -2
- package/lib/Antd5/calendar/locale/ml_IN.js +0 -2
- package/lib/Antd5/calendar/locale/mn_MN.js +0 -2
- package/lib/Antd5/calendar/locale/ms_MY.js +0 -2
- package/lib/Antd5/calendar/locale/my_MM.js +0 -2
- package/lib/Antd5/calendar/locale/nb_NO.js +0 -2
- package/lib/Antd5/calendar/locale/nl_BE.js +0 -2
- package/lib/Antd5/calendar/locale/nl_NL.js +0 -2
- package/lib/Antd5/calendar/locale/pl_PL.js +0 -2
- package/lib/Antd5/calendar/locale/pt_BR.js +0 -2
- package/lib/Antd5/calendar/locale/pt_PT.js +0 -2
- package/lib/Antd5/calendar/locale/ro_RO.js +0 -2
- package/lib/Antd5/calendar/locale/ru_RU.js +0 -2
- package/lib/Antd5/calendar/locale/si_LK.js +0 -2
- package/lib/Antd5/calendar/locale/sk_SK.js +0 -2
- package/lib/Antd5/calendar/locale/sl_SI.js +0 -2
- package/lib/Antd5/calendar/locale/sr_RS.js +0 -2
- package/lib/Antd5/calendar/locale/sv_SE.js +0 -2
- package/lib/Antd5/calendar/locale/ta_IN.js +0 -2
- package/lib/Antd5/calendar/locale/th_TH.js +0 -2
- package/lib/Antd5/calendar/locale/tk_TK.js +0 -2
- package/lib/Antd5/calendar/locale/tr_TR.js +0 -2
- package/lib/Antd5/calendar/locale/uk_UA.js +0 -2
- package/lib/Antd5/calendar/locale/ur_PK.js +0 -2
- package/lib/Antd5/calendar/locale/uz_UZ.js +0 -2
- package/lib/Antd5/calendar/locale/vi_VN.js +0 -2
- package/lib/Antd5/calendar/locale/zh_CN.js +0 -2
- package/lib/Antd5/calendar/locale/zh_TW.js +0 -2
- package/lib/Antd5/calendar/style/index.js +0 -153
- package/lib/Antd5/card/Card.js +0 -201
- package/lib/Antd5/card/Grid.js +0 -28
- package/lib/Antd5/card/Meta.js +0 -46
- package/lib/Antd5/card/index.js +0 -10
- package/lib/Antd5/card/style/index.js +0 -287
- package/lib/Antd5/carousel/index.js +0 -120
- package/lib/Antd5/carousel/style/index.js +0 -310
- package/lib/Antd5/cascader/Panel.js +0 -68
- package/lib/Antd5/cascader/hooks/useBase.js +0 -12
- package/lib/Antd5/cascader/hooks/useCheckable.js +0 -9
- package/lib/Antd5/cascader/hooks/useColumnIcons.js +0 -18
- package/lib/Antd5/cascader/index.js +0 -264
- package/lib/Antd5/cascader/style/columns.js +0 -87
- package/lib/Antd5/cascader/style/index.js +0 -48
- package/lib/Antd5/cascader/style/panel.js +0 -29
- package/lib/Antd5/checkbox/Checkbox.js +0 -125
- package/lib/Antd5/checkbox/Group.js +0 -148
- package/lib/Antd5/checkbox/GroupContext.js +0 -3
- package/lib/Antd5/checkbox/index.js +0 -9
- package/lib/Antd5/checkbox/style/index.js +0 -159
- package/lib/Antd5/col/index.js +0 -2
- package/lib/Antd5/col/style/index.js +0 -3
- package/lib/Antd5/collapse/Collapse.js +0 -121
- package/lib/Antd5/collapse/CollapsePanel.js +0 -33
- package/lib/Antd5/collapse/index.js +0 -2
- package/lib/Antd5/collapse/style/index.js +0 -183
- package/lib/Antd5/color-picker/ColorPicker.js +0 -233
- package/lib/Antd5/color-picker/ColorPickerPanel.js +0 -64
- package/lib/Antd5/color-picker/color.js +0 -67
- package/lib/Antd5/color-picker/components/ColorAlphaInput.js +0 -45
- package/lib/Antd5/color-picker/components/ColorClear.js +0 -22
- package/lib/Antd5/color-picker/components/ColorHexInput.js +0 -47
- package/lib/Antd5/color-picker/components/ColorHsbInput.js +0 -76
- package/lib/Antd5/color-picker/components/ColorInput.js +0 -86
- package/lib/Antd5/color-picker/components/ColorPresets.js +0 -109
- package/lib/Antd5/color-picker/components/ColorRgbInput.js +0 -67
- package/lib/Antd5/color-picker/components/ColorSteppers.js +0 -47
- package/lib/Antd5/color-picker/components/ColorTrigger.js +0 -65
- package/lib/Antd5/color-picker/components/PanelPicker.js +0 -53
- package/lib/Antd5/color-picker/components/PanelPresets.js +0 -18
- package/lib/Antd5/color-picker/context.js +0 -7
- package/lib/Antd5/color-picker/hooks/useColorState.js +0 -53
- package/lib/Antd5/color-picker/index.js +0 -2
- package/lib/Antd5/color-picker/interface.js +0 -6
- package/lib/Antd5/color-picker/style/color-block.js +0 -36
- package/lib/Antd5/color-picker/style/index.js +0 -203
- package/lib/Antd5/color-picker/style/input.js +0 -74
- package/lib/Antd5/color-picker/style/picker.js +0 -64
- package/lib/Antd5/color-picker/style/presets.js +0 -94
- package/lib/Antd5/color-picker/util.js +0 -18
- package/lib/Antd5/config-provider/DisabledContext.js +0 -13
- package/lib/Antd5/config-provider/MotionWrapper.js +0 -26
- package/lib/Antd5/config-provider/PropWarning.js +0 -18
- package/lib/Antd5/config-provider/SizeContext.js +0 -13
- package/lib/Antd5/config-provider/context.js +0 -16
- package/lib/Antd5/config-provider/cssVariables.js +0 -88
- package/lib/Antd5/config-provider/defaultRenderEmpty.js +0 -31
- package/lib/Antd5/config-provider/hooks/useCSSVarCls.js +0 -19
- package/lib/Antd5/config-provider/hooks/useConfig.js +0 -12
- package/lib/Antd5/config-provider/hooks/useSize.js +0 -19
- package/lib/Antd5/config-provider/hooks/useTheme.js +0 -55
- package/lib/Antd5/config-provider/hooks/useThemeKey.js +0 -14
- package/lib/Antd5/config-provider/index.js +0 -432
- package/lib/Antd5/config-provider/style/index.js +0 -2
- package/lib/Antd5/date-picker/PickerButton.js +0 -15
- package/lib/Antd5/date-picker/design/behavior-pattern.js +0 -89
- package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +0 -170
- package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +0 -200
- package/lib/Antd5/date-picker/generatePicker/index.js +0 -26
- package/lib/Antd5/date-picker/generatePicker/interface.js +0 -2
- package/lib/Antd5/date-picker/generatePicker/useComponents.js +0 -15
- package/lib/Antd5/date-picker/index.js +0 -27
- package/lib/Antd5/date-picker/locale/ar_EG.js +0 -23
- package/lib/Antd5/date-picker/locale/az_AZ.js +0 -16
- package/lib/Antd5/date-picker/locale/bg_BG.js +0 -19
- package/lib/Antd5/date-picker/locale/bn_BD.js +0 -26
- package/lib/Antd5/date-picker/locale/by_BY.js +0 -24
- package/lib/Antd5/date-picker/locale/ca_ES.js +0 -19
- package/lib/Antd5/date-picker/locale/cs_CZ.js +0 -19
- package/lib/Antd5/date-picker/locale/da_DK.js +0 -19
- package/lib/Antd5/date-picker/locale/de_DE.js +0 -21
- package/lib/Antd5/date-picker/locale/el_GR.js +0 -19
- package/lib/Antd5/date-picker/locale/en_GB.js +0 -27
- package/lib/Antd5/date-picker/locale/en_US.js +0 -27
- package/lib/Antd5/date-picker/locale/es_ES.js +0 -21
- package/lib/Antd5/date-picker/locale/et_EE.js +0 -19
- package/lib/Antd5/date-picker/locale/eu_ES.js +0 -19
- package/lib/Antd5/date-picker/locale/example.json +0 -55
- package/lib/Antd5/date-picker/locale/fa_IR.js +0 -27
- package/lib/Antd5/date-picker/locale/fi_FI.js +0 -19
- package/lib/Antd5/date-picker/locale/fr_BE.js +0 -26
- package/lib/Antd5/date-picker/locale/fr_CA.js +0 -26
- package/lib/Antd5/date-picker/locale/fr_FR.js +0 -26
- package/lib/Antd5/date-picker/locale/ga_IE.js +0 -26
- package/lib/Antd5/date-picker/locale/gl_ES.js +0 -19
- package/lib/Antd5/date-picker/locale/he_IL.js +0 -19
- package/lib/Antd5/date-picker/locale/hi_IN.js +0 -26
- package/lib/Antd5/date-picker/locale/hr_HR.js +0 -26
- package/lib/Antd5/date-picker/locale/hu_HU.js +0 -19
- package/lib/Antd5/date-picker/locale/id_ID.js +0 -27
- package/lib/Antd5/date-picker/locale/is_IS.js +0 -19
- package/lib/Antd5/date-picker/locale/it_IT.js +0 -19
- package/lib/Antd5/date-picker/locale/ja_JP.js +0 -19
- package/lib/Antd5/date-picker/locale/ka_GE.js +0 -23
- package/lib/Antd5/date-picker/locale/kk_KZ.js +0 -26
- package/lib/Antd5/date-picker/locale/km_KH.js +0 -26
- package/lib/Antd5/date-picker/locale/kmr_IQ.js +0 -19
- package/lib/Antd5/date-picker/locale/kn_IN.js +0 -19
- package/lib/Antd5/date-picker/locale/ko_KR.js +0 -19
- package/lib/Antd5/date-picker/locale/lt_LT.js +0 -27
- package/lib/Antd5/date-picker/locale/lv_LV.js +0 -19
- package/lib/Antd5/date-picker/locale/mk_MK.js +0 -19
- package/lib/Antd5/date-picker/locale/ml_IN.js +0 -26
- package/lib/Antd5/date-picker/locale/mn_MN.js +0 -19
- package/lib/Antd5/date-picker/locale/ms_MY.js +0 -19
- package/lib/Antd5/date-picker/locale/my_MM.js +0 -27
- package/lib/Antd5/date-picker/locale/nb_NO.js +0 -26
- package/lib/Antd5/date-picker/locale/nl_BE.js +0 -26
- package/lib/Antd5/date-picker/locale/nl_NL.js +0 -26
- package/lib/Antd5/date-picker/locale/pl_PL.js +0 -19
- package/lib/Antd5/date-picker/locale/pt_BR.js +0 -19
- package/lib/Antd5/date-picker/locale/pt_PT.js +0 -47
- package/lib/Antd5/date-picker/locale/ro_RO.js +0 -19
- package/lib/Antd5/date-picker/locale/ru_RU.js +0 -29
- package/lib/Antd5/date-picker/locale/si_LK.js +0 -27
- package/lib/Antd5/date-picker/locale/sk_SK.js +0 -19
- package/lib/Antd5/date-picker/locale/sl_SI.js +0 -45
- package/lib/Antd5/date-picker/locale/sr_RS.js +0 -26
- package/lib/Antd5/date-picker/locale/sv_SE.js +0 -26
- package/lib/Antd5/date-picker/locale/ta_IN.js +0 -27
- package/lib/Antd5/date-picker/locale/th_TH.js +0 -26
- package/lib/Antd5/date-picker/locale/tk_TK.js +0 -24
- package/lib/Antd5/date-picker/locale/tr_TR.js +0 -26
- package/lib/Antd5/date-picker/locale/uk_UA.js +0 -19
- package/lib/Antd5/date-picker/locale/ur_PK.js +0 -26
- package/lib/Antd5/date-picker/locale/uz_UZ.js +0 -26
- package/lib/Antd5/date-picker/locale/vi_VN.js +0 -27
- package/lib/Antd5/date-picker/locale/zh_CN.js +0 -29
- package/lib/Antd5/date-picker/locale/zh_TW.js +0 -28
- package/lib/Antd5/date-picker/style/index.js +0 -328
- package/lib/Antd5/date-picker/style/multiple.js +0 -81
- package/lib/Antd5/date-picker/style/panel.js +0 -448
- package/lib/Antd5/date-picker/style/token.js +0 -77
- package/lib/Antd5/date-picker/style/variants.js +0 -28
- package/lib/Antd5/date-picker/util.js +0 -118
- package/lib/Antd5/descriptions/Cell.js +0 -57
- package/lib/Antd5/descriptions/DescriptionsContext.js +0 -3
- package/lib/Antd5/descriptions/Item.js +0 -5
- package/lib/Antd5/descriptions/Row.js +0 -107
- package/lib/Antd5/descriptions/constant.js +0 -9
- package/lib/Antd5/descriptions/hooks/useItems.js +0 -38
- package/lib/Antd5/descriptions/hooks/useRow.js +0 -78
- package/lib/Antd5/descriptions/index.js +0 -119
- package/lib/Antd5/descriptions/style/index.js +0 -146
- package/lib/Antd5/divider/index.js +0 -85
- package/lib/Antd5/divider/style/index.js +0 -136
- package/lib/Antd5/drawer/DrawerPanel.js +0 -107
- package/lib/Antd5/drawer/index.js +0 -206
- package/lib/Antd5/drawer/style/index.js +0 -192
- package/lib/Antd5/drawer/style/motion.js +0 -56
- package/lib/Antd5/dropdown/dropdown-button.js +0 -129
- package/lib/Antd5/dropdown/dropdown.js +0 -255
- package/lib/Antd5/dropdown/index.js +0 -5
- package/lib/Antd5/dropdown/style/index.js +0 -220
- package/lib/Antd5/dropdown/style/status.js +0 -19
- package/lib/Antd5/empty/empty.js +0 -73
- package/lib/Antd5/empty/index.js +0 -83
- package/lib/Antd5/empty/simple.js +0 -61
- package/lib/Antd5/empty/style/index.js +0 -61
- package/lib/Antd5/flex/index.js +0 -67
- package/lib/Antd5/flex/interface.js +0 -1
- package/lib/Antd5/flex/style/index.js +0 -83
- package/lib/Antd5/flex/utils.js +0 -33
- package/lib/Antd5/float-button/BackTop.js +0 -109
- package/lib/Antd5/float-button/FloatButton.js +0 -105
- package/lib/Antd5/float-button/FloatButtonContent.js +0 -31
- package/lib/Antd5/float-button/FloatButtonGroup.js +0 -144
- package/lib/Antd5/float-button/PurePanel.js +0 -49
- package/lib/Antd5/float-button/context.js +0 -5
- package/lib/Antd5/float-button/index.js +0 -8
- package/lib/Antd5/float-button/interface.js +0 -1
- package/lib/Antd5/float-button/style/index.js +0 -294
- package/lib/Antd5/float-button/util.js +0 -9
- package/lib/Antd5/form/ErrorList.js +0 -110
- package/lib/Antd5/form/Form.js +0 -166
- package/lib/Antd5/form/FormItem/ItemHolder.js +0 -128
- package/lib/Antd5/form/FormItem/StatusProvider.js +0 -73
- package/lib/Antd5/form/FormItem/index.js +0 -310
- package/lib/Antd5/form/FormItemInput.js +0 -100
- package/lib/Antd5/form/FormItemLabel.js +0 -120
- package/lib/Antd5/form/FormList.js +0 -49
- package/lib/Antd5/form/context.js +0 -51
- package/lib/Antd5/form/hooks/useChildren.js +0 -8
- package/lib/Antd5/form/hooks/useDebounce.js +0 -22
- package/lib/Antd5/form/hooks/useForm.js +0 -69
- package/lib/Antd5/form/hooks/useFormInstance.js +0 -7
- package/lib/Antd5/form/hooks/useFormItemStatus.js +0 -23
- package/lib/Antd5/form/hooks/useFormWarning.js +0 -16
- package/lib/Antd5/form/hooks/useFrameState.js +0 -46
- package/lib/Antd5/form/hooks/useItemRef.js +0 -20
- package/lib/Antd5/form/hooks/useVariants.js +0 -21
- package/lib/Antd5/form/index.js +0 -19
- package/lib/Antd5/form/interface.js +0 -1
- package/lib/Antd5/form/style/explain.js +0 -37
- package/lib/Antd5/form/style/fallbackCmp.js +0 -26
- package/lib/Antd5/form/style/index.js +0 -318
- package/lib/Antd5/form/util.js +0 -39
- package/lib/Antd5/form/validateMessagesContext.js +0 -5
- package/lib/Antd5/grid/RowContext.js +0 -3
- package/lib/Antd5/grid/col.js +0 -103
- package/lib/Antd5/grid/hooks/useBreakpoint.js +0 -23
- package/lib/Antd5/grid/index.js +0 -11
- package/lib/Antd5/grid/row.js +0 -169
- package/lib/Antd5/grid/style/index.js +0 -153
- package/lib/Antd5/icon/index.js +0 -9
- package/lib/Antd5/image/PreviewGroup.js +0 -84
- package/lib/Antd5/image/index.js +0 -94
- package/lib/Antd5/image/style/index.js +0 -264
- package/lib/Antd5/index.js +0 -72
- package/lib/Antd5/input/Group.js +0 -57
- package/lib/Antd5/input/Input.js +0 -188
- package/lib/Antd5/input/OTP/OTPInput.js +0 -69
- package/lib/Antd5/input/OTP/index.js +0 -210
- package/lib/Antd5/input/Password.js +0 -116
- package/lib/Antd5/input/Search.js +0 -143
- package/lib/Antd5/input/TextArea.js +0 -118
- package/lib/Antd5/input/hooks/useRemovePasswordTimeout.js +0 -26
- package/lib/Antd5/input/index.js +0 -13
- package/lib/Antd5/input/style/index.js +0 -532
- package/lib/Antd5/input/style/otp.js +0 -32
- package/lib/Antd5/input/style/token.js +0 -46
- package/lib/Antd5/input/style/variants.js +0 -213
- package/lib/Antd5/input/utils.js +0 -4
- package/lib/Antd5/input-number/index.js +0 -163
- package/lib/Antd5/input-number/style/index.js +0 -299
- package/lib/Antd5/input-number/style/token.js +0 -24
- package/lib/Antd5/layout/Sider.js +0 -198
- package/lib/Antd5/layout/context.js +0 -11
- package/lib/Antd5/layout/hooks/useHasSider.js +0 -14
- package/lib/Antd5/layout/index.js +0 -9
- package/lib/Antd5/layout/layout.js +0 -143
- package/lib/Antd5/layout/style/index.js +0 -187
- package/lib/Antd5/layout/style/light.js +0 -24
- package/lib/Antd5/list/Item.js +0 -113
- package/lib/Antd5/list/context.js +0 -3
- package/lib/Antd5/list/index.js +0 -246
- package/lib/Antd5/list/style/index.js +0 -249
- package/lib/Antd5/locale/ar_EG.js +0 -114
- package/lib/Antd5/locale/az_AZ.js +0 -97
- package/lib/Antd5/locale/bg_BG.js +0 -95
- package/lib/Antd5/locale/bn_BD.js +0 -127
- package/lib/Antd5/locale/by_BY.js +0 -129
- package/lib/Antd5/locale/ca_ES.js +0 -122
- package/lib/Antd5/locale/context.js +0 -3
- package/lib/Antd5/locale/cs_CZ.js +0 -129
- package/lib/Antd5/locale/da_DK.js +0 -105
- package/lib/Antd5/locale/de_DE.js +0 -133
- package/lib/Antd5/locale/el_GR.js +0 -44
- package/lib/Antd5/locale/en_GB.js +0 -129
- package/lib/Antd5/locale/en_US.js +0 -144
- package/lib/Antd5/locale/es_ES.js +0 -129
- package/lib/Antd5/locale/et_EE.js +0 -129
- package/lib/Antd5/locale/eu_ES.js +0 -141
- package/lib/Antd5/locale/fa_IR.js +0 -138
- package/lib/Antd5/locale/fi_FI.js +0 -54
- package/lib/Antd5/locale/fr_BE.js +0 -126
- package/lib/Antd5/locale/fr_CA.js +0 -126
- package/lib/Antd5/locale/fr_FR.js +0 -131
- package/lib/Antd5/locale/ga_IE.js +0 -120
- package/lib/Antd5/locale/gl_ES.js +0 -108
- package/lib/Antd5/locale/he_IL.js +0 -114
- package/lib/Antd5/locale/hi_IN.js +0 -127
- package/lib/Antd5/locale/hr_HR.js +0 -126
- package/lib/Antd5/locale/hu_HU.js +0 -45
- package/lib/Antd5/locale/hy_AM.js +0 -106
- package/lib/Antd5/locale/id_ID.js +0 -144
- package/lib/Antd5/locale/index.js +0 -40
- package/lib/Antd5/locale/is_IS.js +0 -95
- package/lib/Antd5/locale/it_IT.js +0 -134
- package/lib/Antd5/locale/ja_JP.js +0 -144
- package/lib/Antd5/locale/ka_GE.js +0 -127
- package/lib/Antd5/locale/kk_KZ.js +0 -121
- package/lib/Antd5/locale/km_KH.js +0 -105
- package/lib/Antd5/locale/kmr_IQ.js +0 -44
- package/lib/Antd5/locale/kn_IN.js +0 -51
- package/lib/Antd5/locale/ko_KR.js +0 -141
- package/lib/Antd5/locale/ku_IQ.js +0 -47
- package/lib/Antd5/locale/lt_LT.js +0 -141
- package/lib/Antd5/locale/lv_LV.js +0 -44
- package/lib/Antd5/locale/mk_MK.js +0 -56
- package/lib/Antd5/locale/ml_IN.js +0 -127
- package/lib/Antd5/locale/mn_MN.js +0 -44
- package/lib/Antd5/locale/ms_MY.js +0 -61
- package/lib/Antd5/locale/my_MM.js +0 -136
- package/lib/Antd5/locale/nb_NO.js +0 -121
- package/lib/Antd5/locale/ne_NP.js +0 -44
- package/lib/Antd5/locale/nl_BE.js +0 -127
- package/lib/Antd5/locale/nl_NL.js +0 -127
- package/lib/Antd5/locale/pl_PL.js +0 -134
- package/lib/Antd5/locale/pt_BR.js +0 -134
- package/lib/Antd5/locale/pt_PT.js +0 -129
- package/lib/Antd5/locale/ro_RO.js +0 -127
- package/lib/Antd5/locale/ru_RU.js +0 -138
- package/lib/Antd5/locale/si_LK.js +0 -129
- package/lib/Antd5/locale/sk_SK.js +0 -129
- package/lib/Antd5/locale/sl_SI.js +0 -44
- package/lib/Antd5/locale/sr_RS.js +0 -127
- package/lib/Antd5/locale/sv_SE.js +0 -138
- package/lib/Antd5/locale/ta_IN.js +0 -126
- package/lib/Antd5/locale/th_TH.js +0 -138
- package/lib/Antd5/locale/tk_TK.js +0 -125
- package/lib/Antd5/locale/tr_TR.js +0 -125
- package/lib/Antd5/locale/uk_UA.js +0 -138
- package/lib/Antd5/locale/ur_PK.js +0 -127
- package/lib/Antd5/locale/useLocale.js +0 -28
- package/lib/Antd5/locale/uz_UZ.js +0 -143
- package/lib/Antd5/locale/vi_VN.js +0 -137
- package/lib/Antd5/locale/zh_CN.js +0 -145
- package/lib/Antd5/locale/zh_HK.js +0 -138
- package/lib/Antd5/locale/zh_TW.js +0 -139
- package/lib/Antd5/mentions/index.js +0 -198
- package/lib/Antd5/mentions/style/index.js +0 -205
- package/lib/Antd5/menu/MenuContext.js +0 -7
- package/lib/Antd5/menu/MenuDivider.js +0 -28
- package/lib/Antd5/menu/MenuItem.js +0 -82
- package/lib/Antd5/menu/OverrideContext.js +0 -39
- package/lib/Antd5/menu/SubMenu.js +0 -74
- package/lib/Antd5/menu/index.js +0 -39
- package/lib/Antd5/menu/interface.js +0 -1
- package/lib/Antd5/menu/menu.js +0 -174
- package/lib/Antd5/menu/style/horizontal.js +0 -38
- package/lib/Antd5/menu/style/index.js +0 -441
- package/lib/Antd5/menu/style/rtl.js +0 -23
- package/lib/Antd5/menu/style/theme.js +0 -158
- package/lib/Antd5/menu/style/vertical.js +0 -131
- package/lib/Antd5/message/PurePanel.js +0 -77
- package/lib/Antd5/message/index.js +0 -281
- package/lib/Antd5/message/interface.js +0 -1
- package/lib/Antd5/message/style/index.js +0 -128
- package/lib/Antd5/message/useMessage.js +0 -235
- package/lib/Antd5/message/util.js +0 -23
- package/lib/Antd5/modal/ConfirmDialog.js +0 -228
- package/lib/Antd5/modal/Modal.js +0 -162
- package/lib/Antd5/modal/PurePanel.js +0 -78
- package/lib/Antd5/modal/components/ConfirmCancelBtn.js +0 -32
- package/lib/Antd5/modal/components/ConfirmOkBtn.js +0 -33
- package/lib/Antd5/modal/components/NormalCancelBtn.js +0 -22
- package/lib/Antd5/modal/components/NormalOkBtn.js +0 -26
- package/lib/Antd5/modal/confirm.js +0 -169
- package/lib/Antd5/modal/context.js +0 -4
- package/lib/Antd5/modal/destroyFns.js +0 -2
- package/lib/Antd5/modal/index.js +0 -38
- package/lib/Antd5/modal/interface.js +0 -1
- package/lib/Antd5/modal/locale.js +0 -31
- package/lib/Antd5/modal/shared.js +0 -81
- package/lib/Antd5/modal/style/confirm.js +0 -83
- package/lib/Antd5/modal/style/index.js +0 -221
- package/lib/Antd5/modal/useModal/HookModal.js +0 -87
- package/lib/Antd5/modal/useModal/index.js +0 -128
- package/lib/Antd5/notification/PurePanel.js +0 -134
- package/lib/Antd5/notification/index.js +0 -215
- package/lib/Antd5/notification/interface.js +0 -1
- package/lib/Antd5/notification/style/index.js +0 -184
- package/lib/Antd5/notification/style/placement.js +0 -77
- package/lib/Antd5/notification/style/pure-panel.js +0 -18
- package/lib/Antd5/notification/style/stack.js +0 -81
- package/lib/Antd5/notification/useNotification.js +0 -201
- package/lib/Antd5/notification/util.js +0 -57
- package/lib/Antd5/pagination/Pagination.js +0 -135
- package/lib/Antd5/pagination/Select.js +0 -24
- package/lib/Antd5/pagination/design/behavior-pattern.js +0 -32
- package/lib/Antd5/pagination/index.js +0 -2
- package/lib/Antd5/pagination/style/bordered.js +0 -68
- package/lib/Antd5/pagination/style/index.js +0 -411
- package/lib/Antd5/popconfirm/PurePanel.js +0 -114
- package/lib/Antd5/popconfirm/index.js +0 -109
- package/lib/Antd5/popconfirm/style/index.js +0 -61
- package/lib/Antd5/popover/PurePanel.js +0 -77
- package/lib/Antd5/popover/index.js +0 -126
- package/lib/Antd5/popover/style/index.js +0 -137
- package/lib/Antd5/progress/Circle.js +0 -95
- package/lib/Antd5/progress/Line.js +0 -149
- package/lib/Antd5/progress/Steps.js +0 -55
- package/lib/Antd5/progress/design/behavior-pattern.js +0 -31
- package/lib/Antd5/progress/index.js +0 -2
- package/lib/Antd5/progress/progress.js +0 -144
- package/lib/Antd5/progress/style/index.js +0 -201
- package/lib/Antd5/progress/utils.js +0 -97
- package/lib/Antd5/qr-code/index.js +0 -125
- package/lib/Antd5/qr-code/interface.js +0 -1
- package/lib/Antd5/qr-code/style/index.js +0 -66
- package/lib/Antd5/qrcode/index.js +0 -4
- package/lib/Antd5/qrcode/interface.js +0 -3
- package/lib/Antd5/qrcode/style/index.js +0 -3
- package/lib/Antd5/radio/context.js +0 -6
- package/lib/Antd5/radio/group.js +0 -131
- package/lib/Antd5/radio/index.js +0 -9
- package/lib/Antd5/radio/interface.js +0 -1
- package/lib/Antd5/radio/radio.js +0 -137
- package/lib/Antd5/radio/radioButton.js +0 -31
- package/lib/Antd5/radio/style/index.js +0 -533
- package/lib/Antd5/rate/index.js +0 -69
- package/lib/Antd5/rate/style/index.js +0 -88
- package/lib/Antd5/result/index.js +0 -128
- package/lib/Antd5/result/noFound.js +0 -243
- package/lib/Antd5/result/serverError.js +0 -283
- package/lib/Antd5/result/style/index.js +0 -101
- package/lib/Antd5/result/unauthorized.js +0 -230
- package/lib/Antd5/row/index.js +0 -2
- package/lib/Antd5/row/style/index.js +0 -3
- package/lib/Antd5/segmented/index.js +0 -87
- package/lib/Antd5/segmented/style/index.js +0 -162
- package/lib/Antd5/select/index.js +0 -222
- package/lib/Antd5/select/mergedBuiltinPlacements.js +0 -40
- package/lib/Antd5/select/style/dropdown.js +0 -109
- package/lib/Antd5/select/style/index.js +0 -183
- package/lib/Antd5/select/style/multiple.js +0 -217
- package/lib/Antd5/select/style/single.js +0 -101
- package/lib/Antd5/select/style/token.js +0 -53
- package/lib/Antd5/select/style/variants.js +0 -126
- package/lib/Antd5/select/useIcons.js +0 -82
- package/lib/Antd5/select/useShowArrow.js +0 -9
- package/lib/Antd5/skeleton/Avatar.js +0 -48
- package/lib/Antd5/skeleton/Button.js +0 -47
- package/lib/Antd5/skeleton/Element.js +0 -30
- package/lib/Antd5/skeleton/Image.js +0 -49
- package/lib/Antd5/skeleton/Input.js +0 -46
- package/lib/Antd5/skeleton/Node.js +0 -43
- package/lib/Antd5/skeleton/Paragraph.js +0 -44
- package/lib/Antd5/skeleton/Skeleton.js +0 -153
- package/lib/Antd5/skeleton/Title.js +0 -23
- package/lib/Antd5/skeleton/index.js +0 -2
- package/lib/Antd5/skeleton/style/index.js +0 -247
- package/lib/Antd5/slider/SliderTooltip.js +0 -43
- package/lib/Antd5/slider/index.js +0 -236
- package/lib/Antd5/slider/style/index.js +0 -246
- package/lib/Antd5/slider/useRafLock.js +0 -32
- package/lib/Antd5/space/Compact.js +0 -103
- package/lib/Antd5/space/Item.js +0 -26
- package/lib/Antd5/space/context.js +0 -5
- package/lib/Antd5/space/index.js +0 -120
- package/lib/Antd5/space/style/compact.js +0 -18
- package/lib/Antd5/space/style/index.js +0 -79
- package/lib/Antd5/spin/index.js +0 -149
- package/lib/Antd5/spin/style/index.js +0 -206
- package/lib/Antd5/statistic/Countdown.js +0 -73
- package/lib/Antd5/statistic/Number.js +0 -47
- package/lib/Antd5/statistic/Statistic.js +0 -99
- package/lib/Antd5/statistic/index.js +0 -4
- package/lib/Antd5/statistic/interface.js +0 -1
- package/lib/Antd5/statistic/style/index.js +0 -51
- package/lib/Antd5/statistic/utils.js +0 -57
- package/lib/Antd5/steps/index.js +0 -120
- package/lib/Antd5/steps/style/custom-icon.js +0 -26
- package/lib/Antd5/steps/style/horizontal.js +0 -12
- package/lib/Antd5/steps/style/index.js +0 -249
- package/lib/Antd5/steps/style/inline.js +0 -95
- package/lib/Antd5/steps/style/label-placement.js +0 -46
- package/lib/Antd5/steps/style/nav.js +0 -109
- package/lib/Antd5/steps/style/progress-dot.js +0 -100
- package/lib/Antd5/steps/style/progress.js +0 -52
- package/lib/Antd5/steps/style/rtl.js +0 -25
- package/lib/Antd5/steps/style/small.js +0 -53
- package/lib/Antd5/steps/style/vertical.js +0 -55
- package/lib/Antd5/steps/useLegacyItems.js +0 -32
- package/lib/Antd5/style/compact-item-vertical.js +0 -33
- package/lib/Antd5/style/compact-item.js +0 -47
- package/lib/Antd5/style/index.js +0 -126
- package/lib/Antd5/style/motion/collapse.js +0 -16
- package/lib/Antd5/style/motion/fade.js +0 -34
- package/lib/Antd5/style/motion/index.js +0 -6
- package/lib/Antd5/style/motion/motion.js +0 -35
- package/lib/Antd5/style/motion/move.js +0 -133
- package/lib/Antd5/style/motion/slide.js +0 -137
- package/lib/Antd5/style/motion/zoom.js +0 -179
- package/lib/Antd5/style/operationUnit.js +0 -18
- package/lib/Antd5/style/placementArrow.js +0 -120
- package/lib/Antd5/style/reset.css +0 -253
- package/lib/Antd5/style/roundedArrow.js +0 -72
- package/lib/Antd5/switch/index.js +0 -97
- package/lib/Antd5/switch/style/index.js +0 -245
- package/lib/Antd5/table/Column.js +0 -7
- package/lib/Antd5/table/ColumnGroup.js +0 -7
- package/lib/Antd5/table/ExpandIcon.js +0 -28
- package/lib/Antd5/table/InternalTable.js +0 -451
- package/lib/Antd5/table/RcTable/VirtualTable.js +0 -9
- package/lib/Antd5/table/RcTable/index.js +0 -9
- package/lib/Antd5/table/Table.js +0 -34
- package/lib/Antd5/table/hooks/useContainerWidth.js +0 -14
- package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +0 -497
- package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +0 -27
- package/lib/Antd5/table/hooks/useFilter/FilterWrapper.js +0 -24
- package/lib/Antd5/table/hooks/useFilter/index.js +0 -234
- package/lib/Antd5/table/hooks/useLazyKVMap.js +0 -30
- package/lib/Antd5/table/hooks/usePagination.js +0 -78
- package/lib/Antd5/table/hooks/useSelection.js +0 -578
- package/lib/Antd5/table/hooks/useSorter.js +0 -362
- package/lib/Antd5/table/hooks/useTitleColumns.js +0 -24
- package/lib/Antd5/table/index.js +0 -2
- package/lib/Antd5/table/interface.js +0 -3
- package/lib/Antd5/table/style/bordered.js +0 -68
- package/lib/Antd5/table/style/ellipsis.js +0 -24
- package/lib/Antd5/table/style/empty.js +0 -15
- package/lib/Antd5/table/style/expand.js +0 -106
- package/lib/Antd5/table/style/filter.js +0 -127
- package/lib/Antd5/table/style/fixed.js +0 -82
- package/lib/Antd5/table/style/index.js +0 -273
- package/lib/Antd5/table/style/pagination.js +0 -30
- package/lib/Antd5/table/style/radius.js +0 -35
- package/lib/Antd5/table/style/rtl.js +0 -40
- package/lib/Antd5/table/style/selection.js +0 -67
- package/lib/Antd5/table/style/size.js +0 -30
- package/lib/Antd5/table/style/sorter.js +0 -75
- package/lib/Antd5/table/style/sticky.js +0 -53
- package/lib/Antd5/table/style/summary.js +0 -25
- package/lib/Antd5/table/style/virtual.js +0 -49
- package/lib/Antd5/table/util.js +0 -31
- package/lib/Antd5/tabs/TabPane.js +0 -7
- package/lib/Antd5/tabs/hooks/useAnimateConfig.js +0 -40
- package/lib/Antd5/tabs/hooks/useLegacyItems.js +0 -43
- package/lib/Antd5/tabs/index.js +0 -115
- package/lib/Antd5/tabs/style/index.js +0 -633
- package/lib/Antd5/tabs/style/motion.js +0 -36
- package/lib/Antd5/tag/CheckableTag.js +0 -51
- package/lib/Antd5/tag/index.js +0 -133
- package/lib/Antd5/tag/style/index.js +0 -104
- package/lib/Antd5/tag/style/presetCmp.js +0 -34
- package/lib/Antd5/tag/style/statusCmp.js +0 -22
- package/lib/Antd5/theme/context.js +0 -15
- package/lib/Antd5/theme/getDesignToken.js +0 -18
- package/lib/Antd5/theme/index.js +0 -39
- package/lib/Antd5/theme/interface/alias.js +0 -1
- package/lib/Antd5/theme/interface/components.js +0 -1
- package/lib/Antd5/theme/interface/index.js +0 -1
- package/lib/Antd5/theme/interface/maps/colors.js +0 -1
- package/lib/Antd5/theme/interface/maps/font.js +0 -1
- package/lib/Antd5/theme/interface/maps/index.js +0 -4
- package/lib/Antd5/theme/interface/maps/size.js +0 -1
- package/lib/Antd5/theme/interface/maps/style.js +0 -1
- package/lib/Antd5/theme/interface/presetColors.js +0 -1
- package/lib/Antd5/theme/interface/seeds.js +0 -1
- package/lib/Antd5/theme/internal.js +0 -13
- package/lib/Antd5/theme/themes/ColorMap.js +0 -1
- package/lib/Antd5/theme/themes/compact/genCompactSizeMapToken.js +0 -16
- package/lib/Antd5/theme/themes/compact/index.js +0 -22
- package/lib/Antd5/theme/themes/dark/colorAlgorithm.js +0 -8
- package/lib/Antd5/theme/themes/dark/colors.js +0 -45
- package/lib/Antd5/theme/themes/dark/index.js +0 -32
- package/lib/Antd5/theme/themes/default/colorAlgorithm.js +0 -8
- package/lib/Antd5/theme/themes/default/colors.js +0 -43
- package/lib/Antd5/theme/themes/default/index.js +0 -31
- package/lib/Antd5/theme/themes/seed.js +0 -68
- package/lib/Antd5/theme/themes/shared/genColorMapToken.js +0 -85
- package/lib/Antd5/theme/themes/shared/genCommonMapToken.js +0 -21
- package/lib/Antd5/theme/themes/shared/genControlHeight.js +0 -9
- package/lib/Antd5/theme/themes/shared/genFontMapToken.js +0 -39
- package/lib/Antd5/theme/themes/shared/genFontSizes.js +0 -20
- package/lib/Antd5/theme/themes/shared/genRadius.js +0 -46
- package/lib/Antd5/theme/themes/shared/genSizeMapToken.js +0 -23
- package/lib/Antd5/theme/useToken.js +0 -129
- package/lib/Antd5/theme/util/alias.js +0 -143
- package/lib/Antd5/theme/util/calc/CSSCalculator.js +0 -119
- package/lib/Antd5/theme/util/calc/NumCalculator.js +0 -81
- package/lib/Antd5/theme/util/calc/calculator.js +0 -10
- package/lib/Antd5/theme/util/calc/index.js +0 -9
- package/lib/Antd5/theme/util/genComponentStyleHook.js +0 -243
- package/lib/Antd5/theme/util/genPresetColor.js +0 -21
- package/lib/Antd5/theme/util/getAlphaColor.js +0 -40
- package/lib/Antd5/theme/util/maxmin.js +0 -27
- package/lib/Antd5/theme/util/statistic.js +0 -74
- package/lib/Antd5/theme/util/useResetIconStyle.js +0 -39
- package/lib/Antd5/time-picker/index.js +0 -56
- package/lib/Antd5/time-picker/locale/ar_EG.js +0 -4
- package/lib/Antd5/time-picker/locale/az_AZ.js +0 -4
- package/lib/Antd5/time-picker/locale/bg_BG.js +0 -4
- package/lib/Antd5/time-picker/locale/bn_BD.js +0 -5
- package/lib/Antd5/time-picker/locale/by_BY.js +0 -5
- package/lib/Antd5/time-picker/locale/ca_ES.js +0 -4
- package/lib/Antd5/time-picker/locale/cs_CZ.js +0 -4
- package/lib/Antd5/time-picker/locale/da_DK.js +0 -5
- package/lib/Antd5/time-picker/locale/de_DE.js +0 -5
- package/lib/Antd5/time-picker/locale/el_GR.js +0 -4
- package/lib/Antd5/time-picker/locale/en_GB.js +0 -4
- package/lib/Antd5/time-picker/locale/en_US.js +0 -5
- package/lib/Antd5/time-picker/locale/es_ES.js +0 -4
- package/lib/Antd5/time-picker/locale/et_EE.js +0 -4
- package/lib/Antd5/time-picker/locale/eu_ES.js +0 -4
- package/lib/Antd5/time-picker/locale/fa_IR.js +0 -5
- package/lib/Antd5/time-picker/locale/fi_FI.js +0 -4
- package/lib/Antd5/time-picker/locale/fr_BE.js +0 -5
- package/lib/Antd5/time-picker/locale/fr_CA.js +0 -5
- package/lib/Antd5/time-picker/locale/fr_FR.js +0 -5
- package/lib/Antd5/time-picker/locale/ga_IE.js +0 -5
- package/lib/Antd5/time-picker/locale/gl_ES.js +0 -4
- package/lib/Antd5/time-picker/locale/he_IL.js +0 -4
- package/lib/Antd5/time-picker/locale/hi_IN.js +0 -5
- package/lib/Antd5/time-picker/locale/hr_HR.js +0 -5
- package/lib/Antd5/time-picker/locale/hu_HU.js +0 -4
- package/lib/Antd5/time-picker/locale/id_ID.js +0 -5
- package/lib/Antd5/time-picker/locale/is_IS.js +0 -4
- package/lib/Antd5/time-picker/locale/it_IT.js +0 -4
- package/lib/Antd5/time-picker/locale/ja_JP.js +0 -5
- package/lib/Antd5/time-picker/locale/ka_GE.js +0 -5
- package/lib/Antd5/time-picker/locale/kk_KZ.js +0 -5
- package/lib/Antd5/time-picker/locale/km_KH.js +0 -5
- package/lib/Antd5/time-picker/locale/kmr_IQ.js +0 -4
- package/lib/Antd5/time-picker/locale/kn_IN.js +0 -4
- package/lib/Antd5/time-picker/locale/ko_KR.js +0 -5
- package/lib/Antd5/time-picker/locale/lt_LT.js +0 -5
- package/lib/Antd5/time-picker/locale/lv_LV.js +0 -4
- package/lib/Antd5/time-picker/locale/mk_MK.js +0 -4
- package/lib/Antd5/time-picker/locale/ml_IN.js +0 -5
- package/lib/Antd5/time-picker/locale/mn_MN.js +0 -4
- package/lib/Antd5/time-picker/locale/ms_MY.js +0 -4
- package/lib/Antd5/time-picker/locale/my_MM.js +0 -5
- package/lib/Antd5/time-picker/locale/nb_NO.js +0 -5
- package/lib/Antd5/time-picker/locale/nl_BE.js +0 -5
- package/lib/Antd5/time-picker/locale/nl_NL.js +0 -5
- package/lib/Antd5/time-picker/locale/pl_PL.js +0 -4
- package/lib/Antd5/time-picker/locale/pt_BR.js +0 -4
- package/lib/Antd5/time-picker/locale/pt_PT.js +0 -4
- package/lib/Antd5/time-picker/locale/ro_RO.js +0 -4
- package/lib/Antd5/time-picker/locale/ru_RU.js +0 -5
- package/lib/Antd5/time-picker/locale/si_LK.js +0 -5
- package/lib/Antd5/time-picker/locale/sk_SK.js +0 -4
- package/lib/Antd5/time-picker/locale/sl_SI.js +0 -4
- package/lib/Antd5/time-picker/locale/sr_RS.js +0 -5
- package/lib/Antd5/time-picker/locale/sv_SE.js +0 -4
- package/lib/Antd5/time-picker/locale/ta_IN.js +0 -4
- package/lib/Antd5/time-picker/locale/th_TH.js +0 -4
- package/lib/Antd5/time-picker/locale/tk_TK.js +0 -5
- package/lib/Antd5/time-picker/locale/tr_TR.js +0 -5
- package/lib/Antd5/time-picker/locale/uk_UA.js +0 -4
- package/lib/Antd5/time-picker/locale/ur_PK.js +0 -5
- package/lib/Antd5/time-picker/locale/uz_UZ.js +0 -5
- package/lib/Antd5/time-picker/locale/vi_VN.js +0 -5
- package/lib/Antd5/time-picker/locale/zh_CN.js +0 -5
- package/lib/Antd5/time-picker/locale/zh_TW.js +0 -4
- package/lib/Antd5/timeline/Timeline.js +0 -65
- package/lib/Antd5/timeline/TimelineItem.js +0 -52
- package/lib/Antd5/timeline/TimelineItemList.js +0 -87
- package/lib/Antd5/timeline/index.js +0 -2
- package/lib/Antd5/timeline/style/index.js +0 -157
- package/lib/Antd5/timeline/useItems.js +0 -19
- package/lib/Antd5/tooltip/PurePanel.js +0 -55
- package/lib/Antd5/tooltip/index.js +0 -211
- package/lib/Antd5/tooltip/style/index.js +0 -104
- package/lib/Antd5/tooltip/util.js +0 -23
- package/lib/Antd5/tour/PurePanel.js +0 -78
- package/lib/Antd5/tour/index.js +0 -99
- package/lib/Antd5/tour/interface.js +0 -1
- package/lib/Antd5/tour/panelRender.js +0 -143
- package/lib/Antd5/tour/style/index.js +0 -187
- package/lib/Antd5/transfer/ListBody.js +0 -123
- package/lib/Antd5/transfer/ListItem.js +0 -72
- package/lib/Antd5/transfer/hooks/useData.js +0 -46
- package/lib/Antd5/transfer/hooks/useSelection.js +0 -59
- package/lib/Antd5/transfer/index.js +0 -361
- package/lib/Antd5/transfer/interface.js +0 -1
- package/lib/Antd5/transfer/list.js +0 -316
- package/lib/Antd5/transfer/operation.js +0 -43
- package/lib/Antd5/transfer/search.js +0 -32
- package/lib/Antd5/transfer/style/index.js +0 -264
- package/lib/Antd5/tree/DirectoryTree.js +0 -173
- package/lib/Antd5/tree/Tree.js +0 -123
- package/lib/Antd5/tree/index.js +0 -7
- package/lib/Antd5/tree/style/index.js +0 -348
- package/lib/Antd5/tree/utils/dictUtil.js +0 -74
- package/lib/Antd5/tree/utils/dropIndicator.js +0 -35
- package/lib/Antd5/tree/utils/iconUtil.js +0 -69
- package/lib/Antd5/tree-select/index.js +0 -228
- package/lib/Antd5/tree-select/style/index.js +0 -51
- package/lib/Antd5/typography/Base/CopyBtn.js +0 -43
- package/lib/Antd5/typography/Base/Ellipsis.js +0 -245
- package/lib/Antd5/typography/Base/EllipsisTooltip.js +0 -27
- package/lib/Antd5/typography/Base/index.js +0 -444
- package/lib/Antd5/typography/Base/util.js +0 -12
- package/lib/Antd5/typography/Editable.js +0 -119
- package/lib/Antd5/typography/Link.js +0 -33
- package/lib/Antd5/typography/Paragraph.js +0 -17
- package/lib/Antd5/typography/Text.js +0 -35
- package/lib/Antd5/typography/Title.js +0 -35
- package/lib/Antd5/typography/Typography.js +0 -70
- package/lib/Antd5/typography/hooks/useCopyClick.js +0 -95
- package/lib/Antd5/typography/hooks/useMergedConfig.js +0 -13
- package/lib/Antd5/typography/hooks/usePrevious.js +0 -9
- package/lib/Antd5/typography/hooks/useUpdatedEffect.js +0 -13
- package/lib/Antd5/typography/index.js +0 -11
- package/lib/Antd5/typography/style/index.js +0 -58
- package/lib/Antd5/typography/style/mixins.js +0 -216
- package/lib/Antd5/upload/Dragger.js +0 -32
- package/lib/Antd5/upload/Upload.js +0 -458
- package/lib/Antd5/upload/UploadList/ListItem.js +0 -197
- package/lib/Antd5/upload/UploadList/index.js +0 -250
- package/lib/Antd5/upload/index.js +0 -6
- package/lib/Antd5/upload/interface.js +0 -1
- package/lib/Antd5/upload/style/dragger.js +0 -51
- package/lib/Antd5/upload/style/index.js +0 -48
- package/lib/Antd5/upload/style/list.js +0 -86
- package/lib/Antd5/upload/style/motion.js +0 -39
- package/lib/Antd5/upload/style/picture.js +0 -175
- package/lib/Antd5/upload/style/rtl.js +0 -12
- package/lib/Antd5/upload/utils.js +0 -140
- package/lib/Antd5/version/index.js +0 -4
- package/lib/Antd5/version/token-meta.json +0 -1
- package/lib/Antd5/version/token.json +0 -1
- package/lib/Antd5/version/version.js +0 -1
- package/lib/Antd5/watermark/context.js +0 -22
- package/lib/Antd5/watermark/index.js +0 -253
- package/lib/Antd5/watermark/useClips.js +0 -118
- package/lib/Antd5/watermark/useRafDebounce.js +0 -21
- package/lib/Antd5/watermark/useWatermark.js +0 -61
- package/lib/Antd5/watermark/utils.js +0 -28
- package/lib/App/index.js +0 -2
- package/lib/AutoComplete/index.js +0 -2
- package/lib/Avatar/index.js +0 -2
- package/lib/BackTop/index.js +0 -2
- package/lib/Badge/index.js +0 -48
- package/lib/Badge/index.style.js +0 -65
- package/lib/BasicLayout/Breadcrumb.js +0 -78
- package/lib/BasicLayout/Nav.js +0 -37
- package/lib/BasicLayout/Sider.js +0 -159
- package/lib/BasicLayout/index.js +0 -396
- package/lib/BasicLayout/locale/en_US.js +0 -4
- package/lib/BasicLayout/locale/index.js +0 -11
- package/lib/BasicLayout/locale/zh_CN.js +0 -4
- package/lib/BasicLayout/locale/zh_TW.js +0 -4
- package/lib/BasicLayout/style/index.js +0 -101
- package/lib/BasicLayout/style/sider.js +0 -73
- package/lib/BasicLayout/utils.js +0 -7
- package/lib/Breadcrumb/index.js +0 -2
- package/lib/Button/index.js +0 -53
- package/lib/Button/index.style.js +0 -41
- package/lib/CWCascader/Cascader/index.js +0 -281
- package/lib/CWCascader/Cascader/utils/iconUtil.js +0 -81
- package/lib/CWCascader/Cascader/utils/motion.js +0 -13
- package/lib/CWCascader/index.js +0 -73
- package/lib/CWCascader/index.style.js +0 -42
- package/lib/CWCascader/rc-cascader/Cascader.js +0 -353
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +0 -21
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +0 -274
- package/lib/CWCascader/rc-cascader/OptionList/index.js +0 -220
- package/lib/CWCascader/rc-cascader/OptionList/useActive.js +0 -33
- package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +0 -172
- package/lib/CWCascader/rc-cascader/context.js +0 -3
- package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +0 -85
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +0 -40
- package/lib/CWCascader/rc-cascader/hooks/useMissingValues.js +0 -19
- package/lib/CWCascader/rc-cascader/hooks/useRefFunc.js +0 -13
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +0 -30
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +0 -73
- package/lib/CWCascader/rc-cascader/index.js +0 -2
- package/lib/CWCascader/rc-cascader/utils/commonUtil.js +0 -54
- package/lib/CWCascader/rc-cascader/utils/treeUtil.js +0 -81
- package/lib/CWCascader/rc-cascader/utils/warningPropsUtil.js +0 -30
- package/lib/CWColorPicker/SketchPicker/components/common/Alpha.js +0 -132
- package/lib/CWColorPicker/SketchPicker/components/common/Checkboard.js +0 -40
- package/lib/CWColorPicker/SketchPicker/components/common/ColorWrap.js +0 -79
- package/lib/CWColorPicker/SketchPicker/components/common/EditableInput.js +0 -171
- package/lib/CWColorPicker/SketchPicker/components/common/Hue.js +0 -117
- package/lib/CWColorPicker/SketchPicker/components/common/Raised.js +0 -91
- package/lib/CWColorPicker/SketchPicker/components/common/Saturation.js +0 -138
- package/lib/CWColorPicker/SketchPicker/components/common/Swatch.js +0 -62
- package/lib/CWColorPicker/SketchPicker/components/common/index.js +0 -8
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchFields.js +0 -148
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +0 -72
- package/lib/CWColorPicker/SketchPicker/components/sketch/index.js +0 -160
- package/lib/CWColorPicker/SketchPicker/helpers/alpha.js +0 -46
- package/lib/CWColorPicker/SketchPicker/helpers/checkboard.js +0 -29
- package/lib/CWColorPicker/SketchPicker/helpers/color.js +0 -86
- package/lib/CWColorPicker/SketchPicker/helpers/hue.js +0 -48
- package/lib/CWColorPicker/SketchPicker/helpers/index.js +0 -2
- package/lib/CWColorPicker/SketchPicker/helpers/interaction.js +0 -54
- package/lib/CWColorPicker/SketchPicker/helpers/saturation.js +0 -28
- package/lib/CWColorPicker/index.js +0 -296
- package/lib/CWColorPicker/index.style.js +0 -81
- package/lib/CWColorPicker/utils.js +0 -15
- package/lib/CWMessage/CommonIcon.js +0 -16
- package/lib/CWMessage/MessageContent/TabList/index.js +0 -113
- package/lib/CWMessage/MessageContent/index.js +0 -268
- package/lib/CWMessage/index.js +0 -456
- package/lib/CWMessage/index.style.js +0 -141
- package/lib/CWMessage/message.svg +0 -14
- package/lib/CWMessage/messageSvg.js +0 -19
- package/lib/CWMessage/service/index.js +0 -35
- package/lib/CWMessage/utils/index.js +0 -33
- package/lib/CWRadioTabs/index.js +0 -150
- package/lib/CWRadioTabs/index.style.js +0 -33
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +0 -37
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +0 -46
- package/lib/CWRangePicker/DropdownMenu/index.js +0 -240
- package/lib/CWRangePicker/DropdownMenu/index.style.js +0 -159
- package/lib/CWRangePicker/Refresh/index.js +0 -161
- package/lib/CWRangePicker/Refresh/index.style.js +0 -37
- package/lib/CWRangePicker/TimeSpan/index.js +0 -96
- package/lib/CWRangePicker/TimeSpan/index.style.js +0 -25
- package/lib/CWRangePicker/assets/Calendar.js +0 -15
- package/lib/CWRangePicker/assets/Calendar2.js +0 -15
- package/lib/CWRangePicker/assets/Recover.js +0 -18
- package/lib/CWRangePicker/assets/Refresh1.js +0 -14
- package/lib/CWRangePicker/assets/Refresh2.js +0 -14
- package/lib/CWRangePicker/assets/Refresh3.js +0 -14
- package/lib/CWRangePicker/assets/live.js +0 -19
- package/lib/CWRangePicker/assets/more.js +0 -23
- package/lib/CWRangePicker/index.js +0 -742
- package/lib/CWRangePicker/index.style.js +0 -78
- package/lib/CWRangePicker/locale/en_US.js +0 -29
- package/lib/CWRangePicker/locale/index.js +0 -11
- package/lib/CWRangePicker/locale/zh_CN.js +0 -29
- package/lib/CWRangePicker/locale/zh_TW.js +0 -29
- package/lib/CWRangePicker/utils/index.js +0 -706
- package/lib/CWSelect/index.js +0 -2
- package/lib/CWTable/CWTable.js +0 -605
- package/lib/CWTable/header.js +0 -55
- package/lib/CWTable/index.js +0 -217
- package/lib/CWTable/index.style.js +0 -96
- package/lib/CWTree/assets/Drag.js +0 -23
- package/lib/CWTree/index.js +0 -399
- package/lib/CWTree/index.style.js +0 -127
- package/lib/CWTree/locale/en_US.js +0 -3
- package/lib/CWTree/locale/index.js +0 -11
- package/lib/CWTree/locale/zh_CN.js +0 -3
- package/lib/CWTree/locale/zh_TW.js +0 -3
- package/lib/CWTree/utils/index.js +0 -99
- package/lib/Calendar/index.js +0 -2
- package/lib/Card/index.js +0 -2
- package/lib/CardSelect/index.js +0 -153
- package/lib/CardSelect/index.style.js +0 -76
- package/lib/Carousel/index.js +0 -2
- package/lib/Cascader/index.js +0 -2
- package/lib/ChangeIcon/index.js +0 -153
- package/lib/ChangeIcon/index.style.js +0 -89
- package/lib/Checkbox/index.js +0 -2
- package/lib/CitySelect/citys.js +0 -1457
- package/lib/CitySelect/index.js +0 -128
- package/lib/Col/index.js +0 -2
- package/lib/Collapse/index.js +0 -85
- package/lib/Collapse/index.style.js +0 -120
- package/lib/ColorPicker/index.js +0 -2
- package/lib/ConfigProvider/ConfigProvider.js +0 -92
- package/lib/ConfigProvider/Switch.js +0 -43
- package/lib/ConfigProvider/customTheme.js +0 -268
- package/lib/ConfigProvider/customTheme.json +0 -163
- package/lib/ConfigProvider/customToken.js +0 -41
- package/lib/ConfigProvider/index.js +0 -6
- package/lib/ConfigProvider/intlContext.js +0 -8
- package/lib/ConfigProvider/useLocale.js +0 -15
- package/lib/CustomScrollBar/index.js +0 -150
- package/lib/DataView/index.js +0 -72
- package/lib/DataView/index.style.js +0 -34
- package/lib/DatePicker/index.js +0 -2
- package/lib/DemoShow/index.js +0 -15
- package/lib/Descriptions/index.js +0 -2
- package/lib/Divider/index.js +0 -2
- package/lib/Documentation/Tocify.js +0 -114
- package/lib/Documentation/index.js +0 -147
- package/lib/Documentation/index.style.js +0 -180
- package/lib/Drawer/index.js +0 -107
- package/lib/Drawer/index.style.js +0 -93
- package/lib/Dropdown/DropdownButton.js +0 -20
- package/lib/Dropdown/index.js +0 -39
- package/lib/Dropdown/index.style.js +0 -22
- package/lib/EchartsArea/index.js +0 -113
- package/lib/EchartsBar/index.js +0 -212
- package/lib/EchartsBarRow/index.js +0 -86
- package/lib/EchartsBase/index.js +0 -217
- package/lib/EchartsLine/index.js +0 -173
- package/lib/EchartsPie/index.js +0 -121
- package/lib/EchartsRing/index.js +0 -102
- package/lib/Empty/index.js +0 -70
- package/lib/Empty/index.style.js +0 -36
- package/lib/ErrorBoundary/ErrorPage.js +0 -35
- package/lib/ErrorBoundary/assets/images/No-data.png +0 -0
- package/lib/ErrorBoundary/history.js +0 -81
- package/lib/ErrorBoundary/index.js +0 -93
- package/lib/ErrorBoundary/index.styles.js +0 -48
- package/lib/Exception/images/error.svg +0 -58
- package/lib/Exception/index.js +0 -99
- package/lib/Exception/index.style.js +0 -37
- package/lib/FilterDropDown/DragList.js +0 -106
- package/lib/FilterDropDown/assets/DragSvg.js +0 -33
- package/lib/FilterDropDown/assets/ShowSvgIcon.js +0 -14
- package/lib/FilterDropDown/index.js +0 -271
- package/lib/FilterDropDown/index.style.js +0 -83
- package/lib/Flex/index.js +0 -2
- package/lib/FloatButton/index.js +0 -2
- package/lib/Flow/BasicLayout/Chain.js +0 -112
- package/lib/Flow/BasicLayout/config.js +0 -21
- package/lib/Flow/BasicLayout/util.js +0 -106
- package/lib/Flow/Flow.js +0 -183
- package/lib/Flow/commons/initCommands.js +0 -150
- package/lib/Flow/components/PluginWrapper.js +0 -25
- package/lib/Flow/index.js +0 -7
- package/lib/Flow/layouts/callChain.js +0 -121
- package/lib/Flow/layouts/index.js +0 -4
- package/lib/Flow/plugins/CommandLifeCycle.js +0 -215
- package/lib/Flow/plugins/InitSideBarPlugin.js +0 -81
- package/lib/Flow/plugins/InitToolBarPlugin.js +0 -99
- package/lib/Flow/shape/index.js +0 -4
- package/lib/Flow/shape/nodes/baseNode.js +0 -99
- package/lib/Flow/shape/nodes/index.js +0 -4
- package/lib/Flow/tools/index.js +0 -22
- package/lib/Flow/types/index.js +0 -1
- package/lib/Form/FormItem.js +0 -79
- package/lib/Form/consts.js +0 -2
- package/lib/Form/context.js +0 -3
- package/lib/Form/hook/useForm3.js +0 -117
- package/lib/Form/index.js +0 -77
- package/lib/Form/index.style.js +0 -56
- package/lib/FormItemWrapper/index.js +0 -52
- package/lib/FormItemWrapper/index.style.js +0 -32
- package/lib/GlobalTabs/index.js +0 -49
- package/lib/GlobalTabs/index.style.js +0 -31
- package/lib/Grid/index.js +0 -2
- package/lib/Header/CommonDropMenu.js +0 -90
- package/lib/Header/CommonIcon.js +0 -26
- package/lib/Header/Document/icon.svg +0 -14
- package/lib/Header/Document/index.js +0 -29
- package/lib/Header/LocaleSwitcher.js +0 -41
- package/lib/Header/Message/index.js +0 -21
- package/lib/Header/TopNavigationMenu/index.js +0 -73
- package/lib/Header/TopNavigationMenu/index.style.js +0 -47
- package/lib/Header/UserSetting/TenantList.js +0 -26
- package/lib/Header/UserSetting/TenantTree.js +0 -33
- package/lib/Header/UserSetting/index.js +0 -202
- package/lib/Header/UserSetting/index.style.js +0 -60
- package/lib/Header/UserSetting/utils.js +0 -30
- package/lib/Header/assets/home.svg +0 -13
- package/lib/Header/assets/logo.svg +0 -20
- package/lib/Header/index.js +0 -320
- package/lib/Header/index.style.js +0 -154
- package/lib/Icon/index.js +0 -23
- package/lib/Icon/utils.js +0 -20
- package/lib/IconSelect/components/CustomImg/index.js +0 -84
- package/lib/IconSelect/components/SearchIcon/index.js +0 -98
- package/lib/IconSelect/constants/icon.js +0 -13291
- package/lib/IconSelect/index.js +0 -144
- package/lib/IconSelect/index.style.js +0 -75
- package/lib/Image/index.js +0 -2
- package/lib/Input/InputComponent.js +0 -71
- package/lib/Input/index.js +0 -93
- package/lib/Input/index.style.js +0 -23
- package/lib/InputNumber/index.js +0 -27
- package/lib/Joyride/List.js +0 -85
- package/lib/Joyride/img/finishImg.png +0 -0
- package/lib/Joyride/img/welcomeImg.png +0 -0
- package/lib/Joyride/index.js +0 -448
- package/lib/Joyride/style/index.style.js +0 -67
- package/lib/Joyride/style/list.style.js +0 -115
- package/lib/Layout/index.js +0 -2
- package/lib/LayoutWrapper/Footer.js +0 -31
- package/lib/LayoutWrapper/Header.js +0 -59
- package/lib/LayoutWrapper/LeftArrow.js +0 -17
- package/lib/LayoutWrapper/assets/left-arrow.svg +0 -21
- package/lib/LayoutWrapper/index.js +0 -196
- package/lib/LayoutWrapper/style/footer.js +0 -25
- package/lib/LayoutWrapper/style/header.js +0 -46
- package/lib/LayoutWrapper/style/index.js +0 -58
- package/lib/LeftNavigation/index.js +0 -80
- package/lib/LeftNavigation/index.style.js +0 -34
- package/lib/List/index.js +0 -2
- package/lib/Mentions/index.js +0 -2
- package/lib/Menu/index.js +0 -2
- package/lib/Modal/Modal.js +0 -176
- package/lib/Modal/assets/Close.js +0 -22
- package/lib/Modal/confirmGlobalStyle.js +0 -37
- package/lib/Modal/custom-backup/entiretyDrag.js +0 -142
- package/lib/Modal/custom-backup/index.less +0 -76
- package/lib/Modal/index.js +0 -274
- package/lib/Modal/index.style.js +0 -53
- package/lib/ModuleFederation/ErrorBoundary/index.js +0 -52
- package/lib/ModuleFederation/index.js +0 -10
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +0 -185
- package/lib/ModuleFederation/react-dynamic-remote-component/attach-script.js +0 -42
- package/lib/ModuleFederation/react-dynamic-remote-component/index.js +0 -1
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +0 -44
- package/lib/ModuleFederation/react-dynamic-remote-component/loading-script.js +0 -35
- package/lib/ModuleFederation/react-dynamic-remote-component/suspend.js +0 -28
- package/lib/ModuleFederation/react-dynamic-remote-component/utils.js +0 -7
- package/lib/ModuleTitle/index.js +0 -30
- package/lib/ModuleTitle/index.style.js +0 -34
- package/lib/Overview/index.js +0 -2
- package/lib/Pagination/index.js +0 -363
- package/lib/Pagination/index.style.js +0 -137
- package/lib/Popconfirm/index.js +0 -2
- package/lib/Popover/index.js +0 -2
- package/lib/Progress/index.js +0 -2
- package/lib/QrCode/index.js +0 -2
- package/lib/QuickRangePicker/index.js +0 -149
- package/lib/QuickRangePicker/index.style.js +0 -45
- package/lib/QuickTransfer/Drag.js +0 -56
- package/lib/QuickTransfer/DragList.js +0 -114
- package/lib/QuickTransfer/NoDrag.js +0 -33
- package/lib/QuickTransfer/NotDragList.js +0 -41
- package/lib/QuickTransfer/assets/DragSvg.js +0 -14
- package/lib/QuickTransfer/assets/LockSvg.js +0 -15
- package/lib/QuickTransfer/index.js +0 -938
- package/lib/QuickTransfer/index.style.js +0 -185
- package/lib/QuickTransfer/utils.js +0 -291
- package/lib/Radio/index.js +0 -2
- package/lib/RangePicker/index.js +0 -2
- package/lib/Rate/index.js +0 -2
- package/lib/Result/index.js +0 -2
- package/lib/Row/index.js +0 -2
- package/lib/ScrollLoad/index.js +0 -134
- package/lib/SearchBar/OutSearch.js +0 -107
- package/lib/SearchBar/index.js +0 -680
- package/lib/SearchBar/index.style.js +0 -91
- package/lib/SearchBar/locale/en_US.js +0 -6
- package/lib/SearchBar/locale/index.js +0 -11
- package/lib/SearchBar/locale/zh_CN.js +0 -6
- package/lib/SearchBar/locale/zh_TW.js +0 -6
- package/lib/Segmented/index.js +0 -2
- package/lib/Select/index.js +0 -2
- package/lib/SiderMenu/index.js +0 -215
- package/lib/SiderMenu/index.style.js +0 -23
- package/lib/SimpleCard/index.js +0 -121
- package/lib/SimpleCard/index.style.js +0 -76
- package/lib/SimplePagination/index.js +0 -188
- package/lib/SimplePagination/index.style.js +0 -105
- package/lib/SingleSpa/import-html/index.js +0 -51
- package/lib/SingleSpa/import-html/process-tpl.js +0 -189
- package/lib/SingleSpa/import-html/utils.js +0 -147
- package/lib/SingleSpa/index.js +0 -131
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +0 -1505
- package/lib/SingleSpa/system/amd.js +0 -153
- package/lib/SingleSpa/system/index.js +0 -11
- package/lib/SingleSpa/system/system.js +0 -771
- package/lib/SingleSpa/system/systemjs-css.js +0 -96
- package/lib/SingleSpa/utils.js +0 -73
- package/lib/Skeleton/index.js +0 -2
- package/lib/Slider/assets/slider.png +0 -0
- package/lib/Slider/index.js +0 -32
- package/lib/Slider/index.style.js +0 -116
- package/lib/Space/index.js +0 -2
- package/lib/Spin/index.js +0 -2
- package/lib/Statistic/index.js +0 -2
- package/lib/Steps/index.js +0 -2
- package/lib/Switch/index.js +0 -2
- package/lib/Table/index.js +0 -2
- package/lib/Tabs/index.js +0 -52
- package/lib/Tabs/index.style.js +0 -58
- package/lib/Tag/CheckableTag.js +0 -53
- package/lib/Tag/assets/LeftBottomCorner.js +0 -22
- package/lib/Tag/assets/LeftTopCorner.js +0 -22
- package/lib/Tag/assets/RightBottomCorner.js +0 -22
- package/lib/Tag/assets/RightTopCorner.js +0 -14
- package/lib/Tag/index.js +0 -109
- package/lib/Tag/index.style.js +0 -156
- package/lib/Theme/index.js +0 -2
- package/lib/ThemeProvider/Switcher.js +0 -25
- package/lib/ThemeProvider/index.js +0 -5
- package/lib/ThemeProvider/main.js +0 -185
- package/lib/ThemeProvider/utils.js +0 -60
- package/lib/TimePicker/index.js +0 -2
- package/lib/Timeline/index.js +0 -2
- package/lib/Tooltip/index.js +0 -54
- package/lib/Tooltip/index.style.js +0 -23
- package/lib/TooltipText/ResizeObserverManager.js +0 -56
- package/lib/TooltipText/index.js +0 -138
- package/lib/TooltipText/index.style.js +0 -46
- package/lib/Tour/index.js +0 -2
- package/lib/Transfer/index.js +0 -2
- package/lib/Tree/index.js +0 -2
- package/lib/TreeSelect/index.js +0 -2
- package/lib/Typography/index.js +0 -2
- package/lib/Upload/index.js +0 -2
- package/lib/WangEditor/editor4.js +0 -652
- package/lib/WangEditor/index.js +0 -298
- package/lib/WangEditor/index.style.js +0 -203
- package/lib/WangEditor/locale/index.js +0 -62
- package/lib/WangEditor/release/wangEditor.js +0 -5390
- package/lib/WangEditor/resizeable.js +0 -112
- package/lib/WangEditor/usePreview.js +0 -39
- package/lib/WangEditor/wangEditor.js +0 -4627
- package/lib/Watermark/index.js +0 -2
- package/lib/antd-style/context/ThemeModeContext.js +0 -11
- package/lib/antd-style/context/index.js +0 -1
- package/lib/antd-style/core/CacheManager.js +0 -56
- package/lib/antd-style/core/createCSS.js +0 -42
- package/lib/antd-style/core/createEmotion.js +0 -1
- package/lib/antd-style/core/createSerializeStyles.js +0 -11
- package/lib/antd-style/core/index.js +0 -5
- package/lib/antd-style/core/insertStyles.js +0 -35
- package/lib/antd-style/factories/createEmotionContext.js +0 -4
- package/lib/antd-style/factories/createGlobalStyle.js +0 -28
- package/lib/antd-style/factories/createStyish.js +0 -14
- package/lib/antd-style/factories/createStyleProvider/index.js +0 -69
- package/lib/antd-style/factories/createStyledThemeProvider.js +0 -16
- package/lib/antd-style/factories/createStyles/index.js +0 -114
- package/lib/antd-style/factories/createStyles/response.js +0 -43
- package/lib/antd-style/factories/createStyles/types.js +0 -1
- package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +0 -78
- package/lib/antd-style/factories/createThemeProvider/ThemeSwitcher.js +0 -130
- package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +0 -75
- package/lib/antd-style/factories/createThemeProvider/index.js +0 -77
- package/lib/antd-style/factories/createThemeProvider/type.js +0 -1
- package/lib/antd-style/factories/createUseTheme.js +0 -33
- package/lib/antd-style/functions/createInstance.js +0 -95
- package/lib/antd-style/functions/extractStaticStyle.js +0 -63
- package/lib/antd-style/functions/index.js +0 -21
- package/lib/antd-style/functions/setupStyled.js +0 -11
- package/lib/antd-style/hooks/index.js +0 -5
- package/lib/antd-style/hooks/useAntdStylish.js +0 -20
- package/lib/antd-style/hooks/useAntdTheme.js +0 -18
- package/lib/antd-style/hooks/useAntdToken.js +0 -6
- package/lib/antd-style/hooks/useResponsive.js +0 -9
- package/lib/antd-style/hooks/useThemeMode.js +0 -5
- package/lib/antd-style/index.js +0 -5
- package/lib/antd-style/stylish/button.js +0 -19
- package/lib/antd-style/types/appearance.js +0 -1
- package/lib/antd-style/types/css.js +0 -1
- package/lib/antd-style/types/function.js +0 -1
- package/lib/antd-style/types/genericUtils.js +0 -1
- package/lib/antd-style/types/index.js +0 -8
- package/lib/antd-style/types/response.js +0 -1
- package/lib/antd-style/types/styleManager.js +0 -1
- package/lib/antd-style/types/styled.js +0 -1
- package/lib/antd-style/types/theme.js +0 -1
- package/lib/antd-style/utils/convertStylish.js +0 -18
- package/lib/antd-style/utils/css.js +0 -59
- package/lib/antd-style/utils/css.test.js +0 -20
- package/lib/antd-style/utils/index.js +0 -1
- package/lib/antd-style/utils/matchBrowserPrefers.js +0 -9
- package/lib/antd-style/utils/responsive.js +0 -14
- package/lib/antd-style/utils/safeStartTransition.js +0 -8
- package/lib/configHoc/index.js +0 -23
- package/lib/index.js +0 -5
- package/lib/locales/en_US.json +0 -78
- package/lib/locales/index.js +0 -57
- package/lib/locales/intl.js +0 -46
- package/lib/locales/zh_CN.json +0 -78
- package/lib/locales/zh_TW.json +0 -78
- package/lib/message/index.js +0 -2
- package/lib/noticeManager/event.js +0 -52
- package/lib/noticeManager/globalState.js +0 -26
- package/lib/noticeManager/index.js +0 -16
- package/lib/notification/index.js +0 -2
- package/lib/portalNoticeManager/event.js +0 -52
- package/lib/portalNoticeManager/index.js +0 -14
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +0 -37
- package/lib/portalNoticeManager/withPortalDispatchNotice.js +0 -10
- package/lib/treeLoad/index.js +0 -43
- package/lib/useChartTheme/index.js +0 -36
- package/lib/useConfigContext/index.js +0 -6
- package/lib/utils/index.js +0 -90
package/lib/Header/index.js
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import _Dropdown from "@chaoswise/ui/lib/Dropdown";
|
|
2
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
-
import React, { useState, useEffect, useRef, useMemo } from "react";
|
|
10
|
-
import Icon, { CaretDownOutlined } from "@ant-design/icons";
|
|
11
|
-
import LocaleSwitcher from "./LocaleSwitcher";
|
|
12
|
-
import UserSetting from "./UserSetting";
|
|
13
|
-
import PropTypes from "prop-types";
|
|
14
|
-
import { ConfigConsumer } from "../Antd5/config-provider";
|
|
15
|
-
import Message from "./Message";
|
|
16
|
-
import Document from "./Document";
|
|
17
|
-
import useConfigContext from "../useConfigContext";
|
|
18
|
-
import TopNavigationMenu from "./TopNavigationMenu";
|
|
19
|
-
import classnames from "classnames";
|
|
20
|
-
import useStyle from "./index.style";
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* 页头通常位于页面顶部,起到了内容概览的作用,通常与结构一起使用
|
|
24
|
-
*/
|
|
25
|
-
var defaultLogo = function defaultLogo() {
|
|
26
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
27
|
-
width: "153px",
|
|
28
|
-
height: "26px",
|
|
29
|
-
viewBox: "0 0 153 26",
|
|
30
|
-
version: "1.1"
|
|
31
|
-
}, /*#__PURE__*/React.createElement("title", null, "\u7F16\u7EC4 4"), /*#__PURE__*/React.createElement("g", {
|
|
32
|
-
id: "\u63A7\u4EF6",
|
|
33
|
-
stroke: "none",
|
|
34
|
-
strokeWidth: "1",
|
|
35
|
-
fill: "none",
|
|
36
|
-
fillRule: "evenodd"
|
|
37
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
38
|
-
id: "\u4EA4\u884C-header",
|
|
39
|
-
transform: "translate(-24.000000, -15.000000)",
|
|
40
|
-
fill: "#FFFFFF"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
42
|
-
id: "\u7F16\u7EC4-4",
|
|
43
|
-
transform: "translate(24.000000, 15.000000)"
|
|
44
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
45
|
-
id: "\u7F16\u7EC4-2"
|
|
46
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
d: "M13.8196393,22.4294364 C12.5313316,23.5328792 10.7820061,25.3255194 7.553386,25.3255194 C5.65110001,25.3255194 3.74838676,24.5580697 2.3318999,23.2196563 C0.827717115,21.7996766 -1.64829966e-13,19.8709501 -1.64829966e-13,17.7883915 C-1.64829966e-13,14.9309002 1.338618,13.139329 2.46264268,12.1392605 C3.86876838,10.8877583 5.71946224,10.1698043 7.54120897,10.1698043 C9.47073304,10.1698043 11.2157859,10.8288553 12.8158894,12.2583493 C12.8158894,12.2583493 12.9559252,12.400529 13.0104013,12.4555836 L13.0258897,12.4673428 L13.028026,12.4735431 C13.2563986,12.7136451 13.3816937,13.0279371 13.3816937,13.3594403 C13.3816937,14.0659558 12.8067033,14.620136 12.1013973,14.6415164 C11.6617426,14.6559481 11.2791278,14.3976728 11.2791278,14.3976728 C10.314793,13.4799189 9.10147015,12.7983115 7.553386,12.7983115 C5.18207099,12.7983115 2.62404164,14.6898361 2.62404164,17.7427444 C2.62404164,20.472274 4.83427813,22.6919878 7.553386,22.6919878 C9.84245269,22.6919878 10.9484255,21.4504276 12.6239411,19.5716244 C12.934562,19.2231237 13.2576804,18.8585878 13.6151935,18.473206 C14.122249,17.9293953 15.6145752,16.379102 16.5060615,15.4545063 C16.7272774,15.2232772 17.5433999,14.4662866 17.5027624,14.6415164 C16.571099,18.6588698 14.0035764,22.2732526 13.8196393,22.4294364 Z",
|
|
48
|
-
id: "Fill-35"
|
|
49
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
-
d: "M23.6171225,24.652678 C22.6402902,24.2024067 21.9278276,23.6708898 21.1428368,22.8040212 C20.7187773,22.3354695 20.6558627,21.9575709 20.6558627,21.8426512 C20.6558627,20.9843347 21.2782795,20.4481141 21.9788856,20.4481141 C22.665392,20.4481141 23.0640292,20.977493 23.0640292,20.977493 C23.6821734,21.8153912 25.1808017,22.6838633 26.7649897,22.6838633 C29.8952323,22.6838633 31.7417604,20.1387397 31.7417604,17.7427444 C31.7417604,15.2629379 29.7272108,12.8036566 26.7998117,12.8036566 C24.6473627,12.8036566 23.3292534,14.2686421 23.1206417,14.4508031 C22.3947202,15.0896497 14.0035764,22.2732526 13.8196393,22.4294364 C12.5313316,23.5328792 10.9484255,21.4504276 12.6239411,19.5716244 C12.934562,19.2231237 13.2576804,18.8585878 13.6151935,18.473206 C14.122249,17.9293953 15.6145752,16.379102 16.5060615,15.4545063 C16.7272774,15.2232772 16.8792672,15.0106869 17.0440936,14.8934845 C19.9831014,12.8036566 21.1428368,12.2241407 24.1846358,10.606606 L24.8095094,10.4060578 C25.4570279,10.2218656 26.1451365,10.1424374 26.8296134,10.1424374 C28.7502717,10.1424374 30.6168812,10.9211118 32.0161706,12.2241407 C32.7471125,12.9020065 33.3179371,13.7027027 33.7164676,14.6043145 C34.1430907,15.5692122 34.3966718,16.6282907 34.3966718,17.7446686 C34.3966718,19.7968669 33.5882884,21.6952333 32.191883,23.0967189 C30.7572374,24.5336961 28.8738578,25.35 26.7477923,25.35 C25.7579285,25.35 24.5873321,25.0991009 23.6171225,24.652678 Z",
|
|
51
|
-
id: "Fill-35\u5907\u4EFD"
|
|
52
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
53
|
-
d: "M13.8196393,22.4294364 C12.5313316,23.5328792 10.9484255,21.4504276 12.6239411,19.5716244 C12.934562,19.2231237 13.2576804,18.8585878 13.6151935,18.473206 C14.122249,17.9293953 15.6145752,16.379102 16.5060615,15.4545063 C16.7272774,15.2232772 16.9138849,15.0291431 17.0440936,14.8934845 C19.8973624,11.9221424 20.852511,10.9692177 20.852511,10.9692177 C22.2535095,9.36985637 22.5505648,7.3320898 21.7312861,5.51828299 C20.9207664,3.73366044 19.1353371,2.60787512 17.179109,2.60787512 C14.3984752,2.60787512 12.7437886,4.68562305 12.3766621,6.66181405 L12.3641646,6.66833507 C12.1994543,7.22294282 11.6826786,7.60875226 11.1052313,7.60875226 C10.3830484,7.60875226 9.7657588,7.07039362 9.7657588,6.34655995 C9.7657588,6.1076339 9.80763067,5.88880544 9.80763067,5.88880544 C10.1433533,4.28591634 10.997454,2.88656872 12.3096884,1.78066718 C13.6251274,0.673482813 15.3433694,9.48013597e-15 17.179109,9.48013597e-15 C19.2829568,9.48013597e-15 21.20949,0.83992928 22.5842118,2.2178965 C24.3472098,3.98274217 24.8095094,6.22982293 24.8095094,7.38158544 C24.8095094,9.02082123 24.5195039,9.76133162 24.1846358,10.606606 C17.3972629,18.3843704 13.9422641,22.3253139 13.8196393,22.4294364 Z",
|
|
54
|
-
id: "Fill-35\u5907\u4EFD-2"
|
|
55
|
-
})), /*#__PURE__*/React.createElement("text", {
|
|
56
|
-
id: "\u667A\u80FD\u4E1A\u52A1\u8FD0\u7EF4",
|
|
57
|
-
fontFamily: "PingFangSC-Regular, PingFang SC",
|
|
58
|
-
fontSize: "18",
|
|
59
|
-
fontWeight: "normal",
|
|
60
|
-
letterSpacing: "0.4"
|
|
61
|
-
}, /*#__PURE__*/React.createElement("tspan", {
|
|
62
|
-
x: "42",
|
|
63
|
-
y: "20"
|
|
64
|
-
}, "\u667A\u80FD\u4E1A\u52A1\u8FD0\u7EF4"))))));
|
|
65
|
-
};
|
|
66
|
-
var homeIconSvg = function homeIconSvg(props) {
|
|
67
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
68
|
-
width: 17,
|
|
69
|
-
height: 16
|
|
70
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
71
|
-
fill: "currentColor",
|
|
72
|
-
d: "m8.473 1.332 6.58 6.013c-.336.041-.65.179-.901.399l-.004.004-.004.004c-.243.216-.53.596-.53 1.194v5.6h-2.41v-2.38c0-.893-.74-1.619-1.65-1.619h-2.17c-.91 0-1.65.728-1.65 1.62v2.377h-2.38v-5.61c0-.822-.627-1.505-1.437-1.607zm0-1.332c-.23 0-.46.078-.624.232l-7.57 6.92a.746.746 0 0 0-.203.9c.146.31.456.493.814.493h.814c.232 0 .417.175.417.387v6.03c0 .446.397.813.882.813h3.082c.485 0 .882-.367.882-.813v-2.795c0-.214.185-.387.417-.387h2.17c.233 0 .418.175.418.387v2.797c0 .446.396.814.892.814h3.082c.496 0 .903-.368.903-.814V8.942c0-.115.028-.193.117-.271a.46.46 0 0 1 .3-.107h.764a.89.89 0 0 0 .814-.493.75.75 0 0 0-.164-.91L9.1.231A.92.92 0 0 0 8.473 0"
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
function CWHeader(_ref) {
|
|
76
|
-
var logo = _ref.logo,
|
|
77
|
-
title = _ref.title,
|
|
78
|
-
extra = _ref.extra,
|
|
79
|
-
showHome = _ref.showHome,
|
|
80
|
-
onClickHome = _ref.onClickHome,
|
|
81
|
-
showTopNavigation = _ref.showTopNavigation,
|
|
82
|
-
topNavigation = _ref.topNavigation,
|
|
83
|
-
topNavigationTrigger = _ref.topNavigationTrigger,
|
|
84
|
-
topNavigationClassName = _ref.topNavigationClassName,
|
|
85
|
-
onClickTopNavigation = _ref.onClickTopNavigation,
|
|
86
|
-
logoText = _ref.logoText,
|
|
87
|
-
allProductsTitle = _ref.allProductsTitle,
|
|
88
|
-
localeSwitcherOption = _ref.localeSwitcherOption,
|
|
89
|
-
messageOption = _ref.messageOption,
|
|
90
|
-
documentOption = _ref.documentOption,
|
|
91
|
-
userSetingOption = _ref.userSetingOption,
|
|
92
|
-
_ref$logoSize = _ref.logoSize,
|
|
93
|
-
logoSize = _ref$logoSize === void 0 ? "50%" : _ref$logoSize,
|
|
94
|
-
homeIcon = _ref.homeIcon,
|
|
95
|
-
_ref$topNavigationOpt = _ref.topNavigationOption,
|
|
96
|
-
topNavigationOption = _ref$topNavigationOpt === void 0 ? {} : _ref$topNavigationOpt;
|
|
97
|
-
var _useConfigContext = useConfigContext(),
|
|
98
|
-
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
99
|
-
var prefixCls = getPrefixCls("basic-header");
|
|
100
|
-
var _useStyle = useStyle("".concat(prefixCls, "-cw-header-out-wrapper")),
|
|
101
|
-
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
102
|
-
wrapCSSVar = _useStyle2[0],
|
|
103
|
-
hashId = _useStyle2[1],
|
|
104
|
-
cssVarCls = _useStyle2[2];
|
|
105
|
-
var _topNavigationOption$ = topNavigationOption.topNavigationType,
|
|
106
|
-
topNavigationType = _topNavigationOption$ === void 0 ? "fold" : _topNavigationOption$;
|
|
107
|
-
var logoContainerRef = useRef(null);
|
|
108
|
-
var _useState = useState(false),
|
|
109
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
110
|
-
visible = _useState2[0],
|
|
111
|
-
setVisible = _useState2[1];
|
|
112
|
-
useEffect(function () {
|
|
113
|
-
if (logo) {
|
|
114
|
-
var logoEle = logoContainerRef.current.querySelector("img");
|
|
115
|
-
if (!logoEle) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
var containerHeight = logoContainerRef.current.offsetHeight;
|
|
119
|
-
logoEle.style.height = "".concat(containerHeight, "px");
|
|
120
|
-
logoEle.onload = function () {
|
|
121
|
-
var imgWidth = logoEle.offsetWidth;
|
|
122
|
-
var imgHeight = logoEle.offsetHeight;
|
|
123
|
-
logoEle.style.width = "".concat(imgWidth / imgHeight * containerHeight, "px");
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}, [logo]);
|
|
127
|
-
function onClickTopNavigationSelf(e, item) {
|
|
128
|
-
if (onClickTopNavigation) {
|
|
129
|
-
e.preventDefault();
|
|
130
|
-
onClickTopNavigation(e, item);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// 数组分组
|
|
135
|
-
function group(array, subGroupLength) {
|
|
136
|
-
var index = 0;
|
|
137
|
-
var newArray = [];
|
|
138
|
-
while (index < array.length) {
|
|
139
|
-
newArray.push(array.slice(index, index += subGroupLength));
|
|
140
|
-
}
|
|
141
|
-
return newArray;
|
|
142
|
-
}
|
|
143
|
-
var renderItem = function renderItem() {
|
|
144
|
-
if (!topNavigation || !topNavigation.length) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
var groupedData = group(topNavigation, 5);
|
|
148
|
-
return groupedData.map(function (data, index) {
|
|
149
|
-
// 不足进行补位 解决如果出现滚动条错位的问题
|
|
150
|
-
var _data = data.concat(new Array(5 - data.length).fill(null));
|
|
151
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
152
|
-
className: "cw-header-dropdown-menu-item-row",
|
|
153
|
-
key: index
|
|
154
|
-
}, _data.map(function (item, i) {
|
|
155
|
-
if (!item) {
|
|
156
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
157
|
-
key: "null-".concat(i),
|
|
158
|
-
className: "cw-header-dropdown-menu-item"
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
162
|
-
className: "cw-header-dropdown-menu-item",
|
|
163
|
-
key: item.value,
|
|
164
|
-
href: item.value,
|
|
165
|
-
onClick: function onClick(e) {
|
|
166
|
-
return onClickTopNavigationSelf(e, item);
|
|
167
|
-
}
|
|
168
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
169
|
-
className: "cw-header-dropdown-menu-item-box"
|
|
170
|
-
}, item.icon), /*#__PURE__*/React.createElement("div", {
|
|
171
|
-
className: "cw-header-dropdown-menu-item-name"
|
|
172
|
-
}, item.name));
|
|
173
|
-
}));
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
var renderTopNavigationMenu = function renderTopNavigationMenu() {
|
|
177
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
178
|
-
className: "cw-header-dropdown-menu-container"
|
|
179
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
180
|
-
className: "cw-header-dropdown-menu-box"
|
|
181
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
182
|
-
className: "cw-header-dropdown-menu-list"
|
|
183
|
-
}, renderItem())));
|
|
184
|
-
};
|
|
185
|
-
var renderLogo = function renderLogo() {
|
|
186
|
-
if (!logo) {
|
|
187
|
-
return null;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// src
|
|
191
|
-
if (typeof logo === "string") {
|
|
192
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
193
|
-
src: logo,
|
|
194
|
-
alt: ""
|
|
195
|
-
});
|
|
196
|
-
} else {
|
|
197
|
-
// 元素
|
|
198
|
-
return logo;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
return wrapCSSVar(
|
|
202
|
-
/*#__PURE__*/
|
|
203
|
-
// layout-header-check-repeat 检测嵌套标记,layout嵌套不显示第二个header
|
|
204
|
-
React.createElement("header", {
|
|
205
|
-
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-cw-header-out-wrapper"), "layout-header-check-repeat")
|
|
206
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
207
|
-
className: "cw-header-left"
|
|
208
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
209
|
-
className: "cw-header-logo",
|
|
210
|
-
ref: logoContainerRef,
|
|
211
|
-
style: {
|
|
212
|
-
height: logoSize
|
|
213
|
-
}
|
|
214
|
-
}, renderLogo(), logoText && /*#__PURE__*/React.createElement("span", {
|
|
215
|
-
className: "logo-text"
|
|
216
|
-
}, logoText)), showHome ? /*#__PURE__*/React.createElement("div", {
|
|
217
|
-
className: "cw-header-home",
|
|
218
|
-
onClick: onClickHome
|
|
219
|
-
}, homeIcon ? homeIcon : /*#__PURE__*/React.createElement(Icon, {
|
|
220
|
-
component: homeIconSvg
|
|
221
|
-
})) : null, showTopNavigation && (topNavigationType === "fold" ? /*#__PURE__*/React.createElement(_Dropdown, {
|
|
222
|
-
trigger: topNavigationTrigger,
|
|
223
|
-
overlayClassName: classnames("".concat(prefixCls, "-cw-header-dropdown-out-wrapper"), {
|
|
224
|
-
topNavigationClassName: topNavigationClassName
|
|
225
|
-
}),
|
|
226
|
-
overlay: renderTopNavigationMenu(),
|
|
227
|
-
open: visible,
|
|
228
|
-
onOpenChange: function onOpenChange(pre) {
|
|
229
|
-
setVisible(pre);
|
|
230
|
-
}
|
|
231
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
232
|
-
className: "cw-header-dropdown-link",
|
|
233
|
-
onClick: function onClick(e) {
|
|
234
|
-
return e.preventDefault();
|
|
235
|
-
}
|
|
236
|
-
}, allProductsTitle, " ", /*#__PURE__*/React.createElement(CaretDownOutlined, null))) : /*#__PURE__*/React.createElement(TopNavigationMenu, {
|
|
237
|
-
onClickTopNavigationSelf: onClickTopNavigationSelf,
|
|
238
|
-
topNavigation: topNavigation,
|
|
239
|
-
topNavigationOption: topNavigationOption
|
|
240
|
-
})), topNavigationType === "fold" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
241
|
-
className: "cw-division"
|
|
242
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
243
|
-
className: "cw-page-name"
|
|
244
|
-
}, title))), /*#__PURE__*/React.createElement("div", {
|
|
245
|
-
className: "cw-header-right"
|
|
246
|
-
}, extra, /*#__PURE__*/React.createElement(Message, {
|
|
247
|
-
option: messageOption
|
|
248
|
-
}), /*#__PURE__*/React.createElement(Document, {
|
|
249
|
-
option: documentOption
|
|
250
|
-
}), /*#__PURE__*/React.createElement(LocaleSwitcher, {
|
|
251
|
-
option: localeSwitcherOption
|
|
252
|
-
}), /*#__PURE__*/React.createElement(UserSetting, {
|
|
253
|
-
option: userSetingOption
|
|
254
|
-
}))));
|
|
255
|
-
}
|
|
256
|
-
CWHeader.defaultProps = {
|
|
257
|
-
logo: /*#__PURE__*/React.createElement(Icon, {
|
|
258
|
-
component: defaultLogo
|
|
259
|
-
}),
|
|
260
|
-
title: "",
|
|
261
|
-
showHome: true,
|
|
262
|
-
showTopNavigation: true,
|
|
263
|
-
onClickHome: function onClickHome() {},
|
|
264
|
-
topNavigationTrigger: ["hover"]
|
|
265
|
-
};
|
|
266
|
-
CWHeader.propTypes = {
|
|
267
|
-
/**
|
|
268
|
-
* 自定义所有产品的文字
|
|
269
|
-
*/
|
|
270
|
-
allProductsTitle: PropTypes.string,
|
|
271
|
-
/**
|
|
272
|
-
* 自定义logo
|
|
273
|
-
*/
|
|
274
|
-
logo: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
275
|
-
/**
|
|
276
|
-
* logo文案
|
|
277
|
-
*/
|
|
278
|
-
logoText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
279
|
-
/**
|
|
280
|
-
* 自定义标题文字
|
|
281
|
-
*/
|
|
282
|
-
title: PropTypes.string,
|
|
283
|
-
/**
|
|
284
|
-
* 自定义页头右侧操作区
|
|
285
|
-
*/
|
|
286
|
-
extra: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
287
|
-
/**
|
|
288
|
-
* 是否展示home图标
|
|
289
|
-
*/
|
|
290
|
-
showHome: PropTypes.bool,
|
|
291
|
-
/**
|
|
292
|
-
* 点击home图标触发的事件
|
|
293
|
-
*/
|
|
294
|
-
onClickHome: PropTypes.func,
|
|
295
|
-
/**
|
|
296
|
-
* 开启顶部导航菜单
|
|
297
|
-
*/
|
|
298
|
-
showTopNavigation: PropTypes.bool,
|
|
299
|
-
/**
|
|
300
|
-
* 顶部导航菜单内容
|
|
301
|
-
*/
|
|
302
|
-
topNavigation: PropTypes.arrayOf(PropTypes.shape({
|
|
303
|
-
icon: PropTypes.node,
|
|
304
|
-
name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
305
|
-
value: PropTypes.string
|
|
306
|
-
})),
|
|
307
|
-
/**
|
|
308
|
-
* 顶部导航菜单根元素的类名称
|
|
309
|
-
*/
|
|
310
|
-
topNavigationClassName: PropTypes.string,
|
|
311
|
-
/**
|
|
312
|
-
* 顶部导航菜单触发下拉的行为
|
|
313
|
-
*/
|
|
314
|
-
topNavigationTrigger: PropTypes.arrayOf(PropTypes.oneOf(["hover", "click", "contextMenu"])),
|
|
315
|
-
/**
|
|
316
|
-
* 点击顶部导航菜单,function(e,item){}
|
|
317
|
-
*/
|
|
318
|
-
onClickTopNavigation: PropTypes.func
|
|
319
|
-
};
|
|
320
|
-
export default CWHeader;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
4
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
-
import { genStyleHooks } from "../Antd5/theme/internal";
|
|
6
|
-
import { unit } from '@ant-design/cssinjs';
|
|
7
|
-
var prepareComponentToken = function prepareComponentToken(token) {
|
|
8
|
-
return {
|
|
9
|
-
bodyBgLayout: token.Layout.bodyBg,
|
|
10
|
-
headerBgLayout: token.Layout.headerBg,
|
|
11
|
-
headerColorLayout: token.Layout.headerColor,
|
|
12
|
-
headerHeightLayout: token.Layout.headerHeight,
|
|
13
|
-
// headerPaddingLayout: token.Layout.headerPadding,
|
|
14
|
-
divisionBgLayout: token.Layout.divisionBg,
|
|
15
|
-
topNavMenuBgLayout: token.Layout.topNavMenuBg
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
var genCustomCWHeaderStyle = function genCustomCWHeaderStyle(token) {
|
|
19
|
-
var prefixCls = token.antCls;
|
|
20
|
-
var basicHeaderPrefix = "".concat(prefixCls, "-basic-header");
|
|
21
|
-
return _defineProperty(_defineProperty({}, "".concat(basicHeaderPrefix, "-cw-header-out-wrapper"), {
|
|
22
|
-
height: "".concat(unit(token.headerHeightLayout)),
|
|
23
|
-
lineHeight: "".concat(unit(token.headerHeightLayout)),
|
|
24
|
-
width: "100%",
|
|
25
|
-
display: "flex",
|
|
26
|
-
justifyContent: "space-between",
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
background: token.headerBgLayout,
|
|
29
|
-
color: token.headerColorLayout,
|
|
30
|
-
fontSize: "14px",
|
|
31
|
-
".cw-division": {
|
|
32
|
-
width: "1px",
|
|
33
|
-
height: "20px",
|
|
34
|
-
margin: "0 16px",
|
|
35
|
-
backgroundColor: token.divisionBgLayout
|
|
36
|
-
},
|
|
37
|
-
".cw-header-left": {
|
|
38
|
-
height: "100%",
|
|
39
|
-
display: "flex",
|
|
40
|
-
alignItems: "center",
|
|
41
|
-
".cw-header-logo": {
|
|
42
|
-
overflow: "hidden",
|
|
43
|
-
marginLeft: "24px",
|
|
44
|
-
display: "flex",
|
|
45
|
-
alignItems: "center",
|
|
46
|
-
img: {
|
|
47
|
-
display: "block"
|
|
48
|
-
},
|
|
49
|
-
".logo-text": {
|
|
50
|
-
color: token.headerColorLayout,
|
|
51
|
-
marginLeft: "8px",
|
|
52
|
-
fontSize: "18px"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
".cw-header-home": {
|
|
56
|
-
minWidth: "16px",
|
|
57
|
-
minHeight: "16px",
|
|
58
|
-
fontSize: "16px",
|
|
59
|
-
display: "flex",
|
|
60
|
-
alignItems: "center",
|
|
61
|
-
marginLeft: "31px",
|
|
62
|
-
cursor: "pointer",
|
|
63
|
-
color: token.headerColorLayout
|
|
64
|
-
},
|
|
65
|
-
".cw-header-dropdown-link": {
|
|
66
|
-
height: "".concat(unit(token.headerHeightLayout)),
|
|
67
|
-
lineHeight: "".concat(unit(token.headerHeightLayout)),
|
|
68
|
-
marginLeft: "16px",
|
|
69
|
-
cursor: "pointer"
|
|
70
|
-
// [`${token.iconCls}-caret-down`]: {
|
|
71
|
-
// marginLeft: "8px",
|
|
72
|
-
// },
|
|
73
|
-
},
|
|
74
|
-
".cw-page-name": {
|
|
75
|
-
letterSpacing: "0"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
".cw-header-right": {
|
|
79
|
-
height: "100%",
|
|
80
|
-
marginRight: "24px",
|
|
81
|
-
width: "max-content",
|
|
82
|
-
display: "flex",
|
|
83
|
-
alignItems: "center"
|
|
84
|
-
}
|
|
85
|
-
}), "".concat(basicHeaderPrefix, "-cw-header-dropdown-out-wrapper"), {
|
|
86
|
-
".cw-header-dropdown-menu-container": {
|
|
87
|
-
background: token.topNavMenuBgLayout,
|
|
88
|
-
width: "656px",
|
|
89
|
-
padding: "16px",
|
|
90
|
-
overflow: "auto",
|
|
91
|
-
maxHeight: "calc(100vh - 100px)",
|
|
92
|
-
boxShadow: token.boxShadow,
|
|
93
|
-
borderRadius: token.borderRadius,
|
|
94
|
-
".cw-header-dropdown-menu-box": {
|
|
95
|
-
width: "100%",
|
|
96
|
-
overflowY: "auto",
|
|
97
|
-
".cw-header-dropdown-menu-list": {
|
|
98
|
-
".cw-header-dropdown-menu-item-row": {
|
|
99
|
-
display: "flex",
|
|
100
|
-
marginBottom: "8px",
|
|
101
|
-
flexWrap: "nowrap",
|
|
102
|
-
"&:last-child": {
|
|
103
|
-
marginBottom: "0"
|
|
104
|
-
},
|
|
105
|
-
".cw-header-dropdown-menu-item": {
|
|
106
|
-
width: "112px",
|
|
107
|
-
flexDirection: "column",
|
|
108
|
-
display: "flex",
|
|
109
|
-
alignItems: "center",
|
|
110
|
-
padding: "8px 0",
|
|
111
|
-
fontSize: "12px",
|
|
112
|
-
lineHeight: "20px",
|
|
113
|
-
marginRight: "16px",
|
|
114
|
-
"&:last-child": {
|
|
115
|
-
marginRight: "0"
|
|
116
|
-
},
|
|
117
|
-
".cw-header-dropdown-menu-item-box": {
|
|
118
|
-
background: token.colorBgContainer,
|
|
119
|
-
boxShadow: "0 2px 6px 1px rgba(101, 124, 236, 0.28)",
|
|
120
|
-
width: "36px",
|
|
121
|
-
height: "36px",
|
|
122
|
-
overflow: "hidden",
|
|
123
|
-
borderRadius: "36px",
|
|
124
|
-
border: "none",
|
|
125
|
-
display: "flex",
|
|
126
|
-
justifyContent: "center",
|
|
127
|
-
alignItems: "center",
|
|
128
|
-
cursor: "pointer",
|
|
129
|
-
padding: "10px",
|
|
130
|
-
marginBottom: "8px",
|
|
131
|
-
"> img": {
|
|
132
|
-
width: "100%",
|
|
133
|
-
height: "100%"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
".cw-header-dropdown-menu-item-name": {
|
|
137
|
-
color: token.colorText,
|
|
138
|
-
cursor: "pointer",
|
|
139
|
-
textAlign: "center",
|
|
140
|
-
letterSpacing: "0"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
// ============================== Export ==============================
|
|
150
|
-
export default genStyleHooks("CWHeader", function (token) {
|
|
151
|
-
return [
|
|
152
|
-
//
|
|
153
|
-
genCustomCWHeaderStyle(token)];
|
|
154
|
-
}, prepareComponentToken);
|
package/lib/Icon/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var _excluded = ["type", "theme"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, { Suspense } from "react";
|
|
5
|
-
import AntdIcon from "@ant-design/icons";
|
|
6
|
-
import { loadIcon } from "./utils";
|
|
7
|
-
import { cloneComProps } from "../utils";
|
|
8
|
-
var Icon = function Icon(props) {
|
|
9
|
-
var type = props.type,
|
|
10
|
-
_props$theme = props.theme,
|
|
11
|
-
theme = _props$theme === void 0 ? "outlined" : _props$theme,
|
|
12
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
13
|
-
if (type) {
|
|
14
|
-
var IconComponent = loadIcon(type, theme);
|
|
15
|
-
// fallback={<></>} 如果为loading切换的时候会出现闪烁
|
|
16
|
-
return /*#__PURE__*/React.createElement(Suspense, {
|
|
17
|
-
fallback: /*#__PURE__*/React.createElement(React.Fragment, null)
|
|
18
|
-
}, /*#__PURE__*/React.createElement(IconComponent, rest));
|
|
19
|
-
}
|
|
20
|
-
return /*#__PURE__*/React.createElement(AntdIcon, rest);
|
|
21
|
-
};
|
|
22
|
-
cloneComProps(AntdIcon, Icon);
|
|
23
|
-
export default Icon;
|
package/lib/Icon/utils.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var toCamelCase = function toCamelCase(type, theme) {
|
|
3
|
-
var typeTheme = "".concat(type, "-").concat(theme.charAt(0).toUpperCase()).concat(theme.slice(1));
|
|
4
|
-
var result = typeTheme.split("-").map(function (item, index) {
|
|
5
|
-
if (index === 0) {
|
|
6
|
-
return item.charAt(0).toUpperCase() + item.slice(1);
|
|
7
|
-
} else {
|
|
8
|
-
return item.charAt(0).toUpperCase() + item.slice(1);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
return result.join("");
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// 创建一个动态加载图标的函数
|
|
15
|
-
export var loadIcon = function loadIcon(type, theme) {
|
|
16
|
-
var iconComponentName = toCamelCase(type, theme);
|
|
17
|
-
return /*#__PURE__*/React.lazy(function () {
|
|
18
|
-
return import("@ant-design/icons/es/icons/".concat(iconComponentName));
|
|
19
|
-
});
|
|
20
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import _Upload from "@chaoswise/ui/lib/Upload";
|
|
2
|
-
import _Button from "@chaoswise/ui/lib/Button";
|
|
3
|
-
import _message from "@chaoswise/ui/lib/message";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { useIntl } from "../../../locales";
|
|
6
|
-
var CustomImg = function CustomImg(_ref) {
|
|
7
|
-
var onChange = _ref.onChange,
|
|
8
|
-
iconInfo = _ref.iconInfo,
|
|
9
|
-
setCustomFileInfo = _ref.setCustomFileInfo,
|
|
10
|
-
customFileInfo = _ref.customFileInfo;
|
|
11
|
-
var intl = useIntl();
|
|
12
|
-
var beforeUpload = function beforeUpload(file) {
|
|
13
|
-
var type = file.type,
|
|
14
|
-
size = file.size;
|
|
15
|
-
var checkTypeIsImage = function checkTypeIsImage() {
|
|
16
|
-
return !(type !== null && type !== void 0 && type.startsWith("image"));
|
|
17
|
-
};
|
|
18
|
-
var checkSizeIsNull = function checkSizeIsNull() {
|
|
19
|
-
return size == 0;
|
|
20
|
-
};
|
|
21
|
-
var checkSizeIsBig = function checkSizeIsBig() {
|
|
22
|
-
return size > 2 * 1024 * 1024;
|
|
23
|
-
};
|
|
24
|
-
if (checkTypeIsImage()) {
|
|
25
|
-
_message.error(intl.get("c0839048-28ed-4a1f-bbad-be025e41ae75").d("暂不支持该格式文件"));
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
if (checkSizeIsNull()) {
|
|
29
|
-
_message.error(intl.get("b7e613a0-9941-444c-a3f8-ae1f7d1943c3").d("不能上传空文件"));
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
if (checkSizeIsBig()) {
|
|
33
|
-
_message.error(intl.get("eb6227c5-2594-4fb6-92cb-496295288cdd").d("图片大小不超过2M"));
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
var reader = new FileReader();
|
|
37
|
-
reader.readAsDataURL(file);
|
|
38
|
-
reader.onload = function () {
|
|
39
|
-
var _customFileInfo = {
|
|
40
|
-
baseCode: reader.result,
|
|
41
|
-
name: file.name,
|
|
42
|
-
id: file.uid
|
|
43
|
-
};
|
|
44
|
-
var fileInfo = {
|
|
45
|
-
iconInfo: iconInfo,
|
|
46
|
-
customFileInfo: _customFileInfo
|
|
47
|
-
};
|
|
48
|
-
setCustomFileInfo(_customFileInfo);
|
|
49
|
-
onChange(fileInfo);
|
|
50
|
-
// console.log(reader.result, "reader.result");
|
|
51
|
-
};
|
|
52
|
-
reader.onerror = function () {
|
|
53
|
-
_message.error(intl.get("95862d90-8807-499e-9b92-4b890337c82e").d("读取文件失败"));
|
|
54
|
-
};
|
|
55
|
-
return false;
|
|
56
|
-
};
|
|
57
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "link-upload-box"
|
|
59
|
-
}, /*#__PURE__*/React.createElement(_Upload, {
|
|
60
|
-
className: "upload-custom",
|
|
61
|
-
accept: ".png,.svg,.jpg,.jpeg",
|
|
62
|
-
dropSingleFileUpload: true,
|
|
63
|
-
beforeUpload: beforeUpload,
|
|
64
|
-
fileList: customFileInfo ? [customFileInfo] : [],
|
|
65
|
-
onRemove: function onRemove(e) {
|
|
66
|
-
var fileInfo = {
|
|
67
|
-
iconInfo: iconInfo,
|
|
68
|
-
customFileInfo: null
|
|
69
|
-
};
|
|
70
|
-
setCustomFileInfo(null);
|
|
71
|
-
onChange(fileInfo);
|
|
72
|
-
},
|
|
73
|
-
showUploadList: {
|
|
74
|
-
showDownloadIcon: true
|
|
75
|
-
}
|
|
76
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
className: "custom-img"
|
|
78
|
-
}, /*#__PURE__*/React.createElement(_Button, {
|
|
79
|
-
icon: "upload"
|
|
80
|
-
}, intl.get("1a190483-11d6-4fc7-bdd8-9ebed6dcf14e").d("上传本地图片")), /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "custom-img-tip"
|
|
82
|
-
}, intl.get("718c1df1-dba2-4e7a-a078-46c54ee4875a").d("推荐上传40*40的PNG、SVG、JPG、JGPG,⼤⼩不超过2M"))))));
|
|
83
|
-
};
|
|
84
|
-
export default CustomImg;
|