@kdcloudjs/kdesign 1.0.2 → 1.1.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/LICENSE +104 -105
- package/dist/default-theme.js +17 -12
- package/dist/kdesign-complete.less +3334 -1374
- package/dist/kdesign.css +2565 -1931
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +783 -112
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/alert/style/index.css +32 -30
- package/es/alert/style/index.less +36 -37
- package/es/alert/style/token.less +29 -0
- package/es/anchor/style/index.css +48 -34
- package/es/anchor/style/index.less +19 -16
- package/es/anchor/style/mixin.less +1 -0
- package/es/anchor/style/token.less +33 -0
- package/es/avatar/style/index.css +18 -18
- package/es/avatar/style/index.less +4 -25
- package/es/avatar/style/mixin.less +21 -4
- package/es/avatar/style/token.less +20 -0
- package/es/badge/style/index.css +38 -29
- package/es/badge/style/index.less +28 -30
- package/es/badge/style/mixin.less +1 -5
- package/es/badge/style/token.less +23 -0
- package/es/base-data/style/index.css +25 -16
- package/es/base-data/style/index.less +17 -17
- package/es/base-data/style/token.less +27 -0
- package/es/button/button.d.ts +1 -3
- package/es/button/button.js +3 -15
- package/es/button/style/index.css +80 -81
- package/es/button/style/index.less +43 -51
- package/es/button/style/mixin.less +6 -4
- package/es/button/style/token.less +88 -0
- package/es/card/card.d.ts +1 -0
- package/es/card/card.js +4 -1
- package/es/card/style/index.css +48 -23
- package/es/card/style/index.less +43 -23
- package/es/card/style/token.less +28 -0
- package/es/carousel/style/index.css +36 -30
- package/es/carousel/style/index.less +14 -6
- package/es/carousel/style/mixin.less +1 -4
- package/es/carousel/style/token.less +20 -0
- package/es/cascader/cascader.js +1 -1
- package/es/cascader/style/index.css +35 -26
- package/es/cascader/style/index.less +24 -23
- package/es/cascader/style/token.less +28 -0
- package/es/checkbox/style/index.css +86 -80
- package/es/checkbox/style/index.less +26 -27
- package/es/checkbox/style/token.less +48 -0
- package/es/city-picker/style/index.css +24 -14
- package/es/city-picker/style/index.less +16 -16
- package/es/city-picker/style/token.less +25 -0
- package/es/collapse/style/index.css +37 -26
- package/es/collapse/style/index.less +7 -5
- package/es/collapse/style/mixin.less +1 -5
- package/es/collapse/style/token.less +26 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -1
- package/es/config-provider/compDefaultProps.js +5 -2
- package/es/date-picker/style/index.css +81 -72
- package/es/date-picker/style/index.less +36 -36
- package/es/date-picker/style/mixin.less +20 -18
- package/es/date-picker/style/token.less +71 -0
- package/es/drawer/drawer.d.ts +0 -1
- package/es/drawer/drawer.js +6 -26
- package/es/drawer/style/index.css +37 -31
- package/es/drawer/style/index.less +24 -39
- package/es/drawer/style/token.less +23 -0
- package/es/dropdown/dropdown.d.ts +1 -0
- package/es/dropdown/dropdown.js +13 -8
- package/es/dropdown/menu.d.ts +1 -1
- package/es/dropdown/menu.js +3 -3
- package/es/dropdown/style/index.css +57 -48
- package/es/dropdown/style/index.less +27 -24
- package/es/dropdown/style/token.less +26 -0
- package/es/empty/defaultEmptyImg.d.ts +2 -0
- package/es/empty/defaultEmptyImg.js +92 -0
- package/es/empty/empty.d.ts +5 -1
- package/es/empty/empty.js +10 -9
- package/es/empty/illustrationEmptyImg.d.ts +2 -0
- package/es/empty/illustrationEmptyImg.js +439 -0
- package/es/empty/style/index.css +12 -3
- package/es/empty/style/index.less +1 -1
- package/es/empty/style/token.less +12 -0
- package/es/filter/style/index.css +44 -32
- package/es/filter/style/index.less +34 -32
- package/es/filter/style/token.less +28 -0
- package/es/form/style/index.css +19 -10
- package/es/form/style/index.less +9 -6
- package/es/form/style/token.less +27 -0
- package/es/grid/style/index.css +9 -0
- package/es/image/style/index.css +32 -23
- package/es/image/style/index.less +23 -22
- package/es/image/style/token.less +45 -0
- package/es/image-cropper/style/index.css +9 -0
- package/es/image-cropper/style/index.less +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/style/index.css +97 -88
- package/es/input/style/index.less +34 -31
- package/es/input/style/mixin.less +54 -47
- package/es/input/style/token.less +46 -0
- package/es/input-number/style/css.js +1 -0
- package/es/input-number/style/index.css +25 -16
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +1 -0
- package/es/input-number/style/index.less +12 -12
- package/es/input-number/style/mixin.less +4 -2
- package/es/input-number/style/token.less +20 -0
- package/es/layout/style/index.css +41 -32
- package/es/layout/style/index.less +9 -8
- package/es/layout/style/token.less +30 -0
- package/es/link/index.d.ts +3 -0
- package/es/link/index.js +3 -0
- package/es/link/link.d.ts +18 -0
- package/es/link/link.js +89 -0
- package/es/link/style/css.js +2 -0
- package/es/link/style/index.css +155 -0
- package/es/link/style/index.d.ts +2 -0
- package/es/link/style/index.js +2 -0
- package/es/link/style/index.less +61 -0
- package/es/link/style/mixin.less +7 -0
- package/es/link/style/token.less +24 -0
- package/es/menu/menuItem.js +1 -2
- package/es/menu/style/index.css +89 -80
- package/es/menu/style/index.less +51 -26
- package/es/menu/style/mixin.less +16 -19
- package/es/menu/style/token.less +32 -0
- package/es/message/style/index.css +23 -13
- package/es/message/style/index.less +15 -13
- package/es/message/style/token.less +21 -0
- package/es/modal/style/index.css +37 -28
- package/es/modal/style/index.less +16 -26
- package/es/modal/style/mixin.less +2 -0
- package/es/modal/style/token.less +46 -0
- package/es/notification/content.js +1 -1
- package/es/notification/style/index.css +34 -25
- package/es/notification/style/index.less +21 -20
- package/es/notification/style/token.less +28 -0
- package/es/pagination/pagination.js +2 -2
- package/es/pagination/style/index.css +159 -159
- package/es/pagination/style/index.less +104 -113
- package/es/pagination/style/token.less +28 -0
- package/es/popconfirm/style/index.css +54 -33
- package/es/popconfirm/style/index.less +41 -20
- package/es/popconfirm/style/token.less +28 -0
- package/es/progress/style/index.css +41 -27
- package/es/progress/style/index.less +24 -8
- package/es/progress/style/mixin.less +2 -1
- package/es/progress/style/token.less +40 -0
- package/es/radio/style/index.css +91 -76
- package/es/radio/style/index.less +76 -64
- package/es/radio/style/token.less +47 -0
- package/es/rate/style/index.css +26 -17
- package/es/rate/style/index.less +4 -3
- package/es/rate/style/token.less +18 -0
- package/es/search/style/index.css +103 -82
- package/es/search/style/index.less +49 -35
- package/es/search/style/mixin.less +4 -2
- package/es/search/style/token.less +60 -0
- package/es/select/select.js +3 -14
- package/es/select/style/index.css +46 -37
- package/es/select/style/index.less +10 -10
- package/es/select/style/mixin.less +4 -7
- package/es/select/style/token.less +43 -0
- package/es/slider/slider.js +5 -13
- package/es/slider/sliderTooltip.js +0 -1
- package/es/slider/style/index.css +21 -12
- package/es/slider/style/index.less +10 -10
- package/es/slider/style/mixin.less +3 -1
- package/es/slider/style/token.less +17 -0
- package/es/space/style/index.css +9 -0
- package/es/spin/style/index.css +23 -14
- package/es/spin/style/index.less +3 -2
- package/es/spin/style/mixin.less +1 -0
- package/es/spin/style/token.less +15 -0
- package/es/split-panel/style/index.css +35 -44
- package/es/split-panel/style/index.less +16 -34
- package/es/split-panel/style/token.less +23 -0
- package/es/stepper/style/index.css +50 -25
- package/es/stepper/style/index.less +45 -11
- package/es/stepper/style/mixin.less +7 -5
- package/es/stepper/style/token.less +28 -0
- package/es/steps/Steps.js +4 -1
- package/es/steps/style/index.css +74 -37
- package/es/steps/style/index.less +281 -189
- package/es/steps/style/token.less +31 -0
- package/es/style/mixins/index.less +10 -9
- package/es/style/mixins/overlay.less +2 -2
- package/es/style/themes/default.less +22 -12
- package/es/style/themes/token.less +128 -0
- package/es/switch/style/index.css +38 -29
- package/es/switch/style/index.less +17 -6
- package/es/switch/style/mixin.less +6 -5
- package/es/switch/style/token.less +45 -0
- package/es/tabs/style/index.css +59 -50
- package/es/tabs/style/index.less +3 -3
- package/es/tabs/style/mixin.less +2 -0
- package/es/tabs/style/token.less +32 -0
- package/es/tabs/tabs.js +3 -1
- package/es/tag/style/index.css +122 -113
- package/es/tag/style/index.less +19 -19
- package/es/tag/style/mixin.less +2 -1
- package/es/tag/style/token.less +42 -0
- package/es/timeline/style/index.css +40 -30
- package/es/timeline/style/index.less +33 -30
- package/es/timeline/style/token.less +45 -0
- package/es/tooltip/style/index.css +26 -17
- package/es/tooltip/style/index.less +6 -5
- package/es/tooltip/style/token.less +20 -0
- package/es/transfer/operation.js +2 -2
- package/es/transfer/style/index.css +37 -24
- package/es/transfer/style/index.less +4 -0
- package/es/transfer/style/mixins.less +2 -0
- package/es/transfer/style/token.less +29 -0
- package/es/tree/style/index.css +37 -37
- package/es/tree/style/index.less +8 -20
- package/es/tree/style/mixin.less +1 -5
- package/es/tree/style/token.less +27 -0
- package/es/typography/style/index.css +46 -53
- package/es/typography/style/index.less +15 -15
- package/es/typography/style/mixin.less +9 -11
- package/es/typography/style/token.less +38 -0
- package/es/upload/style/index.css +41 -31
- package/es/upload/style/index.less +27 -25
- package/es/upload/style/token.less +28 -0
- package/lib/alert/style/index.css +32 -30
- package/lib/alert/style/index.less +36 -37
- package/lib/alert/style/token.less +29 -0
- package/lib/anchor/style/index.css +48 -34
- package/lib/anchor/style/index.less +19 -16
- package/lib/anchor/style/mixin.less +1 -0
- package/lib/anchor/style/token.less +33 -0
- package/lib/avatar/style/index.css +18 -18
- package/lib/avatar/style/index.less +4 -25
- package/lib/avatar/style/mixin.less +21 -4
- package/lib/avatar/style/token.less +20 -0
- package/lib/badge/style/index.css +38 -29
- package/lib/badge/style/index.less +28 -30
- package/lib/badge/style/mixin.less +1 -5
- package/lib/badge/style/token.less +23 -0
- package/lib/base-data/style/index.css +25 -16
- package/lib/base-data/style/index.less +17 -17
- package/lib/base-data/style/token.less +27 -0
- package/lib/button/button.d.ts +1 -3
- package/lib/button/button.js +3 -15
- package/lib/button/style/index.css +80 -81
- package/lib/button/style/index.less +43 -51
- package/lib/button/style/mixin.less +6 -4
- package/lib/button/style/token.less +88 -0
- package/lib/card/card.d.ts +1 -0
- package/lib/card/card.js +4 -1
- package/lib/card/style/index.css +48 -23
- package/lib/card/style/index.less +43 -23
- package/lib/card/style/token.less +28 -0
- package/lib/carousel/style/index.css +36 -30
- package/lib/carousel/style/index.less +14 -6
- package/lib/carousel/style/mixin.less +1 -4
- package/lib/carousel/style/token.less +20 -0
- package/lib/cascader/cascader.js +1 -1
- package/lib/cascader/style/index.css +35 -26
- package/lib/cascader/style/index.less +24 -23
- package/lib/cascader/style/token.less +28 -0
- package/lib/checkbox/style/index.css +86 -80
- package/lib/checkbox/style/index.less +26 -27
- package/lib/checkbox/style/token.less +48 -0
- package/lib/city-picker/style/index.css +24 -14
- package/lib/city-picker/style/index.less +16 -16
- package/lib/city-picker/style/token.less +25 -0
- package/lib/collapse/style/index.css +37 -26
- package/lib/collapse/style/index.less +7 -5
- package/lib/collapse/style/mixin.less +1 -5
- package/lib/collapse/style/token.less +26 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -1
- package/lib/config-provider/compDefaultProps.js +5 -2
- package/lib/date-picker/style/index.css +81 -72
- package/lib/date-picker/style/index.less +36 -36
- package/lib/date-picker/style/mixin.less +20 -18
- package/lib/date-picker/style/token.less +71 -0
- package/lib/drawer/drawer.d.ts +0 -1
- package/lib/drawer/drawer.js +6 -26
- package/lib/drawer/style/index.css +37 -31
- package/lib/drawer/style/index.less +24 -39
- package/lib/drawer/style/token.less +23 -0
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.js +13 -8
- package/lib/dropdown/menu.d.ts +1 -1
- package/lib/dropdown/menu.js +3 -3
- package/lib/dropdown/style/index.css +57 -48
- package/lib/dropdown/style/index.less +27 -24
- package/lib/dropdown/style/token.less +26 -0
- package/lib/empty/defaultEmptyImg.d.ts +2 -0
- package/lib/empty/defaultEmptyImg.js +113 -0
- package/lib/empty/empty.d.ts +5 -1
- package/lib/empty/empty.js +13 -9
- package/lib/empty/illustrationEmptyImg.d.ts +2 -0
- package/lib/empty/illustrationEmptyImg.js +460 -0
- package/lib/empty/style/index.css +12 -3
- package/lib/empty/style/index.less +1 -1
- package/lib/empty/style/token.less +12 -0
- package/lib/filter/style/index.css +44 -32
- package/lib/filter/style/index.less +34 -32
- package/lib/filter/style/token.less +28 -0
- package/lib/form/style/index.css +19 -10
- package/lib/form/style/index.less +9 -6
- package/lib/form/style/token.less +27 -0
- package/lib/grid/style/index.css +9 -0
- package/lib/image/style/index.css +32 -23
- package/lib/image/style/index.less +23 -22
- package/lib/image/style/token.less +45 -0
- package/lib/image-cropper/style/index.css +9 -0
- package/lib/image-cropper/style/index.less +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/input/style/index.css +97 -88
- package/lib/input/style/index.less +34 -31
- package/lib/input/style/mixin.less +54 -47
- package/lib/input/style/token.less +46 -0
- package/lib/input-number/style/css.js +2 -0
- package/lib/input-number/style/index.css +25 -16
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-number/style/index.js +2 -0
- package/lib/input-number/style/index.less +12 -12
- package/lib/input-number/style/mixin.less +4 -2
- package/lib/input-number/style/token.less +20 -0
- package/lib/layout/style/index.css +41 -32
- package/lib/layout/style/index.less +9 -8
- package/lib/layout/style/token.less +30 -0
- package/lib/link/index.d.ts +3 -0
- package/lib/link/index.js +36 -0
- package/lib/link/link.d.ts +18 -0
- package/lib/link/link.js +120 -0
- package/lib/link/style/css.js +5 -0
- package/lib/link/style/index.css +155 -0
- package/lib/link/style/index.d.ts +2 -0
- package/lib/link/style/index.js +5 -0
- package/lib/link/style/index.less +61 -0
- package/lib/link/style/mixin.less +7 -0
- package/lib/link/style/token.less +24 -0
- package/lib/menu/menuItem.js +1 -2
- package/lib/menu/style/index.css +89 -80
- package/lib/menu/style/index.less +51 -26
- package/lib/menu/style/mixin.less +16 -19
- package/lib/menu/style/token.less +32 -0
- package/lib/message/style/index.css +23 -13
- package/lib/message/style/index.less +15 -13
- package/lib/message/style/token.less +21 -0
- package/lib/modal/style/index.css +37 -28
- package/lib/modal/style/index.less +16 -26
- package/lib/modal/style/mixin.less +2 -0
- package/lib/modal/style/token.less +46 -0
- package/lib/notification/content.js +1 -1
- package/lib/notification/style/index.css +34 -25
- package/lib/notification/style/index.less +21 -20
- package/lib/notification/style/token.less +28 -0
- package/lib/pagination/pagination.js +2 -2
- package/lib/pagination/style/index.css +159 -159
- package/lib/pagination/style/index.less +104 -113
- package/lib/pagination/style/token.less +28 -0
- package/lib/popconfirm/style/index.css +54 -33
- package/lib/popconfirm/style/index.less +41 -20
- package/lib/popconfirm/style/token.less +28 -0
- package/lib/progress/style/index.css +41 -27
- package/lib/progress/style/index.less +24 -8
- package/lib/progress/style/mixin.less +2 -1
- package/lib/progress/style/token.less +40 -0
- package/lib/radio/style/index.css +91 -76
- package/lib/radio/style/index.less +76 -64
- package/lib/radio/style/token.less +47 -0
- package/lib/rate/style/index.css +26 -17
- package/lib/rate/style/index.less +4 -3
- package/lib/rate/style/token.less +18 -0
- package/lib/search/style/index.css +103 -82
- package/lib/search/style/index.less +49 -35
- package/lib/search/style/mixin.less +4 -2
- package/lib/search/style/token.less +60 -0
- package/lib/select/select.js +3 -14
- package/lib/select/style/index.css +46 -37
- package/lib/select/style/index.less +10 -10
- package/lib/select/style/mixin.less +4 -7
- package/lib/select/style/token.less +43 -0
- package/lib/slider/slider.js +5 -13
- package/lib/slider/sliderTooltip.js +0 -1
- package/lib/slider/style/index.css +21 -12
- package/lib/slider/style/index.less +10 -10
- package/lib/slider/style/mixin.less +3 -1
- package/lib/slider/style/token.less +17 -0
- package/lib/space/style/index.css +9 -0
- package/lib/spin/style/index.css +23 -14
- package/lib/spin/style/index.less +3 -2
- package/lib/spin/style/mixin.less +1 -0
- package/lib/spin/style/token.less +15 -0
- package/lib/split-panel/style/index.css +35 -44
- package/lib/split-panel/style/index.less +16 -34
- package/lib/split-panel/style/token.less +23 -0
- package/lib/stepper/style/index.css +50 -25
- package/lib/stepper/style/index.less +45 -11
- package/lib/stepper/style/mixin.less +7 -5
- package/lib/stepper/style/token.less +28 -0
- package/lib/steps/Steps.js +4 -1
- package/lib/steps/style/index.css +74 -37
- package/lib/steps/style/index.less +281 -189
- package/lib/steps/style/token.less +31 -0
- package/lib/style/components.less +1 -0
- package/lib/style/mixins/index.less +10 -9
- package/lib/style/mixins/overlay.less +2 -2
- package/lib/style/themes/default.less +22 -12
- package/lib/style/themes/token.less +128 -0
- package/lib/switch/style/index.css +38 -29
- package/lib/switch/style/index.less +17 -6
- package/lib/switch/style/mixin.less +6 -5
- package/lib/switch/style/token.less +45 -0
- package/lib/tabs/style/index.css +59 -50
- package/lib/tabs/style/index.less +3 -3
- package/lib/tabs/style/mixin.less +2 -0
- package/lib/tabs/style/token.less +32 -0
- package/lib/tabs/tabs.js +3 -1
- package/lib/tag/style/index.css +122 -113
- package/lib/tag/style/index.less +19 -19
- package/lib/tag/style/mixin.less +2 -1
- package/lib/tag/style/token.less +42 -0
- package/lib/timeline/style/index.css +40 -30
- package/lib/timeline/style/index.less +33 -30
- package/lib/timeline/style/token.less +45 -0
- package/lib/tooltip/style/index.css +26 -17
- package/lib/tooltip/style/index.less +6 -5
- package/lib/tooltip/style/token.less +20 -0
- package/lib/transfer/operation.js +2 -2
- package/lib/transfer/style/index.css +37 -24
- package/lib/transfer/style/index.less +4 -0
- package/lib/transfer/style/mixins.less +2 -0
- package/lib/transfer/style/token.less +29 -0
- package/lib/tree/style/index.css +37 -37
- package/lib/tree/style/index.less +8 -20
- package/lib/tree/style/mixin.less +1 -5
- package/lib/tree/style/token.less +27 -0
- package/lib/typography/style/index.css +46 -53
- package/lib/typography/style/index.less +15 -15
- package/lib/typography/style/mixin.less +9 -11
- package/lib/typography/style/token.less +38 -0
- package/lib/upload/style/index.css +41 -31
- package/lib/upload/style/index.less +27 -25
- package/lib/upload/style/token.less +28 -0
- package/package.json +5 -4
- package/es/base-data/style/mixin.less +0 -5
- package/es/empty/style/mixin.less +0 -5
- package/es/form/style/mixin.less +0 -5
- package/es/steps/style/mixin.less +0 -41
- package/lib/base-data/style/mixin.less +0 -5
- package/lib/empty/style/mixin.less +0 -5
- package/lib/form/style/mixin.less +0 -5
- package/lib/steps/style/mixin.less +0 -41
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@search-prefix-cls: ~'@{kd-prefix}-search';
|
|
7
7
|
|
|
8
8
|
.@{search-prefix-cls} {
|
|
9
|
-
border-bottom:
|
|
9
|
+
border-bottom: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
10
10
|
&-size-small {
|
|
11
11
|
width: @search-small-width;
|
|
12
12
|
}
|
|
@@ -26,18 +26,24 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&-border {
|
|
29
|
-
border:
|
|
29
|
+
border: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-prefix,
|
|
33
|
+
&-suffix {
|
|
34
|
+
font-size: @search-icon-font-size;
|
|
35
|
+
color: @search-icon-color;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
&-focused,
|
|
33
39
|
&:not(.@{search-prefix-cls}-disabled):hover {
|
|
34
|
-
border-color: @search-
|
|
40
|
+
border-color: @search-color-theme;
|
|
35
41
|
.@{search-prefix-cls}-prefix {
|
|
36
|
-
color: @search-
|
|
42
|
+
color: @search-color-theme;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
.@{search-prefix-cls}-suffix {
|
|
40
|
-
color: @search-
|
|
46
|
+
color: @search-color-theme;
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -48,23 +54,27 @@
|
|
|
48
54
|
width: @quick-search-default-width;
|
|
49
55
|
height: @quick-search-default-height;
|
|
50
56
|
position: relative;
|
|
51
|
-
border-bottom:
|
|
52
|
-
transition: all calc(@transition-duration - 0.1s)
|
|
57
|
+
border-bottom: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
58
|
+
transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
53
59
|
&-borderless {
|
|
54
60
|
border: none !important;
|
|
55
61
|
}
|
|
56
62
|
&-border {
|
|
57
|
-
border:
|
|
63
|
+
border: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
58
64
|
}
|
|
59
65
|
&:hover:not(&-disabled) {
|
|
60
|
-
border-color: @search-
|
|
66
|
+
border-color: @search-color-theme;
|
|
61
67
|
.@{quick-search-prefix-cls}-prefix {
|
|
62
|
-
color: @search-
|
|
68
|
+
color: @search-color-theme;
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
&-focused:not(&-disabled) {
|
|
66
72
|
max-width: @quick-search-max-width;
|
|
67
73
|
width: 100% !important;
|
|
74
|
+
border-color: @search-color-theme;
|
|
75
|
+
.@{quick-search-prefix-cls}-prefix {
|
|
76
|
+
color: @search-color-theme;
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
&-disabled {
|
|
70
80
|
cursor: not-allowed;
|
|
@@ -77,6 +87,8 @@
|
|
|
77
87
|
top: 50%;
|
|
78
88
|
transform: translateY(-50%);
|
|
79
89
|
line-height: 1;
|
|
90
|
+
font-size: @search-icon-font-size;
|
|
91
|
+
color: @search-icon-color;
|
|
80
92
|
}
|
|
81
93
|
&-selector {
|
|
82
94
|
cursor: text;
|
|
@@ -99,7 +111,7 @@
|
|
|
99
111
|
display: flex;
|
|
100
112
|
position: relative;
|
|
101
113
|
border-radius: 2px;
|
|
102
|
-
border: 1px solid @end-color;
|
|
114
|
+
border: 1px solid @search-end-color;
|
|
103
115
|
margin: 2px 12px 2px 0;
|
|
104
116
|
cursor: pointer;
|
|
105
117
|
max-width: 100%;
|
|
@@ -113,7 +125,7 @@
|
|
|
113
125
|
padding: 0 4px 0 4px;
|
|
114
126
|
flex-shrink: 0;
|
|
115
127
|
max-width: 170px;
|
|
116
|
-
background: @end-color;
|
|
128
|
+
background: @search-end-color;
|
|
117
129
|
line-height: 20px;
|
|
118
130
|
font-size: @quick-search-dropdown-font-size;
|
|
119
131
|
color: @white;
|
|
@@ -131,13 +143,13 @@
|
|
|
131
143
|
height: 14px;
|
|
132
144
|
width: 14px;
|
|
133
145
|
line-height: 1;
|
|
134
|
-
font-size: @middle-font-size;
|
|
146
|
+
font-size: @search-middle-font-size;
|
|
135
147
|
border-radius: 50%;
|
|
136
148
|
position: absolute;
|
|
137
149
|
right: -7px;
|
|
138
150
|
top: -6px;
|
|
139
151
|
display: none;
|
|
140
|
-
background: @
|
|
152
|
+
background: @search-color-background;
|
|
141
153
|
&:hover {
|
|
142
154
|
color: @quick-search-selected-tags-del-hover-bg;
|
|
143
155
|
}
|
|
@@ -152,6 +164,7 @@
|
|
|
152
164
|
left: 0;
|
|
153
165
|
transform: translateY(-50%);
|
|
154
166
|
color: @quick-search-selection-placeholder-color;
|
|
167
|
+
font-size: @search-placeholder-font-size;
|
|
155
168
|
.ellipsis();
|
|
156
169
|
}
|
|
157
170
|
|
|
@@ -178,6 +191,8 @@
|
|
|
178
191
|
border: none;
|
|
179
192
|
width: 100%;
|
|
180
193
|
background: transparent;
|
|
194
|
+
font-size: @search-input-font-size;
|
|
195
|
+
color: @search-color-text-primary;
|
|
181
196
|
&::placeholder {
|
|
182
197
|
font-size: 12px;
|
|
183
198
|
color: @quick-search-input-color;
|
|
@@ -191,8 +206,8 @@
|
|
|
191
206
|
z-index: @zIndex-popper;
|
|
192
207
|
font-size: @quick-search-dropdown-font-size;
|
|
193
208
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
194
|
-
border-radius: @radius-size;
|
|
195
|
-
background: @
|
|
209
|
+
border-radius: @search-radius-size;
|
|
210
|
+
background: @search-color-background;
|
|
196
211
|
overflow: auto;
|
|
197
212
|
&-scroll {
|
|
198
213
|
overflow-y: auto;
|
|
@@ -204,6 +219,7 @@
|
|
|
204
219
|
.dropdown-option();
|
|
205
220
|
.ellipsis();
|
|
206
221
|
color: @quick-search-dropdown-desc-color;
|
|
222
|
+
font-size: @search-dropdown-desc-font-size;
|
|
207
223
|
}
|
|
208
224
|
}
|
|
209
225
|
|
|
@@ -211,16 +227,14 @@
|
|
|
211
227
|
.dropdown-option();
|
|
212
228
|
.ellipsis();
|
|
213
229
|
cursor: pointer;
|
|
230
|
+
color: @search-color-text-primary;
|
|
231
|
+
|
|
214
232
|
&-tag {
|
|
215
|
-
color: @quick-search-dropdown-tag-color;
|
|
216
233
|
margin-right: 12px;
|
|
217
234
|
}
|
|
218
|
-
&-content {
|
|
219
|
-
color: @primary-text-color;
|
|
220
|
-
}
|
|
221
235
|
|
|
222
236
|
&:hover:not(&-selected) {
|
|
223
|
-
background: @disabled-contain-bg;
|
|
237
|
+
background: @search-disabled-contain-bg;
|
|
224
238
|
}
|
|
225
239
|
&-selected:not(&-disabled) {
|
|
226
240
|
background: @quick-search-dropdown-selected-bg;
|
|
@@ -241,7 +255,7 @@
|
|
|
241
255
|
display: flex;
|
|
242
256
|
align-items: center;
|
|
243
257
|
overflow: hidden;
|
|
244
|
-
padding-left: @quick-search-dropdown-option-padding;
|
|
258
|
+
padding-left: @quick-search-dropdown-option-padding-horizontal;
|
|
245
259
|
&-item {
|
|
246
260
|
width: 4px;
|
|
247
261
|
height: 4px;
|
|
@@ -251,7 +265,7 @@
|
|
|
251
265
|
}
|
|
252
266
|
|
|
253
267
|
&-item:nth-child(1) {
|
|
254
|
-
background-color: @
|
|
268
|
+
background-color: @search-dot-color-first;
|
|
255
269
|
}
|
|
256
270
|
&-item:nth-child(2) {
|
|
257
271
|
background-color: @spin-dot-color-second;
|
|
@@ -269,7 +283,7 @@
|
|
|
269
283
|
.@{search-panel-prefix-cls} {
|
|
270
284
|
width: @search-panel-width;
|
|
271
285
|
border-radius: 4px;
|
|
272
|
-
background: @
|
|
286
|
+
background: @search-color-background;
|
|
273
287
|
|
|
274
288
|
&-wrapper {
|
|
275
289
|
display: flex;
|
|
@@ -286,7 +300,7 @@
|
|
|
286
300
|
&-icon {
|
|
287
301
|
font-size: 18px;
|
|
288
302
|
margin: 0 8px;
|
|
289
|
-
transition: all calc(@transition-duration - 0.1s)
|
|
303
|
+
transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
290
304
|
}
|
|
291
305
|
}
|
|
292
306
|
|
|
@@ -314,7 +328,7 @@
|
|
|
314
328
|
border-top: 1px solid @search-panel-border-color;
|
|
315
329
|
border-bottom-right-radius: 4px;
|
|
316
330
|
border-bottom-left-radius: 4px;
|
|
317
|
-
transition: all calc(@transition-duration - 0.1s)
|
|
331
|
+
transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
318
332
|
|
|
319
333
|
&-result {
|
|
320
334
|
width: 300px;
|
|
@@ -355,11 +369,11 @@
|
|
|
355
369
|
}
|
|
356
370
|
|
|
357
371
|
&-type {
|
|
358
|
-
color: @
|
|
372
|
+
color: @search-color-text-third;
|
|
359
373
|
}
|
|
360
374
|
|
|
361
375
|
&-sub-title {
|
|
362
|
-
color: @
|
|
376
|
+
color: @search-color-text-third;
|
|
363
377
|
white-space: nowrap;
|
|
364
378
|
overflow: hidden;
|
|
365
379
|
text-overflow: ellipsis;
|
|
@@ -398,14 +412,14 @@
|
|
|
398
412
|
|
|
399
413
|
&-title {
|
|
400
414
|
margin-bottom: 10px;
|
|
401
|
-
font-size: @middle-font-size;
|
|
402
|
-
color: @
|
|
415
|
+
font-size: @search-middle-font-size;
|
|
416
|
+
color: @search-color-text-primary;
|
|
403
417
|
}
|
|
404
418
|
|
|
405
419
|
&-list {
|
|
406
420
|
margin-top: 4px;
|
|
407
|
-
color: @
|
|
408
|
-
font-size: @small-font-size;
|
|
421
|
+
color: @search-color-text-secondary;
|
|
422
|
+
font-size: @search-small-font-size;
|
|
409
423
|
line-height: 20px;
|
|
410
424
|
}
|
|
411
425
|
}
|
|
@@ -415,7 +429,7 @@
|
|
|
415
429
|
display: flex;
|
|
416
430
|
align-items: center;
|
|
417
431
|
padding-left: 17px;
|
|
418
|
-
font-size: @middle-font-size;
|
|
432
|
+
font-size: @search-middle-font-size;
|
|
419
433
|
cursor: pointer;
|
|
420
434
|
|
|
421
435
|
&:hover {
|
|
@@ -443,7 +457,7 @@
|
|
|
443
457
|
width: 18px;
|
|
444
458
|
height: 18px;
|
|
445
459
|
border-radius: 50%;
|
|
446
|
-
background: @end-color;
|
|
460
|
+
background: @search-end-color;
|
|
447
461
|
position: relative;
|
|
448
462
|
|
|
449
463
|
.@{kd-prefix}icon {
|
|
@@ -476,7 +490,7 @@
|
|
|
476
490
|
&.hidden {
|
|
477
491
|
opacity: 0;
|
|
478
492
|
visibility: hidden;
|
|
479
|
-
transition: all calc(@transition-duration - 0.1s)
|
|
493
|
+
transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
480
494
|
}
|
|
481
495
|
}
|
|
482
496
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
.dropdown-option() {
|
|
2
|
-
padding-left: @quick-search-dropdown-option-padding;
|
|
3
|
-
padding-right: @quick-search-dropdown-option-padding;
|
|
4
|
+
padding-left: @quick-search-dropdown-option-padding-horizontal;
|
|
5
|
+
padding-right: @quick-search-dropdown-option-padding-horizontal;
|
|
4
6
|
line-height: @quick-search-dropdown-option-height;
|
|
5
7
|
}
|
|
6
8
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@search-prefix: '--@{kd-prefix}-c-search';
|
|
4
|
+
|
|
5
|
+
// sizing
|
|
6
|
+
@search-icon-font-size: var(~'@{search-prefix}-icon-font-size', 16px);
|
|
7
|
+
@search-small-width: var(~'@{search-prefix}-sizing-width-small', 200px);
|
|
8
|
+
@search-middle-width: var(~'@{search-prefix}-sizing-width-middle', 260px);
|
|
9
|
+
@search-large-width: var(~'@{search-prefix}-sizing-width-large', 320px);
|
|
10
|
+
@quick-search-default-width: var(~'@{search-prefix}-sizing-width-default', 200px);
|
|
11
|
+
@quick-search-default-height: var(~'@{search-prefix}-sizing-height-default', 24px);
|
|
12
|
+
@quick-search-max-width: var(~'@{search-prefix}-sizing-width-max', 400px);
|
|
13
|
+
@search-panel-width: var(~'@{search-prefix}-panel-sizing-width', 800px);
|
|
14
|
+
@search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
|
|
15
|
+
@quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
|
|
16
|
+
@search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
|
|
17
|
+
|
|
18
|
+
// color
|
|
19
|
+
@search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
|
|
20
|
+
@search-color-theme: var(~'@{search-prefix}-color-theme', @color-theme);
|
|
21
|
+
@search-hover-color: var(~'@{search-prefix}-color-hover', #5582F3);
|
|
22
|
+
@quick-search-input-color: var(~'@{search-prefix}-input-color-text', @color-disabled);
|
|
23
|
+
@quick-search-border-bottom-color: var(~'@{search-prefix}-color-border', @color-border-strong-2);
|
|
24
|
+
@quick-search-dropdown-desc-color: var(~'@{search-prefix}-dropdown-desc-color-text', #999999);
|
|
25
|
+
@quick-search-npl-border-color: var(~'@{search-prefix}-npl-color-border', #D8D8D8);
|
|
26
|
+
@quick-search-selection-placeholder-color: var(~'@{search-prefix}-selection-placeholder-color-text', #B2B2B2);
|
|
27
|
+
@search-panel-hover-color: var(~'@{search-prefix}-panel-color-hover', #597cfc);
|
|
28
|
+
@search-panel-border-color: var(~'@{search-prefix}-panel-color-border', #E6E8ED);
|
|
29
|
+
@search-end-color: var(~'@{search-prefix}-color-end', @color-end);
|
|
30
|
+
@search-color-text-primary: var(~'@{search-prefix}-color-text-primary', @color-text-primary);
|
|
31
|
+
@search-color-text-secondary: var(~'@{search-prefix}-color-text-secondary', @color-text-secondary);
|
|
32
|
+
@search-color-text-third: var(~'@{search-prefix}-color-text-third', @color-text-third);
|
|
33
|
+
@search-dot-color-first: var(~'@{search-prefix}-dot-color-first', @color-logo-1);
|
|
34
|
+
@search-dot-color-second: var(~'@{search-prefix}-dot-color-second', @color-logo-2);
|
|
35
|
+
@search-dot-color-third: var(~'@{search-prefix}-dot-color-third', @color-logo-3);
|
|
36
|
+
@search-dot-color-fourth: var(~'@{search-prefix}-dot-color-fourth', @color-logo-4);
|
|
37
|
+
@search-placeholder-color-text: var(~'@{search-prefix}-placeholder-color-text', #B2B2B2);
|
|
38
|
+
@quick-search-selected-tags-del-hover-bg: var(~'@{search-prefix}-selected-tags-del-color-background-hover', #999999);
|
|
39
|
+
@quick-search-dropdown-selected-bg: var(~'@{search-prefix}-dropdown-tags-color-background-selected', #F2F6FF);
|
|
40
|
+
@quick-search-dropdown-hover-bg: var(~'@{search-prefix}-dropdown-color-background-hover', @color-hover);
|
|
41
|
+
@search-panel-hover-bg: var(~'@{search-prefix}-panel-color-background-hover', #eef3fe);
|
|
42
|
+
@search-color-background: var(~'@{search-prefix}-color-background', @color-background);
|
|
43
|
+
@search-disabled-contain-bg: var(~'@{search-prefix}-color-background-contain-disabled', @color-background-contain-disabled);
|
|
44
|
+
|
|
45
|
+
// font
|
|
46
|
+
@quick-search-dropdown-font-size: var(~'@{search-prefix}-dropdown-font-size', 12px);
|
|
47
|
+
@search-middle-font-size: var(~'@{search-prefix}-font-size-middle', @font-size-middle);
|
|
48
|
+
@search-small-font-size: var(~'@{search-prefix}-font-size-small', @font-size-small);
|
|
49
|
+
@search-placeholder-font-size: var(~'@{search-prefix}-placeholder-font-size', 12px);
|
|
50
|
+
@search-dropdown-desc-font-size: var(~'@{search-prefix}-dropdown-desc-font-size', 12px);
|
|
51
|
+
@search-input-font-size: var(~'@{search-prefix}-input-font-size', 12px);
|
|
52
|
+
|
|
53
|
+
// spacing
|
|
54
|
+
@quick-search-dropdown-option-padding-horizontal: var(~'@{search-prefix}-dropdown-option-spacing-padding-horizontal', 12px);
|
|
55
|
+
|
|
56
|
+
// motion
|
|
57
|
+
@search-transition-duration: var(~'@{search-prefix}-motion-duration', @duration-promptly);
|
|
58
|
+
|
|
59
|
+
// radius
|
|
60
|
+
@search-radius-size: var(~'@{search-prefix}-radius-border', @radius-border);
|
package/es/select/select.js
CHANGED
|
@@ -419,14 +419,6 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
419
419
|
setMulOptions(_toConsumableArray(selectMulOpts));
|
|
420
420
|
onChange && onChange(labelInValue ? selectMulOpts : selectedVal);
|
|
421
421
|
e.stopPropagation();
|
|
422
|
-
}; // 控制下列面板的显示
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
var handleDropdownShow = function handleDropdownShow() {
|
|
426
|
-
if (!optionShow && !disabled) {
|
|
427
|
-
setOptionShow(true);
|
|
428
|
-
onVisibleChange && onVisibleChange(true);
|
|
429
|
-
}
|
|
430
422
|
}; // 渲染后缀图标
|
|
431
423
|
|
|
432
424
|
|
|
@@ -627,8 +619,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
627
619
|
return /*#__PURE__*/React.createElement("div", {
|
|
628
620
|
className: selectCls,
|
|
629
621
|
ref: selectRef,
|
|
630
|
-
style: style
|
|
631
|
-
onClick: handleDropdownShow
|
|
622
|
+
style: style
|
|
632
623
|
}, /*#__PURE__*/React.createElement("span", {
|
|
633
624
|
className: selectionCls,
|
|
634
625
|
onClick: handleClick,
|
|
@@ -661,10 +652,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
661
652
|
};
|
|
662
653
|
|
|
663
654
|
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
onVisibleChange && onVisibleChange(visible);
|
|
667
|
-
}
|
|
655
|
+
props.visible === undefined && setOptionShow(visible);
|
|
656
|
+
onVisibleChange && onVisibleChange(visible);
|
|
668
657
|
};
|
|
669
658
|
|
|
670
659
|
var popperProps = _extends(_extends({}, selectProps), {
|
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
|
@@ -273,7 +282,7 @@
|
|
|
273
282
|
transition: opacity 0.15s ease;
|
|
274
283
|
}
|
|
275
284
|
.kd-select-icon-clear:hover {
|
|
276
|
-
color: #5582f3;
|
|
285
|
+
color: var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
277
286
|
}
|
|
278
287
|
.kd-select-selection-search {
|
|
279
288
|
position: absolute;
|
|
@@ -296,10 +305,10 @@
|
|
|
296
305
|
cursor: pointer;
|
|
297
306
|
}
|
|
298
307
|
.kd-select-focused {
|
|
299
|
-
border-color: #
|
|
308
|
+
border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
300
309
|
}
|
|
301
310
|
.kd-select-placeholder {
|
|
302
|
-
color: #999;
|
|
311
|
+
color: var(--kd-c-select-placeholder-color-text, var(--kd-g-color-text-third, #999));
|
|
303
312
|
overflow: hidden;
|
|
304
313
|
white-space: nowrap;
|
|
305
314
|
text-overflow: ellipsis;
|
|
@@ -308,18 +317,18 @@
|
|
|
308
317
|
border: none;
|
|
309
318
|
}
|
|
310
319
|
.kd-select-underline {
|
|
311
|
-
border-bottom: 1px solid #999;
|
|
320
|
+
border-bottom: 1px solid var(--kd-c-select-color-border, var(--kd-g-color-input, #999));
|
|
312
321
|
}
|
|
313
322
|
.kd-select-underline:hover:not(.kd-select-multiple-disabled):not(.kd-select-single-disabled) {
|
|
314
|
-
border-bottom: 1px solid #5582f3;
|
|
323
|
+
border-bottom: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
315
324
|
}
|
|
316
325
|
.kd-select-bordered {
|
|
317
|
-
border: 1px solid #d9d9d9;
|
|
326
|
+
border: 1px solid var(--kd-c-select-border-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
318
327
|
padding-left: 8px !important;
|
|
319
328
|
border-radius: 2px;
|
|
320
329
|
}
|
|
321
330
|
.kd-select-bordered:hover:not(.kd-select-multiple-disabled):not(.kd-select-single-disabled) {
|
|
322
|
-
border: 1px solid #5582f3;
|
|
331
|
+
border: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
323
332
|
}
|
|
324
333
|
.kd-select-wrapper {
|
|
325
334
|
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
@@ -344,16 +353,16 @@
|
|
|
344
353
|
.kd-select-dropdown {
|
|
345
354
|
display: block;
|
|
346
355
|
left: 0;
|
|
347
|
-
z-index: 1050;
|
|
356
|
+
z-index: var(--kd-c-select-z-index, var(--kd-g-z-index-popper, 1050));
|
|
348
357
|
-webkit-box-sizing: border-box;
|
|
349
358
|
box-sizing: border-box;
|
|
350
359
|
padding: 4px 0;
|
|
351
360
|
margin: 0;
|
|
352
361
|
overflow: auto;
|
|
353
|
-
font-size: 12px;
|
|
362
|
+
font-size: var(--kd-c-select-dropdown-font-size, 12px);
|
|
354
363
|
font-variant: initial;
|
|
355
|
-
background-color: #fff;
|
|
356
|
-
border-radius: 2px;
|
|
364
|
+
background-color: var(--kd-c-select-dropdown-color-background, var(--kd-g-color-background, #fff));
|
|
365
|
+
border-radius: var(--kd-c-select-radius-border, var(--kd-g-radius-border, 2px));
|
|
357
366
|
outline: none;
|
|
358
367
|
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
359
368
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
@@ -374,11 +383,11 @@
|
|
|
374
383
|
position: relative;
|
|
375
384
|
display: block;
|
|
376
385
|
font-weight: normal;
|
|
377
|
-
font-size: 12px;
|
|
378
|
-
min-height: 22px;
|
|
386
|
+
font-size: var(--kd-c-select-dropdown-font-size, 12px);
|
|
387
|
+
min-height: var(--kd-c-select-item-sizing-height, 22px);
|
|
379
388
|
padding: 5px 12px;
|
|
380
|
-
color: #212121;
|
|
381
|
-
line-height: 22px;
|
|
389
|
+
color: var(--kd-c-select-footer-color-text, var(--kd-g-color-text-primary, #212121));
|
|
390
|
+
line-height: var(--kd-c-select-dropdown-line-height, 22px);
|
|
382
391
|
cursor: pointer;
|
|
383
392
|
-webkit-transition: background 0.3s ease;
|
|
384
393
|
transition: background 0.3s ease;
|
|
@@ -398,37 +407,37 @@
|
|
|
398
407
|
text-overflow: ellipsis;
|
|
399
408
|
}
|
|
400
409
|
.kd-select-item-option:hover:not(.kd-select-item-option-selected):not(.kd-select-item-option-disabled) {
|
|
401
|
-
background-color: #f5f5f5;
|
|
410
|
+
background-color: var(--kd-c-select-color-background, var(--kd-g-color-hover, #f5f5f5));
|
|
402
411
|
}
|
|
403
412
|
.kd-select-item-option-active:not(.kd-select-item-option-disabled) {
|
|
404
|
-
background-color: #f5f5f5;
|
|
413
|
+
background-color: var(--kd-c-select-color-background, var(--kd-g-color-hover, #f5f5f5));
|
|
405
414
|
}
|
|
406
415
|
.kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
|
|
407
|
-
color: #276ff5;
|
|
408
|
-
background-color: #f2f9ff;
|
|
416
|
+
color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-ongoing, #276ff5));
|
|
417
|
+
background-color: var(--kd-c-select-color-background-selected, #f2f9ff);
|
|
409
418
|
}
|
|
410
419
|
.kd-select-item-option-disabled {
|
|
411
|
-
color: #b2b2b2;
|
|
420
|
+
color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
412
421
|
cursor: not-allowed;
|
|
413
|
-
background-color: #f5f5f5;
|
|
422
|
+
background-color: var(--kd-c-select-item-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
414
423
|
}
|
|
415
424
|
.kd-select-size-small {
|
|
416
|
-
min-height: 24px;
|
|
417
|
-
max-height:
|
|
418
|
-
line-height: 14px;
|
|
419
|
-
font-size: 12px;
|
|
425
|
+
min-height: var(--kd-c-select-sizing-height-small, 24px);
|
|
426
|
+
max-height: calc(var(--kd-c-select-sizing-height-small, 24px) * 3 - 10px);
|
|
427
|
+
line-height: var(--kd-c-select-line-height-small, 14px);
|
|
428
|
+
font-size: var(--kd-c-select-font-size-small, 12px);
|
|
420
429
|
}
|
|
421
430
|
.kd-select-size-middle {
|
|
422
|
-
min-height: 30px;
|
|
423
|
-
max-height:
|
|
424
|
-
line-height: 22px;
|
|
425
|
-
font-size: 14px;
|
|
431
|
+
min-height: var(--kd-c-select-sizing-height-middle, 30px);
|
|
432
|
+
max-height: calc(var(--kd-c-select-sizing-height-middle, 30px) * 3 - 10px);
|
|
433
|
+
line-height: var(--kd-c-select-line-height-middle, 22px);
|
|
434
|
+
font-size: var(--kd-c-select-font-size-middle, 14px);
|
|
426
435
|
}
|
|
427
436
|
.kd-select-size-large {
|
|
428
|
-
min-height: 36px;
|
|
429
|
-
max-height:
|
|
430
|
-
line-height: 28px;
|
|
431
|
-
font-size: 16px;
|
|
437
|
+
min-height: var(--kd-c-select-sizing-height-large, 36px);
|
|
438
|
+
max-height: calc(var(--kd-c-select-sizing-height-large, 36px) * 3 - 10px);
|
|
439
|
+
line-height: var(--kd-c-select-line-height-large, 28px);
|
|
440
|
+
font-size: var(--kd-c-select-font-size-large, 16px);
|
|
432
441
|
}
|
|
433
442
|
.kd-select-suffix {
|
|
434
443
|
right: 10px;
|
|
@@ -450,7 +459,7 @@
|
|
|
450
459
|
margin-left: 4px;
|
|
451
460
|
}
|
|
452
461
|
.kd-select-single-focused {
|
|
453
|
-
border-color: #
|
|
462
|
+
border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
454
463
|
}
|
|
455
464
|
.kd-select-single-disabled {
|
|
456
465
|
background-color: #f5f5f5;
|
|
@@ -562,10 +571,10 @@
|
|
|
562
571
|
align-items: center;
|
|
563
572
|
}
|
|
564
573
|
.kd-select-multiple .kd-select-wrapper:hover:not(.kd-select-multiple-disabled) {
|
|
565
|
-
border-bottom: 1px solid #5582f3;
|
|
574
|
+
border-bottom: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
566
575
|
}
|
|
567
576
|
.kd-select-multiple-footer {
|
|
568
|
-
color: #212121;
|
|
577
|
+
color: var(--kd-c-select-footer-color-text, var(--kd-g-color-text-primary, #212121));
|
|
569
578
|
display: -webkit-inline-box;
|
|
570
579
|
display: -ms-inline-flexbox;
|
|
571
580
|
display: inline-flex;
|
|
@@ -585,7 +594,7 @@
|
|
|
585
594
|
padding-left: 12px;
|
|
586
595
|
}
|
|
587
596
|
.kd-select-multiple-footer-hadSelected > span {
|
|
588
|
-
color: #0e5fd8;
|
|
597
|
+
color: var(--kd-c-select-footer-color-text-selected, var(--kd-g-color-text-link, #0e5fd8));
|
|
589
598
|
padding: 0 2px;
|
|
590
599
|
}
|
|
591
600
|
.kd-select.topLeft.hidden,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
opacity: 0;
|
|
49
49
|
transition: opacity 0.15s ease;
|
|
50
50
|
&:hover {
|
|
51
|
-
color: @
|
|
51
|
+
color: @select-g-color-border-hover;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
&-underline {
|
|
91
|
-
border-bottom: 1px solid @
|
|
91
|
+
border-bottom: 1px solid @select-g-color-border;
|
|
92
92
|
&:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
|
|
93
|
-
border-bottom: 1px solid
|
|
93
|
+
border-bottom: 1px solid @select-g-color-border-hover;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&-bordered {
|
|
98
|
-
border: 1px solid @
|
|
98
|
+
border: 1px solid @select-border-g-color-border;
|
|
99
99
|
padding-left: 8px !important;
|
|
100
100
|
border-radius: 2px;
|
|
101
101
|
&:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
|
|
102
|
-
border: 1px solid
|
|
102
|
+
border: 1px solid @select-g-color-border-hover;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
&-dropdown {
|
|
121
121
|
display: block;
|
|
122
122
|
left: 0;
|
|
123
|
-
z-index: @
|
|
123
|
+
z-index: @select-z-index;
|
|
124
124
|
box-sizing: border-box;
|
|
125
125
|
padding: 4px 0; // update
|
|
126
126
|
margin: 0;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
font-size: @select-list-font-size; // update
|
|
129
129
|
font-variant: initial;
|
|
130
130
|
background-color: @select-dropdown-bg;
|
|
131
|
-
border-radius: @radius-
|
|
131
|
+
border-radius: @select-g-radius-border;
|
|
132
132
|
outline: none;
|
|
133
133
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
134
134
|
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
&-disabled {
|
|
182
|
-
color: @
|
|
182
|
+
color: @select-g-item-text-color-disabled;
|
|
183
183
|
cursor: not-allowed;
|
|
184
184
|
background-color: @select-disabled-option-bg;
|
|
185
185
|
}
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
}
|
|
330
330
|
.@{select-prefix-cls}-wrapper {
|
|
331
331
|
&:hover:not(.@{select-prefix-cls}-multiple-disabled) {
|
|
332
|
-
border-bottom: 1px solid
|
|
332
|
+
border-bottom: 1px solid @select-g-color-border-hover;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
color: #999999;
|
|
349
349
|
padding-left: 12px;
|
|
350
350
|
> span {
|
|
351
|
-
color:
|
|
351
|
+
color: @select-footer-g-text-color-selected;
|
|
352
352
|
padding: 0 2px;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
.item() {
|
|
2
4
|
position: relative;
|
|
3
5
|
display: block;
|
|
@@ -11,12 +13,12 @@
|
|
|
11
13
|
|
|
12
14
|
.focusColor() {
|
|
13
15
|
// border-bottom: 1px solid #5582F3;
|
|
14
|
-
border-color:
|
|
16
|
+
border-color: @select-g-color-border-foucs !important;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.select-input-size(@height, @maxHeight, @lineHeight, @fontSize) {
|
|
18
20
|
min-height: @height;
|
|
19
|
-
max-height: @maxHeight * 3 - 10px;
|
|
21
|
+
max-height: calc(@maxHeight * 3 - 10px);
|
|
20
22
|
line-height: @lineHeight;
|
|
21
23
|
font-size: @fontSize;
|
|
22
24
|
}
|
|
@@ -27,11 +29,6 @@
|
|
|
27
29
|
text-overflow: ellipsis;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
.item-size(@height) {
|
|
31
|
-
height: @height - 10px;
|
|
32
|
-
line-height: @height - 10px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
32
|
@keyframes SlideDownIn {
|
|
36
33
|
0% {
|
|
37
34
|
transform: scaleY(0.8);
|