@ghostvue/themes 0.0.0-stage → 0.2.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 +1909 -0
- package/dist/components.d.ts +153 -0
- package/dist/components.js +148 -0
- package/dist/default.css +11271 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5952 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5286 -0
- package/dist/generated/tokens.js +5283 -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-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -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 +53 -0
- package/dist/ghost-field.js +49 -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 +54 -0
- package/dist/ghost-select.js +51 -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-submenu-content.d.ts +22 -0
- package/dist/ghost-submenu-content.js +17 -0
- package/dist/ghost-submenu-trigger.d.ts +11 -0
- package/dist/ghost-submenu-trigger.js +11 -0
- package/dist/ghost-submenu.d.ts +1 -0
- package/dist/ghost-submenu.js +1 -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-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -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 +153 -0
- package/dist/index.js +149 -0
- package/dist/manifest.json +6835 -0
- package/dist/mono.css +1874 -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-group.css +30 -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 +296 -0
- package/dist/recipes/context-menu.css +138 -0
- package/dist/recipes/data-table.css +462 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +199 -0
- package/dist/recipes/drawer.css +436 -0
- package/dist/recipes/dropdown-menu.css +138 -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 +83 -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 +161 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +102 -0
- package/dist/recipes/progress.css +124 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +72 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +237 -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/tags-input.css +120 -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 +1656 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1874 -0
- package/dist/tokens.json +6152 -0
- package/dist/vibrant.css +1874 -0
- package/package.json +75 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostSubmenuTrigger as UnstyledSubmenuTrigger } from '@ghostvue/vue';
|
|
3
|
+
/** Themed menu item that opens a submenu. */
|
|
4
|
+
export const GhostSubmenuTrigger = defineComponent({
|
|
5
|
+
name: 'GhostSubmenuTrigger',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: { disabled: Boolean },
|
|
8
|
+
setup(props, { attrs, slots }) {
|
|
9
|
+
return () => h(UnstyledSubmenuTrigger, { ...attrs, ...props, 'data-themed': '' }, slots);
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GhostSubmenu, type GhostSubmenuProps } from '@ghostvue/vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GhostSubmenu } from '@ghostvue/vue';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostSwitchExposed } from '@ghostvue/vue';
|
|
3
|
+
/** Visual size. Omitting it selects `md`. */
|
|
4
|
+
export type GhostSwitchSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
/** Semantic color of the on track. Omitting it selects `accent`. */
|
|
6
|
+
export type GhostSwitchTone = 'accent' | 'neutral' | 'danger';
|
|
7
|
+
/**
|
|
8
|
+
* Themed wrapper: visual props as `data-*`, instance-scoped CSS. Behavior stays
|
|
9
|
+
* on the unstyled primitive; native attrs fall through.
|
|
10
|
+
*/
|
|
11
|
+
export declare const GhostSwitch: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: PropType<boolean | undefined>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
readonly: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
name: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
form: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: PropType<GhostSwitchSize>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
tone: {
|
|
45
|
+
type: PropType<GhostSwitchTone>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
'update:modelValue': (checked: boolean) => boolean;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: PropType<boolean | undefined>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
defaultValue: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
disabled: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
readonly: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
name: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
form: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
size: {
|
|
82
|
+
type: PropType<GhostSwitchSize>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
tone: {
|
|
86
|
+
type: PropType<GhostSwitchTone>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{
|
|
90
|
+
"onUpdate:modelValue"?: (checked: boolean) => any;
|
|
91
|
+
}>, {
|
|
92
|
+
name: string;
|
|
93
|
+
form: string;
|
|
94
|
+
size: GhostSwitchSize;
|
|
95
|
+
value: string;
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
modelValue: boolean | undefined;
|
|
98
|
+
defaultValue: boolean;
|
|
99
|
+
tone: GhostSwitchTone;
|
|
100
|
+
readonly: boolean;
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
export type { GhostSwitchExposed };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostSwitch as GhostUnstyledSwitch, } 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 GhostSwitch = defineComponent({
|
|
8
|
+
name: 'GhostSwitch',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: undefined,
|
|
14
|
+
},
|
|
15
|
+
defaultValue: { type: Boolean, default: false },
|
|
16
|
+
disabled: { type: Boolean, default: false },
|
|
17
|
+
readonly: { type: Boolean, default: false },
|
|
18
|
+
name: { type: String, default: undefined },
|
|
19
|
+
value: { type: String, default: 'on' },
|
|
20
|
+
form: { type: String, default: undefined },
|
|
21
|
+
size: { type: String, default: 'md' },
|
|
22
|
+
tone: { type: String, default: 'accent' },
|
|
23
|
+
},
|
|
24
|
+
emits: {
|
|
25
|
+
'update:modelValue': (checked) => typeof checked === 'boolean',
|
|
26
|
+
},
|
|
27
|
+
setup(props, { attrs, emit, slots, expose }) {
|
|
28
|
+
const inner = ref(null);
|
|
29
|
+
expose({
|
|
30
|
+
get element() {
|
|
31
|
+
return inner.value?.element ?? null;
|
|
32
|
+
},
|
|
33
|
+
get checked() {
|
|
34
|
+
return inner.value?.checked ?? false;
|
|
35
|
+
},
|
|
36
|
+
toggle() {
|
|
37
|
+
inner.value?.toggle();
|
|
38
|
+
},
|
|
39
|
+
focus(options) {
|
|
40
|
+
inner.value?.focus(options);
|
|
41
|
+
},
|
|
42
|
+
blur() {
|
|
43
|
+
inner.value?.blur();
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
return () => h('span', { class: 'ghost-themed-scope' }, [
|
|
47
|
+
h(GhostUnstyledSwitch, {
|
|
48
|
+
...attrs,
|
|
49
|
+
ref: inner,
|
|
50
|
+
...(props.modelValue === undefined
|
|
51
|
+
? {}
|
|
52
|
+
: { modelValue: props.modelValue }),
|
|
53
|
+
defaultValue: props.defaultValue,
|
|
54
|
+
disabled: props.disabled,
|
|
55
|
+
readonly: props.readonly,
|
|
56
|
+
...(props.name ? { name: props.name } : {}),
|
|
57
|
+
value: props.value,
|
|
58
|
+
...(props.form ? { form: props.form } : {}),
|
|
59
|
+
// CSS treats missing attributes as the defaults (md / accent).
|
|
60
|
+
'data-size': props.size === 'md' ? undefined : props.size,
|
|
61
|
+
'data-tone': props.tone === 'accent' ? undefined : props.tone,
|
|
62
|
+
'onUpdate:modelValue': (next) => {
|
|
63
|
+
emit('update:modelValue', next);
|
|
64
|
+
},
|
|
65
|
+
}, slots),
|
|
66
|
+
]);
|
|
67
|
+
},
|
|
68
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type GhostTableExposed } from '@ghostvue/vue';
|
|
2
|
+
/**
|
|
3
|
+
* Themed {@link GhostTable} root. Sub-parts stay unstyled; recipes target
|
|
4
|
+
* `data-part` under `.ghost-themed-scope`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const GhostTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
containHorizontal: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
scrollLabel: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
containHorizontal: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
scrollLabel: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
containHorizontal: boolean;
|
|
28
|
+
scrollLabel: string;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export type { GhostTableExposed };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostTable as GhostUnstyledTable, } from '@ghostvue/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Themed {@link GhostTable} root. Sub-parts stay unstyled; recipes target
|
|
5
|
+
* `data-part` under `.ghost-themed-scope`.
|
|
6
|
+
*/
|
|
7
|
+
export const GhostTable = defineComponent({
|
|
8
|
+
name: 'GhostTable',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
containHorizontal: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false,
|
|
14
|
+
},
|
|
15
|
+
scrollLabel: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: undefined,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
setup(props, { attrs, slots, expose }) {
|
|
21
|
+
const inner = ref(null);
|
|
22
|
+
expose({
|
|
23
|
+
get element() {
|
|
24
|
+
return inner.value?.element ?? null;
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return () => h('div', { class: 'ghost-themed-scope' }, [
|
|
28
|
+
h(GhostUnstyledTable, {
|
|
29
|
+
...attrs,
|
|
30
|
+
containHorizontal: props.containHorizontal,
|
|
31
|
+
...(props.scrollLabel ? { scrollLabel: props.scrollLabel } : {}),
|
|
32
|
+
ref: inner,
|
|
33
|
+
}, slots),
|
|
34
|
+
]);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostTabsContentElement, type GhostTabsContentExposed } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsContent} wrapper. */
|
|
4
|
+
export declare const GhostTabsContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
as: {
|
|
6
|
+
type: PropType<GhostTabsContentElement>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
value: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
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<GhostTabsContentElement>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
value: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{}>, {
|
|
25
|
+
as: GhostTabsContentElement;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export type { GhostTabsContentElement, GhostTabsContentExposed };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostTabsContent as GhostUnstyledTabsContent, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsContent} wrapper. */
|
|
4
|
+
export const GhostTabsContent = defineComponent({
|
|
5
|
+
name: 'GhostTabsContent',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object, Function],
|
|
10
|
+
default: 'div',
|
|
11
|
+
},
|
|
12
|
+
value: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
setup(props, { attrs, slots, expose }) {
|
|
18
|
+
const inner = ref(null);
|
|
19
|
+
expose({
|
|
20
|
+
get element() {
|
|
21
|
+
return inner.value?.element ?? null;
|
|
22
|
+
},
|
|
23
|
+
focus(options) {
|
|
24
|
+
inner.value?.focus(options);
|
|
25
|
+
},
|
|
26
|
+
blur() {
|
|
27
|
+
inner.value?.blur();
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
return () => h(GhostUnstyledTabsContent, {
|
|
31
|
+
...attrs,
|
|
32
|
+
ref: inner,
|
|
33
|
+
as: props.as,
|
|
34
|
+
value: props.value,
|
|
35
|
+
'data-themed': '',
|
|
36
|
+
}, slots);
|
|
37
|
+
},
|
|
38
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostTabsListElement, type GhostTabsListExposed } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsList} wrapper. */
|
|
4
|
+
export declare const GhostTabsList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
as: {
|
|
6
|
+
type: PropType<GhostTabsListElement>;
|
|
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<GhostTabsListElement>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{}>, {
|
|
17
|
+
as: GhostTabsListElement;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export type { GhostTabsListElement, GhostTabsListExposed };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostTabsList as GhostUnstyledTabsList, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsList} wrapper. */
|
|
4
|
+
export const GhostTabsList = defineComponent({
|
|
5
|
+
name: 'GhostTabsList',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object, Function],
|
|
10
|
+
default: 'div',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
setup(props, { attrs, slots, expose }) {
|
|
14
|
+
const inner = ref(null);
|
|
15
|
+
expose({
|
|
16
|
+
get element() {
|
|
17
|
+
return inner.value?.element ?? null;
|
|
18
|
+
},
|
|
19
|
+
focus(options) {
|
|
20
|
+
inner.value?.focus(options);
|
|
21
|
+
},
|
|
22
|
+
blur() {
|
|
23
|
+
inner.value?.blur();
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
return () => h(GhostUnstyledTabsList, {
|
|
27
|
+
...attrs,
|
|
28
|
+
ref: inner,
|
|
29
|
+
as: props.as,
|
|
30
|
+
'data-themed': '',
|
|
31
|
+
}, slots);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostTabsTriggerElement, type GhostTabsTriggerExposed } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsTrigger} wrapper. */
|
|
4
|
+
export declare const GhostTabsTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
as: {
|
|
6
|
+
type: PropType<GhostTabsTriggerElement>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
value: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
as: {
|
|
21
|
+
type: PropType<GhostTabsTriggerElement>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {
|
|
33
|
+
as: GhostTabsTriggerElement;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export type { GhostTabsTriggerElement, GhostTabsTriggerExposed };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { GhostTabsTrigger as GhostUnstyledTabsTrigger, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabsTrigger} wrapper. */
|
|
4
|
+
export const GhostTabsTrigger = defineComponent({
|
|
5
|
+
name: 'GhostTabsTrigger',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: [String, Object, Function],
|
|
10
|
+
default: 'button',
|
|
11
|
+
},
|
|
12
|
+
value: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
setup(props, { attrs, slots, expose }) {
|
|
22
|
+
const inner = ref(null);
|
|
23
|
+
expose({
|
|
24
|
+
get element() {
|
|
25
|
+
return inner.value?.element ?? null;
|
|
26
|
+
},
|
|
27
|
+
focus(options) {
|
|
28
|
+
inner.value?.focus(options);
|
|
29
|
+
},
|
|
30
|
+
blur() {
|
|
31
|
+
inner.value?.blur();
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
return () => h(GhostUnstyledTabsTrigger, {
|
|
35
|
+
...attrs,
|
|
36
|
+
ref: inner,
|
|
37
|
+
as: props.as,
|
|
38
|
+
value: props.value,
|
|
39
|
+
disabled: props.disabled,
|
|
40
|
+
'data-themed': '',
|
|
41
|
+
}, slots);
|
|
42
|
+
},
|
|
43
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type GhostTabsActivationMode, type GhostTabsOrientation, type GhostTabsSlotProps } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabs} root wrapper. */
|
|
4
|
+
export declare const GhostTabs: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: PropType<string | undefined>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
type: PropType<string | undefined>;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
activationMode: {
|
|
14
|
+
type: PropType<GhostTabsActivationMode>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
orientation: {
|
|
18
|
+
type: PropType<GhostTabsOrientation>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
dir: {
|
|
22
|
+
type: PropType<"ltr" | "rtl">;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
'update:modelValue': (value: string) => boolean;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: PropType<string | undefined>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
defaultValue: {
|
|
35
|
+
type: PropType<string | undefined>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
activationMode: {
|
|
39
|
+
type: PropType<GhostTabsActivationMode>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
orientation: {
|
|
43
|
+
type: PropType<GhostTabsOrientation>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
dir: {
|
|
47
|
+
type: PropType<"ltr" | "rtl">;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
52
|
+
}>, {
|
|
53
|
+
modelValue: string | undefined;
|
|
54
|
+
defaultValue: string | undefined;
|
|
55
|
+
dir: "ltr" | "rtl";
|
|
56
|
+
orientation: GhostTabsOrientation;
|
|
57
|
+
activationMode: GhostTabsActivationMode;
|
|
58
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
export type { GhostTabsSlotProps };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
import { GhostTabs as GhostUnstyledTabs, } from '@ghostvue/vue';
|
|
3
|
+
/** Themed {@link GhostTabs} root wrapper. */
|
|
4
|
+
export const GhostTabs = defineComponent({
|
|
5
|
+
name: 'GhostTabs',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: undefined,
|
|
11
|
+
},
|
|
12
|
+
defaultValue: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: undefined,
|
|
15
|
+
},
|
|
16
|
+
activationMode: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'automatic',
|
|
19
|
+
},
|
|
20
|
+
orientation: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'horizontal',
|
|
23
|
+
},
|
|
24
|
+
dir: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: undefined,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
emits: {
|
|
30
|
+
'update:modelValue': (value) => typeof value === 'string',
|
|
31
|
+
},
|
|
32
|
+
setup(props, { attrs, emit, slots }) {
|
|
33
|
+
return () => h(GhostUnstyledTabs, {
|
|
34
|
+
...attrs,
|
|
35
|
+
modelValue: props.modelValue,
|
|
36
|
+
defaultValue: props.defaultValue,
|
|
37
|
+
activationMode: props.activationMode,
|
|
38
|
+
orientation: props.orientation,
|
|
39
|
+
dir: props.dir,
|
|
40
|
+
'onUpdate:modelValue': (value) => {
|
|
41
|
+
emit('update:modelValue', value);
|
|
42
|
+
},
|
|
43
|
+
}, slots);
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type PropType, type SlotsType } from 'vue';
|
|
2
|
+
import { type GhostTagsInputExposed, type GhostTagsInputMessages, type GhostTagsInputProps } from '@ghostvue/vue';
|
|
3
|
+
/** The themed free-form tag editor, backed by the headless form control. */
|
|
4
|
+
export declare const GhostTagsInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: PropType<readonly string[]>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
type: PropType<readonly string[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
delimiters: {
|
|
14
|
+
type: PropType<readonly ("," | ";")[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
name: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
disabled: BooleanConstructor;
|
|
22
|
+
readonly: BooleanConstructor;
|
|
23
|
+
required: BooleanConstructor;
|
|
24
|
+
invalid: BooleanConstructor;
|
|
25
|
+
messages: {
|
|
26
|
+
type: PropType<Partial<GhostTagsInputMessages>>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
'update:modelValue': (value: string[]) => boolean;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: PropType<readonly string[]>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
defaultValue: {
|
|
39
|
+
type: PropType<readonly string[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
delimiters: {
|
|
43
|
+
type: PropType<readonly ("," | ";")[]>;
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
disabled: BooleanConstructor;
|
|
51
|
+
readonly: BooleanConstructor;
|
|
52
|
+
required: BooleanConstructor;
|
|
53
|
+
invalid: BooleanConstructor;
|
|
54
|
+
messages: {
|
|
55
|
+
type: PropType<Partial<GhostTagsInputMessages>>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
"onUpdate:modelValue"?: (value: string[]) => any;
|
|
60
|
+
}>, {
|
|
61
|
+
name: string;
|
|
62
|
+
invalid: boolean;
|
|
63
|
+
delimiters: readonly ("," | ";")[];
|
|
64
|
+
required: boolean;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
modelValue: readonly string[];
|
|
67
|
+
defaultValue: readonly string[];
|
|
68
|
+
messages: Partial<GhostTagsInputMessages>;
|
|
69
|
+
readonly: boolean;
|
|
70
|
+
}, SlotsType<{
|
|
71
|
+
tag: {
|
|
72
|
+
value: string;
|
|
73
|
+
};
|
|
74
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
|
+
export type { GhostTagsInputExposed, GhostTagsInputMessages, GhostTagsInputProps, };
|