@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
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
@import './mixin.less';
|
|
4
4
|
@typography-prefix-cls: ~'@{kd-prefix}-typography';
|
|
5
5
|
.@{typography-prefix-cls} {
|
|
6
|
-
color: @
|
|
6
|
+
color: @typography-color-text-primary;
|
|
7
7
|
overflow-wrap: break-word;
|
|
8
8
|
line-height: 2;
|
|
9
9
|
max-width: @typography-max-width;
|
|
10
10
|
|
|
11
11
|
&&-second {
|
|
12
|
-
color: @
|
|
12
|
+
color: @typography-color-text-secondary;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&&-success {
|
|
16
|
-
color: @
|
|
16
|
+
color: @typography-color-success;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&&-warning {
|
|
20
|
-
color: @
|
|
20
|
+
color: @typography-color-warning;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&&-danger {
|
|
24
|
-
color: @
|
|
24
|
+
color: @typography-color-error;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&&-disabled {
|
|
28
|
-
color: @
|
|
28
|
+
color: @typography-color-disabled;
|
|
29
29
|
cursor: not-allowed;
|
|
30
30
|
user-select: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&&-assist {
|
|
34
|
-
color: @
|
|
34
|
+
color: @typography-color-text-third;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
h1&,
|
|
@@ -82,14 +82,14 @@
|
|
|
82
82
|
h3 {
|
|
83
83
|
.typography-title-3();
|
|
84
84
|
}
|
|
85
|
-
h4&,
|
|
86
|
-
h4 {
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
h5&,
|
|
90
|
-
h5 {
|
|
91
|
-
|
|
92
|
-
}
|
|
85
|
+
// h4&,
|
|
86
|
+
// h4 {
|
|
87
|
+
// .typography-title-4();
|
|
88
|
+
// }
|
|
89
|
+
// h5&,
|
|
90
|
+
// h5 {
|
|
91
|
+
// .typography-title-5();
|
|
92
|
+
// }
|
|
93
93
|
|
|
94
94
|
code {
|
|
95
95
|
margin: 0 0.2em;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
@import './token.less';
|
|
3
|
+
|
|
3
4
|
.typography-paragraph(@marginBottom) {
|
|
4
5
|
margin-bottom: @marginBottom;
|
|
5
6
|
}
|
|
@@ -17,8 +18,7 @@
|
|
|
17
18
|
@heading-1-size,
|
|
18
19
|
@typography-title-font-weight,
|
|
19
20
|
1.5,
|
|
20
|
-
@
|
|
21
|
-
// @heading-1-margin-bottom
|
|
21
|
+
@typography-color-text-primary,
|
|
22
22
|
@marginBottom
|
|
23
23
|
);
|
|
24
24
|
}
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
@typography-title-font-weight,
|
|
30
30
|
1.5,
|
|
31
31
|
@heading-2-color,
|
|
32
|
-
// @heading-2-margin-bottom
|
|
33
32
|
@marginBottom
|
|
34
33
|
);
|
|
35
34
|
}
|
|
@@ -39,8 +38,7 @@
|
|
|
39
38
|
@heading-3-size,
|
|
40
39
|
@typography-title-font-weight,
|
|
41
40
|
1.5,
|
|
42
|
-
@
|
|
43
|
-
// @heading-3-margin-bottom
|
|
41
|
+
@typography-color-text-primary,
|
|
44
42
|
@marginBottom
|
|
45
43
|
);
|
|
46
44
|
}
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
@heading-4-size,
|
|
51
49
|
@typography-title-font-weight,
|
|
52
50
|
1.4,
|
|
53
|
-
@
|
|
51
|
+
@typography-color-text-primary,
|
|
54
52
|
@typography-title-margin-bottom
|
|
55
53
|
);
|
|
56
54
|
}
|
|
@@ -60,21 +58,21 @@
|
|
|
60
58
|
@heading-5-size,
|
|
61
59
|
@typography-title-font-weight,
|
|
62
60
|
1.5,
|
|
63
|
-
@
|
|
61
|
+
@typography-color-text-primary,
|
|
64
62
|
@typography-title-margin-bottom
|
|
65
63
|
);
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.operation-unit() {
|
|
69
|
-
color: @link-color;
|
|
67
|
+
color: @typography-link-color;
|
|
70
68
|
text-decoration: none;
|
|
71
69
|
outline: none;
|
|
72
70
|
cursor: pointer;
|
|
73
|
-
transition: color
|
|
71
|
+
transition: color @typography-duration-promptly;
|
|
74
72
|
|
|
75
73
|
&:focus,
|
|
76
74
|
&:hover {
|
|
77
|
-
color: @link-color-hover;
|
|
75
|
+
color: @typography-link-color-hover;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
&:active {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@typography-prefix: '--@{kd-prefix}-c-typography';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@heading-2-color: var(~'@{typography-prefix}-title-color-text', #276ff5);
|
|
7
|
+
@typography-color-text-primary: var(~'@{typography-prefix}-color-text-primary', @color-text-primary);
|
|
8
|
+
@typography-color-text-secondary: var(~'@{typography-prefix}-color-text-secondary', @color-text-secondary);
|
|
9
|
+
@typography-color-text-third: var(~'@{typography-prefix}-color-text-third', @color-text-third);
|
|
10
|
+
@typography-color-warning: var(~'@{typography-prefix}-color-warning', @color-warning);
|
|
11
|
+
@typography-color-error: var(~'@{typography-prefix}-color-error', @color-error);
|
|
12
|
+
@typography-color-success: var(~'@{typography-prefix}-color-success', @color-success);
|
|
13
|
+
@typography-color-disabled: var(~'@{typography-prefix}-color-disabled', @color-disabled);
|
|
14
|
+
@typography-link-color: var(~'@{typography-prefix}-color-text-link', @color-text-link);
|
|
15
|
+
@typography-link-color-hover: var(~'@{typography-prefix}-color-text-link-hover', @color-text-link-hover);
|
|
16
|
+
@typography-link-color-active: var(~'@{typography-prefix}-color-text-link-active', @color-text-link-active);
|
|
17
|
+
|
|
18
|
+
// font
|
|
19
|
+
@typography-title-font-weight: var(~'@{typography-prefix}-title-font-weight', 600);
|
|
20
|
+
@heading-1-size: var(~'@{typography-prefix}-font-size-1', 40px);
|
|
21
|
+
@heading-2-size: var(~'@{typography-prefix}-font-size-2', 28px);
|
|
22
|
+
@heading-3-size: var(~'@{typography-prefix}-font-size-3', 18px);
|
|
23
|
+
|
|
24
|
+
// motion
|
|
25
|
+
@typography-duration-promptly: var(~'@{typography-prefix}-motion-duration', @duration-promptly);
|
|
26
|
+
|
|
27
|
+
// spacing
|
|
28
|
+
@typography-title-margin-top: var(~'@{typography-prefix}-title-spacing-margin-top', 1.2em);
|
|
29
|
+
@typography-title-margin-bottom: var(~'@{typography-prefix}-title-spacing-margin-bottom', 0.5em);
|
|
30
|
+
@typography-paragraph-margin-bottom: var(~'@{typography-prefix}-paragraph-spacing-margin-bottom', 24px);
|
|
31
|
+
@typography-margin-bottom: var(~'@{typography-prefix}-spacing-margin-bottom', 80px);
|
|
32
|
+
@heading-1-margin-bottom: var(~'@{typography-prefix}-spacing-margin-bottom-1', 12px);
|
|
33
|
+
@heading-2-margin-bottom: var(~'@{typography-prefix}-spacing-margin-bottom-2', 24px);
|
|
34
|
+
@heading-3-margin-bottom: var(~'@{typography-prefix}-spacing-margin-bottom-3', 12px);
|
|
35
|
+
|
|
36
|
+
// sizing
|
|
37
|
+
@typography-max-width: var(~'@{typography-prefix}-sizing-width-max', 830px);
|
|
38
|
+
|
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -132,17 +141,17 @@
|
|
|
132
141
|
-webkit-box-pack: center;
|
|
133
142
|
-ms-flex-pack: center;
|
|
134
143
|
justify-content: center;
|
|
135
|
-
color: #999;
|
|
136
|
-
border: 1px dashed #e5e5e5;
|
|
137
|
-
background-color: #fafafa;
|
|
138
|
-
-webkit-transition: border-color 0.3s, background-color 0.3s;
|
|
139
|
-
transition: border-color 0.3s, background-color 0.3s;
|
|
144
|
+
color: var(--kd-c-upload-color, var(--kd-g-color-text-third, #999));
|
|
145
|
+
border: 1px dashed var(--kd-c-upload-color-border, var(--kd-g-color-border-weak, #e5e5e5));
|
|
146
|
+
background-color: var(--kd-c-upload-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
147
|
+
-webkit-transition: border-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s)), background-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
148
|
+
transition: border-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s)), background-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
140
149
|
}
|
|
141
150
|
.kd-upload-drag.hover,
|
|
142
151
|
.kd-upload-drag:hover,
|
|
143
152
|
.kd-upload-drag:active {
|
|
144
|
-
border-color: #0e5fd8;
|
|
145
|
-
background-color: #f2f9ff;
|
|
153
|
+
border-color: var(--kd-c-upload-color-border-active, var(--kd-g-color-text-link, #0e5fd8));
|
|
154
|
+
background-color: var(--kd-c-upload-color-background-ongoing, var(--kd-g-color-background-ongoing, #f2f9ff));
|
|
146
155
|
}
|
|
147
156
|
.kd-upload-input {
|
|
148
157
|
position: absolute;
|
|
@@ -172,8 +181,8 @@
|
|
|
172
181
|
-webkit-font-feature-settings: 'tnum';
|
|
173
182
|
font-feature-settings: 'tnum';
|
|
174
183
|
margin-top: 16px;
|
|
175
|
-
font-size: 14px;
|
|
176
|
-
border-top: 1px dashed #d9d9d9;
|
|
184
|
+
font-size: var(--kd-c-upload-font-size, var(--kd-g-font-size-middle, 14px));
|
|
185
|
+
border-top: 1px dashed var(--kd-c-upload-division-color, var(--kd-g-color-border-strong, #d9d9d9));
|
|
177
186
|
}
|
|
178
187
|
.kd-upload .kd-upload-text-list-item {
|
|
179
188
|
position: relative;
|
|
@@ -186,22 +195,22 @@
|
|
|
186
195
|
-webkit-box-align: center;
|
|
187
196
|
-ms-flex-align: center;
|
|
188
197
|
align-items: center;
|
|
189
|
-
-webkit-transition: background-color 0.3s;
|
|
190
|
-
transition: background-color 0.3s;
|
|
198
|
+
-webkit-transition: background-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
199
|
+
transition: background-color var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
191
200
|
}
|
|
192
201
|
.kd-upload .kd-upload-text-list-item:hover {
|
|
193
|
-
background-color: #f5f5f5;
|
|
202
|
+
background-color: var(--kd-c-upload-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
194
203
|
}
|
|
195
204
|
.kd-upload .kd-upload-text-list-item:hover .kd-upload-text-list-item-action {
|
|
196
205
|
opacity: 1;
|
|
197
206
|
visibility: visible;
|
|
198
207
|
-webkit-transform: translateX(0);
|
|
199
208
|
transform: translateX(0);
|
|
200
|
-
background-color: #f5f5f5;
|
|
209
|
+
background-color: var(--kd-c-upload-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
201
210
|
}
|
|
202
211
|
.kd-upload .kd-upload-text-list-item.error i,
|
|
203
212
|
.kd-upload .kd-upload-text-list-item.error .kd-upload-text-list-item-name {
|
|
204
|
-
color: #fb2323;
|
|
213
|
+
color: var(--kd-c-upload-error-color, var(--kd-g-color-error, #fb2323));
|
|
205
214
|
}
|
|
206
215
|
.kd-upload .kd-upload-text-list-item-name {
|
|
207
216
|
display: inline-block;
|
|
@@ -209,10 +218,10 @@
|
|
|
209
218
|
white-space: nowrap;
|
|
210
219
|
overflow: hidden;
|
|
211
220
|
text-overflow: ellipsis;
|
|
212
|
-
color: #212121;
|
|
221
|
+
color: var(--kd-c-upload-panel-color, var(--kd-g-color-text-primary, #212121));
|
|
213
222
|
}
|
|
214
223
|
.kd-upload .kd-upload-text-list-item-size {
|
|
215
|
-
color: #999;
|
|
224
|
+
color: var(--kd-c-upload-color, var(--kd-g-color-text-third, #999));
|
|
216
225
|
}
|
|
217
226
|
.kd-upload .kd-upload-text-list-item-action {
|
|
218
227
|
position: absolute;
|
|
@@ -224,14 +233,15 @@
|
|
|
224
233
|
visibility: hidden;
|
|
225
234
|
-webkit-transform: translateX(5px);
|
|
226
235
|
transform: translateX(5px);
|
|
227
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
228
|
-
transition: -webkit-transform 0.3s;
|
|
229
|
-
transition: transform 0.3s;
|
|
230
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
236
|
+
-webkit-transition: -webkit-transform var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
237
|
+
transition: -webkit-transform var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
238
|
+
transition: transform var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
239
|
+
transition: transform var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
231
240
|
}
|
|
232
241
|
.kd-upload .kd-upload-text-list-item-action a {
|
|
233
242
|
display: inline-block;
|
|
234
243
|
vertical-align: middle;
|
|
244
|
+
color: var(--kd-c-upload-panel-button-color, #0E5FD8);
|
|
235
245
|
}
|
|
236
246
|
.kd-upload .kd-upload-text-list-item-action a:not(:first-child) {
|
|
237
247
|
margin-left: 20px;
|
|
@@ -254,9 +264,9 @@
|
|
|
254
264
|
margin: 0 28px 28px 0;
|
|
255
265
|
vertical-align: middle;
|
|
256
266
|
overflow: hidden;
|
|
257
|
-
border-radius: 2px;
|
|
258
|
-
border: 1px solid #e5e5e5;
|
|
259
|
-
background-color: #fafafa;
|
|
267
|
+
border-radius: var(--kd-c-upload-radius-border, var(--kd-g-radius-border, 2px));
|
|
268
|
+
border: 1px solid var(--kd-c-upload-color-border, var(--kd-g-color-border-weak, #e5e5e5));
|
|
269
|
+
background-color: var(--kd-c-upload-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
260
270
|
}
|
|
261
271
|
.kd-upload .kd-upload-picture-list-item .kd-upload-select {
|
|
262
272
|
display: -webkit-box;
|
|
@@ -267,21 +277,21 @@
|
|
|
267
277
|
right: -1px;
|
|
268
278
|
bottom: -1px;
|
|
269
279
|
left: -1px;
|
|
270
|
-
color: #999;
|
|
280
|
+
color: var(--kd-c-upload-color, var(--kd-g-color-text-third, #999));
|
|
271
281
|
-webkit-box-align: center;
|
|
272
282
|
-ms-flex-align: center;
|
|
273
283
|
align-items: center;
|
|
274
284
|
-webkit-box-pack: center;
|
|
275
285
|
-ms-flex-pack: center;
|
|
276
286
|
justify-content: center;
|
|
277
|
-
border: 1px dashed #e5e5e5;
|
|
278
|
-
-webkit-transition: all 0.3s;
|
|
279
|
-
transition: all 0.3s;
|
|
287
|
+
border: 1px dashed var(--kd-c-upload-color-border, var(--kd-g-color-border-weak, #e5e5e5));
|
|
288
|
+
-webkit-transition: all var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
289
|
+
transition: all var(--kd-c-upload-motion-duration, var(--kd-g-duration, 0.3s));
|
|
280
290
|
}
|
|
281
291
|
.kd-upload .kd-upload-picture-list-item .kd-upload-select:hover,
|
|
282
292
|
.kd-upload .kd-upload-picture-list-item .kd-upload-select:active {
|
|
283
|
-
border-color: #0e5fd8;
|
|
284
|
-
background-color: #f2f9ff;
|
|
293
|
+
border-color: var(--kd-c-upload-color-border-active, var(--kd-g-color-text-link, #0e5fd8));
|
|
294
|
+
background-color: var(--kd-c-upload-color-background-ongoing, var(--kd-g-color-background-ongoing, #f2f9ff));
|
|
285
295
|
}
|
|
286
296
|
.kd-upload .kd-upload-picture-list-item .kd-upload-select .kd-upload-handle {
|
|
287
297
|
position: absolute;
|
|
@@ -311,7 +321,7 @@
|
|
|
311
321
|
max-height: 100%;
|
|
312
322
|
}
|
|
313
323
|
.kd-upload .kd-upload-picture-list-item.error {
|
|
314
|
-
border-color: #ff8088;
|
|
324
|
+
border-color: var(--kd-c-upload-color-border-error, var(--kd-g-color-border-error, #ff8088));
|
|
315
325
|
}
|
|
316
326
|
.kd-upload .kd-upload-picture-list-item-loading {
|
|
317
327
|
width: 100%;
|
|
@@ -352,7 +362,7 @@
|
|
|
352
362
|
}
|
|
353
363
|
.kd-upload .kd-upload-picture-list-item-error-text {
|
|
354
364
|
margin-bottom: 5px;
|
|
355
|
-
color: #fb2323;
|
|
365
|
+
color: var(--kd-c-upload-error-color, var(--kd-g-color-error, #fb2323));
|
|
356
366
|
}
|
|
357
367
|
.kd-upload .kd-upload-picture-list-item-error a {
|
|
358
368
|
display: inline-block;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@upload-prefix-cls: ~'@{kd-prefix}-upload';
|
|
5
6
|
@upload-prefix-text-list-cls: ~'@{upload-prefix-cls}-text-list';
|
|
@@ -23,16 +24,16 @@
|
|
|
23
24
|
text-align: center;
|
|
24
25
|
align-items: center;
|
|
25
26
|
justify-content: center;
|
|
26
|
-
color: @
|
|
27
|
-
border: 1px dashed @
|
|
28
|
-
background-color: @
|
|
29
|
-
transition: border-color @transition-duration, background-color @transition-duration;
|
|
27
|
+
color: @upload-text-color;
|
|
28
|
+
border: 1px dashed @upload-border-color;
|
|
29
|
+
background-color: @upload-background-color;
|
|
30
|
+
transition: border-color @upload-transition-duration, background-color @upload-transition-duration;
|
|
30
31
|
|
|
31
32
|
&.hover,
|
|
32
33
|
&:hover,
|
|
33
34
|
&:active {
|
|
34
|
-
border-color: @
|
|
35
|
-
background-color: @
|
|
35
|
+
border-color: @upload-border-color-active;
|
|
36
|
+
background-color: @upload-background-color-ongoing;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -59,8 +60,8 @@
|
|
|
59
60
|
.@{upload-prefix-text-list-cls} {
|
|
60
61
|
.reset-component;
|
|
61
62
|
margin-top: 16px;
|
|
62
|
-
font-size: @font-size;
|
|
63
|
-
border-top: 1px dashed @
|
|
63
|
+
font-size: @upload-font-size;
|
|
64
|
+
border-top: 1px dashed @upload-border-color-strong;
|
|
64
65
|
|
|
65
66
|
&-item {
|
|
66
67
|
position: relative;
|
|
@@ -69,23 +70,23 @@
|
|
|
69
70
|
white-space: nowrap;
|
|
70
71
|
display: flex;
|
|
71
72
|
align-items: center;
|
|
72
|
-
transition: background-color @transition-duration;
|
|
73
|
+
transition: background-color @upload-transition-duration;
|
|
73
74
|
|
|
74
75
|
&:hover {
|
|
75
|
-
background-color: @
|
|
76
|
+
background-color: @upload-background-color-hover;
|
|
76
77
|
|
|
77
78
|
.@{upload-prefix-text-list-cls}-item-action {
|
|
78
79
|
opacity: 1;
|
|
79
80
|
visibility: visible;
|
|
80
81
|
transform: translateX(0);
|
|
81
|
-
background-color: @
|
|
82
|
+
background-color: @upload-background-color-hover;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
&.error {
|
|
86
87
|
i,
|
|
87
88
|
.@{upload-prefix-text-list-cls}-item-name {
|
|
88
|
-
color: @error-color;
|
|
89
|
+
color: @upload-text-error-color;
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -93,11 +94,11 @@
|
|
|
93
94
|
display: inline-block;
|
|
94
95
|
margin: 0 5px;
|
|
95
96
|
.ellipsis;
|
|
96
|
-
color: @
|
|
97
|
+
color: @upload-panel-color;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
&-size {
|
|
100
|
-
color: @
|
|
101
|
+
color: @upload-text-color;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&-action {
|
|
@@ -109,11 +110,12 @@
|
|
|
109
110
|
opacity: 0;
|
|
110
111
|
visibility: hidden;
|
|
111
112
|
transform: translateX(5px);
|
|
112
|
-
transition: transform @transition-duration;
|
|
113
|
+
transition: transform @upload-transition-duration;
|
|
113
114
|
|
|
114
115
|
a {
|
|
115
116
|
display: inline-block;
|
|
116
117
|
vertical-align: middle;
|
|
118
|
+
color: @upload-panel-button-color;
|
|
117
119
|
|
|
118
120
|
&:not(:first-child) {
|
|
119
121
|
margin-left: 20px;
|
|
@@ -134,9 +136,9 @@
|
|
|
134
136
|
margin: 0 28px 28px 0;
|
|
135
137
|
vertical-align: middle;
|
|
136
138
|
overflow: hidden;
|
|
137
|
-
border-radius: @radius
|
|
138
|
-
border: 1px solid @
|
|
139
|
-
background-color: @
|
|
139
|
+
border-radius: @upload-border-radius;
|
|
140
|
+
border: 1px solid @upload-border-color;
|
|
141
|
+
background-color: @upload-background-color;
|
|
140
142
|
|
|
141
143
|
.@{upload-prefix-cls}-select {
|
|
142
144
|
display: flex;
|
|
@@ -145,16 +147,16 @@
|
|
|
145
147
|
right: -1px;
|
|
146
148
|
bottom: -1px;
|
|
147
149
|
left: -1px;
|
|
148
|
-
color: @
|
|
150
|
+
color: @upload-text-color;
|
|
149
151
|
align-items: center;
|
|
150
152
|
justify-content: center;
|
|
151
|
-
border: 1px dashed @
|
|
152
|
-
transition: all @transition-duration;
|
|
153
|
+
border: 1px dashed @upload-border-color;
|
|
154
|
+
transition: all @upload-transition-duration;
|
|
153
155
|
|
|
154
156
|
&:hover,
|
|
155
157
|
&:active {
|
|
156
|
-
border-color: @
|
|
157
|
-
background-color: @
|
|
158
|
+
border-color: @upload-border-color-active;
|
|
159
|
+
background-color: @upload-background-color-ongoing;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
.@{upload-prefix-cls}-handle {
|
|
@@ -182,7 +184,7 @@
|
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
&.error {
|
|
185
|
-
border-color: @
|
|
187
|
+
border-color: @upload-border-error-color;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
&-loading {
|
|
@@ -208,7 +210,7 @@
|
|
|
208
210
|
|
|
209
211
|
&-text {
|
|
210
212
|
margin-bottom: 5px;
|
|
211
|
-
color: @error-color;
|
|
213
|
+
color: @upload-text-error-color;
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
a {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@upload-prefix: '--@{kd-prefix}-c-upload';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@upload-text-color: var(~'@{upload-prefix}-color', @color-text-third);
|
|
7
|
+
|
|
8
|
+
@upload-text-error-color: var(~'@{upload-prefix}-error-color', @color-error);
|
|
9
|
+
@upload-border-error-color: var(~'@{upload-prefix}-color-border-error', @color-border-error);
|
|
10
|
+
@upload-border-color: var(~'@{upload-prefix}-color-border', @color-border-weak);
|
|
11
|
+
@upload-border-color-strong: var(~'@{upload-prefix}-division-color', @color-border-strong);
|
|
12
|
+
@upload-border-color-active: var(~'@{upload-prefix}-color-border-active', @color-text-link);
|
|
13
|
+
@upload-background-color: var(~'@{upload-prefix}-color-background', @color-background-contain);
|
|
14
|
+
@upload-background-color-ongoing: var(~'@{upload-prefix}-color-background-ongoing', @color-background-ongoing);
|
|
15
|
+
@upload-background-color-hover: var(~'@{upload-prefix}-color-background-hover', @color-hover);
|
|
16
|
+
|
|
17
|
+
@upload-panel-button-color: var(~'@{upload-prefix}-panel-button-color', #0E5FD8);
|
|
18
|
+
@upload-panel-color: var(~'@{upload-prefix}-panel-color', @color-text-primary);
|
|
19
|
+
|
|
20
|
+
// motion
|
|
21
|
+
@upload-transition-duration: var(~'@{upload-prefix}-motion-duration', @duration-promptly);
|
|
22
|
+
|
|
23
|
+
// font
|
|
24
|
+
@upload-font-size: var(~'@{upload-prefix}-font-size', @font-size-middle);
|
|
25
|
+
|
|
26
|
+
// radius
|
|
27
|
+
@upload-border-radius: var(~'@{upload-prefix}-radius-border', @radius-border);
|
|
28
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kdcloudjs/kdesign",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "KDesign 金蝶前端react 组件库",
|
|
5
5
|
"title": "kdesign",
|
|
6
6
|
"keywords": [
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"compile": "gulp compile",
|
|
46
46
|
"dist": "node build/bin/dist.js",
|
|
47
47
|
"clean": "rimraf _data && rimraf _site ",
|
|
48
|
-
"site": "npm run tsc && npm run clean && bisheng build -c ./site/bisheng.config.js
|
|
49
|
-
"start": "npm run tsc && npm run clean && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js
|
|
48
|
+
"site": "npm run tsc && npm run clean && bisheng build -c ./site/bisheng.config.js",
|
|
49
|
+
"start": "npm run tsc && npm run clean && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",
|
|
50
50
|
"lint": "npm run tsc && npm run lint:script && npm run lint:style",
|
|
51
51
|
"lint:script": "eslint --ext .tsx,.ts,.js,.jsx ./components ./site",
|
|
52
52
|
"tsc": "tsc --noEmit",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"pub": "npm run test:all && npm run build && cross-env PUB_ENV=pub np --no-cleanup --no-tests",
|
|
63
63
|
"pub:beta": "npm run test:all && npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=beta",
|
|
64
64
|
"prepublishOnly": "node scripts/guard.js",
|
|
65
|
-
"new": "node scripts/create-component.js"
|
|
65
|
+
"new": "node scripts/create-component.js",
|
|
66
|
+
"token": "node scripts/generate-token.js"
|
|
66
67
|
},
|
|
67
68
|
"browserslist": [
|
|
68
69
|
"last 2 versions",
|
package/es/form/style/mixin.less
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// 按钮默认样式Mixins
|
|
2
|
-
.btn() {
|
|
3
|
-
padding: 0;
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
font-weight: @font-weight;
|
|
8
|
-
border: @btn-border-width @btn-border-style transparent;
|
|
9
|
-
user-select: none;
|
|
10
|
-
border-radius: @radius-size;
|
|
11
|
-
text-align: center;
|
|
12
|
-
background-color: transparent;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
&,
|
|
15
|
-
&:active,
|
|
16
|
-
&:focus {
|
|
17
|
-
outline: 0;
|
|
18
|
-
}
|
|
19
|
-
&>span {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
// 各个按钮类型的样式Mixins
|
|
24
|
-
.btn-type(@border-color, @background-color, @color) {
|
|
25
|
-
border-color: @border-color;
|
|
26
|
-
background-color: @background-color;
|
|
27
|
-
color: @color;
|
|
28
|
-
}
|
|
29
|
-
// 各个按钮尺寸的样式Mixins
|
|
30
|
-
.btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
|
|
31
|
-
height: @height;
|
|
32
|
-
min-width: @min-width;
|
|
33
|
-
line-height: @height - (@padding-vertical * 2) - (@btn-border-width * 2);
|
|
34
|
-
font-size: @font-size;
|
|
35
|
-
padding: @padding-vertical @padding-horizontal;
|
|
36
|
-
}
|
|
37
|
-
// 圆形按钮不同尺寸的样式Mixins
|
|
38
|
-
.btn-shape-circle-width(@width) {
|
|
39
|
-
width: @width;
|
|
40
|
-
padding: 0;
|
|
41
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// 按钮默认样式Mixins
|
|
2
|
-
.btn() {
|
|
3
|
-
padding: 0;
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
font-weight: @font-weight;
|
|
8
|
-
border: @btn-border-width @btn-border-style transparent;
|
|
9
|
-
user-select: none;
|
|
10
|
-
border-radius: @radius-size;
|
|
11
|
-
text-align: center;
|
|
12
|
-
background-color: transparent;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
&,
|
|
15
|
-
&:active,
|
|
16
|
-
&:focus {
|
|
17
|
-
outline: 0;
|
|
18
|
-
}
|
|
19
|
-
&>span {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
// 各个按钮类型的样式Mixins
|
|
24
|
-
.btn-type(@border-color, @background-color, @color) {
|
|
25
|
-
border-color: @border-color;
|
|
26
|
-
background-color: @background-color;
|
|
27
|
-
color: @color;
|
|
28
|
-
}
|
|
29
|
-
// 各个按钮尺寸的样式Mixins
|
|
30
|
-
.btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
|
|
31
|
-
height: @height;
|
|
32
|
-
min-width: @min-width;
|
|
33
|
-
line-height: @height - (@padding-vertical * 2) - (@btn-border-width * 2);
|
|
34
|
-
font-size: @font-size;
|
|
35
|
-
padding: @padding-vertical @padding-horizontal;
|
|
36
|
-
}
|
|
37
|
-
// 圆形按钮不同尺寸的样式Mixins
|
|
38
|
-
.btn-shape-circle-width(@width) {
|
|
39
|
-
width: @width;
|
|
40
|
-
padding: 0;
|
|
41
|
-
}
|