@realtek/core-theme 0.0.272 → 0.0.273
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-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +16 -0
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -4566,6 +4566,22 @@ function lf(e, t = {}) {
|
|
|
4566
4566
|
return n === "add" ? t.canAdd !== !1 : n === "edit" ? t.canEdit !== !1 : n === "delete" ? t.canDelete !== !1 : !0;
|
|
4567
4567
|
}
|
|
4568
4568
|
function uf(e, t, n) {
|
|
4569
|
+
if (typeof e.onClick == "function") return /* @__PURE__ */ X(q, {
|
|
4570
|
+
title: e.label,
|
|
4571
|
+
children: /* @__PURE__ */ X("button", {
|
|
4572
|
+
"aria-label": e.label,
|
|
4573
|
+
className: "job-field-action-button",
|
|
4574
|
+
type: "button",
|
|
4575
|
+
onClick: (n) => {
|
|
4576
|
+
n.stopPropagation(), e.onClick(t);
|
|
4577
|
+
},
|
|
4578
|
+
children: /* @__PURE__ */ X("img", {
|
|
4579
|
+
src: e.iconUrl,
|
|
4580
|
+
alt: e.label,
|
|
4581
|
+
className: "job-field-action-icon"
|
|
4582
|
+
})
|
|
4583
|
+
})
|
|
4584
|
+
}, e.key);
|
|
4569
4585
|
let r = Hd(e.routeUrl ?? e.routeURL ?? e.url ?? e.href, t), i = Of(e.type), a = /* @__PURE__ */ X("img", {
|
|
4570
4586
|
src: e.iconUrl,
|
|
4571
4587
|
alt: e.label,
|