@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@menu-prefix: '--@{kd-prefix}-c-menu';
|
|
4
|
+
|
|
5
|
+
// shadow
|
|
6
|
+
// color
|
|
7
|
+
@menu-color-disabled: var(~'@{menu-prefix}-color-disabled', @color-disabled);
|
|
8
|
+
@menu-sub-color: var(~'@{menu-prefix}-sub-color', rgba(255, 255, 255, 0.65));
|
|
9
|
+
@menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-hover', @color-white);
|
|
10
|
+
@menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-theme);
|
|
11
|
+
@menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #21242d);
|
|
12
|
+
@menu-inline-color-active: var(~'@{menu-prefix}-inline-color-active', @color-white);
|
|
13
|
+
@menu-color-background: var(~'@{menu-prefix}-color-background', #343848);
|
|
14
|
+
|
|
15
|
+
@menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
|
|
16
|
+
@menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-ongoing);
|
|
17
|
+
@menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-theme);
|
|
18
|
+
@menu-light-color-background: var(~'@{menu-prefix}-light-color-background', @color-background-ongoing);
|
|
19
|
+
|
|
20
|
+
// sizing
|
|
21
|
+
@menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
|
|
22
|
+
// spacing
|
|
23
|
+
// motion
|
|
24
|
+
@menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
|
|
25
|
+
|
|
26
|
+
// font
|
|
27
|
+
@menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
|
|
28
|
+
|
|
29
|
+
// radius
|
|
30
|
+
// line-height
|
|
31
|
+
// z-index
|
|
32
|
+
@menu-z-index: var(~'@{menu-prefix}-z-index', @z-index-dialog);
|
|
@@ -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
|
.kd-message-box {
|
|
96
105
|
position: fixed;
|
|
97
106
|
width: 100%;
|
|
@@ -104,7 +113,7 @@
|
|
|
104
113
|
-ms-flex-direction: column;
|
|
105
114
|
flex-direction: column;
|
|
106
115
|
pointer-events: none;
|
|
107
|
-
z-index: 9999;
|
|
116
|
+
z-index: var(--kd-c-message-z-index, var(--kd-g-z-index-apex, 9999));
|
|
108
117
|
}
|
|
109
118
|
.kd-message {
|
|
110
119
|
position: relative;
|
|
@@ -115,9 +124,10 @@
|
|
|
115
124
|
max-width: 1000px;
|
|
116
125
|
margin: 0 auto 16px;
|
|
117
126
|
padding: 10px 20px;
|
|
118
|
-
|
|
127
|
+
color: var(--kd-c-message-info-color-text, var(--kd-g-color-text-link, #0e5fd8));
|
|
128
|
+
border: 1px solid var(--kd-c-message-info-color-border, #b3d5ff);
|
|
119
129
|
border-radius: 4px;
|
|
120
|
-
background-color: #
|
|
130
|
+
background-color: var(--kd-c-message-info-color-background, #e0efff);
|
|
121
131
|
pointer-events: all;
|
|
122
132
|
-webkit-animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
123
133
|
animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
@@ -146,22 +156,22 @@
|
|
|
146
156
|
cursor: pointer;
|
|
147
157
|
}
|
|
148
158
|
.kd-message-content-close:hover {
|
|
149
|
-
color: #85b8ff;
|
|
159
|
+
color: var(--kd-c-message-icon-color-text-hover, var(--kd-g-color-border-ongoing, #85b8ff));
|
|
150
160
|
}
|
|
151
161
|
.kd-message-success {
|
|
152
|
-
color: #1ba854;
|
|
153
|
-
background: #dcfae4;
|
|
154
|
-
border: 1px solid #a1e6b5;
|
|
162
|
+
color: var(--kd-c-message-success-color-text, var(--kd-g-color-success, #1ba854));
|
|
163
|
+
background: var(--kd-c-message-success-color-background, #dcfae4);
|
|
164
|
+
border: 1px solid var(--kd-c-message-success-color-border, #a1e6b5);
|
|
155
165
|
}
|
|
156
166
|
.kd-message-warning {
|
|
157
|
-
color: #ff991c;
|
|
158
|
-
background: #fff1d4;
|
|
159
|
-
border: 1px solid #ffe0a6;
|
|
167
|
+
color: var(--kd-c-message-warning-color-text, var(--kd-g-color-warning, #ff991c));
|
|
168
|
+
background: var(--kd-c-message-warning-color-background, #fff1d4);
|
|
169
|
+
border: 1px solid var(--kd-c-message-warning-color-border, #ffe0a6);
|
|
160
170
|
}
|
|
161
171
|
.kd-message-error {
|
|
162
|
-
color: #fb2323;
|
|
163
|
-
background: #ffdbe0;
|
|
164
|
-
border: 1px solid #ffadb6;
|
|
172
|
+
color: var(--kd-c-message-error-color-text, var(--kd-g-color-error, #fb2323));
|
|
173
|
+
background: var(--kd-c-message-error-color-background, #ffdbe0);
|
|
174
|
+
border: 1px solid var(--kd-c-message-error-color-border, #ffadb6);
|
|
165
175
|
}
|
|
166
176
|
.kd-message-leave {
|
|
167
177
|
-webkit-animation: kdNoticeLeaveEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
|
+
@import './token.less';
|
|
2
3
|
|
|
3
4
|
@msg-prefix-cls: ~'@{kd-prefix}-message';
|
|
4
5
|
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
12
|
pointer-events: none;
|
|
12
|
-
z-index: @
|
|
13
|
+
z-index: @message-z-index;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.@{msg-prefix-cls} {
|
|
@@ -20,9 +21,10 @@
|
|
|
20
21
|
max-width: 1000px;
|
|
21
22
|
margin: 0 auto 16px;
|
|
22
23
|
padding: 10px 20px;
|
|
23
|
-
|
|
24
|
+
color: @message-info-text-color;
|
|
25
|
+
border: 1px solid @message-info-color-border;
|
|
24
26
|
border-radius: 4px;
|
|
25
|
-
background-color: @
|
|
27
|
+
background-color: @message-info-color-background;
|
|
26
28
|
pointer-events: all;
|
|
27
29
|
animation: kdNoticeEffect calc(@transition-duration - 0.2s) @ease-out forwards;
|
|
28
30
|
|
|
@@ -44,27 +46,27 @@
|
|
|
44
46
|
cursor: pointer;
|
|
45
47
|
|
|
46
48
|
&:hover {
|
|
47
|
-
color: @
|
|
49
|
+
color: @message-icon-text-color-hover;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
&-success {
|
|
53
|
-
color:
|
|
54
|
-
background:
|
|
55
|
-
border: 1px solid
|
|
55
|
+
color: @message-success-text-color;
|
|
56
|
+
background: @message-success-color-background;
|
|
57
|
+
border: 1px solid @message-success-color-border;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
&-warning {
|
|
59
|
-
color:
|
|
60
|
-
background:
|
|
61
|
-
border: 1px solid
|
|
61
|
+
color: @message-warning-text-color;
|
|
62
|
+
background: @message-warning-color-background;
|
|
63
|
+
border: 1px solid @message-warning-color-border;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
&-error {
|
|
65
|
-
color:
|
|
66
|
-
background:
|
|
67
|
-
border: 1px solid
|
|
67
|
+
color: @message-error-text-color;
|
|
68
|
+
background: @message-error-color-background;
|
|
69
|
+
border: 1px solid @message-error-color-border;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
&-leave {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@message-custom-prefix: ~'--@{kd-prefix}-c-message';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@message-info-color-background: var(~'@{message-custom-prefix}-info-color-background', #e0efff);
|
|
7
|
+
@message-info-color-border: var(~'@{message-custom-prefix}-info-color-border', #b3d5ff);
|
|
8
|
+
@message-success-color-background: var(~'@{message-custom-prefix}-success-color-background', #dcfae4);
|
|
9
|
+
@message-success-color-border: var(~'@{message-custom-prefix}-success-color-border', #a1e6b5);
|
|
10
|
+
@message-success-text-color: var(~'@{message-custom-prefix}-success-color-text', @color-success);
|
|
11
|
+
@message-warning-color-background: var(~'@{message-custom-prefix}-warning-color-background', #fff1d4);
|
|
12
|
+
@message-warning-color-border: var(~'@{message-custom-prefix}-warning-color-border', #ffe0a6);
|
|
13
|
+
@message-warning-text-color: var(~'@{message-custom-prefix}-warning-color-text', @color-warning);
|
|
14
|
+
@message-error-color-background: var(~'@{message-custom-prefix}-error-color-background', #ffdbe0);
|
|
15
|
+
@message-error-color-border: var(~'@{message-custom-prefix}-error-color-border', #ffadb6);
|
|
16
|
+
@message-error-text-color: var(~'@{message-custom-prefix}-error-color-text', @color-error);
|
|
17
|
+
@message-icon-text-color-hover: var(~'@{message-custom-prefix}-icon-color-text-hover', @color-border-ongoing);
|
|
18
|
+
@message-info-text-color: var(~'@{message-custom-prefix}-info-color-text', @color-text-link);
|
|
19
|
+
|
|
20
|
+
// z-index
|
|
21
|
+
@message-z-index: var(~'@{message-custom-prefix}-z-index', @z-index-apex);
|
package/es/modal/style/index.css
CHANGED
|
@@ -98,13 +98,22 @@
|
|
|
98
98
|
top: 0;
|
|
99
99
|
bottom: 0;
|
|
100
100
|
}
|
|
101
|
+
/* ----------- motion ——————---- start */
|
|
102
|
+
/* ----------- motion ——————---- end */
|
|
103
|
+
/* ----------- transition ——————---- start */
|
|
104
|
+
/* ----------- transition ——————---- end */
|
|
105
|
+
/* ----------- zIndex ——————---- start */
|
|
106
|
+
/*
|
|
107
|
+
普通组件内部自身层级应设置在0-100间
|
|
108
|
+
*/
|
|
109
|
+
/* ----------- zIndex ——————---- end */
|
|
101
110
|
.kd-modal-container {
|
|
102
111
|
position: relative;
|
|
103
|
-
z-index: 1050;
|
|
112
|
+
z-index: var(--kd-c-modal-z-index, var(--kd-g-z-index-dialog, 1050));
|
|
104
113
|
}
|
|
105
114
|
.kd-modal-mask {
|
|
106
115
|
position: fixed;
|
|
107
|
-
background-color: rgba(55, 55, 55, 0.5);
|
|
116
|
+
background-color: var(--kd-c-modal-mask-color-background, rgba(55, 55, 55, 0.5));
|
|
108
117
|
z-index: auto;
|
|
109
118
|
left: 0;
|
|
110
119
|
right: 0;
|
|
@@ -127,9 +136,9 @@
|
|
|
127
136
|
-ms-flex-direction: column;
|
|
128
137
|
flex-direction: column;
|
|
129
138
|
background: #ffffff;
|
|
130
|
-
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
131
|
-
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
132
|
-
border-radius: 2px;
|
|
139
|
+
-webkit-box-shadow: var(--kd-c-modal-box-shadow, 0 4px 10px 0 rgba(0, 0, 0, 0.2));
|
|
140
|
+
box-shadow: var(--kd-c-modal-box-shadow, 0 4px 10px 0 rgba(0, 0, 0, 0.2));
|
|
141
|
+
border-radius: var(--kd-c-modal-boeder-radius, 2px);
|
|
133
142
|
outline: none;
|
|
134
143
|
}
|
|
135
144
|
.kd-modal-container-box .kd-modal-header {
|
|
@@ -139,11 +148,11 @@
|
|
|
139
148
|
-webkit-box-pack: justify;
|
|
140
149
|
-ms-flex-pack: justify;
|
|
141
150
|
justify-content: space-between;
|
|
142
|
-
padding:
|
|
151
|
+
padding: var(--kd-c-modal-header-sizing-padding-vertical, 0px) var(--kd-c-modal-header-sizing-padding-horizontal, 20px);
|
|
143
152
|
-webkit-box-align: center;
|
|
144
153
|
-ms-flex-align: center;
|
|
145
154
|
align-items: center;
|
|
146
|
-
|
|
155
|
+
height: var(--kd-c-modal-header-sizing-height, 50px);
|
|
147
156
|
}
|
|
148
157
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container {
|
|
149
158
|
display: -webkit-box;
|
|
@@ -158,24 +167,24 @@
|
|
|
158
167
|
}
|
|
159
168
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container .kd-modal-title-icon {
|
|
160
169
|
border-radius: 50% 50%;
|
|
161
|
-
width: 6px;
|
|
162
|
-
height: 6px;
|
|
163
|
-
margin-right: 8px;
|
|
170
|
+
width: var(--kd-c-modal-icon-circle-sizing, 6px);
|
|
171
|
+
height: var(--kd-c-modal-icon-circle-sizing, 6px);
|
|
172
|
+
margin-right: var(--kd-c-modal-title-icon-sizing-margin-right, 8px);
|
|
164
173
|
}
|
|
165
174
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-confirm-title-icon-bgcolor {
|
|
166
|
-
background-color: #276ff5;
|
|
175
|
+
background-color: var(--kd-c-modal-color-ongoing, var(--kd-g-color-ongoing, #276ff5));
|
|
167
176
|
}
|
|
168
177
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-warning-title-icon-bgcolor {
|
|
169
|
-
background-color: #ff991c;
|
|
178
|
+
background-color: var(--kd-c-modal-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
170
179
|
}
|
|
171
180
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-error-title-icon-bgcolor {
|
|
172
|
-
background-color: #fb2323;
|
|
181
|
+
background-color: var(--kd-c-modal-color-error, var(--kd-g-color-error, #fb2323));
|
|
173
182
|
}
|
|
174
183
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container .kd-modal-title {
|
|
175
184
|
min-width: 72px;
|
|
176
185
|
min-height: 27px;
|
|
177
|
-
font-size: 18px;
|
|
178
|
-
color: #212121;
|
|
186
|
+
font-size: var(--kd-c-modal-title-font-size, 18px);
|
|
187
|
+
color: var(--kd-c-modal-title-text-color, var(--kd-g-color-text-primary, #212121));
|
|
179
188
|
line-height: 27px;
|
|
180
189
|
}
|
|
181
190
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container:active {
|
|
@@ -191,15 +200,15 @@
|
|
|
191
200
|
-webkit-box-align: center;
|
|
192
201
|
-ms-flex-align: center;
|
|
193
202
|
align-items: center;
|
|
194
|
-
|
|
195
|
-
|
|
203
|
+
font-size: var(--kd-c-modal-close-icon-font-size, 16px);
|
|
204
|
+
color: var(--kd-c-modal-close-icon-color-text, #666666);
|
|
196
205
|
cursor: pointer;
|
|
197
206
|
}
|
|
198
207
|
.kd-modal-container-box .kd-modal-header .kd-modal-close-icon:hover {
|
|
199
|
-
color: #87adff;
|
|
208
|
+
color: var(--kd-c-modal-color-theme-hover, var(--kd-g-color-theme-5, #87adff));
|
|
200
209
|
}
|
|
201
210
|
.kd-modal-container-box .kd-modal-header .kd-modal-close-icon:active {
|
|
202
|
-
color: #375cca;
|
|
211
|
+
color: var(--kd-c-modal-color-theme-active, var(--kd-g-color-theme-7, #375cca));
|
|
203
212
|
}
|
|
204
213
|
.kd-modal-container-box .kd-modal-header:active {
|
|
205
214
|
cursor: move;
|
|
@@ -209,12 +218,12 @@
|
|
|
209
218
|
-webkit-box-flex: 1;
|
|
210
219
|
-ms-flex-positive: 1;
|
|
211
220
|
flex-grow: 1;
|
|
212
|
-
padding: 20px
|
|
213
|
-
font-size: 16px;
|
|
214
|
-
color: #212121;
|
|
221
|
+
padding: var(--kd-c-modal-body-sizing-padding, 20px);
|
|
222
|
+
font-size: var(--kd-c-modal-body-font-size, 16px);
|
|
223
|
+
color: var(--kd-c-modal-body-text-color, var(--kd-g-color-text-primary, #212121));
|
|
215
224
|
}
|
|
216
225
|
.kd-modal-container-box .kd-modal-footer {
|
|
217
|
-
|
|
226
|
+
height: var(--kd-c-modal-footer-sizing-height, 50px);
|
|
218
227
|
display: -webkit-box;
|
|
219
228
|
display: -ms-flexbox;
|
|
220
229
|
display: flex;
|
|
@@ -224,21 +233,21 @@
|
|
|
224
233
|
-webkit-box-align: center;
|
|
225
234
|
-ms-flex-align: center;
|
|
226
235
|
align-items: center;
|
|
227
|
-
font-size: 14px;
|
|
228
|
-
color: #666;
|
|
236
|
+
font-size: var(--kd-c-modal-footer-font-size, 14px);
|
|
237
|
+
color: var(--kd-c-modal-footer-text-color, var(--kd-g-color-text-secondary, #666));
|
|
229
238
|
}
|
|
230
239
|
.kd-modal-ok-btn,
|
|
231
240
|
.kd-modal-cancel-btn {
|
|
232
241
|
min-width: 88px;
|
|
233
242
|
min-height: 32px;
|
|
234
|
-
font-size: 14px;
|
|
243
|
+
font-size: var(--kd-c-modal-footer-font-size, 14px);
|
|
235
244
|
}
|
|
236
245
|
.kd-modal-margin-btn {
|
|
237
246
|
margin-right: 20px;
|
|
238
247
|
}
|
|
239
248
|
.kd-modal-showline .kd-modal-header {
|
|
240
|
-
border-bottom: 1px solid #d9d9d9;
|
|
249
|
+
border-bottom: var(--kd-c-modal-sizing-border, 1px) solid var(--kd-c-modal-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
241
250
|
}
|
|
242
251
|
.kd-modal-showline .kd-modal-footer {
|
|
243
|
-
border-top: 1px solid #d9d9d9;
|
|
252
|
+
border-top: var(--kd-c-modal-sizing-border, 1px) solid var(--kd-c-modal-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
244
253
|
}
|
|
@@ -6,21 +6,11 @@
|
|
|
6
6
|
@confirm: confirm;
|
|
7
7
|
@warning: warning;
|
|
8
8
|
@error: error;
|
|
9
|
-
@icon-circle-radiu: 6px;
|
|
10
|
-
|
|
11
|
-
@modal-title-font-size: 18px;
|
|
12
|
-
@modal-title-font-color: @primary-text-color;
|
|
13
|
-
@modal-body-font-size: 16px;
|
|
14
|
-
@modal-body-font-color: @primary-text-color;
|
|
15
|
-
@modal-footer-font-size: 14px;
|
|
16
|
-
@modal-footer-font-color: @secondary-text-color;
|
|
17
|
-
@modal-radius: 2px;
|
|
18
|
-
@modal-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
19
9
|
|
|
20
10
|
@modal-bg-type-set: {
|
|
21
|
-
@confirm: @
|
|
22
|
-
@warning: @
|
|
23
|
-
@error: @
|
|
11
|
+
@confirm: @modal-color-ongoing;
|
|
12
|
+
@warning: @modal-color-warning;
|
|
13
|
+
@error: @modal-color-error;
|
|
24
14
|
};
|
|
25
15
|
|
|
26
16
|
@modal-footer-type-set: {
|
|
@@ -32,10 +22,10 @@
|
|
|
32
22
|
.@{modal-prefix-cls} {
|
|
33
23
|
&-container {
|
|
34
24
|
position: relative;
|
|
35
|
-
z-index: @
|
|
25
|
+
z-index: @modal-z-index-dialog;
|
|
36
26
|
}
|
|
37
27
|
&-mask {
|
|
38
|
-
.overlay(
|
|
28
|
+
.overlay(@modal-mask-color-background, 0);
|
|
39
29
|
}
|
|
40
30
|
// &-mask + &-container-box {
|
|
41
31
|
|
|
@@ -57,16 +47,16 @@
|
|
|
57
47
|
.@{modal-prefix-cls}-header {
|
|
58
48
|
display: flex;
|
|
59
49
|
justify-content: space-between;
|
|
60
|
-
padding:
|
|
50
|
+
padding: @modal-header-sizing-padding-vertical @modal-header-sizing-padding-horizontal;
|
|
61
51
|
align-items: center;
|
|
62
|
-
|
|
52
|
+
height: @modal-header-sizing-height;
|
|
63
53
|
.@{modal-prefix-cls}-title-container {
|
|
64
54
|
display: flex;
|
|
65
55
|
justify-content: center;
|
|
66
56
|
align-items: center;
|
|
67
57
|
.@{modal-prefix-cls}-title-icon {
|
|
68
58
|
.modal-title-icon-type(@icon-circle-radiu);
|
|
69
|
-
margin-right:
|
|
59
|
+
margin-right: @modal-title-icon-sizing-margin-right;
|
|
70
60
|
}
|
|
71
61
|
each(@modal-bg-type-set, {
|
|
72
62
|
.modal-title-icon-bgcolor-type(@key, @value)
|
|
@@ -86,14 +76,14 @@
|
|
|
86
76
|
display: flex;
|
|
87
77
|
justify-content: center;
|
|
88
78
|
align-items: center;
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
font-size: @modal-close-icon-size;
|
|
80
|
+
color: @modal-close-icon-color-text;
|
|
91
81
|
cursor: pointer;
|
|
92
82
|
&:hover {
|
|
93
|
-
color: @theme-color-hover;
|
|
83
|
+
color: @modal-theme-color-hover;
|
|
94
84
|
}
|
|
95
85
|
&:active {
|
|
96
|
-
color: @theme-color-
|
|
86
|
+
color: @modal-theme-color-active;
|
|
97
87
|
}
|
|
98
88
|
}
|
|
99
89
|
&:active {
|
|
@@ -104,12 +94,12 @@
|
|
|
104
94
|
.@{modal-prefix-cls}-body {
|
|
105
95
|
display: block;
|
|
106
96
|
flex-grow: 1;
|
|
107
|
-
padding:
|
|
97
|
+
padding: @modal-body-sizing-padding;
|
|
108
98
|
font-size: @modal-body-font-size;
|
|
109
99
|
color: @modal-body-font-color;
|
|
110
100
|
}
|
|
111
101
|
.@{modal-prefix-cls}-footer {
|
|
112
|
-
|
|
102
|
+
height: @modal-footer-sizing-height;
|
|
113
103
|
display: flex;
|
|
114
104
|
justify-content: center;
|
|
115
105
|
align-items: center;
|
|
@@ -136,9 +126,9 @@
|
|
|
136
126
|
|
|
137
127
|
.@{modal-prefix-cls}-showline {
|
|
138
128
|
.@{modal-prefix-cls}-header {
|
|
139
|
-
border-bottom:
|
|
129
|
+
border-bottom: @modal-border-width solid @modal-border-color;
|
|
140
130
|
}
|
|
141
131
|
.@{modal-prefix-cls}-footer {
|
|
142
|
-
border-top:
|
|
132
|
+
border-top: @modal-border-width solid @modal-border-color;
|
|
143
133
|
}
|
|
144
134
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@modal-prefix: '--@{kd-prefix}-c-modal';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@modal-primary-text-color: var(~'@{modal-prefix}-color-text-primary', @color-text-primary);
|
|
7
|
+
@modal-secondary-text-color: var(~'@{modal-prefix}-color-text-secondary', @color-text-secondary);
|
|
8
|
+
@modal-color-ongoing: var(~'@{modal-prefix}-color-ongoing', @color-ongoing);
|
|
9
|
+
@modal-color-warning: var(~'@{modal-prefix}-color-warning', @color-warning);
|
|
10
|
+
@modal-color-error: var(~'@{modal-prefix}-color-error', @color-error);
|
|
11
|
+
@modal-footer-font-color: var(~'@{modal-prefix}-footer-text-color', @color-text-secondary);
|
|
12
|
+
@modal-body-font-color: var(~'@{modal-prefix}-body-text-color', @color-text-primary);
|
|
13
|
+
@modal-title-font-color: var(~'@{modal-prefix}-title-text-color', @color-text-primary);
|
|
14
|
+
@modal-border-color: var(~'@{modal-prefix}-color-border', @color-border-strong-2);
|
|
15
|
+
@modal-theme-color-hover: var(~'@{modal-prefix}-color-theme-hover', @color-theme-5);
|
|
16
|
+
@modal-theme-color-active: var(~'@{modal-prefix}-color-theme-active', @color-theme-7);
|
|
17
|
+
@modal-mask-color-background: var(~'@{modal-prefix}-mask-color-background', rgba(55, 55, 55, 0.5));
|
|
18
|
+
@modal-close-icon-color-text: var(~'@{modal-prefix}-close-icon-color-text', #666666);
|
|
19
|
+
@confirm-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-ongoing', @color-ongoing); // 提示弹窗的背景色
|
|
20
|
+
@warning-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-warning', @color-warning); // 警告弹窗的背景色
|
|
21
|
+
@error-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-warning', @color-warning); // 反馈浮层错误提示的背景色
|
|
22
|
+
|
|
23
|
+
// z-index
|
|
24
|
+
@modal-z-index-dialog: var(~'@{modal-prefix}-z-index', @z-index-dialog);
|
|
25
|
+
|
|
26
|
+
// font
|
|
27
|
+
@modal-footer-font-size: var(~'@{modal-prefix}-footer-font-size', 14px);
|
|
28
|
+
@modal-body-font-size: var(~'@{modal-prefix}-body-font-size', 16px);
|
|
29
|
+
@modal-title-font-size: var(~'@{modal-prefix}-title-font-size', 18px);
|
|
30
|
+
|
|
31
|
+
// shadow
|
|
32
|
+
@modal-shadow: var(~'@{modal-prefix}-box-shadow', 0 4px 10px 0 rgba(0, 0, 0, 0.2));
|
|
33
|
+
|
|
34
|
+
// radius
|
|
35
|
+
@modal-radius: var(~'@{modal-prefix}-boeder-radius', 2px);
|
|
36
|
+
|
|
37
|
+
// sizing
|
|
38
|
+
@icon-circle-radiu: var(~'@{modal-prefix}-icon-circle-sizing', 6px);
|
|
39
|
+
@modal-border-width: var(~'@{modal-prefix}-sizing-border', 1px);
|
|
40
|
+
@modal-close-icon-size: var(~'@{modal-prefix}-close-icon-font-size', 16px);
|
|
41
|
+
@modal-header-sizing-padding-horizontal: var(~'@{modal-prefix}-header-sizing-padding-horizontal', 20px);
|
|
42
|
+
@modal-header-sizing-padding-vertical: var(~'@{modal-prefix}-header-sizing-padding-vertical', 0px);
|
|
43
|
+
@modal-header-sizing-height: var(~'@{modal-prefix}-header-sizing-height', 50px);
|
|
44
|
+
@modal-body-sizing-padding: var(~'@{modal-prefix}-body-sizing-padding', 20px);
|
|
45
|
+
@modal-footer-sizing-height: var(~'@{modal-prefix}-footer-sizing-height', 50px);
|
|
46
|
+
@modal-title-icon-sizing-margin-right: var(~'@{modal-prefix}-title-icon-sizing-margin-right', 8px);
|
|
@@ -115,7 +115,7 @@ var Content = function Content(args) {
|
|
|
115
115
|
var getMainElement = function getMainElement() {
|
|
116
116
|
if (typeof content === 'string') {
|
|
117
117
|
return /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
className: classNames("".concat(classPrefix, "-
|
|
118
|
+
className: classNames("".concat(classPrefix, "-description"))
|
|
119
119
|
}, content);
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -92,12 +92,21 @@
|
|
|
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
|
.kd-notice-box-topRight,
|
|
96
105
|
.kd-notice-box-topLeft,
|
|
97
106
|
.kd-notice-box-bottomLeft,
|
|
98
107
|
.kd-notice-box-bottomRight {
|
|
99
108
|
position: fixed;
|
|
100
|
-
z-index: 9999;
|
|
109
|
+
z-index: var(--kd-c-notice-z-index, var(--kd-g-z-index-apex, 9999));
|
|
101
110
|
}
|
|
102
111
|
.kd-notice {
|
|
103
112
|
position: relative;
|
|
@@ -109,9 +118,9 @@
|
|
|
109
118
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
|
|
110
119
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
|
|
111
120
|
border-radius: 2px;
|
|
112
|
-
background-color: #fff;
|
|
113
|
-
-webkit-animation: kdNoticeEffect
|
|
114
|
-
animation: kdNoticeEffect
|
|
121
|
+
background-color: var(--kd-c-notice-content-color-background, var(--kd-g-color-white, #fff));
|
|
122
|
+
-webkit-animation: kdNoticeEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
123
|
+
animation: kdNoticeEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
115
124
|
}
|
|
116
125
|
.kd-notice-content {
|
|
117
126
|
width: 100%;
|
|
@@ -124,7 +133,7 @@
|
|
|
124
133
|
display: -webkit-box;
|
|
125
134
|
display: -ms-flexbox;
|
|
126
135
|
display: flex;
|
|
127
|
-
font-size: 14px;
|
|
136
|
+
font-size: var(--kd-c-notice-title-font-size, var(--kd-g-font-size-middle, 14px));
|
|
128
137
|
-ms-flex-line-pack: center;
|
|
129
138
|
align-content: center;
|
|
130
139
|
-webkit-box-pack: justify;
|
|
@@ -158,7 +167,7 @@
|
|
|
158
167
|
.kd-notice-content-title-close {
|
|
159
168
|
cursor: pointer;
|
|
160
169
|
}
|
|
161
|
-
.kd-notice-content-
|
|
170
|
+
.kd-notice-content-description {
|
|
162
171
|
height: 46px;
|
|
163
172
|
padding: 10px 20px;
|
|
164
173
|
font-size: 12px;
|
|
@@ -177,60 +186,60 @@
|
|
|
177
186
|
align-items: center;
|
|
178
187
|
padding: 0 20px 15px 20px;
|
|
179
188
|
font-size: 12px;
|
|
180
|
-
color: #0e5fd8;
|
|
189
|
+
color: var(--kd-c-notice-footer-color, var(--kd-g-color-text-link, #0e5fd8));
|
|
181
190
|
cursor: pointer;
|
|
182
191
|
}
|
|
183
192
|
.kd-notice-content-footer > div {
|
|
184
193
|
margin-right: 10px;
|
|
185
194
|
}
|
|
186
195
|
.kd-notice-content-footer > div:hover {
|
|
187
|
-
color: #3987ed;
|
|
196
|
+
color: var(--kd-c-notice-footer-color-hover, var(--kd-g-color-text-link-hover, #3987ed));
|
|
188
197
|
}
|
|
189
198
|
.kd-notice-info .kd-notice-content-title {
|
|
190
|
-
color: #212121;
|
|
191
|
-
background: #fff;
|
|
199
|
+
color: var(--kd-c-notice-info-color, var(--kd-g-color-text-primary, #212121));
|
|
200
|
+
background: var(--kd-c-notice-info-header-color-background, var(--kd-g-color-white, #fff));
|
|
192
201
|
}
|
|
193
202
|
.kd-notice-info .kd-notice-content-title-left-icon {
|
|
194
|
-
color: #5582f3;
|
|
203
|
+
color: var(--kd-c-notice-icon-color, var(--kd-g-color-theme, #5582f3));
|
|
195
204
|
}
|
|
196
205
|
.kd-notice-info .kd-notice-content-title-close {
|
|
197
|
-
color: #5582f3;
|
|
206
|
+
color: var(--kd-c-notice-icon-color, var(--kd-g-color-theme, #5582f3));
|
|
198
207
|
}
|
|
199
208
|
.kd-notice-info .kd-notice-content-title-close:hover {
|
|
200
|
-
color: #85b8ff;
|
|
209
|
+
color: var(--kd-c-notice-icon-color-hover, var(--kd-g-color-border-ongoing, #85b8ff));
|
|
201
210
|
}
|
|
202
211
|
.kd-notice-primary .kd-notice-content-title {
|
|
203
|
-
color: #fff;
|
|
204
|
-
background: #5582f3;
|
|
212
|
+
color: var(--kd-c-notice-header-color, var(--kd-g-color-white, #fff));
|
|
213
|
+
background: var(--kd-c-notice-header-color-background, var(--kd-g-color-theme, #5582f3));
|
|
205
214
|
}
|
|
206
215
|
.kd-notice-primary .kd-notice-content-title-close {
|
|
207
|
-
color: #fff;
|
|
216
|
+
color: var(--kd-c-notice-header-color, var(--kd-g-color-white, #fff));
|
|
208
217
|
}
|
|
209
218
|
.kd-notice-primary .kd-notice-content-title-close:hover {
|
|
210
|
-
color: #85b8ff;
|
|
219
|
+
color: var(--kd-c-notice-icon-color-hover, var(--kd-g-color-border-ongoing, #85b8ff));
|
|
211
220
|
}
|
|
212
221
|
.kd-notice-leave {
|
|
213
|
-
-webkit-animation: kdNoticeLeaveEffect
|
|
214
|
-
animation: kdNoticeLeaveEffect
|
|
222
|
+
-webkit-animation: kdNoticeLeaveEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
223
|
+
animation: kdNoticeLeaveEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
215
224
|
}
|
|
216
225
|
.kd-notice-leave-after {
|
|
217
226
|
padding: 0;
|
|
218
227
|
margin: 0;
|
|
219
228
|
opacity: 0;
|
|
220
|
-
-webkit-transition: all
|
|
221
|
-
transition: all
|
|
229
|
+
-webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
230
|
+
transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
222
231
|
}
|
|
223
232
|
.kd-notice-leave-after.kd-notice-success,
|
|
224
233
|
.kd-notice-leave-after.kd-notice-warning,
|
|
225
234
|
.kd-notice-leave-after.kd-notice-error {
|
|
226
|
-
-webkit-transition: all
|
|
227
|
-
transition: all
|
|
235
|
+
-webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
236
|
+
transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
228
237
|
border: none;
|
|
229
238
|
}
|
|
230
239
|
.kd-notice-leave-after div,
|
|
231
240
|
.kd-notice-leave-after i {
|
|
232
|
-
-webkit-transition: all
|
|
233
|
-
transition: all
|
|
241
|
+
-webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
242
|
+
transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
|
|
234
243
|
height: 0;
|
|
235
244
|
font-size: 0;
|
|
236
245
|
}
|