@ghostvue/themes 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 +59 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/base.css +341 -0
- package/dist/calm.css +1899 -0
- package/dist/components.d.ts +148 -0
- package/dist/components.js +143 -0
- package/dist/default.css +11017 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5934 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5275 -0
- package/dist/generated/tokens.js +5272 -0
- package/dist/ghost-accordion-content.d.ts +26 -0
- package/dist/ghost-accordion-content.js +22 -0
- package/dist/ghost-accordion-item.d.ts +24 -0
- package/dist/ghost-accordion-item.js +16 -0
- package/dist/ghost-accordion-trigger.d.ts +17 -0
- package/dist/ghost-accordion-trigger.js +33 -0
- package/dist/ghost-accordion.d.ts +72 -0
- package/dist/ghost-accordion.js +56 -0
- package/dist/ghost-avatar.d.ts +60 -0
- package/dist/ghost-avatar.js +39 -0
- package/dist/ghost-badge.d.ts +46 -0
- package/dist/ghost-badge.js +33 -0
- package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
- package/dist/ghost-breadcrumb-ellipsis.js +20 -0
- package/dist/ghost-breadcrumb-item.d.ts +18 -0
- package/dist/ghost-breadcrumb-item.js +20 -0
- package/dist/ghost-breadcrumb-link.d.ts +18 -0
- package/dist/ghost-breadcrumb-link.js +33 -0
- package/dist/ghost-breadcrumb-list.d.ts +18 -0
- package/dist/ghost-breadcrumb-list.js +27 -0
- package/dist/ghost-breadcrumb-page.d.ts +18 -0
- package/dist/ghost-breadcrumb-page.js +20 -0
- package/dist/ghost-breadcrumb-separator.d.ts +18 -0
- package/dist/ghost-breadcrumb-separator.js +20 -0
- package/dist/ghost-breadcrumb.d.ts +34 -0
- package/dist/ghost-breadcrumb.js +27 -0
- package/dist/ghost-button.d.ts +102 -0
- package/dist/ghost-button.js +66 -0
- package/dist/ghost-calendar-cell.d.ts +15 -0
- package/dist/ghost-calendar-cell.js +12 -0
- package/dist/ghost-calendar-grid.d.ts +5 -0
- package/dist/ghost-calendar-grid.js +21 -0
- package/dist/ghost-calendar-header.d.ts +3 -0
- package/dist/ghost-calendar-header.js +9 -0
- package/dist/ghost-calendar-heading.d.ts +3 -0
- package/dist/ghost-calendar-heading.js +9 -0
- package/dist/ghost-calendar-next-button.d.ts +9 -0
- package/dist/ghost-calendar-next-button.js +18 -0
- package/dist/ghost-calendar-prev-button.d.ts +9 -0
- package/dist/ghost-calendar-prev-button.js +18 -0
- package/dist/ghost-calendar.d.ts +119 -0
- package/dist/ghost-calendar.js +101 -0
- package/dist/ghost-card.d.ts +33 -0
- package/dist/ghost-card.js +36 -0
- package/dist/ghost-checkbox.d.ts +76 -0
- package/dist/ghost-checkbox.js +59 -0
- package/dist/ghost-collapsible-content.d.ts +28 -0
- package/dist/ghost-collapsible-content.js +41 -0
- package/dist/ghost-collapsible-trigger.d.ts +28 -0
- package/dist/ghost-collapsible-trigger.js +41 -0
- package/dist/ghost-collapsible.d.ts +44 -0
- package/dist/ghost-collapsible.js +38 -0
- package/dist/ghost-combobox-content.d.ts +82 -0
- package/dist/ghost-combobox-content.js +58 -0
- package/dist/ghost-combobox-input.d.ts +28 -0
- package/dist/ghost-combobox-input.js +36 -0
- package/dist/ghost-combobox-trigger.d.ts +28 -0
- package/dist/ghost-combobox-trigger.js +36 -0
- package/dist/ghost-combobox.d.ts +179 -0
- package/dist/ghost-combobox.js +98 -0
- package/dist/ghost-command-palette-content.d.ts +86 -0
- package/dist/ghost-command-palette-content.js +55 -0
- package/dist/ghost-command-palette-overlay.d.ts +40 -0
- package/dist/ghost-command-palette-overlay.js +40 -0
- package/dist/ghost-command-palette.d.ts +114 -0
- package/dist/ghost-command-palette.js +93 -0
- package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-context-menu-checkbox-item.js +57 -0
- package/dist/ghost-context-menu-content.d.ts +85 -0
- package/dist/ghost-context-menu-content.js +75 -0
- package/dist/ghost-context-menu-group.d.ts +19 -0
- package/dist/ghost-context-menu-group.js +23 -0
- package/dist/ghost-context-menu-item.d.ts +32 -0
- package/dist/ghost-context-menu-item.js +43 -0
- package/dist/ghost-context-menu-label.d.ts +19 -0
- package/dist/ghost-context-menu-label.js +23 -0
- package/dist/ghost-context-menu-radio-group.d.ts +50 -0
- package/dist/ghost-context-menu-radio-group.js +46 -0
- package/dist/ghost-context-menu-radio-item.d.ts +40 -0
- package/dist/ghost-context-menu-radio-item.js +53 -0
- package/dist/ghost-context-menu-separator.d.ts +28 -0
- package/dist/ghost-context-menu-separator.js +28 -0
- package/dist/ghost-context-menu-trigger.d.ts +28 -0
- package/dist/ghost-context-menu-trigger.js +41 -0
- package/dist/ghost-context-menu.d.ts +35 -0
- package/dist/ghost-context-menu.js +33 -0
- package/dist/ghost-data-table-preset.d.ts +31 -0
- package/dist/ghost-data-table-preset.js +12 -0
- package/dist/ghost-data-table-table.d.ts +30 -0
- package/dist/ghost-data-table-table.js +9 -0
- package/dist/ghost-data-table.d.ts +94 -0
- package/dist/ghost-data-table.js +105 -0
- package/dist/ghost-date-picker-calendar.d.ts +9 -0
- package/dist/ghost-date-picker-calendar.js +30 -0
- package/dist/ghost-date-picker-content.d.ts +95 -0
- package/dist/ghost-date-picker-content.js +58 -0
- package/dist/ghost-date-picker-input.d.ts +46 -0
- package/dist/ghost-date-picker-input.js +39 -0
- package/dist/ghost-date-picker-trigger.d.ts +6 -0
- package/dist/ghost-date-picker-trigger.js +22 -0
- package/dist/ghost-date-picker.d.ts +245 -0
- package/dist/ghost-date-picker.js +68 -0
- package/dist/ghost-dialog-close.d.ts +28 -0
- package/dist/ghost-dialog-close.js +37 -0
- package/dist/ghost-dialog-content.d.ts +95 -0
- package/dist/ghost-dialog-content.js +78 -0
- package/dist/ghost-dialog-description.d.ts +19 -0
- package/dist/ghost-dialog-description.js +37 -0
- package/dist/ghost-dialog-overlay.d.ts +40 -0
- package/dist/ghost-dialog-overlay.js +46 -0
- package/dist/ghost-dialog-title.d.ts +19 -0
- package/dist/ghost-dialog-title.js +33 -0
- package/dist/ghost-dialog-trigger.d.ts +28 -0
- package/dist/ghost-dialog-trigger.js +37 -0
- package/dist/ghost-dialog.d.ts +44 -0
- package/dist/ghost-dialog.js +38 -0
- package/dist/ghost-drawer-close.d.ts +28 -0
- package/dist/ghost-drawer-close.js +37 -0
- package/dist/ghost-drawer-content.d.ts +87 -0
- package/dist/ghost-drawer-content.js +73 -0
- package/dist/ghost-drawer-description.d.ts +19 -0
- package/dist/ghost-drawer-description.js +36 -0
- package/dist/ghost-drawer-overlay.d.ts +40 -0
- package/dist/ghost-drawer-overlay.js +46 -0
- package/dist/ghost-drawer-title.d.ts +19 -0
- package/dist/ghost-drawer-title.js +32 -0
- package/dist/ghost-drawer-trigger.d.ts +28 -0
- package/dist/ghost-drawer-trigger.js +37 -0
- package/dist/ghost-drawer.d.ts +62 -0
- package/dist/ghost-drawer.js +48 -0
- package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
- package/dist/ghost-dropdown-menu-content.d.ts +85 -0
- package/dist/ghost-dropdown-menu-content.js +75 -0
- package/dist/ghost-dropdown-menu-group.d.ts +19 -0
- package/dist/ghost-dropdown-menu-group.js +23 -0
- package/dist/ghost-dropdown-menu-item.d.ts +32 -0
- package/dist/ghost-dropdown-menu-item.js +47 -0
- package/dist/ghost-dropdown-menu-label.d.ts +19 -0
- package/dist/ghost-dropdown-menu-label.js +23 -0
- package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
- package/dist/ghost-dropdown-menu-radio-group.js +46 -0
- package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
- package/dist/ghost-dropdown-menu-radio-item.js +53 -0
- package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
- package/dist/ghost-dropdown-menu-separator.js +28 -0
- package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
- package/dist/ghost-dropdown-menu-trigger.js +41 -0
- package/dist/ghost-dropdown-menu.d.ts +35 -0
- package/dist/ghost-dropdown-menu.js +33 -0
- package/dist/ghost-empty-state.d.ts +31 -0
- package/dist/ghost-empty-state.js +35 -0
- package/dist/ghost-field.d.ts +44 -0
- package/dist/ghost-field.js +44 -0
- package/dist/ghost-file-upload-dropzone.d.ts +9 -0
- package/dist/ghost-file-upload-dropzone.js +23 -0
- package/dist/ghost-file-upload-item-remove.d.ts +10 -0
- package/dist/ghost-file-upload-item-remove.js +30 -0
- package/dist/ghost-file-upload-list.d.ts +10 -0
- package/dist/ghost-file-upload-list.js +24 -0
- package/dist/ghost-file-upload-trigger.d.ts +18 -0
- package/dist/ghost-file-upload-trigger.js +30 -0
- package/dist/ghost-file-upload.d.ts +147 -0
- package/dist/ghost-file-upload.js +98 -0
- package/dist/ghost-hover-card-content.d.ts +85 -0
- package/dist/ghost-hover-card-content.js +75 -0
- package/dist/ghost-hover-card-trigger.d.ts +28 -0
- package/dist/ghost-hover-card-trigger.js +41 -0
- package/dist/ghost-hover-card.d.ts +62 -0
- package/dist/ghost-hover-card.js +48 -0
- package/dist/ghost-inline-alert.d.ts +62 -0
- package/dist/ghost-inline-alert.js +50 -0
- package/dist/ghost-input.d.ts +100 -0
- package/dist/ghost-input.js +60 -0
- package/dist/ghost-interactive-surface.d.ts +31 -0
- package/dist/ghost-interactive-surface.js +36 -0
- package/dist/ghost-kbd.d.ts +42 -0
- package/dist/ghost-kbd.js +32 -0
- package/dist/ghost-link.d.ts +94 -0
- package/dist/ghost-link.js +59 -0
- package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
- package/dist/ghost-menubar-checkbox-item.js +57 -0
- package/dist/ghost-menubar-content.d.ts +85 -0
- package/dist/ghost-menubar-content.js +71 -0
- package/dist/ghost-menubar-group.d.ts +19 -0
- package/dist/ghost-menubar-group.js +19 -0
- package/dist/ghost-menubar-item.d.ts +32 -0
- package/dist/ghost-menubar-item.js +43 -0
- package/dist/ghost-menubar-label.d.ts +19 -0
- package/dist/ghost-menubar-label.js +19 -0
- package/dist/ghost-menubar-menu.d.ts +35 -0
- package/dist/ghost-menubar-menu.js +33 -0
- package/dist/ghost-menubar-radio-group.d.ts +50 -0
- package/dist/ghost-menubar-radio-group.js +46 -0
- package/dist/ghost-menubar-radio-item.d.ts +40 -0
- package/dist/ghost-menubar-radio-item.js +53 -0
- package/dist/ghost-menubar-separator.d.ts +28 -0
- package/dist/ghost-menubar-separator.js +28 -0
- package/dist/ghost-menubar-trigger.d.ts +28 -0
- package/dist/ghost-menubar-trigger.js +37 -0
- package/dist/ghost-menubar.d.ts +28 -0
- package/dist/ghost-menubar.js +33 -0
- package/dist/ghost-number-input.d.ts +153 -0
- package/dist/ghost-number-input.js +87 -0
- package/dist/ghost-pagination.d.ts +151 -0
- package/dist/ghost-pagination.js +71 -0
- package/dist/ghost-popover-close.d.ts +28 -0
- package/dist/ghost-popover-close.js +37 -0
- package/dist/ghost-popover-content.d.ts +86 -0
- package/dist/ghost-popover-content.js +72 -0
- package/dist/ghost-popover-trigger.d.ts +28 -0
- package/dist/ghost-popover-trigger.js +37 -0
- package/dist/ghost-popover.d.ts +35 -0
- package/dist/ghost-popover.js +33 -0
- package/dist/ghost-progress.d.ts +69 -0
- package/dist/ghost-progress.js +37 -0
- package/dist/ghost-radio-group-item.d.ts +37 -0
- package/dist/ghost-radio-group-item.js +33 -0
- package/dist/ghost-radio-group.d.ts +91 -0
- package/dist/ghost-radio-group.js +65 -0
- package/dist/ghost-scroll-area.d.ts +49 -0
- package/dist/ghost-scroll-area.js +32 -0
- package/dist/ghost-scroll-spy-item.d.ts +27 -0
- package/dist/ghost-scroll-spy-item.js +29 -0
- package/dist/ghost-scroll-spy-link.d.ts +44 -0
- package/dist/ghost-scroll-spy-link.js +39 -0
- package/dist/ghost-scroll-spy-list.d.ts +18 -0
- package/dist/ghost-scroll-spy-list.js +27 -0
- package/dist/ghost-scroll-spy.d.ts +121 -0
- package/dist/ghost-scroll-spy.js +83 -0
- package/dist/ghost-segmented-control-item.d.ts +36 -0
- package/dist/ghost-segmented-control-item.js +47 -0
- package/dist/ghost-segmented-control.d.ts +77 -0
- package/dist/ghost-segmented-control.js +73 -0
- package/dist/ghost-select-content.d.ts +82 -0
- package/dist/ghost-select-content.js +58 -0
- package/dist/ghost-select-trigger.d.ts +28 -0
- package/dist/ghost-select-trigger.js +36 -0
- package/dist/ghost-select.d.ts +115 -0
- package/dist/ghost-select.js +74 -0
- package/dist/ghost-separator.d.ts +41 -0
- package/dist/ghost-separator.js +34 -0
- package/dist/ghost-skeleton.d.ts +34 -0
- package/dist/ghost-skeleton.js +31 -0
- package/dist/ghost-slider.d.ts +150 -0
- package/dist/ghost-slider.js +83 -0
- package/dist/ghost-spinner.d.ts +42 -0
- package/dist/ghost-spinner.js +26 -0
- package/dist/ghost-switch.d.ts +102 -0
- package/dist/ghost-switch.js +68 -0
- package/dist/ghost-table.d.ts +30 -0
- package/dist/ghost-table.js +36 -0
- package/dist/ghost-tabs-content.d.ts +27 -0
- package/dist/ghost-tabs-content.js +38 -0
- package/dist/ghost-tabs-list.d.ts +19 -0
- package/dist/ghost-tabs-list.js +33 -0
- package/dist/ghost-tabs-trigger.d.ts +36 -0
- package/dist/ghost-tabs-trigger.js +43 -0
- package/dist/ghost-tabs.d.ts +59 -0
- package/dist/ghost-tabs.js +45 -0
- package/dist/ghost-textarea.d.ts +109 -0
- package/dist/ghost-textarea.js +66 -0
- package/dist/ghost-toast-viewport.d.ts +43 -0
- package/dist/ghost-toast-viewport.js +74 -0
- package/dist/ghost-toast.d.ts +54 -0
- package/dist/ghost-toast.js +48 -0
- package/dist/ghost-toggle-group-item.d.ts +36 -0
- package/dist/ghost-toggle-group-item.js +43 -0
- package/dist/ghost-toggle-group.d.ts +77 -0
- package/dist/ghost-toggle-group.js +69 -0
- package/dist/ghost-toolbar.d.ts +6 -0
- package/dist/ghost-toolbar.js +24 -0
- package/dist/ghost-tooltip-content.d.ts +86 -0
- package/dist/ghost-tooltip-content.js +72 -0
- package/dist/ghost-tooltip-trigger.d.ts +28 -0
- package/dist/ghost-tooltip-trigger.js +37 -0
- package/dist/ghost-tooltip.d.ts +62 -0
- package/dist/ghost-tooltip.js +50 -0
- package/dist/ghost-tree-group.d.ts +32 -0
- package/dist/ghost-tree-group.js +39 -0
- package/dist/ghost-tree-item.d.ts +45 -0
- package/dist/ghost-tree-item.js +42 -0
- package/dist/ghost-tree-trigger.d.ts +40 -0
- package/dist/ghost-tree-trigger.js +43 -0
- package/dist/ghost-tree.d.ts +122 -0
- package/dist/ghost-tree.js +98 -0
- package/dist/index.d.ts +148 -0
- package/dist/index.js +144 -0
- package/dist/manifest.json +6375 -0
- package/dist/mono.css +1864 -0
- package/dist/recipes/accordion.css +42 -0
- package/dist/recipes/avatar.css +87 -0
- package/dist/recipes/badge.css +170 -0
- package/dist/recipes/breadcrumb.css +149 -0
- package/dist/recipes/button.css +632 -0
- package/dist/recipes/calendar.css +292 -0
- package/dist/recipes/card.css +54 -0
- package/dist/recipes/checkbox.css +262 -0
- package/dist/recipes/collapsible.css +304 -0
- package/dist/recipes/combobox.css +276 -0
- package/dist/recipes/command-palette.css +244 -0
- package/dist/recipes/context-menu.css +227 -0
- package/dist/recipes/data-table.css +455 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +141 -0
- package/dist/recipes/drawer.css +338 -0
- package/dist/recipes/dropdown-menu.css +232 -0
- package/dist/recipes/empty-state.css +66 -0
- package/dist/recipes/field.css +63 -0
- package/dist/recipes/file-upload.css +260 -0
- package/dist/recipes/hover-card.css +64 -0
- package/dist/recipes/inline-alert.css +172 -0
- package/dist/recipes/input.css +176 -0
- package/dist/recipes/kbd.css +113 -0
- package/dist/recipes/link.css +158 -0
- package/dist/recipes/menubar.css +242 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +83 -0
- package/dist/recipes/progress.css +119 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +31 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +178 -0
- package/dist/recipes/select.css +299 -0
- package/dist/recipes/separator.css +41 -0
- package/dist/recipes/skeleton.css +132 -0
- package/dist/recipes/slider.css +239 -0
- package/dist/recipes/spinner.css +93 -0
- package/dist/recipes/switch.css +314 -0
- package/dist/recipes/table.css +120 -0
- package/dist/recipes/tabs.css +139 -0
- package/dist/recipes/textarea.css +148 -0
- package/dist/recipes/toast.css +321 -0
- package/dist/recipes/toggle-group.css +92 -0
- package/dist/recipes/toolbar.css +25 -0
- package/dist/recipes/tooltip.css +48 -0
- package/dist/recipes/tree.css +231 -0
- package/dist/start-theme-transition.d.ts +9 -0
- package/dist/start-theme-transition.js +27 -0
- package/dist/tokens/primitives.json +612 -0
- package/dist/tokens/seeds.json +23 -0
- package/dist/tokens/semantic.compact.json +175 -0
- package/dist/tokens/semantic.dark.json +583 -0
- package/dist/tokens/semantic.json +1651 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1864 -0
- package/dist/tokens.json +6137 -0
- package/dist/vibrant.css +1864 -0
- package/package.json +75 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostBreadcrumbPage as GhostUnstyledBreadcrumbPage, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostBreadcrumbPage} wrapper. */
|
|
4
|
+
export const GhostBreadcrumbPage = defineComponent({
|
|
5
|
+
name: 'GhostBreadcrumbPage',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object],
|
|
10
|
+
default: 'span',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
setup(props, { attrs, slots }) {
|
|
14
|
+
return () => h(GhostUnstyledBreadcrumbPage, {
|
|
15
|
+
...attrs,
|
|
16
|
+
as: props.as,
|
|
17
|
+
'data-themed': '',
|
|
18
|
+
}, slots);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostBreadcrumbSeparatorElement } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostBreadcrumbSeparator} wrapper. */
|
|
4
|
+
export declare const GhostBreadcrumbSeparator: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
as: {
|
|
6
|
+
type: PropType<GhostBreadcrumbSeparatorElement>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
as: {
|
|
13
|
+
type: PropType<GhostBreadcrumbSeparatorElement>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{}>, {
|
|
17
|
+
as: GhostBreadcrumbSeparatorElement;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostBreadcrumbSeparator as GhostUnstyledBreadcrumbSeparator, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostBreadcrumbSeparator} wrapper. */
|
|
4
|
+
export const GhostBreadcrumbSeparator = defineComponent({
|
|
5
|
+
name: 'GhostBreadcrumbSeparator',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object],
|
|
10
|
+
default: 'span',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
setup(props, { attrs, slots }) {
|
|
14
|
+
return () => h(GhostUnstyledBreadcrumbSeparator, {
|
|
15
|
+
...attrs,
|
|
16
|
+
as: props.as,
|
|
17
|
+
'data-themed': '',
|
|
18
|
+
}, slots);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostBreadcrumbElement, type GhostBreadcrumbEllipsisExposed, type GhostBreadcrumbEllipsisProps, type GhostBreadcrumbExposed, type GhostBreadcrumbItemElement, type GhostBreadcrumbItemExposed, type GhostBreadcrumbLinkElement, type GhostBreadcrumbLinkExposed, type GhostBreadcrumbListElement, type GhostBreadcrumbListExposed, type GhostBreadcrumbPageElement, type GhostBreadcrumbPageExposed, type GhostBreadcrumbProps, type GhostBreadcrumbSeparatorElement, type GhostBreadcrumbSeparatorExposed } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostBreadcrumb} root wrapper. */
|
|
4
|
+
export declare const GhostBreadcrumb: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
as: {
|
|
6
|
+
type: PropType<GhostBreadcrumbElement>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
as: {
|
|
17
|
+
type: PropType<GhostBreadcrumbElement>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
ariaLabel: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{}>, {
|
|
25
|
+
as: GhostBreadcrumbElement;
|
|
26
|
+
ariaLabel: string;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export { GhostBreadcrumbList } from './ghost-breadcrumb-list.js';
|
|
29
|
+
export { GhostBreadcrumbItem } from './ghost-breadcrumb-item.js';
|
|
30
|
+
export { GhostBreadcrumbLink } from './ghost-breadcrumb-link.js';
|
|
31
|
+
export { GhostBreadcrumbPage } from './ghost-breadcrumb-page.js';
|
|
32
|
+
export { GhostBreadcrumbSeparator } from './ghost-breadcrumb-separator.js';
|
|
33
|
+
export { GhostBreadcrumbEllipsis } from './ghost-breadcrumb-ellipsis.js';
|
|
34
|
+
export type { GhostBreadcrumbElement, GhostBreadcrumbEllipsisExposed, GhostBreadcrumbEllipsisProps, GhostBreadcrumbExposed, GhostBreadcrumbItemElement, GhostBreadcrumbItemExposed, GhostBreadcrumbLinkElement, GhostBreadcrumbLinkExposed, GhostBreadcrumbListElement, GhostBreadcrumbListExposed, GhostBreadcrumbPageElement, GhostBreadcrumbPageExposed, GhostBreadcrumbProps, GhostBreadcrumbSeparatorElement, GhostBreadcrumbSeparatorExposed, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostBreadcrumb as GhostUnstyledBreadcrumb, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostBreadcrumb} root wrapper. */
|
|
4
|
+
export const GhostBreadcrumb = defineComponent({
|
|
5
|
+
name: 'GhostBreadcrumb',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object],
|
|
10
|
+
default: 'nav',
|
|
11
|
+
},
|
|
12
|
+
ariaLabel: { type: String, default: 'Breadcrumb' },
|
|
13
|
+
},
|
|
14
|
+
setup(props, { attrs, slots }) {
|
|
15
|
+
return () => h(GhostUnstyledBreadcrumb, {
|
|
16
|
+
...attrs,
|
|
17
|
+
as: props.as,
|
|
18
|
+
ariaLabel: props.ariaLabel,
|
|
19
|
+
}, slots);
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
export { GhostBreadcrumbList } from './ghost-breadcrumb-list';
|
|
23
|
+
export { GhostBreadcrumbItem } from './ghost-breadcrumb-item';
|
|
24
|
+
export { GhostBreadcrumbLink } from './ghost-breadcrumb-link';
|
|
25
|
+
export { GhostBreadcrumbPage } from './ghost-breadcrumb-page';
|
|
26
|
+
export { GhostBreadcrumbSeparator } from './ghost-breadcrumb-separator';
|
|
27
|
+
export { GhostBreadcrumbEllipsis } from './ghost-breadcrumb-ellipsis';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostButtonExposed, type GhostButtonType } from '@ghostvue/vue';
|
|
3
|
+
/** Visual treatment for the themed button. Omitting it selects `solid`. */
|
|
4
|
+
export type GhostButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
5
|
+
/** Semantic color intent, independent of {@link GhostButtonVariant}. */
|
|
6
|
+
export type GhostButtonTone = 'accent' | 'neutral' | 'danger';
|
|
7
|
+
/** Visual size. Omitting it selects `md`. */
|
|
8
|
+
export type GhostButtonSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
/** Opt-in pointer spotlight. Omitting it leaves the button inert. */
|
|
10
|
+
export type GhostButtonInteractive = 'spotlight';
|
|
11
|
+
/**
|
|
12
|
+
* Themed wrapper: visual props as `data-*`, instance-scoped CSS. Behavior stays
|
|
13
|
+
* on the unstyled primitive; native attrs fall through.
|
|
14
|
+
*/
|
|
15
|
+
export declare const GhostButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
type: {
|
|
17
|
+
type: PropType<GhostButtonType>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
loading: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
type: PropType<GhostButtonVariant>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
tone: {
|
|
33
|
+
type: PropType<GhostButtonTone>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
type: PropType<GhostButtonSize>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
block: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
iconOnly: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
interactive: {
|
|
49
|
+
type: PropType<GhostButtonInteractive>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
type: {
|
|
56
|
+
type: PropType<GhostButtonType>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
disabled: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
loading: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
variant: {
|
|
68
|
+
type: PropType<GhostButtonVariant>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
tone: {
|
|
72
|
+
type: PropType<GhostButtonTone>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType<GhostButtonSize>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
block: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
iconOnly: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
interactive: {
|
|
88
|
+
type: PropType<GhostButtonInteractive>;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, {
|
|
92
|
+
type: GhostButtonType;
|
|
93
|
+
size: GhostButtonSize;
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
variant: GhostButtonVariant;
|
|
96
|
+
tone: GhostButtonTone;
|
|
97
|
+
loading: boolean;
|
|
98
|
+
block: boolean;
|
|
99
|
+
iconOnly: boolean;
|
|
100
|
+
interactive: "spotlight";
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
export type { GhostButtonExposed, GhostButtonType };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostButton as GhostUnstyledButton, useGhostInteractiveSurface, } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed wrapper: visual props as `data-*`, instance-scoped CSS. Behavior stays
|
|
5
|
+
* on the unstyled primitive; native attrs fall through.
|
|
6
|
+
*/
|
|
7
|
+
export const GhostButton = defineComponent({
|
|
8
|
+
name: 'GhostButton',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
type: { type: String, default: 'button' },
|
|
12
|
+
disabled: { type: Boolean, default: false },
|
|
13
|
+
loading: { type: Boolean, default: false },
|
|
14
|
+
variant: { type: String, default: 'solid' },
|
|
15
|
+
tone: { type: String, default: 'accent' },
|
|
16
|
+
size: { type: String, default: 'md' },
|
|
17
|
+
block: { type: Boolean, default: false },
|
|
18
|
+
iconOnly: { type: Boolean, default: false },
|
|
19
|
+
interactive: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: undefined,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
setup(props, { attrs, slots, expose }) {
|
|
25
|
+
const inner = ref(null);
|
|
26
|
+
expose({
|
|
27
|
+
get element() {
|
|
28
|
+
return inner.value?.element ?? null;
|
|
29
|
+
},
|
|
30
|
+
focus(options) {
|
|
31
|
+
inner.value?.focus(options);
|
|
32
|
+
},
|
|
33
|
+
blur() {
|
|
34
|
+
inner.value?.blur();
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const { rootProps } = useGhostInteractiveSurface(() => inner.value?.element, {
|
|
38
|
+
effects: () => (props.interactive === 'spotlight' ? ['spotlight'] : []),
|
|
39
|
+
stateAttribute: 'data-interactive-state',
|
|
40
|
+
});
|
|
41
|
+
return () => h('span', { class: 'ghost-themed-scope' }, [
|
|
42
|
+
h(GhostUnstyledButton, {
|
|
43
|
+
...attrs,
|
|
44
|
+
ref: inner,
|
|
45
|
+
type: props.type,
|
|
46
|
+
disabled: props.disabled,
|
|
47
|
+
loading: props.loading,
|
|
48
|
+
// CSS treats missing attributes as the defaults (solid / accent / md).
|
|
49
|
+
'data-variant': props.variant === 'solid' ? undefined : props.variant,
|
|
50
|
+
'data-tone': props.tone === 'accent' ? undefined : props.tone,
|
|
51
|
+
'data-size': props.size === 'md' ? undefined : props.size,
|
|
52
|
+
'data-block': props.block ? '' : undefined,
|
|
53
|
+
'data-icon-only': props.iconOnly ? '' : undefined,
|
|
54
|
+
'data-interactive': props.interactive === 'spotlight' ? 'spotlight' : undefined,
|
|
55
|
+
'data-interactive-state': rootProps.value['data-interactive-state'],
|
|
56
|
+
}, props.interactive === 'spotlight'
|
|
57
|
+
? {
|
|
58
|
+
default: () => [
|
|
59
|
+
h('span', { 'data-part': 'glow', 'aria-hidden': 'true' }),
|
|
60
|
+
slots['default']?.(),
|
|
61
|
+
],
|
|
62
|
+
}
|
|
63
|
+
: slots),
|
|
64
|
+
]);
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type CalendarDate } from '@ghostvue/vue';
|
|
3
|
+
export declare const GhostCalendarCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
date: {
|
|
5
|
+
type: PropType<CalendarDate>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
date: {
|
|
12
|
+
type: PropType<CalendarDate>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendarCell as GhostUnstyledCalendarCell, } from '@ghostvue/vue';
|
|
3
|
+
export const GhostCalendarCell = defineComponent({
|
|
4
|
+
name: 'GhostCalendarCell',
|
|
5
|
+
inheritAttrs: false,
|
|
6
|
+
props: {
|
|
7
|
+
date: { type: Object, required: true },
|
|
8
|
+
},
|
|
9
|
+
setup(props, { attrs, slots }) {
|
|
10
|
+
return () => h(GhostUnstyledCalendarCell, { ...attrs, date: props.date, 'data-themed': '' }, slots);
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GhostCalendarPartExposed } from '@ghostvue/vue';
|
|
2
|
+
export declare const GhostCalendarGrid: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export type { GhostCalendarPartExposed as GhostCalendarGridExposed };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostCalendarGrid as GhostUnstyledCalendarGrid, } from '@ghostvue/vue';
|
|
3
|
+
export const GhostCalendarGrid = defineComponent({
|
|
4
|
+
name: 'GhostCalendarGrid',
|
|
5
|
+
inheritAttrs: false,
|
|
6
|
+
setup(_props, { attrs, slots, expose }) {
|
|
7
|
+
const inner = ref(null);
|
|
8
|
+
expose({
|
|
9
|
+
get element() {
|
|
10
|
+
return inner.value?.element ?? null;
|
|
11
|
+
},
|
|
12
|
+
focus(options) {
|
|
13
|
+
inner.value?.focus(options);
|
|
14
|
+
},
|
|
15
|
+
blur() {
|
|
16
|
+
inner.value?.blur();
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
return () => h(GhostUnstyledCalendarGrid, { ...attrs, ref: inner, 'data-themed': '' }, slots);
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const GhostCalendarHeader: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendarHeader as GhostUnstyledCalendarHeader } from '@ghostvue/vue';
|
|
3
|
+
export const GhostCalendarHeader = defineComponent({
|
|
4
|
+
name: 'GhostCalendarHeader',
|
|
5
|
+
inheritAttrs: false,
|
|
6
|
+
setup(_props, { attrs, slots }) {
|
|
7
|
+
return () => h(GhostUnstyledCalendarHeader, { ...attrs, 'data-themed': '' }, slots);
|
|
8
|
+
},
|
|
9
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const GhostCalendarHeading: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendarHeading as GhostUnstyledCalendarHeading } from '@ghostvue/vue';
|
|
3
|
+
export const GhostCalendarHeading = defineComponent({
|
|
4
|
+
name: 'GhostCalendarHeading',
|
|
5
|
+
inheritAttrs: false,
|
|
6
|
+
setup(_props, { attrs, slots }) {
|
|
7
|
+
return () => h(GhostUnstyledCalendarHeading, { ...attrs, 'data-themed': '' }, slots);
|
|
8
|
+
},
|
|
9
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Themed {@link GhostCalendarNextButton}. Without slot content it renders
|
|
3
|
+
* a decorative, CSS-painted chevron (ADR 0013); the button keeps its
|
|
4
|
+
* `aria-label` ("Next month" by default) as the accessible name. Pass
|
|
5
|
+
* slot content to replace the chevron.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GhostCalendarNextButton: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendarNextButton as GhostUnstyledCalendarNextButton } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed {@link GhostCalendarNextButton}. Without slot content it renders
|
|
5
|
+
* a decorative, CSS-painted chevron (ADR 0013); the button keeps its
|
|
6
|
+
* `aria-label` ("Next month" by default) as the accessible name. Pass
|
|
7
|
+
* slot content to replace the chevron.
|
|
8
|
+
*/
|
|
9
|
+
export const GhostCalendarNextButton = defineComponent({
|
|
10
|
+
name: 'GhostCalendarNextButton',
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
setup(_props, { attrs, slots }) {
|
|
13
|
+
return () => h(GhostUnstyledCalendarNextButton, { ...attrs, 'data-themed': '' }, {
|
|
14
|
+
default: slots['default'] ??
|
|
15
|
+
(() => h('span', { 'data-part': 'icon', 'aria-hidden': 'true' })),
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Themed {@link GhostCalendarPrevButton}. Without slot content it renders
|
|
3
|
+
* a decorative, CSS-painted chevron (ADR 0013); the button keeps its
|
|
4
|
+
* `aria-label` ("Previous month" by default) as the accessible name. Pass
|
|
5
|
+
* slot content to replace the chevron.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GhostCalendarPrevButton: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendarPrevButton as GhostUnstyledCalendarPrevButton } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed {@link GhostCalendarPrevButton}. Without slot content it renders
|
|
5
|
+
* a decorative, CSS-painted chevron (ADR 0013); the button keeps its
|
|
6
|
+
* `aria-label` ("Previous month" by default) as the accessible name. Pass
|
|
7
|
+
* slot content to replace the chevron.
|
|
8
|
+
*/
|
|
9
|
+
export const GhostCalendarPrevButton = defineComponent({
|
|
10
|
+
name: 'GhostCalendarPrevButton',
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
setup(_props, { attrs, slots }) {
|
|
13
|
+
return () => h(GhostUnstyledCalendarPrevButton, { ...attrs, 'data-themed': '' }, {
|
|
14
|
+
default: slots['default'] ??
|
|
15
|
+
(() => h('span', { 'data-part': 'icon', 'aria-hidden': 'true' })),
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
});
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type CalendarDate, type GhostCalendarSelectionMode, type GhostCalendarSlotProps, type GhostCalendarValue } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed {@link GhostCalendar} root wrapper. The headless root renders no
|
|
5
|
+
* element, so this wrapper adds a block `.ghost-themed-scope` container that
|
|
6
|
+
* activates the calendar recipe for every part, including the weekday header,
|
|
7
|
+
* week rows, and cells the grid renders itself. Consumer `class` and `style`
|
|
8
|
+
* land on that container; other attributes and props reach the headless root.
|
|
9
|
+
*/
|
|
10
|
+
export declare const GhostCalendar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<GhostCalendarValue | null | undefined>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
defaultValue: {
|
|
16
|
+
type: PropType<GhostCalendarValue | undefined>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
selectionMode: {
|
|
20
|
+
type: PropType<GhostCalendarSelectionMode>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
minValue: {
|
|
24
|
+
type: PropType<CalendarDate | undefined>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
maxValue: {
|
|
28
|
+
type: PropType<CalendarDate | undefined>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
locale: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
weekStartsOn: {
|
|
36
|
+
type: PropType<number | undefined>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
visibleMonth: {
|
|
40
|
+
type: PropType<CalendarDate | undefined>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
defaultVisibleMonth: {
|
|
44
|
+
type: PropType<CalendarDate | undefined>;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
today: {
|
|
48
|
+
type: PropType<CalendarDate | undefined>;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:visibleMonth")[], "select" | "update:modelValue" | "update:visibleMonth", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: PropType<GhostCalendarValue | null | undefined>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
defaultValue: {
|
|
63
|
+
type: PropType<GhostCalendarValue | undefined>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
selectionMode: {
|
|
67
|
+
type: PropType<GhostCalendarSelectionMode>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
minValue: {
|
|
71
|
+
type: PropType<CalendarDate | undefined>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
maxValue: {
|
|
75
|
+
type: PropType<CalendarDate | undefined>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
locale: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
weekStartsOn: {
|
|
83
|
+
type: PropType<number | undefined>;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
visibleMonth: {
|
|
87
|
+
type: PropType<CalendarDate | undefined>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
defaultVisibleMonth: {
|
|
91
|
+
type: PropType<CalendarDate | undefined>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
today: {
|
|
95
|
+
type: PropType<CalendarDate | undefined>;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
disabled: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
}>> & Readonly<{
|
|
103
|
+
onSelect?: (...args: any[]) => any;
|
|
104
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
105
|
+
"onUpdate:visibleMonth"?: (...args: any[]) => any;
|
|
106
|
+
}>, {
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
modelValue: GhostCalendarValue | null;
|
|
109
|
+
defaultValue: GhostCalendarValue;
|
|
110
|
+
selectionMode: GhostCalendarSelectionMode;
|
|
111
|
+
minValue: CalendarDate | undefined;
|
|
112
|
+
maxValue: CalendarDate | undefined;
|
|
113
|
+
locale: string;
|
|
114
|
+
weekStartsOn: number | undefined;
|
|
115
|
+
visibleMonth: CalendarDate | undefined;
|
|
116
|
+
defaultVisibleMonth: CalendarDate | undefined;
|
|
117
|
+
today: CalendarDate | undefined;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
export type { GhostCalendarSlotProps };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostCalendar as GhostUnstyledCalendar, } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed {@link GhostCalendar} root wrapper. The headless root renders no
|
|
5
|
+
* element, so this wrapper adds a block `.ghost-themed-scope` container that
|
|
6
|
+
* activates the calendar recipe for every part, including the weekday header,
|
|
7
|
+
* week rows, and cells the grid renders itself. Consumer `class` and `style`
|
|
8
|
+
* land on that container; other attributes and props reach the headless root.
|
|
9
|
+
*/
|
|
10
|
+
export const GhostCalendar = defineComponent({
|
|
11
|
+
name: 'GhostCalendar',
|
|
12
|
+
inheritAttrs: false,
|
|
13
|
+
props: {
|
|
14
|
+
// `null` is forwarded as a controlled empty selection; only `undefined`
|
|
15
|
+
// leaves the headless root uncontrolled.
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: undefined,
|
|
19
|
+
},
|
|
20
|
+
defaultValue: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: undefined,
|
|
23
|
+
},
|
|
24
|
+
selectionMode: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'single',
|
|
27
|
+
},
|
|
28
|
+
minValue: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: undefined,
|
|
31
|
+
},
|
|
32
|
+
maxValue: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: undefined,
|
|
35
|
+
},
|
|
36
|
+
locale: { type: String, default: 'en-US' },
|
|
37
|
+
weekStartsOn: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: undefined,
|
|
40
|
+
},
|
|
41
|
+
visibleMonth: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: undefined,
|
|
44
|
+
},
|
|
45
|
+
defaultVisibleMonth: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: undefined,
|
|
48
|
+
},
|
|
49
|
+
today: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: undefined,
|
|
52
|
+
},
|
|
53
|
+
disabled: { type: Boolean, default: false },
|
|
54
|
+
},
|
|
55
|
+
emits: ['update:modelValue', 'update:visibleMonth', 'select'],
|
|
56
|
+
setup(props, { attrs, emit, slots }) {
|
|
57
|
+
return () => {
|
|
58
|
+
const { class: scopeClass, style: scopeStyle, ...rootAttrs } = attrs;
|
|
59
|
+
const calendarProps = {
|
|
60
|
+
...rootAttrs,
|
|
61
|
+
selectionMode: props.selectionMode,
|
|
62
|
+
locale: props.locale,
|
|
63
|
+
disabled: props.disabled,
|
|
64
|
+
'onUpdate:modelValue': (value) => {
|
|
65
|
+
emit('update:modelValue', value);
|
|
66
|
+
},
|
|
67
|
+
'onUpdate:visibleMonth': (month) => {
|
|
68
|
+
emit('update:visibleMonth', month);
|
|
69
|
+
},
|
|
70
|
+
onSelect: (date) => {
|
|
71
|
+
emit('select', date);
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
if (props.modelValue !== undefined) {
|
|
75
|
+
calendarProps['modelValue'] = props.modelValue;
|
|
76
|
+
}
|
|
77
|
+
if (props.defaultValue !== undefined) {
|
|
78
|
+
calendarProps['defaultValue'] = props.defaultValue;
|
|
79
|
+
}
|
|
80
|
+
if (props.minValue !== undefined) {
|
|
81
|
+
calendarProps['minValue'] = props.minValue;
|
|
82
|
+
}
|
|
83
|
+
if (props.maxValue !== undefined) {
|
|
84
|
+
calendarProps['maxValue'] = props.maxValue;
|
|
85
|
+
}
|
|
86
|
+
if (props.weekStartsOn !== undefined) {
|
|
87
|
+
calendarProps['weekStartsOn'] = props.weekStartsOn;
|
|
88
|
+
}
|
|
89
|
+
if (props.visibleMonth !== undefined) {
|
|
90
|
+
calendarProps['visibleMonth'] = props.visibleMonth;
|
|
91
|
+
}
|
|
92
|
+
if (props.defaultVisibleMonth !== undefined) {
|
|
93
|
+
calendarProps['defaultVisibleMonth'] = props.defaultVisibleMonth;
|
|
94
|
+
}
|
|
95
|
+
if (props.today !== undefined) {
|
|
96
|
+
calendarProps['today'] = props.today;
|
|
97
|
+
}
|
|
98
|
+
return h('div', { class: ['ghost-themed-scope', scopeClass], style: scopeStyle }, [h(GhostUnstyledCalendar, calendarProps, slots)]);
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
});
|