sandcms 0.5.2
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/LICENSE +57 -0
- package/README.md +84 -0
- package/dist/Image.svelte +53 -0
- package/dist/Image.svelte.d.ts +10 -0
- package/dist/Seo.svelte +29 -0
- package/dist/Seo.svelte.d.ts +10 -0
- package/dist/admin/Access.svelte +129 -0
- package/dist/admin/Access.svelte.d.ts +7 -0
- package/dist/admin/Account.svelte +190 -0
- package/dist/admin/Account.svelte.d.ts +7 -0
- package/dist/admin/Admin.svelte +42 -0
- package/dist/admin/Admin.svelte.d.ts +8 -0
- package/dist/admin/AssetAttachment.svelte +77 -0
- package/dist/admin/AssetAttachment.svelte.d.ts +15 -0
- package/dist/admin/Collection.svelte +52 -0
- package/dist/admin/Collection.svelte.d.ts +7 -0
- package/dist/admin/Dashboard.svelte +105 -0
- package/dist/admin/Dashboard.svelte.d.ts +7 -0
- package/dist/admin/Editor.svelte +192 -0
- package/dist/admin/Editor.svelte.d.ts +7 -0
- package/dist/admin/Fields.svelte +221 -0
- package/dist/admin/Fields.svelte.d.ts +17 -0
- package/dist/admin/Gallery.svelte +130 -0
- package/dist/admin/Gallery.svelte.d.ts +16 -0
- package/dist/admin/Inbox.svelte +154 -0
- package/dist/admin/Inbox.svelte.d.ts +8 -0
- package/dist/admin/Login.svelte +104 -0
- package/dist/admin/Login.svelte.d.ts +7 -0
- package/dist/admin/MediaLibrary.svelte +231 -0
- package/dist/admin/MediaLibrary.svelte.d.ts +7 -0
- package/dist/admin/MediaPicker.svelte +273 -0
- package/dist/admin/MediaPicker.svelte.d.ts +16 -0
- package/dist/admin/Notice.svelte +13 -0
- package/dist/admin/Notice.svelte.d.ts +8 -0
- package/dist/admin/NotificationSettings.svelte +153 -0
- package/dist/admin/NotificationSettings.svelte.d.ts +7 -0
- package/dist/admin/RichText.svelte +103 -0
- package/dist/admin/RichText.svelte.d.ts +9 -0
- package/dist/admin/RichTextLink.svelte +71 -0
- package/dist/admin/RichTextLink.svelte.d.ts +7 -0
- package/dist/admin/SelectField.svelte +39 -0
- package/dist/admin/SelectField.svelte.d.ts +15 -0
- package/dist/admin/Shell.svelte +106 -0
- package/dist/admin/Shell.svelte.d.ts +9 -0
- package/dist/admin/SortableList.svelte +104 -0
- package/dist/admin/SortableList.svelte.d.ts +30 -0
- package/dist/admin/UnsavedChanges.svelte +54 -0
- package/dist/admin/UnsavedChanges.svelte.d.ts +6 -0
- package/dist/admin/UploadButton.svelte +42 -0
- package/dist/admin/UploadButton.svelte.d.ts +10 -0
- package/dist/admin/UploadQueue.svelte +40 -0
- package/dist/admin/UploadQueue.svelte.d.ts +7 -0
- package/dist/admin/Users.svelte +185 -0
- package/dist/admin/Users.svelte.d.ts +7 -0
- package/dist/admin/client.d.ts +720 -0
- package/dist/admin/client.js +29 -0
- package/dist/admin/components/ui/alert/alert-action.svelte +20 -0
- package/dist/admin/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-description.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-title.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert.svelte +44 -0
- package/dist/admin/components/ui/alert/alert.svelte.d.ts +26 -0
- package/dist/admin/components/ui/alert/index.d.ts +6 -0
- package/dist/admin/components/ui/alert/index.js +8 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte +32 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/index.d.ts +13 -0
- package/dist/admin/components/ui/alert-dialog/index.js +15 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte +21 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte.d.ts +4 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte +24 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte +44 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte.d.ts +26 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte +29 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte.d.ts +11 -0
- package/dist/admin/components/ui/attachment/attachment.svelte +54 -0
- package/dist/admin/components/ui/attachment/attachment.svelte.d.ts +45 -0
- package/dist/admin/components/ui/attachment/index.d.ts +10 -0
- package/dist/admin/components/ui/attachment/index.js +12 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte +20 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte +17 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar.svelte.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.js +9 -0
- package/dist/admin/components/ui/badge/badge.svelte +50 -0
- package/dist/admin/components/ui/badge/badge.svelte.d.ts +38 -0
- package/dist/admin/components/ui/badge/index.d.ts +2 -0
- package/dist/admin/components/ui/badge/index.js +2 -0
- package/dist/admin/components/ui/button/button.svelte +87 -0
- package/dist/admin/components/ui/button/button.svelte.d.ts +70 -0
- package/dist/admin/components/ui/button/index.d.ts +2 -0
- package/dist/admin/components/ui/button/index.js +4 -0
- package/dist/admin/components/ui/card/card-action.svelte +20 -0
- package/dist/admin/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-content.svelte +20 -0
- package/dist/admin/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-description.svelte +20 -0
- package/dist/admin/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-footer.svelte +20 -0
- package/dist/admin/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-header.svelte +23 -0
- package/dist/admin/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-title.svelte +20 -0
- package/dist/admin/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card.svelte +25 -0
- package/dist/admin/components/ui/card/card.svelte.d.ts +8 -0
- package/dist/admin/components/ui/card/index.d.ts +8 -0
- package/dist/admin/components/ui/card/index.js +10 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte +39 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/admin/components/ui/checkbox/index.d.ts +2 -0
- package/dist/admin/components/ui/checkbox/index.js +4 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte +48 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte.d.ts +13 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte +32 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/index.d.ts +11 -0
- package/dist/admin/components/ui/dialog/index.js +13 -0
- package/dist/admin/components/ui/input/index.d.ts +2 -0
- package/dist/admin/components/ui/input/index.js +4 -0
- package/dist/admin/components/ui/input/input.svelte +48 -0
- package/dist/admin/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/admin/components/ui/label/index.d.ts +2 -0
- package/dist/admin/components/ui/label/index.js +4 -0
- package/dist/admin/components/ui/label/label.svelte +20 -0
- package/dist/admin/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/index.d.ts +13 -0
- package/dist/admin/components/ui/select/index.js +15 -0
- package/dist/admin/components/ui/select/select-content.svelte +45 -0
- package/dist/admin/components/ui/select/select-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/admin/components/ui/select/select-group.svelte +17 -0
- package/dist/admin/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-item.svelte +42 -0
- package/dist/admin/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-label.svelte +20 -0
- package/dist/admin/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/admin/components/ui/select/select-portal.svelte +7 -0
- package/dist/admin/components/ui/select/select-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-separator.svelte +18 -0
- package/dist/admin/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-trigger.svelte +29 -0
- package/dist/admin/components/ui/select/select-trigger.svelte.d.ts +8 -0
- package/dist/admin/components/ui/select/select-value.svelte +7 -0
- package/dist/admin/components/ui/select/select-value.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select.svelte +11 -0
- package/dist/admin/components/ui/select/select.svelte.d.ts +3 -0
- package/dist/admin/components/ui/separator/index.d.ts +2 -0
- package/dist/admin/components/ui/separator/index.js +4 -0
- package/dist/admin/components/ui/separator/separator.svelte +21 -0
- package/dist/admin/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/switch/index.d.ts +2 -0
- package/dist/admin/components/ui/switch/index.js +4 -0
- package/dist/admin/components/ui/switch/switch.svelte +34 -0
- package/dist/admin/components/ui/switch/switch.svelte.d.ts +8 -0
- package/dist/admin/components/ui/table/index.d.ts +9 -0
- package/dist/admin/components/ui/table/index.js +11 -0
- package/dist/admin/components/ui/table/table-body.svelte +20 -0
- package/dist/admin/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-caption.svelte +20 -0
- package/dist/admin/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-cell.svelte +20 -0
- package/dist/admin/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-footer.svelte +20 -0
- package/dist/admin/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-head.svelte +23 -0
- package/dist/admin/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-header.svelte +20 -0
- package/dist/admin/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-row.svelte +23 -0
- package/dist/admin/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table.svelte +22 -0
- package/dist/admin/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/admin/components/ui/textarea/index.d.ts +2 -0
- package/dist/admin/components/ui/textarea/index.js +4 -0
- package/dist/admin/components/ui/textarea/textarea.svelte +22 -0
- package/dist/admin/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/admin/components/ui/toggle/index.d.ts +3 -0
- package/dist/admin/components/ui/toggle/index.js +5 -0
- package/dist/admin/components/ui/toggle/toggle.svelte +52 -0
- package/dist/admin/components/ui/toggle/toggle.svelte.d.ts +43 -0
- package/dist/admin/generated/FONT-LICENSE +93 -0
- package/dist/admin/generated/Geist-LICENSE.txt +93 -0
- package/dist/admin/generated/admin.css +3276 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/styles.css +2772 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +1 -0
- package/dist/admin/types.d.ts +63 -0
- package/dist/admin/types.js +1 -0
- package/dist/admin/uploads.d.ts +12 -0
- package/dist/admin/uploads.js +23 -0
- package/dist/admin/utils.d.ts +11 -0
- package/dist/admin/utils.js +1 -0
- package/dist/blueprints/files.d.ts +7 -0
- package/dist/blueprints/files.js +112 -0
- package/dist/blueprints/gallery.d.ts +3 -0
- package/dist/blueprints/gallery.js +14 -0
- package/dist/blueprints/load.d.ts +6 -0
- package/dist/blueprints/load.js +186 -0
- package/dist/blueprints/merge.d.ts +2 -0
- package/dist/blueprints/merge.js +18 -0
- package/dist/blueprints/types.d.ts +58 -0
- package/dist/blueprints/types.js +1 -0
- package/dist/blueprints/validate.d.ts +8 -0
- package/dist/blueprints/validate.js +133 -0
- package/dist/cli/backup.d.ts +6 -0
- package/dist/cli/backup.js +85 -0
- package/dist/cli/cloudflare.d.ts +8 -0
- package/dist/cli/cloudflare.js +123 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.js +56 -0
- package/dist/cli/files.d.ts +30 -0
- package/dist/cli/files.js +114 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +182 -0
- package/dist/cli/prompts.d.ts +5 -0
- package/dist/cli/prompts.js +41 -0
- package/dist/cli/scaffold.d.ts +2 -0
- package/dist/cli/scaffold.js +58 -0
- package/dist/cli/setup.d.ts +11 -0
- package/dist/cli/setup.js +116 -0
- package/dist/cli/upgrade.d.ts +1 -0
- package/dist/cli/upgrade.js +47 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/media.d.ts +26 -0
- package/dist/media.js +27 -0
- package/dist/notification-fields.d.ts +8 -0
- package/dist/notification-fields.js +26 -0
- package/dist/richtext.d.ts +14 -0
- package/dist/richtext.js +73 -0
- package/dist/server/access.d.ts +16 -0
- package/dist/server/access.js +216 -0
- package/dist/server/admin-load.d.ts +342 -0
- package/dist/server/admin-load.js +135 -0
- package/dist/server/api.d.ts +3 -0
- package/dist/server/api.js +144 -0
- package/dist/server/auth.d.ts +744 -0
- package/dist/server/auth.js +142 -0
- package/dist/server/blueprint-icons.d.ts +4 -0
- package/dist/server/blueprint-icons.js +14 -0
- package/dist/server/cms.d.ts +1054 -0
- package/dist/server/cms.js +58 -0
- package/dist/server/content.d.ts +101 -0
- package/dist/server/content.js +285 -0
- package/dist/server/db/migration-data.d.ts +4 -0
- package/dist/server/db/migration-data.js +7 -0
- package/dist/server/db/migrations/0000_foundation.sql +180 -0
- package/dist/server/db/migrations/meta/0000_snapshot.json +1188 -0
- package/dist/server/db/migrations/meta/_journal.json +13 -0
- package/dist/server/db/schema.d.ts +2212 -0
- package/dist/server/db/schema.js +171 -0
- package/dist/server/db/store.d.ts +33 -0
- package/dist/server/db/store.js +131 -0
- package/dist/server/email/index.d.ts +50 -0
- package/dist/server/email/index.js +175 -0
- package/dist/server/email/template.d.ts +8 -0
- package/dist/server/email/template.js +53 -0
- package/dist/server/forms.d.ts +40 -0
- package/dist/server/forms.js +84 -0
- package/dist/server/hooks.d.ts +3 -0
- package/dist/server/hooks.js +85 -0
- package/dist/server/http.d.ts +3 -0
- package/dist/server/http.js +3 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +7 -0
- package/dist/server/media/delivery.d.ts +3 -0
- package/dist/server/media/delivery.js +42 -0
- package/dist/server/media/presets.d.ts +2 -0
- package/dist/server/media/presets.js +8 -0
- package/dist/server/media/runner.d.ts +2 -0
- package/dist/server/media/runner.js +128 -0
- package/dist/server/media/service.d.ts +144 -0
- package/dist/server/media/service.js +280 -0
- package/dist/server/notifications.d.ts +9 -0
- package/dist/server/notifications.js +161 -0
- package/dist/server/request.d.ts +2 -0
- package/dist/server/request.js +39 -0
- package/dist/server/seo.d.ts +12 -0
- package/dist/server/seo.js +62 -0
- package/dist/worker/index.d.ts +10 -0
- package/dist/worker/index.js +266 -0
- package/dist/worker/source.d.ts +2 -0
- package/dist/worker/source.js +31 -0
- package/dist/worker/svg.d.ts +5 -0
- package/dist/worker/svg.js +142 -0
- package/docs/acceptance.md +58 -0
- package/docs/cloudflare.md +146 -0
- package/docs/content.md +188 -0
- package/docs/deployment.md +89 -0
- package/docs/email.md +124 -0
- package/docs/forms.md +18 -0
- package/docs/media.md +105 -0
- package/docs/package.md +84 -0
- package/docs/releases.md +29 -0
- package/docs/upgrades.md +62 -0
- package/package.json +124 -0
- package/templates/dockerignore +15 -0
- package/templates/hooks.server.ts +4 -0
- package/templates/integration.ts +20 -0
- package/templates/railpack.json +7 -0
- package/templates/routes/admin/+page.server.ts +3 -0
- package/templates/routes/admin/+page.svelte +6 -0
- package/templates/routes/api/+server.ts +4 -0
- package/templates/sandcms/blueprints/collections/photographers.yaml +6 -0
- package/templates/sandcms/blueprints/collections/projects.yaml +26 -0
- package/templates/sandcms/blueprints/files/image.yaml +6 -0
- package/templates/sandcms/blueprints/forms/registration.yaml +15 -0
- package/templates/sandcms/blueprints/pages/home.yaml +9 -0
- package/templates/sandcms/blueprints/site.yaml +13 -0
- package/templates/sandcms/config.yaml +12 -0
- package/templates/sandcms/worker/index.ts +1 -0
- package/templates/sandcms/worker/wrangler.jsonc +7 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AttachmentActions: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type AttachmentActions = ReturnType<typeof AttachmentActions>;
|
|
5
|
+
export default AttachmentActions;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="attachment-content"
|
|
16
|
+
class={cn(
|
|
17
|
+
'leading-tight group-data-[orientation=vertical]/attachment:px-1 max-w-full min-w-0 flex-1',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...restProps}
|
|
21
|
+
>
|
|
22
|
+
{@render children?.()}
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AttachmentContent: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type AttachmentContent = ReturnType<typeof AttachmentContent>;
|
|
5
|
+
export default AttachmentContent;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<span
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="attachment-description"
|
|
16
|
+
class={cn(
|
|
17
|
+
'mt-0.5 text-xs block min-w-0 truncate text-muted-foreground group-data-[state=error]/attachment:text-destructive/80',
|
|
18
|
+
'max-w-full',
|
|
19
|
+
className
|
|
20
|
+
)}
|
|
21
|
+
{...restProps}
|
|
22
|
+
>
|
|
23
|
+
{@render children?.()}
|
|
24
|
+
</span>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AttachmentDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
|
+
type AttachmentDescription = ReturnType<typeof AttachmentDescription>;
|
|
5
|
+
export default AttachmentDescription;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="attachment-group"
|
|
16
|
+
class={cn(
|
|
17
|
+
'gap-3 scroll-px-1 py-1 flex min-w-0 scroll-fade-x snap-x snap-mandatory scrollbar-none overflow-x-auto overscroll-x-contain *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...restProps}
|
|
21
|
+
>
|
|
22
|
+
{@render children?.()}
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AttachmentGroup: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type AttachmentGroup = ReturnType<typeof AttachmentGroup>;
|
|
5
|
+
export default AttachmentGroup;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import { tv, type VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
export const attachmentMediaVariants = tv({
|
|
5
|
+
base: "bg-muted text-foreground w-10 rounded-none group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-none [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! relative flex aspect-square shrink-0 items-center justify-center overflow-hidden group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive [&_svg]:pointer-events-none",
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
icon: '',
|
|
9
|
+
image:
|
|
10
|
+
'opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: 'icon'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type AttachmentMediaVariant = VariantProps<typeof attachmentMediaVariants>['variant'];
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<script lang="ts">
|
|
22
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
23
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
24
|
+
|
|
25
|
+
let {
|
|
26
|
+
ref = $bindable(null),
|
|
27
|
+
class: className,
|
|
28
|
+
variant = 'icon',
|
|
29
|
+
children,
|
|
30
|
+
...restProps
|
|
31
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
32
|
+
variant?: AttachmentMediaVariant;
|
|
33
|
+
} = $props();
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<div
|
|
37
|
+
bind:this={ref}
|
|
38
|
+
data-slot="attachment-media"
|
|
39
|
+
data-variant={variant}
|
|
40
|
+
class={cn(attachmentMediaVariants({ variant }), className)}
|
|
41
|
+
{...restProps}
|
|
42
|
+
>
|
|
43
|
+
{@render children?.()}
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const attachmentMediaVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
icon: "";
|
|
5
|
+
image: "opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover";
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "bg-muted text-foreground w-10 rounded-none group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-none [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! relative flex aspect-square shrink-0 items-center justify-center overflow-hidden group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive [&_svg]:pointer-events-none", {
|
|
8
|
+
variant: {
|
|
9
|
+
icon: "";
|
|
10
|
+
image: "opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover";
|
|
11
|
+
};
|
|
12
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
13
|
+
variant: {
|
|
14
|
+
icon: "";
|
|
15
|
+
image: "opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover";
|
|
16
|
+
};
|
|
17
|
+
}, undefined>>;
|
|
18
|
+
export type AttachmentMediaVariant = VariantProps<typeof attachmentMediaVariants>['variant'];
|
|
19
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
20
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
21
|
+
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
22
|
+
variant?: AttachmentMediaVariant;
|
|
23
|
+
};
|
|
24
|
+
declare const AttachmentMedia: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
25
|
+
type AttachmentMedia = ReturnType<typeof AttachmentMedia>;
|
|
26
|
+
export default AttachmentMedia;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<span
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="attachment-title"
|
|
16
|
+
class={cn(
|
|
17
|
+
'font-medium block max-w-full min-w-0 truncate group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...restProps}
|
|
21
|
+
>
|
|
22
|
+
{@render children?.()}
|
|
23
|
+
</span>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AttachmentTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
|
+
type AttachmentTitle = ReturnType<typeof AttachmentTitle>;
|
|
5
|
+
export default AttachmentTitle;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(null),
|
|
8
|
+
class: className,
|
|
9
|
+
type = 'button',
|
|
10
|
+
child,
|
|
11
|
+
...restProps
|
|
12
|
+
}: WithElementRef<HTMLButtonAttributes> & {
|
|
13
|
+
child?: Snippet<[{ props: Record<string, unknown> }]>;
|
|
14
|
+
} = $props();
|
|
15
|
+
|
|
16
|
+
const mergedProps = $derived({
|
|
17
|
+
class: cn('absolute inset-0 z-10 outline-none', className),
|
|
18
|
+
'data-slot': 'attachment-trigger',
|
|
19
|
+
...restProps
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
{#if child}
|
|
24
|
+
{@render child({ props: mergedProps })}
|
|
25
|
+
{:else}
|
|
26
|
+
<button bind:this={ref} {type} {...mergedProps}>
|
|
27
|
+
{@render mergedProps.children?.()}
|
|
28
|
+
</button>
|
|
29
|
+
{/if}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
4
|
+
type $$ComponentProps = WithElementRef<HTMLButtonAttributes> & {
|
|
5
|
+
child?: Snippet<[{
|
|
6
|
+
props: Record<string, unknown>;
|
|
7
|
+
}]>;
|
|
8
|
+
};
|
|
9
|
+
declare const AttachmentTrigger: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
10
|
+
type AttachmentTrigger = ReturnType<typeof AttachmentTrigger>;
|
|
11
|
+
export default AttachmentTrigger;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import { tv, type VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
export const attachmentVariants = tv({
|
|
5
|
+
base: 'rounded-none w-fit focus-within:ring-1 focus-within:ring-ring/50 group/attachment relative flex max-w-full min-w-0 shrink-0 flex-wrap border bg-card text-card-foreground transition-colors has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed',
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
default:
|
|
9
|
+
'gap-2 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs',
|
|
10
|
+
sm: 'gap-2.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs',
|
|
11
|
+
xs: 'gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-none'
|
|
12
|
+
},
|
|
13
|
+
orientation: {
|
|
14
|
+
horizontal: 'min-w-40 items-center',
|
|
15
|
+
vertical: 'w-24 has-data-[slot=attachment-content]:w-30 flex-col'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type AttachmentSize = VariantProps<typeof attachmentVariants>['size'];
|
|
21
|
+
export type AttachmentOrientation = VariantProps<typeof attachmentVariants>['orientation'];
|
|
22
|
+
export type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<script lang="ts">
|
|
26
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
27
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
28
|
+
|
|
29
|
+
let {
|
|
30
|
+
ref = $bindable(null),
|
|
31
|
+
class: className,
|
|
32
|
+
state = 'done',
|
|
33
|
+
size = 'default',
|
|
34
|
+
orientation = 'horizontal',
|
|
35
|
+
children,
|
|
36
|
+
...restProps
|
|
37
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
38
|
+
state?: AttachmentState;
|
|
39
|
+
size?: AttachmentSize;
|
|
40
|
+
orientation?: AttachmentOrientation;
|
|
41
|
+
} = $props();
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<div
|
|
45
|
+
bind:this={ref}
|
|
46
|
+
data-slot="attachment"
|
|
47
|
+
data-state={state}
|
|
48
|
+
data-size={size}
|
|
49
|
+
data-orientation={orientation}
|
|
50
|
+
class={cn(attachmentVariants({ size, orientation }), className)}
|
|
51
|
+
{...restProps}
|
|
52
|
+
>
|
|
53
|
+
{@render children?.()}
|
|
54
|
+
</div>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const attachmentVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
default: "gap-2 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs";
|
|
5
|
+
sm: "gap-2.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs";
|
|
6
|
+
xs: "gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-none";
|
|
7
|
+
};
|
|
8
|
+
orientation: {
|
|
9
|
+
horizontal: "min-w-40 items-center";
|
|
10
|
+
vertical: "w-24 has-data-[slot=attachment-content]:w-30 flex-col";
|
|
11
|
+
};
|
|
12
|
+
}, undefined, "rounded-none w-fit focus-within:ring-1 focus-within:ring-ring/50 group/attachment relative flex max-w-full min-w-0 shrink-0 flex-wrap border bg-card text-card-foreground transition-colors has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", {
|
|
13
|
+
size: {
|
|
14
|
+
default: "gap-2 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs";
|
|
15
|
+
sm: "gap-2.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs";
|
|
16
|
+
xs: "gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-none";
|
|
17
|
+
};
|
|
18
|
+
orientation: {
|
|
19
|
+
horizontal: "min-w-40 items-center";
|
|
20
|
+
vertical: "w-24 has-data-[slot=attachment-content]:w-30 flex-col";
|
|
21
|
+
};
|
|
22
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
23
|
+
size: {
|
|
24
|
+
default: "gap-2 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs";
|
|
25
|
+
sm: "gap-2.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs";
|
|
26
|
+
xs: "gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-none";
|
|
27
|
+
};
|
|
28
|
+
orientation: {
|
|
29
|
+
horizontal: "min-w-40 items-center";
|
|
30
|
+
vertical: "w-24 has-data-[slot=attachment-content]:w-30 flex-col";
|
|
31
|
+
};
|
|
32
|
+
}, undefined>>;
|
|
33
|
+
export type AttachmentSize = VariantProps<typeof attachmentVariants>['size'];
|
|
34
|
+
export type AttachmentOrientation = VariantProps<typeof attachmentVariants>['orientation'];
|
|
35
|
+
export type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
|
|
36
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
37
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
38
|
+
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
39
|
+
state?: AttachmentState;
|
|
40
|
+
size?: AttachmentSize;
|
|
41
|
+
orientation?: AttachmentOrientation;
|
|
42
|
+
};
|
|
43
|
+
declare const Attachment: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
44
|
+
type Attachment = ReturnType<typeof Attachment>;
|
|
45
|
+
export default Attachment;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Action from './attachment-action.svelte';
|
|
2
|
+
import Actions from './attachment-actions.svelte';
|
|
3
|
+
import Content from './attachment-content.svelte';
|
|
4
|
+
import Description from './attachment-description.svelte';
|
|
5
|
+
import Group from './attachment-group.svelte';
|
|
6
|
+
import Media from './attachment-media.svelte';
|
|
7
|
+
import Title from './attachment-title.svelte';
|
|
8
|
+
import Trigger from './attachment-trigger.svelte';
|
|
9
|
+
import Root, { attachmentVariants, type AttachmentOrientation, type AttachmentSize, type AttachmentState } from './attachment.svelte';
|
|
10
|
+
export { Root, Group, Media, Content, Title, Description, Actions, Action, Trigger, attachmentVariants, type AttachmentSize, type AttachmentOrientation, type AttachmentState, Root as Attachment, Group as AttachmentGroup, Media as AttachmentMedia, Content as AttachmentContent, Title as AttachmentTitle, Description as AttachmentDescription, Actions as AttachmentActions, Action as AttachmentAction, Trigger as AttachmentTrigger };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Action from './attachment-action.svelte';
|
|
2
|
+
import Actions from './attachment-actions.svelte';
|
|
3
|
+
import Content from './attachment-content.svelte';
|
|
4
|
+
import Description from './attachment-description.svelte';
|
|
5
|
+
import Group from './attachment-group.svelte';
|
|
6
|
+
import Media from './attachment-media.svelte';
|
|
7
|
+
import Title from './attachment-title.svelte';
|
|
8
|
+
import Trigger from './attachment-trigger.svelte';
|
|
9
|
+
import Root, { attachmentVariants } from './attachment.svelte';
|
|
10
|
+
export { Root, Group, Media, Content, Title, Description, Actions, Action, Trigger, attachmentVariants,
|
|
11
|
+
//
|
|
12
|
+
Root as Attachment, Group as AttachmentGroup, Media as AttachmentMedia, Content as AttachmentContent, Title as AttachmentTitle, Description as AttachmentDescription, Actions as AttachmentActions, Action as AttachmentAction, Trigger as AttachmentTrigger };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<span
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="avatar-badge"
|
|
16
|
+
class={cn(
|
|
17
|
+
'bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none',
|
|
18
|
+
'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden',
|
|
19
|
+
'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2',
|
|
20
|
+
'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2',
|
|
21
|
+
className
|
|
22
|
+
)}
|
|
23
|
+
{...restProps}
|
|
24
|
+
>
|
|
25
|
+
{@render children?.()}
|
|
26
|
+
</span>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AvatarBadge: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
|
+
type AvatarBadge = ReturnType<typeof AvatarBadge>;
|
|
5
|
+
export default AvatarBadge;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
+
import { cn } from '../../../utils.js';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
...restProps
|
|
9
|
+
}: AvatarPrimitive.FallbackProps = $props();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<AvatarPrimitive.Fallback
|
|
13
|
+
bind:ref
|
|
14
|
+
data-slot="avatar-fallback"
|
|
15
|
+
class={cn(
|
|
16
|
+
'bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs',
|
|
17
|
+
className
|
|
18
|
+
)}
|
|
19
|
+
{...restProps}
|
|
20
|
+
/>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="avatar-group-count"
|
|
16
|
+
class={cn(
|
|
17
|
+
'bg-muted text-muted-foreground size-8 rounded-full text-xs group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 relative flex shrink-0 items-center justify-center ring-2 ring-background',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...restProps}
|
|
21
|
+
>
|
|
22
|
+
{@render children?.()}
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AvatarGroupCount: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type AvatarGroupCount = ReturnType<typeof AvatarGroupCount>;
|
|
5
|
+
export default AvatarGroupCount;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="avatar-group"
|
|
16
|
+
class={cn(
|
|
17
|
+
'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...restProps}
|
|
21
|
+
>
|
|
22
|
+
{@render children?.()}
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type WithElementRef } from '../../../utils.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
declare const AvatarGroup: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type AvatarGroup = ReturnType<typeof AvatarGroup>;
|
|
5
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
+
import { cn } from '../../../utils.js';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
...restProps
|
|
9
|
+
}: AvatarPrimitive.ImageProps = $props();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<AvatarPrimitive.Image
|
|
13
|
+
bind:ref
|
|
14
|
+
data-slot="avatar-image"
|
|
15
|
+
class={cn('rounded-full aspect-square size-full object-cover', className)}
|
|
16
|
+
{...restProps}
|
|
17
|
+
/>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
3
|
+
import { cn } from '../../../utils.js';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
loadingStatus = $bindable('loading'),
|
|
8
|
+
size = 'default',
|
|
9
|
+
class: className,
|
|
10
|
+
...restProps
|
|
11
|
+
}: AvatarPrimitive.RootProps & {
|
|
12
|
+
size?: 'default' | 'sm' | 'lg';
|
|
13
|
+
} = $props();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<AvatarPrimitive.Root
|
|
17
|
+
bind:ref
|
|
18
|
+
bind:loadingStatus
|
|
19
|
+
data-slot="avatar"
|
|
20
|
+
data-size={size}
|
|
21
|
+
class={cn(
|
|
22
|
+
'size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten',
|
|
23
|
+
className
|
|
24
|
+
)}
|
|
25
|
+
{...restProps}
|
|
26
|
+
/>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
2
|
+
type $$ComponentProps = AvatarPrimitive.RootProps & {
|
|
3
|
+
size?: 'default' | 'sm' | 'lg';
|
|
4
|
+
};
|
|
5
|
+
declare const Avatar: import("svelte").Component<$$ComponentProps, {}, "ref" | "loadingStatus">;
|
|
6
|
+
type Avatar = ReturnType<typeof Avatar>;
|
|
7
|
+
export default Avatar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Badge from './avatar-badge.svelte';
|
|
2
|
+
import Fallback from './avatar-fallback.svelte';
|
|
3
|
+
import GroupCount from './avatar-group-count.svelte';
|
|
4
|
+
import Group from './avatar-group.svelte';
|
|
5
|
+
import Image from './avatar-image.svelte';
|
|
6
|
+
import Root from './avatar.svelte';
|
|
7
|
+
export { Root, Image, Fallback, Badge, Group, GroupCount, Root as Avatar, Image as AvatarImage, Fallback as AvatarFallback, Badge as AvatarBadge, Group as AvatarGroup, GroupCount as AvatarGroupCount };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Badge from './avatar-badge.svelte';
|
|
2
|
+
import Fallback from './avatar-fallback.svelte';
|
|
3
|
+
import GroupCount from './avatar-group-count.svelte';
|
|
4
|
+
import Group from './avatar-group.svelte';
|
|
5
|
+
import Image from './avatar-image.svelte';
|
|
6
|
+
import Root from './avatar.svelte';
|
|
7
|
+
export { Root, Image, Fallback, Badge, Group, GroupCount,
|
|
8
|
+
//
|
|
9
|
+
Root as Avatar, Image as AvatarImage, Fallback as AvatarFallback, Badge as AvatarBadge, Group as AvatarGroup, GroupCount as AvatarGroupCount };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import { type VariantProps, tv } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
export const badgeVariants = tv({
|
|
5
|
+
base: 'h-5 gap-1 rounded-none border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none',
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',
|
|
9
|
+
secondary: 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',
|
|
10
|
+
destructive:
|
|
11
|
+
'bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20',
|
|
12
|
+
outline: 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
|
|
13
|
+
ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',
|
|
14
|
+
link: 'text-primary underline-offset-4 hover:underline'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: 'default'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<script lang="ts">
|
|
26
|
+
import { cn, type WithElementRef } from '../../../utils.js';
|
|
27
|
+
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
|
28
|
+
|
|
29
|
+
let {
|
|
30
|
+
ref = $bindable(null),
|
|
31
|
+
href,
|
|
32
|
+
class: className,
|
|
33
|
+
variant = 'default',
|
|
34
|
+
children,
|
|
35
|
+
...restProps
|
|
36
|
+
}: WithElementRef<HTMLAnchorAttributes> & {
|
|
37
|
+
variant?: BadgeVariant;
|
|
38
|
+
} = $props();
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<svelte:element
|
|
42
|
+
this={href ? 'a' : 'span'}
|
|
43
|
+
bind:this={ref}
|
|
44
|
+
data-slot="badge"
|
|
45
|
+
{href}
|
|
46
|
+
class={cn(badgeVariants({ variant }), className)}
|
|
47
|
+
{...restProps}
|
|
48
|
+
>
|
|
49
|
+
{@render children?.()}
|
|
50
|
+
</svelte:element>
|