@powerhousedao/design-system 4.1.0-dev.56 → 4.1.0-dev.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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,87 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { renderWithForm } from "@powerhousedao/design-system";
|
|
3
|
+
import { screen, waitFor } from "@testing-library/react";
|
|
4
|
+
import { userEvent } from "@testing-library/user-event";
|
|
5
|
+
import { describe, expect, it, vi } from "vitest";
|
|
6
|
+
import { EnumField } from "./enum-field.js";
|
|
7
|
+
describe("EnumField Component", () => {
|
|
8
|
+
const defaultProps = {
|
|
9
|
+
name: "enum",
|
|
10
|
+
variant: "RadioGroup",
|
|
11
|
+
options: [
|
|
12
|
+
{ value: "option1", label: "Option 1" },
|
|
13
|
+
{ value: "option2", label: "Option 2" },
|
|
14
|
+
{ value: "option3", label: "Option 3" },
|
|
15
|
+
],
|
|
16
|
+
};
|
|
17
|
+
window.HTMLElement.prototype.scrollIntoView = vi.fn();
|
|
18
|
+
window.Element.prototype.scrollTo = vi.fn();
|
|
19
|
+
it("should match snapshot", () => {
|
|
20
|
+
const { asFragment } = renderWithForm(_jsx(EnumField, { ...defaultProps }));
|
|
21
|
+
expect(asFragment()).toMatchSnapshot();
|
|
22
|
+
});
|
|
23
|
+
it("should match snapshot with Select variant", () => {
|
|
24
|
+
const { asFragment } = renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select" }));
|
|
25
|
+
expect(asFragment()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it("should render label when provided", () => {
|
|
28
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, label: "Test Label" }));
|
|
29
|
+
expect(screen.getByText("Test Label")).toBeInTheDocument();
|
|
30
|
+
});
|
|
31
|
+
it("should render description when provided", () => {
|
|
32
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", description: "Test description" }));
|
|
33
|
+
expect(screen.getByText("Test description")).toBeInTheDocument();
|
|
34
|
+
});
|
|
35
|
+
it("should render warning messages when provided", () => {
|
|
36
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, warnings: ["Warning message"] }));
|
|
37
|
+
expect(screen.getByText("Warning message")).toBeInTheDocument();
|
|
38
|
+
});
|
|
39
|
+
it("should render error messages when provided", async () => {
|
|
40
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, errors: ["Error message"] }));
|
|
41
|
+
await waitFor(() => expect(screen.getByText("Error message")).toBeInTheDocument());
|
|
42
|
+
});
|
|
43
|
+
it("should handle value changes in RadioGroup variant", async () => {
|
|
44
|
+
const user = userEvent.setup();
|
|
45
|
+
const onChange = vi.fn();
|
|
46
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, value: "option1", onChange: onChange }));
|
|
47
|
+
const radio = screen.getByLabelText("Option 2");
|
|
48
|
+
await user.click(radio);
|
|
49
|
+
expect(onChange).toHaveBeenCalledWith("option2");
|
|
50
|
+
});
|
|
51
|
+
it("should handle value changes in Select variant", async () => {
|
|
52
|
+
const user = userEvent.setup();
|
|
53
|
+
const onChange = vi.fn();
|
|
54
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", multiple: true, value: ["option1"], onChange: onChange }));
|
|
55
|
+
const select = screen.getByRole("combobox");
|
|
56
|
+
await user.click(select);
|
|
57
|
+
await user.click(screen.getByText("Option 2"));
|
|
58
|
+
expect(onChange).toHaveBeenCalledWith(["option1", "option2"]);
|
|
59
|
+
});
|
|
60
|
+
it("should show required indicator when required prop is true", () => {
|
|
61
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, label: "Test Label", required: true }));
|
|
62
|
+
expect(screen.getByText("*")).toBeInTheDocument();
|
|
63
|
+
});
|
|
64
|
+
it("should disable the field when disabled prop is true", () => {
|
|
65
|
+
renderWithForm(_jsx(EnumField, { ...defaultProps, variant: "Select", disabled: true }));
|
|
66
|
+
const select = screen.getByRole("combobox");
|
|
67
|
+
expect(select).toBeDisabled();
|
|
68
|
+
});
|
|
69
|
+
it("should default to Select variant when no variant provided and has 7 options", () => {
|
|
70
|
+
const propsWithSevenOptions = {
|
|
71
|
+
name: "enum",
|
|
72
|
+
options: [
|
|
73
|
+
{ value: "option1", label: "Option 1" },
|
|
74
|
+
{ value: "option2", label: "Option 2" },
|
|
75
|
+
{ value: "option3", label: "Option 3" },
|
|
76
|
+
{ value: "option4", label: "Option 4" },
|
|
77
|
+
{ value: "option5", label: "Option 5" },
|
|
78
|
+
{ value: "option6", label: "Option 6" },
|
|
79
|
+
{ value: "option7", label: "Option 7" },
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
renderWithForm(_jsx(EnumField, { ...propsWithSevenOptions }));
|
|
83
|
+
// Verify it renders as a Select
|
|
84
|
+
expect(screen.getByRole("combobox")).toBeInTheDocument();
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=enum-field.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-field.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/enum-field/enum-field.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAA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,YAAY,EAAE,OAAO,EAAC,QAAQ,EAAC,QAAQ,SAAG,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6EAA6E,EAAE,GAAG,EAAE;QACrF,MAAM,qBAAqB,GAAG;YAC5B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;aACxC;SACF,CAAC;QACF,cAAc,CAAC,KAAC,SAAS,OAAK,qBAAqB,GAAI,CAAC,CAAC;QACzD,gCAAgC;QAChC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/enum-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/enum-field/types.ts"],"names":[],"mappings":"AAAA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AAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAInE,KAAK,WAAW,GAAG,aAAa,GAAG;IACjC;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,UAAU,SAAS;IACjB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,WAAW,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAExE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,cAAc,CAAC,EAAE,YAAY,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,EAAE,CACvB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,MAAM,EAAE,KACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,qGAuJhB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { castValue, deepEqual, FormServerErrorMessage, isEmpty, } from "@powerhousedao/design-system";
|
|
2
3
|
import { forwardRef, useCallback, useEffect, useId, useImperativeHandle, } from "react";
|
|
3
4
|
import { FormProvider, useForm } from "react-hook-form";
|
|
4
|
-
import { castValue, deepEqual, isEmpty } from "../../lib/index.js";
|
|
5
|
-
import { FormServerErrorMessage } from "../form-message/form-server-error-message.js";
|
|
6
5
|
import { defaultOnError } from "./utils.js";
|
|
7
6
|
/**
|
|
8
7
|
* A form component that integrates with react-hook-form for form state management and validation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/form.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,OAAO,GACR,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA0F5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,QAAQ,EACR,uBAAuB,GAAG,KAAK,EAC/B,iBAAiB,GAAG,KAAK,EACzB,aAAa,EACb,0BAA0B,GAAG,KAAK,EAClC,sBAAsB,GAAG,cAAc,EACvC,SAAS,EACT,cAAc,GACf,EACD,GAAG,EACH,EAAE;IACF,MA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AAC,CAAC,QAAQ,CAAC;wBACP,GAAG,OAAO;wBACV,aAAa;wBACb,MAAM;qBACP,CAAC;oBACJ,CAAC,CAAC,QAAQ,GACP,IACM,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "@powerhousedao/design-system";
|
|
3
3
|
const FormDescription = ({ children, as, className, }) => {
|
|
4
4
|
const Component = as ?? "p";
|
|
5
5
|
return (_jsx(Component, { className: cn("font-sans text-sm font-normal leading-5 text-gray-600 dark:text-gray-500", className), children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-description.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form-description.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAOlD,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,GAAG,CAAC;IAE5B,OAAO,CACL,KAAC,SAAS,IACR,SAAS,EAAE,EAAE,CACX,0EAA0E,EAC1E,SAAS,CACV,YAEA,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./form-description.js").FormDescriptionProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
chromatic: {
|
|
8
|
+
disableSnapshot: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
tags: string[];
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Default: Story;
|
|
16
|
+
export declare const CustomClassName: Story;
|
|
17
|
+
//# sourceMappingURL=form-description.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-description.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;CAU8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAK7B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FormDescription } from "./form-description.js";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "UI/FormDescription",
|
|
4
|
+
component: FormDescription,
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered",
|
|
7
|
+
chromatic: {
|
|
8
|
+
disableSnapshot: true,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
tags: ["autodocs"],
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export const Default = {
|
|
15
|
+
args: {
|
|
16
|
+
children: "This is a helpful description for the form field above.",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const CustomClassName = {
|
|
20
|
+
args: {
|
|
21
|
+
className: "text-blue-600",
|
|
22
|
+
children: "Description with custom styling",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=form-description.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-description.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;CACoB,CAAC;AAEzC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,yDAAyD;KACpE;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,iCAAiC;KAC5C;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-description.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render, screen } from "@testing-library/react";
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { FormDescription } from "./form-description.js";
|
|
5
|
+
describe("FormDescription", () => {
|
|
6
|
+
it("should render correctly", () => {
|
|
7
|
+
const { container } = render(_jsx(FormDescription, { children: "Test description" }));
|
|
8
|
+
expect(container).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
it("should render children content", () => {
|
|
11
|
+
render(_jsx(FormDescription, { children: "Test description" }));
|
|
12
|
+
expect(screen.getByText("Test description")).toBeInTheDocument();
|
|
13
|
+
});
|
|
14
|
+
it("should apply custom className", () => {
|
|
15
|
+
render(
|
|
16
|
+
// for testing purposes, we disable the no-custom-classname rule
|
|
17
|
+
_jsx(FormDescription, { className: "custom-class", children: "Test description" }));
|
|
18
|
+
expect(screen.getByText("Test description")).toHaveClass("custom-class");
|
|
19
|
+
});
|
|
20
|
+
it("should render with custom element type", () => {
|
|
21
|
+
render(_jsx(FormDescription, { as: "span", children: "Test description" }));
|
|
22
|
+
expect(screen.getByText("Test description").tagName).toBe("SPAN");
|
|
23
|
+
});
|
|
24
|
+
it("should use paragraph as default element type", () => {
|
|
25
|
+
render(_jsx(FormDescription, { children: "Test description" }));
|
|
26
|
+
expect(screen.getByText("Test description").tagName).toBe("P");
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=form-description.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-description.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-description/form-description.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,eAAe,mCAAmC,CACpD,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,KAAC,eAAe,mCAAmC,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM;QACJ,gEAAgE;QAEhE,KAAC,eAAe,IAAC,SAAS,EAAC,cAAc,iCAEvB,CACnB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CAAC,KAAC,eAAe,IAAC,EAAE,EAAC,MAAM,iCAAmC,CAAC,CAAC;QACtE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,KAAC,eAAe,mCAAmC,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-group.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-group/form-group.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import { FormGroup } from "./form-group.js";
|
|
5
|
+
describe("FormGroup", () => {
|
|
6
|
+
it("matches snapshot", () => {
|
|
7
|
+
const { asFragment } = render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", placeholder: "Enter text" }), _jsx("label", { children: "Sample Label" })] }));
|
|
8
|
+
expect(asFragment()).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
it("renders children correctly", () => {
|
|
11
|
+
render(_jsxs(FormGroup, { children: [_jsx("input", { type: "text", "data-testid": "child-input" }), _jsx("label", { children: "Test Label" })] }));
|
|
12
|
+
expect(screen.getByTestId("child-input")).toBeInTheDocument();
|
|
13
|
+
expect(screen.getByText("Test Label")).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=form-group.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-group.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-group/form-group.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC1B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAC3B,MAAC,SAAS,eACR,gBAAO,IAAI,EAAC,MAAM,EAAC,WAAW,EAAC,YAAY,GAAG,EAC9C,2CAA2B,IACjB,CACb,CAAC;QACF,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CACJ,MAAC,SAAS,eACR,gBAAO,IAAI,EAAC,MAAM,iBAAa,aAAa,GAAG,EAC/C,yCAAyB,IACf,CACb,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC9D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-label.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-label.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,iBAAiB,EAC7B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Icon, cn } from "
|
|
3
|
-
import { Tooltip, TooltipProvider } from "../tooltip/index.js";
|
|
2
|
+
import { Icon, Tooltip, TooltipProvider, cn, } from "@powerhousedao/design-system";
|
|
4
3
|
export const FormLabel = ({ children, required, disabled, description, hasError, inline, className, ...htmlLabelProps }) => {
|
|
5
4
|
const classes = cn("inline-flex items-center text-sm font-medium", inline ? "leading-[22px]" : "leading-4", `text-gray-900 ${inline ? "dark:text-gray-400" : "dark:text-gray-50"}`, hasError && "group-hover:!text-red-900 dark:group-hover:!text-red-900", hasError && inline && "text-red-800 dark:text-red-800", hasError && !inline && "text-red-900 dark:text-red-900", disabled &&
|
|
6
5
|
`cursor-not-allowed text-gray-700 ${inline ? "dark:text-gray-600" : "dark:text-gray-300"}`, inline
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,eAAe,EACf,EAAE,GACH,MAAM,8BAA8B,CAAC;AAatC,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,EACT,GAAG,cAAc,EAClB,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,EAAE,CAChB,8CAA8C,EAC9C,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,EACvC,iBAAiB,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,EAAE,EACtE,QAAQ,IAAI,0DAA0D,EACtE,QAAQ,IAAI,MAAM,IAAI,gCAAgC,EACtD,QAAQ,IAAI,CAAC,MAAM,IAAI,gCAAgC,EACvD,QAAQ;QACN,oCACE,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oBAClC,EAAE,EACJ,MAAM;QACJ,CAAC,CAAC,CAAC,QAAQ,IAAI,0DAA0D;QACzE,CAAC,CAAC,UAAU,EACd,SAAS,CACV,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,oBAAoB;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,UAAU,GAAG;QACjB,GAAG,cAAc;KAClB,CAAC;IAEF,OAAO,CACL,iBAAO,SAAS,EAAE,OAAO,KAAM,UAAU,aACtC,QAAQ,EACR,QAAQ,IAAI,CACX,eACE,SAAS,EAAE,EAAE,CACX,gGAAgG,EAChG,QAAQ;oBACN,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,4BAA4B,CAC5E,kBAGI,CACR,EAEA,WAAW,IAAI,CACd,KAAC,eAAe,cACd,KAAC,OAAO,IAAC,OAAO,EAAE,WAAW,YAC3B,KAAC,IAAI,IACH,IAAI,EAAC,YAAY,EACjB,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,EAAE,CACX,mGAAmG,EACnG,QAAQ,IAAI,eAAe,CAC5B,GACD,GACM,GACM,CACnB,IACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { FormLabel } from "./form-label.js";
|
|
3
|
+
declare const meta: Meta<typeof FormLabel>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDescription: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const Required: Story;
|
|
11
|
+
//# sourceMappingURL=form-label.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-label.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAyChC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAK7B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FormLabel } from "./form-label.js";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "UI/FormLabel",
|
|
4
|
+
component: FormLabel,
|
|
5
|
+
parameters: {
|
|
6
|
+
chromatic: {
|
|
7
|
+
disableSnapshot: true,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
argTypes: {
|
|
12
|
+
required: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "boolean",
|
|
15
|
+
},
|
|
16
|
+
description: "Whether the field is required",
|
|
17
|
+
},
|
|
18
|
+
description: {
|
|
19
|
+
control: {
|
|
20
|
+
type: "text",
|
|
21
|
+
},
|
|
22
|
+
description: "Tooltip text that appears when hovering over the info icon",
|
|
23
|
+
},
|
|
24
|
+
hasError: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "boolean",
|
|
27
|
+
},
|
|
28
|
+
description: "Whether the label should show error styling",
|
|
29
|
+
},
|
|
30
|
+
disabled: {
|
|
31
|
+
control: {
|
|
32
|
+
type: "boolean",
|
|
33
|
+
},
|
|
34
|
+
description: "Whether the label is disabled",
|
|
35
|
+
},
|
|
36
|
+
className: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "text",
|
|
39
|
+
},
|
|
40
|
+
description: "Additional CSS classes to apply to the label",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
export const Default = {
|
|
46
|
+
args: {
|
|
47
|
+
children: "Hello, World!",
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export const WithDescription = {
|
|
51
|
+
args: {
|
|
52
|
+
children: "Hello, World!",
|
|
53
|
+
description: "This is a description",
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
export const WithError = {
|
|
57
|
+
args: {
|
|
58
|
+
children: "Hello, World!",
|
|
59
|
+
hasError: true,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
export const Disabled = {
|
|
63
|
+
args: {
|
|
64
|
+
children: "Hello, World!",
|
|
65
|
+
disabled: true,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
export const Required = {
|
|
69
|
+
args: {
|
|
70
|
+
children: "Hello, World!",
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=form-label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-label.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,+BAA+B;SAC7C;QACD,WAAW,EAAE;YACX,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;YACD,WAAW,EAAE,4DAA4D;SAC1E;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,6CAA6C;SAC3D;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;YACD,WAAW,EAAE,+BAA+B;SAC7C;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;YACD,WAAW,EAAE,8CAA8C;SAC5D;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;KAC1B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,WAAW,EAAE,uBAAuB;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-label.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { fireEvent, render, screen } from "@testing-library/react";
|
|
3
|
+
import { FormLabel } from "./form-label.js";
|
|
4
|
+
describe("FormLabel Component", () => {
|
|
5
|
+
it("should match snapshot", () => {
|
|
6
|
+
const { asFragment } = render(_jsx(FormLabel, { "data-testid": "form-label", children: "label" }));
|
|
7
|
+
expect(asFragment()).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it("should display the correct label text", () => {
|
|
10
|
+
render(_jsx(FormLabel, { children: "Test Label" }));
|
|
11
|
+
expect(screen.getByText("Test Label")).toBeInTheDocument();
|
|
12
|
+
});
|
|
13
|
+
it("should forward the htmlFor attribute", () => {
|
|
14
|
+
render(_jsx(FormLabel, { htmlFor: "test-input", children: "Label" }));
|
|
15
|
+
const label = screen.getByText("Label");
|
|
16
|
+
expect(label).toHaveAttribute("for", "test-input");
|
|
17
|
+
});
|
|
18
|
+
it("should render children as expected", () => {
|
|
19
|
+
render(_jsxs(FormLabel, { children: ["Label ", _jsx("span", { "data-testid": "child-element", children: "Child" })] }));
|
|
20
|
+
expect(screen.getByText("Label")).toBeInTheDocument();
|
|
21
|
+
expect(screen.getByTestId("child-element")).toBeInTheDocument();
|
|
22
|
+
});
|
|
23
|
+
it("should handle click events", () => {
|
|
24
|
+
const handleClick = vi.fn();
|
|
25
|
+
render(_jsx(FormLabel, { onClick: handleClick, children: "Clickable Label" }));
|
|
26
|
+
const label = screen.getByText("Clickable Label");
|
|
27
|
+
fireEvent.click(label);
|
|
28
|
+
expect(handleClick).toHaveBeenCalledTimes(1);
|
|
29
|
+
});
|
|
30
|
+
it("should display an asterisk when required", () => {
|
|
31
|
+
render(_jsx(FormLabel, { required: true, children: "Required Label" }));
|
|
32
|
+
const asterisk = screen.getByText("*");
|
|
33
|
+
expect(asterisk).toBeInTheDocument();
|
|
34
|
+
});
|
|
35
|
+
it("should have not-allowed cursor when disabled", () => {
|
|
36
|
+
render(_jsx(FormLabel, { disabled: true, children: "Disabled Label" }));
|
|
37
|
+
const label = screen.getByText("Disabled Label");
|
|
38
|
+
expect(label).toHaveClass("cursor-not-allowed");
|
|
39
|
+
});
|
|
40
|
+
it("should display an icon when description is provided", () => {
|
|
41
|
+
render(_jsx(FormLabel, { description: "This is a description", children: "Label with Description" }));
|
|
42
|
+
const icon = screen.getByRole("button");
|
|
43
|
+
expect(icon).toBeInTheDocument();
|
|
44
|
+
// Check that the SVG is rendered with correct dimensions
|
|
45
|
+
const svg = icon.querySelector("svg");
|
|
46
|
+
expect(svg).toHaveStyle({ width: "16px", height: "16px" });
|
|
47
|
+
});
|
|
48
|
+
it("should apply custom styles", () => {
|
|
49
|
+
const customStyle = { color: "red", fontWeight: "bold" };
|
|
50
|
+
render(_jsx(FormLabel, { "data-testid": "styled-label", style: customStyle, children: "Styled Label" }));
|
|
51
|
+
const label = screen.getByTestId("styled-label");
|
|
52
|
+
expect(label.style.color).toBe(customStyle.color);
|
|
53
|
+
expect(label.style.fontWeight).toBe(customStyle.fontWeight);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=form-label.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-label.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-label/form-label.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAC3B,KAAC,SAAS,mBAAa,YAAY,sBAAkB,CACtD,CAAC;QACF,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,KAAC,SAAS,6BAAuB,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,KAAC,SAAS,IAAC,OAAO,EAAC,YAAY,sBAAkB,CAAC,CAAC;QAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACxC,MAAM,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"p";
|
|
4
4
|
export const FormMessage = ({ children, type = "info", as, className, ...props }) => {
|
|
5
5
|
const Component = as || defaultElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-message.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form-message.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAclD,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAES,CAAC,EAChC,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,EAAE,EACF,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,EAAE,IAAI,cAAc,CAAC;IAEvC,MAAM,WAAW,GAAoC;QACnD,KAAK,EAAE,gCAAgC;QACvC,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,sCAAsC;KAChD,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,CAChB,mDAAmD,EACnD,WAAW,CAAC,IAAI,CAAC,EACjB,SAAS,CACV,CAAC;IAEF,iBAAiB;IACjB,OAAO,CACL,KAAC,SAAS,iBAAY,IAAI,EAAE,SAAS,EAAE,OAAO,KAAM,KAAK,YACtD,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { FormMessage } from "./form-message.js";
|
|
3
|
+
declare const meta: Meta<typeof FormMessage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Info: Story;
|
|
7
|
+
export declare const Warning: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
//# sourceMappingURL=form-message.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAqBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormMessage } from "./form-message.js";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "UI/FormMessage",
|
|
4
|
+
component: FormMessage,
|
|
5
|
+
parameters: {
|
|
6
|
+
chromatic: {
|
|
7
|
+
disableSnapshot: true,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
type: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
},
|
|
15
|
+
options: ["error", "info", "warning"],
|
|
16
|
+
},
|
|
17
|
+
children: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "text",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
export const Info = {
|
|
26
|
+
args: {
|
|
27
|
+
children: "Your changes will be automatically saved as you type",
|
|
28
|
+
type: "info",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const Warning = {
|
|
32
|
+
args: {
|
|
33
|
+
children: "Please correct the errors before submitting",
|
|
34
|
+
type: "warning",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const Error = {
|
|
38
|
+
args: {
|
|
39
|
+
children: "Please correct the errors before submitting",
|
|
40
|
+
type: "error",
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=form-message.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-message.stories.js","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;SACtC;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,QAAQ,EAAE,sDAAsD;QAChE,IAAI,EAAE,MAAM;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,6CAA6C;QACvD,IAAI,EAAE,SAAS;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,QAAQ,EAAE,6CAA6C;QACvD,IAAI,EAAE,OAAO;KACd;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-message.test.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/form-message/form-message.test.tsx"],"names":[],"mappings":""}
|