@indielayer/ui 1.0.2 → 1.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/LICENSE +21 -0
- package/lib/components/avatar/Avatar.vue.d.ts +1 -1
- package/lib/components/badge/Badge.vue.d.ts +1 -1
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +1 -1
- package/lib/components/button/Button.vue.d.ts +1 -1
- package/lib/components/button/ButtonGroup.vue.d.ts +1 -1
- package/lib/components/card/Card.vue.d.ts +1 -1
- package/lib/components/container/Container.vue.d.ts +1 -1
- package/lib/components/divider/Divider.vue.d.ts +1 -1
- package/lib/components/helpers/InputError.d.ts +1 -1
- package/lib/components/icon/Icon.vue.d.ts +1 -1
- package/lib/components/image/Image.vue.d.ts +1 -1
- package/lib/components/link/Link.vue.d.ts +1 -1
- package/lib/components/notifications/Notifications.vue.d.ts +1 -1
- package/lib/components/popover/PopoverContainer.vue.d.ts +1 -1
- package/lib/components/progress/Progress.vue.d.ts +1 -1
- package/lib/components/scroll/Scroll.vue.d.ts +1 -1
- package/lib/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spinner/Spinner.vue.d.ts +1 -1
- package/lib/components/tab/Tab.vue.d.ts +1 -1
- package/lib/components/table/TableBody.d.ts +1 -1
- package/lib/components/table/TableCell.vue.d.ts +1 -1
- package/lib/components/table/TableHead.d.ts +1 -1
- package/lib/components/table/TableHeader.vue.d.ts +1 -1
- package/lib/components/table/TableRow.vue.d.ts +1 -1
- package/lib/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +73 -74
- package/lib/version.d.ts +1 -1
- package/package.json +5 -3
- package/src/components/alert/Alert.vue +1 -1
- package/src/components/avatar/Avatar.vue +1 -1
- package/src/components/button/Button.theme.ts +1 -1
- package/src/components/drawer/Drawer.vue +4 -2
- 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/select/Select.vue +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/tag/Tag.vue +1 -1
- package/src/components/textarea/Textarea.vue +3 -10
- package/src/composables/colors-utils.ts +1 -1
- package/src/version.ts +1 -1
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.4";
|
|
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,7 +1182,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1182
1182
|
}
|
|
1183
1183
|
return "";
|
|
1184
1184
|
});
|
|
1185
|
-
if (
|
|
1185
|
+
if (typeof window !== "undefined" && Image) {
|
|
1186
1186
|
watch(() => props.image, (src) => {
|
|
1187
1187
|
source.value = void 0;
|
|
1188
1188
|
if (!src)
|
|
@@ -1214,7 +1214,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1214
1214
|
alt: __props.alt,
|
|
1215
1215
|
src: __props.image,
|
|
1216
1216
|
class: "h-full w-full"
|
|
1217
|
-
}, 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 }, () => [
|
|
1218
1218
|
createVNode(_sfc_main$F, {
|
|
1219
1219
|
size: _ctx.size,
|
|
1220
1220
|
icon: unref(avatarIcon)
|
|
@@ -1239,7 +1239,7 @@ var theme$y = {
|
|
|
1239
1239
|
return css.get("bg", color[500]);
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
|
-
const _hoisted_1$
|
|
1242
|
+
const _hoisted_1$m = { class: "relative inline-block" };
|
|
1243
1243
|
const _hoisted_2$d = {
|
|
1244
1244
|
key: 0,
|
|
1245
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)]"
|
|
@@ -1312,7 +1312,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1312
1312
|
])
|
|
1313
1313
|
}, {
|
|
1314
1314
|
default: withCtx(() => [
|
|
1315
|
-
createElementVNode("div", _hoisted_1$
|
|
1315
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
1316
1316
|
renderSlot(_ctx.$slots, "default"),
|
|
1317
1317
|
__props.show ? (openBlock(), createElementBlock("div", {
|
|
1318
1318
|
key: 0,
|
|
@@ -1373,7 +1373,7 @@ var style0$7 = {
|
|
|
1373
1373
|
link,
|
|
1374
1374
|
"link--shadow": "_link--shadow_7nt3a_1"
|
|
1375
1375
|
};
|
|
1376
|
-
const _hoisted_1$
|
|
1376
|
+
const _hoisted_1$l = {
|
|
1377
1377
|
key: 0,
|
|
1378
1378
|
class: "inline-flex items-center"
|
|
1379
1379
|
};
|
|
@@ -1407,7 +1407,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1407
1407
|
])
|
|
1408
1408
|
}, {
|
|
1409
1409
|
default: withCtx(() => [
|
|
1410
|
-
__props.external ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1410
|
+
__props.external ? (openBlock(), createElementBlock("span", _hoisted_1$l, [
|
|
1411
1411
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1412
1412
|
createVNode(_sfc_main$F, { icon: unref(externalIcon) }, null, 8, ["icon"])
|
|
1413
1413
|
])) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
@@ -1541,7 +1541,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1541
1541
|
var theme$v = {
|
|
1542
1542
|
classes: {
|
|
1543
1543
|
wrapper({ props, slots, data }) {
|
|
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"];
|
|
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"];
|
|
1545
1545
|
if (!data.isButtonGroup)
|
|
1546
1546
|
classes.push(props.rounded ? "rounded-full" : "rounded-md");
|
|
1547
1547
|
if (!props.flat && !props.light && !props.ghost && !props.disabled && !props.loading)
|
|
@@ -2170,7 +2170,7 @@ var theme$s = {
|
|
|
2170
2170
|
var style0$4 = {
|
|
2171
2171
|
"checkbox--glow": "_checkbox--glow_x9lav_1"
|
|
2172
2172
|
};
|
|
2173
|
-
const _hoisted_1$
|
|
2173
|
+
const _hoisted_1$k = ["onKeypress"];
|
|
2174
2174
|
const _hoisted_2$c = ["aria-checked", "aria-disabled", "disabled", "name", "required"];
|
|
2175
2175
|
const _hoisted_3$a = /* @__PURE__ */ createElementVNode("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1);
|
|
2176
2176
|
const _hoisted_4$7 = [
|
|
@@ -2266,7 +2266,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2266
2266
|
textContent: toDisplayString(__props.label)
|
|
2267
2267
|
}, null, 8, _hoisted_5$3)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
2268
2268
|
], 2)
|
|
2269
|
-
], 42, _hoisted_1$
|
|
2269
|
+
], 42, _hoisted_1$k),
|
|
2270
2270
|
createVNode(unref(XInputError), {
|
|
2271
2271
|
error: unref(errorInternal),
|
|
2272
2272
|
helper: __props.helper
|
|
@@ -2286,7 +2286,7 @@ var theme$r = {
|
|
|
2286
2286
|
content: "transition-[height] duration-150 overflow-y-hidden"
|
|
2287
2287
|
}
|
|
2288
2288
|
};
|
|
2289
|
-
const _hoisted_1$
|
|
2289
|
+
const _hoisted_1$j = { class: "flex-1 overflow-hidden" };
|
|
2290
2290
|
const _hoisted_2$b = {
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
viewBox: "0 0 24 24",
|
|
@@ -2394,7 +2394,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2394
2394
|
class: normalizeClass(unref(classes).wrapper),
|
|
2395
2395
|
onClick: toggle
|
|
2396
2396
|
}, [
|
|
2397
|
-
createElementVNode("div", _hoisted_1$
|
|
2397
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
2398
2398
|
renderSlot(_ctx.$slots, "default", { collapsed: collapsed.value })
|
|
2399
2399
|
]),
|
|
2400
2400
|
__props.showIcon ? (openBlock(), createElementBlock("div", {
|
|
@@ -2485,7 +2485,7 @@ var theme$p = {
|
|
|
2485
2485
|
line: "bg-gray-200 dark:bg-slate-700 flex-grow"
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
2488
|
-
const _hoisted_1$
|
|
2488
|
+
const _hoisted_1$i = ["textContent"];
|
|
2489
2489
|
const __default__$s = { name: "XDivider" };
|
|
2490
2490
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2491
2491
|
...__default__$s,
|
|
@@ -2523,7 +2523,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
2523
2523
|
}
|
|
2524
2524
|
]]),
|
|
2525
2525
|
textContent: toDisplayString(__props.label)
|
|
2526
|
-
}, null, 10, _hoisted_1$
|
|
2526
|
+
}, null, 10, _hoisted_1$i)) : createCommentVNode("", true),
|
|
2527
2527
|
createElementVNode("div", {
|
|
2528
2528
|
class: normalizeClass(unref(classes).line),
|
|
2529
2529
|
style: normalizeStyle([
|
|
@@ -3184,7 +3184,7 @@ var theme$n = {
|
|
|
3184
3184
|
backdrop: "absolute z-40 inset-0 duration-150 ease-in-out"
|
|
3185
3185
|
}
|
|
3186
3186
|
};
|
|
3187
|
-
const _hoisted_1$
|
|
3187
|
+
const _hoisted_1$h = {
|
|
3188
3188
|
key: 0,
|
|
3189
3189
|
ref: "swipeRef",
|
|
3190
3190
|
class: "flex flex-col max-h-full"
|
|
@@ -3226,7 +3226,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3226
3226
|
const value = ref(props.modelValue);
|
|
3227
3227
|
const backdropRef = ref(null);
|
|
3228
3228
|
const drawerRef = ref(null);
|
|
3229
|
-
|
|
3229
|
+
let deferShow = ref(false);
|
|
3230
|
+
if (typeof window !== "undefined")
|
|
3231
|
+
deferShow = ref(!!(props.teleportTo && (props.teleportTo instanceof HTMLElement || document.querySelector(props.teleportTo))));
|
|
3230
3232
|
const isTailwindBreakpoint = typeof props.breakpoint === "string";
|
|
3231
3233
|
const breakpoints = useBreakpoints(isTailwindBreakpoint ? breakpointsTailwind : { md: props.breakpoint || 768 });
|
|
3232
3234
|
const point = breakpoints.smaller(isTailwindBreakpoint ? props.breakpoint : "md");
|
|
@@ -3245,7 +3247,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3245
3247
|
watch(() => props.modelValue, (val) => {
|
|
3246
3248
|
value.value = val;
|
|
3247
3249
|
});
|
|
3248
|
-
if (
|
|
3250
|
+
if (typeof window !== "undefined")
|
|
3249
3251
|
useEventListener(document, "keydown", onKeyDown);
|
|
3250
3252
|
function onKeyDown(event) {
|
|
3251
3253
|
if (event.key === "Escape" && value.value)
|
|
@@ -3344,7 +3346,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3344
3346
|
const { styles, classes, className } = useTheme("drawer", theme$n, props);
|
|
3345
3347
|
expose({ open, close });
|
|
3346
3348
|
return (_ctx, _cache) => {
|
|
3347
|
-
return deferShow
|
|
3349
|
+
return unref(deferShow) ? (openBlock(), createBlock(Teleport, {
|
|
3348
3350
|
key: 0,
|
|
3349
3351
|
to: __props.teleportTo,
|
|
3350
3352
|
disabled: !detached.value
|
|
@@ -3366,7 +3368,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3366
3368
|
detached.value ? unref(classes).backdrop : ""
|
|
3367
3369
|
])
|
|
3368
3370
|
}, [
|
|
3369
|
-
detached.value && value.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3371
|
+
detached.value && value.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, null, 512)) : createCommentVNode("", true),
|
|
3370
3372
|
createElementVNode("div", {
|
|
3371
3373
|
ref_key: "drawerRef",
|
|
3372
3374
|
ref: drawerRef,
|
|
@@ -3403,7 +3405,7 @@ var theme$m = {
|
|
|
3403
3405
|
wrapper: ""
|
|
3404
3406
|
}
|
|
3405
3407
|
};
|
|
3406
|
-
const _hoisted_1$
|
|
3408
|
+
const _hoisted_1$g = ["disabled"];
|
|
3407
3409
|
const __default__$p = {
|
|
3408
3410
|
name: "XForm",
|
|
3409
3411
|
inheritAttrs: false
|
|
@@ -3495,7 +3497,7 @@ const _sfc_main$p = defineComponent({
|
|
|
3495
3497
|
}, [
|
|
3496
3498
|
createElementVNode("fieldset", { disabled: __props.disabled }, [
|
|
3497
3499
|
renderSlot(_ctx.$slots, "default")
|
|
3498
|
-
], 8, _hoisted_1$
|
|
3500
|
+
], 8, _hoisted_1$g)
|
|
3499
3501
|
], 38);
|
|
3500
3502
|
};
|
|
3501
3503
|
}
|
|
@@ -3505,7 +3507,7 @@ var theme$l = {
|
|
|
3505
3507
|
wrapper: ""
|
|
3506
3508
|
}
|
|
3507
3509
|
};
|
|
3508
|
-
const _hoisted_1$
|
|
3510
|
+
const _hoisted_1$f = ["src"];
|
|
3509
3511
|
const __default__$o = { name: "XImage" };
|
|
3510
3512
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3511
3513
|
...__default__$o,
|
|
@@ -3516,26 +3518,28 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3516
3518
|
const props = __props;
|
|
3517
3519
|
const fallback = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
3518
3520
|
const source = ref(fallback);
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
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
|
+
}
|
|
3532
3536
|
const { styles, classes, className } = useTheme("image", theme$l, props);
|
|
3533
3537
|
return (_ctx, _cache) => {
|
|
3534
3538
|
return openBlock(), createElementBlock("img", {
|
|
3535
3539
|
class: normalizeClass([unref(className), unref(classes).wrapper]),
|
|
3536
3540
|
style: normalizeStyle(unref(styles)),
|
|
3537
3541
|
src: source.value
|
|
3538
|
-
}, null, 14, _hoisted_1$
|
|
3542
|
+
}, null, 14, _hoisted_1$f);
|
|
3539
3543
|
};
|
|
3540
3544
|
}
|
|
3541
3545
|
});
|
|
@@ -3578,7 +3582,7 @@ var theme$k = {
|
|
|
3578
3582
|
return css.get("border", color[400]);
|
|
3579
3583
|
}
|
|
3580
3584
|
};
|
|
3581
|
-
const _hoisted_1$
|
|
3585
|
+
const _hoisted_1$e = ["textContent"];
|
|
3582
3586
|
const _hoisted_2$a = { class: "relative" };
|
|
3583
3587
|
const _hoisted_3$8 = ["disabled", "min", "max", "minlength", "maxlength", "dir", "name", "placeholder", "readonly", "type", "value"];
|
|
3584
3588
|
const __default__$n = { name: "XInput" };
|
|
@@ -3661,7 +3665,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3661
3665
|
key: 0,
|
|
3662
3666
|
class: normalizeClass(unref(classes).label),
|
|
3663
3667
|
textContent: toDisplayString(__props.label)
|
|
3664
|
-
}, null, 10, _hoisted_1$
|
|
3668
|
+
}, null, 10, _hoisted_1$e)) : createCommentVNode("", true),
|
|
3665
3669
|
createElementVNode("div", _hoisted_2$a, [
|
|
3666
3670
|
__props.iconLeft ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3667
3671
|
key: 0,
|
|
@@ -3692,7 +3696,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3692
3696
|
readonly: _ctx.readonly,
|
|
3693
3697
|
type: currentType.value,
|
|
3694
3698
|
value: _ctx.modelValue || ""
|
|
3695
|
-
}, _ctx.$attrs, toHandlers(unref(inputListeners)), { onChange }), null, 16, _hoisted_3$8),
|
|
3699
|
+
}, _ctx.$attrs, toHandlers(unref(inputListeners), true), { onChange }), null, 16, _hoisted_3$8),
|
|
3696
3700
|
__props.iconRight ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3697
3701
|
key: 1,
|
|
3698
3702
|
size: _ctx.size,
|
|
@@ -3814,7 +3818,7 @@ var style0$2 = {
|
|
|
3814
3818
|
"x-link": "_x-link_1algu_2",
|
|
3815
3819
|
"menu-item--active": "_menu-item--active_1algu_1"
|
|
3816
3820
|
};
|
|
3817
|
-
const _hoisted_1$
|
|
3821
|
+
const _hoisted_1$d = {
|
|
3818
3822
|
key: 0,
|
|
3819
3823
|
class: "mr-2 shrink-0"
|
|
3820
3824
|
};
|
|
@@ -3929,7 +3933,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3929
3933
|
onClick: onItemClick
|
|
3930
3934
|
}, {
|
|
3931
3935
|
default: withCtx(() => [
|
|
3932
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3936
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$d, [
|
|
3933
3937
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
3934
3938
|
])) : unref(cItem).icon ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3935
3939
|
key: 1,
|
|
@@ -4114,7 +4118,7 @@ var theme$h = {
|
|
|
4114
4118
|
actions: "bg-slate-50 dark:bg-gray-800 p-4"
|
|
4115
4119
|
}
|
|
4116
4120
|
};
|
|
4117
|
-
const _hoisted_1$
|
|
4121
|
+
const _hoisted_1$c = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-screen" };
|
|
4118
4122
|
const __default__$k = { name: "XModal" };
|
|
4119
4123
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
4120
4124
|
...__default__$k,
|
|
@@ -4158,7 +4162,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4158
4162
|
}, 150);
|
|
4159
4163
|
}
|
|
4160
4164
|
});
|
|
4161
|
-
if (
|
|
4165
|
+
if (typeof window !== "undefined")
|
|
4162
4166
|
useEventListener(document, "keydown", onKeyDown);
|
|
4163
4167
|
function onKeyDown(event) {
|
|
4164
4168
|
if (event.key === "Escape" && value.value)
|
|
@@ -4198,7 +4202,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4198
4202
|
visible.value ? "ease-out duration-200 opacity-30 dark:opacity-70" : "ease-in duration-100 opacity-0"
|
|
4199
4203
|
])
|
|
4200
4204
|
}, null, 2)) : createCommentVNode("", true),
|
|
4201
|
-
createElementVNode("div", _hoisted_1$
|
|
4205
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
4202
4206
|
createElementVNode("div", {
|
|
4203
4207
|
ref_key: "modalRef",
|
|
4204
4208
|
ref: modalRef,
|
|
@@ -4266,10 +4270,10 @@ var theme$g = {
|
|
|
4266
4270
|
classes: {
|
|
4267
4271
|
wrapper: "fixed z-40 w-full sm:w-auto overflow-y-auto max-h-screen",
|
|
4268
4272
|
list: "flex flex-col items-end w-full sm:w-[520px] px-4",
|
|
4269
|
-
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"
|
|
4270
4274
|
}
|
|
4271
4275
|
};
|
|
4272
|
-
const _hoisted_1$
|
|
4276
|
+
const _hoisted_1$b = { class: "flex items-center flex-wrap" };
|
|
4273
4277
|
const _hoisted_2$8 = {
|
|
4274
4278
|
key: 0,
|
|
4275
4279
|
class: "font-semibold mr-2"
|
|
@@ -4491,7 +4495,7 @@ const _sfc_main$j = defineComponent({
|
|
|
4491
4495
|
class: "mr-4 text-[color:var(--x-notification-icon)] dark:text-[color:var(--x-notification-dark-icon)]",
|
|
4492
4496
|
viewBox: "0 0 20 20"
|
|
4493
4497
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
4494
|
-
createElementVNode("div", _hoisted_1$
|
|
4498
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
4495
4499
|
notification.title ? (openBlock(), createElementBlock("span", _hoisted_2$8, toDisplayString(notification.title), 1)) : createCommentVNode("", true),
|
|
4496
4500
|
createElementVNode("span", null, toDisplayString(notification.message), 1)
|
|
4497
4501
|
]),
|
|
@@ -4605,7 +4609,7 @@ var theme$e = {
|
|
|
4605
4609
|
return css.get("bg", color[500]);
|
|
4606
4610
|
}
|
|
4607
4611
|
};
|
|
4608
|
-
const _hoisted_1$
|
|
4612
|
+
const _hoisted_1$a = { class: "mx-9 flex items-center" };
|
|
4609
4613
|
const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("span", { class: "text-gray-600 mr-2" }, "Page", -1);
|
|
4610
4614
|
const _hoisted_3$5 = { class: "text-gray-600 ml-2" };
|
|
4611
4615
|
const _hoisted_4$4 = ["onClick"];
|
|
@@ -4695,7 +4699,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4695
4699
|
disabled: __props.modelValue <= 1,
|
|
4696
4700
|
onClick: prevPage
|
|
4697
4701
|
}, null, 8, ["icon-left", "size", "disabled"]),
|
|
4698
|
-
createElementVNode("div", _hoisted_1$
|
|
4702
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
4699
4703
|
_hoisted_2$7,
|
|
4700
4704
|
createVNode(_sfc_main$n, {
|
|
4701
4705
|
modelValue: quickInput.value,
|
|
@@ -5205,7 +5209,7 @@ var style0 = {
|
|
|
5205
5209
|
radio_circle,
|
|
5206
5210
|
"radio--glow": "_radio--glow_132ux_1"
|
|
5207
5211
|
};
|
|
5208
|
-
const _hoisted_1$
|
|
5212
|
+
const _hoisted_1$9 = ["aria-selected", "aria-disabled"];
|
|
5209
5213
|
const _hoisted_2$6 = ["name", "required", "disabled"];
|
|
5210
5214
|
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("circle", {
|
|
5211
5215
|
cx: "10",
|
|
@@ -5315,7 +5319,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5315
5319
|
error: unref(errorInternal),
|
|
5316
5320
|
helper: __props.helper
|
|
5317
5321
|
}, null, 8, ["error", "helper"])
|
|
5318
|
-
], 46, _hoisted_1$
|
|
5322
|
+
], 46, _hoisted_1$9);
|
|
5319
5323
|
};
|
|
5320
5324
|
}
|
|
5321
5325
|
});
|
|
@@ -5353,7 +5357,7 @@ var theme$9 = {
|
|
|
5353
5357
|
});
|
|
5354
5358
|
}
|
|
5355
5359
|
};
|
|
5356
|
-
const _hoisted_1$
|
|
5360
|
+
const _hoisted_1$8 = {
|
|
5357
5361
|
key: 0,
|
|
5358
5362
|
class: "max-w-full truncate"
|
|
5359
5363
|
};
|
|
@@ -5400,7 +5404,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5400
5404
|
style: normalizeStyle(unref(styles))
|
|
5401
5405
|
}, {
|
|
5402
5406
|
default: withCtx(() => [
|
|
5403
|
-
__props.removable ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
5407
|
+
__props.removable ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
5404
5408
|
renderSlot(_ctx.$slots, "default"),
|
|
5405
5409
|
createVNode(_sfc_main$F, {
|
|
5406
5410
|
size: unref(closeIconSize),
|
|
@@ -5464,7 +5468,7 @@ var theme$8 = {
|
|
|
5464
5468
|
return css.get("border", color[500]);
|
|
5465
5469
|
}
|
|
5466
5470
|
};
|
|
5467
|
-
const _hoisted_1$
|
|
5471
|
+
const _hoisted_1$7 = ["textContent"];
|
|
5468
5472
|
const _hoisted_2$5 = { class: "relative" };
|
|
5469
5473
|
const _hoisted_3$3 = {
|
|
5470
5474
|
key: 0,
|
|
@@ -5690,7 +5694,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5690
5694
|
key: 0,
|
|
5691
5695
|
class: normalizeClass(unref(classes).label),
|
|
5692
5696
|
textContent: toDisplayString(__props.label)
|
|
5693
|
-
}, null, 10, _hoisted_1$
|
|
5697
|
+
}, null, 10, _hoisted_1$7)) : createCommentVNode("", true),
|
|
5694
5698
|
createElementVNode("div", _hoisted_2$5, [
|
|
5695
5699
|
createVNode(XPopover, {
|
|
5696
5700
|
ref_key: "popoverRef",
|
|
@@ -5767,7 +5771,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5767
5771
|
multiple: __props.multiple,
|
|
5768
5772
|
readonly: _ctx.readonly,
|
|
5769
5773
|
value: _ctx.modelValue
|
|
5770
|
-
}, toHandlers(unref(inputListeners))), [
|
|
5774
|
+
}, toHandlers(unref(inputListeners), true)), [
|
|
5771
5775
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
5772
5776
|
return openBlock(), createElementBlock("option", {
|
|
5773
5777
|
key: index,
|
|
@@ -5808,7 +5812,6 @@ var theme$7 = {
|
|
|
5808
5812
|
wrapper: "animate-pulse bg-gray-300 dark:bg-gray-600 rounded-md"
|
|
5809
5813
|
}
|
|
5810
5814
|
};
|
|
5811
|
-
const _hoisted_1$7 = /* @__PURE__ */ createTextVNode(" \u200B ");
|
|
5812
5815
|
const __default__$a = { name: "XSkeleton" };
|
|
5813
5816
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
5814
5817
|
...__default__$a,
|
|
@@ -5830,7 +5833,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5830
5833
|
])
|
|
5831
5834
|
}, {
|
|
5832
5835
|
default: withCtx(() => [
|
|
5833
|
-
|
|
5836
|
+
createTextVNode(" \u200B ")
|
|
5834
5837
|
]),
|
|
5835
5838
|
_: 1
|
|
5836
5839
|
}, 8, ["style", "class"]);
|
|
@@ -5962,7 +5965,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5962
5965
|
e.preventDefault();
|
|
5963
5966
|
e.stopPropagation();
|
|
5964
5967
|
}
|
|
5965
|
-
if (window) {
|
|
5968
|
+
if (typeof window !== "undefined") {
|
|
5966
5969
|
useEventListener(progressRef, "pointerdown", startProgressDrag, false);
|
|
5967
5970
|
useEventListener(dragRef, "pointerdown", startDrag, false);
|
|
5968
5971
|
useEventListener(window, "pointermove", moveDrag, true);
|
|
@@ -6824,12 +6827,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6824
6827
|
const props = __props;
|
|
6825
6828
|
const elRef = ref(null);
|
|
6826
6829
|
useResizeObserver(elRef, resize);
|
|
6827
|
-
|
|
6828
|
-
window
|
|
6829
|
-
});
|
|
6830
|
-
onBeforeUnmount(() => {
|
|
6831
|
-
window.removeEventListener("resize", resize);
|
|
6832
|
-
});
|
|
6830
|
+
if (typeof window !== "undefined")
|
|
6831
|
+
useEventListener(window, "resize", resize);
|
|
6833
6832
|
watch([() => props.modelValue, () => props.size], () => {
|
|
6834
6833
|
setTimeout(resize);
|
|
6835
6834
|
});
|
|
@@ -6896,7 +6895,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6896
6895
|
placeholder: __props.placeholder,
|
|
6897
6896
|
readonly: _ctx.readonly,
|
|
6898
6897
|
value: _ctx.modelValue ? String(_ctx.modelValue) : ""
|
|
6899
|
-
}, toHandlers(unref(inputListeners)), {
|
|
6898
|
+
}, toHandlers(unref(inputListeners), true), {
|
|
6900
6899
|
onKeydown: withKeys(onEnter, ["enter"]),
|
|
6901
6900
|
onInput
|
|
6902
6901
|
}), null, 16, _hoisted_2$1),
|
|
@@ -7170,5 +7169,5 @@ var install = create({
|
|
|
7170
7169
|
(key) => components[key]
|
|
7171
7170
|
)
|
|
7172
7171
|
});
|
|
7173
|
-
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(`.
|
|
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(`._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}._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)))}._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))}._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)}`);
|
|
7174
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 };
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.0.
|
|
1
|
+
declare const _default: "1.0.4";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indielayer/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "João Teixeira",
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"test:unit": "vitest --environment jsdom",
|
|
54
54
|
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
|
|
55
55
|
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
|
|
56
|
-
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
|
|
56
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
57
|
+
"prepublish": "pnpm build-prod"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"tailwindcss": "^3.0.0",
|
|
@@ -105,5 +106,6 @@
|
|
|
105
106
|
},
|
|
106
107
|
"publishConfig": {
|
|
107
108
|
"access": "public"
|
|
108
|
-
}
|
|
109
|
+
},
|
|
110
|
+
"gitHead": "d737c37e141c667de3677e886ba15eb4b82bcc35"
|
|
109
111
|
}
|
|
@@ -60,7 +60,7 @@ const { styles, classes, className } = useTheme('alert', theme, props)
|
|
|
60
60
|
|
|
61
61
|
<template v-if="removable">
|
|
62
62
|
<div class="flex-grow"></div>
|
|
63
|
-
<span class="flex items-center cursor-pointer shrink-0" @click="(e) => $emit('remove', e)">
|
|
63
|
+
<span class="flex items-center cursor-pointer shrink-0" @click="(e: Event) => $emit('remove', e)">
|
|
64
64
|
<slot name="removeIcon">
|
|
65
65
|
<x-icon :icon="closeIcon"/>
|
|
66
66
|
</slot>
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
classes: {
|
|
5
5
|
wrapper({ props, slots, data }: ThemeParams) {
|
|
6
6
|
/*tw*/
|
|
7
|
-
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']
|
|
7
|
+
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']
|
|
8
8
|
|
|
9
9
|
// radius
|
|
10
10
|
if (!data.isButtonGroup) classes.push(props.rounded ? 'rounded-full' : 'rounded-md')
|
|
@@ -46,7 +46,9 @@ const value = ref<boolean>(props.modelValue)
|
|
|
46
46
|
const backdropRef = ref<HTMLElement | null>(null)
|
|
47
47
|
const drawerRef = ref<HTMLElement | null>(null)
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
let deferShow = ref<boolean>(false)
|
|
50
|
+
|
|
51
|
+
if (typeof window !== 'undefined') deferShow = ref<boolean>(!!(props.teleportTo && (props.teleportTo instanceof HTMLElement || document.querySelector(props.teleportTo))))
|
|
50
52
|
|
|
51
53
|
const isTailwindBreakpoint = typeof props.breakpoint === 'string'
|
|
52
54
|
const breakpoints = useBreakpoints(isTailwindBreakpoint ? breakpointsTailwind : { md: props.breakpoint || 768 } as Breakpoints)
|
|
@@ -70,7 +72,7 @@ watch(() => props.modelValue, (val) => {
|
|
|
70
72
|
value.value = val
|
|
71
73
|
})
|
|
72
74
|
|
|
73
|
-
if (
|
|
75
|
+
if (typeof window !== 'undefined') useEventListener(document, 'keydown', onKeyDown)
|
|
74
76
|
|
|
75
77
|
function onKeyDown(event: KeyboardEvent) {
|
|
76
78
|
if (event.key === 'Escape' && value.value) close()
|