@roku-ui/vue 0.1.0 → 0.1.2

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,58 +1,79 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- modelValue?: any;
3
- size?: "sm" | "md" | "lg" | undefined;
4
- animate?: boolean | undefined;
5
- options?: string[] | undefined;
6
- label?: string | undefined;
7
- id?: string | undefined;
8
- rounded?: string | number | undefined;
9
- color?: "primary" | "secondary" | "tertiary" | "error" | undefined;
10
- disabled?: boolean | undefined;
11
- }>, {
12
- size: string;
13
- rounded: string;
14
- animate: boolean;
15
- color: string;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update:modelValue": (...args: any[]) => void;
18
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- modelValue?: any;
20
- size?: "sm" | "md" | "lg" | undefined;
21
- animate?: boolean | undefined;
22
- options?: string[] | undefined;
23
- label?: string | undefined;
24
- id?: string | undefined;
25
- rounded?: string | number | undefined;
26
- color?: "primary" | "secondary" | "tertiary" | "error" | undefined;
27
- disabled?: boolean | undefined;
28
- }>, {
29
- size: string;
30
- rounded: string;
31
- animate: boolean;
32
- color: string;
33
- }>>> & {
34
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
- }, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: globalThis.PropType<boolean>;
3
+ size: {
4
+ type: globalThis.PropType<"sm" | "md" | "lg">;
5
+ default: string;
6
+ };
7
+ label: {
8
+ type: globalThis.PropType<string>;
9
+ };
10
+ animate: {
11
+ type: globalThis.PropType<boolean>;
12
+ default: boolean;
13
+ };
14
+ color: {
15
+ type: globalThis.PropType<"primary" | "secondary" | "tertiary" | "error">;
16
+ default: string;
17
+ };
18
+ disabled: {
19
+ type: globalThis.PropType<boolean>;
20
+ };
21
+ rounded: {
22
+ type: globalThis.PropType<string | number>;
23
+ default: string;
24
+ };
25
+ options: {
26
+ type: globalThis.PropType<string[]>;
27
+ };
28
+ id: {
29
+ type: globalThis.PropType<string>;
30
+ };
31
+ offIcon: {
32
+ type: globalThis.PropType<string>;
33
+ };
34
+ onIcon: {
35
+ type: globalThis.PropType<string>;
36
+ };
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
+ modelValue: globalThis.PropType<boolean>;
39
+ size: {
40
+ type: globalThis.PropType<"sm" | "md" | "lg">;
41
+ default: string;
42
+ };
43
+ label: {
44
+ type: globalThis.PropType<string>;
45
+ };
46
+ animate: {
47
+ type: globalThis.PropType<boolean>;
48
+ default: boolean;
49
+ };
50
+ color: {
51
+ type: globalThis.PropType<"primary" | "secondary" | "tertiary" | "error">;
52
+ default: string;
53
+ };
54
+ disabled: {
55
+ type: globalThis.PropType<boolean>;
56
+ };
57
+ rounded: {
58
+ type: globalThis.PropType<string | number>;
59
+ default: string;
60
+ };
61
+ options: {
62
+ type: globalThis.PropType<string[]>;
63
+ };
64
+ id: {
65
+ type: globalThis.PropType<string>;
66
+ };
67
+ offIcon: {
68
+ type: globalThis.PropType<string>;
69
+ };
70
+ onIcon: {
71
+ type: globalThis.PropType<string>;
72
+ };
73
+ }>>, {
36
74
  size: 'sm' | 'md' | 'lg';
37
75
  animate: boolean;
38
76
  color: 'primary' | 'secondary' | 'tertiary' | 'error';
39
77
  rounded: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
40
78
  }, {}>;
41
79
  export default _default;
42
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
- type __VLS_TypePropsToRuntimeProps<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
51
- type __VLS_WithDefaults<P, D> = {
52
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
- default: D[K];
54
- }> : P[K];
55
- };
56
- type __VLS_Prettify<T> = {
57
- [K in keyof T]: T[K];
58
- } & {};
@@ -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
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
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
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -12,4 +12,7 @@ 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
- export { Avatar, Chip, Indicator, PinInput, Progress, NotificationSystem, Modal, Btn, RokuProvider, Slider, Switch, Select, TextField, Notification };
15
+ import ThemeSwitch from './ThemeSwitch.vue';
16
+ import ThemeProvider from './ThemeProvider.vue';
17
+ import Paper from './Paper.vue';
18
+ export { Paper, ThemeProvider, ThemeSwitch, Avatar, Chip, Indicator, PinInput, Progress, NotificationSystem, Modal, Btn, RokuProvider, Slider, Switch, Select, TextField, Notification };
@@ -1,2 +1,61 @@
1
- import type { ThemeData } from './../utils';
2
- export declare function useTheme(): ThemeData | undefined;
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
+ };