@stenajs-webui/elements 22.4.4 → 22.5.0
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.es.js +27 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
@@ -5030,7 +5030,14 @@ const n2 = ({
|
|
5030
5030
|
color: i,
|
5031
5031
|
...o
|
5032
5032
|
}) => /* @__PURE__ */ m(f, { flex: 1, gap: 2, alignItems: "center", children: [
|
5033
|
-
/* @__PURE__ */ t(
|
5033
|
+
/* @__PURE__ */ t(
|
5034
|
+
O2,
|
5035
|
+
{
|
5036
|
+
content: n,
|
5037
|
+
icon: e,
|
5038
|
+
color: i ?? _("--swui-text-primary-color")
|
5039
|
+
}
|
5040
|
+
),
|
5034
5041
|
"label" in o ? /* @__PURE__ */ t(
|
5035
5042
|
I,
|
5036
5043
|
{
|
@@ -5040,21 +5047,21 @@ const n2 = ({
|
|
5040
5047
|
children: o.label
|
5041
5048
|
}
|
5042
5049
|
) : o.renderLabel(),
|
5043
|
-
/* @__PURE__ */ t(
|
5050
|
+
/* @__PURE__ */ t(
|
5051
|
+
O2,
|
5052
|
+
{
|
5053
|
+
content: C,
|
5054
|
+
icon: L,
|
5055
|
+
color: i ?? _("--swui-text-primary-color")
|
5056
|
+
}
|
5057
|
+
)
|
5044
5058
|
] });
|
5045
5059
|
function O2({
|
5046
5060
|
content: e,
|
5047
|
-
icon: n
|
5061
|
+
icon: n,
|
5062
|
+
color: C
|
5048
5063
|
}) {
|
5049
|
-
return e ? /* @__PURE__ */ t(j, { children: e }) : n ? /* @__PURE__ */ t(g, { alignItems: "center", justifyContent: "center", width: "20px", children: /* @__PURE__ */ t(
|
5050
|
-
w,
|
5051
|
-
{
|
5052
|
-
icon: n,
|
5053
|
-
size: 20,
|
5054
|
-
color: _("--swui-text-primary-color"),
|
5055
|
-
"data-hover": !0
|
5056
|
-
}
|
5057
|
-
) }) : null;
|
5064
|
+
return e ? /* @__PURE__ */ t(j, { children: e }) : n ? /* @__PURE__ */ t(g, { alignItems: "center", justifyContent: "center", width: "20px", children: /* @__PURE__ */ t(w, { icon: n, size: 20, color: C, "data-hover": !0 }) }) : null;
|
5058
5065
|
}
|
5059
5066
|
const B8 = h(
|
5060
5067
|
function({
|
@@ -5166,7 +5173,14 @@ const B8 = h(
|
|
5166
5173
|
...a
|
5167
5174
|
}, r) {
|
5168
5175
|
var y;
|
5169
|
-
const s = /* @__PURE__ */ t(
|
5176
|
+
const s = /* @__PURE__ */ t(
|
5177
|
+
n2,
|
5178
|
+
{
|
5179
|
+
label: e,
|
5180
|
+
leftIcon: C,
|
5181
|
+
color: "var(--current-text-color)"
|
5182
|
+
}
|
5183
|
+
), c = "renderLink" in a ? a : void 0, d = "selected" in a ? a : void 0, u = l(
|
5170
5184
|
M.button,
|
5171
5185
|
M.buttonLink,
|
5172
5186
|
e ? M.hasLabel : void 0,
|