@roku-ui/vue 0.9.1 → 0.11.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 (53) hide show
  1. package/dist/components/AspectRatio.vue.d.ts +12 -11
  2. package/dist/components/Avatar.vue.d.ts +11 -12
  3. package/dist/components/Btn.vue.d.ts +12 -12
  4. package/dist/components/BtnGroup.vue.d.ts +39 -30
  5. package/dist/components/ChatMessage.vue.d.ts +18 -14
  6. package/dist/components/ChatSystem.vue.d.ts +11 -11
  7. package/dist/components/ColorInput.vue.d.ts +20 -11
  8. package/dist/components/ColorSwatch.vue.d.ts +11 -11
  9. package/dist/components/Drawer.vue.d.ts +38 -29
  10. package/dist/components/Dropzone.vue.d.ts +11 -11
  11. package/dist/components/FullscreenOverlay.vue.d.ts +36 -27
  12. package/dist/components/Image.vue.d.ts +11 -12
  13. package/dist/components/Indicator.vue.d.ts +12 -11
  14. package/dist/components/Modal.vue.d.ts +35 -21
  15. package/dist/components/Notification.vue.d.ts +21 -14
  16. package/dist/components/NotificationSystem.vue.d.ts +53 -1
  17. package/dist/components/Overlay.vue.d.ts +11 -11
  18. package/dist/components/Paper.vue.d.ts +22 -21
  19. package/dist/components/PinInput.vue.d.ts +11 -11
  20. package/dist/components/Popover.vue.d.ts +65 -0
  21. package/dist/components/Progress.vue.d.ts +11 -11
  22. package/dist/components/Rating.vue.d.ts +50 -0
  23. package/dist/components/RokuProvider.vue.d.ts +11 -12
  24. package/dist/components/ScrollArea.vue.d.ts +47 -0
  25. package/dist/components/Select.vue.d.ts +9 -7
  26. package/dist/components/SelectArea.vue.d.ts +69 -0
  27. package/dist/components/Slider.vue.d.ts +54 -80
  28. package/dist/components/Switch.vue.d.ts +48 -79
  29. package/dist/components/TabItem.vue.d.ts +11 -11
  30. package/dist/components/Tabs.vue.d.ts +33 -19
  31. package/dist/components/Tag.vue.d.ts +54 -0
  32. package/dist/components/TextField.vue.d.ts +45 -66
  33. package/dist/components/ThemeProvider.vue.d.ts +8 -9
  34. package/dist/components/Tooltip.vue.d.ts +11 -11
  35. package/dist/components/index.d.ts +5 -0
  36. package/dist/composables/index.d.ts +1 -1
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.js +3950 -2963
  39. package/dist/index.umd.cjs +1 -1
  40. package/dist/shared/index.d.ts +343 -0
  41. package/dist/style.css +1 -1
  42. package/dist/test/App.vue.d.ts +2 -0
  43. package/dist/test/demo/PopoverDemo.vue.d.ts +2 -0
  44. package/dist/test/demo/RatingDemo.vue.d.ts +2 -0
  45. package/dist/test/demo/SelectAreaDemo.vue.d.ts +2 -0
  46. package/dist/test/demo/TagsDemo.vue.d.ts +2 -0
  47. package/dist/test/demo/WaterfallDemo.vue.d.ts +2 -0
  48. package/dist/types/index.d.ts +4 -0
  49. package/dist/utils/index.d.ts +9 -5
  50. package/dist/utils/notifications.d.ts +15 -2
  51. package/dist/utils/theme.d.ts +5 -2
  52. package/package.json +20 -19
  53. package/dist/components/Chip.vue.d.ts +0 -63
@@ -1,10 +1,14 @@
1
- import { default as tinycolor } from 'tinycolor2';
2
-
1
+ import { ColorInput, default as tinycolor } from 'tinycolor2';
3
2
  export * from './theme';
4
3
  export * from './notifications';
5
- export declare function generateColorsMap(color: tinycolor.ColorInput | undefined, lightnessMap?: number[]): {
6
- baseColorIndex: number;
4
+ export * from './classGenerator';
5
+ export declare function generateColorsMap(color: tinycolor.ColorInput, lightnessMap?: number[]): {
7
6
  colors: string[];
7
+ baseColorIndex: number;
8
+ };
9
+ export declare function generateColorsObjMap(color: tinycolor.ColorInput, lightnessMap?: number[]): {
10
+ baseColorIndex: number;
11
+ colors: tinycolor.Instance[];
8
12
  };
9
13
  export type ColorsTuple = readonly [
10
14
  string,
@@ -20,5 +24,5 @@ export type ColorsTuple = readonly [
20
24
  string,
21
25
  ...string[]
22
26
  ];
23
- export declare function generateColors(color: string | tinycolor.ColorFormats.PRGB | tinycolor.ColorFormats.RGB | tinycolor.ColorFormats.HSL | tinycolor.ColorFormats.HSV | tinycolor.Instance | undefined, lightnessMap?: number[]): ColorsTuple;
27
+ export declare function generateColors(color: ColorInput, lightnessMap?: number[]): ColorsTuple;
24
28
  export * from './symbols';
@@ -3,10 +3,23 @@ export interface NotificationData {
3
3
  message?: string;
4
4
  color?: string;
5
5
  icon?: string;
6
+ durationMS?: number;
7
+ position?: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
6
8
  [key: string]: any;
7
9
  }
8
- export declare const notificationsSymbol: unique symbol;
9
- export declare function useNotifications(): NotificationData;
10
+ export interface NotificationDataWithHash extends NotificationData {
11
+ hash: string;
12
+ }
13
+ export declare function useNotifications(): globalThis.Ref<{
14
+ [x: string]: any;
15
+ hash: string;
16
+ title?: string | undefined;
17
+ message?: string | undefined;
18
+ color?: string | undefined;
19
+ icon?: string | undefined;
20
+ durationMS?: number | undefined;
21
+ position?: ("top" | "top-right" | "top-left" | "bottom" | "bottom-right" | "bottom-left") | undefined;
22
+ }[]>;
10
23
  export declare class Notifications {
11
24
  static show(data: NotificationData): void;
12
25
  }
@@ -1,5 +1,4 @@
1
1
  import { ColorsTuple } from '.';
2
-
3
2
  export interface BaseVariant {
4
3
  light: string;
5
4
  base: string;
@@ -21,7 +20,11 @@ export interface ThemeData {
21
20
  name: string;
22
21
  colors: ThemeColorsColors;
23
22
  }
24
- export declare const themeColors: ThemeColorsColors;
23
+ export declare const primaryColor: globalThis.Ref<string>;
24
+ export declare const secondaryColor: globalThis.Ref<string>;
25
+ export declare const tertiaryColor: globalThis.Ref<string>;
26
+ export declare const errorColor: globalThis.Ref<string>;
27
+ export declare const surfaceColor: globalThis.Ref<string>;
25
28
  export declare const defaultTheme: globalThis.ComputedRef<{
26
29
  name: string;
27
30
  colors: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@roku-ui/vue",
3
3
  "type": "module",
4
- "version": "0.9.1",
4
+ "version": "0.11.0",
5
5
  "author": "Jianqi Pan <jannchie@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -30,32 +30,33 @@
30
30
  "dependencies": {
31
31
  "@formkit/auto-animate": "^0.8.2",
32
32
  "@iconify-json/line-md": "^1.1.38",
33
- "@unocss/reset": "^0.61.2",
33
+ "@unocss/reset": "^0.62.1",
34
34
  "@vueuse/core": "^10.11.0",
35
35
  "tinycolor2": "^1.6.0",
36
- "vue": "^3.4.31"
36
+ "vue": "^3.4.35",
37
+ "vue-wf": "^0.3.1"
37
38
  },
38
39
  "devDependencies": {
39
- "@antfu/eslint-config": "^2.21.2",
40
- "@iconify-json/tabler": "^1.1.116",
40
+ "@antfu/eslint-config": "^2.24.1",
41
+ "@iconify-json/tabler": "^1.1.118",
41
42
  "@jannchie/eslint-config": "^3.2.1",
42
43
  "@types/tinycolor2": "^1.4.6",
43
- "@unocss/eslint-config": "^0.61.2",
44
- "@unocss/eslint-plugin": "^0.61.2",
45
- "@unocss/preset-icons": "^0.61.2",
46
- "@vitejs/plugin-vue": "^5.0.5",
47
- "eslint": "^9.6.0",
44
+ "@unocss/eslint-config": "^0.62.1",
45
+ "@unocss/eslint-plugin": "^0.62.1",
46
+ "@unocss/preset-icons": "^0.62.1",
47
+ "@vitejs/plugin-vue": "^5.1.2",
48
+ "eslint": "^9.8.0",
48
49
  "eslint-plugin-format": "^0.1.2",
49
- "typescript": "^5.5.3",
50
- "unocss": "^0.61.2",
50
+ "typescript": "^5.5.4",
51
+ "unocss": "^0.62.1",
51
52
  "unplugin-auto-export": "^1.0.2",
52
- "unplugin-auto-import": "^0.17.6",
53
- "unplugin-vue-components": "^0.27.2",
54
- "vite": "^5.3.3",
55
- "vite-plugin-dts": "^3.9.1",
56
- "vitest": "^1.6.0",
57
- "vue-tsc": "^2.0.26",
58
- "@roku-ui/preset": "^0.9.1"
53
+ "unplugin-auto-import": "^0.18.2",
54
+ "unplugin-vue-components": "^0.27.3",
55
+ "vite": "^5.3.5",
56
+ "vite-plugin-dts": "4.0.3",
57
+ "vitest": "^2.0.5",
58
+ "vue-tsc": "^2.0.29",
59
+ "@roku-ui/preset": "^0.11.0"
59
60
  },
60
61
  "scripts": {
61
62
  "dev": "vite",
@@ -1,63 +0,0 @@
1
- declare function __VLS_template(): {
2
- leftSection?(_: {}): any;
3
- default?(_: {}): any;
4
- rightSection?(_: {}): any;
5
- };
6
- declare const __VLS_component: import('vue').DefineComponent<{
7
- modelValue: import('vue').PropType<boolean>;
8
- style: {
9
- type: globalThis.PropType<any>;
10
- };
11
- class: {
12
- type: globalThis.PropType<any>;
13
- };
14
- is: {
15
- type: globalThis.PropType<string | globalThis.Component>;
16
- default: string;
17
- };
18
- src: {
19
- type: globalThis.PropType<string>;
20
- };
21
- size: {
22
- type: globalThis.PropType<string | number>;
23
- default: string;
24
- };
25
- rounded: {
26
- type: globalThis.PropType<string | number>;
27
- default: string;
28
- };
29
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
30
- modelValue: import('vue').PropType<boolean>;
31
- style: {
32
- type: globalThis.PropType<any>;
33
- };
34
- class: {
35
- type: globalThis.PropType<any>;
36
- };
37
- is: {
38
- type: globalThis.PropType<string | globalThis.Component>;
39
- default: string;
40
- };
41
- src: {
42
- type: globalThis.PropType<string>;
43
- };
44
- size: {
45
- type: globalThis.PropType<string | number>;
46
- default: string;
47
- };
48
- rounded: {
49
- type: globalThis.PropType<string | number>;
50
- default: string;
51
- };
52
- }>>, {
53
- is: string | Component;
54
- size: "sm" | "md" | "lg" | string | number;
55
- rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
56
- }, {}>;
57
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
58
- export default _default;
59
- type __VLS_WithTemplateSlots<T, S> = T & {
60
- new (): {
61
- $slots: S;
62
- };
63
- };