@sfperusacdev/sf-ui 0.1.37 → 0.1.38
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.css +1 -1
- package/dist/sf-ui.js +48 -33
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +1 -1
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/types/src/components/dashboard/AlertSummaryList.d.ts +5 -1
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +4 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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,
|
|
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",
|
|
10877
|
-
onClick:
|
|
10878
|
-
role:
|
|
10879
|
-
tabIndex:
|
|
10880
|
-
onKeyDown:
|
|
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: [
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
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,
|
|
11113
|
-
className: (0, X.default)("flex flex-col gap-3",
|
|
11120
|
+
}), Zc = ({ title: e, subtitle: t, action: n, icon: r, className: i, children: a }) => /* @__PURE__ */ y("section", {
|
|
11121
|
+
className: (0, X.default)("flex flex-col gap-3", i),
|
|
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", {
|
|
11118
|
-
className: "
|
|
11119
|
-
children:
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11125
|
+
children: [/* @__PURE__ */ y("div", {
|
|
11126
|
+
className: "flex items-center gap-2",
|
|
11127
|
+
children: [r && /* @__PURE__ */ v("span", {
|
|
11128
|
+
className: "sf-card-header-icon--md",
|
|
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
|
-
}),
|
|
11142
|
+
}), a]
|
|
11128
11143
|
}), Qc = {
|
|
11129
11144
|
slate: "sf-stat-tone--slate",
|
|
11130
11145
|
emerald: "sf-stat-tone--emerald",
|