@vrojs/base 0.0.2 → 0.0.4
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/dist/index.d.ts +2 -0
- package/dist/index.js +43 -33
- package/dist/style/index.css +1 -1
- package/dist/types/ExtractComponentProps.d.ts +3 -0
- package/dist/types/ExtractComponentProps.js +1 -0
- package/dist/types/VroSlots.d.ts +4 -0
- package/dist/types/VroSlots.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/utils/addUnit.d.ts +1 -0
- package/dist/utils/addUnit.js +7 -0
- package/dist/utils/getSlotEntries.d.ts +5 -0
- package/dist/utils/getSlotEntries.js +4 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +19 -17
- package/dist/utils/showComponent.d.ts +6 -5
- package/dist/utils/showComponent.js +32 -10
- package/dist/vro-circle-progress/index.d.ts +113 -0
- package/dist/vro-circle-progress/index.js +11 -0
- package/dist/vro-circle-progress/style/css.d.ts +0 -0
- package/dist/vro-circle-progress/style/css.js +4 -0
- package/dist/vro-circle-progress/style/index.css +1 -0
- package/dist/vro-circle-progress/style/index.d.ts +0 -0
- package/dist/vro-circle-progress/style/index.js +4 -0
- package/dist/vro-circle-progress/types.d.ts +57 -0
- package/dist/vro-circle-progress/types.js +52 -0
- package/dist/vro-circle-progress/vro-circle-progress.vue.d.ts +70 -0
- package/dist/vro-circle-progress/vro-circle-progress.vue.js +72 -0
- package/dist/vro-circle-progress/vro-circle-progress.vue2.js +4 -0
- package/dist/vro-icon/index.d.ts +58 -0
- package/dist/vro-icon/index.js +11 -0
- package/dist/vro-icon/style/css.d.ts +0 -0
- package/dist/vro-icon/style/css.js +4 -0
- package/dist/vro-icon/style/index.css +1 -0
- package/dist/vro-icon/style/index.d.ts +0 -0
- package/dist/vro-icon/style/index.js +4 -0
- package/dist/vro-icon/types.d.ts +29 -0
- package/dist/vro-icon/types.js +30 -0
- package/dist/vro-icon/vro-icon.vue.d.ts +37 -0
- package/dist/vro-icon/vro-icon.vue.js +36 -0
- package/dist/vro-icon/vro-icon.vue2.js +4 -0
- package/dist/vro-input/index.d.ts +3 -3
- package/dist/vro-input/types.d.ts +5 -5
- package/dist/vro-input/types.js +6 -9
- package/dist/vro-input/vro-input.vue.d.ts +3 -3
- package/dist/vro-loading/index.d.ts +9 -30
- package/dist/vro-loading/style/index.css +1 -1
- package/dist/vro-loading/types.d.ts +7 -9
- package/dist/vro-loading/types.js +8 -10
- package/dist/vro-loading/vro-loading.vue.d.ts +6 -18
- package/dist/vro-loading/vro-loading.vue.js +37 -24
- package/package.json +7 -4
- package/dist/utils/props.d.ts +0 -2
- package/dist/utils/props.js +0 -5
|
@@ -12,14 +12,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
12
12
|
type: import('vue').PropType<import('./types').VroLoadingType>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
size:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
color: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
15
|
+
size: import('vue').PropType<string | number>;
|
|
16
|
+
color: StringConstructor;
|
|
17
|
+
duration: import('vue').PropType<string | number>;
|
|
23
18
|
ariaLabel: {
|
|
24
19
|
type: StringConstructor;
|
|
25
20
|
default: string;
|
|
@@ -29,23 +24,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
29
24
|
type: import('vue').PropType<import('./types').VroLoadingType>;
|
|
30
25
|
default: string;
|
|
31
26
|
};
|
|
32
|
-
size:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
color: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
27
|
+
size: import('vue').PropType<string | number>;
|
|
28
|
+
color: StringConstructor;
|
|
29
|
+
duration: import('vue').PropType<string | number>;
|
|
40
30
|
ariaLabel: {
|
|
41
31
|
type: StringConstructor;
|
|
42
32
|
default: string;
|
|
43
33
|
};
|
|
44
34
|
}>> & Readonly<{}>, {
|
|
45
|
-
size: string | number;
|
|
46
35
|
type: import('./types').VroLoadingType;
|
|
47
36
|
ariaLabel: string;
|
|
48
|
-
color: string;
|
|
49
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
50
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
39
|
export default _default;
|
|
@@ -1,40 +1,53 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, computed as v, createElementBlock as o, openBlock as e, normalizeStyle as c, renderSlot as g, createElementVNode as n, Fragment as t, renderList as s } from "vue";
|
|
2
|
+
import { addUnit as d } from "../utils/addUnit.js";
|
|
3
|
+
import "@daysnap/utils";
|
|
2
4
|
import { vroLoadingProps as y } from "./types.js";
|
|
3
|
-
const
|
|
5
|
+
const L = ["aria-label"], h = {
|
|
4
6
|
key: 0,
|
|
5
|
-
class: "vro-
|
|
7
|
+
class: "vro-loading-spinner",
|
|
8
|
+
viewBox: "0 0 1024 1024",
|
|
6
9
|
"aria-hidden": "true"
|
|
7
|
-
},
|
|
10
|
+
}, f = {
|
|
8
11
|
key: 1,
|
|
9
|
-
class: "vro-
|
|
12
|
+
class: "vro-loading-dots",
|
|
10
13
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
14
|
+
}, k = {
|
|
12
15
|
key: 2,
|
|
13
|
-
class: "vro-
|
|
16
|
+
class: "vro-loading-image",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
}, _ = {
|
|
19
|
+
key: 3,
|
|
20
|
+
class: "vro-loading-circular",
|
|
14
21
|
viewBox: "0 0 50 50",
|
|
15
22
|
"aria-hidden": "true"
|
|
16
|
-
},
|
|
23
|
+
}, M = /* @__PURE__ */ p({
|
|
17
24
|
name: "VroLoading",
|
|
18
25
|
__name: "vro-loading",
|
|
19
26
|
props: y,
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
"--vro-loading-
|
|
23
|
-
"--vro-loading-
|
|
27
|
+
setup(m) {
|
|
28
|
+
const a = m, u = v(() => ({
|
|
29
|
+
"--color": a.color || "var(--vro-loading-color)",
|
|
30
|
+
"--size": a.size || a.size === 0 ? d(a.size) : "var(--vro-loading-size)",
|
|
31
|
+
"--duration": a.duration || a.duration === 0 ? d(a.duration, "ms") : `var(--vro-loading-${a.type}-duration)`
|
|
24
32
|
}));
|
|
25
|
-
return (
|
|
33
|
+
return (r, i) => (e(), o("div", {
|
|
26
34
|
class: "vro-loading",
|
|
27
|
-
style:
|
|
35
|
+
style: c(u.value),
|
|
28
36
|
role: "status",
|
|
29
|
-
"aria-label":
|
|
37
|
+
"aria-label": r.ariaLabel
|
|
30
38
|
}, [
|
|
31
|
-
g(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
g(r.$slots, "icon", {}, () => [
|
|
40
|
+
r.type === "spinner" ? (e(), o("svg", h, [...i[0] || (i[0] = [
|
|
41
|
+
n("path", {
|
|
42
|
+
fill: "currentColor",
|
|
43
|
+
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"
|
|
44
|
+
}, null, -1)
|
|
45
|
+
])])) : r.type === "dots" ? (e(), o("span", f, [
|
|
46
|
+
(e(), o(t, null, s(3, (l) => n("i", { key: l })), 64))
|
|
47
|
+
])) : r.type === "image" ? (e(), o("span", k, [
|
|
48
|
+
(e(), o(t, null, s(4, (l) => n("i", { key: l })), 64))
|
|
49
|
+
])) : (e(), o("svg", _, [...i[1] || (i[1] = [
|
|
50
|
+
n("circle", {
|
|
38
51
|
cx: "25",
|
|
39
52
|
cy: "25",
|
|
40
53
|
r: "20",
|
|
@@ -42,9 +55,9 @@ const v = ["aria-label"], f = {
|
|
|
42
55
|
}, null, -1)
|
|
43
56
|
])]))
|
|
44
57
|
])
|
|
45
|
-
], 12,
|
|
58
|
+
], 12, L));
|
|
46
59
|
}
|
|
47
60
|
});
|
|
48
61
|
export {
|
|
49
|
-
|
|
62
|
+
M as default
|
|
50
63
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrojs/base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "vrojs ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
+
"src/**/style/*",
|
|
14
|
+
"src/**/*.css",
|
|
15
|
+
"src/**/*.scss",
|
|
13
16
|
"dist/**/style/*",
|
|
14
17
|
"dist/**/*.css"
|
|
15
18
|
],
|
|
@@ -28,17 +31,17 @@
|
|
|
28
31
|
"peerDependencies": {
|
|
29
32
|
"@daysnap/utils": ">=0.1.34",
|
|
30
33
|
"vue": ">=3.0.0",
|
|
31
|
-
"@vrojs/use": "0.0.
|
|
34
|
+
"@vrojs/use": "0.0.3"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@daysnap/utils": "^0.1.
|
|
37
|
+
"@daysnap/utils": "^0.1.36",
|
|
35
38
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
36
39
|
"rimraf": "^6.0.1",
|
|
37
40
|
"typescript": "^5.9.3",
|
|
38
41
|
"vite": "^7.1.12",
|
|
39
42
|
"vite-plugin-dts": "^4.5.4",
|
|
40
43
|
"vue": "^3.5.22",
|
|
41
|
-
"@vrojs/use": "0.0.
|
|
44
|
+
"@vrojs/use": "0.0.3"
|
|
42
45
|
},
|
|
43
46
|
"scripts": {
|
|
44
47
|
"build": "npm run clean && vite build",
|
package/dist/utils/props.d.ts
DELETED