@dxc-technology/halstack-react 3.4.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +47 -0
  3. package/HalstackContext.d.ts +10 -0
  4. package/HalstackContext.js +243 -0
  5. package/accordion/Accordion.d.ts +4 -0
  6. package/accordion/Accordion.js +226 -0
  7. package/accordion/Accordion.stories.tsx +307 -0
  8. package/accordion/Accordion.test.js +72 -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 +168 -0
  13. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  14. package/accordion-group/AccordionGroup.test.js +151 -0
  15. package/accordion-group/types.d.ts +72 -0
  16. package/accordion-group/types.js +5 -0
  17. package/alert/Alert.d.ts +4 -0
  18. package/{dist/alert → alert}/Alert.js +44 -157
  19. package/alert/Alert.stories.tsx +170 -0
  20. package/alert/Alert.test.js +92 -0
  21. package/alert/types.d.ts +49 -0
  22. package/alert/types.js +5 -0
  23. package/badge/Badge.d.ts +4 -0
  24. package/badge/Badge.js +59 -0
  25. package/badge/types.d.ts +4 -0
  26. package/badge/types.js +5 -0
  27. package/bleed/Bleed.d.ts +3 -0
  28. package/bleed/Bleed.js +84 -0
  29. package/bleed/Bleed.stories.tsx +342 -0
  30. package/bleed/types.d.ts +37 -0
  31. package/bleed/types.js +5 -0
  32. package/box/Box.d.ts +4 -0
  33. package/{dist/box → box}/Box.js +15 -45
  34. package/box/Box.stories.tsx +132 -0
  35. package/box/Box.test.js +18 -0
  36. package/box/types.d.ts +43 -0
  37. package/box/types.js +5 -0
  38. package/button/Button.d.ts +4 -0
  39. package/{dist/button → button}/Button.js +34 -100
  40. package/button/Button.stories.tsx +274 -0
  41. package/button/Button.test.js +35 -0
  42. package/button/types.d.ts +53 -0
  43. package/button/types.js +5 -0
  44. package/card/Card.d.ts +4 -0
  45. package/card/Card.js +163 -0
  46. package/card/Card.stories.tsx +201 -0
  47. package/card/Card.test.js +50 -0
  48. package/card/ice-cream.jpg +0 -0
  49. package/card/types.d.ts +67 -0
  50. package/card/types.js +5 -0
  51. package/checkbox/Checkbox.d.ts +4 -0
  52. package/{dist/checkbox → checkbox}/Checkbox.js +53 -99
  53. package/checkbox/Checkbox.stories.tsx +188 -0
  54. package/checkbox/Checkbox.test.js +78 -0
  55. package/checkbox/types.d.ts +64 -0
  56. package/checkbox/types.js +5 -0
  57. package/chip/Chip.d.ts +4 -0
  58. package/chip/Chip.js +161 -0
  59. package/chip/Chip.stories.tsx +119 -0
  60. package/chip/Chip.test.js +56 -0
  61. package/chip/types.d.ts +45 -0
  62. package/chip/types.js +5 -0
  63. package/{dist/common → common}/OpenSans.css +0 -0
  64. package/{dist/common → common}/RequiredComponent.js +3 -11
  65. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  66. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  67. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  68. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  69. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  70. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  71. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  72. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  73. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  74. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  75. package/{dist/common → common}/utils.js +0 -0
  76. package/{dist/common → common}/variables.js +350 -339
  77. package/date-input/DateInput.d.ts +4 -0
  78. package/date-input/DateInput.js +369 -0
  79. package/date-input/DateInput.stories.tsx +138 -0
  80. package/date-input/DateInput.test.js +479 -0
  81. package/date-input/types.d.ts +107 -0
  82. package/date-input/types.js +5 -0
  83. package/dialog/Dialog.d.ts +4 -0
  84. package/dialog/Dialog.js +138 -0
  85. package/dialog/Dialog.stories.tsx +212 -0
  86. package/dialog/Dialog.test.js +40 -0
  87. package/dialog/types.d.ts +43 -0
  88. package/dialog/types.js +5 -0
  89. package/dropdown/Dropdown.d.ts +4 -0
  90. package/{dist/dropdown → dropdown}/Dropdown.js +54 -207
  91. package/dropdown/Dropdown.stories.tsx +249 -0
  92. package/dropdown/Dropdown.test.js +189 -0
  93. package/dropdown/types.d.ts +80 -0
  94. package/dropdown/types.js +5 -0
  95. package/file-input/FileInput.d.ts +4 -0
  96. package/file-input/FileInput.js +590 -0
  97. package/file-input/FileInput.stories.tsx +507 -0
  98. package/file-input/FileInput.test.js +457 -0
  99. package/file-input/FileItem.d.ts +14 -0
  100. package/file-input/FileItem.js +184 -0
  101. package/file-input/types.d.ts +112 -0
  102. package/file-input/types.js +5 -0
  103. package/footer/Footer.d.ts +4 -0
  104. package/footer/Footer.js +183 -0
  105. package/footer/Footer.stories.tsx +130 -0
  106. package/footer/Footer.test.js +109 -0
  107. package/footer/Icons.d.ts +2 -0
  108. package/footer/Icons.js +77 -0
  109. package/footer/types.d.ts +65 -0
  110. package/footer/types.js +5 -0
  111. package/header/Header.d.ts +7 -0
  112. package/header/Header.js +300 -0
  113. package/header/Header.stories.tsx +172 -0
  114. package/header/Header.test.js +79 -0
  115. package/header/Icons.d.ts +2 -0
  116. package/header/Icons.js +34 -0
  117. package/header/types.d.ts +47 -0
  118. package/header/types.js +5 -0
  119. package/heading/Heading.d.ts +4 -0
  120. package/{dist/heading → heading}/Heading.js +31 -90
  121. package/heading/Heading.stories.tsx +54 -0
  122. package/heading/Heading.test.js +186 -0
  123. package/heading/types.d.ts +33 -0
  124. package/heading/types.js +5 -0
  125. package/inset/Inset.d.ts +3 -0
  126. package/inset/Inset.js +84 -0
  127. package/inset/Inset.stories.tsx +229 -0
  128. package/inset/types.d.ts +37 -0
  129. package/inset/types.js +5 -0
  130. package/layout/ApplicationLayout.d.ts +10 -0
  131. package/layout/ApplicationLayout.js +218 -0
  132. package/layout/ApplicationLayout.stories.tsx +171 -0
  133. package/layout/Icons.js +55 -0
  134. package/layout/types.d.ts +57 -0
  135. package/layout/types.js +5 -0
  136. package/link/Link.d.ts +3 -0
  137. package/{dist/link → link}/Link.js +23 -115
  138. package/link/Link.stories.tsx +151 -0
  139. package/link/Link.test.js +91 -0
  140. package/link/types.d.ts +70 -0
  141. package/link/types.js +5 -0
  142. package/list/List.d.ts +4 -0
  143. package/list/List.js +47 -0
  144. package/list/List.stories.tsx +95 -0
  145. package/list/types.d.ts +7 -0
  146. package/list/types.js +5 -0
  147. package/main.d.ts +47 -0
  148. package/{dist/main.js → main.js} +137 -101
  149. package/number-input/NumberInput.d.ts +4 -0
  150. package/number-input/NumberInput.js +76 -0
  151. package/number-input/NumberInput.stories.tsx +115 -0
  152. package/number-input/NumberInput.test.js +506 -0
  153. package/number-input/NumberInputContext.d.ts +4 -0
  154. package/{dist/number/NumberContext.js → number-input/NumberInputContext.js} +6 -3
  155. package/number-input/numberInputContextTypes.d.ts +19 -0
  156. package/number-input/numberInputContextTypes.js +5 -0
  157. package/number-input/types.d.ts +124 -0
  158. package/number-input/types.js +5 -0
  159. package/package.json +37 -27
  160. package/paginator/Icons.js +66 -0
  161. package/paginator/Paginator.d.ts +4 -0
  162. package/paginator/Paginator.js +192 -0
  163. package/paginator/Paginator.stories.tsx +63 -0
  164. package/paginator/Paginator.test.js +266 -0
  165. package/paginator/types.d.ts +38 -0
  166. package/paginator/types.js +5 -0
  167. package/password-input/PasswordInput.d.ts +4 -0
  168. package/{dist/password/Password.js → password-input/PasswordInput.js} +46 -83
  169. package/password-input/PasswordInput.stories.tsx +131 -0
  170. package/password-input/PasswordInput.test.js +181 -0
  171. package/password-input/types.d.ts +110 -0
  172. package/password-input/types.js +5 -0
  173. package/progress-bar/ProgressBar.d.ts +4 -0
  174. package/{dist/progress-bar → progress-bar}/ProgressBar.js +22 -94
  175. package/progress-bar/ProgressBar.stories.jsx +58 -0
  176. package/progress-bar/ProgressBar.test.js +65 -0
  177. package/progress-bar/types.d.ts +37 -0
  178. package/progress-bar/types.js +5 -0
  179. package/quick-nav/QuickNav.d.ts +4 -0
  180. package/quick-nav/QuickNav.js +64 -0
  181. package/quick-nav/QuickNav.stories.tsx +237 -0
  182. package/quick-nav/types.d.ts +21 -0
  183. package/quick-nav/types.js +5 -0
  184. package/radio/Radio.d.ts +4 -0
  185. package/{dist/radio → radio}/Radio.js +23 -59
  186. package/radio/Radio.stories.tsx +192 -0
  187. package/radio/Radio.test.js +71 -0
  188. package/radio/types.d.ts +54 -0
  189. package/radio/types.js +5 -0
  190. package/radio-group/Radio.d.ts +4 -0
  191. package/radio-group/Radio.js +141 -0
  192. package/radio-group/RadioGroup.d.ts +4 -0
  193. package/radio-group/RadioGroup.js +280 -0
  194. package/radio-group/RadioGroup.stories.tsx +100 -0
  195. package/radio-group/RadioGroup.test.js +695 -0
  196. package/radio-group/types.d.ts +114 -0
  197. package/radio-group/types.js +5 -0
  198. package/resultsetTable/ResultsetTable.d.ts +4 -0
  199. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +43 -147
  200. package/resultsetTable/ResultsetTable.stories.tsx +275 -0
  201. package/resultsetTable/ResultsetTable.test.js +306 -0
  202. package/resultsetTable/types.d.ts +67 -0
  203. package/resultsetTable/types.js +5 -0
  204. package/row/Row.d.ts +3 -0
  205. package/row/Row.js +127 -0
  206. package/row/Row.stories.tsx +237 -0
  207. package/row/types.d.ts +28 -0
  208. package/row/types.js +5 -0
  209. package/select/Icons.d.ts +10 -0
  210. package/select/Icons.js +93 -0
  211. package/select/Listbox.d.ts +4 -0
  212. package/select/Listbox.js +148 -0
  213. package/select/Option.d.ts +4 -0
  214. package/select/Option.js +110 -0
  215. package/select/Select.d.ts +4 -0
  216. package/select/Select.js +655 -0
  217. package/select/Select.stories.tsx +582 -0
  218. package/select/Select.test.js +2057 -0
  219. package/select/types.d.ts +213 -0
  220. package/select/types.js +5 -0
  221. package/sidenav/Sidenav.d.ts +9 -0
  222. package/sidenav/Sidenav.js +136 -0
  223. package/sidenav/Sidenav.stories.tsx +182 -0
  224. package/sidenav/Sidenav.test.js +56 -0
  225. package/sidenav/types.d.ts +50 -0
  226. package/sidenav/types.js +5 -0
  227. package/slider/Slider.d.ts +4 -0
  228. package/slider/Slider.js +318 -0
  229. package/slider/Slider.stories.tsx +177 -0
  230. package/slider/Slider.test.js +150 -0
  231. package/slider/types.d.ts +82 -0
  232. package/slider/types.js +5 -0
  233. package/spinner/Spinner.d.ts +4 -0
  234. package/spinner/Spinner.js +250 -0
  235. package/spinner/Spinner.stories.jsx +103 -0
  236. package/spinner/Spinner.test.js +64 -0
  237. package/spinner/types.d.ts +32 -0
  238. package/spinner/types.js +5 -0
  239. package/stack/Stack.d.ts +3 -0
  240. package/stack/Stack.js +97 -0
  241. package/stack/Stack.stories.tsx +164 -0
  242. package/stack/types.d.ts +24 -0
  243. package/stack/types.js +5 -0
  244. package/switch/Switch.d.ts +4 -0
  245. package/switch/Switch.js +192 -0
  246. package/switch/Switch.stories.tsx +160 -0
  247. package/switch/Switch.test.js +98 -0
  248. package/switch/types.d.ts +62 -0
  249. package/switch/types.js +5 -0
  250. package/table/Table.d.ts +4 -0
  251. package/{dist/table → table}/Table.js +12 -26
  252. package/table/Table.stories.jsx +277 -0
  253. package/table/Table.test.js +26 -0
  254. package/table/types.d.ts +21 -0
  255. package/table/types.js +5 -0
  256. package/tabs/Tabs.d.ts +4 -0
  257. package/tabs/Tabs.js +211 -0
  258. package/tabs/Tabs.stories.tsx +118 -0
  259. package/tabs/Tabs.test.js +140 -0
  260. package/tabs/types.d.ts +82 -0
  261. package/tabs/types.js +5 -0
  262. package/tag/Tag.d.ts +4 -0
  263. package/tag/Tag.js +183 -0
  264. package/tag/Tag.stories.tsx +142 -0
  265. package/tag/Tag.test.js +60 -0
  266. package/tag/types.d.ts +69 -0
  267. package/tag/types.js +5 -0
  268. package/text/Text.d.ts +7 -0
  269. package/text/Text.js +30 -0
  270. package/text/Text.stories.tsx +19 -0
  271. package/text-input/TextInput.d.ts +4 -0
  272. package/text-input/TextInput.js +796 -0
  273. package/text-input/TextInput.stories.tsx +474 -0
  274. package/text-input/TextInput.test.js +1712 -0
  275. package/text-input/types.d.ts +166 -0
  276. package/text-input/types.js +5 -0
  277. package/textarea/Textarea.d.ts +4 -0
  278. package/{dist/new-textarea/NewTextarea.js → textarea/Textarea.js} +95 -155
  279. package/textarea/Textarea.stories.jsx +157 -0
  280. package/textarea/Textarea.test.js +437 -0
  281. package/textarea/types.d.ts +137 -0
  282. package/textarea/types.js +5 -0
  283. package/toggle-group/ToggleGroup.d.ts +4 -0
  284. package/toggle-group/ToggleGroup.js +215 -0
  285. package/toggle-group/ToggleGroup.stories.tsx +173 -0
  286. package/toggle-group/ToggleGroup.test.js +156 -0
  287. package/toggle-group/types.d.ts +105 -0
  288. package/toggle-group/types.js +5 -0
  289. package/useTheme.d.ts +2 -0
  290. package/{dist/useTheme.js → useTheme.js} +2 -2
  291. package/wizard/Wizard.d.ts +4 -0
  292. package/wizard/Wizard.js +290 -0
  293. package/wizard/Wizard.stories.tsx +214 -0
  294. package/wizard/Wizard.test.js +141 -0
  295. package/wizard/types.d.ts +64 -0
  296. package/wizard/types.js +5 -0
  297. package/README.md +0 -66
  298. package/babel.config.js +0 -8
  299. package/dist/BackgroundColorContext.js +0 -46
  300. package/dist/ThemeContext.js +0 -240
  301. package/dist/accordion/Accordion.js +0 -353
  302. package/dist/accordion-group/AccordionGroup.js +0 -186
  303. package/dist/badge/Badge.js +0 -63
  304. package/dist/card/Card.js +0 -254
  305. package/dist/checkbox/Checkbox.stories.js +0 -144
  306. package/dist/checkbox/readme.md +0 -116
  307. package/dist/chip/Chip.js +0 -265
  308. package/dist/date/Date.js +0 -381
  309. package/dist/date/Date.stories.js +0 -205
  310. package/dist/date/readme.md +0 -73
  311. package/dist/dialog/Dialog.js +0 -218
  312. package/dist/footer/Footer.js +0 -395
  313. package/dist/footer/Footer.stories.js +0 -94
  314. package/dist/footer/dxc_logo.svg +0 -15
  315. package/dist/footer/readme.md +0 -41
  316. package/dist/header/Header.js +0 -403
  317. package/dist/header/Header.stories.js +0 -176
  318. package/dist/header/close_icon.svg +0 -1
  319. package/dist/header/dxc_logo_black.svg +0 -8
  320. package/dist/header/hamb_menu_black.svg +0 -1
  321. package/dist/header/hamb_menu_white.svg +0 -1
  322. package/dist/header/readme.md +0 -33
  323. package/dist/input-text/InputText.js +0 -707
  324. package/dist/input-text/InputText.stories.js +0 -209
  325. package/dist/input-text/error.svg +0 -1
  326. package/dist/input-text/readme.md +0 -91
  327. package/dist/layout/ApplicationLayout.js +0 -331
  328. package/dist/layout/facebook.svg +0 -45
  329. package/dist/layout/linkedin.svg +0 -50
  330. package/dist/layout/twitter.svg +0 -53
  331. package/dist/link/readme.md +0 -51
  332. package/dist/new-date/NewDate.js +0 -403
  333. package/dist/new-input-text/NewInputText.js +0 -961
  334. package/dist/number/Number.js +0 -138
  335. package/dist/paginator/Paginator.js +0 -289
  336. package/dist/paginator/images/next.svg +0 -3
  337. package/dist/paginator/images/nextPage.svg +0 -3
  338. package/dist/paginator/images/previous.svg +0 -3
  339. package/dist/paginator/images/previousPage.svg +0 -3
  340. package/dist/paginator/readme.md +0 -50
  341. package/dist/password/styles.css +0 -3
  342. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  343. package/dist/progress-bar/readme.md +0 -63
  344. package/dist/radio/Radio.stories.js +0 -166
  345. package/dist/radio/readme.md +0 -70
  346. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  347. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  348. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  349. package/dist/select/Select.js +0 -585
  350. package/dist/select/Select.stories.js +0 -235
  351. package/dist/select/readme.md +0 -72
  352. package/dist/sidenav/Sidenav.js +0 -177
  353. package/dist/slider/Slider.js +0 -319
  354. package/dist/slider/Slider.stories.js +0 -241
  355. package/dist/slider/readme.md +0 -64
  356. package/dist/spinner/Spinner.js +0 -381
  357. package/dist/spinner/Spinner.stories.js +0 -183
  358. package/dist/spinner/readme.md +0 -65
  359. package/dist/switch/Switch.js +0 -222
  360. package/dist/switch/Switch.stories.js +0 -134
  361. package/dist/switch/readme.md +0 -133
  362. package/dist/tabs/Tabs.js +0 -343
  363. package/dist/tabs/Tabs.stories.js +0 -130
  364. package/dist/tabs/readme.md +0 -78
  365. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  366. package/dist/tabs-for-sections/readme.md +0 -78
  367. package/dist/tag/Tag.js +0 -288
  368. package/dist/textarea/Textarea.js +0 -264
  369. package/dist/toggle/Toggle.js +0 -220
  370. package/dist/toggle/Toggle.stories.js +0 -297
  371. package/dist/toggle/readme.md +0 -80
  372. package/dist/toggle-group/ToggleGroup.js +0 -223
  373. package/dist/upload/Upload.js +0 -205
  374. package/dist/upload/Upload.stories.js +0 -72
  375. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -139
  376. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  377. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  378. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
  379. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  380. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  381. package/dist/upload/file-upload/FileToUpload.js +0 -184
  382. package/dist/upload/file-upload/audio-icon.svg +0 -4
  383. package/dist/upload/file-upload/close.svg +0 -4
  384. package/dist/upload/file-upload/file-icon.svg +0 -4
  385. package/dist/upload/file-upload/video-icon.svg +0 -4
  386. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  387. package/dist/upload/readme.md +0 -37
  388. package/dist/upload/transaction/Transaction.js +0 -175
  389. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  390. package/dist/upload/transaction/audio-icon.svg +0 -4
  391. package/dist/upload/transaction/error-icon.svg +0 -4
  392. package/dist/upload/transaction/file-icon-err.svg +0 -4
  393. package/dist/upload/transaction/file-icon.svg +0 -4
  394. package/dist/upload/transaction/image-icon-err.svg +0 -4
  395. package/dist/upload/transaction/image-icon.svg +0 -4
  396. package/dist/upload/transaction/success-icon.svg +0 -4
  397. package/dist/upload/transaction/video-icon-err.svg +0 -4
  398. package/dist/upload/transaction/video-icon.svg +0 -4
  399. package/dist/upload/transactions/Transactions.js +0 -138
  400. package/dist/wizard/Wizard.js +0 -411
  401. package/dist/wizard/invalid_icon.svg +0 -5
  402. package/dist/wizard/valid_icon.svg +0 -5
  403. package/dist/wizard/validation-wrong.svg +0 -6
  404. package/test/Accordion.test.js +0 -33
  405. package/test/AccordionGroup.test.js +0 -125
  406. package/test/Alert.test.js +0 -53
  407. package/test/Box.test.js +0 -10
  408. package/test/Button.test.js +0 -18
  409. package/test/Card.test.js +0 -30
  410. package/test/Checkbox.test.js +0 -45
  411. package/test/Chip.test.js +0 -25
  412. package/test/Date.test.js +0 -393
  413. package/test/Dialog.test.js +0 -23
  414. package/test/Dropdown.test.js +0 -145
  415. package/test/Footer.test.js +0 -99
  416. package/test/Header.test.js +0 -39
  417. package/test/Heading.test.js +0 -35
  418. package/test/InputText.test.js +0 -240
  419. package/test/Link.test.js +0 -43
  420. package/test/NewDate.test.js +0 -203
  421. package/test/NewInputText.test.js +0 -817
  422. package/test/NewTextarea.test.js +0 -201
  423. package/test/Number.test.js +0 -241
  424. package/test/Paginator.test.js +0 -177
  425. package/test/Password.test.js +0 -76
  426. package/test/ProgressBar.test.js +0 -35
  427. package/test/Radio.test.js +0 -37
  428. package/test/ResultsetTable.test.js +0 -330
  429. package/test/Select.test.js +0 -189
  430. package/test/Sidenav.test.js +0 -45
  431. package/test/Slider.test.js +0 -82
  432. package/test/Spinner.test.js +0 -32
  433. package/test/Switch.test.js +0 -45
  434. package/test/Table.test.js +0 -36
  435. package/test/Tabs.test.js +0 -109
  436. package/test/TabsForSections.test.js +0 -34
  437. package/test/Tag.test.js +0 -32
  438. package/test/TextArea.test.js +0 -52
  439. package/test/ToggleGroup.test.js +0 -81
  440. package/test/Upload.test.js +0 -60
  441. package/test/Wizard.test.js +0 -130
  442. package/test/mocks/pngMock.js +0 -1
  443. package/test/mocks/svgMock.js +0 -1
@@ -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 };
@@ -0,0 +1,47 @@
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
+ 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); }
17
+
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; }
19
+
20
+ var BackgroundColorContext = /*#__PURE__*/_react["default"].createContext(null);
21
+
22
+ var getColorType = function getColorType(hexColor) {
23
+ try {
24
+ if (hexColor) {
25
+ var hslColor = (0, _color["default"])(hexColor).hsl();
26
+ var lightnessColor = hslColor.color[2];
27
+ return lightnessColor <= 30 ? "dark" : "light";
28
+ }
29
+ } catch (e) {
30
+ return "light";
31
+ }
32
+ };
33
+
34
+ var BackgroundColorProvider = function BackgroundColorProvider(_ref) {
35
+ var color = _ref.color,
36
+ children = _ref.children;
37
+ var colorType = (0, _react.useMemo)(function () {
38
+ return getColorType(color);
39
+ }, [color]);
40
+ return /*#__PURE__*/_react["default"].createElement(BackgroundColorContext.Provider, {
41
+ value: colorType
42
+ }, children);
43
+ };
44
+
45
+ exports.BackgroundColorProvider = BackgroundColorProvider;
46
+ var _default = BackgroundColorContext;
47
+ exports["default"] = _default;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ declare const HalstackContext: React.Context<object>;
3
+ declare type HalstackProviderPropsType = {
4
+ theme?: object;
5
+ advancedTheme?: object;
6
+ children: React.ReactNode;
7
+ };
8
+ declare const HalstackProvider: ({ theme, advancedTheme, children }: HalstackProviderPropsType) => JSX.Element;
9
+ export default HalstackContext;
10
+ export { HalstackProvider };
@@ -0,0 +1,243 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = exports.HalstackProvider = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _color = _interopRequireDefault(require("color"));
17
+
18
+ var _rgbHex = _interopRequireDefault(require("rgb-hex"));
19
+
20
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
21
+
22
+ var _variables = require("./common/variables.js");
23
+
24
+ var _templateObject;
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ var HalstackContext = /*#__PURE__*/_react["default"].createContext(null);
31
+
32
+ var 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$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
+
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.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
+ 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
+ var paginatorTokens = componentTokensCopy.paginator;
160
+ paginatorTokens.backgroundColor = (_theme$paginator$base = theme === null || theme === void 0 ? void 0 : (_theme$paginator = theme.paginator) === null || _theme$paginator === void 0 ? void 0 : _theme$paginator.baseColor) !== null && _theme$paginator$base !== void 0 ? _theme$paginator$base : paginatorTokens.backgroundColor;
161
+ paginatorTokens.fontColor = (_theme$paginator$font = theme === null || theme === void 0 ? void 0 : (_theme$paginator2 = theme.paginator) === null || _theme$paginator2 === void 0 ? void 0 : _theme$paginator2.fontColor) !== null && _theme$paginator$font !== void 0 ? _theme$paginator$font : paginatorTokens.fontColor;
162
+ var progressBarTokens = componentTokensCopy.progressBar;
163
+ progressBarTokens.trackLineColor = (_theme$progressBar$ac = theme === null || theme === void 0 ? void 0 : (_theme$progressBar = theme.progressBar) === null || _theme$progressBar === void 0 ? void 0 : _theme$progressBar.accentColor) !== null && _theme$progressBar$ac !== void 0 ? _theme$progressBar$ac : progressBarTokens.trackLineColor;
164
+ progressBarTokens.totalLineColor = (_theme$progressBar$ba = theme === null || theme === void 0 ? void 0 : (_theme$progressBar2 = theme.progressBar) === null || _theme$progressBar2 === void 0 ? void 0 : _theme$progressBar2.baseColor) !== null && _theme$progressBar$ba !== void 0 ? _theme$progressBar$ba : progressBarTokens.totalLineColor;
165
+ var radioTokens = componentTokensCopy.radio;
166
+ radioTokens.color = (_theme$radio$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$radio = theme.radio) === null || _theme$radio === void 0 ? void 0 : _theme$radio.baseColor) !== null && _theme$radio$baseColo !== void 0 ? _theme$radio$baseColo : radioTokens.color;
167
+ radioTokens.disabledColor = (_setOpacity20 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$radio2 = theme.radio) === null || _theme$radio2 === void 0 ? void 0 : _theme$radio2.baseColor, 0.34)) !== null && _setOpacity20 !== void 0 ? _setOpacity20 : radioTokens.disabledColor;
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;
174
+ var sideNavTokens = componentTokensCopy.sidenav;
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;
176
+ sideNavTokens.arrowContainerColor = (_setOpacity21 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$sidenav2 = theme.sidenav) === null || _theme$sidenav2 === void 0 ? void 0 : _theme$sidenav2.arrowBaseColor, 0.8)) !== null && _setOpacity21 !== void 0 ? _setOpacity21 : sideNavTokens.arrowContainerColor;
177
+ sideNavTokens.arrowColor = (_theme$sidenav$arrowA = theme === null || theme === void 0 ? void 0 : (_theme$sidenav3 = theme.sidenav) === null || _theme$sidenav3 === void 0 ? void 0 : _theme$sidenav3.arrowAccentColor) !== null && _theme$sidenav$arrowA !== void 0 ? _theme$sidenav$arrowA : sideNavTokens.arrowColor;
178
+ var sliderTokens = componentTokensCopy.slider;
179
+ sliderTokens.thumbBackgroundColor = (_theme$slider$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$slider = theme.slider) === null || _theme$slider === void 0 ? void 0 : _theme$slider.baseColor) !== null && _theme$slider$baseCol !== void 0 ? _theme$slider$baseCol : sliderTokens.thumbBackgroundColor;
180
+ sliderTokens.tickBackgroundColor = (_theme$slider$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$slider2 = theme.slider) === null || _theme$slider2 === void 0 ? void 0 : _theme$slider2.baseColor) !== null && _theme$slider$baseCol2 !== void 0 ? _theme$slider$baseCol2 : sliderTokens.tickBackgroundColor;
181
+ sliderTokens.trackLineColor = (_theme$slider$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$slider3 = theme.slider) === null || _theme$slider3 === void 0 ? void 0 : _theme$slider3.baseColor) !== null && _theme$slider$baseCol3 !== void 0 ? _theme$slider$baseCol3 : sliderTokens.trackLineColor;
182
+ sliderTokens.hoverThumbBackgroundColor = (_subLightness5 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider4 = theme.slider) === null || _theme$slider4 === void 0 ? void 0 : _theme$slider4.baseColor, 15)) !== null && _subLightness5 !== void 0 ? _subLightness5 : sliderTokens.thumbBackgroundColor;
183
+ sliderTokens.activeThumbBackgroundColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider5 = theme.slider) === null || _theme$slider5 === void 0 ? void 0 : _theme$slider5.baseColor, 15)) !== null && _subLightness6 !== void 0 ? _subLightness6 : sliderTokens.thumbBackgroundColor;
184
+ sliderTokens.totalLineColor = (_setOpacity22 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider6 = theme.slider) === null || _theme$slider6 === void 0 ? void 0 : _theme$slider6.baseColor, 0.34)) !== null && _setOpacity22 !== void 0 ? _setOpacity22 : sliderTokens.totalLineColor;
185
+ sliderTokens.disabledThumbBackgroundColor = (_setOpacity23 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider7 = theme.slider) === null || _theme$slider7 === void 0 ? void 0 : _theme$slider7.baseColor, 0.34)) !== null && _setOpacity23 !== void 0 ? _setOpacity23 : sliderTokens.disabledThumbBackgroundColor;
186
+ sliderTokens.disabledTickBackgroundColor = (_setOpacity24 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.baseColor, 0.34)) !== null && _setOpacity24 !== void 0 ? _setOpacity24 : sliderTokens.disabledTickBackgroundColor;
187
+ sliderTokens.disabledTrackLineColor = (_setOpacity25 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor, 0.34)) !== null && _setOpacity25 !== void 0 ? _setOpacity25 : sliderTokens.disabledTrackLineColor;
188
+ var spinnerTokens = componentTokensCopy.spinner;
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;
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;
191
+ var switchTokens = componentTokensCopy["switch"];
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;
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;
194
+ var tableTokens = componentTokensCopy.table;
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;
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;
197
+ var tabsTokens = componentTokensCopy.tabs;
198
+ tabsTokens.selectedFontColor = (_theme$tabs$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$tabs = theme.tabs) === null || _theme$tabs === void 0 ? void 0 : _theme$tabs.baseColor) !== null && _theme$tabs$baseColor !== void 0 ? _theme$tabs$baseColor : tabsTokens.selectedFontColor;
199
+ tabsTokens.selectedIconColor = (_theme$tabs$baseColor2 = theme === null || theme === void 0 ? void 0 : (_theme$tabs2 = theme.tabs) === null || _theme$tabs2 === void 0 ? void 0 : _theme$tabs2.baseColor) !== null && _theme$tabs$baseColor2 !== void 0 ? _theme$tabs$baseColor2 : tabsTokens.selectedIconColor;
200
+ tabsTokens.selectedUnderlineColor = (_theme$tabs$baseColor3 = theme === null || theme === void 0 ? void 0 : (_theme$tabs3 = theme.tabs) === null || _theme$tabs3 === void 0 ? void 0 : _theme$tabs3.baseColor) !== null && _theme$tabs$baseColor3 !== void 0 ? _theme$tabs$baseColor3 : tabsTokens.selectedUnderlineColor;
201
+ tabsTokens.focusOutline = (_theme$tabs$baseColor4 = theme === null || theme === void 0 ? void 0 : (_theme$tabs4 = theme.tabs) === null || _theme$tabs4 === void 0 ? void 0 : _theme$tabs4.baseColor) !== null && _theme$tabs$baseColor4 !== void 0 ? _theme$tabs$baseColor4 : tabsTokens.focusOutline;
202
+ tabsTokens.hoverBackgroundColor = (_addLightness4 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs5 = theme.tabs) === null || _theme$tabs5 === void 0 ? void 0 : _theme$tabs5.baseColor, 58)) !== null && _addLightness4 !== void 0 ? _addLightness4 : tabsTokens.hoverBackgroundColor;
203
+ tabsTokens.pressedBackgroundColor = (_addLightness5 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$tabs6 = theme.tabs) === null || _theme$tabs6 === void 0 ? void 0 : _theme$tabs6.baseColor, 53)) !== null && _addLightness5 !== void 0 ? _addLightness5 : tabsTokens.pressedBackgroundColor;
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;
207
+ var toggleGroupTokens = componentTokensCopy.toggleGroup;
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;
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;
210
+ toggleGroupTokens.unselectedBackgroundColor = (_theme$toggleGroup$un = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup3 = theme.toggleGroup) === null || _theme$toggleGroup3 === void 0 ? void 0 : _theme$toggleGroup3.unselectedBaseColor) !== null && _theme$toggleGroup$un !== void 0 ? _theme$toggleGroup$un : toggleGroupTokens.unselectedBackgroundColor;
211
+ toggleGroupTokens.unselectedActiveBackgroundColor = (_theme$toggleGroup$se3 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup4 = theme.toggleGroup) === null || _theme$toggleGroup4 === void 0 ? void 0 : _theme$toggleGroup4.selectedBaseColor) !== null && _theme$toggleGroup$se3 !== void 0 ? _theme$toggleGroup$se3 : toggleGroupTokens.unselectedActiveBackgroundColor;
212
+ toggleGroupTokens.unselectedFontColor = (_theme$toggleGroup$un2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup5 = theme.toggleGroup) === null || _theme$toggleGroup5 === void 0 ? void 0 : _theme$toggleGroup5.unselectedFontColor) !== null && _theme$toggleGroup$un2 !== void 0 ? _theme$toggleGroup$un2 : toggleGroupTokens.unselectedFontColor;
213
+ toggleGroupTokens.selectedHoverBackgroundColor = (_subLightness8 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup6 = theme.toggleGroup) === null || _theme$toggleGroup6 === void 0 ? void 0 : _theme$toggleGroup6.selectedBaseColor, 8)) !== null && _subLightness8 !== void 0 ? _subLightness8 : buttonTokens.selectedHoverBackgroundColor;
214
+ toggleGroupTokens.selectedActiveBackgroundColor = (_subLightness9 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup7 = theme.toggleGroup) === null || _theme$toggleGroup7 === void 0 ? void 0 : _theme$toggleGroup7.selectedBaseColor, 18)) !== null && _subLightness9 !== void 0 ? _subLightness9 : toggleGroupTokens.selectedActiveBackgroundColor;
215
+ toggleGroupTokens.selectedDisabledBackgroundColor = (_addLightness6 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup8 = theme.toggleGroup) === null || _theme$toggleGroup8 === void 0 ? void 0 : _theme$toggleGroup8.selectedBaseColor, 57)) !== null && _addLightness6 !== void 0 ? _addLightness6 : toggleGroupTokens.selectedDisabledBackgroundColor;
216
+ toggleGroupTokens.selectedDisabledFontColor = (_addLightness7 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedFontColor, 42)) !== null && _addLightness7 !== void 0 ? _addLightness7 : toggleGroupTokens.selectedDisabledFontColor;
217
+ toggleGroupTokens.unselectedHoverBackgroundColor = (_subLightness10 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup10 = theme.toggleGroup) === null || _theme$toggleGroup10 === void 0 ? void 0 : _theme$toggleGroup10.unselectedBaseColor, 8)) !== null && _subLightness10 !== void 0 ? _subLightness10 : toggleGroupTokens.unselectedHoverBackgroundColor;
218
+ toggleGroupTokens.unselectedDisabledBackgroundColor = (_addLightness8 = addLightness(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup11 = theme.toggleGroup) === null || _theme$toggleGroup11 === void 0 ? void 0 : _theme$toggleGroup11.unselectedBaseColor, 5)) !== null && _addLightness8 !== void 0 ? _addLightness8 : toggleGroupTokens.unselectedDisabledBackgroundColor;
219
+ toggleGroupTokens.unselectedDisabledFontColor = (_setOpacity27 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup12 = theme.toggleGroup) === null || _theme$toggleGroup12 === void 0 ? void 0 : _theme$toggleGroup12.unselectedFontColor, 0.34)) !== null && _setOpacity27 !== void 0 ? _setOpacity27 : toggleGroupTokens.unselectedDisabledFontColor;
220
+ var wizardTokens = componentTokensCopy.wizard;
221
+ wizardTokens.stepContainerSelectedBackgroundColor = (_theme$wizard$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard = theme.wizard) === null || _theme$wizard === void 0 ? void 0 : _theme$wizard.baseColor) !== null && _theme$wizard$baseCol !== void 0 ? _theme$wizard$baseCol : wizardTokens.stepContainerSelectedBackgroundColor;
222
+ wizardTokens.stepContainerSelectedFontColor = (_theme$wizard$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.fontColor) !== null && _theme$wizard$fontCol !== void 0 ? _theme$wizard$fontCol : wizardTokens.stepContainerSelectedFontColor;
223
+ return componentTokensCopy;
224
+ };
225
+
226
+ var HalstackProvider = function HalstackProvider(_ref) {
227
+ var theme = _ref.theme,
228
+ advancedTheme = _ref.advancedTheme,
229
+ children = _ref.children;
230
+ var parsedTheme = (0, _react.useMemo)(function () {
231
+ return theme && parseTheme(theme) || advancedTheme && parseAdvancedTheme(advancedTheme);
232
+ }, [theme, advancedTheme]);
233
+ return /*#__PURE__*/_react["default"].createElement(Halstack, null, /*#__PURE__*/_react["default"].createElement(HalstackContext.Provider, {
234
+ value: parsedTheme
235
+ }, children));
236
+ };
237
+
238
+ exports.HalstackProvider = HalstackProvider;
239
+
240
+ 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"])));
241
+
242
+ var _default = HalstackContext;
243
+ exports["default"] = _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import AccordionPropsType from "./types";
3
+ declare const DxcAccordion: ({ label, defaultIsExpanded, isExpanded, icon, assistiveText, disabled, onChange, children, margin, padding, tabIndex, }: AccordionPropsType) => JSX.Element;
4
+ export default DxcAccordion;
@@ -0,0 +1,226 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof3 = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
+
14
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
+
16
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
+
18
+ var _react = _interopRequireWildcard(require("react"));
19
+
20
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
21
+
22
+ var _ExpansionPanel = _interopRequireDefault(require("@material-ui/core/ExpansionPanel"));
23
+
24
+ var _ExpansionPanelSummary = _interopRequireDefault(require("@material-ui/core/ExpansionPanelSummary"));
25
+
26
+ var _ExpansionPanelDetails = _interopRequireDefault(require("@material-ui/core/ExpansionPanelDetails"));
27
+
28
+ var _ExpandMore = _interopRequireDefault(require("@material-ui/icons/ExpandMore"));
29
+
30
+ var _utils = require("../common/utils.js");
31
+
32
+ var _variables = require("../common/variables.js");
33
+
34
+ var _useTheme = _interopRequireDefault(require("../useTheme"));
35
+
36
+ var _BackgroundColorContext = require("../BackgroundColorContext");
37
+
38
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
39
+
40
+ 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); }
41
+
42
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
43
+
44
+ var DxcAccordion = function DxcAccordion(_ref) {
45
+ var _ref$label = _ref.label,
46
+ label = _ref$label === void 0 ? "" : _ref$label,
47
+ defaultIsExpanded = _ref.defaultIsExpanded,
48
+ isExpanded = _ref.isExpanded,
49
+ icon = _ref.icon,
50
+ _ref$assistiveText = _ref.assistiveText,
51
+ assistiveText = _ref$assistiveText === void 0 ? "" : _ref$assistiveText,
52
+ _ref$disabled = _ref.disabled,
53
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
54
+ onChange = _ref.onChange,
55
+ children = _ref.children,
56
+ margin = _ref.margin,
57
+ padding = _ref.padding,
58
+ _ref$tabIndex = _ref.tabIndex,
59
+ tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
60
+
61
+ var _useState = (0, _react.useState)(defaultIsExpanded !== null && defaultIsExpanded !== void 0 ? defaultIsExpanded : false),
62
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
63
+ innerIsExpanded = _useState2[0],
64
+ setInnerIsExpanded = _useState2[1];
65
+
66
+ var colorsTheme = (0, _useTheme["default"])();
67
+
68
+ var handlerAccordion = function handlerAccordion() {
69
+ if (isExpanded == null) {
70
+ setInnerIsExpanded(!innerIsExpanded);
71
+ }
72
+
73
+ if (typeof onChange === "function") {
74
+ onChange(isExpanded == null ? !innerIsExpanded : !isExpanded);
75
+ }
76
+ };
77
+
78
+ return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
79
+ theme: colorsTheme.accordion
80
+ }, /*#__PURE__*/_react["default"].createElement(DXCAccordion, {
81
+ padding: padding,
82
+ margin: margin,
83
+ disabled: disabled,
84
+ icon: icon
85
+ }, /*#__PURE__*/_react["default"].createElement(_ExpansionPanel["default"], {
86
+ disabled: disabled,
87
+ onChange: handlerAccordion,
88
+ expanded: isExpanded != null ? isExpanded : innerIsExpanded
89
+ }, /*#__PURE__*/_react["default"].createElement(_ExpansionPanelSummary["default"], {
90
+ expandIcon: /*#__PURE__*/_react["default"].createElement(_ExpandMore["default"], null),
91
+ tabIndex: disabled ? -1 : tabIndex
92
+ }, /*#__PURE__*/_react["default"].createElement(AccordionInfo, {
93
+ disabled: disabled
94
+ }, icon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
95
+ disabled: disabled
96
+ }, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement(AccordionIcon, {
97
+ src: icon
98
+ }) : icon), /*#__PURE__*/_react["default"].createElement(AccordionLabel, null, label)), assistiveText && /*#__PURE__*/_react["default"].createElement(AccordionAssistiveText, {
99
+ disabled: disabled
100
+ }, assistiveText)), /*#__PURE__*/_react["default"].createElement(_ExpansionPanelDetails["default"], null, /*#__PURE__*/_react["default"].createElement(AccordionContent, {
101
+ disabled: disabled
102
+ }, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
103
+ color: colorsTheme.accordion.backgroundColor
104
+ }, children))))));
105
+ };
106
+
107
+ var calculateWidth = function calculateWidth(margin) {
108
+ return "calc(100% - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
109
+ };
110
+
111
+ var DXCAccordion = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n min-width: 280px;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n cursor: ", ";\n\n .MuiPaper-root {\n min-width: 0;\n display: flex;\n left: 85px;\n background-color: ", " !important;\n box-shadow: ", ";\n position: static;\n width: 100%;\n border-radius: ", ";\n\n &.Mui-expanded {\n border-radius: ", ";\n }\n &.MuiExpansionPanel-root {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n }\n &.MuiExpansionPanel-rounded {\n border-radius: ", ";\n }\n .MuiButtonBase-root.MuiExpansionPanelSummary-root {\n min-height: 48px;\n height: 48px;\n\n :focus {\n outline-color: ", ";\n outline-style: ", ";\n outline-width: ", ";\n background-color: ", ";\n }\n :hover {\n background-color: ", ";\n }\n :active {\n background-color: ", ";\n }\n &.Mui-disabled {\n opacity: 1;\n }\n }\n .MuiButtonBase-root {\n border-radius: ", ";\n\n &.Mui-expanded {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n .MuiSvgIcon-root {\n opacity: 1;\n }\n }\n &.MuiIconButton-root {\n height: auto;\n }\n .MuiExpansionPanelSummary-content {\n padding-top: ", ";\n padding-bottom: ", ";\n padding-right: ", ";\n padding-left: ", ";\n min-width: 0;\n &.Mui-expanded {\n div:nth-child(2) {\n opacity: 1;\n }\n }\n :hover {\n div {\n opacity: 1;\n }\n }\n }\n }\n .MuiTouchRipple-root {\n display: none;\n }\n }\n .MuiCollapse-hidden {\n display: none;\n }\n .MuiCollapse-container {\n border-radius: 0px 0px 4px 4px;\n cursor: default;\n width: 100%;\n }\n .MuiIconButton-label {\n & > .MuiSvgIcon-root {\n color: ", ";\n }\n }\n .MuiExpansionPanelDetails-root {\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"])), function (props) {
112
+ return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
113
+ }, function (props) {
114
+ return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
115
+ }, function (props) {
116
+ return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.right ? _variables.spaces[props.margin.right] : "";
117
+ }, function (props) {
118
+ return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
119
+ }, function (props) {
120
+ return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
121
+ }, function (props) {
122
+ return calculateWidth(props.margin);
123
+ }, function (props) {
124
+ return props.disabled && "not-allowed" || "pointer";
125
+ }, function (props) {
126
+ return props.theme.backgroundColor;
127
+ }, function (props) {
128
+ return "".concat(props.theme.boxShadowOffsetX, " ").concat(props.theme.boxShadowOffsetY, " ").concat(props.theme.boxShadowBlur, " ").concat(props.theme.boxShadowColor);
129
+ }, function (props) {
130
+ return props.theme.borderRadius;
131
+ }, function (props) {
132
+ return props.theme.borderRadius;
133
+ }, function (props) {
134
+ return props.theme.borderRadius;
135
+ }, function (props) {
136
+ return props.theme.focusBorderColor;
137
+ }, function (props) {
138
+ return props.theme.focusBorderStyle;
139
+ }, function (props) {
140
+ return props.theme.focusBorderThickness;
141
+ }, function (props) {
142
+ return props.theme.backgroundColor;
143
+ }, function (props) {
144
+ return "".concat(props.theme.hoverBackgroundColor);
145
+ }, function (props) {
146
+ return "".concat(props.theme.hoverBackgroundColor);
147
+ }, function (props) {
148
+ return props.theme.borderRadius;
149
+ }, function (props) {
150
+ return props.theme.titleLabelPaddingTop;
151
+ }, function (props) {
152
+ return props.theme.titleLabelPaddingBottom;
153
+ }, function (props) {
154
+ return props.theme.titleLabelPaddingRight;
155
+ }, function (props) {
156
+ return props.theme.titleLabelPaddingLeft;
157
+ }, function (props) {
158
+ return props.disabled ? props.theme.disabledArrowColor : props.theme.arrowColor;
159
+ }, function (props) {
160
+ return props.padding && (0, _typeof2["default"])(props.padding) !== "object" ? _variables.spaces[props.padding] : "0px";
161
+ }, function (props) {
162
+ return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.top ? _variables.spaces[props.padding.top] : "";
163
+ }, function (props) {
164
+ return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.right ? _variables.spaces[props.padding.right] : "";
165
+ }, function (props) {
166
+ return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.bottom ? _variables.spaces[props.padding.bottom] : "";
167
+ }, function (props) {
168
+ return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
169
+ });
170
+
171
+ var AccordionInfo = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n padding-left: ", ";\n padding-right: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n"])), function (props) {
172
+ return props.theme.titlePaddingLeft;
173
+ }, function (props) {
174
+ return props.theme.titlePaddingRight;
175
+ }, function (props) {
176
+ return props.theme.titleLabelFontFamily;
177
+ }, function (props) {
178
+ return props.theme.titleLabelFontSize;
179
+ }, function (props) {
180
+ return props.theme.titleLabelFontStyle;
181
+ }, function (props) {
182
+ return props.theme.titleFonLabeltWeight;
183
+ }, function (props) {
184
+ return props.disabled ? props.theme.disabledTitleLabelFontColor : props.theme.titleLabelFontColor;
185
+ });
186
+
187
+ var AccordionLabel = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])([""])));
188
+
189
+ var AccordionContent = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n"])));
190
+
191
+ var AccordionAssistiveText = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n padding-left: ", ";\n padding-right: ", ";\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n flex: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: ", ";\n text-align: end;\n"])), function (props) {
192
+ return props.theme.assistiveTextPaddingLeft;
193
+ }, function (props) {
194
+ return props.theme.assistiveTextPaddingRight;
195
+ }, function (props) {
196
+ return props.theme.assistiveTextFontSize;
197
+ }, function (props) {
198
+ return props.theme.assistiveTextFontFamily;
199
+ }, function (props) {
200
+ return props.theme.assistiveTextFontStyle;
201
+ }, function (props) {
202
+ return props.theme.assistiveTextFontWeight;
203
+ }, function (props) {
204
+ return props.disabled ? props.theme.disabledAssistiveTextFontColor : props.theme.assistiveTextFontColor;
205
+ }, function (props) {
206
+ return props.theme.assistiveTextLetterSpacing;
207
+ }, function (props) {
208
+ return props.theme.assistiveTextMinWidth;
209
+ });
210
+
211
+ var IconContainer = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n margin-left: ", ";\n margin-right: ", ";\n overflow: hidden;\n color: ", ";\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"])), function (props) {
212
+ return props.theme.iconSize;
213
+ }, function (props) {
214
+ return props.theme.iconSize;
215
+ }, function (props) {
216
+ return props.theme.iconMarginLeft;
217
+ }, function (props) {
218
+ return props.theme.iconMarginRigth;
219
+ }, function (props) {
220
+ return props.disabled ? props.theme.disabledIconColor : props.theme.iconColor;
221
+ });
222
+
223
+ var AccordionIcon = _styledComponents["default"].img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])([""])));
224
+
225
+ var _default = DxcAccordion;
226
+ exports["default"] = _default;