@sfperusacdev/sf-ui 0.1.37 → 0.1.39

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
@@ -10316,7 +10316,7 @@ var yr = (e) => {
10316
10316
  width: d,
10317
10317
  height: d,
10318
10318
  viewBox: `0 0 ${d} ${d}`,
10319
- className: "-rotate-90",
10319
+ style: { transform: "rotate(-90deg)" },
10320
10320
  "aria-label": t ?? "Indicador",
10321
10321
  "aria-valuemin": 0,
10322
10322
  "aria-valuemax": 100,
@@ -10419,7 +10419,7 @@ var yr = (e) => {
10419
10419
  width: c,
10420
10420
  height: c,
10421
10421
  viewBox: `0 0 ${c} ${c}`,
10422
- className: "-rotate-90",
10422
+ style: { transform: "rotate(-90deg)" },
10423
10423
  "aria-hidden": "true",
10424
10424
  children: s <= 0 ? /* @__PURE__ */ v("circle", {
10425
10425
  cx: d,
@@ -10864,20 +10864,20 @@ var yr = (e) => {
10864
10864
  y2: "4.71"
10865
10865
  })] })]
10866
10866
  })
10867
- }), Lc = ({ items: e, className: t, density: n = "comfortable", emptyMessage: r = "Sin alertas", showIcon: i = !1 }) => /* @__PURE__ */ y("div", {
10867
+ }), Lc = ({ items: e, className: t, density: n = "comfortable", emptyMessage: r = "Sin alertas", showIcon: i = !1, showChevron: a = !1 }) => /* @__PURE__ */ y("div", {
10868
10868
  className: (0, X.default)("sf-alert-summary-list", t),
10869
10869
  children: [e.length === 0 && /* @__PURE__ */ v("p", {
10870
10870
  className: "sf-alert-summary-list__empty",
10871
10871
  role: "status",
10872
10872
  children: r
10873
10873
  }), e.map((e, t) => {
10874
- let r = !!e.actions?.length, a = !r && !!e.onClick;
10874
+ let r = !!e.actions?.length, o = !r && !!e.onClick;
10875
10875
  return /* @__PURE__ */ y("div", {
10876
- className: (0, X.default)("sf-alert-summary-row", `sf-alert-summary-row--${e.tone ?? "default"}`, n === "compact" && "sf-alert-summary-row--compact", a && "sf-alert-summary-row--clickable"),
10877
- onClick: a ? e.onClick : void 0,
10878
- role: a ? "button" : void 0,
10879
- tabIndex: a ? 0 : void 0,
10880
- onKeyDown: a ? (t) => {
10876
+ className: (0, X.default)("sf-alert-summary-row", `sf-alert-summary-row--${e.tone ?? "default"}`, n === "compact" && "sf-alert-summary-row--compact", o && "sf-alert-summary-row--clickable"),
10877
+ onClick: o ? e.onClick : void 0,
10878
+ role: o ? "button" : void 0,
10879
+ tabIndex: o ? 0 : void 0,
10880
+ onKeyDown: o ? (t) => {
10881
10881
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.onClick?.());
10882
10882
  } : void 0,
10883
10883
  children: [/* @__PURE__ */ y("div", {
@@ -10894,20 +10894,28 @@ var yr = (e) => {
10894
10894
  })]
10895
10895
  }), /* @__PURE__ */ y("div", {
10896
10896
  className: "flex shrink-0 items-center gap-3",
10897
- children: [/* @__PURE__ */ v("div", {
10898
- className: "sf-alert-summary-row__value",
10899
- children: e.value
10900
- }), r && /* @__PURE__ */ v("div", {
10901
- className: "flex items-center gap-1.5",
10902
- children: e.actions.map((e, t) => /* @__PURE__ */ v("button", {
10903
- type: "button",
10904
- className: "sf-alert-summary-row__action",
10905
- onClick: (t) => {
10906
- t.stopPropagation(), e.onClick();
10907
- },
10908
- children: e.label
10909
- }, t))
10910
- })]
10897
+ children: [
10898
+ /* @__PURE__ */ v("div", {
10899
+ className: "sf-alert-summary-row__value",
10900
+ children: e.value
10901
+ }),
10902
+ r && /* @__PURE__ */ v("div", {
10903
+ className: "flex items-center gap-1.5",
10904
+ children: e.actions.map((e, t) => /* @__PURE__ */ v("button", {
10905
+ type: "button",
10906
+ className: "sf-alert-summary-row__action",
10907
+ onClick: (t) => {
10908
+ t.stopPropagation(), e.onClick();
10909
+ },
10910
+ children: e.label
10911
+ }, t))
10912
+ }),
10913
+ a && o && /* @__PURE__ */ v("span", {
10914
+ className: "sf-alert-summary-row__chevron",
10915
+ "aria-hidden": "true",
10916
+ children: /* @__PURE__ */ v(mt, {})
10917
+ })
10918
+ ]
10911
10919
  })]
10912
10920
  }, `${e.label}-${t}`);
10913
10921
  })]
@@ -11109,22 +11117,29 @@ var yr = (e) => {
11109
11117
  className: (0, X.default)("grid", !r && qc[e], Jc[t], Yc[n], i),
11110
11118
  style: r ? { gridTemplateColumns: `repeat(auto-fit, minmax(${r}, 1fr))` } : void 0,
11111
11119
  children: a
11112
- }), Zc = ({ title: e, subtitle: t, action: n, className: r, children: i }) => /* @__PURE__ */ y("section", {
11113
- className: (0, X.default)("flex flex-col gap-3", r),
11120
+ }), Zc = ({ title: e, subtitle: t, action: n, icon: r, iconSize: i = "md", className: a, children: o }) => /* @__PURE__ */ y("section", {
11121
+ className: (0, X.default)("flex flex-col gap-3", a),
11114
11122
  "aria-label": e,
11115
11123
  children: [/* @__PURE__ */ y("div", {
11116
11124
  className: "flex items-center justify-between gap-3",
11117
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
11118
- className: "text-sm font-bold sf-card-title",
11119
- children: e
11120
- }), t && /* @__PURE__ */ v("p", {
11121
- className: "mt-0.5 text-[11px] sf-card-muted",
11122
- children: t
11123
- })] }), n && /* @__PURE__ */ v("div", {
11125
+ children: [/* @__PURE__ */ y("div", {
11126
+ className: "flex items-center gap-2",
11127
+ children: [r && /* @__PURE__ */ v("span", {
11128
+ className: `sf-card-header-icon--${i}`,
11129
+ "aria-hidden": "true",
11130
+ children: r
11131
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
11132
+ className: "text-sm font-bold sf-card-title",
11133
+ children: e
11134
+ }), t && /* @__PURE__ */ v("p", {
11135
+ className: "mt-0.5 text-[11px] sf-card-muted",
11136
+ children: t
11137
+ })] })]
11138
+ }), n && /* @__PURE__ */ v("div", {
11124
11139
  className: "shrink-0",
11125
11140
  children: n
11126
11141
  })]
11127
- }), i]
11142
+ }), o]
11128
11143
  }), Qc = {
11129
11144
  slate: "sf-stat-tone--slate",
11130
11145
  emerald: "sf-stat-tone--emerald",