@aloudata/aloudata-design 0.2.7 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Avatar/index.d.ts +15 -0
- package/es/Avatar/index.js +33 -0
- package/es/{Message → Avatar}/style/index.d.ts +0 -0
- package/es/{Message → Avatar}/style/index.js +0 -0
- package/es/Avatar/style/index.less +34 -0
- package/es/Breadcrumb/index.d.ts +7 -0
- package/es/Breadcrumb/index.js +36 -0
- package/es/{Notification → Breadcrumb}/style/index.d.ts +0 -0
- package/es/{Notification → Breadcrumb}/style/index.js +0 -0
- package/es/Breadcrumb/style/index.less +36 -0
- package/es/Button/index.d.ts +4 -4
- package/es/Button/index.js +45 -25
- package/es/Button/style/index.less +185 -150
- package/es/Button/style/variables.less +67 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Checkbox/style/index.less +35 -1
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/{lib/Message → es/Drawer}/style/index.d.ts +0 -0
- package/es/Drawer/style/index.js +2 -0
- package/es/{Message → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Dropdown/style/index.less +41 -8
- package/es/Empty/image/Authority.d.ts +2 -0
- package/es/Empty/image/Authority.js +360 -0
- package/es/Empty/image/Dataspace.d.ts +2 -0
- package/es/Empty/image/Dataspace.js +271 -0
- package/es/Empty/image/Search.d.ts +2 -0
- package/es/Empty/image/Search.js +156 -0
- package/es/Empty/image/Simple.d.ts +2 -0
- package/es/Empty/image/Simple.js +20 -0
- package/es/Empty/image/Worksheet.d.ts +2 -0
- package/es/Empty/image/Worksheet.js +270 -0
- package/es/Empty/image/empty.d.ts +2 -0
- package/es/Empty/image/empty.js +139 -0
- package/es/Empty/index.d.ts +21 -5
- package/es/Empty/index.js +84 -54
- package/es/Empty/style/index.less +56 -11
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -45
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +4 -3
- package/es/Input/components/Group/index.js +23 -1
- package/es/Input/components/Input/index.d.ts +1 -1
- package/es/Input/components/Input/index.js +12 -0
- package/es/Input/components/Password/index.d.ts +7 -1
- package/es/Input/components/Password/index.js +29 -6
- package/es/Input/style/index.less +278 -43
- package/es/InputNumber/index.d.ts +3 -0
- package/es/InputNumber/index.js +32 -0
- package/{lib/Notification → es/InputNumber}/style/index.d.ts +0 -0
- package/es/InputNumber/style/index.js +2 -0
- package/es/InputNumber/style/index.less +224 -0
- package/es/Menu/Divider.d.ts +2 -2
- package/es/Menu/MenuItem.d.ts +2 -1
- package/es/Menu/SubMenu.d.ts +2 -1
- package/es/Menu/SubMenu.js +1 -1
- package/es/Menu/index.d.ts +2 -1
- package/es/Menu/style/index.less +5 -5
- package/es/Modal/index.d.ts +21 -0
- package/es/Modal/index.js +95 -0
- package/es/Modal/style/index.d.ts +2 -0
- package/es/Modal/style/index.js +2 -0
- package/es/Modal/style/index.less +206 -0
- package/es/Navigator/components/Header/index.d.ts +8 -0
- package/es/Navigator/components/Header/index.js +18 -0
- package/es/Navigator/components/Menu/index.d.ts +6 -13
- package/es/Navigator/components/Menu/index.js +26 -119
- package/es/Navigator/components/MenuItem/index.d.ts +21 -0
- package/es/Navigator/components/MenuItem/index.js +39 -0
- package/es/Navigator/index.d.ts +19 -8
- package/es/Navigator/index.js +6 -15
- package/es/Navigator/style/bg.png +0 -0
- package/es/Navigator/style/index.less +97 -164
- package/es/Popover/index.d.ts +4 -0
- package/es/Popover/index.js +22 -0
- package/es/Popover/style/index.d.ts +2 -0
- package/es/Popover/style/index.js +2 -0
- package/es/Popover/style/index.less +37 -0
- package/es/Radio/index.d.ts +2 -3
- package/es/Select/index.d.ts +37 -9
- package/es/Select/index.js +155 -7
- package/es/Select/rc-select/BaseSelect.d.ts +116 -0
- package/es/Select/rc-select/BaseSelect.js +641 -0
- package/es/Select/rc-select/OptGroup.d.ts +12 -0
- package/es/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/es/Select/rc-select/Option.d.ts +14 -0
- package/es/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/es/Select/rc-select/OptionList.d.ts +10 -0
- package/es/Select/rc-select/OptionList.js +401 -0
- package/es/Select/rc-select/Select.d.ts +109 -0
- package/es/Select/rc-select/Select.js +547 -0
- package/es/Select/rc-select/SelectContext.d.ts +20 -0
- package/es/Select/rc-select/SelectContext.js +4 -0
- package/es/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/es/Select/rc-select/SelectTrigger.js +136 -0
- package/es/Select/rc-select/Selector/Input.d.ts +26 -0
- package/es/Select/rc-select/Selector/Input.js +114 -0
- package/es/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/es/Select/rc-select/Selector/MultipleSelector.js +236 -0
- package/es/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/es/Select/rc-select/Selector/SingleSelector.js +112 -0
- package/es/Select/rc-select/Selector/index.d.ts +80 -0
- package/es/Select/rc-select/Selector/index.js +194 -0
- package/es/Select/rc-select/TransBtn.d.ts +12 -0
- package/es/Select/rc-select/TransBtn.js +42 -0
- package/es/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/es/Select/rc-select/hooks/useBaseProps.js +11 -0
- package/es/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/es/Select/rc-select/hooks/useCache.js +49 -0
- package/es/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/es/Select/rc-select/hooks/useDelayReset.js +50 -0
- package/es/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/es/Select/rc-select/hooks/useFilterOptions.js +75 -0
- package/es/Select/rc-select/hooks/useId.d.ts +5 -0
- package/es/Select/rc-select/hooks/useId.js +47 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.js +17 -0
- package/es/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/es/Select/rc-select/hooks/useLock.js +35 -0
- package/es/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/es/Select/rc-select/hooks/useOptions.js +53 -0
- package/es/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/es/Select/rc-select/hooks/useRefFunc.js +15 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.js +40 -0
- package/es/Select/rc-select/index.d.ts +10 -0
- package/es/Select/rc-select/index.js +7 -0
- package/es/Select/rc-select/interface.d.ts +10 -0
- package/es/Select/{interface.js → rc-select/interface.js} +0 -0
- package/es/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/es/Select/rc-select/utils/commonUtil.js +12 -0
- package/es/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/es/Select/rc-select/utils/keyUtil.js +8 -0
- package/es/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/legacyUtil.js +58 -0
- package/es/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/es/Select/rc-select/utils/platformUtil.js +4 -0
- package/es/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/es/Select/rc-select/utils/valueUtil.js +157 -0
- package/es/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/warningPropsUtil.js +114 -0
- package/es/Select/style/index.d.ts +1 -0
- package/es/Select/style/index.js +3 -1
- package/es/Select/style/index.less +230 -480
- package/es/Select/style/multiple.less +222 -0
- package/es/Select/style/rtl.less +168 -0
- package/es/Select/style/select.less +337 -0
- package/es/Select/style/single.less +179 -0
- package/es/Select/style/status.less +48 -0
- package/es/Select/style/variables.less +67 -0
- package/es/Select/style/variables.less.d.ts +100 -0
- package/es/Select/utils/iconUtil.d.ts +24 -0
- package/es/Select/utils/iconUtil.js +82 -0
- package/es/Space/index.d.ts +1 -1
- package/es/Space/index.js +0 -1
- package/es/Table/Table.d.ts +5 -0
- package/es/Table/Table.js +473 -0
- package/es/Table/index.d.ts +2 -4
- package/es/Table/index.js +2 -463
- package/es/Table/interface.d.ts +11 -15
- package/es/Table/style/index.less +51 -21
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +10 -4
- package/es/Tabs/style/index.less +73 -7
- package/es/Tooltip/style/index.less +2 -1
- package/es/index.d.ts +20 -5
- package/es/index.js +11 -3
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/es/message/style/index.d.ts +2 -0
- package/es/message/style/index.js +2 -0
- package/es/{Notification → message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/es/notification/style/index.d.ts +2 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Message → es/notification}/style/index.less +0 -0
- package/es/style/index.less +3 -1
- package/es/style/mixins/index.less +8 -0
- package/es/style/themes/default/index.less +10 -10
- package/es/style/themes/default/scrollBar.less +13 -0
- package/es/style/themes/default/themeColor.module.less +58 -94
- package/es/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/lib/Avatar/index.d.ts +15 -0
- package/lib/Avatar/index.js +57 -0
- package/lib/Avatar/style/index.d.ts +2 -0
- package/lib/{Message → Avatar}/style/index.js +0 -0
- package/lib/Avatar/style/index.less +34 -0
- package/lib/Breadcrumb/index.d.ts +7 -0
- package/lib/Breadcrumb/index.js +50 -0
- package/lib/Breadcrumb/style/index.d.ts +2 -0
- package/lib/{Notification → Breadcrumb}/style/index.js +0 -0
- package/lib/Breadcrumb/style/index.less +36 -0
- package/lib/Button/index.d.ts +4 -4
- package/lib/Button/index.js +45 -25
- package/lib/Button/style/index.less +185 -150
- package/lib/Button/style/variables.less +67 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/style/index.less +35 -1
- package/lib/ConfigProvider/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +26 -0
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/Drawer/style/index.js +5 -0
- package/lib/{Notification → Drawer}/style/index.less +0 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Dropdown/style/index.less +41 -8
- package/lib/Empty/image/Authority.d.ts +2 -0
- package/lib/Empty/image/Authority.js +374 -0
- package/lib/Empty/image/Dataspace.d.ts +2 -0
- package/lib/Empty/image/Dataspace.js +285 -0
- package/lib/Empty/image/Search.d.ts +2 -0
- package/lib/Empty/image/Search.js +170 -0
- package/lib/Empty/image/Simple.d.ts +2 -0
- package/lib/Empty/image/Simple.js +34 -0
- package/lib/Empty/image/Worksheet.d.ts +2 -0
- package/lib/Empty/image/Worksheet.js +284 -0
- package/lib/Empty/image/empty.d.ts +2 -0
- package/lib/Empty/image/empty.js +153 -0
- package/lib/Empty/index.d.ts +21 -5
- package/lib/Empty/index.js +94 -53
- package/lib/Empty/style/index.less +56 -11
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -51
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +4 -3
- package/lib/Input/components/Group/index.js +24 -1
- package/lib/Input/components/Input/index.d.ts +1 -1
- package/lib/Input/components/Input/index.js +13 -0
- package/lib/Input/components/Password/index.d.ts +7 -1
- package/lib/Input/components/Password/index.js +30 -5
- package/lib/Input/style/index.less +278 -43
- package/lib/InputNumber/index.d.ts +3 -0
- package/lib/InputNumber/index.js +45 -0
- package/lib/InputNumber/style/index.d.ts +2 -0
- package/lib/InputNumber/style/index.js +5 -0
- package/lib/InputNumber/style/index.less +224 -0
- package/lib/Menu/Divider.d.ts +2 -2
- package/lib/Menu/MenuItem.d.ts +2 -1
- package/lib/Menu/SubMenu.d.ts +2 -1
- package/lib/Menu/SubMenu.js +1 -1
- package/lib/Menu/index.d.ts +2 -1
- package/lib/Menu/style/index.less +5 -5
- package/lib/Modal/index.d.ts +21 -0
- package/lib/Modal/index.js +121 -0
- package/lib/Modal/style/index.d.ts +2 -0
- package/lib/Modal/style/index.js +5 -0
- package/lib/Modal/style/index.less +206 -0
- package/lib/Navigator/components/Header/index.d.ts +8 -0
- package/lib/Navigator/components/Header/index.js +28 -0
- package/lib/Navigator/components/Menu/index.d.ts +6 -13
- package/lib/Navigator/components/Menu/index.js +25 -118
- package/lib/Navigator/components/MenuItem/index.d.ts +21 -0
- package/lib/Navigator/components/MenuItem/index.js +56 -0
- package/lib/Navigator/index.d.ts +19 -8
- package/lib/Navigator/index.js +7 -15
- package/lib/Navigator/style/bg.png +0 -0
- package/lib/Navigator/style/index.less +97 -164
- package/lib/Popover/index.d.ts +4 -0
- package/lib/Popover/index.js +35 -0
- package/lib/Popover/style/index.d.ts +2 -0
- package/lib/Popover/style/index.js +5 -0
- package/lib/Popover/style/index.less +37 -0
- package/lib/Radio/index.d.ts +2 -3
- package/lib/Select/index.d.ts +37 -9
- package/lib/Select/index.js +167 -18
- package/lib/Select/rc-select/BaseSelect.d.ts +116 -0
- package/lib/Select/rc-select/BaseSelect.js +672 -0
- package/lib/Select/rc-select/OptGroup.d.ts +12 -0
- package/lib/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/lib/Select/rc-select/Option.d.ts +14 -0
- package/lib/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/lib/Select/rc-select/OptionList.d.ts +10 -0
- package/lib/Select/rc-select/OptionList.js +427 -0
- package/lib/Select/rc-select/Select.d.ts +109 -0
- package/lib/Select/rc-select/Select.js +545 -0
- package/lib/Select/rc-select/SelectContext.d.ts +20 -0
- package/lib/Select/rc-select/SelectContext.js +19 -0
- package/lib/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/lib/Select/rc-select/SelectTrigger.js +153 -0
- package/lib/Select/rc-select/Selector/Input.d.ts +26 -0
- package/lib/Select/rc-select/Selector/Input.js +132 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.js +257 -0
- package/lib/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/lib/Select/rc-select/Selector/SingleSelector.js +129 -0
- package/lib/Select/rc-select/Selector/index.d.ts +80 -0
- package/lib/Select/rc-select/Selector/index.js +203 -0
- package/lib/Select/rc-select/TransBtn.d.ts +12 -0
- package/lib/Select/rc-select/TransBtn.js +59 -0
- package/lib/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/lib/Select/rc-select/hooks/useBaseProps.js +28 -0
- package/lib/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useCache.js +63 -0
- package/lib/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useDelayReset.js +62 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.js +91 -0
- package/lib/Select/rc-select/hooks/useId.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useId.js +68 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.js +32 -0
- package/lib/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useLock.js +49 -0
- package/lib/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/lib/Select/rc-select/hooks/useOptions.js +68 -0
- package/lib/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useRefFunc.js +29 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +54 -0
- package/lib/Select/rc-select/index.d.ts +10 -0
- package/lib/Select/rc-select/index.js +45 -0
- package/lib/Select/rc-select/interface.d.ts +10 -0
- package/lib/Select/{interface.js → rc-select/interface.js} +0 -0
- package/lib/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/lib/Select/rc-select/utils/commonUtil.js +23 -0
- package/lib/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/lib/Select/rc-select/utils/keyUtil.js +17 -0
- package/lib/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/legacyUtil.js +73 -0
- package/lib/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/lib/Select/rc-select/utils/platformUtil.js +11 -0
- package/lib/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/lib/Select/rc-select/utils/valueUtil.js +172 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.js +132 -0
- package/lib/Select/style/index.d.ts +1 -0
- package/lib/Select/style/index.js +2 -0
- package/lib/Select/style/index.less +230 -480
- package/lib/Select/style/multiple.less +222 -0
- package/lib/Select/style/rtl.less +168 -0
- package/lib/Select/style/select.less +337 -0
- package/lib/Select/style/single.less +179 -0
- package/lib/Select/style/status.less +48 -0
- package/lib/Select/style/variables.less +67 -0
- package/lib/Select/style/variables.less.d.ts +100 -0
- package/lib/Select/utils/iconUtil.d.ts +24 -0
- package/lib/Select/utils/iconUtil.js +102 -0
- package/lib/Space/index.d.ts +1 -1
- package/lib/Space/index.js +0 -6
- package/lib/Table/Table.d.ts +5 -0
- package/lib/Table/Table.js +501 -0
- package/lib/Table/index.d.ts +2 -4
- package/lib/Table/index.js +2 -478
- package/lib/Table/interface.d.ts +11 -15
- package/lib/Table/style/index.less +51 -21
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +11 -4
- package/lib/Tabs/style/index.less +73 -7
- package/lib/Tooltip/style/index.less +2 -1
- package/lib/index.d.ts +20 -5
- package/lib/index.js +70 -6
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +3 -1
- package/lib/style/mixins/index.less +8 -0
- package/lib/style/themes/default/index.less +10 -10
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/lib/style/themes/default/themeColor.module.less +58 -94
- package/lib/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/package.json +7 -6
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Select/BaseSelect.d.ts +0 -5
- package/es/Select/BaseSelect.js +0 -413
- package/es/Select/OptionsList/OptGroup.d.ts +0 -7
- package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/es/Select/OptionsList/OptionItem/RenderGroup.js +0 -16
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -45
- package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/es/Select/OptionsList/OptionItem/RenderOption.js +0 -79
- package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/es/Select/OptionsList/OptionItem/RenderTooltip.js +0 -25
- package/es/Select/OptionsList/OptionItem.d.ts +0 -4
- package/es/Select/OptionsList/OptionItem.js +0 -4
- package/es/Select/OptionsList/Options.d.ts +0 -7
- package/es/Select/OptionsList/index.d.ts +0 -4
- package/es/Select/OptionsList/index.js +0 -176
- package/es/Select/Selector/index.d.ts +0 -4
- package/es/Select/Selector/index.js +0 -252
- package/es/Select/VirtualList.d.ts +0 -5
- package/es/Select/VirtualList.js +0 -29
- package/es/Select/hooks/useCacheOption.d.ts +0 -9
- package/es/Select/hooks/useCacheOption.js +0 -107
- package/es/Select/interface.d.ts +0 -235
- package/es/Select/utils.d.ts +0 -21
- package/es/Select/utils.js +0 -193
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Select/BaseSelect.d.ts +0 -5
- package/lib/Select/BaseSelect.js +0 -446
- package/lib/Select/OptionsList/OptGroup.d.ts +0 -7
- package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/lib/Select/OptionsList/OptionItem/RenderGroup.js +0 -27
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -60
- package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/lib/Select/OptionsList/OptionItem/RenderOption.js +0 -94
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +0 -37
- package/lib/Select/OptionsList/OptionItem.d.ts +0 -4
- package/lib/Select/OptionsList/OptionItem.js +0 -39
- package/lib/Select/OptionsList/Options.d.ts +0 -7
- package/lib/Select/OptionsList/index.d.ts +0 -4
- package/lib/Select/OptionsList/index.js +0 -195
- package/lib/Select/Selector/index.d.ts +0 -4
- package/lib/Select/Selector/index.js +0 -276
- package/lib/Select/VirtualList.d.ts +0 -5
- package/lib/Select/VirtualList.js +0 -42
- package/lib/Select/hooks/useCacheOption.d.ts +0 -9
- package/lib/Select/hooks/useCacheOption.js +0 -113
- package/lib/Select/interface.d.ts +0 -235
- package/lib/Select/utils.d.ts +0 -21
- package/lib/Select/utils.js +0 -233
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
function MenuItem(data) {
|
|
21
|
+
var menuIcon = data.menuIcon,
|
|
22
|
+
content = data.content,
|
|
23
|
+
menuItemKey = data.menuItemKey,
|
|
24
|
+
path = data.path,
|
|
25
|
+
selectedKey = data.selectedKey,
|
|
26
|
+
_data$onMenuSelect = data.onMenuSelect,
|
|
27
|
+
onMenuSelect = _data$onMenuSelect === void 0 ? function () {} : _data$onMenuSelect;
|
|
28
|
+
var onMenuItemClick = (0, _react.useCallback)(function (menuInfo) {
|
|
29
|
+
if (menuInfo.key === selectedKey) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
onMenuSelect(menuInfo);
|
|
34
|
+
}, [onMenuSelect, selectedKey]);
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
className: (0, _classnames.default)('ald-nav-menu-item', {
|
|
37
|
+
'ald-nav-menu-item-selected': menuItemKey === selectedKey
|
|
38
|
+
}),
|
|
39
|
+
key: menuItemKey,
|
|
40
|
+
onClick: function onClick() {
|
|
41
|
+
return onMenuItemClick({
|
|
42
|
+
path: path,
|
|
43
|
+
key: menuItemKey
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
+
className: "ald-nav-menu-item-icon"
|
|
48
|
+
}, menuIcon), /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
className: "ald-nav-menu-item-content"
|
|
50
|
+
}, typeof content === 'string' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: "ald-nav-menu-item-content-text"
|
|
52
|
+
}, content) : content));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var _default = MenuItem;
|
|
56
|
+
exports.default = _default;
|
package/lib/Navigator/index.d.ts
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMenuItem } from './components/Menu';
|
|
3
|
-
|
|
3
|
+
declare function Navigator(props: INavigatorProps): JSX.Element;
|
|
4
4
|
export interface INavigatorProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description 应用logo
|
|
7
|
+
* @type {string}
|
|
8
|
+
* @default []
|
|
9
|
+
*/
|
|
10
|
+
logoSrc: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description 当前选中的应用
|
|
13
|
+
* @type {string}
|
|
14
|
+
* @default --
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @description 应用切换时调用
|
|
18
|
+
* @type {(appId: string) => void}
|
|
19
|
+
* @default --
|
|
20
|
+
*/
|
|
5
21
|
/**
|
|
6
22
|
* @description 菜单数据
|
|
7
23
|
* @default []
|
|
@@ -12,16 +28,10 @@ export interface INavigatorProps {
|
|
|
12
28
|
* @default --
|
|
13
29
|
*/
|
|
14
30
|
selectedKey: string;
|
|
15
|
-
/**
|
|
16
|
-
* @description logo的地址 默认高度为24px
|
|
17
|
-
* @default --
|
|
18
|
-
*/
|
|
19
|
-
logoSrc: string;
|
|
20
31
|
/**
|
|
21
32
|
* @description logo的点击(可选)
|
|
22
33
|
* @default --
|
|
23
34
|
*/
|
|
24
|
-
onLogoClick?: () => void;
|
|
25
35
|
/**
|
|
26
36
|
* @description 导航底部信息 可自定义
|
|
27
37
|
* @default null
|
|
@@ -36,5 +46,6 @@ export interface INavigatorProps {
|
|
|
36
46
|
path: string;
|
|
37
47
|
}) => void;
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
export type { IMenuItem } from './components/Menu';
|
|
50
|
+
export type { ISelectedMenuInfo } from './components/MenuItem';
|
|
40
51
|
export default Navigator;
|
package/lib/Navigator/index.js
CHANGED
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _Menu = _interopRequireDefault(require("./components/Menu"));
|
|
15
15
|
|
|
16
|
+
var _Header = _interopRequireDefault(require("./components/Header"));
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -20,12 +22,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
20
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
23
|
|
|
22
24
|
function Navigator(props) {
|
|
23
|
-
var
|
|
25
|
+
var logoSrc = props.logoSrc,
|
|
26
|
+
menuList = props.menuList,
|
|
24
27
|
selectedKey = props.selectedKey,
|
|
25
|
-
logoSrc = props.logoSrc,
|
|
26
28
|
_props$footer = props.footer,
|
|
27
29
|
footer = _props$footer === void 0 ? null : _props$footer,
|
|
28
|
-
onLogoClick = props.onLogoClick,
|
|
29
30
|
onMenuSelect = props.onMenuSelect;
|
|
30
31
|
var renderMenu = (0, _react.useCallback)(function () {
|
|
31
32
|
return /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
@@ -36,18 +37,9 @@ function Navigator(props) {
|
|
|
36
37
|
}, [selectedKey, menuList, onMenuSelect]);
|
|
37
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
39
|
className: (0, _classnames.default)('ald-nav')
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})
|
|
43
|
-
}, logoSrc && /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
-
onClick: onLogoClick,
|
|
45
|
-
className: "ald-nav-logo-wrap"
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
47
|
-
src: logoSrc,
|
|
48
|
-
alt: "",
|
|
49
|
-
draggable: false
|
|
50
|
-
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
41
|
+
logoSrc: logoSrc
|
|
42
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
43
|
className: (0, _classnames.default)('ald-nav-menu', {
|
|
52
44
|
'ald-nav-menu-has-footer': !!footer
|
|
53
45
|
})
|
|
Binary file
|
|
@@ -1,62 +1,54 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
@import '../../Icon/index.less';
|
|
3
3
|
|
|
4
|
-
/* stylelint-disable */
|
|
5
|
-
|
|
6
4
|
@ald-prefix: ant;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
font-weight: 500;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
font-style: normal;
|
|
12
|
-
line-height: 20px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.subTitle() {
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
font-style: normal;
|
|
19
|
-
line-height: 16px;
|
|
20
|
-
}
|
|
5
|
+
@header-height: 80px;
|
|
6
|
+
@footer-height: 88px;
|
|
21
7
|
|
|
22
8
|
.ald-nav {
|
|
23
9
|
display: flex;
|
|
24
10
|
flex-direction: column;
|
|
25
|
-
width:
|
|
11
|
+
width: 240px;
|
|
26
12
|
height: 100%;
|
|
27
13
|
overflow: hidden;
|
|
28
|
-
|
|
14
|
+
color: @ND0;
|
|
15
|
+
background-image: url('./bg.png');
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-size: cover;
|
|
29
18
|
user-select: none;
|
|
30
19
|
|
|
31
|
-
&-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
&-header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
height: @header-height;
|
|
24
|
+
padding: 0 24px;
|
|
25
|
+
background: @B20;
|
|
26
|
+
|
|
27
|
+
&-content {
|
|
28
|
+
display: flex;
|
|
29
|
+
width: 154px;
|
|
30
|
+
height: 40px;
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
.ald-nav-logo-img {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
object-fit: fill;
|
|
36
|
+
}
|
|
38
37
|
}
|
|
39
|
-
}
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
&-select {
|
|
40
|
+
display: none;
|
|
41
|
+
width: 24px;
|
|
42
|
+
height: 24px;
|
|
43
|
+
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
&-menu {
|
|
46
47
|
flex: 1;
|
|
48
|
+
padding: 24px 12px;
|
|
47
49
|
overflow-x: hidden;
|
|
48
50
|
overflow-y: auto;
|
|
49
51
|
|
|
50
|
-
.ant-menu-sub.ant-menu-inline {
|
|
51
|
-
background-color: unset;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.anticon.ant-menu-item-icon {
|
|
55
|
-
width: 20px !important;
|
|
56
|
-
height: 20px !important;
|
|
57
|
-
font-size: 20px !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
52
|
&::-webkit-scrollbar-thumb {
|
|
61
53
|
background: @ND90;
|
|
62
54
|
background-clip: padding-box;
|
|
@@ -70,153 +62,77 @@
|
|
|
70
62
|
background-color: transparent;
|
|
71
63
|
}
|
|
72
64
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
.ald-nav-group {
|
|
66
|
+
&-title {
|
|
67
|
+
height: 48px;
|
|
68
|
+
margin-top: 12px;
|
|
69
|
+
padding: 0 12px;
|
|
70
|
+
.textStyle(@BG60, 14px, 48px, 400, normal);
|
|
71
|
+
}
|
|
77
72
|
}
|
|
78
73
|
|
|
79
|
-
.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
74
|
+
.ald-nav-menu-item {
|
|
75
|
+
position: relative;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
height: 48px;
|
|
79
|
+
margin-bottom: 4px;
|
|
80
|
+
padding: 0 12px;
|
|
81
|
+
line-height: 48px;
|
|
82
|
+
border-radius: 8px;
|
|
83
|
+
|
|
84
|
+
&::before {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
display: block;
|
|
89
|
+
width: 0%;
|
|
90
|
+
height: inherit;
|
|
91
|
+
background: @ND80;
|
|
92
|
+
border-radius: inherit;
|
|
93
|
+
content: '';
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
&-icon {
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
margin-right: 12px;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.subTitle();
|
|
109
|
-
|
|
110
|
-
&:hover {
|
|
111
|
-
color: @ND30 !important;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&.ant-menu-item-selected {
|
|
115
|
-
font-weight: 500;
|
|
104
|
+
&-content {
|
|
105
|
+
position: relative;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
flex: 1;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
.textStyle(@B95, 16px, 24px, 400, normal);
|
|
116
110
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
111
|
+
&-text {
|
|
112
|
+
white-space: nowrap;
|
|
120
113
|
}
|
|
121
114
|
}
|
|
122
115
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
border-radius: 8px;
|
|
127
|
-
.supTitle();
|
|
128
|
-
|
|
129
|
-
::before {
|
|
130
|
-
position: absolute;
|
|
131
|
-
top: 0;
|
|
132
|
-
left: -12px;
|
|
133
|
-
width: 4px;
|
|
134
|
-
height: 100%;
|
|
135
|
-
background: transparent;
|
|
136
|
-
border-radius: 1px;
|
|
137
|
-
transition: all 0.3s;
|
|
138
|
-
content: '';
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&-selected {
|
|
142
|
-
position: relative;
|
|
143
|
-
overflow: unset;
|
|
144
|
-
color: @ND0;
|
|
145
|
-
background-color: @BBG20 !important;
|
|
146
|
-
|
|
147
|
-
::before {
|
|
148
|
-
background: @B40;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&::after {
|
|
153
|
-
display: none !important;
|
|
154
|
-
}
|
|
116
|
+
&:hover {
|
|
117
|
+
background-color: @ND90;
|
|
118
|
+
cursor: pointer;
|
|
155
119
|
}
|
|
156
120
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.ant-menu-submenu-title {
|
|
161
|
-
height: 40px;
|
|
162
|
-
padding: 0 12px !important;
|
|
163
|
-
line-height: 40px;
|
|
164
|
-
.supTitle();
|
|
165
|
-
|
|
166
|
-
&:hover {
|
|
167
|
-
color: @ND0;
|
|
168
|
-
cursor: default;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&-selected {
|
|
173
|
-
color: @ND0;
|
|
121
|
+
&.ald-nav-menu-item-selected {
|
|
122
|
+
.ald-nav-menu-item-content {
|
|
123
|
+
.textStyle(@ND0, 16px, 24px, 400, normal);
|
|
174
124
|
}
|
|
175
125
|
|
|
176
|
-
|
|
177
|
-
|
|
126
|
+
&::before {
|
|
127
|
+
animation: 0.26s linear 0s hoverBgChange;
|
|
128
|
+
animation-fill-mode: forwards;
|
|
178
129
|
}
|
|
179
130
|
}
|
|
180
|
-
|
|
181
|
-
// 修改icon和文字的margin
|
|
182
|
-
.ant-menu-item .ant-menu-item-icon + span,
|
|
183
|
-
.ant-menu-submenu-title .ant-menu-item-icon + span,
|
|
184
|
-
.ant-menu-item .anticon + span,
|
|
185
|
-
.ant-menu-submenu-title .anticon + span {
|
|
186
|
-
margin-left: 12px;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// 取消item点击时的高亮背景色
|
|
190
|
-
.ant-menu-item:active,
|
|
191
|
-
.ant-menu-submenu-title:active {
|
|
192
|
-
background: unset;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.ant-menu-inline .ant-menu-item,
|
|
196
|
-
.ant-menu-inline .ant-menu-submenu-title {
|
|
197
|
-
width: 100% !important;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// 删除右侧的高亮
|
|
201
|
-
.ant-menu-vertical .ant-menu-item::after,
|
|
202
|
-
.ant-menu-vertical-left .ant-menu-item::after,
|
|
203
|
-
.ant-menu-vertical-right .ant-menu-item::after,
|
|
204
|
-
.ant-menu-inline .ant-menu-item::after {
|
|
205
|
-
display: none;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.ant-menu-light .ant-menu-item:hover,
|
|
210
|
-
.ant-menu-light .ant-menu-item-active,
|
|
211
|
-
.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
|
|
212
|
-
.ant-menu-light .ant-menu-submenu-active,
|
|
213
|
-
.ant-menu-light .ant-menu-submenu-title:hover {
|
|
214
|
-
color: unset;
|
|
215
131
|
}
|
|
216
132
|
}
|
|
217
133
|
|
|
218
134
|
&-footer {
|
|
219
|
-
height:
|
|
135
|
+
height: 88px;
|
|
220
136
|
|
|
221
137
|
&-wrap {
|
|
222
138
|
height: 100%;
|
|
@@ -224,3 +140,20 @@
|
|
|
224
140
|
}
|
|
225
141
|
}
|
|
226
142
|
}
|
|
143
|
+
|
|
144
|
+
@keyframes hoverBgChange {
|
|
145
|
+
0% {
|
|
146
|
+
width: 0%;
|
|
147
|
+
background-color: @ND80;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
90% {
|
|
151
|
+
width: 100%;
|
|
152
|
+
background-color: @ND80;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
100% {
|
|
156
|
+
width: 100%;
|
|
157
|
+
background-color: @B40;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/popover/style");
|
|
9
|
+
|
|
10
|
+
var _popover = _interopRequireDefault(require("antd/es/popover"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["overlayClassName", "children"];
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
+
|
|
22
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
+
|
|
24
|
+
function Popover(props) {
|
|
25
|
+
var overlayClassName = props.overlayClassName,
|
|
26
|
+
children = props.children,
|
|
27
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
28
|
+
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_popover.default, Object.assign({
|
|
30
|
+
overlayClassName: (0, _classnames.default)('ald-popover', overlayClassName)
|
|
31
|
+
}, restProps), children);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var _default = Popover;
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
|
|
3
|
+
.ald-popover {
|
|
4
|
+
.ant-popover-arrow {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ant-popover-title {
|
|
9
|
+
min-width: 312px;
|
|
10
|
+
height: 24px;
|
|
11
|
+
min-height: 24px;
|
|
12
|
+
padding: 0;
|
|
13
|
+
color: @NL0;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-family: 'PingFang SC', sans-serif;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
border-bottom-width: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-popover-inner-content {
|
|
23
|
+
min-height: 112px;
|
|
24
|
+
padding: 24px 0 0;
|
|
25
|
+
color: @NL0;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-family: 'PingFang SC', sans-serif;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
line-height: 20px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-popover-inner {
|
|
34
|
+
padding: 16px 24px;
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
}
|
|
37
|
+
}
|
package/lib/Radio/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Radio
|
|
2
|
-
export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupContextProps, RadioChangeEventTarget, } from 'antd/lib/radio';
|
|
3
|
-
export { RadioProps, RadioChangeEvent, RadioGroupProps };
|
|
1
|
+
import { Radio } from 'antd';
|
|
2
|
+
export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupProps, RadioGroupContextProps, RadioProps, RadioChangeEventTarget, RadioChangeEvent, } from 'antd/lib/radio';
|
|
4
3
|
export default Radio;
|
package/lib/Select/index.d.ts
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { SelectProps as RcSelectProps } from './rc-select';
|
|
2
|
+
import { BaseSelectRef, OptGroup, Option } from './rc-select';
|
|
3
|
+
import { OptionProps } from './rc-select/Option';
|
|
4
|
+
import type { BaseOptionType, DefaultOptionType } from './rc-select/Select';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import type { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
7
|
+
import { SelectCommonPlacement } from 'antd/lib/_util/motion';
|
|
8
|
+
import type { InputStatus } from 'antd/lib/_util/statusUtils';
|
|
9
|
+
declare type RawValue = string | number;
|
|
10
|
+
export type { OptionProps, BaseSelectRef as RefSelectProps, BaseOptionType, DefaultOptionType };
|
|
11
|
+
export interface LabeledValue {
|
|
12
|
+
key?: string;
|
|
13
|
+
value: RawValue;
|
|
14
|
+
label: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
17
|
+
export declare type SelectType = SizeType | 'mini';
|
|
18
|
+
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
|
|
19
|
+
suffixIcon?: React.ReactNode;
|
|
20
|
+
size?: SelectType;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
23
|
+
bordered?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface SelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement'> {
|
|
26
|
+
placement?: SelectCommonPlacement;
|
|
27
|
+
mode?: 'multiple' | 'tags';
|
|
28
|
+
status?: InputStatus;
|
|
29
|
+
}
|
|
30
|
+
declare const Select: (<ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
} & {
|
|
33
|
+
ref?: ((instance: BaseSelectRef | null) => void) | React.RefObject<BaseSelectRef> | null | undefined;
|
|
34
|
+
}) => React.ReactElement) & {
|
|
35
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
36
|
+
Option: typeof Option;
|
|
37
|
+
OptGroup: typeof OptGroup;
|
|
8
38
|
};
|
|
9
|
-
declare const Select: TSelect;
|
|
10
|
-
export { Options as Option, OptGroup as Group, SelectProps, OptionProps, Option as SelectOptions, OptGroupProps as GroupProps, };
|
|
11
39
|
export default Select;
|