veloce-vue 0.15.0 → 0.16.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.
@@ -1,18 +1,23 @@
1
- import { type Icons as IconsType } from "./index.ts";
1
+ import { Icons as IconsType } from './index.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  type __VLS_Props = {
3
4
  icon: IconsType | (string & {});
4
5
  class?: string;
5
6
  size?: number | string;
6
7
  };
7
- declare var __VLS_7: {};
8
- type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_7) => any;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
10
15
  };
11
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
- declare const _default: typeof __VLS_export;
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
19
  export default _default;
15
- type __VLS_WithSlots<T, S> = T & {
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
21
  new (): {
17
22
  $slots: S;
18
23
  };
@@ -1,8 +1,9 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
2
  export declare const iconsMap: {
2
- readonly check: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
- readonly close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
- readonly loading: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
- readonly "chevron-down": import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- readonly alert: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- readonly hamburger: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ readonly check: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
4
+ readonly close: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
5
+ readonly loading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
6
+ readonly "chevron-down": DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
7
+ readonly alert: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
8
+ readonly hamburger: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
8
9
  };
@@ -1,6 +1,6 @@
1
- import type { Component } from "vue";
2
- import { iconsMap } from "./icons";
1
+ import { Component } from 'vue';
2
+ import { iconsMap } from './icons';
3
3
  export type Icons = keyof typeof iconsMap;
4
4
  export declare const Icons: Record<Icons, Component>;
5
5
  export declare const iconsList: Icons[];
6
- export { default as Icon } from "./Icon.vue";
6
+ export { default as Icon } from './Icon.vue';
package/config.js ADDED
@@ -0,0 +1,16 @@
1
+ const n = (o) => ({
2
+ install() {
3
+ if (!o || !o.colors) {
4
+ console.warn("No config provided for the theme settings");
5
+ return;
6
+ }
7
+ r(o.colors);
8
+ }
9
+ }), r = (o) => {
10
+ const e = document.documentElement;
11
+ for (const t in o)
12
+ o[t] && e.style.setProperty(`--ui-color-${t}`, o[t]);
13
+ };
14
+ export {
15
+ n as config
16
+ };
@@ -1 +1 @@
1
- export { config } from "../utils/config";
1
+ export { config } from '../utils/config';
@@ -1 +1 @@
1
- export { Icon, iconsList, Icons } from "../components/icon";
1
+ export { Icon, iconsList, Icons } from '../components/icon';
package/exports/lib.d.ts CHANGED
@@ -1 +1 @@
1
- export { cn } from "../lib/utils";
1
+ export { cn } from '../lib/utils';
package/exports/ui.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Accordion } from "../ui/accordion";
2
- export { Button } from "../ui/button";
1
+ export { Accordion } from '../ui/accordion';
2
+ export { Button } from '../ui/button';
package/icons.js ADDED
@@ -0,0 +1,6 @@
1
+ import { _ as a, I as c, i } from "./index-DETZgETo.js";
2
+ export {
3
+ a as Icon,
4
+ c as Icons,
5
+ i as iconsList
6
+ };
@@ -0,0 +1,147 @@
1
+ import { createElementBlock as r, openBlock as o, createElementVNode as e, defineComponent as d, computed as a, createBlock as u, renderSlot as _, resolveDynamicComponent as w, normalizeClass as m } from "vue";
2
+ const s = (n, t) => {
3
+ const i = n.__vccOpts || n;
4
+ for (const [l, c] of t)
5
+ i[l] = c;
6
+ return i;
7
+ }, f = {}, p = {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: "24",
10
+ height: "24",
11
+ viewBox: "0 0 24 24"
12
+ };
13
+ function g(n, t) {
14
+ return o(), r("svg", p, [...t[0] || (t[0] = [
15
+ e("path", {
16
+ fill: "currentColor",
17
+ d: "m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z"
18
+ }, null, -1)
19
+ ])]);
20
+ }
21
+ const v = /* @__PURE__ */ s(f, [["render", g]]), x = {}, k = {
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ width: "24",
24
+ height: "24",
25
+ viewBox: "0 0 24 24"
26
+ };
27
+ function $(n, t) {
28
+ return o(), r("svg", k, [...t[0] || (t[0] = [
29
+ e("path", {
30
+ fill: "currentColor",
31
+ d: "m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"
32
+ }, null, -1)
33
+ ])]);
34
+ }
35
+ const C = /* @__PURE__ */ s(x, [["render", $]]), L = {}, B = {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ width: "24",
38
+ height: "24",
39
+ viewBox: "0 0 24 24"
40
+ };
41
+ function y(n, t) {
42
+ return o(), r("svg", B, [...t[0] || (t[0] = [
43
+ e("path", {
44
+ fill: "currentColor",
45
+ d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
46
+ opacity: "0.25"
47
+ }, null, -1),
48
+ e("path", {
49
+ fill: "currentColor",
50
+ d: "M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
51
+ }, [
52
+ e("animateTransform", {
53
+ type: "rotate",
54
+ attributeName: "transform",
55
+ dur: "0.75s",
56
+ repeatCount: "indefinite",
57
+ values: "0 12 12;360 12 12"
58
+ })
59
+ ], -1)
60
+ ])]);
61
+ }
62
+ const q = /* @__PURE__ */ s(L, [["render", y]]), z = {}, A = {
63
+ xmlns: "http://www.w3.org/2000/svg",
64
+ width: "24",
65
+ height: "24",
66
+ viewBox: "-5 -8 24 24"
67
+ };
68
+ function M(n, t) {
69
+ return o(), r("svg", A, [...t[0] || (t[0] = [
70
+ e("path", {
71
+ fill: "currentColor",
72
+ d: "m7.071 5.314l4.95-4.95a1 1 0 1 1 1.414 1.414L7.778 7.435a1 1 0 0 1-1.414 0L.707 1.778A1 1 0 1 1 2.121.364z"
73
+ }, null, -1)
74
+ ])]);
75
+ }
76
+ const b = /* @__PURE__ */ s(z, [["render", M]]), I = {}, j = {
77
+ xmlns: "http://www.w3.org/2000/svg",
78
+ width: "24",
79
+ height: "24",
80
+ viewBox: "0 0 24 24"
81
+ };
82
+ function Z(n, t) {
83
+ return o(), r("svg", j, [...t[0] || (t[0] = [
84
+ e("g", { fill: "none" }, [
85
+ e("path", {
86
+ fill: "currentColor",
87
+ "fill-opacity": "0.16",
88
+ d: "M10.575 5.217L3.517 17a1.667 1.667 0 0 0 1.425 2.5h14.116a1.666 1.666 0 0 0 1.425-2.5L13.426 5.217a1.666 1.666 0 0 0-2.85 0"
89
+ }),
90
+ e("path", {
91
+ stroke: "currentColor",
92
+ "stroke-linecap": "round",
93
+ "stroke-linejoin": "round",
94
+ "stroke-miterlimit": "10",
95
+ "stroke-width": "1.5",
96
+ d: "M12 16h.008M12 10v3m-1.425-7.783L3.517 17a1.667 1.667 0 0 0 1.425 2.5h14.116a1.666 1.666 0 0 0 1.425-2.5L13.426 5.217a1.666 1.666 0 0 0-2.85 0"
97
+ })
98
+ ], -1)
99
+ ])]);
100
+ }
101
+ const D = /* @__PURE__ */ s(I, [["render", Z]]), E = {}, N = {
102
+ xmlns: "http://www.w3.org/2000/svg",
103
+ width: "16",
104
+ height: "16",
105
+ viewBox: "0 0 16 16"
106
+ };
107
+ function O(n, t) {
108
+ return o(), r("svg", N, [...t[0] || (t[0] = [
109
+ e("path", {
110
+ fill: "none",
111
+ stroke: "currentColor",
112
+ "stroke-linecap": "round",
113
+ "stroke-linejoin": "round",
114
+ "stroke-width": "1.5",
115
+ d: "m2.75 12.25h10.5m-10.5-4h10.5m-10.5-4h10.5"
116
+ }, null, -1)
117
+ ])]);
118
+ }
119
+ const H = /* @__PURE__ */ s(E, [["render", O]]), h = {
120
+ check: v,
121
+ close: C,
122
+ loading: q,
123
+ "chevron-down": b,
124
+ alert: D,
125
+ hamburger: H
126
+ }, F = /* @__PURE__ */ d({
127
+ __name: "Icon",
128
+ props: {
129
+ icon: {},
130
+ class: {},
131
+ size: {}
132
+ },
133
+ setup(n) {
134
+ const t = n, i = a(() => t.size ?? 24), l = a(() => t.icon ? S[t.icon] : "");
135
+ return (c, T) => l.value ? (o(), u(w(l.value), {
136
+ key: 0,
137
+ class: m(["shrink-0", t.class]),
138
+ width: i.value,
139
+ height: i.value
140
+ }, null, 8, ["class", "width", "height"])) : _(c.$slots, "default", { key: 1 });
141
+ }
142
+ }), S = h, G = Object.keys(h);
143
+ export {
144
+ S as I,
145
+ F as _,
146
+ G as i
147
+ };
package/lib/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { ClassValue } from "clsx";
1
+ import { ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veloce-vue",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 library built with Vite + TypeScript + Tailwind CSS.",
@@ -14,40 +14,28 @@
14
14
  "url": "https://github.com/SherazJutt/veloce-vue/issues"
15
15
  },
16
16
  "homepage": "https://github.com/SherazJutt/veloce-vue#readme",
17
- "main": "./index.cjs",
18
- "module": "./index.js",
19
- "types": "./exports.d.ts",
20
- "style": "./veloce-vue.css",
21
17
  "exports": {
22
- ".": {
23
- "import": "./index.js",
24
- "require": "./index.cjs",
25
- "types": "./exports.d.ts",
26
- "default": "./index.js"
18
+ "./ui": {
19
+ "types": "./exports/ui.d.ts",
20
+ "import": "./ui.js",
21
+ "default": "./ui.js"
27
22
  },
28
- "./styles.css": "./veloce-vue.css"
23
+ "./icons": {
24
+ "types": "./exports/icons.d.ts",
25
+ "import": "./icons.js",
26
+ "default": "./icons.js"
27
+ },
28
+ "./config": {
29
+ "types": "./exports/config.d.ts",
30
+ "import": "./config.js",
31
+ "default": "./config.js"
32
+ },
33
+ "./styles.css": "./veloce.css"
29
34
  },
30
- "files": [
31
- "**/*"
32
- ],
33
- "sideEffects": [
34
- "./veloce-vue.css"
35
- ],
36
35
  "peerDependencies": {
37
36
  "vue": "^3.3.0"
38
37
  },
39
38
  "keywords": [
40
- "vue3",
41
- "tailwindcss",
42
- "component library",
43
- "vue",
44
- "vuejs",
45
- "vue.js",
46
- "typescript",
47
- "veloce-vue",
48
- "ui",
49
- "tailwind",
50
- "framework",
51
- "ui-framework"
39
+ "veloce-vue"
52
40
  ]
53
41
  }
@@ -1,3 +1,4 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
2
  type __VLS_Props = {
2
3
  defaultOpen?: boolean;
3
4
  items: {
@@ -8,6 +9,5 @@ type __VLS_Props = {
8
9
  allowMultiple?: boolean;
9
10
  border?: boolean;
10
11
  };
11
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
12
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,17 +1,21 @@
1
- import type { AccordionContentProps } from "reka-ui";
2
- import type { HTMLAttributes } from "vue";
1
+ import { AccordionContentProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = AccordionContentProps & {
4
4
  class?: HTMLAttributes["class"];
5
5
  };
6
- declare var __VLS_7: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_7) => any;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
9
13
  };
10
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
- declare const _default: typeof __VLS_export;
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
17
  export default _default;
14
- type __VLS_WithSlots<T, S> = T & {
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
19
  new (): {
16
20
  $slots: S;
17
21
  };
@@ -1,17 +1,21 @@
1
- import type { AccordionItemProps } from "reka-ui";
2
- import type { HTMLAttributes } from "vue";
1
+ import { AccordionItemProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = AccordionItemProps & {
4
4
  class?: HTMLAttributes["class"];
5
5
  };
6
- declare var __VLS_7: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_7) => any;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
9
13
  };
10
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
- declare const _default: typeof __VLS_export;
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
17
  export default _default;
14
- type __VLS_WithSlots<T, S> = T & {
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
19
  new (): {
16
20
  $slots: S;
17
21
  };
@@ -1,18 +1,23 @@
1
- import type { AccordionRootProps } from "reka-ui";
1
+ import { AccordionRootProps } from 'reka-ui';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  type __VLS_Props = AccordionRootProps;
3
- declare var __VLS_7: {};
4
- type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_7) => any;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
6
11
  };
7
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
14
  "update:modelValue": (value: string | string[] | undefined) => any;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
10
16
  "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
- declare const _default: typeof __VLS_export;
17
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
19
  export default _default;
15
- type __VLS_WithSlots<T, S> = T & {
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
21
  new (): {
17
22
  $slots: S;
18
23
  };
@@ -1,19 +1,22 @@
1
- import type { AccordionTriggerProps } from "reka-ui";
2
- import type { HTMLAttributes } from "vue";
1
+ import { AccordionTriggerProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = AccordionTriggerProps & {
4
4
  class?: HTMLAttributes["class"];
5
5
  };
6
- declare var __VLS_12: {}, __VLS_14: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_12) => any;
9
- } & {
10
- icon?: (props: typeof __VLS_14) => any;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ icon?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
11
14
  };
12
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
- declare const _default: typeof __VLS_export;
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
18
  export default _default;
16
- type __VLS_WithSlots<T, S> = T & {
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
20
  new (): {
18
21
  $slots: S;
19
22
  };
@@ -1,5 +1,5 @@
1
- export { default as Accordion } from "./Accordion.vue";
2
- export { default as AccordionRoot } from "./AccordionRoot.vue";
3
- export { default as AccordionContent } from "./AccordionContent.vue";
4
- export { default as AccordionItem } from "./AccordionItem.vue";
5
- export { default as AccordionTrigger } from "./AccordionTrigger.vue";
1
+ export { default as Accordion } from './Accordion.vue';
2
+ export { default as AccordionRoot } from './AccordionRoot.vue';
3
+ export { default as AccordionContent } from './AccordionContent.vue';
4
+ export { default as AccordionItem } from './AccordionItem.vue';
5
+ export { default as AccordionTrigger } from './AccordionTrigger.vue';
@@ -1,7 +1,7 @@
1
- import type { PrimitiveProps } from "reka-ui";
2
- import type { HTMLAttributes } from "vue";
3
- import type { ButtonVariants } from ".";
4
- import { type Icons } from "@veloce/icons";
1
+ import { PrimitiveProps, AsTag } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, Component, ComponentProvideOptions } from 'vue';
3
+ import { ButtonVariants } from '.';
4
+ import { Icons } from '../../exports/icons';
5
5
  interface Props extends PrimitiveProps {
6
6
  variant?: ButtonVariants["variant"];
7
7
  size?: ButtonVariants["size"];
@@ -10,17 +10,21 @@ interface Props extends PrimitiveProps {
10
10
  icon?: Icons;
11
11
  disabled?: boolean;
12
12
  }
13
- declare var __VLS_7: {};
14
- type __VLS_Slots = {} & {
15
- default?: (props: typeof __VLS_7) => any;
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
16
20
  };
17
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
- as: import("reka-ui").AsTag | import("vue").Component;
19
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
- declare const _default: typeof __VLS_export;
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ as: AsTag | Component;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
26
  export default _default;
23
- type __VLS_WithSlots<T, S> = T & {
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
28
  new (): {
25
29
  $slots: S;
26
30
  };
@@ -1,7 +1,8 @@
1
- import type { VariantProps } from "class-variance-authority";
2
- export { default as Button } from "./Button.vue";
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ClassProp } from 'class-variance-authority/types';
3
+ export { default as Button } from './Button.vue';
3
4
  export declare const buttonVariants: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
+ size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
7
+ } & ClassProp) | undefined) => string;
7
8
  export type ButtonVariants = VariantProps<typeof buttonVariants>;