uikit/dist/remote-ui-app-sidebar.js
Mohamadzadeh 9709e96ea1
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 51s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
remote-ui-segmented-selector
2026-10-19 17:27:38 +03:30

56 lines
1.3 KiB
JavaScript

import o from "react";
import { D as p } from "./chunks/constants-Dh2mKRrr.js";
import { c as i } from "./chunks/createReactRemoteElementComponent-C7BSu9km.js";
const a = Symbol.for("uikit.remote.app-sidebar.slot");
function u(e) {
function t() {
return null;
}
return t[a] = e, t;
}
const s = u("exit");
function l(e) {
const t = { showExit: !1 };
return o.Children.forEach(e, (r) => {
var n;
o.isValidElement(r) && ((n = r.type) == null ? void 0 : n[a]) === "exit" && (t.showExit = !0, t.onExit = r.props.onClick, t.exitDisabled = !!r.props.disabled);
}), t;
}
function f(e) {
if (!e || o.isValidElement(e)) return e;
if (typeof e == "function")
return o.createElement(e);
if (typeof e == "object" && (e != null && e.$$typeof))
try {
return o.createElement(e);
} catch {
return e;
}
return e;
}
function m(e) {
return Array.isArray(e) ? e.map((t) => ({
...t,
icon: f(t == null ? void 0 : t.icon)
})) : [];
}
const E = i({
componentName: "AppSidebar",
tagName: "uikit-app-sidebar",
defaultRemoteUrl: p.AppSidebar,
normalizeProps: ({ children: e, items: t, ...r }) => ({
...r,
items: m(t),
...e != null ? l(e) : {}
})
});
function b(e) {
return o.createElement(E, e);
}
const A = Object.assign(b, {
Exit: s
});
export {
A as AppSidebar
};