@manakind/ui-core 0.19.0 → 0.21.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 (172) hide show
  1. package/README.md +34 -5
  2. package/dist/breadcrumb/breadcrumb.css +47 -0
  3. package/dist/breadcrumb/breadcrumb.css.d.ts +2 -0
  4. package/dist/breadcrumb/breadcrumb.d.ts +43 -0
  5. package/dist/breadcrumb/breadcrumb.d.ts.map +1 -0
  6. package/dist/breadcrumb/breadcrumb.js +21 -0
  7. package/dist/breadcrumb/breadcrumb.js.map +1 -0
  8. package/dist/breadcrumb/index.d.ts +3 -0
  9. package/dist/breadcrumb/index.d.ts.map +1 -0
  10. package/dist/breadcrumb/index.js +2 -0
  11. package/dist/breadcrumb/index.js.map +1 -0
  12. package/dist/centered-layout/centered-layout.css +36 -0
  13. package/dist/centered-layout/centered-layout.css.d.ts +2 -0
  14. package/dist/centered-layout/centered-layout.d.ts +18 -0
  15. package/dist/centered-layout/centered-layout.d.ts.map +1 -0
  16. package/dist/centered-layout/centered-layout.js +16 -0
  17. package/dist/centered-layout/centered-layout.js.map +1 -0
  18. package/dist/centered-layout/index.d.ts +3 -0
  19. package/dist/centered-layout/index.d.ts.map +1 -0
  20. package/dist/centered-layout/index.js +2 -0
  21. package/dist/centered-layout/index.js.map +1 -0
  22. package/dist/combobox/combobox.css +17 -0
  23. package/dist/combobox/combobox.d.ts +7 -0
  24. package/dist/combobox/combobox.d.ts.map +1 -1
  25. package/dist/combobox/combobox.js +25 -3
  26. package/dist/combobox/combobox.js.map +1 -1
  27. package/dist/date-input/date-input.d.ts +5 -3
  28. package/dist/date-input/date-input.d.ts.map +1 -1
  29. package/dist/date-input/date-input.js +13 -2
  30. package/dist/date-input/date-input.js.map +1 -1
  31. package/dist/divider/divider.css +18 -0
  32. package/dist/divider/divider.css.d.ts +2 -0
  33. package/dist/divider/divider.d.ts +26 -0
  34. package/dist/divider/divider.d.ts.map +1 -0
  35. package/dist/divider/divider.js +15 -0
  36. package/dist/divider/divider.js.map +1 -0
  37. package/dist/divider/index.d.ts +3 -0
  38. package/dist/divider/index.d.ts.map +1 -0
  39. package/dist/divider/index.js +2 -0
  40. package/dist/divider/index.js.map +1 -0
  41. package/dist/empty-state/empty-state.css +37 -0
  42. package/dist/empty-state/empty-state.css.d.ts +2 -0
  43. package/dist/empty-state/empty-state.d.ts +26 -0
  44. package/dist/empty-state/empty-state.d.ts.map +1 -0
  45. package/dist/empty-state/empty-state.js +16 -0
  46. package/dist/empty-state/empty-state.js.map +1 -0
  47. package/dist/empty-state/index.d.ts +3 -0
  48. package/dist/empty-state/index.d.ts.map +1 -0
  49. package/dist/empty-state/index.js +2 -0
  50. package/dist/empty-state/index.js.map +1 -0
  51. package/dist/form-layout/form-layout.css +18 -0
  52. package/dist/form-layout/form-layout.css.d.ts +2 -0
  53. package/dist/form-layout/form-layout.d.ts +21 -0
  54. package/dist/form-layout/form-layout.d.ts.map +1 -0
  55. package/dist/form-layout/form-layout.js +24 -0
  56. package/dist/form-layout/form-layout.js.map +1 -0
  57. package/dist/form-layout/index.d.ts +3 -0
  58. package/dist/form-layout/index.d.ts.map +1 -0
  59. package/dist/form-layout/index.js +2 -0
  60. package/dist/form-layout/index.js.map +1 -0
  61. package/dist/index.d.ts +15 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +14 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/layout/index.d.ts +3 -0
  66. package/dist/layout/index.d.ts.map +1 -0
  67. package/dist/layout/index.js +2 -0
  68. package/dist/layout/index.js.map +1 -0
  69. package/dist/layout/layout.css +185 -0
  70. package/dist/layout/layout.css.d.ts +2 -0
  71. package/dist/layout/layout.d.ts +105 -0
  72. package/dist/layout/layout.d.ts.map +1 -0
  73. package/dist/layout/layout.js +77 -0
  74. package/dist/layout/layout.js.map +1 -0
  75. package/dist/link-component.d.ts +12 -0
  76. package/dist/link-component.d.ts.map +1 -0
  77. package/dist/link-component.js +2 -0
  78. package/dist/link-component.js.map +1 -0
  79. package/dist/menu/action-menu.d.ts +2 -4
  80. package/dist/menu/action-menu.d.ts.map +1 -1
  81. package/dist/menu/action-menu.js.map +1 -1
  82. package/dist/menu/menu.css +1 -1
  83. package/dist/menu/menu.d.ts +6 -0
  84. package/dist/menu/menu.d.ts.map +1 -1
  85. package/dist/menu/menu.js +1 -1
  86. package/dist/menu/menu.js.map +1 -1
  87. package/dist/page-layout/index.d.ts +3 -0
  88. package/dist/page-layout/index.d.ts.map +1 -0
  89. package/dist/page-layout/index.js +2 -0
  90. package/dist/page-layout/index.js.map +1 -0
  91. package/dist/page-layout/page-layout.css +81 -0
  92. package/dist/page-layout/page-layout.css.d.ts +2 -0
  93. package/dist/page-layout/page-layout.d.ts +43 -0
  94. package/dist/page-layout/page-layout.d.ts.map +1 -0
  95. package/dist/page-layout/page-layout.js +42 -0
  96. package/dist/page-layout/page-layout.js.map +1 -0
  97. package/dist/section/index.d.ts +3 -0
  98. package/dist/section/index.d.ts.map +1 -0
  99. package/dist/section/index.js +2 -0
  100. package/dist/section/index.js.map +1 -0
  101. package/dist/section/section.css +31 -0
  102. package/dist/section/section.css.d.ts +2 -0
  103. package/dist/section/section.d.ts +31 -0
  104. package/dist/section/section.d.ts.map +1 -0
  105. package/dist/section/section.js +19 -0
  106. package/dist/section/section.js.map +1 -0
  107. package/dist/segment-group/segment-group.css +31 -0
  108. package/dist/segment-group/segment-group.d.ts +14 -1
  109. package/dist/segment-group/segment-group.d.ts.map +1 -1
  110. package/dist/segment-group/segment-group.js +2 -2
  111. package/dist/segment-group/segment-group.js.map +1 -1
  112. package/dist/show/index.d.ts +3 -0
  113. package/dist/show/index.d.ts.map +1 -0
  114. package/dist/show/index.js +2 -0
  115. package/dist/show/index.js.map +1 -0
  116. package/dist/show/show.css +67 -0
  117. package/dist/show/show.css.d.ts +2 -0
  118. package/dist/show/show.d.ts +36 -0
  119. package/dist/show/show.d.ts.map +1 -0
  120. package/dist/show/show.js +23 -0
  121. package/dist/show/show.js.map +1 -0
  122. package/dist/skeleton/index.d.ts +3 -0
  123. package/dist/skeleton/index.d.ts.map +1 -0
  124. package/dist/skeleton/index.js +2 -0
  125. package/dist/skeleton/index.js.map +1 -0
  126. package/dist/skeleton/skeleton.css +36 -0
  127. package/dist/skeleton/skeleton.css.d.ts +2 -0
  128. package/dist/skeleton/skeleton.d.ts +26 -0
  129. package/dist/skeleton/skeleton.d.ts.map +1 -0
  130. package/dist/skeleton/skeleton.js +21 -0
  131. package/dist/skeleton/skeleton.js.map +1 -0
  132. package/dist/split-layout/index.d.ts +3 -0
  133. package/dist/split-layout/index.d.ts.map +1 -0
  134. package/dist/split-layout/index.js +2 -0
  135. package/dist/split-layout/index.js.map +1 -0
  136. package/dist/split-layout/split-layout.css +71 -0
  137. package/dist/split-layout/split-layout.css.d.ts +2 -0
  138. package/dist/split-layout/split-layout.d.ts +32 -0
  139. package/dist/split-layout/split-layout.d.ts.map +1 -0
  140. package/dist/split-layout/split-layout.js +25 -0
  141. package/dist/split-layout/split-layout.js.map +1 -0
  142. package/dist/text/index.d.ts +3 -0
  143. package/dist/text/index.d.ts.map +1 -0
  144. package/dist/text/index.js +2 -0
  145. package/dist/text/index.js.map +1 -0
  146. package/dist/text/text.css +128 -0
  147. package/dist/text/text.css.d.ts +2 -0
  148. package/dist/text/text.d.ts +78 -0
  149. package/dist/text/text.d.ts.map +1 -0
  150. package/dist/text/text.js +56 -0
  151. package/dist/text/text.js.map +1 -0
  152. package/dist/visually-hidden/index.d.ts +3 -0
  153. package/dist/visually-hidden/index.d.ts.map +1 -0
  154. package/dist/visually-hidden/index.js +2 -0
  155. package/dist/visually-hidden/index.js.map +1 -0
  156. package/dist/visually-hidden/visually-hidden.css +19 -0
  157. package/dist/visually-hidden/visually-hidden.css.d.ts +2 -0
  158. package/dist/visually-hidden/visually-hidden.d.ts +15 -0
  159. package/dist/visually-hidden/visually-hidden.d.ts.map +1 -0
  160. package/dist/visually-hidden/visually-hidden.js +17 -0
  161. package/dist/visually-hidden/visually-hidden.js.map +1 -0
  162. package/dist/wizard-layout/index.d.ts +3 -0
  163. package/dist/wizard-layout/index.d.ts.map +1 -0
  164. package/dist/wizard-layout/index.js +2 -0
  165. package/dist/wizard-layout/index.js.map +1 -0
  166. package/dist/wizard-layout/wizard-layout.css +52 -0
  167. package/dist/wizard-layout/wizard-layout.css.d.ts +2 -0
  168. package/dist/wizard-layout/wizard-layout.d.ts +50 -0
  169. package/dist/wizard-layout/wizard-layout.d.ts.map +1 -0
  170. package/dist/wizard-layout/wizard-layout.js +38 -0
  171. package/dist/wizard-layout/wizard-layout.js.map +1 -0
  172. package/package.json +114 -2
@@ -0,0 +1,37 @@
1
+ @layer components {
2
+ .ds-empty-state {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: center;
7
+ gap: var(--ds-empty-state-gap);
8
+ padding-block: var(--ds-empty-state-padding-block);
9
+ text-align: center;
10
+ color: var(--ds-empty-state-text);
11
+ overflow-wrap: anywhere;
12
+
13
+ & .ds-empty-state__title {
14
+ margin: 0;
15
+ font-family: inherit;
16
+ font-size: var(--ds-text-size-lg-font-size);
17
+ line-height: var(--ds-text-size-lg-line-height);
18
+ font-weight: var(--ds-text-weight-medium);
19
+ }
20
+
21
+ & .ds-empty-state__description {
22
+ margin: 0;
23
+ max-width: var(--ds-layout-content-sm);
24
+ font-family: inherit;
25
+ font-size: var(--ds-text-size-md-font-size);
26
+ line-height: var(--ds-text-size-md-line-height);
27
+ color: var(--ds-empty-state-text-muted);
28
+ }
29
+
30
+ & .ds-empty-state__actions {
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ justify-content: center;
34
+ gap: var(--ds-layout-gap);
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import './empty-state.css';
3
+ import { type IconSource } from '../icon/icon';
4
+ export interface EmptyStateProps extends Omit<ComponentProps<'div'>, 'title'> {
5
+ /** The one line that says what is missing: "No goals yet". */
6
+ title: ReactNode;
7
+ /** What to do about it, or why it is empty. Muted, under the title. */
8
+ description?: ReactNode;
9
+ /**
10
+ * A glyph above the title, decorative: the title says the same thing. An
11
+ * `IconSource`, since `ui-core` ships no icons of its own.
12
+ */
13
+ icon?: IconSource;
14
+ /** The way out, typically one button, rendered under the text. */
15
+ children?: ReactNode;
16
+ }
17
+ /**
18
+ * The centred column a region shows when it has nothing to list.
19
+ *
20
+ * A title, an optional description and an optional action, centred in a
21
+ * block of inset so the emptiness reads as intended rather than as a failed
22
+ * render. Styled by the `--ds-empty-state-*` keys; the type comes from the
23
+ * text contract.
24
+ */
25
+ export declare function EmptyState({ title, description, icon, className, children, ...props }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/empty-state/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAC3E,8DAA8D;IAC9D,KAAK,EAAE,SAAS,CAAC;IACjB,uEAAuE;IACvE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,2CASjB"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import './empty-state.css';
3
+ import { cx } from '../cx';
4
+ import { Icon } from '../icon/icon';
5
+ /**
6
+ * The centred column a region shows when it has nothing to list.
7
+ *
8
+ * A title, an optional description and an optional action, centred in a
9
+ * block of inset so the emptiness reads as intended rather than as a failed
10
+ * render. Styled by the `--ds-empty-state-*` keys; the type comes from the
11
+ * text contract.
12
+ */
13
+ export function EmptyState({ title, description, icon, className, children, ...props }) {
14
+ return (_jsxs("div", { className: cx('ds-empty-state', className), ...props, children: [icon ? _jsx(Icon, { source: icon, size: "lg", tone: "muted", decorative: true }) : null, _jsx("p", { className: "ds-empty-state__title", children: title }), description ? _jsx("p", { className: "ds-empty-state__description", children: description }) : null, children ? _jsx("div", { className: "ds-empty-state__actions", children: children }) : null] }));
15
+ }
16
+ //# sourceMappingURL=empty-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.js","sourceRoot":"","sources":["../../src/empty-state/empty-state.tsx"],"names":[],"mappings":";AACA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAgBrD;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACQ;IAChB,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,KAAM,KAAK,aACvD,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,UAAU,SAAG,CAAC,CAAC,CAAC,IAAI,EACvE,YAAG,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAK,EAC/C,WAAW,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,6BAA6B,YAAE,WAAW,GAAK,CAAC,CAAC,CAAC,IAAI,EACjF,QAAQ,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,yBAAyB,YAAE,QAAQ,GAAO,CAAC,CAAC,CAAC,IAAI,IACxE,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { EmptyStateProps } from './empty-state';
2
+ export { EmptyState } from './empty-state';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/empty-state/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EmptyState } from './empty-state';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/empty-state/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,18 @@
1
+ @layer components {
2
+ .ds-form-layout {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--ds-form-layout-gap);
6
+ min-width: 0;
7
+ overflow-wrap: anywhere;
8
+ }
9
+
10
+ .ds-form-layout__actions {
11
+ display: flex;
12
+ flex-wrap: wrap;
13
+ align-items: center;
14
+ justify-content: flex-end;
15
+ gap: var(--ds-form-layout-actions-gap);
16
+ padding-block-start: var(--ds-form-layout-actions-padding-block);
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,21 @@
1
+ import { ark } from '@ark-ui/react/factory';
2
+ import type { ComponentProps } from 'react';
3
+ import './form-layout.css';
4
+ export type FormLayoutProps = ComponentProps<typeof ark.form>;
5
+ /**
6
+ * The template a form composes: its fields in a column at the form's own
7
+ * rhythm, then its {@link FormActions}.
8
+ *
9
+ * Renders a `form`, so `onSubmit`, `noValidate` and the rest land where they
10
+ * belong; pass `asChild` when a form library renders the element. The
11
+ * rhythm between fields is `--ds-form-layout-gap`, wider than a stack's so
12
+ * each field's label, control and message read as one group.
13
+ */
14
+ export declare function FormLayout({ className, children, ...props }: FormLayoutProps): import("react/jsx-runtime").JSX.Element;
15
+ export type FormActionsProps = ComponentProps<typeof ark.div>;
16
+ /**
17
+ * The form's buttons: a row aligned to the end, with the primary action last
18
+ * in reading order. Set apart from the fields by its own block padding.
19
+ */
20
+ export declare function FormActions({ className, children, ...props }: FormActionsProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=form-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-layout.d.ts","sourceRoot":"","sources":["../../src/form-layout/form-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9D;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAM9E"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ark } from '@ark-ui/react/factory';
3
+ import './form-layout.css';
4
+ import { cx } from '../cx';
5
+ /**
6
+ * The template a form composes: its fields in a column at the form's own
7
+ * rhythm, then its {@link FormActions}.
8
+ *
9
+ * Renders a `form`, so `onSubmit`, `noValidate` and the rest land where they
10
+ * belong; pass `asChild` when a form library renders the element. The
11
+ * rhythm between fields is `--ds-form-layout-gap`, wider than a stack's so
12
+ * each field's label, control and message read as one group.
13
+ */
14
+ export function FormLayout({ className, children, ...props }) {
15
+ return (_jsx(ark.form, { className: cx('ds-form-layout', className), ...props, children: children }));
16
+ }
17
+ /**
18
+ * The form's buttons: a row aligned to the end, with the primary action last
19
+ * in reading order. Set apart from the fields by its own block padding.
20
+ */
21
+ export function FormActions({ className, children, ...props }) {
22
+ return (_jsx(ark.div, { className: cx('ds-form-layout__actions', className), ...props, children: children }));
23
+ }
24
+ //# sourceMappingURL=form-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-layout.js","sourceRoot":"","sources":["../../src/form-layout/form-layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAC3E,OAAO,CACL,KAAC,GAAG,CAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC5D,QAAQ,GACA,CACZ,CAAC;AACJ,CAAC;AAID;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB;IAC7E,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,KAAM,KAAK,YACpE,QAAQ,GACD,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { FormActionsProps, FormLayoutProps } from './form-layout';
2
+ export { FormActions, FormLayout } from './form-layout';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-layout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { FormActions, FormLayout } from './form-layout';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/form-layout/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,24 +1,39 @@
1
1
  export * from './alert';
2
2
  export * from './avatar';
3
3
  export * from './badge';
4
+ export * from './breadcrumb';
4
5
  export * from './button';
5
6
  export * from './calendar';
6
7
  export * from './card';
8
+ export * from './centered-layout';
7
9
  export * from './checkbox';
8
10
  export * from './combobox';
9
11
  export { cx } from './cx';
10
12
  export * from './date-input';
11
13
  export * from './dialog';
14
+ export * from './divider';
15
+ export * from './empty-state';
12
16
  export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, } from './fallback-glyphs';
13
17
  export * from './field';
18
+ export * from './form-layout';
14
19
  export * from './icon';
15
20
  export * from './illustration';
21
+ export * from './layout';
22
+ export type { LinkComponentProps } from './link-component';
16
23
  export * from './menu';
24
+ export * from './page-layout';
17
25
  export * from './popover';
18
26
  export * from './progress';
19
27
  export * from './reorder-control';
28
+ export * from './section';
20
29
  export * from './segment-group';
21
30
  export * from './select';
31
+ export * from './show';
32
+ export * from './skeleton';
33
+ export * from './split-layout';
22
34
  export * from './switch';
23
35
  export * from './tabs';
36
+ export * from './text';
37
+ export * from './visually-hidden';
38
+ export * from './wizard-layout';
24
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,WAAW,IAAI,mBAAmB,EAClC,YAAY,IAAI,oBAAoB,EACpC,KAAK,IAAI,aAAa,GACvB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,WAAW,IAAI,mBAAmB,EAClC,YAAY,IAAI,oBAAoB,EACpC,KAAK,IAAI,aAAa,GACvB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,24 +1,38 @@
1
1
  export * from './alert';
2
2
  export * from './avatar';
3
3
  export * from './badge';
4
+ export * from './breadcrumb';
4
5
  export * from './button';
5
6
  export * from './calendar';
6
7
  export * from './card';
8
+ export * from './centered-layout';
7
9
  export * from './checkbox';
8
10
  export * from './combobox';
9
11
  export { cx } from './cx';
10
12
  export * from './date-input';
11
13
  export * from './dialog';
14
+ export * from './divider';
15
+ export * from './empty-state';
12
16
  export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, } from './fallback-glyphs';
13
17
  export * from './field';
18
+ export * from './form-layout';
14
19
  export * from './icon';
15
20
  export * from './illustration';
21
+ export * from './layout';
16
22
  export * from './menu';
23
+ export * from './page-layout';
17
24
  export * from './popover';
18
25
  export * from './progress';
19
26
  export * from './reorder-control';
27
+ export * from './section';
20
28
  export * from './segment-group';
21
29
  export * from './select';
30
+ export * from './show';
31
+ export * from './skeleton';
32
+ export * from './split-layout';
22
33
  export * from './switch';
23
34
  export * from './tabs';
35
+ export * from './text';
36
+ export * from './visually-hidden';
37
+ export * from './wizard-layout';
24
38
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,WAAW,IAAI,mBAAmB,EAClC,YAAY,IAAI,oBAAoB,EACpC,KAAK,IAAI,aAAa,GACvB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,WAAW,IAAI,mBAAmB,EAClC,YAAY,IAAI,oBAAoB,EACpC,KAAK,IAAI,aAAa,GACvB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { Breakpoint, ContainerProps, ContentWidth, GridColumns, GridProps, InlineProps, LayoutAlign, LayoutGap, LayoutJustify, LayoutPadding, Responsive, StackProps, } from './layout';
2
+ export { Container, Grid, Inline, Stack } from './layout';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Container, Grid, Inline, Stack } from './layout';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,185 @@
1
+ @layer components {
2
+ /*
3
+ * The modifiers every layout primitive shares. `min-width: 0` lets a flex
4
+ * or grid child shrink below its content's width, so a long word inside
5
+ * breaks instead of pushing the row past its box.
6
+ */
7
+ .ds-layout {
8
+ min-width: 0;
9
+ gap: var(--ds-layout-gap);
10
+ overflow-wrap: anywhere;
11
+
12
+ &.ds-layout--gap-none {
13
+ gap: 0;
14
+ }
15
+
16
+ &.ds-layout--gap-tight {
17
+ gap: var(--ds-layout-gap-tight);
18
+ }
19
+
20
+ &.ds-layout--gap-relaxed {
21
+ gap: var(--ds-layout-gap-relaxed);
22
+ }
23
+
24
+ &.ds-layout--gap-loose {
25
+ gap: var(--ds-layout-gap-loose);
26
+ }
27
+
28
+ &.ds-layout--padding-tight {
29
+ padding: var(--ds-layout-padding-tight);
30
+ }
31
+
32
+ &.ds-layout--padding-normal {
33
+ padding: var(--ds-layout-padding);
34
+ }
35
+
36
+ &.ds-layout--padding-relaxed {
37
+ padding: var(--ds-layout-padding-relaxed);
38
+ }
39
+
40
+ &.ds-layout--align-start {
41
+ align-items: flex-start;
42
+ }
43
+
44
+ &.ds-layout--align-center {
45
+ align-items: center;
46
+ }
47
+
48
+ &.ds-layout--align-end {
49
+ align-items: flex-end;
50
+ }
51
+
52
+ &.ds-layout--align-stretch {
53
+ align-items: stretch;
54
+ }
55
+
56
+ &.ds-layout--align-baseline {
57
+ align-items: baseline;
58
+ }
59
+
60
+ &.ds-layout--justify-start {
61
+ justify-content: flex-start;
62
+ }
63
+
64
+ &.ds-layout--justify-center {
65
+ justify-content: center;
66
+ }
67
+
68
+ &.ds-layout--justify-end {
69
+ justify-content: flex-end;
70
+ }
71
+
72
+ &.ds-layout--justify-between {
73
+ justify-content: space-between;
74
+ }
75
+ }
76
+
77
+ .ds-stack {
78
+ display: flex;
79
+ flex-direction: column;
80
+ }
81
+
82
+ .ds-inline {
83
+ display: flex;
84
+ flex-direction: row;
85
+ flex-wrap: wrap;
86
+ align-items: center;
87
+
88
+ &.ds-inline--nowrap {
89
+ flex-wrap: nowrap;
90
+ }
91
+ }
92
+
93
+ /*
94
+ * Self-filling: as many columns of at least the step's width as fit. The
95
+ * `min()` keeps a column from being wider than the grid itself on a
96
+ * viewport narrower than the step, so the grid never overflows a phone.
97
+ */
98
+ .ds-grid {
99
+ display: grid;
100
+
101
+ &.ds-grid--fill-sm {
102
+ grid-template-columns: repeat(auto-fill, minmax(min(var(--ds-layout-content-sm), 100%), 1fr));
103
+ }
104
+
105
+ &.ds-grid--fill-md {
106
+ grid-template-columns: repeat(auto-fill, minmax(min(var(--ds-layout-content-md), 100%), 1fr));
107
+ }
108
+
109
+ &.ds-grid--fill-lg {
110
+ grid-template-columns: repeat(auto-fill, minmax(min(var(--ds-layout-content-lg), 100%), 1fr));
111
+ }
112
+ }
113
+
114
+ /*
115
+ * Fixed columns. The component writes one private property per breakpoint,
116
+ * all five, each already carried forward from the narrower steps, so each
117
+ * media query reads its own step and nothing is inherited from a grid
118
+ * further out. The breakpoints are the viewport tokens, written as
119
+ * literals because `@media` cannot read a custom property
120
+ * (`check:breakpoints`).
121
+ */
122
+ .ds-grid--columns {
123
+ --_grid-columns: var(--_grid-columns-base);
124
+
125
+ grid-template-columns: repeat(var(--_grid-columns), minmax(0, 1fr));
126
+ }
127
+
128
+ @media (width >= 40rem) {
129
+ .ds-grid--columns {
130
+ --_grid-columns: var(--_grid-columns-sm);
131
+ }
132
+ }
133
+
134
+ @media (width >= 48rem) {
135
+ .ds-grid--columns {
136
+ --_grid-columns: var(--_grid-columns-md);
137
+ }
138
+ }
139
+
140
+ @media (width >= 64rem) {
141
+ .ds-grid--columns {
142
+ --_grid-columns: var(--_grid-columns-lg);
143
+ }
144
+ }
145
+
146
+ @media (width >= 80rem) {
147
+ .ds-grid--columns {
148
+ --_grid-columns: var(--_grid-columns-xl);
149
+ }
150
+ }
151
+
152
+ .ds-container {
153
+ box-sizing: border-box;
154
+ width: 100%;
155
+ margin-inline: auto;
156
+
157
+ &.ds-container--sm {
158
+ max-width: var(--ds-layout-content-sm);
159
+ }
160
+
161
+ &.ds-container--md {
162
+ max-width: var(--ds-layout-content-md);
163
+ }
164
+
165
+ &.ds-container--lg {
166
+ max-width: var(--ds-layout-content-lg);
167
+ }
168
+
169
+ &.ds-container--xl {
170
+ max-width: var(--ds-layout-content-xl);
171
+ }
172
+
173
+ &.ds-container--padding-tight {
174
+ padding-inline: var(--ds-layout-padding-tight);
175
+ }
176
+
177
+ &.ds-container--padding-normal {
178
+ padding-inline: var(--ds-layout-padding);
179
+ }
180
+
181
+ &.ds-container--padding-relaxed {
182
+ padding-inline: var(--ds-layout-padding-relaxed);
183
+ }
184
+ }
185
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,105 @@
1
+ import { ark } from '@ark-ui/react/factory';
2
+ import type { ComponentProps } from 'react';
3
+ import './layout.css';
4
+ /**
5
+ * The distance between the children of a layout primitive. The words are the
6
+ * semantic `space.gap-*` steps; `none` removes the gap.
7
+ */
8
+ export type LayoutGap = 'none' | 'tight' | 'normal' | 'relaxed' | 'loose';
9
+ /** The inset of a layout primitive from its edge: the semantic `space.padding-*` steps. */
10
+ export type LayoutPadding = 'none' | 'tight' | 'normal' | 'relaxed';
11
+ /** Cross-axis placement of the children. */
12
+ export type LayoutAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
13
+ /** Main-axis distribution of the children. */
14
+ export type LayoutJustify = 'start' | 'center' | 'end' | 'between';
15
+ /** Where a block of content stops growing: the semantic `size.content.*` steps. */
16
+ export type ContentWidth = 'sm' | 'md' | 'lg' | 'xl';
17
+ /** Where a layout changes shape: the semantic `size.viewport.*` steps. */
18
+ export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
19
+ /** A value per breakpoint, from the narrowest viewport (`base`) up. */
20
+ export type Responsive<T> = Partial<Record<'base' | Breakpoint, T>>;
21
+ interface LayoutModifiers {
22
+ /** Space between the children. Defaults to `normal`. */
23
+ gap?: LayoutGap;
24
+ /** Inset from the primitive's own edge. Defaults to `none`. */
25
+ padding?: LayoutPadding;
26
+ /** Cross-axis placement of the children. */
27
+ align?: LayoutAlign;
28
+ /** Main-axis distribution of the children. */
29
+ justify?: LayoutJustify;
30
+ }
31
+ export interface StackProps extends ComponentProps<typeof ark.div>, LayoutModifiers {
32
+ }
33
+ /**
34
+ * A column of children with one gap between them.
35
+ *
36
+ * The workhorse of page composition: a form's fields, a card's regions, a
37
+ * list of sections. Renders a `div`; pass `asChild` to lay out your own
38
+ * element (`<Stack asChild><ul>…</ul></Stack>`). Every distance is a semantic
39
+ * step, so a product never writes a number.
40
+ */
41
+ export declare function Stack({ gap, padding, align, justify, className, children, ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
42
+ export interface InlineProps extends ComponentProps<typeof ark.div>, LayoutModifiers {
43
+ /**
44
+ * Whether the children wrap onto new lines when the row runs out of room.
45
+ * Defaults to `true`; a row that must stay on one line (a toolbar in a
46
+ * sideways scroller) passes `false`.
47
+ */
48
+ wrap?: boolean;
49
+ }
50
+ /**
51
+ * A row of children with one gap between them, centred on the cross axis.
52
+ *
53
+ * A title beside its actions, a group of badges, a footer of buttons. Wraps by
54
+ * default, so a long label takes a line of its own instead of squeezing its
55
+ * neighbours. Renders a `div`; pass `asChild` to lay out your own element.
56
+ */
57
+ export declare function Inline({ gap, padding, align, justify, wrap, className, children, ...props }: InlineProps): import("react/jsx-runtime").JSX.Element;
58
+ /** How many columns a grid has; `Responsive` for a count per breakpoint. */
59
+ export type GridColumns = 1 | 2 | 3 | 4 | 5 | 6;
60
+ export interface GridProps extends ComponentProps<typeof ark.div>, Omit<LayoutModifiers, 'justify'> {
61
+ /**
62
+ * A fixed number of columns, or a number per breakpoint
63
+ * (`{ base: 1, md: 2, lg: 3 }`). Without it the grid fills itself with as
64
+ * many `minColumnWidth`-wide columns as fit.
65
+ */
66
+ columns?: GridColumns | Responsive<GridColumns>;
67
+ /**
68
+ * The narrowest a column may be when the grid fills itself: a content
69
+ * width step. Defaults to `sm`. Ignored when `columns` is set.
70
+ */
71
+ minColumnWidth?: Exclude<ContentWidth, 'xl'>;
72
+ }
73
+ /**
74
+ * Children in equal columns.
75
+ *
76
+ * Two modes. Without `columns` the grid is self-filling: as many columns of
77
+ * at least `minColumnWidth` as fit, so a row of cards reflows by itself.
78
+ * With `columns` the count is fixed, or fixed per breakpoint. Rows take the
79
+ * height of their tallest child; pass `align="start"` to stop short cards
80
+ * stretching. Renders a `div`; pass `asChild` to lay out your own element.
81
+ */
82
+ export declare function Grid({ columns, minColumnWidth, gap, padding, align, className, style, children, ...props }: GridProps): import("react/jsx-runtime").JSX.Element;
83
+ export interface ContainerProps extends ComponentProps<typeof ark.div> {
84
+ /**
85
+ * Where the content stops growing: a content width step. Defaults to `xl`,
86
+ * the width of a page. A dialog or sign-in card is `md`; a form or a
87
+ * reading column is `lg`.
88
+ */
89
+ size?: ContentWidth;
90
+ /**
91
+ * Inset from the viewport's edge, applied inline only, so a container never
92
+ * adds vertical rhythm of its own. Defaults to `none`.
93
+ */
94
+ padding?: LayoutPadding;
95
+ }
96
+ /**
97
+ * A centred column no wider than a content width step.
98
+ *
99
+ * Wraps a page, a form or a reading column so it stops growing at the same
100
+ * width in every product. Renders a `div`; pass `asChild` to make your own
101
+ * element the container (`<Container asChild><main>…</main></Container>`).
102
+ */
103
+ export declare function Container({ size, padding, className, children, ...props }: ContainerProps): import("react/jsx-runtime").JSX.Element;
104
+ export {};
105
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/layout/layout.tsx"],"names":[],"mappings":"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"}