@heymantle/litho 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/cjs/components/ActionList.js +50 -16
  2. package/dist/cjs/components/AnnouncementBar.js +10 -3
  3. package/dist/cjs/components/AppProvider.js +10 -1
  4. package/dist/cjs/components/Autocomplete.js +33 -11
  5. package/dist/cjs/components/Badge.js +2 -1
  6. package/dist/cjs/components/Banner.js +35 -31
  7. package/dist/cjs/components/Box.js +5 -3
  8. package/dist/cjs/components/Button.js +34 -12
  9. package/dist/cjs/components/Card.js +5 -45
  10. package/dist/cjs/components/Checkbox.js +16 -6
  11. package/dist/cjs/components/ChoiceList.js +7 -4
  12. package/dist/cjs/components/ColorField.js +8 -3
  13. package/dist/cjs/components/DatePicker.js +13 -8
  14. package/dist/cjs/components/DropZone.js +33 -18
  15. package/dist/cjs/components/EmptyState.js +15 -7
  16. package/dist/cjs/components/Filters.js +32 -20
  17. package/dist/cjs/components/FooterHelp.js +7 -2
  18. package/dist/cjs/components/Form.js +18 -3
  19. package/dist/cjs/components/Frame.js +40 -15
  20. package/dist/cjs/components/FrameSaveBar.js +21 -12
  21. package/dist/cjs/components/Layout.js +3 -3
  22. package/dist/cjs/components/LayoutSection.js +2 -2
  23. package/dist/cjs/components/Link.js +6 -2
  24. package/dist/cjs/components/List.js +1 -0
  25. package/dist/cjs/components/Listbox.js +9 -4
  26. package/dist/cjs/components/Modal.js +26 -17
  27. package/dist/cjs/components/Navigation.js +30 -20
  28. package/dist/cjs/components/Page.js +8 -3
  29. package/dist/cjs/components/Pagination.js +11 -4
  30. package/dist/cjs/components/Pane.js +118 -35
  31. package/dist/cjs/components/Popover.js +59 -6
  32. package/dist/cjs/components/RangeSlider.js +11 -4
  33. package/dist/cjs/components/ResourceList.js +9 -3
  34. package/dist/cjs/components/Select.js +2 -0
  35. package/dist/cjs/components/Table.js +32 -19
  36. package/dist/cjs/components/Text.js +8 -5
  37. package/dist/cjs/components/TextField.js +23 -13
  38. package/dist/cjs/components/Thumbnail.js +7 -2
  39. package/dist/cjs/components/TimePicker.js +7 -2
  40. package/dist/cjs/components/Tip.js +10 -4
  41. package/dist/cjs/components/Tooltip.js +16 -8
  42. package/dist/cjs/components/TopBar.js +17 -9
  43. package/dist/cjs/dev/verify-publish.js +37 -4
  44. package/dist/cjs/postcss.config.js +21 -0
  45. package/dist/cjs/stories/ActionList.stories.js +365 -0
  46. package/dist/cjs/stories/AnnouncementBar.stories.js +244 -0
  47. package/dist/cjs/stories/Autocomplete.stories.js +871 -0
  48. package/dist/cjs/stories/Badge.stories.js +183 -0
  49. package/dist/cjs/stories/Banner.stories.js +201 -0
  50. package/dist/cjs/stories/Box.stories.js +599 -0
  51. package/dist/cjs/stories/Button.stories.js +325 -0
  52. package/dist/cjs/stories/ButtonGroup.stories.js +404 -0
  53. package/dist/cjs/stories/Card.stories.js +278 -0
  54. package/dist/cjs/stories/Checkbox.stories.js +266 -0
  55. package/dist/cjs/stories/ChoiceList.stories.js +884 -0
  56. package/dist/cjs/stories/Collapsible.stories.js +905 -0
  57. package/dist/cjs/stories/ColorField.stories.js +883 -0
  58. package/dist/cjs/stories/ContextualSaveBar.stories.js +970 -0
  59. package/dist/cjs/stories/DatePicker.stories.js +584 -0
  60. package/dist/cjs/stories/Divider.stories.js +759 -0
  61. package/dist/cjs/stories/DropZone.stories.js +1205 -0
  62. package/dist/cjs/stories/EmptyState.stories.js +296 -0
  63. package/dist/cjs/stories/Filters.stories.js +1353 -0
  64. package/dist/cjs/stories/FooterHelp.stories.js +869 -0
  65. package/dist/cjs/stories/Form.stories.js +940 -0
  66. package/dist/cjs/stories/Grid.stories.js +1199 -0
  67. package/dist/cjs/stories/HorizontalStack.stories.js +1064 -0
  68. package/dist/cjs/stories/Icon.stories.js +596 -0
  69. package/dist/cjs/stories/Image.stories.js +883 -0
  70. package/dist/cjs/stories/InlineError.stories.js +710 -0
  71. package/dist/cjs/stories/Label.stories.js +665 -0
  72. package/dist/cjs/stories/Layout.stories.js +685 -0
  73. package/dist/cjs/stories/LayoutSection.stories.js +1267 -0
  74. package/dist/cjs/stories/Link.stories.js +423 -0
  75. package/dist/cjs/stories/List.stories.js +1031 -0
  76. package/dist/cjs/stories/Listbox.stories.js +820 -0
  77. package/dist/cjs/stories/Loading.stories.js +900 -0
  78. package/dist/cjs/stories/Modal.stories.js +363 -0
  79. package/dist/cjs/stories/Navigation.stories.js +605 -0
  80. package/dist/cjs/stories/Page.stories.js +318 -0
  81. package/dist/cjs/stories/Pagination.stories.js +438 -0
  82. package/dist/cjs/stories/Pane.stories.js +1535 -0
  83. package/dist/cjs/stories/Popover.stories.js +637 -0
  84. package/dist/cjs/stories/PopoverManager.stories.js +1225 -0
  85. package/dist/cjs/stories/ProgressBar.stories.js +506 -0
  86. package/dist/cjs/stories/RadioButton.stories.js +642 -0
  87. package/dist/cjs/stories/RadioButtonCard.stories.js +816 -0
  88. package/dist/cjs/stories/RangeSlider.stories.js +892 -0
  89. package/dist/cjs/stories/ResourceList.stories.js +1067 -0
  90. package/dist/cjs/stories/Select.stories.js +413 -0
  91. package/dist/cjs/stories/SkeletonText.stories.js +776 -0
  92. package/dist/cjs/stories/Spinner.stories.js +396 -0
  93. package/dist/cjs/stories/Table.stories.js +628 -0
  94. package/dist/cjs/stories/Tabs.stories.js +723 -0
  95. package/dist/cjs/stories/Tag.stories.js +620 -0
  96. package/dist/cjs/stories/Text.stories.js +262 -0
  97. package/dist/cjs/stories/TextField.stories.js +377 -0
  98. package/dist/cjs/stories/Thumbnail.stories.js +859 -0
  99. package/dist/cjs/stories/TimePicker.stories.js +966 -0
  100. package/dist/cjs/stories/Tip.stories.js +753 -0
  101. package/dist/cjs/stories/Tooltip.stories.js +357 -0
  102. package/dist/cjs/stories/TopBar.stories.js +155 -0
  103. package/dist/cjs/stories/VerticalStack.stories.js +1287 -0
  104. package/dist/cjs/tailwind.config.js +17 -0
  105. package/dist/cjs/utilities/transformers.js +66 -0
  106. package/dist/cjs/vite.config.js +35 -0
  107. package/dist/esm/components/ActionList.js +41 -12
  108. package/dist/esm/components/AnnouncementBar.js +3 -1
  109. package/dist/esm/components/AppProvider.js +10 -1
  110. package/dist/esm/components/Autocomplete.js +21 -4
  111. package/dist/esm/components/Badge.js +2 -2
  112. package/dist/esm/components/Banner.js +20 -21
  113. package/dist/esm/components/Box.js +5 -4
  114. package/dist/esm/components/Button.js +24 -7
  115. package/dist/esm/components/Card.js +5 -4
  116. package/dist/esm/components/Checkbox.js +6 -1
  117. package/dist/esm/components/ChoiceList.js +7 -4
  118. package/dist/esm/components/ColorField.js +1 -1
  119. package/dist/esm/components/DatePicker.js +6 -1
  120. package/dist/esm/components/DropZone.js +14 -4
  121. package/dist/esm/components/EmptyState.js +4 -1
  122. package/dist/esm/components/Filters.js +10 -3
  123. package/dist/esm/components/FooterHelp.js +1 -1
  124. package/dist/esm/components/Form.js +18 -3
  125. package/dist/esm/components/Frame.js +18 -6
  126. package/dist/esm/components/FrameSaveBar.js +10 -6
  127. package/dist/esm/components/InlineError.js +1 -1
  128. package/dist/esm/components/Layout.js +4 -4
  129. package/dist/esm/components/LayoutSection.js +2 -2
  130. package/dist/esm/components/Link.js +6 -2
  131. package/dist/esm/components/List.js +1 -0
  132. package/dist/esm/components/Listbox.js +4 -4
  133. package/dist/esm/components/Modal.js +8 -4
  134. package/dist/esm/components/Navigation.js +16 -11
  135. package/dist/esm/components/Page.js +9 -4
  136. package/dist/esm/components/Pagination.js +3 -1
  137. package/dist/esm/components/Pane.js +114 -36
  138. package/dist/esm/components/Popover.js +18 -6
  139. package/dist/esm/components/RangeSlider.js +3 -1
  140. package/dist/esm/components/ResourceList.js +2 -1
  141. package/dist/esm/components/Select.js +2 -0
  142. package/dist/esm/components/Table.js +16 -3
  143. package/dist/esm/components/Text.js +8 -6
  144. package/dist/esm/components/TextField.js +6 -1
  145. package/dist/esm/components/Thumbnail.js +1 -1
  146. package/dist/esm/components/TimePicker.js +1 -1
  147. package/dist/esm/components/Tip.js +3 -2
  148. package/dist/esm/components/Tooltip.js +4 -1
  149. package/dist/esm/components/TopBar.js +7 -4
  150. package/dist/esm/dev/verify-publish.js +37 -4
  151. package/dist/esm/postcss.config.js +6 -0
  152. package/dist/esm/stories/ActionList.stories.js +327 -0
  153. package/dist/esm/stories/AnnouncementBar.stories.js +212 -0
  154. package/dist/esm/stories/Autocomplete.stories.js +833 -0
  155. package/dist/esm/stories/Badge.stories.js +138 -0
  156. package/dist/esm/stories/Banner.stories.js +159 -0
  157. package/dist/esm/stories/Box.stories.js +558 -0
  158. package/dist/esm/stories/Button.stories.js +277 -0
  159. package/dist/esm/stories/ButtonGroup.stories.js +357 -0
  160. package/dist/esm/stories/Card.stories.js +240 -0
  161. package/dist/esm/stories/Checkbox.stories.js +219 -0
  162. package/dist/esm/stories/ChoiceList.stories.js +834 -0
  163. package/dist/esm/stories/Collapsible.stories.js +867 -0
  164. package/dist/esm/stories/ColorField.stories.js +842 -0
  165. package/dist/esm/stories/ContextualSaveBar.stories.js +938 -0
  166. package/dist/esm/stories/DatePicker.stories.js +537 -0
  167. package/dist/esm/stories/Divider.stories.js +715 -0
  168. package/dist/esm/stories/DropZone.stories.js +1161 -0
  169. package/dist/esm/stories/EmptyState.stories.js +246 -0
  170. package/dist/esm/stories/Filters.stories.js +1315 -0
  171. package/dist/esm/stories/FooterHelp.stories.js +813 -0
  172. package/dist/esm/stories/Form.stories.js +905 -0
  173. package/dist/esm/stories/Grid.stories.js +1152 -0
  174. package/dist/esm/stories/HorizontalStack.stories.js +1011 -0
  175. package/dist/esm/stories/Icon.stories.js +555 -0
  176. package/dist/esm/stories/Image.stories.js +836 -0
  177. package/dist/esm/stories/InlineError.stories.js +666 -0
  178. package/dist/esm/stories/Label.stories.js +612 -0
  179. package/dist/esm/stories/Layout.stories.js +647 -0
  180. package/dist/esm/stories/LayoutSection.stories.js +1226 -0
  181. package/dist/esm/stories/Link.stories.js +379 -0
  182. package/dist/esm/stories/List.stories.js +975 -0
  183. package/dist/esm/stories/Listbox.stories.js +776 -0
  184. package/dist/esm/stories/Loading.stories.js +850 -0
  185. package/dist/esm/stories/Modal.stories.js +322 -0
  186. package/dist/esm/stories/Navigation.stories.js +567 -0
  187. package/dist/esm/stories/Page.stories.js +276 -0
  188. package/dist/esm/stories/Pagination.stories.js +394 -0
  189. package/dist/esm/stories/Pane.stories.js +1497 -0
  190. package/dist/esm/stories/Popover.stories.js +605 -0
  191. package/dist/esm/stories/PopoverManager.stories.js +1193 -0
  192. package/dist/esm/stories/ProgressBar.stories.js +465 -0
  193. package/dist/esm/stories/RadioButton.stories.js +598 -0
  194. package/dist/esm/stories/RadioButtonCard.stories.js +772 -0
  195. package/dist/esm/stories/RangeSlider.stories.js +845 -0
  196. package/dist/esm/stories/ResourceList.stories.js +1029 -0
  197. package/dist/esm/stories/Select.stories.js +363 -0
  198. package/dist/esm/stories/SkeletonText.stories.js +717 -0
  199. package/dist/esm/stories/Spinner.stories.js +355 -0
  200. package/dist/esm/stories/Table.stories.js +584 -0
  201. package/dist/esm/stories/Tabs.stories.js +685 -0
  202. package/dist/esm/stories/Tag.stories.js +573 -0
  203. package/dist/esm/stories/Text.stories.js +217 -0
  204. package/dist/esm/stories/TextField.stories.js +332 -0
  205. package/dist/esm/stories/Thumbnail.stories.js +806 -0
  206. package/dist/esm/stories/TimePicker.stories.js +910 -0
  207. package/dist/esm/stories/Tip.stories.js +706 -0
  208. package/dist/esm/stories/Tooltip.stories.js +313 -0
  209. package/dist/esm/stories/TopBar.stories.js +114 -0
  210. package/dist/esm/stories/VerticalStack.stories.js +1240 -0
  211. package/dist/esm/tailwind.config.js +7 -0
  212. package/dist/esm/utilities/transformers.js +47 -0
  213. package/dist/esm/vite.config.js +20 -0
  214. package/dist/types/components/ActionList.d.ts +122 -0
  215. package/dist/types/components/ActionList.d.ts.map +1 -0
  216. package/dist/types/components/AnnouncementBar.d.ts +21 -0
  217. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  218. package/dist/types/components/AppProvider.d.ts +61 -0
  219. package/dist/types/components/AppProvider.d.ts.map +1 -0
  220. package/dist/types/components/Autocomplete.d.ts +130 -0
  221. package/dist/types/components/Autocomplete.d.ts.map +1 -0
  222. package/dist/types/components/Badge.d.ts +21 -0
  223. package/dist/types/components/Badge.d.ts.map +1 -0
  224. package/dist/types/components/Banner.d.ts +78 -0
  225. package/dist/types/components/Banner.d.ts.map +1 -0
  226. package/dist/types/components/Box.d.ts +70 -0
  227. package/dist/types/components/Box.d.ts.map +1 -0
  228. package/dist/types/components/Button.d.ts +123 -0
  229. package/dist/types/components/Button.d.ts.map +1 -0
  230. package/dist/types/components/ButtonGroup.d.ts +26 -0
  231. package/dist/types/components/ButtonGroup.d.ts.map +1 -0
  232. package/dist/types/components/Card.d.ts +139 -0
  233. package/dist/types/components/Card.d.ts.map +1 -0
  234. package/dist/types/components/Checkbox.d.ts +56 -0
  235. package/dist/types/components/Checkbox.d.ts.map +1 -0
  236. package/dist/types/components/ChoiceList.d.ts +69 -0
  237. package/dist/types/components/ChoiceList.d.ts.map +1 -0
  238. package/dist/types/components/Collapsible.d.ts +17 -0
  239. package/dist/types/components/Collapsible.d.ts.map +1 -0
  240. package/dist/types/components/ColorField.d.ts +36 -0
  241. package/dist/types/components/ColorField.d.ts.map +1 -0
  242. package/dist/types/components/ContextualSaveBar.d.ts +22 -0
  243. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -0
  244. package/dist/types/components/DatePicker.d.ts +66 -0
  245. package/dist/types/components/DatePicker.d.ts.map +1 -0
  246. package/dist/types/components/Divider.d.ts +21 -0
  247. package/dist/types/components/Divider.d.ts.map +1 -0
  248. package/dist/types/components/DropZone.d.ts +108 -0
  249. package/dist/types/components/DropZone.d.ts.map +1 -0
  250. package/dist/types/components/EmptyState.d.ts +52 -0
  251. package/dist/types/components/EmptyState.d.ts.map +1 -0
  252. package/dist/types/components/Filters.d.ts +166 -0
  253. package/dist/types/components/Filters.d.ts.map +1 -0
  254. package/dist/types/components/FooterHelp.d.ts +21 -0
  255. package/dist/types/components/FooterHelp.d.ts.map +1 -0
  256. package/dist/types/components/Form.d.ts +39 -0
  257. package/dist/types/components/Form.d.ts.map +1 -0
  258. package/dist/types/components/Frame.d.ts +51 -0
  259. package/dist/types/components/Frame.d.ts.map +1 -0
  260. package/dist/types/components/FrameSaveBar.d.ts +8 -0
  261. package/dist/types/components/FrameSaveBar.d.ts.map +1 -0
  262. package/dist/types/components/Grid.d.ts +39 -0
  263. package/dist/types/components/Grid.d.ts.map +1 -0
  264. package/dist/types/components/HorizontalStack.d.ts +36 -0
  265. package/dist/types/components/HorizontalStack.d.ts.map +1 -0
  266. package/dist/types/components/Icon.d.ts +43 -0
  267. package/dist/types/components/Icon.d.ts.map +1 -0
  268. package/dist/types/components/Image.d.ts +45 -0
  269. package/dist/types/components/Image.d.ts.map +1 -0
  270. package/dist/types/components/InlineError.d.ts +22 -0
  271. package/dist/types/components/InlineError.d.ts.map +1 -0
  272. package/dist/types/components/Label.d.ts +28 -0
  273. package/dist/types/components/Label.d.ts.map +1 -0
  274. package/dist/types/components/Layout.d.ts +44 -0
  275. package/dist/types/components/Layout.d.ts.map +1 -0
  276. package/dist/types/components/LayoutSection.d.ts +24 -0
  277. package/dist/types/components/LayoutSection.d.ts.map +1 -0
  278. package/dist/types/components/Link.d.ts +38 -0
  279. package/dist/types/components/Link.d.ts.map +1 -0
  280. package/dist/types/components/List.d.ts +33 -0
  281. package/dist/types/components/List.d.ts.map +1 -0
  282. package/dist/types/components/Listbox.d.ts +34 -0
  283. package/dist/types/components/Listbox.d.ts.map +1 -0
  284. package/dist/types/components/Loading.d.ts +13 -0
  285. package/dist/types/components/Loading.d.ts.map +1 -0
  286. package/dist/types/components/Modal.d.ts +75 -0
  287. package/dist/types/components/Modal.d.ts.map +1 -0
  288. package/dist/types/components/Navigation.d.ts +105 -0
  289. package/dist/types/components/Navigation.d.ts.map +1 -0
  290. package/dist/types/components/Page.d.ts +59 -0
  291. package/dist/types/components/Page.d.ts.map +1 -0
  292. package/dist/types/components/Pagination.d.ts +39 -0
  293. package/dist/types/components/Pagination.d.ts.map +1 -0
  294. package/dist/types/components/Pane.d.ts +11 -0
  295. package/dist/types/components/Pane.d.ts.map +1 -0
  296. package/dist/types/components/Popover.d.ts +56 -0
  297. package/dist/types/components/Popover.d.ts.map +1 -0
  298. package/dist/types/components/PopoverManager.d.ts +3 -0
  299. package/dist/types/components/PopoverManager.d.ts.map +1 -0
  300. package/dist/types/components/ProgressBar.d.ts +24 -0
  301. package/dist/types/components/ProgressBar.d.ts.map +1 -0
  302. package/dist/types/components/RadioButton.d.ts +39 -0
  303. package/dist/types/components/RadioButton.d.ts.map +1 -0
  304. package/dist/types/components/RadioButtonCard.d.ts +41 -0
  305. package/dist/types/components/RadioButtonCard.d.ts.map +1 -0
  306. package/dist/types/components/RangeSlider.d.ts +44 -0
  307. package/dist/types/components/RangeSlider.d.ts.map +1 -0
  308. package/dist/types/components/ResourceList.d.ts +54 -0
  309. package/dist/types/components/ResourceList.d.ts.map +1 -0
  310. package/dist/types/components/Select.d.ts +48 -0
  311. package/dist/types/components/Select.d.ts.map +1 -0
  312. package/dist/types/components/SkeletonText.d.ts +28 -0
  313. package/dist/types/components/SkeletonText.d.ts.map +1 -0
  314. package/dist/types/components/Spinner.d.ts +18 -0
  315. package/dist/types/components/Spinner.d.ts.map +1 -0
  316. package/dist/types/components/Table.d.ts +197 -0
  317. package/dist/types/components/Table.d.ts.map +1 -0
  318. package/dist/types/components/Tabs.d.ts +41 -0
  319. package/dist/types/components/Tabs.d.ts.map +1 -0
  320. package/dist/types/components/Tag.d.ts +26 -0
  321. package/dist/types/components/Tag.d.ts.map +1 -0
  322. package/dist/types/components/Text.d.ts +32 -0
  323. package/dist/types/components/Text.d.ts.map +1 -0
  324. package/dist/types/components/TextField.d.ts +109 -0
  325. package/dist/types/components/TextField.d.ts.map +1 -0
  326. package/dist/types/components/Thumbnail.d.ts +18 -0
  327. package/dist/types/components/Thumbnail.d.ts.map +1 -0
  328. package/dist/types/components/TimePicker.d.ts +3 -0
  329. package/dist/types/components/TimePicker.d.ts.map +1 -0
  330. package/dist/types/components/Tip.d.ts +23 -0
  331. package/dist/types/components/Tip.d.ts.map +1 -0
  332. package/dist/types/components/Tooltip.d.ts +84 -0
  333. package/dist/types/components/Tooltip.d.ts.map +1 -0
  334. package/dist/types/components/TopBar.d.ts +43 -0
  335. package/dist/types/components/TopBar.d.ts.map +1 -0
  336. package/dist/types/components/VerticalStack.d.ts +27 -0
  337. package/dist/types/components/VerticalStack.d.ts.map +1 -0
  338. package/dist/types/index.d.ts +62 -0
  339. package/dist/types/index.d.ts.map +1 -0
  340. package/dist/types/styles/Table.d.ts +1570 -0
  341. package/dist/types/styles/Table.d.ts.map +1 -0
  342. package/dist/types/utilities/dates.d.ts +46 -0
  343. package/dist/types/utilities/dates.d.ts.map +1 -0
  344. package/dist/types/utilities/transformers.d.ts +4 -0
  345. package/dist/types/utilities/transformers.d.ts.map +1 -0
  346. package/dist/types/utilities/useIndexResourceState.d.ts +21 -0
  347. package/dist/types/utilities/useIndexResourceState.d.ts.map +1 -0
  348. package/dist/types/utilities/useMounted.d.ts +2 -0
  349. package/dist/types/utilities/useMounted.d.ts.map +1 -0
  350. package/dist/types/utilities/useTableScrollState.d.ts +29 -0
  351. package/dist/types/utilities/useTableScrollState.d.ts.map +1 -0
  352. package/index.css +6 -0
  353. package/package.json +37 -6
@@ -0,0 +1,108 @@
1
+ export default DropZone;
2
+ /**
3
+ * DropZone component for handling file uploads with previews.
4
+ *
5
+ * @param {Object} props - Component props.
6
+ * @param {string} [props.id] - The ID for the DropZone input.
7
+ * @param {string} [props.label] - Label for the DropZone.
8
+ * @param {boolean} [props.labelHidden] - Whether the label is hidden.
9
+ * @param {Object} [props.labelAction] - Action for the label, including `onAction` and `content`.
10
+ * @param {string} [props.tooltip] - Tooltip for the label.
11
+ * @param {string} [props.labelVariant] - Variant for the label styling.
12
+ * @param {string} [props.type="file"] - The type of files accepted (e.g., "file", "image").
13
+ * @param {string|string[]} [props.accept] - Accepted file types.
14
+ * @param {boolean} [props.allowMultiple=false] - Whether multiple files can be uploaded.
15
+ * @param {boolean} [props.showDropZoneWhenDisabled=true] - Whether the DropZone is shown when disabled.
16
+ * @param {boolean} [props.disabled] - Whether the DropZone is disabled.
17
+ * @param {Function} [props.onDrop] - Callback for when files are dropped.
18
+ * @param {Function} [props.onDropAccepted] - Callback for accepted files.
19
+ * @param {Function} [props.onDropRejected] - Callback for rejected files.
20
+ * @param {string} [props.helpText] - Help text displayed below the DropZone.
21
+ * @param {string} [props.error] - Error message to display.
22
+ * @param {boolean} [props.uploading=false] - Whether a file upload is in progress.
23
+ * @param {Array} [props.uploadedFiles=[]] - Array of uploaded files.
24
+ * @param {string} [props.uploadLabel="Drag and drop files or click to upload"] - Label for upload prompt.
25
+ * @param {string} [props.uploadingLabel="Uploading..."] - Label shown during file uploads.
26
+ * @param {string} [props.dragLabel="Release to upload"] - Label for the drag area.
27
+ * @param {boolean} [props.showFilePreview=true] - Whether file previews are displayed.
28
+ * @param {boolean} [props.previewLoading] - Whether file previews are loading.
29
+ * @param {number} [props.previewRows=2] - Number of preview rows to display.
30
+ * @param {Function} [props.onRemove] - Callback for removing a file.
31
+ * @param {Function} [props.onFilePreviewClick] - Callback for clicking a file preview.
32
+ * @param {string} [props.filename] - Name of the file being uploaded.
33
+ * @returns {JSX.Element} DropZone component.
34
+ */
35
+ declare function DropZone(props?: {
36
+ id?: string;
37
+ label?: string;
38
+ labelHidden?: boolean;
39
+ labelAction?: any;
40
+ tooltip?: string;
41
+ labelVariant?: string;
42
+ type?: string;
43
+ accept?: string | string[];
44
+ allowMultiple?: boolean;
45
+ showDropZoneWhenDisabled?: boolean;
46
+ disabled?: boolean;
47
+ onDrop?: Function;
48
+ onDropAccepted?: Function;
49
+ onDropRejected?: Function;
50
+ helpText?: string;
51
+ error?: string;
52
+ uploading?: boolean;
53
+ uploadedFiles?: any[];
54
+ uploadLabel?: string;
55
+ uploadingLabel?: string;
56
+ dragLabel?: string;
57
+ showFilePreview?: boolean;
58
+ previewLoading?: boolean;
59
+ previewRows?: number;
60
+ onRemove?: Function;
61
+ onFilePreviewClick?: Function;
62
+ filename?: string;
63
+ }): JSX.Element;
64
+ declare namespace DropZone {
65
+ export { FilePreview };
66
+ export { FileThumbnail };
67
+ export { formatFileSize };
68
+ }
69
+ /**
70
+ * FilePreview component for displaying file preview thumbnails.
71
+ *
72
+ * @param {Object} props - Component props.
73
+ * @param {Array} [props.files] - Array of file objects to preview.
74
+ * @param {boolean} [props.loading] - Whether the file previews are loading.
75
+ * @param {number} [props.previewRows=2] - Number of preview rows to display.
76
+ * @param {Function} [props.onRemove] - Callback for removing a file.
77
+ * @param {Function} [props.onClick] - Callback for clicking a file preview.
78
+ * @param {string} [props.filename] - Name of the file being uploaded.
79
+ * @returns {JSX.Element} FilePreview component.
80
+ */
81
+ declare function FilePreview(props?: {
82
+ files?: any[];
83
+ loading?: boolean;
84
+ previewRows?: number;
85
+ onRemove?: Function;
86
+ onClick?: Function;
87
+ filename?: string;
88
+ }): JSX.Element;
89
+ /**
90
+ * FileThumbnail component for displaying a file thumbnail or spinner.
91
+ *
92
+ * @param {Object} props - Component props.
93
+ * @param {Object} [props.file] - File object to display.
94
+ * @param {boolean} [props.loading] - Whether the thumbnail is loading.
95
+ * @returns {JSX.Element} FileThumbnail component.
96
+ */
97
+ declare function FileThumbnail(props?: {
98
+ file?: any;
99
+ loading?: boolean;
100
+ }): JSX.Element;
101
+ /**
102
+ * Formats a file size into a human-readable string.
103
+ *
104
+ * @param {number} fileSize - Size of the file in bytes.
105
+ * @returns {string} Formatted file size (e.g., "1.2 MB").
106
+ */
107
+ declare function formatFileSize(fileSize: number): string;
108
+ //# sourceMappingURL=DropZone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropZone.d.ts","sourceRoot":"","sources":["../../../components/DropZone.js"],"names":[],"mappings":";AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,kCA7BG;IAAuB,EAAE,GAAjB,MAAM;IACS,KAAK,GAApB,MAAM;IACU,WAAW,GAA3B,OAAO;IACQ,WAAW;IACX,OAAO,GAAtB,MAAM;IACS,YAAY,GAA3B,MAAM;IACS,IAAI,GAAnB,MAAM;IACkB,MAAM,GAA9B,MAAM,GAAC,MAAM,EAAE;IACC,aAAa,GAA7B,OAAO;IACS,wBAAwB,GAAxC,OAAO;IACS,QAAQ,GAAxB,OAAO;IACU,MAAM;IACN,cAAc;IACd,cAAc;IAChB,QAAQ,GAAvB,MAAM;IACS,KAAK,GAApB,MAAM;IACU,SAAS,GAAzB,OAAO;IACO,aAAa;IACZ,WAAW,GAA1B,MAAM;IACS,cAAc,GAA7B,MAAM;IACS,SAAS,GAAxB,MAAM;IACU,eAAe,GAA/B,OAAO;IACS,cAAc,GAA9B,OAAO;IACQ,WAAW,GAA1B,MAAM;IACW,QAAQ;IACR,kBAAkB;IACpB,QAAQ,GAAvB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAyPvB;;;;;;AAyBD;;;;;;;;;;;GAWG;AACH,qCARG;IAAsB,KAAK;IACH,OAAO,GAAvB,OAAO;IACQ,WAAW,GAA1B,MAAM;IACW,QAAQ;IACR,OAAO;IACT,QAAQ,GAAvB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAsEvB;AAOD;;;;;;;GAOG;AACH,uCAJG;IAAuB,IAAI;IACH,OAAO,GAAvB,OAAO;CACf,GAAU,GAAG,CAAC,OAAO,CA6BvB;AAGD;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,CAgBlB"}
@@ -0,0 +1,52 @@
1
+ export default EmptyState;
2
+ /**
3
+ * EmptyState component for displaying a structured layout with a title, description,
4
+ * icon, and action buttons when no content is available.
5
+ *
6
+ * @param {Object} props - The properties to customize the EmptyState component.
7
+ * @param {string} [props.description] - Text description to display in the empty state.
8
+ * @param {React.ReactNode} [props.icon] - React node to render a custom icon.
9
+ * @param {string} [props.iconSource] - Image source URL to display an icon.
10
+ * @param {Object} [props.primaryAction] - Primary action button configuration.
11
+ * @param {string} props.primaryAction.content - Label for the primary button.
12
+ * @param {function} props.primaryAction.onAction - Callback function for the primary action button click.
13
+ * @param {boolean} [props.primaryAction.disabled=false] - Disable state for the primary action button.
14
+ * @param {boolean} [props.primaryAction.loading=false] - Loading state for the primary action button.
15
+ * @param {boolean} [props.primaryAction.external=false] - Whether the primary action button should open in a new tab.
16
+ * @param {Object} [props.secondaryAction] - Secondary action button configuration.
17
+ * @param {string} props.secondaryAction.content - Label for the secondary button.
18
+ * @param {function} props.secondaryAction.onAction - Callback function for the secondary action button click.
19
+ * @param {boolean} [props.secondaryAction.disabled=false] - Disable state for the secondary action button.
20
+ * @param {boolean} [props.secondaryAction.loading=false] - Loading state for the secondary action button.
21
+ * @param {boolean} [props.secondaryAction.external=false] - Whether the secondary action button should open in a new tab.
22
+ * @param {string} [props.title] - Title text to display in the empty state.
23
+ * @param {string} [props.titleVariant="headingXl"] - Typography variant for the title, default is "headingXl".
24
+ * @param {string} [props.descriptionVariant="bodyLg"] - Typography variant for the description, default is "bodyLg".
25
+ * @param {number} [props.progress] - Progress value to display in the empty state.
26
+ *
27
+ * @returns {JSX.Element} The rendered EmptyState component.
28
+ */
29
+ declare function EmptyState(props?: {
30
+ description?: string;
31
+ icon?: React.ReactNode;
32
+ iconSource?: string;
33
+ primaryAction?: {
34
+ content: string;
35
+ onAction: Function;
36
+ disabled?: boolean;
37
+ loading?: boolean;
38
+ external?: boolean;
39
+ };
40
+ secondaryAction?: {
41
+ content: string;
42
+ onAction: Function;
43
+ disabled?: boolean;
44
+ loading?: boolean;
45
+ external?: boolean;
46
+ };
47
+ title?: string;
48
+ titleVariant?: string;
49
+ descriptionVariant?: string;
50
+ progress?: number;
51
+ }): JSX.Element;
52
+ //# sourceMappingURL=EmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../components/EmptyState.js"],"names":[],"mappings":";AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,oCAvBG;IAAuB,WAAW,GAA1B,MAAM;IACkB,IAAI,GAA5B,KAAK,CAAC,SAAS;IACA,UAAU,GAAzB,MAAM;IACS,aAAa,GACpC;QAAoC,OAAO,EAAnC,MAAM;QACwB,QAAQ;QACR,QAAQ,GAAtC,OAAO;QACuB,OAAO,GAArC,OAAO;QACuB,QAAQ,GAAtC,OAAO;KACf;IAAuB,eAAe,GACtC;QAAsC,OAAO,EAArC,MAAM;QAC0B,QAAQ;QACR,QAAQ,GAAxC,OAAO;QACyB,OAAO,GAAvC,OAAO;QACyB,QAAQ,GAAxC,OAAO;KACf;IAAuB,KAAK,GAApB,MAAM;IACS,YAAY,GAA3B,MAAM;IACS,kBAAkB,GAAjC,MAAM;IACS,QAAQ,GAAvB,MAAM;CAEd,GAAU,GAAG,CAAC,OAAO,CAoEvB"}
@@ -0,0 +1,166 @@
1
+ export default Filters;
2
+ /**
3
+ * Filters Component - A React component that manages filters for a given dataset.
4
+ * Includes functionality for visible filters, more filters, and a query field.
5
+ *
6
+ * @component
7
+ * @param {Object} props - The component props.
8
+ * @param {Array<{
9
+ * key: string,
10
+ * label: string,
11
+ * filter: React.ReactNode,
12
+ * shortcut?: boolean,
13
+ * promoted?: boolean,
14
+ * onRemove?: () => void
15
+ * }>} props.filters - The available filters to display.
16
+ * @param {Array<{
17
+ * key: string,
18
+ * label: string,
19
+ * onRemove?: () => void
20
+ * }>} props.appliedFilters - The currently applied filters.
21
+ * @param {Function} [props.onClearAll] - Callback for clearing all applied filters.
22
+ * @param {boolean} [props.showTextField=false] - Whether to show the query text field.
23
+ * @param {boolean} [props.textFieldSubdued=false] - Whether the text field should appear subdued.
24
+ * @param {boolean} [props.padded=false] - Whether to apply padding to the filters container.
25
+ * @param {string} [props.queryValue] - The current value of the query text field.
26
+ * @param {Function} [props.onQueryChange] - Callback for when the query text field value changes.
27
+ * @param {Function} [props.onQueryBlur] - Callback for when the query text field loses focus.
28
+ * @param {Function} [props.onQueryFocus] - Callback for when the query text field gains focus.
29
+ * @param {Function} [props.onQueryClear] - Callback for clearing the query text field.
30
+ * @param {string} [props.queryPlaceholder="Search"] - Placeholder text for the query text field.
31
+ * @param {boolean} [props.ignorePromotedFiltersWhenRemoving=true] - Whether to ignore promoted filters when clearing filters.
32
+ * @param {boolean} [props.disableQueryField=false] - Whether the query text field is disabled.
33
+ * @param {string} [props.className] - Additional class names for the component.
34
+ * @returns {JSX.Element|null} The Filters component or null if no filters are available.
35
+ */
36
+ declare function Filters(props: {
37
+ filters: Array<{
38
+ key: string;
39
+ label: string;
40
+ filter: React.ReactNode;
41
+ shortcut?: boolean;
42
+ promoted?: boolean;
43
+ onRemove?: () => void;
44
+ }>;
45
+ appliedFilters: Array<{
46
+ key: string;
47
+ label: string;
48
+ onRemove?: () => void;
49
+ }>;
50
+ onClearAll?: Function;
51
+ showTextField?: boolean;
52
+ textFieldSubdued?: boolean;
53
+ padded?: boolean;
54
+ queryValue?: string;
55
+ onQueryChange?: Function;
56
+ onQueryBlur?: Function;
57
+ onQueryFocus?: Function;
58
+ onQueryClear?: Function;
59
+ queryPlaceholder?: string;
60
+ ignorePromotedFiltersWhenRemoving?: boolean;
61
+ disableQueryField?: boolean;
62
+ className?: string;
63
+ }): JSX.Element | null;
64
+ declare namespace Filters {
65
+ /**
66
+ * Filters.Pill - A subcomponent for rendering filter pills.
67
+ *
68
+ * @component
69
+ * @param {Object} props - The component props.
70
+ * @param {string} props.label - The label of the filter pill.
71
+ * @param {boolean} [props.applied=false] - Whether the pill represents an applied filter.
72
+ * @param {boolean} [props.disabled=false] - Whether the pill is disabled.
73
+ * @param {boolean} [props.destructive=false] - Whether the pill represents a destructive action (e.g., remove filters).
74
+ * @param {Function} [props.onClick] - Callback when the pill is clicked.
75
+ * @returns {JSX.Element} The filter pill component.
76
+ */
77
+ function Pill(props?: {
78
+ label: string;
79
+ applied?: boolean;
80
+ disabled?: boolean;
81
+ destructive?: boolean;
82
+ onClick?: Function;
83
+ }): JSX.Element;
84
+ namespace Pill {
85
+ let displayName: string;
86
+ }
87
+ /**
88
+ * Filters.Tabs - A subcomponent for managing tabs with scrollable functionality.
89
+ *
90
+ * @component
91
+ * @param {Object} props - The component props.
92
+ * @param {Array} props.tabs - The tabs to display.
93
+ * @param {Object} [props.insertBeforeTabs] - Tab to insert before the main tabs.
94
+ * @param {number} props.selected - The index of the selected tab.
95
+ * @param {Function} props.onSelect - Callback when a tab is selected.
96
+ * @returns {JSX.Element} The tabs component.
97
+ */
98
+ function Tabs(props?: {
99
+ tabs: any[];
100
+ insertBeforeTabs?: any;
101
+ selected: number;
102
+ onSelect: Function;
103
+ }): JSX.Element;
104
+ namespace Tabs {
105
+ let displayName_1: string;
106
+ export { displayName_1 as displayName };
107
+ }
108
+ /**
109
+ * Filters.Tab - A subcomponent for rendering individual tabs within the Filters.Tabs component.
110
+ *
111
+ * @component
112
+ * @param {Object} props - The component props.
113
+ * @param {React.ReactNode} [props.icon=HorizontalDotsMinor] - The icon displayed in the tab (default is a horizontal dots icon).
114
+ * @param {boolean} [props.selected=false] - Whether the tab is currently selected.
115
+ * @param {string|React.ReactNode} props.content - The content displayed in the tab (e.g., tab label).
116
+ * @param {Function} [props.onClick] - Callback when the tab is clicked.
117
+ * @param {Function} [props.onAction] - Callback for an optional tab action (e.g., a secondary click area).
118
+ * @param {React.ReactNode} [props.accessory] - Additional content displayed below the tab label (e.g., a badge or description).
119
+ * @param {boolean} [props.interactive=false] - Whether the tab action is interactive.
120
+ * @param {string} [props.tooltip="Edit"] - Tooltip text displayed when hovering over the tab action icon.
121
+ * @returns {JSX.Element} The tab component.
122
+ */
123
+ function Tab(props?: {
124
+ icon?: React.ReactNode;
125
+ selected?: boolean;
126
+ content: string | React.ReactNode;
127
+ onClick?: Function;
128
+ onAction?: Function;
129
+ accessory?: React.ReactNode;
130
+ interactive?: boolean;
131
+ tooltip?: string;
132
+ }): JSX.Element;
133
+ /**
134
+ * Filters.TextField - A subcomponent for the query text field.
135
+ *
136
+ * @component
137
+ * @param {Object} props - The component props.
138
+ * @param {string} [props.queryValue] - The current value of the text field.
139
+ * @param {Function} [props.onQueryChange] - Callback for when the text field value changes.
140
+ * @param {Function} [props.onQueryBlur] - Callback for when the text field loses focus.
141
+ * @param {Function} [props.onQueryFocus] - Callback for when the text field gains focus.
142
+ * @param {Function} [props.onQueryClear] - Callback for clearing the text field.
143
+ * @param {string} [props.queryPlaceholder="Search"] - Placeholder text for the text field.
144
+ * @param {boolean} [props.subdued=false] - Whether the text field appears subdued.
145
+ * @param {boolean} [props.disableQueryField=false] - Whether the text field is disabled.
146
+ * @param {boolean} [props.transparent=true] - Whether the text field has a transparent background.
147
+ * @returns {JSX.Element} The text field component.
148
+ */
149
+ function TextField(props?: {
150
+ queryValue?: string;
151
+ onQueryChange?: Function;
152
+ onQueryBlur?: Function;
153
+ onQueryFocus?: Function;
154
+ onQueryClear?: Function;
155
+ queryPlaceholder?: string;
156
+ subdued?: boolean;
157
+ disableQueryField?: boolean;
158
+ transparent?: boolean;
159
+ }): JSX.Element;
160
+ namespace TextField {
161
+ let displayName_2: string;
162
+ export { displayName_2 as displayName };
163
+ }
164
+ }
165
+ import React from "react";
166
+ //# sourceMappingURL=Filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Filters.d.ts","sourceRoot":"","sources":["../../../components/Filters.js"],"names":[],"mappings":";AAgDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gCA5BG;IAOU,OAAO,EAPT,KAAK,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;KACtB,CAAC;IAKQ,cAAc,EAJhB,KAAK,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;KACtB,CAAC;IACuB,UAAU;IACX,aAAa,GAA7B,OAAO;IACS,gBAAgB,GAAhC,OAAO;IACS,MAAM,GAAtB,OAAO;IACQ,UAAU,GAAzB,MAAM;IACW,aAAa;IACb,WAAW;IACX,YAAY;IACZ,YAAY;IACd,gBAAgB,GAA/B,MAAM;IACU,iCAAiC,GAAjD,OAAO;IACS,iBAAiB,GAAjC,OAAO;IACQ,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,GAAC,IAAI,CA+P5B;;IA0CD;;;;;;;;;;;OAWG;IACH,sBAPG;QAAsB,KAAK,EAAnB,MAAM;QACU,OAAO,GAAvB,OAAO;QACS,QAAQ,GAAxB,OAAO;QACS,WAAW,GAA3B,OAAO;QACU,OAAO;KAChC,GAAU,GAAG,CAAC,OAAO,CA4CvB;;;;IA2BD;;;;;;;;;;OAUG;IACH,sBANG;QAAqB,IAAI;QACF,gBAAgB;QACjB,QAAQ,EAAtB,MAAM;QACU,QAAQ;KAChC,GAAU,GAAG,CAAC,OAAO,CAoKvB;;;;;IAkDD;;;;;;;;;;;;;;OAcG;IACH,qBAVG;QAAgC,IAAI,GAA5B,KAAK,CAAC,SAAS;QACC,QAAQ,GAAxB,OAAO;QACuB,OAAO,EAArC,MAAM,GAAC,KAAK,CAAC,SAAS;QACL,OAAO;QACP,QAAQ;QACD,SAAS,GAAjC,KAAK,CAAC,SAAS;QACC,WAAW,GAA3B,OAAO;QACQ,OAAO,GAAtB,MAAM;KACd,GAAU,GAAG,CAAC,OAAO,CA+DvB;IAED;;;;;;;;;;;;;;;OAeG;IACH,2BAXG;QAAuB,UAAU,GAAzB,MAAM;QACW,aAAa;QACb,WAAW;QACX,YAAY;QACZ,YAAY;QACd,gBAAgB,GAA/B,MAAM;QACU,OAAO,GAAvB,OAAO;QACS,iBAAiB,GAAjC,OAAO;QACS,WAAW,GAA3B,OAAO;KACf,GAAU,GAAG,CAAC,OAAO,CA+BvB;;;;;;kBAlyB8D,OAAO"}
@@ -0,0 +1,21 @@
1
+ export default FooterHelp;
2
+ /**
3
+ * Renders a `FooterHelp` component, which provides additional information
4
+ * or guidance to users, typically displayed at the bottom of a page. The component
5
+ * centers its content within a rounded, styled box that includes an icon and customizable text.
6
+ *
7
+ * @component
8
+ * @param {Object} [props] - The props for the FooterHelp component.
9
+ * @param {React.ReactNode} [props.children] - The content to display next to the information icon.
10
+ * This is typically a text string or any valid React node.
11
+ *
12
+ * @returns {JSX.Element} The rendered FooterHelp component.
13
+ *
14
+ * @example
15
+ * // Basic usage:
16
+ * <FooterHelp>Need more help? Contact support.</FooterHelp>
17
+ */
18
+ declare function FooterHelp(props?: {
19
+ children?: React.ReactNode;
20
+ }): JSX.Element;
21
+ //# sourceMappingURL=FooterHelp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterHelp.d.ts","sourceRoot":"","sources":["../../../components/FooterHelp.js"],"names":[],"mappings":";AAGA;;;;;;;;;;;;;;;GAeG;AAEH,oCAVG;IAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAAU,GAAG,CAAC,OAAO,CAkBvB"}
@@ -0,0 +1,39 @@
1
+ export default Form;
2
+ /**
3
+ * A reusable Form component that provides a structured HTML form with customizable attributes and submission handling.
4
+ *
5
+ * @component
6
+ * @param {Object} [props={}] - The properties passed to the component.
7
+ * @param {string} [props.acceptCharset] - The character encoding that the form accepts.
8
+ * @param {string} [props.action] - The URL where the form data should be submitted.
9
+ * @param {string} [props.autoComplete] - Whether the form should have autocomplete enabled. Can be "on" or "off".
10
+ * @param {React.ReactNode} [props.children] - The child elements to be rendered inside the form.
11
+ * @param {string} [props.encType] - The encoding type for the form submission (e.g., "multipart/form-data", "application/x-www-form-urlencoded").
12
+ * @param {string} [props.method="post"] - The HTTP method for the form submission. Can be "get", "post", etc.
13
+ * @param {string} [props.name] - The name attribute for the form element.
14
+ * @param {boolean} [props.noValidate] - Whether to disable HTML5 form validation.
15
+ * @param {boolean} [props.preventDefault=true] - Whether to prevent the default form submission behavior.
16
+ * @param {string} [props.target] - The target window or frame for the form submission (e.g., "_blank", "_self").
17
+ * @param {Function} [props.onSubmit] - The function to call when the form is submitted. Receives the form event as a parameter.
18
+ * @returns {JSX.Element} The rendered form component.
19
+ *
20
+ * @example
21
+ * <Form onSubmit={(event) => console.log('Form submitted')}>
22
+ * <TextField label="Name" />
23
+ * <Button submit>Submit</Button>
24
+ * </Form>
25
+ */
26
+ declare function Form(props?: {
27
+ acceptCharset?: string;
28
+ action?: string;
29
+ autoComplete?: string;
30
+ children?: React.ReactNode;
31
+ encType?: string;
32
+ method?: string;
33
+ name?: string;
34
+ noValidate?: boolean;
35
+ preventDefault?: boolean;
36
+ target?: string;
37
+ onSubmit?: Function;
38
+ }): JSX.Element;
39
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../components/Form.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAnBG;IAAuB,aAAa,GAA5B,MAAM;IACS,MAAM,GAArB,MAAM;IACS,YAAY,GAA3B,MAAM;IACkB,QAAQ,GAAhC,KAAK,CAAC,SAAS;IACA,OAAO,GAAtB,MAAM;IACS,MAAM,GAArB,MAAM;IACS,IAAI,GAAnB,MAAM;IACU,UAAU,GAA1B,OAAO;IACS,cAAc,GAA9B,OAAO;IACQ,MAAM,GAArB,MAAM;IACW,QAAQ;CACjC,GAAU,GAAG,CAAC,OAAO,CA+CvB"}
@@ -0,0 +1,51 @@
1
+ export function useFrame(): {
2
+ embedded: boolean;
3
+ paneIsOpen: boolean;
4
+ setPaneIsOpen: () => void;
5
+ modalIsOpen: boolean;
6
+ setModalIsOpen: () => void;
7
+ showMobileNavigation: boolean;
8
+ contentIsInIframe: boolean;
9
+ contentIsFullPage: boolean;
10
+ setShowMobileNavigation: () => void;
11
+ setContentIsInIframe: () => void;
12
+ setContentIsFullPage: () => void;
13
+ };
14
+ export default Frame;
15
+ /**
16
+ * Frame component that provides a layout structure with top bar, navigation, logo, and content.
17
+ * @param {Object} props - Props for the Frame component.
18
+ * @param {React.ReactNode} props.navigation - Component to render as the navigation menu.
19
+ * @param {React.ReactNode} props.announcement - Component to render an announcement bar.
20
+ * @param {Object} props.logo - Logo configuration.
21
+ * @param {string} props.logo.url - URL for the logo link.
22
+ * @param {string} props.logo.source - Source for the logo image.
23
+ * @param {string} props.logo.accessibilityLabel - Accessibility label for the logo image.
24
+ * @param {number} props.logo.width - Width of the logo image.
25
+ * @param {boolean} props.showSearchTrigger - Whether to show the search trigger.
26
+ * @param {React.ReactNode} props.searchModal - Modal to render as the search modal.
27
+ * @param {function} props.onToggleSearchModal - Function to toggle the search modal.
28
+ * @param {string} [props.className] - Additional CSS classes for the Frame.
29
+ * @param {React.ReactNode} props.children - Content to render within the Frame.
30
+ * @param {boolean} [props.alwaysShowUserMenuInTopBar] - Whether to always show the user menu in the top bar.
31
+ * @param {React.ReactNode} [props.headerAccessory] - Accessory to render in the header.
32
+ * @returns {React.ReactElement} The rendered Frame component.
33
+ */
34
+ declare function Frame({ navigation, announcement, logo, children, className, userMenu, moreActions, showSearchTrigger, alwaysShowUserMenuInTopBar, searchModal, onToggleSearchModal, headerAccessory, }: {
35
+ navigation: React.ReactNode;
36
+ announcement: React.ReactNode;
37
+ logo: {
38
+ url: string;
39
+ source: string;
40
+ accessibilityLabel: string;
41
+ width: number;
42
+ };
43
+ showSearchTrigger: boolean;
44
+ searchModal: React.ReactNode;
45
+ onToggleSearchModal: Function;
46
+ className?: string;
47
+ children: React.ReactNode;
48
+ alwaysShowUserMenuInTopBar?: boolean;
49
+ headerAccessory?: React.ReactNode;
50
+ }): React.ReactElement;
51
+ //# sourceMappingURL=Frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../components/Frame.js"],"names":[],"mappings":"AA8UO;;;;;;;;;;;;EAMN;;AAtOD;;;;;;;;;;;;;;;;;;GAkBG;AACH,0MAhBG;IAA+B,UAAU,EAAjC,KAAK,CAAC,SAAS;IACQ,YAAY,EAAnC,KAAK,CAAC,SAAS;IACD,IAAI,EAC1B;QAA2B,GAAG,EAAtB,MAAM;QACa,MAAM,EAAzB,MAAM;QACa,kBAAkB,EAArC,MAAM;QACa,KAAK,EAAxB,MAAM;KACd;IAAuB,iBAAiB,EAAhC,OAAO;IACgB,WAAW,EAAlC,KAAK,CAAC,SAAS;IACC,mBAAmB;IACpB,SAAS,GAAxB,MAAM;IACiB,QAAQ,EAA/B,KAAK,CAAC,SAAS;IACC,0BAA0B,GAA1C,OAAO;IACiB,eAAe,GAAvC,KAAK,CAAC,SAAS;CACvB,GAAU,KAAK,CAAC,YAAY,CA6M9B"}
@@ -0,0 +1,8 @@
1
+ export default FrameSaveBar;
2
+ /**
3
+ * FrameSaveBar component sisplays a save bar at the top of the screen with contextual save and discard actions.
4
+ * @param {Object} props.logo - Logo configuration.
5
+ * @returns {JSX.Element} The rendered FrameSaveBar component
6
+ */
7
+ declare function FrameSaveBar({ logo }: any): JSX.Element;
8
+ //# sourceMappingURL=FrameSaveBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameSaveBar.d.ts","sourceRoot":"","sources":["../../../components/FrameSaveBar.js"],"names":[],"mappings":";AAqDA;;;;GAIG;AACH,8CAFa,GAAG,CAAC,OAAO,CAkGvB"}
@@ -0,0 +1,39 @@
1
+ export default Grid;
2
+ /**
3
+ * Tailwind-based Grid component with customizable columns, gaps, alignment, and justification.
4
+ *
5
+ * @param {object} [props={}] - Props for the Grid component.
6
+ * @param {React.ReactNode} [props.children] - Content to render inside the Grid.
7
+ * @param {number|object} [props.columns] - Defines the number of columns in the grid. Can be a single number or an object with breakpoints as keys.
8
+ * @param {number|object} [props.gap] - Defines the gap between grid items. Can be a single number or an object with breakpoints as keys.
9
+ * @param {"stretch"|"start"|"end"|"center"} [props.justify="stretch"] - Horizontal alignment of the grid items.
10
+ * @param {"stretch"|"start"|"end"|"center"} [props.align="stretch"] - Vertical alignment of the grid items.
11
+ * @param {string} [props.className] - Additional class names to apply to the grid.
12
+ * @returns {JSX.Element} A div element representing the grid container.
13
+ */
14
+ declare function Grid(props?: {
15
+ children?: React.ReactNode;
16
+ columns?: number | object;
17
+ gap?: number | object;
18
+ justify?: "stretch" | "start" | "end" | "center";
19
+ align?: "stretch" | "start" | "end" | "center";
20
+ className?: string;
21
+ }): JSX.Element;
22
+ declare namespace Grid {
23
+ export { Cell };
24
+ }
25
+ /**
26
+ * Cell component for the Grid, allowing column span customization.
27
+ *
28
+ * @param {object} [props={}] - Props for the Cell component.
29
+ * @param {number|object} [props.columnSpan] - Defines the column span for the cell. Can be a single number or an object with breakpoints as keys.
30
+ * @param {React.ReactNode} [props.children] - Content to render inside the cell.
31
+ * @param {string} [props.className] - Additional class names to apply to the cell.
32
+ * @returns {JSX.Element} A div element representing a grid cell.
33
+ */
34
+ declare function Cell(props?: {
35
+ columnSpan?: number | object;
36
+ children?: React.ReactNode;
37
+ className?: string;
38
+ }): JSX.Element;
39
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../components/Grid.js"],"names":[],"mappings":";AAwBA;;;;;;;;;;;GAWG;AACH,8BARG;IAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;IACO,OAAO,GAA7B,MAAM,GAAC,MAAM;IACS,GAAG,GAAzB,MAAM,GAAC,MAAM;IAC4B,OAAO,GAAhD,SAAS,GAAC,OAAO,GAAC,KAAK,GAAC,QAAQ;IACS,KAAK,GAA9C,SAAS,GAAC,OAAO,GAAC,KAAK,GAAC,QAAQ;IACjB,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAyCvB;;;;AAED;;;;;;;;GAQG;AACH,8BALG;IAA8B,UAAU,GAAhC,MAAM,GAAC,MAAM;IACW,QAAQ,GAAhC,KAAK,CAAC,SAAS;IACA,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAwBvB"}
@@ -0,0 +1,36 @@
1
+ export default HorizontalStack;
2
+ /**
3
+ * HorizontalStack Component
4
+ *
5
+ * A flexible horizontal stack component with customizable spacing, alignment, and wrapping.
6
+ *
7
+ * @param {Object} [props={}] - Component props.
8
+ * @param {string} [props.as='div'] - The HTML element to render. Defaults to `div`.
9
+ * @param {React.ReactNode} [props.children] - Child elements to render inside the stack.
10
+ * @param {string} [props.gap] - Spacing between children. Options: 'none', '0', 'px', '0.5', '1', '2', '3', '4', '6', '8', '10'.
11
+ * @param {string} [props.id] - Optional ID for the component.
12
+ * @param {string} [props.className] - Additional custom class names to apply to the component.
13
+ * @param {string} [props.align='start'] - Horizontal alignment of children. Options: 'start', 'center', 'end'.
14
+ * @param {string} [props.blockAlign='start'] - Vertical alignment of children. Options: 'start', 'center', 'end'.
15
+ * @param {boolean} [props.wrap=true] - Whether children should wrap to the next line if necessary. Defaults to `true`.
16
+ * @param {Object} [restProps] - Additional props passed to the root element.
17
+ *
18
+ * @returns {JSX.Element} The rendered HorizontalStack component.
19
+ *
20
+ * @example
21
+ * <HorizontalStack gap="2" align="center" blockAlign="start" wrap={false}>
22
+ * <div>Item 1</div>
23
+ * <div>Item 2</div>
24
+ * </HorizontalStack>
25
+ */
26
+ declare function HorizontalStack(props?: {
27
+ as?: string;
28
+ children?: React.ReactNode;
29
+ gap?: string;
30
+ id?: string;
31
+ className?: string;
32
+ align?: string;
33
+ blockAlign?: string;
34
+ wrap?: boolean;
35
+ }): JSX.Element;
36
+ //# sourceMappingURL=HorizontalStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalStack.d.ts","sourceRoot":"","sources":["../../../components/HorizontalStack.js"],"names":[],"mappings":";AA0CA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,yCAnBG;IAAuB,EAAE,GAAjB,MAAM;IACkB,QAAQ,GAAhC,KAAK,CAAC,SAAS;IACA,GAAG,GAAlB,MAAM;IACS,EAAE,GAAjB,MAAM;IACS,SAAS,GAAxB,MAAM;IACS,KAAK,GAApB,MAAM;IACS,UAAU,GAAzB,MAAM;IACU,IAAI,GAApB,OAAO;CACf,GAEU,GAAG,CAAC,OAAO,CAwCvB"}
@@ -0,0 +1,43 @@
1
+ export default Icon;
2
+ /**
3
+ * A Component that renders an icon with customizable size, color, and display style, using Shopify Polaris icons.
4
+ * The icon adapts styling based on the provided props and supports a range of color schemes and sizes.
5
+ *
6
+ * @component
7
+ *
8
+ * @param {Object} props - The properties for configuring the Component.
9
+ * @param {Object} props.source - The source icon component from `@shopify/polaris-icons`. Should be a valid Polaris icon component.
10
+ * @param {('white'|'default'|'base'|'subdued'|'link'|'primary'|'alternate'|'successFgAlternate'|'success'|'fg-success'|'critical'|'fg-critical'|'criticalFgAlternate'|'warning'|'info'|'caution'|'attention'|'highlight'|'neutral'|'normal'|'disabled'|'active'|'btn-primary-icon'|'btn-secondary-icon'|'btn-plain-icon'|'btn-link-icon'|'btn-destructive-icon'|'btn-highlight-icon'|'inputFg'|'inputFgDisabled'|'success-icon'|'critical-icon'|'warning-icon'|'attention-icon'|'info-icon'|'highlight-icon'|'insight-icon'|'neutral-icon'|'success-alt-icon'|'critical-alt-icon'|'warning-alt-icon'|'attention-alt-icon'|'info-alt-icon'|'highlight-alt-icon'|'insight-alt-icon'|'neutral-alt-icon')} [props.color="default"] - The color variant for the icon.
11
+ * @param {('white'|'default'|'base'|'subdued'|'link'|'primary'|'alternate'|'success'|'critical'|'warning'|'info'|'caution'|'attention'|'highlight'|'neutral'|'normal'|'disabled'|'active'|'btn-primary-icon'|'btn-secondary-icon'|'btn-plain-icon'|'btn-link-icon'|'btn-destructive-icon'|'btn-highlight-icon'|'inputFg'|'inputFgDisabled'|'success-icon'|'critical-icon'|'warning-icon'|'attention-icon'|'info-icon'|'highlight-icon'|'insight-icon'|'neutral-icon'|'success-alt-icon'|'critical-alt-icon'|'warning-alt-icon'|'attention-alt-icon'|'info-alt-icon'|'highlight-alt-icon'|'insight-alt-icon'|'neutral-alt-icon')} [props.hoverColor] - The hover color variant for the icon.
12
+ * @param {('block'|'flex'|'inline'|'inline-block'|'inline-flex')} [props.display="block"] - Determines the display type for the icon container.
13
+ * @param {('xs'|'sm'|'default'|'lg'|'xl'|'2xl')} [props.size="default"] - Sets the icon size.
14
+ * - 'xs': Extra small (12px)
15
+ * - 'sm': Small (16px)
16
+ * - 'default': Medium (20px)
17
+ * - 'lg': Large (24px)
18
+ * - 'xl': Extra large (28px)
19
+ * - '2xl': Double extra large (32px)
20
+ * @param {boolean} [props.stroke=false] - Whether to use stroke styling instead of fill.
21
+ * @param {Function} [props.onClick] - Click handler for the icon.
22
+ * @param {string} [props.className] - Additional CSS classes to apply.
23
+ * @returns {JSX.Element} The rendered icon component with the specified styles.
24
+ *
25
+ * @example
26
+ * <Icon
27
+ * source={PolarisIcons.TickMinor}
28
+ * color="success"
29
+ * display="inline"
30
+ * size="lg"
31
+ * />
32
+ */
33
+ declare function Icon(props?: {
34
+ source: any;
35
+ color?: ("white" | "default" | "base" | "subdued" | "link" | "primary" | "alternate" | "successFgAlternate" | "success" | "fg-success" | "critical" | "fg-critical" | "criticalFgAlternate" | "warning" | "info" | "caution" | "attention" | "highlight" | "neutral" | "normal" | "disabled" | "active" | "btn-primary-icon" | "btn-secondary-icon" | "btn-plain-icon" | "btn-link-icon" | "btn-destructive-icon" | "btn-highlight-icon" | "inputFg" | "inputFgDisabled" | "success-icon" | "critical-icon" | "warning-icon" | "attention-icon" | "info-icon" | "highlight-icon" | "insight-icon" | "neutral-icon" | "success-alt-icon" | "critical-alt-icon" | "warning-alt-icon" | "attention-alt-icon" | "info-alt-icon" | "highlight-alt-icon" | "insight-alt-icon" | "neutral-alt-icon");
36
+ hoverColor?: ("white" | "default" | "base" | "subdued" | "link" | "primary" | "alternate" | "success" | "critical" | "warning" | "info" | "caution" | "attention" | "highlight" | "neutral" | "normal" | "disabled" | "active" | "btn-primary-icon" | "btn-secondary-icon" | "btn-plain-icon" | "btn-link-icon" | "btn-destructive-icon" | "btn-highlight-icon" | "inputFg" | "inputFgDisabled" | "success-icon" | "critical-icon" | "warning-icon" | "attention-icon" | "info-icon" | "highlight-icon" | "insight-icon" | "neutral-icon" | "success-alt-icon" | "critical-alt-icon" | "warning-alt-icon" | "attention-alt-icon" | "info-alt-icon" | "highlight-alt-icon" | "insight-alt-icon" | "neutral-alt-icon");
37
+ display?: ("block" | "flex" | "inline" | "inline-block" | "inline-flex");
38
+ size?: ("xs" | "sm" | "default" | "lg" | "xl" | "2xl");
39
+ stroke?: boolean;
40
+ onClick?: Function;
41
+ className?: string;
42
+ }): JSX.Element;
43
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../components/Icon.js"],"names":[],"mappings":";AA2MA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,8BAzBG;IAAsB,MAAM;IACgpB,KAAK,GAAzqB,CAAC,OAAO,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,WAAW,GAAC,oBAAoB,GAAC,SAAS,GAAC,YAAY,GAAC,UAAU,GAAC,aAAa,GAAC,qBAAqB,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,WAAW,GAAC,WAAW,GAAC,SAAS,GAAC,QAAQ,GAAC,UAAU,GAAC,QAAQ,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,gBAAgB,GAAC,eAAe,GAAC,sBAAsB,GAAC,oBAAoB,GAAC,SAAS,GAAC,iBAAiB,GAAC,cAAc,GAAC,eAAe,GAAC,cAAc,GAAC,gBAAgB,GAAC,WAAW,GAAC,gBAAgB,GAAC,cAAc,GAAC,cAAc,GAAC,kBAAkB,GAAC,mBAAmB,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,eAAe,GAAC,oBAAoB,GAAC,kBAAkB,GAAC,kBAAkB,CAAC;IAC7D,UAAU,GAAxmB,CAAC,OAAO,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,WAAW,GAAC,SAAS,GAAC,UAAU,GAAC,SAAS,GAAC,MAAM,GAAC,SAAS,GAAC,WAAW,GAAC,WAAW,GAAC,SAAS,GAAC,QAAQ,GAAC,UAAU,GAAC,QAAQ,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,gBAAgB,GAAC,eAAe,GAAC,sBAAsB,GAAC,oBAAoB,GAAC,SAAS,GAAC,iBAAiB,GAAC,cAAc,GAAC,eAAe,GAAC,cAAc,GAAC,gBAAgB,GAAC,WAAW,GAAC,gBAAgB,GAAC,cAAc,GAAC,cAAc,GAAC,kBAAkB,GAAC,mBAAmB,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,eAAe,GAAC,oBAAoB,GAAC,kBAAkB,GAAC,kBAAkB,CAAC;IACthB,OAAO,GAAtE,CAAC,OAAO,GAAC,MAAM,GAAC,QAAQ,GAAC,cAAc,GAAC,aAAa,CAAC;IACR,IAAI,GAAlD,CAAC,IAAI,GAAC,IAAI,GAAC,SAAS,GAAC,IAAI,GAAC,IAAI,GAAC,KAAK,CAAC;IAOrB,MAAM,GAAtB,OAAO;IACU,OAAO;IACT,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAqDvB"}