@norges-domstoler/dds-components 13.5.0 → 13.6.1

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 (1066) hide show
  1. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -61
  2. package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +1 -1
  3. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  4. package/dist/cjs/components/Button/Button.d.ts +1 -1
  5. package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
  6. package/dist/cjs/components/Button/Button.tokens.d.ts +1 -1
  7. package/dist/cjs/components/Button/Button.types.d.ts +2 -2
  8. package/dist/cjs/components/Card/Card.d.ts +1 -1
  9. package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +1 -1
  10. package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +1 -1
  11. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -1
  12. package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +2 -2
  13. package/dist/cjs/components/Chip/Chip.d.ts +1 -1
  14. package/dist/cjs/components/Chip/Chip.stories.d.ts +1 -1
  15. package/dist/cjs/components/Chip/Chip.tokens.d.ts +1 -1
  16. package/dist/cjs/components/Datepicker/Datepicker.d.ts +1 -1
  17. package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +1 -1
  18. package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +1 -1
  19. package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +2 -2
  20. package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +2 -2
  21. package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +1 -1
  22. package/dist/cjs/components/Divider/Divider.d.ts +1 -1
  23. package/dist/cjs/components/Divider/Divider.stories.d.ts +1 -1
  24. package/dist/cjs/components/Drawer/Drawer.d.ts +1 -1
  25. package/dist/cjs/components/Drawer/Drawer.stories.d.ts +1 -1
  26. package/dist/cjs/components/Feedback/CommentComponent.d.ts +13 -0
  27. package/dist/cjs/components/Feedback/Feedback.d.ts +2 -0
  28. package/dist/cjs/components/Feedback/Feedback.stories.d.ts +66 -0
  29. package/dist/cjs/components/Feedback/Feedback.types.d.ts +36 -0
  30. package/dist/cjs/components/Feedback/FlexContainer.d.ts +6 -0
  31. package/dist/cjs/components/Feedback/RatingComponent.d.ts +11 -0
  32. package/dist/cjs/components/Feedback/index.d.ts +2 -0
  33. package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +1 -1
  34. package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
  35. package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +2 -2
  36. package/dist/cjs/components/Grid/Grid.context.d.ts +1 -1
  37. package/dist/cjs/components/Grid/Grid.d.ts +2 -2
  38. package/dist/cjs/components/Grid/GridChild.d.ts +2 -2
  39. package/dist/cjs/components/InlineEdit/InlineEdit.stories.d.ts +1 -1
  40. package/dist/cjs/components/InlineEdit/InlineEdit.styles.d.ts +4 -4
  41. package/dist/cjs/components/InlineEdit/InlineEditInput.stories.d.ts +1 -1
  42. package/dist/cjs/components/InlineEdit/InlineEditTextArea.stories.d.ts +1 -1
  43. package/dist/cjs/components/InputMessage/InputMessage.d.ts +1 -1
  44. package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +1 -1
  45. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
  46. package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +1 -1
  47. package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +2 -2
  48. package/dist/cjs/components/List/List.d.ts +2 -2
  49. package/dist/cjs/components/List/List.stories.d.ts +1 -1
  50. package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +1 -1
  51. package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
  52. package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +2 -2
  53. package/dist/cjs/components/Modal/Modal.d.ts +1 -1
  54. package/dist/cjs/components/Modal/Modal.stories.d.ts +1 -1
  55. package/dist/cjs/components/Modal/ModalBody.d.ts +1 -1
  56. package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +1 -1
  57. package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
  58. package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +1 -1
  59. package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +3 -3
  60. package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +2 -2
  61. package/dist/cjs/components/Pagination/Pagination.d.ts +1 -1
  62. package/dist/cjs/components/Pagination/Pagination.stories.d.ts +1 -1
  63. package/dist/cjs/components/Popover/Popover.d.ts +2 -2
  64. package/dist/cjs/components/Popover/Popover.stories.d.ts +2 -2
  65. package/dist/cjs/components/ProgressTracker/ProgressTracker.d.ts +1 -1
  66. package/dist/cjs/components/ProgressTracker/ProgressTracker.stories.d.ts +5 -5
  67. package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +2 -2
  68. package/dist/cjs/components/ProgressTracker/ProgressTrackerItem.d.ts +2 -2
  69. package/dist/cjs/components/ScrollableContainer/ScrollableContainer.d.ts +1 -1
  70. package/dist/cjs/components/ScrollableContainer/Scrollbar.d.ts +1 -1
  71. package/dist/cjs/components/Search/Search.d.ts +1 -1
  72. package/dist/cjs/components/Search/Search.stories.d.ts +2 -2
  73. package/dist/cjs/components/Search/Search.tokens.d.ts +1 -1
  74. package/dist/cjs/components/Search/SearchSuggestions.d.ts +1 -1
  75. package/dist/cjs/components/Select/Select.d.ts +3 -3
  76. package/dist/cjs/components/Select/Select.styles.d.ts +2 -2
  77. package/dist/cjs/components/Select/Select.tokens.d.ts +2 -2
  78. package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.d.ts +1 -1
  79. package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.stories.d.ts +3 -3
  80. package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.types.d.ts +2 -2
  81. package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.d.ts +1 -1
  82. package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.d.ts +1 -0
  83. package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButton.stories.d.ts +5 -5
  84. package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButton.types.d.ts +1 -1
  85. package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.d.ts +1 -1
  86. package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButtonGroup.stories.d.ts +2 -2
  87. package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.d.ts +1 -0
  88. package/dist/{helpers → cjs/components}/SelectionControl/SelectionControl.styles.d.ts +1 -1
  89. package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +1 -1
  90. package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
  91. package/dist/cjs/components/Spinner/Spinner.d.ts +2 -2
  92. package/dist/cjs/components/SplitButton/SplitButton.d.ts +1 -1
  93. package/dist/cjs/components/Stack/Stack.d.ts +1 -1
  94. package/dist/cjs/components/Stack/Stack.stories.d.ts +1 -1
  95. package/dist/cjs/components/Tabs/Tab.d.ts +2 -2
  96. package/dist/cjs/components/Tabs/TabPanel.d.ts +1 -1
  97. package/dist/cjs/components/Tabs/Tabs.context.d.ts +1 -1
  98. package/dist/cjs/components/Tabs/Tabs.d.ts +1 -1
  99. package/dist/cjs/components/Tabs/Tabs.stories.d.ts +5 -5
  100. package/dist/cjs/components/Tag/Tag.d.ts +1 -1
  101. package/dist/cjs/components/Tag/Tag.stories.d.ts +1 -1
  102. package/dist/cjs/components/Tag/Tag.tokens.d.ts +1 -1
  103. package/dist/cjs/components/TextArea/TextArea.d.ts +8 -3
  104. package/dist/cjs/components/TextArea/TextArea.stories.d.ts +1 -1
  105. package/dist/cjs/components/TextInput/CharCounter.d.ts +1 -1
  106. package/dist/cjs/components/TextInput/TextInput.d.ts +3 -3
  107. package/dist/cjs/components/TextInput/TextInput.stories.d.ts +3 -3
  108. package/dist/cjs/components/TextInput/TextInput.styles.d.ts +4 -4
  109. package/dist/cjs/components/TextInput/TextInput.types.d.ts +2 -2
  110. package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +1 -1
  111. package/dist/cjs/components/ToggleBar/ToggleBar.types.d.ts +1 -1
  112. package/dist/cjs/components/ToggleBar/ToggleRadio.d.ts +2 -2
  113. package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +2 -2
  114. package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +4 -4
  115. package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +1 -1
  116. package/dist/cjs/components/ToggleButton/ToggleButton.types.d.ts +3 -3
  117. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  118. package/dist/cjs/components/Tooltip/Tooltip.d.ts +2 -2
  119. package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
  120. package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  121. package/dist/cjs/dds-core.d.ts +1 -0
  122. package/dist/cjs/dds-form.d.ts +2 -0
  123. package/dist/cjs/dds-icons.d.ts +2 -0
  124. package/dist/cjs/dds-typography.d.ts +2 -0
  125. package/dist/cjs/index.d.ts +7 -8
  126. package/dist/cjs/index.js +1314 -4073
  127. package/dist/cjs/utils/icon.d.ts +3 -0
  128. package/dist/cjs/utils/renderInputMessage.d.ts +1 -0
  129. package/dist/components/BackLink/BackLink.js +3 -12
  130. package/dist/components/Breadcrumbs/Breadcrumb.js +1 -7
  131. package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +1 -1
  132. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  133. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -8
  134. package/dist/components/Button/Button.d.ts +1 -1
  135. package/dist/components/Button/Button.js +2 -2
  136. package/dist/components/Button/Button.stories.d.ts +4 -4
  137. package/dist/components/Button/Button.styles.js +3 -7
  138. package/dist/components/Button/Button.tokens.d.ts +1 -1
  139. package/dist/components/Button/Button.tokens.js +1 -2
  140. package/dist/components/Button/Button.types.d.ts +2 -2
  141. package/dist/components/Card/Card.d.ts +1 -1
  142. package/dist/components/Card/Card.js +3 -7
  143. package/dist/components/Card/CardAccordion/CardAccordion.d.ts +1 -1
  144. package/dist/components/Card/CardAccordion/CardAccordion.js +1 -1
  145. package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +1 -1
  146. package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -1
  147. package/dist/components/Card/CardAccordion/CardAccordionBody.js +3 -4
  148. package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +2 -2
  149. package/dist/components/Card/CardAccordion/CardAccordionHeader.js +2 -20
  150. package/dist/components/Chip/Chip.d.ts +1 -1
  151. package/dist/components/Chip/Chip.js +4 -6
  152. package/dist/components/Chip/Chip.stories.d.ts +1 -1
  153. package/dist/components/Chip/Chip.tokens.d.ts +1 -1
  154. package/dist/components/Chip/ChipGroup.js +1 -1
  155. package/dist/components/Datepicker/Datepicker.d.ts +1 -1
  156. package/dist/components/Datepicker/Datepicker.js +5 -25
  157. package/dist/components/Datepicker/Datepicker.stories.d.ts +1 -1
  158. package/dist/components/DescriptionList/DescriptionList.d.ts +1 -1
  159. package/dist/components/DescriptionList/DescriptionList.js +1 -6
  160. package/dist/components/DescriptionList/DescriptionList.stories.d.ts +2 -2
  161. package/dist/components/DescriptionList/DescriptionListDesc.d.ts +2 -2
  162. package/dist/components/DescriptionList/DescriptionListDesc.js +2 -2
  163. package/dist/components/DescriptionList/DescriptionListGroup.d.ts +1 -1
  164. package/dist/components/DescriptionList/DescriptionListGroup.js +1 -1
  165. package/dist/components/Divider/Divider.d.ts +1 -1
  166. package/dist/components/Divider/Divider.js +1 -1
  167. package/dist/components/Divider/Divider.stories.d.ts +1 -1
  168. package/dist/components/Drawer/Drawer.d.ts +1 -1
  169. package/dist/components/Drawer/Drawer.js +4 -31
  170. package/dist/components/Drawer/Drawer.stories.d.ts +1 -1
  171. package/dist/components/EmptyContent/EmptyContent.js +1 -7
  172. package/dist/components/Feedback/CommentComponent.d.ts +13 -0
  173. package/dist/components/Feedback/CommentComponent.js +49 -0
  174. package/dist/components/Feedback/Feedback.d.ts +2 -0
  175. package/dist/components/Feedback/Feedback.js +97 -0
  176. package/dist/components/Feedback/Feedback.stories.d.ts +66 -0
  177. package/dist/components/Feedback/Feedback.types.d.ts +36 -0
  178. package/dist/components/Feedback/FlexContainer.d.ts +6 -0
  179. package/dist/components/Feedback/FlexContainer.js +12 -0
  180. package/dist/components/Feedback/RatingComponent.d.ts +11 -0
  181. package/dist/components/Feedback/RatingComponent.js +70 -0
  182. package/dist/components/Feedback/index.d.ts +2 -0
  183. package/dist/components/FileUploader/File.js +2 -5
  184. package/dist/components/FileUploader/FileUploader.js +3 -12
  185. package/dist/components/GlobalMessage/GlobalMessage.d.ts +1 -1
  186. package/dist/components/GlobalMessage/GlobalMessage.js +4 -13
  187. package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
  188. package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +2 -2
  189. package/dist/components/GlobalMessage/GlobalMessage.tokens.js +1 -6
  190. package/dist/components/Grid/Grid.context.d.ts +1 -1
  191. package/dist/components/Grid/Grid.context.js +1 -3
  192. package/dist/components/Grid/Grid.d.ts +2 -2
  193. package/dist/components/Grid/Grid.js +1 -14
  194. package/dist/components/Grid/Grid.tokens.js +1 -4
  195. package/dist/components/Grid/GridChild.d.ts +2 -2
  196. package/dist/components/Grid/GridChild.js +1 -10
  197. package/dist/components/InlineEdit/InlineEdit.js +1 -5
  198. package/dist/components/InlineEdit/InlineEdit.stories.d.ts +1 -1
  199. package/dist/components/InlineEdit/InlineEdit.styles.d.ts +4 -4
  200. package/dist/components/InlineEdit/InlineEdit.styles.js +1 -13
  201. package/dist/components/InlineEdit/InlineEditInput.js +1 -4
  202. package/dist/components/InlineEdit/InlineEditInput.stories.d.ts +1 -1
  203. package/dist/components/InlineEdit/InlineEditTextArea.js +1 -4
  204. package/dist/components/InlineEdit/InlineEditTextArea.stories.d.ts +1 -1
  205. package/dist/components/InlineEdit/InlineInput.js +4 -16
  206. package/dist/components/InlineEdit/InlineTextArea.js +4 -16
  207. package/dist/components/InputMessage/InputMessage.d.ts +1 -1
  208. package/dist/components/InputMessage/InputMessage.js +3 -11
  209. package/dist/components/InputMessage/InputMessage.stories.d.ts +1 -1
  210. package/dist/components/InternalHeader/InternalHeader.js +3 -11
  211. package/dist/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
  212. package/dist/components/InternalHeader/InternalHeader.styles.js +1 -5
  213. package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +1 -1
  214. package/dist/components/InternalHeader/InternalHeader.types.d.ts +2 -2
  215. package/dist/components/InternalHeader/NavigationItem.js +3 -7
  216. package/dist/components/List/List.d.ts +2 -2
  217. package/dist/components/List/List.js +5 -10
  218. package/dist/components/List/List.stories.d.ts +1 -1
  219. package/dist/components/LocalMessage/LocalMessage.d.ts +1 -1
  220. package/dist/components/LocalMessage/LocalMessage.js +3 -17
  221. package/dist/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
  222. package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +2 -2
  223. package/dist/components/LocalMessage/LocalMessage.tokens.js +1 -8
  224. package/dist/{helpers → components/Modal}/Backdrop/Backdrop.js +2 -2
  225. package/dist/components/Modal/Modal.d.ts +1 -1
  226. package/dist/components/Modal/Modal.js +6 -32
  227. package/dist/components/Modal/Modal.stories.d.ts +1 -1
  228. package/dist/components/Modal/ModalBody.d.ts +1 -1
  229. package/dist/components/Modal/ModalBody.js +1 -1
  230. package/dist/components/OverflowMenu/OverflowMenu.d.ts +1 -1
  231. package/dist/components/OverflowMenu/OverflowMenu.js +2 -16
  232. package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
  233. package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +1 -1
  234. package/dist/components/OverflowMenu/OverflowMenu.tokens.js +1 -2
  235. package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +3 -3
  236. package/dist/components/OverflowMenu/OverflowMenuItem.d.ts +2 -2
  237. package/dist/components/OverflowMenu/OverflowMenuItem.js +4 -14
  238. package/dist/components/Pagination/Pagination.d.ts +1 -1
  239. package/dist/components/Pagination/Pagination.js +3 -15
  240. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  241. package/dist/components/Popover/Popover.d.ts +2 -2
  242. package/dist/components/Popover/Popover.js +4 -31
  243. package/dist/components/Popover/Popover.stories.d.ts +2 -2
  244. package/dist/components/Popover/PopoverGroup.js +1 -4
  245. package/dist/components/ProgressTracker/ProgressTracker.d.ts +1 -1
  246. package/dist/components/ProgressTracker/ProgressTracker.js +1 -1
  247. package/dist/components/ProgressTracker/ProgressTracker.stories.d.ts +5 -5
  248. package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +2 -2
  249. package/dist/components/ProgressTracker/ProgressTrackerItem.d.ts +2 -2
  250. package/dist/components/ProgressTracker/ProgressTrackerItem.js +4 -11
  251. package/dist/components/ScrollableContainer/ScrollableContainer.d.ts +1 -1
  252. package/dist/components/ScrollableContainer/ScrollableContainer.js +2 -6
  253. package/dist/components/ScrollableContainer/Scrollbar.d.ts +1 -1
  254. package/dist/components/ScrollableContainer/Scrollbar.js +1 -1
  255. package/dist/components/Search/Search.d.ts +1 -1
  256. package/dist/components/Search/Search.js +6 -26
  257. package/dist/components/Search/Search.stories.d.ts +2 -2
  258. package/dist/components/Search/Search.tokens.d.ts +1 -1
  259. package/dist/components/Search/SearchAutocompleteWrapper.js +1 -6
  260. package/dist/components/Search/SearchSuggestions.d.ts +1 -1
  261. package/dist/components/Search/SearchSuggestions.js +3 -30
  262. package/dist/components/Select/Select.d.ts +3 -3
  263. package/dist/components/Select/Select.js +5 -16
  264. package/dist/components/Select/Select.styles.d.ts +2 -2
  265. package/dist/components/Select/Select.styles.js +5 -8
  266. package/dist/components/Select/Select.tokens.d.ts +2 -2
  267. package/dist/components/Select/Select.tokens.js +1 -13
  268. package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.d.ts +1 -1
  269. package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.js +4 -22
  270. package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.stories.d.ts +3 -3
  271. package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.types.d.ts +2 -2
  272. package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.d.ts +1 -1
  273. package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.js +4 -22
  274. package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.d.ts +1 -0
  275. package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.js +4 -21
  276. package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.stories.d.ts +5 -5
  277. package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.types.d.ts +1 -1
  278. package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.d.ts +1 -1
  279. package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.js +5 -23
  280. package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButtonGroup.stories.d.ts +2 -2
  281. package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.d.ts +1 -0
  282. package/dist/{cjs/helpers → components}/SelectionControl/SelectionControl.styles.d.ts +1 -1
  283. package/dist/{helpers → components}/SelectionControl/SelectionControl.styles.js +5 -9
  284. package/dist/{helpers → components}/SelectionControl/SelectionControl.tokens.js +1 -6
  285. package/dist/components/SkipToContent/SkipToContent.d.ts +1 -1
  286. package/dist/components/SkipToContent/SkipToContent.js +3 -7
  287. package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
  288. package/dist/components/Spinner/Spinner.d.ts +2 -2
  289. package/dist/components/Spinner/Spinner.js +1 -2
  290. package/dist/components/SplitButton/SplitButton.d.ts +1 -1
  291. package/dist/components/SplitButton/SplitButton.js +1 -4
  292. package/dist/components/Stack/Stack.d.ts +1 -1
  293. package/dist/components/Stack/Stack.js +1 -1
  294. package/dist/components/Stack/Stack.stories.d.ts +1 -1
  295. package/dist/components/Table/SortCell.js +4 -13
  296. package/dist/components/Table/Table.js +1 -5
  297. package/dist/components/Table/Table.styles.js +2 -6
  298. package/dist/components/Table/collapsible/CollapsibleRow.js +2 -18
  299. package/dist/components/Tabs/Tab.d.ts +2 -2
  300. package/dist/components/Tabs/Tab.js +4 -15
  301. package/dist/components/Tabs/TabList.js +2 -12
  302. package/dist/components/Tabs/TabPanel.d.ts +1 -1
  303. package/dist/components/Tabs/TabPanel.js +2 -6
  304. package/dist/components/Tabs/TabPanels.js +1 -4
  305. package/dist/components/Tabs/Tabs.context.d.ts +1 -1
  306. package/dist/components/Tabs/Tabs.d.ts +1 -1
  307. package/dist/components/Tabs/Tabs.js +1 -1
  308. package/dist/components/Tabs/Tabs.stories.d.ts +5 -5
  309. package/dist/components/Tag/Tag.d.ts +1 -1
  310. package/dist/components/Tag/Tag.js +3 -4
  311. package/dist/components/Tag/Tag.stories.d.ts +1 -1
  312. package/dist/components/Tag/Tag.tokens.d.ts +1 -1
  313. package/dist/components/TextArea/TextArea.d.ts +8 -3
  314. package/dist/components/TextArea/TextArea.js +4 -16
  315. package/dist/components/TextArea/TextArea.stories.d.ts +1 -1
  316. package/dist/components/TextInput/CharCounter.d.ts +1 -1
  317. package/dist/components/TextInput/CharCounter.js +2 -8
  318. package/dist/components/TextInput/TextInput.d.ts +3 -3
  319. package/dist/components/TextInput/TextInput.js +7 -21
  320. package/dist/components/TextInput/TextInput.stories.d.ts +3 -3
  321. package/dist/components/TextInput/TextInput.styles.d.ts +4 -4
  322. package/dist/components/TextInput/TextInput.styles.js +3 -15
  323. package/dist/components/TextInput/TextInput.types.d.ts +2 -2
  324. package/dist/components/ToggleBar/ToggleBar.js +2 -15
  325. package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +1 -1
  326. package/dist/components/ToggleBar/ToggleBar.tokens.js +1 -2
  327. package/dist/components/ToggleBar/ToggleBar.types.d.ts +1 -1
  328. package/dist/components/ToggleBar/ToggleRadio.d.ts +2 -2
  329. package/dist/components/ToggleBar/ToggleRadio.js +3 -13
  330. package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -20
  331. package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
  332. package/dist/components/ToggleButton/ToggleButton.js +5 -20
  333. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +4 -4
  334. package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +1 -1
  335. package/dist/components/ToggleButton/ToggleButton.tokens.js +1 -2
  336. package/dist/components/ToggleButton/ToggleButton.types.d.ts +3 -3
  337. package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  338. package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -8
  339. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  340. package/dist/components/Tooltip/Tooltip.js +1 -7
  341. package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
  342. package/dist/components/Tooltip/Tooltip.styles.js +2 -20
  343. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  344. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
  345. package/dist/dds-core.d.ts +1 -0
  346. package/dist/dds-form.d.ts +2 -0
  347. package/dist/dds-icons.d.ts +2 -0
  348. package/dist/dds-typography.d.ts +2 -0
  349. package/dist/index.d.ts +7 -8
  350. package/dist/index.js +9 -172
  351. package/dist/utils/icon.d.ts +3 -0
  352. package/dist/utils/icon.js +12 -0
  353. package/dist/utils/renderInputMessage.d.ts +1 -0
  354. package/dist/utils/renderInputMessage.js +18 -0
  355. package/package.json +5 -1
  356. package/dist/assets/svg/openExternal.svg.js +0 -4
  357. package/dist/cjs/components/Icon/Icon.d.ts +0 -17
  358. package/dist/cjs/components/Icon/Icon.stories.d.ts +0 -21
  359. package/dist/cjs/components/Icon/index.d.ts +0 -1
  360. package/dist/cjs/components/Typography/Caption/Caption.d.ts +0 -11
  361. package/dist/cjs/components/Typography/Caption/Caption.stories.d.ts +0 -29
  362. package/dist/cjs/components/Typography/Caption/index.d.ts +0 -1
  363. package/dist/cjs/components/Typography/Heading/Heading.d.ts +0 -22
  364. package/dist/cjs/components/Typography/Heading/Heading.stories.d.ts +0 -38
  365. package/dist/cjs/components/Typography/Heading/index.d.ts +0 -1
  366. package/dist/cjs/components/Typography/Label/Label.d.ts +0 -17
  367. package/dist/cjs/components/Typography/Label/Label.stories.d.ts +0 -33
  368. package/dist/cjs/components/Typography/Label/index.d.ts +0 -1
  369. package/dist/cjs/components/Typography/Legend/Legend.d.ts +0 -11
  370. package/dist/cjs/components/Typography/Legend/Legend.stories.d.ts +0 -29
  371. package/dist/cjs/components/Typography/Legend/index.d.ts +0 -1
  372. package/dist/cjs/components/Typography/Link/Link.d.ts +0 -23
  373. package/dist/cjs/components/Typography/Link/Link.stories.d.ts +0 -48
  374. package/dist/cjs/components/Typography/Link/index.d.ts +0 -1
  375. package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +0 -17
  376. package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +0 -37
  377. package/dist/cjs/components/Typography/Paragraph/index.d.ts +0 -1
  378. package/dist/cjs/components/Typography/Typography/Typography.d.ts +0 -25
  379. package/dist/cjs/components/Typography/Typography/Typography.stories.d.ts +0 -64
  380. package/dist/cjs/components/Typography/Typography/Typography.types.d.ts +0 -36
  381. package/dist/cjs/components/Typography/Typography/index.d.ts +0 -2
  382. package/dist/cjs/components/Typography/Typography.tokens.d.ts +0 -448
  383. package/dist/cjs/components/Typography/Typography.utils.d.ts +0 -203
  384. package/dist/cjs/components/Typography/index.d.ts +0 -7
  385. package/dist/cjs/components/Typography/stories/Examples.stories.d.ts +0 -5
  386. package/dist/cjs/components/Typography/stories/TypographyComponents.stories.d.ts +0 -42
  387. package/dist/cjs/components/Typography/stories/TypographyTypes.stories.d.ts +0 -11
  388. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -8
  389. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -7
  390. package/dist/cjs/helpers/Chevron/index.d.ts +0 -1
  391. package/dist/cjs/helpers/HiddenInput/HiddenInput.d.ts +0 -1
  392. package/dist/cjs/helpers/HiddenInput/index.d.ts +0 -1
  393. package/dist/cjs/helpers/Input/Input.styles.d.ts +0 -16
  394. package/dist/cjs/helpers/Input/Input.tokens.d.ts +0 -38
  395. package/dist/cjs/helpers/Input/Input.types.d.ts +0 -28
  396. package/dist/cjs/helpers/Input/Input.utils.d.ts +0 -5
  397. package/dist/cjs/helpers/Input/index.d.ts +0 -4
  398. package/dist/cjs/helpers/Paper/Paper.d.ts +0 -8
  399. package/dist/cjs/helpers/Paper/Paper.tokens.d.ts +0 -7
  400. package/dist/cjs/helpers/Paper/index.d.ts +0 -1
  401. package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
  402. package/dist/cjs/helpers/RequiredMarker/index.d.ts +0 -1
  403. package/dist/cjs/helpers/ScreenSize/ScreenSize.utils.d.ts +0 -7
  404. package/dist/cjs/helpers/ScreenSize/index.d.ts +0 -1
  405. package/dist/cjs/helpers/SelectionControl/index.d.ts +0 -3
  406. package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +0 -2
  407. package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +0 -1
  408. package/dist/cjs/helpers/index.d.ts +0 -7
  409. package/dist/cjs/helpers/styling/danger.d.ts +0 -4
  410. package/dist/cjs/helpers/styling/focus.d.ts +0 -9
  411. package/dist/cjs/helpers/styling/focusVisible.d.ts +0 -37
  412. package/dist/cjs/helpers/styling/hideInput.d.ts +0 -7
  413. package/dist/cjs/helpers/styling/hover.d.ts +0 -12
  414. package/dist/cjs/helpers/styling/index.d.ts +0 -9
  415. package/dist/cjs/helpers/styling/normalize.d.ts +0 -5
  416. package/dist/cjs/helpers/styling/removeButtonStyling.d.ts +0 -9
  417. package/dist/cjs/helpers/styling/removeListStyling.d.ts +0 -5
  418. package/dist/cjs/helpers/styling/selection.d.ts +0 -4
  419. package/dist/cjs/helpers/styling/visibilityTransition.d.ts +0 -1
  420. package/dist/cjs/hooks/index.d.ts +0 -9
  421. package/dist/cjs/hooks/useCombinedRefs.d.ts +0 -20
  422. package/dist/cjs/hooks/useFloatPosition.d.ts +0 -48
  423. package/dist/cjs/hooks/useFocusTrap.d.ts +0 -16
  424. package/dist/cjs/hooks/useIsMounted.d.ts +0 -2
  425. package/dist/cjs/hooks/useMountTransition.d.ts +0 -33
  426. package/dist/cjs/hooks/useOnClickOutside.d.ts +0 -14
  427. package/dist/cjs/hooks/useOnKeyDown.d.ts +0 -14
  428. package/dist/cjs/hooks/useReturnFocusOnBlur.d.ts +0 -31
  429. package/dist/cjs/hooks/useRoveFocus.d.ts +0 -28
  430. package/dist/cjs/hooks/useScreenSize.d.ts +0 -20
  431. package/dist/cjs/icons/icons.stories.d.ts +0 -5
  432. package/dist/cjs/icons/tsx/agreement.d.ts +0 -2
  433. package/dist/cjs/icons/tsx/apps.d.ts +0 -2
  434. package/dist/cjs/icons/tsx/archive.d.ts +0 -2
  435. package/dist/cjs/icons/tsx/arrowDown.d.ts +0 -2
  436. package/dist/cjs/icons/tsx/arrowLeft.d.ts +0 -2
  437. package/dist/cjs/icons/tsx/arrowRight.d.ts +0 -2
  438. package/dist/cjs/icons/tsx/arrowUp.d.ts +0 -2
  439. package/dist/cjs/icons/tsx/attachment.d.ts +0 -2
  440. package/dist/cjs/icons/tsx/barChart.d.ts +0 -2
  441. package/dist/cjs/icons/tsx/barChartBoxed.d.ts +0 -2
  442. package/dist/cjs/icons/tsx/block.d.ts +0 -2
  443. package/dist/cjs/icons/tsx/book.d.ts +0 -2
  444. package/dist/cjs/icons/tsx/build.d.ts +0 -2
  445. package/dist/cjs/icons/tsx/buildCircled.d.ts +0 -2
  446. package/dist/cjs/icons/tsx/calendar.d.ts +0 -2
  447. package/dist/cjs/icons/tsx/calendarMonth.d.ts +0 -2
  448. package/dist/cjs/icons/tsx/calendarViewDay.d.ts +0 -2
  449. package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +0 -2
  450. package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +0 -2
  451. package/dist/cjs/icons/tsx/call.d.ts +0 -2
  452. package/dist/cjs/icons/tsx/caring.d.ts +0 -2
  453. package/dist/cjs/icons/tsx/chat.d.ts +0 -2
  454. package/dist/cjs/icons/tsx/check.d.ts +0 -2
  455. package/dist/cjs/icons/tsx/checkCircled.d.ts +0 -2
  456. package/dist/cjs/icons/tsx/checklist.d.ts +0 -2
  457. package/dist/cjs/icons/tsx/chevronDown.d.ts +0 -2
  458. package/dist/cjs/icons/tsx/chevronFirst.d.ts +0 -2
  459. package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +0 -2
  460. package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +0 -2
  461. package/dist/cjs/icons/tsx/chevronLast.d.ts +0 -2
  462. package/dist/cjs/icons/tsx/chevronLeft.d.ts +0 -2
  463. package/dist/cjs/icons/tsx/chevronRight.d.ts +0 -2
  464. package/dist/cjs/icons/tsx/chevronUp.d.ts +0 -2
  465. package/dist/cjs/icons/tsx/close.d.ts +0 -2
  466. package/dist/cjs/icons/tsx/closeCircled.d.ts +0 -2
  467. package/dist/cjs/icons/tsx/closeSmall.d.ts +0 -2
  468. package/dist/cjs/icons/tsx/cloud.d.ts +0 -2
  469. package/dist/cjs/icons/tsx/collapse.d.ts +0 -2
  470. package/dist/cjs/icons/tsx/comment.d.ts +0 -2
  471. package/dist/cjs/icons/tsx/copy.d.ts +0 -2
  472. package/dist/cjs/icons/tsx/court.d.ts +0 -2
  473. package/dist/cjs/icons/tsx/dateRange.d.ts +0 -2
  474. package/dist/cjs/icons/tsx/deaths.d.ts +0 -2
  475. package/dist/cjs/icons/tsx/doubleChevronLeft.d.ts +0 -2
  476. package/dist/cjs/icons/tsx/doubleChevronRight.d.ts +0 -2
  477. package/dist/cjs/icons/tsx/download.d.ts +0 -2
  478. package/dist/cjs/icons/tsx/downloadDone.d.ts +0 -2
  479. package/dist/cjs/icons/tsx/dragHandle.d.ts +0 -2
  480. package/dist/cjs/icons/tsx/edit.d.ts +0 -2
  481. package/dist/cjs/icons/tsx/error.d.ts +0 -2
  482. package/dist/cjs/icons/tsx/exclaim.d.ts +0 -2
  483. package/dist/cjs/icons/tsx/expand.d.ts +0 -2
  484. package/dist/cjs/icons/tsx/facebook.d.ts +0 -2
  485. package/dist/cjs/icons/tsx/family.d.ts +0 -2
  486. package/dist/cjs/icons/tsx/feedback.d.ts +0 -2
  487. package/dist/cjs/icons/tsx/file.d.ts +0 -2
  488. package/dist/cjs/icons/tsx/fileAdd.d.ts +0 -2
  489. package/dist/cjs/icons/tsx/fileText.d.ts +0 -2
  490. package/dist/cjs/icons/tsx/filter.d.ts +0 -2
  491. package/dist/cjs/icons/tsx/filterList.d.ts +0 -2
  492. package/dist/cjs/icons/tsx/filterListOff.d.ts +0 -2
  493. package/dist/cjs/icons/tsx/filterOff.d.ts +0 -2
  494. package/dist/cjs/icons/tsx/findInPage.d.ts +0 -2
  495. package/dist/cjs/icons/tsx/folder.d.ts +0 -2
  496. package/dist/cjs/icons/tsx/folderAdd.d.ts +0 -2
  497. package/dist/cjs/icons/tsx/fullsceenExit.d.ts +0 -2
  498. package/dist/cjs/icons/tsx/fullscreen.d.ts +0 -2
  499. package/dist/cjs/icons/tsx/gavel.d.ts +0 -2
  500. package/dist/cjs/icons/tsx/help.d.ts +0 -2
  501. package/dist/cjs/icons/tsx/helpFilled.d.ts +0 -2
  502. package/dist/cjs/icons/tsx/home.d.ts +0 -2
  503. package/dist/cjs/icons/tsx/hourglassBottom.d.ts +0 -2
  504. package/dist/cjs/icons/tsx/hourglassDisabled.d.ts +0 -2
  505. package/dist/cjs/icons/tsx/hourglassEmpty.d.ts +0 -2
  506. package/dist/cjs/icons/tsx/hourglassFull.d.ts +0 -2
  507. package/dist/cjs/icons/tsx/hourglassTop.d.ts +0 -2
  508. package/dist/cjs/icons/tsx/image.d.ts +0 -2
  509. package/dist/cjs/icons/tsx/index.d.ts +0 -149
  510. package/dist/cjs/icons/tsx/info.d.ts +0 -2
  511. package/dist/cjs/icons/tsx/instagram.d.ts +0 -2
  512. package/dist/cjs/icons/tsx/jordskifterett.d.ts +0 -2
  513. package/dist/cjs/icons/tsx/key.d.ts +0 -2
  514. package/dist/cjs/icons/tsx/lagmannsrett.d.ts +0 -2
  515. package/dist/cjs/icons/tsx/language.d.ts +0 -2
  516. package/dist/cjs/icons/tsx/libraryAdd.d.ts +0 -2
  517. package/dist/cjs/icons/tsx/lineChart.d.ts +0 -2
  518. package/dist/cjs/icons/tsx/link.d.ts +0 -2
  519. package/dist/cjs/icons/tsx/linkOff.d.ts +0 -2
  520. package/dist/cjs/icons/tsx/linkedIn.d.ts +0 -2
  521. package/dist/cjs/icons/tsx/list.d.ts +0 -2
  522. package/dist/cjs/icons/tsx/listAlt.d.ts +0 -2
  523. package/dist/cjs/icons/tsx/location.d.ts +0 -2
  524. package/dist/cjs/icons/tsx/lock.d.ts +0 -2
  525. package/dist/cjs/icons/tsx/lockOpen.d.ts +0 -2
  526. package/dist/cjs/icons/tsx/login.d.ts +0 -2
  527. package/dist/cjs/icons/tsx/logout.d.ts +0 -2
  528. package/dist/cjs/icons/tsx/mail.d.ts +0 -2
  529. package/dist/cjs/icons/tsx/mailOpen.d.ts +0 -2
  530. package/dist/cjs/icons/tsx/menu.d.ts +0 -2
  531. package/dist/cjs/icons/tsx/minus.d.ts +0 -2
  532. package/dist/cjs/icons/tsx/minusCircled.d.ts +0 -2
  533. package/dist/cjs/icons/tsx/moreHorizontal.d.ts +0 -2
  534. package/dist/cjs/icons/tsx/moreVertical.d.ts +0 -2
  535. package/dist/cjs/icons/tsx/notarial.d.ts +0 -2
  536. package/dist/cjs/icons/tsx/notifications.d.ts +0 -2
  537. package/dist/cjs/icons/tsx/notificationsOff.d.ts +0 -2
  538. package/dist/cjs/icons/tsx/onlineMeeting.d.ts +0 -2
  539. package/dist/cjs/icons/tsx/openExternal.d.ts +0 -2
  540. package/dist/cjs/icons/tsx/payout.d.ts +0 -2
  541. package/dist/cjs/icons/tsx/pdf.d.ts +0 -2
  542. package/dist/cjs/icons/tsx/person.d.ts +0 -2
  543. package/dist/cjs/icons/tsx/personAdd.d.ts +0 -2
  544. package/dist/cjs/icons/tsx/pin.d.ts +0 -2
  545. package/dist/cjs/icons/tsx/plus.d.ts +0 -2
  546. package/dist/cjs/icons/tsx/plusCircled.d.ts +0 -2
  547. package/dist/cjs/icons/tsx/print.d.ts +0 -2
  548. package/dist/cjs/icons/tsx/property.d.ts +0 -2
  549. package/dist/cjs/icons/tsx/publish.d.ts +0 -2
  550. package/dist/cjs/icons/tsx/questionAnswer.d.ts +0 -2
  551. package/dist/cjs/icons/tsx/receipt.d.ts +0 -2
  552. package/dist/cjs/icons/tsx/redo.d.ts +0 -2
  553. package/dist/cjs/icons/tsx/refresh.d.ts +0 -2
  554. package/dist/cjs/icons/tsx/replay.d.ts +0 -2
  555. package/dist/cjs/icons/tsx/search.d.ts +0 -2
  556. package/dist/cjs/icons/tsx/settings.d.ts +0 -2
  557. package/dist/cjs/icons/tsx/sms.d.ts +0 -2
  558. package/dist/cjs/icons/tsx/star.d.ts +0 -2
  559. package/dist/cjs/icons/tsx/starFilled.d.ts +0 -2
  560. package/dist/cjs/icons/tsx/starHalfFilled.d.ts +0 -2
  561. package/dist/cjs/icons/tsx/sync.d.ts +0 -2
  562. package/dist/cjs/icons/tsx/thumbdown.d.ts +0 -2
  563. package/dist/cjs/icons/tsx/thumbdownFilled.d.ts +0 -2
  564. package/dist/cjs/icons/tsx/thumbup.d.ts +0 -2
  565. package/dist/cjs/icons/tsx/thumbupFilled.d.ts +0 -2
  566. package/dist/cjs/icons/tsx/time.d.ts +0 -2
  567. package/dist/cjs/icons/tsx/tingrett.d.ts +0 -2
  568. package/dist/cjs/icons/tsx/tip.d.ts +0 -2
  569. package/dist/cjs/icons/tsx/trash.d.ts +0 -2
  570. package/dist/cjs/icons/tsx/trendingDown.d.ts +0 -2
  571. package/dist/cjs/icons/tsx/trendingUp.d.ts +0 -2
  572. package/dist/cjs/icons/tsx/twitter.d.ts +0 -2
  573. package/dist/cjs/icons/tsx/undo.d.ts +0 -2
  574. package/dist/cjs/icons/tsx/unfoldLess.d.ts +0 -2
  575. package/dist/cjs/icons/tsx/unfoldMore.d.ts +0 -2
  576. package/dist/cjs/icons/tsx/upload.d.ts +0 -2
  577. package/dist/cjs/icons/tsx/visibilityOff.d.ts +0 -2
  578. package/dist/cjs/icons/tsx/visibilityOn.d.ts +0 -2
  579. package/dist/cjs/icons/tsx/warning.d.ts +0 -2
  580. package/dist/cjs/icons/tsx/zoomIn.d.ts +0 -2
  581. package/dist/cjs/icons/tsx/zoomOut.d.ts +0 -2
  582. package/dist/cjs/icons/utils/StyledSvg.d.ts +0 -4
  583. package/dist/cjs/icons/utils/SvgWrapper.d.ts +0 -2
  584. package/dist/cjs/icons/utils/index.d.ts +0 -2
  585. package/dist/cjs/icons/utils/propTypes.d.ts +0 -5
  586. package/dist/cjs/types/BaseComponentProps.d.ts +0 -58
  587. package/dist/cjs/types/CheckboxPickedHTMLAttributes.d.ts +0 -2
  588. package/dist/cjs/types/Direction.d.ts +0 -1
  589. package/dist/cjs/types/index.d.ts +0 -4
  590. package/dist/cjs/types/utils.d.ts +0 -15
  591. package/dist/cjs/utils/color.d.ts +0 -30
  592. package/dist/cjs/utils/combineHandlers.d.ts +0 -1
  593. package/dist/cjs/utils/getFocusableElements.d.ts +0 -2
  594. package/dist/cjs/utils/getScrollbarSize.d.ts +0 -1
  595. package/dist/cjs/utils/idGenerator.d.ts +0 -2
  596. package/dist/cjs/utils/index.d.ts +0 -7
  597. package/dist/cjs/utils/searchFilter.d.ts +0 -2
  598. package/dist/cjs/utils/text.d.ts +0 -2
  599. package/dist/components/Icon/Icon.d.ts +0 -17
  600. package/dist/components/Icon/Icon.js +0 -44
  601. package/dist/components/Icon/Icon.stories.d.ts +0 -21
  602. package/dist/components/Icon/index.d.ts +0 -1
  603. package/dist/components/Typography/Caption/Caption.d.ts +0 -11
  604. package/dist/components/Typography/Caption/Caption.js +0 -22
  605. package/dist/components/Typography/Caption/Caption.stories.d.ts +0 -29
  606. package/dist/components/Typography/Caption/index.d.ts +0 -1
  607. package/dist/components/Typography/Heading/Heading.d.ts +0 -22
  608. package/dist/components/Typography/Heading/Heading.js +0 -48
  609. package/dist/components/Typography/Heading/Heading.stories.d.ts +0 -38
  610. package/dist/components/Typography/Heading/index.d.ts +0 -1
  611. package/dist/components/Typography/Label/Label.d.ts +0 -17
  612. package/dist/components/Typography/Label/Label.js +0 -33
  613. package/dist/components/Typography/Label/Label.stories.d.ts +0 -33
  614. package/dist/components/Typography/Label/index.d.ts +0 -1
  615. package/dist/components/Typography/Legend/Legend.d.ts +0 -11
  616. package/dist/components/Typography/Legend/Legend.js +0 -22
  617. package/dist/components/Typography/Legend/Legend.stories.d.ts +0 -29
  618. package/dist/components/Typography/Legend/index.d.ts +0 -1
  619. package/dist/components/Typography/Link/Link.d.ts +0 -23
  620. package/dist/components/Typography/Link/Link.js +0 -39
  621. package/dist/components/Typography/Link/Link.stories.d.ts +0 -48
  622. package/dist/components/Typography/Link/index.d.ts +0 -1
  623. package/dist/components/Typography/Paragraph/Paragraph.d.ts +0 -17
  624. package/dist/components/Typography/Paragraph/Paragraph.js +0 -25
  625. package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +0 -37
  626. package/dist/components/Typography/Paragraph/index.d.ts +0 -1
  627. package/dist/components/Typography/Typography/Typography.d.ts +0 -25
  628. package/dist/components/Typography/Typography/Typography.js +0 -86
  629. package/dist/components/Typography/Typography/Typography.stories.d.ts +0 -64
  630. package/dist/components/Typography/Typography/Typography.types.d.ts +0 -36
  631. package/dist/components/Typography/Typography/index.d.ts +0 -2
  632. package/dist/components/Typography/Typography.tokens.d.ts +0 -448
  633. package/dist/components/Typography/Typography.tokens.js +0 -314
  634. package/dist/components/Typography/Typography.utils.d.ts +0 -203
  635. package/dist/components/Typography/Typography.utils.js +0 -69
  636. package/dist/components/Typography/index.d.ts +0 -7
  637. package/dist/components/Typography/stories/Examples.stories.d.ts +0 -5
  638. package/dist/components/Typography/stories/TypographyComponents.stories.d.ts +0 -42
  639. package/dist/components/Typography/stories/TypographyTypes.stories.d.ts +0 -11
  640. package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -8
  641. package/dist/helpers/Chevron/AnimatedChevronUpDown.js +0 -31
  642. package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -7
  643. package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.js +0 -29
  644. package/dist/helpers/Chevron/index.d.ts +0 -1
  645. package/dist/helpers/HiddenInput/HiddenInput.d.ts +0 -1
  646. package/dist/helpers/HiddenInput/HiddenInput.js +0 -8
  647. package/dist/helpers/HiddenInput/index.d.ts +0 -1
  648. package/dist/helpers/Input/Input.styles.d.ts +0 -16
  649. package/dist/helpers/Input/Input.styles.js +0 -51
  650. package/dist/helpers/Input/Input.tokens.d.ts +0 -38
  651. package/dist/helpers/Input/Input.tokens.js +0 -51
  652. package/dist/helpers/Input/Input.types.d.ts +0 -28
  653. package/dist/helpers/Input/Input.utils.d.ts +0 -5
  654. package/dist/helpers/Input/Input.utils.js +0 -37
  655. package/dist/helpers/Input/index.d.ts +0 -4
  656. package/dist/helpers/Paper/Paper.d.ts +0 -8
  657. package/dist/helpers/Paper/Paper.js +0 -43
  658. package/dist/helpers/Paper/Paper.tokens.d.ts +0 -7
  659. package/dist/helpers/Paper/Paper.tokens.js +0 -15
  660. package/dist/helpers/Paper/index.d.ts +0 -1
  661. package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
  662. package/dist/helpers/RequiredMarker/RequiredMarker.js +0 -15
  663. package/dist/helpers/RequiredMarker/index.d.ts +0 -1
  664. package/dist/helpers/ScreenSize/ScreenSize.utils.d.ts +0 -7
  665. package/dist/helpers/ScreenSize/ScreenSize.utils.js +0 -21
  666. package/dist/helpers/ScreenSize/index.d.ts +0 -1
  667. package/dist/helpers/SelectionControl/index.d.ts +0 -3
  668. package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +0 -2
  669. package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +0 -12
  670. package/dist/helpers/TextOverflowEllipsis/index.d.ts +0 -1
  671. package/dist/helpers/index.d.ts +0 -7
  672. package/dist/helpers/styling/danger.d.ts +0 -4
  673. package/dist/helpers/styling/danger.js +0 -9
  674. package/dist/helpers/styling/focus.d.ts +0 -9
  675. package/dist/helpers/styling/focus.js +0 -14
  676. package/dist/helpers/styling/focusVisible.d.ts +0 -37
  677. package/dist/helpers/styling/focusVisible.js +0 -44
  678. package/dist/helpers/styling/hideInput.d.ts +0 -7
  679. package/dist/helpers/styling/hover.d.ts +0 -12
  680. package/dist/helpers/styling/hover.js +0 -18
  681. package/dist/helpers/styling/index.d.ts +0 -9
  682. package/dist/helpers/styling/normalize.d.ts +0 -5
  683. package/dist/helpers/styling/normalize.js +0 -6
  684. package/dist/helpers/styling/removeButtonStyling.d.ts +0 -9
  685. package/dist/helpers/styling/removeButtonStyling.js +0 -11
  686. package/dist/helpers/styling/removeListStyling.d.ts +0 -5
  687. package/dist/helpers/styling/removeListStyling.js +0 -7
  688. package/dist/helpers/styling/selection.d.ts +0 -4
  689. package/dist/helpers/styling/selection.js +0 -9
  690. package/dist/helpers/styling/visibilityTransition.d.ts +0 -1
  691. package/dist/helpers/styling/visibilityTransition.js +0 -7
  692. package/dist/hooks/index.d.ts +0 -9
  693. package/dist/hooks/useCombinedRefs.d.ts +0 -20
  694. package/dist/hooks/useCombinedRefs.js +0 -33
  695. package/dist/hooks/useFloatPosition.d.ts +0 -48
  696. package/dist/hooks/useFloatPosition.js +0 -91
  697. package/dist/hooks/useFocusTrap.d.ts +0 -16
  698. package/dist/hooks/useFocusTrap.js +0 -48
  699. package/dist/hooks/useIsMounted.d.ts +0 -2
  700. package/dist/hooks/useIsMounted.js +0 -16
  701. package/dist/hooks/useMountTransition.d.ts +0 -33
  702. package/dist/hooks/useMountTransition.js +0 -55
  703. package/dist/hooks/useOnClickOutside.d.ts +0 -14
  704. package/dist/hooks/useOnClickOutside.js +0 -38
  705. package/dist/hooks/useOnKeyDown.d.ts +0 -14
  706. package/dist/hooks/useOnKeyDown.js +0 -31
  707. package/dist/hooks/useReturnFocusOnBlur.d.ts +0 -31
  708. package/dist/hooks/useReturnFocusOnBlur.js +0 -60
  709. package/dist/hooks/useRoveFocus.d.ts +0 -28
  710. package/dist/hooks/useRoveFocus.js +0 -63
  711. package/dist/hooks/useScreenSize.d.ts +0 -20
  712. package/dist/hooks/useScreenSize.js +0 -61
  713. package/dist/icons/icons.stories.d.ts +0 -5
  714. package/dist/icons/tsx/agreement.d.ts +0 -2
  715. package/dist/icons/tsx/agreement.js +0 -12
  716. package/dist/icons/tsx/apps.d.ts +0 -2
  717. package/dist/icons/tsx/apps.js +0 -12
  718. package/dist/icons/tsx/archive.d.ts +0 -2
  719. package/dist/icons/tsx/archive.js +0 -14
  720. package/dist/icons/tsx/arrowDown.d.ts +0 -2
  721. package/dist/icons/tsx/arrowDown.js +0 -12
  722. package/dist/icons/tsx/arrowLeft.d.ts +0 -2
  723. package/dist/icons/tsx/arrowLeft.js +0 -12
  724. package/dist/icons/tsx/arrowRight.d.ts +0 -2
  725. package/dist/icons/tsx/arrowRight.js +0 -12
  726. package/dist/icons/tsx/arrowUp.d.ts +0 -2
  727. package/dist/icons/tsx/arrowUp.js +0 -12
  728. package/dist/icons/tsx/attachment.d.ts +0 -2
  729. package/dist/icons/tsx/attachment.js +0 -12
  730. package/dist/icons/tsx/barChart.d.ts +0 -2
  731. package/dist/icons/tsx/barChart.js +0 -12
  732. package/dist/icons/tsx/barChartBoxed.d.ts +0 -2
  733. package/dist/icons/tsx/barChartBoxed.js +0 -12
  734. package/dist/icons/tsx/block.d.ts +0 -2
  735. package/dist/icons/tsx/block.js +0 -12
  736. package/dist/icons/tsx/book.d.ts +0 -2
  737. package/dist/icons/tsx/book.js +0 -14
  738. package/dist/icons/tsx/build.d.ts +0 -2
  739. package/dist/icons/tsx/build.js +0 -12
  740. package/dist/icons/tsx/buildCircled.d.ts +0 -2
  741. package/dist/icons/tsx/buildCircled.js +0 -18
  742. package/dist/icons/tsx/calendar.d.ts +0 -2
  743. package/dist/icons/tsx/calendar.js +0 -12
  744. package/dist/icons/tsx/calendarMonth.d.ts +0 -2
  745. package/dist/icons/tsx/calendarMonth.js +0 -12
  746. package/dist/icons/tsx/calendarViewDay.d.ts +0 -2
  747. package/dist/icons/tsx/calendarViewDay.js +0 -12
  748. package/dist/icons/tsx/calendarViewMonth.d.ts +0 -2
  749. package/dist/icons/tsx/calendarViewMonth.js +0 -12
  750. package/dist/icons/tsx/calendarViewWeek.d.ts +0 -2
  751. package/dist/icons/tsx/calendarViewWeek.js +0 -12
  752. package/dist/icons/tsx/call.d.ts +0 -2
  753. package/dist/icons/tsx/call.js +0 -12
  754. package/dist/icons/tsx/caring.d.ts +0 -2
  755. package/dist/icons/tsx/caring.js +0 -12
  756. package/dist/icons/tsx/chat.d.ts +0 -2
  757. package/dist/icons/tsx/chat.js +0 -12
  758. package/dist/icons/tsx/check.d.ts +0 -2
  759. package/dist/icons/tsx/check.js +0 -12
  760. package/dist/icons/tsx/checkCircled.d.ts +0 -2
  761. package/dist/icons/tsx/checkCircled.js +0 -12
  762. package/dist/icons/tsx/checklist.d.ts +0 -2
  763. package/dist/icons/tsx/checklist.js +0 -12
  764. package/dist/icons/tsx/chevronDown.d.ts +0 -2
  765. package/dist/icons/tsx/chevronDown.js +0 -12
  766. package/dist/icons/tsx/chevronFirst.d.ts +0 -2
  767. package/dist/icons/tsx/chevronFirst.js +0 -12
  768. package/dist/icons/tsx/chevronLargeLeft.d.ts +0 -2
  769. package/dist/icons/tsx/chevronLargeLeft.js +0 -12
  770. package/dist/icons/tsx/chevronLargeRight.d.ts +0 -2
  771. package/dist/icons/tsx/chevronLargeRight.js +0 -12
  772. package/dist/icons/tsx/chevronLast.d.ts +0 -2
  773. package/dist/icons/tsx/chevronLast.js +0 -12
  774. package/dist/icons/tsx/chevronLeft.d.ts +0 -2
  775. package/dist/icons/tsx/chevronLeft.js +0 -12
  776. package/dist/icons/tsx/chevronRight.d.ts +0 -2
  777. package/dist/icons/tsx/chevronRight.js +0 -12
  778. package/dist/icons/tsx/chevronUp.d.ts +0 -2
  779. package/dist/icons/tsx/chevronUp.js +0 -12
  780. package/dist/icons/tsx/close.d.ts +0 -2
  781. package/dist/icons/tsx/close.js +0 -12
  782. package/dist/icons/tsx/closeCircled.d.ts +0 -2
  783. package/dist/icons/tsx/closeCircled.js +0 -12
  784. package/dist/icons/tsx/closeSmall.d.ts +0 -2
  785. package/dist/icons/tsx/closeSmall.js +0 -12
  786. package/dist/icons/tsx/cloud.d.ts +0 -2
  787. package/dist/icons/tsx/cloud.js +0 -12
  788. package/dist/icons/tsx/collapse.d.ts +0 -2
  789. package/dist/icons/tsx/collapse.js +0 -12
  790. package/dist/icons/tsx/comment.d.ts +0 -2
  791. package/dist/icons/tsx/comment.js +0 -12
  792. package/dist/icons/tsx/copy.d.ts +0 -2
  793. package/dist/icons/tsx/copy.js +0 -12
  794. package/dist/icons/tsx/court.d.ts +0 -2
  795. package/dist/icons/tsx/court.js +0 -12
  796. package/dist/icons/tsx/dateRange.d.ts +0 -2
  797. package/dist/icons/tsx/dateRange.js +0 -12
  798. package/dist/icons/tsx/deaths.d.ts +0 -2
  799. package/dist/icons/tsx/deaths.js +0 -12
  800. package/dist/icons/tsx/doubleChevronLeft.d.ts +0 -2
  801. package/dist/icons/tsx/doubleChevronLeft.js +0 -12
  802. package/dist/icons/tsx/doubleChevronRight.d.ts +0 -2
  803. package/dist/icons/tsx/doubleChevronRight.js +0 -12
  804. package/dist/icons/tsx/download.d.ts +0 -2
  805. package/dist/icons/tsx/download.js +0 -12
  806. package/dist/icons/tsx/downloadDone.d.ts +0 -2
  807. package/dist/icons/tsx/downloadDone.js +0 -12
  808. package/dist/icons/tsx/dragHandle.d.ts +0 -2
  809. package/dist/icons/tsx/dragHandle.js +0 -12
  810. package/dist/icons/tsx/edit.d.ts +0 -2
  811. package/dist/icons/tsx/edit.js +0 -12
  812. package/dist/icons/tsx/error.d.ts +0 -2
  813. package/dist/icons/tsx/error.js +0 -12
  814. package/dist/icons/tsx/exclaim.d.ts +0 -2
  815. package/dist/icons/tsx/exclaim.js +0 -12
  816. package/dist/icons/tsx/expand.d.ts +0 -2
  817. package/dist/icons/tsx/expand.js +0 -12
  818. package/dist/icons/tsx/facebook.d.ts +0 -2
  819. package/dist/icons/tsx/facebook.js +0 -12
  820. package/dist/icons/tsx/family.d.ts +0 -2
  821. package/dist/icons/tsx/family.js +0 -12
  822. package/dist/icons/tsx/feedback.d.ts +0 -2
  823. package/dist/icons/tsx/feedback.js +0 -12
  824. package/dist/icons/tsx/file.d.ts +0 -2
  825. package/dist/icons/tsx/file.js +0 -12
  826. package/dist/icons/tsx/fileAdd.d.ts +0 -2
  827. package/dist/icons/tsx/fileAdd.js +0 -12
  828. package/dist/icons/tsx/fileText.d.ts +0 -2
  829. package/dist/icons/tsx/fileText.js +0 -12
  830. package/dist/icons/tsx/filter.d.ts +0 -2
  831. package/dist/icons/tsx/filter.js +0 -12
  832. package/dist/icons/tsx/filterList.d.ts +0 -2
  833. package/dist/icons/tsx/filterList.js +0 -12
  834. package/dist/icons/tsx/filterListOff.d.ts +0 -2
  835. package/dist/icons/tsx/filterListOff.js +0 -12
  836. package/dist/icons/tsx/filterOff.d.ts +0 -2
  837. package/dist/icons/tsx/filterOff.js +0 -12
  838. package/dist/icons/tsx/findInPage.d.ts +0 -2
  839. package/dist/icons/tsx/findInPage.js +0 -12
  840. package/dist/icons/tsx/folder.d.ts +0 -2
  841. package/dist/icons/tsx/folder.js +0 -12
  842. package/dist/icons/tsx/folderAdd.d.ts +0 -2
  843. package/dist/icons/tsx/folderAdd.js +0 -12
  844. package/dist/icons/tsx/fullsceenExit.d.ts +0 -2
  845. package/dist/icons/tsx/fullsceenExit.js +0 -12
  846. package/dist/icons/tsx/fullscreen.d.ts +0 -2
  847. package/dist/icons/tsx/fullscreen.js +0 -12
  848. package/dist/icons/tsx/gavel.d.ts +0 -2
  849. package/dist/icons/tsx/gavel.js +0 -18
  850. package/dist/icons/tsx/help.d.ts +0 -2
  851. package/dist/icons/tsx/help.js +0 -12
  852. package/dist/icons/tsx/helpFilled.d.ts +0 -2
  853. package/dist/icons/tsx/helpFilled.js +0 -12
  854. package/dist/icons/tsx/home.d.ts +0 -2
  855. package/dist/icons/tsx/home.js +0 -12
  856. package/dist/icons/tsx/hourglassBottom.d.ts +0 -2
  857. package/dist/icons/tsx/hourglassBottom.js +0 -12
  858. package/dist/icons/tsx/hourglassDisabled.d.ts +0 -2
  859. package/dist/icons/tsx/hourglassDisabled.js +0 -12
  860. package/dist/icons/tsx/hourglassEmpty.d.ts +0 -2
  861. package/dist/icons/tsx/hourglassEmpty.js +0 -12
  862. package/dist/icons/tsx/hourglassFull.d.ts +0 -2
  863. package/dist/icons/tsx/hourglassFull.js +0 -12
  864. package/dist/icons/tsx/hourglassTop.d.ts +0 -2
  865. package/dist/icons/tsx/hourglassTop.js +0 -12
  866. package/dist/icons/tsx/image.d.ts +0 -2
  867. package/dist/icons/tsx/image.js +0 -12
  868. package/dist/icons/tsx/index.d.ts +0 -149
  869. package/dist/icons/tsx/info.d.ts +0 -2
  870. package/dist/icons/tsx/info.js +0 -12
  871. package/dist/icons/tsx/instagram.d.ts +0 -2
  872. package/dist/icons/tsx/instagram.js +0 -12
  873. package/dist/icons/tsx/jordskifterett.d.ts +0 -2
  874. package/dist/icons/tsx/jordskifterett.js +0 -24
  875. package/dist/icons/tsx/key.d.ts +0 -2
  876. package/dist/icons/tsx/key.js +0 -12
  877. package/dist/icons/tsx/lagmannsrett.d.ts +0 -2
  878. package/dist/icons/tsx/lagmannsrett.js +0 -12
  879. package/dist/icons/tsx/language.d.ts +0 -2
  880. package/dist/icons/tsx/language.js +0 -12
  881. package/dist/icons/tsx/libraryAdd.d.ts +0 -2
  882. package/dist/icons/tsx/libraryAdd.js +0 -12
  883. package/dist/icons/tsx/lineChart.d.ts +0 -2
  884. package/dist/icons/tsx/lineChart.js +0 -12
  885. package/dist/icons/tsx/link.d.ts +0 -2
  886. package/dist/icons/tsx/link.js +0 -12
  887. package/dist/icons/tsx/linkOff.d.ts +0 -2
  888. package/dist/icons/tsx/linkOff.js +0 -12
  889. package/dist/icons/tsx/linkedIn.d.ts +0 -2
  890. package/dist/icons/tsx/linkedIn.js +0 -14
  891. package/dist/icons/tsx/list.d.ts +0 -2
  892. package/dist/icons/tsx/list.js +0 -12
  893. package/dist/icons/tsx/listAlt.d.ts +0 -2
  894. package/dist/icons/tsx/listAlt.js +0 -12
  895. package/dist/icons/tsx/location.d.ts +0 -2
  896. package/dist/icons/tsx/location.js +0 -12
  897. package/dist/icons/tsx/lock.d.ts +0 -2
  898. package/dist/icons/tsx/lock.js +0 -12
  899. package/dist/icons/tsx/lockOpen.d.ts +0 -2
  900. package/dist/icons/tsx/lockOpen.js +0 -12
  901. package/dist/icons/tsx/login.d.ts +0 -2
  902. package/dist/icons/tsx/login.js +0 -12
  903. package/dist/icons/tsx/logout.d.ts +0 -2
  904. package/dist/icons/tsx/logout.js +0 -12
  905. package/dist/icons/tsx/mail.d.ts +0 -2
  906. package/dist/icons/tsx/mail.js +0 -12
  907. package/dist/icons/tsx/mailOpen.d.ts +0 -2
  908. package/dist/icons/tsx/mailOpen.js +0 -12
  909. package/dist/icons/tsx/menu.d.ts +0 -2
  910. package/dist/icons/tsx/menu.js +0 -12
  911. package/dist/icons/tsx/minus.d.ts +0 -2
  912. package/dist/icons/tsx/minus.js +0 -12
  913. package/dist/icons/tsx/minusCircled.d.ts +0 -2
  914. package/dist/icons/tsx/minusCircled.js +0 -12
  915. package/dist/icons/tsx/moreHorizontal.d.ts +0 -2
  916. package/dist/icons/tsx/moreHorizontal.js +0 -12
  917. package/dist/icons/tsx/moreVertical.d.ts +0 -2
  918. package/dist/icons/tsx/moreVertical.js +0 -12
  919. package/dist/icons/tsx/notarial.d.ts +0 -2
  920. package/dist/icons/tsx/notarial.js +0 -12
  921. package/dist/icons/tsx/notifications.d.ts +0 -2
  922. package/dist/icons/tsx/notifications.js +0 -12
  923. package/dist/icons/tsx/notificationsOff.d.ts +0 -2
  924. package/dist/icons/tsx/notificationsOff.js +0 -12
  925. package/dist/icons/tsx/onlineMeeting.d.ts +0 -2
  926. package/dist/icons/tsx/onlineMeeting.js +0 -12
  927. package/dist/icons/tsx/openExternal.d.ts +0 -2
  928. package/dist/icons/tsx/openExternal.js +0 -12
  929. package/dist/icons/tsx/payout.d.ts +0 -2
  930. package/dist/icons/tsx/payout.js +0 -12
  931. package/dist/icons/tsx/pdf.d.ts +0 -2
  932. package/dist/icons/tsx/pdf.js +0 -12
  933. package/dist/icons/tsx/person.d.ts +0 -2
  934. package/dist/icons/tsx/person.js +0 -12
  935. package/dist/icons/tsx/personAdd.d.ts +0 -2
  936. package/dist/icons/tsx/personAdd.js +0 -12
  937. package/dist/icons/tsx/pin.d.ts +0 -2
  938. package/dist/icons/tsx/pin.js +0 -12
  939. package/dist/icons/tsx/plus.d.ts +0 -2
  940. package/dist/icons/tsx/plus.js +0 -12
  941. package/dist/icons/tsx/plusCircled.d.ts +0 -2
  942. package/dist/icons/tsx/plusCircled.js +0 -12
  943. package/dist/icons/tsx/print.d.ts +0 -2
  944. package/dist/icons/tsx/print.js +0 -14
  945. package/dist/icons/tsx/property.d.ts +0 -2
  946. package/dist/icons/tsx/property.js +0 -14
  947. package/dist/icons/tsx/publish.d.ts +0 -2
  948. package/dist/icons/tsx/publish.js +0 -12
  949. package/dist/icons/tsx/questionAnswer.d.ts +0 -2
  950. package/dist/icons/tsx/questionAnswer.js +0 -12
  951. package/dist/icons/tsx/receipt.d.ts +0 -2
  952. package/dist/icons/tsx/receipt.js +0 -12
  953. package/dist/icons/tsx/redo.d.ts +0 -2
  954. package/dist/icons/tsx/redo.js +0 -12
  955. package/dist/icons/tsx/refresh.d.ts +0 -2
  956. package/dist/icons/tsx/refresh.js +0 -12
  957. package/dist/icons/tsx/replay.d.ts +0 -2
  958. package/dist/icons/tsx/replay.js +0 -12
  959. package/dist/icons/tsx/search.d.ts +0 -2
  960. package/dist/icons/tsx/search.js +0 -12
  961. package/dist/icons/tsx/settings.d.ts +0 -2
  962. package/dist/icons/tsx/settings.js +0 -12
  963. package/dist/icons/tsx/sms.d.ts +0 -2
  964. package/dist/icons/tsx/sms.js +0 -12
  965. package/dist/icons/tsx/star.d.ts +0 -2
  966. package/dist/icons/tsx/star.js +0 -12
  967. package/dist/icons/tsx/starFilled.d.ts +0 -2
  968. package/dist/icons/tsx/starFilled.js +0 -12
  969. package/dist/icons/tsx/starHalfFilled.d.ts +0 -2
  970. package/dist/icons/tsx/starHalfFilled.js +0 -12
  971. package/dist/icons/tsx/sync.d.ts +0 -2
  972. package/dist/icons/tsx/sync.js +0 -12
  973. package/dist/icons/tsx/thumbdown.d.ts +0 -2
  974. package/dist/icons/tsx/thumbdown.js +0 -12
  975. package/dist/icons/tsx/thumbdownFilled.d.ts +0 -2
  976. package/dist/icons/tsx/thumbdownFilled.js +0 -12
  977. package/dist/icons/tsx/thumbup.d.ts +0 -2
  978. package/dist/icons/tsx/thumbup.js +0 -12
  979. package/dist/icons/tsx/thumbupFilled.d.ts +0 -2
  980. package/dist/icons/tsx/thumbupFilled.js +0 -12
  981. package/dist/icons/tsx/time.d.ts +0 -2
  982. package/dist/icons/tsx/time.js +0 -12
  983. package/dist/icons/tsx/tingrett.d.ts +0 -2
  984. package/dist/icons/tsx/tingrett.js +0 -12
  985. package/dist/icons/tsx/tip.d.ts +0 -2
  986. package/dist/icons/tsx/tip.js +0 -12
  987. package/dist/icons/tsx/trash.d.ts +0 -2
  988. package/dist/icons/tsx/trash.js +0 -12
  989. package/dist/icons/tsx/trendingDown.d.ts +0 -2
  990. package/dist/icons/tsx/trendingDown.js +0 -12
  991. package/dist/icons/tsx/trendingUp.d.ts +0 -2
  992. package/dist/icons/tsx/trendingUp.js +0 -12
  993. package/dist/icons/tsx/twitter.d.ts +0 -2
  994. package/dist/icons/tsx/twitter.js +0 -12
  995. package/dist/icons/tsx/undo.d.ts +0 -2
  996. package/dist/icons/tsx/undo.js +0 -12
  997. package/dist/icons/tsx/unfoldLess.d.ts +0 -2
  998. package/dist/icons/tsx/unfoldLess.js +0 -12
  999. package/dist/icons/tsx/unfoldMore.d.ts +0 -2
  1000. package/dist/icons/tsx/unfoldMore.js +0 -12
  1001. package/dist/icons/tsx/upload.d.ts +0 -2
  1002. package/dist/icons/tsx/upload.js +0 -12
  1003. package/dist/icons/tsx/visibilityOff.d.ts +0 -2
  1004. package/dist/icons/tsx/visibilityOff.js +0 -12
  1005. package/dist/icons/tsx/visibilityOn.d.ts +0 -2
  1006. package/dist/icons/tsx/visibilityOn.js +0 -12
  1007. package/dist/icons/tsx/warning.d.ts +0 -2
  1008. package/dist/icons/tsx/warning.js +0 -14
  1009. package/dist/icons/tsx/zoomIn.d.ts +0 -2
  1010. package/dist/icons/tsx/zoomIn.js +0 -12
  1011. package/dist/icons/tsx/zoomOut.d.ts +0 -2
  1012. package/dist/icons/tsx/zoomOut.js +0 -12
  1013. package/dist/icons/utils/StyledSvg.d.ts +0 -4
  1014. package/dist/icons/utils/StyledSvg.js +0 -21
  1015. package/dist/icons/utils/SvgWrapper.d.ts +0 -2
  1016. package/dist/icons/utils/SvgWrapper.js +0 -16
  1017. package/dist/icons/utils/index.d.ts +0 -2
  1018. package/dist/icons/utils/propTypes.d.ts +0 -5
  1019. package/dist/types/BaseComponentProps.d.ts +0 -58
  1020. package/dist/types/BaseComponentProps.js +0 -66
  1021. package/dist/types/CheckboxPickedHTMLAttributes.d.ts +0 -2
  1022. package/dist/types/Direction.d.ts +0 -1
  1023. package/dist/types/index.d.ts +0 -4
  1024. package/dist/types/utils.d.ts +0 -15
  1025. package/dist/utils/color.d.ts +0 -30
  1026. package/dist/utils/color.js +0 -38
  1027. package/dist/utils/combineHandlers.d.ts +0 -1
  1028. package/dist/utils/combineHandlers.js +0 -9
  1029. package/dist/utils/getFocusableElements.d.ts +0 -2
  1030. package/dist/utils/getFocusableElements.js +0 -5
  1031. package/dist/utils/getScrollbarSize.d.ts +0 -1
  1032. package/dist/utils/idGenerator.d.ts +0 -2
  1033. package/dist/utils/idGenerator.js +0 -9
  1034. package/dist/utils/index.d.ts +0 -7
  1035. package/dist/utils/searchFilter.d.ts +0 -2
  1036. package/dist/utils/searchFilter.js +0 -10
  1037. package/dist/utils/text.d.ts +0 -2
  1038. package/dist/utils/text.js +0 -5
  1039. /package/dist/cjs/{helpers → components/Modal}/Backdrop/Backdrop.d.ts +0 -0
  1040. /package/dist/cjs/{helpers → components/Modal}/Backdrop/Backdrop.utils.d.ts +0 -0
  1041. /package/dist/cjs/{helpers → components/Modal}/Backdrop/index.d.ts +0 -0
  1042. /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.stories.d.ts +0 -0
  1043. /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.tokens.d.ts +0 -0
  1044. /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/index.d.ts +0 -0
  1045. /package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.d.ts +0 -0
  1046. /package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/index.d.ts +0 -0
  1047. /package/dist/cjs/{helpers → components}/SelectionControl/SelectionControl.tokens.d.ts +0 -0
  1048. /package/dist/cjs/{helpers → components}/SelectionControl/SelectionControl.utils.d.ts +0 -0
  1049. /package/dist/{assets/svg → components/Datepicker}/calendar_today.svg.js +0 -0
  1050. /package/dist/{assets/svg → components/List}/bullets/jordskifterett_bullet1.svg.js +0 -0
  1051. /package/dist/{assets/svg → components/List}/bullets/lagmannsrett_bullet2.svg.js +0 -0
  1052. /package/dist/{assets/svg → components/List}/bullets/tingrett_bullet3.svg.js +0 -0
  1053. /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.d.ts +0 -0
  1054. /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.utils.d.ts +0 -0
  1055. /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.utils.js +0 -0
  1056. /package/dist/{helpers → components/Modal}/Backdrop/index.d.ts +0 -0
  1057. /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.stories.d.ts +0 -0
  1058. /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.tokens.d.ts +0 -0
  1059. /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.js +0 -0
  1060. /package/dist/components/{Checkbox → SelectionControl/Checkbox}/index.d.ts +0 -0
  1061. /package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.d.ts +0 -0
  1062. /package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.js +0 -0
  1063. /package/dist/components/{RadioButton → SelectionControl/RadioButton}/index.d.ts +0 -0
  1064. /package/dist/{helpers → components}/SelectionControl/SelectionControl.tokens.d.ts +0 -0
  1065. /package/dist/{helpers → components}/SelectionControl/SelectionControl.utils.d.ts +0 -0
  1066. /package/dist/{helpers → components}/SelectionControl/SelectionControl.utils.js +0 -0
@@ -1,33 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import '../../../helpers/Backdrop/Backdrop.js';
5
- import '../../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
6
- import '../../../helpers/HiddenInput/HiddenInput.js';
7
- import '../../../helpers/Input/Input.styles.js';
8
- import '../../../helpers/Input/Input.tokens.js';
9
- import '../../InputMessage/InputMessage.js';
10
- import '../../../helpers/Paper/Paper.js';
11
- import { RequiredMarker } from '../../../helpers/RequiredMarker/RequiredMarker.js';
12
- import '../../../hooks/useFloatPosition.js';
13
- import '../../../utils/color.js';
14
- import '../../../hooks/useScreenSize.js';
15
- import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
16
- import { Typography } from '../Typography/Typography.js';
17
-
18
- var Label = /*#__PURE__*/forwardRef(function (props, ref) {
19
- var showRequiredStyling = props.showRequiredStyling,
20
- id = props.id,
21
- className = props.className,
22
- htmlProps = props.htmlProps,
23
- children = props.children,
24
- rest = __rest(props, ["showRequiredStyling", "id", "className", "htmlProps", "children"]);
25
- return jsxs(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
26
- ref: ref,
27
- typographyType: "supportingStyleLabel01",
28
- children: [children, " ", showRequiredStyling && jsx(RequiredMarker, {})]
29
- }));
30
- });
31
- Label.displayName = 'Label';
32
-
33
- export { Label };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import { LabelProps } from '.';
3
- type StoryTProps = {
4
- text: string;
5
- } & LabelProps;
6
- declare const _default: {
7
- title: string;
8
- component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor">, "id" | "className"> & {
9
- showRequiredStyling?: boolean | undefined;
10
- } & {
11
- withMargins?: boolean | undefined;
12
- } & {
13
- children?: import("react").ReactNode;
14
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
15
- htmlFor?: string | undefined;
16
- } & {
17
- htmlProps?: Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor"> | undefined;
18
- } & import("react").RefAttributes<HTMLLabelElement>>;
19
- argTypes: {
20
- withMargins: {
21
- control: {
22
- type: string;
23
- };
24
- };
25
- text: {
26
- control: {
27
- type: string;
28
- };
29
- };
30
- };
31
- };
32
- export default _default;
33
- export declare const Default: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Label';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseComponentPropsWithChildren } from '../../../types';
3
- import { BaseTypographyProps } from '../Typography';
4
- export type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps>;
5
- export declare const Legend: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLLegendElement>, "id" | "className"> & {
6
- withMargins?: boolean | undefined;
7
- } & {
8
- children?: import("react").ReactNode;
9
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
10
- htmlProps?: import("react").HTMLAttributes<HTMLLegendElement> | undefined;
11
- } & import("react").RefAttributes<HTMLLegendElement>>;
@@ -1,22 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
5
- import { Typography } from '../Typography/Typography.js';
6
-
7
- var Legend = /*#__PURE__*/forwardRef(function (props, ref) {
8
- var id = props.id,
9
- className = props.className,
10
- htmlProps = props.htmlProps,
11
- children = props.children,
12
- rest = __rest(props, ["id", "className", "htmlProps", "children"]);
13
- return jsx(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
14
- ref: ref,
15
- as: "legend",
16
- typographyType: "headingSans03",
17
- children: children
18
- }));
19
- });
20
- Legend.displayName = 'Legend';
21
-
22
- export { Legend };
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import { LegendProps } from '..';
3
- type StoryTProps = {
4
- text: string;
5
- } & LegendProps;
6
- declare const _default: {
7
- title: string;
8
- component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLLegendElement>, "id" | "className"> & {
9
- withMargins?: boolean | undefined;
10
- } & {
11
- children?: import("react").ReactNode;
12
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
13
- htmlProps?: import("react").HTMLAttributes<HTMLLegendElement> | undefined;
14
- } & import("react").RefAttributes<HTMLLegendElement>>;
15
- argTypes: {
16
- withMargins: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- text: {
22
- control: {
23
- type: string;
24
- };
25
- };
26
- };
27
- };
28
- export default _default;
29
- export declare const Default: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Legend';
@@ -1,23 +0,0 @@
1
- import { AnchorHTMLAttributes } from 'react';
2
- import { BaseComponentPropsWithChildren } from '../../../types';
3
- import { BaseTypographyProps, TypographyBodyType } from '../Typography/Typography.types';
4
- type PickedHTMLAttributes = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href' | 'target'>;
5
- export type LinkProps = BaseComponentPropsWithChildren<HTMLAnchorElement, {
6
- /**Spesifiserer om lenken fører til et eksternt nettsted eller åpnes i nytt vindu. Påvirker styling og setter `target` prop. */
7
- external?: boolean;
8
- /**Spesifiserer typografistil basert på utvalget for brødtekst. */
9
- typographyType?: TypographyBodyType;
10
- } & BaseTypographyProps & PickedHTMLAttributes, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof PickedHTMLAttributes>>;
11
- export declare const Link: import("react").ForwardRefExoticComponent<Pick<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target" | "onClick">, "className" | "id"> & {
12
- /**Spesifiserer om lenken fører til et eksternt nettsted eller åpnes i nytt vindu. Påvirker styling og setter `target` prop. */
13
- external?: boolean | undefined;
14
- /**Spesifiserer typografistil basert på utvalget for brødtekst. */
15
- typographyType?: ("bodySans01" | "bodySans02" | "bodySans03" | "bodySans04") | undefined;
16
- } & {
17
- withMargins?: boolean | undefined;
18
- } & {
19
- children?: import("react").ReactNode;
20
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & PickedHTMLAttributes & {
21
- htmlProps?: Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target" | "onClick"> | undefined;
22
- } & import("react").RefAttributes<HTMLAnchorElement>>;
23
- export {};
@@ -1,39 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import styled from 'styled-components';
5
- import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
6
- import { getAnchorStyling } from '../Typography.utils.js';
7
-
8
- var StyledLink = styled.a.withConfig({
9
- displayName: "Link__StyledLink",
10
- componentId: "sc-6r1xu5-0"
11
- })(["", ""], function (_ref) {
12
- var external = _ref.external,
13
- typographyType = _ref.typographyType,
14
- withMargins = _ref.withMargins;
15
- return getAnchorStyling(external, undefined, typographyType, withMargins);
16
- });
17
- var Link = /*#__PURE__*/forwardRef(function (props, ref) {
18
- var id = props.id,
19
- className = props.className,
20
- htmlProps = props.htmlProps,
21
- children = props.children,
22
- typographyType = props.typographyType,
23
- external = props.external,
24
- target = props.target,
25
- rest = __rest(props, ["id", "className", "htmlProps", "children", "typographyType", "external", "target"]);
26
- var linkProps = Object.assign(Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
27
- typographyType: typographyType,
28
- ref: ref,
29
- rel: 'noopener noreferer',
30
- target: external ? '_blank' : target ? target : undefined,
31
- external: external
32
- }), rest);
33
- return jsx(StyledLink, Object.assign({}, linkProps, {
34
- children: children
35
- }));
36
- });
37
- Link.displayName = 'Link';
38
-
39
- export { Link };
@@ -1,48 +0,0 @@
1
- /// <reference types="react" />
2
- import { LinkProps } from '.';
3
- type StoryTProps = {
4
- text: string;
5
- } & LinkProps;
6
- declare const _default: {
7
- title: string;
8
- component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target">, "id" | "className"> & {
9
- external?: boolean | undefined;
10
- typographyType?: ("bodySans01" | "bodySans02" | "bodySans03" | "bodySans04") | undefined;
11
- } & {
12
- withMargins?: boolean | undefined;
13
- } & {
14
- children?: import("react").ReactNode;
15
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
16
- href?: string | undefined;
17
- onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
18
- target?: import("react").HTMLAttributeAnchorTarget | undefined;
19
- } & {
20
- htmlProps?: Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target"> | undefined;
21
- } & import("react").RefAttributes<HTMLAnchorElement>>;
22
- argTypes: {
23
- typographyType: {
24
- control: {
25
- type: string;
26
- };
27
- };
28
- withMargins: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- text: {
34
- control: {
35
- type: string;
36
- };
37
- };
38
- href: {
39
- control: {
40
- type: string;
41
- };
42
- };
43
- };
44
- };
45
- export default _default;
46
- export declare const Overview: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
47
- export declare const Default: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
48
- export declare const Examples: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Link';
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseComponentPropsWithChildren } from '../../../types';
3
- import { BaseTypographyProps, TypographyBodyType, TypographyLeadType } from '../Typography';
4
- export type ParagraphProps = BaseComponentPropsWithChildren<HTMLParagraphElement, {
5
- /**Spesifiserer typografistil basert på utvalget for brødtekst og ingress. */
6
- typographyType?: TypographyBodyType | TypographyLeadType;
7
- } & BaseTypographyProps>;
8
- export declare const Paragraph: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLParagraphElement>, "id" | "className"> & {
9
- /**Spesifiserer typografistil basert på utvalget for brødtekst og ingress. */
10
- typographyType?: ("bodySans01" | "bodySans02" | "bodySans03" | "bodySans04") | TypographyLeadType | undefined;
11
- } & {
12
- withMargins?: boolean | undefined;
13
- } & {
14
- children?: import("react").ReactNode;
15
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
16
- htmlProps?: import("react").HTMLAttributes<HTMLParagraphElement> | undefined;
17
- } & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -1,25 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
5
- import { Typography } from '../Typography/Typography.js';
6
-
7
- var Paragraph = /*#__PURE__*/forwardRef(function (props, ref) {
8
- var id = props.id,
9
- className = props.className,
10
- htmlProps = props.htmlProps,
11
- children = props.children,
12
- _props$typographyType = props.typographyType,
13
- typographyType = _props$typographyType === void 0 ? 'bodySans02' : _props$typographyType,
14
- rest = __rest(props, ["id", "className", "htmlProps", "children", "typographyType"]);
15
- var paragraphProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
16
- typographyType: typographyType,
17
- ref: ref
18
- });
19
- return jsx(Typography, Object.assign({}, paragraphProps, {
20
- children: children
21
- }));
22
- });
23
- Paragraph.displayName = 'Paragraph';
24
-
25
- export { Paragraph };
@@ -1,37 +0,0 @@
1
- /// <reference types="react" />
2
- import { ParagraphProps } from '.';
3
- type StoryTProps = {
4
- text: string;
5
- } & ParagraphProps;
6
- declare const _default: {
7
- title: string;
8
- component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLParagraphElement>, "id" | "className"> & {
9
- typographyType?: ("bodySans01" | "bodySans02" | "bodySans03" | "bodySans04") | import("..").TypographyLeadType | undefined;
10
- } & {
11
- withMargins?: boolean | undefined;
12
- } & {
13
- children?: import("react").ReactNode;
14
- } & Pick<import("react").HTMLAttributes<HTMLElement>, "style"> & {
15
- htmlProps?: import("react").HTMLAttributes<HTMLParagraphElement> | undefined;
16
- } & import("react").RefAttributes<HTMLParagraphElement>>;
17
- argTypes: {
18
- typographyType: {
19
- control: {
20
- type: string;
21
- };
22
- };
23
- withMargins: {
24
- control: {
25
- type: string;
26
- };
27
- };
28
- text: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- };
34
- };
35
- export default _default;
36
- export declare const Overview: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
37
- export declare const Default: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Paragraph';
@@ -1,25 +0,0 @@
1
- import { HTMLAttributes, AnchorHTMLAttributes } from 'react';
2
- import { OtherTypographyType, AnchorTypographyType, LabelTypographyType, TypographyComponentProps } from './Typography.types';
3
- import { BaseComponentProps } from '../../../types';
4
- type AnchorTypographyProps = BaseComponentProps<HTMLAnchorElement, TypographyComponentProps & {
5
- /**nativ `href`-prop ved `typographyType='a'`. */
6
- href?: string | undefined;
7
- /** Spesifiserer om lenka er ekstern ved `typographyType='a'` eller `as='a'`.*/
8
- externalLink?: boolean;
9
- /**nativ `target`-prop ved `typographyType='a'`. */
10
- target?: string;
11
- }, AnchorHTMLAttributes<HTMLAnchorElement>>;
12
- type LabelTypographyProps = BaseComponentProps<HTMLLabelElement, TypographyComponentProps, HTMLAttributes<HTMLLabelElement>>;
13
- type OtherTypographyProps = BaseComponentProps<HTMLElement, TypographyComponentProps, HTMLAttributes<HTMLElement>>;
14
- export type TypographyProps = ({
15
- /**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
16
- typographyType?: AnchorTypographyType;
17
- } & AnchorTypographyProps) | ({
18
- /**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
19
- typographyType?: LabelTypographyType;
20
- } & LabelTypographyProps) | ({
21
- /**Styling basert på det typografiske utvalget definert i Figma. Returnerer default HTML tag for hver type. **OBS!** Ved bruk av `'a'` er det flere tilgjengelige props, se under. */
22
- typographyType?: OtherTypographyType;
23
- } & OtherTypographyProps);
24
- export declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<HTMLElement>>;
25
- export {};
@@ -1,86 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import styled, { css } from 'styled-components';
5
- import { typographyTokens } from '../Typography.tokens.js';
6
- import '../../../helpers/styling/focusVisible.js';
7
- import '../../../helpers/styling/hover.js';
8
- import '../../../helpers/styling/focus.js';
9
- import '../../../helpers/styling/danger.js';
10
- import { selection } from '../../../helpers/styling/selection.js';
11
- import { getBaseHTMLProps } from '../../../types/BaseComponentProps.js';
12
- import { getAnchorStyling, getMarginStyling, getAdditionalFontStyle, getElementType } from '../Typography.utils.js';
13
- import { getTextColor } from '../../../utils/color.js';
14
-
15
- var StyledTypography = styled.p.withConfig({
16
- displayName: "Typography__StyledTypography",
17
- componentId: "sc-1tegrnl-0"
18
- })(["user-select:text;&::selection,*::selection{", "}", " ", " ", " color:", ";", " ", ";"], selection, function (_ref) {
19
- var typographyType = _ref.typographyType,
20
- externalLink = _ref.externalLink,
21
- interactionProps = _ref.interactionProps;
22
- return typographyType === 'a' ? css(["", ""], getAnchorStyling(externalLink, interactionProps)) : css(["color:", ";", ";"], typographyTokens.typographyType[typographyType].base.color, typographyTokens.typographyType[typographyType].base.font);
23
- }, function (_ref2) {
24
- var interactionProps = _ref2.interactionProps;
25
- return interactionProps && interactionProps.hover && css(["&:hover{", "}"], interactionProps.hover);
26
- }, function (_ref3) {
27
- var interactionProps = _ref3.interactionProps;
28
- return interactionProps && interactionProps.active && css(["&:active{", "}"], interactionProps.active);
29
- }, function (_ref4) {
30
- var color = _ref4.color;
31
- return getTextColor(color);
32
- }, function (_ref5) {
33
- var typographyType = _ref5.typographyType,
34
- as = _ref5.as,
35
- withMargins = _ref5.withMargins;
36
- return getMarginStyling(typographyType, as, withMargins);
37
- }, function (_ref6) {
38
- var bold = _ref6.bold,
39
- italic = _ref6.italic,
40
- underline = _ref6.underline;
41
- return getAdditionalFontStyle(bold, italic, underline);
42
- });
43
- var isAnchorProps = function isAnchorProps(props) {
44
- return props.typographyType === 'a';
45
- };
46
- var Typography = /*#__PURE__*/forwardRef(function (props, ref) {
47
- var _props$typographyType = props.typographyType,
48
- typographyType = _props$typographyType === void 0 ? 'bodySans02' : _props$typographyType,
49
- propAs = props.as,
50
- children = props.children,
51
- style = props.style,
52
- id = props.id,
53
- className = props.className,
54
- _props$htmlProps = props.htmlProps,
55
- htmlProps = _props$htmlProps === void 0 ? {} : _props$htmlProps,
56
- rest = __rest(props, ["typographyType", "as", "children", "style", "id", "className", "htmlProps"]);
57
- var htmlPropsStyle = htmlProps.style,
58
- restHtmlProps = __rest(htmlProps, ["style"]);
59
- var as = propAs ? propAs : getElementType(typographyType);
60
- var relProp;
61
- var targetProp;
62
- var externalLinkProp;
63
- if (isAnchorProps(props)) {
64
- var externalLink = props.externalLink,
65
- target = props.target;
66
- relProp = as === 'a' ? 'noopener noreferer' : undefined;
67
- targetProp = as !== 'a' ? undefined : externalLink ? '_blank' : target;
68
- externalLinkProp = as === 'a' && externalLink ? externalLink : undefined;
69
- }
70
- var typographyProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, restHtmlProps, rest)), {
71
- typographyType: typographyType,
72
- as: as,
73
- style: Object.assign(Object.assign({}, htmlPropsStyle), style),
74
- rel: relProp,
75
- target: targetProp,
76
- externalLink: externalLinkProp
77
- });
78
- return jsx(StyledTypography, Object.assign({
79
- ref: ref
80
- }, typographyProps, {
81
- children: children
82
- }));
83
- });
84
- Typography.displayName = 'Typography';
85
-
86
- export { Typography };
@@ -1,64 +0,0 @@
1
- /// <reference types="react" />
2
- import { TypographyProps } from '..';
3
- type StoryTProps = {
4
- text: string;
5
- } & TypographyProps;
6
- declare const _default: {
7
- title: string;
8
- component: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<HTMLElement>>;
9
- argTypes: {
10
- typographyType: {
11
- control: {
12
- type: string;
13
- };
14
- };
15
- bold: {
16
- control: {
17
- type: string;
18
- };
19
- };
20
- italic: {
21
- control: {
22
- type: string;
23
- };
24
- };
25
- withMargins: {
26
- control: {
27
- type: string;
28
- };
29
- };
30
- externalLink: {
31
- control: {
32
- type: string;
33
- };
34
- };
35
- color: {
36
- control: {
37
- type: string;
38
- };
39
- };
40
- href: {
41
- control: {
42
- type: string;
43
- };
44
- };
45
- text: {
46
- control: {
47
- type: string;
48
- };
49
- };
50
- as: {
51
- control: {
52
- type: string;
53
- };
54
- };
55
- };
56
- parameters: {
57
- controls: {
58
- exclude: string[];
59
- };
60
- };
61
- };
62
- export default _default;
63
- export declare const Default: (args: StoryTProps) => import("react/jsx-runtime").JSX.Element;
64
- export declare const Article: () => import("react/jsx-runtime").JSX.Element;
@@ -1,36 +0,0 @@
1
- import { CSSProperties, ElementType, HTMLAttributes, PropsWithChildren } from 'react';
2
- import { TextColor } from '../../../utils';
3
- type TypographyBodySansType = 'bodySans01' | 'bodySans02' | 'bodySans03' | 'bodySans04';
4
- export type TypographyBodyType = TypographyBodySansType;
5
- export type TypographyHeadingType = 'headingSans01' | 'headingSans02' | 'headingSans03' | 'headingSans04' | 'headingSans05' | 'headingSans06' | 'headingSans07' | 'headingSans08';
6
- export type TypographyLeadType = 'leadSans01' | 'leadSans02' | 'leadSans03' | 'leadSans04' | 'leadSans05';
7
- type TypographySupportingType = 'supportingStyleHelperText01' | 'supportingStylePlaceholderText01' | 'supportingStylePlaceholderText02' | 'supportingStylePlaceholderText03' | 'supportingStyleTiny01' | 'supportingStyleTiny02';
8
- export type AnchorTypographyType = 'a';
9
- export type LabelTypographyType = 'supportingStyleLabel01';
10
- export type OtherTypographyType = TypographyHeadingType | TypographyBodyType | TypographyLeadType | TypographySupportingType;
11
- export type TypographyType = AnchorTypographyType | LabelTypographyType | OtherTypographyType;
12
- export type StaticTypographyType = OtherTypographyType | LabelTypographyType;
13
- export type InlineElement = 'a' | 'abbr' | 'audio' | 'b' | 'bdi' | 'bdo' | 'big' | 'br' | 'button' | 'canvas' | 'cite' | 'code' | 'data' | 'datalist' | 'del' | 'dfn' | 'em' | 'embed' | 'i' | 'iframe' | 'img' | 'input' | 'ins' | 'kbd' | 'label' | 'map' | 'mark' | 'meter' | 'noscript' | 'object' | 'output' | 'picture' | 'progress' | 'q' | 'ruby' | 's' | 'samp' | 'script' | 'select' | 'slot' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'svg' | 'template' | 'textarea' | 'time' | 'u' | 'var' | 'video' | 'wbr';
14
- export type TypographyInteractionStyling = {
15
- hover?: CSSProperties;
16
- active?: CSSProperties;
17
- };
18
- export type BaseTypographyProps = PropsWithChildren<{
19
- /**Spesifiserer om tekstelementet skal ha spacing definert i Elsa. Brukes hovedsakelig i artikler og lignende. **OBS!** har forskjellig virkning på ulike typografityper. `body` og `lead`-typer får margin på bunnen, `heading`-typer får margin på bunnen og padding på toppen mens `supportingStyles` får margin topp og bunn. */
20
- withMargins?: boolean;
21
- }> & Pick<HTMLAttributes<HTMLElement>, 'style'>;
22
- export type TypographyComponentProps = BaseTypographyProps & {
23
- /**Tekstfarge fra utvalget eller custom. **OBS!** Bruk farger fra `@dds-design-tokens`. */
24
- color?: TextColor;
25
- /**Setter `bold` styling. */
26
- bold?: boolean;
27
- /**Setter `italic` styling. */
28
- italic?: boolean;
29
- /**Setter en linje under. */
30
- underline?: boolean;
31
- /**HTML tag som skal brukes istedenfor default definert via `typographyType`. */
32
- as?: ElementType;
33
- /**Støtte for å enkelt kunne endre på hover- og active-styling. Bruk `@dds-design-tokens` til farger osv. */
34
- interactionProps?: TypographyInteractionStyling;
35
- };
36
- export {};
@@ -1,2 +0,0 @@
1
- export * from './Typography';
2
- export * from './Typography.types';