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,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
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-form-field {
|
|
2
4
|
}
|
|
3
5
|
|
|
4
6
|
.dc-form-field__label {
|
|
5
7
|
display: inline-block;
|
|
6
|
-
margin-bottom:
|
|
8
|
+
margin-bottom: dc.$gap-1x;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.dc-form-field__input {
|
|
@@ -12,5 +14,5 @@
|
|
|
12
14
|
.dc-form-field__hint,
|
|
13
15
|
.dc-form-field__error {
|
|
14
16
|
width: 100%;
|
|
15
|
-
margin-top:
|
|
17
|
+
margin-top: dc.$gap-1x;
|
|
16
18
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-fmt-content,
|
|
2
4
|
.dc-fmt-content__large-title,
|
|
3
5
|
.dc-fmt-content__title-1,
|
|
@@ -13,22 +15,22 @@
|
|
|
13
15
|
font-family: var(--dc-font-base);
|
|
14
16
|
margin-top: 0;
|
|
15
17
|
margin-bottom: 0;
|
|
16
|
-
letter-spacing:
|
|
18
|
+
letter-spacing: dc.$tracking-normal;
|
|
17
19
|
color: inherit;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
.dc-fmt-content,
|
|
21
23
|
.dc-fmt-content__paragraph {
|
|
22
|
-
font-size:
|
|
23
|
-
font-weight:
|
|
24
|
-
line-height:
|
|
24
|
+
font-size: dc.$font-size-base;
|
|
25
|
+
font-weight: dc.$font-weight-normal;
|
|
26
|
+
line-height: dc.$leading-lg;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.dc-fmt-content b,
|
|
28
30
|
.dc-fmt-content strong,
|
|
29
31
|
.dc-fmt-content__paragraph b,
|
|
30
32
|
.dc-fmt-content__paragraph strong {
|
|
31
|
-
font-weight:
|
|
33
|
+
font-weight: dc.$font-weight-semi-bold;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.dc-fmt-content i,
|
|
@@ -54,11 +56,11 @@
|
|
|
54
56
|
.dc-fmt-content__code,
|
|
55
57
|
.dc-fmt-content code,
|
|
56
58
|
.dc-fmt-content__paragraph code {
|
|
57
|
-
font-family:
|
|
59
|
+
font-family: dc.$font-mono;
|
|
58
60
|
font-size: 85%;
|
|
59
61
|
padding: 0.2em 0.4em;
|
|
60
|
-
border-radius:
|
|
61
|
-
background: rgba(
|
|
62
|
+
border-radius: dc.$border-radius-xs;
|
|
63
|
+
background: rgba(dc.$black, dc.$opacity-5);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
.dc-fmt-content__large-title,
|
|
@@ -72,50 +74,50 @@
|
|
|
72
74
|
.dc-fmt-content h4,
|
|
73
75
|
.dc-fmt-content h5,
|
|
74
76
|
.dc-fmt-content h6 {
|
|
75
|
-
font-weight:
|
|
76
|
-
line-height:
|
|
77
|
+
font-weight: dc.$font-weight-bold;
|
|
78
|
+
line-height: dc.$leading-tight;
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
.dc-fmt-content__title-1,
|
|
80
82
|
.dc-fmt-content h1 {
|
|
81
|
-
font-size:
|
|
83
|
+
font-size: dc.$font-size-2xl;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
.dc-fmt-content__title-2,
|
|
85
87
|
.dc-fmt-content h2 {
|
|
86
|
-
font-size:
|
|
88
|
+
font-size: dc.$font-size-xl;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.dc-fmt-content__title-3,
|
|
90
92
|
.dc-fmt-content h3 {
|
|
91
|
-
font-size:
|
|
93
|
+
font-size: dc.$font-size-lg;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.dc-fmt-content__headline,
|
|
95
97
|
.dc-fmt-content h4,
|
|
96
98
|
.dc-fmt-content h5,
|
|
97
99
|
.dc-fmt-content h6 {
|
|
98
|
-
font-size:
|
|
100
|
+
font-size: dc.$font-size-base;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
.dc-fmt-content__large-title {
|
|
102
|
-
font-size:
|
|
104
|
+
font-size: dc.$font-size-3xl;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
.dc-fmt-content__subheadline {
|
|
106
|
-
font-size:
|
|
107
|
-
line-height:
|
|
108
|
+
font-size: dc.$font-size-sm;
|
|
109
|
+
line-height: dc.$leading-tight;
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
.dc-fmt-content__footnote {
|
|
111
113
|
font-size: 0.8125rem;
|
|
112
|
-
line-height:
|
|
114
|
+
line-height: dc.$leading-tight;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
.dc-fmt-content__caption {
|
|
116
|
-
font-size:
|
|
117
|
-
line-height:
|
|
118
|
-
opacity:
|
|
118
|
+
font-size: dc.$font-size-xs;
|
|
119
|
+
line-height: dc.$leading-tight;
|
|
120
|
+
opacity: dc.$opacity-90;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
.dc-fmt-content {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-inline-message {
|
|
2
4
|
display: inline-flex;
|
|
3
5
|
align-items: flex-start;
|
|
@@ -23,6 +25,6 @@
|
|
|
23
25
|
.dc-inline-message__icon {
|
|
24
26
|
line-height: 1;
|
|
25
27
|
flex-shrink: 0;
|
|
26
|
-
margin-right:
|
|
28
|
+
margin-right: dc.$gap-2x;
|
|
27
29
|
transform: translateY(0.125em);
|
|
28
30
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-input {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
5
|
font-size: var(--dc-input-font-size);
|
|
4
|
-
font-weight:
|
|
6
|
+
font-weight: dc.$font-weight-normal;
|
|
5
7
|
line-height: 1;
|
|
6
8
|
position: relative;
|
|
7
9
|
box-sizing: border-box;
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
height: var(--dc-input-height);
|
|
12
14
|
margin: 0;
|
|
13
15
|
padding: 0;
|
|
14
|
-
transition:
|
|
16
|
+
transition: dc.$transition-quick;
|
|
15
17
|
transition-property: color, border-color, background-color, box-shadow;
|
|
16
18
|
color: var(--dc-input-text-color);
|
|
17
19
|
border-radius: var(--dc-input-border-radius);
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
appearance: none;
|
|
21
23
|
|
|
22
24
|
&::placeholder {
|
|
23
|
-
opacity:
|
|
25
|
+
opacity: dc.$opacity-40;
|
|
24
26
|
color: inherit;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -54,17 +56,17 @@
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.dc-input_size_sm {
|
|
57
|
-
--dc-input-width: #{px-to-rem(224px)};
|
|
59
|
+
--dc-input-width: #{dc.px-to-rem(224px)};
|
|
58
60
|
--dc-input-height: var(--dc-control-sm-h);
|
|
59
|
-
--dc-input-border-radius: #{
|
|
60
|
-
--dc-input-font-size: #{px-to-rem(13px)};
|
|
61
|
+
--dc-input-border-radius: #{dc.$border-radius-xs};
|
|
62
|
+
--dc-input-font-size: #{dc.px-to-rem(13px)};
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.dc-input_size_lg {
|
|
64
|
-
--dc-input-width: #{px-to-rem(320px)};
|
|
66
|
+
--dc-input-width: #{dc.px-to-rem(320px)};
|
|
65
67
|
--dc-input-height: var(--dc-control-lg-h);
|
|
66
|
-
--dc-input-border-radius: #{
|
|
67
|
-
--dc-input-font-size: #{px-to-rem(15px)};
|
|
68
|
+
--dc-input-border-radius: #{dc.$border-radius-sm};
|
|
69
|
+
--dc-input-font-size: #{dc.px-to-rem(15px)};
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
.dc-input_full_width {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-label {
|
|
2
|
-
font-weight:
|
|
4
|
+
font-weight: dc.$font-weight-medium;
|
|
3
5
|
position: relative;
|
|
6
|
+
display: inline-block;
|
|
4
7
|
color: var(--dc-label-text-color);
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
.dc-label_required::after {
|
|
8
|
-
padding-left:
|
|
11
|
+
padding-left: dc.$gap-1x;
|
|
9
12
|
content: '*';
|
|
10
13
|
color: var(--dc-label-required-mark-color);
|
|
11
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-loading-view {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
|
-
font-size:
|
|
4
|
-
padding-right:
|
|
5
|
-
padding-left:
|
|
5
|
+
font-size: dc.$font-size-base;
|
|
6
|
+
padding-right: dc.$gap-4x;
|
|
7
|
+
padding-left: dc.$gap-4x;
|
|
6
8
|
text-align: center;
|
|
7
9
|
color: var(--dc-primary-text-color);
|
|
8
10
|
}
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.dc-loading-view__content {
|
|
15
|
-
margin-top:
|
|
17
|
+
margin-top: dc.$gap-3x;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.dc-loading-view_pad-y_none {
|
|
@@ -21,36 +23,36 @@
|
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.dc-loading-view_pad-y_2xs {
|
|
24
|
-
padding-top:
|
|
25
|
-
padding-bottom:
|
|
26
|
+
padding-top: dc.$gap-1x;
|
|
27
|
+
padding-bottom: dc.$gap-1x;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.dc-loading-view_pad-y_xs {
|
|
29
|
-
padding-top:
|
|
30
|
-
padding-bottom:
|
|
31
|
+
padding-top: dc.$gap-2x;
|
|
32
|
+
padding-bottom: dc.$gap-2x;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.dc-loading-view_pad-y_sm {
|
|
34
|
-
padding-top:
|
|
35
|
-
padding-bottom:
|
|
36
|
+
padding-top: dc.$gap-4x;
|
|
37
|
+
padding-bottom: dc.$gap-4x;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
.dc-loading-view_pad-y_md {
|
|
39
|
-
padding-top:
|
|
40
|
-
padding-bottom:
|
|
41
|
+
padding-top: dc.$gap-8x;
|
|
42
|
+
padding-bottom: dc.$gap-8x;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.dc-loading-view_pad-y_lg {
|
|
44
|
-
padding-top:
|
|
45
|
-
padding-bottom:
|
|
46
|
+
padding-top: dc.$gap-16x;
|
|
47
|
+
padding-bottom: dc.$gap-16x;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.dc-loading-view_pad-y_xl {
|
|
49
|
-
padding-top:
|
|
50
|
-
padding-bottom:
|
|
51
|
+
padding-top: dc.$gap-20x;
|
|
52
|
+
padding-bottom: dc.$gap-20x;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.dc-loading-view_pad-y_2xl {
|
|
54
|
-
padding-top:
|
|
55
|
-
padding-bottom:
|
|
56
|
+
padding-top: dc.$gap-24x;
|
|
57
|
+
padding-bottom: dc.$gap-24x;
|
|
56
58
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-non-ideal-state {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
|
-
font-size:
|
|
5
|
+
font-size: dc.$font-size-base;
|
|
4
6
|
box-sizing: border-box;
|
|
5
|
-
padding-right:
|
|
6
|
-
padding-left:
|
|
7
|
+
padding-right: dc.$gap-4x;
|
|
8
|
+
padding-left: dc.$gap-4x;
|
|
7
9
|
text-align: center;
|
|
8
10
|
color: var(--dc-non-ideal-state-text-color);
|
|
9
11
|
}
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
.dc-non-ideal-state__icon {
|
|
17
|
-
margin-bottom:
|
|
19
|
+
margin-bottom: dc.$gap-8x;
|
|
18
20
|
color: var(--dc-non-ideal-state-icon-color);
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -23,31 +25,31 @@
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
.dc-non-ideal-state__icon_red {
|
|
26
|
-
color:
|
|
28
|
+
color: dc.$red-500;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.dc-non-ideal-state__icon_orange {
|
|
30
|
-
color:
|
|
32
|
+
color: dc.$orange-500;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.dc-non-ideal-state__icon_blue {
|
|
34
|
-
color:
|
|
36
|
+
color: dc.$blue-500;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.dc-non-ideal-state__icon_green {
|
|
38
|
-
color:
|
|
40
|
+
color: dc.$green-500;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
.dc-non-ideal-state__description {
|
|
42
|
-
margin-top:
|
|
44
|
+
margin-top: dc.$gap-2x;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
.dc-non-ideal-state__actions {
|
|
46
|
-
margin-top:
|
|
48
|
+
margin-top: dc.$gap-4x;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
.dc-non-ideal-state__content {
|
|
50
|
-
margin-top:
|
|
52
|
+
margin-top: dc.$gap-4x;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.dc-non-ideal-state_spacing_none {
|
|
@@ -56,36 +58,36 @@
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.dc-non-ideal-state_spacing_2xs {
|
|
59
|
-
padding-top:
|
|
60
|
-
padding-bottom:
|
|
61
|
+
padding-top: dc.$gap-1x;
|
|
62
|
+
padding-bottom: dc.$gap-1x;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.dc-non-ideal-state_spacing_xs {
|
|
64
|
-
padding-top:
|
|
65
|
-
padding-bottom:
|
|
66
|
+
padding-top: dc.$gap-2x;
|
|
67
|
+
padding-bottom: dc.$gap-2x;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
.dc-non-ideal-state_spacing_sm {
|
|
69
|
-
padding-top:
|
|
70
|
-
padding-bottom:
|
|
71
|
+
padding-top: dc.$gap-4x;
|
|
72
|
+
padding-bottom: dc.$gap-4x;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.dc-non-ideal-state_spacing_md {
|
|
74
|
-
padding-top:
|
|
75
|
-
padding-bottom:
|
|
76
|
+
padding-top: dc.$gap-8x;
|
|
77
|
+
padding-bottom: dc.$gap-8x;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.dc-non-ideal-state_spacing_lg {
|
|
79
|
-
padding-top:
|
|
80
|
-
padding-bottom:
|
|
81
|
+
padding-top: dc.$gap-16x;
|
|
82
|
+
padding-bottom: dc.$gap-16x;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.dc-non-ideal-state_spacing_xl {
|
|
84
|
-
padding-top:
|
|
85
|
-
padding-bottom:
|
|
86
|
+
padding-top: dc.$gap-20x;
|
|
87
|
+
padding-bottom: dc.$gap-20x;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
.dc-non-ideal-state_spacing_2xl {
|
|
89
|
-
padding-top:
|
|
90
|
-
padding-bottom:
|
|
91
|
+
padding-top: dc.$gap-24x;
|
|
92
|
+
padding-bottom: dc.$gap-24x;
|
|
91
93
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-number-input {
|
|
2
4
|
display: inline-flex;
|
|
3
5
|
align-items: center;
|
|
@@ -8,10 +10,10 @@
|
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
.dc-number-input > * + * {
|
|
11
|
-
margin-left:
|
|
13
|
+
margin-left: dc.$gap-1x;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.dc-number-input__text-input {
|
|
15
17
|
flex: auto;
|
|
16
|
-
width: px-to-rem(160px);
|
|
18
|
+
width: dc.px-to-rem(160px);
|
|
17
19
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-radio-btn {
|
|
2
4
|
--dc-selection-control-size: var(--dc-radio-btn-size);
|
|
3
5
|
}
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.dc-radio-btn__input {
|
|
10
|
-
@include visually-hidden;
|
|
12
|
+
@include dc.visually-hidden;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.dc-radio-btn__radio {
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
transform: translate(-50%, -50%);
|
|
43
45
|
border-radius: 50%;
|
|
44
46
|
background: currentColor;
|
|
45
|
-
box-shadow:
|
|
47
|
+
box-shadow: dc.$shadow-xs;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.dc-radio-btn__input:focus + .dc-radio-btn__radio {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
1
3
|
.dc-radio-group {
|
|
2
4
|
font-family: var(--dc-font-base);
|
|
3
5
|
margin-top: 0;
|
|
@@ -7,27 +9,27 @@
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.dc-radio-group > * + * {
|
|
10
|
-
margin-top:
|
|
12
|
+
margin-top: dc.$gap-2x;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.dc-radio-group-input {
|
|
14
|
-
@include visually-hidden;
|
|
16
|
+
@include dc.visually-hidden;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.dc-radio-group-item {
|
|
18
20
|
display: flex;
|
|
19
21
|
align-items: center;
|
|
20
22
|
box-sizing: border-box;
|
|
21
|
-
padding:
|
|
23
|
+
padding: dc.$gap-2x dc.$gap-4x;
|
|
22
24
|
cursor: default;
|
|
23
25
|
border: 2px solid var(--dc-radio-group-border-color);
|
|
24
|
-
border-radius:
|
|
26
|
+
border-radius: dc.$border-radius-md;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.dc-radio-group-item__check {
|
|
28
30
|
display: inline-block;
|
|
29
|
-
width: px-to-rem(18px);
|
|
30
|
-
height: px-to-rem(18px);
|
|
31
|
+
width: dc.px-to-rem(18px);
|
|
32
|
+
height: dc.px-to-rem(18px);
|
|
31
33
|
color: var(--dc-radio-group-selection-color);
|
|
32
34
|
border-radius: 50%;
|
|
33
35
|
box-shadow: inset 0 0 0 1px var(--dc-radio-group-border-color);
|
|
@@ -38,23 +40,23 @@
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.dc-radio-group-item > * + * {
|
|
41
|
-
margin-left:
|
|
43
|
+
margin-left: dc.$gap-4x;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.dc-radio-group-item__body {
|
|
45
|
-
font-size:
|
|
47
|
+
font-size: dc.$font-size-sm;
|
|
46
48
|
flex: auto;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
.dc-radio-group-item__label {
|
|
50
|
-
font-weight:
|
|
52
|
+
font-weight: dc.$font-weight-medium;
|
|
51
53
|
margin: 0;
|
|
52
54
|
padding: 0;
|
|
53
55
|
color: var(--dc-primary-text-color);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.dc-radio-group-item__description {
|
|
57
|
-
margin-top:
|
|
59
|
+
margin-top: dc.$gap-1x;
|
|
58
60
|
color: var(--dc-secondary-text-color);
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
border-color: var(--dc-radio-group-selection-color);
|
|
63
65
|
}
|
|
64
66
|
|
|
67
|
+
//noinspection CssMissingComma
|
|
65
68
|
.dc-radio-group-input:checked
|
|
66
69
|
~ .dc-radio-group-item
|
|
67
70
|
.dc-radio-group-item__check-icon {
|
|
@@ -78,16 +81,16 @@
|
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
.dc-radio-group_type_simple-list > * + * {
|
|
81
|
-
margin-top:
|
|
84
|
+
margin-top: dc.$gap-1x;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
.dc-radio-group_type_simple-list .dc-radio-group-item {
|
|
85
88
|
display: inline-flex;
|
|
86
|
-
padding:
|
|
89
|
+
padding: dc.$gap-1x;
|
|
87
90
|
border: none;
|
|
88
|
-
border-radius:
|
|
91
|
+
border-radius: dc.$border-radius-sm;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.dc-radio-group_type_simple-list .dc-radio-group-item__label {
|
|
92
|
-
font-weight:
|
|
95
|
+
font-weight: dc.$font-weight-normal;
|
|
93
96
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../abstracts' as dc;
|
|
2
|
+
|
|
3
|
+
$dc-scope-buttons-space: dc.$gap-1x;
|
|
2
4
|
|
|
3
5
|
.dc-scope-buttons {
|
|
4
6
|
display: inline-flex;
|
|
@@ -29,7 +31,7 @@ $dc-scope-buttons-space: $gap-1x;
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
.dc-scope-buttons_bottom-pad {
|
|
32
|
-
padding-bottom:
|
|
34
|
+
padding-bottom: dc.$gap-1x;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.dc-scope-buttons > .dc-scope-button + .dc-scope-button {
|