@heymantle/litho 0.0.15 → 0.0.16

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 (371) hide show
  1. package/AI_COMPONENTS_GUIDE.md +28 -15
  2. package/AI_INTEGRATION_GUIDE.md +3 -3
  3. package/AI_PATTERNS_GUIDE.md +59 -25
  4. package/COMPONENT_QUICK_REFERENCE.md +3 -3
  5. package/dist/cjs/components/ActionList.js +33 -25
  6. package/dist/cjs/components/AnnouncementBar.js +115 -18
  7. package/dist/cjs/components/AnnouncementCard.js +269 -0
  8. package/dist/cjs/components/AppProvider.js +15 -2
  9. package/dist/cjs/components/Autocomplete.js +58 -36
  10. package/dist/cjs/components/Badge.js +28 -14
  11. package/dist/cjs/components/Banner.js +37 -27
  12. package/dist/cjs/components/Box.js +50 -38
  13. package/dist/cjs/components/Button.js +338 -109
  14. package/dist/cjs/components/ButtonGroup.js +27 -14
  15. package/dist/cjs/components/Card.js +311 -143
  16. package/dist/cjs/components/Checkbox.js +55 -47
  17. package/dist/cjs/components/CheckboxCard.js +222 -0
  18. package/dist/cjs/components/CheckboxCardGroup.js +384 -0
  19. package/dist/cjs/components/ChoiceList.js +21 -11
  20. package/dist/cjs/components/Code.js +22 -8
  21. package/dist/cjs/components/Collapsible.js +24 -11
  22. package/dist/cjs/components/ColorField.js +163 -38
  23. package/dist/cjs/components/ContextualSaveBar.js +13 -6
  24. package/dist/cjs/components/DatePicker.js +48 -37
  25. package/dist/cjs/components/Disclosure.js +35 -22
  26. package/dist/cjs/components/Divider.js +82 -18
  27. package/dist/cjs/components/DropZone.js +111 -37
  28. package/dist/cjs/components/EmptyState.js +18 -6
  29. package/dist/cjs/components/Filters.js +84 -36
  30. package/dist/cjs/components/FooterHelp.js +14 -4
  31. package/dist/cjs/components/Form.js +13 -2
  32. package/dist/cjs/components/Frame.js +57 -22
  33. package/dist/cjs/components/FrameSaveBar.js +37 -6
  34. package/dist/cjs/components/Grid.js +31 -15
  35. package/dist/cjs/components/HorizontalStack.js +38 -25
  36. package/dist/cjs/components/Icon.js +683 -61
  37. package/dist/cjs/components/Image.js +35 -22
  38. package/dist/cjs/components/InlineError.js +19 -10
  39. package/dist/cjs/components/Label.js +21 -12
  40. package/dist/cjs/components/Layout.js +33 -24
  41. package/dist/cjs/components/LayoutSection.js +84 -22
  42. package/dist/cjs/components/Link.js +35 -22
  43. package/dist/cjs/components/List.js +28 -12
  44. package/dist/cjs/components/Listbox.js +53 -31
  45. package/dist/cjs/components/Loading.js +14 -2
  46. package/dist/cjs/components/Modal.js +22 -40
  47. package/dist/cjs/components/Navigation.js +107 -36
  48. package/dist/cjs/components/Page.js +44 -31
  49. package/dist/cjs/components/Pagination.js +20 -5
  50. package/dist/cjs/components/Pane.js +67 -4
  51. package/dist/cjs/components/Popover.js +37 -21
  52. package/dist/cjs/components/PopoverManager.js +14 -1
  53. package/dist/cjs/components/ProgressBar.js +28 -15
  54. package/dist/cjs/components/RadioButton.js +32 -24
  55. package/dist/cjs/components/RadioButtonCard.js +92 -67
  56. package/dist/cjs/components/RadioButtonCardGroup.js +379 -0
  57. package/dist/cjs/components/RangeSlider.js +34 -26
  58. package/dist/cjs/components/ResourceList.js +28 -14
  59. package/dist/cjs/components/Select.js +38 -26
  60. package/dist/cjs/components/SkeletonText.js +33 -18
  61. package/dist/cjs/components/Spinner.js +24 -12
  62. package/dist/cjs/components/Stack.js +131 -71
  63. package/dist/cjs/components/TabNavigation.js +27 -1
  64. package/dist/cjs/components/Table.js +58 -18
  65. package/dist/cjs/components/Tabs.js +52 -23
  66. package/dist/cjs/components/Tag.js +37 -16
  67. package/dist/cjs/components/Text.js +32 -18
  68. package/dist/cjs/components/TextField.js +119 -69
  69. package/dist/cjs/components/Thumbnail.js +25 -11
  70. package/dist/cjs/components/TimePicker.js +22 -1
  71. package/dist/cjs/components/Tip.js +140 -25
  72. package/dist/cjs/components/ToastNotification.js +107 -34
  73. package/dist/cjs/components/ToastProvider.js +13 -3
  74. package/dist/cjs/components/Tooltip.js +50 -41
  75. package/dist/cjs/components/TopBar.js +83 -9
  76. package/dist/cjs/components/VerticalStack.js +31 -16
  77. package/dist/cjs/index.js +24 -0
  78. package/dist/cjs/stories/Autocomplete.stories.js +10 -10
  79. package/dist/cjs/stories/Checkbox.stories.js +6 -8
  80. package/dist/cjs/stories/CheckboxCardGroup.stories.js +459 -0
  81. package/dist/cjs/stories/Collapsible.stories.js +11 -11
  82. package/dist/cjs/stories/ColorField.stories.js +2 -3
  83. package/dist/cjs/stories/ComplexExamples.stories.js +48 -77
  84. package/dist/cjs/stories/ContextualSaveBar.stories.js +1 -1
  85. package/dist/cjs/stories/Divider.stories.js +15 -16
  86. package/dist/cjs/stories/DropZone.stories.js +3 -3
  87. package/dist/cjs/stories/FooterHelp.stories.js +3 -4
  88. package/dist/cjs/stories/Form.stories.js +2 -4
  89. package/dist/cjs/stories/Grid.stories.js +24 -33
  90. package/dist/cjs/stories/Icon.stories.js +22 -23
  91. package/dist/cjs/stories/Image.stories.js +12 -15
  92. package/dist/cjs/stories/InlineError.stories.js +0 -1
  93. package/dist/cjs/stories/Layout.stories.js +96 -2
  94. package/dist/cjs/stories/LayoutSection.stories.js +13 -18
  95. package/dist/cjs/stories/List.stories.js +24 -28
  96. package/dist/cjs/stories/Listbox.stories.js +2 -2
  97. package/dist/cjs/stories/Loading.stories.js +21 -25
  98. package/dist/cjs/stories/Modal.stories.js +0 -1
  99. package/dist/cjs/stories/Pagination.stories.js +4 -4
  100. package/dist/cjs/stories/Pane.stories.js +10 -18
  101. package/dist/cjs/stories/Popover.stories.js +7 -7
  102. package/dist/cjs/stories/PopoverManager.stories.js +9 -9
  103. package/dist/cjs/stories/ProgressBar.stories.js +8 -8
  104. package/dist/cjs/stories/RadioButton.stories.js +2 -2
  105. package/dist/cjs/stories/RadioButtonCard.stories.js +2 -2
  106. package/dist/cjs/stories/RadioButtonCardGroup.stories.js +502 -0
  107. package/dist/cjs/stories/RangeSlider.stories.js +1 -3
  108. package/dist/cjs/stories/ResourceList.stories.js +13 -13
  109. package/dist/cjs/stories/Spinner.stories.js +9 -9
  110. package/dist/cjs/stories/Stack.stories.js +233 -51
  111. package/dist/cjs/stories/Tabs.stories.js +2 -2
  112. package/dist/cjs/stories/Tag.stories.js +1 -1
  113. package/dist/cjs/stories/Thumbnail.stories.js +17 -18
  114. package/dist/cjs/stories/TimePicker.stories.js +0 -5
  115. package/dist/cjs/stories/Tip.stories.js +1 -1
  116. package/dist/esm/components/ActionList.js +33 -25
  117. package/dist/esm/components/AnnouncementBar.js +115 -18
  118. package/dist/esm/components/AnnouncementCard.js +254 -0
  119. package/dist/esm/components/AppProvider.js +15 -2
  120. package/dist/esm/components/Autocomplete.js +58 -36
  121. package/dist/esm/components/Badge.js +28 -14
  122. package/dist/esm/components/Banner.js +37 -27
  123. package/dist/esm/components/Box.js +50 -38
  124. package/dist/esm/components/Button.js +338 -109
  125. package/dist/esm/components/ButtonGroup.js +27 -14
  126. package/dist/esm/components/Card.js +300 -140
  127. package/dist/esm/components/Checkbox.js +55 -47
  128. package/dist/esm/components/CheckboxCard.js +207 -0
  129. package/dist/esm/components/CheckboxCardGroup.js +370 -0
  130. package/dist/esm/components/ChoiceList.js +21 -11
  131. package/dist/esm/components/Code.js +22 -8
  132. package/dist/esm/components/Collapsible.js +24 -11
  133. package/dist/esm/components/ColorField.js +165 -40
  134. package/dist/esm/components/ContextualSaveBar.js +13 -6
  135. package/dist/esm/components/DatePicker.js +48 -37
  136. package/dist/esm/components/Disclosure.js +35 -22
  137. package/dist/esm/components/Divider.js +78 -20
  138. package/dist/esm/components/DropZone.js +111 -37
  139. package/dist/esm/components/EmptyState.js +18 -6
  140. package/dist/esm/components/Filters.js +84 -36
  141. package/dist/esm/components/FooterHelp.js +14 -4
  142. package/dist/esm/components/Form.js +13 -2
  143. package/dist/esm/components/Frame.js +57 -22
  144. package/dist/esm/components/FrameSaveBar.js +37 -6
  145. package/dist/esm/components/Grid.js +31 -15
  146. package/dist/esm/components/HorizontalStack.js +38 -25
  147. package/dist/esm/components/Icon.js +681 -62
  148. package/dist/esm/components/Image.js +35 -22
  149. package/dist/esm/components/InlineError.js +19 -10
  150. package/dist/esm/components/Label.js +21 -12
  151. package/dist/esm/components/Layout.js +58 -25
  152. package/dist/esm/components/LayoutSection.js +84 -22
  153. package/dist/esm/components/Link.js +35 -22
  154. package/dist/esm/components/List.js +28 -12
  155. package/dist/esm/components/Listbox.js +53 -31
  156. package/dist/esm/components/Loading.js +14 -2
  157. package/dist/esm/components/Modal.js +69 -41
  158. package/dist/esm/components/Navigation.js +107 -36
  159. package/dist/esm/components/Page.js +44 -31
  160. package/dist/esm/components/Pagination.js +20 -5
  161. package/dist/esm/components/Pane.js +67 -4
  162. package/dist/esm/components/Popover.js +37 -21
  163. package/dist/esm/components/PopoverManager.js +14 -1
  164. package/dist/esm/components/ProgressBar.js +28 -15
  165. package/dist/esm/components/RadioButton.js +32 -24
  166. package/dist/esm/components/RadioButtonCard.js +92 -67
  167. package/dist/esm/components/RadioButtonCardGroup.js +364 -0
  168. package/dist/esm/components/RangeSlider.js +34 -26
  169. package/dist/esm/components/ResourceList.js +28 -14
  170. package/dist/esm/components/Select.js +38 -26
  171. package/dist/esm/components/SkeletonText.js +33 -18
  172. package/dist/esm/components/Spinner.js +24 -12
  173. package/dist/esm/components/Stack.js +131 -71
  174. package/dist/esm/components/TabNavigation.js +27 -1
  175. package/dist/esm/components/Table.js +58 -18
  176. package/dist/esm/components/Tabs.js +52 -23
  177. package/dist/esm/components/Tag.js +37 -16
  178. package/dist/esm/components/Text.js +32 -18
  179. package/dist/esm/components/TextField.js +119 -69
  180. package/dist/esm/components/Thumbnail.js +25 -11
  181. package/dist/esm/components/TimePicker.js +22 -1
  182. package/dist/esm/components/Tip.js +140 -25
  183. package/dist/esm/components/ToastNotification.js +107 -34
  184. package/dist/esm/components/ToastProvider.js +13 -3
  185. package/dist/esm/components/Tooltip.js +50 -41
  186. package/dist/esm/components/TopBar.js +83 -9
  187. package/dist/esm/components/VerticalStack.js +31 -16
  188. package/dist/esm/index.js +6 -0
  189. package/dist/esm/stories/Autocomplete.stories.js +10 -10
  190. package/dist/esm/stories/Checkbox.stories.js +6 -8
  191. package/dist/esm/stories/CheckboxCardGroup.stories.js +421 -0
  192. package/dist/esm/stories/Collapsible.stories.js +11 -11
  193. package/dist/esm/stories/ColorField.stories.js +2 -3
  194. package/dist/esm/stories/ComplexExamples.stories.js +48 -77
  195. package/dist/esm/stories/ContextualSaveBar.stories.js +1 -1
  196. package/dist/esm/stories/Divider.stories.js +15 -16
  197. package/dist/esm/stories/DropZone.stories.js +3 -3
  198. package/dist/esm/stories/FooterHelp.stories.js +3 -4
  199. package/dist/esm/stories/Form.stories.js +2 -4
  200. package/dist/esm/stories/Grid.stories.js +24 -33
  201. package/dist/esm/stories/Icon.stories.js +22 -23
  202. package/dist/esm/stories/Image.stories.js +12 -15
  203. package/dist/esm/stories/InlineError.stories.js +0 -1
  204. package/dist/esm/stories/Layout.stories.js +93 -2
  205. package/dist/esm/stories/LayoutSection.stories.js +13 -18
  206. package/dist/esm/stories/List.stories.js +24 -28
  207. package/dist/esm/stories/Listbox.stories.js +2 -2
  208. package/dist/esm/stories/Loading.stories.js +21 -25
  209. package/dist/esm/stories/Modal.stories.js +0 -1
  210. package/dist/esm/stories/Pagination.stories.js +4 -4
  211. package/dist/esm/stories/Pane.stories.js +10 -18
  212. package/dist/esm/stories/Popover.stories.js +7 -7
  213. package/dist/esm/stories/PopoverManager.stories.js +9 -9
  214. package/dist/esm/stories/ProgressBar.stories.js +8 -8
  215. package/dist/esm/stories/RadioButton.stories.js +2 -2
  216. package/dist/esm/stories/RadioButtonCard.stories.js +2 -2
  217. package/dist/esm/stories/RadioButtonCardGroup.stories.js +461 -0
  218. package/dist/esm/stories/RangeSlider.stories.js +1 -3
  219. package/dist/esm/stories/ResourceList.stories.js +13 -13
  220. package/dist/esm/stories/Spinner.stories.js +9 -9
  221. package/dist/esm/stories/Stack.stories.js +224 -51
  222. package/dist/esm/stories/Tabs.stories.js +2 -2
  223. package/dist/esm/stories/Tag.stories.js +1 -1
  224. package/dist/esm/stories/Thumbnail.stories.js +17 -18
  225. package/dist/esm/stories/TimePicker.stories.js +0 -5
  226. package/dist/esm/stories/Tip.stories.js +1 -1
  227. package/dist/types/components/ActionList.d.ts +1 -31
  228. package/dist/types/components/ActionList.d.ts.map +1 -1
  229. package/dist/types/components/AnnouncementBar.d.ts +1 -19
  230. package/dist/types/components/AnnouncementBar.d.ts.map +1 -1
  231. package/dist/types/components/AnnouncementCard.d.ts +3 -0
  232. package/dist/types/components/AnnouncementCard.d.ts.map +1 -0
  233. package/dist/types/components/AppProvider.d.ts +14 -1
  234. package/dist/types/components/AppProvider.d.ts.map +1 -1
  235. package/dist/types/components/Autocomplete.d.ts +1 -71
  236. package/dist/types/components/Autocomplete.d.ts.map +1 -1
  237. package/dist/types/components/Badge.d.ts +1 -19
  238. package/dist/types/components/Badge.d.ts.map +1 -1
  239. package/dist/types/components/Banner.d.ts +1 -37
  240. package/dist/types/components/Banner.d.ts.map +1 -1
  241. package/dist/types/components/Box.d.ts +1 -68
  242. package/dist/types/components/Box.d.ts.map +1 -1
  243. package/dist/types/components/Button.d.ts +1 -131
  244. package/dist/types/components/Button.d.ts.map +1 -1
  245. package/dist/types/components/ButtonGroup.d.ts +1 -22
  246. package/dist/types/components/ButtonGroup.d.ts.map +1 -1
  247. package/dist/types/components/Card.d.ts +54 -59
  248. package/dist/types/components/Card.d.ts.map +1 -1
  249. package/dist/types/components/Checkbox.d.ts +1 -63
  250. package/dist/types/components/Checkbox.d.ts.map +1 -1
  251. package/dist/types/components/CheckboxCard.d.ts +3 -0
  252. package/dist/types/components/CheckboxCard.d.ts.map +1 -0
  253. package/dist/types/components/CheckboxCardGroup.d.ts +3 -0
  254. package/dist/types/components/CheckboxCardGroup.d.ts.map +1 -0
  255. package/dist/types/components/ChoiceList.d.ts +1 -42
  256. package/dist/types/components/ChoiceList.d.ts.map +1 -1
  257. package/dist/types/components/Code.d.ts +1 -26
  258. package/dist/types/components/Code.d.ts.map +1 -1
  259. package/dist/types/components/Collapsible.d.ts +1 -15
  260. package/dist/types/components/Collapsible.d.ts.map +1 -1
  261. package/dist/types/components/ColorField.d.ts +13 -34
  262. package/dist/types/components/ColorField.d.ts.map +1 -1
  263. package/dist/types/components/ContextualSaveBar.d.ts +13 -6
  264. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -1
  265. package/dist/types/components/DatePicker.d.ts +1 -64
  266. package/dist/types/components/DatePicker.d.ts.map +1 -1
  267. package/dist/types/components/Disclosure.d.ts +1 -25
  268. package/dist/types/components/Disclosure.d.ts.map +1 -1
  269. package/dist/types/components/Divider.d.ts +1 -19
  270. package/dist/types/components/Divider.d.ts.map +1 -1
  271. package/dist/types/components/DropZone.d.ts +1 -62
  272. package/dist/types/components/DropZone.d.ts.map +1 -1
  273. package/dist/types/components/EmptyState.d.ts +1 -50
  274. package/dist/types/components/EmptyState.d.ts.map +1 -1
  275. package/dist/types/components/Filters.d.ts +13 -68
  276. package/dist/types/components/Filters.d.ts.map +1 -1
  277. package/dist/types/components/FooterHelp.d.ts +14 -4
  278. package/dist/types/components/FooterHelp.d.ts.map +1 -1
  279. package/dist/types/components/Form.d.ts +13 -2
  280. package/dist/types/components/Form.d.ts.map +1 -1
  281. package/dist/types/components/Frame.d.ts +15 -36
  282. package/dist/types/components/Frame.d.ts.map +1 -1
  283. package/dist/types/components/FrameSaveBar.d.ts +3 -6
  284. package/dist/types/components/FrameSaveBar.d.ts.map +1 -1
  285. package/dist/types/components/Grid.d.ts +5 -21
  286. package/dist/types/components/Grid.d.ts.map +1 -1
  287. package/dist/types/components/HorizontalStack.d.ts +1 -34
  288. package/dist/types/components/HorizontalStack.d.ts.map +1 -1
  289. package/dist/types/components/Icon.d.ts +1 -41
  290. package/dist/types/components/Icon.d.ts.map +1 -1
  291. package/dist/types/components/Image.d.ts +1 -43
  292. package/dist/types/components/Image.d.ts.map +1 -1
  293. package/dist/types/components/InlineError.d.ts +1 -20
  294. package/dist/types/components/InlineError.d.ts.map +1 -1
  295. package/dist/types/components/Label.d.ts +1 -26
  296. package/dist/types/components/Label.d.ts.map +1 -1
  297. package/dist/types/components/Layout.d.ts +24 -15
  298. package/dist/types/components/Layout.d.ts.map +1 -1
  299. package/dist/types/components/LayoutSection.d.ts +1 -19
  300. package/dist/types/components/LayoutSection.d.ts.map +1 -1
  301. package/dist/types/components/Link.d.ts +1 -37
  302. package/dist/types/components/Link.d.ts.map +1 -1
  303. package/dist/types/components/List.d.ts +5 -17
  304. package/dist/types/components/List.d.ts.map +1 -1
  305. package/dist/types/components/Listbox.d.ts +1 -32
  306. package/dist/types/components/Listbox.d.ts.map +1 -1
  307. package/dist/types/components/Loading.d.ts +14 -2
  308. package/dist/types/components/Loading.d.ts.map +1 -1
  309. package/dist/types/components/Modal.d.ts +26 -35
  310. package/dist/types/components/Modal.d.ts.map +1 -1
  311. package/dist/types/components/Navigation.d.ts +1 -25
  312. package/dist/types/components/Navigation.d.ts.map +1 -1
  313. package/dist/types/components/Page.d.ts +1 -57
  314. package/dist/types/components/Page.d.ts.map +1 -1
  315. package/dist/types/components/Pagination.d.ts +13 -3
  316. package/dist/types/components/Pagination.d.ts.map +1 -1
  317. package/dist/types/components/Pane.d.ts +55 -3
  318. package/dist/types/components/Pane.d.ts.map +1 -1
  319. package/dist/types/components/Popover.d.ts +5 -37
  320. package/dist/types/components/Popover.d.ts.map +1 -1
  321. package/dist/types/components/PopoverManager.d.ts.map +1 -1
  322. package/dist/types/components/ProgressBar.d.ts +1 -22
  323. package/dist/types/components/ProgressBar.d.ts.map +1 -1
  324. package/dist/types/components/RadioButton.d.ts +1 -37
  325. package/dist/types/components/RadioButton.d.ts.map +1 -1
  326. package/dist/types/components/RadioButtonCard.d.ts +1 -39
  327. package/dist/types/components/RadioButtonCard.d.ts.map +1 -1
  328. package/dist/types/components/RadioButtonCardGroup.d.ts +3 -0
  329. package/dist/types/components/RadioButtonCardGroup.d.ts.map +1 -0
  330. package/dist/types/components/RangeSlider.d.ts +1 -42
  331. package/dist/types/components/RangeSlider.d.ts.map +1 -1
  332. package/dist/types/components/ResourceList.d.ts +5 -30
  333. package/dist/types/components/ResourceList.d.ts.map +1 -1
  334. package/dist/types/components/Select.d.ts +1 -46
  335. package/dist/types/components/Select.d.ts.map +1 -1
  336. package/dist/types/components/SkeletonText.d.ts +1 -26
  337. package/dist/types/components/SkeletonText.d.ts.map +1 -1
  338. package/dist/types/components/Spinner.d.ts +1 -16
  339. package/dist/types/components/Spinner.d.ts.map +1 -1
  340. package/dist/types/components/Stack.d.ts +1 -47
  341. package/dist/types/components/Stack.d.ts.map +1 -1
  342. package/dist/types/components/TabNavigation.d.ts.map +1 -1
  343. package/dist/types/components/Table.d.ts +13 -58
  344. package/dist/types/components/Table.d.ts.map +1 -1
  345. package/dist/types/components/Tabs.d.ts +3 -41
  346. package/dist/types/components/Tabs.d.ts.map +1 -1
  347. package/dist/types/components/Tag.d.ts +1 -24
  348. package/dist/types/components/Tag.d.ts.map +1 -1
  349. package/dist/types/components/Text.d.ts +1 -30
  350. package/dist/types/components/Text.d.ts.map +1 -1
  351. package/dist/types/components/TextField.d.ts +1 -109
  352. package/dist/types/components/TextField.d.ts.map +1 -1
  353. package/dist/types/components/Thumbnail.d.ts +1 -16
  354. package/dist/types/components/Thumbnail.d.ts.map +1 -1
  355. package/dist/types/components/TimePicker.d.ts +28 -1
  356. package/dist/types/components/TimePicker.d.ts.map +1 -1
  357. package/dist/types/components/Tip.d.ts +1 -21
  358. package/dist/types/components/Tip.d.ts.map +1 -1
  359. package/dist/types/components/ToastNotification.d.ts +1 -34
  360. package/dist/types/components/ToastNotification.d.ts.map +1 -1
  361. package/dist/types/components/ToastProvider.d.ts +13 -3
  362. package/dist/types/components/ToastProvider.d.ts.map +1 -1
  363. package/dist/types/components/Tooltip.d.ts +1 -54
  364. package/dist/types/components/Tooltip.d.ts.map +1 -1
  365. package/dist/types/components/TopBar.d.ts +1 -19
  366. package/dist/types/components/TopBar.d.ts.map +1 -1
  367. package/dist/types/components/VerticalStack.d.ts +1 -25
  368. package/dist/types/components/VerticalStack.d.ts.map +1 -1
  369. package/dist/types/index.d.ts +6 -0
  370. package/index.css +76 -14
  371. package/package.json +4 -3
@@ -1,49 +1,20 @@
1
+ export function useCard(): {
2
+ nested: boolean;
3
+ };
1
4
  export default Card;
2
- /**
3
- * Card component for creating styled containers with optional headers, actions, and children.
4
- *
5
- * @component
6
- * @param {Object} props - Props for the Card component.
7
- * @param {boolean} [props.allowOverflow=false] - Allows content to overflow the Card boundaries.
8
- * @param {React.ReactNode} [props.children] - Child elements to render inside the Card.
9
- * @param {boolean} [props.hideOnPrint] - Hides the Card when printing.
10
- * @param {string|React.ReactNode} [props.title] - Title of the Card.
11
- * @param {string} [props.titleVariant='headingMd'] - Typography variant for the Card title.
12
- * @param {string} [props.description] - Description of the Card.
13
- * @param {React.ElementType|Object} [props.icon] - Icon to render alongside the title.
14
- * @param {React.ReactNode|import("./Tooltip").TooltipContentObject} [props.tooltip] - Tooltip content for the title.
15
- * @param {string} [props.tooltipPreferredPosition='above'] - Preferred position for the tooltip.
16
- * @param {boolean} [props.outlined=false] - Applies outlined styling to the Card.
17
- * @param {string} [props.shadow='default'] - Applies a shadow to the Card. Can be 'default', or 'none'.
18
- * @param {boolean} [props.highlighted=false] - Applies highlighted styling to the Card.
19
- * @param {boolean} [props.subdued=false] - Applies subdued styling to the Card.
20
- * @param {boolean} [props.alternate=false] - Applies alternate styling to the Card.
21
- * @param {boolean} [props.padded=false] - Adds padding to the Card body.
22
- * @param {boolean} [props.loading=false] - Shows a loading spinner in place of the title.
23
- * @param {boolean} [props.paddedHalf=false] - Adds half padding to the Card body.
24
- * @param {boolean} [props.removeHeaderBottomPadding=false] - Removes bottom padding from the header.
25
- * @param {Function} [props.onClick] - Click handler for the Card, making it clickable.
26
- * @param {Object} [props.emptyState={}] - Configures the empty state of the Card.
27
- * @param {Object} [props.action] - Action button or configuration to render in the Card header.
28
- * @param {string} [props.className] - Additional classes to apply to the Card.
29
- * @param {string} [props.headerClassName] - Additional classes to apply to the Card header.
30
- * @param {React.ReactNode} [props.accessory] - Accessory element to render in the header.
31
- * @param {boolean} [props.fullWidthOnMobile=true] - Makes the Card full width on mobile.
32
- * @param {boolean} [props.roundedOnMobile=false] - Makes the Card rounded on mobile.
33
- * @returns {React.ReactElement} The rendered Card component.
34
- */
35
- declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, title, titleVariant, description, icon, tooltip, tooltipPreferredPosition, outlined, highlighted, subdued, alternate, padded, loading, paddedHalf, removeHeaderBottomPadding, onClick, emptyState, action, className, headerClassName, accessory, fullHeightBody, fullWidthOnMobile, shadow, }: {
5
+ declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, title, titleVariant, description, descriptionVariant, icon, tooltip, tooltipPreferredPosition, outlined, highlighted, subdued, alternate, padded, loading, paddedHalf, removeHeaderBottomPadding, onClick, emptyState, action, className, headerClassName, accessory, fullHeightBody, fullWidthOnMobile, shadow, nested: nestedProp, }: {
36
6
  allowOverflow?: boolean;
37
- children?: React.ReactNode;
38
- hideOnPrint?: boolean;
39
- title?: string | React.ReactNode;
7
+ roundedOnMobile: any;
8
+ children: any;
9
+ hideOnPrint: any;
10
+ title: any;
40
11
  titleVariant?: string;
41
- description?: string;
42
- icon?: React.ElementType | any;
43
- tooltip?: React.ReactNode | import("./Tooltip").TooltipContentObject;
12
+ description: any;
13
+ descriptionVariant?: string;
14
+ icon: any;
15
+ tooltip: any;
44
16
  tooltipPreferredPosition?: string;
45
17
  outlined?: boolean;
46
- shadow?: string;
47
18
  highlighted?: boolean;
48
19
  subdued?: boolean;
49
20
  alternate?: boolean;
@@ -51,20 +22,25 @@ declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, t
51
22
  loading?: boolean;
52
23
  paddedHalf?: boolean;
53
24
  removeHeaderBottomPadding?: boolean;
54
- onClick?: Function;
55
- emptyState?: any;
56
- action?: any;
57
- className?: string;
58
- headerClassName?: string;
59
- accessory?: React.ReactNode;
60
- fullWidthOnMobile?: boolean;
61
- roundedOnMobile?: boolean;
62
- }): React.ReactElement;
25
+ onClick: any;
26
+ emptyState?: {};
27
+ action: any;
28
+ className: any;
29
+ headerClassName: any;
30
+ accessory: any;
31
+ fullHeightBody?: boolean;
32
+ fullWidthOnMobile: any;
33
+ shadow?: string;
34
+ nested: any;
35
+ }): import("react/jsx-runtime").JSX.Element;
63
36
  declare namespace Card {
64
37
  /**
65
- * Section component for dividing the Card into segments.
38
+ * @component Card.Section
39
+ *
40
+ * @usage
41
+ * - DO: Divide a Card into logical content segments.
42
+ * - DON'T: Nest sections within sections.
66
43
  *
67
- * @component
68
44
  * @param {Object} props - Props for the Section component.
69
45
  * @param {string|React.ReactNode} [props.title] - Title of the Section.
70
46
  * @param {string} [props.titleVariant='headingSm'] - Typography variant for the Section title.
@@ -82,12 +58,13 @@ declare namespace Card {
82
58
  * @param {React.ElementType|Object} [props.icon] - Icon to render alongside the title.
83
59
  * @param {string} [props.tooltip] - Tooltip content for the title.
84
60
  * @param {string} [props.description] - Description text for the Section.
61
+ * @param {string} [props.descriptionVariant='bodyMd'] - Typography variant for the Section description.
85
62
  * @param {React.ReactNode} [props.accessory] - Accessory element to render in the Section header.
86
63
  * @param {Object} [props.emptyState={}] - Configures the empty state of the Section.
87
64
  *
88
65
  * @returns {React.ReactElement} The rendered Section component.
89
66
  */
90
- function Section({ title, titleVariant, action, children, padded, paddedHalf, isFirst, cardHasHeader, borderBottom, borderTop, subdued, headerGap, gap, icon, tooltip, description, accessory, emptyState, className, sectionBodyClassName, }: {
67
+ function Section({ title, titleVariant, action, children, padded, paddedHalf, isFirst, cardHasHeader, borderBottom, borderTop, subdued, headerGap, gap, icon, tooltip, description, descriptionVariant, accessory, emptyState, className, sectionBodyClassName, }: {
91
68
  title?: string | React.ReactNode;
92
69
  titleVariant?: string;
93
70
  action?: any;
@@ -104,6 +81,7 @@ declare namespace Card {
104
81
  icon?: React.ElementType | any;
105
82
  tooltip?: string;
106
83
  description?: string;
84
+ descriptionVariant?: string;
107
85
  accessory?: React.ReactNode;
108
86
  emptyState?: any;
109
87
  }): React.ReactElement;
@@ -111,9 +89,14 @@ declare namespace Card {
111
89
  let displayName: string;
112
90
  }
113
91
  /**
114
- * ClickableRow component for creating clickable rows inside the Card.
92
+ * @component Card.ClickableRow
93
+ *
94
+ * @usage
95
+ * - DO: Use for rows that navigate or trigger actions.
96
+ *
97
+ * @accessibility
98
+ * - Renders as a clickable element; ensure it is keyboard accessible and has a clear action label.
115
99
  *
116
- * @component
117
100
  * @param {Object} props - Props for the ClickableRow component.
118
101
  * @param {React.ReactNode} [props.children] - Child elements to render inside the row.
119
102
  * @param {Function} [props.onClick] - Click handler for the row.
@@ -121,21 +104,29 @@ declare namespace Card {
121
104
  * @param {string} [props.url] - URL to open when the row is clicked.
122
105
  * @param {string} [props.className] - Additional classes to apply to the row.
123
106
  * @param {boolean} [props.disabled=false] - Disables interaction with the row.
107
+ * @param {string} [props.accessibilityLabel] - Accessible label for the row (aria-label).
124
108
  *
125
109
  * @returns {React.ReactElement} The rendered ClickableRow component.
126
110
  */
127
- function ClickableRow({ children, onClick, id, url, disabled, className }: {
111
+ function ClickableRow({ children, onClick, id, url, disabled, className, accessibilityLabel }: {
128
112
  children?: React.ReactNode;
129
113
  onClick?: Function;
130
114
  id?: string;
131
115
  url?: string;
132
116
  className?: string;
133
117
  disabled?: boolean;
118
+ accessibilityLabel?: string;
134
119
  }): React.ReactElement;
135
120
  namespace ClickableRow {
136
121
  let displayName_1: string;
137
122
  export { displayName_1 as displayName };
138
123
  }
124
+ /**
125
+ * Rows container component for grouping multiple Card.Row elements.
126
+ *
127
+ * @usage
128
+ * - DO: Use to group multiple `Card.Row` elements with consistent spacing.
129
+ */
139
130
  function Rows({ children }: {
140
131
  children: any;
141
132
  }): import("react/jsx-runtime").JSX.Element;
@@ -144,9 +135,11 @@ declare namespace Card {
144
135
  export { displayName_2 as displayName };
145
136
  }
146
137
  /**
147
- * Row component for creating clickable rows inside the Card.
138
+ * @component Card.Row
139
+ *
140
+ * @usage
141
+ * - DO: Use for individual data rows within `Card.Rows`.
148
142
  *
149
- * @component
150
143
  * @param {Object} props - Props for the Row component.
151
144
  * @param {React.ReactNode} [props.children] - Child elements to render inside the row.
152
145
  * @param {Function} [props.onClick] - Click handler for the row.
@@ -154,16 +147,18 @@ declare namespace Card {
154
147
  * @param {string} [props.url] - URL to open when the row is clicked.
155
148
  * @param {string} [props.className] - Additional classes to apply to the row.
156
149
  * @param {boolean} [props.disabled=false] - Disables interaction with the row.
150
+ * @param {string} [props.accessibilityLabel] - Accessible label for the row (aria-label).
157
151
  *
158
152
  * @returns {React.ReactElement} The rendered Row component.
159
153
  */
160
- function Row({ children, onClick, id, url, disabled, className }: {
154
+ function Row({ children, onClick, id, url, disabled, className, accessibilityLabel }: {
161
155
  children?: React.ReactNode;
162
156
  onClick?: Function;
163
157
  id?: string;
164
158
  url?: string;
165
159
  className?: string;
166
160
  disabled?: boolean;
161
+ accessibilityLabel?: string;
167
162
  }): React.ReactElement;
168
163
  namespace Row {
169
164
  let displayName_3: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../components/Card.js"],"names":[],"mappings":";AA8IA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,+WA7BG;IAAwB,aAAa,GAA7B,OAAO;IACiB,QAAQ,GAAhC,KAAK,CAAC,SAAS;IACC,WAAW,GAA3B,OAAO;IACwB,KAAK,GAApC,MAAM,GAAC,KAAK,CAAC,SAAS;IACP,YAAY,GAA3B,MAAM;IACS,WAAW,GAA1B,MAAM;IAC2B,IAAI,GAArC,KAAK,CAAC,WAAW,MAAO;IACyC,OAAO,GAAxE,KAAK,CAAC,SAAS,GAAC,OAAO,WAAW,EAAE,oBAAoB;IACzC,wBAAwB,GAAvC,MAAM;IACU,QAAQ,GAAxB,OAAO;IACQ,MAAM,GAArB,MAAM;IACU,WAAW,GAA3B,OAAO;IACS,OAAO,GAAvB,OAAO;IACS,SAAS,GAAzB,OAAO;IACS,MAAM,GAAtB,OAAO;IACS,OAAO,GAAvB,OAAO;IACS,UAAU,GAA1B,OAAO;IACS,yBAAyB,GAAzC,OAAO;IACU,OAAO;IACT,UAAU;IACV,MAAM;IACN,SAAS,GAAxB,MAAM;IACS,eAAe,GAA9B,MAAM;IACkB,SAAS,GAAjC,KAAK,CAAC,SAAS;IACC,iBAAiB,GAAjC,OAAO;IACS,eAAe,GAA/B,OAAO;CACf,GAAU,KAAK,CAAC,YAAY,CAoJ9B;;IA2FD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IAEH,+OAtBG;QAAuC,KAAK,GAApC,MAAM,GAAC,KAAK,CAAC,SAAS;QACP,YAAY,GAA3B,MAAM;QACS,MAAM;QACG,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACC,MAAM,GAAtB,OAAO;QACS,UAAU,GAA1B,OAAO;QACS,OAAO,GAAvB,OAAO;QACS,aAAa,GAA7B,OAAO;QACS,YAAY,GAA5B,OAAO;QACS,SAAS,GAAzB,OAAO;QACS,OAAO,GAAvB,OAAO;QACQ,SAAS,GAAxB,MAAM;QACS,GAAG,GAAlB,MAAM;QAC2B,IAAI,GAArC,KAAK,CAAC,WAAW,MAAO;QACT,OAAO,GAAtB,MAAM;QACS,WAAW,GAA1B,MAAM;QACkB,SAAS,GAAjC,KAAK,CAAC,SAAS;QACA,UAAU;KAEjC,GAAU,KAAK,CAAC,YAAY,CA0F9B;;;;IAYD;;;;;;;;;;;;;OAaG;IACH,2EATG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;KAEf,GAAU,KAAK,CAAC,YAAY,CAgB9B;;;;;IAGD;;gDAMC;;;;;IAGD;;;;;;;;;;;;;OAaG;IACH,kEATG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;KAEf,GAAU,KAAK,CAAC,YAAY,CAgB9B;;;;;;kBA5lBiB,OAAO"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../components/Card.js"],"names":[],"mappings":"AA6sBO;;EAAmD;;AAhgB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAwKC;;IA2FD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IAEH,mQAvBG;QAAuC,KAAK,GAApC,MAAM,GAAC,KAAK,CAAC,SAAS;QACP,YAAY,GAA3B,MAAM;QACS,MAAM;QACG,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACC,MAAM,GAAtB,OAAO;QACS,UAAU,GAA1B,OAAO;QACS,OAAO,GAAvB,OAAO;QACS,aAAa,GAA7B,OAAO;QACS,YAAY,GAA5B,OAAO;QACS,SAAS,GAAzB,OAAO;QACS,OAAO,GAAvB,OAAO;QACQ,SAAS,GAAxB,MAAM;QACS,GAAG,GAAlB,MAAM;QAC2B,IAAI,GAArC,KAAK,CAAC,WAAW,MAAO;QACT,OAAO,GAAtB,MAAM;QACS,WAAW,GAA1B,MAAM;QACS,kBAAkB,GAAjC,MAAM;QACkB,SAAS,GAAjC,KAAK,CAAC,SAAS;QACA,UAAU;KAEjC,GAAU,KAAK,CAAC,YAAY,CA2F9B;;;;IAkBD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,+FAVG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;QACQ,kBAAkB,GAAjC,MAAM;KAEd,GAAU,KAAK,CAAC,YAAY,CA8B9B;;;;;IAGD;;;;;OAKG;IACH;;gDAMC;;;;;IAGD;;;;;;;;;;;;;;;;OAgBG;IACH,sFAVG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;QACQ,kBAAkB,GAAjC,MAAM;KAEd,GAAU,KAAK,CAAC,YAAY,CAgC9B;;;;;;kBAxsBiB,OAAO"}
@@ -1,65 +1,3 @@
1
1
  export default Checkbox;
2
- /**
3
- * Checkbox Component
4
- *
5
- * A custom checkbox component with support for labels, help text, and extensive styling using Tailwind Variants (tv).
6
- *
7
- * @component
8
- *
9
- * @param {Object} props - Props for the Checkbox component.
10
- * @param {string|React.ReactNode} [props.label] - The label for the checkbox. Can be a string or a React element (e.g., text with a badge).
11
- * @param {boolean} [props.labelHidden=false] - If true, hides the label visually but keeps it available for screen readers.
12
- * @param {string} [props.id] - The unique identifier for the checkbox input.
13
- * @param {string} [props.name] - The name attribute for the checkbox input.
14
- * @param {string} [props.value] - The value attribute for the checkbox input.
15
- * @param {string} [props.error] - An error message associated with the checkbox, if any.
16
- * @param {boolean} [props.checked=false] - Indicates whether the checkbox is checked.
17
- * @param {boolean} [props.disabled=false] - Indicates whether the checkbox is disabled.
18
- * @param {string} [props.helpText] - Additional descriptive text for the checkbox.
19
- * @param {React.ReactNode|import("./Tooltip").TooltipContentObject} [props.tooltip] - Tooltip content for the checkbox label.
20
- * @param {boolean} [props.indeterminate=false] - Indicates whether the checkbox is in an indeterminate state (mixed/partial selection).
21
- * @param {string} [props.className] - Additional CSS classes to apply to the checkbox container.
22
- * @param {function} [props.onChange] - Callback function called when the checkbox state changes.
23
- * @param {function} [props.onFocus] - Callback function called when the checkbox gains focus.
24
- * @param {function} [props.onBlur] - Callback function called when the checkbox loses focus.
25
- *
26
- * @returns {JSX.Element} The rendered Checkbox component.
27
- *
28
- * @example
29
- * // Basic usage with string label
30
- * <Checkbox
31
- * label="Accept Terms"
32
- * id="accept-terms"
33
- * name="terms"
34
- * checked={true}
35
- * disabled={false}
36
- * helpText="You must accept the terms to proceed."
37
- * onChange={(e) => console.log('Checkbox changed:', e.target.checked)}
38
- * />
39
- *
40
- * @example
41
- * // With React element label (e.g., text with badge)
42
- * <Checkbox
43
- * label={<Stack horizontal gap="xs" blockAlign="center"><span>Premium Feature</span><Badge>Pro</Badge></Stack>}
44
- * checked={false}
45
- * onChange={(checked) => console.log('Checkbox changed:', checked)}
46
- * />
47
- */
48
- declare function Checkbox(props?: {
49
- label?: string | React.ReactNode;
50
- labelHidden?: boolean;
51
- id?: string;
52
- name?: string;
53
- value?: string;
54
- error?: string;
55
- checked?: boolean;
56
- disabled?: boolean;
57
- helpText?: string;
58
- tooltip?: React.ReactNode | import("./Tooltip").TooltipContentObject;
59
- indeterminate?: boolean;
60
- className?: string;
61
- onChange?: Function;
62
- onFocus?: Function;
63
- onBlur?: Function;
64
- }): JSX.Element;
2
+ declare function Checkbox(props?: {}): import("react/jsx-runtime").JSX.Element;
65
3
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/Checkbox.js"],"names":[],"mappings":";AAuDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,kCAvCG;IAAuC,KAAK,GAApC,MAAM,GAAC,KAAK,CAAC,SAAS;IACN,WAAW,GAA3B,OAAO;IACQ,EAAE,GAAjB,MAAM;IACS,IAAI,GAAnB,MAAM;IACS,KAAK,GAApB,MAAM;IACS,KAAK,GAApB,MAAM;IACU,OAAO,GAAvB,OAAO;IACS,QAAQ,GAAxB,OAAO;IACQ,QAAQ,GAAvB,MAAM;IAC2D,OAAO,GAAxE,KAAK,CAAC,SAAS,GAAC,OAAO,WAAW,EAAE,oBAAoB;IACxC,aAAa,GAA7B,OAAO;IACQ,SAAS,GAAxB,MAAM;IACW,QAAQ;IACR,OAAO;IACP,MAAM;CAE/B,GAAU,GAAG,CAAC,OAAO,CAiIvB"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/Checkbox.js"],"names":[],"mappings":";AA8GA,+EA0GC"}
@@ -0,0 +1,3 @@
1
+ export default CheckboxCard;
2
+ declare function CheckboxCard(props?: {}): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CheckboxCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxCard.d.ts","sourceRoot":"","sources":["../../../components/CheckboxCard.js"],"names":[],"mappings":";AA8FA,mFA4HC"}
@@ -0,0 +1,3 @@
1
+ export default CheckboxCardGroup;
2
+ declare function CheckboxCardGroup(props?: {}): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CheckboxCardGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxCardGroup.d.ts","sourceRoot":"","sources":["../../../components/CheckboxCardGroup.js"],"names":[],"mappings":";AAiIA,wFAiIC"}
@@ -24,46 +24,5 @@ export type ChoiceListItem = {
24
24
  * @property {boolean} [disabled=false] - Whether the choice is disabled.
25
25
  * @property {React.ReactNode} [renderChildren] - A function that returns a React node to render as children of the choice.
26
26
  */
27
- /**
28
- * A ChoiceList component for rendering a list of selectable options.
29
- *
30
- * @component
31
- *
32
- * @param {Object} props - The properties object.
33
- * @param {string} [props.title] - The title of the choice list.
34
- * @param {boolean} [props.titleHidden=false] - Whether to hide the title visually.
35
- * @param {boolean} [props.allowMultiple=false] - Whether multiple selections are allowed.
36
- * @param {Array<ChoiceListItem>} props.choices - The available choices for selection.
37
- * @param {Array} props.selected - The currently selected values.
38
- * @param {Function} props.onChange - Callback when the selection changes. Receives the updated array of selected values.
39
- * @param {string} [props.error] - Error message to display, if any.
40
- * @param {boolean} [props.disabled=false] - Whether the entire choice list is disabled.
41
- * @param {string} [props.name] - The name attribute for the choice inputs (used for grouping radio buttons).
42
- *
43
- * @returns {JSX.Element} A rendered choice list component.
44
- *
45
- * @example
46
- * <ChoiceList
47
- * title="Select your options"
48
- * allowMultiple={true}
49
- * choices={[
50
- * { value: "option1", label: "Option 1" },
51
- * { value: "option2", label: "Option 2" },
52
- * ]}
53
- * selected={["option1"]}
54
- * onChange={(selected) => console.log(selected)}
55
- * error="Please select at least one option."
56
- * />
57
- */
58
- declare function ChoiceList(props?: {
59
- title?: string;
60
- titleHidden?: boolean;
61
- allowMultiple?: boolean;
62
- choices: Array<ChoiceListItem>;
63
- selected: any[];
64
- onChange: Function;
65
- error?: string;
66
- disabled?: boolean;
67
- name?: string;
68
- }): JSX.Element;
27
+ declare function ChoiceList(props?: {}): import("react/jsx-runtime").JSX.Element;
69
28
  //# sourceMappingURL=ChoiceList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceList.d.ts","sourceRoot":"","sources":["../../../components/ChoiceList.js"],"names":[],"mappings":";;;;;WAgBc,MAAM;;;;WACN,MAAM;;;;eACN,OAAO;;;;qBACP,KAAK,CAAC,SAAS;;AAL7B;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,oCAzBG;IAAuB,KAAK,GAApB,MAAM;IACU,WAAW,GAA3B,OAAO;IACS,aAAa,GAA7B,OAAO;IACsB,OAAO,EAApC,KAAK,CAAC,cAAc,CAAC;IACR,QAAQ;IACL,QAAQ;IACT,KAAK,GAApB,MAAM;IACU,QAAQ,GAAxB,OAAO;IACQ,IAAI,GAAnB,MAAM;CAEd,GAAU,GAAG,CAAC,OAAO,CAmFvB"}
1
+ {"version":3,"file":"ChoiceList.d.ts","sourceRoot":"","sources":["../../../components/ChoiceList.js"],"names":[],"mappings":";;;;;WA0Dc,MAAM;;;;WACN,MAAM;;;;eACN,OAAO;;;;qBACP,KAAK,CAAC,SAAS;;AAL7B;;;;;;GAMG;AAEH,iFAoEC"}
@@ -1,28 +1,3 @@
1
1
  export default Code;
2
- /**
3
- * A code component that renders code blocks with consistent styling.
4
- *
5
- * @param {Object} props - Properties to customize the code component.
6
- * @param {string} [props.className] - Additional CSS class names.
7
- * @param {Function} [props.onCopy] - Function to handle copy action.
8
- * @param {React.ReactNode} props.children - The code content to be displayed.
9
- * @returns {JSX.Element} Rendered code block with applied styles.
10
- *
11
- * @example
12
- * <Code>
13
- * {`const example = "code";`}
14
- * </Code>
15
- *
16
- * @example
17
- * <Code onCopy={() => {
18
- * navigator.clipboard.writeText(children);
19
- * }}>
20
- * {`const example = "code";`}
21
- * </Code>
22
- */
23
- declare function Code(props?: {
24
- className?: string;
25
- onCopy?: Function;
26
- children: React.ReactNode;
27
- }): JSX.Element;
2
+ declare function Code(props?: {}): import("react/jsx-runtime").JSX.Element;
28
3
  //# sourceMappingURL=Code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../components/Code.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAjBG;IAAuB,SAAS,GAAxB,MAAM;IACW,MAAM;IACA,QAAQ,EAA/B,KAAK,CAAC,SAAS;CACvB,GAAU,GAAG,CAAC,OAAO,CAmEvB"}
1
+ {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../components/Code.js"],"names":[],"mappings":";AAmDA,2EAqDC"}
@@ -1,17 +1,3 @@
1
1
  export default Collapsible;
2
- /**
3
- * Collapsible Component
4
- *
5
- * @component
6
- * @param {Object} props - Properties passed to component.
7
- * @param {boolean} props.open - If true, the collapsible is open (expanded); otherwise, it's closed (collapsed).
8
- * @param {React.ReactNode} props.children - Content displayed inside the collapsible component.
9
- * @param {string} [props.className] - Additional CSS classes to append to the generated styles.
10
- * @returns {JSX.Element} A collapsible container that shows or hides its children based on the `open` state.
11
- */
12
- declare function Collapsible(props?: {
13
- open: boolean;
14
- children: React.ReactNode;
15
- className?: string;
16
- }): JSX.Element;
2
+ declare function Collapsible(props?: {}): import("react/jsx-runtime").JSX.Element;
17
3
  //# sourceMappingURL=Collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../components/Collapsible.js"],"names":[],"mappings":";AAYA;;;;;;;;;GASG;AAEH,qCANG;IAAuB,IAAI,EAAnB,OAAO;IACgB,QAAQ,EAA/B,KAAK,CAAC,SAAS;IACA,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAWvB"}
1
+ {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../components/Collapsible.js"],"names":[],"mappings":";AAoCA,kFAQC"}
@@ -1,36 +1,15 @@
1
1
  export default ColorField;
2
- /**
3
- * ColorField component provides a UI for selecting colors using the SketchPicker.
4
- * It displays the currently selected color and allows toggling a color picker popover.
5
- * Useful for choosing solid colors in forms or design tools.
6
- *
7
- * @component
8
- * @example
9
- * <ColorField
10
- * label="Primary Color"
11
- * name="primary"
12
- * value="#ff0000"
13
- * onChange={(newColor) => setColor(newColor)}
14
- * zIndexOverride={100}
15
- * presetColors={['#ff0000', '#00ff00', '#0000ff']}
16
- * />
17
- *
18
- * @param {Object} props - Component props
19
- * @param {string} props.label - The label displayed above the color value
20
- * @param {string} props.name - The name associated with the color field, used as a key
21
- * @param {string} props.value - The currently selected color value; can be a hex string or CSS variable
22
- * @param {function} props.onChange - Callback function that receives the new color value when changed
23
- * @param {number} [props.zIndexOverride] - Optional z-index value to override the default popover z-index
24
- * @param {string[]} [props.presetColors=[]] - Optional array of preset colors shown in the picker
25
- *
26
- * @returns {JSX.Element} A color picker field with label and current value preview
27
- */
28
- declare function ColorField({ label, name, value: _value, onChange, zIndexOverride, presetColors, }: {
29
- label: string;
30
- name: string;
31
- value: string;
32
- onChange: Function;
33
- zIndexOverride?: number;
34
- presetColors?: string[];
35
- }): JSX.Element;
2
+ declare function ColorField({ label, name, value: _value, onChange, zIndexOverride, presetColors, variant, placeholder, helpText, error, disabled, }: {
3
+ label: any;
4
+ name: any;
5
+ value: any;
6
+ onChange: any;
7
+ zIndexOverride: any;
8
+ presetColors?: any[];
9
+ variant?: string;
10
+ placeholder: any;
11
+ helpText: any;
12
+ error: any;
13
+ disabled: any;
14
+ }): import("react/jsx-runtime").JSX.Element;
36
15
  //# sourceMappingURL=ColorField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../components/ColorField.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,qGAVG;IAAsB,KAAK,EAAnB,MAAM;IACQ,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACU,QAAQ;IACT,cAAc,GAA7B,MAAM;IACW,YAAY,GAA7B,MAAM,EAAE;CAEhB,GAAU,GAAG,CAAC,OAAO,CA8DvB"}
1
+ {"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../components/ColorField.js"],"names":[],"mappings":";AAyEA;;;;;;;;;;;;4CAiIC"}
@@ -1,13 +1,20 @@
1
1
  export default ContextualSaveBar;
2
2
  /**
3
- * ContextualSaveBar Component
3
+ * @component ContextualSaveBar
4
4
  *
5
- * This component manages and displays a global contextual save bar with custom save and discard actions.
6
- * It uses the `FormContext` to control the visibility and configuration of the save bar.
7
- * When mounted, it sets the provided message, save action, and discard action.
8
- * When unmounted, it cleans up by resetting these values.
5
+ * @description A floating save bar that appears when a form has unsaved changes, providing save and discard actions.
6
+ *
7
+ * @usage
8
+ * - DO: Display at the top of a page when a form has unsaved changes with save/discard actions.
9
+ * - DON'T: Use inside a modal (use modal's own actions).
10
+ *
11
+ * @accessibility
12
+ * - Save bar should be keyboard accessible; ensure save and discard buttons have clear labels.
13
+ *
14
+ * @alternative
15
+ * - If you need a save bar integrated with the Frame layout, use `FrameSaveBar`.
16
+ * - If you need form-level submit, use `Form`.
9
17
  *
10
- * @component
11
18
  * @param {Object} props - Component properties.
12
19
  * @param {Object} [props.saveAction] - The action for the "Save" button. Contains `onAction`, `loading`, `accessibilityLabel`, and `disabled`.
13
20
  * @param {Object} [props.discardAction] - The action for the "Discard" button. Contains `onAction`, `loading`, `accessibilityLabel`, and `disabled`.
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualSaveBar.d.ts","sourceRoot":"","sources":["../../../components/ContextualSaveBar.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;GAcG;AACH,4EALG;IAAuB,UAAU;IACV,aAAa;IACb,OAAO,GAAtB,MAAM;CACd,GAAU,IAAI,CAqChB"}
1
+ {"version":3,"file":"ContextualSaveBar.d.ts","sourceRoot":"","sources":["../../../components/ContextualSaveBar.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,4EALG;IAAuB,UAAU;IACV,aAAa;IACb,OAAO,GAAtB,MAAM;CACd,GAAU,IAAI,CAqChB"}
@@ -1,66 +1,3 @@
1
1
  export default DatePicker;
2
- /**
3
- * DatePicker component for selecting dates and date ranges.
4
- *
5
- * @param {Object} props - Component properties.
6
- * @param {string} [props.label] - Label for the DatePicker.
7
- * @param {Object|null} [props.labelAction] - Action button for the label.
8
- * @param {function} [props.onBlur] - Callback function for when the field loses focus.
9
- * @param {string} [props.placeholder="Select date..."] - Placeholder text.
10
- * @param {string} [props.displayFormat] - Date format for displaying the value.
11
- * @param {string} [props.helpText] - Help text displayed under the field.
12
- * @param {JSX.Element|null} [props.suffix=null] - Icon or text displayed at the end of the input.
13
- * @param {boolean} [props.isClearable=false] - Whether the input can be cleared.
14
- * @param {string|null} [props.tooltip] - Tooltip text for the field.
15
- * @param {string} [props.locale="en-US"] - Locale used for formatting.
16
- * @param {Object|string|Date|null} [props.value] - Current value of the DatePicker.
17
- * @param {boolean} [props.allowRange=false] - Whether date range selection is enabled.
18
- * @param {JSX.Element|null} [props.activator] - Custom activator for the popover.
19
- * @param {Date|string|null} [props.disableDatesAfter] - Dates after this value are disabled.
20
- * @param {Date|string|null} [props.disableDatesBefore] - Dates before this value are disabled.
21
- * @param {function} [props.onChange] - Callback function called when the date changes.
22
- * @param {boolean} [props.multiMonth=false] - Whether multiple months are shown.
23
- * @param {boolean} [props.disabled=false] - Whether the DatePicker is disabled.
24
- * @param {boolean} [props.showTimePicker=false] - Whether a time picker is displayed.
25
- * @param {boolean} [props.autoFocus=false] - Whether the input is focused automatically.
26
- * @param {Date|null} [props.maxDate] - Maximum selectable date.
27
- * @param {Date|null} [props.minDate] - Minimum selectable date.
28
- * @param {boolean} [props.inline=false] - Whether the calendar is displayed inline.
29
- * @param {string} [props.preferredAlignment="left"] - Alignment of the popover.
30
- * @param {string} [props.preferredPosition="below"] - Position of the popover.
31
- * @param {boolean} [props.includeHourlyPresets=false] - Whether hourly (last 30 minutes, last hour) presets are included.
32
- * @param {Array} [props.customPresets=[]] - Custom presets to include.
33
- * @param {JSX.Element|null} [props.footer] - An optional footer component to display at the bottom of the DatePicker.
34
- * @returns {JSX.Element} The rendered DatePicker component.
35
- */
36
- declare function DatePicker(props?: {
37
- label?: string;
38
- labelAction?: any | null;
39
- onBlur?: Function;
40
- placeholder?: string;
41
- displayFormat?: string;
42
- helpText?: string;
43
- suffix?: JSX.Element | null;
44
- isClearable?: boolean;
45
- tooltip?: string | null;
46
- locale?: string;
47
- value?: any | string | Date | null;
48
- allowRange?: boolean;
49
- activator?: JSX.Element | null;
50
- disableDatesAfter?: Date | string | null;
51
- disableDatesBefore?: Date | string | null;
52
- onChange?: Function;
53
- multiMonth?: boolean;
54
- disabled?: boolean;
55
- showTimePicker?: boolean;
56
- autoFocus?: boolean;
57
- maxDate?: Date | null;
58
- minDate?: Date | null;
59
- inline?: boolean;
60
- preferredAlignment?: string;
61
- preferredPosition?: string;
62
- includeHourlyPresets?: boolean;
63
- customPresets?: any[];
64
- footer?: JSX.Element | null;
65
- }): JSX.Element;
2
+ declare function DatePicker(props?: {}): import("react/jsx-runtime").JSX.Element;
66
3
  //# sourceMappingURL=DatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/DatePicker.js"],"names":[],"mappings":";AAqJA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,oCA/BG;IAAuB,KAAK,GAApB,MAAM;IACc,WAAW,GAA/B,MAAO,IAAI;IACM,MAAM;IACR,WAAW,GAA1B,MAAM;IACS,aAAa,GAA5B,MAAM;IACS,QAAQ,GAAvB,MAAM;IACmB,MAAM,GAA/B,GAAG,CAAC,OAAO,GAAC,IAAI;IACA,WAAW,GAA3B,OAAO;IACa,OAAO,GAA3B,MAAM,GAAC,IAAI;IACI,MAAM,GAArB,MAAM;IAC0B,KAAK,GAArC,MAAO,MAAM,GAAC,IAAI,GAAC,IAAI;IACP,UAAU,GAA1B,OAAO;IACkB,SAAS,GAAlC,GAAG,CAAC,OAAO,GAAC,IAAI;IACS,iBAAiB,GAA1C,IAAI,GAAC,MAAM,GAAC,IAAI;IACS,kBAAkB,GAA3C,IAAI,GAAC,MAAM,GAAC,IAAI;IACC,QAAQ;IACT,UAAU,GAA1B,OAAO;IACS,QAAQ,GAAxB,OAAO;IACS,cAAc,GAA9B,OAAO;IACS,SAAS,GAAzB,OAAO;IACW,OAAO,GAAzB,IAAI,GAAC,IAAI;IACS,OAAO,GAAzB,IAAI,GAAC,IAAI;IACO,MAAM,GAAtB,OAAO;IACQ,kBAAkB,GAAjC,MAAM;IACS,iBAAiB,GAAhC,MAAM;IACU,oBAAoB,GAApC,OAAO;IACO,aAAa;IACF,MAAM,GAA/B,GAAG,CAAC,OAAO,GAAC,IAAI;CACxB,GAAU,GAAG,CAAC,OAAO,CAgVvB"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/DatePicker.js"],"names":[],"mappings":";AA+LA,iFA6UC"}
@@ -1,27 +1,3 @@
1
1
  export default Disclosure;
2
- /**
3
- * Renders a Disclosure component that displays content with disclosure styling.
4
- *
5
- * @component
6
- * @param {Object} props - Component properties.
7
- * @param {React.ReactNode} props.children - The content to display within the disclosure.
8
- * @param {string} [props.className] - Additional CSS classes to apply to the disclosure.
9
- * @returns {JSX.Element} A styled `<div>` element serving as a disclosure container.
10
- *
11
- * @example
12
- * // Renders disclosure content
13
- * <Disclosure>
14
- * <Text>This is disclosure content</Text>
15
- * </Disclosure>
16
- *
17
- * @example
18
- * // Renders disclosure content with additional classes
19
- * <Disclosure className="mt-4">
20
- * <Text>This is disclosure content with margin</Text>
21
- * </Disclosure>
22
- */
23
- declare function Disclosure(props?: {
24
- children: React.ReactNode;
25
- className?: string;
26
- }): JSX.Element;
2
+ declare function Disclosure(props?: {}): import("react/jsx-runtime").JSX.Element;
27
3
  //# sourceMappingURL=Disclosure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../components/Disclosure.js"],"names":[],"mappings":";AA4BA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oCAhBG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;IACA,SAAS,GAAxB,MAAM;CACd,GAAU,GAAG,CAAC,OAAO,CAiCvB"}
1
+ {"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../components/Disclosure.js"],"names":[],"mappings":";AA+DA,iFAmBC"}
@@ -1,21 +1,3 @@
1
1
  export default Divider;
2
- /**
3
- * Renders a divider element with customizable color variants.
4
- *
5
- * @component
6
- * @param {Object} props - Component properties.
7
- * @param {'default' | 'subdued'} [props.color='default'] - The color variant to apply to the divider.
8
- * @returns {JSX.Element} A styled `<div>` element serving as a divider.
9
- *
10
- * @example
11
- * // Renders a default color divider
12
- * <Divider />
13
- *
14
- * @example
15
- * // Renders a subdued color divider
16
- * <Divider color="subdued" />
17
- */
18
- declare function Divider(props?: {
19
- color?: "default" | "subdued";
20
- }): JSX.Element;
2
+ declare function Divider(props?: {}): import("react/jsx-runtime").JSX.Element;
21
3
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../components/Divider.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;GAeG;AAEH,iCAZG;IAAsC,KAAK,GAAnC,SAAS,GAAG,SAAS;CAC7B,GAAU,GAAG,CAAC,OAAO,CAqBvB"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../components/Divider.js"],"names":[],"mappings":";AAwDA,8EAkCC"}