@ghostvue/themes 0.1.0 → 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/dist/calm.css +24 -14
- package/dist/components.d.ts +7 -2
- package/dist/components.js +6 -1
- package/dist/default.css +1006 -752
- package/dist/define.js +21 -3
- package/dist/generated/tokens.d.ts +11 -0
- package/dist/generated/tokens.js +11 -0
- package/dist/ghost-checkbox-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -0
- package/dist/ghost-field.d.ts +12 -3
- package/dist/ghost-field.js +6 -1
- package/dist/ghost-select.d.ts +52 -113
- package/dist/ghost-select.js +45 -68
- 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-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -1
- package/dist/manifest.json +471 -11
- package/dist/mono.css +24 -14
- package/dist/recipes/checkbox-group.css +30 -0
- package/dist/recipes/command-palette.css +52 -0
- package/dist/recipes/context-menu.css +95 -184
- package/dist/recipes/data-table.css +151 -144
- package/dist/recipes/dialog.css +68 -10
- package/dist/recipes/drawer.css +109 -11
- package/dist/recipes/dropdown-menu.css +95 -189
- package/dist/recipes/hover-card.css +19 -0
- package/dist/recipes/menubar.css +110 -191
- package/dist/recipes/popover.css +19 -0
- package/dist/recipes/progress.css +7 -2
- package/dist/recipes/scroll-area.css +43 -2
- package/dist/recipes/segmented-control.css +62 -3
- package/dist/recipes/tags-input.css +120 -0
- package/dist/tokens/semantic.json +5 -0
- package/dist/tokens.css +24 -14
- package/dist/tokens.json +15 -0
- package/dist/vibrant.css +24 -14
- package/package.json +3 -3
|
@@ -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, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent, h, useTemplateRef, } from 'vue';
|
|
2
|
+
import { GhostTagsInput as GhostUnstyledTagsInput, } from '@ghostvue/vue';
|
|
3
|
+
/** The themed free-form tag editor, backed by the headless form control. */
|
|
4
|
+
export const GhostTagsInput = defineComponent({
|
|
5
|
+
name: 'GhostTagsInput',
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: undefined,
|
|
11
|
+
},
|
|
12
|
+
defaultValue: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default: () => [],
|
|
15
|
+
},
|
|
16
|
+
delimiters: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => [],
|
|
19
|
+
},
|
|
20
|
+
name: { type: String, default: undefined },
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
readonly: Boolean,
|
|
23
|
+
required: Boolean,
|
|
24
|
+
invalid: Boolean,
|
|
25
|
+
messages: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: undefined,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
emits: {
|
|
31
|
+
'update:modelValue': (value) => Array.isArray(value),
|
|
32
|
+
},
|
|
33
|
+
slots: Object,
|
|
34
|
+
setup(props, { attrs, emit, expose, slots }) {
|
|
35
|
+
const inner = useTemplateRef('inner');
|
|
36
|
+
expose({
|
|
37
|
+
get element() {
|
|
38
|
+
return inner.value?.element ?? null;
|
|
39
|
+
},
|
|
40
|
+
focus() {
|
|
41
|
+
inner.value?.focus();
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
return () => h(GhostUnstyledTagsInput, {
|
|
45
|
+
...attrs,
|
|
46
|
+
...props,
|
|
47
|
+
ref: 'inner',
|
|
48
|
+
'data-themed': '',
|
|
49
|
+
'onUpdate:modelValue': (value) => {
|
|
50
|
+
emit('update:modelValue', value);
|
|
51
|
+
},
|
|
52
|
+
}, slots);
|
|
53
|
+
},
|
|
54
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { GhostAvatar, type GhostAvatarExposed, type GhostAvatarSize, } from './g
|
|
|
7
7
|
export { GhostBreadcrumb, GhostBreadcrumbEllipsis, GhostBreadcrumbItem, GhostBreadcrumbLink, GhostBreadcrumbList, GhostBreadcrumbPage, GhostBreadcrumbSeparator, 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 './ghost-breadcrumb.js';
|
|
8
8
|
export { GhostButton, type GhostButtonExposed, type GhostButtonInteractive, type GhostButtonSize, type GhostButtonTone, type GhostButtonType, type GhostButtonVariant, } from './ghost-button.js';
|
|
9
9
|
export { GhostCheckbox, type GhostCheckboxExposed, type GhostCheckboxSize, type GhostCheckboxTone, } from './ghost-checkbox.js';
|
|
10
|
+
export { GhostCheckboxGroup, type GhostCheckboxGroupExposed, } from './ghost-checkbox-group.js';
|
|
10
11
|
export { GhostInteractiveSurface, type InteractiveEffect, type InteractiveSurfaceElement, type GhostInteractiveSurfaceExposed, } from './ghost-interactive-surface.js';
|
|
11
12
|
export { GhostKbd, type GhostKbdPlatform, type GhostKbdSize } from './ghost-kbd.js';
|
|
12
13
|
export { GhostLink, type GhostLinkAppearance, type GhostLinkExposed, type GhostLinkSize, type GhostLinkTone, type GhostLinkVariant, } from './ghost-link.js';
|
|
@@ -26,7 +27,10 @@ export { GhostDropdownMenuRadioGroup, type GhostDropdownMenuRadioGroupElement, }
|
|
|
26
27
|
export { GhostDropdownMenuLabel, type GhostDropdownMenuLabelElement, } from './ghost-dropdown-menu-label.js';
|
|
27
28
|
export { GhostDropdownMenuSeparator, type GhostDropdownMenuSeparatorElement, } from './ghost-dropdown-menu-separator.js';
|
|
28
29
|
export { GhostDropdownMenuGroup, type GhostDropdownMenuGroupElement, } from './ghost-dropdown-menu-group.js';
|
|
29
|
-
export {
|
|
30
|
+
export { GhostSubmenu, type GhostSubmenuProps } from './ghost-submenu.js';
|
|
31
|
+
export { GhostSubmenuTrigger, type GhostSubmenuTriggerProps } from './ghost-submenu-trigger.js';
|
|
32
|
+
export { GhostSubmenuContent, type GhostSubmenuContentProps } from './ghost-submenu-content.js';
|
|
33
|
+
export { GhostSelect, type GhostSelectExposed, type GhostSelectModelValue, type GhostSelectProps, type GhostSelectValueInput, } from './ghost-select.js';
|
|
30
34
|
export { GhostSelectTrigger, type GhostSelectTriggerElement, type GhostSelectTriggerExposed, } from './ghost-select-trigger.js';
|
|
31
35
|
export { GhostSelectContent, type GhostSelectContentElement, type GhostSelectContentExposed, type GhostSelectFlipOptions, type GhostSelectOffsetOptions, type GhostSelectPlacement, type GhostSelectShiftOptions, type GhostSelectStrategy, } from './ghost-select-content.js';
|
|
32
36
|
export { GhostSelectValue, GhostSelectOption, GhostSelectGroup, GhostSelectLabel, type GhostSelectMessages, useGhostSelect, } from '@ghostvue/vue';
|
|
@@ -48,10 +52,11 @@ export { GhostInput, type GhostInputExposed, type GhostInputSize, type GhostInpu
|
|
|
48
52
|
export { GhostInlineAlert, type GhostInlineAlertExposed, type GhostInlineAlertTone, type GhostInlineAlertVariant, } from './ghost-inline-alert.js';
|
|
49
53
|
export { GhostSwitch, type GhostSwitchExposed, type GhostSwitchSize, type GhostSwitchTone, } from './ghost-switch.js';
|
|
50
54
|
export { GhostTextarea, type GhostTextareaExposed, type GhostTextareaSize, } from './ghost-textarea.js';
|
|
55
|
+
export { GhostTagsInput, type GhostTagsInputExposed, type GhostTagsInputMessages, type GhostTagsInputProps } from './ghost-tags-input.js';
|
|
51
56
|
export { GhostCollapsible, type GhostCollapsibleSlotProps, } from './ghost-collapsible.js';
|
|
52
57
|
export { GhostCollapsibleTrigger, type GhostCollapsibleTriggerElement, type GhostCollapsibleTriggerExposed, } from './ghost-collapsible-trigger.js';
|
|
53
58
|
export { GhostCollapsibleContent, type GhostCollapsibleContentElement, type GhostCollapsibleContentExposed, } from './ghost-collapsible-content.js';
|
|
54
|
-
export { GhostField, GhostFieldControl, GhostFieldDescription, GhostFieldError, GhostFieldLabel, type GhostFieldControlSlotProps, type GhostFieldExposed, type GhostFieldLabelAssociate, } from './ghost-field.js';
|
|
59
|
+
export { GhostField, GhostFieldControl, GhostFieldDescription, GhostFieldError, GhostFieldLabel, type GhostFieldControlSlotProps, type GhostFieldErrorSlotProps, type GhostFieldExposed, type GhostFieldLabelAssociate, type GhostFieldSlotProps, } from './ghost-field.js';
|
|
55
60
|
export { GhostTabs, type GhostTabsSlotProps } from './ghost-tabs.js';
|
|
56
61
|
export { GhostTabsList, type GhostTabsListElement, type GhostTabsListExposed, } from './ghost-tabs-list.js';
|
|
57
62
|
export { GhostTabsTrigger, type GhostTabsTriggerElement, type GhostTabsTriggerExposed, } from './ghost-tabs-trigger.js';
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export { GhostAvatar, } from './ghost-avatar';
|
|
|
8
8
|
export { GhostBreadcrumb, GhostBreadcrumbEllipsis, GhostBreadcrumbItem, GhostBreadcrumbLink, GhostBreadcrumbList, GhostBreadcrumbPage, GhostBreadcrumbSeparator, } from './ghost-breadcrumb';
|
|
9
9
|
export { GhostButton, } from './ghost-button';
|
|
10
10
|
export { GhostCheckbox, } from './ghost-checkbox';
|
|
11
|
+
export { GhostCheckboxGroup, } from './ghost-checkbox-group';
|
|
11
12
|
export { GhostInteractiveSurface, } from './ghost-interactive-surface';
|
|
12
13
|
export { GhostKbd } from './ghost-kbd';
|
|
13
14
|
export { GhostLink, } from './ghost-link';
|
|
@@ -27,7 +28,10 @@ export { GhostDropdownMenuRadioGroup, } from './ghost-dropdown-menu-radio-group'
|
|
|
27
28
|
export { GhostDropdownMenuLabel, } from './ghost-dropdown-menu-label';
|
|
28
29
|
export { GhostDropdownMenuSeparator, } from './ghost-dropdown-menu-separator';
|
|
29
30
|
export { GhostDropdownMenuGroup, } from './ghost-dropdown-menu-group';
|
|
30
|
-
export {
|
|
31
|
+
export { GhostSubmenu } from './ghost-submenu';
|
|
32
|
+
export { GhostSubmenuTrigger } from './ghost-submenu-trigger';
|
|
33
|
+
export { GhostSubmenuContent } from './ghost-submenu-content';
|
|
34
|
+
export { GhostSelect, } from './ghost-select';
|
|
31
35
|
export { GhostSelectTrigger, } from './ghost-select-trigger';
|
|
32
36
|
export { GhostSelectContent, } from './ghost-select-content';
|
|
33
37
|
export { GhostSelectValue, GhostSelectOption, GhostSelectGroup, GhostSelectLabel, useGhostSelect, } from '@ghostvue/vue';
|
|
@@ -49,6 +53,7 @@ export { GhostInput, } from './ghost-input';
|
|
|
49
53
|
export { GhostInlineAlert, } from './ghost-inline-alert';
|
|
50
54
|
export { GhostSwitch, } from './ghost-switch';
|
|
51
55
|
export { GhostTextarea, } from './ghost-textarea';
|
|
56
|
+
export { GhostTagsInput } from './ghost-tags-input';
|
|
52
57
|
export { GhostCollapsible, } from './ghost-collapsible';
|
|
53
58
|
export { GhostCollapsibleTrigger, } from './ghost-collapsible-trigger';
|
|
54
59
|
export { GhostCollapsibleContent, } from './ghost-collapsible-content';
|