@typlog/ui 0.5.1 → 0.5.3
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.
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
13
13
|
variant: "surface" | "soft";
|
14
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
15
15
|
item?(_: {
|
16
|
-
|
16
|
+
value: AcceptableInputValue;
|
17
17
|
}): any;
|
18
18
|
}>;
|
19
19
|
export default _default;
|
@@ -1,143 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
import { Icon } from '@iconify/vue';
|
3
|
-
import { ComboboxItem, ComboboxItemIndicator, ComboboxItemProps } from 'reka-ui';
|
1
|
+
import { ComboboxItemProps } from 'reka-ui';
|
4
2
|
type __VLS_Props = ComboboxItemProps;
|
5
|
-
declare const forwarded: import('vue').ComputedRef<import('vue').DefineProps<import('@vue/shared').LooseRequired<__VLS_Props>, "asChild" | "disabled">>;
|
6
|
-
declare const primitiveElement: import('vue').Ref<ComponentPublicInstance | undefined, ComponentPublicInstance | undefined>;
|
7
3
|
declare function __VLS_template(): {
|
8
4
|
attrs: Partial<{}>;
|
9
5
|
slots: {
|
10
6
|
default?(_: {}): any;
|
11
7
|
};
|
12
|
-
refs: {
|
13
|
-
primitiveElement: ({
|
14
|
-
$: import('vue').ComponentInternalInstance;
|
15
|
-
$data: {};
|
16
|
-
$props: {
|
17
|
-
readonly textValue?: string | undefined;
|
18
|
-
readonly value: import('reka-ui').AcceptableValue;
|
19
|
-
readonly disabled?: boolean | undefined;
|
20
|
-
readonly asChild?: boolean | undefined;
|
21
|
-
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
22
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
23
|
-
$attrs: {
|
24
|
-
[x: string]: unknown;
|
25
|
-
};
|
26
|
-
$refs: {
|
27
|
-
[x: string]: unknown;
|
28
|
-
};
|
29
|
-
$slots: Readonly<{
|
30
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
31
|
-
}>;
|
32
|
-
$root: ComponentPublicInstance | null;
|
33
|
-
$parent: ComponentPublicInstance | null;
|
34
|
-
$host: Element | null;
|
35
|
-
$emit: (event: string, ...args: any[]) => void;
|
36
|
-
$el: any;
|
37
|
-
$options: import('vue').ComponentOptionsBase<Readonly<__VLS_Props> & Readonly<{}>, {
|
38
|
-
Icon: typeof Icon;
|
39
|
-
ComboboxItem: typeof ComboboxItem;
|
40
|
-
ComboboxItemIndicator: typeof ComboboxItemIndicator;
|
41
|
-
forwarded: typeof forwarded;
|
42
|
-
primitiveElement: typeof primitiveElement;
|
43
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
44
|
-
beforeCreate?: (() => void) | (() => void)[];
|
45
|
-
created?: (() => void) | (() => void)[];
|
46
|
-
beforeMount?: (() => void) | (() => void)[];
|
47
|
-
mounted?: (() => void) | (() => void)[];
|
48
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
49
|
-
updated?: (() => void) | (() => void)[];
|
50
|
-
activated?: (() => void) | (() => void)[];
|
51
|
-
deactivated?: (() => void) | (() => void)[];
|
52
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
53
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
54
|
-
destroyed?: (() => void) | (() => void)[];
|
55
|
-
unmounted?: (() => void) | (() => void)[];
|
56
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
57
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
58
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
59
|
-
};
|
60
|
-
$forceUpdate: () => void;
|
61
|
-
$nextTick: typeof import('vue').nextTick;
|
62
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
63
|
-
} & Readonly<{}> & Omit<Readonly<__VLS_Props> & Readonly<{}>, "forwarded" | "Icon" | "ComboboxItem" | "ComboboxItemIndicator" | "primitiveElement"> & import('vue').ShallowUnwrapRef<{
|
64
|
-
Icon: typeof Icon;
|
65
|
-
ComboboxItem: typeof ComboboxItem;
|
66
|
-
ComboboxItemIndicator: typeof ComboboxItemIndicator;
|
67
|
-
forwarded: typeof forwarded;
|
68
|
-
primitiveElement: typeof primitiveElement;
|
69
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
70
|
-
$slots: {
|
71
|
-
default?(_: {}): any;
|
72
|
-
};
|
73
|
-
}) | null;
|
74
|
-
};
|
8
|
+
refs: {};
|
75
9
|
rootEl: any;
|
76
10
|
};
|
77
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
78
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
79
|
-
primitiveElement: ({
|
80
|
-
$: import('vue').ComponentInternalInstance;
|
81
|
-
$data: {};
|
82
|
-
$props: {
|
83
|
-
readonly textValue?: string | undefined;
|
84
|
-
readonly value: import('reka-ui').AcceptableValue;
|
85
|
-
readonly disabled?: boolean | undefined;
|
86
|
-
readonly asChild?: boolean | undefined;
|
87
|
-
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
88
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
89
|
-
$attrs: {
|
90
|
-
[x: string]: unknown;
|
91
|
-
};
|
92
|
-
$refs: {
|
93
|
-
[x: string]: unknown;
|
94
|
-
};
|
95
|
-
$slots: Readonly<{
|
96
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
97
|
-
}>;
|
98
|
-
$root: ComponentPublicInstance | null;
|
99
|
-
$parent: ComponentPublicInstance | null;
|
100
|
-
$host: Element | null;
|
101
|
-
$emit: (event: string, ...args: any[]) => void;
|
102
|
-
$el: any;
|
103
|
-
$options: import('vue').ComponentOptionsBase<Readonly<__VLS_Props> & Readonly<{}>, {
|
104
|
-
Icon: typeof Icon;
|
105
|
-
ComboboxItem: typeof ComboboxItem;
|
106
|
-
ComboboxItemIndicator: typeof ComboboxItemIndicator;
|
107
|
-
forwarded: typeof forwarded;
|
108
|
-
primitiveElement: typeof primitiveElement;
|
109
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
110
|
-
beforeCreate?: (() => void) | (() => void)[];
|
111
|
-
created?: (() => void) | (() => void)[];
|
112
|
-
beforeMount?: (() => void) | (() => void)[];
|
113
|
-
mounted?: (() => void) | (() => void)[];
|
114
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
115
|
-
updated?: (() => void) | (() => void)[];
|
116
|
-
activated?: (() => void) | (() => void)[];
|
117
|
-
deactivated?: (() => void) | (() => void)[];
|
118
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
119
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
120
|
-
destroyed?: (() => void) | (() => void)[];
|
121
|
-
unmounted?: (() => void) | (() => void)[];
|
122
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
123
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
124
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
125
|
-
};
|
126
|
-
$forceUpdate: () => void;
|
127
|
-
$nextTick: typeof import('vue').nextTick;
|
128
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
129
|
-
} & Readonly<{}> & Omit<Readonly<__VLS_Props> & Readonly<{}>, "forwarded" | "Icon" | "ComboboxItem" | "ComboboxItemIndicator" | "primitiveElement"> & import('vue').ShallowUnwrapRef<{
|
130
|
-
Icon: typeof Icon;
|
131
|
-
ComboboxItem: typeof ComboboxItem;
|
132
|
-
ComboboxItemIndicator: typeof ComboboxItemIndicator;
|
133
|
-
forwarded: typeof forwarded;
|
134
|
-
primitiveElement: typeof primitiveElement;
|
135
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
136
|
-
$slots: {
|
137
|
-
default?(_: {}): any;
|
138
|
-
};
|
139
|
-
}) | null;
|
140
|
-
}, any>;
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
141
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
142
14
|
export default _default;
|
143
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { ComboboxRootProps as _ComboboxRootProps } from 'reka-ui';
|
3
3
|
import { ColorType } from './types';
|
4
4
|
export interface ComboboxRootProps extends _ComboboxRootProps {
|
5
5
|
size?: '1' | '2' | '3';
|
@@ -10,22 +10,21 @@ interface ComboboxRootContext {
|
|
10
10
|
size: Ref<string>;
|
11
11
|
color: Ref<ColorType | undefined>;
|
12
12
|
highContrast: Ref<boolean>;
|
13
|
-
items: Ref<Map<AcceptableValue, string>>;
|
14
13
|
}
|
15
14
|
export declare const injectComboboxRootContext: <T extends ComboboxRootContext | null | undefined = ComboboxRootContext>(fallback?: T | undefined) => T extends null ? ComboboxRootContext | null : ComboboxRootContext, provideComboboxRootContext: (contextValue: ComboboxRootContext) => ComboboxRootContext;
|
16
15
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
17
|
-
"update:modelValue": (value: AcceptableValue) => any;
|
16
|
+
"update:modelValue": (value: import('reka-ui').AcceptableValue) => any;
|
18
17
|
"update:open": (value: boolean) => any;
|
19
18
|
highlight: (payload: {
|
20
19
|
ref: HTMLElement;
|
21
|
-
value: AcceptableValue;
|
20
|
+
value: import('reka-ui').AcceptableValue;
|
22
21
|
} | undefined) => any;
|
23
22
|
}, string, import('vue').PublicProps, Readonly<ComboboxRootProps> & Readonly<{
|
24
|
-
"onUpdate:modelValue"?: ((value: AcceptableValue) => any) | undefined;
|
23
|
+
"onUpdate:modelValue"?: ((value: import('reka-ui').AcceptableValue) => any) | undefined;
|
25
24
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
26
25
|
onHighlight?: ((payload: {
|
27
26
|
ref: HTMLElement;
|
28
|
-
value: AcceptableValue;
|
27
|
+
value: import('reka-ui').AcceptableValue;
|
29
28
|
} | undefined) => any) | undefined;
|
30
29
|
}>, {
|
31
30
|
size: "1" | "2" | "3";
|