@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
package/README.md CHANGED
@@ -1,33 +1,92 @@
1
- # Max Min Vue
1
+ # Roku UI Vue
2
2
 
3
- ## Usage
3
+ Vue 3 component library for the Roku UI design system. Every component is written in TypeScript, themed by shared tokens, and works with UnoCSS for consistent light and dark schemes.
4
4
 
5
- ### Install
5
+ ## Installation
6
6
 
7
7
  ```bash
8
- pnpm install
8
+ pnpm add @roku-ui/vue
9
+ # Optional: enable utility classes and theme tokens
10
+ pnpm add -D unocss @roku-ui/preset
9
11
  ```
10
12
 
11
- ### Development
13
+ ## UnoCSS setup (recommended)
12
14
 
13
- ```bash
14
- pnpm dev
15
+ Add the Roku preset to your UnoCSS config and enable the Vite plugin so `virtual:uno.css` is generated:
16
+
17
+ ```ts
18
+ import { rokuPreset } from '@roku-ui/preset'
19
+ // uno.config.ts
20
+ import { defineConfig } from 'unocss'
21
+
22
+ export default defineConfig({
23
+ presets: [rokuPreset()],
24
+ })
15
25
  ```
16
26
 
17
- ### Build
27
+ ```ts
28
+ import vue from '@vitejs/plugin-vue'
29
+ import Unocss from 'unocss/vite'
30
+ // vite.config.ts
31
+ import { defineConfig } from 'vite'
18
32
 
19
- ```bash
20
- pnpm build
33
+ export default defineConfig({
34
+ plugins: [vue(), Unocss()],
35
+ })
21
36
  ```
22
37
 
23
- ### Lint
38
+ If you cannot run UnoCSS, import the prebuilt styles instead:
24
39
 
25
- ```bash
26
- pnpm lint
40
+ ```ts
41
+ import '@roku-ui/vue/style.css'
27
42
  ```
28
43
 
29
- ### Test
44
+ ## Basic usage
45
+
46
+ Wrap your app with `RokuProvider` to supply theme values and use components with the provided tokens such as `bg-base`, `text-default`, and `border-container`.
47
+
48
+ ```vue
49
+ <script setup lang="ts">
50
+ import { Btn, RokuProvider } from '@roku-ui/vue'
51
+ </script>
52
+
53
+ <template>
54
+ <RokuProvider :theme-obj="{ colors: { primary: '#0f6bff', surface: '#121212' } }">
55
+ <div class="text-default bg-base border-container p-6 border rounded-lg">
56
+ <h1 class="text-2xl font-semibold mb-4">
57
+ Roku UI Vue
58
+ </h1>
59
+ <Btn color="primary">
60
+ Get started
61
+ </Btn>
62
+ </div>
63
+ </RokuProvider>
64
+ </template>
65
+ ```
66
+
67
+ ## Nuxt integration
68
+
69
+ Use the Nuxt module to auto-register components with the `R` prefix:
30
70
 
31
71
  ```bash
32
- pnpm test
72
+ pnpm add @roku-ui/nuxt @roku-ui/vue
33
73
  ```
74
+
75
+ ```ts
76
+ // nuxt.config.ts
77
+ export default defineNuxtConfig({
78
+ modules: ['@roku-ui/nuxt'],
79
+ rokuUi: {
80
+ // Optional: customize the prefix
81
+ prefix: 'R',
82
+ },
83
+ })
84
+ ```
85
+
86
+ ## Local development
87
+
88
+ - Install dependencies: `pnpm install`
89
+ - Start the component playground: `pnpm --filter @roku-ui/vue dev`
90
+ - Build the library: `pnpm --filter @roku-ui/vue build`
91
+ - Run unit tests: `pnpm --filter @roku-ui/vue test --run`
92
+ - Lint all packages: `pnpm lint`
@@ -8,7 +8,6 @@ export interface AppShellProps {
8
8
  footerSpansNav?: boolean;
9
9
  footerSpansAside?: boolean;
10
10
  padding?: string | number;
11
- gap?: string | number;
12
11
  }
13
12
  declare function __VLS_template(): {
14
13
  attrs: Partial<{}>;
@@ -43,8 +42,6 @@ declare const __VLS_component: import('vue').DefineComponent<AppShellProps, {},
43
42
  headerSpansAside: boolean;
44
43
  footerSpansNav: boolean;
45
44
  footerSpansAside: boolean;
46
- padding: string | number;
47
- gap: string | number;
48
45
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
49
46
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
50
47
  export default _default;
@@ -0,0 +1,26 @@
1
+ export interface AppShellAsideProps {
2
+ padding?: string | number;
3
+ bordered?: boolean;
4
+ gap?: string | number;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<AppShellAsideProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellAsideProps> & Readonly<{}>, {
16
+ padding: string | number;
17
+ bordered: boolean;
18
+ gap: string | number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ export interface AppShellFooterProps {
2
+ padding?: string | number;
3
+ bordered?: boolean;
4
+ align?: 'start' | 'center' | 'end' | 'between';
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<AppShellFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellFooterProps> & Readonly<{}>, {
16
+ padding: string | number;
17
+ bordered: boolean;
18
+ align: "start" | "center" | "end" | "between";
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ export interface AppShellHeaderProps {
2
+ padding?: string | number;
3
+ bordered?: boolean;
4
+ align?: 'start' | 'center' | 'end' | 'between';
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<AppShellHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellHeaderProps> & Readonly<{}>, {
16
+ padding: string | number;
17
+ bordered: boolean;
18
+ align: "start" | "center" | "end" | "between";
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ export interface AppShellMainProps {
2
+ padding?: string | number;
3
+ gap?: string | number;
4
+ scrollable?: boolean;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<AppShellMainProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellMainProps> & Readonly<{}>, {
16
+ padding: string | number;
17
+ gap: string | number;
18
+ scrollable: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ export interface AppShellNavbarProps {
2
+ padding?: string | number;
3
+ bordered?: boolean;
4
+ gap?: string | number;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<AppShellNavbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellNavbarProps> & Readonly<{}>, {
16
+ padding: string | number;
17
+ bordered: boolean;
18
+ gap: string | number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { Color, ContainerVariant, Rounded } from '../types';
2
+ import { Color, ContainerVariant, CornerShape, Rounded } from '../types';
3
3
  type __VLS_Props = {
4
4
  is?: string | Component;
5
5
  src?: string | null;
@@ -8,6 +8,7 @@ type __VLS_Props = {
8
8
  variant?: ContainerVariant;
9
9
  color?: Color;
10
10
  rounded?: Rounded;
11
+ cornerShape?: CornerShape;
11
12
  skeleton?: boolean;
12
13
  };
13
14
  declare function __VLS_template(): {
@@ -22,10 +23,7 @@ declare function __VLS_template(): {
22
23
  };
23
24
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
25
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
- color: Color;
26
- size: "sm" | "md" | "lg" | string | number;
27
26
  variant: ContainerVariant;
28
- rounded: Rounded;
29
27
  is: string | Component;
30
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
29
  img: unknown;
@@ -30,8 +30,6 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
30
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
31
31
  type: "button" | "submit" | "reset";
32
32
  icon: boolean;
33
- size: "sm" | "md" | "lg";
34
- rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
35
33
  pressEffect: "translate" | "scale";
36
34
  is: string | Component;
37
35
  disabled: boolean;
@@ -1,7 +1,8 @@
1
+ import { IconSource } from '../types';
1
2
  type T = string | {
2
3
  value: string;
3
4
  label?: string;
4
- icon?: string;
5
+ icon?: IconSource;
5
6
  };
6
7
  type __VLS_Props = {
7
8
  selections: T[];
@@ -15,7 +15,6 @@ type __VLS_Props = {
15
15
  color?: Color;
16
16
  variant?: 'default' | 'filled' | 'light';
17
17
  rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
18
- animate?: boolean;
19
18
  };
20
19
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
20
  "update:modelValue": (value: Date | Date[] | {
@@ -28,12 +27,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
28
27
  end: Date;
29
28
  } | undefined) => any) | undefined;
30
29
  }>, {
31
- animate: boolean;
32
30
  mode: CalendarMode;
33
- color: Color;
34
- size: "sm" | "md" | "lg";
35
31
  variant: "default" | "filled" | "light";
36
- rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
37
32
  firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
38
33
  locale: string;
39
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -35,9 +35,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
35
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
36
36
  }>, {
37
37
  color: "primary" | "secondary" | "tertiary" | "error";
38
+ format: "hex" | "rgb" | "hsl";
38
39
  size: "sm" | "md" | "lg";
39
40
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
40
- format: "hex" | "rgb" | "hsl";
41
41
  showSwatch: boolean;
42
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
43
  colorPicker: HTMLInputElement;
@@ -0,0 +1,37 @@
1
+ import { BtnVariant, Color, IconSource, Rounded, Size } from '../types';
2
+ type __VLS_Props = {
3
+ icon?: IconSource;
4
+ size?: Size;
5
+ variant?: BtnVariant;
6
+ color?: Color;
7
+ rounded?: Rounded;
8
+ outlineColor?: Color;
9
+ skeleton?: boolean;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<{
14
+ default?: () => any;
15
+ }> & {
16
+ default?: () => any;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ color: Color;
24
+ icon: IconSource;
25
+ size: Size;
26
+ variant: BtnVariant;
27
+ rounded: Rounded;
28
+ skeleton: boolean;
29
+ outlineColor: Color;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -1,13 +1,21 @@
1
1
  import { VNodeChild } from 'vue';
2
- import { Rounded, Size } from '../types';
2
+ import { IconSource, Rounded, Size } from '../types';
3
3
  export type MenuData = MenuItemData | MenuDividerData | MenuLabelData;
4
4
  export interface MenuItemData {
5
5
  title?: string;
6
6
  value?: number | string | symbol;
7
- icon?: string;
7
+ icon?: IconSource;
8
8
  render?: () => VNodeChild;
9
9
  children?: MenuData[];
10
10
  size?: Size;
11
+ disabled?: boolean;
12
+ closeOnSelect?: boolean;
13
+ onSelect?: (context: MenuItemSelectContext) => void;
14
+ }
15
+ export interface MenuItemSelectContext {
16
+ value?: number | string | symbol;
17
+ event: Event;
18
+ data: MenuItemData;
11
19
  }
12
20
  export interface MenuDividerData {
13
21
  role: 'divider';
@@ -1,8 +1,8 @@
1
- import { Size } from '../types';
1
+ import { IconSource, Size } from '../types';
2
2
  type __VLS_Props = {
3
3
  title?: string;
4
4
  message?: string;
5
- icon?: string;
5
+ icon?: IconSource;
6
6
  loading?: boolean;
7
7
  withBorder?: boolean;
8
8
  closeable?: boolean;
@@ -32,9 +32,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
32
32
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
33
33
  onClose?: ((...args: any[]) => any) | undefined;
34
34
  }>, {
35
- color: string;
36
- size: Size;
37
- rounded: "sm" | "md" | "lg" | "none" | string | number;
38
35
  block: boolean;
39
36
  total: number;
40
37
  showLeftIndicator: boolean;
@@ -10,8 +10,8 @@ type __VLS_Props = {
10
10
  pb?: number;
11
11
  };
12
12
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
- gap: number;
14
13
  progress: boolean;
14
+ gap: number;
15
15
  position: NotificationPosition;
16
16
  topN: number;
17
17
  pt: number;
@@ -0,0 +1,49 @@
1
+ import { TextFieldFormat } from './TextField.vue';
2
+ import { Color } from '../types';
3
+ interface Props {
4
+ modelValue?: number | string;
5
+ min?: number;
6
+ max?: number;
7
+ step?: number;
8
+ color?: Color;
9
+ error?: boolean;
10
+ disabled?: boolean;
11
+ rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
12
+ size?: 'sm' | 'md' | 'lg';
13
+ placeholder?: string;
14
+ label?: string;
15
+ format?: TextFieldFormat;
16
+ incrementAriaLabel?: string;
17
+ decrementAriaLabel?: string;
18
+ }
19
+ type __VLS_Props = Props;
20
+ type __VLS_PublicProps = {
21
+ modelValue?: number | string;
22
+ } & __VLS_Props;
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: {
26
+ leftSection?(_: {}): any;
27
+ incrementIcon?(_: {}): any;
28
+ decrementIcon?(_: {}): any;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLDivElement;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ "update:modelValue": (value: string | number) => any;
36
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
38
+ }>, {
39
+ step: number;
40
+ incrementAriaLabel: string;
41
+ decrementAriaLabel: string;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,10 +1,11 @@
1
1
  import { Component } from 'vue';
2
- import { Color, Rounded } from '../types';
2
+ import { Color, ContainerVariant, Rounded } from '../types';
3
3
  type __VLS_Props = {
4
4
  rounded?: Rounded;
5
5
  loading?: boolean;
6
6
  is?: string | Component;
7
7
  color?: Color;
8
+ variant?: ContainerVariant;
8
9
  traceAnimate?: boolean;
9
10
  withBorder?: boolean;
10
11
  noPadding?: boolean;
@@ -18,10 +18,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
18
18
  readonly disabled?: boolean | undefined;
19
19
  readonly rounded?: "none" | "sm" | "md" | "lg" | "full" | string | number | undefined;
20
20
  readonly size?: "sm" | "md" | "lg" | undefined;
21
+ readonly type?: string | undefined;
21
22
  readonly password?: boolean | undefined;
22
23
  readonly placeholder?: string | undefined;
23
24
  readonly label?: string | undefined;
24
- readonly format?: ((value: string) => string) | undefined;
25
+ readonly format?: import('./TextField.vue').TextFieldFormat | undefined;
25
26
  readonly partialVisible?: boolean | undefined;
26
27
  readonly visibleStart?: number | undefined;
27
28
  readonly visibleEnd?: number | undefined;
@@ -52,10 +53,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
52
53
  disabled?: boolean;
53
54
  rounded?: "none" | "sm" | "md" | "lg" | "full" | string | number;
54
55
  size?: "sm" | "md" | "lg";
56
+ type?: string;
55
57
  password?: boolean;
56
58
  placeholder?: string;
57
59
  label?: string;
58
- format?: (value: string) => string;
60
+ format?: import('./TextField.vue').TextFieldFormat;
59
61
  partialVisible?: boolean;
60
62
  visibleStart?: number;
61
63
  visibleEnd?: number;
@@ -66,6 +68,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
66
68
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
67
69
  "update:modelValue": (value: string | number) => any;
68
70
  }, string, {
71
+ type: string;
69
72
  color: "primary" | "secondary" | "tertiary" | "error";
70
73
  size: "sm" | "md" | "lg";
71
74
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
@@ -92,6 +95,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
92
95
  $nextTick: typeof import('vue').nextTick;
93
96
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
94
97
  } & Readonly<{
98
+ type: string;
95
99
  color: "primary" | "secondary" | "tertiary" | "error";
96
100
  size: "sm" | "md" | "lg";
97
101
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
@@ -106,16 +110,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
106
110
  disabled?: boolean;
107
111
  rounded?: "none" | "sm" | "md" | "lg" | "full" | string | number;
108
112
  size?: "sm" | "md" | "lg";
113
+ type?: string;
109
114
  password?: boolean;
110
115
  placeholder?: string;
111
116
  label?: string;
112
- format?: (value: string) => string;
117
+ format?: import('./TextField.vue').TextFieldFormat;
113
118
  partialVisible?: boolean;
114
119
  visibleStart?: number;
115
120
  visibleEnd?: number;
116
121
  }> & Readonly<{
117
122
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
118
- }>, "el" | ("color" | "size" | "rounded" | "visibleStart" | "visibleEnd")> & import('vue').ShallowUnwrapRef<{
123
+ }>, "el" | ("type" | "color" | "size" | "rounded" | "visibleStart" | "visibleEnd")> & import('vue').ShallowUnwrapRef<{
119
124
  el: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
120
125
  }> & {} & import('vue').ComponentCustomProperties & {} & {
121
126
  $slots: {
@@ -1,6 +1,8 @@
1
+ import { ContainerVariant } from '../types';
1
2
  type Position = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end' | 'top' | 'bottom' | 'left' | 'right';
2
3
  type __VLS_Props = {
3
4
  trigger?: 'hover' | 'click';
5
+ variant?: ContainerVariant;
4
6
  position?: Position;
5
7
  zIndex?: number;
6
8
  offset?: number;
@@ -1,24 +1,22 @@
1
- import { Size } from '../types';
1
+ import { Component } from 'vue';
2
+ import { Color, Size } from '../types';
3
+ type IconValue = string | Component;
4
+ type IconSingle = IconValue | {
5
+ active: IconValue;
6
+ normal: IconValue;
7
+ };
8
+ type IconType = IconSingle | IconSingle[] | undefined;
2
9
  type __VLS_Props = {
3
10
  count?: number;
4
11
  icons?: IconType;
5
- color?: string[] | string;
12
+ color?: (Color | string) | (Color | string)[];
6
13
  highlightSelectedOnly?: boolean;
7
14
  unselectable?: boolean;
8
15
  size?: Size;
9
- };
10
- type IconType = string | {
11
- active: string;
12
- normal: string;
13
- } | (string | {
14
- active: string;
15
- normal: string;
16
- })[] | undefined;
17
- declare const __VLS_defaults: {
18
- modelValue: number;
16
+ allowHalf?: boolean;
19
17
  };
20
18
  type __VLS_PublicProps = {
21
- modelValue?: typeof __VLS_defaults['modelValue'];
19
+ modelValue?: number;
22
20
  } & __VLS_Props;
23
21
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
22
  select: (args_0: number) => any;
@@ -27,6 +25,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
27
25
  onSelect?: ((args_0: number) => any) | undefined;
28
26
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
29
27
  }>, {
30
- color: string[] | string;
28
+ color: (Color | string) | (Color | string)[];
29
+ unselectable: boolean;
30
+ count: number;
31
+ highlightSelectedOnly: boolean;
32
+ allowHalf: boolean;
31
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
34
  export default _default;
@@ -1,8 +1,8 @@
1
- import { Color } from '../types';
1
+ import { Color, IconSource, Rounded } from '../types';
2
2
  export interface StepItem {
3
3
  title: string;
4
4
  description?: string;
5
- icon?: string;
5
+ icon?: IconSource;
6
6
  status?: 'wait' | 'process' | 'finish' | 'error';
7
7
  disabled?: boolean;
8
8
  }
@@ -20,6 +20,7 @@ type __VLS_Props = {
20
20
  responsive?: boolean;
21
21
  progressDot?: boolean;
22
22
  labelPlacement?: 'horizontal' | 'vertical';
23
+ iconRounded?: Rounded;
23
24
  };
24
25
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
26
  "update:modelValue": (value: number) => any;
@@ -42,6 +43,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
42
43
  responsive: boolean;
43
44
  progressDot: boolean;
44
45
  labelPlacement: "horizontal" | "vertical";
46
+ iconRounded: Rounded;
45
47
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
46
48
  stepRef: HTMLDivElement;
47
49
  }, HTMLDivElement>;
@@ -26,8 +26,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
26
26
  onChange?: ((args_0: boolean) => any) | undefined;
27
27
  }>, {
28
28
  animate: boolean;
29
- color: Color;
30
- size: "sm" | "md" | "lg";
31
29
  rounded: "none" | "sm" | "md" | "lg" | "full" | string | number;
32
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
31
  wrapperRef: HTMLDivElement;