@gridui/grid 2.3.5 → 3.0.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 (50) hide show
  1. package/README.md +3 -1
  2. package/dist/container/container.d.ts +2 -2
  3. package/dist/container/style.d.ts +1 -1
  4. package/dist/frame-boundary/boundary-options.d.ts +12 -0
  5. package/dist/frame-boundary/frame-boundary.d.ts +2 -5
  6. package/dist/frame-footer/frame-footer.d.ts +2 -7
  7. package/dist/frame-rail-group/frame-rail-group.d.ts +4 -6
  8. package/dist/frame-region/frame-region.d.ts +3 -3
  9. package/dist/frame-region-row/frame-region-row.d.ts +3 -3
  10. package/dist/frame-section/frame-section.d.ts +2 -7
  11. package/dist/grid/grid.d.ts +1 -1
  12. package/dist/grid/style.d.ts +2 -2
  13. package/dist/grid-item/grid-item.d.ts +2 -3
  14. package/dist/index.d.ts +2 -1
  15. package/dist/index.js +54 -37
  16. package/dist/index.js.map +2 -2
  17. package/dist/page-frame/page-frame.d.ts +4 -4
  18. package/dist/page-frame/style.d.ts +1 -1
  19. package/dist/shared/chrome.d.ts +1 -0
  20. package/dist/shared/decoration.d.ts +1 -1
  21. package/dist/shared/frame-rail-options.d.ts +12 -0
  22. package/dist/shared/frame-surface-options.d.ts +13 -0
  23. package/dist/shared/types.d.ts +4 -0
  24. package/dist/styles.css +143 -63
  25. package/docs/README.md +8 -387
  26. package/docs/catalog.json +38 -3
  27. package/docs/guides/dashboard-frame.md +91 -0
  28. package/docs/guides/grid.md +126 -0
  29. package/docs/guides/page-frame.md +137 -0
  30. package/docs/guides/split.md +49 -0
  31. package/docs/reference/README.md +21 -0
  32. package/docs/reference/container.md +63 -0
  33. package/docs/reference/dashboard-frame.md +99 -0
  34. package/docs/reference/frame-boundary.md +61 -0
  35. package/docs/reference/frame-footer.md +96 -0
  36. package/docs/reference/frame-header.md +84 -0
  37. package/docs/reference/frame-rail-group.md +68 -0
  38. package/docs/reference/frame-rail.md +61 -0
  39. package/docs/reference/frame-region-row.md +67 -0
  40. package/docs/reference/frame-region.md +67 -0
  41. package/docs/reference/frame-section.md +97 -0
  42. package/docs/reference/frame-sections.md +55 -0
  43. package/docs/reference/frame-texture.md +23 -0
  44. package/docs/reference/grid-item.md +79 -0
  45. package/docs/reference/grid.md +91 -0
  46. package/docs/reference/page-frame.md +89 -0
  47. package/docs/reference/row.md +93 -0
  48. package/docs/reference/split.md +75 -0
  49. package/docs/reference/stack.md +75 -0
  50. package/package.json +2 -2
@@ -0,0 +1,84 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameHeader
3
+
4
+ Compose FrameHeader with SiteNavigation inside the same @gridui/grid component family.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameHeader } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-landing/site-navigation/stories/site-navigation.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### padding
59
+
60
+ ``Responsive<Space> | undefined`` · Optional
61
+
62
+ Default: ``{
63
+ base: 16,
64
+ sm: 24,
65
+ }``
66
+
67
+ ### wrap
68
+
69
+ ``boolean | undefined`` · Optional
70
+
71
+ Default: ``true``
72
+
73
+ ### gap
74
+
75
+ ``Space | undefined`` · Optional
76
+
77
+ Default: ``16``
78
+
79
+ ### justify
80
+
81
+ ``"start" | "between" | undefined`` · Optional
82
+
83
+ Default: ``"between"``
84
+
@@ -0,0 +1,68 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameRailGroup
3
+
4
+ Public FrameRailGroup component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameRailGroup } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
56
+ ### rail
57
+
58
+ ``ReactNode`` · Optional
59
+
60
+ ### railWidth
61
+
62
+ ``Responsive<Space> | undefined`` · Optional
63
+
64
+ Default: ``{
65
+ base: 0,
66
+ sm: 32,
67
+ }``
68
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameRail
3
+
4
+ Public FrameRail component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameRail } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
56
+ ### placement
57
+
58
+ ``"start" | "sticky-bottom" | undefined`` · Optional
59
+
60
+ Default: ``"start"``
61
+
@@ -0,0 +1,67 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameRegionRow
3
+
4
+ Public FrameRegionRow component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameRegionRow } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
56
+ ### asChild
57
+
58
+ ``boolean | undefined`` · Optional
59
+
60
+ Default: ``false``
61
+
62
+ ### contentInset
63
+
64
+ ``string | number | undefined`` · Optional
65
+
66
+ Default: ``0``
67
+
@@ -0,0 +1,67 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameRegion
3
+
4
+ Public FrameRegion component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameRegion } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
56
+ ### asChild
57
+
58
+ ``boolean | undefined`` · Optional
59
+
60
+ Default: ``false``
61
+
62
+ ### edge
63
+
64
+ ``"none" | "left" | "right" | "both" | undefined`` · Optional
65
+
66
+ Default: ``"none"``
67
+
@@ -0,0 +1,97 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameSection
3
+
4
+ Creates a section within the shared page frame and its boundary system. Use it to compose aligned page regions.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameSection } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/stories/frame-section.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### boundary
59
+
60
+ ``FrameBoundaryStyle | undefined`` · Optional
61
+
62
+ Default: ``"line"``
63
+
64
+ ### tone
65
+
66
+ ``FrameTone | undefined`` · Optional
67
+
68
+ Default: ``"neutral"``
69
+
70
+ ### decoration
71
+
72
+ ``FrameDecorationStyle | undefined`` · Optional
73
+
74
+ ### texture
75
+
76
+ ``FrameTextureStyle | undefined`` · Optional
77
+
78
+ Default: ``"none"``
79
+
80
+ ### edges
81
+
82
+ ``"none" | "frame" | undefined`` · Optional
83
+
84
+ Default: ``"frame"``
85
+
86
+ ### paddingInline
87
+
88
+ ``Responsive<Space> | undefined`` · Optional
89
+
90
+ Default: ``0``
91
+
92
+ ### paddingBlock
93
+
94
+ ``Responsive<Space> | undefined`` · Optional
95
+
96
+ Default: ``0``
97
+
@@ -0,0 +1,55 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameSections
3
+
4
+ Public FrameSections component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameSections } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
@@ -0,0 +1,23 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # FrameTexture
3
+
4
+ Public FrameTexture component from @gridui/grid. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { FrameTexture } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### texture
21
+
22
+ ``FrameTextureStyle`` · Required
23
+
@@ -0,0 +1,79 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # GridItem
3
+
4
+ Compose GridItem with RadioGroup inside the same @gridui/grid component family.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { GridItem } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/radio-group/stories/radio-group.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
62
+ Default: ``false``
63
+
64
+ ### span
65
+
66
+ ``Responsive<Span> | undefined`` · Optional
67
+
68
+ Default: ``1``
69
+
70
+ ### padding
71
+
72
+ ``Responsive<Space> | undefined`` · Optional
73
+
74
+ Default: ``0``
75
+
76
+ ### align
77
+
78
+ ``"center" | "end" | undefined`` · Optional
79
+
@@ -0,0 +1,91 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # Grid
3
+
4
+ Arranges content in responsive rows and columns with shared boundary rules. Use it when neighboring regions need aligned tracks and seams.
5
+
6
+ Import from ``@gridui/grid`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { Grid } from "@gridui/grid";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/grid/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/grid/stories/grid.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode | (ReactNode & ReactElement<unknown, string | JSXElementConstructor<any>>)`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### columns
59
+
60
+ ``"auto" | Responsive<GridColumns> | undefined`` · Optional
61
+
62
+ Default: ``1``
63
+
64
+ ### minItemWidth
65
+
66
+ ``Responsive<string | number> | undefined`` · Optional
67
+
68
+ ### frame
69
+
70
+ ``"none" | "all" | "internal" | undefined`` · Optional
71
+
72
+ Default: ``"none"``
73
+
74
+ ### gap
75
+
76
+ ``Responsive<Space> | undefined`` · Optional
77
+
78
+ Default: ``16``
79
+
80
+ ### asChild
81
+
82
+ ``boolean | undefined`` · Optional
83
+
84
+ Default: ``false``
85
+
86
+ ### fillLastRow
87
+
88
+ ``boolean | undefined`` · Optional
89
+
90
+ Default: ``false``
91
+