framepexls-ui-lib 2.2.7 → 2.2.8

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.
@@ -78,6 +78,8 @@ function AccessibilityFab({
78
78
  const path = typeof event.composedPath === "function" ? event.composedPath() : [];
79
79
  if (popRef.current && path.includes(popRef.current)) return;
80
80
  if (btnRef.current && path.includes(btnRef.current)) return;
81
+ const target = event.target;
82
+ if (target == null ? void 0 : target.closest("[data-fx-keep-open], [data-fx-overlay]")) return;
81
83
  setOpen(false);
82
84
  };
83
85
  window.addEventListener("keydown", onKeyDown);
@@ -51,6 +51,8 @@ function AccessibilityFab({
51
51
  const path = typeof event.composedPath === "function" ? event.composedPath() : [];
52
52
  if (popRef.current && path.includes(popRef.current)) return;
53
53
  if (btnRef.current && path.includes(btnRef.current)) return;
54
+ const target = event.target;
55
+ if (target == null ? void 0 : target.closest("[data-fx-keep-open], [data-fx-overlay]")) return;
54
56
  setOpen(false);
55
57
  };
56
58
  window.addEventListener("keydown", onKeyDown);
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -42,6 +42,7 @@ var import_framer_motion = require("framer-motion");
42
42
  var import_animations = require("./animations");
43
43
  var import_iconos = require("./iconos");
44
44
  const cx = (...a) => a.filter(Boolean).join(" ");
45
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
45
46
  const controlShell = "relative w-full rounded-2xl border border-slate-200 bg-white text-sm text-slate-900 placeholder:text-slate-400 shadow-sm outline-none transition focus-within:ring-1 focus-within:border-[color-mix(in_oklab,var(--ring)_35%,var(--border))] disabled:opacity-60 disabled:cursor-not-allowed dark:border-[var(--border)] dark:bg-[var(--fx-surface)] dark:text-[var(--foreground)] dark:placeholder:text-[var(--muted)] dark:shadow-[0_0_0_1px_rgba(0,0,0,0.55)]";
46
47
  const isFocusableOrInteractive = (el) => {
47
48
  if (!el) return false;
@@ -248,8 +249,7 @@ function ComboSelect({
248
249
  left: r.left,
249
250
  width: r.width,
250
251
  maxHeight: maxH,
251
- // Keep above Dialog (3000) and other overlays.
252
- zIndex: 3600
252
+ zIndex: PORTAL_OVERLAY_Z_INDEX
253
253
  });
254
254
  }, []);
255
255
  import_react.default.useLayoutEffect(() => {
@@ -316,7 +316,7 @@ function ComboSelect({
316
316
  "div",
317
317
  {
318
318
  className: "fixed inset-0",
319
- style: { zIndex: 3599 },
319
+ style: { zIndex: PORTAL_OVERLAY_Z_INDEX - 1 },
320
320
  onMouseDown: () => {
321
321
  closeDropdown();
322
322
  },
@@ -331,6 +331,7 @@ function ComboSelect({
331
331
  ref: dropRef,
332
332
  role: "listbox",
333
333
  id: listId,
334
+ "data-fx-overlay": "combo-select",
334
335
  style: { ...dropStyle, willChange: "transform, opacity" },
335
336
  variants: import_animations.popOver,
336
337
  initial: "initial",
@@ -9,6 +9,7 @@ import { AnimatePresence, motion } from "framer-motion";
9
9
  import { popOver, menuTransition } from "./animations.mjs";
10
10
  import { CheckIcon, ChevronDownIcon, CloseIcon } from "./iconos/index.mjs";
11
11
  const cx = (...a) => a.filter(Boolean).join(" ");
12
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
12
13
  const controlShell = "relative w-full rounded-2xl border border-slate-200 bg-white text-sm text-slate-900 placeholder:text-slate-400 shadow-sm outline-none transition focus-within:ring-1 focus-within:border-[color-mix(in_oklab,var(--ring)_35%,var(--border))] disabled:opacity-60 disabled:cursor-not-allowed dark:border-[var(--border)] dark:bg-[var(--fx-surface)] dark:text-[var(--foreground)] dark:placeholder:text-[var(--muted)] dark:shadow-[0_0_0_1px_rgba(0,0,0,0.55)]";
13
14
  const isFocusableOrInteractive = (el) => {
14
15
  if (!el) return false;
@@ -215,8 +216,7 @@ function ComboSelect({
215
216
  left: r.left,
216
217
  width: r.width,
217
218
  maxHeight: maxH,
218
- // Keep above Dialog (3000) and other overlays.
219
- zIndex: 3600
219
+ zIndex: PORTAL_OVERLAY_Z_INDEX
220
220
  });
221
221
  }, []);
222
222
  React.useLayoutEffect(() => {
@@ -283,7 +283,7 @@ function ComboSelect({
283
283
  "div",
284
284
  {
285
285
  className: "fixed inset-0",
286
- style: { zIndex: 3599 },
286
+ style: { zIndex: PORTAL_OVERLAY_Z_INDEX - 1 },
287
287
  onMouseDown: () => {
288
288
  closeDropdown();
289
289
  },
@@ -298,6 +298,7 @@ function ComboSelect({
298
298
  ref: dropRef,
299
299
  role: "listbox",
300
300
  id: listId,
301
+ "data-fx-overlay": "combo-select",
301
302
  style: { ...dropStyle, willChange: "transform, opacity" },
302
303
  variants: popOver,
303
304
  initial: "initial",
@@ -126,6 +126,7 @@ const formatDisplayValue = (value, mode) => {
126
126
  return fmtISODateTimeLocal(parsed);
127
127
  }
128
128
  };
129
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
129
130
  function DateTimeField({
130
131
  type = "datetime-local",
131
132
  value,
@@ -190,7 +191,7 @@ function DateTimeField({
190
191
  left = Math.max(MARGIN, Math.min(left, window.innerWidth - (W + MARGIN)));
191
192
  let top = anchorRect.top - GAP - H;
192
193
  if (top < MARGIN) top = Math.max(MARGIN, anchorRect.bottom + GAP);
193
- return { position: "fixed", top, left, zIndex: 1e5 };
194
+ return { position: "fixed", top, left, zIndex: PORTAL_OVERLAY_Z_INDEX };
194
195
  })();
195
196
  const parsed = (0, import_react.useMemo)(() => value ? parseValueByType(value, type) : null, [value, type]);
196
197
  const [cursor, setCursor] = (0, import_react.useState)(() => parsed != null ? parsed : /* @__PURE__ */ new Date());
@@ -93,6 +93,7 @@ const formatDisplayValue = (value, mode) => {
93
93
  return fmtISODateTimeLocal(parsed);
94
94
  }
95
95
  };
96
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
96
97
  function DateTimeField({
97
98
  type = "datetime-local",
98
99
  value,
@@ -157,7 +158,7 @@ function DateTimeField({
157
158
  left = Math.max(MARGIN, Math.min(left, window.innerWidth - (W + MARGIN)));
158
159
  let top = anchorRect.top - GAP - H;
159
160
  if (top < MARGIN) top = Math.max(MARGIN, anchorRect.bottom + GAP);
160
- return { position: "fixed", top, left, zIndex: 1e5 };
161
+ return { position: "fixed", top, left, zIndex: PORTAL_OVERLAY_Z_INDEX };
161
162
  })();
162
163
  const parsed = useMemo(() => value ? parseValueByType(value, type) : null, [value, type]);
163
164
  const [cursor, setCursor] = useState(() => parsed != null ? parsed : /* @__PURE__ */ new Date());
package/dist/Dropdown.js CHANGED
@@ -46,6 +46,7 @@ var import_framer_motion = require("framer-motion");
46
46
  var import_animations = require("./animations");
47
47
  var import_iconos = require("./iconos/index");
48
48
  var import_Button = __toESM(require("./Button"));
49
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
49
50
  const DropdownCtx = (0, import_react.createContext)(null);
50
51
  const useDropdown = () => {
51
52
  const ctx = (0, import_react.useContext)(DropdownCtx);
@@ -289,6 +290,7 @@ function Content({
289
290
  "aria-labelledby": labelId,
290
291
  ref: menuRef,
291
292
  onKeyDown,
293
+ "data-fx-overlay": "dropdown",
292
294
  variants: import_animations.popOver,
293
295
  initial: "initial",
294
296
  animate: "animate",
@@ -300,6 +302,7 @@ function Content({
300
302
  left: pos.left,
301
303
  maxHeight: pos.maxH,
302
304
  maxWidth: "calc(100vw - 16px)",
305
+ zIndex: PORTAL_OVERLAY_Z_INDEX,
303
306
  willChange: "transform, opacity"
304
307
  },
305
308
  className: [
package/dist/Dropdown.mjs CHANGED
@@ -15,6 +15,7 @@ import { AnimatePresence, motion } from "framer-motion";
15
15
  import { popOver, menuTransition } from "./animations.mjs";
16
16
  import { MenuPuntosVerticalIcon } from "./iconos/index.mjs";
17
17
  import Button from "./Button.mjs";
18
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
18
19
  const DropdownCtx = createContext(null);
19
20
  const useDropdown = () => {
20
21
  const ctx = useContext(DropdownCtx);
@@ -258,6 +259,7 @@ function Content({
258
259
  "aria-labelledby": labelId,
259
260
  ref: menuRef,
260
261
  onKeyDown,
262
+ "data-fx-overlay": "dropdown",
261
263
  variants: popOver,
262
264
  initial: "initial",
263
265
  animate: "animate",
@@ -269,6 +271,7 @@ function Content({
269
271
  left: pos.left,
270
272
  maxHeight: pos.maxH,
271
273
  maxWidth: "calc(100vw - 16px)",
274
+ zIndex: PORTAL_OVERLAY_Z_INDEX,
272
275
  willChange: "transform, opacity"
273
276
  },
274
277
  className: [
package/dist/Select.js CHANGED
@@ -44,6 +44,7 @@ const S = {
44
44
  md: { h: "h-10", text: "text-sm", radius: "rounded-2xl", padX: "px-3.5", itemPad: "px-3.5 py-2" },
45
45
  lg: { h: "h-11", text: "text-base", radius: "rounded-2xl", padX: "px-4", itemPad: "px-4 py-2.5" }
46
46
  };
47
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
47
48
  function ModernSelect({
48
49
  value,
49
50
  onChange,
@@ -266,6 +267,7 @@ function ModernSelect({
266
267
  left: menuPos.left,
267
268
  width: menuPos.width,
268
269
  maxWidth: "calc(100vw - 24px)",
270
+ zIndex: PORTAL_OVERLAY_Z_INDEX,
269
271
  willChange: "transform, opacity"
270
272
  },
271
273
  children: [
package/dist/Select.mjs CHANGED
@@ -11,6 +11,7 @@ const S = {
11
11
  md: { h: "h-10", text: "text-sm", radius: "rounded-2xl", padX: "px-3.5", itemPad: "px-3.5 py-2" },
12
12
  lg: { h: "h-11", text: "text-base", radius: "rounded-2xl", padX: "px-4", itemPad: "px-4 py-2.5" }
13
13
  };
14
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
14
15
  function ModernSelect({
15
16
  value,
16
17
  onChange,
@@ -233,6 +234,7 @@ function ModernSelect({
233
234
  left: menuPos.left,
234
235
  width: menuPos.width,
235
236
  maxWidth: "calc(100vw - 24px)",
237
+ zIndex: PORTAL_OVERLAY_Z_INDEX,
236
238
  willChange: "transform, opacity"
237
239
  },
238
240
  children: [
package/dist/TimePanel.js CHANGED
@@ -36,6 +36,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_react = require("react");
37
37
  var import_Button = __toESM(require("./Button"));
38
38
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
39
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
39
40
  function TimePopover({
40
41
  anchorRef,
41
42
  hh,
@@ -54,7 +55,7 @@ function TimePopover({
54
55
  left = Math.max(M, Math.min(left, window.innerWidth - (W + M)));
55
56
  let top = r.bottom + GAP;
56
57
  if (top + H > window.innerHeight) top = Math.max(M, r.top - GAP - H);
57
- return { position: "fixed", top, left, width: W, zIndex: 100001 };
58
+ return { position: "fixed", top, left, width: W, zIndex: PORTAL_OVERLAY_Z_INDEX };
58
59
  }, [anchorRef]);
59
60
  (0, import_react.useEffect)(() => {
60
61
  const stopInside = (e) => {
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useMemo, useRef } from "react";
4
4
  import Button from "./Button.mjs";
5
5
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
6
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
6
7
  function TimePopover({
7
8
  anchorRef,
8
9
  hh,
@@ -21,7 +22,7 @@ function TimePopover({
21
22
  left = Math.max(M, Math.min(left, window.innerWidth - (W + M)));
22
23
  let top = r.bottom + GAP;
23
24
  if (top + H > window.innerHeight) top = Math.max(M, r.top - GAP - H);
24
- return { position: "fixed", top, left, width: W, zIndex: 100001 };
25
+ return { position: "fixed", top, left, width: W, zIndex: PORTAL_OVERLAY_Z_INDEX };
25
26
  }, [anchorRef]);
26
27
  useEffect(() => {
27
28
  const stopInside = (e) => {
@@ -42,6 +42,7 @@ var import_animations = require("./animations");
42
42
  var import_Button = __toESM(require("./Button"));
43
43
  var import_Input = __toESM(require("./Input"));
44
44
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
45
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
45
46
  function TimePopover({
46
47
  anchorEl,
47
48
  hh,
@@ -142,7 +143,7 @@ function TimePopover({
142
143
  "data-dtf-pop": true,
143
144
  onPointerDownCapture: (e) => e.stopPropagation(),
144
145
  onKeyDown,
145
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
146
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
146
147
  className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
147
148
  children: [
148
149
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-2 text-sm font-medium text-slate-700 dark:text-slate-200", children: "Selecciona hora" }),
@@ -361,7 +362,7 @@ function WeekPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
361
362
  import_framer_motion.motion.div,
362
363
  {
363
364
  ref: popRef,
364
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
365
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
365
366
  variants: import_animations.popOver,
366
367
  initial: "initial",
367
368
  animate: "animate",
@@ -480,7 +481,7 @@ function MonthPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
480
481
  import_framer_motion.motion.div,
481
482
  {
482
483
  ref: popRef,
483
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
484
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
484
485
  variants: import_animations.popOver,
485
486
  initial: "initial",
486
487
  animate: "animate",
@@ -7,6 +7,7 @@ import { popOver, menuTransition } from "./animations.mjs";
7
7
  import Button from "./Button.mjs";
8
8
  import Input from "./Input.mjs";
9
9
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
10
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
10
11
  function TimePopover({
11
12
  anchorEl,
12
13
  hh,
@@ -107,7 +108,7 @@ function TimePopover({
107
108
  "data-dtf-pop": true,
108
109
  onPointerDownCapture: (e) => e.stopPropagation(),
109
110
  onKeyDown,
110
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
111
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
111
112
  className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
112
113
  children: [
113
114
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-sm font-medium text-slate-700 dark:text-slate-200", children: "Selecciona hora" }),
@@ -326,7 +327,7 @@ function WeekPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
326
327
  motion.div,
327
328
  {
328
329
  ref: popRef,
329
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
330
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
330
331
  variants: popOver,
331
332
  initial: "initial",
332
333
  animate: "animate",
@@ -445,7 +446,7 @@ function MonthPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
445
446
  motion.div,
446
447
  {
447
448
  ref: popRef,
448
- style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5, willChange: "transform, opacity" },
449
+ style: { position: "fixed", top: pos.top, left: pos.left, zIndex: PORTAL_OVERLAY_Z_INDEX, willChange: "transform, opacity" },
449
450
  variants: popOver,
450
451
  initial: "initial",
451
452
  animate: "animate",
@@ -41,6 +41,7 @@ var import_TimePopover = __toESM(require("./TimePopover"));
41
41
  var import_ActionIconButton = __toESM(require("./ActionIconButton"));
42
42
  var import_iconos = require("./iconos");
43
43
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
44
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
44
45
  function parseHHmm(v) {
45
46
  if (!v) return null;
46
47
  const [hh, mm] = String(v).split(":").map((x) => parseInt(x, 10));
@@ -142,10 +143,10 @@ function TimeRangeField({ value, onValueChange, portal = true, portalId, clearab
142
143
  const placeAbove = spaceAbove >= spaceBelow;
143
144
  if (placeAbove) {
144
145
  const top2 = Math.max(MARGIN, anchorRect.top - GAP);
145
- return { position: "fixed", width: W, top: top2, left, zIndex: 1e5, transform: "translateY(-100%)" };
146
+ return { position: "fixed", width: W, top: top2, left, zIndex: PORTAL_OVERLAY_Z_INDEX, transform: "translateY(-100%)" };
146
147
  }
147
148
  const top = Math.max(MARGIN, anchorRect.bottom + GAP);
148
- return { position: "fixed", width: W, top, left, zIndex: 1e5 };
149
+ return { position: "fixed", width: W, top, left, zIndex: PORTAL_OVERLAY_Z_INDEX };
149
150
  })();
150
151
  const commit = (f, t) => {
151
152
  let f2 = f, t2 = t;
@@ -8,6 +8,7 @@ import TimePopover from "./TimePopover.mjs";
8
8
  import ActionIconButton from "./ActionIconButton.mjs";
9
9
  import { ClockIcon } from "./iconos/index.mjs";
10
10
  const pad2 = (n) => n < 10 ? `0${n}` : String(n);
11
+ const PORTAL_OVERLAY_Z_INDEX = 2147483647;
11
12
  function parseHHmm(v) {
12
13
  if (!v) return null;
13
14
  const [hh, mm] = String(v).split(":").map((x) => parseInt(x, 10));
@@ -109,10 +110,10 @@ function TimeRangeField({ value, onValueChange, portal = true, portalId, clearab
109
110
  const placeAbove = spaceAbove >= spaceBelow;
110
111
  if (placeAbove) {
111
112
  const top2 = Math.max(MARGIN, anchorRect.top - GAP);
112
- return { position: "fixed", width: W, top: top2, left, zIndex: 1e5, transform: "translateY(-100%)" };
113
+ return { position: "fixed", width: W, top: top2, left, zIndex: PORTAL_OVERLAY_Z_INDEX, transform: "translateY(-100%)" };
113
114
  }
114
115
  const top = Math.max(MARGIN, anchorRect.bottom + GAP);
115
- return { position: "fixed", width: W, top, left, zIndex: 1e5 };
116
+ return { position: "fixed", width: W, top, left, zIndex: PORTAL_OVERLAY_Z_INDEX };
116
117
  })();
117
118
  const commit = (f, t) => {
118
119
  let f2 = f, t2 = t;
@@ -54,7 +54,7 @@ function FontSizeController({
54
54
  labels
55
55
  }) {
56
56
  var _a, _b, _c, _d, _e;
57
- const POPOVER_Z_INDEX = 10050;
57
+ const POPOVER_Z_INDEX = 2147483647;
58
58
  const [mounted, setMounted] = import_react.default.useState(false);
59
59
  import_react.default.useEffect(() => setMounted(true), []);
60
60
  const { fontScale, setFontScale, increaseFont, decreaseFont, resetFont } = (0, import_ThemeProvider.useTheme)();
@@ -21,7 +21,7 @@ function FontSizeController({
21
21
  labels
22
22
  }) {
23
23
  var _a, _b, _c, _d, _e;
24
- const POPOVER_Z_INDEX = 10050;
24
+ const POPOVER_Z_INDEX = 2147483647;
25
25
  const [mounted, setMounted] = React.useState(false);
26
26
  React.useEffect(() => setMounted(true), []);
27
27
  const { fontScale, setFontScale, increaseFont, decreaseFont, resetFont } = useTheme();
@@ -82,7 +82,7 @@ function ThemeController({
82
82
  labels
83
83
  }) {
84
84
  var _a, _b, _c, _d, _e, _f, _g;
85
- const POPOVER_Z_INDEX = 10050;
85
+ const POPOVER_Z_INDEX = 2147483647;
86
86
  const [mounted, setMounted] = import_react.default.useState(false);
87
87
  import_react.default.useEffect(() => setMounted(true), []);
88
88
  const { theme, setTheme, accent, setAccent } = (0, import_ThemeProvider.useTheme)();
@@ -269,6 +269,7 @@ function ThemeController({
269
269
  style: popStyle,
270
270
  role: "dialog",
271
271
  "aria-label": (_g = labels == null ? void 0 : labels.accentGroup) != null ? _g : "Color",
272
+ "data-fx-keep-open": true,
272
273
  className: [
273
274
  "rounded-2xl border border-[var(--border)] bg-[var(--card)] shadow-2xl ring-1 ring-black/5",
274
275
  "dark:ring-white/10",
@@ -49,7 +49,7 @@ function ThemeController({
49
49
  labels
50
50
  }) {
51
51
  var _a, _b, _c, _d, _e, _f, _g;
52
- const POPOVER_Z_INDEX = 10050;
52
+ const POPOVER_Z_INDEX = 2147483647;
53
53
  const [mounted, setMounted] = React.useState(false);
54
54
  React.useEffect(() => setMounted(true), []);
55
55
  const { theme, setTheme, accent, setAccent } = useTheme();
@@ -236,6 +236,7 @@ function ThemeController({
236
236
  style: popStyle,
237
237
  role: "dialog",
238
238
  "aria-label": (_g = labels == null ? void 0 : labels.accentGroup) != null ? _g : "Color",
239
+ "data-fx-keep-open": true,
239
240
  className: [
240
241
  "rounded-2xl border border-[var(--border)] bg-[var(--card)] shadow-2xl ring-1 ring-black/5",
241
242
  "dark:ring-white/10",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framepexls-ui-lib",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Componentes UI de Framepexls para React/Next.",