pangea-lib 2.4.0 → 2.5.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.cjs.js +3 -3
- package/dist/main.css +1 -1
- package/dist/main.es.js +30 -30
- package/dist/types/colors/colors.types.d.ts +3 -3
- package/dist/types/components/PgaBadge.vue.d.ts +3 -3
- package/dist/types/components/PgaSpinner.vue.d.ts +4 -4
- package/dist/types/components/button/PgaButton.vue.d.ts +4 -4
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1014,7 +1014,7 @@ const Cn = {
|
|
|
1014
1014
|
link: "#0064ff",
|
|
1015
1015
|
error: "#e11515"
|
|
1016
1016
|
}, fz = {
|
|
1017
|
-
colors:
|
|
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(
|
|
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 = `--
|
|
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
|
-
"
|
|
1062
|
-
"
|
|
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-
|
|
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) {
|
|
@@ -4106,7 +4106,7 @@ function pH(e, c) {
|
|
|
4106
4106
|
])
|
|
4107
4107
|
]);
|
|
4108
4108
|
}
|
|
4109
|
-
const zH = /* @__PURE__ */ v3(uH, [["render", pH], ["__scopeId", "data-v-
|
|
4109
|
+
const zH = /* @__PURE__ */ v3(uH, [["render", pH], ["__scopeId", "data-v-77c6eabd"]]), MH = { class: "information-card-container" }, HH = {
|
|
4110
4110
|
key: 1,
|
|
4111
4111
|
class: "information-card"
|
|
4112
4112
|
}, gH = ["textContent"], VH = ["textContent"], CH = /* @__PURE__ */ q1({
|
|
@@ -4148,7 +4148,7 @@ const zH = /* @__PURE__ */ v3(uH, [["render", pH], ["__scopeId", "data-v-25fbcbe
|
|
|
4148
4148
|
};
|
|
4149
4149
|
}
|
|
4150
4150
|
});
|
|
4151
|
-
const bH = /* @__PURE__ */ v3(CH, [["__scopeId", "data-v-
|
|
4151
|
+
const bH = /* @__PURE__ */ v3(CH, [["__scopeId", "data-v-8646c5fb"]]), 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-
|
|
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
|
-
"
|
|
4300
|
-
|
|
4299
|
+
"60913cc9": a.value,
|
|
4300
|
+
"1c4bc719": 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-
|
|
4330
|
+
const IH = /* @__PURE__ */ v3(EH, [["__scopeId", "data-v-456a1bec"]]), $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
|
-
"
|
|
4339
|
-
"
|
|
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-
|
|
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
|
-
|
|
4369
|
-
"
|
|
4370
|
-
"
|
|
4371
|
-
"
|
|
4372
|
-
|
|
4373
|
-
"
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11451
|
+
const aL = /* @__PURE__ */ v3(cL, [["__scopeId", "data-v-3bcd3898"]]), 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-
|
|
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
|
-
"
|
|
19476
|
-
|
|
19477
|
-
"
|
|
19475
|
+
"3995ec15": r.value,
|
|
19476
|
+
"3598d8ac": l.value,
|
|
19477
|
+
"7a7f6d2b": 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-
|
|
19532
|
+
const xk = /* @__PURE__ */ v3(yk, [["__scopeId", "data-v-45e11ef8"]]), wk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19533
19533
|
__proto__: null,
|
|
19534
19534
|
PgaBadge: dz,
|
|
19535
19535
|
PgaButton: GH,
|
|
@@ -5,8 +5,8 @@ export type ColorHex = `#${string}`;
|
|
|
5
5
|
export type Color = ColorRgb | ColorRgba | ColorHex;
|
|
6
6
|
export type ColorNameApp = 'firstLight' | 'secondLight' | 'thirdLight' | 'firstLightBackground' | 'secondLightBackground' | 'thirdLightBackground' | 'firstDark' | 'secondDark' | 'thirdDark' | 'firstDarkBackground' | 'secondDarkBackground' | 'thirdDarkBackground';
|
|
7
7
|
export type ColorNameCustom = 'primary' | 'secondary';
|
|
8
|
-
export type
|
|
8
|
+
export type ColorNameUnique = 'success' | 'warning' | 'danger' | 'dark' | 'light' | 'red' | 'purple' | 'sky' | 'beige';
|
|
9
9
|
export type ColorNameInformative = 'info' | 'link' | 'error';
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
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 {
|
|
1
|
+
import { ColorNameProp } from '../colors';
|
|
2
2
|
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
color:
|
|
4
|
+
color: ColorNameProp;
|
|
5
5
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
color:
|
|
6
|
+
color: ColorNameProp;
|
|
7
7
|
}>>>, {}, {}>, {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
}>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
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?:
|
|
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?:
|
|
11
|
+
color?: ColorNameProp;
|
|
12
12
|
size?: Size;
|
|
13
13
|
}>, {
|
|
14
14
|
color: string;
|
|
15
15
|
size: string;
|
|
16
16
|
}>>>, {
|
|
17
|
-
color:
|
|
17
|
+
color: ColorNameProp;
|
|
18
18
|
size: Size;
|
|
19
19
|
}, {}>;
|
|
20
20
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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?:
|
|
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?:
|
|
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:
|
|
26
|
+
type: ColorNameProp;
|
|
27
27
|
}, {}>, {
|
|
28
28
|
default?(_: {}): any;
|
|
29
29
|
}>;
|