@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,1011 @@
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 HorizontalStack from "../components/HorizontalStack.js";
56
+ import VerticalStack from "../components/VerticalStack.js";
57
+ import Box from "../components/Box.js";
58
+ import Text from "../components/Text.js";
59
+ import Card from "../components/Card.js";
60
+ import Button from "../components/Button.js";
61
+ import Badge from "../components/Badge.js";
62
+ import Icon from "../components/Icon.js";
63
+ import { HomeMinor, ProductsMinor, CustomersMinor } from "@shopify/polaris-icons";
64
+ export default {
65
+ title: 'Litho/HorizontalStack',
66
+ component: HorizontalStack,
67
+ parameters: {
68
+ layout: 'padded',
69
+ docs: {
70
+ description: {
71
+ component: "A HorizontalStack component that arranges children horizontally with customizable spacing, alignment, and wrapping. It provides flexible layout options for organizing content in rows."
72
+ },
73
+ source: {
74
+ transform: transformStorySource
75
+ }
76
+ }
77
+ },
78
+ args: {
79
+ gap: '2',
80
+ align: 'start',
81
+ blockAlign: 'start',
82
+ wrap: true
83
+ },
84
+ tags: [
85
+ 'autodocs'
86
+ ],
87
+ argTypes: {
88
+ gap: {
89
+ control: 'select',
90
+ options: [
91
+ 'none',
92
+ '0',
93
+ 'px',
94
+ '0.5',
95
+ '1',
96
+ '2',
97
+ '3',
98
+ '4',
99
+ '6',
100
+ '8',
101
+ '10'
102
+ ],
103
+ description: 'Spacing between children'
104
+ },
105
+ align: {
106
+ control: 'select',
107
+ options: [
108
+ 'start',
109
+ 'center',
110
+ 'end',
111
+ 'space-between',
112
+ 'space-evenly',
113
+ 'space-around'
114
+ ],
115
+ description: 'Horizontal alignment of children'
116
+ },
117
+ blockAlign: {
118
+ control: 'select',
119
+ options: [
120
+ 'start',
121
+ 'center',
122
+ 'end'
123
+ ],
124
+ description: 'Vertical alignment of children'
125
+ },
126
+ wrap: {
127
+ control: 'boolean',
128
+ description: 'Whether children should wrap to next line'
129
+ },
130
+ as: {
131
+ control: 'text',
132
+ description: 'HTML element to render'
133
+ }
134
+ }
135
+ };
136
+ export var Default = {
137
+ render: function(args) {
138
+ return /*#__PURE__*/ _jsxs(HorizontalStack, _object_spread_props(_object_spread({}, args), {
139
+ children: [
140
+ /*#__PURE__*/ _jsx(Box, {
141
+ padding: "4",
142
+ background: "primary-subdued",
143
+ borderRadius: "default",
144
+ children: /*#__PURE__*/ _jsx(Text, {
145
+ children: "Item 1"
146
+ })
147
+ }),
148
+ /*#__PURE__*/ _jsx(Box, {
149
+ padding: "4",
150
+ background: "subdued",
151
+ borderRadius: "default",
152
+ children: /*#__PURE__*/ _jsx(Text, {
153
+ children: "Item 2"
154
+ })
155
+ }),
156
+ /*#__PURE__*/ _jsx(Box, {
157
+ padding: "4",
158
+ background: "success-subdued",
159
+ borderRadius: "default",
160
+ children: /*#__PURE__*/ _jsx(Text, {
161
+ children: "Item 3"
162
+ })
163
+ })
164
+ ]
165
+ }));
166
+ }
167
+ };
168
+ export var GapSizes = {
169
+ render: function() {
170
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
171
+ gap: "8",
172
+ children: [
173
+ /*#__PURE__*/ _jsxs(VerticalStack, {
174
+ gap: "4",
175
+ children: [
176
+ /*#__PURE__*/ _jsx(Text, {
177
+ variant: "headingSm",
178
+ children: "No Gap"
179
+ }),
180
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
181
+ gap: "none",
182
+ children: [
183
+ /*#__PURE__*/ _jsx(Button, {
184
+ children: "Button 1"
185
+ }),
186
+ /*#__PURE__*/ _jsx(Button, {
187
+ children: "Button 2"
188
+ }),
189
+ /*#__PURE__*/ _jsx(Button, {
190
+ children: "Button 3"
191
+ })
192
+ ]
193
+ })
194
+ ]
195
+ }),
196
+ /*#__PURE__*/ _jsxs(VerticalStack, {
197
+ gap: "4",
198
+ children: [
199
+ /*#__PURE__*/ _jsx(Text, {
200
+ variant: "headingSm",
201
+ children: "Small Gap (1)"
202
+ }),
203
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
204
+ gap: "1",
205
+ children: [
206
+ /*#__PURE__*/ _jsx(Button, {
207
+ children: "Button 1"
208
+ }),
209
+ /*#__PURE__*/ _jsx(Button, {
210
+ children: "Button 2"
211
+ }),
212
+ /*#__PURE__*/ _jsx(Button, {
213
+ children: "Button 3"
214
+ })
215
+ ]
216
+ })
217
+ ]
218
+ }),
219
+ /*#__PURE__*/ _jsxs(VerticalStack, {
220
+ gap: "4",
221
+ children: [
222
+ /*#__PURE__*/ _jsx(Text, {
223
+ variant: "headingSm",
224
+ children: "Medium Gap (4)"
225
+ }),
226
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
227
+ gap: "4",
228
+ children: [
229
+ /*#__PURE__*/ _jsx(Button, {
230
+ children: "Button 1"
231
+ }),
232
+ /*#__PURE__*/ _jsx(Button, {
233
+ children: "Button 2"
234
+ }),
235
+ /*#__PURE__*/ _jsx(Button, {
236
+ children: "Button 3"
237
+ })
238
+ ]
239
+ })
240
+ ]
241
+ }),
242
+ /*#__PURE__*/ _jsxs(VerticalStack, {
243
+ gap: "4",
244
+ children: [
245
+ /*#__PURE__*/ _jsx(Text, {
246
+ variant: "headingSm",
247
+ children: "Large Gap (8)"
248
+ }),
249
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
250
+ gap: "8",
251
+ children: [
252
+ /*#__PURE__*/ _jsx(Button, {
253
+ children: "Button 1"
254
+ }),
255
+ /*#__PURE__*/ _jsx(Button, {
256
+ children: "Button 2"
257
+ }),
258
+ /*#__PURE__*/ _jsx(Button, {
259
+ children: "Button 3"
260
+ })
261
+ ]
262
+ })
263
+ ]
264
+ })
265
+ ]
266
+ });
267
+ },
268
+ parameters: {
269
+ docs: {
270
+ description: {
271
+ story: 'Different gap sizes between stack items.'
272
+ }
273
+ }
274
+ }
275
+ };
276
+ export var HorizontalAlignment = {
277
+ render: function() {
278
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
279
+ gap: "8",
280
+ children: [
281
+ /*#__PURE__*/ _jsxs(VerticalStack, {
282
+ gap: "4",
283
+ children: [
284
+ /*#__PURE__*/ _jsx(Text, {
285
+ variant: "headingSm",
286
+ children: "Start Aligned"
287
+ }),
288
+ /*#__PURE__*/ _jsx(Box, {
289
+ border: "dashed",
290
+ padding: "4",
291
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
292
+ align: "start",
293
+ gap: "2",
294
+ children: [
295
+ /*#__PURE__*/ _jsx(Button, {
296
+ children: "Button 1"
297
+ }),
298
+ /*#__PURE__*/ _jsx(Button, {
299
+ children: "Button 2"
300
+ })
301
+ ]
302
+ })
303
+ })
304
+ ]
305
+ }),
306
+ /*#__PURE__*/ _jsxs(VerticalStack, {
307
+ gap: "4",
308
+ children: [
309
+ /*#__PURE__*/ _jsx(Text, {
310
+ variant: "headingSm",
311
+ children: "Center Aligned"
312
+ }),
313
+ /*#__PURE__*/ _jsx(Box, {
314
+ border: "dashed",
315
+ padding: "4",
316
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
317
+ align: "center",
318
+ gap: "2",
319
+ children: [
320
+ /*#__PURE__*/ _jsx(Button, {
321
+ children: "Button 1"
322
+ }),
323
+ /*#__PURE__*/ _jsx(Button, {
324
+ children: "Button 2"
325
+ })
326
+ ]
327
+ })
328
+ })
329
+ ]
330
+ }),
331
+ /*#__PURE__*/ _jsxs(VerticalStack, {
332
+ gap: "4",
333
+ children: [
334
+ /*#__PURE__*/ _jsx(Text, {
335
+ variant: "headingSm",
336
+ children: "End Aligned"
337
+ }),
338
+ /*#__PURE__*/ _jsx(Box, {
339
+ border: "dashed",
340
+ padding: "4",
341
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
342
+ align: "end",
343
+ gap: "2",
344
+ children: [
345
+ /*#__PURE__*/ _jsx(Button, {
346
+ children: "Button 1"
347
+ }),
348
+ /*#__PURE__*/ _jsx(Button, {
349
+ children: "Button 2"
350
+ })
351
+ ]
352
+ })
353
+ })
354
+ ]
355
+ }),
356
+ /*#__PURE__*/ _jsxs(VerticalStack, {
357
+ gap: "4",
358
+ children: [
359
+ /*#__PURE__*/ _jsx(Text, {
360
+ variant: "headingSm",
361
+ children: "Space Between"
362
+ }),
363
+ /*#__PURE__*/ _jsx(Box, {
364
+ border: "dashed",
365
+ padding: "4",
366
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
367
+ align: "space-between",
368
+ gap: "2",
369
+ children: [
370
+ /*#__PURE__*/ _jsx(Button, {
371
+ children: "Button 1"
372
+ }),
373
+ /*#__PURE__*/ _jsx(Button, {
374
+ children: "Button 2"
375
+ }),
376
+ /*#__PURE__*/ _jsx(Button, {
377
+ children: "Button 3"
378
+ })
379
+ ]
380
+ })
381
+ })
382
+ ]
383
+ })
384
+ ]
385
+ });
386
+ },
387
+ parameters: {
388
+ docs: {
389
+ description: {
390
+ story: 'Different horizontal alignment options.'
391
+ }
392
+ }
393
+ }
394
+ };
395
+ export var VerticalAlignment = {
396
+ render: function() {
397
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
398
+ gap: "8",
399
+ children: [
400
+ /*#__PURE__*/ _jsxs(VerticalStack, {
401
+ gap: "4",
402
+ children: [
403
+ /*#__PURE__*/ _jsx(Text, {
404
+ variant: "headingSm",
405
+ children: "Start Aligned"
406
+ }),
407
+ /*#__PURE__*/ _jsx(Box, {
408
+ border: "dashed",
409
+ padding: "4",
410
+ minHeight: "100px",
411
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
412
+ blockAlign: "start",
413
+ gap: "2",
414
+ children: [
415
+ /*#__PURE__*/ _jsx(Button, {
416
+ children: "Short"
417
+ }),
418
+ /*#__PURE__*/ _jsx(Box, {
419
+ padding: "8 4",
420
+ background: "subdued",
421
+ borderRadius: "default",
422
+ children: /*#__PURE__*/ _jsx(Text, {
423
+ children: "Tall Item"
424
+ })
425
+ }),
426
+ /*#__PURE__*/ _jsx(Button, {
427
+ children: "Short"
428
+ })
429
+ ]
430
+ })
431
+ })
432
+ ]
433
+ }),
434
+ /*#__PURE__*/ _jsxs(VerticalStack, {
435
+ gap: "4",
436
+ children: [
437
+ /*#__PURE__*/ _jsx(Text, {
438
+ variant: "headingSm",
439
+ children: "Center Aligned"
440
+ }),
441
+ /*#__PURE__*/ _jsx(Box, {
442
+ border: "dashed",
443
+ padding: "4",
444
+ minHeight: "100px",
445
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
446
+ blockAlign: "center",
447
+ gap: "2",
448
+ children: [
449
+ /*#__PURE__*/ _jsx(Button, {
450
+ children: "Short"
451
+ }),
452
+ /*#__PURE__*/ _jsx(Box, {
453
+ padding: "8 4",
454
+ background: "subdued",
455
+ borderRadius: "default",
456
+ children: /*#__PURE__*/ _jsx(Text, {
457
+ children: "Tall Item"
458
+ })
459
+ }),
460
+ /*#__PURE__*/ _jsx(Button, {
461
+ children: "Short"
462
+ })
463
+ ]
464
+ })
465
+ })
466
+ ]
467
+ }),
468
+ /*#__PURE__*/ _jsxs(VerticalStack, {
469
+ gap: "4",
470
+ children: [
471
+ /*#__PURE__*/ _jsx(Text, {
472
+ variant: "headingSm",
473
+ children: "End Aligned"
474
+ }),
475
+ /*#__PURE__*/ _jsx(Box, {
476
+ border: "dashed",
477
+ padding: "4",
478
+ minHeight: "100px",
479
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
480
+ blockAlign: "end",
481
+ gap: "2",
482
+ children: [
483
+ /*#__PURE__*/ _jsx(Button, {
484
+ children: "Short"
485
+ }),
486
+ /*#__PURE__*/ _jsx(Box, {
487
+ padding: "8 4",
488
+ background: "subdued",
489
+ borderRadius: "default",
490
+ children: /*#__PURE__*/ _jsx(Text, {
491
+ children: "Tall Item"
492
+ })
493
+ }),
494
+ /*#__PURE__*/ _jsx(Button, {
495
+ children: "Short"
496
+ })
497
+ ]
498
+ })
499
+ })
500
+ ]
501
+ })
502
+ ]
503
+ });
504
+ },
505
+ parameters: {
506
+ docs: {
507
+ description: {
508
+ story: 'Different vertical alignment options for items of varying heights.'
509
+ }
510
+ }
511
+ }
512
+ };
513
+ export var Wrapping = {
514
+ render: function() {
515
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
516
+ gap: "8",
517
+ children: [
518
+ /*#__PURE__*/ _jsxs(VerticalStack, {
519
+ gap: "4",
520
+ children: [
521
+ /*#__PURE__*/ _jsx(Text, {
522
+ variant: "headingSm",
523
+ children: "With Wrapping (default)"
524
+ }),
525
+ /*#__PURE__*/ _jsx(Box, {
526
+ border: "dashed",
527
+ padding: "4",
528
+ maxWidth: "300px",
529
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
530
+ wrap: true,
531
+ gap: "2",
532
+ children: [
533
+ /*#__PURE__*/ _jsx(Button, {
534
+ children: "Button 1"
535
+ }),
536
+ /*#__PURE__*/ _jsx(Button, {
537
+ children: "Button 2"
538
+ }),
539
+ /*#__PURE__*/ _jsx(Button, {
540
+ children: "Button 3"
541
+ }),
542
+ /*#__PURE__*/ _jsx(Button, {
543
+ children: "Button 4"
544
+ }),
545
+ /*#__PURE__*/ _jsx(Button, {
546
+ children: "Button 5"
547
+ }),
548
+ /*#__PURE__*/ _jsx(Button, {
549
+ children: "Button 6"
550
+ })
551
+ ]
552
+ })
553
+ })
554
+ ]
555
+ }),
556
+ /*#__PURE__*/ _jsxs(VerticalStack, {
557
+ gap: "4",
558
+ children: [
559
+ /*#__PURE__*/ _jsx(Text, {
560
+ variant: "headingSm",
561
+ children: "Without Wrapping"
562
+ }),
563
+ /*#__PURE__*/ _jsx(Box, {
564
+ border: "dashed",
565
+ padding: "4",
566
+ maxWidth: "300px",
567
+ overflowX: "auto",
568
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
569
+ wrap: false,
570
+ gap: "2",
571
+ children: [
572
+ /*#__PURE__*/ _jsx(Button, {
573
+ children: "Button 1"
574
+ }),
575
+ /*#__PURE__*/ _jsx(Button, {
576
+ children: "Button 2"
577
+ }),
578
+ /*#__PURE__*/ _jsx(Button, {
579
+ children: "Button 3"
580
+ }),
581
+ /*#__PURE__*/ _jsx(Button, {
582
+ children: "Button 4"
583
+ }),
584
+ /*#__PURE__*/ _jsx(Button, {
585
+ children: "Button 5"
586
+ }),
587
+ /*#__PURE__*/ _jsx(Button, {
588
+ children: "Button 6"
589
+ })
590
+ ]
591
+ })
592
+ })
593
+ ]
594
+ })
595
+ ]
596
+ });
597
+ },
598
+ parameters: {
599
+ docs: {
600
+ description: {
601
+ story: 'Comparison of wrapping vs non-wrapping behavior.'
602
+ }
603
+ }
604
+ }
605
+ };
606
+ export var ActionBar = {
607
+ render: function() {
608
+ return /*#__PURE__*/ _jsx(Card, {
609
+ title: "Document Actions",
610
+ padded: true,
611
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
612
+ align: "space-between",
613
+ blockAlign: "center",
614
+ children: [
615
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
616
+ gap: "2",
617
+ blockAlign: "center",
618
+ children: [
619
+ /*#__PURE__*/ _jsx(Text, {
620
+ variant: "headingSm",
621
+ children: "Document.pdf"
622
+ }),
623
+ /*#__PURE__*/ _jsx(Badge, {
624
+ children: "Draft"
625
+ })
626
+ ]
627
+ }),
628
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
629
+ gap: "2",
630
+ children: [
631
+ /*#__PURE__*/ _jsx(Button, {
632
+ children: "Edit"
633
+ }),
634
+ /*#__PURE__*/ _jsx(Button, {
635
+ children: "Share"
636
+ }),
637
+ /*#__PURE__*/ _jsx(Button, {
638
+ primary: true,
639
+ children: "Publish"
640
+ })
641
+ ]
642
+ })
643
+ ]
644
+ })
645
+ });
646
+ },
647
+ parameters: {
648
+ docs: {
649
+ description: {
650
+ story: 'Action bar layout with space-between alignment.'
651
+ }
652
+ }
653
+ }
654
+ };
655
+ export var NavigationMenu = {
656
+ render: function() {
657
+ return /*#__PURE__*/ _jsx(Card, {
658
+ children: /*#__PURE__*/ _jsx(Box, {
659
+ padding: "4",
660
+ borderBlockEnd: "divider",
661
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
662
+ align: "space-between",
663
+ blockAlign: "center",
664
+ children: [
665
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
666
+ gap: "6",
667
+ blockAlign: "center",
668
+ children: [
669
+ /*#__PURE__*/ _jsx(Text, {
670
+ variant: "headingMd",
671
+ children: "Brand"
672
+ }),
673
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
674
+ gap: "4",
675
+ as: "nav",
676
+ children: [
677
+ /*#__PURE__*/ _jsx(Button, {
678
+ plain: true,
679
+ children: "Home"
680
+ }),
681
+ /*#__PURE__*/ _jsx(Button, {
682
+ plain: true,
683
+ children: "Products"
684
+ }),
685
+ /*#__PURE__*/ _jsx(Button, {
686
+ plain: true,
687
+ children: "About"
688
+ }),
689
+ /*#__PURE__*/ _jsx(Button, {
690
+ plain: true,
691
+ children: "Contact"
692
+ })
693
+ ]
694
+ })
695
+ ]
696
+ }),
697
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
698
+ gap: "2",
699
+ children: [
700
+ /*#__PURE__*/ _jsx(Button, {
701
+ children: "Sign In"
702
+ }),
703
+ /*#__PURE__*/ _jsx(Button, {
704
+ primary: true,
705
+ children: "Sign Up"
706
+ })
707
+ ]
708
+ })
709
+ ]
710
+ })
711
+ })
712
+ });
713
+ },
714
+ parameters: {
715
+ docs: {
716
+ description: {
717
+ story: 'Navigation menu layout with brand and actions.'
718
+ }
719
+ }
720
+ }
721
+ };
722
+ export var IconAndText = {
723
+ render: function() {
724
+ return /*#__PURE__*/ _jsxs(VerticalStack, {
725
+ gap: "4",
726
+ children: [
727
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
728
+ gap: "2",
729
+ blockAlign: "center",
730
+ children: [
731
+ /*#__PURE__*/ _jsx(Icon, {
732
+ source: HomeMinor,
733
+ size: "sm"
734
+ }),
735
+ /*#__PURE__*/ _jsx(Text, {
736
+ children: "Dashboard"
737
+ })
738
+ ]
739
+ }),
740
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
741
+ gap: "2",
742
+ blockAlign: "center",
743
+ children: [
744
+ /*#__PURE__*/ _jsx(Icon, {
745
+ source: ProductsMinor,
746
+ size: "sm"
747
+ }),
748
+ /*#__PURE__*/ _jsx(Text, {
749
+ children: "Products"
750
+ }),
751
+ /*#__PURE__*/ _jsx(Badge, {
752
+ children: "42"
753
+ })
754
+ ]
755
+ }),
756
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
757
+ gap: "2",
758
+ blockAlign: "center",
759
+ children: [
760
+ /*#__PURE__*/ _jsx(Icon, {
761
+ source: CustomersMinor,
762
+ size: "sm"
763
+ }),
764
+ /*#__PURE__*/ _jsx(Text, {
765
+ children: "Customers"
766
+ }),
767
+ /*#__PURE__*/ _jsx(Badge, {
768
+ status: "warning",
769
+ children: "New"
770
+ })
771
+ ]
772
+ })
773
+ ]
774
+ });
775
+ },
776
+ parameters: {
777
+ docs: {
778
+ description: {
779
+ story: 'Icons combined with text and badges using center alignment.'
780
+ }
781
+ }
782
+ }
783
+ };
784
+ export var ResponsiveLayout = {
785
+ render: function() {
786
+ return /*#__PURE__*/ _jsx(Card, {
787
+ title: "Product Card",
788
+ padded: true,
789
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
790
+ gap: "4",
791
+ blockAlign: "start",
792
+ wrap: true,
793
+ children: [
794
+ /*#__PURE__*/ _jsx(Box, {
795
+ width: "200px",
796
+ height: "200px",
797
+ background: "subdued",
798
+ borderRadius: "lg",
799
+ flexShrink: 0
800
+ }),
801
+ /*#__PURE__*/ _jsx(Box, {
802
+ flex: "1",
803
+ minWidth: "250px",
804
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
805
+ gap: "4",
806
+ children: [
807
+ /*#__PURE__*/ _jsxs(VerticalStack, {
808
+ gap: "1",
809
+ children: [
810
+ /*#__PURE__*/ _jsx(Text, {
811
+ variant: "headingLg",
812
+ children: "Product Name"
813
+ }),
814
+ /*#__PURE__*/ _jsx(Text, {
815
+ color: "subdued",
816
+ children: "SKU: ABC123"
817
+ })
818
+ ]
819
+ }),
820
+ /*#__PURE__*/ _jsx(Text, {
821
+ children: "This is a detailed description of the product with information about its features, benefits, and specifications that customers need to know."
822
+ }),
823
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
824
+ gap: "2",
825
+ align: "space-between",
826
+ blockAlign: "center",
827
+ wrap: true,
828
+ children: [
829
+ /*#__PURE__*/ _jsx(Text, {
830
+ variant: "headingMd",
831
+ color: "primary",
832
+ children: "$99.99"
833
+ }),
834
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
835
+ gap: "2",
836
+ children: [
837
+ /*#__PURE__*/ _jsx(Button, {
838
+ children: "Add to Cart"
839
+ }),
840
+ /*#__PURE__*/ _jsx(Button, {
841
+ primary: true,
842
+ children: "Buy Now"
843
+ })
844
+ ]
845
+ })
846
+ ]
847
+ })
848
+ ]
849
+ })
850
+ })
851
+ ]
852
+ })
853
+ });
854
+ },
855
+ parameters: {
856
+ docs: {
857
+ description: {
858
+ story: 'Responsive product layout that adapts to different screen sizes.'
859
+ }
860
+ }
861
+ }
862
+ };
863
+ export var FormActions = {
864
+ render: function() {
865
+ return /*#__PURE__*/ _jsx(Card, {
866
+ title: "User Settings",
867
+ padded: true,
868
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
869
+ gap: "6",
870
+ children: [
871
+ /*#__PURE__*/ _jsx("input", {
872
+ placeholder: "Full Name",
873
+ style: {
874
+ padding: '0.75rem',
875
+ border: '1px solid #ccc',
876
+ borderRadius: '4px',
877
+ width: '100%'
878
+ }
879
+ }),
880
+ /*#__PURE__*/ _jsx("input", {
881
+ placeholder: "Email Address",
882
+ style: {
883
+ padding: '0.75rem',
884
+ border: '1px solid #ccc',
885
+ borderRadius: '4px',
886
+ width: '100%'
887
+ }
888
+ }),
889
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
890
+ align: "end",
891
+ gap: "2",
892
+ children: [
893
+ /*#__PURE__*/ _jsx(Button, {
894
+ children: "Cancel"
895
+ }),
896
+ /*#__PURE__*/ _jsx(Button, {
897
+ children: "Reset"
898
+ }),
899
+ /*#__PURE__*/ _jsx(Button, {
900
+ primary: true,
901
+ children: "Save Changes"
902
+ })
903
+ ]
904
+ })
905
+ ]
906
+ })
907
+ });
908
+ },
909
+ parameters: {
910
+ docs: {
911
+ description: {
912
+ story: 'Form with actions aligned to the right.'
913
+ }
914
+ }
915
+ }
916
+ };
917
+ export var StatusIndicators = {
918
+ render: function() {
919
+ return /*#__PURE__*/ _jsx(Card, {
920
+ title: "System Status",
921
+ padded: true,
922
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
923
+ gap: "4",
924
+ children: [
925
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
926
+ align: "space-between",
927
+ blockAlign: "center",
928
+ children: [
929
+ /*#__PURE__*/ _jsx(Text, {
930
+ children: "Database Connection"
931
+ }),
932
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
933
+ gap: "2",
934
+ blockAlign: "center",
935
+ children: [
936
+ /*#__PURE__*/ _jsx(Box, {
937
+ width: "8px",
938
+ height: "8px",
939
+ borderRadius: "full",
940
+ background: "success"
941
+ }),
942
+ /*#__PURE__*/ _jsx(Text, {
943
+ color: "subdued",
944
+ children: "Online"
945
+ })
946
+ ]
947
+ })
948
+ ]
949
+ }),
950
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
951
+ align: "space-between",
952
+ blockAlign: "center",
953
+ children: [
954
+ /*#__PURE__*/ _jsx(Text, {
955
+ children: "API Service"
956
+ }),
957
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
958
+ gap: "2",
959
+ blockAlign: "center",
960
+ children: [
961
+ /*#__PURE__*/ _jsx(Box, {
962
+ width: "8px",
963
+ height: "8px",
964
+ borderRadius: "full",
965
+ background: "warning"
966
+ }),
967
+ /*#__PURE__*/ _jsx(Text, {
968
+ color: "subdued",
969
+ children: "Warning"
970
+ })
971
+ ]
972
+ })
973
+ ]
974
+ }),
975
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
976
+ align: "space-between",
977
+ blockAlign: "center",
978
+ children: [
979
+ /*#__PURE__*/ _jsx(Text, {
980
+ children: "Cache System"
981
+ }),
982
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
983
+ gap: "2",
984
+ blockAlign: "center",
985
+ children: [
986
+ /*#__PURE__*/ _jsx(Box, {
987
+ width: "8px",
988
+ height: "8px",
989
+ borderRadius: "full",
990
+ background: "critical"
991
+ }),
992
+ /*#__PURE__*/ _jsx(Text, {
993
+ color: "subdued",
994
+ children: "Offline"
995
+ })
996
+ ]
997
+ })
998
+ ]
999
+ })
1000
+ ]
1001
+ })
1002
+ });
1003
+ },
1004
+ parameters: {
1005
+ docs: {
1006
+ description: {
1007
+ story: 'Status indicators with aligned labels and status indicators.'
1008
+ }
1009
+ }
1010
+ }
1011
+ };