@roku-ui/vue 0.25.0 → 0.27.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.
Files changed (32) hide show
  1. package/dist/components/Avatar.vue.d.ts +1 -1
  2. package/dist/components/Btn.vue.d.ts +1 -1
  3. package/dist/components/Calendar.vue.d.ts +1 -1
  4. package/dist/components/ChatMessage.vue.d.ts +1 -1
  5. package/dist/components/ChatSystem.vue.d.ts +1 -1
  6. package/dist/components/Checkbox.vue.d.ts +1 -1
  7. package/dist/components/Chip.vue.d.ts +1 -1
  8. package/dist/components/ColorInput.vue.d.ts +38 -3
  9. package/dist/components/ColorSwatch.vue.d.ts +1 -1
  10. package/dist/components/Image.vue.d.ts +1 -1
  11. package/dist/components/Notification.vue.d.ts +1 -1
  12. package/dist/components/Paper.vue.d.ts +2 -2
  13. package/dist/components/PinInput.vue.d.ts +21 -3
  14. package/dist/components/Progress.vue.d.ts +1 -1
  15. package/dist/components/RokuProvider.vue.d.ts +2 -0
  16. package/dist/components/ScrollArea.vue.d.ts +1 -1
  17. package/dist/components/Select.vue.d.ts +7 -9
  18. package/dist/components/Switch.vue.d.ts +1 -1
  19. package/dist/components/Tag.vue.d.ts +1 -1
  20. package/dist/components/TextField.vue.d.ts +9 -1
  21. package/dist/components/index.d.ts +1 -1
  22. package/dist/composables/index.d.ts +6 -8
  23. package/dist/index.css +1 -1
  24. package/dist/index.js +5093 -4926
  25. package/dist/index.umd.cjs +1 -1
  26. package/dist/shared/index.d.ts +17 -16
  27. package/dist/test/demo/TextFieldDemo.vue.d.ts +2 -0
  28. package/dist/types/index.d.ts +6 -0
  29. package/dist/utils/theme.d.ts +0 -10
  30. package/package.json +11 -11
  31. package/dist/components/{CalendarField.vue.d.ts → CalendarInput.vue.d.ts} +1 -1
  32. /package/dist/test/demo/{CalendarFieldDemo.vue.d.ts → CalendarInputDemo.vue.d.ts} +0 -0
@@ -1,11 +1,6 @@
1
1
  import { ComputedRef, MaybeRef } from 'vue';
2
- import { BtnVariant, Color, ContainerVariant, InputVariant } from '../types';
2
+ import { BtnVariant, Color, ContainerVariant, InputVariant, Rounded } from '../types';
3
3
  import { default as tinycolor } from 'tinycolor2';
4
- export declare const primaryColor: import('vue').Ref<string, string>;
5
- export declare const secondaryColor: import('vue').Ref<string, string>;
6
- export declare const tertiaryColor: import('vue').Ref<string, string>;
7
- export declare const errorColor: import('vue').Ref<string, string>;
8
- export declare const surfaceColor: import('vue').Ref<string, string>;
9
4
  export declare const borderCS: ComputedRef<CS>;
10
5
  export declare function useTextCS(color: MaybeRef<Color>): ComputedRef<CS>;
11
6
  export declare const primaryColors: ComputedRef<tinycolor.Instance[]>;
@@ -13,16 +8,6 @@ export declare const secondaryColors: ComputedRef<tinycolor.Instance[]>;
13
8
  export declare const tertiaryColors: ComputedRef<tinycolor.Instance[]>;
14
9
  export declare const errorColors: ComputedRef<tinycolor.Instance[]>;
15
10
  export declare const surfaceColors: ComputedRef<tinycolor.Instance[]>;
16
- export declare const defaultTheme: ComputedRef<{
17
- name: string;
18
- colors: {
19
- primary: import('../utils').ColorsTuple;
20
- secondary: import('../utils').ColorsTuple;
21
- tertiary: import('../utils').ColorsTuple;
22
- error: import('../utils').ColorsTuple;
23
- surface: import('../utils').ColorsTuple;
24
- };
25
- }>;
26
11
  export declare function useContainerCS(variant: MaybeRef<ContainerVariant>, color: MaybeRef<Color>): ComputedRef<{
27
12
  style: Record<string, string>;
28
13
  class: string[];
@@ -102,4 +87,20 @@ export declare function useInputColorStyle(color: MaybeRef<string>, variant?: Ma
102
87
  '--l-placeholder'?: undefined;
103
88
  '--l-text'?: undefined;
104
89
  }>;
90
+ export interface ThemeColors {
91
+ primary: string;
92
+ secondary: string;
93
+ tertiary: string;
94
+ error: string;
95
+ surface: string;
96
+ }
97
+ export interface Theme {
98
+ withBorder: boolean;
99
+ rounded: Rounded;
100
+ colors: ThemeColors;
101
+ }
102
+ export declare const defaultThemeData: Theme;
103
+ export declare function useTheme(): Theme;
104
+ export declare function provideTheme(theme: Partial<Theme>): void;
105
+ export declare function themeToThemeData(theme: Theme): import('../utils/theme').ThemeData;
105
106
  export {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -5,3 +5,9 @@ export type CalendarMode = 'single' | 'multiple' | 'range';
5
5
  export type Color = 'primary' | 'secondary' | 'tertiary' | 'error' | 'surface' | string;
6
6
  export type Size = 'sm' | 'md' | 'lg';
7
7
  export type Rounded = 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
8
+ export interface Area {
9
+ left: number;
10
+ top: number;
11
+ right: number;
12
+ bottom: number;
13
+ }
@@ -1,14 +1,4 @@
1
1
  import { ColorsTuple } from '.';
2
- export interface BaseVariant {
3
- light: string;
4
- base: string;
5
- dark: string;
6
- }
7
- export interface SurfaceVariant {
8
- light: string;
9
- base: string;
10
- dark: string;
11
- }
12
2
  export interface ThemeColorsColors {
13
3
  primary: ColorsTuple | string;
14
4
  secondary: ColorsTuple | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@roku-ui/vue",
3
3
  "type": "module",
4
- "version": "0.25.0",
4
+ "version": "0.27.0",
5
5
  "author": "Jianqi Pan <jannchie@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -30,32 +30,32 @@
30
30
  "dependencies": {
31
31
  "@formkit/auto-animate": "^0.8.2",
32
32
  "@unocss/reset": "66.3.3",
33
- "@vueuse/core": "^13.5.0",
33
+ "@vueuse/core": "^13.6.0",
34
34
  "tinycolor2": "^1.6.0",
35
- "vue": "^3.5.17",
35
+ "vue": "^3.5.18",
36
36
  "vue-wf": "^0.5.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@iconify/json": "^2.2.359",
40
- "@jannchie/eslint-config": "^3.6.1",
39
+ "@iconify/json": "^2.2.364",
40
+ "@jannchie/eslint-config": "^3.6.2",
41
41
  "@types/tinycolor2": "^1.4.6",
42
42
  "@unocss/eslint-config": "66.3.3",
43
43
  "@unocss/eslint-plugin": "66.3.3",
44
44
  "@unocss/preset-icons": "66.3.3",
45
- "@vitejs/plugin-vue": "^6.0.0",
45
+ "@vitejs/plugin-vue": "^6.0.1",
46
46
  "@vitejs/plugin-vue-jsx": "^5.0.1",
47
- "eslint": "^9.31.0",
47
+ "eslint": "^9.32.0",
48
48
  "eslint-plugin-format": "^1.0.1",
49
- "typescript": "5.8.3",
49
+ "typescript": "5.9.2",
50
50
  "unocss": "66.3.3",
51
51
  "unplugin-auto-export": "^1.0.4",
52
52
  "unplugin-auto-import": "^19.3.0",
53
53
  "unplugin-vue-components": "^28.8.0",
54
- "vite": "^7.0.5",
54
+ "vite": "^7.0.6",
55
55
  "vite-plugin-dts": "4.5.4",
56
56
  "vitest": "^3.2.4",
57
- "vue-tsc": "^3.0.1",
58
- "@roku-ui/preset": "^0.25.0"
57
+ "vue-tsc": "^3.0.4",
58
+ "@roku-ui/preset": "^0.27.0"
59
59
  },
60
60
  "scripts": {
61
61
  "dev": "vite",
@@ -49,8 +49,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
49
49
  }>, {
50
50
  mode: CalendarMode;
51
51
  color: Color;
52
- size: "sm" | "md" | "lg";
53
52
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
53
+ size: "sm" | "md" | "lg";
54
54
  firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
55
55
  locale: string;
56
56
  dateFormat: string;