@dxc-technology/halstack-react 0.0.0-d4fec82 → 0.0.0-d53aaf7

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 (297) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +1 -4
  3. package/ThemeContext.d.ts +10 -0
  4. package/ThemeContext.js +26 -29
  5. package/accordion/Accordion.d.ts +1 -1
  6. package/accordion/Accordion.js +13 -23
  7. package/accordion/Accordion.stories.tsx +307 -0
  8. package/accordion/Accordion.test.js +72 -0
  9. package/accordion/types.d.ts +8 -8
  10. package/accordion-group/AccordionGroup.js +2 -2
  11. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  12. package/accordion-group/AccordionGroup.test.js +133 -0
  13. package/accordion-group/types.d.ts +4 -8
  14. package/alert/Alert.js +2 -2
  15. package/alert/Alert.stories.tsx +170 -0
  16. package/alert/Alert.test.js +92 -0
  17. package/alert/types.d.ts +1 -1
  18. package/badge/Badge.d.ts +4 -0
  19. package/badge/Badge.js +1 -1
  20. package/badge/types.d.ts +4 -0
  21. package/badge/types.js +5 -0
  22. package/bleed/Bleed.d.ts +3 -0
  23. package/bleed/Bleed.js +84 -0
  24. package/bleed/Bleed.stories.tsx +342 -0
  25. package/bleed/types.d.ts +37 -0
  26. package/bleed/types.js +5 -0
  27. package/box/Box.d.ts +4 -0
  28. package/box/Box.js +6 -32
  29. package/box/{Box.stories.jsx → Box.stories.tsx} +0 -0
  30. package/box/Box.test.js +18 -0
  31. package/box/types.d.ts +43 -0
  32. package/box/types.js +5 -0
  33. package/button/Button.d.ts +1 -1
  34. package/button/Button.js +15 -26
  35. package/button/Button.stories.tsx +223 -242
  36. package/button/Button.test.js +35 -0
  37. package/button/types.d.ts +9 -13
  38. package/card/Card.js +5 -6
  39. package/card/Card.stories.tsx +201 -0
  40. package/card/Card.test.js +50 -0
  41. package/card/ice-cream.jpg +0 -0
  42. package/card/types.d.ts +4 -6
  43. package/checkbox/Checkbox.d.ts +1 -1
  44. package/checkbox/Checkbox.js +9 -15
  45. package/checkbox/Checkbox.stories.tsx +192 -0
  46. package/checkbox/Checkbox.test.js +78 -0
  47. package/checkbox/types.d.ts +6 -2
  48. package/chip/Chip.d.ts +4 -0
  49. package/chip/Chip.js +16 -76
  50. package/chip/Chip.stories.tsx +119 -0
  51. package/chip/Chip.test.js +56 -0
  52. package/chip/types.d.ts +45 -0
  53. package/chip/types.js +5 -0
  54. package/common/variables.js +85 -281
  55. package/date-input/DateInput.js +26 -33
  56. package/date-input/DateInput.stories.tsx +138 -0
  57. package/date-input/DateInput.test.js +492 -0
  58. package/date-input/types.d.ts +4 -0
  59. package/dialog/Dialog.d.ts +4 -0
  60. package/dialog/Dialog.js +8 -26
  61. package/dialog/Dialog.stories.tsx +212 -0
  62. package/dialog/Dialog.test.js +40 -0
  63. package/dialog/types.d.ts +43 -0
  64. package/dialog/types.js +5 -0
  65. package/dropdown/Dropdown.d.ts +1 -1
  66. package/dropdown/Dropdown.js +13 -35
  67. package/dropdown/Dropdown.stories.tsx +249 -0
  68. package/dropdown/Dropdown.test.js +189 -0
  69. package/dropdown/types.d.ts +6 -15
  70. package/file-input/FileInput.d.ts +4 -0
  71. package/file-input/FileInput.js +167 -109
  72. package/file-input/FileInput.stories.tsx +507 -0
  73. package/file-input/FileInput.test.js +457 -0
  74. package/file-input/FileItem.d.ts +14 -0
  75. package/file-input/FileItem.js +12 -21
  76. package/file-input/types.d.ts +112 -0
  77. package/file-input/types.js +5 -0
  78. package/footer/Footer.d.ts +1 -1
  79. package/footer/Footer.js +28 -36
  80. package/footer/Footer.stories.tsx +130 -0
  81. package/footer/Footer.test.js +109 -0
  82. package/footer/Icons.d.ts +2 -0
  83. package/footer/Icons.js +3 -3
  84. package/footer/types.d.ts +22 -18
  85. package/header/Header.d.ts +7 -0
  86. package/header/Header.js +28 -30
  87. package/header/Header.stories.tsx +162 -0
  88. package/header/Header.test.js +63 -0
  89. package/header/Icons.d.ts +2 -0
  90. package/header/Icons.js +2 -27
  91. package/header/types.d.ts +47 -0
  92. package/header/types.js +5 -0
  93. package/heading/Heading.d.ts +4 -0
  94. package/heading/Heading.js +7 -24
  95. package/heading/Heading.stories.tsx +54 -0
  96. package/heading/Heading.test.js +186 -0
  97. package/heading/types.d.ts +33 -0
  98. package/heading/types.js +5 -0
  99. package/inset/Inset.d.ts +3 -0
  100. package/inset/Inset.js +84 -0
  101. package/inset/Inset.stories.tsx +229 -0
  102. package/inset/types.d.ts +37 -0
  103. package/inset/types.js +5 -0
  104. package/layout/ApplicationLayout.d.ts +10 -0
  105. package/layout/ApplicationLayout.js +17 -21
  106. package/layout/ApplicationLayout.stories.tsx +171 -0
  107. package/layout/types.d.ts +57 -0
  108. package/layout/types.js +5 -0
  109. package/link/Link.d.ts +3 -0
  110. package/link/Link.js +10 -40
  111. package/link/Link.stories.tsx +151 -0
  112. package/link/Link.test.js +91 -0
  113. package/link/types.d.ts +70 -0
  114. package/link/types.js +5 -0
  115. package/list/List.d.ts +4 -0
  116. package/list/List.js +47 -0
  117. package/list/List.stories.tsx +95 -0
  118. package/list/types.d.ts +7 -0
  119. package/list/types.js +5 -0
  120. package/main.d.ts +11 -8
  121. package/main.js +62 -38
  122. package/number-input/NumberInput.d.ts +4 -0
  123. package/number-input/NumberInput.js +16 -68
  124. package/number-input/{NumberInput.stories.jsx → NumberInput.stories.tsx} +5 -5
  125. package/number-input/NumberInput.test.js +508 -0
  126. package/number-input/NumberInputContext.d.ts +4 -0
  127. package/number-input/NumberInputContext.js +5 -2
  128. package/number-input/numberInputContextTypes.d.ts +19 -0
  129. package/number-input/numberInputContextTypes.js +5 -0
  130. package/number-input/types.d.ts +121 -0
  131. package/number-input/types.js +5 -0
  132. package/package.json +5 -2
  133. package/paginator/Paginator.js +2 -8
  134. package/paginator/Paginator.stories.tsx +63 -0
  135. package/paginator/Paginator.test.js +266 -0
  136. package/password-input/PasswordInput.d.ts +4 -0
  137. package/password-input/PasswordInput.js +19 -55
  138. package/password-input/{PasswordInput.stories.jsx → PasswordInput.stories.tsx} +4 -4
  139. package/password-input/PasswordInput.test.js +183 -0
  140. package/password-input/types.d.ts +107 -0
  141. package/password-input/types.js +5 -0
  142. package/progress-bar/ProgressBar.js +5 -5
  143. package/progress-bar/ProgressBar.stories.jsx +58 -0
  144. package/progress-bar/ProgressBar.test.js +65 -0
  145. package/quick-nav/QuickNav.d.ts +4 -0
  146. package/quick-nav/QuickNav.js +66 -0
  147. package/quick-nav/QuickNav.stories.tsx +237 -0
  148. package/quick-nav/types.d.ts +21 -0
  149. package/quick-nav/types.js +5 -0
  150. package/radio/Radio.js +2 -2
  151. package/radio/Radio.stories.tsx +192 -0
  152. package/radio/Radio.test.js +71 -0
  153. package/radio/types.d.ts +2 -2
  154. package/radio-group/Radio.d.ts +4 -0
  155. package/radio-group/Radio.js +141 -0
  156. package/radio-group/RadioGroup.d.ts +4 -0
  157. package/radio-group/RadioGroup.js +280 -0
  158. package/radio-group/RadioGroup.stories.tsx +100 -0
  159. package/radio-group/RadioGroup.test.js +695 -0
  160. package/radio-group/types.d.ts +114 -0
  161. package/radio-group/types.js +5 -0
  162. package/resultsetTable/ResultsetTable.d.ts +4 -0
  163. package/resultsetTable/ResultsetTable.js +9 -29
  164. package/resultsetTable/ResultsetTable.stories.tsx +275 -0
  165. package/resultsetTable/ResultsetTable.test.js +306 -0
  166. package/resultsetTable/types.d.ts +67 -0
  167. package/resultsetTable/types.js +5 -0
  168. package/row/Row.d.ts +3 -0
  169. package/row/Row.js +127 -0
  170. package/row/Row.stories.tsx +237 -0
  171. package/row/types.d.ts +28 -0
  172. package/row/types.js +5 -0
  173. package/select/Icons.d.ts +10 -0
  174. package/select/Icons.js +93 -0
  175. package/select/Option.d.ts +4 -0
  176. package/select/Option.js +110 -0
  177. package/select/Select.d.ts +4 -0
  178. package/select/Select.js +116 -249
  179. package/select/Select.stories.tsx +582 -0
  180. package/select/Select.test.js +2057 -0
  181. package/select/types.d.ts +194 -0
  182. package/select/types.js +5 -0
  183. package/sidenav/Sidenav.d.ts +9 -0
  184. package/sidenav/Sidenav.js +6 -15
  185. package/sidenav/Sidenav.stories.tsx +182 -0
  186. package/sidenav/Sidenav.test.js +56 -0
  187. package/sidenav/types.d.ts +50 -0
  188. package/sidenav/types.js +5 -0
  189. package/slider/Slider.d.ts +1 -1
  190. package/slider/Slider.js +45 -33
  191. package/slider/Slider.stories.tsx +177 -0
  192. package/slider/Slider.test.js +150 -0
  193. package/slider/types.d.ts +6 -7
  194. package/spinner/Spinner.d.ts +4 -0
  195. package/spinner/Spinner.js +8 -25
  196. package/spinner/Spinner.stories.jsx +103 -0
  197. package/spinner/Spinner.test.js +64 -0
  198. package/spinner/types.d.ts +32 -0
  199. package/spinner/types.js +5 -0
  200. package/stack/Stack.d.ts +3 -0
  201. package/stack/Stack.js +97 -0
  202. package/stack/Stack.stories.tsx +164 -0
  203. package/stack/types.d.ts +24 -0
  204. package/stack/types.js +5 -0
  205. package/switch/Switch.d.ts +1 -1
  206. package/switch/Switch.js +22 -9
  207. package/switch/Switch.stories.tsx +160 -0
  208. package/switch/Switch.test.js +98 -0
  209. package/switch/types.d.ts +4 -0
  210. package/table/Table.d.ts +4 -0
  211. package/table/Table.js +3 -3
  212. package/table/Table.stories.jsx +277 -0
  213. package/table/Table.test.js +26 -0
  214. package/table/types.d.ts +21 -0
  215. package/table/types.js +5 -0
  216. package/tabs/Tabs.js +11 -9
  217. package/tabs/Tabs.stories.tsx +120 -0
  218. package/tabs/Tabs.test.js +123 -0
  219. package/tabs/types.d.ts +25 -18
  220. package/tag/Tag.d.ts +4 -0
  221. package/tag/Tag.js +34 -56
  222. package/tag/Tag.stories.tsx +142 -0
  223. package/tag/Tag.test.js +60 -0
  224. package/tag/types.d.ts +69 -0
  225. package/tag/types.js +5 -0
  226. package/text/Text.d.ts +7 -0
  227. package/text/Text.js +30 -0
  228. package/text/Text.stories.tsx +19 -0
  229. package/text-input/TextInput.d.ts +4 -0
  230. package/text-input/TextInput.js +62 -89
  231. package/text-input/TextInput.stories.tsx +474 -0
  232. package/text-input/TextInput.test.js +1725 -0
  233. package/text-input/types.d.ts +163 -0
  234. package/text-input/types.js +5 -0
  235. package/textarea/Textarea.d.ts +4 -0
  236. package/textarea/Textarea.js +37 -68
  237. package/textarea/Textarea.stories.jsx +37 -15
  238. package/textarea/Textarea.test.js +437 -0
  239. package/textarea/types.d.ts +134 -0
  240. package/textarea/types.js +5 -0
  241. package/toggle-group/ToggleGroup.d.ts +4 -0
  242. package/toggle-group/ToggleGroup.js +18 -46
  243. package/toggle-group/ToggleGroup.stories.tsx +173 -0
  244. package/toggle-group/ToggleGroup.test.js +156 -0
  245. package/toggle-group/types.d.ts +105 -0
  246. package/toggle-group/types.js +5 -0
  247. package/useTheme.d.ts +2 -0
  248. package/useTheme.js +1 -1
  249. package/wizard/Wizard.d.ts +4 -0
  250. package/wizard/Wizard.js +81 -66
  251. package/wizard/Wizard.stories.tsx +214 -0
  252. package/wizard/Wizard.test.js +141 -0
  253. package/wizard/types.d.ts +64 -0
  254. package/wizard/types.js +5 -0
  255. package/V3Select/V3Select.js +0 -455
  256. package/V3Select/index.d.ts +0 -27
  257. package/V3Textarea/V3Textarea.js +0 -260
  258. package/V3Textarea/index.d.ts +0 -27
  259. package/box/index.d.ts +0 -25
  260. package/chip/index.d.ts +0 -22
  261. package/date/Date.js +0 -373
  262. package/date/index.d.ts +0 -27
  263. package/dialog/index.d.ts +0 -18
  264. package/file-input/index.d.ts +0 -81
  265. package/header/index.d.ts +0 -25
  266. package/heading/index.d.ts +0 -17
  267. package/input-text/Icons.js +0 -22
  268. package/input-text/InputText.js +0 -611
  269. package/input-text/index.d.ts +0 -36
  270. package/link/index.d.ts +0 -23
  271. package/number-input/index.d.ts +0 -113
  272. package/password-input/index.d.ts +0 -94
  273. package/resultsetTable/index.d.ts +0 -19
  274. package/select/index.d.ts +0 -131
  275. package/sidenav/index.d.ts +0 -13
  276. package/spinner/index.d.ts +0 -17
  277. package/table/index.d.ts +0 -13
  278. package/tag/index.d.ts +0 -24
  279. package/text-input/index.d.ts +0 -135
  280. package/textarea/index.d.ts +0 -117
  281. package/toggle/Toggle.js +0 -186
  282. package/toggle/index.d.ts +0 -21
  283. package/toggle-group/index.d.ts +0 -21
  284. package/upload/Upload.js +0 -201
  285. package/upload/buttons-upload/ButtonsUpload.js +0 -111
  286. package/upload/buttons-upload/Icons.js +0 -40
  287. package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
  288. package/upload/dragAndDropArea/Icons.js +0 -39
  289. package/upload/file-upload/FileToUpload.js +0 -115
  290. package/upload/file-upload/Icons.js +0 -66
  291. package/upload/files-upload/FilesToUpload.js +0 -109
  292. package/upload/index.d.ts +0 -15
  293. package/upload/transaction/Icons.js +0 -160
  294. package/upload/transaction/Transaction.js +0 -104
  295. package/upload/transactions/Transactions.js +0 -94
  296. package/wizard/Icons.js +0 -65
  297. package/wizard/index.d.ts +0 -18
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ declare type BackgroundColorContext = "dark" | "light";
3
+ declare const BackgroundColorContext: React.Context<BackgroundColorContext>;
4
+ declare type BackgroundColorProviderPropsType = {
5
+ color: string;
6
+ children: React.ReactNode;
7
+ };
8
+ declare const BackgroundColorProvider: ({ color, children }: BackgroundColorProviderPropsType) => JSX.Element;
9
+ export default BackgroundColorContext;
10
+ export { BackgroundColorProvider };
@@ -13,14 +13,11 @@ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _color = _interopRequireDefault(require("color"));
15
15
 
16
- var _rgbHex = _interopRequireDefault(require("rgb-hex"));
17
-
18
16
  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); }
19
17
 
20
18
  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; }
21
19
 
22
- /* eslint-disable prefer-template */
23
- var BackgroundColorContext = /*#__PURE__*/_react["default"].createContext();
20
+ var BackgroundColorContext = /*#__PURE__*/_react["default"].createContext(null);
24
21
 
25
22
  var getColorType = function getColorType(hexColor) {
26
23
  try {
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ declare const ThemeContext: React.Context<object>;
3
+ declare type ThemeProviderPropsType = {
4
+ theme?: object;
5
+ advancedTheme?: object;
6
+ children: React.ReactNode;
7
+ };
8
+ declare const ThemeProvider: ({ theme, advancedTheme, children }: ThemeProviderPropsType) => JSX.Element;
9
+ export default ThemeContext;
10
+ export { ThemeProvider };
package/ThemeContext.js CHANGED
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
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
29
 
30
- var ThemeContext = /*#__PURE__*/_react["default"].createContext();
30
+ var ThemeContext = /*#__PURE__*/_react["default"].createContext(null);
31
31
 
32
32
  var addLightness = function addLightness(hexColor, newLightness) {
33
33
  try {
@@ -81,7 +81,7 @@ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
81
81
  };
82
82
 
83
83
  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$date$baseColor, _theme$date, _theme$date$accentCol, _theme$date2, _setOpacity11, _theme$date3, _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$header$content2, _theme$header10, _setOpacity20, _theme$inputText, _theme$textInput$base, _theme$textInput, _subLightness4, _theme$textInput2, _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, _setOpacity21, _theme$radio2, _theme$V3Select$baseC, _theme$V3Select, _theme$V3Select$fontC, _theme$V3Select2, _theme$V3Select$fontC2, _theme$V3Select3, _addLightness3, _theme$V3Select4, _subLightness5, _theme$V3Select5, _theme$sidenav$baseCo, _theme$sidenav, _setOpacity22, _theme$sidenav2, _theme$sidenav$arrowA, _theme$sidenav3, _theme$slider$baseCol, _theme$slider, _theme$slider$baseCol2, _theme$slider2, _theme$slider$baseCol3, _theme$slider3, _subLightness6, _theme$slider4, _subLightness7, _theme$slider5, _setOpacity23, _theme$slider6, _setOpacity24, _theme$slider7, _setOpacity25, _theme$slider8, _setOpacity26, _theme$slider9, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$switch$checked, _theme$switch, _setOpacity27, _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$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, _setOpacity28, _theme$toggleGroup12, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$fontCol, _theme$wizard2;
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;
85
85
 
86
86
  var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
87
87
  var accordionTokens = componentTokensCopy.accordion;
@@ -120,10 +120,10 @@ var parseTheme = function parseTheme(theme) {
120
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
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
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;
123
- var dateTokens = componentTokensCopy.date;
124
- dateTokens.pickerSelectedDateBackgroundColor = (_theme$date$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$date = theme.date) === null || _theme$date === void 0 ? void 0 : _theme$date.baseColor) !== null && _theme$date$baseColor !== void 0 ? _theme$date$baseColor : dateTokens.pickerSelectedDateBackgroundColor;
125
- dateTokens.pickerSelectedDateColor = (_theme$date$accentCol = theme === null || theme === void 0 ? void 0 : (_theme$date2 = theme.date) === null || _theme$date2 === void 0 ? void 0 : _theme$date2.accentColor) !== null && _theme$date$accentCol !== void 0 ? _theme$date$accentCol : dateTokens.pickerSelectedDateColor;
126
- dateTokens.pickerHoverDateBackgroundColor = (_setOpacity11 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$date3 = theme.date) === null || _theme$date3 === void 0 ? void 0 : _theme$date3.baseColor, 0.34)) !== null && _setOpacity11 !== void 0 ? _setOpacity11 : dateTokens.pickerHoverDateBackgroundColor;
123
+ 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;
127
127
  var dropdownTokens = componentTokensCopy.dropdown;
128
128
  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
129
  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;
@@ -156,12 +156,6 @@ var parseTheme = function parseTheme(theme) {
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;
159
- headerTokens.contentColorOnDark = (_theme$header$content2 = theme === null || theme === void 0 ? void 0 : (_theme$header10 = theme.header) === null || _theme$header10 === void 0 ? void 0 : _theme$header10.contentColorOnDark) !== null && _theme$header$content2 !== void 0 ? _theme$header$content2 : headerTokens.contentColorOnDark;
160
- var inputTextTokens = componentTokensCopy.inputText;
161
- inputTextTokens.selectedOptionBackgroundColor = (_setOpacity20 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$inputText = theme.inputText) === null || _theme$inputText === void 0 ? void 0 : _theme$inputText.selectedBaseColor, 0.34)) !== null && _setOpacity20 !== void 0 ? _setOpacity20 : inputTextTokens.selectedOptionBackgroundColor;
162
- var textInputTokens = componentTokensCopy.textInput;
163
- 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;
164
- textInputTokens.activeListOptionBackgroundColor = (_subLightness4 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$textInput2 = theme.textInput) === null || _theme$textInput2 === void 0 ? void 0 : _theme$textInput2.baseColor, 15)) !== null && _subLightness4 !== void 0 ? _subLightness4 : textInputTokens.activeListOptionBackgroundColor;
165
159
  var paginatorTokens = componentTokensCopy.paginator;
166
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;
167
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;
@@ -170,33 +164,33 @@ var parseTheme = function parseTheme(theme) {
170
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;
171
165
  var radioTokens = componentTokensCopy.radio;
172
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;
173
- radioTokens.disabledColor = (_setOpacity21 = 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 && _setOpacity21 !== void 0 ? _setOpacity21 : radioTokens.disabledColor;
174
- var v3SelectTokens = componentTokensCopy.V3Select;
175
- v3SelectTokens.selectedOptionBackgroundColor = (_theme$V3Select$baseC = theme === null || theme === void 0 ? void 0 : (_theme$V3Select = theme.V3Select) === null || _theme$V3Select === void 0 ? void 0 : _theme$V3Select.baseColor) !== null && _theme$V3Select$baseC !== void 0 ? _theme$V3Select$baseC : v3SelectTokens.selectedOptionBackgroundColor;
176
- v3SelectTokens.optionFontColor = (_theme$V3Select$fontC = theme === null || theme === void 0 ? void 0 : (_theme$V3Select2 = theme.V3Select) === null || _theme$V3Select2 === void 0 ? void 0 : _theme$V3Select2.fontColor) !== null && _theme$V3Select$fontC !== void 0 ? _theme$V3Select$fontC : v3SelectTokens.optionFontColor;
177
- v3SelectTokens.valueFontColor = (_theme$V3Select$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$V3Select3 = theme.V3Select) === null || _theme$V3Select3 === void 0 ? void 0 : _theme$V3Select3.fontColor) !== null && _theme$V3Select$fontC2 !== void 0 ? _theme$V3Select$fontC2 : v3SelectTokens.valueFontColor;
178
- v3SelectTokens.hoverOptionBackgroundColor = (_addLightness3 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$V3Select4 = theme.V3Select) === null || _theme$V3Select4 === void 0 ? void 0 : _theme$V3Select4.baseColor, 10)) !== null && _addLightness3 !== void 0 ? _addLightness3 : v3SelectTokens.hoverOptionBackgroundColor;
179
- v3SelectTokens.activeOptionBackgroundColor = (_subLightness5 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$V3Select5 = theme.V3Select) === null || _theme$V3Select5 === void 0 ? void 0 : _theme$V3Select5.baseColor, 15)) !== null && _subLightness5 !== void 0 ? _subLightness5 : v3SelectTokens.activeOptionBackgroundColor;
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;
168
+ 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;
180
174
  var sideNavTokens = componentTokensCopy.sidenav;
181
175
  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;
182
- sideNavTokens.arrowContainerColor = (_setOpacity22 = 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 && _setOpacity22 !== void 0 ? _setOpacity22 : sideNavTokens.arrowContainerColor;
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;
183
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;
184
178
  var sliderTokens = componentTokensCopy.slider;
185
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;
186
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;
187
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;
188
- sliderTokens.hoverThumbBackgroundColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider4 = theme.slider) === null || _theme$slider4 === void 0 ? void 0 : _theme$slider4.baseColor, 15)) !== null && _subLightness6 !== void 0 ? _subLightness6 : sliderTokens.thumbBackgroundColor;
189
- sliderTokens.activeThumbBackgroundColor = (_subLightness7 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider5 = theme.slider) === null || _theme$slider5 === void 0 ? void 0 : _theme$slider5.baseColor, 15)) !== null && _subLightness7 !== void 0 ? _subLightness7 : sliderTokens.thumbBackgroundColor;
190
- sliderTokens.totalLineColor = (_setOpacity23 = 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 && _setOpacity23 !== void 0 ? _setOpacity23 : sliderTokens.totalLineColor;
191
- sliderTokens.disabledThumbBackgroundColor = (_setOpacity24 = 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 && _setOpacity24 !== void 0 ? _setOpacity24 : sliderTokens.disabledThumbBackgroundColor;
192
- sliderTokens.disabledTickBackgroundColor = (_setOpacity25 = 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 && _setOpacity25 !== void 0 ? _setOpacity25 : sliderTokens.disabledTickBackgroundColor;
193
- sliderTokens.disabledTrackLineColor = (_setOpacity26 = 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 && _setOpacity26 !== void 0 ? _setOpacity26 : sliderTokens.disabledTrackLineColor;
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;
194
188
  var spinnerTokens = componentTokensCopy.spinner;
195
189
  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;
196
190
  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;
197
191
  var switchTokens = componentTokensCopy["switch"];
198
192
  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;
199
- switchTokens.disabledCheckedTrackBackgroundColor = (_setOpacity27 = 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 && _setOpacity27 !== void 0 ? _setOpacity27 : switchTokens.disabledCheckedTrackBackgroundColor;
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;
200
194
  var tableTokens = componentTokensCopy.table;
201
195
  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;
202
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;
@@ -207,6 +201,9 @@ var parseTheme = function parseTheme(theme) {
207
201
  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;
208
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;
209
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;
204
+ 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;
210
207
  var toggleGroupTokens = componentTokensCopy.toggleGroup;
211
208
  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;
212
209
  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;
@@ -216,10 +213,10 @@ var parseTheme = function parseTheme(theme) {
216
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;
217
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;
218
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;
219
- toggleGroupTokens.selectedDisabledFontColor = (_addLightness7 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedBaseColor, 42)) !== null && _addLightness7 !== void 0 ? _addLightness7 : toggleGroupTokens.selectedDisabledFontColor;
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;
220
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;
221
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;
222
- toggleGroupTokens.unselectedDisabledFontColor = (_setOpacity28 = 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 && _setOpacity28 !== void 0 ? _setOpacity28 : toggleGroupTokens.unselectedDisabledFontColor;
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;
223
220
  var wizardTokens = componentTokensCopy.wizard;
224
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;
225
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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import AccordionPropsType from "./types";
3
- declare const DxcAccordion: ({ label, isExpanded, iconSrc, 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;
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  exports["default"] = void 0;
11
11
 
12
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
-
14
12
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
15
13
 
14
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
+
16
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
17
 
18
18
  var _react = _interopRequireWildcard(require("react"));
@@ -31,9 +31,9 @@ var _utils = require("../common/utils.js");
31
31
 
32
32
  var _variables = require("../common/variables.js");
33
33
 
34
- var _useTheme = _interopRequireDefault(require("../useTheme.js"));
34
+ var _useTheme = _interopRequireDefault(require("../useTheme"));
35
35
 
36
- var _BackgroundColorContext = require("../BackgroundColorContext.js");
36
+ var _BackgroundColorContext = require("../BackgroundColorContext");
37
37
 
38
38
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
39
39
 
@@ -44,8 +44,8 @@ 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
- iconSrc = _ref.iconSrc,
49
49
  icon = _ref.icon,
50
50
  _ref$assistiveText = _ref.assistiveText,
51
51
  assistiveText = _ref$assistiveText === void 0 ? "" : _ref$assistiveText,
@@ -58,7 +58,7 @@ var DxcAccordion = function DxcAccordion(_ref) {
58
58
  _ref$tabIndex = _ref.tabIndex,
59
59
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
60
60
 
61
- var _useState = (0, _react.useState)(false),
61
+ var _useState = (0, _react.useState)(defaultIsExpanded !== null && defaultIsExpanded !== void 0 ? defaultIsExpanded : false),
62
62
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
63
63
  innerIsExpanded = _useState2[0],
64
64
  setInnerIsExpanded = _useState2[1];
@@ -102,7 +102,7 @@ var DxcAccordion = function DxcAccordion(_ref) {
102
102
  padding: padding,
103
103
  margin: margin,
104
104
  disabled: disabled,
105
- icon: icon || iconSrc,
105
+ icon: icon,
106
106
  isResponsive: isResponsive
107
107
  }, /*#__PURE__*/_react["default"].createElement(_ExpansionPanel["default"], {
108
108
  disabled: disabled,
@@ -113,11 +113,11 @@ var DxcAccordion = function DxcAccordion(_ref) {
113
113
  tabIndex: disabled ? -1 : tabIndex
114
114
  }, /*#__PURE__*/_react["default"].createElement(AccordionInfo, {
115
115
  disabled: disabled
116
- }, /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, label), icon ? /*#__PURE__*/_react["default"].createElement(IconContainer, {
116
+ }, /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, label), icon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
117
117
  disabled: disabled
118
- }, (0, _typeof2["default"])(icon) === "object" ? icon : /*#__PURE__*/_react["default"].createElement(icon)) : iconSrc && /*#__PURE__*/_react["default"].createElement(AccordionIcon, {
119
- src: iconSrc
120
- })), assistiveText && /*#__PURE__*/_react["default"].createElement(AccordionAssistiveText, {
118
+ }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement(AccordionIcon, {
119
+ src: icon
120
+ }) : icon)), assistiveText && /*#__PURE__*/_react["default"].createElement(AccordionAssistiveText, {
121
121
  disabled: disabled
122
122
  }, assistiveText)), /*#__PURE__*/_react["default"].createElement(_ExpansionPanelDetails["default"], null, /*#__PURE__*/_react["default"].createElement(AccordionContent, {
123
123
  disabled: disabled
@@ -145,7 +145,7 @@ var DXCAccordion = _styledComponents["default"].div(_templateObject || (_templat
145
145
  }, function (props) {
146
146
  return props.disabled && "not-allowed" || "pointer";
147
147
  }, function (props) {
148
- return props.disabled ? props.theme.disabledBackgroundColor : props.theme.backgroundColor;
148
+ return props.theme.backgroundColor;
149
149
  }, function (props) {
150
150
  return "".concat(props.theme.boxShadowOffsetX, " ").concat(props.theme.boxShadowOffsetY, " ").concat(props.theme.boxShadowBlur, " ").concat(props.theme.boxShadowColor);
151
151
  }, function (props) {
@@ -242,17 +242,7 @@ var IconContainer = _styledComponents["default"].div(_templateObject6 || (_templ
242
242
  return props.disabled ? props.theme.disabledIconColor : props.theme.iconColor;
243
243
  });
244
244
 
245
- var AccordionIcon = _styledComponents["default"].img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n margin-left: ", ";\n margin-right: ", ";\n overflow: hidden;\n color: ", ";\n"])), function (props) {
246
- return props.theme.iconSize;
247
- }, function (props) {
248
- return props.theme.iconSize;
249
- }, function (props) {
250
- return props.theme.iconMarginLeft;
251
- }, function (props) {
252
- return props.theme.iconMarginRigth;
253
- }, function (props) {
254
- return props.disabled ? props.theme.disabledIconColor : props.theme.iconColor;
255
- });
245
+ var AccordionIcon = _styledComponents["default"].img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])([""])));
256
246
 
257
247
  var _default = DxcAccordion;
258
248
  exports["default"] = _default;
@@ -0,0 +1,307 @@
1
+ import React from "react";
2
+ import DxcAccordion from "./Accordion";
3
+ import DxcHeading from "../heading/Heading";
4
+ import DxcTextInput from "../text-input/TextInput";
5
+ import DxcButton from "../button/Button";
6
+ import Title from "../../.storybook/components/Title";
7
+ import ExampleContainer from "../../.storybook/components/ExampleContainer";
8
+ import { ThemeProvider } from "../ThemeContext";
9
+
10
+ export default {
11
+ title: "Accordion",
12
+ component: DxcAccordion,
13
+ };
14
+
15
+ const folderIcon = (
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ enable-background="new 0 0 24 24"
19
+ height="24px"
20
+ viewBox="0 0 24 24"
21
+ width="24px"
22
+ fill="currentColor"
23
+ >
24
+ <g>
25
+ <rect fill="none" height="24" width="24" />
26
+ </g>
27
+ <g>
28
+ <path d="M20,6h-8l-2-2H4C2.9,4,2.01,4.9,2.01,6L2,18c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V8C22,6.9,21.1,6,20,6z M16,16h2v-2h-2v-2 h2v-2h-2V8h4v10h-4V16z M16,16h-2v2H4V6h5.17l2,2H14v2h2v2h-2v2h2V16z" />
29
+ </g>
30
+ </svg>
31
+ );
32
+
33
+ const thumbIcon = (
34
+ <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="currentColor">
35
+ <path d="M0 0h24v24H0V0z" fill="none" />
36
+ <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z" />
37
+ </svg>
38
+ );
39
+
40
+ const advancedTheme = {
41
+ accordion: {
42
+ backgroundColor: "#000000",
43
+ assistiveTextFontColor: "#ffffff",
44
+ titleLabelFontColor: "#ffffff",
45
+ arrowColor: "#5f249f",
46
+ iconColor: "#5f249f",
47
+ },
48
+ };
49
+
50
+ export const Chromatic = () => (
51
+ <>
52
+ <Title title="Component anatomy" theme="light" level={2} />
53
+ <ExampleContainer>
54
+ <Title title="With label" theme="light" level={4} />
55
+ <DxcAccordion label="Accordion">
56
+ <div>
57
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
58
+ lobortis eget.
59
+ </div>
60
+ </DxcAccordion>
61
+ </ExampleContainer>
62
+ <ExampleContainer>
63
+ <Title title="With assistive text" theme="light" level={4} />
64
+ <DxcAccordion label="Accordion" assistiveText="Assistive text">
65
+ <div>
66
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
67
+ lobortis eget.
68
+ </div>
69
+ </DxcAccordion>
70
+ </ExampleContainer>
71
+ <ExampleContainer>
72
+ <Title title="With icon" theme="light" level={4} />
73
+ <DxcAccordion label="Accordion" assistiveText="Assistive text" icon={folderIcon}>
74
+ <div>
75
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
76
+ lobortis eget.
77
+ </div>
78
+ </DxcAccordion>
79
+ </ExampleContainer>
80
+ <ExampleContainer>
81
+ <Title title="With bigger icon 48x48" theme="light" level={4} />
82
+ <DxcAccordion label="Accordion" assistiveText="Assistive text" icon={thumbIcon}>
83
+ <div>
84
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
85
+ lobortis eget.
86
+ </div>
87
+ </DxcAccordion>
88
+ </ExampleContainer>
89
+ <Title title="States" theme="light" level={2} />
90
+ <ExampleContainer pseudoState="pseudo-focus">
91
+ <Title title="Focused" theme="light" level={4} />
92
+ <DxcAccordion label="Focused">
93
+ <div>
94
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
95
+ lobortis eget.
96
+ </div>
97
+ </DxcAccordion>
98
+ </ExampleContainer>
99
+ <ExampleContainer pseudoState="pseudo-hover">
100
+ <Title title="Hovered" theme="light" level={4} />
101
+ <DxcAccordion label="Hovered">
102
+ <div>
103
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
104
+ lobortis eget.
105
+ </div>
106
+ </DxcAccordion>
107
+ </ExampleContainer>
108
+ <ExampleContainer pseudoState="pseudo-active">
109
+ <Title title="Active" theme="light" level={4} />
110
+ <DxcAccordion label="Active">
111
+ <div>
112
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
113
+ lobortis eget.
114
+ </div>
115
+ </DxcAccordion>
116
+ </ExampleContainer>
117
+ <ExampleContainer>
118
+ <Title title="Disabled" theme="light" level={4} />
119
+ <DxcAccordion label="Disabled" assistiveText="Assistive text" icon={folderIcon} disabled>
120
+ <div>
121
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
122
+ lobortis eget.
123
+ </div>
124
+ </DxcAccordion>
125
+ </ExampleContainer>
126
+ <ExampleContainer>
127
+ <Title title="Background color provider over accordion content" theme="light" level={4} />
128
+ <ThemeProvider advancedTheme={advancedTheme}>
129
+ <DxcAccordion
130
+ label="Dark Accordion"
131
+ defaultIsExpanded
132
+ assistiveText="Assistive text"
133
+ icon={folderIcon}
134
+ padding="medium"
135
+ >
136
+ <div style={{ display: "flex", flexDirection: "column" }}>
137
+ <DxcTextInput
138
+ label="Label"
139
+ helperText="HelperText"
140
+ placeholder="Placeholder"
141
+ size="fillParent"
142
+ margin={{ bottom: "medium" }}
143
+ />
144
+ <DxcButton label="Submit" size="medium" />
145
+ </div>
146
+ </DxcAccordion>
147
+ </ThemeProvider>
148
+ </ExampleContainer>
149
+ <Title title="Paddings" theme="light" level={2} />
150
+ <ExampleContainer>
151
+ <Title title="Xxsmall padding" theme="light" level={4} />
152
+ <DxcAccordion label="Xxsmall padding" defaultIsExpanded padding="xxsmall">
153
+ <div>
154
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
155
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
156
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
157
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
158
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
159
+ est laborum.
160
+ </div>
161
+ </DxcAccordion>
162
+ </ExampleContainer>
163
+ <ExampleContainer>
164
+ <Title title="Xsmall padding" theme="light" level={4} />
165
+ <DxcAccordion label="Xsmall padding" defaultIsExpanded padding="xsmall">
166
+ <div>
167
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
168
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
169
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
170
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
171
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
172
+ est laborum.
173
+ </div>
174
+ </DxcAccordion>
175
+ </ExampleContainer>
176
+ <ExampleContainer>
177
+ <Title title="Small padding" theme="light" level={4} />
178
+ <DxcAccordion label="Small padding" defaultIsExpanded padding="small">
179
+ <div>
180
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
181
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
182
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
183
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
184
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
185
+ est laborum.
186
+ </div>
187
+ </DxcAccordion>
188
+ </ExampleContainer>
189
+ <ExampleContainer>
190
+ <Title title="Medium padding" theme="light" level={4} />
191
+ <DxcAccordion label="Medium padding" defaultIsExpanded padding="medium">
192
+ <div>
193
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
194
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
195
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
196
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
197
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
198
+ est laborum.
199
+ </div>
200
+ </DxcAccordion>
201
+ </ExampleContainer>
202
+ <ExampleContainer>
203
+ <Title title="Large padding" theme="light" level={4} />
204
+ <DxcAccordion label="Large padding" defaultIsExpanded padding="large">
205
+ <div>
206
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
207
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
208
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
209
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
210
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
211
+ est laborum.
212
+ </div>
213
+ </DxcAccordion>
214
+ </ExampleContainer>
215
+ <ExampleContainer>
216
+ <Title title="Xlarge padding" theme="light" level={4} />
217
+ <DxcAccordion label="Xlarge padding" defaultIsExpanded padding="xlarge">
218
+ <div>
219
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
220
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
221
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
222
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
223
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
224
+ est laborum.
225
+ </div>
226
+ </DxcAccordion>
227
+ </ExampleContainer>
228
+ <ExampleContainer>
229
+ <Title title="Xxlarge padding" theme="light" level={4} />
230
+ <DxcAccordion label="Xxlarge padding" defaultIsExpanded padding="xxlarge">
231
+ <div>
232
+ <DxcHeading level={5} text="Content header" margin={{ bottom: "xxsmall" }} />
233
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
234
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
235
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
236
+ pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
237
+ est laborum.
238
+ </div>
239
+ </DxcAccordion>
240
+ </ExampleContainer>
241
+ <Title title="Margins" theme="light" level={2} />
242
+ <ExampleContainer>
243
+ <Title title="Xxsmall margin" theme="light" level={4} />
244
+ <DxcAccordion label="Xxsmall margin" margin="xxsmall">
245
+ <div>
246
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
247
+ lobortis eget.
248
+ </div>
249
+ </DxcAccordion>
250
+ </ExampleContainer>
251
+ <ExampleContainer>
252
+ <Title title="Xsmall margin" theme="light" level={4} />
253
+ <DxcAccordion label="Xsmall margin" margin="xsmall">
254
+ <div>
255
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
256
+ lobortis eget.
257
+ </div>
258
+ </DxcAccordion>
259
+ </ExampleContainer>
260
+ <ExampleContainer>
261
+ <Title title="Small margin" theme="light" level={4} />
262
+ <DxcAccordion label="Small margin" margin="small">
263
+ <div>
264
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
265
+ lobortis eget.
266
+ </div>
267
+ </DxcAccordion>
268
+ </ExampleContainer>
269
+ <ExampleContainer>
270
+ <Title title="Medium margin" theme="light" level={4} />
271
+ <DxcAccordion label="Medium margin" margin="medium">
272
+ <div>
273
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
274
+ lobortis eget.
275
+ </div>
276
+ </DxcAccordion>
277
+ </ExampleContainer>
278
+ <ExampleContainer>
279
+ <Title title="Large margin" theme="light" level={4} />
280
+ <DxcAccordion label="Large margin" margin="large">
281
+ <div>
282
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
283
+ lobortis eget.
284
+ </div>
285
+ </DxcAccordion>
286
+ </ExampleContainer>
287
+ <ExampleContainer>
288
+ <Title title="Xlarge margin" theme="light" level={4} />
289
+ <DxcAccordion label="Xlarge margin" margin="xlarge">
290
+ <div>
291
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
292
+ lobortis eget.
293
+ </div>
294
+ </DxcAccordion>
295
+ </ExampleContainer>
296
+ <ExampleContainer>
297
+ <Title title="Xxlarge margin" theme="light" level={4} />
298
+ <DxcAccordion label="Xxlarge margin" margin="xxlarge">
299
+ <div>
300
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
301
+ lobortis eget.
302
+ </div>
303
+ </DxcAccordion>
304
+ <hr />
305
+ </ExampleContainer>
306
+ </>
307
+ );