@aloudata/aloudata-design 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Avatar/index.d.ts +15 -0
- package/es/Avatar/index.js +33 -0
- package/es/Avatar/style/index.d.ts +2 -0
- package/es/Avatar/style/index.js +2 -0
- package/es/Avatar/style/index.less +34 -0
- package/es/Breadcrumb/index.d.ts +8 -0
- package/es/Breadcrumb/index.js +36 -0
- package/es/Breadcrumb/style/index.d.ts +2 -0
- package/es/Breadcrumb/style/index.js +2 -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/style/index.less +35 -1
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Dropdown/style/index.less +41 -8
- package/es/Empty/image/Authority.d.ts +3 -0
- package/es/Empty/image/Authority.js +360 -0
- package/es/Empty/image/Dataspace.d.ts +3 -0
- package/es/Empty/image/Dataspace.js +271 -0
- package/es/Empty/image/Search.d.ts +3 -0
- package/es/Empty/image/Search.js +156 -0
- package/es/Empty/image/Simple.d.ts +3 -0
- package/es/Empty/image/Simple.js +20 -0
- package/es/Empty/image/Worksheet.d.ts +3 -0
- package/es/Empty/image/Worksheet.js +270 -0
- package/es/Empty/image/empty.d.ts +3 -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 -2
- 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 +4 -0
- package/es/InputNumber/index.js +32 -0
- package/es/InputNumber/style/index.d.ts +2 -0
- package/es/InputNumber/style/index.js +2 -0
- package/es/InputNumber/style/index.less +224 -0
- package/es/Menu/Divider.d.ts +2 -1
- 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 +9 -0
- package/es/Navigator/components/Header/index.js +18 -0
- package/es/Navigator/components/Menu/index.d.ts +7 -13
- package/es/Navigator/components/Menu/index.js +26 -162
- 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 +105 -174
- package/es/Popover/index.d.ts +5 -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 +15 -2
- package/es/index.js +8 -1
- 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/Avatar/style/index.js +5 -0
- package/lib/Avatar/style/index.less +34 -0
- package/lib/Breadcrumb/index.d.ts +8 -0
- package/lib/Breadcrumb/index.js +50 -0
- package/lib/Breadcrumb/style/index.d.ts +2 -0
- package/lib/Breadcrumb/style/index.js +5 -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/style/index.less +35 -1
- package/lib/ConfigProvider/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +26 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Dropdown/style/index.less +41 -8
- package/lib/Empty/image/Authority.d.ts +3 -0
- package/lib/Empty/image/Authority.js +374 -0
- package/lib/Empty/image/Dataspace.d.ts +3 -0
- package/lib/Empty/image/Dataspace.js +285 -0
- package/lib/Empty/image/Search.d.ts +3 -0
- package/lib/Empty/image/Search.js +170 -0
- package/lib/Empty/image/Simple.d.ts +3 -0
- package/lib/Empty/image/Simple.js +34 -0
- package/lib/Empty/image/Worksheet.d.ts +3 -0
- package/lib/Empty/image/Worksheet.js +284 -0
- package/lib/Empty/image/empty.d.ts +3 -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 -2
- 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 +4 -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 -1
- 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 +9 -0
- package/lib/Navigator/components/Header/index.js +28 -0
- package/lib/Navigator/components/Menu/index.d.ts +7 -13
- package/lib/Navigator/components/Menu/index.js +25 -162
- 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 +105 -174
- package/lib/Popover/index.d.ts +5 -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 +15 -2
- package/lib/index.js +56 -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 +3 -2
- 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
|
@@ -1,25 +1,63 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
3
|
@import '../../Icon/index.less';
|
|
3
4
|
|
|
4
5
|
@ald-prefix: ant;
|
|
5
6
|
|
|
6
7
|
@ald-iconfont-css-prefix: anticon;
|
|
8
|
+
// size===large
|
|
9
|
+
@Input-height-large: 36px;
|
|
10
|
+
@Input-padding-large: 5px 11px;
|
|
11
|
+
@Input-fontSize-large: 16px;
|
|
12
|
+
@Input-borderRadius-large: 8px;
|
|
13
|
+
@input-prefix-marginRight-large: 8px;
|
|
14
|
+
// size===middle
|
|
15
|
+
@Input-height-middle: 32px;
|
|
16
|
+
@Input-padding-middle: 5px 11px;
|
|
17
|
+
@Input-fontSize-middle: 14px;
|
|
18
|
+
@Input-borderRadius-middle: 6px;
|
|
19
|
+
@input-prefix-marginRight-middle: 8px;
|
|
20
|
+
// size===small
|
|
21
|
+
@Input-height-small: 28px;
|
|
22
|
+
@Input-padding-small: 5px 7px;
|
|
23
|
+
@Input-fontSize-small: 12px;
|
|
24
|
+
@Input-borderRadius-small: 4px;
|
|
25
|
+
@input-prefix-marginRight-small: 4px;
|
|
26
|
+
// size===mini
|
|
27
|
+
@Input-height-mini: 24px;
|
|
28
|
+
@Input-padding-mini: 3px 7px;
|
|
29
|
+
@Input-fontSize-mini: 12px;
|
|
30
|
+
@Input-borderRadius-mini: 4px;
|
|
31
|
+
@input-prefix-marginRight-mini: 4px;
|
|
32
|
+
//custom status
|
|
33
|
+
@Input-borderColor: @NL90;
|
|
34
|
+
@Input-fontColor: @NL0;
|
|
35
|
+
@Input-placeholderColor: @NL80;
|
|
36
|
+
@Input-prefix-color: @NL50;
|
|
37
|
+
@Input-bgColor: @BG97;
|
|
38
|
+
// active status
|
|
39
|
+
@Input-active-borderColor: @B60;
|
|
40
|
+
@Input-boxShadow-active: 0 0 0 0.5px @B60;
|
|
41
|
+
// disabled status
|
|
42
|
+
@Input-disabled-borderColor: @NL90;
|
|
43
|
+
@Input-disabled-bgColor: @BG95;
|
|
44
|
+
@Input-disabled-fontColor: @NL60;
|
|
7
45
|
|
|
8
|
-
.ant-input {
|
|
9
|
-
height: 28px;
|
|
46
|
+
.ant-input.ald-input {
|
|
10
47
|
color: @NL0;
|
|
11
|
-
font-
|
|
12
|
-
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
background-color: @Input-bgColor;
|
|
50
|
+
border-color: @Input-borderColor;
|
|
51
|
+
border-radius: @Input-borderRadius-middle;
|
|
52
|
+
caret-color: @B60;
|
|
13
53
|
|
|
14
54
|
&::placeholder {
|
|
15
|
-
color: @
|
|
55
|
+
color: @Input-placeholderColor;
|
|
16
56
|
}
|
|
17
57
|
|
|
18
58
|
&-prefix {
|
|
19
|
-
color: @
|
|
20
|
-
font-
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
line-height: 16px;
|
|
59
|
+
color: @Input-prefix-color;
|
|
60
|
+
font-size: inherit;
|
|
23
61
|
}
|
|
24
62
|
|
|
25
63
|
&-suffix {
|
|
@@ -27,36 +65,28 @@
|
|
|
27
65
|
}
|
|
28
66
|
|
|
29
67
|
&:focus,
|
|
68
|
+
&:hover,
|
|
30
69
|
&-focused {
|
|
31
|
-
border-color: @
|
|
32
|
-
box-shadow:
|
|
70
|
+
border-color: @Input-active-borderColor;
|
|
71
|
+
box-shadow: @Input-boxShadow-active;
|
|
33
72
|
}
|
|
34
73
|
|
|
35
|
-
&[disabled] {
|
|
36
|
-
color: @
|
|
37
|
-
background-color: @
|
|
38
|
-
border-color: @
|
|
74
|
+
&[disabled].ald-input {
|
|
75
|
+
color: @Input-disabled-fontColor;
|
|
76
|
+
background-color: @Input-disabled-bgColor;
|
|
77
|
+
border-color: @Input-disabled-borderColor;
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
cursor: default;
|
|
39
80
|
|
|
40
81
|
&::placeholder {
|
|
41
|
-
color: @
|
|
82
|
+
color: @Input-placeholderColor;
|
|
42
83
|
}
|
|
43
84
|
}
|
|
44
85
|
|
|
45
|
-
&-sm {
|
|
46
|
-
height: 24px;
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
border-radius: @ald-border-radius-sm;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-lg {
|
|
52
|
-
height: 32px;
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
86
|
&-affix-wrapper {
|
|
57
|
-
height: 28px;
|
|
58
|
-
padding: 0 12px;
|
|
59
|
-
border-radius: @
|
|
87
|
+
// height: 28px;
|
|
88
|
+
// padding: 0 12px;
|
|
89
|
+
// border-radius: @border-radius-base;
|
|
60
90
|
|
|
61
91
|
&-hover,
|
|
62
92
|
&-focused,
|
|
@@ -67,31 +97,236 @@
|
|
|
67
97
|
.ant-input {
|
|
68
98
|
height: 100%;
|
|
69
99
|
border-radius: 0;
|
|
70
|
-
caret-color: @B40;
|
|
71
100
|
}
|
|
72
101
|
}
|
|
102
|
+
|
|
103
|
+
.ant-input {
|
|
104
|
+
font-size: inherit;
|
|
105
|
+
}
|
|
73
106
|
}
|
|
74
107
|
|
|
75
108
|
.ant-input-affix-wrapper.ant-input-affix-wrapper {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
109
|
+
background-color: @Input-bgColor;
|
|
110
|
+
border-color: @Input-borderColor;
|
|
111
|
+
|
|
112
|
+
&:hover,
|
|
113
|
+
&:focus,
|
|
114
|
+
&-focused {
|
|
115
|
+
border-color: @Input-active-borderColor;
|
|
116
|
+
box-shadow: @Input-boxShadow-active;
|
|
80
117
|
}
|
|
81
118
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-radius:
|
|
119
|
+
.ant-input {
|
|
120
|
+
color: @NL0;
|
|
121
|
+
background-color: @Input-bgColor;
|
|
122
|
+
border-radius: 0;
|
|
123
|
+
caret-color: @B60;
|
|
86
124
|
|
|
87
|
-
|
|
88
|
-
|
|
125
|
+
&::placeholder {
|
|
126
|
+
color: @Input-placeholderColor;
|
|
89
127
|
}
|
|
90
128
|
}
|
|
91
129
|
|
|
130
|
+
.ald-input {
|
|
131
|
+
height: 1.5715em; //和行高一致
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ald-input-showCount {
|
|
135
|
+
border: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ant-input-prefix {
|
|
140
|
+
color: @NL50;
|
|
141
|
+
}
|
|
142
|
+
|
|
92
143
|
.ant-input-suffix {
|
|
93
|
-
.
|
|
94
|
-
|
|
144
|
+
.ant-input-clear-icon {
|
|
145
|
+
color: @NL50;
|
|
146
|
+
font-size: inherit;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ant-input-password-icon {
|
|
150
|
+
color: @NL50;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ant-input-affix-wrapper-focused {
|
|
156
|
+
&.ant-input-password {
|
|
157
|
+
border-color: @Input-active-borderColor;
|
|
158
|
+
box-shadow: @Input-boxShadow-active;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:hover {
|
|
162
|
+
border-color: @Input-active-borderColor;
|
|
163
|
+
box-shadow: @Input-boxShadow-active;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ald-input {
|
|
168
|
+
&.ald-input-mini {
|
|
169
|
+
height: @Input-height-mini;
|
|
170
|
+
padding: @Input-padding-mini;
|
|
171
|
+
font-size: @Input-fontSize-mini;
|
|
172
|
+
border-radius: @Input-borderRadius-mini;
|
|
173
|
+
|
|
174
|
+
.ant-input-prefix {
|
|
175
|
+
margin-right: @input-prefix-marginRight-mini;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.ald-input-small {
|
|
180
|
+
height: @Input-height-small;
|
|
181
|
+
padding: @Input-padding-small;
|
|
182
|
+
font-size: @Input-fontSize-small;
|
|
183
|
+
border-radius: @Input-borderRadius-small;
|
|
184
|
+
|
|
185
|
+
.ant-input-prefix {
|
|
186
|
+
margin-right: @input-prefix-marginRight-small;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.ald-input-middle {
|
|
191
|
+
height: @Input-height-middle;
|
|
192
|
+
padding: @Input-padding-middle;
|
|
193
|
+
font-size: @Input-fontSize-middle;
|
|
194
|
+
border-radius: @Input-borderRadius-middle;
|
|
195
|
+
|
|
196
|
+
.ant-input-prefix {
|
|
197
|
+
margin-right: @input-prefix-marginRight-middle;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&.ald-input-large {
|
|
202
|
+
height: @Input-height-large;
|
|
203
|
+
padding: @Input-padding-large;
|
|
204
|
+
font-size: @Input-fontSize-large;
|
|
205
|
+
border-radius: @Input-borderRadius-large;
|
|
206
|
+
|
|
207
|
+
.ant-input-prefix {
|
|
208
|
+
margin-right: @input-prefix-marginRight-large;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ald-input-group {
|
|
214
|
+
.ald-input {
|
|
215
|
+
margin: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ald-input-group-large {
|
|
220
|
+
.ald-input {
|
|
221
|
+
height: @Input-height-large;
|
|
222
|
+
padding: @Input-padding-large;
|
|
223
|
+
font-size: @Input-fontSize-large;
|
|
224
|
+
|
|
225
|
+
&.ant-input {
|
|
226
|
+
border-radius: @Input-borderRadius-large;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ant-input-prefix {
|
|
230
|
+
margin-right: @input-prefix-marginRight-large;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.ant-input-group-compact {
|
|
235
|
+
.ald-input {
|
|
236
|
+
&:first-of-type {
|
|
237
|
+
border-radius: @Input-borderRadius-large 0 0 @Input-borderRadius-large;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&:last-of-type {
|
|
241
|
+
border-radius: 0 @Input-borderRadius-large @Input-borderRadius-large 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.ald-input-group-middle {
|
|
248
|
+
.ald-input {
|
|
249
|
+
height: @Input-height-middle;
|
|
250
|
+
padding: @Input-padding-middle;
|
|
251
|
+
font-size: @Input-fontSize-middle;
|
|
252
|
+
border-radius: @Input-borderRadius-middle;
|
|
253
|
+
|
|
254
|
+
&.ant-input {
|
|
255
|
+
border-radius: @Input-borderRadius-middle;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.ant-input-prefix {
|
|
259
|
+
margin-right: @input-prefix-marginRight-middle;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&.ant-input-group-compact {
|
|
264
|
+
.ald-input {
|
|
265
|
+
&:first-of-type {
|
|
266
|
+
border-radius: @Input-borderRadius-middle 0 0 @Input-borderRadius-middle;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:last-of-type {
|
|
270
|
+
border-radius: 0 @Input-borderRadius-middle @Input-borderRadius-middle 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ald-input-group-small {
|
|
277
|
+
.ald-input {
|
|
278
|
+
height: @Input-height-small;
|
|
279
|
+
padding: @Input-padding-small;
|
|
280
|
+
font-size: @Input-fontSize-small;
|
|
281
|
+
border-radius: @Input-borderRadius-small;
|
|
282
|
+
|
|
283
|
+
&.ant-input {
|
|
284
|
+
border-radius: @Input-borderRadius-small;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.ant-input-prefix {
|
|
288
|
+
margin-right: @input-prefix-marginRight-small;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.ant-input-group-compact {
|
|
293
|
+
.ald-input {
|
|
294
|
+
&:first-of-type {
|
|
295
|
+
border-radius: @Input-borderRadius-small 0 0 @Input-borderRadius-small;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&:last-of-type {
|
|
299
|
+
border-radius: 0 @Input-borderRadius-small @Input-borderRadius-small 0;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.ald-input-group-mini {
|
|
306
|
+
.ald-input {
|
|
307
|
+
height: @Input-height-mini;
|
|
308
|
+
padding: @Input-padding-mini;
|
|
309
|
+
font-size: @Input-fontSize-mini;
|
|
310
|
+
border-radius: @Input-borderRadius-mini;
|
|
311
|
+
|
|
312
|
+
&.ant-input {
|
|
313
|
+
border-radius: @Input-borderRadius-mini;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ant-input-prefix {
|
|
317
|
+
margin-right: @input-prefix-marginRight-mini;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.ant-input-group-compact {
|
|
322
|
+
.ald-input {
|
|
323
|
+
&:first-of-type {
|
|
324
|
+
border-radius: @Input-borderRadius-mini 0 0 @Input-borderRadius-mini;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&:last-of-type {
|
|
328
|
+
border-radius: 0 @Input-borderRadius-mini @Input-borderRadius-mini 0;
|
|
329
|
+
}
|
|
95
330
|
}
|
|
96
331
|
}
|
|
97
332
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "antd/es/input-number/style";
|
|
2
|
+
import _InputNumber from "antd/es/input-number";
|
|
3
|
+
var _excluded = ["className", "disabled", "size"];
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import classnames from 'classnames';
|
|
13
|
+
export default function InputNumber(props) {
|
|
14
|
+
var className = props.className,
|
|
15
|
+
disabled = props.disabled,
|
|
16
|
+
size = props.size,
|
|
17
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
18
|
+
|
|
19
|
+
var getClassName = function getClassName() {
|
|
20
|
+
var _classnames;
|
|
21
|
+
|
|
22
|
+
return classnames(className, 'ald-inputNumber', (_classnames = {
|
|
23
|
+
'ald-inputNumber-disabled': disabled
|
|
24
|
+
}, _defineProperty(_classnames, "ald-inputNumber-large", size === 'large'), _defineProperty(_classnames, "ald-inputNumber-small", size === 'small'), _defineProperty(_classnames, "ald-inputNumber-middle", size !== 'large' && size !== 'small'), _classnames));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/React.createElement(_InputNumber, Object.assign({}, rest, {
|
|
28
|
+
disabled: disabled,
|
|
29
|
+
size: size,
|
|
30
|
+
className: getClassName()
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
2
|
+
@import '../../style/index.less';
|
|
3
|
+
|
|
4
|
+
@InputNumber-height-large: 36px;
|
|
5
|
+
@InputNumber-fontSize-large: 16px;
|
|
6
|
+
@InputNumber-borderRadius-large: 8px;
|
|
7
|
+
|
|
8
|
+
@InputNumber-height-middle: 32px;
|
|
9
|
+
@InputNumber-fontSize-middle: 14px;
|
|
10
|
+
@InputNumber-borderRadius-middle: 6px;
|
|
11
|
+
|
|
12
|
+
@InputNumber-height-small: 28px;
|
|
13
|
+
@InputNumber-fontSize-small: 12px;
|
|
14
|
+
@InputNumber-borderRadius-small: 4px;
|
|
15
|
+
//默认
|
|
16
|
+
@InputNumber-bgColor: @BG97;
|
|
17
|
+
@InputNumber-borderColor: @NL90;
|
|
18
|
+
@InputNumber-color: @NL0;
|
|
19
|
+
@InputNumber-wrapper-bgColor: @BG95;
|
|
20
|
+
//激活
|
|
21
|
+
@InputNumber-active-bgColor: @BG97;
|
|
22
|
+
@InputNumber-active-borderColor: @B60;
|
|
23
|
+
|
|
24
|
+
//disable
|
|
25
|
+
@InputNumber-disabled-bgColor: @BG95;
|
|
26
|
+
@InputNumber-disabled-borderColor: @NL90;
|
|
27
|
+
@InputNumber-disabled-color: @NL60;
|
|
28
|
+
//光标颜色
|
|
29
|
+
@InputNumber-cursor-color: @B60;
|
|
30
|
+
|
|
31
|
+
//前后填充
|
|
32
|
+
@InputNumber-addon-bgColor: @BG95;
|
|
33
|
+
@InputNumber-addon-color: @NL30;
|
|
34
|
+
@InputNumber-addon-borderColor: @NL90;
|
|
35
|
+
@InputNumber-addon-disable-color: @NL60;
|
|
36
|
+
|
|
37
|
+
.ald-inputNumber {
|
|
38
|
+
&.ant-input-number {
|
|
39
|
+
height: @InputNumber-height-middle;
|
|
40
|
+
// overflow: hidden;
|
|
41
|
+
color: @InputNumber-color;
|
|
42
|
+
font-size: @InputNumber-fontSize-middle;
|
|
43
|
+
background-color: @InputNumber-bgColor;
|
|
44
|
+
border-color: @InputNumber-borderColor;
|
|
45
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
46
|
+
box-shadow: none;
|
|
47
|
+
|
|
48
|
+
.ant-input-number-input-wrap {
|
|
49
|
+
height: 100%;
|
|
50
|
+
|
|
51
|
+
.ant-input-number-input {
|
|
52
|
+
height: 100%;
|
|
53
|
+
caret-color: @InputNumber-cursor-color;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ant-input-number-handler-wrap {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
|
|
60
|
+
.ant-input-number-handler {
|
|
61
|
+
background-color: @BG95;
|
|
62
|
+
|
|
63
|
+
.ant-input-number-handler-up-inner,
|
|
64
|
+
.ant-input-number-handler-down-inner {
|
|
65
|
+
color: @NL50;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: @NL95;
|
|
71
|
+
|
|
72
|
+
.ant-input-number-handler-up-inner,
|
|
73
|
+
.ant-input-number-handler-down-inner {
|
|
74
|
+
color: @B60;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.ald-inputNumber-large {
|
|
81
|
+
height: @InputNumber-height-large;
|
|
82
|
+
font-size: @InputNumber-fontSize-large;
|
|
83
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
84
|
+
|
|
85
|
+
.ant-input-number-handler-wrap {
|
|
86
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.ald-inputNumber-middle {
|
|
91
|
+
height: @InputNumber-height-middle;
|
|
92
|
+
font-size: @InputNumber-fontSize-middle;
|
|
93
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
94
|
+
|
|
95
|
+
.ant-input-number-handler-wrap {
|
|
96
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.ald-inputNumber-small {
|
|
101
|
+
height: @InputNumber-height-small;
|
|
102
|
+
font-size: @InputNumber-fontSize-small;
|
|
103
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
104
|
+
|
|
105
|
+
.ant-input-number-handler-wrap {
|
|
106
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-disabled {
|
|
111
|
+
color: @InputNumber-disabled-color;
|
|
112
|
+
background-color: @InputNumber-disabled-bgColor;
|
|
113
|
+
border-color: @InputNumber-disabled-borderColor;
|
|
114
|
+
cursor: initial;
|
|
115
|
+
|
|
116
|
+
.ant-input-number-input-wrap .ant-input-number-input {
|
|
117
|
+
cursor: initial;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:hover:not(.ald-inputNumber-disabled),
|
|
122
|
+
&-focused {
|
|
123
|
+
background-color: @InputNumber-active-bgColor;
|
|
124
|
+
border-color: @InputNumber-active-borderColor;
|
|
125
|
+
box-shadow: 0 0 0 0.5px @InputNumber-active-borderColor;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.ant-input-number-group-wrapper {
|
|
130
|
+
// height: @InputNumber-height-middle;
|
|
131
|
+
// overflow: hidden;
|
|
132
|
+
color: @InputNumber-color;
|
|
133
|
+
// background-color: @InputNumber-wrapper-bgColor;
|
|
134
|
+
border-color: @InputNumber-borderColor;
|
|
135
|
+
box-shadow: none;
|
|
136
|
+
|
|
137
|
+
&.ald-inputNumber-large {
|
|
138
|
+
font-size: @InputNumber-fontSize-large;
|
|
139
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
140
|
+
|
|
141
|
+
.ant-input-number-group-addon {
|
|
142
|
+
&:first-child {
|
|
143
|
+
border-radius: @InputNumber-borderRadius-large 0 0 @InputNumber-borderRadius-large;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.ald-inputNumber-middle {
|
|
153
|
+
font-size: @InputNumber-fontSize-middle;
|
|
154
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
155
|
+
|
|
156
|
+
.ant-input-number-group-addon {
|
|
157
|
+
&:first-child {
|
|
158
|
+
border-radius: @InputNumber-borderRadius-middle 0 0 @InputNumber-borderRadius-middle;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:last-child {
|
|
162
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.ald-inputNumber-small {
|
|
168
|
+
font-size: @InputNumber-fontSize-small;
|
|
169
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
170
|
+
|
|
171
|
+
.ant-input-number-group-addon {
|
|
172
|
+
&:first-child {
|
|
173
|
+
border-radius: @InputNumber-borderRadius-small 0 0 @InputNumber-borderRadius-small;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:last-child {
|
|
177
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ant-input-number-wrapper {
|
|
183
|
+
height: 100%;
|
|
184
|
+
// overflow: hidden;
|
|
185
|
+
font-size: inherit;
|
|
186
|
+
|
|
187
|
+
.ant-input-number-group-addon {
|
|
188
|
+
// overflow: hidden;
|
|
189
|
+
color: @InputNumber-addon-color;
|
|
190
|
+
font-size: inherit;
|
|
191
|
+
background-color: @InputNumber-addon-bgColor;
|
|
192
|
+
// border-radius: @InputNumber-borderRadius-middle;
|
|
193
|
+
border-color: @InputNumber-addon-borderColor;
|
|
194
|
+
|
|
195
|
+
&:first-child {
|
|
196
|
+
border-top-right-radius: 0;
|
|
197
|
+
border-bottom-right-radius: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:last-child {
|
|
201
|
+
border-top-left-radius: 0;
|
|
202
|
+
border-bottom-left-radius: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ald-inputNumber {
|
|
207
|
+
position: relative;
|
|
208
|
+
z-index: 2;
|
|
209
|
+
margin: 0;
|
|
210
|
+
padding: 0;
|
|
211
|
+
|
|
212
|
+
.ant-input-number-handler-wrap {
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.ald-inputNumber-disabled {
|
|
219
|
+
.ant-input-number-wrapper .ant-input-number-group-addon {
|
|
220
|
+
color: @InputNumber-addon-disable-color;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
package/es/Menu/Divider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { MenuDividerProps } from 'antd/lib/menu/MenuDivider';
|
|
3
|
+
export interface IMenuDividerProps extends MenuDividerProps {
|
|
3
4
|
}
|
|
4
5
|
export default function Menu(props: IMenuDividerProps): JSX.Element;
|
package/es/Menu/MenuItem.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MenuItemProps } from 'antd/lib/menu/MenuItem';
|
|
2
3
|
import { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
3
|
-
export interface IMenuItemProps {
|
|
4
|
+
export interface IMenuItemProps extends MenuItemProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 唯一标志
|
|
6
7
|
* @type string | number
|
package/es/Menu/SubMenu.d.ts
CHANGED
package/es/Menu/SubMenu.js
CHANGED
|
@@ -13,7 +13,7 @@ export default function SubMenu(props) {
|
|
|
13
13
|
var popupClassName = props.popupClassName,
|
|
14
14
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
15
15
|
|
|
16
|
-
var OFFSET_WIDTH =
|
|
16
|
+
var OFFSET_WIDTH = 8;
|
|
17
17
|
var OFFSET_HEIGHT = 0;
|
|
18
18
|
return /*#__PURE__*/React.createElement(AntdSubMenu, Object.assign({
|
|
19
19
|
popupClassName: classNames(popupClassName, 'ald-submenu'),
|
package/es/Menu/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MenuProps } from 'antd';
|
|
2
3
|
import MenuItem from './MenuItem';
|
|
3
4
|
import type { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
4
|
-
export interface IMenuProps {
|
|
5
|
+
export interface IMenuProps extends MenuProps {
|
|
5
6
|
/**
|
|
6
7
|
* @description 点击 MenuItem 调用此函数
|
|
7
8
|
* @type Function
|