tuix-webcomponents 0.95.0 → 0.95.1

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.
@@ -899,244 +899,6 @@
899
899
  }
900
900
  ]
901
901
  },
902
- {
903
- "kind": "javascript-module",
904
- "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
905
- "declarations": [
906
- {
907
- "kind": "variable",
908
- "name": "hostStyles",
909
- "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`"
910
- },
911
- {
912
- "kind": "variable",
913
- "name": "checkboxContainerStyles",
914
- "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`"
915
- },
916
- {
917
- "kind": "variable",
918
- "name": "checkboxCheckmarkStyles",
919
- "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`"
920
- },
921
- {
922
- "kind": "variable",
923
- "name": "checkboxLabelStyles",
924
- "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`"
925
- }
926
- ],
927
- "exports": [
928
- {
929
- "kind": "js",
930
- "name": "hostStyles",
931
- "declaration": {
932
- "name": "hostStyles",
933
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
934
- }
935
- },
936
- {
937
- "kind": "js",
938
- "name": "checkboxContainerStyles",
939
- "declaration": {
940
- "name": "checkboxContainerStyles",
941
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
942
- }
943
- },
944
- {
945
- "kind": "js",
946
- "name": "checkboxCheckmarkStyles",
947
- "declaration": {
948
- "name": "checkboxCheckmarkStyles",
949
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
950
- }
951
- },
952
- {
953
- "kind": "js",
954
- "name": "checkboxLabelStyles",
955
- "declaration": {
956
- "name": "checkboxLabelStyles",
957
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
958
- }
959
- }
960
- ]
961
- },
962
- {
963
- "kind": "javascript-module",
964
- "path": "src/tuix-checkbox/TuixCheckbox.ts",
965
- "declarations": [
966
- {
967
- "kind": "class",
968
- "description": "",
969
- "name": "TuixCheckbox",
970
- "members": [
971
- {
972
- "kind": "field",
973
- "name": "checked",
974
- "type": {
975
- "text": "boolean"
976
- },
977
- "default": "false",
978
- "attribute": "checked"
979
- },
980
- {
981
- "kind": "field",
982
- "name": "disabled",
983
- "type": {
984
- "text": "boolean"
985
- },
986
- "default": "false",
987
- "attribute": "disabled",
988
- "reflects": true
989
- },
990
- {
991
- "kind": "field",
992
- "name": "dark",
993
- "type": {
994
- "text": "boolean"
995
- },
996
- "default": "false",
997
- "attribute": "dark",
998
- "reflects": true
999
- },
1000
- {
1001
- "kind": "field",
1002
- "name": "error",
1003
- "type": {
1004
- "text": "boolean"
1005
- },
1006
- "default": "false",
1007
- "attribute": "error",
1008
- "reflects": true
1009
- },
1010
- {
1011
- "kind": "field",
1012
- "name": "label",
1013
- "type": {
1014
- "text": "string"
1015
- },
1016
- "default": "''",
1017
- "attribute": "label"
1018
- },
1019
- {
1020
- "kind": "field",
1021
- "name": "labelSide",
1022
- "type": {
1023
- "text": "CheckboxLabelSide"
1024
- },
1025
- "attribute": "labelSide"
1026
- },
1027
- {
1028
- "kind": "method",
1029
- "name": "_onCheckboxChange",
1030
- "privacy": "private",
1031
- "parameters": [
1032
- {
1033
- "name": "event",
1034
- "type": {
1035
- "text": "InputEvent"
1036
- }
1037
- }
1038
- ]
1039
- },
1040
- {
1041
- "kind": "method",
1042
- "name": "_getIconMode",
1043
- "privacy": "private"
1044
- },
1045
- {
1046
- "kind": "method",
1047
- "name": "_getFullContainerClasses",
1048
- "privacy": "private",
1049
- "return": {
1050
- "type": {
1051
- "text": "ClassInfo"
1052
- }
1053
- }
1054
- }
1055
- ],
1056
- "events": [
1057
- {
1058
- "name": "change",
1059
- "type": {
1060
- "text": "CustomEvent"
1061
- }
1062
- }
1063
- ],
1064
- "attributes": [
1065
- {
1066
- "name": "checked",
1067
- "type": {
1068
- "text": "boolean"
1069
- },
1070
- "default": "false",
1071
- "fieldName": "checked"
1072
- },
1073
- {
1074
- "name": "disabled",
1075
- "type": {
1076
- "text": "boolean"
1077
- },
1078
- "default": "false",
1079
- "fieldName": "disabled"
1080
- },
1081
- {
1082
- "name": "dark",
1083
- "type": {
1084
- "text": "boolean"
1085
- },
1086
- "default": "false",
1087
- "fieldName": "dark"
1088
- },
1089
- {
1090
- "name": "error",
1091
- "type": {
1092
- "text": "boolean"
1093
- },
1094
- "default": "false",
1095
- "fieldName": "error"
1096
- },
1097
- {
1098
- "name": "label",
1099
- "type": {
1100
- "text": "string"
1101
- },
1102
- "default": "''",
1103
- "fieldName": "label"
1104
- },
1105
- {
1106
- "name": "labelSide",
1107
- "type": {
1108
- "text": "CheckboxLabelSide"
1109
- },
1110
- "fieldName": "labelSide"
1111
- }
1112
- ],
1113
- "superclass": {
1114
- "name": "LitElement",
1115
- "package": "lit"
1116
- },
1117
- "tagName": "tuix-checkbox",
1118
- "customElement": true
1119
- }
1120
- ],
1121
- "exports": [
1122
- {
1123
- "kind": "js",
1124
- "name": "TuixCheckbox",
1125
- "declaration": {
1126
- "name": "TuixCheckbox",
1127
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1128
- }
1129
- },
1130
- {
1131
- "kind": "custom-element-definition",
1132
- "name": "tuix-checkbox",
1133
- "declaration": {
1134
- "name": "TuixCheckbox",
1135
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1136
- }
1137
- }
1138
- ]
1139
- },
1140
902
  {
1141
903
  "kind": "javascript-module",
1142
904
  "path": "src/tuix-dropdown/TuixDropdown.styles.ts",
@@ -1715,55 +1477,81 @@
1715
1477
  },
1716
1478
  {
1717
1479
  "kind": "javascript-module",
1718
- "path": "src/tuix-icon-button/TuixIconButton.ts",
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",
1719
1541
  "declarations": [
1720
1542
  {
1721
1543
  "kind": "class",
1722
1544
  "description": "",
1723
- "name": "TuixIconButton",
1545
+ "name": "TuixCheckbox",
1724
1546
  "members": [
1725
1547
  {
1726
1548
  "kind": "field",
1727
- "name": "icon",
1728
- "attribute": "icon"
1729
- },
1730
- {
1731
- "kind": "method",
1732
- "name": "_updateIconColor",
1733
- "privacy": "protected",
1734
- "return": {
1735
- "type": {
1736
- "text": "void"
1737
- }
1738
- },
1739
- "inheritedFrom": {
1740
- "name": "TuixBaseButton",
1741
- "module": "src/tuix-button/TuixBaseButton.ts"
1742
- }
1743
- },
1744
- {
1745
- "kind": "method",
1746
- "name": "_buttonContent",
1747
- "privacy": "protected",
1748
- "return": {
1749
- "type": {
1750
- "text": "TemplateResult"
1751
- }
1549
+ "name": "checked",
1550
+ "type": {
1551
+ "text": "boolean"
1752
1552
  },
1753
- "inheritedFrom": {
1754
- "name": "TuixBaseButton",
1755
- "module": "src/tuix-button/TuixBaseButton.ts"
1756
- }
1757
- },
1758
- {
1759
- "kind": "field",
1760
- "name": "variant",
1761
- "attribute": "variant",
1762
- "reflects": true,
1763
- "inheritedFrom": {
1764
- "name": "TuixBaseButton",
1765
- "module": "src/tuix-button/TuixBaseButton.ts"
1766
- }
1553
+ "default": "false",
1554
+ "attribute": "checked"
1767
1555
  },
1768
1556
  {
1769
1557
  "kind": "field",
@@ -1773,11 +1561,7 @@
1773
1561
  },
1774
1562
  "default": "false",
1775
1563
  "attribute": "disabled",
1776
- "reflects": true,
1777
- "inheritedFrom": {
1778
- "name": "TuixBaseButton",
1779
- "module": "src/tuix-button/TuixBaseButton.ts"
1780
- }
1564
+ "reflects": true
1781
1565
  },
1782
1566
  {
1783
1567
  "kind": "field",
@@ -1787,145 +1571,144 @@
1787
1571
  },
1788
1572
  "default": "false",
1789
1573
  "attribute": "dark",
1790
- "reflects": true,
1791
- "inheritedFrom": {
1792
- "name": "TuixBaseButton",
1793
- "module": "src/tuix-button/TuixBaseButton.ts"
1794
- }
1574
+ "reflects": true
1795
1575
  },
1796
1576
  {
1797
1577
  "kind": "field",
1798
- "name": "iconColor",
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",
1799
1589
  "type": {
1800
1590
  "text": "string"
1801
1591
  },
1802
- "privacy": "protected",
1803
1592
  "default": "''",
1804
- "inheritedFrom": {
1805
- "name": "TuixBaseButton",
1806
- "module": "src/tuix-button/TuixBaseButton.ts"
1807
- }
1593
+ "attribute": "label"
1594
+ },
1595
+ {
1596
+ "kind": "field",
1597
+ "name": "labelSide",
1598
+ "type": {
1599
+ "text": "CheckboxLabelSide"
1600
+ },
1601
+ "attribute": "labelSide"
1808
1602
  },
1809
1603
  {
1810
1604
  "kind": "method",
1811
- "name": "_getTextColor",
1812
- "privacy": "protected",
1813
- "inheritedFrom": {
1814
- "name": "TuixBaseButton",
1815
- "module": "src/tuix-button/TuixBaseButton.ts"
1816
- }
1605
+ "name": "_onCheckboxChange",
1606
+ "privacy": "private",
1607
+ "parameters": [
1608
+ {
1609
+ "name": "event",
1610
+ "type": {
1611
+ "text": "InputEvent"
1612
+ }
1613
+ }
1614
+ ]
1817
1615
  },
1818
1616
  {
1819
1617
  "kind": "method",
1820
- "name": "_handleClick",
1821
- "privacy": "protected",
1822
- "inheritedFrom": {
1823
- "name": "TuixBaseButton",
1824
- "module": "src/tuix-button/TuixBaseButton.ts"
1825
- }
1618
+ "name": "_getIconMode",
1619
+ "privacy": "private"
1826
1620
  },
1827
1621
  {
1828
1622
  "kind": "method",
1829
- "name": "_iconTemplate",
1830
- "privacy": "protected",
1623
+ "name": "_getFullContainerClasses",
1624
+ "privacy": "private",
1831
1625
  "return": {
1832
1626
  "type": {
1833
- "text": "TemplateResult"
1834
- }
1835
- },
1836
- "parameters": [
1837
- {
1838
- "name": "iconName",
1839
- "type": {
1840
- "text": "IconName"
1841
- }
1842
- },
1843
- {
1844
- "name": "iconSize",
1845
- "type": {
1846
- "text": "IconSizeVariant"
1847
- }
1627
+ "text": "ClassInfo"
1848
1628
  }
1849
- ],
1850
- "inheritedFrom": {
1851
- "name": "TuixBaseButton",
1852
- "module": "src/tuix-button/TuixBaseButton.ts"
1629
+ }
1630
+ }
1631
+ ],
1632
+ "events": [
1633
+ {
1634
+ "name": "change",
1635
+ "type": {
1636
+ "text": "CustomEvent"
1853
1637
  }
1854
1638
  }
1855
1639
  ],
1856
1640
  "attributes": [
1857
1641
  {
1858
- "name": "icon",
1859
- "fieldName": "icon"
1642
+ "name": "checked",
1643
+ "type": {
1644
+ "text": "boolean"
1645
+ },
1646
+ "default": "false",
1647
+ "fieldName": "checked"
1860
1648
  },
1861
1649
  {
1862
- "name": "variant",
1863
- "fieldName": "variant",
1864
- "inheritedFrom": {
1865
- "name": "TuixBaseButton",
1866
- "module": "src/tuix-button/TuixBaseButton.ts"
1867
- }
1650
+ "name": "disabled",
1651
+ "type": {
1652
+ "text": "boolean"
1653
+ },
1654
+ "default": "false",
1655
+ "fieldName": "disabled"
1868
1656
  },
1869
1657
  {
1870
- "name": "disabled",
1658
+ "name": "dark",
1871
1659
  "type": {
1872
1660
  "text": "boolean"
1873
1661
  },
1874
1662
  "default": "false",
1875
- "fieldName": "disabled",
1876
- "inheritedFrom": {
1877
- "name": "TuixBaseButton",
1878
- "module": "src/tuix-button/TuixBaseButton.ts"
1879
- }
1663
+ "fieldName": "dark"
1880
1664
  },
1881
1665
  {
1882
- "name": "dark",
1666
+ "name": "error",
1883
1667
  "type": {
1884
1668
  "text": "boolean"
1885
1669
  },
1886
1670
  "default": "false",
1887
- "fieldName": "dark",
1888
- "inheritedFrom": {
1889
- "name": "TuixBaseButton",
1890
- "module": "src/tuix-button/TuixBaseButton.ts"
1891
- }
1892
- }
1893
- ],
1894
- "superclass": {
1895
- "name": "TuixBaseButton",
1896
- "module": "/src/tuix-button/TuixBaseButton"
1897
- },
1898
- "tagName": "tuix-icon-button",
1899
- "customElement": true,
1900
- "events": [
1671
+ "fieldName": "error"
1672
+ },
1901
1673
  {
1902
- "name": "customClick",
1674
+ "name": "label",
1903
1675
  "type": {
1904
- "text": "CustomEvent"
1676
+ "text": "string"
1905
1677
  },
1906
- "inheritedFrom": {
1907
- "name": "TuixBaseButton",
1908
- "module": "src/tuix-button/TuixBaseButton.ts"
1909
- }
1678
+ "default": "''",
1679
+ "fieldName": "label"
1680
+ },
1681
+ {
1682
+ "name": "labelSide",
1683
+ "type": {
1684
+ "text": "CheckboxLabelSide"
1685
+ },
1686
+ "fieldName": "labelSide"
1910
1687
  }
1911
- ]
1688
+ ],
1689
+ "superclass": {
1690
+ "name": "LitElement",
1691
+ "package": "lit"
1692
+ },
1693
+ "tagName": "tuix-checkbox",
1694
+ "customElement": true
1912
1695
  }
1913
1696
  ],
1914
1697
  "exports": [
1915
1698
  {
1916
1699
  "kind": "js",
1917
- "name": "TuixIconButton",
1700
+ "name": "TuixCheckbox",
1918
1701
  "declaration": {
1919
- "name": "TuixIconButton",
1920
- "module": "src/tuix-icon-button/TuixIconButton.ts"
1702
+ "name": "TuixCheckbox",
1703
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
1921
1704
  }
1922
1705
  },
1923
1706
  {
1924
1707
  "kind": "custom-element-definition",
1925
- "name": "tuix-icon-button",
1708
+ "name": "tuix-checkbox",
1926
1709
  "declaration": {
1927
- "name": "TuixIconButton",
1928
- "module": "src/tuix-icon-button/TuixIconButton.ts"
1710
+ "name": "TuixCheckbox",
1711
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
1929
1712
  }
1930
1713
  }
1931
1714
  ]
@@ -2704,45 +2487,262 @@
2704
2487
  "fieldName": "dark"
2705
2488
  },
2706
2489
  {
2707
- "name": "readonly",
2490
+ "name": "readonly",
2491
+ "type": {
2492
+ "text": "boolean"
2493
+ },
2494
+ "default": "false",
2495
+ "fieldName": "readonly"
2496
+ },
2497
+ {
2498
+ "name": "autofocus",
2499
+ "type": {
2500
+ "text": "boolean"
2501
+ },
2502
+ "default": "false",
2503
+ "fieldName": "autofocus"
2504
+ }
2505
+ ],
2506
+ "superclass": {
2507
+ "name": "LitElement",
2508
+ "package": "lit"
2509
+ },
2510
+ "tagName": "tuix-input",
2511
+ "customElement": true
2512
+ }
2513
+ ],
2514
+ "exports": [
2515
+ {
2516
+ "kind": "js",
2517
+ "name": "TuixInput",
2518
+ "declaration": {
2519
+ "name": "TuixInput",
2520
+ "module": "src/tuix-input/TuixInput.ts"
2521
+ }
2522
+ },
2523
+ {
2524
+ "kind": "custom-element-definition",
2525
+ "name": "tuix-input",
2526
+ "declaration": {
2527
+ "name": "TuixInput",
2528
+ "module": "src/tuix-input/TuixInput.ts"
2529
+ }
2530
+ }
2531
+ ]
2532
+ },
2533
+ {
2534
+ "kind": "javascript-module",
2535
+ "path": "src/tuix-icon-button/TuixIconButton.ts",
2536
+ "declarations": [
2537
+ {
2538
+ "kind": "class",
2539
+ "description": "",
2540
+ "name": "TuixIconButton",
2541
+ "members": [
2542
+ {
2543
+ "kind": "field",
2544
+ "name": "icon",
2545
+ "attribute": "icon"
2546
+ },
2547
+ {
2548
+ "kind": "method",
2549
+ "name": "_updateIconColor",
2550
+ "privacy": "protected",
2551
+ "return": {
2552
+ "type": {
2553
+ "text": "void"
2554
+ }
2555
+ },
2556
+ "inheritedFrom": {
2557
+ "name": "TuixBaseButton",
2558
+ "module": "src/tuix-button/TuixBaseButton.ts"
2559
+ }
2560
+ },
2561
+ {
2562
+ "kind": "method",
2563
+ "name": "_buttonContent",
2564
+ "privacy": "protected",
2565
+ "return": {
2566
+ "type": {
2567
+ "text": "TemplateResult"
2568
+ }
2569
+ },
2570
+ "inheritedFrom": {
2571
+ "name": "TuixBaseButton",
2572
+ "module": "src/tuix-button/TuixBaseButton.ts"
2573
+ }
2574
+ },
2575
+ {
2576
+ "kind": "field",
2577
+ "name": "variant",
2578
+ "attribute": "variant",
2579
+ "reflects": true,
2580
+ "inheritedFrom": {
2581
+ "name": "TuixBaseButton",
2582
+ "module": "src/tuix-button/TuixBaseButton.ts"
2583
+ }
2584
+ },
2585
+ {
2586
+ "kind": "field",
2587
+ "name": "disabled",
2588
+ "type": {
2589
+ "text": "boolean"
2590
+ },
2591
+ "default": "false",
2592
+ "attribute": "disabled",
2593
+ "reflects": true,
2594
+ "inheritedFrom": {
2595
+ "name": "TuixBaseButton",
2596
+ "module": "src/tuix-button/TuixBaseButton.ts"
2597
+ }
2598
+ },
2599
+ {
2600
+ "kind": "field",
2601
+ "name": "dark",
2602
+ "type": {
2603
+ "text": "boolean"
2604
+ },
2605
+ "default": "false",
2606
+ "attribute": "dark",
2607
+ "reflects": true,
2608
+ "inheritedFrom": {
2609
+ "name": "TuixBaseButton",
2610
+ "module": "src/tuix-button/TuixBaseButton.ts"
2611
+ }
2612
+ },
2613
+ {
2614
+ "kind": "field",
2615
+ "name": "iconColor",
2616
+ "type": {
2617
+ "text": "string"
2618
+ },
2619
+ "privacy": "protected",
2620
+ "default": "''",
2621
+ "inheritedFrom": {
2622
+ "name": "TuixBaseButton",
2623
+ "module": "src/tuix-button/TuixBaseButton.ts"
2624
+ }
2625
+ },
2626
+ {
2627
+ "kind": "method",
2628
+ "name": "_getTextColor",
2629
+ "privacy": "protected",
2630
+ "inheritedFrom": {
2631
+ "name": "TuixBaseButton",
2632
+ "module": "src/tuix-button/TuixBaseButton.ts"
2633
+ }
2634
+ },
2635
+ {
2636
+ "kind": "method",
2637
+ "name": "_handleClick",
2638
+ "privacy": "protected",
2639
+ "inheritedFrom": {
2640
+ "name": "TuixBaseButton",
2641
+ "module": "src/tuix-button/TuixBaseButton.ts"
2642
+ }
2643
+ },
2644
+ {
2645
+ "kind": "method",
2646
+ "name": "_iconTemplate",
2647
+ "privacy": "protected",
2648
+ "return": {
2649
+ "type": {
2650
+ "text": "TemplateResult"
2651
+ }
2652
+ },
2653
+ "parameters": [
2654
+ {
2655
+ "name": "iconName",
2656
+ "type": {
2657
+ "text": "IconName"
2658
+ }
2659
+ },
2660
+ {
2661
+ "name": "iconSize",
2662
+ "type": {
2663
+ "text": "IconSizeVariant"
2664
+ }
2665
+ }
2666
+ ],
2667
+ "inheritedFrom": {
2668
+ "name": "TuixBaseButton",
2669
+ "module": "src/tuix-button/TuixBaseButton.ts"
2670
+ }
2671
+ }
2672
+ ],
2673
+ "attributes": [
2674
+ {
2675
+ "name": "icon",
2676
+ "fieldName": "icon"
2677
+ },
2678
+ {
2679
+ "name": "variant",
2680
+ "fieldName": "variant",
2681
+ "inheritedFrom": {
2682
+ "name": "TuixBaseButton",
2683
+ "module": "src/tuix-button/TuixBaseButton.ts"
2684
+ }
2685
+ },
2686
+ {
2687
+ "name": "disabled",
2708
2688
  "type": {
2709
2689
  "text": "boolean"
2710
2690
  },
2711
2691
  "default": "false",
2712
- "fieldName": "readonly"
2692
+ "fieldName": "disabled",
2693
+ "inheritedFrom": {
2694
+ "name": "TuixBaseButton",
2695
+ "module": "src/tuix-button/TuixBaseButton.ts"
2696
+ }
2713
2697
  },
2714
2698
  {
2715
- "name": "autofocus",
2699
+ "name": "dark",
2716
2700
  "type": {
2717
2701
  "text": "boolean"
2718
2702
  },
2719
2703
  "default": "false",
2720
- "fieldName": "autofocus"
2704
+ "fieldName": "dark",
2705
+ "inheritedFrom": {
2706
+ "name": "TuixBaseButton",
2707
+ "module": "src/tuix-button/TuixBaseButton.ts"
2708
+ }
2721
2709
  }
2722
2710
  ],
2723
2711
  "superclass": {
2724
- "name": "LitElement",
2725
- "package": "lit"
2712
+ "name": "TuixBaseButton",
2713
+ "module": "/src/tuix-button/TuixBaseButton"
2726
2714
  },
2727
- "tagName": "tuix-input",
2728
- "customElement": true
2715
+ "tagName": "tuix-icon-button",
2716
+ "customElement": true,
2717
+ "events": [
2718
+ {
2719
+ "name": "customClick",
2720
+ "type": {
2721
+ "text": "CustomEvent"
2722
+ },
2723
+ "inheritedFrom": {
2724
+ "name": "TuixBaseButton",
2725
+ "module": "src/tuix-button/TuixBaseButton.ts"
2726
+ }
2727
+ }
2728
+ ]
2729
2729
  }
2730
2730
  ],
2731
2731
  "exports": [
2732
2732
  {
2733
2733
  "kind": "js",
2734
- "name": "TuixInput",
2734
+ "name": "TuixIconButton",
2735
2735
  "declaration": {
2736
- "name": "TuixInput",
2737
- "module": "src/tuix-input/TuixInput.ts"
2736
+ "name": "TuixIconButton",
2737
+ "module": "src/tuix-icon-button/TuixIconButton.ts"
2738
2738
  }
2739
2739
  },
2740
2740
  {
2741
2741
  "kind": "custom-element-definition",
2742
- "name": "tuix-input",
2742
+ "name": "tuix-icon-button",
2743
2743
  "declaration": {
2744
- "name": "TuixInput",
2745
- "module": "src/tuix-input/TuixInput.ts"
2744
+ "name": "TuixIconButton",
2745
+ "module": "src/tuix-icon-button/TuixIconButton.ts"
2746
2746
  }
2747
2747
  }
2748
2748
  ]
@@ -4616,6 +4616,12 @@
4616
4616
  }
4617
4617
  ]
4618
4618
  },
4619
+ {
4620
+ "kind": "javascript-module",
4621
+ "path": "src/tuix-button/interfaces/tuix-button.interface.ts",
4622
+ "declarations": [],
4623
+ "exports": []
4624
+ },
4619
4625
  {
4620
4626
  "kind": "javascript-module",
4621
4627
  "path": "src/tuix-button/enums/tuix-button.enums.ts",
@@ -4640,12 +4646,6 @@
4640
4646
  }
4641
4647
  ]
4642
4648
  },
4643
- {
4644
- "kind": "javascript-module",
4645
- "path": "src/tuix-button/interfaces/tuix-button.interface.ts",
4646
- "declarations": [],
4647
- "exports": []
4648
- },
4649
4649
  {
4650
4650
  "kind": "javascript-module",
4651
4651
  "path": "src/tuix-button/stories/tuix-button.stories.ts",
@@ -4688,53 +4688,13 @@
4688
4688
  },
4689
4689
  {
4690
4690
  "kind": "javascript-module",
4691
- "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
4692
- "declarations": [
4693
- {
4694
- "kind": "variable",
4695
- "name": "CheckboxIconColorLight",
4696
- "type": {
4697
- "text": "object"
4698
- },
4699
- "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4700
- },
4701
- {
4702
- "kind": "variable",
4703
- "name": "CheckboxIconColorDark",
4704
- "type": {
4705
- "text": "object"
4706
- },
4707
- "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4708
- }
4709
- ],
4710
- "exports": [
4711
- {
4712
- "kind": "js",
4713
- "name": "CheckboxIconColorLight",
4714
- "declaration": {
4715
- "name": "CheckboxIconColorLight",
4716
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4717
- }
4718
- },
4719
- {
4720
- "kind": "js",
4721
- "name": "CheckboxIconColorDark",
4722
- "declaration": {
4723
- "name": "CheckboxIconColorDark",
4724
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4725
- }
4726
- }
4727
- ]
4728
- },
4729
- {
4730
- "kind": "javascript-module",
4731
- "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4691
+ "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4732
4692
  "declarations": [],
4733
4693
  "exports": []
4734
4694
  },
4735
4695
  {
4736
4696
  "kind": "javascript-module",
4737
- "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4697
+ "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4738
4698
  "declarations": [
4739
4699
  {
4740
4700
  "kind": "variable",
@@ -4742,15 +4702,15 @@
4742
4702
  "type": {
4743
4703
  "text": "object"
4744
4704
  },
4745
- "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}"
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}"
4746
4706
  },
4747
4707
  {
4748
4708
  "kind": "variable",
4749
- "name": "tuixCheckboxExample",
4709
+ "name": "tuixDropdownObjectList",
4750
4710
  "type": {
4751
4711
  "text": "Story"
4752
4712
  },
4753
- "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}"
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}"
4754
4714
  }
4755
4715
  ],
4756
4716
  "exports": [
@@ -4759,34 +4719,22 @@
4759
4719
  "name": "default",
4760
4720
  "declaration": {
4761
4721
  "name": "meta",
4762
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4722
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4763
4723
  }
4764
4724
  },
4765
4725
  {
4766
4726
  "kind": "js",
4767
- "name": "tuixCheckboxExample",
4727
+ "name": "tuixDropdownObjectList",
4768
4728
  "declaration": {
4769
- "name": "tuixCheckboxExample",
4770
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4729
+ "name": "tuixDropdownObjectList",
4730
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4771
4731
  }
4772
4732
  }
4773
4733
  ]
4774
4734
  },
4775
4735
  {
4776
4736
  "kind": "javascript-module",
4777
- "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4778
- "declarations": [],
4779
- "exports": []
4780
- },
4781
- {
4782
- "kind": "javascript-module",
4783
- "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4784
- "declarations": [],
4785
- "exports": []
4786
- },
4787
- {
4788
- "kind": "javascript-module",
4789
- "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4737
+ "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4790
4738
  "declarations": [
4791
4739
  {
4792
4740
  "kind": "variable",
@@ -4794,15 +4742,15 @@
4794
4742
  "type": {
4795
4743
  "text": "object"
4796
4744
  },
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}"
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}"
4798
4746
  },
4799
4747
  {
4800
4748
  "kind": "variable",
4801
- "name": "tuixDropdownObjectList",
4749
+ "name": "tuixDropdownExample",
4802
4750
  "type": {
4803
4751
  "text": "Story"
4804
4752
  },
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}"
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}"
4806
4754
  }
4807
4755
  ],
4808
4756
  "exports": [
@@ -4811,62 +4759,68 @@
4811
4759
  "name": "default",
4812
4760
  "declaration": {
4813
4761
  "name": "meta",
4814
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4762
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4815
4763
  }
4816
4764
  },
4817
4765
  {
4818
4766
  "kind": "js",
4819
- "name": "tuixDropdownObjectList",
4767
+ "name": "tuixDropdownExample",
4820
4768
  "declaration": {
4821
- "name": "tuixDropdownObjectList",
4822
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4769
+ "name": "tuixDropdownExample",
4770
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4823
4771
  }
4824
4772
  }
4825
4773
  ]
4826
4774
  },
4827
4775
  {
4828
4776
  "kind": "javascript-module",
4829
- "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4777
+ "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4778
+ "declarations": [],
4779
+ "exports": []
4780
+ },
4781
+ {
4782
+ "kind": "javascript-module",
4783
+ "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
4830
4784
  "declarations": [
4831
4785
  {
4832
4786
  "kind": "variable",
4833
- "name": "meta",
4787
+ "name": "CheckboxIconColorLight",
4834
4788
  "type": {
4835
4789
  "text": "object"
4836
4790
  },
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}"
4791
+ "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4838
4792
  },
4839
4793
  {
4840
4794
  "kind": "variable",
4841
- "name": "tuixDropdownExample",
4795
+ "name": "CheckboxIconColorDark",
4842
4796
  "type": {
4843
- "text": "Story"
4797
+ "text": "object"
4844
4798
  },
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}"
4799
+ "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4846
4800
  }
4847
4801
  ],
4848
4802
  "exports": [
4849
4803
  {
4850
4804
  "kind": "js",
4851
- "name": "default",
4805
+ "name": "CheckboxIconColorLight",
4852
4806
  "declaration": {
4853
- "name": "meta",
4854
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4807
+ "name": "CheckboxIconColorLight",
4808
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4855
4809
  }
4856
4810
  },
4857
4811
  {
4858
4812
  "kind": "js",
4859
- "name": "tuixDropdownExample",
4813
+ "name": "CheckboxIconColorDark",
4860
4814
  "declaration": {
4861
- "name": "tuixDropdownExample",
4862
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4815
+ "name": "CheckboxIconColorDark",
4816
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4863
4817
  }
4864
4818
  }
4865
4819
  ]
4866
4820
  },
4867
4821
  {
4868
4822
  "kind": "javascript-module",
4869
- "path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
4823
+ "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4870
4824
  "declarations": [
4871
4825
  {
4872
4826
  "kind": "variable",
@@ -4874,15 +4828,15 @@
4874
4828
  "type": {
4875
4829
  "text": "object"
4876
4830
  },
4877
- "default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
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}"
4878
4832
  },
4879
4833
  {
4880
4834
  "kind": "variable",
4881
- "name": "iconButton",
4835
+ "name": "tuixCheckboxExample",
4882
4836
  "type": {
4883
4837
  "text": "Story"
4884
4838
  },
4885
- "default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
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}"
4886
4840
  }
4887
4841
  ],
4888
4842
  "exports": [
@@ -4891,19 +4845,25 @@
4891
4845
  "name": "default",
4892
4846
  "declaration": {
4893
4847
  "name": "meta",
4894
- "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4848
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4895
4849
  }
4896
4850
  },
4897
4851
  {
4898
4852
  "kind": "js",
4899
- "name": "iconButton",
4853
+ "name": "tuixCheckboxExample",
4900
4854
  "declaration": {
4901
- "name": "iconButton",
4902
- "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4855
+ "name": "tuixCheckboxExample",
4856
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4903
4857
  }
4904
4858
  }
4905
4859
  ]
4906
4860
  },
4861
+ {
4862
+ "kind": "javascript-module",
4863
+ "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4864
+ "declarations": [],
4865
+ "exports": []
4866
+ },
4907
4867
  {
4908
4868
  "kind": "javascript-module",
4909
4869
  "path": "src/tuix-icon/enums/tuix-icon.enums.ts",
@@ -5088,6 +5048,46 @@
5088
5048
  }
5089
5049
  ]
5090
5050
  },
5051
+ {
5052
+ "kind": "javascript-module",
5053
+ "path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
5054
+ "declarations": [
5055
+ {
5056
+ "kind": "variable",
5057
+ "name": "meta",
5058
+ "type": {
5059
+ "text": "object"
5060
+ },
5061
+ "default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
5062
+ },
5063
+ {
5064
+ "kind": "variable",
5065
+ "name": "iconButton",
5066
+ "type": {
5067
+ "text": "Story"
5068
+ },
5069
+ "default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
5070
+ }
5071
+ ],
5072
+ "exports": [
5073
+ {
5074
+ "kind": "js",
5075
+ "name": "default",
5076
+ "declaration": {
5077
+ "name": "meta",
5078
+ "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
5079
+ }
5080
+ },
5081
+ {
5082
+ "kind": "js",
5083
+ "name": "iconButton",
5084
+ "declaration": {
5085
+ "name": "iconButton",
5086
+ "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
5087
+ }
5088
+ }
5089
+ ]
5090
+ },
5091
5091
  {
5092
5092
  "kind": "javascript-module",
5093
5093
  "path": "src/tuix-link/enums/linkTarget.enum.ts",
@@ -5266,12 +5266,6 @@
5266
5266
  }
5267
5267
  ]
5268
5268
  },
5269
- {
5270
- "kind": "javascript-module",
5271
- "path": "src/tuix-table/interfaces/tuix-table.interface.ts",
5272
- "declarations": [],
5273
- "exports": []
5274
- },
5275
5269
  {
5276
5270
  "kind": "javascript-module",
5277
5271
  "path": "src/tuix-table/stories/tuix-table.stories.ts",
@@ -5312,6 +5306,12 @@
5312
5306
  }
5313
5307
  ]
5314
5308
  },
5309
+ {
5310
+ "kind": "javascript-module",
5311
+ "path": "src/tuix-table/interfaces/tuix-table.interface.ts",
5312
+ "declarations": [],
5313
+ "exports": []
5314
+ },
5315
5315
  {
5316
5316
  "kind": "javascript-module",
5317
5317
  "path": "src/tuix-text/enums/tuix-text.enums.ts",