draft-components 0.61.2 → 0.62.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/slider/slider.d.ts +6 -5
- package/components/slider/slider.js +26 -8
- package/css/draft-components.css +2 -2
- 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 +13 -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 +17 -15
- 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,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 {
|
|
@@ -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
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-datetime-input {
|
|
2
4
|
display: inline-block;
|
|
3
5
|
border: none;
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
|
|
13
15
|
.dc-datetime-input__body {
|
|
14
16
|
width: auto;
|
|
15
|
-
padding:
|
|
17
|
+
padding: dc.$gap-1x calc(var(--dc-input-gap) - #{dc.px-to-rem(2px)});
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.dc-datetime-input__group {
|
|
@@ -20,13 +22,13 @@
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.dc-datetime-input__group + .dc-datetime-input__group {
|
|
23
|
-
margin-left:
|
|
25
|
+
margin-left: dc.$gap-3x;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.dc-datetime-input__separator {
|
|
27
29
|
display: inline-block;
|
|
28
|
-
padding: 0 px-to-rem(2px);
|
|
29
|
-
opacity:
|
|
30
|
+
padding: 0 dc.px-to-rem(2px);
|
|
31
|
+
opacity: dc.$opacity-50;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.dc-date-component-input {
|
|
@@ -39,8 +41,8 @@
|
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
.dc-date-component-input > * {
|
|
42
|
-
padding: 0 px-to-rem(2px);
|
|
43
44
|
font-variant-numeric: tabular-nums;
|
|
45
|
+
padding: 0 dc.px-to-rem(2px);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.dc-date-component-input > [aria-hidden='true'] {
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
height: 100%;
|
|
59
61
|
margin: 0;
|
|
60
62
|
border: none;
|
|
61
|
-
border-radius:
|
|
63
|
+
border-radius: dc.$border-radius-2xs;
|
|
62
64
|
background: none;
|
|
63
65
|
appearance: none;
|
|
64
66
|
-moz-appearance: textfield;
|
|
@@ -71,12 +73,12 @@
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.dc-date-component-input > input::placeholder {
|
|
74
|
-
opacity:
|
|
76
|
+
opacity: dc.$opacity-40;
|
|
75
77
|
color: inherit;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.dc-date-component-input > input:focus {
|
|
79
|
-
color:
|
|
81
|
+
color: dc.$white;
|
|
80
82
|
outline: none;
|
|
81
83
|
background: var(--dc-input-accent-color);
|
|
82
84
|
caret-color: transparent;
|
|
@@ -88,5 +90,5 @@
|
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.dc-date-component-input > input:focus::placeholder {
|
|
91
|
-
opacity:
|
|
93
|
+
opacity: dc.$opacity-80;
|
|
92
94
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
3
|
+
$dialog-pad: dc.$gap-4x;
|
|
2
4
|
|
|
3
5
|
.dc-dialog-container {
|
|
4
6
|
position: fixed;
|
|
@@ -12,7 +14,7 @@ $dialog-pad: $gap-4x;
|
|
|
12
14
|
justify-content: center;
|
|
13
15
|
width: 100%;
|
|
14
16
|
height: 100%;
|
|
15
|
-
background: rgba(
|
|
17
|
+
background: rgba(dc.$black, dc.$opacity-25);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.dc-dialog {
|
|
@@ -23,11 +25,11 @@ $dialog-pad: $gap-4x;
|
|
|
23
25
|
width: 40rem;
|
|
24
26
|
max-width: 100%;
|
|
25
27
|
height: auto;
|
|
26
|
-
margin:
|
|
28
|
+
margin: dc.$gap-4x;
|
|
27
29
|
padding-bottom: $dialog-pad;
|
|
28
30
|
transition-property: opacity, transform;
|
|
29
31
|
vertical-align: middle;
|
|
30
|
-
border-color: rgba(
|
|
32
|
+
border-color: rgba(dc.$black, dc.$opacity-25);
|
|
31
33
|
|
|
32
34
|
& > *:first-child {
|
|
33
35
|
border-top-left-radius: inherit;
|
|
@@ -48,7 +50,7 @@ $dialog-pad: $gap-4x;
|
|
|
48
50
|
|
|
49
51
|
.dc-dialog__close-btn {
|
|
50
52
|
flex: none;
|
|
51
|
-
margin:
|
|
53
|
+
margin: dc.$gap-1x;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.dc-dialog__description {
|
|
@@ -69,7 +71,7 @@ $dialog-pad: $gap-4x;
|
|
|
69
71
|
padding-bottom: $dialog-pad;
|
|
70
72
|
|
|
71
73
|
& > * + * {
|
|
72
|
-
margin-top:
|
|
74
|
+
margin-top: dc.$gap-1x;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
|
|
@@ -84,6 +86,6 @@ $dialog-pad: $gap-4x;
|
|
|
84
86
|
padding-top: $dialog-pad;
|
|
85
87
|
|
|
86
88
|
& > * + * {
|
|
87
|
-
margin-left:
|
|
89
|
+
margin-left: dc.$gap-2x;
|
|
88
90
|
}
|
|
89
91
|
}
|