cisse-vue-ui 0.5.13 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-CKegnrbY.js → ListSkeleton.vue_vue_type_script_setup_true_lang-Bech-H58.js} +224 -87
- package/dist/ListSkeleton.vue_vue_type_script_setup_true_lang-Bech-H58.js.map +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DR8HFQ2G.cjs → ListSkeleton.vue_vue_type_script_setup_true_lang-CHoagJ0-.cjs} +224 -87
- package/dist/ListSkeleton.vue_vue_type_script_setup_true_lang-CHoagJ0-.cjs.map +1 -0
- package/dist/components/feedback/CardSkeleton.vue.d.ts +14 -0
- package/dist/components/feedback/ListSkeleton.vue.d.ts +17 -0
- package/dist/components/feedback/TableSkeleton.vue.d.ts +14 -0
- package/dist/components/feedback/index.cjs +15 -12
- package/dist/components/feedback/index.cjs.map +1 -1
- package/dist/components/feedback/index.d.ts +3 -0
- package/dist/components/feedback/index.js +4 -1
- package/dist/components/index.cjs +15 -12
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +4 -1
- package/dist/index-BFry5KjP.js +71 -0
- package/dist/index-BFry5KjP.js.map +1 -0
- package/dist/{index-Bukmrxby.cjs → index-CgX0zCi8.cjs} +16 -13
- package/dist/index-CgX0zCi8.cjs.map +1 -0
- package/dist/index.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CKegnrbY.js.map +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DR8HFQ2G.cjs.map +0 -1
- package/dist/index-Bukmrxby.cjs.map +0 -1
- package/dist/index-ZYdOzN9D.js +0 -68
- package/dist/index-ZYdOzN9D.js.map +0 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const vue$1 = require("@iconify/vue");
|
|
4
4
|
const _pluginVue_exportHelper = require("./_plugin-vue_export-helper-DM9IkUGy.cjs");
|
|
5
|
-
const _hoisted_1$
|
|
6
|
-
const _hoisted_2$
|
|
7
|
-
const _hoisted_3$
|
|
5
|
+
const _hoisted_1$c = { class: "flex items-center justify-center py-12" };
|
|
6
|
+
const _hoisted_2$a = { class: "text-center" };
|
|
7
|
+
const _hoisted_3$9 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "mt-4 text-gray-600 dark:text-gray-400"
|
|
10
10
|
};
|
|
11
|
-
const _sfc_main$
|
|
11
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
12
12
|
__name: "LoadingSpinner",
|
|
13
13
|
props: {
|
|
14
14
|
text: {},
|
|
@@ -21,29 +21,29 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
lg: "h-16 w-16"
|
|
22
22
|
};
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
25
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
24
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
25
|
+
vue.createElementVNode("div", _hoisted_2$a, [
|
|
26
26
|
vue.createElementVNode("div", {
|
|
27
27
|
class: vue.normalizeClass([sizeClasses[__props.size], "border-primary inline-block animate-spin rounded-full border-4 border-solid border-r-transparent"])
|
|
28
28
|
}, null, 2),
|
|
29
|
-
__props.text ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$
|
|
29
|
+
__props.text ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$9, vue.toDisplayString(__props.text), 1)) : vue.createCommentVNode("", true)
|
|
30
30
|
])
|
|
31
31
|
]);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
const _hoisted_1$
|
|
35
|
+
const _hoisted_1$b = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "flex items-center justify-between border-b border-gray-200 px-6 py-4 dark:border-gray-700"
|
|
38
38
|
};
|
|
39
|
-
const _hoisted_2$
|
|
40
|
-
const _hoisted_3$
|
|
41
|
-
const _hoisted_4$
|
|
39
|
+
const _hoisted_2$9 = { class: "text-xl font-semibold text-gray-900 dark:text-gray-100" };
|
|
40
|
+
const _hoisted_3$8 = { class: "sr-only" };
|
|
41
|
+
const _hoisted_4$6 = { class: "flex-1 overflow-y-auto px-6 py-4" };
|
|
42
42
|
const _hoisted_5$1 = {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "flex items-center justify-end gap-3 border-t border-gray-200 px-6 py-4 dark:border-gray-700"
|
|
45
45
|
};
|
|
46
|
-
const _sfc_main$
|
|
46
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
47
47
|
__name: "Modal",
|
|
48
48
|
props: {
|
|
49
49
|
title: { default: "" },
|
|
@@ -88,8 +88,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
88
88
|
vue.createElementVNode("div", {
|
|
89
89
|
class: vue.normalizeClass([sizeClasses[__props.size], "flex max-h-[90vh] w-full flex-col rounded-lg bg-white shadow-xl dark:bg-gray-900"])
|
|
90
90
|
}, [
|
|
91
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
92
|
-
vue.createElementVNode("h3", _hoisted_2$
|
|
91
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
92
|
+
vue.createElementVNode("h3", _hoisted_2$9, [
|
|
93
93
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
94
94
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
95
95
|
vue.createTextVNode(vue.toDisplayString(__props.title), 1)
|
|
@@ -105,10 +105,10 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
105
105
|
class: "h-5 w-5",
|
|
106
106
|
icon: "lucide:x"
|
|
107
107
|
}),
|
|
108
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
108
|
+
vue.createElementVNode("span", _hoisted_3$8, vue.toDisplayString(__props.closeButtonLabel), 1)
|
|
109
109
|
])
|
|
110
110
|
])) : vue.createCommentVNode("", true),
|
|
111
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
111
|
+
vue.createElementVNode("div", _hoisted_4$6, [
|
|
112
112
|
vue.renderSlot(_ctx.$slots, "default")
|
|
113
113
|
]),
|
|
114
114
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
|
|
@@ -119,13 +119,13 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
const _hoisted_1$
|
|
122
|
+
const _hoisted_1$a = {
|
|
123
123
|
key: 0,
|
|
124
124
|
class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 border-t border-gray-200 px-4 sm:px-6 py-4 dark:border-gray-700"
|
|
125
125
|
};
|
|
126
|
-
const _hoisted_2$
|
|
127
|
-
const _hoisted_3$
|
|
128
|
-
const _hoisted_4$
|
|
126
|
+
const _hoisted_2$8 = { class: "flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-4" };
|
|
127
|
+
const _hoisted_3$7 = { class: "text-sm text-gray-700 dark:text-gray-300 text-center sm:text-left" };
|
|
128
|
+
const _hoisted_4$5 = {
|
|
129
129
|
key: 0,
|
|
130
130
|
class: "flex items-center justify-center sm:justify-start gap-2"
|
|
131
131
|
};
|
|
@@ -140,7 +140,7 @@ const _hoisted_9 = ["disabled"];
|
|
|
140
140
|
const _hoisted_10 = { class: "hidden sm:inline" };
|
|
141
141
|
const _hoisted_11 = ["disabled"];
|
|
142
142
|
const _hoisted_12 = { class: "hidden sm:inline" };
|
|
143
|
-
const _sfc_main$
|
|
143
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
144
144
|
__name: "PaginationControls",
|
|
145
145
|
props: {
|
|
146
146
|
currentPage: {},
|
|
@@ -168,10 +168,10 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
168
168
|
emit("update:pageSize", Number(target.value));
|
|
169
169
|
};
|
|
170
170
|
return (_ctx, _cache) => {
|
|
171
|
-
return __props.totalPages > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
172
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
173
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
174
|
-
__props.showPageSize ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
171
|
+
return __props.totalPages > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
172
|
+
vue.createElementVNode("div", _hoisted_2$8, [
|
|
173
|
+
vue.createElementVNode("div", _hoisted_3$7, vue.toDisplayString(__props.pageLabel) + " " + vue.toDisplayString(__props.currentPage) + " " + vue.toDisplayString(__props.ofLabel) + " " + vue.toDisplayString(__props.totalPages), 1),
|
|
174
|
+
__props.showPageSize ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, [
|
|
175
175
|
vue.createElementVNode("label", _hoisted_5, vue.toDisplayString(__props.itemsPerPageLabel), 1),
|
|
176
176
|
vue.createElementVNode("select", {
|
|
177
177
|
id: "page-size",
|
|
@@ -216,17 +216,17 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
const _hoisted_1$
|
|
220
|
-
const _hoisted_2$
|
|
221
|
-
const _hoisted_3$
|
|
219
|
+
const _hoisted_1$9 = { class: "flex max-w-md items-start space-x-3 rounded-lg border border-gray-200 bg-white p-4 shadow-lg dark:border-gray-800 dark:bg-black" };
|
|
220
|
+
const _hoisted_2$7 = { class: "flex min-w-0 flex-1 flex-col" };
|
|
221
|
+
const _hoisted_3$6 = {
|
|
222
222
|
key: 0,
|
|
223
223
|
class: "text-sm font-semibold text-gray-900 dark:text-gray-100"
|
|
224
224
|
};
|
|
225
|
-
const _hoisted_4$
|
|
225
|
+
const _hoisted_4$4 = {
|
|
226
226
|
key: 1,
|
|
227
227
|
class: "mt-1 text-sm text-gray-600 dark:text-gray-400"
|
|
228
228
|
};
|
|
229
|
-
const _sfc_main$
|
|
229
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
230
230
|
__name: "NotificationComponent",
|
|
231
231
|
props: {
|
|
232
232
|
notification: {},
|
|
@@ -293,7 +293,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
return (_ctx, _cache) => {
|
|
296
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
296
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
297
297
|
vue.createElementVNode("div", {
|
|
298
298
|
class: vue.normalizeClass([bgColor.value, "flex items-center justify-center rounded-full p-2"])
|
|
299
299
|
}, [
|
|
@@ -302,9 +302,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
302
302
|
icon: iconName.value
|
|
303
303
|
}, null, 8, ["class", "icon"])
|
|
304
304
|
], 2),
|
|
305
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
306
|
-
__props.notification.title ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_3$
|
|
307
|
-
__props.notification.message ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$
|
|
305
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
306
|
+
__props.notification.title ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_3$6, vue.toDisplayString(__props.notification.title), 1)) : vue.createCommentVNode("", true),
|
|
307
|
+
__props.notification.message ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$4, vue.toDisplayString(__props.notification.message), 1)) : vue.createCommentVNode("", true)
|
|
308
308
|
]),
|
|
309
309
|
vue.createElementVNode("button", {
|
|
310
310
|
class: "shrink-0 text-gray-400 transition-colors hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",
|
|
@@ -319,8 +319,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
|
-
const _hoisted_1$
|
|
323
|
-
const _sfc_main$
|
|
322
|
+
const _hoisted_1$8 = { class: "fixed top-5 right-5 z-50 flex flex-col gap-3" };
|
|
323
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
324
324
|
__name: "NotificationList",
|
|
325
325
|
props: {
|
|
326
326
|
notifications: {},
|
|
@@ -331,9 +331,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
331
331
|
setup(__props, { emit: __emit }) {
|
|
332
332
|
const emit = __emit;
|
|
333
333
|
return (_ctx, _cache) => {
|
|
334
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
334
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
335
335
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.notifications, (notification) => {
|
|
336
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
336
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$a, {
|
|
337
337
|
key: notification.id,
|
|
338
338
|
notification,
|
|
339
339
|
"auto-dismiss": __props.autoDismiss,
|
|
@@ -345,13 +345,13 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
const _hoisted_1$
|
|
349
|
-
const _hoisted_2$
|
|
348
|
+
const _hoisted_1$7 = { class: "flex-1" };
|
|
349
|
+
const _hoisted_2$6 = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "mb-1 font-medium text-gray-900 dark:text-white"
|
|
352
352
|
};
|
|
353
|
-
const _hoisted_3$
|
|
354
|
-
const _sfc_main$
|
|
353
|
+
const _hoisted_3$5 = { class: "text-sm text-gray-700 dark:text-gray-300" };
|
|
354
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
355
355
|
__name: "Alert",
|
|
356
356
|
props: {
|
|
357
357
|
variant: { default: "info" },
|
|
@@ -403,9 +403,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
403
403
|
icon: __props.icon || vue.unref(styles).icon,
|
|
404
404
|
class: vue.normalizeClass(["size-5 shrink-0", vue.unref(styles).iconColor])
|
|
405
405
|
}, null, 8, ["icon", "class"]),
|
|
406
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
407
|
-
__props.title ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_2$
|
|
408
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
406
|
+
vue.createElementVNode("div", _hoisted_1$7, [
|
|
407
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_2$6, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
|
|
408
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
409
409
|
vue.renderSlot(_ctx.$slots, "default")
|
|
410
410
|
])
|
|
411
411
|
]),
|
|
@@ -424,17 +424,17 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
const _hoisted_1$
|
|
428
|
-
const _hoisted_2$
|
|
427
|
+
const _hoisted_1$6 = { class: "py-12 text-center" };
|
|
428
|
+
const _hoisted_2$5 = {
|
|
429
429
|
key: 1,
|
|
430
430
|
class: "mb-2 text-lg font-medium text-gray-900 dark:text-white"
|
|
431
431
|
};
|
|
432
|
-
const _hoisted_3$
|
|
433
|
-
const _hoisted_4$
|
|
432
|
+
const _hoisted_3$4 = { class: "text-gray-500 dark:text-gray-400" };
|
|
433
|
+
const _hoisted_4$3 = {
|
|
434
434
|
key: 2,
|
|
435
435
|
class: "mt-4"
|
|
436
436
|
};
|
|
437
|
-
const _sfc_main$
|
|
437
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
438
438
|
__name: "EmptyState",
|
|
439
439
|
props: {
|
|
440
440
|
message: { default: "No results found" },
|
|
@@ -443,32 +443,32 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
443
443
|
},
|
|
444
444
|
setup(__props) {
|
|
445
445
|
return (_ctx, _cache) => {
|
|
446
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
446
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
447
447
|
__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(vue$1.Icon), {
|
|
448
448
|
key: 0,
|
|
449
449
|
icon: __props.icon,
|
|
450
450
|
class: "mx-auto mb-4 size-12 text-gray-400 dark:text-gray-500"
|
|
451
451
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
452
|
-
__props.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$
|
|
453
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
452
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$5, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
|
|
453
|
+
vue.createElementVNode("p", _hoisted_3$4, [
|
|
454
454
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
455
455
|
vue.createTextVNode(vue.toDisplayString(__props.message), 1)
|
|
456
456
|
])
|
|
457
457
|
]),
|
|
458
|
-
_ctx.$slots.action ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
458
|
+
_ctx.$slots.action ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
|
|
459
459
|
vue.renderSlot(_ctx.$slots, "action")
|
|
460
460
|
])) : vue.createCommentVNode("", true)
|
|
461
461
|
]);
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
|
-
const _hoisted_1$
|
|
466
|
-
const _hoisted_2$
|
|
465
|
+
const _hoisted_1$5 = { class: "flex-1 min-w-0" };
|
|
466
|
+
const _hoisted_2$4 = {
|
|
467
467
|
key: 0,
|
|
468
468
|
class: "font-medium text-gray-900 dark:text-white"
|
|
469
469
|
};
|
|
470
|
-
const _hoisted_3$
|
|
471
|
-
const _sfc_main$
|
|
470
|
+
const _hoisted_3$3 = { class: "text-sm text-gray-700 dark:text-gray-300" };
|
|
471
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
472
472
|
__name: "Toast",
|
|
473
473
|
props: {
|
|
474
474
|
message: {},
|
|
@@ -521,9 +521,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
521
521
|
icon: vue.unref(config).icon,
|
|
522
522
|
class: vue.normalizeClass(["size-5 shrink-0", vue.unref(config).iconColor])
|
|
523
523
|
}, null, 8, ["icon", "class"]),
|
|
524
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
525
|
-
__props.title ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$
|
|
526
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
524
|
+
vue.createElementVNode("div", _hoisted_1$5, [
|
|
525
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$4, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
|
|
526
|
+
vue.createElementVNode("p", _hoisted_3$3, vue.toDisplayString(__props.message), 1)
|
|
527
527
|
]),
|
|
528
528
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
529
529
|
key: 0,
|
|
@@ -540,7 +540,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
|
-
const _sfc_main$
|
|
543
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
544
544
|
__name: "ToastContainer",
|
|
545
545
|
props: {
|
|
546
546
|
toasts: {},
|
|
@@ -583,7 +583,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
583
583
|
}, {
|
|
584
584
|
default: vue.withCtx(() => [
|
|
585
585
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.toasts, (toast) => {
|
|
586
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
586
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$6, {
|
|
587
587
|
key: toast.id,
|
|
588
588
|
message: toast.message,
|
|
589
589
|
type: toast.type,
|
|
@@ -600,14 +600,14 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
|
-
const _hoisted_1$
|
|
604
|
-
const _hoisted_2 = {
|
|
603
|
+
const _hoisted_1$4 = { class: "w-full" };
|
|
604
|
+
const _hoisted_2$3 = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "mb-1 flex justify-between text-sm"
|
|
607
607
|
};
|
|
608
|
-
const _hoisted_3 = { class: "font-medium text-gray-900 dark:text-white" };
|
|
609
|
-
const _hoisted_4 = ["aria-valuenow", "aria-valuemax"];
|
|
610
|
-
const _sfc_main$
|
|
608
|
+
const _hoisted_3$2 = { class: "font-medium text-gray-900 dark:text-white" };
|
|
609
|
+
const _hoisted_4$2 = ["aria-valuenow", "aria-valuemax"];
|
|
610
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
611
611
|
__name: "Progress",
|
|
612
612
|
props: {
|
|
613
613
|
value: {},
|
|
@@ -637,10 +637,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
637
637
|
error: "bg-red-500"
|
|
638
638
|
};
|
|
639
639
|
return (_ctx, _cache) => {
|
|
640
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
641
|
-
__props.showLabel && !__props.indeterminate ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
640
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
641
|
+
__props.showLabel && !__props.indeterminate ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
642
642
|
_cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "text-gray-600 dark:text-gray-400" }, "Progress", -1)),
|
|
643
|
-
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(Math.round(percentage.value)) + "%", 1)
|
|
643
|
+
vue.createElementVNode("span", _hoisted_3$2, vue.toDisplayString(Math.round(percentage.value)) + "%", 1)
|
|
644
644
|
])) : vue.createCommentVNode("", true),
|
|
645
645
|
vue.createElementVNode("div", {
|
|
646
646
|
class: vue.normalizeClass([
|
|
@@ -662,17 +662,17 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
662
662
|
]),
|
|
663
663
|
style: vue.normalizeStyle({ width: __props.indeterminate ? "30%" : `${percentage.value}%` })
|
|
664
664
|
}, null, 6)
|
|
665
|
-
], 10, _hoisted_4)
|
|
665
|
+
], 10, _hoisted_4$2)
|
|
666
666
|
]);
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
|
-
const Progress = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$
|
|
671
|
-
const _hoisted_1 = {
|
|
670
|
+
const Progress = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$4, [["__scopeId", "data-v-7ff636cf"]]);
|
|
671
|
+
const _hoisted_1$3 = {
|
|
672
672
|
key: 0,
|
|
673
673
|
class: "space-y-2"
|
|
674
674
|
};
|
|
675
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
675
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
676
676
|
__name: "Skeleton",
|
|
677
677
|
props: {
|
|
678
678
|
variant: { default: "text" },
|
|
@@ -689,7 +689,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
689
689
|
rounded: "rounded-lg"
|
|
690
690
|
};
|
|
691
691
|
return (_ctx, _cache) => {
|
|
692
|
-
return __props.variant === "text" && __props.lines > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
692
|
+
return __props.variant === "text" && __props.lines > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
693
693
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.lines, (i) => {
|
|
694
694
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
695
695
|
key: i,
|
|
@@ -719,15 +719,152 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
|
+
const _hoisted_1$2 = { class: "w-full" };
|
|
723
|
+
const _hoisted_2$2 = {
|
|
724
|
+
key: 0,
|
|
725
|
+
class: "flex gap-4 px-4 py-3 border-b border-gray-200 dark:border-gray-700"
|
|
726
|
+
};
|
|
727
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
728
|
+
__name: "TableSkeleton",
|
|
729
|
+
props: {
|
|
730
|
+
rows: { default: 5 },
|
|
731
|
+
columns: { default: 4 },
|
|
732
|
+
showHeader: { type: Boolean, default: true }
|
|
733
|
+
},
|
|
734
|
+
setup(__props) {
|
|
735
|
+
return (_ctx, _cache) => {
|
|
736
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
737
|
+
__props.showHeader ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [
|
|
738
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, (col) => {
|
|
739
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
740
|
+
key: `header-${col}`,
|
|
741
|
+
class: "flex-1 h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",
|
|
742
|
+
style: vue.normalizeStyle({ maxWidth: col === 1 ? "30%" : "20%" })
|
|
743
|
+
}, null, 4);
|
|
744
|
+
}), 128))
|
|
745
|
+
])) : vue.createCommentVNode("", true),
|
|
746
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.rows, (row) => {
|
|
747
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
748
|
+
key: `row-${row}`,
|
|
749
|
+
class: "flex items-center gap-4 px-4 py-4 border-b border-gray-100 dark:border-gray-800"
|
|
750
|
+
}, [
|
|
751
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, (col) => {
|
|
752
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
753
|
+
key: `cell-${row}-${col}`,
|
|
754
|
+
class: "flex-1 h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",
|
|
755
|
+
style: vue.normalizeStyle({
|
|
756
|
+
maxWidth: col === 1 ? "40%" : col === __props.columns ? "15%" : "25%",
|
|
757
|
+
opacity: 1 - row * 0.1
|
|
758
|
+
})
|
|
759
|
+
}, null, 4);
|
|
760
|
+
}), 128))
|
|
761
|
+
]);
|
|
762
|
+
}), 128))
|
|
763
|
+
]);
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
const _hoisted_1$1 = { class: "bg-white dark:bg-gray-900 rounded-lg shadow-md p-4 space-y-4" };
|
|
768
|
+
const _hoisted_2$1 = {
|
|
769
|
+
key: 0,
|
|
770
|
+
class: "flex items-center gap-3"
|
|
771
|
+
};
|
|
772
|
+
const _hoisted_3$1 = { class: "space-y-2" };
|
|
773
|
+
const _hoisted_4$1 = {
|
|
774
|
+
key: 1,
|
|
775
|
+
class: "flex justify-end gap-2 pt-2"
|
|
776
|
+
};
|
|
777
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
778
|
+
__name: "CardSkeleton",
|
|
779
|
+
props: {
|
|
780
|
+
showAvatar: { type: Boolean, default: false },
|
|
781
|
+
lines: { default: 3 },
|
|
782
|
+
showActions: { type: Boolean, default: false }
|
|
783
|
+
},
|
|
784
|
+
setup(__props) {
|
|
785
|
+
return (_ctx, _cache) => {
|
|
786
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
787
|
+
__props.showAvatar ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [..._cache[0] || (_cache[0] = [
|
|
788
|
+
vue.createElementVNode("div", { class: "w-10 h-10 rounded-full bg-gray-200 dark:bg-gray-700 animate-pulse" }, null, -1),
|
|
789
|
+
vue.createElementVNode("div", { class: "flex-1 space-y-2" }, [
|
|
790
|
+
vue.createElementVNode("div", { class: "h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-1/2" }),
|
|
791
|
+
vue.createElementVNode("div", { class: "h-3 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-1/3" })
|
|
792
|
+
], -1)
|
|
793
|
+
])])) : vue.createCommentVNode("", true),
|
|
794
|
+
vue.createElementVNode("div", _hoisted_3$1, [
|
|
795
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.lines, (line) => {
|
|
796
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
797
|
+
key: line,
|
|
798
|
+
class: "h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",
|
|
799
|
+
style: vue.normalizeStyle({ width: line === __props.lines ? "60%" : "100%" })
|
|
800
|
+
}, null, 4);
|
|
801
|
+
}), 128))
|
|
802
|
+
]),
|
|
803
|
+
__props.showActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [..._cache[1] || (_cache[1] = [
|
|
804
|
+
vue.createElementVNode("div", { class: "h-8 w-20 bg-gray-200 dark:bg-gray-700 rounded animate-pulse" }, null, -1),
|
|
805
|
+
vue.createElementVNode("div", { class: "h-8 w-20 bg-gray-200 dark:bg-gray-700 rounded animate-pulse" }, null, -1)
|
|
806
|
+
])])) : vue.createCommentVNode("", true)
|
|
807
|
+
]);
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
const _hoisted_1 = { class: "divide-y divide-gray-200 dark:divide-gray-700" };
|
|
812
|
+
const _hoisted_2 = {
|
|
813
|
+
key: 0,
|
|
814
|
+
class: "flex-shrink-0 w-10 h-10 rounded-full bg-gray-200 dark:bg-gray-700 animate-pulse"
|
|
815
|
+
};
|
|
816
|
+
const _hoisted_3 = { class: "flex-1 min-w-0 space-y-2" };
|
|
817
|
+
const _hoisted_4 = {
|
|
818
|
+
key: 1,
|
|
819
|
+
class: "flex-shrink-0 w-8 h-8 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"
|
|
820
|
+
};
|
|
821
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
822
|
+
__name: "ListSkeleton",
|
|
823
|
+
props: {
|
|
824
|
+
items: { default: 5 },
|
|
825
|
+
showAvatar: { type: Boolean, default: true },
|
|
826
|
+
showSecondary: { type: Boolean, default: true },
|
|
827
|
+
showAction: { type: Boolean, default: false }
|
|
828
|
+
},
|
|
829
|
+
setup(__props) {
|
|
830
|
+
return (_ctx, _cache) => {
|
|
831
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
832
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item) => {
|
|
833
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
834
|
+
key: item,
|
|
835
|
+
class: "flex items-center gap-4 py-4 px-4"
|
|
836
|
+
}, [
|
|
837
|
+
__props.showAvatar ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2)) : vue.createCommentVNode("", true),
|
|
838
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
839
|
+
vue.createElementVNode("div", {
|
|
840
|
+
class: "h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",
|
|
841
|
+
style: vue.normalizeStyle({ width: `${60 + Math.random() * 30}%` })
|
|
842
|
+
}, null, 4),
|
|
843
|
+
__props.showSecondary ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
844
|
+
key: 0,
|
|
845
|
+
class: "h-3 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",
|
|
846
|
+
style: vue.normalizeStyle({ width: `${40 + Math.random() * 20}%` })
|
|
847
|
+
}, null, 4)) : vue.createCommentVNode("", true)
|
|
848
|
+
]),
|
|
849
|
+
__props.showAction ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true)
|
|
850
|
+
]);
|
|
851
|
+
}), 128))
|
|
852
|
+
]);
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
});
|
|
722
856
|
exports.Progress = Progress;
|
|
723
|
-
exports._sfc_main = _sfc_main$
|
|
724
|
-
exports._sfc_main$1 = _sfc_main$
|
|
725
|
-
exports._sfc_main$
|
|
726
|
-
exports._sfc_main$
|
|
727
|
-
exports._sfc_main$
|
|
728
|
-
exports._sfc_main$
|
|
729
|
-
exports._sfc_main$
|
|
730
|
-
exports._sfc_main$
|
|
731
|
-
exports._sfc_main$
|
|
732
|
-
exports._sfc_main$
|
|
733
|
-
|
|
857
|
+
exports._sfc_main = _sfc_main$d;
|
|
858
|
+
exports._sfc_main$1 = _sfc_main$c;
|
|
859
|
+
exports._sfc_main$10 = _sfc_main$2;
|
|
860
|
+
exports._sfc_main$11 = _sfc_main$1;
|
|
861
|
+
exports._sfc_main$12 = _sfc_main;
|
|
862
|
+
exports._sfc_main$2 = _sfc_main$b;
|
|
863
|
+
exports._sfc_main$3 = _sfc_main$a;
|
|
864
|
+
exports._sfc_main$4 = _sfc_main$9;
|
|
865
|
+
exports._sfc_main$5 = _sfc_main$8;
|
|
866
|
+
exports._sfc_main$6 = _sfc_main$7;
|
|
867
|
+
exports._sfc_main$7 = _sfc_main$6;
|
|
868
|
+
exports._sfc_main$8 = _sfc_main$5;
|
|
869
|
+
exports._sfc_main$9 = _sfc_main$3;
|
|
870
|
+
//# sourceMappingURL=ListSkeleton.vue_vue_type_script_setup_true_lang-CHoagJ0-.cjs.map
|