cisse-vue-ui 0.5.9 → 0.5.11

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.
@@ -3,21 +3,25 @@ import { _ as _sfc_main$j } from "./Checkbox.vue_vue_type_script_setup_true_lang
3
3
  import { e as _sfc_main$k, d as _sfc_main$l, c as _sfc_main$m, b as _sfc_main$n, a as _sfc_main$o } from "./BadgeType.vue_vue_type_script_setup_true_lang-CnB5eNEM.js";
4
4
  import { Icon } from "@iconify/vue";
5
5
  import { u as useDropdown } from "./useDropdown-iVu14E6s.js";
6
- const _hoisted_1$d = { class: "flex flex-col overflow-hidden rounded-lg bg-white shadow-md dark:bg-slate-950" };
7
- const _hoisted_2$a = {
6
+ const _hoisted_1$c = { class: "flex flex-col overflow-hidden rounded-lg bg-white shadow-md dark:bg-slate-950" };
7
+ const _hoisted_2$9 = {
8
8
  key: 0,
9
+ class: "border-b border-gray-200 dark:border-gray-700"
10
+ };
11
+ const _hoisted_3$7 = {
12
+ key: 1,
9
13
  class: "flex items-center justify-between border-b border-gray-200 px-5 py-3 dark:border-gray-700"
10
14
  };
11
- const _hoisted_3$7 = { class: "flex flex-col gap-0.5" };
12
- const _hoisted_4$6 = {
15
+ const _hoisted_4$6 = { class: "flex flex-col gap-0.5" };
16
+ const _hoisted_5$4 = {
13
17
  key: 0,
14
18
  class: "text-md font-semibold text-gray-800 dark:text-gray-200"
15
19
  };
16
- const _hoisted_5$4 = {
20
+ const _hoisted_6$4 = {
17
21
  key: 1,
18
22
  class: "text-sm font-normal text-gray-600 dark:text-gray-400"
19
23
  };
20
- const _hoisted_6$4 = { class: "flex gap-2" };
24
+ const _hoisted_7$4 = { class: "flex gap-2" };
21
25
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
22
26
  __name: "CardComponent",
23
27
  props: {
@@ -26,21 +30,23 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
26
30
  },
27
31
  setup(__props) {
28
32
  return (_ctx, _cache) => {
29
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
30
- __props.title || __props.description || _ctx.$slots.title || _ctx.$slots.description || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
31
- createElementVNode("div", _hoisted_3$7, [
32
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_4$6, [
33
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
34
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
35
+ renderSlot(_ctx.$slots, "header")
36
+ ])) : __props.title || __props.description || _ctx.$slots.title || _ctx.$slots.description || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
37
+ createElementVNode("div", _hoisted_4$6, [
38
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_5$4, [
33
39
  renderSlot(_ctx.$slots, "title", {}, () => [
34
40
  createTextVNode(toDisplayString(__props.title), 1)
35
41
  ])
36
42
  ])) : createCommentVNode("", true),
37
- __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5$4, [
43
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
38
44
  renderSlot(_ctx.$slots, "description", {}, () => [
39
45
  createTextVNode(toDisplayString(__props.description), 1)
40
46
  ])
41
47
  ])) : createCommentVNode("", true)
42
48
  ]),
43
- createElementVNode("div", _hoisted_6$4, [
49
+ createElementVNode("div", _hoisted_7$4, [
44
50
  renderSlot(_ctx.$slots, "actions")
45
51
  ])
46
52
  ])) : createCommentVNode("", true),
@@ -49,8 +55,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
49
55
  };
50
56
  }
51
57
  });
52
- const _hoisted_1$c = { class: "overflow-hidden" };
53
- const _hoisted_2$9 = { class: "overflow-x-auto" };
58
+ const _hoisted_1$b = { class: "overflow-hidden" };
59
+ const _hoisted_2$8 = { class: "overflow-x-auto" };
54
60
  const _hoisted_3$6 = { class: "w-full divide-y divide-black/10 text-left dark:divide-white/10" };
55
61
  const _hoisted_4$5 = { class: "bg-black/5 text-sm font-semibold text-gray-600 uppercase dark:bg-white/5 dark:text-gray-400" };
56
62
  const _hoisted_5$3 = {
@@ -160,8 +166,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
160
166
  };
161
167
  const hasActionSlot = computed(() => !!slots.action);
162
168
  return (_ctx, _cache) => {
163
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
164
- createElementVNode("div", _hoisted_2$9, [
169
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
170
+ createElementVNode("div", _hoisted_2$8, [
165
171
  createElementVNode("table", _hoisted_3$6, [
166
172
  createElementVNode("thead", _hoisted_4$5, [
167
173
  createElementVNode("tr", null, [
@@ -235,8 +241,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
235
241
  };
236
242
  }
237
243
  });
238
- const _hoisted_1$b = { class: "space-y-3" };
239
- const _hoisted_2$8 = { class: "flex items-center gap-3 p-3" };
244
+ const _hoisted_1$a = { class: "space-y-3" };
245
+ const _hoisted_2$7 = { class: "flex items-center gap-3 p-3" };
240
246
  const _hoisted_3$5 = { class: "text-sm text-gray-600 dark:text-gray-400" };
241
247
  const _hoisted_4$4 = {
242
248
  key: 0,
@@ -301,10 +307,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
301
307
  };
302
308
  const hasEmptySlot = computed(() => !!slots.empty);
303
309
  return (_ctx, _cache) => {
304
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
310
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
305
311
  __props.selectable && selectableItems.value.length > 0 ? (openBlock(), createBlock(_sfc_main$i, { key: 0 }, {
306
312
  default: withCtx(() => [
307
- createElementVNode("div", _hoisted_2$8, [
313
+ createElementVNode("div", _hoisted_2$7, [
308
314
  createVNode(_sfc_main$j, {
309
315
  "model-value": allSelected.value,
310
316
  indeterminate: someSelected.value,
@@ -678,11 +684,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
678
684
  };
679
685
  }
680
686
  });
681
- const _hoisted_1$a = {
687
+ const _hoisted_1$9 = {
682
688
  key: 0,
683
689
  class: "mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300"
684
690
  };
685
- const _hoisted_2$7 = { class: "relative" };
691
+ const _hoisted_2$6 = { class: "relative" };
686
692
  const _hoisted_3$4 = ["disabled", "placeholder"];
687
693
  const _hoisted_4$3 = ["disabled"];
688
694
  const _hoisted_5$1 = {
@@ -798,8 +804,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
798
804
  ref: containerRef,
799
805
  class: "autocomplete-container"
800
806
  }, [
801
- __props.label ? (openBlock(), createElementBlock("label", _hoisted_1$a, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
802
- createElementVNode("div", _hoisted_2$7, [
807
+ __props.label ? (openBlock(), createElementBlock("label", _hoisted_1$9, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
808
+ createElementVNode("div", _hoisted_2$6, [
803
809
  createElementVNode("div", {
804
810
  ref_key: "inputWrapperRef",
805
811
  ref: inputWrapperRef,
@@ -1067,8 +1073,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1067
1073
  };
1068
1074
  }
1069
1075
  });
1070
- const _hoisted_1$9 = { class: "relative inline-block" };
1071
- const _hoisted_2$6 = ["src", "alt"];
1076
+ const _hoisted_1$8 = { class: "relative inline-block" };
1077
+ const _hoisted_2$5 = ["src", "alt"];
1072
1078
  const _hoisted_3$3 = { key: 1 };
1073
1079
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
1074
1080
  __name: "Avatar",
@@ -1116,7 +1122,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1116
1122
  });
1117
1123
  const showImage = computed(() => props.src && !imageError.value);
1118
1124
  return (_ctx, _cache) => {
1119
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
1125
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
1120
1126
  createElementVNode("div", {
1121
1127
  class: normalizeClass([
1122
1128
  "flex items-center justify-center overflow-hidden bg-gray-200 font-medium text-gray-600 dark:bg-gray-700 dark:text-gray-300",
@@ -1130,7 +1136,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1130
1136
  alt: __props.alt || __props.name,
1131
1137
  class: "size-full object-cover",
1132
1138
  onError: _cache[0] || (_cache[0] = ($event) => imageError.value = true)
1133
- }, null, 40, _hoisted_2$6)) : initials.value ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(initials.value), 1)) : (openBlock(), createBlock(unref(Icon), {
1139
+ }, null, 40, _hoisted_2$5)) : initials.value ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(initials.value), 1)) : (openBlock(), createBlock(unref(Icon), {
1134
1140
  key: 2,
1135
1141
  icon: "lucide:user",
1136
1142
  class: "size-1/2"
@@ -1148,8 +1154,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1148
1154
  };
1149
1155
  }
1150
1156
  });
1151
- const _hoisted_1$8 = ["aria-selected", "disabled", "onClick"];
1152
- const _hoisted_2$5 = { class: "mt-4" };
1157
+ const _hoisted_1$7 = ["aria-selected", "disabled", "onClick"];
1158
+ const _hoisted_2$4 = { class: "mt-4" };
1153
1159
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
1154
1160
  __name: "Tabs",
1155
1161
  props: {
@@ -1215,17 +1221,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1215
1221
  activeTab.value === tab.key ? variantClasses[__props.variant].active : variantClasses[__props.variant].inactive
1216
1222
  ]),
1217
1223
  onClick: ($event) => selectTab(tab)
1218
- }, toDisplayString(tab.label), 11, _hoisted_1$8);
1224
+ }, toDisplayString(tab.label), 11, _hoisted_1$7);
1219
1225
  }), 128))
1220
1226
  ], 2),
1221
- createElementVNode("div", _hoisted_2$5, [
1227
+ createElementVNode("div", _hoisted_2$4, [
1222
1228
  renderSlot(_ctx.$slots, "default", { activeTab: activeTab.value })
1223
1229
  ])
1224
1230
  ]);
1225
1231
  };
1226
1232
  }
1227
1233
  });
1228
- const _hoisted_1$7 = { role: "tabpanel" };
1234
+ const _hoisted_1$6 = { role: "tabpanel" };
1229
1235
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1230
1236
  __name: "TabPanel",
1231
1237
  props: {
@@ -1236,7 +1242,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1236
1242
  const activeTab = inject("activeTab");
1237
1243
  const isActive = computed(() => (activeTab == null ? void 0 : activeTab.value) === props.value);
1238
1244
  return (_ctx, _cache) => {
1239
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$7, [
1245
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$6, [
1240
1246
  renderSlot(_ctx.$slots, "default")
1241
1247
  ], 512)), [
1242
1248
  [vShow, isActive.value]
@@ -1244,7 +1250,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1244
1250
  };
1245
1251
  }
1246
1252
  });
1247
- const _hoisted_1$6 = {
1253
+ const _hoisted_1$5 = {
1248
1254
  key: 2,
1249
1255
  class: "text-sm font-semibold"
1250
1256
  };
@@ -1317,7 +1323,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1317
1323
  key: 1,
1318
1324
  icon: step.icon,
1319
1325
  class: "size-6"
1320
- }, null, 8, ["icon"])) : (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(index + 1), 1))
1326
+ }, null, 8, ["icon"])) : (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(index + 1), 1))
1321
1327
  ], 2),
1322
1328
  createElementVNode("div", {
1323
1329
  class: normalizeClass([
@@ -1345,15 +1351,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1345
1351
  };
1346
1352
  }
1347
1353
  });
1348
- const _hoisted_1$5 = { class: "overflow-hidden" };
1349
- const _hoisted_2$4 = { class: "space-y-4 p-6" };
1350
1354
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1351
1355
  __name: "CollapsibleCard",
1352
1356
  props: {
1353
1357
  title: {},
1354
1358
  description: {},
1355
1359
  defaultExpanded: { type: Boolean, default: true },
1356
- cardClass: { default: "rounded-xl overflow-hidden border border-gray-200 dark:border-gray-700" },
1357
1360
  headerClass: { default: "w-full text-left" },
1358
1361
  contentClass: { default: "" }
1359
1362
  },
@@ -1366,57 +1369,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1366
1369
  };
1367
1370
  const hasCustomHeader = () => !!slots.header;
1368
1371
  return (_ctx, _cache) => {
1369
- return hasCustomHeader() ? (openBlock(), createElementBlock("div", {
1370
- key: 0,
1371
- class: normalizeClass(__props.cardClass)
1372
- }, [
1373
- createElementVNode("button", {
1374
- type: "button",
1375
- class: normalizeClass(__props.headerClass),
1376
- onClick: toggle
1377
- }, [
1378
- renderSlot(_ctx.$slots, "header", {
1379
- expanded: isExpanded.value,
1380
- toggle
1381
- })
1382
- ], 2),
1383
- createVNode(Transition, {
1384
- "enter-active-class": "transition-all duration-200 ease-out",
1385
- "enter-from-class": "opacity-0 max-h-0",
1386
- "enter-to-class": "opacity-100 max-h-[2000px]",
1387
- "leave-active-class": "transition-all duration-200 ease-in",
1388
- "leave-from-class": "opacity-100 max-h-[2000px]",
1389
- "leave-to-class": "opacity-0 max-h-0"
1390
- }, {
1391
- default: withCtx(() => [
1392
- withDirectives(createElementVNode("div", {
1393
- class: normalizeClass(["overflow-hidden", __props.contentClass])
1394
- }, [
1395
- renderSlot(_ctx.$slots, "default")
1396
- ], 2), [
1397
- [vShow, isExpanded.value]
1398
- ])
1399
- ]),
1400
- _: 3
1401
- })
1402
- ], 2)) : (openBlock(), createBlock(_sfc_main$i, {
1403
- key: 1,
1404
- title: __props.title,
1405
- description: __props.description
1406
- }, {
1407
- actions: withCtx(() => [
1408
- renderSlot(_ctx.$slots, "actions"),
1409
- createElementVNode("button", {
1410
- type: "button",
1411
- class: "rounded-lg p-1.5 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800",
1412
- onClick: toggle
1413
- }, [
1414
- createVNode(unref(Icon), {
1415
- icon: isExpanded.value ? "lucide:chevron-up" : "lucide:chevron-down",
1416
- class: "size-5"
1417
- }, null, 8, ["icon"])
1418
- ])
1419
- ]),
1372
+ return openBlock(), createBlock(_sfc_main$i, null, createSlots({
1420
1373
  default: withCtx(() => [
1421
1374
  createVNode(Transition, {
1422
1375
  "enter-active-class": "transition-all duration-200 ease-out",
@@ -1427,19 +1380,70 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1427
1380
  "leave-to-class": "opacity-0 max-h-0"
1428
1381
  }, {
1429
1382
  default: withCtx(() => [
1430
- withDirectives(createElementVNode("div", _hoisted_1$5, [
1431
- createElementVNode("div", _hoisted_2$4, [
1383
+ withDirectives(createElementVNode("div", {
1384
+ class: normalizeClass(["overflow-hidden", __props.contentClass])
1385
+ }, [
1386
+ createElementVNode("div", {
1387
+ class: normalizeClass(hasCustomHeader() ? "" : "space-y-4 p-6")
1388
+ }, [
1432
1389
  renderSlot(_ctx.$slots, "default")
1433
- ])
1434
- ], 512), [
1390
+ ], 2)
1391
+ ], 2), [
1435
1392
  [vShow, isExpanded.value]
1436
1393
  ])
1437
1394
  ]),
1438
1395
  _: 3
1439
1396
  })
1440
1397
  ]),
1441
- _: 3
1442
- }, 8, ["title", "description"]));
1398
+ _: 2
1399
+ }, [
1400
+ hasCustomHeader() ? {
1401
+ name: "header",
1402
+ fn: withCtx(() => [
1403
+ createElementVNode("button", {
1404
+ type: "button",
1405
+ class: normalizeClass(__props.headerClass),
1406
+ onClick: toggle
1407
+ }, [
1408
+ renderSlot(_ctx.$slots, "header", {
1409
+ expanded: isExpanded.value,
1410
+ toggle
1411
+ })
1412
+ ], 2)
1413
+ ]),
1414
+ key: "0"
1415
+ } : __props.title || __props.description ? {
1416
+ name: "title",
1417
+ fn: withCtx(() => [
1418
+ createTextVNode(toDisplayString(__props.title), 1)
1419
+ ]),
1420
+ key: "1"
1421
+ } : void 0,
1422
+ !hasCustomHeader() && __props.description ? {
1423
+ name: "description",
1424
+ fn: withCtx(() => [
1425
+ createTextVNode(toDisplayString(__props.description), 1)
1426
+ ]),
1427
+ key: "2"
1428
+ } : void 0,
1429
+ !hasCustomHeader() ? {
1430
+ name: "actions",
1431
+ fn: withCtx(() => [
1432
+ renderSlot(_ctx.$slots, "actions"),
1433
+ createElementVNode("button", {
1434
+ type: "button",
1435
+ class: "rounded-lg p-1.5 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800",
1436
+ onClick: toggle
1437
+ }, [
1438
+ createVNode(unref(Icon), {
1439
+ icon: isExpanded.value ? "lucide:chevron-up" : "lucide:chevron-down",
1440
+ class: "size-5"
1441
+ }, null, 8, ["icon"])
1442
+ ])
1443
+ ]),
1444
+ key: "3"
1445
+ } : void 0
1446
+ ]), 1024);
1443
1447
  };
1444
1448
  }
1445
1449
  });
@@ -2073,4 +2077,4 @@ export {
2073
2077
  _sfc_main$1 as q,
2074
2078
  _sfc_main as r
2075
2079
  };
2076
- //# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-8PC6bUib.js.map
2080
+ //# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-SaNCS3ie.js.map