@powerhousedao/design-system 4.1.0-dev.55 → 4.1.0-dev.57
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.
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/setupTests.js +2 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/src/connect/components/account-popover/account-popover-login.js +1 -1
- package/dist/src/connect/components/account-popover/account-popover-login.js.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover-user.js +2 -2
- package/dist/src/connect/components/account-popover/account-popover-user.js.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover.d.ts.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover.js +1 -1
- package/dist/src/connect/components/account-popover/account-popover.js.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover.stories.d.ts +14 -0
- package/dist/src/connect/components/account-popover/account-popover.stories.d.ts.map +1 -0
- package/dist/src/connect/components/account-popover/account-popover.stories.js +27 -0
- package/dist/src/connect/components/account-popover/account-popover.stories.js.map +1 -0
- package/dist/src/connect/components/animated-loader/animated-loader.d.ts +1 -1
- package/dist/src/connect/components/animated-loader/animated-loader.d.ts.map +1 -1
- package/dist/src/connect/components/animated-loader/animated-loader.js +2 -2
- package/dist/src/connect/components/animated-loader/animated-loader.js.map +1 -1
- package/dist/src/connect/components/animated-loader/animated-loader.stories.d.ts +8 -0
- package/dist/src/connect/components/animated-loader/animated-loader.stories.d.ts.map +1 -0
- package/dist/src/connect/components/animated-loader/animated-loader.stories.js +18 -0
- package/dist/src/connect/components/animated-loader/animated-loader.stories.js.map +1 -0
- package/dist/src/connect/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/src/connect/components/breadcrumbs/breadcrumbs.js +1 -2
- package/dist/src/connect/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/src/connect/components/combobox/combobox.js +1 -1
- package/dist/src/connect/components/combobox/combobox.js.map +1 -1
- package/dist/src/connect/components/combobox/combobox.stories.d.ts +11 -0
- package/dist/src/connect/components/combobox/combobox.stories.d.ts.map +1 -0
- package/dist/src/connect/components/combobox/combobox.stories.js +66 -0
- package/dist/src/connect/components/combobox/combobox.stories.js.map +1 -0
- package/dist/src/connect/components/cookie-banner/cookie-banner.d.ts.map +1 -1
- package/dist/src/connect/components/cookie-banner/cookie-banner.js +2 -2
- package/dist/src/connect/components/cookie-banner/cookie-banner.js.map +1 -1
- package/dist/src/connect/components/cookie-banner/cookie-banner.stories.d.ts +32 -0
- package/dist/src/connect/components/cookie-banner/cookie-banner.stories.d.ts.map +1 -0
- package/dist/src/connect/components/cookie-banner/cookie-banner.stories.js +34 -0
- package/dist/src/connect/components/cookie-banner/cookie-banner.stories.js.map +1 -0
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.d.ts +1 -1
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.d.ts.map +1 -1
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.js +1 -1
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.js.map +1 -1
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.d.ts +6 -0
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.d.ts.map +1 -0
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.js +12 -0
- package/dist/src/connect/components/default-editor-loader/default-editor-loader.stories.js.map +1 -0
- package/dist/src/connect/components/disclosure/disclosure.js +1 -1
- package/dist/src/connect/components/disclosure/disclosure.js.map +1 -1
- package/dist/src/connect/components/disclosure/disclosure.stories.d.ts +10 -0
- package/dist/src/connect/components/disclosure/disclosure.stories.d.ts.map +1 -0
- package/dist/src/connect/components/disclosure/disclosure.stories.js +21 -0
- package/dist/src/connect/components/disclosure/disclosure.stories.js.map +1 -0
- package/dist/src/connect/components/divider/divider.d.ts +1 -1
- package/dist/src/connect/components/divider/divider.d.ts.map +1 -1
- package/dist/src/connect/components/document-timeline/components/h-divider.d.ts.map +1 -1
- package/dist/src/connect/components/document-timeline/components/h-divider.js +2 -3
- package/dist/src/connect/components/document-timeline/components/h-divider.js.map +1 -1
- package/dist/src/connect/components/document-timeline/components/h-divider.stories.d.ts +23 -0
- package/dist/src/connect/components/document-timeline/components/h-divider.stories.d.ts.map +1 -0
- package/dist/src/connect/components/document-timeline/components/h-divider.stories.js +61 -0
- package/dist/src/connect/components/document-timeline/components/h-divider.stories.js.map +1 -0
- package/dist/src/connect/components/document-timeline/components/timeline-bar.d.ts.map +1 -1
- package/dist/src/connect/components/document-timeline/components/timeline-bar.js +2 -5
- package/dist/src/connect/components/document-timeline/components/timeline-bar.js.map +1 -1
- package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.d.ts +23 -0
- package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.d.ts.map +1 -0
- package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.js +57 -0
- package/dist/src/connect/components/document-timeline/components/timeline-bar.stories.js.map +1 -0
- package/dist/src/connect/components/document-timeline/document-timeline.d.ts.map +1 -1
- package/dist/src/connect/components/document-timeline/document-timeline.js +2 -4
- package/dist/src/connect/components/document-timeline/document-timeline.js.map +1 -1
- package/dist/src/connect/components/document-timeline/document-timeline.stories.d.ts +16 -0
- package/dist/src/connect/components/document-timeline/document-timeline.stories.d.ts.map +1 -0
- package/dist/src/connect/components/document-timeline/document-timeline.stories.js +488 -0
- package/dist/src/connect/components/document-timeline/document-timeline.stories.js.map +1 -0
- package/dist/src/connect/components/document-toolbar/document-toolbar.d.ts.map +1 -1
- package/dist/src/connect/components/document-toolbar/document-toolbar.js +1 -4
- package/dist/src/connect/components/document-toolbar/document-toolbar.js.map +1 -1
- package/dist/src/connect/components/document-toolbar/document-toolbar.stories.d.ts +13 -0
- package/dist/src/connect/components/document-toolbar/document-toolbar.stories.d.ts.map +1 -0
- package/dist/src/connect/components/document-toolbar/document-toolbar.stories.js +77 -0
- package/dist/src/connect/components/document-toolbar/document-toolbar.stories.js.map +1 -0
- package/dist/src/connect/components/drop-zone/drop-zone.js +3 -1
- package/dist/src/connect/components/drop-zone/drop-zone.js.map +1 -1
- package/dist/src/connect/components/drop-zone/drop-zone.stories.d.ts +8 -0
- package/dist/src/connect/components/drop-zone/drop-zone.stories.d.ts.map +1 -0
- package/dist/src/connect/components/drop-zone/drop-zone.stories.js +44 -0
- package/dist/src/connect/components/drop-zone/drop-zone.stories.js.map +1 -0
- package/dist/src/connect/components/drop-zone/upload-file-list-container.js +1 -0
- package/dist/src/connect/components/drop-zone/upload-file-list-container.js.map +1 -1
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.d.ts +10 -0
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.js +46 -0
- package/dist/src/connect/components/dropdown-menu/dropdown-menu.stories.js.map +1 -0
- package/dist/src/connect/components/editor-action-buttons/editor-action-buttons.js +1 -1
- package/dist/src/connect/components/editor-action-buttons/editor-action-buttons.js.map +1 -1
- package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.d.ts +6 -0
- package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.d.ts.map +1 -0
- package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.js +8 -0
- package/dist/src/connect/components/editor-action-buttons/editor-action.buttons.stories.js.map +1 -0
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js +1 -1
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js.map +1 -1
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.d.ts +6 -0
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.d.ts.map +1 -0
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.js +8 -0
- package/dist/src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.stories.js.map +1 -0
- package/dist/src/connect/components/ens-avatar/ens-avatar.js +1 -1
- package/dist/src/connect/components/ens-avatar/ens-avatar.js.map +1 -1
- package/dist/src/connect/components/ens-avatar/ens-avatar.stories.d.ts +11 -0
- package/dist/src/connect/components/ens-avatar/ens-avatar.stories.d.ts.map +1 -0
- package/dist/src/connect/components/ens-avatar/ens-avatar.stories.js +19 -0
- package/dist/src/connect/components/ens-avatar/ens-avatar.stories.js.map +1 -0
- package/dist/src/connect/components/file-item/file-item.d.ts +1 -1
- package/dist/src/connect/components/file-item/file-item.d.ts.map +1 -1
- package/dist/src/connect/components/file-item/file-item.js +9 -11
- package/dist/src/connect/components/file-item/file-item.js.map +1 -1
- package/dist/src/connect/components/file-item/file-item.stories.d.ts +8 -0
- package/dist/src/connect/components/file-item/file-item.stories.d.ts.map +1 -0
- package/dist/src/connect/components/file-item/file-item.stories.js +40 -0
- package/dist/src/connect/components/file-item/file-item.stories.js.map +1 -0
- package/dist/src/connect/components/folder-item/folder-item.d.ts +1 -1
- package/dist/src/connect/components/folder-item/folder-item.d.ts.map +1 -1
- package/dist/src/connect/components/folder-item/folder-item.js +9 -10
- package/dist/src/connect/components/folder-item/folder-item.js.map +1 -1
- package/dist/src/connect/components/folder-item/folder-item.stories.d.ts +8 -0
- package/dist/src/connect/components/folder-item/folder-item.stories.d.ts.map +1 -0
- package/dist/src/connect/components/folder-item/folder-item.stories.js +31 -0
- package/dist/src/connect/components/folder-item/folder-item.stories.js.map +1 -0
- package/dist/src/connect/components/footer/footer-link.js +1 -1
- package/dist/src/connect/components/footer/footer-link.js.map +1 -1
- package/dist/src/connect/components/footer/footer.js +1 -1
- package/dist/src/connect/components/footer/footer.js.map +1 -1
- package/dist/src/connect/components/footer/footer.stories.d.ts +16 -0
- package/dist/src/connect/components/footer/footer.stories.d.ts.map +1 -0
- package/dist/src/connect/components/footer/footer.stories.js +18 -0
- package/dist/src/connect/components/footer/footer.stories.js.map +1 -0
- package/dist/src/connect/components/form/add-local-drive-form.d.ts.map +1 -1
- package/dist/src/connect/components/form/add-local-drive-form.js +3 -4
- package/dist/src/connect/components/form/add-local-drive-form.js.map +1 -1
- package/dist/src/connect/components/form/add-local-drive-form.stories.d.ts +10 -0
- package/dist/src/connect/components/form/add-local-drive-form.stories.d.ts.map +1 -0
- package/dist/src/connect/components/form/add-local-drive-form.stories.js +39 -0
- package/dist/src/connect/components/form/add-local-drive-form.stories.js.map +1 -0
- package/dist/src/connect/components/form/add-remote-drive-form.d.ts +1 -2
- package/dist/src/connect/components/form/add-remote-drive-form.d.ts.map +1 -1
- package/dist/src/connect/components/form/add-remote-drive-form.js +4 -5
- package/dist/src/connect/components/form/add-remote-drive-form.js.map +1 -1
- package/dist/src/connect/components/form/add-remote-drive-form.stories.d.ts +10 -0
- package/dist/src/connect/components/form/add-remote-drive-form.stories.d.ts.map +1 -0
- package/dist/src/connect/components/form/add-remote-drive-form.stories.js +30 -0
- package/dist/src/connect/components/form/add-remote-drive-form.stories.js.map +1 -0
- package/dist/src/connect/components/form/drive-settings-form.d.ts.map +1 -1
- package/dist/src/connect/components/form/drive-settings-form.js +3 -4
- package/dist/src/connect/components/form/drive-settings-form.js.map +1 -1
- package/dist/src/connect/components/form/drive-settings-form.stories.d.ts +10 -0
- package/dist/src/connect/components/form/drive-settings-form.stories.d.ts.map +1 -0
- package/dist/src/connect/components/form/drive-settings-form.stories.js +28 -0
- package/dist/src/connect/components/form/drive-settings-form.stories.js.map +1 -0
- package/dist/src/connect/components/form/inputs/app-form-input.d.ts +4 -4
- package/dist/src/connect/components/form/inputs/app-form-input.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/app-form-input.js +2 -3
- package/dist/src/connect/components/form/inputs/app-form-input.js.map +1 -1
- package/dist/src/connect/components/form/inputs/available-offline-toggle.d.ts +1 -1
- package/dist/src/connect/components/form/inputs/available-offline-toggle.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/available-offline-toggle.js +1 -1
- package/dist/src/connect/components/form/inputs/available-offline-toggle.js.map +1 -1
- package/dist/src/connect/components/form/inputs/delete-drive.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/delete-drive.js +2 -3
- package/dist/src/connect/components/form/inputs/delete-drive.js.map +1 -1
- package/dist/src/connect/components/form/inputs/drive-app.d.ts +1 -2
- package/dist/src/connect/components/form/inputs/drive-app.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/drive-app.js +1 -1
- package/dist/src/connect/components/form/inputs/drive-app.js.map +1 -1
- package/dist/src/connect/components/form/inputs/drive-name-input.d.ts +1 -1
- package/dist/src/connect/components/form/inputs/drive-name-input.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/drive-name-input.js +1 -2
- package/dist/src/connect/components/form/inputs/drive-name-input.js.map +1 -1
- package/dist/src/connect/components/form/inputs/drive-name.js +1 -1
- package/dist/src/connect/components/form/inputs/drive-name.js.map +1 -1
- package/dist/src/connect/components/form/inputs/location-info.d.ts +1 -2
- package/dist/src/connect/components/form/inputs/location-info.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/location-info.js +1 -1
- package/dist/src/connect/components/form/inputs/location-info.js.map +1 -1
- package/dist/src/connect/components/form/inputs/sharing-type-form-input.d.ts +2 -2
- package/dist/src/connect/components/form/inputs/sharing-type-form-input.d.ts.map +1 -1
- package/dist/src/connect/components/form/inputs/sharing-type-form-input.js +2 -3
- package/dist/src/connect/components/form/inputs/sharing-type-form-input.js.map +1 -1
- package/dist/src/connect/components/form-input/form-input.stories.d.ts +27 -0
- package/dist/src/connect/components/form-input/form-input.stories.d.ts.map +1 -0
- package/dist/src/connect/components/form-input/form-input.stories.js +67 -0
- package/dist/src/connect/components/form-input/form-input.stories.js.map +1 -0
- package/dist/src/connect/components/home-screen/home-background-image.js +2 -2
- package/dist/src/connect/components/home-screen/home-background-image.js.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.js +1 -2
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.js.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.d.ts +12 -0
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.d.ts.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.js +17 -0
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.stories.js.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.js +1 -1
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.js.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.d.ts +17 -0
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.d.ts.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.js +36 -0
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.stories.js.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen.stories.d.ts +12 -0
- package/dist/src/connect/components/home-screen/home-screen.stories.d.ts.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen.stories.js +22 -0
- package/dist/src/connect/components/home-screen/home-screen.stories.js.map +1 -0
- package/dist/src/connect/components/loading-screen/loading-screen.d.ts +1 -1
- package/dist/src/connect/components/loading-screen/loading-screen.d.ts.map +1 -1
- package/dist/src/connect/components/loading-screen/loading-screen.js +1 -1
- package/dist/src/connect/components/loading-screen/loading-screen.js.map +1 -1
- package/dist/src/connect/components/loading-screen/loading-screen.stories.d.ts +8 -0
- package/dist/src/connect/components/loading-screen/loading-screen.stories.d.ts.map +1 -0
- package/dist/src/connect/components/loading-screen/loading-screen.stories.js +28 -0
- package/dist/src/connect/components/loading-screen/loading-screen.stories.js.map +1 -0
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.d.ts +2 -3
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.js +1 -2
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.js.map +1 -1
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.js +54 -0
- package/dist/src/connect/components/modal/add-drive-modal/add-drive-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/add-local-drive-modal.d.ts +2 -3
- package/dist/src/connect/components/modal/add-local-drive-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/add-local-drive-modal.js +1 -2
- package/dist/src/connect/components/modal/add-local-drive-modal.js.map +1 -1
- package/dist/src/connect/components/modal/add-local-drive-modal.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/add-local-drive-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/add-local-drive-modal.stories.js +50 -0
- package/dist/src/connect/components/modal/add-local-drive-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/add-remote-drive-modal.d.ts +2 -3
- package/dist/src/connect/components/modal/add-remote-drive-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/add-remote-drive-modal.js +1 -2
- package/dist/src/connect/components/modal/add-remote-drive-modal.js.map +1 -1
- package/dist/src/connect/components/modal/add-remote-drive-modal.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/add-remote-drive-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/add-remote-drive-modal.stories.js +36 -0
- package/dist/src/connect/components/modal/add-remote-drive-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/confirmation-modal.d.ts +2 -2
- package/dist/src/connect/components/modal/confirmation-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/confirmation-modal.js +1 -1
- package/dist/src/connect/components/modal/confirmation-modal.js.map +1 -1
- package/dist/src/connect/components/modal/confirmation-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/confirmation-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/confirmation-modal.stories.js +16 -0
- package/dist/src/connect/components/modal/confirmation-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/create-document-modal.d.ts +1 -1
- package/dist/src/connect/components/modal/create-document-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/create-document-modal.js +2 -3
- package/dist/src/connect/components/modal/create-document-modal.js.map +1 -1
- package/dist/src/connect/components/modal/create-document-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/create-document-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/create-document-modal.stories.js +12 -0
- package/dist/src/connect/components/modal/create-document-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/delete-drive-modal.js +1 -1
- package/dist/src/connect/components/modal/delete-drive-modal.js.map +1 -1
- package/dist/src/connect/components/modal/delete-item-modal.d.ts +1 -1
- package/dist/src/connect/components/modal/delete-item-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/delete-item-modal.js +1 -1
- package/dist/src/connect/components/modal/delete-item-modal.js.map +1 -1
- package/dist/src/connect/components/modal/delete-item-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/delete-item-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/delete-item-modal.stories.js +16 -0
- package/dist/src/connect/components/modal/delete-item-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/delete-item-modal.test.d.ts +2 -0
- package/dist/src/connect/components/modal/delete-item-modal.test.d.ts.map +1 -0
- package/dist/src/connect/components/modal/delete-item-modal.test.js +41 -0
- package/dist/src/connect/components/modal/delete-item-modal.test.js.map +1 -0
- package/dist/src/connect/components/modal/drive-settings-modal.d.ts +2 -2
- package/dist/src/connect/components/modal/drive-settings-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/drive-settings-modal.js +1 -2
- package/dist/src/connect/components/modal/drive-settings-modal.js.map +1 -1
- package/dist/src/connect/components/modal/drive-settings-modal.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/drive-settings-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/drive-settings-modal.stories.js +50 -0
- package/dist/src/connect/components/modal/drive-settings-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/read-required-modal.d.ts +2 -2
- package/dist/src/connect/components/modal/read-required-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/read-required-modal.js +1 -1
- package/dist/src/connect/components/modal/read-required-modal.js.map +1 -1
- package/dist/src/connect/components/modal/read-required-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/read-required-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/read-required-modal.stories.js +28 -0
- package/dist/src/connect/components/modal/read-required-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.js +2 -2
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.js +13 -0
- package/dist/src/connect/components/modal/settings-modal/clear-storage-row.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.d.ts +11 -0
- package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.js +27 -0
- package/dist/src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/dependency-versions/mock-package-json.json +0 -1
- package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.js +26 -0
- package/dist/src/connect/components/modal/settings-modal/document-select-row.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/row.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal/row.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal/settings-modal.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal/settings-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal/settings-modal.js +2 -2
- package/dist/src/connect/components/modal/settings-modal/settings-modal.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.js +33 -0
- package/dist/src/connect/components/modal/settings-modal/settings-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/about.stories.d.ts +8 -0
- package/dist/src/connect/components/modal/settings-modal-v2/about.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/about.stories.js +20 -0
- package/dist/src/connect/components/modal/settings-modal-v2/about.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js +4 -7
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.js +42 -0
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.d.ts +10 -0
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.js +25 -0
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js +4 -8
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.js +1 -2
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.d.ts +14 -0
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.js +56 -0
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager.stories.js.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.js +84 -0
- package/dist/src/connect/components/modal/settings-modal-v2/settings-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.d.ts +1 -1
- package/dist/src/connect/components/modal/upgrade-drive-modal.d.ts.map +1 -1
- package/dist/src/connect/components/modal/upgrade-drive-modal.js +1 -1
- package/dist/src/connect/components/modal/upgrade-drive-modal.js.map +1 -1
- package/dist/src/connect/components/modal/upgrade-drive-modal.stories.d.ts +7 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.stories.d.ts.map +1 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.stories.js +16 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.stories.js.map +1 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.test.d.ts +2 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.test.d.ts.map +1 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.test.js +41 -0
- package/dist/src/connect/components/modal/upgrade-drive-modal.test.js.map +1 -0
- package/dist/src/connect/components/node-input/node-input.stories.d.ts +7 -0
- package/dist/src/connect/components/node-input/node-input.stories.d.ts.map +1 -0
- package/dist/src/connect/components/node-input/node-input.stories.js +8 -0
- package/dist/src/connect/components/node-input/node-input.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/header/branch.js +1 -1
- package/dist/src/connect/components/revision-history/header/branch.js.map +1 -1
- package/dist/src/connect/components/revision-history/header/branch.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/header/branch.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/header/branch.stories.js +10 -0
- package/dist/src/connect/components/revision-history/header/branch.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/header/doc-id.js +1 -1
- package/dist/src/connect/components/revision-history/header/doc-id.js.map +1 -1
- package/dist/src/connect/components/revision-history/header/doc-id.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/header/doc-id.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/header/doc-id.stories.js +12 -0
- package/dist/src/connect/components/revision-history/header/doc-id.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/header/header.js +1 -1
- package/dist/src/connect/components/revision-history/header/header.js.map +1 -1
- package/dist/src/connect/components/revision-history/header/header.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/header/header.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/header/header.stories.js +16 -0
- package/dist/src/connect/components/revision-history/header/header.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/header/scope.js +2 -2
- package/dist/src/connect/components/revision-history/header/scope.js.map +1 -1
- package/dist/src/connect/components/revision-history/header/scope.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/header/scope.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/header/scope.stories.js +13 -0
- package/dist/src/connect/components/revision-history/header/scope.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/index.d.ts +1 -0
- package/dist/src/connect/components/revision-history/index.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/index.js +1 -0
- package/dist/src/connect/components/revision-history/index.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/address.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision/address.js +2 -3
- package/dist/src/connect/components/revision-history/revision/address.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/address.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/revision/address.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/address.stories.js +16 -0
- package/dist/src/connect/components/revision-history/revision/address.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/errors.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision/errors.js +2 -3
- package/dist/src/connect/components/revision-history/revision/errors.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/errors.stories.d.ts +12 -0
- package/dist/src/connect/components/revision-history/revision/errors.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/errors.stories.js +32 -0
- package/dist/src/connect/components/revision-history/revision/errors.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/operation.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision/operation.js +2 -3
- package/dist/src/connect/components/revision-history/revision/operation.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/operation.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/revision/operation.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/operation.stories.js +23 -0
- package/dist/src/connect/components/revision-history/revision/operation.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/revision-number.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision/revision-number.js +2 -3
- package/dist/src/connect/components/revision-history/revision/revision-number.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/revision-number.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/revision/revision-number.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/revision-number.stories.js +19 -0
- package/dist/src/connect/components/revision-history/revision/revision-number.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/revision.stories.d.ts +11 -0
- package/dist/src/connect/components/revision-history/revision/revision.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/revision.stories.js +126 -0
- package/dist/src/connect/components/revision-history/revision/revision.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/signature.d.ts +1 -1
- package/dist/src/connect/components/revision-history/revision/signature.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision/signature.js +2 -3
- package/dist/src/connect/components/revision-history/revision/signature.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/signature.stories.d.ts +12 -0
- package/dist/src/connect/components/revision-history/revision/signature.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/signature.stories.js +72 -0
- package/dist/src/connect/components/revision-history/revision/signature.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision/timestamp.js +2 -2
- package/dist/src/connect/components/revision-history/revision/timestamp.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision/timestamp.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/revision/timestamp.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision/timestamp.stories.js +15 -0
- package/dist/src/connect/components/revision-history/revision/timestamp.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/revision-history.d.ts.map +1 -1
- package/dist/src/connect/components/revision-history/revision-history.js +2 -3
- package/dist/src/connect/components/revision-history/revision-history.js.map +1 -1
- package/dist/src/connect/components/revision-history/revision-history.stories.d.ts +13 -0
- package/dist/src/connect/components/revision-history/revision-history.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/revision-history.stories.js +49 -0
- package/dist/src/connect/components/revision-history/revision-history.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/skip/skip.stories.d.ts +11 -0
- package/dist/src/connect/components/revision-history/skip/skip.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/skip/skip.stories.js +19 -0
- package/dist/src/connect/components/revision-history/skip/skip.stories.js.map +1 -0
- package/dist/src/connect/components/revision-history/timeline/day.js +1 -1
- package/dist/src/connect/components/revision-history/timeline/day.js.map +1 -1
- package/dist/src/connect/components/revision-history/timeline/timeline.stories.d.ts +10 -0
- package/dist/src/connect/components/revision-history/timeline/timeline.stories.d.ts.map +1 -0
- package/dist/src/connect/components/revision-history/timeline/timeline.stories.js +20 -0
- package/dist/src/connect/components/revision-history/timeline/timeline.stories.js.map +1 -0
- package/dist/src/connect/components/search-bar/filter-item.js +1 -1
- package/dist/src/connect/components/search-bar/filter-item.js.map +1 -1
- package/dist/src/connect/components/search-bar/search-bar.js +1 -2
- package/dist/src/connect/components/search-bar/search-bar.js.map +1 -1
- package/dist/src/connect/components/search-bar/search-bar.stories.d.ts +7 -0
- package/dist/src/connect/components/search-bar/search-bar.stories.d.ts.map +1 -0
- package/dist/src/connect/components/search-bar/search-bar.stories.js +43 -0
- package/dist/src/connect/components/search-bar/search-bar.stories.js.map +1 -0
- package/dist/src/connect/components/search-bar/search-bar.test.d.ts +2 -0
- package/dist/src/connect/components/search-bar/search-bar.test.d.ts.map +1 -0
- package/dist/src/connect/components/search-bar/search-bar.test.js +47 -0
- package/dist/src/connect/components/search-bar/search-bar.test.js.map +1 -0
- package/dist/src/connect/components/select/select.d.ts +5 -5
- package/dist/src/connect/components/select/select.d.ts.map +1 -1
- package/dist/src/connect/components/select/select.js +8 -3
- package/dist/src/connect/components/select/select.js.map +1 -1
- package/dist/src/connect/components/select/select.stories.d.ts +11 -0
- package/dist/src/connect/components/select/select.stories.d.ts.map +1 -0
- package/dist/src/connect/components/select/select.stories.js +42 -0
- package/dist/src/connect/components/select/select.stories.js.map +1 -0
- package/dist/src/connect/components/sidebar/sidebar-add-drive-item.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar-add-drive-item.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.d.ts +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.d.ts +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-login.js +3 -3
- package/dist/src/connect/components/sidebar/sidebar-login.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-user.js +1 -2
- package/dist/src/connect/components/sidebar/sidebar-user.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar.d.ts +1 -1
- package/dist/src/connect/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar.stories.d.ts +13 -0
- package/dist/src/connect/components/sidebar/sidebar.stories.d.ts.map +1 -0
- package/dist/src/connect/components/sidebar/sidebar.stories.js +35 -0
- package/dist/src/connect/components/sidebar/sidebar.stories.js.map +1 -0
- package/dist/src/connect/components/status-icon/sync-status-icon.d.ts +2 -3
- package/dist/src/connect/components/status-icon/sync-status-icon.d.ts.map +1 -1
- package/dist/src/connect/components/status-icon/sync-status-icon.js +1 -2
- package/dist/src/connect/components/status-icon/sync-status-icon.js.map +1 -1
- package/dist/src/connect/components/status-icon/sync-status-icon.stories.d.ts +12 -0
- package/dist/src/connect/components/status-icon/sync-status-icon.stories.d.ts.map +1 -0
- package/dist/src/connect/components/status-icon/sync-status-icon.stories.js +34 -0
- package/dist/src/connect/components/status-icon/sync-status-icon.stories.js.map +1 -0
- package/dist/src/connect/components/toast/toast.js +1 -1
- package/dist/src/connect/components/toast/toast.js.map +1 -1
- package/dist/src/connect/components/toast/toast.stories.d.ts +9 -0
- package/dist/src/connect/components/toast/toast.stories.d.ts.map +1 -0
- package/dist/src/connect/components/toast/toast.stories.js +54 -0
- package/dist/src/connect/components/toast/toast.stories.js.map +1 -0
- package/dist/src/connect/components/toggle/toggle.stories.d.ts +307 -0
- package/dist/src/connect/components/toggle/toggle.stories.d.ts.map +1 -0
- package/dist/src/connect/components/toggle/toggle.stories.js +19 -0
- package/dist/src/connect/components/toggle/toggle.stories.js.map +1 -0
- package/dist/src/connect/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/connect/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/connect/components/tooltip/tooltip.js +2 -2
- package/dist/src/connect/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/connect/components/tooltip/tooltip.stories.d.ts +7 -0
- package/dist/src/connect/components/tooltip/tooltip.stories.d.ts.map +1 -0
- package/dist/src/connect/components/tooltip/tooltip.stories.js +14 -0
- package/dist/src/connect/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/src/connect/components/upload-file-item/components/error-details.d.ts +2 -2
- package/dist/src/connect/components/upload-file-item/components/error-details.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/error-details.js +1 -1
- package/dist/src/connect/components/upload-file-item/components/error-details.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/header.d.ts +2 -2
- package/dist/src/connect/components/upload-file-item/components/header.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/header.js +2 -2
- package/dist/src/connect/components/upload-file-item/components/header.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/index.d.ts +4 -4
- package/dist/src/connect/components/upload-file-item/components/index.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/index.js +4 -4
- package/dist/src/connect/components/upload-file-item/components/index.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/progress-bar.d.ts +2 -2
- package/dist/src/connect/components/upload-file-item/components/progress-bar.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/progress-bar.js +1 -1
- package/dist/src/connect/components/upload-file-item/components/progress-bar.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/status-row.d.ts +2 -2
- package/dist/src/connect/components/upload-file-item/components/status-row.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/components/status-row.js +1 -1
- package/dist/src/connect/components/upload-file-item/components/status-row.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/index.d.ts +2 -1
- package/dist/src/connect/components/upload-file-item/index.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/index.js +2 -1
- package/dist/src/connect/components/upload-file-item/index.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/upload-file-item.d.ts +1 -1
- package/dist/src/connect/components/upload-file-item/upload-file-item.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-item/upload-file-item.js +1 -4
- package/dist/src/connect/components/upload-file-item/upload-file-item.js.map +1 -1
- package/dist/src/connect/components/upload-file-item/upload-file-item.stories.d.ts +22 -0
- package/dist/src/connect/components/upload-file-item/upload-file-item.stories.d.ts.map +1 -0
- package/dist/src/connect/components/upload-file-item/upload-file-item.stories.js +208 -0
- package/dist/src/connect/components/upload-file-item/upload-file-item.stories.js.map +1 -0
- package/dist/src/connect/components/upload-file-list/index.d.ts +2 -2
- package/dist/src/connect/components/upload-file-list/index.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-list/index.js +2 -2
- package/dist/src/connect/components/upload-file-list/index.js.map +1 -1
- package/dist/src/connect/components/upload-file-list/upload-file-list.d.ts +2 -2
- package/dist/src/connect/components/upload-file-list/upload-file-list.d.ts.map +1 -1
- package/dist/src/connect/components/upload-file-list/upload-file-list.js +1 -3
- package/dist/src/connect/components/upload-file-list/upload-file-list.js.map +1 -1
- package/dist/src/connect/components/upload-file-list/upload-file-list.stories.d.ts +8 -0
- package/dist/src/connect/components/upload-file-list/upload-file-list.stories.d.ts.map +1 -0
- package/dist/src/connect/components/upload-file-list/upload-file-list.stories.js +59 -0
- package/dist/src/connect/components/upload-file-list/upload-file-list.stories.js.map +1 -0
- package/dist/src/connect/constants/icons.d.ts +1 -1
- package/dist/src/connect/constants/icons.d.ts.map +1 -1
- package/dist/src/connect/constants/icons.js +4 -4
- package/dist/src/connect/constants/icons.js.map +1 -1
- package/dist/src/connect/constants/index.d.ts +0 -2
- package/dist/src/connect/constants/index.d.ts.map +1 -1
- package/dist/src/connect/constants/index.js +0 -2
- package/dist/src/connect/constants/index.js.map +1 -1
- package/dist/src/connect/constants/options.d.ts +2 -12
- package/dist/src/connect/constants/options.d.ts.map +1 -1
- package/dist/src/connect/constants/options.js +23 -24
- package/dist/src/connect/constants/options.js.map +1 -1
- package/dist/src/connect/context/WagmiContext.js +1 -1
- package/dist/src/connect/context/WagmiContext.js.map +1 -1
- package/dist/src/connect/hooks/drag-and-drop/use-drag.d.ts +1 -1
- package/dist/src/connect/hooks/drag-and-drop/use-drag.d.ts.map +1 -1
- package/dist/src/connect/hooks/drag-and-drop/use-drag.js +1 -2
- package/dist/src/connect/hooks/drag-and-drop/use-drag.js.map +1 -1
- package/dist/src/connect/hooks/drag-and-drop/use-drop.d.ts.map +1 -1
- package/dist/src/connect/hooks/drag-and-drop/use-drop.js +1 -2
- package/dist/src/connect/hooks/drag-and-drop/use-drop.js.map +1 -1
- package/dist/src/connect/types/documents.d.ts +1 -1
- package/dist/src/connect/types/documents.d.ts.map +1 -1
- package/dist/src/connect/types/drives.d.ts +1 -3
- package/dist/src/connect/types/drives.d.ts.map +1 -1
- package/dist/src/connect/types/options.d.ts +4 -4
- package/dist/src/connect/types/options.d.ts.map +1 -1
- package/dist/src/connect/types/syncing.d.ts +1 -1
- package/dist/src/connect/types/syncing.d.ts.map +1 -1
- package/dist/src/connect/utils/get-document-icon-src.d.ts +1 -1
- package/dist/src/connect/utils/get-document-icon-src.d.ts.map +1 -1
- package/dist/src/connect/utils/get-document-icon-src.js +1 -1
- package/dist/src/connect/utils/get-document-icon-src.js.map +1 -1
- package/dist/src/connect/utils/get-folder-status.test.d.ts +2 -0
- package/dist/src/connect/utils/get-folder-status.test.d.ts.map +1 -0
- package/dist/src/connect/utils/get-folder-status.test.js +96 -0
- package/dist/src/connect/utils/get-folder-status.test.js.map +1 -0
- package/dist/src/connect/utils/mocks/mock-package-json.json +0 -1
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/powerhouse/components/button/button.d.ts +2 -2
- package/dist/src/powerhouse/components/button/button.d.ts.map +1 -1
- package/dist/src/powerhouse/components/button/button.js +1 -1
- package/dist/src/powerhouse/components/button/button.js.map +1 -1
- package/dist/src/powerhouse/components/button/button.stories.d.ts +27 -0
- package/dist/src/powerhouse/components/button/button.stories.d.ts.map +1 -0
- package/dist/src/powerhouse/components/button/button.stories.js +154 -0
- package/dist/src/powerhouse/components/button/button.stories.js.map +1 -0
- package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.d.ts +8 -0
- package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.js +38 -0
- package/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.stories.js.map +1 -0
- package/dist/src/powerhouse/components/icon/icon.d.ts +1 -2
- package/dist/src/powerhouse/components/icon/icon.d.ts.map +1 -1
- package/dist/src/powerhouse/components/icon/icon.js +1 -2
- package/dist/src/powerhouse/components/icon/icon.js.map +1 -1
- package/dist/src/powerhouse/components/icon/icon.stories.d.ts +16 -0
- package/dist/src/powerhouse/components/icon/icon.stories.d.ts.map +1 -0
- package/dist/src/powerhouse/components/icon/icon.stories.js +37 -0
- package/dist/src/powerhouse/components/icon/icon.stories.js.map +1 -0
- package/dist/src/powerhouse/components/icon/index.d.ts +0 -2
- package/dist/src/powerhouse/components/icon/index.d.ts.map +1 -1
- package/dist/src/powerhouse/components/icon/index.js +0 -1
- package/dist/src/powerhouse/components/icon/index.js.map +1 -1
- package/dist/src/powerhouse/components/index.d.ts +1 -0
- package/dist/src/powerhouse/components/index.d.ts.map +1 -1
- package/dist/src/powerhouse/components/index.js +1 -0
- package/dist/src/powerhouse/components/index.js.map +1 -1
- package/dist/src/powerhouse/components/modal/modal.stories.d.ts +13 -0
- package/dist/src/powerhouse/components/modal/modal.stories.d.ts.map +1 -0
- package/dist/src/powerhouse/components/modal/modal.stories.js +25 -0
- package/dist/src/powerhouse/components/modal/modal.stories.js.map +1 -0
- package/dist/src/powerhouse/components/modal/modal.test.d.ts +2 -0
- package/dist/src/powerhouse/components/modal/modal.test.d.ts.map +1 -0
- package/dist/src/powerhouse/components/modal/modal.test.js +25 -0
- package/dist/src/powerhouse/components/modal/modal.test.js.map +1 -0
- package/dist/src/powerhouse/components/pagination/pagination-button.d.ts +2 -2
- package/dist/src/powerhouse/components/pagination/pagination-button.d.ts.map +1 -1
- package/dist/src/powerhouse/components/pagination/pagination-button.js +2 -2
- package/dist/src/powerhouse/components/pagination/pagination-button.js.map +1 -1
- package/dist/src/powerhouse/components/pagination/pagination.d.ts +1 -1
- package/dist/src/powerhouse/components/pagination/pagination.d.ts.map +1 -1
- package/dist/src/powerhouse/components/pagination/pagination.js +1 -1
- package/dist/src/powerhouse/components/pagination/pagination.js.map +1 -1
- package/dist/src/powerhouse/components/pagination/pagination.stories.d.ts +7 -0
- package/dist/src/powerhouse/components/pagination/pagination.stories.d.ts.map +1 -0
- package/dist/src/powerhouse/components/pagination/pagination.stories.js +60 -0
- package/dist/src/powerhouse/components/pagination/pagination.stories.js.map +1 -0
- package/dist/src/powerhouse/components/sidebar/sidebar.test.d.ts +2 -0
- package/dist/src/powerhouse/components/sidebar/sidebar.test.d.ts.map +1 -0
- package/dist/src/powerhouse/components/sidebar/sidebar.test.js +15 -0
- package/dist/src/powerhouse/components/sidebar/sidebar.test.js.map +1 -0
- package/dist/src/powerhouse/hooks/usePagination.test.d.ts +2 -0
- package/dist/src/powerhouse/hooks/usePagination.test.d.ts.map +1 -0
- package/dist/src/powerhouse/hooks/usePagination.test.js +456 -0
- package/dist/src/powerhouse/hooks/usePagination.test.js.map +1 -0
- package/dist/src/powerhouse/tests/mocks/fileMock.js +1 -1
- package/dist/src/powerhouse/tests/mocks/fileMock.js.map +1 -1
- package/dist/src/powerhouse/tests/mocks/svgMock.js +1 -1
- package/dist/src/powerhouse/tests/mocks/svgMock.js.map +1 -1
- package/dist/src/powerhouse/utils/index.d.ts +0 -3
- package/dist/src/powerhouse/utils/index.d.ts.map +1 -1
- package/dist/src/powerhouse/utils/index.js +0 -6
- package/dist/src/powerhouse/utils/index.js.map +1 -1
- package/dist/src/powerhouse/utils/mergeClassNameProps.test.d.ts +2 -0
- package/dist/src/powerhouse/utils/mergeClassNameProps.test.d.ts.map +1 -0
- package/dist/src/powerhouse/utils/mergeClassNameProps.test.js +44 -0
- package/dist/src/powerhouse/utils/mergeClassNameProps.test.js.map +1 -0
- package/dist/src/rwa/components/button/button.d.ts +2 -2
- package/dist/src/rwa/components/button/button.d.ts.map +1 -1
- package/dist/src/rwa/components/button/button.js +2 -2
- package/dist/src/rwa/components/button/button.js.map +1 -1
- package/dist/src/rwa/components/button/button.stories.d.ts +7 -0
- package/dist/src/rwa/components/button/button.stories.d.ts.map +1 -0
- package/dist/src/rwa/components/button/button.stories.js +24 -0
- package/dist/src/rwa/components/button/button.stories.js.map +1 -0
- package/dist/src/rwa/components/editor/editor.js +1 -1
- package/dist/src/rwa/components/editor/editor.js.map +1 -1
- package/dist/src/rwa/components/editor/editor.stories.d.ts +16 -0
- package/dist/src/rwa/components/editor/editor.stories.d.ts.map +1 -0
- package/dist/src/rwa/components/editor/editor.stories.js +151 -0
- package/dist/src/rwa/components/editor/editor.stories.js.map +1 -0
- package/dist/src/rwa/components/inputs/entry-time-label.d.ts +1 -1
- package/dist/src/rwa/components/inputs/entry-time-label.d.ts.map +1 -1
- package/dist/src/rwa/components/inputs/entry-time-label.js +1 -1
- package/dist/src/rwa/components/inputs/entry-time-label.js.map +1 -1
- package/dist/src/rwa/components/inputs/form-row.d.ts +1 -1
- package/dist/src/rwa/components/inputs/form-row.d.ts.map +1 -1
- package/dist/src/rwa/components/inputs/form-row.js +1 -1
- package/dist/src/rwa/components/inputs/form-row.js.map +1 -1
- package/dist/src/rwa/components/inputs/index.d.ts +1 -0
- package/dist/src/rwa/components/inputs/index.d.ts.map +1 -1
- package/dist/src/rwa/components/inputs/index.js +1 -0
- package/dist/src/rwa/components/inputs/index.js.map +1 -1
- package/dist/src/rwa/components/inputs/number-input.d.ts +1 -1
- package/dist/src/rwa/components/inputs/number-input.d.ts.map +1 -1
- package/dist/src/rwa/components/inputs/number-input.js +1 -1
- package/dist/src/rwa/components/inputs/number-input.js.map +1 -1
- package/dist/src/rwa/components/inputs/select.d.ts +1 -1
- package/dist/src/rwa/components/inputs/select.d.ts.map +1 -1
- package/dist/src/rwa/components/inputs/select.js +1 -1
- package/dist/src/rwa/components/inputs/select.js.map +1 -1
- package/dist/src/rwa/components/modal/create-item-modal.d.ts +2 -2
- package/dist/src/rwa/components/modal/create-item-modal.d.ts.map +1 -1
- package/dist/src/rwa/components/modal/create-item-modal.js +1 -2
- package/dist/src/rwa/components/modal/create-item-modal.js.map +1 -1
- package/dist/src/rwa/components/modal/delete-item-modal.d.ts +2 -2
- package/dist/src/rwa/components/modal/delete-item-modal.d.ts.map +1 -1
- package/dist/src/rwa/components/modal/delete-item-modal.js +1 -2
- package/dist/src/rwa/components/modal/delete-item-modal.js.map +1 -1
- package/dist/src/rwa/components/modal/modal-manager.d.ts +1 -1
- package/dist/src/rwa/components/modal/modal-manager.d.ts.map +1 -1
- package/dist/src/rwa/components/modal/modal-manager.js +1 -1
- package/dist/src/rwa/components/modal/modal-manager.js.map +1 -1
- package/dist/src/rwa/components/modal/modals.d.ts +2 -2
- package/dist/src/rwa/components/modal/modals.d.ts.map +1 -1
- package/dist/src/rwa/components/modal/modals.js +1 -1
- package/dist/src/rwa/components/modal/modals.js.map +1 -1
- package/dist/src/rwa/components/table/accounts/accounts-table.d.ts.map +1 -1
- package/dist/src/rwa/components/table/accounts/accounts-table.js +1 -2
- package/dist/src/rwa/components/table/accounts/accounts-table.js.map +1 -1
- package/dist/src/rwa/components/table/assets/assets-table.js +1 -1
- package/dist/src/rwa/components/table/assets/assets-table.js.map +1 -1
- package/dist/src/rwa/components/table/base/header-label.d.ts +1 -1
- package/dist/src/rwa/components/table/base/header-label.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/item-details.d.ts +1 -1
- package/dist/src/rwa/components/table/base/item-details.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/item-details.js +1 -2
- package/dist/src/rwa/components/table/base/item-details.js.map +1 -1
- package/dist/src/rwa/components/table/base/table-base.d.ts +1 -1
- package/dist/src/rwa/components/table/base/table-base.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/table-base.js +1 -1
- package/dist/src/rwa/components/table/base/table-base.js.map +1 -1
- package/dist/src/rwa/components/table/base/table-cell.d.ts +1 -1
- package/dist/src/rwa/components/table/base/table-cell.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/table-cell.js +1 -2
- package/dist/src/rwa/components/table/base/table-cell.js.map +1 -1
- package/dist/src/rwa/components/table/base/table-with-form.d.ts +1 -1
- package/dist/src/rwa/components/table/base/table-with-form.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/table-with-form.js +1 -2
- package/dist/src/rwa/components/table/base/table-with-form.js.map +1 -1
- package/dist/src/rwa/components/table/base/table.d.ts +1 -1
- package/dist/src/rwa/components/table/base/table.d.ts.map +1 -1
- package/dist/src/rwa/components/table/base/table.js +1 -2
- package/dist/src/rwa/components/table/base/table.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/cash-balance-change.d.ts +1 -1
- package/dist/src/rwa/components/table/transactions/cash-balance-change.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/cash-balance-change.js +1 -1
- package/dist/src/rwa/components/table/transactions/cash-balance-change.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/fee-transactions-table.d.ts +1 -1
- package/dist/src/rwa/components/table/transactions/fee-transactions-table.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/fee-transactions-table.js +1 -2
- package/dist/src/rwa/components/table/transactions/fee-transactions-table.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/group-transactions-table.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/group-transactions-table.js +1 -3
- package/dist/src/rwa/components/table/transactions/group-transactions-table.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/index.d.ts +1 -0
- package/dist/src/rwa/components/table/transactions/index.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/index.js +1 -0
- package/dist/src/rwa/components/table/transactions/index.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/transaction-reference.d.ts +1 -1
- package/dist/src/rwa/components/table/transactions/transaction-reference.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/transaction-reference.js +2 -4
- package/dist/src/rwa/components/table/transactions/transaction-reference.js.map +1 -1
- package/dist/src/rwa/components/table/transactions/unit-price.d.ts +1 -1
- package/dist/src/rwa/components/table/transactions/unit-price.d.ts.map +1 -1
- package/dist/src/rwa/components/table/transactions/unit-price.js +1 -1
- package/dist/src/rwa/components/table/transactions/unit-price.js.map +1 -1
- package/dist/src/rwa/components/tabs/other-tab.js +1 -1
- package/dist/src/rwa/components/tabs/other-tab.js.map +1 -1
- package/dist/src/rwa/components/tabs/portfolio-tab.js +1 -1
- package/dist/src/rwa/components/tabs/portfolio-tab.js.map +1 -1
- package/dist/src/rwa/components/tabs/tabs.js +1 -2
- package/dist/src/rwa/components/tabs/tabs.js.map +1 -1
- package/dist/src/rwa/components/tabs/transactions-tab.d.ts.map +1 -1
- package/dist/src/rwa/components/tabs/transactions-tab.js +1 -1
- package/dist/src/rwa/components/tabs/transactions-tab.js.map +1 -1
- package/dist/src/rwa/constants/columns.d.ts +1 -1
- package/dist/src/rwa/constants/columns.d.ts.map +1 -1
- package/dist/src/rwa/constants/dependent-items.d.ts +1 -1
- package/dist/src/rwa/constants/dependent-items.d.ts.map +1 -1
- package/dist/src/rwa/constants/dependent-items.js +1 -1
- package/dist/src/rwa/constants/dependent-items.js.map +1 -1
- package/dist/src/rwa/constants/names.d.ts +1 -1
- package/dist/src/rwa/constants/names.d.ts.map +1 -1
- package/dist/src/rwa/constants/table.d.ts +1 -1
- package/dist/src/rwa/constants/table.d.ts.map +1 -1
- package/dist/src/rwa/context/editor-context.d.ts +1 -1
- package/dist/src/rwa/context/editor-context.d.ts.map +1 -1
- package/dist/src/rwa/context/editor-context.js +1 -1
- package/dist/src/rwa/context/editor-context.js.map +1 -1
- package/dist/src/rwa/hooks/useColumnPriority.d.ts +1 -1
- package/dist/src/rwa/hooks/useColumnPriority.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useColumnPriority.js.map +1 -1
- package/dist/src/rwa/hooks/useDefaultFormValues.d.ts +2 -2
- package/dist/src/rwa/hooks/useDefaultFormValues.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useDefaultFormValues.js +1 -2
- package/dist/src/rwa/hooks/useDefaultFormValues.js.map +1 -1
- package/dist/src/rwa/hooks/useFormInputs.d.ts +1 -1
- package/dist/src/rwa/hooks/useFormInputs.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useFormInputs.js +1 -3
- package/dist/src/rwa/hooks/useFormInputs.js.map +1 -1
- package/dist/src/rwa/hooks/useSortTableItems.d.ts +1 -1
- package/dist/src/rwa/hooks/useSortTableItems.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useSubmit.d.ts +6 -6
- package/dist/src/rwa/hooks/useSubmit.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useSubmit.js +1 -1
- package/dist/src/rwa/hooks/useSubmit.js.map +1 -1
- package/dist/src/rwa/hooks/useTableData.d.ts +1 -1
- package/dist/src/rwa/hooks/useTableData.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useTableData.js +1 -1
- package/dist/src/rwa/hooks/useTableData.js.map +1 -1
- package/dist/src/rwa/hooks/useTableForm.d.ts +5 -5
- package/dist/src/rwa/hooks/useTableForm.d.ts.map +1 -1
- package/dist/src/rwa/hooks/useTableForm.js +1 -1
- package/dist/src/rwa/hooks/useTableForm.js.map +1 -1
- package/dist/src/rwa/index.d.ts +1 -2
- package/dist/src/rwa/index.d.ts.map +1 -1
- package/dist/src/rwa/index.js +1 -2
- package/dist/src/rwa/index.js.map +1 -1
- package/dist/src/rwa/mocks.d.ts +26 -0
- package/dist/src/rwa/mocks.d.ts.map +1 -0
- package/dist/src/rwa/{mocks/assets.js → mocks.js} +135 -1
- package/dist/src/rwa/mocks.js.map +1 -0
- package/dist/src/rwa/types/actions.d.ts +1 -1
- package/dist/src/rwa/types/actions.d.ts.map +1 -1
- package/dist/src/rwa/types/form.d.ts +1 -1
- package/dist/src/rwa/types/form.d.ts.map +1 -1
- package/dist/src/rwa/types/state.d.ts +1 -1
- package/dist/src/rwa/types/state.d.ts.map +1 -1
- package/dist/src/rwa/types/table.d.ts +1 -1
- package/dist/src/rwa/types/table.d.ts.map +1 -1
- package/dist/src/rwa/types.d.ts +5 -0
- package/dist/src/rwa/types.d.ts.map +1 -0
- package/dist/src/rwa/types.js +5 -0
- package/dist/src/rwa/types.js.map +1 -0
- package/dist/src/rwa/utils/calculations.d.ts +1 -1
- package/dist/src/rwa/utils/calculations.d.ts.map +1 -1
- package/dist/src/rwa/utils/calculations.js +1 -1
- package/dist/src/rwa/utils/calculations.js.map +1 -1
- package/dist/src/rwa/utils/form.d.ts +1 -1
- package/dist/src/rwa/utils/form.d.ts.map +1 -1
- package/dist/src/rwa/utils/table.d.ts +1 -1
- package/dist/src/rwa/utils/table.d.ts.map +1 -1
- package/dist/src/rwa/utils/table.js +1 -1
- package/dist/src/rwa/utils/table.js.map +1 -1
- package/dist/src/rwa/utils/validators.d.ts +1 -1
- package/dist/src/rwa/utils/validators.d.ts.map +1 -1
- package/dist/src/rwa/utils/validators.js +1 -1
- package/dist/src/rwa/utils/validators.js.map +1 -1
- package/dist/src/ui/components/amount-input/types.d.ts +1 -1
- package/dist/src/ui/components/amount-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/button/button.d.ts +1 -2
- package/dist/src/ui/components/button/button.d.ts.map +1 -1
- package/dist/src/ui/components/button/button.js +3 -3
- package/dist/src/ui/components/button/button.js.map +1 -1
- package/dist/src/ui/components/button/button.test.d.ts +2 -0
- package/dist/src/ui/components/button/button.test.d.ts.map +1 -0
- package/dist/src/ui/components/button/button.test.js +11 -0
- package/dist/src/ui/components/button/button.test.js.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.stories.d.ts +29 -0
- package/dist/src/ui/components/character-counter/character-counter.stories.d.ts.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.stories.js +48 -0
- package/dist/src/ui/components/character-counter/character-counter.stories.js.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.test.d.ts +2 -0
- package/dist/src/ui/components/character-counter/character-counter.test.d.ts.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.test.js +36 -0
- package/dist/src/ui/components/character-counter/character-counter.test.js.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox-base.d.ts.map +1 -1
- package/dist/src/ui/components/checkbox/checkbox-base.js +1 -1
- package/dist/src/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/src/ui/components/checkbox/checkbox-base.test.d.ts +2 -0
- package/dist/src/ui/components/checkbox/checkbox-base.test.d.ts.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox-base.test.js +22 -0
- package/dist/src/ui/components/checkbox/checkbox-base.test.js.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox.d.ts +1 -1
- package/dist/src/ui/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/ui/components/checkbox/checkbox.js +1 -3
- package/dist/src/ui/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/ui/components/checkbox/checkbox.stories.d.ts +49 -0
- package/dist/src/ui/components/checkbox/checkbox.stories.d.ts.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox.stories.js +106 -0
- package/dist/src/ui/components/checkbox/checkbox.stories.js.map +1 -0
- package/dist/src/ui/components/checkbox/index.js +1 -0
- package/dist/src/ui/components/checkbox/index.js.map +1 -1
- package/dist/src/ui/components/command/command.d.ts +6 -6
- package/dist/src/ui/components/command/command.js +1 -1
- package/dist/src/ui/components/command/command.js.map +1 -1
- package/dist/src/ui/components/command/command.test.d.ts +2 -0
- package/dist/src/ui/components/command/command.test.d.ts.map +1 -0
- package/dist/src/ui/components/command/command.test.js +11 -0
- package/dist/src/ui/components/command/command.test.js.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.d.ts +1 -2
- package/dist/src/ui/components/enum-field/enum-field.d.ts.map +1 -1
- package/dist/src/ui/components/enum-field/enum-field.js +1 -2
- package/dist/src/ui/components/enum-field/enum-field.js.map +1 -1
- package/dist/src/ui/components/enum-field/enum-field.stories.d.ts +19 -0
- package/dist/src/ui/components/enum-field/enum-field.stories.d.ts.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.stories.js +247 -0
- package/dist/src/ui/components/enum-field/enum-field.stories.js.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.test.d.ts +2 -0
- package/dist/src/ui/components/enum-field/enum-field.test.d.ts.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.test.js +87 -0
- package/dist/src/ui/components/enum-field/enum-field.test.js.map +1 -0
- package/dist/src/ui/components/enum-field/types.d.ts +1 -1
- package/dist/src/ui/components/enum-field/types.d.ts.map +1 -1
- package/dist/src/ui/components/form/form.d.ts.map +1 -1
- package/dist/src/ui/components/form/form.js +1 -2
- package/dist/src/ui/components/form/form.js.map +1 -1
- package/dist/src/ui/components/form-description/form-description.js +1 -1
- package/dist/src/ui/components/form-description/form-description.js.map +1 -1
- package/dist/src/ui/components/form-description/form-description.stories.d.ts +17 -0
- package/dist/src/ui/components/form-description/form-description.stories.d.ts.map +1 -0
- package/dist/src/ui/components/form-description/form-description.stories.js +25 -0
- package/dist/src/ui/components/form-description/form-description.stories.js.map +1 -0
- package/dist/src/ui/components/form-description/form-description.test.d.ts +2 -0
- package/dist/src/ui/components/form-description/form-description.test.d.ts.map +1 -0
- package/dist/src/ui/components/form-description/form-description.test.js +29 -0
- package/dist/src/ui/components/form-description/form-description.test.js.map +1 -0
- package/dist/src/ui/components/form-group/form-group.test.d.ts +2 -0
- package/dist/src/ui/components/form-group/form-group.test.d.ts.map +1 -0
- package/dist/src/ui/components/form-group/form-group.test.js +16 -0
- package/dist/src/ui/components/form-group/form-group.test.js.map +1 -0
- package/dist/src/ui/components/form-label/form-label.d.ts.map +1 -1
- package/dist/src/ui/components/form-label/form-label.js +1 -2
- package/dist/src/ui/components/form-label/form-label.js.map +1 -1
- package/dist/src/ui/components/form-label/form-label.stories.d.ts +11 -0
- package/dist/src/ui/components/form-label/form-label.stories.d.ts.map +1 -0
- package/dist/src/ui/components/form-label/form-label.stories.js +74 -0
- package/dist/src/ui/components/form-label/form-label.stories.js.map +1 -0
- package/dist/src/ui/components/form-label/form-label.test.d.ts +2 -0
- package/dist/src/ui/components/form-label/form-label.test.d.ts.map +1 -0
- package/dist/src/ui/components/form-label/form-label.test.js +56 -0
- package/dist/src/ui/components/form-label/form-label.test.js.map +1 -0
- package/dist/src/ui/components/form-message/form-message.js +1 -1
- package/dist/src/ui/components/form-message/form-message.js.map +1 -1
- package/dist/src/ui/components/form-message/form-message.stories.d.ts +9 -0
- package/dist/src/ui/components/form-message/form-message.stories.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/form-message.stories.js +43 -0
- package/dist/src/ui/components/form-message/form-message.stories.js.map +1 -0
- package/dist/src/ui/components/form-message/form-message.test.d.ts +2 -0
- package/dist/src/ui/components/form-message/form-message.test.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/form-message.test.js +49 -0
- package/dist/src/ui/components/form-message/form-message.test.js.map +1 -0
- package/dist/src/ui/components/form-message/message-list.js +1 -1
- package/dist/src/ui/components/form-message/message-list.js.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js +1 -7
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js +1 -2
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.d.ts +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.d.ts.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js +2 -3
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.d.ts.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.js +1 -13
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.d.ts +2 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.js +134 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.test.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/types.d.ts +1 -2
- package/dist/src/ui/components/id-autocomplete/types.d.ts.map +1 -1
- package/dist/src/ui/components/index.d.ts +11 -0
- package/dist/src/ui/components/index.d.ts.map +1 -1
- package/dist/src/ui/components/index.js +11 -0
- package/dist/src/ui/components/index.js.map +1 -1
- package/dist/src/ui/components/input/index.d.ts +3 -1
- package/dist/src/ui/components/input/index.d.ts.map +1 -1
- package/dist/src/ui/components/input/index.js +1 -0
- package/dist/src/ui/components/input/index.js.map +1 -1
- package/dist/src/ui/components/input/input.d.ts.map +1 -1
- package/dist/src/ui/components/input/input.js +5 -1
- package/dist/src/ui/components/input/input.js.map +1 -1
- package/dist/src/ui/components/input/input.stories.d.ts +40 -0
- package/dist/src/ui/components/input/input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/input/input.stories.js +70 -0
- package/dist/src/ui/components/input/input.stories.js.map +1 -0
- package/dist/src/ui/components/input/input.test.d.ts +2 -0
- package/dist/src/ui/components/input/input.test.d.ts.map +1 -0
- package/dist/src/ui/components/input/input.test.js +46 -0
- package/dist/src/ui/components/input/input.test.js.map +1 -0
- package/dist/src/ui/components/input/splitted-input-diff.d.ts +3 -3
- package/dist/src/ui/components/input/splitted-input-diff.d.ts.map +1 -1
- package/dist/src/ui/components/input/splitted-input-diff.js +2 -5
- package/dist/src/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/src/ui/components/input/subcomponent/input-diff.js +1 -1
- package/dist/src/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/src/ui/components/input/subcomponent/text-diff.d.ts +1 -1
- package/dist/src/ui/components/input/subcomponent/text-diff.d.ts.map +1 -1
- package/dist/src/ui/components/input/subcomponent/text-diff.js +1 -1
- package/dist/src/ui/components/input/subcomponent/text-diff.js.map +1 -1
- package/dist/src/ui/components/popover/popover.js +1 -1
- package/dist/src/ui/components/popover/popover.js.map +1 -1
- package/dist/src/ui/components/popover/popover.test.d.ts +2 -0
- package/dist/src/ui/components/popover/popover.test.d.ts.map +1 -0
- package/dist/src/ui/components/popover/popover.test.js +11 -0
- package/dist/src/ui/components/popover/popover.test.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/index.d.ts +2 -1
- package/dist/src/ui/components/radio-group-field/index.d.ts.map +1 -1
- package/dist/src/ui/components/radio-group-field/index.js +2 -1
- package/dist/src/ui/components/radio-group-field/index.js.map +1 -1
- package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts +5 -6
- package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts.map +1 -1
- package/dist/src/ui/components/radio-group-field/radio-group-field.js +7 -9
- package/dist/src/ui/components/radio-group-field/radio-group-field.js.map +1 -1
- package/dist/src/ui/components/radio-group-field/radio-group-field.stories.d.ts +48 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.stories.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.stories.js +126 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.stories.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.test.d.ts +2 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.test.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.test.js +128 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.test.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group.test.d.ts +2 -0
- package/dist/src/ui/components/radio-group-field/radio-group.test.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group.test.js +74 -0
- package/dist/src/ui/components/radio-group-field/radio-group.test.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio.d.ts.map +1 -1
- package/dist/src/ui/components/radio-group-field/radio.js +1 -2
- package/dist/src/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/src/ui/components/radio-group-field/radio.test.d.ts +2 -0
- package/dist/src/ui/components/radio-group-field/radio.test.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio.test.js +60 -0
- package/dist/src/ui/components/radio-group-field/radio.test.js.map +1 -0
- package/dist/src/ui/components/select-field/content.d.ts +2 -2
- package/dist/src/ui/components/select-field/content.d.ts.map +1 -1
- package/dist/src/ui/components/select-field/content.js +2 -5
- package/dist/src/ui/components/select-field/content.js.map +1 -1
- package/dist/src/ui/components/select-field/select-field.d.ts +1 -2
- package/dist/src/ui/components/select-field/select-field.d.ts.map +1 -1
- package/dist/src/ui/components/select-field/select-field.js +1 -10
- package/dist/src/ui/components/select-field/select-field.js.map +1 -1
- package/dist/src/ui/components/select-field/select-field.stories.d.ts +19 -0
- package/dist/src/ui/components/select-field/select-field.stories.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/select-field.stories.js +251 -0
- package/dist/src/ui/components/select-field/select-field.stories.js.map +1 -0
- package/dist/src/ui/components/select-field/select-field.test.d.ts +2 -0
- package/dist/src/ui/components/select-field/select-field.test.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/select-field.test.js +131 -0
- package/dist/src/ui/components/select-field/select-field.test.js.map +1 -0
- package/dist/src/ui/components/select-field/selected-content.d.ts +1 -1
- package/dist/src/ui/components/select-field/selected-content.d.ts.map +1 -1
- package/dist/src/ui/components/select-field/selected-content.js +1 -2
- package/dist/src/ui/components/select-field/selected-content.js.map +1 -1
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts +2 -2
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -1
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js +2 -3
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
- package/dist/src/ui/components/select-field/use-select-field.d.ts +1 -1
- package/dist/src/ui/components/select-field/use-select-field.d.ts.map +1 -1
- package/dist/src/ui/components/select-field/use-select-field.js.map +1 -1
- package/dist/src/ui/components/text-field/text-field.d.ts +2 -3
- package/dist/src/ui/components/text-field/text-field.d.ts.map +1 -1
- package/dist/src/ui/components/text-field/text-field.js +7 -3
- package/dist/src/ui/components/text-field/text-field.js.map +1 -1
- package/dist/src/ui/components/text-field/text-field.test.d.ts +2 -0
- package/dist/src/ui/components/text-field/text-field.test.d.ts.map +1 -0
- package/dist/src/ui/components/text-field/text-field.test.js +81 -0
- package/dist/src/ui/components/text-field/text-field.test.js.map +1 -0
- package/dist/src/ui/components/text-input/index.js +1 -0
- package/dist/src/ui/components/text-input/index.js.map +1 -1
- package/dist/src/ui/components/text-input/text-input-diff.d.ts +1 -1
- package/dist/src/ui/components/text-input/text-input-diff.d.ts.map +1 -1
- package/dist/src/ui/components/text-input/text-input-diff.js +1 -3
- package/dist/src/ui/components/text-input/text-input-diff.js.map +1 -1
- package/dist/src/ui/components/text-input/text-input.d.ts +1 -1
- package/dist/src/ui/components/text-input/text-input.d.ts.map +1 -1
- package/dist/src/ui/components/text-input/text-input.js +1 -9
- package/dist/src/ui/components/text-input/text-input.js.map +1 -1
- package/dist/src/ui/components/text-input/text-input.stories.d.ts +167 -0
- package/dist/src/ui/components/text-input/text-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/text-input/text-input.stories.js +109 -0
- package/dist/src/ui/components/text-input/text-input.stories.js.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.d.ts +1 -2
- package/dist/src/ui/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/ui/components/tooltip/tooltip.js +3 -4
- package/dist/src/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/ui/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.d.ts.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.js +87 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.test.d.ts +2 -0
- package/dist/src/ui/components/tooltip/tooltip.test.d.ts.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.test.js +60 -0
- package/dist/src/ui/components/tooltip/tooltip.test.js.map +1 -0
- package/dist/src/ui/components/value-transformer/index.d.ts +0 -1
- package/dist/src/ui/components/value-transformer/index.d.ts.map +1 -1
- package/dist/src/ui/components/value-transformer/index.js +0 -1
- package/dist/src/ui/components/value-transformer/index.js.map +1 -1
- package/dist/src/ui/components/value-transformer/value-transformer.d.ts +2 -2
- package/dist/src/ui/components/value-transformer/value-transformer.d.ts.map +1 -1
- package/dist/src/ui/components/value-transformer/value-transformer.js +2 -6
- package/dist/src/ui/components/value-transformer/value-transformer.js.map +1 -1
- package/dist/src/ui/components/value-transformer/value-transformer.test.d.ts +2 -0
- package/dist/src/ui/components/value-transformer/value-transformer.test.d.ts.map +1 -0
- package/dist/src/ui/components/value-transformer/value-transformer.test.js +105 -0
- package/dist/src/ui/components/value-transformer/value-transformer.test.js.map +1 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.d.ts +3 -3
- package/dist/src/ui/components/with-field-validation/with-field-validation.d.ts.map +1 -1
- package/dist/src/ui/components/with-field-validation/with-field-validation.js +3 -6
- package/dist/src/ui/components/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/src/ui/components/with-field-validation/with-field-validation.test.d.ts +2 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.test.d.ts.map +1 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.test.js +139 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.test.js.map +1 -0
- package/dist/src/ui/lib/decorators.d.ts.map +1 -1
- package/dist/src/ui/lib/decorators.js +1 -3
- package/dist/src/ui/lib/decorators.js.map +1 -1
- package/dist/src/ui/lib/index.d.ts +0 -1
- package/dist/src/ui/lib/index.d.ts.map +1 -1
- package/dist/src/ui/lib/index.js +0 -1
- package/dist/src/ui/lib/index.js.map +1 -1
- package/dist/src/ui/lib/is-empty.test.d.ts +2 -0
- package/dist/src/ui/lib/is-empty.test.d.ts.map +1 -0
- package/dist/src/ui/lib/is-empty.test.js +87 -0
- package/dist/src/ui/lib/is-empty.test.js.map +1 -0
- package/dist/src/ui/lib/shared-value-transformers.d.ts +1 -1
- package/dist/src/ui/lib/shared-value-transformers.d.ts.map +1 -1
- package/dist/src/ui/lib/testing.d.ts.map +1 -1
- package/dist/src/ui/lib/testing.js +1 -1
- package/dist/src/ui/lib/testing.js.map +1 -1
- package/dist/src/ui/lib/value-cast.js +1 -2
- package/dist/src/ui/lib/value-cast.js.map +1 -1
- package/dist/src/utils/cn.d.ts.map +1 -0
- package/dist/src/utils/cn.js.map +1 -0
- package/dist/src/{powerhouse/utils → utils}/fixedForwardRef.d.ts +0 -1
- package/dist/src/utils/fixedForwardRef.d.ts.map +1 -0
- package/dist/src/{powerhouse/utils → utils}/fixedForwardRef.js +0 -2
- package/dist/src/utils/fixedForwardRef.js.map +1 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/index.js +3 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/style.css +3 -4
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +9 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +23 -34
- package/dist/src/connect/constants/drives.d.ts +0 -7
- package/dist/src/connect/constants/drives.d.ts.map +0 -1
- package/dist/src/connect/constants/drives.js +0 -7
- package/dist/src/connect/constants/drives.js.map +0 -1
- package/dist/src/connect/constants/nodes.d.ts +0 -8
- package/dist/src/connect/constants/nodes.d.ts.map +0 -1
- package/dist/src/connect/constants/nodes.js +0 -8
- package/dist/src/connect/constants/nodes.js.map +0 -1
- package/dist/src/powerhouse/utils/fixedForwardRef.d.ts.map +0 -1
- package/dist/src/powerhouse/utils/fixedForwardRef.js.map +0 -1
- package/dist/src/rwa/mocks/assets.d.ts +0 -19
- package/dist/src/rwa/mocks/assets.d.ts.map +0 -1
- package/dist/src/rwa/mocks/assets.js.map +0 -1
- package/dist/src/rwa/mocks/index.d.ts +0 -4
- package/dist/src/rwa/mocks/index.d.ts.map +0 -1
- package/dist/src/rwa/mocks/index.js +0 -4
- package/dist/src/rwa/mocks/index.js.map +0 -1
- package/dist/src/rwa/mocks/state.d.ts +0 -4
- package/dist/src/rwa/mocks/state.d.ts.map +0 -1
- package/dist/src/rwa/mocks/state.js +0 -21
- package/dist/src/rwa/mocks/state.js.map +0 -1
- package/dist/src/rwa/mocks/transactions.d.ts +0 -7
- package/dist/src/rwa/mocks/transactions.d.ts.map +0 -1
- package/dist/src/rwa/mocks/transactions.js +0 -84
- package/dist/src/rwa/mocks/transactions.js.map +0 -1
- package/dist/src/rwa/types/index.d.ts +0 -5
- package/dist/src/rwa/types/index.d.ts.map +0 -1
- package/dist/src/rwa/types/index.js +0 -5
- package/dist/src/rwa/types/index.js.map +0 -1
- package/dist/src/ui/components/with-field-validation/index.d.ts +0 -2
- package/dist/src/ui/components/with-field-validation/index.d.ts.map +0 -1
- package/dist/src/ui/components/with-field-validation/index.js +0 -2
- package/dist/src/ui/components/with-field-validation/index.js.map +0 -1
- package/dist/src/ui/lib/cn.d.ts.map +0 -1
- package/dist/src/ui/lib/cn.js.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- /package/{dist/src/assets → assets}/connect-loader.mp4 +0 -0
- /package/{dist/src/assets → assets}/connect.png +0 -0
- /package/{dist/src/assets → assets}/home-bg.avif +0 -0
- /package/{dist/src/assets → assets}/home-bg.png +0 -0
- /package/{dist/src/assets → assets}/icons/budget.png +0 -0
- /package/{dist/src/assets → assets}/icons/global.png +0 -0
- /package/{dist/src/assets → assets}/icons/legal.png +0 -0
- /package/{dist/src/assets → assets}/icons/profile.png +0 -0
- /package/{dist/src/assets → assets}/icons/rwa-report.png +0 -0
- /package/{dist/src/assets → assets}/icons/template.png +0 -0
- /package/{dist/src/assets → assets}/powerhouse-rounded.png +0 -0
- /package/{dist/src/assets → assets}/renown-hover.png +0 -0
- /package/{dist/src/assets → assets}/renown-short-hover.png +0 -0
- /package/{dist/src/assets → assets}/renown-short.png +0 -0
- /package/{dist/src/assets → assets}/renown.png +0 -0
- /package/dist/src/{ui/lib → utils}/cn.d.ts +0 -0
- /package/dist/src/{ui/lib → utils}/cn.js +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
|
|
3
|
+
import { userEvent } from "@testing-library/user-event";
|
|
4
|
+
import { describe, expect, it } from "vitest";
|
|
5
|
+
import { Tooltip, TooltipProvider } from "@powerhousedao/design-system";
|
|
6
|
+
const TooltipTest = ({ content = "Test tooltip", children = "Hover me", ...props }) => (_jsx(TooltipProvider, { children: _jsx(Tooltip, { content: content, ...props, children: children }) }));
|
|
7
|
+
describe("Tooltip", () => {
|
|
8
|
+
it("should render trigger element", () => {
|
|
9
|
+
render(_jsx(TooltipTest, {}));
|
|
10
|
+
expect(screen.getByRole("button")).toBeInTheDocument();
|
|
11
|
+
});
|
|
12
|
+
it("should show tooltip on hover", async () => {
|
|
13
|
+
const onOpenChange = vi.fn();
|
|
14
|
+
render(_jsx(TooltipTest, { onOpenChange: onOpenChange }));
|
|
15
|
+
const trigger = screen.getByText("Hover me");
|
|
16
|
+
const user = userEvent.setup();
|
|
17
|
+
await user.hover(trigger);
|
|
18
|
+
// Wait for the tooltip to be visible by role
|
|
19
|
+
const tooltip = await waitFor(() => screen.getAllByText("Test tooltip"));
|
|
20
|
+
expect(tooltip[0]).toBeInTheDocument();
|
|
21
|
+
});
|
|
22
|
+
it("should hide tooltip when mouse leaves", async () => {
|
|
23
|
+
render(_jsx(TooltipTest, {}));
|
|
24
|
+
const trigger = screen.getByRole("button");
|
|
25
|
+
fireEvent.mouseEnter(trigger);
|
|
26
|
+
fireEvent.mouseLeave(trigger);
|
|
27
|
+
await waitFor(() => {
|
|
28
|
+
expect(screen.queryByRole("tooltip")).not.toBeInTheDocument();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
it("should render with custom content", () => {
|
|
32
|
+
render(_jsx(TooltipTest, { content: _jsx("div", { children: "Custom tooltip" }), open: true }));
|
|
33
|
+
expect(screen.getByRole("tooltip")).toBeInTheDocument();
|
|
34
|
+
});
|
|
35
|
+
it("should render with custom trigger element", () => {
|
|
36
|
+
render(_jsx(TooltipTest, { children: _jsx("span", { children: "Custom trigger" }) }));
|
|
37
|
+
expect(screen.getByText("Custom trigger")).toBeInTheDocument();
|
|
38
|
+
});
|
|
39
|
+
it("should be controlled with open prop", () => {
|
|
40
|
+
render(_jsx(TooltipTest, { open: true }));
|
|
41
|
+
expect(screen.getByRole("tooltip")).toBeInTheDocument();
|
|
42
|
+
});
|
|
43
|
+
it("should apply custom className to tooltip content", () => {
|
|
44
|
+
// custom class for testing purposes
|
|
45
|
+
render(_jsx(TooltipTest, { className: "custom-class", open: true }));
|
|
46
|
+
const tooltip = screen.getAllByText("Test tooltip");
|
|
47
|
+
expect(tooltip[0]).toHaveClass("custom-class");
|
|
48
|
+
});
|
|
49
|
+
it("should render with different alignments", () => {
|
|
50
|
+
render(_jsx(TooltipTest, { align: "start", open: true }));
|
|
51
|
+
const tooltip = screen.getAllByText("Test tooltip");
|
|
52
|
+
expect(tooltip[0]).toHaveAttribute("data-align", "start");
|
|
53
|
+
});
|
|
54
|
+
it("should render on different sides", () => {
|
|
55
|
+
render(_jsx(TooltipTest, { side: "right", open: true }));
|
|
56
|
+
const tooltip = screen.getAllByText("Test tooltip");
|
|
57
|
+
expect(tooltip[0]).toHaveAttribute("data-side", "right");
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=tooltip.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/tooltip/tooltip.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,WAAW,GAAG,CAAC,EACnB,OAAO,GAAG,cAAiC,EAC3C,QAAQ,GAAG,UAA6B,EACxC,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,KAAC,eAAe,cACd,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,YACjC,QAAQ,GACD,GACM,CACnB,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,CAAC,KAAC,WAAW,KAAG,CAAC,CAAC;QACxB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,YAAY,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,MAAM,CAAC,KAAC,WAAW,IAAC,YAAY,EAAE,Y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AAO,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -58,6 +58,6 @@ interface ValueTransformerProps {
|
|
|
58
58
|
* <Input />
|
|
59
59
|
* </ValueTransformer>
|
|
60
60
|
*/
|
|
61
|
-
declare function ValueTransformer({ transformers, children }: ValueTransformerProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
62
|
-
export
|
|
61
|
+
export declare function ValueTransformer({ transformers, children, }: ValueTransformerProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
62
|
+
export {};
|
|
63
63
|
//# sourceMappingURL=value-transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"value-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,CAAC,EAAE;QACR;;;WAGG;QACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;QAC7B;;;WAGG;QACH,EAAE,CAAC,EAAE,OAAO,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,CAAC;AAEvE,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B;AAkDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,QAAQ,GACT,EAAE,qBAAqB,sEAyFvB"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { deepEqual } from "@powerhousedao/design-system";
|
|
1
2
|
import React, { useEffect } from "react";
|
|
2
3
|
import { useFormContext } from "react-hook-form";
|
|
3
|
-
import { deepEqual } from "../../lib/index.js";
|
|
4
4
|
// Workaround to set the value of an input element
|
|
5
5
|
// following react core team recommendation
|
|
6
6
|
// https://github.com/facebook/react/issues/10135
|
|
7
7
|
function setNativeValue(element, value) {
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
9
8
|
const valueSetter = Object.getOwnPropertyDescriptor(element, "value")?.set;
|
|
10
9
|
const prototype = Object.getPrototypeOf(element);
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
12
10
|
const prototypeValueSetter = Object.getOwnPropertyDescriptor(prototype, "value")?.set;
|
|
13
11
|
if (valueSetter && valueSetter !== prototypeValueSetter) {
|
|
14
12
|
prototypeValueSetter?.call(element, value);
|
|
@@ -73,7 +71,7 @@ function _applyTransformers(transformers, value, filter = "blur") {
|
|
|
73
71
|
* <Input />
|
|
74
72
|
* </ValueTransformer>
|
|
75
73
|
*/
|
|
76
|
-
function ValueTransformer({ transformers, children }) {
|
|
74
|
+
export function ValueTransformer({ transformers, children, }) {
|
|
77
75
|
const formContext = useFormContext();
|
|
78
76
|
const setValue = formContext?.setValue;
|
|
79
77
|
useEffect(() => {
|
|
@@ -94,7 +92,6 @@ function ValueTransformer({ transformers, children }) {
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
}, [transformers, setValue]);
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
98
95
|
return React.cloneElement(children, {
|
|
99
96
|
...children.props,
|
|
100
97
|
onChange: (event) => {
|
|
@@ -138,5 +135,4 @@ function ValueTransformer({ transformers, children }) {
|
|
|
138
135
|
},
|
|
139
136
|
});
|
|
140
137
|
}
|
|
141
|
-
export default ValueTransformer;
|
|
142
138
|
//# sourceMappingURL=value-transformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-transformer.js","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"value-transformer.js","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAgCjD,kDAAkD;AAClD,2CAA2C;AAC3C,iDAAiD;AACjD,SAAS,cAAc,CAAC,OAAyB,EAAE,KAAU;IAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,wBA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gB,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;oBAC/C,cAAc,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;oBACzC,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;oBAC3D,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-transformer.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { withFieldValidation } from "@powerhousedao/design-system";
|
|
3
|
+
import { fireEvent, render } from "@testing-library/react";
|
|
4
|
+
import { userEvent } from "@testing-library/user-event";
|
|
5
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
6
|
+
import { describe, expect, it, vi } from "vitest";
|
|
7
|
+
import { ValueTransformer } from "./value-transformer.js";
|
|
8
|
+
const TestWrapper = ({ children }) => {
|
|
9
|
+
const methods = useForm();
|
|
10
|
+
return _jsx(FormProvider, { ...methods, children: children });
|
|
11
|
+
};
|
|
12
|
+
const TestInputRaw = ({ onChange, onBlur, value = "", name = "test", }) => {
|
|
13
|
+
return (_jsx("input", { "data-testid": "test-input", onChange: onChange, onBlur: onBlur, value: value, name: name }));
|
|
14
|
+
};
|
|
15
|
+
const TestInput = withFieldValidation(TestInputRaw);
|
|
16
|
+
describe("ValueTransformer", () => {
|
|
17
|
+
it("should apply transformer on blur by default", () => {
|
|
18
|
+
const onChange = vi.fn();
|
|
19
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
20
|
+
{
|
|
21
|
+
transformer: (value) => value?.trim(),
|
|
22
|
+
},
|
|
23
|
+
], children: _jsx(TestInput, { onChange: onChange, name: "test" }) }) }));
|
|
24
|
+
const input = getByTestId("test-input");
|
|
25
|
+
fireEvent.change(input, { target: { value: " test " } });
|
|
26
|
+
fireEvent.blur(input);
|
|
27
|
+
expect(input.value).toBe("test");
|
|
28
|
+
});
|
|
29
|
+
it("should apply transformer on change when specified", async () => {
|
|
30
|
+
const onChange = vi.fn();
|
|
31
|
+
const user = userEvent.setup();
|
|
32
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
33
|
+
{
|
|
34
|
+
transformer: (value) => value?.toUpperCase(),
|
|
35
|
+
options: {
|
|
36
|
+
trigger: "change",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
], children: _jsx(TestInput, { onChange: onChange, name: "test" }) }) }));
|
|
40
|
+
const input = getByTestId("test-input");
|
|
41
|
+
await user.type(input, "test");
|
|
42
|
+
expect(input.value).toBe("TEST");
|
|
43
|
+
});
|
|
44
|
+
it("should not apply transformer when if condition is false", () => {
|
|
45
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
46
|
+
{
|
|
47
|
+
transformer: (value) => value.toUpperCase(),
|
|
48
|
+
options: {
|
|
49
|
+
if: false,
|
|
50
|
+
trigger: "change",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
], children: _jsx(TestInput, { name: "test" }) }) }));
|
|
54
|
+
const input = getByTestId("test-input");
|
|
55
|
+
fireEvent.change(input, { target: { value: "test" } });
|
|
56
|
+
expect(input.value).toBe("test");
|
|
57
|
+
});
|
|
58
|
+
it("should apply transformers on mount", () => {
|
|
59
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
60
|
+
{
|
|
61
|
+
transformer: (value) => value?.toUpperCase(),
|
|
62
|
+
},
|
|
63
|
+
], children: _jsx(TestInput, { value: "test", name: "test" }) }) }));
|
|
64
|
+
const input = getByTestId("test-input");
|
|
65
|
+
expect(input.value).toBe("TEST");
|
|
66
|
+
});
|
|
67
|
+
it("should handle array of transformer functions", () => {
|
|
68
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
69
|
+
(value) => value?.trim(),
|
|
70
|
+
(value) => value?.toUpperCase(),
|
|
71
|
+
], children: _jsx(TestInput, { name: "test" }) }) }));
|
|
72
|
+
const input = getByTestId("test-input");
|
|
73
|
+
fireEvent.change(input, { target: { value: " test " } });
|
|
74
|
+
fireEvent.blur(input);
|
|
75
|
+
expect(input.value).toBe("TEST");
|
|
76
|
+
});
|
|
77
|
+
it("should not trigger change event if transformed value is the same", () => {
|
|
78
|
+
const onChange = vi.fn();
|
|
79
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
80
|
+
{
|
|
81
|
+
transformer: (value) => value, // Identity transformer
|
|
82
|
+
},
|
|
83
|
+
], children: _jsx(TestInput, { onChange: onChange, name: "test" }) }) }));
|
|
84
|
+
const input = getByTestId("test-input");
|
|
85
|
+
fireEvent.change(input, { target: { value: "test" } });
|
|
86
|
+
fireEvent.blur(input);
|
|
87
|
+
expect(onChange).toHaveBeenCalledTimes(1); // Only the initial change
|
|
88
|
+
});
|
|
89
|
+
it("should preserve original event handlers", async () => {
|
|
90
|
+
const onChangeMock = vi.fn();
|
|
91
|
+
const onBlurMock = vi.fn();
|
|
92
|
+
const { getByTestId } = render(_jsx(TestWrapper, { children: _jsx(ValueTransformer, { transformers: [
|
|
93
|
+
{
|
|
94
|
+
transformer: (value) => value?.toUpperCase(),
|
|
95
|
+
options: { trigger: "change" },
|
|
96
|
+
},
|
|
97
|
+
], children: _jsx(TestInput, { onChange: onChangeMock, onBlur: onBlurMock, name: "test", value: "" }) }) }));
|
|
98
|
+
const input = getByTestId("test-input");
|
|
99
|
+
await userEvent.type(input, "test");
|
|
100
|
+
await userEvent.tab(); // to trigger blur
|
|
101
|
+
expect(onChangeMock).toHaveBeenCalled();
|
|
102
|
+
expect(onBlurMock).toHaveBeenCalled();
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=value-transformer.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-transformer.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/value-transformer/value-transformer.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG,OAAO,EAAE,CAAC;IAC1B,OAAO,KAAC,YAAY,OAAK,OAAO,YAAG,QAAQ,GAAgB,CAAC;AAC9D,CAAC,CAAC;AASF,MAAM,YAAY,GAAG,CAAC,EACpB,QAAQ,EACR,MAAM,EACN,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,MAAM,GACF,EAAE,EAAE;IACf,OAAO,CACL,+BACc,YAAY,EACxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,GACV,CACH,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,SAAS,GAAG,mBAAmB,CAAa,YAAY,CAAC,CAAC;AAEhE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,C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import type { ComponentType, ElementRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
|
|
3
3
|
interface PossibleProps extends InputBaseProps<unknown>, FieldErrorHandling {
|
|
4
4
|
pattern?: RegExp;
|
|
5
5
|
maxLength?: number;
|
|
@@ -11,6 +11,6 @@ export interface ValidationOptions<T> {
|
|
|
11
11
|
validations?: Record<string, (parentProps: T) => ValidatorHandler>;
|
|
12
12
|
transformValue?: (value: any) => any;
|
|
13
13
|
}
|
|
14
|
-
export declare const withFieldValidation: <T extends PossibleProps, R extends
|
|
14
|
+
export declare const withFieldValidation: <T extends PossibleProps, R extends ElementRef<any> = ElementRef<any>>(Component: ComponentType<T>, options?: ValidationOptions<T>) => ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<R>>;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=with-field-validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-field-validation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"with-field-validation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAEV,aAAa,EACb,UAAU,EAEV,yBAAyB,EACzB,eAAe,EACf,aAAa,EACd,MAAM,OAAO,CAAC;AAIf,UAAU,aAAc,SAAQ,cAAc,CAAC,OAAO,CAAC,EAAE,kBAAkB;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAOD,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,gBAAgB,CAAC,CAAC;IACnE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;CACtC;AAED,eAAO,MAAM,mBAAmB,GAC9B,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,UAAU,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAE3C,WAAW,aAAa,CAAC,CAAC,CAAC,EAC3B,UAAU,iBAAiB,CAAC,CAAC,CAAC,KAC7B,yBAAyB,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CA+RjE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { forwardRef, useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { Controller, useFormContext, useFormState } from "react-hook-form";
|
|
4
4
|
export const withFieldValidation = (Component, options) => {
|
|
5
|
-
return
|
|
5
|
+
return forwardRef(({ value, name, showErrorOnBlur, showErrorOnChange, validators: customValidators, ...props }, ref) => {
|
|
6
6
|
const { onChange: onChangeProp, onBlur: onBlurProp } = props;
|
|
7
7
|
const { control, formState: { errors: formErrors, defaultValues }, trigger, setValue, getValues, } = useFormContext();
|
|
8
8
|
const { submitCount } = useFormState();
|
|
@@ -45,11 +45,8 @@ export const withFieldValidation = (Component, options) => {
|
|
|
45
45
|
if (value !== undefined && !onChangeProp) {
|
|
46
46
|
console.warn(`[Field: ${name}] Value prop provided without onChange so it will be ignored. Use disabled/readOnly if you want to prevent changes.`);
|
|
47
47
|
}
|
|
48
|
-
return (_jsx(Controller, { control: control, name: name, defaultValue: (value ?? props.defaultValue), disabled: props.disabled,
|
|
49
|
-
// eslint-disable-next-line react/jsx-no-bind
|
|
50
|
-
render: ({ field: {
|
|
48
|
+
return (_jsx(Controller, { control: control, name: name, defaultValue: (value ?? props.defaultValue), disabled: props.disabled, render: ({ field: {
|
|
51
49
|
// just preventing that onChange is included in the rest of the props
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
50
|
onChange: _, onBlur: onBlurController, value: internalValue, ...rest }, }) => {
|
|
54
51
|
// ignore eslint that flags an error here:
|
|
55
52
|
// React Hook "useCallback" cannot be called inside a callback.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-field-validation.js","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"with-field-validation.js","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoB3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAIjC,SAA2B,EAC3B,OAA8B,EACoC,EAAE;IACpE,OAAO,UAAU,CACf,CACE,EACE,KAAK,EACL,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;QACF,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,GAClD,KAA4B,CAAC;QAC/B,MAAM,EACJ,OAAO,EACP,SAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,EAChD,OAAO,EACP,QAAQ,EACR,SAAS,GACV,GAAG,cAAc,EAAE,CAAC;QACrB,MAAM,EAAE,WAAW,EAAE,GAAG,YAAY,EAAE,CAAC;QAEvC,IAAI,CAAC,IAAI,EAAE,CAAC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GAAG,KAAK;6BACT,CAAC;4BACF,OAAO;gCACL,GAAG;gCACH,gBAAgB,CAAC,eAA+B,CAAC;6BAClD,CAAC;wBACJ,CAAC,CACF,CACF;wBACH,CAAC,CAAC,EAAE,CAAC;oBACP,2CAA2C;oBAC3C,GAAG,CAAC,gBAAgB,KAAK,SAAS;wBAChC,CAAC,CAAC,MAAM,CAAC,WAAW,CAChB,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC;4BAC9B,CAAC,CAAC,gBAAgB;4BAClB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CACrB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC;4BAC1B,mBAAmB,KAAK,EAAE;4BAC1B,SAAS;yBACV,CAAC,CACH;wBACH,CAAC,CAAC,EAAE,CAAC;iBACR;aACF,GACD,CACH,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-field-validation.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Form, FormGroup, FormLabel, FormMessageList, Input, renderWithForm, } from "@powerhousedao/design-system";
|
|
3
|
+
import { act, render, screen } from "@testing-library/react";
|
|
4
|
+
import { userEvent } from "@testing-library/user-event";
|
|
5
|
+
import { createRef, forwardRef } from "react";
|
|
6
|
+
import { describe, expect, it, vi } from "vitest";
|
|
7
|
+
import { withFieldValidation } from "./with-field-validation.js";
|
|
8
|
+
// Test component that will be wrapped
|
|
9
|
+
const TextFieldTesting = forwardRef(({ label, value, defaultValue, onChange, errors, pattern, ...props }, ref) => {
|
|
10
|
+
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { htmlFor: "test", required: props.required, disabled: props.disabled, hasError: !!errors?.length, children: label })), _jsx(Input, { id: "test", "data-testid": "test-input", value: value, defaultValue: defaultValue, onChange: onChange, pattern: pattern?.toString(), ref: ref, ...props }), errors && (_jsx(FormMessageList, { "data-testid": "error-message", messages: errors, type: "error" }))] }));
|
|
11
|
+
});
|
|
12
|
+
const WrappedComponent = withFieldValidation(TextFieldTesting);
|
|
13
|
+
describe("withFieldValidation", () => {
|
|
14
|
+
it("should render the wrapped component", () => {
|
|
15
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test" }));
|
|
16
|
+
expect(screen.getByTestId("test-input")).toBeInTheDocument();
|
|
17
|
+
});
|
|
18
|
+
it("should handle required validation", async () => {
|
|
19
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", required: true }));
|
|
20
|
+
const input = screen.getByTestId("test-input");
|
|
21
|
+
await userEvent.click(input);
|
|
22
|
+
await userEvent.keyboard("{Enter}"); // submit the form should fail
|
|
23
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
24
|
+
});
|
|
25
|
+
it("should handle pattern validation", async () => {
|
|
26
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", pattern: /^[A-Z]+$/ }));
|
|
27
|
+
const input = screen.getByTestId("test-input");
|
|
28
|
+
await userEvent.type(input, "abc");
|
|
29
|
+
await userEvent.keyboard("{Enter}");
|
|
30
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
31
|
+
});
|
|
32
|
+
it("should handle minLength validation", async () => {
|
|
33
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", minLength: 3 }));
|
|
34
|
+
const input = screen.getByTestId("test-input");
|
|
35
|
+
await userEvent.type(input, "12");
|
|
36
|
+
await userEvent.keyboard("{Enter}");
|
|
37
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
38
|
+
});
|
|
39
|
+
it("should handle extra component validators", async () => {
|
|
40
|
+
const validator = (value) => {
|
|
41
|
+
return value === "valid" || "Custom error message";
|
|
42
|
+
};
|
|
43
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", validators: validator }));
|
|
44
|
+
const input = screen.getByTestId("test-input");
|
|
45
|
+
await userEvent.type(input, "invalid");
|
|
46
|
+
await userEvent.keyboard("{Enter}");
|
|
47
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
48
|
+
});
|
|
49
|
+
it("should handle multiple extra component validators", async () => {
|
|
50
|
+
const validator1 = vi.fn().mockReturnValue(true);
|
|
51
|
+
const validator2 = vi.fn().mockReturnValue(true);
|
|
52
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", validators: [validator1, validator2] }));
|
|
53
|
+
const input = screen.getByTestId("test-input");
|
|
54
|
+
await userEvent.type(input, "test");
|
|
55
|
+
await userEvent.keyboard("{Enter}");
|
|
56
|
+
expect(validator1).toHaveBeenCalledTimes(1);
|
|
57
|
+
expect(validator2).toHaveBeenCalledTimes(1);
|
|
58
|
+
});
|
|
59
|
+
it("should handle multiple validation rules", async () => {
|
|
60
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", required: true, minLength: 5 }));
|
|
61
|
+
const input = screen.getByTestId("test-input");
|
|
62
|
+
await userEvent.type(input, "1234");
|
|
63
|
+
await userEvent.keyboard("{Enter}");
|
|
64
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
65
|
+
});
|
|
66
|
+
it("should pass through custom error messages", async () => {
|
|
67
|
+
await act(() => renderWithForm(_jsx(WrappedComponent, { name: "test", errors: ["Custom error"] })));
|
|
68
|
+
expect(screen.getByTestId("error-message")).toHaveTextContent("Custom error");
|
|
69
|
+
});
|
|
70
|
+
it("should handle form submission with default values", async () => {
|
|
71
|
+
const handleSubmit = vi.fn();
|
|
72
|
+
render(_jsxs(Form, { onSubmit: handleSubmit, defaultValues: { test: "default" }, children: [_jsx(WrappedComponent, { name: "test" }), _jsx("button", { type: "submit", children: "Submit" })] }));
|
|
73
|
+
const submitButton = screen.getByRole("button", { name: "Submit" });
|
|
74
|
+
await userEvent.click(submitButton);
|
|
75
|
+
expect(handleSubmit).toHaveBeenCalledWith({ test: "default" });
|
|
76
|
+
});
|
|
77
|
+
it("should not submit values if the form has errors", async () => {
|
|
78
|
+
const handleSubmit = vi.fn();
|
|
79
|
+
render(_jsxs(Form, { onSubmit: handleSubmit, children: [_jsx(WrappedComponent, { name: "test", value: "", onChange: () => { }, required: true }), _jsx("button", { type: "submit", children: "Submit" })] }));
|
|
80
|
+
const submitButton = screen.getByRole("button", { name: "Submit" });
|
|
81
|
+
await userEvent.click(submitButton);
|
|
82
|
+
expect(handleSubmit).not.toHaveBeenCalled();
|
|
83
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
84
|
+
});
|
|
85
|
+
it("should validate custom validators", async () => {
|
|
86
|
+
const WrappedComponentWithValidator = withFieldValidation(TextFieldTesting, {
|
|
87
|
+
validations: {
|
|
88
|
+
_isPrime: () => ((value) => {
|
|
89
|
+
return Number(value) % 2 === 0 || "Custom error message";
|
|
90
|
+
}),
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
renderWithForm(_jsx(WrappedComponentWithValidator, { name: "test" }));
|
|
94
|
+
const input = screen.getByTestId("test-input");
|
|
95
|
+
await userEvent.type(input, "3");
|
|
96
|
+
await userEvent.keyboard("{Enter}");
|
|
97
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
98
|
+
});
|
|
99
|
+
it("should validate custom validators using parent props", async () => {
|
|
100
|
+
const WrappedComponentWithValidator = withFieldValidation(TextFieldTesting, {
|
|
101
|
+
validations: {
|
|
102
|
+
_autoCompleteRequireLength3: (props) => ((value) => {
|
|
103
|
+
return props.autoComplete
|
|
104
|
+
? value.length > 3
|
|
105
|
+
? true
|
|
106
|
+
: "Error"
|
|
107
|
+
: true;
|
|
108
|
+
}),
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
renderWithForm(_jsx(WrappedComponentWithValidator, { name: "test", autoComplete: true }));
|
|
112
|
+
const input = screen.getByTestId("test-input");
|
|
113
|
+
await userEvent.type(input, "12");
|
|
114
|
+
await userEvent.keyboard("{Enter}");
|
|
115
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
116
|
+
});
|
|
117
|
+
it("should revalidate on change after a submission with errors", async () => {
|
|
118
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", required: true }));
|
|
119
|
+
const input = screen.getByTestId("test-input");
|
|
120
|
+
// submit with empty value should fail as the field is required
|
|
121
|
+
await userEvent.type(input, "{Enter}");
|
|
122
|
+
expect(await screen.findByTestId("error-message")).toBeInTheDocument();
|
|
123
|
+
// change the value to trigger revalidation
|
|
124
|
+
await userEvent.type(input, "123");
|
|
125
|
+
expect(screen.queryByTestId("error-message")).toBeNull();
|
|
126
|
+
});
|
|
127
|
+
it("should forward refs to the wrapped component", () => {
|
|
128
|
+
const inputRef = createRef();
|
|
129
|
+
renderWithForm(_jsx(WrappedComponent, { name: "test", ref: inputRef }));
|
|
130
|
+
const input = screen.getByTestId("test-input");
|
|
131
|
+
// initially, the input should not have focus
|
|
132
|
+
expect(input).not.toHaveFocus();
|
|
133
|
+
// directly focus the input using the ref
|
|
134
|
+
inputRef.current?.focus();
|
|
135
|
+
// the input should now have focus
|
|
136
|
+
expect(input).toHaveFocus();
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
//# sourceMappingURL=with-field-validation.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-field-validation.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/with-field-validation/with-field-validation.test.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,eAAe,EACf,KAAK,EACL,cAAc,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,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AAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/ui/lib/decorators.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAQ,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/ui/lib/decorators.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAQ,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAqBhE,eAAO,MAAM,QAAQ,EAAE,SAwGtB,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,GAAG,CAoC7D,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "
|
|
2
|
+
import { Button, Checkbox, Form } from "@powerhousedao/design-system";
|
|
3
3
|
import { format } from "date-fns";
|
|
4
4
|
import { useCallback, useId, useRef, useState } from "react";
|
|
5
|
-
import { Checkbox } from "../components/checkbox/checkbox.js";
|
|
6
|
-
import { Form } from "../components/form/index.js";
|
|
7
5
|
function _isValidRegex(pattern) {
|
|
8
6
|
try {
|
|
9
7
|
new RegExp(pattern);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/ui/lib/decorators.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/ui/lib/decorators.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AA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,OAAK,OAAO,EAAE,IAAI,EAAE,aAAa,GAAI,CAAC;AACrD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
package/dist/src/ui/lib/index.js
CHANGED