draft-components 0.61.2 → 0.63.2

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.
Files changed (65) hide show
  1. package/components/calendar/calendar-day.d.ts +2 -1
  2. package/components/calendar/calendar-day.js +2 -2
  3. package/components/calendar/calendar.d.ts +4 -2
  4. package/components/calendar/calendar.js +6 -2
  5. package/components/date-picker/date-picker.d.ts +3 -1
  6. package/components/date-picker/date-picker.js +6 -3
  7. package/components/date-picker-popover/date-picker-popover.d.ts +18 -0
  8. package/components/date-picker-popover/date-picker-popover.js +35 -0
  9. package/components/date-picker-popover/index.d.ts +1 -0
  10. package/components/date-picker-popover/index.js +13 -0
  11. package/components/index.d.ts +1 -0
  12. package/components/index.js +1 -0
  13. package/components/slider/slider.d.ts +6 -5
  14. package/components/slider/slider.js +26 -8
  15. package/components/table/table-cell.d.ts +4 -2
  16. package/components/table/table-cell.js +2 -2
  17. package/components/table/table-header-cell.js +1 -1
  18. package/components/table/table-sort-button.js +4 -4
  19. package/css/draft-components.css +2 -2
  20. package/package.json +1 -1
  21. package/scss/components/_actions-group.scss +5 -3
  22. package/scss/components/_alert.scss +34 -32
  23. package/scss/components/_avatar.scss +20 -18
  24. package/scss/components/_box.scss +49 -47
  25. package/scss/components/_breadcrumbs.scss +6 -4
  26. package/scss/components/_button.scss +20 -18
  27. package/scss/components/_calendar.scss +21 -11
  28. package/scss/components/_checkbox.scss +4 -2
  29. package/scss/components/_date-picker.scss +4 -2
  30. package/scss/components/_date-preset-picker-popover.scss +11 -9
  31. package/scss/components/_datetime-input.scss +11 -9
  32. package/scss/components/_dialog.scss +9 -7
  33. package/scss/components/_form-field.scss +4 -2
  34. package/scss/components/_formatted-content.scss +23 -21
  35. package/scss/components/_inline-message.scss +3 -1
  36. package/scss/components/_input.scss +11 -9
  37. package/scss/components/_label.scss +5 -2
  38. package/scss/components/_loading-view.scss +20 -18
  39. package/scss/components/_non-ideal-state-view.scss +27 -25
  40. package/scss/components/_number-input.scss +4 -2
  41. package/scss/components/_radio-button.scss +4 -2
  42. package/scss/components/_radio-group.scss +17 -14
  43. package/scss/components/_scope-buttons.scss +4 -2
  44. package/scss/components/_secret.scss +4 -2
  45. package/scss/components/_segmented-control.scss +7 -5
  46. package/scss/components/_select.scss +9 -7
  47. package/scss/components/_selection-control.scss +11 -9
  48. package/scss/components/_slider.scss +88 -98
  49. package/scss/components/_switch.scss +5 -3
  50. package/scss/components/_table.scss +27 -16
  51. package/scss/components/_tabs.scss +13 -12
  52. package/scss/components/_tag.scss +37 -35
  53. package/scss/components/_text-input.scss +3 -1
  54. package/scss/components/_toast.scss +25 -23
  55. package/scss/components/_toaster.scss +8 -6
  56. package/scss/components/_tooltip.scss +6 -4
  57. package/scss/components/_vertical-navigation.scss +16 -14
  58. package/scss/draft-components-utils.scss +0 -1
  59. package/scss/draft-components.scss +0 -1
  60. package/scss/themes/_default-theme.scss +162 -156
  61. package/scss/utils/_borders.scss +14 -12
  62. package/scss/utils/_gap.scss +14 -12
  63. package/scss/utils/_margin.scss +14 -12
  64. package/scss/utils/_padding.scss +14 -12
  65. package/scss/.DS_Store +0 -0
@@ -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: $gap-1x;
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: $gap-1x;
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: $tracking-normal;
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: $font-size-base;
23
- font-weight: $font-weight-normal;
24
- line-height: $leading-lg;
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: $font-weight-semi-bold;
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: $font-mono;
59
+ font-family: dc.$font-mono;
58
60
  font-size: 85%;
59
61
  padding: 0.2em 0.4em;
60
- border-radius: $border-radius-xs;
61
- background: rgba($black, $opacity-5);
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: $font-weight-bold;
76
- line-height: $leading-tight;
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: $font-size-2xl;
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: $font-size-xl;
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: $font-size-lg;
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: $font-size-base;
100
+ font-size: dc.$font-size-base;
99
101
  }
100
102
 
101
103
  .dc-fmt-content__large-title {
102
- font-size: $font-size-3xl;
104
+ font-size: dc.$font-size-3xl;
103
105
  }
104
106
 
105
107
  .dc-fmt-content__subheadline {
106
- font-size: $font-size-sm;
107
- line-height: $leading-tight;
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: $leading-tight;
114
+ line-height: dc.$leading-tight;
113
115
  }
114
116
 
115
117
  .dc-fmt-content__caption {
116
- font-size: $font-size-xs;
117
- line-height: $leading-tight;
118
- opacity: $opacity-90;
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: $gap-2x;
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: $font-weight-normal;
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: $transition-quick;
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: $opacity-40;
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: #{$border-radius-xs};
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: #{$border-radius-sm};
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: $font-weight-medium;
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: $gap-1x;
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: $font-size-base;
4
- padding-right: $gap-4x;
5
- padding-left: $gap-4x;
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: $gap-3x;
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: $gap-1x;
25
- padding-bottom: $gap-1x;
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: $gap-2x;
30
- padding-bottom: $gap-2x;
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: $gap-4x;
35
- padding-bottom: $gap-4x;
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: $gap-8x;
40
- padding-bottom: $gap-8x;
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: $gap-16x;
45
- padding-bottom: $gap-16x;
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: $gap-20x;
50
- padding-bottom: $gap-20x;
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: $gap-24x;
55
- padding-bottom: $gap-24x;
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: $font-size-base;
5
+ font-size: dc.$font-size-base;
4
6
  box-sizing: border-box;
5
- padding-right: $gap-4x;
6
- padding-left: $gap-4x;
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: $gap-8x;
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: $red-500;
28
+ color: dc.$red-500;
27
29
  }
28
30
 
29
31
  .dc-non-ideal-state__icon_orange {
30
- color: $orange-500;
32
+ color: dc.$orange-500;
31
33
  }
32
34
 
33
35
  .dc-non-ideal-state__icon_blue {
34
- color: $blue-500;
36
+ color: dc.$blue-500;
35
37
  }
36
38
 
37
39
  .dc-non-ideal-state__icon_green {
38
- color: $green-500;
40
+ color: dc.$green-500;
39
41
  }
40
42
 
41
43
  .dc-non-ideal-state__description {
42
- margin-top: $gap-2x;
44
+ margin-top: dc.$gap-2x;
43
45
  }
44
46
 
45
47
  .dc-non-ideal-state__actions {
46
- margin-top: $gap-4x;
48
+ margin-top: dc.$gap-4x;
47
49
  }
48
50
 
49
51
  .dc-non-ideal-state__content {
50
- margin-top: $gap-4x;
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: $gap-1x;
60
- padding-bottom: $gap-1x;
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: $gap-2x;
65
- padding-bottom: $gap-2x;
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: $gap-4x;
70
- padding-bottom: $gap-4x;
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: $gap-8x;
75
- padding-bottom: $gap-8x;
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: $gap-16x;
80
- padding-bottom: $gap-16x;
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: $gap-20x;
85
- padding-bottom: $gap-20x;
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: $gap-24x;
90
- padding-bottom: $gap-24x;
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: $gap-1x;
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: $shadow-xs;
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: $gap-2x;
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: $gap-2x $gap-4x;
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: $border-radius-md;
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: $gap-4x;
43
+ margin-left: dc.$gap-4x;
42
44
  }
43
45
 
44
46
  .dc-radio-group-item__body {
45
- font-size: $font-size-sm;
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: $font-weight-medium;
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: $gap-1x;
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: $gap-1x;
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: $gap-1x;
89
+ padding: dc.$gap-1x;
87
90
  border: none;
88
- border-radius: $border-radius-sm;
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: $font-weight-normal;
95
+ font-weight: dc.$font-weight-normal;
93
96
  }
@@ -1,4 +1,6 @@
1
- $dc-scope-buttons-space: $gap-1x;
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: $gap-1x;
34
+ padding-bottom: dc.$gap-1x;
33
35
  }
34
36
 
35
37
  .dc-scope-buttons > .dc-scope-button + .dc-scope-button {
@@ -1,3 +1,5 @@
1
+ @use '../abstracts' as dc;
2
+
1
3
  .dc-secret {
2
4
  font-family: var(--dc-font-code);
3
5
  position: relative;
@@ -7,7 +9,7 @@
7
9
 
8
10
  .dc-secret__content {
9
11
  text-align: left;
10
- opacity: $opacity-75;
12
+ opacity: dc.$opacity-75;
11
13
  }
12
14
 
13
15
  .dc-secret__btn {
@@ -25,6 +27,6 @@
25
27
 
26
28
  .dc-secret_shown .dc-secret__btn {
27
29
  position: initial;
28
- margin-top: $gap-2x;
30
+ margin-top: dc.$gap-2x;
29
31
  transform: none;
30
32
  }
@@ -1,20 +1,22 @@
1
+ @use '../abstracts' as dc;
2
+
1
3
  .dc-segmented-control {
2
4
  position: relative;
3
5
  display: inline-flex;
4
6
  margin-top: 0;
5
7
  margin-bottom: 0;
6
- padding: px-to-rem(1px) px-to-rem(2px);
8
+ padding: dc.px-to-rem(1px) dc.px-to-rem(2px);
7
9
  list-style: none;
8
- border-radius: $border-radius-lg;
9
- background: rgba($gray-900, $opacity-5);
10
+ border-radius: dc.$border-radius-lg;
11
+ background: rgba(dc.$gray-900, dc.$opacity-5);
10
12
  }
11
13
 
12
14
  .dc-segmented-control_size_sm {
13
- border-radius: $border-radius-md;
15
+ border-radius: dc.$border-radius-md;
14
16
  }
15
17
 
16
18
  .dc-segmented-control_size_lg {
17
- border-radius: $border-radius-xl;
19
+ border-radius: dc.$border-radius-xl;
18
20
  }
19
21
 
20
22
  .dc-segmented-control__radio-btn {
@@ -1,34 +1,36 @@
1
+ @use '../abstracts' as dc;
2
+
1
3
  @function select-arrow-icon($color) {
2
- @return inline-svg(
4
+ @return dc.inline-svg(
3
5
  '<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 11L6 14L9 11" stroke="#{$color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 5L6 2L3 5" stroke="#{$color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'
4
6
  );
5
7
  }
6
8
 
7
9
  .dc-select {
8
- line-height: $leading-default;
10
+ line-height: dc.$leading-default;
9
11
  width: auto;
10
12
  padding-right: calc(1.25em + var(--dc-input-gap));
11
13
  padding-left: var(--dc-input-gap);
12
14
  cursor: pointer;
13
15
  color: initial;
14
16
  border: none;
15
- background-image: select-arrow-icon($gray-600);
17
+ background-image: select-arrow-icon(dc.$gray-600);
16
18
  background-repeat: no-repeat;
17
19
  background-position: calc(100% - var(--dc-input-gap)) center;
18
20
  background-size: 0.85em auto;
19
- box-shadow: 0 0 0 1px var(--dc-input-border-color), $shadow-xs;
21
+ box-shadow: 0 0 0 1px var(--dc-input-border-color), dc.$shadow-xs;
20
22
  }
21
23
 
22
24
  .dc-select:disabled {
23
- background-image: select-arrow-icon($gray-400);
25
+ background-image: select-arrow-icon(dc.$gray-400);
24
26
  }
25
27
 
26
28
  .dc-select[multiple] {
27
29
  height: initial;
28
- padding: $gap-2x 0;
30
+ padding: dc.$gap-2x 0;
29
31
  background: var(--dc-input-bg);
30
32
  }
31
33
 
32
34
  .dc-select option {
33
- padding: $gap-1x $gap-3x;
35
+ padding: dc.$gap-1x dc.$gap-3x;
34
36
  }