@sfperusacdev/sf-ui 0.1.19 → 0.1.20

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/sf-ui.js CHANGED
@@ -1200,11 +1200,11 @@ var X = /* @__PURE__ */ De((/* @__PURE__ */ Te(((e, t) => {
1200
1200
  children: [
1201
1201
  /* @__PURE__ */ v("label", {
1202
1202
  htmlFor: e,
1203
- className: "text-sm font-medium text-slate-900",
1203
+ className: "sf-field-label",
1204
1204
  children: t
1205
1205
  }),
1206
1206
  a && /* @__PURE__ */ v("span", {
1207
- className: "text-sm font-medium text-red-500",
1207
+ className: "sf-field-required",
1208
1208
  children: "*"
1209
1209
  }),
1210
1210
  n && /* @__PURE__ */ y("span", {
@@ -6724,6 +6724,38 @@ var rr = (e) => {
6724
6724
  className: (0, X.default)("sf-step__connector", t === "horizontal" ? "sf-step__connector--horizontal" : "sf-step__connector--vertical", e ? "sf-step__connector--done" : "sf-step__connector--pending")
6725
6725
  }), qi = ({ steps: e, activeKey: t, orientation: n = "horizontal", size: r = "md", variant: i = "default", onStepClick: a, className: o }) => {
6726
6726
  let s = i === "accentUnderline";
6727
+ if (n === "horizontal" && i === "inline") {
6728
+ let n = r === "sm" ? "1.5rem" : "1.875rem";
6729
+ return /* @__PURE__ */ v("div", {
6730
+ className: (0, X.default)("sf-stepper sf-stepper--inline", o),
6731
+ style: { "--sf-step-circle-size": n },
6732
+ role: "list",
6733
+ "aria-label": "Progreso",
6734
+ children: e.map((n, i) => {
6735
+ let o = Vi(n, t, i, e), s = i === e.length - 1;
6736
+ return /* @__PURE__ */ y("div", {
6737
+ className: "sf-stepper__inline-group",
6738
+ role: "listitem",
6739
+ children: [/* @__PURE__ */ y("div", {
6740
+ className: "sf-stepper__inline-item",
6741
+ children: [/* @__PURE__ */ v(Gi, {
6742
+ status: o,
6743
+ index: i,
6744
+ label: n.label,
6745
+ size: r,
6746
+ onClick: o === "completed" && a ? () => a(n.key) : void 0
6747
+ }), /* @__PURE__ */ v("span", {
6748
+ className: (0, X.default)("sf-stepper__inline-label", Ui[o]),
6749
+ children: n.label
6750
+ })]
6751
+ }), !s && /* @__PURE__ */ v("div", {
6752
+ "aria-hidden": "true",
6753
+ className: (0, X.default)("sf-stepper__inline-connector", o === "completed" && "sf-stepper__inline-connector--done")
6754
+ })]
6755
+ }, n.key);
6756
+ })
6757
+ });
6758
+ }
6727
6759
  if (n === "horizontal") {
6728
6760
  let n = r === "sm" ? "1.5rem" : "2rem";
6729
6761
  return /* @__PURE__ */ y("div", {