veloce-vue 0.16.0 → 0.18.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.
@@ -0,0 +1,71 @@
1
+ import { Icons } from '../exports/icons';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ export type AccordionItem = {
4
+ title: string;
5
+ content: string;
6
+ slot?: string;
7
+ icon?: Icons;
8
+ active?: boolean;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: Partial<Record<string, (_: {}) => any>>;
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
18
+ items: {
19
+ type: () => AccordionItem[];
20
+ required: true;
21
+ };
22
+ shadow: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ contentClass: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ headerClass: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ multiple: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
39
+ items: {
40
+ type: () => AccordionItem[];
41
+ required: true;
42
+ };
43
+ shadow: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ contentClass: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ headerClass: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ multiple: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ }>> & Readonly<{}>, {
60
+ shadow: boolean;
61
+ contentClass: string;
62
+ headerClass: string;
63
+ multiple: boolean;
64
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,103 @@
1
+ import { Icons } from '../exports/icons';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
13
+ label: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ loading: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ disabled: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ variant: {
26
+ type: () => "outlined" | "link" | "ghost" | "solid" | "soft";
27
+ default: string;
28
+ };
29
+ icon: {
30
+ type: () => Icons;
31
+ default: string;
32
+ };
33
+ iconClass: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ iconPosition: {
38
+ type: () => "left" | "right";
39
+ default: string;
40
+ };
41
+ rounded: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ size: {
46
+ type: () => "sm" | "md" | "lg";
47
+ default: string;
48
+ };
49
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
50
+ label: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ loading: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ variant: {
63
+ type: () => "outlined" | "link" | "ghost" | "solid" | "soft";
64
+ default: string;
65
+ };
66
+ icon: {
67
+ type: () => Icons;
68
+ default: string;
69
+ };
70
+ iconClass: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ iconPosition: {
75
+ type: () => "left" | "right";
76
+ default: string;
77
+ };
78
+ rounded: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ size: {
83
+ type: () => "sm" | "md" | "lg";
84
+ default: string;
85
+ };
86
+ }>> & Readonly<{}>, {
87
+ label: string;
88
+ loading: boolean;
89
+ icon: "check" | "close" | "loading" | "chevron-down" | "alert" | "hamburger" | "sun" | "moon" | "eye" | "eye-off";
90
+ size: "sm" | "md" | "lg";
91
+ rounded: boolean;
92
+ disabled: boolean;
93
+ variant: "link" | "outlined" | "ghost" | "solid" | "soft";
94
+ iconClass: string;
95
+ iconPosition: "left" | "right";
96
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
97
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
98
+ export default _default;
99
+ type __VLS_WithTemplateSlots<T, S> = T & {
100
+ new (): {
101
+ $slots: S;
102
+ };
103
+ };
@@ -0,0 +1,84 @@
1
+ import { Icons } from '../exports/icons';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type CheckboxSize = "sm" | "md" | "lg";
4
+ type CheckboxVariant = "primary" | "secondary" | "success" | "info" | "error" | "warning";
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ label: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ labelClass: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ checkboxClass: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ size: {
19
+ type: () => CheckboxSize;
20
+ default: string;
21
+ };
22
+ variant: {
23
+ type: () => CheckboxVariant;
24
+ default: string;
25
+ };
26
+ icon: {
27
+ type: () => Icons;
28
+ default: string;
29
+ };
30
+ disabled: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ modelValue: {
35
+ type: PropType<boolean>;
36
+ required: true;
37
+ };
38
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
+ "update:modelValue": (value: boolean) => any;
40
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
41
+ label: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ labelClass: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ checkboxClass: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ size: {
54
+ type: () => CheckboxSize;
55
+ default: string;
56
+ };
57
+ variant: {
58
+ type: () => CheckboxVariant;
59
+ default: string;
60
+ };
61
+ icon: {
62
+ type: () => Icons;
63
+ default: string;
64
+ };
65
+ disabled: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ modelValue: {
70
+ type: PropType<boolean>;
71
+ required: true;
72
+ };
73
+ }>> & Readonly<{
74
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
75
+ }>, {
76
+ label: string;
77
+ icon: "check" | "close" | "loading" | "chevron-down" | "alert" | "hamburger" | "sun" | "moon" | "eye" | "eye-off";
78
+ size: CheckboxSize;
79
+ disabled: boolean;
80
+ variant: CheckboxVariant;
81
+ labelClass: string;
82
+ checkboxClass: string;
83
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
84
+ export default _default;
@@ -0,0 +1,80 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ content?(_: {}): any;
7
+ footer?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
14
+ direction: {
15
+ type: () => "left" | "bottom" | "right";
16
+ default: string;
17
+ options: string[];
18
+ };
19
+ title: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ description: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ showFooter: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ show: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ modelValue: {
36
+ type: PropType<any>;
37
+ };
38
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
+ "update:modelValue": (value: any) => any;
40
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
41
+ direction: {
42
+ type: () => "left" | "bottom" | "right";
43
+ default: string;
44
+ options: string[];
45
+ };
46
+ title: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ description: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ showFooter: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ show: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ modelValue: {
63
+ type: PropType<any>;
64
+ };
65
+ }>> & Readonly<{
66
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
67
+ }>, {
68
+ title: string;
69
+ direction: "bottom" | "left" | "right";
70
+ description: string;
71
+ showFooter: boolean;
72
+ show: boolean;
73
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
74
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
75
+ export default _default;
76
+ type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1,80 @@
1
+ import { Icons } from '../exports/icons';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ leadingIcon: {
5
+ type: () => Icons;
6
+ default: string;
7
+ };
8
+ trailingIcon: {
9
+ type: () => Icons;
10
+ default: string;
11
+ };
12
+ placeholder: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ helpText: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ type: {
21
+ type: () => "text" | "password";
22
+ default: string;
23
+ };
24
+ labelStyle: {
25
+ type: () => "float" | "static";
26
+ default: string;
27
+ };
28
+ label: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ modelValue: {
33
+ type: PropType<any>;
34
+ };
35
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
36
+ "update:modelValue": (value: any) => any;
37
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
38
+ leadingIcon: {
39
+ type: () => Icons;
40
+ default: string;
41
+ };
42
+ trailingIcon: {
43
+ type: () => Icons;
44
+ default: string;
45
+ };
46
+ placeholder: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ helpText: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ type: {
55
+ type: () => "text" | "password";
56
+ default: string;
57
+ };
58
+ labelStyle: {
59
+ type: () => "float" | "static";
60
+ default: string;
61
+ };
62
+ label: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ modelValue: {
67
+ type: PropType<any>;
68
+ };
69
+ }>> & Readonly<{
70
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
71
+ }>, {
72
+ label: string;
73
+ type: "text" | "password";
74
+ placeholder: string;
75
+ leadingIcon: "check" | "close" | "loading" | "chevron-down" | "alert" | "hamburger" | "sun" | "moon" | "eye" | "eye-off";
76
+ trailingIcon: "check" | "close" | "loading" | "chevron-down" | "alert" | "hamburger" | "sun" | "moon" | "eye" | "eye-off";
77
+ helpText: string;
78
+ labelStyle: "float" | "static";
79
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
80
+ export default _default;
@@ -1,19 +1,22 @@
1
- import { AccordionRootProps } from 'reka-ui';
2
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- type __VLS_Props = AccordionRootProps;
2
+ type __VLS_PublicProps = {
3
+ modelValue?: any;
4
+ };
4
5
  declare function __VLS_template(): {
5
6
  attrs: Partial<{}>;
6
7
  slots: {
7
8
  default?(_: {}): any;
9
+ content?(_: {}): any;
10
+ footer?(_: {}): any;
8
11
  };
9
12
  refs: {};
10
13
  rootEl: any;
11
14
  };
12
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
- "update:modelValue": (value: string | string[] | undefined) => any;
15
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
16
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ "update:modelValue": (value: any) => any;
18
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
17
20
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
22
  export default _default;
@@ -0,0 +1,51 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ body?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
13
+ position: {
14
+ type: () => "top" | "bottom";
15
+ default: string;
16
+ options: string[];
17
+ };
18
+ bodyClass: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ contentClass: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
27
+ position: {
28
+ type: () => "top" | "bottom";
29
+ default: string;
30
+ options: string[];
31
+ };
32
+ bodyClass: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ contentClass: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ }>> & Readonly<{}>, {
41
+ contentClass: string;
42
+ position: "bottom" | "top";
43
+ bodyClass: string;
44
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -6,4 +6,8 @@ export declare const iconsMap: {
6
6
  readonly "chevron-down": DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
7
7
  readonly alert: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
8
8
  readonly hamburger: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
9
+ readonly sun: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
10
+ readonly moon: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
11
+ readonly eye: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
12
+ readonly "eye-off": DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
9
13
  };
package/exports/ui.d.ts CHANGED
@@ -1,2 +1,7 @@
1
- export { Accordion } from '../ui/accordion';
2
- export { Button } from '../ui/button';
1
+ export { default as Accordion, type AccordionItem } from '../components/Accordion.vue';
2
+ export { default as Button } from '../components/Button.vue';
3
+ export { default as Checkbox } from '../components/Checkbox.vue';
4
+ export { default as Drawer } from '../components/Drawer.vue';
5
+ export { default as Input } from '../components/Input.vue';
6
+ export { default as Modal } from '../components/Modal.vue';
7
+ export { default as Popover } from '../components/Popover.vue';
@@ -0,0 +1 @@
1
+ export { useRandomId } from '../utils/useRandomId';
package/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, I as c, i } from "./index-DETZgETo.js";
1
+ import { _ as a, I as c, i } from "./index-1Hh5u2VX.js";
2
2
  export {
3
3
  a as Icon,
4
4
  c as Icons,