24 lines
837 B
JavaScript
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
|
|
};
|