@norges-domstoler/dds-components 4.0.2 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/dist/_virtual/_rollupPluginBabelHelpers.js +101 -0
  2. package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +4 -0
  3. package/dist/assets/svg/bullets/lagmannsrett_bullet2.svg.js +4 -0
  4. package/dist/assets/svg/bullets/tingrett_bullet3.svg.js +4 -0
  5. package/dist/assets/svg/calendar_today.svg.js +4 -0
  6. package/dist/{index.css → bundle.css} +0 -0
  7. package/dist/{index.es.css → cjs/bundle.css} +0 -0
  8. package/dist/cjs/components/Breadcrumbs/Breadcrumb.d.ts +3 -0
  9. package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +10 -0
  10. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +14 -0
  11. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +23 -0
  12. package/dist/cjs/components/Breadcrumbs/index.d.ts +2 -0
  13. package/dist/cjs/components/Button/Button.d.ts +20 -0
  14. package/dist/cjs/components/Button/Button.stories.d.ts +63 -0
  15. package/dist/cjs/components/Button/Button.styles.d.ts +24 -0
  16. package/dist/cjs/components/Button/Button.tokens.d.ts +203 -0
  17. package/dist/cjs/components/Button/Button.types.d.ts +32 -0
  18. package/dist/cjs/components/Button/index.d.ts +2 -0
  19. package/dist/cjs/components/Card/Card.d.ts +23 -0
  20. package/dist/cjs/components/Card/Card.stories.d.ts +11 -0
  21. package/dist/cjs/components/Card/Card.tokens.d.ts +26 -0
  22. package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +14 -0
  23. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +23 -0
  24. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +4 -0
  25. package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +22 -0
  26. package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +17 -0
  27. package/dist/cjs/components/Card/index.d.ts +4 -0
  28. package/dist/cjs/components/Checkbox/Checkbox.d.ts +19 -0
  29. package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +58 -0
  30. package/dist/cjs/components/Checkbox/Checkbox.styles.d.ts +9 -0
  31. package/dist/cjs/components/Checkbox/Checkbox.tokens.d.ts +65 -0
  32. package/dist/cjs/components/Checkbox/Checkbox.types.d.ts +16 -0
  33. package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +18 -0
  34. package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +46 -0
  35. package/dist/cjs/components/Checkbox/CheckboxGroup.tokens.d.ts +19 -0
  36. package/dist/cjs/components/Checkbox/CheckboxGroupContext.d.ts +9 -0
  37. package/dist/cjs/components/Checkbox/index.d.ts +3 -0
  38. package/dist/cjs/components/Chip/Chip.d.ts +16 -0
  39. package/dist/cjs/components/Chip/Chip.stories.d.ts +20 -0
  40. package/dist/cjs/components/Chip/Chip.tokens.d.ts +12 -0
  41. package/dist/cjs/components/Chip/ChipGroup.d.ts +3 -0
  42. package/dist/cjs/components/Chip/ChipGroup.stories.d.ts +8 -0
  43. package/dist/cjs/components/Chip/index.d.ts +2 -0
  44. package/dist/cjs/components/Datepicker/Datepicker.d.ts +10 -0
  45. package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +55 -0
  46. package/dist/cjs/components/Datepicker/Datepicker.tokens.d.ts +9 -0
  47. package/dist/cjs/components/Datepicker/index.d.ts +1 -0
  48. package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +15 -0
  49. package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +18 -0
  50. package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +16 -0
  51. package/dist/cjs/components/DescriptionList/DescriptionListDesc.tokens.d.ts +7 -0
  52. package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +15 -0
  53. package/dist/cjs/components/DescriptionList/DescriptionListGroup.tokens.d.ts +4 -0
  54. package/dist/cjs/components/DescriptionList/DescriptionListTerm.d.ts +3 -0
  55. package/dist/cjs/components/DescriptionList/DescriptionListTerm.tokens.d.ts +13 -0
  56. package/dist/cjs/components/DescriptionList/index.d.ts +4 -0
  57. package/dist/cjs/components/Divider/Divider.d.ts +13 -0
  58. package/dist/cjs/components/Divider/Divider.stories.d.ts +15 -0
  59. package/dist/cjs/components/Divider/Divider.tokens.d.ts +8 -0
  60. package/dist/cjs/components/Divider/index.d.ts +1 -0
  61. package/dist/cjs/components/Drawer/Drawer.d.ts +50 -0
  62. package/dist/cjs/components/Drawer/Drawer.stories.d.ts +24 -0
  63. package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +17 -0
  64. package/dist/cjs/components/Drawer/DrawerGroup.d.ts +13 -0
  65. package/dist/cjs/components/Drawer/index.d.ts +2 -0
  66. package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +27 -0
  67. package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +31 -0
  68. package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +53 -0
  69. package/dist/cjs/components/GlobalMessage/index.d.ts +1 -0
  70. package/dist/cjs/components/IconWrapper/IconWrapper.d.ts +19 -0
  71. package/dist/cjs/components/IconWrapper/IconWrapper.stories.d.ts +22 -0
  72. package/dist/cjs/components/IconWrapper/index.d.ts +1 -0
  73. package/dist/cjs/components/InputMessage/InputMessage.d.ts +17 -0
  74. package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +21 -0
  75. package/dist/cjs/components/InputMessage/InputMessage.tokens.d.ts +14 -0
  76. package/dist/cjs/components/InputMessage/index.d.ts +1 -0
  77. package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +3 -0
  78. package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +40 -0
  79. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +30 -0
  80. package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +40 -0
  81. package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +35 -0
  82. package/dist/cjs/components/InternalHeader/InternalHeaderListItem.d.ts +3 -0
  83. package/dist/cjs/components/InternalHeader/NavigationItem.d.ts +14 -0
  84. package/dist/cjs/components/InternalHeader/index.d.ts +2 -0
  85. package/dist/cjs/components/List/List.d.ts +21 -0
  86. package/dist/cjs/components/List/List.stories.d.ts +18 -0
  87. package/dist/cjs/components/List/List.tokens.d.ts +16 -0
  88. package/dist/cjs/components/List/ListItem.d.ts +3 -0
  89. package/dist/cjs/components/List/ListItem.tokens.d.ts +5 -0
  90. package/dist/cjs/components/List/index.d.ts +2 -0
  91. package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +37 -0
  92. package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +39 -0
  93. package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +100 -0
  94. package/dist/cjs/components/LocalMessage/index.d.ts +1 -0
  95. package/dist/cjs/components/Modal/Modal.d.ts +30 -0
  96. package/dist/cjs/components/Modal/Modal.stories.d.ts +28 -0
  97. package/dist/cjs/components/Modal/Modal.tokens.d.ts +19 -0
  98. package/dist/cjs/components/Modal/ModalActions.d.ts +3 -0
  99. package/dist/cjs/components/Modal/ModalBody.d.ts +14 -0
  100. package/dist/cjs/components/Modal/index.d.ts +3 -0
  101. package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +23 -0
  102. package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +26 -0
  103. package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +22 -0
  104. package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +36 -0
  105. package/dist/cjs/components/OverflowMenu/OverflowMenuGroup.d.ts +14 -0
  106. package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +24 -0
  107. package/dist/cjs/components/OverflowMenu/index.d.ts +3 -0
  108. package/dist/cjs/components/Pagination/Pagination.d.ts +52 -0
  109. package/dist/cjs/components/Pagination/Pagination.stories.d.ts +48 -0
  110. package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +15 -0
  111. package/dist/cjs/components/Pagination/index.d.ts +1 -0
  112. package/dist/cjs/components/Pagination/paginationGenerator.d.ts +1 -0
  113. package/dist/cjs/components/Popover/Popover.d.ts +56 -0
  114. package/dist/cjs/components/Popover/Popover.stories.d.ts +54 -0
  115. package/dist/cjs/components/Popover/Popover.tokens.d.ts +15 -0
  116. package/dist/cjs/components/Popover/PopoverGroup.d.ts +14 -0
  117. package/dist/cjs/components/Popover/index.d.ts +2 -0
  118. package/dist/cjs/components/RadioButton/RadioButton.d.ts +16 -0
  119. package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +50 -0
  120. package/dist/cjs/components/RadioButton/RadioButton.styles.d.ts +9 -0
  121. package/dist/cjs/components/RadioButton/RadioButton.tokens.d.ts +43 -0
  122. package/dist/cjs/components/RadioButton/RadioButton.types.d.ts +12 -0
  123. package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +29 -0
  124. package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +47 -0
  125. package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +19 -0
  126. package/dist/cjs/components/RadioButton/RadioButtonGroupContext.d.ts +13 -0
  127. package/dist/cjs/components/RadioButton/index.d.ts +3 -0
  128. package/dist/cjs/components/Search/Search.d.ts +21 -0
  129. package/dist/cjs/components/Search/Search.stories.d.ts +29 -0
  130. package/dist/cjs/components/Search/Search.tokens.d.ts +25 -0
  131. package/dist/cjs/components/Search/index.d.ts +1 -0
  132. package/dist/cjs/components/Select/MultiSelect.stories.d.ts +74 -0
  133. package/dist/cjs/components/Select/Select.d.ts +32 -0
  134. package/dist/cjs/components/Select/Select.stories.d.ts +69 -0
  135. package/dist/cjs/components/Select/Select.styles.d.ts +19 -0
  136. package/dist/cjs/components/Select/Select.tokens.d.ts +144 -0
  137. package/dist/cjs/components/Select/index.d.ts +1 -0
  138. package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +21 -0
  139. package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +33 -0
  140. package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +19 -0
  141. package/dist/cjs/components/SkipToContent/index.d.ts +1 -0
  142. package/dist/cjs/components/Spinner/Spinner.d.ts +11 -0
  143. package/dist/cjs/components/Spinner/Spinner.stories.d.ts +21 -0
  144. package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +6 -0
  145. package/dist/cjs/components/Spinner/index.d.ts +1 -0
  146. package/dist/cjs/components/Table/Body.d.ts +3 -0
  147. package/dist/cjs/components/Table/Cell.d.ts +10 -0
  148. package/dist/cjs/components/Table/Cell.tokens.d.ts +31 -0
  149. package/dist/cjs/components/Table/Foot.d.ts +3 -0
  150. package/dist/cjs/components/Table/Head.d.ts +3 -0
  151. package/dist/cjs/components/Table/Row.d.ts +23 -0
  152. package/dist/cjs/components/Table/Row.tokens.d.ts +32 -0
  153. package/dist/cjs/components/Table/SortCell.d.ts +19 -0
  154. package/dist/cjs/components/Table/Table.d.ts +14 -0
  155. package/dist/cjs/components/Table/Table.stories.d.ts +28 -0
  156. package/dist/cjs/components/Table/TableWrapper.d.ts +3 -0
  157. package/dist/cjs/components/Table/index.d.ts +8 -0
  158. package/dist/cjs/components/Table/tableData.d.ts +17 -0
  159. package/dist/cjs/components/Tabs/Tab.d.ts +37 -0
  160. package/dist/cjs/components/Tabs/TabList.d.ts +3 -0
  161. package/dist/cjs/components/Tabs/TabPanel.d.ts +14 -0
  162. package/dist/cjs/components/Tabs/TabPanels.d.ts +3 -0
  163. package/dist/cjs/components/Tabs/Tabs.context.d.ts +17 -0
  164. package/dist/cjs/components/Tabs/Tabs.d.ts +27 -0
  165. package/dist/cjs/components/Tabs/Tabs.stories.d.ts +10 -0
  166. package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +38 -0
  167. package/dist/cjs/components/Tabs/index.d.ts +5 -0
  168. package/dist/cjs/components/Tag/Tag.d.ts +17 -0
  169. package/dist/cjs/components/Tag/Tag.stories.d.ts +19 -0
  170. package/dist/cjs/components/Tag/Tag.tokens.d.ts +26 -0
  171. package/dist/cjs/components/Tag/index.d.ts +1 -0
  172. package/dist/cjs/components/TextInput/CharCounter.d.ts +8 -0
  173. package/dist/cjs/components/TextInput/CharCounter.tokens.d.ts +4 -0
  174. package/dist/cjs/components/TextInput/TextInput.d.ts +10 -0
  175. package/dist/cjs/components/TextInput/TextInput.stories.d.ts +69 -0
  176. package/dist/cjs/components/TextInput/TextInput.styles.d.ts +10 -0
  177. package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +54 -0
  178. package/dist/cjs/components/TextInput/TextInput.types.d.ts +8 -0
  179. package/dist/cjs/components/TextInput/index.d.ts +2 -0
  180. package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +18 -0
  181. package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +14 -0
  182. package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +22 -0
  183. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +13 -0
  184. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.stories.d.ts +9 -0
  185. package/dist/cjs/components/ToggleButton/index.d.ts +2 -0
  186. package/dist/cjs/components/Tooltip/Tooltip.d.ts +32 -0
  187. package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +35 -0
  188. package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +8 -0
  189. package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +14 -0
  190. package/dist/cjs/components/Tooltip/index.d.ts +1 -0
  191. package/dist/cjs/components/Typography/Body.stories.d.ts +11 -0
  192. package/dist/cjs/components/Typography/Examples.stories.d.ts +8 -0
  193. package/dist/cjs/components/Typography/Typography.d.ts +48 -0
  194. package/dist/cjs/components/Typography/Typography.stories.d.ts +63 -0
  195. package/dist/cjs/components/Typography/Typography.tokens.d.ts +230 -0
  196. package/dist/cjs/components/Typography/Typography.types.d.ts +13 -0
  197. package/dist/cjs/components/Typography/index.d.ts +2 -0
  198. package/dist/cjs/helpers/Backdrop/Backdrop.d.ts +5 -0
  199. package/dist/cjs/helpers/Backdrop/Backdrop.utils.d.ts +2 -0
  200. package/dist/cjs/helpers/Backdrop/index.d.ts +2 -0
  201. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +9 -0
  202. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +7 -0
  203. package/dist/cjs/helpers/Chevron/index.d.ts +1 -0
  204. package/dist/cjs/helpers/Input/Input.styles.d.ts +15 -0
  205. package/dist/cjs/helpers/Input/Input.tokens.d.ts +78 -0
  206. package/dist/cjs/helpers/Input/Input.types.d.ts +20 -0
  207. package/dist/cjs/helpers/Input/index.d.ts +3 -0
  208. package/dist/cjs/helpers/Paper/Paper.d.ts +1 -0
  209. package/dist/cjs/helpers/Paper/Paper.tokens.d.ts +4 -0
  210. package/dist/cjs/helpers/Paper/index.d.ts +1 -0
  211. package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +2 -0
  212. package/dist/cjs/helpers/RequiredMarker/index.d.ts +1 -0
  213. package/dist/cjs/helpers/index.d.ts +5 -0
  214. package/dist/cjs/helpers/styling/danger.d.ts +4 -0
  215. package/dist/cjs/helpers/styling/focus.d.ts +9 -0
  216. package/dist/cjs/helpers/styling/focusVisible.d.ts +37 -0
  217. package/dist/cjs/helpers/styling/hideInput.d.ts +7 -0
  218. package/dist/cjs/helpers/styling/hover.d.ts +14 -0
  219. package/dist/cjs/helpers/styling/index.d.ts +8 -0
  220. package/dist/cjs/helpers/styling/removeButtonStyling.d.ts +9 -0
  221. package/dist/cjs/helpers/styling/removeListStyling.d.ts +5 -0
  222. package/dist/cjs/helpers/styling/scrollbarStyling.d.ts +3 -0
  223. package/dist/cjs/helpers/styling/visibilityTransition.d.ts +1 -0
  224. package/dist/cjs/hooks/index.d.ts +9 -0
  225. package/dist/cjs/hooks/useCombinedRefs.d.ts +2 -0
  226. package/dist/cjs/hooks/useFloatPosition.d.ts +25 -0
  227. package/dist/cjs/hooks/useFocusTrap.d.ts +2 -0
  228. package/dist/cjs/hooks/useId.d.ts +1 -0
  229. package/dist/cjs/hooks/useMountTransition.d.ts +1 -0
  230. package/dist/cjs/hooks/useOnClickOutside.d.ts +1 -0
  231. package/dist/cjs/hooks/useOnKeyDown.d.ts +1 -0
  232. package/dist/cjs/hooks/useRoveFocus.d.ts +3 -0
  233. package/dist/cjs/hooks/useScreenSize.d.ts +8 -0
  234. package/dist/cjs/index.d.ts +34 -0
  235. package/dist/cjs/index.js +7987 -0
  236. package/dist/cjs/types/BaseComponentProps.d.ts +58 -0
  237. package/dist/cjs/types/Direction.d.ts +1 -0
  238. package/dist/cjs/types/index.d.ts +2 -0
  239. package/dist/cjs/types/utils.d.ts +8 -0
  240. package/dist/cjs/utils/color.d.ts +6 -0
  241. package/dist/cjs/utils/combineHandlers.d.ts +1 -0
  242. package/dist/cjs/utils/getScrollbarSize.d.ts +1 -0
  243. package/dist/cjs/utils/idGenerator.d.ts +3 -0
  244. package/dist/cjs/utils/index.d.ts +5 -0
  245. package/dist/cjs/utils/text.d.ts +2 -0
  246. package/dist/components/Breadcrumbs/Breadcrumb.js +34 -0
  247. package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +22 -0
  248. package/dist/components/Breadcrumbs/Breadcrumbs.js +62 -0
  249. package/dist/components/Button/Button.js +90 -0
  250. package/dist/components/Button/Button.styles.js +56 -0
  251. package/dist/components/Button/Button.tokens.js +463 -0
  252. package/dist/components/Card/Card.js +54 -0
  253. package/dist/components/Card/Card.tokens.js +60 -0
  254. package/dist/components/Card/CardAccordion/CardAccordion.js +63 -0
  255. package/dist/components/Card/CardAccordion/CardAccordionBody.js +73 -0
  256. package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +12 -0
  257. package/dist/components/Card/CardAccordion/CardAccordionHeader.js +65 -0
  258. package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +38 -0
  259. package/dist/components/Checkbox/Checkbox.d.ts +6 -2
  260. package/dist/components/Checkbox/Checkbox.js +68 -0
  261. package/dist/components/Checkbox/Checkbox.stories.d.ts +6 -2
  262. package/dist/components/Checkbox/Checkbox.styles.js +45 -0
  263. package/dist/components/Checkbox/Checkbox.tokens.js +129 -0
  264. package/dist/components/Checkbox/Checkbox.types.d.ts +1 -1
  265. package/dist/components/Checkbox/CheckboxGroup.js +87 -0
  266. package/dist/components/Checkbox/CheckboxGroup.tokens.js +32 -0
  267. package/dist/components/Checkbox/CheckboxGroupContext.js +8 -0
  268. package/dist/components/Chip/Chip.js +57 -0
  269. package/dist/components/Chip/Chip.tokens.js +39 -0
  270. package/dist/components/Chip/ChipGroup.js +29 -0
  271. package/dist/components/Datepicker/Datepicker.js +91 -0
  272. package/dist/components/Datepicker/Datepicker.tokens.js +25 -0
  273. package/dist/components/DescriptionList/DescriptionList.js +34 -0
  274. package/dist/components/DescriptionList/DescriptionListDesc.js +36 -0
  275. package/dist/components/DescriptionList/DescriptionListDesc.tokens.js +19 -0
  276. package/dist/components/DescriptionList/DescriptionListGroup.js +33 -0
  277. package/dist/components/DescriptionList/DescriptionListGroup.tokens.js +11 -0
  278. package/dist/components/DescriptionList/DescriptionListTerm.js +22 -0
  279. package/dist/components/DescriptionList/DescriptionListTerm.tokens.js +27 -0
  280. package/dist/components/Divider/Divider.js +31 -0
  281. package/dist/components/Divider/Divider.tokens.js +20 -0
  282. package/dist/components/Drawer/Drawer.js +121 -0
  283. package/dist/components/Drawer/Drawer.tokens.js +34 -0
  284. package/dist/components/Drawer/DrawerGroup.js +61 -0
  285. package/dist/components/GlobalMessage/GlobalMessage.js +85 -0
  286. package/dist/components/GlobalMessage/GlobalMessage.tokens.js +83 -0
  287. package/dist/components/IconWrapper/IconWrapper.js +42 -0
  288. package/dist/components/InputMessage/InputMessage.js +46 -0
  289. package/dist/components/InputMessage/InputMessage.tokens.js +30 -0
  290. package/dist/components/InternalHeader/InternalHeader.js +122 -0
  291. package/dist/components/InternalHeader/InternalHeader.styles.js +49 -0
  292. package/dist/components/InternalHeader/InternalHeader.tokens.js +93 -0
  293. package/dist/components/InternalHeader/InternalHeaderListItem.js +22 -0
  294. package/dist/components/InternalHeader/NavigationItem.js +30 -0
  295. package/dist/components/List/List.js +48 -0
  296. package/dist/components/List/List.tokens.js +37 -0
  297. package/dist/components/List/ListItem.js +22 -0
  298. package/dist/components/List/ListItem.tokens.js +12 -0
  299. package/dist/components/LocalMessage/LocalMessage.js +124 -0
  300. package/dist/components/LocalMessage/LocalMessage.tokens.js +151 -0
  301. package/dist/components/Modal/Modal.js +122 -0
  302. package/dist/components/Modal/Modal.tokens.js +45 -0
  303. package/dist/components/Modal/ModalActions.js +23 -0
  304. package/dist/components/Modal/ModalBody.js +35 -0
  305. package/dist/components/OverflowMenu/OverflowMenu.js +164 -0
  306. package/dist/components/OverflowMenu/OverflowMenu.tokens.js +55 -0
  307. package/dist/components/OverflowMenu/OverflowMenuGroup.js +64 -0
  308. package/dist/components/OverflowMenu/OverflowMenuItem.js +116 -0
  309. package/dist/components/Pagination/Pagination.js +250 -0
  310. package/dist/components/Pagination/Pagination.tokens.js +23 -0
  311. package/dist/components/Pagination/paginationGenerator.js +42 -0
  312. package/dist/components/Popover/Popover.js +104 -0
  313. package/dist/components/Popover/Popover.tokens.js +38 -0
  314. package/dist/components/Popover/PopoverGroup.js +85 -0
  315. package/dist/components/RadioButton/RadioButton.js +90 -0
  316. package/dist/components/RadioButton/RadioButton.styles.js +34 -0
  317. package/dist/components/RadioButton/RadioButton.tokens.js +97 -0
  318. package/dist/components/RadioButton/RadioButtonGroup.js +108 -0
  319. package/dist/components/RadioButton/RadioButtonGroup.tokens.js +32 -0
  320. package/dist/components/RadioButton/RadioButtonGroupContext.js +8 -0
  321. package/dist/components/Search/Search.js +93 -0
  322. package/dist/components/Search/Search.tokens.js +55 -0
  323. package/dist/components/Select/Select.js +154 -0
  324. package/dist/components/Select/Select.styles.js +149 -0
  325. package/dist/components/Select/Select.tokens.js +311 -0
  326. package/dist/components/SkipToContent/SkipToContent.js +49 -0
  327. package/dist/components/SkipToContent/SkipToContent.tokens.js +40 -0
  328. package/dist/components/Spinner/Spinner.js +80 -0
  329. package/dist/components/Spinner/Spinner.tokens.js +13 -0
  330. package/dist/components/Table/Body.js +22 -0
  331. package/dist/components/Table/Cell.js +75 -0
  332. package/dist/components/Table/Cell.tokens.js +55 -0
  333. package/dist/components/Table/Foot.js +22 -0
  334. package/dist/components/Table/Head.js +22 -0
  335. package/dist/components/Table/Row.js +43 -0
  336. package/dist/components/Table/Row.tokens.js +68 -0
  337. package/dist/components/Table/SortCell.js +60 -0
  338. package/dist/components/Table/Table.js +34 -0
  339. package/dist/components/Table/TableWrapper.js +61 -0
  340. package/dist/components/Tabs/Tab.js +102 -0
  341. package/dist/components/Tabs/TabList.js +86 -0
  342. package/dist/components/Tabs/TabPanel.js +36 -0
  343. package/dist/components/Tabs/TabPanels.js +33 -0
  344. package/dist/components/Tabs/Tabs.context.js +22 -0
  345. package/dist/components/Tabs/Tabs.js +77 -0
  346. package/dist/components/Tabs/Tabs.tokens.js +96 -0
  347. package/dist/components/Tag/Tag.js +41 -0
  348. package/dist/components/Tag/Tag.tokens.js +54 -0
  349. package/dist/components/TextInput/CharCounter.js +37 -0
  350. package/dist/components/TextInput/CharCounter.tokens.js +11 -0
  351. package/dist/components/TextInput/TextInput.d.ts +1 -0
  352. package/dist/components/TextInput/TextInput.js +139 -0
  353. package/dist/components/TextInput/TextInput.stories.d.ts +1 -0
  354. package/dist/components/TextInput/TextInput.styles.js +34 -0
  355. package/dist/components/TextInput/TextInput.tokens.js +50 -0
  356. package/dist/components/TextInput/TextInput.types.d.ts +2 -0
  357. package/dist/components/ToggleButton/ToggleButton.js +56 -0
  358. package/dist/components/ToggleButton/ToggleButton.tokens.js +53 -0
  359. package/dist/components/ToggleButton/ToggleButtonGroup.js +57 -0
  360. package/dist/components/Tooltip/Tooltip.js +117 -0
  361. package/dist/components/Tooltip/Tooltip.styles.js +26 -0
  362. package/dist/components/Tooltip/Tooltip.tokens.js +31 -0
  363. package/dist/components/Typography/Typography.d.ts +1 -0
  364. package/dist/components/Typography/Typography.js +172 -0
  365. package/dist/components/Typography/Typography.stories.d.ts +5 -0
  366. package/dist/components/Typography/Typography.tokens.js +495 -0
  367. package/dist/components/Typography/Typography.types.d.ts +1 -0
  368. package/dist/helpers/Backdrop/Backdrop.js +13 -0
  369. package/dist/helpers/Backdrop/Backdrop.utils.js +16 -0
  370. package/dist/helpers/Chevron/AnimatedChevronUpDown.js +33 -0
  371. package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.js +29 -0
  372. package/dist/helpers/Input/Input.styles.js +39 -0
  373. package/dist/helpers/Input/Input.tokens.js +99 -0
  374. package/dist/helpers/Paper/Paper.js +10 -0
  375. package/dist/helpers/Paper/Paper.tokens.js +17 -0
  376. package/dist/helpers/RequiredMarker/RequiredMarker.js +15 -0
  377. package/dist/helpers/styling/danger.js +9 -0
  378. package/dist/helpers/styling/focus.js +15 -0
  379. package/dist/helpers/styling/focusVisible.js +43 -0
  380. package/dist/helpers/styling/hideInput.js +9 -0
  381. package/dist/helpers/styling/hover.js +20 -0
  382. package/dist/helpers/styling/removeButtonStyling.js +11 -0
  383. package/dist/helpers/styling/removeListStyling.js +7 -0
  384. package/dist/helpers/styling/scrollbarStyling.js +8 -0
  385. package/dist/helpers/styling/visibilityTransition.js +7 -0
  386. package/dist/hooks/useCombinedRefs.js +16 -0
  387. package/dist/hooks/useFloatPosition.d.ts +2 -2
  388. package/dist/hooks/useFloatPosition.js +100 -0
  389. package/dist/hooks/useFocusTrap.js +37 -0
  390. package/dist/hooks/useId.js +15 -0
  391. package/dist/hooks/useMountTransition.js +24 -0
  392. package/dist/hooks/useOnClickOutside.js +29 -0
  393. package/dist/hooks/useOnKeyDown.js +20 -0
  394. package/dist/hooks/useRoveFocus.js +40 -0
  395. package/dist/index.js +60 -33989
  396. package/dist/types/BaseComponentProps.js +72 -0
  397. package/dist/utils/color.js +9 -0
  398. package/dist/utils/combineHandlers.js +10 -0
  399. package/dist/utils/idGenerator.d.ts +1 -1
  400. package/dist/utils/idGenerator.js +19 -0
  401. package/dist/utils/text.js +5 -0
  402. package/package.json +18 -12
  403. package/dist/index.es.js +0 -33899
@@ -0,0 +1,230 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export declare const textColors: {
3
+ interactive: string;
4
+ primary: string;
5
+ danger: string;
6
+ success: string;
7
+ warning: string;
8
+ onLight: string;
9
+ onDark: string;
10
+ gray1: string;
11
+ gray2: string;
12
+ gray3: string;
13
+ gray4: string;
14
+ gray5: string;
15
+ gray6: string;
16
+ gray7: string;
17
+ gray8: string;
18
+ gray9: string;
19
+ };
20
+ export declare const textColorsArray: string[];
21
+ export declare const typographyTokens: {
22
+ selection: {
23
+ base: CSSObject;
24
+ };
25
+ typographyType: {
26
+ a: {
27
+ base: CSSObject;
28
+ hover: {
29
+ base: CSSObject;
30
+ };
31
+ margins: {
32
+ base: CSSObject;
33
+ };
34
+ focus: {
35
+ base: CSSObject;
36
+ };
37
+ bold: {
38
+ base: CSSObject;
39
+ };
40
+ icon: {
41
+ marginLeft: string;
42
+ };
43
+ };
44
+ headingSans01: {
45
+ base: CSSObject;
46
+ margins: {
47
+ base: CSSObject;
48
+ };
49
+ };
50
+ headingSans02: {
51
+ base: CSSObject;
52
+ margins: {
53
+ base: CSSObject;
54
+ };
55
+ };
56
+ headingSans03: {
57
+ base: CSSObject;
58
+ margins: {
59
+ base: CSSObject;
60
+ };
61
+ };
62
+ headingSans04: {
63
+ base: CSSObject;
64
+ margins: {
65
+ base: CSSObject;
66
+ };
67
+ };
68
+ headingSans05: {
69
+ base: CSSObject;
70
+ margins: {
71
+ base: CSSObject;
72
+ };
73
+ };
74
+ headingSans06: {
75
+ base: CSSObject;
76
+ margins: {
77
+ base: CSSObject;
78
+ };
79
+ };
80
+ headingSans07: {
81
+ base: CSSObject;
82
+ margins: {
83
+ base: CSSObject;
84
+ };
85
+ };
86
+ headingSans08: {
87
+ base: CSSObject;
88
+ margins: {
89
+ base: CSSObject;
90
+ };
91
+ };
92
+ bodySans01: {
93
+ base: CSSObject;
94
+ margins: {
95
+ base: CSSObject;
96
+ };
97
+ };
98
+ bodySans02: {
99
+ base: CSSObject;
100
+ margins: {
101
+ base: CSSObject;
102
+ };
103
+ };
104
+ bodySans03: {
105
+ base: CSSObject;
106
+ margins: {
107
+ base: CSSObject;
108
+ };
109
+ };
110
+ bodySans04: {
111
+ base: CSSObject;
112
+ margins: {
113
+ base: CSSObject;
114
+ };
115
+ };
116
+ bodySerif01: {
117
+ base: CSSObject;
118
+ margins: {
119
+ base: CSSObject;
120
+ };
121
+ };
122
+ bodySerif02: {
123
+ base: CSSObject;
124
+ margins: {
125
+ base: CSSObject;
126
+ };
127
+ };
128
+ bodySerif03: {
129
+ base: CSSObject;
130
+ margins: {
131
+ base: CSSObject;
132
+ };
133
+ };
134
+ bodySerif04: {
135
+ base: CSSObject;
136
+ margins: {
137
+ base: CSSObject;
138
+ };
139
+ };
140
+ leadSans01: {
141
+ base: CSSObject;
142
+ margins: {
143
+ base: CSSObject;
144
+ };
145
+ };
146
+ leadSans02: {
147
+ base: CSSObject;
148
+ margins: {
149
+ base: CSSObject;
150
+ };
151
+ };
152
+ leadSans03: {
153
+ base: CSSObject;
154
+ margins: {
155
+ base: CSSObject;
156
+ };
157
+ };
158
+ leadSans04: {
159
+ base: CSSObject;
160
+ margins: {
161
+ base: CSSObject;
162
+ };
163
+ };
164
+ leadSans05: {
165
+ base: CSSObject;
166
+ margins: {
167
+ base: CSSObject;
168
+ };
169
+ };
170
+ supportingStyleLabel01: {
171
+ base: CSSObject;
172
+ margins: {
173
+ base: CSSObject;
174
+ };
175
+ };
176
+ supportingStyleHelperText01: {
177
+ base: CSSObject;
178
+ margins: {
179
+ base: CSSObject;
180
+ };
181
+ };
182
+ supportingStyleInputText01: {
183
+ base: CSSObject;
184
+ margins: {
185
+ base: CSSObject;
186
+ };
187
+ };
188
+ supportingStyleInputText02: {
189
+ base: CSSObject;
190
+ margins: {
191
+ base: CSSObject;
192
+ };
193
+ };
194
+ supportingStyleInputText03: {
195
+ base: CSSObject;
196
+ margins: {
197
+ base: CSSObject;
198
+ };
199
+ };
200
+ supportingStylePlaceholderText01: {
201
+ base: CSSObject;
202
+ margins: {
203
+ base: CSSObject;
204
+ };
205
+ };
206
+ supportingStyleTiny01: {
207
+ base: CSSObject;
208
+ margins: {
209
+ base: CSSObject;
210
+ };
211
+ };
212
+ supportingStyleTiny02: {
213
+ base: CSSObject;
214
+ margins: {
215
+ base: CSSObject;
216
+ };
217
+ };
218
+ };
219
+ style: {
220
+ bold: {
221
+ base: CSSObject;
222
+ };
223
+ italic: {
224
+ base: CSSObject;
225
+ };
226
+ underline: {
227
+ base: CSSObject;
228
+ };
229
+ };
230
+ };
@@ -0,0 +1,13 @@
1
+ declare type TypographyBodySansType = 'bodySans01' | 'bodySans02' | 'bodySans03' | 'bodySans04';
2
+ declare type TypographyBodySerifType = 'bodySerif01' | 'bodySerif02' | 'bodySerif03' | 'bodySerif04';
3
+ export declare type TypographyBodyType = TypographyBodySansType | TypographyBodySerifType;
4
+ declare type TypographyHeadingType = 'headingSans01' | 'headingSans02' | 'headingSans03' | 'headingSans04' | 'headingSans05' | 'headingSans06' | 'headingSans07' | 'headingSans08';
5
+ declare type TypographyLeadType = 'leadSans01' | 'leadSans02' | 'leadSans03' | 'leadSans04' | 'leadSans05';
6
+ declare type TypographySupportingType = 'supportingStyleInputText01' | 'supportingStyleInputText02' | 'supportingStyleInputText03' | 'supportingStyleHelperText01' | 'supportingStylePlaceholderText01' | 'supportingStyleTiny01' | 'supportingStyleTiny02';
7
+ export declare type AnchorTypographyType = 'a';
8
+ export declare type LabelTypographyType = 'supportingStyleLabel01';
9
+ export declare type OtherTypographyType = TypographyHeadingType | TypographyBodyType | TypographyLeadType | TypographySupportingType;
10
+ export declare type TypographyType = AnchorTypographyType | LabelTypographyType | OtherTypographyType;
11
+ export declare type TextColor = 'interactive' | 'primary' | 'danger' | 'warning' | 'success' | 'onLight' | 'onDark' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'gray9';
12
+ export declare 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';
13
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Typography';
2
+ export * from './Typography.types';
@@ -0,0 +1,5 @@
1
+ declare type BackdropProps = {
2
+ isOpen: boolean;
3
+ };
4
+ export declare const Backdrop: import("styled-components").StyledComponent<"div", any, BackdropProps, never>;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function handleElementWithBackdropMount(container: HTMLElement): void;
2
+ export declare function handleElementWithBackdropUnmount(container: HTMLElement): void;
@@ -0,0 +1,2 @@
1
+ export * from './Backdrop';
2
+ export * from './Backdrop.utils';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Property } from 'csstype';
3
+ declare type SvgChevronProps = {
4
+ isUp?: boolean;
5
+ height?: Property.Height<string>;
6
+ width?: Property.Width<string>;
7
+ };
8
+ export declare const AnimatedChevronUpDown: ({ isUp, height, width }: SvgChevronProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare type StyledSvgChevronProps = {
2
+ isUp?: boolean;
3
+ };
4
+ export declare const SvgChevron: import("styled-components").StyledComponent<"svg", any, StyledSvgChevronProps, never>;
5
+ export declare const SvgChevronlGroup: import("styled-components").StyledComponent<"g", any, StyledSvgChevronProps, never>;
6
+ export declare const SvgChevronlLeft: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;
7
+ export declare const SvgChevronlRight: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;
@@ -0,0 +1 @@
1
+ export * from './AnimatedChevronUpDown';
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { StyledLabelProps } from '.';
3
+ import { Property } from 'csstype';
4
+ export declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
5
+ export declare const StatefulInput: import("styled-components").StyledComponent<"input", any, Pick<import("./Input.types").InputProps, "disabled" | "readOnly"> & {
6
+ hasErrorMessage: boolean;
7
+ hasLabel: import("./Input.types").LabelPresence;
8
+ }, never>;
9
+ export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../components/Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, StyledLabelProps, never>;
10
+ export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ declare type OuterInputContainerProps = {
12
+ width?: Property.Width<string>;
13
+ };
14
+ export declare const OuterInputContainer: import("styled-components").StyledComponent<"div", any, OuterInputContainerProps, never>;
15
+ export {};
@@ -0,0 +1,78 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export declare const inputTokens: {
3
+ baseInput: {
4
+ base: CSSObject;
5
+ focus: {
6
+ base: CSSObject;
7
+ };
8
+ hover: {
9
+ base: CSSObject;
10
+ };
11
+ };
12
+ general: {
13
+ input: {
14
+ borderRadius: string;
15
+ borderWidth: string;
16
+ borderColor: string;
17
+ textColor: string;
18
+ font: {
19
+ lineHeight: any;
20
+ fontSize: string;
21
+ letterSpacing: any;
22
+ fontFamily: any;
23
+ fontWeight: any;
24
+ fontStyle: any;
25
+ };
26
+ hover: {
27
+ backgroundColor: string;
28
+ borderColor: string;
29
+ borderWidth: string;
30
+ };
31
+ focus: {
32
+ borderColor: string;
33
+ borderWidth: string;
34
+ };
35
+ };
36
+ label: {
37
+ hover: {
38
+ textColor: string;
39
+ };
40
+ focus: {
41
+ textColor: string;
42
+ };
43
+ };
44
+ };
45
+ hasLabel: {
46
+ base: CSSObject;
47
+ };
48
+ noLabel: {
49
+ base: CSSObject;
50
+ };
51
+ readOnly: {
52
+ base: CSSObject;
53
+ };
54
+ disabled: {
55
+ base: CSSObject;
56
+ };
57
+ error: {
58
+ base: CSSObject;
59
+ hover: {
60
+ base: CSSObject;
61
+ };
62
+ focus: {
63
+ base: CSSObject;
64
+ };
65
+ };
66
+ label: {
67
+ base: CSSObject;
68
+ hover: {
69
+ base: CSSObject;
70
+ };
71
+ focus: {
72
+ base: CSSObject;
73
+ };
74
+ disabled: {
75
+ base: CSSObject;
76
+ };
77
+ };
78
+ };
@@ -0,0 +1,20 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ import { Property } from 'csstype';
3
+ export declare type InputProps = {
4
+ /**Ledetekst for input. */
5
+ label?: string;
6
+ /**Bredde for inputfeltet. */
7
+ width?: Property.Width<string>;
8
+ /**Hjelpetekst. */
9
+ tip?: string;
10
+ /**Feilmelding. Setter også error state. */
11
+ errorMessage?: string;
12
+ } & InputHTMLAttributes<HTMLInputElement>;
13
+ export declare type LabelPresence = 'hasLabel' | 'noLabel';
14
+ export declare type StyledInputProps = Pick<InputProps, 'readOnly' | 'disabled'> & {
15
+ hasErrorMessage: boolean;
16
+ hasLabel: LabelPresence;
17
+ };
18
+ export declare type StyledLabelProps = {
19
+ disabled?: boolean;
20
+ };
@@ -0,0 +1,3 @@
1
+ export * from './Input.styles';
2
+ export * from './Input.types';
3
+ export * from './Input.tokens';
@@ -0,0 +1 @@
1
+ export declare const Paper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,4 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export declare const paperTokens: {
3
+ base: CSSObject;
4
+ };
@@ -0,0 +1 @@
1
+ export * from './Paper';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const RequiredMarker: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './RequiredMarker';
@@ -0,0 +1,5 @@
1
+ export * from './Backdrop';
2
+ export * from './Chevron';
3
+ export * from './Input';
4
+ export * from './Paper';
5
+ export * from './RequiredMarker';
@@ -0,0 +1,4 @@
1
+ export declare const dangerInputfield: {
2
+ borderColor: string;
3
+ boxShadow: string;
4
+ };
@@ -0,0 +1,9 @@
1
+ export declare const focusInputfield: {
2
+ outline: string;
3
+ borderColor: string;
4
+ boxShadow: string;
5
+ };
6
+ export declare const focusDangerInputfield: {
7
+ borderColor: string;
8
+ boxShadow: string;
9
+ };
@@ -0,0 +1,37 @@
1
+ export declare const outlineOffset = "2px";
2
+ export declare const focusVisible: {
3
+ outline: string;
4
+ outlineOffset: string;
5
+ };
6
+ export declare const focusVisibleOnDark: {
7
+ outline: string;
8
+ outlineOffset: string;
9
+ };
10
+ export declare const focusVisibleTransitionValue = "outline-offset 0.2s";
11
+ export declare const focusVisibleLink: {
12
+ outline: string;
13
+ backgroundColor: string;
14
+ color: string;
15
+ textDecoration: string;
16
+ };
17
+ export declare const focusVisibleLinkOnDark: {
18
+ outline: string;
19
+ backgroundColor: string;
20
+ color: string;
21
+ textDecoration: string;
22
+ };
23
+ export declare const focusVisibleLinkTransitionValue = "background-color 0.2s, text-decoration 0.2s, color 0.2s";
24
+ export declare const focusVisibleWithBorder: {
25
+ outline: string;
26
+ borderColor: string;
27
+ boxShadow: string;
28
+ };
29
+ export declare const focusVisibleThickWithBorderOnDark: {
30
+ outline: string;
31
+ borderColor: string;
32
+ boxShadow: string;
33
+ };
34
+ export declare const focusVisibleInset: {
35
+ outline: string;
36
+ boxShadow: string;
37
+ };
@@ -0,0 +1,7 @@
1
+ export declare const hideInput: {
2
+ clip: string;
3
+ position: string;
4
+ height: number;
5
+ width: number;
6
+ margin: number;
7
+ };
@@ -0,0 +1,14 @@
1
+ export declare const hoverWithBorder: {
2
+ borderColor: string;
3
+ boxShadow: string;
4
+ };
5
+ export declare const hoverInputfield: {
6
+ borderColor: string;
7
+ boxShadow: string;
8
+ backgroundColor: string;
9
+ };
10
+ export declare const hoverDangerInputfield: {
11
+ borderColor: string;
12
+ boxShadow: string;
13
+ backgroundColor: string;
14
+ };
@@ -0,0 +1,8 @@
1
+ export * from './removeButtonStyling';
2
+ export * from './visibilityTransition';
3
+ export * from './focusVisible';
4
+ export * from './hover';
5
+ export * from './focus';
6
+ export * from './danger';
7
+ export * from './hideInput';
8
+ export * from './scrollbarStyling';
@@ -0,0 +1,9 @@
1
+ export declare const removeButtonStyling: {
2
+ background: string;
3
+ color: string;
4
+ border: string;
5
+ padding: number;
6
+ font: string;
7
+ cursor: string;
8
+ outline: string;
9
+ };
@@ -0,0 +1,5 @@
1
+ export declare const removeListStyling: {
2
+ listStyle: string;
3
+ padding: number;
4
+ margin: number;
5
+ };
@@ -0,0 +1,3 @@
1
+ export declare const scrollbarWidthNumberPx = 10;
2
+ export declare const scrollbarWidth: string;
3
+ export declare const scrollbarStyling: import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1 @@
1
+ export declare const visibilityTransition: (open: boolean) => import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,9 @@
1
+ export * from './useCombinedRefs';
2
+ export * from './useOnClickOutside';
3
+ export * from './useOnKeyDown';
4
+ export * from './useFloatPosition';
5
+ export * from './useRoveFocus';
6
+ export * from './useFocusTrap';
7
+ export * from './useMountTransition';
8
+ export * from './useId';
9
+ export * from './useScreenSize';
@@ -0,0 +1,2 @@
1
+ import type { RefCallback } from 'react';
2
+ export declare function useCombinedRef<T>(...refs: React.Ref<T>[]): RefCallback<T>;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { Strategy } from '@floating-ui/react-dom';
3
+ export declare type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
4
+ export declare const useFloatPosition: (arrowRef: HTMLElement | null, placement?: Placement, offset?: number) => {
5
+ reference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
6
+ floating: (node: HTMLElement | null) => void;
7
+ refs: {
8
+ reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
9
+ floating: import("react").MutableRefObject<HTMLElement | null>;
10
+ };
11
+ styles: {
12
+ floating: {
13
+ position: Strategy;
14
+ top: string | number;
15
+ left: string | number;
16
+ };
17
+ arrow: {
18
+ [x: string]: string | number;
19
+ position: Strategy;
20
+ top: string | number;
21
+ left: string | number;
22
+ transform: string;
23
+ } | undefined;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useFocusTrap<T extends HTMLElement>(active: boolean): import("react").RefObject<T>;
@@ -0,0 +1 @@
1
+ export declare function useId(prefix: string, suffix?: string): string;
@@ -0,0 +1 @@
1
+ export declare const useMountTransition: (isMounted: boolean, unmountDelay: number) => boolean;
@@ -0,0 +1 @@
1
+ export declare function useOnClickOutside(element: HTMLElement | null | (HTMLElement | null)[], handler: (event: MouseEvent | TouchEvent) => void): void;
@@ -0,0 +1 @@
1
+ export declare const useOnKeyDown: (key: string | string[], handler: (event: KeyboardEvent) => void) => void;
@@ -0,0 +1,3 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { Direction } from '../types';
3
+ export declare function useRoveFocus(size: number | undefined, reset?: boolean, direction?: Direction): [number, Dispatch<SetStateAction<number>>];
@@ -0,0 +1,8 @@
1
+ export declare enum ScreenSize {
2
+ XSmall = 0,
3
+ Small = 1,
4
+ Medium = 2,
5
+ Large = 3,
6
+ XLarge = 4
7
+ }
8
+ export declare const useScreenSize: () => ScreenSize;
@@ -0,0 +1,34 @@
1
+ import 'focus-visible';
2
+ import './styles/fontStyles.css';
3
+ import './styles/selection.css';
4
+ export * from './components/RadioButton';
5
+ export * from './components/Checkbox';
6
+ export * from './components/Button';
7
+ export * from './components/TextInput';
8
+ export * from './components/Select';
9
+ export * from './components/GlobalMessage';
10
+ export * from './components/LocalMessage';
11
+ export * from './components/Search';
12
+ export * from './components/Typography';
13
+ export * from './components/Table';
14
+ export * from './components/Breadcrumbs';
15
+ export * from './components/IconWrapper';
16
+ export * from './components/Pagination';
17
+ export * from './components/Divider';
18
+ export * from './components/List';
19
+ export * from './components/DescriptionList';
20
+ export * from './components/Spinner';
21
+ export * from './components/Card';
22
+ export * from './components/InternalHeader';
23
+ export * from './components/Datepicker';
24
+ export * from './components/SkipToContent';
25
+ export * from './components/Tooltip';
26
+ export * from './components/Modal';
27
+ export * from './components/Drawer';
28
+ export * from './components/OverflowMenu';
29
+ export * from './components/Popover';
30
+ export * from './components/InputMessage';
31
+ export * from './components/ToggleButton';
32
+ export * from './components/Tabs';
33
+ export * from './components/Tag';
34
+ export * from './components/Chip';