@mrfylke/contact-form 0.1.5 → 0.1.7

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 (40) hide show
  1. package/README.md +17 -0
  2. package/lib/components/button/button.module.css +151 -139
  3. package/lib/components/checkbox/checkbox.module.css +40 -37
  4. package/lib/components/error-message/error-message.module.css +2 -2
  5. package/lib/components/external-link-page.module.css +15 -15
  6. package/lib/components/form/fieldset/fieldset.module.css +15 -15
  7. package/lib/components/form/form-component-label/form-component-label.module.css +4 -4
  8. package/lib/components/form/form.module.css +324 -308
  9. package/lib/components/loading/loading.module.css +9 -9
  10. package/lib/components/section-card/section-card.module.css +10 -10
  11. package/lib/contact.module.css +37 -36
  12. package/lib/error-content/error-content.module.css +7 -7
  13. package/lib/layouts/container.module.css +10 -10
  14. package/lib/layouts/layout.module.css +46 -45
  15. package/lib/modules/config/types.d.ts +2 -32
  16. package/lib/modules/config/types.d.ts.map +1 -1
  17. package/lib/modules/transport-mode/filter/filter.module.css +51 -49
  18. package/lib/modules/transport-mode/icon/icon.module.css +14 -14
  19. package/lib/success-content/success-content.module.css +7 -7
  20. package/lib/translations/modules/index.d.ts +0 -1
  21. package/lib/translations/modules/index.d.ts.map +1 -1
  22. package/lib/translations/modules/index.js +1 -3
  23. package/package.json +2 -3
  24. package/lib/layouts/contact-form-footer.d.ts +0 -5
  25. package/lib/layouts/contact-form-footer.d.ts.map +0 -1
  26. package/lib/layouts/contact-form-footer.js +0 -75
  27. package/lib/layouts/contact-form-header.d.ts +0 -9
  28. package/lib/layouts/contact-form-header.d.ts.map +0 -1
  29. package/lib/layouts/contact-form-header.js +0 -50
  30. package/lib/layouts/footer.module.css +0 -109
  31. package/lib/layouts/header.module.css +0 -39
  32. package/lib/translations/modules/layout.d.ts +0 -73
  33. package/lib/translations/modules/layout.d.ts.map +0 -1
  34. package/lib/translations/modules/layout.js +0 -106
  35. package/lib/utils/use-localstorage.d.ts +0 -2
  36. package/lib/utils/use-localstorage.d.ts.map +0 -1
  37. package/lib/utils/use-localstorage.js +0 -40
  38. package/lib/utils/user-media-query.d.ts +0 -2
  39. package/lib/utils/user-media-query.d.ts.map +0 -1
  40. package/lib/utils/user-media-query.js +0 -36
@@ -3,571 +3,587 @@
3
3
  @value typo-body__m from "@atb-as/theme/lib/generated/typography.module.css";
4
4
 
5
5
  .container {
6
- composes: typo-body__s;
7
- display: flex;
8
- flex-direction: column;
9
- flex-wrap: wrap;
10
- gap: token('spacing.small');
11
- color: token('color.background.neutral.0.foreground.primary');
12
- background-color: token('color.background.neutral.0.background');
6
+ composes: typo-body__s;
7
+ display: flex;
8
+ flex-direction: column;
9
+ flex-wrap: wrap;
10
+ gap: token('spacing.small');
11
+ color: token('color.background.neutral.0.foreground.primary');
12
+ background-color: token('color.background.neutral.0.background');
13
13
  }
14
14
 
15
15
  .rowDisplay {
16
- flex-direction: row-reverse;
17
- justify-content: start;
18
- gap: token('spacing.small');
16
+ flex-direction: row-reverse;
17
+ justify-content: start;
18
+ gap: token('spacing.small');
19
19
  }
20
20
 
21
21
  .input {
22
- background: transparent;
23
- color: token('color.foreground.dynamic.primary');
22
+ background: transparent;
23
+ color: token('color.foreground.dynamic.primary');
24
24
 
25
- padding: token('spacing.small');
25
+ padding: token('spacing.small');
26
26
 
27
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
28
- border-radius: token('border.radius.small');
29
- width: 100%;
27
+ border: token('border.width.slim') solid
28
+ token('color.foreground.dynamic.primary');
29
+ border-radius: token('border.radius.small');
30
+ width: 100%;
30
31
  }
31
32
 
32
33
  .input:focus {
33
- outline: 0;
34
+ outline: 0;
34
35
  }
35
36
 
36
37
  .input::placeholder {
37
- color: token('color.foreground.dynamic.secondary');
38
- opacity: 1;
38
+ color: token('color.foreground.dynamic.secondary');
39
+ opacity: 1;
39
40
  }
40
41
 
41
42
  .input:disabled {
42
- cursor: not-allowed;
43
+ cursor: not-allowed;
43
44
  }
44
45
 
45
46
  .input:disabled::placeholder {
46
- color: token('color.foreground.dynamic.disabled');
47
+ color: token('color.foreground.dynamic.disabled');
47
48
  }
48
49
 
49
50
  .input:focus-within {
50
- outline: 0;
51
- box-shadow: inset 0 0 0 token('border.width.slim') token('color.interactive.2.outline.background');
51
+ outline: 0;
52
+ box-shadow: inset 0 0 0 token('border.width.slim')
53
+ token('color.interactive.2.outline.background');
52
54
  }
53
55
 
54
56
  .input__error {
55
- border-color: token('color.status.error.primary.background');
57
+ border-color: token('color.status.error.primary.background');
56
58
  }
57
59
 
58
60
  /* radio */
59
61
  .input__radio {
60
- clip: rect(0 0 0 0);
61
- clip-path: inset(100%);
62
- height: 1px;
63
- overflow: hidden;
64
- position: absolute;
65
- white-space: nowrap;
66
- width: 1px;
67
- display: block;
62
+ clip: rect(0 0 0 0);
63
+ clip-path: inset(100%);
64
+ height: 1px;
65
+ overflow: hidden;
66
+ position: absolute;
67
+ white-space: nowrap;
68
+ width: 1px;
69
+ display: block;
68
70
  }
69
71
 
70
72
  .input__radio:focus + .label__radio .label__radioBox {
71
- outline: 2px solid token('color.interactive.2.outline.background');
72
- outline-offset: 2px;
73
+ outline: 2px solid token('color.interactive.2.outline.background');
74
+ outline-offset: 2px;
73
75
  }
74
76
 
75
77
  .label__radioBox:hover {
76
- background-color: token('color.interactive.2.hover.background');
77
- color: token('color.interactive.2.hover.foreground.primary');
78
+ background-color: token('color.interactive.2.hover.background');
79
+ color: token('color.interactive.2.hover.foreground.primary');
78
80
  }
79
81
 
80
82
  .label__radioBox {
81
- display: block;
82
- border-radius: 50%;
83
- height: 1.25rem;
84
- width: 1.25rem;
85
- --padding: 2px;
86
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
87
- padding: var(--padding);
88
- margin-right: token('spacing.medium');
83
+ display: block;
84
+ border-radius: 50%;
85
+ height: 1.25rem;
86
+ width: 1.25rem;
87
+ --padding: 2px;
88
+ border: token('border.width.slim') solid
89
+ token('color.foreground.dynamic.primary');
90
+ padding: var(--padding);
91
+ margin-right: token('spacing.medium');
89
92
  }
90
93
 
91
94
  .label__radioBox::after {
92
- content: '';
93
- display: block;
94
- height: calc(1rem - 2 * token('border.width.slim'));
95
- width: calc(1rem - 2 * token('border.width.slim'));
96
- border-radius: 50%;
97
- background: token('color.foreground.dynamic.primary');
95
+ content: '';
96
+ display: block;
97
+ height: calc(1rem - 2 * token('border.width.slim'));
98
+ width: calc(1rem - 2 * token('border.width.slim'));
99
+ border-radius: 50%;
100
+ background: token('color.foreground.dynamic.primary');
98
101
 
99
- transition: transform 100ms ease-in;
100
- transform: scale(0);
102
+ transition: transform 100ms ease-in;
103
+ transform: scale(0);
101
104
  }
102
105
 
103
106
  .input__radio:checked + .label__radio .label__radioBox::after {
104
- transform: scale(1);
107
+ transform: scale(1);
105
108
  }
106
109
 
107
110
  .label__radio {
108
- display: flex;
109
- cursor: pointer;
111
+ display: flex;
112
+ cursor: pointer;
110
113
 
111
- background: token('color.background.neutral.0.background');
112
- color: token('color.background.neutral.0.foreground.primary');
114
+ background: token('color.background.neutral.0.background');
115
+ color: token('color.background.neutral.0.foreground.primary');
113
116
 
114
- border-radius: token('border.radius.regular');
117
+ border-radius: token('border.radius.regular');
115
118
 
116
- border: token('border.width.slim') solid transparent;
119
+ border: token('border.width.slim') solid transparent;
117
120
 
118
- padding: token('spacing.small') 0;
121
+ padding: token('spacing.small') 0;
119
122
  }
120
123
 
121
124
  .label__info {
122
- display: flex;
123
- align-items: center;
124
- gap: token('spacing.medium');
125
- margin: token('spacing.small');
126
- margin-left: token('spacing.large');
127
- padding: token('spacing.small');
128
- background: token('color.background.neutral.1.background');
125
+ display: flex;
126
+ align-items: center;
127
+ gap: token('spacing.medium');
128
+ margin: token('spacing.small');
129
+ margin-left: token('spacing.large');
130
+ padding: token('spacing.small');
131
+ background: token('color.background.neutral.1.background');
129
132
  }
130
133
 
131
134
  .label_container {
132
- display: flex;
133
- justify-content: space-between;
135
+ display: flex;
136
+ justify-content: space-between;
134
137
  }
135
138
 
136
139
  /* Icon button */
137
140
  .iconButton {
138
- background: transparent;
139
- padding: 0;
140
- cursor: pointer;
141
- display: flex;
142
- align-items: center;
143
- border: none;
144
- border-radius: 50%;
141
+ background: transparent;
142
+ padding: 0;
143
+ cursor: pointer;
144
+ display: flex;
145
+ align-items: center;
146
+ border: none;
147
+ border-radius: 50%;
145
148
  }
146
149
 
147
150
  .iconButton:focus {
148
- outline: 2px solid token('color.interactive.2.outline.background');
149
- outline-offset: 2px;
151
+ outline: 2px solid token('color.interactive.2.outline.background');
152
+ outline-offset: 2px;
150
153
  }
151
154
 
152
155
  .iconButton:hover {
153
- background-color: token('color.interactive.2.hover.background');
154
- color: token('color.interactive.2.hover.foreground.primary');
156
+ background-color: token('color.interactive.2.hover.background');
157
+ color: token('color.interactive.2.hover.foreground.primary');
155
158
  }
156
159
 
157
160
  /* textare */
158
161
  .textarea_container {
159
- display: flex;
160
- flex-direction: column;
161
- gap: token('spacing.small');
162
+ display: flex;
163
+ flex-direction: column;
164
+ gap: token('spacing.small');
162
165
  }
163
166
 
164
167
  .textarea {
165
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
166
- border-radius: token('border.radius.small');
167
- padding: token('spacing.small');
168
- width: 100%;
169
- min-height: 6rem;
170
- font-family: var(--font-main) !important;
171
- font-size: 1rem !important;
172
- line-height: var(--baseTypo-body__m-lineHeight, 1.25rem) !important;
173
- letter-spacing: var(
174
- --baseTypo-body__m-letterSpacing,
175
- 0.03125rem
176
- ) !important;
168
+ border: token('border.width.slim') solid
169
+ token('color.foreground.dynamic.primary');
170
+ border-radius: token('border.radius.small');
171
+ padding: token('spacing.small');
172
+ width: 100%;
173
+ min-height: 6rem;
174
+ font-family: var(--font-main) !important;
175
+ font-size: 1rem !important;
176
+ line-height: var(--baseTypo-body__m-lineHeight, 1.25rem) !important;
177
+ letter-spacing: var(--baseTypo-body__m-letterSpacing, 0.03125rem) !important;
177
178
  }
178
179
 
179
180
  /** file input */
180
181
  .file_input__container {
181
- display: flex;
182
- flex-direction: column;
183
- gap: token('spacing.small');
182
+ display: flex;
183
+ flex-direction: column;
184
+ gap: token('spacing.small');
184
185
  }
185
186
 
186
187
  .input__file {
187
- opacity: 0;
188
- display: none;
189
- width: 100%;
190
- height: 100%;
191
- cursor: pointer;
188
+ opacity: 0;
189
+ display: none;
190
+ width: 100%;
191
+ height: 100%;
192
+ cursor: pointer;
192
193
  }
193
194
 
194
195
  .label__file {
195
- display: flex;
196
- gap: token('spacing.small');
197
- align-items: center;
198
- background-color: token('color.background.neutral.1.background');
199
- color: token('color.foreground.dynamic.primary');
200
- padding: token('spacing.small');
201
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
202
- border-radius: token('border.radius.small');
203
- cursor: pointer;
196
+ display: flex;
197
+ gap: token('spacing.small');
198
+ align-items: center;
199
+ background-color: token('color.background.neutral.1.background');
200
+ color: token('color.foreground.dynamic.primary');
201
+ padding: token('spacing.small');
202
+ border: token('border.width.slim') solid
203
+ token('color.foreground.dynamic.primary');
204
+ border-radius: token('border.radius.small');
205
+ cursor: pointer;
204
206
  }
205
207
 
206
208
  .label__file:focus {
207
- outline: 0;
208
- box-shadow: inset 0 0 0 token('border.width.slim') token('color.interactive.2.outline.background');
209
+ outline: 0;
210
+ box-shadow: inset 0 0 0 token('border.width.slim')
211
+ token('color.interactive.2.outline.background');
209
212
  }
210
213
 
211
214
  .label__file:hover {
212
- background-color: token('color.interactive.2.hover.background');
213
- color: token('color.interactive.2.hover.foreground.primary');
215
+ background-color: token('color.interactive.2.hover.background');
216
+ color: token('color.interactive.2.hover.foreground.primary');
214
217
  }
215
218
 
216
219
  .fileList {
217
- display: flex;
218
- flex-direction: column;
219
- gap: token('spacing.small');
220
- padding: token('spacing.small') 0;
220
+ display: flex;
221
+ flex-direction: column;
222
+ gap: token('spacing.small');
223
+ padding: token('spacing.small') 0;
221
224
  }
222
225
 
223
226
  .fileItem {
224
- display: flex;
225
- align-items: center;
226
- gap: token('spacing.small');
227
+ display: flex;
228
+ align-items: center;
229
+ gap: token('spacing.small');
227
230
  }
228
231
 
229
232
  /* modal */
230
233
  .modal_wrapper {
231
- position: fixed;
232
- z-index: 200;
233
- top: 0;
234
- left: 0;
235
- bottom: 0;
236
- right: 0;
237
- background: rgba(0, 0, 0, 0.5);
238
- display: flex;
239
- flex-direction: column;
240
- justify-content: center;
241
- align-items: center;
234
+ position: fixed;
235
+ z-index: 200;
236
+ top: 0;
237
+ left: 0;
238
+ bottom: 0;
239
+ right: 0;
240
+ background: rgba(0, 0, 0, 0.5);
241
+ display: flex;
242
+ flex-direction: column;
243
+ justify-content: center;
244
+ align-items: center;
242
245
  }
243
246
 
244
247
  .modal_content {
245
- position: relative;
246
- display: flex;
247
- flex-direction: column;
248
- max-width: 32rem;
249
- padding: token('spacing.large');
250
- border: token('border.width.medium') solid token('color.interactive.2.outline.background'); /* Use border property */
251
- box-shadow: inset 0 0 0 token('border.width.medium') token('color.interactive.2.outline.background');
252
- color: token('color.background.neutral.0.foreground.primary');
253
- background-color: token('color.background.neutral.0.background');
254
- border-radius: token('border.radius.regular');
248
+ position: relative;
249
+ display: flex;
250
+ flex-direction: column;
251
+ max-width: 32rem;
252
+ padding: token('spacing.large');
253
+ border: token('border.width.medium') solid
254
+ token('color.interactive.2.outline.background'); /* Use border property */
255
+ box-shadow: inset 0 0 0 token('border.width.medium')
256
+ token('color.interactive.2.outline.background');
257
+ color: token('color.background.neutral.0.foreground.primary');
258
+ background-color: token('color.background.neutral.0.background');
259
+ border-radius: token('border.radius.regular');
255
260
  }
256
261
 
257
262
  .modal_content > * + * {
258
- margin-top: token('spacing.small');
263
+ margin-top: token('spacing.small');
259
264
  }
260
265
 
261
266
  .modal_header {
262
- display: flex;
263
- justify-content: space-between;
267
+ display: flex;
268
+ justify-content: space-between;
264
269
  }
265
270
 
266
271
  .modal__rules_list {
267
- padding: token('spacing.medium');
268
- padding-left: token('spacing.xLarge');
272
+ padding: token('spacing.medium');
273
+ padding-left: token('spacing.xLarge');
269
274
  }
270
275
 
271
276
  .modal__rules_list > li {
272
- padding: token('spacing.xSmall') 0;
277
+ padding: token('spacing.xSmall') 0;
273
278
  }
274
279
 
275
280
  /* select and searchable-select*/
276
281
  .select__select_container,
277
282
  .searchable_select__comboBox {
278
- display: flex;
279
- flex-direction: column;
280
- gap: token('spacing.small');
283
+ display: flex;
284
+ flex-direction: column;
285
+ gap: token('spacing.small');
281
286
  }
282
287
 
283
288
  .searchable_select__input_container {
284
- position: relative;
285
- display: flex;
286
- align-items: center;
289
+ position: relative;
290
+ display: flex;
291
+ align-items: center;
287
292
  }
288
293
 
289
294
  .searchable_select__group,
290
295
  .searchable_select__disabled {
291
- display: flex;
292
- flex-direction: row;
293
- align-items: center;
294
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
295
- border-radius: token('border.radius.small');
296
+ display: flex;
297
+ flex-direction: row;
298
+ align-items: center;
299
+ border: token('border.width.slim') solid
300
+ token('color.foreground.dynamic.primary');
301
+ border-radius: token('border.radius.small');
296
302
  }
297
303
 
298
304
  .searchable_select__group:focus-within {
299
- outline: 0;
300
- box-shadow: inset 0 0 0 token('border.width.slim') token('color.interactive.2.outline.background');
305
+ outline: 0;
306
+ box-shadow: inset 0 0 0 token('border.width.slim')
307
+ token('color.interactive.2.outline.background');
301
308
  }
302
309
 
303
310
  .searchable_select__input {
304
- flex-grow: 2;
305
- border: none;
306
- outline: none;
307
- padding: token('spacing.small');
308
- background-color: transparent;
309
- color: token('color.background.neutral.2.foreground.primary');
311
+ flex-grow: 2;
312
+ border: none;
313
+ outline: none;
314
+ padding: token('spacing.small');
315
+ background-color: transparent;
316
+ color: token('color.background.neutral.2.foreground.primary');
310
317
  }
311
318
 
312
319
  .searchable_select__input_disabled {
313
- cursor: not-allowed;
320
+ cursor: not-allowed;
314
321
  }
315
322
 
316
323
  .searchable_select__input::placeholder {
317
- color: token('color.foreground.dynamic.secondary');
318
- opacity: 1;
324
+ color: token('color.foreground.dynamic.secondary');
325
+ opacity: 1;
319
326
  }
320
327
 
321
328
  .searchable_select__input:not(:focus):placeholder-shown {
322
- color: token('color.foreground.dynamic.secondary');
323
- font-style: italic;
324
- opacity: 0.7;
329
+ color: token('color.foreground.dynamic.secondary');
330
+ font-style: italic;
331
+ opacity: 0.7;
325
332
  }
326
333
 
327
334
  .searchable_select__button {
328
- display: flex;
329
- border: none;
330
- padding: token('spacing.small');
331
- background-color: transparent;
335
+ display: flex;
336
+ border: none;
337
+ padding: token('spacing.small');
338
+ background-color: transparent;
332
339
  }
333
340
 
334
341
  .searchable_select__button:disabled {
335
- cursor: not-allowed;
342
+ cursor: not-allowed;
336
343
  }
337
344
 
338
345
  .select__popover,
339
346
  .searchable_select__popover {
340
- overflow: auto;
341
- max-height: 16rem;
342
- width: var(--trigger-width);
343
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
344
- border-radius: token('border.radius.small');
345
- color: token('color.background.neutral.0.foreground.primary');
346
- background: token('color.background.neutral.0.background');
347
- animation: fadeIn 0.2s;
348
- padding: token('spacing.small');
349
- margin-bottom: token('spacing.small');
347
+ overflow: auto;
348
+ max-height: 16rem;
349
+ width: var(--trigger-width);
350
+ border: token('border.width.slim') solid
351
+ token('color.foreground.dynamic.primary');
352
+ border-radius: token('border.radius.small');
353
+ color: token('color.background.neutral.0.foreground.primary');
354
+ background: token('color.background.neutral.0.background');
355
+ animation: fadeIn 0.2s;
356
+ padding: token('spacing.small');
357
+ margin-bottom: token('spacing.small');
350
358
  }
351
359
 
352
360
  @keyframes fadeIn {
353
- from {
354
- opacity: 0;
355
- }
356
- to {
357
- opacity: 1;
358
- }
361
+ from {
362
+ opacity: 0;
363
+ }
364
+ to {
365
+ opacity: 1;
366
+ }
359
367
  }
360
368
 
361
369
  .select__listBox,
362
370
  .searchable_select__listBox {
363
- max-height: 16rem;
364
- overflow-y: auto;
365
- outline: none;
371
+ max-height: 16rem;
372
+ overflow-y: auto;
373
+ outline: none;
366
374
  }
367
375
 
368
376
  .searchable_select__truncate {
369
- text-overflow: ellipsis;
370
- overflow: hidden;
371
- white-space: nowrap;
377
+ text-overflow: ellipsis;
378
+ overflow: hidden;
379
+ white-space: nowrap;
372
380
  }
373
381
 
374
382
  .select__listBoxItem,
375
383
  .searchable_select__listBoxItem {
376
- display: flex;
377
- align-items: center;
378
- cursor: default;
379
- color: token('color.background.neutral.0.foreground.primary');
380
- border-radius: token('border.radius.small');
381
- border-bottom: 1px solid token('color.background.neutral.2.background');
382
- z-index: 1;
384
+ display: flex;
385
+ align-items: center;
386
+ cursor: default;
387
+ color: token('color.background.neutral.0.foreground.primary');
388
+ border-radius: token('border.radius.small');
389
+ border-bottom: 1px solid token('color.background.neutral.2.background');
390
+ z-index: 1;
383
391
  }
384
392
 
385
393
  .select__item,
386
394
  .searchable_select__item {
387
- width: 100%;
388
- display: flex;
389
- justify-content: space-between;
390
- align-items: center;
391
- gap: token('spacing.small');
392
- padding: token('spacing.small');
395
+ width: 100%;
396
+ display: flex;
397
+ justify-content: space-between;
398
+ align-items: center;
399
+ gap: token('spacing.small');
400
+ padding: token('spacing.small');
393
401
  }
394
402
 
395
403
  .select__item:active,
396
404
  .searchable_select__item:active {
397
- background-color: token('color.interactive.3.active.background');
398
- color: token('color.interactive.3.active.foreground.primary');
399
- z-index: 2;
405
+ background-color: token('color.interactive.3.active.background');
406
+ color: token('color.interactive.3.active.foreground.primary');
407
+ z-index: 2;
400
408
  }
401
409
 
402
410
  .select__highlight,
403
411
  .searchable_select__highlight {
404
- position: relative;
405
- border-radius: token('border.radius.small');
406
- background-color: token('color.interactive.2.active.background');
407
- color: token('color.interactive.2.active.foreground.primary');
408
- z-index: 2;
412
+ position: relative;
413
+ border-radius: token('border.radius.small');
414
+ background-color: token('color.interactive.2.active.background');
415
+ color: token('color.interactive.2.active.foreground.primary');
416
+ z-index: 2;
409
417
  }
410
418
 
411
419
  .searchable_select__selected {
412
- position: relative;
413
- border-radius: token('border.radius.small');
414
- background-color: token('color.interactive.2.active.background');
415
- color: token('color.interactive.2.active.foreground.primary');
416
- z-index: 2;
420
+ position: relative;
421
+ border-radius: token('border.radius.small');
422
+ background-color: token('color.interactive.2.active.background');
423
+ color: token('color.interactive.2.active.foreground.primary');
424
+ z-index: 2;
417
425
  }
418
426
 
419
427
  .select__button {
420
- width: 100%;
421
- display: flex;
422
- justify-content: space-between;
423
- align-items: center;
424
- padding: token('spacing.small');
425
- color: token('color.foreground.dynamic.primary');
426
- background-color: transparent;
427
- border-radius: token('border.radius.small');
428
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
428
+ width: 100%;
429
+ display: flex;
430
+ justify-content: space-between;
431
+ align-items: center;
432
+ padding: token('spacing.small');
433
+ color: token('color.foreground.dynamic.primary');
434
+ background-color: transparent;
435
+ border-radius: token('border.radius.small');
436
+ border: token('border.width.slim') solid
437
+ token('color.foreground.dynamic.primary');
429
438
  }
430
439
 
431
440
  .select__button:disabled {
432
- cursor: not-allowed;
441
+ cursor: not-allowed;
433
442
  }
434
443
 
435
444
  .select__button:focus-within {
436
- outline: 0;
437
- box-shadow: inset 0 0 0 token('border.width.slim') token('color.interactive.2.outline.background');
445
+ outline: 0;
446
+ box-shadow: inset 0 0 0 token('border.width.slim')
447
+ token('color.interactive.2.outline.background');
438
448
  }
439
449
 
440
450
  .select__item:focus,
441
451
  .select__listBoxItem:focus {
442
- outline: 0;
443
- border-radius: token('border.radius.small');
452
+ outline: 0;
453
+ border-radius: token('border.radius.small');
444
454
  }
445
455
 
446
456
  .select__placholder {
447
- font-style: italic;
448
- opacity: 0.7;
449
- padding-right: token('spacing.small');
457
+ font-style: italic;
458
+ opacity: 0.7;
459
+ padding-right: token('spacing.small');
450
460
  }
451
461
 
452
462
  /* Time and date selector */
453
463
  .dateSelectorContainer,
454
464
  .timeSelectorContainer {
455
- display: flex;
456
- flex-direction: column;
457
- gap: token('spacing.small');
465
+ display: flex;
466
+ flex-direction: column;
467
+ gap: token('spacing.small');
458
468
  }
459
469
 
460
470
  .dateSelector,
461
471
  .timeSelector {
462
- display: contents;
463
- --height: 2.75rem;
464
- overflow: hidden;
465
- border-radius: token('border.radius.small');
472
+ display: contents;
473
+ --height: 2.75rem;
474
+ overflow: hidden;
475
+ border-radius: token('border.radius.small');
466
476
  }
467
477
 
468
478
  .dateSelector input[type='date'],
469
479
  .timeSelector input[type='time'] {
470
- height: var(--height);
471
- padding: token('spacing.medium');
472
- border: none;
473
- background-color: transparent;
474
- color: token('color.background.neutral.0.foreground.primary');
475
- flex: 1;
480
+ height: var(--height);
481
+ padding: token('spacing.medium');
482
+ border: none;
483
+ background-color: transparent;
484
+ color: token('color.background.neutral.0.foreground.primary');
485
+ flex: 1;
476
486
  }
477
487
 
478
488
  .dateSelectorInput,
479
489
  .timeSelectorInput {
480
- width: 100%;
481
- height: var(--height);
482
- display: flex;
483
- align-items: center;
484
- padding: token('spacing.medium');
485
- color: token('color.background.neutral.0.foreground.primary');
486
- border-radius: token('border.radius.small');
487
- border: token('border.width.slim') solid token('color.foreground.dynamic.primary');
490
+ width: 100%;
491
+ height: var(--height);
492
+ display: flex;
493
+ align-items: center;
494
+ padding: token('spacing.medium');
495
+ color: token('color.background.neutral.0.foreground.primary');
496
+ border-radius: token('border.radius.small');
497
+ border: token('border.width.slim') solid
498
+ token('color.foreground.dynamic.primary');
488
499
  }
489
500
 
490
501
  .dateSelectorInput:focus-within,
491
502
  .timeSelectorInput:focus-within {
492
- box-shadow: inset 0 0 0 token('border.width.slim') token('color.interactive.2.outline.background');
503
+ box-shadow: inset 0 0 0 token('border.width.slim')
504
+ token('color.interactive.2.outline.background');
493
505
  }
494
506
 
495
507
  .dateSelectorSegment:focus,
496
508
  .timeSelectorSegment:focus {
497
- border-radius: token('border.radius.small');
509
+ border-radius: token('border.radius.small');
498
510
  }
499
511
 
500
512
  .calendarSelectorGroup {
501
- display: flex;
502
- position: relative;
503
- width: 100%;
513
+ display: flex;
514
+ position: relative;
515
+ width: 100%;
504
516
  }
505
517
 
506
518
  .calendarButton {
507
- position: absolute;
508
- right: 0;
509
- border: none;
510
- cursor: pointer;
511
- background: none;
512
- margin: token('spacing.medium');
513
- border-radius: token('border.radius.small');
519
+ position: absolute;
520
+ right: 0;
521
+ border: none;
522
+ cursor: pointer;
523
+ background: none;
524
+ margin: token('spacing.medium');
525
+ border-radius: token('border.radius.small');
514
526
  }
515
527
 
516
528
  .calendarDialog {
517
- padding: token('spacing.xSmall');
518
- background: token('color.background.neutral.0.background');
519
- box-shadow: 0.2rem 0.2rem 0.3rem rgba(0, 0, 0, 0.15);
529
+ padding: token('spacing.xSmall');
530
+ background: token('color.background.neutral.0.background');
531
+ box-shadow: 0.2rem 0.2rem 0.3rem rgba(0, 0, 0, 0.15);
520
532
  }
521
533
 
522
534
  .calendarDialog__header {
523
- display: flex;
524
- gap: token('spacing.medium');
525
- justify-content: center;
526
- align-items: center;
527
- padding: token('spacing.small');
535
+ display: flex;
536
+ gap: token('spacing.medium');
537
+ justify-content: center;
538
+ align-items: center;
539
+ padding: token('spacing.small');
528
540
  }
529
541
 
530
542
  .calendarDialog__title {
531
- composes: typo-heading__m from '@atb-as/theme/lib/generated/typography.module.css';
543
+ composes: typo-heading__m from '@atb-as/theme/lib/generated/typography.module.css';
532
544
  }
533
545
 
534
546
  .calendarDialog__headerButtons {
535
- background: none;
536
- border: none;
537
- padding: token('spacing.xSmall') token('spacing.medium');
538
- cursor: pointer;
547
+ background: none;
548
+ border: none;
549
+ padding: token('spacing.xSmall') token('spacing.medium');
550
+ cursor: pointer;
539
551
  }
540
552
 
541
553
  .calendarGrid {
542
- width: 100%;
554
+ width: 100%;
543
555
  }
544
556
 
545
557
  .calendarGrid__cell {
546
- padding: token('spacing.xSmall') token('spacing.medium');
547
- cursor: pointer;
548
- text-align: center;
549
- border-radius: token('border.radius.small');
558
+ padding: token('spacing.xSmall') token('spacing.medium');
559
+ cursor: pointer;
560
+ text-align: center;
561
+ border-radius: token('border.radius.small');
550
562
  }
551
563
 
552
564
  .calendarGrid__cell[data-disabled] {
553
- opacity: 0.3;
554
- cursor: default;
565
+ opacity: 0.3;
566
+ cursor: default;
555
567
  }
556
568
 
557
569
  .calendarGrid__cell[data-selected] {
558
- background-color: token('color.interactive.2.active.background');
559
- color: token('color.interactive.2.active.foreground.primary');
560
- font-weight: bold;
561
- border-radius: token('border.radius.small');
570
+ background-color: token('color.interactive.2.active.background');
571
+ color: token('color.interactive.2.active.foreground.primary');
572
+ font-weight: bold;
573
+ border-radius: token('border.radius.small');
562
574
  }
563
575
 
564
- :global(.dark) .dateSelector input[type='date']::-webkit-calendar-picker-indicator,
565
- :global(.dark) .timeSelector input[type='time']::-webkit-calendar-picker-indicator {
566
- filter: invert(1);
576
+ :global(.dark)
577
+ .dateSelector
578
+ input[type='date']::-webkit-calendar-picker-indicator,
579
+ :global(.dark)
580
+ .timeSelector
581
+ input[type='time']::-webkit-calendar-picker-indicator {
582
+ filter: invert(1);
567
583
  }
568
584
 
569
585
  .required::after {
570
- content: '*';
571
- color: token('color.status.error.primary.background');
572
- margin-left: token('spacing.small');
586
+ content: '*';
587
+ color: token('color.status.error.primary.background');
588
+ margin-left: token('spacing.small');
573
589
  }