@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.10
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/dist/Avatar/component/Avatar/index.js +9 -7
- package/dist/Avatar/style/index.less +8 -1
- package/dist/Button/index.d.ts +3 -4
- package/dist/Button/index.js +7 -20
- package/dist/Button/style/size.less +21 -8
- package/dist/Button/style/type.less +61 -33
- package/dist/Button/style/variables.less +236 -48
- package/dist/Checkbox/index.js +10 -4
- package/dist/Checkbox/style/index.less +117 -108
- package/dist/Checkbox/type.d.ts +11 -0
- package/dist/ColorPicker/style/index.less +1 -2
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/style/index.less +11 -11
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +71 -107
- package/dist/Empty/image/Search.js +2 -2
- package/dist/Empty/image/SearchSmall.js +2 -2
- package/dist/Empty/index.js +2 -1
- package/dist/Empty/style/index.less +2 -1
- package/dist/Form/style/index.less +27 -6
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
- package/dist/Icon/components/AlertTriangleLine.js +35 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
- package/dist/Icon/components/ArrowDownFill.js +35 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionCircleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
- package/dist/Icon/components/CheckCircleFill.js +35 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckCircleLightLine.js +38 -0
- package/dist/Icon/components/CheckLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckLightLine.js +35 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CircleLightLine.js +38 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
- package/dist/Icon/components/CloseCircleFill.js +35 -0
- package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseCircleLightLine.js +35 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseLightLine.js +35 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +11 -0
- package/dist/Icon/components/Ellipsis.js +35 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
- package/dist/Icon/components/InformationCircleFill.js +35 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/InformationCircleLightLine.js +38 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
- package/dist/Icon/components/LoadingDuotone.js +39 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/TriangleLightLine.js +35 -0
- package/dist/Icon/components/User.d.ts +11 -0
- package/dist/Icon/components/User.js +41 -0
- package/dist/Icon/components/UserGroup.d.ts +11 -0
- package/dist/Icon/components/UserGroup.js +39 -0
- package/dist/Icon/index.d.ts +19 -3
- package/dist/Icon/index.js +19 -2
- package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
- package/dist/Icon/svg/Loading-duotone.svg +6 -0
- package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
- package/dist/Icon/svg/alert-triangle-line.svg +5 -0
- package/dist/Icon/svg/arrow-down-fill.svg +5 -0
- package/dist/Icon/svg/attention-circle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
- package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
- package/dist/Icon/svg/check-circle-duotone.svg +6 -2
- package/dist/Icon/svg/check-circle-fill.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +8 -0
- package/dist/Icon/svg/check-light-line.svg +5 -0
- package/dist/Icon/svg/chevron-down-line.svg +6 -4
- package/dist/Icon/svg/chevron-left-line.svg +6 -4
- package/dist/Icon/svg/chevron-right-line.svg +6 -4
- package/dist/Icon/svg/circle-light-line.svg +9 -0
- package/dist/Icon/svg/close-L-line.svg +11 -9
- package/dist/Icon/svg/close-circle-fill.svg +5 -0
- package/dist/Icon/svg/close-light-line.svg +5 -0
- package/dist/Icon/svg/close-m-line.svg +6 -4
- package/dist/Icon/svg/drag-line.svg +6 -4
- package/dist/Icon/svg/ellipsis.svg +5 -0
- package/dist/Icon/svg/eye-off-line.svg +6 -4
- package/dist/Icon/svg/eye-on-line.svg +14 -8
- package/dist/Icon/svg/fold-down-fill.svg +7 -6
- package/dist/Icon/svg/fold-up-fill.svg +7 -6
- package/dist/Icon/svg/info-circle-duotone.svg +4 -2
- package/dist/Icon/svg/info-circle-line.svg +3 -1
- package/dist/Icon/svg/information-circle-fill.svg +5 -0
- package/dist/Icon/svg/information-circle-light-line.svg +9 -0
- package/dist/Icon/svg/loading-2-line.svg +4 -2
- package/dist/Icon/svg/loading-line.svg +6 -4
- package/dist/Icon/svg/more-vertical-line.svg +6 -4
- package/dist/Icon/svg/search-line.svg +6 -4
- package/dist/Icon/svg/triangle-light-line.svg +5 -0
- package/dist/Icon/svg/user.svg +4 -0
- package/dist/Icon/svg/userGroup.svg +7 -0
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/IconButton/index.js +8 -19
- package/dist/IconButton/style/index.less +49 -25
- package/dist/Input/components/Input/index.js +18 -2
- package/dist/Input/components/Password/index.d.ts +0 -5
- package/dist/Input/components/Password/index.js +10 -10
- package/dist/Input/components/TextArea/index.js +15 -2
- package/dist/Input/index.d.ts +2 -5
- package/dist/Input/index.js +1 -3
- package/dist/Input/style/index.less +4 -565
- package/dist/Input/style/reset.less +22 -0
- package/dist/Input/style/size.less +82 -0
- package/dist/Input/style/status.less +105 -0
- package/dist/InputNumber/style/index.less +12 -9
- package/dist/MemberPicker/components/MultipleOption.js +4 -3
- package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
- package/dist/MemberPicker/components/NickLabel.js +8 -2
- package/dist/MemberPicker/components/Panel.js +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
- package/dist/MemberPicker/components/SingleOption.js +1 -0
- package/dist/MemberPicker/index.js +2 -0
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +38 -30
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +71 -133
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +32 -43
- package/dist/Modal/style/index.less +3 -191
- package/dist/Modal/style/modal.less +132 -0
- package/dist/Modal/style/modalConfirm.less +100 -0
- package/dist/Navigator/style/index.less +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +11 -3
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +58 -12
- package/dist/Popover/style/index.less +29 -29
- package/dist/Radio/components/Group/index.js +3 -5
- package/dist/Radio/components/Radio/index.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/style/index.less +69 -56
- package/dist/ScrollArea/index.d.ts +1 -0
- package/dist/ScrollArea/index.js +5 -2
- package/dist/ScrollArea/style/index.less +5 -0
- package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
- package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +3 -1
- package/dist/Select/index.d.ts +5 -0
- package/dist/Select/index.js +28 -40
- package/dist/Select/style/index.less +109 -77
- package/dist/Select/style/layout.less +43 -0
- package/dist/Select/style/option.less +42 -3
- package/dist/Select/style/selectDropdown.less +16 -0
- package/dist/Select/style/size.less +316 -84
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +13 -17
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/CustomIcon/index.d.ts +3 -0
- package/dist/Spin/CustomIcon/index.js +20 -15
- package/dist/Spin/CustomIcon/index.less +32 -105
- package/dist/Spin/index.d.ts +2 -0
- package/dist/Spin/index.js +10 -5
- package/dist/Spin/style/index.less +17 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +18 -3
- package/dist/Table/style/index.less +24 -10
- package/dist/Table/types.d.ts +1 -0
- package/dist/Tabs/index.d.ts +7 -2
- package/dist/Tabs/index.js +9 -6
- package/dist/Tabs/style/index.less +29 -18
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +26 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +14 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/DirectoryTree.js +0 -12
- package/dist/Tree/Tree.js +2 -2
- package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
- package/dist/Tree/demo/directoryTree/index.js +44 -0
- package/dist/Tree/style/index.less +31 -12
- package/dist/Tree/style/mixin.less +3 -5
- package/dist/Tree/style/reset.less +15 -0
- package/dist/Tree/style/var.less +1 -1
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.less +1 -0
- package/dist/message/index.js +15 -14
- package/dist/message/style/color.less +22 -41
- package/dist/message/style/index.less +15 -16
- package/dist/notification/demo/footer.d.ts +3 -0
- package/dist/notification/demo/footer.js +44 -0
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +84 -55
- package/dist/notification/style/index.less +53 -9
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +4 -4
- package/dist/style/themes/default/scrollBar.less +1 -1
- package/dist/style/var/default.css +1334 -0
- package/package.json +4 -3
- package/dist/Icon/components/Icon.d.ts +0 -32
- package/dist/Icon/components/Icon.js +0 -25
- package/dist/Input/components/Group/index.d.ts +0 -18
- package/dist/Input/components/Group/index.js +0 -19
- package/dist/Menu/style/dropdown.less +0 -61
- package/dist/Select/style/multiple.less +0 -55
- package/dist/Select/style/single.less +0 -44
|
@@ -5,65 +5,253 @@
|
|
|
5
5
|
/** size控制 **/
|
|
6
6
|
@button-height-large: 36px;
|
|
7
7
|
@button-text-size-large: 16px;
|
|
8
|
-
@button-border-radius-large:
|
|
9
|
-
@button-
|
|
10
|
-
|
|
11
|
-
@button-
|
|
8
|
+
@button-border-radius-large: var(--alias-radius-100, 8px);
|
|
9
|
+
@button-padding-large: var(--alias-padding-75-minus-1, 6px)
|
|
10
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
11
|
+
@button-line-height-large: 24px;
|
|
12
|
+
@button-gap-large: 8px;
|
|
13
|
+
@button-text-min-width-large: 56px;
|
|
12
14
|
|
|
13
15
|
@button-height-middle: 32px;
|
|
14
|
-
@button-text-size-middle:
|
|
15
|
-
@button-border-radius-middle:
|
|
16
|
-
@button-
|
|
17
|
-
|
|
18
|
-
@button-
|
|
16
|
+
@button-text-size-middle: 14px;
|
|
17
|
+
@button-border-radius-middle: var(--alias-radius-75, 6px);
|
|
18
|
+
@button-padding-middle: var(--alias-padding-75-minus-1, 6px)
|
|
19
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
20
|
+
@button-line-height-middle: 20px;
|
|
21
|
+
@button-gap-middle: 4px;
|
|
22
|
+
@button-text-min-width-middle: 52px;
|
|
19
23
|
|
|
20
24
|
@button-height-small: 28px;
|
|
21
25
|
@button-text-size-small: 12px;
|
|
22
|
-
@button-border-radius-small:
|
|
23
|
-
@button-
|
|
24
|
-
|
|
25
|
-
@button-
|
|
26
|
+
@button-border-radius-small: var(--alias-radius-50, 4px);
|
|
27
|
+
@button-padding-small: var(--alias-padding-75-minus-1, 6px)
|
|
28
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
29
|
+
@button-line-height-small: 16px;
|
|
30
|
+
@button-gap-small: var(--alias-radius-50, 4px);
|
|
31
|
+
@button-text-min-width-small: 48px;
|
|
26
32
|
|
|
27
33
|
// @button-height-mini: 24px;
|
|
28
34
|
// @button-text-size-mini: 12px;
|
|
29
35
|
// @button-border-radius-mini: 4px;
|
|
30
|
-
// @button-
|
|
31
|
-
// @button-
|
|
36
|
+
// @button-padding-mini: 0 7px;
|
|
37
|
+
// @button-gap-mini: 4px;
|
|
32
38
|
|
|
33
|
-
/****
|
|
34
|
-
|
|
35
|
-
@button-primary-bg-color
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@button-primary-color-
|
|
39
|
+
/**** primary按钮 ****/
|
|
40
|
+
// bg color
|
|
41
|
+
@button-primary-bg-color: var(
|
|
42
|
+
--alias-colors-bg-accent-blue-stronger-default,
|
|
43
|
+
#126fdd
|
|
44
|
+
);
|
|
45
|
+
@button-primary-bg-color-hover: var(
|
|
46
|
+
--alias-colors-bg-accent-blue-stronger-hover,
|
|
47
|
+
#0f59b1
|
|
48
|
+
);
|
|
49
|
+
@button-primary-bg-color-active: var(
|
|
50
|
+
--alias-colors-bg-accent-blue-stronger-press,
|
|
51
|
+
#0b4385
|
|
52
|
+
);
|
|
53
|
+
@button-primary-bg-color-disable: var(
|
|
54
|
+
--alias-colors-bg-disabled,
|
|
55
|
+
rgba(0, 0, 0, 0.05)
|
|
56
|
+
);
|
|
57
|
+
// text color
|
|
58
|
+
@button-primary-color: var(--alias-colors-text-inverse-strong, #fff);
|
|
59
|
+
@button-primary-color-hover: var(--alias-colors-text-inverse-strong, #fff);
|
|
60
|
+
@button-primary-color-active: var(--alias-colors-text-inverse-strong, #fff);
|
|
61
|
+
@button-primary-color-disable: var(
|
|
62
|
+
--alias-colors-text-disabled,
|
|
63
|
+
rgba(0, 0, 0, 0.25)
|
|
64
|
+
);
|
|
65
|
+
// border color
|
|
66
|
+
@button-primary-border-color: var(
|
|
67
|
+
--alias-colors-border-transp,
|
|
68
|
+
rgba(0, 0, 0, 0)
|
|
69
|
+
);
|
|
70
|
+
@button-primary-border-color-hover: var(
|
|
71
|
+
--alias-colors-border-transp,
|
|
72
|
+
rgba(0, 0, 0, 0)
|
|
73
|
+
);
|
|
74
|
+
@button-primary-border-color-active: var(
|
|
75
|
+
--alias-colors-border-transp,
|
|
76
|
+
rgba(0, 0, 0, 0)
|
|
77
|
+
);
|
|
78
|
+
@button-primary-border-color-disable: var(
|
|
79
|
+
--alias-colors-border-transp,
|
|
80
|
+
rgba(0, 0, 0, 0)
|
|
81
|
+
);
|
|
40
82
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@button-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
83
|
+
/*********** secondary按钮 ***********/
|
|
84
|
+
// bg color
|
|
85
|
+
@button-secondary-bg-color: var(
|
|
86
|
+
--alias-colors-bg-accent-gray-subtler-default,
|
|
87
|
+
#f9fafb
|
|
88
|
+
);
|
|
89
|
+
@button-secondary-bg-color-hover: var(
|
|
90
|
+
--alias-colors-bg-accent-gray-subtler-default,
|
|
91
|
+
#f9fafb
|
|
92
|
+
);
|
|
93
|
+
@button-secondary-bg-color-active: var(
|
|
94
|
+
--alias-colors-bg-accent-gray-subtler-press,
|
|
95
|
+
#e5e7eb
|
|
96
|
+
);
|
|
97
|
+
@button-secondary-bg-color-disable: var(
|
|
98
|
+
--alias-colors-bg-disabled,
|
|
99
|
+
rgba(0, 0, 0, 0.05)
|
|
100
|
+
);
|
|
101
|
+
// text color
|
|
102
|
+
@button-secondary-color: var(--alias-colors-text-default, #1f2937);
|
|
103
|
+
@button-secondary-color-hover: var(--alias-colors-text-default, #1f2937);
|
|
104
|
+
@button-secondary-color-active: var(--alias-colors-text-default, #1f2937);
|
|
105
|
+
@button-secondary-color-disable: var(
|
|
106
|
+
--alias-colors-text-disabled,
|
|
107
|
+
rgba(0, 0, 0, 0.25)
|
|
108
|
+
);
|
|
109
|
+
// border color
|
|
110
|
+
@button-secondary-border-color: var(
|
|
111
|
+
--alias-colors-border-accent-gray-subtle-default,
|
|
112
|
+
#d1d5db
|
|
113
|
+
);
|
|
114
|
+
@button-secondary-border-color-hover: var(
|
|
115
|
+
--alias-colors-border-accent-gray-subtle-hover,
|
|
116
|
+
#9ca3af
|
|
117
|
+
);
|
|
118
|
+
@button-secondary-border-color-active: var(
|
|
119
|
+
--alias-colors-border-accent-gray-subtle-default,
|
|
120
|
+
#d1d5db
|
|
121
|
+
);
|
|
122
|
+
@button-secondary-border-color-disable: var(
|
|
123
|
+
--alias-colors-border-transp,
|
|
124
|
+
rgba(0, 0, 0, 0)
|
|
125
|
+
);
|
|
47
126
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
@button-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
@button-
|
|
55
|
-
|
|
127
|
+
/*********** danger按钮 ***********/
|
|
128
|
+
// bg color
|
|
129
|
+
@button-dangerous-bg-color: var(
|
|
130
|
+
--alias-colors-bg-accent-red-stronger-default,
|
|
131
|
+
#dc2626
|
|
132
|
+
);
|
|
133
|
+
@button-dangerous-bg-color-hover: var(
|
|
134
|
+
--alias-colors-bg-accent-red-stronger-hover,
|
|
135
|
+
#b91c1c
|
|
136
|
+
);
|
|
137
|
+
@button-dangerous-bg-color-active: var(
|
|
138
|
+
--alias-colors-bg-accent-red-stronger-press,
|
|
139
|
+
#991b1b
|
|
140
|
+
);
|
|
141
|
+
@button-dangerous-bg-color-disable: var(
|
|
142
|
+
--alias-colors-bg-disabled,
|
|
143
|
+
rgba(0, 0, 0, 0.05)
|
|
144
|
+
);
|
|
145
|
+
// text color
|
|
146
|
+
@button-dangerous-color: var(--alias-colors-text-inverse-strong, #fff);
|
|
147
|
+
@button-dangerous-color-hover: var(--alias-colors-text-inverse-strong, #fff);
|
|
148
|
+
@button-dangerous-color-active: var(--alias-colors-text-inverse-strong, #fff);
|
|
149
|
+
@button-dangerous-color-disable: var(
|
|
150
|
+
--alias-colors-text-disabled,
|
|
151
|
+
rgba(0, 0, 0, 0.25)
|
|
152
|
+
);
|
|
153
|
+
// border color
|
|
154
|
+
@button-dangerous-border-color: var(
|
|
155
|
+
--alias-colors-border-transp,
|
|
156
|
+
rgba(0, 0, 0, 0)
|
|
157
|
+
);
|
|
158
|
+
@button-dangerous-border-color-hover: var(
|
|
159
|
+
--alias-colors-border-transp,
|
|
160
|
+
rgba(0, 0, 0, 0)
|
|
161
|
+
);
|
|
162
|
+
@button-dangerous-border-color-active: var(
|
|
163
|
+
--alias-colors-border-transp,
|
|
164
|
+
rgba(0, 0, 0, 0)
|
|
165
|
+
);
|
|
166
|
+
@button-dangerous-border-color-disable: var(
|
|
167
|
+
--alias-colors-border-transp,
|
|
168
|
+
rgba(0, 0, 0, 0)
|
|
169
|
+
);
|
|
56
170
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
@button-text-bg-color
|
|
60
|
-
@button-text-color:
|
|
61
|
-
|
|
62
|
-
|
|
171
|
+
/*********** text按钮 ***********/
|
|
172
|
+
// bg color
|
|
173
|
+
@button-text-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
174
|
+
@button-text-bg-color-hover: var(
|
|
175
|
+
--alias-colors-bg-accent-blue-subtler-hover,
|
|
176
|
+
#d4e7fd
|
|
177
|
+
);
|
|
178
|
+
@button-text-bg-color-active: var(
|
|
179
|
+
--alias-colors-bg-brand-subtlest-press,
|
|
180
|
+
#a9cffb
|
|
181
|
+
);
|
|
182
|
+
@button-text-bg-color-disable: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
183
|
+
// text color
|
|
184
|
+
@button-text-color: var(--alias-colors-text-default, #1f2937);
|
|
185
|
+
@button-text-color-hover: var(--alias-colors-text-brand, #126fdd);
|
|
186
|
+
@button-text-color-active: var(--alias-colors-text-brand, #126fdd);
|
|
187
|
+
@button-text-color-disable: var(
|
|
188
|
+
--alias-colors-text-disabled,
|
|
189
|
+
rgba(0, 0, 0, 0.25)
|
|
190
|
+
);
|
|
191
|
+
// border color
|
|
192
|
+
@button-text-border-color: var(--alias-colors-border-transp, rgba(0, 0, 0, 0));
|
|
193
|
+
@button-text-border-color-hover: var(
|
|
194
|
+
--alias-colors-border-transp,
|
|
195
|
+
rgba(0, 0, 0, 0)
|
|
196
|
+
);
|
|
197
|
+
@button-text-border-color-active: var(
|
|
198
|
+
--alias-colors-border-transp,
|
|
199
|
+
rgba(0, 0, 0, 0)
|
|
200
|
+
);
|
|
201
|
+
@button-text-border-color-disable: var(
|
|
202
|
+
--alias-colors-border-transp,
|
|
203
|
+
rgba(0, 0, 0, 0)
|
|
204
|
+
);
|
|
63
205
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@button-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
206
|
+
/*********** inverse按钮 ***********/
|
|
207
|
+
// bg color
|
|
208
|
+
@button-inverse-bg-color: var(
|
|
209
|
+
--component-button-background-secondary-inverse-default,
|
|
210
|
+
rgba(255, 255, 255, 0.1)
|
|
211
|
+
);
|
|
212
|
+
@button-inverse-bg-color-hover: var(
|
|
213
|
+
--alias-colors-bg-skeleton-inverse-stronger,
|
|
214
|
+
rgba(255, 255, 255, 0.15)
|
|
215
|
+
);
|
|
216
|
+
@button-inverse-bg-color-active: var(
|
|
217
|
+
--alias-colors-bg-skeleton-inverse-strongest,
|
|
218
|
+
rgba(255, 255, 255, 0.25)
|
|
219
|
+
);
|
|
220
|
+
@button-inverse-bg-color-disable: var(
|
|
221
|
+
--alias-colors-bg-inverse-disabled,
|
|
222
|
+
rgba(255, 255, 255, 0.1)
|
|
223
|
+
);
|
|
224
|
+
// text color
|
|
225
|
+
@button-inverse-color: var(
|
|
226
|
+
--alias-colors-text-inverse-default,
|
|
227
|
+
rgba(255, 255, 255, 0.9)
|
|
228
|
+
);
|
|
229
|
+
@button-inverse-color-hover: var(
|
|
230
|
+
--alias-colors-text-inverse-default,
|
|
231
|
+
rgba(255, 255, 255, 0.9)
|
|
232
|
+
);
|
|
233
|
+
@button-inverse-color-active: var(
|
|
234
|
+
--alias-colors-text-inverse-default,
|
|
235
|
+
rgba(255, 255, 255, 0.9)
|
|
236
|
+
);
|
|
237
|
+
@button-inverse-color-disable: var(
|
|
238
|
+
--alias-colors-text-inverse-disabled,
|
|
239
|
+
rgba(255, 255, 255, 0.25)
|
|
240
|
+
);
|
|
241
|
+
// border color
|
|
242
|
+
@button-inverse-border-color: var(
|
|
243
|
+
--alias-colors-border-transp,
|
|
244
|
+
rgba(0, 0, 0, 0)
|
|
245
|
+
);
|
|
246
|
+
@button-inverse-border-color-hover: var(
|
|
247
|
+
--alias-colors-border-transp,
|
|
248
|
+
rgba(0, 0, 0, 0)
|
|
249
|
+
);
|
|
250
|
+
@button-inverse-border-color-active: var(
|
|
251
|
+
--alias-colors-border-transp,
|
|
252
|
+
rgba(0, 0, 0, 0)
|
|
253
|
+
);
|
|
254
|
+
@button-inverse-border-color-disable: var(
|
|
255
|
+
--alias-colors-border-transp,
|
|
256
|
+
rgba(0, 0, 0, 0)
|
|
257
|
+
);
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var _excluded = ["className", "disabled"],
|
|
2
|
-
_excluded2 = ["className", "disabled"];
|
|
1
|
+
var _excluded = ["className", "disabled", "size"],
|
|
2
|
+
_excluded2 = ["className", "disabled", "size"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -11,22 +11,28 @@ import CheckboxGroup from "./component/CheckboxGroup";
|
|
|
11
11
|
function Checkbox(props) {
|
|
12
12
|
var className = props.className,
|
|
13
13
|
customDisabled = props.disabled,
|
|
14
|
+
size = props.size,
|
|
14
15
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
15
16
|
var disabled = React.useContext(DisabledContext);
|
|
16
17
|
var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
17
18
|
return /*#__PURE__*/React.createElement(AntdCheckbox, _extends({
|
|
18
|
-
className: classNames('ald-checkbox', className
|
|
19
|
+
className: classNames('ald-checkbox', className, {
|
|
20
|
+
'ald-checkbox-small': size === 'small'
|
|
21
|
+
}),
|
|
19
22
|
disabled: mergedDisabled
|
|
20
23
|
}, otherProps));
|
|
21
24
|
}
|
|
22
25
|
Checkbox.Group = function Group(props) {
|
|
23
26
|
var className = props.className,
|
|
24
27
|
customDisabled = props.disabled,
|
|
28
|
+
size = props.size,
|
|
25
29
|
otherProps = _objectWithoutProperties(props, _excluded2);
|
|
26
30
|
var disabled = React.useContext(DisabledContext);
|
|
27
31
|
var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
28
32
|
return /*#__PURE__*/React.createElement(CheckboxGroup, _extends({
|
|
29
|
-
className: classNames('ald-checkbox-group', className
|
|
33
|
+
className: classNames('ald-checkbox-group', className, {
|
|
34
|
+
'ald-checkbox-group-small': size === 'small'
|
|
35
|
+
}),
|
|
30
36
|
disabled: mergedDisabled
|
|
31
37
|
}, otherProps));
|
|
32
38
|
};
|
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
@checkbox-border-color-normal: var(
|
|
4
|
+
--alias-colors-border-accent-gray-subtle-default
|
|
5
|
+
);
|
|
6
|
+
@checkbox-border-color-hover: var(
|
|
7
|
+
--alias-colors-border-accent-gray-subtle-hover
|
|
8
|
+
);
|
|
9
|
+
@checkbox-border-color-active: var(
|
|
10
|
+
--alias-colors-border-accent-gray-subtle-default
|
|
11
|
+
);
|
|
12
|
+
@checkbox-border-color-disabled: var(--alias-colors-border-disabled);
|
|
13
|
+
|
|
14
|
+
@checkbox-inner-bgc-normal: var(--alias-colors-bg-skeleton-subtler);
|
|
15
|
+
@checkbox-inner-bgc-hover: var(--alias-colors-bg-skeleton-subtler);
|
|
16
|
+
@checkbox-inner-bgc-active: var(--alias-colors-bg-skeleton-strong);
|
|
17
|
+
@checkbox-inner-bgc-disabled: var(--alias-colors-border-disabled);
|
|
18
|
+
|
|
19
|
+
@checkbox-checked-inner-bgc-normal: var(
|
|
20
|
+
--alias-colors-bg-selected-strong-default,
|
|
21
|
+
#126fdd
|
|
22
|
+
);
|
|
23
|
+
@checkbox-checked-inner-bgc-hover: var(
|
|
24
|
+
--alias-colors-bg-selected-strong-hover,
|
|
25
|
+
#0f59b1
|
|
26
|
+
);
|
|
27
|
+
@checkbox-checked-inner-bgc-active: var(
|
|
28
|
+
--alias-colors-bg-selected-strong-press,
|
|
29
|
+
#0b4385
|
|
30
|
+
);
|
|
31
|
+
@checkbox-checked-inner-bgc-disabled: var(
|
|
32
|
+
--alias-colors-bg-disabled,
|
|
33
|
+
rgba(0, 0, 0, 0.05)
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
@checkout-border-radius: var(--alias-radius-25);
|
|
24
37
|
|
|
25
38
|
.ald-checkout-group-vertical {
|
|
26
39
|
display: flex;
|
|
@@ -52,72 +65,113 @@
|
|
|
52
65
|
.ant-checkbox-input {
|
|
53
66
|
margin: 0;
|
|
54
67
|
}
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
& .ant-checkbox-checked,
|
|
71
|
+
& .ant-checkbox-indeterminate {
|
|
72
|
+
.ant-checkbox-inner[class] {
|
|
73
|
+
background-color: @checkbox-checked-inner-bgc-hover;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ant-checkbox-inner[class] {
|
|
78
|
+
background-color: @checkbox-inner-bgc-hover;
|
|
79
|
+
border-color: @checkbox-border-color-hover;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-checkbox-checked.ant-checkbox-disabled {
|
|
83
|
+
.ant-checkbox-inner[class][class] {
|
|
84
|
+
background: @checkbox-checked-inner-bgc-disabled;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-checkbox-disabled {
|
|
89
|
+
.ant-checkbox-inner[class][class] {
|
|
90
|
+
background: @checkbox-inner-bgc-disabled;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:active {
|
|
96
|
+
& .ant-checkbox-checked,
|
|
97
|
+
& .ant-checkbox-indeterminate {
|
|
98
|
+
.ant-checkbox-inner[class] {
|
|
99
|
+
background-color: @checkbox-checked-inner-bgc-active;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ant-checkbox-inner[class] {
|
|
104
|
+
background-color: @checkbox-inner-bgc-active;
|
|
105
|
+
border-color: @checkbox-border-color-active;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ant-checkbox-checked.ant-checkbox-disabled {
|
|
110
|
+
.ant-checkbox-inner[class][class] {
|
|
111
|
+
background: @checkbox-checked-inner-bgc-disabled;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ant-checkbox-disabled {
|
|
116
|
+
.ant-checkbox-inner[class][class] {
|
|
117
|
+
background: @checkbox-inner-bgc-disabled;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
55
120
|
}
|
|
56
121
|
|
|
57
122
|
.ant-checkbox-inner {
|
|
58
123
|
width: 16px;
|
|
59
124
|
height: 16px;
|
|
60
|
-
background-color: @
|
|
61
|
-
border-color: @
|
|
125
|
+
background-color: @checkbox-inner-bgc-normal;
|
|
126
|
+
border-color: @checkbox-border-color-normal;
|
|
62
127
|
border-radius: 2px;
|
|
63
128
|
}
|
|
64
129
|
|
|
65
130
|
.ant-checkbox-checked {
|
|
66
131
|
&::after,
|
|
67
132
|
.ant-checkbox-inner {
|
|
68
|
-
|
|
69
|
-
|
|
133
|
+
border: 0;
|
|
134
|
+
background-color: @checkbox-checked-inner-bgc-normal;
|
|
70
135
|
border-radius: 2px;
|
|
71
136
|
}
|
|
72
137
|
|
|
73
138
|
.ant-checkbox-inner {
|
|
74
|
-
background-color: @
|
|
75
|
-
border-color: @B40;
|
|
139
|
+
background-color: @checkbox-checked-inner-bgc-normal;
|
|
76
140
|
|
|
77
141
|
&::after {
|
|
78
|
-
|
|
79
|
-
|
|
142
|
+
top: 4px;
|
|
143
|
+
left: 3px;
|
|
80
144
|
z-index: 10;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// top: 0;
|
|
89
|
-
// left: 0;
|
|
90
|
-
// width: 100%;
|
|
91
|
-
// height: 100%;
|
|
92
|
-
border: 2px solid #3271c9;
|
|
93
|
-
border-top: 0;
|
|
94
|
-
border-left: 0;
|
|
95
|
-
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
96
|
-
opacity: 1;
|
|
97
|
-
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
|
145
|
+
width: 10px;
|
|
146
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
147
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJJY29uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNTMwMzMgMC45Njk2N0M5LjgyMzIyIDEuMjYyNTYgOS44MjMyMiAxLjczNzQ0IDkuNTMwMzMgMi4wMzAzM0w0LjUzMDMzIDcuMDMwMzNDNC4yMzc0NCA3LjMyMzIyIDMuNzYyNTYgNy4zMjMyMiAzLjQ2OTY3IDcuMDMwMzNMMC45Njk2NyA0LjUzMDMzQzAuNjc2Nzc3IDQuMjM3NDQgMC42NzY3NzcgMy43NjI1NiAwLjk2OTY3IDMuNDY5NjdDMS4yNjI1NiAzLjE3Njc4IDEuNzM3NDQgMy4xNzY3OCAyLjAzMDMzIDMuNDY5NjdMNCA1LjQzOTM0TDguNDY5NjcgMC45Njk2N0M4Ljc2MjU2IDAuNjc2Nzc3IDkuMjM3NDQgMC42NzY3NzcgOS41MzAzMyAwLjk2OTY3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==')
|
|
148
|
+
no-repeat;
|
|
149
|
+
background-size: 100%, 100%;
|
|
150
|
+
border-width: 0;
|
|
151
|
+
transform: none;
|
|
98
152
|
}
|
|
99
153
|
}
|
|
100
154
|
}
|
|
101
155
|
|
|
102
156
|
.ant-checkbox-disabled {
|
|
103
157
|
cursor: default;
|
|
104
|
-
opacity: 0.5;
|
|
105
158
|
|
|
106
159
|
& + span {
|
|
107
160
|
color: @NL0;
|
|
108
161
|
cursor: default;
|
|
109
|
-
opacity: 0.5;
|
|
110
162
|
}
|
|
111
163
|
|
|
112
164
|
.ant-checkbox-inner {
|
|
165
|
+
background-color: @checkbox-inner-bgc-disabled;
|
|
166
|
+
|
|
113
167
|
&::after {
|
|
114
|
-
top:
|
|
115
|
-
left:
|
|
168
|
+
top: 4px;
|
|
169
|
+
left: 3px;
|
|
116
170
|
z-index: 10;
|
|
117
171
|
width: 10px;
|
|
118
172
|
height: 8px;
|
|
119
173
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
120
|
-
background: url('data:image/
|
|
174
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJJY29uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNTMwMzMgMC45Njk2N0M5LjgyMzIyIDEuMjYyNTYgOS44MjMyMiAxLjczNzQ0IDkuNTMwMzMgMi4wMzAzM0w0LjUzMDMzIDcuMDMwMzNDNC4yMzc0NCA3LjMyMzIyIDMuNzYyNTYgNy4zMjMyMiAzLjQ2OTY3IDcuMDMwMzNMMC45Njk2NyA0LjUzMDMzQzAuNjc2Nzc3IDQuMjM3NDQgMC42NzY3NzcgMy43NjI1NiAwLjk2OTY3IDMuNDY5NjdDMS4yNjI1NiAzLjE3Njc4IDEuNzM3NDQgMy4xNzY3OCAyLjAzMDMzIDMuNDY5NjdMNCA1LjQzOTM0TDguNDY5NjcgMC45Njk2N0M4Ljc2MjU2IDAuNjc2Nzc3IDkuMjM3NDQgMC42NzY3NzcgOS41MzAzMyAwLjk2OTY3WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC4yNSIvPgo8L3N2Zz4K')
|
|
121
175
|
no-repeat;
|
|
122
176
|
background-size: 100%, 100%;
|
|
123
177
|
border-width: 0;
|
|
@@ -128,13 +182,14 @@
|
|
|
128
182
|
|
|
129
183
|
.ant-checkbox-indeterminate {
|
|
130
184
|
.ant-checkbox-inner {
|
|
131
|
-
background-color: @
|
|
132
|
-
border
|
|
185
|
+
background-color: @checkbox-checked-inner-bgc-normal;
|
|
186
|
+
border: 0;
|
|
133
187
|
|
|
134
188
|
&::after {
|
|
135
189
|
width: 10px;
|
|
136
190
|
height: 2px;
|
|
137
|
-
|
|
191
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
192
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IgMSAoU3Ryb2tlKSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjc1IDFDMC43NSAwLjU4NTc4NiAxLjA4NTc5IDAuMjUgMS41IDAuMjVIOC41QzguOTE0MjEgMC4yNSA5LjI1IDAuNTg1Nzg2IDkuMjUgMUM5LjI1IDEuNDE0MjEgOC45MTQyMSAxLjc1IDguNSAxLjc1SDEuNUMxLjA4NTc5IDEuNzUgMC43NSAxLjQxNDIxIDAuNzUgMVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
|
|
138
193
|
background-size: 100%, 100%;
|
|
139
194
|
background-color: @ND0;
|
|
140
195
|
border-radius: 2px;
|
|
@@ -146,59 +201,20 @@
|
|
|
146
201
|
display: flex;
|
|
147
202
|
align-items: center;
|
|
148
203
|
padding-right: 12px;
|
|
149
|
-
padding-left:
|
|
150
|
-
font-size:
|
|
204
|
+
padding-left: 6px;
|
|
205
|
+
font-size: 14px;
|
|
151
206
|
}
|
|
152
207
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
&.ant-checkbox-checked.ant-checkbox-disabled .ant-checkbox-inner {
|
|
158
|
-
background: @B95;
|
|
159
|
-
border: 1px solid @B60;
|
|
160
|
-
border-radius: 2px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
& .ant-checkbox-checked.ant-checkbox-disabled {
|
|
164
|
-
&:hover .ant-checkbox-inner[class][class] {
|
|
165
|
-
border-color: @B40;
|
|
208
|
+
&.ald-checkbox-small {
|
|
209
|
+
.ant-checkbox + span {
|
|
210
|
+
font-size: 12px;
|
|
166
211
|
}
|
|
167
212
|
}
|
|
168
|
-
|
|
169
|
-
.ant-checkbox:hover .ant-checkbox-inner {
|
|
170
|
-
border-color: @B40;
|
|
171
|
-
// box-shadow: @shadow-primary;
|
|
172
|
-
box-shadow: none;
|
|
173
|
-
background-color: none;
|
|
174
|
-
}
|
|
175
213
|
}
|
|
176
214
|
|
|
177
|
-
.
|
|
178
|
-
.
|
|
179
|
-
|
|
180
|
-
box-shadow: unset;
|
|
181
|
-
background-color: none;
|
|
182
|
-
border-radius: 2px;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.ant-checkbox-wrapper.ald-checkbox
|
|
186
|
-
.ant-checkbox-disabled.ant-checkbox:hover
|
|
187
|
-
.ant-checkbox-inner {
|
|
188
|
-
box-shadow: unset;
|
|
189
|
-
background-color: none;
|
|
190
|
-
border: 1px solid @BG60;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.ant-checkbox-group.ald-checkbox,
|
|
194
|
-
.ant-checkbox-wrapper.ald-checkbox {
|
|
195
|
-
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
|
196
|
-
border-color: @B40;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.ant-checkbox:hover .ant-checkbox-inner {
|
|
200
|
-
border-color: @B40;
|
|
201
|
-
background-color: none;
|
|
215
|
+
.ald-checkbox-group-small {
|
|
216
|
+
.ant-checkbox.ant-checkbox + span {
|
|
217
|
+
font-size: 12px;
|
|
202
218
|
}
|
|
203
219
|
}
|
|
204
220
|
|
|
@@ -206,13 +222,6 @@
|
|
|
206
222
|
cursor: default;
|
|
207
223
|
}
|
|
208
224
|
|
|
209
|
-
.ant-checkbox-wrapper[class]:hover .ant-checkbox::after {
|
|
210
|
-
visibility: hidden;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.ant-checkbox-checked:hover .ant-checkbox-inner[class] {
|
|
214
|
-
background-color: transparent;
|
|
215
|
-
}
|
|
216
225
|
@keyframes ald-checkbox-effect {
|
|
217
226
|
0% {
|
|
218
227
|
transform: scale(1);
|
package/dist/Checkbox/type.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CheckboxChangeEvent, CheckboxGroupProps, CheckboxProps } from 'antd/lib/checkbox';
|
|
2
2
|
import { CheckboxOptionType, CheckboxValueType } from 'antd/lib/checkbox/Group';
|
|
3
|
+
export type TSize = 'middle' | 'small';
|
|
3
4
|
export declare enum EDirection {
|
|
4
5
|
VERTICAL = "vertical",
|
|
5
6
|
HORIZONTAL = "horizontal"
|
|
@@ -41,6 +42,11 @@ export interface ICheckboxProps extends CheckboxProps {
|
|
|
41
42
|
* @default -
|
|
42
43
|
*/
|
|
43
44
|
onChange?: (e: CheckboxChangeEvent) => void;
|
|
45
|
+
/**
|
|
46
|
+
* @description 大小
|
|
47
|
+
* @default 'middle'
|
|
48
|
+
*/
|
|
49
|
+
size?: TSize;
|
|
44
50
|
}
|
|
45
51
|
export interface ICheckboxGroupProps extends CheckboxGroupProps {
|
|
46
52
|
/**
|
|
@@ -91,4 +97,9 @@ export interface ICheckboxGroupProps extends CheckboxGroupProps {
|
|
|
91
97
|
* @default -
|
|
92
98
|
*/
|
|
93
99
|
className?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @description 大小
|
|
102
|
+
* @default 'middle'
|
|
103
|
+
*/
|
|
104
|
+
size?: TSize;
|
|
94
105
|
}
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
background: #fff;
|
|
51
51
|
border: 1px solid #dbdbdb;
|
|
52
52
|
box-sizing: border-box;
|
|
53
|
-
box-shadow: 0
|
|
54
|
-
0 12px 16px -4px rgb(16 24 40 / 0.08);
|
|
53
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
55
54
|
border-radius: 2px;
|
|
56
55
|
padding: 8px 7px;
|
|
57
56
|
|