@dxc-technology/halstack-react 0.0.0-ff43881 → 0.0.0-ff5083e

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 (209) hide show
  1. package/HalstackContext.d.ts +12 -0
  2. package/HalstackContext.js +295 -0
  3. package/accordion/Accordion.d.ts +1 -1
  4. package/accordion/Accordion.js +7 -28
  5. package/accordion/Accordion.stories.tsx +11 -11
  6. package/accordion/Accordion.test.js +72 -0
  7. package/accordion/types.d.ts +4 -0
  8. package/accordion-group/AccordionGroup.d.ts +1 -1
  9. package/accordion-group/AccordionGroup.js +13 -15
  10. package/accordion-group/AccordionGroup.stories.tsx +1 -1
  11. package/accordion-group/AccordionGroup.test.js +151 -0
  12. package/accordion-group/types.d.ts +4 -0
  13. package/alert/Alert.js +4 -1
  14. package/alert/Alert.test.js +92 -0
  15. package/badge/Badge.d.ts +1 -1
  16. package/badge/Badge.js +5 -3
  17. package/badge/types.d.ts +1 -0
  18. package/bleed/Bleed.js +1 -34
  19. package/bleed/Bleed.stories.tsx +31 -32
  20. package/bleed/types.d.ts +25 -1
  21. package/box/Box.js +22 -32
  22. package/box/Box.test.js +18 -0
  23. package/bulleted-list/BulletedList.d.ts +7 -0
  24. package/bulleted-list/BulletedList.js +120 -0
  25. package/bulleted-list/BulletedList.stories.tsx +203 -0
  26. package/bulleted-list/types.d.ts +11 -0
  27. package/{list → bulleted-list}/types.js +0 -0
  28. package/button/Button.js +14 -11
  29. package/button/Button.test.js +35 -0
  30. package/card/Card.js +24 -27
  31. package/card/Card.test.js +50 -0
  32. package/checkbox/Checkbox.d.ts +1 -1
  33. package/checkbox/Checkbox.js +43 -39
  34. package/checkbox/Checkbox.stories.tsx +124 -128
  35. package/checkbox/Checkbox.test.js +78 -0
  36. package/checkbox/types.d.ts +7 -3
  37. package/chip/Chip.test.js +56 -0
  38. package/common/variables.js +197 -322
  39. package/date-input/DateInput.js +53 -39
  40. package/date-input/DateInput.stories.tsx +7 -7
  41. package/date-input/DateInput.test.js +479 -0
  42. package/date-input/types.d.ts +16 -9
  43. package/dialog/Dialog.js +4 -32
  44. package/dialog/Dialog.test.js +40 -0
  45. package/dropdown/Dropdown.js +13 -17
  46. package/dropdown/Dropdown.test.js +189 -0
  47. package/file-input/FileInput.js +9 -6
  48. package/file-input/FileInput.test.js +457 -0
  49. package/file-input/FileItem.js +7 -5
  50. package/footer/Footer.js +15 -88
  51. package/footer/Footer.test.js +109 -0
  52. package/header/Header.js +27 -48
  53. package/header/Header.stories.tsx +46 -36
  54. package/header/Header.test.js +79 -0
  55. package/heading/Heading.test.js +186 -0
  56. package/inset/Inset.js +1 -34
  57. package/inset/Inset.stories.tsx +32 -32
  58. package/inset/types.d.ts +25 -1
  59. package/layout/ApplicationLayout.d.ts +4 -3
  60. package/layout/ApplicationLayout.js +82 -114
  61. package/layout/ApplicationLayout.stories.tsx +14 -59
  62. package/layout/Icons.d.ts +5 -0
  63. package/layout/Icons.js +13 -2
  64. package/layout/SidenavContext.d.ts +5 -0
  65. package/layout/SidenavContext.js +19 -0
  66. package/layout/types.d.ts +5 -10
  67. package/link/Link.d.ts +3 -2
  68. package/link/Link.js +57 -74
  69. package/link/Link.stories.tsx +87 -52
  70. package/link/Link.test.js +83 -0
  71. package/link/types.d.ts +7 -23
  72. package/main.d.ts +7 -10
  73. package/main.js +33 -51
  74. package/number-input/NumberInput.js +11 -18
  75. package/number-input/NumberInput.stories.tsx +5 -5
  76. package/number-input/NumberInput.test.js +506 -0
  77. package/number-input/types.d.ts +17 -10
  78. package/package.json +6 -5
  79. package/paginator/Paginator.js +17 -38
  80. package/paginator/Paginator.test.js +266 -0
  81. package/paragraph/Paragraph.d.ts +6 -0
  82. package/paragraph/Paragraph.js +38 -0
  83. package/paragraph/Paragraph.stories.tsx +44 -0
  84. package/password-input/PasswordInput.js +7 -4
  85. package/password-input/PasswordInput.test.js +180 -0
  86. package/password-input/types.d.ts +14 -11
  87. package/progress-bar/ProgressBar.js +1 -1
  88. package/progress-bar/ProgressBar.stories.jsx +11 -11
  89. package/progress-bar/ProgressBar.test.js +65 -0
  90. package/quick-nav/QuickNav.d.ts +4 -0
  91. package/quick-nav/QuickNav.js +112 -0
  92. package/quick-nav/QuickNav.stories.tsx +237 -0
  93. package/quick-nav/types.d.ts +21 -0
  94. package/{radio → quick-nav}/types.js +0 -0
  95. package/radio-group/Radio.d.ts +1 -1
  96. package/radio-group/Radio.js +25 -24
  97. package/radio-group/RadioGroup.js +46 -37
  98. package/radio-group/RadioGroup.stories.tsx +60 -39
  99. package/radio-group/RadioGroup.test.js +530 -83
  100. package/radio-group/types.d.ts +80 -2
  101. package/resultsetTable/ResultsetTable.test.js +306 -0
  102. package/row/types.d.ts +18 -0
  103. package/select/Icons.d.ts +10 -0
  104. package/select/Icons.js +93 -0
  105. package/select/Listbox.d.ts +4 -0
  106. package/select/Listbox.js +152 -0
  107. package/select/Option.d.ts +4 -0
  108. package/select/Option.js +110 -0
  109. package/select/Select.js +109 -327
  110. package/select/Select.stories.tsx +103 -81
  111. package/select/Select.test.js +2120 -0
  112. package/select/types.d.ts +54 -11
  113. package/sidenav/Sidenav.d.ts +1 -1
  114. package/sidenav/Sidenav.js +20 -9
  115. package/sidenav/Sidenav.test.js +56 -0
  116. package/slider/Slider.d.ts +1 -1
  117. package/slider/Slider.js +2 -1
  118. package/slider/Slider.stories.tsx +8 -8
  119. package/slider/Slider.test.js +150 -0
  120. package/slider/types.d.ts +4 -0
  121. package/spinner/Spinner.js +1 -1
  122. package/spinner/Spinner.test.js +64 -0
  123. package/stack/types.d.ts +15 -0
  124. package/switch/Switch.d.ts +1 -1
  125. package/switch/Switch.js +35 -19
  126. package/switch/Switch.stories.tsx +14 -14
  127. package/switch/Switch.test.js +98 -0
  128. package/switch/types.d.ts +6 -2
  129. package/table/Table.test.js +26 -0
  130. package/tabs/Tabs.d.ts +1 -1
  131. package/tabs/Tabs.js +9 -11
  132. package/tabs/Tabs.stories.tsx +0 -8
  133. package/tabs/Tabs.test.js +140 -0
  134. package/tabs/types.d.ts +4 -0
  135. package/tabs-nav/NavTabs.d.ts +8 -0
  136. package/tabs-nav/NavTabs.js +125 -0
  137. package/tabs-nav/NavTabs.stories.tsx +170 -0
  138. package/tabs-nav/NavTabs.test.js +82 -0
  139. package/tabs-nav/Tab.d.ts +4 -0
  140. package/tabs-nav/Tab.js +132 -0
  141. package/tabs-nav/types.d.ts +53 -0
  142. package/tabs-nav/types.js +5 -0
  143. package/tag/Tag.js +14 -19
  144. package/tag/Tag.stories.tsx +12 -8
  145. package/tag/Tag.test.js +60 -0
  146. package/text-input/Suggestion.d.ts +4 -0
  147. package/text-input/Suggestion.js +55 -0
  148. package/text-input/TextInput.js +56 -80
  149. package/text-input/TextInput.stories.tsx +30 -12
  150. package/text-input/TextInput.test.js +1712 -0
  151. package/text-input/types.d.ts +31 -12
  152. package/textarea/Textarea.js +20 -27
  153. package/textarea/Textarea.stories.jsx +33 -12
  154. package/textarea/Textarea.test.js +437 -0
  155. package/textarea/types.d.ts +18 -11
  156. package/toggle-group/ToggleGroup.d.ts +1 -1
  157. package/toggle-group/ToggleGroup.js +5 -4
  158. package/toggle-group/ToggleGroup.stories.tsx +4 -4
  159. package/toggle-group/ToggleGroup.test.js +156 -0
  160. package/toggle-group/types.d.ts +8 -0
  161. package/typography/Typography.d.ts +4 -0
  162. package/typography/Typography.js +131 -0
  163. package/typography/Typography.stories.tsx +175 -0
  164. package/typography/types.d.ts +18 -0
  165. package/typography/types.js +5 -0
  166. package/typography/typographyContextTypes.d.ts +16 -0
  167. package/typography/typographyContextTypes.js +5 -0
  168. package/useTheme.js +2 -2
  169. package/useTranslatedLabels.d.ts +2 -0
  170. package/useTranslatedLabels.js +20 -0
  171. package/wizard/Wizard.d.ts +1 -1
  172. package/wizard/Wizard.js +55 -44
  173. package/wizard/Wizard.stories.tsx +13 -23
  174. package/wizard/Wizard.test.js +141 -0
  175. package/wizard/types.d.ts +6 -2
  176. package/ThemeContext.d.ts +0 -15
  177. package/ThemeContext.js +0 -243
  178. package/V3Select/V3Select.js +0 -455
  179. package/V3Select/index.d.ts +0 -27
  180. package/V3Textarea/V3Textarea.js +0 -260
  181. package/V3Textarea/index.d.ts +0 -27
  182. package/date/Date.js +0 -373
  183. package/date/index.d.ts +0 -27
  184. package/input-text/Icons.js +0 -22
  185. package/input-text/InputText.js +0 -611
  186. package/input-text/index.d.ts +0 -36
  187. package/list/List.d.ts +0 -4
  188. package/list/List.js +0 -47
  189. package/list/List.stories.tsx +0 -95
  190. package/list/types.d.ts +0 -7
  191. package/radio/Radio.d.ts +0 -4
  192. package/radio/Radio.js +0 -174
  193. package/radio/Radio.stories.tsx +0 -192
  194. package/radio/types.d.ts +0 -54
  195. package/text/Text.d.ts +0 -7
  196. package/text/Text.js +0 -30
  197. package/text/Text.stories.tsx +0 -19
  198. package/upload/Upload.js +0 -201
  199. package/upload/buttons-upload/ButtonsUpload.js +0 -111
  200. package/upload/buttons-upload/Icons.js +0 -40
  201. package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
  202. package/upload/dragAndDropArea/Icons.js +0 -39
  203. package/upload/file-upload/FileToUpload.js +0 -115
  204. package/upload/file-upload/Icons.js +0 -66
  205. package/upload/files-upload/FilesToUpload.js +0 -109
  206. package/upload/index.d.ts +0 -15
  207. package/upload/transaction/Icons.js +0 -160
  208. package/upload/transaction/Transaction.js +0 -104
  209. package/upload/transactions/Transactions.js +0 -94
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const HalstackContext: React.Context<object>;
3
+ declare const HalstackLanguageContext: React.Context<object>;
4
+ declare type HalstackProviderPropsType = {
5
+ theme?: object;
6
+ advancedTheme?: object;
7
+ labels?: object;
8
+ children: React.ReactNode;
9
+ };
10
+ declare const HalstackProvider: ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType) => JSX.Element;
11
+ export default HalstackContext;
12
+ export { HalstackProvider, HalstackLanguageContext };
@@ -0,0 +1,295 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = exports.HalstackProvider = exports.HalstackLanguageContext = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _color = _interopRequireDefault(require("color"));
17
+
18
+ var _rgbHex = _interopRequireDefault(require("rgb-hex"));
19
+
20
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
21
+
22
+ var _variables = require("./common/variables.js");
23
+
24
+ var _templateObject;
25
+
26
+ 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); }
27
+
28
+ 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; }
29
+
30
+ var HalstackContext = /*#__PURE__*/_react["default"].createContext(null);
31
+
32
+ var HalstackLanguageContext = /*#__PURE__*/_react["default"].createContext(null);
33
+
34
+ exports.HalstackLanguageContext = HalstackLanguageContext;
35
+
36
+ var addLightness = function addLightness(hexColor, newLightness) {
37
+ try {
38
+ if (hexColor) {
39
+ var color = (0, _color["default"])(hexColor);
40
+ var hslColor = color.hsl();
41
+ var lightnessColor = hslColor.color[2];
42
+ return hslColor.lightness(lightnessColor + newLightness).hex();
43
+ }
44
+ } catch (e) {
45
+ return null;
46
+ }
47
+ };
48
+
49
+ var subLightness = function subLightness(hexColor, newLightness) {
50
+ try {
51
+ if (hexColor) {
52
+ var color = (0, _color["default"])(hexColor);
53
+ var hslColor = color.hsl();
54
+ var lightnessColor = hslColor.color[2];
55
+ return hslColor.lightness(lightnessColor - newLightness).hex();
56
+ }
57
+ } catch (e) {
58
+ return null;
59
+ }
60
+ };
61
+
62
+ var setOpacity = function setOpacity(hexColor, newOpacity) {
63
+ try {
64
+ if (hexColor) {
65
+ var color = (0, _color["default"])(hexColor);
66
+ return "#" + (0, _rgbHex["default"])(color.color[0], color.color[1], color.color[2], newOpacity);
67
+ }
68
+ } catch (e) {
69
+ return null;
70
+ }
71
+ };
72
+
73
+ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
74
+ var allTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
75
+ Object.keys(allTokensCopy).map(function (component) {
76
+ if (advancedTheme[component]) {
77
+ Object.keys(advancedTheme[component]).map(function (objectKey) {
78
+ if (advancedTheme[component][objectKey]) {
79
+ allTokensCopy[component][objectKey] = advancedTheme[component][objectKey];
80
+ }
81
+ });
82
+ }
83
+ });
84
+ return allTokensCopy;
85
+ };
86
+
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, _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;
89
+
90
+ var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
91
+ 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;
94
+ 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
+ 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;
98
+ var buttonTokens = componentTokensCopy.button;
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
+ 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;
101
+ buttonTokens.secondaryFontColor = (_theme$button$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$button3 = theme.button) === null || _theme$button3 === void 0 ? void 0 : _theme$button3.baseColor) !== null && _theme$button$baseCol2 !== void 0 ? _theme$button$baseCol2 : buttonTokens.secondaryFontColor;
102
+ buttonTokens.secondaryHoverFontColor = (_theme$button$seconda = theme === null || theme === void 0 ? void 0 : (_theme$button4 = theme.button) === null || _theme$button4 === void 0 ? void 0 : _theme$button4.secondaryHoverFontColor) !== null && _theme$button$seconda !== void 0 ? _theme$button$seconda : buttonTokens.secondaryHoverFontColor;
103
+ buttonTokens.secondaryBorderColor = (_theme$button$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$button5 = theme.button) === null || _theme$button5 === void 0 ? void 0 : _theme$button5.baseColor) !== null && _theme$button$baseCol3 !== void 0 ? _theme$button$baseCol3 : buttonTokens.secondaryBorderColor;
104
+ buttonTokens.secondaryHoverBackgroundColor = (_theme$button$baseCol4 = theme === null || theme === void 0 ? void 0 : (_theme$button6 = theme.button) === null || _theme$button6 === void 0 ? void 0 : _theme$button6.baseColor) !== null && _theme$button$baseCol4 !== void 0 ? _theme$button$baseCol4 : buttonTokens.secondaryHoverBackgroundColor;
105
+ buttonTokens.textFontColor = (_theme$button$baseCol5 = theme === null || theme === void 0 ? void 0 : (_theme$button7 = theme.button) === null || _theme$button7 === void 0 ? void 0 : _theme$button7.baseColor) !== null && _theme$button$baseCol5 !== void 0 ? _theme$button$baseCol5 : buttonTokens.textFontColor;
106
+ 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
+ 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
+ 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;
111
+ var checkboxTokens = componentTokensCopy.checkbox;
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
+ 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
+ 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.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
+ var chipTokens = componentTokensCopy.chip;
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.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;
122
+ 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;
126
+ var dropdownTokens = componentTokensCopy.dropdown;
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;
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;
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;
137
+ var fileInputTokens = componentTokensCopy.fileInput;
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;
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;
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;
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;
142
+ var footerTokens = componentTokensCopy.footer;
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
+ 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;
145
+ footerTokens.copyrightFontColor = (_theme$footer$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$footer3 = theme.footer) === null || _theme$footer3 === void 0 ? void 0 : _theme$footer3.fontColor) !== null && _theme$footer$fontCol2 !== void 0 ? _theme$footer$fontCol2 : footerTokens.copyrightFontColor;
146
+ footerTokens.socialLinksColor = (_theme$footer$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$footer4 = theme.footer) === null || _theme$footer4 === void 0 ? void 0 : _theme$footer4.fontColor) !== null && _theme$footer$fontCol3 !== void 0 ? _theme$footer$fontCol3 : footerTokens.socialLinksColor;
147
+ footerTokens.bottomLinksDividerColor = (_theme$footer$accentC = theme === null || theme === void 0 ? void 0 : (_theme$footer5 = theme.footer) === null || _theme$footer5 === void 0 ? void 0 : _theme$footer5.accentColor) !== null && _theme$footer$accentC !== void 0 ? _theme$footer$accentC : footerTokens.bottomLinksDividerColor;
148
+ footerTokens.logo = (_theme$footer$logo = theme === null || theme === void 0 ? void 0 : (_theme$footer6 = theme.footer) === null || _theme$footer6 === void 0 ? void 0 : _theme$footer6.logo) !== null && _theme$footer$logo !== void 0 ? _theme$footer$logo : footerTokens.logo;
149
+ var headerTokens = componentTokensCopy.header;
150
+ headerTokens.backgroundColor = (_theme$header$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : _theme$header.baseColor) !== null && _theme$header$baseCol !== void 0 ? _theme$header$baseCol : headerTokens.backgroundColor;
151
+ headerTokens.underlinedColor = (_theme$header$accentC = theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : _theme$header2.accentColor) !== null && _theme$header$accentC !== void 0 ? _theme$header$accentC : headerTokens.underlinedColor;
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
+ 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
+ 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;
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
+ 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
+ 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;
159
+ var paginatorTokens = componentTokensCopy.paginator;
160
+ 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
+ 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;
162
+ var progressBarTokens = componentTokensCopy.progressBar;
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
+ 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
+ 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;
177
+ var selectTokens = componentTokensCopy.select;
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;
187
+ var sideNavTokens = componentTokensCopy.sidenav;
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;
189
+ var sliderTokens = componentTokensCopy.slider;
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;
200
+ var spinnerTokens = componentTokensCopy.spinner;
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;
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;
205
+ var switchTokens = componentTokensCopy["switch"];
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;
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;
209
+ var tableTokens = componentTokensCopy.table;
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;
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;
214
+ var tabsTokens = componentTokensCopy.tabs;
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;
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;
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;
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;
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;
221
+ var textInputTokens = componentTokensCopy.textInput;
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;
232
+ var toggleGroupTokens = componentTokensCopy.toggleGroup;
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;
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;
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;
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;
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;
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;
243
+ var wizardTokens = componentTokensCopy.wizard;
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;
255
+ return componentTokensCopy;
256
+ };
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
+
272
+ var HalstackProvider = function HalstackProvider(_ref) {
273
+ var theme = _ref.theme,
274
+ advancedTheme = _ref.advancedTheme,
275
+ labels = _ref.labels,
276
+ children = _ref.children;
277
+ var parsedTheme = (0, _react.useMemo)(function () {
278
+ return theme && parseTheme(theme) || advancedTheme && parseAdvancedTheme(advancedTheme);
279
+ }, [theme, advancedTheme]);
280
+ var parsedLabels = (0, _react.useMemo)(function () {
281
+ return labels && parseLabels(labels) || _variables.defaultTranslatedComponentLabels;
282
+ }, [labels]);
283
+ return /*#__PURE__*/_react["default"].createElement(Halstack, null, /*#__PURE__*/_react["default"].createElement(HalstackContext.Provider, {
284
+ value: parsedTheme
285
+ }, /*#__PURE__*/_react["default"].createElement(HalstackLanguageContext.Provider, {
286
+ value: parsedLabels
287
+ }, children)));
288
+ };
289
+
290
+ exports.HalstackProvider = HalstackProvider;
291
+
292
+ var Halstack = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n @import url(\"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap\");\n"])));
293
+
294
+ var _default = HalstackContext;
295
+ exports["default"] = _default;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import AccordionPropsType from "./types";
3
- declare const DxcAccordion: ({ label, isExpanded, icon, assistiveText, disabled, onChange, children, margin, padding, tabIndex, }: AccordionPropsType) => JSX.Element;
3
+ declare const DxcAccordion: ({ label, defaultIsExpanded, isExpanded, icon, assistiveText, disabled, onChange, children, margin, padding, tabIndex, }: AccordionPropsType) => JSX.Element;
4
4
  export default DxcAccordion;
@@ -44,6 +44,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
44
44
  var DxcAccordion = function DxcAccordion(_ref) {
45
45
  var _ref$label = _ref.label,
46
46
  label = _ref$label === void 0 ? "" : _ref$label,
47
+ defaultIsExpanded = _ref.defaultIsExpanded,
47
48
  isExpanded = _ref.isExpanded,
48
49
  icon = _ref.icon,
49
50
  _ref$assistiveText = _ref.assistiveText,
@@ -57,34 +58,13 @@ var DxcAccordion = function DxcAccordion(_ref) {
57
58
  _ref$tabIndex = _ref.tabIndex,
58
59
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
59
60
 
60
- var _useState = (0, _react.useState)(false),
61
+ var _useState = (0, _react.useState)(defaultIsExpanded !== null && defaultIsExpanded !== void 0 ? defaultIsExpanded : false),
61
62
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
62
63
  innerIsExpanded = _useState2[0],
63
64
  setInnerIsExpanded = _useState2[1];
64
65
 
65
- var _useState3 = (0, _react.useState)(false),
66
- _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
67
- isResponsive = _useState4[0],
68
- setIsResponsive = _useState4[1];
69
-
70
66
  var colorsTheme = (0, _useTheme["default"])();
71
67
 
72
- var handleResize = function handleResize(width) {
73
- width && width <= _variables.responsiveSizes.tablet ? setIsResponsive(true) : setIsResponsive(false);
74
- };
75
-
76
- var handleEventListener = function handleEventListener() {
77
- handleResize(window.innerWidth);
78
- };
79
-
80
- (0, _react.useEffect)(function () {
81
- window.addEventListener("resize", handleEventListener);
82
- handleResize(window.innerWidth);
83
- return function () {
84
- window.removeEventListener("resize", handleEventListener);
85
- };
86
- }, []);
87
-
88
68
  var handlerAccordion = function handlerAccordion() {
89
69
  if (isExpanded == null) {
90
70
  setInnerIsExpanded(!innerIsExpanded);
@@ -101,8 +81,7 @@ var DxcAccordion = function DxcAccordion(_ref) {
101
81
  padding: padding,
102
82
  margin: margin,
103
83
  disabled: disabled,
104
- icon: icon,
105
- isResponsive: isResponsive
84
+ icon: icon
106
85
  }, /*#__PURE__*/_react["default"].createElement(_ExpansionPanel["default"], {
107
86
  disabled: disabled,
108
87
  onChange: handlerAccordion,
@@ -112,11 +91,11 @@ var DxcAccordion = function DxcAccordion(_ref) {
112
91
  tabIndex: disabled ? -1 : tabIndex
113
92
  }, /*#__PURE__*/_react["default"].createElement(AccordionInfo, {
114
93
  disabled: disabled
115
- }, /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, label), icon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
94
+ }, icon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
116
95
  disabled: disabled
117
96
  }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement(AccordionIcon, {
118
97
  src: icon
119
- }) : icon)), assistiveText && /*#__PURE__*/_react["default"].createElement(AccordionAssistiveText, {
98
+ }) : icon), /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, label)), assistiveText && /*#__PURE__*/_react["default"].createElement(AccordionAssistiveText, {
120
99
  disabled: disabled
121
100
  }, assistiveText)), /*#__PURE__*/_react["default"].createElement(_ExpansionPanelDetails["default"], null, /*#__PURE__*/_react["default"].createElement(AccordionContent, {
122
101
  disabled: disabled
@@ -129,7 +108,7 @@ var calculateWidth = function calculateWidth(margin) {
129
108
  return "calc(100% - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
130
109
  };
131
110
 
132
- var DXCAccordion = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n min-width: 280px;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n cursor: ", ";\n\n .MuiPaper-root {\n min-width: 0;\n display: flex;\n left: 85px;\n background-color: ", " !important;\n box-shadow: ", ";\n position: static;\n width: 100%;\n border-radius: ", ";\n\n &.Mui-expanded {\n border-radius: ", ";\n }\n &.MuiExpansionPanel-root {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n }\n &.MuiExpansionPanel-rounded {\n border-radius: ", ";\n }\n .MuiButtonBase-root.MuiExpansionPanelSummary-root {\n min-height: 48px;\n height: 48px;\n\n :focus {\n outline-color: ", ";\n outline-style: ", ";\n outline-width: ", ";\n background-color: ", ";\n }\n :hover {\n background-color: ", ";\n }\n :active {\n background-color: ", ";\n }\n &.Mui-disabled {\n opacity: 1;\n }\n }\n .MuiButtonBase-root {\n border-radius: ", ";\n\n &.Mui-expanded {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n .MuiSvgIcon-root {\n opacity: 1;\n }\n }\n &.MuiIconButton-root {\n height: auto;\n }\n .MuiExpansionPanelSummary-content {\n padding-top: ", ";\n padding-bottom: ", ";\n padding-right: ", ";\n padding-left: ", ";\n min-width: 0;\n align-items: baseline;\n &.Mui-expanded {\n div:nth-child(2) {\n opacity: 1;\n }\n }\n :hover {\n div {\n opacity: 1;\n }\n }\n }\n }\n .MuiTouchRipple-root {\n display: none;\n }\n }\n .MuiCollapse-hidden {\n display: none;\n }\n .MuiCollapse-container {\n border-radius: 0px 0px 4px 4px;\n cursor: default;\n width: 100%;\n }\n .MuiIconButton-label {\n & > .MuiSvgIcon-root {\n color: ", ";\n }\n }\n .MuiExpansionPanelDetails-root {\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"])), function (props) {
111
+ var DXCAccordion = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n min-width: 280px;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n cursor: ", ";\n\n .MuiPaper-root {\n min-width: 0;\n display: flex;\n left: 85px;\n background-color: ", " !important;\n box-shadow: ", ";\n position: static;\n width: 100%;\n border-radius: ", ";\n\n &.Mui-expanded {\n border-radius: ", ";\n }\n &.MuiExpansionPanel-root {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n }\n &.MuiExpansionPanel-rounded {\n border-radius: ", ";\n }\n .MuiButtonBase-root.MuiExpansionPanelSummary-root {\n min-height: 48px;\n height: 48px;\n\n :focus {\n outline-color: ", ";\n outline-style: ", ";\n outline-width: ", ";\n background-color: ", ";\n }\n :hover {\n background-color: ", ";\n }\n :active {\n background-color: ", ";\n }\n &.Mui-disabled {\n opacity: 1;\n }\n }\n .MuiButtonBase-root {\n border-radius: ", ";\n\n &.Mui-expanded {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n .MuiSvgIcon-root {\n opacity: 1;\n }\n }\n &.MuiIconButton-root {\n height: auto;\n }\n .MuiExpansionPanelSummary-content {\n padding-top: ", ";\n padding-bottom: ", ";\n padding-right: ", ";\n padding-left: ", ";\n min-width: 0;\n &.Mui-expanded {\n div:nth-child(2) {\n opacity: 1;\n }\n }\n :hover {\n div {\n opacity: 1;\n }\n }\n }\n }\n .MuiTouchRipple-root {\n display: none;\n }\n }\n .MuiCollapse-hidden {\n display: none;\n }\n .MuiCollapse-container {\n border-radius: 0px 0px 4px 4px;\n cursor: default;\n width: 100%;\n }\n .MuiIconButton-label {\n & > .MuiSvgIcon-root {\n color: ", ";\n }\n }\n .MuiExpansionPanelDetails-root {\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"])), function (props) {
133
112
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
134
113
  }, function (props) {
135
114
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
@@ -189,7 +168,7 @@ var DXCAccordion = _styledComponents["default"].div(_templateObject || (_templat
189
168
  return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
190
169
  });
191
170
 
192
- var AccordionInfo = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n padding-left: ", ";\n padding-right: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n"])), function (props) {
171
+ var AccordionInfo = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n padding-left: ", ";\n padding-right: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n"])), function (props) {
193
172
  return props.theme.titlePaddingLeft;
194
173
  }, function (props) {
195
174
  return props.theme.titlePaddingRight;
@@ -5,7 +5,7 @@ import DxcTextInput from "../text-input/TextInput";
5
5
  import DxcButton from "../button/Button";
6
6
  import Title from "../../.storybook/components/Title";
7
7
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
8
- import { ThemeProvider } from "../ThemeContext";
8
+ import { HalstackProvider } from "../HalstackContext";
9
9
 
10
10
  export default {
11
11
  title: "Accordion",
@@ -125,10 +125,10 @@ export const Chromatic = () => (
125
125
  </ExampleContainer>
126
126
  <ExampleContainer>
127
127
  <Title title="Background color provider over accordion content" theme="light" level={4} />
128
- <ThemeProvider advancedTheme={advancedTheme}>
128
+ <HalstackProvider advancedTheme={advancedTheme}>
129
129
  <DxcAccordion
130
130
  label="Dark Accordion"
131
- isExpanded
131
+ defaultIsExpanded
132
132
  assistiveText="Assistive text"
133
133
  icon={folderIcon}
134
134
  padding="medium"
@@ -144,12 +144,12 @@ export const Chromatic = () => (
144
144
  <DxcButton label="Submit" size="medium" />
145
145
  </div>
146
146
  </DxcAccordion>
147
- </ThemeProvider>
147
+ </HalstackProvider>
148
148
  </ExampleContainer>
149
149
  <Title title="Paddings" theme="light" level={2} />
150
150
  <ExampleContainer>
151
151
  <Title title="Xxsmall padding" theme="light" level={4} />
152
- <DxcAccordion label="Xxsmall padding" isExpanded padding="xxsmall">
152
+ <DxcAccordion label="Xxsmall padding" defaultIsExpanded padding="xxsmall">
153
153
  <div>
154
154
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
155
155
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -162,7 +162,7 @@ export const Chromatic = () => (
162
162
  </ExampleContainer>
163
163
  <ExampleContainer>
164
164
  <Title title="Xsmall padding" theme="light" level={4} />
165
- <DxcAccordion label="Xsmall padding" isExpanded padding="xsmall">
165
+ <DxcAccordion label="Xsmall padding" defaultIsExpanded padding="xsmall">
166
166
  <div>
167
167
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
168
168
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -175,7 +175,7 @@ export const Chromatic = () => (
175
175
  </ExampleContainer>
176
176
  <ExampleContainer>
177
177
  <Title title="Small padding" theme="light" level={4} />
178
- <DxcAccordion label="Small padding" isExpanded padding="small">
178
+ <DxcAccordion label="Small padding" defaultIsExpanded padding="small">
179
179
  <div>
180
180
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
181
181
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -188,7 +188,7 @@ export const Chromatic = () => (
188
188
  </ExampleContainer>
189
189
  <ExampleContainer>
190
190
  <Title title="Medium padding" theme="light" level={4} />
191
- <DxcAccordion label="Medium padding" isExpanded padding="medium">
191
+ <DxcAccordion label="Medium padding" defaultIsExpanded padding="medium">
192
192
  <div>
193
193
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
194
194
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -201,7 +201,7 @@ export const Chromatic = () => (
201
201
  </ExampleContainer>
202
202
  <ExampleContainer>
203
203
  <Title title="Large padding" theme="light" level={4} />
204
- <DxcAccordion label="Large padding" isExpanded padding="large">
204
+ <DxcAccordion label="Large padding" defaultIsExpanded padding="large">
205
205
  <div>
206
206
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
207
207
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -214,7 +214,7 @@ export const Chromatic = () => (
214
214
  </ExampleContainer>
215
215
  <ExampleContainer>
216
216
  <Title title="Xlarge padding" theme="light" level={4} />
217
- <DxcAccordion label="Xlarge padding" isExpanded padding="xlarge">
217
+ <DxcAccordion label="Xlarge padding" defaultIsExpanded padding="xlarge">
218
218
  <div>
219
219
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
220
220
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
@@ -227,7 +227,7 @@ export const Chromatic = () => (
227
227
  </ExampleContainer>
228
228
  <ExampleContainer>
229
229
  <Title title="Xxlarge padding" theme="light" level={4} />
230
- <DxcAccordion label="Xxlarge padding" isExpanded padding="xxlarge">
230
+ <DxcAccordion label="Xxlarge padding" defaultIsExpanded padding="xxlarge">
231
231
  <div>
232
232
  <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
233
233
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore