@tectra-ng/themes 0.1.1 → 0.1.3

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.
@@ -1,4 +1,17 @@
1
- import { ACCENT_PALETTES, INK_SURFACE, SEVERITY_PALETTES, layers, motion, radius, shadows, spacing, typography } from "@tectra-ng/tokens";
1
+ import { ACCENT_PALETTES, SEVERITY_PALETTES, SURFACE_PALETTES, layers, motion, radius, shadows, spacing, typography } from "@tectra-ng/tokens";
2
+ function channel(hex, offset) {
3
+ const value = parseInt(hex.slice(offset, offset + 2), 16) / 255;
4
+ return value <= .03928 ? value / 12.92 : ((value + .055) / 1.055) ** 2.4;
5
+ }
6
+ function relativeLuminance(hex) {
7
+ return .2126 * channel(hex, 1) + .7152 * channel(hex, 3) + .0722 * channel(hex, 5);
8
+ }
9
+ function contrastWithWhite(hex) {
10
+ return 1.05 / (relativeLuminance(hex) + .05);
11
+ }
12
+ function primaryBaseStep(scale) {
13
+ return contrastWithWhite(scale[600]) >= 4.5 ? 600 : 700;
14
+ }
2
15
  function lightSeverity(scale, base, surface) {
3
16
  return {
4
17
  base: scale[base],
@@ -11,7 +24,7 @@ function lightSeverity(scale, base, surface) {
11
24
  function createLightSemantic({ accent, surface }) {
12
25
  return {
13
26
  primary: {
14
- ...lightSeverity(accent, 600, surface),
27
+ ...lightSeverity(accent, primaryBaseStep(accent), surface),
15
28
  softText: accent[700]
16
29
  },
17
30
  secondary: {
@@ -150,7 +163,7 @@ function mix(color, amount, base) {
150
163
  function fade(color, transparency) {
151
164
  return `color-mix(in srgb, ${color}, transparent ${transparency})`;
152
165
  }
153
- function solid(group) {
166
+ function solid$2(group) {
154
167
  return {
155
168
  background: tokenRef(`${group}-base`),
156
169
  hoverBackground: tokenRef(`${group}-hover`),
@@ -167,7 +180,7 @@ function solid(group) {
167
180
  }
168
181
  };
169
182
  }
170
- function outlined(palette, color) {
183
+ function outlined$1(palette, color) {
171
184
  return {
172
185
  hoverBackground: lightDark(tokenRef(`${palette}-50`), mix(tokenRef(`${palette}-400`), "8%", tokenRef("surface-900"))),
173
186
  activeBackground: lightDark(tokenRef(`${palette}-100`), mix(tokenRef(`${palette}-400`), "18%", tokenRef("surface-900"))),
@@ -216,7 +229,7 @@ const buttonTokens = {
216
229
  },
217
230
  badgeSize: "18px",
218
231
  transitionDuration: tokenRef("motion-duration"),
219
- primary: solid("primary"),
232
+ primary: solid$2("primary"),
220
233
  secondary: {
221
234
  background: tokenRef("secondary-base"),
222
235
  hoverBackground: tokenRef("secondary-hover"),
@@ -232,26 +245,26 @@ const buttonTokens = {
232
245
  shadow: "none"
233
246
  }
234
247
  },
235
- info: solid("info"),
236
- success: solid("success"),
237
- warn: solid("warn"),
238
- help: solid("help"),
239
- danger: solid("danger"),
240
- contrast: solid("contrast")
248
+ info: solid$2("info"),
249
+ success: solid$2("success"),
250
+ warn: solid$2("warn"),
251
+ help: solid$2("help"),
252
+ danger: solid$2("danger"),
253
+ contrast: solid$2("contrast")
241
254
  },
242
255
  outlined: {
243
- primary: outlined("primary", tokenRef("primary-base")),
256
+ primary: outlined$1("primary", tokenRef("primary-base")),
244
257
  secondary: {
245
258
  hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
246
259
  activeBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
247
260
  borderColor: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
248
261
  color: lightDark(tokenRef("surface-800"), tokenRef("surface-100"))
249
262
  },
250
- success: outlined("green", severityColor("green")),
251
- info: outlined("sky", lightDark(tokenRef("sky-700"), tokenRef("sky-400"))),
252
- warn: outlined("orange", lightDark(tokenRef("orange-700"), tokenRef("orange-400"))),
253
- help: outlined("purple", severityColor("purple")),
254
- danger: outlined("red", severityColor("red")),
263
+ success: outlined$1("green", severityColor("green")),
264
+ info: outlined$1("sky", lightDark(tokenRef("sky-700"), tokenRef("sky-400"))),
265
+ warn: outlined$1("orange", lightDark(tokenRef("orange-700"), tokenRef("orange-400"))),
266
+ help: outlined$1("purple", severityColor("purple")),
267
+ danger: outlined$1("red", severityColor("red")),
255
268
  contrast: {
256
269
  hoverBackground: lightDark(tokenRef("surface-50"), tokenRef("surface-800")),
257
270
  activeBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-700")),
@@ -329,7 +342,13 @@ const formFieldTokens = { root: {
329
342
  fontSize: "15.75px",
330
343
  lineHeight: "23.625px"
331
344
  },
332
- focusRing: { shadow: "none" },
345
+ focusRing: {
346
+ shadow: "none",
347
+ width: "0px",
348
+ style: "none",
349
+ color: "transparent",
350
+ offset: "0px"
351
+ },
333
352
  invalidFocusRing: { shadow: "none" },
334
353
  transitionDuration: tokenRef("motion-duration")
335
354
  } };
@@ -420,6 +439,8 @@ const selectTokens = {
420
439
  },
421
440
  list: {
422
441
  padding: "3.5px",
442
+ paddingBlock: tokenRef("select-list-padding"),
443
+ paddingInline: tokenRef("select-list-padding"),
423
444
  gap: "2px",
424
445
  maxHeight: "200px"
425
446
  },
@@ -428,6 +449,7 @@ const selectTokens = {
428
449
  gap: "7px",
429
450
  borderRadius: tokenRef("radius-sm"),
430
451
  color: tokenRef("text-primary"),
452
+ focusColor: tokenRef("select-option-color"),
431
453
  focusBackground: tokenRef("list-focus-background"),
432
454
  selectedBackground: tokenRef("highlight-background"),
433
455
  selectedColor: tokenRef("highlight-color"),
@@ -435,7 +457,13 @@ const selectTokens = {
435
457
  selectedFocusColor: tokenRef("highlight-focus-color"),
436
458
  selectedFontWeight: tokenRef("font-weight-regular"),
437
459
  disabledColor: tokenRef("form-field-disabled-color"),
438
- checkColor: tokenRef("primary-base")
460
+ checkColor: tokenRef("primary-base"),
461
+ multiple: {
462
+ selectedBackground: "transparent",
463
+ selectedFocusBackground: tokenRef("select-option-focus-background"),
464
+ selectedColor: tokenRef("select-option-color"),
465
+ selectedFocusColor: tokenRef("select-option-focus-color")
466
+ }
439
467
  },
440
468
  checkbox: {
441
469
  size: "15.75px",
@@ -473,8 +501,10 @@ const selectTokens = {
473
501
  minHeight: "37px"
474
502
  },
475
503
  dropdownButton: {
504
+ width: tokenRef("select-dropdown-width"),
476
505
  background: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
477
506
  hoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
507
+ activeBackground: tokenRef("select-dropdown-button-hover-background"),
478
508
  color: lightDark(tokenRef("surface-600"), tokenRef("surface-300")),
479
509
  hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-200"))
480
510
  },
@@ -505,12 +535,14 @@ const chipsInputTokens = { root: {
505
535
  inputMinWidth: "80px"
506
536
  } };
507
537
  const countryTokens = { root: {
508
- gap: "8px",
509
- smallSize: "16px",
510
- mediumSize: "20px",
511
- largeSize: "24px",
512
- borderRadius: "2px",
538
+ gap: "7px",
539
+ smallSize: "1em",
540
+ mediumSize: "17.5px",
541
+ largeSize: "28px",
542
+ borderRadius: tokenRef("radius-xs"),
513
543
  ring: `0 0 0 1px ${tokenRef("surface-border")}`,
544
+ ringGutter: "1px",
545
+ loadingBackground: tokenRef("surface-hover"),
514
546
  nameColor: "inherit",
515
547
  hintColor: tokenRef("text-muted"),
516
548
  countColor: tokenRef("text-muted"),
@@ -562,14 +594,6 @@ const mentionTokens = { root: {
562
594
  descriptionColor: tokenRef("text-muted"),
563
595
  descriptionFontSize: tokenRef("font-size-sm")
564
596
  } };
565
- const treeTokens = { root: {
566
- indent: "18px",
567
- gap: "6px",
568
- togglerSize: "20px",
569
- togglerColor: tokenRef("text-muted"),
570
- togglerHoverBackground: tokenRef("surface-hover"),
571
- iconColor: tokenRef("text-muted")
572
- } };
573
597
  const cascadeSelectTokens = { root: {
574
598
  columnWidth: "200px",
575
599
  columnBorderColor: tokenRef("surface-overlay-border"),
@@ -634,6 +658,8 @@ const messageTokens = {
634
658
  borderRadius: tokenRef("radius-lg"),
635
659
  borderColor: tokenRef("surface-border"),
636
660
  borderTint: "30%",
661
+ borderWidth: "1px",
662
+ outlinedBorderWidth: "1px",
637
663
  background: tokenRef("surface-card"),
638
664
  backgroundTint: "7%",
639
665
  color: tokenRef("text-primary"),
@@ -658,7 +684,10 @@ const messageTokens = {
658
684
  color: tokenRef("text-muted"),
659
685
  hoverColor: tokenRef("text-primary"),
660
686
  hoverBackground: fade(tokenRef("text-primary"), "92%"),
661
- fontSize: "14px"
687
+ fontSize: "14px",
688
+ focusRingWidth: "2px",
689
+ focusRingOffset: "1px",
690
+ focusRingShadow: "none"
662
691
  },
663
692
  sm: {
664
693
  gap: "10px",
@@ -849,6 +878,11 @@ const toggleSwitchTokens = {
849
878
  height: "22px",
850
879
  gutter: "2px",
851
880
  borderRadius: tokenRef("radius-full"),
881
+ borderWidth: "0px",
882
+ borderColor: "transparent",
883
+ hoverBorderColor: "transparent",
884
+ checkedBorderColor: "transparent",
885
+ checkedHoverBorderColor: "transparent",
852
886
  background: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
853
887
  hoverBackground: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
854
888
  checkedBackground: tokenRef("primary-base"),
@@ -945,6 +979,7 @@ const inputNumberTokens = { button: {
945
979
  activeBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-600")),
946
980
  color: tokenRef("text-muted"),
947
981
  hoverColor: tokenRef("text-primary"),
982
+ activeColor: tokenRef("input-number-button-hover-color"),
948
983
  borderColor: tokenRef("form-field-border-color"),
949
984
  iconSize: "12px"
950
985
  } };
@@ -1005,6 +1040,7 @@ const sliderTokens = {
1005
1040
  handle: {
1006
1041
  size: "18px",
1007
1042
  background: tokenRef("surface-0"),
1043
+ hoverBackground: tokenRef("slider-handle-background"),
1008
1044
  borderColor: tokenRef("primary-base"),
1009
1045
  borderWidth: "2px",
1010
1046
  shadow: `0 1px 2px ${fade(tokenRef("surface-950"), "80%")}`,
@@ -1081,7 +1117,11 @@ const pillTokens = {
1081
1117
  }
1082
1118
  };
1083
1119
  function tone$2(palette) {
1084
- return { color: lightDark(tokenRef(`${palette}-800`), tokenRef(`${palette}-300`)) };
1120
+ const color = lightDark(tokenRef(`${palette}-800`), tokenRef(`${palette}-300`));
1121
+ return {
1122
+ color,
1123
+ background: color
1124
+ };
1085
1125
  }
1086
1126
  const tagTokens = {
1087
1127
  root: {
@@ -1110,13 +1150,19 @@ const tagTokens = {
1110
1150
  gap: "6px"
1111
1151
  },
1112
1152
  primary: tone$2("primary"),
1113
- secondary: { color: tokenRef("text-muted") },
1153
+ secondary: {
1154
+ color: tokenRef("text-muted"),
1155
+ background: tokenRef("text-muted")
1156
+ },
1114
1157
  success: tone$2("green"),
1115
1158
  info: tone$2("sky"),
1116
1159
  warn: tone$2("orange"),
1117
1160
  danger: tone$2("red"),
1118
1161
  help: tone$2("purple"),
1119
- contrast: { color: tokenRef("text-primary") }
1162
+ contrast: {
1163
+ color: tokenRef("text-primary"),
1164
+ background: tokenRef("text-primary")
1165
+ }
1120
1166
  };
1121
1167
  const chipTokens = { root: {
1122
1168
  gap: "6px",
@@ -1132,7 +1178,10 @@ const chipTokens = { root: {
1132
1178
  removeColor: tokenRef("text-muted"),
1133
1179
  removeHoverColor: tokenRef("text-primary"),
1134
1180
  removeHoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
1135
- focusRingColor: tokenRef("focus-ring-color")
1181
+ focusRingColor: tokenRef("focus-ring-color"),
1182
+ focusRingWidth: "2px",
1183
+ focusRingOffset: "1px",
1184
+ focusRingShadow: "none"
1136
1185
  } };
1137
1186
  function fill(palette) {
1138
1187
  return lightDark(tokenRef(`${palette}-600`), tokenRef(`${palette}-400`));
@@ -1285,6 +1334,14 @@ const fieldsetTokens = { root: {
1285
1334
  legendFontSize: tokenRef("font-size-md"),
1286
1335
  legendFontWeight: tokenRef("font-weight-semibold"),
1287
1336
  legendHoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
1337
+ legendFocusBackground: "transparent",
1338
+ legendBackground: "transparent",
1339
+ legendBorderColor: "transparent",
1340
+ legendBorderRadius: tokenRef("radius-md"),
1341
+ togglePadding: "4px 8px",
1342
+ focusRingWidth: "2px",
1343
+ focusRingOffset: "1px",
1344
+ focusRingShadow: "none",
1288
1345
  transitionDuration: "0.25s"
1289
1346
  } };
1290
1347
  const highlightTextTokens = { mark: {
@@ -1603,6 +1660,7 @@ const menuTokens = {
1603
1660
  fontWeight: tokenRef("font-weight-regular"),
1604
1661
  focusBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
1605
1662
  focusColor: tokenRef("text-hover"),
1663
+ activeBackground: tokenRef("menu-item-focus-background"),
1606
1664
  disabledOpacity: "0.6",
1607
1665
  dangerColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
1608
1666
  dangerFocusBackground: lightDark(tokenRef("red-50"), `color-mix(in srgb, ${tokenRef("red-400")}, transparent 96%)`)
@@ -1697,7 +1755,8 @@ const paginatorTokens = {
1697
1755
  width: "2px",
1698
1756
  style: "solid",
1699
1757
  color: tokenRef("focus-ring-color"),
1700
- offset: "2px"
1758
+ offset: "2px",
1759
+ shadow: "none"
1701
1760
  }
1702
1761
  },
1703
1762
  currentPageReport: {
@@ -1713,10 +1772,10 @@ const paginatorTokens = {
1713
1772
  margin: "10.5px 0"
1714
1773
  }
1715
1774
  };
1716
- const borderColor = tokenRef("surface-border");
1775
+ const borderColor$1 = tokenRef("surface-border");
1717
1776
  const tableTokens = {
1718
1777
  root: {
1719
- borderColor,
1778
+ borderColor: borderColor$1,
1720
1779
  transitionDuration: tokenRef("motion-duration"),
1721
1780
  color: tokenRef("text-primary"),
1722
1781
  fontSize: tokenRef("font-size-md"),
@@ -1739,6 +1798,13 @@ const tableTokens = {
1739
1798
  fontSize: "11.375px",
1740
1799
  fontWeight: tokenRef("font-weight-semibold"),
1741
1800
  gap: "7px",
1801
+ focusRing: {
1802
+ width: "2px",
1803
+ style: "solid",
1804
+ color: tokenRef("focus-ring-color"),
1805
+ offset: "2px",
1806
+ shadow: "none"
1807
+ },
1742
1808
  sm: { padding: "1.75px 5.25px" },
1743
1809
  lg: { padding: "10.5px 15.75px" }
1744
1810
  },
@@ -1762,7 +1828,8 @@ const tableTokens = {
1762
1828
  width: "2px",
1763
1829
  style: "solid",
1764
1830
  color: tokenRef("focus-ring-color"),
1765
- offset: "-2px"
1831
+ offset: "-2px",
1832
+ shadow: "none"
1766
1833
  }
1767
1834
  },
1768
1835
  bodyCell: {
@@ -1797,7 +1864,7 @@ const tableTokens = {
1797
1864
  },
1798
1865
  dragPreview: {
1799
1866
  background: tokenRef("surface-card"),
1800
- borderColor,
1867
+ borderColor: borderColor$1,
1801
1868
  borderRadius: tokenRef("radius-md"),
1802
1869
  shadow: tokenRef("shadow-overlay")
1803
1870
  },
@@ -1833,7 +1900,14 @@ const tableTokens = {
1833
1900
  borderRadius: "50%",
1834
1901
  color: tokenRef("text-muted"),
1835
1902
  hoverColor: tokenRef("text-primary"),
1836
- hoverBackground: tokenRef("surface-hover")
1903
+ hoverBackground: tokenRef("surface-hover"),
1904
+ focusRing: {
1905
+ width: "2px",
1906
+ style: "solid",
1907
+ color: tokenRef("focus-ring-color"),
1908
+ offset: "2px",
1909
+ shadow: "none"
1910
+ }
1837
1911
  },
1838
1912
  paginator: { marginTop: "14px" },
1839
1913
  settings: {
@@ -1858,7 +1932,7 @@ const tableTokens = {
1858
1932
  gap: "10.5px",
1859
1933
  borderRadius: "10.5px",
1860
1934
  background: tokenRef("surface-card"),
1861
- borderColor,
1935
+ borderColor: borderColor$1,
1862
1936
  fieldPadding: "7px 14px",
1863
1937
  fieldGap: "10.5px",
1864
1938
  fieldFontSize: "12.25px",
@@ -1871,154 +1945,2130 @@ const tableTokens = {
1871
1945
  actionsPadding: "8.75px 10.5px"
1872
1946
  }
1873
1947
  };
1874
- const iconTokens = { root: {
1875
- size: "1em",
1876
- strokeWidth: "1.75"
1877
- } };
1878
- const rippleTokens = { root: {
1879
- color: "currentColor",
1880
- opacity: "0.2",
1881
- enterDuration: "450ms",
1882
- exitDuration: "350ms",
1883
- easing: "cubic-bezier(0.2, 0, 0, 1)"
1884
- } };
1885
- const toggleButtonTokens = {
1948
+ const treeTokens = {
1886
1949
  root: {
1887
- padding: "4px",
1888
- borderRadius: tokenRef("radius-md"),
1889
- gap: "8px",
1890
- fontWeight: tokenRef("font-weight-medium"),
1891
- fontSize: tokenRef("font-size-md"),
1892
- background: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
1893
- checkedBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
1894
- hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
1895
- borderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
1896
- checkedBorderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
1897
- color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
1898
- hoverColor: lightDark(tokenRef("surface-800"), tokenRef("surface-300")),
1899
- checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
1900
- disabledBackground: tokenRef("field-disabled-background"),
1901
- disabledBorderColor: tokenRef("field-disabled-background"),
1902
- disabledColor: tokenRef("text-muted"),
1903
- invalidBorderColor: tokenRef("danger-base"),
1950
+ background: tokenRef("surface-card"),
1951
+ color: tokenRef("text-primary"),
1952
+ padding: "12.25px",
1953
+ gap: "2px",
1954
+ indent: "12.25px",
1955
+ transitionDuration: tokenRef("motion-duration")
1956
+ },
1957
+ node: {
1958
+ padding: "3.5px 7px",
1959
+ borderRadius: tokenRef("radius-lg"),
1960
+ hoverBackground: tokenRef("surface-hover"),
1961
+ selectedBackground: tokenRef("highlight-background"),
1962
+ color: tokenRef("text-primary"),
1963
+ hoverColor: tokenRef("text-hover"),
1964
+ selectedColor: tokenRef("highlight-color"),
1965
+ gap: "5.25px",
1966
+ focusRing: {
1967
+ width: "2px",
1968
+ style: "solid",
1969
+ color: tokenRef("focus-ring-color"),
1970
+ offset: "-1px",
1971
+ shadow: "none"
1972
+ }
1973
+ },
1974
+ nodeIcon: {
1975
+ color: tokenRef("text-muted"),
1976
+ hoverColor: tokenRef("text-muted-hover"),
1977
+ selectedColor: tokenRef("highlight-color")
1978
+ },
1979
+ nodeLabel: {
1980
+ fontWeight: tokenRef("font-weight-regular"),
1981
+ selectedFontWeight: tokenRef("font-weight-regular"),
1982
+ fontSize: tokenRef("font-size-md")
1983
+ },
1984
+ nodeToggleButton: {
1985
+ borderRadius: "50%",
1986
+ size: "21px",
1987
+ hoverBackground: tokenRef("surface-hover"),
1988
+ selectedHoverBackground: tokenRef("surface-card"),
1989
+ color: tokenRef("text-muted"),
1990
+ hoverColor: tokenRef("text-muted-hover"),
1991
+ selectedHoverColor: tokenRef("primary-base"),
1904
1992
  focusRing: {
1905
1993
  width: "2px",
1906
1994
  style: "solid",
1907
1995
  color: tokenRef("focus-ring-color"),
1908
1996
  offset: "2px"
1909
- },
1910
- transitionDuration: tokenRef("motion-duration"),
1911
- sm: {
1912
- fontSize: tokenRef("font-size-sm"),
1913
- padding: "3px"
1914
- },
1915
- lg: {
1916
- fontSize: tokenRef("font-size-lg"),
1917
- padding: "5px"
1918
1997
  }
1919
1998
  },
1920
- icon: {
1921
- color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
1922
- hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-300")),
1923
- checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
1924
- disabledColor: tokenRef("text-muted")
1999
+ loadingIcon: { size: "24.5px" },
2000
+ filter: { margin: "0 0 7px 0" },
2001
+ mask: { background: lightDark("rgba(255, 255, 255, 0.5)", "rgba(0, 0, 0, 0.3)") },
2002
+ dropPoint: { color: tokenRef("primary-base") },
2003
+ expansion: {
2004
+ duration: `calc(${tokenRef("motion-duration")} * 1.6)`,
2005
+ easing: "cubic-bezier(0.2, 0, 0, 1)"
2006
+ }
2007
+ };
2008
+ const treeTableTokens = { node: {
2009
+ indent: "16px",
2010
+ gap: "7px"
2011
+ } };
2012
+ const borderColor = tokenRef("surface-border");
2013
+ const dataViewTokens = {
2014
+ root: {
2015
+ background: tokenRef("surface-card"),
2016
+ color: tokenRef("text-primary"),
2017
+ borderColor,
2018
+ borderWidth: "0",
2019
+ borderRadius: "0",
2020
+ transitionDuration: tokenRef("motion-duration")
1925
2021
  },
1926
- content: {
1927
- padding: "4px 10px",
1928
- borderRadius: tokenRef("radius-sm"),
1929
- checkedBackground: lightDark(tokenRef("surface-0"), tokenRef("surface-800")),
1930
- checkedShadow: "0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",
1931
- sm: { padding: "3px 8px" },
1932
- lg: { padding: "5px 12px" }
2022
+ header: {
2023
+ background: tokenRef("surface-card"),
2024
+ color: tokenRef("text-primary"),
2025
+ padding: "8.75px 12.25px",
2026
+ borderRadius: "0"
2027
+ },
2028
+ footer: {
2029
+ background: tokenRef("surface-card"),
2030
+ color: tokenRef("text-primary"),
2031
+ padding: "8.75px 12.25px",
2032
+ borderRadius: "0"
2033
+ },
2034
+ empty: {
2035
+ padding: "10.5px 12.25px",
2036
+ color: tokenRef("text-muted")
2037
+ },
2038
+ loading: {
2039
+ blur: "8px",
2040
+ background: "transparent"
2041
+ },
2042
+ layoutSwitch: { gap: "0" }
2043
+ };
2044
+ const virtualScrollerTokens = {
2045
+ root: {
2046
+ focusRingWidth: "2px",
2047
+ focusRingColor: tokenRef("focus-ring-color"),
2048
+ focusRingOffset: "-2px"
2049
+ },
2050
+ loader: {
2051
+ background: tokenRef("surface-card"),
2052
+ color: tokenRef("text-muted"),
2053
+ iconSize: "24.5px"
1933
2054
  }
1934
2055
  };
1935
- const COMPONENT_TOKENS = {
1936
- icon: iconTokens,
1937
- ripple: rippleTokens,
1938
- formField: formFieldTokens,
1939
- inputGroup: inputGroupTokens,
1940
- label: labelTokens,
1941
- floatLabel: floatLabelTokens,
1942
- iftaLabel: iftaLabelTokens,
1943
- button: buttonTokens,
1944
- select: selectTokens,
1945
- listbox: listboxTokens,
1946
- chipsInput: chipsInputTokens,
1947
- country: countryTokens,
1948
- colorPicker: colorPickerTokens,
1949
- mention: mentionTokens,
1950
- tree: treeTokens,
1951
- cascadeSelect: cascadeSelectTokens,
1952
- emailSuggestion: emailSuggestionTokens,
1953
- badge: badgeTokens,
1954
- toggleButton: toggleButtonTokens,
1955
- message: messageTokens,
1956
- fieldMessage: fieldMessageTokens,
1957
- field: fieldTokens,
1958
- textarea: textareaTokens,
1959
- checkbox: checkboxTokens,
1960
- radioButton: radioButtonTokens,
1961
- toggleSwitch: toggleSwitchTokens,
1962
- password: passwordTokens,
1963
- inputOtp: inputOtpTokens,
1964
- inputNumber: inputNumberTokens,
1965
- rating: ratingTokens,
1966
- knob: knobTokens,
1967
- slider: sliderTokens,
1968
- overlayBadge: overlayBadgeTokens,
1969
- pill: pillTokens,
1970
- tag: tagTokens,
1971
- chip: chipTokens,
1972
- progressBar: progressBarTokens,
1973
- progressSpinner: progressSpinnerTokens,
1974
- skeleton: skeletonTokens,
1975
- avatar: avatarTokens,
1976
- divider: dividerTokens,
1977
- card: cardTokens,
1978
- panel: panelTokens,
1979
- fieldset: fieldsetTokens,
1980
- highlightText: highlightTextTokens,
1981
- amount: amountTokens,
1982
- statusIcon: statusIconTokens,
1983
- link: linkTokens,
1984
- iconLink: iconLinkTokens,
1985
- tooltip: tooltipTokens,
1986
- popover: popoverTokens,
1987
- toast: toastTokens,
1988
- dialog: dialogTokens,
1989
- confirm: confirmTokens,
1990
- menu: menuTokens,
1991
- splitButton: splitButtonTokens,
1992
- speedDial: speedDialTokens,
1993
- paginator: paginatorTokens,
1994
- table: tableTokens
2056
+ const timelineTokens = {
2057
+ event: { minHeight: "63px" },
2058
+ horizontal: { eventContentPadding: "12.25px 0" },
2059
+ vertical: { eventContentPadding: "0 12.25px" },
2060
+ eventMarker: {
2061
+ size: "14px",
2062
+ borderRadius: "50%",
2063
+ borderWidth: "2px",
2064
+ background: tokenRef("surface-card"),
2065
+ borderColor: tokenRef("surface-border"),
2066
+ contentBorderRadius: "50%",
2067
+ contentSize: "6px",
2068
+ contentBackground: tokenRef("primary-base"),
2069
+ contentInsetShadow: "0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"
2070
+ },
2071
+ eventConnector: {
2072
+ color: tokenRef("surface-border"),
2073
+ size: "2px"
2074
+ }
1995
2075
  };
1996
- function createInkPreset(accent = "blue") {
1997
- const palettes = {
1998
- accent: ACCENT_PALETTES[accent],
1999
- surface: INK_SURFACE
2000
- };
2001
- return {
2002
- name: `ink-${accent}`,
2003
- palettes,
2004
- light: createLightSemantic(palettes),
2005
- dark: createDarkSemantic(palettes),
2006
- components: COMPONENT_TOKENS
2007
- };
2008
- }
2009
- const InkPreset = createInkPreset();
2010
- function isPlainObject(value) {
2011
- return typeof value === "object" && value !== null && !Array.isArray(value);
2012
- }
2013
- function deepMerge(base, overrides) {
2014
- if (!overrides) return base;
2015
- const result = { ...base };
2016
- for (const [key, value] of Object.entries(overrides)) result[key] = isPlainObject(value) && isPlainObject(result[key]) ? deepMerge(result[key], value) : value;
2017
- return result;
2018
- }
2019
- function definePreset(base, overrides) {
2020
- return deepMerge(base, overrides);
2076
+ const statTilesTokens = {
2077
+ root: {
2078
+ gap: "14px",
2079
+ minWidth: "168px",
2080
+ floorWidth: "210px"
2081
+ },
2082
+ compact: { gap: "7px" }
2083
+ };
2084
+ const statTileTokens = {
2085
+ root: {
2086
+ background: tokenRef("surface-card"),
2087
+ borderColor: tokenRef("surface-border"),
2088
+ borderWidth: "1px",
2089
+ borderRadius: tokenRef("radius-lg"),
2090
+ paddingX: "17.5px",
2091
+ paddingY: "14px",
2092
+ gap: "10.5px",
2093
+ headGap: "14px",
2094
+ mainGap: "3.5px",
2095
+ transitionDuration: tokenRef("motion-duration")
2096
+ },
2097
+ compact: {
2098
+ paddingX: "12.25px",
2099
+ paddingY: "8.75px",
2100
+ gap: "7px",
2101
+ iconSize: "28px",
2102
+ valueFontSize: "17.5px"
2103
+ },
2104
+ icon: {
2105
+ size: "38.5px",
2106
+ fontSize: "15.75px",
2107
+ borderRadius: tokenRef("radius-md"),
2108
+ backgroundMix: "12%"
2109
+ },
2110
+ label: {
2111
+ color: tokenRef("text-muted"),
2112
+ fontSize: "11.375px",
2113
+ fontWeight: tokenRef("font-weight-medium")
2114
+ },
2115
+ value: {
2116
+ color: tokenRef("text-primary"),
2117
+ fontSize: "24.5px",
2118
+ fontWeight: tokenRef("font-weight-semibold"),
2119
+ lineHeight: "1",
2120
+ letterSpacing: "-0.03em",
2121
+ textFontSize: "17.5px",
2122
+ textLineHeight: "24.5px",
2123
+ fitMinFontSize: "14px",
2124
+ fitFontSize: "8cqi",
2125
+ fitMaxFontSize: "24.5px"
2126
+ },
2127
+ unit: {
2128
+ color: tokenRef("text-muted"),
2129
+ fontSize: "12.25px",
2130
+ lineHeight: "17.5px",
2131
+ fontWeight: tokenRef("font-weight-medium"),
2132
+ gap: "3.5px"
2133
+ },
2134
+ meta: {
2135
+ color: tokenRef("text-muted"),
2136
+ fontSize: "10.5px",
2137
+ lineHeight: "14px"
2138
+ },
2139
+ bar: {
2140
+ height: "3.5px",
2141
+ marginTop: "3.5px",
2142
+ borderRadius: tokenRef("radius-full"),
2143
+ background: tokenRef("surface-ground"),
2144
+ transitionDuration: "0.5s"
2145
+ },
2146
+ highlighted: {
2147
+ backgroundMix: "8%",
2148
+ borderMix: "30%"
2149
+ },
2150
+ link: {
2151
+ hoverBorderColor: tokenRef("primary-base"),
2152
+ focusRingWidth: "2px",
2153
+ focusRingColor: tokenRef("primary-base")
2154
+ },
2155
+ tone: {
2156
+ neutral: tokenRef("text-muted"),
2157
+ primary: tokenRef("primary-base"),
2158
+ success: lightDark(tokenRef("green-600"), tokenRef("green-400")),
2159
+ info: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
2160
+ warn: lightDark(tokenRef("amber-600"), tokenRef("amber-400")),
2161
+ danger: lightDark(tokenRef("red-600"), tokenRef("red-400"))
2162
+ }
2163
+ };
2164
+ const sparklineTokens = {
2165
+ root: {
2166
+ height: "31.5px",
2167
+ strokeWidth: "1.75",
2168
+ areaOpacity: "0.1"
2169
+ },
2170
+ tone: {
2171
+ primary: tokenRef("primary-base"),
2172
+ info: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
2173
+ success: lightDark(tokenRef("green-600"), tokenRef("green-400")),
2174
+ warn: lightDark(tokenRef("amber-600"), tokenRef("amber-400")),
2175
+ danger: lightDark(tokenRef("red-600"), tokenRef("red-400"))
2176
+ }
2177
+ };
2178
+ const countdownTokens = { root: {
2179
+ color: "inherit",
2180
+ fontWeight: "inherit",
2181
+ endingColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
2182
+ expiredColor: "inherit",
2183
+ transitionDuration: tokenRef("motion-duration")
2184
+ } };
2185
+ const analogClockTokens = {
2186
+ root: {
2187
+ size: "210px",
2188
+ background: tokenRef("surface-card"),
2189
+ borderColor: tokenRef("surface-border"),
2190
+ shadow: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
2191
+ transitionDuration: "700ms",
2192
+ transitionEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)"
2193
+ },
2194
+ tick: {
2195
+ width: "3.5px",
2196
+ height: "4%",
2197
+ offset: "-1125%",
2198
+ color: tokenRef("surface-border"),
2199
+ majorHeight: "7%",
2200
+ majorOffset: "-600%",
2201
+ majorColor: tokenRef("text-muted")
2202
+ },
2203
+ hourHand: {
2204
+ width: "5.25px",
2205
+ length: "27%",
2206
+ color: tokenRef("text-primary")
2207
+ },
2208
+ minuteHand: {
2209
+ width: "3.5px",
2210
+ length: "40%",
2211
+ color: tokenRef("primary-base")
2212
+ },
2213
+ secondHand: {
2214
+ width: "1.75px",
2215
+ length: "42%",
2216
+ color: lightDark(tokenRef("red-600"), tokenRef("red-400"))
2217
+ },
2218
+ pin: {
2219
+ size: "14px",
2220
+ color: tokenRef("primary-base"),
2221
+ ringWidth: "4px",
2222
+ ringColor: tokenRef("surface-card")
2223
+ }
2224
+ };
2225
+ const focusRing = {
2226
+ width: "2px",
2227
+ style: "solid",
2228
+ color: tokenRef("focus-ring-color"),
2229
+ offset: "2px",
2230
+ shadow: "none"
2231
+ };
2232
+ const datePickerTokens = {
2233
+ root: { transitionDuration: tokenRef("motion-duration") },
2234
+ panel: {
2235
+ background: tokenRef("surface-overlay"),
2236
+ borderColor: tokenRef("surface-overlay-border"),
2237
+ color: tokenRef("text-primary"),
2238
+ borderRadius: tokenRef("radius-lg"),
2239
+ shadow: tokenRef("shadow-overlay"),
2240
+ padding: "10.5px"
2241
+ },
2242
+ header: {
2243
+ background: tokenRef("surface-overlay"),
2244
+ borderColor: tokenRef("surface-overlay-border"),
2245
+ color: tokenRef("text-primary"),
2246
+ padding: "0 0 7px 0"
2247
+ },
2248
+ title: {
2249
+ gap: "7px",
2250
+ fontWeight: tokenRef("font-weight-medium"),
2251
+ fontSize: tokenRef("font-size-md")
2252
+ },
2253
+ dropdown: {
2254
+ width: "31.5px",
2255
+ sm: { width: "24.5px" },
2256
+ lg: { width: "36.75px" },
2257
+ background: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
2258
+ hoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2259
+ activeBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
2260
+ borderColor: tokenRef("form-field-border-color"),
2261
+ hoverBorderColor: tokenRef("form-field-border-color"),
2262
+ activeBorderColor: tokenRef("form-field-border-color"),
2263
+ color: lightDark(tokenRef("surface-600"), tokenRef("surface-300")),
2264
+ hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-200")),
2265
+ activeColor: lightDark(tokenRef("surface-800"), tokenRef("surface-100")),
2266
+ borderRadius: tokenRef("form-field-border-radius"),
2267
+ focusRing
2268
+ },
2269
+ inputIcon: { color: tokenRef("form-field-icon-color") },
2270
+ selectMonth: {
2271
+ hoverBackground: tokenRef("surface-hover"),
2272
+ color: tokenRef("text-primary"),
2273
+ hoverColor: tokenRef("text-hover"),
2274
+ padding: "3.5px 7px",
2275
+ borderRadius: tokenRef("radius-lg"),
2276
+ fontWeight: tokenRef("font-weight-medium"),
2277
+ fontSize: tokenRef("font-size-md")
2278
+ },
2279
+ selectYear: {
2280
+ hoverBackground: tokenRef("surface-hover"),
2281
+ color: tokenRef("text-primary"),
2282
+ hoverColor: tokenRef("text-hover"),
2283
+ padding: "3.5px 7px",
2284
+ borderRadius: tokenRef("radius-lg"),
2285
+ fontWeight: tokenRef("font-weight-medium"),
2286
+ fontSize: tokenRef("font-size-md")
2287
+ },
2288
+ group: {
2289
+ borderColor: tokenRef("surface-overlay-border"),
2290
+ gap: "10.5px"
2291
+ },
2292
+ dayView: { margin: "7px 0 0 0" },
2293
+ weekDay: {
2294
+ padding: "3.5px",
2295
+ fontWeight: tokenRef("font-weight-medium"),
2296
+ fontSize: tokenRef("font-size-md"),
2297
+ color: tokenRef("text-primary")
2298
+ },
2299
+ weekNumber: {
2300
+ color: tokenRef("text-muted"),
2301
+ fontSize: tokenRef("font-size-sm")
2302
+ },
2303
+ date: {
2304
+ fontWeight: tokenRef("font-weight-regular"),
2305
+ fontSize: tokenRef("font-size-md"),
2306
+ hoverBackground: tokenRef("surface-hover"),
2307
+ selectedBackground: tokenRef("primary-base"),
2308
+ rangeSelectedBackground: tokenRef("highlight-background"),
2309
+ color: tokenRef("text-primary"),
2310
+ hoverColor: tokenRef("text-hover"),
2311
+ selectedColor: tokenRef("primary-contrast"),
2312
+ rangeSelectedColor: tokenRef("highlight-color"),
2313
+ disabledOpacity: "0.6",
2314
+ width: "24.5px",
2315
+ height: "24.5px",
2316
+ borderRadius: "50%",
2317
+ padding: "3.5px",
2318
+ focusRing
2319
+ },
2320
+ monthView: { margin: "7px 0 0 0" },
2321
+ month: {
2322
+ padding: "3.5px",
2323
+ borderRadius: tokenRef("radius-lg")
2324
+ },
2325
+ yearView: { margin: "7px 0 0 0" },
2326
+ year: {
2327
+ padding: "3.5px",
2328
+ borderRadius: tokenRef("radius-lg")
2329
+ },
2330
+ buttonbar: {
2331
+ padding: "7px 0 0 0",
2332
+ borderColor: tokenRef("surface-overlay-border")
2333
+ },
2334
+ timePicker: {
2335
+ padding: "7px 0 0 0",
2336
+ borderColor: tokenRef("surface-overlay-border"),
2337
+ gap: "7px",
2338
+ buttonGap: "1.75px",
2339
+ color: tokenRef("text-primary"),
2340
+ fontWeight: tokenRef("font-weight-regular"),
2341
+ fontSize: tokenRef("font-size-md")
2342
+ },
2343
+ today: {
2344
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2345
+ color: lightDark(tokenRef("surface-900"), tokenRef("surface-0"))
2346
+ },
2347
+ touch: {
2348
+ maskBackground: tokenRef("mask-background"),
2349
+ width: "min(92vw, 360px)"
2350
+ }
2351
+ };
2352
+ const monthCalendarTokens = {
2353
+ root: {
2354
+ background: tokenRef("surface-card"),
2355
+ borderColor: tokenRef("surface-border"),
2356
+ borderRadius: tokenRef("radius-lg"),
2357
+ transitionDuration: tokenRef("motion-duration")
2358
+ },
2359
+ head: { background: tokenRef("surface-ground") },
2360
+ weekday: {
2361
+ padding: "7px",
2362
+ widePaddingX: "10.5px",
2363
+ color: tokenRef("text-muted"),
2364
+ fontSize: "10.5px",
2365
+ fontWeight: tokenRef("font-weight-semibold"),
2366
+ weekendColor: tokenRef("text-muted")
2367
+ },
2368
+ week: {
2369
+ height: "49px",
2370
+ headHeight: "31.5px",
2371
+ laneHeight: "21px",
2372
+ moreHeight: "21px"
2373
+ },
2374
+ cell: {
2375
+ borderColor: tokenRef("surface-border"),
2376
+ weekendBackground: `color-mix(in srgb, ${tokenRef("surface-ground")} 70%, transparent)`,
2377
+ selectedBackground: `color-mix(in srgb, ${tokenRef("primary-base")} 9%, transparent)`
2378
+ },
2379
+ day: {
2380
+ padding: "3.5px",
2381
+ widePaddingX: "5.25px",
2382
+ color: tokenRef("text-primary"),
2383
+ hoverBackground: `color-mix(in srgb, ${tokenRef("primary-base")} 5%, transparent)`,
2384
+ gap: "3.5px",
2385
+ focusRingWidth: "2px",
2386
+ focusRingColor: tokenRef("primary-base")
2387
+ },
2388
+ number: {
2389
+ size: "24.5px",
2390
+ fontSize: "11.375px",
2391
+ fontWeight: tokenRef("font-weight-medium"),
2392
+ selectedColor: tokenRef("primary-base"),
2393
+ selectedFontWeight: tokenRef("font-weight-semibold"),
2394
+ todayBackground: tokenRef("primary-base"),
2395
+ todayColor: tokenRef("primary-contrast"),
2396
+ outsideColor: tokenRef("text-muted")
2397
+ },
2398
+ dot: {
2399
+ size: "5.25px",
2400
+ gap: "3.5px",
2401
+ bottom: "5.25px"
2402
+ },
2403
+ event: {
2404
+ height: "17.5px",
2405
+ paddingX: "7px",
2406
+ gap: "5.25px",
2407
+ inset: "3.5px",
2408
+ borderRadius: "5.25px",
2409
+ fontSize: "10.5px",
2410
+ fontWeight: tokenRef("font-weight-medium"),
2411
+ backgroundMix: "14%",
2412
+ hoverBackgroundMix: "24%",
2413
+ textMix: "65%",
2414
+ textBase: tokenRef("text-primary"),
2415
+ avatarSize: "14px"
2416
+ },
2417
+ more: {
2418
+ margin: "3.5px",
2419
+ padding: "1.75px 5.25px",
2420
+ borderRadius: "5.25px",
2421
+ color: tokenRef("text-muted"),
2422
+ hoverColor: tokenRef("primary-base"),
2423
+ hoverBackground: `color-mix(in srgb, ${tokenRef("primary-base")} 10%, transparent)`,
2424
+ fontSize: "10.5px",
2425
+ fontWeight: tokenRef("font-weight-semibold")
2426
+ },
2427
+ tone: {
2428
+ primary: tokenRef("primary-base"),
2429
+ info: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
2430
+ success: lightDark(tokenRef("green-600"), tokenRef("green-400")),
2431
+ warn: lightDark(tokenRef("amber-600"), tokenRef("amber-400")),
2432
+ danger: lightDark(tokenRef("red-600"), tokenRef("red-400")),
2433
+ neutral: tokenRef("text-muted")
2434
+ }
2435
+ };
2436
+ const iconTokens = { root: {
2437
+ size: "1em",
2438
+ strokeWidth: "1.75"
2439
+ } };
2440
+ const rippleTokens = { root: {
2441
+ color: "currentColor",
2442
+ opacity: "0.2",
2443
+ enterDuration: "450ms",
2444
+ exitDuration: "350ms",
2445
+ easing: "cubic-bezier(0.2, 0, 0, 1)"
2446
+ } };
2447
+ const toggleButtonTokens = {
2448
+ root: {
2449
+ padding: "4px",
2450
+ borderRadius: tokenRef("radius-md"),
2451
+ gap: "8px",
2452
+ fontWeight: tokenRef("font-weight-medium"),
2453
+ fontSize: tokenRef("font-size-md"),
2454
+ background: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
2455
+ checkedBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
2456
+ hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
2457
+ borderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
2458
+ checkedBorderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
2459
+ color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
2460
+ hoverColor: lightDark(tokenRef("surface-800"), tokenRef("surface-300")),
2461
+ checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
2462
+ disabledBackground: tokenRef("field-disabled-background"),
2463
+ disabledBorderColor: tokenRef("field-disabled-background"),
2464
+ disabledColor: tokenRef("text-muted"),
2465
+ invalidBorderColor: tokenRef("danger-base"),
2466
+ focusRing: {
2467
+ width: "2px",
2468
+ style: "solid",
2469
+ color: tokenRef("focus-ring-color"),
2470
+ offset: "2px"
2471
+ },
2472
+ transitionDuration: tokenRef("motion-duration"),
2473
+ sm: {
2474
+ fontSize: tokenRef("font-size-sm"),
2475
+ padding: "3px"
2476
+ },
2477
+ lg: {
2478
+ fontSize: tokenRef("font-size-lg"),
2479
+ padding: "5px"
2480
+ }
2481
+ },
2482
+ icon: {
2483
+ color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
2484
+ hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-300")),
2485
+ checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
2486
+ disabledColor: tokenRef("text-muted")
2487
+ },
2488
+ content: {
2489
+ padding: "4px 10px",
2490
+ borderRadius: tokenRef("radius-sm"),
2491
+ checkedBackground: lightDark(tokenRef("surface-0"), tokenRef("surface-800")),
2492
+ checkedShadow: "0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",
2493
+ sm: { padding: "3px 8px" },
2494
+ lg: { padding: "5px 12px" }
2495
+ }
2496
+ };
2497
+ const COMPONENT_TOKENS = {
2498
+ icon: iconTokens,
2499
+ ripple: rippleTokens,
2500
+ formField: formFieldTokens,
2501
+ inputGroup: inputGroupTokens,
2502
+ label: labelTokens,
2503
+ floatLabel: floatLabelTokens,
2504
+ iftaLabel: iftaLabelTokens,
2505
+ button: buttonTokens,
2506
+ select: selectTokens,
2507
+ listbox: listboxTokens,
2508
+ chipsInput: chipsInputTokens,
2509
+ country: countryTokens,
2510
+ colorPicker: colorPickerTokens,
2511
+ mention: mentionTokens,
2512
+ tree: treeTokens,
2513
+ cascadeSelect: cascadeSelectTokens,
2514
+ emailSuggestion: emailSuggestionTokens,
2515
+ badge: badgeTokens,
2516
+ toggleButton: toggleButtonTokens,
2517
+ message: messageTokens,
2518
+ fieldMessage: fieldMessageTokens,
2519
+ field: fieldTokens,
2520
+ textarea: textareaTokens,
2521
+ checkbox: checkboxTokens,
2522
+ radioButton: radioButtonTokens,
2523
+ toggleSwitch: toggleSwitchTokens,
2524
+ password: passwordTokens,
2525
+ inputOtp: inputOtpTokens,
2526
+ inputNumber: inputNumberTokens,
2527
+ rating: ratingTokens,
2528
+ knob: knobTokens,
2529
+ slider: sliderTokens,
2530
+ overlayBadge: overlayBadgeTokens,
2531
+ pill: pillTokens,
2532
+ tag: tagTokens,
2533
+ chip: chipTokens,
2534
+ progressBar: progressBarTokens,
2535
+ progressSpinner: progressSpinnerTokens,
2536
+ skeleton: skeletonTokens,
2537
+ avatar: avatarTokens,
2538
+ divider: dividerTokens,
2539
+ card: cardTokens,
2540
+ panel: panelTokens,
2541
+ fieldset: fieldsetTokens,
2542
+ highlightText: highlightTextTokens,
2543
+ amount: amountTokens,
2544
+ statusIcon: statusIconTokens,
2545
+ link: linkTokens,
2546
+ iconLink: iconLinkTokens,
2547
+ tooltip: tooltipTokens,
2548
+ popover: popoverTokens,
2549
+ toast: toastTokens,
2550
+ dialog: dialogTokens,
2551
+ confirm: confirmTokens,
2552
+ menu: menuTokens,
2553
+ splitButton: splitButtonTokens,
2554
+ speedDial: speedDialTokens,
2555
+ paginator: paginatorTokens,
2556
+ table: tableTokens,
2557
+ treeTable: treeTableTokens,
2558
+ dataView: dataViewTokens,
2559
+ virtualScroller: virtualScrollerTokens,
2560
+ timeline: timelineTokens,
2561
+ statTiles: statTilesTokens,
2562
+ statTile: statTileTokens,
2563
+ sparkline: sparklineTokens,
2564
+ datePicker: datePickerTokens,
2565
+ monthCalendar: monthCalendarTokens,
2566
+ countdown: countdownTokens,
2567
+ analogClock: analogClockTokens
2568
+ };
2569
+ function edgeLight({ accent, surface }) {
2570
+ const base = primaryBaseStep(accent);
2571
+ return {
2572
+ surface: {
2573
+ hover: surface[200],
2574
+ border: surface[400],
2575
+ overlayBorder: "transparent"
2576
+ },
2577
+ field: {
2578
+ border: surface[500],
2579
+ hoverBorder: surface[500],
2580
+ disabledBackground: surface[300],
2581
+ placeholder: surface[600],
2582
+ icon: surface[900]
2583
+ },
2584
+ highlight: {
2585
+ background: accent[base],
2586
+ focusBackground: accent[base === 600 ? 700 : 800],
2587
+ color: surface[0],
2588
+ focusColor: surface[0]
2589
+ },
2590
+ list: { focusBackground: surface[200] }
2591
+ };
2592
+ }
2593
+ function edgeDark({ accent, surface }) {
2594
+ return {
2595
+ primary: {
2596
+ base: accent[500],
2597
+ hover: accent[400],
2598
+ active: accent[300]
2599
+ },
2600
+ surface: {
2601
+ hover: surface[700],
2602
+ border: surface[500]
2603
+ },
2604
+ field: {
2605
+ border: surface[500],
2606
+ hoverBorder: surface[500],
2607
+ icon: surface[0]
2608
+ },
2609
+ highlight: {
2610
+ background: accent[500],
2611
+ focusBackground: accent[400],
2612
+ color: surface[950],
2613
+ focusColor: surface[950]
2614
+ },
2615
+ list: { focusBackground: surface[700] },
2616
+ focusRing: { color: accent[500] }
2617
+ };
2618
+ }
2619
+ const filledBackground = lightDark(tokenRef("surface-100"), tokenRef("surface-800"));
2620
+ const edgeFormsTokens = {
2621
+ formField: { root: {
2622
+ filledBackground,
2623
+ filledHoverBackground: filledBackground,
2624
+ filledFocusBackground: filledBackground,
2625
+ focusBorderColor: tokenRef("field-border"),
2626
+ invalidBorderColor: lightDark(tokenRef("red-500"), tokenRef("red-400")),
2627
+ placeholderColor: tokenRef("field-placeholder"),
2628
+ iconColor: tokenRef("field-icon"),
2629
+ shadow: "none",
2630
+ borderRadius: tokenRef("radius-xs"),
2631
+ focusRing: {
2632
+ width: "2px",
2633
+ style: "solid",
2634
+ color: tokenRef("focus-ring-color"),
2635
+ offset: "-1px"
2636
+ }
2637
+ } },
2638
+ inputGroup: { addon: {
2639
+ color: tokenRef("form-field-icon-color"),
2640
+ paddingX: "7px",
2641
+ minWidth: "35px"
2642
+ } },
2643
+ floatLabel: {
2644
+ root: { fontWeight: tokenRef("font-weight-medium") },
2645
+ over: { active: { top: "-17.5px" } }
2646
+ },
2647
+ iftaLabel: { root: { fontWeight: tokenRef("font-weight-regular") } },
2648
+ password: {
2649
+ panel: { borderRadius: tokenRef("radius-xs") },
2650
+ meter: {
2651
+ borderRadius: tokenRef("radius-xs"),
2652
+ background: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
2653
+ weakBackground: lightDark(tokenRef("red-600"), tokenRef("red-500")),
2654
+ mediumBackground: lightDark(tokenRef("yellow-600"), tokenRef("yellow-500")),
2655
+ strongBackground: lightDark(tokenRef("green-600"), tokenRef("green-500"))
2656
+ }
2657
+ },
2658
+ inputNumber: { button: {
2659
+ width: "35px",
2660
+ hoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2661
+ activeBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
2662
+ color: tokenRef("form-field-icon-color"),
2663
+ hoverColor: tokenRef("form-field-icon-color"),
2664
+ activeColor: tokenRef("form-field-icon-color")
2665
+ } },
2666
+ select: {
2667
+ overlay: { borderRadius: tokenRef("radius-xs") },
2668
+ list: {
2669
+ paddingBlock: "1.75px",
2670
+ paddingInline: "0px",
2671
+ gap: "0px"
2672
+ },
2673
+ option: {
2674
+ borderRadius: "0",
2675
+ focusColor: tokenRef("text-hover"),
2676
+ checkColor: tokenRef("highlight-color"),
2677
+ multiple: {
2678
+ selectedBackground: tokenRef("highlight-background"),
2679
+ selectedFocusBackground: tokenRef("highlight-focus-background"),
2680
+ selectedColor: tokenRef("highlight-color"),
2681
+ selectedFocusColor: tokenRef("highlight-focus-color")
2682
+ }
2683
+ },
2684
+ optionGroup: {
2685
+ color: tokenRef("text-primary"),
2686
+ fontWeight: tokenRef("font-weight-bold")
2687
+ },
2688
+ chip: { borderRadius: tokenRef("radius-xs") },
2689
+ filter: { padding: "7px 7px 1.75px" },
2690
+ header: { padding: "7px 7px 1.75px" },
2691
+ dropdownButton: {
2692
+ background: tokenRef("form-field-background"),
2693
+ color: tokenRef("form-field-icon-color"),
2694
+ hoverColor: tokenRef("form-field-icon-color")
2695
+ }
2696
+ },
2697
+ chipsInput: { root: { chipBorderRadius: tokenRef("radius-xs") } },
2698
+ colorPicker: {
2699
+ root: { swatchBorderRadius: tokenRef("radius-xs") },
2700
+ panel: { borderRadius: tokenRef("radius-xs") }
2701
+ }
2702
+ };
2703
+ const steps$1 = (palette, light, dark) => lightDark(tokenRef(`${palette}-${light}`), tokenRef(`${palette}-${dark}`));
2704
+ const outlined = (palette) => ({
2705
+ hoverBackground: steps$1(palette, 50, 950),
2706
+ activeBackground: steps$1(palette, 100, 900),
2707
+ borderColor: steps$1(palette, 600, 500)
2708
+ });
2709
+ const outlinedWithColor = (palette) => ({
2710
+ ...outlined(palette),
2711
+ color: steps$1(palette, 600, 500)
2712
+ });
2713
+ const edgeControlsTokens = {
2714
+ button: {
2715
+ root: {
2716
+ borderRadius: tokenRef("radius-xs"),
2717
+ label: { fontWeight: tokenRef("font-weight-bold") },
2718
+ secondary: {
2719
+ background: steps$1("surface", 200, 700),
2720
+ hoverBackground: steps$1("surface", 300, 600),
2721
+ activeBackground: steps$1("surface", 400, 500),
2722
+ borderColor: steps$1("surface", 200, 700),
2723
+ hoverBorderColor: steps$1("surface", 300, 600),
2724
+ activeBorderColor: steps$1("surface", 400, 500),
2725
+ color: steps$1("surface", 700, 200),
2726
+ hoverColor: steps$1("surface", 800, 100),
2727
+ activeColor: steps$1("surface", 900, 0),
2728
+ focusRing: { color: steps$1("surface", 700, 200) }
2729
+ }
2730
+ },
2731
+ outlined: {
2732
+ primary: { borderColor: tokenRef("primary-base") },
2733
+ secondary: {
2734
+ borderColor: steps$1("surface", 600, 400),
2735
+ color: steps$1("surface", 600, 400)
2736
+ },
2737
+ success: outlinedWithColor("green"),
2738
+ info: outlined("sky"),
2739
+ warn: outlined("orange"),
2740
+ help: outlinedWithColor("purple"),
2741
+ danger: outlinedWithColor("red"),
2742
+ contrast: { borderColor: steps$1("surface", 950, 0) },
2743
+ plain: {
2744
+ borderColor: steps$1("surface", 900, 0),
2745
+ color: steps$1("surface", 900, 0)
2746
+ }
2747
+ },
2748
+ text: {
2749
+ secondary: { color: steps$1("surface", 600, 400) },
2750
+ success: { color: steps$1("green", 600, 500) },
2751
+ help: { color: steps$1("purple", 600, 500) },
2752
+ danger: { color: steps$1("red", 600, 500) },
2753
+ plain: { color: steps$1("surface", 900, 0) }
2754
+ }
2755
+ },
2756
+ toggleButton: {
2757
+ root: {
2758
+ borderRadius: tokenRef("radius-xs"),
2759
+ background: tokenRef("form-field-background"),
2760
+ checkedBackground: tokenRef("highlight-background"),
2761
+ hoverBackground: steps$1("surface", 200, 700),
2762
+ borderColor: tokenRef("form-field-border-color"),
2763
+ checkedBorderColor: tokenRef("form-field-border-color"),
2764
+ color: tokenRef("form-field-color"),
2765
+ hoverColor: tokenRef("form-field-color"),
2766
+ checkedColor: tokenRef("highlight-color"),
2767
+ focusRing: { offset: "-1px" }
2768
+ },
2769
+ icon: {
2770
+ color: tokenRef("text-muted"),
2771
+ hoverColor: tokenRef("text-muted"),
2772
+ checkedColor: tokenRef("highlight-color")
2773
+ },
2774
+ content: {
2775
+ padding: "0",
2776
+ borderRadius: "0",
2777
+ checkedBackground: "transparent",
2778
+ checkedShadow: "none",
2779
+ sm: { padding: "0" },
2780
+ lg: { padding: "0" }
2781
+ }
2782
+ },
2783
+ checkbox: { root: { borderRadius: tokenRef("radius-xs") } },
2784
+ radioButton: { root: {
2785
+ checkedBackground: tokenRef("form-field-background"),
2786
+ checkedHoverBackground: tokenRef("form-field-background"),
2787
+ checkedBorderColor: tokenRef("form-field-border-color"),
2788
+ checkedHoverBorderColor: tokenRef("form-field-hover-border-color"),
2789
+ dotColor: tokenRef("primary-base")
2790
+ } },
2791
+ toggleSwitch: {
2792
+ root: {
2793
+ borderWidth: "1px",
2794
+ borderColor: tokenRef("form-field-border-color"),
2795
+ hoverBorderColor: tokenRef("form-field-border-color"),
2796
+ checkedBorderColor: tokenRef("primary-base"),
2797
+ checkedHoverBorderColor: tokenRef("primary-base"),
2798
+ background: tokenRef("form-field-background"),
2799
+ hoverBackground: tokenRef("form-field-background"),
2800
+ checkedHoverBackground: tokenRef("primary-base"),
2801
+ disabledBackground: tokenRef("form-field-disabled-background"),
2802
+ transitionDuration: "0.1s"
2803
+ },
2804
+ handle: {
2805
+ background: tokenRef("form-field-border-color"),
2806
+ checkedBackground: tokenRef("primary-contrast"),
2807
+ disabledBackground: tokenRef("form-field-disabled-color"),
2808
+ iconColor: tokenRef("surface-0")
2809
+ }
2810
+ },
2811
+ rating: { root: {
2812
+ activeColor: tokenRef("text-primary"),
2813
+ hoverColor: tokenRef("text-primary")
2814
+ } },
2815
+ knob: { root: { rangeColor: steps$1("surface", 300, 600) } },
2816
+ slider: {
2817
+ root: {
2818
+ trackBackground: steps$1("surface", 300, 600),
2819
+ trackBorderRadius: tokenRef("radius-xs")
2820
+ },
2821
+ handle: {
2822
+ size: "16px",
2823
+ background: tokenRef("primary-base"),
2824
+ shadow: "none"
2825
+ }
2826
+ }
2827
+ };
2828
+ function solid$1(severity) {
2829
+ return {
2830
+ background: tokenRef(`${severity}-base`),
2831
+ color: tokenRef(`${severity}-contrast`)
2832
+ };
2833
+ }
2834
+ const edgeDisplayTokens = {
2835
+ tag: {
2836
+ root: {
2837
+ borderRadius: tokenRef("radius-xs"),
2838
+ tint: "100%"
2839
+ },
2840
+ primary: solid$1("primary"),
2841
+ secondary: {
2842
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2843
+ color: lightDark(tokenRef("surface-700"), tokenRef("surface-200"))
2844
+ },
2845
+ success: solid$1("success"),
2846
+ info: solid$1("info"),
2847
+ warn: solid$1("warn"),
2848
+ danger: solid$1("danger"),
2849
+ help: solid$1("help"),
2850
+ contrast: solid$1("contrast")
2851
+ },
2852
+ chip: { root: {
2853
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2854
+ iconColor: tokenRef("text-primary"),
2855
+ removeColor: tokenRef("text-primary")
2856
+ } },
2857
+ message: {
2858
+ root: {
2859
+ borderRadius: tokenRef("radius-xs"),
2860
+ fontSize: "14px",
2861
+ fontWeight: tokenRef("font-weight-bold")
2862
+ },
2863
+ info: { text: lightDark(tokenRef("sky-800"), tokenRef("sky-200")) },
2864
+ success: { text: lightDark(tokenRef("green-800"), tokenRef("green-200")) },
2865
+ danger: { text: lightDark(tokenRef("red-800"), tokenRef("red-200")) }
2866
+ },
2867
+ progressBar: { root: {
2868
+ borderRadius: tokenRef("radius-xs"),
2869
+ trackBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
2870
+ labelFontWeight: tokenRef("font-weight-bold")
2871
+ } },
2872
+ skeleton: { root: {
2873
+ borderRadius: tokenRef("radius-xs"),
2874
+ background: lightDark(tokenRef("surface-300"), fade(tokenRef("surface-0"), "90%"))
2875
+ } },
2876
+ avatar: { root: {
2877
+ squareBorderRadius: tokenRef("radius-xs"),
2878
+ color: tokenRef("text-primary")
2879
+ } },
2880
+ divider: { root: { contentColor: tokenRef("text-primary") } },
2881
+ card: { root: {
2882
+ borderRadius: tokenRef("radius-sm"),
2883
+ shadow: "0 1px 4px 0 rgba(0, 0, 0, 0.1)"
2884
+ } },
2885
+ panel: { root: {
2886
+ borderRadius: tokenRef("radius-xs"),
2887
+ titleFontWeight: tokenRef("font-weight-bold")
2888
+ } },
2889
+ fieldset: { root: {
2890
+ borderRadius: tokenRef("radius-xs"),
2891
+ padding: "8.75px 14px 14px 14px",
2892
+ legendHoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
2893
+ legendBorderRadius: tokenRef("radius-xs"),
2894
+ legendBorderColor: tokenRef("surface-border"),
2895
+ legendFontWeight: tokenRef("font-weight-bold")
2896
+ } }
2897
+ };
2898
+ const radius$3 = tokenRef("radius-xs");
2899
+ const listPadding = "1.75px 0";
2900
+ const edgeOverlaysTokens = {
2901
+ tooltip: { root: {
2902
+ background: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
2903
+ color: lightDark(tokenRef("surface-0"), tokenRef("surface-900")),
2904
+ borderRadius: radius$3
2905
+ } },
2906
+ popover: { root: { borderRadius: radius$3 } },
2907
+ toast: { item: {
2908
+ background: tokenRef("surface-card"),
2909
+ blur: "0px",
2910
+ borderRadius: radius$3,
2911
+ shadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"
2912
+ } },
2913
+ dialog: {
2914
+ root: {
2915
+ borderColor: tokenRef("surface-overlay-border"),
2916
+ borderRadius: radius$3
2917
+ },
2918
+ title: { fontWeight: tokenRef("font-weight-bold") }
2919
+ },
2920
+ confirm: {
2921
+ message: { color: tokenRef("text-primary") },
2922
+ popup: { borderRadius: radius$3 }
2923
+ },
2924
+ menu: {
2925
+ root: {
2926
+ borderRadius: radius$3,
2927
+ padding: listPadding,
2928
+ gap: "0"
2929
+ },
2930
+ item: {
2931
+ borderRadius: "0",
2932
+ focusBackground: tokenRef("primary-base"),
2933
+ focusColor: tokenRef("primary-contrast"),
2934
+ activeBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700"))
2935
+ },
2936
+ icon: {
2937
+ color: tokenRef("text-muted"),
2938
+ focusColor: tokenRef("primary-contrast")
2939
+ },
2940
+ groupLabel: {
2941
+ color: tokenRef("text-primary"),
2942
+ fontWeight: tokenRef("font-weight-bold")
2943
+ },
2944
+ popup: {
2945
+ borderColor: tokenRef("surface-border"),
2946
+ padding: listPadding,
2947
+ gap: "0",
2948
+ itemBorderRadius: "0"
2949
+ },
2950
+ context: {
2951
+ padding: listPadding,
2952
+ itemBorderRadius: "0"
2953
+ }
2954
+ }
2955
+ };
2956
+ const radius$2 = tokenRef("radius-xs");
2957
+ const edgeDataTokens = {
2958
+ paginator: {
2959
+ root: { borderRadius: radius$2 },
2960
+ navButton: { borderRadius: radius$2 }
2961
+ },
2962
+ table: {
2963
+ root: { borderColor: lightDark(tokenRef("surface-300"), tokenRef("surface-600")) },
2964
+ headerCell: { fontWeight: tokenRef("font-weight-bold") },
2965
+ footerCell: { fontWeight: tokenRef("font-weight-bold") }
2966
+ },
2967
+ tree: { node: {
2968
+ borderRadius: radius$2,
2969
+ focusRing: { offset: "-2px" }
2970
+ } }
2971
+ };
2972
+ const edgeStyle = {
2973
+ label: "Edge",
2974
+ light: edgeLight,
2975
+ dark: edgeDark,
2976
+ components: {
2977
+ ...edgeFormsTokens,
2978
+ ...edgeControlsTokens,
2979
+ ...edgeDisplayTokens,
2980
+ ...edgeOverlaysTokens,
2981
+ ...edgeDataTokens
2982
+ }
2983
+ };
2984
+ const shadow = {
2985
+ field: "none",
2986
+ overlay: "0 18px 44px -16px rgba(12, 16, 21, 0.26), 0 4px 12px -4px rgba(12, 16, 21, 0.08)",
2987
+ modal: "0 40px 80px -28px rgba(12, 16, 21, 0.4), 0 8px 24px -8px rgba(12, 16, 21, 0.12)"
2988
+ };
2989
+ function softLight({ surface }) {
2990
+ return {
2991
+ surface: {
2992
+ border: surface[100],
2993
+ overlayBorder: "transparent"
2994
+ },
2995
+ field: { disabledBackground: surface[200] },
2996
+ shadow
2997
+ };
2998
+ }
2999
+ function softDark({ surface }) {
3000
+ return {
3001
+ surface: {
3002
+ border: surface[800],
3003
+ overlayBorder: surface[800]
3004
+ },
3005
+ field: { disabledBackground: surface[700] },
3006
+ shadow
3007
+ };
3008
+ }
3009
+ const softGlow = (color) => lightDark(fade(tokenRef(color), "72%"), fade(tokenRef(color), "62%"));
3010
+ const softFocusShadow = (color = "primary-base") => `0 0 0 3px ${softGlow(color)}`;
3011
+ const softFill = lightDark(tokenRef("surface-100"), tokenRef("surface-800"));
3012
+ const softFillHover = lightDark(tokenRef("surface-200"), tokenRef("surface-700"));
3013
+ const softLine = lightDark(tokenRef("surface-300"), tokenRef("surface-600"));
3014
+ const softCardShadow = `0 1px 2px ${fade(tokenRef("surface-950"), "96%")}, 0 8px 24px -12px ${fade(tokenRef("surface-950"), "86%")}`;
3015
+ const softFormsTokens = {
3016
+ formField: { root: {
3017
+ background: softFill,
3018
+ filledBackground: softFill,
3019
+ filledHoverBackground: softFillHover,
3020
+ filledFocusBackground: lightDark(tokenRef("surface-0"), tokenRef("surface-900")),
3021
+ borderColor: softFill,
3022
+ hoverBorderColor: softLine,
3023
+ shadow: "none",
3024
+ borderRadius: tokenRef("radius-xl"),
3025
+ paddingX: "14px",
3026
+ sm: { paddingX: "12px" },
3027
+ lg: { paddingX: "16px" },
3028
+ focusRing: { shadow: softFocusShadow() },
3029
+ invalidFocusRing: { shadow: softFocusShadow("danger-base") }
3030
+ } },
3031
+ inputGroup: { addon: {
3032
+ background: softFillHover,
3033
+ borderColor: softFill
3034
+ } },
3035
+ select: {
3036
+ overlay: { borderRadius: tokenRef("radius-xl") },
3037
+ list: {
3038
+ padding: "6px",
3039
+ gap: "2px"
3040
+ },
3041
+ option: {
3042
+ padding: "8px 12px",
3043
+ borderRadius: tokenRef("radius-lg")
3044
+ },
3045
+ chip: { borderRadius: tokenRef("radius-full") },
3046
+ checkbox: {
3047
+ borderRadius: "6px",
3048
+ borderColor: softLine
3049
+ }
3050
+ },
3051
+ listbox: { root: { focusRingShadow: softFocusShadow() } },
3052
+ chipsInput: { root: { chipBorderRadius: tokenRef("radius-full") } },
3053
+ password: { panel: { borderRadius: tokenRef("radius-xl") } }
3054
+ };
3055
+ const focus = (color) => ({ focusRing: {
3056
+ color: "transparent",
3057
+ shadow: softFocusShadow(color)
3058
+ } });
3059
+ const tonal = (amount) => mix(tokenRef("primary-base"), amount, tokenRef("surface-card"));
3060
+ const glowRing = {
3061
+ focusRingColor: softGlow("primary-base"),
3062
+ focusRingWidth: "3px",
3063
+ focusRingOffset: "0"
3064
+ };
3065
+ const softControlsTokens = {
3066
+ button: { root: {
3067
+ borderRadius: "22px",
3068
+ paddingX: "16px",
3069
+ sm: { paddingX: "12px" },
3070
+ lg: { paddingX: "20px" },
3071
+ focusRing: {
3072
+ width: "0",
3073
+ style: "none",
3074
+ offset: "0"
3075
+ },
3076
+ primary: focus("primary-base"),
3077
+ secondary: {
3078
+ background: tonal("12%"),
3079
+ hoverBackground: tonal("18%"),
3080
+ activeBackground: tonal("26%"),
3081
+ borderColor: tonal("12%"),
3082
+ hoverBorderColor: tonal("18%"),
3083
+ activeBorderColor: tonal("26%"),
3084
+ color: tokenRef("primary-soft-text"),
3085
+ hoverColor: tokenRef("primary-soft-text"),
3086
+ activeColor: tokenRef("primary-soft-text"),
3087
+ ...focus("primary-base")
3088
+ },
3089
+ info: focus("info-base"),
3090
+ success: focus("success-base"),
3091
+ warn: focus("warn-base"),
3092
+ help: focus("help-base"),
3093
+ danger: focus("danger-base"),
3094
+ contrast: focus("contrast-base")
3095
+ } },
3096
+ toggleButton: {
3097
+ root: {
3098
+ borderRadius: tokenRef("radius-full"),
3099
+ borderColor: "transparent",
3100
+ checkedBorderColor: "transparent",
3101
+ focusRing: {
3102
+ width: "3px",
3103
+ color: softGlow("primary-base"),
3104
+ offset: "0"
3105
+ }
3106
+ },
3107
+ content: { borderRadius: tokenRef("radius-full") }
3108
+ },
3109
+ checkbox: { root: {
3110
+ borderRadius: "6px",
3111
+ borderColor: softLine,
3112
+ hoverBorderColor: tokenRef("primary-base"),
3113
+ disabledBorderColor: softLine,
3114
+ ...glowRing
3115
+ } },
3116
+ radioButton: {
3117
+ root: {
3118
+ borderColor: softLine,
3119
+ hoverBorderColor: tokenRef("primary-base"),
3120
+ disabledBorderColor: softLine,
3121
+ ...glowRing
3122
+ },
3123
+ tile: {
3124
+ borderRadius: tokenRef("radius-xl"),
3125
+ borderColor: "transparent",
3126
+ background: lightDark(tokenRef("surface-100"), tokenRef("surface-800"))
3127
+ }
3128
+ },
3129
+ toggleSwitch: { root: {
3130
+ background: softFillHover,
3131
+ ...glowRing
3132
+ } },
3133
+ rating: { root: glowRing },
3134
+ knob: { root: glowRing },
3135
+ slider: { handle: glowRing }
3136
+ };
3137
+ const softDisplayTokens = {
3138
+ card: { root: {
3139
+ borderRadius: "22px",
3140
+ shadow: softCardShadow
3141
+ } },
3142
+ panel: { root: { borderRadius: "22px" } },
3143
+ fieldset: { root: {
3144
+ borderRadius: "18px",
3145
+ legendBorderRadius: tokenRef("radius-full")
3146
+ } },
3147
+ tag: {
3148
+ root: {
3149
+ borderRadius: tokenRef("radius-full"),
3150
+ paddingX: "9px"
3151
+ },
3152
+ sm: { paddingX: "7px" },
3153
+ lg: { paddingX: "12px" }
3154
+ },
3155
+ chip: { root: { background: softFill } },
3156
+ message: { root: {
3157
+ borderRadius: "16px",
3158
+ borderWidth: "0"
3159
+ } },
3160
+ avatar: { root: { squareBorderRadius: tokenRef("radius-xl") } },
3161
+ skeleton: { root: { borderRadius: tokenRef("radius-lg") } }
3162
+ };
3163
+ const softOverlaysTokens = {
3164
+ tooltip: { root: { borderRadius: tokenRef("radius-xl") } },
3165
+ popover: { root: { borderRadius: "18px" } },
3166
+ dialog: { root: { borderRadius: "26px" } },
3167
+ confirm: {
3168
+ root: { borderRadius: "26px" },
3169
+ popup: { borderRadius: "18px" }
3170
+ },
3171
+ menu: {
3172
+ root: {
3173
+ borderRadius: tokenRef("radius-xl"),
3174
+ padding: "6px"
3175
+ },
3176
+ item: {
3177
+ padding: "8px 12px",
3178
+ borderRadius: tokenRef("radius-lg")
3179
+ }
3180
+ }
3181
+ };
3182
+ const softDataTokens = {
3183
+ paginator: {
3184
+ root: { borderRadius: tokenRef("radius-full") },
3185
+ navButton: {
3186
+ borderRadius: tokenRef("radius-full"),
3187
+ focusRing: {
3188
+ width: "0",
3189
+ shadow: softFocusShadow()
3190
+ }
3191
+ }
3192
+ },
3193
+ tree: { node: { borderRadius: tokenRef("radius-lg") } },
3194
+ dataView: { root: { borderRadius: "22px" } }
3195
+ };
3196
+ const softStyle = {
3197
+ label: "Soft",
3198
+ light: softLight,
3199
+ dark: softDark,
3200
+ components: {
3201
+ ...softFormsTokens,
3202
+ ...softControlsTokens,
3203
+ ...softDisplayTokens,
3204
+ ...softOverlaysTokens,
3205
+ ...softDataTokens
3206
+ }
3207
+ };
3208
+ function paperLight({ accent, surface }) {
3209
+ const base = accent[primaryBaseStep(accent)];
3210
+ return {
3211
+ primary: {
3212
+ hover: accent[400],
3213
+ active: accent[300]
3214
+ },
3215
+ surface: {
3216
+ border: surface[300],
3217
+ overlayBorder: surface[0]
3218
+ },
3219
+ text: { mutedHover: surface[600] },
3220
+ field: {
3221
+ border: surface[400],
3222
+ hoverBorder: surface[900],
3223
+ disabledBackground: surface[300],
3224
+ placeholder: surface[600],
3225
+ icon: surface[600]
3226
+ },
3227
+ highlight: {
3228
+ background: `color-mix(in srgb, ${base}, transparent 88%)`,
3229
+ focusBackground: `color-mix(in srgb, ${base}, transparent 76%)`
3230
+ },
3231
+ mask: { background: "rgba(0, 0, 0, 0.32)" }
3232
+ };
3233
+ }
3234
+ function paperDark({ surface }) {
3235
+ return {
3236
+ surface: {
3237
+ border: surface[700],
3238
+ overlayBorder: surface[900]
3239
+ },
3240
+ field: {
3241
+ border: surface[600],
3242
+ hoverBorder: surface[400],
3243
+ placeholder: surface[400],
3244
+ icon: surface[400]
3245
+ }
3246
+ };
3247
+ }
3248
+ const invalidColor = lightDark(tokenRef("red-800"), tokenRef("red-300"));
3249
+ const dropdownShadow = "0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)";
3250
+ const popoverShadow = "0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)";
3251
+ const paperFormsTokens = {
3252
+ formField: { root: {
3253
+ filledBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
3254
+ filledHoverBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
3255
+ filledFocusBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
3256
+ invalidBorderColor: invalidColor,
3257
+ placeholderColor: tokenRef("field-placeholder"),
3258
+ invalidPlaceholderColor: invalidColor,
3259
+ iconColor: tokenRef("field-icon"),
3260
+ shadow: "none",
3261
+ borderRadius: tokenRef("radius-sm"),
3262
+ paddingY: "8.75px",
3263
+ sm: { paddingY: "7px" },
3264
+ lg: { paddingY: "10.5px" },
3265
+ focusRing: {
3266
+ width: "2px",
3267
+ style: "solid",
3268
+ color: tokenRef("focus-ring-color"),
3269
+ offset: "-2px"
3270
+ }
3271
+ } },
3272
+ inputGroup: { addon: {
3273
+ color: tokenRef("form-field-icon-color"),
3274
+ paddingX: "8.75px",
3275
+ minWidth: "36.75px"
3276
+ } },
3277
+ label: { root: { gap: "7px" } },
3278
+ floatLabel: {
3279
+ root: {
3280
+ invalidColor,
3281
+ fontWeight: tokenRef("font-weight-medium")
3282
+ },
3283
+ in: {
3284
+ input: {
3285
+ paddingTop: "17.5px",
3286
+ paddingBottom: "7px"
3287
+ },
3288
+ active: { top: "7px" }
3289
+ }
3290
+ },
3291
+ iftaLabel: {
3292
+ root: {
3293
+ invalidColor,
3294
+ top: "7px",
3295
+ fontWeight: tokenRef("font-weight-regular")
3296
+ },
3297
+ input: {
3298
+ paddingTop: "17.5px",
3299
+ paddingBottom: "7px"
3300
+ }
3301
+ },
3302
+ password: {
3303
+ panel: {
3304
+ padding: "12.25px",
3305
+ borderRadius: tokenRef("radius-sm"),
3306
+ shadow: popoverShadow
3307
+ },
3308
+ meter: {
3309
+ borderRadius: tokenRef("radius-sm"),
3310
+ background: lightDark(tokenRef("surface-300"), tokenRef("surface-700"))
3311
+ }
3312
+ },
3313
+ inputOtp: {
3314
+ root: { cellWidth: "36.75px" },
3315
+ sm: { cellWidth: "31.5px" },
3316
+ lg: { cellWidth: "42px" }
3317
+ },
3318
+ inputNumber: { button: { width: "36.75px" } },
3319
+ select: {
3320
+ overlay: {
3321
+ borderRadius: tokenRef("radius-sm"),
3322
+ shadow: dropdownShadow
3323
+ },
3324
+ list: {
3325
+ paddingBlock: "7px",
3326
+ paddingInline: "0px",
3327
+ gap: "0px"
3328
+ },
3329
+ option: {
3330
+ padding: "8.75px 12.25px",
3331
+ borderRadius: "0",
3332
+ checkColor: tokenRef("text-primary"),
3333
+ multiple: {
3334
+ selectedBackground: tokenRef("highlight-background"),
3335
+ selectedFocusBackground: tokenRef("highlight-focus-background"),
3336
+ selectedColor: tokenRef("highlight-color"),
3337
+ selectedFocusColor: tokenRef("highlight-focus-color")
3338
+ }
3339
+ },
3340
+ optionGroup: {
3341
+ padding: "8.75px 12.25px",
3342
+ color: tokenRef("text-primary"),
3343
+ fontWeight: tokenRef("font-weight-bold")
3344
+ },
3345
+ filter: { padding: "8.75px 12.25px" },
3346
+ header: { padding: "8.75px 12.25px" },
3347
+ empty: { padding: "8.75px 12.25px" },
3348
+ dropdownButton: { width: "36.75px" }
3349
+ },
3350
+ colorPicker: {
3351
+ root: { swatchSize: "24.5px" },
3352
+ panel: {
3353
+ borderRadius: tokenRef("radius-sm"),
3354
+ shadow: popoverShadow
3355
+ }
3356
+ }
3357
+ };
3358
+ const steps = (palette, light, dark) => lightDark(tokenRef(`${palette}-${light}`), tokenRef(`${palette}-${dark}`));
3359
+ const elevation$1 = "0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)";
3360
+ const noFocusRing = {
3361
+ focusRingColor: "transparent",
3362
+ focusRingWidth: "0",
3363
+ focusRingOffset: "0"
3364
+ };
3365
+ const paperControlsTokens = {
3366
+ button: {
3367
+ root: {
3368
+ borderRadius: tokenRef("radius-sm"),
3369
+ roundedBorderRadius: "24.5px",
3370
+ paddingX: "12.25px",
3371
+ paddingY: "10.75px",
3372
+ iconOnlyWidth: "40.5px",
3373
+ sm: {
3374
+ paddingY: "8px",
3375
+ iconOnlyWidth: "34px"
3376
+ },
3377
+ lg: {
3378
+ paddingY: "12.25px",
3379
+ iconOnlyWidth: "46.5px"
3380
+ },
3381
+ focusRing: {
3382
+ width: "0",
3383
+ style: "none",
3384
+ offset: "0"
3385
+ },
3386
+ badgeSize: "12.25px"
3387
+ },
3388
+ outlined: {
3389
+ primary: { borderColor: lightDark(tokenRef("primary-base"), tokenRef("primary-700")) },
3390
+ secondary: {
3391
+ borderColor: steps("surface", 600, 700),
3392
+ color: steps("surface", 600, 400)
3393
+ },
3394
+ success: { borderColor: steps("green", 500, 700) },
3395
+ info: { borderColor: steps("sky", 500, 700) },
3396
+ warn: { borderColor: steps("orange", 500, 700) },
3397
+ help: { borderColor: steps("purple", 500, 700) },
3398
+ danger: { borderColor: steps("red", 500, 700) },
3399
+ contrast: { borderColor: steps("surface", 950, 500) },
3400
+ plain: {
3401
+ borderColor: steps("surface", 900, 600),
3402
+ color: steps("surface", 900, 0)
3403
+ }
3404
+ },
3405
+ text: {
3406
+ secondary: { color: steps("surface", 600, 400) },
3407
+ plain: { color: steps("surface", 900, 0) }
3408
+ }
3409
+ },
3410
+ toggleButton: {
3411
+ root: {
3412
+ padding: "8.75px 12.25px",
3413
+ borderRadius: tokenRef("radius-sm"),
3414
+ background: tokenRef("form-field-background"),
3415
+ checkedBackground: steps("surface", 200, 700),
3416
+ hoverBackground: steps("surface", 100, 800),
3417
+ borderColor: tokenRef("form-field-border-color"),
3418
+ checkedBorderColor: tokenRef("form-field-border-color"),
3419
+ color: tokenRef("form-field-color"),
3420
+ hoverColor: tokenRef("form-field-color"),
3421
+ focusRing: {
3422
+ width: "0",
3423
+ style: "none",
3424
+ color: "transparent",
3425
+ offset: "0"
3426
+ },
3427
+ sm: { padding: "7px 8.75px" },
3428
+ lg: { padding: "10.5px 15.75px" }
3429
+ },
3430
+ icon: {
3431
+ color: tokenRef("text-muted"),
3432
+ hoverColor: tokenRef("text-muted"),
3433
+ checkedColor: tokenRef("text-muted")
3434
+ },
3435
+ content: {
3436
+ padding: "0",
3437
+ borderRadius: "0",
3438
+ checkedBackground: "transparent",
3439
+ checkedShadow: "none",
3440
+ sm: { padding: "0" },
3441
+ lg: { padding: "0" }
3442
+ }
3443
+ },
3444
+ checkbox: {
3445
+ root: {
3446
+ borderRadius: tokenRef("radius-xs"),
3447
+ borderWidth: "2px",
3448
+ checkedHoverBackground: tokenRef("primary-base"),
3449
+ checkedHoverBorderColor: tokenRef("primary-base"),
3450
+ ...noFocusRing
3451
+ },
3452
+ sm: { size: "14px" }
3453
+ },
3454
+ radioButton: {
3455
+ root: {
3456
+ size: "20px",
3457
+ borderWidth: "2px",
3458
+ checkedBackground: tokenRef("primary-contrast"),
3459
+ checkedHoverBackground: tokenRef("primary-contrast"),
3460
+ checkedHoverBorderColor: tokenRef("primary-base"),
3461
+ dotSize: "10px",
3462
+ dotColor: tokenRef("primary-base"),
3463
+ ...noFocusRing
3464
+ },
3465
+ sm: { dotSize: "8px" },
3466
+ lg: {
3467
+ size: "24px",
3468
+ dotSize: "12px"
3469
+ }
3470
+ },
3471
+ toggleSwitch: {
3472
+ root: {
3473
+ width: "33.25px",
3474
+ height: "12.25px",
3475
+ gutter: "0px",
3476
+ hoverBackground: steps("surface", 300, 700),
3477
+ checkedBackground: lightDark(tokenRef("primary-200"), tokenRef("primary-base")),
3478
+ checkedHoverBackground: lightDark(tokenRef("primary-200"), tokenRef("primary-base")),
3479
+ disabledBackground: steps("surface", 400, 600),
3480
+ ...noFocusRing
3481
+ },
3482
+ handle: {
3483
+ size: "17.5px",
3484
+ checkedBackground: lightDark(tokenRef("primary-base"), tokenRef("primary-200")),
3485
+ disabledBackground: steps("surface", 200, 500),
3486
+ shadow: elevation$1,
3487
+ iconColor: lightDark(tokenRef("text-muted"), tokenRef("surface-800")),
3488
+ checkedIconColor: tokenRef("primary-contrast")
3489
+ }
3490
+ },
3491
+ rating: { root: {
3492
+ gap: "7px",
3493
+ iconSize: "15.75px"
3494
+ } },
3495
+ knob: { root: {
3496
+ focusRingColor: steps("surface", 200, 700),
3497
+ focusRingWidth: "4px",
3498
+ focusRingOffset: "0"
3499
+ } },
3500
+ slider: {
3501
+ root: {
3502
+ trackSize: "2px",
3503
+ trackBorderRadius: tokenRef("radius-xs")
3504
+ },
3505
+ handle: {
3506
+ background: tokenRef("primary-base"),
3507
+ borderWidth: "0px",
3508
+ shadow: "0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)",
3509
+ hoverRing: `0 0 1px 10px ${fade(tokenRef("primary-base"), "92%")}`,
3510
+ ...noFocusRing
3511
+ }
3512
+ }
3513
+ };
3514
+ function solid(severity) {
3515
+ return {
3516
+ background: tokenRef(`${severity}-base`),
3517
+ color: tokenRef(`${severity}-contrast`)
3518
+ };
3519
+ }
3520
+ const paperDisplayTokens = {
3521
+ badge: { root: { padding: "0 7px" } },
3522
+ tag: {
3523
+ root: {
3524
+ paddingY: "3.5px",
3525
+ tint: "100%"
3526
+ },
3527
+ primary: solid("primary"),
3528
+ secondary: {
3529
+ background: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
3530
+ color: lightDark(tokenRef("surface-600"), tokenRef("surface-300"))
3531
+ },
3532
+ success: solid("success"),
3533
+ info: solid("info"),
3534
+ warn: solid("warn"),
3535
+ danger: solid("danger"),
3536
+ help: solid("help"),
3537
+ contrast: solid("contrast")
3538
+ },
3539
+ pill: { root: {
3540
+ paddingX: "7px",
3541
+ paddingY: "3.5px"
3542
+ } },
3543
+ chip: { root: {
3544
+ height: "36.75px",
3545
+ gap: "7px",
3546
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
3547
+ imageSize: "28px",
3548
+ iconColor: lightDark(tokenRef("surface-600"), tokenRef("surface-0")),
3549
+ removeColor: lightDark(tokenRef("surface-600"), tokenRef("surface-0")),
3550
+ focusRingWidth: "0",
3551
+ focusRingOffset: "0",
3552
+ focusRingShadow: `0 0 1px 4px ${lightDark(tokenRef("surface-300"), tokenRef("surface-600"))}`
3553
+ } },
3554
+ message: {
3555
+ root: {
3556
+ borderRadius: tokenRef("radius-sm"),
3557
+ borderWidth: "0",
3558
+ paddingY: "12.25px",
3559
+ paddingStart: "15.75px",
3560
+ paddingEnd: "15.75px"
3561
+ },
3562
+ icon: { fontSize: "15.75px" },
3563
+ closeButton: { size: "24.5px" },
3564
+ sm: {
3565
+ paddingY: "7px",
3566
+ paddingStart: "7px",
3567
+ paddingEnd: "7px"
3568
+ },
3569
+ lg: {
3570
+ paddingY: "10.5px",
3571
+ paddingStart: "10.5px",
3572
+ paddingEnd: "10.5px",
3573
+ iconFontSize: "17.5px"
3574
+ }
3575
+ },
3576
+ progressBar: { root: {
3577
+ borderRadius: tokenRef("radius-sm"),
3578
+ trackBackground: tokenRef("surface-border")
3579
+ } },
3580
+ skeleton: { root: { borderRadius: tokenRef("radius-sm") } },
3581
+ avatar: { root: {
3582
+ squareBorderRadius: tokenRef("radius-sm"),
3583
+ background: tokenRef("surface-border"),
3584
+ color: tokenRef("text-primary")
3585
+ } },
3586
+ divider: { root: {
3587
+ contentColor: tokenRef("text-primary"),
3588
+ contentGap: "7px"
3589
+ } },
3590
+ card: { root: {
3591
+ borderRadius: tokenRef("radius-sm"),
3592
+ shadow: "0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12)",
3593
+ padding: "17.5px",
3594
+ gap: "8.75px",
3595
+ subtitleFontSize: "12.25px"
3596
+ } },
3597
+ panel: { root: {
3598
+ borderRadius: tokenRef("radius-sm"),
3599
+ padding: "15.75px"
3600
+ } },
3601
+ fieldset: { root: {
3602
+ borderRadius: tokenRef("radius-sm"),
3603
+ padding: "0 15.75px 15.75px 15.75px",
3604
+ legendBorderRadius: tokenRef("radius-sm"),
3605
+ legendPadding: "8.75px 12.25px",
3606
+ togglePadding: "8.75px 12.25px",
3607
+ legendFocusBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
3608
+ focusRingWidth: "0",
3609
+ focusRingOffset: "0"
3610
+ } }
3611
+ };
3612
+ const radius$1 = tokenRef("radius-sm");
3613
+ const elevatedShadow = "0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12)";
3614
+ const popoverPadding = "12.25px";
3615
+ const modalPadding = "17.5px";
3616
+ const itemPadding = "8.75px 12.25px";
3617
+ const iconColor = lightDark(tokenRef("surface-600"), tokenRef("surface-400"));
3618
+ const paperOverlaysTokens = {
3619
+ tooltip: { root: {
3620
+ background: tokenRef("surface-600"),
3621
+ color: tokenRef("surface-0"),
3622
+ maxWidth: "154px",
3623
+ padding: "7px 8.75px",
3624
+ borderRadius: radius$1,
3625
+ fontSize: "8.75px",
3626
+ shadow: elevatedShadow
3627
+ } },
3628
+ popover: {
3629
+ root: {
3630
+ borderRadius: radius$1,
3631
+ shadow: elevatedShadow
3632
+ },
3633
+ header: { padding: `${popoverPadding} ${popoverPadding} 0` },
3634
+ content: { padding: popoverPadding },
3635
+ footer: { padding: `0 ${popoverPadding} ${popoverPadding}` }
3636
+ },
3637
+ toast: {
3638
+ root: { width: "min(306.25px, calc(100vw - 28px))" },
3639
+ item: {
3640
+ ringColor: "transparent",
3641
+ shadow: "0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",
3642
+ borderRadius: radius$1,
3643
+ paddingY: popoverPadding,
3644
+ paddingStart: popoverPadding,
3645
+ paddingEnd: popoverPadding,
3646
+ loadingPaddingEnd: popoverPadding
3647
+ },
3648
+ closeButton: { size: "24.5px" },
3649
+ focusRing: { shadow: `0 0 1px 4px ${lightDark(tokenRef("surface-200"), tokenRef("surface-700"))}` }
3650
+ },
3651
+ dialog: {
3652
+ root: {
3653
+ borderColor: tokenRef("surface-overlay-border"),
3654
+ borderRadius: radius$1,
3655
+ shadow: elevatedShadow
3656
+ },
3657
+ header: { padding: modalPadding },
3658
+ content: {
3659
+ padding: `0 ${modalPadding}`,
3660
+ lastPaddingBottom: modalPadding
3661
+ },
3662
+ footer: { padding: modalPadding },
3663
+ drawer: {
3664
+ headerPadding: modalPadding,
3665
+ titleFontSize: "17.5px",
3666
+ contentPadding: modalPadding,
3667
+ footerPadding: modalPadding
3668
+ }
3669
+ },
3670
+ confirm: {
3671
+ message: { color: tokenRef("text-primary") },
3672
+ popup: {
3673
+ borderRadius: radius$1,
3674
+ shadow: elevatedShadow,
3675
+ padding: popoverPadding,
3676
+ gap: popoverPadding,
3677
+ footerGap: "7px"
3678
+ }
3679
+ },
3680
+ menu: {
3681
+ root: {
3682
+ borderRadius: radius$1,
3683
+ shadow: "0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12)",
3684
+ padding: "7px 0",
3685
+ gap: "0"
3686
+ },
3687
+ item: {
3688
+ padding: itemPadding,
3689
+ borderRadius: "0",
3690
+ activeBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700"))
3691
+ },
3692
+ icon: {
3693
+ color: iconColor,
3694
+ focusColor: iconColor
3695
+ },
3696
+ groupLabel: {
3697
+ padding: itemPadding,
3698
+ color: tokenRef("text-primary"),
3699
+ fontWeight: tokenRef("font-weight-bold")
3700
+ },
3701
+ popup: {
3702
+ borderColor: "transparent",
3703
+ padding: "7px 0",
3704
+ gap: "0",
3705
+ itemPadding,
3706
+ itemBorderRadius: "0"
3707
+ },
3708
+ context: {
3709
+ borderColor: "transparent",
3710
+ padding: "7px 0",
3711
+ itemPadding,
3712
+ itemBorderRadius: "0"
3713
+ }
3714
+ }
3715
+ };
3716
+ const ring = `0 0 1px 4px ${lightDark(tokenRef("surface-200"), tokenRef("surface-700"))}`;
3717
+ const noOutline = {
3718
+ width: "0",
3719
+ style: "none",
3720
+ color: "transparent"
3721
+ };
3722
+ const sm = { padding: "5.25px 7px" };
3723
+ const lg = { padding: "12.25px 15.75px" };
3724
+ const paperDataTokens = {
3725
+ paginator: {
3726
+ root: {
3727
+ padding: "7px 12.25px",
3728
+ borderRadius: tokenRef("radius-sm")
3729
+ },
3730
+ navButton: { focusRing: {
3731
+ ...noOutline,
3732
+ offset: "0",
3733
+ shadow: ring
3734
+ } }
3735
+ },
3736
+ table: {
3737
+ headerCell: {
3738
+ focusRing: {
3739
+ ...noOutline,
3740
+ shadow: ring
3741
+ },
3742
+ sm,
3743
+ lg
3744
+ },
3745
+ row: { focusRing: {
3746
+ ...noOutline,
3747
+ shadow: ring
3748
+ } },
3749
+ bodyCell: {
3750
+ sm,
3751
+ lg
3752
+ },
3753
+ rowToggleButton: { focusRing: {
3754
+ ...noOutline,
3755
+ offset: "0",
3756
+ shadow: ring
3757
+ } }
3758
+ },
3759
+ tree: {
3760
+ root: { indent: "24.5px" },
3761
+ node: {
3762
+ padding: "7px 8.75px",
3763
+ borderRadius: tokenRef("radius-xs"),
3764
+ gap: "7px",
3765
+ focusRing: {
3766
+ ...noOutline,
3767
+ shadow: ring
3768
+ }
3769
+ },
3770
+ nodeToggleButton: { size: "24.5px" },
3771
+ filter: { margin: "0 0 8.75px 0" }
3772
+ }
3773
+ };
3774
+ const selectHosts = [
3775
+ "tx-select",
3776
+ "tx-multiselect",
3777
+ "tx-autocomplete",
3778
+ "tx-cascade-select",
3779
+ "tx-tree-select"
3780
+ ];
3781
+ const input = ".tx-input[data-styled][data-variant='filled']";
3782
+ const chips = ".tx-chips-input[data-styled][data-variant='filled']";
3783
+ const filledFields = [
3784
+ {
3785
+ field: input,
3786
+ hover: `${input}:enabled:not([readonly], .tx-input--invalid):hover`,
3787
+ focus: `${input}:enabled:not([readonly]):focus`,
3788
+ invalid: `${input}.tx-input--invalid`
3789
+ },
3790
+ ...selectHosts.map((host) => {
3791
+ const root = `.${host}[data-styled][data-variant='filled']`;
3792
+ return {
3793
+ field: `${root} .tx-select__box`,
3794
+ hover: `${root}:not(.${host}--disabled, .${host}--readonly, .${host}--invalid) .tx-select__box:hover`,
3795
+ focus: `${root} .tx-select__box:has(.tx-select__trigger:focus)`,
3796
+ invalid: `${root}.${host}--invalid .tx-select__box`
3797
+ };
3798
+ }),
3799
+ {
3800
+ field: `${chips} .tx-chips-input__box`,
3801
+ hover: `${chips}:not(.tx-chips-input--disabled, .tx-chips-input--readonly, .tx-chips-input--invalid) .tx-chips-input__box:hover`,
3802
+ focus: `${chips} .tx-chips-input__box:focus-within`,
3803
+ invalid: `${chips}.tx-chips-input--invalid .tx-chips-input__box`
3804
+ }
3805
+ ];
3806
+ const list = (key, prefix = "") => filledFields.map((field) => `${prefix}${field[key]}`).join(",\n");
3807
+ const filledInputGroup = ".tx-input-group:has([data-variant='filled']) > .tx-input-group-addon";
3808
+ const filledInputNumber = ".tx-input-number[data-styled]:has(.tx-input[data-variant='filled'])";
3809
+ const paperFormsCss = `
3810
+ :root {
3811
+ --_paper-field-line: var(--tx-form-field-border-color);
3812
+ --_paper-field-hover-line: var(--tx-form-field-hover-border-color);
3813
+ --_paper-field-accent: var(--tx-form-field-focus-border-color);
3814
+ --_paper-field-invalid: var(--tx-form-field-invalid-border-color);
3815
+ }
3816
+
3817
+ ${list("field")} {
3818
+ --tx-form-field-border-color: transparent;
3819
+ --tx-form-field-hover-border-color: transparent;
3820
+ --tx-form-field-focus-border-color: transparent;
3821
+ --tx-form-field-invalid-border-color: transparent;
3822
+ --tx-form-field-focus-ring-width: 0px;
3823
+ --_paper-line: var(--_paper-field-line);
3824
+ --_paper-accent: var(--_paper-field-accent);
3825
+ --_paper-accent-size: 0%;
3826
+
3827
+ background-image: linear-gradient(var(--_paper-accent), var(--_paper-accent)), linear-gradient(var(--_paper-line), var(--_paper-line));
3828
+ background-position: 50% 100%, 50% 100%;
3829
+ background-size: var(--_paper-accent-size) 2px, 100% 1px;
3830
+ background-origin: border-box;
3831
+ background-repeat: no-repeat;
3832
+ }
3833
+
3834
+ ${list("field", ":root ")} {
3835
+ border-end-start-radius: 0;
3836
+ border-end-end-radius: 0;
3837
+ transition:
3838
+ background-color var(--tx-form-field-transition-duration),
3839
+ background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1),
3840
+ box-shadow var(--tx-form-field-transition-duration);
3841
+ }
3842
+
3843
+ ${list("hover")} {
3844
+ --_paper-line: var(--_paper-field-hover-line);
3845
+ }
3846
+
3847
+ ${list("focus")} {
3848
+ --_paper-accent-size: 100%;
3849
+ }
3850
+
3851
+ ${list("invalid")} {
3852
+ --_paper-line: var(--_paper-field-invalid);
3853
+ --_paper-accent: var(--_paper-field-invalid);
3854
+ }
3855
+
3856
+ @media (prefers-reduced-motion: reduce) {
3857
+ ${list("field", ":root ")} {
3858
+ transition:
3859
+ background-color var(--tx-form-field-transition-duration),
3860
+ box-shadow var(--tx-form-field-transition-duration);
3861
+ }
3862
+ }
3863
+
3864
+ :root ${filledInputGroup} {
3865
+ border-top-color: var(--tx-form-field-filled-background);
3866
+ border-inline-color: var(--tx-form-field-filled-background);
3867
+ border-end-start-radius: 0;
3868
+ border-end-end-radius: 0;
3869
+ background: var(--tx-form-field-filled-background);
3870
+ }
3871
+
3872
+ :root .tx-input-number[data-styled] .tx-input-number__stack {
3873
+ top: 2px;
3874
+ right: 2px;
3875
+ bottom: 2px;
3876
+ }
3877
+
3878
+ :root ${filledInputNumber}[data-layout='horizontal'] .tx-input-number__button {
3879
+ border-top-color: var(--tx-form-field-filled-background);
3880
+ border-inline-color: var(--tx-form-field-filled-background);
3881
+ border-end-start-radius: 0;
3882
+ border-end-end-radius: 0;
3883
+ background: var(--tx-form-field-filled-background);
3884
+ }
3885
+
3886
+ :root ${filledInputNumber}[data-layout='vertical'] .tx-input-number__button {
3887
+ border-block-color: var(--tx-form-field-filled-background);
3888
+ border-inline-color: var(--tx-form-field-filled-background);
3889
+ background: var(--tx-form-field-filled-background);
3890
+ }
3891
+
3892
+ :root ${filledInputNumber}[data-layout='vertical'] .tx-input-number__increment {
3893
+ border-block-end: 1px solid var(--_paper-field-line);
3894
+ }
3895
+
3896
+ :root .tx-autocomplete[data-styled] .tx-autocomplete__dropdown:focus-visible {
3897
+ background: var(--tx-select-dropdown-button-hover-background);
3898
+ color: var(--tx-select-dropdown-button-hover-color);
3899
+ }
3900
+ `;
3901
+ const halo = (color, transparency) => `0 0 1px 10px color-mix(in srgb, ${color}, transparent ${transparency})`;
3902
+ const elevation = "var(--tx-toggle-switch-handle-shadow)";
3903
+ const selectionHalo = (block, checkedColor) => `
3904
+ .${block}[data-styled] .${block}__box {
3905
+ border-radius: 50%;
3906
+ transition: box-shadow var(--${block}-transition-duration);
3907
+ }
3908
+
3909
+ .${block}[data-styled]:not(.${block}--disabled) .${block}__box:has(.${block}__input:hover) {
3910
+ box-shadow: ${halo("var(--tx-text-primary)", "96%")};
3911
+ }
3912
+
3913
+ .${block}[data-styled]:not(.${block}--disabled) .${block}__box:has(.${block}__input:focus-visible) {
3914
+ box-shadow: ${halo("var(--tx-text-primary)", "88%")};
3915
+ }
3916
+
3917
+ .${block}[data-styled]:is(.${block}--checked, .${block}--indeterminate):not(.${block}--disabled) .${block}__box:has(.${block}__input:hover) {
3918
+ box-shadow: ${halo(checkedColor, "92%")};
3919
+ }
3920
+
3921
+ .${block}[data-styled]:is(.${block}--checked, .${block}--indeterminate):not(.${block}--disabled) .${block}__box:has(.${block}__input:focus-visible) {
3922
+ box-shadow: ${halo(checkedColor, "84%")};
3923
+ }
3924
+ `;
3925
+ const paperControlsCss = `
3926
+ .tx-button[data-styled]:focus-visible {
3927
+ border-color: var(--_active-border-color);
3928
+ background: var(--_active-background);
3929
+ }
3930
+
3931
+ .tx-button[data-styled][data-variant='link']:focus-visible {
3932
+ border-color: transparent;
3933
+ background: color-mix(in srgb, var(--tx-primary-base), transparent 84%);
3934
+ }
3935
+
3936
+ .tx-toggle-button.tx-toggle-button[data-styled] .tx-toggle-button__control:focus-visible:not(:disabled) {
3937
+ background: var(--tx-toggle-button-hover-background);
3938
+ }
3939
+ ${selectionHalo("tx-checkbox", "var(--tx-checkbox-checked-background)")}${selectionHalo("tx-radio-button", "var(--tx-radio-button-checked-border-color)")}
3940
+ .tx-toggle-switch[data-styled] .tx-toggle-switch__input {
3941
+ inset: min(0px, calc((var(--_height) - var(--_handle)) / 2)) 0;
3942
+ height: auto;
3943
+ }
3944
+
3945
+ .tx-toggle-switch[data-styled] .tx-toggle-switch__track .tx-toggle-switch__handle {
3946
+ transition:
3947
+ left var(--tx-toggle-switch-transition-duration) cubic-bezier(0.2, 0, 0, 1),
3948
+ background-color var(--tx-toggle-switch-transition-duration),
3949
+ color var(--tx-toggle-switch-transition-duration),
3950
+ box-shadow var(--tx-toggle-switch-transition-duration);
3951
+ }
3952
+
3953
+ .tx-toggle-switch[data-styled]:not(.tx-toggle-switch--disabled):has(.tx-toggle-switch__input:hover) .tx-toggle-switch__handle {
3954
+ box-shadow: ${halo("var(--tx-text-primary)", "96%")}, ${elevation};
3955
+ }
3956
+
3957
+ .tx-toggle-switch[data-styled]:not(.tx-toggle-switch--disabled):has(.tx-toggle-switch__input:focus-visible) .tx-toggle-switch__handle {
3958
+ box-shadow: ${halo("var(--tx-text-primary)", "88%")}, ${elevation};
3959
+ }
3960
+
3961
+ .tx-toggle-switch[data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):has(.tx-toggle-switch__input:hover) .tx-toggle-switch__handle {
3962
+ box-shadow: ${halo("var(--tx-toggle-switch-handle-checked-background)", "92%")}, ${elevation};
3963
+ }
3964
+
3965
+ .tx-toggle-switch[data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):has(.tx-toggle-switch__input:focus-visible) .tx-toggle-switch__handle {
3966
+ box-shadow: ${halo("var(--tx-toggle-switch-handle-checked-background)", "84%")}, ${elevation};
3967
+ }
3968
+
3969
+ [data-styled].tx-rating .tx-rating__stars .tx-rating__star[data-index] {
3970
+ border-radius: 50%;
3971
+ transition:
3972
+ transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
3973
+ background-color var(--tx-rating-transition-duration),
3974
+ box-shadow var(--tx-rating-transition-duration);
3975
+ }
3976
+
3977
+ [data-styled].tx-rating:not(.tx-rating--readonly):not(.tx-rating--disabled) .tx-rating__star[data-index]:hover {
3978
+ background: color-mix(in srgb, var(--tx-text-muted), transparent 96%);
3979
+ box-shadow: 0 0 1px 8px color-mix(in srgb, var(--tx-text-muted), transparent 96%);
3980
+ }
3981
+
3982
+ [data-styled].tx-rating:not(.tx-rating--readonly):not(.tx-rating--disabled) .tx-rating__star--active[data-index]:hover {
3983
+ background: color-mix(in srgb, var(--tx-rating-active-color), transparent 92%);
3984
+ box-shadow: 0 0 1px 8px color-mix(in srgb, var(--tx-rating-active-color), transparent 92%);
3985
+ }
3986
+
3987
+ .tx-slider[data-styled]:not(.tx-slider--disabled) .tx-slider__track .tx-slider__handle:focus-visible,
3988
+ .tx-slider[data-styled]:not(.tx-slider--disabled) .tx-slider__track .tx-slider__handle:focus:hover {
3989
+ box-shadow: var(--tx-slider-handle-shadow), ${halo("var(--tx-slider-handle-background)", "84%")};
3990
+ }
3991
+
3992
+ @media (prefers-reduced-motion: reduce) {
3993
+ .tx-checkbox[data-styled] .tx-checkbox__box,
3994
+ .tx-radio-button[data-styled] .tx-radio-button__box,
3995
+ .tx-toggle-switch[data-styled] .tx-toggle-switch__track .tx-toggle-switch__handle,
3996
+ [data-styled].tx-rating .tx-rating__stars .tx-rating__star[data-index] {
3997
+ transition: none;
3998
+ }
3999
+ }
4000
+ `;
4001
+ const TECTRA_STYLES = {
4002
+ tectra: { label: "Tectra" },
4003
+ soft: softStyle,
4004
+ edge: edgeStyle,
4005
+ paper: {
4006
+ label: "Paper",
4007
+ light: paperLight,
4008
+ dark: paperDark,
4009
+ components: {
4010
+ ...paperFormsTokens,
4011
+ ...paperControlsTokens,
4012
+ ...paperDisplayTokens,
4013
+ ...paperOverlaysTokens,
4014
+ ...paperDataTokens
4015
+ },
4016
+ css: [
4017
+ paperFormsCss,
4018
+ paperControlsCss,
4019
+ "",
4020
+ "",
4021
+ ""
4022
+ ].filter(Boolean).join("\n")
4023
+ }
4024
+ };
4025
+ function isPlainObject(value) {
4026
+ return typeof value === "object" && value !== null && !Array.isArray(value);
4027
+ }
4028
+ function deepMerge(base, overrides) {
4029
+ if (!overrides) return base;
4030
+ const result = { ...base };
4031
+ for (const [key, value] of Object.entries(overrides)) result[key] = isPlainObject(value) && isPlainObject(result[key]) ? deepMerge(result[key], value) : value;
4032
+ return result;
4033
+ }
4034
+ function definePreset(base, overrides) {
4035
+ return deepMerge(base, overrides);
4036
+ }
4037
+ function noirScale(surface) {
4038
+ return {
4039
+ 50: surface[50],
4040
+ 100: surface[100],
4041
+ 200: surface[200],
4042
+ 300: surface[100],
4043
+ 400: surface[50],
4044
+ 500: surface[500],
4045
+ 600: surface[950],
4046
+ 700: surface[900],
4047
+ 800: surface[800],
4048
+ 900: surface[900],
4049
+ 950: surface[950]
4050
+ };
4051
+ }
4052
+ function createTectraPreset({ style = "tectra", primary = "blue", surface = "ink" } = {}) {
4053
+ const surfaceScale = SURFACE_PALETTES[surface];
4054
+ const palettes = {
4055
+ accent: primary === "noir" ? noirScale(surfaceScale) : ACCENT_PALETTES[primary],
4056
+ surface: surfaceScale
4057
+ };
4058
+ const definition = TECTRA_STYLES[style];
4059
+ return {
4060
+ name: `${style}-${primary}-${surface}`,
4061
+ palettes,
4062
+ light: deepMerge(createLightSemantic(palettes), definition.light?.(palettes)),
4063
+ dark: deepMerge(createDarkSemantic(palettes), definition.dark?.(palettes)),
4064
+ components: deepMerge(COMPONENT_TOKENS, definition.components),
4065
+ css: definition.css
4066
+ };
2021
4067
  }
4068
+ const Tectra = createTectraPreset();
4069
+ const Soft = createTectraPreset({ style: "soft" });
4070
+ const Edge = createTectraPreset({ style: "edge" });
4071
+ const Paper = createTectraPreset({ style: "paper" });
2022
4072
  function kebab(key) {
2023
4073
  return key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
2024
4074
  }
@@ -2047,8 +4097,12 @@ function presetToCss(preset) {
2047
4097
  ...SEVERITY_PALETTES
2048
4098
  });
2049
4099
  const components = Object.entries(preset.components).flatMap(([name, tokens]) => toCssVariables(tokens, `--tx-${kebab(name)}`));
2050
- return [`:root { ${block(shared)} ${block(toCssVariables(preset.light))} ${block(components)} color-scheme: light; }`, `:root[data-tx-theme="dark"] { ${block(toCssVariables(preset.dark))} color-scheme: dark; }`].join("\n");
4100
+ return [
4101
+ `:root { ${block(shared)} ${block(toCssVariables(preset.light))} ${block(components)} color-scheme: light; }`,
4102
+ `:root[data-tx-theme="dark"] { ${block(toCssVariables(preset.dark))} color-scheme: dark; }`,
4103
+ ...preset.css ? [preset.css] : []
4104
+ ].join("\n");
2051
4105
  }
2052
- export { COMPONENT_TOKENS, InkPreset, amountTokens, avatarTokens, badgeTokens, buttonTokens, cardTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, countryTokens, createDarkSemantic, createInkPreset, createLightSemantic, deepMerge, definePreset, dialogTokens, dividerTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, floatLabelTokens, formFieldTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, messageTokens, mix, overlayBadgeTokens, paginatorTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, rippleTokens, selectTokens, skeletonTokens, sliderTokens, speedDialTokens, splitButtonTokens, statusIconTokens, tableTokens, tagTokens, textareaTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, tooltipTokens, treeTokens };
4106
+ export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, amountTokens, analogClockTokens, avatarTokens, badgeTokens, buttonTokens, cardTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, floatLabelTokens, formFieldTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, statTileTokens, statTilesTokens, statusIconTokens, tableTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
2053
4107
 
2054
4108
  //# sourceMappingURL=tectra-ng-themes.mjs.map