@uipath/apollo-react 4.0.0 → 4.1.1

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 (247) hide show
  1. package/dist/canvas/components/AddNodePanel/AddNodePreview.cjs +4 -4
  2. package/dist/canvas/components/AddNodePanel/AddNodePreview.js +4 -4
  3. package/dist/canvas/components/AgentCanvas/AgentFlow.cjs +4 -4
  4. package/dist/canvas/components/AgentCanvas/AgentFlow.js +4 -4
  5. package/dist/canvas/components/AgentCanvas/components/PaneContextMenu.cjs +3 -3
  6. package/dist/canvas/components/AgentCanvas/components/PaneContextMenu.js +3 -3
  7. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +6 -6
  8. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
  9. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +6 -6
  10. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.cjs +14 -14
  11. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.js +14 -14
  12. package/dist/canvas/components/AgentCanvas/edges/StaticEdge.cjs +8 -8
  13. package/dist/canvas/components/AgentCanvas/edges/StaticEdge.js +8 -8
  14. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +12 -12
  15. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +12 -12
  16. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.styles.cjs +18 -18
  17. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.styles.js +18 -18
  18. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +12 -12
  19. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
  20. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +12 -12
  21. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.cjs +2 -2
  22. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.d.ts +2 -2
  23. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.js +2 -2
  24. package/dist/canvas/components/BaseCanvas/PanShortcutTeachingUI.cjs +2 -2
  25. package/dist/canvas/components/BaseCanvas/PanShortcutTeachingUI.js +2 -2
  26. package/dist/canvas/components/BaseNode/BaseNode.cjs +2 -2
  27. package/dist/canvas/components/BaseNode/BaseNode.js +2 -2
  28. package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +24 -24
  29. package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +1 -1
  30. package/dist/canvas/components/BaseNode/BaseNode.styles.js +24 -24
  31. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.cjs +1 -1
  32. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.js +1 -1
  33. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.styles.cjs +6 -6
  34. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.styles.js +6 -6
  35. package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +1 -1
  36. package/dist/canvas/components/ButtonHandle/ButtonHandle.js +1 -1
  37. package/dist/canvas/components/ButtonHandle/ButtonHandle.styles.cjs +11 -11
  38. package/dist/canvas/components/ButtonHandle/ButtonHandle.styles.js +11 -11
  39. package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +1 -1
  40. package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
  41. package/dist/canvas/components/ButtonHandle/SmartHandle.js +1 -1
  42. package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +6 -6
  43. package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
  44. package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +6 -6
  45. package/dist/canvas/components/Edges/EdgeUtils.cjs +14 -14
  46. package/dist/canvas/components/Edges/EdgeUtils.js +14 -14
  47. package/dist/canvas/components/Edges/SequenceEdge.cjs +11 -11
  48. package/dist/canvas/components/Edges/SequenceEdge.js +11 -11
  49. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.cjs +4 -4
  50. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.d.ts.map +1 -1
  51. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.js +4 -4
  52. package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +5 -5
  53. package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +5 -5
  54. package/dist/canvas/components/GroupNode/GroupNode.styles.cjs +19 -19
  55. package/dist/canvas/components/GroupNode/GroupNode.styles.js +19 -19
  56. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +2 -2
  57. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +2 -2
  58. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +3 -3
  59. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +3 -3
  60. package/dist/canvas/components/MiniCanvasNavigator/MiniCanvasNavigator.cjs +2 -2
  61. package/dist/canvas/components/MiniCanvasNavigator/MiniCanvasNavigator.js +2 -2
  62. package/dist/canvas/components/NodeInspector.cjs +4 -4
  63. package/dist/canvas/components/NodeInspector.js +4 -4
  64. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.cjs +30 -30
  65. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.js +30 -30
  66. package/dist/canvas/components/StageNode/StageConnectionEdge.cjs +1 -1
  67. package/dist/canvas/components/StageNode/StageConnectionEdge.js +1 -1
  68. package/dist/canvas/components/StageNode/StageEdge.cjs +7 -7
  69. package/dist/canvas/components/StageNode/StageEdge.js +7 -7
  70. package/dist/canvas/components/StageNode/StageNode.styles.cjs +34 -34
  71. package/dist/canvas/components/StageNode/StageNode.styles.js +34 -34
  72. package/dist/canvas/components/StageNode/TaskContent.cjs +1 -1
  73. package/dist/canvas/components/StageNode/TaskContent.js +1 -1
  74. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.cjs +20 -20
  75. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.d.ts.map +1 -1
  76. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.js +20 -20
  77. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.cjs +1 -1
  78. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.d.ts +1 -1
  79. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.js +1 -1
  80. package/dist/canvas/components/TaskIcon/TaskIcon.styles.cjs +1 -1
  81. package/dist/canvas/components/TaskIcon/TaskIcon.styles.js +1 -1
  82. package/dist/canvas/components/Toolbar/EdgeToolbar/EdgeToolbar.styles.cjs +2 -2
  83. package/dist/canvas/components/Toolbar/EdgeToolbar/EdgeToolbar.styles.js +2 -2
  84. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.styles.cjs +9 -9
  85. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.styles.js +9 -9
  86. package/dist/canvas/components/Toolbar/shared/ToolbarButton.styles.cjs +3 -3
  87. package/dist/canvas/components/Toolbar/shared/ToolbarButton.styles.js +3 -3
  88. package/dist/canvas/components/Toolbox/ListView.cjs +3 -3
  89. package/dist/canvas/components/Toolbox/ListView.js +3 -3
  90. package/dist/canvas/components/Toolbox/ListView.styles.cjs +7 -7
  91. package/dist/canvas/components/Toolbox/ListView.styles.js +7 -7
  92. package/dist/canvas/components/Toolbox/SearchBox.styles.cjs +8 -8
  93. package/dist/canvas/components/Toolbox/SearchBox.styles.js +8 -8
  94. package/dist/canvas/components/Toolbox/Toolbox.styles.cjs +2 -2
  95. package/dist/canvas/components/Toolbox/Toolbox.styles.js +2 -2
  96. package/dist/canvas/components/TriggerNode/TriggerNode.styles.cjs +15 -15
  97. package/dist/canvas/components/TriggerNode/TriggerNode.styles.js +15 -15
  98. package/dist/canvas/styles/execution-status.cjs +10 -10
  99. package/dist/canvas/styles/execution-status.js +10 -10
  100. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  101. package/dist/canvas/styles/variables.css +67 -32
  102. package/dist/canvas/utils/adornment-resolver.cjs +2 -2
  103. package/dist/canvas/utils/adornment-resolver.js +2 -2
  104. package/dist/canvas/utils/coded-agents/mermaid-parser.cjs +1 -1
  105. package/dist/canvas/utils/coded-agents/mermaid-parser.js +1 -1
  106. package/dist/canvas/utils/createPreviewNode.cjs +1 -1
  107. package/dist/canvas/utils/createPreviewNode.js +1 -1
  108. package/dist/canvas/utils/export-canvas.cjs +1 -1
  109. package/dist/canvas/utils/export-canvas.d.ts.map +1 -1
  110. package/dist/canvas/utils/export-canvas.js +1 -1
  111. package/package.json +2 -2
  112. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.cjs +0 -429
  113. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.d.ts +0 -11
  114. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.d.ts.map +0 -1
  115. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.js +0 -380
  116. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.cjs +0 -2209
  117. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts +0 -11
  118. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts.map +0 -1
  119. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.js +0 -2160
  120. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.cjs +0 -246
  121. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.d.ts +0 -10
  122. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.d.ts.map +0 -1
  123. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.js +0 -200
  124. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.cjs +0 -981
  125. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.d.ts +0 -12
  126. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.d.ts.map +0 -1
  127. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.js +0 -929
  128. package/dist/canvas/components/BaseNode/BaseNode.stories.cjs +0 -1150
  129. package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts +0 -11
  130. package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts.map +0 -1
  131. package/dist/canvas/components/BaseNode/BaseNode.stories.js +0 -1101
  132. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.cjs +0 -969
  133. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.d.ts +0 -9
  134. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.d.ts.map +0 -1
  135. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.js +0 -926
  136. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.cjs +0 -608
  137. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.d.ts +0 -8
  138. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.d.ts.map +0 -1
  139. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.js +0 -568
  140. package/dist/canvas/components/CanvasPerformance.stories.cjs +0 -349
  141. package/dist/canvas/components/CanvasPerformance.stories.d.ts +0 -6
  142. package/dist/canvas/components/CanvasPerformance.stories.d.ts.map +0 -1
  143. package/dist/canvas/components/CanvasPerformance.stories.js +0 -312
  144. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.cjs +0 -119
  145. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.d.ts +0 -10
  146. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.d.ts.map +0 -1
  147. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.js +0 -73
  148. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.cjs +0 -518
  149. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.d.ts +0 -6
  150. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.d.ts.map +0 -1
  151. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.js +0 -481
  152. package/dist/canvas/components/Edges/SequenceEdge.stories.cjs +0 -1073
  153. package/dist/canvas/components/Edges/SequenceEdge.stories.d.ts +0 -10
  154. package/dist/canvas/components/Edges/SequenceEdge.stories.d.ts.map +0 -1
  155. package/dist/canvas/components/Edges/SequenceEdge.stories.js +0 -1024
  156. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.cjs +0 -796
  157. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.d.ts +0 -7
  158. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.d.ts.map +0 -1
  159. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.js +0 -756
  160. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.cjs +0 -245
  161. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.d.ts +0 -30
  162. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.d.ts.map +0 -1
  163. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.js +0 -208
  164. package/dist/canvas/components/Flow.stories.cjs +0 -778
  165. package/dist/canvas/components/Flow.stories.d.ts +0 -11
  166. package/dist/canvas/components/Flow.stories.d.ts.map +0 -1
  167. package/dist/canvas/components/Flow.stories.js +0 -725
  168. package/dist/canvas/components/GroupNode/GroupNode.stories.cjs +0 -837
  169. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts +0 -12
  170. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts.map +0 -1
  171. package/dist/canvas/components/GroupNode/GroupNode.stories.js +0 -782
  172. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.cjs +0 -88
  173. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.d.ts +0 -7
  174. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.d.ts.map +0 -1
  175. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.js +0 -51
  176. package/dist/canvas/components/NodeInspector.stories.cjs +0 -229
  177. package/dist/canvas/components/NodeInspector.stories.d.ts +0 -20
  178. package/dist/canvas/components/NodeInspector.stories.d.ts.map +0 -1
  179. package/dist/canvas/components/NodeInspector.stories.js +0 -192
  180. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.cjs +0 -122
  181. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.d.ts +0 -7
  182. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.d.ts.map +0 -1
  183. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.js +0 -85
  184. package/dist/canvas/components/StageNode/StageNode.stories.cjs +0 -2690
  185. package/dist/canvas/components/StageNode/StageNode.stories.d.ts +0 -17
  186. package/dist/canvas/components/StageNode/StageNode.stories.d.ts.map +0 -1
  187. package/dist/canvas/components/StageNode/StageNode.stories.js +0 -2623
  188. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.cjs +0 -552
  189. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.d.ts +0 -8
  190. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.d.ts.map +0 -1
  191. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.js +0 -509
  192. package/dist/canvas/components/TaskIcon/TaskIcon.stories.cjs +0 -109
  193. package/dist/canvas/components/TaskIcon/TaskIcon.stories.d.ts +0 -10
  194. package/dist/canvas/components/TaskIcon/TaskIcon.stories.d.ts.map +0 -1
  195. package/dist/canvas/components/TaskIcon/TaskIcon.stories.js +0 -72
  196. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.cjs +0 -283
  197. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.d.ts +0 -7
  198. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.d.ts.map +0 -1
  199. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.js +0 -243
  200. package/dist/canvas/components/TriggerNode/TriggerNode.stories.cjs +0 -270
  201. package/dist/canvas/components/TriggerNode/TriggerNode.stories.d.ts +0 -16
  202. package/dist/canvas/components/TriggerNode/TriggerNode.stories.d.ts.map +0 -1
  203. package/dist/canvas/components/TriggerNode/TriggerNode.stories.js +0 -233
  204. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.cjs +0 -76
  205. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.d.ts +0 -7
  206. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  207. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.js +0 -39
  208. package/dist/canvas/icons/Icons.stories.cjs +0 -207
  209. package/dist/canvas/icons/Icons.stories.d.ts +0 -6
  210. package/dist/canvas/icons/Icons.stories.d.ts.map +0 -1
  211. package/dist/canvas/icons/Icons.stories.js +0 -167
  212. package/dist/canvas/layouts/Column.stories.cjs +0 -716
  213. package/dist/canvas/layouts/Column.stories.d.ts +0 -14
  214. package/dist/canvas/layouts/Column.stories.d.ts.map +0 -1
  215. package/dist/canvas/layouts/Column.stories.js +0 -658
  216. package/dist/canvas/layouts/Grid.stories.cjs +0 -1033
  217. package/dist/canvas/layouts/Grid.stories.d.ts +0 -19
  218. package/dist/canvas/layouts/Grid.stories.d.ts.map +0 -1
  219. package/dist/canvas/layouts/Grid.stories.js +0 -960
  220. package/dist/canvas/layouts/Row.stories.cjs +0 -687
  221. package/dist/canvas/layouts/Row.stories.d.ts +0 -14
  222. package/dist/canvas/layouts/Row.stories.d.ts.map +0 -1
  223. package/dist/canvas/layouts/Row.stories.js +0 -629
  224. package/dist/canvas/storybook-utils/components/StoryInfoPanel.cjs +0 -100
  225. package/dist/canvas/storybook-utils/components/StoryInfoPanel.js +0 -66
  226. package/dist/canvas/storybook-utils/components/index.cjs +0 -58
  227. package/dist/canvas/storybook-utils/components/index.js +0 -1
  228. package/dist/canvas/storybook-utils/decorators.cjs +0 -101
  229. package/dist/canvas/storybook-utils/decorators.js +0 -64
  230. package/dist/canvas/storybook-utils/hooks/index.cjs +0 -58
  231. package/dist/canvas/storybook-utils/hooks/index.js +0 -1
  232. package/dist/canvas/storybook-utils/hooks/useCanvasStory.cjs +0 -118
  233. package/dist/canvas/storybook-utils/hooks/useCanvasStory.js +0 -81
  234. package/dist/canvas/storybook-utils/index.cjs +0 -86
  235. package/dist/canvas/storybook-utils/index.js +0 -5
  236. package/dist/canvas/storybook-utils/manifests/category-definitions.cjs +0 -220
  237. package/dist/canvas/storybook-utils/manifests/category-definitions.js +0 -186
  238. package/dist/canvas/storybook-utils/manifests/index.cjs +0 -82
  239. package/dist/canvas/storybook-utils/manifests/index.js +0 -10
  240. package/dist/canvas/storybook-utils/manifests/node-definitions.cjs +0 -1133
  241. package/dist/canvas/storybook-utils/manifests/node-definitions.js +0 -1099
  242. package/dist/canvas/storybook-utils/mocks/index.cjs +0 -65
  243. package/dist/canvas/storybook-utils/mocks/index.js +0 -2
  244. package/dist/canvas/storybook-utils/mocks/nodes.cjs +0 -237
  245. package/dist/canvas/storybook-utils/mocks/nodes.js +0 -191
  246. package/dist/canvas/storybook-utils/mocks/resources.cjs +0 -296
  247. package/dist/canvas/storybook-utils/mocks/resources.js +0 -238
@@ -1,960 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid, SimpleGrid } from "./Grid.js";
3
- const Box = ({ children, ...props })=>/*#__PURE__*/ jsx("div", {
4
- ...props,
5
- style: {
6
- color: 'var(--color-foreground)',
7
- backgroundColor: 'var(--color-background-secondary)',
8
- padding: '16px',
9
- borderRadius: '4px',
10
- border: '1px solid var(--color-border)',
11
- minWidth: '60px',
12
- minHeight: '60px',
13
- textAlign: 'center',
14
- display: 'flex',
15
- alignItems: 'center',
16
- justifyContent: 'center',
17
- ...props.style
18
- },
19
- children: children
20
- });
21
- const meta = {
22
- title: 'Core/Layouts/Grid',
23
- component: Grid,
24
- parameters: {
25
- layout: 'fullscreen'
26
- },
27
- argTypes: {
28
- templateColumns: {
29
- control: {
30
- type: 'text'
31
- },
32
- description: 'Grid template columns (e.g., "1fr 1fr" or "repeat(3, 1fr)")'
33
- },
34
- templateRows: {
35
- control: {
36
- type: 'text'
37
- },
38
- description: 'Grid template rows'
39
- },
40
- templateAreas: {
41
- control: {
42
- type: 'text'
43
- },
44
- description: 'Grid template areas'
45
- },
46
- autoFlow: {
47
- control: {
48
- type: 'select'
49
- },
50
- options: [
51
- 'row',
52
- 'column',
53
- 'dense',
54
- 'row dense',
55
- 'column dense'
56
- ]
57
- },
58
- gap: {
59
- control: {
60
- type: 'number'
61
- },
62
- description: 'Gap between grid items'
63
- },
64
- rowGap: {
65
- control: {
66
- type: 'number'
67
- },
68
- description: 'Gap between rows'
69
- },
70
- columnGap: {
71
- control: {
72
- type: 'number'
73
- },
74
- description: 'Gap between columns'
75
- },
76
- alignItems: {
77
- control: {
78
- type: 'select'
79
- },
80
- options: [
81
- 'start',
82
- 'end',
83
- 'center',
84
- 'stretch'
85
- ]
86
- },
87
- justifyItems: {
88
- control: {
89
- type: 'select'
90
- },
91
- options: [
92
- 'start',
93
- 'end',
94
- 'center',
95
- 'stretch'
96
- ]
97
- },
98
- alignContent: {
99
- control: {
100
- type: 'select'
101
- },
102
- options: [
103
- 'start',
104
- 'end',
105
- 'center',
106
- 'stretch',
107
- 'between',
108
- 'around',
109
- 'evenly'
110
- ]
111
- },
112
- justifyContent: {
113
- control: {
114
- type: 'select'
115
- },
116
- options: [
117
- 'start',
118
- 'end',
119
- 'center',
120
- 'stretch',
121
- 'between',
122
- 'around',
123
- 'evenly'
124
- ]
125
- },
126
- w: {
127
- control: {
128
- type: 'text'
129
- },
130
- description: 'Width'
131
- },
132
- h: {
133
- control: {
134
- type: 'text'
135
- },
136
- description: 'Height'
137
- },
138
- p: {
139
- control: {
140
- type: 'number'
141
- },
142
- description: 'Padding (all sides)'
143
- },
144
- m: {
145
- control: {
146
- type: 'number'
147
- },
148
- description: 'Margin (all sides)'
149
- }
150
- },
151
- decorators: [
152
- (Story)=>/*#__PURE__*/ jsx("div", {
153
- style: {
154
- padding: '16px',
155
- color: 'var(--color-foreground)',
156
- backgroundColor: 'var(--color-background)'
157
- },
158
- children: /*#__PURE__*/ jsx(Story, {})
159
- })
160
- ]
161
- };
162
- const Grid_stories = meta;
163
- const Basic = {
164
- render: ()=>/*#__PURE__*/ jsxs(Grid, {
165
- templateColumns: "repeat(3, 1fr)",
166
- gap: 16,
167
- children: [
168
- /*#__PURE__*/ jsx(Box, {
169
- children: "Item 1"
170
- }),
171
- /*#__PURE__*/ jsx(Box, {
172
- children: "Item 2"
173
- }),
174
- /*#__PURE__*/ jsx(Box, {
175
- children: "Item 3"
176
- }),
177
- /*#__PURE__*/ jsx(Box, {
178
- children: "Item 4"
179
- }),
180
- /*#__PURE__*/ jsx(Box, {
181
- children: "Item 5"
182
- }),
183
- /*#__PURE__*/ jsx(Box, {
184
- children: "Item 6"
185
- })
186
- ]
187
- })
188
- };
189
- const SimpleGridComponent = {
190
- render: ()=>/*#__PURE__*/ jsxs("div", {
191
- children: [
192
- /*#__PURE__*/ jsx("h3", {
193
- children: "2 Columns (default)"
194
- }),
195
- /*#__PURE__*/ jsxs(SimpleGrid, {
196
- gap: 16,
197
- mb: 32,
198
- children: [
199
- /*#__PURE__*/ jsx(Box, {
200
- children: "Item 1"
201
- }),
202
- /*#__PURE__*/ jsx(Box, {
203
- children: "Item 2"
204
- }),
205
- /*#__PURE__*/ jsx(Box, {
206
- children: "Item 3"
207
- }),
208
- /*#__PURE__*/ jsx(Box, {
209
- children: "Item 4"
210
- })
211
- ]
212
- }),
213
- /*#__PURE__*/ jsx("h3", {
214
- children: "4 Columns"
215
- }),
216
- /*#__PURE__*/ jsxs(SimpleGrid, {
217
- columns: 4,
218
- gap: 16,
219
- children: [
220
- /*#__PURE__*/ jsx(Box, {
221
- children: "Item 1"
222
- }),
223
- /*#__PURE__*/ jsx(Box, {
224
- children: "Item 2"
225
- }),
226
- /*#__PURE__*/ jsx(Box, {
227
- children: "Item 3"
228
- }),
229
- /*#__PURE__*/ jsx(Box, {
230
- children: "Item 4"
231
- }),
232
- /*#__PURE__*/ jsx(Box, {
233
- children: "Item 5"
234
- }),
235
- /*#__PURE__*/ jsx(Box, {
236
- children: "Item 6"
237
- }),
238
- /*#__PURE__*/ jsx(Box, {
239
- children: "Item 7"
240
- }),
241
- /*#__PURE__*/ jsx(Box, {
242
- children: "Item 8"
243
- })
244
- ]
245
- })
246
- ]
247
- })
248
- };
249
- const TemplateColumns = {
250
- render: ()=>/*#__PURE__*/ jsxs("div", {
251
- children: [
252
- /*#__PURE__*/ jsx("h3", {
253
- children: "Equal Columns: repeat(3, 1fr)"
254
- }),
255
- /*#__PURE__*/ jsxs(Grid, {
256
- templateColumns: "repeat(3, 1fr)",
257
- gap: 16,
258
- mb: 32,
259
- children: [
260
- /*#__PURE__*/ jsx(Box, {
261
- children: "Equal"
262
- }),
263
- /*#__PURE__*/ jsx(Box, {
264
- children: "Equal"
265
- }),
266
- /*#__PURE__*/ jsx(Box, {
267
- children: "Equal"
268
- })
269
- ]
270
- }),
271
- /*#__PURE__*/ jsx("h3", {
272
- children: "Mixed Sizes: 200px 1fr 100px"
273
- }),
274
- /*#__PURE__*/ jsxs(Grid, {
275
- templateColumns: "200px 1fr 100px",
276
- gap: 16,
277
- mb: 32,
278
- children: [
279
- /*#__PURE__*/ jsx(Box, {
280
- children: "200px"
281
- }),
282
- /*#__PURE__*/ jsx(Box, {
283
- children: "Flexible"
284
- }),
285
- /*#__PURE__*/ jsx(Box, {
286
- children: "100px"
287
- })
288
- ]
289
- }),
290
- /*#__PURE__*/ jsx("h3", {
291
- children: "Fractional: 1fr 2fr 1fr"
292
- }),
293
- /*#__PURE__*/ jsxs(Grid, {
294
- templateColumns: "1fr 2fr 1fr",
295
- gap: 16,
296
- children: [
297
- /*#__PURE__*/ jsx(Box, {
298
- children: "1fr"
299
- }),
300
- /*#__PURE__*/ jsx(Box, {
301
- children: "2fr (double)"
302
- }),
303
- /*#__PURE__*/ jsx(Box, {
304
- children: "1fr"
305
- })
306
- ]
307
- })
308
- ]
309
- })
310
- };
311
- const TemplateAreas = {
312
- render: ()=>/*#__PURE__*/ jsxs(Grid, {
313
- templateAreas: `
314
- "header header header"
315
- "sidebar content content"
316
- "footer footer footer"
317
- `,
318
- templateColumns: "200px 1fr 1fr",
319
- templateRows: "60px 1fr 60px",
320
- gap: 16,
321
- h: 400,
322
- children: [
323
- /*#__PURE__*/ jsx(Box, {
324
- style: {
325
- gridArea: 'header'
326
- },
327
- children: "Header"
328
- }),
329
- /*#__PURE__*/ jsx(Box, {
330
- style: {
331
- gridArea: 'sidebar'
332
- },
333
- children: "Sidebar"
334
- }),
335
- /*#__PURE__*/ jsx(Box, {
336
- style: {
337
- gridArea: 'content'
338
- },
339
- children: "Content"
340
- }),
341
- /*#__PURE__*/ jsx(Box, {
342
- style: {
343
- gridArea: 'footer'
344
- },
345
- children: "Footer"
346
- })
347
- ]
348
- })
349
- };
350
- const Gap = {
351
- render: ()=>/*#__PURE__*/ jsxs("div", {
352
- children: [
353
- /*#__PURE__*/ jsx("h3", {
354
- children: "Gap: 8px"
355
- }),
356
- /*#__PURE__*/ jsxs(Grid, {
357
- templateColumns: "repeat(3, 1fr)",
358
- gap: 8,
359
- mb: 32,
360
- children: [
361
- /*#__PURE__*/ jsx(Box, {
362
- children: "A"
363
- }),
364
- /*#__PURE__*/ jsx(Box, {
365
- children: "B"
366
- }),
367
- /*#__PURE__*/ jsx(Box, {
368
- children: "C"
369
- }),
370
- /*#__PURE__*/ jsx(Box, {
371
- children: "D"
372
- }),
373
- /*#__PURE__*/ jsx(Box, {
374
- children: "E"
375
- }),
376
- /*#__PURE__*/ jsx(Box, {
377
- children: "F"
378
- })
379
- ]
380
- }),
381
- /*#__PURE__*/ jsx("h3", {
382
- children: "Gap: 24px"
383
- }),
384
- /*#__PURE__*/ jsxs(Grid, {
385
- templateColumns: "repeat(3, 1fr)",
386
- gap: 24,
387
- mb: 32,
388
- children: [
389
- /*#__PURE__*/ jsx(Box, {
390
- children: "A"
391
- }),
392
- /*#__PURE__*/ jsx(Box, {
393
- children: "B"
394
- }),
395
- /*#__PURE__*/ jsx(Box, {
396
- children: "C"
397
- }),
398
- /*#__PURE__*/ jsx(Box, {
399
- children: "D"
400
- }),
401
- /*#__PURE__*/ jsx(Box, {
402
- children: "E"
403
- }),
404
- /*#__PURE__*/ jsx(Box, {
405
- children: "F"
406
- })
407
- ]
408
- }),
409
- /*#__PURE__*/ jsx("h3", {
410
- children: "Row Gap: 8px, Column Gap: 32px"
411
- }),
412
- /*#__PURE__*/ jsxs(Grid, {
413
- templateColumns: "repeat(3, 1fr)",
414
- rowGap: 8,
415
- columnGap: 32,
416
- children: [
417
- /*#__PURE__*/ jsx(Box, {
418
- children: "A"
419
- }),
420
- /*#__PURE__*/ jsx(Box, {
421
- children: "B"
422
- }),
423
- /*#__PURE__*/ jsx(Box, {
424
- children: "C"
425
- }),
426
- /*#__PURE__*/ jsx(Box, {
427
- children: "D"
428
- }),
429
- /*#__PURE__*/ jsx(Box, {
430
- children: "E"
431
- }),
432
- /*#__PURE__*/ jsx(Box, {
433
- children: "F"
434
- })
435
- ]
436
- })
437
- ]
438
- })
439
- };
440
- const Alignment = {
441
- render: ()=>/*#__PURE__*/ jsxs("div", {
442
- children: [
443
- /*#__PURE__*/ jsx("h3", {
444
- children: "Align Items: start"
445
- }),
446
- /*#__PURE__*/ jsxs(Grid, {
447
- templateColumns: "repeat(3, 1fr)",
448
- gap: 16,
449
- alignItems: "start",
450
- h: 120,
451
- mb: 32,
452
- style: {
453
- backgroundColor: 'var(--color-background-secondary)'
454
- },
455
- children: [
456
- /*#__PURE__*/ jsx(Box, {
457
- style: {
458
- height: '40px'
459
- },
460
- children: "Short"
461
- }),
462
- /*#__PURE__*/ jsx(Box, {
463
- style: {
464
- height: '80px'
465
- },
466
- children: "Tall"
467
- }),
468
- /*#__PURE__*/ jsx(Box, {
469
- style: {
470
- height: '60px'
471
- },
472
- children: "Medium"
473
- })
474
- ]
475
- }),
476
- /*#__PURE__*/ jsx("h3", {
477
- children: "Align Items: center"
478
- }),
479
- /*#__PURE__*/ jsxs(Grid, {
480
- templateColumns: "repeat(3, 1fr)",
481
- gap: 16,
482
- alignItems: "center",
483
- h: 120,
484
- mb: 32,
485
- style: {
486
- backgroundColor: 'var(--color-background-secondary)'
487
- },
488
- children: [
489
- /*#__PURE__*/ jsx(Box, {
490
- style: {
491
- height: '40px'
492
- },
493
- children: "Short"
494
- }),
495
- /*#__PURE__*/ jsx(Box, {
496
- style: {
497
- height: '80px'
498
- },
499
- children: "Tall"
500
- }),
501
- /*#__PURE__*/ jsx(Box, {
502
- style: {
503
- height: '60px'
504
- },
505
- children: "Medium"
506
- })
507
- ]
508
- }),
509
- /*#__PURE__*/ jsx("h3", {
510
- children: "Align Items: stretch"
511
- }),
512
- /*#__PURE__*/ jsxs(Grid, {
513
- templateColumns: "repeat(3, 1fr)",
514
- gap: 16,
515
- alignItems: "stretch",
516
- h: 120,
517
- style: {
518
- backgroundColor: 'var(--color-background-secondary)'
519
- },
520
- children: [
521
- /*#__PURE__*/ jsx(Box, {
522
- children: "Stretched"
523
- }),
524
- /*#__PURE__*/ jsx(Box, {
525
- children: "Stretched"
526
- }),
527
- /*#__PURE__*/ jsx(Box, {
528
- children: "Stretched"
529
- })
530
- ]
531
- })
532
- ]
533
- })
534
- };
535
- const Justification = {
536
- render: ()=>/*#__PURE__*/ jsxs("div", {
537
- children: [
538
- /*#__PURE__*/ jsx("h3", {
539
- children: "Justify Items: start"
540
- }),
541
- /*#__PURE__*/ jsxs(Grid, {
542
- templateColumns: "repeat(3, 1fr)",
543
- gap: 16,
544
- justifyItems: "start",
545
- mb: 32,
546
- style: {
547
- backgroundColor: 'var(--color-background-secondary)'
548
- },
549
- children: [
550
- /*#__PURE__*/ jsx(Box, {
551
- style: {
552
- width: '60px'
553
- },
554
- children: "A"
555
- }),
556
- /*#__PURE__*/ jsx(Box, {
557
- style: {
558
- width: '80px'
559
- },
560
- children: "B"
561
- }),
562
- /*#__PURE__*/ jsx(Box, {
563
- style: {
564
- width: '70px'
565
- },
566
- children: "C"
567
- })
568
- ]
569
- }),
570
- /*#__PURE__*/ jsx("h3", {
571
- children: "Justify Items: center"
572
- }),
573
- /*#__PURE__*/ jsxs(Grid, {
574
- templateColumns: "repeat(3, 1fr)",
575
- gap: 16,
576
- justifyItems: "center",
577
- mb: 32,
578
- style: {
579
- backgroundColor: 'var(--color-background-secondary)'
580
- },
581
- children: [
582
- /*#__PURE__*/ jsx(Box, {
583
- style: {
584
- width: '60px'
585
- },
586
- children: "A"
587
- }),
588
- /*#__PURE__*/ jsx(Box, {
589
- style: {
590
- width: '80px'
591
- },
592
- children: "B"
593
- }),
594
- /*#__PURE__*/ jsx(Box, {
595
- style: {
596
- width: '70px'
597
- },
598
- children: "C"
599
- })
600
- ]
601
- }),
602
- /*#__PURE__*/ jsx("h3", {
603
- children: "Justify Items: end"
604
- }),
605
- /*#__PURE__*/ jsxs(Grid, {
606
- templateColumns: "repeat(3, 1fr)",
607
- gap: 16,
608
- justifyItems: "end",
609
- style: {
610
- backgroundColor: 'var(--color-background-secondary)'
611
- },
612
- children: [
613
- /*#__PURE__*/ jsx(Box, {
614
- style: {
615
- width: '60px'
616
- },
617
- children: "A"
618
- }),
619
- /*#__PURE__*/ jsx(Box, {
620
- style: {
621
- width: '80px'
622
- },
623
- children: "B"
624
- }),
625
- /*#__PURE__*/ jsx(Box, {
626
- style: {
627
- width: '70px'
628
- },
629
- children: "C"
630
- })
631
- ]
632
- })
633
- ]
634
- })
635
- };
636
- const AutoFlow = {
637
- render: ()=>/*#__PURE__*/ jsxs("div", {
638
- children: [
639
- /*#__PURE__*/ jsx("h3", {
640
- children: "Auto Flow: row (default)"
641
- }),
642
- /*#__PURE__*/ jsxs(Grid, {
643
- templateColumns: "repeat(3, 80px)",
644
- autoFlow: "row",
645
- gap: 8,
646
- mb: 32,
647
- children: [
648
- /*#__PURE__*/ jsx(Box, {
649
- children: "1"
650
- }),
651
- /*#__PURE__*/ jsx(Box, {
652
- children: "2"
653
- }),
654
- /*#__PURE__*/ jsx(Box, {
655
- children: "3"
656
- }),
657
- /*#__PURE__*/ jsx(Box, {
658
- children: "4"
659
- }),
660
- /*#__PURE__*/ jsx(Box, {
661
- children: "5"
662
- }),
663
- /*#__PURE__*/ jsx(Box, {
664
- children: "6"
665
- }),
666
- /*#__PURE__*/ jsx(Box, {
667
- children: "7"
668
- })
669
- ]
670
- }),
671
- /*#__PURE__*/ jsx("h3", {
672
- children: "Auto Flow: column"
673
- }),
674
- /*#__PURE__*/ jsxs(Grid, {
675
- templateRows: "repeat(3, 80px)",
676
- autoFlow: "column",
677
- gap: 8,
678
- mb: 32,
679
- children: [
680
- /*#__PURE__*/ jsx(Box, {
681
- children: "1"
682
- }),
683
- /*#__PURE__*/ jsx(Box, {
684
- children: "2"
685
- }),
686
- /*#__PURE__*/ jsx(Box, {
687
- children: "3"
688
- }),
689
- /*#__PURE__*/ jsx(Box, {
690
- children: "4"
691
- }),
692
- /*#__PURE__*/ jsx(Box, {
693
- children: "5"
694
- }),
695
- /*#__PURE__*/ jsx(Box, {
696
- children: "6"
697
- }),
698
- /*#__PURE__*/ jsx(Box, {
699
- children: "7"
700
- })
701
- ]
702
- }),
703
- /*#__PURE__*/ jsx("h3", {
704
- children: "Auto Flow: dense"
705
- }),
706
- /*#__PURE__*/ jsxs(Grid, {
707
- templateColumns: "repeat(3, 80px)",
708
- autoFlow: "dense",
709
- gap: 8,
710
- children: [
711
- /*#__PURE__*/ jsx(Box, {
712
- children: "1"
713
- }),
714
- /*#__PURE__*/ jsx(Box, {
715
- style: {
716
- gridColumn: 'span 2'
717
- },
718
- children: "2 (spans 2)"
719
- }),
720
- /*#__PURE__*/ jsx(Box, {
721
- children: "3"
722
- }),
723
- /*#__PURE__*/ jsx(Box, {
724
- children: "4"
725
- }),
726
- /*#__PURE__*/ jsx(Box, {
727
- children: "5"
728
- })
729
- ]
730
- })
731
- ]
732
- })
733
- };
734
- const ResponsiveLayout = {
735
- render: ()=>/*#__PURE__*/ jsxs(Grid, {
736
- templateColumns: "repeat(auto-fit, minmax(200px, 1fr))",
737
- gap: 16,
738
- style: {
739
- resize: 'horizontal',
740
- overflow: 'auto',
741
- border: '1px dashed var(--color-border)'
742
- },
743
- children: [
744
- /*#__PURE__*/ jsx(Box, {
745
- children: "Responsive"
746
- }),
747
- /*#__PURE__*/ jsx(Box, {
748
- children: "Card"
749
- }),
750
- /*#__PURE__*/ jsx(Box, {
751
- children: "Layout"
752
- }),
753
- /*#__PURE__*/ jsx(Box, {
754
- children: "Resize me!"
755
- }),
756
- /*#__PURE__*/ jsx(Box, {
757
- children: "Auto-fit"
758
- }),
759
- /*#__PURE__*/ jsx(Box, {
760
- children: "Minmax"
761
- })
762
- ]
763
- })
764
- };
765
- const Spacing = {
766
- render: ()=>/*#__PURE__*/ jsxs("div", {
767
- children: [
768
- /*#__PURE__*/ jsx("h3", {
769
- children: "Padding and Margin"
770
- }),
771
- /*#__PURE__*/ jsxs(Grid, {
772
- templateColumns: "repeat(2, 1fr)",
773
- gap: 16,
774
- p: 24,
775
- m: 16,
776
- style: {
777
- backgroundColor: 'var(--color-border)',
778
- border: '2px dashed var(--color-border)'
779
- },
780
- children: [
781
- /*#__PURE__*/ jsx(Box, {
782
- children: "Padded"
783
- }),
784
- /*#__PURE__*/ jsx(Box, {
785
- children: "Grid"
786
- })
787
- ]
788
- }),
789
- /*#__PURE__*/ jsx("h3", {
790
- children: "Directional Spacing"
791
- }),
792
- /*#__PURE__*/ jsxs(Grid, {
793
- templateColumns: "repeat(2, 1fr)",
794
- gap: 8,
795
- pt: 32,
796
- pb: 16,
797
- px: 24,
798
- mt: 16,
799
- style: {
800
- backgroundColor: 'var(--color-border)'
801
- },
802
- children: [
803
- /*#__PURE__*/ jsx(Box, {
804
- children: "Custom"
805
- }),
806
- /*#__PURE__*/ jsx(Box, {
807
- children: "Spacing"
808
- })
809
- ]
810
- })
811
- ]
812
- })
813
- };
814
- const Sizing = {
815
- render: ()=>/*#__PURE__*/ jsxs("div", {
816
- children: [
817
- /*#__PURE__*/ jsx("h3", {
818
- children: "Fixed Dimensions"
819
- }),
820
- /*#__PURE__*/ jsxs(Grid, {
821
- templateColumns: "repeat(3, 1fr)",
822
- gap: 16,
823
- w: 400,
824
- h: 200,
825
- mb: 32,
826
- style: {
827
- backgroundColor: 'var(--color-background-secondary)',
828
- border: '1px solid var(--color-border)'
829
- },
830
- children: [
831
- /*#__PURE__*/ jsx(Box, {
832
- children: "Fixed"
833
- }),
834
- /*#__PURE__*/ jsx(Box, {
835
- children: "Width"
836
- }),
837
- /*#__PURE__*/ jsx(Box, {
838
- children: "Height"
839
- })
840
- ]
841
- }),
842
- /*#__PURE__*/ jsx("h3", {
843
- children: "Min/Max Constraints"
844
- }),
845
- /*#__PURE__*/ jsxs(Grid, {
846
- templateColumns: "repeat(auto-fit, minmax(120px, 1fr))",
847
- gap: 16,
848
- minW: 200,
849
- maxW: 600,
850
- minH: 100,
851
- style: {
852
- backgroundColor: 'var(--color-background-secondary)',
853
- border: '1px solid var(--color-border)'
854
- },
855
- children: [
856
- /*#__PURE__*/ jsx(Box, {
857
- children: "Min/Max"
858
- }),
859
- /*#__PURE__*/ jsx(Box, {
860
- children: "Constrained"
861
- }),
862
- /*#__PURE__*/ jsx(Box, {
863
- children: "Grid"
864
- })
865
- ]
866
- })
867
- ]
868
- })
869
- };
870
- const ComplexLayout = {
871
- render: ()=>/*#__PURE__*/ jsxs(Grid, {
872
- templateColumns: "repeat(4, 1fr)",
873
- templateRows: "repeat(4, 80px)",
874
- gap: 8,
875
- p: 16,
876
- children: [
877
- /*#__PURE__*/ jsx(Box, {
878
- style: {
879
- gridColumn: '1 / 3',
880
- gridRow: '1 / 3'
881
- },
882
- children: "Spans 2x2"
883
- }),
884
- /*#__PURE__*/ jsx(Box, {
885
- children: "Regular"
886
- }),
887
- /*#__PURE__*/ jsx(Box, {
888
- children: "Regular"
889
- }),
890
- /*#__PURE__*/ jsx(Box, {
891
- children: "Regular"
892
- }),
893
- /*#__PURE__*/ jsx(Box, {
894
- style: {
895
- gridColumn: '2 / 5'
896
- },
897
- children: "Spans 3 columns"
898
- }),
899
- /*#__PURE__*/ jsx(Box, {
900
- children: "Regular"
901
- }),
902
- /*#__PURE__*/ jsx(Box, {
903
- children: "Regular"
904
- }),
905
- /*#__PURE__*/ jsx(Box, {
906
- children: "Regular"
907
- }),
908
- /*#__PURE__*/ jsx(Box, {
909
- children: "Regular"
910
- }),
911
- /*#__PURE__*/ jsx(Box, {
912
- style: {
913
- gridRow: '3 / 5'
914
- },
915
- children: "Spans 2 rows"
916
- }),
917
- /*#__PURE__*/ jsx(Box, {
918
- children: "Regular"
919
- }),
920
- /*#__PURE__*/ jsx(Box, {
921
- children: "Regular"
922
- }),
923
- /*#__PURE__*/ jsx(Box, {
924
- children: "Regular"
925
- })
926
- ]
927
- })
928
- };
929
- const Interactive = {
930
- args: {
931
- templateColumns: 'repeat(3, 1fr)',
932
- gap: 16,
933
- alignItems: 'stretch',
934
- justifyItems: 'stretch'
935
- },
936
- render: (args)=>/*#__PURE__*/ jsxs(Grid, {
937
- ...args,
938
- children: [
939
- /*#__PURE__*/ jsx(Box, {
940
- children: "Item 1"
941
- }),
942
- /*#__PURE__*/ jsx(Box, {
943
- children: "Item 2"
944
- }),
945
- /*#__PURE__*/ jsx(Box, {
946
- children: "Item 3"
947
- }),
948
- /*#__PURE__*/ jsx(Box, {
949
- children: "Item 4"
950
- }),
951
- /*#__PURE__*/ jsx(Box, {
952
- children: "Item 5"
953
- }),
954
- /*#__PURE__*/ jsx(Box, {
955
- children: "Item 6"
956
- })
957
- ]
958
- })
959
- };
960
- export { Alignment, AutoFlow, Basic, ComplexLayout, Gap, Interactive, Justification, ResponsiveLayout, SimpleGridComponent, Sizing, Spacing, TemplateAreas, TemplateColumns, Grid_stories as default };