@wikicasa-dev/components 1.2.43 → 1.2.44

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/BaseCard.js CHANGED
@@ -1,34 +1,4 @@
1
- import './assets/BaseCard.css';
2
- import { defineComponent as m, computed as r, openBlock as u, createElementBlock as f, normalizeClass as t, createElementVNode as o, renderSlot as c } from "vue";
3
- import { _ as v } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
4
- const y = /* @__PURE__ */ m({
5
- inheritAttrs: !1,
6
- __name: "BaseCard",
7
- props: {
8
- type: { default: "" }
9
- },
10
- emits: ["click"],
11
- setup(d, { emit: l }) {
12
- const i = l, s = d, n = r(
13
- () => s.type === "news" ? "news-card" : s.type
14
- ), p = r(() => s.type ? `${s.type}-img` : "");
15
- return (e, a) => (u(), f("div", {
16
- class: t(["card", [n.value, e.$attrs.class]]),
17
- onClick: a[0] || (a[0] = (C) => i("click"))
18
- }, [
19
- o("div", {
20
- class: t(["card-img", [p.value, e.$attrs["card-img-classes"]]])
21
- }, [
22
- c(e.$slots, "card-image", {}, void 0, !0)
23
- ], 2),
24
- o("div", {
25
- class: t(["card-body", [e.$attrs["card-body-classes"]]])
26
- }, [
27
- c(e.$slots, "card-description", {}, void 0, !0)
28
- ], 2)
29
- ], 2));
30
- }
31
- }), k = /* @__PURE__ */ v(y, [["__scopeId", "data-v-ee64f70b"]]);
1
+ import { _ as f } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
32
2
  export {
33
- k as default
3
+ f as default
34
4
  };
@@ -1,17 +1,22 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  type?: "" | "vertical" | "map-card" | "news" | undefined;
3
+ rootComponent: "article" | "div";
3
4
  }>, {
4
5
  type: string;
6
+ rootComponent: string;
5
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
8
  click: () => void;
7
9
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
10
  type?: "" | "vertical" | "map-card" | "news" | undefined;
11
+ rootComponent: "article" | "div";
9
12
  }>, {
10
13
  type: string;
14
+ rootComponent: string;
11
15
  }>>> & {
12
16
  onClick?: (() => any) | undefined;
13
17
  }, {
14
18
  type: "" | "vertical" | "map-card" | "news";
19
+ rootComponent: "article" | "div";
15
20
  }, {}>, {
16
21
  "card-image"?(_: {}): any;
17
22
  "card-description"?(_: {}): any;
@@ -1 +1 @@
1
- .card[data-v-ee64f70b]{position:relative;z-index:0;display:flex;max-width:930px;overflow:hidden;border-radius:20px;border-width:1px}@media (min-width: 576px){.card[data-v-ee64f70b]{height:230px}}.card .card-body[data-v-ee64f70b]{width:100%;padding:10px 15px}.card .card-img[data-v-ee64f70b]{height:200px;width:100%;max-width:none}@media (min-width: 576px){.card .card-img[data-v-ee64f70b]{height:100%;max-width:300px}}.card.vertical[data-v-ee64f70b]{height:350px;flex-direction:column}@media not all and (min-width: 576px){.card.vertical[data-v-ee64f70b]{min-height:100px;min-width:335px}}.card.vertical .card-img[data-v-ee64f70b]{height:200px;min-height:100px;width:100%;max-width:100%}@media not all and (min-width: 576px){.card.vertical .card-img[data-v-ee64f70b]{max-width:100%}}.map-card[data-v-ee64f70b]{max-height:100px;max-width:370px}.map-card-img[data-v-ee64f70b]{max-height:110px;max-width:120px}.card.news-card[data-v-ee64f70b]{flex-direction:row}@media not all and (min-width: 576px){.card.news-card[data-v-ee64f70b]{width:320px}}@media (min-width: 576px){.card.news-card[data-v-ee64f70b]{flex-direction:column}}
1
+ .card{position:relative;z-index:0;display:flex;max-width:930px;overflow:hidden;border-radius:20px;border-width:1px}@media (min-width: 576px){.card{height:230px}}.card .card-body{width:100%;padding:10px 15px}.card .card-img{height:200px;width:100%;max-width:none}@media (min-width: 576px){.card .card-img{height:100%;max-width:300px}}.card.vertical{height:350px;flex-direction:column}@media not all and (min-width: 576px){.card.vertical{min-height:100px;min-width:335px}}.card.vertical .card-img{height:200px;min-height:100px;width:100%;max-width:100%}@media not all and (min-width: 576px){.card.vertical .card-img{max-width:100%}}.map-card{max-height:100px;max-width:370px}.map-card-img{max-height:110px;max-width:120px}.card.news-card{flex-direction:row}@media not all and (min-width: 576px){.card.news-card{width:320px}}@media (min-width: 576px){.card.news-card{flex-direction:column}}
@@ -0,0 +1,37 @@
1
+ import '../assets/BaseCard.css';
2
+ import { defineComponent as p, computed as o, openBlock as C, createBlock as u, resolveDynamicComponent as y, normalizeClass as t, withCtx as f, createElementVNode as r, renderSlot as n } from "vue";
3
+ const g = /* @__PURE__ */ p({
4
+ inheritAttrs: !1,
5
+ __name: "BaseCard",
6
+ props: {
7
+ type: { default: "" },
8
+ rootComponent: { default: "div" }
9
+ },
10
+ emits: ["click"],
11
+ setup(c, { emit: l }) {
12
+ const d = l, s = c, i = o(
13
+ () => s.type === "news" ? "news-card" : s.type
14
+ ), m = o(() => s.type ? `${s.type}-img` : "");
15
+ return (e, a) => (C(), u(y(e.rootComponent), {
16
+ class: t(["card", [i.value, e.$attrs.class]]),
17
+ onClick: a[0] || (a[0] = (v) => d("click"))
18
+ }, {
19
+ default: f(() => [
20
+ r("div", {
21
+ class: t(["card-img", [m.value, e.$attrs["card-img-classes"]]])
22
+ }, [
23
+ n(e.$slots, "card-image")
24
+ ], 2),
25
+ r("div", {
26
+ class: t(["card-body", [e.$attrs["card-body-classes"]]])
27
+ }, [
28
+ n(e.$slots, "card-description")
29
+ ], 2)
30
+ ]),
31
+ _: 3
32
+ }, 8, ["class"]));
33
+ }
34
+ });
35
+ export {
36
+ g as _
37
+ };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true
4
4
  import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.N7oILwdv.js";
5
5
  import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.B6RfqbZ9.js";
6
6
  import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.BOLdDTLM.js";
7
- import { default as B } from "./CheckboxBtn.js";
7
+ import { default as d } from "./CheckboxBtn.js";
8
8
  import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C5jcwwv6.js";
9
9
  import { default as i } from "./RadioButton.js";
10
10
  import { default as b } from "./RadioGroup.js";
@@ -13,7 +13,7 @@ import { _ as C } from "./chunks/BaseAlert.vue_vue_type_script_setup_true_lang.H
13
13
  import { _ as S } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.DkNApxB4.js";
14
14
  import { _ as h } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
15
15
  import { _ as w } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BrJbAMJ8.js";
16
- import { default as F } from "./BaseCard.js";
16
+ import { _ as F } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
17
17
  import { default as O } from "./BaseComplexToggle.js";
18
18
  import { _ as R } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.D9uxpIpT.js";
19
19
  import { default as N } from "./BaseFloatingLabel.js";
@@ -31,7 +31,7 @@ import { default as te } from "./BaseUploadFile.js";
31
31
  import { _ as fe } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
32
32
  import { _ as me } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
33
33
  import { _ as le } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.BHI3p0bd.js";
34
- import { useValidator as Be } from "./useValidator.js";
34
+ import { useValidator as de } from "./useValidator.js";
35
35
  export {
36
36
  A as AccessibleSelect,
37
37
  a as BaseAccordion,
@@ -57,7 +57,7 @@ export {
57
57
  ee as BaseToggle,
58
58
  ae as BaseTooltip,
59
59
  te as BaseUploadFile,
60
- B as CheckboxBtn,
60
+ d as CheckboxBtn,
61
61
  n as CheckboxGroup,
62
62
  fe as IntersectionObservable,
63
63
  me as IntersectionObserver,
@@ -65,5 +65,5 @@ export {
65
65
  b as RadioGroup,
66
66
  l as SelectItem,
67
67
  le as SwiperCarousel,
68
- Be as useValidator
68
+ de as useValidator
69
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",