@pathscale/ui 2.6.1 → 2.6.3

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.
Files changed (41) hide show
  1. package/dist/components/_shared/overlayPosition.js +4 -4
  2. package/dist/components/calendar/Calendar.generated.js +2 -2
  3. package/dist/components/checkbox/Checkbox.generated.js +2 -2
  4. package/dist/components/color-field/ColorField.generated.js +2 -2
  5. package/dist/components/color-picker/ColorPicker.generated.js +2 -2
  6. package/dist/components/color-slider/ColorSlider.generated.js +2 -2
  7. package/dist/components/color-wheel-flower/ColorWheelFlower.generated.js +4 -4
  8. package/dist/components/combo-box/ComboBox.generated.js +5 -5
  9. package/dist/components/composer/Composer.generated.js +2 -2
  10. package/dist/components/date-range-picker/DateRangePicker.generated.js +2 -2
  11. package/dist/components/dialog/Dialog.generated.js +13 -13
  12. package/dist/components/drawer/Drawer.generated.js +22 -24
  13. package/dist/components/dropdown/Dropdown.generated.js +5 -5
  14. package/dist/components/immersive-landing/useImmersiveLanding.js +4 -4
  15. package/dist/components/input-otp/InputOTP.generated.js +4 -4
  16. package/dist/components/list-box/ListBoxItem.generated.js +2 -2
  17. package/dist/components/live-chat/LiveChatPanel.generated.js +4 -4
  18. package/dist/components/menu/MenuItem.generated.js +2 -2
  19. package/dist/components/metal-border/MetalBorder.generated.js +11 -10
  20. package/dist/components/popover/Popover.generated.js +4 -4
  21. package/dist/components/radio/Radio.css +17 -0
  22. package/dist/components/scroll-area/ScrollArea.generated.js +2 -2
  23. package/dist/components/scroll-area/useScrollArea.js +4 -4
  24. package/dist/components/select/Select.generated.js +6 -6
  25. package/dist/components/size-picker/sizeStore.js +2 -2
  26. package/dist/components/switch/Switch.css +16 -4
  27. package/dist/components/tabs/Tabs.generated.js +6 -6
  28. package/dist/components/theme-color-picker/ThemeColorPicker.generated.js +6 -6
  29. package/dist/components/theme-color-picker/hueShift.js +2 -2
  30. package/dist/components/toast/Toast.generated.js +4 -4
  31. package/dist/components/tooltip/Tooltip.generated.js +2 -2
  32. package/dist/components/video-preview/VideoPreview.generated.js +2 -2
  33. package/dist/hooks/date/usePickerOpenState.js +4 -4
  34. package/dist/hooks/table/useAnchoredOverlayPosition.js +4 -4
  35. package/dist/layouts.manifest.json +1 -1
  36. package/dist/motion/solid/AnimatedCollapse.js +2 -2
  37. package/dist/motion/solid/MotionDiv.js +2 -2
  38. package/dist/motion/solid/Presence.js +2 -2
  39. package/dist/primitives/streaming/useStreamingSubscription.js +2 -2
  40. package/dist/purge-manifest.json +12 -2
  41. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { createEffect, createSignal, onCleanup } from "solid-js";
1
+ import { createSignal, createTrackedEffect } from "solid-js";
2
2
  const oppositePlacement = {
3
3
  top: "bottom",
4
4
  bottom: "top",
@@ -36,7 +36,7 @@ const createOverlayPosition = (options)=>{
36
36
  visibility: "hidden"
37
37
  });
38
38
  const [resolvedPlacement, setResolvedPlacement] = createSignal(options.placement());
39
- createEffect(()=>{
39
+ createTrackedEffect(()=>{
40
40
  if (!options.open()) {
41
41
  setResolvedPlacement(options.placement());
42
42
  setStyle({
@@ -103,12 +103,12 @@ const createOverlayPosition = (options)=>{
103
103
  const resizeObserver = "u" > typeof ResizeObserver ? new ResizeObserver(schedule) : void 0;
104
104
  if (trigger) resizeObserver?.observe(trigger);
105
105
  resizeObserver?.observe(overlay);
106
- onCleanup(()=>{
106
+ return ()=>{
107
107
  cancelAnimationFrame(frame);
108
108
  window.removeEventListener("resize", schedule);
109
109
  window.removeEventListener("scroll", schedule, true);
110
110
  resizeObserver?.disconnect();
111
- });
111
+ };
112
112
  });
113
113
  return {
114
114
  style,
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Calendar.css";
4
- import { For, Show, createEffect, createMemo, createUniqueId, omit } from "solid-js";
4
+ import { For, Show, createMemo, createTrackedEffect, createUniqueId, omit } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { DAYS_PER_WEEK, addDays, compareDates, getToday, normalizeDate, parseDate, shiftDateByMonths, toISODate, useCalendarNavigation, useCalendarState, useDateSelection } from "../../hooks/date/index.js";
7
7
  import { CLASSES, componentRecipe } from "./Calendar.recipe.js";
@@ -41,7 +41,7 @@ const __solidLayoutCalendar = (_stable, p)=>{
41
41
  maxDate,
42
42
  isDateDisabled
43
43
  });
44
- createEffect(()=>{
44
+ createTrackedEffect(()=>{
45
45
  navigation.syncFocusedDate(focusReferenceDate());
46
46
  });
47
47
  const calendarState = useCalendarState({
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Checkbox.css";
4
- import { Show, createEffect, createSignal, omit, useContext } from "solid-js";
4
+ import { Show, createSignal, createTrackedEffect, omit, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { CheckboxGroupContext } from "../checkbox-group/context.js";
7
7
  import { CLASSES, componentRecipe } from "./Checkbox.recipe.js";
@@ -26,7 +26,7 @@ const __solidLayoutCheckbox = (_stable, p)=>{
26
26
  const variant = ()=>p.variant ?? group?.variant() ?? "primary";
27
27
  const name = ()=>p.name ?? group?.name();
28
28
  const hasContent = ()=>null != p.children || null != p.description;
29
- createEffect(()=>{
29
+ createTrackedEffect(()=>{
30
30
  if (!inputRef) return;
31
31
  inputRef.indeterminate = isIndeterminate();
32
32
  });
@@ -1,7 +1,7 @@
1
1
  import { mergeProps, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./ColorField.css";
4
- import { createEffect, createSignal, omit } from "solid-js";
4
+ import { createSignal, createTrackedEffect, omit } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { formatColor, parseColor } from "../color-wheel-flower/ColorUtils.js";
7
7
  import { CLASSES, componentRecipe } from "./ColorField.recipe.js";
@@ -29,7 +29,7 @@ const __solidLayoutColorField = (_stable, p)=>{
29
29
  const [lastValidValue, setLastValidValue] = createSignal(initialValue());
30
30
  const [isInvalid, setIsInvalid] = createSignal(false);
31
31
  const [isFocused, setIsFocused] = createSignal(false);
32
- createEffect(()=>{
32
+ createTrackedEffect(()=>{
33
33
  const nextValue = p.value;
34
34
  const nextFormat = format();
35
35
  if (isFocused()) return;
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./ColorPicker.css";
4
- import { createContext, createEffect, createMemo, createSignal, omit, useContext } from "solid-js";
4
+ import { createContext, createMemo, createSignal, createTrackedEffect, omit, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import color_area from "../color-area/index.js";
7
7
  import color_field from "../color-field/index.js";
@@ -266,7 +266,7 @@ const __solidLayoutColorPickerRoot = (_stable, p)=>{
266
266
  const others = omit(p, "class", "children", "value", "defaultValue", "onChange", "state", "dataTheme");
267
267
  const [internalState, setInternalState] = createSignal(toColorState(p.value ?? p.defaultValue) ?? fallbackState());
268
268
  const isControlled = ()=>void 0 !== p.value;
269
- createEffect(()=>{
269
+ createTrackedEffect(()=>{
270
270
  if (!isControlled()) return;
271
271
  const next = toColorState(p.value);
272
272
  if (next) setInternalState(next);
@@ -1,7 +1,7 @@
1
1
  import { mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./ColorSlider.css";
4
- import { createEffect, createMemo, createSignal, omit } from "solid-js";
4
+ import { createMemo, createSignal, createTrackedEffect, omit } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { CLASSES, componentRecipe } from "./ColorSlider.recipe.js";
7
7
  var _tmpl$ = /*#__PURE__*/ template("<div><div></div><div>");
@@ -31,7 +31,7 @@ const __solidLayoutColorSlider = (_stable, p)=>{
31
31
  const [isDragging, setIsDragging] = createSignal(false);
32
32
  let sliderRef;
33
33
  const isControlled = ()=>void 0 !== p.value;
34
- createEffect(()=>{
34
+ createTrackedEffect(()=>{
35
35
  const nextType = sliderType();
36
36
  const nextValue = p.value;
37
37
  if (void 0 === nextValue) {
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, memo, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./ColorWheelFlower.css";
4
- import { For, createEffect, createMemo, createSignal, onCleanup } from "solid-js";
4
+ import { For, createMemo, createSignal, createTrackedEffect, onCleanup } from "solid-js";
5
5
  import { clsx } from "clsx";
6
6
  import { twMerge } from "../../lib/twMerge.js";
7
7
  import color_swatch from "../color-swatch/index.js";
@@ -395,7 +395,7 @@ const __solidLayoutColorWheelFlower = (_stable, p)=>{
395
395
  hex: item.hex
396
396
  });
397
397
  };
398
- createEffect(()=>{
398
+ createTrackedEffect(()=>{
399
399
  const selected = selectedIndex();
400
400
  const current = context.color();
401
401
  if (null === selected) return;
@@ -461,7 +461,7 @@ const __solidLayoutColorWheelFlower = (_stable, p)=>{
461
461
  const color = colors()[index].rgb;
462
462
  return `0 0 10px rgba(255,255,255,0.16), 0 0 20px ${toRgba(color, 0.35)}`;
463
463
  });
464
- createEffect(()=>{
464
+ createTrackedEffect(()=>{
465
465
  const node = outerRingRef;
466
466
  if (!node) return;
467
467
  const target = outerRingTarget();
@@ -621,7 +621,7 @@ const __solidLayoutColorWheelFlower = (_stable, p)=>{
621
621
  delay
622
622
  };
623
623
  };
624
- createEffect(()=>{
624
+ createTrackedEffect(()=>{
625
625
  if (!motionRef) return;
626
626
  const target = dotTarget();
627
627
  const transition = dotTransition();
@@ -1,7 +1,7 @@
1
1
  import { createComponent, effect, insert, memo, mergeProps, ref, setAttribute, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./ComboBox.css";
4
- import { For, Show, createContext, createEffect, createMemo, createSignal, createUniqueId, omit, onCleanup, onSettled, useContext } from "solid-js";
4
+ import { For, Show, createContext, createMemo, createSignal, createTrackedEffect, createUniqueId, omit, onSettled, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { CLASSES, componentRecipe } from "./ComboBox.recipe.js";
7
7
  import { resolveState } from "../vocabulary.js";
@@ -141,13 +141,13 @@ const __solidLayoutComboBoxRoot = (_stable, p)=>{
141
141
  closeAndCommit();
142
142
  };
143
143
  const getOptionId = (key)=>`${listBoxId}-${toOptionKey(key, 0)}`;
144
- createEffect(()=>{
144
+ createTrackedEffect(()=>{
145
145
  if (void 0 !== p.inputValue) return;
146
146
  const selected = selectedItem();
147
147
  if (!selected) return;
148
148
  if (internalInputValue() !== selected.textValue) setInternalInputValue(selected.textValue);
149
149
  });
150
- createEffect(()=>{
150
+ createTrackedEffect(()=>{
151
151
  if (!isOpen()) return;
152
152
  const enabledItems = getEnabledItems();
153
153
  if (!enabledItems.length) return void setActiveKeySignal(null);
@@ -163,9 +163,9 @@ const __solidLayoutComboBoxRoot = (_stable, p)=>{
163
163
  closeAndCommit();
164
164
  };
165
165
  document.addEventListener("pointerdown", handlePointerDown);
166
- onCleanup(()=>{
166
+ return ()=>{
167
167
  document.removeEventListener("pointerdown", handlePointerDown);
168
- });
168
+ };
169
169
  });
170
170
  const hiddenValue = createMemo(()=>{
171
171
  const currentKey = selectedKey();
@@ -1,7 +1,7 @@
1
1
  import { createComponent, effect, insert, mergeProps, ref, setAttribute, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Composer.css";
4
- import { For, Show, createEffect, createSignal, onSettled } from "solid-js";
4
+ import { For, Show, createSignal, createTrackedEffect, onSettled } from "solid-js";
5
5
  import { isInvalid, resolveState } from "../vocabulary.js";
6
6
  import { composer } from "./Composer.recipe.js";
7
7
  import { afterValueLands, autosize, boundsFromRows, isSubmittable, newAutosizeMemo, shouldSubmit, viewportHeight } from "./Composer.interactions.js";
@@ -22,7 +22,7 @@ const __solidLayoutComposerLayout = (_stable, p)=>{
22
22
  if (p.autofocus) field?.focus();
23
23
  measure();
24
24
  });
25
- createEffect(()=>{
25
+ createTrackedEffect(()=>{
26
26
  value();
27
27
  measure();
28
28
  });
@@ -1,7 +1,7 @@
1
1
  import { createComponent, effect, insert, mergeProps, ref, setAttribute, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./DateRangePicker.css";
4
- import { Show, createEffect, createMemo, createUniqueId, omit } from "solid-js";
4
+ import { Show, createMemo, createTrackedEffect, createUniqueId, omit } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { formatDate, toISODate, usePickerOpenState, useRangeSelection } from "../../hooks/date/index.js";
7
7
  import calendar from "../calendar/index.js";
@@ -21,7 +21,7 @@ const __solidLayoutDateRangePicker = (_stable, p)=>{
21
21
  onOpenChange: ()=>p.onOpenChange,
22
22
  isDisabled
23
23
  });
24
- createEffect(()=>{
24
+ createTrackedEffect(()=>{
25
25
  if (openState.isOpen()) return;
26
26
  rangeSelection.clearPendingSelection();
27
27
  });
@@ -1,7 +1,7 @@
1
1
  import { Portal, createComponent, insert, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Dialog.css";
4
- import { Show, createContext, createEffect, createSignal, createUniqueId, omit, onCleanup, useContext } from "solid-js";
4
+ import { Show, createContext, createSignal, createTrackedEffect, createUniqueId, omit, onCleanup, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import "../_shared/material.css";
7
7
  import { CLASSES, componentRecipe } from "./Dialog.recipe.js";
@@ -83,7 +83,7 @@ const __solidLayoutDialogRoot = (_stable, p)=>{
83
83
  p.onOpenChange?.(next);
84
84
  };
85
85
  let exitTimer;
86
- createEffect(()=>{
86
+ createTrackedEffect(()=>{
87
87
  const open = isOpen();
88
88
  const state = animState();
89
89
  if (open) {
@@ -108,7 +108,7 @@ const __solidLayoutDialogRoot = (_stable, p)=>{
108
108
  if (exitTimer) clearTimeout(exitTimer);
109
109
  });
110
110
  let hasScrollLock = false;
111
- createEffect(()=>{
111
+ createTrackedEffect(()=>{
112
112
  const shouldLock = isVisibleState(animState());
113
113
  if (shouldLock && !hasScrollLock) {
114
114
  lockBodyScroll();
@@ -125,7 +125,7 @@ const __solidLayoutDialogRoot = (_stable, p)=>{
125
125
  }
126
126
  });
127
127
  let restoreFocusTarget = null;
128
- createEffect(()=>{
128
+ createTrackedEffect(()=>{
129
129
  const state = animState();
130
130
  const content = contentRef();
131
131
  if (!isVisibleState(state) || !content) return;
@@ -146,11 +146,11 @@ const __solidLayoutDialogRoot = (_stable, p)=>{
146
146
  if ("Tab" === event.key) trapFocus(event, content);
147
147
  };
148
148
  document.addEventListener("keydown", handleDocumentKeyDown);
149
- onCleanup(()=>{
149
+ return ()=>{
150
150
  document.removeEventListener("keydown", handleDocumentKeyDown);
151
- });
151
+ };
152
152
  });
153
- createEffect(()=>{
153
+ createTrackedEffect(()=>{
154
154
  if ("closed" !== animState()) return;
155
155
  if (!restoreFocusTarget) return;
156
156
  queueMicrotask(()=>{
@@ -414,12 +414,12 @@ const __solidLayoutDialogHeading = (_stable, p)=>{
414
414
  const context = useModalContext();
415
415
  const uniqueId = createUniqueId();
416
416
  const headingId = ()=>("string" == typeof p.id ? p.id : void 0) ?? `dialog-heading-${uniqueId}`;
417
- createEffect(()=>{
417
+ createTrackedEffect(()=>{
418
418
  const id = headingId();
419
419
  context.setLabelledBy(id);
420
- onCleanup(()=>{
420
+ return ()=>{
421
421
  if (context.labelledBy() === id) context.setLabelledBy(void 0);
422
- });
422
+ };
423
423
  });
424
424
  var _el$7 = _tmpl$4();
425
425
  spread(_el$7, mergeProps(others, {
@@ -472,12 +472,12 @@ const __solidLayoutDialogBody = (_stable, p)=>{
472
472
  const context = useModalContext();
473
473
  const uniqueId = createUniqueId();
474
474
  const bodyId = ()=>("string" == typeof p.id ? p.id : void 0) ?? `dialog-body-${uniqueId}`;
475
- createEffect(()=>{
475
+ createTrackedEffect(()=>{
476
476
  const id = bodyId();
477
477
  context.setDescribedBy(id);
478
- onCleanup(()=>{
478
+ return ()=>{
479
479
  if (context.describedBy() === id) context.setDescribedBy(void 0);
480
- });
480
+ };
481
481
  });
482
482
  var _el$9 = _tmpl$();
483
483
  spread(_el$9, mergeProps(others, {
@@ -1,7 +1,7 @@
1
1
  import { Portal, className, createComponent, delegateEvents, effect, insert, memo, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Drawer.css";
4
- import { Show, createEffect, createSignal, createUniqueId, omit, onCleanup } from "solid-js";
4
+ import { Show, createSignal, createTrackedEffect, createUniqueId, omit, onCleanup } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import "../_shared/material.css";
7
7
  import { focusFirst, isSidePlacement, isVisibleState, trapFocus } from "./Drawer.a11y.js";
@@ -63,7 +63,7 @@ const __solidLayoutDrawerRoot = (_stable, p)=>{
63
63
  setIsOpen(false);
64
64
  };
65
65
  let exitTimer;
66
- createEffect(()=>{
66
+ createTrackedEffect(()=>{
67
67
  const open = isOpen();
68
68
  const state = animState();
69
69
  if (open) {
@@ -88,7 +88,7 @@ const __solidLayoutDrawerRoot = (_stable, p)=>{
88
88
  if (exitTimer) clearTimeout(exitTimer);
89
89
  });
90
90
  let hasScrollLock = false;
91
- createEffect(()=>{
91
+ createTrackedEffect(()=>{
92
92
  const visible = isVisibleState(animState());
93
93
  if (visible && !hasScrollLock) {
94
94
  lockBodyScroll();
@@ -102,7 +102,7 @@ const __solidLayoutDrawerRoot = (_stable, p)=>{
102
102
  if (hasScrollLock) unlockBodyScroll();
103
103
  });
104
104
  let restoreFocusTarget = null;
105
- createEffect(()=>{
105
+ createTrackedEffect(()=>{
106
106
  const state = animState();
107
107
  const dialog = dialogRef();
108
108
  if (!isVisibleState(state) || !dialog) return;
@@ -123,9 +123,9 @@ const __solidLayoutDrawerRoot = (_stable, p)=>{
123
123
  if ("Tab" === event.key && trapFocusEnabled()) trapFocus(event, dialog);
124
124
  };
125
125
  document.addEventListener("keydown", onKeyDown);
126
- onCleanup(()=>document.removeEventListener("keydown", onKeyDown));
126
+ return ()=>document.removeEventListener("keydown", onKeyDown);
127
127
  });
128
- createEffect(()=>{
128
+ createTrackedEffect(()=>{
129
129
  if ("closed" !== animState() || !restoreFocusEnabled()) return;
130
130
  if (!restoreFocusTarget) return;
131
131
  queueMicrotask(()=>{
@@ -221,10 +221,10 @@ const __solidLayoutDrawerContent = (_stable, p)=>{
221
221
  const ctx = useDrawerContext();
222
222
  const placement = ()=>p.placement ?? ctx.placement();
223
223
  const scrollBehavior = ()=>p.scrollBehavior ?? ctx.scrollBehavior();
224
- createEffect(()=>{
224
+ createTrackedEffect(()=>{
225
225
  if (void 0 === p.placement) return;
226
226
  ctx.setPlacementOverride(p.placement);
227
- onCleanup(()=>ctx.setPlacementOverride(void 0));
227
+ return ()=>ctx.setPlacementOverride(void 0);
228
228
  });
229
229
  var _el$3 = _tmpl$();
230
230
  spread(_el$3, mergeProps(others, {
@@ -266,17 +266,15 @@ const __solidLayoutDrawerBackdrop = (_stable, p)=>{
266
266
  const others = omit(p, "children", "class", "dataTheme", "style", "variant", "isDismissable", "shouldCloseOnBackdropClick", "onClick");
267
267
  const ctx = useDrawerContext();
268
268
  const variant = ()=>p.variant ?? ctx.backdrop();
269
- createEffect(()=>{
270
- if (void 0 !== p.isDismissable) {
271
- ctx.setBackdropDismissableOverride(p.isDismissable);
272
- onCleanup(()=>ctx.setBackdropDismissableOverride(void 0));
273
- }
269
+ createTrackedEffect(()=>{
270
+ if (void 0 === p.isDismissable) return;
271
+ ctx.setBackdropDismissableOverride(p.isDismissable);
272
+ return ()=>ctx.setBackdropDismissableOverride(void 0);
274
273
  });
275
- createEffect(()=>{
276
- if (void 0 !== p.shouldCloseOnBackdropClick) {
277
- ctx.setBackdropCloseOnClickOverride(p.shouldCloseOnBackdropClick);
278
- onCleanup(()=>ctx.setBackdropCloseOnClickOverride(void 0));
279
- }
274
+ createTrackedEffect(()=>{
275
+ if (void 0 === p.shouldCloseOnBackdropClick) return;
276
+ ctx.setBackdropCloseOnClickOverride(p.shouldCloseOnBackdropClick);
277
+ return ()=>ctx.setBackdropCloseOnClickOverride(void 0);
280
278
  });
281
279
  const handleClick = (event)=>{
282
280
  if (event.target === event.currentTarget) ctx.requestClose("backdrop");
@@ -417,12 +415,12 @@ const __solidLayoutDrawerHeading = (_stable, p)=>{
417
415
  const ctx = useDrawerContext();
418
416
  const uid = createUniqueId();
419
417
  const headingId = ()=>p.id ?? `drawer-heading-${uid}`;
420
- createEffect(()=>{
418
+ createTrackedEffect(()=>{
421
419
  const id = headingId();
422
420
  ctx.setLabelledBy(id);
423
- onCleanup(()=>{
421
+ return ()=>{
424
422
  if (ctx.labelledBy() === id) ctx.setLabelledBy(void 0);
425
- });
423
+ };
426
424
  });
427
425
  var _el$7 = _tmpl$3();
428
426
  spread(_el$7, mergeProps(others, {
@@ -453,12 +451,12 @@ const __solidLayoutDrawerBody = (_stable, p)=>{
453
451
  const ctx = useDrawerContext();
454
452
  const uid = createUniqueId();
455
453
  const bodyId = ()=>p.id ?? `drawer-body-${uid}`;
456
- createEffect(()=>{
454
+ createTrackedEffect(()=>{
457
455
  const id = bodyId();
458
456
  ctx.setDescribedBy(id);
459
- onCleanup(()=>{
457
+ return ()=>{
460
458
  if (ctx.describedBy() === id) ctx.setDescribedBy(void 0);
461
- });
459
+ };
462
460
  });
463
461
  var _el$8 = _tmpl$();
464
462
  spread(_el$8, mergeProps(others, {
@@ -1,7 +1,7 @@
1
1
  import { Portal, createComponent, insert, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./Dropdown.css";
4
- import { Show, createContext, createEffect, createSignal, createUniqueId, omit, onCleanup, onSettled, useContext } from "solid-js";
4
+ import { Show, createContext, createSignal, createTrackedEffect, createUniqueId, omit, onCleanup, onSettled, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { createOverlayPosition } from "../_shared/overlayPosition.js";
7
7
  import { CLASSES, componentRecipe } from "./Dropdown.recipe.js";
@@ -93,14 +93,14 @@ const __solidLayoutDropdownRoot = (_stable, p)=>{
93
93
  setItems((prev)=>prev.filter((item)=>item.key !== key));
94
94
  if (focusedKey() === key) setFocusedKey(void 0);
95
95
  };
96
- createEffect(()=>{
96
+ createTrackedEffect(()=>{
97
97
  if (!open()) return;
98
98
  const request = focusRequest();
99
99
  if (!request) return;
100
100
  focusBoundary("first" === request ? "first" : "last");
101
101
  setFocusRequest(null);
102
102
  });
103
- createEffect(()=>{
103
+ createTrackedEffect(()=>{
104
104
  const list = items();
105
105
  const currentFocused = focusedKey();
106
106
  if (currentFocused && !list.some((item)=>item.key === currentFocused)) return void setFocusedKey(void 0);
@@ -119,9 +119,9 @@ const __solidLayoutDropdownRoot = (_stable, p)=>{
119
119
  setOpen(false);
120
120
  };
121
121
  document.addEventListener("pointerdown", handlePointerDown);
122
- onCleanup(()=>{
122
+ return ()=>{
123
123
  document.removeEventListener("pointerdown", handlePointerDown);
124
- });
124
+ };
125
125
  });
126
126
  return createComponent(DropdownContext, {
127
127
  value: {
@@ -1,4 +1,4 @@
1
- import { createEffect, createSignal, onCleanup, onSettled } from "solid-js";
1
+ import { createSignal, createTrackedEffect, onSettled } from "solid-js";
2
2
  function useImmersiveLanding(options) {
3
3
  const { pages, initialPage = pages[0], currentPage: controlledPage, transitionDuration = 400, onNavigate, onNavigationComplete, enableScrollNavigation = true } = options;
4
4
  const isControlled = !!controlledPage;
@@ -11,7 +11,7 @@ function useImmersiveLanding(options) {
11
11
  const isLastPage = ()=>currentIndex() === pages.length - 1;
12
12
  if (isControlled) {
13
13
  let prevPage = controlledPage();
14
- createEffect(()=>{
14
+ createTrackedEffect(()=>{
15
15
  const next = controlledPage();
16
16
  if (next !== prevPage && !isTransitioning()) {
17
17
  const fromIndex = pages.indexOf(prevPage);
@@ -128,12 +128,12 @@ function useImmersiveLanding(options) {
128
128
  passive: true
129
129
  });
130
130
  window.addEventListener("keydown", handleKeyDown);
131
- onCleanup(()=>{
131
+ return ()=>{
132
132
  window.removeEventListener("wheel", handleWheel);
133
133
  window.removeEventListener("touchstart", handleTouchStart);
134
134
  window.removeEventListener("touchend", handleTouchEnd);
135
135
  window.removeEventListener("keydown", handleKeyDown);
136
- });
136
+ };
137
137
  });
138
138
  return {
139
139
  activePage,
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, memo, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./InputOTP.css";
4
- import { For, Show, createContext, createEffect, createMemo, createSignal, omit, onSettled, useContext } from "solid-js";
4
+ import { For, Show, createContext, createMemo, createSignal, createTrackedEffect, omit, onSettled, useContext } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import { CLASSES, componentRecipe } from "./InputOTP.recipe.js";
7
7
  import { resolveState } from "../vocabulary.js";
@@ -119,16 +119,16 @@ const __solidLayoutInputOTPRoot = (_stable, p)=>{
119
119
  if (event.defaultPrevented || isDisabled()) return;
120
120
  if ("ArrowLeft" === event.key || "ArrowRight" === event.key || "Backspace" === event.key || "Delete" === event.key || "Home" === event.key || "End" === event.key) queueMicrotask(syncActiveFromInputCaret);
121
121
  };
122
- createEffect(()=>{
122
+ createTrackedEffect(()=>{
123
123
  const current = value();
124
124
  if (current.length > maxLength()) setValue(current.slice(0, maxLength()));
125
125
  });
126
- createEffect(()=>{
126
+ createTrackedEffect(()=>{
127
127
  if (void 0 !== p.value) return;
128
128
  const normalized = sanitizeValue(internalValue());
129
129
  if (normalized !== internalValue()) setInternalValue(normalized);
130
130
  });
131
- createEffect(()=>{
131
+ createTrackedEffect(()=>{
132
132
  if (!isFocused()) return;
133
133
  const active = clamp(activeIndex(), 0, maxLength());
134
134
  inputRef?.setSelectionRange(active, active);
@@ -1,6 +1,6 @@
1
1
  import { createComponent, effect, insert, memo, mergeProps, ref, setAttribute, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
- import { createContext, createEffect, createMemo, createUniqueId, omit, onCleanup, useContext } from "solid-js";
3
+ import { createContext, createMemo, createTrackedEffect, createUniqueId, omit, onCleanup, useContext } from "solid-js";
4
4
  import { twMerge } from "../../lib/twMerge.js";
5
5
  import { ListBoxContext } from "./context.js";
6
6
  import { CLASSES, componentRecipe } from "./ListBox.recipe.js";
@@ -96,7 +96,7 @@ const __solidLayoutListBoxItemRoot = (_stable, p)=>{
96
96
  if (event.defaultPrevented) return;
97
97
  if (listBox?.focusedKey() === key()) listBox.setFocusedKey(void 0);
98
98
  };
99
- createEffect(()=>{
99
+ createTrackedEffect(()=>{
100
100
  if (!listBox || !itemRef) return;
101
101
  listBox.registerItem({
102
102
  key: key(),
@@ -1,7 +1,7 @@
1
1
  import { createComponent, insert, memo, mergeProps, ref, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
3
  import "./LiveChat.css";
4
- import { For, Show, createEffect, createSignal, omit, onCleanup } from "solid-js";
4
+ import { For, Show, createSignal, createTrackedEffect, omit, onCleanup } from "solid-js";
5
5
  import { twMerge } from "../../lib/twMerge.js";
6
6
  import button_0 from "../button/index.js";
7
7
  import input from "../input/index.js";
@@ -75,11 +75,11 @@ const __solidLayoutLiveChatPanel = (_stable, p)=>{
75
75
  let hasObservedMessages = false;
76
76
  let scrollRafId;
77
77
  let scrollRafNestedId;
78
- createEffect(()=>{
78
+ createTrackedEffect(()=>{
79
79
  if (p.mockMode) setInternalMessages(getMockMessages());
80
80
  else if (p.messages) setInternalMessages(p.messages);
81
81
  });
82
- createEffect(()=>{
82
+ createTrackedEffect(()=>{
83
83
  if (!p.mockMode && p.messages) setInternalMessages(p.messages);
84
84
  });
85
85
  const isSending = ()=>p.isSending ?? sending();
@@ -113,7 +113,7 @@ const __solidLayoutLiveChatPanel = (_stable, p)=>{
113
113
  });
114
114
  });
115
115
  };
116
- createEffect(()=>{
116
+ createTrackedEffect(()=>{
117
117
  const messages = internalMessages();
118
118
  const nextMessageCount = messages.length;
119
119
  const nextLastMessageId = messages[messages.length - 1]?.messageId;
@@ -1,6 +1,6 @@
1
1
  import { createComponent, effect, insert, memo, mergeProps, ref, setAttribute, spread, template } from "@solidjs/web";
2
2
  import { defineComponent } from "solid-layouts/solid-2/application-boundary";
3
- import { createContext, createEffect, createMemo, createUniqueId, omit, onCleanup, useContext } from "solid-js";
3
+ import { createContext, createMemo, createTrackedEffect, createUniqueId, omit, onCleanup, useContext } from "solid-js";
4
4
  import { twMerge } from "../../lib/twMerge.js";
5
5
  import { MenuContext } from "./context.js";
6
6
  import { CLASSES, componentRecipe } from "./Menu.recipe.js";
@@ -110,7 +110,7 @@ const __solidLayoutMenuItemRoot = (_stable, p)=>{
110
110
  if (event.defaultPrevented) return;
111
111
  if (menu?.focusedKey() === key()) menu.setFocusedKey(void 0);
112
112
  };
113
- createEffect(()=>{
113
+ createTrackedEffect(()=>{
114
114
  if (!menu || !itemRef) return;
115
115
  menu.registerItem({
116
116
  key: key(),