@roku-ui/vue 0.1.1 → 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/components/Avatar.vue.d.ts +4 -3
- package/dist/components/Btn.vue.d.ts +3 -5
- package/dist/components/Chip.vue.d.ts +3 -3
- package/dist/components/Dragzone.vue.d.ts +13 -0
- package/dist/components/Paper.vue.d.ts +51 -0
- package/dist/components/RokuProvider.vue.d.ts +3 -3
- package/dist/components/Select.vue.d.ts +9 -9
- package/dist/components/Switch.vue.d.ts +6 -6
- package/dist/components/index.d.ts +3 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +937 -820
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/test.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
is?: string | undefined;
|
|
3
|
+
is?: string | Component | undefined;
|
|
3
4
|
src?: string | undefined;
|
|
4
5
|
size?: string | number | undefined;
|
|
5
6
|
style?: any;
|
|
@@ -8,7 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
9
|
size: string;
|
|
9
10
|
is: string;
|
|
10
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
-
is?: string | undefined;
|
|
12
|
+
is?: string | Component | undefined;
|
|
12
13
|
src?: string | undefined;
|
|
13
14
|
size?: string | number | undefined;
|
|
14
15
|
style?: any;
|
|
@@ -17,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
18
|
size: string;
|
|
18
19
|
is: string;
|
|
19
20
|
}>>>, {
|
|
20
|
-
is: string;
|
|
21
|
+
is: string | Component;
|
|
21
22
|
size: 'sm' | 'md' | 'lg' | string | number;
|
|
22
23
|
}, {}>;
|
|
23
24
|
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
type?: "button" | "submit" | "reset" | undefined;
|
|
3
3
|
size?: "sm" | "md" | "lg" | undefined;
|
|
4
|
-
is?: string | undefined;
|
|
4
|
+
is?: string | globalThis.Component | undefined;
|
|
5
5
|
icon?: boolean | undefined;
|
|
6
6
|
pressEffect?: "translate" | "scale" | undefined;
|
|
7
7
|
variant?: "default" | "filled" | "light" | "outline" | "subtle" | "transparent" | "ghost" | "constrast" | undefined;
|
|
8
8
|
color?: "primary" | "secondary" | "tertiary" | "error" | undefined;
|
|
9
|
-
disabled?: boolean | undefined;
|
|
10
9
|
animate?: boolean | undefined;
|
|
11
10
|
rounded?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
12
11
|
}>, {
|
|
@@ -19,12 +18,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
19
|
type?: "button" | "submit" | "reset" | undefined;
|
|
21
20
|
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
-
is?: string | undefined;
|
|
21
|
+
is?: string | globalThis.Component | undefined;
|
|
23
22
|
icon?: boolean | undefined;
|
|
24
23
|
pressEffect?: "translate" | "scale" | undefined;
|
|
25
24
|
variant?: "default" | "filled" | "light" | "outline" | "subtle" | "transparent" | "ghost" | "constrast" | undefined;
|
|
26
25
|
color?: "primary" | "secondary" | "tertiary" | "error" | undefined;
|
|
27
|
-
disabled?: boolean | undefined;
|
|
28
26
|
animate?: boolean | undefined;
|
|
29
27
|
rounded?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
30
28
|
}>, {
|
|
@@ -35,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
33
|
icon: boolean;
|
|
36
34
|
pressEffect: string;
|
|
37
35
|
}>>>, {
|
|
38
|
-
is: string;
|
|
36
|
+
is: string | globalThis.Component;
|
|
39
37
|
size: "sm" | "md" | "lg";
|
|
40
38
|
type: "button" | "submit" | "reset";
|
|
41
39
|
icon: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
modelValue: globalThis.PropType<boolean>;
|
|
3
3
|
is: {
|
|
4
|
-
type: globalThis.PropType<string>;
|
|
4
|
+
type: globalThis.PropType<string | globalThis.Component>;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
src: {
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
25
25
|
modelValue: globalThis.PropType<boolean>;
|
|
26
26
|
is: {
|
|
27
|
-
type: globalThis.PropType<string>;
|
|
27
|
+
type: globalThis.PropType<string | globalThis.Component>;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
src: {
|
|
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
}>>, {
|
|
48
|
-
is: string;
|
|
48
|
+
is: string | globalThis.Component;
|
|
49
49
|
size: string | number;
|
|
50
50
|
rounded: string | number;
|
|
51
51
|
}, {}>, {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
drop: (files: File[] | null) => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>> & {
|
|
4
|
+
onDrop?: ((files: File[] | null) => any) | undefined;
|
|
5
|
+
}, {}, {}>, {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
size?: string | number | undefined;
|
|
3
|
+
rounded?: string | number | undefined;
|
|
4
|
+
withBorder?: boolean | undefined;
|
|
5
|
+
is?: string | globalThis.Component | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
size: string;
|
|
8
|
+
rounded: string;
|
|
9
|
+
withBorder: boolean;
|
|
10
|
+
is: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
size?: string | number | undefined;
|
|
13
|
+
rounded?: string | number | undefined;
|
|
14
|
+
withBorder?: boolean | undefined;
|
|
15
|
+
is?: string | globalThis.Component | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
size: string;
|
|
18
|
+
rounded: string;
|
|
19
|
+
withBorder: boolean;
|
|
20
|
+
is: string;
|
|
21
|
+
}>>>, {
|
|
22
|
+
is: string | globalThis.Component;
|
|
23
|
+
size: string | number;
|
|
24
|
+
rounded: string | number;
|
|
25
|
+
withBorder: boolean;
|
|
26
|
+
}, {}>, {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
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
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ThemeData } from '../utils';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
is?: string | undefined;
|
|
3
|
+
is?: string | globalThis.Component | undefined;
|
|
4
4
|
theme?: ThemeData | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
is: string;
|
|
7
7
|
theme(): ThemeData;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
is?: string | undefined;
|
|
9
|
+
is?: string | globalThis.Component | undefined;
|
|
10
10
|
theme?: ThemeData | undefined;
|
|
11
11
|
}>, {
|
|
12
12
|
is: string;
|
|
13
13
|
theme(): ThemeData;
|
|
14
14
|
}>>>, {
|
|
15
|
-
is: string;
|
|
15
|
+
is: string | globalThis.Component;
|
|
16
16
|
theme: ThemeData;
|
|
17
17
|
}, {}>, {
|
|
18
18
|
default?(_: {}): any;
|
|
@@ -8,10 +8,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
type: globalThis.PropType<"sm" | "md" | "lg">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
placeholder: {
|
|
12
|
-
type: globalThis.PropType<string>;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
11
|
options: {
|
|
16
12
|
type: globalThis.PropType<Option[]>;
|
|
17
13
|
default: () => never[];
|
|
@@ -20,6 +16,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
16
|
type: globalThis.PropType<string>;
|
|
21
17
|
default: string;
|
|
22
18
|
};
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: globalThis.PropType<string>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
23
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
change: (...args: any[]) => void;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -28,10 +28,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
type: globalThis.PropType<"sm" | "md" | "lg">;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
|
-
placeholder: {
|
|
32
|
-
type: globalThis.PropType<string>;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
31
|
options: {
|
|
36
32
|
type: globalThis.PropType<Option[]>;
|
|
37
33
|
default: () => never[];
|
|
@@ -40,12 +36,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
36
|
type: globalThis.PropType<string>;
|
|
41
37
|
default: string;
|
|
42
38
|
};
|
|
39
|
+
placeholder: {
|
|
40
|
+
type: globalThis.PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
43
|
}>> & {
|
|
44
44
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
size: 'sm' | 'md' | 'lg';
|
|
47
|
-
placeholder: string;
|
|
48
47
|
options: Option[];
|
|
49
48
|
noneText: string;
|
|
49
|
+
placeholder: string;
|
|
50
50
|
}, {}>;
|
|
51
51
|
export default _default;
|
|
@@ -15,13 +15,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: globalThis.PropType<"primary" | "secondary" | "tertiary" | "error">;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: globalThis.PropType<boolean>;
|
|
20
|
-
};
|
|
21
18
|
rounded: {
|
|
22
19
|
type: globalThis.PropType<string | number>;
|
|
23
20
|
default: string;
|
|
24
21
|
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: globalThis.PropType<boolean>;
|
|
24
|
+
};
|
|
25
25
|
options: {
|
|
26
26
|
type: globalThis.PropType<string[]>;
|
|
27
27
|
};
|
|
@@ -51,13 +51,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
type: globalThis.PropType<"primary" | "secondary" | "tertiary" | "error">;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
|
-
disabled: {
|
|
55
|
-
type: globalThis.PropType<boolean>;
|
|
56
|
-
};
|
|
57
54
|
rounded: {
|
|
58
55
|
type: globalThis.PropType<string | number>;
|
|
59
56
|
default: string;
|
|
60
57
|
};
|
|
58
|
+
disabled: {
|
|
59
|
+
type: globalThis.PropType<boolean>;
|
|
60
|
+
};
|
|
61
61
|
options: {
|
|
62
62
|
type: globalThis.PropType<string[]>;
|
|
63
63
|
};
|
|
@@ -14,4 +14,6 @@ import Chip from './Chip.vue';
|
|
|
14
14
|
import Avatar from './Avatar.vue';
|
|
15
15
|
import ThemeSwitch from './ThemeSwitch.vue';
|
|
16
16
|
import ThemeProvider from './ThemeProvider.vue';
|
|
17
|
-
|
|
17
|
+
import Paper from './Paper.vue';
|
|
18
|
+
import Dragzone from './Dragzone.vue';
|
|
19
|
+
export { Dragzone, Paper, ThemeProvider, ThemeSwitch, Avatar, Chip, Indicator, PinInput, Progress, NotificationSystem, Modal, Btn, RokuProvider, Slider, Switch, Select, TextField, Notification };
|
package/dist/index.d.ts
CHANGED