@frollo/frollo-web-ui 0.0.1

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/esm/fw-card.js ADDED
@@ -0,0 +1,46 @@
1
+ import { defineComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from 'vue';
2
+
3
+ var script = defineComponent({
4
+ name: 'FwCard',
5
+ props: {
6
+ /**
7
+ * The header title of the card
8
+ */
9
+ title: {
10
+ type: String
11
+ },
12
+
13
+ /**
14
+ * Title prefix with primary color
15
+ */
16
+ prefixTitle: {
17
+ type: String
18
+ }
19
+ }
20
+ });
21
+
22
+ var _hoisted_1 = {
23
+ "class": "fw-card shadow rounded-lg"
24
+ };
25
+ var _hoisted_2 = {
26
+ key: 0,
27
+ "class": "fw-card--header text-lg px-8 py-4 font-bold bg-grey-lightest rounded-t-lg border-opacity-0"
28
+ };
29
+ var _hoisted_3 = {
30
+ key: 0,
31
+ "class": "fw-card--prefix-title text-primary"
32
+ };
33
+ var _hoisted_4 = {
34
+ key: 1
35
+ };
36
+ var _hoisted_5 = {
37
+ key: 1,
38
+ "class": "p-8"
39
+ };
40
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
41
+ return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_2, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)]);
42
+ }
43
+
44
+ script.render = render;
45
+
46
+ export { script as FwCard };