svelte-firekit 0.0.14 → 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 -32
- package/dist/auth/reset-password.svelte.d.ts +0 -8
- package/dist/auth/sign-in.svelte +0 -58
- package/dist/auth/sign-in.svelte.d.ts +0 -14
- package/dist/auth/sign-up.svelte +0 -69
- package/dist/auth/sign-up.svelte.d.ts +0 -17
- 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 -94
- package/dist/components/auth/sign-in-form.svelte.d.ts +0 -8
- package/dist/components/auth/sign-up-form.svelte +0 -136
- package/dist/components/auth/sign-up-form.svelte.d.ts +0 -11
- 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 -5
- 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/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,10 +0,0 @@
|
|
|
1
|
-
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
declare const BreadcrumbLink: import("svelte").Component<HTMLAnchorAttributes & {
|
|
4
|
-
ref?: HTMLElement | null | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
child?: Snippet<[{
|
|
7
|
-
props: HTMLAnchorAttributes;
|
|
8
|
-
}]>;
|
|
9
|
-
}, {}, "ref">;
|
|
10
|
-
export default BreadcrumbLink;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLOlAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLOlAttributes> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<ol
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
class={cn(
|
|
17
|
-
"text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</ol>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<span
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
role="link"
|
|
17
|
-
aria-disabled="true"
|
|
18
|
-
aria-current="page"
|
|
19
|
-
class={cn("text-foreground font-normal", className)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{@render children?.()}
|
|
23
|
-
</span>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import ChevronRight from "lucide-svelte/icons/chevron-right";
|
|
3
|
-
import type { WithElementRef } from "bits-ui";
|
|
4
|
-
import type { HTMLLiAttributes } from "svelte/elements";
|
|
5
|
-
import { cn } from "../../../utils.js";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
ref = $bindable(null),
|
|
9
|
-
class: className,
|
|
10
|
-
children,
|
|
11
|
-
...restProps
|
|
12
|
-
}: WithElementRef<HTMLLiAttributes> = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<li
|
|
16
|
-
role="presentation"
|
|
17
|
-
aria-hidden="true"
|
|
18
|
-
class={cn("[&>svg]:size-3.5", className)}
|
|
19
|
-
bind:this={ref}
|
|
20
|
-
{...restProps}
|
|
21
|
-
>
|
|
22
|
-
{#if children}
|
|
23
|
-
{@render children?.()}
|
|
24
|
-
{:else}
|
|
25
|
-
<ChevronRight />
|
|
26
|
-
{/if}
|
|
27
|
-
</li>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<nav class={className} bind:this={ref} aria-label="breadcrumb" {...restProps}>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</nav>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import Root from "./breadcrumb.svelte";
|
|
2
|
-
import Ellipsis from "./breadcrumb-ellipsis.svelte";
|
|
3
|
-
import Item from "./breadcrumb-item.svelte";
|
|
4
|
-
import Separator from "./breadcrumb-separator.svelte";
|
|
5
|
-
import Link from "./breadcrumb-link.svelte";
|
|
6
|
-
import List from "./breadcrumb-list.svelte";
|
|
7
|
-
import Page from "./breadcrumb-page.svelte";
|
|
8
|
-
export { Root, Ellipsis, Item, Separator, Link, List, Page, Root as Breadcrumb, Ellipsis as BreadcrumbEllipsis, Item as BreadcrumbItem, Separator as BreadcrumbSeparator, Link as BreadcrumbLink, List as BreadcrumbList, Page as BreadcrumbPage, };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Root from "./breadcrumb.svelte";
|
|
2
|
-
import Ellipsis from "./breadcrumb-ellipsis.svelte";
|
|
3
|
-
import Item from "./breadcrumb-item.svelte";
|
|
4
|
-
import Separator from "./breadcrumb-separator.svelte";
|
|
5
|
-
import Link from "./breadcrumb-link.svelte";
|
|
6
|
-
import List from "./breadcrumb-list.svelte";
|
|
7
|
-
import Page from "./breadcrumb-page.svelte";
|
|
8
|
-
export { Root, Ellipsis, Item, Separator, Link, List, Page,
|
|
9
|
-
//
|
|
10
|
-
Root as Breadcrumb, Ellipsis as BreadcrumbEllipsis, Item as BreadcrumbItem, Separator as BreadcrumbSeparator, Link as BreadcrumbLink, List as BreadcrumbList, Page as BreadcrumbPage, };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
4
|
-
import { type VariantProps, tv } from "tailwind-variants";
|
|
5
|
-
|
|
6
|
-
export const buttonVariants = tv({
|
|
7
|
-
base: "focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8
|
-
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow",
|
|
11
|
-
destructive:
|
|
12
|
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",
|
|
13
|
-
outline:
|
|
14
|
-
"border-input bg-background hover:bg-accent hover:text-accent-foreground border shadow-sm",
|
|
15
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",
|
|
16
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
17
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
default: "h-9 px-4 py-2",
|
|
21
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
22
|
-
lg: "h-10 rounded-md px-8",
|
|
23
|
-
icon: "h-9 w-9",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
variant: "default",
|
|
28
|
-
size: "default",
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
33
|
-
export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
34
|
-
|
|
35
|
-
export type ButtonProps = WithElementRef<HTMLButtonAttributes> &
|
|
36
|
-
WithElementRef<HTMLAnchorAttributes> & {
|
|
37
|
-
variant?: ButtonVariant;
|
|
38
|
-
size?: ButtonSize;
|
|
39
|
-
};
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<script lang="ts">
|
|
43
|
-
import { cn } from "../../../utils.js";
|
|
44
|
-
|
|
45
|
-
let {
|
|
46
|
-
class: className,
|
|
47
|
-
variant = "default",
|
|
48
|
-
size = "default",
|
|
49
|
-
ref = $bindable(null),
|
|
50
|
-
href = undefined,
|
|
51
|
-
type = "button",
|
|
52
|
-
children,
|
|
53
|
-
...restProps
|
|
54
|
-
}: ButtonProps = $props();
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
{#if href}
|
|
58
|
-
<a
|
|
59
|
-
bind:this={ref}
|
|
60
|
-
class={cn(buttonVariants({ variant, size, className }))}
|
|
61
|
-
{href}
|
|
62
|
-
{...restProps}
|
|
63
|
-
>
|
|
64
|
-
{@render children?.()}
|
|
65
|
-
</a>
|
|
66
|
-
{:else}
|
|
67
|
-
<button
|
|
68
|
-
bind:this={ref}
|
|
69
|
-
class={cn(buttonVariants({ variant, size, className }))}
|
|
70
|
-
{type}
|
|
71
|
-
{...restProps}
|
|
72
|
-
>
|
|
73
|
-
{@render children?.()}
|
|
74
|
-
</button>
|
|
75
|
-
{/if}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
3
|
-
import { type VariantProps } from "tailwind-variants";
|
|
4
|
-
export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
-
variant: {
|
|
6
|
-
default: string;
|
|
7
|
-
destructive: string;
|
|
8
|
-
outline: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
ghost: string;
|
|
11
|
-
link: string;
|
|
12
|
-
};
|
|
13
|
-
size: {
|
|
14
|
-
default: string;
|
|
15
|
-
sm: string;
|
|
16
|
-
lg: string;
|
|
17
|
-
icon: string;
|
|
18
|
-
};
|
|
19
|
-
}, undefined, "focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
|
|
20
|
-
variant: {
|
|
21
|
-
default: string;
|
|
22
|
-
destructive: string;
|
|
23
|
-
outline: string;
|
|
24
|
-
secondary: string;
|
|
25
|
-
ghost: string;
|
|
26
|
-
link: string;
|
|
27
|
-
};
|
|
28
|
-
size: {
|
|
29
|
-
default: string;
|
|
30
|
-
sm: string;
|
|
31
|
-
lg: string;
|
|
32
|
-
icon: string;
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
variant: {
|
|
36
|
-
default: string;
|
|
37
|
-
destructive: string;
|
|
38
|
-
outline: string;
|
|
39
|
-
secondary: string;
|
|
40
|
-
ghost: string;
|
|
41
|
-
link: string;
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
default: string;
|
|
45
|
-
sm: string;
|
|
46
|
-
lg: string;
|
|
47
|
-
icon: string;
|
|
48
|
-
};
|
|
49
|
-
}>, {
|
|
50
|
-
variant: {
|
|
51
|
-
default: string;
|
|
52
|
-
destructive: string;
|
|
53
|
-
outline: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
ghost: string;
|
|
56
|
-
link: string;
|
|
57
|
-
};
|
|
58
|
-
size: {
|
|
59
|
-
default: string;
|
|
60
|
-
sm: string;
|
|
61
|
-
lg: string;
|
|
62
|
-
icon: string;
|
|
63
|
-
};
|
|
64
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
65
|
-
variant: {
|
|
66
|
-
default: string;
|
|
67
|
-
destructive: string;
|
|
68
|
-
outline: string;
|
|
69
|
-
secondary: string;
|
|
70
|
-
ghost: string;
|
|
71
|
-
link: string;
|
|
72
|
-
};
|
|
73
|
-
size: {
|
|
74
|
-
default: string;
|
|
75
|
-
sm: string;
|
|
76
|
-
lg: string;
|
|
77
|
-
icon: string;
|
|
78
|
-
};
|
|
79
|
-
}, undefined, "focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
|
|
80
|
-
variant: {
|
|
81
|
-
default: string;
|
|
82
|
-
destructive: string;
|
|
83
|
-
outline: string;
|
|
84
|
-
secondary: string;
|
|
85
|
-
ghost: string;
|
|
86
|
-
link: string;
|
|
87
|
-
};
|
|
88
|
-
size: {
|
|
89
|
-
default: string;
|
|
90
|
-
sm: string;
|
|
91
|
-
lg: string;
|
|
92
|
-
icon: string;
|
|
93
|
-
};
|
|
94
|
-
}, {
|
|
95
|
-
variant: {
|
|
96
|
-
default: string;
|
|
97
|
-
destructive: string;
|
|
98
|
-
outline: string;
|
|
99
|
-
secondary: string;
|
|
100
|
-
ghost: string;
|
|
101
|
-
link: string;
|
|
102
|
-
};
|
|
103
|
-
size: {
|
|
104
|
-
default: string;
|
|
105
|
-
sm: string;
|
|
106
|
-
lg: string;
|
|
107
|
-
icon: string;
|
|
108
|
-
};
|
|
109
|
-
}>, unknown, unknown, undefined>>;
|
|
110
|
-
export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
111
|
-
export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
112
|
-
export type ButtonProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<HTMLAnchorAttributes> & {
|
|
113
|
-
variant?: ButtonVariant;
|
|
114
|
-
size?: ButtonSize;
|
|
115
|
-
};
|
|
116
|
-
declare const Button: import("svelte").Component<ButtonProps, {}, "ref">;
|
|
117
|
-
export default Button;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("p-6", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<p bind:this={ref} class={cn("text-muted-foreground text-sm", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</p>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("flex items-center p-6 pt-0", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("flex flex-col space-y-1.5 p-6 pb-0", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
level = 3,
|
|
10
|
-
children,
|
|
11
|
-
...restProps
|
|
12
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
13
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<div
|
|
18
|
-
role="heading"
|
|
19
|
-
aria-level={level}
|
|
20
|
-
bind:this={ref}
|
|
21
|
-
class={cn("font-semibold leading-none tracking-tight", className)}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{@render children?.()}
|
|
25
|
-
</div>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
-
declare const CardTitle: import("svelte").Component<HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
ref?: HTMLElement | null | undefined;
|
|
4
|
-
} & {
|
|
5
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
-
}, {}, "ref">;
|
|
7
|
-
export default CardTitle;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
class={cn("bg-card text-card-foreground rounded-xl border shadow", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Root from "./card.svelte";
|
|
2
|
-
import Content from "./card-content.svelte";
|
|
3
|
-
import Description from "./card-description.svelte";
|
|
4
|
-
import Footer from "./card-footer.svelte";
|
|
5
|
-
import Header from "./card-header.svelte";
|
|
6
|
-
import Title from "./card-title.svelte";
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Root from "./card.svelte";
|
|
2
|
-
import Content from "./card-content.svelte";
|
|
3
|
-
import Description from "./card-description.svelte";
|
|
4
|
-
import Footer from "./card-footer.svelte";
|
|
5
|
-
import Header from "./card-header.svelte";
|
|
6
|
-
import Title from "./card-title.svelte";
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title,
|
|
8
|
-
//
|
|
9
|
-
Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Checkbox as CheckboxPrimitive, type WithoutChildrenOrChild } from "bits-ui";
|
|
3
|
-
import Check from "svelte-radix/Check.svelte";
|
|
4
|
-
import Minus from "svelte-radix/Minus.svelte";
|
|
5
|
-
import { cn } from "../../../utils.js";
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
ref = $bindable(null),
|
|
9
|
-
class: className,
|
|
10
|
-
checked = $bindable(false),
|
|
11
|
-
...restProps
|
|
12
|
-
}: WithoutChildrenOrChild<CheckboxPrimitive.RootProps> = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<CheckboxPrimitive.Root
|
|
16
|
-
class={cn(
|
|
17
|
-
"border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border shadow focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
bind:checked
|
|
21
|
-
bind:ref
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{#snippet children({ checked })}
|
|
25
|
-
<span class="flex size-4 items-center justify-center text-current">
|
|
26
|
-
{#if checked === "indeterminate"}
|
|
27
|
-
<Minus class="size-3.5" />
|
|
28
|
-
{:else}
|
|
29
|
-
<Check class={cn("size-3.5", !checked && "text-transparent")} />
|
|
30
|
-
{/if}
|
|
31
|
-
</span>
|
|
32
|
-
{/snippet}
|
|
33
|
-
</CheckboxPrimitive.Root>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Collapsible as CollapsiblePrimitive } from "bits-ui";
|
|
2
|
-
declare const Root: typeof CollapsiblePrimitive.Root;
|
|
3
|
-
declare const Trigger: typeof CollapsiblePrimitive.Trigger;
|
|
4
|
-
declare const Content: typeof CollapsiblePrimitive.Content;
|
|
5
|
-
export { Root, Content, Trigger, Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Collapsible as CollapsiblePrimitive } from "bits-ui";
|
|
2
|
-
const Root = CollapsiblePrimitive.Root;
|
|
3
|
-
const Trigger = CollapsiblePrimitive.Trigger;
|
|
4
|
-
const Content = CollapsiblePrimitive.Content;
|
|
5
|
-
export { Root, Content, Trigger,
|
|
6
|
-
//
|
|
7
|
-
Root as Collapsible, Content as CollapsibleContent, Trigger as CollapsibleTrigger, };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from "bits-ui";
|
|
3
|
-
import X from "lucide-svelte/icons/x";
|
|
4
|
-
import type { Snippet } from "svelte";
|
|
5
|
-
import * as Dialog from "./index.js";
|
|
6
|
-
import { cn } from "../../../utils.js";
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
ref = $bindable(null),
|
|
10
|
-
class: className,
|
|
11
|
-
children,
|
|
12
|
-
...restProps
|
|
13
|
-
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
|
|
14
|
-
children: Snippet;
|
|
15
|
-
} = $props();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<Dialog.Portal>
|
|
19
|
-
<Dialog.Overlay />
|
|
20
|
-
<DialogPrimitive.Content
|
|
21
|
-
bind:ref
|
|
22
|
-
class={cn(
|
|
23
|
-
"bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
24
|
-
className
|
|
25
|
-
)}
|
|
26
|
-
{...restProps}
|
|
27
|
-
>
|
|
28
|
-
{@render children?.()}
|
|
29
|
-
<DialogPrimitive.Close
|
|
30
|
-
class="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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"
|
|
31
|
-
>
|
|
32
|
-
<X class="size-4" />
|
|
33
|
-
<span class="sr-only">Close</span>
|
|
34
|
-
</DialogPrimitive.Close>
|
|
35
|
-
</DialogPrimitive.Content>
|
|
36
|
-
</Dialog.Portal>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
declare const DialogContent: import("svelte").Component<Omit<Omit<DialogPrimitive.ContentProps, "child">, "children"> & {
|
|
4
|
-
children: Snippet;
|
|
5
|
-
}, {}, "ref">;
|
|
6
|
-
export default DialogContent;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DialogPrimitive.DescriptionProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DialogPrimitive.Description
|
|
13
|
-
bind:ref
|
|
14
|
-
class={cn("text-muted-foreground text-sm", className)}
|
|
15
|
-
{...restProps}
|
|
16
|
-
/>
|