@heymantle/litho 0.0.3 → 0.0.5

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 (369) 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 +55 -22
  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 +78 -18
  9. package/dist/cjs/components/Card.js +6 -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 +10 -5
  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 +17 -9
  16. package/dist/cjs/components/Filters.js +36 -23
  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 +48 -23
  20. package/dist/cjs/components/FrameSaveBar.js +21 -12
  21. package/dist/cjs/components/HorizontalStack.js +9 -2
  22. package/dist/cjs/components/Icon.js +1 -0
  23. package/dist/cjs/components/Layout.js +3 -3
  24. package/dist/cjs/components/LayoutSection.js +2 -2
  25. package/dist/cjs/components/Link.js +6 -2
  26. package/dist/cjs/components/List.js +4 -3
  27. package/dist/cjs/components/Listbox.js +9 -4
  28. package/dist/cjs/components/Modal.js +26 -17
  29. package/dist/cjs/components/Navigation.js +30 -20
  30. package/dist/cjs/components/Page.js +8 -3
  31. package/dist/cjs/components/Pagination.js +11 -4
  32. package/dist/cjs/components/Pane.js +168 -41
  33. package/dist/cjs/components/Popover.js +59 -6
  34. package/dist/cjs/components/RangeSlider.js +11 -4
  35. package/dist/cjs/components/ResourceList.js +9 -3
  36. package/dist/cjs/components/Select.js +2 -0
  37. package/dist/cjs/components/Stack.js +223 -0
  38. package/dist/cjs/components/Table.js +33 -20
  39. package/dist/cjs/components/Tabs.js +41 -11
  40. package/dist/cjs/components/Text.js +8 -5
  41. package/dist/cjs/components/TextField.js +23 -13
  42. package/dist/cjs/components/Thumbnail.js +7 -2
  43. package/dist/cjs/components/TimePicker.js +7 -2
  44. package/dist/cjs/components/Tip.js +10 -4
  45. package/dist/cjs/components/Tooltip.js +16 -8
  46. package/dist/cjs/components/TopBar.js +17 -9
  47. package/dist/cjs/components/VerticalStack.js +8 -2
  48. package/dist/cjs/dev/verify-publish.js +37 -4
  49. package/dist/cjs/index.js +4 -0
  50. package/dist/cjs/postcss.config.js +21 -0
  51. package/dist/cjs/stories/ActionList.stories.js +365 -0
  52. package/dist/cjs/stories/AnnouncementBar.stories.js +244 -0
  53. package/dist/cjs/stories/Autocomplete.stories.js +874 -0
  54. package/dist/cjs/stories/Badge.stories.js +183 -0
  55. package/dist/cjs/stories/Banner.stories.js +201 -0
  56. package/dist/cjs/stories/Box.stories.js +601 -0
  57. package/dist/cjs/stories/Button.stories.js +325 -0
  58. package/dist/cjs/stories/ButtonGroup.stories.js +404 -0
  59. package/dist/cjs/stories/Card.stories.js +278 -0
  60. package/dist/cjs/stories/Checkbox.stories.js +266 -0
  61. package/dist/cjs/stories/ChoiceList.stories.js +885 -0
  62. package/dist/cjs/stories/Collapsible.stories.js +917 -0
  63. package/dist/cjs/stories/ColorField.stories.js +887 -0
  64. package/dist/cjs/stories/ContextualSaveBar.stories.js +971 -0
  65. package/dist/cjs/stories/DatePicker.stories.js +584 -0
  66. package/dist/cjs/stories/Divider.stories.js +766 -0
  67. package/dist/cjs/stories/DropZone.stories.js +1210 -0
  68. package/dist/cjs/stories/EmptyState.stories.js +296 -0
  69. package/dist/cjs/stories/Filters.stories.js +1355 -0
  70. package/dist/cjs/stories/FooterHelp.stories.js +874 -0
  71. package/dist/cjs/stories/Form.stories.js +943 -0
  72. package/dist/cjs/stories/Grid.stories.js +1199 -0
  73. package/dist/cjs/stories/HorizontalStack.stories.js +1064 -0
  74. package/dist/cjs/stories/Icon.stories.js +599 -0
  75. package/dist/cjs/stories/Image.stories.js +883 -0
  76. package/dist/cjs/stories/InlineError.stories.js +711 -0
  77. package/dist/cjs/stories/Label.stories.js +665 -0
  78. package/dist/cjs/stories/Layout.stories.js +687 -0
  79. package/dist/cjs/stories/LayoutSection.stories.js +1275 -0
  80. package/dist/cjs/stories/Link.stories.js +425 -0
  81. package/dist/cjs/stories/List.stories.js +1048 -0
  82. package/dist/cjs/stories/Listbox.stories.js +824 -0
  83. package/dist/cjs/stories/Loading.stories.js +909 -0
  84. package/dist/cjs/stories/Modal.stories.js +363 -0
  85. package/dist/cjs/stories/Navigation.stories.js +605 -0
  86. package/dist/cjs/stories/Page.stories.js +327 -0
  87. package/dist/cjs/stories/Pagination.stories.js +438 -0
  88. package/dist/cjs/stories/Pane.stories.js +1550 -0
  89. package/dist/cjs/stories/Popover.stories.js +641 -0
  90. package/dist/cjs/stories/PopoverManager.stories.js +1233 -0
  91. package/dist/cjs/stories/ProgressBar.stories.js +513 -0
  92. package/dist/cjs/stories/RadioButton.stories.js +642 -0
  93. package/dist/cjs/stories/RadioButtonCard.stories.js +816 -0
  94. package/dist/cjs/stories/RangeSlider.stories.js +896 -0
  95. package/dist/cjs/stories/ResourceList.stories.js +1076 -0
  96. package/dist/cjs/stories/Select.stories.js +413 -0
  97. package/dist/cjs/stories/SkeletonText.stories.js +777 -0
  98. package/dist/cjs/stories/Spinner.stories.js +403 -0
  99. package/dist/cjs/stories/Stack.stories.js +1397 -0
  100. package/dist/cjs/stories/Table.stories.js +628 -0
  101. package/dist/cjs/stories/Tabs.stories.js +722 -0
  102. package/dist/cjs/stories/Tag.stories.js +628 -0
  103. package/dist/cjs/stories/Text.stories.js +262 -0
  104. package/dist/cjs/stories/TextField.stories.js +377 -0
  105. package/dist/cjs/stories/Thumbnail.stories.js +863 -0
  106. package/dist/cjs/stories/TimePicker.stories.js +967 -0
  107. package/dist/cjs/stories/Tip.stories.js +753 -0
  108. package/dist/cjs/stories/Tooltip.stories.js +357 -0
  109. package/dist/cjs/stories/TopBar.stories.js +157 -0
  110. package/dist/cjs/stories/VerticalStack.stories.js +1287 -0
  111. package/dist/cjs/tailwind.config.js +17 -0
  112. package/dist/cjs/utilities/transformers.js +66 -0
  113. package/dist/cjs/vite.config.js +35 -0
  114. package/dist/esm/components/ActionList.js +41 -12
  115. package/dist/esm/components/AnnouncementBar.js +3 -1
  116. package/dist/esm/components/AppProvider.js +10 -1
  117. package/dist/esm/components/Autocomplete.js +44 -16
  118. package/dist/esm/components/Badge.js +2 -2
  119. package/dist/esm/components/Banner.js +20 -21
  120. package/dist/esm/components/Box.js +5 -4
  121. package/dist/esm/components/Button.js +68 -13
  122. package/dist/esm/components/Card.js +6 -4
  123. package/dist/esm/components/Checkbox.js +6 -1
  124. package/dist/esm/components/ChoiceList.js +7 -4
  125. package/dist/esm/components/ColorField.js +3 -3
  126. package/dist/esm/components/DatePicker.js +6 -1
  127. package/dist/esm/components/DropZone.js +14 -4
  128. package/dist/esm/components/EmptyState.js +6 -3
  129. package/dist/esm/components/Filters.js +14 -6
  130. package/dist/esm/components/FooterHelp.js +1 -1
  131. package/dist/esm/components/Form.js +18 -3
  132. package/dist/esm/components/Frame.js +27 -15
  133. package/dist/esm/components/FrameSaveBar.js +10 -6
  134. package/dist/esm/components/HorizontalStack.js +9 -2
  135. package/dist/esm/components/Icon.js +1 -0
  136. package/dist/esm/components/InlineError.js +1 -1
  137. package/dist/esm/components/Layout.js +4 -4
  138. package/dist/esm/components/LayoutSection.js +2 -2
  139. package/dist/esm/components/Link.js +6 -2
  140. package/dist/esm/components/List.js +4 -3
  141. package/dist/esm/components/Listbox.js +4 -4
  142. package/dist/esm/components/Modal.js +8 -4
  143. package/dist/esm/components/Navigation.js +16 -11
  144. package/dist/esm/components/Page.js +9 -4
  145. package/dist/esm/components/Pagination.js +3 -1
  146. package/dist/esm/components/Pane.js +165 -43
  147. package/dist/esm/components/Popover.js +18 -6
  148. package/dist/esm/components/RangeSlider.js +3 -1
  149. package/dist/esm/components/ResourceList.js +2 -1
  150. package/dist/esm/components/Select.js +2 -0
  151. package/dist/esm/components/Stack.js +213 -0
  152. package/dist/esm/components/Table.js +17 -4
  153. package/dist/esm/components/Tabs.js +41 -11
  154. package/dist/esm/components/Text.js +8 -6
  155. package/dist/esm/components/TextField.js +6 -1
  156. package/dist/esm/components/Thumbnail.js +1 -1
  157. package/dist/esm/components/TimePicker.js +1 -1
  158. package/dist/esm/components/Tip.js +3 -2
  159. package/dist/esm/components/Tooltip.js +4 -1
  160. package/dist/esm/components/TopBar.js +7 -4
  161. package/dist/esm/components/VerticalStack.js +8 -2
  162. package/dist/esm/dev/verify-publish.js +37 -4
  163. package/dist/esm/index.js +1 -0
  164. package/dist/esm/postcss.config.js +6 -0
  165. package/dist/esm/stories/ActionList.stories.js +327 -0
  166. package/dist/esm/stories/AnnouncementBar.stories.js +212 -0
  167. package/dist/esm/stories/Autocomplete.stories.js +836 -0
  168. package/dist/esm/stories/Badge.stories.js +138 -0
  169. package/dist/esm/stories/Banner.stories.js +159 -0
  170. package/dist/esm/stories/Box.stories.js +560 -0
  171. package/dist/esm/stories/Button.stories.js +277 -0
  172. package/dist/esm/stories/ButtonGroup.stories.js +357 -0
  173. package/dist/esm/stories/Card.stories.js +240 -0
  174. package/dist/esm/stories/Checkbox.stories.js +219 -0
  175. package/dist/esm/stories/ChoiceList.stories.js +835 -0
  176. package/dist/esm/stories/Collapsible.stories.js +879 -0
  177. package/dist/esm/stories/ColorField.stories.js +846 -0
  178. package/dist/esm/stories/ContextualSaveBar.stories.js +939 -0
  179. package/dist/esm/stories/DatePicker.stories.js +537 -0
  180. package/dist/esm/stories/Divider.stories.js +722 -0
  181. package/dist/esm/stories/DropZone.stories.js +1166 -0
  182. package/dist/esm/stories/EmptyState.stories.js +246 -0
  183. package/dist/esm/stories/Filters.stories.js +1317 -0
  184. package/dist/esm/stories/FooterHelp.stories.js +818 -0
  185. package/dist/esm/stories/Form.stories.js +908 -0
  186. package/dist/esm/stories/Grid.stories.js +1152 -0
  187. package/dist/esm/stories/HorizontalStack.stories.js +1011 -0
  188. package/dist/esm/stories/Icon.stories.js +558 -0
  189. package/dist/esm/stories/Image.stories.js +836 -0
  190. package/dist/esm/stories/InlineError.stories.js +667 -0
  191. package/dist/esm/stories/Label.stories.js +612 -0
  192. package/dist/esm/stories/Layout.stories.js +649 -0
  193. package/dist/esm/stories/LayoutSection.stories.js +1234 -0
  194. package/dist/esm/stories/Link.stories.js +381 -0
  195. package/dist/esm/stories/List.stories.js +992 -0
  196. package/dist/esm/stories/Listbox.stories.js +780 -0
  197. package/dist/esm/stories/Loading.stories.js +859 -0
  198. package/dist/esm/stories/Modal.stories.js +322 -0
  199. package/dist/esm/stories/Navigation.stories.js +567 -0
  200. package/dist/esm/stories/Page.stories.js +280 -0
  201. package/dist/esm/stories/Pagination.stories.js +394 -0
  202. package/dist/esm/stories/Pane.stories.js +1512 -0
  203. package/dist/esm/stories/Popover.stories.js +609 -0
  204. package/dist/esm/stories/PopoverManager.stories.js +1201 -0
  205. package/dist/esm/stories/ProgressBar.stories.js +472 -0
  206. package/dist/esm/stories/RadioButton.stories.js +598 -0
  207. package/dist/esm/stories/RadioButtonCard.stories.js +772 -0
  208. package/dist/esm/stories/RangeSlider.stories.js +849 -0
  209. package/dist/esm/stories/ResourceList.stories.js +1038 -0
  210. package/dist/esm/stories/Select.stories.js +363 -0
  211. package/dist/esm/stories/SkeletonText.stories.js +718 -0
  212. package/dist/esm/stories/Spinner.stories.js +362 -0
  213. package/dist/esm/stories/Stack.stories.js +1338 -0
  214. package/dist/esm/stories/Table.stories.js +584 -0
  215. package/dist/esm/stories/Tabs.stories.js +684 -0
  216. package/dist/esm/stories/Tag.stories.js +581 -0
  217. package/dist/esm/stories/Text.stories.js +217 -0
  218. package/dist/esm/stories/TextField.stories.js +332 -0
  219. package/dist/esm/stories/Thumbnail.stories.js +810 -0
  220. package/dist/esm/stories/TimePicker.stories.js +911 -0
  221. package/dist/esm/stories/Tip.stories.js +706 -0
  222. package/dist/esm/stories/Tooltip.stories.js +313 -0
  223. package/dist/esm/stories/TopBar.stories.js +116 -0
  224. package/dist/esm/stories/VerticalStack.stories.js +1240 -0
  225. package/dist/esm/tailwind.config.js +7 -0
  226. package/dist/esm/utilities/transformers.js +47 -0
  227. package/dist/esm/vite.config.js +20 -0
  228. package/dist/types/components/ActionList.d.ts +122 -0
  229. package/dist/types/components/ActionList.d.ts.map +1 -0
  230. package/dist/types/components/AnnouncementBar.d.ts +21 -0
  231. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  232. package/dist/types/components/AppProvider.d.ts +61 -0
  233. package/dist/types/components/AppProvider.d.ts.map +1 -0
  234. package/dist/types/components/Autocomplete.d.ts +135 -0
  235. package/dist/types/components/Autocomplete.d.ts.map +1 -0
  236. package/dist/types/components/Badge.d.ts +21 -0
  237. package/dist/types/components/Badge.d.ts.map +1 -0
  238. package/dist/types/components/Banner.d.ts +78 -0
  239. package/dist/types/components/Banner.d.ts.map +1 -0
  240. package/dist/types/components/Box.d.ts +70 -0
  241. package/dist/types/components/Box.d.ts.map +1 -0
  242. package/dist/types/components/Button.d.ts +133 -0
  243. package/dist/types/components/Button.d.ts.map +1 -0
  244. package/dist/types/components/ButtonGroup.d.ts +26 -0
  245. package/dist/types/components/ButtonGroup.d.ts.map +1 -0
  246. package/dist/types/components/Card.d.ts +141 -0
  247. package/dist/types/components/Card.d.ts.map +1 -0
  248. package/dist/types/components/Checkbox.d.ts +56 -0
  249. package/dist/types/components/Checkbox.d.ts.map +1 -0
  250. package/dist/types/components/ChoiceList.d.ts +69 -0
  251. package/dist/types/components/ChoiceList.d.ts.map +1 -0
  252. package/dist/types/components/Collapsible.d.ts +17 -0
  253. package/dist/types/components/Collapsible.d.ts.map +1 -0
  254. package/dist/types/components/ColorField.d.ts +36 -0
  255. package/dist/types/components/ColorField.d.ts.map +1 -0
  256. package/dist/types/components/ContextualSaveBar.d.ts +22 -0
  257. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -0
  258. package/dist/types/components/DatePicker.d.ts +66 -0
  259. package/dist/types/components/DatePicker.d.ts.map +1 -0
  260. package/dist/types/components/Divider.d.ts +21 -0
  261. package/dist/types/components/Divider.d.ts.map +1 -0
  262. package/dist/types/components/DropZone.d.ts +108 -0
  263. package/dist/types/components/DropZone.d.ts.map +1 -0
  264. package/dist/types/components/EmptyState.d.ts +52 -0
  265. package/dist/types/components/EmptyState.d.ts.map +1 -0
  266. package/dist/types/components/Filters.d.ts +168 -0
  267. package/dist/types/components/Filters.d.ts.map +1 -0
  268. package/dist/types/components/FooterHelp.d.ts +21 -0
  269. package/dist/types/components/FooterHelp.d.ts.map +1 -0
  270. package/dist/types/components/Form.d.ts +39 -0
  271. package/dist/types/components/Form.d.ts.map +1 -0
  272. package/dist/types/components/Frame.d.ts +51 -0
  273. package/dist/types/components/Frame.d.ts.map +1 -0
  274. package/dist/types/components/FrameSaveBar.d.ts +8 -0
  275. package/dist/types/components/FrameSaveBar.d.ts.map +1 -0
  276. package/dist/types/components/Grid.d.ts +39 -0
  277. package/dist/types/components/Grid.d.ts.map +1 -0
  278. package/dist/types/components/HorizontalStack.d.ts +36 -0
  279. package/dist/types/components/HorizontalStack.d.ts.map +1 -0
  280. package/dist/types/components/Icon.d.ts +43 -0
  281. package/dist/types/components/Icon.d.ts.map +1 -0
  282. package/dist/types/components/Image.d.ts +45 -0
  283. package/dist/types/components/Image.d.ts.map +1 -0
  284. package/dist/types/components/InlineError.d.ts +22 -0
  285. package/dist/types/components/InlineError.d.ts.map +1 -0
  286. package/dist/types/components/Label.d.ts +28 -0
  287. package/dist/types/components/Label.d.ts.map +1 -0
  288. package/dist/types/components/Layout.d.ts +44 -0
  289. package/dist/types/components/Layout.d.ts.map +1 -0
  290. package/dist/types/components/LayoutSection.d.ts +24 -0
  291. package/dist/types/components/LayoutSection.d.ts.map +1 -0
  292. package/dist/types/components/Link.d.ts +38 -0
  293. package/dist/types/components/Link.d.ts.map +1 -0
  294. package/dist/types/components/List.d.ts +33 -0
  295. package/dist/types/components/List.d.ts.map +1 -0
  296. package/dist/types/components/Listbox.d.ts +34 -0
  297. package/dist/types/components/Listbox.d.ts.map +1 -0
  298. package/dist/types/components/Loading.d.ts +13 -0
  299. package/dist/types/components/Loading.d.ts.map +1 -0
  300. package/dist/types/components/Modal.d.ts +75 -0
  301. package/dist/types/components/Modal.d.ts.map +1 -0
  302. package/dist/types/components/Navigation.d.ts +105 -0
  303. package/dist/types/components/Navigation.d.ts.map +1 -0
  304. package/dist/types/components/Page.d.ts +59 -0
  305. package/dist/types/components/Page.d.ts.map +1 -0
  306. package/dist/types/components/Pagination.d.ts +39 -0
  307. package/dist/types/components/Pagination.d.ts.map +1 -0
  308. package/dist/types/components/Pane.d.ts +11 -0
  309. package/dist/types/components/Pane.d.ts.map +1 -0
  310. package/dist/types/components/Popover.d.ts +56 -0
  311. package/dist/types/components/Popover.d.ts.map +1 -0
  312. package/dist/types/components/PopoverManager.d.ts +3 -0
  313. package/dist/types/components/PopoverManager.d.ts.map +1 -0
  314. package/dist/types/components/ProgressBar.d.ts +24 -0
  315. package/dist/types/components/ProgressBar.d.ts.map +1 -0
  316. package/dist/types/components/RadioButton.d.ts +39 -0
  317. package/dist/types/components/RadioButton.d.ts.map +1 -0
  318. package/dist/types/components/RadioButtonCard.d.ts +41 -0
  319. package/dist/types/components/RadioButtonCard.d.ts.map +1 -0
  320. package/dist/types/components/RangeSlider.d.ts +44 -0
  321. package/dist/types/components/RangeSlider.d.ts.map +1 -0
  322. package/dist/types/components/ResourceList.d.ts +54 -0
  323. package/dist/types/components/ResourceList.d.ts.map +1 -0
  324. package/dist/types/components/Select.d.ts +48 -0
  325. package/dist/types/components/Select.d.ts.map +1 -0
  326. package/dist/types/components/SkeletonText.d.ts +28 -0
  327. package/dist/types/components/SkeletonText.d.ts.map +1 -0
  328. package/dist/types/components/Spinner.d.ts +18 -0
  329. package/dist/types/components/Spinner.d.ts.map +1 -0
  330. package/dist/types/components/Stack.d.ts +49 -0
  331. package/dist/types/components/Stack.d.ts.map +1 -0
  332. package/dist/types/components/Table.d.ts +197 -0
  333. package/dist/types/components/Table.d.ts.map +1 -0
  334. package/dist/types/components/Tabs.d.ts +43 -0
  335. package/dist/types/components/Tabs.d.ts.map +1 -0
  336. package/dist/types/components/Tag.d.ts +26 -0
  337. package/dist/types/components/Tag.d.ts.map +1 -0
  338. package/dist/types/components/Text.d.ts +32 -0
  339. package/dist/types/components/Text.d.ts.map +1 -0
  340. package/dist/types/components/TextField.d.ts +109 -0
  341. package/dist/types/components/TextField.d.ts.map +1 -0
  342. package/dist/types/components/Thumbnail.d.ts +18 -0
  343. package/dist/types/components/Thumbnail.d.ts.map +1 -0
  344. package/dist/types/components/TimePicker.d.ts +3 -0
  345. package/dist/types/components/TimePicker.d.ts.map +1 -0
  346. package/dist/types/components/Tip.d.ts +23 -0
  347. package/dist/types/components/Tip.d.ts.map +1 -0
  348. package/dist/types/components/Tooltip.d.ts +84 -0
  349. package/dist/types/components/Tooltip.d.ts.map +1 -0
  350. package/dist/types/components/TopBar.d.ts +43 -0
  351. package/dist/types/components/TopBar.d.ts.map +1 -0
  352. package/dist/types/components/VerticalStack.d.ts +27 -0
  353. package/dist/types/components/VerticalStack.d.ts.map +1 -0
  354. package/dist/types/index.d.ts +63 -0
  355. package/dist/types/index.d.ts.map +1 -0
  356. package/dist/types/styles/Table.d.ts +1570 -0
  357. package/dist/types/styles/Table.d.ts.map +1 -0
  358. package/dist/types/utilities/dates.d.ts +46 -0
  359. package/dist/types/utilities/dates.d.ts.map +1 -0
  360. package/dist/types/utilities/transformers.d.ts +4 -0
  361. package/dist/types/utilities/transformers.d.ts.map +1 -0
  362. package/dist/types/utilities/useIndexResourceState.d.ts +21 -0
  363. package/dist/types/utilities/useIndexResourceState.d.ts.map +1 -0
  364. package/dist/types/utilities/useMounted.d.ts +2 -0
  365. package/dist/types/utilities/useMounted.d.ts.map +1 -0
  366. package/dist/types/utilities/useTableScrollState.d.ts +29 -0
  367. package/dist/types/utilities/useTableScrollState.d.ts.map +1 -0
  368. package/index.css +17 -0
  369. package/package.json +38 -7
@@ -0,0 +1,1338 @@
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 Stack from "../components/Stack.js";
56
+ import Box from "../components/Box.js";
57
+ import Text from "../components/Text.js";
58
+ import Card from "../components/Card.js";
59
+ import Button from "../components/Button.js";
60
+ import Badge from "../components/Badge.js";
61
+ import Icon from "../components/Icon.js";
62
+ import { HomeMinor, ProductsMinor, CustomersMinor } from "@shopify/polaris-icons";
63
+ export default {
64
+ title: 'Litho/Stack',
65
+ component: Stack,
66
+ parameters: {
67
+ layout: 'padded',
68
+ docs: {
69
+ description: {
70
+ component: "A flexible Stack component for creating vertical or horizontal layouts with customizable spacing and alignment. By default, creates a vertical stack with medium gap spacing. Use the `horizontal` prop to switch to a horizontal layout."
71
+ },
72
+ source: {
73
+ transform: transformStorySource
74
+ }
75
+ }
76
+ },
77
+ args: {
78
+ gap: 'md',
79
+ align: 'start',
80
+ horizontal: false,
81
+ wrap: false
82
+ },
83
+ tags: [
84
+ 'autodocs'
85
+ ],
86
+ argTypes: {
87
+ horizontal: {
88
+ control: 'boolean',
89
+ description: 'If true, renders a horizontal stack (flex-row). Defaults to vertical (flex-col).'
90
+ },
91
+ gap: {
92
+ control: 'select',
93
+ options: [
94
+ 'none',
95
+ 'xs',
96
+ 'sm',
97
+ 'md',
98
+ 'lg',
99
+ '0',
100
+ 'px',
101
+ '0.5',
102
+ '1',
103
+ '2',
104
+ '3',
105
+ '4',
106
+ '5',
107
+ '6',
108
+ '8',
109
+ '10'
110
+ ],
111
+ description: 'Spacing between children. Semantic: none (0), xs (1), sm (2), md (4), lg (8). Numeric: 0, px, 0.5, 1, 2, 3, 4, 5, 6, 8, 10'
112
+ },
113
+ align: {
114
+ control: 'select',
115
+ options: [
116
+ 'start',
117
+ 'center',
118
+ 'end',
119
+ 'space-between',
120
+ 'space-evenly',
121
+ 'space-around',
122
+ 'spaceBetween'
123
+ ],
124
+ description: 'Main axis alignment (horizontal for horizontal stacks, vertical for vertical stacks)'
125
+ },
126
+ blockAlign: {
127
+ control: 'select',
128
+ options: [
129
+ 'start',
130
+ 'center',
131
+ 'end',
132
+ 'stretch'
133
+ ],
134
+ description: 'Cross-axis alignment for horizontal stacks (vertical alignment)'
135
+ },
136
+ inlineAlign: {
137
+ control: 'select',
138
+ options: [
139
+ 'start',
140
+ 'center',
141
+ 'end',
142
+ 'stretch'
143
+ ],
144
+ description: 'Cross-axis alignment for vertical stacks (horizontal alignment)'
145
+ },
146
+ wrap: {
147
+ control: 'boolean',
148
+ description: 'Whether children should wrap to next line'
149
+ },
150
+ as: {
151
+ control: 'text',
152
+ description: 'HTML element to render'
153
+ }
154
+ }
155
+ };
156
+ export var Default = {
157
+ render: function(args) {
158
+ return /*#__PURE__*/ _jsxs(Stack, _object_spread_props(_object_spread({}, args), {
159
+ children: [
160
+ /*#__PURE__*/ _jsx(Box, {
161
+ padding: "4",
162
+ background: "primary-subdued",
163
+ borderRadius: "default",
164
+ children: /*#__PURE__*/ _jsx(Text, {
165
+ children: "Item 1"
166
+ })
167
+ }),
168
+ /*#__PURE__*/ _jsx(Box, {
169
+ padding: "4",
170
+ background: "subdued",
171
+ borderRadius: "default",
172
+ children: /*#__PURE__*/ _jsx(Text, {
173
+ children: "Item 2"
174
+ })
175
+ }),
176
+ /*#__PURE__*/ _jsx(Box, {
177
+ padding: "4",
178
+ background: "success-subdued",
179
+ borderRadius: "default",
180
+ children: /*#__PURE__*/ _jsx(Text, {
181
+ children: "Item 3"
182
+ })
183
+ })
184
+ ]
185
+ }));
186
+ }
187
+ };
188
+ export var Horizontal = {
189
+ render: function(args) {
190
+ return /*#__PURE__*/ _jsxs(Stack, _object_spread_props(_object_spread({
191
+ horizontal: true
192
+ }, args), {
193
+ children: [
194
+ /*#__PURE__*/ _jsx(Box, {
195
+ padding: "4",
196
+ background: "primary-subdued",
197
+ borderRadius: "default",
198
+ children: /*#__PURE__*/ _jsx(Text, {
199
+ children: "Item 1"
200
+ })
201
+ }),
202
+ /*#__PURE__*/ _jsx(Box, {
203
+ padding: "4",
204
+ background: "subdued",
205
+ borderRadius: "default",
206
+ children: /*#__PURE__*/ _jsx(Text, {
207
+ children: "Item 2"
208
+ })
209
+ }),
210
+ /*#__PURE__*/ _jsx(Box, {
211
+ padding: "4",
212
+ background: "success-subdued",
213
+ borderRadius: "default",
214
+ children: /*#__PURE__*/ _jsx(Text, {
215
+ children: "Item 3"
216
+ })
217
+ })
218
+ ]
219
+ }));
220
+ },
221
+ args: {
222
+ horizontal: true
223
+ },
224
+ parameters: {
225
+ docs: {
226
+ description: {
227
+ story: 'Horizontal stack layout using the `horizontal` prop.'
228
+ }
229
+ }
230
+ }
231
+ };
232
+ export var GapSizes = {
233
+ render: function() {
234
+ return /*#__PURE__*/ _jsxs(Stack, {
235
+ gap: "lg",
236
+ children: [
237
+ /*#__PURE__*/ _jsxs(Stack, {
238
+ gap: "sm",
239
+ children: [
240
+ /*#__PURE__*/ _jsx(Text, {
241
+ variant: "headingSm",
242
+ children: "None Gap (0)"
243
+ }),
244
+ /*#__PURE__*/ _jsxs(Stack, {
245
+ horizontal: true,
246
+ gap: "none",
247
+ children: [
248
+ /*#__PURE__*/ _jsx(Button, {
249
+ children: "Button 1"
250
+ }),
251
+ /*#__PURE__*/ _jsx(Button, {
252
+ children: "Button 2"
253
+ }),
254
+ /*#__PURE__*/ _jsx(Button, {
255
+ children: "Button 3"
256
+ })
257
+ ]
258
+ })
259
+ ]
260
+ }),
261
+ /*#__PURE__*/ _jsxs(Stack, {
262
+ gap: "sm",
263
+ children: [
264
+ /*#__PURE__*/ _jsx(Text, {
265
+ variant: "headingSm",
266
+ children: "Extra Small Gap (xs = 1)"
267
+ }),
268
+ /*#__PURE__*/ _jsxs(Stack, {
269
+ horizontal: true,
270
+ gap: "xs",
271
+ children: [
272
+ /*#__PURE__*/ _jsx(Button, {
273
+ children: "Button 1"
274
+ }),
275
+ /*#__PURE__*/ _jsx(Button, {
276
+ children: "Button 2"
277
+ }),
278
+ /*#__PURE__*/ _jsx(Button, {
279
+ children: "Button 3"
280
+ })
281
+ ]
282
+ })
283
+ ]
284
+ }),
285
+ /*#__PURE__*/ _jsxs(Stack, {
286
+ gap: "sm",
287
+ children: [
288
+ /*#__PURE__*/ _jsx(Text, {
289
+ variant: "headingSm",
290
+ children: "Small Gap (sm = 2)"
291
+ }),
292
+ /*#__PURE__*/ _jsxs(Stack, {
293
+ horizontal: true,
294
+ gap: "sm",
295
+ children: [
296
+ /*#__PURE__*/ _jsx(Button, {
297
+ children: "Button 1"
298
+ }),
299
+ /*#__PURE__*/ _jsx(Button, {
300
+ children: "Button 2"
301
+ }),
302
+ /*#__PURE__*/ _jsx(Button, {
303
+ children: "Button 3"
304
+ })
305
+ ]
306
+ })
307
+ ]
308
+ }),
309
+ /*#__PURE__*/ _jsxs(Stack, {
310
+ gap: "sm",
311
+ children: [
312
+ /*#__PURE__*/ _jsx(Text, {
313
+ variant: "headingSm",
314
+ children: "Medium Gap (md = 4, default)"
315
+ }),
316
+ /*#__PURE__*/ _jsxs(Stack, {
317
+ horizontal: true,
318
+ gap: "md",
319
+ children: [
320
+ /*#__PURE__*/ _jsx(Button, {
321
+ children: "Button 1"
322
+ }),
323
+ /*#__PURE__*/ _jsx(Button, {
324
+ children: "Button 2"
325
+ }),
326
+ /*#__PURE__*/ _jsx(Button, {
327
+ children: "Button 3"
328
+ })
329
+ ]
330
+ })
331
+ ]
332
+ }),
333
+ /*#__PURE__*/ _jsxs(Stack, {
334
+ gap: "sm",
335
+ children: [
336
+ /*#__PURE__*/ _jsx(Text, {
337
+ variant: "headingSm",
338
+ children: "Large Gap (lg = 8)"
339
+ }),
340
+ /*#__PURE__*/ _jsxs(Stack, {
341
+ horizontal: true,
342
+ gap: "lg",
343
+ children: [
344
+ /*#__PURE__*/ _jsx(Button, {
345
+ children: "Button 1"
346
+ }),
347
+ /*#__PURE__*/ _jsx(Button, {
348
+ children: "Button 2"
349
+ }),
350
+ /*#__PURE__*/ _jsx(Button, {
351
+ children: "Button 3"
352
+ })
353
+ ]
354
+ })
355
+ ]
356
+ })
357
+ ]
358
+ });
359
+ },
360
+ parameters: {
361
+ docs: {
362
+ description: {
363
+ story: 'Different gap sizes available: none (0), xs (1), sm (2), md (4), lg (8). Medium is the default.'
364
+ }
365
+ }
366
+ }
367
+ };
368
+ export var VerticalAlignment = {
369
+ render: function() {
370
+ return /*#__PURE__*/ _jsxs(Stack, {
371
+ gap: "lg",
372
+ children: [
373
+ /*#__PURE__*/ _jsxs(Stack, {
374
+ gap: "sm",
375
+ children: [
376
+ /*#__PURE__*/ _jsx(Text, {
377
+ variant: "headingSm",
378
+ children: "Vertical - Start Aligned (default)"
379
+ }),
380
+ /*#__PURE__*/ _jsx(Box, {
381
+ border: "dashed",
382
+ padding: "4",
383
+ children: /*#__PURE__*/ _jsxs(Stack, {
384
+ align: "start",
385
+ gap: "sm",
386
+ children: [
387
+ /*#__PURE__*/ _jsx(Box, {
388
+ padding: "4",
389
+ background: "primary-subdued",
390
+ borderRadius: "default",
391
+ children: /*#__PURE__*/ _jsx(Text, {
392
+ children: "Item 1"
393
+ })
394
+ }),
395
+ /*#__PURE__*/ _jsx(Box, {
396
+ padding: "4",
397
+ background: "subdued",
398
+ borderRadius: "default",
399
+ children: /*#__PURE__*/ _jsx(Text, {
400
+ children: "Item 2"
401
+ })
402
+ })
403
+ ]
404
+ })
405
+ })
406
+ ]
407
+ }),
408
+ /*#__PURE__*/ _jsxs(Stack, {
409
+ gap: "sm",
410
+ children: [
411
+ /*#__PURE__*/ _jsx(Text, {
412
+ variant: "headingSm",
413
+ children: "Vertical - Center Aligned"
414
+ }),
415
+ /*#__PURE__*/ _jsx(Box, {
416
+ border: "dashed",
417
+ padding: "4",
418
+ children: /*#__PURE__*/ _jsxs(Stack, {
419
+ align: "center",
420
+ gap: "sm",
421
+ children: [
422
+ /*#__PURE__*/ _jsx(Box, {
423
+ padding: "4",
424
+ background: "primary-subdued",
425
+ borderRadius: "default",
426
+ children: /*#__PURE__*/ _jsx(Text, {
427
+ children: "Item 1"
428
+ })
429
+ }),
430
+ /*#__PURE__*/ _jsx(Box, {
431
+ padding: "4",
432
+ background: "subdued",
433
+ borderRadius: "default",
434
+ children: /*#__PURE__*/ _jsx(Text, {
435
+ children: "Item 2"
436
+ })
437
+ })
438
+ ]
439
+ })
440
+ })
441
+ ]
442
+ }),
443
+ /*#__PURE__*/ _jsxs(Stack, {
444
+ gap: "sm",
445
+ children: [
446
+ /*#__PURE__*/ _jsx(Text, {
447
+ variant: "headingSm",
448
+ children: "Vertical - End Aligned"
449
+ }),
450
+ /*#__PURE__*/ _jsx(Box, {
451
+ border: "dashed",
452
+ padding: "4",
453
+ children: /*#__PURE__*/ _jsxs(Stack, {
454
+ align: "end",
455
+ gap: "sm",
456
+ children: [
457
+ /*#__PURE__*/ _jsx(Box, {
458
+ padding: "4",
459
+ background: "primary-subdued",
460
+ borderRadius: "default",
461
+ children: /*#__PURE__*/ _jsx(Text, {
462
+ children: "Item 1"
463
+ })
464
+ }),
465
+ /*#__PURE__*/ _jsx(Box, {
466
+ padding: "4",
467
+ background: "subdued",
468
+ borderRadius: "default",
469
+ children: /*#__PURE__*/ _jsx(Text, {
470
+ children: "Item 2"
471
+ })
472
+ })
473
+ ]
474
+ })
475
+ })
476
+ ]
477
+ }),
478
+ /*#__PURE__*/ _jsxs(Stack, {
479
+ gap: "sm",
480
+ children: [
481
+ /*#__PURE__*/ _jsx(Text, {
482
+ variant: "headingSm",
483
+ children: "Vertical - Space Between"
484
+ }),
485
+ /*#__PURE__*/ _jsx(Box, {
486
+ border: "dashed",
487
+ padding: "4",
488
+ minHeight: "200px",
489
+ children: /*#__PURE__*/ _jsxs(Stack, {
490
+ align: "space-between",
491
+ gap: "sm",
492
+ children: [
493
+ /*#__PURE__*/ _jsx(Box, {
494
+ padding: "4",
495
+ background: "primary-subdued",
496
+ borderRadius: "default",
497
+ children: /*#__PURE__*/ _jsx(Text, {
498
+ children: "Item 1"
499
+ })
500
+ }),
501
+ /*#__PURE__*/ _jsx(Box, {
502
+ padding: "4",
503
+ background: "subdued",
504
+ borderRadius: "default",
505
+ children: /*#__PURE__*/ _jsx(Text, {
506
+ children: "Item 2"
507
+ })
508
+ })
509
+ ]
510
+ })
511
+ })
512
+ ]
513
+ })
514
+ ]
515
+ });
516
+ },
517
+ parameters: {
518
+ docs: {
519
+ description: {
520
+ story: 'Vertical alignment options for vertical stacks using the `align` prop.'
521
+ }
522
+ }
523
+ }
524
+ };
525
+ export var HorizontalAlignment = {
526
+ render: function() {
527
+ return /*#__PURE__*/ _jsxs(Stack, {
528
+ gap: "lg",
529
+ children: [
530
+ /*#__PURE__*/ _jsxs(Stack, {
531
+ gap: "sm",
532
+ children: [
533
+ /*#__PURE__*/ _jsx(Text, {
534
+ variant: "headingSm",
535
+ children: "Horizontal - Start Aligned (default)"
536
+ }),
537
+ /*#__PURE__*/ _jsx(Box, {
538
+ border: "dashed",
539
+ padding: "4",
540
+ children: /*#__PURE__*/ _jsxs(Stack, {
541
+ horizontal: true,
542
+ align: "start",
543
+ gap: "sm",
544
+ children: [
545
+ /*#__PURE__*/ _jsx(Button, {
546
+ children: "Button 1"
547
+ }),
548
+ /*#__PURE__*/ _jsx(Button, {
549
+ children: "Button 2"
550
+ })
551
+ ]
552
+ })
553
+ })
554
+ ]
555
+ }),
556
+ /*#__PURE__*/ _jsxs(Stack, {
557
+ gap: "sm",
558
+ children: [
559
+ /*#__PURE__*/ _jsx(Text, {
560
+ variant: "headingSm",
561
+ children: "Horizontal - Center Aligned"
562
+ }),
563
+ /*#__PURE__*/ _jsx(Box, {
564
+ border: "dashed",
565
+ padding: "4",
566
+ children: /*#__PURE__*/ _jsxs(Stack, {
567
+ horizontal: true,
568
+ align: "center",
569
+ gap: "sm",
570
+ children: [
571
+ /*#__PURE__*/ _jsx(Button, {
572
+ children: "Button 1"
573
+ }),
574
+ /*#__PURE__*/ _jsx(Button, {
575
+ children: "Button 2"
576
+ })
577
+ ]
578
+ })
579
+ })
580
+ ]
581
+ }),
582
+ /*#__PURE__*/ _jsxs(Stack, {
583
+ gap: "sm",
584
+ children: [
585
+ /*#__PURE__*/ _jsx(Text, {
586
+ variant: "headingSm",
587
+ children: "Horizontal - End Aligned"
588
+ }),
589
+ /*#__PURE__*/ _jsx(Box, {
590
+ border: "dashed",
591
+ padding: "4",
592
+ children: /*#__PURE__*/ _jsxs(Stack, {
593
+ horizontal: true,
594
+ align: "end",
595
+ gap: "sm",
596
+ children: [
597
+ /*#__PURE__*/ _jsx(Button, {
598
+ children: "Button 1"
599
+ }),
600
+ /*#__PURE__*/ _jsx(Button, {
601
+ children: "Button 2"
602
+ })
603
+ ]
604
+ })
605
+ })
606
+ ]
607
+ }),
608
+ /*#__PURE__*/ _jsxs(Stack, {
609
+ gap: "sm",
610
+ children: [
611
+ /*#__PURE__*/ _jsx(Text, {
612
+ variant: "headingSm",
613
+ children: "Horizontal - Space Between"
614
+ }),
615
+ /*#__PURE__*/ _jsx(Box, {
616
+ border: "dashed",
617
+ padding: "4",
618
+ children: /*#__PURE__*/ _jsxs(Stack, {
619
+ horizontal: true,
620
+ align: "space-between",
621
+ gap: "sm",
622
+ children: [
623
+ /*#__PURE__*/ _jsx(Button, {
624
+ children: "Button 1"
625
+ }),
626
+ /*#__PURE__*/ _jsx(Button, {
627
+ children: "Button 2"
628
+ }),
629
+ /*#__PURE__*/ _jsx(Button, {
630
+ children: "Button 3"
631
+ })
632
+ ]
633
+ })
634
+ })
635
+ ]
636
+ })
637
+ ]
638
+ });
639
+ },
640
+ parameters: {
641
+ docs: {
642
+ description: {
643
+ story: 'Horizontal alignment options for horizontal stacks using the `align` prop.'
644
+ }
645
+ }
646
+ }
647
+ };
648
+ export var CrossAxisAlignment = {
649
+ render: function() {
650
+ return /*#__PURE__*/ _jsxs(Stack, {
651
+ gap: "lg",
652
+ children: [
653
+ /*#__PURE__*/ _jsxs(Stack, {
654
+ gap: "sm",
655
+ children: [
656
+ /*#__PURE__*/ _jsx(Text, {
657
+ variant: "headingSm",
658
+ children: "Vertical Stack - Inline Align Start"
659
+ }),
660
+ /*#__PURE__*/ _jsx(Box, {
661
+ border: "dashed",
662
+ padding: "4",
663
+ children: /*#__PURE__*/ _jsxs(Stack, {
664
+ inlineAlign: "start",
665
+ gap: "sm",
666
+ children: [
667
+ /*#__PURE__*/ _jsx(Box, {
668
+ padding: "4",
669
+ background: "primary-subdued",
670
+ borderRadius: "default",
671
+ width: "fit",
672
+ children: /*#__PURE__*/ _jsx(Text, {
673
+ children: "Item 1"
674
+ })
675
+ }),
676
+ /*#__PURE__*/ _jsx(Box, {
677
+ padding: "4",
678
+ background: "subdued",
679
+ borderRadius: "default",
680
+ width: "fit",
681
+ children: /*#__PURE__*/ _jsx(Text, {
682
+ children: "Item 2"
683
+ })
684
+ })
685
+ ]
686
+ })
687
+ })
688
+ ]
689
+ }),
690
+ /*#__PURE__*/ _jsxs(Stack, {
691
+ gap: "sm",
692
+ children: [
693
+ /*#__PURE__*/ _jsx(Text, {
694
+ variant: "headingSm",
695
+ children: "Vertical Stack - Inline Align Center"
696
+ }),
697
+ /*#__PURE__*/ _jsx(Box, {
698
+ border: "dashed",
699
+ padding: "4",
700
+ children: /*#__PURE__*/ _jsxs(Stack, {
701
+ inlineAlign: "center",
702
+ gap: "sm",
703
+ children: [
704
+ /*#__PURE__*/ _jsx(Box, {
705
+ padding: "4",
706
+ background: "primary-subdued",
707
+ borderRadius: "default",
708
+ width: "fit",
709
+ children: /*#__PURE__*/ _jsx(Text, {
710
+ children: "Item 1"
711
+ })
712
+ }),
713
+ /*#__PURE__*/ _jsx(Box, {
714
+ padding: "4",
715
+ background: "subdued",
716
+ borderRadius: "default",
717
+ width: "fit",
718
+ children: /*#__PURE__*/ _jsx(Text, {
719
+ children: "Item 2"
720
+ })
721
+ })
722
+ ]
723
+ })
724
+ })
725
+ ]
726
+ }),
727
+ /*#__PURE__*/ _jsxs(Stack, {
728
+ gap: "sm",
729
+ children: [
730
+ /*#__PURE__*/ _jsx(Text, {
731
+ variant: "headingSm",
732
+ children: "Horizontal Stack - Block Align Center"
733
+ }),
734
+ /*#__PURE__*/ _jsx(Box, {
735
+ border: "dashed",
736
+ padding: "4",
737
+ minHeight: "100px",
738
+ children: /*#__PURE__*/ _jsxs(Stack, {
739
+ horizontal: true,
740
+ blockAlign: "center",
741
+ gap: "sm",
742
+ children: [
743
+ /*#__PURE__*/ _jsx(Button, {
744
+ children: "Short"
745
+ }),
746
+ /*#__PURE__*/ _jsx(Box, {
747
+ padding: "8 4",
748
+ background: "subdued",
749
+ borderRadius: "default",
750
+ children: /*#__PURE__*/ _jsx(Text, {
751
+ children: "Tall Item"
752
+ })
753
+ }),
754
+ /*#__PURE__*/ _jsx(Button, {
755
+ children: "Short"
756
+ })
757
+ ]
758
+ })
759
+ })
760
+ ]
761
+ }),
762
+ /*#__PURE__*/ _jsxs(Stack, {
763
+ gap: "sm",
764
+ children: [
765
+ /*#__PURE__*/ _jsx(Text, {
766
+ variant: "headingSm",
767
+ children: "Horizontal Stack - Block Align Stretch"
768
+ }),
769
+ /*#__PURE__*/ _jsx(Box, {
770
+ border: "dashed",
771
+ padding: "4",
772
+ minHeight: "100px",
773
+ children: /*#__PURE__*/ _jsxs(Stack, {
774
+ horizontal: true,
775
+ blockAlign: "stretch",
776
+ gap: "sm",
777
+ children: [
778
+ /*#__PURE__*/ _jsx(Box, {
779
+ padding: "4",
780
+ background: "primary-subdued",
781
+ borderRadius: "default",
782
+ children: /*#__PURE__*/ _jsx(Text, {
783
+ children: "Item 1"
784
+ })
785
+ }),
786
+ /*#__PURE__*/ _jsx(Box, {
787
+ padding: "4",
788
+ background: "subdued",
789
+ borderRadius: "default",
790
+ children: /*#__PURE__*/ _jsx(Text, {
791
+ children: "Item 2"
792
+ })
793
+ })
794
+ ]
795
+ })
796
+ })
797
+ ]
798
+ })
799
+ ]
800
+ });
801
+ },
802
+ parameters: {
803
+ docs: {
804
+ description: {
805
+ story: 'Cross-axis alignment: use `inlineAlign` for vertical stacks (horizontal alignment) and `blockAlign` for horizontal stacks (vertical alignment).'
806
+ }
807
+ }
808
+ }
809
+ };
810
+ export var Wrapping = {
811
+ render: function() {
812
+ return /*#__PURE__*/ _jsxs(Stack, {
813
+ gap: "lg",
814
+ children: [
815
+ /*#__PURE__*/ _jsxs(Stack, {
816
+ gap: "sm",
817
+ children: [
818
+ /*#__PURE__*/ _jsx(Text, {
819
+ variant: "headingSm",
820
+ children: "With Wrapping"
821
+ }),
822
+ /*#__PURE__*/ _jsx(Box, {
823
+ border: "dashed",
824
+ padding: "4",
825
+ maxWidth: "300px",
826
+ children: /*#__PURE__*/ _jsxs(Stack, {
827
+ horizontal: true,
828
+ wrap: true,
829
+ gap: "sm",
830
+ children: [
831
+ /*#__PURE__*/ _jsx(Button, {
832
+ children: "Button 1"
833
+ }),
834
+ /*#__PURE__*/ _jsx(Button, {
835
+ children: "Button 2"
836
+ }),
837
+ /*#__PURE__*/ _jsx(Button, {
838
+ children: "Button 3"
839
+ }),
840
+ /*#__PURE__*/ _jsx(Button, {
841
+ children: "Button 4"
842
+ }),
843
+ /*#__PURE__*/ _jsx(Button, {
844
+ children: "Button 5"
845
+ }),
846
+ /*#__PURE__*/ _jsx(Button, {
847
+ children: "Button 6"
848
+ })
849
+ ]
850
+ })
851
+ })
852
+ ]
853
+ }),
854
+ /*#__PURE__*/ _jsxs(Stack, {
855
+ gap: "sm",
856
+ children: [
857
+ /*#__PURE__*/ _jsx(Text, {
858
+ variant: "headingSm",
859
+ children: "Without Wrapping"
860
+ }),
861
+ /*#__PURE__*/ _jsx(Box, {
862
+ border: "dashed",
863
+ padding: "4",
864
+ maxWidth: "300px",
865
+ overflowX: "auto",
866
+ children: /*#__PURE__*/ _jsxs(Stack, {
867
+ horizontal: true,
868
+ wrap: false,
869
+ gap: "sm",
870
+ children: [
871
+ /*#__PURE__*/ _jsx(Button, {
872
+ children: "Button 1"
873
+ }),
874
+ /*#__PURE__*/ _jsx(Button, {
875
+ children: "Button 2"
876
+ }),
877
+ /*#__PURE__*/ _jsx(Button, {
878
+ children: "Button 3"
879
+ }),
880
+ /*#__PURE__*/ _jsx(Button, {
881
+ children: "Button 4"
882
+ }),
883
+ /*#__PURE__*/ _jsx(Button, {
884
+ children: "Button 5"
885
+ }),
886
+ /*#__PURE__*/ _jsx(Button, {
887
+ children: "Button 6"
888
+ })
889
+ ]
890
+ })
891
+ })
892
+ ]
893
+ })
894
+ ]
895
+ });
896
+ },
897
+ parameters: {
898
+ docs: {
899
+ description: {
900
+ story: 'Comparison of wrapping vs non-wrapping behavior for horizontal stacks.'
901
+ }
902
+ }
903
+ }
904
+ };
905
+ export var ActionBar = {
906
+ render: function() {
907
+ return /*#__PURE__*/ _jsx(Card, {
908
+ title: "Document Actions",
909
+ padded: true,
910
+ children: /*#__PURE__*/ _jsxs(Stack, {
911
+ horizontal: true,
912
+ align: "space-between",
913
+ blockAlign: "center",
914
+ children: [
915
+ /*#__PURE__*/ _jsxs(Stack, {
916
+ horizontal: true,
917
+ gap: "sm",
918
+ blockAlign: "center",
919
+ children: [
920
+ /*#__PURE__*/ _jsx(Text, {
921
+ variant: "headingSm",
922
+ children: "Document.pdf"
923
+ }),
924
+ /*#__PURE__*/ _jsx(Badge, {
925
+ children: "Draft"
926
+ })
927
+ ]
928
+ }),
929
+ /*#__PURE__*/ _jsxs(Stack, {
930
+ horizontal: true,
931
+ gap: "sm",
932
+ children: [
933
+ /*#__PURE__*/ _jsx(Button, {
934
+ children: "Edit"
935
+ }),
936
+ /*#__PURE__*/ _jsx(Button, {
937
+ children: "Share"
938
+ }),
939
+ /*#__PURE__*/ _jsx(Button, {
940
+ primary: true,
941
+ children: "Publish"
942
+ })
943
+ ]
944
+ })
945
+ ]
946
+ })
947
+ });
948
+ },
949
+ parameters: {
950
+ docs: {
951
+ description: {
952
+ story: 'Action bar layout with space-between alignment using horizontal Stack.'
953
+ }
954
+ }
955
+ }
956
+ };
957
+ export var NavigationMenu = {
958
+ render: function() {
959
+ return /*#__PURE__*/ _jsx(Card, {
960
+ children: /*#__PURE__*/ _jsx(Box, {
961
+ padding: "4",
962
+ borderBlockEnd: "divider",
963
+ children: /*#__PURE__*/ _jsxs(Stack, {
964
+ horizontal: true,
965
+ align: "space-between",
966
+ blockAlign: "center",
967
+ children: [
968
+ /*#__PURE__*/ _jsxs(Stack, {
969
+ horizontal: true,
970
+ gap: "md",
971
+ blockAlign: "center",
972
+ children: [
973
+ /*#__PURE__*/ _jsx(Text, {
974
+ variant: "headingMd",
975
+ children: "Brand"
976
+ }),
977
+ /*#__PURE__*/ _jsxs(Stack, {
978
+ horizontal: true,
979
+ gap: "sm",
980
+ as: "nav",
981
+ children: [
982
+ /*#__PURE__*/ _jsx(Button, {
983
+ plain: true,
984
+ children: "Home"
985
+ }),
986
+ /*#__PURE__*/ _jsx(Button, {
987
+ plain: true,
988
+ children: "Products"
989
+ }),
990
+ /*#__PURE__*/ _jsx(Button, {
991
+ plain: true,
992
+ children: "About"
993
+ }),
994
+ /*#__PURE__*/ _jsx(Button, {
995
+ plain: true,
996
+ children: "Contact"
997
+ })
998
+ ]
999
+ })
1000
+ ]
1001
+ }),
1002
+ /*#__PURE__*/ _jsxs(Stack, {
1003
+ horizontal: true,
1004
+ gap: "sm",
1005
+ children: [
1006
+ /*#__PURE__*/ _jsx(Button, {
1007
+ children: "Sign In"
1008
+ }),
1009
+ /*#__PURE__*/ _jsx(Button, {
1010
+ primary: true,
1011
+ children: "Sign Up"
1012
+ })
1013
+ ]
1014
+ })
1015
+ ]
1016
+ })
1017
+ })
1018
+ });
1019
+ },
1020
+ parameters: {
1021
+ docs: {
1022
+ description: {
1023
+ story: 'Navigation menu layout with brand and actions using nested horizontal Stacks.'
1024
+ }
1025
+ }
1026
+ }
1027
+ };
1028
+ export var IconAndText = {
1029
+ render: function() {
1030
+ return /*#__PURE__*/ _jsxs(Stack, {
1031
+ gap: "sm",
1032
+ children: [
1033
+ /*#__PURE__*/ _jsxs(Stack, {
1034
+ horizontal: true,
1035
+ gap: "sm",
1036
+ blockAlign: "center",
1037
+ children: [
1038
+ /*#__PURE__*/ _jsx(Icon, {
1039
+ source: HomeMinor,
1040
+ size: "sm"
1041
+ }),
1042
+ /*#__PURE__*/ _jsx(Text, {
1043
+ children: "Dashboard"
1044
+ })
1045
+ ]
1046
+ }),
1047
+ /*#__PURE__*/ _jsxs(Stack, {
1048
+ horizontal: true,
1049
+ gap: "sm",
1050
+ blockAlign: "center",
1051
+ children: [
1052
+ /*#__PURE__*/ _jsx(Icon, {
1053
+ source: ProductsMinor,
1054
+ size: "sm"
1055
+ }),
1056
+ /*#__PURE__*/ _jsx(Text, {
1057
+ children: "Products"
1058
+ }),
1059
+ /*#__PURE__*/ _jsx(Badge, {
1060
+ children: "42"
1061
+ })
1062
+ ]
1063
+ }),
1064
+ /*#__PURE__*/ _jsxs(Stack, {
1065
+ horizontal: true,
1066
+ gap: "sm",
1067
+ blockAlign: "center",
1068
+ children: [
1069
+ /*#__PURE__*/ _jsx(Icon, {
1070
+ source: CustomersMinor,
1071
+ size: "sm"
1072
+ }),
1073
+ /*#__PURE__*/ _jsx(Text, {
1074
+ children: "Customers"
1075
+ }),
1076
+ /*#__PURE__*/ _jsx(Badge, {
1077
+ status: "warning",
1078
+ children: "New"
1079
+ })
1080
+ ]
1081
+ })
1082
+ ]
1083
+ });
1084
+ },
1085
+ parameters: {
1086
+ docs: {
1087
+ description: {
1088
+ story: 'Icons combined with text and badges using center alignment with horizontal Stacks.'
1089
+ }
1090
+ }
1091
+ }
1092
+ };
1093
+ export var FormLayout = {
1094
+ render: function() {
1095
+ return /*#__PURE__*/ _jsx(Card, {
1096
+ title: "User Profile",
1097
+ padded: true,
1098
+ children: /*#__PURE__*/ _jsxs(Stack, {
1099
+ gap: "md",
1100
+ children: [
1101
+ /*#__PURE__*/ _jsx("input", {
1102
+ placeholder: "Full Name",
1103
+ style: {
1104
+ padding: '0.75rem',
1105
+ border: '1px solid #ccc',
1106
+ borderRadius: '4px',
1107
+ width: '100%'
1108
+ }
1109
+ }),
1110
+ /*#__PURE__*/ _jsx("input", {
1111
+ placeholder: "Email Address",
1112
+ style: {
1113
+ padding: '0.75rem',
1114
+ border: '1px solid #ccc',
1115
+ borderRadius: '4px',
1116
+ width: '100%'
1117
+ }
1118
+ }),
1119
+ /*#__PURE__*/ _jsx("textarea", {
1120
+ placeholder: "Bio",
1121
+ rows: 4,
1122
+ style: {
1123
+ padding: '0.75rem',
1124
+ border: '1px solid #ccc',
1125
+ borderRadius: '4px',
1126
+ width: '100%',
1127
+ fontFamily: 'inherit'
1128
+ }
1129
+ }),
1130
+ /*#__PURE__*/ _jsxs(Stack, {
1131
+ horizontal: true,
1132
+ align: "end",
1133
+ gap: "sm",
1134
+ children: [
1135
+ /*#__PURE__*/ _jsx(Button, {
1136
+ children: "Cancel"
1137
+ }),
1138
+ /*#__PURE__*/ _jsx(Button, {
1139
+ primary: true,
1140
+ children: "Save Changes"
1141
+ })
1142
+ ]
1143
+ })
1144
+ ]
1145
+ })
1146
+ });
1147
+ },
1148
+ parameters: {
1149
+ docs: {
1150
+ description: {
1151
+ story: 'Form layout with vertical Stack for form fields and horizontal Stack for actions.'
1152
+ }
1153
+ }
1154
+ }
1155
+ };
1156
+ export var StatusDashboard = {
1157
+ render: function() {
1158
+ return /*#__PURE__*/ _jsx(Card, {
1159
+ title: "System Status",
1160
+ padded: true,
1161
+ children: /*#__PURE__*/ _jsxs(Stack, {
1162
+ gap: "sm",
1163
+ children: [
1164
+ /*#__PURE__*/ _jsxs(Stack, {
1165
+ horizontal: true,
1166
+ align: "space-between",
1167
+ blockAlign: "center",
1168
+ children: [
1169
+ /*#__PURE__*/ _jsx(Text, {
1170
+ children: "Database Connection"
1171
+ }),
1172
+ /*#__PURE__*/ _jsxs(Stack, {
1173
+ horizontal: true,
1174
+ gap: "xs",
1175
+ blockAlign: "center",
1176
+ children: [
1177
+ /*#__PURE__*/ _jsx(Box, {
1178
+ width: "8px",
1179
+ height: "8px",
1180
+ borderRadius: "full",
1181
+ background: "success"
1182
+ }),
1183
+ /*#__PURE__*/ _jsx(Text, {
1184
+ color: "subdued",
1185
+ children: "Online"
1186
+ })
1187
+ ]
1188
+ })
1189
+ ]
1190
+ }),
1191
+ /*#__PURE__*/ _jsxs(Stack, {
1192
+ horizontal: true,
1193
+ align: "space-between",
1194
+ blockAlign: "center",
1195
+ children: [
1196
+ /*#__PURE__*/ _jsx(Text, {
1197
+ children: "API Service"
1198
+ }),
1199
+ /*#__PURE__*/ _jsxs(Stack, {
1200
+ horizontal: true,
1201
+ gap: "xs",
1202
+ blockAlign: "center",
1203
+ children: [
1204
+ /*#__PURE__*/ _jsx(Box, {
1205
+ width: "8px",
1206
+ height: "8px",
1207
+ borderRadius: "full",
1208
+ background: "warning"
1209
+ }),
1210
+ /*#__PURE__*/ _jsx(Text, {
1211
+ color: "subdued",
1212
+ children: "Warning"
1213
+ })
1214
+ ]
1215
+ })
1216
+ ]
1217
+ }),
1218
+ /*#__PURE__*/ _jsxs(Stack, {
1219
+ horizontal: true,
1220
+ align: "space-between",
1221
+ blockAlign: "center",
1222
+ children: [
1223
+ /*#__PURE__*/ _jsx(Text, {
1224
+ children: "Cache System"
1225
+ }),
1226
+ /*#__PURE__*/ _jsxs(Stack, {
1227
+ horizontal: true,
1228
+ gap: "xs",
1229
+ blockAlign: "center",
1230
+ children: [
1231
+ /*#__PURE__*/ _jsx(Box, {
1232
+ width: "8px",
1233
+ height: "8px",
1234
+ borderRadius: "full",
1235
+ background: "critical"
1236
+ }),
1237
+ /*#__PURE__*/ _jsx(Text, {
1238
+ color: "subdued",
1239
+ children: "Offline"
1240
+ })
1241
+ ]
1242
+ })
1243
+ ]
1244
+ })
1245
+ ]
1246
+ })
1247
+ });
1248
+ },
1249
+ parameters: {
1250
+ docs: {
1251
+ description: {
1252
+ story: 'Status dashboard with aligned labels and status indicators using a mix of vertical and horizontal Stacks.'
1253
+ }
1254
+ }
1255
+ }
1256
+ };
1257
+ export var ProductCard = {
1258
+ render: function() {
1259
+ return /*#__PURE__*/ _jsx(Card, {
1260
+ title: "Product Details",
1261
+ padded: true,
1262
+ children: /*#__PURE__*/ _jsxs(Stack, {
1263
+ horizontal: true,
1264
+ gap: "md",
1265
+ blockAlign: "start",
1266
+ wrap: true,
1267
+ children: [
1268
+ /*#__PURE__*/ _jsx(Box, {
1269
+ width: "200px",
1270
+ height: "200px",
1271
+ background: "subdued",
1272
+ borderRadius: "lg",
1273
+ flexShrink: 0
1274
+ }),
1275
+ /*#__PURE__*/ _jsx(Box, {
1276
+ flex: "1",
1277
+ minWidth: "250px",
1278
+ children: /*#__PURE__*/ _jsxs(Stack, {
1279
+ gap: "sm",
1280
+ children: [
1281
+ /*#__PURE__*/ _jsxs(Stack, {
1282
+ gap: "xs",
1283
+ children: [
1284
+ /*#__PURE__*/ _jsx(Text, {
1285
+ variant: "headingLg",
1286
+ children: "Premium Widget"
1287
+ }),
1288
+ /*#__PURE__*/ _jsx(Text, {
1289
+ color: "subdued",
1290
+ children: "SKU: WIDGET-001"
1291
+ })
1292
+ ]
1293
+ }),
1294
+ /*#__PURE__*/ _jsx(Text, {
1295
+ children: "A high-quality widget designed for professional use. Features advanced functionality and premium materials for lasting performance."
1296
+ }),
1297
+ /*#__PURE__*/ _jsxs(Stack, {
1298
+ horizontal: true,
1299
+ gap: "sm",
1300
+ align: "space-between",
1301
+ blockAlign: "center",
1302
+ wrap: true,
1303
+ children: [
1304
+ /*#__PURE__*/ _jsx(Text, {
1305
+ variant: "headingMd",
1306
+ color: "primary",
1307
+ children: "$149.99"
1308
+ }),
1309
+ /*#__PURE__*/ _jsxs(Stack, {
1310
+ horizontal: true,
1311
+ gap: "sm",
1312
+ children: [
1313
+ /*#__PURE__*/ _jsx(Button, {
1314
+ children: "Add to Cart"
1315
+ }),
1316
+ /*#__PURE__*/ _jsx(Button, {
1317
+ primary: true,
1318
+ children: "Buy Now"
1319
+ })
1320
+ ]
1321
+ })
1322
+ ]
1323
+ })
1324
+ ]
1325
+ })
1326
+ })
1327
+ ]
1328
+ })
1329
+ });
1330
+ },
1331
+ parameters: {
1332
+ docs: {
1333
+ description: {
1334
+ story: 'Responsive product card layout using nested vertical and horizontal Stacks.'
1335
+ }
1336
+ }
1337
+ }
1338
+ };