x-next 1.3.1 → 1.4.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/AI_USAGE.md +2 -2
- package/CHANGELOG.md +36 -0
- package/dist/_utils/constant.d.ts +1 -1
- package/dist/_utils/palette.d.ts +6 -14
- package/dist/components/alert/Alert.vue.d.ts +9 -9
- package/dist/components/alert/index.d.ts +6 -6
- package/dist/components/button/ButtonGroup.vue.d.ts +22 -18
- package/dist/components/date-picker/DatePanel.vue.d.ts +342 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts +343 -2
- package/dist/components/date-picker/index.d.ts +1765 -1083
- package/dist/components/form-input-tag/index.d.ts +26 -25
- package/dist/components/form-input-tag/interface.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +4 -4
- package/dist/components/link/index.d.ts +6 -6
- package/dist/components/message/index.d.ts +3 -3
- package/dist/components/message/message.vue.d.ts +1 -1
- package/dist/components/notification/Notification.d.ts +1 -1
- package/dist/components/notification/index.d.ts +3 -3
- package/dist/components/popconfirm/src/types.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +3 -3
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/tag/Tag.vue.d.ts +14 -0
- package/dist/components/tag/index.d.ts +9 -0
- package/dist/components/tag/interface.d.ts +5 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +127 -17
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +27 -7
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +4 -0
- package/dist/components/trend-chart/helpers/getPadding.d.ts +3 -2
- package/dist/components/trend-chart/index.d.ts +223 -28
- package/dist/components/trend-chart/props.d.ts +63 -5
- package/dist/es/_styles/palette-aliases.js +182 -127
- package/dist/es/_utils/palette.js +49 -43
- package/dist/es/components/_components/picker/input-range.vue2.js +10 -10
- package/dist/es/components/_components/picker/input.vue2.js +20 -20
- package/dist/es/components/_components/select-view/select-view.js +2 -2
- package/dist/es/components/alert/Alert.vue.js +2 -2
- package/dist/es/components/alert/Alert.vue2.js +21 -20
- package/dist/es/components/button/Button.js +17 -17
- package/dist/es/components/button/ButtonGroup.vue2.js +11 -9
- package/dist/es/components/date-picker/DatePanel.vue.js +71 -62
- package/dist/es/components/date-picker/DatePanel.vue2.js +50 -40
- package/dist/es/components/date-picker/DatePicker.vue2.js +1 -1
- package/dist/es/components/form/form-item-label.vue.js +25 -22
- package/dist/es/components/form/form-item-label.vue2.js +1 -1
- package/dist/es/components/form-checkbox/icon-check.js +12 -43
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +1 -1
- package/dist/es/components/form-input-number/InputNumber.js +4 -4
- package/dist/es/components/form-input-tag/InputTag.js +168 -147
- package/dist/es/components/form-input-tag/utils.js +21 -19
- package/dist/es/components/form-textarea/Textarea.vue2.js +1 -1
- package/dist/es/components/link/Link.vue2.js +1 -1
- package/dist/es/components/popconfirm/src/popup.vue.js +1 -1
- package/dist/es/components/progress/Progress.vue2.js +1 -1
- package/dist/es/components/table/Table.js +1 -1
- package/dist/es/components/table/table-th.js +2 -2
- package/dist/es/components/tabs/tabs-button.js +2 -2
- package/dist/es/components/tabs/tabs-nav.js +1 -1
- package/dist/es/components/tag/Tag.vue.js +20 -20
- package/dist/es/components/tag/Tag.vue2.js +35 -28
- package/dist/es/components/time-picker/TimePanel.vue.js +30 -29
- package/dist/es/components/time-picker/TimePicker.vue2.js +1 -1
- package/dist/es/components/time-picker/TimeRangePanel.js +26 -23
- package/dist/es/components/trend-chart/components/TrendChart.js +208 -142
- package/dist/es/components/trend-chart/components/trend-chart-curve.js +124 -59
- package/dist/es/components/trend-chart/components/trend-chart-labels.js +43 -41
- package/dist/es/components/trend-chart/helpers/getPadding.js +3 -3
- package/dist/es/components/trend-chart/props.js +101 -33
- package/dist/es/components/trend-chart/themes.js +15 -15
- package/dist/es/components/watermark/controller.js +40 -40
- package/dist/es/icons/default/calendar.js +15 -0
- package/dist/es/icons/default/clock-circle.js +15 -0
- package/dist/es/icons/default/double-left.js +15 -0
- package/dist/es/icons/default/double-right.js +15 -0
- package/dist/es/icons/default/down.js +16 -0
- package/dist/es/icons/default/eye-invisible.js +20 -0
- package/dist/es/icons/default/eye.js +18 -0
- package/dist/es/icons/default/left.js +15 -0
- package/dist/es/icons/default/minus.js +16 -0
- package/dist/es/icons/default/plus.js +16 -0
- package/dist/es/icons/default/question-circle.js +18 -0
- package/dist/es/icons/default/right.js +15 -0
- package/dist/es/icons/default/search.js +16 -0
- package/dist/es/icons/default/up.js +16 -0
- package/dist/es/icons/icon.js +26 -25
- package/dist/es/icons/public/boxicons/basic.js +1893 -0
- package/dist/es/icons/public/boxicons/brands.js +304 -0
- package/dist/es/icons/public/boxicons/filled.js +1893 -0
- package/dist/es/icons/public/boxicons/index.js +24 -0
- package/dist/es/icons/public/boxicons/names.js +4082 -0
- package/dist/es/icons/registry.js +15 -15
- package/dist/es/style.css +1 -1
- package/dist/icons/default/calendar.d.ts +93 -0
- package/dist/icons/default/clock-circle.d.ts +93 -0
- package/dist/icons/{_self/down.d.ts → default/double-left.d.ts} +6 -0
- package/dist/icons/{_self/eye-invisible.d.ts → default/double-right.d.ts} +6 -0
- package/dist/icons/default/down.d.ts +93 -0
- package/dist/icons/default/eye-invisible.d.ts +93 -0
- package/dist/icons/default/eye.d.ts +93 -0
- package/dist/icons/{_self/eye.d.ts → default/left.d.ts} +7 -0
- package/dist/icons/default/minus.d.ts +93 -0
- package/dist/icons/{_self → default}/plus.d.ts +7 -0
- package/dist/icons/default/question-circle.d.ts +93 -0
- package/dist/icons/{_self/minus.d.ts → default/right.d.ts} +7 -0
- package/dist/icons/{_self → default}/search.d.ts +7 -0
- package/dist/icons/{_self → default}/up.d.ts +7 -0
- package/dist/icons/public/boxicons/basic.cjs +1 -0
- package/dist/icons/public/boxicons/basic.d.ts +2 -0
- package/dist/icons/public/boxicons/brands.cjs +1 -0
- package/dist/icons/public/boxicons/brands.d.ts +2 -0
- package/dist/icons/public/boxicons/filled.cjs +1 -0
- package/dist/icons/public/boxicons/filled.d.ts +2 -0
- package/dist/icons/public/boxicons/index.cjs +1 -0
- package/dist/icons/public/boxicons/index.d.ts +10 -0
- package/dist/icons/public/boxicons/names.d.ts +10 -0
- package/dist/icons/registry.d.ts +5 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/style/alert.css +1 -1
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/date-picker.css +1 -1
- package/dist/style/dialog.css +1 -1
- package/dist/style/drawer.css +1 -1
- package/dist/style/dropdown.css +1 -1
- package/dist/style/form-input-number.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/link.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/message-box.css +1 -1
- package/dist/style/network.css +1 -1
- package/dist/style/popconfirm.css +1 -1
- package/dist/style/popover.css +1 -1
- package/dist/style/popup.css +1 -1
- package/dist/style/progress.css +1 -1
- package/dist/style/rate.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/tag.css +1 -1
- package/dist/style/time-picker.css +1 -1
- package/dist/style/time-range-selector.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +30 -4
- package/dist/es/icons/_self/down.js +0 -16
- package/dist/es/icons/_self/eye-invisible.js +0 -13
- package/dist/es/icons/_self/eye.js +0 -13
- package/dist/es/icons/_self/minus.js +0 -13
- package/dist/es/icons/_self/plus.js +0 -12
- package/dist/es/icons/_self/question-message.js +0 -12
- package/dist/es/icons/_self/search.js +0 -13
- package/dist/es/icons/_self/up.js +0 -16
- package/dist/es/icons/_ui/calendar.js +0 -13
- package/dist/es/icons/_ui/time.js +0 -12
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { h as t, createVNode as e } from "vue";
|
|
2
|
+
import { generateIcon as o } from "../icon.js";
|
|
3
|
+
const l = o("EyeInvisible", t(e("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [e("path", {
|
|
12
|
+
d: "M14 14.5C11.3096 16.5 8.58489 19.8302 6 24C11.3726 32.6667 17.3726 37 24 37C27.3245 37 30.4912 35.9096 33.5 33.7287M17.4635 12.5C19 11 21.7488 11 24 11C30.6274 11 36.6274 15.3333 42 24C40.2344 26.8481 38.4011 29.2282 36.5 31.1404"
|
|
13
|
+
}, null), e("path", {
|
|
14
|
+
d: "M29 24C29 26.7614 26.7614 29 24 29C21.2386 29 19 26.7614 19 24C19 21.2386 21.2386 19 24 19C26.7614 19 29 21.2386 29 24Z"
|
|
15
|
+
}, null), e("path", {
|
|
16
|
+
d: "M6.85156 7.10254L41.1462 41.3972"
|
|
17
|
+
}, null)])));
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h as t, createVNode as e } from "vue";
|
|
2
|
+
import { generateIcon as o } from "../icon.js";
|
|
3
|
+
const l = o("Eye", t(e("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [e("path", {
|
|
12
|
+
d: "M24 37C30.6274 37 36.6274 32.6667 42 24C36.6274 15.3333 30.6274 11 24 11C17.3726 11 11.3726 15.3333 6 24C11.3726 32.6667 17.3726 37 24 37Z"
|
|
13
|
+
}, null), e("path", {
|
|
14
|
+
d: "M29 24C29 26.7614 26.7614 29 24 29C21.2386 29 19 26.7614 19 24C19 21.2386 21.2386 19 24 19C26.7614 19 29 21.2386 29 24Z"
|
|
15
|
+
}, null)])));
|
|
16
|
+
export {
|
|
17
|
+
l as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h as e, createVNode as t } from "vue";
|
|
2
|
+
import { generateIcon as o } from "../icon.js";
|
|
3
|
+
const l = o("Left", e(t("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt"
|
|
10
|
+
}, [t("path", {
|
|
11
|
+
d: "M32 8.3999L16.4437 23.9563C16.4437 23.9563 27.3056 34.8182 32 39.5126"
|
|
12
|
+
}, null)])));
|
|
13
|
+
export {
|
|
14
|
+
l as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h as t, createVNode as o } from "vue";
|
|
2
|
+
import { generateIcon as e } from "../icon.js";
|
|
3
|
+
const i = e("Minus", t(o("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [o("path", {
|
|
12
|
+
d: "M5 24H43"
|
|
13
|
+
}, null)])));
|
|
14
|
+
export {
|
|
15
|
+
i as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h as t, createVNode as o } from "vue";
|
|
2
|
+
import { generateIcon as e } from "../icon.js";
|
|
3
|
+
const l = e("Plus", t(o("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [o("path", {
|
|
12
|
+
d: "M5 24H43M24 5L24 43"
|
|
13
|
+
}, null)])));
|
|
14
|
+
export {
|
|
15
|
+
l as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h as t, createVNode as e } from "vue";
|
|
2
|
+
import { generateIcon as o } from "../icon.js";
|
|
3
|
+
const i = o("QuestionCircle", t(e("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [e("path", {
|
|
12
|
+
d: "M42 24C42 33.9411 33.9411 42 24 42C14.0589 42 6 33.9411 6 24C6 14.0589 14.0589 6 24 6C33.9411 6 42 14.0589 42 24Z"
|
|
13
|
+
}, null), e("path", {
|
|
14
|
+
d: "M24.0064 31V35.0078M24.0064 29L24 28C24 25 27 24 28.7794 21.5977C30.5588 19.1954 28.2889 15 23.9881 15C19.9742 15 18.6059 17.5481 18.5996 19.5137V19.9786"
|
|
15
|
+
}, null)])));
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h as o, createVNode as t } from "vue";
|
|
2
|
+
import { generateIcon as e } from "../icon.js";
|
|
3
|
+
const i = e("Right", o(t("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt"
|
|
10
|
+
}, [t("path", {
|
|
11
|
+
d: "M16 39.5127L31.5563 23.9563C31.5563 23.9563 20.6944 13.0944 16 8.4"
|
|
12
|
+
}, null)])));
|
|
13
|
+
export {
|
|
14
|
+
i as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h as o, createVNode as e } from "vue";
|
|
2
|
+
import { generateIcon as t } from "../icon.js";
|
|
3
|
+
const i = t("Search", o(e("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [e("path", {
|
|
12
|
+
d: "M33.0715 33.071C39.3199 26.8226 39.3199 16.692 33.0715 10.4436C26.8231 4.19523 16.6925 4.19523 10.4441 10.4436C4.19572 16.692 4.19572 26.8226 10.4441 33.071C16.6925 39.3194 26.8231 39.3194 33.0715 33.071ZM33.0715 33.071L41.5568 41.5563"
|
|
13
|
+
}, null)])));
|
|
14
|
+
export {
|
|
15
|
+
i as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h as t, createVNode as o } from "vue";
|
|
2
|
+
import { generateIcon as e } from "../icon.js";
|
|
3
|
+
const i = e("Up", t(o("svg", {
|
|
4
|
+
viewBox: "0 0 48 48",
|
|
5
|
+
fill: "none",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-width": "4",
|
|
9
|
+
"stroke-linecap": "butt",
|
|
10
|
+
"stroke-linejoin": "miter"
|
|
11
|
+
}, [o("path", {
|
|
12
|
+
d: "M39.5996 30.5566L24.0433 15.0003C24.0433 15.0003 13.1813 25.8622 8.48691 30.5566"
|
|
13
|
+
}, null)])));
|
|
14
|
+
export {
|
|
15
|
+
i as default
|
|
16
|
+
};
|
package/dist/es/icons/icon.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent as u, computed as d, createVNode as c, mergeProps as m, isVNode as b, cloneVNode as g } from "vue";
|
|
2
2
|
import { getClassPrefix as h, getComponentPrefix as S } from "../_utils/config.js";
|
|
3
3
|
import { isString as x } from "../_utils/is.js";
|
|
4
|
-
import { addIcon as $,
|
|
5
|
-
function
|
|
4
|
+
import { addIcon as $, iconRegistryVersion as z, getIcon as C } from "./registry.js";
|
|
5
|
+
function I(t) {
|
|
6
6
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const L = (t) => x(t) ? t.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("") : "", N = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), y = (t, n = "px") => {
|
|
9
9
|
if (t === void 0) return "";
|
|
10
10
|
const e = typeof t == "number" ? `${t}` : t;
|
|
11
11
|
return e ? /^-?\d*\.?\d+(px|%|em|rem|ch|ex|vw|vh|vmin|vmax|cm|mm|in|pt|pc)$/i.test(e) || /^calc\(.+\)$/i.test(e) || /^var\(.+\)$/i.test(e) ? e : e + n : void 0;
|
|
@@ -42,7 +42,7 @@ const I = (t) => x(t) ? t.split("-").map((n) => n.charAt(0).toUpperCase() + n.sl
|
|
|
42
42
|
type: [Number, String],
|
|
43
43
|
default: void 0
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, k = (t) => {
|
|
46
46
|
if (!t) return null;
|
|
47
47
|
if (typeof t == "string")
|
|
48
48
|
return c("span", {
|
|
@@ -50,9 +50,9 @@ const I = (t) => x(t) ? t.split("-").map((n) => n.charAt(0).toUpperCase() + n.sl
|
|
|
50
50
|
innerHTML: t
|
|
51
51
|
}, null);
|
|
52
52
|
const n = typeof t == "function" ? t() : t;
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
}, A = /* @__PURE__ */
|
|
53
|
+
return g(n);
|
|
54
|
+
}, V = (t) => {
|
|
55
|
+
}, A = /* @__PURE__ */ u({
|
|
56
56
|
name: S("Icon"),
|
|
57
57
|
inheritAttrs: !1,
|
|
58
58
|
props: v,
|
|
@@ -61,19 +61,20 @@ const I = (t) => x(t) ? t.split("-").map((n) => n.charAt(0).toUpperCase() + n.sl
|
|
|
61
61
|
slots: e
|
|
62
62
|
}) {
|
|
63
63
|
const o = "x-icon", l = d(() => {
|
|
64
|
-
const i = {},
|
|
65
|
-
return
|
|
66
|
-
}),
|
|
64
|
+
const i = {}, a = y(t.size);
|
|
65
|
+
return a && (i.fontSize = a), t.rotate && (i["--x-icon-rotate"] = `${t.rotate}deg`), t.color && (i.color = t.color), t.strokeWidth !== void 0 && (i["--x-icon-stroke-width"] = String(t.strokeWidth)), i;
|
|
66
|
+
}), r = d(() => [o, {
|
|
67
67
|
[`${o}-spin`]: t.spin,
|
|
68
68
|
[`${o}-loading`]: t.spin
|
|
69
69
|
}]);
|
|
70
70
|
return () => {
|
|
71
71
|
var f;
|
|
72
|
-
|
|
73
|
-
t.name
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
z.value;
|
|
73
|
+
const i = t.name ? C(t.name) : void 0;
|
|
74
|
+
t.name && !i && V(t.name);
|
|
75
|
+
const a = ((f = e.default) == null ? void 0 : f.call(e)) ?? k(i), s = t.ariaLabel || t.title;
|
|
76
|
+
return c("span", m(n, {
|
|
77
|
+
class: r.value,
|
|
77
78
|
style: l.value,
|
|
78
79
|
role: s ? "img" : void 0,
|
|
79
80
|
"aria-label": s,
|
|
@@ -81,14 +82,14 @@ const I = (t) => x(t) ? t.split("-").map((n) => n.charAt(0).toUpperCase() + n.sl
|
|
|
81
82
|
"data-icon": t.name
|
|
82
83
|
}), [t.spin ? c("span", {
|
|
83
84
|
class: `${o}--spin-layer`
|
|
84
|
-
}, [
|
|
85
|
+
}, [a]) : a]);
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
88
|
});
|
|
88
89
|
// @__NO_SIDE_EFFECTS__
|
|
89
|
-
function
|
|
90
|
-
return $(
|
|
91
|
-
name: h(`Icon${
|
|
90
|
+
function U(t, n) {
|
|
91
|
+
return $(N(t), () => g(n)), /* @__PURE__ */ u({
|
|
92
|
+
name: h(`Icon${L(t)}`),
|
|
92
93
|
inheritAttrs: !1,
|
|
93
94
|
props: {
|
|
94
95
|
...v,
|
|
@@ -101,10 +102,10 @@ function w(t, n) {
|
|
|
101
102
|
attrs: o
|
|
102
103
|
}) {
|
|
103
104
|
const l = d(() => {
|
|
104
|
-
const
|
|
105
|
-
return i && (
|
|
105
|
+
const r = {}, i = y(e.size);
|
|
106
|
+
return i && (r.fontSize = i), e.rotate && (r["--x-icon-rotate"] = `${e.rotate}deg`), e.color && (r.color = e.color), r;
|
|
106
107
|
});
|
|
107
|
-
return () => c(A,
|
|
108
|
+
return () => c(A, m(o, {
|
|
108
109
|
size: e.size,
|
|
109
110
|
rotate: e.rotate,
|
|
110
111
|
spin: e.spin,
|
|
@@ -113,7 +114,7 @@ function w(t, n) {
|
|
|
113
114
|
ariaLabel: e.ariaLabel,
|
|
114
115
|
strokeWidth: e.strokeWidth,
|
|
115
116
|
style: l.value
|
|
116
|
-
}),
|
|
117
|
+
}), I(n) ? n : {
|
|
117
118
|
default: () => [n]
|
|
118
119
|
});
|
|
119
120
|
}
|
|
@@ -121,6 +122,6 @@ function w(t, n) {
|
|
|
121
122
|
}
|
|
122
123
|
export {
|
|
123
124
|
A as default,
|
|
124
|
-
|
|
125
|
+
U as generateIcon,
|
|
125
126
|
v as iconProps
|
|
126
127
|
};
|