@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,191 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostCard,
|
|
7
|
+
GhostField,
|
|
8
|
+
GhostFieldControl,
|
|
9
|
+
GhostFieldDescription,
|
|
10
|
+
GhostFieldError,
|
|
11
|
+
GhostFieldLabel,
|
|
12
|
+
GhostTextarea,
|
|
13
|
+
} from '@ghostvue/themes'
|
|
14
|
+
|
|
15
|
+
const summary = ref(
|
|
16
|
+
'Added adaptive contrast tokens for solid inline alerts and scaled stepper controls across sm, md, and lg densities.',
|
|
17
|
+
)
|
|
18
|
+
const deployChecklist =
|
|
19
|
+
'Run database migrations before rolling out worker replicas v2.14.3.'
|
|
20
|
+
const deprecatedNotice =
|
|
21
|
+
'Legacy v1 webhook payloads are frozen and cannot be edited.'
|
|
22
|
+
|
|
23
|
+
const published = ref(false)
|
|
24
|
+
const limit = 280
|
|
25
|
+
|
|
26
|
+
const summaryInvalid = computed(() => summary.value.trim() === '')
|
|
27
|
+
const wordCount = computed(() => {
|
|
28
|
+
const trimmed = summary.value.trim()
|
|
29
|
+
return trimmed === '' ? 0 : trimmed.split(/\s+/).length
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
function publish(event: SubmitEvent): void {
|
|
33
|
+
published.value = !summaryInvalid.value
|
|
34
|
+
if (published.value) return
|
|
35
|
+
const form = event.currentTarget
|
|
36
|
+
if (!(form instanceof HTMLFormElement)) return
|
|
37
|
+
form.querySelector<HTMLTextAreaElement>('[aria-invalid="true"]')?.focus()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function clearStatus(): void {
|
|
41
|
+
published.value = false
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<form
|
|
47
|
+
class="release-form"
|
|
48
|
+
novalidate
|
|
49
|
+
@submit.prevent="publish"
|
|
50
|
+
@input="clearStatus"
|
|
51
|
+
>
|
|
52
|
+
<GhostCard as="section" aria-labelledby="release-notes-title">
|
|
53
|
+
<template #header>
|
|
54
|
+
<div class="release-form__header">
|
|
55
|
+
<h2 id="release-notes-title" class="release-form__title">
|
|
56
|
+
Release v2.14.3 notes
|
|
57
|
+
</h2>
|
|
58
|
+
<p class="release-form__lead">
|
|
59
|
+
Published to the workspace changelog when deployment completes.
|
|
60
|
+
</p>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<div class="release-form__fields">
|
|
65
|
+
<GhostField required :invalid="summaryInvalid">
|
|
66
|
+
<GhostFieldLabel>Release summary</GhostFieldLabel>
|
|
67
|
+
<GhostFieldDescription>
|
|
68
|
+
{{ summary.length }} / {{ limit }} characters ({{ wordCount }}
|
|
69
|
+
words). Grows automatically as you type.
|
|
70
|
+
</GhostFieldDescription>
|
|
71
|
+
<GhostFieldControl v-slot="field">
|
|
72
|
+
<GhostTextarea
|
|
73
|
+
v-bind="field"
|
|
74
|
+
v-model="summary"
|
|
75
|
+
auto-resize
|
|
76
|
+
:rows="3"
|
|
77
|
+
:maxlength="limit"
|
|
78
|
+
name="summary"
|
|
79
|
+
/>
|
|
80
|
+
</GhostFieldControl>
|
|
81
|
+
<GhostFieldError v-if="summaryInvalid">
|
|
82
|
+
Add a short summary before publishing.
|
|
83
|
+
</GhostFieldError>
|
|
84
|
+
</GhostField>
|
|
85
|
+
|
|
86
|
+
<GhostField>
|
|
87
|
+
<GhostFieldLabel>Deployment checklist</GhostFieldLabel>
|
|
88
|
+
<GhostFieldDescription>
|
|
89
|
+
Read-only operator note. Focusable and included in submission.
|
|
90
|
+
</GhostFieldDescription>
|
|
91
|
+
<GhostFieldControl v-slot="field">
|
|
92
|
+
<GhostTextarea
|
|
93
|
+
v-bind="field"
|
|
94
|
+
:model-value="deployChecklist"
|
|
95
|
+
readonly
|
|
96
|
+
:rows="2"
|
|
97
|
+
name="checklist"
|
|
98
|
+
/>
|
|
99
|
+
</GhostFieldControl>
|
|
100
|
+
</GhostField>
|
|
101
|
+
|
|
102
|
+
<GhostField disabled>
|
|
103
|
+
<GhostFieldLabel>Deprecation notice</GhostFieldLabel>
|
|
104
|
+
<GhostFieldControl v-slot="field">
|
|
105
|
+
<GhostTextarea
|
|
106
|
+
v-bind="field"
|
|
107
|
+
:model-value="deprecatedNotice"
|
|
108
|
+
:rows="2"
|
|
109
|
+
name="deprecation"
|
|
110
|
+
/>
|
|
111
|
+
</GhostFieldControl>
|
|
112
|
+
</GhostField>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<template #footer>
|
|
116
|
+
<div class="release-form__actions">
|
|
117
|
+
<p class="release-form__status" role="status">
|
|
118
|
+
{{ published ? 'Release notes published.' : '' }}
|
|
119
|
+
</p>
|
|
120
|
+
<GhostButton type="submit" class="release-form__action">
|
|
121
|
+
Publish notes
|
|
122
|
+
</GhostButton>
|
|
123
|
+
</div>
|
|
124
|
+
</template>
|
|
125
|
+
</GhostCard>
|
|
126
|
+
</form>
|
|
127
|
+
</template>
|
|
128
|
+
|
|
129
|
+
<style scoped>
|
|
130
|
+
.release-form {
|
|
131
|
+
max-inline-size: 34rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.release-form__header {
|
|
135
|
+
display: grid;
|
|
136
|
+
gap: var(--ghost-space-gap-xs);
|
|
137
|
+
padding-block-end: var(--ghost-space-stack-sm);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.release-form__title {
|
|
141
|
+
color: var(--ghost-text-default);
|
|
142
|
+
font-size: var(--ghost-type-size-lg);
|
|
143
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
144
|
+
line-height: var(--ghost-type-line-tight);
|
|
145
|
+
margin: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.release-form__lead,
|
|
149
|
+
.release-form__status {
|
|
150
|
+
color: var(--ghost-text-muted);
|
|
151
|
+
font-size: var(--ghost-type-size-sm);
|
|
152
|
+
line-height: var(--ghost-type-line-snug);
|
|
153
|
+
margin: 0;
|
|
154
|
+
overflow-wrap: anywhere;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.release-form__fields {
|
|
158
|
+
display: grid;
|
|
159
|
+
gap: var(--ghost-space-stack-lg);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.release-form :deep([data-part='description']),
|
|
163
|
+
.release-form :deep([data-part='error']) {
|
|
164
|
+
overflow-wrap: anywhere;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.release-form__actions {
|
|
168
|
+
display: grid;
|
|
169
|
+
gap: var(--ghost-space-gap-sm) var(--ghost-space-gap-md);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.release-form :deep(.release-form__action) {
|
|
173
|
+
inline-size: 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@container ghost-demo (min-width: 30rem) {
|
|
177
|
+
.release-form__actions {
|
|
178
|
+
align-items: center;
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: flex-end;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.release-form__status {
|
|
184
|
+
flex: 1 1 auto;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.release-form :deep(.release-form__action) {
|
|
188
|
+
inline-size: auto;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { GhostTextarea } from '@ghostvue/themes'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="states">
|
|
7
|
+
<label for="disabled-notes">Disabled</label>
|
|
8
|
+
<GhostTextarea id="disabled-notes" default-value="Cannot edit" disabled />
|
|
9
|
+
|
|
10
|
+
<label for="readonly-notes">Readonly</label>
|
|
11
|
+
<GhostTextarea
|
|
12
|
+
id="readonly-notes"
|
|
13
|
+
default-value="Visible, not editable"
|
|
14
|
+
readonly
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
<label for="invalid-notes">Invalid</label>
|
|
18
|
+
<GhostTextarea
|
|
19
|
+
id="invalid-notes"
|
|
20
|
+
default-value="Needs a second sentence"
|
|
21
|
+
invalid
|
|
22
|
+
required
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<style scoped>
|
|
28
|
+
.states {
|
|
29
|
+
display: grid;
|
|
30
|
+
gap: var(--ghost-space-gap-sm);
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import { GhostTextarea } from '@ghostvue/themes'
|
|
5
|
+
|
|
6
|
+
const bio = ref('')
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<label for="themed-bio">Bio</label>
|
|
12
|
+
<GhostTextarea
|
|
13
|
+
id="themed-bio"
|
|
14
|
+
v-model="bio"
|
|
15
|
+
size="lg"
|
|
16
|
+
placeholder="A short bio"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineComponent, type SlotsType } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostToastProvider,
|
|
7
|
+
GhostToastViewport,
|
|
8
|
+
useGhostToast,
|
|
9
|
+
type UseGhostToastReturn,
|
|
10
|
+
} from '@ghostvue/vue'
|
|
11
|
+
|
|
12
|
+
// In an app, any component under GhostToastProvider calls useGhostToast().
|
|
13
|
+
// This renderless child only hands that API to the template below.
|
|
14
|
+
const ToastApi = defineComponent({
|
|
15
|
+
slots: Object as SlotsType<{
|
|
16
|
+
default: (api: UseGhostToastReturn) => unknown
|
|
17
|
+
}>,
|
|
18
|
+
setup(_props, { slots }) {
|
|
19
|
+
const api = useGhostToast()
|
|
20
|
+
return () => slots.default(api)
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<GhostToastProvider>
|
|
27
|
+
<div class="toast-example">
|
|
28
|
+
<ToastApi v-slot="{ toast }">
|
|
29
|
+
<GhostButton
|
|
30
|
+
type="button"
|
|
31
|
+
@click="
|
|
32
|
+
toast({
|
|
33
|
+
title: 'Draft saved',
|
|
34
|
+
description: 'Your changes are stored in this workspace.',
|
|
35
|
+
})
|
|
36
|
+
"
|
|
37
|
+
>
|
|
38
|
+
Save draft
|
|
39
|
+
</GhostButton>
|
|
40
|
+
</ToastApi>
|
|
41
|
+
<!-- Rendered in place so the stack shows in this preview; apps usually
|
|
42
|
+
keep the default portal to document.body. -->
|
|
43
|
+
<GhostToastViewport :portal="false" />
|
|
44
|
+
</div>
|
|
45
|
+
</GhostToastProvider>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<style scoped>
|
|
49
|
+
.toast-example {
|
|
50
|
+
display: grid;
|
|
51
|
+
gap: 0.75rem;
|
|
52
|
+
justify-items: start;
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineComponent, type SlotsType } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostDialog,
|
|
7
|
+
GhostDialogClose,
|
|
8
|
+
GhostDialogContent,
|
|
9
|
+
GhostDialogDescription,
|
|
10
|
+
GhostDialogTitle,
|
|
11
|
+
GhostDialogTrigger,
|
|
12
|
+
GhostToastProvider,
|
|
13
|
+
GhostToastViewport,
|
|
14
|
+
useGhostToast,
|
|
15
|
+
type UseGhostToastReturn,
|
|
16
|
+
} from '@ghostvue/vue'
|
|
17
|
+
|
|
18
|
+
// In an app, any component under GhostToastProvider calls useGhostToast().
|
|
19
|
+
// This renderless child only hands that API to the template below.
|
|
20
|
+
const ToastApi = defineComponent({
|
|
21
|
+
slots: Object as SlotsType<{
|
|
22
|
+
default: (api: UseGhostToastReturn) => unknown
|
|
23
|
+
}>,
|
|
24
|
+
setup(_props, { slots }) {
|
|
25
|
+
const api = useGhostToast()
|
|
26
|
+
return () => slots.default(api)
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
function publish({ toast, dismiss }: UseGhostToastReturn) {
|
|
31
|
+
// A fixed id keeps one "publish status" toast: calling toast() again with
|
|
32
|
+
// the same id updates it in place instead of stacking duplicates.
|
|
33
|
+
toast({
|
|
34
|
+
id: 'publish-status',
|
|
35
|
+
type: 'error',
|
|
36
|
+
urgency: 'urgent',
|
|
37
|
+
title: 'Publish failed',
|
|
38
|
+
description: 'The server did not respond. Nothing was published.',
|
|
39
|
+
action: {
|
|
40
|
+
label: 'Retry',
|
|
41
|
+
onClick: () => {
|
|
42
|
+
dismiss('publish-status')
|
|
43
|
+
toast({ title: 'Published', description: 'Release notes are live.' })
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<GhostToastProvider>
|
|
52
|
+
<ToastApi v-slot="api">
|
|
53
|
+
<GhostDialog>
|
|
54
|
+
<GhostDialogTrigger>Edit release notes</GhostDialogTrigger>
|
|
55
|
+
<GhostDialogContent>
|
|
56
|
+
<GhostDialogTitle>Release notes</GhostDialogTitle>
|
|
57
|
+
<GhostDialogDescription>
|
|
58
|
+
Publishing fails in this example so the error toast shows above the
|
|
59
|
+
open dialog.
|
|
60
|
+
</GhostDialogDescription>
|
|
61
|
+
<GhostButton type="button" @click="publish(api)">
|
|
62
|
+
Publish
|
|
63
|
+
</GhostButton>
|
|
64
|
+
<GhostDialogClose>Close</GhostDialogClose>
|
|
65
|
+
</GhostDialogContent>
|
|
66
|
+
</GhostDialog>
|
|
67
|
+
</ToastApi>
|
|
68
|
+
<!-- Default portal: the stack stays a sibling of the dialog under <body>,
|
|
69
|
+
so it is not made inert while the dialog is open. -->
|
|
70
|
+
<GhostToastViewport class="toast-example-viewport" />
|
|
71
|
+
</GhostToastProvider>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<!-- Not scoped: the viewport is teleported, outside this component's scope. -->
|
|
75
|
+
<style>
|
|
76
|
+
.toast-example-viewport {
|
|
77
|
+
position: fixed;
|
|
78
|
+
inset-block-end: 1rem;
|
|
79
|
+
inset-inline-end: 1rem;
|
|
80
|
+
z-index: 100;
|
|
81
|
+
display: grid;
|
|
82
|
+
gap: 0.5rem;
|
|
83
|
+
max-inline-size: min(24rem, calc(100vw - 2rem));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.toast-example-viewport > [data-ghost-toast] {
|
|
87
|
+
display: grid;
|
|
88
|
+
gap: 0.25rem;
|
|
89
|
+
padding: 0.75rem;
|
|
90
|
+
border: 1px solid CanvasText;
|
|
91
|
+
background: Canvas;
|
|
92
|
+
color: CanvasText;
|
|
93
|
+
}
|
|
94
|
+
</style>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineComponent, type SlotsType } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostToast,
|
|
7
|
+
GhostToastClose,
|
|
8
|
+
GhostToastDescription,
|
|
9
|
+
GhostToastProvider,
|
|
10
|
+
GhostToastTitle,
|
|
11
|
+
GhostToastViewport,
|
|
12
|
+
useGhostToast,
|
|
13
|
+
type UseGhostToastReturn,
|
|
14
|
+
} from '@ghostvue/vue'
|
|
15
|
+
|
|
16
|
+
// In an app, any component under GhostToastProvider calls useGhostToast().
|
|
17
|
+
// This renderless child only hands that API to the template below.
|
|
18
|
+
const ToastApi = defineComponent({
|
|
19
|
+
slots: Object as SlotsType<{
|
|
20
|
+
default: (api: UseGhostToastReturn) => unknown
|
|
21
|
+
}>,
|
|
22
|
+
setup(_props, { slots }) {
|
|
23
|
+
const api = useGhostToast()
|
|
24
|
+
return () => slots.default(api)
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const builds = ['api', 'docs', 'web', 'worker', 'mobile']
|
|
29
|
+
|
|
30
|
+
function sendAll({ toast }: UseGhostToastReturn) {
|
|
31
|
+
for (const build of builds) {
|
|
32
|
+
// duration: null persists, so the waiting toasts appear only as visible
|
|
33
|
+
// ones are dismissed.
|
|
34
|
+
toast({
|
|
35
|
+
title: `Build ${build} finished`,
|
|
36
|
+
description: 'All checks passed.',
|
|
37
|
+
duration: null,
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<GhostToastProvider :limit="3">
|
|
45
|
+
<div class="toast-example">
|
|
46
|
+
<ToastApi v-slot="api">
|
|
47
|
+
<div class="toast-example__actions">
|
|
48
|
+
<GhostButton type="button" @click="sendAll(api)">
|
|
49
|
+
Finish five builds
|
|
50
|
+
</GhostButton>
|
|
51
|
+
<GhostButton type="button" @click="api.dismissAll()">
|
|
52
|
+
Dismiss all
|
|
53
|
+
</GhostButton>
|
|
54
|
+
</div>
|
|
55
|
+
</ToastApi>
|
|
56
|
+
<GhostToastViewport :portal="false" as="section">
|
|
57
|
+
<template #toast="{ toast }">
|
|
58
|
+
<GhostToast :toast="toast" class="toast-example__toast">
|
|
59
|
+
<GhostToastTitle>{{ toast.title }}</GhostToastTitle>
|
|
60
|
+
<GhostToastDescription>{{
|
|
61
|
+
toast.description
|
|
62
|
+
}}</GhostToastDescription>
|
|
63
|
+
<GhostToastClose :aria-label="`Dismiss: ${toast.title}`">
|
|
64
|
+
Dismiss
|
|
65
|
+
</GhostToastClose>
|
|
66
|
+
</GhostToast>
|
|
67
|
+
</template>
|
|
68
|
+
</GhostToastViewport>
|
|
69
|
+
</div>
|
|
70
|
+
</GhostToastProvider>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<style scoped>
|
|
74
|
+
.toast-example {
|
|
75
|
+
display: grid;
|
|
76
|
+
gap: 0.75rem;
|
|
77
|
+
justify-items: start;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.toast-example__actions {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
gap: 0.5rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.toast-example__toast {
|
|
87
|
+
border-block-end: 1px solid currentcolor;
|
|
88
|
+
padding-block: 0.5rem;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineComponent, type SlotsType } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostButton,
|
|
6
|
+
GhostToastProvider,
|
|
7
|
+
GhostToastViewport,
|
|
8
|
+
useGhostToast,
|
|
9
|
+
type UseGhostToastReturn,
|
|
10
|
+
} from '@ghostvue/themes'
|
|
11
|
+
|
|
12
|
+
// In an app, any component under GhostToastProvider calls useGhostToast().
|
|
13
|
+
// This renderless child only hands that API to the template below.
|
|
14
|
+
const ToastApi = defineComponent({
|
|
15
|
+
slots: Object as SlotsType<{
|
|
16
|
+
default: (api: UseGhostToastReturn) => unknown
|
|
17
|
+
}>,
|
|
18
|
+
setup(_props, { slots }) {
|
|
19
|
+
const api = useGhostToast()
|
|
20
|
+
return () => slots.default(api)
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
function syncFailed({ toast, update }: UseGhostToastReturn) {
|
|
25
|
+
// type: 'error' persists and picks the danger tone. Retry updates the same
|
|
26
|
+
// id in place, so the toast keeps its slot and does not animate again.
|
|
27
|
+
toast({
|
|
28
|
+
id: 'sync-status',
|
|
29
|
+
type: 'error',
|
|
30
|
+
title: 'Sync failed',
|
|
31
|
+
description: 'Three files could not be uploaded.',
|
|
32
|
+
action: {
|
|
33
|
+
label: 'Retry',
|
|
34
|
+
onClick: () => {
|
|
35
|
+
update('sync-status', {
|
|
36
|
+
title: 'Still failing',
|
|
37
|
+
description: 'Retried once. Check your connection and try again.',
|
|
38
|
+
announceUpdate: true,
|
|
39
|
+
})
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
47
|
+
<GhostToastProvider>
|
|
48
|
+
<ToastApi v-slot="api">
|
|
49
|
+
<div class="toast-themed-example">
|
|
50
|
+
<GhostButton
|
|
51
|
+
variant="outline"
|
|
52
|
+
@click="
|
|
53
|
+
api.toast({
|
|
54
|
+
title: 'Draft saved',
|
|
55
|
+
description: 'Your changes are stored in this workspace.',
|
|
56
|
+
})
|
|
57
|
+
"
|
|
58
|
+
>
|
|
59
|
+
Save draft
|
|
60
|
+
</GhostButton>
|
|
61
|
+
<GhostButton tone="danger" variant="soft" @click="syncFailed(api)">
|
|
62
|
+
Sync files
|
|
63
|
+
</GhostButton>
|
|
64
|
+
</div>
|
|
65
|
+
</ToastApi>
|
|
66
|
+
<!-- Default portal: the theme fixes the stack to the bottom-end corner
|
|
67
|
+
and renders each record as a themed toast with an icon close. -->
|
|
68
|
+
<GhostToastViewport />
|
|
69
|
+
</GhostToastProvider>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<style scoped>
|
|
73
|
+
.toast-themed-example {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
gap: 0.75rem;
|
|
77
|
+
}
|
|
78
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import { GhostToggleGroup, GhostToggleGroupItem } from '@ghostvue/vue'
|
|
5
|
+
|
|
6
|
+
const density = ref('comfortable')
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<GhostToggleGroup v-model="density" aria-label="Row density">
|
|
11
|
+
<GhostToggleGroupItem value="compact">Compact</GhostToggleGroupItem>
|
|
12
|
+
<GhostToggleGroupItem value="comfortable">Comfortable</GhostToggleGroupItem>
|
|
13
|
+
<GhostToggleGroupItem value="spacious">Spacious</GhostToggleGroupItem>
|
|
14
|
+
</GhostToggleGroup>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
GhostCard,
|
|
6
|
+
GhostToggleGroup,
|
|
7
|
+
GhostToggleGroupItem,
|
|
8
|
+
} from '@ghostvue/themes'
|
|
9
|
+
|
|
10
|
+
const alignment = ref<'left' | 'center' | 'right'>('left')
|
|
11
|
+
const formats = ref<string[]>(['bold'])
|
|
12
|
+
|
|
13
|
+
const previewStyle = computed(() => ({
|
|
14
|
+
textAlign: alignment.value,
|
|
15
|
+
fontWeight: formats.value.includes('bold') ? '700' : '400',
|
|
16
|
+
fontStyle: formats.value.includes('italic') ? 'italic' : 'normal',
|
|
17
|
+
textDecoration: formats.value.includes('underline') ? 'underline' : 'none',
|
|
18
|
+
}))
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<section class="editor" aria-labelledby="editor-title">
|
|
23
|
+
<GhostCard>
|
|
24
|
+
<template #header>
|
|
25
|
+
<div class="editor__header">
|
|
26
|
+
<h2 id="editor-title" class="editor__title">Announcement draft</h2>
|
|
27
|
+
<p class="editor__lead">
|
|
28
|
+
Combine single-select alignment with multi-select text formatting.
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<div class="editor__body">
|
|
34
|
+
<div class="editor__toolbar" role="toolbar" aria-label="Formatting">
|
|
35
|
+
<GhostToggleGroup
|
|
36
|
+
v-model="formats"
|
|
37
|
+
type="multiple"
|
|
38
|
+
aria-label="Text formatting"
|
|
39
|
+
>
|
|
40
|
+
<GhostToggleGroupItem value="bold" aria-label="Bold">
|
|
41
|
+
B
|
|
42
|
+
</GhostToggleGroupItem>
|
|
43
|
+
<GhostToggleGroupItem value="italic" aria-label="Italic">
|
|
44
|
+
I
|
|
45
|
+
</GhostToggleGroupItem>
|
|
46
|
+
<GhostToggleGroupItem value="underline" aria-label="Underline">
|
|
47
|
+
U
|
|
48
|
+
</GhostToggleGroupItem>
|
|
49
|
+
</GhostToggleGroup>
|
|
50
|
+
|
|
51
|
+
<GhostToggleGroup
|
|
52
|
+
v-model="alignment"
|
|
53
|
+
type="single"
|
|
54
|
+
aria-label="Text alignment"
|
|
55
|
+
>
|
|
56
|
+
<GhostToggleGroupItem value="left">Left</GhostToggleGroupItem>
|
|
57
|
+
<GhostToggleGroupItem value="center">Center</GhostToggleGroupItem>
|
|
58
|
+
<GhostToggleGroupItem value="right">Right</GhostToggleGroupItem>
|
|
59
|
+
</GhostToggleGroup>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<p class="editor__preview" :style="previewStyle">
|
|
63
|
+
Scheduled maintenance completes Sunday at 04:00 UTC with zero expected
|
|
64
|
+
downtime for read replicas.
|
|
65
|
+
</p>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<template #footer>
|
|
69
|
+
<p class="editor__status" role="status">
|
|
70
|
+
Alignment: {{ alignment }} · Formatting:
|
|
71
|
+
{{ formats.length > 0 ? formats.join(', ') : 'none' }}
|
|
72
|
+
</p>
|
|
73
|
+
</template>
|
|
74
|
+
</GhostCard>
|
|
75
|
+
</section>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<style scoped>
|
|
79
|
+
.editor {
|
|
80
|
+
max-inline-size: 36rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.editor__header {
|
|
84
|
+
display: grid;
|
|
85
|
+
gap: var(--ghost-space-gap-xs);
|
|
86
|
+
padding-block-end: var(--ghost-space-stack-sm);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.editor__title {
|
|
90
|
+
color: var(--ghost-text-default);
|
|
91
|
+
font-size: var(--ghost-type-size-lg);
|
|
92
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
93
|
+
line-height: var(--ghost-type-line-tight);
|
|
94
|
+
margin: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.editor__lead,
|
|
98
|
+
.editor__status {
|
|
99
|
+
color: var(--ghost-text-muted);
|
|
100
|
+
font-size: var(--ghost-type-size-sm);
|
|
101
|
+
line-height: var(--ghost-type-line-snug);
|
|
102
|
+
margin: 0;
|
|
103
|
+
overflow-wrap: anywhere;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.editor__body {
|
|
107
|
+
display: grid;
|
|
108
|
+
gap: var(--ghost-space-stack-md);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.editor__toolbar {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-wrap: wrap;
|
|
114
|
+
gap: var(--ghost-space-gap-sm) var(--ghost-space-gap-md);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.editor__preview {
|
|
118
|
+
border: var(--ghost-border-hairline-width) solid var(--ghost-border-muted);
|
|
119
|
+
border-radius: var(--ghost-radius-md);
|
|
120
|
+
color: var(--ghost-text-default);
|
|
121
|
+
font-size: var(--ghost-type-size-md);
|
|
122
|
+
line-height: var(--ghost-type-line-normal);
|
|
123
|
+
margin: 0;
|
|
124
|
+
padding: var(--ghost-space-inset-md);
|
|
125
|
+
}
|
|
126
|
+
</style>
|