@dxc-technology/halstack-react 0.0.0-ff6151e → 0.0.0-ff99b25

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 (330) hide show
  1. package/BackgroundColorContext.js +50 -0
  2. package/ThemeContext.js +246 -0
  3. package/V3Select/V3Select.js +455 -0
  4. package/V3Select/index.d.ts +27 -0
  5. package/V3Textarea/V3Textarea.js +260 -0
  6. package/V3Textarea/index.d.ts +27 -0
  7. package/accordion/Accordion.d.ts +4 -0
  8. package/accordion/Accordion.js +258 -0
  9. package/accordion/types.d.ts +68 -0
  10. package/accordion/types.js +5 -0
  11. package/accordion-group/AccordionGroup.d.ts +7 -0
  12. package/accordion-group/AccordionGroup.js +170 -0
  13. package/accordion-group/types.d.ts +72 -0
  14. package/accordion-group/types.js +5 -0
  15. package/alert/Alert.d.ts +4 -0
  16. package/alert/Alert.js +290 -0
  17. package/alert/types.d.ts +49 -0
  18. package/alert/types.js +5 -0
  19. package/badge/Badge.js +59 -0
  20. package/{dist/box → box}/Box.js +38 -34
  21. package/box/Box.stories.jsx +132 -0
  22. package/box/index.d.ts +25 -0
  23. package/button/Button.d.ts +4 -0
  24. package/button/Button.js +182 -0
  25. package/button/Button.stories.tsx +293 -0
  26. package/button/types.d.ts +57 -0
  27. package/button/types.js +5 -0
  28. package/card/Card.d.ts +4 -0
  29. package/card/Card.js +165 -0
  30. package/card/types.d.ts +69 -0
  31. package/card/types.js +5 -0
  32. package/checkbox/Checkbox.d.ts +4 -0
  33. package/checkbox/Checkbox.js +253 -0
  34. package/checkbox/types.d.ts +60 -0
  35. package/checkbox/types.js +5 -0
  36. package/chip/Chip.js +221 -0
  37. package/chip/index.d.ts +22 -0
  38. package/{dist/common → common}/OpenSans.css +0 -0
  39. package/{dist/common → common}/RequiredComponent.js +3 -11
  40. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  41. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  42. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  43. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  44. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  45. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  46. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  47. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  48. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  49. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  50. package/common/utils.js +22 -0
  51. package/common/variables.js +1569 -0
  52. package/{dist/date → date}/Date.js +81 -65
  53. package/date/index.d.ts +27 -0
  54. package/date-input/DateInput.d.ts +4 -0
  55. package/date-input/DateInput.js +361 -0
  56. package/date-input/types.d.ts +100 -0
  57. package/date-input/types.js +5 -0
  58. package/dialog/Dialog.d.ts +4 -0
  59. package/dialog/Dialog.js +165 -0
  60. package/dialog/types.d.ts +43 -0
  61. package/dialog/types.js +5 -0
  62. package/dropdown/Dropdown.d.ts +4 -0
  63. package/dropdown/Dropdown.js +417 -0
  64. package/dropdown/types.d.ts +89 -0
  65. package/dropdown/types.js +5 -0
  66. package/file-input/FileInput.js +532 -0
  67. package/file-input/FileItem.js +193 -0
  68. package/file-input/index.d.ts +81 -0
  69. package/footer/Footer.d.ts +4 -0
  70. package/footer/Footer.js +266 -0
  71. package/footer/Footer.stories.jsx +151 -0
  72. package/footer/Icons.js +77 -0
  73. package/footer/types.d.ts +61 -0
  74. package/footer/types.js +5 -0
  75. package/header/Header.js +326 -0
  76. package/header/Icons.js +59 -0
  77. package/header/index.d.ts +25 -0
  78. package/heading/Heading.js +176 -0
  79. package/heading/index.d.ts +17 -0
  80. package/input-text/Icons.js +22 -0
  81. package/input-text/InputText.js +611 -0
  82. package/input-text/index.d.ts +36 -0
  83. package/{dist/layout → layout}/ApplicationLayout.js +42 -142
  84. package/layout/Icons.js +55 -0
  85. package/link/Link.js +183 -0
  86. package/link/index.d.ts +23 -0
  87. package/main.d.ts +44 -0
  88. package/{dist/main.js → main.js} +125 -65
  89. package/number-input/NumberInput.js +128 -0
  90. package/number-input/NumberInput.stories.jsx +115 -0
  91. package/number-input/NumberInputContext.js +16 -0
  92. package/number-input/index.d.ts +113 -0
  93. package/package.json +34 -22
  94. package/paginator/Icons.js +66 -0
  95. package/paginator/Paginator.d.ts +4 -0
  96. package/paginator/Paginator.js +198 -0
  97. package/paginator/types.d.ts +38 -0
  98. package/paginator/types.js +5 -0
  99. package/password-input/PasswordInput.js +199 -0
  100. package/password-input/PasswordInput.stories.jsx +131 -0
  101. package/password-input/index.d.ts +94 -0
  102. package/progress-bar/ProgressBar.d.ts +4 -0
  103. package/progress-bar/ProgressBar.js +170 -0
  104. package/progress-bar/types.d.ts +37 -0
  105. package/progress-bar/types.js +5 -0
  106. package/radio/Radio.d.ts +4 -0
  107. package/radio/Radio.js +174 -0
  108. package/radio/types.d.ts +54 -0
  109. package/radio/types.js +5 -0
  110. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +95 -162
  111. package/resultsetTable/index.d.ts +19 -0
  112. package/select/Select.js +865 -0
  113. package/select/index.d.ts +131 -0
  114. package/sidenav/Sidenav.js +145 -0
  115. package/sidenav/index.d.ts +13 -0
  116. package/slider/Slider.d.ts +4 -0
  117. package/slider/Slider.js +306 -0
  118. package/slider/types.d.ts +83 -0
  119. package/slider/types.js +5 -0
  120. package/spinner/Spinner.js +267 -0
  121. package/spinner/index.d.ts +17 -0
  122. package/switch/Switch.d.ts +4 -0
  123. package/switch/Switch.js +179 -0
  124. package/switch/types.d.ts +58 -0
  125. package/switch/types.js +5 -0
  126. package/table/Table.js +118 -0
  127. package/table/index.d.ts +13 -0
  128. package/tabs/Tabs.d.ts +4 -0
  129. package/tabs/Tabs.js +211 -0
  130. package/tabs/types.d.ts +71 -0
  131. package/tabs/types.js +5 -0
  132. package/tag/Tag.js +208 -0
  133. package/tag/index.d.ts +24 -0
  134. package/text-input/TextInput.js +825 -0
  135. package/text-input/index.d.ts +135 -0
  136. package/textarea/Textarea.js +317 -0
  137. package/textarea/Textarea.stories.jsx +135 -0
  138. package/textarea/index.d.ts +117 -0
  139. package/{dist/toggle → toggle}/Toggle.js +30 -67
  140. package/toggle/index.d.ts +21 -0
  141. package/toggle-group/ToggleGroup.js +243 -0
  142. package/toggle-group/index.d.ts +21 -0
  143. package/{dist/upload → upload}/Upload.js +23 -22
  144. package/upload/buttons-upload/ButtonsUpload.js +111 -0
  145. package/upload/buttons-upload/Icons.js +40 -0
  146. package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
  147. package/upload/dragAndDropArea/Icons.js +39 -0
  148. package/upload/file-upload/FileToUpload.js +115 -0
  149. package/upload/file-upload/Icons.js +66 -0
  150. package/upload/files-upload/FilesToUpload.js +109 -0
  151. package/upload/index.d.ts +15 -0
  152. package/upload/transaction/Icons.js +160 -0
  153. package/upload/transaction/Transaction.js +104 -0
  154. package/upload/transactions/Transactions.js +94 -0
  155. package/{dist/useTheme.js → useTheme.js} +0 -0
  156. package/wizard/Icons.js +65 -0
  157. package/wizard/Wizard.js +271 -0
  158. package/wizard/index.d.ts +18 -0
  159. package/README.md +0 -66
  160. package/babel.config.js +0 -4
  161. package/dist/ThemeContext.js +0 -54
  162. package/dist/accordion/Accordion.js +0 -273
  163. package/dist/accordion/Accordion.stories.js +0 -207
  164. package/dist/accordion/readme.md +0 -96
  165. package/dist/accordion-group/AccordionGroup.js +0 -159
  166. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  167. package/dist/accordion-group/readme.md +0 -70
  168. package/dist/alert/Alert.js +0 -304
  169. package/dist/alert/Alert.stories.js +0 -158
  170. package/dist/alert/close.svg +0 -4
  171. package/dist/alert/error.svg +0 -4
  172. package/dist/alert/info.svg +0 -4
  173. package/dist/alert/readme.md +0 -43
  174. package/dist/alert/success.svg +0 -4
  175. package/dist/alert/warning.svg +0 -4
  176. package/dist/badge/Badge.js +0 -58
  177. package/dist/button/Button.js +0 -202
  178. package/dist/button/Button.stories.js +0 -224
  179. package/dist/button/readme.md +0 -93
  180. package/dist/card/Card.js +0 -217
  181. package/dist/checkbox/Checkbox.js +0 -240
  182. package/dist/checkbox/Checkbox.stories.js +0 -144
  183. package/dist/checkbox/readme.md +0 -116
  184. package/dist/chip/Chip.js +0 -208
  185. package/dist/common/services/example-service.js +0 -10
  186. package/dist/common/services/example-service.test.js +0 -12
  187. package/dist/common/utils.js +0 -42
  188. package/dist/common/variables.js +0 -436
  189. package/dist/date/Date.stories.js +0 -205
  190. package/dist/date/calendar.svg +0 -1
  191. package/dist/date/calendar_dark.svg +0 -1
  192. package/dist/date/readme.md +0 -73
  193. package/dist/dialog/Dialog.js +0 -197
  194. package/dist/dialog/Dialog.stories.js +0 -217
  195. package/dist/dialog/readme.md +0 -32
  196. package/dist/dropdown/Dropdown.js +0 -449
  197. package/dist/dropdown/Dropdown.stories.js +0 -249
  198. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  199. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  200. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  201. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  202. package/dist/dropdown/readme.md +0 -69
  203. package/dist/footer/Footer.js +0 -371
  204. package/dist/footer/Footer.stories.js +0 -94
  205. package/dist/footer/dxc_logo_wht.png +0 -0
  206. package/dist/footer/readme.md +0 -41
  207. package/dist/header/Header.js +0 -373
  208. package/dist/header/Header.stories.js +0 -176
  209. package/dist/header/close_icon.svg +0 -1
  210. package/dist/header/dxc_logo_black.png +0 -0
  211. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  212. package/dist/header/dxc_logo_white.png +0 -0
  213. package/dist/header/hamb_menu_black.svg +0 -1
  214. package/dist/header/hamb_menu_white.svg +0 -1
  215. package/dist/header/readme.md +0 -33
  216. package/dist/heading/Heading.js +0 -153
  217. package/dist/input-text/InputText.js +0 -570
  218. package/dist/input-text/InputText.stories.js +0 -209
  219. package/dist/input-text/error.svg +0 -1
  220. package/dist/input-text/readme.md +0 -91
  221. package/dist/layout/facebook.svg +0 -45
  222. package/dist/layout/linkedin.svg +0 -50
  223. package/dist/layout/twitter.svg +0 -53
  224. package/dist/link/Link.js +0 -192
  225. package/dist/link/readme.md +0 -51
  226. package/dist/paginator/Paginator.js +0 -232
  227. package/dist/paginator/images/next.svg +0 -3
  228. package/dist/paginator/images/nextPage.svg +0 -3
  229. package/dist/paginator/images/previous.svg +0 -3
  230. package/dist/paginator/images/previousPage.svg +0 -3
  231. package/dist/paginator/readme.md +0 -50
  232. package/dist/progress-bar/ProgressBar.js +0 -185
  233. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  234. package/dist/progress-bar/readme.md +0 -63
  235. package/dist/radio/Radio.js +0 -195
  236. package/dist/radio/Radio.stories.js +0 -166
  237. package/dist/radio/readme.md +0 -70
  238. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  239. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  240. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  241. package/dist/select/Select.js +0 -473
  242. package/dist/select/Select.stories.js +0 -235
  243. package/dist/select/readme.md +0 -72
  244. package/dist/sidenav/Sidenav.js +0 -128
  245. package/dist/slider/Slider.js +0 -266
  246. package/dist/slider/Slider.stories.js +0 -241
  247. package/dist/slider/readme.md +0 -64
  248. package/dist/spinner/Spinner.js +0 -193
  249. package/dist/spinner/Spinner.stories.js +0 -183
  250. package/dist/spinner/readme.md +0 -65
  251. package/dist/switch/Switch.js +0 -199
  252. package/dist/switch/Switch.stories.js +0 -134
  253. package/dist/switch/readme.md +0 -133
  254. package/dist/table/Table.js +0 -105
  255. package/dist/tabs/Tabs.js +0 -292
  256. package/dist/tabs/Tabs.stories.js +0 -130
  257. package/dist/tabs/readme.md +0 -78
  258. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  259. package/dist/tabs-for-sections/readme.md +0 -78
  260. package/dist/tag/Tag.js +0 -249
  261. package/dist/textarea/Textarea.js +0 -227
  262. package/dist/toggle/Toggle.stories.js +0 -297
  263. package/dist/toggle/readme.md +0 -80
  264. package/dist/toggle-group/ToggleGroup.js +0 -226
  265. package/dist/toggle-group/readme.md +0 -82
  266. package/dist/upload/Upload.stories.js +0 -72
  267. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -122
  268. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  269. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  270. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -279
  271. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  272. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  273. package/dist/upload/file-upload/FileToUpload.js +0 -158
  274. package/dist/upload/file-upload/audio-icon.svg +0 -4
  275. package/dist/upload/file-upload/close.svg +0 -4
  276. package/dist/upload/file-upload/file-icon.svg +0 -4
  277. package/dist/upload/file-upload/video-icon.svg +0 -4
  278. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  279. package/dist/upload/readme.md +0 -37
  280. package/dist/upload/transaction/Transaction.js +0 -155
  281. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  282. package/dist/upload/transaction/audio-icon.svg +0 -4
  283. package/dist/upload/transaction/error-icon.svg +0 -4
  284. package/dist/upload/transaction/file-icon-err.svg +0 -4
  285. package/dist/upload/transaction/file-icon.svg +0 -4
  286. package/dist/upload/transaction/image-icon-err.svg +0 -4
  287. package/dist/upload/transaction/image-icon.svg +0 -4
  288. package/dist/upload/transaction/success-icon.svg +0 -4
  289. package/dist/upload/transaction/video-icon-err.svg +0 -4
  290. package/dist/upload/transaction/video-icon.svg +0 -4
  291. package/dist/upload/transactions/Transactions.js +0 -120
  292. package/dist/wizard/Wizard.js +0 -331
  293. package/dist/wizard/invalid_icon.svg +0 -6
  294. package/dist/wizard/valid_icon.svg +0 -6
  295. package/dist/wizard/validation-wrong.svg +0 -6
  296. package/test/Accordion.test.js +0 -33
  297. package/test/AccordionGroup.test.js +0 -109
  298. package/test/Alert.test.js +0 -53
  299. package/test/Box.test.js +0 -10
  300. package/test/Button.test.js +0 -18
  301. package/test/Card.test.js +0 -30
  302. package/test/Checkbox.test.js +0 -45
  303. package/test/Chip.test.js +0 -25
  304. package/test/Date.test.js +0 -393
  305. package/test/Dialog.test.js +0 -23
  306. package/test/Dropdown.test.js +0 -130
  307. package/test/Footer.test.js +0 -99
  308. package/test/Header.test.js +0 -39
  309. package/test/Heading.test.js +0 -35
  310. package/test/InputText.test.js +0 -240
  311. package/test/Link.test.js +0 -42
  312. package/test/Paginator.test.js +0 -194
  313. package/test/ProgressBar.test.js +0 -35
  314. package/test/Radio.test.js +0 -37
  315. package/test/ResultsetTable.test.js +0 -304
  316. package/test/Select.test.js +0 -192
  317. package/test/Sidenav.test.js +0 -45
  318. package/test/Slider.test.js +0 -82
  319. package/test/Spinner.test.js +0 -27
  320. package/test/Switch.test.js +0 -45
  321. package/test/Table.test.js +0 -36
  322. package/test/Tabs.test.js +0 -109
  323. package/test/TabsForSections.test.js +0 -34
  324. package/test/Tag.test.js +0 -32
  325. package/test/TextArea.test.js +0 -52
  326. package/test/ToggleGroup.test.js +0 -81
  327. package/test/Upload.test.js +0 -60
  328. package/test/Wizard.test.js +0 -130
  329. package/test/mocks/pngMock.js +0 -1
  330. package/test/mocks/svgMock.js +0 -1
@@ -0,0 +1,50 @@
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.BackgroundColorProvider = void 0;
11
+
12
+ var _react = _interopRequireWildcard(require("react"));
13
+
14
+ var _color = _interopRequireDefault(require("color"));
15
+
16
+ var _rgbHex = _interopRequireDefault(require("rgb-hex"));
17
+
18
+ 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
+
20
+ 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
+
22
+ /* eslint-disable prefer-template */
23
+ var BackgroundColorContext = /*#__PURE__*/_react["default"].createContext();
24
+
25
+ var getColorType = function getColorType(hexColor) {
26
+ try {
27
+ if (hexColor) {
28
+ var hslColor = (0, _color["default"])(hexColor).hsl();
29
+ var lightnessColor = hslColor.color[2];
30
+ return lightnessColor <= 30 ? "dark" : "light";
31
+ }
32
+ } catch (e) {
33
+ return "light";
34
+ }
35
+ };
36
+
37
+ var BackgroundColorProvider = function BackgroundColorProvider(_ref) {
38
+ var color = _ref.color,
39
+ children = _ref.children;
40
+ var colorType = (0, _react.useMemo)(function () {
41
+ return getColorType(color);
42
+ }, [color]);
43
+ return /*#__PURE__*/_react["default"].createElement(BackgroundColorContext.Provider, {
44
+ value: colorType
45
+ }, children);
46
+ };
47
+
48
+ exports.BackgroundColorProvider = BackgroundColorProvider;
49
+ var _default = BackgroundColorContext;
50
+ exports["default"] = _default;
@@ -0,0 +1,246 @@
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.ThemeProvider = 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 ThemeContext = /*#__PURE__*/_react["default"].createContext();
31
+
32
+ var addLightness = function addLightness(hexColor, newLightness) {
33
+ try {
34
+ if (hexColor) {
35
+ var color = (0, _color["default"])(hexColor);
36
+ var hslColor = color.hsl();
37
+ var lightnessColor = hslColor.color[2];
38
+ return hslColor.lightness(lightnessColor + newLightness).hex();
39
+ }
40
+ } catch (e) {
41
+ return null;
42
+ }
43
+ };
44
+
45
+ var subLightness = function subLightness(hexColor, newLightness) {
46
+ try {
47
+ if (hexColor) {
48
+ var color = (0, _color["default"])(hexColor);
49
+ var hslColor = color.hsl();
50
+ var lightnessColor = hslColor.color[2];
51
+ return hslColor.lightness(lightnessColor - newLightness).hex();
52
+ }
53
+ } catch (e) {
54
+ return null;
55
+ }
56
+ };
57
+
58
+ var setOpacity = function setOpacity(hexColor, newOpacity) {
59
+ try {
60
+ if (hexColor) {
61
+ var color = (0, _color["default"])(hexColor);
62
+ return "#" + (0, _rgbHex["default"])(color.color[0], color.color[1], color.color[2], newOpacity);
63
+ }
64
+ } catch (e) {
65
+ return null;
66
+ }
67
+ };
68
+
69
+ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
70
+ var allTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
71
+ Object.keys(allTokensCopy).map(function (component) {
72
+ if (advancedTheme[component]) {
73
+ Object.keys(advancedTheme[component]).map(function (objectKey) {
74
+ if (advancedTheme[component][objectKey]) {
75
+ allTokensCopy[component][objectKey] = advancedTheme[component][objectKey];
76
+ }
77
+ });
78
+ }
79
+ });
80
+ return allTokensCopy;
81
+ };
82
+
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;
85
+
86
+ var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
87
+ var accordionTokens = componentTokensCopy.accordion;
88
+ 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;
89
+ 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;
90
+ 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;
91
+ accordionTokens.iconColor = (_theme$accordion$acce2 = theme === null || theme === void 0 ? void 0 : (_theme$accordion4 = theme.accordion) === null || _theme$accordion4 === void 0 ? void 0 : _theme$accordion4.accentColor) !== null && _theme$accordion$acce2 !== void 0 ? _theme$accordion$acce2 : accordionTokens.iconColor;
92
+ accordionTokens.focusBorderColor = (_theme$accordion$acce3 = theme === null || theme === void 0 ? void 0 : (_theme$accordion5 = theme.accordion) === null || _theme$accordion5 === void 0 ? void 0 : _theme$accordion5.accentColor) !== null && _theme$accordion$acce3 !== void 0 ? _theme$accordion$acce3 : accordionTokens.focusBorderColor;
93
+ accordionTokens.hoverBackgroundColor = (_setOpacity = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion6 = theme.accordion) === null || _theme$accordion6 === void 0 ? void 0 : _theme$accordion6.accentColor, 0.16)) !== null && _setOpacity !== void 0 ? _setOpacity : accordionTokens.hoverBackgroundColor;
94
+ accordionTokens.disabledAssistiveTextFontColor = (_setOpacity2 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion7 = theme.accordion) === null || _theme$accordion7 === void 0 ? void 0 : _theme$accordion7.fontColor, 0.34)) !== null && _setOpacity2 !== void 0 ? _setOpacity2 : accordionTokens.disabledAssistiveTextFontColor;
95
+ accordionTokens.disabledTitleLabelFontColor = (_setOpacity3 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion8 = theme.accordion) === null || _theme$accordion8 === void 0 ? void 0 : _theme$accordion8.fontColor, 0.34)) !== null && _setOpacity3 !== void 0 ? _setOpacity3 : accordionTokens.disabledTitleLabelFontColor;
96
+ accordionTokens.disabledArrowColor = (_setOpacity4 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion9 = theme.accordion) === null || _theme$accordion9 === void 0 ? void 0 : _theme$accordion9.accentColor, 0.34)) !== null && _setOpacity4 !== void 0 ? _setOpacity4 : accordionTokens.disabledArrowColor;
97
+ accordionTokens.disabledIconColor = (_setOpacity5 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$accordion10 = theme.accordion) === null || _theme$accordion10 === void 0 ? void 0 : _theme$accordion10.accentColor, 0.34)) !== null && _setOpacity5 !== void 0 ? _setOpacity5 : accordionTokens.disabledIconColor;
98
+ 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.disabledBackgroundColorChecked = (_setOpacity6 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox4 = theme.checkbox) === null || _theme$checkbox4 === void 0 ? void 0 : _theme$checkbox4.baseColor, 0.34)) !== null && _setOpacity6 !== void 0 ? _setOpacity6 : checkboxTokens.disabledBackgroundColorChecked;
116
+ checkboxTokens.disabledBorderColor = (_setOpacity7 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox5 = theme.checkbox) === null || _theme$checkbox5 === void 0 ? void 0 : _theme$checkbox5.baseColor, 0.34)) !== null && _setOpacity7 !== void 0 ? _setOpacity7 : checkboxTokens.disabledBorderColor;
117
+ checkboxTokens.disabledCheckColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$checkbox6 = theme.checkbox) === null || _theme$checkbox6 === void 0 ? void 0 : _theme$checkbox6.checkColor, 0.34)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : checkboxTokens.disabledCheckColor;
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.disabledBackgroundColor = (_setOpacity9 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$chip2 = theme.chip) === null || _theme$chip2 === void 0 ? void 0 : _theme$chip2.baseColor, 0.34)) !== null && _setOpacity9 !== void 0 ? _setOpacity9 : chipTokens.disabledBackgroundColor;
121
+ chipTokens.fontColor = (_theme$chip$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$chip3 = theme.chip) === null || _theme$chip3 === void 0 ? void 0 : _theme$chip3.fontColor) !== null && _theme$chip$fontColor !== void 0 ? _theme$chip$fontColor : chipTokens.fontColor;
122
+ chipTokens.disabledFontColor = (_setOpacity10 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$chip4 = theme.chip) === null || _theme$chip4 === void 0 ? void 0 : _theme$chip4.fontColor, 0.34)) !== null && _setOpacity10 !== void 0 ? _setOpacity10 : chipTokens.disabledFontColor;
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;
127
+ var dropdownTokens = componentTokensCopy.dropdown;
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
+ dropdownTokens.buttonFontColor = (_theme$dropdown$fontC = theme === null || theme === void 0 ? void 0 : (_theme$dropdown2 = theme.dropdown) === null || _theme$dropdown2 === void 0 ? void 0 : _theme$dropdown2.fontColor) !== null && _theme$dropdown$fontC !== void 0 ? _theme$dropdown$fontC : dropdownTokens.buttonFontColor;
130
+ dropdownTokens.hoverButtonBackgroundColor = (_setOpacity12 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown3 = theme.dropdown) === null || _theme$dropdown3 === void 0 ? void 0 : _theme$dropdown3.baseColor, 0.34)) !== null && _setOpacity12 !== void 0 ? _setOpacity12 : dropdownTokens.hoverButtonBackgroundColor;
131
+ dropdownTokens.activeButtonBackgroundColor = (_setOpacity13 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown4 = theme.dropdown) === null || _theme$dropdown4 === void 0 ? void 0 : _theme$dropdown4.baseColor, 0.7)) !== null && _setOpacity13 !== void 0 ? _setOpacity13 : dropdownTokens.activeButtonBackgroundColor;
132
+ dropdownTokens.hoverOptionBackgroundColor = (_setOpacity14 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown5 = theme.dropdown) === null || _theme$dropdown5 === void 0 ? void 0 : _theme$dropdown5.baseColor, 0.34)) !== null && _setOpacity14 !== void 0 ? _setOpacity14 : dropdownTokens.hoverOptionBackgroundColor;
133
+ dropdownTokens.activeOptionBackgroundColor = (_setOpacity15 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$dropdown6 = theme.dropdown) === null || _theme$dropdown6 === void 0 ? void 0 : _theme$dropdown6.baseColor, 0.7)) !== null && _setOpacity15 !== void 0 ? _setOpacity15 : dropdownTokens.activeOptionBackgroundColor;
134
+ var fileInputTokens = componentTokensCopy.fileInput;
135
+ fileInputTokens.labelFontColor = (_theme$fileInput$font = theme === null || theme === void 0 ? void 0 : (_theme$fileInput = theme.fileInput) === null || _theme$fileInput === void 0 ? void 0 : _theme$fileInput.fontColor) !== null && _theme$fileInput$font !== void 0 ? _theme$fileInput$font : fileInputTokens.labelFontColor;
136
+ fileInputTokens.helperTextFontColor = (_theme$fileInput$font2 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput2 = theme.fileInput) === null || _theme$fileInput2 === void 0 ? void 0 : _theme$fileInput2.fontColor) !== null && _theme$fileInput$font2 !== void 0 ? _theme$fileInput$font2 : fileInputTokens.helperTextFontColor;
137
+ fileInputTokens.dropLabelFontColor = (_theme$fileInput$font3 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput3 = theme.fileInput) === null || _theme$fileInput3 === void 0 ? void 0 : _theme$fileInput3.fontColor) !== null && _theme$fileInput$font3 !== void 0 ? _theme$fileInput$font3 : fileInputTokens.dropLabelFontColor;
138
+ fileInputTokens.fileNameFontColor = (_theme$fileInput$font4 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput4 = theme.fileInput) === null || _theme$fileInput4 === void 0 ? void 0 : _theme$fileInput4.fontColor) !== null && _theme$fileInput$font4 !== void 0 ? _theme$fileInput$font4 : fileInputTokens.fileNameFontColor;
139
+ fileInputTokens.disabledLabelFontColor = (_setOpacity16 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput5 = theme.fileInput) === null || _theme$fileInput5 === void 0 ? void 0 : _theme$fileInput5.fontColor, 0.34)) !== null && _setOpacity16 !== void 0 ? _setOpacity16 : fileInputTokens.disabledLabelFontColor;
140
+ fileInputTokens.disabledHelperTextFontcolor = (_setOpacity17 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput6 = theme.fileInput) === null || _theme$fileInput6 === void 0 ? void 0 : _theme$fileInput6.fontColor, 0.34)) !== null && _setOpacity17 !== void 0 ? _setOpacity17 : fileInputTokens.disabledHelperTextFontcolor;
141
+ fileInputTokens.disabledDropLabelFontColor = (_setOpacity18 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$fileInput7 = theme.fileInput) === null || _theme$fileInput7 === void 0 ? void 0 : _theme$fileInput7.fontColor, 0.34)) !== null && _setOpacity18 !== void 0 ? _setOpacity18 : fileInputTokens.disabledDropLabelFontColor;
142
+ 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 = (_setOpacity19 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$header6 = theme.header) === null || _theme$header6 === void 0 ? void 0 : _theme$header6.hamburguerColor, 0.16)) !== null && _setOpacity19 !== void 0 ? _setOpacity19 : headerTokens.hamburguerHoverColor;
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
+ 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
+ var paginatorTokens = componentTokensCopy.paginator;
166
+ 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
+ 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;
168
+ var progressBarTokens = componentTokensCopy.progressBar;
169
+ 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;
170
+ 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
+ var radioTokens = componentTokensCopy.radio;
172
+ 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;
180
+ var sideNavTokens = componentTokensCopy.sidenav;
181
+ 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;
183
+ 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
+ var sliderTokens = componentTokensCopy.slider;
185
+ 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
+ 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
+ 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;
194
+ var spinnerTokens = componentTokensCopy.spinner;
195
+ 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
+ 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
+ var switchTokens = componentTokensCopy["switch"];
198
+ 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;
200
+ var tableTokens = componentTokensCopy.table;
201
+ 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
+ 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;
203
+ var tabsTokens = componentTokensCopy.tabs;
204
+ 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;
205
+ 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;
206
+ 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;
207
+ 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
+ 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
+ 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;
210
+ var toggleGroupTokens = componentTokensCopy.toggleGroup;
211
+ 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
+ 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;
213
+ 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;
214
+ 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;
215
+ 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;
216
+ 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
+ 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
+ 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;
220
+ 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
+ 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;
223
+ var wizardTokens = componentTokensCopy.wizard;
224
+ 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
+ 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;
226
+ return componentTokensCopy;
227
+ };
228
+
229
+ var ThemeProvider = function ThemeProvider(_ref) {
230
+ var theme = _ref.theme,
231
+ advancedTheme = _ref.advancedTheme,
232
+ children = _ref.children;
233
+ var parsedTheme = (0, _react.useMemo)(function () {
234
+ return theme && parseTheme(theme) || advancedTheme && parseAdvancedTheme(advancedTheme);
235
+ }, [theme, advancedTheme]);
236
+ return /*#__PURE__*/_react["default"].createElement(Halstack, null, /*#__PURE__*/_react["default"].createElement(ThemeContext.Provider, {
237
+ value: parsedTheme
238
+ }, children));
239
+ };
240
+
241
+ exports.ThemeProvider = ThemeProvider;
242
+
243
+ 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"])));
244
+
245
+ var _default = ThemeContext;
246
+ exports["default"] = _default;