@powerhousedao/design-system 4.1.0-dev.56 → 4.1.0-dev.58

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 (1215) hide show
  1. package/dist/setupTests.d.ts +2 -0
  2. package/dist/setupTests.d.ts.map +1 -0
  3. package/dist/setupTests.js +2 -0
  4. package/dist/setupTests.js.map +1 -0
  5. package/dist/src/connect/components/account-popover/account-popover-login.js +1 -1
  6. package/dist/src/connect/components/account-popover/account-popover-login.js.map +1 -1
  7. package/dist/src/connect/components/account-popover/account-popover-user.js +2 -2
  8. package/dist/src/connect/components/account-popover/account-popover-user.js.map +1 -1
  9. package/dist/src/connect/components/account-popover/account-popover.d.ts.map +1 -1
  10. package/dist/src/connect/components/account-popover/account-popover.js +1 -1
  11. package/dist/src/connect/components/account-popover/account-popover.js.map +1 -1
  12. package/dist/src/connect/components/account-popover/account-popover.stories.d.ts +14 -0
  13. package/dist/src/connect/components/account-popover/account-popover.stories.d.ts.map +1 -0
  14. package/dist/src/connect/components/account-popover/account-popover.stories.js +27 -0
  15. package/dist/src/connect/components/account-popover/account-popover.stories.js.map +1 -0
  16. package/dist/src/connect/components/animated-loader/animated-loader.d.ts +1 -1
  17. package/dist/src/connect/components/animated-loader/animated-loader.d.ts.map +1 -1
  18. package/dist/src/connect/components/animated-loader/animated-loader.js +2 -2
  19. package/dist/src/connect/components/animated-loader/animated-loader.js.map +1 -1
  20. package/dist/src/connect/components/animated-loader/animated-loader.stories.d.ts +8 -0
  21. package/dist/src/connect/components/animated-loader/animated-loader.stories.d.ts.map +1 -0
  22. package/dist/src/connect/components/animated-loader/animated-loader.stories.js +18 -0
  23. package/dist/src/connect/components/animated-loader/animated-loader.stories.js.map +1 -0
  24. package/dist/src/connect/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  25. package/dist/src/connect/components/breadcrumbs/breadcrumbs.js +1 -2
  26. package/dist/src/connect/components/breadcrumbs/breadcrumbs.js.map +1 -1
  27. package/dist/src/connect/components/combobox/combobox.js +1 -1
  28. package/dist/src/connect/components/combobox/combobox.js.map +1 -1
  29. package/dist/src/connect/components/combobox/combobox.stories.d.ts +11 -0
  30. package/dist/src/connect/components/combobox/combobox.stories.d.ts.map +1 -0
  31. package/dist/src/connect/components/combobox/combobox.stories.js +66 -0
  32. package/dist/src/connect/components/combobox/combobox.stories.js.map +1 -0
  33. package/dist/src/connect/components/cookie-banner/cookie-banner.d.ts.map +1 -1
  34. package/dist/src/connect/components/cookie-banner/cookie-banner.js +2 -2
  35. package/dist/src/connect/components/cookie-banner/cookie-banner.js.map +1 -1
  36. package/dist/src/connect/components/cookie-banner/cookie-banner.stories.d.ts +32 -0
  37. package/dist/src/connect/components/cookie-banner/cookie-banner.stories.d.ts.map +1 -0
  38. package/dist/src/connect/components/cookie-banner/cookie-banner.stories.js +34 -0
  39. package/dist/src/connect/components/cookie-banner/cookie-banner.stories.js.map +1 -0
  40. package/dist/src/connect/components/default-editor-loader/default-editor-loader.d.ts +1 -1
  41. package/dist/src/connect/components/default-editor-loader/default-editor-loader.d.ts.map +1 -1
  42. package/dist/src/connect/components/default-editor-loader/default-editor-loader.js +1 -1
  43. package/dist/src/connect/components/default-editor-loader/default-editor-loader.js.map +1 -1
  44. package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.d.ts +6 -0
  45. package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.d.ts.map +1 -0
  46. package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.js +12 -0
  47. package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.js.map +1 -0
  48. package/dist/src/connect/components/disclosure/disclosure.js +1 -1
  49. package/dist/src/connect/components/disclosure/disclosure.js.map +1 -1
  50. package/dist/src/connect/components/disclosure/disclosure.stories.d.ts +10 -0
  51. package/dist/src/connect/components/disclosure/disclosure.stories.d.ts.map +1 -0
  52. package/dist/src/connect/components/disclosure/disclosure.stories.js +21 -0
  53. package/dist/src/connect/components/disclosure/disclosure.stories.js.map +1 -0
  54. package/dist/src/connect/components/divider/divider.d.ts +1 -1
  55. package/dist/src/connect/components/divider/divider.d.ts.map +1 -1
  56. package/dist/src/connect/components/document-timeline/components/h-divider.d.ts.map +1 -1
  57. package/dist/src/connect/components/document-timeline/components/h-divider.js +2 -3
  58. package/dist/src/connect/components/document-timeline/components/h-divider.js.map +1 -1
  59. package/dist/src/connect/components/document-timeline/components/h-divider.stories.d.ts +23 -0
  60. package/dist/src/connect/components/document-timeline/components/h-divider.stories.d.ts.map +1 -0
  61. package/dist/src/connect/components/document-timeline/components/h-divider.stories.js +61 -0
  62. package/dist/src/connect/components/document-timeline/components/h-divider.stories.js.map +1 -0
  63. package/dist/src/connect/components/document-timeline/components/timeline-bar.d.ts.map +1 -1
  64. package/dist/src/connect/components/document-timeline/components/timeline-bar.js +2 -5
  65. package/dist/src/connect/components/document-timeline/components/timeline-bar.js.map +1 -1
  66. package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.d.ts +23 -0
  67. package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.d.ts.map +1 -0
  68. package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.js +57 -0
  69. package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.js.map +1 -0
  70. package/dist/src/connect/components/document-timeline/document-timeline.d.ts.map +1 -1
  71. package/dist/src/connect/components/document-timeline/document-timeline.js +2 -4
  72. package/dist/src/connect/components/document-timeline/document-timeline.js.map +1 -1
  73. package/dist/src/connect/components/document-timeline/document-timeline.stories.d.ts +16 -0
  74. package/dist/src/connect/components/document-timeline/document-timeline.stories.d.ts.map +1 -0
  75. package/dist/src/connect/components/document-timeline/document-timeline.stories.js +488 -0
  76. package/dist/src/connect/components/document-timeline/document-timeline.stories.js.map +1 -0
  77. package/dist/src/connect/components/document-toolbar/document-toolbar.d.ts.map +1 -1
  78. package/dist/src/connect/components/document-toolbar/document-toolbar.js +1 -4
  79. package/dist/src/connect/components/document-toolbar/document-toolbar.js.map +1 -1
  80. package/dist/src/connect/components/document-toolbar/document-toolbar.stories.d.ts +13 -0
  81. package/dist/src/connect/components/document-toolbar/document-toolbar.stories.d.ts.map +1 -0
  82. package/dist/src/connect/components/document-toolbar/document-toolbar.stories.js +77 -0
  83. package/dist/src/connect/components/document-toolbar/document-toolbar.stories.js.map +1 -0
  84. package/dist/src/connect/components/drop-zone/drop-zone.js +3 -1
  85. package/dist/src/connect/components/drop-zone/drop-zone.js.map +1 -1
  86. package/dist/src/connect/components/drop-zone/drop-zone.stories.d.ts +8 -0
  87. package/dist/src/connect/components/drop-zone/drop-zone.stories.d.ts.map +1 -0
  88. package/dist/src/connect/components/drop-zone/drop-zone.stories.js +44 -0
  89. package/dist/src/connect/components/drop-zone/drop-zone.stories.js.map +1 -0
  90. package/dist/src/connect/components/drop-zone/upload-file-list-container.js +1 -0
  91. package/dist/src/connect/components/drop-zone/upload-file-list-container.js.map +1 -1
  92. package/dist/src/connect/components/dropdown-menu/dropdown-menu.js +1 -1
  93. package/dist/src/connect/components/dropdown-menu/dropdown-menu.js.map +1 -1
  94. package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.d.ts +10 -0
  95. package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.d.ts.map +1 -0
  96. package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.js +46 -0
  97. package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.js.map +1 -0
  98. package/dist/src/connect/components/editor-action-buttons/editor-action-buttons.js +1 -1
  99. package/dist/src/connect/components/editor-action-buttons/editor-action-buttons.js.map +1 -1
  100. package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.d.ts +6 -0
  101. package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.d.ts.map +1 -0
  102. package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.js +8 -0
  103. package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.js.map +1 -0
  104. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js +1 -1
  105. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js.map +1 -1
  106. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.d.ts +6 -0
  107. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.d.ts.map +1 -0
  108. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.js +8 -0
  109. package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.js.map +1 -0
  110. package/dist/src/connect/components/ens-avatar/ens-avatar.js +1 -1
  111. package/dist/src/connect/components/ens-avatar/ens-avatar.js.map +1 -1
  112. package/dist/src/connect/components/ens-avatar/ens-avatar.stories.d.ts +11 -0
  113. package/dist/src/connect/components/ens-avatar/ens-avatar.stories.d.ts.map +1 -0
  114. package/dist/src/connect/components/ens-avatar/ens-avatar.stories.js +19 -0
  115. package/dist/src/connect/components/ens-avatar/ens-avatar.stories.js.map +1 -0
  116. package/dist/src/connect/components/file-item/file-item.d.ts +1 -1
  117. package/dist/src/connect/components/file-item/file-item.d.ts.map +1 -1
  118. package/dist/src/connect/components/file-item/file-item.js +9 -11
  119. package/dist/src/connect/components/file-item/file-item.js.map +1 -1
  120. package/dist/src/connect/components/file-item/file-item.stories.d.ts +8 -0
  121. package/dist/src/connect/components/file-item/file-item.stories.d.ts.map +1 -0
  122. package/dist/src/connect/components/file-item/file-item.stories.js +40 -0
  123. package/dist/src/connect/components/file-item/file-item.stories.js.map +1 -0
  124. package/dist/src/connect/components/folder-item/folder-item.d.ts +1 -1
  125. package/dist/src/connect/components/folder-item/folder-item.d.ts.map +1 -1
  126. package/dist/src/connect/components/folder-item/folder-item.js +9 -10
  127. package/dist/src/connect/components/folder-item/folder-item.js.map +1 -1
  128. package/dist/src/connect/components/folder-item/folder-item.stories.d.ts +8 -0
  129. package/dist/src/connect/components/folder-item/folder-item.stories.d.ts.map +1 -0
  130. package/dist/src/connect/components/folder-item/folder-item.stories.js +31 -0
  131. package/dist/src/connect/components/folder-item/folder-item.stories.js.map +1 -0
  132. package/dist/src/connect/components/footer/footer-link.js +1 -1
  133. package/dist/src/connect/components/footer/footer-link.js.map +1 -1
  134. package/dist/src/connect/components/footer/footer.js +1 -1
  135. package/dist/src/connect/components/footer/footer.js.map +1 -1
  136. package/dist/src/connect/components/footer/footer.stories.d.ts +16 -0
  137. package/dist/src/connect/components/footer/footer.stories.d.ts.map +1 -0
  138. package/dist/src/connect/components/footer/footer.stories.js +18 -0
  139. package/dist/src/connect/components/footer/footer.stories.js.map +1 -0
  140. package/dist/src/connect/components/form/add-local-drive-form.d.ts.map +1 -1
  141. package/dist/src/connect/components/form/add-local-drive-form.js +3 -4
  142. package/dist/src/connect/components/form/add-local-drive-form.js.map +1 -1
  143. package/dist/src/connect/components/form/add-local-drive-form.stories.d.ts +10 -0
  144. package/dist/src/connect/components/form/add-local-drive-form.stories.d.ts.map +1 -0
  145. package/dist/src/connect/components/form/add-local-drive-form.stories.js +39 -0
  146. package/dist/src/connect/components/form/add-local-drive-form.stories.js.map +1 -0
  147. package/dist/src/connect/components/form/add-remote-drive-form.d.ts +1 -2
  148. package/dist/src/connect/components/form/add-remote-drive-form.d.ts.map +1 -1
  149. package/dist/src/connect/components/form/add-remote-drive-form.js +4 -5
  150. package/dist/src/connect/components/form/add-remote-drive-form.js.map +1 -1
  151. package/dist/src/connect/components/form/add-remote-drive-form.stories.d.ts +10 -0
  152. package/dist/src/connect/components/form/add-remote-drive-form.stories.d.ts.map +1 -0
  153. package/dist/src/connect/components/form/add-remote-drive-form.stories.js +30 -0
  154. package/dist/src/connect/components/form/add-remote-drive-form.stories.js.map +1 -0
  155. package/dist/src/connect/components/form/drive-settings-form.d.ts.map +1 -1
  156. package/dist/src/connect/components/form/drive-settings-form.js +3 -4
  157. package/dist/src/connect/components/form/drive-settings-form.js.map +1 -1
  158. package/dist/src/connect/components/form/drive-settings-form.stories.d.ts +10 -0
  159. package/dist/src/connect/components/form/drive-settings-form.stories.d.ts.map +1 -0
  160. package/dist/src/connect/components/form/drive-settings-form.stories.js +28 -0
  161. package/dist/src/connect/components/form/drive-settings-form.stories.js.map +1 -0
  162. package/dist/src/connect/components/form/inputs/app-form-input.d.ts +4 -4
  163. package/dist/src/connect/components/form/inputs/app-form-input.d.ts.map +1 -1
  164. package/dist/src/connect/components/form/inputs/app-form-input.js +2 -3
  165. package/dist/src/connect/components/form/inputs/app-form-input.js.map +1 -1
  166. package/dist/src/connect/components/form/inputs/available-offline-toggle.d.ts +1 -1
  167. package/dist/src/connect/components/form/inputs/available-offline-toggle.d.ts.map +1 -1
  168. package/dist/src/connect/components/form/inputs/available-offline-toggle.js +1 -1
  169. package/dist/src/connect/components/form/inputs/available-offline-toggle.js.map +1 -1
  170. package/dist/src/connect/components/form/inputs/delete-drive.d.ts.map +1 -1
  171. package/dist/src/connect/components/form/inputs/delete-drive.js +2 -3
  172. package/dist/src/connect/components/form/inputs/delete-drive.js.map +1 -1
  173. package/dist/src/connect/components/form/inputs/drive-app.d.ts +1 -2
  174. package/dist/src/connect/components/form/inputs/drive-app.d.ts.map +1 -1
  175. package/dist/src/connect/components/form/inputs/drive-app.js +1 -1
  176. package/dist/src/connect/components/form/inputs/drive-app.js.map +1 -1
  177. package/dist/src/connect/components/form/inputs/drive-name-input.d.ts +1 -1
  178. package/dist/src/connect/components/form/inputs/drive-name-input.d.ts.map +1 -1
  179. package/dist/src/connect/components/form/inputs/drive-name-input.js +1 -2
  180. package/dist/src/connect/components/form/inputs/drive-name-input.js.map +1 -1
  181. package/dist/src/connect/components/form/inputs/drive-name.js +1 -1
  182. package/dist/src/connect/components/form/inputs/drive-name.js.map +1 -1
  183. package/dist/src/connect/components/form/inputs/location-info.d.ts +1 -2
  184. package/dist/src/connect/components/form/inputs/location-info.d.ts.map +1 -1
  185. package/dist/src/connect/components/form/inputs/location-info.js +1 -1
  186. package/dist/src/connect/components/form/inputs/location-info.js.map +1 -1
  187. package/dist/src/connect/components/form/inputs/sharing-type-form-input.d.ts +2 -2
  188. package/dist/src/connect/components/form/inputs/sharing-type-form-input.d.ts.map +1 -1
  189. package/dist/src/connect/components/form/inputs/sharing-type-form-input.js +2 -3
  190. package/dist/src/connect/components/form/inputs/sharing-type-form-input.js.map +1 -1
  191. package/dist/src/connect/components/form-input/form-input.stories.d.ts +27 -0
  192. package/dist/src/connect/components/form-input/form-input.stories.d.ts.map +1 -0
  193. package/dist/src/connect/components/form-input/form-input.stories.js +67 -0
  194. package/dist/src/connect/components/form-input/form-input.stories.js.map +1 -0
  195. package/dist/src/connect/components/home-screen/home-background-image.js +2 -2
  196. package/dist/src/connect/components/home-screen/home-background-image.js.map +1 -1
  197. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.d.ts.map +1 -1
  198. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.js +1 -2
  199. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.js.map +1 -1
  200. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.d.ts +12 -0
  201. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.d.ts.map +1 -0
  202. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.js +17 -0
  203. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.js.map +1 -0
  204. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.js +1 -1
  205. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.js.map +1 -1
  206. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.d.ts +17 -0
  207. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.d.ts.map +1 -0
  208. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.js +36 -0
  209. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.js.map +1 -0
  210. package/dist/src/connect/components/home-screen/home-screen.stories.d.ts +12 -0
  211. package/dist/src/connect/components/home-screen/home-screen.stories.d.ts.map +1 -0
  212. package/dist/src/connect/components/home-screen/home-screen.stories.js +22 -0
  213. package/dist/src/connect/components/home-screen/home-screen.stories.js.map +1 -0
  214. package/dist/src/connect/components/loading-screen/loading-screen.d.ts +1 -1
  215. package/dist/src/connect/components/loading-screen/loading-screen.d.ts.map +1 -1
  216. package/dist/src/connect/components/loading-screen/loading-screen.js +1 -1
  217. package/dist/src/connect/components/loading-screen/loading-screen.js.map +1 -1
  218. package/dist/src/connect/components/loading-screen/loading-screen.stories.d.ts +8 -0
  219. package/dist/src/connect/components/loading-screen/loading-screen.stories.d.ts.map +1 -0
  220. package/dist/src/connect/components/loading-screen/loading-screen.stories.js +28 -0
  221. package/dist/src/connect/components/loading-screen/loading-screen.stories.js.map +1 -0
  222. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.d.ts +2 -3
  223. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.d.ts.map +1 -1
  224. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.js +1 -2
  225. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.js.map +1 -1
  226. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.d.ts +10 -0
  227. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.d.ts.map +1 -0
  228. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.js +54 -0
  229. package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.js.map +1 -0
  230. package/dist/src/connect/components/modal/add-local-drive-modal.d.ts +2 -3
  231. package/dist/src/connect/components/modal/add-local-drive-modal.d.ts.map +1 -1
  232. package/dist/src/connect/components/modal/add-local-drive-modal.js +1 -2
  233. package/dist/src/connect/components/modal/add-local-drive-modal.js.map +1 -1
  234. package/dist/src/connect/components/modal/add-local-drive-modal.stories.d.ts +10 -0
  235. package/dist/src/connect/components/modal/add-local-drive-modal.stories.d.ts.map +1 -0
  236. package/dist/src/connect/components/modal/add-local-drive-modal.stories.js +50 -0
  237. package/dist/src/connect/components/modal/add-local-drive-modal.stories.js.map +1 -0
  238. package/dist/src/connect/components/modal/add-remote-drive-modal.d.ts +2 -3
  239. package/dist/src/connect/components/modal/add-remote-drive-modal.d.ts.map +1 -1
  240. package/dist/src/connect/components/modal/add-remote-drive-modal.js +1 -2
  241. package/dist/src/connect/components/modal/add-remote-drive-modal.js.map +1 -1
  242. package/dist/src/connect/components/modal/add-remote-drive-modal.stories.d.ts +10 -0
  243. package/dist/src/connect/components/modal/add-remote-drive-modal.stories.d.ts.map +1 -0
  244. package/dist/src/connect/components/modal/add-remote-drive-modal.stories.js +36 -0
  245. package/dist/src/connect/components/modal/add-remote-drive-modal.stories.js.map +1 -0
  246. package/dist/src/connect/components/modal/confirmation-modal.d.ts +2 -2
  247. package/dist/src/connect/components/modal/confirmation-modal.d.ts.map +1 -1
  248. package/dist/src/connect/components/modal/confirmation-modal.js +1 -1
  249. package/dist/src/connect/components/modal/confirmation-modal.js.map +1 -1
  250. package/dist/src/connect/components/modal/confirmation-modal.stories.d.ts +7 -0
  251. package/dist/src/connect/components/modal/confirmation-modal.stories.d.ts.map +1 -0
  252. package/dist/src/connect/components/modal/confirmation-modal.stories.js +16 -0
  253. package/dist/src/connect/components/modal/confirmation-modal.stories.js.map +1 -0
  254. package/dist/src/connect/components/modal/create-document-modal.d.ts +1 -1
  255. package/dist/src/connect/components/modal/create-document-modal.d.ts.map +1 -1
  256. package/dist/src/connect/components/modal/create-document-modal.js +2 -3
  257. package/dist/src/connect/components/modal/create-document-modal.js.map +1 -1
  258. package/dist/src/connect/components/modal/create-document-modal.stories.d.ts +7 -0
  259. package/dist/src/connect/components/modal/create-document-modal.stories.d.ts.map +1 -0
  260. package/dist/src/connect/components/modal/create-document-modal.stories.js +12 -0
  261. package/dist/src/connect/components/modal/create-document-modal.stories.js.map +1 -0
  262. package/dist/src/connect/components/modal/delete-drive-modal.js +1 -1
  263. package/dist/src/connect/components/modal/delete-drive-modal.js.map +1 -1
  264. package/dist/src/connect/components/modal/delete-item-modal.d.ts +1 -1
  265. package/dist/src/connect/components/modal/delete-item-modal.d.ts.map +1 -1
  266. package/dist/src/connect/components/modal/delete-item-modal.js +1 -1
  267. package/dist/src/connect/components/modal/delete-item-modal.js.map +1 -1
  268. package/dist/src/connect/components/modal/delete-item-modal.stories.d.ts +7 -0
  269. package/dist/src/connect/components/modal/delete-item-modal.stories.d.ts.map +1 -0
  270. package/dist/src/connect/components/modal/delete-item-modal.stories.js +16 -0
  271. package/dist/src/connect/components/modal/delete-item-modal.stories.js.map +1 -0
  272. package/dist/src/connect/components/modal/delete-item-modal.test.d.ts +2 -0
  273. package/dist/src/connect/components/modal/delete-item-modal.test.d.ts.map +1 -0
  274. package/dist/src/connect/components/modal/delete-item-modal.test.js +41 -0
  275. package/dist/src/connect/components/modal/delete-item-modal.test.js.map +1 -0
  276. package/dist/src/connect/components/modal/drive-settings-modal.d.ts +2 -2
  277. package/dist/src/connect/components/modal/drive-settings-modal.d.ts.map +1 -1
  278. package/dist/src/connect/components/modal/drive-settings-modal.js +1 -2
  279. package/dist/src/connect/components/modal/drive-settings-modal.js.map +1 -1
  280. package/dist/src/connect/components/modal/drive-settings-modal.stories.d.ts +10 -0
  281. package/dist/src/connect/components/modal/drive-settings-modal.stories.d.ts.map +1 -0
  282. package/dist/src/connect/components/modal/drive-settings-modal.stories.js +50 -0
  283. package/dist/src/connect/components/modal/drive-settings-modal.stories.js.map +1 -0
  284. package/dist/src/connect/components/modal/read-required-modal.d.ts +2 -2
  285. package/dist/src/connect/components/modal/read-required-modal.d.ts.map +1 -1
  286. package/dist/src/connect/components/modal/read-required-modal.js +1 -1
  287. package/dist/src/connect/components/modal/read-required-modal.js.map +1 -1
  288. package/dist/src/connect/components/modal/read-required-modal.stories.d.ts +7 -0
  289. package/dist/src/connect/components/modal/read-required-modal.stories.d.ts.map +1 -0
  290. package/dist/src/connect/components/modal/read-required-modal.stories.js +28 -0
  291. package/dist/src/connect/components/modal/read-required-modal.stories.js.map +1 -0
  292. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.js +2 -2
  293. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.js.map +1 -1
  294. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.d.ts +7 -0
  295. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.d.ts.map +1 -0
  296. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.js +13 -0
  297. package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.js.map +1 -0
  298. package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.d.ts +11 -0
  299. package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.d.ts.map +1 -0
  300. package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.js +27 -0
  301. package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.js.map +1 -0
  302. package/dist/src/connect/components/modal/settings-modal/dependency-versions/mock-package-json.json +0 -1
  303. package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.d.ts +7 -0
  304. package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.d.ts.map +1 -0
  305. package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.js +26 -0
  306. package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.js.map +1 -0
  307. package/dist/src/connect/components/modal/settings-modal/row.d.ts +1 -1
  308. package/dist/src/connect/components/modal/settings-modal/row.d.ts.map +1 -1
  309. package/dist/src/connect/components/modal/settings-modal/settings-modal.d.ts +1 -1
  310. package/dist/src/connect/components/modal/settings-modal/settings-modal.d.ts.map +1 -1
  311. package/dist/src/connect/components/modal/settings-modal/settings-modal.js +2 -2
  312. package/dist/src/connect/components/modal/settings-modal/settings-modal.js.map +1 -1
  313. package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.d.ts +7 -0
  314. package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.d.ts.map +1 -0
  315. package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.js +33 -0
  316. package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.js.map +1 -0
  317. package/dist/src/connect/components/modal/settings-modal-v2/about.stories.d.ts +8 -0
  318. package/dist/src/connect/components/modal/settings-modal-v2/about.stories.d.ts.map +1 -0
  319. package/dist/src/connect/components/modal/settings-modal-v2/about.stories.js +20 -0
  320. package/dist/src/connect/components/modal/settings-modal-v2/about.stories.js.map +1 -0
  321. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.d.ts.map +1 -1
  322. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js +4 -7
  323. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js.map +1 -1
  324. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.d.ts +10 -0
  325. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.d.ts.map +1 -0
  326. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.js +42 -0
  327. package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.js.map +1 -0
  328. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts +1 -1
  329. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts.map +1 -1
  330. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js +1 -1
  331. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js.map +1 -1
  332. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.d.ts +10 -0
  333. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.d.ts.map +1 -0
  334. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.js +25 -0
  335. package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.js.map +1 -0
  336. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.d.ts.map +1 -1
  337. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js +4 -8
  338. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js.map +1 -1
  339. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.d.ts.map +1 -1
  340. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.js +1 -2
  341. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.js.map +1 -1
  342. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts +1 -1
  343. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts.map +1 -1
  344. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js +1 -1
  345. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js.map +1 -1
  346. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.d.ts +14 -0
  347. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.d.ts.map +1 -0
  348. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.js +56 -0
  349. package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.js.map +1 -0
  350. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.d.ts +1 -1
  351. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.d.ts.map +1 -1
  352. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.js +1 -1
  353. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.js.map +1 -1
  354. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.d.ts +7 -0
  355. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.d.ts.map +1 -0
  356. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.js +84 -0
  357. package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.js.map +1 -0
  358. package/dist/src/connect/components/modal/upgrade-drive-modal.d.ts +1 -1
  359. package/dist/src/connect/components/modal/upgrade-drive-modal.d.ts.map +1 -1
  360. package/dist/src/connect/components/modal/upgrade-drive-modal.js +1 -1
  361. package/dist/src/connect/components/modal/upgrade-drive-modal.js.map +1 -1
  362. package/dist/src/connect/components/modal/upgrade-drive-modal.stories.d.ts +7 -0
  363. package/dist/src/connect/components/modal/upgrade-drive-modal.stories.d.ts.map +1 -0
  364. package/dist/src/connect/components/modal/upgrade-drive-modal.stories.js +16 -0
  365. package/dist/src/connect/components/modal/upgrade-drive-modal.stories.js.map +1 -0
  366. package/dist/src/connect/components/modal/upgrade-drive-modal.test.d.ts +2 -0
  367. package/dist/src/connect/components/modal/upgrade-drive-modal.test.d.ts.map +1 -0
  368. package/dist/src/connect/components/modal/upgrade-drive-modal.test.js +41 -0
  369. package/dist/src/connect/components/modal/upgrade-drive-modal.test.js.map +1 -0
  370. package/dist/src/connect/components/node-input/node-input.stories.d.ts +7 -0
  371. package/dist/src/connect/components/node-input/node-input.stories.d.ts.map +1 -0
  372. package/dist/src/connect/components/node-input/node-input.stories.js +8 -0
  373. package/dist/src/connect/components/node-input/node-input.stories.js.map +1 -0
  374. package/dist/src/connect/components/revision-history/header/branch.js +1 -1
  375. package/dist/src/connect/components/revision-history/header/branch.js.map +1 -1
  376. package/dist/src/connect/components/revision-history/header/branch.stories.d.ts +10 -0
  377. package/dist/src/connect/components/revision-history/header/branch.stories.d.ts.map +1 -0
  378. package/dist/src/connect/components/revision-history/header/branch.stories.js +10 -0
  379. package/dist/src/connect/components/revision-history/header/branch.stories.js.map +1 -0
  380. package/dist/src/connect/components/revision-history/header/doc-id.js +1 -1
  381. package/dist/src/connect/components/revision-history/header/doc-id.js.map +1 -1
  382. package/dist/src/connect/components/revision-history/header/doc-id.stories.d.ts +10 -0
  383. package/dist/src/connect/components/revision-history/header/doc-id.stories.d.ts.map +1 -0
  384. package/dist/src/connect/components/revision-history/header/doc-id.stories.js +12 -0
  385. package/dist/src/connect/components/revision-history/header/doc-id.stories.js.map +1 -0
  386. package/dist/src/connect/components/revision-history/header/header.js +1 -1
  387. package/dist/src/connect/components/revision-history/header/header.js.map +1 -1
  388. package/dist/src/connect/components/revision-history/header/header.stories.d.ts +10 -0
  389. package/dist/src/connect/components/revision-history/header/header.stories.d.ts.map +1 -0
  390. package/dist/src/connect/components/revision-history/header/header.stories.js +16 -0
  391. package/dist/src/connect/components/revision-history/header/header.stories.js.map +1 -0
  392. package/dist/src/connect/components/revision-history/header/scope.js +2 -2
  393. package/dist/src/connect/components/revision-history/header/scope.js.map +1 -1
  394. package/dist/src/connect/components/revision-history/header/scope.stories.d.ts +10 -0
  395. package/dist/src/connect/components/revision-history/header/scope.stories.d.ts.map +1 -0
  396. package/dist/src/connect/components/revision-history/header/scope.stories.js +13 -0
  397. package/dist/src/connect/components/revision-history/header/scope.stories.js.map +1 -0
  398. package/dist/src/connect/components/revision-history/index.d.ts +1 -0
  399. package/dist/src/connect/components/revision-history/index.d.ts.map +1 -1
  400. package/dist/src/connect/components/revision-history/index.js +1 -0
  401. package/dist/src/connect/components/revision-history/index.js.map +1 -1
  402. package/dist/src/connect/components/revision-history/revision/address.d.ts.map +1 -1
  403. package/dist/src/connect/components/revision-history/revision/address.js +2 -3
  404. package/dist/src/connect/components/revision-history/revision/address.js.map +1 -1
  405. package/dist/src/connect/components/revision-history/revision/address.stories.d.ts +10 -0
  406. package/dist/src/connect/components/revision-history/revision/address.stories.d.ts.map +1 -0
  407. package/dist/src/connect/components/revision-history/revision/address.stories.js +16 -0
  408. package/dist/src/connect/components/revision-history/revision/address.stories.js.map +1 -0
  409. package/dist/src/connect/components/revision-history/revision/errors.d.ts.map +1 -1
  410. package/dist/src/connect/components/revision-history/revision/errors.js +2 -3
  411. package/dist/src/connect/components/revision-history/revision/errors.js.map +1 -1
  412. package/dist/src/connect/components/revision-history/revision/errors.stories.d.ts +12 -0
  413. package/dist/src/connect/components/revision-history/revision/errors.stories.d.ts.map +1 -0
  414. package/dist/src/connect/components/revision-history/revision/errors.stories.js +32 -0
  415. package/dist/src/connect/components/revision-history/revision/errors.stories.js.map +1 -0
  416. package/dist/src/connect/components/revision-history/revision/operation.d.ts.map +1 -1
  417. package/dist/src/connect/components/revision-history/revision/operation.js +2 -3
  418. package/dist/src/connect/components/revision-history/revision/operation.js.map +1 -1
  419. package/dist/src/connect/components/revision-history/revision/operation.stories.d.ts +10 -0
  420. package/dist/src/connect/components/revision-history/revision/operation.stories.d.ts.map +1 -0
  421. package/dist/src/connect/components/revision-history/revision/operation.stories.js +23 -0
  422. package/dist/src/connect/components/revision-history/revision/operation.stories.js.map +1 -0
  423. package/dist/src/connect/components/revision-history/revision/revision-number.d.ts.map +1 -1
  424. package/dist/src/connect/components/revision-history/revision/revision-number.js +2 -3
  425. package/dist/src/connect/components/revision-history/revision/revision-number.js.map +1 -1
  426. package/dist/src/connect/components/revision-history/revision/revision-number.stories.d.ts +10 -0
  427. package/dist/src/connect/components/revision-history/revision/revision-number.stories.d.ts.map +1 -0
  428. package/dist/src/connect/components/revision-history/revision/revision-number.stories.js +19 -0
  429. package/dist/src/connect/components/revision-history/revision/revision-number.stories.js.map +1 -0
  430. package/dist/src/connect/components/revision-history/revision/revision.stories.d.ts +11 -0
  431. package/dist/src/connect/components/revision-history/revision/revision.stories.d.ts.map +1 -0
  432. package/dist/src/connect/components/revision-history/revision/revision.stories.js +126 -0
  433. package/dist/src/connect/components/revision-history/revision/revision.stories.js.map +1 -0
  434. package/dist/src/connect/components/revision-history/revision/signature.d.ts +1 -1
  435. package/dist/src/connect/components/revision-history/revision/signature.d.ts.map +1 -1
  436. package/dist/src/connect/components/revision-history/revision/signature.js +2 -3
  437. package/dist/src/connect/components/revision-history/revision/signature.js.map +1 -1
  438. package/dist/src/connect/components/revision-history/revision/signature.stories.d.ts +12 -0
  439. package/dist/src/connect/components/revision-history/revision/signature.stories.d.ts.map +1 -0
  440. package/dist/src/connect/components/revision-history/revision/signature.stories.js +72 -0
  441. package/dist/src/connect/components/revision-history/revision/signature.stories.js.map +1 -0
  442. package/dist/src/connect/components/revision-history/revision/timestamp.js +2 -2
  443. package/dist/src/connect/components/revision-history/revision/timestamp.js.map +1 -1
  444. package/dist/src/connect/components/revision-history/revision/timestamp.stories.d.ts +10 -0
  445. package/dist/src/connect/components/revision-history/revision/timestamp.stories.d.ts.map +1 -0
  446. package/dist/src/connect/components/revision-history/revision/timestamp.stories.js +15 -0
  447. package/dist/src/connect/components/revision-history/revision/timestamp.stories.js.map +1 -0
  448. package/dist/src/connect/components/revision-history/revision-history.d.ts.map +1 -1
  449. package/dist/src/connect/components/revision-history/revision-history.js +2 -3
  450. package/dist/src/connect/components/revision-history/revision-history.js.map +1 -1
  451. package/dist/src/connect/components/revision-history/revision-history.stories.d.ts +13 -0
  452. package/dist/src/connect/components/revision-history/revision-history.stories.d.ts.map +1 -0
  453. package/dist/src/connect/components/revision-history/revision-history.stories.js +49 -0
  454. package/dist/src/connect/components/revision-history/revision-history.stories.js.map +1 -0
  455. package/dist/src/connect/components/revision-history/skip/skip.stories.d.ts +11 -0
  456. package/dist/src/connect/components/revision-history/skip/skip.stories.d.ts.map +1 -0
  457. package/dist/src/connect/components/revision-history/skip/skip.stories.js +19 -0
  458. package/dist/src/connect/components/revision-history/skip/skip.stories.js.map +1 -0
  459. package/dist/src/connect/components/revision-history/timeline/day.js +1 -1
  460. package/dist/src/connect/components/revision-history/timeline/day.js.map +1 -1
  461. package/dist/src/connect/components/revision-history/timeline/timeline.stories.d.ts +10 -0
  462. package/dist/src/connect/components/revision-history/timeline/timeline.stories.d.ts.map +1 -0
  463. package/dist/src/connect/components/revision-history/timeline/timeline.stories.js +20 -0
  464. package/dist/src/connect/components/revision-history/timeline/timeline.stories.js.map +1 -0
  465. package/dist/src/connect/components/search-bar/filter-item.js +1 -1
  466. package/dist/src/connect/components/search-bar/filter-item.js.map +1 -1
  467. package/dist/src/connect/components/search-bar/search-bar.js +1 -2
  468. package/dist/src/connect/components/search-bar/search-bar.js.map +1 -1
  469. package/dist/src/connect/components/search-bar/search-bar.stories.d.ts +7 -0
  470. package/dist/src/connect/components/search-bar/search-bar.stories.d.ts.map +1 -0
  471. package/dist/src/connect/components/search-bar/search-bar.stories.js +43 -0
  472. package/dist/src/connect/components/search-bar/search-bar.stories.js.map +1 -0
  473. package/dist/src/connect/components/search-bar/search-bar.test.d.ts +2 -0
  474. package/dist/src/connect/components/search-bar/search-bar.test.d.ts.map +1 -0
  475. package/dist/src/connect/components/search-bar/search-bar.test.js +47 -0
  476. package/dist/src/connect/components/search-bar/search-bar.test.js.map +1 -0
  477. package/dist/src/connect/components/select/select.d.ts +5 -5
  478. package/dist/src/connect/components/select/select.d.ts.map +1 -1
  479. package/dist/src/connect/components/select/select.js +8 -3
  480. package/dist/src/connect/components/select/select.js.map +1 -1
  481. package/dist/src/connect/components/select/select.stories.d.ts +11 -0
  482. package/dist/src/connect/components/select/select.stories.d.ts.map +1 -0
  483. package/dist/src/connect/components/select/select.stories.js +42 -0
  484. package/dist/src/connect/components/select/select.stories.js.map +1 -0
  485. package/dist/src/connect/components/sidebar/sidebar-add-drive-item.js +1 -1
  486. package/dist/src/connect/components/sidebar/sidebar-add-drive-item.js.map +1 -1
  487. package/dist/src/connect/components/sidebar/sidebar-footer.d.ts +1 -1
  488. package/dist/src/connect/components/sidebar/sidebar-footer.d.ts.map +1 -1
  489. package/dist/src/connect/components/sidebar/sidebar-footer.js +1 -1
  490. package/dist/src/connect/components/sidebar/sidebar-footer.js.map +1 -1
  491. package/dist/src/connect/components/sidebar/sidebar-header.d.ts +1 -1
  492. package/dist/src/connect/components/sidebar/sidebar-header.d.ts.map +1 -1
  493. package/dist/src/connect/components/sidebar/sidebar-header.js +1 -1
  494. package/dist/src/connect/components/sidebar/sidebar-header.js.map +1 -1
  495. package/dist/src/connect/components/sidebar/sidebar-login.js +3 -3
  496. package/dist/src/connect/components/sidebar/sidebar-login.js.map +1 -1
  497. package/dist/src/connect/components/sidebar/sidebar-user.js +1 -2
  498. package/dist/src/connect/components/sidebar/sidebar-user.js.map +1 -1
  499. package/dist/src/connect/components/sidebar/sidebar.d.ts +1 -1
  500. package/dist/src/connect/components/sidebar/sidebar.d.ts.map +1 -1
  501. package/dist/src/connect/components/sidebar/sidebar.js +1 -1
  502. package/dist/src/connect/components/sidebar/sidebar.js.map +1 -1
  503. package/dist/src/connect/components/sidebar/sidebar.stories.d.ts +13 -0
  504. package/dist/src/connect/components/sidebar/sidebar.stories.d.ts.map +1 -0
  505. package/dist/src/connect/components/sidebar/sidebar.stories.js +35 -0
  506. package/dist/src/connect/components/sidebar/sidebar.stories.js.map +1 -0
  507. package/dist/src/connect/components/status-icon/sync-status-icon.d.ts +2 -3
  508. package/dist/src/connect/components/status-icon/sync-status-icon.d.ts.map +1 -1
  509. package/dist/src/connect/components/status-icon/sync-status-icon.js +1 -2
  510. package/dist/src/connect/components/status-icon/sync-status-icon.js.map +1 -1
  511. package/dist/src/connect/components/status-icon/sync-status-icon.stories.d.ts +12 -0
  512. package/dist/src/connect/components/status-icon/sync-status-icon.stories.d.ts.map +1 -0
  513. package/dist/src/connect/components/status-icon/sync-status-icon.stories.js +34 -0
  514. package/dist/src/connect/components/status-icon/sync-status-icon.stories.js.map +1 -0
  515. package/dist/src/connect/components/toast/toast.js +1 -1
  516. package/dist/src/connect/components/toast/toast.js.map +1 -1
  517. package/dist/src/connect/components/toast/toast.stories.d.ts +9 -0
  518. package/dist/src/connect/components/toast/toast.stories.d.ts.map +1 -0
  519. package/dist/src/connect/components/toast/toast.stories.js +54 -0
  520. package/dist/src/connect/components/toast/toast.stories.js.map +1 -0
  521. package/dist/src/connect/components/toggle/toggle.stories.d.ts +307 -0
  522. package/dist/src/connect/components/toggle/toggle.stories.d.ts.map +1 -0
  523. package/dist/src/connect/components/toggle/toggle.stories.js +19 -0
  524. package/dist/src/connect/components/toggle/toggle.stories.js.map +1 -0
  525. package/dist/src/connect/components/tooltip/tooltip.d.ts +2 -2
  526. package/dist/src/connect/components/tooltip/tooltip.d.ts.map +1 -1
  527. package/dist/src/connect/components/tooltip/tooltip.js +2 -2
  528. package/dist/src/connect/components/tooltip/tooltip.js.map +1 -1
  529. package/dist/src/connect/components/tooltip/tooltip.stories.d.ts +7 -0
  530. package/dist/src/connect/components/tooltip/tooltip.stories.d.ts.map +1 -0
  531. package/dist/src/connect/components/tooltip/tooltip.stories.js +14 -0
  532. package/dist/src/connect/components/tooltip/tooltip.stories.js.map +1 -0
  533. package/dist/src/connect/components/upload-file-item/components/error-details.d.ts +2 -2
  534. package/dist/src/connect/components/upload-file-item/components/error-details.d.ts.map +1 -1
  535. package/dist/src/connect/components/upload-file-item/components/error-details.js +1 -1
  536. package/dist/src/connect/components/upload-file-item/components/error-details.js.map +1 -1
  537. package/dist/src/connect/components/upload-file-item/components/header.d.ts +2 -2
  538. package/dist/src/connect/components/upload-file-item/components/header.d.ts.map +1 -1
  539. package/dist/src/connect/components/upload-file-item/components/header.js +2 -2
  540. package/dist/src/connect/components/upload-file-item/components/header.js.map +1 -1
  541. package/dist/src/connect/components/upload-file-item/components/index.d.ts +4 -4
  542. package/dist/src/connect/components/upload-file-item/components/index.d.ts.map +1 -1
  543. package/dist/src/connect/components/upload-file-item/components/index.js +4 -4
  544. package/dist/src/connect/components/upload-file-item/components/index.js.map +1 -1
  545. package/dist/src/connect/components/upload-file-item/components/progress-bar.d.ts +2 -2
  546. package/dist/src/connect/components/upload-file-item/components/progress-bar.d.ts.map +1 -1
  547. package/dist/src/connect/components/upload-file-item/components/progress-bar.js +1 -1
  548. package/dist/src/connect/components/upload-file-item/components/progress-bar.js.map +1 -1
  549. package/dist/src/connect/components/upload-file-item/components/status-row.d.ts +2 -2
  550. package/dist/src/connect/components/upload-file-item/components/status-row.d.ts.map +1 -1
  551. package/dist/src/connect/components/upload-file-item/components/status-row.js +1 -1
  552. package/dist/src/connect/components/upload-file-item/components/status-row.js.map +1 -1
  553. package/dist/src/connect/components/upload-file-item/index.d.ts +2 -1
  554. package/dist/src/connect/components/upload-file-item/index.d.ts.map +1 -1
  555. package/dist/src/connect/components/upload-file-item/index.js +2 -1
  556. package/dist/src/connect/components/upload-file-item/index.js.map +1 -1
  557. package/dist/src/connect/components/upload-file-item/upload-file-item.d.ts +1 -1
  558. package/dist/src/connect/components/upload-file-item/upload-file-item.d.ts.map +1 -1
  559. package/dist/src/connect/components/upload-file-item/upload-file-item.js +1 -4
  560. package/dist/src/connect/components/upload-file-item/upload-file-item.js.map +1 -1
  561. package/dist/src/connect/components/upload-file-item/upload-file-item.stories.d.ts +22 -0
  562. package/dist/src/connect/components/upload-file-item/upload-file-item.stories.d.ts.map +1 -0
  563. package/dist/src/connect/components/upload-file-item/upload-file-item.stories.js +208 -0
  564. package/dist/src/connect/components/upload-file-item/upload-file-item.stories.js.map +1 -0
  565. package/dist/src/connect/components/upload-file-list/index.d.ts +2 -2
  566. package/dist/src/connect/components/upload-file-list/index.d.ts.map +1 -1
  567. package/dist/src/connect/components/upload-file-list/index.js +2 -2
  568. package/dist/src/connect/components/upload-file-list/index.js.map +1 -1
  569. package/dist/src/connect/components/upload-file-list/upload-file-list.d.ts +2 -2
  570. package/dist/src/connect/components/upload-file-list/upload-file-list.d.ts.map +1 -1
  571. package/dist/src/connect/components/upload-file-list/upload-file-list.js +1 -3
  572. package/dist/src/connect/components/upload-file-list/upload-file-list.js.map +1 -1
  573. package/dist/src/connect/components/upload-file-list/upload-file-list.stories.d.ts +8 -0
  574. package/dist/src/connect/components/upload-file-list/upload-file-list.stories.d.ts.map +1 -0
  575. package/dist/src/connect/components/upload-file-list/upload-file-list.stories.js +59 -0
  576. package/dist/src/connect/components/upload-file-list/upload-file-list.stories.js.map +1 -0
  577. package/dist/src/connect/constants/icons.d.ts +1 -1
  578. package/dist/src/connect/constants/icons.d.ts.map +1 -1
  579. package/dist/src/connect/constants/icons.js +4 -4
  580. package/dist/src/connect/constants/icons.js.map +1 -1
  581. package/dist/src/connect/constants/index.d.ts +0 -2
  582. package/dist/src/connect/constants/index.d.ts.map +1 -1
  583. package/dist/src/connect/constants/index.js +0 -2
  584. package/dist/src/connect/constants/index.js.map +1 -1
  585. package/dist/src/connect/constants/options.d.ts +2 -12
  586. package/dist/src/connect/constants/options.d.ts.map +1 -1
  587. package/dist/src/connect/constants/options.js +23 -24
  588. package/dist/src/connect/constants/options.js.map +1 -1
  589. package/dist/src/connect/context/WagmiContext.js +1 -1
  590. package/dist/src/connect/context/WagmiContext.js.map +1 -1
  591. package/dist/src/connect/hooks/drag-and-drop/use-drag.d.ts +1 -1
  592. package/dist/src/connect/hooks/drag-and-drop/use-drag.d.ts.map +1 -1
  593. package/dist/src/connect/hooks/drag-and-drop/use-drag.js +1 -2
  594. package/dist/src/connect/hooks/drag-and-drop/use-drag.js.map +1 -1
  595. package/dist/src/connect/hooks/drag-and-drop/use-drop.d.ts.map +1 -1
  596. package/dist/src/connect/hooks/drag-and-drop/use-drop.js +1 -2
  597. package/dist/src/connect/hooks/drag-and-drop/use-drop.js.map +1 -1
  598. package/dist/src/connect/types/documents.d.ts +1 -1
  599. package/dist/src/connect/types/documents.d.ts.map +1 -1
  600. package/dist/src/connect/types/drives.d.ts +1 -3
  601. package/dist/src/connect/types/drives.d.ts.map +1 -1
  602. package/dist/src/connect/types/options.d.ts +4 -4
  603. package/dist/src/connect/types/options.d.ts.map +1 -1
  604. package/dist/src/connect/types/syncing.d.ts +1 -1
  605. package/dist/src/connect/types/syncing.d.ts.map +1 -1
  606. package/dist/src/connect/utils/get-document-icon-src.d.ts +1 -1
  607. package/dist/src/connect/utils/get-document-icon-src.d.ts.map +1 -1
  608. package/dist/src/connect/utils/get-document-icon-src.js +1 -1
  609. package/dist/src/connect/utils/get-document-icon-src.js.map +1 -1
  610. package/dist/src/connect/utils/get-folder-status.test.d.ts +2 -0
  611. package/dist/src/connect/utils/get-folder-status.test.d.ts.map +1 -0
  612. package/dist/src/connect/utils/get-folder-status.test.js +96 -0
  613. package/dist/src/connect/utils/get-folder-status.test.js.map +1 -0
  614. package/dist/src/connect/utils/mocks/mock-package-json.json +0 -1
  615. package/dist/src/index.d.ts +5 -0
  616. package/dist/src/index.d.ts.map +1 -1
  617. package/dist/src/index.js +5 -0
  618. package/dist/src/index.js.map +1 -1
  619. package/dist/src/powerhouse/components/button/button.d.ts +2 -2
  620. package/dist/src/powerhouse/components/button/button.d.ts.map +1 -1
  621. package/dist/src/powerhouse/components/button/button.js +1 -1
  622. package/dist/src/powerhouse/components/button/button.js.map +1 -1
  623. package/dist/src/powerhouse/components/button/button.stories.d.ts +27 -0
  624. package/dist/src/powerhouse/components/button/button.stories.d.ts.map +1 -0
  625. package/dist/src/powerhouse/components/button/button.stories.js +154 -0
  626. package/dist/src/powerhouse/components/button/button.stories.js.map +1 -0
  627. package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.d.ts +8 -0
  628. package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.d.ts.map +1 -0
  629. package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.js +38 -0
  630. package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.js.map +1 -0
  631. package/dist/src/powerhouse/components/icon/icon.d.ts +1 -2
  632. package/dist/src/powerhouse/components/icon/icon.d.ts.map +1 -1
  633. package/dist/src/powerhouse/components/icon/icon.js +1 -2
  634. package/dist/src/powerhouse/components/icon/icon.js.map +1 -1
  635. package/dist/src/powerhouse/components/icon/icon.stories.d.ts +16 -0
  636. package/dist/src/powerhouse/components/icon/icon.stories.d.ts.map +1 -0
  637. package/dist/src/powerhouse/components/icon/icon.stories.js +37 -0
  638. package/dist/src/powerhouse/components/icon/icon.stories.js.map +1 -0
  639. package/dist/src/powerhouse/components/icon/index.d.ts +0 -2
  640. package/dist/src/powerhouse/components/icon/index.d.ts.map +1 -1
  641. package/dist/src/powerhouse/components/icon/index.js +0 -1
  642. package/dist/src/powerhouse/components/icon/index.js.map +1 -1
  643. package/dist/src/powerhouse/components/index.d.ts +1 -0
  644. package/dist/src/powerhouse/components/index.d.ts.map +1 -1
  645. package/dist/src/powerhouse/components/index.js +1 -0
  646. package/dist/src/powerhouse/components/index.js.map +1 -1
  647. package/dist/src/powerhouse/components/modal/modal.stories.d.ts +13 -0
  648. package/dist/src/powerhouse/components/modal/modal.stories.d.ts.map +1 -0
  649. package/dist/src/powerhouse/components/modal/modal.stories.js +25 -0
  650. package/dist/src/powerhouse/components/modal/modal.stories.js.map +1 -0
  651. package/dist/src/powerhouse/components/modal/modal.test.d.ts +2 -0
  652. package/dist/src/powerhouse/components/modal/modal.test.d.ts.map +1 -0
  653. package/dist/src/powerhouse/components/modal/modal.test.js +25 -0
  654. package/dist/src/powerhouse/components/modal/modal.test.js.map +1 -0
  655. package/dist/src/powerhouse/components/pagination/pagination-button.d.ts +2 -2
  656. package/dist/src/powerhouse/components/pagination/pagination-button.d.ts.map +1 -1
  657. package/dist/src/powerhouse/components/pagination/pagination-button.js +2 -2
  658. package/dist/src/powerhouse/components/pagination/pagination-button.js.map +1 -1
  659. package/dist/src/powerhouse/components/pagination/pagination.d.ts +1 -1
  660. package/dist/src/powerhouse/components/pagination/pagination.d.ts.map +1 -1
  661. package/dist/src/powerhouse/components/pagination/pagination.js +1 -1
  662. package/dist/src/powerhouse/components/pagination/pagination.js.map +1 -1
  663. package/dist/src/powerhouse/components/pagination/pagination.stories.d.ts +7 -0
  664. package/dist/src/powerhouse/components/pagination/pagination.stories.d.ts.map +1 -0
  665. package/dist/src/powerhouse/components/pagination/pagination.stories.js +60 -0
  666. package/dist/src/powerhouse/components/pagination/pagination.stories.js.map +1 -0
  667. package/dist/src/powerhouse/components/sidebar/sidebar.test.d.ts +2 -0
  668. package/dist/src/powerhouse/components/sidebar/sidebar.test.d.ts.map +1 -0
  669. package/dist/src/powerhouse/components/sidebar/sidebar.test.js +15 -0
  670. package/dist/src/powerhouse/components/sidebar/sidebar.test.js.map +1 -0
  671. package/dist/src/powerhouse/hooks/usePagination.test.d.ts +2 -0
  672. package/dist/src/powerhouse/hooks/usePagination.test.d.ts.map +1 -0
  673. package/dist/src/powerhouse/hooks/usePagination.test.js +456 -0
  674. package/dist/src/powerhouse/hooks/usePagination.test.js.map +1 -0
  675. package/dist/src/powerhouse/tests/mocks/fileMock.js +1 -1
  676. package/dist/src/powerhouse/tests/mocks/fileMock.js.map +1 -1
  677. package/dist/src/powerhouse/tests/mocks/svgMock.js +1 -1
  678. package/dist/src/powerhouse/tests/mocks/svgMock.js.map +1 -1
  679. package/dist/src/powerhouse/utils/index.d.ts +0 -3
  680. package/dist/src/powerhouse/utils/index.d.ts.map +1 -1
  681. package/dist/src/powerhouse/utils/index.js +0 -6
  682. package/dist/src/powerhouse/utils/index.js.map +1 -1
  683. package/dist/src/powerhouse/utils/mergeClassNameProps.test.d.ts +2 -0
  684. package/dist/src/powerhouse/utils/mergeClassNameProps.test.d.ts.map +1 -0
  685. package/dist/src/powerhouse/utils/mergeClassNameProps.test.js +44 -0
  686. package/dist/src/powerhouse/utils/mergeClassNameProps.test.js.map +1 -0
  687. package/dist/src/rwa/components/button/button.d.ts +2 -2
  688. package/dist/src/rwa/components/button/button.d.ts.map +1 -1
  689. package/dist/src/rwa/components/button/button.js +2 -2
  690. package/dist/src/rwa/components/button/button.js.map +1 -1
  691. package/dist/src/rwa/components/button/button.stories.d.ts +7 -0
  692. package/dist/src/rwa/components/button/button.stories.d.ts.map +1 -0
  693. package/dist/src/rwa/components/button/button.stories.js +24 -0
  694. package/dist/src/rwa/components/button/button.stories.js.map +1 -0
  695. package/dist/src/rwa/components/editor/editor.js +1 -1
  696. package/dist/src/rwa/components/editor/editor.js.map +1 -1
  697. package/dist/src/rwa/components/editor/editor.stories.d.ts +16 -0
  698. package/dist/src/rwa/components/editor/editor.stories.d.ts.map +1 -0
  699. package/dist/src/rwa/components/editor/editor.stories.js +151 -0
  700. package/dist/src/rwa/components/editor/editor.stories.js.map +1 -0
  701. package/dist/src/rwa/components/inputs/entry-time-label.d.ts +1 -1
  702. package/dist/src/rwa/components/inputs/entry-time-label.d.ts.map +1 -1
  703. package/dist/src/rwa/components/inputs/entry-time-label.js +1 -1
  704. package/dist/src/rwa/components/inputs/entry-time-label.js.map +1 -1
  705. package/dist/src/rwa/components/inputs/form-row.d.ts +1 -1
  706. package/dist/src/rwa/components/inputs/form-row.d.ts.map +1 -1
  707. package/dist/src/rwa/components/inputs/form-row.js +1 -1
  708. package/dist/src/rwa/components/inputs/form-row.js.map +1 -1
  709. package/dist/src/rwa/components/inputs/index.d.ts +1 -0
  710. package/dist/src/rwa/components/inputs/index.d.ts.map +1 -1
  711. package/dist/src/rwa/components/inputs/index.js +1 -0
  712. package/dist/src/rwa/components/inputs/index.js.map +1 -1
  713. package/dist/src/rwa/components/inputs/number-input.d.ts +1 -1
  714. package/dist/src/rwa/components/inputs/number-input.d.ts.map +1 -1
  715. package/dist/src/rwa/components/inputs/number-input.js +1 -1
  716. package/dist/src/rwa/components/inputs/number-input.js.map +1 -1
  717. package/dist/src/rwa/components/inputs/select.d.ts +1 -1
  718. package/dist/src/rwa/components/inputs/select.d.ts.map +1 -1
  719. package/dist/src/rwa/components/inputs/select.js +1 -1
  720. package/dist/src/rwa/components/inputs/select.js.map +1 -1
  721. package/dist/src/rwa/components/modal/create-item-modal.d.ts +2 -2
  722. package/dist/src/rwa/components/modal/create-item-modal.d.ts.map +1 -1
  723. package/dist/src/rwa/components/modal/create-item-modal.js +1 -2
  724. package/dist/src/rwa/components/modal/create-item-modal.js.map +1 -1
  725. package/dist/src/rwa/components/modal/delete-item-modal.d.ts +2 -2
  726. package/dist/src/rwa/components/modal/delete-item-modal.d.ts.map +1 -1
  727. package/dist/src/rwa/components/modal/delete-item-modal.js +1 -2
  728. package/dist/src/rwa/components/modal/delete-item-modal.js.map +1 -1
  729. package/dist/src/rwa/components/modal/modal-manager.d.ts +1 -1
  730. package/dist/src/rwa/components/modal/modal-manager.d.ts.map +1 -1
  731. package/dist/src/rwa/components/modal/modal-manager.js +1 -1
  732. package/dist/src/rwa/components/modal/modal-manager.js.map +1 -1
  733. package/dist/src/rwa/components/modal/modals.d.ts +2 -2
  734. package/dist/src/rwa/components/modal/modals.d.ts.map +1 -1
  735. package/dist/src/rwa/components/modal/modals.js +1 -1
  736. package/dist/src/rwa/components/modal/modals.js.map +1 -1
  737. package/dist/src/rwa/components/table/accounts/accounts-table.d.ts.map +1 -1
  738. package/dist/src/rwa/components/table/accounts/accounts-table.js +1 -2
  739. package/dist/src/rwa/components/table/accounts/accounts-table.js.map +1 -1
  740. package/dist/src/rwa/components/table/assets/assets-table.js +1 -1
  741. package/dist/src/rwa/components/table/assets/assets-table.js.map +1 -1
  742. package/dist/src/rwa/components/table/base/header-label.d.ts +1 -1
  743. package/dist/src/rwa/components/table/base/header-label.d.ts.map +1 -1
  744. package/dist/src/rwa/components/table/base/item-details.d.ts +1 -1
  745. package/dist/src/rwa/components/table/base/item-details.d.ts.map +1 -1
  746. package/dist/src/rwa/components/table/base/item-details.js +1 -2
  747. package/dist/src/rwa/components/table/base/item-details.js.map +1 -1
  748. package/dist/src/rwa/components/table/base/table-base.d.ts +1 -1
  749. package/dist/src/rwa/components/table/base/table-base.d.ts.map +1 -1
  750. package/dist/src/rwa/components/table/base/table-base.js +1 -1
  751. package/dist/src/rwa/components/table/base/table-base.js.map +1 -1
  752. package/dist/src/rwa/components/table/base/table-cell.d.ts +1 -1
  753. package/dist/src/rwa/components/table/base/table-cell.d.ts.map +1 -1
  754. package/dist/src/rwa/components/table/base/table-cell.js +1 -2
  755. package/dist/src/rwa/components/table/base/table-cell.js.map +1 -1
  756. package/dist/src/rwa/components/table/base/table-with-form.d.ts +1 -1
  757. package/dist/src/rwa/components/table/base/table-with-form.d.ts.map +1 -1
  758. package/dist/src/rwa/components/table/base/table-with-form.js +1 -2
  759. package/dist/src/rwa/components/table/base/table-with-form.js.map +1 -1
  760. package/dist/src/rwa/components/table/base/table.d.ts +1 -1
  761. package/dist/src/rwa/components/table/base/table.d.ts.map +1 -1
  762. package/dist/src/rwa/components/table/base/table.js +1 -2
  763. package/dist/src/rwa/components/table/base/table.js.map +1 -1
  764. package/dist/src/rwa/components/table/transactions/cash-balance-change.d.ts +1 -1
  765. package/dist/src/rwa/components/table/transactions/cash-balance-change.d.ts.map +1 -1
  766. package/dist/src/rwa/components/table/transactions/cash-balance-change.js +1 -1
  767. package/dist/src/rwa/components/table/transactions/cash-balance-change.js.map +1 -1
  768. package/dist/src/rwa/components/table/transactions/fee-transactions-table.d.ts +1 -1
  769. package/dist/src/rwa/components/table/transactions/fee-transactions-table.d.ts.map +1 -1
  770. package/dist/src/rwa/components/table/transactions/fee-transactions-table.js +1 -2
  771. package/dist/src/rwa/components/table/transactions/fee-transactions-table.js.map +1 -1
  772. package/dist/src/rwa/components/table/transactions/group-transactions-table.d.ts.map +1 -1
  773. package/dist/src/rwa/components/table/transactions/group-transactions-table.js +1 -3
  774. package/dist/src/rwa/components/table/transactions/group-transactions-table.js.map +1 -1
  775. package/dist/src/rwa/components/table/transactions/index.d.ts +1 -0
  776. package/dist/src/rwa/components/table/transactions/index.d.ts.map +1 -1
  777. package/dist/src/rwa/components/table/transactions/index.js +1 -0
  778. package/dist/src/rwa/components/table/transactions/index.js.map +1 -1
  779. package/dist/src/rwa/components/table/transactions/transaction-reference.d.ts +1 -1
  780. package/dist/src/rwa/components/table/transactions/transaction-reference.d.ts.map +1 -1
  781. package/dist/src/rwa/components/table/transactions/transaction-reference.js +2 -4
  782. package/dist/src/rwa/components/table/transactions/transaction-reference.js.map +1 -1
  783. package/dist/src/rwa/components/table/transactions/unit-price.d.ts +1 -1
  784. package/dist/src/rwa/components/table/transactions/unit-price.d.ts.map +1 -1
  785. package/dist/src/rwa/components/table/transactions/unit-price.js +1 -1
  786. package/dist/src/rwa/components/table/transactions/unit-price.js.map +1 -1
  787. package/dist/src/rwa/components/tabs/other-tab.js +1 -1
  788. package/dist/src/rwa/components/tabs/other-tab.js.map +1 -1
  789. package/dist/src/rwa/components/tabs/portfolio-tab.js +1 -1
  790. package/dist/src/rwa/components/tabs/portfolio-tab.js.map +1 -1
  791. package/dist/src/rwa/components/tabs/tabs.js +1 -2
  792. package/dist/src/rwa/components/tabs/tabs.js.map +1 -1
  793. package/dist/src/rwa/components/tabs/transactions-tab.d.ts.map +1 -1
  794. package/dist/src/rwa/components/tabs/transactions-tab.js +1 -1
  795. package/dist/src/rwa/components/tabs/transactions-tab.js.map +1 -1
  796. package/dist/src/rwa/constants/columns.d.ts +1 -1
  797. package/dist/src/rwa/constants/columns.d.ts.map +1 -1
  798. package/dist/src/rwa/constants/dependent-items.d.ts +1 -1
  799. package/dist/src/rwa/constants/dependent-items.d.ts.map +1 -1
  800. package/dist/src/rwa/constants/dependent-items.js +1 -1
  801. package/dist/src/rwa/constants/dependent-items.js.map +1 -1
  802. package/dist/src/rwa/constants/names.d.ts +1 -1
  803. package/dist/src/rwa/constants/names.d.ts.map +1 -1
  804. package/dist/src/rwa/constants/table.d.ts +1 -1
  805. package/dist/src/rwa/constants/table.d.ts.map +1 -1
  806. package/dist/src/rwa/context/editor-context.d.ts +1 -1
  807. package/dist/src/rwa/context/editor-context.d.ts.map +1 -1
  808. package/dist/src/rwa/context/editor-context.js +1 -1
  809. package/dist/src/rwa/context/editor-context.js.map +1 -1
  810. package/dist/src/rwa/hooks/useColumnPriority.d.ts +1 -1
  811. package/dist/src/rwa/hooks/useColumnPriority.d.ts.map +1 -1
  812. package/dist/src/rwa/hooks/useColumnPriority.js.map +1 -1
  813. package/dist/src/rwa/hooks/useDefaultFormValues.d.ts +2 -2
  814. package/dist/src/rwa/hooks/useDefaultFormValues.d.ts.map +1 -1
  815. package/dist/src/rwa/hooks/useDefaultFormValues.js +1 -2
  816. package/dist/src/rwa/hooks/useDefaultFormValues.js.map +1 -1
  817. package/dist/src/rwa/hooks/useFormInputs.d.ts +1 -1
  818. package/dist/src/rwa/hooks/useFormInputs.d.ts.map +1 -1
  819. package/dist/src/rwa/hooks/useFormInputs.js +1 -3
  820. package/dist/src/rwa/hooks/useFormInputs.js.map +1 -1
  821. package/dist/src/rwa/hooks/useSortTableItems.d.ts +1 -1
  822. package/dist/src/rwa/hooks/useSortTableItems.d.ts.map +1 -1
  823. package/dist/src/rwa/hooks/useSubmit.d.ts +6 -6
  824. package/dist/src/rwa/hooks/useSubmit.d.ts.map +1 -1
  825. package/dist/src/rwa/hooks/useSubmit.js +1 -1
  826. package/dist/src/rwa/hooks/useSubmit.js.map +1 -1
  827. package/dist/src/rwa/hooks/useTableData.d.ts +1 -1
  828. package/dist/src/rwa/hooks/useTableData.d.ts.map +1 -1
  829. package/dist/src/rwa/hooks/useTableData.js +1 -1
  830. package/dist/src/rwa/hooks/useTableData.js.map +1 -1
  831. package/dist/src/rwa/hooks/useTableForm.d.ts +5 -5
  832. package/dist/src/rwa/hooks/useTableForm.d.ts.map +1 -1
  833. package/dist/src/rwa/hooks/useTableForm.js +1 -1
  834. package/dist/src/rwa/hooks/useTableForm.js.map +1 -1
  835. package/dist/src/rwa/index.d.ts +1 -2
  836. package/dist/src/rwa/index.d.ts.map +1 -1
  837. package/dist/src/rwa/index.js +1 -2
  838. package/dist/src/rwa/index.js.map +1 -1
  839. package/dist/src/rwa/mocks.d.ts +26 -0
  840. package/dist/src/rwa/mocks.d.ts.map +1 -0
  841. package/dist/src/rwa/{mocks/assets.js → mocks.js} +135 -1
  842. package/dist/src/rwa/mocks.js.map +1 -0
  843. package/dist/src/rwa/types/actions.d.ts +1 -1
  844. package/dist/src/rwa/types/actions.d.ts.map +1 -1
  845. package/dist/src/rwa/types/form.d.ts +1 -1
  846. package/dist/src/rwa/types/form.d.ts.map +1 -1
  847. package/dist/src/rwa/types/state.d.ts +1 -1
  848. package/dist/src/rwa/types/state.d.ts.map +1 -1
  849. package/dist/src/rwa/types/table.d.ts +1 -1
  850. package/dist/src/rwa/types/table.d.ts.map +1 -1
  851. package/dist/src/rwa/types.d.ts +5 -0
  852. package/dist/src/rwa/types.d.ts.map +1 -0
  853. package/dist/src/rwa/types.js +5 -0
  854. package/dist/src/rwa/types.js.map +1 -0
  855. package/dist/src/rwa/utils/calculations.d.ts +1 -1
  856. package/dist/src/rwa/utils/calculations.d.ts.map +1 -1
  857. package/dist/src/rwa/utils/calculations.js +1 -1
  858. package/dist/src/rwa/utils/calculations.js.map +1 -1
  859. package/dist/src/rwa/utils/form.d.ts +1 -1
  860. package/dist/src/rwa/utils/form.d.ts.map +1 -1
  861. package/dist/src/rwa/utils/table.d.ts +1 -1
  862. package/dist/src/rwa/utils/table.d.ts.map +1 -1
  863. package/dist/src/rwa/utils/table.js +1 -1
  864. package/dist/src/rwa/utils/table.js.map +1 -1
  865. package/dist/src/rwa/utils/validators.d.ts +1 -1
  866. package/dist/src/rwa/utils/validators.d.ts.map +1 -1
  867. package/dist/src/rwa/utils/validators.js +1 -1
  868. package/dist/src/rwa/utils/validators.js.map +1 -1
  869. package/dist/src/ui/components/amount-input/types.d.ts +1 -1
  870. package/dist/src/ui/components/amount-input/types.d.ts.map +1 -1
  871. package/dist/src/ui/components/button/button.d.ts +1 -2
  872. package/dist/src/ui/components/button/button.d.ts.map +1 -1
  873. package/dist/src/ui/components/button/button.js +3 -3
  874. package/dist/src/ui/components/button/button.js.map +1 -1
  875. package/dist/src/ui/components/button/button.test.d.ts +2 -0
  876. package/dist/src/ui/components/button/button.test.d.ts.map +1 -0
  877. package/dist/src/ui/components/button/button.test.js +11 -0
  878. package/dist/src/ui/components/button/button.test.js.map +1 -0
  879. package/dist/src/ui/components/character-counter/character-counter.stories.d.ts +29 -0
  880. package/dist/src/ui/components/character-counter/character-counter.stories.d.ts.map +1 -0
  881. package/dist/src/ui/components/character-counter/character-counter.stories.js +48 -0
  882. package/dist/src/ui/components/character-counter/character-counter.stories.js.map +1 -0
  883. package/dist/src/ui/components/character-counter/character-counter.test.d.ts +2 -0
  884. package/dist/src/ui/components/character-counter/character-counter.test.d.ts.map +1 -0
  885. package/dist/src/ui/components/character-counter/character-counter.test.js +36 -0
  886. package/dist/src/ui/components/character-counter/character-counter.test.js.map +1 -0
  887. package/dist/src/ui/components/checkbox/checkbox-base.d.ts.map +1 -1
  888. package/dist/src/ui/components/checkbox/checkbox-base.js +1 -1
  889. package/dist/src/ui/components/checkbox/checkbox-base.js.map +1 -1
  890. package/dist/src/ui/components/checkbox/checkbox-base.test.d.ts +2 -0
  891. package/dist/src/ui/components/checkbox/checkbox-base.test.d.ts.map +1 -0
  892. package/dist/src/ui/components/checkbox/checkbox-base.test.js +22 -0
  893. package/dist/src/ui/components/checkbox/checkbox-base.test.js.map +1 -0
  894. package/dist/src/ui/components/checkbox/checkbox.d.ts +1 -1
  895. package/dist/src/ui/components/checkbox/checkbox.d.ts.map +1 -1
  896. package/dist/src/ui/components/checkbox/checkbox.js +1 -3
  897. package/dist/src/ui/components/checkbox/checkbox.js.map +1 -1
  898. package/dist/src/ui/components/checkbox/checkbox.stories.d.ts +49 -0
  899. package/dist/src/ui/components/checkbox/checkbox.stories.d.ts.map +1 -0
  900. package/dist/src/ui/components/checkbox/checkbox.stories.js +106 -0
  901. package/dist/src/ui/components/checkbox/checkbox.stories.js.map +1 -0
  902. package/dist/src/ui/components/checkbox/index.js +1 -0
  903. package/dist/src/ui/components/checkbox/index.js.map +1 -1
  904. package/dist/src/ui/components/command/command.d.ts +6 -6
  905. package/dist/src/ui/components/command/command.js +1 -1
  906. package/dist/src/ui/components/command/command.js.map +1 -1
  907. package/dist/src/ui/components/command/command.test.d.ts +2 -0
  908. package/dist/src/ui/components/command/command.test.d.ts.map +1 -0
  909. package/dist/src/ui/components/command/command.test.js +11 -0
  910. package/dist/src/ui/components/command/command.test.js.map +1 -0
  911. package/dist/src/ui/components/enum-field/enum-field.d.ts +1 -2
  912. package/dist/src/ui/components/enum-field/enum-field.d.ts.map +1 -1
  913. package/dist/src/ui/components/enum-field/enum-field.js +1 -2
  914. package/dist/src/ui/components/enum-field/enum-field.js.map +1 -1
  915. package/dist/src/ui/components/enum-field/enum-field.stories.d.ts +19 -0
  916. package/dist/src/ui/components/enum-field/enum-field.stories.d.ts.map +1 -0
  917. package/dist/src/ui/components/enum-field/enum-field.stories.js +247 -0
  918. package/dist/src/ui/components/enum-field/enum-field.stories.js.map +1 -0
  919. package/dist/src/ui/components/enum-field/enum-field.test.d.ts +2 -0
  920. package/dist/src/ui/components/enum-field/enum-field.test.d.ts.map +1 -0
  921. package/dist/src/ui/components/enum-field/enum-field.test.js +87 -0
  922. package/dist/src/ui/components/enum-field/enum-field.test.js.map +1 -0
  923. package/dist/src/ui/components/enum-field/types.d.ts +1 -1
  924. package/dist/src/ui/components/enum-field/types.d.ts.map +1 -1
  925. package/dist/src/ui/components/form/form.d.ts.map +1 -1
  926. package/dist/src/ui/components/form/form.js +1 -2
  927. package/dist/src/ui/components/form/form.js.map +1 -1
  928. package/dist/src/ui/components/form-description/form-description.js +1 -1
  929. package/dist/src/ui/components/form-description/form-description.js.map +1 -1
  930. package/dist/src/ui/components/form-description/form-description.stories.d.ts +17 -0
  931. package/dist/src/ui/components/form-description/form-description.stories.d.ts.map +1 -0
  932. package/dist/src/ui/components/form-description/form-description.stories.js +25 -0
  933. package/dist/src/ui/components/form-description/form-description.stories.js.map +1 -0
  934. package/dist/src/ui/components/form-description/form-description.test.d.ts +2 -0
  935. package/dist/src/ui/components/form-description/form-description.test.d.ts.map +1 -0
  936. package/dist/src/ui/components/form-description/form-description.test.js +29 -0
  937. package/dist/src/ui/components/form-description/form-description.test.js.map +1 -0
  938. package/dist/src/ui/components/form-group/form-group.test.d.ts +2 -0
  939. package/dist/src/ui/components/form-group/form-group.test.d.ts.map +1 -0
  940. package/dist/src/ui/components/form-group/form-group.test.js +16 -0
  941. package/dist/src/ui/components/form-group/form-group.test.js.map +1 -0
  942. package/dist/src/ui/components/form-label/form-label.d.ts.map +1 -1
  943. package/dist/src/ui/components/form-label/form-label.js +1 -2
  944. package/dist/src/ui/components/form-label/form-label.js.map +1 -1
  945. package/dist/src/ui/components/form-label/form-label.stories.d.ts +11 -0
  946. package/dist/src/ui/components/form-label/form-label.stories.d.ts.map +1 -0
  947. package/dist/src/ui/components/form-label/form-label.stories.js +74 -0
  948. package/dist/src/ui/components/form-label/form-label.stories.js.map +1 -0
  949. package/dist/src/ui/components/form-label/form-label.test.d.ts +2 -0
  950. package/dist/src/ui/components/form-label/form-label.test.d.ts.map +1 -0
  951. package/dist/src/ui/components/form-label/form-label.test.js +56 -0
  952. package/dist/src/ui/components/form-label/form-label.test.js.map +1 -0
  953. package/dist/src/ui/components/form-message/form-message.js +1 -1
  954. package/dist/src/ui/components/form-message/form-message.js.map +1 -1
  955. package/dist/src/ui/components/form-message/form-message.stories.d.ts +9 -0
  956. package/dist/src/ui/components/form-message/form-message.stories.d.ts.map +1 -0
  957. package/dist/src/ui/components/form-message/form-message.stories.js +43 -0
  958. package/dist/src/ui/components/form-message/form-message.stories.js.map +1 -0
  959. package/dist/src/ui/components/form-message/form-message.test.d.ts +2 -0
  960. package/dist/src/ui/components/form-message/form-message.test.d.ts.map +1 -0
  961. package/dist/src/ui/components/form-message/form-message.test.js +49 -0
  962. package/dist/src/ui/components/form-message/form-message.test.js.map +1 -0
  963. package/dist/src/ui/components/form-message/message-list.js +1 -1
  964. package/dist/src/ui/components/form-message/message-list.js.map +1 -1
  965. package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +1 -1
  966. package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts.map +1 -1
  967. package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js +1 -7
  968. package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
  969. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +1 -1
  970. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts.map +1 -1
  971. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js +1 -2
  972. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
  973. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.d.ts +1 -1
  974. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.d.ts.map +1 -1
  975. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js +2 -3
  976. package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
  977. package/dist/src/ui/components/id-autocomplete/id-autocomplete.d.ts.map +1 -1
  978. package/dist/src/ui/components/id-autocomplete/id-autocomplete.js +1 -13
  979. package/dist/src/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
  980. package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.d.ts +2 -0
  981. package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.d.ts.map +1 -0
  982. package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.js +134 -0
  983. package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.js.map +1 -0
  984. package/dist/src/ui/components/id-autocomplete/types.d.ts +1 -2
  985. package/dist/src/ui/components/id-autocomplete/types.d.ts.map +1 -1
  986. package/dist/src/ui/components/index.d.ts +11 -0
  987. package/dist/src/ui/components/index.d.ts.map +1 -1
  988. package/dist/src/ui/components/index.js +11 -0
  989. package/dist/src/ui/components/index.js.map +1 -1
  990. package/dist/src/ui/components/input/index.d.ts +3 -1
  991. package/dist/src/ui/components/input/index.d.ts.map +1 -1
  992. package/dist/src/ui/components/input/index.js +1 -0
  993. package/dist/src/ui/components/input/index.js.map +1 -1
  994. package/dist/src/ui/components/input/input.d.ts.map +1 -1
  995. package/dist/src/ui/components/input/input.js +5 -1
  996. package/dist/src/ui/components/input/input.js.map +1 -1
  997. package/dist/src/ui/components/input/input.stories.d.ts +40 -0
  998. package/dist/src/ui/components/input/input.stories.d.ts.map +1 -0
  999. package/dist/src/ui/components/input/input.stories.js +70 -0
  1000. package/dist/src/ui/components/input/input.stories.js.map +1 -0
  1001. package/dist/src/ui/components/input/input.test.d.ts +2 -0
  1002. package/dist/src/ui/components/input/input.test.d.ts.map +1 -0
  1003. package/dist/src/ui/components/input/input.test.js +46 -0
  1004. package/dist/src/ui/components/input/input.test.js.map +1 -0
  1005. package/dist/src/ui/components/input/splitted-input-diff.d.ts +3 -3
  1006. package/dist/src/ui/components/input/splitted-input-diff.d.ts.map +1 -1
  1007. package/dist/src/ui/components/input/splitted-input-diff.js +2 -5
  1008. package/dist/src/ui/components/input/splitted-input-diff.js.map +1 -1
  1009. package/dist/src/ui/components/input/subcomponent/input-diff.js +1 -1
  1010. package/dist/src/ui/components/input/subcomponent/input-diff.js.map +1 -1
  1011. package/dist/src/ui/components/input/subcomponent/text-diff.d.ts +1 -1
  1012. package/dist/src/ui/components/input/subcomponent/text-diff.d.ts.map +1 -1
  1013. package/dist/src/ui/components/input/subcomponent/text-diff.js +1 -1
  1014. package/dist/src/ui/components/input/subcomponent/text-diff.js.map +1 -1
  1015. package/dist/src/ui/components/popover/popover.js +1 -1
  1016. package/dist/src/ui/components/popover/popover.js.map +1 -1
  1017. package/dist/src/ui/components/popover/popover.test.d.ts +2 -0
  1018. package/dist/src/ui/components/popover/popover.test.d.ts.map +1 -0
  1019. package/dist/src/ui/components/popover/popover.test.js +11 -0
  1020. package/dist/src/ui/components/popover/popover.test.js.map +1 -0
  1021. package/dist/src/ui/components/radio-group-field/index.d.ts +2 -1
  1022. package/dist/src/ui/components/radio-group-field/index.d.ts.map +1 -1
  1023. package/dist/src/ui/components/radio-group-field/index.js +2 -1
  1024. package/dist/src/ui/components/radio-group-field/index.js.map +1 -1
  1025. package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts +5 -6
  1026. package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts.map +1 -1
  1027. package/dist/src/ui/components/radio-group-field/radio-group-field.js +7 -9
  1028. package/dist/src/ui/components/radio-group-field/radio-group-field.js.map +1 -1
  1029. package/dist/src/ui/components/radio-group-field/radio-group-field.stories.d.ts +48 -0
  1030. package/dist/src/ui/components/radio-group-field/radio-group-field.stories.d.ts.map +1 -0
  1031. package/dist/src/ui/components/radio-group-field/radio-group-field.stories.js +126 -0
  1032. package/dist/src/ui/components/radio-group-field/radio-group-field.stories.js.map +1 -0
  1033. package/dist/src/ui/components/radio-group-field/radio-group-field.test.d.ts +2 -0
  1034. package/dist/src/ui/components/radio-group-field/radio-group-field.test.d.ts.map +1 -0
  1035. package/dist/src/ui/components/radio-group-field/radio-group-field.test.js +128 -0
  1036. package/dist/src/ui/components/radio-group-field/radio-group-field.test.js.map +1 -0
  1037. package/dist/src/ui/components/radio-group-field/radio-group.test.d.ts +2 -0
  1038. package/dist/src/ui/components/radio-group-field/radio-group.test.d.ts.map +1 -0
  1039. package/dist/src/ui/components/radio-group-field/radio-group.test.js +74 -0
  1040. package/dist/src/ui/components/radio-group-field/radio-group.test.js.map +1 -0
  1041. package/dist/src/ui/components/radio-group-field/radio.d.ts.map +1 -1
  1042. package/dist/src/ui/components/radio-group-field/radio.js +1 -2
  1043. package/dist/src/ui/components/radio-group-field/radio.js.map +1 -1
  1044. package/dist/src/ui/components/radio-group-field/radio.test.d.ts +2 -0
  1045. package/dist/src/ui/components/radio-group-field/radio.test.d.ts.map +1 -0
  1046. package/dist/src/ui/components/radio-group-field/radio.test.js +60 -0
  1047. package/dist/src/ui/components/radio-group-field/radio.test.js.map +1 -0
  1048. package/dist/src/ui/components/select-field/content.d.ts +2 -2
  1049. package/dist/src/ui/components/select-field/content.d.ts.map +1 -1
  1050. package/dist/src/ui/components/select-field/content.js +2 -5
  1051. package/dist/src/ui/components/select-field/content.js.map +1 -1
  1052. package/dist/src/ui/components/select-field/select-field.d.ts +1 -2
  1053. package/dist/src/ui/components/select-field/select-field.d.ts.map +1 -1
  1054. package/dist/src/ui/components/select-field/select-field.js +1 -10
  1055. package/dist/src/ui/components/select-field/select-field.js.map +1 -1
  1056. package/dist/src/ui/components/select-field/select-field.stories.d.ts +19 -0
  1057. package/dist/src/ui/components/select-field/select-field.stories.d.ts.map +1 -0
  1058. package/dist/src/ui/components/select-field/select-field.stories.js +251 -0
  1059. package/dist/src/ui/components/select-field/select-field.stories.js.map +1 -0
  1060. package/dist/src/ui/components/select-field/select-field.test.d.ts +2 -0
  1061. package/dist/src/ui/components/select-field/select-field.test.d.ts.map +1 -0
  1062. package/dist/src/ui/components/select-field/select-field.test.js +131 -0
  1063. package/dist/src/ui/components/select-field/select-field.test.js.map +1 -0
  1064. package/dist/src/ui/components/select-field/selected-content.d.ts +1 -1
  1065. package/dist/src/ui/components/select-field/selected-content.d.ts.map +1 -1
  1066. package/dist/src/ui/components/select-field/selected-content.js +1 -2
  1067. package/dist/src/ui/components/select-field/selected-content.js.map +1 -1
  1068. package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts +2 -2
  1069. package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -1
  1070. package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js +2 -3
  1071. package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
  1072. package/dist/src/ui/components/select-field/use-select-field.d.ts +1 -1
  1073. package/dist/src/ui/components/select-field/use-select-field.d.ts.map +1 -1
  1074. package/dist/src/ui/components/select-field/use-select-field.js.map +1 -1
  1075. package/dist/src/ui/components/text-field/text-field.d.ts +2 -3
  1076. package/dist/src/ui/components/text-field/text-field.d.ts.map +1 -1
  1077. package/dist/src/ui/components/text-field/text-field.js +7 -3
  1078. package/dist/src/ui/components/text-field/text-field.js.map +1 -1
  1079. package/dist/src/ui/components/text-field/text-field.test.d.ts +2 -0
  1080. package/dist/src/ui/components/text-field/text-field.test.d.ts.map +1 -0
  1081. package/dist/src/ui/components/text-field/text-field.test.js +81 -0
  1082. package/dist/src/ui/components/text-field/text-field.test.js.map +1 -0
  1083. package/dist/src/ui/components/text-input/index.js +1 -0
  1084. package/dist/src/ui/components/text-input/index.js.map +1 -1
  1085. package/dist/src/ui/components/text-input/text-input-diff.d.ts +1 -1
  1086. package/dist/src/ui/components/text-input/text-input-diff.d.ts.map +1 -1
  1087. package/dist/src/ui/components/text-input/text-input-diff.js +1 -3
  1088. package/dist/src/ui/components/text-input/text-input-diff.js.map +1 -1
  1089. package/dist/src/ui/components/text-input/text-input.d.ts +1 -1
  1090. package/dist/src/ui/components/text-input/text-input.d.ts.map +1 -1
  1091. package/dist/src/ui/components/text-input/text-input.js +1 -9
  1092. package/dist/src/ui/components/text-input/text-input.js.map +1 -1
  1093. package/dist/src/ui/components/text-input/text-input.stories.d.ts +167 -0
  1094. package/dist/src/ui/components/text-input/text-input.stories.d.ts.map +1 -0
  1095. package/dist/src/ui/components/text-input/text-input.stories.js +109 -0
  1096. package/dist/src/ui/components/text-input/text-input.stories.js.map +1 -0
  1097. package/dist/src/ui/components/tooltip/tooltip.d.ts +1 -2
  1098. package/dist/src/ui/components/tooltip/tooltip.d.ts.map +1 -1
  1099. package/dist/src/ui/components/tooltip/tooltip.js +3 -4
  1100. package/dist/src/ui/components/tooltip/tooltip.js.map +1 -1
  1101. package/dist/src/ui/components/tooltip/tooltip.stories.d.ts +11 -0
  1102. package/dist/src/ui/components/tooltip/tooltip.stories.d.ts.map +1 -0
  1103. package/dist/src/ui/components/tooltip/tooltip.stories.js +87 -0
  1104. package/dist/src/ui/components/tooltip/tooltip.stories.js.map +1 -0
  1105. package/dist/src/ui/components/tooltip/tooltip.test.d.ts +2 -0
  1106. package/dist/src/ui/components/tooltip/tooltip.test.d.ts.map +1 -0
  1107. package/dist/src/ui/components/tooltip/tooltip.test.js +60 -0
  1108. package/dist/src/ui/components/tooltip/tooltip.test.js.map +1 -0
  1109. package/dist/src/ui/components/value-transformer/index.d.ts +0 -1
  1110. package/dist/src/ui/components/value-transformer/index.d.ts.map +1 -1
  1111. package/dist/src/ui/components/value-transformer/index.js +0 -1
  1112. package/dist/src/ui/components/value-transformer/index.js.map +1 -1
  1113. package/dist/src/ui/components/value-transformer/value-transformer.d.ts +2 -2
  1114. package/dist/src/ui/components/value-transformer/value-transformer.d.ts.map +1 -1
  1115. package/dist/src/ui/components/value-transformer/value-transformer.js +2 -6
  1116. package/dist/src/ui/components/value-transformer/value-transformer.js.map +1 -1
  1117. package/dist/src/ui/components/value-transformer/value-transformer.test.d.ts +2 -0
  1118. package/dist/src/ui/components/value-transformer/value-transformer.test.d.ts.map +1 -0
  1119. package/dist/src/ui/components/value-transformer/value-transformer.test.js +105 -0
  1120. package/dist/src/ui/components/value-transformer/value-transformer.test.js.map +1 -0
  1121. package/dist/src/ui/components/with-field-validation/with-field-validation.d.ts +3 -3
  1122. package/dist/src/ui/components/with-field-validation/with-field-validation.d.ts.map +1 -1
  1123. package/dist/src/ui/components/with-field-validation/with-field-validation.js +3 -6
  1124. package/dist/src/ui/components/with-field-validation/with-field-validation.js.map +1 -1
  1125. package/dist/src/ui/components/with-field-validation/with-field-validation.test.d.ts +2 -0
  1126. package/dist/src/ui/components/with-field-validation/with-field-validation.test.d.ts.map +1 -0
  1127. package/dist/src/ui/components/with-field-validation/with-field-validation.test.js +139 -0
  1128. package/dist/src/ui/components/with-field-validation/with-field-validation.test.js.map +1 -0
  1129. package/dist/src/ui/lib/decorators.d.ts.map +1 -1
  1130. package/dist/src/ui/lib/decorators.js +1 -3
  1131. package/dist/src/ui/lib/decorators.js.map +1 -1
  1132. package/dist/src/ui/lib/index.d.ts +0 -1
  1133. package/dist/src/ui/lib/index.d.ts.map +1 -1
  1134. package/dist/src/ui/lib/index.js +0 -1
  1135. package/dist/src/ui/lib/index.js.map +1 -1
  1136. package/dist/src/ui/lib/is-empty.test.d.ts +2 -0
  1137. package/dist/src/ui/lib/is-empty.test.d.ts.map +1 -0
  1138. package/dist/src/ui/lib/is-empty.test.js +87 -0
  1139. package/dist/src/ui/lib/is-empty.test.js.map +1 -0
  1140. package/dist/src/ui/lib/shared-value-transformers.d.ts +1 -1
  1141. package/dist/src/ui/lib/shared-value-transformers.d.ts.map +1 -1
  1142. package/dist/src/ui/lib/testing.d.ts.map +1 -1
  1143. package/dist/src/ui/lib/testing.js +1 -1
  1144. package/dist/src/ui/lib/testing.js.map +1 -1
  1145. package/dist/src/ui/lib/value-cast.js +1 -2
  1146. package/dist/src/ui/lib/value-cast.js.map +1 -1
  1147. package/dist/src/utils/cn.d.ts.map +1 -0
  1148. package/dist/src/utils/cn.js.map +1 -0
  1149. package/dist/src/{powerhouse/utils → utils}/fixedForwardRef.d.ts +0 -1
  1150. package/dist/src/utils/fixedForwardRef.d.ts.map +1 -0
  1151. package/dist/src/{powerhouse/utils → utils}/fixedForwardRef.js +0 -2
  1152. package/dist/src/utils/fixedForwardRef.js.map +1 -0
  1153. package/dist/src/utils/index.d.ts +3 -0
  1154. package/dist/src/utils/index.d.ts.map +1 -0
  1155. package/dist/src/utils/index.js +3 -0
  1156. package/dist/src/utils/index.js.map +1 -0
  1157. package/dist/tsconfig.tsbuildinfo +1 -0
  1158. package/dist/vitest.config.d.ts +3 -0
  1159. package/dist/vitest.config.d.ts.map +1 -0
  1160. package/dist/vitest.config.js +9 -0
  1161. package/dist/vitest.config.js.map +1 -0
  1162. package/package.json +23 -34
  1163. package/dist/src/connect/constants/drives.d.ts +0 -7
  1164. package/dist/src/connect/constants/drives.d.ts.map +0 -1
  1165. package/dist/src/connect/constants/drives.js +0 -7
  1166. package/dist/src/connect/constants/drives.js.map +0 -1
  1167. package/dist/src/connect/constants/nodes.d.ts +0 -8
  1168. package/dist/src/connect/constants/nodes.d.ts.map +0 -1
  1169. package/dist/src/connect/constants/nodes.js +0 -8
  1170. package/dist/src/connect/constants/nodes.js.map +0 -1
  1171. package/dist/src/powerhouse/utils/fixedForwardRef.d.ts.map +0 -1
  1172. package/dist/src/powerhouse/utils/fixedForwardRef.js.map +0 -1
  1173. package/dist/src/rwa/mocks/assets.d.ts +0 -19
  1174. package/dist/src/rwa/mocks/assets.d.ts.map +0 -1
  1175. package/dist/src/rwa/mocks/assets.js.map +0 -1
  1176. package/dist/src/rwa/mocks/index.d.ts +0 -4
  1177. package/dist/src/rwa/mocks/index.d.ts.map +0 -1
  1178. package/dist/src/rwa/mocks/index.js +0 -4
  1179. package/dist/src/rwa/mocks/index.js.map +0 -1
  1180. package/dist/src/rwa/mocks/state.d.ts +0 -4
  1181. package/dist/src/rwa/mocks/state.d.ts.map +0 -1
  1182. package/dist/src/rwa/mocks/state.js +0 -21
  1183. package/dist/src/rwa/mocks/state.js.map +0 -1
  1184. package/dist/src/rwa/mocks/transactions.d.ts +0 -7
  1185. package/dist/src/rwa/mocks/transactions.d.ts.map +0 -1
  1186. package/dist/src/rwa/mocks/transactions.js +0 -84
  1187. package/dist/src/rwa/mocks/transactions.js.map +0 -1
  1188. package/dist/src/rwa/types/index.d.ts +0 -5
  1189. package/dist/src/rwa/types/index.d.ts.map +0 -1
  1190. package/dist/src/rwa/types/index.js +0 -5
  1191. package/dist/src/rwa/types/index.js.map +0 -1
  1192. package/dist/src/ui/components/with-field-validation/index.d.ts +0 -2
  1193. package/dist/src/ui/components/with-field-validation/index.d.ts.map +0 -1
  1194. package/dist/src/ui/components/with-field-validation/index.js +0 -2
  1195. package/dist/src/ui/components/with-field-validation/index.js.map +0 -1
  1196. package/dist/src/ui/lib/cn.d.ts.map +0 -1
  1197. package/dist/src/ui/lib/cn.js.map +0 -1
  1198. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  1199. /package/{dist/src/assets → assets}/connect-loader.mp4 +0 -0
  1200. /package/{dist/src/assets → assets}/connect.png +0 -0
  1201. /package/{dist/src/assets → assets}/home-bg.avif +0 -0
  1202. /package/{dist/src/assets → assets}/home-bg.png +0 -0
  1203. /package/{dist/src/assets → assets}/icons/budget.png +0 -0
  1204. /package/{dist/src/assets → assets}/icons/global.png +0 -0
  1205. /package/{dist/src/assets → assets}/icons/legal.png +0 -0
  1206. /package/{dist/src/assets → assets}/icons/profile.png +0 -0
  1207. /package/{dist/src/assets → assets}/icons/rwa-report.png +0 -0
  1208. /package/{dist/src/assets → assets}/icons/template.png +0 -0
  1209. /package/{dist/src/assets → assets}/powerhouse-rounded.png +0 -0
  1210. /package/{dist/src/assets → assets}/renown-hover.png +0 -0
  1211. /package/{dist/src/assets → assets}/renown-short-hover.png +0 -0
  1212. /package/{dist/src/assets → assets}/renown-short.png +0 -0
  1213. /package/{dist/src/assets → assets}/renown.png +0 -0
  1214. /package/dist/src/{ui/lib → utils}/cn.d.ts +0 -0
  1215. /package/dist/src/{ui/lib → utils}/cn.js +0 -0
@@ -0,0 +1,87 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { renderWithForm } from "@powerhousedao/design-system";
3
+ import { screen, waitFor } from "@testing-library/react";
4
+ import { userEvent } from "@testing-library/user-event";
5
+ import { describe, expect, it, vi } from "vitest";
6
+ import { EnumField } from "./enum-field.js";
7
+ describe("EnumField Component", () => {
8
+ const defaultProps = {
9
+ name: "enum",
10
+ variant: "RadioGroup",
11
+ options: [
12
+ { value: "option1", label: "Option 1" },
13
+ { value: "option2", label: "Option 2" },
14
+ { value: "option3", label: "Option 3" },
15
+ ],
16
+ };
17
+ window.HTMLElement.prototype.scrollIntoView = vi.fn();
18
+ window.Element.prototype.scrollTo = vi.fn();
19
+ it("should match snapshot", () => {
20
+ const { asFragment } = renderWithForm(_jsx(EnumField, { ...defaultProps }));
21
+ expect(asFragment()).toMatchSnapshot();
22
+ });
23
+ it("should match snapshot with Select variant", () => {
24
+ const { asFragment } = renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select" }));
25
+ expect(asFragment()).toMatchSnapshot();
26
+ });
27
+ it("should render label when provided", () => {
28
+ renderWithForm(_jsx(EnumField, { ...defaultProps, label: "Test Label" }));
29
+ expect(screen.getByText("Test Label")).toBeInTheDocument();
30
+ });
31
+ it("should render description when provided", () => {
32
+ renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", description: "Test description" }));
33
+ expect(screen.getByText("Test description")).toBeInTheDocument();
34
+ });
35
+ it("should render warning messages when provided", () => {
36
+ renderWithForm(_jsx(EnumField, { ...defaultProps, warnings: ["Warning message"] }));
37
+ expect(screen.getByText("Warning message")).toBeInTheDocument();
38
+ });
39
+ it("should render error messages when provided", async () => {
40
+ renderWithForm(_jsx(EnumField, { ...defaultProps, errors: ["Error message"] }));
41
+ await waitFor(() => expect(screen.getByText("Error message")).toBeInTheDocument());
42
+ });
43
+ it("should handle value changes in RadioGroup variant", async () => {
44
+ const user = userEvent.setup();
45
+ const onChange = vi.fn();
46
+ renderWithForm(_jsx(EnumField, { ...defaultProps, value: "option1", onChange: onChange }));
47
+ const radio = screen.getByLabelText("Option 2");
48
+ await user.click(radio);
49
+ expect(onChange).toHaveBeenCalledWith("option2");
50
+ });
51
+ it("should handle value changes in Select variant", async () => {
52
+ const user = userEvent.setup();
53
+ const onChange = vi.fn();
54
+ renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", multiple: true, value: ["option1"], onChange: onChange }));
55
+ const select = screen.getByRole("combobox");
56
+ await user.click(select);
57
+ await user.click(screen.getByText("Option 2"));
58
+ expect(onChange).toHaveBeenCalledWith(["option1", "option2"]);
59
+ });
60
+ it("should show required indicator when required prop is true", () => {
61
+ renderWithForm(_jsx(EnumField, { ...defaultProps, label: "Test Label", required: true }));
62
+ expect(screen.getByText("*")).toBeInTheDocument();
63
+ });
64
+ it("should disable the field when disabled prop is true", () => {
65
+ renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", disabled: true }));
66
+ const select = screen.getByRole("combobox");
67
+ expect(select).toBeDisabled();
68
+ });
69
+ it("should default to Select variant when no variant provided and has 7 options", () => {
70
+ const propsWithSevenOptions = {
71
+ name: "enum",
72
+ options: [
73
+ { value: "option1", label: "Option 1" },
74
+ { value: "option2", label: "Option 2" },
75
+ { value: "option3", label: "Option 3" },
76
+ { value: "option4", label: "Option 4" },
77
+ { value: "option5", label: "Option 5" },
78
+ { value: "option6", label: "Option 6" },
79
+ { value: "option7", label: "Option 7" },
80
+ ],
81
+ };
82
+ renderWithForm(_jsx(EnumField, { ...propsWithSevenOptions }));
83
+ // Verify it renders as a Select
84
+ expect(screen.getByRole("combobox")).toBeInTheDocument();
85
+ });
86
+ });
87
+ //# sourceMappingURL=enum-field.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-field.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/enum-field/enum-field.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM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H,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,cAAc,CAAC,KAAC,SAAS,OAAK,YAAY,EAAE,OAAO,EAAC,QAAQ,EAAC,QAAQ,SAAG,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6EAA6E,EAAE,GAAG,EAAE;QACrF,MAAM,qBAAqB,GAAG;YAC5B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;aACxC;SACF,CAAC;QACF,cAAc,CAAC,KAAC,SAAS,OAAK,qBAAqB,GAAI,CAAC,CAAC;QACzD,gCAAgC;QAChC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IconName } from "#powerhouse";
1
+ import type { IconName } from "@powerhousedao/design-system";
2
2
  export interface RadioGroupProps {
3
3
  options?: {
4
4
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources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;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,qGAuJhB,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAInE,KAAK,WAAW,GAAG,aAAa,GAAG;IACjC;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,UAAU,SAAS;IACjB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,WAAW,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAExE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,cAAc,CAAC,EAAE,YAAY,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,EAAE,CACvB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,MAAM,EAAE,KACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,qGAuJhB,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { castValue, deepEqual, FormServerErrorMessage, isEmpty, } from "@powerhousedao/design-system";
2
3
  import { forwardRef, useCallback, useEffect, useId, useImperativeHandle, } from "react";
3
4
  import { FormProvider, useForm } from "react-hook-form";
4
- import { castValue, deepEqual, isEmpty } from "../../lib/index.js";
5
- import { FormServerErrorMessage } from "../form-message/form-server-error-message.js";
6
5
  import { defaultOnError } from "./utils.js";
7
6
  /**
8
7
  * A form component that integrates with react-hook-form for form state management and validation.
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA0F5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,QAAQ,EACR,uBAAuB,GAAG,KAAK,EAC/B,iBAAiB,GAAG,KAAK,EACzB,aAAa,EACb,0BAA0B,GAAG,KAAK,EAClC,sBAAsB,GAAG,cAAc,EACvC,SAAS,EACT,cAAc,GACf,EACD,GAAG,EACH,EAAE;IACF,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,OAAO,CAAC;QACtB,aAAa;QACb,YAAY,EAAE,KAAK,EAAE,6BAA6B;QAClD,GAAG,cAAc;KAClB,CAAC,CAAC;IACH,mBAAmB,CAAC,GAAG,EAAE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,MAAM,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACL,MAAC,YAAY,OAAK,OAAO,aACtB,CAAC,0BAA0B;gBAC1B,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,IAAI,CACpD,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,sBAAsB,KAAG,GACtB,CACP,EAEH,eACE,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,EAC/C,SAAS,EAAE,SAAS,EACpB,UAAU,kBAET,OAAO,QAAQ,KAAK,UAAU;oBAC7B,CAAC,CAAC,QAAQ,CAAC;wBACP,GAAG,OAAO;wBACV,aAAa;wBACb,MAAM;qBACP,CAAC;oBACJ,CAAC,CAAC,QAAQ,GACP,IACM,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../../lib/index.js";
2
+ import { cn } from "@powerhousedao/design-system";
3
3
  const FormDescription = ({ children, as, className, }) => {
4
4
  const Component = as ?? "p";
5
5
  return (_jsx(Component, { className: cn("font-sans text-sm font-normal leading-5 text-gray-600 dark:text-gray-500", className), children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"form-description.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAOxC,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,GAAG,CAAC;IAE5B,OAAO,CACL,KAAC,SAAS,IACR,SAAS,EAAE,EAAE,CACX,0EAA0E,EAC1E,SAAS,CACV,YAEA,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"form-description.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAOlD,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,GAAG,CAAC;IAE5B,OAAO,CACL,KAAC,SAAS,IACR,SAAS,EAAE,EAAE,CACX,0EAA0E,EAC1E,SAAS,CACV,YAEA,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<import("./form-description.js").FormDescriptionProps>;
5
+ parameters: {
6
+ layout: string;
7
+ chromatic: {
8
+ disableSnapshot: boolean;
9
+ };
10
+ };
11
+ tags: string[];
12
+ };
13
+ export default meta;
14
+ type Story = StoryObj<typeof meta>;
15
+ export declare const Default: Story;
16
+ export declare const CustomClassName: Story;
17
+ //# sourceMappingURL=form-description.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-description.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;CAU8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAK7B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { FormDescription } from "./form-description.js";
2
+ const meta = {
3
+ title: "UI/FormDescription",
4
+ component: FormDescription,
5
+ parameters: {
6
+ layout: "centered",
7
+ chromatic: {
8
+ disableSnapshot: true,
9
+ },
10
+ },
11
+ tags: ["autodocs"],
12
+ };
13
+ export default meta;
14
+ export const Default = {
15
+ args: {
16
+ children: "This is a helpful description for the form field above.",
17
+ },
18
+ };
19
+ export const CustomClassName = {
20
+ args: {
21
+ className: "text-blue-600",
22
+ children: "Description with custom styling",
23
+ },
24
+ };
25
+ //# sourceMappingURL=form-description.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-description.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;CACoB,CAAC;AAEzC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,yDAAyD;KACpE;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,iCAAiC;KAC5C;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form-description.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-description.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render, screen } from "@testing-library/react";
3
+ import { describe, expect, it } from "vitest";
4
+ import { FormDescription } from "./form-description.js";
5
+ describe("FormDescription", () => {
6
+ it("should render correctly", () => {
7
+ const { container } = render(_jsx(FormDescription, { children: "Test description" }));
8
+ expect(container).toMatchSnapshot();
9
+ });
10
+ it("should render children content", () => {
11
+ render(_jsx(FormDescription, { children: "Test description" }));
12
+ expect(screen.getByText("Test description")).toBeInTheDocument();
13
+ });
14
+ it("should apply custom className", () => {
15
+ render(
16
+ // for testing purposes, we disable the no-custom-classname rule
17
+ _jsx(FormDescription, { className: "custom-class", children: "Test description" }));
18
+ expect(screen.getByText("Test description")).toHaveClass("custom-class");
19
+ });
20
+ it("should render with custom element type", () => {
21
+ render(_jsx(FormDescription, { as: "span", children: "Test description" }));
22
+ expect(screen.getByText("Test description").tagName).toBe("SPAN");
23
+ });
24
+ it("should use paragraph as default element type", () => {
25
+ render(_jsx(FormDescription, { children: "Test description" }));
26
+ expect(screen.getByText("Test description").tagName).toBe("P");
27
+ });
28
+ });
29
+ //# sourceMappingURL=form-description.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-description.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,EAAE,S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ot":"","sources":["../../../../../src/ui/components/form-group/form-group.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { describe, it, expect } from "vitest";
3
+ import { render, screen } from "@testing-library/react";
4
+ import { FormGroup } from "./form-group.js";
5
+ describe("FormGroup", () => {
6
+ it("matches snapshot", () => {
7
+ const { asFragment } = render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", placeholder: "Enter text" }), _jsx("label", { children: "Sample Label" })] }));
8
+ expect(asFragment()).toMatchSnapshot();
9
+ });
10
+ it("renders children correctly", () => {
11
+ render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", "data-testid": "child-input" }), _jsx("label", { children: "Test Label" })] }));
12
+ expect(screen.getByTestId("child-input")).toBeInTheDocument();
13
+ expect(screen.getByText("Test Label")).toBeInTheDocument();
14
+ });
15
+ });
16
+ //# sourceMappingURL=form-group.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-group.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-group/form-group.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAC3B,MAAC,SAAS,eACR,gBAAO,IAAI,EAAC,MAAM,EAAC,WAAW,EAAC,YAAY,GAAG,EAC9C,2CAA2B,IACjB,CACb,CAAC;QACF,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CACJ,MAAC,SAAS,eACR,gBAAO,IAAI,EAAC,MAAM,iBAAa,aAAa,GAAG,EAC/C,yCAAyB,IACf,CACb,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC9D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-label.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,iBAAiB,EAC7B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
1
+ {"version":3,"file":"form-label.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,iBAAiB,EAC7B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon, cn } from "#powerhouse";
3
- import { Tooltip, TooltipProvider } from "../tooltip/index.js";
2
+ import { Icon, Tooltip, TooltipProvider, cn, } from "@powerhousedao/design-system";
4
3
  export const FormLabel = ({ children, required, disabled, description, hasError, inline, className, ...htmlLabelProps }) => {
5
4
  const classes = cn("inline-flex items-center text-sm font-medium", inline ? "leading-[22px]" : "leading-4", `text-gray-900 ${inline ? "dark:text-gray-400" : "dark:text-gray-50"}`, hasError && "group-hover:!text-red-900 dark:group-hover:!text-red-900", hasError && inline && "text-red-800 dark:text-red-800", hasError && !inline && "text-red-900 dark:text-red-900", disabled &&
6
5
  `cursor-not-allowed text-gray-700 ${inline ? "dark:text-gray-600" : "dark:text-gray-300"}`, inline
@@ -1 +1 @@
1
- {"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAa/D,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,EACT,GAAG,cAAc,EAClB,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,EAAE,CAChB,8CAA8C,EAC9C,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,EACvC,iBAAiB,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,EAAE,EACtE,QAAQ,IAAI,0DAA0D,EACtE,QAAQ,IAAI,MAAM,IAAI,gCAAgC,EACtD,QAAQ,IAAI,CAAC,MAAM,IAAI,gCAAgC,EACvD,QAAQ;QACN,oCACE,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oBAClC,EAAE,EACJ,MAAM;QACJ,CAAC,CAAC,CAAC,QAAQ,IAAI,0DAA0D;QACzE,CAAC,CAAC,UAAU,EACd,SAAS,CACV,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,oBAAoB;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,UAAU,GAAG;QACjB,GAAG,cAAc;KAClB,CAAC;IAEF,OAAO,CACL,iBAAO,SAAS,EAAE,OAAO,KAAM,UAAU,aACtC,QAAQ,EACR,QAAQ,IAAI,CACX,eACE,SAAS,EAAE,EAAE,CACX,gGAAgG,EAChG,QAAQ;oBACN,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,4BAA4B,CAC5E,kBAGI,CACR,EAEA,WAAW,IAAI,CACd,KAAC,eAAe,cACd,KAAC,OAAO,IAAC,OAAO,EAAE,WAAW,YAC3B,KAAC,IAAI,IACH,IAAI,EAAC,YAAY,EACjB,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,EAAE,CACX,mGAAmG,EACnG,QAAQ,IAAI,eAAe,CAC5B,GACD,GACM,GACM,CACnB,IACK,CACT,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,eAAe,EACf,EAAE,GACH,MAAM,8BAA8B,CAAC;AAatC,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,EACT,GAAG,cAAc,E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const meta: Meta<typeof FormLabel>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithDescription: Story;
8
+ export declare const WithError: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const Required: Story;
11
+ //# sourceMappingURL=form-label.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-label.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAyChC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAK7B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { FormLabel } from "./form-label.js";
2
+ const meta = {
3
+ title: "UI/FormLabel",
4
+ component: FormLabel,
5
+ parameters: {
6
+ chromatic: {
7
+ disableSnapshot: true,
8
+ },
9
+ },
10
+ tags: ["autodocs"],
11
+ argTypes: {
12
+ required: {
13
+ control: {
14
+ type: "boolean",
15
+ },
16
+ description: "Whether the field is required",
17
+ },
18
+ description: {
19
+ control: {
20
+ type: "text",
21
+ },
22
+ description: "Tooltip text that appears when hovering over the info icon",
23
+ },
24
+ hasError: {
25
+ control: {
26
+ type: "boolean",
27
+ },
28
+ description: "Whether the label should show error styling",
29
+ },
30
+ disabled: {
31
+ control: {
32
+ type: "boolean",
33
+ },
34
+ description: "Whether the label is disabled",
35
+ },
36
+ className: {
37
+ control: {
38
+ type: "text",
39
+ },
40
+ description: "Additional CSS classes to apply to the label",
41
+ },
42
+ },
43
+ };
44
+ export default meta;
45
+ export const Default = {
46
+ args: {
47
+ children: "Hello, World!",
48
+ },
49
+ };
50
+ export const WithDescription = {
51
+ args: {
52
+ children: "Hello, World!",
53
+ description: "This is a description",
54
+ },
55
+ };
56
+ export const WithError = {
57
+ args: {
58
+ children: "Hello, World!",
59
+ hasError: true,
60
+ },
61
+ };
62
+ export const Disabled = {
63
+ args: {
64
+ children: "Hello, World!",
65
+ disabled: true,
66
+ },
67
+ };
68
+ export const Required = {
69
+ args: {
70
+ children: "Hello, World!",
71
+ required: true,
72
+ },
73
+ };
74
+ //# sourceMappingURL=form-label.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-label.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,+BAA+B;SAC7C;QACD,WAAW,EAAE;YACX,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;YACD,WAAW,EAAE,4DAA4D;SAC1E;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,6CAA6C;SAC3D;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,+BAA+B;SAC7C;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;YACD,WAAW,EAAE,8CAA8C;SAC5D;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;KAC1B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,WAAW,EAAE,uBAAuB;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form-label.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-label.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { fireEvent, render, screen } from "@testing-library/react";
3
+ import { FormLabel } from "./form-label.js";
4
+ describe("FormLabel Component", () => {
5
+ it("should match snapshot", () => {
6
+ const { asFragment } = render(_jsx(FormLabel, { "data-testid": "form-label", children: "label" }));
7
+ expect(asFragment()).toMatchSnapshot();
8
+ });
9
+ it("should display the correct label text", () => {
10
+ render(_jsx(FormLabel, { children: "Test Label" }));
11
+ expect(screen.getByText("Test Label")).toBeInTheDocument();
12
+ });
13
+ it("should forward the htmlFor attribute", () => {
14
+ render(_jsx(FormLabel, { htmlFor: "test-input", children: "Label" }));
15
+ const label = screen.getByText("Label");
16
+ expect(label).toHaveAttribute("for", "test-input");
17
+ });
18
+ it("should render children as expected", () => {
19
+ render(_jsxs(FormLabel, { children: ["Label ", _jsx("span", { "data-testid": "child-element", children: "Child" })] }));
20
+ expect(screen.getByText("Label")).toBeInTheDocument();
21
+ expect(screen.getByTestId("child-element")).toBeInTheDocument();
22
+ });
23
+ it("should handle click events", () => {
24
+ const handleClick = vi.fn();
25
+ render(_jsx(FormLabel, { onClick: handleClick, children: "Clickable Label" }));
26
+ const label = screen.getByText("Clickable Label");
27
+ fireEvent.click(label);
28
+ expect(handleClick).toHaveBeenCalledTimes(1);
29
+ });
30
+ it("should display an asterisk when required", () => {
31
+ render(_jsx(FormLabel, { required: true, children: "Required Label" }));
32
+ const asterisk = screen.getByText("*");
33
+ expect(asterisk).toBeInTheDocument();
34
+ });
35
+ it("should have not-allowed cursor when disabled", () => {
36
+ render(_jsx(FormLabel, { disabled: true, children: "Disabled Label" }));
37
+ const label = screen.getByText("Disabled Label");
38
+ expect(label).toHaveClass("cursor-not-allowed");
39
+ });
40
+ it("should display an icon when description is provided", () => {
41
+ render(_jsx(FormLabel, { description: "This is a description", children: "Label with Description" }));
42
+ const icon = screen.getByRole("button");
43
+ expect(icon).toBeInTheDocument();
44
+ // Check that the SVG is rendered with correct dimensions
45
+ const svg = icon.querySelector("svg");
46
+ expect(svg).toHaveStyle({ width: "16px", height: "16px" });
47
+ });
48
+ it("should apply custom styles", () => {
49
+ const customStyle = { color: "red", fontWeight: "bold" };
50
+ render(_jsx(FormLabel, { "data-testid": "styled-label", style: customStyle, children: "Styled Label" }));
51
+ const label = screen.getByTestId("styled-label");
52
+ expect(label.style.color).toBe(customStyle.color);
53
+ expect(label.style.fontWeight).toBe(customStyle.fontWeight);
54
+ });
55
+ });
56
+ //# sourceMappingURL=form-label.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-label.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAC3B,KAAC,SAAS,mBAAa,YAAY,sBAAkB,CACtD,CAAC;QACF,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,KAAC,SAAS,6BAAuB,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,KAAC,SAAS,IAAC,OAAO,EAAC,YAAY,sBAAkB,CAAC,CAAC;QAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CACJ,MAAC,SAAS,yBACF,8BAAkB,eAAe,sBAAa,IAC1C,CACb,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EAA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AC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACjC,yDAAyD;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,WAAW,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QACzD,MAAM,CACJ,KAAC,SAAS,mBAAa,cAAc,EAAC,KAAK,EAAE,WAAW,6BAE5C,CACb,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACjD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAClD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../../lib/index.js";
2
+ import { cn } from "@powerhousedao/design-system";
3
3
  const defaultElement = "p";
4
4
  export const FormMessage = ({ children, type = "info", as, className, ...props }) => {
5
5
  const Component = as || defaultElement;
@@ -1 +1 @@
1
- {"version":3,"file":"form-message.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAcxC,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAES,CAAC,EAChC,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,EAAE,EACF,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,cAAc,CAAC;IAEvC,MAAM,WAAW,GAAoC;QACnD,KAAK,EAAE,gCAAgC;QACvC,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,sCAAsC;KAChD,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,CAChB,mDAAmD,EACnD,WAAW,CAAC,IAAI,CAAC,EACjB,SAAS,CACV,CAAC;IAEF,iBAAiB;IACjB,OAAO,CACL,KAAC,SAAS,iBAAY,IAAI,EAAE,SAAS,EAAE,OAAO,KAAM,KAAK,YACtD,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"form-message.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAclD,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAES,CAAC,EAChC,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,EAAE,EACF,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,cAAc,CAAC;IAEvC,MAAM,WAAW,GAAoC;QACnD,KAAK,EAAE,gCAAgC;QACvC,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,sCAAsC;KAChD,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,CAChB,mDAAmD,EACnD,WAAW,CAAC,IAAI,CAAC,EACjB,SAAS,CACV,CAAC;IAEF,iBAAiB;IACjB,OAAO,CACL,KAAC,SAAS,iBAAY,IAAI,EAAE,SAAS,EAAE,OAAO,KAAM,KAAK,YACtD,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { FormMessage } from "./form-message.js";
3
+ declare const meta: Meta<typeof FormMessage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Info: Story;
7
+ export declare const Warning: Story;
8
+ export declare const Error: Story;
9
+ //# sourceMappingURL=form-message.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAqBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { FormMessage } from "./form-message.js";
2
+ const meta = {
3
+ title: "UI/FormMessage",
4
+ component: FormMessage,
5
+ parameters: {
6
+ chromatic: {
7
+ disableSnapshot: true,
8
+ },
9
+ },
10
+ argTypes: {
11
+ type: {
12
+ control: {
13
+ type: "select",
14
+ },
15
+ options: ["error", "info", "warning"],
16
+ },
17
+ children: {
18
+ control: {
19
+ type: "text",
20
+ },
21
+ },
22
+ },
23
+ };
24
+ export default meta;
25
+ export const Info = {
26
+ args: {
27
+ children: "Your changes will be automatically saved as you type",
28
+ type: "info",
29
+ },
30
+ };
31
+ export const Warning = {
32
+ args: {
33
+ children: "Please correct the errors before submitting",
34
+ type: "warning",
35
+ },
36
+ };
37
+ export const Error = {
38
+ args: {
39
+ children: "Please correct the errors before submitting",
40
+ type: "error",
41
+ },
42
+ };
43
+ //# sourceMappingURL=form-message.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-message.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;SACtC;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,QAAQ,EAAE,sDAAsD;QAChE,IAAI,EAAE,MAAM;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,6CAA6C;QACvD,IAAI,EAAE,SAAS;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,QAAQ,EAAE,6CAA6C;QACvD,IAAI,EAAE,OAAO;KACd;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form-message.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-message.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.test.tsx"],"names":[],"mappings":""}