@roku-ui/vue 0.13.0 → 0.14.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/components/AspectRatio.vue.d.ts +11 -28
- package/dist/components/Avatar.vue.d.ts +4 -27
- package/dist/components/Btn.vue.d.ts +21 -46
- package/dist/components/BtnGroup.vue.d.ts +5 -28
- package/dist/components/ChatContainer.vue.d.ts +8 -3
- package/dist/components/ChatMessage.vue.d.ts +16 -38
- package/dist/components/ChatSystem.vue.d.ts +18 -34
- package/dist/components/Chip.vue.d.ts +28 -46
- package/dist/components/ColorInput.vue.d.ts +7 -13
- package/dist/components/ColorSwatch.vue.d.ts +5 -27
- package/dist/components/Drawer.vue.d.ts +12 -32
- package/dist/components/Dropzone.vue.d.ts +16 -32
- package/dist/components/FullscreenOverlay.vue.d.ts +14 -30
- package/dist/components/Image.vue.d.ts +4 -27
- package/dist/components/Indicator.vue.d.ts +13 -33
- package/dist/components/Modal.vue.d.ts +12 -30
- package/dist/components/Notification.vue.d.ts +14 -40
- package/dist/components/NotificationSystem.vue.d.ts +4 -35
- package/dist/components/Overlay.vue.d.ts +14 -34
- package/dist/components/Paper.vue.d.ts +18 -43
- package/dist/components/PinInput.vue.d.ts +4 -25
- package/dist/components/Popover.vue.d.ts +25 -43
- package/dist/components/Progress.vue.d.ts +9 -41
- package/dist/components/Rating.vue.d.ts +11 -29
- package/dist/components/RokuProvider.vue.d.ts +12 -53
- package/dist/components/SchemeSwitch.vue.d.ts +1 -1
- package/dist/components/ScrollArea.vue.d.ts +16 -31
- package/dist/components/Select.vue.d.ts +13 -15
- package/dist/components/SelectArea.vue.d.ts +9 -30
- package/dist/components/Slider.vue.d.ts +5 -38
- package/dist/components/Switch.vue.d.ts +11 -34
- package/dist/components/TabItem.vue.d.ts +13 -27
- package/dist/components/Tabs.vue.d.ts +14 -28
- package/dist/components/Tag.vue.d.ts +17 -35
- package/dist/components/TextField.vue.d.ts +16 -34
- package/dist/components/ThemeProvider.vue.d.ts +10 -14
- package/dist/components/Tooltip.vue.d.ts +15 -28
- package/dist/composables/dom.d.ts +2 -2
- package/dist/composables/index.d.ts +11 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3033 -2720
- package/dist/index.umd.cjs +1 -1
- package/dist/shared/index.d.ts +88 -495
- package/dist/style.css +1 -1
- package/dist/test/App.vue.d.ts +1 -1
- package/dist/test/demo/PopoverDemo.vue.d.ts +1 -1
- package/dist/test/demo/RatingDemo.vue.d.ts +1 -1
- package/dist/test/demo/SelectAreaDemo.vue.d.ts +1 -1
- package/dist/test/demo/TagsDemo.vue.d.ts +1 -1
- package/dist/test/demo/WaterfallDemo.vue.d.ts +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/utils/classGenerator.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/notifications.d.ts +10 -1
- package/dist/utils/theme.d.ts +5 -5
- package/package.json +19 -21
|
@@ -6,40 +6,26 @@ type __VLS_PublicProps = {
|
|
|
6
6
|
modelValue?: string | number | symbol;
|
|
7
7
|
} & typeof __VLS_typeProps;
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
tabRef: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
attrs: Partial<{}>;
|
|
10
16
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
|
-
direction: string;
|
|
17
|
-
}>>> & {
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (modelValue: string | number | symbol) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
21
|
"onUpdate:modelValue"?: ((modelValue: string | number | symbol) => any) | undefined;
|
|
19
|
-
}
|
|
22
|
+
}>, {
|
|
20
23
|
direction: "horizontal" | "vertical";
|
|
21
|
-
}, {}>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
26
|
export default _default;
|
|
24
|
-
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
-
default: D[K];
|
|
27
|
-
}> : P[K];
|
|
28
|
-
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
28
|
new (): {
|
|
34
29
|
$slots: S;
|
|
35
30
|
};
|
|
36
31
|
};
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,54 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BtnVariant } from '../types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
"left-icon"?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
"right-icon"?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
6
10
|
};
|
|
7
|
-
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
8
13
|
color?: string;
|
|
9
|
-
variant?:
|
|
14
|
+
variant?: BtnVariant;
|
|
10
15
|
rounded?: "none" | "sm" | "md" | "lg" | "full" | string | number;
|
|
11
16
|
size?: "sm" | "md" | "lg";
|
|
12
17
|
leftIcon?: string;
|
|
13
18
|
rightIcon?: string;
|
|
14
|
-
}
|
|
15
|
-
variant: string;
|
|
16
|
-
rounded: string;
|
|
17
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
19
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
18
20
|
color?: string;
|
|
19
|
-
variant?:
|
|
21
|
+
variant?: BtnVariant;
|
|
20
22
|
rounded?: "none" | "sm" | "md" | "lg" | "full" | string | number;
|
|
21
23
|
size?: "sm" | "md" | "lg";
|
|
22
24
|
leftIcon?: string;
|
|
23
25
|
rightIcon?: string;
|
|
24
|
-
}>, {
|
|
25
|
-
variant:
|
|
26
|
-
rounded: string;
|
|
27
|
-
}>>>, {
|
|
28
|
-
variant: Variant;
|
|
26
|
+
}> & Readonly<{}>, {
|
|
27
|
+
variant: BtnVariant;
|
|
29
28
|
rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
|
|
30
|
-
}, {}>;
|
|
31
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
31
|
export default _default;
|
|
33
|
-
type __VLS_WithDefaults<P, D> = {
|
|
34
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
-
default: D[K];
|
|
36
|
-
}> : P[K];
|
|
37
|
-
};
|
|
38
|
-
type __VLS_Prettify<T> = {
|
|
39
|
-
[K in keyof T]: T[K];
|
|
40
|
-
} & {};
|
|
41
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
33
|
new (): {
|
|
43
34
|
$slots: S;
|
|
44
35
|
};
|
|
45
36
|
};
|
|
46
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
-
type __VLS_TypePropsToOption<T> = {
|
|
48
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
-
} : {
|
|
51
|
-
type: import('vue').PropType<T[K]>;
|
|
52
|
-
required: true;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -13,48 +13,30 @@ type __VLS_PublicProps = {
|
|
|
13
13
|
modelValue?: string | number;
|
|
14
14
|
} & typeof __VLS_typeProps;
|
|
15
15
|
declare function __VLS_template(): {
|
|
16
|
-
|
|
16
|
+
slots: {
|
|
17
|
+
label?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {
|
|
20
|
+
input: HTMLInputElement;
|
|
21
|
+
};
|
|
22
|
+
attrs: Partial<{}>;
|
|
17
23
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (modelValue: string | number) => void;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
27
|
-
color: string;
|
|
28
|
-
rounded: string;
|
|
29
|
-
size: string;
|
|
30
|
-
}>>> & {
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
26
|
+
el: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (modelValue: string | number) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
30
|
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
32
|
-
}
|
|
31
|
+
}>, {
|
|
33
32
|
size: "sm" | "md" | "lg";
|
|
34
33
|
color: "primary" | "secondary" | "tertiary" | "error";
|
|
35
34
|
rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
|
|
36
|
-
}, {}>;
|
|
37
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
37
|
export default _default;
|
|
39
|
-
type __VLS_WithDefaults<P, D> = {
|
|
40
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
-
default: D[K];
|
|
42
|
-
}> : P[K];
|
|
43
|
-
};
|
|
44
|
-
type __VLS_Prettify<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
47
38
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
39
|
new (): {
|
|
49
40
|
$slots: S;
|
|
50
41
|
};
|
|
51
42
|
};
|
|
52
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
-
type __VLS_TypePropsToOption<T> = {
|
|
54
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
-
} : {
|
|
57
|
-
type: import('vue').PropType<T[K]>;
|
|
58
|
-
required: true;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { ThemeData } from '..';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
4
8
|
};
|
|
5
|
-
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
6
11
|
theme?: ThemeData;
|
|
7
12
|
scheme?: string;
|
|
8
|
-
}
|
|
13
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
9
14
|
theme?: ThemeData;
|
|
10
15
|
scheme?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
18
|
export default _default;
|
|
14
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
20
|
new (): {
|
|
16
21
|
$slots: S;
|
|
17
22
|
};
|
|
18
23
|
};
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToOption<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,39 +1,26 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
content?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
hoverableRef: HTMLDivElement;
|
|
8
|
+
tooltipRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
attrs: Partial<{}>;
|
|
4
11
|
};
|
|
5
|
-
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
6
14
|
timeout?: number;
|
|
7
|
-
}
|
|
8
|
-
timeout: number;
|
|
9
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
16
|
timeout?: number;
|
|
11
|
-
}>, {
|
|
12
|
-
timeout: number;
|
|
13
|
-
}>>>, {
|
|
17
|
+
}> & Readonly<{}>, {
|
|
14
18
|
timeout: number;
|
|
15
|
-
}, {}>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
21
|
export default _default;
|
|
18
|
-
type __VLS_WithDefaults<P, D> = {
|
|
19
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
20
|
-
default: D[K];
|
|
21
|
-
}> : P[K];
|
|
22
|
-
};
|
|
23
|
-
type __VLS_Prettify<T> = {
|
|
24
|
-
[K in keyof T]: T[K];
|
|
25
|
-
} & {};
|
|
26
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
23
|
new (): {
|
|
28
24
|
$slots: S;
|
|
29
25
|
};
|
|
30
26
|
};
|
|
31
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
-
type __VLS_TypePropsToOption<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
-
} : {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaybeComputedElementRef } from '@vueuse/core';
|
|
2
|
-
export declare function useScrollHeight(target: MaybeComputedElementRef):
|
|
2
|
+
export declare function useScrollHeight(target: MaybeComputedElementRef): import('vue').Ref<number, number>;
|
|
3
3
|
export declare function useClientHeight(target: MaybeComputedElementRef, options?: {
|
|
4
4
|
initialWidth?: number;
|
|
5
5
|
initialHeight?: number;
|
|
6
6
|
listenOrientation?: boolean;
|
|
7
|
-
}):
|
|
7
|
+
}): import('vue').Ref<number, number>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RemovableRef } from '@vueuse/core';
|
|
2
|
-
import { MaybeRef } from 'vue';
|
|
2
|
+
import { MaybeRef, Ref } from 'vue';
|
|
3
3
|
import { ThemeData } from '..';
|
|
4
4
|
export * from './dom';
|
|
5
5
|
export declare const COLOR_LIGHTNESS_MAP: number[];
|
|
6
6
|
export declare const SURFACE_LIGHTNESS_MAP: number[];
|
|
7
|
-
export declare function useRootTheme():
|
|
8
|
-
export declare function useCurrentThemeScheme():
|
|
9
|
-
export declare function useCurrentThemeData():
|
|
10
|
-
export declare function useCurrentThemeName():
|
|
7
|
+
export declare function useRootTheme(): Ref<string | undefined, string | undefined>;
|
|
8
|
+
export declare function useCurrentThemeScheme(): Ref<string, string> | null;
|
|
9
|
+
export declare function useCurrentThemeData(): Ref<ThemeData, ThemeData>;
|
|
10
|
+
export declare function useCurrentThemeName(): Ref<string, string>;
|
|
11
11
|
export declare function useThemeData(name: string, color: {
|
|
12
12
|
primary: MaybeRef<string>;
|
|
13
13
|
secondary: MaybeRef<string>;
|
|
@@ -20,7 +20,7 @@ export declare function useThemeData(name: string, color: {
|
|
|
20
20
|
tertiary?: number[];
|
|
21
21
|
error?: number[];
|
|
22
22
|
surface?: number[];
|
|
23
|
-
}):
|
|
23
|
+
}): import('vue').ComputedRef<{
|
|
24
24
|
name: string;
|
|
25
25
|
colors: {
|
|
26
26
|
primary: import('..').ColorsTuple;
|
|
@@ -31,11 +31,13 @@ export declare function useThemeData(name: string, color: {
|
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
export declare function useThemeStyles(theme: ThemeData): {
|
|
34
|
-
'
|
|
35
|
-
|
|
34
|
+
'--d-bg': string;
|
|
35
|
+
'--d-text': string;
|
|
36
|
+
'--l-bg': string;
|
|
37
|
+
'--l-text': string;
|
|
36
38
|
};
|
|
37
39
|
export declare function useId(props: {
|
|
38
40
|
id?: string;
|
|
39
|
-
}):
|
|
41
|
+
}): Ref<string, string>;
|
|
40
42
|
export declare const schemeSymbol: unique symbol;
|
|
41
43
|
export declare function useSchemeString(): RemovableRef<string>;
|