cisse-vue-ui 0.5.7 → 0.5.9
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/{PageLayout.vue_vue_type_script_setup_true_lang-D9VTLnEw.cjs → PageLayout.vue_vue_type_script_setup_true_lang-D22uNeS1.cjs} +2 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-D22uNeS1.cjs.map +1 -0
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-C9N2izJz.js → PageLayout.vue_vue_type_script_setup_true_lang-kT7np2ir.js} +2 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-kT7np2ir.js.map +1 -0
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-BDHQDmeC.js → Timeline.vue_vue_type_script_setup_true_lang-8PC6bUib.js} +43 -4
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-BDHQDmeC.js.map → Timeline.vue_vue_type_script_setup_true_lang-8PC6bUib.js.map} +1 -1
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-HsytOvLH.cjs → Timeline.vue_vue_type_script_setup_true_lang-C7rAWzZ9.cjs} +43 -4
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-HsytOvLH.cjs.map → Timeline.vue_vue_type_script_setup_true_lang-C7rAWzZ9.cjs.map} +1 -1
- package/dist/components/core/CollapsibleCard.vue.d.ts +17 -3
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/{index-DCNSL6ZO.js → index-BZoYEuhh.js} +3 -3
- package/dist/index-BZoYEuhh.js.map +1 -0
- package/dist/{index-aJPrjFuQ.cjs → index-Q3aj7JNL.cjs} +3 -3
- package/dist/index-Q3aj7JNL.cjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-C9N2izJz.js.map +0 -1
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-D9VTLnEw.cjs.map +0 -1
- package/dist/index-DCNSL6ZO.js.map +0 -1
- package/dist/index-aJPrjFuQ.cjs.map +0 -1
|
@@ -1353,16 +1353,55 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1353
1353
|
props: {
|
|
1354
1354
|
title: {},
|
|
1355
1355
|
description: {},
|
|
1356
|
-
defaultExpanded: { type: Boolean, default: true }
|
|
1356
|
+
defaultExpanded: { type: Boolean, default: true },
|
|
1357
|
+
cardClass: { default: "rounded-xl overflow-hidden border border-gray-200 dark:border-gray-700" },
|
|
1358
|
+
headerClass: { default: "w-full text-left" },
|
|
1359
|
+
contentClass: { default: "" }
|
|
1357
1360
|
},
|
|
1358
1361
|
setup(__props) {
|
|
1359
1362
|
const props = __props;
|
|
1363
|
+
const slots = vue.useSlots();
|
|
1360
1364
|
const isExpanded = vue.ref(props.defaultExpanded);
|
|
1361
1365
|
const toggle = () => {
|
|
1362
1366
|
isExpanded.value = !isExpanded.value;
|
|
1363
1367
|
};
|
|
1368
|
+
const hasCustomHeader = () => !!slots.header;
|
|
1364
1369
|
return (_ctx, _cache) => {
|
|
1365
|
-
return vue.openBlock(), vue.
|
|
1370
|
+
return hasCustomHeader() ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1371
|
+
key: 0,
|
|
1372
|
+
class: vue.normalizeClass(__props.cardClass)
|
|
1373
|
+
}, [
|
|
1374
|
+
vue.createElementVNode("button", {
|
|
1375
|
+
type: "button",
|
|
1376
|
+
class: vue.normalizeClass(__props.headerClass),
|
|
1377
|
+
onClick: toggle
|
|
1378
|
+
}, [
|
|
1379
|
+
vue.renderSlot(_ctx.$slots, "header", {
|
|
1380
|
+
expanded: isExpanded.value,
|
|
1381
|
+
toggle
|
|
1382
|
+
})
|
|
1383
|
+
], 2),
|
|
1384
|
+
vue.createVNode(vue.Transition, {
|
|
1385
|
+
"enter-active-class": "transition-all duration-200 ease-out",
|
|
1386
|
+
"enter-from-class": "opacity-0 max-h-0",
|
|
1387
|
+
"enter-to-class": "opacity-100 max-h-[2000px]",
|
|
1388
|
+
"leave-active-class": "transition-all duration-200 ease-in",
|
|
1389
|
+
"leave-from-class": "opacity-100 max-h-[2000px]",
|
|
1390
|
+
"leave-to-class": "opacity-0 max-h-0"
|
|
1391
|
+
}, {
|
|
1392
|
+
default: vue.withCtx(() => [
|
|
1393
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
|
1394
|
+
class: vue.normalizeClass(["overflow-hidden", __props.contentClass])
|
|
1395
|
+
}, [
|
|
1396
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
1397
|
+
], 2), [
|
|
1398
|
+
[vue.vShow, isExpanded.value]
|
|
1399
|
+
])
|
|
1400
|
+
]),
|
|
1401
|
+
_: 3
|
|
1402
|
+
})
|
|
1403
|
+
], 2)) : (vue.openBlock(), vue.createBlock(_sfc_main$i, {
|
|
1404
|
+
key: 1,
|
|
1366
1405
|
title: __props.title,
|
|
1367
1406
|
description: __props.description
|
|
1368
1407
|
}, {
|
|
@@ -1401,7 +1440,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1401
1440
|
})
|
|
1402
1441
|
]),
|
|
1403
1442
|
_: 3
|
|
1404
|
-
}, 8, ["title", "description"]);
|
|
1443
|
+
}, 8, ["title", "description"]));
|
|
1405
1444
|
};
|
|
1406
1445
|
}
|
|
1407
1446
|
});
|
|
@@ -2033,4 +2072,4 @@ exports._sfc_main$6 = _sfc_main$c;
|
|
|
2033
2072
|
exports._sfc_main$7 = _sfc_main$b;
|
|
2034
2073
|
exports._sfc_main$8 = _sfc_main$a;
|
|
2035
2074
|
exports._sfc_main$9 = _sfc_main$9;
|
|
2036
|
-
//# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-
|
|
2075
|
+
//# sourceMappingURL=Timeline.vue_vue_type_script_setup_true_lang-C7rAWzZ9.cjs.map
|