tuix-webcomponents 0.93.0 → 0.94.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.
@@ -231,6 +231,22 @@
231
231
  "module": "./tuix-table/interfaces/tuix-table.interface.js"
232
232
  }
233
233
  },
234
+ {
235
+ "kind": "js",
236
+ "name": "SortDirection",
237
+ "declaration": {
238
+ "name": "SortDirection",
239
+ "module": "./tuix-table/interfaces/tuix-table.interface.js"
240
+ }
241
+ },
242
+ {
243
+ "kind": "js",
244
+ "name": "SortEventDetail",
245
+ "declaration": {
246
+ "name": "SortEventDetail",
247
+ "module": "./tuix-table/interfaces/tuix-table.interface.js"
248
+ }
249
+ },
234
250
  {
235
251
  "kind": "js",
236
252
  "name": "ThreeDotsLoaderConfig",
@@ -247,6 +263,14 @@
247
263
  "module": "./tuix-table/interfaces/tuix-table.interface.js"
248
264
  }
249
265
  },
266
+ {
267
+ "kind": "js",
268
+ "name": "TuixSortEvent",
269
+ "declaration": {
270
+ "name": "TuixSortEvent",
271
+ "module": "./tuix-table/interfaces/tuix-table.interface.js"
272
+ }
273
+ },
250
274
  {
251
275
  "kind": "js",
252
276
  "name": "TuixTableElement",
@@ -875,6 +899,244 @@
875
899
  }
876
900
  ]
877
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
+ },
878
1140
  {
879
1141
  "kind": "javascript-module",
880
1142
  "path": "src/tuix-dropdown/TuixDropdown.styles.ts",
@@ -1451,244 +1713,6 @@
1451
1713
  }
1452
1714
  ]
1453
1715
  },
1454
- {
1455
- "kind": "javascript-module",
1456
- "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
1457
- "declarations": [
1458
- {
1459
- "kind": "variable",
1460
- "name": "hostStyles",
1461
- "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`"
1462
- },
1463
- {
1464
- "kind": "variable",
1465
- "name": "checkboxContainerStyles",
1466
- "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`"
1467
- },
1468
- {
1469
- "kind": "variable",
1470
- "name": "checkboxCheckmarkStyles",
1471
- "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`"
1472
- },
1473
- {
1474
- "kind": "variable",
1475
- "name": "checkboxLabelStyles",
1476
- "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`"
1477
- }
1478
- ],
1479
- "exports": [
1480
- {
1481
- "kind": "js",
1482
- "name": "hostStyles",
1483
- "declaration": {
1484
- "name": "hostStyles",
1485
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1486
- }
1487
- },
1488
- {
1489
- "kind": "js",
1490
- "name": "checkboxContainerStyles",
1491
- "declaration": {
1492
- "name": "checkboxContainerStyles",
1493
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1494
- }
1495
- },
1496
- {
1497
- "kind": "js",
1498
- "name": "checkboxCheckmarkStyles",
1499
- "declaration": {
1500
- "name": "checkboxCheckmarkStyles",
1501
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1502
- }
1503
- },
1504
- {
1505
- "kind": "js",
1506
- "name": "checkboxLabelStyles",
1507
- "declaration": {
1508
- "name": "checkboxLabelStyles",
1509
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1510
- }
1511
- }
1512
- ]
1513
- },
1514
- {
1515
- "kind": "javascript-module",
1516
- "path": "src/tuix-checkbox/TuixCheckbox.ts",
1517
- "declarations": [
1518
- {
1519
- "kind": "class",
1520
- "description": "",
1521
- "name": "TuixCheckbox",
1522
- "members": [
1523
- {
1524
- "kind": "field",
1525
- "name": "checked",
1526
- "type": {
1527
- "text": "boolean"
1528
- },
1529
- "default": "false",
1530
- "attribute": "checked"
1531
- },
1532
- {
1533
- "kind": "field",
1534
- "name": "disabled",
1535
- "type": {
1536
- "text": "boolean"
1537
- },
1538
- "default": "false",
1539
- "attribute": "disabled",
1540
- "reflects": true
1541
- },
1542
- {
1543
- "kind": "field",
1544
- "name": "dark",
1545
- "type": {
1546
- "text": "boolean"
1547
- },
1548
- "default": "false",
1549
- "attribute": "dark",
1550
- "reflects": true
1551
- },
1552
- {
1553
- "kind": "field",
1554
- "name": "error",
1555
- "type": {
1556
- "text": "boolean"
1557
- },
1558
- "default": "false",
1559
- "attribute": "error",
1560
- "reflects": true
1561
- },
1562
- {
1563
- "kind": "field",
1564
- "name": "label",
1565
- "type": {
1566
- "text": "string"
1567
- },
1568
- "default": "''",
1569
- "attribute": "label"
1570
- },
1571
- {
1572
- "kind": "field",
1573
- "name": "labelSide",
1574
- "type": {
1575
- "text": "CheckboxLabelSide"
1576
- },
1577
- "attribute": "labelSide"
1578
- },
1579
- {
1580
- "kind": "method",
1581
- "name": "_onCheckboxChange",
1582
- "privacy": "private",
1583
- "parameters": [
1584
- {
1585
- "name": "event",
1586
- "type": {
1587
- "text": "InputEvent"
1588
- }
1589
- }
1590
- ]
1591
- },
1592
- {
1593
- "kind": "method",
1594
- "name": "_getIconMode",
1595
- "privacy": "private"
1596
- },
1597
- {
1598
- "kind": "method",
1599
- "name": "_getFullContainerClasses",
1600
- "privacy": "private",
1601
- "return": {
1602
- "type": {
1603
- "text": "ClassInfo"
1604
- }
1605
- }
1606
- }
1607
- ],
1608
- "events": [
1609
- {
1610
- "name": "change",
1611
- "type": {
1612
- "text": "CustomEvent"
1613
- }
1614
- }
1615
- ],
1616
- "attributes": [
1617
- {
1618
- "name": "checked",
1619
- "type": {
1620
- "text": "boolean"
1621
- },
1622
- "default": "false",
1623
- "fieldName": "checked"
1624
- },
1625
- {
1626
- "name": "disabled",
1627
- "type": {
1628
- "text": "boolean"
1629
- },
1630
- "default": "false",
1631
- "fieldName": "disabled"
1632
- },
1633
- {
1634
- "name": "dark",
1635
- "type": {
1636
- "text": "boolean"
1637
- },
1638
- "default": "false",
1639
- "fieldName": "dark"
1640
- },
1641
- {
1642
- "name": "error",
1643
- "type": {
1644
- "text": "boolean"
1645
- },
1646
- "default": "false",
1647
- "fieldName": "error"
1648
- },
1649
- {
1650
- "name": "label",
1651
- "type": {
1652
- "text": "string"
1653
- },
1654
- "default": "''",
1655
- "fieldName": "label"
1656
- },
1657
- {
1658
- "name": "labelSide",
1659
- "type": {
1660
- "text": "CheckboxLabelSide"
1661
- },
1662
- "fieldName": "labelSide"
1663
- }
1664
- ],
1665
- "superclass": {
1666
- "name": "LitElement",
1667
- "package": "lit"
1668
- },
1669
- "tagName": "tuix-checkbox",
1670
- "customElement": true
1671
- }
1672
- ],
1673
- "exports": [
1674
- {
1675
- "kind": "js",
1676
- "name": "TuixCheckbox",
1677
- "declaration": {
1678
- "name": "TuixCheckbox",
1679
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1680
- }
1681
- },
1682
- {
1683
- "kind": "custom-element-definition",
1684
- "name": "tuix-checkbox",
1685
- "declaration": {
1686
- "name": "TuixCheckbox",
1687
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
1688
- }
1689
- }
1690
- ]
1691
- },
1692
1716
  {
1693
1717
  "kind": "javascript-module",
1694
1718
  "path": "src/tuix-icon/TuixIcon.icons.ts",
@@ -3041,22 +3065,128 @@
3041
3065
  },
3042
3066
  {
3043
3067
  "kind": "javascript-module",
3044
- "path": "src/tuix-radio-button/TuixRadioButton.styles.ts",
3068
+ "path": "src/tuix-paper/TuixPaper.styles.ts",
3045
3069
  "declarations": [
3046
3070
  {
3047
3071
  "kind": "variable",
3048
- "name": "radioHostStyles",
3049
- "default": "css`\n ${hostStyles}\n :host {\n --t-margin-between-radio-buttons: 1rem;\n --t-radio-button-inner-color-disabled: ${unsafeCSS(Palette.PRIMARY_300)};\n }\n`"
3050
- },
3051
- {
3052
- "kind": "variable",
3053
- "name": "radioButtonContainerStyles",
3054
- "default": "css`\n .t-radio-button-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-radio-button-full-container {\n cursor: not-allowed;\n }\n .t-radio-button-container {\n --t-radio-button-size-box: 1.5rem;\n --t-radio-button-shadow-width: 2px;\n display: block;\n position: relative;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n min-width: var(--t-radio-button-size-box);\n }\n .t-radio-button-container .t-radio-button {\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-radio-button-container {\n --t-radio-button-size-box: 1rem;\n --t-radio-button-shadow-width: 1px;\n margin-top: 1px;\n }\n }\n`"
3055
- },
3072
+ "name": "paperStyles",
3073
+ "default": "css`\n ${unsafeCSS(`\n .elevation {\n background-color: ${Palette.WHITE};\n }\n .elevation.dark_${PaperElevation.VARIANT_0} {\n background-color: ${Palette.BLACK};\n }\n ${calculatedStyles}\n .elevation.variant_${PaperElevation.VARIANT_4} {\n box-shadow: 0px 7px 24px ${Palette.SHADOW};\n }\n .elevation.dark_${PaperElevation.VARIANT_4} {\n background-color: rgb(33, 33, 40);\n }\n`)}\n`"
3074
+ }
3075
+ ],
3076
+ "exports": [
3056
3077
  {
3057
- "kind": "variable",
3058
- "name": "radioButtonStyles",
3059
- "default": "css`\n .t-radio-button-full-container.t-multiple-options {\n margin-bottom: var(--t-margin-between-radio-buttons);\n }\n .t-radio-button-container .t-radio-button-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n border-radius: 50%;\n }\n .t-radio-button-container\n .t-radio-button:checked\n ~ .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-container .t-radio-button:focus ~ .t-radio-button-checkmark {\n box-shadow: 0 0 0px var(--t-radio-button-shadow-width)\n var(--t-stroke-color-focus);\n }\n .t-radio-button-full-container:hover\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-full-container.t-with-error\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n\n .t-radio-button-container\n .t-radio-button:disabled\n ~ .t-radio-button-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
3078
+ "kind": "js",
3079
+ "name": "paperStyles",
3080
+ "declaration": {
3081
+ "name": "paperStyles",
3082
+ "module": "src/tuix-paper/TuixPaper.styles.ts"
3083
+ }
3084
+ }
3085
+ ]
3086
+ },
3087
+ {
3088
+ "kind": "javascript-module",
3089
+ "path": "src/tuix-paper/TuixPaper.ts",
3090
+ "declarations": [
3091
+ {
3092
+ "kind": "class",
3093
+ "description": "",
3094
+ "name": "TuixPaper",
3095
+ "members": [
3096
+ {
3097
+ "kind": "field",
3098
+ "name": "elevation",
3099
+ "attribute": "elevation"
3100
+ },
3101
+ {
3102
+ "kind": "field",
3103
+ "name": "borderRadius",
3104
+ "attribute": "border-radius"
3105
+ },
3106
+ {
3107
+ "kind": "field",
3108
+ "name": "dark",
3109
+ "type": {
3110
+ "text": "boolean"
3111
+ },
3112
+ "default": "false",
3113
+ "attribute": "dark",
3114
+ "reflects": true
3115
+ },
3116
+ {
3117
+ "kind": "method",
3118
+ "name": "_getOptionalClasses",
3119
+ "privacy": "private",
3120
+ "return": {
3121
+ "type": {
3122
+ "text": "ClassInfo"
3123
+ }
3124
+ }
3125
+ }
3126
+ ],
3127
+ "attributes": [
3128
+ {
3129
+ "name": "elevation",
3130
+ "fieldName": "elevation"
3131
+ },
3132
+ {
3133
+ "name": "border-radius",
3134
+ "fieldName": "borderRadius"
3135
+ },
3136
+ {
3137
+ "name": "dark",
3138
+ "type": {
3139
+ "text": "boolean"
3140
+ },
3141
+ "default": "false",
3142
+ "fieldName": "dark"
3143
+ }
3144
+ ],
3145
+ "superclass": {
3146
+ "name": "LitElement",
3147
+ "package": "lit"
3148
+ },
3149
+ "tagName": "tuix-paper",
3150
+ "customElement": true
3151
+ }
3152
+ ],
3153
+ "exports": [
3154
+ {
3155
+ "kind": "js",
3156
+ "name": "TuixPaper",
3157
+ "declaration": {
3158
+ "name": "TuixPaper",
3159
+ "module": "src/tuix-paper/TuixPaper.ts"
3160
+ }
3161
+ },
3162
+ {
3163
+ "kind": "custom-element-definition",
3164
+ "name": "tuix-paper",
3165
+ "declaration": {
3166
+ "name": "TuixPaper",
3167
+ "module": "src/tuix-paper/TuixPaper.ts"
3168
+ }
3169
+ }
3170
+ ]
3171
+ },
3172
+ {
3173
+ "kind": "javascript-module",
3174
+ "path": "src/tuix-radio-button/TuixRadioButton.styles.ts",
3175
+ "declarations": [
3176
+ {
3177
+ "kind": "variable",
3178
+ "name": "radioHostStyles",
3179
+ "default": "css`\n ${hostStyles}\n :host {\n --t-margin-between-radio-buttons: 1rem;\n --t-radio-button-inner-color-disabled: ${unsafeCSS(Palette.PRIMARY_300)};\n }\n`"
3180
+ },
3181
+ {
3182
+ "kind": "variable",
3183
+ "name": "radioButtonContainerStyles",
3184
+ "default": "css`\n .t-radio-button-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-radio-button-full-container {\n cursor: not-allowed;\n }\n .t-radio-button-container {\n --t-radio-button-size-box: 1.5rem;\n --t-radio-button-shadow-width: 2px;\n display: block;\n position: relative;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n min-width: var(--t-radio-button-size-box);\n }\n .t-radio-button-container .t-radio-button {\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-radio-button-container {\n --t-radio-button-size-box: 1rem;\n --t-radio-button-shadow-width: 1px;\n margin-top: 1px;\n }\n }\n`"
3185
+ },
3186
+ {
3187
+ "kind": "variable",
3188
+ "name": "radioButtonStyles",
3189
+ "default": "css`\n .t-radio-button-full-container.t-multiple-options {\n margin-bottom: var(--t-margin-between-radio-buttons);\n }\n .t-radio-button-container .t-radio-button-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-radio-button-size-box);\n width: var(--t-radio-button-size-box);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n border-radius: 50%;\n }\n .t-radio-button-container\n .t-radio-button:checked\n ~ .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-container .t-radio-button:focus ~ .t-radio-button-checkmark {\n box-shadow: 0 0 0px var(--t-radio-button-shadow-width)\n var(--t-stroke-color-focus);\n }\n .t-radio-button-full-container:hover\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-radio-button-full-container.t-with-error\n .t-radio-button-container\n .t-radio-button-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n\n .t-radio-button-container\n .t-radio-button:disabled\n ~ .t-radio-button-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
3060
3190
  },
3061
3191
  {
3062
3192
  "kind": "variable",
@@ -3306,126 +3436,33 @@
3306
3436
  },
3307
3437
  {
3308
3438
  "kind": "javascript-module",
3309
- "path": "src/tuix-paper/TuixPaper.styles.ts",
3439
+ "path": "src/tuix-table/TuixTable.styles.ts",
3310
3440
  "declarations": [
3311
3441
  {
3312
3442
  "kind": "variable",
3313
- "name": "paperStyles",
3314
- "default": "css`\n ${unsafeCSS(`\n .elevation {\n background-color: ${Palette.WHITE};\n }\n .elevation.dark_${PaperElevation.VARIANT_0} {\n background-color: ${Palette.BLACK};\n }\n ${calculatedStyles}\n .elevation.variant_${PaperElevation.VARIANT_4} {\n box-shadow: 0px 7px 24px ${Palette.SHADOW};\n }\n .elevation.dark_${PaperElevation.VARIANT_4} {\n background-color: rgb(33, 33, 40);\n }\n`)}\n`"
3315
- }
3316
- ],
3317
- "exports": [
3318
- {
3319
- "kind": "js",
3320
- "name": "paperStyles",
3321
- "declaration": {
3322
- "name": "paperStyles",
3323
- "module": "src/tuix-paper/TuixPaper.styles.ts"
3324
- }
3325
- }
3326
- ]
3327
- },
3328
- {
3329
- "kind": "javascript-module",
3330
- "path": "src/tuix-paper/TuixPaper.ts",
3331
- "declarations": [
3332
- {
3333
- "kind": "class",
3334
- "description": "",
3335
- "name": "TuixPaper",
3336
- "members": [
3337
- {
3338
- "kind": "field",
3339
- "name": "elevation",
3340
- "attribute": "elevation"
3341
- },
3342
- {
3343
- "kind": "field",
3344
- "name": "borderRadius",
3345
- "attribute": "border-radius"
3346
- },
3347
- {
3348
- "kind": "field",
3349
- "name": "dark",
3350
- "type": {
3351
- "text": "boolean"
3352
- },
3353
- "default": "false",
3354
- "attribute": "dark",
3355
- "reflects": true
3356
- },
3357
- {
3358
- "kind": "method",
3359
- "name": "_getOptionalClasses",
3360
- "privacy": "private",
3361
- "return": {
3362
- "type": {
3363
- "text": "ClassInfo"
3364
- }
3365
- }
3366
- }
3367
- ],
3368
- "attributes": [
3369
- {
3370
- "name": "elevation",
3371
- "fieldName": "elevation"
3372
- },
3373
- {
3374
- "name": "border-radius",
3375
- "fieldName": "borderRadius"
3376
- },
3377
- {
3378
- "name": "dark",
3379
- "type": {
3380
- "text": "boolean"
3381
- },
3382
- "default": "false",
3383
- "fieldName": "dark"
3384
- }
3385
- ],
3386
- "superclass": {
3387
- "name": "LitElement",
3388
- "package": "lit"
3389
- },
3390
- "tagName": "tuix-paper",
3391
- "customElement": true
3392
- }
3393
- ],
3394
- "exports": [
3395
- {
3396
- "kind": "js",
3397
- "name": "TuixPaper",
3398
- "declaration": {
3399
- "name": "TuixPaper",
3400
- "module": "src/tuix-paper/TuixPaper.ts"
3401
- }
3443
+ "name": "tableHostStyles",
3444
+ "default": "css`\n :host {\n display: block;\n width: 100%;\n\n --t-table-header-bg: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-table-header-text-color: ${unsafeCSS(Palette.PRIMARY_700)};\n --t-table-header-focus-color: ${unsafeCSS(Palette.MAIN)};\n --t-table-cell-bg: ${unsafeCSS(Palette.WHITE)};\n --t-table-cell-border-color: ${unsafeCSS(Palette.NEUTRAL_200)};\n --t-table-entity-border-color: ${unsafeCSS(Palette.MAIN)};\n --t-table-row-border-color: ${unsafeCSS(Palette.NEUTRAL_200)};\n --t-table-mobile-header-bg: ${unsafeCSS(Palette.SECTION_BG)};\n --t-table-footer-bg: ${unsafeCSS(Palette.WHITE)};\n --t-table-dropdown-stroke: ${unsafeCSS(Palette.NEUTRAL_200)};\n --t-table-dropdown-text-color: ${unsafeCSS(Palette.BLACK)};\n --t-table-dropdown-option-bg: ${unsafeCSS(Palette.WHITE)};\n }\n\n :host([dark]) {\n --t-table-header-bg: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-table-header-text-color: ${unsafeCSS(DarkPalette.WHITE)};\n --t-table-header-focus-color: ${unsafeCSS(DarkPalette.PRIMARY_300)};\n --t-table-cell-bg: ${unsafeCSS(DarkPalette.BLACK)};\n --t-table-cell-border-color: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-table-entity-border-color: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-table-row-border-color: ${unsafeCSS(DarkPalette.ELEVATION_4)};\n --t-table-mobile-header-bg: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-table-footer-bg: ${unsafeCSS(DarkPalette.PRIMARY_900)};\n --t-table-dropdown-stroke: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-table-dropdown-text-color: ${unsafeCSS(DarkPalette.PRIMARY_50)};\n --t-table-dropdown-option-bg: ${unsafeCSS(DarkPalette.ELEVATION_2)};\n }\n`"
3402
3445
  },
3403
- {
3404
- "kind": "custom-element-definition",
3405
- "name": "tuix-paper",
3406
- "declaration": {
3407
- "name": "TuixPaper",
3408
- "module": "src/tuix-paper/TuixPaper.ts"
3409
- }
3410
- }
3411
- ]
3412
- },
3413
- {
3414
- "kind": "javascript-module",
3415
- "path": "src/tuix-table/TuixTable.styles.ts",
3416
- "declarations": [
3417
3446
  {
3418
3447
  "kind": "variable",
3419
3448
  "name": "tableStyles",
3420
- "default": "css`\n :host {\n display: block;\n width: 100%;\n }\n\n .table_wrapper {\n width: 100%;\n overflow-x: auto;\n }\n\n table {\n min-width: 650px;\n table-layout: fixed;\n width: 100%;\n border-collapse: collapse;\n }\n\n thead th {\n box-sizing: border-box;\n padding: 8px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n tbody tr td {\n box-sizing: border-box;\n height: 52px;\n padding: 6px 8px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n ::slotted(*) {\n display: inline-flex;\n align-items: center;\n margin-right: 8px;\n gap: 10px;\n }\n\n .dropdown_container {\n position: relative;\n border-radius: 4px;\n }\n\n .dropdown_container .items-per-page-dropdown {\n width: 55px;\n border: none;\n background-color: transparent;\n padding: 8px;\n cursor: pointer;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n }\n\n .dropdown_container .items-per-page-dropdown:focus-visible {\n border: none;\n outline: none;\n }\n\n .dropdown_container .arrow-icon {\n position: absolute;\n right: 8px;\n bottom: 8px;\n cursor: pointer;\n pointer-events: none;\n }\n\n footer.table_footer {\n height: 48px;\n padding: 8px;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-sizing: border-box;\n }\n\n footer.table_footer .items-per-page {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n footer.table_footer .navigation {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n footer.table_footer .navigation .buttons {\n display: flex;\n gap: 8px;\n cursor: pointer;\n }\n\n .mobile_table {\n display: none;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .mobile_table {\n display: block;\n }\n\n footer.table_footer {\n align-items: flex-start;\n gap: 8px;\n }\n\n .mobile_table .table_row {\n display: flex;\n min-height: 40px;\n }\n\n .mobile_table .table_row > * {\n padding: 0 16px;\n width: 50%;\n text-overflow: ellipsis;\n overflow: hidden;\n display: flex;\n align-items: center;\n }\n }\n`"
3449
+ "default": "css`\n .table_wrapper {\n width: 100%;\n overflow-x: auto;\n }\n\n table {\n min-width: 650px;\n table-layout: fixed;\n width: 100%;\n border-collapse: collapse;\n }\n\n thead {\n background-color: var(--t-table-header-bg);\n }\n\n thead th {\n box-sizing: border-box;\n padding: 8px 16px;\n text-align: left;\n overflow: hidden;\n }\n\n thead th.sortable {\n cursor: pointer;\n }\n\n thead th.sortable:focus-visible {\n outline: 2px solid var(--t-table-header-focus-color);\n outline-offset: -2px;\n }\n\n thead th .header-cell {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n\n ${unsafeCSS(LINK_TEXT_COLOR_VAR_NAME)}: var(--t-table-header-text-color);\n }\n\n thead th .header-cell .header-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n thead th .sort-icons {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n }\n\n thead th .sort-icons tuix-icon {\n height: 12px;\n display: flex;\n align-items: center;\n }\n\n tbody tr td {\n border-bottom: 1px solid var(--t-table-cell-border-color);\n box-sizing: border-box;\n height: 52px;\n padding: 6px 16px;\n text-align: left;\n overflow-x: auto;\n scrollbar-width: none;\n background-color: var(--t-table-cell-bg);\n }\n\n tbody tr td::-webkit-scrollbar {\n width: 0;\n height: 0;\n display: none;\n }\n\n ::slotted(*) {\n display: inline-flex;\n align-items: center;\n margin-right: 8px;\n gap: 10px;\n }\n\n .dropdown_container {\n position: relative;\n border-radius: 4px;\n outline: 1px solid var(--t-table-dropdown-stroke);\n }\n\n .dropdown_container .items-per-page-dropdown {\n width: 55px;\n border: none;\n background-color: transparent;\n color: var(--t-table-dropdown-text-color);\n font-family: 'Rubik', sans-serif;\n padding: 8px;\n cursor: pointer;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n }\n\n .dropdown_container .items-per-page-dropdown option {\n background-color: var(--t-table-dropdown-option-bg);\n }\n\n .dropdown_container .items-per-page-dropdown:focus-visible {\n border: none;\n outline: none;\n }\n\n .dropdown_container .arrow-icon {\n position: absolute;\n right: 8px;\n bottom: 8px;\n cursor: pointer;\n pointer-events: none;\n }\n\n footer.table_footer {\n height: 48px;\n padding: 8px;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: var(--t-table-footer-bg);\n box-sizing: border-box;\n }\n\n footer.table_footer .items-per-page {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n footer.table_footer .navigation {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n footer.table_footer .navigation .buttons {\n display: flex;\n gap: 8px;\n }\n\n footer.table_footer .navigation .buttons .arrow {\n cursor: pointer;\n }\n\n .mobile_table .table_entity {\n border-bottom: 2px solid var(--t-table-entity-border-color);\n }\n\n .mobile_table .table_row {\n display: flex;\n border-bottom: 1px solid var(--t-table-row-border-color);\n min-height: 40px;\n }\n\n .mobile_table .table_row > * {\n padding: 0 16px;\n width: 50%;\n text-overflow: ellipsis;\n overflow: hidden;\n display: flex;\n align-items: center;\n }\n\n .mobile_table .table_row .content {\n padding: 12px 16px;\n }\n\n .mobile_table .table_row .content > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .mobile_table .table_row .header {\n background-color: var(--t-table-mobile-header-bg);\n\n ${unsafeCSS(LINK_TEXT_COLOR_VAR_NAME)}: var(--t-table-header-text-color);\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n footer.table_footer.sticky {\n position: sticky;\n bottom: 0;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n footer.table_footer {\n position: sticky;\n bottom: 0;\n }\n\n footer.table_footer .navigation .buttons {\n gap: 4px;\n }\n }\n`"
3421
3450
  },
3422
3451
  {
3423
3452
  "kind": "variable",
3424
3453
  "name": "threeDots",
3425
- "default": "css`\n .tuix-spinner-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 24px 0;\n }\n\n .three-dots-wrapper {\n display: inline-flex;\n gap: calc(var(--dot-size) * 0.5);\n align-items: center;\n justify-content: center;\n position: relative;\n }\n .three-dots-wrapper .dot {\n width: var(--dot-size);\n height: var(--dot-size);\n background: var(--dot-color);\n border-radius: 50%;\n display: inline-block;\n animation: threeDots 0.9s infinite ease-in-out both;\n }\n .three-dots-wrapper .dot:nth-child(2) {\n animation-delay: 0.15s;\n }\n .three-dots-wrapper .dot:nth-child(3) {\n animation-delay: 0.3s;\n }\n\n @keyframes threeDots {\n 0%,\n 80%,\n 100% {\n transform: scale(0.6);\n opacity: 0.6;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n }\n\n .sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n white-space: nowrap;\n }\n\n .clientsLoader,\n .mobileClientsLoader,\n .tabletClientsLoader {\n display: flex;\n justify-content: center;\n padding: 16px 0;\n }\n`"
3454
+ "default": "css`\n .tuix-spinner-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 24px 0;\n }\n\n .three-dots-wrapper {\n display: inline-flex;\n gap: calc(var(--dot-size) * 0.5);\n align-items: center;\n justify-content: center;\n position: relative;\n }\n .three-dots-wrapper .dot {\n width: var(--dot-size);\n height: var(--dot-size);\n background: var(--dot-color);\n border-radius: 50%;\n display: inline-block;\n animation: threeDots 0.9s infinite ease-in-out both;\n }\n .three-dots-wrapper .dot:nth-child(2) {\n animation-delay: 0.15s;\n }\n .three-dots-wrapper .dot:nth-child(3) {\n animation-delay: 0.3s;\n }\n\n @keyframes threeDots {\n 0%,\n 80%,\n 100% {\n transform: scale(0.6);\n opacity: 0.6;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n }\n\n .sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n white-space: nowrap;\n }\n`"
3426
3455
  }
3427
3456
  ],
3428
3457
  "exports": [
3458
+ {
3459
+ "kind": "js",
3460
+ "name": "tableHostStyles",
3461
+ "declaration": {
3462
+ "name": "tableHostStyles",
3463
+ "module": "src/tuix-table/TuixTable.styles.ts"
3464
+ }
3465
+ },
3429
3466
  {
3430
3467
  "kind": "js",
3431
3468
  "name": "tableStyles",
@@ -3453,6 +3490,16 @@
3453
3490
  "description": "",
3454
3491
  "name": "TuixTable",
3455
3492
  "members": [
3493
+ {
3494
+ "kind": "field",
3495
+ "name": "dark",
3496
+ "type": {
3497
+ "text": "boolean"
3498
+ },
3499
+ "default": "false",
3500
+ "attribute": "dark",
3501
+ "reflects": true
3502
+ },
3456
3503
  {
3457
3504
  "kind": "field",
3458
3505
  "name": "paginated",
@@ -3548,6 +3595,23 @@
3548
3595
  "default": "false",
3549
3596
  "attribute": "isLoadingData"
3550
3597
  },
3598
+ {
3599
+ "kind": "field",
3600
+ "name": "sortBy",
3601
+ "type": {
3602
+ "text": "string | undefined"
3603
+ },
3604
+ "attribute": "sortBy"
3605
+ },
3606
+ {
3607
+ "kind": "field",
3608
+ "name": "sortDirection",
3609
+ "type": {
3610
+ "text": "SortDirection"
3611
+ },
3612
+ "default": "'asc'",
3613
+ "attribute": "sortDirection"
3614
+ },
3551
3615
  {
3552
3616
  "kind": "field",
3553
3617
  "name": "_isTabletView",
@@ -3644,6 +3708,19 @@
3644
3708
  "name": "_setPageSize",
3645
3709
  "privacy": "private"
3646
3710
  },
3711
+ {
3712
+ "kind": "method",
3713
+ "name": "_sort",
3714
+ "privacy": "private",
3715
+ "parameters": [
3716
+ {
3717
+ "name": "sortKey",
3718
+ "type": {
3719
+ "text": "string"
3720
+ }
3721
+ }
3722
+ ]
3723
+ },
3647
3724
  {
3648
3725
  "kind": "method",
3649
3726
  "name": "_computeHeaderPercents",
@@ -3651,8 +3728,22 @@
3651
3728
  },
3652
3729
  {
3653
3730
  "kind": "method",
3654
- "name": "_cellStyleString",
3655
- "privacy": "private"
3731
+ "name": "_cellBackgroundColor",
3732
+ "privacy": "private",
3733
+ "parameters": [
3734
+ {
3735
+ "name": "header",
3736
+ "type": {
3737
+ "text": "IDataTableHeader<any>"
3738
+ }
3739
+ },
3740
+ {
3741
+ "name": "row",
3742
+ "type": {
3743
+ "text": "any"
3744
+ }
3745
+ }
3746
+ ]
3656
3747
  },
3657
3748
  {
3658
3749
  "kind": "method",
@@ -3673,6 +3764,51 @@
3673
3764
  }
3674
3765
  ]
3675
3766
  },
3767
+ {
3768
+ "kind": "method",
3769
+ "name": "_renderSortIcons",
3770
+ "privacy": "private",
3771
+ "parameters": [
3772
+ {
3773
+ "name": "header",
3774
+ "type": {
3775
+ "text": "IDataTableHeader<any>"
3776
+ }
3777
+ }
3778
+ ]
3779
+ },
3780
+ {
3781
+ "kind": "method",
3782
+ "name": "_ariaSort",
3783
+ "privacy": "private",
3784
+ "parameters": [
3785
+ {
3786
+ "name": "header",
3787
+ "type": {
3788
+ "text": "IDataTableHeader<any>"
3789
+ }
3790
+ }
3791
+ ]
3792
+ },
3793
+ {
3794
+ "kind": "method",
3795
+ "name": "_onHeaderKeyDown",
3796
+ "privacy": "private",
3797
+ "parameters": [
3798
+ {
3799
+ "name": "event",
3800
+ "type": {
3801
+ "text": "KeyboardEvent"
3802
+ }
3803
+ },
3804
+ {
3805
+ "name": "sortKey",
3806
+ "type": {
3807
+ "text": "string"
3808
+ }
3809
+ }
3810
+ ]
3811
+ },
3676
3812
  {
3677
3813
  "kind": "method",
3678
3814
  "name": "_renderHeaderCells",
@@ -3735,13 +3871,42 @@
3735
3871
  "name": "_renderTable",
3736
3872
  "privacy": "private"
3737
3873
  },
3874
+ {
3875
+ "kind": "method",
3876
+ "name": "_renderCard",
3877
+ "privacy": "private",
3878
+ "parameters": [
3879
+ {
3880
+ "name": "row",
3881
+ "type": {
3882
+ "text": "any"
3883
+ }
3884
+ }
3885
+ ]
3886
+ },
3738
3887
  {
3739
3888
  "kind": "method",
3740
3889
  "name": "_renderCards",
3741
3890
  "privacy": "private"
3742
3891
  }
3743
3892
  ],
3893
+ "events": [
3894
+ {
3895
+ "name": "sort",
3896
+ "type": {
3897
+ "text": "CustomEvent"
3898
+ }
3899
+ }
3900
+ ],
3744
3901
  "attributes": [
3902
+ {
3903
+ "name": "dark",
3904
+ "type": {
3905
+ "text": "boolean"
3906
+ },
3907
+ "default": "false",
3908
+ "fieldName": "dark"
3909
+ },
3745
3910
  {
3746
3911
  "name": "paginated",
3747
3912
  "type": {
@@ -3825,6 +3990,21 @@
3825
3990
  },
3826
3991
  "default": "false",
3827
3992
  "fieldName": "isLoadingData"
3993
+ },
3994
+ {
3995
+ "name": "sortBy",
3996
+ "type": {
3997
+ "text": "string | undefined"
3998
+ },
3999
+ "fieldName": "sortBy"
4000
+ },
4001
+ {
4002
+ "name": "sortDirection",
4003
+ "type": {
4004
+ "text": "SortDirection"
4005
+ },
4006
+ "default": "'asc'",
4007
+ "fieldName": "sortDirection"
3828
4008
  }
3829
4009
  ],
3830
4010
  "superclass": {
@@ -4508,59 +4688,53 @@
4508
4688
  },
4509
4689
  {
4510
4690
  "kind": "javascript-module",
4511
- "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4512
- "declarations": [],
4513
- "exports": []
4514
- },
4515
- {
4516
- "kind": "javascript-module",
4517
- "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4518
- "declarations": [],
4519
- "exports": []
4520
- },
4521
- {
4522
- "kind": "javascript-module",
4523
- "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4691
+ "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
4524
4692
  "declarations": [
4525
4693
  {
4526
4694
  "kind": "variable",
4527
- "name": "meta",
4695
+ "name": "CheckboxIconColorLight",
4528
4696
  "type": {
4529
4697
  "text": "object"
4530
4698
  },
4531
- "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}"
4699
+ "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4532
4700
  },
4533
4701
  {
4534
4702
  "kind": "variable",
4535
- "name": "tuixDropdownObjectList",
4703
+ "name": "CheckboxIconColorDark",
4536
4704
  "type": {
4537
- "text": "Story"
4705
+ "text": "object"
4538
4706
  },
4539
- "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}"
4707
+ "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4540
4708
  }
4541
4709
  ],
4542
4710
  "exports": [
4543
4711
  {
4544
4712
  "kind": "js",
4545
- "name": "default",
4713
+ "name": "CheckboxIconColorLight",
4546
4714
  "declaration": {
4547
- "name": "meta",
4548
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4715
+ "name": "CheckboxIconColorLight",
4716
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4549
4717
  }
4550
4718
  },
4551
4719
  {
4552
4720
  "kind": "js",
4553
- "name": "tuixDropdownObjectList",
4721
+ "name": "CheckboxIconColorDark",
4554
4722
  "declaration": {
4555
- "name": "tuixDropdownObjectList",
4556
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4723
+ "name": "CheckboxIconColorDark",
4724
+ "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4557
4725
  }
4558
4726
  }
4559
4727
  ]
4560
4728
  },
4561
4729
  {
4562
4730
  "kind": "javascript-module",
4563
- "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4731
+ "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4732
+ "declarations": [],
4733
+ "exports": []
4734
+ },
4735
+ {
4736
+ "kind": "javascript-module",
4737
+ "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4564
4738
  "declarations": [
4565
4739
  {
4566
4740
  "kind": "variable",
@@ -4568,15 +4742,15 @@
4568
4742
  "type": {
4569
4743
  "text": "object"
4570
4744
  },
4571
- "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: '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}"
4572
4746
  },
4573
4747
  {
4574
4748
  "kind": "variable",
4575
- "name": "tuixDropdownExample",
4749
+ "name": "tuixCheckboxExample",
4576
4750
  "type": {
4577
4751
  "text": "Story"
4578
4752
  },
4579
- "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 checked: false,\n disabled: false,\n dark: false,\n error: false,\n label: 'Label from property',\n labelSide: CheckboxLabelSide.RIGHT,\n },\n}"
4580
4754
  }
4581
4755
  ],
4582
4756
  "exports": [
@@ -4585,68 +4759,68 @@
4585
4759
  "name": "default",
4586
4760
  "declaration": {
4587
4761
  "name": "meta",
4588
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4762
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4589
4763
  }
4590
4764
  },
4591
4765
  {
4592
4766
  "kind": "js",
4593
- "name": "tuixDropdownExample",
4767
+ "name": "tuixCheckboxExample",
4594
4768
  "declaration": {
4595
- "name": "tuixDropdownExample",
4596
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4769
+ "name": "tuixCheckboxExample",
4770
+ "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4597
4771
  }
4598
4772
  }
4599
4773
  ]
4600
4774
  },
4601
4775
  {
4602
4776
  "kind": "javascript-module",
4603
- "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
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/stories/tuix-dropdown-object-list.stories.ts",
4604
4784
  "declarations": [
4605
4785
  {
4606
4786
  "kind": "variable",
4607
- "name": "CheckboxIconColorLight",
4787
+ "name": "meta",
4608
4788
  "type": {
4609
4789
  "text": "object"
4610
4790
  },
4611
- "default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
4791
+ "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}"
4612
4792
  },
4613
4793
  {
4614
4794
  "kind": "variable",
4615
- "name": "CheckboxIconColorDark",
4795
+ "name": "tuixDropdownObjectList",
4616
4796
  "type": {
4617
- "text": "object"
4797
+ "text": "Story"
4618
4798
  },
4619
- "default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
4799
+ "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}"
4620
4800
  }
4621
4801
  ],
4622
4802
  "exports": [
4623
4803
  {
4624
4804
  "kind": "js",
4625
- "name": "CheckboxIconColorLight",
4805
+ "name": "default",
4626
4806
  "declaration": {
4627
- "name": "CheckboxIconColorLight",
4628
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4807
+ "name": "meta",
4808
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4629
4809
  }
4630
4810
  },
4631
4811
  {
4632
4812
  "kind": "js",
4633
- "name": "CheckboxIconColorDark",
4813
+ "name": "tuixDropdownObjectList",
4634
4814
  "declaration": {
4635
- "name": "CheckboxIconColorDark",
4636
- "module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
4815
+ "name": "tuixDropdownObjectList",
4816
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4637
4817
  }
4638
4818
  }
4639
4819
  ]
4640
4820
  },
4641
4821
  {
4642
4822
  "kind": "javascript-module",
4643
- "path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
4644
- "declarations": [],
4645
- "exports": []
4646
- },
4647
- {
4648
- "kind": "javascript-module",
4649
- "path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
4823
+ "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4650
4824
  "declarations": [
4651
4825
  {
4652
4826
  "kind": "variable",
@@ -4654,15 +4828,15 @@
4654
4828
  "type": {
4655
4829
  "text": "object"
4656
4830
  },
4657
- "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}"
4831
+ "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}"
4658
4832
  },
4659
4833
  {
4660
4834
  "kind": "variable",
4661
- "name": "tuixCheckboxExample",
4835
+ "name": "tuixDropdownExample",
4662
4836
  "type": {
4663
4837
  "text": "Story"
4664
4838
  },
4665
- "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}"
4839
+ "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}"
4666
4840
  }
4667
4841
  ],
4668
4842
  "exports": [
@@ -4671,19 +4845,25 @@
4671
4845
  "name": "default",
4672
4846
  "declaration": {
4673
4847
  "name": "meta",
4674
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4848
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4675
4849
  }
4676
4850
  },
4677
4851
  {
4678
4852
  "kind": "js",
4679
- "name": "tuixCheckboxExample",
4853
+ "name": "tuixDropdownExample",
4680
4854
  "declaration": {
4681
- "name": "tuixCheckboxExample",
4682
- "module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
4855
+ "name": "tuixDropdownExample",
4856
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4683
4857
  }
4684
4858
  }
4685
4859
  ]
4686
4860
  },
4861
+ {
4862
+ "kind": "javascript-module",
4863
+ "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4864
+ "declarations": [],
4865
+ "exports": []
4866
+ },
4687
4867
  {
4688
4868
  "kind": "javascript-module",
4689
4869
  "path": "src/tuix-icon/enums/tuix-icon.enums.ts",
@@ -4996,13 +5176,13 @@
4996
5176
  },
4997
5177
  {
4998
5178
  "kind": "javascript-module",
4999
- "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5179
+ "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
5000
5180
  "declarations": [],
5001
5181
  "exports": []
5002
5182
  },
5003
5183
  {
5004
5184
  "kind": "javascript-module",
5005
- "path": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts",
5185
+ "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
5006
5186
  "declarations": [
5007
5187
  {
5008
5188
  "kind": "variable",
@@ -5010,15 +5190,15 @@
5010
5190
  "type": {
5011
5191
  "text": "object"
5012
5192
  },
5013
- "default": "{\n title: 'TuixRadioButton',\n component: 'tuix-radio-button',\n argTypes: {\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n options: {\n control: 'object',\n },\n labelSide: {\n control: 'select',\n options: Object.values(CheckboxLabelSide),\n },\n selectedOption: {\n control: 'object',\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html` <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-radio-button\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n .options=\"${args.options}\"\n labelSide=\"${args.labelSide}\"\n .selectedOption=\"${args.selectedOption}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n slot=\"label-1\"\n ?dark=\"${args.dark}\"\n >\n Label from named slot 1 using a long text with max-width container\n </tuix-text>\n </tuix-radio-button>\n </div>\n </div>`,\n}"
5193
+ "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
5014
5194
  },
5015
5195
  {
5016
5196
  "kind": "variable",
5017
- "name": "tuixRadioButtonExample",
5197
+ "name": "elevation",
5018
5198
  "type": {
5019
5199
  "text": "Story"
5020
5200
  },
5021
- "default": "{\n args: {\n disabled: false,\n dark: false,\n error: false,\n options: ['Option 0', 'Option 1', 'Option 2'],\n labelSide: CheckboxLabelSide.RIGHT,\n selectedOption: 'Option 0',\n },\n}"
5201
+ "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
5022
5202
  }
5023
5203
  ],
5024
5204
  "exports": [
@@ -5027,28 +5207,28 @@
5027
5207
  "name": "default",
5028
5208
  "declaration": {
5029
5209
  "name": "meta",
5030
- "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5210
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5031
5211
  }
5032
5212
  },
5033
5213
  {
5034
5214
  "kind": "js",
5035
- "name": "tuixRadioButtonExample",
5215
+ "name": "elevation",
5036
5216
  "declaration": {
5037
- "name": "tuixRadioButtonExample",
5038
- "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5217
+ "name": "elevation",
5218
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5039
5219
  }
5040
5220
  }
5041
5221
  ]
5042
5222
  },
5043
5223
  {
5044
5224
  "kind": "javascript-module",
5045
- "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
5225
+ "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5046
5226
  "declarations": [],
5047
5227
  "exports": []
5048
5228
  },
5049
5229
  {
5050
5230
  "kind": "javascript-module",
5051
- "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
5231
+ "path": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts",
5052
5232
  "declarations": [
5053
5233
  {
5054
5234
  "kind": "variable",
@@ -5056,15 +5236,15 @@
5056
5236
  "type": {
5057
5237
  "text": "object"
5058
5238
  },
5059
- "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
5239
+ "default": "{\n title: 'TuixRadioButton',\n component: 'tuix-radio-button',\n argTypes: {\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n options: {\n control: 'object',\n },\n labelSide: {\n control: 'select',\n options: Object.values(CheckboxLabelSide),\n },\n selectedOption: {\n control: 'object',\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html` <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-radio-button\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n .options=\"${args.options}\"\n labelSide=\"${args.labelSide}\"\n .selectedOption=\"${args.selectedOption}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n slot=\"label-1\"\n ?dark=\"${args.dark}\"\n >\n Label from named slot 1 using a long text with max-width container\n </tuix-text>\n </tuix-radio-button>\n </div>\n </div>`,\n}"
5060
5240
  },
5061
5241
  {
5062
5242
  "kind": "variable",
5063
- "name": "elevation",
5243
+ "name": "tuixRadioButtonExample",
5064
5244
  "type": {
5065
5245
  "text": "Story"
5066
5246
  },
5067
- "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
5247
+ "default": "{\n args: {\n disabled: false,\n dark: false,\n error: false,\n options: ['Option 0', 'Option 1', 'Option 2'],\n labelSide: CheckboxLabelSide.RIGHT,\n selectedOption: 'Option 0',\n },\n}"
5068
5248
  }
5069
5249
  ],
5070
5250
  "exports": [
@@ -5073,15 +5253,15 @@
5073
5253
  "name": "default",
5074
5254
  "declaration": {
5075
5255
  "name": "meta",
5076
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5256
+ "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5077
5257
  }
5078
5258
  },
5079
5259
  {
5080
5260
  "kind": "js",
5081
- "name": "elevation",
5261
+ "name": "tuixRadioButtonExample",
5082
5262
  "declaration": {
5083
- "name": "elevation",
5084
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5263
+ "name": "tuixRadioButtonExample",
5264
+ "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5085
5265
  }
5086
5266
  }
5087
5267
  ]
@@ -5102,7 +5282,7 @@
5102
5282
  "type": {
5103
5283
  "text": "object"
5104
5284
  },
5105
- "default": "{\n title: 'TuixTable',\n component: 'tuix-table',\n argTypes: {\n headers: { control: 'object' },\n data: { control: 'object' },\n paginated: { control: 'boolean' },\n disableMobileTable: { control: 'boolean' },\n showMobileTableInTablet: { control: 'boolean' },\n pageSizeOptions: { control: 'object' },\n totalItems: { control: 'number' },\n currentPage: { control: 'number' },\n currentSize: { control: 'number' },\n isLoadingData: { control: 'boolean' },\n loader: { control: 'object' },\n onNextPage: { action: 'next-page' },\n onPreviousPage: { action: 'previous-page' },\n onPageSizeChange: { action: 'page-size-change' },\n },\n}"
5285
+ "default": "{\n title: 'TuixTable',\n component: 'tuix-table',\n argTypes: {\n headers: { control: 'object' },\n data: { control: 'object' },\n dark: { control: 'boolean' },\n paginated: { control: 'boolean' },\n disableMobileTable: { control: 'boolean' },\n showMobileTableInTablet: { control: 'boolean' },\n pageSizeOptions: { control: 'object' },\n totalItems: { control: 'number' },\n currentPage: { control: 'number' },\n currentSize: { control: 'number' },\n isLoadingData: { control: 'boolean' },\n loader: { control: 'object' },\n sortBy: { control: 'text' },\n sortDirection: { control: 'select', options: ['asc', 'desc'] },\n onNextPage: { action: 'next-page' },\n onPreviousPage: { action: 'previous-page' },\n onPageSizeChange: { action: 'page-size-change' },\n onSort: { action: 'sort' },\n onRowAction: { action: 'row-action' },\n },\n}"
5106
5286
  },
5107
5287
  {
5108
5288
  "kind": "variable",
@@ -5110,7 +5290,7 @@
5110
5290
  "type": {
5111
5291
  "text": "Story"
5112
5292
  },
5113
- "default": "{\n render: (args: ArgTypes) => Template(args),\n args: {\n headers: defaultHeaderDescriptors,\n data: defaultData,\n paginated: true,\n disableMobileTable: false,\n showMobileTableInTablet: false,\n pageSizeOptions: [5, 10, 20],\n totalItems: 8,\n currentPage: 1,\n currentSize: 5,\n isLoadingData: false,\n loader: {\n size: '30px',\n color: Palette.MAIN,\n visible: true,\n ariaLabel: 'Loading',\n wrapperStyle: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n padding: '48px 0',\n },\n },\n },\n}"
5293
+ "default": "{\n render: (args: ArgTypes) => Template(args),\n args: {\n headers: defaultHeaderDescriptors,\n data: defaultData,\n dark: false,\n paginated: true,\n disableMobileTable: false,\n showMobileTableInTablet: false,\n pageSizeOptions: [5, 10, 20],\n totalItems: 8,\n currentPage: 1,\n currentSize: 5,\n isLoadingData: false,\n sortBy: 'id',\n sortDirection: 'asc',\n loader: {\n size: '30px',\n visible: true,\n ariaLabel: 'Loading',\n wrapperStyle: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n padding: '48px 0',\n },\n },\n },\n}"
5114
5294
  }
5115
5295
  ],
5116
5296
  "exports": [
@@ -5212,6 +5392,46 @@
5212
5392
  }
5213
5393
  ]
5214
5394
  },
5395
+ {
5396
+ "kind": "javascript-module",
5397
+ "path": "src/tuix-toast/stories/tuix-toast.stories.ts",
5398
+ "declarations": [
5399
+ {
5400
+ "kind": "variable",
5401
+ "name": "meta",
5402
+ "type": {
5403
+ "text": "object"
5404
+ },
5405
+ "default": "{\n title: 'TuixToast',\n component: 'tuix-toast',\n argTypes: {\n type: {\n control: 'select',\n options: Object.values(ToastType),\n },\n dark: {\n control: 'boolean',\n },\n visibilityDuration: {\n control: 'number',\n },\n onClose: { action: 'on-close' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"height: 100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <tuix-toast\n type=\"${args.type}\"\n ?dark=\"${args.dark}\"\n visibility-duration=\"${args.visibilityDuration}\"\n @on-close=\"${args.onClose}\"\n >\n Lorem ipsum dolor sit amet consectetur. Sollicitudin id interdum\n dignissim at orci. Augue vivamus arcu massa porta facilisi.\n </tuix-toast>\n </div>\n `,\n}"
5406
+ },
5407
+ {
5408
+ "kind": "variable",
5409
+ "name": "toastExample",
5410
+ "type": {
5411
+ "text": "Story"
5412
+ },
5413
+ "default": "{\n args: {\n type: ToastType.TEXT,\n dark: false,\n visibilityDuration: 4000,\n },\n}"
5414
+ }
5415
+ ],
5416
+ "exports": [
5417
+ {
5418
+ "kind": "js",
5419
+ "name": "default",
5420
+ "declaration": {
5421
+ "name": "meta",
5422
+ "module": "src/tuix-toast/stories/tuix-toast.stories.ts"
5423
+ }
5424
+ },
5425
+ {
5426
+ "kind": "js",
5427
+ "name": "toastExample",
5428
+ "declaration": {
5429
+ "name": "toastExample",
5430
+ "module": "src/tuix-toast/stories/tuix-toast.stories.ts"
5431
+ }
5432
+ }
5433
+ ]
5434
+ },
5215
5435
  {
5216
5436
  "kind": "javascript-module",
5217
5437
  "path": "src/tuix-toast/enums/tuix-toast.enums.ts",
@@ -5284,46 +5504,6 @@
5284
5504
  }
5285
5505
  ]
5286
5506
  },
5287
- {
5288
- "kind": "javascript-module",
5289
- "path": "src/tuix-toast/stories/tuix-toast.stories.ts",
5290
- "declarations": [
5291
- {
5292
- "kind": "variable",
5293
- "name": "meta",
5294
- "type": {
5295
- "text": "object"
5296
- },
5297
- "default": "{\n title: 'TuixToast',\n component: 'tuix-toast',\n argTypes: {\n type: {\n control: 'select',\n options: Object.values(ToastType),\n },\n dark: {\n control: 'boolean',\n },\n visibilityDuration: {\n control: 'number',\n },\n onClose: { action: 'on-close' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"height: 100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <tuix-toast\n type=\"${args.type}\"\n ?dark=\"${args.dark}\"\n visibility-duration=\"${args.visibilityDuration}\"\n @on-close=\"${args.onClose}\"\n >\n Lorem ipsum dolor sit amet consectetur. Sollicitudin id interdum\n dignissim at orci. Augue vivamus arcu massa porta facilisi.\n </tuix-toast>\n </div>\n `,\n}"
5298
- },
5299
- {
5300
- "kind": "variable",
5301
- "name": "toastExample",
5302
- "type": {
5303
- "text": "Story"
5304
- },
5305
- "default": "{\n args: {\n type: ToastType.TEXT,\n dark: false,\n visibilityDuration: 4000,\n },\n}"
5306
- }
5307
- ],
5308
- "exports": [
5309
- {
5310
- "kind": "js",
5311
- "name": "default",
5312
- "declaration": {
5313
- "name": "meta",
5314
- "module": "src/tuix-toast/stories/tuix-toast.stories.ts"
5315
- }
5316
- },
5317
- {
5318
- "kind": "js",
5319
- "name": "toastExample",
5320
- "declaration": {
5321
- "name": "toastExample",
5322
- "module": "src/tuix-toast/stories/tuix-toast.stories.ts"
5323
- }
5324
- }
5325
- ]
5326
- },
5327
5507
  {
5328
5508
  "kind": "javascript-module",
5329
5509
  "path": "src/tuix-toggle-button/interfaces/tuix-toggle.interface.ts",