@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
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -99,7 +108,7 @@
|
|
|
99
108
|
position: relative;
|
|
100
109
|
width: 100%;
|
|
101
110
|
height: 100%;
|
|
102
|
-
border: 1px solid #
|
|
111
|
+
border: var(--kd-c-split-panel-wrapper-sizing-border, 1px) solid var(--kd-c-split-panel-color-border, #d9d9d9);
|
|
103
112
|
overflow: hidden;
|
|
104
113
|
}
|
|
105
114
|
.kd-split-panel {
|
|
@@ -115,11 +124,11 @@
|
|
|
115
124
|
}
|
|
116
125
|
.kd-split-panel.left-panel {
|
|
117
126
|
left: 0;
|
|
118
|
-
margin-right:
|
|
127
|
+
margin-right: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
|
|
119
128
|
}
|
|
120
129
|
.kd-split-panel.right-panel {
|
|
121
130
|
right: 0;
|
|
122
|
-
margin-left:
|
|
131
|
+
margin-left: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
|
|
123
132
|
}
|
|
124
133
|
.kd-split-panel.top-panel,
|
|
125
134
|
.kd-split-panel.bottom-panel {
|
|
@@ -128,11 +137,11 @@
|
|
|
128
137
|
}
|
|
129
138
|
.kd-split-panel.top-panel {
|
|
130
139
|
top: 0;
|
|
131
|
-
margin-bottom:
|
|
140
|
+
margin-bottom: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
|
|
132
141
|
}
|
|
133
142
|
.kd-split-panel.bottom-panel {
|
|
134
143
|
bottom: 0;
|
|
135
|
-
margin-top:
|
|
144
|
+
margin-top: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
|
|
136
145
|
}
|
|
137
146
|
.kd-split-panel-moving {
|
|
138
147
|
-webkit-user-select: none;
|
|
@@ -149,8 +158,8 @@
|
|
|
149
158
|
transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
150
159
|
}
|
|
151
160
|
.kd-split-trigger-con.is-active .kd-split-trigger-arrow {
|
|
152
|
-
border-color: #
|
|
153
|
-
background: #
|
|
161
|
+
border-color: var(--kd-c-split-panel-arrow-color-background, #999);
|
|
162
|
+
background: var(--kd-c-split-panel-arrow-color-background, #999);
|
|
154
163
|
color: white;
|
|
155
164
|
}
|
|
156
165
|
.kd-split-trigger-con.can-drag .kd-split-trigger-vertical {
|
|
@@ -163,17 +172,17 @@
|
|
|
163
172
|
cursor: not-allowed;
|
|
164
173
|
}
|
|
165
174
|
.kd-split-trigger-con:not(.is-disabled):hover .kd-split-trigger-arrow {
|
|
166
|
-
border-color: #
|
|
175
|
+
border-color: var(--kd-c-split-panel-arrow-color-background, #999);
|
|
167
176
|
}
|
|
168
177
|
.kd-split-trigger-con:not(.is-disabled) .kd-split-trigger-arrow:hover {
|
|
169
178
|
cursor: pointer;
|
|
170
179
|
background: #fff !important;
|
|
171
|
-
color: #5582f3 !important;
|
|
172
|
-
border-color: #5582f3 !important;
|
|
180
|
+
color: var(--kd-c-split-panel-arrow-color-background-hover, var(--kd-g-color-theme, #5582f3)) !important;
|
|
181
|
+
border-color: var(--kd-c-split-panel-arrow-color-background-hover, var(--kd-g-color-theme, #5582f3)) !important;
|
|
173
182
|
}
|
|
174
183
|
.kd-split-trigger-arrow {
|
|
175
184
|
position: absolute;
|
|
176
|
-
color: #
|
|
185
|
+
color: var(--kd-c-split-panel-arrow-color-background, #999);
|
|
177
186
|
display: -webkit-inline-box;
|
|
178
187
|
display: -ms-inline-flexbox;
|
|
179
188
|
display: inline-flex;
|
|
@@ -185,76 +194,58 @@
|
|
|
185
194
|
justify-content: center;
|
|
186
195
|
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
187
196
|
transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
197
|
+
-webkit-box-sizing: border-box;
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
border: var(--kd-c-split-panel-arrow-sizing-border, 1px) solid transparent;
|
|
188
200
|
}
|
|
189
201
|
.kd-split-trigger-arrow .kdicon {
|
|
190
|
-
display: -webkit-inline-box;
|
|
191
|
-
display: -ms-inline-flexbox;
|
|
192
|
-
display: inline-flex;
|
|
193
|
-
-webkit-box-align: center;
|
|
194
|
-
-ms-flex-align: center;
|
|
195
|
-
align-items: center;
|
|
196
|
-
-webkit-box-pack: center;
|
|
197
|
-
-ms-flex-pack: center;
|
|
198
|
-
justify-content: center;
|
|
199
|
-
width: 12px;
|
|
200
|
-
height: 12px;
|
|
201
202
|
font-size: 12px;
|
|
202
203
|
}
|
|
203
204
|
.kd-split-trigger-arrow.is-vertical {
|
|
204
|
-
width:
|
|
205
|
-
height: 16px;
|
|
205
|
+
width: var(--kd-c-split-panel-arrow-sizing-width-vertical, 16px);
|
|
206
|
+
height: var(--kd-c-split-panel-arrow-sizing-height-vertical, 16px);
|
|
206
207
|
top: 50%;
|
|
207
208
|
-webkit-transform: translate(0, -50%);
|
|
208
209
|
transform: translate(0, -50%);
|
|
209
210
|
}
|
|
210
|
-
.kd-split-trigger-arrow.is-vertical .kdicon {
|
|
211
|
-
height: 12px;
|
|
212
|
-
}
|
|
213
211
|
.kd-split-trigger-arrow.is-horizontal {
|
|
214
|
-
width: 16px;
|
|
215
|
-
height:
|
|
212
|
+
width: var(--kd-c-split-panel-arrow-sizing-width-horizontal, 16px);
|
|
213
|
+
height: var(--kd-c-split-panel-arrow-sizing-height-horizontal, 16px);
|
|
216
214
|
left: 50%;
|
|
217
215
|
-webkit-transform: translate(-50%, 0);
|
|
218
216
|
transform: translate(-50%, 0);
|
|
219
217
|
}
|
|
220
|
-
.kd-split-trigger-arrow.is-horizontal .kdicon {
|
|
221
|
-
width: 12px;
|
|
222
|
-
}
|
|
223
218
|
.kd-split-trigger-arrow.top {
|
|
224
219
|
bottom: 100%;
|
|
225
|
-
border: 1px solid transparent;
|
|
226
220
|
border-bottom: none;
|
|
227
|
-
border-radius:
|
|
221
|
+
border-radius: var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) 0 0;
|
|
228
222
|
}
|
|
229
223
|
.kd-split-trigger-arrow.bottom {
|
|
230
224
|
top: 100%;
|
|
231
|
-
border: 1px solid transparent;
|
|
232
225
|
border-top: none;
|
|
233
|
-
border-radius: 0 0
|
|
226
|
+
border-radius: 0 0 var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) var(--kd-c-split-panel-arrow-radius-border-vertical, 8px);
|
|
234
227
|
}
|
|
235
228
|
.kd-split-trigger-arrow.left {
|
|
236
229
|
right: 100%;
|
|
237
|
-
border: 1px solid transparent;
|
|
238
230
|
border-right: none;
|
|
239
|
-
border-radius:
|
|
231
|
+
border-radius: var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) 0 0 var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px);
|
|
240
232
|
}
|
|
241
233
|
.kd-split-trigger-arrow.right {
|
|
242
234
|
left: 100%;
|
|
243
|
-
border: 1px solid transparent;
|
|
244
235
|
border-left: none;
|
|
245
|
-
border-radius: 0
|
|
236
|
+
border-radius: 0 var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) 0;
|
|
246
237
|
}
|
|
247
238
|
.kd-split-trigger-vertical {
|
|
248
|
-
width: 1px;
|
|
239
|
+
width: var(--kd-c-split-panel-line-sizing-border, 1px);
|
|
249
240
|
height: 100%;
|
|
250
|
-
background: #
|
|
241
|
+
background: var(--kd-c-split-panel-line-color-background, #d9d9d9);
|
|
251
242
|
border-top: none;
|
|
252
243
|
border-bottom: none;
|
|
253
244
|
}
|
|
254
245
|
.kd-split-trigger-horizontal {
|
|
255
|
-
height: 1px;
|
|
246
|
+
height: var(--kd-c-split-panel-line-sizing-border, 1px);
|
|
256
247
|
width: 100%;
|
|
257
|
-
background: #
|
|
248
|
+
background: var(--kd-c-split-panel-line-color-background, #d9d9d9);
|
|
258
249
|
border-left: none;
|
|
259
250
|
border-right: none;
|
|
260
251
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
@import '../../style/themes/index';
|
|
3
3
|
@import '../../style/mixins/index';
|
|
4
|
+
@import './token.less';
|
|
4
5
|
|
|
5
6
|
@split-prefix-cls: ~'@{kd-prefix}-split';
|
|
6
|
-
@split-panel-padding-base: @split-panel-trigger-line-width / 2;
|
|
7
|
+
@split-panel-padding-base: calc(@split-panel-trigger-line-width / 2);
|
|
7
8
|
|
|
8
9
|
.@{split-prefix-cls} {
|
|
9
10
|
&-wrapper {
|
|
10
11
|
position: relative;
|
|
11
12
|
width: 100%;
|
|
12
13
|
height: 100%;
|
|
13
|
-
border:
|
|
14
|
+
border: @split-panel-wrapper-border-width solid @split-panel-trigger-border-color;
|
|
14
15
|
overflow: hidden;
|
|
15
16
|
}
|
|
16
17
|
&-panel {
|
|
@@ -56,8 +57,8 @@
|
|
|
56
57
|
transition: all calc(@transition-duration - 0.1s) @ease-out;
|
|
57
58
|
&.is-active {
|
|
58
59
|
.@{split-prefix-cls}-trigger-arrow {
|
|
59
|
-
border-color: @split-panel-trigger-
|
|
60
|
-
background: @split-panel-trigger-
|
|
60
|
+
border-color: @split-panel-trigger-arrow-color;
|
|
61
|
+
background: @split-panel-trigger-arrow-color;
|
|
61
62
|
color: white;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
&:not(.is-disabled) {
|
|
78
79
|
&:hover{
|
|
79
80
|
.@{split-prefix-cls}-trigger-arrow {
|
|
80
|
-
border-color: @split-panel-trigger-
|
|
81
|
+
border-color: @split-panel-trigger-arrow-color;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
.@{split-prefix-cls}-trigger-arrow:hover {
|
|
@@ -95,61 +96,42 @@
|
|
|
95
96
|
align-items: center;
|
|
96
97
|
justify-content: center;
|
|
97
98
|
transition: all calc(@transition-duration - 0.1s) @ease-out;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
border: @split-panel-arrow-border-width solid transparent;
|
|
98
101
|
.@{kd-prefix}icon {
|
|
99
|
-
display: inline-flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
width: 12px;
|
|
103
|
-
height: 12px;
|
|
104
102
|
font-size: 12px;
|
|
105
103
|
}
|
|
106
104
|
&.is-vertical {
|
|
107
|
-
width:
|
|
108
|
-
height:
|
|
105
|
+
width: @split-panel-arrow-vertical-width;
|
|
106
|
+
height: @split-panel-arrow-vertical-height;
|
|
109
107
|
top: 50%;
|
|
110
108
|
transform: translate(0, -50%);
|
|
111
|
-
.@{kd-prefix}icon {
|
|
112
|
-
height: 12px;
|
|
113
|
-
// position: absolute;
|
|
114
|
-
// top: 50%;
|
|
115
|
-
// transform: translate(0, -50%);
|
|
116
|
-
}
|
|
117
109
|
}
|
|
118
110
|
&.is-horizontal {
|
|
119
|
-
width:
|
|
120
|
-
height:
|
|
111
|
+
width: @split-panel-arrow-horizontal-width;
|
|
112
|
+
height: @split-panel-arrow-horizontal-height;
|
|
121
113
|
left: 50%;
|
|
122
114
|
transform: translate(-50%, 0);
|
|
123
|
-
.@{kd-prefix}icon {
|
|
124
|
-
width: 12px;
|
|
125
|
-
// position: absolute;
|
|
126
|
-
// left: 50%;
|
|
127
|
-
// transform: translate(-50%, 0);
|
|
128
|
-
}
|
|
129
115
|
}
|
|
130
116
|
&.top {
|
|
131
117
|
bottom: 100%;
|
|
132
|
-
border: 1px solid transparent;
|
|
133
118
|
border-bottom: none;
|
|
134
|
-
border-radius:
|
|
119
|
+
border-radius: @split-panel-arrow-vertical-radius @split-panel-arrow-vertical-radius 0 0;
|
|
135
120
|
}
|
|
136
121
|
&.bottom {
|
|
137
122
|
top: 100%;
|
|
138
|
-
border: 1px solid transparent;
|
|
139
123
|
border-top: none;
|
|
140
|
-
border-radius: 0 0
|
|
124
|
+
border-radius: 0 0 @split-panel-arrow-vertical-radius @split-panel-arrow-vertical-radius;
|
|
141
125
|
}
|
|
142
126
|
&.left {
|
|
143
127
|
right: 100%;
|
|
144
|
-
border: 1px solid transparent;
|
|
145
128
|
border-right: none;
|
|
146
|
-
border-radius:
|
|
129
|
+
border-radius: @split-panel-arrow-horizontal-radius 0 0 @split-panel-arrow-horizontal-radius;
|
|
147
130
|
}
|
|
148
131
|
&.right {
|
|
149
132
|
left: 100%;
|
|
150
|
-
border: 1px solid transparent;
|
|
151
133
|
border-left: none;
|
|
152
|
-
border-radius: 0
|
|
134
|
+
border-radius: 0 @split-panel-arrow-horizontal-radius @split-panel-arrow-horizontal-radius 0;
|
|
153
135
|
}
|
|
154
136
|
}
|
|
155
137
|
&-vertical {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@split-panel-custom-prefix: ~'--@{kd-prefix}-c-split-panel';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@split-panel-trigger-border-color: var(~'@{split-panel-custom-prefix}-color-border', #d9d9d9);
|
|
7
|
+
@split-panel-trigger-arrow-color: var(~'@{split-panel-custom-prefix}-arrow-color-background', #999);
|
|
8
|
+
@split-panel-trigger-arrow-hover-color: var(~'@{split-panel-custom-prefix}-arrow-color-background-hover', @color-theme);
|
|
9
|
+
@split-panel-trigger-line-color: var(~'@{split-panel-custom-prefix}-line-color-background', #d9d9d9);
|
|
10
|
+
|
|
11
|
+
// radius
|
|
12
|
+
@split-panel-arrow-vertical-radius: var(~'@{split-panel-custom-prefix}-arrow-radius-border-vertical', 8px);
|
|
13
|
+
@split-panel-arrow-horizontal-radius: var(~'@{split-panel-custom-prefix}-arrow-radius-border-horizontal', 8px);
|
|
14
|
+
|
|
15
|
+
// sizing
|
|
16
|
+
@split-panel-wrapper-border-width: var(~'@{split-panel-custom-prefix}-wrapper-sizing-border', 1px);
|
|
17
|
+
@split-panel-trigger-line-width: var(~'@{split-panel-custom-prefix}-line-sizing-border', 1px);
|
|
18
|
+
@split-panel-arrow-border-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-border', 1px);
|
|
19
|
+
@split-panel-arrow-vertical-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-width-vertical', 16px);
|
|
20
|
+
@split-panel-arrow-vertical-height: var(~'@{split-panel-custom-prefix}-arrow-sizing-height-vertical', 16px);
|
|
21
|
+
@split-panel-arrow-horizontal-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-width-horizontal', 16px);
|
|
22
|
+
@split-panel-arrow-horizontal-height: var(~'@{split-panel-custom-prefix}-arrow-sizing-height-horizontal', 16px);
|
|
23
|
+
|
|
@@ -92,6 +92,27 @@
|
|
|
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 */
|
|
104
|
+
.kd-inputNumber {
|
|
105
|
+
width: 100px;
|
|
106
|
+
height: var(--kd-c-stepper-input-middle-sizing-height, 28px);
|
|
107
|
+
}
|
|
108
|
+
.kd-inputNumber input {
|
|
109
|
+
text-align: center;
|
|
110
|
+
color: var(--kd-c-stepper-input-color, var(--kd-g-color-text-primary, #212121));
|
|
111
|
+
margin: 0 4px;
|
|
112
|
+
}
|
|
113
|
+
.kd-inputNumber-icon {
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
}
|
|
95
116
|
.kd-inputNumber-baseStep {
|
|
96
117
|
display: -webkit-box;
|
|
97
118
|
display: -ms-flexbox;
|
|
@@ -108,21 +129,25 @@
|
|
|
108
129
|
cursor: pointer;
|
|
109
130
|
}
|
|
110
131
|
.kd-inputNumber-baseStep-small {
|
|
111
|
-
width: 20px;
|
|
132
|
+
width: var(--kd-c-stepper-input-small-sizing-height, 20px);
|
|
112
133
|
}
|
|
113
134
|
.kd-inputNumber-baseStep-middle {
|
|
114
|
-
width:
|
|
135
|
+
width: var(--kd-c-stepper-input-middle-sizing-height, 28px);
|
|
115
136
|
}
|
|
116
137
|
.kd-inputNumber-baseStep-large {
|
|
117
|
-
width: 36px;
|
|
138
|
+
width: var(--kd-c-stepper-input-large-sizing-height, 36px);
|
|
118
139
|
}
|
|
119
140
|
.kd-inputNumber-baseStep .kd-inputNumber-icon {
|
|
120
|
-
color: #666;
|
|
121
|
-
-webkit-transition: color 0.3s;
|
|
122
|
-
transition: color 0.3s;
|
|
141
|
+
color: var(--kd-c-stepper-icon-color, var(--kd-g-color-text-secondary, #666));
|
|
142
|
+
-webkit-transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
|
|
143
|
+
transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
}
|
|
146
|
+
.kd-inputNumber-baseStep .kd-inputNumber-icon:hover {
|
|
147
|
+
color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
|
|
123
148
|
}
|
|
124
149
|
.kd-inputNumber-baseStep:hover:not(.kd-inputNumber-baseStep-disabled) .kd-inputNumber-icon {
|
|
125
|
-
color: #
|
|
150
|
+
color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
|
|
126
151
|
}
|
|
127
152
|
.kd-inputNumber-baseStep-disabled {
|
|
128
153
|
cursor: not-allowed;
|
|
@@ -131,34 +156,34 @@
|
|
|
131
156
|
color: unset !important;
|
|
132
157
|
}
|
|
133
158
|
.kd-inputNumber-baseStep-decrease {
|
|
134
|
-
border-right: 1px solid #d9d9d9;
|
|
159
|
+
border-right: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
135
160
|
}
|
|
136
161
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-small,
|
|
137
162
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-small {
|
|
138
|
-
margin-left: -9px;
|
|
163
|
+
margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
139
164
|
}
|
|
140
165
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-middle,
|
|
141
166
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-middle {
|
|
142
|
-
margin-left: -9px;
|
|
167
|
+
margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
143
168
|
}
|
|
144
169
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-large,
|
|
145
170
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-large {
|
|
146
|
-
margin-left: -9px;
|
|
171
|
+
margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
147
172
|
}
|
|
148
173
|
.kd-inputNumber-baseStep-increase {
|
|
149
|
-
border-left: 1px solid #d9d9d9;
|
|
174
|
+
border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
150
175
|
}
|
|
151
176
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-small,
|
|
152
177
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-small {
|
|
153
|
-
margin-right: -9px;
|
|
178
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
154
179
|
}
|
|
155
180
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-middle,
|
|
156
181
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-middle {
|
|
157
|
-
margin-right: -9px;
|
|
182
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
158
183
|
}
|
|
159
184
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-large,
|
|
160
185
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-large {
|
|
161
|
-
margin-right: -9px;
|
|
186
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
162
187
|
}
|
|
163
188
|
.kd-inputNumber-embedStep {
|
|
164
189
|
display: -webkit-box;
|
|
@@ -173,22 +198,22 @@
|
|
|
173
198
|
justify-content: center;
|
|
174
199
|
height: 100%;
|
|
175
200
|
border-radius: 0 1px 1px 0;
|
|
176
|
-
background-color: #f6f7f9;
|
|
201
|
+
background-color: var(--kd-c-stepper-embed-icon-color-background, #f6f7f9);
|
|
177
202
|
overflow: hidden;
|
|
178
|
-
border-left: 1px solid #d9d9d9;
|
|
203
|
+
border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
179
204
|
border: none;
|
|
180
205
|
}
|
|
181
206
|
.kd-inputNumber-embedStep.kd-inputNumber-baseStep-small,
|
|
182
207
|
.kd-inputNumber-embedStep.kd-inputNumber-embedStep-small {
|
|
183
|
-
margin-right: -9px;
|
|
208
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
184
209
|
}
|
|
185
210
|
.kd-inputNumber-embedStep.kd-inputNumber-baseStep-middle,
|
|
186
211
|
.kd-inputNumber-embedStep.kd-inputNumber-embedStep-middle {
|
|
187
|
-
margin-right: -9px;
|
|
212
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
188
213
|
}
|
|
189
214
|
.kd-inputNumber-embedStep.kd-inputNumber-baseStep-large,
|
|
190
215
|
.kd-inputNumber-embedStep.kd-inputNumber-embedStep-large {
|
|
191
|
-
margin-right: -9px;
|
|
216
|
+
margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
|
|
192
217
|
}
|
|
193
218
|
.kd-inputNumber-embedStep span {
|
|
194
219
|
height: 50%;
|
|
@@ -201,17 +226,17 @@
|
|
|
201
226
|
-webkit-box-pack: center;
|
|
202
227
|
-ms-flex-pack: center;
|
|
203
228
|
justify-content: center;
|
|
204
|
-
border-left: 1px solid #d9d9d9;
|
|
205
|
-
border-bottom: 1px solid #d9d9d9;
|
|
229
|
+
border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
230
|
+
border-bottom: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
206
231
|
cursor: pointer;
|
|
207
232
|
font-size: 12px;
|
|
208
233
|
}
|
|
209
234
|
.kd-inputNumber-embedStep span .kd-inputNumber-icon {
|
|
210
|
-
-webkit-transition: color 0.3s;
|
|
211
|
-
transition: color 0.3s;
|
|
235
|
+
-webkit-transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
|
|
236
|
+
transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
|
|
212
237
|
}
|
|
213
238
|
.kd-inputNumber-embedStep span:hover .kd-inputNumber-icon {
|
|
214
|
-
color: #
|
|
239
|
+
color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
|
|
215
240
|
}
|
|
216
241
|
.kd-inputNumber-embedStep span:last-child {
|
|
217
242
|
border-bottom: none;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import './mixin.less';
|
|
3
|
+
|
|
3
4
|
@inputNumber-prefix-cls: ~'@{kd-prefix}-inputNumber';
|
|
4
5
|
.@{inputNumber-prefix-cls} {
|
|
6
|
+
width: 100px;
|
|
7
|
+
height: @stepper-input-middle-sizing-height;
|
|
8
|
+
|
|
9
|
+
input {
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: @stepper-input-color;
|
|
12
|
+
margin: 0 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-icon {
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
}
|
|
18
|
+
|
|
5
19
|
&-baseStep {
|
|
6
20
|
display: flex;
|
|
7
21
|
justify-content: center;
|
|
@@ -9,67 +23,87 @@
|
|
|
9
23
|
box-sizing: border-box;
|
|
10
24
|
height: 100%;
|
|
11
25
|
cursor: pointer;
|
|
26
|
+
|
|
12
27
|
&-small {
|
|
13
|
-
.base-step-size(@input-small-height);
|
|
28
|
+
.base-step-size(@stepper-input-small-sizing-height);
|
|
14
29
|
}
|
|
30
|
+
|
|
15
31
|
&-middle {
|
|
16
|
-
.base-step-size(@input-middle-height);
|
|
32
|
+
.base-step-size(@stepper-input-middle-sizing-height);
|
|
17
33
|
}
|
|
34
|
+
|
|
18
35
|
&-large {
|
|
19
|
-
.base-step-size(@input-large-height);
|
|
36
|
+
.base-step-size(@stepper-input-large-sizing-height);
|
|
20
37
|
}
|
|
38
|
+
|
|
21
39
|
.@{inputNumber-prefix-cls}-icon {
|
|
22
|
-
color: @
|
|
23
|
-
transition: color @
|
|
40
|
+
color: @stepper-icon-color;
|
|
41
|
+
transition: color @stepper-motion-duration;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
color: @stepper-icon-color-hover;
|
|
46
|
+
}
|
|
24
47
|
}
|
|
48
|
+
|
|
25
49
|
&:hover:not(&-disabled) .@{inputNumber-prefix-cls}-icon {
|
|
26
|
-
color: @
|
|
50
|
+
color: @stepper-icon-color-hover;
|
|
27
51
|
}
|
|
28
52
|
|
|
29
53
|
&-disabled {
|
|
30
54
|
cursor: not-allowed;
|
|
55
|
+
|
|
31
56
|
.@{inputNumber-prefix-cls}-icon {
|
|
32
57
|
color: unset !important;
|
|
33
58
|
}
|
|
34
59
|
}
|
|
35
60
|
}
|
|
61
|
+
|
|
36
62
|
&-baseStep-decrease {
|
|
37
63
|
.step-style(right, left);
|
|
38
64
|
}
|
|
65
|
+
|
|
39
66
|
&-baseStep-increase {
|
|
40
67
|
.step-style(left, right);
|
|
41
68
|
}
|
|
69
|
+
|
|
42
70
|
&-embedStep {
|
|
43
71
|
display: flex;
|
|
44
72
|
flex-direction: column;
|
|
45
73
|
justify-content: center;
|
|
46
74
|
height: 100%;
|
|
47
75
|
border-radius: 0 1px 1px 0;
|
|
48
|
-
background-color: @
|
|
76
|
+
background-color: @stepper-embed-icon-color-background;
|
|
49
77
|
overflow: hidden;
|
|
50
78
|
.step-style(left, right);
|
|
51
79
|
border: none;
|
|
80
|
+
|
|
52
81
|
span {
|
|
53
82
|
height: 50%;
|
|
54
83
|
display: flex;
|
|
55
84
|
align-items: center;
|
|
56
85
|
justify-content: center;
|
|
57
|
-
border-left: 1px solid @
|
|
58
|
-
border-bottom: 1px solid @
|
|
86
|
+
border-left: 1px solid @stepper-color-border-strong;
|
|
87
|
+
border-bottom: 1px solid @stepper-color-border-strong;
|
|
59
88
|
cursor: pointer;
|
|
60
89
|
font-size: 12px;
|
|
90
|
+
|
|
61
91
|
.@{inputNumber-prefix-cls}-icon {
|
|
62
|
-
transition: color @
|
|
92
|
+
transition: color @stepper-motion-duration;
|
|
63
93
|
}
|
|
94
|
+
|
|
64
95
|
&:hover .@{inputNumber-prefix-cls}-icon {
|
|
65
|
-
color: @
|
|
96
|
+
color: @stepper-icon-color-hover;
|
|
66
97
|
}
|
|
98
|
+
|
|
67
99
|
&:last-child {
|
|
68
100
|
border-bottom: none;
|
|
69
101
|
}
|
|
70
102
|
}
|
|
103
|
+
|
|
71
104
|
&-disabled {
|
|
72
105
|
cursor: not-allowed !important;
|
|
106
|
+
|
|
73
107
|
.@{inputNumber-prefix-cls}-icon {
|
|
74
108
|
color: unset !important;
|
|
75
109
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
.base-step-size(@width) {
|
|
2
4
|
width: @width;
|
|
3
5
|
}
|
|
4
6
|
.step-style(@borderDirection, @marginDirection) {
|
|
5
|
-
border-@{borderDirection}: 1px solid @
|
|
7
|
+
border-@{borderDirection}: 1px solid @stepper-color-border-strong;
|
|
6
8
|
&.@{inputNumber-prefix-cls}-baseStep-small, &.@{inputNumber-prefix-cls}-embedStep-small {
|
|
7
|
-
margin-@{marginDirection}:
|
|
9
|
+
margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
|
|
8
10
|
}
|
|
9
11
|
&.@{inputNumber-prefix-cls}-baseStep-middle, &.@{inputNumber-prefix-cls}-embedStep-middle {
|
|
10
|
-
margin-@{marginDirection}:
|
|
12
|
+
margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
|
|
11
13
|
}
|
|
12
14
|
&.@{inputNumber-prefix-cls}-baseStep-large, &.@{inputNumber-prefix-cls}-embedStep-large {
|
|
13
|
-
margin-@{marginDirection}:
|
|
15
|
+
margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
|
|
14
16
|
}
|
|
15
|
-
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@stepper-prefix: '--@{kd-prefix}-c-stepper';
|
|
4
|
+
|
|
5
|
+
// shadow
|
|
6
|
+
// color
|
|
7
|
+
@stepper-input-color: var(~'@{stepper-prefix}-input-color', @color-text-primary);
|
|
8
|
+
@stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
|
|
9
|
+
@stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
|
|
10
|
+
@stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
|
|
11
|
+
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', #f6f7f9);
|
|
12
|
+
|
|
13
|
+
// sizing
|
|
14
|
+
@stepper-input-small-sizing-height: var(~'@{stepper-prefix}-input-small-sizing-height', 20px);
|
|
15
|
+
@stepper-input-middle-sizing-height: var(~'@{stepper-prefix}-input-middle-sizing-height', 28px);
|
|
16
|
+
@stepper-input-large-sizing-height: var(~'@{stepper-prefix}-input-large-sizing-height', 36px);
|
|
17
|
+
|
|
18
|
+
// spacing
|
|
19
|
+
@stepper-input-spacing-padding-horizontal: var(~'@{stepper-prefix}-input-spacing-padding-horizontal', 9px);
|
|
20
|
+
|
|
21
|
+
// motion
|
|
22
|
+
@stepper-motion-duration: var(~'@{stepper-prefix}-motion-duration', @duration-promptly);
|
|
23
|
+
|
|
24
|
+
// font
|
|
25
|
+
// radius
|
|
26
|
+
// line-height
|
|
27
|
+
// z-index
|
|
28
|
+
|
package/es/steps/Steps.js
CHANGED
|
@@ -72,7 +72,10 @@ var Steps = function Steps(props) {
|
|
|
72
72
|
type: "right-bold",
|
|
73
73
|
className: "".concat(stepsPrefixCls, "-iconSize")
|
|
74
74
|
});
|
|
75
|
-
actualIcons.error = icons && icons.error || /*#__PURE__*/React.createElement(
|
|
75
|
+
actualIcons.error = icons && icons.error || /*#__PURE__*/React.createElement(Icon, {
|
|
76
|
+
type: "exclamatory",
|
|
77
|
+
className: "".concat(stepsPrefixCls, "-iconSize")
|
|
78
|
+
});
|
|
76
79
|
return actualIcons;
|
|
77
80
|
};
|
|
78
81
|
|