@heymantle/litho 0.0.2 → 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 (354) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/ActionList.js +50 -16
  3. package/dist/cjs/components/AnnouncementBar.js +10 -3
  4. package/dist/cjs/components/AppProvider.js +10 -1
  5. package/dist/cjs/components/Autocomplete.js +33 -11
  6. package/dist/cjs/components/Badge.js +2 -1
  7. package/dist/cjs/components/Banner.js +35 -31
  8. package/dist/cjs/components/Box.js +5 -3
  9. package/dist/cjs/components/Button.js +34 -12
  10. package/dist/cjs/components/Card.js +5 -45
  11. package/dist/cjs/components/Checkbox.js +16 -6
  12. package/dist/cjs/components/ChoiceList.js +7 -4
  13. package/dist/cjs/components/ColorField.js +8 -3
  14. package/dist/cjs/components/DatePicker.js +13 -8
  15. package/dist/cjs/components/DropZone.js +33 -18
  16. package/dist/cjs/components/EmptyState.js +15 -7
  17. package/dist/cjs/components/Filters.js +32 -20
  18. package/dist/cjs/components/FooterHelp.js +7 -2
  19. package/dist/cjs/components/Form.js +18 -3
  20. package/dist/cjs/components/Frame.js +40 -15
  21. package/dist/cjs/components/FrameSaveBar.js +21 -12
  22. package/dist/cjs/components/Layout.js +3 -3
  23. package/dist/cjs/components/LayoutSection.js +2 -2
  24. package/dist/cjs/components/Link.js +6 -2
  25. package/dist/cjs/components/List.js +1 -0
  26. package/dist/cjs/components/Listbox.js +9 -4
  27. package/dist/cjs/components/Modal.js +26 -17
  28. package/dist/cjs/components/Navigation.js +30 -20
  29. package/dist/cjs/components/Page.js +8 -3
  30. package/dist/cjs/components/Pagination.js +11 -4
  31. package/dist/cjs/components/Pane.js +118 -35
  32. package/dist/cjs/components/Popover.js +59 -6
  33. package/dist/cjs/components/RangeSlider.js +11 -4
  34. package/dist/cjs/components/ResourceList.js +9 -3
  35. package/dist/cjs/components/Select.js +2 -0
  36. package/dist/cjs/components/Table.js +32 -19
  37. package/dist/cjs/components/Text.js +8 -5
  38. package/dist/cjs/components/TextField.js +23 -13
  39. package/dist/cjs/components/Thumbnail.js +7 -2
  40. package/dist/cjs/components/TimePicker.js +7 -2
  41. package/dist/cjs/components/Tip.js +10 -4
  42. package/dist/cjs/components/Tooltip.js +16 -8
  43. package/dist/cjs/components/TopBar.js +17 -9
  44. package/dist/cjs/dev/verify-publish.js +102 -0
  45. package/dist/cjs/postcss.config.js +21 -0
  46. package/dist/cjs/stories/ActionList.stories.js +365 -0
  47. package/dist/cjs/stories/AnnouncementBar.stories.js +244 -0
  48. package/dist/cjs/stories/Autocomplete.stories.js +871 -0
  49. package/dist/cjs/stories/Badge.stories.js +183 -0
  50. package/dist/cjs/stories/Banner.stories.js +201 -0
  51. package/dist/cjs/stories/Box.stories.js +599 -0
  52. package/dist/cjs/stories/Button.stories.js +325 -0
  53. package/dist/cjs/stories/ButtonGroup.stories.js +404 -0
  54. package/dist/cjs/stories/Card.stories.js +278 -0
  55. package/dist/cjs/stories/Checkbox.stories.js +266 -0
  56. package/dist/cjs/stories/ChoiceList.stories.js +884 -0
  57. package/dist/cjs/stories/Collapsible.stories.js +905 -0
  58. package/dist/cjs/stories/ColorField.stories.js +883 -0
  59. package/dist/cjs/stories/ContextualSaveBar.stories.js +970 -0
  60. package/dist/cjs/stories/DatePicker.stories.js +584 -0
  61. package/dist/cjs/stories/Divider.stories.js +759 -0
  62. package/dist/cjs/stories/DropZone.stories.js +1205 -0
  63. package/dist/cjs/stories/EmptyState.stories.js +296 -0
  64. package/dist/cjs/stories/Filters.stories.js +1353 -0
  65. package/dist/cjs/stories/FooterHelp.stories.js +869 -0
  66. package/dist/cjs/stories/Form.stories.js +940 -0
  67. package/dist/cjs/stories/Grid.stories.js +1199 -0
  68. package/dist/cjs/stories/HorizontalStack.stories.js +1064 -0
  69. package/dist/cjs/stories/Icon.stories.js +596 -0
  70. package/dist/cjs/stories/Image.stories.js +883 -0
  71. package/dist/cjs/stories/InlineError.stories.js +710 -0
  72. package/dist/cjs/stories/Label.stories.js +665 -0
  73. package/dist/cjs/stories/Layout.stories.js +685 -0
  74. package/dist/cjs/stories/LayoutSection.stories.js +1267 -0
  75. package/dist/cjs/stories/Link.stories.js +423 -0
  76. package/dist/cjs/stories/List.stories.js +1031 -0
  77. package/dist/cjs/stories/Listbox.stories.js +820 -0
  78. package/dist/cjs/stories/Loading.stories.js +900 -0
  79. package/dist/cjs/stories/Modal.stories.js +363 -0
  80. package/dist/cjs/stories/Navigation.stories.js +605 -0
  81. package/dist/cjs/stories/Page.stories.js +318 -0
  82. package/dist/cjs/stories/Pagination.stories.js +438 -0
  83. package/dist/cjs/stories/Pane.stories.js +1535 -0
  84. package/dist/cjs/stories/Popover.stories.js +637 -0
  85. package/dist/cjs/stories/PopoverManager.stories.js +1225 -0
  86. package/dist/cjs/stories/ProgressBar.stories.js +506 -0
  87. package/dist/cjs/stories/RadioButton.stories.js +642 -0
  88. package/dist/cjs/stories/RadioButtonCard.stories.js +816 -0
  89. package/dist/cjs/stories/RangeSlider.stories.js +892 -0
  90. package/dist/cjs/stories/ResourceList.stories.js +1067 -0
  91. package/dist/cjs/stories/Select.stories.js +413 -0
  92. package/dist/cjs/stories/SkeletonText.stories.js +776 -0
  93. package/dist/cjs/stories/Spinner.stories.js +396 -0
  94. package/dist/cjs/stories/Table.stories.js +628 -0
  95. package/dist/cjs/stories/Tabs.stories.js +723 -0
  96. package/dist/cjs/stories/Tag.stories.js +620 -0
  97. package/dist/cjs/stories/Text.stories.js +262 -0
  98. package/dist/cjs/stories/TextField.stories.js +377 -0
  99. package/dist/cjs/stories/Thumbnail.stories.js +859 -0
  100. package/dist/cjs/stories/TimePicker.stories.js +966 -0
  101. package/dist/cjs/stories/Tip.stories.js +753 -0
  102. package/dist/cjs/stories/Tooltip.stories.js +357 -0
  103. package/dist/cjs/stories/TopBar.stories.js +155 -0
  104. package/dist/cjs/stories/VerticalStack.stories.js +1287 -0
  105. package/dist/cjs/tailwind.config.js +17 -0
  106. package/dist/cjs/utilities/transformers.js +66 -0
  107. package/dist/cjs/vite.config.js +35 -0
  108. package/dist/esm/components/ActionList.js +41 -12
  109. package/dist/esm/components/AnnouncementBar.js +3 -1
  110. package/dist/esm/components/AppProvider.js +10 -1
  111. package/dist/esm/components/Autocomplete.js +21 -4
  112. package/dist/esm/components/Badge.js +2 -2
  113. package/dist/esm/components/Banner.js +20 -21
  114. package/dist/esm/components/Box.js +5 -4
  115. package/dist/esm/components/Button.js +24 -7
  116. package/dist/esm/components/Card.js +5 -4
  117. package/dist/esm/components/Checkbox.js +6 -1
  118. package/dist/esm/components/ChoiceList.js +7 -4
  119. package/dist/esm/components/ColorField.js +1 -1
  120. package/dist/esm/components/DatePicker.js +6 -1
  121. package/dist/esm/components/DropZone.js +14 -4
  122. package/dist/esm/components/EmptyState.js +4 -1
  123. package/dist/esm/components/Filters.js +10 -3
  124. package/dist/esm/components/FooterHelp.js +1 -1
  125. package/dist/esm/components/Form.js +18 -3
  126. package/dist/esm/components/Frame.js +18 -6
  127. package/dist/esm/components/FrameSaveBar.js +10 -6
  128. package/dist/esm/components/InlineError.js +1 -1
  129. package/dist/esm/components/Layout.js +4 -4
  130. package/dist/esm/components/LayoutSection.js +2 -2
  131. package/dist/esm/components/Link.js +6 -2
  132. package/dist/esm/components/List.js +1 -0
  133. package/dist/esm/components/Listbox.js +4 -4
  134. package/dist/esm/components/Modal.js +8 -4
  135. package/dist/esm/components/Navigation.js +16 -11
  136. package/dist/esm/components/Page.js +9 -4
  137. package/dist/esm/components/Pagination.js +3 -1
  138. package/dist/esm/components/Pane.js +114 -36
  139. package/dist/esm/components/Popover.js +18 -6
  140. package/dist/esm/components/RangeSlider.js +3 -1
  141. package/dist/esm/components/ResourceList.js +2 -1
  142. package/dist/esm/components/Select.js +2 -0
  143. package/dist/esm/components/Table.js +16 -3
  144. package/dist/esm/components/Text.js +8 -6
  145. package/dist/esm/components/TextField.js +6 -1
  146. package/dist/esm/components/Thumbnail.js +1 -1
  147. package/dist/esm/components/TimePicker.js +1 -1
  148. package/dist/esm/components/Tip.js +3 -2
  149. package/dist/esm/components/Tooltip.js +4 -1
  150. package/dist/esm/components/TopBar.js +7 -4
  151. package/dist/esm/dev/verify-publish.js +93 -0
  152. package/dist/esm/postcss.config.js +6 -0
  153. package/dist/esm/stories/ActionList.stories.js +327 -0
  154. package/dist/esm/stories/AnnouncementBar.stories.js +212 -0
  155. package/dist/esm/stories/Autocomplete.stories.js +833 -0
  156. package/dist/esm/stories/Badge.stories.js +138 -0
  157. package/dist/esm/stories/Banner.stories.js +159 -0
  158. package/dist/esm/stories/Box.stories.js +558 -0
  159. package/dist/esm/stories/Button.stories.js +277 -0
  160. package/dist/esm/stories/ButtonGroup.stories.js +357 -0
  161. package/dist/esm/stories/Card.stories.js +240 -0
  162. package/dist/esm/stories/Checkbox.stories.js +219 -0
  163. package/dist/esm/stories/ChoiceList.stories.js +834 -0
  164. package/dist/esm/stories/Collapsible.stories.js +867 -0
  165. package/dist/esm/stories/ColorField.stories.js +842 -0
  166. package/dist/esm/stories/ContextualSaveBar.stories.js +938 -0
  167. package/dist/esm/stories/DatePicker.stories.js +537 -0
  168. package/dist/esm/stories/Divider.stories.js +715 -0
  169. package/dist/esm/stories/DropZone.stories.js +1161 -0
  170. package/dist/esm/stories/EmptyState.stories.js +246 -0
  171. package/dist/esm/stories/Filters.stories.js +1315 -0
  172. package/dist/esm/stories/FooterHelp.stories.js +813 -0
  173. package/dist/esm/stories/Form.stories.js +905 -0
  174. package/dist/esm/stories/Grid.stories.js +1152 -0
  175. package/dist/esm/stories/HorizontalStack.stories.js +1011 -0
  176. package/dist/esm/stories/Icon.stories.js +555 -0
  177. package/dist/esm/stories/Image.stories.js +836 -0
  178. package/dist/esm/stories/InlineError.stories.js +666 -0
  179. package/dist/esm/stories/Label.stories.js +612 -0
  180. package/dist/esm/stories/Layout.stories.js +647 -0
  181. package/dist/esm/stories/LayoutSection.stories.js +1226 -0
  182. package/dist/esm/stories/Link.stories.js +379 -0
  183. package/dist/esm/stories/List.stories.js +975 -0
  184. package/dist/esm/stories/Listbox.stories.js +776 -0
  185. package/dist/esm/stories/Loading.stories.js +850 -0
  186. package/dist/esm/stories/Modal.stories.js +322 -0
  187. package/dist/esm/stories/Navigation.stories.js +567 -0
  188. package/dist/esm/stories/Page.stories.js +276 -0
  189. package/dist/esm/stories/Pagination.stories.js +394 -0
  190. package/dist/esm/stories/Pane.stories.js +1497 -0
  191. package/dist/esm/stories/Popover.stories.js +605 -0
  192. package/dist/esm/stories/PopoverManager.stories.js +1193 -0
  193. package/dist/esm/stories/ProgressBar.stories.js +465 -0
  194. package/dist/esm/stories/RadioButton.stories.js +598 -0
  195. package/dist/esm/stories/RadioButtonCard.stories.js +772 -0
  196. package/dist/esm/stories/RangeSlider.stories.js +845 -0
  197. package/dist/esm/stories/ResourceList.stories.js +1029 -0
  198. package/dist/esm/stories/Select.stories.js +363 -0
  199. package/dist/esm/stories/SkeletonText.stories.js +717 -0
  200. package/dist/esm/stories/Spinner.stories.js +355 -0
  201. package/dist/esm/stories/Table.stories.js +584 -0
  202. package/dist/esm/stories/Tabs.stories.js +685 -0
  203. package/dist/esm/stories/Tag.stories.js +573 -0
  204. package/dist/esm/stories/Text.stories.js +217 -0
  205. package/dist/esm/stories/TextField.stories.js +332 -0
  206. package/dist/esm/stories/Thumbnail.stories.js +806 -0
  207. package/dist/esm/stories/TimePicker.stories.js +910 -0
  208. package/dist/esm/stories/Tip.stories.js +706 -0
  209. package/dist/esm/stories/Tooltip.stories.js +313 -0
  210. package/dist/esm/stories/TopBar.stories.js +114 -0
  211. package/dist/esm/stories/VerticalStack.stories.js +1240 -0
  212. package/dist/esm/tailwind.config.js +7 -0
  213. package/dist/esm/utilities/transformers.js +47 -0
  214. package/dist/esm/vite.config.js +20 -0
  215. package/dist/types/components/ActionList.d.ts +122 -0
  216. package/dist/types/components/ActionList.d.ts.map +1 -0
  217. package/dist/types/components/AnnouncementBar.d.ts +21 -0
  218. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  219. package/dist/types/components/AppProvider.d.ts +61 -0
  220. package/dist/types/components/AppProvider.d.ts.map +1 -0
  221. package/dist/types/components/Autocomplete.d.ts +130 -0
  222. package/dist/types/components/Autocomplete.d.ts.map +1 -0
  223. package/dist/types/components/Badge.d.ts +21 -0
  224. package/dist/types/components/Badge.d.ts.map +1 -0
  225. package/dist/types/components/Banner.d.ts +78 -0
  226. package/dist/types/components/Banner.d.ts.map +1 -0
  227. package/dist/types/components/Box.d.ts +70 -0
  228. package/dist/types/components/Box.d.ts.map +1 -0
  229. package/dist/types/components/Button.d.ts +123 -0
  230. package/dist/types/components/Button.d.ts.map +1 -0
  231. package/dist/types/components/ButtonGroup.d.ts +26 -0
  232. package/dist/types/components/ButtonGroup.d.ts.map +1 -0
  233. package/dist/types/components/Card.d.ts +139 -0
  234. package/dist/types/components/Card.d.ts.map +1 -0
  235. package/dist/types/components/Checkbox.d.ts +56 -0
  236. package/dist/types/components/Checkbox.d.ts.map +1 -0
  237. package/dist/types/components/ChoiceList.d.ts +69 -0
  238. package/dist/types/components/ChoiceList.d.ts.map +1 -0
  239. package/dist/types/components/Collapsible.d.ts +17 -0
  240. package/dist/types/components/Collapsible.d.ts.map +1 -0
  241. package/dist/types/components/ColorField.d.ts +36 -0
  242. package/dist/types/components/ColorField.d.ts.map +1 -0
  243. package/dist/types/components/ContextualSaveBar.d.ts +22 -0
  244. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -0
  245. package/dist/types/components/DatePicker.d.ts +66 -0
  246. package/dist/types/components/DatePicker.d.ts.map +1 -0
  247. package/dist/types/components/Divider.d.ts +21 -0
  248. package/dist/types/components/Divider.d.ts.map +1 -0
  249. package/dist/types/components/DropZone.d.ts +108 -0
  250. package/dist/types/components/DropZone.d.ts.map +1 -0
  251. package/dist/types/components/EmptyState.d.ts +52 -0
  252. package/dist/types/components/EmptyState.d.ts.map +1 -0
  253. package/dist/types/components/Filters.d.ts +166 -0
  254. package/dist/types/components/Filters.d.ts.map +1 -0
  255. package/dist/types/components/FooterHelp.d.ts +21 -0
  256. package/dist/types/components/FooterHelp.d.ts.map +1 -0
  257. package/dist/types/components/Form.d.ts +39 -0
  258. package/dist/types/components/Form.d.ts.map +1 -0
  259. package/dist/types/components/Frame.d.ts +51 -0
  260. package/dist/types/components/Frame.d.ts.map +1 -0
  261. package/dist/types/components/FrameSaveBar.d.ts +8 -0
  262. package/dist/types/components/FrameSaveBar.d.ts.map +1 -0
  263. package/dist/types/components/Grid.d.ts +39 -0
  264. package/dist/types/components/Grid.d.ts.map +1 -0
  265. package/dist/types/components/HorizontalStack.d.ts +36 -0
  266. package/dist/types/components/HorizontalStack.d.ts.map +1 -0
  267. package/dist/types/components/Icon.d.ts +43 -0
  268. package/dist/types/components/Icon.d.ts.map +1 -0
  269. package/dist/types/components/Image.d.ts +45 -0
  270. package/dist/types/components/Image.d.ts.map +1 -0
  271. package/dist/types/components/InlineError.d.ts +22 -0
  272. package/dist/types/components/InlineError.d.ts.map +1 -0
  273. package/dist/types/components/Label.d.ts +28 -0
  274. package/dist/types/components/Label.d.ts.map +1 -0
  275. package/dist/types/components/Layout.d.ts +44 -0
  276. package/dist/types/components/Layout.d.ts.map +1 -0
  277. package/dist/types/components/LayoutSection.d.ts +24 -0
  278. package/dist/types/components/LayoutSection.d.ts.map +1 -0
  279. package/dist/types/components/Link.d.ts +38 -0
  280. package/dist/types/components/Link.d.ts.map +1 -0
  281. package/dist/types/components/List.d.ts +33 -0
  282. package/dist/types/components/List.d.ts.map +1 -0
  283. package/dist/types/components/Listbox.d.ts +34 -0
  284. package/dist/types/components/Listbox.d.ts.map +1 -0
  285. package/dist/types/components/Loading.d.ts +13 -0
  286. package/dist/types/components/Loading.d.ts.map +1 -0
  287. package/dist/types/components/Modal.d.ts +75 -0
  288. package/dist/types/components/Modal.d.ts.map +1 -0
  289. package/dist/types/components/Navigation.d.ts +105 -0
  290. package/dist/types/components/Navigation.d.ts.map +1 -0
  291. package/dist/types/components/Page.d.ts +59 -0
  292. package/dist/types/components/Page.d.ts.map +1 -0
  293. package/dist/types/components/Pagination.d.ts +39 -0
  294. package/dist/types/components/Pagination.d.ts.map +1 -0
  295. package/dist/types/components/Pane.d.ts +11 -0
  296. package/dist/types/components/Pane.d.ts.map +1 -0
  297. package/dist/types/components/Popover.d.ts +56 -0
  298. package/dist/types/components/Popover.d.ts.map +1 -0
  299. package/dist/types/components/PopoverManager.d.ts +3 -0
  300. package/dist/types/components/PopoverManager.d.ts.map +1 -0
  301. package/dist/types/components/ProgressBar.d.ts +24 -0
  302. package/dist/types/components/ProgressBar.d.ts.map +1 -0
  303. package/dist/types/components/RadioButton.d.ts +39 -0
  304. package/dist/types/components/RadioButton.d.ts.map +1 -0
  305. package/dist/types/components/RadioButtonCard.d.ts +41 -0
  306. package/dist/types/components/RadioButtonCard.d.ts.map +1 -0
  307. package/dist/types/components/RangeSlider.d.ts +44 -0
  308. package/dist/types/components/RangeSlider.d.ts.map +1 -0
  309. package/dist/types/components/ResourceList.d.ts +54 -0
  310. package/dist/types/components/ResourceList.d.ts.map +1 -0
  311. package/dist/types/components/Select.d.ts +48 -0
  312. package/dist/types/components/Select.d.ts.map +1 -0
  313. package/dist/types/components/SkeletonText.d.ts +28 -0
  314. package/dist/types/components/SkeletonText.d.ts.map +1 -0
  315. package/dist/types/components/Spinner.d.ts +18 -0
  316. package/dist/types/components/Spinner.d.ts.map +1 -0
  317. package/dist/types/components/Table.d.ts +197 -0
  318. package/dist/types/components/Table.d.ts.map +1 -0
  319. package/dist/types/components/Tabs.d.ts +41 -0
  320. package/dist/types/components/Tabs.d.ts.map +1 -0
  321. package/dist/types/components/Tag.d.ts +26 -0
  322. package/dist/types/components/Tag.d.ts.map +1 -0
  323. package/dist/types/components/Text.d.ts +32 -0
  324. package/dist/types/components/Text.d.ts.map +1 -0
  325. package/dist/types/components/TextField.d.ts +109 -0
  326. package/dist/types/components/TextField.d.ts.map +1 -0
  327. package/dist/types/components/Thumbnail.d.ts +18 -0
  328. package/dist/types/components/Thumbnail.d.ts.map +1 -0
  329. package/dist/types/components/TimePicker.d.ts +3 -0
  330. package/dist/types/components/TimePicker.d.ts.map +1 -0
  331. package/dist/types/components/Tip.d.ts +23 -0
  332. package/dist/types/components/Tip.d.ts.map +1 -0
  333. package/dist/types/components/Tooltip.d.ts +84 -0
  334. package/dist/types/components/Tooltip.d.ts.map +1 -0
  335. package/dist/types/components/TopBar.d.ts +43 -0
  336. package/dist/types/components/TopBar.d.ts.map +1 -0
  337. package/dist/types/components/VerticalStack.d.ts +27 -0
  338. package/dist/types/components/VerticalStack.d.ts.map +1 -0
  339. package/dist/types/index.d.ts +62 -0
  340. package/dist/types/index.d.ts.map +1 -0
  341. package/dist/types/styles/Table.d.ts +1570 -0
  342. package/dist/types/styles/Table.d.ts.map +1 -0
  343. package/dist/types/utilities/dates.d.ts +46 -0
  344. package/dist/types/utilities/dates.d.ts.map +1 -0
  345. package/dist/types/utilities/transformers.d.ts +4 -0
  346. package/dist/types/utilities/transformers.d.ts.map +1 -0
  347. package/dist/types/utilities/useIndexResourceState.d.ts +21 -0
  348. package/dist/types/utilities/useIndexResourceState.d.ts.map +1 -0
  349. package/dist/types/utilities/useMounted.d.ts +2 -0
  350. package/dist/types/utilities/useMounted.d.ts.map +1 -0
  351. package/dist/types/utilities/useTableScrollState.d.ts +29 -0
  352. package/dist/types/utilities/useTableScrollState.d.ts.map +1 -0
  353. package/index.css +6 -0
  354. package/package.json +45 -11
@@ -0,0 +1,806 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
9
+ function _define_property(obj, key, value) {
10
+ if (key in obj) {
11
+ Object.defineProperty(obj, key, {
12
+ value: value,
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true
16
+ });
17
+ } else {
18
+ obj[key] = value;
19
+ }
20
+ return obj;
21
+ }
22
+ function _iterable_to_array_limit(arr, i) {
23
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
24
+ if (_i == null) return;
25
+ var _arr = [];
26
+ var _n = true;
27
+ var _d = false;
28
+ var _s, _e;
29
+ try {
30
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
31
+ _arr.push(_s.value);
32
+ if (i && _arr.length === i) break;
33
+ }
34
+ } catch (err) {
35
+ _d = true;
36
+ _e = err;
37
+ } finally{
38
+ try {
39
+ if (!_n && _i["return"] != null) _i["return"]();
40
+ } finally{
41
+ if (_d) throw _e;
42
+ }
43
+ }
44
+ return _arr;
45
+ }
46
+ function _non_iterable_rest() {
47
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48
+ }
49
+ function _object_spread(target) {
50
+ for(var i = 1; i < arguments.length; i++){
51
+ var source = arguments[i] != null ? arguments[i] : {};
52
+ var ownKeys = Object.keys(source);
53
+ if (typeof Object.getOwnPropertySymbols === "function") {
54
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
55
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
56
+ }));
57
+ }
58
+ ownKeys.forEach(function(key) {
59
+ _define_property(target, key, source[key]);
60
+ });
61
+ }
62
+ return target;
63
+ }
64
+ function ownKeys(object, enumerableOnly) {
65
+ var keys = Object.keys(object);
66
+ if (Object.getOwnPropertySymbols) {
67
+ var symbols = Object.getOwnPropertySymbols(object);
68
+ if (enumerableOnly) {
69
+ symbols = symbols.filter(function(sym) {
70
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
71
+ });
72
+ }
73
+ keys.push.apply(keys, symbols);
74
+ }
75
+ return keys;
76
+ }
77
+ function _object_spread_props(target, source) {
78
+ source = source != null ? source : {};
79
+ if (Object.getOwnPropertyDescriptors) {
80
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
81
+ } else {
82
+ ownKeys(Object(source)).forEach(function(key) {
83
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
84
+ });
85
+ }
86
+ return target;
87
+ }
88
+ function _sliced_to_array(arr, i) {
89
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
90
+ }
91
+ function _unsupported_iterable_to_array(o, minLen) {
92
+ if (!o) return;
93
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
94
+ var n = Object.prototype.toString.call(o).slice(8, -1);
95
+ if (n === "Object" && o.constructor) n = o.constructor.name;
96
+ if (n === "Map" || n === "Set") return Array.from(n);
97
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
98
+ }
99
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
100
+ import { transformStorySource } from "../utilities/transformers.js";
101
+ import Thumbnail from "../components/Thumbnail.js";
102
+ import Text from "../components/Text.js";
103
+ import Card from "../components/Card.js";
104
+ import Button from "../components/Button.js";
105
+ import HorizontalStack from "../components/HorizontalStack.js";
106
+ import VerticalStack from "../components/VerticalStack.js";
107
+ import Grid from "../components/Grid.js";
108
+ import Box from "../components/Box.js";
109
+ import { useState } from "react";
110
+ export default {
111
+ title: 'Litho/Thumbnail',
112
+ component: Thumbnail,
113
+ parameters: {
114
+ layout: 'padded',
115
+ docs: {
116
+ description: {
117
+ component: "A Thumbnail component that displays an image or a placeholder icon. Thumbnails are used to show preview images in a consistent format with various sizing options."
118
+ },
119
+ source: {
120
+ transform: transformStorySource
121
+ }
122
+ }
123
+ },
124
+ args: {
125
+ size: 'medium',
126
+ alt: 'Thumbnail image'
127
+ },
128
+ tags: [
129
+ 'autodocs'
130
+ ],
131
+ argTypes: {
132
+ src: {
133
+ control: 'text',
134
+ description: 'Image source URL'
135
+ },
136
+ alt: {
137
+ control: 'text',
138
+ description: 'Alternative text for the image'
139
+ },
140
+ size: {
141
+ control: 'select',
142
+ options: [
143
+ 'small',
144
+ 'medium',
145
+ 'large'
146
+ ],
147
+ description: 'Size of the thumbnail'
148
+ },
149
+ skeleton: {
150
+ control: 'boolean',
151
+ description: 'Whether to show skeleton loader'
152
+ }
153
+ }
154
+ };
155
+ export var Default = {
156
+ render: function(args) {
157
+ return /*#__PURE__*/ _jsx(Thumbnail, _object_spread({}, args));
158
+ }
159
+ };
160
+ export var WithImage = {
161
+ args: {
162
+ src: 'https://picsum.photos/200/200?random=1',
163
+ alt: 'Sample image'
164
+ },
165
+ parameters: {
166
+ docs: {
167
+ description: {
168
+ story: 'Thumbnail displaying an actual image.'
169
+ }
170
+ }
171
+ }
172
+ };
173
+ export var Placeholder = {
174
+ args: {
175
+ alt: 'No image available'
176
+ },
177
+ parameters: {
178
+ docs: {
179
+ description: {
180
+ story: 'Thumbnail showing placeholder icon when no image is provided.'
181
+ }
182
+ }
183
+ }
184
+ };
185
+ export var Sizes = {
186
+ render: function() {
187
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
188
+ gap: "4",
189
+ blockAlign: "center",
190
+ children: [
191
+ /*#__PURE__*/ _jsxs(VerticalStack, {
192
+ gap: "2",
193
+ inlineAlign: "center",
194
+ children: [
195
+ /*#__PURE__*/ _jsx(Thumbnail, {
196
+ size: "small",
197
+ src: "https://picsum.photos/200/200?random=2",
198
+ alt: "Small thumbnail"
199
+ }),
200
+ /*#__PURE__*/ _jsx(Text, {
201
+ variant: "caption",
202
+ children: "Small"
203
+ })
204
+ ]
205
+ }),
206
+ /*#__PURE__*/ _jsxs(VerticalStack, {
207
+ gap: "2",
208
+ inlineAlign: "center",
209
+ children: [
210
+ /*#__PURE__*/ _jsx(Thumbnail, {
211
+ size: "medium",
212
+ src: "https://picsum.photos/200/200?random=3",
213
+ alt: "Medium thumbnail"
214
+ }),
215
+ /*#__PURE__*/ _jsx(Text, {
216
+ variant: "caption",
217
+ children: "Medium"
218
+ })
219
+ ]
220
+ }),
221
+ /*#__PURE__*/ _jsxs(VerticalStack, {
222
+ gap: "2",
223
+ inlineAlign: "center",
224
+ children: [
225
+ /*#__PURE__*/ _jsx(Thumbnail, {
226
+ size: "large",
227
+ src: "https://picsum.photos/200/200?random=4",
228
+ alt: "Large thumbnail"
229
+ }),
230
+ /*#__PURE__*/ _jsx(Text, {
231
+ variant: "caption",
232
+ children: "Large"
233
+ })
234
+ ]
235
+ })
236
+ ]
237
+ });
238
+ },
239
+ parameters: {
240
+ docs: {
241
+ description: {
242
+ story: 'Different sizes of thumbnails.'
243
+ }
244
+ }
245
+ }
246
+ };
247
+ export var CustomSize = {
248
+ render: function() {
249
+ return /*#__PURE__*/ _jsxs(HorizontalStack, {
250
+ gap: "4",
251
+ blockAlign: "center",
252
+ children: [
253
+ /*#__PURE__*/ _jsxs(VerticalStack, {
254
+ gap: "2",
255
+ inlineAlign: "center",
256
+ children: [
257
+ /*#__PURE__*/ _jsx(Thumbnail, {
258
+ size: 32,
259
+ src: "https://picsum.photos/200/200?random=5",
260
+ alt: "32px thumbnail"
261
+ }),
262
+ /*#__PURE__*/ _jsx(Text, {
263
+ variant: "caption",
264
+ children: "32px"
265
+ })
266
+ ]
267
+ }),
268
+ /*#__PURE__*/ _jsxs(VerticalStack, {
269
+ gap: "2",
270
+ inlineAlign: "center",
271
+ children: [
272
+ /*#__PURE__*/ _jsx(Thumbnail, {
273
+ size: 64,
274
+ src: "https://picsum.photos/200/200?random=6",
275
+ alt: "64px thumbnail"
276
+ }),
277
+ /*#__PURE__*/ _jsx(Text, {
278
+ variant: "caption",
279
+ children: "64px"
280
+ })
281
+ ]
282
+ }),
283
+ /*#__PURE__*/ _jsxs(VerticalStack, {
284
+ gap: "2",
285
+ inlineAlign: "center",
286
+ children: [
287
+ /*#__PURE__*/ _jsx(Thumbnail, {
288
+ size: 80,
289
+ src: "https://picsum.photos/200/200?random=7",
290
+ alt: "80px thumbnail"
291
+ }),
292
+ /*#__PURE__*/ _jsx(Text, {
293
+ variant: "caption",
294
+ children: "80px"
295
+ })
296
+ ]
297
+ }),
298
+ /*#__PURE__*/ _jsxs(VerticalStack, {
299
+ gap: "2",
300
+ inlineAlign: "center",
301
+ children: [
302
+ /*#__PURE__*/ _jsx(Thumbnail, {
303
+ size: 120,
304
+ src: "https://picsum.photos/200/200?random=8",
305
+ alt: "120px thumbnail"
306
+ }),
307
+ /*#__PURE__*/ _jsx(Text, {
308
+ variant: "caption",
309
+ children: "120px"
310
+ })
311
+ ]
312
+ })
313
+ ]
314
+ });
315
+ },
316
+ parameters: {
317
+ docs: {
318
+ description: {
319
+ story: 'Thumbnails with custom pixel sizes.'
320
+ }
321
+ }
322
+ }
323
+ };
324
+ export var SkeletonState = {
325
+ args: {
326
+ skeleton: true,
327
+ size: 'medium'
328
+ },
329
+ parameters: {
330
+ docs: {
331
+ description: {
332
+ story: 'Thumbnail in skeleton loading state.'
333
+ }
334
+ }
335
+ }
336
+ };
337
+ export var ProductGallery = {
338
+ render: function() {
339
+ var products = [
340
+ {
341
+ id: 1,
342
+ name: 'Product A',
343
+ image: 'https://picsum.photos/200/200?random=10'
344
+ },
345
+ {
346
+ id: 2,
347
+ name: 'Product B',
348
+ image: 'https://picsum.photos/200/200?random=11'
349
+ },
350
+ {
351
+ id: 3,
352
+ name: 'Product C',
353
+ image: 'https://picsum.photos/200/200?random=12'
354
+ },
355
+ {
356
+ id: 4,
357
+ name: 'Product D',
358
+ image: 'https://picsum.photos/200/200?random=13'
359
+ },
360
+ {
361
+ id: 5,
362
+ name: 'Product E',
363
+ image: null
364
+ },
365
+ {
366
+ id: 6,
367
+ name: 'Product F',
368
+ image: 'https://picsum.photos/200/200?random=14'
369
+ }
370
+ ];
371
+ return /*#__PURE__*/ _jsx(Card, {
372
+ title: "Product Gallery",
373
+ padded: true,
374
+ children: /*#__PURE__*/ _jsx(Grid, {
375
+ columns: "auto-fill",
376
+ gap: "4",
377
+ minItemWidth: "120px",
378
+ children: products.map(function(product) {
379
+ return /*#__PURE__*/ _jsx(Box, {
380
+ padding: "4",
381
+ border: "default",
382
+ borderRadius: "lg",
383
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
384
+ gap: "2",
385
+ inlineAlign: "center",
386
+ children: [
387
+ /*#__PURE__*/ _jsx(Thumbnail, {
388
+ size: "large",
389
+ src: product.image,
390
+ alt: product.name
391
+ }),
392
+ /*#__PURE__*/ _jsx(Text, {
393
+ variant: "bodySm",
394
+ textAlign: "center",
395
+ children: product.name
396
+ })
397
+ ]
398
+ })
399
+ }, product.id);
400
+ })
401
+ })
402
+ });
403
+ },
404
+ parameters: {
405
+ docs: {
406
+ description: {
407
+ story: 'Product gallery showing thumbnails with and without images.'
408
+ }
409
+ }
410
+ }
411
+ };
412
+ export var UserAvatars = {
413
+ render: function() {
414
+ var users = [
415
+ {
416
+ id: 1,
417
+ name: 'Alice Johnson',
418
+ avatar: 'https://picsum.photos/200/200?random=15'
419
+ },
420
+ {
421
+ id: 2,
422
+ name: 'Bob Smith',
423
+ avatar: 'https://picsum.photos/200/200?random=16'
424
+ },
425
+ {
426
+ id: 3,
427
+ name: 'Carol Davis',
428
+ avatar: null
429
+ },
430
+ {
431
+ id: 4,
432
+ name: 'David Wilson',
433
+ avatar: 'https://picsum.photos/200/200?random=17'
434
+ },
435
+ {
436
+ id: 5,
437
+ name: 'Eve Brown',
438
+ avatar: 'https://picsum.photos/200/200?random=18'
439
+ }
440
+ ];
441
+ return /*#__PURE__*/ _jsx(Card, {
442
+ title: "Team Members",
443
+ padded: true,
444
+ children: /*#__PURE__*/ _jsx(VerticalStack, {
445
+ gap: "4",
446
+ children: users.map(function(user) {
447
+ return /*#__PURE__*/ _jsx(Box, {
448
+ padding: "3",
449
+ border: "default",
450
+ borderRadius: "lg",
451
+ children: /*#__PURE__*/ _jsxs(HorizontalStack, {
452
+ gap: "4",
453
+ blockAlign: "center",
454
+ children: [
455
+ /*#__PURE__*/ _jsx(Thumbnail, {
456
+ size: "medium",
457
+ src: user.avatar,
458
+ alt: "".concat(user.name, " avatar")
459
+ }),
460
+ /*#__PURE__*/ _jsx(Text, {
461
+ children: user.name
462
+ })
463
+ ]
464
+ })
465
+ }, user.id);
466
+ })
467
+ })
468
+ });
469
+ },
470
+ parameters: {
471
+ docs: {
472
+ description: {
473
+ story: 'User list with avatar thumbnails.'
474
+ }
475
+ }
476
+ }
477
+ };
478
+ export var FilePreview = {
479
+ render: function() {
480
+ var files = [
481
+ {
482
+ name: 'document.pdf',
483
+ type: 'pdf',
484
+ thumbnail: null
485
+ },
486
+ {
487
+ name: 'presentation.pptx',
488
+ type: 'presentation',
489
+ thumbnail: null
490
+ },
491
+ {
492
+ name: 'image1.jpg',
493
+ type: 'image',
494
+ thumbnail: 'https://picsum.photos/200/200?random=19'
495
+ },
496
+ {
497
+ name: 'image2.png',
498
+ type: 'image',
499
+ thumbnail: 'https://picsum.photos/200/200?random=20'
500
+ },
501
+ {
502
+ name: 'video.mp4',
503
+ type: 'video',
504
+ thumbnail: 'https://picsum.photos/200/200?random=21'
505
+ },
506
+ {
507
+ name: 'spreadsheet.xlsx',
508
+ type: 'excel',
509
+ thumbnail: null
510
+ }
511
+ ];
512
+ return /*#__PURE__*/ _jsx(Card, {
513
+ title: "File Browser",
514
+ padded: true,
515
+ children: /*#__PURE__*/ _jsx("div", {
516
+ style: {
517
+ display: 'grid',
518
+ gridTemplateColumns: 'repeat(auto-fill, minmax(150px, 1fr))',
519
+ gap: '1rem'
520
+ },
521
+ children: files.map(function(file, index) {
522
+ return /*#__PURE__*/ _jsxs("div", {
523
+ style: {
524
+ display: 'flex',
525
+ flexDirection: 'column',
526
+ alignItems: 'center',
527
+ gap: '0.5rem',
528
+ padding: '1rem',
529
+ border: '1px solid #e1e1e1',
530
+ borderRadius: '8px',
531
+ cursor: 'pointer'
532
+ },
533
+ children: [
534
+ /*#__PURE__*/ _jsx(Thumbnail, {
535
+ size: 60,
536
+ src: file.thumbnail,
537
+ alt: file.name
538
+ }),
539
+ /*#__PURE__*/ _jsx(Text, {
540
+ style: {
541
+ fontSize: '0.8rem',
542
+ textAlign: 'center',
543
+ wordBreak: 'break-word'
544
+ },
545
+ children: file.name
546
+ })
547
+ ]
548
+ }, index);
549
+ })
550
+ })
551
+ });
552
+ },
553
+ parameters: {
554
+ docs: {
555
+ description: {
556
+ story: 'File browser with thumbnails for different file types.'
557
+ }
558
+ }
559
+ }
560
+ };
561
+ export var LoadingStates = {
562
+ render: function() {
563
+ var _useState = _sliced_to_array(useState({
564
+ image1: false,
565
+ image2: false,
566
+ image3: false
567
+ }), 2), loadingStates = _useState[0], setLoadingStates = _useState[1];
568
+ var toggleLoading = function(imageKey) {
569
+ setLoadingStates(function(prev) {
570
+ return _object_spread_props(_object_spread({}, prev), _define_property({}, imageKey, !prev[imageKey]));
571
+ });
572
+ };
573
+ return /*#__PURE__*/ _jsx(Card, {
574
+ title: "Image Loading Demo",
575
+ padded: true,
576
+ children: /*#__PURE__*/ _jsxs(VerticalStack, {
577
+ gap: "8",
578
+ children: [
579
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
580
+ gap: "4",
581
+ children: [
582
+ /*#__PURE__*/ _jsx(Button, {
583
+ size: "small",
584
+ onClick: function() {
585
+ return toggleLoading('image1');
586
+ },
587
+ children: "Toggle Image 1"
588
+ }),
589
+ /*#__PURE__*/ _jsx(Button, {
590
+ size: "small",
591
+ onClick: function() {
592
+ return toggleLoading('image2');
593
+ },
594
+ children: "Toggle Image 2"
595
+ }),
596
+ /*#__PURE__*/ _jsx(Button, {
597
+ size: "small",
598
+ onClick: function() {
599
+ return toggleLoading('image3');
600
+ },
601
+ children: "Toggle Image 3"
602
+ })
603
+ ]
604
+ }),
605
+ /*#__PURE__*/ _jsxs(HorizontalStack, {
606
+ gap: "4",
607
+ blockAlign: "center",
608
+ children: [
609
+ /*#__PURE__*/ _jsxs(VerticalStack, {
610
+ gap: "2",
611
+ inlineAlign: "center",
612
+ children: [
613
+ /*#__PURE__*/ _jsx(Thumbnail, {
614
+ size: "large",
615
+ src: loadingStates.image1 ? null : 'https://picsum.photos/200/200?random=22',
616
+ alt: "Image 1",
617
+ skeleton: loadingStates.image1
618
+ }),
619
+ /*#__PURE__*/ _jsx(Text, {
620
+ variant: "caption",
621
+ children: loadingStates.image1 ? 'Loading...' : 'Loaded'
622
+ })
623
+ ]
624
+ }),
625
+ /*#__PURE__*/ _jsxs(VerticalStack, {
626
+ gap: "2",
627
+ inlineAlign: "center",
628
+ children: [
629
+ /*#__PURE__*/ _jsx(Thumbnail, {
630
+ size: "large",
631
+ src: loadingStates.image2 ? null : 'https://picsum.photos/200/200?random=23',
632
+ alt: "Image 2",
633
+ skeleton: loadingStates.image2
634
+ }),
635
+ /*#__PURE__*/ _jsx(Text, {
636
+ variant: "caption",
637
+ children: loadingStates.image2 ? 'Loading...' : 'Loaded'
638
+ })
639
+ ]
640
+ }),
641
+ /*#__PURE__*/ _jsxs(VerticalStack, {
642
+ gap: "2",
643
+ inlineAlign: "center",
644
+ children: [
645
+ /*#__PURE__*/ _jsx(Thumbnail, {
646
+ size: "large",
647
+ src: loadingStates.image3 ? null : 'https://picsum.photos/200/200?random=24',
648
+ alt: "Image 3",
649
+ skeleton: loadingStates.image3
650
+ }),
651
+ /*#__PURE__*/ _jsx(Text, {
652
+ variant: "caption",
653
+ children: loadingStates.image3 ? 'Loading...' : 'Loaded'
654
+ })
655
+ ]
656
+ })
657
+ ]
658
+ })
659
+ ]
660
+ })
661
+ });
662
+ },
663
+ parameters: {
664
+ docs: {
665
+ description: {
666
+ story: 'Interactive demo showing thumbnail loading states.'
667
+ }
668
+ }
669
+ }
670
+ };
671
+ export var MediaLibrary = {
672
+ render: function() {
673
+ var media = [
674
+ {
675
+ id: 1,
676
+ name: 'Sunset Beach',
677
+ src: 'https://picsum.photos/200/200?random=25',
678
+ type: 'image'
679
+ },
680
+ {
681
+ id: 2,
682
+ name: 'Mountain View',
683
+ src: 'https://picsum.photos/200/200?random=26',
684
+ type: 'image'
685
+ },
686
+ {
687
+ id: 3,
688
+ name: 'City Lights',
689
+ src: 'https://picsum.photos/200/200?random=27',
690
+ type: 'image'
691
+ },
692
+ {
693
+ id: 4,
694
+ name: 'Ocean Waves',
695
+ src: 'https://picsum.photos/200/200?random=28',
696
+ type: 'video'
697
+ },
698
+ {
699
+ id: 5,
700
+ name: 'Forest Path',
701
+ src: null,
702
+ type: 'image'
703
+ },
704
+ {
705
+ id: 6,
706
+ name: 'Desert Landscape',
707
+ src: 'https://picsum.photos/200/200?random=29',
708
+ type: 'image'
709
+ },
710
+ {
711
+ id: 7,
712
+ name: 'Urban Architecture',
713
+ src: 'https://picsum.photos/200/200?random=30',
714
+ type: 'image'
715
+ },
716
+ {
717
+ id: 8,
718
+ name: 'Wildlife Documentary',
719
+ src: null,
720
+ type: 'video'
721
+ }
722
+ ];
723
+ return /*#__PURE__*/ _jsx(Card, {
724
+ title: "Media Library",
725
+ padded: true,
726
+ children: /*#__PURE__*/ _jsx("div", {
727
+ style: {
728
+ display: 'grid',
729
+ gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))',
730
+ gap: '1rem'
731
+ },
732
+ children: media.map(function(item) {
733
+ return /*#__PURE__*/ _jsxs("div", {
734
+ style: {
735
+ position: 'relative',
736
+ border: '1px solid #e1e1e1',
737
+ borderRadius: '8px',
738
+ overflow: 'hidden',
739
+ cursor: 'pointer',
740
+ transition: 'transform 0.2s ease'
741
+ },
742
+ children: [
743
+ /*#__PURE__*/ _jsxs("div", {
744
+ style: {
745
+ padding: '1rem',
746
+ display: 'flex',
747
+ flexDirection: 'column',
748
+ alignItems: 'center',
749
+ gap: '0.75rem'
750
+ },
751
+ children: [
752
+ /*#__PURE__*/ _jsx(Thumbnail, {
753
+ size: 80,
754
+ src: item.src,
755
+ alt: item.name
756
+ }),
757
+ /*#__PURE__*/ _jsxs("div", {
758
+ style: {
759
+ textAlign: 'center'
760
+ },
761
+ children: [
762
+ /*#__PURE__*/ _jsx(Text, {
763
+ style: {
764
+ fontSize: '0.9rem',
765
+ fontWeight: 'bold'
766
+ },
767
+ children: item.name
768
+ }),
769
+ /*#__PURE__*/ _jsx(Text, {
770
+ style: {
771
+ fontSize: '0.8rem',
772
+ color: '#666'
773
+ },
774
+ children: item.type
775
+ })
776
+ ]
777
+ })
778
+ ]
779
+ }),
780
+ item.type === 'video' && /*#__PURE__*/ _jsx("div", {
781
+ style: {
782
+ position: 'absolute',
783
+ top: '1rem',
784
+ right: '1rem',
785
+ backgroundColor: 'rgba(0, 0, 0, 0.7)',
786
+ color: 'white',
787
+ padding: '0.25rem 0.5rem',
788
+ borderRadius: '4px',
789
+ fontSize: '0.7rem'
790
+ },
791
+ children: "VIDEO"
792
+ })
793
+ ]
794
+ }, item.id);
795
+ })
796
+ })
797
+ });
798
+ },
799
+ parameters: {
800
+ docs: {
801
+ description: {
802
+ story: 'Media library with thumbnails for images and videos.'
803
+ }
804
+ }
805
+ }
806
+ };