pangea-lib 2.11.697 → 2.11.698

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/main.es.js CHANGED
@@ -11755,29 +11755,28 @@ const kt = /* @__PURE__ */ e2(JB, [["__scopeId", "data-v-4dd06940"]]), eI = ["ty
11755
11755
  variant: {},
11756
11756
  size: { default: "m" },
11757
11757
  align: { default: "center" },
11758
- borderRadius: {},
11759
11758
  color: { default: "primary" },
11760
- height: { default: "auto" },
11761
- width: { default: "max-content" },
11759
+ heightAndWidth: {},
11760
+ rounded: { type: Boolean },
11762
11761
  disabled: { type: Boolean },
11763
11762
  isLoading: { type: Boolean },
11764
11763
  numberToDisplay: {}
11765
11764
  },
11766
11765
  setup(e) {
11767
- T3((v) => ({
11768
- "77dac0d8": n.value,
11769
- "6ec5fd42": v.height,
11770
- "8bd55b6a": v.width,
11771
- "0ce87f29": i.value,
11772
- "44f304a2": u.value,
11773
- "27ce3074": o.value,
11774
- "7cf54f0a": l.value,
11775
- "3db0bc26": f.value,
11776
- "51fb2186": h.value,
11777
- "6ed2219c": s.value,
11778
- "2bac9ecf": p.value,
11779
- "031b5283": d.value,
11780
- "7672b6d1": m.value
11766
+ T3((z) => ({
11767
+ a44b6e9e: n.value,
11768
+ d23d95b0: i.value,
11769
+ "460e6255": s.value,
11770
+ "3547cfa0": l.value,
11771
+ "9e2f8994": d.value,
11772
+ f62249c2: o.value,
11773
+ "8b6cf17c": u.value,
11774
+ ea5d7818: h.value,
11775
+ "4bfff996": m.value,
11776
+ "07a814f5": f.value,
11777
+ a2357b30: g.value,
11778
+ "7818dcdc": p.value,
11779
+ c1e4342c: v.value
11781
11780
  }));
11782
11781
  const a = e, { form: t, button: c } = v4(d2()), r = t1(() => a.variant || c.value.variant), n = t1(() => {
11783
11782
  if (a.size === "s")
@@ -11786,56 +11785,56 @@ const kt = /* @__PURE__ */ e2(JB, [["__scopeId", "data-v-4dd06940"]]), eI = ["ty
11786
11785
  return "1rem";
11787
11786
  if (a.size === "l")
11788
11787
  return "1.2rem";
11789
- }), i = t1(() => {
11788
+ }), i = t1(() => a.heightAndWidth || "auto"), s = t1(() => a.heightAndWidth || "max-content"), o = t1(() => a.rounded ? "100%" : t.value.input.borderRadius), l = t1(() => {
11790
11789
  if (a.size === "s")
11791
11790
  return "0.3rem";
11792
11791
  if (a.size === "m")
11793
11792
  return "0.4rem";
11794
11793
  if (a.size === "l")
11795
11794
  return "0.5rem";
11796
- }), s = t1(() => {
11795
+ }), f = t1(() => {
11797
11796
  if (a.align === "center")
11798
11797
  return "center";
11799
11798
  if (a.align === "left")
11800
11799
  return "flex-start";
11801
11800
  if (a.align === "right")
11802
11801
  return "flex-end";
11803
- }), o = t1(() => a.borderRadius || t.value.input.borderRadius), l = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "filled" ? `var(--pga-color-${a.color}-contrast)` : `var(--pga-color-${a.color})`), f = t1(() => a.color === "first" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color})` : `var(--pga-color-${a.color}-01)`), u = t1(() => a.color === "first" || r.value === "filled" || r.value === "flat" ? "none" : `var(--pga-color-${a.color})`), h = t1(() => a.color === "first" ? "var(--pga-color-first-01)" : r.value === "filled" ? `var(--pga-color-${a.color}-09)` : `var(--pga-color-${a.color}-02)`), d = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "filled" ? `var(--pga-color-${a.color})` : `var(--pga-color-${a.color}-contrast)`), m = t1(() => a.color === "first" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color}-contrast)` : `var(--pga-color-${a.color})`), p = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "flat" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color})` : "none");
11804
- return (v, g) => (I(), i1("button", {
11805
- class: q1(["button", { button__disabled: v.disabled, "button__is-loading": v.isLoading }]),
11806
- type: v.type,
11807
- disabled: v.disabled || v.isLoading
11802
+ }), u = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "filled" ? `var(--pga-color-${a.color}-contrast)` : `var(--pga-color-${a.color})`), h = t1(() => a.color === "first" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color})` : `var(--pga-color-${a.color}-01)`), d = t1(() => a.color === "first" || r.value === "filled" || r.value === "flat" ? "none" : `var(--pga-color-${a.color})`), m = t1(() => a.color === "first" ? "var(--pga-color-first-01)" : r.value === "filled" ? `var(--pga-color-${a.color}-09)` : `var(--pga-color-${a.color}-02)`), p = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "filled" ? `var(--pga-color-${a.color})` : `var(--pga-color-${a.color}-contrast)`), v = t1(() => a.color === "first" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color}-contrast)` : `var(--pga-color-${a.color})`), g = t1(() => a.color === "first" ? "var(--pga-color-first)" : r.value === "flat" ? "none" : r.value === "filled" ? `var(--pga-color-${a.color})` : "none");
11803
+ return (z, x) => (I(), i1("button", {
11804
+ class: q1(["button", { button__disabled: z.disabled, "button__is-loading": z.isLoading }]),
11805
+ type: z.type,
11806
+ disabled: z.disabled || z.isLoading
11808
11807
  }, [
11809
- v.isLoading ? (I(), L1(kt, {
11808
+ z.isLoading ? (I(), L1(kt, {
11810
11809
  key: 0,
11811
11810
  class: "button--spinner",
11812
- color: v.color
11811
+ color: z.color
11813
11812
  }, null, 8, ["color"])) : (I(), i1("div", aI, [
11814
- v.icon ? (I(), L1(Y3, {
11813
+ z.icon ? (I(), L1(Y3, {
11815
11814
  key: 0,
11816
- icon: v.icon
11815
+ icon: z.icon
11817
11816
  }, null, 8, ["icon"])) : p1("", !0),
11818
- v.text ? (I(), L1(a0, {
11817
+ z.text ? (I(), L1(a0, {
11819
11818
  key: 1,
11820
- text: v.text
11819
+ text: z.text
11821
11820
  }, null, 8, ["text"])) : p1("", !0),
11822
- !v.icon && !v.text ? P1(v.$slots, "default", { key: 2 }, void 0, !0) : p1("", !0)
11821
+ !z.icon && !z.text ? P1(z.$slots, "default", { key: 2 }, void 0, !0) : p1("", !0)
11823
11822
  ])),
11824
- v.numberToDisplay ? (I(), i1("div", {
11823
+ z.numberToDisplay ? (I(), i1("div", {
11825
11824
  key: 2,
11826
11825
  class: "button--number-to-display",
11827
- onClick: g[0] || (g[0] = V0(() => {
11826
+ onClick: x[0] || (x[0] = V0(() => {
11828
11827
  }, ["stop"]))
11829
11828
  }, [
11830
11829
  y1("span", {
11831
11830
  class: "number-to-display--number",
11832
- textContent: Z1(v.numberToDisplay)
11831
+ textContent: Z1(z.numberToDisplay)
11833
11832
  }, null, 8, tI)
11834
11833
  ])) : p1("", !0)
11835
11834
  ], 10, eI));
11836
11835
  }
11837
11836
  });
11838
- const w3 = /* @__PURE__ */ e2(cI, [["__scopeId", "data-v-8665868b"]]);
11837
+ const w3 = /* @__PURE__ */ e2(cI, [["__scopeId", "data-v-5344f4dd"]]);
11839
11838
  function Ng(e, a) {
11840
11839
  const t = (c) => {
11841
11840
  var n;
@@ -7,10 +7,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
7
7
  variant?: ButtonVariant;
8
8
  size?: ButtonSize;
9
9
  align?: Align;
10
- borderRadius?: string;
11
10
  color?: string;
12
- height?: string;
13
- width?: string;
11
+ heightAndWidth?: string;
12
+ rounded?: boolean;
14
13
  disabled?: boolean;
15
14
  isLoading?: boolean;
16
15
  numberToDisplay?: number;
@@ -19,8 +18,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
19
18
  size: string;
20
19
  align: string;
21
20
  color: string;
22
- height: string;
23
- width: string;
24
21
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
22
  type?: ButtonType;
26
23
  icon?: import('@fortawesome/fontawesome-common-types').IconName | Icon;
@@ -28,10 +25,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
28
25
  variant?: ButtonVariant;
29
26
  size?: ButtonSize;
30
27
  align?: Align;
31
- borderRadius?: string;
32
28
  color?: string;
33
- height?: string;
34
- width?: string;
29
+ heightAndWidth?: string;
30
+ rounded?: boolean;
35
31
  disabled?: boolean;
36
32
  isLoading?: boolean;
37
33
  numberToDisplay?: number;
@@ -40,15 +36,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
40
36
  size: string;
41
37
  align: string;
42
38
  color: string;
43
- height: string;
44
- width: string;
45
39
  }>>>, {
46
40
  color: string;
47
41
  type: ButtonType;
48
42
  size: ButtonSize;
49
- height: string;
50
43
  align: Align;
51
- width: string;
52
44
  }, {}>, {
53
45
  default?(_: {}): any;
54
46
  }>;
@@ -18,6 +18,9 @@ declare const _default: import('vue').DefineComponent<{
18
18
  type: import('vue').PropType<ImageSource>;
19
19
  default: string;
20
20
  };
21
+ rounded: {
22
+ type: import('vue').PropType<boolean>;
23
+ };
21
24
  width: {
22
25
  type: import('vue').PropType<Size>;
23
26
  };
@@ -34,9 +37,6 @@ declare const _default: import('vue').DefineComponent<{
34
37
  type: import('vue').PropType<"horizontal" | "vertical">;
35
38
  default: string;
36
39
  };
37
- rounded: {
38
- type: import('vue').PropType<boolean>;
39
- };
40
40
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
41
41
  modelValue: import('vue').PropType<string>;
42
42
  image: {
@@ -55,6 +55,9 @@ declare const _default: import('vue').DefineComponent<{
55
55
  type: import('vue').PropType<ImageSource>;
56
56
  default: string;
57
57
  };
58
+ rounded: {
59
+ type: import('vue').PropType<boolean>;
60
+ };
58
61
  width: {
59
62
  type: import('vue').PropType<Size>;
60
63
  };
@@ -71,9 +74,6 @@ declare const _default: import('vue').DefineComponent<{
71
74
  type: import('vue').PropType<"horizontal" | "vertical">;
72
75
  default: string;
73
76
  };
74
- rounded: {
75
- type: import('vue').PropType<boolean>;
76
- };
77
77
  }>>, {
78
78
  source: ImageSource;
79
79
  buttonsLayout: 'horizontal' | 'vertical';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.697",
4
+ "version": "2.11.698",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",