@indielayer/ui 1.0.1 → 1.0.3
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/LICENSE +21 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +113 -103
- package/package.json +3 -2
- package/src/components/avatar/Avatar.vue +12 -10
- package/src/components/button/Button.theme.ts +1 -1
- package/src/components/drawer/Drawer.vue +23 -16
- package/src/components/image/Image.vue +12 -10
- package/src/components/modal/Modal.vue +1 -1
- package/src/components/notifications/Notifications.theme.ts +1 -1
- package/src/components/slider/Slider.vue +6 -4
- package/src/components/textarea/Textarea.vue +3 -10
- package/src/composables/colors-utils.ts +1 -1
- package/src/version.ts +1 -1
- package/lib/common/icons.d.ts +0 -15
- package/lib/common/utils.d.ts +0 -32
- package/lib/components/alert/Alert.theme.d.ts +0 -8
- package/lib/components/alert/Alert.vue.d.ts +0 -31
- package/lib/components/alert/__tests__/Alert.spec.d.ts +0 -1
- package/lib/components/avatar/Avatar.theme.d.ts +0 -8
- package/lib/components/avatar/Avatar.vue.d.ts +0 -46
- package/lib/components/avatar/__tests__/Avatar.spec.d.ts +0 -1
- package/lib/components/badge/Badge.theme.d.ts +0 -8
- package/lib/components/badge/Badge.vue.d.ts +0 -74
- package/lib/components/badge/__tests__/Badge.spec.d.ts +0 -1
- package/lib/components/breadcrumbs/Breadcrumbs.theme.d.ts +0 -8
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +0 -41
- package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
- package/lib/components/button/Button.theme.d.ts +0 -10
- package/lib/components/button/Button.vue.d.ts +0 -81
- package/lib/components/button/ButtonGroup.theme.d.ts +0 -6
- package/lib/components/button/ButtonGroup.vue.d.ts +0 -52
- package/lib/components/button/__tests__/ Button.spec.d.ts +0 -1
- package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +0 -1
- package/lib/components/card/Card.theme.d.ts +0 -7
- package/lib/components/card/Card.vue.d.ts +0 -17
- package/lib/components/card/__tests__/Card.spec.d.ts +0 -1
- package/lib/components/checkbox/Checkbox.theme.d.ts +0 -11
- package/lib/components/checkbox/Checkbox.vue.d.ts +0 -77
- package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +0 -1
- package/lib/components/collapse/Collapse.theme.d.ts +0 -9
- package/lib/components/collapse/Collapse.vue.d.ts +0 -40
- package/lib/components/collapse/__tests__/Collapse.spec.d.ts +0 -1
- package/lib/components/container/Container.theme.d.ts +0 -6
- package/lib/components/container/Container.vue.d.ts +0 -14
- package/lib/components/container/__tests__/Container.spec.d.ts +0 -1
- package/lib/components/divider/Divider.theme.d.ts +0 -9
- package/lib/components/divider/Divider.vue.d.ts +0 -10
- package/lib/components/divider/__tests__/Divider.spec.d.ts +0 -1
- package/lib/components/drawer/Drawer.theme.d.ts +0 -7
- package/lib/components/drawer/Drawer.vue.d.ts +0 -61
- package/lib/components/drawer/__tests__/Drawer.spec.d.ts +0 -1
- package/lib/components/form/Form.theme.d.ts +0 -6
- package/lib/components/form/Form.vue.d.ts +0 -48
- package/lib/components/form/__tests__/Form.spec.d.ts +0 -1
- package/lib/components/helpers/InputError.d.ts +0 -8
- package/lib/components/icon/Icon.theme.d.ts +0 -7
- package/lib/components/icon/Icon.vue.d.ts +0 -36
- package/lib/components/icon/__tests__/Icon.spec.d.ts +0 -1
- package/lib/components/image/Image.theme.d.ts +0 -6
- package/lib/components/image/Image.vue.d.ts +0 -6
- package/lib/components/image/__tests__/Image.spec.d.ts +0 -1
- package/lib/components/index.d.ts +0 -45
- package/lib/components/input/Input.theme.d.ts +0 -11
- package/lib/components/input/Input.vue.d.ts +0 -119
- package/lib/components/input/__tests__/Input.spec.d.ts +0 -1
- package/lib/components/link/Link.theme.d.ts +0 -8
- package/lib/components/link/Link.vue.d.ts +0 -34
- package/lib/components/link/__tests__/Link.spec.d.ts +0 -1
- package/lib/components/menu/Menu.theme.d.ts +0 -6
- package/lib/components/menu/Menu.vue.d.ts +0 -65
- package/lib/components/menu/MenuItem.theme.d.ts +0 -8
- package/lib/components/menu/MenuItem.vue.d.ts +0 -89
- package/lib/components/menu/__tests__/Menu.spec.d.ts +0 -1
- package/lib/components/menu/__tests__/MenuItem.spec.d.ts +0 -1
- package/lib/components/modal/Modal.theme.d.ts +0 -13
- package/lib/components/modal/Modal.vue.d.ts +0 -29
- package/lib/components/modal/__tests__/Modal.spec.d.ts +0 -1
- package/lib/components/notifications/Notifications.theme.d.ts +0 -8
- package/lib/components/notifications/Notifications.vue.d.ts +0 -91
- package/lib/components/notifications/__tests__/Notifications.spec.d.ts +0 -1
- package/lib/components/pagination/Pagination.theme.d.ts +0 -9
- package/lib/components/pagination/Pagination.vue.d.ts +0 -49
- package/lib/components/pagination/PaginationItem.theme.d.ts +0 -7
- package/lib/components/pagination/PaginationItem.vue.d.ts +0 -33
- package/lib/components/pagination/__tests__/Pagination.spec.d.ts +0 -1
- package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +0 -1
- package/lib/components/popover/Popover.theme.d.ts +0 -7
- package/lib/components/popover/Popover.vue.d.ts +0 -64
- package/lib/components/popover/PopoverContainer.theme.d.ts +0 -6
- package/lib/components/popover/PopoverContainer.vue.d.ts +0 -14
- package/lib/components/popover/__tests__/Popover.spec.d.ts +0 -1
- package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +0 -1
- package/lib/components/progress/Progress.theme.d.ts +0 -10
- package/lib/components/progress/Progress.vue.d.ts +0 -40
- package/lib/components/progress/__tests__/Progress.spec.d.ts +0 -1
- package/lib/components/radio/Radio.theme.d.ts +0 -12
- package/lib/components/radio/Radio.vue.d.ts +0 -78
- package/lib/components/radio/__tests__/Radio.spec.d.ts +0 -1
- package/lib/components/scroll/Scroll.theme.d.ts +0 -6
- package/lib/components/scroll/Scroll.vue.d.ts +0 -23
- package/lib/components/scroll/__tests__/Scroll.spec.d.ts +0 -1
- package/lib/components/select/Select.theme.d.ts +0 -13
- package/lib/components/select/Select.vue.d.ts +0 -80
- package/lib/components/select/__tests__/Select.spec.d.ts +0 -1
- package/lib/components/skeleton/Skeleton.theme.d.ts +0 -6
- package/lib/components/skeleton/Skeleton.vue.d.ts +0 -14
- package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +0 -1
- package/lib/components/slider/Slider.theme.d.ts +0 -10
- package/lib/components/slider/Slider.vue.d.ts +0 -87
- package/lib/components/slider/__tests__/Slider.spec.d.ts +0 -1
- package/lib/components/spacer/Spacer.d.ts +0 -2
- package/lib/components/spacer/__tests__/Spacer.spec.d.ts +0 -1
- package/lib/components/spinner/Spinner.vue.d.ts +0 -25
- package/lib/components/spinner/__tests__/Spinner.spec.d.ts +0 -1
- package/lib/components/tab/Tab.theme.d.ts +0 -9
- package/lib/components/tab/Tab.vue.d.ts +0 -43
- package/lib/components/tab/TabGroup.theme.d.ts +0 -10
- package/lib/components/tab/TabGroup.vue.d.ts +0 -57
- package/lib/components/tab/__tests__/Tab.spec.d.ts +0 -1
- package/lib/components/tab/__tests__/TabGroup.spec.d.ts +0 -1
- package/lib/components/table/Table.theme.d.ts +0 -8
- package/lib/components/table/Table.vue.d.ts +0 -78
- package/lib/components/table/TableBody.d.ts +0 -2
- package/lib/components/table/TableCell.theme.d.ts +0 -7
- package/lib/components/table/TableCell.vue.d.ts +0 -33
- package/lib/components/table/TableHead.d.ts +0 -2
- package/lib/components/table/TableHeader.vue.d.ts +0 -33
- package/lib/components/table/TableRow.vue.d.ts +0 -23
- package/lib/components/table/__tests__/Table.spec.d.ts +0 -1
- package/lib/components/tag/Tag.theme.d.ts +0 -9
- package/lib/components/tag/Tag.vue.d.ts +0 -45
- package/lib/components/tag/__tests__/Tag.spec.d.ts +0 -1
- package/lib/components/textarea/Textarea.theme.d.ts +0 -10
- package/lib/components/textarea/Textarea.vue.d.ts +0 -100
- package/lib/components/textarea/__tests__/Textarea.spec.d.ts +0 -1
- package/lib/components/toggle/Toggle.theme.d.ts +0 -11
- package/lib/components/toggle/Toggle.vue.d.ts +0 -78
- package/lib/components/toggle/__tests__/Toggle.spec.d.ts +0 -1
- package/lib/components/tooltip/Tooltip.theme.d.ts +0 -11
- package/lib/components/tooltip/Tooltip.vue.d.ts +0 -2
- package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +0 -1
- package/lib/composables/colors-utils.d.ts +0 -7
- package/lib/composables/colors.d.ts +0 -30
- package/lib/composables/common.d.ts +0 -15
- package/lib/composables/css.d.ts +0 -6
- package/lib/composables/index.d.ts +0 -7
- package/lib/composables/inputtable.d.ts +0 -37
- package/lib/composables/interactive.d.ts +0 -15
- package/lib/composables/keys.d.ts +0 -8
- package/lib/composables/notifications.d.ts +0 -1
- package/lib/composables/theme.d.ts +0 -20
- package/lib/create.d.ts +0 -13
- package/lib/index.d.ts +0 -6
- package/lib/install.d.ts +0 -4
- package/lib/version.d.ts +0 -2
package/lib/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject, computed, unref, isRef, useSlots, defineComponent, ref, watchEffect, normalizeStyle, openBlock, createElementBlock, mergeProps, normalizeClass, renderSlot, createBlock, createCommentVNode, createElementVNode, Fragment, createVNode, watch, resolveDynamicComponent, withCtx, toDisplayString, renderList, createTextVNode, useAttrs, provide, onMounted, onUnmounted, withKeys, withModifiers, withDirectives, vModelCheckbox, Transition, vShow, getCurrentScope, onScopeDispose, getCurrentInstance, onBeforeMount, nextTick, reactive, toRefs, Teleport, toHandlers, resolveComponent, TransitionGroup, useCssModule, vModelRadio, vModelSelect
|
|
1
|
+
import { inject, computed, unref, isRef, useSlots, defineComponent, ref, watchEffect, normalizeStyle, openBlock, createElementBlock, mergeProps, normalizeClass, renderSlot, createBlock, createCommentVNode, createElementVNode, Fragment, createVNode, watch, resolveDynamicComponent, withCtx, toDisplayString, renderList, createTextVNode, useAttrs, provide, onMounted, onUnmounted, withKeys, withModifiers, withDirectives, vModelCheckbox, Transition, vShow, getCurrentScope, onScopeDispose, getCurrentInstance, onBeforeMount, nextTick, reactive, toRefs, Teleport, toHandlers, resolveComponent, TransitionGroup, useCssModule, vModelRadio, vModelSelect } from "vue";
|
|
2
2
|
const isHex = (hex) => /^#(?:[A-Fa-f0-9]{3}){1,2}$/.test(hex);
|
|
3
3
|
const isRGB = (rgb) => /^rgb[(](?:\s*0*(?:\d\d?(?:\.\d+)?(?:\s*%)?|\.\d+\s*%|100(?:\.0*)?\s*%|(?:1\d\d|2[0-4]\d|25[0-5])(?:\.\d+)?)\s*(?:,(?![)])|(?=[)]))){3}[)]$/.test(rgb);
|
|
4
4
|
const isRGBA = (rgba) => /^^rgba[(](?:\s*0*(?:\d\d?(?:\.\d+)?(?:\s*%)?|\.\d+\s*%|100(?:\.0*)?\s*%|(?:1\d\d|2[0-4]\d|25[0-5])(?:\.\d+)?)\s*,){3}\s*0*(?:\.\d+|1(?:\.0*)?)\s*[)]$/.test(rgba);
|
|
5
5
|
const parseRGB = (rgb) => {
|
|
6
6
|
var _a2;
|
|
7
|
-
return (_a2 = rgb.match(
|
|
7
|
+
return (_a2 = rgb.match(/\((.*?)\)/)) == null ? void 0 : _a2[1].split(",");
|
|
8
8
|
};
|
|
9
9
|
const hexToRGB = (hex) => {
|
|
10
10
|
var _a2;
|
|
@@ -294,7 +294,7 @@ const tailwindColors = Object.freeze({
|
|
|
294
294
|
900: "#881337"
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
|
-
var version = "1.0.
|
|
297
|
+
var version = "1.0.2";
|
|
298
298
|
function _isPlaceholder(a) {
|
|
299
299
|
return a != null && typeof a === "object" && a["@@functional/placeholder"] === true;
|
|
300
300
|
}
|
|
@@ -895,7 +895,7 @@ var theme$B = {
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
|
-
const _hoisted_1$
|
|
898
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
899
899
|
const _hoisted_2$f = ["stroke-linejoin", "stroke-linecap", "stroke", "fill", "viewBox", "innerHTML"];
|
|
900
900
|
const __default__$F = { name: "XIcon" };
|
|
901
901
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
@@ -966,7 +966,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
966
966
|
key: 0,
|
|
967
967
|
style: unref(normalizedStyle),
|
|
968
968
|
class: ["shrink-0", unref(className), unref(classes).wrapper]
|
|
969
|
-
}, attrs.value, { innerHTML: computedIcon.value }), null, 16, _hoisted_1$
|
|
969
|
+
}, attrs.value, { innerHTML: computedIcon.value }), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("svg", {
|
|
970
970
|
key: 1,
|
|
971
971
|
style: normalizeStyle(unref(normalizedStyle)),
|
|
972
972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1043,7 +1043,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return target;
|
|
1045
1045
|
};
|
|
1046
|
-
const _hoisted_1$
|
|
1046
|
+
const _hoisted_1$o = /* @__PURE__ */ createElementVNode("div", { class: "flex-grow" }, null, -1);
|
|
1047
1047
|
const __default__$E = { name: "XAlert" };
|
|
1048
1048
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1049
1049
|
...__default__$E,
|
|
@@ -1091,7 +1091,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1091
1091
|
renderSlot(_ctx.$slots, "default")
|
|
1092
1092
|
]),
|
|
1093
1093
|
__props.removable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1094
|
-
_hoisted_1$
|
|
1094
|
+
_hoisted_1$o,
|
|
1095
1095
|
createElementVNode("span", {
|
|
1096
1096
|
class: "flex items-center cursor-pointer shrink-0",
|
|
1097
1097
|
onClick: _cache[0] || (_cache[0] = (e) => _ctx.$emit("remove", e))
|
|
@@ -1148,7 +1148,7 @@ const avatar = "_avatar_az2b2_2";
|
|
|
1148
1148
|
var style0$8 = {
|
|
1149
1149
|
avatar
|
|
1150
1150
|
};
|
|
1151
|
-
const _hoisted_1$
|
|
1151
|
+
const _hoisted_1$n = ["alt", "src"];
|
|
1152
1152
|
const _hoisted_2$e = {
|
|
1153
1153
|
key: 1,
|
|
1154
1154
|
class: "leading-none"
|
|
@@ -1182,20 +1182,22 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1182
1182
|
}
|
|
1183
1183
|
return "";
|
|
1184
1184
|
});
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1185
|
+
if (typeof window !== "undefined" && Image) {
|
|
1186
|
+
watch(() => props.image, (src) => {
|
|
1187
|
+
source.value = void 0;
|
|
1188
|
+
if (!src)
|
|
1189
|
+
return;
|
|
1190
|
+
const img = new Image();
|
|
1191
|
+
img.onload = () => {
|
|
1192
|
+
source.value = props.image;
|
|
1193
|
+
};
|
|
1194
|
+
img.onerror = () => {
|
|
1195
|
+
};
|
|
1196
|
+
img.src = src;
|
|
1197
|
+
}, {
|
|
1198
|
+
immediate: true
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1199
1201
|
const { styles, classes, className } = useTheme("avatar", theme$z, props, { source });
|
|
1200
1202
|
return (_ctx, _cache) => {
|
|
1201
1203
|
return openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
|
|
@@ -1212,7 +1214,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1212
1214
|
alt: __props.alt,
|
|
1213
1215
|
src: __props.image,
|
|
1214
1216
|
class: "h-full w-full"
|
|
1215
|
-
}, null, 8, _hoisted_1$
|
|
1217
|
+
}, null, 8, _hoisted_1$n)) : __props.name ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(unref(initials)), 1)) : !__props.name ? renderSlot(_ctx.$slots, "avatarIcon", { key: 2 }, () => [
|
|
1216
1218
|
createVNode(_sfc_main$F, {
|
|
1217
1219
|
size: _ctx.size,
|
|
1218
1220
|
icon: unref(avatarIcon)
|
|
@@ -1237,7 +1239,7 @@ var theme$y = {
|
|
|
1237
1239
|
return css.get("bg", color[500]);
|
|
1238
1240
|
}
|
|
1239
1241
|
};
|
|
1240
|
-
const _hoisted_1$
|
|
1242
|
+
const _hoisted_1$m = { class: "relative inline-block" };
|
|
1241
1243
|
const _hoisted_2$d = {
|
|
1242
1244
|
key: 0,
|
|
1243
1245
|
class: "animate-ping opacity-75 absolute top-0 left-0 rounded-full h-full w-full z-10 bg-[color:var(--x-badge-bg)]"
|
|
@@ -1310,7 +1312,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1310
1312
|
])
|
|
1311
1313
|
}, {
|
|
1312
1314
|
default: withCtx(() => [
|
|
1313
|
-
createElementVNode("div", _hoisted_1$
|
|
1315
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
1314
1316
|
renderSlot(_ctx.$slots, "default"),
|
|
1315
1317
|
__props.show ? (openBlock(), createElementBlock("div", {
|
|
1316
1318
|
key: 0,
|
|
@@ -1371,7 +1373,7 @@ var style0$7 = {
|
|
|
1371
1373
|
link,
|
|
1372
1374
|
"link--shadow": "_link--shadow_7nt3a_1"
|
|
1373
1375
|
};
|
|
1374
|
-
const _hoisted_1$
|
|
1376
|
+
const _hoisted_1$l = {
|
|
1375
1377
|
key: 0,
|
|
1376
1378
|
class: "inline-flex items-center"
|
|
1377
1379
|
};
|
|
@@ -1405,7 +1407,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1405
1407
|
])
|
|
1406
1408
|
}, {
|
|
1407
1409
|
default: withCtx(() => [
|
|
1408
|
-
__props.external ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1410
|
+
__props.external ? (openBlock(), createElementBlock("span", _hoisted_1$l, [
|
|
1409
1411
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1410
1412
|
createVNode(_sfc_main$F, { icon: unref(externalIcon) }, null, 8, ["icon"])
|
|
1411
1413
|
])) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
@@ -1539,7 +1541,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1539
1541
|
var theme$v = {
|
|
1540
1542
|
classes: {
|
|
1541
1543
|
wrapper({ props, slots, data }) {
|
|
1542
|
-
const classes = ["relative transition duration-150 focus:outline-none inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border"];
|
|
1544
|
+
const classes = ["relative transition duration-150 focus:outline-none inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border appearance-none"];
|
|
1543
1545
|
if (!data.isButtonGroup)
|
|
1544
1546
|
classes.push(props.rounded ? "rounded-full" : "rounded-md");
|
|
1545
1547
|
if (!props.flat && !props.light && !props.ghost && !props.disabled && !props.loading)
|
|
@@ -2168,7 +2170,7 @@ var theme$s = {
|
|
|
2168
2170
|
var style0$4 = {
|
|
2169
2171
|
"checkbox--glow": "_checkbox--glow_x9lav_1"
|
|
2170
2172
|
};
|
|
2171
|
-
const _hoisted_1$
|
|
2173
|
+
const _hoisted_1$k = ["onKeypress"];
|
|
2172
2174
|
const _hoisted_2$c = ["aria-checked", "aria-disabled", "disabled", "name", "required"];
|
|
2173
2175
|
const _hoisted_3$a = /* @__PURE__ */ createElementVNode("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1);
|
|
2174
2176
|
const _hoisted_4$7 = [
|
|
@@ -2264,7 +2266,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2264
2266
|
textContent: toDisplayString(__props.label)
|
|
2265
2267
|
}, null, 8, _hoisted_5$3)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
2266
2268
|
], 2)
|
|
2267
|
-
], 42, _hoisted_1$
|
|
2269
|
+
], 42, _hoisted_1$k),
|
|
2268
2270
|
createVNode(unref(XInputError), {
|
|
2269
2271
|
error: unref(errorInternal),
|
|
2270
2272
|
helper: __props.helper
|
|
@@ -2284,7 +2286,7 @@ var theme$r = {
|
|
|
2284
2286
|
content: "transition-[height] duration-150 overflow-y-hidden"
|
|
2285
2287
|
}
|
|
2286
2288
|
};
|
|
2287
|
-
const _hoisted_1$
|
|
2289
|
+
const _hoisted_1$j = { class: "flex-1 overflow-hidden" };
|
|
2288
2290
|
const _hoisted_2$b = {
|
|
2289
2291
|
key: 1,
|
|
2290
2292
|
viewBox: "0 0 24 24",
|
|
@@ -2392,7 +2394,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2392
2394
|
class: normalizeClass(unref(classes).wrapper),
|
|
2393
2395
|
onClick: toggle
|
|
2394
2396
|
}, [
|
|
2395
|
-
createElementVNode("div", _hoisted_1$
|
|
2397
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
2396
2398
|
renderSlot(_ctx.$slots, "default", { collapsed: collapsed.value })
|
|
2397
2399
|
]),
|
|
2398
2400
|
__props.showIcon ? (openBlock(), createElementBlock("div", {
|
|
@@ -2483,7 +2485,7 @@ var theme$p = {
|
|
|
2483
2485
|
line: "bg-gray-200 dark:bg-slate-700 flex-grow"
|
|
2484
2486
|
}
|
|
2485
2487
|
};
|
|
2486
|
-
const _hoisted_1$
|
|
2488
|
+
const _hoisted_1$i = ["textContent"];
|
|
2487
2489
|
const __default__$s = { name: "XDivider" };
|
|
2488
2490
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2489
2491
|
...__default__$s,
|
|
@@ -2521,7 +2523,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
2521
2523
|
}
|
|
2522
2524
|
]]),
|
|
2523
2525
|
textContent: toDisplayString(__props.label)
|
|
2524
|
-
}, null, 10, _hoisted_1$
|
|
2526
|
+
}, null, 10, _hoisted_1$i)) : createCommentVNode("", true),
|
|
2525
2527
|
createElementVNode("div", {
|
|
2526
2528
|
class: normalizeClass(unref(classes).line),
|
|
2527
2529
|
style: normalizeStyle([
|
|
@@ -3182,7 +3184,7 @@ var theme$n = {
|
|
|
3182
3184
|
backdrop: "absolute z-40 inset-0 duration-150 ease-in-out"
|
|
3183
3185
|
}
|
|
3184
3186
|
};
|
|
3185
|
-
const _hoisted_1$
|
|
3187
|
+
const _hoisted_1$h = {
|
|
3186
3188
|
key: 0,
|
|
3187
3189
|
ref: "swipeRef",
|
|
3188
3190
|
class: "flex flex-col max-h-full"
|
|
@@ -3224,20 +3226,29 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3224
3226
|
const value = ref(props.modelValue);
|
|
3225
3227
|
const backdropRef = ref(null);
|
|
3226
3228
|
const drawerRef = ref(null);
|
|
3229
|
+
let deferShow = ref(false);
|
|
3230
|
+
if (typeof window !== "undefined")
|
|
3231
|
+
deferShow = ref(!!(props.teleportTo && (props.teleportTo instanceof HTMLElement || document.querySelector(props.teleportTo))));
|
|
3227
3232
|
const isTailwindBreakpoint = typeof props.breakpoint === "string";
|
|
3228
3233
|
const breakpoints = useBreakpoints(isTailwindBreakpoint ? breakpointsTailwind : { md: props.breakpoint || 768 });
|
|
3229
3234
|
const point = breakpoints.smaller(isTailwindBreakpoint ? props.breakpoint : "md");
|
|
3230
3235
|
watchEffect(() => {
|
|
3231
3236
|
if (props.breakpoint) {
|
|
3232
|
-
|
|
3233
|
-
|
|
3237
|
+
if (point.value) {
|
|
3238
|
+
detached.value = true;
|
|
3239
|
+
close();
|
|
3240
|
+
} else {
|
|
3241
|
+
detached.value = false;
|
|
3242
|
+
open();
|
|
3243
|
+
}
|
|
3234
3244
|
}
|
|
3235
3245
|
});
|
|
3236
3246
|
useEventListener(backdropRef, "pointerdown", close);
|
|
3237
3247
|
watch(() => props.modelValue, (val) => {
|
|
3238
3248
|
value.value = val;
|
|
3239
3249
|
});
|
|
3240
|
-
|
|
3250
|
+
if (typeof window !== "undefined")
|
|
3251
|
+
useEventListener(document, "keydown", onKeyDown);
|
|
3241
3252
|
function onKeyDown(event) {
|
|
3242
3253
|
if (event.key === "Escape" && value.value)
|
|
3243
3254
|
close();
|
|
@@ -3250,16 +3261,6 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3250
3261
|
}
|
|
3251
3262
|
}
|
|
3252
3263
|
});
|
|
3253
|
-
function close(e) {
|
|
3254
|
-
if (e && e.target !== backdropRef.value)
|
|
3255
|
-
return;
|
|
3256
|
-
value.value = false;
|
|
3257
|
-
emit("update:modelValue", false);
|
|
3258
|
-
}
|
|
3259
|
-
function open() {
|
|
3260
|
-
value.value = true;
|
|
3261
|
-
emit("update:modelValue", true);
|
|
3262
|
-
}
|
|
3263
3264
|
const autoStyles = computed(() => {
|
|
3264
3265
|
const s = {};
|
|
3265
3266
|
if (props.position === "left" || props.position === "right")
|
|
@@ -3329,14 +3330,23 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3329
3330
|
el.style.right = `-${props.width}px`;
|
|
3330
3331
|
}, 1);
|
|
3331
3332
|
}
|
|
3332
|
-
|
|
3333
|
+
function close(e) {
|
|
3334
|
+
if (e && e.target !== backdropRef.value)
|
|
3335
|
+
return;
|
|
3336
|
+
value.value = false;
|
|
3337
|
+
emit("update:modelValue", false);
|
|
3338
|
+
}
|
|
3339
|
+
function open() {
|
|
3340
|
+
value.value = true;
|
|
3341
|
+
emit("update:modelValue", true);
|
|
3342
|
+
}
|
|
3333
3343
|
onMounted(() => {
|
|
3334
3344
|
deferShow.value = true;
|
|
3335
3345
|
});
|
|
3336
3346
|
const { styles, classes, className } = useTheme("drawer", theme$n, props);
|
|
3337
3347
|
expose({ open, close });
|
|
3338
3348
|
return (_ctx, _cache) => {
|
|
3339
|
-
return deferShow
|
|
3349
|
+
return unref(deferShow) ? (openBlock(), createBlock(Teleport, {
|
|
3340
3350
|
key: 0,
|
|
3341
3351
|
to: __props.teleportTo,
|
|
3342
3352
|
disabled: !detached.value
|
|
@@ -3349,7 +3359,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3349
3359
|
onLeave
|
|
3350
3360
|
}, {
|
|
3351
3361
|
default: withCtx(() => [
|
|
3352
|
-
|
|
3362
|
+
value.value ? (openBlock(), createElementBlock("div", {
|
|
3353
3363
|
key: 0,
|
|
3354
3364
|
ref_key: "backdropRef",
|
|
3355
3365
|
ref: backdropRef,
|
|
@@ -3358,7 +3368,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3358
3368
|
detached.value ? unref(classes).backdrop : ""
|
|
3359
3369
|
])
|
|
3360
3370
|
}, [
|
|
3361
|
-
detached.value && value.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3371
|
+
detached.value && value.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, null, 512)) : createCommentVNode("", true),
|
|
3362
3372
|
createElementVNode("div", {
|
|
3363
3373
|
ref_key: "drawerRef",
|
|
3364
3374
|
ref: drawerRef,
|
|
@@ -3395,7 +3405,7 @@ var theme$m = {
|
|
|
3395
3405
|
wrapper: ""
|
|
3396
3406
|
}
|
|
3397
3407
|
};
|
|
3398
|
-
const _hoisted_1$
|
|
3408
|
+
const _hoisted_1$g = ["disabled"];
|
|
3399
3409
|
const __default__$p = {
|
|
3400
3410
|
name: "XForm",
|
|
3401
3411
|
inheritAttrs: false
|
|
@@ -3487,7 +3497,7 @@ const _sfc_main$p = defineComponent({
|
|
|
3487
3497
|
}, [
|
|
3488
3498
|
createElementVNode("fieldset", { disabled: __props.disabled }, [
|
|
3489
3499
|
renderSlot(_ctx.$slots, "default")
|
|
3490
|
-
], 8, _hoisted_1$
|
|
3500
|
+
], 8, _hoisted_1$g)
|
|
3491
3501
|
], 38);
|
|
3492
3502
|
};
|
|
3493
3503
|
}
|
|
@@ -3497,7 +3507,7 @@ var theme$l = {
|
|
|
3497
3507
|
wrapper: ""
|
|
3498
3508
|
}
|
|
3499
3509
|
};
|
|
3500
|
-
const _hoisted_1$
|
|
3510
|
+
const _hoisted_1$f = ["src"];
|
|
3501
3511
|
const __default__$o = { name: "XImage" };
|
|
3502
3512
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3503
3513
|
...__default__$o,
|
|
@@ -3508,26 +3518,28 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3508
3518
|
const props = __props;
|
|
3509
3519
|
const fallback = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
3510
3520
|
const source = ref(fallback);
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3521
|
+
if (typeof window !== "undefined" && Image) {
|
|
3522
|
+
watch(() => props.src, (src) => {
|
|
3523
|
+
if (!src)
|
|
3524
|
+
return;
|
|
3525
|
+
const img = new Image();
|
|
3526
|
+
img.onload = () => {
|
|
3527
|
+
source.value = props.src;
|
|
3528
|
+
};
|
|
3529
|
+
img.onerror = () => {
|
|
3530
|
+
};
|
|
3531
|
+
img.src = src;
|
|
3532
|
+
}, {
|
|
3533
|
+
immediate: true
|
|
3534
|
+
});
|
|
3535
|
+
}
|
|
3524
3536
|
const { styles, classes, className } = useTheme("image", theme$l, props);
|
|
3525
3537
|
return (_ctx, _cache) => {
|
|
3526
3538
|
return openBlock(), createElementBlock("img", {
|
|
3527
3539
|
class: normalizeClass([unref(className), unref(classes).wrapper]),
|
|
3528
3540
|
style: normalizeStyle(unref(styles)),
|
|
3529
3541
|
src: source.value
|
|
3530
|
-
}, null, 14, _hoisted_1$
|
|
3542
|
+
}, null, 14, _hoisted_1$f);
|
|
3531
3543
|
};
|
|
3532
3544
|
}
|
|
3533
3545
|
});
|
|
@@ -3570,7 +3582,7 @@ var theme$k = {
|
|
|
3570
3582
|
return css.get("border", color[400]);
|
|
3571
3583
|
}
|
|
3572
3584
|
};
|
|
3573
|
-
const _hoisted_1$
|
|
3585
|
+
const _hoisted_1$e = ["textContent"];
|
|
3574
3586
|
const _hoisted_2$a = { class: "relative" };
|
|
3575
3587
|
const _hoisted_3$8 = ["disabled", "min", "max", "minlength", "maxlength", "dir", "name", "placeholder", "readonly", "type", "value"];
|
|
3576
3588
|
const __default__$n = { name: "XInput" };
|
|
@@ -3653,7 +3665,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3653
3665
|
key: 0,
|
|
3654
3666
|
class: normalizeClass(unref(classes).label),
|
|
3655
3667
|
textContent: toDisplayString(__props.label)
|
|
3656
|
-
}, null, 10, _hoisted_1$
|
|
3668
|
+
}, null, 10, _hoisted_1$e)) : createCommentVNode("", true),
|
|
3657
3669
|
createElementVNode("div", _hoisted_2$a, [
|
|
3658
3670
|
__props.iconLeft ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3659
3671
|
key: 0,
|
|
@@ -3684,7 +3696,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3684
3696
|
readonly: _ctx.readonly,
|
|
3685
3697
|
type: currentType.value,
|
|
3686
3698
|
value: _ctx.modelValue || ""
|
|
3687
|
-
}, _ctx.$attrs, toHandlers(unref(inputListeners)), { onChange }), null, 16, _hoisted_3$8),
|
|
3699
|
+
}, _ctx.$attrs, toHandlers(unref(inputListeners), true), { onChange }), null, 16, _hoisted_3$8),
|
|
3688
3700
|
__props.iconRight ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3689
3701
|
key: 1,
|
|
3690
3702
|
size: _ctx.size,
|
|
@@ -3806,7 +3818,7 @@ var style0$2 = {
|
|
|
3806
3818
|
"x-link": "_x-link_1algu_2",
|
|
3807
3819
|
"menu-item--active": "_menu-item--active_1algu_1"
|
|
3808
3820
|
};
|
|
3809
|
-
const _hoisted_1$
|
|
3821
|
+
const _hoisted_1$d = {
|
|
3810
3822
|
key: 0,
|
|
3811
3823
|
class: "mr-2 shrink-0"
|
|
3812
3824
|
};
|
|
@@ -3921,7 +3933,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3921
3933
|
onClick: onItemClick
|
|
3922
3934
|
}, {
|
|
3923
3935
|
default: withCtx(() => [
|
|
3924
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3936
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$d, [
|
|
3925
3937
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
3926
3938
|
])) : unref(cItem).icon ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3927
3939
|
key: 1,
|
|
@@ -4106,7 +4118,7 @@ var theme$h = {
|
|
|
4106
4118
|
actions: "bg-slate-50 dark:bg-gray-800 p-4"
|
|
4107
4119
|
}
|
|
4108
4120
|
};
|
|
4109
|
-
const _hoisted_1$
|
|
4121
|
+
const _hoisted_1$c = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-screen" };
|
|
4110
4122
|
const __default__$k = { name: "XModal" };
|
|
4111
4123
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
4112
4124
|
...__default__$k,
|
|
@@ -4150,7 +4162,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4150
4162
|
}, 150);
|
|
4151
4163
|
}
|
|
4152
4164
|
});
|
|
4153
|
-
|
|
4165
|
+
if (typeof window !== "undefined")
|
|
4166
|
+
useEventListener(document, "keydown", onKeyDown);
|
|
4154
4167
|
function onKeyDown(event) {
|
|
4155
4168
|
if (event.key === "Escape" && value.value)
|
|
4156
4169
|
close();
|
|
@@ -4189,7 +4202,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4189
4202
|
visible.value ? "ease-out duration-200 opacity-30 dark:opacity-70" : "ease-in duration-100 opacity-0"
|
|
4190
4203
|
])
|
|
4191
4204
|
}, null, 2)) : createCommentVNode("", true),
|
|
4192
|
-
createElementVNode("div", _hoisted_1$
|
|
4205
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
4193
4206
|
createElementVNode("div", {
|
|
4194
4207
|
ref_key: "modalRef",
|
|
4195
4208
|
ref: modalRef,
|
|
@@ -4257,10 +4270,10 @@ var theme$g = {
|
|
|
4257
4270
|
classes: {
|
|
4258
4271
|
wrapper: "fixed z-40 w-full sm:w-auto overflow-y-auto max-h-screen",
|
|
4259
4272
|
list: "flex flex-col items-end w-full sm:w-[520px] px-4",
|
|
4260
|
-
item: "w-full flex items-center rounded-md px-4 py-3 bg-gray-800 dark:bg-gray-50 text-white dark:text-gray-900"
|
|
4273
|
+
item: "w-full flex items-center rounded-md px-4 py-3 bg-gray-800 dark:bg-gray-50 text-white dark:text-gray-900 border border-gray-700 dark:border-gray-100"
|
|
4261
4274
|
}
|
|
4262
4275
|
};
|
|
4263
|
-
const _hoisted_1$
|
|
4276
|
+
const _hoisted_1$b = { class: "flex items-center flex-wrap" };
|
|
4264
4277
|
const _hoisted_2$8 = {
|
|
4265
4278
|
key: 0,
|
|
4266
4279
|
class: "font-semibold mr-2"
|
|
@@ -4482,7 +4495,7 @@ const _sfc_main$j = defineComponent({
|
|
|
4482
4495
|
class: "mr-4 text-[color:var(--x-notification-icon)] dark:text-[color:var(--x-notification-dark-icon)]",
|
|
4483
4496
|
viewBox: "0 0 20 20"
|
|
4484
4497
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
4485
|
-
createElementVNode("div", _hoisted_1$
|
|
4498
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
4486
4499
|
notification.title ? (openBlock(), createElementBlock("span", _hoisted_2$8, toDisplayString(notification.title), 1)) : createCommentVNode("", true),
|
|
4487
4500
|
createElementVNode("span", null, toDisplayString(notification.message), 1)
|
|
4488
4501
|
]),
|
|
@@ -4596,7 +4609,7 @@ var theme$e = {
|
|
|
4596
4609
|
return css.get("bg", color[500]);
|
|
4597
4610
|
}
|
|
4598
4611
|
};
|
|
4599
|
-
const _hoisted_1$
|
|
4612
|
+
const _hoisted_1$a = { class: "mx-9 flex items-center" };
|
|
4600
4613
|
const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("span", { class: "text-gray-600 mr-2" }, "Page", -1);
|
|
4601
4614
|
const _hoisted_3$5 = { class: "text-gray-600 ml-2" };
|
|
4602
4615
|
const _hoisted_4$4 = ["onClick"];
|
|
@@ -4686,7 +4699,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4686
4699
|
disabled: __props.modelValue <= 1,
|
|
4687
4700
|
onClick: prevPage
|
|
4688
4701
|
}, null, 8, ["icon-left", "size", "disabled"]),
|
|
4689
|
-
createElementVNode("div", _hoisted_1$
|
|
4702
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
4690
4703
|
_hoisted_2$7,
|
|
4691
4704
|
createVNode(_sfc_main$n, {
|
|
4692
4705
|
modelValue: quickInput.value,
|
|
@@ -5196,7 +5209,7 @@ var style0 = {
|
|
|
5196
5209
|
radio_circle,
|
|
5197
5210
|
"radio--glow": "_radio--glow_132ux_1"
|
|
5198
5211
|
};
|
|
5199
|
-
const _hoisted_1$
|
|
5212
|
+
const _hoisted_1$9 = ["aria-selected", "aria-disabled"];
|
|
5200
5213
|
const _hoisted_2$6 = ["name", "required", "disabled"];
|
|
5201
5214
|
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("circle", {
|
|
5202
5215
|
cx: "10",
|
|
@@ -5306,7 +5319,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5306
5319
|
error: unref(errorInternal),
|
|
5307
5320
|
helper: __props.helper
|
|
5308
5321
|
}, null, 8, ["error", "helper"])
|
|
5309
|
-
], 46, _hoisted_1$
|
|
5322
|
+
], 46, _hoisted_1$9);
|
|
5310
5323
|
};
|
|
5311
5324
|
}
|
|
5312
5325
|
});
|
|
@@ -5344,7 +5357,7 @@ var theme$9 = {
|
|
|
5344
5357
|
});
|
|
5345
5358
|
}
|
|
5346
5359
|
};
|
|
5347
|
-
const _hoisted_1$
|
|
5360
|
+
const _hoisted_1$8 = {
|
|
5348
5361
|
key: 0,
|
|
5349
5362
|
class: "max-w-full truncate"
|
|
5350
5363
|
};
|
|
@@ -5391,7 +5404,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5391
5404
|
style: normalizeStyle(unref(styles))
|
|
5392
5405
|
}, {
|
|
5393
5406
|
default: withCtx(() => [
|
|
5394
|
-
__props.removable ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
5407
|
+
__props.removable ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
5395
5408
|
renderSlot(_ctx.$slots, "default"),
|
|
5396
5409
|
createVNode(_sfc_main$F, {
|
|
5397
5410
|
size: unref(closeIconSize),
|
|
@@ -5455,7 +5468,7 @@ var theme$8 = {
|
|
|
5455
5468
|
return css.get("border", color[500]);
|
|
5456
5469
|
}
|
|
5457
5470
|
};
|
|
5458
|
-
const _hoisted_1$
|
|
5471
|
+
const _hoisted_1$7 = ["textContent"];
|
|
5459
5472
|
const _hoisted_2$5 = { class: "relative" };
|
|
5460
5473
|
const _hoisted_3$3 = {
|
|
5461
5474
|
key: 0,
|
|
@@ -5681,7 +5694,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5681
5694
|
key: 0,
|
|
5682
5695
|
class: normalizeClass(unref(classes).label),
|
|
5683
5696
|
textContent: toDisplayString(__props.label)
|
|
5684
|
-
}, null, 10, _hoisted_1$
|
|
5697
|
+
}, null, 10, _hoisted_1$7)) : createCommentVNode("", true),
|
|
5685
5698
|
createElementVNode("div", _hoisted_2$5, [
|
|
5686
5699
|
createVNode(XPopover, {
|
|
5687
5700
|
ref_key: "popoverRef",
|
|
@@ -5758,7 +5771,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5758
5771
|
multiple: __props.multiple,
|
|
5759
5772
|
readonly: _ctx.readonly,
|
|
5760
5773
|
value: _ctx.modelValue
|
|
5761
|
-
}, toHandlers(unref(inputListeners))), [
|
|
5774
|
+
}, toHandlers(unref(inputListeners), true)), [
|
|
5762
5775
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
5763
5776
|
return openBlock(), createElementBlock("option", {
|
|
5764
5777
|
key: index,
|
|
@@ -5799,7 +5812,6 @@ var theme$7 = {
|
|
|
5799
5812
|
wrapper: "animate-pulse bg-gray-300 dark:bg-gray-600 rounded-md"
|
|
5800
5813
|
}
|
|
5801
5814
|
};
|
|
5802
|
-
const _hoisted_1$7 = /* @__PURE__ */ createTextVNode(" \u200B ");
|
|
5803
5815
|
const __default__$a = { name: "XSkeleton" };
|
|
5804
5816
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
5805
5817
|
...__default__$a,
|
|
@@ -5821,7 +5833,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5821
5833
|
])
|
|
5822
5834
|
}, {
|
|
5823
5835
|
default: withCtx(() => [
|
|
5824
|
-
|
|
5836
|
+
createTextVNode(" \u200B ")
|
|
5825
5837
|
]),
|
|
5826
5838
|
_: 1
|
|
5827
5839
|
}, 8, ["style", "class"]);
|
|
@@ -5953,10 +5965,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5953
5965
|
e.preventDefault();
|
|
5954
5966
|
e.stopPropagation();
|
|
5955
5967
|
}
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5968
|
+
if (typeof window !== "undefined") {
|
|
5969
|
+
useEventListener(progressRef, "pointerdown", startProgressDrag, false);
|
|
5970
|
+
useEventListener(dragRef, "pointerdown", startDrag, false);
|
|
5971
|
+
useEventListener(window, "pointermove", moveDrag, true);
|
|
5972
|
+
useEventListener(window, "pointerup", endDrag, true);
|
|
5973
|
+
}
|
|
5960
5974
|
useEventListener(elRef, "keydown", handleKeydown);
|
|
5961
5975
|
function handleKeydown(e) {
|
|
5962
5976
|
if (e.code === "ArrowLeft") {
|
|
@@ -6813,12 +6827,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6813
6827
|
const props = __props;
|
|
6814
6828
|
const elRef = ref(null);
|
|
6815
6829
|
useResizeObserver(elRef, resize);
|
|
6816
|
-
|
|
6817
|
-
window
|
|
6818
|
-
});
|
|
6819
|
-
onBeforeUnmount(() => {
|
|
6820
|
-
window.removeEventListener("resize", resize);
|
|
6821
|
-
});
|
|
6830
|
+
if (typeof window !== "undefined")
|
|
6831
|
+
useEventListener(window, "resize", resize);
|
|
6822
6832
|
watch([() => props.modelValue, () => props.size], () => {
|
|
6823
6833
|
setTimeout(resize);
|
|
6824
6834
|
});
|
|
@@ -6885,7 +6895,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6885
6895
|
placeholder: __props.placeholder,
|
|
6886
6896
|
readonly: _ctx.readonly,
|
|
6887
6897
|
value: _ctx.modelValue ? String(_ctx.modelValue) : ""
|
|
6888
|
-
}, toHandlers(unref(inputListeners)), {
|
|
6898
|
+
}, toHandlers(unref(inputListeners), true), {
|
|
6889
6899
|
onKeydown: withKeys(onEnter, ["enter"]),
|
|
6890
6900
|
onInput
|
|
6891
6901
|
}), null, 16, _hoisted_2$1),
|
|
@@ -7159,5 +7169,5 @@ var install = create({
|
|
|
7159
7169
|
(key) => components[key]
|
|
7160
7170
|
)
|
|
7161
7171
|
});
|
|
7162
|
-
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`._alert_14e3h_2{color:var(--x-alert-text);background-color:var(--x-alert-bg);border-color:var(--x-alert-border)}._alert--glow_14e3h_1{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-alert-glow),0 4px 6px -4px var(--x-alert-glow)}._alert_14e3h_2.dark,.dark ._alert_14e3h_2{color:var(--x-alert-dark-text,var(--x-alert-text));background-color:var(--x-alert-dark-bg,var(--x-alert-bg));border-color:var(--x-alert-dark-border,var(--x-alert-border))}._avatar_az2b2_2{color:var(--x-avatar-text);background-color:var(--x-avatar-bg);border-color:var(--x-avatar-border)}._avatar_az2b2_2.dark,.dark ._avatar_az2b2_2{color:var(--x-avatar-dark-text,var(--x-avatar-text));background-color:var(--x-avatar-dark-bg,var(--x-avatar-bg));border-color:var(--x-avatar-dark-border,var(--x-avatar-border))}.
|
|
7172
|
+
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`._alert_14e3h_2{color:var(--x-alert-text);background-color:var(--x-alert-bg);border-color:var(--x-alert-border)}._alert--glow_14e3h_1{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-alert-glow),0 4px 6px -4px var(--x-alert-glow)}._alert_14e3h_2.dark,.dark ._alert_14e3h_2{color:var(--x-alert-dark-text,var(--x-alert-text));background-color:var(--x-alert-dark-bg,var(--x-alert-bg));border-color:var(--x-alert-dark-border,var(--x-alert-border))}._avatar_az2b2_2{color:var(--x-avatar-text);background-color:var(--x-avatar-bg);border-color:var(--x-avatar-border)}._avatar_az2b2_2.dark,.dark ._avatar_az2b2_2{color:var(--x-avatar-dark-text,var(--x-avatar-text));background-color:var(--x-avatar-dark-bg,var(--x-avatar-bg));border-color:var(--x-avatar-dark-border,var(--x-avatar-border))}._button_179kk_2[data-v-dc323f72]{color:var(--x-button-text);background-color:var(--x-button-bg);border-color:var(--x-button-border)}._button--glow_179kk_1[data-v-dc323f72]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-button-glow),0 4px 6px -4px var(--x-button-glow)}._button_179kk_2[data-v-dc323f72]:hover{color:var(--x-button-text-hover,var(--x-button-text));background-color:var(--x-button-bg-hover,var(--x-button-bg));border-color:var(--x-button-border-hover,var(--x-button-border))}._button_179kk_2[data-v-dc323f72]:active{color:var(--x-button-text-active,var(--x-button-text));background-color:var(--x-button-bg-active,var(--x-button-bg));border-color:var(--x-button-border-active,var(--x-button-border))}._button_179kk_2.dark[data-v-dc323f72],.dark ._button_179kk_2[data-v-dc323f72]{color:var(--x-button-dark-text,var(--x-button-text));background-color:var(--x-button-dark-bg,var(--x-button-bg));border-color:var(--x-button-dark-border,var(--x-button-border))}._button_179kk_2.dark[data-v-dc323f72]:hover,.dark ._button_179kk_2[data-v-dc323f72]:hover{color:var(--x-button-dark-text-hover,var(--x-button-dark-text,var(--x-button-text)));background-color:var(--x-button-dark-bg-hover,var(--x-button-dark-bg,var(--x-button-bg)));border-color:var(--x-button-dark-border-hover,var(--x-button-dark-border,var(--x-button-border)))}._button_179kk_2.dark[data-v-dc323f72]:active,.dark ._button_179kk_2[data-v-dc323f72]:active{color:var(--x-button-dark-text-active,var(--x-button-dark-text));background-color:var(--x-button-dark-bg-active,var(--x-button-dark-bg,var(--x-button-bg)));border-color:var(--x-button-dark-border-active,var(--x-button-dark-border,var(--x-button-border)))}._button-group_1dmw3_2:not(._button-group--rounded_1dmw3_1)>:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}._button-group_1dmw3_2:not(._button-group--rounded_1dmw3_1)>:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}._button-group--rounded_1dmw3_1>:first-of-type{border-top-left-radius:9999px;border-bottom-left-radius:9999px}._button-group--rounded_1dmw3_1>:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}._checkbox--glow_x9lav_1{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-checkbox-glow),0 4px 6px -4px var(--x-checkbox-glow)}._link_7nt3a_2[data-v-c07d1e44]{color:var(--x-link-text)}._link_7nt3a_2[data-v-c07d1e44]:hover{color:var(--x-link-text-hover,var(--x-link-text))}._link--shadow_7nt3a_1[data-v-c07d1e44]{box-shadow:inset 0 -.315em 0 0 var(--x-link-shadow)}._link--shadow_7nt3a_1[data-v-c07d1e44]:hover{box-shadow:inset 0 -1.325em 0 0 var(--x-link-shadow)}._link_7nt3a_2.dark[data-v-c07d1e44],.dark ._link_7nt3a_2[data-v-c07d1e44]{color:var(--x-link-dark-text)}._link_7nt3a_2.dark[data-v-c07d1e44]:hover,.dark ._link_7nt3a_2[data-v-c07d1e44]:hover{color:var(--x-link-dark-text-hover,var(--x-link-dark-text))}._link_7nt3a_2.dark--shadow[data-v-c07d1e44],.dark ._link--shadow_7nt3a_1[data-v-c07d1e44]{box-shadow:inset 0 -.315em 0 0 var(--x-link-dark-shadow)}._link_7nt3a_2.dark--shadow[data-v-c07d1e44]:hover,.dark ._link--shadow_7nt3a_1[data-v-c07d1e44]:hover{box-shadow:inset 0 -1.325em 0 0 var(--x-link-dark-shadow)}._menu-item_1algu_2._x-link_1algu_2[data-v-4e55db1e],._menu-item_1algu_2[data-v-4e55db1e]{color:var(--x-menu-item-text);background-color:var(--x-menu-item-bg)}._menu-item_1algu_2._x-link_1algu_2[data-v-4e55db1e]:before,._menu-item_1algu_2[data-v-4e55db1e]:before{content:'';position:absolute;left:-1px;height:100%;width:1px;background-color:transparent}._menu-item_1algu_2._x-link_1algu_2[data-v-4e55db1e]:hover,._menu-item_1algu_2[data-v-4e55db1e]:hover{color:var(--x-menu-item-text-hover,var(--x-menu-item-text));background-color:var(--x-menu-item-bg-hover,var(--x-menu-item-bg))}._menu-item_1algu_2._x-link_1algu_2.dark[data-v-4e55db1e],._menu-item_1algu_2.dark[data-v-4e55db1e],.dark ._menu-item_1algu_2._x-link_1algu_2[data-v-4e55db1e],.dark ._menu-item_1algu_2[data-v-4e55db1e]{color:var(--x-menu-item-dark-text);background:var(--x-menu-item-dark-bg)}._menu-item_1algu_2._x-link_1algu_2.dark[data-v-4e55db1e]:hover,._menu-item_1algu_2.dark[data-v-4e55db1e]:hover,.dark ._menu-item_1algu_2._x-link_1algu_2[data-v-4e55db1e]:hover,.dark ._menu-item_1algu_2[data-v-4e55db1e]:hover{color:var(--x-menu-item-dark-text-hover,var(--x-menu-item-dark-text));background-color:var(--x-menu-item-dark-bg-hover,var(--x-menu-item-dark-bg))}.x-menu-inner ._menu-item--active_1algu_1[data-v-4e55db1e]:before,.x-menu-inner ._menu-item_1algu_2[data-v-4e55db1e]:hover:before{background-color:var(--x-menu-item-border-hover)}._popover_1wc81_2 ._popoverContent_1wc81_3{visibility:hidden;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._popover_1wc81_2 ._popoverTop_1wc81_8{--tw-translate-y:0.5rem}._popover_1wc81_2 ._popoverRight_1wc81_11{--tw-translate-x:-0.5rem}._popover_1wc81_2 ._popoverBottom_1wc81_14{--tw-translate-y:-0.5rem}._popover_1wc81_2 ._popoverLeft_1wc81_17{--tw-translate-x:0.5rem}._popover_1wc81_2._hover_1wc81_21:hover ._popoverContent_1wc81_3,._popover_1wc81_2._is-open_1wc81_22 ._popoverContent_1wc81_3{visibility:visible;transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}._popover_1wc81_2._hover_1wc81_21:hover ._popoverTop_1wc81_8,._popover_1wc81_2._is-open_1wc81_22 ._popoverTop_1wc81_8{--tw-translate-y:-0.25rem}._popover_1wc81_2._hover_1wc81_21:hover ._popoverRight_1wc81_11,._popover_1wc81_2._is-open_1wc81_22 ._popoverRight_1wc81_11{--tw-translate-x:0.25rem}._popover_1wc81_2._hover_1wc81_21:hover ._popoverBottom_1wc81_14,._popover_1wc81_2._is-open_1wc81_22 ._popoverBottom_1wc81_14{--tw-translate-y:0.25rem}._popover_1wc81_2._hover_1wc81_21:hover ._popoverLeft_1wc81_17,._popover_1wc81_2._is-open_1wc81_22 ._popoverLeft_1wc81_17{--tw-translate-x:-0.25rem}._scrollWrap_1k3q9_2:after,._scrollWrap_1k3q9_2:before{content:"";pointer-events:none;position:absolute;z-index:1;transition:box-shadow .2s}._scrollWrap_1k3q9_2._horizontal_1k3q9_11:after,._scrollWrap_1k3q9_2._horizontal_1k3q9_11:before{top:0;bottom:0;width:20px}._scrollWrap_1k3q9_2._vertical_1k3q9_17:after,._scrollWrap_1k3q9_2._vertical_1k3q9_17:before{right:0;left:0;height:20px}._scrollWrap_1k3q9_2._horizontal_1k3q9_11:before{left:0}._scrollWrap_1k3q9_2._horizontal_1k3q9_11:after{right:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17:before{top:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17:after{bottom:0}._scrollWrap_1k3q9_2._shadow-left_1k3q9_36:before{box-shadow:inset 12px 0 10px -10px rgb(0 0 0 / 7%)}._scrollWrap_1k3q9_2._shadow-right_1k3q9_40:after{box-shadow:inset -12px 0 10px -10px rgb(0 0 0 / 7%)}._scrollWrap_1k3q9_2._shadow-top_1k3q9_44:before{box-shadow:inset 0 12px 10px -10px rgb(0 0 0 / 7%)}._scrollWrap_1k3q9_2._shadow-bottom_1k3q9_48:after{box-shadow:inset 0 -12px 10px -10px rgb(0 0 0 / 7%)}._hideScroll_1k3q9_53{-ms-overflow-style:auto;scrollbar-width:none}._hideScroll_1k3q9_53::-webkit-scrollbar{display:none}._radio_132ux_2{border-color:var(--x-radio-border);background-color:var(--x-radio-bg)}._radio_circle_132ux_1{color:var(--x-radio-circle)}._radio--glow_132ux_1{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-radio-glow),0 4px 6px -4px var(--x-radio-glow)}._radio_132ux_2.dark,.dark ._radio_132ux_2{border-color:var(--x-radio-dark-border);background-color:var(--x-radio-dark-bg)}._radio_132ux_2.dark_circle,.dark ._radio_circle_132ux_1{color:var(--x-radio-dark-circle)}`);
|
|
7163
7173
|
export { Alert as XAlert, Avatar as XAvatar, _sfc_main$C as XBadge, _sfc_main$A as XBreadcrumbs, XButton, ButtonGroup as XButtonGroup, _sfc_main$w as XCard, Checkbox as XCheckbox, _sfc_main$u as XCollapse, _sfc_main$t as XContainer, _sfc_main$s as XDivider, _sfc_main$q as XDrawer, _sfc_main$p as XForm, _sfc_main$F as XIcon, _sfc_main$o as XImage, _sfc_main$n as XInput, XLink, _sfc_main$l as XMenu, XMenuItem, _sfc_main$k as XModal, _sfc_main$j as XNotifications, _sfc_main$h as XPagination, _sfc_main$i as XPaginationItem, XPopover, _sfc_main$f as XPopoverContainer, _sfc_main$e as XProgress, Radio as XRadio, XScroll, _sfc_main$b as XSelect, _sfc_main$a as XSkeleton, _sfc_main$9 as XSlider, XSpacer, _sfc_main$z as XSpinner, _sfc_main$4 as XTab, _sfc_main$3 as XTabGroup, _sfc_main$5 as XTable, XTableBody, _sfc_main$6 as XTableCell, XTableHead, _sfc_main$8 as XTableHeader, _sfc_main$7 as XTableRow, _sfc_main$c as XTag, _sfc_main$2 as XTextarea, _sfc_main$1 as XToggle, _sfc_main as XTooltip, tailwindColors as colors, create as createUI, install as default, injectButtonGroupKey, injectColorsKey, injectFormKey, injectIconsKey, injectNotificationKey, injectTabKey, injectThemeKey, useCSS, useColors, useCommon, useInputtable, useInteractive, useNotifications, version };
|