@producteca/producteca-ui-kit 1.10.0 → 1.11.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/README.md +1 -1
- package/dist/favicon.svg +39 -18
- package/dist/producteca-ui-kit.es.js +52 -33
- package/dist/producteca-ui-kit.umd.js +26 -26
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ Follow these steps to integrate and configure the `@producteca/producteca-ui-kit
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
```
|
|
119
|
-
- For a complete example of how to implement these changes, refer to this pull request: [Shopify Babel Update Example](https://github.com/Parsimotion/shopify/pull/
|
|
119
|
+
- For a complete example of how to implement these changes, refer to this pull request: [Shopify Babel Update Example](https://github.com/Parsimotion/shopify/pull/290)
|
|
120
120
|
|
|
121
121
|
### Auto Publish
|
|
122
122
|
|
package/dist/favicon.svg
CHANGED
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<!--
|
|
4
|
-
<circle cx="16" cy="16" r="16" fill="#
|
|
3
|
+
<!-- Fondo circular azul -->
|
|
4
|
+
<circle cx="16" cy="16" r="16" fill="#0045AD"/>
|
|
5
5
|
|
|
6
|
-
<!--
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
<!-- Patrón de puntos sutiles en el fondo -->
|
|
7
|
+
<circle cx="6" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
8
|
+
<circle cx="26" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
9
|
+
<circle cx="6" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
10
|
+
<circle cx="26" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
11
|
+
<circle cx="16" cy="4" r="0.5" fill="white" opacity="0.2"/>
|
|
12
|
+
<circle cx="16" cy="28" r="0.5" fill="white" opacity="0.2"/>
|
|
13
|
+
<circle cx="4" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
14
|
+
<circle cx="28" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
15
|
+
|
|
16
|
+
<!-- Líneas sutiles conectoras -->
|
|
17
|
+
<line x1="16" y1="4" x2="16" y2="7" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
18
|
+
<line x1="16" y1="25" x2="16" y2="28" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
19
|
+
<line x1="4" y1="16" x2="7" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
20
|
+
<line x1="25" y1="16" x2="28" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
21
|
+
|
|
22
|
+
<!-- Letra U redondeada y minimalista -->
|
|
23
|
+
<path
|
|
24
|
+
d="M9.5 11 v6.5
|
|
25
|
+
a4.5 4.5 0 0 0 9 0 v-6.5"
|
|
26
|
+
stroke="white"
|
|
27
|
+
stroke-width="3.2"
|
|
28
|
+
stroke-linecap="round"
|
|
29
|
+
stroke-linejoin="round"
|
|
30
|
+
fill="none"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<!-- Letra I redondeada y minimalista -->
|
|
34
|
+
<line
|
|
35
|
+
x1="22.5"
|
|
36
|
+
y1="11"
|
|
37
|
+
x2="22.5"
|
|
38
|
+
y2="21"
|
|
39
|
+
stroke="white"
|
|
40
|
+
stroke-width="3.2"
|
|
41
|
+
stroke-linecap="round"
|
|
42
|
+
/>
|
|
22
43
|
</svg>
|
|
@@ -14454,7 +14454,7 @@ const wu = (n) => {
|
|
|
14454
14454
|
}
|
|
14455
14455
|
}, [A, u]);
|
|
14456
14456
|
const j = () => !b || !L || !We.isEmpty(S), be = c ? { Option: wu, MultiValue: aA } : { Option: wu, SingleValue: vg };
|
|
14457
|
-
return /* @__PURE__ */ Pe("div", { className: tt["select-field-container"], children: [
|
|
14457
|
+
return /* @__PURE__ */ Pe("div", { className: tt["select-field-container"], "data-testid": "select-field-container", children: [
|
|
14458
14458
|
r && /* @__PURE__ */ W("label", { htmlFor: t, children: r }),
|
|
14459
14459
|
/* @__PURE__ */ Pe(
|
|
14460
14460
|
"div",
|
|
@@ -14559,10 +14559,11 @@ const wu = (n) => {
|
|
|
14559
14559
|
}
|
|
14560
14560
|
}), L = (Z) => {
|
|
14561
14561
|
S(Z);
|
|
14562
|
-
}, z = c && !C && A ? /* @__PURE__ */ W($n, { children: /* @__PURE__ */ W(mg, {}) }) : C, K = c && !C ? () => L({ target: { name: n.name, value: "" } }) : We.identity, I = l == "sm";
|
|
14562
|
+
}, z = c && !C && A ? /* @__PURE__ */ W($n, { "data-testid": "clear-icon", children: /* @__PURE__ */ W(mg, {}) }) : C, K = c && !C ? () => L({ target: { name: n.name, value: "" } }) : We.identity, I = l == "sm";
|
|
14563
14563
|
return /* @__PURE__ */ Pe(
|
|
14564
14564
|
"div",
|
|
14565
14565
|
{
|
|
14566
|
+
"data-testid": "text-input-container",
|
|
14566
14567
|
className: an(
|
|
14567
14568
|
on[l],
|
|
14568
14569
|
on["text-input"],
|
|
@@ -14577,6 +14578,7 @@ const wu = (n) => {
|
|
|
14577
14578
|
{
|
|
14578
14579
|
...w,
|
|
14579
14580
|
..._,
|
|
14581
|
+
"data-testid": "text-input",
|
|
14580
14582
|
value: A,
|
|
14581
14583
|
type: d,
|
|
14582
14584
|
onChange: L,
|
|
@@ -14595,10 +14597,11 @@ const wu = (n) => {
|
|
|
14595
14597
|
{
|
|
14596
14598
|
...n,
|
|
14597
14599
|
type: t ? "text" : "password",
|
|
14600
|
+
"data-testid": "password-input",
|
|
14598
14601
|
rightIcon: /* @__PURE__ */ W(IA, { showPassword: t, setShowPassword: r })
|
|
14599
14602
|
}
|
|
14600
14603
|
);
|
|
14601
|
-
}, IA = ({ showPassword: n, setShowPassword: t }) => /* @__PURE__ */ W("div", { onClick: () => t(!n), children: n ? /* @__PURE__ */ W(iA, {}) : /* @__PURE__ */ W(oA, {}) }), xA = (n) => n ? {
|
|
14604
|
+
}, IA = ({ showPassword: n, setShowPassword: t }) => /* @__PURE__ */ W("div", { "data-testid": "visibility-toggle", onClick: () => t(!n), children: n ? /* @__PURE__ */ W(iA, {}) : /* @__PURE__ */ W(oA, {}) }), xA = (n) => n ? {
|
|
14602
14605
|
password: yA,
|
|
14603
14606
|
text: Bo,
|
|
14604
14607
|
number: Bo
|
|
@@ -14826,39 +14829,49 @@ const wu = (n) => {
|
|
|
14826
14829
|
return p;
|
|
14827
14830
|
}
|
|
14828
14831
|
});
|
|
14829
|
-
return /* @__PURE__ */ Pe("div", { className: Tn["switch-input-container"], children: [
|
|
14830
|
-
n && /* @__PURE__ */ Pe("label", { className: Tn.title, children: [
|
|
14832
|
+
return /* @__PURE__ */ Pe("div", { className: Tn["switch-input-container"], "data-testid": "switch-input-container", children: [
|
|
14833
|
+
n && /* @__PURE__ */ Pe("label", { className: Tn.title, "data-testid": "switch-title", children: [
|
|
14831
14834
|
" ",
|
|
14832
14835
|
n,
|
|
14833
14836
|
" "
|
|
14834
14837
|
] }),
|
|
14835
|
-
/* @__PURE__ */ W("div", { className: `${Tn["switch-input-items"]} ${Tn[o]}`, children: We.map(r, ({ id: p, name: h, label: b, disabled: C, checked: x, value: w, ...m }) => {
|
|
14838
|
+
/* @__PURE__ */ W("div", { className: `${Tn["switch-input-items"]} ${Tn[o]}`, "data-testid": "switch-input-items", children: We.map(r, ({ id: p, name: h, label: b, disabled: C, checked: x, value: w, ...m }) => {
|
|
14836
14839
|
const A = p || h || t;
|
|
14837
|
-
return /* @__PURE__ */ Pe(
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14840
|
+
return /* @__PURE__ */ Pe(
|
|
14841
|
+
"label",
|
|
14842
|
+
{
|
|
14843
|
+
htmlFor: A,
|
|
14844
|
+
className: `${C ? Tn.disabled : ""}`,
|
|
14845
|
+
"data-testid": `switch-label-${A}`,
|
|
14846
|
+
children: [
|
|
14847
|
+
/* @__PURE__ */ Pe("div", { className: Tn["switch-wrapper"], children: [
|
|
14848
|
+
/* @__PURE__ */ W(
|
|
14849
|
+
"input",
|
|
14850
|
+
{
|
|
14851
|
+
...l,
|
|
14852
|
+
...m,
|
|
14853
|
+
id: A,
|
|
14854
|
+
type: "checkbox",
|
|
14855
|
+
name: h || t,
|
|
14856
|
+
checked: u && h ? We.get(u.value, h) : x,
|
|
14857
|
+
disabled: C,
|
|
14858
|
+
onChange: d,
|
|
14859
|
+
onBlur: c,
|
|
14860
|
+
className: Tn["switch-input"],
|
|
14861
|
+
"data-testid": `switch-input-${A}`
|
|
14862
|
+
}
|
|
14863
|
+
),
|
|
14864
|
+
/* @__PURE__ */ W("span", { className: Tn["switch-slider"] })
|
|
14865
|
+
] }),
|
|
14866
|
+
/* @__PURE__ */ Pe("span", { className: Tn["switch-label"], children: [
|
|
14867
|
+
" ",
|
|
14868
|
+
b,
|
|
14869
|
+
" "
|
|
14870
|
+
] })
|
|
14871
|
+
]
|
|
14872
|
+
},
|
|
14873
|
+
A
|
|
14874
|
+
);
|
|
14862
14875
|
}) })
|
|
14863
14876
|
] });
|
|
14864
14877
|
}, dS = ({ name: n, checked: t, onChange: r, label: a, title: o, disabled: u = !1, size: l = "sm", input: d, ...c }) => {
|
|
@@ -14917,7 +14930,10 @@ const wu = (n) => {
|
|
|
14917
14930
|
return Zn(() => {
|
|
14918
14931
|
if (r === "buffer") {
|
|
14919
14932
|
const u = setInterval(() => {
|
|
14920
|
-
o((l) =>
|
|
14933
|
+
o((l) => {
|
|
14934
|
+
const d = Math.min(100, l + Math.sqrt(100 - l) * 0.5);
|
|
14935
|
+
return Math.round(d);
|
|
14936
|
+
});
|
|
14921
14937
|
}, 100);
|
|
14922
14938
|
return () => {
|
|
14923
14939
|
clearInterval(u);
|
|
@@ -14929,7 +14945,10 @@ const wu = (n) => {
|
|
|
14929
14945
|
{
|
|
14930
14946
|
variant: r == "buffer" ? "determinate" : r,
|
|
14931
14947
|
value: a,
|
|
14932
|
-
className: an(Ud.progressbar, Ud[n])
|
|
14948
|
+
className: an(Ud.progressbar, Ud[n]),
|
|
14949
|
+
"aria-valuemin": 0,
|
|
14950
|
+
"aria-valuemax": 100,
|
|
14951
|
+
"aria-valuenow": a
|
|
14933
14952
|
}
|
|
14934
14953
|
);
|
|
14935
14954
|
}, $A = "alert-module_alert_j7ZRS", ZA = "alert-module_icon_vbZHd", zA = "alert-module_message_klR2U", YA = "alert-module_link_IrBj3", JA = "alert-module_success_AVBKS", UA = "alert-module_error_cxg96", jA = "alert-module_warning_zkMaJ", QA = "alert-module_info_PBo1l", Br = {
|