@smudi/designsystem 1.4.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 (266) hide show
  1. package/@smudi/assets/InterVariable.woff2 +0 -0
  2. package/@smudi/assets/UDI-red-logo.svg.js +4 -0
  3. package/@smudi/components/alert/alert.d.ts +6 -0
  4. package/@smudi/components/alert/alert.d.ts.map +1 -0
  5. package/@smudi/components/alert/alert.js +6 -0
  6. package/@smudi/components/avatar/avatar.d.ts +6 -0
  7. package/@smudi/components/avatar/avatar.d.ts.map +1 -0
  8. package/@smudi/components/avatar/avatar.js +6 -0
  9. package/@smudi/components/avatar-stack/avatar-stack.d.ts +6 -0
  10. package/@smudi/components/avatar-stack/avatar-stack.d.ts.map +1 -0
  11. package/@smudi/components/avatar-stack/avatar-stack.js +6 -0
  12. package/@smudi/components/badge/badge.d.ts +6 -0
  13. package/@smudi/components/badge/badge.d.ts.map +1 -0
  14. package/@smudi/components/badge/badge.js +6 -0
  15. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts +6 -0
  16. package/@smudi/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  17. package/@smudi/components/breadcrumbs/breadcrumbs.js +6 -0
  18. package/@smudi/components/button/button.d.ts +8 -0
  19. package/@smudi/components/button/button.d.ts.map +1 -0
  20. package/@smudi/components/button/button.js +25 -0
  21. package/@smudi/components/card/card-icon-block.d.ts +6 -0
  22. package/@smudi/components/card/card-icon-block.d.ts.map +1 -0
  23. package/@smudi/components/card/card-icon-block.js +21 -0
  24. package/@smudi/components/card/card.d.ts +9 -0
  25. package/@smudi/components/card/card.d.ts.map +1 -0
  26. package/@smudi/components/card/card.js +8 -0
  27. package/@smudi/components/checkbox/checkbox.d.ts +6 -0
  28. package/@smudi/components/checkbox/checkbox.d.ts.map +1 -0
  29. package/@smudi/components/checkbox/checkbox.js +6 -0
  30. package/@smudi/components/chip/chip.d.ts +5 -0
  31. package/@smudi/components/chip/chip.d.ts.map +1 -0
  32. package/@smudi/components/chip/chip.js +9 -0
  33. package/@smudi/components/details/details.d.ts +6 -0
  34. package/@smudi/components/details/details.d.ts.map +1 -0
  35. package/@smudi/components/details/details.js +6 -0
  36. package/@smudi/components/dialog/dialog-section.d.ts +22 -0
  37. package/@smudi/components/dialog/dialog-section.d.ts.map +1 -0
  38. package/@smudi/components/dialog/dialog-section.js +20 -0
  39. package/@smudi/components/dialog/dialog.d.ts +9 -0
  40. package/@smudi/components/dialog/dialog.d.ts.map +1 -0
  41. package/@smudi/components/dialog/dialog.js +8 -0
  42. package/@smudi/components/divider/divider.d.ts +6 -0
  43. package/@smudi/components/divider/divider.d.ts.map +1 -0
  44. package/@smudi/components/divider/divider.js +6 -0
  45. package/@smudi/components/dropdown/dropdown-button.d.ts +30 -0
  46. package/@smudi/components/dropdown/dropdown-button.d.ts.map +1 -0
  47. package/@smudi/components/dropdown/dropdown-button.js +15 -0
  48. package/@smudi/components/dropdown/dropdown-context.d.ts +7 -0
  49. package/@smudi/components/dropdown/dropdown-context.d.ts.map +1 -0
  50. package/@smudi/components/dropdown/dropdown-context.js +12 -0
  51. package/@smudi/components/dropdown/dropdown-item.d.ts +10 -0
  52. package/@smudi/components/dropdown/dropdown-item.d.ts.map +1 -0
  53. package/@smudi/components/dropdown/dropdown-item.js +13 -0
  54. package/@smudi/components/dropdown/dropdown-list.d.ts +10 -0
  55. package/@smudi/components/dropdown/dropdown-list.d.ts.map +1 -0
  56. package/@smudi/components/dropdown/dropdown-list.js +13 -0
  57. package/@smudi/components/dropdown/dropdown.d.ts +20 -0
  58. package/@smudi/components/dropdown/dropdown.d.ts.map +1 -0
  59. package/@smudi/components/dropdown/dropdown.js +42 -0
  60. package/@smudi/components/error-summary/error-summary.d.ts +6 -0
  61. package/@smudi/components/error-summary/error-summary.d.ts.map +1 -0
  62. package/@smudi/components/error-summary/error-summary.js +6 -0
  63. package/@smudi/components/field/field.d.ts +6 -0
  64. package/@smudi/components/field/field.d.ts.map +1 -0
  65. package/@smudi/components/field/field.js +6 -0
  66. package/@smudi/components/fieldset/fieldset.d.ts +6 -0
  67. package/@smudi/components/fieldset/fieldset.d.ts.map +1 -0
  68. package/@smudi/components/fieldset/fieldset.js +6 -0
  69. package/@smudi/components/header/header-content.d.ts +4 -0
  70. package/@smudi/components/header/header-content.d.ts.map +1 -0
  71. package/@smudi/components/header/header-content.js +19 -0
  72. package/@smudi/components/header/header-divider.d.ts +4 -0
  73. package/@smudi/components/header/header-divider.d.ts.map +1 -0
  74. package/@smudi/components/header/header-divider.js +23 -0
  75. package/@smudi/components/header/header-menu/header-menu-button.d.ts +4 -0
  76. package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +1 -0
  77. package/@smudi/components/header/header-menu/header-menu-button.js +39 -0
  78. package/@smudi/components/header/header-menu/header-menu-content.d.ts +4 -0
  79. package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +1 -0
  80. package/@smudi/components/header/header-menu/header-menu-content.js +17 -0
  81. package/@smudi/components/header/header-menu/header-menu-group.d.ts +4 -0
  82. package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +1 -0
  83. package/@smudi/components/header/header-menu/header-menu-group.js +19 -0
  84. package/@smudi/components/header/header-menu/header-menu-item.d.ts +12 -0
  85. package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +1 -0
  86. package/@smudi/components/header/header-menu/header-menu-item.js +23 -0
  87. package/@smudi/components/header/header-menu/header-menu.d.ts +5 -0
  88. package/@smudi/components/header/header-menu/header-menu.d.ts.map +1 -0
  89. package/@smudi/components/header/header-menu/header-menu.js +69 -0
  90. package/@smudi/components/header/header-menu/index.d.ts +11 -0
  91. package/@smudi/components/header/header-menu/index.d.ts.map +1 -0
  92. package/@smudi/components/header/header-search/header-search-button.d.ts +9 -0
  93. package/@smudi/components/header/header-search/header-search-button.d.ts.map +1 -0
  94. package/@smudi/components/header/header-search/header-search-button.js +44 -0
  95. package/@smudi/components/header/header-search/header-search.d.ts +17 -0
  96. package/@smudi/components/header/header-search/header-search.d.ts.map +1 -0
  97. package/@smudi/components/header/header-search/header-search.js +69 -0
  98. package/@smudi/components/header/header-search/index.d.ts +5 -0
  99. package/@smudi/components/header/header-search/index.d.ts.map +1 -0
  100. package/@smudi/components/header/header.d.ts +55 -0
  101. package/@smudi/components/header/header.d.ts.map +1 -0
  102. package/@smudi/components/header/header.js +97 -0
  103. package/@smudi/components/header/index.d.ts +36 -0
  104. package/@smudi/components/header/index.d.ts.map +1 -0
  105. package/@smudi/components/header/index.js +34 -0
  106. package/@smudi/components/input/input.d.ts +6 -0
  107. package/@smudi/components/input/input.d.ts.map +1 -0
  108. package/@smudi/components/input/input.js +6 -0
  109. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +37 -0
  110. package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +1 -0
  111. package/@smudi/components/layout-components/box-layouts/box-layout.js +70 -0
  112. package/@smudi/components/layout-components/box-layouts/box-layout.module.css.js +6 -0
  113. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +30 -0
  114. package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +1 -0
  115. package/@smudi/components/layout-components/center-layouts/center-layout.js +31 -0
  116. package/@smudi/components/layout-components/center-layouts/center-layout.module.css.js +7 -0
  117. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +33 -0
  118. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +1 -0
  119. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.js +35 -0
  120. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.module.css.js +6 -0
  121. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts +2 -0
  122. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts.map +1 -0
  123. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts +2 -0
  124. package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts.map +1 -0
  125. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts +2 -0
  126. package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts.map +1 -0
  127. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts +2 -0
  128. package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts.map +1 -0
  129. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +39 -0
  130. package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +1 -0
  131. package/@smudi/components/layout-components/grid-layouts/grid-layout.js +40 -0
  132. package/@smudi/components/layout-components/grid-layouts/grid-layout.module.css.js +6 -0
  133. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +31 -0
  134. package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +1 -0
  135. package/@smudi/components/layout-components/stack-layouts/stack-layout.js +46 -0
  136. package/@smudi/components/layout-components/stack-layouts/stack-layout.module.css.js +6 -0
  137. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +34 -0
  138. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts.map +1 -0
  139. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.js +41 -0
  140. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.module.css.js +6 -0
  141. package/@smudi/components/link/link.d.ts +6 -0
  142. package/@smudi/components/link/link.d.ts.map +1 -0
  143. package/@smudi/components/link/link.js +6 -0
  144. package/@smudi/components/list/list.d.ts +5 -0
  145. package/@smudi/components/list/list.d.ts.map +1 -0
  146. package/@smudi/components/list/list.js +5 -0
  147. package/@smudi/components/pagination/pagination.d.ts +6 -0
  148. package/@smudi/components/pagination/pagination.d.ts.map +1 -0
  149. package/@smudi/components/pagination/pagination.js +6 -0
  150. package/@smudi/components/popover/popover.d.ts +6 -0
  151. package/@smudi/components/popover/popover.d.ts.map +1 -0
  152. package/@smudi/components/popover/popover.js +6 -0
  153. package/@smudi/components/radio/radio.d.ts +6 -0
  154. package/@smudi/components/radio/radio.d.ts.map +1 -0
  155. package/@smudi/components/radio/radio.js +6 -0
  156. package/@smudi/components/search/search.d.ts +6 -0
  157. package/@smudi/components/search/search.d.ts.map +1 -0
  158. package/@smudi/components/search/search.js +6 -0
  159. package/@smudi/components/select/select.d.ts +6 -0
  160. package/@smudi/components/select/select.d.ts.map +1 -0
  161. package/@smudi/components/select/select.js +9 -0
  162. package/@smudi/components/skeleton/skeleton.d.ts +6 -0
  163. package/@smudi/components/skeleton/skeleton.d.ts.map +1 -0
  164. package/@smudi/components/skeleton/skeleton.js +6 -0
  165. package/@smudi/components/skip-link/skip-link.d.ts +6 -0
  166. package/@smudi/components/skip-link/skip-link.d.ts.map +1 -0
  167. package/@smudi/components/skip-link/skip-link.js +6 -0
  168. package/@smudi/components/spinner/spinner.d.ts +6 -0
  169. package/@smudi/components/spinner/spinner.d.ts.map +1 -0
  170. package/@smudi/components/spinner/spinner.js +6 -0
  171. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts +9 -0
  172. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts.map +1 -0
  173. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.js +14 -0
  174. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +4 -0
  175. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +1 -0
  176. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.js +33 -0
  177. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +37 -0
  178. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +1 -0
  179. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +102 -0
  180. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +21 -0
  181. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +1 -0
  182. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.js +126 -0
  183. package/@smudi/components/suggestion/suggestion.d.ts +16 -0
  184. package/@smudi/components/suggestion/suggestion.d.ts.map +1 -0
  185. package/@smudi/components/suggestion/suggestion.js +13 -0
  186. package/@smudi/components/switch/switch.d.ts +6 -0
  187. package/@smudi/components/switch/switch.d.ts.map +1 -0
  188. package/@smudi/components/table/table.d.ts +6 -0
  189. package/@smudi/components/table/table.d.ts.map +1 -0
  190. package/@smudi/components/table/table.js +6 -0
  191. package/@smudi/components/tabs/tabs-content.d.ts +6 -0
  192. package/@smudi/components/tabs/tabs-content.d.ts.map +1 -0
  193. package/@smudi/components/tabs/tabs-content.js +6 -0
  194. package/@smudi/components/tabs/tabs-list.d.ts +6 -0
  195. package/@smudi/components/tabs/tabs-list.d.ts.map +1 -0
  196. package/@smudi/components/tabs/tabs-list.js +6 -0
  197. package/@smudi/components/tabs/tabs-trigger.d.ts +6 -0
  198. package/@smudi/components/tabs/tabs-trigger.d.ts.map +1 -0
  199. package/@smudi/components/tabs/tabs-trigger.js +6 -0
  200. package/@smudi/components/tabs/tabs.d.ts +6 -0
  201. package/@smudi/components/tabs/tabs.d.ts.map +1 -0
  202. package/@smudi/components/tabs/tabs.js +6 -0
  203. package/@smudi/components/tag/tag.d.ts +6 -0
  204. package/@smudi/components/tag/tag.d.ts.map +1 -0
  205. package/@smudi/components/tag/tag.js +6 -0
  206. package/@smudi/components/textarea/text-area.d.ts +6 -0
  207. package/@smudi/components/textarea/text-area.d.ts.map +1 -0
  208. package/@smudi/components/textarea/text-area.js +6 -0
  209. package/@smudi/components/textfield/textfield.d.ts +6 -0
  210. package/@smudi/components/textfield/textfield.d.ts.map +1 -0
  211. package/@smudi/components/textfield/textfield.js +6 -0
  212. package/@smudi/components/toast/toast.d.ts +39 -0
  213. package/@smudi/components/toast/toast.d.ts.map +1 -0
  214. package/@smudi/components/toast/toast.js +285 -0
  215. package/@smudi/components/toggle-group/toggle-group.d.ts +6 -0
  216. package/@smudi/components/toggle-group/toggle-group.d.ts.map +1 -0
  217. package/@smudi/components/toggle-group/toggle-group.js +7 -0
  218. package/@smudi/components/tooltip/tooltip.d.ts +6 -0
  219. package/@smudi/components/tooltip/tooltip.d.ts.map +1 -0
  220. package/@smudi/components/tooltip/tooltip.js +6 -0
  221. package/@smudi/components/typography/heading/heading.d.ts +6 -0
  222. package/@smudi/components/typography/heading/heading.d.ts.map +1 -0
  223. package/@smudi/components/typography/heading/heading.js +6 -0
  224. package/@smudi/components/typography/paragraph/paragraph.d.ts +6 -0
  225. package/@smudi/components/typography/paragraph/paragraph.d.ts.map +1 -0
  226. package/@smudi/components/typography/paragraph/paragraph.js +6 -0
  227. package/@smudi/components/utils/apply-inert-outside.d.ts +17 -0
  228. package/@smudi/components/utils/apply-inert-outside.d.ts.map +1 -0
  229. package/@smudi/components/utils/apply-inert-outside.js +12 -0
  230. package/@smudi/components/utils/class-names.d.ts +2 -0
  231. package/@smudi/components/utils/class-names.d.ts.map +1 -0
  232. package/@smudi/components/utils/class-names.js +6 -0
  233. package/@smudi/icons/generated/SmudiBiometryIcon.js +32 -0
  234. package/@smudi/icons/generated/SmudiFingerprintIcon.js +62 -0
  235. package/@smudi/icons/generated/SmudiFlagIcon.js +30 -0
  236. package/@smudi/icons/generated/SmudiScanIcon.js +30 -0
  237. package/@smudi/react.js +198 -0
  238. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts +8 -0
  239. package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts.map +1 -0
  240. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts +8 -0
  241. package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts.map +1 -0
  242. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts +8 -0
  243. package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts.map +1 -0
  244. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts +8 -0
  245. package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts.map +1 -0
  246. package/@smudi/smudi/icons/generated/index.d.ts +5 -0
  247. package/@smudi/smudi/icons/generated/index.d.ts.map +1 -0
  248. package/@smudi/smudi/icons/metadata.d.ts +32 -0
  249. package/@smudi/smudi/icons/metadata.d.ts.map +1 -0
  250. package/@smudi/smudi/react.d.ts +55 -0
  251. package/@smudi/smudi/react.d.ts.map +1 -0
  252. package/@smudi/styles.css +1 -0
  253. package/@smudi/types/modular-scale.type.d.ts +18 -0
  254. package/@smudi/types/modular-scale.type.d.ts.map +1 -0
  255. package/@smudi/types/polymorphic-component.type.d.ts +35 -0
  256. package/@smudi/types/polymorphic-component.type.d.ts.map +1 -0
  257. package/@smudi/types/utils/coerce-string-to-number.d.ts +4 -0
  258. package/@smudi/types/utils/coerce-string-to-number.d.ts.map +1 -0
  259. package/@smudi/types/utils/exclude-strict.d.ts +2 -0
  260. package/@smudi/types/utils/exclude-strict.d.ts.map +1 -0
  261. package/@smudi/types/utils/omit-strict.d.ts +2 -0
  262. package/@smudi/types/utils/omit-strict.d.ts.map +1 -0
  263. package/@smudi/utils/append-class-name.js +10 -0
  264. package/@smudi/utils/combine-refs.js +10 -0
  265. package/README.md +83 -0
  266. package/package.json +80 -0
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,34 @@
1
+ import { Header as e } from "./header.js";
2
+ import { UDILogo as D } from "./header.js";
3
+ import { HeaderContent as r } from "./header-content.js";
4
+ import { HeaderDivider as o } from "./header-divider.js";
5
+ import { HeaderMenuButton as S } from "./header-menu/header-menu-button.js";
6
+ import { HeaderMenu as t } from "./header-menu/header-menu.js";
7
+ import { HeaderMenuContent as n } from "./header-menu/header-menu-content.js";
8
+ import { HeaderMenuGroup as a } from "./header-menu/header-menu-group.js";
9
+ import { HeaderMenuItem as m } from "./header-menu/header-menu-item.js";
10
+ import { HeaderSearch as d } from "./header-search/header-search.js";
11
+ import { HeaderSearchButton as j } from "./header-search/header-search-button.js";
12
+ const i = Object.assign(t, {
13
+ Content: n,
14
+ Group: a,
15
+ Item: m
16
+ }), x = Object.assign(e, {
17
+ Content: r,
18
+ Divider: o,
19
+ Menu: i,
20
+ Search: d
21
+ });
22
+ export {
23
+ x as Header,
24
+ r as HeaderContent,
25
+ o as HeaderDivider,
26
+ i as HeaderMenu,
27
+ S as HeaderMenuButton,
28
+ n as HeaderMenuContent,
29
+ a as HeaderMenuGroup,
30
+ m as HeaderMenuItem,
31
+ d as HeaderSearch,
32
+ j as HeaderSearchButton,
33
+ D as UDILogo
34
+ };
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
1
+ import { Input as p } from "@digdir/designsystemet-react";
2
+ const t = p;
3
+ t.displayName = "Input";
4
+ export {
5
+ t as Input
6
+ };
@@ -0,0 +1,37 @@
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>) => import("react/jsx-runtime").JSX.Element;
37
+ //# sourceMappingURL=box-layout.d.ts.map
@@ -0,0 +1 @@
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,4CAgEpD,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { appendClassName as I } from "../../../utils/append-class-name.js";
3
+ import E from "./box-layout.module.css.js";
4
+ const k = {
5
+ none: "0",
6
+ xs: "var(--ds-size-1)",
7
+ sm: "var(--ds-size-2)",
8
+ md: "var(--ds-size-4)",
9
+ lg: "var(--ds-size-6)"
10
+ }, z = {
11
+ none: "0",
12
+ xs: "var(--ds-size-3)",
13
+ sm: "var(--ds-size-4)",
14
+ md: "var(--ds-size-6)",
15
+ lg: "var(--ds-size-8)"
16
+ }, C = {
17
+ none: "0",
18
+ sm: "var(--ds-border-radius-sm)",
19
+ md: "var(--ds-border-radius-md)",
20
+ lg: "var(--ds-border-radius-lg)",
21
+ xl: "var(--ds-border-radius-xl)"
22
+ }, s = (d) => d ? k[d] : void 0, i = (d) => d ? z[d] : void 0, U = (d) => {
23
+ const {
24
+ as: r = "div",
25
+ className: e = "",
26
+ padding: n,
27
+ paddingBlock: t,
28
+ paddingInline: l,
29
+ paddingInlineEnd: m,
30
+ paddingInlineStart: c,
31
+ paddingBlockStart: v,
32
+ paddingBlockEnd: u,
33
+ border: o = !1,
34
+ borderRadius: a,
35
+ variant: b = "none",
36
+ style: p,
37
+ children: g,
38
+ ...x
39
+ } = d, _ = I(
40
+ E["smudi-box"],
41
+ e
42
+ ), B = o ? a ? C[a] : "var(--ds-border-radius-md)" : "0", S = s(
43
+ t ?? n
44
+ ), L = i(
45
+ l ?? n
46
+ ), O = {
47
+ "--smudi-box-padding-block": S,
48
+ "--smudi-box-padding-inline": L,
49
+ "--smudi-box-padding-block-start": s(v),
50
+ "--smudi-box-padding-block-end": s(u),
51
+ "--smudi-box-padding-inline-start": i(c),
52
+ "--smudi-box-padding-inline-end": i(m),
53
+ "--smudi-box-border-width": o ? "var(--ds-border-width-default)" : "0",
54
+ "--smudi-box-border-radius": B,
55
+ ...p
56
+ };
57
+ return /* @__PURE__ */ y(
58
+ r,
59
+ {
60
+ className: _,
61
+ style: O,
62
+ "data-variant": b,
63
+ ...x,
64
+ children: g
65
+ }
66
+ );
67
+ };
68
+ export {
69
+ U as BoxLayout
70
+ };
@@ -0,0 +1,6 @@
1
+ const s = {
2
+ "smudi-box": "_smudi-box_s3z9n_1"
3
+ };
4
+ export {
5
+ s as default
6
+ };
@@ -0,0 +1,30 @@
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>) => import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=center-layout.d.ts.map
@@ -0,0 +1 @@
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,4CA8BjD,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { appendClassName as p } from "../../../utils/append-class-name.js";
3
+ import t from "./center-layout.module.css.js";
4
+ const N = (s) => {
5
+ const {
6
+ as: e = "div",
7
+ className: a = "",
8
+ shrinkToContent: n = !1,
9
+ textAlign: o = "start",
10
+ children: r,
11
+ ...i
12
+ } = s, m = {
13
+ [t["smudi-intrinsic"]]: !!n
14
+ }, l = p(
15
+ t["smudi-center-layout"],
16
+ m,
17
+ a
18
+ );
19
+ return /* @__PURE__ */ c(
20
+ e,
21
+ {
22
+ className: l,
23
+ "data-text-align": o,
24
+ ...i,
25
+ children: r
26
+ }
27
+ );
28
+ };
29
+ export {
30
+ N as CenterLayout
31
+ };
@@ -0,0 +1,7 @@
1
+ const i = {
2
+ "smudi-center-layout": "_smudi-center-layout_13b46_1",
3
+ "smudi-intrinsic": "_smudi-intrinsic_13b46_9"
4
+ };
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,33 @@
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>) => import("react/jsx-runtime").JSX.Element;
33
+ //# sourceMappingURL=cluster-layout.d.ts.map
@@ -0,0 +1 @@
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,4CAkCnD,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { appendClassName as c } from "../../../utils/append-class-name.js";
3
+ import p from "./cluster-layout.module.css.js";
4
+ const N = (s) => {
5
+ const {
6
+ as: t = "div",
7
+ className: e = "",
8
+ space: a,
9
+ justify: l,
10
+ align: n,
11
+ noWrap: i,
12
+ children: o,
13
+ ...r
14
+ } = s, m = c(
15
+ p["smudi-cluster-layout"],
16
+ e
17
+ );
18
+ return /* @__PURE__ */ u(
19
+ t,
20
+ {
21
+ className: m,
22
+ style: {
23
+ "--smudi-cluster-justify": l,
24
+ "--smudi-cluster-alignment": n
25
+ },
26
+ "data-no-wrap": i,
27
+ "data-space": a,
28
+ ...r,
29
+ children: o
30
+ }
31
+ );
32
+ };
33
+ export {
34
+ N as ClusterLayout
35
+ };
@@ -0,0 +1,6 @@
1
+ const s = {
2
+ "smudi-cluster-layout": "_smudi-cluster-layout_1qqom_1"
3
+ };
4
+ export {
5
+ s as default
6
+ };
@@ -0,0 +1,2 @@
1
+ export declare const CLUSTER_ALIGN_CSS: readonly ["flex-start", "center", "flex-end", "baseline", "stretch"];
2
+ //# sourceMappingURL=cluster-align-css.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export type ClusterAlign = 'flex-start' | 'center' | 'flex-end' | 'baseline' | 'stretch';
2
+ //# sourceMappingURL=cluster-align.type.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,39 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { PolymorphicComponentProps, OtherGenericComponent } from '../../../types/polymorphic-component.type';
3
+ export type GridLayoutSpace = "none" | "xs" | "sm" | "md" | "lg";
4
+ export type GridLayoutMinWidth = number | string;
5
+ export type GridLayoutProps<TComponent extends OtherGenericComponent & ElementType = "div"> = PolymorphicComponentProps<TComponent, {
6
+ /**
7
+ * Minimum width a cell can have before the grid wraps to a new row/column.
8
+ *
9
+ * Accepts free CSS width values (for example `"280px"`, `"35%"`,
10
+ * `"18rem"`, `"var(--my-size)"`).
11
+ *
12
+ * For backwards compatibility, numbers 1-30 still map to
13
+ * `var(--ds-size-{n})`, while other numeric values are treated as `px`.
14
+ */
15
+ minWidth?: GridLayoutMinWidth;
16
+ space?: GridLayoutSpace;
17
+ className?: string;
18
+ recursive?: boolean;
19
+ children: ReactNode;
20
+ }>;
21
+ /**
22
+ * GridLayout distributes content into a grid of columns and rows, where the number of
23
+ * columns automatically adapts to the available space — without `@media` queries.
24
+ *
25
+ * The grid uses `repeat(auto-fit, minmax(min(var(--min-width), 100%), 1fr))`, so the
26
+ * browser itself calculates the number of columns based on `minWidth`, and never lets a
27
+ * cell become so wide that content is pushed off the screen.
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * <GridLayout minWidth="18rem" space="md">
32
+ * <Card>Card 1</Card>
33
+ * <Card>Card 2</Card>
34
+ * <Card>Card 3</Card>
35
+ * </GridLayout>
36
+ * ```
37
+ */
38
+ export declare const GridLayout: <TComponent extends OtherGenericComponent & ElementType = "div">(gridLayoutProps: GridLayoutProps<TComponent>) => import("react/jsx-runtime").JSX.Element;
39
+ //# sourceMappingURL=grid-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-layout.d.ts","sourceRoot":"","sources":["../../../../components/layout-components/grid-layouts/grid-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,eAAe,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAiCjD,MAAM,MAAM,eAAe,CACzB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,IAC5D,yBAAyB,CAC3B,UAAU,EACV;IACE;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,GACrB,UAAU,SAAS,qBAAqB,GAAG,WAAW,GAAG,KAAK,EAE9D,iBAAiB,eAAe,CAAC,UAAU,CAAC,4CA8B7C,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { appendClassName as l } from "../../../utils/append-class-name.js";
3
+ import c from "./grid-layout.module.css.js";
4
+ const p = {
5
+ none: "0",
6
+ xs: "var(--ds-size-1)",
7
+ sm: "var(--ds-size-2)",
8
+ md: "var(--ds-size-4)",
9
+ lg: "var(--ds-size-6)"
10
+ }, u = (s) => s ? p[s] : void 0, y = (s) => Number.isInteger(s) && s >= 1 && s <= 30, v = (s) => {
11
+ if (s !== void 0)
12
+ return typeof s == "number" ? y(s) ? `var(--ds-size-${s})` : `${s}px` : s;
13
+ }, G = (s) => {
14
+ const {
15
+ as: e = "div",
16
+ className: r = "",
17
+ minWidth: o,
18
+ space: i,
19
+ children: t,
20
+ ...n
21
+ } = s, a = l(
22
+ c["smudi-grid-layout"],
23
+ r
24
+ ), d = {
25
+ "--min-width": v(o),
26
+ "--flow-space": u(i)
27
+ };
28
+ return /* @__PURE__ */ m(
29
+ e,
30
+ {
31
+ className: a,
32
+ style: d,
33
+ ...n,
34
+ children: t
35
+ }
36
+ );
37
+ };
38
+ export {
39
+ G as GridLayout
40
+ };
@@ -0,0 +1,6 @@
1
+ const s = {
2
+ "smudi-grid-layout": "_smudi-grid-layout_jm30p_1"
3
+ };
4
+ export {
5
+ s as default
6
+ };
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,46 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { appendClassName as S } from "../../../utils/append-class-name.js";
3
+ import v from "./stack-layout.module.css.js";
4
+ const p = {
5
+ none: "0",
6
+ xs: "var(--ds-size-1)",
7
+ sm: "var(--ds-size-2)",
8
+ md: "var(--ds-size-4)",
9
+ lg: "var(--ds-size-6)"
10
+ }, u = (s) => s ? p[s] : void 0, y = {
11
+ start: "flex-start",
12
+ center: "center",
13
+ end: "flex-end",
14
+ stretch: "stretch"
15
+ }, _ = (s) => s ? y[s] : void 0, k = (s) => {
16
+ const {
17
+ as: e = "div",
18
+ className: t = "",
19
+ space: a,
20
+ align: r,
21
+ children: o,
22
+ recursive: n,
23
+ style: i,
24
+ ...c
25
+ } = s, l = S(
26
+ v["smudi-stack"],
27
+ t
28
+ ), m = {
29
+ "--smudi-stack-space": u(a),
30
+ "--smudi-stack-align": _(r),
31
+ ...i
32
+ };
33
+ return /* @__PURE__ */ d(
34
+ e,
35
+ {
36
+ className: l,
37
+ style: m,
38
+ "data-recursive": n || void 0,
39
+ ...c,
40
+ children: o
41
+ }
42
+ );
43
+ };
44
+ export {
45
+ k as StackLayout
46
+ };
@@ -0,0 +1,6 @@
1
+ const s = {
2
+ "smudi-stack": "_smudi-stack_11s8j_1"
3
+ };
4
+ export {
5
+ s as default
6
+ };
@@ -0,0 +1,34 @@
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
@@ -0,0 +1 @@
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"}