@wikicasa-dev/components 2.0.5 → 2.0.7

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,6 +1,6 @@
1
- import { defineComponent as p, computed as t, openBlock as C, createBlock as u, resolveDynamicComponent as f, normalizeClass as a, withCtx as v, createElementVNode as r, renderSlot as d } from "vue";
2
- import { _ as y } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
- import './assets/BaseCard.css';const g = /* @__PURE__ */ p({
1
+ import { defineComponent as m, computed as o, openBlock as p, createBlock as C, resolveDynamicComponent as u, normalizeClass as a, withCtx as f, createElementVNode as d, renderSlot as r } from "vue";
2
+ import { _ as v } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import './assets/BaseCard.css';const y = /* @__PURE__ */ m({
4
4
  __name: "BaseCard",
5
5
  props: {
6
6
  type: { default: "" },
@@ -9,30 +9,30 @@ import './assets/BaseCard.css';const g = /* @__PURE__ */ p({
9
9
  cardBodyClasses: { default: "" }
10
10
  },
11
11
  emits: ["click"],
12
- setup(c, { emit: l }) {
13
- const n = l, s = c, i = t(
12
+ setup(s, { emit: c }) {
13
+ const l = c, n = o(
14
14
  () => s.type === "news" ? "news-card" : s.type
15
- ), m = t(() => s.type ? `${s.type}-img` : "");
16
- return (e, o) => (C(), u(f(e.rootComponent), {
17
- class: a(["card", [i.value]]),
18
- onClick: o[0] || (o[0] = (B) => n("click"))
15
+ ), i = o(() => s.type ? `${s.type}-img` : "");
16
+ return (e, t) => (p(), C(u(e.rootComponent), {
17
+ class: a(["card", [n.value]]),
18
+ onClick: t[0] || (t[0] = (g) => l("click"))
19
19
  }, {
20
- default: v(() => [
21
- r("div", {
22
- class: a(["card-img", [m.value, e.cardImgClasses]])
20
+ default: f(() => [
21
+ d("div", {
22
+ class: a(["card-img", [i.value, e.cardImgClasses]])
23
23
  }, [
24
- d(e.$slots, "card-image", {}, void 0, !0)
24
+ r(e.$slots, "card-image", {}, void 0, !0)
25
25
  ], 2),
26
- r("div", {
26
+ d("div", {
27
27
  class: a(["card-body", [e.cardBodyClasses]])
28
28
  }, [
29
- d(e.$slots, "card-description", {}, void 0, !0)
29
+ r(e.$slots, "card-description", {}, void 0, !0)
30
30
  ], 2)
31
31
  ]),
32
32
  _: 3
33
33
  }, 8, ["class"]));
34
34
  }
35
- }), I = /* @__PURE__ */ y(g, [["__scopeId", "data-v-c71d0a69"]]);
35
+ }), I = /* @__PURE__ */ v(y, [["__scopeId", "data-v-335ec407"]]);
36
36
  export {
37
37
  I as default
38
38
  };
@@ -23,12 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
23
23
  cardBodyClasses?: ClassType;
24
24
  }> & Readonly<{
25
25
  onClick?: (() => any) | undefined;
26
- }>, {
27
- type: CardTypes;
28
- rootComponent: CardRootTypes;
29
- cardImgClasses: ClassType;
30
- cardBodyClasses: ClassType;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
28
  export default _default;
34
29
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- .card[data-v-c71d0a69]{--card-height: 240px;position:relative;z-index:0;display:flex;max-width:930px;overflow:hidden;border-radius:20px;--tw-shadow: 0 0 8px #2222221F;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 576px){.card[data-v-c71d0a69]{height:var(--card-height)}}.card .card-body[data-v-c71d0a69]{width:100%;padding:10px 15px}.card .card-img[data-v-c71d0a69]{height:var(--card-height);width:100%;max-width:none}@media (min-width: 576px){.card .card-img[data-v-c71d0a69]{max-width:300px}}.card.vertical[data-v-c71d0a69]{flex-direction:column}@media not all and (min-width: 576px){.card.vertical[data-v-c71d0a69]{min-height:100px;min-width:335px}}@media (min-width: 576px){.card.vertical[data-v-c71d0a69]{height:-moz-fit-content;height:fit-content}}.card.vertical .card-img[data-v-c71d0a69]{width:100%;max-width:100%}@media not all and (min-width: 576px){.card.vertical .card-img[data-v-c71d0a69]{max-width:100%}}.card.mini[data-v-c71d0a69]{max-height:100px;max-width:370px}.card.mini .card-img[data-v-c71d0a69]{max-height:110px;max-width:120px}.card.news-card[data-v-c71d0a69]{height:100px}@media not all and (min-width: 576px){.card.news-card[data-v-c71d0a69]{width:320px}}@media (min-width: 576px){.card.news-card[data-v-c71d0a69]{height:270px;flex-direction:column}}@media not all and (min-width: 576px){.card.news-card .card-img[data-v-c71d0a69]{width:100px;height:100px}}@media (min-width: 576px){.card.news-card .card-img[data-v-c71d0a69]{height:150px;max-width:100%}}
1
+ .card[data-v-335ec407]{--card-max-height: none;--card-max-width: 930px;--card-height: auto;--card-width: auto;--card-border-radius-top-left: 20px;--card-border-radius-top-right: 20px;--card-border-radius-bottom-left: 20px;--card-border-radius-bottom-right: 20px;border-top-left-radius:var(--card-border-radius-top-left);border-top-right-radius:var(--card-border-radius-top-right);border-bottom-left-radius:var(--card-border-radius-bottom-left);border-bottom-right-radius:var(--card-border-radius-bottom-right);height:var(--card-height);width:var(--card-width);max-width:var(--card-max-width);max-height:var(--card-max-height);position:relative;z-index:0;display:flex;overflow:hidden;--tw-shadow: 0 0 8px #2222221F;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media screen and (min-width: 576px){.card[data-v-335ec407]{--card-img-max-width: 300px;--card-height: 240px }}.card .card-body[data-v-335ec407]{--card-body-width: 100%;box-sizing:border-box;width:var(--card-body-width);padding:10px 15px}.card .card-img[data-v-335ec407]{--card-img-height: var(--card-height);--card-img-width: 100%;--card-img-max-height: none;--card-img-max-width: none;height:var(--card-img-height);width:var(--card-img-width);max-width:var(--card-img-max-width);max-height:var(--card-img-max-height)}@media screen and (min-width: 576px){.card .card-img[data-v-335ec407]{--card-img-max-width: 300px }}.card.vertical[data-v-335ec407]{flex-direction:column}@media not all and (min-width: 576px){.card.vertical[data-v-335ec407]{min-height:100px;min-width:335px}}@media screen and (min-width: 576px){.card.vertical[data-v-335ec407]{--card-height: fit-content }}.card.vertical .card-img[data-v-335ec407]{--card-img-width: 100%;--card-img-max-width: 100%}.card.mini[data-v-335ec407]{--card-max-height: 100px;--card-max-width: 370px}.card.mini .card-img[data-v-335ec407]{--card-img-max-height: 110px;--card-img-max-width: 120px}@media (min-width: 576px){.card.news-card[data-v-335ec407]{flex-direction:column}}.card.news-card[data-v-335ec407]{--card-height: 270px}@media screen and (max-width: 576px){.card.news-card[data-v-335ec407]{--card-height: 100px;--card-width: 320px }.card.news-card .card-img[data-v-335ec407]{--card-height: 100px;--card-img-max-width: 100px }}@media screen and (min-width: 576px){.card.news-card .card-img[data-v-335ec407]{--card-height: 150px;--card-img-max-width: 100% }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",