@roku-ui/vue 0.8.2 → 0.8.4

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.
@@ -1,66 +1,88 @@
1
- type Option = {
1
+ declare const _default: <T extends string | number | symbol | {
2
+ [key: string]: any;
2
3
  id: number | string | symbol;
3
- label: string;
4
- } | string | symbol | number;
5
- declare const _default: import("vue").DefineComponent<{
6
- modelValue: globalThis.PropType<string | number | symbol | undefined>;
7
- size: {
8
- type: globalThis.PropType<"sm" | "md" | "lg">;
9
- default: string;
4
+ }>(__VLS_props: {
5
+ filter?: ((label: string, text: string) => boolean) | undefined;
6
+ onChange?: ((option: T | undefined) => any) | undefined;
7
+ onInput?: ((searchWord: string) => any) | undefined;
8
+ size?: "sm" | "md" | "lg" | undefined;
9
+ rounded?: string | number | undefined;
10
+ modelValue?: T | undefined;
11
+ placeholder?: string | undefined;
12
+ options?: T[] | undefined;
13
+ ariaLabel?: string | undefined;
14
+ noneText?: string | undefined;
15
+ notFoundText?: string | undefined;
16
+ searchable?: boolean | undefined;
17
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
18
+ attrs: any;
19
+ slots: {
20
+ none?(_: {}): any;
21
+ item?(_: {
22
+ data: T;
23
+ selected: boolean;
24
+ }): any;
25
+ "not-found"?(_: {}): any;
10
26
  };
11
- rounded: {
12
- type: globalThis.PropType<string | number>;
13
- default: string;
27
+ emit: ((evt: "input", searchWord: string) => void) & ((evt: "change", option: T | undefined) => void);
28
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
29
+ props: {
30
+ filter?: ((label: string, text: string) => boolean) | undefined;
31
+ onChange?: ((option: T | undefined) => any) | undefined;
32
+ onInput?: ((searchWord: string) => any) | undefined;
33
+ size?: "sm" | "md" | "lg" | undefined;
34
+ rounded?: string | number | undefined;
35
+ modelValue?: T | undefined;
36
+ placeholder?: string | undefined;
37
+ options?: T[] | undefined;
38
+ ariaLabel?: string | undefined;
39
+ noneText?: string | undefined;
40
+ notFoundText?: string | undefined;
41
+ searchable?: boolean | undefined;
42
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
43
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
44
+ attrs: any;
45
+ slots: {
46
+ none?(_: {}): any;
47
+ item?(_: {
48
+ data: T;
49
+ selected: boolean;
50
+ }): any;
51
+ "not-found"?(_: {}): any;
14
52
  };
15
- placeholder: {
16
- type: globalThis.PropType<string>;
17
- default: string;
18
- };
19
- options: {
20
- type: globalThis.PropType<Option[]>;
21
- default: () => never[];
22
- };
23
- ariaLabel: {
24
- type: globalThis.PropType<string>;
25
- };
26
- noneText: {
27
- type: globalThis.PropType<string>;
28
- default: string;
29
- };
30
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- change: (...args: any[]) => void;
32
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
33
- modelValue: globalThis.PropType<string | number | symbol | undefined>;
34
- size: {
35
- type: globalThis.PropType<"sm" | "md" | "lg">;
36
- default: string;
37
- };
38
- rounded: {
39
- type: globalThis.PropType<string | number>;
40
- default: string;
41
- };
42
- placeholder: {
43
- type: globalThis.PropType<string>;
44
- default: string;
45
- };
46
- options: {
47
- type: globalThis.PropType<Option[]>;
48
- default: () => never[];
49
- };
50
- ariaLabel: {
51
- type: globalThis.PropType<string>;
52
- };
53
- noneText: {
54
- type: globalThis.PropType<string>;
55
- default: string;
56
- };
57
- }>> & {
58
- onChange?: ((...args: any[]) => any) | undefined;
59
- }, {
60
- size: 'sm' | 'md' | 'lg';
61
- rounded: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
62
- placeholder: string;
63
- options: Option[];
64
- noneText: string;
65
- }, {}>;
53
+ emit: ((evt: "input", searchWord: string) => void) & ((evt: "change", option: T | undefined) => void);
54
+ }>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }> & {
57
+ __ctx?: {
58
+ props: {
59
+ filter?: ((label: string, text: string) => boolean) | undefined;
60
+ onChange?: ((option: T | undefined) => any) | undefined;
61
+ onInput?: ((searchWord: string) => any) | undefined;
62
+ size?: "sm" | "md" | "lg" | undefined;
63
+ rounded?: string | number | undefined;
64
+ modelValue?: T | undefined;
65
+ placeholder?: string | undefined;
66
+ options?: T[] | undefined;
67
+ ariaLabel?: string | undefined;
68
+ noneText?: string | undefined;
69
+ notFoundText?: string | undefined;
70
+ searchable?: boolean | undefined;
71
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
72
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
73
+ attrs: any;
74
+ slots: {
75
+ none?(_: {}): any;
76
+ item?(_: {
77
+ data: T;
78
+ selected: boolean;
79
+ }): any;
80
+ "not-found"?(_: {}): any;
81
+ };
82
+ emit: ((evt: "input", searchWord: string) => void) & ((evt: "change", option: T | undefined) => void);
83
+ } | undefined;
84
+ };
66
85
  export default _default;
86
+ type __VLS_Prettify<T> = {
87
+ [K in keyof T]: T[K];
88
+ } & {};
@@ -0,0 +1,10 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {}): any;
3
+ content?(_: {}): any;
4
+ }>;
5
+ export default _default;
6
+ type __VLS_WithTemplateSlots<T, S> = T & {
7
+ new (): {
8
+ $slots: S;
9
+ };
10
+ };
@@ -28,3 +28,4 @@ export { default as TabItem } from './TabItem.vue';
28
28
  export { default as Tabs } from './Tabs.vue';
29
29
  export { default as TextField } from './TextField.vue';
30
30
  export { default as ThemeProvider } from './ThemeProvider.vue';
31
+ export { default as Tooltip } from './Tooltip.vue';