svelte-firekit 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -87
- package/dist/{firebase/auth → auth}/auth.js +1 -2
- package/dist/auth/user.svelte.d.ts +94 -0
- package/dist/auth/user.svelte.js +134 -0
- package/dist/config.d.ts +2 -2
- package/dist/config.js +44 -28
- package/dist/{firebase/firebase.d.ts → firebase.d.ts} +1 -2
- package/dist/{firebase/firebase.js → firebase.js} +1 -4
- package/dist/{firebase/firestore → firestore}/awaitable-doc.svelte.js +1 -1
- package/dist/{firebase/firestore → firestore}/collection.svelte.js +1 -1
- package/dist/{firebase/firestore → firestore}/doc.svelte.js +1 -1
- package/dist/{firebase/firestore → firestore}/document-mutations.svelte.js +11 -11
- package/dist/index.d.ts +10 -23
- package/dist/index.js +10 -28
- package/package.json +10 -26
- package/dist/auth/auth.svelte +0 -65
- package/dist/auth/auth.svelte.d.ts +0 -2
- package/dist/auth/require-auth.svelte +0 -52
- package/dist/auth/require-auth.svelte.d.ts +0 -11
- package/dist/auth/require-no-auth.svelte +0 -42
- package/dist/auth/require-no-auth.svelte.d.ts +0 -6
- package/dist/auth/reset-password.svelte +0 -33
- package/dist/auth/reset-password.svelte.d.ts +0 -8
- package/dist/auth/sign-in.svelte +0 -61
- package/dist/auth/sign-in.svelte.d.ts +0 -15
- package/dist/auth/sign-up.svelte +0 -72
- package/dist/auth/sign-up.svelte.d.ts +0 -18
- package/dist/components/app/nav/app-sidebar.svelte +0 -35
- package/dist/components/app/nav/app-sidebar.svelte.d.ts +0 -8
- package/dist/components/app/nav/breadcrumb.svelte +0 -42
- package/dist/components/app/nav/breadcrumb.svelte.d.ts +0 -19
- package/dist/components/auth/google-sign-in.svelte +0 -62
- package/dist/components/auth/google-sign-in.svelte.d.ts +0 -4
- package/dist/components/auth/reset-password-form.svelte +0 -59
- package/dist/components/auth/reset-password-form.svelte.d.ts +0 -4
- package/dist/components/auth/sign-in-form.svelte +0 -92
- package/dist/components/auth/sign-in-form.svelte.d.ts +0 -9
- package/dist/components/auth/sign-up-form.svelte +0 -138
- package/dist/components/auth/sign-up-form.svelte.d.ts +0 -12
- package/dist/components/auth/user-button/profile-section/avatar-user.svelte +0 -107
- package/dist/components/auth/user-button/profile-section/avatar-user.svelte.d.ts +0 -2
- package/dist/components/auth/user-button/profile-section/connect-user.svelte +0 -45
- package/dist/components/auth/user-button/profile-section/connect-user.svelte.d.ts +0 -18
- package/dist/components/auth/user-button/profile-section/email-user.svelte +0 -81
- package/dist/components/auth/user-button/profile-section/email-user.svelte.d.ts +0 -2
- package/dist/components/auth/user-button/profile-section/phone-user.svelte +0 -122
- package/dist/components/auth/user-button/profile-section/phone-user.svelte.d.ts +0 -2
- package/dist/components/auth/user-button/profile-section/profile-section.svelte +0 -17
- package/dist/components/auth/user-button/profile-section/profile-section.svelte.d.ts +0 -18
- package/dist/components/auth/user-button/settings-dialog.svelte +0 -88
- package/dist/components/auth/user-button/settings-dialog.svelte.d.ts +0 -2
- package/dist/components/auth/user-button/type-account.svelte +0 -35
- package/dist/components/auth/user-button/type-account.svelte.d.ts +0 -4
- package/dist/components/auth/user-button/user-button.svelte +0 -131
- package/dist/components/auth/user-button/user-button.svelte.d.ts +0 -6
- package/dist/components/firestore/collection.svelte +0 -45
- package/dist/components/firestore/collection.svelte.d.ts +0 -25
- package/dist/components/firestore/doc.svelte +0 -39
- package/dist/components/firestore/doc.svelte.d.ts +0 -25
- package/dist/components/nav/app-sidebar.svelte +0 -46
- package/dist/components/nav/app-sidebar.svelte.d.ts +0 -8
- package/dist/components/nav/breadcrumb.svelte +0 -42
- package/dist/components/nav/breadcrumb.svelte.d.ts +0 -19
- package/dist/components/nav/dark-mode-toggle.svelte +0 -16
- package/dist/components/nav/dark-mode-toggle.svelte.d.ts +0 -18
- package/dist/components/nav/nav-main.svelte +0 -70
- package/dist/components/nav/nav-main.svelte.d.ts +0 -18
- package/dist/components/nav/nav.d.ts +0 -11
- package/dist/components/nav/nav.js +0 -157
- package/dist/components/nav/search-form.svelte +0 -21
- package/dist/components/nav/search-form.svelte.d.ts +0 -4
- package/dist/components/nav/version-switcher.svelte +0 -48
- package/dist/components/nav/version-switcher.svelte.d.ts +0 -5
- package/dist/components/public/footer-main.svelte +0 -0
- package/dist/components/public/footer-main.svelte.d.ts +0 -26
- package/dist/components/public/nav-main.svelte +0 -136
- package/dist/components/public/nav-main.svelte.d.ts +0 -18
- package/dist/components/storage/upload.svelte +0 -134
- package/dist/components/storage/upload.svelte.d.ts +0 -11
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte +0 -13
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +0 -3
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte +0 -17
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +0 -3
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +0 -23
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +0 -2
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte +0 -16
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +0 -3
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte +0 -20
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +0 -4
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte +0 -20
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +0 -4
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +0 -19
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +0 -3
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte +0 -18
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +0 -3
- package/dist/components/ui/alert-dialog/index.js +0 -15
- package/dist/components/ui/avatar/avatar-fallback.svelte +0 -16
- package/dist/components/ui/avatar/avatar-fallback.svelte.d.ts +0 -3
- package/dist/components/ui/avatar/avatar-image.svelte +0 -20
- package/dist/components/ui/avatar/avatar-image.svelte.d.ts +0 -3
- package/dist/components/ui/avatar/avatar.svelte +0 -18
- package/dist/components/ui/avatar/avatar.svelte.d.ts +0 -3
- package/dist/components/ui/avatar/index.d.ts +0 -4
- package/dist/components/ui/avatar/index.js +0 -6
- package/dist/components/ui/badge/badge.svelte +0 -49
- package/dist/components/ui/badge/badge.svelte.d.ts +0 -59
- package/dist/components/ui/badge/index.d.ts +0 -2
- package/dist/components/ui/badge/index.js +0 -2
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +0 -23
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte +0 -16
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte +0 -31
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +0 -10
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +0 -23
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte +0 -23
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte +0 -27
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/breadcrumb.svelte +0 -15
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +0 -4
- package/dist/components/ui/breadcrumb/index.d.ts +0 -8
- package/dist/components/ui/breadcrumb/index.js +0 -10
- package/dist/components/ui/button/button.svelte +0 -75
- package/dist/components/ui/button/button.svelte.d.ts +0 -117
- package/dist/components/ui/button/index.d.ts +0 -2
- package/dist/components/ui/button/index.js +0 -4
- package/dist/components/ui/card/card-content.svelte +0 -16
- package/dist/components/ui/card/card-content.svelte.d.ts +0 -4
- package/dist/components/ui/card/card-description.svelte +0 -16
- package/dist/components/ui/card/card-description.svelte.d.ts +0 -4
- package/dist/components/ui/card/card-footer.svelte +0 -16
- package/dist/components/ui/card/card-footer.svelte.d.ts +0 -4
- package/dist/components/ui/card/card-header.svelte +0 -16
- package/dist/components/ui/card/card-header.svelte.d.ts +0 -4
- package/dist/components/ui/card/card-title.svelte +0 -25
- package/dist/components/ui/card/card-title.svelte.d.ts +0 -7
- package/dist/components/ui/card/card.svelte +0 -20
- package/dist/components/ui/card/card.svelte.d.ts +0 -4
- package/dist/components/ui/card/index.d.ts +0 -7
- package/dist/components/ui/card/index.js +0 -9
- package/dist/components/ui/checkbox/checkbox.svelte +0 -33
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +0 -3
- package/dist/components/ui/checkbox/index.d.ts +0 -2
- package/dist/components/ui/checkbox/index.js +0 -4
- package/dist/components/ui/collapsible/index.d.ts +0 -5
- package/dist/components/ui/collapsible/index.js +0 -7
- package/dist/components/ui/dialog/dialog-content.svelte +0 -36
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +0 -6
- package/dist/components/ui/dialog/dialog-description.svelte +0 -16
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +0 -3
- package/dist/components/ui/dialog/dialog-footer.svelte +0 -20
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-header.svelte +0 -20
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-overlay.svelte +0 -19
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +0 -3
- package/dist/components/ui/dialog/dialog-title.svelte +0 -16
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +0 -3
- package/dist/components/ui/dialog/index.d.ts +0 -12
- package/dist/components/ui/dialog/index.js +0 -14
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +0 -40
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +0 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +0 -22
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +0 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +0 -19
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -11
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +0 -23
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +0 -23
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +0 -30
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +0 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +0 -20
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +0 -19
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +0 -28
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -5
- package/dist/components/ui/dropdown-menu/index.js +0 -17
- package/dist/components/ui/form/form-button.svelte +0 -7
- package/dist/components/ui/form/form-button.svelte.d.ts +0 -3
- package/dist/components/ui/form/form-description.svelte +0 -17
- package/dist/components/ui/form/form-description.svelte.d.ts +0 -3
- package/dist/components/ui/form/form-element-field.svelte +0 -30
- package/dist/components/ui/form/form-element-field.svelte.d.ts +0 -22
- package/dist/components/ui/form/form-field-errors.svelte +0 -30
- package/dist/components/ui/form/form-field-errors.svelte.d.ts +0 -5
- package/dist/components/ui/form/form-field.svelte +0 -30
- package/dist/components/ui/form/form-field.svelte.d.ts +0 -21
- package/dist/components/ui/form/form-fieldset.svelte +0 -21
- package/dist/components/ui/form/form-fieldset.svelte.d.ts +0 -19
- package/dist/components/ui/form/form-label.svelte +0 -21
- package/dist/components/ui/form/form-label.svelte.d.ts +0 -3
- package/dist/components/ui/form/form-legend.svelte +0 -17
- package/dist/components/ui/form/form-legend.svelte.d.ts +0 -3
- package/dist/components/ui/form/index.d.ts +0 -11
- package/dist/components/ui/form/index.js +0 -13
- package/dist/components/ui/input/index.d.ts +0 -2
- package/dist/components/ui/input/index.js +0 -4
- package/dist/components/ui/input/input.svelte +0 -22
- package/dist/components/ui/input/input.svelte.d.ts +0 -4
- package/dist/components/ui/label/index.d.ts +0 -2
- package/dist/components/ui/label/index.js +0 -4
- package/dist/components/ui/label/label.svelte +0 -19
- package/dist/components/ui/label/label.svelte.d.ts +0 -3
- package/dist/components/ui/select/index.js +0 -13
- package/dist/components/ui/select/select-content.svelte +0 -38
- package/dist/components/ui/select/select-content.svelte.d.ts +0 -5
- package/dist/components/ui/select/select-group-heading.svelte +0 -16
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +0 -3
- package/dist/components/ui/select/select-item.svelte +0 -37
- package/dist/components/ui/select/select-item.svelte.d.ts +0 -3
- package/dist/components/ui/select/select-scroll-down-button.svelte +0 -19
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +0 -3
- package/dist/components/ui/select/select-scroll-up-button.svelte +0 -19
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +0 -3
- package/dist/components/ui/select/select-separator.svelte +0 -13
- package/dist/components/ui/select/select-separator.svelte.d.ts +0 -3
- package/dist/components/ui/select/select-trigger.svelte +0 -24
- package/dist/components/ui/select/select-trigger.svelte.d.ts +0 -3
- package/dist/components/ui/separator/index.d.ts +0 -2
- package/dist/components/ui/separator/index.js +0 -4
- package/dist/components/ui/separator/separator.svelte +0 -22
- package/dist/components/ui/separator/separator.svelte.d.ts +0 -3
- package/dist/components/ui/sheet/index.js +0 -14
- package/dist/components/ui/sheet/sheet-content.svelte +0 -52
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +0 -59
- package/dist/components/ui/sheet/sheet-description.svelte +0 -16
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +0 -3
- package/dist/components/ui/sheet/sheet-footer.svelte +0 -20
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +0 -4
- package/dist/components/ui/sheet/sheet-header.svelte +0 -20
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +0 -4
- package/dist/components/ui/sheet/sheet-overlay.svelte +0 -19
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +0 -3
- package/dist/components/ui/sheet/sheet-title.svelte +0 -16
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +0 -3
- package/dist/components/ui/sidebar/constants.d.ts +0 -6
- package/dist/components/ui/sidebar/constants.js +0 -6
- package/dist/components/ui/sidebar/context.svelte.d.ts +0 -42
- package/dist/components/ui/sidebar/context.svelte.js +0 -54
- package/dist/components/ui/sidebar/index.d.ts +0 -25
- package/dist/components/ui/sidebar/index.js +0 -27
- package/dist/components/ui/sidebar/sidebar-content.svelte +0 -24
- package/dist/components/ui/sidebar/sidebar-content.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-footer.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-footer.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-group-action.svelte +0 -36
- package/dist/components/ui/sidebar/sidebar-group-action.svelte.d.ts +0 -10
- package/dist/components/ui/sidebar/sidebar-group-content.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-group-content.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-group-label.svelte +0 -34
- package/dist/components/ui/sidebar/sidebar-group-label.svelte.d.ts +0 -10
- package/dist/components/ui/sidebar/sidebar-group.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-group.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-header.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-header.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-input.svelte +0 -23
- package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-inset.svelte +0 -24
- package/dist/components/ui/sidebar/sidebar-inset.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-menu-action.svelte +0 -43
- package/dist/components/ui/sidebar/sidebar-menu-action.svelte.d.ts +0 -11
- package/dist/components/ui/sidebar/sidebar-menu-badge.svelte +0 -29
- package/dist/components/ui/sidebar/sidebar-menu-badge.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte +0 -97
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte.d.ts +0 -91
- package/dist/components/ui/sidebar/sidebar-menu-item.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-menu-item.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-menu-skeleton.svelte +0 -36
- package/dist/components/ui/sidebar/sidebar-menu-skeleton.svelte.d.ts +0 -7
- package/dist/components/ui/sidebar/sidebar-menu-sub-button.svelte +0 -43
- package/dist/components/ui/sidebar/sidebar-menu-sub-button.svelte.d.ts +0 -12
- package/dist/components/ui/sidebar/sidebar-menu-sub-item.svelte +0 -14
- package/dist/components/ui/sidebar/sidebar-menu-sub-item.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-menu-sub.svelte +0 -25
- package/dist/components/ui/sidebar/sidebar-menu-sub.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-menu.svelte +0 -21
- package/dist/components/ui/sidebar/sidebar-menu.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-provider.svelte +0 -59
- package/dist/components/ui/sidebar/sidebar-provider.svelte.d.ts +0 -9
- package/dist/components/ui/sidebar/sidebar-rail.svelte +0 -36
- package/dist/components/ui/sidebar/sidebar-rail.svelte.d.ts +0 -4
- package/dist/components/ui/sidebar/sidebar-separator.svelte +0 -18
- package/dist/components/ui/sidebar/sidebar-separator.svelte.d.ts +0 -12
- package/dist/components/ui/sidebar/sidebar-trigger.svelte +0 -34
- package/dist/components/ui/sidebar/sidebar-trigger.svelte.d.ts +0 -9
- package/dist/components/ui/sidebar/sidebar.svelte +0 -98
- package/dist/components/ui/sidebar/sidebar.svelte.d.ts +0 -9
- package/dist/components/ui/skeleton/index.d.ts +0 -2
- package/dist/components/ui/skeleton/index.js +0 -4
- package/dist/components/ui/skeleton/skeleton.svelte +0 -17
- package/dist/components/ui/skeleton/skeleton.svelte.d.ts +0 -4
- package/dist/components/ui/sonner/index.d.ts +0 -1
- package/dist/components/ui/sonner/index.js +0 -1
- package/dist/components/ui/sonner/sonner.svelte +0 -20
- package/dist/components/ui/sonner/sonner.svelte.d.ts +0 -3
- package/dist/components/ui/tooltip/index.js +0 -8
- package/dist/components/ui/tooltip/tooltip-content.svelte +0 -21
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +0 -3
- package/dist/firebase/auth/auth-manager.svelte.d.ts +0 -85
- package/dist/firebase/auth/auth-manager.svelte.js +0 -386
- package/dist/firebase/config.d.ts +0 -2
- package/dist/firebase/config.js +0 -44
- package/dist/hooks/is-mobile.svelte.d.ts +0 -5
- package/dist/hooks/is-mobile.svelte.js +0 -23
- package/dist/schemas/reset-password.d.ts +0 -4
- package/dist/schemas/reset-password.js +0 -4
- package/dist/schemas/sign-in.d.ts +0 -5
- package/dist/schemas/sign-in.js +0 -5
- package/dist/schemas/sign-up.d.ts +0 -8
- package/dist/schemas/sign-up.js +0 -8
- package/dist/types/docs.d.ts +0 -50
- package/dist/types/docs.js +0 -1
- package/dist/types/nav.d.ts +0 -13
- package/dist/types/nav.js +0 -1
- package/dist/utils.d.ts +0 -29
- package/dist/utils.js +0 -92
- /package/dist/{firebase/auth → auth}/auth.d.ts +0 -0
- /package/dist/{firebase/firestore → firestore}/awaitable-doc.svelte.d.ts +0 -0
- /package/dist/{firebase/firestore → firestore}/collection.svelte.d.ts +0 -0
- /package/dist/{firebase/firestore → firestore}/doc.svelte.d.ts +0 -0
- /package/dist/{firebase/firestore → firestore}/document-mutations.svelte.d.ts +0 -0
- /package/dist/{firebase/storage → storage}/download-url.svelte.d.ts +0 -0
- /package/dist/{firebase/storage → storage}/download-url.svelte.js +0 -0
- /package/dist/{firebase/storage → storage}/storage-list.svelte.d.ts +0 -0
- /package/dist/{firebase/storage → storage}/storage-list.svelte.js +0 -0
- /package/dist/{firebase/storage → storage}/upload-task.svelte.d.ts +0 -0
- /package/dist/{firebase/storage → storage}/upload-task.svelte.js +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { FormPath as _FormPath } from "sveltekit-superforms";
|
|
3
|
-
type T = Record<string, unknown>;
|
|
4
|
-
type U = _FormPath<T>;
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">
|
|
8
|
-
import * as FormPrimitive from "formsnap";
|
|
9
|
-
import { cn } from "../../../utils.js";
|
|
10
|
-
import type { WithElementRef, WithoutChildren } from "bits-ui";
|
|
11
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
12
|
-
|
|
13
|
-
let {
|
|
14
|
-
ref = $bindable(null),
|
|
15
|
-
class: className,
|
|
16
|
-
form,
|
|
17
|
-
name,
|
|
18
|
-
children: childrenProp,
|
|
19
|
-
...restProps
|
|
20
|
-
}: FormPrimitive.FieldProps<T, U> &
|
|
21
|
-
WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<FormPrimitive.Field {form} {name}>
|
|
25
|
-
{#snippet children({ constraints, errors, tainted, value })}
|
|
26
|
-
<div bind:this={ref} class={cn("space-y-2", className)} {...restProps}>
|
|
27
|
-
{@render childrenProp?.({ constraints, errors, tainted, value: value as T[U] })}
|
|
28
|
-
</div>
|
|
29
|
-
{/snippet}
|
|
30
|
-
</FormPrimitive.Field>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { FormPath as _FormPath } from "sveltekit-superforms";
|
|
2
|
-
import * as FormPrimitive from "formsnap";
|
|
3
|
-
import type { WithElementRef } from "bits-ui";
|
|
4
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
5
|
-
declare class __sveltets_Render<T extends Record<string, unknown>, U extends _FormPath<T>> {
|
|
6
|
-
props(): FormPrimitive.FieldProps<T, U, any> & Omit<WithElementRef<HTMLAttributes<HTMLDivElement>>, "children">;
|
|
7
|
-
events(): {};
|
|
8
|
-
slots(): {};
|
|
9
|
-
bindings(): "ref";
|
|
10
|
-
exports(): {};
|
|
11
|
-
}
|
|
12
|
-
interface $$IsomorphicComponent {
|
|
13
|
-
new <T extends Record<string, unknown>, U extends _FormPath<T>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T, U>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T, U>['props']>, ReturnType<__sveltets_Render<T, U>['events']>, ReturnType<__sveltets_Render<T, U>['slots']>> & {
|
|
14
|
-
$$bindings?: ReturnType<__sveltets_Render<T, U>['bindings']>;
|
|
15
|
-
} & ReturnType<__sveltets_Render<T, U>['exports']>;
|
|
16
|
-
<T extends Record<string, unknown>, U extends _FormPath<T>>(internal: unknown, props: ReturnType<__sveltets_Render<T, U>['props']> & {}): ReturnType<__sveltets_Render<T, U>['exports']>;
|
|
17
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any, any>['bindings']>;
|
|
18
|
-
}
|
|
19
|
-
declare const FormField: $$IsomorphicComponent;
|
|
20
|
-
type FormField<T extends Record<string, unknown>, U extends _FormPath<T>> = InstanceType<typeof FormField<T, U>>;
|
|
21
|
-
export default FormField;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { FormPath as _FormPath } from "sveltekit-superforms";
|
|
3
|
-
type T = Record<string, unknown>;
|
|
4
|
-
type U = _FormPath<T>;
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">
|
|
8
|
-
import * as FormPrimitive from "formsnap";
|
|
9
|
-
import type { WithoutChild } from "bits-ui";
|
|
10
|
-
import { cn } from "../../../utils.js";
|
|
11
|
-
|
|
12
|
-
let {
|
|
13
|
-
ref = $bindable(null),
|
|
14
|
-
class: className,
|
|
15
|
-
form,
|
|
16
|
-
name,
|
|
17
|
-
...restProps
|
|
18
|
-
}: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<FormPrimitive.Fieldset bind:ref {form} {name} class={cn("space-y-2", className)} {...restProps} />
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { FormPath as _FormPath } from "sveltekit-superforms";
|
|
2
|
-
import * as FormPrimitive from "formsnap";
|
|
3
|
-
declare class __sveltets_Render<T extends Record<string, unknown>, U extends _FormPath<T>> {
|
|
4
|
-
props(): Omit<FormPrimitive.FieldsetProps<T, U, any>, "child">;
|
|
5
|
-
events(): {};
|
|
6
|
-
slots(): {};
|
|
7
|
-
bindings(): "ref";
|
|
8
|
-
exports(): {};
|
|
9
|
-
}
|
|
10
|
-
interface $$IsomorphicComponent {
|
|
11
|
-
new <T extends Record<string, unknown>, U extends _FormPath<T>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T, U>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T, U>['props']>, ReturnType<__sveltets_Render<T, U>['events']>, ReturnType<__sveltets_Render<T, U>['slots']>> & {
|
|
12
|
-
$$bindings?: ReturnType<__sveltets_Render<T, U>['bindings']>;
|
|
13
|
-
} & ReturnType<__sveltets_Render<T, U>['exports']>;
|
|
14
|
-
<T extends Record<string, unknown>, U extends _FormPath<T>>(internal: unknown, props: ReturnType<__sveltets_Render<T, U>['props']> & {}): ReturnType<__sveltets_Render<T, U>['exports']>;
|
|
15
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any, any>['bindings']>;
|
|
16
|
-
}
|
|
17
|
-
declare const FormFieldset: $$IsomorphicComponent;
|
|
18
|
-
type FormFieldset<T extends Record<string, unknown>, U extends _FormPath<T>> = InstanceType<typeof FormFieldset<T, U>>;
|
|
19
|
-
export default FormFieldset;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithoutChild } from "bits-ui";
|
|
3
|
-
import * as FormPrimitive from "formsnap";
|
|
4
|
-
import { Label } from "../label/index.js";
|
|
5
|
-
import { cn } from "../../../utils.js";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
ref = $bindable(null),
|
|
9
|
-
children,
|
|
10
|
-
class: className,
|
|
11
|
-
...restProps
|
|
12
|
-
}: WithoutChild<FormPrimitive.LabelProps> = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<FormPrimitive.Label {...restProps} bind:ref>
|
|
16
|
-
{#snippet child({ props })}
|
|
17
|
-
<Label {...props} class={cn("data-[fs-error]:text-destructive", className)}>
|
|
18
|
-
{@render children?.()}
|
|
19
|
-
</Label>
|
|
20
|
-
{/snippet}
|
|
21
|
-
</FormPrimitive.Label>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import * as FormPrimitive from "formsnap";
|
|
3
|
-
import type { WithoutChild } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithoutChild<FormPrimitive.LegendProps> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<FormPrimitive.Legend
|
|
14
|
-
bind:ref
|
|
15
|
-
{...restProps}
|
|
16
|
-
class={cn("data-[fs-error]:text-destructive text-sm font-medium leading-none", className)}
|
|
17
|
-
/>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as FormPrimitive from "formsnap";
|
|
2
|
-
import Description from "./form-description.svelte";
|
|
3
|
-
import Label from "./form-label.svelte";
|
|
4
|
-
import FieldErrors from "./form-field-errors.svelte";
|
|
5
|
-
import Field from "./form-field.svelte";
|
|
6
|
-
import Button from "./form-button.svelte";
|
|
7
|
-
import Fieldset from "./form-fieldset.svelte";
|
|
8
|
-
import Legend from "./form-legend.svelte";
|
|
9
|
-
import ElementField from "./form-element-field.svelte";
|
|
10
|
-
declare const Control: typeof FormPrimitive.Control;
|
|
11
|
-
export { Field, Control, Label, FieldErrors, Description, Fieldset, Legend, ElementField, Button, Field as FormField, Control as FormControl, Description as FormDescription, Label as FormLabel, FieldErrors as FormFieldErrors, Fieldset as FormFieldset, Legend as FormLegend, ElementField as FormElementField, Button as FormButton, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as FormPrimitive from "formsnap";
|
|
2
|
-
import Description from "./form-description.svelte";
|
|
3
|
-
import Label from "./form-label.svelte";
|
|
4
|
-
import FieldErrors from "./form-field-errors.svelte";
|
|
5
|
-
import Field from "./form-field.svelte";
|
|
6
|
-
import Button from "./form-button.svelte";
|
|
7
|
-
import Fieldset from "./form-fieldset.svelte";
|
|
8
|
-
import Legend from "./form-legend.svelte";
|
|
9
|
-
import ElementField from "./form-element-field.svelte";
|
|
10
|
-
const Control = FormPrimitive.Control;
|
|
11
|
-
export { Field, Control, Label, FieldErrors, Description, Fieldset, Legend, ElementField, Button,
|
|
12
|
-
//
|
|
13
|
-
Field as FormField, Control as FormControl, Description as FormDescription, Label as FormLabel, FieldErrors as FormFieldErrors, Fieldset as FormFieldset, Legend as FormLegend, ElementField as FormElementField, Button as FormButton, };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLInputAttributes } from "svelte/elements";
|
|
3
|
-
import type { WithElementRef } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
value = $bindable(),
|
|
9
|
-
class: className,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLInputAttributes> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<input
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
class={cn(
|
|
17
|
-
"border-input placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
bind:value
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Label as LabelPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: LabelPrimitive.RootProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<LabelPrimitive.Root
|
|
13
|
-
bind:ref
|
|
14
|
-
class={cn(
|
|
15
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
18
|
-
{...restProps}
|
|
19
|
-
/>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Select as SelectPrimitive } from "bits-ui";
|
|
2
|
-
import GroupHeading from "./select-group-heading.svelte";
|
|
3
|
-
import Item from "./select-item.svelte";
|
|
4
|
-
import Content from "./select-content.svelte";
|
|
5
|
-
import Trigger from "./select-trigger.svelte";
|
|
6
|
-
import Separator from "./select-separator.svelte";
|
|
7
|
-
import ScrollDownButton from "./select-scroll-down-button.svelte";
|
|
8
|
-
import ScrollUpButton from "./select-scroll-up-button.svelte";
|
|
9
|
-
const Root = SelectPrimitive.Root;
|
|
10
|
-
const Group = SelectPrimitive.Group;
|
|
11
|
-
export { Root, Item, Group, GroupHeading, Content, Trigger, Separator, ScrollDownButton, ScrollUpButton,
|
|
12
|
-
//
|
|
13
|
-
Root as Select, Item as SelectItem, Group as SelectGroup, GroupHeading as SelectGroupHeading, Content as SelectContent, Trigger as SelectTrigger, Separator as SelectSeparator, ScrollDownButton as SelectScrollDownButton, ScrollUpButton as SelectScrollUpButton, };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";
|
|
3
|
-
import * as Select from "./index.js";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
sideOffset = 4,
|
|
10
|
-
portalProps,
|
|
11
|
-
children,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithoutChild<SelectPrimitive.ContentProps> & {
|
|
14
|
-
portalProps?: SelectPrimitive.PortalProps;
|
|
15
|
-
} = $props();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<SelectPrimitive.Portal {...portalProps}>
|
|
19
|
-
<SelectPrimitive.Content
|
|
20
|
-
bind:ref
|
|
21
|
-
{sideOffset}
|
|
22
|
-
class={cn(
|
|
23
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
24
|
-
className
|
|
25
|
-
)}
|
|
26
|
-
{...restProps}
|
|
27
|
-
>
|
|
28
|
-
<Select.ScrollUpButton />
|
|
29
|
-
<SelectPrimitive.Viewport
|
|
30
|
-
class={cn(
|
|
31
|
-
"h-[var(--bits-select-anchor-height)] w-full min-w-[var(--bits-select-anchor-width)] p-1"
|
|
32
|
-
)}
|
|
33
|
-
>
|
|
34
|
-
{@render children?.()}
|
|
35
|
-
</SelectPrimitive.Viewport>
|
|
36
|
-
<Select.ScrollDownButton />
|
|
37
|
-
</SelectPrimitive.Content>
|
|
38
|
-
</SelectPrimitive.Portal>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Select as SelectPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: SelectPrimitive.GroupHeadingProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<SelectPrimitive.GroupHeading
|
|
13
|
-
bind:ref
|
|
14
|
-
class={cn("px-2 py-1.5 text-sm font-semibold", className)}
|
|
15
|
-
{...restProps}
|
|
16
|
-
/>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";
|
|
3
|
-
import Check from "lucide-svelte/icons/check";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
value,
|
|
10
|
-
label,
|
|
11
|
-
children: childrenProp,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithoutChild<SelectPrimitive.ItemProps> = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<SelectPrimitive.Item
|
|
17
|
-
bind:ref
|
|
18
|
-
{value}
|
|
19
|
-
class={cn(
|
|
20
|
-
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
21
|
-
className
|
|
22
|
-
)}
|
|
23
|
-
{...restProps}
|
|
24
|
-
>
|
|
25
|
-
{#snippet children({ selected, highlighted })}
|
|
26
|
-
<span class="absolute right-2 flex size-3.5 items-center justify-center">
|
|
27
|
-
{#if selected}
|
|
28
|
-
<Check class="size-4" />
|
|
29
|
-
{/if}
|
|
30
|
-
</span>
|
|
31
|
-
{#if childrenProp}
|
|
32
|
-
{@render childrenProp({ selected, highlighted })}
|
|
33
|
-
{:else}
|
|
34
|
-
{label || value}
|
|
35
|
-
{/if}
|
|
36
|
-
{/snippet}
|
|
37
|
-
</SelectPrimitive.Item>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import ChevronDown from "lucide-svelte/icons/chevron-down";
|
|
3
|
-
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<SelectPrimitive.ScrollDownButton
|
|
14
|
-
bind:ref
|
|
15
|
-
class={cn("flex cursor-default items-center justify-center py-1", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
>
|
|
18
|
-
<ChevronDown class="size-4" />
|
|
19
|
-
</SelectPrimitive.ScrollDownButton>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import ChevronUp from "lucide-svelte/icons/chevron-up";
|
|
3
|
-
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<SelectPrimitive.ScrollUpButton
|
|
14
|
-
bind:ref
|
|
15
|
-
class={cn("flex cursor-default items-center justify-center py-1", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
>
|
|
18
|
-
<ChevronUp class="size-4" />
|
|
19
|
-
</SelectPrimitive.ScrollUpButton>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Separator as SeparatorPrimitive } from "bits-ui";
|
|
3
|
-
import { Separator } from "../separator/index.js";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: SeparatorPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<Separator bind:ref class={cn("bg-muted -mx-1 my-1 h-px", className)} {...restProps} />
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";
|
|
3
|
-
import ChevronDown from "lucide-svelte/icons/chevron-down";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithoutChild<SelectPrimitive.TriggerProps> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<SelectPrimitive.Trigger
|
|
15
|
-
bind:ref
|
|
16
|
-
class={cn(
|
|
17
|
-
"border-input ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
<ChevronDown class="size-4 opacity-50" />
|
|
24
|
-
</SelectPrimitive.Trigger>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Separator as SeparatorPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
orientation = "horizontal",
|
|
9
|
-
...restProps
|
|
10
|
-
}: SeparatorPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<SeparatorPrimitive.Root
|
|
14
|
-
bind:ref
|
|
15
|
-
class={cn(
|
|
16
|
-
"bg-border shrink-0",
|
|
17
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "min-h-full w-[1px]",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{orientation}
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Dialog as SheetPrimitive } from "bits-ui";
|
|
2
|
-
import Overlay from "./sheet-overlay.svelte";
|
|
3
|
-
import Content from "./sheet-content.svelte";
|
|
4
|
-
import Header from "./sheet-header.svelte";
|
|
5
|
-
import Footer from "./sheet-footer.svelte";
|
|
6
|
-
import Title from "./sheet-title.svelte";
|
|
7
|
-
import Description from "./sheet-description.svelte";
|
|
8
|
-
const Root = SheetPrimitive.Root;
|
|
9
|
-
const Close = SheetPrimitive.Close;
|
|
10
|
-
const Trigger = SheetPrimitive.Trigger;
|
|
11
|
-
const Portal = SheetPrimitive.Portal;
|
|
12
|
-
export { Root, Close, Trigger, Portal, Overlay, Content, Header, Footer, Title, Description,
|
|
13
|
-
//
|
|
14
|
-
Root as Sheet, Close as SheetClose, Trigger as SheetTrigger, Portal as SheetPortal, Overlay as SheetOverlay, Content as SheetContent, Header as SheetHeader, Footer as SheetFooter, Title as SheetTitle, Description as SheetDescription, };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import { tv, type VariantProps } from "tailwind-variants";
|
|
3
|
-
|
|
4
|
-
export const sheetVariants = tv({
|
|
5
|
-
base: "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
6
|
-
variants: {
|
|
7
|
-
side: {
|
|
8
|
-
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
|
|
9
|
-
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
|
|
10
|
-
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
11
|
-
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
side: "right",
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export type Side = VariantProps<typeof sheetVariants>["side"];
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<script lang="ts">
|
|
23
|
-
import { Dialog as SheetPrimitive, type WithoutChildrenOrChild } from "bits-ui";
|
|
24
|
-
import X from "lucide-svelte/icons/x";
|
|
25
|
-
import type { Snippet } from "svelte";
|
|
26
|
-
import SheetOverlay from "./sheet-overlay.svelte";
|
|
27
|
-
import { cn } from "../../../utils.js";
|
|
28
|
-
|
|
29
|
-
let {
|
|
30
|
-
ref = $bindable(null),
|
|
31
|
-
class: className,
|
|
32
|
-
side = "right",
|
|
33
|
-
children,
|
|
34
|
-
...restProps
|
|
35
|
-
}: WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
|
|
36
|
-
side?: Side;
|
|
37
|
-
children: Snippet;
|
|
38
|
-
} = $props();
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<SheetPrimitive.Portal>
|
|
42
|
-
<SheetOverlay />
|
|
43
|
-
<SheetPrimitive.Content bind:ref class={cn(sheetVariants({ side }), className)} {...restProps}>
|
|
44
|
-
{@render children?.()}
|
|
45
|
-
<SheetPrimitive.Close
|
|
46
|
-
class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
|
|
47
|
-
>
|
|
48
|
-
<X class="size-4" />
|
|
49
|
-
<span class="sr-only">Close</span>
|
|
50
|
-
</SheetPrimitive.Close>
|
|
51
|
-
</SheetPrimitive.Content>
|
|
52
|
-
</SheetPrimitive.Portal>
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
export declare const sheetVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
-
side: {
|
|
4
|
-
top: string;
|
|
5
|
-
bottom: string;
|
|
6
|
-
left: string;
|
|
7
|
-
right: string;
|
|
8
|
-
};
|
|
9
|
-
}, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", import("tailwind-variants/dist/config").TVConfig<{
|
|
10
|
-
side: {
|
|
11
|
-
top: string;
|
|
12
|
-
bottom: string;
|
|
13
|
-
left: string;
|
|
14
|
-
right: string;
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
side: {
|
|
18
|
-
top: string;
|
|
19
|
-
bottom: string;
|
|
20
|
-
left: string;
|
|
21
|
-
right: string;
|
|
22
|
-
};
|
|
23
|
-
}>, {
|
|
24
|
-
side: {
|
|
25
|
-
top: string;
|
|
26
|
-
bottom: string;
|
|
27
|
-
left: string;
|
|
28
|
-
right: string;
|
|
29
|
-
};
|
|
30
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
31
|
-
side: {
|
|
32
|
-
top: string;
|
|
33
|
-
bottom: string;
|
|
34
|
-
left: string;
|
|
35
|
-
right: string;
|
|
36
|
-
};
|
|
37
|
-
}, undefined, "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", import("tailwind-variants/dist/config").TVConfig<{
|
|
38
|
-
side: {
|
|
39
|
-
top: string;
|
|
40
|
-
bottom: string;
|
|
41
|
-
left: string;
|
|
42
|
-
right: string;
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
side: {
|
|
46
|
-
top: string;
|
|
47
|
-
bottom: string;
|
|
48
|
-
left: string;
|
|
49
|
-
right: string;
|
|
50
|
-
};
|
|
51
|
-
}>, unknown, unknown, undefined>>;
|
|
52
|
-
export type Side = VariantProps<typeof sheetVariants>["side"];
|
|
53
|
-
import { Dialog as SheetPrimitive } from "bits-ui";
|
|
54
|
-
import type { Snippet } from "svelte";
|
|
55
|
-
declare const SheetContent: import("svelte").Component<Omit<Omit<SheetPrimitive.ContentProps, "child">, "children"> & {
|
|
56
|
-
side?: Side;
|
|
57
|
-
children: Snippet;
|
|
58
|
-
}, {}, "ref">;
|
|
59
|
-
export default SheetContent;
|