veloce-vue 0.15.0 → 0.17.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.
- package/components/Button.vue.d.ts +88 -0
- package/components/icon/Icon.vue.d.ts +13 -8
- package/components/icon/icons.d.ts +7 -6
- package/components/icon/index.d.ts +3 -3
- package/config.js +16 -0
- package/exports/config.d.ts +1 -1
- package/exports/icons.d.ts +1 -1
- package/exports/ui.d.ts +1 -2
- package/icons.js +6 -0
- package/index-DETZgETo.js +147 -0
- package/package.json +17 -29
- package/ui.js +61 -0
- package/veloce.css +1 -0
- package/exports/lib.d.ts +0 -1
- package/icons/Alert.vue.d.ts +0 -3
- package/icons/Check.vue.d.ts +0 -3
- package/icons/ChevronDown.vue.d.ts +0 -3
- package/icons/Close.vue.d.ts +0 -3
- package/icons/Hamburger.vue.d.ts +0 -3
- package/icons/Loading.vue.d.ts +0 -3
- package/index.cjs +0 -29
- package/index.cjs.map +0 -1
- package/index.d.ts +0 -4
- package/index.js +0 -4206
- package/index.js.map +0 -1
- package/lib/utils.d.ts +0 -2
- package/ui/accordion/Accordion.vue.d.ts +0 -13
- package/ui/accordion/AccordionContent.vue.d.ts +0 -18
- package/ui/accordion/AccordionItem.vue.d.ts +0 -18
- package/ui/accordion/AccordionRoot.vue.d.ts +0 -19
- package/ui/accordion/AccordionTrigger.vue.d.ts +0 -20
- package/ui/accordion/index.d.ts +0 -5
- package/ui/button/Button.vue.d.ts +0 -27
- package/ui/button/index.d.ts +0 -7
- package/utils/config.d.ts +0 -12
- package/veloce-vue.css +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Icons } from '../exports/icons';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
label: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
loading: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
variant: {
|
|
17
|
+
type: () => "outlined" | "link" | "ghost" | "solid" | "soft";
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
icon: {
|
|
21
|
+
type: () => Icons;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
iconClass: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
iconPosition: {
|
|
29
|
+
type: () => "left" | "right";
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
rounded: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
type: () => "sm" | "md" | "lg";
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
41
|
+
label: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
type: () => "outlined" | "link" | "ghost" | "solid" | "soft";
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
icon: {
|
|
58
|
+
type: () => Icons;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
iconClass: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
iconPosition: {
|
|
66
|
+
type: () => "left" | "right";
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
rounded: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
type: () => "sm" | "md" | "lg";
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {
|
|
78
|
+
label: string;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
icon: "check" | "close" | "loading" | "chevron-down" | "alert" | "hamburger";
|
|
81
|
+
size: "sm" | "md" | "lg";
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
variant: "link" | "outlined" | "ghost" | "solid" | "soft";
|
|
84
|
+
iconClass: string;
|
|
85
|
+
iconPosition: "left" | "right";
|
|
86
|
+
rounded: boolean;
|
|
87
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
export default _default;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import {
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
10
15
|
};
|
|
11
|
-
|
|
12
|
-
declare const
|
|
13
|
-
declare const _default: typeof
|
|
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
|
|
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:
|
|
3
|
-
readonly close:
|
|
4
|
-
readonly loading:
|
|
5
|
-
readonly "chevron-down":
|
|
6
|
-
readonly alert:
|
|
7
|
-
readonly hamburger:
|
|
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
|
|
2
|
-
import { iconsMap } from
|
|
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
|
|
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
|
+
};
|
package/exports/config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { config } from
|
|
1
|
+
export { config } from '../utils/config';
|
package/exports/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Icon, iconsList, Icons } from
|
|
1
|
+
export { Icon, iconsList, Icons } from '../components/icon';
|
package/exports/ui.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Button } from "../ui/button";
|
|
1
|
+
export { default as Button } from '../components/Button.vue';
|
package/icons.js
ADDED
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veloce-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"default": "./index.js"
|
|
18
|
+
"./ui": {
|
|
19
|
+
"types": "./exports/ui.d.ts",
|
|
20
|
+
"import": "./ui.js",
|
|
21
|
+
"default": "./ui.js"
|
|
27
22
|
},
|
|
28
|
-
"./
|
|
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
|
-
"
|
|
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
|
}
|
package/ui.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as u, computed as c, createElementBlock as n, openBlock as t, normalizeClass as r, createCommentVNode as a, createBlock as o, toDisplayString as p, unref as i } from "vue";
|
|
2
|
+
import { _ as l } from "./index-DETZgETo.js";
|
|
3
|
+
const b = ["disabled"], v = /* @__PURE__ */ u({
|
|
4
|
+
__name: "Button",
|
|
5
|
+
props: {
|
|
6
|
+
label: { type: String, default: "" },
|
|
7
|
+
loading: { type: Boolean, default: !1 },
|
|
8
|
+
disabled: { type: Boolean, default: !1 },
|
|
9
|
+
variant: { type: String, default: "solid" },
|
|
10
|
+
icon: { type: String, default: "" },
|
|
11
|
+
iconClass: { type: String, default: "" },
|
|
12
|
+
iconPosition: { type: String, default: "right" },
|
|
13
|
+
rounded: { type: Boolean, default: !1 },
|
|
14
|
+
size: { type: String, default: "sm" }
|
|
15
|
+
},
|
|
16
|
+
setup(s) {
|
|
17
|
+
const e = s, d = c(() => {
|
|
18
|
+
switch (e.variant) {
|
|
19
|
+
case "ghost":
|
|
20
|
+
return "bg-transparent dark:hover:bg-neutral-800 hover:bg-neutral-100 disabled:hover:bg-transparent";
|
|
21
|
+
case "outlined":
|
|
22
|
+
return "border-primary! text-primary hover:bg-primary hover:text-inverted disabled:hover:bg-transparent disabled:hover:text-primary disabled:hover:bg-primary disabled:hover:text-inverted";
|
|
23
|
+
case "link":
|
|
24
|
+
return "text-neutral-700 hover:underline dark:text-neutral-200";
|
|
25
|
+
case "soft":
|
|
26
|
+
return "bg-neutral-100 text-neutral-700 hover:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700";
|
|
27
|
+
default:
|
|
28
|
+
return "bg-primary text-inverted hover:bg-primary/70 disabled:hover:bg-primary dark:hover:bg-primary/80";
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return (g, m) => (t(), n("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
disabled: e.disabled || e.loading,
|
|
34
|
+
class: r([
|
|
35
|
+
d.value,
|
|
36
|
+
{ "rounded-full": e.rounded },
|
|
37
|
+
"flex cursor-pointer items-center justify-center font-medium gap-2 rounded border disabled:opacity-75 border-transparent transition-all duration-200 disabled:cursor-not-allowed focus:outline-none",
|
|
38
|
+
{ "justify-center": !e.icon },
|
|
39
|
+
{ "p-1 px-2 text-sm": e.size === "sm", "p-2 px-3 text-base": e.size === "md", "p-3 px-4 text-lg": e.size === "lg" }
|
|
40
|
+
])
|
|
41
|
+
}, [
|
|
42
|
+
e.label ? (t(), n("span", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: r({ "order-2": e.iconPosition === "left" })
|
|
45
|
+
}, p(e.label), 3)) : a("", !0),
|
|
46
|
+
e.icon && !e.loading ? (t(), o(i(l), {
|
|
47
|
+
key: 1,
|
|
48
|
+
icon: e.icon,
|
|
49
|
+
class: r([e.iconClass, "duration-200 size-5 text-current"])
|
|
50
|
+
}, null, 8, ["icon", "class"])) : a("", !0),
|
|
51
|
+
e.loading ? (t(), o(i(l), {
|
|
52
|
+
key: 2,
|
|
53
|
+
icon: "loading",
|
|
54
|
+
class: "duration-200 size-5 text-current"
|
|
55
|
+
})) : a("", !0)
|
|
56
|
+
], 10, b));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
v as Button
|
|
61
|
+
};
|
package/veloce.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-200:oklch(92.9% .013 255.508);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--ui-color-border)}body{color:var(--ui-color-text)}}@layer components;@layer utilities{.order-2{order:2}.flex{display:flex}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.rounded{border-radius:var(--ui-border-radius)}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-primary\!{border-color:var(--ui-color-primary)!important}.border-transparent{border-color:#0000}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-primary{background-color:var(--ui-color-primary)}.bg-transparent{background-color:#0000}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-current{color:currentColor}.text-inverted{color:var(--ui-color-text-inverted)}.text-neutral-700{color:var(--color-neutral-700)}.text-primary{color:var(--ui-color-primary)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-primary:hover,.hover\:bg-primary\/70:hover{background-color:var(--ui-color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/70:hover{background-color:color-mix(in oklab,var(--ui-color-primary)70%,transparent)}}.hover\:text-inverted:hover{color:var(--ui-color-text-inverted)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-75:disabled{opacity:.75}@media(hover:hover){.disabled\:hover\:bg-primary:disabled:hover{background-color:var(--ui-color-primary)}.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}.disabled\:hover\:text-inverted:disabled:hover{color:var(--ui-color-text-inverted)}.disabled\:hover\:text-primary:disabled:hover{color:var(--ui-color-primary)}}.dark\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\:text-neutral-200:where(.dark,.dark *){color:var(--color-neutral-200)}@media(hover:hover){.dark\:hover\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--color-neutral-700)}.dark\:hover\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}.dark\:hover\:bg-primary\/80:where(.dark,.dark *):hover{background-color:var(--ui-color-primary)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-primary\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--ui-color-primary)80%,transparent)}}}}:root{--ui-color-primary:#00c16a;--ui-color-primary-light:#d9fbe8;--ui-color-secondary:#2b7fff;--ui-color-secondary-light:#dbeafe;--ui-color-success:#00c16a;--ui-color-success-light:#d9fbe8;--ui-color-info:#2b7fff;--ui-color-info-light:#dbeafe;--ui-color-warning:#f0b100;--ui-color-warning-light:#fef9c2;--ui-color-error:#fb2c36;--ui-color-error-light:#ffe2e2;--ui-color-text:var(--color-neutral-700);--ui-color-text-muted:var(--color-neutral-500);--ui-color-text-inverted:var(--color-white);--ui-color-background:var(--color-white);--ui-color-border:var(--color-slate-200);--ui-border-radius:.25rem}:root:where(.dark){--ui-color-primary:#00dc82;--ui-color-primary-light:#d9fbe8;--ui-color-secondary:#51a2ff;--ui-color-secondary-light:#dbeafe;--ui-color-success:#00dc82;--ui-color-success-light:#d9fbe8;--ui-color-info:#51a2ff;--ui-color-info-light:#dbeafe;--ui-color-warning:#fdc700;--ui-color-warning-light:#fef9c2;--ui-color-error:#ff6467;--ui-color-error-light:#ffe2e2;--ui-color-text:var(--color-neutral-200);--ui-color-text-muted:var(--color-neutral-400);--ui-color-text-inverted:var(--color-neutral-900);--ui-color-background:var(--color-neutral-900);--ui-color-border:var(--color-neutral-800)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|
package/exports/lib.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { cn } from "../lib/utils";
|
package/icons/Alert.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
package/icons/Check.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
package/icons/Close.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
package/icons/Hamburger.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
package/icons/Loading.vue.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|