@roku-ui/vue 0.1.0 → 0.1.1
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 +1 -1
- package/dist/components/Btn.vue.d.ts +1 -1
- package/dist/components/Chip.vue.d.ts +47 -46
- package/dist/components/Indicator.vue.d.ts +1 -1
- package/dist/components/Modal.vue.d.ts +19 -37
- package/dist/components/Notification.vue.d.ts +1 -1
- package/dist/components/NotificationSystem.vue.d.ts +1 -1
- package/dist/components/PinInput.vue.d.ts +1 -1
- package/dist/components/Progress.vue.d.ts +3 -3
- package/dist/components/RokuProvider.vue.d.ts +1 -1
- package/dist/components/Select.vue.d.ts +39 -42
- package/dist/components/Slider.vue.d.ts +77 -42
- package/dist/components/Switch.vue.d.ts +73 -52
- package/dist/components/TextField.vue.d.ts +7 -2
- package/dist/components/ThemeProvider.vue.d.ts +23 -0
- package/dist/components/ThemeSwitch.vue.d.ts +2 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/composables/index.d.ts +61 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1169 -883
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/theme.d.ts +3 -1
- package/package.json +23 -17
|
@@ -5,32 +5,36 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
error?: boolean | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
rounded?: string | number | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
8
9
|
password?: boolean | undefined;
|
|
9
10
|
placeholder?: string | undefined;
|
|
10
11
|
}>, {
|
|
11
12
|
color: string;
|
|
12
13
|
rounded: string;
|
|
14
|
+
size: string;
|
|
13
15
|
}>, {
|
|
14
16
|
el: globalThis.Ref<HTMLInputElement | null>;
|
|
15
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
18
|
input: (...args: any[]) => void;
|
|
17
|
-
"update:modelValue": (...args: any[]) => void;
|
|
18
19
|
pointerup: (...args: any[]) => void;
|
|
19
20
|
click: (...args: any[]) => void;
|
|
20
21
|
pointerdown: (...args: any[]) => void;
|
|
21
22
|
change: (...args: any[]) => void;
|
|
22
|
-
|
|
23
|
+
"update:modelValue": (...args: any[]) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
25
|
modelValue?: string | number | undefined;
|
|
24
26
|
onChange?: ((value: string) => void) | undefined;
|
|
25
27
|
color?: "primary" | "secondary" | "tertiary" | "error" | undefined;
|
|
26
28
|
error?: boolean | undefined;
|
|
27
29
|
disabled?: boolean | undefined;
|
|
28
30
|
rounded?: string | number | undefined;
|
|
31
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
29
32
|
password?: boolean | undefined;
|
|
30
33
|
placeholder?: string | undefined;
|
|
31
34
|
}>, {
|
|
32
35
|
color: string;
|
|
33
36
|
rounded: string;
|
|
37
|
+
size: string;
|
|
34
38
|
}>>> & {
|
|
35
39
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
36
40
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -39,6 +43,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
39
43
|
onPointerup?: ((...args: any[]) => any) | undefined;
|
|
40
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
41
45
|
}, {
|
|
46
|
+
size: 'sm' | 'md' | 'lg';
|
|
42
47
|
color: 'primary' | 'secondary' | 'tertiary' | 'error';
|
|
43
48
|
rounded: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
|
|
44
49
|
}, {}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ThemeData } from '..';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
theme: ThemeData;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
theme: ThemeData;
|
|
6
|
+
}>>>, {}, {}>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -12,4 +12,6 @@ import Progress from './Progress.vue';
|
|
|
12
12
|
import Indicator from './Indicator.vue';
|
|
13
13
|
import Chip from './Chip.vue';
|
|
14
14
|
import Avatar from './Avatar.vue';
|
|
15
|
-
|
|
15
|
+
import ThemeSwitch from './ThemeSwitch.vue';
|
|
16
|
+
import ThemeProvider from './ThemeProvider.vue';
|
|
17
|
+
export { ThemeProvider, ThemeSwitch, Avatar, Chip, Indicator, PinInput, Progress, NotificationSystem, Modal, Btn, RokuProvider, Slider, Switch, Select, TextField, Notification };
|
|
@@ -1,2 +1,61 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function
|
|
1
|
+
import { type ThemeData } from '..';
|
|
2
|
+
export declare function useRootTheme(): globalThis.Ref<string | undefined>;
|
|
3
|
+
export declare function useCurrentThemeScheme(): globalThis.Ref<string> | null;
|
|
4
|
+
export declare function useCurrentTheme(): globalThis.Ref<ThemeData>;
|
|
5
|
+
export declare function useThemeStyles(theme: ThemeData, root?: boolean): {
|
|
6
|
+
colorScheme?: undefined;
|
|
7
|
+
'--r-color-surface-on'?: undefined;
|
|
8
|
+
'--r-color-surface-oninverted'?: undefined;
|
|
9
|
+
'--r-color-surface-onlow'?: undefined;
|
|
10
|
+
'--r-color-surface-onlowinverted'?: undefined;
|
|
11
|
+
'--r-color-surface-lowest'?: undefined;
|
|
12
|
+
'--r-color-surface-low'?: undefined;
|
|
13
|
+
'--r-color-surface-base'?: undefined;
|
|
14
|
+
'--r-color-surface-high'?: undefined;
|
|
15
|
+
'--r-color-surface-highest'?: undefined;
|
|
16
|
+
'--r-color-surface-border'?: undefined;
|
|
17
|
+
'--r-color-primary-container'?: undefined;
|
|
18
|
+
'--r-color-secondary-container'?: undefined;
|
|
19
|
+
'--r-color-tertiary-container'?: undefined;
|
|
20
|
+
'--r-color-error-container'?: undefined;
|
|
21
|
+
'--r-color-primary-containerd'?: undefined;
|
|
22
|
+
'--r-color-secondary-containerd'?: undefined;
|
|
23
|
+
'--r-color-tertiary-containerd'?: undefined;
|
|
24
|
+
'--r-color-error-containerd'?: undefined;
|
|
25
|
+
'--r-color-primary-containerl'?: undefined;
|
|
26
|
+
'--r-color-secondary-containerl'?: undefined;
|
|
27
|
+
'--r-color-tertiary-containerl'?: undefined;
|
|
28
|
+
'--r-color-error-containerl'?: undefined;
|
|
29
|
+
'color-scheme': string;
|
|
30
|
+
'font-family': string;
|
|
31
|
+
'background-color': string;
|
|
32
|
+
color: string;
|
|
33
|
+
} | {
|
|
34
|
+
colorScheme: string;
|
|
35
|
+
'--r-color-surface-on': string;
|
|
36
|
+
'--r-color-surface-oninverted': string;
|
|
37
|
+
'--r-color-surface-onlow': string;
|
|
38
|
+
'--r-color-surface-onlowinverted': string;
|
|
39
|
+
'--r-color-surface-lowest': string;
|
|
40
|
+
'--r-color-surface-low': string;
|
|
41
|
+
'--r-color-surface-base': string;
|
|
42
|
+
'--r-color-surface-high': string;
|
|
43
|
+
'--r-color-surface-highest': string;
|
|
44
|
+
'--r-color-surface-border': string;
|
|
45
|
+
'--r-color-primary-container': string;
|
|
46
|
+
'--r-color-secondary-container': string;
|
|
47
|
+
'--r-color-tertiary-container': string;
|
|
48
|
+
'--r-color-error-container': string;
|
|
49
|
+
'--r-color-primary-containerd': string;
|
|
50
|
+
'--r-color-secondary-containerd': string;
|
|
51
|
+
'--r-color-tertiary-containerd': string;
|
|
52
|
+
'--r-color-error-containerd': string;
|
|
53
|
+
'--r-color-primary-containerl': string;
|
|
54
|
+
'--r-color-secondary-containerl': string;
|
|
55
|
+
'--r-color-tertiary-containerl': string;
|
|
56
|
+
'--r-color-error-containerl': string;
|
|
57
|
+
'color-scheme': string;
|
|
58
|
+
'font-family': string;
|
|
59
|
+
'background-color': string;
|
|
60
|
+
color: string;
|
|
61
|
+
};
|
package/dist/index.d.ts
CHANGED