@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,1240 @@
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 { transformStorySource } from "../utilities/transformers.js";
55
+ import VerticalStack from "../components/VerticalStack.js";
56
+ import Text from "../components/Text.js";
57
+ import Card from "../components/Card.js";
58
+ import Button from "../components/Button.js";
59
+ import Badge from "../components/Badge.js";
60
+ import HorizontalStack from "../components/HorizontalStack.js";
61
+ import Box from "../components/Box.js";
62
+ export default {
63
+ title: 'Litho/VerticalStack',
64
+ component: VerticalStack,
65
+ parameters: {
66
+ layout: 'padded',
67
+ docs: {
68
+ description: {
69
+ component: "A VerticalStack component that arranges children vertically with customizable spacing and alignment. It provides flexible layout options for organizing content in columns."
70
+ },
71
+ source: {
72
+ transform: transformStorySource
73
+ }
74
+ }
75
+ },
76
+ args: {
77
+ gap: '2',
78
+ align: 'start',
79
+ inlineAlign: 'start'
80
+ },
81
+ tags: [
82
+ 'autodocs'
83
+ ],
84
+ argTypes: {
85
+ gap: {
86
+ control: 'select',
87
+ options: [
88
+ 'none',
89
+ '0',
90
+ 'px',
91
+ '0.5',
92
+ '1',
93
+ '2',
94
+ '3',
95
+ '4',
96
+ '5',
97
+ '6',
98
+ '8',
99
+ '10'
100
+ ],
101
+ description: 'Spacing between children'
102
+ },
103
+ align: {
104
+ control: 'select',
105
+ options: [
106
+ 'start',
107
+ 'end',
108
+ 'center',
109
+ 'spaceBetween'
110
+ ],
111
+ description: 'Vertical alignment of children (main axis)'
112
+ },
113
+ inlineAlign: {
114
+ control: 'select',
115
+ options: [
116
+ 'start',
117
+ 'end',
118
+ 'center',
119
+ 'stretch'
120
+ ],
121
+ description: 'Horizontal alignment of children (cross axis)'
122
+ },
123
+ as: {
124
+ control: 'text',
125
+ description: 'HTML element to render'
126
+ }
127
+ }
128
+ };
129
+ export var Default = {
130
+ render: function(args) {
131
+ return /*#__PURE__*/ _jsxs(VerticalStack, _object_spread_props(_object_spread({}, args), {
132
+ children: [
133
+ /*#__PURE__*/ _jsx(Box, {
134
+ padding: "4",
135
+ background: "info-subdued",
136
+ borderRadius: "default",
137
+ children: /*#__PURE__*/ _jsx(Text, {
138
+ children: "Item 1"
139
+ })
140
+ }),
141
+ /*#__PURE__*/ _jsx(Box, {
142
+ padding: "4",
143
+ background: "magic-subdued",
144
+ borderRadius: "default",
145
+ children: /*#__PURE__*/ _jsx(Text, {
146
+ children: "Item 2"
147
+ })
148
+ }),
149
+ /*#__PURE__*/ _jsx(Box, {
150
+ padding: "4",
151
+ background: "success-subdued",
152
+ borderRadius: "default",
153
+ children: /*#__PURE__*/ _jsx(Text, {
154
+ children: "Item 3"
155
+ })
156
+ })
157
+ ]
158
+ }));
159
+ }
160
+ };
161
+ export var GapSizes = {
162
+ render: function() {
163
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
164
+ gap: "6",
165
+ children: [
166
+ /*#__PURE__*/ _jsxs(VerticalStack, {
167
+ gap: "4",
168
+ children: [
169
+ /*#__PURE__*/ _jsx(Text, {
170
+ variant: "headingSm",
171
+ children: "No Gap"
172
+ }),
173
+ /*#__PURE__*/ _jsx(Box, {
174
+ padding: "4",
175
+ borderWidth: "1",
176
+ borderColor: "neutral",
177
+ borderStyle: "dashed",
178
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
179
+ gap: "none",
180
+ children: [
181
+ /*#__PURE__*/ _jsx(Button, {
182
+ children: "Button 1"
183
+ }),
184
+ /*#__PURE__*/ _jsx(Button, {
185
+ children: "Button 2"
186
+ }),
187
+ /*#__PURE__*/ _jsx(Button, {
188
+ children: "Button 3"
189
+ })
190
+ ]
191
+ })
192
+ })
193
+ ]
194
+ }),
195
+ /*#__PURE__*/ _jsxs(VerticalStack, {
196
+ gap: "4",
197
+ children: [
198
+ /*#__PURE__*/ _jsx(Text, {
199
+ variant: "headingSm",
200
+ children: "Small Gap (1)"
201
+ }),
202
+ /*#__PURE__*/ _jsx(Box, {
203
+ padding: "4",
204
+ borderWidth: "1",
205
+ borderColor: "neutral",
206
+ borderStyle: "dashed",
207
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
208
+ gap: "1",
209
+ children: [
210
+ /*#__PURE__*/ _jsx(Button, {
211
+ children: "Button 1"
212
+ }),
213
+ /*#__PURE__*/ _jsx(Button, {
214
+ children: "Button 2"
215
+ }),
216
+ /*#__PURE__*/ _jsx(Button, {
217
+ children: "Button 3"
218
+ })
219
+ ]
220
+ })
221
+ })
222
+ ]
223
+ }),
224
+ /*#__PURE__*/ _jsxs(VerticalStack, {
225
+ gap: "4",
226
+ children: [
227
+ /*#__PURE__*/ _jsx(Text, {
228
+ variant: "headingSm",
229
+ children: "Medium Gap (4)"
230
+ }),
231
+ /*#__PURE__*/ _jsx(Box, {
232
+ padding: "4",
233
+ borderWidth: "1",
234
+ borderColor: "neutral",
235
+ borderStyle: "dashed",
236
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
237
+ gap: "4",
238
+ children: [
239
+ /*#__PURE__*/ _jsx(Button, {
240
+ children: "Button 1"
241
+ }),
242
+ /*#__PURE__*/ _jsx(Button, {
243
+ children: "Button 2"
244
+ }),
245
+ /*#__PURE__*/ _jsx(Button, {
246
+ children: "Button 3"
247
+ })
248
+ ]
249
+ })
250
+ })
251
+ ]
252
+ }),
253
+ /*#__PURE__*/ _jsxs(VerticalStack, {
254
+ gap: "4",
255
+ children: [
256
+ /*#__PURE__*/ _jsx(Text, {
257
+ variant: "headingSm",
258
+ children: "Large Gap (8)"
259
+ }),
260
+ /*#__PURE__*/ _jsx(Box, {
261
+ padding: "4",
262
+ borderWidth: "1",
263
+ borderColor: "neutral",
264
+ borderStyle: "dashed",
265
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
266
+ gap: "8",
267
+ children: [
268
+ /*#__PURE__*/ _jsx(Button, {
269
+ children: "Button 1"
270
+ }),
271
+ /*#__PURE__*/ _jsx(Button, {
272
+ children: "Button 2"
273
+ }),
274
+ /*#__PURE__*/ _jsx(Button, {
275
+ children: "Button 3"
276
+ })
277
+ ]
278
+ })
279
+ })
280
+ ]
281
+ })
282
+ ]
283
+ });
284
+ },
285
+ parameters: {
286
+ docs: {
287
+ description: {
288
+ story: 'Different gap sizes between stack items.'
289
+ }
290
+ }
291
+ }
292
+ };
293
+ export var VerticalAlignment = {
294
+ render: function() {
295
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
296
+ gap: "4",
297
+ children: [
298
+ /*#__PURE__*/ _jsxs(VerticalStack, {
299
+ gap: "4",
300
+ children: [
301
+ /*#__PURE__*/ _jsx(Text, {
302
+ variant: "headingSm",
303
+ children: "Start Aligned"
304
+ }),
305
+ /*#__PURE__*/ _jsx(Box, {
306
+ padding: "4",
307
+ borderWidth: "1",
308
+ borderColor: "neutral",
309
+ borderStyle: "dashed",
310
+ minBlockSize: "200px",
311
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
312
+ align: "start",
313
+ gap: "2",
314
+ children: [
315
+ /*#__PURE__*/ _jsx(Button, {
316
+ children: "Button 1"
317
+ }),
318
+ /*#__PURE__*/ _jsx(Button, {
319
+ children: "Button 2"
320
+ })
321
+ ]
322
+ })
323
+ })
324
+ ]
325
+ }),
326
+ /*#__PURE__*/ _jsxs(VerticalStack, {
327
+ gap: "4",
328
+ children: [
329
+ /*#__PURE__*/ _jsx(Text, {
330
+ variant: "headingSm",
331
+ children: "Center Aligned"
332
+ }),
333
+ /*#__PURE__*/ _jsx(Box, {
334
+ padding: "4",
335
+ borderWidth: "1",
336
+ borderColor: "neutral",
337
+ borderStyle: "dashed",
338
+ minBlockSize: "200px",
339
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
340
+ align: "center",
341
+ gap: "2",
342
+ children: [
343
+ /*#__PURE__*/ _jsx(Button, {
344
+ children: "Button 1"
345
+ }),
346
+ /*#__PURE__*/ _jsx(Button, {
347
+ children: "Button 2"
348
+ })
349
+ ]
350
+ })
351
+ })
352
+ ]
353
+ }),
354
+ /*#__PURE__*/ _jsxs(VerticalStack, {
355
+ gap: "4",
356
+ children: [
357
+ /*#__PURE__*/ _jsx(Text, {
358
+ variant: "headingSm",
359
+ children: "End Aligned"
360
+ }),
361
+ /*#__PURE__*/ _jsx(Box, {
362
+ padding: "4",
363
+ borderWidth: "1",
364
+ borderColor: "neutral",
365
+ borderStyle: "dashed",
366
+ minBlockSize: "200px",
367
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
368
+ align: "end",
369
+ gap: "2",
370
+ children: [
371
+ /*#__PURE__*/ _jsx(Button, {
372
+ children: "Button 1"
373
+ }),
374
+ /*#__PURE__*/ _jsx(Button, {
375
+ children: "Button 2"
376
+ })
377
+ ]
378
+ })
379
+ })
380
+ ]
381
+ }),
382
+ /*#__PURE__*/ _jsxs(VerticalStack, {
383
+ gap: "4",
384
+ children: [
385
+ /*#__PURE__*/ _jsx(Text, {
386
+ variant: "headingSm",
387
+ children: "Space Between"
388
+ }),
389
+ /*#__PURE__*/ _jsx(Box, {
390
+ padding: "4",
391
+ borderWidth: "1",
392
+ borderColor: "neutral",
393
+ borderStyle: "dashed",
394
+ minBlockSize: "200px",
395
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
396
+ align: "spaceBetween",
397
+ gap: "2",
398
+ children: [
399
+ /*#__PURE__*/ _jsx(Button, {
400
+ children: "Button 1"
401
+ }),
402
+ /*#__PURE__*/ _jsx(Button, {
403
+ children: "Button 2"
404
+ }),
405
+ /*#__PURE__*/ _jsx(Button, {
406
+ children: "Button 3"
407
+ })
408
+ ]
409
+ })
410
+ })
411
+ ]
412
+ })
413
+ ]
414
+ });
415
+ },
416
+ parameters: {
417
+ docs: {
418
+ description: {
419
+ story: 'Different vertical alignment options.'
420
+ }
421
+ }
422
+ }
423
+ };
424
+ export var HorizontalAlignment = {
425
+ render: function() {
426
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
427
+ gap: "4",
428
+ children: [
429
+ /*#__PURE__*/ _jsxs(VerticalStack, {
430
+ gap: "4",
431
+ children: [
432
+ /*#__PURE__*/ _jsx(Text, {
433
+ variant: "headingSm",
434
+ children: "Start Aligned"
435
+ }),
436
+ /*#__PURE__*/ _jsx(Box, {
437
+ padding: "4",
438
+ borderWidth: "1",
439
+ borderColor: "neutral",
440
+ borderStyle: "dashed",
441
+ minInlineSize: "200px",
442
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
443
+ inlineAlign: "start",
444
+ gap: "2",
445
+ children: [
446
+ /*#__PURE__*/ _jsx(Button, {
447
+ children: "Short"
448
+ }),
449
+ /*#__PURE__*/ _jsx(Button, {
450
+ children: "Medium Button"
451
+ }),
452
+ /*#__PURE__*/ _jsx(Button, {
453
+ children: "Very Long Button Text"
454
+ })
455
+ ]
456
+ })
457
+ })
458
+ ]
459
+ }),
460
+ /*#__PURE__*/ _jsxs(VerticalStack, {
461
+ gap: "4",
462
+ children: [
463
+ /*#__PURE__*/ _jsx(Text, {
464
+ variant: "headingSm",
465
+ children: "Center Aligned"
466
+ }),
467
+ /*#__PURE__*/ _jsx(Box, {
468
+ padding: "4",
469
+ borderWidth: "1",
470
+ borderColor: "neutral",
471
+ borderStyle: "dashed",
472
+ minInlineSize: "200px",
473
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
474
+ inlineAlign: "center",
475
+ gap: "2",
476
+ children: [
477
+ /*#__PURE__*/ _jsx(Button, {
478
+ children: "Short"
479
+ }),
480
+ /*#__PURE__*/ _jsx(Button, {
481
+ children: "Medium Button"
482
+ }),
483
+ /*#__PURE__*/ _jsx(Button, {
484
+ children: "Very Long Button Text"
485
+ })
486
+ ]
487
+ })
488
+ })
489
+ ]
490
+ }),
491
+ /*#__PURE__*/ _jsxs(VerticalStack, {
492
+ gap: "4",
493
+ children: [
494
+ /*#__PURE__*/ _jsx(Text, {
495
+ variant: "headingSm",
496
+ children: "End Aligned"
497
+ }),
498
+ /*#__PURE__*/ _jsx(Box, {
499
+ padding: "4",
500
+ borderWidth: "1",
501
+ borderColor: "neutral",
502
+ borderStyle: "dashed",
503
+ minInlineSize: "200px",
504
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
505
+ inlineAlign: "end",
506
+ gap: "2",
507
+ children: [
508
+ /*#__PURE__*/ _jsx(Button, {
509
+ children: "Short"
510
+ }),
511
+ /*#__PURE__*/ _jsx(Button, {
512
+ children: "Medium Button"
513
+ }),
514
+ /*#__PURE__*/ _jsx(Button, {
515
+ children: "Very Long Button Text"
516
+ })
517
+ ]
518
+ })
519
+ })
520
+ ]
521
+ }),
522
+ /*#__PURE__*/ _jsxs(VerticalStack, {
523
+ gap: "4",
524
+ children: [
525
+ /*#__PURE__*/ _jsx(Text, {
526
+ variant: "headingSm",
527
+ children: "Stretch"
528
+ }),
529
+ /*#__PURE__*/ _jsx(Box, {
530
+ padding: "4",
531
+ borderWidth: "1",
532
+ borderColor: "neutral",
533
+ borderStyle: "dashed",
534
+ minInlineSize: "200px",
535
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
536
+ inlineAlign: "stretch",
537
+ gap: "2",
538
+ children: [
539
+ /*#__PURE__*/ _jsx(Button, {
540
+ children: "Short"
541
+ }),
542
+ /*#__PURE__*/ _jsx(Button, {
543
+ children: "Medium Button"
544
+ }),
545
+ /*#__PURE__*/ _jsx(Button, {
546
+ children: "Very Long Button Text"
547
+ })
548
+ ]
549
+ })
550
+ })
551
+ ]
552
+ })
553
+ ]
554
+ });
555
+ },
556
+ parameters: {
557
+ docs: {
558
+ description: {
559
+ story: 'Different horizontal alignment options for items of varying widths.'
560
+ }
561
+ }
562
+ }
563
+ };
564
+ export var SidebarLayout = {
565
+ render: function() {
566
+ return /*#__PURE__*/ _jsx(Box, {
567
+ maxInlineSize: "280px",
568
+ children: /*#__PURE__*/ _jsx(Card, {
569
+ title: "Application Sidebar",
570
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
571
+ gap: "2",
572
+ inlineAlign: "stretch",
573
+ children: [
574
+ /*#__PURE__*/ _jsx(Box, {
575
+ padding: "4",
576
+ background: "subdued",
577
+ children: /*#__PURE__*/ _jsx(Text, {
578
+ variant: "headingSm",
579
+ children: "Navigation"
580
+ })
581
+ }),
582
+ /*#__PURE__*/ _jsx(Box, {
583
+ paddingInline: "4",
584
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
585
+ gap: "1",
586
+ children: [
587
+ /*#__PURE__*/ _jsx(Button, {
588
+ plain: true,
589
+ textAlign: "left",
590
+ children: "Dashboard"
591
+ }),
592
+ /*#__PURE__*/ _jsx(Button, {
593
+ plain: true,
594
+ textAlign: "left",
595
+ children: "Projects"
596
+ }),
597
+ /*#__PURE__*/ _jsx(Button, {
598
+ plain: true,
599
+ textAlign: "left",
600
+ children: "Team"
601
+ }),
602
+ /*#__PURE__*/ _jsx(Button, {
603
+ plain: true,
604
+ textAlign: "left",
605
+ children: "Settings"
606
+ })
607
+ ]
608
+ })
609
+ }),
610
+ /*#__PURE__*/ _jsx(Box, {
611
+ padding: "4",
612
+ background: "subdued",
613
+ children: /*#__PURE__*/ _jsx(Text, {
614
+ variant: "headingSm",
615
+ children: "Recent"
616
+ })
617
+ }),
618
+ /*#__PURE__*/ _jsx(Box, {
619
+ paddingInline: "4",
620
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
621
+ gap: "2",
622
+ children: [
623
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
624
+ align: "space-between",
625
+ blockAlign: "center",
626
+ children: [
627
+ /*#__PURE__*/ _jsx(Text, {
628
+ variant: "bodySm",
629
+ children: "Project Alpha"
630
+ }),
631
+ /*#__PURE__*/ _jsx(Badge, {
632
+ children: "Active"
633
+ })
634
+ ]
635
+ }),
636
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
637
+ align: "space-between",
638
+ blockAlign: "center",
639
+ children: [
640
+ /*#__PURE__*/ _jsx(Text, {
641
+ variant: "bodySm",
642
+ children: "Project Beta"
643
+ }),
644
+ /*#__PURE__*/ _jsx(Badge, {
645
+ status: "warning",
646
+ children: "Review"
647
+ })
648
+ ]
649
+ })
650
+ ]
651
+ })
652
+ }),
653
+ /*#__PURE__*/ _jsx(Box, {
654
+ padding: "4",
655
+ borderBlockStartWidth: "1",
656
+ borderColor: "neutral",
657
+ children: /*#__PURE__*/ _jsx(Text, {
658
+ variant: "caption",
659
+ color: "subdued",
660
+ children: "\xa9 2024 Company"
661
+ })
662
+ })
663
+ ]
664
+ })
665
+ })
666
+ });
667
+ },
668
+ parameters: {
669
+ docs: {
670
+ description: {
671
+ story: 'Sidebar layout with navigation sections and footer.'
672
+ }
673
+ }
674
+ }
675
+ };
676
+ export var FormLayout = {
677
+ render: function() {
678
+ return /*#__PURE__*/ _jsx(Card, {
679
+ title: "Create Account",
680
+ padded: true,
681
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
682
+ gap: "4",
683
+ inlineAlign: "stretch",
684
+ children: [
685
+ /*#__PURE__*/ _jsxs(VerticalStack, {
686
+ gap: "2",
687
+ children: [
688
+ /*#__PURE__*/ _jsx(Text, {
689
+ variant: "headingSm",
690
+ children: "Personal Information"
691
+ }),
692
+ /*#__PURE__*/ _jsx(Box, {
693
+ as: "input",
694
+ placeholder: "Full Name",
695
+ padding: "3",
696
+ borderWidth: "1",
697
+ borderColor: "neutral",
698
+ borderRadius: "default"
699
+ }),
700
+ /*#__PURE__*/ _jsx(Box, {
701
+ as: "input",
702
+ placeholder: "Email Address",
703
+ padding: "3",
704
+ borderWidth: "1",
705
+ borderColor: "neutral",
706
+ borderRadius: "default"
707
+ })
708
+ ]
709
+ }),
710
+ /*#__PURE__*/ _jsxs(VerticalStack, {
711
+ gap: "2",
712
+ children: [
713
+ /*#__PURE__*/ _jsx(Text, {
714
+ variant: "headingSm",
715
+ children: "Security"
716
+ }),
717
+ /*#__PURE__*/ _jsx(Box, {
718
+ as: "input",
719
+ type: "password",
720
+ placeholder: "Password",
721
+ padding: "3",
722
+ borderWidth: "1",
723
+ borderColor: "neutral",
724
+ borderRadius: "default"
725
+ }),
726
+ /*#__PURE__*/ _jsx(Box, {
727
+ as: "input",
728
+ type: "password",
729
+ placeholder: "Confirm Password",
730
+ padding: "3",
731
+ borderWidth: "1",
732
+ borderColor: "neutral",
733
+ borderRadius: "default"
734
+ })
735
+ ]
736
+ }),
737
+ /*#__PURE__*/ _jsxs(VerticalStack, {
738
+ gap: "2",
739
+ children: [
740
+ /*#__PURE__*/ _jsx(Text, {
741
+ variant: "headingSm",
742
+ children: "Preferences"
743
+ }),
744
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
745
+ gap: "2",
746
+ blockAlign: "center",
747
+ children: [
748
+ /*#__PURE__*/ _jsx("input", {
749
+ type: "checkbox"
750
+ }),
751
+ /*#__PURE__*/ _jsx(Text, {
752
+ children: "Subscribe to newsletter"
753
+ })
754
+ ]
755
+ }),
756
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
757
+ gap: "2",
758
+ blockAlign: "center",
759
+ children: [
760
+ /*#__PURE__*/ _jsx("input", {
761
+ type: "checkbox"
762
+ }),
763
+ /*#__PURE__*/ _jsx(Text, {
764
+ children: "Receive product updates"
765
+ })
766
+ ]
767
+ })
768
+ ]
769
+ }),
770
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
771
+ gap: "2",
772
+ align: "end",
773
+ children: [
774
+ /*#__PURE__*/ _jsx(Button, {
775
+ children: "Cancel"
776
+ }),
777
+ /*#__PURE__*/ _jsx(Button, {
778
+ primary: true,
779
+ children: "Create Account"
780
+ })
781
+ ]
782
+ })
783
+ ]
784
+ })
785
+ });
786
+ },
787
+ parameters: {
788
+ docs: {
789
+ description: {
790
+ story: 'Form layout with grouped sections using vertical stacks.'
791
+ }
792
+ }
793
+ }
794
+ };
795
+ export var StatusList = {
796
+ render: function() {
797
+ return /*#__PURE__*/ _jsx(Card, {
798
+ title: "System Status",
799
+ padded: true,
800
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
801
+ gap: "3",
802
+ children: [
803
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
804
+ align: "space-between",
805
+ blockAlign: "center",
806
+ children: [
807
+ /*#__PURE__*/ _jsxs(VerticalStack, {
808
+ gap: "0.5",
809
+ children: [
810
+ /*#__PURE__*/ _jsx(Text, {
811
+ variant: "headingSm",
812
+ children: "Database"
813
+ }),
814
+ /*#__PURE__*/ _jsx(Text, {
815
+ color: "subdued",
816
+ variant: "bodySm",
817
+ children: "Primary connection"
818
+ })
819
+ ]
820
+ }),
821
+ /*#__PURE__*/ _jsx(Badge, {
822
+ status: "success",
823
+ children: "Online"
824
+ })
825
+ ]
826
+ }),
827
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
828
+ align: "space-between",
829
+ blockAlign: "center",
830
+ children: [
831
+ /*#__PURE__*/ _jsxs(VerticalStack, {
832
+ gap: "0.5",
833
+ children: [
834
+ /*#__PURE__*/ _jsx(Text, {
835
+ variant: "headingSm",
836
+ children: "API Gateway"
837
+ }),
838
+ /*#__PURE__*/ _jsx(Text, {
839
+ color: "subdued",
840
+ variant: "bodySm",
841
+ children: "External services"
842
+ })
843
+ ]
844
+ }),
845
+ /*#__PURE__*/ _jsx(Badge, {
846
+ status: "warning",
847
+ children: "Degraded"
848
+ })
849
+ ]
850
+ }),
851
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
852
+ align: "space-between",
853
+ blockAlign: "center",
854
+ children: [
855
+ /*#__PURE__*/ _jsxs(VerticalStack, {
856
+ gap: "0.5",
857
+ children: [
858
+ /*#__PURE__*/ _jsx(Text, {
859
+ variant: "headingSm",
860
+ children: "Cache Layer"
861
+ }),
862
+ /*#__PURE__*/ _jsx(Text, {
863
+ color: "subdued",
864
+ variant: "bodySm",
865
+ children: "Redis cluster"
866
+ })
867
+ ]
868
+ }),
869
+ /*#__PURE__*/ _jsx(Badge, {
870
+ status: "critical",
871
+ children: "Offline"
872
+ })
873
+ ]
874
+ }),
875
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
876
+ align: "space-between",
877
+ blockAlign: "center",
878
+ children: [
879
+ /*#__PURE__*/ _jsxs(VerticalStack, {
880
+ gap: "0.5",
881
+ children: [
882
+ /*#__PURE__*/ _jsx(Text, {
883
+ variant: "headingSm",
884
+ children: "CDN"
885
+ }),
886
+ /*#__PURE__*/ _jsx(Text, {
887
+ color: "subdued",
888
+ variant: "bodySm",
889
+ children: "Content delivery"
890
+ })
891
+ ]
892
+ }),
893
+ /*#__PURE__*/ _jsx(Badge, {
894
+ status: "success",
895
+ children: "Online"
896
+ })
897
+ ]
898
+ })
899
+ ]
900
+ })
901
+ });
902
+ },
903
+ parameters: {
904
+ docs: {
905
+ description: {
906
+ story: 'Status list with service information and status badges.'
907
+ }
908
+ }
909
+ }
910
+ };
911
+ export var NotificationCenter = {
912
+ render: function() {
913
+ return /*#__PURE__*/ _jsx(Box, {
914
+ maxInlineSize: "350px",
915
+ children: /*#__PURE__*/ _jsx(Card, {
916
+ title: "Notifications",
917
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
918
+ gap: "0",
919
+ children: [
920
+ /*#__PURE__*/ _jsx(Box, {
921
+ padding: "4",
922
+ borderBlockEndWidth: "1",
923
+ borderColor: "neutral",
924
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
925
+ gap: "1",
926
+ children: [
927
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
928
+ align: "space-between",
929
+ blockAlign: "start",
930
+ children: [
931
+ /*#__PURE__*/ _jsx(Text, {
932
+ variant: "headingSm",
933
+ children: "New Order Received"
934
+ }),
935
+ /*#__PURE__*/ _jsx(Text, {
936
+ variant: "caption",
937
+ color: "subdued",
938
+ children: "2m ago"
939
+ })
940
+ ]
941
+ }),
942
+ /*#__PURE__*/ _jsx(Text, {
943
+ variant: "bodySm",
944
+ children: "Order #1234 has been placed by customer John Doe."
945
+ }),
946
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
947
+ gap: "2",
948
+ children: [
949
+ /*#__PURE__*/ _jsx(Button, {
950
+ size: "small",
951
+ children: "View Order"
952
+ }),
953
+ /*#__PURE__*/ _jsx(Button, {
954
+ size: "small",
955
+ plain: true,
956
+ children: "Dismiss"
957
+ })
958
+ ]
959
+ })
960
+ ]
961
+ })
962
+ }),
963
+ /*#__PURE__*/ _jsx(Box, {
964
+ padding: "4",
965
+ borderBlockEndWidth: "1",
966
+ borderColor: "neutral",
967
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
968
+ gap: "1",
969
+ children: [
970
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
971
+ align: "space-between",
972
+ blockAlign: "start",
973
+ children: [
974
+ /*#__PURE__*/ _jsx(Text, {
975
+ variant: "headingSm",
976
+ children: "Payment Processed"
977
+ }),
978
+ /*#__PURE__*/ _jsx(Text, {
979
+ variant: "caption",
980
+ color: "subdued",
981
+ children: "5m ago"
982
+ })
983
+ ]
984
+ }),
985
+ /*#__PURE__*/ _jsx(Text, {
986
+ variant: "bodySm",
987
+ children: "Payment of $99.99 has been successfully processed."
988
+ }),
989
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
990
+ gap: "2",
991
+ children: [
992
+ /*#__PURE__*/ _jsx(Button, {
993
+ size: "small",
994
+ children: "View Details"
995
+ }),
996
+ /*#__PURE__*/ _jsx(Button, {
997
+ size: "small",
998
+ plain: true,
999
+ children: "Dismiss"
1000
+ })
1001
+ ]
1002
+ })
1003
+ ]
1004
+ })
1005
+ }),
1006
+ /*#__PURE__*/ _jsx(Box, {
1007
+ padding: "4",
1008
+ borderBlockEndWidth: "1",
1009
+ borderColor: "neutral",
1010
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1011
+ gap: "1",
1012
+ children: [
1013
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1014
+ align: "space-between",
1015
+ blockAlign: "start",
1016
+ children: [
1017
+ /*#__PURE__*/ _jsx(Text, {
1018
+ variant: "headingSm",
1019
+ children: "System Maintenance"
1020
+ }),
1021
+ /*#__PURE__*/ _jsx(Text, {
1022
+ variant: "caption",
1023
+ color: "subdued",
1024
+ children: "1h ago"
1025
+ })
1026
+ ]
1027
+ }),
1028
+ /*#__PURE__*/ _jsx(Text, {
1029
+ variant: "bodySm",
1030
+ children: "Scheduled maintenance will begin at 2:00 AM tomorrow."
1031
+ }),
1032
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1033
+ gap: "2",
1034
+ children: [
1035
+ /*#__PURE__*/ _jsx(Button, {
1036
+ size: "small",
1037
+ children: "Learn More"
1038
+ }),
1039
+ /*#__PURE__*/ _jsx(Button, {
1040
+ size: "small",
1041
+ plain: true,
1042
+ children: "Dismiss"
1043
+ })
1044
+ ]
1045
+ })
1046
+ ]
1047
+ })
1048
+ }),
1049
+ /*#__PURE__*/ _jsx(Box, {
1050
+ padding: "4",
1051
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1052
+ inlineAlign: "center",
1053
+ children: /*#__PURE__*/ _jsx(Button, {
1054
+ plain: true,
1055
+ children: "View All Notifications"
1056
+ })
1057
+ })
1058
+ })
1059
+ ]
1060
+ })
1061
+ })
1062
+ });
1063
+ },
1064
+ parameters: {
1065
+ docs: {
1066
+ description: {
1067
+ story: 'Notification center with stacked notification items.'
1068
+ }
1069
+ }
1070
+ }
1071
+ };
1072
+ export var PricingCard = {
1073
+ render: function() {
1074
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
1075
+ gap: "4",
1076
+ children: [
1077
+ /*#__PURE__*/ _jsx(Box, {
1078
+ maxInlineSize: "280px",
1079
+ children: /*#__PURE__*/ _jsx(Card, {
1080
+ padded: true,
1081
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1082
+ gap: "4",
1083
+ inlineAlign: "center",
1084
+ children: [
1085
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1086
+ gap: "1",
1087
+ inlineAlign: "center",
1088
+ children: [
1089
+ /*#__PURE__*/ _jsx(Text, {
1090
+ variant: "headingLg",
1091
+ children: "Basic"
1092
+ }),
1093
+ /*#__PURE__*/ _jsx(Text, {
1094
+ color: "subdued",
1095
+ children: "Perfect for individuals"
1096
+ })
1097
+ ]
1098
+ }),
1099
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1100
+ gap: "0.5",
1101
+ inlineAlign: "center",
1102
+ children: [
1103
+ /*#__PURE__*/ _jsx(Text, {
1104
+ variant: "heading2xl",
1105
+ fontWeight: "bold",
1106
+ children: "$9"
1107
+ }),
1108
+ /*#__PURE__*/ _jsx(Text, {
1109
+ color: "subdued",
1110
+ children: "per month"
1111
+ })
1112
+ ]
1113
+ }),
1114
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1115
+ gap: "2",
1116
+ inlineAlign: "stretch",
1117
+ children: [
1118
+ /*#__PURE__*/ _jsx(Text, {
1119
+ children: "✓ 5 projects"
1120
+ }),
1121
+ /*#__PURE__*/ _jsx(Text, {
1122
+ children: "✓ 1GB storage"
1123
+ }),
1124
+ /*#__PURE__*/ _jsx(Text, {
1125
+ children: "✓ Email support"
1126
+ }),
1127
+ /*#__PURE__*/ _jsx(Text, {
1128
+ color: "subdued",
1129
+ children: "✗ Advanced features"
1130
+ }),
1131
+ /*#__PURE__*/ _jsx(Text, {
1132
+ color: "subdued",
1133
+ children: "✗ Priority support"
1134
+ })
1135
+ ]
1136
+ }),
1137
+ /*#__PURE__*/ _jsx(Box, {
1138
+ inlineSize: "100%",
1139
+ children: /*#__PURE__*/ _jsx(Button, {
1140
+ fullWidth: true,
1141
+ children: "Choose Plan"
1142
+ })
1143
+ })
1144
+ ]
1145
+ })
1146
+ })
1147
+ }),
1148
+ /*#__PURE__*/ _jsx(Box, {
1149
+ maxInlineSize: "280px",
1150
+ children: /*#__PURE__*/ _jsx(Card, {
1151
+ padded: true,
1152
+ borderWidth: "2",
1153
+ borderColor: "highlight",
1154
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1155
+ gap: "4",
1156
+ inlineAlign: "center",
1157
+ children: [
1158
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1159
+ gap: "1",
1160
+ inlineAlign: "center",
1161
+ children: [
1162
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1163
+ gap: "2",
1164
+ blockAlign: "center",
1165
+ children: [
1166
+ /*#__PURE__*/ _jsx(Text, {
1167
+ variant: "headingLg",
1168
+ children: "Pro"
1169
+ }),
1170
+ /*#__PURE__*/ _jsx(Badge, {
1171
+ status: "highlight",
1172
+ children: "Popular"
1173
+ })
1174
+ ]
1175
+ }),
1176
+ /*#__PURE__*/ _jsx(Text, {
1177
+ color: "subdued",
1178
+ children: "Great for small teams"
1179
+ })
1180
+ ]
1181
+ }),
1182
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1183
+ gap: "0.5",
1184
+ inlineAlign: "center",
1185
+ children: [
1186
+ /*#__PURE__*/ _jsx(Text, {
1187
+ variant: "heading2xl",
1188
+ fontWeight: "bold",
1189
+ children: "$29"
1190
+ }),
1191
+ /*#__PURE__*/ _jsx(Text, {
1192
+ color: "subdued",
1193
+ children: "per month"
1194
+ })
1195
+ ]
1196
+ }),
1197
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1198
+ gap: "2",
1199
+ inlineAlign: "stretch",
1200
+ children: [
1201
+ /*#__PURE__*/ _jsx(Text, {
1202
+ children: "✓ Unlimited projects"
1203
+ }),
1204
+ /*#__PURE__*/ _jsx(Text, {
1205
+ children: "✓ 100GB storage"
1206
+ }),
1207
+ /*#__PURE__*/ _jsx(Text, {
1208
+ children: "✓ Priority support"
1209
+ }),
1210
+ /*#__PURE__*/ _jsx(Text, {
1211
+ children: "✓ Advanced features"
1212
+ }),
1213
+ /*#__PURE__*/ _jsx(Text, {
1214
+ children: "✓ Team collaboration"
1215
+ })
1216
+ ]
1217
+ }),
1218
+ /*#__PURE__*/ _jsx(Box, {
1219
+ inlineSize: "100%",
1220
+ children: /*#__PURE__*/ _jsx(Button, {
1221
+ primary: true,
1222
+ fullWidth: true,
1223
+ children: "Choose Plan"
1224
+ })
1225
+ })
1226
+ ]
1227
+ })
1228
+ })
1229
+ })
1230
+ ]
1231
+ });
1232
+ },
1233
+ parameters: {
1234
+ docs: {
1235
+ description: {
1236
+ story: 'Pricing cards using vertical stacks for content organization.'
1237
+ }
1238
+ }
1239
+ }
1240
+ };