@dxc-technology/halstack-react 5.0.0 → 6.1.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 (161) hide show
  1. package/HalstackContext.d.ts +4 -2
  2. package/HalstackContext.js +110 -58
  3. package/accordion/Accordion.stories.tsx +1 -1
  4. package/accordion/types.d.ts +1 -1
  5. package/accordion-group/AccordionGroup.js +1 -0
  6. package/accordion-group/types.d.ts +1 -1
  7. package/alert/Alert.js +4 -1
  8. package/badge/Badge.d.ts +1 -1
  9. package/badge/Badge.js +5 -3
  10. package/badge/types.d.ts +1 -0
  11. package/bleed/Bleed.js +1 -34
  12. package/bleed/Bleed.stories.tsx +94 -95
  13. package/bleed/types.d.ts +1 -1
  14. package/box/Box.js +22 -32
  15. package/bulleted-list/BulletedList.d.ts +7 -0
  16. package/bulleted-list/BulletedList.js +123 -0
  17. package/bulleted-list/BulletedList.stories.tsx +200 -0
  18. package/bulleted-list/types.d.ts +11 -0
  19. package/{list → bulleted-list}/types.js +0 -0
  20. package/button/Button.js +46 -62
  21. package/button/Button.stories.tsx +9 -0
  22. package/button/types.d.ts +7 -7
  23. package/card/Card.js +34 -36
  24. package/checkbox/Checkbox.js +4 -1
  25. package/chip/types.d.ts +1 -1
  26. package/common/variables.js +224 -92
  27. package/date-input/DateInput.js +8 -5
  28. package/dialog/Dialog.js +52 -28
  29. package/dialog/Dialog.stories.tsx +1 -2
  30. package/dialog/Dialog.test.js +34 -4
  31. package/dialog/types.d.ts +2 -2
  32. package/dropdown/Dropdown.d.ts +1 -1
  33. package/dropdown/Dropdown.js +242 -246
  34. package/dropdown/Dropdown.stories.tsx +126 -63
  35. package/dropdown/Dropdown.test.js +510 -108
  36. package/dropdown/DropdownMenu.d.ts +4 -0
  37. package/dropdown/DropdownMenu.js +80 -0
  38. package/dropdown/DropdownMenuItem.d.ts +4 -0
  39. package/dropdown/DropdownMenuItem.js +92 -0
  40. package/dropdown/types.d.ts +25 -5
  41. package/file-input/FileInput.js +9 -6
  42. package/file-input/FileItem.js +7 -5
  43. package/flex/Flex.d.ts +4 -0
  44. package/flex/Flex.js +57 -0
  45. package/flex/Flex.stories.tsx +103 -0
  46. package/flex/types.d.ts +21 -0
  47. package/{radio → flex}/types.js +0 -0
  48. package/footer/Footer.js +7 -5
  49. package/footer/Icons.js +1 -1
  50. package/footer/types.d.ts +1 -1
  51. package/header/Header.js +80 -75
  52. package/header/Icons.js +2 -2
  53. package/header/types.d.ts +2 -2
  54. package/inset/Inset.js +1 -34
  55. package/inset/Inset.stories.tsx +36 -36
  56. package/inset/types.d.ts +1 -1
  57. package/layout/ApplicationLayout.d.ts +16 -6
  58. package/layout/ApplicationLayout.js +70 -117
  59. package/layout/ApplicationLayout.stories.tsx +83 -93
  60. package/layout/Icons.d.ts +5 -0
  61. package/layout/Icons.js +13 -2
  62. package/layout/SidenavContext.d.ts +5 -0
  63. package/layout/SidenavContext.js +19 -0
  64. package/layout/types.d.ts +18 -33
  65. package/link/Link.d.ts +3 -2
  66. package/link/Link.js +57 -70
  67. package/link/Link.stories.tsx +95 -53
  68. package/link/Link.test.js +7 -15
  69. package/link/types.d.ts +7 -23
  70. package/main.d.ts +7 -10
  71. package/main.js +38 -56
  72. package/number-input/types.d.ts +1 -1
  73. package/package.json +8 -6
  74. package/paginator/Paginator.js +17 -38
  75. package/paginator/Paginator.test.js +42 -0
  76. package/paragraph/Paragraph.d.ts +6 -0
  77. package/paragraph/Paragraph.js +38 -0
  78. package/paragraph/Paragraph.stories.tsx +44 -0
  79. package/password-input/PasswordInput.js +7 -4
  80. package/password-input/PasswordInput.test.js +1 -2
  81. package/password-input/types.d.ts +1 -1
  82. package/progress-bar/ProgressBar.d.ts +2 -2
  83. package/progress-bar/ProgressBar.js +57 -51
  84. package/progress-bar/ProgressBar.stories.jsx +13 -11
  85. package/progress-bar/ProgressBar.test.js +67 -22
  86. package/progress-bar/types.d.ts +3 -4
  87. package/quick-nav/QuickNav.js +74 -20
  88. package/quick-nav/QuickNav.stories.tsx +43 -16
  89. package/quick-nav/types.d.ts +4 -4
  90. package/radio-group/Radio.js +1 -1
  91. package/radio-group/RadioGroup.js +21 -20
  92. package/resultsetTable/ResultsetTable.test.js +42 -0
  93. package/select/Listbox.d.ts +1 -1
  94. package/select/Listbox.js +59 -8
  95. package/select/Select.js +78 -90
  96. package/select/Select.stories.tsx +145 -100
  97. package/select/Select.test.js +362 -244
  98. package/select/types.d.ts +2 -5
  99. package/sidenav/Sidenav.d.ts +6 -5
  100. package/sidenav/Sidenav.js +184 -52
  101. package/sidenav/Sidenav.stories.tsx +154 -156
  102. package/sidenav/Sidenav.test.js +25 -37
  103. package/sidenav/types.d.ts +50 -27
  104. package/slider/Slider.js +3 -3
  105. package/slider/Slider.test.js +37 -0
  106. package/spinner/Spinner.js +1 -1
  107. package/switch/Switch.d.ts +1 -1
  108. package/switch/Switch.js +113 -54
  109. package/switch/Switch.stories.tsx +8 -30
  110. package/switch/Switch.test.js +122 -8
  111. package/switch/types.d.ts +3 -4
  112. package/tabs/Tabs.stories.tsx +0 -6
  113. package/tabs/types.d.ts +1 -1
  114. package/tabs-nav/NavTabs.d.ts +8 -0
  115. package/tabs-nav/NavTabs.js +125 -0
  116. package/tabs-nav/NavTabs.stories.tsx +170 -0
  117. package/tabs-nav/NavTabs.test.js +82 -0
  118. package/tabs-nav/Tab.d.ts +4 -0
  119. package/tabs-nav/Tab.js +130 -0
  120. package/tabs-nav/types.d.ts +53 -0
  121. package/{row → tabs-nav}/types.js +0 -0
  122. package/tag/types.d.ts +1 -1
  123. package/text-input/Suggestion.d.ts +4 -0
  124. package/text-input/Suggestion.js +55 -0
  125. package/text-input/TextInput.js +58 -93
  126. package/text-input/TextInput.stories.tsx +1 -2
  127. package/text-input/TextInput.test.js +1 -1
  128. package/text-input/types.d.ts +14 -2
  129. package/textarea/Textarea.js +10 -19
  130. package/textarea/types.d.ts +1 -1
  131. package/toggle-group/types.d.ts +1 -1
  132. package/typography/Typography.d.ts +4 -0
  133. package/typography/Typography.js +131 -0
  134. package/typography/Typography.stories.tsx +198 -0
  135. package/typography/types.d.ts +18 -0
  136. package/{stack → typography}/types.js +0 -0
  137. package/useTranslatedLabels.d.ts +2 -0
  138. package/useTranslatedLabels.js +20 -0
  139. package/wizard/Wizard.js +36 -41
  140. package/wizard/Wizard.stories.tsx +20 -1
  141. package/wizard/types.d.ts +5 -4
  142. package/list/List.d.ts +0 -4
  143. package/list/List.js +0 -47
  144. package/list/List.stories.tsx +0 -95
  145. package/list/types.d.ts +0 -7
  146. package/radio/Radio.d.ts +0 -4
  147. package/radio/Radio.js +0 -173
  148. package/radio/Radio.stories.tsx +0 -192
  149. package/radio/Radio.test.js +0 -71
  150. package/radio/types.d.ts +0 -54
  151. package/row/Row.d.ts +0 -3
  152. package/row/Row.js +0 -127
  153. package/row/Row.stories.tsx +0 -237
  154. package/row/types.d.ts +0 -28
  155. package/stack/Stack.d.ts +0 -3
  156. package/stack/Stack.js +0 -97
  157. package/stack/Stack.stories.tsx +0 -164
  158. package/stack/types.d.ts +0 -24
  159. package/text/Text.d.ts +0 -7
  160. package/text/Text.js +0 -30
  161. package/text/Text.stories.tsx +0 -19
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
2
  declare const HalstackContext: React.Context<object>;
3
+ declare const HalstackLanguageContext: React.Context<object>;
3
4
  declare type HalstackProviderPropsType = {
4
5
  theme?: object;
5
6
  advancedTheme?: object;
7
+ labels?: object;
6
8
  children: React.ReactNode;
7
9
  };
8
- declare const HalstackProvider: ({ theme, advancedTheme, children }: HalstackProviderPropsType) => JSX.Element;
10
+ declare const HalstackProvider: ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType) => JSX.Element;
9
11
  export default HalstackContext;
10
- export { HalstackProvider };
12
+ export { HalstackProvider, HalstackLanguageContext };
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports["default"] = exports.HalstackProvider = void 0;
10
+ exports["default"] = exports.HalstackProvider = exports.HalstackLanguageContext = void 0;
11
11
 
12
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
13
 
@@ -29,6 +29,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
29
29
 
30
30
  var HalstackContext = /*#__PURE__*/_react["default"].createContext(null);
31
31
 
32
+ var HalstackLanguageContext = /*#__PURE__*/_react["default"].createContext(null);
33
+
34
+ exports.HalstackLanguageContext = HalstackLanguageContext;
35
+
32
36
  var addLightness = function addLightness(hexColor, newLightness) {
33
37
  try {
34
38
  if (hexColor) {
@@ -81,7 +85,7 @@ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
81
85
  };
82
86
 
83
87
  var parseTheme = function parseTheme(theme) {
84
- 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, _setOpacity2, _theme$accordion7, _setOpacity3, _theme$accordion8, _setOpacity4, _theme$accordion9, _setOpacity5, _theme$accordion10, _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, _setOpacity6, _theme$checkbox4, _setOpacity7, _theme$checkbox5, _setOpacity8, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _setOpacity9, _theme$chip2, _theme$chip$fontColor, _theme$chip3, _setOpacity10, _theme$chip4, _theme$dateInput$base, _theme$dateInput, _theme$dateInput$acce, _theme$dateInput2, _setOpacity11, _theme$dateInput3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _setOpacity12, _theme$dropdown3, _setOpacity13, _theme$dropdown4, _setOpacity14, _theme$dropdown5, _setOpacity15, _theme$dropdown6, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _setOpacity16, _theme$fileInput5, _setOpacity17, _theme$fileInput6, _setOpacity18, _theme$fileInput7, _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, _setOpacity19, _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$radio$baseColo, _theme$radio, _setOpacity20, _theme$radio2, _theme$select$baseCol, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _addLightness3, _theme$select4, _subLightness4, _theme$select5, _theme$sidenav$baseCo, _theme$sidenav, _setOpacity21, _theme$sidenav2, _theme$sidenav$arrowA, _theme$sidenav3, _theme$slider$baseCol, _theme$slider, _theme$slider$baseCol2, _theme$slider2, _theme$slider$baseCol3, _theme$slider3, _subLightness5, _theme$slider4, _subLightness6, _theme$slider5, _setOpacity22, _theme$slider6, _setOpacity23, _theme$slider7, _setOpacity24, _theme$slider8, _setOpacity25, _theme$slider9, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$switch$checked, _theme$switch, _setOpacity26, _theme$switch2, _theme$table$baseColo, _theme$table, _theme$table$fontColo, _theme$table2, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness4, _theme$tabs5, _addLightness5, _theme$tabs6, _theme$textInput$base, _theme$textInput, _subLightness7, _theme$textInput2, _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, _subLightness8, _theme$toggleGroup6, _subLightness9, _theme$toggleGroup7, _addLightness6, _theme$toggleGroup8, _addLightness7, _theme$toggleGroup9, _subLightness10, _theme$toggleGroup10, _addLightness8, _theme$toggleGroup11, _setOpacity27, _theme$toggleGroup12, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$fontCol, _theme$wizard2;
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, _theme$quickNav$accen, _theme$quickNav2, _setOpacity8, _theme$quickNav3, _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$fontCol, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol2, _theme$wizard4, _theme$wizard$fontCol3, _theme$wizard5, _theme$wizard$fontCol4, _theme$wizard6, _theme$wizard$fontCol5, _theme$wizard7, _setOpacity15, _theme$wizard8, _setOpacity16, _theme$wizard9, _setOpacity17, _theme$wizard10, _setOpacity18, _theme$wizard11;
85
89
 
86
90
  var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
87
91
  var accordionTokens = componentTokensCopy.accordion;
@@ -91,10 +95,6 @@ var parseTheme = function parseTheme(theme) {
91
95
  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;
92
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;
93
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;
94
- accordionTokens.disabledAssistiveTextFontColor = (_setOpacity2 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion7 = theme.accordion) === null || _theme$accordion7 === void 0 ? void 0 : _theme$accordion7.fontColor, 0.34)) !== null && _setOpacity2 !== void 0 ? _setOpacity2 : accordionTokens.disabledAssistiveTextFontColor;
95
- accordionTokens.disabledTitleLabelFontColor = (_setOpacity3 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion8 = theme.accordion) === null || _theme$accordion8 === void 0 ? void 0 : _theme$accordion8.fontColor, 0.34)) !== null && _setOpacity3 !== void 0 ? _setOpacity3 : accordionTokens.disabledTitleLabelFontColor;
96
- accordionTokens.disabledArrowColor = (_setOpacity4 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion9 = theme.accordion) === null || _theme$accordion9 === void 0 ? void 0 : _theme$accordion9.accentColor, 0.34)) !== null && _setOpacity4 !== void 0 ? _setOpacity4 : accordionTokens.disabledArrowColor;
97
- accordionTokens.disabledIconColor = (_setOpacity5 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion10 = theme.accordion) === null || _theme$accordion10 === void 0 ? void 0 : _theme$accordion10.accentColor, 0.34)) !== null && _setOpacity5 !== void 0 ? _setOpacity5 : accordionTokens.disabledIconColor;
98
98
  var buttonTokens = componentTokensCopy.button;
99
99
  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
100
  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;
@@ -112,33 +112,33 @@ var parseTheme = function parseTheme(theme) {
112
112
  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
113
  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;
114
114
  checkboxTokens.checkColor = (_theme$checkbox$check = theme === null || theme === void 0 ? void 0 : (_theme$checkbox3 = theme.checkbox) === null || _theme$checkbox3 === void 0 ? void 0 : _theme$checkbox3.checkColor) !== null && _theme$checkbox$check !== void 0 ? _theme$checkbox$check : checkboxTokens.checkColor;
115
- checkboxTokens.disabledBackgroundColorChecked = (_setOpacity6 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox4 = theme.checkbox) === null || _theme$checkbox4 === void 0 ? void 0 : _theme$checkbox4.baseColor, 0.34)) !== null && _setOpacity6 !== void 0 ? _setOpacity6 : checkboxTokens.disabledBackgroundColorChecked;
116
- checkboxTokens.disabledBorderColor = (_setOpacity7 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox5 = theme.checkbox) === null || _theme$checkbox5 === void 0 ? void 0 : _theme$checkbox5.baseColor, 0.34)) !== null && _setOpacity7 !== void 0 ? _setOpacity7 : checkboxTokens.disabledBorderColor;
117
- checkboxTokens.disabledCheckColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox6 = theme.checkbox) === null || _theme$checkbox6 === void 0 ? void 0 : _theme$checkbox6.checkColor, 0.34)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : checkboxTokens.disabledCheckColor;
115
+ checkboxTokens.fontColor = (_theme$checkbox$fontC = theme === null || theme === void 0 ? void 0 : (_theme$checkbox4 = theme.checkbox) === null || _theme$checkbox4 === void 0 ? void 0 : _theme$checkbox4.fontColor) !== null && _theme$checkbox$fontC !== void 0 ? _theme$checkbox$fontC : checkboxTokens.fontColor;
116
+ checkboxTokens.hoverBackgroundColorChecked = (_subLightness4 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$checkbox5 = theme.checkbox) === null || _theme$checkbox5 === void 0 ? void 0 : _theme$checkbox5.baseColor, 15)) !== null && _subLightness4 !== void 0 ? _subLightness4 : checkboxTokens.hoverBackgroundColorChecked;
117
+ checkboxTokens.hoverBorderColor = (_subLightness5 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$checkbox6 = theme.checkbox) === null || _theme$checkbox6 === void 0 ? void 0 : _theme$checkbox6.baseColor, 15)) !== null && _subLightness5 !== void 0 ? _subLightness5 : checkboxTokens.hoverBorderColor;
118
118
  var chipTokens = componentTokensCopy.chip;
119
119
  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
- chipTokens.disabledBackgroundColor = (_setOpacity9 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$chip2 = theme.chip) === null || _theme$chip2 === void 0 ? void 0 : _theme$chip2.baseColor, 0.34)) !== null && _setOpacity9 !== void 0 ? _setOpacity9 : chipTokens.disabledBackgroundColor;
121
- chipTokens.fontColor = (_theme$chip$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$chip3 = theme.chip) === null || _theme$chip3 === void 0 ? void 0 : _theme$chip3.fontColor) !== null && _theme$chip$fontColor !== void 0 ? _theme$chip$fontColor : chipTokens.fontColor;
122
- chipTokens.disabledFontColor = (_setOpacity10 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$chip4 = theme.chip) === null || _theme$chip4 === void 0 ? void 0 : _theme$chip4.fontColor, 0.34)) !== null && _setOpacity10 !== void 0 ? _setOpacity10 : chipTokens.disabledFontColor;
120
+ 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;
123
122
  var dateTokens = componentTokensCopy.dateInput;
124
- dateTokens.pickerSelectedDateBackgroundColor = (_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.pickerSelectedDateBackgroundColor;
125
- dateTokens.pickerSelectedDateColor = (_theme$dateInput$acce = theme === null || theme === void 0 ? void 0 : (_theme$dateInput2 = theme.dateInput) === null || _theme$dateInput2 === void 0 ? void 0 : _theme$dateInput2.accentColor) !== null && _theme$dateInput$acce !== void 0 ? _theme$dateInput$acce : dateTokens.pickerSelectedDateColor;
126
- dateTokens.pickerHoverDateBackgroundColor = (_setOpacity11 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dateInput3 = theme.dateInput) === null || _theme$dateInput3 === void 0 ? void 0 : _theme$dateInput3.baseColor, 0.34)) !== null && _setOpacity11 !== void 0 ? _setOpacity11 : dateTokens.pickerHoverDateBackgroundColor;
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;
127
126
  var dropdownTokens = componentTokensCopy.dropdown;
128
127
  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;
129
128
  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;
130
- dropdownTokens.hoverButtonBackgroundColor = (_setOpacity12 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown3 = theme.dropdown) === null || _theme$dropdown3 === void 0 ? void 0 : _theme$dropdown3.baseColor, 0.34)) !== null && _setOpacity12 !== void 0 ? _setOpacity12 : dropdownTokens.hoverButtonBackgroundColor;
131
- dropdownTokens.activeButtonBackgroundColor = (_setOpacity13 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown4 = theme.dropdown) === null || _theme$dropdown4 === void 0 ? void 0 : _theme$dropdown4.baseColor, 0.7)) !== null && _setOpacity13 !== void 0 ? _setOpacity13 : dropdownTokens.activeButtonBackgroundColor;
132
- dropdownTokens.hoverOptionBackgroundColor = (_setOpacity14 = 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 && _setOpacity14 !== void 0 ? _setOpacity14 : dropdownTokens.hoverOptionBackgroundColor;
133
- dropdownTokens.activeOptionBackgroundColor = (_setOpacity15 = 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 && _setOpacity15 !== void 0 ? _setOpacity15 : dropdownTokens.activeOptionBackgroundColor;
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;
134
137
  var fileInputTokens = componentTokensCopy.fileInput;
135
138
  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;
136
139
  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;
137
140
  fileInputTokens.dropLabelFontColor = (_theme$fileInput$font3 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput3 = theme.fileInput) === null || _theme$fileInput3 === void 0 ? void 0 : _theme$fileInput3.fontColor) !== null && _theme$fileInput$font3 !== void 0 ? _theme$fileInput$font3 : fileInputTokens.dropLabelFontColor;
138
141
  fileInputTokens.fileNameFontColor = (_theme$fileInput$font4 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput4 = theme.fileInput) === null || _theme$fileInput4 === void 0 ? void 0 : _theme$fileInput4.fontColor) !== null && _theme$fileInput$font4 !== void 0 ? _theme$fileInput$font4 : fileInputTokens.fileNameFontColor;
139
- fileInputTokens.disabledLabelFontColor = (_setOpacity16 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput5 = theme.fileInput) === null || _theme$fileInput5 === void 0 ? void 0 : _theme$fileInput5.fontColor, 0.34)) !== null && _setOpacity16 !== void 0 ? _setOpacity16 : fileInputTokens.disabledLabelFontColor;
140
- fileInputTokens.disabledHelperTextFontcolor = (_setOpacity17 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput6 = theme.fileInput) === null || _theme$fileInput6 === void 0 ? void 0 : _theme$fileInput6.fontColor, 0.34)) !== null && _setOpacity17 !== void 0 ? _setOpacity17 : fileInputTokens.disabledHelperTextFontcolor;
141
- fileInputTokens.disabledDropLabelFontColor = (_setOpacity18 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput7 = theme.fileInput) === null || _theme$fileInput7 === void 0 ? void 0 : _theme$fileInput7.fontColor, 0.34)) !== null && _setOpacity18 !== void 0 ? _setOpacity18 : fileInputTokens.disabledDropLabelFontColor;
142
142
  var footerTokens = componentTokensCopy.footer;
143
143
  footerTokens.backgroundColor = (_theme$footer$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$footer = theme.footer) === null || _theme$footer === void 0 ? void 0 : _theme$footer.baseColor) !== null && _theme$footer$baseCol !== void 0 ? _theme$footer$baseCol : footerTokens.backgroundColor;
144
144
  footerTokens.bottomLinksFontColor = (_theme$footer$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$footer2 = theme.footer) === null || _theme$footer2 === void 0 ? void 0 : _theme$footer2.fontColor) !== null && _theme$footer$fontCol !== void 0 ? _theme$footer$fontCol : footerTokens.bottomLinksFontColor;
@@ -152,7 +152,7 @@ var parseTheme = function parseTheme(theme) {
152
152
  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
153
  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
154
  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 = (_setOpacity19 = 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 && _setOpacity19 !== void 0 ? _setOpacity19 : headerTokens.hamburguerHoverColor;
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;
156
156
  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
157
  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
158
  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;
@@ -162,77 +162,129 @@ var parseTheme = function parseTheme(theme) {
162
162
  var progressBarTokens = componentTokensCopy.progressBar;
163
163
  progressBarTokens.trackLineColor = (_theme$progressBar$ac = theme === null || theme === void 0 ? void 0 : (_theme$progressBar = theme.progressBar) === null || _theme$progressBar === void 0 ? void 0 : _theme$progressBar.accentColor) !== null && _theme$progressBar$ac !== void 0 ? _theme$progressBar$ac : progressBarTokens.trackLineColor;
164
164
  progressBarTokens.totalLineColor = (_theme$progressBar$ba = theme === null || theme === void 0 ? void 0 : (_theme$progressBar2 = theme.progressBar) === null || _theme$progressBar2 === void 0 ? void 0 : _theme$progressBar2.baseColor) !== null && _theme$progressBar$ba !== void 0 ? _theme$progressBar$ba : progressBarTokens.totalLineColor;
165
- var radioTokens = componentTokensCopy.radio;
166
- radioTokens.color = (_theme$radio$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$radio = theme.radio) === null || _theme$radio === void 0 ? void 0 : _theme$radio.baseColor) !== null && _theme$radio$baseColo !== void 0 ? _theme$radio$baseColo : radioTokens.color;
167
- radioTokens.disabledColor = (_setOpacity20 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$radio2 = theme.radio) === null || _theme$radio2 === void 0 ? void 0 : _theme$radio2.baseColor, 0.34)) !== null && _setOpacity20 !== void 0 ? _setOpacity20 : radioTokens.disabledColor;
165
+ 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
+ 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
+ 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;
168
+ var quickNavTokens = componentTokensCopy.quickNav;
169
+ 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.selectedFontColor = (_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.selectedFontColor;
171
+ quickNavTokens.hoverFontColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$quickNav3 = theme.quickNav) === null || _theme$quickNav3 === void 0 ? void 0 : _theme$quickNav3.accentColor, 0.7)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : quickNavTokens.hoverFontColor;
172
+ var radioGroupTokens = componentTokensCopy.radioGroup;
173
+ 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;
174
+ 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;
175
+ 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;
176
+ 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;
168
177
  var selectTokens = componentTokensCopy.select;
169
- selectTokens.selectedOptionBackgroundColor = (_theme$select$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$select = theme.select) === null || _theme$select === void 0 ? void 0 : _theme$select.baseColor) !== null && _theme$select$baseCol !== void 0 ? _theme$select$baseCol : selectTokens.selectedOptionBackgroundColor;
170
- selectTokens.optionFontColor = (_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.optionFontColor;
171
- selectTokens.valueFontColor = (_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.valueFontColor;
172
- selectTokens.hoverOptionBackgroundColor = (_addLightness3 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$select4 = theme.select) === null || _theme$select4 === void 0 ? void 0 : _theme$select4.baseColor, 10)) !== null && _addLightness3 !== void 0 ? _addLightness3 : selectTokens.hoverOptionBackgroundColor;
173
- selectTokens.activeOptionBackgroundColor = (_subLightness4 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select5 = theme.select) === null || _theme$select5 === void 0 ? void 0 : _theme$select5.baseColor, 15)) !== null && _subLightness4 !== void 0 ? _subLightness4 : selectTokens.activeOptionBackgroundColor;
178
+ 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;
179
+ 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;
180
+ 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;
181
+ 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;
182
+ 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;
183
+ 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;
184
+ 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;
185
+ 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;
186
+ 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;
174
187
  var sideNavTokens = componentTokensCopy.sidenav;
175
188
  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;
176
- sideNavTokens.arrowContainerColor = (_setOpacity21 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$sidenav2 = theme.sidenav) === null || _theme$sidenav2 === void 0 ? void 0 : _theme$sidenav2.arrowBaseColor, 0.8)) !== null && _setOpacity21 !== void 0 ? _setOpacity21 : sideNavTokens.arrowContainerColor;
177
- sideNavTokens.arrowColor = (_theme$sidenav$arrowA = theme === null || theme === void 0 ? void 0 : (_theme$sidenav3 = theme.sidenav) === null || _theme$sidenav3 === void 0 ? void 0 : _theme$sidenav3.arrowAccentColor) !== null && _theme$sidenav$arrowA !== void 0 ? _theme$sidenav$arrowA : sideNavTokens.arrowColor;
178
189
  var sliderTokens = componentTokensCopy.slider;
179
- sliderTokens.thumbBackgroundColor = (_theme$slider$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$slider = theme.slider) === null || _theme$slider === void 0 ? void 0 : _theme$slider.baseColor) !== null && _theme$slider$baseCol !== void 0 ? _theme$slider$baseCol : sliderTokens.thumbBackgroundColor;
180
- sliderTokens.tickBackgroundColor = (_theme$slider$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$slider2 = theme.slider) === null || _theme$slider2 === void 0 ? void 0 : _theme$slider2.baseColor) !== null && _theme$slider$baseCol2 !== void 0 ? _theme$slider$baseCol2 : sliderTokens.tickBackgroundColor;
181
- sliderTokens.trackLineColor = (_theme$slider$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$slider3 = theme.slider) === null || _theme$slider3 === void 0 ? void 0 : _theme$slider3.baseColor) !== null && _theme$slider$baseCol3 !== void 0 ? _theme$slider$baseCol3 : sliderTokens.trackLineColor;
182
- sliderTokens.hoverThumbBackgroundColor = (_subLightness5 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider4 = theme.slider) === null || _theme$slider4 === void 0 ? void 0 : _theme$slider4.baseColor, 15)) !== null && _subLightness5 !== void 0 ? _subLightness5 : sliderTokens.thumbBackgroundColor;
183
- sliderTokens.activeThumbBackgroundColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider5 = theme.slider) === null || _theme$slider5 === void 0 ? void 0 : _theme$slider5.baseColor, 15)) !== null && _subLightness6 !== void 0 ? _subLightness6 : sliderTokens.thumbBackgroundColor;
184
- sliderTokens.totalLineColor = (_setOpacity22 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider6 = theme.slider) === null || _theme$slider6 === void 0 ? void 0 : _theme$slider6.baseColor, 0.34)) !== null && _setOpacity22 !== void 0 ? _setOpacity22 : sliderTokens.totalLineColor;
185
- sliderTokens.disabledThumbBackgroundColor = (_setOpacity23 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider7 = theme.slider) === null || _theme$slider7 === void 0 ? void 0 : _theme$slider7.baseColor, 0.34)) !== null && _setOpacity23 !== void 0 ? _setOpacity23 : sliderTokens.disabledThumbBackgroundColor;
186
- sliderTokens.disabledTickBackgroundColor = (_setOpacity24 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.baseColor, 0.34)) !== null && _setOpacity24 !== void 0 ? _setOpacity24 : sliderTokens.disabledTickBackgroundColor;
187
- sliderTokens.disabledTrackLineColor = (_setOpacity25 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor, 0.34)) !== null && _setOpacity25 !== void 0 ? _setOpacity25 : sliderTokens.disabledTrackLineColor;
190
+ sliderTokens.labelFontColor = (_theme$slider$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$slider = theme.slider) === null || _theme$slider === void 0 ? void 0 : _theme$slider.fontColor) !== null && _theme$slider$fontCol !== void 0 ? _theme$slider$fontCol : sliderTokens.labelFontColor;
191
+ sliderTokens.helperTextFontColor = (_theme$slider$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$slider2 = theme.slider) === null || _theme$slider2 === void 0 ? void 0 : _theme$slider2.fontColor) !== null && _theme$slider$fontCol2 !== void 0 ? _theme$slider$fontCol2 : sliderTokens.helperTextFontColor;
192
+ sliderTokens.limitValuesFontColor = (_theme$slider$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$slider3 = theme.slider) === null || _theme$slider3 === void 0 ? void 0 : _theme$slider3.fontColor) !== null && _theme$slider$fontCol3 !== void 0 ? _theme$slider$fontCol3 : sliderTokens.limitValuesFontColor;
193
+ sliderTokens.thumbBackgroundColor = (_theme$slider$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$slider4 = theme.slider) === null || _theme$slider4 === void 0 ? void 0 : _theme$slider4.baseColor) !== null && _theme$slider$baseCol !== void 0 ? _theme$slider$baseCol : sliderTokens.thumbBackgroundColor;
194
+ 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;
195
+ 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;
196
+ 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;
197
+ 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;
198
+ 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;
199
+ 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;
188
200
  var spinnerTokens = componentTokensCopy.spinner;
189
201
  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;
190
202
  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;
203
+ 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;
204
+ 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;
191
205
  var switchTokens = componentTokensCopy["switch"];
192
206
  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;
193
- switchTokens.disabledCheckedTrackBackgroundColor = (_setOpacity26 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$switch2 = theme["switch"]) === null || _theme$switch2 === void 0 ? void 0 : _theme$switch2.checkedBaseColor, 0.34)) !== null && _setOpacity26 !== void 0 ? _setOpacity26 : switchTokens.disabledCheckedTrackBackgroundColor;
207
+ 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;
208
+ 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;
194
209
  var tableTokens = componentTokensCopy.table;
195
210
  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;
196
- tableTokens.headerFontColor = (_theme$table$fontColo = theme === null || theme === void 0 ? void 0 : (_theme$table2 = theme.table) === null || _theme$table2 === void 0 ? void 0 : _theme$table2.fontColor) !== null && _theme$table$fontColo !== void 0 ? _theme$table$fontColo : tableTokens.headerFontColor;
211
+ 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;
212
+ tableTokens.dataFontColor = (_theme$table$cellFont = theme === null || theme === void 0 ? void 0 : (_theme$table3 = theme.table) === null || _theme$table3 === void 0 ? void 0 : _theme$table3.cellFontColor) !== null && _theme$table$cellFont !== void 0 ? _theme$table$cellFont : tableTokens.dataFontColor;
213
+ tableTokens.sortIconColor = (_theme$table$headerFo2 = theme === null || theme === void 0 ? void 0 : (_theme$table4 = theme.table) === null || _theme$table4 === void 0 ? void 0 : _theme$table4.headerFontColor) !== null && _theme$table$headerFo2 !== void 0 ? _theme$table$headerFo2 : tableTokens.sortIconColor;
197
214
  var tabsTokens = componentTokensCopy.tabs;
198
215
  tabsTokens.selectedFontColor = (_theme$tabs$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$tabs = theme.tabs) === null || _theme$tabs === void 0 ? void 0 : _theme$tabs.baseColor) !== null && _theme$tabs$baseColor !== void 0 ? _theme$tabs$baseColor : tabsTokens.selectedFontColor;
199
216
  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;
200
217
  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;
201
218
  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;
202
- tabsTokens.hoverBackgroundColor = (_addLightness4 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs5 = theme.tabs) === null || _theme$tabs5 === void 0 ? void 0 : _theme$tabs5.baseColor, 58)) !== null && _addLightness4 !== void 0 ? _addLightness4 : tabsTokens.hoverBackgroundColor;
203
- tabsTokens.pressedBackgroundColor = (_addLightness5 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs6 = theme.tabs) === null || _theme$tabs6 === void 0 ? void 0 : _theme$tabs6.baseColor, 53)) !== null && _addLightness5 !== void 0 ? _addLightness5 : tabsTokens.pressedBackgroundColor;
219
+ 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;
220
+ 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;
204
221
  var textInputTokens = componentTokensCopy.textInput;
205
- textInputTokens.hoverListOptionBackgroundColor = (_theme$textInput$base = theme === null || theme === void 0 ? void 0 : (_theme$textInput = theme.textInput) === null || _theme$textInput === void 0 ? void 0 : _theme$textInput.baseColor) !== null && _theme$textInput$base !== void 0 ? _theme$textInput$base : textInputTokens.hoverListOptionBackgroundColor;
206
- textInputTokens.activeListOptionBackgroundColor = (_subLightness7 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$textInput2 = theme.textInput) === null || _theme$textInput2 === void 0 ? void 0 : _theme$textInput2.baseColor, 15)) !== null && _subLightness7 !== void 0 ? _subLightness7 : textInputTokens.activeListOptionBackgroundColor;
222
+ 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;
223
+ 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;
224
+ textInputTokens.valueFontColor = (_theme$textInput$font3 = theme === null || theme === void 0 ? void 0 : (_theme$textInput3 = theme.textInput) === null || _theme$textInput3 === void 0 ? void 0 : _theme$textInput3.fontColor) !== null && _theme$textInput$font3 !== void 0 ? _theme$textInput$font3 : textInputTokens.valueFontColor;
225
+ textInputTokens.actionIconColor = (_theme$textInput$font4 = theme === null || theme === void 0 ? void 0 : (_theme$textInput4 = theme.textInput) === null || _theme$textInput4 === void 0 ? void 0 : _theme$textInput4.fontColor) !== null && _theme$textInput$font4 !== void 0 ? _theme$textInput$font4 : textInputTokens.actionIconColor;
226
+ 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;
227
+ 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;
228
+ 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;
229
+ 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;
230
+ 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;
231
+ 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;
207
232
  var toggleGroupTokens = componentTokensCopy.toggleGroup;
208
233
  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;
209
234
  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;
210
235
  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;
211
236
  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;
212
237
  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;
213
- toggleGroupTokens.selectedHoverBackgroundColor = (_subLightness8 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup6 = theme.toggleGroup) === null || _theme$toggleGroup6 === void 0 ? void 0 : _theme$toggleGroup6.selectedBaseColor, 8)) !== null && _subLightness8 !== void 0 ? _subLightness8 : buttonTokens.selectedHoverBackgroundColor;
214
- toggleGroupTokens.selectedActiveBackgroundColor = (_subLightness9 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup7 = theme.toggleGroup) === null || _theme$toggleGroup7 === void 0 ? void 0 : _theme$toggleGroup7.selectedBaseColor, 18)) !== null && _subLightness9 !== void 0 ? _subLightness9 : toggleGroupTokens.selectedActiveBackgroundColor;
215
- toggleGroupTokens.selectedDisabledBackgroundColor = (_addLightness6 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup8 = theme.toggleGroup) === null || _theme$toggleGroup8 === void 0 ? void 0 : _theme$toggleGroup8.selectedBaseColor, 57)) !== null && _addLightness6 !== void 0 ? _addLightness6 : toggleGroupTokens.selectedDisabledBackgroundColor;
216
- toggleGroupTokens.selectedDisabledFontColor = (_addLightness7 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedFontColor, 42)) !== null && _addLightness7 !== void 0 ? _addLightness7 : toggleGroupTokens.selectedDisabledFontColor;
217
- toggleGroupTokens.unselectedHoverBackgroundColor = (_subLightness10 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup10 = theme.toggleGroup) === null || _theme$toggleGroup10 === void 0 ? void 0 : _theme$toggleGroup10.unselectedBaseColor, 8)) !== null && _subLightness10 !== void 0 ? _subLightness10 : toggleGroupTokens.unselectedHoverBackgroundColor;
218
- toggleGroupTokens.unselectedDisabledBackgroundColor = (_addLightness8 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup11 = theme.toggleGroup) === null || _theme$toggleGroup11 === void 0 ? void 0 : _theme$toggleGroup11.unselectedBaseColor, 5)) !== null && _addLightness8 !== void 0 ? _addLightness8 : toggleGroupTokens.unselectedDisabledBackgroundColor;
219
- toggleGroupTokens.unselectedDisabledFontColor = (_setOpacity27 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup12 = theme.toggleGroup) === null || _theme$toggleGroup12 === void 0 ? void 0 : _theme$toggleGroup12.unselectedFontColor, 0.34)) !== null && _setOpacity27 !== void 0 ? _setOpacity27 : toggleGroupTokens.unselectedDisabledFontColor;
238
+ 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;
239
+ 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;
240
+ 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;
241
+ 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;
242
+ 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;
220
243
  var wizardTokens = componentTokensCopy.wizard;
221
- wizardTokens.stepContainerSelectedBackgroundColor = (_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.stepContainerSelectedBackgroundColor;
222
- wizardTokens.stepContainerSelectedFontColor = (_theme$wizard$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.fontColor) !== null && _theme$wizard$fontCol !== void 0 ? _theme$wizard$fontCol : wizardTokens.stepContainerSelectedFontColor;
244
+ 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;
245
+ wizardTokens.selectedStepFontColor = (_theme$wizard$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.fontColor) !== null && _theme$wizard$fontCol !== void 0 ? _theme$wizard$fontCol : wizardTokens.selectedStepFontColor;
246
+ 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;
247
+ wizardTokens.visitedLabelFontColor = (_theme$wizard$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$wizard4 = theme.wizard) === null || _theme$wizard4 === void 0 ? void 0 : _theme$wizard4.fontColor) !== null && _theme$wizard$fontCol2 !== void 0 ? _theme$wizard$fontCol2 : wizardTokens.visitedLabelFontColor;
248
+ wizardTokens.selectedLabelFontColor = (_theme$wizard$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$wizard5 = theme.wizard) === null || _theme$wizard5 === void 0 ? void 0 : _theme$wizard5.fontColor) !== null && _theme$wizard$fontCol3 !== void 0 ? _theme$wizard$fontCol3 : wizardTokens.selectedLabelFontColor;
249
+ wizardTokens.visitedHelperTextFontColor = (_theme$wizard$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$wizard6 = theme.wizard) === null || _theme$wizard6 === void 0 ? void 0 : _theme$wizard6.fontColor) !== null && _theme$wizard$fontCol4 !== void 0 ? _theme$wizard$fontCol4 : wizardTokens.visitedHelperTextFontColor;
250
+ wizardTokens.selectedHelperTextFontColor = (_theme$wizard$fontCol5 = theme === null || theme === void 0 ? void 0 : (_theme$wizard7 = theme.wizard) === null || _theme$wizard7 === void 0 ? void 0 : _theme$wizard7.fontColor) !== null && _theme$wizard$fontCol5 !== void 0 ? _theme$wizard$fontCol5 : wizardTokens.selectedHelperTextFontColor;
251
+ 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;
252
+ 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;
253
+ 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;
254
+ 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;
223
255
  return componentTokensCopy;
224
256
  };
225
257
 
258
+ var parseLabels = function parseLabels(labels) {
259
+ var parsedLabels = _variables.defaultTranslatedComponentLabels;
260
+ Object.keys(labels).map(function (component) {
261
+ if (parsedLabels[component]) {
262
+ Object.keys(parsedLabels[component]).map(function (label) {
263
+ if (labels[component][label]) {
264
+ parsedLabels[component][label] = labels[component][label];
265
+ }
266
+ });
267
+ }
268
+ });
269
+ return parsedLabels;
270
+ };
271
+
226
272
  var HalstackProvider = function HalstackProvider(_ref) {
227
273
  var theme = _ref.theme,
228
274
  advancedTheme = _ref.advancedTheme,
275
+ labels = _ref.labels,
229
276
  children = _ref.children;
230
277
  var parsedTheme = (0, _react.useMemo)(function () {
231
278
  return theme && parseTheme(theme) || advancedTheme && parseAdvancedTheme(advancedTheme);
232
279
  }, [theme, advancedTheme]);
280
+ var parsedLabels = (0, _react.useMemo)(function () {
281
+ return labels && parseLabels(labels) || _variables.defaultTranslatedComponentLabels;
282
+ }, [labels]);
233
283
  return /*#__PURE__*/_react["default"].createElement(Halstack, null, /*#__PURE__*/_react["default"].createElement(HalstackContext.Provider, {
234
284
  value: parsedTheme
235
- }, children));
285
+ }, /*#__PURE__*/_react["default"].createElement(HalstackLanguageContext.Provider, {
286
+ value: parsedLabels
287
+ }, children)));
236
288
  };
237
289
 
238
290
  exports.HalstackProvider = HalstackProvider;
@@ -15,7 +15,7 @@ export default {
15
15
  const folderIcon = (
16
16
  <svg
17
17
  xmlns="http://www.w3.org/2000/svg"
18
- enable-background="new 0 0 24 24"
18
+ enableBackground="new 0 0 24 24"
19
19
  height="24px"
20
20
  viewBox="0 0 24 24"
21
21
  width="24px"
@@ -12,7 +12,7 @@ declare type Padding = {
12
12
  left?: Space;
13
13
  right?: Space;
14
14
  };
15
- declare type SVG = React.SVGProps<SVGSVGElement>;
15
+ declare type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
16
16
  declare type Props = {
17
17
  /**
18
18
  * The panel label.
@@ -98,6 +98,7 @@ var DxcAccordionGroup = function DxcAccordionGroup(_ref2) {
98
98
  return child.type === AccordionGroupAccordion;
99
99
  }).map(function (accordion, index) {
100
100
  return /*#__PURE__*/_react["default"].createElement(AccordionGroupAccordionContext.Provider, {
101
+ key: "accordion-".concat(index),
101
102
  value: _objectSpread({
102
103
  index: index
103
104
  }, contextValue)
@@ -12,7 +12,7 @@ declare type Padding = {
12
12
  left?: Space;
13
13
  right?: Space;
14
14
  };
15
- declare type SVG = React.SVGProps<SVGSVGElement>;
15
+ declare type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
16
16
  export declare type AccordionPropsType = {
17
17
  /**
18
18
  * The panel label.
package/alert/Alert.js CHANGED
@@ -23,6 +23,8 @@ var _utils = require("../common/utils.js");
23
23
 
24
24
  var _useTheme = _interopRequireDefault(require("../useTheme"));
25
25
 
26
+ var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
27
+
26
28
  var _BackgroundColorContext = require("../BackgroundColorContext");
27
29
 
28
30
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
@@ -109,9 +111,10 @@ var DxcAlert = function DxcAlert(_ref) {
109
111
  size = _ref$size === void 0 ? "fitContent" : _ref$size,
110
112
  tabIndex = _ref.tabIndex;
111
113
  var colorsTheme = (0, _useTheme["default"])();
114
+ var translatedLabels = (0, _useTranslatedLabels["default"])();
112
115
 
113
116
  var getTypeText = function getTypeText() {
114
- return type === "info" ? "information" : type === "confirm" ? "success" : type === "warning" ? "warning" : "error";
117
+ return type === "info" ? translatedLabels.alert.infoTitleText : type === "confirm" ? translatedLabels.alert.successTitleText : type === "warning" ? translatedLabels.alert.warningTitleText : translatedLabels.alert.errorTitleText;
115
118
  };
116
119
 
117
120
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
package/badge/Badge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import BadgePropsType from "./types";
3
- declare const DxcBadge: ({ notificationText }: BadgePropsType) => JSX.Element;
3
+ declare const DxcBadge: ({ notificationText, disabled }: BadgePropsType) => JSX.Element;
4
4
  export default DxcBadge;
package/badge/Badge.js CHANGED
@@ -24,17 +24,19 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
26
  var DxcBadge = function DxcBadge(_ref) {
27
- var notificationText = _ref.notificationText;
27
+ var notificationText = _ref.notificationText,
28
+ disabled = _ref.disabled;
28
29
  var colorsTheme = (0, _useTheme["default"])();
29
30
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
30
31
  theme: colorsTheme.tabs
31
32
  }, /*#__PURE__*/_react["default"].createElement(StyledDxcBadge, {
32
- notificationText: notificationText
33
+ notificationText: notificationText,
34
+ disabled: disabled
33
35
  }, /*#__PURE__*/_react["default"].createElement("span", null, notificationText)));
34
36
  };
35
37
 
36
38
  var StyledDxcBadge = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n display: flex;\n padding-bottom: 1px;\n padding-right: 1px;\n flex-wrap: wrap;\n box-sizing: border-box;\n align-items: center;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n"])), function (props) {
37
- return props.theme.badgeBackgroundColor;
39
+ return props.disabled ? props.theme.disabledBadgeBackgroundColor : props.theme.badgeBackgroundColor;
38
40
  }, function (props) {
39
41
  return props.theme.badgeFontFamily;
40
42
  }, function (props) {
package/badge/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare type Props = {
2
2
  notificationText: boolean | number | string;
3
+ disabled?: boolean;
3
4
  };
4
5
  export default Props;
package/bleed/Bleed.js CHANGED
@@ -36,40 +36,7 @@ function Bleed(_ref) {
36
36
  }
37
37
 
38
38
  function getSpacingValue(spacingName) {
39
- switch (spacingName) {
40
- case "none":
41
- return "0rem";
42
-
43
- case "xxxsmall":
44
- return "0.125rem";
45
-
46
- case "xxsmall":
47
- return "0.25rem";
48
-
49
- case "xsmall":
50
- return "0.5rem";
51
-
52
- case "small":
53
- return "1rem";
54
-
55
- case "medium":
56
- return "1.5rem";
57
-
58
- case "large":
59
- return "2rem";
60
-
61
- case "xlarge":
62
- return "3rem";
63
-
64
- case "xxlarge":
65
- return "4rem";
66
-
67
- case "xxxlarge":
68
- return "5rem";
69
-
70
- default:
71
- return "0rem";
72
- }
39
+ return spacingName ? spacingName : "0rem";
73
40
  }
74
41
 
75
42
  var StyledBleed = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), function (_ref2) {