@smudi/designsystem 2.0.1 → 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 (230) 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/file-upload/file-upload.js +6 -4
  14. package/@smudi/components/header/header-divider.js +13 -11
  15. package/@smudi/components/select/select.js +28 -13
  16. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +9 -9
  17. package/@smudi/components/typography/heading/heading.js +10 -4
  18. package/@smudi/components/utils/is-dev-environment.js +8 -0
  19. package/@smudi/icons/generated/index.d.ts +64 -0
  20. package/@smudi/react.d.ts +1671 -0
  21. package/@smudi/react.js +133 -130
  22. package/@smudi/styles.css +1 -1
  23. package/README.md +7 -6
  24. package/package.json +42 -30
  25. package/@smudi/components/alert/alert.d.ts +0 -6
  26. package/@smudi/components/alert/alert.d.ts.map +0 -1
  27. package/@smudi/components/avatar/avatar.d.ts +0 -6
  28. package/@smudi/components/avatar/avatar.d.ts.map +0 -1
  29. package/@smudi/components/avatar-stack/avatar-stack.d.ts +0 -6
  30. package/@smudi/components/avatar-stack/avatar-stack.d.ts.map +0 -1
  31. package/@smudi/components/badge/badge.d.ts +0 -6
  32. package/@smudi/components/badge/badge.d.ts.map +0 -1
  33. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts +0 -6
  34. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
  35. package/@smudi/components/button/button.d.ts +0 -26
  36. package/@smudi/components/button/button.d.ts.map +0 -1
  37. package/@smudi/components/card/card-icon-block.d.ts +0 -24
  38. package/@smudi/components/card/card-icon-block.d.ts.map +0 -1
  39. package/@smudi/components/card/card.d.ts +0 -22
  40. package/@smudi/components/card/card.d.ts.map +0 -1
  41. package/@smudi/components/checkbox/checkbox.d.ts +0 -6
  42. package/@smudi/components/checkbox/checkbox.d.ts.map +0 -1
  43. package/@smudi/components/chip/chip.d.ts +0 -5
  44. package/@smudi/components/chip/chip.d.ts.map +0 -1
  45. package/@smudi/components/details/details.d.ts +0 -6
  46. package/@smudi/components/details/details.d.ts.map +0 -1
  47. package/@smudi/components/dialog/dialog-section.d.ts +0 -22
  48. package/@smudi/components/dialog/dialog-section.d.ts.map +0 -1
  49. package/@smudi/components/dialog/dialog.d.ts +0 -21
  50. package/@smudi/components/dialog/dialog.d.ts.map +0 -1
  51. package/@smudi/components/divider/divider.d.ts +0 -6
  52. package/@smudi/components/divider/divider.d.ts.map +0 -1
  53. package/@smudi/components/dropdown/dropdown-button.d.ts +0 -39
  54. package/@smudi/components/dropdown/dropdown-button.d.ts.map +0 -1
  55. package/@smudi/components/dropdown/dropdown-context.d.ts +0 -7
  56. package/@smudi/components/dropdown/dropdown-context.d.ts.map +0 -1
  57. package/@smudi/components/dropdown/dropdown-item.d.ts +0 -20
  58. package/@smudi/components/dropdown/dropdown-item.d.ts.map +0 -1
  59. package/@smudi/components/dropdown/dropdown-list.d.ts +0 -20
  60. package/@smudi/components/dropdown/dropdown-list.d.ts.map +0 -1
  61. package/@smudi/components/dropdown/dropdown.d.ts +0 -35
  62. package/@smudi/components/dropdown/dropdown.d.ts.map +0 -1
  63. package/@smudi/components/error-summary/error-summary.d.ts +0 -6
  64. package/@smudi/components/error-summary/error-summary.d.ts.map +0 -1
  65. package/@smudi/components/field/field.d.ts +0 -6
  66. package/@smudi/components/field/field.d.ts.map +0 -1
  67. package/@smudi/components/fieldset/fieldset.d.ts +0 -6
  68. package/@smudi/components/fieldset/fieldset.d.ts.map +0 -1
  69. package/@smudi/components/file-upload/file-upload.d.ts +0 -6
  70. package/@smudi/components/file-upload/file-upload.d.ts.map +0 -1
  71. package/@smudi/components/header/header-content.d.ts +0 -15
  72. package/@smudi/components/header/header-content.d.ts.map +0 -1
  73. package/@smudi/components/header/header-divider.d.ts +0 -18
  74. package/@smudi/components/header/header-divider.d.ts.map +0 -1
  75. package/@smudi/components/header/header-menu/header-menu-button.d.ts +0 -13
  76. package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +0 -1
  77. package/@smudi/components/header/header-menu/header-menu-content.d.ts +0 -17
  78. package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +0 -1
  79. package/@smudi/components/header/header-menu/header-menu-group.d.ts +0 -14
  80. package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +0 -1
  81. package/@smudi/components/header/header-menu/header-menu-item.d.ts +0 -28
  82. package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +0 -1
  83. package/@smudi/components/header/header-menu/header-menu.d.ts +0 -20
  84. package/@smudi/components/header/header-menu/header-menu.d.ts.map +0 -1
  85. package/@smudi/components/header/header-menu/index.d.ts +0 -11
  86. package/@smudi/components/header/header-menu/index.d.ts.map +0 -1
  87. package/@smudi/components/header/header-search/header-search-button.d.ts +0 -26
  88. package/@smudi/components/header/header-search/header-search-button.d.ts.map +0 -1
  89. package/@smudi/components/header/header-search/header-search.d.ts +0 -35
  90. package/@smudi/components/header/header-search/header-search.d.ts.map +0 -1
  91. package/@smudi/components/header/header-search/index.d.ts +0 -5
  92. package/@smudi/components/header/header-search/index.d.ts.map +0 -1
  93. package/@smudi/components/header/header.d.ts +0 -97
  94. package/@smudi/components/header/header.d.ts.map +0 -1
  95. package/@smudi/components/header/index.d.ts +0 -36
  96. package/@smudi/components/header/index.d.ts.map +0 -1
  97. package/@smudi/components/input/input.d.ts +0 -6
  98. package/@smudi/components/input/input.d.ts.map +0 -1
  99. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +0 -37
  100. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +0 -1
  101. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +0 -30
  102. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +0 -1
  103. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +0 -33
  104. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +0 -1
  105. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts +0 -2
  106. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts.map +0 -1
  107. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts +0 -2
  108. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts.map +0 -1
  109. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts +0 -2
  110. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts.map +0 -1
  111. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts +0 -2
  112. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts.map +0 -1
  113. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +0 -39
  114. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +0 -1
  115. package/@smudi/components/layout-components/split-view/index.d.ts +0 -8
  116. package/@smudi/components/layout-components/split-view/index.d.ts.map +0 -1
  117. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts +0 -8
  118. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts.map +0 -1
  119. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts +0 -23
  120. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts.map +0 -1
  121. package/@smudi/components/layout-components/split-view/split-view.d.ts +0 -14
  122. package/@smudi/components/layout-components/split-view/split-view.d.ts.map +0 -1
  123. package/@smudi/components/layout-components/split-view/use-resize.d.ts +0 -34
  124. package/@smudi/components/layout-components/split-view/use-resize.d.ts.map +0 -1
  125. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +0 -31
  126. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +0 -1
  127. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +0 -34
  128. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts.map +0 -1
  129. package/@smudi/components/link/link.d.ts +0 -6
  130. package/@smudi/components/link/link.d.ts.map +0 -1
  131. package/@smudi/components/list/list.d.ts +0 -5
  132. package/@smudi/components/list/list.d.ts.map +0 -1
  133. package/@smudi/components/pagination/pagination.d.ts +0 -6
  134. package/@smudi/components/pagination/pagination.d.ts.map +0 -1
  135. package/@smudi/components/popover/popover.d.ts +0 -6
  136. package/@smudi/components/popover/popover.d.ts.map +0 -1
  137. package/@smudi/components/radio/radio.d.ts +0 -6
  138. package/@smudi/components/radio/radio.d.ts.map +0 -1
  139. package/@smudi/components/search/search.d.ts +0 -6
  140. package/@smudi/components/search/search.d.ts.map +0 -1
  141. package/@smudi/components/select/select.d.ts +0 -13
  142. package/@smudi/components/select/select.d.ts.map +0 -1
  143. package/@smudi/components/skeleton/skeleton.d.ts +0 -6
  144. package/@smudi/components/skeleton/skeleton.d.ts.map +0 -1
  145. package/@smudi/components/skip-link/skip-link.d.ts +0 -6
  146. package/@smudi/components/skip-link/skip-link.d.ts.map +0 -1
  147. package/@smudi/components/spinner/spinner.d.ts +0 -6
  148. package/@smudi/components/spinner/spinner.d.ts.map +0 -1
  149. package/@smudi/components/stepper/index.d.ts +0 -15
  150. package/@smudi/components/stepper/index.d.ts.map +0 -1
  151. package/@smudi/components/stepper/step/step-list.d.ts +0 -7
  152. package/@smudi/components/stepper/step/step-list.d.ts.map +0 -1
  153. package/@smudi/components/stepper/step/step.d.ts +0 -22
  154. package/@smudi/components/stepper/step/step.d.ts.map +0 -1
  155. package/@smudi/components/stepper/step-content/step-content-list.d.ts +0 -2
  156. package/@smudi/components/stepper/step-content/step-content-list.d.ts.map +0 -1
  157. package/@smudi/components/stepper/step-content/step-content.d.ts +0 -13
  158. package/@smudi/components/stepper/step-content/step-content.d.ts.map +0 -1
  159. package/@smudi/components/stepper/stepper-context.d.ts +0 -49
  160. package/@smudi/components/stepper/stepper-context.d.ts.map +0 -1
  161. package/@smudi/components/stepper/stepper.d.ts +0 -42
  162. package/@smudi/components/stepper/stepper.d.ts.map +0 -1
  163. package/@smudi/components/stepper/use-stepper-state.d.ts +0 -43
  164. package/@smudi/components/stepper/use-stepper-state.d.ts.map +0 -1
  165. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts +0 -9
  166. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts.map +0 -1
  167. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +0 -8
  168. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +0 -1
  169. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +0 -54
  170. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +0 -1
  171. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +0 -31
  172. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +0 -1
  173. package/@smudi/components/suggestion/suggestion.d.ts +0 -17
  174. package/@smudi/components/suggestion/suggestion.d.ts.map +0 -1
  175. package/@smudi/components/switch/switch.d.ts +0 -6
  176. package/@smudi/components/switch/switch.d.ts.map +0 -1
  177. package/@smudi/components/table/table.d.ts +0 -28
  178. package/@smudi/components/table/table.d.ts.map +0 -1
  179. package/@smudi/components/tabs/tabs-content.d.ts +0 -6
  180. package/@smudi/components/tabs/tabs-content.d.ts.map +0 -1
  181. package/@smudi/components/tabs/tabs-list.d.ts +0 -6
  182. package/@smudi/components/tabs/tabs-list.d.ts.map +0 -1
  183. package/@smudi/components/tabs/tabs-trigger.d.ts +0 -6
  184. package/@smudi/components/tabs/tabs-trigger.d.ts.map +0 -1
  185. package/@smudi/components/tabs/tabs.d.ts +0 -6
  186. package/@smudi/components/tabs/tabs.d.ts.map +0 -1
  187. package/@smudi/components/tag/tag.d.ts +0 -6
  188. package/@smudi/components/tag/tag.d.ts.map +0 -1
  189. package/@smudi/components/textarea/text-area.d.ts +0 -6
  190. package/@smudi/components/textarea/text-area.d.ts.map +0 -1
  191. package/@smudi/components/textfield/textfield.d.ts +0 -6
  192. package/@smudi/components/textfield/textfield.d.ts.map +0 -1
  193. package/@smudi/components/toast/toast.d.ts +0 -84
  194. package/@smudi/components/toast/toast.d.ts.map +0 -1
  195. package/@smudi/components/toggle-group/toggle-group.d.ts +0 -6
  196. package/@smudi/components/toggle-group/toggle-group.d.ts.map +0 -1
  197. package/@smudi/components/tooltip/tooltip.d.ts +0 -6
  198. package/@smudi/components/tooltip/tooltip.d.ts.map +0 -1
  199. package/@smudi/components/typography/heading/heading.d.ts +0 -6
  200. package/@smudi/components/typography/heading/heading.d.ts.map +0 -1
  201. package/@smudi/components/typography/paragraph/paragraph.d.ts +0 -6
  202. package/@smudi/components/typography/paragraph/paragraph.d.ts.map +0 -1
  203. package/@smudi/components/utils/apply-inert-outside.d.ts +0 -17
  204. package/@smudi/components/utils/apply-inert-outside.d.ts.map +0 -1
  205. package/@smudi/components/utils/class-names.d.ts +0 -2
  206. package/@smudi/components/utils/class-names.d.ts.map +0 -1
  207. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts +0 -8
  208. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts.map +0 -1
  209. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts +0 -8
  210. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts.map +0 -1
  211. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts +0 -8
  212. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts.map +0 -1
  213. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts +0 -8
  214. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts.map +0 -1
  215. package/@smudi/smudi/icons/generated/index.d.ts +0 -5
  216. package/@smudi/smudi/icons/generated/index.d.ts.map +0 -1
  217. package/@smudi/smudi/icons/metadata.d.ts +0 -32
  218. package/@smudi/smudi/icons/metadata.d.ts.map +0 -1
  219. package/@smudi/smudi/react.d.ts +0 -59
  220. package/@smudi/smudi/react.d.ts.map +0 -1
  221. package/@smudi/types/modular-scale.type.d.ts +0 -18
  222. package/@smudi/types/modular-scale.type.d.ts.map +0 -1
  223. package/@smudi/types/polymorphic-component.type.d.ts +0 -35
  224. package/@smudi/types/polymorphic-component.type.d.ts.map +0 -1
  225. package/@smudi/types/utils/coerce-string-to-number.d.ts +0 -4
  226. package/@smudi/types/utils/coerce-string-to-number.d.ts.map +0 -1
  227. package/@smudi/types/utils/exclude-strict.d.ts +0 -2
  228. package/@smudi/types/utils/exclude-strict.d.ts.map +0 -1
  229. package/@smudi/types/utils/omit-strict.d.ts +0 -2
  230. package/@smudi/types/utils/omit-strict.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-view-divider.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/split-view/split-view-divider.tsx"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3D,KAAK,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACtC,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,KAAK,2CAyBP"}
@@ -1,23 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export type SplitViewPanelProps = PropsWithChildren & {
3
- /**
4
- * The starting width in percentage.
5
- * If none are passed all widths will be divided equally.
6
- */
7
- defaultWidth?: number;
8
- /**
9
- * The minWidth in percentage.
10
- */
11
- minWidth?: number;
12
- /**
13
- * The maxWidth in percentage.
14
- */
15
- maxWidth?: number;
16
- };
17
- /**
18
- * Defines a single resizable panel inside a `SplitView`. Its `children` are
19
- * rendered as-is; the width props are read by `SplitView` (via the
20
- * `useResize` hook) to compute the panel's starting/min/max width.
21
- */
22
- export declare function SplitViewPanel({ children }: SplitViewPanelProps): import("react/jsx-runtime").JSX.Element;
23
- //# sourceMappingURL=split-view-panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-view-panel.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/split-view/split-view-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACpD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAE/D"}
@@ -1,14 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export type SplitViewProps = ComponentProps<"div"> & {
3
- /**
4
- * Emits a list of the current panel widths.
5
- * This can be useful if you want to store them somewhere (e.g localStorage)
6
- */
7
- onResizeChange?: (widths: number[]) => void;
8
- /**
9
- * Divider color palette. Defaults to `primary`.
10
- */
11
- "data-color"?: "primary" | "neutral";
12
- };
13
- export declare const SplitView: React.ForwardRefExoticComponent<Omit<SplitViewProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- //# sourceMappingURL=split-view.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-view.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/split-view/split-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAOlE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACnD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,SAAS,oGA0DrB,CAAC"}
@@ -1,34 +0,0 @@
1
- import { KeyboardEvent, ReactElement } from 'react';
2
- import { SplitViewProps } from './split-view';
3
- import { SplitViewPanelProps } from './split-view-panel';
4
- type SplitViewPanelComponent = ReactElement<SplitViewPanelProps>;
5
- /**
6
- * Computes each panel's initial width percentage.
7
- * Panels with an explicit `defaultWidth` keep it; any remaining percentage
8
- * is split evenly across the panels that didn't specify one.
9
- */
10
- export declare function getDefaultWidths(panels: SplitViewPanelComponent[]): number[];
11
- /**
12
- * Recalculates the widths of a panel pair (at `index` and `index + 1`) after
13
- * a drag/keyboard resize, keeping their combined width constant and
14
- * respecting each panel's min/max width constraints.
15
- */
16
- export declare function getClampedWidths(widths: number[], index: number, proposedLeftWidth: number, panels: SplitViewPanelComponent[]): number[];
17
- /**
18
- * Get whether the changing width on keydown should be positive or negative
19
- */
20
- export declare function getKeyDelta(e: KeyboardEvent): number | undefined;
21
- /**
22
- * Manages resizable panel state: widths, drag-to-resize, and keyboard resize.
23
- * Returns the parsed panel elements alongside handlers to wire up to the
24
- * container and each panel's resize handle.
25
- */
26
- export declare function useResize({ children, onResizeChange }: SplitViewProps): {
27
- panels: SplitViewPanelComponent[];
28
- widths: number[];
29
- onKeyDown: (e: KeyboardEvent, index: number) => void;
30
- onMouseDown: (index: number) => void;
31
- containerRef: React.RefObject<HTMLDivElement | null>;
32
- };
33
- export {};
34
- //# sourceMappingURL=use-resize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-resize.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/split-view/use-resize.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAIlB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAQ9D,KAAK,uBAAuB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,uBAAuB,EAAE,YAYjE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EAAE,EAChB,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,uBAAuB,EAAE,YAwBlC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,aAAa,sBAI3C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,cAAc;;;mBA+D9C,aAAa,SAAS,MAAM;yBAzCtB,MAAM;;EAmDnC"}
@@ -1,31 +0,0 @@
1
- import { OtherGenericComponent, PolymorphicComponentProps } from '../../../types/polymorphic-component.type';
2
- import { ElementType, ReactNode } from 'react';
3
- export type StackLayoutSpace = "none" | "xs" | "sm" | "md" | "lg";
4
- export type StackLayoutAlign = "start" | "center" | "end" | "stretch";
5
- type StackLayoutOwnProps = {
6
- space?: StackLayoutSpace;
7
- align?: StackLayoutAlign;
8
- className?: string;
9
- recursive?: boolean;
10
- children: ReactNode;
11
- };
12
- export type StackLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, StackLayoutOwnProps>;
13
- /**
14
- * StackLayout automatically applies vertical spacing between elements that follow one
15
- * another, without creating "excess" margin at the edges.
16
- *
17
- * Uses the "owl" selector (`* + *`) to set `margin-block-start` only between elements, so
18
- * that the first and last elements in the stack never get unnecessary spacing.
19
- *
20
- * @example
21
- * ```tsx
22
- * <StackLayout space="md">
23
- * <h2>Heading</h2>
24
- * <img src="image.svg" />
25
- * <p>Body text.</p>
26
- * </StackLayout>
27
- * ```
28
- */
29
- export declare const StackLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(stackLayoutProps: StackLayoutProps<TComponent>) => import("react/jsx-runtime").JSX.Element;
30
- export {};
31
- //# sourceMappingURL=stack-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/stack-layouts/stack-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;AAGnE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAuBtE,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAC1B,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GACtB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,EAE9D,kBAAkB,gBAAgB,CAAC,UAAU,CAAC,4CAkC/C,CAAC"}
@@ -1,34 +0,0 @@
1
- import { CSSProperties, ElementType, ReactNode } from 'react';
2
- import { PolymorphicComponentProps, OtherGenericComponent } from '../../../types/polymorphic-component.type';
3
- export type WrapperLayoutGutter = "xs" | "sm" | "md" | "lg";
4
- export type WrapperLayoutVariant = "none" | "default" | "tinted";
5
- export type WrapperLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
6
- children: ReactNode;
7
- gutter?: WrapperLayoutGutter;
8
- className?: string;
9
- maxWidth?: CSSProperties["maxWidth"];
10
- variant?: WrapperLayoutVariant;
11
- "data-color"?: string;
12
- }>;
13
- /**
14
- * WrapperLayout centers its content horizontally, gives it a maximum width, and adds
15
- * breathing room at the side edges (gutter) — so content never sticks to the window edge
16
- * on narrow screens or stretches out endlessly on wide screens.
17
- *
18
- * It is typically the outermost layer around a page or section, and doesn't concern
19
- * itself with spacing between its children — that's the job of StackLayout or
20
- * ClusterLayout.
21
- *
22
- * @example
23
- * ```tsx
24
- * <WrapperLayout maxWidth="85em" gutter="md">
25
- * The content of the page
26
- * </WrapperLayout>
27
- * ```
28
- */
29
- declare const WrapperLayout: {
30
- <TDefaultElementType extends OtherGenericComponent & ElementType = "div">(wrapperLayoutProps: WrapperLayoutProps<TDefaultElementType>): import("react/jsx-runtime").JSX.Element;
31
- displayName: string;
32
- };
33
- export default WrapperLayout;
34
- //# sourceMappingURL=wrapper-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrapper-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/wrapper-layouts/wrapper-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAI5C,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAajE,MAAM,MAAM,kBAAkB,CAC5B,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAC3B,UAAU,EACV;IACE,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,aAAa;KACjB,mBAAmB,SAAS,qBAAqB,GAAG,WAAW,8BAE3C,kBAAkB,CAAC,mBAAmB,CAAC;;CAsC5D,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Link as LinkRoot, LinkProps } from '@digdir/designsystemet-react';
2
- type Link = typeof LinkRoot;
3
- declare const LinkComponent: Link;
4
- export type { LinkProps };
5
- export { LinkComponent as Link };
6
- //# sourceMappingURL=link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../components/link/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEhF,KAAK,IAAI,GAAG,OAAO,QAAQ,CAAC;AAE5B,QAAA,MAAM,aAAa,EAAE,IAAe,CAAC;AAIrC,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
@@ -1,5 +0,0 @@
1
- import { List as ListRoot } from '@digdir/designsystemet-react';
2
- type List = typeof ListRoot;
3
- declare const ListComponent: List;
4
- export { ListComponent as List };
5
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEhE,KAAK,IAAI,GAAG,OAAO,QAAQ,CAAC;AAE5B,QAAA,MAAM,aAAa,EAAE,IAAe,CAAC;AAErC,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Pagination as PaginationRoot, PaginationProps } from '@digdir/designsystemet-react';
2
- type Pagination = typeof PaginationRoot;
3
- declare const PaginationComponent: Pagination;
4
- export type { PaginationProps };
5
- export { PaginationComponent as Pagination };
6
- //# sourceMappingURL=pagination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,cAAc,EAC5B,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"}
@@ -1,6 +0,0 @@
1
- import { Popover as PopoverRoot, PopoverProps } from '@digdir/designsystemet-react';
2
- type Popover = typeof PopoverRoot;
3
- declare const PopoverComponent: Popover;
4
- export type { PopoverProps };
5
- export { PopoverComponent as Popover };
6
- //# sourceMappingURL=popover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,OAAO,GAAG,OAAO,WAAW,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,OAAqB,CAAC;AAI9C,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Radio as RadioRoot, RadioProps } from '@digdir/designsystemet-react';
2
- type Radio = typeof RadioRoot;
3
- declare const RadioComponent: Radio;
4
- export type { RadioProps };
5
- export { RadioComponent as Radio };
6
- //# sourceMappingURL=radio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../components/radio/radio.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;AAGxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Search as SearchRoot, SearchProps } from '@digdir/designsystemet-react';
2
- type Search = typeof SearchRoot;
3
- declare const SearchComponent: Search;
4
- export type { SearchProps };
5
- export { SearchComponent as Search };
6
- //# sourceMappingURL=search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../components/search/search.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,MAAM,GAAG,OAAO,UAAU,CAAC;AAEhC,QAAA,MAAM,eAAe,EAAE,MAAmB,CAAC;AAI3C,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- import { Select as SelectRoot, SelectProps } from '@digdir/designsystemet-react';
2
- declare module "react/jsx-runtime" {
3
- namespace JSX {
4
- interface IntrinsicElements {
5
- selectedcontent: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
6
- }
7
- }
8
- }
9
- type Select = typeof SelectRoot;
10
- declare const SelectComponent: Select;
11
- export type { SelectProps };
12
- export { SelectComponent as Select };
13
- //# sourceMappingURL=select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../components/select/select.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,eAAe,EAAE,KAAK,CAAC,iBAAiB,CACtC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,CAAC;SACH;KACF;CACF;AAED,KAAK,MAAM,GAAG,OAAO,UAAU,CAAC;AA0BhC,QAAA,MAAM,eAAe,EAAE,MAGA,CAAC;AAIxB,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Skeleton as SkeletonRoot, SkeletonProps } from '@digdir/designsystemet-react';
2
- type Skeleton = typeof SkeletonRoot;
3
- declare const SkeletonComponent: Skeleton;
4
- export type { SkeletonProps };
5
- export { SkeletonComponent as Skeleton };
6
- //# sourceMappingURL=skeleton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../components/skeleton/skeleton.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,6 +0,0 @@
1
- import { SkipLink as SkipLinkRoot, SkipLinkProps } from '@digdir/designsystemet-react';
2
- type SkipLink = typeof SkipLinkRoot;
3
- declare const SkipLinkComponent: SkipLink;
4
- export type { SkipLinkProps };
5
- export { SkipLinkComponent as SkipLink };
6
- //# sourceMappingURL=skip-link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skip-link.d.ts","sourceRoot":"","sources":["../../../components/skip-link/skip-link.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,6 +0,0 @@
1
- import { Spinner as SpinnerRoot, SpinnerProps } from '@digdir/designsystemet-react';
2
- type Spinner = typeof SpinnerRoot;
3
- declare const SpinnerComponent: Spinner;
4
- export type { SpinnerProps };
5
- export { SpinnerComponent as Spinner };
6
- //# sourceMappingURL=spinner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../components/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,OAAO,GAAG,OAAO,WAAW,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,OAAqB,CAAC;AAI9C,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
@@ -1,15 +0,0 @@
1
- import { StepContentProps } from './step-content/step-content';
2
- import { StepProps } from './step/step';
3
- import { StepperProps } from './stepper';
4
- export declare const Stepper: (<TValue extends string = string>(props: StepperProps<TValue>) => React.ReactElement) & {
5
- displayName: string;
6
- Step: <E extends React.ElementType = "button">(props: StepProps<E> & {
7
- ref?: React.Ref<HTMLElement>;
8
- }) => React.ReactElement;
9
- StepList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
10
- Content: React.ForwardRefExoticComponent<Omit<StepContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- ContentList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- };
13
- export { useStepperState, type StepMountStrategy, type StepperState, type UseStepperStateOptions, } from './use-stepper-state';
14
- export type { StepContentProps, StepProps, StepperProps };
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEtE,eAAO,MAAM,OAAO;;;WAgBg9H,CAAC;;;;;CAVn+H,CAAC;AAEH,OAAO,EACL,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Ordered list of steps. Provides roving-focus keyboard navigation: arrow keys
3
- * (axis depends on orientation) plus Home/End move focus between step triggers;
4
- * activating a focused step (Enter/Space, native <button>) commits it.
5
- */
6
- export declare const StepList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
7
- //# sourceMappingURL=step-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-list.d.ts","sourceRoot":"","sources":["../../../../components/stepper/step/step-list.tsx"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,2KAyDnB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { ComponentPropsWithoutRef, ElementType, PropsWithChildren, ReactElement, ReactNode, Ref } from 'react';
2
- type StepOwnProps = PropsWithChildren & {
3
- /** Unique value identifying this step; must match a `<StepContent value>`. */
4
- value: string;
5
- /** Custom indicator content, replacing the default status icon. */
6
- icon?: ReactNode;
7
- status?: "completed" | "error" | "warning";
8
- /** Class applied to the step container (`<li>`), not the trigger. */
9
- className?: string;
10
- };
11
- /**
12
- * `as` lets a navigable step render as something other than a `<button>` —
13
- * e.g. a router's `<Link>`. Extra props (`to`, `href`, …) flow to that element.
14
- */
15
- export type StepProps<E extends ElementType = "button"> = StepOwnProps & {
16
- as?: E;
17
- } & Omit<ComponentPropsWithoutRef<E>, keyof StepOwnProps | "as">;
18
- export declare const Step: <E extends ElementType = "button">(props: StepProps<E> & {
19
- ref?: Ref<HTMLElement>;
20
- }) => ReactElement;
21
- export {};
22
- //# sourceMappingURL=step.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../components/stepper/step/step.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAKhB,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAUf,KAAK,YAAY,GAAG,iBAAiB,GAAG;IACtC,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;IAC3C,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,IAAI,YAAY,GAAG;IACvE,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,GAAG,IAAI,CAAC,CAAC;AAoHjE,eAAO,MAAM,IAAI,EAAe,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAC/D,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KAC7C,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const StepContentList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
2
- //# sourceMappingURL=step-content-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-content-list.d.ts","sourceRoot":"","sources":["../../../../components/stepper/step-content/step-content-list.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,mKAgB3B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export type StepContentProps = ComponentProps<"div"> & {
3
- /** Value identifying this panel; must match the `<Step value>` it belongs to. */
4
- value: string;
5
- };
6
- /**
7
- * A step's content panel. Renders whenever it's mounted and hides itself when
8
- * it isn't the active step. Mounting is the consumer's concern — render every
9
- * panel (all stay mounted) or gate them with `useStepperState`'s `shouldRender`
10
- * to opt into `lazy`/`active` behaviour.
11
- */
12
- export declare const StepContent: React.ForwardRefExoticComponent<Omit<StepContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- //# sourceMappingURL=step-content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-content.d.ts","sourceRoot":"","sources":["../../../../components/stepper/step-content/step-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAKxD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACrD,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,sGAoBvB,CAAC"}
@@ -1,49 +0,0 @@
1
- export type StepperOrientation = "horizontal" | "vertical";
2
- /**
3
- * Stepper variant:
4
- * - `linear`: steps ahead of the current one are locked; the user can click
5
- * back to earlier steps, but forward progress is programmatic.
6
- * - `non-linear`: navigable, any step can be selected.
7
- * - `readonly`: not navigable — a display-only progress indicator.
8
- */
9
- export type StepperVariant = "linear" | "non-linear" | "readonly";
10
- /** Screen-reader-only text appended to a step for each status. Localizable. */
11
- export interface StepperStatusLabels {
12
- completed: string;
13
- error: string;
14
- warning: string;
15
- }
16
- export interface StepperContextValue {
17
- /** The value of the currently active step. */
18
- value: string;
19
- /** Called with a step's value when the user activates an interactive step. */
20
- onChange?: (value: string) => void;
21
- /** Base id used to link each step to its content panel for assistive tech. */
22
- baseId: string;
23
- /** Layout direction of the step list. */
24
- orientation: StepperOrientation;
25
- /** Assistive-tech status text, resolved (defaults merged) by `<Stepper>`. */
26
- statusLabels: StepperStatusLabels;
27
- /** Variant controlling navigability and linear locking. */
28
- variant: StepperVariant;
29
- /** Screen-reader hint appended to steps locked by linear mode. */
30
- lockedLabel: string;
31
- }
32
- export declare const StepperContext: React.Context<StepperContextValue | null>;
33
- export declare function useStepper(): StepperContextValue;
34
- /**
35
- * Ordered list of step values in render order, published by `<StepList>` so a
36
- * step can tell whether it comes before/after the current one (linear mode).
37
- */
38
- export declare const StepOrderContext: React.Context<readonly string[]>;
39
- export declare function useStepOrder(): readonly string[];
40
- /** Stable id for a step trigger — used as the panel's `aria-labelledby`. */
41
- export declare const stepId: (baseId: string, value: string) => string;
42
- /** Stable id for a step's content panel — used as the step's `aria-controls`. */
43
- export declare const panelId: (baseId: string, value: string) => string;
44
- /**
45
- * Marker attribute set by a focusable `<Step>` trigger and queried by
46
- * `<StepList>` to move roving focus. Shared so the name can't drift.
47
- */
48
- export declare const STEP_TRIGGER_ATTR = "data-step-trigger";
49
- //# sourceMappingURL=stepper-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper-context.d.ts","sourceRoot":"","sources":["../../../components/stepper/stepper-context.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAAC;AAElE,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,WAAW,EAAE,kBAAkB,CAAC;IAChC,6EAA6E;IAC7E,YAAY,EAAE,mBAAmB,CAAC;IAClC,2DAA2D;IAC3D,OAAO,EAAE,cAAc,CAAC;IACxB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,2CAAkD,CAAC;AAE9E,wBAAgB,UAAU,wBAMzB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,kCAAuC,CAAC;AAErE,wBAAgB,YAAY,sBAE3B;AAED,4EAA4E;AAC5E,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,EAAE,OAAO,MAAM,WACzB,CAAC;AAE5B,iFAAiF;AACjF,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,OAAO,MAAM,WACzB,CAAC;AAE7B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC"}
@@ -1,42 +0,0 @@
1
- import { ComponentProps, ReactElement } from 'react';
2
- import { StepperOrientation, StepperStatusLabels, StepperVariant } from './stepper-context';
3
- export type StepperProps<TValue extends string = string> = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
4
- /**
5
- * The active step's value (controlled). Omit and use `defaultValue` for an
6
- * uncontrolled stepper that manages its own state.
7
- */
8
- value?: TValue;
9
- /**
10
- * The `value` of the step that starts active in an uncontrolled stepper.
11
- * Sets the initial step only — later navigation is managed internally.
12
- * Ignored when `value` is provided (controlled). Omit both to start with no
13
- * active step.
14
- */
15
- defaultValue?: TValue;
16
- /**
17
- * Called with a step's value when the user activates an interactive step.
18
- */
19
- onChange?: (value: TValue) => void;
20
- /** Layout direction of the step list. Defaults to `'horizontal'`. */
21
- orientation?: StepperOrientation;
22
- /** Override the screen-reader status text (e.g. for localization). */
23
- statusLabels?: Partial<StepperStatusLabels>;
24
- /**
25
- * Stepper variant. Defaults to `"linear"`.
26
- * - `"linear"` (default): locks steps ahead of the current one — the user can
27
- * click back to earlier steps, but advancing forward must be done
28
- * programmatically (e.g. a "Next" button updating the active step).
29
- * - `"non-linear"`: any step can be selected.
30
- * - `"readonly"`: every step is inert (a display-only progress indicator);
31
- * changing steps must be done fully programmatically.
32
- */
33
- variant?: StepperVariant;
34
- /** Screen-reader hint for steps locked by linear mode. Defaults to "Locked". */
35
- lockedLabel?: string;
36
- };
37
- /**
38
- * forwardRef drops the generic, so re-assert it via a cast. `StepperProps`
39
- * already carries `ref` (from the `<div>` props), so the ref flows through.
40
- */
41
- export declare const Stepper: <TValue extends string = string>(props: StepperProps<TValue>) => ReactElement;
42
- //# sourceMappingURL=stepper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../components/stepper/stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,YAAY,EAGlB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAU3B,MAAM,MAAM,YAAY,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAC7D,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,cAAc,CAC5B,GAAG;IACF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,qEAAqE;IACrE,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC5C;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA8DF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAkB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EACnE,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,KACxB,YAAY,CAAC"}
@@ -1,43 +0,0 @@
1
- /**
2
- * How step panels are mounted. This is opt-in via `useStepperState` — when the
3
- * hook isn't used, every `<Stepper.Content>` you render stays mounted, which is
4
- * equivalent to `"all"`. The Stepper component itself has no mount strategy.
5
- * - `active`: only the active panel is rendered (others unmount on leave).
6
- * - `lazy`: a panel renders on first visit, then stays rendered (hidden).
7
- * - `all`: every panel renders (inactive ones hidden).
8
- */
9
- export type StepMountStrategy = "active" | "lazy" | "all";
10
- export interface UseStepperStateOptions<TValue extends string> {
11
- /** The step that starts active. Only seeds the initial value — later changes
12
- * go through `setValue`. */
13
- defaultValue: TValue;
14
- /** Mounting behaviour. Defaults to `"all"` (render every panel). */
15
- mountStrategy?: StepMountStrategy;
16
- }
17
- export interface StepperState<TValue extends string> {
18
- /** The active step's value — pass to `<Stepper value>`. */
19
- value: TValue;
20
- /** Sets the active step. Wire to `<Stepper onChange>` and/or call it directly
21
- * to move the stepper programmatically. */
22
- setValue: (value: TValue) => void;
23
- /** Whether the panel for `value` should be rendered right now. */
24
- shouldRender: (value: TValue) => boolean;
25
- }
26
- /**
27
- * Owns a stepper's active-step state and, optionally, decides which content
28
- * panels are mounted. Gate `<Stepper.Content>` with the returned `shouldRender`:
29
- *
30
- * ```tsx
31
- * const stepper = useStepperState({ defaultValue: "one", mountStrategy: "lazy" });
32
- * <Stepper value={stepper.value} onChange={stepper.setValue}>
33
- * {steps.map((s) => stepper.shouldRender(s.value) && (
34
- * <Stepper.Content key={s.value} value={s.value}>…</Stepper.Content>
35
- * ))}
36
- * </Stepper>
37
- * ```
38
- *
39
- * The hook lives in the parent, so its "visited" memory survives panels
40
- * unmounting — which is what makes `"lazy"` reliable.
41
- */
42
- export declare function useStepperState<TValue extends string>({ defaultValue, mountStrategy, }: UseStepperStateOptions<TValue>): StepperState<TValue>;
43
- //# sourceMappingURL=use-stepper-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-stepper-state.d.ts","sourceRoot":"","sources":["../../../components/stepper/use-stepper-state.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1D,MAAM,WAAW,sBAAsB,CAAC,MAAM,SAAS,MAAM;IAC3D;iCAC6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,WAAW,YAAY,CAAC,MAAM,SAAS,MAAM;IACjD,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd;gDAC4C;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kEAAkE;IAClE,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,MAAM,SAAS,MAAM,EAAE,EACrD,YAAY,EACZ,aAAqB,GACtB,EAAE,sBAAsB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAiBvD"}
@@ -1,9 +0,0 @@
1
- interface SmudiSuggestionContextType {
2
- showToggleAll?: boolean | string;
3
- isAllSelected?: boolean;
4
- toggleSelectAll: () => void;
5
- }
6
- export declare const SmudiSuggestionContext: React.Context<SmudiSuggestionContextType>;
7
- export declare function useSmudiSuggestion(): SmudiSuggestionContextType;
8
- export {};
9
- //# sourceMappingURL=smudi-suggestion-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smudi-suggestion-context.d.ts","sourceRoot":"","sources":["../../../../components/suggestion/smudi-suggestion/smudi-suggestion-context.tsx"],"names":[],"mappings":"AAEA,UAAU,0BAA0B;IAClC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,sBAAsB,2CAElC,CAAC;AAEF,wBAAgB,kBAAkB,+BAOjC"}
@@ -1,8 +0,0 @@
1
- import { SuggestionListProps } from '@digdir/designsystemet-react';
2
- import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
- /**
4
- * List of suggested options shown inside a `Suggestion`. Automatically
5
- * renders a "select all" option when `Suggestion`'s `showToggleAll` is set.
6
- */
7
- export declare const SmudiSuggestionList: ForwardRefExoticComponent<SuggestionListProps & RefAttributes<HTMLDataListElement>>;
8
- //# sourceMappingURL=smudi-suggestion-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smudi-suggestion-list.d.ts","sourceRoot":"","sources":["../../../../components/suggestion/smudi-suggestion/smudi-suggestion-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAc,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI7E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CACzD,mBAAmB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CA+BzD,CAAC"}