@ghostvue/mcp 0.0.0-stage → 0.1.0
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 +22 -0
- package/README.md +97 -2
- package/dist/assets/bundle.json +6 -0
- package/dist/assets/docs/pages.json +1 -0
- package/dist/assets/examples/catalog.json +1 -0
- package/dist/assets/examples/sources/accordion/basic.vue +42 -0
- package/dist/assets/examples/sources/accordion/deployment-faq.vue +169 -0
- package/dist/assets/examples/sources/accordion/navigation.vue +55 -0
- package/dist/assets/examples/sources/accordion/themed.vue +47 -0
- package/dist/assets/examples/sources/avatar/basic.vue +7 -0
- package/dist/assets/examples/sources/avatar/composable.vue +11 -0
- package/dist/assets/examples/sources/avatar/fallback.vue +11 -0
- package/dist/assets/examples/sources/avatar/image.vue +13 -0
- package/dist/assets/examples/sources/avatar/team-roster.vue +126 -0
- package/dist/assets/examples/sources/avatar/themed.vue +20 -0
- package/dist/assets/examples/sources/badge/basic.vue +7 -0
- package/dist/assets/examples/sources/badge/composable.vue +9 -0
- package/dist/assets/examples/sources/badge/icon.vue +18 -0
- package/dist/assets/examples/sources/badge/release-channels.vue +120 -0
- package/dist/assets/examples/sources/badge/table.vue +36 -0
- package/dist/assets/examples/sources/badge/themed.vue +7 -0
- package/dist/assets/examples/sources/breadcrumb/basic.vue +28 -0
- package/dist/assets/examples/sources/breadcrumb/collapsed.vue +37 -0
- package/dist/assets/examples/sources/breadcrumb/workspace-trail.vue +90 -0
- package/dist/assets/examples/sources/button/action-bar.vue +124 -0
- package/dist/assets/examples/sources/button/basic.vue +15 -0
- package/dist/assets/examples/sources/button/composable.vue +24 -0
- package/dist/assets/examples/sources/button/configured.vue +36 -0
- package/dist/assets/examples/sources/button/icon-only.vue +22 -0
- package/dist/assets/examples/sources/button/loading.vue +26 -0
- package/dist/assets/examples/sources/button/marked-parts.vue +56 -0
- package/dist/assets/examples/sources/button/ref.vue +16 -0
- package/dist/assets/examples/sources/button/themed.vue +30 -0
- package/dist/assets/examples/sources/calendar/basic.vue +238 -0
- package/dist/assets/examples/sources/calendar/controlled.vue +246 -0
- package/dist/assets/examples/sources/calendar/locale.vue +239 -0
- package/dist/assets/examples/sources/calendar/range.vue +241 -0
- package/dist/assets/examples/sources/calendar/themed.vue +88 -0
- package/dist/assets/examples/sources/calendar/unselected.vue +229 -0
- package/dist/assets/examples/sources/card/actions.vue +15 -0
- package/dist/assets/examples/sources/card/basic.vue +17 -0
- package/dist/assets/examples/sources/card/composable.vue +12 -0
- package/dist/assets/examples/sources/card/interactive.vue +23 -0
- package/dist/assets/examples/sources/card/link.vue +19 -0
- package/dist/assets/examples/sources/card/project-summary.vue +133 -0
- package/dist/assets/examples/sources/card/themed.vue +48 -0
- package/dist/assets/examples/sources/checkbox/basic.vue +22 -0
- package/dist/assets/examples/sources/checkbox/composable.vue +28 -0
- package/dist/assets/examples/sources/checkbox/indeterminate.vue +52 -0
- package/dist/assets/examples/sources/checkbox/notification-preferences.vue +360 -0
- package/dist/assets/examples/sources/checkbox/ref.vue +35 -0
- package/dist/assets/examples/sources/checkbox/themed.vue +111 -0
- package/dist/assets/examples/sources/collapsible/basic.vue +18 -0
- package/dist/assets/examples/sources/collapsible/release-notes.vue +136 -0
- package/dist/assets/examples/sources/collapsible/themed.vue +34 -0
- package/dist/assets/examples/sources/combobox/assignee-search.vue +544 -0
- package/dist/assets/examples/sources/combobox/async.vue +161 -0
- package/dist/assets/examples/sources/combobox/basic.vue +130 -0
- package/dist/assets/examples/sources/combobox/field.vue +137 -0
- package/dist/assets/examples/sources/combobox/form.vue +127 -0
- package/dist/assets/examples/sources/combobox/multi.vue +130 -0
- package/dist/assets/examples/sources/combobox/themed.vue +34 -0
- package/dist/assets/examples/sources/command-palette/async.vue +104 -0
- package/dist/assets/examples/sources/command-palette/basic.vue +108 -0
- package/dist/assets/examples/sources/command-palette/shortcut.vue +87 -0
- package/dist/assets/examples/sources/command-palette/themed.vue +152 -0
- package/dist/assets/examples/sources/command-palette/virtualized.vue +75 -0
- package/dist/assets/examples/sources/context-menu/basic.vue +231 -0
- package/dist/assets/examples/sources/context-menu/themed.vue +244 -0
- package/dist/assets/examples/sources/data-table/basic-invoices.vue +52 -0
- package/dist/assets/examples/sources/data-table/full-invoices.vue +178 -0
- package/dist/assets/examples/sources/data-table/paginated-invoices.vue +172 -0
- package/dist/assets/examples/sources/data-table/preset-invoices.vue +90 -0
- package/dist/assets/examples/sources/data-table/server-invoices-router.vue +504 -0
- package/dist/assets/examples/sources/data-table/themed-invoices.vue +123 -0
- package/dist/assets/examples/sources/date-picker/basic.vue +330 -0
- package/dist/assets/examples/sources/date-picker/controlled.vue +346 -0
- package/dist/assets/examples/sources/date-picker/custom-format.vue +367 -0
- package/dist/assets/examples/sources/date-picker/nested-dialog.vue +385 -0
- package/dist/assets/examples/sources/date-picker/range.vue +345 -0
- package/dist/assets/examples/sources/date-picker/rtl.vue +335 -0
- package/dist/assets/examples/sources/date-picker/themed.vue +70 -0
- package/dist/assets/examples/sources/date-picker/validation.vue +404 -0
- package/dist/assets/examples/sources/dialog/alert.vue +74 -0
- package/dist/assets/examples/sources/dialog/basic.vue +25 -0
- package/dist/assets/examples/sources/dialog/edit-profile.vue +347 -0
- package/dist/assets/examples/sources/dialog/nested.vue +98 -0
- package/dist/assets/examples/sources/dialog/themed.vue +98 -0
- package/dist/assets/examples/sources/drawer/basic.vue +25 -0
- package/dist/assets/examples/sources/drawer/nested.vue +71 -0
- package/dist/assets/examples/sources/drawer/non-modal.vue +44 -0
- package/dist/assets/examples/sources/drawer/sides.vue +61 -0
- package/dist/assets/examples/sources/drawer/themed.vue +162 -0
- package/dist/assets/examples/sources/dropdown-menu/basic.vue +205 -0
- package/dist/assets/examples/sources/dropdown-menu/record-actions.vue +506 -0
- package/dist/assets/examples/sources/dropdown-menu/themed.vue +161 -0
- package/dist/assets/examples/sources/empty-state/basic.vue +12 -0
- package/dist/assets/examples/sources/empty-state/composable.vue +18 -0
- package/dist/assets/examples/sources/empty-state/filtered.vue +16 -0
- package/dist/assets/examples/sources/empty-state/search-results.vue +124 -0
- package/dist/assets/examples/sources/empty-state/table-cell.vue +29 -0
- package/dist/assets/examples/sources/empty-state/themed.vue +33 -0
- package/dist/assets/examples/sources/field/basic.vue +25 -0
- package/dist/assets/examples/sources/field/checkbox.vue +23 -0
- package/dist/assets/examples/sources/field/invalid.vue +27 -0
- package/dist/assets/examples/sources/field/profile-settings.vue +227 -0
- package/dist/assets/examples/sources/field/textarea.vue +25 -0
- package/dist/assets/examples/sources/field/themed.vue +27 -0
- package/dist/assets/examples/sources/file-upload/asset-submission.vue +201 -0
- package/dist/assets/examples/sources/file-upload/basic.vue +30 -0
- package/dist/assets/examples/sources/file-upload/button-only.vue +33 -0
- package/dist/assets/examples/sources/file-upload/controlled.vue +49 -0
- package/dist/assets/examples/sources/file-upload/duplicates.vue +46 -0
- package/dist/assets/examples/sources/file-upload/field.vue +67 -0
- package/dist/assets/examples/sources/file-upload/form.vue +60 -0
- package/dist/assets/examples/sources/file-upload/themed.vue +50 -0
- package/dist/assets/examples/sources/file-upload/validation.vue +47 -0
- package/dist/assets/examples/sources/hover-card/basic.vue +121 -0
- package/dist/assets/examples/sources/hover-card/themed.vue +152 -0
- package/dist/assets/examples/sources/inline-alert/basic.vue +10 -0
- package/dist/assets/examples/sources/inline-alert/billing-notices.vue +141 -0
- package/dist/assets/examples/sources/inline-alert/composable.vue +19 -0
- package/dist/assets/examples/sources/inline-alert/live.vue +25 -0
- package/dist/assets/examples/sources/inline-alert/table-error.vue +21 -0
- package/dist/assets/examples/sources/inline-alert/themed.vue +13 -0
- package/dist/assets/examples/sources/input/account-details.vue +229 -0
- package/dist/assets/examples/sources/input/basic.vue +10 -0
- package/dist/assets/examples/sources/input/composable.vue +12 -0
- package/dist/assets/examples/sources/input/ref.vue +34 -0
- package/dist/assets/examples/sources/input/search.vue +101 -0
- package/dist/assets/examples/sources/input/states.vue +96 -0
- package/dist/assets/examples/sources/input/themed.vue +55 -0
- package/dist/assets/examples/sources/interactive-surface/basic.vue +40 -0
- package/dist/assets/examples/sources/interactive-surface/button.vue +7 -0
- package/dist/assets/examples/sources/interactive-surface/composable.vue +34 -0
- package/dist/assets/examples/sources/interactive-surface/feature-tiles.vue +77 -0
- package/dist/assets/examples/sources/kbd/basic.vue +5 -0
- package/dist/assets/examples/sources/kbd/combination.vue +8 -0
- package/dist/assets/examples/sources/kbd/command-shortcuts.vue +98 -0
- package/dist/assets/examples/sources/kbd/composable.vue +17 -0
- package/dist/assets/examples/sources/kbd/platform.vue +14 -0
- package/dist/assets/examples/sources/kbd/themed.vue +25 -0
- package/dist/assets/examples/sources/link/basic.vue +7 -0
- package/dist/assets/examples/sources/link/button.vue +62 -0
- package/dist/assets/examples/sources/link/composable.vue +15 -0
- package/dist/assets/examples/sources/link/disabled.vue +9 -0
- package/dist/assets/examples/sources/link/documentation-footer.vue +96 -0
- package/dist/assets/examples/sources/link/external.vue +12 -0
- package/dist/assets/examples/sources/link/router.vue +22 -0
- package/dist/assets/examples/sources/link/themed.vue +21 -0
- package/dist/assets/examples/sources/menubar/basic.vue +208 -0
- package/dist/assets/examples/sources/menubar/themed.vue +195 -0
- package/dist/assets/examples/sources/number-input/basic.vue +20 -0
- package/dist/assets/examples/sources/number-input/bounds.vue +18 -0
- package/dist/assets/examples/sources/number-input/field.vue +34 -0
- package/dist/assets/examples/sources/number-input/form-locale.vue +29 -0
- package/dist/assets/examples/sources/number-input/order-limits.vue +221 -0
- package/dist/assets/examples/sources/number-input/ref.vue +26 -0
- package/dist/assets/examples/sources/number-input/themed.vue +20 -0
- package/dist/assets/examples/sources/pagination/basic.vue +54 -0
- package/dist/assets/examples/sources/pagination/controlled.vue +31 -0
- package/dist/assets/examples/sources/pagination/ellipsis.vue +29 -0
- package/dist/assets/examples/sources/pagination/themed.vue +52 -0
- package/dist/assets/examples/sources/popover/basic.vue +54 -0
- package/dist/assets/examples/sources/popover/controlled.vue +79 -0
- package/dist/assets/examples/sources/popover/share-settings.vue +457 -0
- package/dist/assets/examples/sources/popover/themed.vue +50 -0
- package/dist/assets/examples/sources/progress/basic.vue +25 -0
- package/dist/assets/examples/sources/progress/composable.vue +30 -0
- package/dist/assets/examples/sources/progress/indeterminate.vue +26 -0
- package/dist/assets/examples/sources/progress/themed.vue +30 -0
- package/dist/assets/examples/sources/progress/upload-queue.vue +173 -0
- package/dist/assets/examples/sources/progress/value-text.vue +29 -0
- package/dist/assets/examples/sources/radio-group/basic.vue +33 -0
- package/dist/assets/examples/sources/radio-group/deployment-tier.vue +258 -0
- package/dist/assets/examples/sources/radio-group/field.vue +49 -0
- package/dist/assets/examples/sources/radio-group/form.vue +45 -0
- package/dist/assets/examples/sources/radio-group/themed.vue +35 -0
- package/dist/assets/examples/sources/scroll-area/activity-feed.vue +183 -0
- package/dist/assets/examples/sources/scroll-area/basic.vue +24 -0
- package/dist/assets/examples/sources/scroll-area/composable.vue +24 -0
- package/dist/assets/examples/sources/scroll-area/horizontal.vue +25 -0
- package/dist/assets/examples/sources/scroll-area/themed.vue +38 -0
- package/dist/assets/examples/sources/scroll-spy/basic.vue +101 -0
- package/dist/assets/examples/sources/scroll-spy/composable.vue +63 -0
- package/dist/assets/examples/sources/scroll-spy/themed.vue +59 -0
- package/dist/assets/examples/sources/segmented-control/analytics-period.vue +187 -0
- package/dist/assets/examples/sources/segmented-control/basic.vue +50 -0
- package/dist/assets/examples/sources/segmented-control/themed.vue +14 -0
- package/dist/assets/examples/sources/select/basic.vue +173 -0
- package/dist/assets/examples/sources/select/billing-preferences.vue +386 -0
- package/dist/assets/examples/sources/select/field.vue +173 -0
- package/dist/assets/examples/sources/select/form.vue +166 -0
- package/dist/assets/examples/sources/select/themed.vue +74 -0
- package/dist/assets/examples/sources/separator/basic.vue +11 -0
- package/dist/assets/examples/sources/separator/composable.vue +13 -0
- package/dist/assets/examples/sources/separator/decorative.vue +11 -0
- package/dist/assets/examples/sources/separator/list.vue +12 -0
- package/dist/assets/examples/sources/separator/release-header.vue +116 -0
- package/dist/assets/examples/sources/separator/themed.vue +21 -0
- package/dist/assets/examples/sources/separator/vertical.vue +25 -0
- package/dist/assets/examples/sources/skeleton/basic.vue +9 -0
- package/dist/assets/examples/sources/skeleton/composable.vue +12 -0
- package/dist/assets/examples/sources/skeleton/profile-loading.vue +161 -0
- package/dist/assets/examples/sources/skeleton/table.vue +27 -0
- package/dist/assets/examples/sources/skeleton/themed.vue +25 -0
- package/dist/assets/examples/sources/slider/audio-mixer.vue +193 -0
- package/dist/assets/examples/sources/slider/basic.vue +51 -0
- package/dist/assets/examples/sources/slider/range.vue +52 -0
- package/dist/assets/examples/sources/slider/value-text.vue +50 -0
- package/dist/assets/examples/sources/slider/vertical.vue +21 -0
- package/dist/assets/examples/sources/spinner/basic.vue +37 -0
- package/dist/assets/examples/sources/spinner/composable.vue +41 -0
- package/dist/assets/examples/sources/spinner/sync-status.vue +105 -0
- package/dist/assets/examples/sources/spinner/table-refresh.vue +24 -0
- package/dist/assets/examples/sources/spinner/themed.vue +21 -0
- package/dist/assets/examples/sources/switch/basic.vue +55 -0
- package/dist/assets/examples/sources/switch/composable.vue +61 -0
- package/dist/assets/examples/sources/switch/form.vue +24 -0
- package/dist/assets/examples/sources/switch/ref.vue +64 -0
- package/dist/assets/examples/sources/switch/states.vue +23 -0
- package/dist/assets/examples/sources/switch/themed.vue +21 -0
- package/dist/assets/examples/sources/switch/workspace-security.vue +221 -0
- package/dist/assets/examples/sources/table/basic.vue +36 -0
- package/dist/assets/examples/sources/table/composable.vue +39 -0
- package/dist/assets/examples/sources/table/contain-horizontal.vue +73 -0
- package/dist/assets/examples/sources/table/row-headers.vue +31 -0
- package/dist/assets/examples/sources/table/team-directory.vue +445 -0
- package/dist/assets/examples/sources/table/themed.vue +70 -0
- package/dist/assets/examples/sources/tabs/basic.vue +41 -0
- package/dist/assets/examples/sources/tabs/manual.vue +37 -0
- package/dist/assets/examples/sources/tabs/themed.vue +45 -0
- package/dist/assets/examples/sources/tabs/vertical.vue +51 -0
- package/dist/assets/examples/sources/tabs/workspace.vue +517 -0
- package/dist/assets/examples/sources/textarea/auto-resize.vue +20 -0
- package/dist/assets/examples/sources/textarea/basic.vue +14 -0
- package/dist/assets/examples/sources/textarea/composable.vue +12 -0
- package/dist/assets/examples/sources/textarea/form.vue +23 -0
- package/dist/assets/examples/sources/textarea/ref.vue +25 -0
- package/dist/assets/examples/sources/textarea/release-notes.vue +191 -0
- package/dist/assets/examples/sources/textarea/states.vue +32 -0
- package/dist/assets/examples/sources/textarea/themed.vue +19 -0
- package/dist/assets/examples/sources/toast/basic.vue +54 -0
- package/dist/assets/examples/sources/toast/persist-error.vue +94 -0
- package/dist/assets/examples/sources/toast/queue-overflow.vue +90 -0
- package/dist/assets/examples/sources/toast/themed.vue +78 -0
- package/dist/assets/examples/sources/toggle-group/basic.vue +15 -0
- package/dist/assets/examples/sources/toggle-group/editor-toolbar.vue +126 -0
- package/dist/assets/examples/sources/toggle-group/multiple.vue +19 -0
- package/dist/assets/examples/sources/toggle-group/themed.vue +11 -0
- package/dist/assets/examples/sources/toolbar/basic.vue +11 -0
- package/dist/assets/examples/sources/toolbar/composable.vue +21 -0
- package/dist/assets/examples/sources/toolbar/editor-actions.vue +115 -0
- package/dist/assets/examples/sources/toolbar/separators.vue +32 -0
- package/dist/assets/examples/sources/toolbar/themed.vue +19 -0
- package/dist/assets/examples/sources/toolbar/vertical.vue +11 -0
- package/dist/assets/examples/sources/tooltip/basic.vue +47 -0
- package/dist/assets/examples/sources/tooltip/themed.vue +156 -0
- package/dist/assets/examples/sources/tooltip-provider/skip-delay.vue +69 -0
- package/dist/assets/examples/sources/tree/basic.vue +77 -0
- package/dist/assets/examples/sources/tree/multi-select.vue +88 -0
- package/dist/assets/examples/sources/tree/rtl.vue +34 -0
- package/dist/assets/examples/sources/tree/split-trigger.vue +47 -0
- package/dist/assets/examples/sources/tree/themed.vue +130 -0
- package/dist/assets/examples/sources/visually-hidden/action-bar.vue +100 -0
- package/dist/assets/examples/sources/visually-hidden/basic.vue +17 -0
- package/dist/assets/examples/sources/visually-hidden/composable.vue +19 -0
- package/dist/assets/examples/sources/visually-hidden/icon-name.vue +28 -0
- package/dist/assets/examples/sources/visually-hidden/live-region.vue +18 -0
- package/dist/assets/examples/sources/visually-hidden/skip-link.vue +12 -0
- package/dist/assets/examples/sources/visually-hidden/table-header.vue +27 -0
- package/dist/assets/manifest.schema.json +742 -0
- package/dist/assets/manifests/themes/ghost-accordion.manifest.json +52 -0
- package/dist/assets/manifests/themes/ghost-avatar.manifest.json +131 -0
- package/dist/assets/manifests/themes/ghost-badge.manifest.json +180 -0
- package/dist/assets/manifests/themes/ghost-breadcrumb.manifest.json +53 -0
- package/dist/assets/manifests/themes/ghost-button.manifest.json +396 -0
- package/dist/assets/manifests/themes/ghost-calendar.manifest.json +50 -0
- package/dist/assets/manifests/themes/ghost-card.manifest.json +104 -0
- package/dist/assets/manifests/themes/ghost-checkbox.manifest.json +241 -0
- package/dist/assets/manifests/themes/ghost-collapsible.manifest.json +113 -0
- package/dist/assets/manifests/themes/ghost-combobox.manifest.json +80 -0
- package/dist/assets/manifests/themes/ghost-command-palette.manifest.json +80 -0
- package/dist/assets/manifests/themes/ghost-context-menu.manifest.json +50 -0
- package/dist/assets/manifests/themes/ghost-data-table-preset.manifest.json +58 -0
- package/dist/assets/manifests/themes/ghost-data-table-table.manifest.json +30 -0
- package/dist/assets/manifests/themes/ghost-data-table.manifest.json +64 -0
- package/dist/assets/manifests/themes/ghost-date-picker.manifest.json +64 -0
- package/dist/assets/manifests/themes/ghost-dialog.manifest.json +184 -0
- package/dist/assets/manifests/themes/ghost-drawer.manifest.json +224 -0
- package/dist/assets/manifests/themes/ghost-dropdown-menu.manifest.json +131 -0
- package/dist/assets/manifests/themes/ghost-empty-state.manifest.json +96 -0
- package/dist/assets/manifests/themes/ghost-field.manifest.json +99 -0
- package/dist/assets/manifests/themes/ghost-file-upload.manifest.json +289 -0
- package/dist/assets/manifests/themes/ghost-hover-card.manifest.json +33 -0
- package/dist/assets/manifests/themes/ghost-inline-alert.manifest.json +70 -0
- package/dist/assets/manifests/themes/ghost-input.manifest.json +238 -0
- package/dist/assets/manifests/themes/ghost-interactive-surface.manifest.json +110 -0
- package/dist/assets/manifests/themes/ghost-kbd.manifest.json +148 -0
- package/dist/assets/manifests/themes/ghost-link.manifest.json +196 -0
- package/dist/assets/manifests/themes/ghost-menubar.manifest.json +51 -0
- package/dist/assets/manifests/themes/ghost-number-input.manifest.json +207 -0
- package/dist/assets/manifests/themes/ghost-pagination.manifest.json +76 -0
- package/dist/assets/manifests/themes/ghost-popover.manifest.json +147 -0
- package/dist/assets/manifests/themes/ghost-progress.manifest.json +140 -0
- package/dist/assets/manifests/themes/ghost-radio-group.manifest.json +60 -0
- package/dist/assets/manifests/themes/ghost-scroll-area.manifest.json +66 -0
- package/dist/assets/manifests/themes/ghost-scroll-spy.manifest.json +44 -0
- package/dist/assets/manifests/themes/ghost-segmented-control-item.manifest.json +64 -0
- package/dist/assets/manifests/themes/ghost-segmented-control.manifest.json +71 -0
- package/dist/assets/manifests/themes/ghost-select.manifest.json +66 -0
- package/dist/assets/manifests/themes/ghost-separator.manifest.json +66 -0
- package/dist/assets/manifests/themes/ghost-skeleton.manifest.json +98 -0
- package/dist/assets/manifests/themes/ghost-slider.manifest.json +119 -0
- package/dist/assets/manifests/themes/ghost-spinner.manifest.json +104 -0
- package/dist/assets/manifests/themes/ghost-switch.manifest.json +288 -0
- package/dist/assets/manifests/themes/ghost-table.manifest.json +60 -0
- package/dist/assets/manifests/themes/ghost-tabs.manifest.json +51 -0
- package/dist/assets/manifests/themes/ghost-textarea.manifest.json +238 -0
- package/dist/assets/manifests/themes/ghost-toast.manifest.json +121 -0
- package/dist/assets/manifests/themes/ghost-toggle-group-item.manifest.json +65 -0
- package/dist/assets/manifests/themes/ghost-toggle-group.manifest.json +67 -0
- package/dist/assets/manifests/themes/ghost-toolbar.manifest.json +111 -0
- package/dist/assets/manifests/themes/ghost-tooltip.manifest.json +113 -0
- package/dist/assets/manifests/themes/ghost-tree.manifest.json +295 -0
- package/dist/assets/manifests/vue/ghost-accordion-content.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-accordion-item.manifest.json +47 -0
- package/dist/assets/manifests/vue/ghost-accordion-trigger.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-accordion.manifest.json +171 -0
- package/dist/assets/manifests/vue/ghost-avatar.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-badge.manifest.json +53 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-ellipsis.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-item.manifest.json +57 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-link.manifest.json +71 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-list.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-page.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb-separator.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-breadcrumb.manifest.json +82 -0
- package/dist/assets/manifests/vue/ghost-button.manifest.json +109 -0
- package/dist/assets/manifests/vue/ghost-calendar-cell.manifest.json +107 -0
- package/dist/assets/manifests/vue/ghost-calendar-grid.manifest.json +105 -0
- package/dist/assets/manifests/vue/ghost-calendar-header.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar-heading.manifest.json +70 -0
- package/dist/assets/manifests/vue/ghost-calendar-next-button.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar-prev-button.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-calendar.manifest.json +173 -0
- package/dist/assets/manifests/vue/ghost-card.manifest.json +107 -0
- package/dist/assets/manifests/vue/ghost-checkbox.manifest.json +134 -0
- package/dist/assets/manifests/vue/ghost-collapsible-content.manifest.json +81 -0
- package/dist/assets/manifests/vue/ghost-collapsible-trigger.manifest.json +81 -0
- package/dist/assets/manifests/vue/ghost-collapsible.manifest.json +99 -0
- package/dist/assets/manifests/vue/ghost-combobox-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-combobox-empty.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-input.manifest.json +61 -0
- package/dist/assets/manifests/vue/ghost-combobox-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-combobox-option.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-combobox-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-combobox.manifest.json +323 -0
- package/dist/assets/manifests/vue/ghost-command-palette-content.manifest.json +138 -0
- package/dist/assets/manifests/vue/ghost-command-palette-empty.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-group.manifest.json +71 -0
- package/dist/assets/manifests/vue/ghost-command-palette-input.manifest.json +88 -0
- package/dist/assets/manifests/vue/ghost-command-palette-item.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-command-palette-label.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-list.manifest.json +72 -0
- package/dist/assets/manifests/vue/ghost-command-palette-overlay.manifest.json +92 -0
- package/dist/assets/manifests/vue/ghost-command-palette-separator.manifest.json +63 -0
- package/dist/assets/manifests/vue/ghost-command-palette-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-command-palette-trigger.manifest.json +89 -0
- package/dist/assets/manifests/vue/ghost-command-palette.manifest.json +359 -0
- package/dist/assets/manifests/vue/ghost-context-menu-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-context-menu-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-context-menu-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-context-menu-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-context-menu-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-context-menu-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-context-menu-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-context-menu-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-context-menu-trigger.manifest.json +75 -0
- package/dist/assets/manifests/vue/ghost-context-menu.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-data-table-preset.manifest.json +171 -0
- package/dist/assets/manifests/vue/ghost-data-table-table.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-data-table.manifest.json +287 -0
- package/dist/assets/manifests/vue/ghost-date-picker-calendar.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-date-picker-content.manifest.json +131 -0
- package/dist/assets/manifests/vue/ghost-date-picker-input.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-date-picker-trigger.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-date-picker.manifest.json +352 -0
- package/dist/assets/manifests/vue/ghost-dialog-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-dialog-content.manifest.json +141 -0
- package/dist/assets/manifests/vue/ghost-dialog-description.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dialog-overlay.manifest.json +90 -0
- package/dist/assets/manifests/vue/ghost-dialog-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dialog-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-dialog.manifest.json +125 -0
- package/dist/assets/manifests/vue/ghost-drawer-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-drawer-content.manifest.json +137 -0
- package/dist/assets/manifests/vue/ghost-drawer-description.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-drawer-overlay.manifest.json +90 -0
- package/dist/assets/manifests/vue/ghost-drawer-title.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-drawer-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-drawer.manifest.json +149 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-dropdown-menu.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-empty-state.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-field-control.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-field-description.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-field-error.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-field-label.manifest.json +83 -0
- package/dist/assets/manifests/vue/ghost-field.manifest.json +109 -0
- package/dist/assets/manifests/vue/ghost-file-upload-dropzone.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-file-upload-item-remove.manifest.json +65 -0
- package/dist/assets/manifests/vue/ghost-file-upload-item.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-file-upload-list.manifest.json +50 -0
- package/dist/assets/manifests/vue/ghost-file-upload-trigger.manifest.json +82 -0
- package/dist/assets/manifests/vue/ghost-file-upload.manifest.json +247 -0
- package/dist/assets/manifests/vue/ghost-hover-card-content.manifest.json +121 -0
- package/dist/assets/manifests/vue/ghost-hover-card-trigger.manifest.json +76 -0
- package/dist/assets/manifests/vue/ghost-hover-card.manifest.json +99 -0
- package/dist/assets/manifests/vue/ghost-inline-alert.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-input.manifest.json +132 -0
- package/dist/assets/manifests/vue/ghost-interactive-surface.manifest.json +101 -0
- package/dist/assets/manifests/vue/ghost-kbd.manifest.json +66 -0
- package/dist/assets/manifests/vue/ghost-link.manifest.json +112 -0
- package/dist/assets/manifests/vue/ghost-menubar-checkbox-item.manifest.json +110 -0
- package/dist/assets/manifests/vue/ghost-menubar-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-menubar-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-menubar-item.manifest.json +85 -0
- package/dist/assets/manifests/vue/ghost-menubar-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-menubar-menu.manifest.json +65 -0
- package/dist/assets/manifests/vue/ghost-menubar-radio-group.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-menubar-radio-item.manifest.json +97 -0
- package/dist/assets/manifests/vue/ghost-menubar-separator.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-menubar-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-menubar.manifest.json +62 -0
- package/dist/assets/manifests/vue/ghost-number-input.manifest.json +205 -0
- package/dist/assets/manifests/vue/ghost-pagination.manifest.json +249 -0
- package/dist/assets/manifests/vue/ghost-popover-close.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-popover-content.manifest.json +134 -0
- package/dist/assets/manifests/vue/ghost-popover-trigger.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-popover.manifest.json +103 -0
- package/dist/assets/manifests/vue/ghost-portal.manifest.json +56 -0
- package/dist/assets/manifests/vue/ghost-progress.manifest.json +77 -0
- package/dist/assets/manifests/vue/ghost-radio-group-item.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-radio-group.manifest.json +148 -0
- package/dist/assets/manifests/vue/ghost-scroll-area.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-item.manifest.json +60 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-link.manifest.json +98 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy-list.manifest.json +52 -0
- package/dist/assets/manifests/vue/ghost-scroll-spy.manifest.json +244 -0
- package/dist/assets/manifests/vue/ghost-segmented-control-indicator.manifest.json +25 -0
- package/dist/assets/manifests/vue/ghost-segmented-control-item.manifest.json +91 -0
- package/dist/assets/manifests/vue/ghost-segmented-control.manifest.json +147 -0
- package/dist/assets/manifests/vue/ghost-select-content.manifest.json +114 -0
- package/dist/assets/manifests/vue/ghost-select-group.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-select-label.manifest.json +40 -0
- package/dist/assets/manifests/vue/ghost-select-option.manifest.json +80 -0
- package/dist/assets/manifests/vue/ghost-select-trigger.manifest.json +67 -0
- package/dist/assets/manifests/vue/ghost-select-value.manifest.json +36 -0
- package/dist/assets/manifests/vue/ghost-select.manifest.json +188 -0
- package/dist/assets/manifests/vue/ghost-separator.manifest.json +70 -0
- package/dist/assets/manifests/vue/ghost-skeleton.manifest.json +52 -0
- package/dist/assets/manifests/vue/ghost-slider.manifest.json +297 -0
- package/dist/assets/manifests/vue/ghost-spinner.manifest.json +42 -0
- package/dist/assets/manifests/vue/ghost-switch.manifest.json +183 -0
- package/dist/assets/manifests/vue/ghost-table-body.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-caption.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-cell.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-foot.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-head.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table-header-cell.manifest.json +51 -0
- package/dist/assets/manifests/vue/ghost-table-row.manifest.json +38 -0
- package/dist/assets/manifests/vue/ghost-table.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-tabs-content.manifest.json +66 -0
- package/dist/assets/manifests/vue/ghost-tabs-list.manifest.json +59 -0
- package/dist/assets/manifests/vue/ghost-tabs-trigger.manifest.json +74 -0
- package/dist/assets/manifests/vue/ghost-tabs.manifest.json +99 -0
- package/dist/assets/manifests/vue/ghost-textarea.manifest.json +147 -0
- package/dist/assets/manifests/vue/ghost-toast-action.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-toast-close.manifest.json +69 -0
- package/dist/assets/manifests/vue/ghost-toast-description.manifest.json +48 -0
- package/dist/assets/manifests/vue/ghost-toast-provider.manifest.json +61 -0
- package/dist/assets/manifests/vue/ghost-toast-title.manifest.json +48 -0
- package/dist/assets/manifests/vue/ghost-toast-viewport.manifest.json +102 -0
- package/dist/assets/manifests/vue/ghost-toast.manifest.json +73 -0
- package/dist/assets/manifests/vue/ghost-toggle-group-item.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-toggle-group.manifest.json +135 -0
- package/dist/assets/manifests/vue/ghost-toolbar.manifest.json +118 -0
- package/dist/assets/manifests/vue/ghost-tooltip-content.manifest.json +131 -0
- package/dist/assets/manifests/vue/ghost-tooltip-provider.manifest.json +55 -0
- package/dist/assets/manifests/vue/ghost-tooltip-trigger.manifest.json +90 -0
- package/dist/assets/manifests/vue/ghost-tooltip.manifest.json +93 -0
- package/dist/assets/manifests/vue/ghost-tree-group.manifest.json +119 -0
- package/dist/assets/manifests/vue/ghost-tree-item.manifest.json +286 -0
- package/dist/assets/manifests/vue/ghost-tree-trigger.manifest.json +148 -0
- package/dist/assets/manifests/vue/ghost-tree.manifest.json +341 -0
- package/dist/assets/manifests/vue/ghost-visually-hidden.manifest.json +73 -0
- package/dist/assets/tokens.json +6137 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +11 -0
- package/dist/cli.d.ts +30 -0
- package/dist/cli.js +54 -0
- package/dist/components.d.ts +15 -0
- package/dist/components.js +402 -0
- package/dist/contract.d.ts +28 -0
- package/dist/contract.js +15 -0
- package/dist/docs-index.d.ts +84 -0
- package/dist/docs-index.js +230 -0
- package/dist/errors.d.ts +54 -0
- package/dist/errors.js +66 -0
- package/dist/get-examples.d.ts +30 -0
- package/dist/get-examples.js +269 -0
- package/dist/get-tokens.d.ts +27 -0
- package/dist/get-tokens.js +217 -0
- package/dist/identity.d.ts +42 -0
- package/dist/identity.js +99 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +16 -0
- package/dist/search-docs.d.ts +24 -0
- package/dist/search-docs.js +132 -0
- package/dist/server.d.ts +81 -0
- package/dist/server.js +75 -0
- package/dist/tool.d.ts +66 -0
- package/dist/tool.js +130 -0
- package/package.json +50 -4
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, nextTick, reactive, ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostAvatar,
|
|
6
|
+
GhostButton,
|
|
7
|
+
GhostCard,
|
|
8
|
+
GhostDialog,
|
|
9
|
+
GhostDialogClose,
|
|
10
|
+
GhostDialogContent,
|
|
11
|
+
GhostDialogDescription,
|
|
12
|
+
GhostDialogOverlay,
|
|
13
|
+
GhostDialogTitle,
|
|
14
|
+
GhostDialogTrigger,
|
|
15
|
+
GhostField,
|
|
16
|
+
GhostFieldControl,
|
|
17
|
+
GhostFieldDescription,
|
|
18
|
+
GhostFieldError,
|
|
19
|
+
GhostFieldLabel,
|
|
20
|
+
GhostInput,
|
|
21
|
+
GhostTextarea,
|
|
22
|
+
} from '@ghostvue/themes'
|
|
23
|
+
|
|
24
|
+
interface Profile {
|
|
25
|
+
name: string
|
|
26
|
+
title: string
|
|
27
|
+
email: string
|
|
28
|
+
bio: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Deterministic seed data. The saved profile only changes on a valid Save;
|
|
33
|
+
* the dialog edits a draft copy so Cancel, Escape, and a backdrop click all
|
|
34
|
+
* leave the card exactly as it was.
|
|
35
|
+
*/
|
|
36
|
+
const profile = reactive<Profile>({
|
|
37
|
+
name: 'Ada Lovelace',
|
|
38
|
+
title: 'Research engineer',
|
|
39
|
+
email: 'ada@analytical-engines.example',
|
|
40
|
+
bio: 'Writes the notes that turn the Analytical Engine from a calculator into a general-purpose machine. Currently documenting loops and conditional branching for the next release.',
|
|
41
|
+
})
|
|
42
|
+
const draft = reactive<Profile>({ ...profile })
|
|
43
|
+
const bioLimit = 280
|
|
44
|
+
|
|
45
|
+
const open = ref(false)
|
|
46
|
+
const status = ref('')
|
|
47
|
+
const submitted = ref(false)
|
|
48
|
+
|
|
49
|
+
const nameInvalid = computed(() => draft.name.trim() === '')
|
|
50
|
+
// A deliberately small check: the browser still runs native email validation.
|
|
51
|
+
const emailInvalid = computed(
|
|
52
|
+
() => !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(draft.email.trim()),
|
|
53
|
+
)
|
|
54
|
+
// Errors appear after the first Save attempt, then update as the user types.
|
|
55
|
+
const showNameError = computed(() => submitted.value && nameInvalid.value)
|
|
56
|
+
const showEmailError = computed(() => submitted.value && emailInvalid.value)
|
|
57
|
+
const dirty = computed(() =>
|
|
58
|
+
(Object.keys(profile) as (keyof Profile)[]).some(
|
|
59
|
+
(key) => profile[key] !== draft[key].trim(),
|
|
60
|
+
),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
function setOpen(next: boolean): void {
|
|
64
|
+
if (next) {
|
|
65
|
+
// Every session starts from the saved profile, never a stale draft.
|
|
66
|
+
Object.assign(draft, profile)
|
|
67
|
+
submitted.value = false
|
|
68
|
+
status.value = ''
|
|
69
|
+
} else if (dirty.value) {
|
|
70
|
+
status.value = 'Edits discarded.'
|
|
71
|
+
}
|
|
72
|
+
open.value = next
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function save(event: SubmitEvent): Promise<void> {
|
|
76
|
+
submitted.value = true
|
|
77
|
+
if (nameInvalid.value || emailInvalid.value) {
|
|
78
|
+
// Keep the dialog open and move focus to the first field that needs work,
|
|
79
|
+
// once the errors have rendered and set aria-invalid.
|
|
80
|
+
const form = event.currentTarget
|
|
81
|
+
if (!(form instanceof HTMLFormElement)) return
|
|
82
|
+
await nextTick()
|
|
83
|
+
form.querySelector<HTMLElement>('[aria-invalid="true"]')?.focus()
|
|
84
|
+
return
|
|
85
|
+
}
|
|
86
|
+
const changed = dirty.value
|
|
87
|
+
Object.assign(profile, {
|
|
88
|
+
name: draft.name.trim(),
|
|
89
|
+
title: draft.title.trim(),
|
|
90
|
+
email: draft.email.trim(),
|
|
91
|
+
bio: draft.bio.trim(),
|
|
92
|
+
})
|
|
93
|
+
status.value = changed ? 'Profile saved.' : 'No changes to save.'
|
|
94
|
+
// Closing through state returns focus to the Edit profile trigger.
|
|
95
|
+
open.value = false
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<template>
|
|
100
|
+
<GhostCard class="profile">
|
|
101
|
+
<template #header>
|
|
102
|
+
<div class="profile__header">
|
|
103
|
+
<GhostAvatar :name="profile.name" size="lg" />
|
|
104
|
+
<div class="profile__identity">
|
|
105
|
+
<h2 class="profile__name">{{ profile.name }}</h2>
|
|
106
|
+
<p class="profile__meta">{{ profile.title }}</p>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</template>
|
|
110
|
+
|
|
111
|
+
<dl class="profile__details">
|
|
112
|
+
<div class="profile__detail">
|
|
113
|
+
<dt>Work email</dt>
|
|
114
|
+
<dd>{{ profile.email }}</dd>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="profile__detail">
|
|
117
|
+
<dt>Bio</dt>
|
|
118
|
+
<dd>{{ profile.bio }}</dd>
|
|
119
|
+
</div>
|
|
120
|
+
</dl>
|
|
121
|
+
|
|
122
|
+
<template #footer>
|
|
123
|
+
<div class="profile__actions">
|
|
124
|
+
<p class="profile__status" role="status">{{ status }}</p>
|
|
125
|
+
<GhostDialog :open="open" @update:open="setOpen">
|
|
126
|
+
<GhostDialogTrigger :as="GhostButton" variant="outline">
|
|
127
|
+
Edit profile
|
|
128
|
+
</GhostDialogTrigger>
|
|
129
|
+
<GhostDialogOverlay />
|
|
130
|
+
<GhostDialogContent>
|
|
131
|
+
<div class="profile-dialog__header">
|
|
132
|
+
<GhostDialogTitle>Edit profile</GhostDialogTitle>
|
|
133
|
+
<GhostDialogDescription>
|
|
134
|
+
Your name, title, and bio appear on shared reports and workspace
|
|
135
|
+
invitations.
|
|
136
|
+
</GhostDialogDescription>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<form
|
|
140
|
+
class="profile-dialog__form"
|
|
141
|
+
novalidate
|
|
142
|
+
@submit.prevent="save"
|
|
143
|
+
>
|
|
144
|
+
<div class="profile-dialog__row">
|
|
145
|
+
<GhostField required :invalid="showNameError">
|
|
146
|
+
<GhostFieldLabel required>Full name</GhostFieldLabel>
|
|
147
|
+
<GhostFieldControl v-slot="field">
|
|
148
|
+
<GhostInput
|
|
149
|
+
v-bind="field"
|
|
150
|
+
v-model="draft.name"
|
|
151
|
+
name="name"
|
|
152
|
+
autocomplete="name"
|
|
153
|
+
block
|
|
154
|
+
/>
|
|
155
|
+
</GhostFieldControl>
|
|
156
|
+
<GhostFieldError v-if="showNameError">
|
|
157
|
+
Enter your name.
|
|
158
|
+
</GhostFieldError>
|
|
159
|
+
</GhostField>
|
|
160
|
+
|
|
161
|
+
<GhostField>
|
|
162
|
+
<GhostFieldLabel>Job title</GhostFieldLabel>
|
|
163
|
+
<GhostFieldControl v-slot="field">
|
|
164
|
+
<GhostInput
|
|
165
|
+
v-bind="field"
|
|
166
|
+
v-model="draft.title"
|
|
167
|
+
name="title"
|
|
168
|
+
autocomplete="organization-title"
|
|
169
|
+
block
|
|
170
|
+
/>
|
|
171
|
+
</GhostFieldControl>
|
|
172
|
+
</GhostField>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<GhostField required :invalid="showEmailError">
|
|
176
|
+
<GhostFieldLabel required>Work email</GhostFieldLabel>
|
|
177
|
+
<GhostFieldDescription>
|
|
178
|
+
Sign-in links and report digests go here.
|
|
179
|
+
</GhostFieldDescription>
|
|
180
|
+
<GhostFieldControl v-slot="field">
|
|
181
|
+
<GhostInput
|
|
182
|
+
v-bind="field"
|
|
183
|
+
v-model="draft.email"
|
|
184
|
+
type="email"
|
|
185
|
+
name="email"
|
|
186
|
+
autocomplete="email"
|
|
187
|
+
block
|
|
188
|
+
/>
|
|
189
|
+
</GhostFieldControl>
|
|
190
|
+
<GhostFieldError v-if="showEmailError">
|
|
191
|
+
Enter an address like name@company.com.
|
|
192
|
+
</GhostFieldError>
|
|
193
|
+
</GhostField>
|
|
194
|
+
|
|
195
|
+
<GhostField>
|
|
196
|
+
<GhostFieldLabel>Bio</GhostFieldLabel>
|
|
197
|
+
<GhostFieldDescription>
|
|
198
|
+
{{ draft.bio.length }} of {{ bioLimit }} characters.
|
|
199
|
+
</GhostFieldDescription>
|
|
200
|
+
<GhostFieldControl v-slot="field">
|
|
201
|
+
<GhostTextarea
|
|
202
|
+
v-bind="field"
|
|
203
|
+
v-model="draft.bio"
|
|
204
|
+
name="bio"
|
|
205
|
+
:maxlength="bioLimit"
|
|
206
|
+
:rows="3"
|
|
207
|
+
:max-rows="6"
|
|
208
|
+
auto-resize
|
|
209
|
+
/>
|
|
210
|
+
</GhostFieldControl>
|
|
211
|
+
</GhostField>
|
|
212
|
+
|
|
213
|
+
<div class="profile-dialog__actions">
|
|
214
|
+
<GhostDialogClose
|
|
215
|
+
:as="GhostButton"
|
|
216
|
+
variant="soft"
|
|
217
|
+
tone="neutral"
|
|
218
|
+
>
|
|
219
|
+
Cancel
|
|
220
|
+
</GhostDialogClose>
|
|
221
|
+
<GhostButton type="submit">Save changes</GhostButton>
|
|
222
|
+
</div>
|
|
223
|
+
</form>
|
|
224
|
+
</GhostDialogContent>
|
|
225
|
+
</GhostDialog>
|
|
226
|
+
</div>
|
|
227
|
+
</template>
|
|
228
|
+
</GhostCard>
|
|
229
|
+
</template>
|
|
230
|
+
|
|
231
|
+
<style scoped>
|
|
232
|
+
/*
|
|
233
|
+
* The card owns its width: 32rem keeps the details at a readable measure and
|
|
234
|
+
* lets the card shrink with the preview on phones.
|
|
235
|
+
*/
|
|
236
|
+
.profile {
|
|
237
|
+
max-inline-size: 32rem;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.profile__header {
|
|
241
|
+
align-items: center;
|
|
242
|
+
display: flex;
|
|
243
|
+
gap: var(--ghost-space-gap-md);
|
|
244
|
+
min-inline-size: 0;
|
|
245
|
+
padding-block-end: var(--ghost-space-stack-sm);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.profile__identity {
|
|
249
|
+
display: grid;
|
|
250
|
+
gap: var(--ghost-space-gap-xs);
|
|
251
|
+
min-inline-size: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Native text picks up docs prose styles, so each element resets its own. */
|
|
255
|
+
.profile__name {
|
|
256
|
+
color: var(--ghost-text-default);
|
|
257
|
+
font-size: var(--ghost-type-size-lg);
|
|
258
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
259
|
+
line-height: var(--ghost-type-line-tight);
|
|
260
|
+
margin: 0;
|
|
261
|
+
overflow-wrap: anywhere;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.profile__meta,
|
|
265
|
+
.profile__status {
|
|
266
|
+
color: var(--ghost-text-muted);
|
|
267
|
+
font-size: var(--ghost-type-size-sm);
|
|
268
|
+
line-height: var(--ghost-type-line-snug);
|
|
269
|
+
margin: 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.profile__details {
|
|
273
|
+
display: grid;
|
|
274
|
+
gap: var(--ghost-space-stack-sm);
|
|
275
|
+
margin: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.profile__detail {
|
|
279
|
+
display: grid;
|
|
280
|
+
gap: var(--ghost-space-gap-xs);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.profile__detail dt {
|
|
284
|
+
color: var(--ghost-text-muted);
|
|
285
|
+
font-size: var(--ghost-type-size-xs);
|
|
286
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
287
|
+
line-height: var(--ghost-type-line-snug);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.profile__detail dd {
|
|
291
|
+
color: var(--ghost-text-default);
|
|
292
|
+
font-size: var(--ghost-type-size-sm);
|
|
293
|
+
line-height: var(--ghost-type-line-normal);
|
|
294
|
+
margin: 0;
|
|
295
|
+
overflow-wrap: anywhere;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* Give labels their own column when the preview has room for the values. */
|
|
299
|
+
@container ghost-demo (min-width: 26rem) {
|
|
300
|
+
.profile__detail {
|
|
301
|
+
align-items: baseline;
|
|
302
|
+
grid-template-columns: 5rem minmax(0, 1fr);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.profile__actions {
|
|
307
|
+
align-items: center;
|
|
308
|
+
display: flex;
|
|
309
|
+
flex-wrap: wrap;
|
|
310
|
+
gap: var(--ghost-space-gap-sm) var(--ghost-space-gap-md);
|
|
311
|
+
justify-content: flex-end;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.profile__status {
|
|
315
|
+
flex: 1 1 auto;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.profile-dialog__header {
|
|
319
|
+
display: grid;
|
|
320
|
+
gap: var(--ghost-space-gap-xs);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.profile-dialog__form {
|
|
324
|
+
display: grid;
|
|
325
|
+
gap: var(--ghost-space-stack-lg);
|
|
326
|
+
margin: 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Two names share a row when each can keep about 11rem; otherwise they stack. */
|
|
330
|
+
.profile-dialog__row {
|
|
331
|
+
display: grid;
|
|
332
|
+
gap: var(--ghost-space-stack-lg) var(--ghost-space-gap-md);
|
|
333
|
+
grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.profile-dialog__form :deep([data-part='description']),
|
|
337
|
+
.profile-dialog__form :deep([data-part='error']) {
|
|
338
|
+
overflow-wrap: anywhere;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.profile-dialog__actions {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-wrap: wrap;
|
|
344
|
+
gap: var(--ghost-space-gap-sm);
|
|
345
|
+
justify-content: flex-end;
|
|
346
|
+
}
|
|
347
|
+
</style>
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostDialog,
|
|
7
|
+
GhostDialogClose,
|
|
8
|
+
type GhostDialogCloseExposed,
|
|
9
|
+
GhostDialogContent,
|
|
10
|
+
GhostDialogDescription,
|
|
11
|
+
GhostDialogOverlay,
|
|
12
|
+
GhostDialogTitle,
|
|
13
|
+
GhostDialogTrigger,
|
|
14
|
+
} from '@ghostvue/themes'
|
|
15
|
+
|
|
16
|
+
// The share link is local state, so revoking it is a visible, repeatable result.
|
|
17
|
+
const linkActive = ref(true)
|
|
18
|
+
const confirmOpen = ref(false)
|
|
19
|
+
const done = ref<GhostDialogCloseExposed | null>(null)
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Revoking disables the inner dialog's opener, so focus cannot go back to it.
|
|
23
|
+
* Send it to Done instead; returning null keeps the default (the opener).
|
|
24
|
+
*/
|
|
25
|
+
function revokeReturnFocus(): HTMLElement | null {
|
|
26
|
+
return linkActive.value ? null : (done.value?.element ?? null)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function revoke(): void {
|
|
30
|
+
linkActive.value = false
|
|
31
|
+
confirmOpen.value = false
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<GhostDialog>
|
|
37
|
+
<GhostDialogTrigger :as="GhostButton" variant="outline">
|
|
38
|
+
Share report
|
|
39
|
+
</GhostDialogTrigger>
|
|
40
|
+
<GhostDialogOverlay />
|
|
41
|
+
<GhostDialogContent>
|
|
42
|
+
<GhostDialogTitle>Share Q3 revenue report</GhostDialogTitle>
|
|
43
|
+
<GhostDialogDescription>
|
|
44
|
+
Pressing Escape while the confirmation is open closes only the inner
|
|
45
|
+
dialog.
|
|
46
|
+
</GhostDialogDescription>
|
|
47
|
+
<p class="share-status" role="status">
|
|
48
|
+
{{ linkActive ? 'Anyone with the link can view.' : 'Link revoked.' }}
|
|
49
|
+
</p>
|
|
50
|
+
<div class="share-actions">
|
|
51
|
+
<GhostDialog v-model:open="confirmOpen">
|
|
52
|
+
<GhostDialogTrigger
|
|
53
|
+
:as="GhostButton"
|
|
54
|
+
variant="soft"
|
|
55
|
+
tone="danger"
|
|
56
|
+
:disabled="!linkActive"
|
|
57
|
+
>
|
|
58
|
+
Revoke link
|
|
59
|
+
</GhostDialogTrigger>
|
|
60
|
+
<GhostDialogOverlay />
|
|
61
|
+
<GhostDialogContent
|
|
62
|
+
role="alertdialog"
|
|
63
|
+
:return-focus="revokeReturnFocus"
|
|
64
|
+
>
|
|
65
|
+
<GhostDialogTitle>Revoke the share link?</GhostDialogTitle>
|
|
66
|
+
<GhostDialogDescription>
|
|
67
|
+
People who open the old link will see an access request page.
|
|
68
|
+
</GhostDialogDescription>
|
|
69
|
+
<div class="share-actions">
|
|
70
|
+
<GhostDialogClose :as="GhostButton" variant="soft" tone="neutral">
|
|
71
|
+
Keep link
|
|
72
|
+
</GhostDialogClose>
|
|
73
|
+
<GhostButton tone="danger" @click="revoke">Revoke</GhostButton>
|
|
74
|
+
</div>
|
|
75
|
+
</GhostDialogContent>
|
|
76
|
+
</GhostDialog>
|
|
77
|
+
|
|
78
|
+
<GhostDialogClose ref="done" :as="GhostButton">Done</GhostDialogClose>
|
|
79
|
+
</div>
|
|
80
|
+
</GhostDialogContent>
|
|
81
|
+
</GhostDialog>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<style scoped>
|
|
85
|
+
.share-status {
|
|
86
|
+
color: var(--ghost-text-default);
|
|
87
|
+
font-size: var(--ghost-type-size-sm);
|
|
88
|
+
line-height: var(--ghost-type-line-snug);
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.share-actions {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
gap: var(--ghost-space-gap-sm);
|
|
96
|
+
justify-content: flex-end;
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
GhostButton,
|
|
4
|
+
GhostDialog,
|
|
5
|
+
GhostDialogClose,
|
|
6
|
+
GhostDialogContent,
|
|
7
|
+
GhostDialogDescription,
|
|
8
|
+
GhostDialogOverlay,
|
|
9
|
+
GhostDialogTitle,
|
|
10
|
+
GhostDialogTrigger,
|
|
11
|
+
} from '@ghostvue/themes'
|
|
12
|
+
|
|
13
|
+
// Deterministic release notes, long enough to overflow a phone viewport.
|
|
14
|
+
const changes = [
|
|
15
|
+
{
|
|
16
|
+
title: 'Shared reports',
|
|
17
|
+
body: 'Reports can be shared with a link that expires after 30 days. Owners can revoke a link at any time from the report menu.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: 'Faster search',
|
|
21
|
+
body: 'Workspace search now indexes comments and attachments, and returns the first results while the rest are still loading.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'Keyboard shortcuts',
|
|
25
|
+
body: 'Press ? anywhere to list every shortcut. Shortcuts follow your keyboard layout, including right-to-left layouts.',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: 'Audit log export',
|
|
29
|
+
body: 'Admins can export up to 12 months of audit events as CSV. Large exports are prepared in the background and emailed when ready.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'Retired: legacy embeds',
|
|
33
|
+
body: 'Embeds created before version 3 stop rendering next month. Replace them with the new embed code from the share menu.',
|
|
34
|
+
},
|
|
35
|
+
] as const
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<GhostDialog>
|
|
40
|
+
<GhostDialogTrigger :as="GhostButton" variant="outline">
|
|
41
|
+
What's new in 4.2
|
|
42
|
+
</GhostDialogTrigger>
|
|
43
|
+
<GhostDialogOverlay />
|
|
44
|
+
<GhostDialogContent class="notes-dialog">
|
|
45
|
+
<div class="notes-dialog__header">
|
|
46
|
+
<GhostDialogTitle>What's new in 4.2</GhostDialogTitle>
|
|
47
|
+
<GhostDialogDescription>
|
|
48
|
+
Five changes since the last release. The dialog scrolls when the notes
|
|
49
|
+
are taller than the viewport.
|
|
50
|
+
</GhostDialogDescription>
|
|
51
|
+
</div>
|
|
52
|
+
<ul class="notes-dialog__list">
|
|
53
|
+
<li v-for="change in changes" :key="change.title">
|
|
54
|
+
<h3 class="notes-dialog__item-title">{{ change.title }}</h3>
|
|
55
|
+
<p class="notes-dialog__item-body">{{ change.body }}</p>
|
|
56
|
+
</li>
|
|
57
|
+
</ul>
|
|
58
|
+
<div class="notes-dialog__actions">
|
|
59
|
+
<GhostDialogClose :as="GhostButton">Got it</GhostDialogClose>
|
|
60
|
+
</div>
|
|
61
|
+
</GhostDialogContent>
|
|
62
|
+
</GhostDialog>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<style scoped>
|
|
66
|
+
.notes-dialog__header {
|
|
67
|
+
display: grid;
|
|
68
|
+
gap: var(--ghost-space-gap-xs);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.notes-dialog__list {
|
|
72
|
+
display: grid;
|
|
73
|
+
gap: var(--ghost-space-stack-md);
|
|
74
|
+
list-style: none;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.notes-dialog__item-title {
|
|
80
|
+
color: var(--ghost-text-default);
|
|
81
|
+
font-size: var(--ghost-type-size-sm);
|
|
82
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
83
|
+
line-height: var(--ghost-type-line-snug);
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.notes-dialog__item-body {
|
|
88
|
+
color: var(--ghost-text-muted);
|
|
89
|
+
font-size: var(--ghost-type-size-sm);
|
|
90
|
+
line-height: var(--ghost-type-line-normal);
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.notes-dialog__actions {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: flex-end;
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
GhostDrawer,
|
|
4
|
+
GhostDrawerClose,
|
|
5
|
+
GhostDrawerContent,
|
|
6
|
+
GhostDrawerDescription,
|
|
7
|
+
GhostDrawerOverlay,
|
|
8
|
+
GhostDrawerTitle,
|
|
9
|
+
GhostDrawerTrigger,
|
|
10
|
+
} from '@ghostvue/vue'
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<GhostDrawer>
|
|
15
|
+
<GhostDrawerTrigger>Open filters</GhostDrawerTrigger>
|
|
16
|
+
<GhostDrawerOverlay />
|
|
17
|
+
<GhostDrawerContent>
|
|
18
|
+
<GhostDrawerTitle>Filters</GhostDrawerTitle>
|
|
19
|
+
<GhostDrawerDescription>
|
|
20
|
+
Narrow the order list by status and region.
|
|
21
|
+
</GhostDrawerDescription>
|
|
22
|
+
<GhostDrawerClose>Close</GhostDrawerClose>
|
|
23
|
+
</GhostDrawerContent>
|
|
24
|
+
</GhostDrawer>
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
GhostButton,
|
|
4
|
+
GhostDialog,
|
|
5
|
+
GhostDialogClose,
|
|
6
|
+
GhostDialogContent,
|
|
7
|
+
GhostDialogDescription,
|
|
8
|
+
GhostDialogOverlay,
|
|
9
|
+
GhostDialogTitle,
|
|
10
|
+
GhostDialogTrigger,
|
|
11
|
+
GhostDrawer,
|
|
12
|
+
GhostDrawerClose,
|
|
13
|
+
GhostDrawerContent,
|
|
14
|
+
GhostDrawerDescription,
|
|
15
|
+
GhostDrawerOverlay,
|
|
16
|
+
GhostDrawerTitle,
|
|
17
|
+
GhostDrawerTrigger,
|
|
18
|
+
} from '@ghostvue/themes'
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<GhostDrawer>
|
|
23
|
+
<GhostDrawerTrigger :as="GhostButton" variant="outline">
|
|
24
|
+
Edit filters
|
|
25
|
+
</GhostDrawerTrigger>
|
|
26
|
+
<GhostDrawerOverlay />
|
|
27
|
+
<GhostDrawerContent>
|
|
28
|
+
<GhostDrawerTitle>Table filters</GhostDrawerTitle>
|
|
29
|
+
<GhostDrawerDescription>
|
|
30
|
+
Escape closes the confirmation first, then the drawer.
|
|
31
|
+
</GhostDrawerDescription>
|
|
32
|
+
<div class="drawer-actions">
|
|
33
|
+
<GhostDialog>
|
|
34
|
+
<GhostDialogTrigger :as="GhostButton" variant="soft" tone="danger">
|
|
35
|
+
Reset filters
|
|
36
|
+
</GhostDialogTrigger>
|
|
37
|
+
<GhostDialogOverlay />
|
|
38
|
+
<GhostDialogContent role="alertdialog">
|
|
39
|
+
<GhostDialogTitle>Reset all filters?</GhostDialogTitle>
|
|
40
|
+
<GhostDialogDescription>
|
|
41
|
+
Saved filter presets are not affected.
|
|
42
|
+
</GhostDialogDescription>
|
|
43
|
+
<div class="drawer-actions">
|
|
44
|
+
<GhostDialogClose
|
|
45
|
+
:as="GhostButton"
|
|
46
|
+
variant="soft"
|
|
47
|
+
tone="neutral"
|
|
48
|
+
size="sm"
|
|
49
|
+
>
|
|
50
|
+
Cancel
|
|
51
|
+
</GhostDialogClose>
|
|
52
|
+
<GhostDialogClose :as="GhostButton" tone="danger" size="sm">
|
|
53
|
+
Reset
|
|
54
|
+
</GhostDialogClose>
|
|
55
|
+
</div>
|
|
56
|
+
</GhostDialogContent>
|
|
57
|
+
</GhostDialog>
|
|
58
|
+
<GhostDrawerClose :as="GhostButton" size="sm">Done</GhostDrawerClose>
|
|
59
|
+
</div>
|
|
60
|
+
</GhostDrawerContent>
|
|
61
|
+
</GhostDrawer>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
.drawer-actions {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
gap: var(--ghost-space-gap-sm);
|
|
69
|
+
justify-content: flex-end;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostDrawer,
|
|
7
|
+
GhostDrawerClose,
|
|
8
|
+
GhostDrawerContent,
|
|
9
|
+
GhostDrawerDescription,
|
|
10
|
+
GhostDrawerTitle,
|
|
11
|
+
GhostDrawerTrigger,
|
|
12
|
+
} from '@ghostvue/themes'
|
|
13
|
+
|
|
14
|
+
const open = ref(false)
|
|
15
|
+
const selections = ref(0)
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<div class="drawer-non-modal">
|
|
20
|
+
<GhostDrawer v-model:open="open" :modal="false">
|
|
21
|
+
<GhostDrawerTrigger :as="GhostButton" variant="outline">
|
|
22
|
+
{{ open ? 'Hide' : 'Show' }} row details
|
|
23
|
+
</GhostDrawerTrigger>
|
|
24
|
+
<GhostDrawerContent>
|
|
25
|
+
<GhostDrawerTitle>Row details</GhostDrawerTitle>
|
|
26
|
+
<GhostDrawerDescription>
|
|
27
|
+
Non-modal: the page behind stays scrollable and interactive.
|
|
28
|
+
</GhostDrawerDescription>
|
|
29
|
+
<GhostDrawerClose :as="GhostButton" size="sm">Close</GhostDrawerClose>
|
|
30
|
+
</GhostDrawerContent>
|
|
31
|
+
</GhostDrawer>
|
|
32
|
+
<GhostButton variant="soft" tone="neutral" @click="selections += 1">
|
|
33
|
+
Select another row ({{ selections }})
|
|
34
|
+
</GhostButton>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<style scoped>
|
|
39
|
+
.drawer-non-modal {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
gap: var(--ghost-space-gap-sm);
|
|
43
|
+
}
|
|
44
|
+
</style>
|