@dxc-technology/halstack-react 0.0.0-2bca710 → 0.0.0-2bd2d63

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 (439) hide show
  1. package/BackgroundColorContext.d.ts +1 -10
  2. package/BackgroundColorContext.js +4 -21
  3. package/HalstackContext.d.ts +41 -143
  4. package/HalstackContext.js +14 -39
  5. package/accordion/Accordion.accessibility.test.d.ts +1 -0
  6. package/accordion/Accordion.accessibility.test.js +71 -0
  7. package/accordion/Accordion.js +33 -87
  8. package/accordion/Accordion.stories.tsx +8 -64
  9. package/accordion/Accordion.test.d.ts +1 -0
  10. package/accordion/Accordion.test.js +19 -34
  11. package/accordion/types.d.ts +6 -6
  12. package/accordion-group/AccordionGroup.accessibility.test.d.ts +1 -0
  13. package/accordion-group/AccordionGroup.accessibility.test.js +82 -0
  14. package/accordion-group/AccordionGroup.d.ts +2 -3
  15. package/accordion-group/AccordionGroup.js +17 -44
  16. package/accordion-group/AccordionGroup.stories.tsx +24 -24
  17. package/accordion-group/AccordionGroup.test.d.ts +1 -0
  18. package/accordion-group/AccordionGroup.test.js +41 -63
  19. package/accordion-group/AccordionGroupAccordion.js +11 -23
  20. package/accordion-group/AccordionGroupContext.d.ts +3 -0
  21. package/accordion-group/AccordionGroupContext.js +8 -0
  22. package/accordion-group/types.d.ts +7 -7
  23. package/action-icon/ActionIcon.accessibility.test.d.ts +1 -0
  24. package/action-icon/ActionIcon.accessibility.test.js +63 -0
  25. package/action-icon/ActionIcon.d.ts +4 -0
  26. package/action-icon/ActionIcon.js +48 -0
  27. package/action-icon/ActionIcon.stories.tsx +41 -0
  28. package/action-icon/ActionIcon.test.d.ts +1 -0
  29. package/action-icon/ActionIcon.test.js +64 -0
  30. package/action-icon/types.d.ts +26 -0
  31. package/alert/Alert.accessibility.test.d.ts +1 -0
  32. package/alert/Alert.accessibility.test.js +95 -0
  33. package/alert/Alert.js +34 -120
  34. package/alert/Alert.test.d.ts +1 -0
  35. package/alert/Alert.test.js +29 -46
  36. package/alert/types.d.ts +5 -5
  37. package/badge/Badge.accessibility.test.d.ts +1 -0
  38. package/badge/Badge.accessibility.test.js +129 -0
  39. package/badge/Badge.d.ts +1 -1
  40. package/badge/Badge.js +142 -42
  41. package/badge/Badge.stories.tsx +210 -0
  42. package/badge/Badge.test.d.ts +1 -0
  43. package/badge/Badge.test.js +30 -0
  44. package/badge/types.d.ts +52 -3
  45. package/bleed/Bleed.js +13 -21
  46. package/bleed/types.d.ts +2 -2
  47. package/box/Box.accessibility.test.d.ts +1 -0
  48. package/box/Box.accessibility.test.js +33 -0
  49. package/box/Box.js +11 -33
  50. package/box/Box.test.d.ts +1 -0
  51. package/box/Box.test.js +2 -7
  52. package/box/types.d.ts +3 -3
  53. package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +1 -0
  54. package/breadcrumbs/Breadcrumbs.accessibility.test.js +96 -0
  55. package/breadcrumbs/Breadcrumbs.d.ts +4 -0
  56. package/breadcrumbs/Breadcrumbs.js +79 -0
  57. package/breadcrumbs/Breadcrumbs.stories.tsx +194 -0
  58. package/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
  59. package/breadcrumbs/Breadcrumbs.test.js +168 -0
  60. package/breadcrumbs/Item.d.ts +4 -0
  61. package/breadcrumbs/Item.js +52 -0
  62. package/breadcrumbs/dropdownTheme.d.ts +53 -0
  63. package/breadcrumbs/dropdownTheme.js +62 -0
  64. package/breadcrumbs/types.d.ts +16 -0
  65. package/breadcrumbs/types.js +5 -0
  66. package/bulleted-list/BulletedList.accessibility.test.d.ts +1 -0
  67. package/bulleted-list/BulletedList.accessibility.test.js +119 -0
  68. package/bulleted-list/BulletedList.js +22 -55
  69. package/bulleted-list/BulletedList.stories.tsx +2 -93
  70. package/bulleted-list/types.d.ts +5 -5
  71. package/button/Button.accessibility.test.d.ts +1 -0
  72. package/button/Button.accessibility.test.js +127 -0
  73. package/button/Button.js +36 -59
  74. package/button/Button.stories.tsx +35 -135
  75. package/button/Button.test.d.ts +1 -0
  76. package/button/Button.test.js +14 -22
  77. package/button/types.d.ts +5 -5
  78. package/card/Card.accessibility.test.d.ts +1 -0
  79. package/card/Card.accessibility.test.js +36 -0
  80. package/card/Card.js +23 -45
  81. package/card/Card.stories.tsx +1 -1
  82. package/card/Card.test.d.ts +1 -0
  83. package/card/Card.test.js +11 -22
  84. package/card/types.d.ts +5 -5
  85. package/checkbox/Checkbox.accessibility.test.d.ts +1 -0
  86. package/checkbox/Checkbox.accessibility.test.js +87 -0
  87. package/checkbox/Checkbox.js +88 -126
  88. package/checkbox/Checkbox.stories.tsx +16 -54
  89. package/checkbox/Checkbox.test.d.ts +1 -0
  90. package/checkbox/Checkbox.test.js +108 -64
  91. package/checkbox/types.d.ts +8 -4
  92. package/chip/Chip.accessibility.test.d.ts +1 -0
  93. package/chip/Chip.accessibility.test.js +67 -0
  94. package/chip/Chip.js +22 -36
  95. package/chip/Chip.stories.tsx +6 -25
  96. package/chip/Chip.test.d.ts +1 -0
  97. package/chip/Chip.test.js +18 -31
  98. package/chip/types.d.ts +4 -4
  99. package/common/coreTokens.d.ts +105 -14
  100. package/common/coreTokens.js +40 -23
  101. package/common/utils.js +2 -8
  102. package/common/variables.d.ts +42 -144
  103. package/common/variables.js +116 -225
  104. package/container/Container.d.ts +4 -0
  105. package/container/Container.js +194 -0
  106. package/container/Container.stories.tsx +214 -0
  107. package/container/types.d.ts +74 -0
  108. package/container/types.js +5 -0
  109. package/contextual-menu/ContextualMenu.accessibility.test.d.ts +1 -0
  110. package/contextual-menu/ContextualMenu.accessibility.test.js +98 -0
  111. package/contextual-menu/ContextualMenu.d.ts +5 -0
  112. package/contextual-menu/ContextualMenu.js +88 -0
  113. package/contextual-menu/ContextualMenu.stories.tsx +232 -0
  114. package/contextual-menu/ContextualMenu.test.d.ts +1 -0
  115. package/contextual-menu/ContextualMenu.test.js +205 -0
  116. package/contextual-menu/GroupItem.d.ts +4 -0
  117. package/contextual-menu/GroupItem.js +67 -0
  118. package/contextual-menu/ItemAction.d.ts +4 -0
  119. package/contextual-menu/ItemAction.js +51 -0
  120. package/contextual-menu/MenuItem.d.ts +4 -0
  121. package/contextual-menu/MenuItem.js +29 -0
  122. package/contextual-menu/SingleItem.d.ts +4 -0
  123. package/contextual-menu/SingleItem.js +38 -0
  124. package/contextual-menu/types.d.ts +58 -0
  125. package/contextual-menu/types.js +5 -0
  126. package/date-input/Calendar.js +13 -57
  127. package/date-input/DateInput.accessibility.test.d.ts +1 -0
  128. package/date-input/DateInput.accessibility.test.js +229 -0
  129. package/date-input/DateInput.js +55 -104
  130. package/date-input/DateInput.stories.tsx +17 -39
  131. package/date-input/DateInput.test.d.ts +1 -0
  132. package/date-input/DateInput.test.js +668 -709
  133. package/date-input/DatePicker.js +23 -48
  134. package/date-input/YearPicker.js +8 -34
  135. package/date-input/types.d.ts +28 -26
  136. package/dialog/Dialog.accessibility.test.d.ts +1 -0
  137. package/dialog/Dialog.accessibility.test.js +69 -0
  138. package/dialog/Dialog.js +21 -59
  139. package/dialog/Dialog.stories.tsx +174 -0
  140. package/dialog/Dialog.test.d.ts +1 -0
  141. package/dialog/Dialog.test.js +216 -215
  142. package/dialog/types.d.ts +18 -13
  143. package/divider/Divider.accessibility.test.d.ts +1 -0
  144. package/divider/Divider.accessibility.test.js +33 -0
  145. package/divider/Divider.d.ts +4 -0
  146. package/divider/Divider.js +36 -0
  147. package/divider/Divider.stories.tsx +223 -0
  148. package/divider/Divider.test.d.ts +1 -0
  149. package/divider/Divider.test.js +38 -0
  150. package/divider/types.d.ts +21 -0
  151. package/divider/types.js +5 -0
  152. package/dropdown/Dropdown.accessibility.test.d.ts +1 -0
  153. package/dropdown/Dropdown.accessibility.test.js +183 -0
  154. package/dropdown/Dropdown.js +67 -135
  155. package/dropdown/Dropdown.stories.tsx +16 -27
  156. package/dropdown/Dropdown.test.d.ts +1 -0
  157. package/dropdown/Dropdown.test.js +434 -392
  158. package/dropdown/DropdownMenu.js +12 -23
  159. package/dropdown/DropdownMenuItem.js +13 -21
  160. package/dropdown/types.d.ts +20 -24
  161. package/file-input/FileInput.accessibility.test.d.ts +1 -0
  162. package/file-input/FileInput.accessibility.test.js +167 -0
  163. package/file-input/FileInput.js +179 -286
  164. package/file-input/FileInput.stories.tsx +1 -1
  165. package/file-input/FileInput.test.d.ts +1 -0
  166. package/file-input/FileInput.test.js +303 -356
  167. package/file-input/FileItem.js +29 -66
  168. package/file-input/types.d.ts +9 -9
  169. package/flex/Flex.js +25 -39
  170. package/flex/types.d.ts +6 -6
  171. package/footer/Footer.accessibility.test.d.ts +1 -0
  172. package/footer/Footer.accessibility.test.js +125 -0
  173. package/footer/Footer.d.ts +1 -1
  174. package/footer/Footer.js +43 -68
  175. package/footer/Footer.stories.tsx +58 -2
  176. package/footer/Footer.test.d.ts +1 -0
  177. package/footer/Footer.test.js +19 -33
  178. package/footer/Icons.d.ts +3 -2
  179. package/footer/Icons.js +53 -22
  180. package/footer/types.d.ts +17 -17
  181. package/grid/Grid.js +1 -16
  182. package/grid/Grid.stories.tsx +3 -1
  183. package/grid/types.d.ts +10 -10
  184. package/header/Header.accessibility.test.d.ts +1 -0
  185. package/header/Header.accessibility.test.js +94 -0
  186. package/header/Header.d.ts +1 -1
  187. package/header/Header.js +38 -104
  188. package/header/Header.stories.tsx +17 -1
  189. package/header/Header.test.d.ts +1 -0
  190. package/header/Header.test.js +13 -26
  191. package/header/Icons.d.ts +2 -2
  192. package/header/Icons.js +3 -13
  193. package/header/types.d.ts +7 -8
  194. package/heading/Heading.accessibility.test.d.ts +1 -0
  195. package/heading/Heading.accessibility.test.js +33 -0
  196. package/heading/Heading.js +9 -31
  197. package/heading/Heading.test.d.ts +1 -0
  198. package/heading/Heading.test.js +65 -95
  199. package/heading/types.d.ts +7 -7
  200. package/icon/Icon.accessibility.test.d.ts +1 -0
  201. package/icon/Icon.accessibility.test.js +30 -0
  202. package/icon/Icon.d.ts +4 -0
  203. package/icon/Icon.js +33 -0
  204. package/icon/Icon.stories.tsx +28 -0
  205. package/icon/types.d.ts +4 -0
  206. package/icon/types.js +5 -0
  207. package/image/Image.accessibility.test.d.ts +1 -0
  208. package/image/Image.accessibility.test.js +56 -0
  209. package/image/Image.d.ts +2 -2
  210. package/image/Image.js +17 -32
  211. package/image/Image.stories.tsx +3 -1
  212. package/image/types.d.ts +2 -2
  213. package/inset/Inset.js +13 -21
  214. package/inset/types.d.ts +2 -2
  215. package/layout/ApplicationLayout.d.ts +2 -2
  216. package/layout/ApplicationLayout.js +23 -60
  217. package/layout/Icons.d.ts +4 -5
  218. package/layout/Icons.js +2 -16
  219. package/layout/types.d.ts +3 -3
  220. package/link/Link.accessibility.test.d.ts +1 -0
  221. package/link/Link.accessibility.test.js +108 -0
  222. package/link/Link.js +28 -47
  223. package/link/Link.stories.tsx +4 -4
  224. package/link/Link.test.d.ts +1 -0
  225. package/link/Link.test.js +24 -42
  226. package/link/types.d.ts +14 -14
  227. package/main.d.ts +8 -4
  228. package/main.js +39 -60
  229. package/nav-tabs/NavTabs.accessibility.test.d.ts +1 -0
  230. package/nav-tabs/NavTabs.accessibility.test.js +44 -0
  231. package/nav-tabs/NavTabs.d.ts +1 -2
  232. package/nav-tabs/NavTabs.js +34 -48
  233. package/nav-tabs/NavTabs.stories.tsx +45 -25
  234. package/nav-tabs/NavTabs.test.d.ts +1 -0
  235. package/nav-tabs/NavTabs.test.js +46 -51
  236. package/nav-tabs/NavTabsContext.d.ts +3 -0
  237. package/nav-tabs/NavTabsContext.js +8 -0
  238. package/nav-tabs/Tab.js +38 -67
  239. package/nav-tabs/types.d.ts +10 -10
  240. package/number-input/NumberInput.accessibility.test.d.ts +1 -0
  241. package/number-input/NumberInput.accessibility.test.js +227 -0
  242. package/number-input/NumberInput.d.ts +0 -7
  243. package/number-input/NumberInput.js +47 -39
  244. package/number-input/NumberInput.stories.tsx +28 -26
  245. package/number-input/NumberInput.test.d.ts +1 -0
  246. package/number-input/NumberInput.test.js +839 -576
  247. package/number-input/NumberInputContext.d.ts +3 -0
  248. package/number-input/NumberInputContext.js +8 -0
  249. package/number-input/types.d.ts +17 -5
  250. package/package.json +46 -40
  251. package/paginator/Paginator.accessibility.test.d.ts +1 -0
  252. package/paginator/Paginator.accessibility.test.js +78 -0
  253. package/paginator/Paginator.js +27 -52
  254. package/paginator/Paginator.test.d.ts +1 -0
  255. package/paginator/Paginator.test.js +226 -210
  256. package/paginator/types.d.ts +3 -3
  257. package/paragraph/Paragraph.accessibility.test.d.ts +1 -0
  258. package/paragraph/Paragraph.accessibility.test.js +28 -0
  259. package/paragraph/Paragraph.js +3 -19
  260. package/paragraph/Paragraph.stories.tsx +0 -17
  261. package/password-input/PasswordInput.accessibility.test.d.ts +1 -0
  262. package/password-input/PasswordInput.accessibility.test.js +152 -0
  263. package/password-input/PasswordInput.js +32 -54
  264. package/password-input/PasswordInput.stories.tsx +2 -35
  265. package/password-input/PasswordInput.test.d.ts +1 -0
  266. package/password-input/PasswordInput.test.js +153 -130
  267. package/password-input/types.d.ts +8 -7
  268. package/progress-bar/ProgressBar.accessibility.test.d.ts +1 -0
  269. package/progress-bar/ProgressBar.accessibility.test.js +35 -0
  270. package/progress-bar/ProgressBar.js +26 -56
  271. package/progress-bar/{ProgressBar.stories.jsx → ProgressBar.stories.tsx} +1 -1
  272. package/progress-bar/ProgressBar.test.d.ts +1 -0
  273. package/progress-bar/ProgressBar.test.js +36 -53
  274. package/progress-bar/types.d.ts +3 -3
  275. package/quick-nav/QuickNav.accessibility.test.d.ts +1 -0
  276. package/quick-nav/QuickNav.accessibility.test.js +57 -0
  277. package/quick-nav/QuickNav.js +4 -27
  278. package/quick-nav/QuickNav.stories.tsx +1 -1
  279. package/quick-nav/types.d.ts +10 -10
  280. package/radio-group/Radio.d.ts +1 -1
  281. package/radio-group/Radio.js +22 -57
  282. package/radio-group/RadioGroup.accessibility.test.d.ts +1 -0
  283. package/radio-group/RadioGroup.accessibility.test.js +97 -0
  284. package/radio-group/RadioGroup.js +40 -88
  285. package/radio-group/RadioGroup.stories.tsx +10 -10
  286. package/radio-group/RadioGroup.test.d.ts +1 -0
  287. package/radio-group/RadioGroup.test.js +505 -473
  288. package/radio-group/types.d.ts +8 -8
  289. package/resultset-table/Icons.d.ts +7 -0
  290. package/{resultsetTable → resultset-table}/Icons.js +1 -5
  291. package/resultset-table/ResultsetTable.accessibility.test.d.ts +1 -0
  292. package/resultset-table/ResultsetTable.accessibility.test.js +284 -0
  293. package/resultset-table/ResultsetTable.d.ts +7 -0
  294. package/{resultsetTable → resultset-table}/ResultsetTable.js +45 -69
  295. package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +119 -6
  296. package/resultset-table/ResultsetTable.test.d.ts +1 -0
  297. package/{resultsetTable → resultset-table}/ResultsetTable.test.js +149 -95
  298. package/{resultsetTable → resultset-table}/types.d.ts +44 -11
  299. package/resultset-table/types.js +5 -0
  300. package/select/Listbox.js +36 -54
  301. package/select/Option.js +28 -36
  302. package/select/Select.accessibility.test.d.ts +1 -0
  303. package/select/Select.accessibility.test.js +227 -0
  304. package/select/Select.js +111 -177
  305. package/select/Select.stories.tsx +60 -112
  306. package/select/Select.test.d.ts +1 -0
  307. package/select/Select.test.js +1900 -1861
  308. package/select/types.d.ts +15 -16
  309. package/sidenav/Sidenav.accessibility.test.d.ts +1 -0
  310. package/sidenav/Sidenav.accessibility.test.js +59 -0
  311. package/sidenav/Sidenav.js +44 -81
  312. package/sidenav/Sidenav.stories.tsx +5 -10
  313. package/sidenav/Sidenav.test.d.ts +1 -0
  314. package/sidenav/Sidenav.test.js +4 -11
  315. package/{layout → sidenav}/SidenavContext.d.ts +1 -1
  316. package/{layout → sidenav}/SidenavContext.js +3 -9
  317. package/sidenav/types.d.ts +20 -20
  318. package/slider/Slider.accessibility.test.d.ts +1 -0
  319. package/slider/Slider.accessibility.test.js +103 -0
  320. package/slider/Slider.js +66 -125
  321. package/slider/Slider.stories.tsx +0 -60
  322. package/slider/Slider.test.d.ts +1 -0
  323. package/slider/Slider.test.js +118 -112
  324. package/slider/types.d.ts +4 -4
  325. package/spinner/Spinner.accessibility.test.d.ts +1 -0
  326. package/spinner/Spinner.accessibility.test.js +96 -0
  327. package/spinner/Spinner.js +21 -55
  328. package/spinner/Spinner.test.d.ts +1 -0
  329. package/spinner/Spinner.test.js +26 -35
  330. package/spinner/types.d.ts +3 -3
  331. package/status-light/StatusLight.accessibility.test.d.ts +1 -0
  332. package/status-light/StatusLight.accessibility.test.js +157 -0
  333. package/status-light/StatusLight.d.ts +4 -0
  334. package/status-light/StatusLight.js +51 -0
  335. package/status-light/StatusLight.stories.tsx +74 -0
  336. package/status-light/StatusLight.test.d.ts +1 -0
  337. package/status-light/StatusLight.test.js +25 -0
  338. package/status-light/types.d.ts +17 -0
  339. package/status-light/types.js +5 -0
  340. package/switch/Switch.accessibility.test.d.ts +1 -0
  341. package/switch/Switch.accessibility.test.js +98 -0
  342. package/switch/Switch.js +49 -100
  343. package/switch/Switch.stories.tsx +12 -34
  344. package/switch/Switch.test.d.ts +1 -0
  345. package/switch/Switch.test.js +52 -97
  346. package/switch/types.d.ts +4 -4
  347. package/table/DropdownTheme.js +62 -0
  348. package/table/Table.accessibility.test.d.ts +1 -0
  349. package/table/Table.accessibility.test.js +92 -0
  350. package/table/Table.d.ts +6 -2
  351. package/table/Table.js +76 -33
  352. package/table/{Table.stories.jsx → Table.stories.tsx} +309 -2
  353. package/table/Table.test.d.ts +1 -0
  354. package/table/Table.test.js +92 -7
  355. package/table/types.d.ts +34 -6
  356. package/tabs/Tab.js +22 -37
  357. package/tabs/Tabs.accessibility.test.d.ts +1 -0
  358. package/tabs/Tabs.accessibility.test.js +56 -0
  359. package/tabs/Tabs.js +59 -147
  360. package/tabs/Tabs.stories.tsx +8 -4
  361. package/tabs/Tabs.test.d.ts +1 -0
  362. package/tabs/Tabs.test.js +58 -132
  363. package/tabs/types.d.ts +21 -21
  364. package/tag/Tag.accessibility.test.d.ts +1 -0
  365. package/tag/Tag.accessibility.test.js +69 -0
  366. package/tag/Tag.js +27 -57
  367. package/tag/Tag.stories.tsx +5 -8
  368. package/tag/Tag.test.d.ts +1 -0
  369. package/tag/Tag.test.js +18 -37
  370. package/tag/types.d.ts +9 -9
  371. package/text-input/Suggestion.js +9 -26
  372. package/text-input/Suggestions.d.ts +1 -1
  373. package/text-input/Suggestions.js +30 -70
  374. package/text-input/TextInput.accessibility.test.d.ts +1 -0
  375. package/text-input/TextInput.accessibility.test.js +320 -0
  376. package/text-input/TextInput.js +194 -284
  377. package/text-input/TextInput.stories.tsx +20 -160
  378. package/text-input/TextInput.test.d.ts +1 -0
  379. package/text-input/TextInput.test.js +1226 -1283
  380. package/text-input/types.d.ts +21 -17
  381. package/textarea/Textarea.accessibility.test.d.ts +1 -0
  382. package/textarea/Textarea.accessibility.test.js +155 -0
  383. package/textarea/Textarea.js +60 -103
  384. package/textarea/{Textarea.stories.jsx → Textarea.stories.tsx} +58 -108
  385. package/textarea/Textarea.test.d.ts +1 -0
  386. package/textarea/Textarea.test.js +136 -209
  387. package/textarea/types.d.ts +5 -5
  388. package/toggle-group/ToggleGroup.accessibility.test.d.ts +1 -0
  389. package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
  390. package/toggle-group/ToggleGroup.js +25 -67
  391. package/toggle-group/ToggleGroup.stories.tsx +5 -5
  392. package/toggle-group/ToggleGroup.test.d.ts +1 -0
  393. package/toggle-group/ToggleGroup.test.js +49 -82
  394. package/toggle-group/types.d.ts +12 -12
  395. package/typography/Typography.accessibility.test.d.ts +1 -0
  396. package/typography/Typography.accessibility.test.js +339 -0
  397. package/typography/Typography.js +4 -13
  398. package/typography/Typography.stories.tsx +1 -3
  399. package/typography/types.d.ts +1 -1
  400. package/useTheme.d.ts +39 -141
  401. package/useTheme.js +1 -8
  402. package/useTranslatedLabels.js +1 -7
  403. package/utils/BaseTypography.d.ts +2 -2
  404. package/utils/BaseTypography.js +16 -30
  405. package/utils/FocusLock.js +26 -39
  406. package/wizard/Wizard.accessibility.test.d.ts +1 -0
  407. package/wizard/Wizard.accessibility.test.js +55 -0
  408. package/wizard/Wizard.js +27 -73
  409. package/wizard/Wizard.stories.tsx +20 -1
  410. package/wizard/Wizard.test.d.ts +1 -0
  411. package/wizard/Wizard.test.js +54 -81
  412. package/wizard/types.d.ts +8 -8
  413. package/common/OpenSans.css +0 -69
  414. package/common/fonts/OpenSans-Bold.ttf +0 -0
  415. package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
  416. package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
  417. package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  418. package/common/fonts/OpenSans-Italic.ttf +0 -0
  419. package/common/fonts/OpenSans-Light.ttf +0 -0
  420. package/common/fonts/OpenSans-LightItalic.ttf +0 -0
  421. package/common/fonts/OpenSans-Regular.ttf +0 -0
  422. package/common/fonts/OpenSans-SemiBold.ttf +0 -0
  423. package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  424. package/date-input/Icons.d.ts +0 -6
  425. package/date-input/Icons.js +0 -75
  426. package/paginator/Icons.d.ts +0 -5
  427. package/paginator/Icons.js +0 -54
  428. package/password-input/Icons.d.ts +0 -6
  429. package/password-input/Icons.js +0 -39
  430. package/resultsetTable/Icons.d.ts +0 -7
  431. package/resultsetTable/ResultsetTable.d.ts +0 -4
  432. package/select/Icons.d.ts +0 -10
  433. package/select/Icons.js +0 -93
  434. package/sidenav/Icons.d.ts +0 -7
  435. package/sidenav/Icons.js +0 -51
  436. package/text-input/Icons.d.ts +0 -8
  437. package/text-input/Icons.js +0 -60
  438. /package/{resultsetTable → action-icon}/types.js +0 -0
  439. /package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +0 -0
package/useTheme.d.ts CHANGED
@@ -36,7 +36,7 @@ declare const useTheme: () => {
36
36
  disabledIconColor: string;
37
37
  iconSize: string;
38
38
  iconMarginLeft: string;
39
- iconMarginRigth: string;
39
+ iconMarginRight: string;
40
40
  accordionGroupSeparatorBorderColor: string;
41
41
  accordionGroupSeparatorBorderThickness: string;
42
42
  accordionGroupSeparatorBorderRadius: string;
@@ -109,7 +109,6 @@ declare const useTheme: () => {
109
109
  }>;
110
110
  bulletedList?: Partial<{
111
111
  fontColor: string;
112
- fontColorOnDark: string;
113
112
  bulletIconHeight: string;
114
113
  bulletIconWidth: string;
115
114
  bulletHeight: string;
@@ -124,19 +123,12 @@ declare const useTheme: () => {
124
123
  paddingTop: string;
125
124
  paddingBottom: string;
126
125
  focusBorderColor: string;
127
- focusBorderColorOnDark: string;
128
126
  primaryBackgroundColor: string;
129
- primaryBackgroundColorOnDark: string;
130
127
  primaryFontColor: string;
131
- primaryFontColorOnDark: string;
132
128
  primaryHoverBackgroundColor: string;
133
- primaryHoverBackgroundColorOnDark: string;
134
129
  primaryActiveBackgroundColor: string;
135
- primaryActiveBackgroundColorOnDark: string;
136
130
  primaryDisabledBackgroundColor: string;
137
- primaryDisabledBackgroundColorOnDark: string;
138
131
  primaryDisabledFontColor: string;
139
- primaryDisabledFontColorOnDark: string;
140
132
  primaryBorderThickness: string;
141
133
  primaryBorderStyle: string;
142
134
  primaryBorderRadius: string;
@@ -144,23 +136,14 @@ declare const useTheme: () => {
144
136
  primaryFontSize: string;
145
137
  primaryFontWeight: string;
146
138
  secondaryBackgroundColor: string;
147
- secondaryBackgroundColorOnDark: string;
148
139
  secondaryFontColor: string;
149
- secondaryFontColorOnDark: string;
150
140
  secondaryHoverFontColor: string;
151
- secondaryHoverFontColorOnDark: string;
152
141
  secondaryBorderColor: string;
153
- secondaryBorderColorOnDark: string;
154
142
  secondaryHoverBackgroundColor: string;
155
- secondaryHoverBackgroundColorOnDark: string;
156
143
  secondaryActiveBackgroundColor: string;
157
- secondaryActiveBackgroundColorOnDark: string;
158
144
  secondaryDisabledBackgroundColor: string;
159
- secondaryDisabledBackgroundColorOnDark: string;
160
145
  secondaryDisabledFontColor: string;
161
- secondaryDisabledFontColorOnDark: string;
162
146
  secondaryDisabledBorderColor: string;
163
- secondaryDisabledBorderColorOnDark: string;
164
147
  secondaryBorderThickness: string;
165
148
  secondaryBorderStyle: string;
166
149
  secondaryBorderRadius: string;
@@ -168,17 +151,11 @@ declare const useTheme: () => {
168
151
  secondaryFontSize: string;
169
152
  secondaryFontWeight: string;
170
153
  textBackgroundColor: string;
171
- textBackgroundColorOnDark: string;
172
154
  textFontColor: string;
173
- textFontColorOnDark: string;
174
155
  textHoverBackgroundColor: string;
175
- textHoverBackgroundColorOnDark: string;
176
156
  textActiveBackgroundColor: string;
177
- textActiveBackgroundColorOnDark: string;
178
157
  textDisabledBackgroundColor: string;
179
- textDisabledBackgroundColorOnDark: string;
180
158
  textDisabledFontColor: string;
181
- textDisabledFontColorOnDark: string;
182
159
  textBorderThickness: string;
183
160
  textBorderStyle: string;
184
161
  textBorderRadius: string;
@@ -192,30 +169,24 @@ declare const useTheme: () => {
192
169
  }>;
193
170
  checkbox?: Partial<{
194
171
  backgroundColorChecked: string;
195
- backgroundColorCheckedOnDark: string;
196
172
  hoverBackgroundColorChecked: string;
197
- hoverBackgroundColorCheckedOnDark: string;
198
173
  disabledBackgroundColorChecked: string;
199
- disabledBackgroundColorCheckedOnDark: string;
174
+ readOnlyBackgroundColorChecked: string;
175
+ hoverReadOnlyBackgroundColorChecked: string;
200
176
  borderColor: string;
201
- borderColorOnDark: string;
202
177
  hoverBorderColor: string;
203
- hoverBorderColorOnDark: string;
204
178
  disabledBorderColor: string;
205
- disabledBorderColorOnDark: string;
179
+ readOnlyBorderColor: string;
180
+ hoverReadOnlyBorderColor: string;
206
181
  checkColor: string;
207
- checkColorOnDark: string;
208
182
  disabledCheckColor: string;
209
- disabledCheckColorOnDark: string;
183
+ readOnlyCheckColor: string;
210
184
  fontFamily: string;
211
185
  fontSize: string;
212
186
  fontWeight: string;
213
187
  fontColor: string;
214
- fontColorOnDark: string;
215
188
  disabledFontColor: string;
216
- disabledFontColorOnDark: string;
217
189
  focusColor: string;
218
- focusColorOnDark: string;
219
190
  checkLabelSpacing: string;
220
191
  }>;
221
192
  chip?: Partial<{
@@ -280,8 +251,7 @@ declare const useTheme: () => {
280
251
  dialog?: Partial<{
281
252
  overlayColor: string;
282
253
  backgroundColor: string;
283
- closeIconWidth: string;
284
- closeIconHeight: string;
254
+ closeIconSize: string;
285
255
  closeIconTopPosition: string;
286
256
  closeIconRightPosition: string;
287
257
  closeIconBackgroundColor: string;
@@ -311,9 +281,14 @@ declare const useTheme: () => {
311
281
  buttonPaddingBottom: string;
312
282
  buttonPaddingLeft: string;
313
283
  buttonPaddingRight: string;
284
+ buttonHeight: string;
285
+ buttonBorderRadius: string;
286
+ buttonBorderStyle: string;
287
+ buttonBorderThickness: string;
288
+ buttonBorderColor: string;
314
289
  disabledColor: string;
315
290
  disabledButtonBackgroundColor: string;
316
- disabledBorderColor: string;
291
+ disabledButtonBorderColor: string;
317
292
  optionBackgroundColor: string;
318
293
  hoverOptionBackgroundColor: string;
319
294
  activeOptionBackgroundColor: string;
@@ -353,7 +328,6 @@ declare const useTheme: () => {
353
328
  focusDropBorderColor: string;
354
329
  disabledDropBorderColor: string;
355
330
  dragoverDropBackgroundColor: string;
356
- activeFileItemIconBackgrounColor: string;
357
331
  errorFileItemBorderColor: string;
358
332
  errorFileItemBackgroundColor: string;
359
333
  errorFilePreviewBackgroundColor: string;
@@ -449,7 +423,6 @@ declare const useTheme: () => {
449
423
  underlinedThickness: string;
450
424
  underlinedStyle: string;
451
425
  contentColor: string;
452
- contentColorOnDark: string;
453
426
  }>;
454
427
  heading?: Partial<{
455
428
  level1FontColor: string;
@@ -555,32 +528,27 @@ declare const useTheme: () => {
555
528
  totalItemsContainerMarginLeft: string;
556
529
  }>;
557
530
  paragraph?: Partial<{
558
- fontColor: string;
559
- fontColorOnDark: string;
560
531
  display: string;
532
+ fontColor: string;
561
533
  fontSize: string;
562
534
  fontWeight: string;
563
535
  }>;
564
536
  progressBar?: Partial<{
565
537
  trackLineColor: string;
566
- trackLineColorOnDark: string;
567
538
  totalLineColor: string;
568
539
  labelFontFamily: string;
569
540
  labelFontSize: string;
570
541
  labelFontStyle: string;
571
542
  labelFontWeight: string;
572
543
  labelFontColor: string;
573
- labelFontColorOnDark: string;
574
544
  labelFontTextTransform: string;
575
545
  valueFontFamily: string;
576
546
  valueFontSize: string;
577
547
  valueFontStyle: string;
578
548
  valueFontWeight: string;
579
549
  valueFontColor: string;
580
- valueFontColorOnDark: string;
581
550
  valueFontTextTransform: string;
582
551
  helperTextFontColor: string;
583
- helperTextFontColorOnDark: string;
584
552
  helperTextFontSize: string;
585
553
  helperTextFontStyle: string;
586
554
  helperTextFontWeight: string;
@@ -616,9 +584,9 @@ declare const useTheme: () => {
616
584
  errorRadioInputColor: string;
617
585
  hoverErrorRadioInputColor: string;
618
586
  activeErrorRadioInputColor: string;
619
- readonlyRadioInputColor: string;
620
- hoverReadonlyRadioInputColor: string;
621
- activeReadonlyRadioInputColor: string;
587
+ readOnlyRadioInputColor: string;
588
+ hoverReadOnlyRadioInputColor: string;
589
+ activeReadOnlyRadioInputColor: string;
622
590
  disabledRadioInputColor: string;
623
591
  disabledLabelFontColor: string;
624
592
  disabledHelperTextFontColor: string;
@@ -758,7 +726,6 @@ declare const useTheme: () => {
758
726
  slider?: Partial<{
759
727
  fontFamily: string;
760
728
  limitValuesFontColor: string;
761
- limitValuesFontColorOnDark: string;
762
729
  limitValuesFontSize: string;
763
730
  limitValuesFontStyle: string;
764
731
  limitValuesFontWeight: string;
@@ -775,15 +742,10 @@ declare const useTheme: () => {
775
742
  helperTextFontWeight: string;
776
743
  helperTextLineHeight: string;
777
744
  fontColor: string;
778
- fontColorOnDark: string;
779
745
  labelFontColor: string;
780
- labelFontColorOnDark: string;
781
746
  helperTextFontColor: string;
782
- helperTextFontColorOnDark: string;
783
747
  disabledLabelFontColor: string;
784
- disabledLabelFontColorOnDark: string;
785
748
  disabledHelperTextFontColor: string;
786
- disabledHelperTextFontColorOnDark: string;
787
749
  thumbHeight: string;
788
750
  thumbWidth: string;
789
751
  hoverThumbHeight: string;
@@ -791,40 +753,28 @@ declare const useTheme: () => {
791
753
  thumbVerticalPosition: string;
792
754
  hoverThumbVerticalPosition: string;
793
755
  thumbBackgroundColor: string;
794
- thumbBackgroundColorOnDark: string;
795
756
  hoverThumbScale: string;
796
757
  hoverThumbBackgroundColor: string;
797
- hoverThumbBackgroundColorOnDark: string;
798
758
  activeThumbScale: string;
799
759
  activeThumbBackgroundColor: string;
800
- activeThumbBackgroundColorOnDark: string;
801
760
  focusThumbBackgroundColor: string;
802
- focusThumbBackgroundColorOnDark: string;
803
761
  tickHeight: string;
804
762
  tickWidth: string;
805
763
  tickVerticalPosition: string;
806
764
  tickBackgroundColor: string;
807
- tickBackgroundColorOnDark: string;
808
765
  trackLineThickness: string;
809
766
  trackLineVerticalPosition: string;
810
767
  trackLineColor: string;
811
- trackLineColorOnDark: string;
812
768
  totalLineThickness: string;
813
769
  totalLineVerticalPosition: string;
814
770
  totalLineColor: string;
815
- totalLineColorOnDark: string;
816
771
  disabledThumbVerticalPosition: string;
817
772
  disabledThumbBackgroundColor: string;
818
- disabledThumbBackgroundColorOnDark: string;
819
773
  disabledTickVerticalPosition: string;
820
774
  disabledTickBackgroundColor: string;
821
- disabledTickBackgroundColorOnDark: string;
822
775
  disabledTrackLineColor: string;
823
- disabledTrackLineColorOnDark: string;
824
776
  disabledTotalLineColor: string;
825
- disabledTotalLineColorOnDark: string;
826
777
  focusColor: string;
827
- focusColorOnDark: string;
828
778
  floorLabelMarginRight: string;
829
779
  ceilLabelMarginLeft: string;
830
780
  inputMarginLeft: string;
@@ -838,14 +788,12 @@ declare const useTheme: () => {
838
788
  labelFontStyle: string;
839
789
  labelFontWeight: string;
840
790
  labelFontColor: string;
841
- labelFontColorOnDark: string;
842
791
  labelTextAlign: string;
843
792
  progressValueFontFamily: string;
844
793
  progressValueFontSize: string;
845
794
  progressValueFontStyle: string;
846
795
  progressValueFontWeight: string;
847
796
  progressValueFontColor: string;
848
- progressValueFontColorOnDark: string;
849
797
  progressValueTextAlign: string;
850
798
  overlayBackgroundColor: string;
851
799
  overlayOpacity: string;
@@ -864,32 +812,21 @@ declare const useTheme: () => {
864
812
  }>;
865
813
  switch?: Partial<{
866
814
  checkedTrackBackgroundColor: string;
867
- checkedTrackBackgroundColorOnDark: string;
868
815
  checkedThumbBackgroundColor: string;
869
- checkedThumbBackgroundColorOnDark: string;
870
816
  uncheckedTrackBackgroundColor: string;
871
- uncheckedTrackBackgroundColorOnDark: string;
872
817
  uncheckedThumbBackgroundColor: string;
873
- uncheckedThumbBackgroundColorOnDark: string;
874
818
  disabledCheckedTrackBackgroundColor: string;
875
- disabledCheckedTrackBackgroundColorOnDark: string;
876
819
  disabledCheckedThumbBackgroundColor: string;
877
- disabledCheckedThumbBackgroundColorOnDark: string;
878
820
  disabledUncheckedTrackBackgroundColor: string;
879
- disabledUncheckedTrackBackgroundColorOnDark: string;
880
821
  disabledUncheckedThumbBackgroundColor: string;
881
- disabledUncheckedThumbBackgroundColorOnDark: string;
882
822
  disabledLabelFontColor: string;
883
- disabledLabelFontColorOnDark: string;
884
823
  disabledLabelFontStyle: string;
885
824
  labelFontFamily: string;
886
825
  labelFontSize: string;
887
826
  labelFontStyle: string;
888
827
  labelFontWeight: string;
889
828
  labelFontColor: string;
890
- labelFontColorOnDark: string;
891
829
  thumbFocusColor: string;
892
- thumbFocusColorOnDark: string;
893
830
  thumbHeight: string;
894
831
  thumbWidth: string;
895
832
  thumbShift: string;
@@ -912,8 +849,16 @@ declare const useTheme: () => {
912
849
  dataPaddingBottom: string;
913
850
  dataPaddingRight: string;
914
851
  dataPaddingLeft: string;
852
+ dataPaddingTopReduced: string;
853
+ dataPaddingBottomReduced: string;
854
+ dataPaddingRightReduced: string;
855
+ dataPaddingLeftReduced: string;
915
856
  dataTextAlign: string;
916
857
  dataTextLineHeight: string;
858
+ firstChildPaddingLeft: string;
859
+ lastChildPaddingRight: string;
860
+ firstChildPaddingLeftReduced: string;
861
+ lastChildPaddingRightReduced: string;
917
862
  headerBackgroundColor: string;
918
863
  headerBorderRadius: string;
919
864
  headerFontFamily: string;
@@ -926,11 +871,25 @@ declare const useTheme: () => {
926
871
  headerPaddingBottom: string;
927
872
  headerPaddingRight: string;
928
873
  headerPaddingLeft: string;
874
+ headerPaddingTopReduced: string;
875
+ headerPaddingBottomReduced: string;
876
+ headerPaddingRightReduced: string;
877
+ headerPaddingLeftReduced: string;
929
878
  headerTextAlign: string;
930
879
  headerTextLineHeight: string;
931
880
  scrollBarThumbColor: string;
932
881
  scrollBarTrackColor: string;
933
882
  sortIconColor: string;
883
+ actionIconColor: string;
884
+ disabledActionIconColor: string;
885
+ hoverActionIconColor: string;
886
+ focusActionIconColor: string;
887
+ activeActionIconColor: string;
888
+ actionBackgroundColor: string;
889
+ disabledActionBackgroundColor: string;
890
+ hoverActionBackgroundColor: string;
891
+ focusActionBorderColor: string;
892
+ activeActionBackgroundColor: string;
934
893
  }>;
935
894
  tabs?: Partial<{
936
895
  fontFamily: string;
@@ -949,7 +908,6 @@ declare const useTheme: () => {
949
908
  disabledFontColor: string;
950
909
  disabledIconColor: string;
951
910
  disabledFontStyle: string;
952
- disabledBadgeBackgroundColor: string;
953
911
  hoverBackgroundColor: string;
954
912
  pressedBackgroundColor: string;
955
913
  pressedFontWeight: string;
@@ -957,19 +915,6 @@ declare const useTheme: () => {
957
915
  dividerThickness: string;
958
916
  focusOutline: string;
959
917
  scrollButtonsWidth: string;
960
- badgeBackgroundColor: string;
961
- badgeFontFamily: string;
962
- badgeFontSize: string;
963
- badgeFontStyle: string;
964
- badgeFontWeight: string;
965
- badgeFontColor: string;
966
- badgeLetterSpacing: string;
967
- badgeWidth: string;
968
- badgeHeight: string;
969
- badgeRadius: string;
970
- badgeWidthWithNotificationNumber: string;
971
- badgeHeightWithNotificationNumber: string;
972
- badgeRadiusWithNotificationNumber: string;
973
918
  }>;
974
919
  tag?: Partial<{
975
920
  fontFamily: string;
@@ -991,134 +936,87 @@ declare const useTheme: () => {
991
936
  textarea?: Partial<{
992
937
  fontFamily: string;
993
938
  enabledBorderColor: string;
994
- enabledBorderColorOnDark: string;
995
939
  hoverBorderColor: string;
996
- hoverBorderColorOnDark: string;
997
940
  focusBorderColor: string;
998
- focusBorderColorOnDark: string;
999
941
  disabledBorderColor: string;
1000
- disabledBorderColorOnDark: string;
1001
942
  disabledContainerFillColor: string;
1002
- disabledContainerFillColorOnDark: string;
1003
943
  readOnlyBorderColor: string;
1004
944
  hoverReadOnlyBorderColor: string;
1005
945
  errorBorderColor: string;
1006
- errorBorderColorOnDark: string;
1007
946
  hoverErrorBorderColor: string;
1008
- hoverErrorBorderColorOnDark: string;
1009
947
  inputMarginTop: string;
1010
948
  inputMarginBottom: string;
1011
949
  errorMessageColor: string;
1012
- errorMessageColorOnDark: string;
1013
950
  labelFontColor: string;
1014
- labelFontColorOnDark: string;
1015
951
  labelFontSize: string;
1016
952
  labelFontStyle: string;
1017
953
  labelFontWeight: string;
1018
954
  labelLineHeight: string;
1019
955
  disabledLabelFontColor: string;
1020
- disabledLabelFontColorOnDark: string;
1021
956
  optionalLabelFontWeight: string;
1022
957
  helperTextFontColor: string;
1023
- helperTextFontColorOnDark: string;
1024
958
  helperTextFontSize: string;
1025
959
  helperTextFontStyle: string;
1026
960
  helperTextFontWeight: string;
1027
961
  helperTextLineHeight: string;
1028
962
  disabledHelperTextFontColor: string;
1029
- disabledHelperTextFontColorOnDark: string;
1030
963
  placeholderFontColor: string;
1031
- placeholderFontColorOnDark: string;
1032
964
  disabledPlaceholderFontColor: string;
1033
- disabledPlaceholderFontColorOnDark: string;
1034
965
  valueFontColor: string;
1035
- valueFontColorOnDark: string;
1036
966
  valueFontSize: string;
1037
967
  valueFontStyle: string;
1038
968
  valueFontWeight: string;
1039
969
  disabledValueFontColor: string;
1040
- disabledValueFontColorOnDark: string;
1041
970
  }>;
1042
971
  textInput?: Partial<{
1043
972
  fontFamily: string;
1044
973
  enabledBorderColor: string;
1045
- enabledBorderColorOnDark: string;
1046
974
  hoverBorderColor: string;
1047
- hoverBorderColorOnDark: string;
1048
975
  focusBorderColor: string;
1049
- focusBorderColorOnDark: string;
1050
976
  disabledBorderColor: string;
1051
- disabledBorderColorOnDark: string;
1052
977
  disabledContainerFillColor: string;
1053
- disabledContainerFillColorOnDark: string;
1054
978
  readOnlyBorderColor: string;
1055
979
  hoverReadOnlyBorderColor: string;
1056
980
  errorBorderColor: string;
1057
- errorBorderColorOnDark: string;
1058
981
  hoverErrorBorderColor: string;
1059
- hoverErrorBorderColorOnDark: string;
1060
982
  inputMarginTop: string;
1061
983
  inputMarginBottom: string;
1062
984
  errorMessageColor: string;
1063
- errorMessageColorOnDark: string;
1064
985
  errorIconColor: string;
1065
- errorIconColorOnDark: string;
1066
986
  labelFontColor: string;
1067
- labelFontColorOnDark: string;
1068
987
  labelFontSize: string;
1069
988
  labelFontStyle: string;
1070
989
  labelFontWeight: string;
1071
990
  labelLineHeight: string;
1072
991
  disabledLabelFontColor: string;
1073
- disabledLabelFontColorOnDark: string;
1074
992
  optionalLabelFontWeight: string;
1075
993
  helperTextFontColor: string;
1076
- helperTextFontColorOnDark: string;
1077
994
  helperTextFontSize: string;
1078
995
  helperTextFontStyle: string;
1079
996
  helperTextFontWeight: string;
1080
997
  helperTextLineHeight: string;
1081
998
  disabledHelperTextFontColor: string;
1082
- disabledHelperTextFontColorOnDark: string;
1083
999
  prefixColor: string;
1084
- prefixColorOnDark: string;
1085
1000
  suffixColor: string;
1086
- suffixColorOnDark: string;
1087
1001
  disabledPrefixColor: string;
1088
1002
  disabledSuffixColor: string;
1089
- disabledPrefixColorOnDark: string;
1090
- disabledSuffixColorOnDark: string;
1091
1003
  placeholderFontColor: string;
1092
- placeholderFontColorOnDark: string;
1093
1004
  disabledPlaceholderFontColor: string;
1094
- disabledPlaceholderFontColorOnDark: string;
1095
1005
  valueFontColor: string;
1096
- valueFontColorOnDark: string;
1097
1006
  valueFontSize: string;
1098
1007
  valueFontStyle: string;
1099
1008
  valueFontWeight: string;
1100
1009
  disabledValueFontColor: string;
1101
- disabledValueFontColorOnDark: string;
1102
1010
  actionIconColor: string;
1103
- actionIconColorOnDark: string;
1104
1011
  disabledActionIconColor: string;
1105
- disabledActionIconColorOnDark: string;
1106
1012
  hoverActionIconColor: string;
1107
- hoverActionIconColorOnDark: string;
1108
1013
  focusActionIconColor: string;
1109
- focusActionIconColorOnDark: string;
1110
1014
  activeActionIconColor: string;
1111
- activeActionIconColorOnDark: string;
1112
1015
  actionBackgroundColor: string;
1113
- actionBackgroundColorOnDark: string;
1114
1016
  disabledActionBackgroundColor: string;
1115
- disabledActionBackgroundColorOnDark: string;
1116
1017
  hoverActionBackgroundColor: string;
1117
- hoverActionBackgroundColorOnDark: string;
1118
1018
  focusActionBorderColor: string;
1119
- focusActionBorderColorOnDark: string;
1120
1019
  activeActionBackgroundColor: string;
1121
- activeActionBackgroundColorOnDark: string;
1122
1020
  listDialogBackgroundColor: string;
1123
1021
  listDialogBorderColor: string;
1124
1022
  listOptionDividerColor: string;
package/useTheme.js CHANGED
@@ -1,22 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = require("react");
11
-
12
9
  var _variables = require("./common/variables");
13
-
14
10
  var _HalstackContext = _interopRequireDefault(require("./HalstackContext"));
15
-
16
11
  var useTheme = function useTheme() {
17
12
  var colorsTheme = (0, _react.useContext)(_HalstackContext["default"]);
18
13
  return colorsTheme || _variables.componentTokens;
19
14
  };
20
-
21
- var _default = useTheme;
22
- exports["default"] = _default;
15
+ var _default = exports["default"] = useTheme;
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _variables = require("./common/variables");
11
-
12
9
  var _HalstackContext = require("./HalstackContext");
13
-
14
10
  var useTranslatedLabels = function useTranslatedLabels() {
15
11
  var labels = (0, _react.useContext)(_HalstackContext.HalstackLanguageContext);
16
12
  return labels || _variables.defaultTranslatedComponentLabels;
17
13
  };
18
-
19
- var _default = useTranslatedLabels;
20
- exports["default"] = _default;
14
+ var _default = exports["default"] = useTranslatedLabels;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type TypographyContextProps = {
2
+ type TypographyContextProps = {
3
3
  as?: keyof HTMLElementTagNameMap;
4
4
  display?: string;
5
5
  fontFamily?: string;
@@ -14,7 +14,7 @@ declare type TypographyContextProps = {
14
14
  textOverflow?: string;
15
15
  whiteSpace?: string;
16
16
  };
17
- declare type BaseTypographyProps = TypographyContextProps & {
17
+ type BaseTypographyProps = TypographyContextProps & {
18
18
  children: React.ReactNode;
19
19
  };
20
20
  declare const BaseTypography: ({ as, display, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, color, textDecoration, textOverflow, whiteSpace, children, }: BaseTypographyProps) => JSX.Element;
@@ -1,47 +1,36 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports["default"] = void 0;
11
-
12
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
-
14
10
  var _react = _interopRequireWildcard(require("react"));
15
-
16
11
  var _styledComponents = _interopRequireDefault(require("styled-components"));
17
-
18
12
  var _templateObject;
19
-
20
- 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); }
21
-
22
- 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; }
23
-
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
15
  var TypographyContext = /*#__PURE__*/_react["default"].createContext(null);
25
-
26
16
  var BaseTypography = function BaseTypography(_ref) {
27
17
  var as = _ref.as,
28
- display = _ref.display,
29
- fontFamily = _ref.fontFamily,
30
- fontSize = _ref.fontSize,
31
- fontStyle = _ref.fontStyle,
32
- fontWeight = _ref.fontWeight,
33
- letterSpacing = _ref.letterSpacing,
34
- lineHeight = _ref.lineHeight,
35
- textAlign = _ref.textAlign,
36
- color = _ref.color,
37
- textDecoration = _ref.textDecoration,
38
- textOverflow = _ref.textOverflow,
39
- whiteSpace = _ref.whiteSpace,
40
- children = _ref.children;
18
+ display = _ref.display,
19
+ fontFamily = _ref.fontFamily,
20
+ fontSize = _ref.fontSize,
21
+ fontStyle = _ref.fontStyle,
22
+ fontWeight = _ref.fontWeight,
23
+ letterSpacing = _ref.letterSpacing,
24
+ lineHeight = _ref.lineHeight,
25
+ textAlign = _ref.textAlign,
26
+ color = _ref.color,
27
+ textDecoration = _ref.textDecoration,
28
+ textOverflow = _ref.textOverflow,
29
+ whiteSpace = _ref.whiteSpace,
30
+ children = _ref.children;
41
31
  var componentContext = (0, _react.useContext)(TypographyContext);
42
32
  var contextValue = (0, _react.useMemo)(function () {
43
33
  var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
44
-
45
34
  return {
46
35
  as: (_ref2 = as !== null && as !== void 0 ? as : componentContext === null || componentContext === void 0 ? void 0 : componentContext.as) !== null && _ref2 !== void 0 ? _ref2 : "span",
47
36
  display: (_ref3 = display !== null && display !== void 0 ? display : componentContext === null || componentContext === void 0 ? void 0 : componentContext.display) !== null && _ref3 !== void 0 ? _ref3 : "inline",
@@ -62,7 +51,6 @@ var BaseTypography = function BaseTypography(_ref) {
62
51
  value: contextValue
63
52
  }, /*#__PURE__*/_react["default"].createElement(StyledTypography, contextValue, children));
64
53
  };
65
-
66
54
  var StyledTypography = _styledComponents["default"].span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n text-align: ", ";\n text-decoration: ", ";\n text-overflow: ", ";\n white-space: ", ";\n overflow: ", ";\n margin: 0;\n"])), function (_ref15) {
67
55
  var display = _ref15.display;
68
56
  return display;
@@ -103,6 +91,4 @@ var StyledTypography = _styledComponents["default"].span(_templateObject || (_te
103
91
  var textOverflow = _ref27.textOverflow;
104
92
  return textOverflow !== "unset" ? "hidden" : "visible";
105
93
  });
106
-
107
- var _default = BaseTypography;
108
- exports["default"] = _default;
94
+ var _default = exports["default"] = BaseTypography;