@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
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-summary.d.ts","sourceRoot":"","sources":["../../../components/error-summary/error-summary.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,YAAY,GAAG,OAAO,gBAAgB,CAAC;AAE5C,QAAA,MAAM,qBAAqB,EAAE,YAA+B,CAAC;AAI7D,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAClC,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Field as FieldRoot, FieldProps } from '@digdir/designsystemet-react';
2
- type Field = typeof FieldRoot;
3
- declare const FieldComponent: Field;
4
- export type { FieldProps };
5
- export { FieldComponent as Field };
6
- //# sourceMappingURL=field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../components/field/field.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,EAChB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,QAAA,MAAM,cAAc,EAAE,KAAiB,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Fieldset as FieldsetRoot, FieldsetProps } from '@digdir/designsystemet-react';
2
- type Fieldset = typeof FieldsetRoot;
3
- declare const FieldsetComponent: Fieldset;
4
- export type { FieldsetProps };
5
- export { FieldsetComponent as Fieldset };
6
- //# sourceMappingURL=fieldset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fieldset.d.ts","sourceRoot":"","sources":["../../../components/fieldset/fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,QAAQ,GAAG,OAAO,YAAY,CAAC;AAEpC,QAAA,MAAM,iBAAiB,EAAE,QAAuB,CAAC;AAIjD,YAAY,EAAE,aAAa,EAAE,CAAC;AAC9B,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- import { EXPERIMENTAL_FileUpload as FileUploadRoot, FileUploadProps } from '@digdir/designsystemet-react';
2
- type FileUpload = typeof FileUploadRoot;
3
- declare const FileUploadComponent: FileUpload;
4
- export type { FileUploadProps };
5
- export { FileUploadComponent as FileUpload };
6
- /** @deprecated Use FileUpload instead. */
7
- export declare const EXPERIMENTAL_FileUpload: FileUpload;
8
- //# sourceMappingURL=file-upload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../components/file-upload/file-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,IAAI,cAAc,EACzC,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,UAAU,GAAG,OAAO,cAAc,CAAC;AAExC,QAAA,MAAM,mBAAmB,EAAE,UAA2B,CAAC;AAIvD,YAAY,EAAE,eAAe,EAAE,CAAC;AAChC,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,CAAC;AAE7C,0CAA0C;AAC1C,eAAO,MAAM,uBAAuB,EAAE,UAAgC,CAAC"}
@@ -1,15 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type HeaderContentProps = HTMLAttributes<HTMLDivElement>;
3
- /**
4
- * Container for a group of items inside a `Header` (e.g. navigation links,
5
- * buttons), typically aligned together on one side of the header.
6
- *
7
- * @example
8
- * ```tsx
9
- * <Header.Content>
10
- * <Button variant="tertiary">Home</Button>
11
- * </Header.Content>
12
- * ```
13
- */
14
- export declare const HeaderContent: React.ForwardRefExoticComponent<HeaderContentProps & React.RefAttributes<HTMLDivElement>>;
15
- //# sourceMappingURL=header-content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-content.d.ts","sourceRoot":"","sources":["../../../components/header/header-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,2FAUzB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type HeaderDividerProps = HTMLAttributes<HTMLDivElement>;
3
- /**
4
- * Visual divider used to separate groups of content inside a `Header`.
5
- * Hidden from assistive technology by default; pass `role="separator"` if
6
- * the divider conveys real structure.
7
- *
8
- * @example
9
- * ```tsx
10
- * <Header.Content>
11
- * <Button variant="tertiary">Home</Button>
12
- * <Header.Divider />
13
- * <Button variant="tertiary">Services</Button>
14
- * </Header.Content>
15
- * ```
16
- */
17
- export declare const HeaderDivider: React.ForwardRefExoticComponent<HeaderDividerProps & React.RefAttributes<HTMLDivElement>>;
18
- //# sourceMappingURL=header-divider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-divider.d.ts","sourceRoot":"","sources":["../../../components/header/header-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,2FAuBzB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { ButtonProps } from '../../button/button';
2
- export type HeaderMenuButtonProps = ButtonProps;
3
- /**
4
- * Button that opens/closes the `Header.Menu` popover. Renders as a Smudi
5
- * `Button` and keeps its `aria-expanded` state in sync with the popover.
6
- *
7
- * @example
8
- * ```tsx
9
- * <Header.Menu.Button />
10
- * ```
11
- */
12
- export declare const HeaderMenuButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
- //# sourceMappingURL=header-menu-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-menu-button.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/header-menu-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,uFAwC3B,CAAC"}
@@ -1,17 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type HeaderMenuContentProps = HTMLAttributes<HTMLDivElement>;
3
- /**
4
- * Scrollable content wrapper inside `Header.Menu`, used to hold one or more
5
- * `Header.Menu.Group`s.
6
- *
7
- * @example
8
- * ```tsx
9
- * <Header.Menu>
10
- * <Header.Menu.Content>
11
- * <Header.Menu.Group>...</Header.Menu.Group>
12
- * </Header.Menu.Content>
13
- * </Header.Menu>
14
- * ```
15
- */
16
- export declare const HeaderMenuContent: React.ForwardRefExoticComponent<HeaderMenuContentProps & React.RefAttributes<HTMLDivElement>>;
17
- //# sourceMappingURL=header-menu-content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-menu-content.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/header-menu-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,+FAW5B,CAAC"}
@@ -1,14 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export type HeaderMenuGroupProps = HTMLAttributes<HTMLDivElement>;
3
- /**
4
- * Groups related `Header.Menu.Item`s together inside a `Header.Menu`.
5
- *
6
- * @example
7
- * ```tsx
8
- * <Header.Menu.Group>
9
- * <Header.Menu.Item href="#">Home</Header.Menu.Item>
10
- * </Header.Menu.Group>
11
- * ```
12
- */
13
- export declare const HeaderMenuGroup: React.ForwardRefExoticComponent<HeaderMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
14
- //# sourceMappingURL=header-menu-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-menu-group.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/header-menu-group.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAElE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,6FAU3B,CAAC"}
@@ -1,28 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { LinkProps } from '../../link/link';
3
- export type HeaderMenuItemProps = LinkProps & {
4
- /**
5
- * Icon shown at the end of the item.
6
- * @default <ChevronRightIcon aria-hidden />
7
- */
8
- icon?: ReactNode;
9
- };
10
- /**
11
- * A single navigation link inside `Header.Menu`.
12
- *
13
- * @example
14
- * ```tsx
15
- * <Header.Menu.Item href="#">Home</Header.Menu.Item>
16
- * ```
17
- */
18
- export declare const HeaderMenuItem: React.ForwardRefExoticComponent<Omit<import('@digdir/designsystemet-react').DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
19
- children: ReactNode;
20
- asChild?: boolean;
21
- } & {
22
- /**
23
- * Icon shown at the end of the item.
24
- * @default <ChevronRightIcon aria-hidden />
25
- */
26
- icon?: ReactNode;
27
- } & React.RefAttributes<HTMLAnchorElement>>;
28
- //# sourceMappingURL=header-menu-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-menu-item.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/header-menu-item.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;IAfzB;;;OAGG;WACI,SAAS;2CA8BhB,CAAC"}
@@ -1,20 +0,0 @@
1
- import { PopoverProps } from '../../popover/popover';
2
- export declare const HEADER_MENU_ID = "smudi-header-menu";
3
- export type HeaderMenuProps = Omit<PopoverProps, "id" | "placement" | "autoPlacement" | "variant">;
4
- /**
5
- * Popover menu opened from a `Header.Menu.Button`, used for site navigation
6
- * on smaller viewports. Compose its contents with `Header.Menu.Group` and
7
- * `Header.Menu.Item`.
8
- *
9
- * @example
10
- * ```tsx
11
- * <Header.Menu.Button />
12
- * <Header.Menu>
13
- * <Header.Menu.Group>
14
- * <Header.Menu.Item href="#">Home</Header.Menu.Item>
15
- * </Header.Menu.Group>
16
- * </Header.Menu>
17
- * ```
18
- */
19
- export declare const HeaderMenu: React.ForwardRefExoticComponent<HeaderMenuProps & React.RefAttributes<HTMLDivElement>>;
20
- //# sourceMappingURL=header-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-menu.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/header-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,YAAY,EACZ,IAAI,GAAG,WAAW,GAAG,eAAe,GAAG,SAAS,CACjD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,wFAuFtB,CAAC"}
@@ -1,11 +0,0 @@
1
- export { HeaderMenu } from './header-menu';
2
- export type { HeaderMenuProps } from './header-menu';
3
- export { HeaderMenuButton } from './header-menu-button';
4
- export type { HeaderMenuButtonProps } from './header-menu-button';
5
- export { HeaderMenuContent } from './header-menu-content';
6
- export type { HeaderMenuContentProps } from './header-menu-content';
7
- export { HeaderMenuGroup } from './header-menu-group';
8
- export type { HeaderMenuGroupProps } from './header-menu-group';
9
- export { HeaderMenuItem } from './header-menu-item';
10
- export type { HeaderMenuItemProps } from './header-menu-item';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/header/header-menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,26 +0,0 @@
1
- import { ButtonProps } from '../../button/button';
2
- export declare const HEADER_SEARCH_ID = "smudi-header-search";
3
- export type HeaderSearchButtonProps = Omit<ButtonProps, "variant" | "popovertarget" | "aria-controls" | "aria-haspopup"> & {
4
- /**
5
- * Visible label and default `aria-label` for the button.
6
- * @default "Søk"
7
- */
8
- label?: string;
9
- };
10
- /**
11
- * Button that opens/closes the `Header.Search` popover. Renders as a Smudi
12
- * `Button` and keeps its `aria-expanded` state in sync with the popover.
13
- *
14
- * @example
15
- * ```tsx
16
- * <Header.Search.Button />
17
- * ```
18
- */
19
- export declare const HeaderSearchButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "aria-controls" | "aria-haspopup" | "popovertarget" | "variant"> & {
20
- /**
21
- * Visible label and default `aria-label` for the button.
22
- * @default "Søk"
23
- */
24
- label?: string;
25
- } & React.RefAttributes<HTMLButtonElement>>;
26
- //# sourceMappingURL=header-search-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-search-button.d.ts","sourceRoot":"","sources":["../../../../components/header/header-search/header-search-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,WAAW,EACX,SAAS,GAAG,eAAe,GAAG,eAAe,GAAG,eAAe,CAChE,GAAG;IACF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;IAhB7B;;;OAGG;YACK,MAAM;2CAyDd,CAAC"}
@@ -1,35 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PopoverProps } from '../../popover/popover';
3
- export type HeaderSearchProps = Omit<PopoverProps, "id" | "placement" | "autoPlacement" | "variant"> & {
4
- children?: ReactNode;
5
- className?: string;
6
- /** Controls whether the search popover is open. */
7
- open?: boolean;
8
- /** Called when the search popover opens. */
9
- onOpen?: () => void;
10
- /** Called when the search popover closes. */
11
- onClose?: () => void;
12
- };
13
- /**
14
- * Popover containing search functionality, opened from a
15
- * `Header.Search.Button`.
16
- *
17
- * @example
18
- * ```tsx
19
- * <Header.Search.Button />
20
- * <Header.Search>
21
- * <Search>...</Search>
22
- * </Header.Search>
23
- * ```
24
- */
25
- export declare const HeaderSearch: React.ForwardRefExoticComponent<Omit<PopoverProps, "id" | "variant" | "placement" | "autoPlacement"> & {
26
- children?: ReactNode;
27
- className?: string;
28
- /** Controls whether the search popover is open. */
29
- open?: boolean;
30
- /** Called when the search popover opens. */
31
- onOpen?: () => void;
32
- /** Called when the search popover closes. */
33
- onClose?: () => void;
34
- } & React.RefAttributes<HTMLDivElement>>;
35
- //# sourceMappingURL=header-search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-search.d.ts","sourceRoot":"","sources":["../../../../components/header/header-search/header-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAO1D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,YAAY,EACZ,IAAI,GAAG,WAAW,GAAG,eAAe,GAAG,SAAS,CACjD,GAAG;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY;eAtBZ,SAAS;gBACR,MAAM;IAClB,mDAAmD;WAC5C,OAAO;IACd,4CAA4C;aACnC,MAAM,IAAI;IACnB,6CAA6C;cACnC,MAAM,IAAI;wCA+FrB,CAAC"}
@@ -1,5 +0,0 @@
1
- export { HeaderSearch } from './header-search';
2
- export type { HeaderSearchProps } from './header-search';
3
- export { HeaderSearchButton } from './header-search-button';
4
- export type { HeaderSearchButtonProps } from './header-search-button';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/header/header-search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,97 +0,0 @@
1
- import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
- export declare const UDILogo: () => React.JSX.Element;
3
- export type HeaderProps = HTMLAttributes<HTMLElement> & {
4
- /**
5
- * Name of the team, shown on the left in the header instead of the UDI
6
- * logo. Can be a plain string, or a `ReactNode` if the team needs more
7
- * than plain text (e.g. custom formatting or icons).
8
- */
9
- teamName?: ReactNode;
10
- /**
11
- * Heading level used for `teamName`. Set this to the level that fits the
12
- * page's heading hierarchy, so you avoid multiple `<h1>`s on the same
13
- * page.
14
- * @default 1
15
- */
16
- teamNameHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
17
- /**
18
- * When set, the logo/team name becomes a link to the front page. Set to
19
- * `true` to link to `/`, or provide your own URL (useful for apps that
20
- * aren't hosted at the root, or that should link to another domain). Set
21
- * to `null` or `false` to explicitly turn the link off.
22
- */
23
- homeHref?: string | boolean | null;
24
- /**
25
- * `aria-label` for the link set by `homeHref`, used by screen readers.
26
- * Does not change the visual content (logo/team name is shown as normal).
27
- * @default "Til forsiden"
28
- */
29
- ariaLabel?: string;
30
- /** Maximum width of the header's content area. */
31
- maxWidth?: CSSProperties["maxWidth"];
32
- /**
33
- * Visual style of the header.
34
- * @default "default"
35
- */
36
- variant?: "default" | "tinted";
37
- /**
38
- * Color palette used by the header.
39
- * @default "neutral"
40
- */
41
- "data-color"?: "neutral" | "primary";
42
- };
43
- /**
44
- * Page header showing the UDI logo (or a custom team name) together with
45
- * navigation content. Use `Header.Content`, `Header.Menu` and
46
- * `Header.Search` to compose the header's contents.
47
- *
48
- * @example
49
- * ```tsx
50
- * <Header>
51
- * <Header.Content>
52
- * <Button variant="tertiary">Home</Button>
53
- * </Header.Content>
54
- * </Header>
55
- * ```
56
- */
57
- export declare const Header: React.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
58
- /**
59
- * Name of the team, shown on the left in the header instead of the UDI
60
- * logo. Can be a plain string, or a `ReactNode` if the team needs more
61
- * than plain text (e.g. custom formatting or icons).
62
- */
63
- teamName?: ReactNode;
64
- /**
65
- * Heading level used for `teamName`. Set this to the level that fits the
66
- * page's heading hierarchy, so you avoid multiple `<h1>`s on the same
67
- * page.
68
- * @default 1
69
- */
70
- teamNameHeadingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
71
- /**
72
- * When set, the logo/team name becomes a link to the front page. Set to
73
- * `true` to link to `/`, or provide your own URL (useful for apps that
74
- * aren't hosted at the root, or that should link to another domain). Set
75
- * to `null` or `false` to explicitly turn the link off.
76
- */
77
- homeHref?: string | boolean | null;
78
- /**
79
- * `aria-label` for the link set by `homeHref`, used by screen readers.
80
- * Does not change the visual content (logo/team name is shown as normal).
81
- * @default "Til forsiden"
82
- */
83
- ariaLabel?: string;
84
- /** Maximum width of the header's content area. */
85
- maxWidth?: CSSProperties["maxWidth"];
86
- /**
87
- * Visual style of the header.
88
- * @default "default"
89
- */
90
- variant?: "default" | "tinted";
91
- /**
92
- * Color palette used by the header.
93
- * @default "neutral"
94
- */
95
- "data-color"?: "neutral" | "primary";
96
- } & React.RefAttributes<HTMLElement>>;
97
- //# sourceMappingURL=header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../components/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,eAAO,MAAM,OAAO,yBAOnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACtD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM;IAtDjB;;;;OAIG;eACQ,SAAS;IACpB;;;;;OAKG;2BACoB,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5C;;;;;OAKG;eACQ,MAAM,GAAG,OAAO,GAAG,IAAI;IAClC;;;;OAIG;gBACS,MAAM;IAClB,kDAAkD;eACvC,aAAa,CAAC,UAAU,CAAC;IACpC;;;OAGG;cACO,SAAS,GAAG,QAAQ;IAC9B;;;OAGG;mBACY,SAAS,GAAG,SAAS;qCA6IpC,CAAC"}
@@ -1,36 +0,0 @@
1
- import { Header as HeaderRoot } from './header';
2
- import { HeaderContent } from './header-content';
3
- import { HeaderDivider } from './header-divider';
4
- import { HeaderMenuButton } from './header-menu/header-menu-button';
5
- import { HeaderMenu } from './header-menu/header-menu';
6
- import { HeaderMenuContent } from './header-menu/header-menu-content';
7
- import { HeaderMenuGroup } from './header-menu/header-menu-group';
8
- import { HeaderMenuItem } from './header-menu/header-menu-item';
9
- import { HeaderSearch } from './header-search/header-search';
10
- import { HeaderSearchButton } from './header-search/header-search-button';
11
- type HeaderComponent = typeof HeaderRoot & {
12
- Content: typeof HeaderContent;
13
- Divider: typeof HeaderDivider;
14
- Menu: typeof HeaderMenuWithLink;
15
- Search: typeof HeaderSearch;
16
- };
17
- type HeaderMenuComponent = typeof HeaderMenu & {
18
- Content: typeof HeaderMenuContent;
19
- Group: typeof HeaderMenuGroup;
20
- Item: typeof HeaderMenuItem;
21
- };
22
- declare const HeaderMenuWithLink: HeaderMenuComponent;
23
- declare const Header: HeaderComponent;
24
- export type { HeaderProps } from './header';
25
- export type { HeaderContentProps } from './header-content';
26
- export type { HeaderDividerProps } from './header-divider';
27
- export type { HeaderMenuButtonProps } from './header-menu/header-menu-button';
28
- export type { HeaderMenuContentProps } from './header-menu/header-menu-content';
29
- export type { HeaderMenuGroupProps } from './header-menu/header-menu-group';
30
- export type { HeaderMenuItemProps } from './header-menu/header-menu-item';
31
- export type { HeaderMenuProps } from './header-menu/header-menu';
32
- export type { HeaderSearchButtonProps } from './header-search/header-search-button';
33
- export type { HeaderSearchProps } from './header-search/header-search';
34
- export { UDILogo } from './header';
35
- export { Header, HeaderContent, HeaderDivider, HeaderMenuButton, HeaderMenuContent, HeaderMenuGroup, HeaderMenuItem, HeaderMenuWithLink as HeaderMenu, HeaderSearch, HeaderSearchButton, };
36
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,KAAK,eAAe,GAAG,OAAO,UAAU,GAAG;IACzC,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,IAAI,EAAE,OAAO,kBAAkB,CAAC;IAChC,MAAM,EAAE,OAAO,YAAY,CAAC;CAC7B,CAAC;AAEF,KAAK,mBAAmB,GAAG,OAAO,UAAU,GAAG;IAC7C,OAAO,EAAE,OAAO,iBAAiB,CAAC;IAClC,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,IAAI,EAAE,OAAO,cAAc,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,kBAAkB,EAIlB,mBAAmB,CAAC;AAE1B,QAAA,MAAM,MAAM,EAKN,eAAe,CAAC;AAEtB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,kBAAkB,IAAI,UAAU,EAChC,YAAY,EACZ,kBAAkB,GACnB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Input as InputRoot, InputProps } from '@digdir/designsystemet-react';
2
- type Input = typeof InputRoot;
3
- declare const InputComponent: Input;
4
- export type { InputProps };
5
- export { InputComponent as Input };
6
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,EAChB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,QAAA,MAAM,cAAc,EAAE,KAAiB,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
@@ -1,37 +0,0 @@
1
- import { ElementType, ReactNode } from 'react';
2
- import { PolymorphicComponentProps, OtherGenericComponent } from '../../../types/polymorphic-component.type';
3
- export type BoxLayoutSize = "none" | "xs" | "sm" | "md" | "lg";
4
- export type BoxLayoutBorderRadius = "none" | "sm" | "md" | "lg" | "xl";
5
- export type BoxLayoutVariant = "none" | "default" | "tinted";
6
- export type BoxLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
7
- padding?: BoxLayoutSize;
8
- paddingInline?: BoxLayoutSize;
9
- paddingBlock?: BoxLayoutSize;
10
- paddingBlockStart?: BoxLayoutSize;
11
- paddingBlockEnd?: BoxLayoutSize;
12
- paddingInlineStart?: BoxLayoutSize;
13
- paddingInlineEnd?: BoxLayoutSize;
14
- border?: boolean;
15
- borderRadius?: BoxLayoutBorderRadius;
16
- variant?: BoxLayoutVariant;
17
- className?: string | undefined;
18
- children: ReactNode;
19
- }>;
20
- /**
21
- * BoxLayout gives its content breathing room on the inside (padding) and can show that it
22
- * is a bounded surface (border) — without interfering with the spacing to the elements
23
- * around it.
24
- *
25
- * A Box has one job: air on the inside, not space on the outside. If there should be air
26
- * *between* a Box and the elements around it, that's handled by StackLayout (vertically)
27
- * or ClusterLayout (horizontally) — not something you add to the Box itself.
28
- *
29
- * @example
30
- * ```tsx
31
- * <BoxLayout padding="md" border borderRadius="md" variant="tinted">
32
- * Content with breathing room around it and a visible border.
33
- * </BoxLayout>
34
- * ```
35
- */
36
- export declare const BoxLayout: <TDefaultElementType extends OtherGenericComponent & ElementType = "div">(boxLayoutProps: BoxLayoutProps<TDefaultElementType>) => React.JSX.Element;
37
- //# sourceMappingURL=box-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"box-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/box-layouts/box-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAmC7D,MAAM,MAAM,cAAc,CACxB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAC3B,UAAU,EACV;IACE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,GACpB,mBAAmB,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,EAEvE,gBAAgB,cAAc,CAAC,mBAAmB,CAAC,sBAgEpD,CAAC"}
@@ -1,30 +0,0 @@
1
- import { ElementType, ReactNode } from 'react';
2
- import { PolymorphicComponentProps, OtherGenericComponent } from '../../../types/polymorphic-component.type';
3
- export type CenterLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
4
- className?: string;
5
- textAlign?: "start" | "center" | "end";
6
- shrinkToContent?: boolean;
7
- children: ReactNode;
8
- }>;
9
- /**
10
- * CenterLayout ensures content is centered within the container it sits in — either by
11
- * center-aligning the text, or by centering individual elements that are narrower than
12
- * the rest, instead of letting them stretch out to full width.
13
- *
14
- * CenterLayout does not set any `max-width` itself, and therefore works best together
15
- * with a WrapperLayout that constrains the width of the container it centers within.
16
- *
17
- * @example
18
- * ```tsx
19
- * <WrapperLayout maxWidth="40em">
20
- * <CenterLayout textAlign="center" shrinkToContent>
21
- * <StackLayout space="md" style={{ maxWidth: "32rem" }}>
22
- * <Heading level={1}>Heading</Heading>
23
- * <Button>Get started</Button>
24
- * </StackLayout>
25
- * </CenterLayout>
26
- * </WrapperLayout>
27
- * ```
28
- */
29
- export declare const CenterLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(centerLayoutProps: CenterLayoutProps<TComponent>) => React.JSX.Element;
30
- //# sourceMappingURL=center-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"center-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/center-layouts/center-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,MAAM,iBAAiB,CAC3B,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAC3B,UAAU,EACV;IACE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,EAE9D,mBAAmB,iBAAiB,CAAC,UAAU,CAAC,sBA8BjD,CAAC"}
@@ -1,33 +0,0 @@
1
- import { OtherGenericComponent, PolymorphicComponentProps } from '../../../types/polymorphic-component.type';
2
- import { ElementType, ReactNode } from 'react';
3
- import { ClusterJustify } from './types/cluster-justify.type';
4
- import { ClusterAlign } from './types/cluster-align.type';
5
- export type { ClusterJustify, ClusterAlign };
6
- export type ClusterLayoutSpace = "sm" | "md" | "lg";
7
- export type ClusterLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
8
- justify?: ClusterJustify;
9
- align?: ClusterAlign;
10
- space?: ClusterLayoutSpace;
11
- noWrap?: boolean;
12
- className?: string | undefined;
13
- children: ReactNode;
14
- }>;
15
- /**
16
- * ClusterLayout groups elements of varying widths — such as buttons, tags, or navigation
17
- * links — into a flexible group that wraps naturally onto a new line when there isn't
18
- * enough room, without the spacing between elements becoming uneven or missing anywhere.
19
- *
20
- * The elements behave like words in a sentence: they sit next to each other and wrap onto
21
- * the next line on their own when there's no longer room, with even spacing no matter how
22
- * many rows result.
23
- *
24
- * @example
25
- * ```tsx
26
- * <ClusterLayout justify="space-between" align="center" space="md">
27
- * <strong>Company logo</strong>
28
- * <Button>Log in</Button>
29
- * </ClusterLayout>
30
- * ```
31
- */
32
- export declare const ClusterLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(clusterLayoutProps: ClusterLayoutProps<TComponent>) => React.JSX.Element;
33
- //# sourceMappingURL=cluster-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/cluster-layouts/cluster-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAiB,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,kBAAkB,CAC5B,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAC3B,UAAU,EACV;IACE,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,GACxB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,EAE9D,oBAAoB,kBAAkB,CAAC,UAAU,CAAC,sBAkCnD,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const CLUSTER_ALIGN_CSS: readonly ["flex-start", "center", "flex-end", "baseline", "stretch"];
2
- //# sourceMappingURL=cluster-align-css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster-align-css.d.ts","sourceRoot":"","sources":["../../../../../components/layout-components/cluster-layouts/constants/cluster-align-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,sEAMkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const CLUSTER_JUSTIFY_CSS: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly", "start", "end"];
2
- //# sourceMappingURL=cluster-justify-css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster-justify-css.d.ts","sourceRoot":"","sources":["../../../../../components/layout-components/cluster-layouts/constants/cluster-justify-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,gHASkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export type ClusterAlign = 'flex-start' | 'center' | 'flex-end' | 'baseline' | 'stretch';
2
- //# sourceMappingURL=cluster-align.type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster-align.type.d.ts","sourceRoot":"","sources":["../../../../../components/layout-components/cluster-layouts/types/cluster-align.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,UAAU,GACV,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export type ClusterJustify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | 'start' | 'end';
2
- //# sourceMappingURL=cluster-justify.type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster-justify.type.d.ts","sourceRoot":"","sources":["../../../../../components/layout-components/cluster-layouts/types/cluster-justify.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,eAAe,GACf,cAAc,GACd,cAAc,GACd,OAAO,GACP,KAAK,CAAC"}