@maggioli-design-system/mds-input-select 1.0.2 → 2.0.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/dist/cjs/{index-de20f095.js → index-7175cc31.js} +29 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-input-select.cjs.entry.js +33 -5
- package/dist/cjs/mds-input-select.cjs.js +2 -2
- package/dist/collection/common/locale.js +20 -0
- package/dist/collection/components/mds-input-select/mds-input-select.css +309 -115
- package/dist/collection/components/mds-input-select/mds-input-select.js +149 -5
- package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +39 -0
- package/dist/collection/type/variant-file-format.js +20 -11
- package/dist/components/mds-input-select.js +40 -5
- package/dist/documentation.json +186 -4
- package/dist/esm/{index-635ef000.js → index-4672d19a.js} +29 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-input-select.entry.js +33 -5
- package/dist/esm/mds-input-select.js +3 -3
- package/dist/esm-es5/index-4672d19a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.js +1 -1
- package/dist/mds-input-select/mds-input-select.esm.js +1 -1
- package/dist/mds-input-select/mds-input-select.js +1 -1
- package/dist/mds-input-select/p-53c0eb18.js +2 -0
- package/dist/mds-input-select/p-6d6ca9a5.system.js +1 -0
- package/dist/mds-input-select/p-7a1ae946.entry.js +1 -0
- package/dist/mds-input-select/p-8ac51d55.system.entry.js +1 -0
- package/dist/mds-input-select/p-ea04eaa8.system.js +2 -0
- package/dist/stats.json +331 -44
- package/dist/types/common/locale.d.ts +14 -0
- package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +43 -0
- package/dist/types/components.d.ts +52 -2
- package/documentation.json +234 -6
- package/package.json +2 -1
- package/readme.md +35 -6
- package/src/common/locale.ts +31 -0
- package/src/components/mds-input-select/css/mds-input-variant.css +89 -0
- package/src/components/mds-input-select/mds-input-select.css +65 -13
- package/src/components/mds-input-select/mds-input-select.tsx +78 -4
- package/src/components/mds-input-select/readme.md +19 -6
- package/src/components/mds-input-select/test/mds-input-select.stories.tsx +42 -0
- package/src/components.d.ts +52 -2
- package/src/fixtures/icons.json +17 -0
- package/src/fixtures/iconsauce.json +9 -0
- package/src/type/variant-file-format.ts +20 -11
- package/www/build/mds-input-select.esm.js +1 -1
- package/www/build/mds-input-select.js +1 -1
- package/www/build/p-53c0eb18.js +2 -0
- package/www/build/p-6d6ca9a5.system.js +1 -0
- package/www/build/p-7a1ae946.entry.js +1 -0
- package/www/build/p-8ac51d55.system.entry.js +1 -0
- package/www/build/p-ea04eaa8.system.js +2 -0
- package/dist/esm-es5/index-635ef000.js +0 -1
- package/dist/mds-input-select/p-14820a52.js +0 -2
- package/dist/mds-input-select/p-a14abcd4.system.js +0 -2
- package/dist/mds-input-select/p-dce0cce7.system.entry.js +0 -1
- package/dist/mds-input-select/p-de98024b.entry.js +0 -1
- package/dist/mds-input-select/p-f24e4812.system.js +0 -1
- package/www/build/p-14820a52.js +0 -2
- package/www/build/p-a14abcd4.system.js +0 -2
- package/www/build/p-dce0cce7.system.entry.js +0 -1
- package/www/build/p-de98024b.entry.js +0 -1
- package/www/build/p-f24e4812.system.js +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@tailwind components;
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
3
5
|
*, ::before, ::after{
|
|
4
6
|
|
|
5
7
|
--tw-border-spacing-x: 0;
|
|
@@ -97,6 +99,8 @@
|
|
|
97
99
|
--tw-backdrop-sepia: ;
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
|
|
103
|
+
|
|
100
104
|
::backdrop{
|
|
101
105
|
|
|
102
106
|
--tw-border-spacing-x: 0;
|
|
@@ -205,182 +209,425 @@
|
|
|
205
209
|
|
|
206
210
|
width: 100%;
|
|
207
211
|
}
|
|
212
|
+
@tailwind utilities;
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:host{
|
|
216
|
+
|
|
217
|
+
min-height: 1.5rem;
|
|
218
|
+
|
|
219
|
+
font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
220
|
+
|
|
221
|
+
font-size: 1rem;
|
|
222
|
+
|
|
223
|
+
line-height: 1.5rem;
|
|
224
|
+
|
|
225
|
+
-webkit-font-smoothing: antialiased;
|
|
226
|
+
|
|
227
|
+
-moz-osx-font-smoothing: grayscale;
|
|
228
|
+
|
|
229
|
+
--mds-input-select-variant-color: var(--tone-neutral-01);
|
|
230
|
+
--mds-input-select-ring: 0 0 0 1px rgb(var(--mds-input-select-variant-color) / 0.1);
|
|
231
|
+
--mds-input-select-shadow: 0 1px 3px 0 rgb(var(--mds-input-select-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-select-variant-color) / 0.06);
|
|
232
|
+
--mds-input-select-arrow-icon-blur-background-color: transparent;
|
|
233
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--mds-input-select-variant-color) / 0.5);
|
|
234
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--mds-input-select-variant-color) / 0.5);
|
|
235
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--mds-input-select-variant-color));
|
|
236
|
+
--mds-input-select-arrow-icon-background-color: var(--mds-input-select-arrow-icon-blur-background-color);
|
|
237
|
+
--mds-input-select-arrow-icon-color: var(--mds-input-select-arrow-icon-blur-color);
|
|
238
|
+
|
|
239
|
+
color: rgb(var(--tone-neutral-02));
|
|
240
|
+
display: flex;
|
|
241
|
+
position: relative;
|
|
242
|
+
-webkit-user-select: none;
|
|
243
|
+
-moz-user-select: none;
|
|
244
|
+
user-select: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host( [required]:not([required="false"]):focus-within ) .icon{
|
|
248
|
+
|
|
249
|
+
--tw-translate-y: 0.375rem;
|
|
250
|
+
|
|
251
|
+
--tw-translate-x: 0.375rem;
|
|
252
|
+
|
|
253
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host( :hover ),
|
|
257
|
+
:host( :focus-within ) {
|
|
258
|
+
|
|
259
|
+
--mds-input-select-variant-color: var(--brand-maggioli-03);
|
|
260
|
+
--mds-input-select-ring: 0 0 0 3px rgb(var(--mds-input-select-variant-color) / 1);
|
|
261
|
+
--mds-input-select-shadow: 0 4px 6px -1px rgb(var(--mds-input-select-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-select-variant-color) / 0.06);
|
|
262
|
+
--mds-input-select-arrow-icon-background-color: var(--mds-input-select-arrow-icon-hover-background-color);
|
|
263
|
+
--mds-input-select-arrow-icon-color: var(--mds-input-select-arrow-icon-hover-color);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.input{
|
|
267
|
+
|
|
268
|
+
font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
269
|
+
|
|
270
|
+
font-size: 1rem;
|
|
271
|
+
|
|
272
|
+
line-height: 1.5rem;
|
|
273
|
+
|
|
274
|
+
-webkit-font-smoothing: antialiased;
|
|
275
|
+
|
|
276
|
+
-moz-osx-font-smoothing: grayscale;
|
|
277
|
+
|
|
278
|
+
margin: 0rem;
|
|
279
|
+
|
|
280
|
+
min-height: 3rem;
|
|
281
|
+
|
|
282
|
+
width: 100%;
|
|
283
|
+
|
|
284
|
+
border-radius: 0.5rem;
|
|
285
|
+
|
|
286
|
+
padding-top: 0.75rem;
|
|
287
|
+
|
|
288
|
+
padding-bottom: 0.75rem;
|
|
289
|
+
|
|
290
|
+
padding-left: 1rem;
|
|
291
|
+
|
|
292
|
+
padding-right: 3rem;
|
|
293
|
+
|
|
294
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
295
|
+
|
|
296
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
297
|
+
|
|
298
|
+
transition-duration: 300ms;
|
|
299
|
+
|
|
300
|
+
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
301
|
+
|
|
302
|
+
-webkit-appearance: none;
|
|
303
|
+
|
|
304
|
+
-moz-appearance: none;
|
|
305
|
+
|
|
306
|
+
appearance: none;
|
|
307
|
+
background-color: rgb(var(--tone-neutral));
|
|
308
|
+
border: 0;
|
|
309
|
+
box-shadow: var(--mds-input-select-ring), var(--mds-input-select-shadow);
|
|
310
|
+
box-sizing: border-box;
|
|
311
|
+
color: rgb(var(--tone-neutral-05));
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
text-overflow: ellipsis;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.input:hover,
|
|
318
|
+
.input:focus{
|
|
319
|
+
|
|
320
|
+
outline: 2px solid transparent;
|
|
321
|
+
|
|
322
|
+
outline-offset: 2px;
|
|
323
|
+
|
|
324
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
325
|
+
|
|
326
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
327
|
+
|
|
328
|
+
transition-duration: 300ms;
|
|
329
|
+
|
|
330
|
+
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
331
|
+
|
|
332
|
+
color: rgb(var(--tone-neutral-03));
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
:host([value]:not([value=""])) .input {
|
|
336
|
+
color: rgb(var(--tone-neutral-03));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.input--mds-input-select-selected {
|
|
340
|
+
color: rgb(var(--tone-neutral-02));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.input:disabled {
|
|
344
|
+
background-color: rgb(var(--tone-neutral-09));
|
|
345
|
+
opacity: 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
:host([disabled]:not([disabled="false"])) {
|
|
349
|
+
pointer-events: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:host([disabled]:not([disabled="false"])) .input {
|
|
353
|
+
pointer-events: none;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:host([disabled]:not([disabled="false"])) .icon{
|
|
357
|
+
|
|
358
|
+
--tw-translate-y: 0.5rem;
|
|
359
|
+
|
|
360
|
+
--tw-translate-x: 0.625rem;
|
|
361
|
+
|
|
362
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
363
|
+
|
|
364
|
+
fill: rgb(var(--tone-neutral-06));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.icon-container{
|
|
368
|
+
|
|
369
|
+
right: 1rem;
|
|
370
|
+
|
|
371
|
+
height: 3rem;
|
|
372
|
+
|
|
373
|
+
align-items: center;
|
|
374
|
+
color: inherit;
|
|
375
|
+
display: flex;
|
|
376
|
+
pointer-events: none;
|
|
377
|
+
position: absolute;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.icon{
|
|
381
|
+
|
|
382
|
+
border-radius: 9999px;
|
|
383
|
+
|
|
384
|
+
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
385
|
+
|
|
386
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
387
|
+
|
|
388
|
+
transition-duration: 200ms;
|
|
389
|
+
|
|
390
|
+
background-color: var(--mds-input-select-arrow-icon-background-color, rgb(var(--brand-maggioli-09)));
|
|
391
|
+
fill: var(--mds-input-select-arrow-icon-color, rgb(var(--brand-maggioli-04)));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.option-container {
|
|
395
|
+
display: none;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@container (max-width: 210px) {
|
|
399
|
+
:host .tip__content,
|
|
400
|
+
:host(:focus-within) .tip__content {
|
|
401
|
+
grid-template-columns: 0fr;
|
|
402
|
+
opacity: 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
:host .tip {
|
|
406
|
+
padding-left: 0;
|
|
407
|
+
padding-right: 0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
:host {
|
|
411
|
+
|
|
412
|
+
--mds-input-select-background: rgb(var(--brand-maggioli-07));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.visible{
|
|
417
|
+
|
|
418
|
+
visibility: visible;
|
|
419
|
+
}
|
|
420
|
+
|
|
208
421
|
.static{
|
|
209
422
|
|
|
210
423
|
position: static;
|
|
211
424
|
}
|
|
425
|
+
|
|
212
426
|
.fixed{
|
|
213
427
|
|
|
214
428
|
position: fixed;
|
|
215
429
|
}
|
|
430
|
+
|
|
216
431
|
.absolute{
|
|
217
432
|
|
|
218
433
|
position: absolute;
|
|
219
434
|
}
|
|
435
|
+
|
|
220
436
|
.border{
|
|
221
437
|
|
|
222
438
|
border-width: 1px;
|
|
223
439
|
}
|
|
440
|
+
|
|
224
441
|
.bg-label-amaranth-10{
|
|
225
442
|
|
|
226
443
|
--tw-bg-opacity: 1;
|
|
227
444
|
|
|
228
445
|
background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
|
|
229
446
|
}
|
|
447
|
+
|
|
230
448
|
.bg-label-aqua-10{
|
|
231
449
|
|
|
232
450
|
--tw-bg-opacity: 1;
|
|
233
451
|
|
|
234
452
|
background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
|
|
235
453
|
}
|
|
454
|
+
|
|
236
455
|
.bg-label-blue-10{
|
|
237
456
|
|
|
238
457
|
--tw-bg-opacity: 1;
|
|
239
458
|
|
|
240
459
|
background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
|
|
241
460
|
}
|
|
461
|
+
|
|
242
462
|
.bg-label-green-10{
|
|
243
463
|
|
|
244
464
|
--tw-bg-opacity: 1;
|
|
245
465
|
|
|
246
466
|
background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
|
|
247
467
|
}
|
|
468
|
+
|
|
248
469
|
.bg-label-lime-10{
|
|
249
470
|
|
|
250
471
|
--tw-bg-opacity: 1;
|
|
251
472
|
|
|
252
473
|
background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
|
|
253
474
|
}
|
|
475
|
+
|
|
254
476
|
.bg-label-orange-10{
|
|
255
477
|
|
|
256
478
|
--tw-bg-opacity: 1;
|
|
257
479
|
|
|
258
480
|
background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
|
|
259
481
|
}
|
|
482
|
+
|
|
260
483
|
.bg-label-orchid-10{
|
|
261
484
|
|
|
262
485
|
--tw-bg-opacity: 1;
|
|
263
486
|
|
|
264
487
|
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
|
265
488
|
}
|
|
489
|
+
|
|
266
490
|
.bg-label-violet-10{
|
|
267
491
|
|
|
268
492
|
--tw-bg-opacity: 1;
|
|
269
493
|
|
|
270
494
|
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
|
271
495
|
}
|
|
496
|
+
|
|
272
497
|
.bg-label-yellow-10{
|
|
273
498
|
|
|
274
499
|
--tw-bg-opacity: 1;
|
|
275
500
|
|
|
276
501
|
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
|
277
502
|
}
|
|
503
|
+
|
|
278
504
|
.bg-tone-neutral-10{
|
|
279
505
|
|
|
280
506
|
--tw-bg-opacity: 1;
|
|
281
507
|
|
|
282
508
|
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
|
283
509
|
}
|
|
510
|
+
|
|
284
511
|
.fill-label-amaranth-04{
|
|
285
512
|
|
|
286
513
|
fill: rgb(var(--label-amaranth-04));
|
|
287
514
|
}
|
|
515
|
+
|
|
288
516
|
.fill-label-aqua-04{
|
|
289
517
|
|
|
290
518
|
fill: rgb(var(--label-aqua-04));
|
|
291
519
|
}
|
|
520
|
+
|
|
292
521
|
.fill-label-blue-04{
|
|
293
522
|
|
|
294
523
|
fill: rgb(var(--label-blue-04));
|
|
295
524
|
}
|
|
525
|
+
|
|
296
526
|
.fill-label-green-04{
|
|
297
527
|
|
|
298
528
|
fill: rgb(var(--label-green-04));
|
|
299
529
|
}
|
|
530
|
+
|
|
300
531
|
.fill-label-lime-04{
|
|
301
532
|
|
|
302
533
|
fill: rgb(var(--label-lime-04));
|
|
303
534
|
}
|
|
535
|
+
|
|
304
536
|
.fill-label-orange-04{
|
|
305
537
|
|
|
306
538
|
fill: rgb(var(--label-orange-04));
|
|
307
539
|
}
|
|
540
|
+
|
|
308
541
|
.fill-label-orchid-04{
|
|
309
542
|
|
|
310
543
|
fill: rgb(var(--label-orchid-04));
|
|
311
544
|
}
|
|
545
|
+
|
|
312
546
|
.fill-label-violet-04{
|
|
313
547
|
|
|
314
548
|
fill: rgb(var(--label-violet-04));
|
|
315
549
|
}
|
|
550
|
+
|
|
316
551
|
.fill-label-yellow-04{
|
|
317
552
|
|
|
318
553
|
fill: rgb(var(--label-yellow-04));
|
|
319
554
|
}
|
|
555
|
+
|
|
320
556
|
.fill-tone-neutral-04{
|
|
321
557
|
|
|
322
558
|
fill: rgb(var(--tone-neutral-04));
|
|
323
559
|
}
|
|
560
|
+
|
|
324
561
|
.text-label-amaranth-04{
|
|
325
562
|
|
|
326
563
|
--tw-text-opacity: 1;
|
|
327
564
|
|
|
328
565
|
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
|
329
566
|
}
|
|
567
|
+
|
|
330
568
|
.text-label-aqua-04{
|
|
331
569
|
|
|
332
570
|
--tw-text-opacity: 1;
|
|
333
571
|
|
|
334
572
|
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
|
335
573
|
}
|
|
574
|
+
|
|
336
575
|
.text-label-blue-04{
|
|
337
576
|
|
|
338
577
|
--tw-text-opacity: 1;
|
|
339
578
|
|
|
340
579
|
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
|
341
580
|
}
|
|
581
|
+
|
|
342
582
|
.text-label-green-04{
|
|
343
583
|
|
|
344
584
|
--tw-text-opacity: 1;
|
|
345
585
|
|
|
346
586
|
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
|
347
587
|
}
|
|
588
|
+
|
|
348
589
|
.text-label-lime-04{
|
|
349
590
|
|
|
350
591
|
--tw-text-opacity: 1;
|
|
351
592
|
|
|
352
593
|
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
|
353
594
|
}
|
|
595
|
+
|
|
354
596
|
.text-label-orange-04{
|
|
355
597
|
|
|
356
598
|
--tw-text-opacity: 1;
|
|
357
599
|
|
|
358
600
|
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
|
359
601
|
}
|
|
602
|
+
|
|
360
603
|
.text-label-orchid-04{
|
|
361
604
|
|
|
362
605
|
--tw-text-opacity: 1;
|
|
363
606
|
|
|
364
607
|
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
|
365
608
|
}
|
|
609
|
+
|
|
366
610
|
.text-label-violet-04{
|
|
367
611
|
|
|
368
612
|
--tw-text-opacity: 1;
|
|
369
613
|
|
|
370
614
|
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
|
371
615
|
}
|
|
616
|
+
|
|
372
617
|
.text-label-yellow-04{
|
|
373
618
|
|
|
374
619
|
--tw-text-opacity: 1;
|
|
375
620
|
|
|
376
621
|
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
|
377
622
|
}
|
|
623
|
+
|
|
378
624
|
.text-tone-neutral-04{
|
|
379
625
|
|
|
380
626
|
--tw-text-opacity: 1;
|
|
381
627
|
|
|
382
628
|
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
383
629
|
}
|
|
630
|
+
|
|
384
631
|
.shadow{
|
|
385
632
|
|
|
386
633
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
@@ -390,144 +637,91 @@
|
|
|
390
637
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
391
638
|
}
|
|
392
639
|
|
|
640
|
+
:host {
|
|
393
641
|
|
|
394
|
-
:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
font-size: 1rem;
|
|
401
|
-
|
|
402
|
-
line-height: 1.5rem;
|
|
403
|
-
|
|
404
|
-
-webkit-font-smoothing: antialiased;
|
|
405
|
-
|
|
406
|
-
-moz-osx-font-smoothing: grayscale;
|
|
407
|
-
|
|
408
|
-
--mds-input-select-variant-color: var(--tone-neutral-01);
|
|
409
|
-
--mds-input-select-ring: 0 0 0 1px rgb(var(--mds-input-select-variant-color) / 0.1);
|
|
410
|
-
--mds-input-select-shadow: 0 1px 3px 0 rgb(var(--mds-input-select-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-select-variant-color) / 0.06);
|
|
411
|
-
|
|
412
|
-
color: rgb(var(--tone-neutral-02));
|
|
413
|
-
display: flex;
|
|
414
|
-
position: relative;
|
|
642
|
+
--mds-input-select-icon-color: var(--brand-maggioli-03);
|
|
643
|
+
--mds-input-select-variant-color: 0 0 0;
|
|
644
|
+
--mds-input-select-arrow-icon-blur-background-color: rgb(var(--brand-maggioli-09));
|
|
645
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--brand-maggioli-08));
|
|
646
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--brand-maggioli-06));
|
|
647
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--brand-maggioli-04));
|
|
415
648
|
}
|
|
416
649
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
font-family: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
420
|
-
|
|
421
|
-
font-size: 1rem;
|
|
422
|
-
|
|
423
|
-
line-height: 1.5rem;
|
|
424
|
-
|
|
425
|
-
-webkit-font-smoothing: antialiased;
|
|
426
|
-
|
|
427
|
-
-moz-osx-font-smoothing: grayscale;
|
|
428
|
-
|
|
429
|
-
margin: 0rem;
|
|
430
|
-
|
|
431
|
-
min-height: 3rem;
|
|
432
|
-
|
|
433
|
-
width: 100%;
|
|
434
|
-
|
|
435
|
-
border-radius: 0.5rem;
|
|
436
|
-
|
|
437
|
-
padding-top: 0.75rem;
|
|
438
|
-
|
|
439
|
-
padding-bottom: 0.75rem;
|
|
440
|
-
|
|
441
|
-
padding-left: 1rem;
|
|
442
|
-
|
|
443
|
-
padding-right: 3rem;
|
|
444
|
-
|
|
445
|
-
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
446
|
-
|
|
447
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
448
|
-
|
|
449
|
-
transition-duration: 300ms;
|
|
450
|
-
|
|
451
|
-
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
452
|
-
|
|
453
|
-
-webkit-appearance: none;
|
|
454
|
-
|
|
455
|
-
-moz-appearance: none;
|
|
650
|
+
:host( :hover ),
|
|
651
|
+
:host( :focus-within ) {
|
|
456
652
|
|
|
457
|
-
|
|
458
|
-
background-color: rgb(var(--tone-neutral));
|
|
459
|
-
border: 0;
|
|
460
|
-
box-shadow: var(--mds-input-select-ring), var(--mds-input-select-shadow);
|
|
461
|
-
box-sizing: border-box;
|
|
462
|
-
color: rgb(var(--tone-neutral-05));
|
|
463
|
-
cursor: pointer;
|
|
464
|
-
overflow: hidden;
|
|
465
|
-
text-overflow: ellipsis;
|
|
653
|
+
--mds-input-select-variant-color: var(--brand-maggioli-04);
|
|
466
654
|
}
|
|
467
655
|
|
|
468
|
-
|
|
469
|
-
.input:focus{
|
|
656
|
+
:host( [variant="info"] ) {
|
|
470
657
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
transition-duration: 300ms;
|
|
480
|
-
|
|
481
|
-
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
482
|
-
|
|
483
|
-
--mds-input-select-variant-color: var(--brand-maggioli-04);
|
|
484
|
-
--mds-input-select-ring: 0 0 0 3px rgb(var(--mds-input-select-variant-color) / 1);
|
|
485
|
-
--mds-input-select-shadow: 0 4px 6px -1px rgb(var(--mds-input-select-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-select-variant-color) / 0.06);
|
|
486
|
-
|
|
487
|
-
color: rgb(var(--tone-neutral-03));
|
|
658
|
+
--mds-input-select-icon-color: var(--status-info-05);
|
|
659
|
+
--mds-input-select-tip-background: var(--status-info-05);
|
|
660
|
+
--mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-info-09));
|
|
661
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-info-08));
|
|
662
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--status-info-06));
|
|
663
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--status-info-04));
|
|
664
|
+
--mds-input-select-variant-color: 0 0 0;
|
|
488
665
|
}
|
|
489
666
|
|
|
490
|
-
:host([
|
|
491
|
-
|
|
492
|
-
}
|
|
667
|
+
:host( [variant="info"]:hover ),
|
|
668
|
+
:host( [variant="info"]:focus-within ) {
|
|
493
669
|
|
|
494
|
-
|
|
495
|
-
color:
|
|
670
|
+
--mds-input-select-icon-color: var(--status-info-04);
|
|
671
|
+
--mds-input-select-variant-color: var(--status-info-05);
|
|
496
672
|
}
|
|
497
673
|
|
|
498
|
-
|
|
674
|
+
:host( [variant="success"] ) {
|
|
499
675
|
|
|
500
|
-
|
|
676
|
+
--mds-input-select-icon-color: var(--status-success-05);
|
|
677
|
+
--mds-input-select-tip-background: var(--status-success-05);
|
|
678
|
+
--mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-success-09));
|
|
679
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-success-08));
|
|
680
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--status-success-06));
|
|
681
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--status-success-04));
|
|
682
|
+
--mds-input-select-variant-color: 0 0 0;
|
|
683
|
+
}
|
|
501
684
|
|
|
502
|
-
|
|
685
|
+
:host( [variant="success"]:hover ),
|
|
686
|
+
:host( [variant="success"]:focus-within ) {
|
|
503
687
|
|
|
504
|
-
|
|
505
|
-
color:
|
|
506
|
-
display: flex;
|
|
507
|
-
pointer-events: none;
|
|
508
|
-
position: absolute;
|
|
688
|
+
--mds-input-select-icon-color: var(--status-success-04);
|
|
689
|
+
--mds-input-select-variant-color: var(--status-success-05);
|
|
509
690
|
}
|
|
510
691
|
|
|
511
|
-
|
|
692
|
+
:host( [variant="warning"] ) {
|
|
512
693
|
|
|
513
|
-
|
|
694
|
+
--mds-input-select-icon-color: var(--status-warning-05);
|
|
695
|
+
--mds-input-select-tip-background: var(--status-warning-05);
|
|
696
|
+
--mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-warning-09));
|
|
697
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-warning-08));
|
|
698
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--status-warning-06));
|
|
699
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--status-warning-04));
|
|
700
|
+
--mds-input-select-variant-color: 0 0 0;
|
|
701
|
+
}
|
|
514
702
|
|
|
515
|
-
|
|
703
|
+
:host( [variant="warning"]:hover ),
|
|
704
|
+
:host( [variant="warning"]:focus-within ) {
|
|
516
705
|
|
|
517
|
-
|
|
706
|
+
--mds-input-select-icon-color: var(--status-warning-04);
|
|
707
|
+
--mds-input-select-variant-color: var(--status-warning-05);
|
|
708
|
+
}
|
|
518
709
|
|
|
519
|
-
|
|
710
|
+
:host( [variant="error"] ) {
|
|
520
711
|
|
|
521
|
-
|
|
522
|
-
|
|
712
|
+
--mds-input-select-icon-color: var(--status-error-05);
|
|
713
|
+
--mds-input-select-tip-background: var(--status-error-05);
|
|
714
|
+
--mds-input-select-arrow-icon-blur-background-color: rgb(var(--status-error-09));
|
|
715
|
+
--mds-input-select-arrow-icon-hover-background-color: rgb(var(--status-error-08));
|
|
716
|
+
--mds-input-select-arrow-icon-blur-color: rgb(var(--status-error-06));
|
|
717
|
+
--mds-input-select-arrow-icon-hover-color: rgb(var(--status-error-04));
|
|
718
|
+
--mds-input-select-variant-color: 0 0 0;
|
|
523
719
|
}
|
|
524
720
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
background-color: rgb(var(--tone-neutral-09));
|
|
528
|
-
fill: rgb(var(--brand-maggioli-02));
|
|
529
|
-
}
|
|
721
|
+
:host( [variant="error"]:hover ),
|
|
722
|
+
:host( [variant="error"]:focus-within ) {
|
|
530
723
|
|
|
531
|
-
|
|
532
|
-
|
|
724
|
+
--mds-input-select-icon-color: var(--status-error-04);
|
|
725
|
+
--mds-input-select-variant-color: var(--status-error-05);
|
|
533
726
|
}
|
|
727
|
+
|