pangea-lib 2.4.1 → 2.6.0

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
@@ -990,15 +990,15 @@ const Cn = {
990
990
  firstLight: "#000000",
991
991
  secondLight: "#585858",
992
992
  thirdLight: "#9B9B9B",
993
- firstLightBackground: "#ffffff",
994
- secondLightBackground: "#efefef",
995
- thirdLightBackground: "#dddddd",
993
+ firstBackgroundLight: "#ffffff",
994
+ secondBackgroundLight: "#efefef",
995
+ thirdBackgroundLight: "#dddddd",
996
996
  firstDark: "#ffffff",
997
997
  secondDark: "#d7d7d7",
998
998
  thirdDark: "#afafaf",
999
- firstDarkBackground: "#1a1a1a",
1000
- secondDarkBackground: "#242424",
1001
- thirdDarkBackground: "#5e5e5e",
999
+ firstBackgroundDark: "#1a1a1a",
1000
+ secondBackgroundDark: "#242424",
1001
+ thirdBackgroundDark: "#5e5e5e",
1002
1002
  primary: "#218c5a",
1003
1003
  secondary: "#218c5a",
1004
1004
  success: "#95cd41",
@@ -1014,7 +1014,7 @@ const Cn = {
1014
1014
  link: "#0064ff",
1015
1015
  error: "#e11515"
1016
1016
  }, fz = {
1017
- colors: { ...Cn }
1017
+ colors: Cn
1018
1018
  };
1019
1019
  function I4(e, c) {
1020
1020
  let a = 0, t = 0, n = 0, r = 0;
@@ -1031,13 +1031,13 @@ function I4(e, c) {
1031
1031
  return `rgba(${a}, ${t}, ${n}, ${r * c})`;
1032
1032
  }
1033
1033
  const v4 = Mn("pga-colors", () => {
1034
- const e = f1({ ...Cn });
1034
+ const e = f1(Cn);
1035
1035
  h3(
1036
1036
  e,
1037
1037
  (t) => {
1038
1038
  const n = document.querySelector(":root");
1039
1039
  for (const r in t) {
1040
- const i = `--pga${r.charAt(0).toUpperCase()}${r.slice(1)}Color`, s = t[r];
1040
+ const i = `--pgaColor${r.charAt(0).toUpperCase()}${r.slice(1)}`, s = t[r];
1041
1041
  n.style.setProperty(i, s);
1042
1042
  }
1043
1043
  },
@@ -1058,8 +1058,8 @@ const uz = { class: "badge" }, hz = /* @__PURE__ */ q1({
1058
1058
  },
1059
1059
  setup(e) {
1060
1060
  n8((n) => ({
1061
- "048df174": a.value,
1062
- "3c738ef8": t.value
1061
+ "25ecb09b": a.value,
1062
+ "6ad7520d": t.value
1063
1063
  }));
1064
1064
  const c = e, a = J(() => v4().colors[c.color]), t = J(() => I4(v4().colors[c.color], 0.05));
1065
1065
  return (n, r) => (T(), K("div", uz, [
@@ -1072,7 +1072,7 @@ const v3 = (e, c) => {
1072
1072
  for (const [t, n] of c)
1073
1073
  a[t] = n;
1074
1074
  return a;
1075
- }, dz = /* @__PURE__ */ v3(hz, [["__scopeId", "data-v-a6736fc2"]]);
1075
+ }, dz = /* @__PURE__ */ v3(hz, [["__scopeId", "data-v-2477d31e"]]);
1076
1076
  function sa(e, c) {
1077
1077
  var a = Object.keys(e);
1078
1078
  if (Object.getOwnPropertySymbols) {
@@ -4148,7 +4148,7 @@ const zH = /* @__PURE__ */ v3(uH, [["render", pH], ["__scopeId", "data-v-77c6eab
4148
4148
  };
4149
4149
  }
4150
4150
  });
4151
- const bH = /* @__PURE__ */ v3(CH, [["__scopeId", "data-v-6162f1d6"]]), LH = /* @__PURE__ */ q1({
4151
+ const bH = /* @__PURE__ */ v3(CH, [["__scopeId", "data-v-62b666b4"]]), LH = /* @__PURE__ */ q1({
4152
4152
  __name: "PgaItemSelected",
4153
4153
  props: {
4154
4154
  isItemSelected: { type: Boolean }
@@ -4168,7 +4168,7 @@ const bH = /* @__PURE__ */ v3(CH, [["__scopeId", "data-v-6162f1d6"]]), LH = /* @
4168
4168
  };
4169
4169
  }
4170
4170
  });
4171
- const yH = /* @__PURE__ */ v3(LH, [["__scopeId", "data-v-ff72c669"]]), xH = {
4171
+ const yH = /* @__PURE__ */ v3(LH, [["__scopeId", "data-v-87fbf4cb"]]), xH = {
4172
4172
  es: {
4173
4173
  cancelBtn: "Cancelar",
4174
4174
  selectBtn: "Seleccionar"
@@ -4296,8 +4296,8 @@ const OH = /* @__PURE__ */ v3(DH, [["__scopeId", "data-v-915ee16a"]]), RH = { cl
4296
4296
  emits: ["update:itemSelectedId"],
4297
4297
  setup(e) {
4298
4298
  n8((n) => ({
4299
- "7fdc928c": a.value,
4300
- cda5a614: t.value
4299
+ "965ebb2e": a.value,
4300
+ "148da50e": t.value
4301
4301
  }));
4302
4302
  const c = T5(e, "itemSelectedId"), a = J(() => I4(v4().colors.primary, 0.08)), t = J(() => I4(v4().colors.primary, 0.05));
4303
4303
  return (n, r) => {
@@ -4327,7 +4327,7 @@ const OH = /* @__PURE__ */ v3(DH, [["__scopeId", "data-v-915ee16a"]]), RH = { cl
4327
4327
  };
4328
4328
  }
4329
4329
  });
4330
- const IH = /* @__PURE__ */ v3(EH, [["__scopeId", "data-v-66083f03"]]), $H = { class: "spinner" }, YH = /* @__PURE__ */ q1({
4330
+ const IH = /* @__PURE__ */ v3(EH, [["__scopeId", "data-v-a08985f4"]]), $H = { class: "spinner" }, YH = /* @__PURE__ */ q1({
4331
4331
  __name: "PgaSpinner",
4332
4332
  props: {
4333
4333
  color: { default: "primary" },
@@ -4335,8 +4335,8 @@ const IH = /* @__PURE__ */ v3(EH, [["__scopeId", "data-v-66083f03"]]), $H = { cl
4335
4335
  },
4336
4336
  setup(e) {
4337
4337
  n8((t) => ({
4338
- "3ca92167": t.size,
4339
- "1c2aa586": a.value
4338
+ "13e3ac4b": t.size,
4339
+ "6b9d1e6a": a.value
4340
4340
  }));
4341
4341
  const c = e, a = J(() => {
4342
4342
  let t = v4().colors[c.color];
@@ -4350,7 +4350,7 @@ const IH = /* @__PURE__ */ v3(EH, [["__scopeId", "data-v-66083f03"]]), $H = { cl
4350
4350
  ]));
4351
4351
  }
4352
4352
  });
4353
- const qH = /* @__PURE__ */ v3(YH, [["__scopeId", "data-v-1140d9fe"]]), WH = {
4353
+ const qH = /* @__PURE__ */ v3(YH, [["__scopeId", "data-v-f0a814e5"]]), WH = {
4354
4354
  key: 1,
4355
4355
  class: "button--content"
4356
4356
  }, UH = ["textContent"], jH = /* @__PURE__ */ q1({
@@ -4365,12 +4365,12 @@ const qH = /* @__PURE__ */ v3(YH, [["__scopeId", "data-v-1140d9fe"]]), WH = {
4365
4365
  },
4366
4366
  setup(e) {
4367
4367
  n8((s) => ({
4368
- "64c7dcdf": s.size,
4369
- "62875bf2": n.value,
4370
- "570ee4fe": a.value,
4371
- "2239a6b0": t.value,
4372
- dd58274c: r.value,
4373
- "004b1327": i.value
4368
+ aea8f382: s.size,
4369
+ "366ecd52": n.value,
4370
+ "443ede5e": a.value,
4371
+ "2f6d2fe0": t.value,
4372
+ "37c606fa": r.value,
4373
+ "281c4c87": i.value
4374
4374
  }));
4375
4375
  const c = e, a = J(() => c.type === "light" ? "#000" : "#fff"), t = J(() => v4().colors[c.type]), n = J(() => I4(a.value, 0.5)), r = J(() => I4(t.value, 0.9)), i = J(() => I4(t.value, 0.5));
4376
4376
  return (s, o) => {
@@ -4407,7 +4407,7 @@ const qH = /* @__PURE__ */ v3(YH, [["__scopeId", "data-v-1140d9fe"]]), WH = {
4407
4407
  };
4408
4408
  }
4409
4409
  });
4410
- const GH = /* @__PURE__ */ v3(jH, [["__scopeId", "data-v-d73983c7"]]), ZH = ["href", "target"], XH = /* @__PURE__ */ q1({
4410
+ const GH = /* @__PURE__ */ v3(jH, [["__scopeId", "data-v-316c8005"]]), ZH = ["href", "target"], XH = /* @__PURE__ */ q1({
4411
4411
  __name: "PgaHyperlink",
4412
4412
  props: {
4413
4413
  text: {},
@@ -4427,7 +4427,7 @@ const GH = /* @__PURE__ */ v3(jH, [["__scopeId", "data-v-d73983c7"]]), ZH = ["hr
4427
4427
  };
4428
4428
  }
4429
4429
  });
4430
- const KH = /* @__PURE__ */ v3(XH, [["__scopeId", "data-v-948fb388"]]), QH = { class: "link" }, JH = /* @__PURE__ */ q1({
4430
+ const KH = /* @__PURE__ */ v3(XH, [["__scopeId", "data-v-6bd9e305"]]), QH = { class: "link" }, JH = /* @__PURE__ */ q1({
4431
4431
  __name: "PgaLink",
4432
4432
  props: {
4433
4433
  text: { type: [String, Function] }
@@ -4441,7 +4441,7 @@ const KH = /* @__PURE__ */ v3(XH, [["__scopeId", "data-v-948fb388"]]), QH = { cl
4441
4441
  };
4442
4442
  }
4443
4443
  });
4444
- const eg = /* @__PURE__ */ v3(JH, [["__scopeId", "data-v-0f9740f8"]]);
4444
+ const eg = /* @__PURE__ */ v3(JH, [["__scopeId", "data-v-7aa411d1"]]);
4445
4445
  /*!
4446
4446
  * @kurkle/color v0.3.2
4447
4447
  * https://github.com/kurkle/color#readme
@@ -11448,7 +11448,7 @@ const Kb = /* @__PURE__ */ Xb("bar", n5), Qb = /* @__PURE__ */ q1({
11448
11448
  };
11449
11449
  }
11450
11450
  });
11451
- const aL = /* @__PURE__ */ v3(cL, [["__scopeId", "data-v-0510f316"]]), tL = ["textContent"], nL = /* @__PURE__ */ q1({
11451
+ const aL = /* @__PURE__ */ v3(cL, [["__scopeId", "data-v-3d33cc59"]]), tL = ["textContent"], nL = /* @__PURE__ */ q1({
11452
11452
  __name: "PgaDisplayText",
11453
11453
  props: {
11454
11454
  text: { type: [String, Function] }
@@ -19397,7 +19397,7 @@ const vk = /* @__PURE__ */ q1({
19397
19397
  };
19398
19398
  }
19399
19399
  });
19400
- const Hk = /* @__PURE__ */ v3(Mk, [["__scopeId", "data-v-e0ef4afc"]]);
19400
+ const Hk = /* @__PURE__ */ v3(Mk, [["__scopeId", "data-v-3167a97b"]]);
19401
19401
  var xi = { exports: {} };
19402
19402
  (function(e, c) {
19403
19403
  (function(a, t) {
@@ -19472,9 +19472,9 @@ const Vk = /* @__PURE__ */ oz(gk), Ck = { class: "select" }, bk = {
19472
19472
  emits: ["update:modelValue"],
19473
19473
  setup(e) {
19474
19474
  n8((p) => ({
19475
- "5cf656c8": r.value,
19476
- dff26e1a: l.value,
19477
- "4ba878f8": f.value
19475
+ "23bf7f25": r.value,
19476
+ "3fbbcfbc": l.value,
19477
+ "156c5c1b": f.value
19478
19478
  }));
19479
19479
  const c = Vk.directive, a = T5(e, "modelValue"), t = e, n = f1(), r = f1("0"), i = f1(!1), s = J(() => !!t.options.length), o = J(() => t.options.find((p) => p.id === a.value)), l = J(() => I4(v4().colors.primary, 0.05)), f = J(() => I4(v4().colors.primary, 0.1));
19480
19480
  function u() {
@@ -19529,7 +19529,7 @@ const Vk = /* @__PURE__ */ oz(gk), Ck = { class: "select" }, bk = {
19529
19529
  };
19530
19530
  }
19531
19531
  });
19532
- const xk = /* @__PURE__ */ v3(yk, [["__scopeId", "data-v-efaafb4c"]]), wk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19532
+ const xk = /* @__PURE__ */ v3(yk, [["__scopeId", "data-v-bea1e434"]]), wk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19533
19533
  __proto__: null,
19534
19534
  PgaBadge: dz,
19535
19535
  PgaButton: GH,
@@ -5,15 +5,15 @@ export declare const useColorsStore: import('pinia').StoreDefinition<"pga-colors
5
5
  firstLight: Color;
6
6
  secondLight: Color;
7
7
  thirdLight: Color;
8
- firstLightBackground: Color;
9
- secondLightBackground: Color;
10
- thirdLightBackground: Color;
8
+ firstBackgroundLight: Color;
9
+ secondBackgroundLight: Color;
10
+ thirdBackgroundLight: Color;
11
11
  firstDark: Color;
12
12
  secondDark: Color;
13
13
  thirdDark: Color;
14
- firstDarkBackground: Color;
15
- secondDarkBackground: Color;
16
- thirdDarkBackground: Color;
14
+ firstBackgroundDark: Color;
15
+ secondBackgroundDark: Color;
16
+ thirdBackgroundDark: Color;
17
17
  primary: Color;
18
18
  secondary: Color;
19
19
  success: Color;
@@ -36,15 +36,15 @@ export declare const useColorsStore: import('pinia').StoreDefinition<"pga-colors
36
36
  firstLight: Color;
37
37
  secondLight: Color;
38
38
  thirdLight: Color;
39
- firstLightBackground: Color;
40
- secondLightBackground: Color;
41
- thirdLightBackground: Color;
39
+ firstBackgroundLight: Color;
40
+ secondBackgroundLight: Color;
41
+ thirdBackgroundLight: Color;
42
42
  firstDark: Color;
43
43
  secondDark: Color;
44
44
  thirdDark: Color;
45
- firstDarkBackground: Color;
46
- secondDarkBackground: Color;
47
- thirdDarkBackground: Color;
45
+ firstBackgroundDark: Color;
46
+ secondBackgroundDark: Color;
47
+ thirdBackgroundDark: Color;
48
48
  primary: Color;
49
49
  secondary: Color;
50
50
  success: Color;
@@ -67,15 +67,15 @@ export declare const useColorsStore: import('pinia').StoreDefinition<"pga-colors
67
67
  firstLight: Color;
68
68
  secondLight: Color;
69
69
  thirdLight: Color;
70
- firstLightBackground: Color;
71
- secondLightBackground: Color;
72
- thirdLightBackground: Color;
70
+ firstBackgroundLight: Color;
71
+ secondBackgroundLight: Color;
72
+ thirdBackgroundLight: Color;
73
73
  firstDark: Color;
74
74
  secondDark: Color;
75
75
  thirdDark: Color;
76
- firstDarkBackground: Color;
77
- secondDarkBackground: Color;
78
- thirdDarkBackground: Color;
76
+ firstBackgroundDark: Color;
77
+ secondBackgroundDark: Color;
78
+ thirdBackgroundDark: Color;
79
79
  primary: Color;
80
80
  secondary: Color;
81
81
  success: Color;
@@ -3,10 +3,10 @@ export type ColorRgb = `rgb(${number}, ${number}, ${number})`;
3
3
  export type ColorRgba = `rgba(${number}, ${number}, ${number}, ${number})`;
4
4
  export type ColorHex = `#${string}`;
5
5
  export type Color = ColorRgb | ColorRgba | ColorHex;
6
- export type ColorNameApp = 'firstLight' | 'secondLight' | 'thirdLight' | 'firstLightBackground' | 'secondLightBackground' | 'thirdLightBackground' | 'firstDark' | 'secondDark' | 'thirdDark' | 'firstDarkBackground' | 'secondDarkBackground' | 'thirdDarkBackground';
6
+ export type ColorNameApp = 'firstLight' | 'secondLight' | 'thirdLight' | 'firstBackgroundLight' | 'secondBackgroundLight' | 'thirdBackgroundLight' | 'firstDark' | 'secondDark' | 'thirdDark' | 'firstBackgroundDark' | 'secondBackgroundDark' | 'thirdBackgroundDark';
7
7
  export type ColorNameCustom = 'primary' | 'secondary';
8
- export type ColorNameDistinctive = 'success' | 'warning' | 'danger' | 'dark' | 'light' | 'red' | 'purple' | 'sky' | 'beige';
8
+ export type ColorNameUnique = 'success' | 'warning' | 'danger' | 'dark' | 'light' | 'red' | 'purple' | 'sky' | 'beige';
9
9
  export type ColorNameInformative = 'info' | 'link' | 'error';
10
- export type ColorNameUnique = ColorNameCustom | ColorNameDistinctive;
11
- export type ColorName = ColorNameApp | ColorNameCustom | ColorNameDistinctive | ColorNameInformative;
10
+ export type ColorName = ColorNameApp | ColorNameCustom | ColorNameUnique | ColorNameInformative;
11
+ export type ColorNameProp = ColorNameCustom | ColorNameUnique;
12
12
  export type Colors = Record<ColorName, Color>;
@@ -1,9 +1,9 @@
1
- import { ColorNameUnique } from '../colors';
1
+ import { ColorNameProp } from '../colors';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
- color: ColorNameUnique;
4
+ color: ColorNameProp;
5
5
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- color: ColorNameUnique;
6
+ color: ColorNameProp;
7
7
  }>>>, {}, {}>, {
8
8
  default?(_: {}): any;
9
9
  }>;
@@ -1,20 +1,20 @@
1
- import { ColorNameUnique } from '../colors';
1
+ import { ColorNameProp } from '../colors';
2
2
  import { Size } from '../types';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- color?: ColorNameUnique;
5
+ color?: ColorNameProp;
6
6
  size?: Size;
7
7
  }>, {
8
8
  color: string;
9
9
  size: string;
10
10
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- color?: ColorNameUnique;
11
+ color?: ColorNameProp;
12
12
  size?: Size;
13
13
  }>, {
14
14
  color: string;
15
15
  size: string;
16
16
  }>>>, {
17
- color: ColorNameUnique;
17
+ color: ColorNameProp;
18
18
  size: Size;
19
19
  }, {}>;
20
20
  export default _default;
@@ -1,10 +1,10 @@
1
- import { ColorNameUnique } from '../../colors';
1
+ import { ColorNameProp } from '../../colors';
2
2
  import { Icon, TextProp, Size } from '../../types';
3
3
 
4
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  icon?: Icon;
6
6
  text?: TextProp;
7
- type?: ColorNameUnique;
7
+ type?: ColorNameProp;
8
8
  size?: Size;
9
9
  isLoading?: boolean;
10
10
  numberToDisplay?: number;
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
14
14
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
15
  icon?: Icon;
16
16
  text?: TextProp;
17
- type?: ColorNameUnique;
17
+ type?: ColorNameProp;
18
18
  size?: Size;
19
19
  isLoading?: boolean;
20
20
  numberToDisplay?: number;
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
23
23
  size: string;
24
24
  }>>>, {
25
25
  size: Size;
26
- type: ColorNameUnique;
26
+ type: ColorNameProp;
27
27
  }, {}>, {
28
28
  default?(_: {}): any;
29
29
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.4.1",
4
+ "version": "2.6.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "types": "./dist/types/main.d.ts",
23
23
  "scripts": {
24
+ "type-check": "vue-tsc",
24
25
  "build": "vue-tsc && vite build",
25
26
  "deploy": "node deploy.js"
26
27
  },