cisse-vue-ui 0.5.11 → 0.5.12

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.
@@ -1,55 +1,61 @@
1
- import { defineComponent, createElementBlock, openBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString, useSlots, computed, createVNode, Fragment, renderList, normalizeClass, createBlock, resolveDynamicComponent, withCtx, onMounted, nextTick, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, watch, shallowRef, toValue, watchEffect, unref, createSlots, ref, withDirectives, vModelText, withModifiers, Teleport, Transition, normalizeStyle, resolveComponent, mergeProps, provide, vShow, onUnmounted } from "vue";
1
+ import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, renderSlot, normalizeClass, createElementVNode, createTextVNode, toDisplayString, useSlots, createVNode, Fragment, renderList, createBlock, resolveDynamicComponent, withCtx, onMounted, nextTick, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, watch, shallowRef, toValue, watchEffect, unref, createSlots, ref, withDirectives, vModelText, withModifiers, Teleport, Transition, normalizeStyle, resolveComponent, mergeProps, provide, vShow, onUnmounted } from "vue";
2
2
  import { _ as _sfc_main$j } from "./Checkbox.vue_vue_type_script_setup_true_lang-B-nLCCNY.js";
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
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
- key: 0,
9
- class: "border-b border-gray-200 dark:border-gray-700"
10
- };
7
+ const _hoisted_2$9 = { class: "flex flex-col gap-0.5" };
11
8
  const _hoisted_3$7 = {
12
- key: 1,
13
- class: "flex items-center justify-between border-b border-gray-200 px-5 py-3 dark:border-gray-700"
14
- };
15
- const _hoisted_4$6 = { class: "flex flex-col gap-0.5" };
16
- const _hoisted_5$4 = {
17
- key: 0,
18
- class: "text-md font-semibold text-gray-800 dark:text-gray-200"
19
- };
20
- const _hoisted_6$4 = {
21
9
  key: 1,
22
10
  class: "text-sm font-normal text-gray-600 dark:text-gray-400"
23
11
  };
24
- const _hoisted_7$4 = { class: "flex gap-2" };
12
+ const _hoisted_4$6 = { class: "flex gap-2" };
25
13
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
26
14
  __name: "CardComponent",
27
15
  props: {
28
16
  title: {},
29
- description: {}
17
+ description: {},
18
+ titleClass: {},
19
+ dividerClass: {}
30
20
  },
31
21
  setup(__props) {
22
+ const props = __props;
23
+ const titleClasses = computed(
24
+ () => props.titleClass || "text-gray-800 dark:text-gray-200"
25
+ );
26
+ const dividerClasses = computed(
27
+ () => props.dividerClass || "border-gray-200 dark:border-gray-700"
28
+ );
32
29
  return (_ctx, _cache) => {
33
30
  return openBlock(), createElementBlock("div", _hoisted_1$c, [
34
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
31
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
32
+ key: 0,
33
+ class: normalizeClass(["border-b", dividerClasses.value])
34
+ }, [
35
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, [
36
+ ], 2)) : __props.title || __props.description || _ctx.$slots.title || _ctx.$slots.description || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", {
37
+ key: 1,
38
+ class: normalizeClass(["flex items-center justify-between border-b px-5 py-3", dividerClasses.value])
39
+ }, [
40
+ createElementVNode("div", _hoisted_2$9, [
41
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", {
42
+ key: 0,
43
+ class: normalizeClass(["text-md font-semibold", titleClasses.value])
44
+ }, [
39
45
  renderSlot(_ctx.$slots, "title", {}, () => [
40
46
  createTextVNode(toDisplayString(__props.title), 1)
41
47
  ])
42
- ])) : createCommentVNode("", true),
43
- __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
48
+ ], 2)) : createCommentVNode("", true),
49
+ __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_3$7, [
44
50
  renderSlot(_ctx.$slots, "description", {}, () => [
45
51
  createTextVNode(toDisplayString(__props.description), 1)
46
52
  ])
47
53
  ])) : createCommentVNode("", true)
48
54
  ]),
49
- createElementVNode("div", _hoisted_7$4, [
55
+ createElementVNode("div", _hoisted_4$6, [
50
56
  renderSlot(_ctx.$slots, "actions")
51
57
  ])
52
- ])) : createCommentVNode("", true),
58
+ ], 2)) : createCommentVNode("", true),
53
59
  renderSlot(_ctx.$slots, "default")
54
60
  ]);
55
61
  };
@@ -2077,4 +2083,4 @@ export {
2077
2083
  _sfc_main$1 as q,
2078
2084
  _sfc_main as r
2079
2085
  };
2080
- //# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-SaNCS3ie.js.map
2086
+ //# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-go_BS8Q4.js.map