@heymantle/litho 0.0.3 → 0.0.4

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 (353) hide show
  1. package/dist/cjs/components/ActionList.js +50 -16
  2. package/dist/cjs/components/AnnouncementBar.js +10 -3
  3. package/dist/cjs/components/AppProvider.js +10 -1
  4. package/dist/cjs/components/Autocomplete.js +33 -11
  5. package/dist/cjs/components/Badge.js +2 -1
  6. package/dist/cjs/components/Banner.js +35 -31
  7. package/dist/cjs/components/Box.js +5 -3
  8. package/dist/cjs/components/Button.js +34 -12
  9. package/dist/cjs/components/Card.js +5 -45
  10. package/dist/cjs/components/Checkbox.js +16 -6
  11. package/dist/cjs/components/ChoiceList.js +7 -4
  12. package/dist/cjs/components/ColorField.js +8 -3
  13. package/dist/cjs/components/DatePicker.js +13 -8
  14. package/dist/cjs/components/DropZone.js +33 -18
  15. package/dist/cjs/components/EmptyState.js +15 -7
  16. package/dist/cjs/components/Filters.js +32 -20
  17. package/dist/cjs/components/FooterHelp.js +7 -2
  18. package/dist/cjs/components/Form.js +18 -3
  19. package/dist/cjs/components/Frame.js +40 -15
  20. package/dist/cjs/components/FrameSaveBar.js +21 -12
  21. package/dist/cjs/components/Layout.js +3 -3
  22. package/dist/cjs/components/LayoutSection.js +2 -2
  23. package/dist/cjs/components/Link.js +6 -2
  24. package/dist/cjs/components/List.js +1 -0
  25. package/dist/cjs/components/Listbox.js +9 -4
  26. package/dist/cjs/components/Modal.js +26 -17
  27. package/dist/cjs/components/Navigation.js +30 -20
  28. package/dist/cjs/components/Page.js +8 -3
  29. package/dist/cjs/components/Pagination.js +11 -4
  30. package/dist/cjs/components/Pane.js +118 -35
  31. package/dist/cjs/components/Popover.js +59 -6
  32. package/dist/cjs/components/RangeSlider.js +11 -4
  33. package/dist/cjs/components/ResourceList.js +9 -3
  34. package/dist/cjs/components/Select.js +2 -0
  35. package/dist/cjs/components/Table.js +32 -19
  36. package/dist/cjs/components/Text.js +8 -5
  37. package/dist/cjs/components/TextField.js +23 -13
  38. package/dist/cjs/components/Thumbnail.js +7 -2
  39. package/dist/cjs/components/TimePicker.js +7 -2
  40. package/dist/cjs/components/Tip.js +10 -4
  41. package/dist/cjs/components/Tooltip.js +16 -8
  42. package/dist/cjs/components/TopBar.js +17 -9
  43. package/dist/cjs/dev/verify-publish.js +37 -4
  44. package/dist/cjs/postcss.config.js +21 -0
  45. package/dist/cjs/stories/ActionList.stories.js +365 -0
  46. package/dist/cjs/stories/AnnouncementBar.stories.js +244 -0
  47. package/dist/cjs/stories/Autocomplete.stories.js +871 -0
  48. package/dist/cjs/stories/Badge.stories.js +183 -0
  49. package/dist/cjs/stories/Banner.stories.js +201 -0
  50. package/dist/cjs/stories/Box.stories.js +599 -0
  51. package/dist/cjs/stories/Button.stories.js +325 -0
  52. package/dist/cjs/stories/ButtonGroup.stories.js +404 -0
  53. package/dist/cjs/stories/Card.stories.js +278 -0
  54. package/dist/cjs/stories/Checkbox.stories.js +266 -0
  55. package/dist/cjs/stories/ChoiceList.stories.js +884 -0
  56. package/dist/cjs/stories/Collapsible.stories.js +905 -0
  57. package/dist/cjs/stories/ColorField.stories.js +883 -0
  58. package/dist/cjs/stories/ContextualSaveBar.stories.js +970 -0
  59. package/dist/cjs/stories/DatePicker.stories.js +584 -0
  60. package/dist/cjs/stories/Divider.stories.js +759 -0
  61. package/dist/cjs/stories/DropZone.stories.js +1205 -0
  62. package/dist/cjs/stories/EmptyState.stories.js +296 -0
  63. package/dist/cjs/stories/Filters.stories.js +1353 -0
  64. package/dist/cjs/stories/FooterHelp.stories.js +869 -0
  65. package/dist/cjs/stories/Form.stories.js +940 -0
  66. package/dist/cjs/stories/Grid.stories.js +1199 -0
  67. package/dist/cjs/stories/HorizontalStack.stories.js +1064 -0
  68. package/dist/cjs/stories/Icon.stories.js +596 -0
  69. package/dist/cjs/stories/Image.stories.js +883 -0
  70. package/dist/cjs/stories/InlineError.stories.js +710 -0
  71. package/dist/cjs/stories/Label.stories.js +665 -0
  72. package/dist/cjs/stories/Layout.stories.js +685 -0
  73. package/dist/cjs/stories/LayoutSection.stories.js +1267 -0
  74. package/dist/cjs/stories/Link.stories.js +423 -0
  75. package/dist/cjs/stories/List.stories.js +1031 -0
  76. package/dist/cjs/stories/Listbox.stories.js +820 -0
  77. package/dist/cjs/stories/Loading.stories.js +900 -0
  78. package/dist/cjs/stories/Modal.stories.js +363 -0
  79. package/dist/cjs/stories/Navigation.stories.js +605 -0
  80. package/dist/cjs/stories/Page.stories.js +318 -0
  81. package/dist/cjs/stories/Pagination.stories.js +438 -0
  82. package/dist/cjs/stories/Pane.stories.js +1535 -0
  83. package/dist/cjs/stories/Popover.stories.js +637 -0
  84. package/dist/cjs/stories/PopoverManager.stories.js +1225 -0
  85. package/dist/cjs/stories/ProgressBar.stories.js +506 -0
  86. package/dist/cjs/stories/RadioButton.stories.js +642 -0
  87. package/dist/cjs/stories/RadioButtonCard.stories.js +816 -0
  88. package/dist/cjs/stories/RangeSlider.stories.js +892 -0
  89. package/dist/cjs/stories/ResourceList.stories.js +1067 -0
  90. package/dist/cjs/stories/Select.stories.js +413 -0
  91. package/dist/cjs/stories/SkeletonText.stories.js +776 -0
  92. package/dist/cjs/stories/Spinner.stories.js +396 -0
  93. package/dist/cjs/stories/Table.stories.js +628 -0
  94. package/dist/cjs/stories/Tabs.stories.js +723 -0
  95. package/dist/cjs/stories/Tag.stories.js +620 -0
  96. package/dist/cjs/stories/Text.stories.js +262 -0
  97. package/dist/cjs/stories/TextField.stories.js +377 -0
  98. package/dist/cjs/stories/Thumbnail.stories.js +859 -0
  99. package/dist/cjs/stories/TimePicker.stories.js +966 -0
  100. package/dist/cjs/stories/Tip.stories.js +753 -0
  101. package/dist/cjs/stories/Tooltip.stories.js +357 -0
  102. package/dist/cjs/stories/TopBar.stories.js +155 -0
  103. package/dist/cjs/stories/VerticalStack.stories.js +1287 -0
  104. package/dist/cjs/tailwind.config.js +17 -0
  105. package/dist/cjs/utilities/transformers.js +66 -0
  106. package/dist/cjs/vite.config.js +35 -0
  107. package/dist/esm/components/ActionList.js +41 -12
  108. package/dist/esm/components/AnnouncementBar.js +3 -1
  109. package/dist/esm/components/AppProvider.js +10 -1
  110. package/dist/esm/components/Autocomplete.js +21 -4
  111. package/dist/esm/components/Badge.js +2 -2
  112. package/dist/esm/components/Banner.js +20 -21
  113. package/dist/esm/components/Box.js +5 -4
  114. package/dist/esm/components/Button.js +24 -7
  115. package/dist/esm/components/Card.js +5 -4
  116. package/dist/esm/components/Checkbox.js +6 -1
  117. package/dist/esm/components/ChoiceList.js +7 -4
  118. package/dist/esm/components/ColorField.js +1 -1
  119. package/dist/esm/components/DatePicker.js +6 -1
  120. package/dist/esm/components/DropZone.js +14 -4
  121. package/dist/esm/components/EmptyState.js +4 -1
  122. package/dist/esm/components/Filters.js +10 -3
  123. package/dist/esm/components/FooterHelp.js +1 -1
  124. package/dist/esm/components/Form.js +18 -3
  125. package/dist/esm/components/Frame.js +18 -6
  126. package/dist/esm/components/FrameSaveBar.js +10 -6
  127. package/dist/esm/components/InlineError.js +1 -1
  128. package/dist/esm/components/Layout.js +4 -4
  129. package/dist/esm/components/LayoutSection.js +2 -2
  130. package/dist/esm/components/Link.js +6 -2
  131. package/dist/esm/components/List.js +1 -0
  132. package/dist/esm/components/Listbox.js +4 -4
  133. package/dist/esm/components/Modal.js +8 -4
  134. package/dist/esm/components/Navigation.js +16 -11
  135. package/dist/esm/components/Page.js +9 -4
  136. package/dist/esm/components/Pagination.js +3 -1
  137. package/dist/esm/components/Pane.js +114 -36
  138. package/dist/esm/components/Popover.js +18 -6
  139. package/dist/esm/components/RangeSlider.js +3 -1
  140. package/dist/esm/components/ResourceList.js +2 -1
  141. package/dist/esm/components/Select.js +2 -0
  142. package/dist/esm/components/Table.js +16 -3
  143. package/dist/esm/components/Text.js +8 -6
  144. package/dist/esm/components/TextField.js +6 -1
  145. package/dist/esm/components/Thumbnail.js +1 -1
  146. package/dist/esm/components/TimePicker.js +1 -1
  147. package/dist/esm/components/Tip.js +3 -2
  148. package/dist/esm/components/Tooltip.js +4 -1
  149. package/dist/esm/components/TopBar.js +7 -4
  150. package/dist/esm/dev/verify-publish.js +37 -4
  151. package/dist/esm/postcss.config.js +6 -0
  152. package/dist/esm/stories/ActionList.stories.js +327 -0
  153. package/dist/esm/stories/AnnouncementBar.stories.js +212 -0
  154. package/dist/esm/stories/Autocomplete.stories.js +833 -0
  155. package/dist/esm/stories/Badge.stories.js +138 -0
  156. package/dist/esm/stories/Banner.stories.js +159 -0
  157. package/dist/esm/stories/Box.stories.js +558 -0
  158. package/dist/esm/stories/Button.stories.js +277 -0
  159. package/dist/esm/stories/ButtonGroup.stories.js +357 -0
  160. package/dist/esm/stories/Card.stories.js +240 -0
  161. package/dist/esm/stories/Checkbox.stories.js +219 -0
  162. package/dist/esm/stories/ChoiceList.stories.js +834 -0
  163. package/dist/esm/stories/Collapsible.stories.js +867 -0
  164. package/dist/esm/stories/ColorField.stories.js +842 -0
  165. package/dist/esm/stories/ContextualSaveBar.stories.js +938 -0
  166. package/dist/esm/stories/DatePicker.stories.js +537 -0
  167. package/dist/esm/stories/Divider.stories.js +715 -0
  168. package/dist/esm/stories/DropZone.stories.js +1161 -0
  169. package/dist/esm/stories/EmptyState.stories.js +246 -0
  170. package/dist/esm/stories/Filters.stories.js +1315 -0
  171. package/dist/esm/stories/FooterHelp.stories.js +813 -0
  172. package/dist/esm/stories/Form.stories.js +905 -0
  173. package/dist/esm/stories/Grid.stories.js +1152 -0
  174. package/dist/esm/stories/HorizontalStack.stories.js +1011 -0
  175. package/dist/esm/stories/Icon.stories.js +555 -0
  176. package/dist/esm/stories/Image.stories.js +836 -0
  177. package/dist/esm/stories/InlineError.stories.js +666 -0
  178. package/dist/esm/stories/Label.stories.js +612 -0
  179. package/dist/esm/stories/Layout.stories.js +647 -0
  180. package/dist/esm/stories/LayoutSection.stories.js +1226 -0
  181. package/dist/esm/stories/Link.stories.js +379 -0
  182. package/dist/esm/stories/List.stories.js +975 -0
  183. package/dist/esm/stories/Listbox.stories.js +776 -0
  184. package/dist/esm/stories/Loading.stories.js +850 -0
  185. package/dist/esm/stories/Modal.stories.js +322 -0
  186. package/dist/esm/stories/Navigation.stories.js +567 -0
  187. package/dist/esm/stories/Page.stories.js +276 -0
  188. package/dist/esm/stories/Pagination.stories.js +394 -0
  189. package/dist/esm/stories/Pane.stories.js +1497 -0
  190. package/dist/esm/stories/Popover.stories.js +605 -0
  191. package/dist/esm/stories/PopoverManager.stories.js +1193 -0
  192. package/dist/esm/stories/ProgressBar.stories.js +465 -0
  193. package/dist/esm/stories/RadioButton.stories.js +598 -0
  194. package/dist/esm/stories/RadioButtonCard.stories.js +772 -0
  195. package/dist/esm/stories/RangeSlider.stories.js +845 -0
  196. package/dist/esm/stories/ResourceList.stories.js +1029 -0
  197. package/dist/esm/stories/Select.stories.js +363 -0
  198. package/dist/esm/stories/SkeletonText.stories.js +717 -0
  199. package/dist/esm/stories/Spinner.stories.js +355 -0
  200. package/dist/esm/stories/Table.stories.js +584 -0
  201. package/dist/esm/stories/Tabs.stories.js +685 -0
  202. package/dist/esm/stories/Tag.stories.js +573 -0
  203. package/dist/esm/stories/Text.stories.js +217 -0
  204. package/dist/esm/stories/TextField.stories.js +332 -0
  205. package/dist/esm/stories/Thumbnail.stories.js +806 -0
  206. package/dist/esm/stories/TimePicker.stories.js +910 -0
  207. package/dist/esm/stories/Tip.stories.js +706 -0
  208. package/dist/esm/stories/Tooltip.stories.js +313 -0
  209. package/dist/esm/stories/TopBar.stories.js +114 -0
  210. package/dist/esm/stories/VerticalStack.stories.js +1240 -0
  211. package/dist/esm/tailwind.config.js +7 -0
  212. package/dist/esm/utilities/transformers.js +47 -0
  213. package/dist/esm/vite.config.js +20 -0
  214. package/dist/types/components/ActionList.d.ts +122 -0
  215. package/dist/types/components/ActionList.d.ts.map +1 -0
  216. package/dist/types/components/AnnouncementBar.d.ts +21 -0
  217. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  218. package/dist/types/components/AppProvider.d.ts +61 -0
  219. package/dist/types/components/AppProvider.d.ts.map +1 -0
  220. package/dist/types/components/Autocomplete.d.ts +130 -0
  221. package/dist/types/components/Autocomplete.d.ts.map +1 -0
  222. package/dist/types/components/Badge.d.ts +21 -0
  223. package/dist/types/components/Badge.d.ts.map +1 -0
  224. package/dist/types/components/Banner.d.ts +78 -0
  225. package/dist/types/components/Banner.d.ts.map +1 -0
  226. package/dist/types/components/Box.d.ts +70 -0
  227. package/dist/types/components/Box.d.ts.map +1 -0
  228. package/dist/types/components/Button.d.ts +123 -0
  229. package/dist/types/components/Button.d.ts.map +1 -0
  230. package/dist/types/components/ButtonGroup.d.ts +26 -0
  231. package/dist/types/components/ButtonGroup.d.ts.map +1 -0
  232. package/dist/types/components/Card.d.ts +139 -0
  233. package/dist/types/components/Card.d.ts.map +1 -0
  234. package/dist/types/components/Checkbox.d.ts +56 -0
  235. package/dist/types/components/Checkbox.d.ts.map +1 -0
  236. package/dist/types/components/ChoiceList.d.ts +69 -0
  237. package/dist/types/components/ChoiceList.d.ts.map +1 -0
  238. package/dist/types/components/Collapsible.d.ts +17 -0
  239. package/dist/types/components/Collapsible.d.ts.map +1 -0
  240. package/dist/types/components/ColorField.d.ts +36 -0
  241. package/dist/types/components/ColorField.d.ts.map +1 -0
  242. package/dist/types/components/ContextualSaveBar.d.ts +22 -0
  243. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -0
  244. package/dist/types/components/DatePicker.d.ts +66 -0
  245. package/dist/types/components/DatePicker.d.ts.map +1 -0
  246. package/dist/types/components/Divider.d.ts +21 -0
  247. package/dist/types/components/Divider.d.ts.map +1 -0
  248. package/dist/types/components/DropZone.d.ts +108 -0
  249. package/dist/types/components/DropZone.d.ts.map +1 -0
  250. package/dist/types/components/EmptyState.d.ts +52 -0
  251. package/dist/types/components/EmptyState.d.ts.map +1 -0
  252. package/dist/types/components/Filters.d.ts +166 -0
  253. package/dist/types/components/Filters.d.ts.map +1 -0
  254. package/dist/types/components/FooterHelp.d.ts +21 -0
  255. package/dist/types/components/FooterHelp.d.ts.map +1 -0
  256. package/dist/types/components/Form.d.ts +39 -0
  257. package/dist/types/components/Form.d.ts.map +1 -0
  258. package/dist/types/components/Frame.d.ts +51 -0
  259. package/dist/types/components/Frame.d.ts.map +1 -0
  260. package/dist/types/components/FrameSaveBar.d.ts +8 -0
  261. package/dist/types/components/FrameSaveBar.d.ts.map +1 -0
  262. package/dist/types/components/Grid.d.ts +39 -0
  263. package/dist/types/components/Grid.d.ts.map +1 -0
  264. package/dist/types/components/HorizontalStack.d.ts +36 -0
  265. package/dist/types/components/HorizontalStack.d.ts.map +1 -0
  266. package/dist/types/components/Icon.d.ts +43 -0
  267. package/dist/types/components/Icon.d.ts.map +1 -0
  268. package/dist/types/components/Image.d.ts +45 -0
  269. package/dist/types/components/Image.d.ts.map +1 -0
  270. package/dist/types/components/InlineError.d.ts +22 -0
  271. package/dist/types/components/InlineError.d.ts.map +1 -0
  272. package/dist/types/components/Label.d.ts +28 -0
  273. package/dist/types/components/Label.d.ts.map +1 -0
  274. package/dist/types/components/Layout.d.ts +44 -0
  275. package/dist/types/components/Layout.d.ts.map +1 -0
  276. package/dist/types/components/LayoutSection.d.ts +24 -0
  277. package/dist/types/components/LayoutSection.d.ts.map +1 -0
  278. package/dist/types/components/Link.d.ts +38 -0
  279. package/dist/types/components/Link.d.ts.map +1 -0
  280. package/dist/types/components/List.d.ts +33 -0
  281. package/dist/types/components/List.d.ts.map +1 -0
  282. package/dist/types/components/Listbox.d.ts +34 -0
  283. package/dist/types/components/Listbox.d.ts.map +1 -0
  284. package/dist/types/components/Loading.d.ts +13 -0
  285. package/dist/types/components/Loading.d.ts.map +1 -0
  286. package/dist/types/components/Modal.d.ts +75 -0
  287. package/dist/types/components/Modal.d.ts.map +1 -0
  288. package/dist/types/components/Navigation.d.ts +105 -0
  289. package/dist/types/components/Navigation.d.ts.map +1 -0
  290. package/dist/types/components/Page.d.ts +59 -0
  291. package/dist/types/components/Page.d.ts.map +1 -0
  292. package/dist/types/components/Pagination.d.ts +39 -0
  293. package/dist/types/components/Pagination.d.ts.map +1 -0
  294. package/dist/types/components/Pane.d.ts +11 -0
  295. package/dist/types/components/Pane.d.ts.map +1 -0
  296. package/dist/types/components/Popover.d.ts +56 -0
  297. package/dist/types/components/Popover.d.ts.map +1 -0
  298. package/dist/types/components/PopoverManager.d.ts +3 -0
  299. package/dist/types/components/PopoverManager.d.ts.map +1 -0
  300. package/dist/types/components/ProgressBar.d.ts +24 -0
  301. package/dist/types/components/ProgressBar.d.ts.map +1 -0
  302. package/dist/types/components/RadioButton.d.ts +39 -0
  303. package/dist/types/components/RadioButton.d.ts.map +1 -0
  304. package/dist/types/components/RadioButtonCard.d.ts +41 -0
  305. package/dist/types/components/RadioButtonCard.d.ts.map +1 -0
  306. package/dist/types/components/RangeSlider.d.ts +44 -0
  307. package/dist/types/components/RangeSlider.d.ts.map +1 -0
  308. package/dist/types/components/ResourceList.d.ts +54 -0
  309. package/dist/types/components/ResourceList.d.ts.map +1 -0
  310. package/dist/types/components/Select.d.ts +48 -0
  311. package/dist/types/components/Select.d.ts.map +1 -0
  312. package/dist/types/components/SkeletonText.d.ts +28 -0
  313. package/dist/types/components/SkeletonText.d.ts.map +1 -0
  314. package/dist/types/components/Spinner.d.ts +18 -0
  315. package/dist/types/components/Spinner.d.ts.map +1 -0
  316. package/dist/types/components/Table.d.ts +197 -0
  317. package/dist/types/components/Table.d.ts.map +1 -0
  318. package/dist/types/components/Tabs.d.ts +41 -0
  319. package/dist/types/components/Tabs.d.ts.map +1 -0
  320. package/dist/types/components/Tag.d.ts +26 -0
  321. package/dist/types/components/Tag.d.ts.map +1 -0
  322. package/dist/types/components/Text.d.ts +32 -0
  323. package/dist/types/components/Text.d.ts.map +1 -0
  324. package/dist/types/components/TextField.d.ts +109 -0
  325. package/dist/types/components/TextField.d.ts.map +1 -0
  326. package/dist/types/components/Thumbnail.d.ts +18 -0
  327. package/dist/types/components/Thumbnail.d.ts.map +1 -0
  328. package/dist/types/components/TimePicker.d.ts +3 -0
  329. package/dist/types/components/TimePicker.d.ts.map +1 -0
  330. package/dist/types/components/Tip.d.ts +23 -0
  331. package/dist/types/components/Tip.d.ts.map +1 -0
  332. package/dist/types/components/Tooltip.d.ts +84 -0
  333. package/dist/types/components/Tooltip.d.ts.map +1 -0
  334. package/dist/types/components/TopBar.d.ts +43 -0
  335. package/dist/types/components/TopBar.d.ts.map +1 -0
  336. package/dist/types/components/VerticalStack.d.ts +27 -0
  337. package/dist/types/components/VerticalStack.d.ts.map +1 -0
  338. package/dist/types/index.d.ts +62 -0
  339. package/dist/types/index.d.ts.map +1 -0
  340. package/dist/types/styles/Table.d.ts +1570 -0
  341. package/dist/types/styles/Table.d.ts.map +1 -0
  342. package/dist/types/utilities/dates.d.ts +46 -0
  343. package/dist/types/utilities/dates.d.ts.map +1 -0
  344. package/dist/types/utilities/transformers.d.ts +4 -0
  345. package/dist/types/utilities/transformers.d.ts.map +1 -0
  346. package/dist/types/utilities/useIndexResourceState.d.ts +21 -0
  347. package/dist/types/utilities/useIndexResourceState.d.ts.map +1 -0
  348. package/dist/types/utilities/useMounted.d.ts +2 -0
  349. package/dist/types/utilities/useMounted.d.ts.map +1 -0
  350. package/dist/types/utilities/useTableScrollState.d.ts +29 -0
  351. package/dist/types/utilities/useTableScrollState.d.ts.map +1 -0
  352. package/index.css +6 -0
  353. package/package.json +37 -6
@@ -0,0 +1,1152 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
54
+ import Grid from "../components/Grid.js";
55
+ import Text from "../components/Text.js";
56
+ import Card from "../components/Card.js";
57
+ import Button from "../components/Button.js";
58
+ import Badge from "../components/Badge.js";
59
+ import Box from "../components/Box.js";
60
+ import VerticalStack from "../components/VerticalStack.js";
61
+ import HorizontalStack from "../components/HorizontalStack.js";
62
+ import { transformStorySource } from "../utilities/transformers.js";
63
+ export default {
64
+ title: 'Litho/Grid',
65
+ component: Grid,
66
+ parameters: {
67
+ layout: 'padded',
68
+ docs: {
69
+ description: {
70
+ component: "A Grid component that creates flexible grid layouts with customizable columns, gaps, and alignment. It includes a Cell subcomponent for creating grid items with column span control."
71
+ }
72
+ }
73
+ },
74
+ args: {
75
+ columns: 3,
76
+ gap: 4,
77
+ justify: 'stretch',
78
+ align: 'stretch'
79
+ },
80
+ tags: [
81
+ 'autodocs'
82
+ ],
83
+ argTypes: {
84
+ columns: {
85
+ control: 'number',
86
+ description: 'Number of columns in the grid'
87
+ },
88
+ gap: {
89
+ control: 'number',
90
+ description: 'Gap between grid items'
91
+ },
92
+ justify: {
93
+ control: 'select',
94
+ options: [
95
+ 'stretch',
96
+ 'start',
97
+ 'end',
98
+ 'center'
99
+ ],
100
+ description: 'Horizontal alignment of grid items'
101
+ },
102
+ align: {
103
+ control: 'select',
104
+ options: [
105
+ 'stretch',
106
+ 'start',
107
+ 'end',
108
+ 'center'
109
+ ],
110
+ description: 'Vertical alignment of grid items'
111
+ }
112
+ }
113
+ };
114
+ export var Default = {
115
+ render: function(args) {
116
+ return /*#__PURE__*/ _jsxs(Grid, _object_spread_props(_object_spread({}, args), {
117
+ children: [
118
+ /*#__PURE__*/ _jsx(Box, {
119
+ padding: "8",
120
+ background: "bg-surface-info-subdued",
121
+ borderRadius: "1",
122
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
123
+ inlineAlign: "center",
124
+ children: /*#__PURE__*/ _jsx(Text, {
125
+ children: "Item 1"
126
+ })
127
+ })
128
+ }),
129
+ /*#__PURE__*/ _jsx(Box, {
130
+ padding: "8",
131
+ background: "bg-surface-magic-subdued",
132
+ borderRadius: "1",
133
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
134
+ inlineAlign: "center",
135
+ children: /*#__PURE__*/ _jsx(Text, {
136
+ children: "Item 2"
137
+ })
138
+ })
139
+ }),
140
+ /*#__PURE__*/ _jsx(Box, {
141
+ padding: "8",
142
+ background: "bg-surface-success-subdued",
143
+ borderRadius: "1",
144
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
145
+ inlineAlign: "center",
146
+ children: /*#__PURE__*/ _jsx(Text, {
147
+ children: "Item 3"
148
+ })
149
+ })
150
+ }),
151
+ /*#__PURE__*/ _jsx(Box, {
152
+ padding: "8",
153
+ background: "bg-surface-warning-subdued",
154
+ borderRadius: "1",
155
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
156
+ inlineAlign: "center",
157
+ children: /*#__PURE__*/ _jsx(Text, {
158
+ children: "Item 4"
159
+ })
160
+ })
161
+ }),
162
+ /*#__PURE__*/ _jsx(Box, {
163
+ padding: "8",
164
+ background: "bg-surface-critical-subdued",
165
+ borderRadius: "1",
166
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
167
+ inlineAlign: "center",
168
+ children: /*#__PURE__*/ _jsx(Text, {
169
+ children: "Item 5"
170
+ })
171
+ })
172
+ }),
173
+ /*#__PURE__*/ _jsx(Box, {
174
+ padding: "8",
175
+ background: "bg-surface-success-subdued",
176
+ borderRadius: "1",
177
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
178
+ inlineAlign: "center",
179
+ children: /*#__PURE__*/ _jsx(Text, {
180
+ children: "Item 6"
181
+ })
182
+ })
183
+ })
184
+ ]
185
+ }));
186
+ },
187
+ parameters: {
188
+ docs: {
189
+ source: {
190
+ transform: transformStorySource
191
+ }
192
+ }
193
+ }
194
+ };
195
+ export var DifferentColumns = {
196
+ render: function() {
197
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
198
+ gap: "8",
199
+ children: [
200
+ /*#__PURE__*/ _jsxs(VerticalStack, {
201
+ gap: "4",
202
+ children: [
203
+ /*#__PURE__*/ _jsx(Text, {
204
+ variant: "headingSm",
205
+ children: "2 Columns"
206
+ }),
207
+ /*#__PURE__*/ _jsxs(Grid, {
208
+ columns: 2,
209
+ gap: 4,
210
+ children: [
211
+ /*#__PURE__*/ _jsx(Card, {
212
+ padded: true,
213
+ children: /*#__PURE__*/ _jsx(Text, {
214
+ children: "Item 1"
215
+ })
216
+ }),
217
+ /*#__PURE__*/ _jsx(Card, {
218
+ padded: true,
219
+ children: /*#__PURE__*/ _jsx(Text, {
220
+ children: "Item 2"
221
+ })
222
+ }),
223
+ /*#__PURE__*/ _jsx(Card, {
224
+ padded: true,
225
+ children: /*#__PURE__*/ _jsx(Text, {
226
+ children: "Item 3"
227
+ })
228
+ }),
229
+ /*#__PURE__*/ _jsx(Card, {
230
+ padded: true,
231
+ children: /*#__PURE__*/ _jsx(Text, {
232
+ children: "Item 4"
233
+ })
234
+ })
235
+ ]
236
+ })
237
+ ]
238
+ }),
239
+ /*#__PURE__*/ _jsxs(VerticalStack, {
240
+ gap: "4",
241
+ children: [
242
+ /*#__PURE__*/ _jsx(Text, {
243
+ variant: "headingSm",
244
+ children: "4 Columns"
245
+ }),
246
+ /*#__PURE__*/ _jsxs(Grid, {
247
+ columns: 4,
248
+ gap: 4,
249
+ children: [
250
+ /*#__PURE__*/ _jsx(Card, {
251
+ padded: true,
252
+ children: /*#__PURE__*/ _jsx(Text, {
253
+ children: "Item 1"
254
+ })
255
+ }),
256
+ /*#__PURE__*/ _jsx(Card, {
257
+ padded: true,
258
+ children: /*#__PURE__*/ _jsx(Text, {
259
+ children: "Item 2"
260
+ })
261
+ }),
262
+ /*#__PURE__*/ _jsx(Card, {
263
+ padded: true,
264
+ children: /*#__PURE__*/ _jsx(Text, {
265
+ children: "Item 3"
266
+ })
267
+ }),
268
+ /*#__PURE__*/ _jsx(Card, {
269
+ padded: true,
270
+ children: /*#__PURE__*/ _jsx(Text, {
271
+ children: "Item 4"
272
+ })
273
+ })
274
+ ]
275
+ })
276
+ ]
277
+ }),
278
+ /*#__PURE__*/ _jsxs(VerticalStack, {
279
+ gap: "4",
280
+ children: [
281
+ /*#__PURE__*/ _jsx(Text, {
282
+ variant: "headingSm",
283
+ children: "6 Columns"
284
+ }),
285
+ /*#__PURE__*/ _jsxs(Grid, {
286
+ columns: 6,
287
+ gap: 2,
288
+ children: [
289
+ /*#__PURE__*/ _jsx(Card, {
290
+ padded: true,
291
+ children: /*#__PURE__*/ _jsx(Text, {
292
+ children: "1"
293
+ })
294
+ }),
295
+ /*#__PURE__*/ _jsx(Card, {
296
+ padded: true,
297
+ children: /*#__PURE__*/ _jsx(Text, {
298
+ children: "2"
299
+ })
300
+ }),
301
+ /*#__PURE__*/ _jsx(Card, {
302
+ padded: true,
303
+ children: /*#__PURE__*/ _jsx(Text, {
304
+ children: "3"
305
+ })
306
+ }),
307
+ /*#__PURE__*/ _jsx(Card, {
308
+ padded: true,
309
+ children: /*#__PURE__*/ _jsx(Text, {
310
+ children: "4"
311
+ })
312
+ }),
313
+ /*#__PURE__*/ _jsx(Card, {
314
+ padded: true,
315
+ children: /*#__PURE__*/ _jsx(Text, {
316
+ children: "5"
317
+ })
318
+ }),
319
+ /*#__PURE__*/ _jsx(Card, {
320
+ padded: true,
321
+ children: /*#__PURE__*/ _jsx(Text, {
322
+ children: "6"
323
+ })
324
+ })
325
+ ]
326
+ })
327
+ ]
328
+ })
329
+ ]
330
+ });
331
+ },
332
+ parameters: {
333
+ docs: {
334
+ description: {
335
+ story: 'Grid layouts with different column counts.'
336
+ },
337
+ source: {
338
+ transform: transformStorySource
339
+ }
340
+ }
341
+ }
342
+ };
343
+ export var WithColumnSpan = {
344
+ render: function() {
345
+ return /*#__PURE__*/ _jsxs(Grid, {
346
+ columns: 4,
347
+ gap: 4,
348
+ children: [
349
+ /*#__PURE__*/ _jsx(Grid.Cell, {
350
+ columnSpan: 2,
351
+ children: /*#__PURE__*/ _jsx(Card, {
352
+ padded: true,
353
+ background: "bg-surface-info-subdued",
354
+ children: /*#__PURE__*/ _jsx(Text, {
355
+ children: "Spans 2 columns"
356
+ })
357
+ })
358
+ }),
359
+ /*#__PURE__*/ _jsx(Card, {
360
+ padded: true,
361
+ children: /*#__PURE__*/ _jsx(Text, {
362
+ children: "Item 2"
363
+ })
364
+ }),
365
+ /*#__PURE__*/ _jsx(Card, {
366
+ padded: true,
367
+ children: /*#__PURE__*/ _jsx(Text, {
368
+ children: "Item 3"
369
+ })
370
+ }),
371
+ /*#__PURE__*/ _jsx(Card, {
372
+ padded: true,
373
+ children: /*#__PURE__*/ _jsx(Text, {
374
+ children: "Item 4"
375
+ })
376
+ }),
377
+ /*#__PURE__*/ _jsx(Grid.Cell, {
378
+ columnSpan: 3,
379
+ children: /*#__PURE__*/ _jsx(Card, {
380
+ padded: true,
381
+ background: "bg-surface-magic-subdued",
382
+ children: /*#__PURE__*/ _jsx(Text, {
383
+ children: "Spans 3 columns"
384
+ })
385
+ })
386
+ }),
387
+ /*#__PURE__*/ _jsx(Card, {
388
+ padded: true,
389
+ children: /*#__PURE__*/ _jsx(Text, {
390
+ children: "Item 6"
391
+ })
392
+ }),
393
+ /*#__PURE__*/ _jsx(Grid.Cell, {
394
+ columnSpan: 4,
395
+ children: /*#__PURE__*/ _jsx(Card, {
396
+ padded: true,
397
+ background: "bg-surface-success-subdued",
398
+ children: /*#__PURE__*/ _jsx(Text, {
399
+ children: "Spans all 4 columns"
400
+ })
401
+ })
402
+ })
403
+ ]
404
+ });
405
+ },
406
+ parameters: {
407
+ docs: {
408
+ description: {
409
+ story: 'Grid cells with different column spans.'
410
+ },
411
+ source: {
412
+ transform: transformStorySource
413
+ }
414
+ }
415
+ }
416
+ };
417
+ export var GapSizes = {
418
+ render: function() {
419
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
420
+ gap: "8",
421
+ children: [
422
+ /*#__PURE__*/ _jsxs(VerticalStack, {
423
+ gap: "4",
424
+ children: [
425
+ /*#__PURE__*/ _jsx(Text, {
426
+ variant: "headingSm",
427
+ children: "No Gap (0)"
428
+ }),
429
+ /*#__PURE__*/ _jsxs(Grid, {
430
+ columns: 3,
431
+ gap: 0,
432
+ children: [
433
+ /*#__PURE__*/ _jsx(Card, {
434
+ padded: true,
435
+ children: /*#__PURE__*/ _jsx(Text, {
436
+ children: "Item 1"
437
+ })
438
+ }),
439
+ /*#__PURE__*/ _jsx(Card, {
440
+ padded: true,
441
+ children: /*#__PURE__*/ _jsx(Text, {
442
+ children: "Item 2"
443
+ })
444
+ }),
445
+ /*#__PURE__*/ _jsx(Card, {
446
+ padded: true,
447
+ children: /*#__PURE__*/ _jsx(Text, {
448
+ children: "Item 3"
449
+ })
450
+ })
451
+ ]
452
+ })
453
+ ]
454
+ }),
455
+ /*#__PURE__*/ _jsxs(VerticalStack, {
456
+ gap: "4",
457
+ children: [
458
+ /*#__PURE__*/ _jsx(Text, {
459
+ variant: "headingSm",
460
+ children: "Small Gap (2)"
461
+ }),
462
+ /*#__PURE__*/ _jsxs(Grid, {
463
+ columns: 3,
464
+ gap: 2,
465
+ children: [
466
+ /*#__PURE__*/ _jsx(Card, {
467
+ padded: true,
468
+ children: /*#__PURE__*/ _jsx(Text, {
469
+ children: "Item 1"
470
+ })
471
+ }),
472
+ /*#__PURE__*/ _jsx(Card, {
473
+ padded: true,
474
+ children: /*#__PURE__*/ _jsx(Text, {
475
+ children: "Item 2"
476
+ })
477
+ }),
478
+ /*#__PURE__*/ _jsx(Card, {
479
+ padded: true,
480
+ children: /*#__PURE__*/ _jsx(Text, {
481
+ children: "Item 3"
482
+ })
483
+ })
484
+ ]
485
+ })
486
+ ]
487
+ }),
488
+ /*#__PURE__*/ _jsxs(VerticalStack, {
489
+ gap: "4",
490
+ children: [
491
+ /*#__PURE__*/ _jsx(Text, {
492
+ variant: "headingSm",
493
+ children: "Large Gap (8)"
494
+ }),
495
+ /*#__PURE__*/ _jsxs(Grid, {
496
+ columns: 3,
497
+ gap: 8,
498
+ children: [
499
+ /*#__PURE__*/ _jsx(Card, {
500
+ padded: true,
501
+ children: /*#__PURE__*/ _jsx(Text, {
502
+ children: "Item 1"
503
+ })
504
+ }),
505
+ /*#__PURE__*/ _jsx(Card, {
506
+ padded: true,
507
+ children: /*#__PURE__*/ _jsx(Text, {
508
+ children: "Item 2"
509
+ })
510
+ }),
511
+ /*#__PURE__*/ _jsx(Card, {
512
+ padded: true,
513
+ children: /*#__PURE__*/ _jsx(Text, {
514
+ children: "Item 3"
515
+ })
516
+ })
517
+ ]
518
+ })
519
+ ]
520
+ })
521
+ ]
522
+ });
523
+ },
524
+ parameters: {
525
+ docs: {
526
+ description: {
527
+ story: 'Different gap sizes between grid items.'
528
+ },
529
+ source: {
530
+ transform: transformStorySource
531
+ }
532
+ }
533
+ }
534
+ };
535
+ export var Alignment = {
536
+ render: function() {
537
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
538
+ gap: "12",
539
+ children: [
540
+ /*#__PURE__*/ _jsxs(VerticalStack, {
541
+ gap: "4",
542
+ children: [
543
+ /*#__PURE__*/ _jsx(Text, {
544
+ variant: "headingSm",
545
+ children: "Center Justify & Align"
546
+ }),
547
+ /*#__PURE__*/ _jsx(Box, {
548
+ padding: "4",
549
+ borderWidth: "1",
550
+ borderStyle: "dashed",
551
+ borderColor: "border-subdued",
552
+ children: /*#__PURE__*/ _jsxs(Grid, {
553
+ columns: 3,
554
+ gap: 4,
555
+ justify: "center",
556
+ align: "center",
557
+ children: [
558
+ /*#__PURE__*/ _jsx(Box, {
559
+ style: {
560
+ width: '80px',
561
+ height: '60px'
562
+ },
563
+ background: "bg-surface-info-subdued",
564
+ borderRadius: "1"
565
+ }),
566
+ /*#__PURE__*/ _jsx(Box, {
567
+ style: {
568
+ width: '80px',
569
+ height: '80px'
570
+ },
571
+ background: "bg-surface-magic-subdued",
572
+ borderRadius: "1"
573
+ }),
574
+ /*#__PURE__*/ _jsx(Box, {
575
+ style: {
576
+ width: '80px',
577
+ height: '40px'
578
+ },
579
+ background: "bg-surface-success-subdued",
580
+ borderRadius: "1"
581
+ })
582
+ ]
583
+ })
584
+ })
585
+ ]
586
+ }),
587
+ /*#__PURE__*/ _jsxs(VerticalStack, {
588
+ gap: "4",
589
+ children: [
590
+ /*#__PURE__*/ _jsx(Text, {
591
+ variant: "headingSm",
592
+ children: "Start Justify & End Align"
593
+ }),
594
+ /*#__PURE__*/ _jsx(Box, {
595
+ padding: "4",
596
+ borderWidth: "1",
597
+ borderStyle: "dashed",
598
+ borderColor: "border-subdued",
599
+ children: /*#__PURE__*/ _jsxs(Grid, {
600
+ columns: 3,
601
+ gap: 4,
602
+ justify: "start",
603
+ align: "end",
604
+ children: [
605
+ /*#__PURE__*/ _jsx(Box, {
606
+ style: {
607
+ width: '80px',
608
+ height: '60px'
609
+ },
610
+ background: "bg-surface-info-subdued",
611
+ borderRadius: "1"
612
+ }),
613
+ /*#__PURE__*/ _jsx(Box, {
614
+ style: {
615
+ width: '80px',
616
+ height: '80px'
617
+ },
618
+ background: "bg-surface-magic-subdued",
619
+ borderRadius: "1"
620
+ }),
621
+ /*#__PURE__*/ _jsx(Box, {
622
+ style: {
623
+ width: '80px',
624
+ height: '40px'
625
+ },
626
+ background: "bg-surface-success-subdued",
627
+ borderRadius: "1"
628
+ })
629
+ ]
630
+ })
631
+ })
632
+ ]
633
+ })
634
+ ]
635
+ });
636
+ },
637
+ parameters: {
638
+ docs: {
639
+ description: {
640
+ story: 'Different alignment options for grid items.'
641
+ },
642
+ source: {
643
+ transform: transformStorySource
644
+ }
645
+ }
646
+ }
647
+ };
648
+ export var ProductCatalog = {
649
+ render: function() {
650
+ var products = [
651
+ {
652
+ name: 'Wireless Headphones',
653
+ price: '$99.99',
654
+ badge: 'Popular',
655
+ image: '🎧'
656
+ },
657
+ {
658
+ name: 'Smart Watch',
659
+ price: '$199.99',
660
+ badge: 'New',
661
+ image: '⌚'
662
+ },
663
+ {
664
+ name: 'Laptop Stand',
665
+ price: '$49.99',
666
+ badge: 'Sale',
667
+ image: '💻'
668
+ },
669
+ {
670
+ name: 'Desk Lamp',
671
+ price: '$79.99',
672
+ badge: null,
673
+ image: '💡'
674
+ },
675
+ {
676
+ name: 'Wireless Mouse',
677
+ price: '$29.99',
678
+ badge: 'Bestseller',
679
+ image: '🖱️'
680
+ },
681
+ {
682
+ name: 'USB-C Hub',
683
+ price: '$89.99',
684
+ badge: null,
685
+ image: '🔌'
686
+ }
687
+ ];
688
+ return /*#__PURE__*/ _jsx(Card, {
689
+ title: "Product Catalog",
690
+ padded: true,
691
+ children: /*#__PURE__*/ _jsx(Grid, {
692
+ columns: 3,
693
+ gap: 4,
694
+ children: products.map(function(product, index) {
695
+ return /*#__PURE__*/ _jsx(Card, {
696
+ padded: true,
697
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
698
+ gap: "4",
699
+ inlineAlign: "center",
700
+ children: [
701
+ /*#__PURE__*/ _jsx("div", {
702
+ style: {
703
+ fontSize: '3rem'
704
+ },
705
+ children: product.image
706
+ }),
707
+ /*#__PURE__*/ _jsxs(VerticalStack, {
708
+ gap: "2",
709
+ inlineAlign: "center",
710
+ children: [
711
+ /*#__PURE__*/ _jsx(Text, {
712
+ variant: "headingSm",
713
+ children: product.name
714
+ }),
715
+ product.badge && /*#__PURE__*/ _jsx(Badge, {
716
+ status: product.badge === 'Sale' ? 'warning' : 'default',
717
+ children: product.badge
718
+ })
719
+ ]
720
+ }),
721
+ /*#__PURE__*/ _jsx(Text, {
722
+ variant: "headingMd",
723
+ color: "interactive",
724
+ children: product.price
725
+ }),
726
+ /*#__PURE__*/ _jsx(Button, {
727
+ fullWidth: true,
728
+ children: "Add to Cart"
729
+ })
730
+ ]
731
+ })
732
+ }, index);
733
+ })
734
+ })
735
+ });
736
+ },
737
+ parameters: {
738
+ docs: {
739
+ description: {
740
+ story: 'Product catalog using a 3-column grid layout.'
741
+ },
742
+ source: {
743
+ transform: transformStorySource
744
+ }
745
+ }
746
+ }
747
+ };
748
+ export var DashboardLayout = {
749
+ render: function() {
750
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
751
+ gap: "8",
752
+ children: [
753
+ /*#__PURE__*/ _jsxs(Grid, {
754
+ columns: 4,
755
+ gap: 4,
756
+ children: [
757
+ /*#__PURE__*/ _jsxs(Card, {
758
+ padded: true,
759
+ children: [
760
+ /*#__PURE__*/ _jsx(Text, {
761
+ variant: "headingSm",
762
+ children: "Total Sales"
763
+ }),
764
+ /*#__PURE__*/ _jsx(Text, {
765
+ variant: "headingLg",
766
+ color: "text-success",
767
+ children: "$24,567"
768
+ }),
769
+ /*#__PURE__*/ _jsx(Text, {
770
+ color: "subdued",
771
+ children: "+12% from last month"
772
+ })
773
+ ]
774
+ }),
775
+ /*#__PURE__*/ _jsxs(Card, {
776
+ padded: true,
777
+ children: [
778
+ /*#__PURE__*/ _jsx(Text, {
779
+ variant: "headingSm",
780
+ children: "New Customers"
781
+ }),
782
+ /*#__PURE__*/ _jsx(Text, {
783
+ variant: "headingLg",
784
+ color: "text-interactive",
785
+ children: "1,234"
786
+ }),
787
+ /*#__PURE__*/ _jsx(Text, {
788
+ color: "subdued",
789
+ children: "+8% from last month"
790
+ })
791
+ ]
792
+ }),
793
+ /*#__PURE__*/ _jsxs(Card, {
794
+ padded: true,
795
+ children: [
796
+ /*#__PURE__*/ _jsx(Text, {
797
+ variant: "headingSm",
798
+ children: "Orders"
799
+ }),
800
+ /*#__PURE__*/ _jsx(Text, {
801
+ variant: "headingLg",
802
+ color: "text-warning",
803
+ children: "567"
804
+ }),
805
+ /*#__PURE__*/ _jsx(Text, {
806
+ color: "subdued",
807
+ children: "-3% from last month"
808
+ })
809
+ ]
810
+ }),
811
+ /*#__PURE__*/ _jsxs(Card, {
812
+ padded: true,
813
+ children: [
814
+ /*#__PURE__*/ _jsx(Text, {
815
+ variant: "headingSm",
816
+ children: "Conversion Rate"
817
+ }),
818
+ /*#__PURE__*/ _jsx(Text, {
819
+ variant: "headingLg",
820
+ color: "text-magic",
821
+ children: "3.2%"
822
+ }),
823
+ /*#__PURE__*/ _jsx(Text, {
824
+ color: "subdued",
825
+ children: "+0.5% from last month"
826
+ })
827
+ ]
828
+ })
829
+ ]
830
+ }),
831
+ /*#__PURE__*/ _jsxs(Grid, {
832
+ columns: 3,
833
+ gap: 4,
834
+ children: [
835
+ /*#__PURE__*/ _jsx(Grid.Cell, {
836
+ columnSpan: 2,
837
+ children: /*#__PURE__*/ _jsx(Card, {
838
+ title: "Recent Activity",
839
+ padded: true,
840
+ children: /*#__PURE__*/ _jsx(Text, {
841
+ color: "subdued",
842
+ children: "Chart would go here..."
843
+ })
844
+ })
845
+ }),
846
+ /*#__PURE__*/ _jsx(Card, {
847
+ title: "Quick Actions",
848
+ padded: true,
849
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
850
+ gap: "4",
851
+ children: [
852
+ /*#__PURE__*/ _jsx(Button, {
853
+ fullWidth: true,
854
+ children: "Add Product"
855
+ }),
856
+ /*#__PURE__*/ _jsx(Button, {
857
+ fullWidth: true,
858
+ children: "View Orders"
859
+ }),
860
+ /*#__PURE__*/ _jsx(Button, {
861
+ fullWidth: true,
862
+ children: "Customer Support"
863
+ }),
864
+ /*#__PURE__*/ _jsx(Button, {
865
+ fullWidth: true,
866
+ children: "Analytics"
867
+ })
868
+ ]
869
+ })
870
+ })
871
+ ]
872
+ })
873
+ ]
874
+ });
875
+ },
876
+ parameters: {
877
+ docs: {
878
+ description: {
879
+ story: 'Dashboard layout with metrics cards and main content area.'
880
+ },
881
+ source: {
882
+ transform: transformStorySource
883
+ }
884
+ }
885
+ }
886
+ };
887
+ export var TeamDirectory = {
888
+ render: function() {
889
+ var team = [
890
+ {
891
+ name: 'Sarah Johnson',
892
+ role: 'Product Manager',
893
+ avatar: '👩‍💼'
894
+ },
895
+ {
896
+ name: 'Mike Chen',
897
+ role: 'Lead Developer',
898
+ avatar: '👨‍💻'
899
+ },
900
+ {
901
+ name: 'Emily Davis',
902
+ role: 'UX Designer',
903
+ avatar: '👩‍🎨'
904
+ },
905
+ {
906
+ name: 'David Wilson',
907
+ role: 'Backend Developer',
908
+ avatar: '👨‍💻'
909
+ },
910
+ {
911
+ name: 'Lisa Brown',
912
+ role: 'QA Engineer',
913
+ avatar: '👩‍🔬'
914
+ },
915
+ {
916
+ name: 'Tom Anderson',
917
+ role: 'DevOps Engineer',
918
+ avatar: '👨‍🔧'
919
+ },
920
+ {
921
+ name: 'Anna Garcia',
922
+ role: 'Data Analyst',
923
+ avatar: '👩‍📊'
924
+ },
925
+ {
926
+ name: 'James Taylor',
927
+ role: 'Marketing Manager',
928
+ avatar: '👨‍💼'
929
+ }
930
+ ];
931
+ return /*#__PURE__*/ _jsx(Card, {
932
+ title: "Team Directory",
933
+ padded: true,
934
+ children: /*#__PURE__*/ _jsx(Grid, {
935
+ columns: 4,
936
+ gap: 4,
937
+ children: team.map(function(member, index) {
938
+ return /*#__PURE__*/ _jsx(Card, {
939
+ padded: true,
940
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
941
+ gap: "4",
942
+ inlineAlign: "center",
943
+ children: [
944
+ /*#__PURE__*/ _jsx("div", {
945
+ style: {
946
+ fontSize: '3rem'
947
+ },
948
+ children: member.avatar
949
+ }),
950
+ /*#__PURE__*/ _jsxs(VerticalStack, {
951
+ gap: "1",
952
+ inlineAlign: "center",
953
+ children: [
954
+ /*#__PURE__*/ _jsx(Text, {
955
+ variant: "headingSm",
956
+ children: member.name
957
+ }),
958
+ /*#__PURE__*/ _jsx(Text, {
959
+ color: "subdued",
960
+ variant: "bodySm",
961
+ children: member.role
962
+ })
963
+ ]
964
+ }),
965
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
966
+ gap: "2",
967
+ children: [
968
+ /*#__PURE__*/ _jsx(Button, {
969
+ size: "small",
970
+ fullWidth: true,
971
+ children: "Message"
972
+ }),
973
+ /*#__PURE__*/ _jsx(Button, {
974
+ size: "small",
975
+ fullWidth: true,
976
+ children: "View Profile"
977
+ })
978
+ ]
979
+ })
980
+ ]
981
+ })
982
+ }, index);
983
+ })
984
+ })
985
+ });
986
+ },
987
+ parameters: {
988
+ docs: {
989
+ description: {
990
+ story: 'Team directory with member cards in a responsive grid.'
991
+ },
992
+ source: {
993
+ transform: transformStorySource
994
+ }
995
+ }
996
+ }
997
+ };
998
+ export var ImageGallery = {
999
+ render: function() {
1000
+ return /*#__PURE__*/ _jsx(Card, {
1001
+ title: "Photo Gallery",
1002
+ padded: true,
1003
+ children: /*#__PURE__*/ _jsxs(Grid, {
1004
+ columns: 4,
1005
+ gap: 3,
1006
+ children: [
1007
+ /*#__PURE__*/ _jsx(Grid.Cell, {
1008
+ columnSpan: 2,
1009
+ children: /*#__PURE__*/ _jsx(Box, {
1010
+ style: {
1011
+ height: '200px',
1012
+ backgroundColor: '#e3f2fd',
1013
+ borderRadius: '8px'
1014
+ },
1015
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1016
+ gap: "0",
1017
+ blockAlign: "center",
1018
+ inlineAlign: "center",
1019
+ children: /*#__PURE__*/ _jsx(Text, {
1020
+ children: "Featured Image (2x1)"
1021
+ })
1022
+ })
1023
+ })
1024
+ }),
1025
+ /*#__PURE__*/ _jsx(Box, {
1026
+ style: {
1027
+ height: '95px',
1028
+ backgroundColor: '#f3e5f5',
1029
+ borderRadius: '8px'
1030
+ },
1031
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1032
+ gap: "0",
1033
+ blockAlign: "center",
1034
+ inlineAlign: "center",
1035
+ style: {
1036
+ height: '100%'
1037
+ },
1038
+ children: /*#__PURE__*/ _jsx(Text, {
1039
+ variant: "caption",
1040
+ children: "Image 1"
1041
+ })
1042
+ })
1043
+ }),
1044
+ /*#__PURE__*/ _jsx(Box, {
1045
+ style: {
1046
+ height: '95px',
1047
+ backgroundColor: '#e8f5e8',
1048
+ borderRadius: '8px'
1049
+ },
1050
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1051
+ gap: "0",
1052
+ blockAlign: "center",
1053
+ inlineAlign: "center",
1054
+ style: {
1055
+ height: '100%'
1056
+ },
1057
+ children: /*#__PURE__*/ _jsx(Text, {
1058
+ variant: "caption",
1059
+ children: "Image 2"
1060
+ })
1061
+ })
1062
+ }),
1063
+ /*#__PURE__*/ _jsx(Box, {
1064
+ style: {
1065
+ height: '95px',
1066
+ backgroundColor: '#fff3e0',
1067
+ borderRadius: '8px'
1068
+ },
1069
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1070
+ gap: "0",
1071
+ blockAlign: "center",
1072
+ inlineAlign: "center",
1073
+ style: {
1074
+ height: '100%'
1075
+ },
1076
+ children: /*#__PURE__*/ _jsx(Text, {
1077
+ variant: "caption",
1078
+ children: "Image 3"
1079
+ })
1080
+ })
1081
+ }),
1082
+ /*#__PURE__*/ _jsx(Box, {
1083
+ style: {
1084
+ height: '95px',
1085
+ backgroundColor: '#fce4ec',
1086
+ borderRadius: '8px'
1087
+ },
1088
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1089
+ gap: "0",
1090
+ blockAlign: "center",
1091
+ inlineAlign: "center",
1092
+ style: {
1093
+ height: '100%'
1094
+ },
1095
+ children: /*#__PURE__*/ _jsx(Text, {
1096
+ variant: "caption",
1097
+ children: "Image 4"
1098
+ })
1099
+ })
1100
+ }),
1101
+ /*#__PURE__*/ _jsx(Grid.Cell, {
1102
+ columnSpan: 3,
1103
+ children: /*#__PURE__*/ _jsx(Box, {
1104
+ style: {
1105
+ height: '120px',
1106
+ backgroundColor: '#e0f2f1',
1107
+ borderRadius: '8px'
1108
+ },
1109
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1110
+ gap: "0",
1111
+ blockAlign: "center",
1112
+ inlineAlign: "center",
1113
+ children: /*#__PURE__*/ _jsx(Text, {
1114
+ children: "Panoramic Image (3x1)"
1115
+ })
1116
+ })
1117
+ })
1118
+ }),
1119
+ /*#__PURE__*/ _jsx(Box, {
1120
+ style: {
1121
+ height: '120px',
1122
+ backgroundColor: '#f1f8e9',
1123
+ borderRadius: '8px'
1124
+ },
1125
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1126
+ gap: "0",
1127
+ blockAlign: "center",
1128
+ inlineAlign: "center",
1129
+ style: {
1130
+ height: '100%'
1131
+ },
1132
+ children: /*#__PURE__*/ _jsx(Text, {
1133
+ variant: "caption",
1134
+ children: "Image 5"
1135
+ })
1136
+ })
1137
+ })
1138
+ ]
1139
+ })
1140
+ });
1141
+ },
1142
+ parameters: {
1143
+ docs: {
1144
+ description: {
1145
+ story: 'Image gallery with varying column spans for different image sizes.'
1146
+ },
1147
+ source: {
1148
+ transform: transformStorySource
1149
+ }
1150
+ }
1151
+ }
1152
+ };