@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
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
@import '~antd/lib/style/themes/index';
|
|
2
|
+
@import '~antd/lib/style/mixins/index';
|
|
3
|
+
@import '~antd/lib/input/style/mixin';
|
|
4
|
+
@import './single';
|
|
5
|
+
@import './multiple';
|
|
6
|
+
@import './status';
|
|
7
|
+
|
|
8
|
+
@root-entry-name: default;
|
|
9
|
+
@ant-prefix: ant;
|
|
10
|
+
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
11
|
+
@select-height-without-border: @input-height-base - 2 * @border-width-base;
|
|
12
|
+
@select-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding;
|
|
13
|
+
|
|
14
|
+
.select-selector() {
|
|
15
|
+
position: relative;
|
|
16
|
+
background-color: @select-background;
|
|
17
|
+
border: @border-width-base @border-style-base @select-border-color;
|
|
18
|
+
border-radius: @control-border-radius;
|
|
19
|
+
transition: all 0.3s @ease-in-out;
|
|
20
|
+
|
|
21
|
+
input {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.@{select-prefix-cls}-show-search& {
|
|
26
|
+
cursor: text;
|
|
27
|
+
|
|
28
|
+
input {
|
|
29
|
+
cursor: auto;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.@{select-prefix-cls}-focused:not(.@{select-prefix-cls}-disabled)& {
|
|
34
|
+
.active();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.@{select-prefix-cls}-disabled& {
|
|
38
|
+
color: @disabled-color;
|
|
39
|
+
background: @input-disabled-bg;
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
|
|
42
|
+
.@{select-prefix-cls}-multiple& {
|
|
43
|
+
background: @select-multiple-disabled-background;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input {
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Reset search input style */
|
|
53
|
+
.select-search-input-without-border() {
|
|
54
|
+
.@{select-prefix-cls}-selection-search-input {
|
|
55
|
+
margin: 0;
|
|
56
|
+
padding: 0;
|
|
57
|
+
background: transparent;
|
|
58
|
+
border: none;
|
|
59
|
+
outline: none;
|
|
60
|
+
appearance: none;
|
|
61
|
+
|
|
62
|
+
&::-webkit-search-cancel-button {
|
|
63
|
+
display: none;
|
|
64
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
65
|
+
-webkit-appearance: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.@{select-prefix-cls} {
|
|
71
|
+
.reset-component();
|
|
72
|
+
|
|
73
|
+
position: relative;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
|
|
77
|
+
&:not(&-customize-input) &-selector {
|
|
78
|
+
.select-selector();
|
|
79
|
+
.select-search-input-without-border();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:not(&-disabled):hover &-selector {
|
|
83
|
+
.hover();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ======================== Selection ========================
|
|
87
|
+
&-selection-item {
|
|
88
|
+
flex: 1;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
|
|
94
|
+
// IE11 css hack. `*::-ms-backdrop,` is a must have
|
|
95
|
+
@media all and (-ms-high-contrast: none) {
|
|
96
|
+
*::-ms-backdrop,
|
|
97
|
+
& {
|
|
98
|
+
flex: auto;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// ======================= Placeholder =======================
|
|
104
|
+
&-selection-placeholder {
|
|
105
|
+
flex: 1;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
color: @input-placeholder-color;
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
text-overflow: ellipsis;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
|
|
112
|
+
// IE11 css hack. `*::-ms-backdrop,` is a must have
|
|
113
|
+
@media all and (-ms-high-contrast: none) {
|
|
114
|
+
*::-ms-backdrop,
|
|
115
|
+
& {
|
|
116
|
+
flex: auto;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// ========================== Arrow ==========================
|
|
122
|
+
&-arrow {
|
|
123
|
+
.iconfont-mixin();
|
|
124
|
+
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: 50%;
|
|
127
|
+
right: @control-padding-horizontal - 1px;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
height: @font-size-sm;
|
|
131
|
+
margin-top: (-@font-size-sm / 2);
|
|
132
|
+
color: @disabled-color;
|
|
133
|
+
font-size: @font-size-sm;
|
|
134
|
+
line-height: 1;
|
|
135
|
+
text-align: center;
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
|
|
138
|
+
.@{iconfont-css-prefix} {
|
|
139
|
+
vertical-align: top;
|
|
140
|
+
transition: transform 0.3s;
|
|
141
|
+
|
|
142
|
+
> svg {
|
|
143
|
+
vertical-align: top;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:not(.@{select-prefix-cls}-suffix) {
|
|
147
|
+
pointer-events: auto;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.@{select-prefix-cls}-disabled & {
|
|
152
|
+
cursor: not-allowed;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> *:not(:last-child) {
|
|
156
|
+
margin-inline-end: @padding-xs;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ========================== Clear ==========================
|
|
161
|
+
&-clear {
|
|
162
|
+
position: absolute;
|
|
163
|
+
top: 50%;
|
|
164
|
+
right: @control-padding-horizontal - 1px;
|
|
165
|
+
z-index: 1;
|
|
166
|
+
display: inline-block;
|
|
167
|
+
width: @font-size-sm;
|
|
168
|
+
height: @font-size-sm;
|
|
169
|
+
margin-top: (-@font-size-sm / 2);
|
|
170
|
+
color: @disabled-color;
|
|
171
|
+
font-size: @font-size-sm;
|
|
172
|
+
font-style: normal;
|
|
173
|
+
line-height: 1;
|
|
174
|
+
text-align: center;
|
|
175
|
+
text-transform: none;
|
|
176
|
+
background: @select-clear-background;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
opacity: 0;
|
|
179
|
+
transition: color 0.3s ease, opacity 0.15s ease;
|
|
180
|
+
text-rendering: auto;
|
|
181
|
+
|
|
182
|
+
&::before {
|
|
183
|
+
display: block;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
color: @text-color-secondary;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.@{select-prefix-cls}:hover & {
|
|
191
|
+
opacity: 1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// ========================== Popup ==========================
|
|
196
|
+
&-dropdown {
|
|
197
|
+
.reset-component();
|
|
198
|
+
|
|
199
|
+
position: absolute;
|
|
200
|
+
top: -9999px;
|
|
201
|
+
left: -9999px;
|
|
202
|
+
z-index: @zindex-dropdown;
|
|
203
|
+
box-sizing: border-box;
|
|
204
|
+
padding: @select-dropdown-edge-child-vertical-padding 0;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
font-size: @font-size-base;
|
|
207
|
+
// Fix select render lag of long text in chrome
|
|
208
|
+
// https://github.com/ant-design/ant-design/issues/11456
|
|
209
|
+
// https://github.com/ant-design/ant-design/issues/11843
|
|
210
|
+
font-variant: initial;
|
|
211
|
+
background-color: @select-dropdown-bg;
|
|
212
|
+
border-radius: @border-radius-base;
|
|
213
|
+
outline: none;
|
|
214
|
+
box-shadow: @box-shadow-base;
|
|
215
|
+
|
|
216
|
+
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-bottomLeft,
|
|
217
|
+
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-bottomLeft {
|
|
218
|
+
animation-name: antSlideUpIn;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topLeft,
|
|
222
|
+
&.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topLeft {
|
|
223
|
+
animation-name: antSlideDownIn;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-bottomLeft {
|
|
227
|
+
animation-name: antSlideUpOut;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topLeft {
|
|
231
|
+
animation-name: antSlideDownOut;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&-hidden {
|
|
235
|
+
display: none;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&-empty {
|
|
239
|
+
color: @disabled-color;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// ========================= Options =========================
|
|
244
|
+
.item() {
|
|
245
|
+
position: relative;
|
|
246
|
+
display: block;
|
|
247
|
+
min-height: @select-dropdown-height;
|
|
248
|
+
padding: @select-dropdown-vertical-padding @control-padding-horizontal;
|
|
249
|
+
color: @text-color;
|
|
250
|
+
font-weight: normal;
|
|
251
|
+
font-size: @select-dropdown-font-size;
|
|
252
|
+
line-height: @select-dropdown-line-height;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&-item-empty {
|
|
256
|
+
.item();
|
|
257
|
+
|
|
258
|
+
color: @disabled-color;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&-item {
|
|
262
|
+
.item();
|
|
263
|
+
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
transition: background 0.3s ease;
|
|
266
|
+
|
|
267
|
+
// =========== Group ============
|
|
268
|
+
&-group {
|
|
269
|
+
color: @text-color-secondary;
|
|
270
|
+
font-size: @font-size-sm;
|
|
271
|
+
cursor: default;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// =========== Option ===========
|
|
275
|
+
&-option {
|
|
276
|
+
display: flex;
|
|
277
|
+
|
|
278
|
+
&-content {
|
|
279
|
+
flex: auto;
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
white-space: nowrap;
|
|
282
|
+
text-overflow: ellipsis;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&-state {
|
|
286
|
+
flex: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&-active:not(&-disabled) {
|
|
290
|
+
background-color: @select-item-active-bg;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&-selected:not(&-disabled) {
|
|
294
|
+
color: @select-item-selected-color;
|
|
295
|
+
font-weight: @select-item-selected-font-weight;
|
|
296
|
+
background-color: @select-item-selected-bg;
|
|
297
|
+
|
|
298
|
+
.@{select-prefix-cls}-item-option-state {
|
|
299
|
+
color: @primary-color;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&-disabled {
|
|
304
|
+
&.@{select-prefix-cls}-item-option-selected {
|
|
305
|
+
background-color: @select-multiple-disabled-background;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
color: @disabled-color;
|
|
309
|
+
cursor: not-allowed;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&-grouped {
|
|
313
|
+
padding-left: @control-padding-horizontal * 2;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// ============================================================
|
|
319
|
+
// == Size ==
|
|
320
|
+
// ============================================================
|
|
321
|
+
&-lg {
|
|
322
|
+
font-size: @font-size-lg;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// no border style
|
|
326
|
+
&-borderless &-selector {
|
|
327
|
+
background-color: transparent !important;
|
|
328
|
+
border-color: transparent !important;
|
|
329
|
+
box-shadow: none !important;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&&-in-form-item {
|
|
333
|
+
width: 100%;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
// stylelint-disable-next-line
|
|
337
|
+
@import './rtl';
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index';
|
|
2
|
+
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
3
|
+
|
|
4
|
+
@selection-item-padding: ceil(@font-size-base * 1.25);
|
|
5
|
+
|
|
6
|
+
.@{select-prefix-cls}-single {
|
|
7
|
+
// ========================= Selector =========================
|
|
8
|
+
.@{select-prefix-cls}-selector {
|
|
9
|
+
display: flex;
|
|
10
|
+
|
|
11
|
+
.@{select-prefix-cls}-selection-search {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
right: @input-padding-horizontal-base;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: @input-padding-horizontal-base;
|
|
17
|
+
|
|
18
|
+
&-input {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{select-prefix-cls}-selection-item,
|
|
24
|
+
.@{select-prefix-cls}-selection-placeholder {
|
|
25
|
+
padding: 0;
|
|
26
|
+
line-height: @select-height-without-border;
|
|
27
|
+
transition: all 0.3s;
|
|
28
|
+
|
|
29
|
+
// Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:
|
|
30
|
+
@supports (-moz-appearance: meterbar) {
|
|
31
|
+
& {
|
|
32
|
+
line-height: @select-height-without-border;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.@{select-prefix-cls}-selection-item {
|
|
38
|
+
position: relative;
|
|
39
|
+
user-select: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.@{select-prefix-cls}-selection-placeholder {
|
|
43
|
+
transition: none;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// For common baseline align
|
|
48
|
+
&::after,
|
|
49
|
+
/* For '' value baseline align */
|
|
50
|
+
.@{select-prefix-cls}-selection-item::after,
|
|
51
|
+
/* For undefined value baseline align */
|
|
52
|
+
.@{select-prefix-cls}-selection-placeholder::after {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
width: 0;
|
|
55
|
+
visibility: hidden;
|
|
56
|
+
content: '\a0';
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// With arrow should provides `padding-right` to show the arrow
|
|
61
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-search {
|
|
62
|
+
right: @input-padding-horizontal-base + @font-size-base;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-item,
|
|
66
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-placeholder {
|
|
67
|
+
padding-right: @selection-item-padding;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Opacity selection if open
|
|
71
|
+
&.@{select-prefix-cls}-open .@{select-prefix-cls}-selection-item {
|
|
72
|
+
color: @input-placeholder-color;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ========================== Input ==========================
|
|
76
|
+
// We only change the style of non-customize input which is only support by `combobox` mode.
|
|
77
|
+
|
|
78
|
+
// Not customize
|
|
79
|
+
&:not(.@{select-prefix-cls}-customize-input) {
|
|
80
|
+
.@{select-prefix-cls}-selector {
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: @input-height-base;
|
|
83
|
+
padding: 0 @input-padding-horizontal-base;
|
|
84
|
+
|
|
85
|
+
.@{select-prefix-cls}-selection-search-input {
|
|
86
|
+
height: @select-height-without-border;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&::after {
|
|
90
|
+
line-height: @select-height-without-border;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.@{select-prefix-cls}-customize-input {
|
|
96
|
+
.@{select-prefix-cls}-selector {
|
|
97
|
+
&::after {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.@{select-prefix-cls}-selection-search {
|
|
102
|
+
position: static;
|
|
103
|
+
width: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.@{select-prefix-cls}-selection-placeholder {
|
|
107
|
+
position: absolute;
|
|
108
|
+
right: 0;
|
|
109
|
+
left: 0;
|
|
110
|
+
padding: 0 @input-padding-horizontal-base;
|
|
111
|
+
|
|
112
|
+
&::after {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// ============================================================
|
|
120
|
+
// == Size ==
|
|
121
|
+
// ============================================================
|
|
122
|
+
.select-size(@suffix, @input-height) {
|
|
123
|
+
@merged-cls: ~'@{select-prefix-cls}-@{suffix}';
|
|
124
|
+
|
|
125
|
+
&.@{merged-cls}:not(.@{select-prefix-cls}-customize-input) {
|
|
126
|
+
.@{select-prefix-cls}-selector {
|
|
127
|
+
height: @input-height;
|
|
128
|
+
|
|
129
|
+
&::after,
|
|
130
|
+
.@{select-prefix-cls}-selection-item,
|
|
131
|
+
.@{select-prefix-cls}-selection-placeholder {
|
|
132
|
+
line-height: @input-height - 2 * @border-width-base;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Not customize
|
|
137
|
+
&:not(.@{select-prefix-cls}-customize-input) {
|
|
138
|
+
.@{select-prefix-cls}-selection-search-input {
|
|
139
|
+
height: @input-height - 2 * @border-width-base;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.select-size('lg', @select-single-item-height-lg);
|
|
146
|
+
.select-size('sm', @input-height-sm);
|
|
147
|
+
|
|
148
|
+
// Size small need additional set padding
|
|
149
|
+
&.@{select-prefix-cls}-sm {
|
|
150
|
+
&:not(.@{select-prefix-cls}-customize-input) {
|
|
151
|
+
.@{select-prefix-cls}-selection-search {
|
|
152
|
+
right: @input-padding-horizontal-sm;
|
|
153
|
+
left: @input-padding-horizontal-sm;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.@{select-prefix-cls}-selector {
|
|
157
|
+
padding: 0 @input-padding-horizontal-sm;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// With arrow should provides `padding-right` to show the arrow
|
|
161
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-search {
|
|
162
|
+
right: @input-padding-horizontal-sm + @font-size-base * 1.5;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-item,
|
|
166
|
+
&.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-placeholder {
|
|
167
|
+
padding-right: @font-size-base * 1.5;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.@{select-prefix-cls}-lg {
|
|
173
|
+
&:not(.@{select-prefix-cls}-customize-input) {
|
|
174
|
+
.@{select-prefix-cls}-selector {
|
|
175
|
+
padding: 0 @input-padding-horizontal-lg;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import '~antd/lib/input/style/mixin';
|
|
2
|
+
|
|
3
|
+
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
4
|
+
|
|
5
|
+
.select-status-color(
|
|
6
|
+
@text-color;
|
|
7
|
+
@border-color;
|
|
8
|
+
@background-color;
|
|
9
|
+
@hoverBorderColor;
|
|
10
|
+
@outlineColor;
|
|
11
|
+
) {
|
|
12
|
+
&.@{select-prefix-cls}:not(.@{select-prefix-cls}-disabled):not(.@{select-prefix-cls}-customize-input) {
|
|
13
|
+
.@{select-prefix-cls}-selector {
|
|
14
|
+
background-color: @background-color;
|
|
15
|
+
border-color: @border-color !important;
|
|
16
|
+
}
|
|
17
|
+
&.@{select-prefix-cls}-open .@{select-prefix-cls}-selector,
|
|
18
|
+
&.@{select-prefix-cls}-focused .@{select-prefix-cls}-selector {
|
|
19
|
+
.active(@border-color, @hoverBorderColor, @outlineColor);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.@{select-prefix-cls} {
|
|
25
|
+
&-status-error {
|
|
26
|
+
.select-status-color(@error-color, @error-color, @select-background, @error-color-hover, @error-color-outline);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-status-warning {
|
|
30
|
+
.select-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-status-error,
|
|
34
|
+
&-status-warning,
|
|
35
|
+
&-status-success,
|
|
36
|
+
&-status-validating {
|
|
37
|
+
&.@{select-prefix-cls}-has-feedback {
|
|
38
|
+
//.@{prefix-cls}-arrow,
|
|
39
|
+
.@{select-prefix-cls}-clear {
|
|
40
|
+
right: 32px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.@{select-prefix-cls}-selection-selected-value {
|
|
44
|
+
padding-right: 42px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* stylelint-disable property-no-unknown */
|
|
2
|
+
@import '../../style/index.less';
|
|
3
|
+
|
|
4
|
+
// large size
|
|
5
|
+
@selector-height-large: 40px;
|
|
6
|
+
@selector-borderRadius-large: 8px;
|
|
7
|
+
@selector-fontSize-large: 16px;
|
|
8
|
+
@selector-lineHeight-large: 24px;
|
|
9
|
+
@prefix-marginRight-large: 8px;
|
|
10
|
+
@selector-paddingHorizontal-large: 11px;
|
|
11
|
+
|
|
12
|
+
// medium size
|
|
13
|
+
@selector-height-middle: 32px;
|
|
14
|
+
@selector-borderRadius-middle: 6px;
|
|
15
|
+
@selector-fontSize-middle: 14px;
|
|
16
|
+
@selector-lineHeight-middle: 20px;
|
|
17
|
+
@prefix-marginRight-middle: 8px;
|
|
18
|
+
@selector-paddingHorizontal-middle: 11px;
|
|
19
|
+
|
|
20
|
+
// small size
|
|
21
|
+
@selector-height-small: 28px;
|
|
22
|
+
@selector-borderRadius-small: 4px;
|
|
23
|
+
@selector-fontSize-small: 12px;
|
|
24
|
+
@selector-lineHeight-small: 16px;
|
|
25
|
+
@prefix-marginRight-small: 4px;
|
|
26
|
+
@selector-paddingHorizontal-small: 7px;
|
|
27
|
+
// mini size
|
|
28
|
+
@selector-height-mini: 24px;
|
|
29
|
+
@selector-borderRadius-mini: 4px;
|
|
30
|
+
@selector-fontSize-mini: 12px;
|
|
31
|
+
@selector-lineHeight-mini: 16px;
|
|
32
|
+
@prefix-marginRight-mini: 4px;
|
|
33
|
+
@selector-paddingHorizontal-mini: 7px;
|
|
34
|
+
|
|
35
|
+
//default status
|
|
36
|
+
@selector-borderColor-default: @NL90;
|
|
37
|
+
@selector-placeholderColor-default: @NL80;
|
|
38
|
+
@selector-valueColor-default: @NL0;
|
|
39
|
+
@selector-labelColor-default: @NL50;
|
|
40
|
+
@selector-bgColor-default: @BG97;
|
|
41
|
+
//active status
|
|
42
|
+
@selector-borderColor-active: @B60;
|
|
43
|
+
@selector-placeholderColor-active: @NL80;
|
|
44
|
+
@selector-valueColor-active: @NL50;
|
|
45
|
+
@selector-labelColor-active: @NL50;
|
|
46
|
+
@selector-bgColor-active: @BG97;
|
|
47
|
+
//disable status
|
|
48
|
+
@selector-borderColor-disabled: @NL90;
|
|
49
|
+
@selector-placeholderColor-disabled: @NL80;
|
|
50
|
+
@selector-valueColor-disabled: @NL60;
|
|
51
|
+
@selector-labelColor-disabled: @NL60;
|
|
52
|
+
@selector-bgColor-disabled: @BG95;
|
|
53
|
+
//-----option
|
|
54
|
+
@select-option-bgColor: @BG100;
|
|
55
|
+
@select-option-color: @NL0;
|
|
56
|
+
@select-option-bgColor-hover: @NL97;
|
|
57
|
+
|
|
58
|
+
:export {
|
|
59
|
+
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-paddingHorizontal-large;
|
|
60
|
+
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-paddingHorizontal-middle;
|
|
61
|
+
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-paddingHorizontal-small;
|
|
62
|
+
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-paddingHorizontal-mini;
|
|
63
|
+
PREFIX_MARGIN_RIGHT_LARGE: @prefix-marginRight-large;
|
|
64
|
+
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-marginRight-middle;
|
|
65
|
+
PREFIX_MARGIN_RIGHT_SMALL: @prefix-marginRight-small;
|
|
66
|
+
PREFIX_MARGIN_RIGHT_MINI: @prefix-marginRight-mini;
|
|
67
|
+
}
|