@helsenorge/designsystem-react 14.0.0-beta.2 → 14.0.0-beta.3

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 (1090) hide show
  1. package/lib/AnchorLink.js +2 -2
  2. package/lib/AnchorLink.js.map +1 -1
  3. package/lib/Avatar.js +2 -2
  4. package/lib/Avatar.js.map +1 -1
  5. package/lib/Badge.js +2 -2
  6. package/lib/Badge.js.map +1 -1
  7. package/lib/Button.js +6 -6
  8. package/lib/Button.js.map +1 -1
  9. package/lib/CHANGELOG.md +9 -0
  10. package/lib/Checkbox.js +6 -6
  11. package/lib/Checkbox.js.map +1 -1
  12. package/lib/Close.js +3 -3
  13. package/lib/Close.js.map +1 -1
  14. package/lib/DictionaryTrigger.js +2 -2
  15. package/lib/DictionaryTrigger.js.map +1 -1
  16. package/lib/Drawer.js +5 -5
  17. package/lib/Drawer.js.map +1 -1
  18. package/lib/Duolist.js +5 -5
  19. package/lib/Duolist.js.map +1 -1
  20. package/lib/ElementHeader.js +9 -9
  21. package/lib/ElementHeader.js.map +1 -1
  22. package/lib/ElementHeaderText.js +4 -4
  23. package/lib/ElementHeaderText.js.map +1 -1
  24. package/lib/ErrorWrapper.js +2 -2
  25. package/lib/ErrorWrapper.js.map +1 -1
  26. package/lib/Expander.js +7 -7
  27. package/lib/Expander.js.map +1 -1
  28. package/lib/FormFieldTag.js +2 -2
  29. package/lib/FormFieldTag.js.map +1 -1
  30. package/lib/FormGroup.js +8 -8
  31. package/lib/FormGroup.js.map +1 -1
  32. package/lib/FormLayout.js +3 -3
  33. package/lib/FormLayout.js.map +1 -1
  34. package/lib/HelpDetails.js +3 -3
  35. package/lib/HelpDetails.js.map +1 -1
  36. package/lib/HelpTriggerIcon.js +2 -2
  37. package/lib/HelpTriggerIcon.js.map +1 -1
  38. package/lib/HelpTriggerStandalone.js +2 -2
  39. package/lib/HelpTriggerStandalone.js.map +1 -1
  40. package/lib/HighlightPanel.js +3 -3
  41. package/lib/HighlightPanel.js.map +1 -1
  42. package/lib/HorizontalScroll.js +4 -4
  43. package/lib/HorizontalScroll.js.map +1 -1
  44. package/lib/Icon.js +2 -2
  45. package/lib/Icon.js.map +1 -1
  46. package/lib/InfoTeaser.js +3 -3
  47. package/lib/InfoTeaser.js.map +1 -1
  48. package/lib/Input.js +4 -4
  49. package/lib/Input.js.map +1 -1
  50. package/lib/Label.js +4 -4
  51. package/lib/Label.js.map +1 -1
  52. package/lib/LinkList.js +5 -5
  53. package/lib/LinkList.js.map +1 -1
  54. package/lib/List.js +2 -2
  55. package/lib/List.js.map +1 -1
  56. package/lib/ListEditMode.js +3 -3
  57. package/lib/ListEditMode.js.map +1 -1
  58. package/lib/MaxCharacters.js +2 -2
  59. package/lib/MaxCharacters.js.map +1 -1
  60. package/lib/PanelTitle.js +2 -2
  61. package/lib/PanelTitle.js.map +1 -1
  62. package/lib/PopOver.js +2 -2
  63. package/lib/PopOver.js.map +1 -1
  64. package/lib/RadioButton.js +4 -4
  65. package/lib/RadioButton.js.map +1 -1
  66. package/lib/Select.js +4 -4
  67. package/lib/Select.js.map +1 -1
  68. package/lib/SingleSelectItem.js +3 -3
  69. package/lib/SingleSelectItem.js.map +1 -1
  70. package/lib/Slider.js +4 -4
  71. package/lib/Slider.js.map +1 -1
  72. package/lib/Spacer.js +2 -2
  73. package/lib/Spacer.js.map +1 -1
  74. package/lib/StatusDot.js +4 -4
  75. package/lib/StatusDot.js.map +1 -1
  76. package/lib/StatusDotList.js +2 -2
  77. package/lib/StatusDotList.js.map +1 -1
  78. package/lib/StepButtons.js +5 -5
  79. package/lib/StepButtons.js.map +1 -1
  80. package/lib/TabList.js +8 -8
  81. package/lib/TabList.js.map +1 -1
  82. package/lib/TabPanel.js +2 -2
  83. package/lib/TabPanel.js.map +1 -1
  84. package/lib/TableBody.js +3 -3
  85. package/lib/TableBody.js.map +1 -1
  86. package/lib/TableCell.js +3 -3
  87. package/lib/TableCell.js.map +1 -1
  88. package/lib/TableExpandedRow.js +5 -5
  89. package/lib/TableExpandedRow.js.map +1 -1
  90. package/lib/TableExpanderCell.js +3 -3
  91. package/lib/TableExpanderCell.js.map +1 -1
  92. package/lib/TableHead.js +7 -7
  93. package/lib/TableHead.js.map +1 -1
  94. package/lib/TableHeadCell.js +6 -6
  95. package/lib/TableHeadCell.js.map +1 -1
  96. package/lib/TableRow.js +6 -6
  97. package/lib/TableRow.js.map +1 -1
  98. package/lib/Textarea.js +4 -4
  99. package/lib/Textarea.js.map +1 -1
  100. package/lib/Title.js +2 -2
  101. package/lib/Title.js.map +1 -1
  102. package/lib/Toast.js +3 -3
  103. package/lib/Toast.js.map +1 -1
  104. package/lib/components/ArticleTeaser/index.js +4 -4
  105. package/lib/components/ArticleTeaser/index.js.map +1 -1
  106. package/lib/components/Chip/index.js +2 -2
  107. package/lib/components/Chip/index.js.map +1 -1
  108. package/lib/components/Dropdown/index.js +5 -5
  109. package/lib/components/Dropdown/index.js.map +1 -1
  110. package/lib/components/DropdownOld/index.js +3 -3
  111. package/lib/components/DropdownOld/index.js.map +1 -1
  112. package/lib/components/EmptyState/index.js +2 -2
  113. package/lib/components/EmptyState/index.js.map +1 -1
  114. package/lib/components/ExpanderHierarchy/index.js +7 -7
  115. package/lib/components/ExpanderHierarchy/index.js.map +1 -1
  116. package/lib/components/ExpanderList/index.js +6 -6
  117. package/lib/components/ExpanderList/index.js.map +1 -1
  118. package/lib/components/FavoriteButton/index.js +2 -2
  119. package/lib/components/FavoriteButton/index.js.map +1 -1
  120. package/lib/{src/components → components}/FormGroup/FormGroup.d.ts +1 -1
  121. package/lib/components/HelpBubble/index.js +3 -3
  122. package/lib/components/HelpBubble/index.js.map +1 -1
  123. package/lib/components/HelpPanel/index.js +2 -2
  124. package/lib/components/HelpPanel/index.js.map +1 -1
  125. package/lib/components/HelpTriggerInline/index.js +2 -2
  126. package/lib/components/HelpTriggerInline/index.js.map +1 -1
  127. package/lib/components/Loader/index.js +4 -4
  128. package/lib/components/Loader/index.js.map +1 -1
  129. package/lib/components/Modal/index.js +9 -9
  130. package/lib/components/Modal/index.js.map +1 -1
  131. package/lib/components/NotificationPanel/index.js +6 -6
  132. package/lib/components/NotificationPanel/index.js.map +1 -1
  133. package/lib/components/Panel/index.js +12 -12
  134. package/lib/components/Panel/index.js.map +1 -1
  135. package/lib/components/PanelList/index.js +3 -3
  136. package/lib/components/PanelList/index.js.map +1 -1
  137. package/lib/components/PopMenu/index.js +3 -3
  138. package/lib/components/PopMenu/index.js.map +1 -1
  139. package/lib/components/Progressbar/index.js +2 -2
  140. package/lib/components/Progressbar/index.js.map +1 -1
  141. package/lib/components/PromoPanel/index.js +2 -2
  142. package/lib/components/PromoPanel/index.js.map +1 -1
  143. package/lib/components/ServiceMessage/index.js +5 -5
  144. package/lib/components/ServiceMessage/index.js.map +1 -1
  145. package/lib/components/SharingStatus/index.js +4 -4
  146. package/lib/components/SharingStatus/index.js.map +1 -1
  147. package/lib/components/Step/index.js +2 -2
  148. package/lib/components/Step/index.js.map +1 -1
  149. package/lib/components/Stepper/index.js +2 -2
  150. package/lib/components/Stepper/index.js.map +1 -1
  151. package/lib/components/StickyNote/index.js +8 -8
  152. package/lib/components/StickyNote/index.js.map +1 -1
  153. package/lib/components/Table/index.js +3 -3
  154. package/lib/components/Table/index.js.map +1 -1
  155. package/lib/components/Tabs/index.js +4 -4
  156. package/lib/components/Tabs/index.js.map +1 -1
  157. package/lib/components/Tag/index.js +2 -2
  158. package/lib/components/Tag/index.js.map +1 -1
  159. package/lib/components/Tile/index.js +4 -4
  160. package/lib/components/Tile/index.js.map +1 -1
  161. package/lib/components/Toggle/index.js +9 -9
  162. package/lib/components/Toggle/index.js.map +1 -1
  163. package/lib/components/Validation/index.js +2 -2
  164. package/lib/components/Validation/index.js.map +1 -1
  165. package/lib/constants3.js +2 -2
  166. package/lib/constants3.js.map +1 -1
  167. package/lib/index.d.ts +18 -1
  168. package/lib/utils2.js +2 -2
  169. package/lib/utils2.js.map +1 -1
  170. package/lib/utils5.js +2 -2
  171. package/lib/utils5.js.map +1 -1
  172. package/package.json +1 -1
  173. package/lib/src/components/AnchorLink/AnchorLink.stories.d.ts +0 -33
  174. package/lib/src/components/AnchorLink/AnchorLink.test.d.ts +0 -1
  175. package/lib/src/components/ArticleTeaser/ArticleTeaser.stories.d.ts +0 -30
  176. package/lib/src/components/ArticleTeaser/ArticleTeaser.test.d.ts +0 -1
  177. package/lib/src/components/AsChildSlot/AsChildSlot.stories.d.ts +0 -20
  178. package/lib/src/components/AsChildSlot/AsChildSlot.test.d.ts +0 -1
  179. package/lib/src/components/Avatar/Avatar.stories.d.ts +0 -45
  180. package/lib/src/components/Avatar/Avatar.test.d.ts +0 -1
  181. package/lib/src/components/Badge/Badge.stories.d.ts +0 -42
  182. package/lib/src/components/Badge/Badge.test.d.ts +0 -1
  183. package/lib/src/components/Button/Button.stories.d.ts +0 -53
  184. package/lib/src/components/Button/Button.test.d.ts +0 -1
  185. package/lib/src/components/Checkbox/Checkbox.stories.d.ts +0 -48
  186. package/lib/src/components/Checkbox/Checkbox.test.d.ts +0 -1
  187. package/lib/src/components/Chip/Chip.stories.d.ts +0 -44
  188. package/lib/src/components/Chip/Chip.test.d.ts +0 -1
  189. package/lib/src/components/Close/Close.stories.d.ts +0 -32
  190. package/lib/src/components/Close/Close.test.d.ts +0 -1
  191. package/lib/src/components/DictionaryTrigger/DictionaryTrigger.stories.d.ts +0 -29
  192. package/lib/src/components/DictionaryTrigger/DictionaryTrigger.test.d.ts +0 -1
  193. package/lib/src/components/Drawer/Drawer.stories.d.ts +0 -86
  194. package/lib/src/components/Drawer/Drawer.test.d.ts +0 -1
  195. package/lib/src/components/Dropdown/Dropdown.stories.d.ts +0 -36
  196. package/lib/src/components/Dropdown/Dropdown.test.d.ts +0 -1
  197. package/lib/src/components/Dropdown/SingleSelect/SingleSelect.stories.d.ts +0 -57
  198. package/lib/src/components/Dropdown/SingleSelect/SingleSelect.test.d.ts +0 -1
  199. package/lib/src/components/DropdownOld/DropdownOld.stories.d.ts +0 -66
  200. package/lib/src/components/DropdownOld/DropdownOld.test.d.ts +0 -0
  201. package/lib/src/components/Duolist/Duolist.stories.d.ts +0 -35
  202. package/lib/src/components/Duolist/Duolist.test.d.ts +0 -1
  203. package/lib/src/components/ElementHeader/ElementHeader.stories.d.ts +0 -26
  204. package/lib/src/components/ElementHeader/ElementHeaderText/ElementHeaderText.stories.d.ts +0 -51
  205. package/lib/src/components/ElementHeader/StatusDotList/StatusDotList.stories.d.ts +0 -15
  206. package/lib/src/components/EmptyState/EmptyState.stories.d.ts +0 -38
  207. package/lib/src/components/EmptyState/EmptyState.test.d.ts +0 -1
  208. package/lib/src/components/ErrorWrapper/ErrorWrapper.test.d.ts +0 -1
  209. package/lib/src/components/Expander/Expander.stories.d.ts +0 -54
  210. package/lib/src/components/Expander/Expander.test.d.ts +0 -1
  211. package/lib/src/components/ExpanderHierarchy/ExpanderHierarchy.stories.d.ts +0 -40
  212. package/lib/src/components/ExpanderHierarchy/ExpanderHierarchy.test.d.ts +0 -1
  213. package/lib/src/components/ExpanderList/ExpanderList.Expander.stories.d.ts +0 -70
  214. package/lib/src/components/ExpanderList/ExpanderList.stories.d.ts +0 -65
  215. package/lib/src/components/ExpanderList/ExpanderList.test.d.ts +0 -0
  216. package/lib/src/components/EyebrowHeader/EyebrowHeader.stories.d.ts +0 -19
  217. package/lib/src/components/EyebrowHeader/EyebrowHeader.test.d.ts +0 -1
  218. package/lib/src/components/FavoriteButton/FavoriteButton.stories.d.ts +0 -21
  219. package/lib/src/components/FavoriteButton/FavoriteButton.test.d.ts +0 -1
  220. package/lib/src/components/FormFieldTag/FormFieldTag.stories.d.ts +0 -28
  221. package/lib/src/components/FormFieldTag/FormFieldTag.test.d.ts +0 -1
  222. package/lib/src/components/FormGroup/FormGroup.stories.d.ts +0 -50
  223. package/lib/src/components/FormGroup/FormGroup.test.d.ts +0 -1
  224. package/lib/src/components/FormLayout/FormLayout.stories.d.ts +0 -29
  225. package/lib/src/components/FormLayout/FormLayout.test.d.ts +0 -1
  226. package/lib/src/components/HelpBubble/HelpBubble.stories.d.ts +0 -46
  227. package/lib/src/components/HelpBubble/HelpBubble.test.d.ts +0 -1
  228. package/lib/src/components/HelpDetails/HelpDetails.stories.d.ts +0 -23
  229. package/lib/src/components/HelpDetails/HelpDetails.test.d.ts +0 -1
  230. package/lib/src/components/HelpDrawer/HelpDrawer.stories.d.ts +0 -49
  231. package/lib/src/components/HelpDrawer/HelpDrawer.test.d.ts +0 -1
  232. package/lib/src/components/HelpExpanderInline/HelpExpanderInline.stories.d.ts +0 -28
  233. package/lib/src/components/HelpExpanderInline/HelpExpanderInline.test.d.ts +0 -1
  234. package/lib/src/components/HelpExpanderStandalone/HelpExpanderStandalone.stories.d.ts +0 -36
  235. package/lib/src/components/HelpExpanderStandalone/HelpExpanderStandalone.test.d.ts +0 -1
  236. package/lib/src/components/HelpPanel/HelpPanel.stories.d.ts +0 -30
  237. package/lib/src/components/HelpPanel/HelpPanel.test.d.ts +0 -1
  238. package/lib/src/components/HelpTeaser/HelpTeaser.stories.d.ts +0 -37
  239. package/lib/src/components/HelpTeaser/HelpTeaser.test.d.ts +0 -1
  240. package/lib/src/components/HelpTooltip/HelpTooltip.stories.d.ts +0 -36
  241. package/lib/src/components/HelpTooltip/HelpTooltip.test.d.ts +0 -1
  242. package/lib/src/components/HelpTriggerIcon/HelpTriggerIcon.stories.d.ts +0 -47
  243. package/lib/src/components/HelpTriggerIcon/HelpTriggerIcon.test.d.ts +0 -1
  244. package/lib/src/components/HelpTriggerInline/HelpTriggerInline.stories.d.ts +0 -35
  245. package/lib/src/components/HelpTriggerInline/HelpTriggerInline.test.d.ts +0 -1
  246. package/lib/src/components/HelpTriggerStandalone/HelpTriggerStandalone.stories.d.ts +0 -35
  247. package/lib/src/components/HelpTriggerStandalone/HelpTriggerStandalone.test.d.ts +0 -1
  248. package/lib/src/components/HighlightPanel/HighlightPanel.stories.d.ts +0 -40
  249. package/lib/src/components/HighlightPanel/HighlightPanel.test.d.ts +0 -1
  250. package/lib/src/components/Highlighter/Highlighter.stories.d.ts +0 -26
  251. package/lib/src/components/Highlighter/Highlighter.test.d.ts +0 -1
  252. package/lib/src/components/HorizontalScroll/HorizontalScroll.test.d.ts +0 -1
  253. package/lib/src/components/Icon/Icon.stories.d.ts +0 -41
  254. package/lib/src/components/Icon/Icon.test.d.ts +0 -1
  255. package/lib/src/components/Illustration/Illustration.stories.d.ts +0 -28
  256. package/lib/src/components/Illustration/Illustration.test.d.ts +0 -1
  257. package/lib/src/components/Illustration/Illustrations.stories.d.ts +0 -40
  258. package/lib/src/components/InfoTeaser/InfoTeaser.stories.d.ts +0 -38
  259. package/lib/src/components/InfoTeaser/InfoTeaser.test.d.ts +0 -1
  260. package/lib/src/components/Input/Input.stories.d.ts +0 -85
  261. package/lib/src/components/Input/Input.test.d.ts +0 -1
  262. package/lib/src/components/Label/Label.stories.d.ts +0 -35
  263. package/lib/src/components/Label/Label.test.d.ts +0 -1
  264. package/lib/src/components/LazyIcon/LazyIcon.stories.d.ts +0 -25
  265. package/lib/src/components/LazyIcon/LazyIcon.test.d.ts +0 -1
  266. package/lib/src/components/LazyIllustration/LazyIllustration.stories.d.ts +0 -35
  267. package/lib/src/components/LazyIllustration/LazyIllustration.test.d.ts +0 -1
  268. package/lib/src/components/LinkList/LinkList.Link.stories.d.ts +0 -22
  269. package/lib/src/components/LinkList/LinkList.stories.d.ts +0 -59
  270. package/lib/src/components/LinkList/LinkList.test.d.ts +0 -1
  271. package/lib/src/components/List/List.stories.d.ts +0 -53
  272. package/lib/src/components/List/List.test.d.ts +0 -1
  273. package/lib/src/components/ListEditMode/ListEditMode.stories.d.ts +0 -41
  274. package/lib/src/components/Loader/Loader.stories.d.ts +0 -31
  275. package/lib/src/components/Loader/Loader.test.d.ts +0 -1
  276. package/lib/src/components/Logo/Logo.stories.d.ts +0 -36
  277. package/lib/src/components/Logo/Logo.test.d.ts +0 -1
  278. package/lib/src/components/MaxCharacters/MaxCharacters.test.d.ts +0 -1
  279. package/lib/src/components/Mittens/Mittens.stories.d.ts +0 -34
  280. package/lib/src/components/Modal/Modal.stories.d.ts +0 -71
  281. package/lib/src/components/Modal/Modal.test.d.ts +0 -1
  282. package/lib/src/components/NotificationPanel/NotificationPanel.stories.d.ts +0 -54
  283. package/lib/src/components/NotificationPanel/NotificationPanel.test.d.ts +0 -1
  284. package/lib/src/components/Panel/Panel.stories.d.ts +0 -79
  285. package/lib/src/components/Panel/Panel.test.d.ts +0 -1
  286. package/lib/src/components/Panel/PanelTitle/PanelTitle.stories.d.ts +0 -43
  287. package/lib/src/components/PanelList/PanelList.stories.d.ts +0 -32
  288. package/lib/src/components/PanelList/PanelList.test.d.ts +0 -1
  289. package/lib/src/components/PopMenu/PopMenu.stories.d.ts +0 -42
  290. package/lib/src/components/PopMenu/PopMenu.test.d.ts +0 -0
  291. package/lib/src/components/PopOver/PopOver.stories.d.ts +0 -46
  292. package/lib/src/components/PopOver/PopOver.test.d.ts +0 -1
  293. package/lib/src/components/Progressbar/Progressbar.stories.d.ts +0 -40
  294. package/lib/src/components/Progressbar/Progressbar.test.d.ts +0 -1
  295. package/lib/src/components/PromoPanel/PromoPanel.stories.d.ts +0 -44
  296. package/lib/src/components/PromoPanel/PromoPanel.test.d.ts +0 -1
  297. package/lib/src/components/RadioButton/RadioButton.stories.d.ts +0 -58
  298. package/lib/src/components/RadioButton/RadioButton.test.d.ts +0 -1
  299. package/lib/src/components/Select/Select.stories.d.ts +0 -36
  300. package/lib/src/components/Select/Select.test.d.ts +0 -1
  301. package/lib/src/components/ServiceMessage/ServiceMessage.stories.d.ts +0 -71
  302. package/lib/src/components/ServiceMessage/ServiceMessage.test.d.ts +0 -1
  303. package/lib/src/components/SharingStatus/SharingStatus.stories.d.ts +0 -30
  304. package/lib/src/components/SharingStatus/SharingStatus.test.d.ts +0 -1
  305. package/lib/src/components/Slider/Slider.stories.d.ts +0 -55
  306. package/lib/src/components/Slider/Slider.test.d.ts +0 -1
  307. package/lib/src/components/Spacer/Spacer.stories.d.ts +0 -17
  308. package/lib/src/components/Spacer/Spacer.test.d.ts +0 -1
  309. package/lib/src/components/StatusDot/StatusDot.stories.d.ts +0 -31
  310. package/lib/src/components/StatusDot/StatusDot.test.d.ts +0 -1
  311. package/lib/src/components/Step/Step.stories.d.ts +0 -32
  312. package/lib/src/components/Step/Step.test.d.ts +0 -1
  313. package/lib/src/components/StepButtons/StepButtons.stories.d.ts +0 -19
  314. package/lib/src/components/StepButtons/StepButtons.test.d.ts +0 -1
  315. package/lib/src/components/Stepper/Stepper.stories.d.ts +0 -38
  316. package/lib/src/components/Stepper/Stepper.test.d.ts +0 -1
  317. package/lib/src/components/StickyNote/StickyNote.stories.d.ts +0 -42
  318. package/lib/src/components/StickyNote/StickyNote.test.d.ts +0 -1
  319. package/lib/src/components/Table/Table.stories.d.ts +0 -93
  320. package/lib/src/components/Table/Table.test.d.ts +0 -1
  321. package/lib/src/components/Tabs/Tabs.stories.d.ts +0 -63
  322. package/lib/src/components/Tabs/Tabs.test.d.ts +0 -1
  323. package/lib/src/components/Tag/Tag.stories.d.ts +0 -38
  324. package/lib/src/components/Tag/Tag.test.d.ts +0 -1
  325. package/lib/src/components/TagList/TagList.stories.d.ts +0 -18
  326. package/lib/src/components/TagList/TagList.test.d.ts +0 -1
  327. package/lib/src/components/Textarea/Textarea.stories.d.ts +0 -76
  328. package/lib/src/components/Textarea/Textarea.test.d.ts +0 -1
  329. package/lib/src/components/Tile/Tile.stories.d.ts +0 -71
  330. package/lib/src/components/Tile/Tile.test.d.ts +0 -1
  331. package/lib/src/components/Title/Title.stories.d.ts +0 -37
  332. package/lib/src/components/Title/Title.test.d.ts +0 -1
  333. package/lib/src/components/Toast/Toast.stories.d.ts +0 -29
  334. package/lib/src/components/Toast/Toast.test.d.ts +0 -1
  335. package/lib/src/components/ToastList/ToastList.stories.d.ts +0 -23
  336. package/lib/src/components/ToastList/ToastList.test.d.ts +0 -1
  337. package/lib/src/components/Toggle/Toggle.stories.d.ts +0 -36
  338. package/lib/src/components/Toggle/Toggle.test.d.ts +0 -1
  339. package/lib/src/components/Validation/Validation.stories.d.ts +0 -14
  340. package/lib/src/components/Validation/Validation.test.d.ts +0 -1
  341. package/lib/src/components/Validation/ValidationSummary.test.d.ts +0 -1
  342. package/lib/src/docs/ButtonWithModal/ButtonWithModal.d.ts +0 -9
  343. package/lib/src/docs/ButtonWithModal/index.d.ts +0 -3
  344. package/lib/src/docs/FormExample/FormExample.d.ts +0 -9
  345. package/lib/src/docs/FormExample/constants.d.ts +0 -10
  346. package/lib/src/docs/FormExample/index.d.ts +0 -3
  347. package/lib/src/docs/GridExample/GridExample.d.ts +0 -7
  348. package/lib/src/docs/GridExample/index.d.ts +0 -3
  349. package/lib/src/docs/HelpBubbleExample/HelpBubbleExample.d.ts +0 -3
  350. package/lib/src/docs/HelpBubbleExample/index.d.ts +0 -3
  351. package/lib/src/docs/HelpTooltipExample/HelpTooltipExample.d.ts +0 -3
  352. package/lib/src/docs/HelpTooltipExample/index.d.ts +0 -3
  353. package/lib/src/docs/Tokens/Tokens.stories.d.ts +0 -23
  354. package/lib/src/docs/Tokens/TokensExample.d.ts +0 -6
  355. package/lib/src/hoc/withBreakpoint/withBreakpoint.stories.d.ts +0 -16
  356. package/lib/src/hoc/withBreakpoint/withBreakpoint.test.d.ts +0 -1
  357. package/lib/src/hooks/useBreakpoint.stories.d.ts +0 -22
  358. package/lib/src/hooks/useElementList.stories.d.ts +0 -22
  359. package/lib/src/hooks/useFocusToggle.stories.d.ts +0 -22
  360. package/lib/src/hooks/useFocusTrap.stories.d.ts +0 -22
  361. package/lib/src/hooks/useFocusableElements.stories.d.ts +0 -22
  362. package/lib/src/hooks/useIdWithFallback.stories.d.ts +0 -22
  363. package/lib/src/hooks/useIntersectionObserver.stories.d.ts +0 -22
  364. package/lib/src/hooks/useInterval.stories.d.ts +0 -22
  365. package/lib/src/hooks/useIsMobileBreakpoint.stories.d.ts +0 -22
  366. package/lib/src/hooks/useIsVisible.stories.d.ts +0 -33
  367. package/lib/src/hooks/useKeyboardEvent.stories.d.ts +0 -22
  368. package/lib/src/hooks/useLanguage.stories.d.ts +0 -22
  369. package/lib/src/hooks/useLayoutEvent.stories.d.ts +0 -22
  370. package/lib/src/hooks/useOutsideEvent.stories.d.ts +0 -22
  371. package/lib/src/hooks/usePseudoClasses.stories.d.ts +0 -22
  372. package/lib/src/hooks/useResizeObserver.stories.d.ts +0 -22
  373. package/lib/src/hooks/useReturnFocusOnUnmount.stories.d.ts +0 -26
  374. package/lib/src/hooks/useRovingFocus.stories.d.ts +0 -24
  375. package/lib/src/hooks/useSize.stories.d.ts +0 -22
  376. package/lib/src/index.d.ts +0 -18
  377. package/lib/src/resources/HN.Designsystem.ArticleTeaser.en-GB.json.d.ts +0 -7
  378. package/lib/src/resources/HN.Designsystem.ArticleTeaser.nb-NO.json.d.ts +0 -7
  379. package/lib/src/resources/HN.Designsystem.Drawer.en-GB.json.d.ts +0 -6
  380. package/lib/src/resources/HN.Designsystem.Drawer.nb-NO.json.d.ts +0 -6
  381. package/lib/src/resources/HN.Designsystem.Dropdown.en-GB.json.d.ts +0 -6
  382. package/lib/src/resources/HN.Designsystem.Dropdown.nb-NO.json.d.ts +0 -6
  383. package/lib/src/resources/HN.Designsystem.FavoriteButton.nb-NO.json.d.ts +0 -6
  384. package/lib/src/resources/HN.Designsystem.FormFieldTag.en-GB.json.d.ts +0 -12
  385. package/lib/src/resources/HN.Designsystem.FormFieldTag.nb-NO.json.d.ts +0 -12
  386. package/lib/src/resources/HN.Designsystem.FormFieldTag.nn-NO.json.d.ts +0 -12
  387. package/lib/src/resources/HN.Designsystem.FormFieldTag.se-NO.json.d.ts +0 -12
  388. package/lib/src/resources/HN.Designsystem.HelpBubble.nb-NO.json.d.ts +0 -6
  389. package/lib/src/resources/HN.Designsystem.HelpDrawer.nb-NO.json.d.ts +0 -6
  390. package/lib/src/resources/HN.Designsystem.InfoTeaser.en-GB.json.d.ts +0 -7
  391. package/lib/src/resources/HN.Designsystem.InfoTeaser.nb-NO.json.d.ts +0 -7
  392. package/lib/src/resources/HN.Designsystem.Input.en-GB.json.d.ts +0 -6
  393. package/lib/src/resources/HN.Designsystem.Input.nb-NO.json.d.ts +0 -6
  394. package/lib/src/resources/HN.Designsystem.Input.nn-NO.json.d.ts +0 -6
  395. package/lib/src/resources/HN.Designsystem.LinkList.en-GB.json.d.ts +0 -6
  396. package/lib/src/resources/HN.Designsystem.LinkList.nb-NO.json.d.ts +0 -6
  397. package/lib/src/resources/HN.Designsystem.Panel.en-GB.json.d.ts +0 -7
  398. package/lib/src/resources/HN.Designsystem.Panel.nb-NO.json.d.ts +0 -7
  399. package/lib/src/resources/HN.Designsystem.Tabs.en-GB.json.d.ts +0 -7
  400. package/lib/src/resources/HN.Designsystem.Tabs.nb-NO.json.d.ts +0 -7
  401. package/lib/src/resources/HN.Designsystem.TextArea.en-GB.json.d.ts +0 -6
  402. package/lib/src/resources/HN.Designsystem.TextArea.nb-NO.json.d.ts +0 -6
  403. package/lib/src/resources/HN.Designsystem.TextArea.nn-NO.json.d.ts +0 -6
  404. package/lib/src/resources/index.d.ts +0 -1
  405. package/lib/src/scss/typography.stories.d.ts +0 -32
  406. package/lib/src/utils/language.stories.d.ts +0 -27
  407. package/lib/src/utils/tests/accessibility.test.d.ts +0 -1
  408. package/lib/src/utils/tests/deepContains.test.d.ts +0 -1
  409. package/lib/src/utils/tests/language.test.d.ts +0 -1
  410. package/lib/src/utils/tests/uuid.test.d.ts +0 -1
  411. package/lib/src/utils/tests/viewport.test.d.ts +0 -1
  412. /package/lib/{src/__mocks__ → __mocks__}/IntersectionObserver.d.ts +0 -0
  413. /package/lib/{src/__mocks__ → __mocks__}/MutationObserver.d.ts +0 -0
  414. /package/lib/{src/__mocks__ → __mocks__}/ResizeObserver.d.ts +0 -0
  415. /package/lib/{src/__mocks__ → __mocks__}/matchMedia.d.ts +0 -0
  416. /package/lib/{src/__mocks__ → __mocks__}/useLayoutEvent.d.ts +0 -0
  417. /package/lib/{src/__mocks__ → __mocks__}/useOutsideEvent.d.ts +0 -0
  418. /package/lib/{src/__mocks__ → __mocks__}/usePseudoClasses.d.ts +0 -0
  419. /package/lib/{src/__mocks__ → __mocks__}/useSize.d.ts +0 -0
  420. /package/lib/{src/__mocks__ → __mocks__}/uuid.d.ts +0 -0
  421. /package/lib/{src/components → components}/AnchorLink/AnchorLink.d.ts +0 -0
  422. /package/lib/{src/components → components}/AnchorLink/index.d.ts +0 -0
  423. /package/lib/{src/components → components}/ArticleTeaser/ArticleTeaser.d.ts +0 -0
  424. /package/lib/{src/components → components}/ArticleTeaser/index.d.ts +0 -0
  425. /package/lib/{src/components → components}/ArticleTeaser/resourceHelper.d.ts +0 -0
  426. /package/lib/{src/components → components}/AsChildSlot/AsChildSlot.d.ts +0 -0
  427. /package/lib/{src/components → components}/AsChildSlot/index.d.ts +0 -0
  428. /package/lib/{src/components → components}/Avatar/Avatar.d.ts +0 -0
  429. /package/lib/{src/components → components}/Avatar/constants.d.ts +0 -0
  430. /package/lib/{src/components → components}/Avatar/index.d.ts +0 -0
  431. /package/lib/{src/components → components}/Badge/Badge.d.ts +0 -0
  432. /package/lib/{src/components → components}/Badge/NotificationBadge.d.ts +0 -0
  433. /package/lib/{src/components → components}/Badge/index.d.ts +0 -0
  434. /package/lib/{src/components → components}/Button/Button.d.ts +0 -0
  435. /package/lib/{src/components → components}/Button/index.d.ts +0 -0
  436. /package/lib/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
  437. /package/lib/{src/components → components}/Checkbox/index.d.ts +0 -0
  438. /package/lib/{src/components → components}/Chip/Chip.d.ts +0 -0
  439. /package/lib/{src/components → components}/Chip/constants.d.ts +0 -0
  440. /package/lib/{src/components → components}/Chip/index.d.ts +0 -0
  441. /package/lib/{src/components → components}/Close/Close.d.ts +0 -0
  442. /package/lib/{src/components → components}/Close/index.d.ts +0 -0
  443. /package/lib/{src/components → components}/DictionaryTrigger/DictionaryTrigger.d.ts +0 -0
  444. /package/lib/{src/components → components}/DictionaryTrigger/index.d.ts +0 -0
  445. /package/lib/{src/components → components}/Drawer/Drawer.d.ts +0 -0
  446. /package/lib/{src/components → components}/Drawer/index.d.ts +0 -0
  447. /package/lib/{src/components → components}/Drawer/resourceHelper.d.ts +0 -0
  448. /package/lib/{src/components → components}/Dropdown/Dropdown.d.ts +0 -0
  449. /package/lib/{src/components → components}/Dropdown/SingleSelect/SingleSelect.d.ts +0 -0
  450. /package/lib/{src/components → components}/Dropdown/SingleSelect/SingleSelectItem.d.ts +0 -0
  451. /package/lib/{src/components → components}/Dropdown/SingleSelect/index.d.ts +0 -0
  452. /package/lib/{src/components → components}/Dropdown/SingleSelect/utils.d.ts +0 -0
  453. /package/lib/{src/components → components}/Dropdown/index.d.ts +0 -0
  454. /package/lib/{src/components → components}/Dropdown/resourceHelper.d.ts +0 -0
  455. /package/lib/{src/components → components}/DropdownOld/DropdownOld.d.ts +0 -0
  456. /package/lib/{src/components → components}/DropdownOld/constants.d.ts +0 -0
  457. /package/lib/{src/components → components}/DropdownOld/index.d.ts +0 -0
  458. /package/lib/{src/components → components}/DropdownOld/resourceHelper.d.ts +0 -0
  459. /package/lib/{src/components → components}/Duolist/Duolist.d.ts +0 -0
  460. /package/lib/{src/components → components}/Duolist/index.d.ts +0 -0
  461. /package/lib/{src/components → components}/ElementHeader/ElementHeader.d.ts +0 -0
  462. /package/lib/{src/components → components}/ElementHeader/ElementHeaderText/ElementHeaderText.d.ts +0 -0
  463. /package/lib/{src/components → components}/ElementHeader/ElementHeaderText/index.d.ts +0 -0
  464. /package/lib/{src/components → components}/ElementHeader/StatusDotList/StatusDotList.d.ts +0 -0
  465. /package/lib/{src/components → components}/ElementHeader/StatusDotList/index.d.ts +0 -0
  466. /package/lib/{src/components → components}/ElementHeader/index.d.ts +0 -0
  467. /package/lib/{src/components → components}/ElementHeader/utils.d.ts +0 -0
  468. /package/lib/{src/components → components}/EmptyState/EmptyBoxBeeMedium.d.ts +0 -0
  469. /package/lib/{src/components → components}/EmptyState/EmptyBoxBeeSmall.d.ts +0 -0
  470. /package/lib/{src/components → components}/EmptyState/EmptyState.d.ts +0 -0
  471. /package/lib/{src/components → components}/EmptyState/constants.d.ts +0 -0
  472. /package/lib/{src/components → components}/EmptyState/index.d.ts +0 -0
  473. /package/lib/{src/components → components}/ErrorWrapper/ErrorWrapper.d.ts +0 -0
  474. /package/lib/{src/components → components}/ErrorWrapper/index.d.ts +0 -0
  475. /package/lib/{src/components → components}/Expander/Expander.d.ts +0 -0
  476. /package/lib/{src/components → components}/Expander/constants.d.ts +0 -0
  477. /package/lib/{src/components → components}/Expander/index.d.ts +0 -0
  478. /package/lib/{src/components → components}/ExpanderHierarchy/Expander.d.ts +0 -0
  479. /package/lib/{src/components → components}/ExpanderHierarchy/ExpanderButton.d.ts +0 -0
  480. /package/lib/{src/components → components}/ExpanderHierarchy/ExpanderHierarchy.d.ts +0 -0
  481. /package/lib/{src/components → components}/ExpanderHierarchy/index.d.ts +0 -0
  482. /package/lib/{src/components → components}/ExpanderHierarchy/utils.d.ts +0 -0
  483. /package/lib/{src/components → components}/ExpanderList/ExpanderList.d.ts +0 -0
  484. /package/lib/{src/components → components}/ExpanderList/index.d.ts +0 -0
  485. /package/lib/{src/components → components}/EyebrowHeader/EyebrowHeader.d.ts +0 -0
  486. /package/lib/{src/components → components}/EyebrowHeader/index.d.ts +0 -0
  487. /package/lib/{src/components → components}/FavoriteButton/FavoriteButton.d.ts +0 -0
  488. /package/lib/{src/components → components}/FavoriteButton/StarIcon.d.ts +0 -0
  489. /package/lib/{src/components → components}/FavoriteButton/index.d.ts +0 -0
  490. /package/lib/{src/components → components}/FavoriteButton/resourceHelper.d.ts +0 -0
  491. /package/lib/{src/components → components}/FormFieldTag/FormFieldTag.d.ts +0 -0
  492. /package/lib/{src/components → components}/FormFieldTag/index.d.ts +0 -0
  493. /package/lib/{src/components → components}/FormFieldTag/resourceHelper.d.ts +0 -0
  494. /package/lib/{src/components → components}/FormGroup/index.d.ts +0 -0
  495. /package/lib/{src/components → components}/FormLayout/FormLayout.d.ts +0 -0
  496. /package/lib/{src/components → components}/FormLayout/constants.d.ts +0 -0
  497. /package/lib/{src/components → components}/FormLayout/index.d.ts +0 -0
  498. /package/lib/{src/components → components}/HelpBubble/HelpBubble.d.ts +0 -0
  499. /package/lib/{src/components → components}/HelpBubble/index.d.ts +0 -0
  500. /package/lib/{src/components → components}/HelpBubble/resourceHelper.d.ts +0 -0
  501. /package/lib/{src/components → components}/HelpDetails/HelpDetails.d.ts +0 -0
  502. /package/lib/{src/components → components}/HelpDrawer/HelpDrawer.d.ts +0 -0
  503. /package/lib/{src/components → components}/HelpDrawer/index.d.ts +0 -0
  504. /package/lib/{src/components → components}/HelpDrawer/resourceHelper.d.ts +0 -0
  505. /package/lib/{src/components → components}/HelpExpanderInline/HelpExpanderInline.d.ts +0 -0
  506. /package/lib/{src/components → components}/HelpExpanderInline/index.d.ts +0 -0
  507. /package/lib/{src/components → components}/HelpExpanderStandalone/HelpExpanderStandalone.d.ts +0 -0
  508. /package/lib/{src/components → components}/HelpExpanderStandalone/index.d.ts +0 -0
  509. /package/lib/{src/components → components}/HelpPanel/HelpPanel.d.ts +0 -0
  510. /package/lib/{src/components → components}/HelpPanel/index.d.ts +0 -0
  511. /package/lib/{src/components → components}/HelpTeaser/HelpTeaser.d.ts +0 -0
  512. /package/lib/{src/components → components}/HelpTeaser/index.d.ts +0 -0
  513. /package/lib/{src/components → components}/HelpTooltip/HelpTooltip.d.ts +0 -0
  514. /package/lib/{src/components → components}/HelpTooltip/index.d.ts +0 -0
  515. /package/lib/{src/components → components}/HelpTriggerIcon/HelpSign.d.ts +0 -0
  516. /package/lib/{src/components → components}/HelpTriggerIcon/HelpTriggerIcon.d.ts +0 -0
  517. /package/lib/{src/components → components}/HelpTriggerIcon/index.d.ts +0 -0
  518. /package/lib/{src/components → components}/HelpTriggerInline/HelpTriggerInline.d.ts +0 -0
  519. /package/lib/{src/components → components}/HelpTriggerInline/index.d.ts +0 -0
  520. /package/lib/{src/components → components}/HelpTriggerStandalone/HelpTriggerStandalone.d.ts +0 -0
  521. /package/lib/{src/components → components}/HelpTriggerStandalone/index.d.ts +0 -0
  522. /package/lib/{src/components → components}/HighlightPanel/HighlightPanel.d.ts +0 -0
  523. /package/lib/{src/components → components}/HighlightPanel/index.d.ts +0 -0
  524. /package/lib/{src/components → components}/Highlighter/Highlighter.d.ts +0 -0
  525. /package/lib/{src/components → components}/Highlighter/index.d.ts +0 -0
  526. /package/lib/{src/components → components}/HorizontalScroll/HorizontalScroll.d.ts +0 -0
  527. /package/lib/{src/components → components}/HorizontalScroll/index.d.ts +0 -0
  528. /package/lib/{src/components → components}/Icon/Icon.d.ts +0 -0
  529. /package/lib/{src/components → components}/Icon/index.d.ts +0 -0
  530. /package/lib/{src/components → components}/Icon/utils.d.ts +0 -0
  531. /package/lib/{src/components → components}/Icons/ActiveMonitoring.d.ts +0 -0
  532. /package/lib/{src/components → components}/Icons/AcupunctureBack.d.ts +0 -0
  533. /package/lib/{src/components → components}/Icons/AdditionalIconInformation.d.ts +0 -0
  534. /package/lib/{src/components → components}/Icons/AlarmClock.d.ts +0 -0
  535. /package/lib/{src/components → components}/Icons/AlertSignFill.d.ts +0 -0
  536. /package/lib/{src/components → components}/Icons/AlertSignStroke.d.ts +0 -0
  537. /package/lib/{src/components → components}/Icons/Amputation.d.ts +0 -0
  538. /package/lib/{src/components → components}/Icons/Anxiety.d.ts +0 -0
  539. /package/lib/{src/components → components}/Icons/Apple.d.ts +0 -0
  540. /package/lib/{src/components → components}/Icons/Archive.d.ts +0 -0
  541. /package/lib/{src/components → components}/Icons/ArmFlexing.d.ts +0 -0
  542. /package/lib/{src/components → components}/Icons/ArrowDown.d.ts +0 -0
  543. /package/lib/{src/components → components}/Icons/ArrowLeft.d.ts +0 -0
  544. /package/lib/{src/components → components}/Icons/ArrowRight.d.ts +0 -0
  545. /package/lib/{src/components → components}/Icons/ArrowUp.d.ts +0 -0
  546. /package/lib/{src/components → components}/Icons/ArrowUpRight.d.ts +0 -0
  547. /package/lib/{src/components → components}/Icons/Attachment.d.ts +0 -0
  548. /package/lib/{src/components → components}/Icons/Atv.d.ts +0 -0
  549. /package/lib/{src/components → components}/Icons/Avatar.d.ts +0 -0
  550. /package/lib/{src/components → components}/Icons/AwakePersonOnPillow.d.ts +0 -0
  551. /package/lib/{src/components → components}/Icons/Baby.d.ts +0 -0
  552. /package/lib/{src/components → components}/Icons/BandAid.d.ts +0 -0
  553. /package/lib/{src/components → components}/Icons/BeerAndPills.d.ts +0 -0
  554. /package/lib/{src/components → components}/Icons/Bell.d.ts +0 -0
  555. /package/lib/{src/components → components}/Icons/Bike.d.ts +0 -0
  556. /package/lib/{src/components → components}/Icons/BirthControl.d.ts +0 -0
  557. /package/lib/{src/components → components}/Icons/BirthdayCake.d.ts +0 -0
  558. /package/lib/{src/components → components}/Icons/Boat.d.ts +0 -0
  559. /package/lib/{src/components → components}/Icons/Body.d.ts +0 -0
  560. /package/lib/{src/components → components}/Icons/Braille.d.ts +0 -0
  561. /package/lib/{src/components → components}/Icons/Brain.d.ts +0 -0
  562. /package/lib/{src/components → components}/Icons/BreastReconstruction.d.ts +0 -0
  563. /package/lib/{src/components → components}/Icons/BreastRemoval.d.ts +0 -0
  564. /package/lib/{src/components → components}/Icons/Breasts.d.ts +0 -0
  565. /package/lib/{src/components → components}/Icons/BrokenHeart.d.ts +0 -0
  566. /package/lib/{src/components → components}/Icons/BrokenPuzzle.d.ts +0 -0
  567. /package/lib/{src/components → components}/Icons/Bus.d.ts +0 -0
  568. /package/lib/{src/components → components}/Icons/Calendar.d.ts +0 -0
  569. /package/lib/{src/components → components}/Icons/CalendarChange.d.ts +0 -0
  570. /package/lib/{src/components → components}/Icons/CalendarCheck.d.ts +0 -0
  571. /package/lib/{src/components → components}/Icons/CalendarEvent.d.ts +0 -0
  572. /package/lib/{src/components → components}/Icons/CalendarSave.d.ts +0 -0
  573. /package/lib/{src/components → components}/Icons/Cancer.d.ts +0 -0
  574. /package/lib/{src/components → components}/Icons/Candle.d.ts +0 -0
  575. /package/lib/{src/components → components}/Icons/Car.d.ts +0 -0
  576. /package/lib/{src/components → components}/Icons/Carton.d.ts +0 -0
  577. /package/lib/{src/components → components}/Icons/Change.d.ts +0 -0
  578. /package/lib/{src/components → components}/Icons/Check.d.ts +0 -0
  579. /package/lib/{src/components → components}/Icons/CheckFill.d.ts +0 -0
  580. /package/lib/{src/components → components}/Icons/CheckOutline.d.ts +0 -0
  581. /package/lib/{src/components → components}/Icons/Chest.d.ts +0 -0
  582. /package/lib/{src/components → components}/Icons/ChevronDown.d.ts +0 -0
  583. /package/lib/{src/components → components}/Icons/ChevronLeft.d.ts +0 -0
  584. /package/lib/{src/components → components}/Icons/ChevronRight.d.ts +0 -0
  585. /package/lib/{src/components → components}/Icons/ChevronUp.d.ts +0 -0
  586. /package/lib/{src/components → components}/Icons/ChevronsDown.d.ts +0 -0
  587. /package/lib/{src/components → components}/Icons/ChevronsUp.d.ts +0 -0
  588. /package/lib/{src/components → components}/Icons/ChildPlaying.d.ts +0 -0
  589. /package/lib/{src/components → components}/Icons/Cigarette.d.ts +0 -0
  590. /package/lib/{src/components → components}/Icons/Coins.d.ts +0 -0
  591. /package/lib/{src/components → components}/Icons/Contacts.d.ts +0 -0
  592. /package/lib/{src/components → components}/Icons/Copy.d.ts +0 -0
  593. /package/lib/{src/components → components}/Icons/CoronaCertificate.d.ts +0 -0
  594. /package/lib/{src/components → components}/Icons/Coronavirus.d.ts +0 -0
  595. /package/lib/{src/components → components}/Icons/Cough.d.ts +0 -0
  596. /package/lib/{src/components → components}/Icons/CreditCard.d.ts +0 -0
  597. /package/lib/{src/components → components}/Icons/CriticalHealthInfo.d.ts +0 -0
  598. /package/lib/{src/components → components}/Icons/Cross.d.ts +0 -0
  599. /package/lib/{src/components → components}/Icons/DataExchange.d.ts +0 -0
  600. /package/lib/{src/components → components}/Icons/DataReceived.d.ts +0 -0
  601. /package/lib/{src/components → components}/Icons/DataSent.d.ts +0 -0
  602. /package/lib/{src/components → components}/Icons/Depression.d.ts +0 -0
  603. /package/lib/{src/components → components}/Icons/DigestiveSystem.d.ts +0 -0
  604. /package/lib/{src/components → components}/Icons/Dizzy.d.ts +0 -0
  605. /package/lib/{src/components → components}/Icons/Documents.d.ts +0 -0
  606. /package/lib/{src/components → components}/Icons/Dog.d.ts +0 -0
  607. /package/lib/{src/components → components}/Icons/DonorCard.d.ts +0 -0
  608. /package/lib/{src/components → components}/Icons/DotActive.d.ts +0 -0
  609. /package/lib/{src/components → components}/Icons/DotAlert.d.ts +0 -0
  610. /package/lib/{src/components → components}/Icons/DotCancelled.d.ts +0 -0
  611. /package/lib/{src/components → components}/Icons/DotHalfDisc.d.ts +0 -0
  612. /package/lib/{src/components → components}/Icons/DotInactive.d.ts +0 -0
  613. /package/lib/{src/components → components}/Icons/DotInfo.d.ts +0 -0
  614. /package/lib/{src/components → components}/Icons/DotLookingGlass.d.ts +0 -0
  615. /package/lib/{src/components → components}/Icons/DotPending.d.ts +0 -0
  616. /package/lib/{src/components → components}/Icons/DotQuestionMark.d.ts +0 -0
  617. /package/lib/{src/components → components}/Icons/DotSuccess.d.ts +0 -0
  618. /package/lib/{src/components → components}/Icons/DotTransparent.d.ts +0 -0
  619. /package/lib/{src/components → components}/Icons/DotWarningTriangle.d.ts +0 -0
  620. /package/lib/{src/components → components}/Icons/Download.d.ts +0 -0
  621. /package/lib/{src/components → components}/Icons/Draft.d.ts +0 -0
  622. /package/lib/{src/components → components}/Icons/Drag.d.ts +0 -0
  623. /package/lib/{src/components → components}/Icons/EChat.d.ts +0 -0
  624. /package/lib/{src/components → components}/Icons/Ear.d.ts +0 -0
  625. /package/lib/{src/components → components}/Icons/EarDeaf.d.ts +0 -0
  626. /package/lib/{src/components → components}/Icons/EarHearingAid.d.ts +0 -0
  627. /package/lib/{src/components → components}/Icons/EarNoseThroat.d.ts +0 -0
  628. /package/lib/{src/components → components}/Icons/EarVolume.d.ts +0 -0
  629. /package/lib/{src/components → components}/Icons/Edit.d.ts +0 -0
  630. /package/lib/{src/components → components}/Icons/ElderlyPerson.d.ts +0 -0
  631. /package/lib/{src/components → components}/Icons/Embolization.d.ts +0 -0
  632. /package/lib/{src/components → components}/Icons/EmergencyCall.d.ts +0 -0
  633. /package/lib/{src/components → components}/Icons/EmoticonAnnoyed.d.ts +0 -0
  634. /package/lib/{src/components → components}/Icons/EmoticonDelighted.d.ts +0 -0
  635. /package/lib/{src/components → components}/Icons/EmoticonDisappointed.d.ts +0 -0
  636. /package/lib/{src/components → components}/Icons/EmoticonHappy.d.ts +0 -0
  637. /package/lib/{src/components → components}/Icons/EmoticonMeh.d.ts +0 -0
  638. /package/lib/{src/components → components}/Icons/EmptyBox.d.ts +0 -0
  639. /package/lib/{src/components → components}/Icons/EnterFullScreen.d.ts +0 -0
  640. /package/lib/{src/components → components}/Icons/Envelope.d.ts +0 -0
  641. /package/lib/{src/components → components}/Icons/Epilepsy.d.ts +0 -0
  642. /package/lib/{src/components → components}/Icons/Eraser.d.ts +0 -0
  643. /package/lib/{src/components → components}/Icons/ErrorSignFill.d.ts +0 -0
  644. /package/lib/{src/components → components}/Icons/ErrorSignStroke.d.ts +0 -0
  645. /package/lib/{src/components → components}/Icons/EuropeanHealthCard.d.ts +0 -0
  646. /package/lib/{src/components → components}/Icons/ExitFullScreen.d.ts +0 -0
  647. /package/lib/{src/components → components}/Icons/Eye.d.ts +0 -0
  648. /package/lib/{src/components → components}/Icons/Facebook.d.ts +0 -0
  649. /package/lib/{src/components → components}/Icons/FallingLeaf.d.ts +0 -0
  650. /package/lib/{src/components → components}/Icons/Feedback.d.ts +0 -0
  651. /package/lib/{src/components → components}/Icons/Female.d.ts +0 -0
  652. /package/lib/{src/components → components}/Icons/FemaleDoctor.d.ts +0 -0
  653. /package/lib/{src/components → components}/Icons/Ferry.d.ts +0 -0
  654. /package/lib/{src/components → components}/Icons/File.d.ts +0 -0
  655. /package/lib/{src/components → components}/Icons/Filter.d.ts +0 -0
  656. /package/lib/{src/components → components}/Icons/FingerBleed.d.ts +0 -0
  657. /package/lib/{src/components → components}/Icons/FirstAidKit.d.ts +0 -0
  658. /package/lib/{src/components → components}/Icons/Fish.d.ts +0 -0
  659. /package/lib/{src/components → components}/Icons/FloppyDisk.d.ts +0 -0
  660. /package/lib/{src/components → components}/Icons/Football.d.ts +0 -0
  661. /package/lib/{src/components → components}/Icons/Form.d.ts +0 -0
  662. /package/lib/{src/components → components}/Icons/Forward.d.ts +0 -0
  663. /package/lib/{src/components → components}/Icons/Gallery.d.ts +0 -0
  664. /package/lib/{src/components → components}/Icons/Garden.d.ts +0 -0
  665. /package/lib/{src/components → components}/Icons/GasCan.d.ts +0 -0
  666. /package/lib/{src/components → components}/Icons/GenderIdentity.d.ts +0 -0
  667. /package/lib/{src/components → components}/Icons/GlassWater.d.ts +0 -0
  668. /package/lib/{src/components → components}/Icons/Glasses.d.ts +0 -0
  669. /package/lib/{src/components → components}/Icons/Globe.d.ts +0 -0
  670. /package/lib/{src/components → components}/Icons/Grain.d.ts +0 -0
  671. /package/lib/{src/components → components}/Icons/Graph.d.ts +0 -0
  672. /package/lib/{src/components → components}/Icons/Group.d.ts +0 -0
  673. /package/lib/{src/components → components}/Icons/GroupTwins.d.ts +0 -0
  674. /package/lib/{src/components → components}/Icons/HTMLFile.d.ts +0 -0
  675. /package/lib/{src/components → components}/Icons/HandWaving.d.ts +0 -0
  676. /package/lib/{src/components → components}/Icons/HandWithDisease.d.ts +0 -0
  677. /package/lib/{src/components → components}/Icons/HandsAndHeart.d.ts +0 -0
  678. /package/lib/{src/components → components}/Icons/HealthClinic.d.ts +0 -0
  679. /package/lib/{src/components → components}/Icons/HealthMeasurements.d.ts +0 -0
  680. /package/lib/{src/components → components}/Icons/HealthWarning.d.ts +0 -0
  681. /package/lib/{src/components → components}/Icons/HealthcarePerson.d.ts +0 -0
  682. /package/lib/{src/components → components}/Icons/HealthcarePersonell.d.ts +0 -0
  683. /package/lib/{src/components → components}/Icons/HearingProtection.d.ts +0 -0
  684. /package/lib/{src/components → components}/Icons/Heart.d.ts +0 -0
  685. /package/lib/{src/components → components}/Icons/HeartHands.d.ts +0 -0
  686. /package/lib/{src/components → components}/Icons/HelpSign.d.ts +0 -0
  687. /package/lib/{src/components → components}/Icons/HelpingHand.d.ts +0 -0
  688. /package/lib/{src/components → components}/Icons/Hemodialysis.d.ts +0 -0
  689. /package/lib/{src/components → components}/Icons/Hiker.d.ts +0 -0
  690. /package/lib/{src/components → components}/Icons/Hipprosthesis.d.ts +0 -0
  691. /package/lib/{src/components → components}/Icons/History.d.ts +0 -0
  692. /package/lib/{src/components → components}/Icons/HivAndAids.d.ts +0 -0
  693. /package/lib/{src/components → components}/Icons/Home.d.ts +0 -0
  694. /package/lib/{src/components → components}/Icons/HomeFill.d.ts +0 -0
  695. /package/lib/{src/components → components}/Icons/Hormone.d.ts +0 -0
  696. /package/lib/{src/components → components}/Icons/Hospital.d.ts +0 -0
  697. /package/lib/{src/components → components}/Icons/Hourglass.d.ts +0 -0
  698. /package/lib/{src/components → components}/Icons/IconNames.d.ts +0 -0
  699. /package/lib/{src/components → components}/Icons/ImgFile.d.ts +0 -0
  700. /package/lib/{src/components → components}/Icons/Inbox.d.ts +0 -0
  701. /package/lib/{src/components → components}/Icons/InfoSignFill.d.ts +0 -0
  702. /package/lib/{src/components → components}/Icons/InfoSignStroke.d.ts +0 -0
  703. /package/lib/{src/components → components}/Icons/Instagram.d.ts +0 -0
  704. /package/lib/{src/components → components}/Icons/Intravenous.d.ts +0 -0
  705. /package/lib/{src/components → components}/Icons/JointPain.d.ts +0 -0
  706. /package/lib/{src/components → components}/Icons/Journal.d.ts +0 -0
  707. /package/lib/{src/components → components}/Icons/JpgFile.d.ts +0 -0
  708. /package/lib/{src/components → components}/Icons/Kidney.d.ts +0 -0
  709. /package/lib/{src/components → components}/Icons/KitchenScale.d.ts +0 -0
  710. /package/lib/{src/components → components}/Icons/Kjernejournal.d.ts +0 -0
  711. /package/lib/{src/components → components}/Icons/Laboratory.d.ts +0 -0
  712. /package/lib/{src/components → components}/Icons/LaptopBlog.d.ts +0 -0
  713. /package/lib/{src/components → components}/Icons/LawBook.d.ts +0 -0
  714. /package/lib/{src/components → components}/Icons/LegalDocument.d.ts +0 -0
  715. /package/lib/{src/components → components}/Icons/LightBulb.d.ts +0 -0
  716. /package/lib/{src/components → components}/Icons/List.d.ts +0 -0
  717. /package/lib/{src/components → components}/Icons/Location.d.ts +0 -0
  718. /package/lib/{src/components → components}/Icons/LocationFill.d.ts +0 -0
  719. /package/lib/{src/components → components}/Icons/Lock.d.ts +0 -0
  720. /package/lib/{src/components → components}/Icons/Login.d.ts +0 -0
  721. /package/lib/{src/components → components}/Icons/Logout.d.ts +0 -0
  722. /package/lib/{src/components → components}/Icons/Lungs.d.ts +0 -0
  723. /package/lib/{src/components → components}/Icons/Makeup.d.ts +0 -0
  724. /package/lib/{src/components → components}/Icons/MaleDoctor.d.ts +0 -0
  725. /package/lib/{src/components → components}/Icons/MaleDoctorAndPerson.d.ts +0 -0
  726. /package/lib/{src/components → components}/Icons/MaleDoctorCompact.d.ts +0 -0
  727. /package/lib/{src/components → components}/Icons/MaleDoctorCompactFill.d.ts +0 -0
  728. /package/lib/{src/components → components}/Icons/MaleGenitalia.d.ts +0 -0
  729. /package/lib/{src/components → components}/Icons/Medicine.d.ts +0 -0
  730. /package/lib/{src/components → components}/Icons/MedicineWarning.d.ts +0 -0
  731. /package/lib/{src/components → components}/Icons/MentalHealthAdult.d.ts +0 -0
  732. /package/lib/{src/components → components}/Icons/MentalHealthChild.d.ts +0 -0
  733. /package/lib/{src/components → components}/Icons/Menu.d.ts +0 -0
  734. /package/lib/{src/components → components}/Icons/Microscope.d.ts +0 -0
  735. /package/lib/{src/components → components}/Icons/Minus.d.ts +0 -0
  736. /package/lib/{src/components → components}/Icons/Mirror.d.ts +0 -0
  737. /package/lib/{src/components → components}/Icons/MobilePhone.d.ts +0 -0
  738. /package/lib/{src/components → components}/Icons/MotherHoldingBaby.d.ts +0 -0
  739. /package/lib/{src/components → components}/Icons/MuscleBack.d.ts +0 -0
  740. /package/lib/{src/components → components}/Icons/MuscleLeg.d.ts +0 -0
  741. /package/lib/{src/components → components}/Icons/Mushroom.d.ts +0 -0
  742. /package/lib/{src/components → components}/Icons/Music.d.ts +0 -0
  743. /package/lib/{src/components → components}/Icons/MusselsAndSalt.d.ts +0 -0
  744. /package/lib/{src/components → components}/Icons/NoAccess.d.ts +0 -0
  745. /package/lib/{src/components → components}/Icons/NoEye.d.ts +0 -0
  746. /package/lib/{src/components → components}/Icons/NoFilter.d.ts +0 -0
  747. /package/lib/{src/components → components}/Icons/Notepad.d.ts +0 -0
  748. /package/lib/{src/components → components}/Icons/Osteotomy.d.ts +0 -0
  749. /package/lib/{src/components → components}/Icons/PaintRoller.d.ts +0 -0
  750. /package/lib/{src/components → components}/Icons/PaperPlane.d.ts +0 -0
  751. /package/lib/{src/components → components}/Icons/PatientAndPerson.d.ts +0 -0
  752. /package/lib/{src/components → components}/Icons/Pause.d.ts +0 -0
  753. /package/lib/{src/components → components}/Icons/PdfFile.d.ts +0 -0
  754. /package/lib/{src/components → components}/Icons/Pencil.d.ts +0 -0
  755. /package/lib/{src/components → components}/Icons/PeopleTalking.d.ts +0 -0
  756. /package/lib/{src/components → components}/Icons/Peritonealdialysis.d.ts +0 -0
  757. /package/lib/{src/components → components}/Icons/Person.d.ts +0 -0
  758. /package/lib/{src/components → components}/Icons/PersonAndPatient.d.ts +0 -0
  759. /package/lib/{src/components → components}/Icons/PersonCancel.d.ts +0 -0
  760. /package/lib/{src/components → components}/Icons/PersonInXRayMachine.d.ts +0 -0
  761. /package/lib/{src/components → components}/Icons/PersonOverweight.d.ts +0 -0
  762. /package/lib/{src/components → components}/Icons/PersonRelaxing.d.ts +0 -0
  763. /package/lib/{src/components → components}/Icons/PersonWithBrain.d.ts +0 -0
  764. /package/lib/{src/components → components}/Icons/PersonWithBrokenArm.d.ts +0 -0
  765. /package/lib/{src/components → components}/Icons/PersonWithCrutches.d.ts +0 -0
  766. /package/lib/{src/components → components}/Icons/PersonWithJaw.d.ts +0 -0
  767. /package/lib/{src/components → components}/Icons/PersonWithMagnifyingGlass.d.ts +0 -0
  768. /package/lib/{src/components → components}/Icons/PersonWithSenses.d.ts +0 -0
  769. /package/lib/{src/components → components}/Icons/PersonWorking.d.ts +0 -0
  770. /package/lib/{src/components → components}/Icons/PersonalPlan.d.ts +0 -0
  771. /package/lib/{src/components → components}/Icons/PizzaSlice.d.ts +0 -0
  772. /package/lib/{src/components → components}/Icons/Plane.d.ts +0 -0
  773. /package/lib/{src/components → components}/Icons/Plant.d.ts +0 -0
  774. /package/lib/{src/components → components}/Icons/PlateKnifeFork.d.ts +0 -0
  775. /package/lib/{src/components → components}/Icons/Play.d.ts +0 -0
  776. /package/lib/{src/components → components}/Icons/PlusLarge.d.ts +0 -0
  777. /package/lib/{src/components → components}/Icons/PlusSmall.d.ts +0 -0
  778. /package/lib/{src/components → components}/Icons/PngFile.d.ts +0 -0
  779. /package/lib/{src/components → components}/Icons/Podcast.d.ts +0 -0
  780. /package/lib/{src/components → components}/Icons/PoisonInformation.d.ts +0 -0
  781. /package/lib/{src/components → components}/Icons/Pregnant.d.ts +0 -0
  782. /package/lib/{src/components → components}/Icons/Printer.d.ts +0 -0
  783. /package/lib/{src/components → components}/Icons/Psychosis.d.ts +0 -0
  784. /package/lib/{src/components → components}/Icons/Publication.d.ts +0 -0
  785. /package/lib/{src/components → components}/Icons/Puzzle.d.ts +0 -0
  786. /package/lib/{src/components → components}/Icons/QrCode.d.ts +0 -0
  787. /package/lib/{src/components → components}/Icons/Quarrel.d.ts +0 -0
  788. /package/lib/{src/components → components}/Icons/RadioTherapy.d.ts +0 -0
  789. /package/lib/{src/components → components}/Icons/RadioactiveTreatment.d.ts +0 -0
  790. /package/lib/{src/components → components}/Icons/Radioiodine.d.ts +0 -0
  791. /package/lib/{src/components → components}/Icons/Receipt.d.ts +0 -0
  792. /package/lib/{src/components → components}/Icons/Receptionist.d.ts +0 -0
  793. /package/lib/{src/components → components}/Icons/Recovery.d.ts +0 -0
  794. /package/lib/{src/components → components}/Icons/Referral.d.ts +0 -0
  795. /package/lib/{src/components → components}/Icons/Refresh.d.ts +0 -0
  796. /package/lib/{src/components → components}/Icons/Refund.d.ts +0 -0
  797. /package/lib/{src/components → components}/Icons/Reminder.d.ts +0 -0
  798. /package/lib/{src/components → components}/Icons/Reply.d.ts +0 -0
  799. /package/lib/{src/components → components}/Icons/Rocket.d.ts +0 -0
  800. /package/lib/{src/components → components}/Icons/RtfFile.d.ts +0 -0
  801. /package/lib/{src/components → components}/Icons/STDs.d.ts +0 -0
  802. /package/lib/{src/components → components}/Icons/Save.d.ts +0 -0
  803. /package/lib/{src/components → components}/Icons/Scale.d.ts +0 -0
  804. /package/lib/{src/components → components}/Icons/ScreenReader.d.ts +0 -0
  805. /package/lib/{src/components → components}/Icons/Search.d.ts +0 -0
  806. /package/lib/{src/components → components}/Icons/SectionSign.d.ts +0 -0
  807. /package/lib/{src/components → components}/Icons/Settings.d.ts +0 -0
  808. /package/lib/{src/components → components}/Icons/SettingsFill.d.ts +0 -0
  809. /package/lib/{src/components → components}/Icons/Sexualorientation.d.ts +0 -0
  810. /package/lib/{src/components → components}/Icons/ShakingHand.d.ts +0 -0
  811. /package/lib/{src/components → components}/Icons/Share.d.ts +0 -0
  812. /package/lib/{src/components → components}/Icons/SharedHealthData.d.ts +0 -0
  813. /package/lib/{src/components → components}/Icons/SharedHealthMeasurements.d.ts +0 -0
  814. /package/lib/{src/components → components}/Icons/Shield.d.ts +0 -0
  815. /package/lib/{src/components → components}/Icons/ShuntOperation.d.ts +0 -0
  816. /package/lib/{src/components → components}/Icons/Skeleton.d.ts +0 -0
  817. /package/lib/{src/components → components}/Icons/Skin.d.ts +0 -0
  818. /package/lib/{src/components → components}/Icons/Snake.d.ts +0 -0
  819. /package/lib/{src/components → components}/Icons/Snapchat.d.ts +0 -0
  820. /package/lib/{src/components → components}/Icons/SortDown.d.ts +0 -0
  821. /package/lib/{src/components → components}/Icons/SortUp.d.ts +0 -0
  822. /package/lib/{src/components → components}/Icons/SpeechBubble.d.ts +0 -0
  823. /package/lib/{src/components → components}/Icons/Spray.d.ts +0 -0
  824. /package/lib/{src/components → components}/Icons/StickyNote.d.ts +0 -0
  825. /package/lib/{src/components → components}/Icons/StickyNotes.d.ts +0 -0
  826. /package/lib/{src/components → components}/Icons/Stopwatch.d.ts +0 -0
  827. /package/lib/{src/components → components}/Icons/Sun.d.ts +0 -0
  828. /package/lib/{src/components → components}/Icons/SupportingPerson.d.ts +0 -0
  829. /package/lib/{src/components → components}/Icons/Surgery.d.ts +0 -0
  830. /package/lib/{src/components → components}/Icons/Sweets.d.ts +0 -0
  831. /package/lib/{src/components → components}/Icons/Syringe.d.ts +0 -0
  832. /package/lib/{src/components → components}/Icons/Taxi.d.ts +0 -0
  833. /package/lib/{src/components → components}/Icons/TeddyBear.d.ts +0 -0
  834. /package/lib/{src/components → components}/Icons/Teenagers.d.ts +0 -0
  835. /package/lib/{src/components → components}/Icons/ThinkingAboutBaby.d.ts +0 -0
  836. /package/lib/{src/components → components}/Icons/Ticket.d.ts +0 -0
  837. /package/lib/{src/components → components}/Icons/TimePassing.d.ts +0 -0
  838. /package/lib/{src/components → components}/Icons/Toddler.d.ts +0 -0
  839. /package/lib/{src/components → components}/Icons/Tombstone.d.ts +0 -0
  840. /package/lib/{src/components → components}/Icons/Toolbox.d.ts +0 -0
  841. /package/lib/{src/components → components}/Icons/Tooth.d.ts +0 -0
  842. /package/lib/{src/components → components}/Icons/TotalKneeProsthesis.d.ts +0 -0
  843. /package/lib/{src/components → components}/Icons/Train.d.ts +0 -0
  844. /package/lib/{src/components → components}/Icons/Transplantation.d.ts +0 -0
  845. /package/lib/{src/components → components}/Icons/TrashCan.d.ts +0 -0
  846. /package/lib/{src/components → components}/Icons/TravelRoute.d.ts +0 -0
  847. /package/lib/{src/components → components}/Icons/TreatmentAids.d.ts +0 -0
  848. /package/lib/{src/components → components}/Icons/TriangleX.d.ts +0 -0
  849. /package/lib/{src/components → components}/Icons/Twitter.d.ts +0 -0
  850. /package/lib/{src/components → components}/Icons/Undo.d.ts +0 -0
  851. /package/lib/{src/components → components}/Icons/UniProsthesis.d.ts +0 -0
  852. /package/lib/{src/components → components}/Icons/Upload.d.ts +0 -0
  853. /package/lib/{src/components → components}/Icons/UserOrganization.d.ts +0 -0
  854. /package/lib/{src/components → components}/Icons/Vaccine.d.ts +0 -0
  855. /package/lib/{src/components → components}/Icons/VerticalDots.d.ts +0 -0
  856. /package/lib/{src/components → components}/Icons/VideoCamera.d.ts +0 -0
  857. /package/lib/{src/components → components}/Icons/VideoChat.d.ts +0 -0
  858. /package/lib/{src/components → components}/Icons/Wallet.d.ts +0 -0
  859. /package/lib/{src/components → components}/Icons/Watch.d.ts +0 -0
  860. /package/lib/{src/components → components}/Icons/Website.d.ts +0 -0
  861. /package/lib/{src/components → components}/Icons/Wheelchair.d.ts +0 -0
  862. /package/lib/{src/components → components}/Icons/WheelchairActive.d.ts +0 -0
  863. /package/lib/{src/components → components}/Icons/Window.d.ts +0 -0
  864. /package/lib/{src/components → components}/Icons/WordDocument.d.ts +0 -0
  865. /package/lib/{src/components → components}/Icons/WorkSuitcase.d.ts +0 -0
  866. /package/lib/{src/components → components}/Icons/X.d.ts +0 -0
  867. /package/lib/{src/components → components}/Icons/XOutline.d.ts +0 -0
  868. /package/lib/{src/components → components}/Icons/XmlFile.d.ts +0 -0
  869. /package/lib/{src/components → components}/Icons/YouTube.d.ts +0 -0
  870. /package/lib/{src/components → components}/Icons/Zoom.d.ts +0 -0
  871. /package/lib/{src/components → components}/Icons/ZoomInLeft.d.ts +0 -0
  872. /package/lib/{src/components → components}/Icons/ZoomOutLeft.d.ts +0 -0
  873. /package/lib/{src/components → components}/Illustration/Illustration.d.ts +0 -0
  874. /package/lib/{src/components → components}/Illustration/index.d.ts +0 -0
  875. /package/lib/{src/components → components}/Illustration/utils.d.ts +0 -0
  876. /package/lib/{src/components → components}/Illustrations/BabyMobile.d.ts +0 -0
  877. /package/lib/{src/components → components}/Illustrations/BabyMobileMedium.d.ts +0 -0
  878. /package/lib/{src/components → components}/Illustrations/Child.d.ts +0 -0
  879. /package/lib/{src/components → components}/Illustrations/ChildMedium.d.ts +0 -0
  880. /package/lib/{src/components → components}/Illustrations/Doctor.d.ts +0 -0
  881. /package/lib/{src/components → components}/Illustrations/DoctorMedium.d.ts +0 -0
  882. /package/lib/{src/components → components}/Illustrations/DoctorSmall.d.ts +0 -0
  883. /package/lib/{src/components → components}/Illustrations/FacialRecognitionFingerprint.d.ts +0 -0
  884. /package/lib/{src/components → components}/Illustrations/FacialRecognitionFingerprintMedium.d.ts +0 -0
  885. /package/lib/{src/components → components}/Illustrations/GiveBabyFood.d.ts +0 -0
  886. /package/lib/{src/components → components}/Illustrations/GiveBabyFoodMedium.d.ts +0 -0
  887. /package/lib/{src/components → components}/Illustrations/HealthcarePersonnel.d.ts +0 -0
  888. /package/lib/{src/components → components}/Illustrations/HealthcarePersonnelMedium.d.ts +0 -0
  889. /package/lib/{src/components → components}/Illustrations/HealthcarePersonnelSmall.d.ts +0 -0
  890. /package/lib/{src/components → components}/Illustrations/IllustrationNames.d.ts +0 -0
  891. /package/lib/{src/components → components}/Illustrations/ReadLetters.d.ts +0 -0
  892. /package/lib/{src/components → components}/Illustrations/ReadLettersMedium.d.ts +0 -0
  893. /package/lib/{src/components → components}/Illustrations/Stroller.d.ts +0 -0
  894. /package/lib/{src/components → components}/Illustrations/StrollerMedium.d.ts +0 -0
  895. /package/lib/{src/components → components}/Illustrations/Support2.d.ts +0 -0
  896. /package/lib/{src/components → components}/Illustrations/Support2Medium.d.ts +0 -0
  897. /package/lib/{src/components → components}/InfoTeaser/InfoTeaser.d.ts +0 -0
  898. /package/lib/{src/components → components}/InfoTeaser/index.d.ts +0 -0
  899. /package/lib/{src/components → components}/InfoTeaser/resourceHelper.d.ts +0 -0
  900. /package/lib/{src/components → components}/Input/Input.d.ts +0 -0
  901. /package/lib/{src/components → components}/Input/constants.d.ts +0 -0
  902. /package/lib/{src/components → components}/Input/index.d.ts +0 -0
  903. /package/lib/{src/components → components}/Input/resourceHelper.d.ts +0 -0
  904. /package/lib/{src/components → components}/Label/Label.d.ts +0 -0
  905. /package/lib/{src/components → components}/Label/SubLabel.d.ts +0 -0
  906. /package/lib/{src/components → components}/Label/index.d.ts +0 -0
  907. /package/lib/{src/components → components}/Label/utils.d.ts +0 -0
  908. /package/lib/{src/components → components}/LazyIcon/ErrorBoundary.d.ts +0 -0
  909. /package/lib/{src/components → components}/LazyIcon/LazyIcon.d.ts +0 -0
  910. /package/lib/{src/components → components}/LazyIcon/index.d.ts +0 -0
  911. /package/lib/{src/components → components}/LazyIcon/utils.d.ts +0 -0
  912. /package/lib/{src/components → components}/LazyIllustration/LazyIllustration.d.ts +0 -0
  913. /package/lib/{src/components → components}/LazyIllustration/index.d.ts +0 -0
  914. /package/lib/{src/components → components}/LinkList/LinkList.d.ts +0 -0
  915. /package/lib/{src/components → components}/LinkList/index.d.ts +0 -0
  916. /package/lib/{src/components → components}/LinkList/resourceHelper.d.ts +0 -0
  917. /package/lib/{src/components → components}/List/List.d.ts +0 -0
  918. /package/lib/{src/components → components}/List/index.d.ts +0 -0
  919. /package/lib/{src/components → components}/ListEditMode/ListEditMode.d.ts +0 -0
  920. /package/lib/{src/components → components}/ListEditMode/constants.d.ts +0 -0
  921. /package/lib/{src/components → components}/ListEditMode/index.d.ts +0 -0
  922. /package/lib/{src/components → components}/Loader/Loader.d.ts +0 -0
  923. /package/lib/{src/components → components}/Loader/constants.d.ts +0 -0
  924. /package/lib/{src/components → components}/Loader/index.d.ts +0 -0
  925. /package/lib/{src/components → components}/Logo/Logo.d.ts +0 -0
  926. /package/lib/{src/components → components}/Logo/index.d.ts +0 -0
  927. /package/lib/{src/components → components}/MaxCharacters/MaxCharacters.d.ts +0 -0
  928. /package/lib/{src/components → components}/Modal/Modal.d.ts +0 -0
  929. /package/lib/{src/components → components}/Modal/constants.d.ts +0 -0
  930. /package/lib/{src/components → components}/Modal/index.d.ts +0 -0
  931. /package/lib/{src/components → components}/NotificationPanel/NotificationPanel.d.ts +0 -0
  932. /package/lib/{src/components → components}/NotificationPanel/index.d.ts +0 -0
  933. /package/lib/{src/components → components}/Panel/Panel.d.ts +0 -0
  934. /package/lib/{src/components → components}/Panel/PanelExamples.d.ts +0 -0
  935. /package/lib/{src/components → components}/Panel/PanelTitle/PanelTitle.d.ts +0 -0
  936. /package/lib/{src/components → components}/Panel/PanelTitle/index.d.ts +0 -0
  937. /package/lib/{src/components → components}/Panel/Paneldocs.d.ts +0 -0
  938. /package/lib/{src/components → components}/Panel/constants.d.ts +0 -0
  939. /package/lib/{src/components → components}/Panel/index.d.ts +0 -0
  940. /package/lib/{src/components → components}/Panel/resourceHelper.d.ts +0 -0
  941. /package/lib/{src/components → components}/PanelList/PanelList.d.ts +0 -0
  942. /package/lib/{src/components → components}/PanelList/index.d.ts +0 -0
  943. /package/lib/{src/components → components}/PanelList/utils.d.ts +0 -0
  944. /package/lib/{src/components → components}/PopMenu/PopMenu.d.ts +0 -0
  945. /package/lib/{src/components → components}/PopMenu/constants.d.ts +0 -0
  946. /package/lib/{src/components → components}/PopMenu/index.d.ts +0 -0
  947. /package/lib/{src/components → components}/PopOver/PopOver.d.ts +0 -0
  948. /package/lib/{src/components → components}/PopOver/index.d.ts +0 -0
  949. /package/lib/{src/components → components}/PopOver/utils.d.ts +0 -0
  950. /package/lib/{src/components → components}/Portal/index.d.ts +0 -0
  951. /package/lib/{src/components → components}/Progressbar/Progressbar.d.ts +0 -0
  952. /package/lib/{src/components → components}/Progressbar/constants.d.ts +0 -0
  953. /package/lib/{src/components → components}/Progressbar/index.d.ts +0 -0
  954. /package/lib/{src/components → components}/PromoPanel/PromoPanel.d.ts +0 -0
  955. /package/lib/{src/components → components}/PromoPanel/index.d.ts +0 -0
  956. /package/lib/{src/components → components}/RadioButton/RadioButton.d.ts +0 -0
  957. /package/lib/{src/components → components}/RadioButton/index.d.ts +0 -0
  958. /package/lib/{src/components → components}/RadioButton/utils.d.ts +0 -0
  959. /package/lib/{src/components → components}/Select/Select.d.ts +0 -0
  960. /package/lib/{src/components → components}/Select/index.d.ts +0 -0
  961. /package/lib/{src/components → components}/ServiceMessage/ServiceMessage.d.ts +0 -0
  962. /package/lib/{src/components → components}/ServiceMessage/index.d.ts +0 -0
  963. /package/lib/{src/components → components}/SharingStatus/SharingStatus.d.ts +0 -0
  964. /package/lib/{src/components → components}/SharingStatus/index.d.ts +0 -0
  965. /package/lib/{src/components → components}/Slider/Slider.d.ts +0 -0
  966. /package/lib/{src/components → components}/Slider/index.d.ts +0 -0
  967. /package/lib/{src/components → components}/Spacer/Spacer.d.ts +0 -0
  968. /package/lib/{src/components → components}/Spacer/index.d.ts +0 -0
  969. /package/lib/{src/components → components}/StatusDot/StatusDot.d.ts +0 -0
  970. /package/lib/{src/components → components}/StatusDot/constants.d.ts +0 -0
  971. /package/lib/{src/components → components}/StatusDot/index.d.ts +0 -0
  972. /package/lib/{src/components → components}/Step/Step.d.ts +0 -0
  973. /package/lib/{src/components → components}/Step/index.d.ts +0 -0
  974. /package/lib/{src/components → components}/StepButtons/StepButtons.d.ts +0 -0
  975. /package/lib/{src/components → components}/StepButtons/index.d.ts +0 -0
  976. /package/lib/{src/components → components}/Stepper/Dot.d.ts +0 -0
  977. /package/lib/{src/components → components}/Stepper/DotList.d.ts +0 -0
  978. /package/lib/{src/components → components}/Stepper/Stepper.d.ts +0 -0
  979. /package/lib/{src/components → components}/Stepper/index.d.ts +0 -0
  980. /package/lib/{src/components → components}/Stepper/utils.d.ts +0 -0
  981. /package/lib/{src/components → components}/StickyNote/Close.d.ts +0 -0
  982. /package/lib/{src/components → components}/StickyNote/StickyNote.d.ts +0 -0
  983. /package/lib/{src/components → components}/StickyNote/Triangle.d.ts +0 -0
  984. /package/lib/{src/components → components}/StickyNote/index.d.ts +0 -0
  985. /package/lib/{src/components → components}/Table/Table.d.ts +0 -0
  986. /package/lib/{src/components → components}/Table/TableBody/TableBody.d.ts +0 -0
  987. /package/lib/{src/components → components}/Table/TableBody/index.d.ts +0 -0
  988. /package/lib/{src/components → components}/Table/TableCell/TableCell.d.ts +0 -0
  989. /package/lib/{src/components → components}/Table/TableCell/index.d.ts +0 -0
  990. /package/lib/{src/components → components}/Table/TableExpandedRow/TableExpandedRow.d.ts +0 -0
  991. /package/lib/{src/components → components}/Table/TableExpandedRow/index.d.ts +0 -0
  992. /package/lib/{src/components → components}/Table/TableExpanderCell/TableExpanderCell.d.ts +0 -0
  993. /package/lib/{src/components → components}/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +0 -0
  994. /package/lib/{src/components → components}/Table/TableExpanderCell/index.d.ts +0 -0
  995. /package/lib/{src/components → components}/Table/TableHead/TableHead.d.ts +0 -0
  996. /package/lib/{src/components → components}/Table/TableHead/index.d.ts +0 -0
  997. /package/lib/{src/components → components}/Table/TableHeadCell/TableHeadCell.d.ts +0 -0
  998. /package/lib/{src/components → components}/Table/TableHeadCell/index.d.ts +0 -0
  999. /package/lib/{src/components → components}/Table/TableRow/TableRow.d.ts +0 -0
  1000. /package/lib/{src/components → components}/Table/TableRow/index.d.ts +0 -0
  1001. /package/lib/{src/components → components}/Table/constants.d.ts +0 -0
  1002. /package/lib/{src/components → components}/Table/index.d.ts +0 -0
  1003. /package/lib/{src/components → components}/Table/utils.d.ts +0 -0
  1004. /package/lib/{src/components → components}/Tabs/Tab.d.ts +0 -0
  1005. /package/lib/{src/components → components}/Tabs/TabList/TabChevron.d.ts +0 -0
  1006. /package/lib/{src/components → components}/Tabs/TabList/TabItem.d.ts +0 -0
  1007. /package/lib/{src/components → components}/Tabs/TabList/TabList.d.ts +0 -0
  1008. /package/lib/{src/components → components}/Tabs/TabList/index.d.ts +0 -0
  1009. /package/lib/{src/components → components}/Tabs/TabPanel/TabPanel.d.ts +0 -0
  1010. /package/lib/{src/components → components}/Tabs/TabPanel/index.d.ts +0 -0
  1011. /package/lib/{src/components → components}/Tabs/Tabs.d.ts +0 -0
  1012. /package/lib/{src/components → components}/Tabs/index.d.ts +0 -0
  1013. /package/lib/{src/components → components}/Tabs/resourceHelper.d.ts +0 -0
  1014. /package/lib/{src/components → components}/Tag/Tag.d.ts +0 -0
  1015. /package/lib/{src/components → components}/Tag/constants.d.ts +0 -0
  1016. /package/lib/{src/components → components}/Tag/index.d.ts +0 -0
  1017. /package/lib/{src/components → components}/TagList/TagList.d.ts +0 -0
  1018. /package/lib/{src/components → components}/TagList/index.d.ts +0 -0
  1019. /package/lib/{src/components → components}/Textarea/Textarea.d.ts +0 -0
  1020. /package/lib/{src/components → components}/Textarea/index.d.ts +0 -0
  1021. /package/lib/{src/components → components}/Textarea/resourceHelper.d.ts +0 -0
  1022. /package/lib/{src/components → components}/Tile/Tile.d.ts +0 -0
  1023. /package/lib/{src/components → components}/Tile/index.d.ts +0 -0
  1024. /package/lib/{src/components → components}/Title/Title.d.ts +0 -0
  1025. /package/lib/{src/components → components}/Title/index.d.ts +0 -0
  1026. /package/lib/{src/components → components}/Title/utils.d.ts +0 -0
  1027. /package/lib/{src/components → components}/Toast/Toast.d.ts +0 -0
  1028. /package/lib/{src/components → components}/Toast/index.d.ts +0 -0
  1029. /package/lib/{src/components → components}/ToastList/ToastList.d.ts +0 -0
  1030. /package/lib/{src/components → components}/ToastList/index.d.ts +0 -0
  1031. /package/lib/{src/components → components}/Toggle/Toggle.d.ts +0 -0
  1032. /package/lib/{src/components → components}/Toggle/constants.d.ts +0 -0
  1033. /package/lib/{src/components → components}/Toggle/index.d.ts +0 -0
  1034. /package/lib/{src/components → components}/Validation/ErrorList.d.ts +0 -0
  1035. /package/lib/{src/components → components}/Validation/ErrorListItem.d.ts +0 -0
  1036. /package/lib/{src/components → components}/Validation/Validation.d.ts +0 -0
  1037. /package/lib/{src/components → components}/Validation/ValidationSummary.d.ts +0 -0
  1038. /package/lib/{src/components → components}/Validation/index.d.ts +0 -0
  1039. /package/lib/{src/components → components}/Validation/types.d.ts +0 -0
  1040. /package/lib/{src/constants.d.ts → constants.d.ts} +0 -0
  1041. /package/lib/{src/hoc → hoc}/withBreakpoint/index.d.ts +0 -0
  1042. /package/lib/{src/hoc → hoc}/withBreakpoint/withBreakpoint.d.ts +0 -0
  1043. /package/lib/{src/hooks → hooks}/useBreakpoint.d.ts +0 -0
  1044. /package/lib/{src/hooks → hooks}/useElementList.d.ts +0 -0
  1045. /package/lib/{src/hooks → hooks}/useEventListenerState.d.ts +0 -0
  1046. /package/lib/{src/hooks → hooks}/useExpand.d.ts +0 -0
  1047. /package/lib/{src/hooks → hooks}/useFocusToggle.d.ts +0 -0
  1048. /package/lib/{src/hooks → hooks}/useFocusTrap.d.ts +0 -0
  1049. /package/lib/{src/hooks → hooks}/useFocusableElements.d.ts +0 -0
  1050. /package/lib/{src/hooks → hooks}/useIcons.d.ts +0 -0
  1051. /package/lib/{src/hooks → hooks}/useIdWithFallback.d.ts +0 -0
  1052. /package/lib/{src/hooks → hooks}/useIntersectionObserver.d.ts +0 -0
  1053. /package/lib/{src/hooks → hooks}/useInterval.d.ts +0 -0
  1054. /package/lib/{src/hooks → hooks}/useIsMobileBreakpoint.d.ts +0 -0
  1055. /package/lib/{src/hooks → hooks}/useIsServerSide.d.ts +0 -0
  1056. /package/lib/{src/hooks → hooks}/useIsVisible.d.ts +0 -0
  1057. /package/lib/{src/hooks → hooks}/useKeyboardEvent.d.ts +0 -0
  1058. /package/lib/{src/hooks → hooks}/useLanguage.d.ts +0 -0
  1059. /package/lib/{src/hooks → hooks}/useLayoutEvent.d.ts +0 -0
  1060. /package/lib/{src/hooks → hooks}/useOutsideEvent.d.ts +0 -0
  1061. /package/lib/{src/hooks → hooks}/usePrevious.d.ts +0 -0
  1062. /package/lib/{src/hooks → hooks}/usePseudoClasses.d.ts +0 -0
  1063. /package/lib/{src/hooks → hooks}/useResizeObserver.d.ts +0 -0
  1064. /package/lib/{src/hooks → hooks}/useReturnFocusOnUnmount.d.ts +0 -0
  1065. /package/lib/{src/hooks → hooks}/useRovingFocus.d.ts +0 -0
  1066. /package/lib/{src/hooks → hooks}/useSize.d.ts +0 -0
  1067. /package/lib/{src/hooks → hooks}/useToggle.d.ts +0 -0
  1068. /package/lib/{src/hooks → hooks}/usestopPropagation.d.ts +0 -0
  1069. /package/lib/{src/theme → theme}/currys/color.d.ts +0 -0
  1070. /package/lib/{src/theme → theme}/currys/index.d.ts +0 -0
  1071. /package/lib/{src/theme → theme}/currys/spacing.d.ts +0 -0
  1072. /package/lib/{src/theme → theme}/grid.d.ts +0 -0
  1073. /package/lib/{src/theme → theme}/index.d.ts +0 -0
  1074. /package/lib/{src/theme → theme}/palette.d.ts +0 -0
  1075. /package/lib/{src/theme → theme}/spacers.d.ts +0 -0
  1076. /package/lib/{src/utils → utils}/accessibility.d.ts +0 -0
  1077. /package/lib/{src/utils → utils}/component.d.ts +0 -0
  1078. /package/lib/{src/utils → utils}/debounce.d.ts +0 -0
  1079. /package/lib/{src/utils → utils}/deepContains.d.ts +0 -0
  1080. /package/lib/{src/utils → utils}/device.d.ts +0 -0
  1081. /package/lib/{src/utils → utils}/environment.d.ts +0 -0
  1082. /package/lib/{src/utils → utils}/focus.d.ts +0 -0
  1083. /package/lib/{src/utils → utils}/language.d.ts +0 -0
  1084. /package/lib/{src/utils → utils}/loremtext.d.ts +0 -0
  1085. /package/lib/{src/utils → utils}/mobile.d.ts +0 -0
  1086. /package/lib/{src/utils → utils}/refs.d.ts +0 -0
  1087. /package/lib/{src/utils → utils}/scroll.d.ts +0 -0
  1088. /package/lib/{src/utils → utils}/tests/setup-test.d.ts +0 -0
  1089. /package/lib/{src/utils → utils}/uuid.d.ts +0 -0
  1090. /package/lib/{src/utils → utils}/viewport.d.ts +0 -0
package/lib/Slider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","names":["Slider: React.FC<SliderProps>","handleKeyDown: React.KeyboardEventHandler<HTMLDivElement>","handleTrackClick: React.MouseEventHandler<HTMLDivElement>","handlePointerDown: React.PointerEventHandler<HTMLDivElement>"],"sources":["../src/components/Slider/Slider.tsx","../src/components/Slider/index.ts"],"sourcesContent":["import { useEffect, useState, useRef, useId } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { ErrorWrapperClassNameProps } from '../ErrorWrapper';\n\nimport { AnalyticsId } from '../../constants';\nimport { useIdWithFallback } from '../../hooks/useIdWithFallback';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { useSize } from '../../hooks/useSize';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isMutableRefObject, mergeRefs } from '../../utils/refs';\nimport ErrorWrapper from '../ErrorWrapper';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nconst useSafeNumberValue = (initial: number, min: number, max: number): [number, (value: number) => void] => {\n const [value, setValue] = useState(initial);\n\n const setSafeValue = (newValue: number): void => {\n if (newValue > max) {\n setValue(max);\n } else if (newValue < min) {\n setValue(min);\n } else {\n setValue(newValue);\n }\n };\n\n useEffect(() => {\n setSafeValue(initial);\n }, [min, max]);\n\n return [value, setSafeValue];\n};\n\nexport type SliderStep = {\n label?: number | string;\n emojiUniCode?: string;\n};\n\nexport interface SliderProps\n extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'id' | 'name' | 'onChange' | 'onBlur'> {\n /** Activates Error style for the input */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n /**\tSets the title of the slider. */\n title?: string;\n /** Adds the left hand label to the element. */\n labelLeft?: string;\n /** Adds the right hand label to the element. */\n labelRight?: string;\n /**\tSets aria-label of the slider. */\n ariaLabel?: string;\n /** Disables the slider element. */\n disabled?: boolean;\n /** Sets the minimum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n minValue?: number;\n /** Sets the maximum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n maxValue?: number;\n /** If set to false will only trigger onChange once a user interaction has been made, updates to this prop will be taken into account - true by default */\n selected?: boolean;\n /** Sets the steps data for the slider */\n steps?: SliderStep[];\n /** Sets the step to move per point in the slider */\n step?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the value of the slider */\n value?: number;\n /** Ref passed to component */\n ref?: React.Ref<HTMLInputElement | null>;\n}\n\nexport const Slider: React.FC<SliderProps> = props => {\n const {\n title,\n ariaLabel,\n error,\n errorText,\n errorTextId: errorTextIdProp,\n errorWrapperClassName,\n labelLeft,\n labelRight,\n disabled = false,\n onChange,\n steps,\n step = 1,\n minValue = 0,\n maxValue = steps ? steps.length - 1 : 100,\n selected = true,\n testId,\n value,\n ref,\n ...rest\n } = props;\n\n const [isMoving, setIsMoving] = useState(false);\n const [selectedState, setSelectedState] = useState(typeof value === 'undefined' ? selected : true);\n const [valueState, setValueState] = useSafeNumberValue(\n typeof value === 'undefined' ? (maxValue - minValue) / 2 + minValue : value,\n minValue,\n maxValue\n );\n\n const errorTextId = useIdWithFallback(errorTextIdProp);\n const baseId = useId();\n const titleId = 'title-' + baseId;\n const labelLeftId = 'label-' + baseId;\n const labelRightId = 'label-right-' + baseId;\n const trackRef = useRef<HTMLDivElement>(null);\n const { refObject, isFocused } = usePseudoClasses<HTMLInputElement>(isMutableRefObject(ref) ? ref : null);\n const mergedRefs = mergeRefs([ref, refObject]);\n\n const { width: trackWidth } = useSize(trackRef) || { width: 0 };\n const largeStep = maxValue / 10;\n const invalid = !!errorText || !!error;\n\n useEffect(() => {\n const handlePointerUp = (): void => {\n setIsMoving(false);\n };\n\n document.addEventListener('pointerup', handlePointerUp);\n\n return (): void => {\n document.removeEventListener('pointerup', handlePointerUp);\n };\n }, []);\n\n const getValueBasedOnMarkerPosition = (markerPosition: number): number => {\n const trackPosition = trackRef.current?.getBoundingClientRect().x ?? 0;\n\n // Calculate the normalized position (0 to 1) of the marker along the track\n const normalizedPosition = (markerPosition - trackPosition) / trackWidth;\n const valueRange = maxValue - minValue;\n // Calculate the value without considering the step\n let value = normalizedPosition * valueRange + minValue;\n // Adjust the value to account for the step increment\n const stepCount = Math.round(value / step);\n value = stepCount * step;\n value = Math.max(minValue, Math.min(maxValue, value));\n\n return value;\n };\n\n useEffect(() => {\n const handlePointerMove = (e: PointerEvent): void => {\n if (!disabled && isMoving) {\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n }\n };\n\n document.addEventListener('pointermove', handlePointerMove);\n\n return (): void => {\n document.removeEventListener('pointermove', handlePointerMove);\n };\n }, [isMoving]);\n\n useEffect(() => {\n if (value !== valueState && typeof value !== 'undefined') {\n handleSelected();\n setValueState(value);\n }\n }, [value]);\n\n useEffect(() => {\n if (typeof value === 'undefined' && selected !== selectedState) {\n setSelectedState(selected);\n }\n }, [selected]);\n\n const handleSelected = (): void => {\n if (selectedState === false) {\n setSelectedState(true);\n }\n };\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n let flag = false;\n\n switch (e.key) {\n case 'ArrowLeft':\n case 'ArrowDown':\n setValueState(valueState - step);\n flag = true;\n break;\n case 'PageDown':\n setValueState(valueState - largeStep);\n flag = true;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n setValueState(valueState + step);\n flag = true;\n break;\n case 'PageUp':\n setValueState(valueState + largeStep);\n flag = true;\n break;\n case 'Home':\n setValueState(minValue);\n flag = true;\n break;\n case 'End':\n setValueState(maxValue);\n flag = true;\n break;\n default:\n break;\n }\n\n if (flag) {\n handleSelected();\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const handleTrackClick: React.MouseEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n refObject.current?.focus();\n };\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n handleTrackClick(e);\n setIsMoving(true);\n handleSelected();\n\n e.preventDefault();\n e.stopPropagation();\n\n refObject.current?.focus();\n };\n\n const markerXPos = maxValue !== minValue ? (trackWidth / (maxValue - minValue)) * (valueState - minValue) : 0;\n\n const getAriaValueText = (): string | undefined => {\n const stepIndex = steps ? Math.round((valueState - minValue) / step) : null;\n\n if (steps && stepIndex !== null && stepIndex >= 0 && stepIndex < steps.length) {\n const step = steps[stepIndex];\n const emojiCode = step.emojiUniCode;\n const label = typeof step.label !== 'undefined' ? step.label.toString() : undefined;\n\n return emojiCode && label ? `${emojiCode} ${label}` : emojiCode || label;\n }\n\n return undefined;\n };\n\n const getAriaLabeledById = (): string | undefined => {\n if (title && labelLeft && labelRight) {\n return [titleId, labelLeftId, labelRightId].join(' ');\n }\n if (title && labelLeft) {\n return [titleId, labelLeftId].join(' ');\n }\n if (title && labelRight) {\n return [titleId, labelRightId].join(' ');\n }\n if (title) {\n return titleId;\n }\n };\n\n const ariaLabelAttributes = getAriaLabelAttributes({\n label: ariaLabel,\n id: getAriaLabeledById(),\n prefer: 'label',\n });\n\n const getXPositionStyling = (index: number, stepsLength: number): { left: string } => {\n return { left: `${(index / (stepsLength - 1)) * 100}%` };\n };\n\n useEffect(() => {\n if (selectedState && onChange) {\n onChange({\n target: {\n name: props.name,\n value: valueState,\n },\n } as unknown as React.ChangeEvent<HTMLInputElement>);\n }\n }, [valueState, selectedState]);\n\n const renderEmojies = (): React.ReactNode => {\n return (\n <div className={styles['slider__emoji-container']}>\n {steps?.map((step, index) => {\n return (\n step.emojiUniCode && (\n <div\n aria-hidden={true}\n key={'emoji' + index}\n className={styles['slider__emoji']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.emojiUniCode}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n const renderSteps = (): React.ReactNode => {\n return steps?.map((_step, index) => {\n return <div key={'step' + index} className={styles['slider__track__step']} style={getXPositionStyling(index, steps.length)} />;\n });\n };\n\n const renderStepLabels = (): React.ReactNode => {\n return (\n <div className={styles['slider__value-container']}>\n {steps?.map((step, index) => {\n return (\n typeof step.label !== 'undefined' && (\n <div\n aria-hidden={true}\n key={'label' + index}\n className={styles['slider__value']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.label}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n return (\n <ErrorWrapper className={errorWrapperClassName} errorText={errorText} errorTextId={errorTextId}>\n <input\n aria-valuetext={getAriaValueText()}\n className={styles['sr-only-slider']}\n disabled={disabled}\n min={minValue}\n max={maxValue}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n value={valueState}\n ref={mergedRefs}\n type=\"range\"\n {...rest}\n {...ariaLabelAttributes}\n />\n <div className={styles.slider} data-testid={testId} data-analyticsid={AnalyticsId.Slider}>\n {title && (\n <Title className={styles['slider__title']} htmlMarkup={'h3'} margin={0} appearance={'title3'} id={titleId}>\n {title}\n </Title>\n )}\n <div className={styles['slider__content-container']}>\n {renderEmojies()}\n {/* Slider streken er klikkbar med mus/touch */}\n <div\n ref={trackRef}\n className={classNames(styles['slider__track-wrapper'], disabled && styles['slider__track-wrapper--disabled'])}\n onPointerDown={handlePointerDown}\n >\n <div className={classNames(styles.slider__track, disabled && styles['slider__track--disabled'])}>{renderSteps()}</div>\n <div\n className={classNames(styles.slider__marker, {\n [styles['slider__marker--disabled']]: disabled,\n [styles['slider__marker--selected']]: selectedState,\n [styles['slider__marker--invalid']]: invalid,\n [styles['slider__marker--focused']]: !disabled && isFocused,\n })}\n style={{\n left: `${markerXPos}px`,\n }}\n />\n </div>\n {renderStepLabels()}\n </div>\n {(labelLeft || labelRight) && (\n <span className={styles.slider__options}>\n <span id={labelLeftId}>{labelLeft}</span>\n <span id={labelRightId}>{labelRight}</span>\n </span>\n )}\n </div>\n </ErrorWrapper>\n );\n};\n\nSlider.displayName = 'Slider';\n\nexport default Slider;\n","import Slider from './Slider';\nexport * from './Slider';\nexport default Slider;\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAM,sBAAsB,SAAiB,KAAa,QAAmD;CAC3G,MAAM,CAAC,OAAO,YAAY,SAAS,Q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,GAAW,OAAO,eAAe,YAAY,OAAO,2BAA2B;kBAAG,aAAa;SAAO,EACtH,oBAAC,OAAA;QACC,WAAW,GAAW,OAAO,gBAAgB;UAC1C,OAAO,8BAA8B;UACrC,OAAO,8BAA8B;UACrC,OAAO,6BAA6B;UACpC,OAAO,6BAA6B,CAAC,YAAY;SACnD,CAAC;QACF,OAAO,EACL,MAAM,GAAG,WAAW,KACrB;SACD,CAAA;QACE;MACL,kBAAkB;;MACf;KACJ,aAAa,eACb,qBAAC,QAAA;KAAK,WAAW,OAAO;gBACtB,oBAAC,QAAA;MAAK,IAAI;gBAAc;OAAiB,EACzC,oBAAC,QAAA;MAAK,IAAI;gBAAe;OAAkB,CAAA;MACtC;;IAEL,CAAA;GACO;;AAInB,OAAO,cAAc;AClZrB,IAAA,mBDoZe"}
1
+ {"version":3,"file":"Slider.js","names":["Slider: React.FC<SliderProps>","handleKeyDown: React.KeyboardEventHandler<HTMLDivElement>","handleTrackClick: React.MouseEventHandler<HTMLDivElement>","handlePointerDown: React.PointerEventHandler<HTMLDivElement>"],"sources":["../src/components/Slider/Slider.tsx","../src/components/Slider/index.ts"],"sourcesContent":["import { useEffect, useState, useRef, useId } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { ErrorWrapperClassNameProps } from '../ErrorWrapper';\n\nimport { AnalyticsId } from '../../constants';\nimport { useIdWithFallback } from '../../hooks/useIdWithFallback';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { useSize } from '../../hooks/useSize';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isMutableRefObject, mergeRefs } from '../../utils/refs';\nimport ErrorWrapper from '../ErrorWrapper';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nconst useSafeNumberValue = (initial: number, min: number, max: number): [number, (value: number) => void] => {\n const [value, setValue] = useState(initial);\n\n const setSafeValue = (newValue: number): void => {\n if (newValue > max) {\n setValue(max);\n } else if (newValue < min) {\n setValue(min);\n } else {\n setValue(newValue);\n }\n };\n\n useEffect(() => {\n setSafeValue(initial);\n }, [min, max]);\n\n return [value, setSafeValue];\n};\n\nexport type SliderStep = {\n label?: number | string;\n emojiUniCode?: string;\n};\n\nexport interface SliderProps\n extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'id' | 'name' | 'onChange' | 'onBlur'> {\n /** Activates Error style for the input */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n /**\tSets the title of the slider. */\n title?: string;\n /** Adds the left hand label to the element. */\n labelLeft?: string;\n /** Adds the right hand label to the element. */\n labelRight?: string;\n /**\tSets aria-label of the slider. */\n ariaLabel?: string;\n /** Disables the slider element. */\n disabled?: boolean;\n /** Sets the minimum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n minValue?: number;\n /** Sets the maximum allowed value on the slider - this overrides the use of steps prop for minValue/maxValue. */\n maxValue?: number;\n /** If set to false will only trigger onChange once a user interaction has been made, updates to this prop will be taken into account - true by default */\n selected?: boolean;\n /** Sets the steps data for the slider */\n steps?: SliderStep[];\n /** Sets the step to move per point in the slider */\n step?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the value of the slider */\n value?: number;\n /** Ref passed to component */\n ref?: React.Ref<HTMLInputElement | null>;\n}\n\nexport const Slider: React.FC<SliderProps> = props => {\n const {\n title,\n ariaLabel,\n error,\n errorText,\n errorTextId: errorTextIdProp,\n errorWrapperClassName,\n labelLeft,\n labelRight,\n disabled = false,\n onChange,\n steps,\n step = 1,\n minValue = 0,\n maxValue = steps ? steps.length - 1 : 100,\n selected = true,\n testId,\n value,\n ref,\n ...rest\n } = props;\n\n const [isMoving, setIsMoving] = useState(false);\n const [selectedState, setSelectedState] = useState(typeof value === 'undefined' ? selected : true);\n const [valueState, setValueState] = useSafeNumberValue(\n typeof value === 'undefined' ? (maxValue - minValue) / 2 + minValue : value,\n minValue,\n maxValue\n );\n\n const errorTextId = useIdWithFallback(errorTextIdProp);\n const baseId = useId();\n const titleId = 'title-' + baseId;\n const labelLeftId = 'label-' + baseId;\n const labelRightId = 'label-right-' + baseId;\n const trackRef = useRef<HTMLDivElement>(null);\n const { refObject, isFocused } = usePseudoClasses<HTMLInputElement>(isMutableRefObject(ref) ? ref : null);\n const mergedRefs = mergeRefs([ref, refObject]);\n\n const { width: trackWidth } = useSize(trackRef) || { width: 0 };\n const largeStep = maxValue / 10;\n const invalid = !!errorText || !!error;\n\n useEffect(() => {\n const handlePointerUp = (): void => {\n setIsMoving(false);\n };\n\n document.addEventListener('pointerup', handlePointerUp);\n\n return (): void => {\n document.removeEventListener('pointerup', handlePointerUp);\n };\n }, []);\n\n const getValueBasedOnMarkerPosition = (markerPosition: number): number => {\n const trackPosition = trackRef.current?.getBoundingClientRect().x ?? 0;\n\n // Calculate the normalized position (0 to 1) of the marker along the track\n const normalizedPosition = (markerPosition - trackPosition) / trackWidth;\n const valueRange = maxValue - minValue;\n // Calculate the value without considering the step\n let value = normalizedPosition * valueRange + minValue;\n // Adjust the value to account for the step increment\n const stepCount = Math.round(value / step);\n value = stepCount * step;\n value = Math.max(minValue, Math.min(maxValue, value));\n\n return value;\n };\n\n useEffect(() => {\n const handlePointerMove = (e: PointerEvent): void => {\n if (!disabled && isMoving) {\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n }\n };\n\n document.addEventListener('pointermove', handlePointerMove);\n\n return (): void => {\n document.removeEventListener('pointermove', handlePointerMove);\n };\n }, [isMoving]);\n\n useEffect(() => {\n if (value !== valueState && typeof value !== 'undefined') {\n handleSelected();\n setValueState(value);\n }\n }, [value]);\n\n useEffect(() => {\n if (typeof value === 'undefined' && selected !== selectedState) {\n setSelectedState(selected);\n }\n }, [selected]);\n\n const handleSelected = (): void => {\n if (selectedState === false) {\n setSelectedState(true);\n }\n };\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n let flag = false;\n\n switch (e.key) {\n case 'ArrowLeft':\n case 'ArrowDown':\n setValueState(valueState - step);\n flag = true;\n break;\n case 'PageDown':\n setValueState(valueState - largeStep);\n flag = true;\n break;\n case 'ArrowRight':\n case 'ArrowUp':\n setValueState(valueState + step);\n flag = true;\n break;\n case 'PageUp':\n setValueState(valueState + largeStep);\n flag = true;\n break;\n case 'Home':\n setValueState(minValue);\n flag = true;\n break;\n case 'End':\n setValueState(maxValue);\n flag = true;\n break;\n default:\n break;\n }\n\n if (flag) {\n handleSelected();\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const handleTrackClick: React.MouseEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n const newValue = getValueBasedOnMarkerPosition(e.clientX);\n setValueState(newValue);\n refObject.current?.focus();\n };\n\n const handlePointerDown: React.PointerEventHandler<HTMLDivElement> = e => {\n if (disabled) return;\n\n handleTrackClick(e);\n setIsMoving(true);\n handleSelected();\n\n e.preventDefault();\n e.stopPropagation();\n\n refObject.current?.focus();\n };\n\n const markerXPos = maxValue !== minValue ? (trackWidth / (maxValue - minValue)) * (valueState - minValue) : 0;\n\n const getAriaValueText = (): string | undefined => {\n const stepIndex = steps ? Math.round((valueState - minValue) / step) : null;\n\n if (steps && stepIndex !== null && stepIndex >= 0 && stepIndex < steps.length) {\n const step = steps[stepIndex];\n const emojiCode = step.emojiUniCode;\n const label = typeof step.label !== 'undefined' ? step.label.toString() : undefined;\n\n return emojiCode && label ? `${emojiCode} ${label}` : emojiCode || label;\n }\n\n return undefined;\n };\n\n const getAriaLabeledById = (): string | undefined => {\n if (title && labelLeft && labelRight) {\n return [titleId, labelLeftId, labelRightId].join(' ');\n }\n if (title && labelLeft) {\n return [titleId, labelLeftId].join(' ');\n }\n if (title && labelRight) {\n return [titleId, labelRightId].join(' ');\n }\n if (title) {\n return titleId;\n }\n };\n\n const ariaLabelAttributes = getAriaLabelAttributes({\n label: ariaLabel,\n id: getAriaLabeledById(),\n prefer: 'label',\n });\n\n const getXPositionStyling = (index: number, stepsLength: number): { left: string } => {\n return { left: `${(index / (stepsLength - 1)) * 100}%` };\n };\n\n useEffect(() => {\n if (selectedState && onChange) {\n onChange({\n target: {\n name: props.name,\n value: valueState,\n },\n } as unknown as React.ChangeEvent<HTMLInputElement>);\n }\n }, [valueState, selectedState]);\n\n const renderEmojies = (): React.ReactNode => {\n return (\n <div className={styles['slider__emoji-container']}>\n {steps?.map((step, index) => {\n return (\n step.emojiUniCode && (\n <div\n aria-hidden={true}\n key={'emoji' + index}\n className={styles['slider__emoji']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.emojiUniCode}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n const renderSteps = (): React.ReactNode => {\n return steps?.map((_step, index) => {\n return <div key={'step' + index} className={styles['slider__track__step']} style={getXPositionStyling(index, steps.length)} />;\n });\n };\n\n const renderStepLabels = (): React.ReactNode => {\n return (\n <div className={styles['slider__value-container']}>\n {steps?.map((step, index) => {\n return (\n typeof step.label !== 'undefined' && (\n <div\n aria-hidden={true}\n key={'label' + index}\n className={styles['slider__value']}\n style={getXPositionStyling(index, steps.length)}\n >\n {step.label}\n </div>\n )\n );\n })}\n </div>\n );\n };\n\n return (\n <ErrorWrapper className={errorWrapperClassName} errorText={errorText} errorTextId={errorTextId}>\n <input\n aria-valuetext={getAriaValueText()}\n className={styles['sr-only-slider']}\n disabled={disabled}\n min={minValue}\n max={maxValue}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n value={valueState}\n ref={mergedRefs}\n type=\"range\"\n {...rest}\n {...ariaLabelAttributes}\n />\n <div className={styles.slider} data-testid={testId} data-analyticsid={AnalyticsId.Slider}>\n {title && (\n <Title className={styles['slider__title']} htmlMarkup={'h3'} margin={0} appearance={'title3'} id={titleId}>\n {title}\n </Title>\n )}\n <div className={styles['slider__content-container']}>\n {renderEmojies()}\n {/* Slider streken er klikkbar med mus/touch */}\n <div\n ref={trackRef}\n className={classNames(styles['slider__track-wrapper'], disabled && styles['slider__track-wrapper--disabled'])}\n onPointerDown={handlePointerDown}\n >\n <div className={classNames(styles.slider__track, disabled && styles['slider__track--disabled'])}>{renderSteps()}</div>\n <div\n className={classNames(styles.slider__marker, {\n [styles['slider__marker--disabled']]: disabled,\n [styles['slider__marker--selected']]: selectedState,\n [styles['slider__marker--invalid']]: invalid,\n [styles['slider__marker--focused']]: !disabled && isFocused,\n })}\n style={{\n left: `${markerXPos}px`,\n }}\n />\n </div>\n {renderStepLabels()}\n </div>\n {(labelLeft || labelRight) && (\n <span className={styles.slider__options}>\n <span id={labelLeftId}>{labelLeft}</span>\n <span id={labelRightId}>{labelRight}</span>\n </span>\n )}\n </div>\n </ErrorWrapper>\n );\n};\n\nSlider.displayName = 'Slider';\n\nexport default Slider;\n","import Slider from './Slider';\nexport * from './Slider';\nexport default Slider;\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAM,sBAAsB,SAAiB,KAAa,QAAmD;CAC3G,MAAM,CAAC,OAAO,YAAY,SAAS,QAAQ;CAE3C,MAAM,gBAAgB,aAA2B;AAC/C,MAAI,WAAW,IACb,UAAS,IAAI;WACJ,WAAW,IACpB,UAAS,IAAI;MAEb,UAAS,SAAS;;AAItB,iBAAgB;AACd,eAAa,QAAQ;IACpB,CAAC,KAAK,IAAI,CAAC;AAEd,QAAO,CAAC,OAAO,aAAa;;AA4C9B,MAAaA,UAAgC,UAAS;CACpD,MAAM,EACJ,OACA,WACA,OACA,WACA,aAAa,iBACb,uBACA,WACA,YACA,WAAW,OACX,UACA,OACA,OAAO,GACP,WAAW,GACX,WAAW,QAAQ,MAAM,SAAS,IAAI,KACtC,WAAW,MACX,QACA,OACA,KACA,GAAG,SACD;CAEJ,MAAM,CAAC,UAAU,eAAe,SAAS,MAAM;CAC/C,MAAM,CAAC,eAAe,oBAAoB,SAAS,OAAO,UAAU,cAAc,WAAW,KAAK;CAClG,MAAM,CAAC,YAAY,iBAAiB,mBAClC,OAAO,UAAU,eAAe,WAAW,YAAY,IAAI,WAAW,OACtE,UACA,SACD;CAED,MAAM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MAKX;KAGV;IACE;;AAIV,QACE,qBAAC,sBAAA;EAAa,WAAW;EAAkC;EAAwB;aACjF,oBAAC,SAAA;GACC,kBAAgB,kBAAkB;GAClC,WAAW,OAAO;GACR;GACV,KAAK;GACL,KAAK;GACK;GACV,WAAW;GACX,OAAO;GACP,KAAK;GACL,MAAK;GACL,GAAI;GACJ,GAAI;IACJ,EACF,qBAAC,OAAA;GAAI,WAAW,OAAO;GAAQ,eAAa;GAAQ,oBAAkB,YAAY;;IAC/E,SACC,oBAAC,eAAA;KAAM,WAAW,OAAO;KAAkB,YAAY;KAAM,QAAQ;KAAG,YAAY;KAAU,IAAI;eAC/F;MACK;IAEV,qBAAC,OAAA;KAAI,WAAW,OAAO;;MACpB,eAAe;MAEhB,qBAAC,OAAA;OACC,KAAK;OACL,WAAW,WAAW,OAAO,0BAA0B,YAAY,OAAO,mCAAmC;OAC7G,eAAe;kBAEf,oBAAC,OAAA;QAAI,WAAW,WAAW,OAAO,eAAe,YAAY,OAAO,2BAA2B;kBAAG,aAAa;SAAO,EACtH,oBAAC,OAAA;QACC,WAAW,WAAW,OAAO,gBAAgB;UAC1C,OAAO,8BAA8B;UACrC,OAAO,8BAA8B;UACrC,OAAO,6BAA6B;UACpC,OAAO,6BAA6B,CAAC,YAAY;SACnD,CAAC;QACF,OAAO,EACL,MAAM,GAAG,WAAW,KACrB;SACD,CAAA;QACE;MACL,kBAAkB;;MACf;KACJ,aAAa,eACb,qBAAC,QAAA;KAAK,WAAW,OAAO;gBACtB,oBAAC,QAAA;MAAK,IAAI;gBAAc;OAAiB,EACzC,oBAAC,QAAA;MAAK,IAAI;gBAAe;OAAkB,CAAA;MACtC;;IAEL,CAAA;GACO;;AAInB,OAAO,cAAc;AClZrB,IAAA,mBDoZe"}
package/lib/Spacer.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { n as AnalyticsId } from "./constants2.js";
2
- import cn from "classnames";
2
+ import classNames from "classnames";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import spacerStyles from "./components/Spacer/styles.module.scss";
5
5
  var Spacer = (props) => {
6
6
  const { size = "s", className, testId, ref } = props;
7
7
  return /* @__PURE__ */ jsx("span", {
8
- className: cn(spacerStyles.spacer, {
8
+ className: classNames(spacerStyles.spacer, {
9
9
  [spacerStyles["spacer--4xs"]]: size === "4xs",
10
10
  [spacerStyles["spacer--3xs"]]: size === "3xs",
11
11
  [spacerStyles["spacer--2xs"]]: size === "2xs",
package/lib/Spacer.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Spacer.js","names":["Spacer: React.FC<SpacerProps>"],"sources":["../src/components/Spacer/Spacer.tsx","../src/components/Spacer/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { SpacerSizes } from './../../theme/spacers';\n\nimport { AnalyticsId } from '../../constants';\n\nimport spacerStyles from './styles.module.scss';\n\nexport interface SpacerProps {\n /** Sets the size of the spacer. */\n size?: SpacerSizes;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nconst Spacer: React.FC<SpacerProps> = (props: SpacerProps) => {\n const { size = 's', className, testId, ref } = props;\n const spacerClasses = classNames(\n spacerStyles.spacer,\n {\n [spacerStyles['spacer--4xs']]: size === '4xs',\n [spacerStyles['spacer--3xs']]: size === '3xs',\n [spacerStyles['spacer--2xs']]: size === '2xs',\n [spacerStyles['spacer--xs']]: size === 'xs',\n [spacerStyles['spacer--s']]: size === 's',\n [spacerStyles['spacer--m']]: size === 'm',\n [spacerStyles['spacer--l']]: size === 'l',\n [spacerStyles['spacer--xl']]: size === 'xl',\n [spacerStyles['spacer--2xl']]: size === '2xl',\n [spacerStyles['spacer--3xl']]: size === '3xl',\n [spacerStyles['spacer--4xl']]: size === '4xl',\n [spacerStyles['spacer--5xl']]: size === '5xl',\n [spacerStyles['spacer--6xl']]: size === '6xl',\n },\n className\n );\n\n return <span className={spacerClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Spacer}></span>;\n};\n\nexport default Spacer;\n","import Spacer from './Spacer';\nexport * from './Spacer';\nexport default Spacer;\n"],"mappings":";;;;AAmBA,IAAMA,UAAiC,UAAuB;CAC5D,MAAM,EAAE,OAAO,KAAK,WAAW,QAAQ,QAAQ;AAqB/C,QAAO,oBAAC,QAAA;EAAK,WApBS,GACpB,aAAa,QACb;IACG,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,gBAAgB,SAAS;IACtC,aAAa,eAAe,SAAS;IACrC,aAAa,eAAe,SAAS;IACrC,aAAa,eAAe,SAAS;IACrC,aAAa,gBAAgB,SAAS;IACtC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;GACzC,EACD,UACD;EAE2C;EAAK,eAAa;EAAQ,oBAAkB,YAAY;GAAe;;ACvCrH,IAAA,mBD0Ce"}
1
+ {"version":3,"file":"Spacer.js","names":["Spacer: React.FC<SpacerProps>"],"sources":["../src/components/Spacer/Spacer.tsx","../src/components/Spacer/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { SpacerSizes } from './../../theme/spacers';\n\nimport { AnalyticsId } from '../../constants';\n\nimport spacerStyles from './styles.module.scss';\n\nexport interface SpacerProps {\n /** Sets the size of the spacer. */\n size?: SpacerSizes;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nconst Spacer: React.FC<SpacerProps> = (props: SpacerProps) => {\n const { size = 's', className, testId, ref } = props;\n const spacerClasses = classNames(\n spacerStyles.spacer,\n {\n [spacerStyles['spacer--4xs']]: size === '4xs',\n [spacerStyles['spacer--3xs']]: size === '3xs',\n [spacerStyles['spacer--2xs']]: size === '2xs',\n [spacerStyles['spacer--xs']]: size === 'xs',\n [spacerStyles['spacer--s']]: size === 's',\n [spacerStyles['spacer--m']]: size === 'm',\n [spacerStyles['spacer--l']]: size === 'l',\n [spacerStyles['spacer--xl']]: size === 'xl',\n [spacerStyles['spacer--2xl']]: size === '2xl',\n [spacerStyles['spacer--3xl']]: size === '3xl',\n [spacerStyles['spacer--4xl']]: size === '4xl',\n [spacerStyles['spacer--5xl']]: size === '5xl',\n [spacerStyles['spacer--6xl']]: size === '6xl',\n },\n className\n );\n\n return <span className={spacerClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Spacer}></span>;\n};\n\nexport default Spacer;\n","import Spacer from './Spacer';\nexport * from './Spacer';\nexport default Spacer;\n"],"mappings":";;;;AAmBA,IAAMA,UAAiC,UAAuB;CAC5D,MAAM,EAAE,OAAO,KAAK,WAAW,QAAQ,QAAQ;AAqB/C,QAAO,oBAAC,QAAA;EAAK,WApBS,WACpB,aAAa,QACb;IACG,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,gBAAgB,SAAS;IACtC,aAAa,eAAe,SAAS;IACrC,aAAa,eAAe,SAAS;IACrC,aAAa,eAAe,SAAS;IACrC,aAAa,gBAAgB,SAAS;IACtC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;IACvC,aAAa,iBAAiB,SAAS;GACzC,EACD,UACD;EAE2C;EAAK,eAAa;EAAQ,oBAAkB,YAAY;GAAe;;ACvCrH,IAAA,mBD0Ce"}
package/lib/StatusDot.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as IconSize, n as AnalyticsId, r as FormOnColor } from "./constants2.js";
2
2
  import { t as getColor } from "./color.js";
3
3
  import { n as LazyIcon } from "./LazyIcon.js";
4
- import cn from "classnames";
4
+ import classNames from "classnames";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import styles from "./components/StatusDot/styles.module.scss";
7
7
  let StatusDotOnColor = /* @__PURE__ */ function(StatusDotOnColor$1) {
@@ -36,7 +36,7 @@ var StatusDotIcon = ({ onColor, variant = "info" }) => {
36
36
  color: onColor === StatusDotOnColor.ondark ? getColor("white") : getColor("black"),
37
37
  size: IconSize.XXSmall,
38
38
  onColor,
39
- className: cn({
39
+ className: classNames({
40
40
  [styles[`statusdot__dot--${variant}`]]: typeof variant !== "undefined",
41
41
  [styles["statusdot__dot--on-dark"]]: onColor === StatusDotOnColor.ondark
42
42
  })
@@ -123,8 +123,8 @@ var StatusDotIcon = ({ onColor, variant = "info" }) => {
123
123
  };
124
124
  var StatusDot = (props) => {
125
125
  const { id, onColor = StatusDotOnColor.onwhite, variant = StatusDotVariant.info, text, className, testId, ref } = props;
126
- const statusDotClasses = cn(styles["statusdot"], className);
127
- const labelClasses = cn(styles["statusdot__label"], { [styles["statusdot__label--on-dark"]]: onColor === StatusDotOnColor.ondark });
126
+ const statusDotClasses = classNames(styles["statusdot"], className);
127
+ const labelClasses = classNames(styles["statusdot__label"], { [styles["statusdot__label--on-dark"]]: onColor === StatusDotOnColor.ondark });
128
128
  return /* @__PURE__ */ jsxs("span", {
129
129
  id,
130
130
  ref,
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDot.js","names":["StatusDotIcon: React.FC<StatusDotIconProps>","StatusDot: React.FC<StatusDotProps>"],"sources":["../src/components/StatusDot/constants.ts","../src/components/StatusDot/StatusDot.tsx","../src/components/StatusDot/index.ts"],"sourcesContent":["import { FormOnColor } from '../../constants';\n\nexport enum StatusDotOnColor {\n onwhite = FormOnColor.onwhite,\n ondark = FormOnColor.ondark,\n}\n\nexport enum StatusDotVariant {\n success = 'success',\n inprocess = 'inprocess',\n exception = 'exception',\n unknown = 'unknown',\n inspected = 'inspected',\n cancelled = 'cancelled',\n alert = 'alert',\n transparent = 'transparent',\n info = 'info',\n group = 'group',\n recurring = 'recurring',\n noaccess = 'noaccess',\n draft = 'draft',\n hidden = 'hidden',\n login = 'login',\n attachment = 'attachment',\n active = 'active',\n pending = 'pending',\n inactive = 'inactive',\n}\n","import classNames from 'classnames';\n\nimport { StatusDotOnColor, StatusDotVariant } from './constants';\nimport { IconSize } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys';\nimport { LazyIcon } from '../LazyIcon';\n\nimport styles from './styles.module.scss';\n\nexport interface StatusDotIconProps {\n /** Defines the color of the icon */\n onColor?: keyof typeof StatusDotOnColor;\n /** The variant defines style formatting and what icon to use */\n variant?: keyof typeof StatusDotVariant;\n}\n\nconst StatusDotIcon: React.FC<StatusDotIconProps> = ({ onColor, variant = 'info' }) => {\n const color = onColor === StatusDotOnColor.ondark ? getColor('white') : getColor('black');\n const iconProps = {\n color,\n size: IconSize.XXSmall,\n onColor,\n className: classNames({\n [styles[`statusdot__dot--${variant}`]]: typeof variant !== 'undefined',\n [styles['statusdot__dot--on-dark']]: onColor === StatusDotOnColor.ondark,\n }),\n };\n\n switch (variant) {\n case StatusDotVariant.success:\n return <LazyIcon {...iconProps} iconName={'DotSuccess'} />;\n case StatusDotVariant.inprocess:\n return <LazyIcon {...iconProps} iconName={'DotHalfDisc'} />;\n case StatusDotVariant.exception:\n return <LazyIcon {...iconProps} iconName={'DotWarningTriangle'} />;\n case StatusDotVariant.unknown:\n return <LazyIcon {...iconProps} iconName={'DotQuestionMark'} />;\n case StatusDotVariant.inspected:\n return <LazyIcon {...iconProps} iconName={'DotLookingGlass'} />;\n case StatusDotVariant.cancelled:\n return <LazyIcon {...iconProps} iconName={'DotCancelled'} />;\n case StatusDotVariant.alert:\n return <LazyIcon {...iconProps} iconName={'DotAlert'} />;\n case StatusDotVariant.transparent:\n return <LazyIcon {...iconProps} iconName={'DotTransparent'} />;\n case StatusDotVariant.info:\n return <LazyIcon {...iconProps} iconName={'DotInfo'} />;\n case StatusDotVariant.group:\n return <LazyIcon {...iconProps} iconName={'Group'} />;\n case StatusDotVariant.recurring:\n return <LazyIcon {...iconProps} iconName={'Change'} />;\n case StatusDotVariant.noaccess:\n return <LazyIcon {...iconProps} iconName={'NoAccess'} />;\n case StatusDotVariant.draft:\n return <LazyIcon {...iconProps} iconName={'Pencil'} />;\n case StatusDotVariant.hidden:\n return <LazyIcon {...iconProps} iconName={'NoEye'} />;\n case StatusDotVariant.login:\n return <LazyIcon {...iconProps} iconName={'Login'} />;\n case StatusDotVariant.attachment:\n return <LazyIcon {...iconProps} iconName={'Attachment'} />;\n case StatusDotVariant.active:\n return <LazyIcon {...iconProps} iconName={'DotActive'} />;\n case StatusDotVariant.pending:\n return <LazyIcon {...iconProps} iconName={'DotPending'} />;\n case StatusDotVariant.inactive:\n return <LazyIcon {...iconProps} iconName={'DotInactive'} />;\n }\n\n return null;\n};\n\nexport interface StatusDotProps {\n /** id that is placed on the wrapper */\n id?: string;\n /** Defines the color mode, onwhite, ondark etc. */\n onColor?: keyof typeof StatusDotOnColor;\n /** Visual variants for the statusdot */\n variant?: keyof typeof StatusDotVariant;\n /** Text placed to the right of the statusdot */\n text: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the root element */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nexport type StatusDotType = typeof StatusDot;\nconst StatusDot: React.FC<StatusDotProps> = (props: StatusDotProps) => {\n const { id, onColor = StatusDotOnColor.onwhite, variant = StatusDotVariant.info, text, className, testId, ref } = props;\n const statusDotClasses = classNames(styles['statusdot'], className);\n const labelClasses = classNames(styles['statusdot__label'], {\n [styles['statusdot__label--on-dark']]: onColor === StatusDotOnColor.ondark,\n });\n\n return (\n <span id={id} ref={ref} className={statusDotClasses} data-testid={testId} data-analyticsid={AnalyticsId.StatusDot}>\n <span className={styles['statusdot__dot']} data-testid={testId + '-dot'}>\n <StatusDotIcon onColor={onColor} variant={variant} />\n </span>\n <span className={labelClasses}>{text}</span>\n </span>\n );\n};\n\nexport default StatusDot;\n","import StatusDot from './StatusDot';\nexport { StatusDotOnColor, StatusDotVariant } from './constants';\nexport * from './StatusDot';\nexport default StatusDot;\n"],"mappings":";;;;;;AAEA,IAAY,mBAAA,yBAAA,oBAAL;AACL,oBAAA,mBAAA,aAAU,YAAY,WAAA;AACtB,oBAAA,mBAAA,YAAS,YAAY,UAAA;;;AAGvB,IAAY,mBAAA,yBAAA,oBAAL;AACL,oBAAA,aAAA;AACA,oBAAA,eAAA;AACA,oBAAA,eAAA;AACA,oBAAA,aAAA;AACA,oBAAA,eAAA;AACA,oBAAA,eAAA;AACA,oBAAA,WAAA;AACA,oBAAA,iBAAA;AACA,oBAAA,UAAA;AACA,oBAAA,WAAA;AACA,oBAAA,eAAA;AACA,oBAAA,cAAA;AACA,oBAAA,WAAA;AACA,oBAAA,YAAA;AACA,oBAAA,WAAA;AACA,oBAAA,gBAAA;AACA,oBAAA,YAAA;AACA,oBAAA,aAAA;AACA,oBAAA,cAAA;;;ACTF,IAAMA,iBAA+C,EAAE,SAAS,UAAU,aAAa;CAErF,MAAM,YAAY;EAChB,OAFY,YAAY,iBAAiB,SAAS,SAAS,QAAQ,GAAG,SAAS,QAAQ;EAGvF,MAAM,SAAS;EACf;EACA,WAAW,GAAW;IACnB,OAAO,mBAAmB,aAAa,OAAO,YAAY;IAC1D,OAAO,6BAA6B,YAAY,iBAAiB;GACnE,CAAC;EACH;AAED,SAAQ,SAAR;EACE,KAAK,iBAAiB,QACpB,QAAO,oBAAC,UAAA;GAAS,GAAI;GAAW,UAAU;IAAgB;EAC5D,KAAK,iBAAiB,UACpB,QAAO,oBAAC,UAAA;GAAS,GAAI;GAAW,UAAU;IAAiB;EAC7D,KAAK,iBAAiB,UACpB,QAAO,oBAAC,UAAA;GAAS,GAAI;GAAW,UAAU;IAAwB;EACpE,KAAK,iBAAiB,QACpB,QAAO,oBAAC,UAAA;GAAS,GAAI;GAAW,UAAU;IAAqB;EACjE,KAAK,iBAAiB,UACpB,QAA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AAM,WAAW,QAAQ,QAAQ;CAClH,MAAM,mBAAmB,GAAW,OAAO,cAAc,UAAU;CACnE,MAAM,eAAe,GAAW,OAAO,qBAAqB,GACzD,OAAO,+BAA+B,YAAY,iBAAiB,QACrE,CAAC;AAEF,QACE,qBAAC,QAAA;EAAS;EAAS;EAAK,WAAW;EAAkB,eAAa;EAAQ,oBAAkB,YAAY;aACtG,oBAAC,QAAA;GAAK,WAAW,OAAO;GAAmB,eAAa,SAAS;aAC/D,oBAAC,eAAA;IAAuB;IAAkB;KAAW;IAChD,EACP,oBAAC,QAAA;GAAK,WAAW;aAAe;IAAY,CAAA;GACvC;;ACrGX,IAAA,sBDyGe"}
1
+ {"version":3,"file":"StatusDot.js","names":["StatusDotIcon: React.FC<StatusDotIconProps>","StatusDot: React.FC<StatusDotProps>"],"sources":["../src/components/StatusDot/constants.ts","../src/components/StatusDot/StatusDot.tsx","../src/components/StatusDot/index.ts"],"sourcesContent":["import { FormOnColor } from '../../constants';\n\nexport enum StatusDotOnColor {\n onwhite = FormOnColor.onwhite,\n ondark = FormOnColor.ondark,\n}\n\nexport enum StatusDotVariant {\n success = 'success',\n inprocess = 'inprocess',\n exception = 'exception',\n unknown = 'unknown',\n inspected = 'inspected',\n cancelled = 'cancelled',\n alert = 'alert',\n transparent = 'transparent',\n info = 'info',\n group = 'group',\n recurring = 'recurring',\n noaccess = 'noaccess',\n draft = 'draft',\n hidden = 'hidden',\n login = 'login',\n attachment = 'attachment',\n active = 'active',\n pending = 'pending',\n inactive = 'inactive',\n}\n","import classNames from 'classnames';\n\nimport { StatusDotOnColor, StatusDotVariant } from './constants';\nimport { IconSize } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys';\nimport { LazyIcon } from '../LazyIcon';\n\nimport styles from './styles.module.scss';\n\nexport interface StatusDotIconProps {\n /** Defines the color of the icon */\n onColor?: keyof typeof StatusDotOnColor;\n /** The variant defines style formatting and what icon to use */\n variant?: keyof typeof StatusDotVariant;\n}\n\nconst StatusDotIcon: React.FC<StatusDotIconProps> = ({ onColor, variant = 'info' }) => {\n const color = onColor === StatusDotOnColor.ondark ? getColor('white') : getColor('black');\n const iconProps = {\n color,\n size: IconSize.XXSmall,\n onColor,\n className: classNames({\n [styles[`statusdot__dot--${variant}`]]: typeof variant !== 'undefined',\n [styles['statusdot__dot--on-dark']]: onColor === StatusDotOnColor.ondark,\n }),\n };\n\n switch (variant) {\n case StatusDotVariant.success:\n return <LazyIcon {...iconProps} iconName={'DotSuccess'} />;\n case StatusDotVariant.inprocess:\n return <LazyIcon {...iconProps} iconName={'DotHalfDisc'} />;\n case StatusDotVariant.exception:\n return <LazyIcon {...iconProps} iconName={'DotWarningTriangle'} />;\n case StatusDotVariant.unknown:\n return <LazyIcon {...iconProps} iconName={'DotQuestionMark'} />;\n case StatusDotVariant.inspected:\n return <LazyIcon {...iconProps} iconName={'DotLookingGlass'} />;\n case StatusDotVariant.cancelled:\n return <LazyIcon {...iconProps} iconName={'DotCancelled'} />;\n case StatusDotVariant.alert:\n return <LazyIcon {...iconProps} iconName={'DotAlert'} />;\n case StatusDotVariant.transparent:\n return <LazyIcon {...iconProps} iconName={'DotTransparent'} />;\n case StatusDotVariant.info:\n return <LazyIcon {...iconProps} iconName={'DotInfo'} />;\n case StatusDotVariant.group:\n return <LazyIcon {...iconProps} iconName={'Group'} />;\n case StatusDotVariant.recurring:\n return <LazyIcon {...iconProps} iconName={'Change'} />;\n case StatusDotVariant.noaccess:\n return <LazyIcon {...iconProps} iconName={'NoAccess'} />;\n case StatusDotVariant.draft:\n return <LazyIcon {...iconProps} iconName={'Pencil'} />;\n case StatusDotVariant.hidden:\n return <LazyIcon {...iconProps} iconName={'NoEye'} />;\n case StatusDotVariant.login:\n return <LazyIcon {...iconProps} iconName={'Login'} />;\n case StatusDotVariant.attachment:\n return <LazyIcon {...iconProps} iconName={'Attachment'} />;\n case StatusDotVariant.active:\n return <LazyIcon {...iconProps} iconName={'DotActive'} />;\n case StatusDotVariant.pending:\n return <LazyIcon {...iconProps} iconName={'DotPending'} />;\n case StatusDotVariant.inactive:\n return <LazyIcon {...iconProps} iconName={'DotInactive'} />;\n }\n\n return null;\n};\n\nexport interface StatusDotProps {\n /** id that is placed on the wrapper */\n id?: string;\n /** Defines the color mode, onwhite, ondark etc. */\n onColor?: keyof typeof StatusDotOnColor;\n /** Visual variants for the statusdot */\n variant?: keyof typeof StatusDotVariant;\n /** Text placed to the right of the statusdot */\n text: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the root element */\n ref?: React.Ref<HTMLElement | null>;\n}\n\nexport type StatusDotType = typeof StatusDot;\nconst StatusDot: React.FC<StatusDotProps> = (props: StatusDotProps) => {\n const { id, onColor = StatusDotOnColor.onwhite, variant = StatusDotVariant.info, text, className, testId, ref } = props;\n const statusDotClasses = classNames(styles['statusdot'], className);\n const labelClasses = classNames(styles['statusdot__label'], {\n [styles['statusdot__label--on-dark']]: onColor === StatusDotOnColor.ondark,\n });\n\n return (\n <span id={id} ref={ref} className={statusDotClasses} data-testid={testId} data-analyticsid={AnalyticsId.StatusDot}>\n <span className={styles['statusdot__dot']} data-testid={testId + '-dot'}>\n <StatusDotIcon onColor={onColor} variant={variant} />\n </span>\n <span className={labelClasses}>{text}</span>\n </span>\n );\n};\n\nexport default StatusDot;\n","import StatusDot from './StatusDot';\nexport { StatusDotOnColor, StatusDotVariant } from './constants';\nexport * from './StatusDot';\nexport default StatusDot;\n"],"mappings":";;;;;;AAEA,IAAY,mBAAA,yBAAA,oBAAL;AACL,oBAAA,mBAAA,aAAU,YAAY,WAAA;AACtB,oBAAA,mBAAA,YAAS,YAAY,UAAA;;;AAGvB,IAAY,mBAAA,yBAAA,oBAAL;AACL,oBAAA,aAAA;AACA,oBAAA,eAAA;AACA,oBAAA,eAAA;AACA,oBAAA,aAAA;AACA,oBAAA,eAAA;AACA,oBAAA,eAAA;AACA,oBAAA,WAAA;AACA,oBAAA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,IAAA,sBDyGe"}
@@ -1,12 +1,12 @@
1
1
  import { r as StatusDotVariant, t as StatusDot_default } from "./StatusDot.js";
2
- import cn from "classnames";
2
+ import classNames from "classnames";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import styles from "./components/ElementHeader/StatusDotList/styles.module.scss";
5
5
  const StatusDotList = (props) => {
6
6
  const { additionalText, children, className = "", testId, stacking = "horizontal", hiddenForChild = false, topStatusDot, bottomStatusDot } = props;
7
7
  return /* @__PURE__ */ jsxs("span", {
8
8
  "data-testid": testId,
9
- className: cn(styles["statusdotlist"], className),
9
+ className: classNames(styles["statusdotlist"], className),
10
10
  children: [
11
11
  topStatusDot,
12
12
  hiddenForChild && /* @__PURE__ */ jsx(StatusDot_default, {
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDotList.js","names":["StatusDotList: React.FC<StatusDotListProps>"],"sources":["../src/components/ElementHeader/StatusDotList/StatusDotList.tsx","../src/components/ElementHeader/StatusDotList/index.ts"],"sourcesContent":["import cn from 'classnames';\n\nimport type { StatusDotProps } from '../../StatusDot';\n\nimport StatusDot, { StatusDotVariant } from '../../StatusDot';\n\nimport styles from './styles.module.scss';\n\nexport type StatusDotListType = typeof StatusDotList;\n\nexport interface StatusDotListProps {\n /** Additional text to the bottom statusdot */\n additionalText?: string;\n /** StatusDot that is under the others and outside the stacking */\n bottomStatusDot?: React.ReactElement<StatusDotProps>;\n /** Stacking of the statusdots */\n stacking?: 'vertical' | 'horizontal';\n /** StatusDots as children */\n children?: React.ReactNode;\n /** Adds custom classes */\n className?: string;\n /** Show a hidden for child statusdot over the other */\n hiddenForChild?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** StatusDot that is over the others and outside the stacking */\n topStatusDot?: React.ReactElement<StatusDotProps>;\n}\n\nexport const StatusDotList: React.FC<StatusDotListProps> = props => {\n const {\n additionalText,\n children,\n className = '',\n testId,\n stacking = 'horizontal',\n hiddenForChild = false,\n topStatusDot,\n bottomStatusDot,\n } = props;\n\n return (\n <span data-testid={testId} className={cn(styles['statusdotlist'], className)}>\n {topStatusDot}\n {/* @todo: legg til tekst i SOT */}\n {hiddenForChild && <StatusDot variant={StatusDotVariant.hidden} text=\"Skjult for barnet\" />}\n <span data-stacking={stacking} className={styles['statusdotlist__children']}>\n {children}\n </span>\n {bottomStatusDot}\n {additionalText && <span className={styles['statusdotlist__additional-text']}>{additionalText}</span>}\n </span>\n );\n};\n\nexport default StatusDotList;\n","import StatusDotList from './StatusDotList';\nexport * from './StatusDotList';\nexport default StatusDotList;\n"],"mappings":";;;;AA6BA,MAAaA,iBAA8C,UAAS;CAClE,MAAM,EACJ,gBACA,UACA,YAAY,IACZ,QACA,WAAW,cACX,iBAAiB,OACjB,cACA,oBACE;AAEJ,QACE,qBAAC,QAAA;EAAK,eAAa;EAAQ,WAAW,GAAG,OAAO,kBAAkB,UAAU;;GACzE;GAEA,kBAAkB,oBAAC,mBAAA;IAAU,SAAS,iBAAiB;IAAQ,MAAK;KAAsB;GAC3F,oBAAC,QAAA;IAAK,iBAAe;IAAU,WAAW,OAAO;IAC9C;KACI;GACN;GACA,kBAAkB,oBAAC,QAAA;IAAK,WAAW,OAAO;cAAoC;KAAsB;;GAChG;;ACjDX,IAAA,0BDqDe"}
1
+ {"version":3,"file":"StatusDotList.js","names":["StatusDotList: React.FC<StatusDotListProps>"],"sources":["../src/components/ElementHeader/StatusDotList/StatusDotList.tsx","../src/components/ElementHeader/StatusDotList/index.ts"],"sourcesContent":["import cn from 'classnames';\n\nimport type { StatusDotProps } from '../../StatusDot';\n\nimport StatusDot, { StatusDotVariant } from '../../StatusDot';\n\nimport styles from './styles.module.scss';\n\nexport type StatusDotListType = typeof StatusDotList;\n\nexport interface StatusDotListProps {\n /** Additional text to the bottom statusdot */\n additionalText?: string;\n /** StatusDot that is under the others and outside the stacking */\n bottomStatusDot?: React.ReactElement<StatusDotProps>;\n /** Stacking of the statusdots */\n stacking?: 'vertical' | 'horizontal';\n /** StatusDots as children */\n children?: React.ReactNode;\n /** Adds custom classes */\n className?: string;\n /** Show a hidden for child statusdot over the other */\n hiddenForChild?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** StatusDot that is over the others and outside the stacking */\n topStatusDot?: React.ReactElement<StatusDotProps>;\n}\n\nexport const StatusDotList: React.FC<StatusDotListProps> = props => {\n const {\n additionalText,\n children,\n className = '',\n testId,\n stacking = 'horizontal',\n hiddenForChild = false,\n topStatusDot,\n bottomStatusDot,\n } = props;\n\n return (\n <span data-testid={testId} className={cn(styles['statusdotlist'], className)}>\n {topStatusDot}\n {/* @todo: legg til tekst i SOT */}\n {hiddenForChild && <StatusDot variant={StatusDotVariant.hidden} text=\"Skjult for barnet\" />}\n <span data-stacking={stacking} className={styles['statusdotlist__children']}>\n {children}\n </span>\n {bottomStatusDot}\n {additionalText && <span className={styles['statusdotlist__additional-text']}>{additionalText}</span>}\n </span>\n );\n};\n\nexport default StatusDotList;\n","import StatusDotList from './StatusDotList';\nexport * from './StatusDotList';\nexport default StatusDotList;\n"],"mappings":";;;;AA6BA,MAAaA,iBAA8C,UAAS;CAClE,MAAM,EACJ,gBACA,UACA,YAAY,IACZ,QACA,WAAW,cACX,iBAAiB,OACjB,cACA,oBACE;AAEJ,QACE,qBAAC,QAAA;EAAK,eAAa;EAAQ,WAAW,WAAG,OAAO,kBAAkB,UAAU;;GACzE;GAEA,kBAAkB,oBAAC,mBAAA;IAAU,SAAS,iBAAiB;IAAQ,MAAK;KAAsB;GAC3F,oBAAC,QAAA;IAAK,iBAAe;IAAU,WAAW,OAAO;IAC9C;KACI;GACN;GACA,kBAAkB,oBAAC,QAAA;IAAK,WAAW,OAAO;cAAoC;KAAsB;;GAChG;;ACjDX,IAAA,0BDqDe"}
@@ -1,11 +1,11 @@
1
1
  import { n as AnalyticsId } from "./constants2.js";
2
- import cn from "classnames";
2
+ import classNames from "classnames";
3
3
  import React from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import styles from "./components/StepButtons/styles.module.scss";
6
6
  const StepButtons = (props) => {
7
7
  const { backButton, forwardButton, additionalButtons, cancelButton, sticky = false, testId } = props;
8
- const navigationClasses = cn(styles.stepbuttons, sticky && styles["stepbuttons--has-sticky-buttons"]);
8
+ const navigationClasses = classNames(styles.stepbuttons, sticky && styles["stepbuttons--has-sticky-buttons"]);
9
9
  if (backButton || forwardButton || additionalButtons || cancelButton) return /* @__PURE__ */ jsxs("div", {
10
10
  className: navigationClasses,
11
11
  "data-testid": testId,
@@ -15,14 +15,14 @@ const StepButtons = (props) => {
15
15
  className: styles.stepbuttons__buttons,
16
16
  children: [backButton && React.cloneElement(backButton, {
17
17
  variant: "outline",
18
- wrapperClassName: cn(styles["stepbuttons__button--back"])
18
+ wrapperClassName: classNames(styles["stepbuttons__button--back"])
19
19
  }), forwardButton && React.cloneElement(forwardButton, {
20
20
  variant: "fill",
21
- wrapperClassName: cn(styles["stepbuttons__button--forward"])
21
+ wrapperClassName: classNames(styles["stepbuttons__button--forward"])
22
22
  })]
23
23
  }),
24
24
  additionalButtons && /* @__PURE__ */ jsx("div", {
25
- className: cn(styles.stepbuttons__buttons, styles["stepbuttons__buttons--additional"]),
25
+ className: classNames(styles.stepbuttons__buttons, styles["stepbuttons__buttons--additional"]),
26
26
  children: additionalButtons
27
27
  }),
28
28
  cancelButton && /* @__PURE__ */ jsx("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"StepButtons.js","names":["StepButtons: React.FC<StepButtonsProps>"],"sources":["../src/components/StepButtons/StepButtons.tsx","../src/components/StepButtons/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport type { ButtonProps } from '../Button';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface StepButtonsProps {\n /** Knapp for å gå tilbake. Vises med \"outline\" variant. */\n backButton?: React.ReactElement<ButtonProps>;\n /** Knapp for å gå videre. Vises med \"fill\" variant. */\n forwardButton?: React.ReactElement<ButtonProps>;\n /** Ekstra knapper. Valgfritt utseende. */\n additionalButtons?: React.ReactElement<ButtonProps>[];\n /** Knapp for å avbryte eller fortsette senere. Vises med \"borderless\" variant. */\n cancelButton?: React.ReactElement<ButtonProps>;\n /** Knappene vil vises sticky nederst på skjermen. Default: false */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const StepButtons: React.FC<StepButtonsProps> = props => {\n const { backButton, forwardButton, additionalButtons, cancelButton, sticky = false, testId } = props;\n\n const navigationClasses = classNames(styles.stepbuttons, sticky && styles['stepbuttons--has-sticky-buttons']);\n\n if (backButton || forwardButton || additionalButtons || cancelButton) {\n return (\n <div className={navigationClasses} data-testid={testId} data-analyticsid={AnalyticsId.StepButtons}>\n {(backButton || forwardButton) && (\n <div className={styles.stepbuttons__buttons}>\n {backButton &&\n React.cloneElement(backButton, {\n variant: 'outline',\n wrapperClassName: classNames(styles['stepbuttons__button--back']),\n })}\n {forwardButton &&\n React.cloneElement(forwardButton, {\n variant: 'fill',\n wrapperClassName: classNames(styles['stepbuttons__button--forward']),\n })}\n </div>\n )}\n {additionalButtons && (\n <div className={classNames(styles.stepbuttons__buttons, styles['stepbuttons__buttons--additional'])}>{additionalButtons}</div>\n )}\n {cancelButton && (\n <div className={styles.stepbuttons__buttons}>\n {React.cloneElement(cancelButton, {\n variant: 'borderless',\n })}\n </div>\n )}\n </div>\n );\n }\n return null;\n};\n\nexport default StepButtons;\n","import StepButtons from './StepButtons';\nexport * from './StepButtons';\nexport default StepButtons;\n"],"mappings":";;;;;AAyBA,MAAaA,eAA0C,UAAS;CAC9D,MAAM,EAAE,YAAY,eAAe,mBAAmB,cAAc,SAAS,OAAO,WAAW;CAE/F,MAAM,oBAAoB,GAAW,OAAO,aAAa,UAAU,OAAO,mCAAmC;AAE7G,KAAI,cAAc,iBAAiB,qBAAqB,aACtD,QACE,qBAAC,OAAA;EAAI,WAAW;EAAmB,eAAa;EAAQ,oBAAkB,YAAY;;IAClF,cAAc,kBACd,qBAAC,OAAA;IAAI,WAAW,OAAO;eACpB,cACC,MAAM,aAAa,YAAY;KAC7B,SAAS;KACT,kBAAkB,GAAW,OAAO,6BAA6B;KAClE,CAAC,EACH,iBACC,MAAM,aAAa,eAAe;KAChC,SAAS;KACT,kBAAkB,GAAW,OAAO,gCAAgC;KACrE,CAAC,CAAA;KACA;GAEP,qBACC,oBAAC,OAAA;IAAI,WAAW,GAAW,OAAO,sBAAsB,OAAO,oCAAoC;cAAG;KAAwB;GAE/H,gBACC,oBAAC,OAAA;IAAI,WAAW,OAAO;cACpB,MAAM,aAAa,cAAc,EAChC,SAAS,cACV,CAAC;KACE;;GAEJ;AAGV,QAAO;;AC1DT,IAAA,wBD6De"}
1
+ {"version":3,"file":"StepButtons.js","names":["StepButtons: React.FC<StepButtonsProps>"],"sources":["../src/components/StepButtons/StepButtons.tsx","../src/components/StepButtons/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport type { ButtonProps } from '../Button';\n\nimport { AnalyticsId } from '../../constants';\n\nimport styles from './styles.module.scss';\n\nexport interface StepButtonsProps {\n /** Knapp for å gå tilbake. Vises med \"outline\" variant. */\n backButton?: React.ReactElement<ButtonProps>;\n /** Knapp for å gå videre. Vises med \"fill\" variant. */\n forwardButton?: React.ReactElement<ButtonProps>;\n /** Ekstra knapper. Valgfritt utseende. */\n additionalButtons?: React.ReactElement<ButtonProps>[];\n /** Knapp for å avbryte eller fortsette senere. Vises med \"borderless\" variant. */\n cancelButton?: React.ReactElement<ButtonProps>;\n /** Knappene vil vises sticky nederst på skjermen. Default: false */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport const StepButtons: React.FC<StepButtonsProps> = props => {\n const { backButton, forwardButton, additionalButtons, cancelButton, sticky = false, testId } = props;\n\n const navigationClasses = classNames(styles.stepbuttons, sticky && styles['stepbuttons--has-sticky-buttons']);\n\n if (backButton || forwardButton || additionalButtons || cancelButton) {\n return (\n <div className={navigationClasses} data-testid={testId} data-analyticsid={AnalyticsId.StepButtons}>\n {(backButton || forwardButton) && (\n <div className={styles.stepbuttons__buttons}>\n {backButton &&\n React.cloneElement(backButton, {\n variant: 'outline',\n wrapperClassName: classNames(styles['stepbuttons__button--back']),\n })}\n {forwardButton &&\n React.cloneElement(forwardButton, {\n variant: 'fill',\n wrapperClassName: classNames(styles['stepbuttons__button--forward']),\n })}\n </div>\n )}\n {additionalButtons && (\n <div className={classNames(styles.stepbuttons__buttons, styles['stepbuttons__buttons--additional'])}>{additionalButtons}</div>\n )}\n {cancelButton && (\n <div className={styles.stepbuttons__buttons}>\n {React.cloneElement(cancelButton, {\n variant: 'borderless',\n })}\n </div>\n )}\n </div>\n );\n }\n return null;\n};\n\nexport default StepButtons;\n","import StepButtons from './StepButtons';\nexport * from './StepButtons';\nexport default StepButtons;\n"],"mappings":";;;;;AAyBA,MAAaA,eAA0C,UAAS;CAC9D,MAAM,EAAE,YAAY,eAAe,mBAAmB,cAAc,SAAS,OAAO,WAAW;CAE/F,MAAM,oBAAoB,WAAW,OAAO,aAAa,UAAU,OAAO,mCAAmC;AAE7G,KAAI,cAAc,iBAAiB,qBAAqB,aACtD,QACE,qBAAC,OAAA;EAAI,WAAW;EAAmB,eAAa;EAAQ,oBAAkB,YAAY;;IAClF,cAAc,kBACd,qBAAC,OAAA;IAAI,WAAW,OAAO;eACpB,cACC,MAAM,aAAa,YAAY;KAC7B,SAAS;KACT,kBAAkB,WAAW,OAAO,6BAA6B;KAClE,CAAC,EACH,iBACC,MAAM,aAAa,eAAe;KAChC,SAAS;KACT,kBAAkB,WAAW,OAAO,gCAAgC;KACrE,CAAC,CAAA;KACA;GAEP,qBACC,oBAAC,OAAA;IAAI,WAAW,WAAW,OAAO,sBAAsB,OAAO,oCAAoC;cAAG;KAAwB;GAE/H,gBACC,oBAAC,OAAA;IAAI,WAAW,OAAO;cACpB,MAAM,aAAa,cAAc,EAChC,SAAS,cACV,CAAC;KACE;;GAEJ;AAGV,QAAO;;AC1DT,IAAA,wBD6De"}
package/lib/TabList.js CHANGED
@@ -8,7 +8,7 @@ import { t as useIsVisible } from "./useIsVisible.js";
8
8
  import { t as ChevronLeft_default } from "./ChevronLeft.js";
9
9
  import { t as ChevronRight_default } from "./ChevronRight.js";
10
10
  import { t as useRovingFocus } from "./useRovingFocus.js";
11
- import cn from "classnames";
11
+ import classNames from "classnames";
12
12
  import React, { useEffect, useRef } from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
14
  import styles from "./components/Tabs/TabList/styles.module.scss";
@@ -48,7 +48,7 @@ var TabItem = (props) => {
48
48
  props.onTabListClick(props.index);
49
49
  scrollToTab(props.index);
50
50
  };
51
- const tabButtonClasses = cn(styles["tab-list__tab"], styles[`tab-list__tab--${props.color}`], {
51
+ const tabButtonClasses = classNames(styles["tab-list__tab"], styles[`tab-list__tab--${props.color}`], {
52
52
  [styles["tab-list__tab--selected"]]: isSelected,
53
53
  [styles["tab-list__tab--not-selected"]]: !isSelected
54
54
  });
@@ -96,7 +96,7 @@ var TabList = (props) => {
96
96
  const listRef = useRef(null);
97
97
  const tabRefs = useRef(React.Children.map(children, () => React.createRef()) || []);
98
98
  useRovingFocus(onTabListClick, tabRefs, listRef, true);
99
- const tablistClasses = cn(styles["tab-list"], styles[`tab-list--${onColor}`]);
99
+ const tablistClasses = classNames(styles["tab-list"], styles[`tab-list--${onColor}`]);
100
100
  const getBackgroundColor = (onColor$1) => {
101
101
  switch (onColor$1) {
102
102
  case "onwhite": return "var(--color-base-background-white)";
@@ -139,14 +139,14 @@ var TabList = (props) => {
139
139
  className: styles["tab-list-wrapper"],
140
140
  children: [
141
141
  shouldShowFadeStart() && /* @__PURE__ */ jsxs("div", {
142
- className: cn(styles["tab-list__start-wrapper"]),
142
+ className: classNames(styles["tab-list__start-wrapper"]),
143
143
  children: [/* @__PURE__ */ jsx(TabChevron_default, {
144
144
  onClick: () => scrollInList("left"),
145
145
  direction: "left",
146
146
  backgroundColor: `${getBackgroundColor(onColor)}`,
147
147
  ariaLabel: ariaLabelLeftButton
148
148
  }), /* @__PURE__ */ jsx("div", {
149
- className: cn(styles["tab-list__fade-start"]),
149
+ className: classNames(styles["tab-list__fade-start"]),
150
150
  style: { backgroundColor: `${getBackgroundColor(onColor)}` }
151
151
  })]
152
152
  }),
@@ -169,9 +169,9 @@ var TabList = (props) => {
169
169
  })
170
170
  }),
171
171
  shouldShowFadeEnd() && /* @__PURE__ */ jsxs("div", {
172
- className: cn(styles["tab-list__end-wrapper"]),
172
+ className: classNames(styles["tab-list__end-wrapper"]),
173
173
  children: [/* @__PURE__ */ jsx("div", {
174
- className: cn(styles["tab-list__fade-end"]),
174
+ className: classNames(styles["tab-list__fade-end"]),
175
175
  style: { backgroundColor: `${getBackgroundColor(onColor)}` }
176
176
  }), /* @__PURE__ */ jsx(TabChevron_default, {
177
177
  onClick: () => scrollInList("right"),
@@ -180,7 +180,7 @@ var TabList = (props) => {
180
180
  ariaLabel: ariaLabelRightButton
181
181
  })]
182
182
  }),
183
- /* @__PURE__ */ jsx("div", { className: cn(styles["tab-list__border"]) })
183
+ /* @__PURE__ */ jsx("div", { className: classNames(styles["tab-list__border"]) })
184
184
  ]
185
185
  });
186
186
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.js","names":["Tab: React.FC<TabProps>","TabChevron: React.FC<TabChevronProps>","TabItem: React.FC<TabItemProps>","TabList: React.FC<TabListProps>"],"sources":["../src/components/Tabs/Tab.tsx","../src/components/Tabs/TabList/TabChevron.tsx","../src/components/Tabs/TabList/TabItem.tsx","../src/components/Tabs/TabList/TabList.tsx","../src/components/Tabs/TabList/index.ts"],"sourcesContent":["import type { SvgIcon } from '../Icon';\nimport type { IconName } from '../Icons/IconNames';\n\nexport interface TabProps {\n /** Sets the tab panel content */\n children?: React.ReactNode;\n /** Optional icon on the tab */\n icon?: SvgIcon | IconName;\n /** Called when tab is selected */\n onTabClick?: (index: number) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Title on the tab */\n title?: string;\n}\n\nconst Tab: React.FC<TabProps> = props => {\n return <>{props.children ?? null}</>;\n};\n\nexport default Tab;\n","import React from 'react';\n\nimport { usePseudoClasses } from '../../../hooks/usePseudoClasses';\nimport Icon, { IconSize } from '../../Icon';\nimport ChevronLeft from '../../Icons/ChevronLeft';\nimport ChevronRight from '../../Icons/ChevronRight';\n\nimport styles from './styles.module.scss';\n\ninterface TabChevronProps {\n direction: 'left' | 'right';\n onClick: () => void;\n backgroundColor?: string;\n ariaLabel?: string;\n}\n\nconst TabChevron: React.FC<TabChevronProps> = ({ direction, onClick, backgroundColor, ariaLabel }) => {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const { isHovered } = usePseudoClasses<HTMLButtonElement | null>(buttonRef);\n\n return (\n <button\n type=\"button\"\n ref={buttonRef}\n className={styles['tab-list__button']}\n onClick={onClick}\n aria-label={ariaLabel}\n style={{ backgroundColor: backgroundColor }}\n >\n {direction === 'left' ? (\n <Icon color={'var(--color-action-graphics-onlight)'} isHovered={isHovered} svgIcon={ChevronLeft} size={IconSize.XSmall} />\n ) : (\n <Icon color={'var(--color-action-graphics-onlight)'} isHovered={isHovered} svgIcon={ChevronRight} size={IconSize.XSmall} />\n )}\n </button>\n );\n};\n\nexport default TabChevron;\n","import { useEffect, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { IconName } from '../../Icons/IconNames';\nimport type { TabProps } from '../Tab';\nimport type { TabsColors } from '../Tabs';\n\nimport { palette } from '../../../theme/palette';\nimport Icon, { IconSize } from '../../Icon';\nimport LazyIcon from '../../LazyIcon';\n\nimport styles from './styles.module.scss';\n\ninterface TabItemProps {\n tabProps: TabProps;\n index: number;\n color: TabsColors;\n selectedTab: number;\n tabRefs: React.RefObject<React.RefObject<HTMLButtonElement | null>[] | null | undefined>;\n tabListVisible: boolean;\n onTabListClick: (index: number) => void;\n}\n\nconst TabItem: React.FC<TabItemProps> = props => {\n const isSelected = props.index === props.selectedTab;\n const { title, onTabClick, icon, testId } = props.tabProps;\n const handleClick = (): void => {\n if (onTabClick) onTabClick(props.index);\n props.onTabListClick(props.index);\n scrollToTab(props.index);\n };\n const tabButtonClasses = classNames(styles['tab-list__tab'], styles[`tab-list__tab--${props.color}`], {\n [styles['tab-list__tab--selected']]: isSelected,\n [styles['tab-list__tab--not-selected']]: !isSelected,\n });\n\n const currentRef = props.tabRefs.current && props.tabRefs.current[props.index];\n\n const scrollToTab = (index: number): void => {\n const currentRef = props.tabRefs.current && props.tabRefs.current[index];\n\n if (currentRef?.current?.scrollIntoView) {\n currentRef?.current?.scrollIntoView({ behavior: 'smooth', inline: 'nearest', block: 'nearest' });\n }\n };\n\n const itemRef = useRef<HTMLLIElement>(null);\n\n useEffect(() => {\n if (isSelected && props.tabListVisible) {\n scrollToTab(props.index);\n }\n }, [isSelected]);\n\n return (\n <li role=\"presentation\" ref={itemRef}>\n <button\n role=\"tab\"\n aria-selected={isSelected}\n onClick={handleClick}\n className={tabButtonClasses}\n data-testid={testId}\n ref={currentRef as React.RefObject<HTMLButtonElement>}\n >\n <span className={styles['tab-list__tab__title-and-icon']}>\n {icon &&\n (typeof icon === 'string' ? (\n <LazyIcon\n iconName={icon as IconName}\n size={IconSize.XSmall}\n color={isSelected ? palette[`black`] : palette['blueberry500']}\n />\n ) : (\n <Icon svgIcon={icon} size={IconSize.XSmall} color={isSelected ? palette[`black`] : palette['blueberry500']} />\n ))}\n {title}\n </span>\n </button>\n </li>\n );\n};\n\nexport default TabItem;\n","import React, { useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { TabProps } from '../Tab';\nimport type { TabsColors, TabsOnColor } from '../Tabs';\n\nimport TabChevron from './TabChevron';\nimport TabItem from './TabItem';\nimport { useIsVisible } from '../../../hooks/useIsVisible';\nimport { useRovingFocus } from '../../../hooks/useRovingFocus';\nimport { isComponent } from '../../../utils/component';\nimport Tab from '../Tab';\n\nimport styles from './styles.module.scss';\ninterface TabListProps {\n children: React.ReactNode;\n onTabListClick: (index: number) => void;\n selectedTab: number;\n color: TabsColors;\n onColor: TabsOnColor;\n ariaLabelRightButton?: string;\n ariaLabelLeftButton?: string;\n}\n\nconst TabList: React.FC<TabListProps> = props => {\n const { selectedTab, onTabListClick, children, color, onColor, ariaLabelLeftButton, ariaLabelRightButton } = props;\n\n const listRef = useRef<HTMLUListElement>(null);\n\n const tabRefs = useRef(React.Children.map(children, () => React.createRef<HTMLButtonElement>()) || []);\n useRovingFocus(onTabListClick, tabRefs, listRef, true);\n\n const tablistClasses = classNames(styles['tab-list'], styles[`tab-list--${onColor}`]);\n\n const getBackgroundColor = (onColor: TabsOnColor): string => {\n switch (onColor) {\n case 'onwhite':\n return 'var(--color-base-background-white)';\n case 'onblueberry':\n return 'var(--color-base-background-blueberry)';\n case 'onneutral':\n return 'var(--color-base-background-neutral)';\n }\n };\n const firstTab = tabRefs.current && tabRefs.current[0];\n const lastTab = tabRefs.current && tabRefs.current[tabRefs.current.length - 1];\n\n const firstTabVisible = useIsVisible(firstTab);\n const lastTabVisible = useIsVisible(lastTab);\n const tabListVisible = useIsVisible(listRef);\n\n const shouldShowFadeStart = (): boolean => {\n return !firstTabVisible;\n };\n\n const shouldShowFadeEnd = (): boolean => {\n return !lastTabVisible;\n };\n\n const scrollInList = (direction: string): void => {\n if (listRef.current) {\n const listWidth = listRef.current.clientWidth;\n const listScrollLeft = listRef.current.scrollLeft;\n const maxScrollLeft = listRef.current.scrollWidth - listWidth;\n\n if (direction === 'right' && !lastTabVisible) {\n const scrollAmount = Math.min(listWidth / 2, maxScrollLeft - listScrollLeft);\n listRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' });\n } else if (direction === 'left' && !firstTabVisible) {\n const scrollAmount = -Math.min(listWidth / 2, listScrollLeft);\n listRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' });\n }\n }\n };\n\n return (\n <div className={styles['tab-list-wrapper']}>\n {shouldShowFadeStart() && (\n <div className={classNames(styles['tab-list__start-wrapper'])}>\n <TabChevron\n onClick={() => scrollInList('left')}\n direction=\"left\"\n backgroundColor={`${getBackgroundColor(onColor)}`}\n ariaLabel={ariaLabelLeftButton}\n />\n <div\n className={classNames(styles['tab-list__fade-start'])}\n style={{\n backgroundColor: `${getBackgroundColor(onColor)}`,\n }}\n ></div>\n </div>\n )}\n <ul className={tablistClasses} ref={listRef} role=\"tablist\" aria-orientation=\"horizontal\">\n {React.Children.map(children, (child, index) => {\n if (isComponent<TabProps>(child, Tab)) {\n return (\n <TabItem\n tabRefs={tabRefs}\n tabListVisible={tabListVisible}\n key={child.props.title}\n index={index}\n selectedTab={selectedTab}\n onTabListClick={onTabListClick}\n tabProps={child.props}\n color={color}\n />\n );\n }\n return null;\n })}\n </ul>\n {shouldShowFadeEnd() && (\n <div className={classNames(styles['tab-list__end-wrapper'])}>\n <div\n className={classNames(styles['tab-list__fade-end'])}\n style={{\n backgroundColor: `${getBackgroundColor(onColor)}`,\n }}\n ></div>\n <TabChevron\n onClick={() => scrollInList('right')}\n direction=\"right\"\n backgroundColor={`${getBackgroundColor(onColor)}`}\n ariaLabel={ariaLabelRightButton}\n />\n </div>\n )}\n <div className={classNames(styles['tab-list__border'])}></div>\n </div>\n );\n};\n\nexport default TabList;\n","import TabList from './TabList';\nexport * from './TabList';\nexport default TabList;\n"],"mappings":";;;;;;;;;;;;;;AAgBA,IAAMA,OAA0B,UAAS;AACvC,QAAO,oBAAA,UAAA,EAAA,UAAG,MAAM,YAAY,MAAA,CAAQ;;AAGtC,IAAA,cAAe;ACJf,IAAMC,cAAyC,EAAE,WAAW,SAAS,iBAAiB,gBAAgB;CACpG,MAAM,YAAY,MAAM,OAA0B,KAAK;CACvD,MAAM,EAAE,cAAc,iBAA2C,UAAU;AAE3E,QACE,oBAAC,UAAA;EACC,MAAK;EACL,KAAK;EACL,WAAW,OAAO;EACT;EACT,cAAY;EACZ,OAAO,EAAmB,iBAAiB;YAE1C,cAAc,SACb,oBAAC,cAAA;GAAK,OAAO;GAAmD;GAAW,SAAS;GAA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;KAAU,CAAC;;;;AAK1E,QACE,qBAAC,OAAA;EAAI,WAAW,OAAO;;GACpB,qBAAqB,IACpB,qBAAC,OAAA;IAAI,WAAW,GAAW,OAAO,2BAA2B;eAC3D,oBAAC,oBAAA;KACC,eAAe,aAAa,OAAO;KACnC,WAAU;KACV,iBAAiB,GAAG,mBAAmB,QAAQ;KAC/C,WAAW;MACX,EACF,oBAAC,OAAA;KACC,WAAW,GAAW,OAAO,wBAAwB;KACrD,OAAO,EACL,iBAAiB,GAAG,mBAAmB,QAAQ,IAChD;MACI,CAAA;KACH;GAER,oBAAC,MAAA;IAAG,WAAW;IAAgB,KAAK;IAAS,MAAK;IAAU,oBAAiB;cAC1E,MAAM,SAAS,IAAI,WAAW,OAAO,UAAU;AAC9C,SAAI,YAAsB,OAAO,YAAI,CACnC,QACE,oBAAC,iBAAA;MACU;MACO;MAET;MACM;MACG;MAChB,UAAU,MAAM;MACT;QALF,MAAM,MAAM,MAMjB;AAGN,YAAO;MACP;KACC;GACJ,mBAAmB,IAClB,qBAAC,OAAA;IAAI,WAAW,GAAW,OAAO,yBAAyB;eACzD,oBAAC,OAAA;KACC,WAAW,GAAW,OAAO,sBAAsB;KACnD,OAAO,EACL,iBAAiB,GAAG,mBAAmB,QAAQ,IAChD;MACI,EACP,oBAAC,oBAAA;KACC,eAAe,aAAa,QAAQ;KACpC,WAAU;KACV,iBAAiB,GAAG,mBAAmB,QAAQ;KAC/C,WAAW;MACX,CAAA;KACE;GAER,oBAAC,OAAA,EAAI,WAAW,GAAW,OAAO,oBAAoB,EAAA,CAAQ;;GAC1D;;AChIV,IAAA,oBDoIe"}
1
+ {"version":3,"file":"TabList.js","names":["Tab: React.FC<TabProps>","TabChevron: React.FC<TabChevronProps>","TabItem: React.FC<TabItemProps>","TabList: React.FC<TabListProps>"],"sources":["../src/components/Tabs/Tab.tsx","../src/components/Tabs/TabList/TabChevron.tsx","../src/components/Tabs/TabList/TabItem.tsx","../src/components/Tabs/TabList/TabList.tsx","../src/components/Tabs/TabList/index.ts"],"sourcesContent":["import type { SvgIcon } from '../Icon';\nimport type { IconName } from '../Icons/IconNames';\n\nexport interface TabProps {\n /** Sets the tab panel content */\n children?: React.ReactNode;\n /** Optional icon on the tab */\n icon?: SvgIcon | IconName;\n /** Called when tab is selected */\n onTabClick?: (index: number) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Title on the tab */\n title?: string;\n}\n\nconst Tab: React.FC<TabProps> = props => {\n return <>{props.children ?? null}</>;\n};\n\nexport default Tab;\n","import React from 'react';\n\nimport { usePseudoClasses } from '../../../hooks/usePseudoClasses';\nimport Icon, { IconSize } from '../../Icon';\nimport ChevronLeft from '../../Icons/ChevronLeft';\nimport ChevronRight from '../../Icons/ChevronRight';\n\nimport styles from './styles.module.scss';\n\ninterface TabChevronProps {\n direction: 'left' | 'right';\n onClick: () => void;\n backgroundColor?: string;\n ariaLabel?: string;\n}\n\nconst TabChevron: React.FC<TabChevronProps> = ({ direction, onClick, backgroundColor, ariaLabel }) => {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const { isHovered } = usePseudoClasses<HTMLButtonElement | null>(buttonRef);\n\n return (\n <button\n type=\"button\"\n ref={buttonRef}\n className={styles['tab-list__button']}\n onClick={onClick}\n aria-label={ariaLabel}\n style={{ backgroundColor: backgroundColor }}\n >\n {direction === 'left' ? (\n <Icon color={'var(--color-action-graphics-onlight)'} isHovered={isHovered} svgIcon={ChevronLeft} size={IconSize.XSmall} />\n ) : (\n <Icon color={'var(--color-action-graphics-onlight)'} isHovered={isHovered} svgIcon={ChevronRight} size={IconSize.XSmall} />\n )}\n </button>\n );\n};\n\nexport default TabChevron;\n","import { useEffect, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { IconName } from '../../Icons/IconNames';\nimport type { TabProps } from '../Tab';\nimport type { TabsColors } from '../Tabs';\n\nimport { palette } from '../../../theme/palette';\nimport Icon, { IconSize } from '../../Icon';\nimport LazyIcon from '../../LazyIcon';\n\nimport styles from './styles.module.scss';\n\ninterface TabItemProps {\n tabProps: TabProps;\n index: number;\n color: TabsColors;\n selectedTab: number;\n tabRefs: React.RefObject<React.RefObject<HTMLButtonElement | null>[] | null | undefined>;\n tabListVisible: boolean;\n onTabListClick: (index: number) => void;\n}\n\nconst TabItem: React.FC<TabItemProps> = props => {\n const isSelected = props.index === props.selectedTab;\n const { title, onTabClick, icon, testId } = props.tabProps;\n const handleClick = (): void => {\n if (onTabClick) onTabClick(props.index);\n props.onTabListClick(props.index);\n scrollToTab(props.index);\n };\n const tabButtonClasses = classNames(styles['tab-list__tab'], styles[`tab-list__tab--${props.color}`], {\n [styles['tab-list__tab--selected']]: isSelected,\n [styles['tab-list__tab--not-selected']]: !isSelected,\n });\n\n const currentRef = props.tabRefs.current && props.tabRefs.current[props.index];\n\n const scrollToTab = (index: number): void => {\n const currentRef = props.tabRefs.current && props.tabRefs.current[index];\n\n if (currentRef?.current?.scrollIntoView) {\n currentRef?.current?.scrollIntoView({ behavior: 'smooth', inline: 'nearest', block: 'nearest' });\n }\n };\n\n const itemRef = useRef<HTMLLIElement>(null);\n\n useEffect(() => {\n if (isSelected && props.tabListVisible) {\n scrollToTab(props.index);\n }\n }, [isSelected]);\n\n return (\n <li role=\"presentation\" ref={itemRef}>\n <button\n role=\"tab\"\n aria-selected={isSelected}\n onClick={handleClick}\n className={tabButtonClasses}\n data-testid={testId}\n ref={currentRef as React.RefObject<HTMLButtonElement>}\n >\n <span className={styles['tab-list__tab__title-and-icon']}>\n {icon &&\n (typeof icon === 'string' ? (\n <LazyIcon\n iconName={icon as IconName}\n size={IconSize.XSmall}\n color={isSelected ? palette[`black`] : palette['blueberry500']}\n />\n ) : (\n <Icon svgIcon={icon} size={IconSize.XSmall} color={isSelected ? palette[`black`] : palette['blueberry500']} />\n ))}\n {title}\n </span>\n </button>\n </li>\n );\n};\n\nexport default TabItem;\n","import React, { useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { TabProps } from '../Tab';\nimport type { TabsColors, TabsOnColor } from '../Tabs';\n\nimport TabChevron from './TabChevron';\nimport TabItem from './TabItem';\nimport { useIsVisible } from '../../../hooks/useIsVisible';\nimport { useRovingFocus } from '../../../hooks/useRovingFocus';\nimport { isComponent } from '../../../utils/component';\nimport Tab from '../Tab';\n\nimport styles from './styles.module.scss';\ninterface TabListProps {\n children: React.ReactNode;\n onTabListClick: (index: number) => void;\n selectedTab: number;\n color: TabsColors;\n onColor: TabsOnColor;\n ariaLabelRightButton?: string;\n ariaLabelLeftButton?: string;\n}\n\nconst TabList: React.FC<TabListProps> = props => {\n const { selectedTab, onTabListClick, children, color, onColor, ariaLabelLeftButton, ariaLabelRightButton } = props;\n\n const listRef = useRef<HTMLUListElement>(null);\n\n const tabRefs = useRef(React.Children.map(children, () => React.createRef<HTMLButtonElement>()) || []);\n useRovingFocus(onTabListClick, tabRefs, listRef, true);\n\n const tablistClasses = classNames(styles['tab-list'], styles[`tab-list--${onColor}`]);\n\n const getBackgroundColor = (onColor: TabsOnColor): string => {\n switch (onColor) {\n case 'onwhite':\n return 'var(--color-base-background-white)';\n case 'onblueberry':\n return 'var(--color-base-background-blueberry)';\n case 'onneutral':\n return 'var(--color-base-background-neutral)';\n }\n };\n const firstTab = tabRefs.current && tabRefs.current[0];\n const lastTab = tabRefs.current && tabRefs.current[tabRefs.current.length - 1];\n\n const firstTabVisible = useIsVisible(firstTab);\n const lastTabVisible = useIsVisible(lastTab);\n const tabListVisible = useIsVisible(listRef);\n\n const shouldShowFadeStart = (): boolean => {\n return !firstTabVisible;\n };\n\n const shouldShowFadeEnd = (): boolean => {\n return !lastTabVisible;\n };\n\n const scrollInList = (direction: string): void => {\n if (listRef.current) {\n const listWidth = listRef.current.clientWidth;\n const listScrollLeft = listRef.current.scrollLeft;\n const maxScrollLeft = listRef.current.scrollWidth - listWidth;\n\n if (direction === 'right' && !lastTabVisible) {\n const scrollAmount = Math.min(listWidth / 2, maxScrollLeft - listScrollLeft);\n listRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' });\n } else if (direction === 'left' && !firstTabVisible) {\n const scrollAmount = -Math.min(listWidth / 2, listScrollLeft);\n listRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' });\n }\n }\n };\n\n return (\n <div className={styles['tab-list-wrapper']}>\n {shouldShowFadeStart() && (\n <div className={classNames(styles['tab-list__start-wrapper'])}>\n <TabChevron\n onClick={() => scrollInList('left')}\n direction=\"left\"\n backgroundColor={`${getBackgroundColor(onColor)}`}\n ariaLabel={ariaLabelLeftButton}\n />\n <div\n className={classNames(styles['tab-list__fade-start'])}\n style={{\n backgroundColor: `${getBackgroundColor(onColor)}`,\n }}\n ></div>\n </div>\n )}\n <ul className={tablistClasses} ref={listRef} role=\"tablist\" aria-orientation=\"horizontal\">\n {React.Children.map(children, (child, index) => {\n if (isComponent<TabProps>(child, Tab)) {\n return (\n <TabItem\n tabRefs={tabRefs}\n tabListVisible={tabListVisible}\n key={child.props.title}\n index={index}\n selectedTab={selectedTab}\n onTabListClick={onTabListClick}\n tabProps={child.props}\n color={color}\n />\n );\n }\n return null;\n })}\n </ul>\n {shouldShowFadeEnd() && (\n <div className={classNames(styles['tab-list__end-wrapper'])}>\n <div\n className={classNames(styles['tab-list__fade-end'])}\n style={{\n backgroundColor: `${getBackgroundColor(onColor)}`,\n }}\n ></div>\n <TabChevron\n onClick={() => scrollInList('right')}\n direction=\"right\"\n backgroundColor={`${getBackgroundColor(onColor)}`}\n ariaLabel={ariaLabelRightButton}\n />\n </div>\n )}\n <div className={classNames(styles['tab-list__border'])}></div>\n </div>\n );\n};\n\nexport default TabList;\n","import TabList from './TabList';\nexport * from './TabList';\nexport default TabList;\n"],"mappings":";;;;;;;;;;;;;;AAgBA,IAAMA,OAA0B,UAAS;AACvC,QAAO,oBAAA,UAAA,EAAA,UAAG,MAAM,YAAY,MAAA,CAAQ;;AAGtC,IAAA,cAAe;ACJf,IAAMC,cAAyC,EAAE,WAAW,SAAS,iBAAiB,gBAAgB;CACpG,MAAM,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A,oBDoIe"}
package/lib/TabPanel.js CHANGED
@@ -1,11 +1,11 @@
1
- import cn from "classnames";
1
+ import classNames from "classnames";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import styles from "./components/Tabs/TabPanel/styles.module.scss";
4
4
  var TabPanel = (props) => {
5
5
  const { children, color = "white", isFirst = false, style, ref } = props;
6
6
  return /* @__PURE__ */ jsx("div", {
7
7
  ref,
8
- className: cn(styles["tab-panel"], styles[`tab-panel--${color}`], { [styles["tab-panel--first"]]: isFirst }),
8
+ className: classNames(styles["tab-panel"], styles[`tab-panel--${color}`], { [styles["tab-panel--first"]]: isFirst }),
9
9
  style,
10
10
  children: /* @__PURE__ */ jsx("div", { children })
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TabPanel.js","names":["TabPanel: React.FC<TabPanelProps>"],"sources":["../src/components/Tabs/TabPanel/TabPanel.tsx","../src/components/Tabs/TabPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { TabsColors } from '../Tabs';\n\nimport styles from './styles.module.scss';\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n color?: TabsColors;\n isFirst?: boolean;\n style?: React.CSSProperties;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLDivElement | null>;\n}\n\nconst TabPanel: React.FC<TabPanelProps> = props => {\n const { children, color = 'white', isFirst = false, style, ref } = props;\n\n const tabPanelClasses = classNames(styles['tab-panel'], styles[`tab-panel--${color}`], {\n [styles['tab-panel--first']]: isFirst,\n });\n\n return (\n <div ref={ref} className={tabPanelClasses} style={style}>\n <div>{children}</div>\n </div>\n );\n};\n\nTabPanel.displayName = 'TabPanel';\nexport default TabPanel;\n","import TabPanel from './TabPanel';\nexport * from './TabPanel';\nexport default TabPanel;\n"],"mappings":";;;AAeA,IAAMA,YAAoC,UAAS;CACjD,MAAM,EAAE,UAAU,QAAQ,SAAS,UAAU,OAAO,OAAO,QAAQ;AAMnE,QACE,oBAAC,OAAA;EAAS;EAAK,WALO,GAAW,OAAO,cAAc,OAAO,cAAc,UAAU,GACpF,OAAO,sBAAsB,SAC/B,CAAC;EAGkD;YAChD,oBAAC,OAAA,EAAK,UAAA,CAAe;GACjB;;AAIV,SAAS,cAAc;AC3BvB,IAAA,qBD4Be"}
1
+ {"version":3,"file":"TabPanel.js","names":["TabPanel: React.FC<TabPanelProps>"],"sources":["../src/components/Tabs/TabPanel/TabPanel.tsx","../src/components/Tabs/TabPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { TabsColors } from '../Tabs';\n\nimport styles from './styles.module.scss';\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n color?: TabsColors;\n isFirst?: boolean;\n style?: React.CSSProperties;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLDivElement | null>;\n}\n\nconst TabPanel: React.FC<TabPanelProps> = props => {\n const { children, color = 'white', isFirst = false, style, ref } = props;\n\n const tabPanelClasses = classNames(styles['tab-panel'], styles[`tab-panel--${color}`], {\n [styles['tab-panel--first']]: isFirst,\n });\n\n return (\n <div ref={ref} className={tabPanelClasses} style={style}>\n <div>{children}</div>\n </div>\n );\n};\n\nTabPanel.displayName = 'TabPanel';\nexport default TabPanel;\n","import TabPanel from './TabPanel';\nexport * from './TabPanel';\nexport default TabPanel;\n"],"mappings":";;;AAeA,IAAMA,YAAoC,UAAS;CACjD,MAAM,EAAE,UAAU,QAAQ,SAAS,UAAU,OAAO,OAAO,QAAQ;AAMnE,QACE,oBAAC,OAAA;EAAS;EAAK,WALO,WAAW,OAAO,cAAc,OAAO,cAAc,UAAU,GACpF,OAAO,sBAAsB,SAC/B,CAAC;EAGkD;YAChD,oBAAC,OAAA,EAAK,UAAA,CAAe;GACjB;;AAIV,SAAS,cAAc;AC3BvB,IAAA,qBD4Be"}
package/lib/TableBody.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { n as ModeType } from "./constants4.js";
2
2
  import { i as mapChildrenWithMode } from "./utils5.js";
3
- import cn from "classnames";
3
+ import classNames from "classnames";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import styles from "./components/Table/styles.module.scss";
5
+ import tableStyles from "./components/Table/styles.module.scss";
6
6
  const TableBody = ({ className, children, mode = ModeType.normal, ...rest }) => {
7
7
  return /* @__PURE__ */ jsx("tbody", {
8
- className: cn(styles["table-body"], className),
8
+ className: classNames(tableStyles["table-body"], className),
9
9
  ...rest,
10
10
  children: mapChildrenWithMode(children, mode)
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.js","names":["TableBody: React.FC<Props>"],"sources":["../src/components/Table/TableBody/TableBody.tsx","../src/components/Table/TableBody/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\nimport { mapChildrenWithMode } from '../utils';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'tbody'>, 'style'> {\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table body. Use TableRows */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableBody: React.FC<Props> = ({ className, children, mode = ModeType.normal, ...rest }) => {\n const tableBodyClasses = classNames(tableStyles['table-body'], className);\n return (\n <tbody className={tableBodyClasses} {...rest}>\n {mapChildrenWithMode(children, mode)}\n </tbody>\n );\n};\n\nexport default TableBody;\n","import TableBody from './TableBody';\nexport * from './TableBody';\nexport default TableBody;\n"],"mappings":";;;;;AAeA,MAAaA,aAA8B,EAAE,WAAW,UAAU,OAAO,SAAS,QAAQ,GAAG,WAAW;AAEtG,QACE,oBAAC,SAAA;EAAM,WAFgB,GAAW,OAAY,eAAe,UAAU;EAEnC,GAAI;YACrC,oBAAoB,UAAU,KAAK;GAC9B;;AClBZ,IAAA,sBDsBe"}
1
+ {"version":3,"file":"TableBody.js","names":["TableBody: React.FC<Props>"],"sources":["../src/components/Table/TableBody/TableBody.tsx","../src/components/Table/TableBody/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\nimport { mapChildrenWithMode } from '../utils';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'tbody'>, 'style'> {\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table body. Use TableRows */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableBody: React.FC<Props> = ({ className, children, mode = ModeType.normal, ...rest }) => {\n const tableBodyClasses = classNames(tableStyles['table-body'], className);\n return (\n <tbody className={tableBodyClasses} {...rest}>\n {mapChildrenWithMode(children, mode)}\n </tbody>\n );\n};\n\nexport default TableBody;\n","import TableBody from './TableBody';\nexport * from './TableBody';\nexport default TableBody;\n"],"mappings":";;;;;AAeA,MAAaA,aAA8B,EAAE,WAAW,UAAU,OAAO,SAAS,QAAQ,GAAG,WAAW;AAEtG,QACE,oBAAC,SAAA;EAAM,WAFgB,WAAW,YAAY,eAAe,UAAU;EAEnC,GAAI;YACrC,oBAAoB,UAAU,KAAK;GAC9B;;AClBZ,IAAA,sBDsBe"}
package/lib/TableCell.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as TextAlign, n as ModeType } from "./constants4.js";
2
- import cn from "classnames";
2
+ import classNames from "classnames";
3
3
  import { jsx } from "react/jsx-runtime";
4
- import styles from "./components/Table/styles.module.scss";
4
+ import tableStyles from "./components/Table/styles.module.scss";
5
5
  const TableCell = ({ nowrap = false, textAlign = TextAlign.left, dataLabel, children, className, testId, mode = ModeType.normal, ...rest }) => {
6
6
  return /* @__PURE__ */ jsx("td", {
7
- className: cn(styles["table__cell"], { [styles["table__cell--compact"]]: mode === ModeType.compact }, { [styles["table__cell--nowrap"]]: nowrap }, { [styles["table__cell--center"]]: textAlign === "center" }, { [styles["table__cell--right"]]: textAlign === "right" }, className),
7
+ className: classNames(tableStyles["table__cell"], { [tableStyles["table__cell--compact"]]: mode === ModeType.compact }, { [tableStyles["table__cell--nowrap"]]: nowrap }, { [tableStyles["table__cell--center"]]: textAlign === "center" }, { [tableStyles["table__cell--right"]]: textAlign === "right" }, className),
8
8
  "data-label": dataLabel,
9
9
  "data-testid": testId,
10
10
  ...rest,
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.js","names":["TableCell: React.FC<Props>"],"sources":["../src/components/Table/TableCell/TableCell.tsx","../src/components/Table/TableCell/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { ModeType, TextAlign } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'td'>, 'style'> {\n /** Label used for small viewport block */\n dataLabel?: string;\n /** text align in cell */\n textAlign?: TextAlign;\n /** nowrap for white space */\n nowrap?: boolean;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table cell */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** For test purposes */\n testId?: string;\n}\n\nexport const TableCell: React.FC<Props> = ({\n nowrap = false,\n textAlign = TextAlign.left,\n dataLabel,\n children,\n className,\n testId,\n mode = ModeType.normal,\n ...rest\n}) => {\n const tableCellClass = classNames(\n tableStyles['table__cell'],\n { [tableStyles['table__cell--compact']]: mode === ModeType.compact },\n { [tableStyles['table__cell--nowrap']]: nowrap },\n { [tableStyles['table__cell--center']]: textAlign === 'center' },\n { [tableStyles['table__cell--right']]: textAlign === 'right' },\n className\n );\n\n return (\n <td className={tableCellClass} data-label={dataLabel} data-testid={testId} {...rest}>\n {children}\n </td>\n );\n};\n\nexport default TableCell;\n","import TableCell from './TableCell';\nexport * from './TableCell';\nexport default TableCell;\n"],"mappings":";;;;AAsBA,MAAaA,aAA8B,EACzC,SAAS,OACT,YAAY,UAAU,MACtB,WACA,UACA,WACA,QACA,OAAO,SAAS,QAChB,GAAG,WACC;AAUJ,QACE,oBAAC,MAAA;EAAG,WAViB,GACrB,OAAY,gBACZ,GAAG,OAAY,0BAA0B,SAAS,SAAS,SAAS,EACpE,GAAG,OAAY,yBAAyB,QAAQ,EAChD,GAAG,OAAY,yBAAyB,cAAc,UAAU,EAChE,GAAG,OAAY,wBAAwB,cAAc,SAAS,EAC9D,UACD;EAGgC,cAAY;EAAW,eAAa;EAAQ,GAAI;EAC5E;GACE;;AC1CT,IAAA,sBD8Ce"}
1
+ {"version":3,"file":"TableCell.js","names":["TableCell: React.FC<Props>"],"sources":["../src/components/Table/TableCell/TableCell.tsx","../src/components/Table/TableCell/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { ModeType, TextAlign } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'td'>, 'style'> {\n /** Label used for small viewport block */\n dataLabel?: string;\n /** text align in cell */\n textAlign?: TextAlign;\n /** nowrap for white space */\n nowrap?: boolean;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table cell */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** For test purposes */\n testId?: string;\n}\n\nexport const TableCell: React.FC<Props> = ({\n nowrap = false,\n textAlign = TextAlign.left,\n dataLabel,\n children,\n className,\n testId,\n mode = ModeType.normal,\n ...rest\n}) => {\n const tableCellClass = classNames(\n tableStyles['table__cell'],\n { [tableStyles['table__cell--compact']]: mode === ModeType.compact },\n { [tableStyles['table__cell--nowrap']]: nowrap },\n { [tableStyles['table__cell--center']]: textAlign === 'center' },\n { [tableStyles['table__cell--right']]: textAlign === 'right' },\n className\n );\n\n return (\n <td className={tableCellClass} data-label={dataLabel} data-testid={testId} {...rest}>\n {children}\n </td>\n );\n};\n\nexport default TableCell;\n","import TableCell from './TableCell';\nexport * from './TableCell';\nexport default TableCell;\n"],"mappings":";;;;AAsBA,MAAaA,aAA8B,EACzC,SAAS,OACT,YAAY,UAAU,MACtB,WACA,UACA,WACA,QACA,OAAO,SAAS,QAChB,GAAG,WACC;AAUJ,QACE,oBAAC,MAAA;EAAG,WAViB,WACrB,YAAY,gBACZ,GAAG,YAAY,0BAA0B,SAAS,SAAS,SAAS,EACpE,GAAG,YAAY,yBAAyB,QAAQ,EAChD,GAAG,YAAY,yBAAyB,cAAc,UAAU,EAChE,GAAG,YAAY,wBAAwB,cAAc,SAAS,EAC9D,UACD;EAGgC,cAAY;EAAW,eAAa;EAAQ,GAAI;EAC5E;GACE;;AC1CT,IAAA,sBD8Ce"}
@@ -2,19 +2,19 @@ import { t as Icon_default } from "./Icon.js";
2
2
  import { t as Button_default } from "./Button.js";
3
3
  import { t as ChevronUp_default } from "./ChevronUp.js";
4
4
  import { n as ModeType } from "./constants4.js";
5
- import cn from "classnames";
5
+ import classNames from "classnames";
6
6
  import React from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import styles from "./components/Table/styles.module.scss";
8
+ import tableStyles from "./components/Table/styles.module.scss";
9
9
  const TableExpandedRow = ({ numberOfColumns, expanded, hideDetailsText, toggleClick, children, className, mode = ModeType.normal, id }) => {
10
10
  return /* @__PURE__ */ jsx("tr", {
11
- className: cn(styles["table__expanded-row"], { [styles["table__expanded-row--expanded"]]: expanded }, className),
11
+ className: classNames(tableStyles["table__expanded-row"], { [tableStyles["table__expanded-row--expanded"]]: expanded }, className),
12
12
  id,
13
13
  children: /* @__PURE__ */ jsx("td", {
14
14
  colSpan: numberOfColumns,
15
- className: cn(styles["table__cell"], className, { [styles["table__cell--compact"]]: mode === ModeType.compact }),
15
+ className: classNames(tableStyles["table__cell"], className, { [tableStyles["table__cell--compact"]]: mode === ModeType.compact }),
16
16
  children: /* @__PURE__ */ jsxs("div", {
17
- className: cn(styles["table__expanded-row-container"]),
17
+ className: classNames(tableStyles["table__expanded-row-container"]),
18
18
  children: [React.Children.map(children, (child) => React.isValidElement(child) && React.cloneElement(child)), /* @__PURE__ */ jsxs(Button_default, {
19
19
  variant: "borderless",
20
20
  onClick: toggleClick,
@@ -1 +1 @@
1
- {"version":3,"file":"TableExpandedRow.js","names":[],"sources":["../src/components/Table/TableExpandedRow/TableExpandedRow.tsx","../src/components/Table/TableExpandedRow/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props {\n /** Row is expanded. */\n expanded: boolean;\n /** Number of columns in table. */\n numberOfColumns: number;\n /** Text for hide button. */\n hideDetailsText: string;\n /** When hide button inside expanded row is clicked. */\n toggleClick: () => void;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the expanded row. */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Row id. For use with aria-controls. */\n id?: string;\n}\n\nexport const TableExpandedRow = ({\n numberOfColumns,\n expanded,\n hideDetailsText,\n toggleClick,\n children,\n className,\n mode = ModeType.normal,\n id,\n}: Props): React.JSX.Element => {\n const tableRowClass = classNames(\n tableStyles['table__expanded-row'],\n { [tableStyles['table__expanded-row--expanded']]: expanded },\n className\n );\n const tableCellClass = classNames(tableStyles['table__cell'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n\n const containerClass = classNames(tableStyles['table__expanded-row-container']);\n\n return (\n <tr className={tableRowClass} id={id}>\n <td colSpan={numberOfColumns} className={tableCellClass}>\n <div className={containerClass}>\n {React.Children.map(children, child => React.isValidElement(child) && React.cloneElement(child))}\n <Button variant={'borderless'} onClick={toggleClick} aria-expanded={expanded} tabIndex={expanded ? 0 : -1}>\n {hideDetailsText}\n <Icon svgIcon={ChevronUp} />\n </Button>\n </div>\n </td>\n </tr>\n );\n};\n\nexport default TableExpandedRow;\n","import TableExpandedRow from './TableExpandedRow';\nexport * from './TableExpandedRow';\nexport default TableExpandedRow;\n"],"mappings":";;;;;;;;AA6BA,MAAa,oBAAoB,EAC/B,iBACA,UACA,iBACA,aACA,UACA,WACA,OAAO,SAAS,QAChB,SAC8B;AAY9B,QACE,oBAAC,MAAA;EAAG,WAZgB,GACpB,OAAY,wBACZ,GAAG,OAAY,mCAAmC,UAAU,EAC5D,UACD;EAQmC;YAChC,oBAAC,MAAA;GAAG,SAAS;GAAiB,WARX,GAAW,OAAY,gBAAgB,WAAW,GACtE,OAAY,0BAA0B,SAAS,SAAS,SAC1D,CAAC;aAOI,qBAAC,OAAA;IAAI,WALY,GAAW,OAAY,iCAAiC;eAMtE,MAAM,SAAS,IAAI,WAAU,UAAS,MAAM,eAAe,MAAM,IAAI,MAAM,aAAa,MAAM,CAAC,EAChG,qBAAC,gBAAA;KAAO,SAAS;KAAc,SAAS;KAAa,iBAAe;KAAU,UAAU,WAAW,IAAI;gBACpG,iBACD,oBAAC,cAAA,EAAK,SAAS,mBAAA,CAAa,CAAA;MACrB,CAAA;KACL;IACH;GACF;;AC3DT,IAAA,6BD+De"}
1
+ {"version":3,"file":"TableExpandedRow.js","names":[],"sources":["../src/components/Table/TableExpandedRow/TableExpandedRow.tsx","../src/components/Table/TableExpandedRow/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props {\n /** Row is expanded. */\n expanded: boolean;\n /** Number of columns in table. */\n numberOfColumns: number;\n /** Text for hide button. */\n hideDetailsText: string;\n /** When hide button inside expanded row is clicked. */\n toggleClick: () => void;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the expanded row. */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Row id. For use with aria-controls. */\n id?: string;\n}\n\nexport const TableExpandedRow = ({\n numberOfColumns,\n expanded,\n hideDetailsText,\n toggleClick,\n children,\n className,\n mode = ModeType.normal,\n id,\n}: Props): React.JSX.Element => {\n const tableRowClass = classNames(\n tableStyles['table__expanded-row'],\n { [tableStyles['table__expanded-row--expanded']]: expanded },\n className\n );\n const tableCellClass = classNames(tableStyles['table__cell'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n\n const containerClass = classNames(tableStyles['table__expanded-row-container']);\n\n return (\n <tr className={tableRowClass} id={id}>\n <td colSpan={numberOfColumns} className={tableCellClass}>\n <div className={containerClass}>\n {React.Children.map(children, child => React.isValidElement(child) && React.cloneElement(child))}\n <Button variant={'borderless'} onClick={toggleClick} aria-expanded={expanded} tabIndex={expanded ? 0 : -1}>\n {hideDetailsText}\n <Icon svgIcon={ChevronUp} />\n </Button>\n </div>\n </td>\n </tr>\n );\n};\n\nexport default TableExpandedRow;\n","import TableExpandedRow from './TableExpandedRow';\nexport * from './TableExpandedRow';\nexport default TableExpandedRow;\n"],"mappings":";;;;;;;;AA6BA,MAAa,oBAAoB,EAC/B,iBACA,UACA,iBACA,aACA,UACA,WACA,OAAO,SAAS,QAChB,SAC8B;AAY9B,QACE,oBAAC,MAAA;EAAG,WAZgB,WACpB,YAAY,wBACZ,GAAG,YAAY,mCAAmC,UAAU,EAC5D,UACD;EAQmC;YAChC,oBAAC,MAAA;GAAG,SAAS;GAAiB,WARX,WAAW,YAAY,gBAAgB,WAAW,GACtE,YAAY,0BAA0B,SAAS,SAAS,SAC1D,CAAC;aAOI,qBAAC,OAAA;IAAI,WALY,WAAW,YAAY,iCAAiC;eAMtE,MAAM,SAAS,IAAI,WAAU,UAAS,MAAM,eAAe,MAAM,IAAI,MAAM,aAAa,MAAM,CAAC,EAChG,qBAAC,gBAAA;KAAO,SAAS;KAAc,SAAS;KAAa,iBAAe;KAAU,UAAU,WAAW,IAAI;gBACpG,iBACD,oBAAC,cAAA,EAAK,SAAS,mBAAA,CAAa,CAAA;MACrB,CAAA;KACL;IACH;GACF;;AC3DT,IAAA,6BD+De"}
@@ -3,11 +3,11 @@ import { t as Button_default } from "./Button.js";
3
3
  import { t as ChevronDown_default } from "./ChevronDown.js";
4
4
  import { t as ChevronUp_default } from "./ChevronUp.js";
5
5
  import { n as ModeType } from "./constants4.js";
6
- import cn from "classnames";
6
+ import classNames from "classnames";
7
7
  import { jsx } from "react/jsx-runtime";
8
- import styles from "./components/Table/styles.module.scss";
8
+ import tableStyles from "./components/Table/styles.module.scss";
9
9
  const TableExpanderCell = ({ expandableRowId, hideDetailsText, showDetailsText, expanded, className, mode = ModeType.normal }) => {
10
- const tableCellClass = cn(styles["table__cell"], styles["table__cell-expander"], className, { [styles["table__cell--compact"]]: mode === ModeType.compact });
10
+ const tableCellClass = classNames(tableStyles["table__cell"], tableStyles["table__cell-expander"], className, { [tableStyles["table__cell--compact"]]: mode === ModeType.compact });
11
11
  const icon = expanded ? ChevronUp_default : ChevronDown_default;
12
12
  return /* @__PURE__ */ jsx("td", {
13
13
  className: tableCellClass,
@@ -1 +1 @@
1
- {"version":3,"file":"TableExpanderCell.js","names":[],"sources":["../src/components/Table/TableExpanderCell/TableExpanderCell.tsx","../src/components/Table/TableExpanderCell/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronDown from '../../Icons/ChevronDown';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props {\n /** Adds custom classes to the element. */\n className?: string;\n /** Row is expanded. */\n expanded: boolean;\n /** Id for expanded row. */\n expandableRowId: string;\n /** Text for hide button used for aria label. */\n hideDetailsText: string;\n /** Text for show button used for aria label. */\n showDetailsText: string;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableExpanderCell = ({\n expandableRowId,\n hideDetailsText,\n showDetailsText,\n expanded,\n className,\n mode = ModeType.normal,\n}: Props): React.JSX.Element => {\n const tableCellClass = classNames(tableStyles['table__cell'], tableStyles['table__cell-expander'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n const icon = expanded ? ChevronUp : ChevronDown;\n\n return (\n <td className={tableCellClass}>\n <Button\n variant=\"borderless\"\n aria-expanded={expanded}\n aria-controls={expandableRowId}\n ariaLabel={expanded ? hideDetailsText : showDetailsText}\n >\n <Icon svgIcon={icon} />\n </Button>\n </td>\n );\n};\n\nexport default TableExpanderCell;\n","import TableExpanderCell from './TableExpanderCell';\nexport * from './TableExpanderCell';\nexport default TableExpanderCell;\n"],"mappings":";;;;;;;;AAwBA,MAAa,qBAAqB,EAChC,iBACA,iBACA,iBACA,UACA,WACA,OAAO,SAAS,aACc;CAC9B,MAAM,iBAAiB,GAAW,OAAY,gBAAgB,OAAY,yBAAyB,WAAW,GAC3G,OAAY,0BAA0B,SAAS,SAAS,SAC1D,CAAC;CACF,MAAM,OAAO,WAAW,oBAAY;AAEpC,QACE,oBAAC,MAAA;EAAG,WAAW;YACb,oBAAC,gBAAA;GACC,SAAQ;GACR,iBAAe;GACf,iBAAe;GACf,WAAW,WAAW,kBAAkB;aAExC,oBAAC,cAAA,EAAK,SAAS,MAAA,CAAQ;IAChB;GACN;;AC7CT,IAAA,8BDiDe"}
1
+ {"version":3,"file":"TableExpanderCell.js","names":[],"sources":["../src/components/Table/TableExpanderCell/TableExpanderCell.tsx","../src/components/Table/TableExpanderCell/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronDown from '../../Icons/ChevronDown';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport { ModeType } from '../constants';\nimport tableStyles from '../styles.module.scss';\n\nexport interface Props {\n /** Adds custom classes to the element. */\n className?: string;\n /** Row is expanded. */\n expanded: boolean;\n /** Id for expanded row. */\n expandableRowId: string;\n /** Text for hide button used for aria label. */\n hideDetailsText: string;\n /** Text for show button used for aria label. */\n showDetailsText: string;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableExpanderCell = ({\n expandableRowId,\n hideDetailsText,\n showDetailsText,\n expanded,\n className,\n mode = ModeType.normal,\n}: Props): React.JSX.Element => {\n const tableCellClass = classNames(tableStyles['table__cell'], tableStyles['table__cell-expander'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n const icon = expanded ? ChevronUp : ChevronDown;\n\n return (\n <td className={tableCellClass}>\n <Button\n variant=\"borderless\"\n aria-expanded={expanded}\n aria-controls={expandableRowId}\n ariaLabel={expanded ? hideDetailsText : showDetailsText}\n >\n <Icon svgIcon={icon} />\n </Button>\n </td>\n );\n};\n\nexport default TableExpanderCell;\n","import TableExpanderCell from './TableExpanderCell';\nexport * from './TableExpanderCell';\nexport default TableExpanderCell;\n"],"mappings":";;;;;;;;AAwBA,MAAa,qBAAqB,EAChC,iBACA,iBACA,iBACA,UACA,WACA,OAAO,SAAS,aACc;CAC9B,MAAM,iBAAiB,WAAW,YAAY,gBAAgB,YAAY,yBAAyB,WAAW,GAC3G,YAAY,0BAA0B,SAAS,SAAS,SAC1D,CAAC;CACF,MAAM,OAAO,WAAW,oBAAY;AAEpC,QACE,oBAAC,MAAA;EAAG,WAAW;YACb,oBAAC,gBAAA;GACC,SAAQ;GACR,iBAAe;GACf,iBAAe;GACf,WAAW,WAAW,kBAAkB;aAExC,oBAAC,cAAA,EAAK,SAAS,MAAA,CAAQ;IAChB;GACN;;AC7CT,IAAA,8BDiDe"}