@helsenorge/designsystem-react 13.0.0-workspaces-beta.1 → 13.0.0-workspaces-beta.3

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 (58) hide show
  1. package/lib/CHANGELOG.md +4 -0
  2. package/lib/FormFieldTag.js.map +1 -1
  3. package/lib/Table.js +3 -3
  4. package/lib/Table.js.map +1 -1
  5. package/lib/TableBody.js +2 -2
  6. package/lib/TableBody.js.map +1 -1
  7. package/lib/TableCell.js +2 -2
  8. package/lib/TableCell.js.map +1 -1
  9. package/lib/TableExpandedRow.js +4 -4
  10. package/lib/TableExpandedRow.js.map +1 -1
  11. package/lib/TableExpanderCell.js +2 -2
  12. package/lib/TableExpanderCell.js.map +1 -1
  13. package/lib/TableHead.js +6 -6
  14. package/lib/TableHead.js.map +1 -1
  15. package/lib/TableHeadCell.js +5 -5
  16. package/lib/TableHeadCell.js.map +1 -1
  17. package/lib/TableRow.js +5 -5
  18. package/lib/TableRow.js.map +1 -1
  19. package/lib/components/FormFieldTag/FormFieldTag.d.ts +1 -1
  20. package/lib/components/Toast/styles.module.scss.d.ts +15 -0
  21. package/package.json +27 -9
  22. package/scss/_body.scss +11 -0
  23. package/scss/_breakpoints.scss +29 -0
  24. package/scss/_figma-tokens.scss +68 -0
  25. package/scss/_font-mixins.scss +262 -0
  26. package/scss/_font-settings.scss +8 -0
  27. package/scss/_fonts.scss +155 -0
  28. package/scss/_grid.scss +6 -0
  29. package/scss/_icon.scss +8 -0
  30. package/scss/_input.scss +139 -0
  31. package/scss/_palette.scss +146 -0
  32. package/scss/_print.scss +219 -0
  33. package/scss/_reset.scss +13 -0
  34. package/scss/_screen-reader.scss +63 -0
  35. package/scss/_spacers.scss +42 -0
  36. package/scss/bootstrap/LICENSE +22 -0
  37. package/scss/bootstrap/scss/_functions.scss +210 -0
  38. package/scss/bootstrap/scss/_grid.scss +73 -0
  39. package/scss/bootstrap/scss/_variables.scss +990 -0
  40. package/scss/bootstrap/scss/bootstrap-grid.scss +30 -0
  41. package/scss/bootstrap/scss/mixins/_breakpoints.scss +131 -0
  42. package/scss/bootstrap/scss/mixins/_deprecate.scss +11 -0
  43. package/scss/bootstrap/scss/mixins/_grid-framework.scss +89 -0
  44. package/scss/bootstrap/scss/mixins/_grid.scss +76 -0
  45. package/scss/bootstrap/scss/utilities/_display.scss +30 -0
  46. package/scss/bootstrap/scss/utilities/_flex.scss +120 -0
  47. package/scss/bootstrap/scss/utilities/_spacing.scss +80 -0
  48. package/scss/bootstrap/scss/vendor/_rfs.scss +233 -0
  49. package/scss/helsenorge.scss +10 -0
  50. package/scss/layout.module.scss +14 -0
  51. package/scss/layout.module.scss.d.ts +9 -0
  52. package/scss/supernova/index.css +4 -0
  53. package/scss/supernova/styles/colors.css +258 -0
  54. package/scss/supernova/styles/spacers.css +24 -0
  55. package/scss/supernova/styles/typography.css +110 -0
  56. package/scss/typography.module.scss +182 -0
  57. package/scss/typography.module.scss.d.ts +38 -0
  58. package/scss/typography.stories.tsx +203 -0
@@ -0,0 +1,68 @@
1
+ // Do not edit directly
2
+ // Generated on Wed, 05 Oct 2022 11:38:01 GMT
3
+
4
+ $palette-white: #fff;
5
+ $palette-black: #000;
6
+ $palette-plum900: #3c1471;
7
+ $palette-plum800: #4c1b8c;
8
+ $palette-plum700: #5b22a6;
9
+ $palette-plum600: #6a2abf;
10
+ $palette-plum500: #7a33d7;
11
+ $palette-plum400: #9153e2;
12
+ $palette-plum300: #a875eb;
13
+ $palette-plum200: #bf98f3;
14
+ $palette-plum100: #d7bdf9;
15
+ $palette-plum50: #efe4fd;
16
+ $palette-neutral900: #2b2c2b;
17
+ $palette-neutral800: #474745;
18
+ $palette-neutral700: #62625f;
19
+ $palette-neutral600: #7d7c79;
20
+ $palette-neutral500: #989693;
21
+ $palette-neutral400: #aaa8a6;
22
+ $palette-neutral300: #bdbab9;
23
+ $palette-neutral200: #d6d4d3;
24
+ $palette-neutral100: #eae7e7;
25
+ $palette-neutral50: #f5f3f3;
26
+ $palette-kiwi900: #078141;
27
+ $palette-kiwi800: #099150;
28
+ $palette-kiwi700: #0ca161;
29
+ $palette-kiwi600: #10b172;
30
+ $palette-kiwi500: #33be84;
31
+ $palette-kiwi400: #56ca96;
32
+ $palette-kiwi300: #79d6aa;
33
+ $palette-kiwi200: #9de2bf;
34
+ $palette-kiwi100: #c2edd6;
35
+ $palette-kiwi50: #e6f8ee;
36
+ $palette-cherry900: #7e1c0e;
37
+ $palette-cherry800: #912112;
38
+ $palette-cherry700: #a31f0e;
39
+ $palette-cherry600: #b62e1c;
40
+ $palette-cherry500: #c83521;
41
+ $palette-cherry400: #d56147;
42
+ $palette-cherry300: #e39376;
43
+ $palette-cherry200: #eec0a5;
44
+ $palette-cherry100: #f7e1d2;
45
+ $palette-cherry50: #fff2ea;
46
+ $palette-blueberry900: #084350;
47
+ $palette-blueberry800: #06596c;
48
+ $palette-blueberry700: #08667c;
49
+ $palette-blueberry600: #126f87;
50
+ $palette-blueberry500: #188097;
51
+ $palette-blueberry400: #58aabb;
52
+ $palette-blueberry300: #7abecc;
53
+ $palette-blueberry200: #afdae3;
54
+ $palette-blueberry100: #cae7ed;
55
+ $palette-blueberry50: #e4f7f9;
56
+ $palette-banana900: #764f00;
57
+ $palette-banana800: #916500;
58
+ $palette-banana700: #ab7c00;
59
+ $palette-banana600: #c59302;
60
+ $palette-banana500: #ddab06;
61
+ $palette-banana400: #ebc840;
62
+ $palette-banana300: #f1d460;
63
+ $palette-banana200: #f5e080;
64
+ $palette-banana100: #f9ea9f;
65
+ $palette-banana50: #fcf2bf;
66
+ $font-main: $palette-white;
67
+ $backgrounds-destructive: $palette-cherry600;
68
+ $backgrounds-main: $palette-blueberry600;
@@ -0,0 +1,262 @@
1
+ @use 'sass:map';
2
+ @use './spacers' as spacers;
3
+ @use './breakpoints' as breakpoints;
4
+
5
+ @mixin title-feature {
6
+ font-size: 2.375rem;
7
+ line-height: 2.875rem;
8
+ font-weight: 600;
9
+
10
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
11
+ font-size: 4rem;
12
+ line-height: 5rem;
13
+ }
14
+ }
15
+
16
+ @mixin title1 {
17
+ font-size: 2rem;
18
+ line-height: 2.375rem;
19
+ font-weight: 600;
20
+
21
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
22
+ font-size: 3rem;
23
+ line-height: 3.625rem;
24
+ }
25
+ }
26
+
27
+ @mixin title2 {
28
+ font-size: 1.625rem;
29
+ line-height: 1.938rem;
30
+ font-weight: 600;
31
+
32
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
33
+ font-size: 2rem;
34
+ line-height: 2.375rem;
35
+ }
36
+ }
37
+
38
+ @mixin title3 {
39
+ font-size: 1.375rem;
40
+ line-height: 1.813rem;
41
+ font-weight: 600;
42
+
43
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
44
+ font-size: 1.625rem;
45
+ line-height: 2rem;
46
+ }
47
+ }
48
+
49
+ @mixin title4 {
50
+ font-size: 1.25rem;
51
+ line-height: 1.625rem;
52
+ font-weight: 600;
53
+
54
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
55
+ font-size: 1.375rem;
56
+ line-height: 1.813rem;
57
+ }
58
+ }
59
+
60
+ @mixin title5 {
61
+ font-size: 1rem;
62
+ line-height: 1.375rem;
63
+ letter-spacing: 0.03rem;
64
+ font-weight: 600;
65
+ text-transform: uppercase;
66
+
67
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
68
+ font-size: 1.125rem;
69
+ line-height: 1.563rem;
70
+ }
71
+ }
72
+
73
+ @mixin title6 {
74
+ font-size: 1rem;
75
+ line-height: 1.375rem;
76
+ font-weight: 600;
77
+
78
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
79
+ font-size: 1.125rem;
80
+ line-height: 1.563rem;
81
+ }
82
+ }
83
+
84
+ @mixin body {
85
+ font-size: 1.125rem;
86
+ line-height: 1.688rem;
87
+
88
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
89
+ font-size: 1.25rem;
90
+ line-height: 1.875rem;
91
+ }
92
+ }
93
+
94
+ @mixin preamble {
95
+ font-size: 1.25rem;
96
+ line-height: 1.625rem;
97
+ font-weight: 400;
98
+
99
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
100
+ font-size: 1.5rem;
101
+ line-height: 1.938rem;
102
+ }
103
+ }
104
+
105
+ @mixin legend {
106
+ font-size: 1.125rem;
107
+ line-height: 1.438rem;
108
+ font-weight: 600;
109
+
110
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
111
+ font-size: 1.5rem;
112
+ line-height: 1.938rem;
113
+ }
114
+ }
115
+
116
+ @mixin label {
117
+ font-size: 1.125rem;
118
+ line-height: 1.375rem;
119
+ font-weight: 600;
120
+
121
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
122
+ font-size: 1.25rem;
123
+ line-height: 1.625rem;
124
+ }
125
+ }
126
+
127
+ @mixin label-subdued {
128
+ font-size: 1.125rem;
129
+ line-height: 1.375rem;
130
+ font-weight: 400;
131
+
132
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
133
+ font-size: 1.25rem;
134
+ line-height: 1.625rem;
135
+ }
136
+ }
137
+
138
+ @mixin sublabel {
139
+ font-size: 1rem;
140
+ line-height: 1.2rem;
141
+ font-weight: 600;
142
+
143
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
144
+ font-size: 1.125rem;
145
+ line-height: 1.463rem;
146
+ }
147
+ }
148
+
149
+ @mixin sublabel-subdued {
150
+ font-size: 1rem;
151
+ line-height: 1.2rem;
152
+ font-weight: 400;
153
+
154
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
155
+ font-size: 1.125rem;
156
+ line-height: 1.463rem;
157
+ }
158
+ }
159
+
160
+ @mixin compact-data {
161
+ font-size: 1rem;
162
+ line-height: 1.5rem;
163
+
164
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
165
+ font-size: 1.125rem;
166
+ line-height: 1.4375rem;
167
+ }
168
+ }
169
+
170
+ @mixin table-cell {
171
+ font-size: 1.125rem;
172
+ line-height: 1.4375rem;
173
+ }
174
+
175
+ @mixin image-caption {
176
+ font-size: 1rem;
177
+ line-height: 1.5rem;
178
+ }
179
+
180
+ @mixin image-credit {
181
+ font-size: 0.75rem;
182
+ line-height: 1rem;
183
+ }
184
+
185
+ @mixin status-timestamp {
186
+ font-size: 1.125rem;
187
+ line-height: 1.25rem;
188
+ }
189
+
190
+ @mixin input-text {
191
+ font-size: 1.125rem;
192
+ line-height: 1.688rem;
193
+
194
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
195
+ line-height: 1.4375rem;
196
+ }
197
+ }
198
+
199
+ @mixin input-text-large {
200
+ font-size: 1.125rem;
201
+ line-height: 1.563rem;
202
+
203
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
204
+ font-size: 1.25rem;
205
+ line-height: 1.75rem;
206
+ }
207
+ }
208
+
209
+ @mixin text-list {
210
+ font-size: 1.125rem;
211
+ line-height: 1.375rem;
212
+ font-weight: 400;
213
+
214
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
215
+ font-size: 1.25rem;
216
+ line-height: 1.625rem;
217
+ }
218
+ }
219
+
220
+ @mixin definition-list-type {
221
+ font-size: 1.125rem;
222
+ line-height: 1.375rem;
223
+ font-weight: 600;
224
+
225
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
226
+ font-size: 1.25rem;
227
+ line-height: 1.625rem;
228
+ }
229
+ }
230
+
231
+ @mixin definition-list-data {
232
+ font-size: 1.125rem;
233
+ line-height: 1.375rem;
234
+ font-weight: 400;
235
+
236
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
237
+ font-size: 1.25rem;
238
+ line-height: 1.625rem;
239
+ }
240
+ }
241
+
242
+ @mixin help-text {
243
+ font-size: 1rem;
244
+ line-height: 1.5rem;
245
+ font-weight: 400;
246
+
247
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
248
+ font-size: 1.125rem;
249
+ line-height: 1.575rem;
250
+ }
251
+ }
252
+
253
+ @mixin help-trigger-text {
254
+ font-size: 1rem;
255
+ line-height: 1.2rem;
256
+ font-weight: 600;
257
+
258
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
259
+ font-size: 1.125rem;
260
+ line-height: 1.463rem;
261
+ }
262
+ }
@@ -0,0 +1,8 @@
1
+ $font-size-xs: 1rem; // 16px
2
+ $font-size-sm: 1.125rem; // 18px
3
+ $font-size-md: 1.25rem; // 20px
4
+ $font-size-lg: 1.5rem; // 24px
5
+ $lineheight-size-xs: 1.5rem; // 24px
6
+ $lineheight-size-sm: 1.75rem; // 28px
7
+ $lineheight-size-md: 1.875rem; // 30px
8
+ $lineheight-size-lg: 2rem; // 32px
@@ -0,0 +1,155 @@
1
+ /* latin */
2
+ @font-face {
3
+ font-family: 'Source Sans Pro';
4
+ font-style: normal;
5
+ font-weight: 200;
6
+ font-display: swap;
7
+ src:
8
+ local('Source Sans Pro Extra Light'),
9
+ local('SourceSansPro-ExtraLight'),
10
+ url('../fonts/source-sans-pro-200-extralight.woff') format('woff'),
11
+ url('../fonts/source-sans-pro-200-extralight.woff2') format('woff2');
12
+ }
13
+
14
+ /* latin */
15
+ @font-face {
16
+ font-family: 'Source Sans Pro';
17
+ font-style: italic;
18
+ font-weight: 200;
19
+ font-display: swap;
20
+ src:
21
+ local('Source Sans Pro Extra Light Italic'),
22
+ local('SourceSansPro-ExtraLightItalic'),
23
+ url('../fonts/source-sans-pro-200-extralight-italic.woff') format('woff'),
24
+ url('../fonts/source-sans-pro-200-extralight-italic.woff2') format('woff2');
25
+ }
26
+
27
+ /* latin */
28
+ @font-face {
29
+ font-family: 'Source Sans Pro';
30
+ font-style: normal;
31
+ font-weight: 300;
32
+ font-display: swap;
33
+ src:
34
+ local('Source Sans Pro Light'),
35
+ local('SourceSansPro-Light'),
36
+ url('../fonts/source-sans-pro-300-light.woff') format('woff'),
37
+ url('../fonts/source-sans-pro-300-light.woff2') format('woff2');
38
+ }
39
+
40
+ /* latin */
41
+ @font-face {
42
+ font-family: 'Source Sans Pro';
43
+ font-style: italic;
44
+ font-weight: 300;
45
+ font-display: swap;
46
+ src:
47
+ local('Source Sans Pro Light Italic'),
48
+ local('SourceSansPro-LightItalic'),
49
+ url('../fonts/source-sans-pro-300-light-italic.woff') format('woff'),
50
+ url('../fonts/source-sans-pro-300-light-italic.woff2') format('woff2');
51
+ }
52
+
53
+ /* latin */
54
+ @font-face {
55
+ font-family: 'Source Sans Pro';
56
+ font-style: normal;
57
+ font-weight: 400;
58
+ font-display: swap;
59
+ src:
60
+ local('Source Sans Pro Regular'),
61
+ local('SourceSansPro-Regular'),
62
+ url('../fonts/source-sans-pro-400-regular.woff') format('woff'),
63
+ url('../fonts/source-sans-pro-400-regular.woff2') format('woff2');
64
+ }
65
+
66
+ /* latin */
67
+ @font-face {
68
+ font-family: 'Source Sans Pro';
69
+ font-style: italic;
70
+ font-weight: 400;
71
+ font-display: swap;
72
+ src:
73
+ local('Source Sans Pro Italic'),
74
+ local('SourceSansPro-Italic'),
75
+ url('../fonts/source-sans-pro-400-regular-italic.woff') format('woff'),
76
+ url('../fonts/source-sans-pro-400-regular-italic.woff2') format('woff2');
77
+ }
78
+
79
+ /* latin */
80
+ @font-face {
81
+ font-family: 'Source Sans Pro';
82
+ font-style: normal;
83
+ font-weight: 600;
84
+ font-display: swap;
85
+ src:
86
+ local('Source Sans Pro SemiBold'),
87
+ local('SourceSansPro-SemiBold'),
88
+ url('../fonts/source-sans-pro-600-semibold.woff') format('woff'),
89
+ url('../fonts/source-sans-pro-600-semibold.woff2') format('woff2');
90
+ }
91
+
92
+ /* latin */
93
+ @font-face {
94
+ font-family: 'Source Sans Pro';
95
+ font-style: italic;
96
+ font-weight: 600;
97
+ font-display: swap;
98
+ src:
99
+ local('Source Sans Pro SemiBold Italic'),
100
+ local('SourceSansPro-SemiBoldItalic'),
101
+ url('../fonts/source-sans-pro-600-semibold-italic.woff') format('woff'),
102
+ url('../fonts/source-sans-pro-600-semibold-italic.woff2') format('woff2');
103
+ }
104
+
105
+ /* latin */
106
+ @font-face {
107
+ font-family: 'Source Sans Pro';
108
+ font-style: normal;
109
+ font-weight: 700;
110
+ font-display: swap;
111
+ src:
112
+ local('Source Sans Pro Bold'),
113
+ local('SourceSansPro-Bold'),
114
+ url('../fonts/source-sans-pro-700-bold.woff') format('woff'),
115
+ url('../fonts/source-sans-pro-700-bold.woff2') format('woff2');
116
+ }
117
+
118
+ /* latin */
119
+ @font-face {
120
+ font-family: 'Source Sans Pro';
121
+ font-style: italic;
122
+ font-weight: 700;
123
+ font-display: swap;
124
+ src:
125
+ local('Source Sans Pro Bold Italic'),
126
+ local('SourceSansPro-BoldItalic'),
127
+ url('../fonts/source-sans-pro-700-bold-italic.woff') format('woff'),
128
+ url('../fonts/source-sans-pro-700-bold-italic.woff2') format('woff2');
129
+ }
130
+
131
+ /* latin */
132
+ @font-face {
133
+ font-family: 'Source Sans Pro';
134
+ font-style: normal;
135
+ font-weight: 900;
136
+ font-display: swap;
137
+ src:
138
+ local('Source Sans Pro Black'),
139
+ local('SourceSansPro-Black'),
140
+ url('../fonts/source-sans-pro-900-black.woff') format('woff'),
141
+ url('../fonts/source-sans-pro-900-black.woff2') format('woff2');
142
+ }
143
+
144
+ /* latin */
145
+ @font-face {
146
+ font-family: 'Source Sans Pro';
147
+ font-style: italic;
148
+ font-weight: 900;
149
+ font-display: swap;
150
+ src:
151
+ local('Source Sans Pro Black Italic'),
152
+ local('SourceSansPro-BlackItalic'),
153
+ url('../fonts/source-sans-pro-900-black-italic.woff') format('woff'),
154
+ url('../fonts/source-sans-pro-900-black-italic.woff2') format('woff2');
155
+ }
@@ -0,0 +1,6 @@
1
+ $enable-deprecation-messages: true;
2
+
3
+ @import './bootstrap/scss/vendor/rfs';
4
+ @import './bootstrap/scss/mixins/deprecate';
5
+ @import './bootstrap/scss/mixins/breakpoints';
6
+ @import './bootstrap/scss/mixins/grid';
@@ -0,0 +1,8 @@
1
+ $icon-sizes: (
2
+ xxs: 24px,
3
+ xs: 38px,
4
+ sm: 48px,
5
+ md: 64px,
6
+ lg: 80px,
7
+ xl: 130px,
8
+ );
@@ -0,0 +1,139 @@
1
+ @use 'sass:map';
2
+ @use './palette' as palette;
3
+ @use './spacers' as spacers;
4
+ @use './font-settings' as font-settings;
5
+ @use './breakpoints' as breakpoints;
6
+
7
+ @mixin input-wrapper {
8
+ width: 100%;
9
+ }
10
+
11
+ @mixin input-container {
12
+ display: flex;
13
+ font-size: font-settings.$font-size-sm;
14
+ width: 100%;
15
+ border: 2px solid palette.$neutral700;
16
+ outline: none;
17
+ background: palette.$white;
18
+
19
+ &:focus-within {
20
+ background: palette.$white;
21
+ border-color: palette.$neutral900;
22
+ box-shadow: 0 0 0 2px palette.$neutral900;
23
+ }
24
+
25
+ &:hover {
26
+ background: palette.$neutral50;
27
+ border-color: palette.$neutral700;
28
+ box-shadow: 0 0 0 1px palette.$neutral700;
29
+
30
+ &:focus-within {
31
+ border-color: palette.$black;
32
+ box-shadow: 0 0 0 2px palette.$black;
33
+ }
34
+ }
35
+
36
+ &--on-blueberry {
37
+ border-color: palette.$blueberry500;
38
+
39
+ &:hover {
40
+ background: palette.$blueberry50;
41
+ box-shadow: 0 0 0 1px palette.$blueberry500;
42
+ border-color: palette.$blueberry500;
43
+ }
44
+
45
+ &:focus-within {
46
+ background: palette.$white;
47
+ border-color: palette.$neutral900;
48
+ box-shadow: 0 0 0 2px palette.$neutral900;
49
+ }
50
+ }
51
+
52
+ &--on-dark {
53
+ border-color: palette.$blueberry900;
54
+
55
+ &:hover {
56
+ background: palette.$blueberry50;
57
+ border-color: palette.$blueberry900;
58
+ box-shadow: 0 0 0 1px palette.$blueberry900;
59
+ }
60
+
61
+ &:focus-within {
62
+ background: palette.$white;
63
+ border-color: palette.$neutral900;
64
+ box-shadow: 0 0 0 2px palette.$neutral900;
65
+ }
66
+ }
67
+
68
+ &--invalid {
69
+ border-color: palette.$cherry600;
70
+
71
+ &:hover {
72
+ background: palette.$cherry100;
73
+ border-color: palette.$cherry600;
74
+ box-shadow: 0 0 0 2px palette.$cherry600;
75
+ }
76
+
77
+ &:focus-within {
78
+ background: palette.$white;
79
+ border-color: palette.$neutral900;
80
+ box-shadow: 0 0 0 2px palette.$neutral900;
81
+ }
82
+ }
83
+
84
+ &--transparent {
85
+ background: transparent;
86
+
87
+ &:hover {
88
+ background: palette.$neutral100;
89
+ }
90
+
91
+ &:focus-within {
92
+ background: palette.$white;
93
+ }
94
+ }
95
+ &--transparent#{&}--on-blueberry {
96
+ &:hover {
97
+ background: palette.$blueberry100;
98
+ }
99
+
100
+ &:focus-within {
101
+ background: palette.$white;
102
+ }
103
+ }
104
+
105
+ &--disabled {
106
+ background: transparent;
107
+ border-color: palette.$neutral600;
108
+ border-style: dashed;
109
+ color: palette.$neutral700;
110
+
111
+ &:hover {
112
+ background: transparent;
113
+ border-color: palette.$neutral600;
114
+ box-shadow: none;
115
+ }
116
+ }
117
+
118
+ &__input {
119
+ line-height: 1.625rem;
120
+ font-family: inherit;
121
+ font-size: font-settings.$font-size-sm;
122
+ border: none;
123
+ outline: none;
124
+ background-color: transparent;
125
+ width: 100%;
126
+
127
+ @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
128
+ font-size: font-settings.$font-size-md;
129
+ }
130
+
131
+ &::placeholder {
132
+ color: palette.$neutral500;
133
+ }
134
+
135
+ &--disabled {
136
+ color: palette.$neutral700;
137
+ }
138
+ }
139
+ }