@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,1234 @@
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 LayoutSection from "../components/LayoutSection.js";
57
+ import Layout from "../components/Layout.js";
58
+ import Text from "../components/Text.js";
59
+ import Card from "../components/Card.js";
60
+ import Button from "../components/Button.js";
61
+ import Page from "../components/Page.js";
62
+ import Box from "../components/Box.js";
63
+ import Grid from "../components/Grid.js";
64
+ export default {
65
+ title: 'Litho/LayoutSection',
66
+ component: LayoutSection,
67
+ parameters: {
68
+ layout: 'fullscreen',
69
+ docs: {
70
+ description: {
71
+ 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."
72
+ },
73
+ source: {
74
+ transform: transformStorySource
75
+ }
76
+ }
77
+ },
78
+ tags: [
79
+ 'autodocs'
80
+ ],
81
+ argTypes: {
82
+ sidebar: {
83
+ control: 'select',
84
+ options: [
85
+ false,
86
+ true,
87
+ 'slim'
88
+ ],
89
+ description: 'Configures the section layout - true for sidebar, "slim" for slim sidebar, false for full width'
90
+ },
91
+ sticky: {
92
+ control: 'boolean',
93
+ description: 'Whether the section becomes sticky'
94
+ },
95
+ children: {
96
+ control: false,
97
+ description: 'Content to render inside the section'
98
+ }
99
+ }
100
+ };
101
+ export var Default = {
102
+ render: function(args) {
103
+ return /*#__PURE__*/ _jsx(Page, {
104
+ title: "Layout Section Demo",
105
+ children: /*#__PURE__*/ _jsx(Layout, {
106
+ children: /*#__PURE__*/ _jsx(LayoutSection, _object_spread_props(_object_spread({}, args), {
107
+ children: /*#__PURE__*/ _jsx(Card, {
108
+ title: "Main Content",
109
+ padded: true,
110
+ children: /*#__PURE__*/ _jsx(Text, {
111
+ children: "This is the main content area. It will take up the full width unless there's a sidebar section present."
112
+ })
113
+ })
114
+ }))
115
+ })
116
+ });
117
+ },
118
+ args: {
119
+ sidebar: false,
120
+ sticky: false
121
+ }
122
+ };
123
+ export var WithSidebar = {
124
+ render: function() {
125
+ return /*#__PURE__*/ _jsx(Page, {
126
+ title: "Sidebar Layout",
127
+ children: /*#__PURE__*/ _jsxs(Layout, {
128
+ children: [
129
+ /*#__PURE__*/ _jsx(LayoutSection, {
130
+ children: /*#__PURE__*/ _jsx(Card, {
131
+ title: "Main Content",
132
+ padded: true,
133
+ children: /*#__PURE__*/ _jsxs(Stack, {
134
+ gap: "md",
135
+ children: [
136
+ /*#__PURE__*/ _jsx(Text, {
137
+ children: "This is the main content area. It automatically adjusts its width when a sidebar is present."
138
+ }),
139
+ /*#__PURE__*/ _jsx(Text, {
140
+ 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."
141
+ }),
142
+ /*#__PURE__*/ _jsx(Text, {
143
+ 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."
144
+ }),
145
+ /*#__PURE__*/ _jsxs(Stack, {
146
+ horizontal: true,
147
+ gap: "md",
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(Stack, {
168
+ gap: "md",
169
+ children: [
170
+ /*#__PURE__*/ _jsx(Text, {
171
+ variant: "headingSm",
172
+ children: "Navigation"
173
+ }),
174
+ /*#__PURE__*/ _jsxs(Stack, {
175
+ gap: "sm",
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(Stack, {
209
+ gap: "sm",
210
+ children: [
211
+ /*#__PURE__*/ _jsx(Text, {
212
+ variant: "headingSm",
213
+ children: "Quick Stats"
214
+ }),
215
+ /*#__PURE__*/ _jsxs(Stack, {
216
+ gap: "xs",
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(Stack, {
262
+ gap: "md",
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(Stack, {
292
+ gap: "sm",
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(Stack, {
311
+ gap: "sm",
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(Stack, {
330
+ gap: "sm",
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(Stack, {
356
+ gap: "md",
357
+ children: [
358
+ /*#__PURE__*/ _jsx("div", {
359
+ children: /*#__PURE__*/ _jsxs(Stack, {
360
+ gap: "sm",
361
+ children: [
362
+ /*#__PURE__*/ _jsx(Text, {
363
+ variant: "headingSm",
364
+ children: "Actions"
365
+ }),
366
+ /*#__PURE__*/ _jsxs(Stack, {
367
+ gap: "sm",
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(Stack, {
391
+ gap: "sm",
392
+ children: [
393
+ /*#__PURE__*/ _jsx(Text, {
394
+ variant: "headingSm",
395
+ children: "Info"
396
+ }),
397
+ /*#__PURE__*/ _jsxs(Stack, {
398
+ gap: "xs",
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(Stack, {
444
+ gap: "md",
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(Stack, {
486
+ gap: "md",
487
+ children: [
488
+ /*#__PURE__*/ _jsx(Text, {
489
+ variant: "headingSm",
490
+ children: "Table of Contents"
491
+ }),
492
+ /*#__PURE__*/ _jsx(Stack, {
493
+ gap: "sm",
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(Stack, {
519
+ gap: "sm",
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(Stack, {
569
+ gap: "lg",
570
+ children: [
571
+ /*#__PURE__*/ _jsx(Card, {
572
+ title: "Profile Information",
573
+ padded: true,
574
+ children: /*#__PURE__*/ _jsxs(Stack, {
575
+ gap: "md",
576
+ children: [
577
+ /*#__PURE__*/ _jsxs(Grid, {
578
+ columns: 2,
579
+ gap: "4",
580
+ children: [
581
+ /*#__PURE__*/ _jsxs(Stack, {
582
+ gap: "sm",
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(Stack, {
601
+ gap: "sm",
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(Stack, {
622
+ gap: "sm",
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(Stack, {
647
+ gap: "md",
648
+ children: [
649
+ /*#__PURE__*/ _jsxs(Stack, {
650
+ gap: "sm",
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(Stack, {
673
+ gap: "sm",
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(Stack, {
692
+ gap: "sm",
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(Stack, {
716
+ horizontal: true,
717
+ gap: "md",
718
+ children: [
719
+ /*#__PURE__*/ _jsx(Button, {
720
+ primary: true,
721
+ children: "Save Changes"
722
+ }),
723
+ /*#__PURE__*/ _jsx(Button, {
724
+ children: "Cancel"
725
+ })
726
+ ]
727
+ })
728
+ ]
729
+ })
730
+ }),
731
+ /*#__PURE__*/ _jsx(LayoutSection, {
732
+ sidebar: true,
733
+ children: /*#__PURE__*/ _jsxs(Stack, {
734
+ gap: "md",
735
+ children: [
736
+ /*#__PURE__*/ _jsx(Card, {
737
+ title: "Settings Menu",
738
+ padded: true,
739
+ children: /*#__PURE__*/ _jsxs(Stack, {
740
+ gap: "sm",
741
+ children: [
742
+ /*#__PURE__*/ _jsx(Button, {
743
+ size: "slim",
744
+ plain: true,
745
+ textAlign: "left",
746
+ children: "Profile"
747
+ }),
748
+ /*#__PURE__*/ _jsx(Button, {
749
+ size: "slim",
750
+ plain: true,
751
+ textAlign: "left",
752
+ children: "Security"
753
+ }),
754
+ /*#__PURE__*/ _jsx(Button, {
755
+ size: "slim",
756
+ plain: true,
757
+ textAlign: "left",
758
+ children: "Notifications"
759
+ }),
760
+ /*#__PURE__*/ _jsx(Button, {
761
+ size: "slim",
762
+ plain: true,
763
+ textAlign: "left",
764
+ children: "Privacy"
765
+ }),
766
+ /*#__PURE__*/ _jsx(Button, {
767
+ size: "slim",
768
+ plain: true,
769
+ textAlign: "left",
770
+ children: "Billing"
771
+ }),
772
+ /*#__PURE__*/ _jsx(Button, {
773
+ size: "slim",
774
+ plain: true,
775
+ textAlign: "left",
776
+ children: "Team"
777
+ })
778
+ ]
779
+ })
780
+ }),
781
+ /*#__PURE__*/ _jsx(Card, {
782
+ title: "Account Status",
783
+ padded: true,
784
+ children: /*#__PURE__*/ _jsxs(Stack, {
785
+ gap: "sm",
786
+ children: [
787
+ /*#__PURE__*/ _jsxs(Stack, {
788
+ horizontal: true,
789
+ align: "space-between",
790
+ children: [
791
+ /*#__PURE__*/ _jsx(Text, {
792
+ variant: "bodySm",
793
+ children: "Plan:"
794
+ }),
795
+ /*#__PURE__*/ _jsx(Text, {
796
+ variant: "bodySm",
797
+ children: "Pro"
798
+ })
799
+ ]
800
+ }),
801
+ /*#__PURE__*/ _jsxs(Stack, {
802
+ horizontal: true,
803
+ align: "space-between",
804
+ children: [
805
+ /*#__PURE__*/ _jsx(Text, {
806
+ variant: "bodySm",
807
+ children: "Status:"
808
+ }),
809
+ /*#__PURE__*/ _jsx(Text, {
810
+ variant: "bodySm",
811
+ style: {
812
+ color: '#28a745'
813
+ },
814
+ children: "Active"
815
+ })
816
+ ]
817
+ }),
818
+ /*#__PURE__*/ _jsxs(Stack, {
819
+ horizontal: true,
820
+ align: "space-between",
821
+ children: [
822
+ /*#__PURE__*/ _jsx(Text, {
823
+ variant: "bodySm",
824
+ children: "Renewal:"
825
+ }),
826
+ /*#__PURE__*/ _jsx(Text, {
827
+ variant: "bodySm",
828
+ children: "Dec 15, 2024"
829
+ })
830
+ ]
831
+ })
832
+ ]
833
+ })
834
+ })
835
+ ]
836
+ })
837
+ })
838
+ ]
839
+ })
840
+ });
841
+ },
842
+ parameters: {
843
+ docs: {
844
+ description: {
845
+ story: 'Settings page layout with form content and navigation sidebar.'
846
+ }
847
+ }
848
+ }
849
+ };
850
+ export var DashboardLayout = {
851
+ render: function() {
852
+ return /*#__PURE__*/ _jsx(Page, {
853
+ title: "Analytics Dashboard",
854
+ children: /*#__PURE__*/ _jsxs(Layout, {
855
+ children: [
856
+ /*#__PURE__*/ _jsx(LayoutSection, {
857
+ children: /*#__PURE__*/ _jsxs(Stack, {
858
+ gap: "lg",
859
+ children: [
860
+ /*#__PURE__*/ _jsxs(Grid, {
861
+ columns: {
862
+ xs: 1,
863
+ md: 3
864
+ },
865
+ gap: "4",
866
+ children: [
867
+ /*#__PURE__*/ _jsx(Card, {
868
+ padded: true,
869
+ children: /*#__PURE__*/ _jsxs(Stack, {
870
+ gap: "xs",
871
+ inlineAlign: "center",
872
+ children: [
873
+ /*#__PURE__*/ _jsx(Text, {
874
+ variant: "headingLg",
875
+ children: "1,234"
876
+ }),
877
+ /*#__PURE__*/ _jsx(Text, {
878
+ variant: "bodySm",
879
+ color: "subdued",
880
+ children: "Total Users"
881
+ })
882
+ ]
883
+ })
884
+ }),
885
+ /*#__PURE__*/ _jsx(Card, {
886
+ padded: true,
887
+ children: /*#__PURE__*/ _jsxs(Stack, {
888
+ gap: "xs",
889
+ inlineAlign: "center",
890
+ children: [
891
+ /*#__PURE__*/ _jsx(Text, {
892
+ variant: "headingLg",
893
+ children: "$45.2K"
894
+ }),
895
+ /*#__PURE__*/ _jsx(Text, {
896
+ variant: "bodySm",
897
+ color: "subdued",
898
+ children: "Revenue"
899
+ })
900
+ ]
901
+ })
902
+ }),
903
+ /*#__PURE__*/ _jsx(Card, {
904
+ padded: true,
905
+ children: /*#__PURE__*/ _jsxs(Stack, {
906
+ gap: "xs",
907
+ inlineAlign: "center",
908
+ children: [
909
+ /*#__PURE__*/ _jsx(Text, {
910
+ variant: "headingLg",
911
+ children: "89.5%"
912
+ }),
913
+ /*#__PURE__*/ _jsx(Text, {
914
+ variant: "bodySm",
915
+ color: "subdued",
916
+ children: "Conversion"
917
+ })
918
+ ]
919
+ })
920
+ })
921
+ ]
922
+ }),
923
+ /*#__PURE__*/ _jsx(Card, {
924
+ title: "Performance Over Time",
925
+ padded: true,
926
+ children: /*#__PURE__*/ _jsx(Stack, {
927
+ blockAlign: "center",
928
+ inlineAlign: "center",
929
+ as: Box,
930
+ padding: "12",
931
+ background: "bg-surface-neutral-subdued",
932
+ borderRadius: "1",
933
+ style: {
934
+ height: '300px'
935
+ },
936
+ children: /*#__PURE__*/ _jsx(Text, {
937
+ color: "subdued",
938
+ children: "Chart would be rendered here"
939
+ })
940
+ })
941
+ }),
942
+ /*#__PURE__*/ _jsx(Card, {
943
+ title: "Recent Activity",
944
+ padded: true,
945
+ children: /*#__PURE__*/ _jsx(Stack, {
946
+ gap: "sm",
947
+ children: Array.from({
948
+ length: 5
949
+ }, function(_, i) {
950
+ return /*#__PURE__*/ _jsx(Box, {
951
+ padding: "2",
952
+ borderWidth: "1",
953
+ borderColor: "border",
954
+ borderRadius: "1",
955
+ children: /*#__PURE__*/ _jsxs(Stack, {
956
+ horizontal: true,
957
+ align: "space-between",
958
+ children: [
959
+ /*#__PURE__*/ _jsxs(Text, {
960
+ children: [
961
+ "User action ",
962
+ i + 1
963
+ ]
964
+ }),
965
+ /*#__PURE__*/ _jsx(Text, {
966
+ variant: "bodySm",
967
+ color: "subdued",
968
+ children: "2 hours ago"
969
+ })
970
+ ]
971
+ })
972
+ }, i);
973
+ })
974
+ })
975
+ })
976
+ ]
977
+ })
978
+ }),
979
+ /*#__PURE__*/ _jsx(LayoutSection, {
980
+ sidebar: "slim",
981
+ sticky: true,
982
+ children: /*#__PURE__*/ _jsxs(Stack, {
983
+ gap: "md",
984
+ children: [
985
+ /*#__PURE__*/ _jsx(Card, {
986
+ title: "Filters",
987
+ padded: true,
988
+ children: /*#__PURE__*/ _jsxs(Stack, {
989
+ gap: "sm",
990
+ children: [
991
+ /*#__PURE__*/ _jsx(Text, {
992
+ variant: "bodySm",
993
+ children: "Date Range"
994
+ }),
995
+ /*#__PURE__*/ _jsxs("select", {
996
+ style: {
997
+ padding: '0.5rem',
998
+ border: '1px solid #ccc',
999
+ borderRadius: '4px'
1000
+ },
1001
+ children: [
1002
+ /*#__PURE__*/ _jsx("option", {
1003
+ children: "Last 7 days"
1004
+ }),
1005
+ /*#__PURE__*/ _jsx("option", {
1006
+ children: "Last 30 days"
1007
+ }),
1008
+ /*#__PURE__*/ _jsx("option", {
1009
+ children: "Last 90 days"
1010
+ })
1011
+ ]
1012
+ }),
1013
+ /*#__PURE__*/ _jsx(Box, {
1014
+ paddingBlockStart: "4",
1015
+ children: /*#__PURE__*/ _jsx(Text, {
1016
+ variant: "bodySm",
1017
+ children: "Source"
1018
+ })
1019
+ }),
1020
+ /*#__PURE__*/ _jsxs(Stack, {
1021
+ gap: "xs",
1022
+ children: [
1023
+ /*#__PURE__*/ _jsxs(Stack, {
1024
+ horizontal: true,
1025
+ gap: "sm",
1026
+ blockAlign: "center",
1027
+ children: [
1028
+ /*#__PURE__*/ _jsx("input", {
1029
+ type: "checkbox",
1030
+ defaultChecked: true
1031
+ }),
1032
+ /*#__PURE__*/ _jsx(Text, {
1033
+ variant: "bodySm",
1034
+ children: "Organic"
1035
+ })
1036
+ ]
1037
+ }),
1038
+ /*#__PURE__*/ _jsxs(Stack, {
1039
+ horizontal: true,
1040
+ gap: "sm",
1041
+ blockAlign: "center",
1042
+ children: [
1043
+ /*#__PURE__*/ _jsx("input", {
1044
+ type: "checkbox",
1045
+ defaultChecked: true
1046
+ }),
1047
+ /*#__PURE__*/ _jsx(Text, {
1048
+ variant: "bodySm",
1049
+ children: "Paid"
1050
+ })
1051
+ ]
1052
+ }),
1053
+ /*#__PURE__*/ _jsxs(Stack, {
1054
+ horizontal: true,
1055
+ gap: "sm",
1056
+ blockAlign: "center",
1057
+ children: [
1058
+ /*#__PURE__*/ _jsx("input", {
1059
+ type: "checkbox"
1060
+ }),
1061
+ /*#__PURE__*/ _jsx(Text, {
1062
+ variant: "bodySm",
1063
+ children: "Social"
1064
+ })
1065
+ ]
1066
+ })
1067
+ ]
1068
+ })
1069
+ ]
1070
+ })
1071
+ }),
1072
+ /*#__PURE__*/ _jsx(Card, {
1073
+ title: "Export",
1074
+ padded: true,
1075
+ children: /*#__PURE__*/ _jsxs(Stack, {
1076
+ gap: "sm",
1077
+ children: [
1078
+ /*#__PURE__*/ _jsx(Button, {
1079
+ size: "slim",
1080
+ children: "Export PDF"
1081
+ }),
1082
+ /*#__PURE__*/ _jsx(Button, {
1083
+ size: "slim",
1084
+ children: "Export CSV"
1085
+ }),
1086
+ /*#__PURE__*/ _jsx(Button, {
1087
+ size: "slim",
1088
+ children: "Share Report"
1089
+ })
1090
+ ]
1091
+ })
1092
+ })
1093
+ ]
1094
+ })
1095
+ })
1096
+ ]
1097
+ })
1098
+ });
1099
+ },
1100
+ parameters: {
1101
+ docs: {
1102
+ description: {
1103
+ story: 'Dashboard layout with main analytics content and sticky filter sidebar.'
1104
+ }
1105
+ }
1106
+ }
1107
+ };
1108
+ export var ResponsiveBehavior = {
1109
+ render: function() {
1110
+ return /*#__PURE__*/ _jsx(Page, {
1111
+ title: "Responsive Layout Demo",
1112
+ children: /*#__PURE__*/ _jsxs(Layout, {
1113
+ children: [
1114
+ /*#__PURE__*/ _jsx(LayoutSection, {
1115
+ children: /*#__PURE__*/ _jsx(Card, {
1116
+ title: "Main Content Area",
1117
+ padded: true,
1118
+ children: /*#__PURE__*/ _jsxs(Stack, {
1119
+ gap: "md",
1120
+ children: [
1121
+ /*#__PURE__*/ _jsx(Text, {
1122
+ 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."
1123
+ }),
1124
+ /*#__PURE__*/ _jsx(Text, {
1125
+ children: "Resize your browser window to see how the layout adapts to different screen sizes. The sidebar will reposition and resize appropriately."
1126
+ }),
1127
+ /*#__PURE__*/ _jsx(Box, {
1128
+ paddingBlockStart: "4",
1129
+ children: /*#__PURE__*/ _jsx(Grid, {
1130
+ columns: {
1131
+ xs: 1,
1132
+ sm: 2,
1133
+ md: 3,
1134
+ lg: 6
1135
+ },
1136
+ gap: "4",
1137
+ children: Array.from({
1138
+ length: 6
1139
+ }, function(_, i) {
1140
+ return /*#__PURE__*/ _jsx(Box, {
1141
+ padding: "4",
1142
+ background: "bg-surface-info-subdued",
1143
+ borderRadius: "1",
1144
+ children: /*#__PURE__*/ _jsx(Stack, {
1145
+ inlineAlign: "center",
1146
+ children: /*#__PURE__*/ _jsxs(Text, {
1147
+ children: [
1148
+ "Item ",
1149
+ i + 1
1150
+ ]
1151
+ })
1152
+ })
1153
+ }, i);
1154
+ })
1155
+ })
1156
+ })
1157
+ ]
1158
+ })
1159
+ })
1160
+ }),
1161
+ /*#__PURE__*/ _jsx(LayoutSection, {
1162
+ sidebar: true,
1163
+ children: /*#__PURE__*/ _jsx(Card, {
1164
+ title: "Responsive Sidebar",
1165
+ padded: true,
1166
+ children: /*#__PURE__*/ _jsxs(Stack, {
1167
+ gap: "md",
1168
+ children: [
1169
+ /*#__PURE__*/ _jsx(Text, {
1170
+ variant: "headingSm",
1171
+ children: "Breakpoint Info"
1172
+ }),
1173
+ /*#__PURE__*/ _jsxs(Stack, {
1174
+ gap: "xs",
1175
+ children: [
1176
+ /*#__PURE__*/ _jsx(Text, {
1177
+ variant: "bodySm",
1178
+ children: "• Large screens: Sidebar at 1/3 width"
1179
+ }),
1180
+ /*#__PURE__*/ _jsx(Text, {
1181
+ variant: "bodySm",
1182
+ children: "• Medium screens: Stacked layout"
1183
+ }),
1184
+ /*#__PURE__*/ _jsx(Text, {
1185
+ variant: "bodySm",
1186
+ children: "• Small screens: Full width sections"
1187
+ })
1188
+ ]
1189
+ }),
1190
+ /*#__PURE__*/ _jsx(Box, {
1191
+ paddingBlockStart: "4",
1192
+ children: /*#__PURE__*/ _jsxs(Stack, {
1193
+ gap: "sm",
1194
+ children: [
1195
+ /*#__PURE__*/ _jsx(Text, {
1196
+ variant: "headingSm",
1197
+ children: "Test Actions"
1198
+ }),
1199
+ /*#__PURE__*/ _jsxs(Stack, {
1200
+ gap: "sm",
1201
+ children: [
1202
+ /*#__PURE__*/ _jsx(Button, {
1203
+ size: "slim",
1204
+ children: "Resize Window"
1205
+ }),
1206
+ /*#__PURE__*/ _jsx(Button, {
1207
+ size: "slim",
1208
+ children: "View on Mobile"
1209
+ }),
1210
+ /*#__PURE__*/ _jsx(Button, {
1211
+ size: "slim",
1212
+ children: "Test Tablet View"
1213
+ })
1214
+ ]
1215
+ })
1216
+ ]
1217
+ })
1218
+ })
1219
+ ]
1220
+ })
1221
+ })
1222
+ })
1223
+ ]
1224
+ })
1225
+ });
1226
+ },
1227
+ parameters: {
1228
+ docs: {
1229
+ description: {
1230
+ story: 'Demonstrates responsive behavior of layout sections across different screen sizes.'
1231
+ }
1232
+ }
1233
+ }
1234
+ };