@dxc-technology/halstack-react 8.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/HalstackContext.js +94 -45
  2. package/accordion/Accordion.js +7 -13
  3. package/accordion/Accordion.stories.tsx +102 -13
  4. package/alert/Alert.stories.tsx +28 -0
  5. package/box/Box.js +1 -3
  6. package/box/Box.stories.tsx +15 -0
  7. package/button/Button.js +11 -13
  8. package/button/Button.stories.tsx +150 -8
  9. package/checkbox/Checkbox.stories.tsx +52 -0
  10. package/chip/Chip.js +16 -22
  11. package/chip/Chip.stories.tsx +96 -9
  12. package/common/variables.js +280 -288
  13. package/date-input/Calendar.d.ts +1 -1
  14. package/date-input/Calendar.js +43 -43
  15. package/date-input/DateInput.js +74 -32
  16. package/date-input/DateInput.stories.tsx +183 -30
  17. package/date-input/DateInput.test.js +120 -37
  18. package/date-input/DatePicker.js +38 -52
  19. package/date-input/Icons.d.ts +6 -0
  20. package/date-input/Icons.js +75 -0
  21. package/date-input/YearPicker.d.ts +1 -1
  22. package/date-input/YearPicker.js +23 -12
  23. package/date-input/types.d.ts +6 -8
  24. package/dialog/Dialog.js +60 -73
  25. package/dialog/Dialog.stories.tsx +211 -159
  26. package/dialog/Dialog.test.js +301 -2
  27. package/dropdown/Dropdown.js +3 -6
  28. package/dropdown/Dropdown.stories.tsx +210 -84
  29. package/dropdown/DropdownMenu.js +8 -18
  30. package/dropdown/DropdownMenuItem.js +4 -15
  31. package/file-input/FileInput.js +3 -6
  32. package/file-input/FileInput.stories.tsx +85 -2
  33. package/file-input/FileInput.test.js +0 -41
  34. package/file-input/FileItem.js +1 -0
  35. package/footer/Footer.stories.tsx +91 -0
  36. package/header/Header.js +18 -20
  37. package/header/Header.stories.tsx +149 -6
  38. package/link/Link.stories.tsx +60 -0
  39. package/main.d.ts +1 -1
  40. package/main.js +1 -1
  41. package/{tabs-nav → nav-tabs}/NavTabs.js +1 -1
  42. package/{tabs-nav → nav-tabs}/NavTabs.stories.tsx +96 -6
  43. package/{tabs-nav → nav-tabs}/Tab.js +35 -15
  44. package/package.json +1 -1
  45. package/paginator/Icons.d.ts +5 -0
  46. package/paginator/Icons.js +16 -28
  47. package/paginator/Paginator.js +5 -11
  48. package/paginator/Paginator.stories.tsx +24 -0
  49. package/paginator/Paginator.test.js +17 -10
  50. package/progress-bar/ProgressBar.js +4 -4
  51. package/progress-bar/ProgressBar.stories.jsx +35 -2
  52. package/quick-nav/QuickNav.stories.tsx +14 -0
  53. package/radio-group/RadioGroup.stories.tsx +131 -18
  54. package/resultsetTable/ResultsetTable.test.js +17 -22
  55. package/select/Listbox.d.ts +1 -1
  56. package/select/Listbox.js +5 -34
  57. package/select/Option.js +11 -24
  58. package/select/Select.js +43 -24
  59. package/select/Select.stories.tsx +492 -145
  60. package/select/Select.test.js +17 -22
  61. package/select/types.d.ts +2 -2
  62. package/sidenav/Sidenav.js +8 -10
  63. package/sidenav/Sidenav.stories.tsx +148 -46
  64. package/slider/Slider.js +4 -4
  65. package/slider/Slider.stories.tsx +57 -0
  66. package/spinner/Spinner.js +2 -2
  67. package/spinner/Spinner.stories.jsx +27 -1
  68. package/switch/Switch.js +1 -1
  69. package/switch/Switch.stories.tsx +33 -0
  70. package/table/Table.stories.jsx +80 -1
  71. package/tabs/Tab.js +3 -5
  72. package/tabs/Tabs.js +3 -3
  73. package/tabs/Tabs.stories.tsx +45 -5
  74. package/tag/Tag.stories.tsx +14 -1
  75. package/text-input/Suggestion.js +32 -5
  76. package/text-input/TextInput.js +7 -11
  77. package/text-input/TextInput.stories.tsx +92 -4
  78. package/text-input/TextInput.test.js +125 -25
  79. package/textarea/Textarea.stories.jsx +60 -1
  80. package/toggle-group/ToggleGroup.stories.tsx +42 -0
  81. package/utils/FocusLock.d.ts +13 -0
  82. package/utils/FocusLock.js +139 -0
  83. package/wizard/Wizard.stories.tsx +20 -0
  84. /package/{tabs-nav → nav-tabs}/NavTabs.d.ts +0 -0
  85. /package/{tabs-nav → nav-tabs}/NavTabs.test.js +0 -0
  86. /package/{tabs-nav → nav-tabs}/Tab.d.ts +0 -0
  87. /package/{tabs-nav → nav-tabs}/types.d.ts +0 -0
  88. /package/{tabs-nav → nav-tabs}/types.js +0 -0
@@ -85,16 +85,22 @@ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
85
85
  };
86
86
 
87
87
  var parseTheme = function parseTheme(theme) {
88
- var _theme$accordion$font, _theme$accordion, _theme$accordion$font2, _theme$accordion2, _theme$accordion$acce, _theme$accordion3, _theme$accordion$acce2, _theme$accordion4, _theme$accordion$acce3, _theme$accordion5, _setOpacity, _theme$accordion6, _theme$button$primary, _theme$button, _theme$button$baseCol, _theme$button2, _theme$button$baseCol2, _theme$button3, _theme$button$seconda, _theme$button4, _theme$button$baseCol3, _theme$button5, _theme$button$baseCol4, _theme$button6, _theme$button$baseCol5, _theme$button7, _subLightness, _theme$button8, _subLightness2, _theme$button9, _subLightness3, _theme$button10, _addLightness, _theme$button11, _addLightness2, _theme$button12, _theme$checkbox$baseC, _theme$checkbox, _theme$checkbox$baseC2, _theme$checkbox2, _theme$checkbox$check, _theme$checkbox3, _theme$checkbox$fontC, _theme$checkbox4, _subLightness4, _theme$checkbox5, _subLightness5, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _theme$chip$fontColor, _theme$chip2, _theme$chip$fontColor2, _theme$chip3, _theme$dateInput$sele, _theme$dateInput, _theme$dateInput$sele2, _theme$dateInput2, _setOpacity2, _theme$dateInput3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _theme$dropdown$optio, _theme$dropdown3, _theme$dropdown$optio2, _theme$dropdown4, _setOpacity3, _theme$dropdown5, _setOpacity4, _theme$dropdown6, _setOpacity5, _theme$dropdown7, _setOpacity6, _theme$dropdown8, _theme$dropdown$fontC2, _theme$dropdown9, _theme$dropdown$fontC3, _theme$dropdown10, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _theme$footer$baseCol, _theme$footer, _theme$footer$fontCol, _theme$footer2, _theme$footer$fontCol2, _theme$footer3, _theme$footer$fontCol3, _theme$footer4, _theme$footer$accentC, _theme$footer5, _theme$footer$logo, _theme$footer6, _theme$header$baseCol, _theme$header, _theme$header$accentC, _theme$header2, _theme$header$menuBas, _theme$header3, _theme$header$fontCol, _theme$header4, _theme$header$hamburg, _theme$header5, _setOpacity7, _theme$header6, _theme$header$logo, _theme$header7, _theme$header$logoRes, _theme$header8, _theme$header$content, _theme$header9, _theme$paginator$base, _theme$paginator, _theme$paginator$font, _theme$paginator2, _theme$progressBar$ac, _theme$progressBar, _theme$progressBar$ba, _theme$progressBar2, _theme$progressBar$fo, _theme$progressBar3, _theme$progressBar$fo2, _theme$progressBar4, _theme$progressBar$fo3, _theme$progressBar5, _theme$quickNav$fontC, _theme$quickNav, _setOpacity8, _theme$quickNav2, _theme$radioGroup$bas, _theme$radioGroup, _theme$radioGroup$fon, _theme$radioGroup2, _theme$radioGroup$fon2, _theme$radioGroup3, _theme$radioGroup$fon3, _theme$radioGroup4, _theme$select$selecte, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _theme$select$fontCol3, _theme$select4, _theme$select$optionF, _theme$select5, _setOpacity9, _theme$select6, _theme$select$fontCol4, _theme$select7, _subLightness6, _theme$select8, _subLightness7, _theme$select9, _theme$sidenav$baseCo, _theme$sidenav, _theme$slider$fontCol, _theme$slider, _theme$slider$fontCol2, _theme$slider2, _theme$slider$fontCol3, _theme$slider3, _theme$slider$baseCol, _theme$slider4, _theme$slider$baseCol2, _theme$slider5, _theme$slider$baseCol3, _theme$slider6, _theme$slider$baseCol4, _theme$slider7, _subLightness8, _theme$slider8, _subLightness9, _theme$slider9, _setOpacity10, _theme$slider10, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$spinner$fontCo, _theme$spinner3, _theme$spinner$fontCo2, _theme$spinner4, _theme$switch$checked, _theme$switch, _theme$switch$fontCol, _theme$switch2, _setOpacity11, _theme$switch3, _theme$table$baseColo, _theme$table, _theme$table$headerFo, _theme$table2, _theme$table$cellFont, _theme$table3, _theme$table$headerFo2, _theme$table4, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness3, _theme$tabs5, _addLightness4, _theme$tabs6, _theme$textInput$font, _theme$textInput, _theme$textInput$font2, _theme$textInput2, _theme$textInput$font3, _theme$textInput3, _theme$textInput$font4, _theme$textInput4, _theme$textInput$font5, _theme$textInput5, _theme$textInput$font6, _theme$textInput6, _theme$textInput$font7, _theme$textInput7, _setOpacity12, _theme$textInput8, _setOpacity13, _theme$textInput9, _setOpacity14, _theme$textInput10, _theme$toggleGroup$se, _theme$toggleGroup, _theme$toggleGroup$se2, _theme$toggleGroup2, _theme$toggleGroup$un, _theme$toggleGroup3, _theme$toggleGroup$se3, _theme$toggleGroup4, _theme$toggleGroup$un2, _theme$toggleGroup5, _subLightness10, _theme$toggleGroup6, _subLightness11, _theme$toggleGroup7, _addLightness5, _theme$toggleGroup8, _addLightness6, _theme$toggleGroup9, _subLightness12, _theme$toggleGroup10, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$selecte, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol, _theme$wizard4, _theme$wizard$fontCol2, _theme$wizard5, _theme$wizard$fontCol3, _theme$wizard6, _theme$wizard$fontCol4, _theme$wizard7, _setOpacity15, _theme$wizard8, _setOpacity16, _theme$wizard9, _setOpacity17, _theme$wizard10, _setOpacity18, _theme$wizard11;
88
+ var _theme$alert$baseColo, _theme$alert, _theme$alert$accentCo, _theme$alert2, _theme$alert$accentCo2, _theme$alert3, _theme$alert$overlayC, _theme$alert4, _theme$accordion$assi, _theme$accordion, _theme$accordion$titl, _theme$accordion2, _theme$accordion$acce, _theme$accordion3, _theme$accordion$acce2, _theme$accordion4, _addLightness, _theme$accordion5, _theme$box$baseColor, _theme$box, _theme$button$primary, _theme$button, _theme$button$baseCol, _theme$button2, _theme$button$baseCol2, _theme$button3, _theme$button$seconda, _theme$button4, _theme$button$baseCol3, _theme$button5, _theme$button$baseCol4, _theme$button6, _theme$button$baseCol5, _theme$button7, _subLightness, _theme$button8, _subLightness2, _theme$button9, _subLightness3, _theme$button10, _addLightness2, _theme$button11, _addLightness3, _theme$button12, _theme$checkbox$baseC, _theme$checkbox, _theme$checkbox$baseC2, _theme$checkbox2, _theme$checkbox$check, _theme$checkbox3, _theme$checkbox$fontC, _theme$checkbox4, _subLightness4, _theme$checkbox5, _subLightness5, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _theme$chip$fontColor, _theme$chip2, _theme$chip$iconColor, _theme$chip3, _subLightness6, _theme$chip4, _subLightness7, _theme$chip5, _theme$dateInput$base, _theme$dateInput, _theme$dateInput$sele, _theme$dateInput2, _subLightness8, _theme$dateInput3, _theme$dateInput$sele2, _theme$dateInput4, _theme$dateInput$base2, _theme$dateInput5, _subLightness9, _theme$dateInput6, _theme$dateInput$sele3, _theme$dateInput7, _addLightness4, _theme$dateInput8, _addLightness5, _theme$dateInput9, _addLightness6, _theme$dateInput10, _theme$dialog$baseCol, _theme$dialog, _theme$dialog$closeIc, _theme$dialog2, _theme$dialog$overlay, _theme$dialog3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _theme$dropdown$fontC2, _theme$dropdown3, _theme$dropdown$fontC3, _theme$dropdown4, _theme$dropdown$optio, _theme$dropdown5, _theme$dropdown$optio2, _theme$dropdown6, _subLightness10, _theme$dropdown7, _subLightness11, _theme$dropdown8, _subLightness12, _theme$dropdown9, _subLightness13, _theme$dropdown10, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _theme$footer$baseCol, _theme$footer, _theme$footer$fontCol, _theme$footer2, _theme$footer$fontCol2, _theme$footer3, _theme$footer$fontCol3, _theme$footer4, _theme$footer$accentC, _theme$footer5, _theme$footer$logo, _theme$footer6, _theme$header$baseCol, _theme$header, _theme$header$accentC, _theme$header2, _theme$header$menuBas, _theme$header3, _theme$header$fontCol, _theme$header4, _theme$header$hamburg, _theme$header5, _addLightness7, _theme$header6, _theme$header$logo, _theme$header7, _theme$header$logoRes, _theme$header8, _theme$header$content, _theme$header9, _theme$header$overlay, _theme$header10, _theme$link$baseColor, _theme$link, _theme$link$baseColor2, _theme$link2, _theme$navTabs$baseCo, _theme$navTabs, _theme$navTabs$baseCo2, _theme$navTabs2, _theme$navTabs$baseCo3, _theme$navTabs3, _theme$navTabs$baseCo4, _theme$navTabs4, _theme$navTabs$accent, _theme$navTabs5, _addLightness8, _theme$navTabs6, _addLightness9, _theme$navTabs7, _theme$paginator$base, _theme$paginator, _theme$paginator$font, _theme$paginator2, _theme$progressBar$ac, _theme$progressBar, _theme$progressBar$ba, _theme$progressBar2, _theme$progressBar$fo, _theme$progressBar3, _theme$progressBar$fo2, _theme$progressBar4, _theme$progressBar$fo3, _theme$progressBar5, _theme$progressBar$ov, _theme$progressBar6, _theme$progressBar$ov2, _theme$progressBar7, _theme$quickNav$fontC, _theme$quickNav, _theme$quickNav$accen, _theme$quickNav2, _theme$radioGroup$bas, _theme$radioGroup, _theme$radioGroup$fon, _theme$radioGroup2, _theme$radioGroup$fon2, _theme$radioGroup3, _theme$radioGroup$fon3, _theme$radioGroup4, _subLightness14, _theme$radioGroup5, _subLightness15, _theme$radioGroup6, _theme$select$selecte, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _theme$select$fontCol3, _theme$select4, _theme$select$optionF, _theme$select5, _addLightness10, _theme$select6, _theme$select$fontCol4, _theme$select7, _theme$select$hoverBo, _theme$select8, _subLightness16, _theme$select9, _subLightness17, _theme$select10, _theme$sidenav$baseCo, _theme$sidenav, _theme$slider$fontCol, _theme$slider, _theme$slider$fontCol2, _theme$slider2, _theme$slider$fontCol3, _theme$slider3, _theme$slider$baseCol, _theme$slider4, _theme$slider$baseCol2, _theme$slider5, _theme$slider$baseCol3, _theme$slider6, _theme$slider$baseCol4, _theme$slider7, _theme$slider$totalLi, _theme$slider8, _subLightness18, _theme$slider9, _subLightness19, _theme$slider10, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$spinner$overla, _theme$spinner3, _theme$spinner$fontCo, _theme$spinner4, _theme$spinner$fontCo2, _theme$spinner5, _theme$spinner$overla2, _theme$spinner6, _theme$spinner$overla3, _theme$spinner7, _theme$switch$checked, _theme$switch, _theme$switch$fontCol, _theme$switch2, _addLightness11, _theme$switch3, _theme$table$baseColo, _theme$table, _theme$table$headerFo, _theme$table2, _theme$table$cellFont, _theme$table3, _theme$table$headerFo2, _theme$table4, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness12, _theme$tabs5, _addLightness13, _theme$tabs6, _theme$tag$fontColor, _theme$tag, _theme$tag$iconColor, _theme$tag2, _theme$textInput$font, _theme$textInput, _theme$textInput$font2, _theme$textInput2, _theme$textInput$font3, _theme$textInput3, _theme$textInput$font4, _theme$textInput4, _theme$textInput$font5, _theme$textInput5, _theme$textInput$font6, _theme$textInput6, _theme$textInput$font7, _theme$textInput7, _theme$textInput$hove, _theme$textInput8, _addLightness14, _theme$textInput9, _addLightness15, _theme$textInput10, _addLightness16, _theme$textInput11, _theme$textarea$fontC, _theme$textarea, _theme$textarea$fontC2, _theme$textarea2, _theme$textarea$fontC3, _theme$textarea3, _theme$textarea$hover, _theme$textarea4, _addLightness17, _theme$textarea5, _theme$toggleGroup$se, _theme$toggleGroup, _theme$toggleGroup$se2, _theme$toggleGroup2, _theme$toggleGroup$un, _theme$toggleGroup3, _theme$toggleGroup$se3, _theme$toggleGroup4, _theme$toggleGroup$un2, _theme$toggleGroup5, _subLightness20, _theme$toggleGroup6, _subLightness21, _theme$toggleGroup7, _addLightness18, _theme$toggleGroup8, _addLightness19, _theme$toggleGroup9, _subLightness22, _theme$toggleGroup10, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$selecte, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol, _theme$wizard4, _theme$wizard$fontCol2, _theme$wizard5, _theme$wizard$fontCol3, _theme$wizard6, _theme$wizard$fontCol4, _theme$wizard7, _addLightness20, _theme$wizard8, _addLightness21, _theme$wizard9, _addLightness22, _theme$wizard10, _addLightness23, _theme$wizard11;
89
89
 
90
90
  var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
91
+ var alertTokens = componentTokensCopy.alert;
92
+ alertTokens.infoBackgroundColor = (_theme$alert$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$alert = theme.alert) === null || _theme$alert === void 0 ? void 0 : _theme$alert.baseColor) !== null && _theme$alert$baseColo !== void 0 ? _theme$alert$baseColo : alertTokens.infoBackgroundColor;
93
+ alertTokens.infoIconColor = (_theme$alert$accentCo = theme === null || theme === void 0 ? void 0 : (_theme$alert2 = theme.alert) === null || _theme$alert2 === void 0 ? void 0 : _theme$alert2.accentColor) !== null && _theme$alert$accentCo !== void 0 ? _theme$alert$accentCo : alertTokens.infoIconColor;
94
+ alertTokens.infoBorderColor = (_theme$alert$accentCo2 = theme === null || theme === void 0 ? void 0 : (_theme$alert3 = theme.alert) === null || _theme$alert3 === void 0 ? void 0 : _theme$alert3.accentColor) !== null && _theme$alert$accentCo2 !== void 0 ? _theme$alert$accentCo2 : alertTokens.infoBorderColor;
95
+ alertTokens.overlayColor = (_theme$alert$overlayC = theme === null || theme === void 0 ? void 0 : (_theme$alert4 = theme.alert) === null || _theme$alert4 === void 0 ? void 0 : _theme$alert4.overlayColor) !== null && _theme$alert$overlayC !== void 0 ? _theme$alert$overlayC : alertTokens.overlayColor;
91
96
  var accordionTokens = componentTokensCopy.accordion;
92
- accordionTokens.assistiveTextFontColor = (_theme$accordion$font = theme === null || theme === void 0 ? void 0 : (_theme$accordion = theme.accordion) === null || _theme$accordion === void 0 ? void 0 : _theme$accordion.fontColor) !== null && _theme$accordion$font !== void 0 ? _theme$accordion$font : accordionTokens.assistiveTextFontColor;
93
- accordionTokens.titleLabelFontColor = (_theme$accordion$font2 = theme === null || theme === void 0 ? void 0 : (_theme$accordion2 = theme.accordion) === null || _theme$accordion2 === void 0 ? void 0 : _theme$accordion2.fontColor) !== null && _theme$accordion$font2 !== void 0 ? _theme$accordion$font2 : accordionTokens.titleLabelFontColor;
97
+ accordionTokens.assistiveTextFontColor = (_theme$accordion$assi = theme === null || theme === void 0 ? void 0 : (_theme$accordion = theme.accordion) === null || _theme$accordion === void 0 ? void 0 : _theme$accordion.assistiveTextFontColor) !== null && _theme$accordion$assi !== void 0 ? _theme$accordion$assi : accordionTokens.assistiveTextFontColor;
98
+ accordionTokens.titleLabelFontColor = (_theme$accordion$titl = theme === null || theme === void 0 ? void 0 : (_theme$accordion2 = theme.accordion) === null || _theme$accordion2 === void 0 ? void 0 : _theme$accordion2.titleFontColor) !== null && _theme$accordion$titl !== void 0 ? _theme$accordion$titl : accordionTokens.titleLabelFontColor;
94
99
  accordionTokens.arrowColor = (_theme$accordion$acce = theme === null || theme === void 0 ? void 0 : (_theme$accordion3 = theme.accordion) === null || _theme$accordion3 === void 0 ? void 0 : _theme$accordion3.accentColor) !== null && _theme$accordion$acce !== void 0 ? _theme$accordion$acce : accordionTokens.arrowColor;
95
100
  accordionTokens.iconColor = (_theme$accordion$acce2 = theme === null || theme === void 0 ? void 0 : (_theme$accordion4 = theme.accordion) === null || _theme$accordion4 === void 0 ? void 0 : _theme$accordion4.accentColor) !== null && _theme$accordion$acce2 !== void 0 ? _theme$accordion$acce2 : accordionTokens.iconColor;
96
- accordionTokens.focusBorderColor = (_theme$accordion$acce3 = theme === null || theme === void 0 ? void 0 : (_theme$accordion5 = theme.accordion) === null || _theme$accordion5 === void 0 ? void 0 : _theme$accordion5.accentColor) !== null && _theme$accordion$acce3 !== void 0 ? _theme$accordion$acce3 : accordionTokens.focusBorderColor;
97
- accordionTokens.hoverBackgroundColor = (_setOpacity = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion6 = theme.accordion) === null || _theme$accordion6 === void 0 ? void 0 : _theme$accordion6.accentColor, 0.16)) !== null && _setOpacity !== void 0 ? _setOpacity : accordionTokens.hoverBackgroundColor;
101
+ accordionTokens.hoverBackgroundColor = (_addLightness = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$accordion5 = theme.accordion) === null || _theme$accordion5 === void 0 ? void 0 : _theme$accordion5.accentColor, 57)) !== null && _addLightness !== void 0 ? _addLightness : accordionTokens.hoverBackgroundColor;
102
+ var boxTokens = componentTokensCopy.box;
103
+ boxTokens.backgroundColor = (_theme$box$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$box = theme.box) === null || _theme$box === void 0 ? void 0 : _theme$box.baseColor) !== null && _theme$box$baseColor !== void 0 ? _theme$box$baseColor : boxTokens.backgroundColor;
98
104
  var buttonTokens = componentTokensCopy.button;
99
105
  buttonTokens.primaryFontColor = (_theme$button$primary = theme === null || theme === void 0 ? void 0 : (_theme$button = theme.button) === null || _theme$button === void 0 ? void 0 : _theme$button.primaryFontColor) !== null && _theme$button$primary !== void 0 ? _theme$button$primary : buttonTokens.primaryFontColor;
100
106
  buttonTokens.primaryBackgroundColor = (_theme$button$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$button2 = theme.button) === null || _theme$button2 === void 0 ? void 0 : _theme$button2.baseColor) !== null && _theme$button$baseCol !== void 0 ? _theme$button$baseCol : buttonTokens.primaryBackgroundColor;
@@ -106,8 +112,8 @@ var parseTheme = function parseTheme(theme) {
106
112
  buttonTokens.primaryHoverBackgroundColor = (_subLightness = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button8 = theme.button) === null || _theme$button8 === void 0 ? void 0 : _theme$button8.baseColor, 8)) !== null && _subLightness !== void 0 ? _subLightness : buttonTokens.primaryHoverBackgroundColor;
107
113
  buttonTokens.primaryActiveBackgroundColor = (_subLightness2 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button9 = theme.button) === null || _theme$button9 === void 0 ? void 0 : _theme$button9.baseColor, 18)) !== null && _subLightness2 !== void 0 ? _subLightness2 : buttonTokens.primaryActiveBackgroundColor;
108
114
  buttonTokens.secondaryActiveBackgroundColor = (_subLightness3 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button10 = theme.button) === null || _theme$button10 === void 0 ? void 0 : _theme$button10.baseColor, 18)) !== null && _subLightness3 !== void 0 ? _subLightness3 : buttonTokens.secondaryActiveBackgroundColor;
109
- buttonTokens.textHoverBackgroundColor = (_addLightness = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$button11 = theme.button) === null || _theme$button11 === void 0 ? void 0 : _theme$button11.baseColor, 57)) !== null && _addLightness !== void 0 ? _addLightness : buttonTokens.textHoverBackgroundColor;
110
- buttonTokens.textActiveBackgroundColor = (_addLightness2 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$button12 = theme.button) === null || _theme$button12 === void 0 ? void 0 : _theme$button12.baseColor, 52)) !== null && _addLightness2 !== void 0 ? _addLightness2 : buttonTokens.textActiveBackgroundColor;
115
+ buttonTokens.textHoverBackgroundColor = (_addLightness2 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$button11 = theme.button) === null || _theme$button11 === void 0 ? void 0 : _theme$button11.baseColor, 57)) !== null && _addLightness2 !== void 0 ? _addLightness2 : buttonTokens.textHoverBackgroundColor;
116
+ buttonTokens.textActiveBackgroundColor = (_addLightness3 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$button12 = theme.button) === null || _theme$button12 === void 0 ? void 0 : _theme$button12.baseColor, 52)) !== null && _addLightness3 !== void 0 ? _addLightness3 : buttonTokens.textActiveBackgroundColor;
111
117
  var checkboxTokens = componentTokensCopy.checkbox;
112
118
  checkboxTokens.backgroundColorChecked = (_theme$checkbox$baseC = theme === null || theme === void 0 ? void 0 : (_theme$checkbox = theme.checkbox) === null || _theme$checkbox === void 0 ? void 0 : _theme$checkbox.baseColor) !== null && _theme$checkbox$baseC !== void 0 ? _theme$checkbox$baseC : checkboxTokens.backgroundColorChecked;
113
119
  checkboxTokens.borderColor = (_theme$checkbox$baseC2 = theme === null || theme === void 0 ? void 0 : (_theme$checkbox2 = theme.checkbox) === null || _theme$checkbox2 === void 0 ? void 0 : _theme$checkbox2.baseColor) !== null && _theme$checkbox$baseC2 !== void 0 ? _theme$checkbox$baseC2 : checkboxTokens.borderColor;
@@ -118,22 +124,35 @@ var parseTheme = function parseTheme(theme) {
118
124
  var chipTokens = componentTokensCopy.chip;
119
125
  chipTokens.backgroundColor = (_theme$chip$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$chip = theme.chip) === null || _theme$chip === void 0 ? void 0 : _theme$chip.baseColor) !== null && _theme$chip$baseColor !== void 0 ? _theme$chip$baseColor : chipTokens.backgroundColor;
120
126
  chipTokens.fontColor = (_theme$chip$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$chip2 = theme.chip) === null || _theme$chip2 === void 0 ? void 0 : _theme$chip2.fontColor) !== null && _theme$chip$fontColor !== void 0 ? _theme$chip$fontColor : chipTokens.fontColor;
121
- chipTokens.iconColor = (_theme$chip$fontColor2 = theme === null || theme === void 0 ? void 0 : (_theme$chip3 = theme.chip) === null || _theme$chip3 === void 0 ? void 0 : _theme$chip3.fontColor) !== null && _theme$chip$fontColor2 !== void 0 ? _theme$chip$fontColor2 : chipTokens.iconColor;
127
+ chipTokens.iconColor = (_theme$chip$iconColor = theme === null || theme === void 0 ? void 0 : (_theme$chip3 = theme.chip) === null || _theme$chip3 === void 0 ? void 0 : _theme$chip3.iconColor) !== null && _theme$chip$iconColor !== void 0 ? _theme$chip$iconColor : chipTokens.iconColor;
128
+ chipTokens.hoverIconColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$chip4 = theme.chip) === null || _theme$chip4 === void 0 ? void 0 : _theme$chip4.iconColor, 10)) !== null && _subLightness6 !== void 0 ? _subLightness6 : chipTokens.hoverIconColor;
129
+ chipTokens.activeIconColor = (_subLightness7 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$chip5 = theme.chip) === null || _theme$chip5 === void 0 ? void 0 : _theme$chip5.iconColor, 30)) !== null && _subLightness7 !== void 0 ? _subLightness7 : chipTokens.activeIconColor;
122
130
  var dateTokens = componentTokensCopy.dateInput;
123
- dateTokens.pickerSelectedDateBackgroundColor = (_theme$dateInput$sele = theme === null || theme === void 0 ? void 0 : (_theme$dateInput = theme.dateInput) === null || _theme$dateInput === void 0 ? void 0 : _theme$dateInput.selectedDateBackgroundColor) !== null && _theme$dateInput$sele !== void 0 ? _theme$dateInput$sele : dateTokens.pickerSelectedDateBackgroundColor;
124
- dateTokens.pickerSelectedDateColor = (_theme$dateInput$sele2 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput2 = theme.dateInput) === null || _theme$dateInput2 === void 0 ? void 0 : _theme$dateInput2.selectedDateFontColor) !== null && _theme$dateInput$sele2 !== void 0 ? _theme$dateInput$sele2 : dateTokens.pickerSelectedDateColor;
125
- dateTokens.pickerHoverDateBackgroundColor = (_setOpacity2 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dateInput3 = theme.dateInput) === null || _theme$dateInput3 === void 0 ? void 0 : _theme$dateInput3.selectedDateBackgroundColor, 0.34)) !== null && _setOpacity2 !== void 0 ? _setOpacity2 : dateTokens.pickerHoverDateBackgroundColor;
131
+ dateTokens.pickerSelectedBackgroundColor = (_theme$dateInput$base = theme === null || theme === void 0 ? void 0 : (_theme$dateInput = theme.dateInput) === null || _theme$dateInput === void 0 ? void 0 : _theme$dateInput.baseColor) !== null && _theme$dateInput$base !== void 0 ? _theme$dateInput$base : dateTokens.pickerSelectedBackgroundColor;
132
+ dateTokens.pickerSelectedFontColor = (_theme$dateInput$sele = theme === null || theme === void 0 ? void 0 : (_theme$dateInput2 = theme.dateInput) === null || _theme$dateInput2 === void 0 ? void 0 : _theme$dateInput2.selectedFontColor) !== null && _theme$dateInput$sele !== void 0 ? _theme$dateInput$sele : dateTokens.pickerSelectedFontColor;
133
+ dateTokens.pickerActiveBackgroundColor = (_subLightness8 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dateInput3 = theme.dateInput) === null || _theme$dateInput3 === void 0 ? void 0 : _theme$dateInput3.baseColor, 8)) !== null && _subLightness8 !== void 0 ? _subLightness8 : dateTokens.pickerActiveBackgroundColor;
134
+ dateTokens.pickerActiveFontColor = (_theme$dateInput$sele2 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput4 = theme.dateInput) === null || _theme$dateInput4 === void 0 ? void 0 : _theme$dateInput4.selectedFontColor) !== null && _theme$dateInput$sele2 !== void 0 ? _theme$dateInput$sele2 : dateTokens.pickerActiveFontColor;
135
+ dateTokens.pickerCurrentYearFontColor = (_theme$dateInput$base2 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput5 = theme.dateInput) === null || _theme$dateInput5 === void 0 ? void 0 : _theme$dateInput5.baseColor) !== null && _theme$dateInput$base2 !== void 0 ? _theme$dateInput$base2 : dateTokens.pickerCurrentYearFontColor;
136
+ dateTokens.pickerHeaderActiveBackgroundColor = (_subLightness9 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dateInput6 = theme.dateInput) === null || _theme$dateInput6 === void 0 ? void 0 : _theme$dateInput6.baseColor, 8)) !== null && _subLightness9 !== void 0 ? _subLightness9 : dateTokens.pickerHeaderActiveBackgroundColor;
137
+ dateTokens.pickerHeaderActiveFontColor = (_theme$dateInput$sele3 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput7 = theme.dateInput) === null || _theme$dateInput7 === void 0 ? void 0 : _theme$dateInput7.selectedFontColor) !== null && _theme$dateInput$sele3 !== void 0 ? _theme$dateInput$sele3 : dateTokens.pickerHeaderActiveFontColor;
138
+ dateTokens.pickerHoverBackgroundColor = (_addLightness4 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$dateInput8 = theme.dateInput) === null || _theme$dateInput8 === void 0 ? void 0 : _theme$dateInput8.baseColor, 52)) !== null && _addLightness4 !== void 0 ? _addLightness4 : dateTokens.pickerHoverBackgroundColor;
139
+ dateTokens.pickerCurrentDateBorderColor = (_addLightness5 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$dateInput9 = theme.dateInput) === null || _theme$dateInput9 === void 0 ? void 0 : _theme$dateInput9.baseColor, 42)) !== null && _addLightness5 !== void 0 ? _addLightness5 : dateTokens.pickerCurrentDateBorderColor;
140
+ dateTokens.pickerHeaderHoverBackgroundColor = (_addLightness6 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$dateInput10 = theme.dateInput) === null || _theme$dateInput10 === void 0 ? void 0 : _theme$dateInput10.baseColor, 52)) !== null && _addLightness6 !== void 0 ? _addLightness6 : dateTokens.pickerHeaderHoverBackgroundColor;
141
+ var dialogTokens = componentTokensCopy.dialog;
142
+ dialogTokens.backgroundColor = (_theme$dialog$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$dialog = theme.dialog) === null || _theme$dialog === void 0 ? void 0 : _theme$dialog.baseColor) !== null && _theme$dialog$baseCol !== void 0 ? _theme$dialog$baseCol : dialogTokens.backgroundColor;
143
+ dialogTokens.closeIconColor = (_theme$dialog$closeIc = theme === null || theme === void 0 ? void 0 : (_theme$dialog2 = theme.dialog) === null || _theme$dialog2 === void 0 ? void 0 : _theme$dialog2.closeIconColor) !== null && _theme$dialog$closeIc !== void 0 ? _theme$dialog$closeIc : dialogTokens.closeIconColor;
144
+ dialogTokens.overlayColor = (_theme$dialog$overlay = theme === null || theme === void 0 ? void 0 : (_theme$dialog3 = theme.dialog) === null || _theme$dialog3 === void 0 ? void 0 : _theme$dialog3.overlayColor) !== null && _theme$dialog$overlay !== void 0 ? _theme$dialog$overlay : dialogTokens.overlayColor;
126
145
  var dropdownTokens = componentTokensCopy.dropdown;
127
146
  dropdownTokens.buttonBackgroundColor = (_theme$dropdown$baseC = theme === null || theme === void 0 ? void 0 : (_theme$dropdown = theme.dropdown) === null || _theme$dropdown === void 0 ? void 0 : _theme$dropdown.baseColor) !== null && _theme$dropdown$baseC !== void 0 ? _theme$dropdown$baseC : dropdownTokens.buttonBackgroundColor;
128
147
  dropdownTokens.buttonFontColor = (_theme$dropdown$fontC = theme === null || theme === void 0 ? void 0 : (_theme$dropdown2 = theme.dropdown) === null || _theme$dropdown2 === void 0 ? void 0 : _theme$dropdown2.fontColor) !== null && _theme$dropdown$fontC !== void 0 ? _theme$dropdown$fontC : dropdownTokens.buttonFontColor;
129
- dropdownTokens.optionFontColor = (_theme$dropdown$optio = theme === null || theme === void 0 ? void 0 : (_theme$dropdown3 = theme.dropdown) === null || _theme$dropdown3 === void 0 ? void 0 : _theme$dropdown3.optionFontColor) !== null && _theme$dropdown$optio !== void 0 ? _theme$dropdown$optio : dropdownTokens.optionFontColor;
130
- dropdownTokens.optionIconColor = (_theme$dropdown$optio2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown4 = theme.dropdown) === null || _theme$dropdown4 === void 0 ? void 0 : _theme$dropdown4.optionFontColor) !== null && _theme$dropdown$optio2 !== void 0 ? _theme$dropdown$optio2 : dropdownTokens.optionIconColor;
131
- dropdownTokens.hoverButtonBackgroundColor = (_setOpacity3 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown5 = theme.dropdown) === null || _theme$dropdown5 === void 0 ? void 0 : _theme$dropdown5.baseColor, 0.34)) !== null && _setOpacity3 !== void 0 ? _setOpacity3 : dropdownTokens.hoverButtonBackgroundColor;
132
- dropdownTokens.activeButtonBackgroundColor = (_setOpacity4 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown6 = theme.dropdown) === null || _theme$dropdown6 === void 0 ? void 0 : _theme$dropdown6.baseColor, 0.7)) !== null && _setOpacity4 !== void 0 ? _setOpacity4 : dropdownTokens.activeButtonBackgroundColor;
133
- dropdownTokens.hoverOptionBackgroundColor = (_setOpacity5 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown7 = theme.dropdown) === null || _theme$dropdown7 === void 0 ? void 0 : _theme$dropdown7.baseColor, 0.34)) !== null && _setOpacity5 !== void 0 ? _setOpacity5 : dropdownTokens.hoverOptionBackgroundColor;
134
- dropdownTokens.activeOptionBackgroundColor = (_setOpacity6 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown8 = theme.dropdown) === null || _theme$dropdown8 === void 0 ? void 0 : _theme$dropdown8.baseColor, 0.7)) !== null && _setOpacity6 !== void 0 ? _setOpacity6 : dropdownTokens.activeOptionBackgroundColor;
135
- dropdownTokens.caretIconColor = (_theme$dropdown$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown9 = theme.dropdown) === null || _theme$dropdown9 === void 0 ? void 0 : _theme$dropdown9.fontColor) !== null && _theme$dropdown$fontC2 !== void 0 ? _theme$dropdown$fontC2 : dropdownTokens.caretIconColor;
136
- dropdownTokens.buttonIconColor = (_theme$dropdown$fontC3 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown10 = theme.dropdown) === null || _theme$dropdown10 === void 0 ? void 0 : _theme$dropdown10.fontColor) !== null && _theme$dropdown$fontC3 !== void 0 ? _theme$dropdown$fontC3 : dropdownTokens.caretIconColor;
148
+ dropdownTokens.buttonIconColor = (_theme$dropdown$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown3 = theme.dropdown) === null || _theme$dropdown3 === void 0 ? void 0 : _theme$dropdown3.fontColor) !== null && _theme$dropdown$fontC2 !== void 0 ? _theme$dropdown$fontC2 : dropdownTokens.caretIconColor;
149
+ dropdownTokens.caretIconColor = (_theme$dropdown$fontC3 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown4 = theme.dropdown) === null || _theme$dropdown4 === void 0 ? void 0 : _theme$dropdown4.fontColor) !== null && _theme$dropdown$fontC3 !== void 0 ? _theme$dropdown$fontC3 : dropdownTokens.caretIconColor;
150
+ dropdownTokens.optionFontColor = (_theme$dropdown$optio = theme === null || theme === void 0 ? void 0 : (_theme$dropdown5 = theme.dropdown) === null || _theme$dropdown5 === void 0 ? void 0 : _theme$dropdown5.optionFontColor) !== null && _theme$dropdown$optio !== void 0 ? _theme$dropdown$optio : dropdownTokens.optionFontColor;
151
+ dropdownTokens.optionIconColor = (_theme$dropdown$optio2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown6 = theme.dropdown) === null || _theme$dropdown6 === void 0 ? void 0 : _theme$dropdown6.optionFontColor) !== null && _theme$dropdown$optio2 !== void 0 ? _theme$dropdown$optio2 : dropdownTokens.optionIconColor;
152
+ dropdownTokens.hoverButtonBackgroundColor = (_subLightness10 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dropdown7 = theme.dropdown) === null || _theme$dropdown7 === void 0 ? void 0 : _theme$dropdown7.baseColor, 5)) !== null && _subLightness10 !== void 0 ? _subLightness10 : dropdownTokens.hoverButtonBackgroundColor;
153
+ dropdownTokens.activeButtonBackgroundColor = (_subLightness11 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dropdown8 = theme.dropdown) === null || _theme$dropdown8 === void 0 ? void 0 : _theme$dropdown8.baseColor, 12)) !== null && _subLightness11 !== void 0 ? _subLightness11 : dropdownTokens.activeButtonBackgroundColor;
154
+ dropdownTokens.hoverOptionBackgroundColor = (_subLightness12 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dropdown9 = theme.dropdown) === null || _theme$dropdown9 === void 0 ? void 0 : _theme$dropdown9.baseColor, 5)) !== null && _subLightness12 !== void 0 ? _subLightness12 : dropdownTokens.hoverOptionBackgroundColor;
155
+ dropdownTokens.activeOptionBackgroundColor = (_subLightness13 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$dropdown10 = theme.dropdown) === null || _theme$dropdown10 === void 0 ? void 0 : _theme$dropdown10.baseColor, 20)) !== null && _subLightness13 !== void 0 ? _subLightness13 : dropdownTokens.activeOptionBackgroundColor;
137
156
  var fileInputTokens = componentTokensCopy.fileInput;
138
157
  fileInputTokens.labelFontColor = (_theme$fileInput$font = theme === null || theme === void 0 ? void 0 : (_theme$fileInput = theme.fileInput) === null || _theme$fileInput === void 0 ? void 0 : _theme$fileInput.fontColor) !== null && _theme$fileInput$font !== void 0 ? _theme$fileInput$font : fileInputTokens.labelFontColor;
139
158
  fileInputTokens.helperTextFontColor = (_theme$fileInput$font2 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput2 = theme.fileInput) === null || _theme$fileInput2 === void 0 ? void 0 : _theme$fileInput2.fontColor) !== null && _theme$fileInput$font2 !== void 0 ? _theme$fileInput$font2 : fileInputTokens.helperTextFontColor;
@@ -152,10 +171,22 @@ var parseTheme = function parseTheme(theme) {
152
171
  headerTokens.menuBackgroundColor = (_theme$header$menuBas = theme === null || theme === void 0 ? void 0 : (_theme$header3 = theme.header) === null || _theme$header3 === void 0 ? void 0 : _theme$header3.menuBaseColor) !== null && _theme$header$menuBas !== void 0 ? _theme$header$menuBas : headerTokens.menuBackgroundColor;
153
172
  headerTokens.hamburguerFontColor = (_theme$header$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$header4 = theme.header) === null || _theme$header4 === void 0 ? void 0 : _theme$header4.fontColor) !== null && _theme$header$fontCol !== void 0 ? _theme$header$fontCol : headerTokens.hamburguerFontColor;
154
173
  headerTokens.hamburguerIconColor = (_theme$header$hamburg = theme === null || theme === void 0 ? void 0 : (_theme$header5 = theme.header) === null || _theme$header5 === void 0 ? void 0 : _theme$header5.hamburguerColor) !== null && _theme$header$hamburg !== void 0 ? _theme$header$hamburg : headerTokens.hamburguerIconColor;
155
- headerTokens.hamburguerHoverColor = (_setOpacity7 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$header6 = theme.header) === null || _theme$header6 === void 0 ? void 0 : _theme$header6.hamburguerColor, 0.16)) !== null && _setOpacity7 !== void 0 ? _setOpacity7 : headerTokens.hamburguerHoverColor;
174
+ headerTokens.hamburguerHoverColor = (_addLightness7 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$header6 = theme.header) === null || _theme$header6 === void 0 ? void 0 : _theme$header6.hamburguerColor, 90)) !== null && _addLightness7 !== void 0 ? _addLightness7 : headerTokens.hamburguerHoverColor;
156
175
  headerTokens.logo = (_theme$header$logo = theme === null || theme === void 0 ? void 0 : (_theme$header7 = theme.header) === null || _theme$header7 === void 0 ? void 0 : _theme$header7.logo) !== null && _theme$header$logo !== void 0 ? _theme$header$logo : headerTokens.logo;
157
176
  headerTokens.logoResponsive = (_theme$header$logoRes = theme === null || theme === void 0 ? void 0 : (_theme$header8 = theme.header) === null || _theme$header8 === void 0 ? void 0 : _theme$header8.logoResponsive) !== null && _theme$header$logoRes !== void 0 ? _theme$header$logoRes : headerTokens.logoResponsive;
158
177
  headerTokens.contentColor = (_theme$header$content = theme === null || theme === void 0 ? void 0 : (_theme$header9 = theme.header) === null || _theme$header9 === void 0 ? void 0 : _theme$header9.contentColor) !== null && _theme$header$content !== void 0 ? _theme$header$content : headerTokens.contentColor;
178
+ headerTokens.overlayColor = (_theme$header$overlay = theme === null || theme === void 0 ? void 0 : (_theme$header10 = theme.header) === null || _theme$header10 === void 0 ? void 0 : _theme$header10.overlayColor) !== null && _theme$header$overlay !== void 0 ? _theme$header$overlay : headerTokens.overlayColor;
179
+ var linkTokens = componentTokensCopy.link;
180
+ linkTokens.visitedFontColor = (_theme$link$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$link = theme.link) === null || _theme$link === void 0 ? void 0 : _theme$link.baseColor) !== null && _theme$link$baseColor !== void 0 ? _theme$link$baseColor : linkTokens.visitedFontColor;
181
+ linkTokens.visitedUnderlineColor = (_theme$link$baseColor2 = theme === null || theme === void 0 ? void 0 : (_theme$link2 = theme.link) === null || _theme$link2 === void 0 ? void 0 : _theme$link2.baseColor) !== null && _theme$link$baseColor2 !== void 0 ? _theme$link$baseColor2 : linkTokens.visitedUnderlineColor;
182
+ var navTabsTokens = componentTokensCopy.navTabs;
183
+ navTabsTokens.selectedFontColor = (_theme$navTabs$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$navTabs = theme.navTabs) === null || _theme$navTabs === void 0 ? void 0 : _theme$navTabs.baseColor) !== null && _theme$navTabs$baseCo !== void 0 ? _theme$navTabs$baseCo : navTabsTokens.selectedFontColor;
184
+ navTabsTokens.unselectedFontColor = (_theme$navTabs$baseCo2 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs2 = theme.navTabs) === null || _theme$navTabs2 === void 0 ? void 0 : _theme$navTabs2.baseColor) !== null && _theme$navTabs$baseCo2 !== void 0 ? _theme$navTabs$baseCo2 : navTabsTokens.selectedFontColor;
185
+ navTabsTokens.selectedIconColor = (_theme$navTabs$baseCo3 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs3 = theme.navTabs) === null || _theme$navTabs3 === void 0 ? void 0 : _theme$navTabs3.baseColor) !== null && _theme$navTabs$baseCo3 !== void 0 ? _theme$navTabs$baseCo3 : navTabsTokens.selectedIconColor;
186
+ navTabsTokens.unselectedIconColor = (_theme$navTabs$baseCo4 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs4 = theme.navTabs) === null || _theme$navTabs4 === void 0 ? void 0 : _theme$navTabs4.baseColor) !== null && _theme$navTabs$baseCo4 !== void 0 ? _theme$navTabs$baseCo4 : navTabsTokens.selectedIconColor;
187
+ navTabsTokens.selectedUnderlineColor = (_theme$navTabs$accent = theme === null || theme === void 0 ? void 0 : (_theme$navTabs5 = theme.navTabs) === null || _theme$navTabs5 === void 0 ? void 0 : _theme$navTabs5.accentColor) !== null && _theme$navTabs$accent !== void 0 ? _theme$navTabs$accent : navTabsTokens.selectedUnderlineColor;
188
+ navTabsTokens.hoverBackgroundColor = (_addLightness8 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$navTabs6 = theme.navTabs) === null || _theme$navTabs6 === void 0 ? void 0 : _theme$navTabs6.baseColor, 55)) !== null && _addLightness8 !== void 0 ? _addLightness8 : navTabsTokens.hoverBackgroundColor;
189
+ navTabsTokens.pressedBackgroundColor = (_addLightness9 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$navTabs7 = theme.navTabs) === null || _theme$navTabs7 === void 0 ? void 0 : _theme$navTabs7.baseColor, 50)) !== null && _addLightness9 !== void 0 ? _addLightness9 : navTabsTokens.pressedBackgroundColor;
159
190
  var paginatorTokens = componentTokensCopy.paginator;
160
191
  paginatorTokens.backgroundColor = (_theme$paginator$base = theme === null || theme === void 0 ? void 0 : (_theme$paginator = theme.paginator) === null || _theme$paginator === void 0 ? void 0 : _theme$paginator.baseColor) !== null && _theme$paginator$base !== void 0 ? _theme$paginator$base : paginatorTokens.backgroundColor;
161
192
  paginatorTokens.fontColor = (_theme$paginator$font = theme === null || theme === void 0 ? void 0 : (_theme$paginator2 = theme.paginator) === null || _theme$paginator2 === void 0 ? void 0 : _theme$paginator2.fontColor) !== null && _theme$paginator$font !== void 0 ? _theme$paginator$font : paginatorTokens.fontColor;
@@ -165,24 +196,29 @@ var parseTheme = function parseTheme(theme) {
165
196
  progressBarTokens.labelFontColor = (_theme$progressBar$fo = theme === null || theme === void 0 ? void 0 : (_theme$progressBar3 = theme.progressBar) === null || _theme$progressBar3 === void 0 ? void 0 : _theme$progressBar3.fontColor) !== null && _theme$progressBar$fo !== void 0 ? _theme$progressBar$fo : progressBarTokens.labelFontColor;
166
197
  progressBarTokens.valueFontColor = (_theme$progressBar$fo2 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar4 = theme.progressBar) === null || _theme$progressBar4 === void 0 ? void 0 : _theme$progressBar4.fontColor) !== null && _theme$progressBar$fo2 !== void 0 ? _theme$progressBar$fo2 : progressBarTokens.valueFontColor;
167
198
  progressBarTokens.helperTextFontColor = (_theme$progressBar$fo3 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar5 = theme.progressBar) === null || _theme$progressBar5 === void 0 ? void 0 : _theme$progressBar5.fontColor) !== null && _theme$progressBar$fo3 !== void 0 ? _theme$progressBar$fo3 : progressBarTokens.helperTextFontColor;
199
+ progressBarTokens.overlayColor = (_theme$progressBar$ov = theme === null || theme === void 0 ? void 0 : (_theme$progressBar6 = theme.progressBar) === null || _theme$progressBar6 === void 0 ? void 0 : _theme$progressBar6.overlayColor) !== null && _theme$progressBar$ov !== void 0 ? _theme$progressBar$ov : progressBarTokens.overlayColor;
200
+ progressBarTokens.overlayFontColor = (_theme$progressBar$ov2 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar7 = theme.progressBar) === null || _theme$progressBar7 === void 0 ? void 0 : _theme$progressBar7.overlayFontColor) !== null && _theme$progressBar$ov2 !== void 0 ? _theme$progressBar$ov2 : progressBarTokens.overlayFontColor;
168
201
  var quickNavTokens = componentTokensCopy.quickNav;
169
202
  quickNavTokens.fontColor = (_theme$quickNav$fontC = theme === null || theme === void 0 ? void 0 : (_theme$quickNav = theme.quickNav) === null || _theme$quickNav === void 0 ? void 0 : _theme$quickNav.fontColor) !== null && _theme$quickNav$fontC !== void 0 ? _theme$quickNav$fontC : quickNavTokens.fontColor;
170
- quickNavTokens.hoverFontColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$quickNav2 = theme.quickNav) === null || _theme$quickNav2 === void 0 ? void 0 : _theme$quickNav2.accentColor, 0.7)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : quickNavTokens.hoverFontColor;
203
+ quickNavTokens.hoverFontColor = (_theme$quickNav$accen = theme === null || theme === void 0 ? void 0 : (_theme$quickNav2 = theme.quickNav) === null || _theme$quickNav2 === void 0 ? void 0 : _theme$quickNav2.accentColor) !== null && _theme$quickNav$accen !== void 0 ? _theme$quickNav$accen : quickNavTokens.hoverFontColor;
171
204
  var radioGroupTokens = componentTokensCopy.radioGroup;
172
205
  radioGroupTokens.radioInputColor = (_theme$radioGroup$bas = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup = theme.radioGroup) === null || _theme$radioGroup === void 0 ? void 0 : _theme$radioGroup.baseColor) !== null && _theme$radioGroup$bas !== void 0 ? _theme$radioGroup$bas : radioGroupTokens.radioInputColor;
173
206
  radioGroupTokens.labelFontColor = (_theme$radioGroup$fon = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup2 = theme.radioGroup) === null || _theme$radioGroup2 === void 0 ? void 0 : _theme$radioGroup2.fontColor) !== null && _theme$radioGroup$fon !== void 0 ? _theme$radioGroup$fon : radioGroupTokens.labelFontColor;
174
207
  radioGroupTokens.helperTextFontColor = (_theme$radioGroup$fon2 = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup3 = theme.radioGroup) === null || _theme$radioGroup3 === void 0 ? void 0 : _theme$radioGroup3.fontColor) !== null && _theme$radioGroup$fon2 !== void 0 ? _theme$radioGroup$fon2 : radioGroupTokens.helperTextFontColor;
175
208
  radioGroupTokens.radioInputLabelFontColor = (_theme$radioGroup$fon3 = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup4 = theme.radioGroup) === null || _theme$radioGroup4 === void 0 ? void 0 : _theme$radioGroup4.fontColor) !== null && _theme$radioGroup$fon3 !== void 0 ? _theme$radioGroup$fon3 : radioGroupTokens.radioInputLabelFontColor;
209
+ radioGroupTokens.hoverRadioInputColor = (_subLightness14 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$radioGroup5 = theme.radioGroup) === null || _theme$radioGroup5 === void 0 ? void 0 : _theme$radioGroup5.baseColor, 10)) !== null && _subLightness14 !== void 0 ? _subLightness14 : radioGroupTokens.radioInputColor;
210
+ radioGroupTokens.activeRadioInputColor = (_subLightness15 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$radioGroup6 = theme.radioGroup) === null || _theme$radioGroup6 === void 0 ? void 0 : _theme$radioGroup6.baseColor, 25)) !== null && _subLightness15 !== void 0 ? _subLightness15 : radioGroupTokens.radioInputColor;
176
211
  var selectTokens = componentTokensCopy.select;
177
212
  selectTokens.selectedListOptionBackgroundColor = (_theme$select$selecte = theme === null || theme === void 0 ? void 0 : (_theme$select = theme.select) === null || _theme$select === void 0 ? void 0 : _theme$select.selectedOptionBackgroundColor) !== null && _theme$select$selecte !== void 0 ? _theme$select$selecte : selectTokens.selectedListOptionBackgroundColor;
178
213
  selectTokens.valueFontColor = (_theme$select$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$select2 = theme.select) === null || _theme$select2 === void 0 ? void 0 : _theme$select2.fontColor) !== null && _theme$select$fontCol !== void 0 ? _theme$select$fontCol : selectTokens.valueFontColor;
179
214
  selectTokens.labelFontColor = (_theme$select$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$select3 = theme.select) === null || _theme$select3 === void 0 ? void 0 : _theme$select3.fontColor) !== null && _theme$select$fontCol2 !== void 0 ? _theme$select$fontCol2 : selectTokens.labelFontColor;
180
215
  selectTokens.helperTextFontColor = (_theme$select$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$select4 = theme.select) === null || _theme$select4 === void 0 ? void 0 : _theme$select4.fontColor) !== null && _theme$select$fontCol3 !== void 0 ? _theme$select$fontCol3 : selectTokens.helperTextFontColor;
181
216
  selectTokens.listOptionFontColor = (_theme$select$optionF = theme === null || theme === void 0 ? void 0 : (_theme$select5 = theme.select) === null || _theme$select5 === void 0 ? void 0 : _theme$select5.optionFontColor) !== null && _theme$select$optionF !== void 0 ? _theme$select$optionF : selectTokens.optionFontColor;
182
- selectTokens.placeholderFontColor = (_setOpacity9 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$select6 = theme.select) === null || _theme$select6 === void 0 ? void 0 : _theme$select6.fontColor, 0.5)) !== null && _setOpacity9 !== void 0 ? _setOpacity9 : selectTokens.placeholderFontColor;
217
+ selectTokens.placeholderFontColor = (_addLightness10 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$select6 = theme.select) === null || _theme$select6 === void 0 ? void 0 : _theme$select6.fontColor, 30)) !== null && _addLightness10 !== void 0 ? _addLightness10 : selectTokens.placeholderFontColor;
183
218
  selectTokens.collapseIndicatorColor = (_theme$select$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$select7 = theme.select) === null || _theme$select7 === void 0 ? void 0 : _theme$select7.fontColor) !== null && _theme$select$fontCol4 !== void 0 ? _theme$select$fontCol4 : selectTokens.collapseIndicatorColor;
184
- selectTokens.selectedHoverListOptionBackgroundColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select8 = theme.select) === null || _theme$select8 === void 0 ? void 0 : _theme$select8.selectedOptionBackgroundColor, 5)) !== null && _subLightness6 !== void 0 ? _subLightness6 : selectTokens.selectedHoverListOptionBackgroundColor;
185
- selectTokens.selectedActiveListOptionBackgroundColor = (_subLightness7 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select9 = theme.select) === null || _theme$select9 === void 0 ? void 0 : _theme$select9.selectedOptionBackgroundColor, 10)) !== null && _subLightness7 !== void 0 ? _subLightness7 : selectTokens.selectedActiveListOptionBackgroundColor;
219
+ selectTokens.hoverInputBorderColor = (_theme$select$hoverBo = theme === null || theme === void 0 ? void 0 : (_theme$select8 = theme.select) === null || _theme$select8 === void 0 ? void 0 : _theme$select8.hoverBorderColor) !== null && _theme$select$hoverBo !== void 0 ? _theme$select$hoverBo : selectTokens.hoverInputBorderColor;
220
+ selectTokens.selectedHoverListOptionBackgroundColor = (_subLightness16 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select9 = theme.select) === null || _theme$select9 === void 0 ? void 0 : _theme$select9.selectedOptionBackgroundColor, 5)) !== null && _subLightness16 !== void 0 ? _subLightness16 : selectTokens.selectedHoverListOptionBackgroundColor;
221
+ selectTokens.selectedActiveListOptionBackgroundColor = (_subLightness17 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select10 = theme.select) === null || _theme$select10 === void 0 ? void 0 : _theme$select10.selectedOptionBackgroundColor, 15)) !== null && _subLightness17 !== void 0 ? _subLightness17 : selectTokens.selectedActiveListOptionBackgroundColor;
186
222
  var sideNavTokens = componentTokensCopy.sidenav;
187
223
  sideNavTokens.backgroundColor = (_theme$sidenav$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$sidenav = theme.sidenav) === null || _theme$sidenav === void 0 ? void 0 : _theme$sidenav.baseColor) !== null && _theme$sidenav$baseCo !== void 0 ? _theme$sidenav$baseCo : sideNavTokens.backgroundColor;
188
224
  var sliderTokens = componentTokensCopy.slider;
@@ -193,18 +229,21 @@ var parseTheme = function parseTheme(theme) {
193
229
  sliderTokens.focusThumbBackgroundColor = (_theme$slider$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$slider5 = theme.slider) === null || _theme$slider5 === void 0 ? void 0 : _theme$slider5.baseColor) !== null && _theme$slider$baseCol2 !== void 0 ? _theme$slider$baseCol2 : sliderTokens.focusThumbBackgroundColor;
194
230
  sliderTokens.tickBackgroundColor = (_theme$slider$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$slider6 = theme.slider) === null || _theme$slider6 === void 0 ? void 0 : _theme$slider6.baseColor) !== null && _theme$slider$baseCol3 !== void 0 ? _theme$slider$baseCol3 : sliderTokens.tickBackgroundColor;
195
231
  sliderTokens.trackLineColor = (_theme$slider$baseCol4 = theme === null || theme === void 0 ? void 0 : (_theme$slider7 = theme.slider) === null || _theme$slider7 === void 0 ? void 0 : _theme$slider7.baseColor) !== null && _theme$slider$baseCol4 !== void 0 ? _theme$slider$baseCol4 : sliderTokens.trackLineColor;
196
- sliderTokens.hoverThumbBackgroundColor = (_subLightness8 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.baseColor, 15)) !== null && _subLightness8 !== void 0 ? _subLightness8 : sliderTokens.thumbBackgroundColor;
197
- sliderTokens.activeThumbBackgroundColor = (_subLightness9 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor, 15)) !== null && _subLightness9 !== void 0 ? _subLightness9 : sliderTokens.thumbBackgroundColor;
198
- sliderTokens.totalLineColor = (_setOpacity10 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider10 = theme.slider) === null || _theme$slider10 === void 0 ? void 0 : _theme$slider10.baseColor, 0.34)) !== null && _setOpacity10 !== void 0 ? _setOpacity10 : sliderTokens.totalLineColor;
232
+ sliderTokens.totalLineColor = (_theme$slider$totalLi = theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.totalLineColor) !== null && _theme$slider$totalLi !== void 0 ? _theme$slider$totalLi : sliderTokens.totalLineColor;
233
+ sliderTokens.hoverThumbBackgroundColor = (_subLightness18 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor, 15)) !== null && _subLightness18 !== void 0 ? _subLightness18 : sliderTokens.thumbBackgroundColor;
234
+ sliderTokens.activeThumbBackgroundColor = (_subLightness19 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider10 = theme.slider) === null || _theme$slider10 === void 0 ? void 0 : _theme$slider10.baseColor, 15)) !== null && _subLightness19 !== void 0 ? _subLightness19 : sliderTokens.thumbBackgroundColor;
199
235
  var spinnerTokens = componentTokensCopy.spinner;
200
236
  spinnerTokens.trackCircleColor = (_theme$spinner$accent = theme === null || theme === void 0 ? void 0 : (_theme$spinner = theme.spinner) === null || _theme$spinner === void 0 ? void 0 : _theme$spinner.accentColor) !== null && _theme$spinner$accent !== void 0 ? _theme$spinner$accent : spinnerTokens.trackCircleColor;
201
237
  spinnerTokens.totalCircleColor = (_theme$spinner$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner2 = theme.spinner) === null || _theme$spinner2 === void 0 ? void 0 : _theme$spinner2.baseColor) !== null && _theme$spinner$baseCo !== void 0 ? _theme$spinner$baseCo : spinnerTokens.totalCircleColor;
202
- spinnerTokens.labelFontColor = (_theme$spinner$fontCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner3 = theme.spinner) === null || _theme$spinner3 === void 0 ? void 0 : _theme$spinner3.fontColor) !== null && _theme$spinner$fontCo !== void 0 ? _theme$spinner$fontCo : spinnerTokens.labelFontColor;
203
- spinnerTokens.progressValueFontColor = (_theme$spinner$fontCo2 = theme === null || theme === void 0 ? void 0 : (_theme$spinner4 = theme.spinner) === null || _theme$spinner4 === void 0 ? void 0 : _theme$spinner4.fontColor) !== null && _theme$spinner$fontCo2 !== void 0 ? _theme$spinner$fontCo2 : spinnerTokens.progressValueFontColor;
238
+ spinnerTokens.trackCircleColorOverlay = (_theme$spinner$overla = theme === null || theme === void 0 ? void 0 : (_theme$spinner3 = theme.spinner) === null || _theme$spinner3 === void 0 ? void 0 : _theme$spinner3.overlayColor) !== null && _theme$spinner$overla !== void 0 ? _theme$spinner$overla : spinnerTokens.trackCircleColorOverlay;
239
+ spinnerTokens.labelFontColor = (_theme$spinner$fontCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner4 = theme.spinner) === null || _theme$spinner4 === void 0 ? void 0 : _theme$spinner4.fontColor) !== null && _theme$spinner$fontCo !== void 0 ? _theme$spinner$fontCo : spinnerTokens.labelFontColor;
240
+ spinnerTokens.progressValueFontColor = (_theme$spinner$fontCo2 = theme === null || theme === void 0 ? void 0 : (_theme$spinner5 = theme.spinner) === null || _theme$spinner5 === void 0 ? void 0 : _theme$spinner5.fontColor) !== null && _theme$spinner$fontCo2 !== void 0 ? _theme$spinner$fontCo2 : spinnerTokens.progressValueFontColor;
241
+ spinnerTokens.overlayLabelFontColor = (_theme$spinner$overla2 = theme === null || theme === void 0 ? void 0 : (_theme$spinner6 = theme.spinner) === null || _theme$spinner6 === void 0 ? void 0 : _theme$spinner6.overlayFontColor) !== null && _theme$spinner$overla2 !== void 0 ? _theme$spinner$overla2 : spinnerTokens.overlayLabelFontColor;
242
+ spinnerTokens.overlayProgressValueFontColor = (_theme$spinner$overla3 = theme === null || theme === void 0 ? void 0 : (_theme$spinner7 = theme.spinner) === null || _theme$spinner7 === void 0 ? void 0 : _theme$spinner7.overlayFontColor) !== null && _theme$spinner$overla3 !== void 0 ? _theme$spinner$overla3 : spinnerTokens.overlayProgressValueFontColor;
204
243
  var switchTokens = componentTokensCopy["switch"];
205
244
  switchTokens.checkedTrackBackgroundColor = (_theme$switch$checked = theme === null || theme === void 0 ? void 0 : (_theme$switch = theme["switch"]) === null || _theme$switch === void 0 ? void 0 : _theme$switch.checkedBaseColor) !== null && _theme$switch$checked !== void 0 ? _theme$switch$checked : switchTokens.checkedTrackBackgroundColor;
206
245
  switchTokens.labelFontColor = (_theme$switch$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$switch2 = theme["switch"]) === null || _theme$switch2 === void 0 ? void 0 : _theme$switch2.fontColor) !== null && _theme$switch$fontCol !== void 0 ? _theme$switch$fontCol : switchTokens.labelFontColor;
207
- switchTokens.disabledCheckedTrackBackgroundColor = (_setOpacity11 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$switch3 = theme["switch"]) === null || _theme$switch3 === void 0 ? void 0 : _theme$switch3.checkedBaseColor, 0.34)) !== null && _setOpacity11 !== void 0 ? _setOpacity11 : switchTokens.disabledCheckedTrackBackgroundColor;
246
+ switchTokens.disabledCheckedTrackBackgroundColor = (_addLightness11 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$switch3 = theme["switch"]) === null || _theme$switch3 === void 0 ? void 0 : _theme$switch3.checkedBaseColor, 57)) !== null && _addLightness11 !== void 0 ? _addLightness11 : switchTokens.disabledCheckedTrackBackgroundColor;
208
247
  var tableTokens = componentTokensCopy.table;
209
248
  tableTokens.headerBackgroundColor = (_theme$table$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$table = theme.table) === null || _theme$table === void 0 ? void 0 : _theme$table.baseColor) !== null && _theme$table$baseColo !== void 0 ? _theme$table$baseColo : tableTokens.headerBackgroundColor;
210
249
  tableTokens.headerFontColor = (_theme$table$headerFo = theme === null || theme === void 0 ? void 0 : (_theme$table2 = theme.table) === null || _theme$table2 === void 0 ? void 0 : _theme$table2.headerFontColor) !== null && _theme$table$headerFo !== void 0 ? _theme$table$headerFo : tableTokens.headerFontColor;
@@ -215,8 +254,11 @@ var parseTheme = function parseTheme(theme) {
215
254
  tabsTokens.selectedIconColor = (_theme$tabs$baseColor2 = theme === null || theme === void 0 ? void 0 : (_theme$tabs2 = theme.tabs) === null || _theme$tabs2 === void 0 ? void 0 : _theme$tabs2.baseColor) !== null && _theme$tabs$baseColor2 !== void 0 ? _theme$tabs$baseColor2 : tabsTokens.selectedIconColor;
216
255
  tabsTokens.selectedUnderlineColor = (_theme$tabs$baseColor3 = theme === null || theme === void 0 ? void 0 : (_theme$tabs3 = theme.tabs) === null || _theme$tabs3 === void 0 ? void 0 : _theme$tabs3.baseColor) !== null && _theme$tabs$baseColor3 !== void 0 ? _theme$tabs$baseColor3 : tabsTokens.selectedUnderlineColor;
217
256
  tabsTokens.focusOutline = (_theme$tabs$baseColor4 = theme === null || theme === void 0 ? void 0 : (_theme$tabs4 = theme.tabs) === null || _theme$tabs4 === void 0 ? void 0 : _theme$tabs4.baseColor) !== null && _theme$tabs$baseColor4 !== void 0 ? _theme$tabs$baseColor4 : tabsTokens.focusOutline;
218
- tabsTokens.hoverBackgroundColor = (_addLightness3 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs5 = theme.tabs) === null || _theme$tabs5 === void 0 ? void 0 : _theme$tabs5.baseColor, 58)) !== null && _addLightness3 !== void 0 ? _addLightness3 : tabsTokens.hoverBackgroundColor;
219
- tabsTokens.pressedBackgroundColor = (_addLightness4 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs6 = theme.tabs) === null || _theme$tabs6 === void 0 ? void 0 : _theme$tabs6.baseColor, 53)) !== null && _addLightness4 !== void 0 ? _addLightness4 : tabsTokens.pressedBackgroundColor;
257
+ tabsTokens.hoverBackgroundColor = (_addLightness12 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs5 = theme.tabs) === null || _theme$tabs5 === void 0 ? void 0 : _theme$tabs5.baseColor, 57)) !== null && _addLightness12 !== void 0 ? _addLightness12 : tabsTokens.hoverBackgroundColor;
258
+ tabsTokens.pressedBackgroundColor = (_addLightness13 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs6 = theme.tabs) === null || _theme$tabs6 === void 0 ? void 0 : _theme$tabs6.baseColor, 52)) !== null && _addLightness13 !== void 0 ? _addLightness13 : tabsTokens.pressedBackgroundColor;
259
+ var tagTokens = componentTokensCopy.tag;
260
+ tagTokens.fontColor = (_theme$tag$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$tag = theme.tag) === null || _theme$tag === void 0 ? void 0 : _theme$tag.fontColor) !== null && _theme$tag$fontColor !== void 0 ? _theme$tag$fontColor : tagTokens.fontColor;
261
+ tagTokens.iconColor = (_theme$tag$iconColor = theme === null || theme === void 0 ? void 0 : (_theme$tag2 = theme.tag) === null || _theme$tag2 === void 0 ? void 0 : _theme$tag2.iconColor) !== null && _theme$tag$iconColor !== void 0 ? _theme$tag$iconColor : tagTokens.iconColor;
220
262
  var textInputTokens = componentTokensCopy.textInput;
221
263
  textInputTokens.labelFontColor = (_theme$textInput$font = theme === null || theme === void 0 ? void 0 : (_theme$textInput = theme.textInput) === null || _theme$textInput === void 0 ? void 0 : _theme$textInput.fontColor) !== null && _theme$textInput$font !== void 0 ? _theme$textInput$font : textInputTokens.labelFontColor;
222
264
  textInputTokens.helperTextFontColor = (_theme$textInput$font2 = theme === null || theme === void 0 ? void 0 : (_theme$textInput2 = theme.textInput) === null || _theme$textInput2 === void 0 ? void 0 : _theme$textInput2.fontColor) !== null && _theme$textInput$font2 !== void 0 ? _theme$textInput$font2 : textInputTokens.helperTextFontColor;
@@ -225,32 +267,39 @@ var parseTheme = function parseTheme(theme) {
225
267
  textInputTokens.hoverActionIconColor = (_theme$textInput$font5 = theme === null || theme === void 0 ? void 0 : (_theme$textInput5 = theme.textInput) === null || _theme$textInput5 === void 0 ? void 0 : _theme$textInput5.fontColor) !== null && _theme$textInput$font5 !== void 0 ? _theme$textInput$font5 : textInputTokens.hoverActionIconColor;
226
268
  textInputTokens.focusActionIconColor = (_theme$textInput$font6 = theme === null || theme === void 0 ? void 0 : (_theme$textInput6 = theme.textInput) === null || _theme$textInput6 === void 0 ? void 0 : _theme$textInput6.fontColor) !== null && _theme$textInput$font6 !== void 0 ? _theme$textInput$font6 : textInputTokens.focusActionIconColor;
227
269
  textInputTokens.activeActionIconColor = (_theme$textInput$font7 = theme === null || theme === void 0 ? void 0 : (_theme$textInput7 = theme.textInput) === null || _theme$textInput7 === void 0 ? void 0 : _theme$textInput7.fontColor) !== null && _theme$textInput$font7 !== void 0 ? _theme$textInput$font7 : textInputTokens.activeActionIconColor;
228
- textInputTokens.suffixColor = (_setOpacity12 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput8 = theme.textInput) === null || _theme$textInput8 === void 0 ? void 0 : _theme$textInput8.fontColor, 0.5)) !== null && _setOpacity12 !== void 0 ? _setOpacity12 : textInputTokens.suffixColor;
229
- textInputTokens.prefixColor = (_setOpacity13 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput9 = theme.textInput) === null || _theme$textInput9 === void 0 ? void 0 : _theme$textInput9.fontColor, 0.5)) !== null && _setOpacity13 !== void 0 ? _setOpacity13 : textInputTokens.prefixColor;
230
- textInputTokens.placeholderFontColor = (_setOpacity14 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput10 = theme.textInput) === null || _theme$textInput10 === void 0 ? void 0 : _theme$textInput10.fontColor, 0.5)) !== null && _setOpacity14 !== void 0 ? _setOpacity14 : textInputTokens.placeholderFontColor;
270
+ textInputTokens.hoverBorderColor = (_theme$textInput$hove = theme === null || theme === void 0 ? void 0 : (_theme$textInput8 = theme.textInput) === null || _theme$textInput8 === void 0 ? void 0 : _theme$textInput8.hoverBorderColor) !== null && _theme$textInput$hove !== void 0 ? _theme$textInput$hove : textInputTokens.hoverBorderColor;
271
+ textInputTokens.suffixColor = (_addLightness14 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$textInput9 = theme.textInput) === null || _theme$textInput9 === void 0 ? void 0 : _theme$textInput9.fontColor, 40)) !== null && _addLightness14 !== void 0 ? _addLightness14 : textInputTokens.suffixColor;
272
+ textInputTokens.prefixColor = (_addLightness15 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$textInput10 = theme.textInput) === null || _theme$textInput10 === void 0 ? void 0 : _theme$textInput10.fontColor, 40)) !== null && _addLightness15 !== void 0 ? _addLightness15 : textInputTokens.prefixColor;
273
+ textInputTokens.placeholderFontColor = (_addLightness16 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$textInput11 = theme.textInput) === null || _theme$textInput11 === void 0 ? void 0 : _theme$textInput11.fontColor, 30)) !== null && _addLightness16 !== void 0 ? _addLightness16 : textInputTokens.placeholderFontColor;
274
+ var textareaTokens = componentTokensCopy.textarea;
275
+ textareaTokens.labelFontColor = (_theme$textarea$fontC = theme === null || theme === void 0 ? void 0 : (_theme$textarea = theme.textarea) === null || _theme$textarea === void 0 ? void 0 : _theme$textarea.fontColor) !== null && _theme$textarea$fontC !== void 0 ? _theme$textarea$fontC : textareaTokens.labelFontColor;
276
+ textareaTokens.helperTextFontColor = (_theme$textarea$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$textarea2 = theme.textarea) === null || _theme$textarea2 === void 0 ? void 0 : _theme$textarea2.fontColor) !== null && _theme$textarea$fontC2 !== void 0 ? _theme$textarea$fontC2 : textareaTokens.helperTextFontColor;
277
+ textareaTokens.valueFontColor = (_theme$textarea$fontC3 = theme === null || theme === void 0 ? void 0 : (_theme$textarea3 = theme.textarea) === null || _theme$textarea3 === void 0 ? void 0 : _theme$textarea3.fontColor) !== null && _theme$textarea$fontC3 !== void 0 ? _theme$textarea$fontC3 : textareaTokens.valueFontColor;
278
+ textareaTokens.hoverBorderColor = (_theme$textarea$hover = theme === null || theme === void 0 ? void 0 : (_theme$textarea4 = theme.textarea) === null || _theme$textarea4 === void 0 ? void 0 : _theme$textarea4.hoverBorderColor) !== null && _theme$textarea$hover !== void 0 ? _theme$textarea$hover : textareaTokens.hoverBorderColor;
279
+ textareaTokens.placeholderFontColor = (_addLightness17 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$textarea5 = theme.textarea) === null || _theme$textarea5 === void 0 ? void 0 : _theme$textarea5.fontColor, 30)) !== null && _addLightness17 !== void 0 ? _addLightness17 : textareaTokens.placeholderFontColor;
231
280
  var toggleGroupTokens = componentTokensCopy.toggleGroup;
232
281
  toggleGroupTokens.selectedBackgroundColor = (_theme$toggleGroup$se = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup = theme.toggleGroup) === null || _theme$toggleGroup === void 0 ? void 0 : _theme$toggleGroup.selectedBaseColor) !== null && _theme$toggleGroup$se !== void 0 ? _theme$toggleGroup$se : buttonTokens.selectedBackgroundColor;
233
282
  toggleGroupTokens.selectedFontColor = (_theme$toggleGroup$se2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup2 = theme.toggleGroup) === null || _theme$toggleGroup2 === void 0 ? void 0 : _theme$toggleGroup2.selectedFontColor) !== null && _theme$toggleGroup$se2 !== void 0 ? _theme$toggleGroup$se2 : toggleGroupTokens.selectedFontColor;
234
283
  toggleGroupTokens.unselectedBackgroundColor = (_theme$toggleGroup$un = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup3 = theme.toggleGroup) === null || _theme$toggleGroup3 === void 0 ? void 0 : _theme$toggleGroup3.unselectedBaseColor) !== null && _theme$toggleGroup$un !== void 0 ? _theme$toggleGroup$un : toggleGroupTokens.unselectedBackgroundColor;
235
284
  toggleGroupTokens.unselectedActiveBackgroundColor = (_theme$toggleGroup$se3 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup4 = theme.toggleGroup) === null || _theme$toggleGroup4 === void 0 ? void 0 : _theme$toggleGroup4.selectedBaseColor) !== null && _theme$toggleGroup$se3 !== void 0 ? _theme$toggleGroup$se3 : toggleGroupTokens.unselectedActiveBackgroundColor;
236
285
  toggleGroupTokens.unselectedFontColor = (_theme$toggleGroup$un2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup5 = theme.toggleGroup) === null || _theme$toggleGroup5 === void 0 ? void 0 : _theme$toggleGroup5.unselectedFontColor) !== null && _theme$toggleGroup$un2 !== void 0 ? _theme$toggleGroup$un2 : toggleGroupTokens.unselectedFontColor;
237
- toggleGroupTokens.selectedHoverBackgroundColor = (_subLightness10 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup6 = theme.toggleGroup) === null || _theme$toggleGroup6 === void 0 ? void 0 : _theme$toggleGroup6.selectedBaseColor, 8)) !== null && _subLightness10 !== void 0 ? _subLightness10 : buttonTokens.selectedHoverBackgroundColor;
238
- toggleGroupTokens.selectedActiveBackgroundColor = (_subLightness11 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup7 = theme.toggleGroup) === null || _theme$toggleGroup7 === void 0 ? void 0 : _theme$toggleGroup7.selectedBaseColor, 18)) !== null && _subLightness11 !== void 0 ? _subLightness11 : toggleGroupTokens.selectedActiveBackgroundColor;
239
- toggleGroupTokens.selectedDisabledBackgroundColor = (_addLightness5 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup8 = theme.toggleGroup) === null || _theme$toggleGroup8 === void 0 ? void 0 : _theme$toggleGroup8.selectedBaseColor, 57)) !== null && _addLightness5 !== void 0 ? _addLightness5 : toggleGroupTokens.selectedDisabledBackgroundColor;
240
- toggleGroupTokens.selectedDisabledFontColor = (_addLightness6 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedFontColor, 42)) !== null && _addLightness6 !== void 0 ? _addLightness6 : toggleGroupTokens.selectedDisabledFontColor;
241
- toggleGroupTokens.unselectedHoverBackgroundColor = (_subLightness12 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup10 = theme.toggleGroup) === null || _theme$toggleGroup10 === void 0 ? void 0 : _theme$toggleGroup10.unselectedBaseColor, 8)) !== null && _subLightness12 !== void 0 ? _subLightness12 : toggleGroupTokens.unselectedHoverBackgroundColor;
286
+ toggleGroupTokens.selectedHoverBackgroundColor = (_subLightness20 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup6 = theme.toggleGroup) === null || _theme$toggleGroup6 === void 0 ? void 0 : _theme$toggleGroup6.selectedBaseColor, 8)) !== null && _subLightness20 !== void 0 ? _subLightness20 : buttonTokens.selectedHoverBackgroundColor;
287
+ toggleGroupTokens.selectedActiveBackgroundColor = (_subLightness21 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup7 = theme.toggleGroup) === null || _theme$toggleGroup7 === void 0 ? void 0 : _theme$toggleGroup7.selectedBaseColor, 18)) !== null && _subLightness21 !== void 0 ? _subLightness21 : toggleGroupTokens.selectedActiveBackgroundColor;
288
+ toggleGroupTokens.selectedDisabledBackgroundColor = (_addLightness18 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup8 = theme.toggleGroup) === null || _theme$toggleGroup8 === void 0 ? void 0 : _theme$toggleGroup8.selectedBaseColor, 57)) !== null && _addLightness18 !== void 0 ? _addLightness18 : toggleGroupTokens.selectedDisabledBackgroundColor;
289
+ toggleGroupTokens.selectedDisabledFontColor = (_addLightness19 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedBaseColor, 42)) !== null && _addLightness19 !== void 0 ? _addLightness19 : toggleGroupTokens.selectedDisabledFontColor;
290
+ toggleGroupTokens.unselectedHoverBackgroundColor = (_subLightness22 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup10 = theme.toggleGroup) === null || _theme$toggleGroup10 === void 0 ? void 0 : _theme$toggleGroup10.unselectedBaseColor, 10)) !== null && _subLightness22 !== void 0 ? _subLightness22 : toggleGroupTokens.unselectedHoverBackgroundColor;
242
291
  var wizardTokens = componentTokensCopy.wizard;
243
292
  wizardTokens.selectedStepBackgroundColor = (_theme$wizard$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard = theme.wizard) === null || _theme$wizard === void 0 ? void 0 : _theme$wizard.baseColor) !== null && _theme$wizard$baseCol !== void 0 ? _theme$wizard$baseCol : wizardTokens.selectedStepBackgroundColor;
244
- wizardTokens.selectedStepFontColor = (_theme$wizard$selecte = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.selectedFontColor) !== null && _theme$wizard$selecte !== void 0 ? _theme$wizard$selecte : wizardTokens.selectedStepFontColor;
293
+ wizardTokens.selectedStepFontColor = (_theme$wizard$selecte = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.selectedStepFontColor) !== null && _theme$wizard$selecte !== void 0 ? _theme$wizard$selecte : wizardTokens.selectedStepFontColor;
245
294
  wizardTokens.selectedStepBorderColor = (_theme$wizard$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$wizard3 = theme.wizard) === null || _theme$wizard3 === void 0 ? void 0 : _theme$wizard3.baseColor) !== null && _theme$wizard$baseCol2 !== void 0 ? _theme$wizard$baseCol2 : wizardTokens.selectedStepBorderColor;
246
295
  wizardTokens.visitedLabelFontColor = (_theme$wizard$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard4 = theme.wizard) === null || _theme$wizard4 === void 0 ? void 0 : _theme$wizard4.fontColor) !== null && _theme$wizard$fontCol !== void 0 ? _theme$wizard$fontCol : wizardTokens.visitedLabelFontColor;
247
296
  wizardTokens.selectedLabelFontColor = (_theme$wizard$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$wizard5 = theme.wizard) === null || _theme$wizard5 === void 0 ? void 0 : _theme$wizard5.fontColor) !== null && _theme$wizard$fontCol2 !== void 0 ? _theme$wizard$fontCol2 : wizardTokens.selectedLabelFontColor;
248
297
  wizardTokens.visitedHelperTextFontColor = (_theme$wizard$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$wizard6 = theme.wizard) === null || _theme$wizard6 === void 0 ? void 0 : _theme$wizard6.fontColor) !== null && _theme$wizard$fontCol3 !== void 0 ? _theme$wizard$fontCol3 : wizardTokens.visitedHelperTextFontColor;
249
298
  wizardTokens.selectedHelperTextFontColor = (_theme$wizard$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$wizard7 = theme.wizard) === null || _theme$wizard7 === void 0 ? void 0 : _theme$wizard7.fontColor) !== null && _theme$wizard$fontCol4 !== void 0 ? _theme$wizard$fontCol4 : wizardTokens.selectedHelperTextFontColor;
250
- wizardTokens.unvisitedStepBorderColor = (_setOpacity15 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard8 = theme.wizard) === null || _theme$wizard8 === void 0 ? void 0 : _theme$wizard8.fontColor, 0.6)) !== null && _setOpacity15 !== void 0 ? _setOpacity15 : wizardTokens.unvisitedStepBorderColor;
251
- wizardTokens.unvisitedStepFontColor = (_setOpacity16 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard9 = theme.wizard) === null || _theme$wizard9 === void 0 ? void 0 : _theme$wizard9.fontColor, 0.6)) !== null && _setOpacity16 !== void 0 ? _setOpacity16 : wizardTokens.unvisitedStepFontColor;
252
- wizardTokens.unvisitedLabelFontColor = (_setOpacity17 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard10 = theme.wizard) === null || _theme$wizard10 === void 0 ? void 0 : _theme$wizard10.fontColor, 0.6)) !== null && _setOpacity17 !== void 0 ? _setOpacity17 : wizardTokens.unvisitedLabelFontColor;
253
- wizardTokens.unvisitedHelperTextFontColor = (_setOpacity18 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard11 = theme.wizard) === null || _theme$wizard11 === void 0 ? void 0 : _theme$wizard11.fontColor, 0.6)) !== null && _setOpacity18 !== void 0 ? _setOpacity18 : wizardTokens.unvisitedHelperTextFontColor;
299
+ wizardTokens.unvisitedStepBorderColor = (_addLightness20 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$wizard8 = theme.wizard) === null || _theme$wizard8 === void 0 ? void 0 : _theme$wizard8.fontColor, 40)) !== null && _addLightness20 !== void 0 ? _addLightness20 : wizardTokens.unvisitedStepBorderColor;
300
+ wizardTokens.unvisitedStepFontColor = (_addLightness21 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$wizard9 = theme.wizard) === null || _theme$wizard9 === void 0 ? void 0 : _theme$wizard9.fontColor, 40)) !== null && _addLightness21 !== void 0 ? _addLightness21 : wizardTokens.unvisitedStepFontColor;
301
+ wizardTokens.unvisitedLabelFontColor = (_addLightness22 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$wizard10 = theme.wizard) === null || _theme$wizard10 === void 0 ? void 0 : _theme$wizard10.fontColor, 40)) !== null && _addLightness22 !== void 0 ? _addLightness22 : wizardTokens.unvisitedLabelFontColor;
302
+ wizardTokens.unvisitedHelperTextFontColor = (_addLightness23 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$wizard11 = theme.wizard) === null || _theme$wizard11 === void 0 ? void 0 : _theme$wizard11.fontColor, 40)) !== null && _addLightness23 !== void 0 ? _addLightness23 : wizardTokens.unvisitedHelperTextFontColor;
254
303
  return componentTokensCopy;
255
304
  };
256
305
 
@@ -31,7 +31,7 @@ var _Typography = _interopRequireDefault(require("../typography/Typography"));
31
31
 
32
32
  var _uuid = require("uuid");
33
33
 
34
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
34
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
35
35
 
36
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
37
 
@@ -110,7 +110,7 @@ var DxcAccordion = function DxcAccordion(_ref) {
110
110
  disabled: disabled
111
111
  }, /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, icon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
112
112
  disabled: disabled
113
- }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement(IconImg, {
113
+ }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
114
114
  src: icon
115
115
  }) : icon), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
116
116
  color: disabled ? colorsTheme.accordion.disabledTitleLabelFontColor : colorsTheme.accordion.titleLabelFontColor,
@@ -195,25 +195,19 @@ var AccordionLabel = _styledComponents["default"].span(_templateObject5 || (_tem
195
195
  return props.theme.titleLabelPaddingLeft;
196
196
  });
197
197
 
198
- var IconContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: ", ";\n width: ", ";\n margin-left: ", ";\n margin-right: ", ";\n color: ", ";\n"])), function (props) {
199
- return props.theme.iconSize;
200
- }, function (props) {
201
- return props.theme.iconSize;
202
- }, function (props) {
198
+ var IconContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n margin-left: ", ";\n margin-right: ", ";\n color: ", ";\n\n svg,\n img {\n height: ", ";\n width: ", ";\n }\n"])), function (props) {
203
199
  return props.theme.iconMarginLeft;
204
200
  }, function (props) {
205
201
  return props.theme.iconMarginRigth;
206
202
  }, function (props) {
207
203
  return props.disabled ? props.theme.disabledIconColor : props.theme.iconColor;
208
- });
209
-
210
- var IconImg = _styledComponents["default"].img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n"])), function (props) {
204
+ }, function (props) {
211
205
  return props.theme.iconSize;
212
206
  }, function (props) {
213
207
  return props.theme.iconSize;
214
208
  });
215
209
 
216
- var AccordionAssistiveText = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n min-width: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"])), function (props) {
210
+ var AccordionAssistiveText = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n min-width: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"])), function (props) {
217
211
  return props.theme.assistiveTextMinWidth;
218
212
  }, function (props) {
219
213
  return props.theme.assistiveTextPaddingLeft;
@@ -221,11 +215,11 @@ var AccordionAssistiveText = _styledComponents["default"].span(_templateObject8
221
215
  return props.theme.assistiveTextPaddingRight;
222
216
  });
223
217
 
224
- var CollapseIndicator = _styledComponents["default"].span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n color: ", ";\n"])), function (props) {
218
+ var CollapseIndicator = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n color: ", ";\n"])), function (props) {
225
219
  return props.disabled ? props.theme.disabledArrowColor : props.theme.arrowColor;
226
220
  });
227
221
 
228
- var AccordionPanel = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (props) {
222
+ var AccordionPanel = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (props) {
229
223
  return props.theme.borderRadius;
230
224
  }, function (props) {
231
225
  return props.theme.borderRadius;
@@ -30,10 +30,33 @@ const folderIcon = (
30
30
  </svg>
31
31
  );
32
32
 
33
- const thumbIcon = (
34
- <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="currentColor">
35
- <path d="M0 0h24v24H0V0z" fill="none" />
36
- <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z" />
33
+ const smallIcon = (
34
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" height="20" width="20">
35
+ <path d="m7.646 18.333-.313-2.625q-.208-.125-.458-.27-.25-.146-.458-.271l-2.438 1.021-2.354-4.063 2.083-1.583V9.458L1.625 7.875l2.354-4.063 2.438 1.021q.208-.125.458-.27.25-.146.458-.271l.313-2.625h4.708l.313 2.625q.208.125.458.271.25.145.458.27l2.438-1.021 2.354 4.063-2.063 1.583v1.084l2.063 1.583-2.354 4.063-2.438-1.021q-.208.125-.458.271-.25.145-.458.27l-.313 2.625ZM10 12.979q1.229 0 2.104-.875T12.979 10q0-1.229-.875-2.104T10 7.021q-1.229 0-2.104.875T7.021 10q0 1.229.875 2.104t2.104.875Zm0-1.75q-.5 0-.865-.364-.364-.365-.364-.865t.364-.865q.365-.364.865-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.854 6.583h1.666l.25-2.166q.605-.167 1.167-.5.562-.334 1.021-.792l2.021.854.833-1.375-1.771-1.354q.104-.292.146-.604.042-.313.042-.646 0-.292-.042-.594t-.125-.635l1.771-1.375-.834-1.375-2.02.875q-.48-.479-1.032-.802-.552-.323-1.156-.49l-.271-2.187H9.167l-.271 2.187q-.604.167-1.156.49-.552.323-1.011.781l-2.021-.854-.833 1.375 1.75 1.354q-.083.333-.125.646-.042.312-.042.604t.042.594q.042.302.125.635l-1.75 1.375.833 1.375 2.021-.854q.459.458 1.011.781.552.323 1.156.49Z" />
36
+ </svg>
37
+ );
38
+
39
+ const facebookIcon = (
40
+ <svg
41
+ version="1.1"
42
+ id="Capa_1"
43
+ x="0px"
44
+ y="0px"
45
+ width="438.536px"
46
+ height="438.536px"
47
+ viewBox="0 0 438.536 438.536"
48
+ fill="currentColor"
49
+ >
50
+ <g>
51
+ <path
52
+ d="M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123
53
+ C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126
54
+ h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225
55
+ C438.532,59.576,430.49,40.204,414.41,24.123z M373.155,225.548h-49.963V406.84h-74.802V225.548H210.99V163.02h37.401v-37.402
56
+ c0-26.838,6.283-47.107,18.843-60.813c12.559-13.706,33.304-20.555,62.242-20.555h49.963v62.526h-31.401
57
+ c-10.663,0-17.467,1.853-20.417,5.568c-2.949,3.711-4.428,10.23-4.428,19.558v31.119h56.534L373.155,225.548z"
58
+ />
59
+ </g>
37
60
  </svg>
38
61
  );
39
62
 
@@ -47,6 +70,14 @@ const advancedTheme = {
47
70
  },
48
71
  };
49
72
 
73
+ const opinionatedTheme = {
74
+ accordion: {
75
+ accentColor: "#5f249f",
76
+ titleFontColor: "#000000",
77
+ assistiveTextFontColor: "#666666",
78
+ },
79
+ };
80
+
50
81
  export const Chromatic = () => (
51
82
  <>
52
83
  <Title title="Component anatomy" theme="light" level={2} />
@@ -78,8 +109,30 @@ export const Chromatic = () => (
78
109
  </DxcAccordion>
79
110
  </ExampleContainer>
80
111
  <ExampleContainer>
81
- <Title title="With bigger icon 48x48" theme="light" level={4} />
82
- <DxcAccordion label="Accordion" assistiveText="Assistive text" icon={thumbIcon}>
112
+ <Title title="With smaller icon" theme="light" level={4} />
113
+ <DxcAccordion label="Accordion" assistiveText="Assistive text" icon={smallIcon}>
114
+ <div>
115
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
116
+ lobortis eget.
117
+ </div>
118
+ </DxcAccordion>
119
+ </ExampleContainer>
120
+ <ExampleContainer>
121
+ <Title title="With bigger icon (SVG)" theme="light" level={4} />
122
+ <DxcAccordion label="AccordionTest" assistiveText="Assistive text" icon={facebookIcon}>
123
+ <div>
124
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
125
+ lobortis eget.
126
+ </div>
127
+ </DxcAccordion>
128
+ </ExampleContainer>
129
+ <ExampleContainer>
130
+ <Title title="With bigger icon (image)" theme="light" level={4} />
131
+ <DxcAccordion
132
+ label="Accordion"
133
+ assistiveText="Assistive text"
134
+ icon="https://developer.apple.com/design/human-interface-guidelines/foundations/app-icons/images/icon-and-image-large-icon-settings_2x.png"
135
+ >
83
136
  <div>
84
137
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
85
138
  lobortis eget.
@@ -134,12 +187,7 @@ export const Chromatic = () => (
134
187
  padding="medium"
135
188
  >
136
189
  <div style={{ display: "flex", flexDirection: "column", gap: "36px" }}>
137
- <DxcTextInput
138
- label="Label"
139
- helperText="HelperText"
140
- placeholder="Placeholder"
141
- size="fillParent"
142
- />
190
+ <DxcTextInput label="Label" helperText="HelperText" placeholder="Placeholder" size="fillParent" />
143
191
  <DxcButton label="Submit" size="medium" />
144
192
  </div>
145
193
  </DxcAccordion>
@@ -300,7 +348,48 @@ export const Chromatic = () => (
300
348
  lobortis eget.
301
349
  </div>
302
350
  </DxcAccordion>
303
- <hr />
351
+ </ExampleContainer>
352
+ <Title title="Opinionated theme" theme="light" level={2} />
353
+ <ExampleContainer>
354
+ <Title title="With assistive text and icon" theme="light" level={4} />
355
+ <HalstackProvider theme={opinionatedTheme}>
356
+ <DxcAccordion label="Accordion" assistiveText="Assistive text" icon={folderIcon}>
357
+ Content
358
+ </DxcAccordion>
359
+ </HalstackProvider>
360
+ </ExampleContainer>
361
+ <ExampleContainer pseudoState="pseudo-hover">
362
+ <Title title="Hovered" theme="light" level={4} />
363
+ <HalstackProvider theme={opinionatedTheme}>
364
+ <DxcAccordion label="Hovered">
365
+ <div>
366
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
367
+ leo lobortis eget.
368
+ </div>
369
+ </DxcAccordion>
370
+ </HalstackProvider>
371
+ </ExampleContainer>
372
+ <ExampleContainer pseudoState="pseudo-active">
373
+ <Title title="Active" theme="light" level={4} />
374
+ <HalstackProvider theme={opinionatedTheme}>
375
+ <DxcAccordion label="Active">
376
+ <div>
377
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
378
+ leo lobortis eget.
379
+ </div>
380
+ </DxcAccordion>
381
+ </HalstackProvider>
382
+ </ExampleContainer>
383
+ <ExampleContainer>
384
+ <Title title="Disabled" theme="light" level={4} />
385
+ <HalstackProvider theme={opinionatedTheme}>
386
+ <DxcAccordion label="Disabled" assistiveText="Assistive text" icon={folderIcon} disabled>
387
+ <div>
388
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
389
+ leo lobortis eget.
390
+ </div>
391
+ </DxcAccordion>
392
+ </HalstackProvider>
304
393
  </ExampleContainer>
305
394
  </>
306
395
  );