@wface/pixel-ui 0.3.7 → 0.3.9
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/components/stepper/index.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +40 -26
- package/dist/index.mjs.map +1 -1
- package/dist/providers/Pixel.d.ts +0 -2
- package/dist/providers/Pixel.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/stepper.d.ts +2 -0
- package/dist/types/stepper.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -237,11 +237,8 @@ function N9() {
|
|
|
237
237
|
return A;
|
|
238
238
|
}
|
|
239
239
|
const fo = (A) => {
|
|
240
|
-
const { config: g
|
|
241
|
-
return /* @__PURE__ */ l(qr, { children: /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */ l(Xr, { configuration: g }),
|
|
243
|
-
C
|
|
244
|
-
] }) });
|
|
240
|
+
const { config: g } = A;
|
|
241
|
+
return /* @__PURE__ */ l(qr, { children: /* @__PURE__ */ l(uo, { children: /* @__PURE__ */ l(Xr, { configuration: g }) }) });
|
|
245
242
|
};
|
|
246
243
|
fo.displayName = "Pixel";
|
|
247
244
|
const po = "_alert_1scdn_1", ho = "_wrapper_1scdn_5", vo = "_icon_1scdn_11", bo = "_content_1scdn_18", mo = "_success_1scdn_23", wo = "_bold_1scdn_29", Do = "_warning_1scdn_35", yo = "_info_1scdn_47", So = "_danger_1scdn_59", Jg = {
|
|
@@ -4747,7 +4744,7 @@ function zl(A, g) {
|
|
|
4747
4744
|
}
|
|
4748
4745
|
const ft = FC(zl);
|
|
4749
4746
|
ft.displayName = "PiSelect";
|
|
4750
|
-
const Wl = "
|
|
4747
|
+
const Wl = "_stepper_r5rns_1", jl = "_wrapper_r5rns_1", ql = "_item_r5rns_6", Zl = "_label_r5rns_9", _l = "_progress_r5rns_12", $l = "_completed_r5rns_32", Au = "_active_r5rns_35", gu = "_content_r5rns_39", cg = {
|
|
4751
4748
|
stepper: Wl,
|
|
4752
4749
|
wrapper: jl,
|
|
4753
4750
|
item: ql,
|
|
@@ -4757,31 +4754,48 @@ const Wl = "_stepper_1eief_1", jl = "_wrapper_1eief_1", ql = "_item_1eief_8", Zl
|
|
|
4757
4754
|
active: Au,
|
|
4758
4755
|
content: gu
|
|
4759
4756
|
}, Cu = (A) => {
|
|
4760
|
-
const { index: g, data: C, active: I, completed: B, disabled: E } = A;
|
|
4761
|
-
return /* @__PURE__ */ N(
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4757
|
+
const { index: g, data: C, active: I, completed: B, disabled: E, stepPrefix: Q } = A;
|
|
4758
|
+
return /* @__PURE__ */ N(
|
|
4759
|
+
"div",
|
|
4760
|
+
{
|
|
4761
|
+
className: dA(
|
|
4762
|
+
cg.item,
|
|
4763
|
+
I ? cg.active : "",
|
|
4764
|
+
B ? cg.completed : "",
|
|
4765
|
+
E ? cg.disabled : ""
|
|
4766
|
+
),
|
|
4767
|
+
children: [
|
|
4768
|
+
/* @__PURE__ */ N("div", { className: cg.label, children: [
|
|
4769
|
+
/* @__PURE__ */ l(Ig, { size: "sm", weight: "light", children: `${Q} ${g + 1}` }),
|
|
4770
|
+
/* @__PURE__ */ l(Ig, { size: "md", weight: "regular", children: C.label })
|
|
4771
|
+
] }),
|
|
4772
|
+
/* @__PURE__ */ l("span", { className: cg.progress })
|
|
4773
|
+
]
|
|
4774
|
+
}
|
|
4775
|
+
);
|
|
4773
4776
|
}, Iu = (A) => {
|
|
4774
|
-
const { steps: g, step: C, setStep: I, className: B } = A,
|
|
4777
|
+
const { steps: g, step: C, setStep: I, className: B, stepPrefix: E = "Adım" } = A, Q = () => {
|
|
4775
4778
|
C !== g.length - 1 && I(C + 1);
|
|
4776
|
-
},
|
|
4779
|
+
}, e = () => {
|
|
4777
4780
|
C !== 0 && I(C - 1);
|
|
4778
|
-
},
|
|
4781
|
+
}, t = g[C];
|
|
4779
4782
|
return /* @__PURE__ */ N("div", { className: dA(cg.stepper, B), children: [
|
|
4780
|
-
/* @__PURE__ */ l("div", { className: cg.wrapper, children: g.map((
|
|
4781
|
-
const
|
|
4782
|
-
return /* @__PURE__ */ l(
|
|
4783
|
+
/* @__PURE__ */ l("div", { className: cg.wrapper, children: g.map((n, o) => {
|
|
4784
|
+
const r = o === C, i = o < C, a = !!n.disabled;
|
|
4785
|
+
return /* @__PURE__ */ l(
|
|
4786
|
+
Cu,
|
|
4787
|
+
{
|
|
4788
|
+
index: o,
|
|
4789
|
+
data: n,
|
|
4790
|
+
active: r,
|
|
4791
|
+
completed: i,
|
|
4792
|
+
disabled: a,
|
|
4793
|
+
stepPrefix: E
|
|
4794
|
+
},
|
|
4795
|
+
o
|
|
4796
|
+
);
|
|
4783
4797
|
}) }),
|
|
4784
|
-
/* @__PURE__ */ l("div", { className: cg.content, children:
|
|
4798
|
+
t && t.Component ? /* @__PURE__ */ l("div", { className: cg.content, children: t?.Component({ previous: e, next: Q, step: C }) }) : null
|
|
4785
4799
|
] });
|
|
4786
4800
|
};
|
|
4787
4801
|
Iu.displayName = "PiStepper";
|