@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,1226 @@
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 LayoutSection from "../components/LayoutSection.js";
56
+ import Layout from "../components/Layout.js";
57
+ import Text from "../components/Text.js";
58
+ import Card from "../components/Card.js";
59
+ import Button from "../components/Button.js";
60
+ import Page from "../components/Page.js";
61
+ import VerticalStack from "../components/VerticalStack.js";
62
+ import HorizontalStack from "../components/HorizontalStack.js";
63
+ import Box from "../components/Box.js";
64
+ import Grid from "../components/Grid.js";
65
+ export default {
66
+ title: 'Litho/LayoutSection',
67
+ component: LayoutSection,
68
+ parameters: {
69
+ layout: 'fullscreen',
70
+ docs: {
71
+ description: {
72
+ component: "A Layout Section component for flexible content grouping within layouts. It supports sidebar configurations, sticky positioning, and responsive behavior. Must be used within a Layout component."
73
+ },
74
+ source: {
75
+ transform: transformStorySource
76
+ }
77
+ }
78
+ },
79
+ tags: [
80
+ 'autodocs'
81
+ ],
82
+ argTypes: {
83
+ sidebar: {
84
+ control: 'select',
85
+ options: [
86
+ false,
87
+ true,
88
+ 'slim'
89
+ ],
90
+ description: 'Configures the section layout - true for sidebar, "slim" for slim sidebar, false for full width'
91
+ },
92
+ sticky: {
93
+ control: 'boolean',
94
+ description: 'Whether the section becomes sticky'
95
+ },
96
+ children: {
97
+ control: false,
98
+ description: 'Content to render inside the section'
99
+ }
100
+ }
101
+ };
102
+ export var Default = {
103
+ render: function(args) {
104
+ return /*#__PURE__*/ _jsx(Page, {
105
+ title: "Layout Section Demo",
106
+ children: /*#__PURE__*/ _jsx(Layout, {
107
+ children: /*#__PURE__*/ _jsx(LayoutSection, _object_spread_props(_object_spread({}, args), {
108
+ children: /*#__PURE__*/ _jsx(Card, {
109
+ title: "Main Content",
110
+ padded: true,
111
+ children: /*#__PURE__*/ _jsx(Text, {
112
+ children: "This is the main content area. It will take up the full width unless there's a sidebar section present."
113
+ })
114
+ })
115
+ }))
116
+ })
117
+ });
118
+ },
119
+ args: {
120
+ sidebar: false,
121
+ sticky: false
122
+ }
123
+ };
124
+ export var WithSidebar = {
125
+ render: function() {
126
+ return /*#__PURE__*/ _jsx(Page, {
127
+ title: "Sidebar Layout",
128
+ children: /*#__PURE__*/ _jsxs(Layout, {
129
+ children: [
130
+ /*#__PURE__*/ _jsx(LayoutSection, {
131
+ children: /*#__PURE__*/ _jsx(Card, {
132
+ title: "Main Content",
133
+ padded: true,
134
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
135
+ gap: "4",
136
+ children: [
137
+ /*#__PURE__*/ _jsx(Text, {
138
+ children: "This is the main content area. It automatically adjusts its width when a sidebar is present."
139
+ }),
140
+ /*#__PURE__*/ _jsx(Text, {
141
+ children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
142
+ }),
143
+ /*#__PURE__*/ _jsx(Text, {
144
+ children: "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
145
+ }),
146
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
147
+ gap: "4",
148
+ children: [
149
+ /*#__PURE__*/ _jsx(Button, {
150
+ primary: true,
151
+ children: "Save Changes"
152
+ }),
153
+ /*#__PURE__*/ _jsx(Button, {
154
+ children: "Cancel"
155
+ })
156
+ ]
157
+ })
158
+ ]
159
+ })
160
+ })
161
+ }),
162
+ /*#__PURE__*/ _jsx(LayoutSection, {
163
+ sidebar: true,
164
+ children: /*#__PURE__*/ _jsx(Card, {
165
+ title: "Sidebar",
166
+ padded: true,
167
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
168
+ gap: "4",
169
+ children: [
170
+ /*#__PURE__*/ _jsx(Text, {
171
+ variant: "headingSm",
172
+ children: "Navigation"
173
+ }),
174
+ /*#__PURE__*/ _jsxs(VerticalStack, {
175
+ gap: "2",
176
+ children: [
177
+ /*#__PURE__*/ _jsx(Button, {
178
+ size: "slim",
179
+ plain: true,
180
+ textAlign: "left",
181
+ children: "Overview"
182
+ }),
183
+ /*#__PURE__*/ _jsx(Button, {
184
+ size: "slim",
185
+ plain: true,
186
+ textAlign: "left",
187
+ children: "Settings"
188
+ }),
189
+ /*#__PURE__*/ _jsx(Button, {
190
+ size: "slim",
191
+ plain: true,
192
+ textAlign: "left",
193
+ children: "Team"
194
+ }),
195
+ /*#__PURE__*/ _jsx(Button, {
196
+ size: "slim",
197
+ plain: true,
198
+ textAlign: "left",
199
+ children: "Billing"
200
+ })
201
+ ]
202
+ }),
203
+ /*#__PURE__*/ _jsx(Box, {
204
+ paddingBlockStart: "4",
205
+ padding: "4",
206
+ background: "bg-surface-neutral-subdued",
207
+ borderRadius: "1",
208
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
209
+ gap: "2",
210
+ children: [
211
+ /*#__PURE__*/ _jsx(Text, {
212
+ variant: "headingSm",
213
+ children: "Quick Stats"
214
+ }),
215
+ /*#__PURE__*/ _jsxs(VerticalStack, {
216
+ gap: "1",
217
+ children: [
218
+ /*#__PURE__*/ _jsx(Text, {
219
+ variant: "bodySm",
220
+ children: "Active Users: 1,234"
221
+ }),
222
+ /*#__PURE__*/ _jsx(Text, {
223
+ variant: "bodySm",
224
+ children: "Revenue: $45,678"
225
+ }),
226
+ /*#__PURE__*/ _jsx(Text, {
227
+ variant: "bodySm",
228
+ children: "Growth: +12.5%"
229
+ })
230
+ ]
231
+ })
232
+ ]
233
+ })
234
+ })
235
+ ]
236
+ })
237
+ })
238
+ })
239
+ ]
240
+ })
241
+ });
242
+ },
243
+ parameters: {
244
+ docs: {
245
+ description: {
246
+ story: 'Layout with main content and a sidebar section.'
247
+ }
248
+ }
249
+ }
250
+ };
251
+ export var SlimSidebar = {
252
+ render: function() {
253
+ return /*#__PURE__*/ _jsx(Page, {
254
+ title: "Slim Sidebar Layout",
255
+ children: /*#__PURE__*/ _jsxs(Layout, {
256
+ children: [
257
+ /*#__PURE__*/ _jsx(LayoutSection, {
258
+ children: /*#__PURE__*/ _jsx(Card, {
259
+ title: "Article Content",
260
+ padded: true,
261
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
262
+ gap: "6",
263
+ children: [
264
+ /*#__PURE__*/ _jsx(Text, {
265
+ variant: "headingLg",
266
+ children: "Understanding Layout Sections"
267
+ }),
268
+ /*#__PURE__*/ _jsx(Text, {
269
+ children: "Layout sections provide a flexible way to organize content within your application. The slim sidebar variant is perfect for navigation or supplementary information that doesn't need as much space as a full sidebar."
270
+ }),
271
+ /*#__PURE__*/ _jsx(Text, {
272
+ children: "This main content area automatically adjusts to accommodate the slim sidebar, ensuring optimal use of screen space while maintaining readability and usability."
273
+ }),
274
+ /*#__PURE__*/ _jsx(Text, {
275
+ children: "The responsive behavior ensures that on smaller screens, the layout adapts appropriately to provide the best user experience across all device sizes."
276
+ }),
277
+ /*#__PURE__*/ _jsx(Box, {
278
+ paddingBlockStart: "8",
279
+ children: /*#__PURE__*/ _jsxs(Grid, {
280
+ columns: {
281
+ xs: 1,
282
+ md: 3
283
+ },
284
+ gap: "4",
285
+ children: [
286
+ /*#__PURE__*/ _jsx(Box, {
287
+ padding: "4",
288
+ borderWidth: "1",
289
+ borderColor: "border",
290
+ borderRadius: "1",
291
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
292
+ gap: "2",
293
+ children: [
294
+ /*#__PURE__*/ _jsx(Text, {
295
+ variant: "headingSm",
296
+ children: "Feature 1"
297
+ }),
298
+ /*#__PURE__*/ _jsx(Text, {
299
+ variant: "bodySm",
300
+ children: "Description of feature"
301
+ })
302
+ ]
303
+ })
304
+ }),
305
+ /*#__PURE__*/ _jsx(Box, {
306
+ padding: "4",
307
+ borderWidth: "1",
308
+ borderColor: "border",
309
+ borderRadius: "1",
310
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
311
+ gap: "2",
312
+ children: [
313
+ /*#__PURE__*/ _jsx(Text, {
314
+ variant: "headingSm",
315
+ children: "Feature 2"
316
+ }),
317
+ /*#__PURE__*/ _jsx(Text, {
318
+ variant: "bodySm",
319
+ children: "Description of feature"
320
+ })
321
+ ]
322
+ })
323
+ }),
324
+ /*#__PURE__*/ _jsx(Box, {
325
+ padding: "4",
326
+ borderWidth: "1",
327
+ borderColor: "border",
328
+ borderRadius: "1",
329
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
330
+ gap: "2",
331
+ children: [
332
+ /*#__PURE__*/ _jsx(Text, {
333
+ variant: "headingSm",
334
+ children: "Feature 3"
335
+ }),
336
+ /*#__PURE__*/ _jsx(Text, {
337
+ variant: "bodySm",
338
+ children: "Description of feature"
339
+ })
340
+ ]
341
+ })
342
+ })
343
+ ]
344
+ })
345
+ })
346
+ ]
347
+ })
348
+ })
349
+ }),
350
+ /*#__PURE__*/ _jsx(LayoutSection, {
351
+ sidebar: "slim",
352
+ children: /*#__PURE__*/ _jsx(Card, {
353
+ title: "Tools",
354
+ padded: true,
355
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
356
+ gap: "4",
357
+ children: [
358
+ /*#__PURE__*/ _jsx("div", {
359
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
360
+ gap: "2",
361
+ children: [
362
+ /*#__PURE__*/ _jsx(Text, {
363
+ variant: "headingSm",
364
+ children: "Actions"
365
+ }),
366
+ /*#__PURE__*/ _jsxs(VerticalStack, {
367
+ gap: "2",
368
+ children: [
369
+ /*#__PURE__*/ _jsx(Button, {
370
+ size: "slim",
371
+ children: "Edit"
372
+ }),
373
+ /*#__PURE__*/ _jsx(Button, {
374
+ size: "slim",
375
+ children: "Share"
376
+ }),
377
+ /*#__PURE__*/ _jsx(Button, {
378
+ size: "slim",
379
+ children: "Export"
380
+ })
381
+ ]
382
+ })
383
+ ]
384
+ })
385
+ }),
386
+ /*#__PURE__*/ _jsx(Box, {
387
+ borderBlockStartWidth: "1",
388
+ borderColor: "border",
389
+ paddingBlockStart: "4",
390
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
391
+ gap: "2",
392
+ children: [
393
+ /*#__PURE__*/ _jsx(Text, {
394
+ variant: "headingSm",
395
+ children: "Info"
396
+ }),
397
+ /*#__PURE__*/ _jsxs(VerticalStack, {
398
+ gap: "1",
399
+ children: [
400
+ /*#__PURE__*/ _jsx(Text, {
401
+ variant: "caption",
402
+ children: "Created: 2 days ago"
403
+ }),
404
+ /*#__PURE__*/ _jsx(Text, {
405
+ variant: "caption",
406
+ children: "Modified: 1 hour ago"
407
+ }),
408
+ /*#__PURE__*/ _jsx(Text, {
409
+ variant: "caption",
410
+ children: "Views: 156"
411
+ })
412
+ ]
413
+ })
414
+ ]
415
+ })
416
+ })
417
+ ]
418
+ })
419
+ })
420
+ })
421
+ ]
422
+ })
423
+ });
424
+ },
425
+ parameters: {
426
+ docs: {
427
+ description: {
428
+ story: 'Layout with main content and a slim sidebar for tools and metadata.'
429
+ }
430
+ }
431
+ }
432
+ };
433
+ export var StickySection = {
434
+ render: function() {
435
+ return /*#__PURE__*/ _jsx(Page, {
436
+ title: "Sticky Sidebar Demo",
437
+ children: /*#__PURE__*/ _jsxs(Layout, {
438
+ children: [
439
+ /*#__PURE__*/ _jsx(LayoutSection, {
440
+ children: /*#__PURE__*/ _jsx(Card, {
441
+ title: "Long Article",
442
+ padded: true,
443
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
444
+ gap: "6",
445
+ children: [
446
+ /*#__PURE__*/ _jsx(Text, {
447
+ variant: "headingLg",
448
+ children: "Scroll to See Sticky Behavior"
449
+ }),
450
+ Array.from({
451
+ length: 20
452
+ }, function(_, i) {
453
+ return /*#__PURE__*/ _jsxs("div", {
454
+ children: [
455
+ /*#__PURE__*/ _jsx(Box, {
456
+ paddingBlockEnd: "2",
457
+ children: /*#__PURE__*/ _jsxs(Text, {
458
+ variant: "headingSm",
459
+ children: [
460
+ "Section ",
461
+ i + 1
462
+ ]
463
+ })
464
+ }),
465
+ /*#__PURE__*/ _jsxs(Text, {
466
+ children: [
467
+ "This is paragraph ",
468
+ i + 1,
469
+ ". Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
470
+ ]
471
+ })
472
+ ]
473
+ }, i);
474
+ })
475
+ ]
476
+ })
477
+ })
478
+ }),
479
+ /*#__PURE__*/ _jsx(LayoutSection, {
480
+ sidebar: true,
481
+ sticky: true,
482
+ children: /*#__PURE__*/ _jsx(Card, {
483
+ title: "Sticky Navigation",
484
+ padded: true,
485
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
486
+ gap: "4",
487
+ children: [
488
+ /*#__PURE__*/ _jsx(Text, {
489
+ variant: "headingSm",
490
+ children: "Table of Contents"
491
+ }),
492
+ /*#__PURE__*/ _jsx(VerticalStack, {
493
+ gap: "2",
494
+ children: Array.from({
495
+ length: 10
496
+ }, function(_, i) {
497
+ return /*#__PURE__*/ _jsxs(Button, {
498
+ size: "slim",
499
+ plain: true,
500
+ textAlign: "left",
501
+ onClick: function() {
502
+ var element = document.querySelector("h3:nth-of-type(".concat(i + 1, ")"));
503
+ element === null || element === void 0 ? void 0 : element.scrollIntoView({
504
+ behavior: 'smooth'
505
+ });
506
+ },
507
+ children: [
508
+ "Section ",
509
+ i + 1
510
+ ]
511
+ }, i);
512
+ })
513
+ }),
514
+ /*#__PURE__*/ _jsx(Box, {
515
+ paddingBlockStart: "4",
516
+ borderBlockStartWidth: "1",
517
+ borderColor: "border",
518
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
519
+ gap: "2",
520
+ children: [
521
+ /*#__PURE__*/ _jsx(Text, {
522
+ variant: "headingSm",
523
+ children: "Reading Progress"
524
+ }),
525
+ /*#__PURE__*/ _jsx(Box, {
526
+ style: {
527
+ width: '100%',
528
+ height: '8px',
529
+ backgroundColor: '#e1e1e1',
530
+ borderRadius: '4px',
531
+ overflow: 'hidden'
532
+ },
533
+ children: /*#__PURE__*/ _jsx(Box, {
534
+ style: {
535
+ width: '35%',
536
+ height: '100%',
537
+ backgroundColor: '#007bff',
538
+ transition: 'width 0.3s ease'
539
+ }
540
+ })
541
+ })
542
+ ]
543
+ })
544
+ })
545
+ ]
546
+ })
547
+ })
548
+ })
549
+ ]
550
+ })
551
+ });
552
+ },
553
+ parameters: {
554
+ docs: {
555
+ description: {
556
+ story: 'Layout with sticky sidebar that remains in view while scrolling through long content.'
557
+ }
558
+ }
559
+ }
560
+ };
561
+ export var SettingsLayout = {
562
+ render: function() {
563
+ return /*#__PURE__*/ _jsx(Page, {
564
+ title: "Account Settings",
565
+ children: /*#__PURE__*/ _jsxs(Layout, {
566
+ children: [
567
+ /*#__PURE__*/ _jsx(LayoutSection, {
568
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
569
+ gap: "8",
570
+ children: [
571
+ /*#__PURE__*/ _jsx(Card, {
572
+ title: "Profile Information",
573
+ padded: true,
574
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
575
+ gap: "4",
576
+ children: [
577
+ /*#__PURE__*/ _jsxs(Grid, {
578
+ columns: 2,
579
+ gap: "4",
580
+ children: [
581
+ /*#__PURE__*/ _jsxs(VerticalStack, {
582
+ gap: "2",
583
+ children: [
584
+ /*#__PURE__*/ _jsx(Text, {
585
+ variant: "bodySm",
586
+ children: "First Name"
587
+ }),
588
+ /*#__PURE__*/ _jsx("input", {
589
+ type: "text",
590
+ defaultValue: "John",
591
+ style: {
592
+ width: '100%',
593
+ padding: '0.5rem',
594
+ border: '1px solid #ccc',
595
+ borderRadius: '4px'
596
+ }
597
+ })
598
+ ]
599
+ }),
600
+ /*#__PURE__*/ _jsxs(VerticalStack, {
601
+ gap: "2",
602
+ children: [
603
+ /*#__PURE__*/ _jsx(Text, {
604
+ variant: "bodySm",
605
+ children: "Last Name"
606
+ }),
607
+ /*#__PURE__*/ _jsx("input", {
608
+ type: "text",
609
+ defaultValue: "Doe",
610
+ style: {
611
+ width: '100%',
612
+ padding: '0.5rem',
613
+ border: '1px solid #ccc',
614
+ borderRadius: '4px'
615
+ }
616
+ })
617
+ ]
618
+ })
619
+ ]
620
+ }),
621
+ /*#__PURE__*/ _jsxs(VerticalStack, {
622
+ gap: "2",
623
+ children: [
624
+ /*#__PURE__*/ _jsx(Text, {
625
+ variant: "bodySm",
626
+ children: "Email Address"
627
+ }),
628
+ /*#__PURE__*/ _jsx("input", {
629
+ type: "email",
630
+ defaultValue: "john.doe@example.com",
631
+ style: {
632
+ width: '100%',
633
+ padding: '0.5rem',
634
+ border: '1px solid #ccc',
635
+ borderRadius: '4px'
636
+ }
637
+ })
638
+ ]
639
+ })
640
+ ]
641
+ })
642
+ }),
643
+ /*#__PURE__*/ _jsx(Card, {
644
+ title: "Password & Security",
645
+ padded: true,
646
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
647
+ gap: "4",
648
+ children: [
649
+ /*#__PURE__*/ _jsxs(VerticalStack, {
650
+ gap: "2",
651
+ children: [
652
+ /*#__PURE__*/ _jsx(Text, {
653
+ variant: "bodySm",
654
+ children: "Current Password"
655
+ }),
656
+ /*#__PURE__*/ _jsx("input", {
657
+ type: "password",
658
+ placeholder: "Enter current password",
659
+ style: {
660
+ width: '100%',
661
+ padding: '0.5rem',
662
+ border: '1px solid #ccc',
663
+ borderRadius: '4px'
664
+ }
665
+ })
666
+ ]
667
+ }),
668
+ /*#__PURE__*/ _jsxs(Grid, {
669
+ columns: 2,
670
+ gap: "4",
671
+ children: [
672
+ /*#__PURE__*/ _jsxs(VerticalStack, {
673
+ gap: "2",
674
+ children: [
675
+ /*#__PURE__*/ _jsx(Text, {
676
+ variant: "bodySm",
677
+ children: "New Password"
678
+ }),
679
+ /*#__PURE__*/ _jsx("input", {
680
+ type: "password",
681
+ placeholder: "New password",
682
+ style: {
683
+ width: '100%',
684
+ padding: '0.5rem',
685
+ border: '1px solid #ccc',
686
+ borderRadius: '4px'
687
+ }
688
+ })
689
+ ]
690
+ }),
691
+ /*#__PURE__*/ _jsxs(VerticalStack, {
692
+ gap: "2",
693
+ children: [
694
+ /*#__PURE__*/ _jsx(Text, {
695
+ variant: "bodySm",
696
+ children: "Confirm Password"
697
+ }),
698
+ /*#__PURE__*/ _jsx("input", {
699
+ type: "password",
700
+ placeholder: "Confirm password",
701
+ style: {
702
+ width: '100%',
703
+ padding: '0.5rem',
704
+ border: '1px solid #ccc',
705
+ borderRadius: '4px'
706
+ }
707
+ })
708
+ ]
709
+ })
710
+ ]
711
+ })
712
+ ]
713
+ })
714
+ }),
715
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
716
+ gap: "4",
717
+ children: [
718
+ /*#__PURE__*/ _jsx(Button, {
719
+ primary: true,
720
+ children: "Save Changes"
721
+ }),
722
+ /*#__PURE__*/ _jsx(Button, {
723
+ children: "Cancel"
724
+ })
725
+ ]
726
+ })
727
+ ]
728
+ })
729
+ }),
730
+ /*#__PURE__*/ _jsx(LayoutSection, {
731
+ sidebar: true,
732
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
733
+ gap: "4",
734
+ children: [
735
+ /*#__PURE__*/ _jsx(Card, {
736
+ title: "Settings Menu",
737
+ padded: true,
738
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
739
+ gap: "2",
740
+ children: [
741
+ /*#__PURE__*/ _jsx(Button, {
742
+ size: "slim",
743
+ plain: true,
744
+ textAlign: "left",
745
+ children: "Profile"
746
+ }),
747
+ /*#__PURE__*/ _jsx(Button, {
748
+ size: "slim",
749
+ plain: true,
750
+ textAlign: "left",
751
+ children: "Security"
752
+ }),
753
+ /*#__PURE__*/ _jsx(Button, {
754
+ size: "slim",
755
+ plain: true,
756
+ textAlign: "left",
757
+ children: "Notifications"
758
+ }),
759
+ /*#__PURE__*/ _jsx(Button, {
760
+ size: "slim",
761
+ plain: true,
762
+ textAlign: "left",
763
+ children: "Privacy"
764
+ }),
765
+ /*#__PURE__*/ _jsx(Button, {
766
+ size: "slim",
767
+ plain: true,
768
+ textAlign: "left",
769
+ children: "Billing"
770
+ }),
771
+ /*#__PURE__*/ _jsx(Button, {
772
+ size: "slim",
773
+ plain: true,
774
+ textAlign: "left",
775
+ children: "Team"
776
+ })
777
+ ]
778
+ })
779
+ }),
780
+ /*#__PURE__*/ _jsx(Card, {
781
+ title: "Account Status",
782
+ padded: true,
783
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
784
+ gap: "2",
785
+ children: [
786
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
787
+ align: "space-between",
788
+ children: [
789
+ /*#__PURE__*/ _jsx(Text, {
790
+ variant: "bodySm",
791
+ children: "Plan:"
792
+ }),
793
+ /*#__PURE__*/ _jsx(Text, {
794
+ variant: "bodySm",
795
+ children: "Pro"
796
+ })
797
+ ]
798
+ }),
799
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
800
+ align: "space-between",
801
+ children: [
802
+ /*#__PURE__*/ _jsx(Text, {
803
+ variant: "bodySm",
804
+ children: "Status:"
805
+ }),
806
+ /*#__PURE__*/ _jsx(Text, {
807
+ variant: "bodySm",
808
+ style: {
809
+ color: '#28a745'
810
+ },
811
+ children: "Active"
812
+ })
813
+ ]
814
+ }),
815
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
816
+ align: "space-between",
817
+ children: [
818
+ /*#__PURE__*/ _jsx(Text, {
819
+ variant: "bodySm",
820
+ children: "Renewal:"
821
+ }),
822
+ /*#__PURE__*/ _jsx(Text, {
823
+ variant: "bodySm",
824
+ children: "Dec 15, 2024"
825
+ })
826
+ ]
827
+ })
828
+ ]
829
+ })
830
+ })
831
+ ]
832
+ })
833
+ })
834
+ ]
835
+ })
836
+ });
837
+ },
838
+ parameters: {
839
+ docs: {
840
+ description: {
841
+ story: 'Settings page layout with form content and navigation sidebar.'
842
+ }
843
+ }
844
+ }
845
+ };
846
+ export var DashboardLayout = {
847
+ render: function() {
848
+ return /*#__PURE__*/ _jsx(Page, {
849
+ title: "Analytics Dashboard",
850
+ children: /*#__PURE__*/ _jsxs(Layout, {
851
+ children: [
852
+ /*#__PURE__*/ _jsx(LayoutSection, {
853
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
854
+ gap: "8",
855
+ children: [
856
+ /*#__PURE__*/ _jsxs(Grid, {
857
+ columns: {
858
+ xs: 1,
859
+ md: 3
860
+ },
861
+ gap: "4",
862
+ children: [
863
+ /*#__PURE__*/ _jsx(Card, {
864
+ padded: true,
865
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
866
+ gap: "1",
867
+ inlineAlign: "center",
868
+ children: [
869
+ /*#__PURE__*/ _jsx(Text, {
870
+ variant: "headingLg",
871
+ children: "1,234"
872
+ }),
873
+ /*#__PURE__*/ _jsx(Text, {
874
+ variant: "bodySm",
875
+ color: "subdued",
876
+ children: "Total Users"
877
+ })
878
+ ]
879
+ })
880
+ }),
881
+ /*#__PURE__*/ _jsx(Card, {
882
+ padded: true,
883
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
884
+ gap: "1",
885
+ inlineAlign: "center",
886
+ children: [
887
+ /*#__PURE__*/ _jsx(Text, {
888
+ variant: "headingLg",
889
+ children: "$45.2K"
890
+ }),
891
+ /*#__PURE__*/ _jsx(Text, {
892
+ variant: "bodySm",
893
+ color: "subdued",
894
+ children: "Revenue"
895
+ })
896
+ ]
897
+ })
898
+ }),
899
+ /*#__PURE__*/ _jsx(Card, {
900
+ padded: true,
901
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
902
+ gap: "1",
903
+ inlineAlign: "center",
904
+ children: [
905
+ /*#__PURE__*/ _jsx(Text, {
906
+ variant: "headingLg",
907
+ children: "89.5%"
908
+ }),
909
+ /*#__PURE__*/ _jsx(Text, {
910
+ variant: "bodySm",
911
+ color: "subdued",
912
+ children: "Conversion"
913
+ })
914
+ ]
915
+ })
916
+ })
917
+ ]
918
+ }),
919
+ /*#__PURE__*/ _jsx(Card, {
920
+ title: "Performance Over Time",
921
+ padded: true,
922
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
923
+ blockAlign: "center",
924
+ inlineAlign: "center",
925
+ as: Box,
926
+ padding: "12",
927
+ background: "bg-surface-neutral-subdued",
928
+ borderRadius: "1",
929
+ style: {
930
+ height: '300px'
931
+ },
932
+ children: /*#__PURE__*/ _jsx(Text, {
933
+ color: "subdued",
934
+ children: "Chart would be rendered here"
935
+ })
936
+ })
937
+ }),
938
+ /*#__PURE__*/ _jsx(Card, {
939
+ title: "Recent Activity",
940
+ padded: true,
941
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
942
+ gap: "2",
943
+ children: Array.from({
944
+ length: 5
945
+ }, function(_, i) {
946
+ return /*#__PURE__*/ _jsx(Box, {
947
+ padding: "2",
948
+ borderWidth: "1",
949
+ borderColor: "border",
950
+ borderRadius: "1",
951
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
952
+ align: "space-between",
953
+ children: [
954
+ /*#__PURE__*/ _jsxs(Text, {
955
+ children: [
956
+ "User action ",
957
+ i + 1
958
+ ]
959
+ }),
960
+ /*#__PURE__*/ _jsx(Text, {
961
+ variant: "bodySm",
962
+ color: "subdued",
963
+ children: "2 hours ago"
964
+ })
965
+ ]
966
+ })
967
+ }, i);
968
+ })
969
+ })
970
+ })
971
+ ]
972
+ })
973
+ }),
974
+ /*#__PURE__*/ _jsx(LayoutSection, {
975
+ sidebar: "slim",
976
+ sticky: true,
977
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
978
+ gap: "4",
979
+ children: [
980
+ /*#__PURE__*/ _jsx(Card, {
981
+ title: "Filters",
982
+ padded: true,
983
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
984
+ gap: "2",
985
+ children: [
986
+ /*#__PURE__*/ _jsx(Text, {
987
+ variant: "bodySm",
988
+ children: "Date Range"
989
+ }),
990
+ /*#__PURE__*/ _jsxs("select", {
991
+ style: {
992
+ padding: '0.5rem',
993
+ border: '1px solid #ccc',
994
+ borderRadius: '4px'
995
+ },
996
+ children: [
997
+ /*#__PURE__*/ _jsx("option", {
998
+ children: "Last 7 days"
999
+ }),
1000
+ /*#__PURE__*/ _jsx("option", {
1001
+ children: "Last 30 days"
1002
+ }),
1003
+ /*#__PURE__*/ _jsx("option", {
1004
+ children: "Last 90 days"
1005
+ })
1006
+ ]
1007
+ }),
1008
+ /*#__PURE__*/ _jsx(Box, {
1009
+ paddingBlockStart: "4",
1010
+ children: /*#__PURE__*/ _jsx(Text, {
1011
+ variant: "bodySm",
1012
+ children: "Source"
1013
+ })
1014
+ }),
1015
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1016
+ gap: "1",
1017
+ children: [
1018
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1019
+ gap: "2",
1020
+ blockAlign: "center",
1021
+ children: [
1022
+ /*#__PURE__*/ _jsx("input", {
1023
+ type: "checkbox",
1024
+ defaultChecked: true
1025
+ }),
1026
+ /*#__PURE__*/ _jsx(Text, {
1027
+ variant: "bodySm",
1028
+ children: "Organic"
1029
+ })
1030
+ ]
1031
+ }),
1032
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1033
+ gap: "2",
1034
+ blockAlign: "center",
1035
+ children: [
1036
+ /*#__PURE__*/ _jsx("input", {
1037
+ type: "checkbox",
1038
+ defaultChecked: true
1039
+ }),
1040
+ /*#__PURE__*/ _jsx(Text, {
1041
+ variant: "bodySm",
1042
+ children: "Paid"
1043
+ })
1044
+ ]
1045
+ }),
1046
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
1047
+ gap: "2",
1048
+ blockAlign: "center",
1049
+ children: [
1050
+ /*#__PURE__*/ _jsx("input", {
1051
+ type: "checkbox"
1052
+ }),
1053
+ /*#__PURE__*/ _jsx(Text, {
1054
+ variant: "bodySm",
1055
+ children: "Social"
1056
+ })
1057
+ ]
1058
+ })
1059
+ ]
1060
+ })
1061
+ ]
1062
+ })
1063
+ }),
1064
+ /*#__PURE__*/ _jsx(Card, {
1065
+ title: "Export",
1066
+ padded: true,
1067
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1068
+ gap: "2",
1069
+ children: [
1070
+ /*#__PURE__*/ _jsx(Button, {
1071
+ size: "slim",
1072
+ children: "Export PDF"
1073
+ }),
1074
+ /*#__PURE__*/ _jsx(Button, {
1075
+ size: "slim",
1076
+ children: "Export CSV"
1077
+ }),
1078
+ /*#__PURE__*/ _jsx(Button, {
1079
+ size: "slim",
1080
+ children: "Share Report"
1081
+ })
1082
+ ]
1083
+ })
1084
+ })
1085
+ ]
1086
+ })
1087
+ })
1088
+ ]
1089
+ })
1090
+ });
1091
+ },
1092
+ parameters: {
1093
+ docs: {
1094
+ description: {
1095
+ story: 'Dashboard layout with main analytics content and sticky filter sidebar.'
1096
+ }
1097
+ }
1098
+ }
1099
+ };
1100
+ export var ResponsiveBehavior = {
1101
+ render: function() {
1102
+ return /*#__PURE__*/ _jsx(Page, {
1103
+ title: "Responsive Layout Demo",
1104
+ children: /*#__PURE__*/ _jsxs(Layout, {
1105
+ children: [
1106
+ /*#__PURE__*/ _jsx(LayoutSection, {
1107
+ children: /*#__PURE__*/ _jsx(Card, {
1108
+ title: "Main Content Area",
1109
+ padded: true,
1110
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1111
+ gap: "4",
1112
+ children: [
1113
+ /*#__PURE__*/ _jsx(Text, {
1114
+ children: "This layout demonstrates responsive behavior. On larger screens, you'll see the sidebar alongside this main content. On smaller screens, the layout automatically stacks vertically for better mobile experience."
1115
+ }),
1116
+ /*#__PURE__*/ _jsx(Text, {
1117
+ children: "Resize your browser window to see how the layout adapts to different screen sizes. The sidebar will reposition and resize appropriately."
1118
+ }),
1119
+ /*#__PURE__*/ _jsx(Box, {
1120
+ paddingBlockStart: "4",
1121
+ children: /*#__PURE__*/ _jsx(Grid, {
1122
+ columns: {
1123
+ xs: 1,
1124
+ sm: 2,
1125
+ md: 3,
1126
+ lg: 6
1127
+ },
1128
+ gap: "4",
1129
+ children: Array.from({
1130
+ length: 6
1131
+ }, function(_, i) {
1132
+ return /*#__PURE__*/ _jsx(Box, {
1133
+ padding: "4",
1134
+ background: "bg-surface-info-subdued",
1135
+ borderRadius: "1",
1136
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
1137
+ inlineAlign: "center",
1138
+ children: /*#__PURE__*/ _jsxs(Text, {
1139
+ children: [
1140
+ "Item ",
1141
+ i + 1
1142
+ ]
1143
+ })
1144
+ })
1145
+ }, i);
1146
+ })
1147
+ })
1148
+ })
1149
+ ]
1150
+ })
1151
+ })
1152
+ }),
1153
+ /*#__PURE__*/ _jsx(LayoutSection, {
1154
+ sidebar: true,
1155
+ children: /*#__PURE__*/ _jsx(Card, {
1156
+ title: "Responsive Sidebar",
1157
+ padded: true,
1158
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1159
+ gap: "4",
1160
+ children: [
1161
+ /*#__PURE__*/ _jsx(Text, {
1162
+ variant: "headingSm",
1163
+ children: "Breakpoint Info"
1164
+ }),
1165
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1166
+ gap: "1",
1167
+ children: [
1168
+ /*#__PURE__*/ _jsx(Text, {
1169
+ variant: "bodySm",
1170
+ children: "• Large screens: Sidebar at 1/3 width"
1171
+ }),
1172
+ /*#__PURE__*/ _jsx(Text, {
1173
+ variant: "bodySm",
1174
+ children: "• Medium screens: Stacked layout"
1175
+ }),
1176
+ /*#__PURE__*/ _jsx(Text, {
1177
+ variant: "bodySm",
1178
+ children: "• Small screens: Full width sections"
1179
+ })
1180
+ ]
1181
+ }),
1182
+ /*#__PURE__*/ _jsx(Box, {
1183
+ paddingBlockStart: "4",
1184
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
1185
+ gap: "2",
1186
+ children: [
1187
+ /*#__PURE__*/ _jsx(Text, {
1188
+ variant: "headingSm",
1189
+ children: "Test Actions"
1190
+ }),
1191
+ /*#__PURE__*/ _jsxs(VerticalStack, {
1192
+ gap: "2",
1193
+ children: [
1194
+ /*#__PURE__*/ _jsx(Button, {
1195
+ size: "slim",
1196
+ children: "Resize Window"
1197
+ }),
1198
+ /*#__PURE__*/ _jsx(Button, {
1199
+ size: "slim",
1200
+ children: "View on Mobile"
1201
+ }),
1202
+ /*#__PURE__*/ _jsx(Button, {
1203
+ size: "slim",
1204
+ children: "Test Tablet View"
1205
+ })
1206
+ ]
1207
+ })
1208
+ ]
1209
+ })
1210
+ })
1211
+ ]
1212
+ })
1213
+ })
1214
+ })
1215
+ ]
1216
+ })
1217
+ });
1218
+ },
1219
+ parameters: {
1220
+ docs: {
1221
+ description: {
1222
+ story: 'Demonstrates responsive behavior of layout sections across different screen sizes.'
1223
+ }
1224
+ }
1225
+ }
1226
+ };