@wface/pixel-ui 0.3.8 → 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/index.mjs CHANGED
@@ -4744,7 +4744,7 @@ function zl(A, g) {
4744
4744
  }
4745
4745
  const ft = FC(zl);
4746
4746
  ft.displayName = "PiSelect";
4747
- const Wl = "_stepper_1eief_1", jl = "_wrapper_1eief_1", ql = "_item_1eief_8", Zl = "_label_1eief_11", _l = "_progress_1eief_14", $l = "_completed_1eief_34", Au = "_active_1eief_37", gu = "_content_1eief_41", cg = {
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 = {
4748
4748
  stepper: Wl,
4749
4749
  wrapper: jl,
4750
4750
  item: ql,
@@ -4754,31 +4754,48 @@ const Wl = "_stepper_1eief_1", jl = "_wrapper_1eief_1", ql = "_item_1eief_8", Zl
4754
4754
  active: Au,
4755
4755
  content: gu
4756
4756
  }, Cu = (A) => {
4757
- const { index: g, data: C, active: I, completed: B, disabled: E } = A;
4758
- return /* @__PURE__ */ N("div", { className: dA(
4759
- cg.item,
4760
- I ? cg.active : "",
4761
- B ? cg.completed : "",
4762
- E ? cg.disabled : ""
4763
- ), children: [
4764
- /* @__PURE__ */ N("div", { className: cg.label, children: [
4765
- /* @__PURE__ */ l(Ig, { size: "sm", weight: "light", children: `Step ${g + 1}` }),
4766
- /* @__PURE__ */ l(Ig, { size: "md", weight: "regular", children: C.label })
4767
- ] }),
4768
- /* @__PURE__ */ l("span", { className: cg.progress })
4769
- ] });
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
+ );
4770
4776
  }, Iu = (A) => {
4771
- const { steps: g, step: C, setStep: I, className: B } = A, E = () => {
4777
+ const { steps: g, step: C, setStep: I, className: B, stepPrefix: E = "Adım" } = A, Q = () => {
4772
4778
  C !== g.length - 1 && I(C + 1);
4773
- }, Q = () => {
4779
+ }, e = () => {
4774
4780
  C !== 0 && I(C - 1);
4775
- }, e = g[C];
4781
+ }, t = g[C];
4776
4782
  return /* @__PURE__ */ N("div", { className: dA(cg.stepper, B), children: [
4777
- /* @__PURE__ */ l("div", { className: cg.wrapper, children: g.map((t, n) => {
4778
- const o = n === C, r = n < C, i = !!t.disabled;
4779
- return /* @__PURE__ */ l(Cu, { index: n, data: t, active: o, completed: r, disabled: i }, n);
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
+ );
4780
4797
  }) }),
4781
- /* @__PURE__ */ l("div", { className: cg.content, children: e && e.Component ? e?.Component({ previous: Q, next: E, step: C }) : null })
4798
+ t && t.Component ? /* @__PURE__ */ l("div", { className: cg.content, children: t?.Component({ previous: e, next: Q, step: C }) }) : null
4782
4799
  ] });
4783
4800
  };
4784
4801
  Iu.displayName = "PiStepper";