@smudi/designsystem 2.1.0 → 2.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 (236) hide show
  1. package/@smudi/assets/JetBrainsMono-Medium.woff2 +0 -0
  2. package/@smudi/assets/JetBrainsMono-OFL.txt +93 -0
  3. package/@smudi/assets/JetBrainsMono-Regular.woff2 +0 -0
  4. package/@smudi/assets/JetBrainsMono-SemiBold.woff2 +0 -0
  5. package/@smudi/components/actionbar/actionbar-button.js +52 -0
  6. package/@smudi/components/actionbar/actionbar-context.js +23 -0
  7. package/@smudi/components/actionbar/actionbar-divider.js +24 -0
  8. package/@smudi/components/actionbar/actionbar-host.js +102 -0
  9. package/@smudi/components/actionbar/actionbar.js +134 -0
  10. package/@smudi/components/actionbar/use-actionbar-button-count-warning.js +21 -0
  11. package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.js +38 -0
  12. package/@smudi/components/divider/divider.js +18 -4
  13. package/@smudi/components/header/header-divider.js +13 -11
  14. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +9 -9
  15. package/@smudi/components/utils/is-dev-environment.js +8 -0
  16. package/@smudi/icons/generated/index.d.ts +64 -0
  17. package/@smudi/react.d.ts +1671 -0
  18. package/@smudi/react.js +133 -131
  19. package/@smudi/styles.css +1 -1
  20. package/package.json +24 -21
  21. package/@smudi/components/actionbar/actionbar.d.ts +0 -71
  22. package/@smudi/components/actionbar/actionbar.d.ts.map +0 -1
  23. package/@smudi/components/actionbar/actionbar.types.d.ts +0 -11
  24. package/@smudi/components/actionbar/actionbar.types.d.ts.map +0 -1
  25. package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts +0 -9
  26. package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts.map +0 -1
  27. package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts +0 -12
  28. package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts.map +0 -1
  29. package/@smudi/components/alert/alert.d.ts +0 -6
  30. package/@smudi/components/alert/alert.d.ts.map +0 -1
  31. package/@smudi/components/avatar/avatar.d.ts +0 -6
  32. package/@smudi/components/avatar/avatar.d.ts.map +0 -1
  33. package/@smudi/components/avatar-stack/avatar-stack.d.ts +0 -6
  34. package/@smudi/components/avatar-stack/avatar-stack.d.ts.map +0 -1
  35. package/@smudi/components/badge/badge.d.ts +0 -6
  36. package/@smudi/components/badge/badge.d.ts.map +0 -1
  37. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts +0 -6
  38. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
  39. package/@smudi/components/button/button.d.ts +0 -26
  40. package/@smudi/components/button/button.d.ts.map +0 -1
  41. package/@smudi/components/card/card-icon-block.d.ts +0 -24
  42. package/@smudi/components/card/card-icon-block.d.ts.map +0 -1
  43. package/@smudi/components/card/card.d.ts +0 -22
  44. package/@smudi/components/card/card.d.ts.map +0 -1
  45. package/@smudi/components/checkbox/checkbox.d.ts +0 -6
  46. package/@smudi/components/checkbox/checkbox.d.ts.map +0 -1
  47. package/@smudi/components/chip/chip.d.ts +0 -5
  48. package/@smudi/components/chip/chip.d.ts.map +0 -1
  49. package/@smudi/components/details/details.d.ts +0 -6
  50. package/@smudi/components/details/details.d.ts.map +0 -1
  51. package/@smudi/components/dialog/dialog-section.d.ts +0 -22
  52. package/@smudi/components/dialog/dialog-section.d.ts.map +0 -1
  53. package/@smudi/components/dialog/dialog.d.ts +0 -21
  54. package/@smudi/components/dialog/dialog.d.ts.map +0 -1
  55. package/@smudi/components/divider/divider.d.ts +0 -6
  56. package/@smudi/components/divider/divider.d.ts.map +0 -1
  57. package/@smudi/components/dropdown/dropdown-button.d.ts +0 -39
  58. package/@smudi/components/dropdown/dropdown-button.d.ts.map +0 -1
  59. package/@smudi/components/dropdown/dropdown-context.d.ts +0 -7
  60. package/@smudi/components/dropdown/dropdown-context.d.ts.map +0 -1
  61. package/@smudi/components/dropdown/dropdown-item.d.ts +0 -20
  62. package/@smudi/components/dropdown/dropdown-item.d.ts.map +0 -1
  63. package/@smudi/components/dropdown/dropdown-list.d.ts +0 -20
  64. package/@smudi/components/dropdown/dropdown-list.d.ts.map +0 -1
  65. package/@smudi/components/dropdown/dropdown.d.ts +0 -35
  66. package/@smudi/components/dropdown/dropdown.d.ts.map +0 -1
  67. package/@smudi/components/error-summary/error-summary.d.ts +0 -6
  68. package/@smudi/components/error-summary/error-summary.d.ts.map +0 -1
  69. package/@smudi/components/field/field.d.ts +0 -6
  70. package/@smudi/components/field/field.d.ts.map +0 -1
  71. package/@smudi/components/fieldset/fieldset.d.ts +0 -6
  72. package/@smudi/components/fieldset/fieldset.d.ts.map +0 -1
  73. package/@smudi/components/file-upload/file-upload.d.ts +0 -8
  74. package/@smudi/components/file-upload/file-upload.d.ts.map +0 -1
  75. package/@smudi/components/header/header-content.d.ts +0 -15
  76. package/@smudi/components/header/header-content.d.ts.map +0 -1
  77. package/@smudi/components/header/header-divider.d.ts +0 -18
  78. package/@smudi/components/header/header-divider.d.ts.map +0 -1
  79. package/@smudi/components/header/header-menu/header-menu-button.d.ts +0 -13
  80. package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +0 -1
  81. package/@smudi/components/header/header-menu/header-menu-content.d.ts +0 -17
  82. package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +0 -1
  83. package/@smudi/components/header/header-menu/header-menu-group.d.ts +0 -14
  84. package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +0 -1
  85. package/@smudi/components/header/header-menu/header-menu-item.d.ts +0 -28
  86. package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +0 -1
  87. package/@smudi/components/header/header-menu/header-menu.d.ts +0 -20
  88. package/@smudi/components/header/header-menu/header-menu.d.ts.map +0 -1
  89. package/@smudi/components/header/header-menu/index.d.ts +0 -11
  90. package/@smudi/components/header/header-menu/index.d.ts.map +0 -1
  91. package/@smudi/components/header/header-search/header-search-button.d.ts +0 -26
  92. package/@smudi/components/header/header-search/header-search-button.d.ts.map +0 -1
  93. package/@smudi/components/header/header-search/header-search.d.ts +0 -35
  94. package/@smudi/components/header/header-search/header-search.d.ts.map +0 -1
  95. package/@smudi/components/header/header-search/index.d.ts +0 -5
  96. package/@smudi/components/header/header-search/index.d.ts.map +0 -1
  97. package/@smudi/components/header/header.d.ts +0 -97
  98. package/@smudi/components/header/header.d.ts.map +0 -1
  99. package/@smudi/components/header/index.d.ts +0 -36
  100. package/@smudi/components/header/index.d.ts.map +0 -1
  101. package/@smudi/components/input/input.d.ts +0 -6
  102. package/@smudi/components/input/input.d.ts.map +0 -1
  103. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +0 -37
  104. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +0 -1
  105. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +0 -30
  106. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +0 -1
  107. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +0 -33
  108. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +0 -1
  109. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts +0 -2
  110. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts.map +0 -1
  111. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts +0 -2
  112. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts.map +0 -1
  113. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts +0 -2
  114. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts.map +0 -1
  115. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts +0 -2
  116. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts.map +0 -1
  117. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +0 -39
  118. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +0 -1
  119. package/@smudi/components/layout-components/split-view/index.d.ts +0 -8
  120. package/@smudi/components/layout-components/split-view/index.d.ts.map +0 -1
  121. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts +0 -8
  122. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts.map +0 -1
  123. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts +0 -23
  124. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts.map +0 -1
  125. package/@smudi/components/layout-components/split-view/split-view.d.ts +0 -14
  126. package/@smudi/components/layout-components/split-view/split-view.d.ts.map +0 -1
  127. package/@smudi/components/layout-components/split-view/use-resize.d.ts +0 -34
  128. package/@smudi/components/layout-components/split-view/use-resize.d.ts.map +0 -1
  129. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +0 -31
  130. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +0 -1
  131. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +0 -34
  132. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts.map +0 -1
  133. package/@smudi/components/link/link.d.ts +0 -6
  134. package/@smudi/components/link/link.d.ts.map +0 -1
  135. package/@smudi/components/list/list.d.ts +0 -5
  136. package/@smudi/components/list/list.d.ts.map +0 -1
  137. package/@smudi/components/pagination/pagination.d.ts +0 -6
  138. package/@smudi/components/pagination/pagination.d.ts.map +0 -1
  139. package/@smudi/components/popover/popover.d.ts +0 -6
  140. package/@smudi/components/popover/popover.d.ts.map +0 -1
  141. package/@smudi/components/radio/radio.d.ts +0 -6
  142. package/@smudi/components/radio/radio.d.ts.map +0 -1
  143. package/@smudi/components/search/search.d.ts +0 -6
  144. package/@smudi/components/search/search.d.ts.map +0 -1
  145. package/@smudi/components/select/select.d.ts +0 -6
  146. package/@smudi/components/select/select.d.ts.map +0 -1
  147. package/@smudi/components/skeleton/skeleton.d.ts +0 -6
  148. package/@smudi/components/skeleton/skeleton.d.ts.map +0 -1
  149. package/@smudi/components/skip-link/skip-link.d.ts +0 -6
  150. package/@smudi/components/skip-link/skip-link.d.ts.map +0 -1
  151. package/@smudi/components/spinner/spinner.d.ts +0 -6
  152. package/@smudi/components/spinner/spinner.d.ts.map +0 -1
  153. package/@smudi/components/stepper/index.d.ts +0 -15
  154. package/@smudi/components/stepper/index.d.ts.map +0 -1
  155. package/@smudi/components/stepper/step/step-list.d.ts +0 -7
  156. package/@smudi/components/stepper/step/step-list.d.ts.map +0 -1
  157. package/@smudi/components/stepper/step/step.d.ts +0 -22
  158. package/@smudi/components/stepper/step/step.d.ts.map +0 -1
  159. package/@smudi/components/stepper/step-content/step-content-list.d.ts +0 -2
  160. package/@smudi/components/stepper/step-content/step-content-list.d.ts.map +0 -1
  161. package/@smudi/components/stepper/step-content/step-content.d.ts +0 -13
  162. package/@smudi/components/stepper/step-content/step-content.d.ts.map +0 -1
  163. package/@smudi/components/stepper/stepper-context.d.ts +0 -49
  164. package/@smudi/components/stepper/stepper-context.d.ts.map +0 -1
  165. package/@smudi/components/stepper/stepper.d.ts +0 -42
  166. package/@smudi/components/stepper/stepper.d.ts.map +0 -1
  167. package/@smudi/components/stepper/use-stepper-state.d.ts +0 -43
  168. package/@smudi/components/stepper/use-stepper-state.d.ts.map +0 -1
  169. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts +0 -9
  170. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts.map +0 -1
  171. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +0 -8
  172. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +0 -1
  173. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +0 -54
  174. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +0 -1
  175. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +0 -31
  176. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +0 -1
  177. package/@smudi/components/suggestion/suggestion.d.ts +0 -17
  178. package/@smudi/components/suggestion/suggestion.d.ts.map +0 -1
  179. package/@smudi/components/switch/switch.d.ts +0 -6
  180. package/@smudi/components/switch/switch.d.ts.map +0 -1
  181. package/@smudi/components/table/table.d.ts +0 -28
  182. package/@smudi/components/table/table.d.ts.map +0 -1
  183. package/@smudi/components/tabs/tabs-content.d.ts +0 -6
  184. package/@smudi/components/tabs/tabs-content.d.ts.map +0 -1
  185. package/@smudi/components/tabs/tabs-list.d.ts +0 -6
  186. package/@smudi/components/tabs/tabs-list.d.ts.map +0 -1
  187. package/@smudi/components/tabs/tabs-trigger.d.ts +0 -6
  188. package/@smudi/components/tabs/tabs-trigger.d.ts.map +0 -1
  189. package/@smudi/components/tabs/tabs.d.ts +0 -6
  190. package/@smudi/components/tabs/tabs.d.ts.map +0 -1
  191. package/@smudi/components/tag/tag.d.ts +0 -6
  192. package/@smudi/components/tag/tag.d.ts.map +0 -1
  193. package/@smudi/components/textarea/text-area.d.ts +0 -6
  194. package/@smudi/components/textarea/text-area.d.ts.map +0 -1
  195. package/@smudi/components/textfield/textfield.d.ts +0 -6
  196. package/@smudi/components/textfield/textfield.d.ts.map +0 -1
  197. package/@smudi/components/toast/toast.d.ts +0 -84
  198. package/@smudi/components/toast/toast.d.ts.map +0 -1
  199. package/@smudi/components/toggle-group/toggle-group.d.ts +0 -6
  200. package/@smudi/components/toggle-group/toggle-group.d.ts.map +0 -1
  201. package/@smudi/components/tooltip/tooltip.d.ts +0 -6
  202. package/@smudi/components/tooltip/tooltip.d.ts.map +0 -1
  203. package/@smudi/components/typography/heading/heading.d.ts +0 -9
  204. package/@smudi/components/typography/heading/heading.d.ts.map +0 -1
  205. package/@smudi/components/typography/paragraph/paragraph.d.ts +0 -6
  206. package/@smudi/components/typography/paragraph/paragraph.d.ts.map +0 -1
  207. package/@smudi/components/utils/apply-inert-outside.d.ts +0 -17
  208. package/@smudi/components/utils/apply-inert-outside.d.ts.map +0 -1
  209. package/@smudi/components/utils/class-names.d.ts +0 -2
  210. package/@smudi/components/utils/class-names.d.ts.map +0 -1
  211. package/@smudi/components/utils/is-dev-environment.d.ts +0 -2
  212. package/@smudi/components/utils/is-dev-environment.d.ts.map +0 -1
  213. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts +0 -8
  214. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts.map +0 -1
  215. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts +0 -8
  216. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts.map +0 -1
  217. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts +0 -8
  218. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts.map +0 -1
  219. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts +0 -8
  220. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts.map +0 -1
  221. package/@smudi/smudi/icons/generated/index.d.ts +0 -5
  222. package/@smudi/smudi/icons/generated/index.d.ts.map +0 -1
  223. package/@smudi/smudi/icons/metadata.d.ts +0 -32
  224. package/@smudi/smudi/icons/metadata.d.ts.map +0 -1
  225. package/@smudi/smudi/react.d.ts +0 -59
  226. package/@smudi/smudi/react.d.ts.map +0 -1
  227. package/@smudi/types/modular-scale.type.d.ts +0 -18
  228. package/@smudi/types/modular-scale.type.d.ts.map +0 -1
  229. package/@smudi/types/polymorphic-component.type.d.ts +0 -35
  230. package/@smudi/types/polymorphic-component.type.d.ts.map +0 -1
  231. package/@smudi/types/utils/coerce-string-to-number.d.ts +0 -4
  232. package/@smudi/types/utils/coerce-string-to-number.d.ts.map +0 -1
  233. package/@smudi/types/utils/exclude-strict.d.ts +0 -2
  234. package/@smudi/types/utils/exclude-strict.d.ts.map +0 -1
  235. package/@smudi/types/utils/omit-strict.d.ts +0 -2
  236. package/@smudi/types/utils/omit-strict.d.ts.map +0 -1
@@ -0,0 +1,1671 @@
1
+ import { Alert as Alert_3 } from '@digdir/designsystemet-react';
2
+ import { AlertProps } from '@digdir/designsystemet-react';
3
+ import { Avatar as Avatar_3 } from '@digdir/designsystemet-react';
4
+ import { AvatarProps } from '@digdir/designsystemet-react';
5
+ import { AvatarStackProps } from '@digdir/designsystemet-react';
6
+ import { Badge as Badge_3 } from '@digdir/designsystemet-react';
7
+ import { BadgeProps } from '@digdir/designsystemet-react';
8
+ import { Breadcrumbs as Breadcrumbs_3 } from '@digdir/designsystemet-react';
9
+ import { BreadcrumbsProps } from '@digdir/designsystemet-react';
10
+ import { ButtonProps as ButtonProps_2 } from '@digdir/designsystemet-react';
11
+ import { Card as Card_3 } from '@digdir/designsystemet-react';
12
+ import { CardProps } from '@digdir/designsystemet-react';
13
+ import { Checkbox as Checkbox_3 } from '@digdir/designsystemet-react';
14
+ import { CheckboxProps } from '@digdir/designsystemet-react';
15
+ import { Chip as Chip_3 } from '@digdir/designsystemet-react';
16
+ import { Color } from '@digdir/designsystemet-types';
17
+ import { ComponentProps } from 'react';
18
+ import { ComponentPropsWithoutRef } from 'react';
19
+ import { CSSProperties } from 'react';
20
+ import { default as default_2 } from 'react';
21
+ import { DefaultProps } from '@digdir/designsystemet-react';
22
+ import { Details as Details_3 } from '@digdir/designsystemet-react';
23
+ import { DetailsProps } from '@digdir/designsystemet-react';
24
+ import { Dialog as Dialog_3 } from '@digdir/designsystemet-react';
25
+ import { DialogProps } from '@digdir/designsystemet-react';
26
+ import { DividerProps as DividerProps_2 } from '@digdir/designsystemet-react';
27
+ import { Dropdown as Dropdown_2 } from '@digdir/designsystemet-react';
28
+ import { DropdownButtonProps as DropdownButtonProps_2 } from '@digdir/designsystemet-react';
29
+ import { DropdownItemProps as DropdownItemProps_2 } from '@digdir/designsystemet-react';
30
+ import { DropdownListProps as DropdownListProps_2 } from '@digdir/designsystemet-react';
31
+ import { DropdownProps as DropdownProps_2 } from '@digdir/designsystemet-react';
32
+ import { ElementType } from 'react';
33
+ import { ErrorSummary as ErrorSummary_3 } from '@digdir/designsystemet-react';
34
+ import { ErrorSummaryProps } from '@digdir/designsystemet-react';
35
+ import { EXPERIMENTAL_AvatarStack } from '@digdir/designsystemet-react';
36
+ import { EXPERIMENTAL_FileUpload as EXPERIMENTAL_FileUpload_2 } from '@digdir/designsystemet-react';
37
+ import { EXPERIMENTAL_Suggestion } from '@digdir/designsystemet-react';
38
+ import { FC } from 'react';
39
+ import { Field as Field_3 } from '@digdir/designsystemet-react';
40
+ import { FieldProps } from '@digdir/designsystemet-react';
41
+ import { Fieldset as Fieldset_3 } from '@digdir/designsystemet-react';
42
+ import { FieldsetProps } from '@digdir/designsystemet-react';
43
+ import { FileUploadProps } from '@digdir/designsystemet-react';
44
+ import { ForwardRefExoticComponent } from 'react';
45
+ import { HeadingProps } from '@digdir/designsystemet-react';
46
+ import { HTMLAttributes } from 'react';
47
+ import { Input as Input_3 } from '@digdir/designsystemet-react';
48
+ import { InputProps } from '@digdir/designsystemet-react';
49
+ import { Link as Link_3 } from '@digdir/designsystemet-react';
50
+ import { LinkProps } from '@digdir/designsystemet-react';
51
+ import { List as List_3 } from '@digdir/designsystemet-react';
52
+ import { MouseEvent as MouseEvent_2 } from 'react';
53
+ import { Pagination as Pagination_3 } from '@digdir/designsystemet-react';
54
+ import { PaginationProps } from '@digdir/designsystemet-react';
55
+ import { Paragraph as Paragraph_3 } from '@digdir/designsystemet-react';
56
+ import { ParagraphProps } from '@digdir/designsystemet-react';
57
+ import { Popover as Popover_3 } from '@digdir/designsystemet-react';
58
+ import { PopoverProps } from '@digdir/designsystemet-react';
59
+ import { PropsWithChildren } from 'react';
60
+ import { Radio as Radio_3 } from '@digdir/designsystemet-react';
61
+ import { RadioProps } from '@digdir/designsystemet-react';
62
+ import { ReactNode } from 'react';
63
+ import { RefAttributes } from 'react';
64
+ import { Search as Search_3 } from '@digdir/designsystemet-react';
65
+ import { SearchProps } from '@digdir/designsystemet-react';
66
+ import { Select as Select_3 } from '@digdir/designsystemet-react';
67
+ import { SelectProps } from '@digdir/designsystemet-react';
68
+ import { SeverityColors } from '@digdir/designsystemet-types';
69
+ import { Size } from '@digdir/designsystemet-types';
70
+ import { Skeleton as Skeleton_3 } from '@digdir/designsystemet-react';
71
+ import { SkeletonProps } from '@digdir/designsystemet-react';
72
+ import { SkipLink as SkipLink_3 } from '@digdir/designsystemet-react';
73
+ import { SkipLinkProps } from '@digdir/designsystemet-react';
74
+ import { Spinner as Spinner_3 } from '@digdir/designsystemet-react';
75
+ import { SpinnerProps } from '@digdir/designsystemet-react';
76
+ import { SuggestionItem } from '@digdir/designsystemet-react';
77
+ import { SuggestionListProps } from '@digdir/designsystemet-react';
78
+ import { SuggestionProps as SuggestionProps_2 } from '@digdir/designsystemet-react';
79
+ import { SVGProps } from 'react';
80
+ import { Switch as Switch_3 } from '@digdir/designsystemet-react';
81
+ import { SwitchProps } from '@digdir/designsystemet-react';
82
+ import { Table as Table_2 } from '@digdir/designsystemet-react';
83
+ import { TableProps as TableProps_2 } from '@digdir/designsystemet-react';
84
+ import { Tabs as Tabs_3 } from '@digdir/designsystemet-react';
85
+ import { TabsPanelProps as TabsContentProps } from '@digdir/designsystemet-react';
86
+ import { TabsList as TabsList_3 } from '@digdir/designsystemet-react';
87
+ import { TabsListProps } from '@digdir/designsystemet-react';
88
+ import { TabsPanel } from '@digdir/designsystemet-react';
89
+ import { TabsProps } from '@digdir/designsystemet-react';
90
+ import { TabsTab } from '@digdir/designsystemet-react';
91
+ import { TabsTabProps as TabsTriggerProps } from '@digdir/designsystemet-react';
92
+ import { Tag as Tag_3 } from '@digdir/designsystemet-react';
93
+ import { TagProps } from '@digdir/designsystemet-react';
94
+ import { Textarea } from '@digdir/designsystemet-react';
95
+ import { TextareaProps } from '@digdir/designsystemet-react';
96
+ import { Textfield as Textfield_3 } from '@digdir/designsystemet-react';
97
+ import { TextfieldProps } from '@digdir/designsystemet-react';
98
+ import { ToggleGroup as ToggleGroup_3 } from '@digdir/designsystemet-react';
99
+ import { ToggleGroupProps } from '@digdir/designsystemet-react';
100
+ import { Tooltip as Tooltip_3 } from '@digdir/designsystemet-react';
101
+ import { TooltipProps } from '@digdir/designsystemet-react';
102
+
103
+ /**
104
+ * Toolbar for compact, contextual actions. Must be placed inside `<Actionbar.Host>`.
105
+ *
106
+ * @example
107
+ * ```tsx
108
+ * <Actionbar.Host itemId="entry-1" visibility="hover-focus">
109
+ * <Card tabIndex={0}>...</Card>
110
+ * <Actionbar aria-label="Handlinger" data-color="primary" data-size="md">
111
+ * <Actionbar.Button aria-label="Rediger">
112
+ * <PencilIcon aria-hidden />
113
+ * </Actionbar.Button>
114
+ * </Actionbar>
115
+ * </Actionbar.Host>
116
+ * ```
117
+ */
118
+ export declare const Actionbar: ActionbarComponent;
119
+
120
+ /**
121
+ * Icon-only action button used inside `<Actionbar>`. Provide an accessible name with `aria-label`.
122
+ * Inherits its size from `<Actionbar>` unless `data-size` is set on the button.
123
+ * Either `disabled` or `aria-disabled` prevents activation and excludes the button from keyboard navigation; they are not required together.
124
+ * `<Actionbar>` manages `tabIndex`; the button always uses `type="button"`.
125
+ */
126
+ declare const ActionbarButton: React.ForwardRefExoticComponent<ActionbarButtonProps & React.RefAttributes<HTMLButtonElement>>;
127
+
128
+ /** Payload emitted from `<Actionbar.Button>` click handlers. */
129
+ export declare interface ActionbarButtonClickEvent {
130
+ /** The `itemId` supplied to `<Actionbar.Host>`, not the HTML `id`. */
131
+ itemId: ActionbarId;
132
+ /** The original React click event from the button. */
133
+ event: MouseEvent_2<HTMLButtonElement>;
134
+ }
135
+
136
+ export declare interface ActionbarButtonProps extends Omit<ButtonProps, "children" | "icon" | "onClick" | "data-color"> {
137
+ /** Called with the `<Actionbar.Host>` `itemId` and original React click event. */
138
+ onClick?: (event: ActionbarButtonClickEvent) => void;
139
+ /**
140
+ * Optional explanatory text shown on hover or keyboard focus; supplements `aria-label`.
141
+ * When omitted or empty, no `<Tooltip>` is rendered.
142
+ */
143
+ tooltip?: string;
144
+ /** Icon content for the icon-only action button. */
145
+ children: ReactNode;
146
+ }
147
+
148
+ /** Group-level color variant for all actions in `<Actionbar>`. */
149
+ export declare type ActionbarColor = "primary" | "neutral";
150
+
151
+ declare type ActionbarComponent = typeof ActionbarRoot & {
152
+ Host: typeof ActionbarHost;
153
+ Button: typeof ActionbarButton;
154
+ Divider: typeof ActionbarDivider;
155
+ };
156
+
157
+ /**
158
+ * Vertical divider between groups of buttons in `<Actionbar>`.
159
+ * Decorative by default; pass `role="separator"` to convey structure.
160
+ * Always vertical and excluded from keyboard navigation.
161
+ */
162
+ declare const ActionbarDivider: React.ForwardRefExoticComponent<ActionbarDividerProps & React.RefAttributes<HTMLHRElement>>;
163
+
164
+ export declare type ActionbarDividerProps = Omit<DividerProps, "children" | "orientation">;
165
+
166
+ /**
167
+ * Wraps the host component and controls visibility of its associated `<Actionbar>`.
168
+ * In hover-focus mode, the host component or its content must be keyboard-focusable.
169
+ */
170
+ declare const ActionbarHost: React.ForwardRefExoticComponent<ActionbarHostProps & React.RefAttributes<HTMLDivElement>>;
171
+
172
+ export declare interface ActionbarHostProps extends HTMLAttributes<HTMLDivElement> {
173
+ /**
174
+ * Sets the default color for the host component, such as `<Card>`.
175
+ * A `data-color` set on the host component itself takes precedence.
176
+ * To change the color of `<Actionbar>` and its buttons, set `data-color` directly on `<Actionbar>` instead.
177
+ */
178
+ "data-color"?: Color;
179
+ /** Identifier of the item represented by the host component, forwarded to `<Actionbar.Button>` click handlers. Not the HTML `id`. */
180
+ itemId: ActionbarId;
181
+ /**
182
+ * Defaults to `"hover-focus"`: reveals `<Actionbar>` on pointer hover or focus within the host.
183
+ * The host component or its content must be keyboard-focusable.
184
+ * Use `"always"` to keep actions visible. In `"hover-focus"` mode, `nonHoverBehavior` applies on devices without hover.
185
+ */
186
+ visibility?: ActionbarVisibility;
187
+ /**
188
+ * Visibility on devices without hover in `"hover-focus"` mode. Defaults to `"show"`.
189
+ * With `"hide"`, provide the actions elsewhere. Ignored when `open` is provided.
190
+ */
191
+ nonHoverBehavior?: ActionbarNonHoverBehavior;
192
+ /**
193
+ * Controls visibility from the app, overriding `defaultOpen` and `nonHoverBehavior`.
194
+ * Update this value in response to `onOpenChange` to allow interaction to change visibility.
195
+ */
196
+ open?: boolean;
197
+ /**
198
+ * Initial visibility in uncontrolled `"hover-focus"` mode on hover-capable devices.
199
+ * Defaults to `false`. Ignored when `open` is provided.
200
+ */
201
+ defaultOpen?: boolean;
202
+ /**
203
+ * Called when interaction requests a visibility change, in controlled and uncontrolled modes.
204
+ * In controlled mode, update `open` to apply the request.
205
+ * This is not a notification for every visibility change.
206
+ */
207
+ onOpenChange?: (open: boolean) => void;
208
+ /** The host component and its associated `<Actionbar>`. */
209
+ children: ReactNode;
210
+ }
211
+
212
+ /** Identifier forwarded from `<Actionbar.Host>` to `<Actionbar.Button>` click handlers. */
213
+ export declare type ActionbarId = string | number;
214
+
215
+ /** Controls `<Actionbar>` visibility on devices without hover support. */
216
+ export declare type ActionbarNonHoverBehavior = "show" | "hide";
217
+
218
+ export declare interface ActionbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "aria-label" | "data-color" | "data-size"> {
219
+ /** Required accessible name for `<Actionbar>`, describing its group of actions. */
220
+ "aria-label": string;
221
+ /**
222
+ * Color of `<Actionbar>` and its buttons. Defaults to `"primary"`.
223
+ * Does not inherit the color of the host component or the `<Actionbar.Host>` wrapper.
224
+ */
225
+ "data-color"?: ActionbarColor;
226
+ /**
227
+ * Size of `<Actionbar>` and the default size of its buttons. Defaults to `"md"`.
228
+ * Does not inherit the host component's size; set the same `data-size` on both.
229
+ */
230
+ "data-size"?: ActionbarSize;
231
+ }
232
+
233
+ declare const ActionbarRoot: ForwardedActionbar;
234
+
235
+ /** Size variant shared by `<Actionbar>` and its buttons. */
236
+ export declare type ActionbarSize = "sm" | "md" | "lg";
237
+
238
+ /** Controls when `<Actionbar>` should be visible. */
239
+ export declare type ActionbarVisibility = "always" | "hover-focus";
240
+
241
+ export declare const Alert: Alert_2;
242
+
243
+ declare type Alert_2 = typeof Alert_3;
244
+
245
+ export { AlertProps }
246
+
247
+ export declare const Avatar: Avatar_2;
248
+
249
+ declare type Avatar_2 = typeof Avatar_3;
250
+
251
+ export { AvatarProps }
252
+
253
+ export declare const AvatarStack: AvatarStack_2;
254
+
255
+ declare type AvatarStack_2 = typeof EXPERIMENTAL_AvatarStack;
256
+
257
+ export { AvatarStackProps }
258
+
259
+ export declare const Badge: Badge_2;
260
+
261
+ declare type Badge_2 = typeof Badge_3;
262
+
263
+ export { BadgeProps }
264
+
265
+ /**
266
+ * BoxLayout gives its content breathing room on the inside (padding) and can show that it
267
+ * is a bounded surface (border) — without interfering with the spacing to the elements
268
+ * around it.
269
+ *
270
+ * A Box has one job: air on the inside, not space on the outside. If there should be air
271
+ * *between* a Box and the elements around it, that's handled by StackLayout (vertically)
272
+ * or ClusterLayout (horizontally) — not something you add to the Box itself.
273
+ *
274
+ * @example
275
+ * ```tsx
276
+ * <BoxLayout padding="md" border borderRadius="md" variant="tinted">
277
+ * Content with breathing room around it and a visible border.
278
+ * </BoxLayout>
279
+ * ```
280
+ */
281
+ export declare const BoxLayout: <TDefaultElementType extends OtherGenericComponent & ElementType = "div">(boxLayoutProps: BoxLayoutProps<TDefaultElementType>) => React.JSX.Element;
282
+
283
+ export declare type BoxLayoutBorderRadius = "none" | "sm" | "md" | "lg" | "xl";
284
+
285
+ export declare type BoxLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
286
+ padding?: BoxLayoutSize;
287
+ paddingInline?: BoxLayoutSize;
288
+ paddingBlock?: BoxLayoutSize;
289
+ paddingBlockStart?: BoxLayoutSize;
290
+ paddingBlockEnd?: BoxLayoutSize;
291
+ paddingInlineStart?: BoxLayoutSize;
292
+ paddingInlineEnd?: BoxLayoutSize;
293
+ border?: boolean;
294
+ borderRadius?: BoxLayoutBorderRadius;
295
+ variant?: BoxLayoutVariant;
296
+ className?: string | undefined;
297
+ children: ReactNode;
298
+ }>;
299
+
300
+ export declare type BoxLayoutSize = "none" | "xs" | "sm" | "md" | "lg";
301
+
302
+ export declare type BoxLayoutVariant = "none" | "default" | "tinted";
303
+
304
+ export declare const Breadcrumbs: Breadcrumbs_2;
305
+
306
+ declare type Breadcrumbs_2 = typeof Breadcrumbs_3;
307
+
308
+ export { BreadcrumbsProps }
309
+
310
+ /**
311
+ * Button used to trigger an action. Wraps Digdir's `Button` with an extra
312
+ * `"xs"` size and a `"secondary-tinted"` variant.
313
+ *
314
+ * @example
315
+ * ```tsx
316
+ * <Button data-size="md">Click me</Button>
317
+ * ```
318
+ */
319
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
320
+
321
+ export declare interface ButtonProps extends Omit<ButtonProps_2, "variant" | "data-size"> {
322
+ /**
323
+ * Size of the button. Extends Digdir's sizes with an additional `"xs"` option
324
+ * for more compact UIs.
325
+ */
326
+ ["data-size"]?: ButtonProps_2["data-size"] | "xs";
327
+ /**
328
+ * Visual style of the button. Extends Digdir's variants with an additional
329
+ * `"secondary-tinted"` option, a secondary button on a tinted background meant for icons only.
330
+ */
331
+ variant?: ButtonProps_2["variant"] | "secondary-tinted";
332
+ }
333
+
334
+ /**
335
+ * Container used to group related content and actions. Wraps Digdir's
336
+ * `Card` and adds a `Card.IconBlock` subcomponent.
337
+ *
338
+ * @example
339
+ * ```tsx
340
+ * <Card>
341
+ * <Card.IconBlock>
342
+ * <Heading level={3}>Title</Heading>
343
+ * </Card.IconBlock>
344
+ * </Card>
345
+ * ```
346
+ */
347
+ export declare const Card: Card_2;
348
+
349
+ declare type Card_2 = typeof Card_3 & {
350
+ IconBlock: typeof CardIconBlock;
351
+ };
352
+
353
+ /**
354
+ * Block for showing an icon together with content (e.g. a heading and text)
355
+ * inside a `Card`.
356
+ *
357
+ * @example
358
+ * ```tsx
359
+ * <Card>
360
+ * <Card.IconBlock>
361
+ * <SomeIcon aria-hidden />
362
+ * <Heading level={3}>Title</Heading>
363
+ * </Card.IconBlock>
364
+ * </Card>
365
+ * ```
366
+ */
367
+ declare const CardIconBlock: React.ForwardRefExoticComponent<CardIconBlockProps & React.RefAttributes<HTMLDivElement>>;
368
+
369
+ export declare interface CardIconBlockProps extends React.HTMLAttributes<HTMLDivElement> {
370
+ children?: React.ReactNode;
371
+ /**
372
+ * Direction the icon and its content are stacked in.
373
+ * @default "vertical"
374
+ */
375
+ orientation?: "vertical" | "horizontal";
376
+ }
377
+
378
+ export { CardProps }
379
+
380
+ /**
381
+ * CenterLayout ensures content is centered within the container it sits in — either by
382
+ * center-aligning the text, or by centering individual elements that are narrower than
383
+ * the rest, instead of letting them stretch out to full width.
384
+ *
385
+ * CenterLayout does not set any `max-width` itself, and therefore works best together
386
+ * with a WrapperLayout that constrains the width of the container it centers within.
387
+ *
388
+ * @example
389
+ * ```tsx
390
+ * <WrapperLayout maxWidth="40em">
391
+ * <CenterLayout textAlign="center" shrinkToContent>
392
+ * <StackLayout space="md" style={{ maxWidth: "32rem" }}>
393
+ * <Heading level={1}>Heading</Heading>
394
+ * <Button>Get started</Button>
395
+ * </StackLayout>
396
+ * </CenterLayout>
397
+ * </WrapperLayout>
398
+ * ```
399
+ */
400
+ export declare const CenterLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(centerLayoutProps: CenterLayoutProps<TComponent>) => React.JSX.Element;
401
+
402
+ export declare type CenterLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
403
+ className?: string;
404
+ textAlign?: "start" | "center" | "end";
405
+ shrinkToContent?: boolean;
406
+ children: ReactNode;
407
+ }>;
408
+
409
+ export declare const Checkbox: Checkbox_2;
410
+
411
+ declare type Checkbox_2 = typeof Checkbox_3;
412
+
413
+ export { CheckboxProps }
414
+
415
+ export declare const Chip: Chip_2;
416
+
417
+ declare type Chip_2 = typeof Chip_3;
418
+
419
+ export declare type ClusterAlign = 'flex-start' | 'center' | 'flex-end' | 'baseline' | 'stretch';
420
+
421
+ export declare type ClusterJustify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | 'start' | 'end';
422
+
423
+ /**
424
+ * ClusterLayout groups elements of varying widths — such as buttons, tags, or navigation
425
+ * links — into a flexible group that wraps naturally onto a new line when there isn't
426
+ * enough room, without the spacing between elements becoming uneven or missing anywhere.
427
+ *
428
+ * The elements behave like words in a sentence: they sit next to each other and wrap onto
429
+ * the next line on their own when there's no longer room, with even spacing no matter how
430
+ * many rows result.
431
+ *
432
+ * @example
433
+ * ```tsx
434
+ * <ClusterLayout justify="space-between" align="center" space="md">
435
+ * <strong>Company logo</strong>
436
+ * <Button>Log in</Button>
437
+ * </ClusterLayout>
438
+ * ```
439
+ */
440
+ export declare const ClusterLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(clusterLayoutProps: ClusterLayoutProps<TComponent>) => React.JSX.Element;
441
+
442
+ export declare type ClusterLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
443
+ justify?: ClusterJustify;
444
+ align?: ClusterAlign;
445
+ space?: ClusterLayoutSpace;
446
+ noWrap?: boolean;
447
+ className?: string | undefined;
448
+ children: ReactNode;
449
+ }>;
450
+
451
+ export declare type ClusterLayoutSpace = "sm" | "md" | "lg";
452
+
453
+ export { Color }
454
+
455
+ export declare const Details: Details_2;
456
+
457
+ declare type Details_2 = typeof Details_3;
458
+
459
+ export { DetailsProps }
460
+
461
+ /**
462
+ * Modal dialog for content that requires the user's attention or a
463
+ * decision before they can continue. Wraps Digdir's `Dialog` and adds a
464
+ * `Dialog.Section` subcomponent.
465
+ *
466
+ * @example
467
+ * ```tsx
468
+ * <Dialog>
469
+ * <Dialog.Section>Content</Dialog.Section>
470
+ * </Dialog>
471
+ * ```
472
+ */
473
+ export declare const Dialog: Dialog_2;
474
+
475
+ declare type Dialog_2 = typeof Dialog_3 & {
476
+ Section: typeof DialogSection;
477
+ };
478
+
479
+ export { DialogProps }
480
+
481
+ declare const DialogSection: React.ForwardRefExoticComponent<DialogSectionProps & React.RefAttributes<HTMLDivElement>>;
482
+
483
+ /**
484
+ * DialogSection component, used to separate content in a Dialog without a border at the bottom of the content.
485
+ * You can combine Dialog.Section with Dialog.Block. Use two Dialog.Block directly after eachother to get a horizontal line between the content.
486
+ *
487
+ * @example
488
+ * <Dialog>
489
+ * <Dialog.Section>
490
+ * Header
491
+ * </Dialog.Section>
492
+ * <Dialog.Section>
493
+ * Content
494
+ * </Dialog.Section>
495
+ * <Dialog.Section>
496
+ * Footer
497
+ * </Dialog.Section>
498
+ * </Dialog>
499
+ */
500
+ export declare interface DialogSectionProps extends React.HTMLAttributes<HTMLDivElement> {
501
+ children?: React.ReactNode;
502
+ }
503
+
504
+ /**
505
+ * Separates content using Digdir's native hr element and styling tokens.
506
+ *
507
+ * @example
508
+ * <Divider orientation="vertical" />
509
+ */
510
+ export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
511
+
512
+ export declare interface DividerProps extends DividerProps_2 {
513
+ /** Direction of the divider. Defaults to horizontal. */
514
+ orientation?: "horizontal" | "vertical";
515
+ /** Digdir color theme, inherited from the surrounding theme when omitted. */
516
+ "data-color"?: Color;
517
+ /** Digdir size scale, inherited from the surrounding theme when omitted. */
518
+ "data-size"?: Size;
519
+ }
520
+
521
+ export declare const Dropdown: typeof DropdownMenu & Omit<typeof Dropdown_2, "Item" | "Button"> & {
522
+ Item: typeof DropdownItem;
523
+ Button: typeof DropdownButton;
524
+ List: typeof DropdownList;
525
+ };
526
+
527
+ /**
528
+ * Button that triggers an action inside a Dropdown menu. Closes the Dropdown
529
+ * automatically after being clicked, unless `preventAutoClose` is set.
530
+ *
531
+ * @example
532
+ * ```tsx
533
+ * <Dropdown.Button onClick={({ close }) => close()}>Log out</Dropdown.Button>
534
+ * ```
535
+ */
536
+ export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
537
+
538
+ export declare interface DropdownButtonClickEvent {
539
+ /** The original click event */
540
+ event: MouseEvent_2<HTMLButtonElement>;
541
+ /** Function to close the Dropdown */
542
+ close: () => void;
543
+ }
544
+
545
+ /** @expand */
546
+ export declare interface DropdownButtonProps extends Omit<DropdownButtonProps_2, "onClick" | "type"> {
547
+ /**
548
+ * When true, the Dropdown is not closed automatically on click. To close it
549
+ * you can use the close function from the onClick handler.
550
+ */
551
+ preventAutoClose?: boolean;
552
+ /**
553
+ * Custom click event that contains the original event and a
554
+ * close function that closes the Dropdown.
555
+ *
556
+ * {
557
+ * event: MouseEvent<HTMLButtonElement>;
558
+ * close: () => void;
559
+ * }
560
+ *
561
+ * @returns DropdownButtonClickEvent
562
+ */
563
+ onClick?: (event: DropdownButtonClickEvent) => void;
564
+ }
565
+
566
+ /**
567
+ * A single choice inside a `Dropdown.List`.
568
+ *
569
+ * @example
570
+ * ```tsx
571
+ * <Dropdown.List>
572
+ * <Dropdown.Item>Item 1</Dropdown.Item>
573
+ * </Dropdown.List>
574
+ * ```
575
+ */
576
+ export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
577
+
578
+ /** @expand */
579
+ export declare interface DropdownItemProps extends DropdownItemProps_2 {
580
+ /**
581
+ * Shows a divider below the item. Hidden if this is the last item.
582
+ */
583
+ divider?: boolean;
584
+ }
585
+
586
+ /**
587
+ * A list of `Dropdown.Item`s shown inside a `Dropdown`.
588
+ *
589
+ * @example
590
+ * ```tsx
591
+ * <Dropdown.List>
592
+ * <Dropdown.Item>Item 1</Dropdown.Item>
593
+ * </Dropdown.List>
594
+ * ```
595
+ */
596
+ export declare const DropdownList: React.ForwardRefExoticComponent<DropdownListProps & React.RefAttributes<HTMLUListElement>>;
597
+
598
+ /** @expand */
599
+ export declare interface DropdownListProps extends DropdownListProps_2 {
600
+ /**
601
+ * Shows a divider below the list. Hidden if this is the last item.
602
+ */
603
+ divider?: boolean;
604
+ }
605
+
606
+ /**
607
+ * A menu that shows a list of choices on temporary overlay, triggered by a
608
+ * `Dropdown.Button`. Use `Dropdown.Item`/`Dropdown.List` to compose the menu
609
+ * content.
610
+ *
611
+ * @example
612
+ * ```tsx
613
+ * <Dropdown>
614
+ * <Dropdown.Button>Open menu</Dropdown.Button>
615
+ * <Dropdown.List>
616
+ * <Dropdown.Item>Item 1</Dropdown.Item>
617
+ * </Dropdown.List>
618
+ * </Dropdown>
619
+ * ```
620
+ */
621
+ declare const DropdownMenu: ForwardedDropdown;
622
+
623
+ /** @expand */
624
+ export declare type DropdownProps = Omit<DropdownProps_2, "open"> & {
625
+ /** Called with the latest open state whenever the Dropdown opens or closes. */
626
+ onOpenChange?: (open: boolean) => void;
627
+ };
628
+
629
+ export declare const ErrorSummary: ErrorSummary_2;
630
+
631
+ declare type ErrorSummary_2 = typeof ErrorSummary_3;
632
+
633
+ export { ErrorSummaryProps }
634
+
635
+ /** @deprecated Use FileUpload instead. */
636
+ export declare const EXPERIMENTAL_FileUpload: FileUpload_2;
637
+
638
+ /*** Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
639
+ * (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
640
+ * set of props.
641
+ */
642
+ declare type ExtendableProps<TExtendedProps = {}, TOverrideProps = {}> = TOverrideProps & Omit<TExtendedProps, keyof TOverrideProps>;
643
+
644
+ export declare const Field: Field_2;
645
+
646
+ declare type Field_2 = typeof Field_3;
647
+
648
+ export { FieldProps }
649
+
650
+ export declare const Fieldset: Fieldset_2;
651
+
652
+ declare type Fieldset_2 = typeof Fieldset_3;
653
+
654
+ export { FieldsetProps }
655
+
656
+ export declare const FileUpload: FileUpload_2;
657
+
658
+ declare type FileUpload_2 = typeof EXPERIMENTAL_FileUpload_2;
659
+
660
+ export { FileUploadProps }
661
+
662
+ declare type ForwardedActionbar = ForwardRefExoticComponent<ActionbarProps & RefAttributes<HTMLDivElement>>;
663
+
664
+ declare type ForwardedDropdown = ForwardRefExoticComponent<DropdownProps & RefAttributes<HTMLElement>>;
665
+
666
+ /**
667
+ * GridLayout distributes content into a grid of columns and rows, where the number of
668
+ * columns automatically adapts to the available space — without `@media` queries.
669
+ *
670
+ * The grid uses `repeat(auto-fit, minmax(min(var(--min-width), 100%), 1fr))`, so the
671
+ * browser itself calculates the number of columns based on `minWidth`, and never lets a
672
+ * cell become so wide that content is pushed off the screen.
673
+ *
674
+ * @example
675
+ * ```tsx
676
+ * <GridLayout minWidth="18rem" space="md">
677
+ * <Card>Card 1</Card>
678
+ * <Card>Card 2</Card>
679
+ * <Card>Card 3</Card>
680
+ * </GridLayout>
681
+ * ```
682
+ */
683
+ export declare const GridLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(gridLayoutProps: GridLayoutProps<TComponent>) => React.JSX.Element;
684
+
685
+ export declare type GridLayoutMinWidth = number | string;
686
+
687
+ export declare type GridLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
688
+ /**
689
+ * Minimum width a cell can have before the grid wraps to a new row/column.
690
+ *
691
+ * Accepts free CSS width values (for example `"280px"`, `"35%"`,
692
+ * `"18rem"`, `"var(--my-size)"`).
693
+ *
694
+ * For backwards compatibility, numbers 1-30 still map to
695
+ * `var(--ds-size-{n})`, while other numeric values are treated as `px`.
696
+ */
697
+ minWidth?: GridLayoutMinWidth;
698
+ space?: GridLayoutSpace;
699
+ className?: string;
700
+ recursive?: boolean;
701
+ children: ReactNode;
702
+ }>;
703
+
704
+ export declare type GridLayoutSpace = "none" | "xs" | "sm" | "md" | "lg";
705
+
706
+ export declare const Header: HeaderComponent;
707
+
708
+ /**
709
+ * Page header showing the UDI logo (or a custom team name) together with
710
+ * navigation content. Use `Header.Content`, `Header.Menu` and
711
+ * `Header.Search` to compose the header's contents.
712
+ *
713
+ * @example
714
+ * ```tsx
715
+ * <Header>
716
+ * <Header.Content>
717
+ * <Button variant="tertiary">Home</Button>
718
+ * </Header.Content>
719
+ * </Header>
720
+ * ```
721
+ */
722
+ declare const Header_2: React.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
723
+ /**
724
+ * Name of the team, shown on the left in the header instead of the UDI
725
+ * logo. Can be a plain string, or a `ReactNode` if the team needs more
726
+ * than plain text (e.g. custom formatting or icons).
727
+ */
728
+ teamName?: ReactNode;
729
+ /**
730
+ * Heading level used for `teamName`. Set this to the level that fits the
731
+ * page's heading hierarchy, so you avoid multiple `<h1>`s on the same
732
+ * page.
733
+ * @default 1
734
+ */
735
+ teamNameHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
736
+ /**
737
+ * When set, the logo/team name becomes a link to the front page. Set to
738
+ * `true` to link to `/`, or provide your own URL (useful for apps that
739
+ * aren't hosted at the root, or that should link to another domain). Set
740
+ * to `null` or `false` to explicitly turn the link off.
741
+ */
742
+ homeHref?: string | boolean | null;
743
+ /**
744
+ * `aria-label` for the link set by `homeHref`, used by screen readers.
745
+ * Does not change the visual content (logo/team name is shown as normal).
746
+ * @default "Til forsiden"
747
+ */
748
+ ariaLabel?: string;
749
+ /** Maximum width of the header's content area. */
750
+ maxWidth?: CSSProperties["maxWidth"];
751
+ /**
752
+ * Visual style of the header.
753
+ * @default "default"
754
+ */
755
+ variant?: "default" | "tinted";
756
+ /**
757
+ * Color palette used by the header.
758
+ * @default "neutral"
759
+ */
760
+ "data-color"?: "neutral" | "primary";
761
+ } & React.RefAttributes<HTMLElement>>;
762
+
763
+ declare type HeaderComponent = typeof Header_2 & {
764
+ Content: typeof HeaderContent;
765
+ Divider: typeof HeaderDivider;
766
+ Menu: typeof HeaderMenu;
767
+ Search: typeof HeaderSearch;
768
+ };
769
+
770
+ /**
771
+ * Container for a group of items inside a `Header` (e.g. navigation links,
772
+ * buttons), typically aligned together on one side of the header.
773
+ *
774
+ * @example
775
+ * ```tsx
776
+ * <Header.Content>
777
+ * <Button variant="tertiary">Home</Button>
778
+ * </Header.Content>
779
+ * ```
780
+ */
781
+ export declare const HeaderContent: React.ForwardRefExoticComponent<HeaderContentProps & React.RefAttributes<HTMLDivElement>>;
782
+
783
+ export declare type HeaderContentProps = HTMLAttributes<HTMLDivElement>;
784
+
785
+ /**
786
+ * Visual divider used to separate groups of content inside a `Header`.
787
+ * Hidden from assistive technology by default; pass `role="separator"` if
788
+ * the divider conveys real structure.
789
+ *
790
+ * @example
791
+ * ```tsx
792
+ * <Header.Content>
793
+ * <Button variant="tertiary">Home</Button>
794
+ * <Header.Divider />
795
+ * <Button variant="tertiary">Services</Button>
796
+ * </Header.Content>
797
+ * ```
798
+ */
799
+ export declare const HeaderDivider: React.ForwardRefExoticComponent<HeaderDividerProps & React.RefAttributes<HTMLDivElement>>;
800
+
801
+ export declare type HeaderDividerProps = Omit<HTMLAttributes<HTMLDivElement>, "children">;
802
+
803
+ export declare const HeaderMenu: HeaderMenuComponent;
804
+
805
+ /**
806
+ * Popover menu opened from a `Header.Menu.Button`, used for site navigation
807
+ * on smaller viewports. Compose its contents with `Header.Menu.Group` and
808
+ * `Header.Menu.Item`.
809
+ *
810
+ * @example
811
+ * ```tsx
812
+ * <Header.Menu.Button />
813
+ * <Header.Menu>
814
+ * <Header.Menu.Group>
815
+ * <Header.Menu.Item href="#">Home</Header.Menu.Item>
816
+ * </Header.Menu.Group>
817
+ * </Header.Menu>
818
+ * ```
819
+ */
820
+ declare const HeaderMenu_2: React.ForwardRefExoticComponent<HeaderMenuProps & React.RefAttributes<HTMLDivElement>>;
821
+
822
+ /**
823
+ * Button that opens/closes the `Header.Menu` popover. Renders as a Smudi
824
+ * `Button` and keeps its `aria-expanded` state in sync with the popover.
825
+ *
826
+ * @example
827
+ * ```tsx
828
+ * <Header.Menu.Button />
829
+ * ```
830
+ */
831
+ export declare const HeaderMenuButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
832
+
833
+ export declare type HeaderMenuButtonProps = ButtonProps;
834
+
835
+ declare type HeaderMenuComponent = typeof HeaderMenu_2 & {
836
+ Content: typeof HeaderMenuContent;
837
+ Group: typeof HeaderMenuGroup;
838
+ Item: typeof HeaderMenuItem;
839
+ };
840
+
841
+ /**
842
+ * Scrollable content wrapper inside `Header.Menu`, used to hold one or more
843
+ * `Header.Menu.Group`s.
844
+ *
845
+ * @example
846
+ * ```tsx
847
+ * <Header.Menu>
848
+ * <Header.Menu.Content>
849
+ * <Header.Menu.Group>...</Header.Menu.Group>
850
+ * </Header.Menu.Content>
851
+ * </Header.Menu>
852
+ * ```
853
+ */
854
+ export declare const HeaderMenuContent: React.ForwardRefExoticComponent<HeaderMenuContentProps & React.RefAttributes<HTMLDivElement>>;
855
+
856
+ export declare type HeaderMenuContentProps = HTMLAttributes<HTMLDivElement>;
857
+
858
+ /**
859
+ * Groups related `Header.Menu.Item`s together inside a `Header.Menu`.
860
+ *
861
+ * @example
862
+ * ```tsx
863
+ * <Header.Menu.Group>
864
+ * <Header.Menu.Item href="#">Home</Header.Menu.Item>
865
+ * </Header.Menu.Group>
866
+ * ```
867
+ */
868
+ export declare const HeaderMenuGroup: React.ForwardRefExoticComponent<HeaderMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
869
+
870
+ export declare type HeaderMenuGroupProps = HTMLAttributes<HTMLDivElement>;
871
+
872
+ /**
873
+ * A single navigation link inside `Header.Menu`.
874
+ *
875
+ * @example
876
+ * ```tsx
877
+ * <Header.Menu.Item href="#">Home</Header.Menu.Item>
878
+ * ```
879
+ */
880
+ export declare const HeaderMenuItem: React.ForwardRefExoticComponent<Omit< DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
881
+ children: ReactNode;
882
+ asChild?: boolean;
883
+ } & {
884
+ /**
885
+ * Icon shown at the end of the item.
886
+ * @default <ChevronRightIcon aria-hidden />
887
+ */
888
+ icon?: ReactNode;
889
+ } & React.RefAttributes<HTMLAnchorElement>>;
890
+
891
+ export declare type HeaderMenuItemProps = LinkProps & {
892
+ /**
893
+ * Icon shown at the end of the item.
894
+ * @default <ChevronRightIcon aria-hidden />
895
+ */
896
+ icon?: ReactNode;
897
+ };
898
+
899
+ export declare type HeaderMenuProps = Omit<PopoverProps, "id" | "placement" | "autoPlacement" | "variant">;
900
+
901
+ export declare type HeaderProps = HTMLAttributes<HTMLElement> & {
902
+ /**
903
+ * Name of the team, shown on the left in the header instead of the UDI
904
+ * logo. Can be a plain string, or a `ReactNode` if the team needs more
905
+ * than plain text (e.g. custom formatting or icons).
906
+ */
907
+ teamName?: ReactNode;
908
+ /**
909
+ * Heading level used for `teamName`. Set this to the level that fits the
910
+ * page's heading hierarchy, so you avoid multiple `<h1>`s on the same
911
+ * page.
912
+ * @default 1
913
+ */
914
+ teamNameHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
915
+ /**
916
+ * When set, the logo/team name becomes a link to the front page. Set to
917
+ * `true` to link to `/`, or provide your own URL (useful for apps that
918
+ * aren't hosted at the root, or that should link to another domain). Set
919
+ * to `null` or `false` to explicitly turn the link off.
920
+ */
921
+ homeHref?: string | boolean | null;
922
+ /**
923
+ * `aria-label` for the link set by `homeHref`, used by screen readers.
924
+ * Does not change the visual content (logo/team name is shown as normal).
925
+ * @default "Til forsiden"
926
+ */
927
+ ariaLabel?: string;
928
+ /** Maximum width of the header's content area. */
929
+ maxWidth?: CSSProperties["maxWidth"];
930
+ /**
931
+ * Visual style of the header.
932
+ * @default "default"
933
+ */
934
+ variant?: "default" | "tinted";
935
+ /**
936
+ * Color palette used by the header.
937
+ * @default "neutral"
938
+ */
939
+ "data-color"?: "neutral" | "primary";
940
+ };
941
+
942
+ /**
943
+ * Popover containing search functionality, opened from a
944
+ * `Header.Search.Button`.
945
+ *
946
+ * @example
947
+ * ```tsx
948
+ * <Header.Search.Button />
949
+ * <Header.Search>
950
+ * <Search>...</Search>
951
+ * </Header.Search>
952
+ * ```
953
+ */
954
+ export declare const HeaderSearch: React.ForwardRefExoticComponent<Omit<PopoverProps, "id" | "variant" | "placement" | "autoPlacement"> & {
955
+ children?: ReactNode;
956
+ className?: string;
957
+ /** Controls whether the search popover is open. */
958
+ open?: boolean;
959
+ /** Called when the search popover opens. */
960
+ onOpen?: () => void;
961
+ /** Called when the search popover closes. */
962
+ onClose?: () => void;
963
+ } & React.RefAttributes<HTMLDivElement>>;
964
+
965
+ /**
966
+ * Button that opens/closes the `Header.Search` popover. Renders as a Smudi
967
+ * `Button` and keeps its `aria-expanded` state in sync with the popover.
968
+ *
969
+ * @example
970
+ * ```tsx
971
+ * <Header.Search.Button />
972
+ * ```
973
+ */
974
+ export declare const HeaderSearchButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "aria-controls" | "aria-haspopup" | "popovertarget" | "variant"> & {
975
+ /**
976
+ * Visible label and default `aria-label` for the button.
977
+ * @default "Søk"
978
+ */
979
+ label?: string;
980
+ } & React.RefAttributes<HTMLButtonElement>>;
981
+
982
+ export declare type HeaderSearchButtonProps = Omit<ButtonProps, "variant" | "popovertarget" | "aria-controls" | "aria-haspopup"> & {
983
+ /**
984
+ * Visible label and default `aria-label` for the button.
985
+ * @default "Søk"
986
+ */
987
+ label?: string;
988
+ };
989
+
990
+ export declare type HeaderSearchProps = Omit<PopoverProps, "id" | "placement" | "autoPlacement" | "variant"> & {
991
+ children?: ReactNode;
992
+ className?: string;
993
+ /** Controls whether the search popover is open. */
994
+ open?: boolean;
995
+ /** Called when the search popover opens. */
996
+ onOpen?: () => void;
997
+ /** Called when the search popover closes. */
998
+ onClose?: () => void;
999
+ };
1000
+
1001
+ export declare const Heading: React.ForwardRefExoticComponent<{
1002
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
1003
+ 'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
1004
+ asChild?: boolean;
1005
+ } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
1006
+
1007
+ export { HeadingProps }
1008
+
1009
+ /**
1010
+ * Allows for inheriting the props from the specified element type so that
1011
+ * props like children, className & style work, as well as element-specific
1012
+ * attributes like aria roles. The component (`C`) must be passed in.
1013
+ */
1014
+ declare type InheritableElementProps<TComponent extends ElementType, Props = {}> = ExtendableProps<ComponentPropsWithoutRef<TComponent>, Props>;
1015
+
1016
+ export declare const Input: Input_2;
1017
+
1018
+ declare type Input_2 = typeof Input_3;
1019
+
1020
+ export { InputProps }
1021
+
1022
+ declare type IntrinsicElementsAsComponentProp<TComponent extends OtherGenericComponent & ElementType> = {
1023
+ /**
1024
+ * An override of the default HTML tag.
1025
+ * Can also be another React component.
1026
+ */
1027
+ as?: TComponent;
1028
+ };
1029
+
1030
+ export declare const Link: Link_2;
1031
+
1032
+ declare type Link_2 = typeof Link_3;
1033
+
1034
+ export { LinkProps }
1035
+
1036
+ export declare const List: List_2;
1037
+
1038
+ declare type List_2 = typeof List_3;
1039
+
1040
+ /**
1041
+ * optional if we want to pass in other types of component name
1042
+ */
1043
+ declare type OtherGenericComponent = string & {};
1044
+
1045
+ export declare const Pagination: Pagination_2;
1046
+
1047
+ declare type Pagination_2 = typeof Pagination_3;
1048
+
1049
+ export { PaginationProps }
1050
+
1051
+ export declare const Paragraph: Paragraph_2;
1052
+
1053
+ declare type Paragraph_2 = typeof Paragraph_3;
1054
+
1055
+ export { ParagraphProps }
1056
+
1057
+ /**
1058
+ * Polymorphic types source:
1059
+ * Ben Illegbodu - https://ewww.benmvp.com/blog/polymorphic-react-components-typescript/
1060
+ * Source: https://github.com/emotion-js/emotion/blob/master/packages/styled-base/types/helper.d.ts
1061
+ */
1062
+ /**
1063
+ * A more sophisticated version of `InheritableElementProps` where
1064
+ * the passed in `as` prop will determine which props can be included
1065
+ */
1066
+ declare type PolymorphicComponentProps<TComponent extends OtherGenericComponent & ElementType, Props = {}> = InheritableElementProps<TComponent, Props & IntrinsicElementsAsComponentProp<TComponent>>;
1067
+
1068
+ export declare const Popover: Popover_2;
1069
+
1070
+ declare type Popover_2 = typeof Popover_3;
1071
+
1072
+ export { PopoverProps }
1073
+
1074
+ export declare const Radio: Radio_2;
1075
+
1076
+ declare type Radio_2 = typeof Radio_3;
1077
+
1078
+ export { RadioProps }
1079
+
1080
+ export declare const Search: Search_2;
1081
+
1082
+ declare type Search_2 = typeof Search_3;
1083
+
1084
+ export { SearchProps }
1085
+
1086
+ export declare const Select: Select_2;
1087
+
1088
+ declare type Select_2 = typeof Select_3;
1089
+
1090
+ export { SelectProps }
1091
+
1092
+ export { SeverityColors }
1093
+
1094
+ export declare const Skeleton: Skeleton_2;
1095
+
1096
+ declare type Skeleton_2 = typeof Skeleton_3;
1097
+
1098
+ export { SkeletonProps }
1099
+
1100
+ export declare const SkipLink: SkipLink_2;
1101
+
1102
+ declare type SkipLink_2 = typeof SkipLink_3;
1103
+
1104
+ export { SkipLinkProps }
1105
+
1106
+ export declare const SmudiBiometryIcon: React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
1107
+
1108
+ export declare const SmudiFingerprintIcon: React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps_2, "ref"> & React.RefAttributes<SVGSVGElement>>;
1109
+
1110
+ export declare const SmudiFlagIcon: React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps_3, "ref"> & React.RefAttributes<SVGSVGElement>>;
1111
+
1112
+ export declare const SmudiScanIcon: React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps_4, "ref"> & React.RefAttributes<SVGSVGElement>>;
1113
+
1114
+ /**
1115
+ * List of suggested options shown inside a `Suggestion`. Automatically
1116
+ * renders a "select all" option when `Suggestion`'s `showToggleAll` is set.
1117
+ */
1118
+ declare const SmudiSuggestionList: ForwardRefExoticComponent<SuggestionListProps & RefAttributes<HTMLDataListElement>>;
1119
+
1120
+ export declare const Spinner: Spinner_2;
1121
+
1122
+ declare type Spinner_2 = typeof Spinner_3;
1123
+
1124
+ export { SpinnerProps }
1125
+
1126
+ export declare const SplitView: FC<SplitViewProps> & {
1127
+ Panel: typeof SplitViewPanel;
1128
+ };
1129
+
1130
+ /**
1131
+ * Defines a single resizable panel inside a `SplitView`. Its `children` are
1132
+ * rendered as-is; the width props are read by `SplitView` (via the
1133
+ * `useResize` hook) to compute the panel's starting/min/max width.
1134
+ */
1135
+ declare function SplitViewPanel({ children }: SplitViewPanelProps): React.JSX.Element;
1136
+
1137
+ export declare type SplitViewPanelProps = PropsWithChildren & {
1138
+ /**
1139
+ * The starting width in percentage.
1140
+ * If none are passed all widths will be divided equally.
1141
+ */
1142
+ defaultWidth?: number;
1143
+ /**
1144
+ * The minWidth in percentage.
1145
+ */
1146
+ minWidth?: number;
1147
+ /**
1148
+ * The maxWidth in percentage.
1149
+ */
1150
+ maxWidth?: number;
1151
+ };
1152
+
1153
+ export declare type SplitViewProps = ComponentProps<"div"> & {
1154
+ /**
1155
+ * Emits a list of the current panel widths.
1156
+ * This can be useful if you want to store them somewhere (e.g localStorage)
1157
+ */
1158
+ onResizeChange?: (widths: number[]) => void;
1159
+ /**
1160
+ * Divider color palette. Defaults to `primary`.
1161
+ */
1162
+ "data-color"?: "primary" | "neutral";
1163
+ };
1164
+
1165
+ /**
1166
+ * StackLayout automatically applies vertical spacing between elements that follow one
1167
+ * another, without creating "excess" margin at the edges.
1168
+ *
1169
+ * Uses the "owl" selector (`* + *`) to set `margin-block-start` only between elements, so
1170
+ * that the first and last elements in the stack never get unnecessary spacing.
1171
+ *
1172
+ * @example
1173
+ * ```tsx
1174
+ * <StackLayout space="md">
1175
+ * <h2>Heading</h2>
1176
+ * <img src="image.svg" />
1177
+ * <p>Body text.</p>
1178
+ * </StackLayout>
1179
+ * ```
1180
+ */
1181
+ export declare const StackLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(stackLayoutProps: StackLayoutProps<TComponent>) => React.JSX.Element;
1182
+
1183
+ export declare type StackLayoutAlign = "start" | "center" | "end" | "stretch";
1184
+
1185
+ declare type StackLayoutOwnProps = {
1186
+ space?: StackLayoutSpace;
1187
+ align?: StackLayoutAlign;
1188
+ className?: string;
1189
+ recursive?: boolean;
1190
+ children: ReactNode;
1191
+ };
1192
+
1193
+ export declare type StackLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, StackLayoutOwnProps>;
1194
+
1195
+ export declare type StackLayoutSpace = "none" | "xs" | "sm" | "md" | "lg";
1196
+
1197
+ export declare type StepContentProps = ComponentProps<"div"> & {
1198
+ /** Value identifying this panel; must match the `<Step value>` it belongs to. */
1199
+ value: string;
1200
+ };
1201
+
1202
+ /**
1203
+ * How step panels are mounted. This is opt-in via `useStepperState` — when the
1204
+ * hook isn't used, every `<Stepper.Content>` you render stays mounted, which is
1205
+ * equivalent to `"all"`. The Stepper component itself has no mount strategy.
1206
+ * - `active`: only the active panel is rendered (others unmount on leave).
1207
+ * - `lazy`: a panel renders on first visit, then stays rendered (hidden).
1208
+ * - `all`: every panel renders (inactive ones hidden).
1209
+ */
1210
+ export declare type StepMountStrategy = "active" | "lazy" | "all";
1211
+
1212
+ declare type StepOwnProps = PropsWithChildren & {
1213
+ /** Unique value identifying this step; must match a `<StepContent value>`. */
1214
+ value: string;
1215
+ /** Custom indicator content, replacing the default status icon. */
1216
+ icon?: ReactNode;
1217
+ status?: "completed" | "error" | "warning";
1218
+ /** Class applied to the step container (`<li>`), not the trigger. */
1219
+ className?: string;
1220
+ };
1221
+
1222
+ export declare const Stepper: (<TValue extends string = string>(props: StepperProps<TValue>) => React.ReactElement) & {
1223
+ displayName: string;
1224
+ Step: <E extends React.ElementType = "button">(props: StepProps<E> & {
1225
+ ref?: React.Ref<HTMLElement>;
1226
+ }) => React.ReactElement;
1227
+ StepList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
1228
+ Content: React.ForwardRefExoticComponent<Omit<StepContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1229
+ ContentList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1230
+ };
1231
+
1232
+ declare type StepperOrientation = "horizontal" | "vertical";
1233
+
1234
+ export declare type StepperProps<TValue extends string = string> = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
1235
+ /**
1236
+ * The active step's value (controlled). Omit and use `defaultValue` for an
1237
+ * uncontrolled stepper that manages its own state.
1238
+ */
1239
+ value?: TValue;
1240
+ /**
1241
+ * The `value` of the step that starts active in an uncontrolled stepper.
1242
+ * Sets the initial step only — later navigation is managed internally.
1243
+ * Ignored when `value` is provided (controlled). Omit both to start with no
1244
+ * active step.
1245
+ */
1246
+ defaultValue?: TValue;
1247
+ /**
1248
+ * Called with a step's value when the user activates an interactive step.
1249
+ */
1250
+ onChange?: (value: TValue) => void;
1251
+ /** Layout direction of the step list. Defaults to `'horizontal'`. */
1252
+ orientation?: StepperOrientation;
1253
+ /** Override the screen-reader status text (e.g. for localization). */
1254
+ statusLabels?: Partial<StepperStatusLabels>;
1255
+ /**
1256
+ * Stepper variant. Defaults to `"linear"`.
1257
+ * - `"linear"` (default): locks steps ahead of the current one — the user can
1258
+ * click back to earlier steps, but advancing forward must be done
1259
+ * programmatically (e.g. a "Next" button updating the active step).
1260
+ * - `"non-linear"`: any step can be selected.
1261
+ * - `"readonly"`: every step is inert (a display-only progress indicator);
1262
+ * changing steps must be done fully programmatically.
1263
+ */
1264
+ variant?: StepperVariant;
1265
+ /** Screen-reader hint for steps locked by linear mode. Defaults to "Locked". */
1266
+ lockedLabel?: string;
1267
+ };
1268
+
1269
+ export declare interface StepperState<TValue extends string> {
1270
+ /** The active step's value — pass to `<Stepper value>`. */
1271
+ value: TValue;
1272
+ /** Sets the active step. Wire to `<Stepper onChange>` and/or call it directly
1273
+ * to move the stepper programmatically. */
1274
+ setValue: (value: TValue) => void;
1275
+ /** Whether the panel for `value` should be rendered right now. */
1276
+ shouldRender: (value: TValue) => boolean;
1277
+ }
1278
+
1279
+ /** Screen-reader-only text appended to a step for each status. Localizable. */
1280
+ declare interface StepperStatusLabels {
1281
+ completed: string;
1282
+ error: string;
1283
+ warning: string;
1284
+ }
1285
+
1286
+ /**
1287
+ * Stepper variant:
1288
+ * - `linear`: steps ahead of the current one are locked; the user can click
1289
+ * back to earlier steps, but forward progress is programmatic.
1290
+ * - `non-linear`: navigable, any step can be selected.
1291
+ * - `readonly`: not navigable — a display-only progress indicator.
1292
+ */
1293
+ declare type StepperVariant = "linear" | "non-linear" | "readonly";
1294
+
1295
+ /**
1296
+ * `as` lets a navigable step render as something other than a `<button>` —
1297
+ * e.g. a router's `<Link>`. Extra props (`to`, `href`, …) flow to that element.
1298
+ */
1299
+ export declare type StepProps<E extends ElementType = "button"> = StepOwnProps & {
1300
+ as?: E;
1301
+ } & Omit<ComponentPropsWithoutRef<E>, keyof StepOwnProps | "as">;
1302
+
1303
+ export declare const Suggestion: default_2.FC<SuggestionProps> & {
1304
+ NoChips: typeof SuggestionNoChips;
1305
+ List: typeof SmudiSuggestionList;
1306
+ Input: typeof EXPERIMENTAL_Suggestion.Input;
1307
+ Clear: typeof EXPERIMENTAL_Suggestion.Clear;
1308
+ Option: typeof EXPERIMENTAL_Suggestion.Option;
1309
+ Empty: typeof EXPERIMENTAL_Suggestion.Empty;
1310
+ Toggle: typeof EXPERIMENTAL_Suggestion.Toggle;
1311
+ };
1312
+
1313
+ declare const SuggestionNoChips: default_2.FC<SuggestionNoChipsProps> & {
1314
+ Input: typeof EXPERIMENTAL_Suggestion.Input;
1315
+ Toggle: typeof EXPERIMENTAL_Suggestion.Toggle;
1316
+ Clear: typeof EXPERIMENTAL_Suggestion.Clear;
1317
+ List: typeof SmudiSuggestionList;
1318
+ Option: typeof EXPERIMENTAL_Suggestion.Option;
1319
+ Empty: typeof EXPERIMENTAL_Suggestion.Empty;
1320
+ };
1321
+
1322
+ export declare type SuggestionNoChipsProps = Omit<SuggestionProps, "multiple" | "selected" | "defaultSelected" | "onSelectedChange"> & {
1323
+ /** Placeholder text shown when nothing is typed or selected. */
1324
+ placeholder?: string;
1325
+ /** The items that can be selected. */
1326
+ items?: SuggestionItem[];
1327
+ /**
1328
+ * Size of the input.
1329
+ * @default "md"
1330
+ */
1331
+ "data-size"?: "sm" | "md" | "lg";
1332
+ /** Currently selected items (controlled). */
1333
+ selected?: (string | SuggestionItem)[] | null;
1334
+ /** Initially selected items (uncontrolled). */
1335
+ defaultSelected?: (string | SuggestionItem)[];
1336
+ /** Called whenever the selection changes. */
1337
+ onSelectedChange?: (value: SuggestionItem[]) => void;
1338
+ };
1339
+
1340
+ export declare type SuggestionProps = {
1341
+ /**
1342
+ * When true the suggestion will show a "select all" toggle option.
1343
+ * Defaults to the Norwegian text "Velg alle". Pass a string instead to
1344
+ * override the label, e.g. "Velg alle destinasjoner".
1345
+ *
1346
+ * For the component to be able to emit all the items on toggling you
1347
+ * must provide them in the item prop.
1348
+ */
1349
+ showToggleAll?: boolean | string;
1350
+ /** The items that can be selected. */
1351
+ items?: SuggestionItem[];
1352
+ } & Omit<SuggestionProps_2, "multiple" | "selected" | "onSelectedChange"> & ToggleAllTypes;
1353
+
1354
+ declare interface SVGRProps {
1355
+ title?: string;
1356
+ titleId?: string;
1357
+ }
1358
+
1359
+ declare interface SVGRProps_2 {
1360
+ title?: string;
1361
+ titleId?: string;
1362
+ }
1363
+
1364
+ declare interface SVGRProps_3 {
1365
+ title?: string;
1366
+ titleId?: string;
1367
+ }
1368
+
1369
+ declare interface SVGRProps_4 {
1370
+ title?: string;
1371
+ titleId?: string;
1372
+ }
1373
+
1374
+ export declare const Switch: Switch_2;
1375
+
1376
+ declare type Switch_2 = typeof Switch_3;
1377
+
1378
+ export { SwitchProps }
1379
+
1380
+ export declare const Table: typeof TableBase & Omit<typeof Table_2, "$$typeof" | "render">;
1381
+
1382
+ /**
1383
+ * Table used to display tabular data. Wraps Digdir's `Table` with an extra
1384
+ * `tintedHeader` option.
1385
+ *
1386
+ * @example
1387
+ * ```tsx
1388
+ * <Table tintedHeader>
1389
+ * <Table.Head>
1390
+ * <Table.Row>
1391
+ * <Table.HeaderCell>Name</Table.HeaderCell>
1392
+ * </Table.Row>
1393
+ * </Table.Head>
1394
+ * </Table>
1395
+ * ```
1396
+ */
1397
+ declare const TableBase: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
1398
+
1399
+ export declare interface TableProps extends TableProps_2 {
1400
+ /**
1401
+ * Gives the table header a tinted background instead of the default style.
1402
+ * @default false
1403
+ */
1404
+ tintedHeader?: boolean;
1405
+ }
1406
+
1407
+ export declare const Tabs: Tabs_2;
1408
+
1409
+ declare type Tabs_2 = typeof Tabs_3;
1410
+
1411
+ export declare const TabsContent: TabsContent_2;
1412
+
1413
+ declare type TabsContent_2 = typeof TabsPanel;
1414
+
1415
+ export { TabsContentProps }
1416
+
1417
+ export declare const TabsList: TabsList_2;
1418
+
1419
+ declare type TabsList_2 = typeof TabsList_3;
1420
+
1421
+ export { TabsListProps }
1422
+
1423
+ export { TabsProps }
1424
+
1425
+ export declare const TabsTrigger: TabsTrigger_2;
1426
+
1427
+ declare type TabsTrigger_2 = typeof TabsTab;
1428
+
1429
+ export { TabsTriggerProps }
1430
+
1431
+ export declare const Tag: Tag_2;
1432
+
1433
+ declare type Tag_2 = typeof Tag_3;
1434
+
1435
+ export { TagProps }
1436
+
1437
+ export declare const TextArea: TextArea_2;
1438
+
1439
+ declare type TextArea_2 = typeof Textarea;
1440
+
1441
+ export { TextareaProps }
1442
+
1443
+ export declare const Textfield: Textfield_2;
1444
+
1445
+ declare type Textfield_2 = typeof Textfield_3;
1446
+
1447
+ export { TextfieldProps }
1448
+
1449
+ /**
1450
+ * Shows a toast notification. Requires a `ToastProvider` to be mounted
1451
+ * somewhere in the app. Also exposes `toast.success`, `toast.danger`,
1452
+ * `toast.info`, `toast.warning`, `toast.neutral`, `toast.dismiss` and
1453
+ * `toast.promise`.
1454
+ *
1455
+ * @example
1456
+ * ```tsx
1457
+ * toast.success("Saved!");
1458
+ * ```
1459
+ */
1460
+ export declare const toast: ToastFunction;
1461
+
1462
+ declare type ToastColor = "neutral" | "success" | "danger" | "info" | "warning";
1463
+
1464
+ declare type ToastFunction = ((content: ReactNode, options?: ToastOptions) => ToastHandle) & {
1465
+ dismiss: (id: string) => void;
1466
+ success: (content: ReactNode, options?: ToastOptions) => ToastHandle;
1467
+ danger: (content: ReactNode, options?: ToastOptions) => ToastHandle;
1468
+ info: (content: ReactNode, options?: ToastOptions) => ToastHandle;
1469
+ warning: (content: ReactNode, options?: ToastOptions) => ToastHandle;
1470
+ neutral: (content: ReactNode, options?: ToastOptions) => ToastHandle;
1471
+ promise: <T>(action: () => Promise<T>, options: ToastPromiseOptions) => Promise<T>;
1472
+ };
1473
+
1474
+ export declare type ToastHandle = {
1475
+ /** The id of the shown toast. */
1476
+ id: string;
1477
+ /** Closes the toast. */
1478
+ close: () => void;
1479
+ };
1480
+
1481
+ export declare type ToastOptions = {
1482
+ /** Custom CSS class applied to the toast. */
1483
+ className?: string;
1484
+ /**
1485
+ * Color/severity of the toast.
1486
+ * @default "info"
1487
+ */
1488
+ color?: ToastColor;
1489
+ /**
1490
+ * Size of the toast.
1491
+ * @default "md"
1492
+ */
1493
+ "data-size"?: ToastSize;
1494
+ /** Fixed width of the toast. */
1495
+ width?: string;
1496
+ /** Minimum width of the toast. */
1497
+ minWidth?: string;
1498
+ /** Maximum width of the toast. */
1499
+ maxWidth?: string;
1500
+ /**
1501
+ * How long the toast stays visible before auto-closing, in milliseconds.
1502
+ * Pass `false` to disable auto-close.
1503
+ * @default 5000
1504
+ */
1505
+ duration?: number | false;
1506
+ /** Shows a busy/loading indicator on the toast. */
1507
+ busy?: boolean;
1508
+ /** Custom id for the toast. Auto-generated if not provided. */
1509
+ id?: string;
1510
+ };
1511
+
1512
+ declare type ToastPromiseOptions = ToastOptions & {
1513
+ loading: ReactNode;
1514
+ success: ReactNode;
1515
+ error: ReactNode;
1516
+ };
1517
+
1518
+ /**
1519
+ * Mounts the toast stack for the app and provides the `toast(...)` function
1520
+ * with somewhere to render. Must be rendered once near the root of the app
1521
+ * for `toast(...)` to have any visible effect.
1522
+ *
1523
+ * @example
1524
+ * ```tsx
1525
+ * <ToastProvider>
1526
+ * <App />
1527
+ * </ToastProvider>
1528
+ * ```
1529
+ */
1530
+ export declare function ToastProvider({ children }: ToastProviderProps): React.JSX.Element;
1531
+
1532
+ declare type ToastProviderProps = {
1533
+ /** The application content that toasts triggered by `toast(...)` are shown alongside. */
1534
+ children?: ReactNode;
1535
+ };
1536
+
1537
+ declare type ToastSize = "sm" | "md" | "lg";
1538
+
1539
+ declare type ToggleAllTypes = {
1540
+ multiple: true;
1541
+ showToggleAll: true | string;
1542
+ items: SuggestionItem[];
1543
+ selected?: (string | SuggestionItem)[] | null;
1544
+ onSelectedChange?: (value: SuggestionItem[]) => void;
1545
+ } | {
1546
+ multiple: true;
1547
+ showToggleAll?: false;
1548
+ items?: SuggestionItem[];
1549
+ selected?: (string | SuggestionItem)[] | null;
1550
+ onSelectedChange?: (value: SuggestionItem[]) => void;
1551
+ } | {
1552
+ multiple?: false;
1553
+ showToggleAll?: never;
1554
+ items?: never;
1555
+ /** Controlled selection. Use `null` for an explicitly empty selection. */
1556
+ selected?: string | SuggestionItem | null;
1557
+ /** Called when the selection changes, with `null` when cleared. */
1558
+ onSelectedChange?: (value: SuggestionItem | null) => void;
1559
+ };
1560
+
1561
+ export declare const ToggleGroup: ToggleGroup_2;
1562
+
1563
+ declare type ToggleGroup_2 = typeof ToggleGroup_3;
1564
+
1565
+ export { ToggleGroupProps }
1566
+
1567
+ export declare const Tooltip: Tooltip_2;
1568
+
1569
+ declare type Tooltip_2 = typeof Tooltip_3;
1570
+
1571
+ export { TooltipProps }
1572
+
1573
+ export declare const UDILogo: () => React.JSX.Element;
1574
+
1575
+ /**
1576
+ * Owns a stepper's active-step state and, optionally, decides which content
1577
+ * panels are mounted. Gate `<Stepper.Content>` with the returned `shouldRender`:
1578
+ *
1579
+ * ```tsx
1580
+ * const stepper = useStepperState({ defaultValue: "one", mountStrategy: "lazy" });
1581
+ * <Stepper value={stepper.value} onChange={stepper.setValue}>
1582
+ * {steps.map((s) => stepper.shouldRender(s.value) && (
1583
+ * <Stepper.Content key={s.value} value={s.value}>…</Stepper.Content>
1584
+ * ))}
1585
+ * </Stepper>
1586
+ * ```
1587
+ *
1588
+ * The hook lives in the parent, so its "visited" memory survives panels
1589
+ * unmounting — which is what makes `"lazy"` reliable.
1590
+ */
1591
+ export declare function useStepperState<TValue extends string>({ defaultValue, mountStrategy, }: UseStepperStateOptions<TValue>): StepperState<TValue>;
1592
+
1593
+ export declare interface UseStepperStateOptions<TValue extends string> {
1594
+ /** The step that starts active. Only seeds the initial value — later changes
1595
+ * go through `setValue`. */
1596
+ defaultValue: TValue;
1597
+ /** Mounting behaviour. Defaults to `"all"` (render every panel). */
1598
+ mountStrategy?: StepMountStrategy;
1599
+ }
1600
+
1601
+ /**
1602
+ * WrapperLayout centers its content horizontally, gives it a maximum width, and adds
1603
+ * breathing room at the side edges (gutter) — so content never sticks to the window edge
1604
+ * on narrow screens or stretches out endlessly on wide screens.
1605
+ *
1606
+ * It is typically the outermost layer around a page or section, and doesn't concern
1607
+ * itself with spacing between its children — that's the job of StackLayout or
1608
+ * ClusterLayout.
1609
+ *
1610
+ * @example
1611
+ * ```tsx
1612
+ * <WrapperLayout maxWidth="85em" gutter="md">
1613
+ * The content of the page
1614
+ * </WrapperLayout>
1615
+ * ```
1616
+ */
1617
+ export declare const WrapperLayout: {
1618
+ <TDefaultElementType extends OtherGenericComponent & ElementType = "div">(wrapperLayoutProps: WrapperLayoutProps<TDefaultElementType>): React.JSX.Element;
1619
+ displayName: string;
1620
+ };
1621
+
1622
+ export declare type WrapperLayoutGutter = "xs" | "sm" | "md" | "lg";
1623
+
1624
+ export declare type WrapperLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
1625
+ children: ReactNode;
1626
+ gutter?: WrapperLayoutGutter;
1627
+ className?: string;
1628
+ maxWidth?: CSSProperties["maxWidth"];
1629
+ variant?: WrapperLayoutVariant;
1630
+ "data-color"?: string;
1631
+ }>;
1632
+
1633
+ export declare type WrapperLayoutVariant = "none" | "default" | "tinted";
1634
+
1635
+
1636
+ export * from "@digdir/designsystemet-react";
1637
+
1638
+ export { }
1639
+
1640
+
1641
+
1642
+ // Augment types based on theme
1643
+ declare module '@digdir/designsystemet-types' {
1644
+ export interface ColorDefinitions {
1645
+ primary: never;
1646
+ neutral: never;
1647
+ support1: never;
1648
+ data1: never;
1649
+ data2: never;
1650
+ data3: never;
1651
+ data4: never;
1652
+ data5: never;
1653
+ data6: never;
1654
+ }
1655
+ export interface SeverityColorDefinitions {
1656
+ info: never;
1657
+ success: never;
1658
+ warning: never;
1659
+ danger: never;
1660
+ }
1661
+ }
1662
+
1663
+ declare global {
1664
+ interface Composition {
1665
+ spacing: 'sm' | 'md' | 'lg';
1666
+ }
1667
+
1668
+ type Prettify<T> = {
1669
+ [K in keyof T]: T[K];
1670
+ } & unknown;
1671
+ }