UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

35 lines (34 loc) 1.31 kB
(function() { try { var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; e.SENTRY_RELEASE = { id: "3.20.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b19f5bd5-041d-48ed-9189-278616a7be0b", e._sentryDebugIdIdentifier = "sentry-dbid-b19f5bd5-041d-48ed-9189-278616a7be0b"); } catch {} })(); import { t as e } from "./jsx-runtime-BRhWrtmW.js"; import { i as t, n, r, t as i } from "./select-DvPNhCF6.js"; import { t as a } from "./settings-item-CAMlHscI.js"; //#region ../debug/src/lib/ui/optional-enum-editor.tsx var o = e(), s = "__DEFAULT__", c = (e) => { var c; return /* @__PURE__ */ (0, o.jsx)(a, { label: e.label, children: /* @__PURE__ */ (0, o.jsxs)(i, { value: (c = e.value) == null ? s : c, onValueChange: (t) => { e.onChange(t === s ? void 0 : t); }, children: [/* @__PURE__ */ (0, o.jsx)(r, {}), /* @__PURE__ */ (0, o.jsxs)(n, { children: [/* @__PURE__ */ (0, o.jsx)(t, { value: s, children: "default" }), e.context.values.map((e) => /* @__PURE__ */ (0, o.jsx)(t, { value: e, children: e }, e))] })] }) }); }; c.displayName = "OptionalEnumEditor"; //#endregion export { c as OptionalEnumEditor };