uikit/dist/remote-ui-segmented-selector.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

24 lines
837 B
JavaScript

import { jsx as o } from "react/jsx-runtime";
import r from "react";
import { D as a } from "./chunks/constants-Dh2mKRrr.js";
import { c as m } from "./chunks/createReactRemoteElementComponent-C7BSu9km.js";
function l(e) {
return !e || r.isValidElement(e) ? e : typeof e == "function" || typeof e == "object" && (e != null && e.$$typeof) ? r.createElement(e) : e;
}
const d = m({
componentName: "SegmentedSelector",
tagName: "uikit-segmented-selector",
defaultRemoteUrl: a.SegmentedSelector,
normalizeProps: ({ items: e, selectionMode: f, index: p, defaultIndex: s, onIndexChange: u, ...n }) => ({
...n,
items: Array.isArray(e) ? e.map((t) => ({ ...t, icon: l(t == null ? void 0 : t.icon) })) : []
})
});
function E(e) {
return /* @__PURE__ */ o(d, { ...e });
}
export {
E as SegmentedSelector,
E as default
};