veloce-vue 0.14.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.
Files changed (79) hide show
  1. package/components/icon/Icon.vue.d.ts +24 -0
  2. package/components/icon/icons.d.ts +9 -0
  3. package/components/icon/index.d.ts +6 -9
  4. package/config.js +16 -0
  5. package/exports/config.d.ts +1 -0
  6. package/exports/icons.d.ts +1 -0
  7. package/exports/lib.d.ts +1 -0
  8. package/exports/ui.d.ts +2 -0
  9. package/icons.js +6 -0
  10. package/index-DETZgETo.js +147 -0
  11. package/lib/utils.d.ts +2 -0
  12. package/package.json +17 -29
  13. package/ui/accordion/Accordion.vue.d.ts +13 -0
  14. package/ui/accordion/AccordionContent.vue.d.ts +22 -0
  15. package/ui/accordion/AccordionItem.vue.d.ts +22 -0
  16. package/ui/accordion/AccordionRoot.vue.d.ts +24 -0
  17. package/ui/accordion/AccordionTrigger.vue.d.ts +23 -0
  18. package/ui/accordion/index.d.ts +5 -0
  19. package/ui/button/Button.vue.d.ts +31 -0
  20. package/ui/button/index.d.ts +8 -0
  21. package/ui.js +4050 -0
  22. package/utils/config.d.ts +10 -2
  23. package/veloce.css +1 -0
  24. package/README.md +0 -151
  25. package/components/accordion/Index.vue.d.ts +0 -31
  26. package/components/accordion/stories.d.ts +0 -10
  27. package/components/button/Index.vue.d.ts +0 -82
  28. package/components/button/props.d.ts +0 -37
  29. package/components/button/stories.d.ts +0 -23
  30. package/components/checkbox/Index.vue.d.ts +0 -43
  31. package/components/checkbox/props.d.ts +0 -14
  32. package/components/checkbox/stories.d.ts +0 -9
  33. package/components/drawer/Index.vue.d.ts +0 -77
  34. package/components/drawer/props.d.ts +0 -23
  35. package/components/drawer/stories.d.ts +0 -9
  36. package/components/icon/index.vue.d.ts +0 -10
  37. package/components/input/Index.vue.d.ts +0 -54
  38. package/components/input/props.d.ts +0 -19
  39. package/components/input/stories.d.ts +0 -9
  40. package/components/markdown-block/Index.vue.d.ts +0 -12
  41. package/components/modal/Index.vue.d.ts +0 -29
  42. package/components/modal/props.d.ts +0 -6
  43. package/components/modal/stories.d.ts +0 -6
  44. package/components/popover/Index.vue.d.ts +0 -47
  45. package/components/popover/props.d.ts +0 -15
  46. package/components/popover/stories.d.ts +0 -7
  47. package/components/range-slider/Index.vue.d.ts +0 -28
  48. package/components/range-slider/props.d.ts +0 -10
  49. package/components/range-slider/stories.d.ts +0 -7
  50. package/components/select/Index.vue.d.ts +0 -67
  51. package/components/select/props.d.ts +0 -27
  52. package/components/select/stories.d.ts +0 -11
  53. package/components/separator/Index.vue.d.ts +0 -44
  54. package/components/separator/props.d.ts +0 -19
  55. package/components/separator/stories.d.ts +0 -7
  56. package/components/toggle/Index.vue.d.ts +0 -36
  57. package/components/toggle/props.d.ts +0 -11
  58. package/components/toggle/stories.d.ts +0 -11
  59. package/components/tooltip/Index.vue.d.ts +0 -47
  60. package/components/tooltip/props.d.ts +0 -15
  61. package/components/tooltip/stories.d.ts +0 -10
  62. package/exports.d.ts +0 -12
  63. package/icons/alert.vue.d.ts +0 -3
  64. package/icons/check.vue.d.ts +0 -3
  65. package/icons/chevron-down.vue.d.ts +0 -3
  66. package/icons/close.vue.d.ts +0 -3
  67. package/icons/loading.vue.d.ts +0 -3
  68. package/index.cjs +0 -2
  69. package/index.cjs.map +0 -1
  70. package/index.js +0 -813
  71. package/index.js.map +0 -1
  72. package/pages/Home/Index.vue.d.ts +0 -3
  73. package/pages/Home/stories.d.ts +0 -6
  74. package/pages/config/Index.vue.d.ts +0 -3
  75. package/pages/config/stories.d.ts +0 -10
  76. package/types/config.d.ts +0 -9
  77. package/utils/storyControls.d.ts +0 -4
  78. package/utils/useRandomId.d.ts +0 -1
  79. package/veloce-vue.css +0 -1
@@ -0,0 +1,24 @@
1
+ import { Icons as IconsType } from './index.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ icon: IconsType | (string & {});
5
+ class?: string;
6
+ size?: number | string;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
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"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,9 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export declare const iconsMap: {
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>;
9
+ };
@@ -1,9 +1,6 @@
1
- export declare const icons: {
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
- };
8
- export type IconNames = keyof typeof icons;
9
- export declare const IconsList: IconNames[];
1
+ import { Component } from 'vue';
2
+ import { iconsMap } from './icons';
3
+ export type Icons = keyof typeof iconsMap;
4
+ export declare const Icons: Record<Icons, Component>;
5
+ export declare const iconsList: Icons[];
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
+ };
@@ -0,0 +1 @@
1
+ export { config } from '../utils/config';
@@ -0,0 +1 @@
1
+ export { Icon, iconsList, Icons } from '../components/icon';
@@ -0,0 +1 @@
1
+ export { cn } from '../lib/utils';
@@ -0,0 +1,2 @@
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 ADDED
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
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.14.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
  }
@@ -0,0 +1,13 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ defaultOpen?: boolean;
4
+ items: {
5
+ value: string;
6
+ title: string;
7
+ content: string;
8
+ }[];
9
+ allowMultiple?: boolean;
10
+ border?: boolean;
11
+ };
12
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { AccordionContentProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = AccordionContentProps & {
4
+ class?: HTMLAttributes["class"];
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
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"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ import { AccordionItemProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = AccordionItemProps & {
4
+ class?: HTMLAttributes["class"];
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
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"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,24 @@
1
+ import { AccordionRootProps } from 'reka-ui';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = AccordionRootProps;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ 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;
17
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,23 @@
1
+ import { AccordionTriggerProps } from 'reka-ui';
2
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = AccordionTriggerProps & {
4
+ class?: HTMLAttributes["class"];
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ icon?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
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"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +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';
@@ -0,0 +1,31 @@
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
+ interface Props extends PrimitiveProps {
6
+ variant?: ButtonVariants["variant"];
7
+ size?: ButtonVariants["size"];
8
+ class?: HTMLAttributes["class"];
9
+ loading?: boolean;
10
+ icon?: Icons;
11
+ disabled?: boolean;
12
+ }
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
20
+ };
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"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,8 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ClassProp } from 'class-variance-authority/types';
3
+ export { default as Button } from './Button.vue';
4
+ export declare const buttonVariants: (props?: ({
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;
8
+ export type ButtonVariants = VariantProps<typeof buttonVariants>;