tuix-webcomponents 0.95.2 → 0.96.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/README.md CHANGED
@@ -12,8 +12,8 @@ npm i tuix-webcomponents
12
12
 
13
13
  ### Webbundle version
14
14
 
15
- Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-32a19d9@0.95.2.js
16
- Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-32a19d9@0.95.2.css
15
+ Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-53e166b@0.96.0.js
16
+ Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-53e166b@0.96.0.css
17
17
 
18
18
  ### React
19
19
 
@@ -449,6 +449,244 @@
449
449
  }
450
450
  ]
451
451
  },
452
+ {
453
+ "kind": "javascript-module",
454
+ "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
455
+ "declarations": [
456
+ {
457
+ "kind": "variable",
458
+ "name": "hostStyles",
459
+ "default": "css`\n :host {\n --t-main-color-tuix: ${unsafeCSS(Palette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(Palette.WHITE)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-text-color-error: ${unsafeCSS(Palette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(Palette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-text-color-label: ${unsafeCSS(Palette.BLACK)};\n --t-label-right-default-justify: flex-start;\n --t-label-left-default-justify: space-between;\n }\n :host([dark]) {\n --t-main-color-tuix: ${unsafeCSS(DarkPalette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.BLACK)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-text-color-error: ${unsafeCSS(DarkPalette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(DarkPalette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(DarkPalette.PRIMARY_100)};\n --t-text-color-label: ${unsafeCSS(DarkPalette.WHITE)};\n }\n`"
460
+ },
461
+ {
462
+ "kind": "variable",
463
+ "name": "checkboxContainerStyles",
464
+ "default": "css`\n .t-checkbox-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-checkbox-full-container {\n cursor: not-allowed;\n }\n .t-checkbox-container {\n --t-checkbox-size-box: 1.5rem;\n --t-checkbox-shadow-width: 2px;\n --t-checkbox-border-radius: 0.25rem;\n display: block;\n position: relative;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n min-width: var(--t-checkbox-size-box);\n }\n .t-checkbox-container .t-checkbox {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-checkbox-container {\n --t-checkbox-size-box: 1rem;\n --t-checkbox-shadow-width: 1px;\n --t-checkbox-border-radius: 0.125rem;\n margin-top: 1px;\n }\n }\n`"
465
+ },
466
+ {
467
+ "kind": "variable",
468
+ "name": "checkboxCheckmarkStyles",
469
+ "default": "css`\n .t-checkbox-container .t-checkbox-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n border-radius: var(--t-checkbox-border-radius);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n }\n .t-checkbox-container .t-checkbox-checkmark tuix-icon {\n margin: auto;\n display: none;\n width: calc(var(--t-checkbox-size-box) - 0.5rem);\n height: calc(var(--t-checkbox-size-box) - 0.5rem);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark {\n background-color: var(--t-main-color-tuix);\n border: none;\n }\n .t-checkbox-container .t-checkbox:focus ~ .t-checkbox-checkmark {\n box-shadow: 0 0 0px var(--t-checkbox-shadow-width)\n var(--t-stroke-color-focus);\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark tuix-icon {\n display: block;\n }\n .t-checkbox-full-container:hover .t-checkbox-container .t-checkbox-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox:checked\n ~ .t-checkbox-checkmark {\n background-color: var(--t-text-color-error);\n border: none;\n }\n\n .t-checkbox-container .t-checkbox:disabled ~ .t-checkbox-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
470
+ },
471
+ {
472
+ "kind": "variable",
473
+ "name": "checkboxLabelStyles",
474
+ "default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
475
+ }
476
+ ],
477
+ "exports": [
478
+ {
479
+ "kind": "js",
480
+ "name": "hostStyles",
481
+ "declaration": {
482
+ "name": "hostStyles",
483
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
484
+ }
485
+ },
486
+ {
487
+ "kind": "js",
488
+ "name": "checkboxContainerStyles",
489
+ "declaration": {
490
+ "name": "checkboxContainerStyles",
491
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
492
+ }
493
+ },
494
+ {
495
+ "kind": "js",
496
+ "name": "checkboxCheckmarkStyles",
497
+ "declaration": {
498
+ "name": "checkboxCheckmarkStyles",
499
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
500
+ }
501
+ },
502
+ {
503
+ "kind": "js",
504
+ "name": "checkboxLabelStyles",
505
+ "declaration": {
506
+ "name": "checkboxLabelStyles",
507
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
508
+ }
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ "kind": "javascript-module",
514
+ "path": "src/tuix-checkbox/TuixCheckbox.ts",
515
+ "declarations": [
516
+ {
517
+ "kind": "class",
518
+ "description": "",
519
+ "name": "TuixCheckbox",
520
+ "members": [
521
+ {
522
+ "kind": "field",
523
+ "name": "checked",
524
+ "type": {
525
+ "text": "boolean"
526
+ },
527
+ "default": "false",
528
+ "attribute": "checked"
529
+ },
530
+ {
531
+ "kind": "field",
532
+ "name": "disabled",
533
+ "type": {
534
+ "text": "boolean"
535
+ },
536
+ "default": "false",
537
+ "attribute": "disabled",
538
+ "reflects": true
539
+ },
540
+ {
541
+ "kind": "field",
542
+ "name": "dark",
543
+ "type": {
544
+ "text": "boolean"
545
+ },
546
+ "default": "false",
547
+ "attribute": "dark",
548
+ "reflects": true
549
+ },
550
+ {
551
+ "kind": "field",
552
+ "name": "error",
553
+ "type": {
554
+ "text": "boolean"
555
+ },
556
+ "default": "false",
557
+ "attribute": "error",
558
+ "reflects": true
559
+ },
560
+ {
561
+ "kind": "field",
562
+ "name": "label",
563
+ "type": {
564
+ "text": "string"
565
+ },
566
+ "default": "''",
567
+ "attribute": "label"
568
+ },
569
+ {
570
+ "kind": "field",
571
+ "name": "labelSide",
572
+ "type": {
573
+ "text": "CheckboxLabelSide"
574
+ },
575
+ "attribute": "labelSide"
576
+ },
577
+ {
578
+ "kind": "method",
579
+ "name": "_onCheckboxChange",
580
+ "privacy": "private",
581
+ "parameters": [
582
+ {
583
+ "name": "event",
584
+ "type": {
585
+ "text": "InputEvent"
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "kind": "method",
592
+ "name": "_getIconMode",
593
+ "privacy": "private"
594
+ },
595
+ {
596
+ "kind": "method",
597
+ "name": "_getFullContainerClasses",
598
+ "privacy": "private",
599
+ "return": {
600
+ "type": {
601
+ "text": "ClassInfo"
602
+ }
603
+ }
604
+ }
605
+ ],
606
+ "events": [
607
+ {
608
+ "name": "change",
609
+ "type": {
610
+ "text": "CustomEvent"
611
+ }
612
+ }
613
+ ],
614
+ "attributes": [
615
+ {
616
+ "name": "checked",
617
+ "type": {
618
+ "text": "boolean"
619
+ },
620
+ "default": "false",
621
+ "fieldName": "checked"
622
+ },
623
+ {
624
+ "name": "disabled",
625
+ "type": {
626
+ "text": "boolean"
627
+ },
628
+ "default": "false",
629
+ "fieldName": "disabled"
630
+ },
631
+ {
632
+ "name": "dark",
633
+ "type": {
634
+ "text": "boolean"
635
+ },
636
+ "default": "false",
637
+ "fieldName": "dark"
638
+ },
639
+ {
640
+ "name": "error",
641
+ "type": {
642
+ "text": "boolean"
643
+ },
644
+ "default": "false",
645
+ "fieldName": "error"
646
+ },
647
+ {
648
+ "name": "label",
649
+ "type": {
650
+ "text": "string"
651
+ },
652
+ "default": "''",
653
+ "fieldName": "label"
654
+ },
655
+ {
656
+ "name": "labelSide",
657
+ "type": {
658
+ "text": "CheckboxLabelSide"
659
+ },
660
+ "fieldName": "labelSide"
661
+ }
662
+ ],
663
+ "superclass": {
664
+ "name": "LitElement",
665
+ "package": "lit"
666
+ },
667
+ "tagName": "tuix-checkbox",
668
+ "customElement": true
669
+ }
670
+ ],
671
+ "exports": [
672
+ {
673
+ "kind": "js",
674
+ "name": "TuixCheckbox",
675
+ "declaration": {
676
+ "name": "TuixCheckbox",
677
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
678
+ }
679
+ },
680
+ {
681
+ "kind": "custom-element-definition",
682
+ "name": "tuix-checkbox",
683
+ "declaration": {
684
+ "name": "TuixCheckbox",
685
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
686
+ }
687
+ }
688
+ ]
689
+ },
452
690
  {
453
691
  "kind": "javascript-module",
454
692
  "path": "src/tuix-button/TuixBaseButton.ts",
@@ -1329,309 +1567,52 @@
1329
1567
  "kind": "method",
1330
1568
  "name": "_hasCompleteDescription",
1331
1569
  "privacy": "private",
1332
- "return": {
1333
- "type": {
1334
- "text": "boolean"
1335
- }
1336
- }
1337
- },
1338
- {
1339
- "kind": "method",
1340
- "name": "_getOptionsContainerClasses",
1341
- "privacy": "private",
1342
- "return": {
1343
- "type": {
1344
- "text": "ClassInfo"
1345
- }
1346
- }
1347
- },
1348
- {
1349
- "kind": "method",
1350
- "name": "_triggerUpdateByExternalValueChange",
1351
- "privacy": "private"
1352
- },
1353
- {
1354
- "kind": "method",
1355
- "name": "_resetPreviousSelection",
1356
- "privacy": "private"
1357
- },
1358
- {
1359
- "kind": "method",
1360
- "name": "_getOptionsTemplate",
1361
- "privacy": "private",
1362
- "return": {
1363
- "type": {
1364
- "text": "TemplateResult[]"
1365
- }
1366
- }
1367
- }
1368
- ],
1369
- "events": [
1370
- {
1371
- "name": "select",
1372
- "type": {
1373
- "text": "CustomEvent"
1374
- }
1375
- },
1376
- {
1377
- "name": "eventName",
1378
- "type": {
1379
- "text": "CustomEvent"
1380
- }
1381
- }
1382
- ],
1383
- "attributes": [
1384
- {
1385
- "name": "value",
1386
- "type": {
1387
- "text": "TuixDropdownOption | undefined"
1388
- },
1389
- "default": "undefined",
1390
- "resolveInitializer": {
1391
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1392
- },
1393
- "fieldName": "value"
1394
- },
1395
- {
1396
- "name": "options",
1397
- "type": {
1398
- "text": "TuixDropdownOption[]"
1399
- },
1400
- "default": "[]",
1401
- "fieldName": "options"
1402
- },
1403
- {
1404
- "name": "placeholder",
1405
- "type": {
1406
- "text": "string"
1407
- },
1408
- "default": "''",
1409
- "fieldName": "placeholder"
1410
- },
1411
- {
1412
- "name": "title",
1413
- "type": {
1414
- "text": "string"
1415
- },
1416
- "default": "''",
1417
- "fieldName": "title"
1418
- },
1419
- {
1420
- "name": "disabled",
1421
- "type": {
1422
- "text": "boolean"
1423
- },
1424
- "default": "false",
1425
- "fieldName": "disabled"
1426
- },
1427
- {
1428
- "name": "dark",
1429
- "type": {
1430
- "text": "boolean"
1431
- },
1432
- "default": "false",
1433
- "fieldName": "dark"
1434
- },
1435
- {
1436
- "name": "description",
1437
- "type": {
1438
- "text": "string | undefined"
1439
- },
1440
- "fieldName": "description"
1441
- },
1442
- {
1443
- "name": "descriptionType",
1444
- "fieldName": "descriptionType"
1445
- },
1446
- {
1447
- "name": "type",
1448
- "fieldName": "type"
1449
- }
1450
- ],
1451
- "superclass": {
1452
- "name": "LitElement",
1453
- "package": "lit"
1454
- },
1455
- "tagName": "tuix-dropdown",
1456
- "customElement": true
1457
- }
1458
- ],
1459
- "exports": [
1460
- {
1461
- "kind": "js",
1462
- "name": "TuixDropdown",
1463
- "declaration": {
1464
- "name": "TuixDropdown",
1465
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1466
- }
1467
- },
1468
- {
1469
- "kind": "custom-element-definition",
1470
- "name": "tuix-dropdown",
1471
- "declaration": {
1472
- "name": "TuixDropdown",
1473
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1474
- }
1475
- }
1476
- ]
1477
- },
1478
- {
1479
- "kind": "javascript-module",
1480
- "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
1481
- "declarations": [
1482
- {
1483
- "kind": "variable",
1484
- "name": "hostStyles",
1485
- "default": "css`\n :host {\n --t-main-color-tuix: ${unsafeCSS(Palette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(Palette.WHITE)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-text-color-error: ${unsafeCSS(Palette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(Palette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-text-color-label: ${unsafeCSS(Palette.BLACK)};\n --t-label-right-default-justify: flex-start;\n --t-label-left-default-justify: space-between;\n }\n :host([dark]) {\n --t-main-color-tuix: ${unsafeCSS(DarkPalette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.BLACK)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-text-color-error: ${unsafeCSS(DarkPalette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(DarkPalette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(DarkPalette.PRIMARY_100)};\n --t-text-color-label: ${unsafeCSS(DarkPalette.WHITE)};\n }\n`"
1486
- },
1487
- {
1488
- "kind": "variable",
1489
- "name": "checkboxContainerStyles",
1490
- "default": "css`\n .t-checkbox-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-checkbox-full-container {\n cursor: not-allowed;\n }\n .t-checkbox-container {\n --t-checkbox-size-box: 1.5rem;\n --t-checkbox-shadow-width: 2px;\n --t-checkbox-border-radius: 0.25rem;\n display: block;\n position: relative;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n min-width: var(--t-checkbox-size-box);\n }\n .t-checkbox-container .t-checkbox {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-checkbox-container {\n --t-checkbox-size-box: 1rem;\n --t-checkbox-shadow-width: 1px;\n --t-checkbox-border-radius: 0.125rem;\n margin-top: 1px;\n }\n }\n`"
1491
- },
1492
- {
1493
- "kind": "variable",
1494
- "name": "checkboxCheckmarkStyles",
1495
- "default": "css`\n .t-checkbox-container .t-checkbox-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n border-radius: var(--t-checkbox-border-radius);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n }\n .t-checkbox-container .t-checkbox-checkmark tuix-icon {\n margin: auto;\n display: none;\n width: calc(var(--t-checkbox-size-box) - 0.5rem);\n height: calc(var(--t-checkbox-size-box) - 0.5rem);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark {\n background-color: var(--t-main-color-tuix);\n border: none;\n }\n .t-checkbox-container .t-checkbox:focus ~ .t-checkbox-checkmark {\n box-shadow: 0 0 0px var(--t-checkbox-shadow-width)\n var(--t-stroke-color-focus);\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark tuix-icon {\n display: block;\n }\n .t-checkbox-full-container:hover .t-checkbox-container .t-checkbox-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox:checked\n ~ .t-checkbox-checkmark {\n background-color: var(--t-text-color-error);\n border: none;\n }\n\n .t-checkbox-container .t-checkbox:disabled ~ .t-checkbox-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
1496
- },
1497
- {
1498
- "kind": "variable",
1499
- "name": "checkboxLabelStyles",
1500
- "default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
1501
- }
1502
- ],
1503
- "exports": [
1504
- {
1505
- "kind": "js",
1506
- "name": "hostStyles",
1507
- "declaration": {
1508
- "name": "hostStyles",
1509
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1510
- }
1511
- },
1512
- {
1513
- "kind": "js",
1514
- "name": "checkboxContainerStyles",
1515
- "declaration": {
1516
- "name": "checkboxContainerStyles",
1517
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1518
- }
1519
- },
1520
- {
1521
- "kind": "js",
1522
- "name": "checkboxCheckmarkStyles",
1523
- "declaration": {
1524
- "name": "checkboxCheckmarkStyles",
1525
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1526
- }
1527
- },
1528
- {
1529
- "kind": "js",
1530
- "name": "checkboxLabelStyles",
1531
- "declaration": {
1532
- "name": "checkboxLabelStyles",
1533
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1534
- }
1535
- }
1536
- ]
1537
- },
1538
- {
1539
- "kind": "javascript-module",
1540
- "path": "src/tuix-checkbox/TuixCheckbox.ts",
1541
- "declarations": [
1542
- {
1543
- "kind": "class",
1544
- "description": "",
1545
- "name": "TuixCheckbox",
1546
- "members": [
1547
- {
1548
- "kind": "field",
1549
- "name": "checked",
1550
- "type": {
1551
- "text": "boolean"
1552
- },
1553
- "default": "false",
1554
- "attribute": "checked"
1555
- },
1556
- {
1557
- "kind": "field",
1558
- "name": "disabled",
1559
- "type": {
1560
- "text": "boolean"
1561
- },
1562
- "default": "false",
1563
- "attribute": "disabled",
1564
- "reflects": true
1565
- },
1566
- {
1567
- "kind": "field",
1568
- "name": "dark",
1569
- "type": {
1570
- "text": "boolean"
1571
- },
1572
- "default": "false",
1573
- "attribute": "dark",
1574
- "reflects": true
1575
- },
1576
- {
1577
- "kind": "field",
1578
- "name": "error",
1579
- "type": {
1580
- "text": "boolean"
1581
- },
1582
- "default": "false",
1583
- "attribute": "error",
1584
- "reflects": true
1585
- },
1586
- {
1587
- "kind": "field",
1588
- "name": "label",
1589
- "type": {
1590
- "text": "string"
1591
- },
1592
- "default": "''",
1593
- "attribute": "label"
1594
- },
1595
- {
1596
- "kind": "field",
1597
- "name": "labelSide",
1598
- "type": {
1599
- "text": "CheckboxLabelSide"
1600
- },
1601
- "attribute": "labelSide"
1570
+ "return": {
1571
+ "type": {
1572
+ "text": "boolean"
1573
+ }
1574
+ }
1602
1575
  },
1603
1576
  {
1604
1577
  "kind": "method",
1605
- "name": "_onCheckboxChange",
1578
+ "name": "_getOptionsContainerClasses",
1606
1579
  "privacy": "private",
1607
- "parameters": [
1608
- {
1609
- "name": "event",
1610
- "type": {
1611
- "text": "InputEvent"
1612
- }
1580
+ "return": {
1581
+ "type": {
1582
+ "text": "ClassInfo"
1613
1583
  }
1614
- ]
1584
+ }
1615
1585
  },
1616
1586
  {
1617
1587
  "kind": "method",
1618
- "name": "_getIconMode",
1588
+ "name": "_triggerUpdateByExternalValueChange",
1619
1589
  "privacy": "private"
1620
1590
  },
1621
1591
  {
1622
1592
  "kind": "method",
1623
- "name": "_getFullContainerClasses",
1593
+ "name": "_resetPreviousSelection",
1594
+ "privacy": "private"
1595
+ },
1596
+ {
1597
+ "kind": "method",
1598
+ "name": "_getOptionsTemplate",
1624
1599
  "privacy": "private",
1625
1600
  "return": {
1626
1601
  "type": {
1627
- "text": "ClassInfo"
1602
+ "text": "TemplateResult[]"
1628
1603
  }
1629
1604
  }
1630
1605
  }
1631
1606
  ],
1632
1607
  "events": [
1633
1608
  {
1634
- "name": "change",
1609
+ "name": "select",
1610
+ "type": {
1611
+ "text": "CustomEvent"
1612
+ }
1613
+ },
1614
+ {
1615
+ "name": "eventName",
1635
1616
  "type": {
1636
1617
  "text": "CustomEvent"
1637
1618
  }
@@ -1639,12 +1620,39 @@
1639
1620
  ],
1640
1621
  "attributes": [
1641
1622
  {
1642
- "name": "checked",
1623
+ "name": "value",
1643
1624
  "type": {
1644
- "text": "boolean"
1625
+ "text": "TuixDropdownOption | undefined"
1645
1626
  },
1646
- "default": "false",
1647
- "fieldName": "checked"
1627
+ "default": "undefined",
1628
+ "resolveInitializer": {
1629
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
1630
+ },
1631
+ "fieldName": "value"
1632
+ },
1633
+ {
1634
+ "name": "options",
1635
+ "type": {
1636
+ "text": "TuixDropdownOption[]"
1637
+ },
1638
+ "default": "[]",
1639
+ "fieldName": "options"
1640
+ },
1641
+ {
1642
+ "name": "placeholder",
1643
+ "type": {
1644
+ "text": "string"
1645
+ },
1646
+ "default": "''",
1647
+ "fieldName": "placeholder"
1648
+ },
1649
+ {
1650
+ "name": "title",
1651
+ "type": {
1652
+ "text": "string"
1653
+ },
1654
+ "default": "''",
1655
+ "fieldName": "title"
1648
1656
  },
1649
1657
  {
1650
1658
  "name": "disabled",
@@ -1663,52 +1671,44 @@
1663
1671
  "fieldName": "dark"
1664
1672
  },
1665
1673
  {
1666
- "name": "error",
1674
+ "name": "description",
1667
1675
  "type": {
1668
- "text": "boolean"
1676
+ "text": "string | undefined"
1669
1677
  },
1670
- "default": "false",
1671
- "fieldName": "error"
1678
+ "fieldName": "description"
1672
1679
  },
1673
1680
  {
1674
- "name": "label",
1675
- "type": {
1676
- "text": "string"
1677
- },
1678
- "default": "''",
1679
- "fieldName": "label"
1681
+ "name": "descriptionType",
1682
+ "fieldName": "descriptionType"
1680
1683
  },
1681
1684
  {
1682
- "name": "labelSide",
1683
- "type": {
1684
- "text": "CheckboxLabelSide"
1685
- },
1686
- "fieldName": "labelSide"
1685
+ "name": "type",
1686
+ "fieldName": "type"
1687
1687
  }
1688
1688
  ],
1689
1689
  "superclass": {
1690
1690
  "name": "LitElement",
1691
1691
  "package": "lit"
1692
1692
  },
1693
- "tagName": "tuix-checkbox",
1693
+ "tagName": "tuix-dropdown",
1694
1694
  "customElement": true
1695
1695
  }
1696
1696
  ],
1697
1697
  "exports": [
1698
1698
  {
1699
1699
  "kind": "js",
1700
- "name": "TuixCheckbox",
1700
+ "name": "TuixDropdown",
1701
1701
  "declaration": {
1702
- "name": "TuixCheckbox",
1703
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1702
+ "name": "TuixDropdown",
1703
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
1704
1704
  }
1705
1705
  },
1706
1706
  {
1707
1707
  "kind": "custom-element-definition",
1708
- "name": "tuix-checkbox",
1708
+ "name": "tuix-dropdown",
1709
1709
  "declaration": {
1710
- "name": "TuixCheckbox",
1711
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1710
+ "name": "TuixDropdown",
1711
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
1712
1712
  }
1713
1713
  }
1714
1714
  ]
@@ -4618,37 +4618,53 @@
4618
4618
  },
4619
4619
  {
4620
4620
  "kind": "javascript-module",
4621
- "path": "src/tuix-button/enums/tuix-button.enums.ts",
4621
+ "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
4622
4622
  "declarations": [
4623
4623
  {
4624
4624
  "kind": "variable",
4625
- "name": "buttonTextColor",
4625
+ "name": "CheckboxIconColorLight",
4626
4626
  "type": {
4627
- "text": "Record<MainVariant, string>"
4627
+ "text": "object"
4628
4628
  },
4629
- "default": "{\n [MainVariant.PRIMARY]: Palette.WHITE,\n [MainVariant.SECONDARY]: Palette.MAIN,\n}"
4629
+ "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4630
+ },
4631
+ {
4632
+ "kind": "variable",
4633
+ "name": "CheckboxIconColorDark",
4634
+ "type": {
4635
+ "text": "object"
4636
+ },
4637
+ "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4630
4638
  }
4631
4639
  ],
4632
4640
  "exports": [
4633
4641
  {
4634
4642
  "kind": "js",
4635
- "name": "buttonTextColor",
4643
+ "name": "CheckboxIconColorLight",
4636
4644
  "declaration": {
4637
- "name": "buttonTextColor",
4638
- "module": "src/tuix-button/enums/tuix-button.enums.ts"
4645
+ "name": "CheckboxIconColorLight",
4646
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4647
+ }
4648
+ },
4649
+ {
4650
+ "kind": "js",
4651
+ "name": "CheckboxIconColorDark",
4652
+ "declaration": {
4653
+ "name": "CheckboxIconColorDark",
4654
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4639
4655
  }
4640
4656
  }
4641
4657
  ]
4642
4658
  },
4643
4659
  {
4644
4660
  "kind": "javascript-module",
4645
- "path": "src/tuix-button/interfaces/tuix-button.interface.ts",
4661
+ "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4646
4662
  "declarations": [],
4647
4663
  "exports": []
4648
4664
  },
4649
4665
  {
4650
4666
  "kind": "javascript-module",
4651
- "path": "src/tuix-button/stories/tuix-button.stories.ts",
4667
+ "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4652
4668
  "declarations": [
4653
4669
  {
4654
4670
  "kind": "variable",
@@ -4656,15 +4672,15 @@
4656
4672
  "type": {
4657
4673
  "text": "object"
4658
4674
  },
4659
- "default": "{\n title: 'TuixButton',\n component: 'tuix-button',\n argTypes: {\n value: {\n control: 'text',\n },\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n iconLeft: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n iconRight: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n disabled: { control: 'boolean' },\n dark: { control: 'boolean' },\n full: { control: 'boolean' },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"width:100%; height:100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <div style=\"width:50%; margin:auto; height:100%; position:relative;\">\n <tuix-button\n style=\"width:100%; height:20%; text-align:center; position:absolute; top:50%;\"\n .variant=${args.variant}\n .iconLeft=${args.iconLeft}\n .iconRight=${args.iconRight}\n ?disabled=${args.disabled}\n ?dark=${args.dark}\n ?full=${args.full}\n @customClick=${(e: CustomEventTuixButton) => args.onClick?.(e)}\n >\n ${args.value}\n </tuix-button>\n </div>\n </div>\n `,\n}"
4675
+ "default": "{\n title: 'TuixCheckbox',\n component: 'tuix-checkbox',\n argTypes: {\n checked: {\n control: 'boolean',\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n labelSide: {\n control: 'select',\n options: [...Object.values(CheckboxLabelSide)],\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh; ${args.dark\n ? 'background-color:' + Palette.BLACK + ';'\n : ''}}\"\n >\n <div\n style=\"max-width: 300px; display: flex; gap: 16px; flex-direction: column\"\n >\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n label=\"${args.label}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n ></tuix-checkbox>\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n ?dark=\"${args.dark}\"\n >\n Label from slot using a long text with max-width container\n </tuix-text>\n </tuix-checkbox>\n </div>\n </div>\n `,\n}"
4660
4676
  },
4661
4677
  {
4662
4678
  "kind": "variable",
4663
- "name": "Button",
4679
+ "name": "tuixCheckboxExample",
4664
4680
  "type": {
4665
4681
  "text": "Story"
4666
4682
  },
4667
- "default": "{\n args: {\n value: 'Click me',\n variant: MainVariant.PRIMARY,\n disabled: false,\n dark: false,\n full: false,\n iconLeft: null,\n iconRight: null,\n },\n}"
4683
+ "default": "{\n args: {\n checked: false,\n disabled: false,\n dark: false,\n error: false,\n label: 'Label from property',\n labelSide: CheckboxLabelSide.RIGHT,\n },\n}"
4668
4684
  }
4669
4685
  ],
4670
4686
  "exports": [
@@ -4673,68 +4689,52 @@
4673
4689
  "name": "default",
4674
4690
  "declaration": {
4675
4691
  "name": "meta",
4676
- "module": "src/tuix-button/stories/tuix-button.stories.ts"
4692
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4677
4693
  }
4678
4694
  },
4679
4695
  {
4680
4696
  "kind": "js",
4681
- "name": "Button",
4697
+ "name": "tuixCheckboxExample",
4682
4698
  "declaration": {
4683
- "name": "Button",
4684
- "module": "src/tuix-button/stories/tuix-button.stories.ts"
4699
+ "name": "tuixCheckboxExample",
4700
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4685
4701
  }
4686
4702
  }
4687
4703
  ]
4688
4704
  },
4689
4705
  {
4690
4706
  "kind": "javascript-module",
4691
- "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4707
+ "path": "src/tuix-button/interfaces/tuix-button.interface.ts",
4692
4708
  "declarations": [],
4693
4709
  "exports": []
4694
4710
  },
4695
4711
  {
4696
4712
  "kind": "javascript-module",
4697
- "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4713
+ "path": "src/tuix-button/enums/tuix-button.enums.ts",
4698
4714
  "declarations": [
4699
4715
  {
4700
4716
  "kind": "variable",
4701
- "name": "meta",
4702
- "type": {
4703
- "text": "object"
4704
- },
4705
- "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: {\n control: 'object',\n },\n options: {\n control: 'object',\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: {\n control: 'text',\n },\n title: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4706
- },
4707
- {
4708
- "kind": "variable",
4709
- "name": "tuixDropdownObjectList",
4717
+ "name": "buttonTextColor",
4710
4718
  "type": {
4711
- "text": "Story"
4719
+ "text": "Record<MainVariant, string>"
4712
4720
  },
4713
- "default": "{\n args: {\n value: '458ac6ca-9a57-48c5-8abf-768460397607',\n // value: { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' }, // This works too\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397602' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397603' },\n { name: 'apple2', value: '458ac6ca-9a57-48c5-8abf-768460397604' },\n { name: 'orange2', value: '458ac6ca-9a57-48c5-8abf-768460397605' },\n { name: 'tomato2', value: '458ac6ca-9a57-48c5-8abf-768460397606' },\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397607' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397608' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397609' },\n ],\n type: DropdownType.SEARCH,\n },\n}"
4721
+ "default": "{\n [MainVariant.PRIMARY]: Palette.WHITE,\n [MainVariant.SECONDARY]: Palette.MAIN,\n}"
4714
4722
  }
4715
4723
  ],
4716
4724
  "exports": [
4717
4725
  {
4718
4726
  "kind": "js",
4719
- "name": "default",
4720
- "declaration": {
4721
- "name": "meta",
4722
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4723
- }
4724
- },
4725
- {
4726
- "kind": "js",
4727
- "name": "tuixDropdownObjectList",
4727
+ "name": "buttonTextColor",
4728
4728
  "declaration": {
4729
- "name": "tuixDropdownObjectList",
4730
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4729
+ "name": "buttonTextColor",
4730
+ "module": "src/tuix-button/enums/tuix-button.enums.ts"
4731
4731
  }
4732
4732
  }
4733
4733
  ]
4734
4734
  },
4735
4735
  {
4736
4736
  "kind": "javascript-module",
4737
- "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4737
+ "path": "src/tuix-button/stories/tuix-button.stories.ts",
4738
4738
  "declarations": [
4739
4739
  {
4740
4740
  "kind": "variable",
@@ -4742,15 +4742,15 @@
4742
4742
  "type": {
4743
4743
  "text": "object"
4744
4744
  },
4745
- "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: { control: 'text' },\n\n options: {\n control: 'select',\n options: ['fruits', 'countries'],\n mapping: {\n fruits: fruits,\n countries: countryPhoneArray,\n },\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: { control: 'text' },\n title: { control: 'text' },\n description: { control: 'text' },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html`<div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4745
+ "default": "{\n title: 'TuixButton',\n component: 'tuix-button',\n argTypes: {\n value: {\n control: 'text',\n },\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n iconLeft: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n iconRight: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n disabled: { control: 'boolean' },\n dark: { control: 'boolean' },\n full: { control: 'boolean' },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"width:100%; height:100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <div style=\"width:50%; margin:auto; height:100%; position:relative;\">\n <tuix-button\n style=\"width:100%; height:20%; text-align:center; position:absolute; top:50%;\"\n .variant=${args.variant}\n .iconLeft=${args.iconLeft}\n .iconRight=${args.iconRight}\n ?disabled=${args.disabled}\n ?dark=${args.dark}\n ?full=${args.full}\n @customClick=${(e: CustomEventTuixButton) => args.onClick?.(e)}\n >\n ${args.value}\n </tuix-button>\n </div>\n </div>\n `,\n}"
4746
4746
  },
4747
4747
  {
4748
4748
  "kind": "variable",
4749
- "name": "tuixDropdownExample",
4749
+ "name": "Button",
4750
4750
  "type": {
4751
4751
  "text": "Story"
4752
4752
  },
4753
- "default": "{\n args: {\n value: 'apple2',\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n 'apple',\n 'orange',\n 'tomato',\n 'apple2',\n 'orange2',\n 'tomato2',\n 'apple3',\n 'orange3',\n 'tomato3',\n ],\n type: DropdownType.SINGLE,\n },\n}"
4753
+ "default": "{\n args: {\n value: 'Click me',\n variant: MainVariant.PRIMARY,\n disabled: false,\n dark: false,\n full: false,\n iconLeft: null,\n iconRight: null,\n },\n}"
4754
4754
  }
4755
4755
  ],
4756
4756
  "exports": [
@@ -4759,19 +4759,25 @@
4759
4759
  "name": "default",
4760
4760
  "declaration": {
4761
4761
  "name": "meta",
4762
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4762
+ "module": "src/tuix-button/stories/tuix-button.stories.ts"
4763
4763
  }
4764
4764
  },
4765
4765
  {
4766
4766
  "kind": "js",
4767
- "name": "tuixDropdownExample",
4767
+ "name": "Button",
4768
4768
  "declaration": {
4769
- "name": "tuixDropdownExample",
4770
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4769
+ "name": "Button",
4770
+ "module": "src/tuix-button/stories/tuix-button.stories.ts"
4771
4771
  }
4772
4772
  }
4773
4773
  ]
4774
4774
  },
4775
+ {
4776
+ "kind": "javascript-module",
4777
+ "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4778
+ "declarations": [],
4779
+ "exports": []
4780
+ },
4775
4781
  {
4776
4782
  "kind": "javascript-module",
4777
4783
  "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
@@ -4780,47 +4786,47 @@
4780
4786
  },
4781
4787
  {
4782
4788
  "kind": "javascript-module",
4783
- "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
4789
+ "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4784
4790
  "declarations": [
4785
4791
  {
4786
4792
  "kind": "variable",
4787
- "name": "CheckboxIconColorLight",
4793
+ "name": "meta",
4788
4794
  "type": {
4789
4795
  "text": "object"
4790
4796
  },
4791
- "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4797
+ "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: {\n control: 'object',\n },\n options: {\n control: 'object',\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: {\n control: 'text',\n },\n title: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4792
4798
  },
4793
4799
  {
4794
4800
  "kind": "variable",
4795
- "name": "CheckboxIconColorDark",
4801
+ "name": "tuixDropdownObjectList",
4796
4802
  "type": {
4797
- "text": "object"
4803
+ "text": "Story"
4798
4804
  },
4799
- "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4805
+ "default": "{\n args: {\n value: '458ac6ca-9a57-48c5-8abf-768460397607',\n // value: { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' }, // This works too\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397602' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397603' },\n { name: 'apple2', value: '458ac6ca-9a57-48c5-8abf-768460397604' },\n { name: 'orange2', value: '458ac6ca-9a57-48c5-8abf-768460397605' },\n { name: 'tomato2', value: '458ac6ca-9a57-48c5-8abf-768460397606' },\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397607' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397608' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397609' },\n ],\n type: DropdownType.SEARCH,\n },\n}"
4800
4806
  }
4801
4807
  ],
4802
4808
  "exports": [
4803
4809
  {
4804
4810
  "kind": "js",
4805
- "name": "CheckboxIconColorLight",
4811
+ "name": "default",
4806
4812
  "declaration": {
4807
- "name": "CheckboxIconColorLight",
4808
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4813
+ "name": "meta",
4814
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4809
4815
  }
4810
4816
  },
4811
4817
  {
4812
4818
  "kind": "js",
4813
- "name": "CheckboxIconColorDark",
4819
+ "name": "tuixDropdownObjectList",
4814
4820
  "declaration": {
4815
- "name": "CheckboxIconColorDark",
4816
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4821
+ "name": "tuixDropdownObjectList",
4822
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4817
4823
  }
4818
4824
  }
4819
4825
  ]
4820
4826
  },
4821
4827
  {
4822
4828
  "kind": "javascript-module",
4823
- "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4829
+ "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4824
4830
  "declarations": [
4825
4831
  {
4826
4832
  "kind": "variable",
@@ -4828,15 +4834,15 @@
4828
4834
  "type": {
4829
4835
  "text": "object"
4830
4836
  },
4831
- "default": "{\n title: 'TuixCheckbox',\n component: 'tuix-checkbox',\n argTypes: {\n checked: {\n control: 'boolean',\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n labelSide: {\n control: 'select',\n options: [...Object.values(CheckboxLabelSide)],\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh; ${args.dark\n ? 'background-color:' + Palette.BLACK + ';'\n : ''}}\"\n >\n <div\n style=\"max-width: 300px; display: flex; gap: 16px; flex-direction: column\"\n >\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n label=\"${args.label}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n ></tuix-checkbox>\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n ?dark=\"${args.dark}\"\n >\n Label from slot using a long text with max-width container\n </tuix-text>\n </tuix-checkbox>\n </div>\n </div>\n `,\n}"
4837
+ "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: { control: 'text' },\n\n options: {\n control: 'select',\n options: ['fruits', 'countries'],\n mapping: {\n fruits: fruits,\n countries: countryPhoneArray,\n },\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: { control: 'text' },\n title: { control: 'text' },\n description: { control: 'text' },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html`<div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4832
4838
  },
4833
4839
  {
4834
4840
  "kind": "variable",
4835
- "name": "tuixCheckboxExample",
4841
+ "name": "tuixDropdownExample",
4836
4842
  "type": {
4837
4843
  "text": "Story"
4838
4844
  },
4839
- "default": "{\n args: {\n checked: false,\n disabled: false,\n dark: false,\n error: false,\n label: 'Label from property',\n labelSide: CheckboxLabelSide.RIGHT,\n },\n}"
4845
+ "default": "{\n args: {\n value: 'apple2',\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n 'apple',\n 'orange',\n 'tomato',\n 'apple2',\n 'orange2',\n 'tomato2',\n 'apple3',\n 'orange3',\n 'tomato3',\n ],\n type: DropdownType.SINGLE,\n },\n}"
4840
4846
  }
4841
4847
  ],
4842
4848
  "exports": [
@@ -4845,25 +4851,19 @@
4845
4851
  "name": "default",
4846
4852
  "declaration": {
4847
4853
  "name": "meta",
4848
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4854
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4849
4855
  }
4850
4856
  },
4851
4857
  {
4852
4858
  "kind": "js",
4853
- "name": "tuixCheckboxExample",
4859
+ "name": "tuixDropdownExample",
4854
4860
  "declaration": {
4855
- "name": "tuixCheckboxExample",
4856
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4861
+ "name": "tuixDropdownExample",
4862
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4857
4863
  }
4858
4864
  }
4859
4865
  ]
4860
4866
  },
4861
- {
4862
- "kind": "javascript-module",
4863
- "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4864
- "declarations": [],
4865
- "exports": []
4866
- },
4867
4867
  {
4868
4868
  "kind": "javascript-module",
4869
4869
  "path": "src/tuix-icon/enums/tuix-icon.enums.ts",
@@ -5322,7 +5322,7 @@
5322
5322
  "type": {
5323
5323
  "text": "Record<TextVariant, string>"
5324
5324
  },
5325
- "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
5325
+ "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n [TextVariant.FIELD_TEXT]: Palette.PRIMARY_900,\n}"
5326
5326
  },
5327
5327
  {
5328
5328
  "kind": "variable",
@@ -5330,7 +5330,7 @@
5330
5330
  "type": {
5331
5331
  "text": "Record<TextVariant, string>"
5332
5332
  },
5333
- "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
5333
+ "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n [TextVariant.FIELD_TEXT]: DarkPalette.PRIMARY_50,\n}"
5334
5334
  }
5335
5335
  ],
5336
5336
  "exports": [
@@ -52,18 +52,16 @@
52
52
  --tuix-dark-color-#bbadff: SECONDARY;
53
53
  --tuix-dark-color-white: #FFFFFF;
54
54
  --tuix-dark-color-black: #0F1117;
55
- --tuix-dark-color-neutral-200: #C9C8D3;
56
- --tuix-dark-color-neutral-600: #8A8894;
55
+ --tuix-dark-color-neutral-200: #FAFAFA;
56
+ --tuix-dark-color-neutral-600: #B6B6B6;
57
57
  --tuix-dark-color-success: #6BC49D;
58
- --tuix-dark-color-success-50: #F1F9F5;
58
+ --tuix-dark-color-success-50: #283F33;
59
59
  --tuix-dark-color-validation: #F5C66A;
60
- --tuix-dark-color-validation-50: #FFFBF4;
61
- --tuix-dark-color-#fffbf4: VALIDATION_50;
60
+ --tuix-dark-color-validation-50: #3F382D;
62
61
  --tuix-dark-color-validation-200: #FFEAC1;
63
62
  --tuix-dark-color-#ffeac1: VALIDATION_200;
64
63
  --tuix-dark-color-error: #FF7A7A;
65
- --tuix-dark-color-error-50: #FFF5F5;
66
- --tuix-dark-color-#fff5f5: ERROR_50;
64
+ --tuix-dark-color-error-50: #3F282D;
67
65
  --tuix-dark-color-error-200: #FFD8D8;
68
66
  --tuix-dark-color-#ffd8d8: ERROR_200;
69
67
  --tuix-dark-color-section-bg: #0E0E0E;
@@ -30,7 +30,8 @@ export declare enum TextVariant {
30
30
  DARK_BLUE = "dark_blue",
31
31
  TITLE_BLUE = "title_blue",
32
32
  SECTION = "section",
33
- STROKE = "stroke"
33
+ STROKE = "stroke",
34
+ FIELD_TEXT = "field_text"
34
35
  }
35
36
  export declare const colorText: Record<TextVariant, string>;
36
37
  export declare const colorTextDark: Record<TextVariant, string>;
@@ -35,6 +35,7 @@ export var TextVariant;
35
35
  TextVariant["TITLE_BLUE"] = "title_blue";
36
36
  TextVariant["SECTION"] = "section";
37
37
  TextVariant["STROKE"] = "stroke";
38
+ TextVariant["FIELD_TEXT"] = "field_text";
38
39
  })(TextVariant || (TextVariant = {}));
39
40
  export const colorText = {
40
41
  [TextVariant.MAIN]: Palette.MAIN,
@@ -53,6 +54,7 @@ export const colorText = {
53
54
  [TextVariant.DARK]: Palette.BLACK,
54
55
  [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,
55
56
  [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,
57
+ [TextVariant.FIELD_TEXT]: Palette.PRIMARY_900,
56
58
  };
57
59
  export const colorTextDark = {
58
60
  ...colorText,
@@ -69,4 +71,5 @@ export const colorTextDark = {
69
71
  [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,
70
72
  [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,
71
73
  [TextVariant.SECTION]: Palette.PRIMARY_300,
74
+ [TextVariant.FIELD_TEXT]: DarkPalette.PRIMARY_50,
72
75
  };
@@ -14,15 +14,15 @@ export declare enum DarkPalette {
14
14
  SECONDARY = "#BBADFF",
15
15
  WHITE = "#FFFFFF",
16
16
  BLACK = "#0F1117",
17
- NEUTRAL_200 = "#C9C8D3",
18
- NEUTRAL_600 = "#8A8894",
17
+ NEUTRAL_200 = "#FAFAFA",
18
+ NEUTRAL_600 = "#B6B6B6",
19
19
  SUCCESS = "#6BC49D",
20
- SUCCESS_50 = "#F1F9F5",
20
+ SUCCESS_50 = "#283F33",
21
21
  VALIDATION = "#F5C66A",
22
- VALIDATION_50 = "#FFFBF4",
22
+ VALIDATION_50 = "#3F382D",
23
23
  VALIDATION_200 = "#FFEAC1",
24
24
  ERROR = "#FF7A7A",
25
- ERROR_50 = "#FFF5F5",
25
+ ERROR_50 = "#3F282D",
26
26
  ERROR_200 = "#FFD8D8",
27
27
  SECTION_BG = "#0E0E0E",
28
28
  STROKE_GREY = "#32355F",
@@ -15,15 +15,15 @@ export var DarkPalette;
15
15
  DarkPalette["SECONDARY"] = "#BBADFF";
16
16
  DarkPalette["WHITE"] = "#FFFFFF";
17
17
  DarkPalette["BLACK"] = "#0F1117";
18
- DarkPalette["NEUTRAL_200"] = "#C9C8D3";
19
- DarkPalette["NEUTRAL_600"] = "#8A8894";
18
+ DarkPalette["NEUTRAL_200"] = "#FAFAFA";
19
+ DarkPalette["NEUTRAL_600"] = "#B6B6B6";
20
20
  DarkPalette["SUCCESS"] = "#6BC49D";
21
- DarkPalette["SUCCESS_50"] = "#F1F9F5";
21
+ DarkPalette["SUCCESS_50"] = "#283F33";
22
22
  DarkPalette["VALIDATION"] = "#F5C66A";
23
- DarkPalette["VALIDATION_50"] = "#FFFBF4";
23
+ DarkPalette["VALIDATION_50"] = "#3F382D";
24
24
  DarkPalette["VALIDATION_200"] = "#FFEAC1";
25
25
  DarkPalette["ERROR"] = "#FF7A7A";
26
- DarkPalette["ERROR_50"] = "#FFF5F5";
26
+ DarkPalette["ERROR_50"] = "#3F282D";
27
27
  DarkPalette["ERROR_200"] = "#FFD8D8";
28
28
  DarkPalette["SECTION_BG"] = "#0E0E0E";
29
29
  DarkPalette["STROKE_GREY"] = "#32355F";
package/package.json CHANGED
@@ -138,5 +138,5 @@
138
138
  "test": "echo \"No tests configured\""
139
139
  },
140
140
  "type": "module",
141
- "version": "0.95.2"
141
+ "version": "0.96.0"
142
142
  }