draft-components 0.61.0 → 0.63.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/components/calendar/calendar-day.d.ts +2 -1
- package/components/calendar/calendar-day.js +2 -2
- package/components/calendar/calendar.d.ts +4 -2
- package/components/calendar/calendar.js +6 -2
- package/components/date-picker/date-picker.d.ts +3 -1
- package/components/date-picker/date-picker.js +6 -3
- package/components/date-picker-popover/date-picker-popover.d.ts +18 -0
- package/components/date-picker-popover/date-picker-popover.js +35 -0
- package/components/date-picker-popover/index.d.ts +1 -0
- package/components/date-picker-popover/index.js +13 -0
- package/components/date-preset-picker-popover/date-preset-picker-popover.js +2 -1
- package/components/date-range-picker/date-range-picker.js +2 -2
- package/components/datetime-input/date-components.js +7 -12
- package/components/datetime-input/datetime-input.js +1 -1
- package/components/dialog/dialog.js +2 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/inline-message/inline-message.js +2 -1
- package/components/number-input/number-input.js +2 -1
- package/components/slider/slider.d.ts +6 -5
- package/components/slider/slider.js +26 -8
- package/components/table/table-cell.d.ts +4 -2
- package/components/table/table-cell.js +2 -2
- package/components/table/table-sort-button.js +2 -1
- package/components/tabs/tabs-state.js +2 -1
- package/components/toaster/toaster.js +1 -1
- package/css/draft-components.css +2 -2
- package/hooks/use-capture-focus.js +6 -4
- package/hooks/use-close-on-click-outside.js +3 -2
- package/hooks/use-close-on-esc-press.js +2 -1
- package/lib/plain-date-range.js +6 -8
- package/lib/plain-date.js +7 -8
- package/lib/stack.js +0 -1
- package/lib/util.js +1 -1
- package/package.json +1 -1
- package/scss/components/_actions-group.scss +5 -3
- package/scss/components/_alert.scss +34 -32
- package/scss/components/_avatar.scss +20 -18
- package/scss/components/_box.scss +49 -47
- package/scss/components/_breadcrumbs.scss +6 -4
- package/scss/components/_button.scss +20 -18
- package/scss/components/_calendar.scss +21 -11
- package/scss/components/_checkbox.scss +4 -2
- package/scss/components/_date-picker.scss +4 -2
- package/scss/components/_date-preset-picker-popover.scss +11 -9
- package/scss/components/_datetime-input.scss +11 -9
- package/scss/components/_dialog.scss +9 -7
- package/scss/components/_form-field.scss +4 -2
- package/scss/components/_formatted-content.scss +23 -21
- package/scss/components/_inline-message.scss +3 -1
- package/scss/components/_input.scss +11 -9
- package/scss/components/_label.scss +5 -2
- package/scss/components/_loading-view.scss +20 -18
- package/scss/components/_non-ideal-state-view.scss +27 -25
- package/scss/components/_number-input.scss +4 -2
- package/scss/components/_radio-button.scss +4 -2
- package/scss/components/_radio-group.scss +17 -14
- package/scss/components/_scope-buttons.scss +4 -2
- package/scss/components/_secret.scss +4 -2
- package/scss/components/_segmented-control.scss +7 -5
- package/scss/components/_select.scss +9 -7
- package/scss/components/_selection-control.scss +11 -9
- package/scss/components/_slider.scss +88 -98
- package/scss/components/_switch.scss +5 -3
- package/scss/components/_table.scss +19 -16
- package/scss/components/_tabs.scss +13 -12
- package/scss/components/_tag.scss +37 -35
- package/scss/components/_text-input.scss +3 -1
- package/scss/components/_toast.scss +25 -23
- package/scss/components/_toaster.scss +8 -6
- package/scss/components/_tooltip.scss +6 -4
- package/scss/components/_vertical-navigation.scss +16 -14
- package/scss/draft-components-utils.scss +0 -1
- package/scss/draft-components.scss +0 -1
- package/scss/themes/_default-theme.scss +162 -156
- package/scss/utils/_borders.scss +14 -12
- package/scss/utils/_gap.scss +14 -12
- package/scss/utils/_margin.scss +14 -12
- package/scss/utils/_padding.scss +14 -12
- package/scss/.DS_Store +0 -0
|
@@ -1,104 +1,106 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-avatar {
|
|
2
4
|
position: relative;
|
|
3
5
|
display: inline-flex;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.dc-avatar_tint_blue {
|
|
7
|
-
--dc-avatar-color: #{
|
|
9
|
+
--dc-avatar-color: #{dc.$white};
|
|
8
10
|
--dc-avatar-bg1-color: #6fd2fc;
|
|
9
11
|
--dc-avatar-bg2-color: #2a9ef1;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.dc-avatar_icon-tint_blue {
|
|
13
|
-
--dc-avatar-icon-color: #{
|
|
15
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
14
16
|
--dc-avatar-icon-bg: linear-gradient(#6fd2fc, #2a9ef1);
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.dc-avatar_tint_cyan {
|
|
18
|
-
--dc-avatar-color: #{
|
|
20
|
+
--dc-avatar-color: #{dc.$white};
|
|
19
21
|
--dc-avatar-bg1-color: #51ebd5;
|
|
20
22
|
--dc-avatar-bg2-color: #28c9b7;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.dc-avatar_icon-tint_cyan {
|
|
24
|
-
--dc-avatar-icon-color: #{
|
|
26
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
25
27
|
--dc-avatar-icon-bg: linear-gradient(#51ebd5, #28c9b7);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.dc-avatar_tint_red {
|
|
29
|
-
--dc-avatar-color: #{
|
|
31
|
+
--dc-avatar-color: #{dc.$white};
|
|
30
32
|
--dc-avatar-bg1-color: #ff8e72;
|
|
31
33
|
--dc-avatar-bg2-color: #ff5151;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.dc-avatar_icon-tint_red {
|
|
35
|
-
--dc-avatar-icon-color: #{
|
|
37
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
36
38
|
--dc-avatar-icon-bg: linear-gradient(#ff8e72, #ff5151);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
.dc-avatar_tint_green {
|
|
40
|
-
--dc-avatar-color: #{
|
|
42
|
+
--dc-avatar-color: #{dc.$white};
|
|
41
43
|
--dc-avatar-bg1-color: #28ed7f;
|
|
42
44
|
--dc-avatar-bg2-color: #16c059;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
.dc-avatar_icon-tint_green {
|
|
46
|
-
--dc-avatar-icon-color: #{
|
|
48
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
47
49
|
--dc-avatar-icon-bg: linear-gradient(#28ed7f, #16c032);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.dc-avatar_tint_lime {
|
|
51
|
-
--dc-avatar-color: #{
|
|
53
|
+
--dc-avatar-color: #{dc.$white};
|
|
52
54
|
--dc-avatar-bg1-color: #9ddd7d;
|
|
53
55
|
--dc-avatar-bg2-color: #54cb68;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.dc-avatar_icon-tint_lime {
|
|
57
|
-
--dc-avatar-icon-color: #{
|
|
59
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
58
60
|
--dc-avatar-icon-bg: linear-gradient(#9ddd7d, #54cb68);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
.dc-avatar_tint_indigo {
|
|
62
|
-
--dc-avatar-color: #{
|
|
64
|
+
--dc-avatar-color: #{dc.$white};
|
|
63
65
|
--dc-avatar-bg1-color: #80aaff;
|
|
64
66
|
--dc-avatar-bg2-color: #665fff;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.dc-avatar_icon-tint_indigo {
|
|
68
|
-
--dc-avatar-icon-color: #{
|
|
70
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
69
71
|
--dc-avatar-icon-bg: linear-gradient(#80aaff, #665fff);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
.dc-avatar_tint_yellow {
|
|
73
|
-
--dc-avatar-color: #{
|
|
75
|
+
--dc-avatar-color: #{dc.$white};
|
|
74
76
|
--dc-avatar-bg1-color: #ffd85e;
|
|
75
77
|
--dc-avatar-bg2-color: #ffb92b;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.dc-avatar_icon-tint_yellow {
|
|
79
|
-
--dc-avatar-icon-color: #{
|
|
81
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
80
82
|
--dc-avatar-icon-bg: linear-gradient(#ffd85e, #ffb92b);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.dc-avatar_tint_orange {
|
|
84
|
-
--dc-avatar-color: #{
|
|
86
|
+
--dc-avatar-color: #{dc.$white};
|
|
85
87
|
--dc-avatar-bg1-color: #ffc045;
|
|
86
88
|
--dc-avatar-bg2-color: #ff8f15;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.dc-avatar_icon-tint_orange {
|
|
90
|
-
--dc-avatar-icon-color: #{
|
|
92
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
91
93
|
--dc-avatar-icon-bg: linear-gradient(#ffc045, #ff8f15);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.dc-avatar_tint_pink {
|
|
95
|
-
--dc-avatar-color: #{
|
|
97
|
+
--dc-avatar-color: #{dc.$white};
|
|
96
98
|
--dc-avatar-bg1-color: #e09ff2;
|
|
97
99
|
--dc-avatar-bg2-color: #d669ed;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
.dc-avatar_icon-tint_pink {
|
|
101
|
-
--dc-avatar-icon-color: #{
|
|
103
|
+
--dc-avatar-icon-color: #{dc.$white};
|
|
102
104
|
--dc-avatar-icon-bg: linear-gradient(#e09ff2, #d669ed);
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-box {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
5
|
box-sizing: border-box;
|
|
@@ -45,31 +47,31 @@
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.dc-box_border-radius_2xs {
|
|
48
|
-
border-radius:
|
|
50
|
+
border-radius: dc.$border-radius-2xs;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
.dc-box_border-radius_xs {
|
|
52
|
-
border-radius:
|
|
54
|
+
border-radius: dc.$border-radius-xs;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
.dc-box_border-radius_sm {
|
|
56
|
-
border-radius:
|
|
58
|
+
border-radius: dc.$border-radius-sm;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
.dc-box_border-radius_md {
|
|
60
|
-
border-radius:
|
|
62
|
+
border-radius: dc.$border-radius-md;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.dc-box_border-radius_lg {
|
|
64
|
-
border-radius:
|
|
66
|
+
border-radius: dc.$border-radius-lg;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.dc-box_border-radius_xl {
|
|
68
|
-
border-radius:
|
|
70
|
+
border-radius: dc.$border-radius-xl;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.dc-box_border-radius_2xl {
|
|
72
|
-
border-radius:
|
|
74
|
+
border-radius: dc.$border-radius-2xl;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
/*------------------------------------*\
|
|
@@ -80,23 +82,23 @@
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
.dc-box_elevation_xs {
|
|
83
|
-
box-shadow:
|
|
85
|
+
box-shadow: dc.$shadow-xs;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
.dc-box_elevation_sm {
|
|
87
|
-
box-shadow:
|
|
89
|
+
box-shadow: dc.$shadow-sm;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.dc-box_elevation_md {
|
|
91
|
-
box-shadow:
|
|
93
|
+
box-shadow: dc.$shadow-md;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.dc-box_elevation_lg {
|
|
95
|
-
box-shadow:
|
|
97
|
+
box-shadow: dc.$shadow-lg;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.dc-box_elevation_xl {
|
|
99
|
-
box-shadow:
|
|
101
|
+
box-shadow: dc.$shadow-xl;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
/*------------------------------------*\
|
|
@@ -107,31 +109,31 @@
|
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
.dc-box_p_1x {
|
|
110
|
-
padding:
|
|
112
|
+
padding: dc.$gap-1x;
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
.dc-box_p_2x {
|
|
114
|
-
padding:
|
|
116
|
+
padding: dc.$gap-2x;
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
.dc-box_p_3x {
|
|
118
|
-
padding:
|
|
120
|
+
padding: dc.$gap-3x;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
.dc-box_p_4x {
|
|
122
|
-
padding:
|
|
124
|
+
padding: dc.$gap-4x;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
.dc-box_p_5x {
|
|
126
|
-
padding:
|
|
128
|
+
padding: dc.$gap-5x;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
.dc-box_p_6x {
|
|
130
|
-
padding:
|
|
132
|
+
padding: dc.$gap-6x;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
.dc-box_p_8x {
|
|
134
|
-
padding:
|
|
136
|
+
padding: dc.$gap-8x;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
/*------------------------------------*\
|
|
@@ -142,31 +144,31 @@
|
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
.dc-box_pt_1x {
|
|
145
|
-
padding-top:
|
|
147
|
+
padding-top: dc.$gap-1x;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
.dc-box_pt_2x {
|
|
149
|
-
padding-top:
|
|
151
|
+
padding-top: dc.$gap-2x;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
.dc-box_pt_3x {
|
|
153
|
-
padding-top:
|
|
155
|
+
padding-top: dc.$gap-3x;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
.dc-box_pt_4x {
|
|
157
|
-
padding-top:
|
|
159
|
+
padding-top: dc.$gap-4x;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
.dc-box_pt_5x {
|
|
161
|
-
padding-top:
|
|
163
|
+
padding-top: dc.$gap-5x;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
.dc-box_pt_6x {
|
|
165
|
-
padding-top:
|
|
167
|
+
padding-top: dc.$gap-6x;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
.dc-box_pt_8x {
|
|
169
|
-
padding-top:
|
|
171
|
+
padding-top: dc.$gap-8x;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
/*------------------------------------*\
|
|
@@ -177,31 +179,31 @@
|
|
|
177
179
|
}
|
|
178
180
|
|
|
179
181
|
.dc-box_pr_1x {
|
|
180
|
-
padding-right:
|
|
182
|
+
padding-right: dc.$gap-1x;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
.dc-box_pr_2x {
|
|
184
|
-
padding-right:
|
|
186
|
+
padding-right: dc.$gap-2x;
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
.dc-box_pr_3x {
|
|
188
|
-
padding-right:
|
|
190
|
+
padding-right: dc.$gap-3x;
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
.dc-box_pr_4x {
|
|
192
|
-
padding-right:
|
|
194
|
+
padding-right: dc.$gap-4x;
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
.dc-box_pr_5x {
|
|
196
|
-
padding-right:
|
|
198
|
+
padding-right: dc.$gap-5x;
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
.dc-box_pr_6x {
|
|
200
|
-
padding-right:
|
|
202
|
+
padding-right: dc.$gap-6x;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
.dc-box_pr_8x {
|
|
204
|
-
padding-right:
|
|
206
|
+
padding-right: dc.$gap-8x;
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
/*------------------------------------*\
|
|
@@ -212,31 +214,31 @@
|
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
.dc-box_pb_1x {
|
|
215
|
-
padding-bottom:
|
|
217
|
+
padding-bottom: dc.$gap-1x;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
.dc-box_pb_2x {
|
|
219
|
-
padding-bottom:
|
|
221
|
+
padding-bottom: dc.$gap-2x;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
.dc-box_pb_3x {
|
|
223
|
-
padding-bottom:
|
|
225
|
+
padding-bottom: dc.$gap-3x;
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
.dc-box_pb_4x {
|
|
227
|
-
padding-bottom:
|
|
229
|
+
padding-bottom: dc.$gap-4x;
|
|
228
230
|
}
|
|
229
231
|
|
|
230
232
|
.dc-box_pb_5x {
|
|
231
|
-
padding-bottom:
|
|
233
|
+
padding-bottom: dc.$gap-5x;
|
|
232
234
|
}
|
|
233
235
|
|
|
234
236
|
.dc-box_pb_6x {
|
|
235
|
-
padding-bottom:
|
|
237
|
+
padding-bottom: dc.$gap-6x;
|
|
236
238
|
}
|
|
237
239
|
|
|
238
240
|
.dc-box_pb_8x {
|
|
239
|
-
padding-bottom:
|
|
241
|
+
padding-bottom: dc.$gap-8x;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
/*------------------------------------*\
|
|
@@ -247,29 +249,29 @@
|
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
.dc-box_pl_1x {
|
|
250
|
-
padding-left:
|
|
252
|
+
padding-left: dc.$gap-1x;
|
|
251
253
|
}
|
|
252
254
|
|
|
253
255
|
.dc-box_pl_2x {
|
|
254
|
-
padding-left:
|
|
256
|
+
padding-left: dc.$gap-2x;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
.dc-box_pl_3x {
|
|
258
|
-
padding-left:
|
|
260
|
+
padding-left: dc.$gap-3x;
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
.dc-box_pl_4x {
|
|
262
|
-
padding-left:
|
|
264
|
+
padding-left: dc.$gap-4x;
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
.dc-box_pl_5x {
|
|
266
|
-
padding-left:
|
|
268
|
+
padding-left: dc.$gap-5x;
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
.dc-box_pl_6x {
|
|
270
|
-
padding-left:
|
|
272
|
+
padding-left: dc.$gap-6x;
|
|
271
273
|
}
|
|
272
274
|
|
|
273
275
|
.dc-box_pl_8x {
|
|
274
|
-
padding-left:
|
|
276
|
+
padding-left: dc.$gap-8x;
|
|
275
277
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-breadcrumbs {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
5
|
overflow-y: auto;
|
|
@@ -18,8 +20,8 @@
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
.dc-breadcrumbs__delimiter {
|
|
21
|
-
margin-right:
|
|
22
|
-
margin-left:
|
|
23
|
+
margin-right: dc.$gap-4x;
|
|
24
|
+
margin-left: dc.$gap-4x;
|
|
23
25
|
color: var(--dc-breadcrumbs-delimiter-color);
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
font-family: inherit;
|
|
28
30
|
display: inline-flex;
|
|
29
31
|
align-items: center;
|
|
30
|
-
transition:
|
|
32
|
+
transition: dc.$transition-quick;
|
|
31
33
|
transition-property: color;
|
|
32
34
|
text-decoration: none;
|
|
33
35
|
color: var(--dc-breadcrumbs-item-color);
|
|
@@ -42,5 +44,5 @@
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.dc-breadcrumbs-item__icon {
|
|
45
|
-
margin-right:
|
|
47
|
+
margin-right: dc.$gap-2x;
|
|
46
48
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-btn {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
|
-
font-size:
|
|
4
|
-
font-weight:
|
|
5
|
-
line-height:
|
|
5
|
+
font-size: dc.$font-size-sm;
|
|
6
|
+
font-weight: dc.$font-weight-medium;
|
|
7
|
+
line-height: dc.$leading-default;
|
|
6
8
|
position: relative;
|
|
7
9
|
display: inline-flex;
|
|
8
10
|
align-items: center;
|
|
@@ -12,25 +14,25 @@
|
|
|
12
14
|
min-width: var(--dc-btn-height);
|
|
13
15
|
max-width: 100%;
|
|
14
16
|
min-height: var(--dc-btn-height);
|
|
15
|
-
padding: 0
|
|
17
|
+
padding: 0 dc.$gap-3x;
|
|
16
18
|
cursor: pointer;
|
|
17
19
|
user-select: none;
|
|
18
|
-
transition:
|
|
20
|
+
transition: dc.$transition-quick;
|
|
19
21
|
transition-property: opacity, background-color;
|
|
20
22
|
text-decoration: none;
|
|
21
|
-
letter-spacing:
|
|
23
|
+
letter-spacing: dc.$tracking-tight;
|
|
22
24
|
color: var(--dc-btn-text-color);
|
|
23
25
|
border: 1px solid var(--dc-btn-border-color);
|
|
24
|
-
border-radius:
|
|
26
|
+
border-radius: dc.$border-radius-md;
|
|
25
27
|
background: var(--dc-btn-bg);
|
|
26
|
-
box-shadow: 0 1px 2px #{rgba(
|
|
28
|
+
box-shadow: 0 1px 2px #{rgba(dc.$black, dc.$opacity-5)};
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.dc-btn:focus {
|
|
30
32
|
border-color: var(--dc-btn-border-color-focus);
|
|
31
33
|
outline: none;
|
|
32
34
|
box-shadow: (
|
|
33
|
-
0 1px 2px #{rgba(
|
|
35
|
+
0 1px 2px #{rgba(dc.$black, dc.$opacity-5)},
|
|
34
36
|
0 0 0 3px var(--dc-btn-focus-ring-color)
|
|
35
37
|
);
|
|
36
38
|
}
|
|
@@ -50,20 +52,20 @@
|
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.dc-btn > * + * {
|
|
53
|
-
margin-left:
|
|
55
|
+
margin-left: dc.$gap-2x;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.dc-btn_size_xs,
|
|
57
59
|
.dc-btn_size_sm {
|
|
58
|
-
font-size:
|
|
60
|
+
font-size: dc.$font-size-xs;
|
|
59
61
|
|
|
60
|
-
border-radius:
|
|
62
|
+
border-radius: dc.$border-radius-sm;
|
|
61
63
|
--dc-btn-height: var(--dc-control-xs-h);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
.dc-btn_size_xs {
|
|
65
|
-
padding-right:
|
|
66
|
-
padding-left:
|
|
67
|
+
padding-right: dc.$gap-2x;
|
|
68
|
+
padding-left: dc.$gap-2x;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.dc-btn_size_sm {
|
|
@@ -71,11 +73,11 @@
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.dc-btn_size_lg {
|
|
74
|
-
font-size:
|
|
76
|
+
font-size: dc.$font-size-base;
|
|
75
77
|
|
|
76
|
-
padding-right:
|
|
77
|
-
padding-left:
|
|
78
|
-
border-radius:
|
|
78
|
+
padding-right: dc.$gap-4x;
|
|
79
|
+
padding-left: dc.$gap-4x;
|
|
80
|
+
border-radius: dc.$border-radius-md;
|
|
79
81
|
--dc-btn-height: var(--dc-control-lg-h);
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@use 'sass:math' as math;
|
|
2
|
+
@use '../abstracts' as dc;
|
|
2
3
|
|
|
3
|
-
$_calendar-cell-gap:
|
|
4
|
-
$_calendar-cell-size: px-to-rem(30px);
|
|
4
|
+
$_calendar-cell-gap: dc.$gap-2x;
|
|
5
|
+
$_calendar-cell-size: dc.px-to-rem(30px);
|
|
5
6
|
$_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
6
7
|
|
|
7
8
|
.dc-calendar {
|
|
@@ -14,12 +15,12 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.dc-calendar-header > * + * {
|
|
17
|
-
margin-left:
|
|
18
|
+
margin-left: dc.$gap-1x;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.dc-calendar-header__title {
|
|
21
|
-
font-size:
|
|
22
|
-
font-weight:
|
|
22
|
+
font-size: dc.$font-size-sm;
|
|
23
|
+
font-weight: dc.$font-weight-normal;
|
|
23
24
|
flex: auto;
|
|
24
25
|
text-align: center;
|
|
25
26
|
color: var(--dc-calendar-text-color);
|
|
@@ -46,13 +47,13 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.dc-calendar-row_head {
|
|
49
|
-
margin-bottom:
|
|
50
|
-
padding:
|
|
50
|
+
margin-bottom: dc.$gap-2x;
|
|
51
|
+
padding: dc.$gap-2x 0;
|
|
51
52
|
border-bottom: 1px solid var(--dc-calendar-border-secondary-color);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.dc-calendar-row_head > * {
|
|
55
|
-
font-size:
|
|
56
|
+
font-size: dc.$font-size-xs;
|
|
56
57
|
flex: 1 0 $_calendar-cell-size;
|
|
57
58
|
text-align: center;
|
|
58
59
|
color: var(--dc-calendar-text-secondary-color);
|
|
@@ -80,7 +81,7 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.dc-calendar-day__btn {
|
|
83
|
-
font-size:
|
|
84
|
+
font-size: dc.$font-size-sm;
|
|
84
85
|
line-height: 1;
|
|
85
86
|
position: relative;
|
|
86
87
|
display: inline-block;
|
|
@@ -105,9 +106,10 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
105
106
|
.dc-calendar-day__btn:focus {
|
|
106
107
|
z-index: 1;
|
|
107
108
|
outline: none;
|
|
108
|
-
@include focus-ring;
|
|
109
|
+
@include dc.focus-ring;
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
//noinspection CssMissingComma
|
|
111
113
|
.dc-calendar-day_range-preview-start:not(.dc-calendar-day_selected)
|
|
112
114
|
.dc-calendar-day__btn,
|
|
113
115
|
.dc-calendar-day_range-preview-end:not(.dc-calendar-day_selected)
|
|
@@ -126,7 +128,7 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
.dc-calendar-day_in-range::before {
|
|
129
|
-
background:
|
|
131
|
+
background: dc.$blue-100;
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
.dc-calendar-day_in-range-preview::before {
|
|
@@ -173,3 +175,11 @@ $_calendar-day-border: 1px dashed var(--dc-calendar-border-color);
|
|
|
173
175
|
.dc-calendar-day_selected .dc-calendar-day__btn:hover {
|
|
174
176
|
border-color: var(--dc-calendar-selected-day-bg-color);
|
|
175
177
|
}
|
|
178
|
+
|
|
179
|
+
.dc-calendar-day_disabled {
|
|
180
|
+
opacity: var(--dc-disabled-state-opacity);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.dc-calendar-day_disabled > .dc-calendar-day__btn {
|
|
184
|
+
border-color: transparent;
|
|
185
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-checkbox {
|
|
2
4
|
--dc-selection-control-size: var(--dc-checkbox-size);
|
|
3
5
|
}
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.dc-checkbox__input {
|
|
10
|
-
@include visually-hidden;
|
|
12
|
+
@include dc.visually-hidden;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.dc-checkbox__check {
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
height: var(--dc-checkbox-size);
|
|
21
23
|
cursor: pointer;
|
|
22
24
|
border: var(--dc-input-border);
|
|
23
|
-
border-radius:
|
|
25
|
+
border-radius: dc.$border-radius-xs;
|
|
24
26
|
background: var(--dc-input-bg);
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-date-picker {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
5
|
display: inline-block;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.dc-date-picker__footer {
|
|
7
|
-
font-size:
|
|
8
|
-
margin-top:
|
|
9
|
+
font-size: dc.$font-size-sm;
|
|
10
|
+
margin-top: dc.$gap-2x;
|
|
9
11
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-date-preset-picker-popover {
|
|
2
4
|
max-width: initial;
|
|
3
5
|
max-height: initial;
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.dc-date-preset-picker__body > * + * {
|
|
14
|
-
margin-left:
|
|
16
|
+
margin-left: dc.$gap-6x;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.dc-date-preset-picker_phone-view .dc-date-preset-picker__body {
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.dc-date-preset-picker_phone-view .dc-date-preset-picker__body > * + * {
|
|
22
|
-
margin-top:
|
|
24
|
+
margin-top: dc.$gap-4x;
|
|
23
25
|
margin-left: 0;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -27,17 +29,17 @@
|
|
|
27
29
|
display: flex;
|
|
28
30
|
align-items: center;
|
|
29
31
|
justify-content: flex-end;
|
|
30
|
-
margin-top:
|
|
31
|
-
padding-top:
|
|
32
|
+
margin-top: dc.$gap-4x;
|
|
33
|
+
padding-top: dc.$gap-4x;
|
|
32
34
|
border-top: 1px solid var(--dc-secondary-border-color);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.dc-date-preset-picker__footer > * + * {
|
|
36
|
-
margin-left:
|
|
38
|
+
margin-left: dc.$gap-4x;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
.dc-date-preset-picker__selection {
|
|
40
|
-
font-size:
|
|
42
|
+
font-size: dc.$font-size-xs;
|
|
41
43
|
text-align: right;
|
|
42
44
|
}
|
|
43
45
|
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.dc-date-preset-picker__selection > small {
|
|
49
|
-
font-size:
|
|
51
|
+
font-size: dc.$font-size-2xs;
|
|
50
52
|
color: var(--dc-secondary-text-color);
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.dc-date-preset-picker__btns > * + * {
|
|
59
|
-
margin-left:
|
|
61
|
+
margin-left: dc.$gap-2x;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
.dc-date-preset-picker_phone-view .dc-date-preset-picker__footer {
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.dc-date-preset-picker_phone-view .dc-date-preset-picker__footer > * + * {
|
|
70
|
-
margin-top:
|
|
72
|
+
margin-top: dc.$gap-3x;
|
|
71
73
|
margin-left: 0;
|
|
72
74
|
}
|
|
73
75
|
|