@roku-ui/vue 0.29.0 → 0.31.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 (56) hide show
  1. package/README.md +74 -15
  2. package/dist/components/AppShell.vue.d.ts +0 -3
  3. package/dist/components/AppShellAside.vue.d.ts +26 -0
  4. package/dist/components/AppShellFooter.vue.d.ts +26 -0
  5. package/dist/components/AppShellHeader.vue.d.ts +26 -0
  6. package/dist/components/AppShellMain.vue.d.ts +26 -0
  7. package/dist/components/AppShellNavbar.vue.d.ts +26 -0
  8. package/dist/components/Avatar.vue.d.ts +2 -4
  9. package/dist/components/Btn.vue.d.ts +0 -2
  10. package/dist/components/BtnGroup.vue.d.ts +2 -1
  11. package/dist/components/Calendar.vue.d.ts +0 -5
  12. package/dist/components/ColorInput.vue.d.ts +1 -1
  13. package/dist/components/Icon.vue.d.ts +37 -0
  14. package/dist/components/Menu.vue.d.ts +10 -2
  15. package/dist/components/Notification.vue.d.ts +2 -5
  16. package/dist/components/NotificationSystem.vue.d.ts +1 -1
  17. package/dist/components/NumberField.vue.d.ts +49 -0
  18. package/dist/components/Paper.vue.d.ts +2 -1
  19. package/dist/components/PinInput.vue.d.ts +9 -4
  20. package/dist/components/Popover.vue.d.ts +2 -0
  21. package/dist/components/Rating.vue.d.ts +16 -14
  22. package/dist/components/Step.vue.d.ts +4 -2
  23. package/dist/components/Switch.vue.d.ts +0 -2
  24. package/dist/components/TextField.vue.d.ts +14 -1
  25. package/dist/components/TreeList.vue.d.ts +1 -21
  26. package/dist/components/index.d.ts +7 -0
  27. package/dist/composables/index.d.ts +8 -9
  28. package/dist/index.d.ts +2 -1
  29. package/dist/index.js +9332 -9635
  30. package/dist/index.umd.cjs +4 -4
  31. package/dist/shared/color-helpers.d.ts +9 -0
  32. package/dist/shared/color-system.d.ts +10 -61
  33. package/dist/shared/constants.d.ts +79 -21
  34. package/dist/shared/container-styles.d.ts +8 -0
  35. package/dist/shared/style-recipes.d.ts +20 -0
  36. package/dist/shared/theme.d.ts +49 -37
  37. package/dist/style.css +2 -0
  38. package/dist/test/demo/CSSVarDemo.vue.d.ts +2 -0
  39. package/dist/test/demo/IconDemo.vue.d.ts +2 -0
  40. package/dist/test/demo/MenuDemo.vue.d.ts +2 -0
  41. package/dist/test/demo/NumberFieldDemo.vue.d.ts +2 -0
  42. package/dist/test/demo/WaterfallDemo.vue.d.ts +1 -1
  43. package/dist/test/demoPages.d.ts +144 -0
  44. package/dist/test/router.d.ts +3 -0
  45. package/dist/test.d.ts +0 -1
  46. package/dist/types/index.d.ts +26 -3
  47. package/dist/utils/classGenerator.d.ts +3 -1
  48. package/dist/utils/index.d.ts +17 -7
  49. package/dist/utils/modals.d.ts +0 -5
  50. package/dist/utils/notifications.d.ts +2 -1
  51. package/dist/utils/symbols.d.ts +0 -1
  52. package/dist/utils/tailwindPalettes.d.ts +22 -0
  53. package/dist/vite/index.d.ts +11 -0
  54. package/package.json +25 -22
  55. package/dist/index.css +0 -1
  56. package/dist/vite.svg +0 -1
@@ -1,3 +1,14 @@
1
+ export type TextFieldFormatFn = (value: string) => string;
2
+ export interface TextFieldParseContext {
3
+ event?: Event;
4
+ previousDisplay: string;
5
+ previousValue: string;
6
+ }
7
+ export interface TextFieldFormatConfig {
8
+ format: TextFieldFormatFn;
9
+ parse?: (value: string, context: TextFieldParseContext) => string;
10
+ }
11
+ export type TextFieldFormat = TextFieldFormatFn | TextFieldFormatConfig;
1
12
  type __VLS_Props = {
2
13
  onChange?: (value: string) => void;
3
14
  color?: 'primary' | 'secondary' | 'tertiary' | 'error';
@@ -5,10 +16,11 @@ type __VLS_Props = {
5
16
  disabled?: boolean;
6
17
  rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
7
18
  size?: 'sm' | 'md' | 'lg';
19
+ type?: string;
8
20
  password?: boolean;
9
21
  placeholder?: string;
10
22
  label?: string;
11
- format?: (value: string) => string;
23
+ format?: TextFieldFormat;
12
24
  partialVisible?: boolean;
13
25
  visibleStart?: number;
14
26
  visibleEnd?: number;
@@ -36,6 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
36
48
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
49
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
38
50
  }>, {
51
+ type: string;
39
52
  color: "primary" | "secondary" | "tertiary" | "error";
40
53
  size: "sm" | "md" | "lg";
41
54
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
@@ -1,24 +1,4 @@
1
- import { VNode } from 'vue';
2
- import { Rounded } from '../types';
3
- export interface TreeListLeafData {
4
- icon?: string | VNode;
5
- title: string;
6
- value: string;
7
- attrs?: Record<string, any>;
8
- is?: string | VNode;
9
- }
10
- export interface TreeListHeaderData {
11
- icon?: string | VNode;
12
- title: string;
13
- }
14
- export interface TreeListCollapseData {
15
- title: string;
16
- icon?: string | VNode;
17
- value?: string;
18
- children?: TreeListItemData[];
19
- open?: boolean;
20
- }
21
- export type TreeListItemData = TreeListLeafData | TreeListHeaderData | TreeListCollapseData;
1
+ import { Rounded, TreeListCollapseData, TreeListHeaderData, TreeListItemData, TreeListLeafData } from '../types';
22
2
  type __VLS_Props = {
23
3
  items: TreeListItemData[];
24
4
  rounded?: Rounded;
@@ -1,4 +1,9 @@
1
1
  export { default as AppShell } from './AppShell.vue';
2
+ export { default as AppShellAside } from './AppShellAside.vue';
3
+ export { default as AppShellFooter } from './AppShellFooter.vue';
4
+ export { default as AppShellHeader } from './AppShellHeader.vue';
5
+ export { default as AppShellMain } from './AppShellMain.vue';
6
+ export { default as AppShellNavbar } from './AppShellNavbar.vue';
2
7
  export { default as AspectRatio } from './AspectRatio.vue';
3
8
  export { default as AutoHeightTransition } from './AutoHeightTransition.vue';
4
9
  export { default as Avatar } from './Avatar.vue';
@@ -16,6 +21,7 @@ export { default as ColorSwatch } from './ColorSwatch.vue';
16
21
  export { default as Drawer } from './Drawer.vue';
17
22
  export { default as Dropzone } from './Dropzone.vue';
18
23
  export { default as FullscreenOverlay } from './FullscreenOverlay.vue';
24
+ export { default as Icon } from './Icon.vue';
19
25
  export { default as Image } from './Image.vue';
20
26
  export { default as Indicator } from './Indicator.vue';
21
27
  export { default as Menu } from './Menu.vue';
@@ -24,6 +30,7 @@ export { default as Modal } from './Modal.vue';
24
30
  export { default as ModalSystem } from './ModalSystem.vue';
25
31
  export { default as Notification } from './Notification.vue';
26
32
  export { default as NotificationSystem } from './NotificationSystem.vue';
33
+ export { default as NumberField } from './NumberField.vue';
27
34
  export { default as Overlay } from './Overlay.vue';
28
35
  export { default as Paper } from './Paper.vue';
29
36
  export { default as PinInput } from './PinInput.vue';
@@ -2,15 +2,14 @@ import { RemovableRef } from '@vueuse/core';
2
2
  export { generateEditorFriendlyColors, generateOKLCHString } from '../utils';
3
3
  export * from './dom';
4
4
  export declare const COLOR_LIGHTNESS_MAP: number[];
5
- export declare const SURFACE_LIGHTNESS_MAP: number[];
6
- export declare function useThemeStyles(theme: import('../shared').ThemeData): {
7
- backgroundColor: string;
8
- color: string;
9
- '--un-default-border-color': string;
10
- };
11
- export declare function useEditorFriendlyThemeStyles(theme: import('../shared').ThemeData): {
12
- backgroundColor: string;
13
- color: string;
5
+ /**
6
+ * Build CSS variable style object for a theme.
7
+ * When editorFriendly=true, embeds original color string as a comment for easier inspection in DevTools / inline styles.
8
+ * Usage: useThemeStyles(theme) or useThemeStyles(theme, { editorFriendly: true })
9
+ */
10
+ export declare function useThemeStyles(theme: import('../shared').ThemeData, options?: {
11
+ editorFriendly?: boolean;
12
+ }): {
14
13
  '--un-default-border-color': string;
15
14
  };
16
15
  export declare function useId(props: {
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from './composables';
3
3
  export * from './shared';
4
4
  export * from './types';
5
5
  export * from './utils';
6
- export { VirtualWaterfall, Waterfall } from 'vue-wf';
6
+ export { Waterfall } from 'vue-wf';
7
+ export { Waterfall as VirtualWaterfall } from 'vue-wf';