@remotion/design 4.0.533 → 4.0.535

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 (2) hide show
  1. package/dist/esm/index.mjs +175 -478
  2. package/package.json +6 -6
@@ -910,7 +910,7 @@ function useComposedRefs2(...refs) {
910
910
 
911
911
  // ../../node_modules/.bun/@radix-ui+react-slot@1.1.0+09a4a3ac15cb54ba/node_modules/@radix-ui/react-slot/dist/index.mjs
912
912
  import * as React10 from "react";
913
- import { Fragment as Fragment5, jsx as jsx14 } from "react/jsx-runtime";
913
+ import { Fragment as Fragment4, jsx as jsx14 } from "react/jsx-runtime";
914
914
  var Slot2 = React10.forwardRef((props, forwardedRef) => {
915
915
  const { children, ...slotProps } = props;
916
916
  const childrenArray = React10.Children.toArray(children);
@@ -944,7 +944,7 @@ var SlotClone = React10.forwardRef((props, forwardedRef) => {
944
944
  });
945
945
  SlotClone.displayName = "SlotClone";
946
946
  var Slottable2 = ({ children }) => {
947
- return /* @__PURE__ */ jsx14(Fragment5, { children });
947
+ return /* @__PURE__ */ jsx14(Fragment4, { children });
948
948
  };
949
949
  function isSlottable2(child) {
950
950
  return React10.isValidElement(child) && child.type === Slottable2;
@@ -1355,7 +1355,7 @@ var FocusScope = React18.forwardRef((props, forwardedRef) => {
1355
1355
  onUnmountAutoFocus: onUnmountAutoFocusProp,
1356
1356
  ...scopeProps
1357
1357
  } = props;
1358
- const [container2, setContainer] = React18.useState(null);
1358
+ const [container, setContainer] = React18.useState(null);
1359
1359
  const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
1360
1360
  const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
1361
1361
  const lastFocusedElementRef = React18.useRef(null);
@@ -1372,21 +1372,21 @@ var FocusScope = React18.forwardRef((props, forwardedRef) => {
1372
1372
  React18.useEffect(() => {
1373
1373
  if (trapped) {
1374
1374
  let handleFocusIn2 = function(event) {
1375
- if (focusScope.paused || !container2)
1375
+ if (focusScope.paused || !container)
1376
1376
  return;
1377
1377
  const target = event.target;
1378
- if (container2.contains(target)) {
1378
+ if (container.contains(target)) {
1379
1379
  lastFocusedElementRef.current = target;
1380
1380
  } else {
1381
1381
  focus(lastFocusedElementRef.current, { select: true });
1382
1382
  }
1383
1383
  }, handleFocusOut2 = function(event) {
1384
- if (focusScope.paused || !container2)
1384
+ if (focusScope.paused || !container)
1385
1385
  return;
1386
1386
  const relatedTarget = event.relatedTarget;
1387
1387
  if (relatedTarget === null)
1388
1388
  return;
1389
- if (!container2.contains(relatedTarget)) {
1389
+ if (!container.contains(relatedTarget)) {
1390
1390
  focus(lastFocusedElementRef.current, { select: true });
1391
1391
  }
1392
1392
  }, handleMutations2 = function(mutations) {
@@ -1395,53 +1395,53 @@ var FocusScope = React18.forwardRef((props, forwardedRef) => {
1395
1395
  return;
1396
1396
  for (const mutation of mutations) {
1397
1397
  if (mutation.removedNodes.length > 0)
1398
- focus(container2);
1398
+ focus(container);
1399
1399
  }
1400
1400
  };
1401
1401
  var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
1402
1402
  document.addEventListener("focusin", handleFocusIn2);
1403
1403
  document.addEventListener("focusout", handleFocusOut2);
1404
1404
  const mutationObserver = new MutationObserver(handleMutations2);
1405
- if (container2)
1406
- mutationObserver.observe(container2, { childList: true, subtree: true });
1405
+ if (container)
1406
+ mutationObserver.observe(container, { childList: true, subtree: true });
1407
1407
  return () => {
1408
1408
  document.removeEventListener("focusin", handleFocusIn2);
1409
1409
  document.removeEventListener("focusout", handleFocusOut2);
1410
1410
  mutationObserver.disconnect();
1411
1411
  };
1412
1412
  }
1413
- }, [trapped, container2, focusScope.paused]);
1413
+ }, [trapped, container, focusScope.paused]);
1414
1414
  React18.useEffect(() => {
1415
- if (container2) {
1415
+ if (container) {
1416
1416
  focusScopesStack.add(focusScope);
1417
1417
  const previouslyFocusedElement = document.activeElement;
1418
- const hasFocusedCandidate = container2.contains(previouslyFocusedElement);
1418
+ const hasFocusedCandidate = container.contains(previouslyFocusedElement);
1419
1419
  if (!hasFocusedCandidate) {
1420
1420
  const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
1421
- container2.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
1422
- container2.dispatchEvent(mountEvent);
1421
+ container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
1422
+ container.dispatchEvent(mountEvent);
1423
1423
  if (!mountEvent.defaultPrevented) {
1424
- focusFirst(removeLinks(getTabbableCandidates(container2)), { select: true });
1424
+ focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
1425
1425
  if (document.activeElement === previouslyFocusedElement) {
1426
- focus(container2);
1426
+ focus(container);
1427
1427
  }
1428
1428
  }
1429
1429
  }
1430
1430
  return () => {
1431
- container2.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
1431
+ container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
1432
1432
  setTimeout(() => {
1433
1433
  const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
1434
- container2.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1435
- container2.dispatchEvent(unmountEvent);
1434
+ container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1435
+ container.dispatchEvent(unmountEvent);
1436
1436
  if (!unmountEvent.defaultPrevented) {
1437
1437
  focus(previouslyFocusedElement ?? document.body, { select: true });
1438
1438
  }
1439
- container2.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1439
+ container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1440
1440
  focusScopesStack.remove(focusScope);
1441
1441
  }, 0);
1442
1442
  };
1443
1443
  }
1444
- }, [container2, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
1444
+ }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
1445
1445
  const handleKeyDown = React18.useCallback((event) => {
1446
1446
  if (!loop && !trapped)
1447
1447
  return;
@@ -1450,11 +1450,11 @@ var FocusScope = React18.forwardRef((props, forwardedRef) => {
1450
1450
  const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
1451
1451
  const focusedElement = document.activeElement;
1452
1452
  if (isTabKey && focusedElement) {
1453
- const container22 = event.currentTarget;
1454
- const [first, last] = getTabbableEdges(container22);
1453
+ const container2 = event.currentTarget;
1454
+ const [first, last] = getTabbableEdges(container2);
1455
1455
  const hasTabbableElementsInside = first && last;
1456
1456
  if (!hasTabbableElementsInside) {
1457
- if (focusedElement === container22)
1457
+ if (focusedElement === container2)
1458
1458
  event.preventDefault();
1459
1459
  } else {
1460
1460
  if (!event.shiftKey && focusedElement === last) {
@@ -1480,15 +1480,15 @@ function focusFirst(candidates, { select = false } = {}) {
1480
1480
  return;
1481
1481
  }
1482
1482
  }
1483
- function getTabbableEdges(container2) {
1484
- const candidates = getTabbableCandidates(container2);
1485
- const first = findVisible(candidates, container2);
1486
- const last = findVisible(candidates.reverse(), container2);
1483
+ function getTabbableEdges(container) {
1484
+ const candidates = getTabbableCandidates(container);
1485
+ const first = findVisible(candidates, container);
1486
+ const last = findVisible(candidates.reverse(), container);
1487
1487
  return [first, last];
1488
1488
  }
1489
- function getTabbableCandidates(container2) {
1489
+ function getTabbableCandidates(container) {
1490
1490
  const nodes = [];
1491
- const walker = document.createTreeWalker(container2, NodeFilter.SHOW_ELEMENT, {
1491
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
1492
1492
  acceptNode: (node) => {
1493
1493
  const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
1494
1494
  if (node.disabled || node.hidden || isHiddenInput)
@@ -1500,9 +1500,9 @@ function getTabbableCandidates(container2) {
1500
1500
  nodes.push(walker.currentNode);
1501
1501
  return nodes;
1502
1502
  }
1503
- function findVisible(elements, container2) {
1503
+ function findVisible(elements, container) {
1504
1504
  for (const element of elements) {
1505
- if (!isHidden(element, { upTo: container2 }))
1505
+ if (!isHidden(element, { upTo: container }))
1506
1506
  return element;
1507
1507
  }
1508
1508
  }
@@ -1954,11 +1954,11 @@ var arrow = (options) => ({
1954
1954
  const minPadding = min(paddingObject[minProp], largestPossiblePadding);
1955
1955
  const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
1956
1956
  const min$1 = minPadding;
1957
- const max2 = clientSize - arrowDimensions[length] - maxPadding;
1957
+ const max = clientSize - arrowDimensions[length] - maxPadding;
1958
1958
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
1959
- const offset = clamp2(min$1, center, max2);
1959
+ const offset = clamp2(min$1, center, max);
1960
1960
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
1961
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
1961
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
1962
1962
  return {
1963
1963
  [axis]: coords[axis] + alignmentOffset,
1964
1964
  data: {
@@ -2010,7 +2010,7 @@ var flip = function(options) {
2010
2010
  if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
2011
2011
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
2012
2012
  }
2013
- const placements2 = [initialPlacement, ...fallbackPlacements];
2013
+ const placements = [initialPlacement, ...fallbackPlacements];
2014
2014
  const overflow = await detectOverflow(state, detectOverflowOptions);
2015
2015
  const overflows = [];
2016
2016
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
@@ -2025,10 +2025,10 @@ var flip = function(options) {
2025
2025
  placement,
2026
2026
  overflows
2027
2027
  }];
2028
- if (!overflows.every((side2) => side2 <= 0)) {
2028
+ if (!overflows.every((side) => side <= 0)) {
2029
2029
  var _middlewareData$flip2, _overflowsData$filter;
2030
2030
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
2031
- const nextPlacement = placements2[nextIndex];
2031
+ const nextPlacement = placements[nextIndex];
2032
2032
  if (nextPlacement) {
2033
2033
  return {
2034
2034
  data: {
@@ -2040,20 +2040,20 @@ var flip = function(options) {
2040
2040
  }
2041
2041
  };
2042
2042
  }
2043
- let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
2043
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
2044
2044
  if (!resetPlacement) {
2045
2045
  switch (fallbackStrategy) {
2046
2046
  case "bestFit": {
2047
2047
  var _overflowsData$filter2;
2048
- const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
2048
+ const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
2049
2049
  if (hasFallbackAxisSideDirection) {
2050
- const currentSideAxis = getSideAxis(d2.placement);
2050
+ const currentSideAxis = getSideAxis(d.placement);
2051
2051
  return currentSideAxis === initialSideAxis || currentSideAxis === "y";
2052
2052
  }
2053
2053
  return true;
2054
- }).map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
2055
- if (placement2) {
2056
- resetPlacement = placement2;
2054
+ }).map((d) => [d.placement, d.overflows.filter((overflow) => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
2055
+ if (placement) {
2056
+ resetPlacement = placement;
2057
2057
  }
2058
2058
  break;
2059
2059
  }
@@ -2221,12 +2221,12 @@ var shift = function(options) {
2221
2221
  limiter = {
2222
2222
  fn: (_ref) => {
2223
2223
  let {
2224
- x: x2,
2225
- y: y2
2224
+ x,
2225
+ y
2226
2226
  } = _ref;
2227
2227
  return {
2228
- x: x2,
2229
- y: y2
2228
+ x,
2229
+ y
2230
2230
  };
2231
2231
  }
2232
2232
  },
@@ -2244,16 +2244,16 @@ var shift = function(options) {
2244
2244
  if (checkMainAxis) {
2245
2245
  const minSide = mainAxis === "y" ? "top" : "left";
2246
2246
  const maxSide = mainAxis === "y" ? "bottom" : "right";
2247
- const min2 = mainAxisCoord + overflow[minSide];
2248
- const max2 = mainAxisCoord - overflow[maxSide];
2249
- mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
2247
+ const min = mainAxisCoord + overflow[minSide];
2248
+ const max = mainAxisCoord - overflow[maxSide];
2249
+ mainAxisCoord = clamp2(min, mainAxisCoord, max);
2250
2250
  }
2251
2251
  if (checkCrossAxis) {
2252
2252
  const minSide = crossAxis === "y" ? "top" : "left";
2253
2253
  const maxSide = crossAxis === "y" ? "bottom" : "right";
2254
- const min2 = crossAxisCoord + overflow[minSide];
2255
- const max2 = crossAxisCoord - overflow[maxSide];
2256
- crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
2254
+ const min = crossAxisCoord + overflow[minSide];
2255
+ const max = crossAxisCoord - overflow[maxSide];
2256
+ crossAxisCoord = clamp2(min, crossAxisCoord, max);
2257
2257
  }
2258
2258
  const limitedCoords = limiter.fn({
2259
2259
  ...state,
@@ -2285,7 +2285,7 @@ var limitShift = function(options) {
2285
2285
  middlewareData
2286
2286
  } = state;
2287
2287
  const {
2288
- offset: offset2 = 0,
2288
+ offset = 0,
2289
2289
  mainAxis: checkMainAxis = true,
2290
2290
  crossAxis: checkCrossAxis = true
2291
2291
  } = evaluate(options, state);
@@ -2297,7 +2297,7 @@ var limitShift = function(options) {
2297
2297
  const mainAxis = getOppositeAxis(crossAxis);
2298
2298
  let mainAxisCoord = coords[mainAxis];
2299
2299
  let crossAxisCoord = coords[crossAxis];
2300
- const rawOffset = evaluate(offset2, state);
2300
+ const rawOffset = evaluate(offset, state);
2301
2301
  const computedOffset = typeof rawOffset === "number" ? {
2302
2302
  mainAxis: rawOffset,
2303
2303
  crossAxis: 0
@@ -3181,7 +3181,7 @@ function useFloating(options) {
3181
3181
  placement = "bottom",
3182
3182
  strategy = "absolute",
3183
3183
  middleware = [],
3184
- platform: platform2,
3184
+ platform,
3185
3185
  elements: {
3186
3186
  reference: externalReference,
3187
3187
  floating: externalFloating
@@ -3223,7 +3223,7 @@ function useFloating(options) {
3223
3223
  const dataRef = React21.useRef(data);
3224
3224
  const hasWhileElementsMounted = whileElementsMounted != null;
3225
3225
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
3226
- const platformRef = useLatestRef(platform2);
3226
+ const platformRef = useLatestRef(platform);
3227
3227
  const update = React21.useCallback(() => {
3228
3228
  if (!referenceRef.current || !floatingRef.current) {
3229
3229
  return;
@@ -3236,9 +3236,9 @@ function useFloating(options) {
3236
3236
  if (platformRef.current) {
3237
3237
  config.platform = platformRef.current;
3238
3238
  }
3239
- computePosition2(referenceRef.current, floatingRef.current, config).then((data2) => {
3239
+ computePosition2(referenceRef.current, floatingRef.current, config).then((data) => {
3240
3240
  const fullData = {
3241
- ...data2,
3241
+ ...data,
3242
3242
  isPositioned: true
3243
3243
  };
3244
3244
  if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
@@ -3252,8 +3252,8 @@ function useFloating(options) {
3252
3252
  index(() => {
3253
3253
  if (open === false && dataRef.current.isPositioned) {
3254
3254
  dataRef.current.isPositioned = false;
3255
- setData((data2) => ({
3256
- ...data2,
3255
+ setData((data) => ({
3256
+ ...data,
3257
3257
  isPositioned: false
3258
3258
  }));
3259
3259
  }
@@ -3403,7 +3403,7 @@ var Root = Arrow;
3403
3403
  // ../../node_modules/.bun/@radix-ui+react-use-size@1.1.0+09a4a3ac15cb54ba/node_modules/@radix-ui/react-use-size/dist/index.mjs
3404
3404
  import * as React23 from "react";
3405
3405
  function useSize(element) {
3406
- const [size4, setSize] = React23.useState(undefined);
3406
+ const [size, setSize] = React23.useState(undefined);
3407
3407
  useLayoutEffect2(() => {
3408
3408
  if (element) {
3409
3409
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
@@ -3434,7 +3434,7 @@ function useSize(element) {
3434
3434
  setSize(undefined);
3435
3435
  }
3436
3436
  }, [element]);
3437
- return size4;
3437
+ return size;
3438
3438
  }
3439
3439
 
3440
3440
  // ../../node_modules/.bun/@radix-ui+react-popper@1.2.0+f178f9b1194b24ba/node_modules/@radix-ui/react-popper/dist/index.mjs
@@ -3482,8 +3482,8 @@ var PopperContent = React24.forwardRef((props, forwardedRef) => {
3482
3482
  const context = usePopperContext(CONTENT_NAME, __scopePopper);
3483
3483
  const [content, setContent] = React24.useState(null);
3484
3484
  const composedRefs = useComposedRefs2(forwardedRef, (node) => setContent(node));
3485
- const [arrow4, setArrow] = React24.useState(null);
3486
- const arrowSize = useSize(arrow4);
3485
+ const [arrow, setArrow] = React24.useState(null);
3486
+ const arrowSize = useSize(arrow);
3487
3487
  const arrowWidth = arrowSize?.width ?? 0;
3488
3488
  const arrowHeight = arrowSize?.height ?? 0;
3489
3489
  const desiredPlacement = side + (align !== "center" ? "-" + align : "");
@@ -3527,7 +3527,7 @@ var PopperContent = React24.forwardRef((props, forwardedRef) => {
3527
3527
  contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
3528
3528
  }
3529
3529
  }),
3530
- arrow4 && arrow3({ element: arrow4, padding: arrowPadding }),
3530
+ arrow && arrow3({ element: arrow, padding: arrowPadding }),
3531
3531
  transformOrigin({ arrowWidth, arrowHeight }),
3532
3532
  hideWhenDetached && hide3({ strategy: "referenceHidden", ...detectOverflowOptions })
3533
3533
  ]
@@ -3681,8 +3681,8 @@ var Portal = React25.forwardRef((props, forwardedRef) => {
3681
3681
  const { container: containerProp, ...portalProps } = props;
3682
3682
  const [mounted, setMounted] = React25.useState(false);
3683
3683
  useLayoutEffect2(() => setMounted(true), []);
3684
- const container2 = containerProp || mounted && globalThis?.document?.body;
3685
- return container2 ? ReactDOM3.createPortal(/* @__PURE__ */ jsx22(Primitive.div, { ...portalProps, ref: forwardedRef }), container2) : null;
3684
+ const container = containerProp || mounted && globalThis?.document?.body;
3685
+ return container ? ReactDOM3.createPortal(/* @__PURE__ */ jsx22(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
3686
3686
  });
3687
3687
  Portal.displayName = PORTAL_NAME;
3688
3688
 
@@ -3933,6 +3933,8 @@ var zeroRightClassName = "right-scroll-bar-position";
3933
3933
  var fullWidthClassName = "width-before-scroll-bar";
3934
3934
  var noScrollbarsClassName = "with-scroll-bars-hidden";
3935
3935
  var removedBarSizeVariable = "--removed-body-scroll-bar-size";
3936
+ // ../../node_modules/.bun/use-callback-ref@1.3.3+09a4a3ac15cb54ba/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3937
+ import * as React29 from "react";
3936
3938
 
3937
3939
  // ../../node_modules/.bun/use-callback-ref@1.3.3+09a4a3ac15cb54ba/node_modules/use-callback-ref/dist/es2015/assignRef.js
3938
3940
  function assignRef(ref, value) {
@@ -3970,7 +3972,6 @@ function useCallbackRef2(initialValue, callback) {
3970
3972
  }
3971
3973
 
3972
3974
  // ../../node_modules/.bun/use-callback-ref@1.3.3+09a4a3ac15cb54ba/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3973
- import * as React29 from "react";
3974
3975
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React29.useLayoutEffect : React29.useEffect;
3975
3976
  var currentValues = new WeakMap;
3976
3977
  function useMergeRefs(refs, defaultValue) {
@@ -4055,9 +4056,9 @@ function innerCreateMedium(defaults, middleware) {
4055
4056
  pendingQueue = buffer;
4056
4057
  }
4057
4058
  var executeQueue = function() {
4058
- var cbs2 = pendingQueue;
4059
+ var cbs = pendingQueue;
4059
4060
  pendingQueue = [];
4060
- cbs2.forEach(cb);
4061
+ cbs.forEach(cb);
4061
4062
  };
4062
4063
  var cycle = function() {
4063
4064
  return Promise.resolve().then(executeQueue);
@@ -4118,10 +4119,10 @@ var RemoveScroll = React31.forwardRef(function(props, parentRef) {
4118
4119
  onTouchMoveCapture: nothing
4119
4120
  }), callbacks = _a[0], setCallbacks = _a[1];
4120
4121
  var { forwardProps, children, className, removeScrollBar, enabled, shards, sideCar, noIsolation, inert, allowPinchZoom, as: _b } = props, Container = _b === undefined ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
4121
- var SideCar2 = sideCar;
4122
+ var SideCar = sideCar;
4122
4123
  var containerRef = useMergeRefs([ref, parentRef]);
4123
4124
  var containerProps = __assign(__assign({}, rest), callbacks);
4124
- return React31.createElement(React31.Fragment, null, enabled && React31.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React31.cloneElement(React31.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React31.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
4125
+ return React31.createElement(React31.Fragment, null, enabled && React31.createElement(SideCar, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React31.cloneElement(React31.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React31.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
4125
4126
  });
4126
4127
  RemoveScroll.defaultProps = {
4127
4128
  enabled: true,
@@ -4377,8 +4378,8 @@ var locationCouldBeScrolled = function(axis, node) {
4377
4378
  }
4378
4379
  var isScrollable = elementCouldBeScrolled(axis, current);
4379
4380
  if (isScrollable) {
4380
- var _a = getScrollVariables(axis, current), s = _a[1], d2 = _a[2];
4381
- if (s > d2) {
4381
+ var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
4382
+ if (s > d) {
4382
4383
  return true;
4383
4384
  }
4384
4385
  }
@@ -4469,7 +4470,7 @@ function RemoveScrollSideCar(props) {
4469
4470
  var touchStartRef = React34.useRef([0, 0]);
4470
4471
  var activeAxis = React34.useRef();
4471
4472
  var id = React34.useState(idCounter++)[0];
4472
- var Style2 = React34.useState(styleSingleton)[0];
4473
+ var Style = React34.useState(styleSingleton)[0];
4473
4474
  var lastProps = React34.useRef(props);
4474
4475
  React34.useEffect(function() {
4475
4476
  lastProps.current = props;
@@ -4528,7 +4529,7 @@ function RemoveScrollSideCar(props) {
4528
4529
  }, []);
4529
4530
  var shouldPrevent = React34.useCallback(function(_event) {
4530
4531
  var event = _event;
4531
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
4532
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
4532
4533
  return;
4533
4534
  }
4534
4535
  var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
@@ -4573,7 +4574,7 @@ function RemoveScrollSideCar(props) {
4573
4574
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
4574
4575
  }, []);
4575
4576
  React34.useEffect(function() {
4576
- lockStack.push(Style2);
4577
+ lockStack.push(Style);
4577
4578
  props.setCallbacks({
4578
4579
  onScrollCapture: scrollWheel,
4579
4580
  onWheelCapture: scrollWheel,
@@ -4584,7 +4585,7 @@ function RemoveScrollSideCar(props) {
4584
4585
  document.addEventListener("touchstart", scrollTouchStart, nonPassive);
4585
4586
  return function() {
4586
4587
  lockStack = lockStack.filter(function(inst) {
4587
- return inst !== Style2;
4588
+ return inst !== Style;
4588
4589
  });
4589
4590
  document.removeEventListener("wheel", shouldPrevent, nonPassive);
4590
4591
  document.removeEventListener("touchmove", shouldPrevent, nonPassive);
@@ -4592,7 +4593,7 @@ function RemoveScrollSideCar(props) {
4592
4593
  };
4593
4594
  }, []);
4594
4595
  var { removeScrollBar, inert } = props;
4595
- return React34.createElement(React34.Fragment, null, inert ? React34.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React34.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
4596
+ return React34.createElement(React34.Fragment, null, inert ? React34.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? React34.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
4596
4597
  }
4597
4598
  function getOutermostShadowParent(node) {
4598
4599
  var shadowParent = null;
@@ -4617,7 +4618,7 @@ ReactRemoveScroll.classNames = RemoveScroll.classNames;
4617
4618
  var Combination_default = ReactRemoveScroll;
4618
4619
 
4619
4620
  // ../../node_modules/.bun/@radix-ui+react-select@2.1.1+f178f9b1194b24ba/node_modules/@radix-ui/react-select/dist/index.mjs
4620
- import { Fragment as Fragment8, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
4621
+ import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
4621
4622
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
4622
4623
  var SELECTION_KEYS = [" ", "Enter"];
4623
4624
  var SELECT_NAME = "Select";
@@ -4796,7 +4797,7 @@ var SelectValue = React36.forwardRef((props, forwardedRef) => {
4796
4797
  ...valueProps,
4797
4798
  ref: composedRefs,
4798
4799
  style: { pointerEvents: "none" },
4799
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx24(Fragment8, { children: placeholder }) : children
4800
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx24(Fragment7, { children: placeholder }) : children
4800
4801
  });
4801
4802
  });
4802
4803
  SelectValue.displayName = VALUE_NAME;
@@ -4861,7 +4862,7 @@ var SelectContentImpl = React36.forwardRef((props, forwardedRef) => {
4861
4862
  return hideOthers(content);
4862
4863
  }, [content]);
4863
4864
  useFocusGuards();
4864
- const focusFirst2 = React36.useCallback((candidates) => {
4865
+ const focusFirst = React36.useCallback((candidates) => {
4865
4866
  const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
4866
4867
  const [lastItem] = restItems.slice(-1);
4867
4868
  const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
@@ -4878,7 +4879,7 @@ var SelectContentImpl = React36.forwardRef((props, forwardedRef) => {
4878
4879
  return;
4879
4880
  }
4880
4881
  }, [getItems, viewport]);
4881
- const focusSelectedItem = React36.useCallback(() => focusFirst2([selectedItem, content]), [focusFirst2, selectedItem, content]);
4882
+ const focusSelectedItem = React36.useCallback(() => focusFirst([selectedItem, content]), [focusFirst, selectedItem, content]);
4882
4883
  React36.useEffect(() => {
4883
4884
  if (isPositioned) {
4884
4885
  focusSelectedItem();
@@ -5026,7 +5027,7 @@ var SelectContentImpl = React36.forwardRef((props, forwardedRef) => {
5026
5027
  const currentIndex = candidateNodes.indexOf(currentElement);
5027
5028
  candidateNodes = candidateNodes.slice(currentIndex + 1);
5028
5029
  }
5029
- setTimeout(() => focusFirst2(candidateNodes));
5030
+ setTimeout(() => focusFirst(candidateNodes));
5030
5031
  event.preventDefault();
5031
5032
  }
5032
5033
  })
@@ -5204,7 +5205,7 @@ var SelectViewport = React36.forwardRef((props, forwardedRef) => {
5204
5205
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
5205
5206
  const composedRefs = useComposedRefs2(forwardedRef, contentContext.onViewportChange);
5206
5207
  const prevScrollTopRef = React36.useRef(0);
5207
- return /* @__PURE__ */ jsxs4(Fragment8, { children: [
5208
+ return /* @__PURE__ */ jsxs4(Fragment7, { children: [
5208
5209
  /* @__PURE__ */ jsx24("style", {
5209
5210
  dangerouslySetInnerHTML: {
5210
5211
  __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
@@ -5361,7 +5362,7 @@ var SelectItemText = React36.forwardRef((props, forwardedRef) => {
5361
5362
  onNativeOptionAdd(nativeOption);
5362
5363
  return () => onNativeOptionRemove(nativeOption);
5363
5364
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
5364
- return /* @__PURE__ */ jsxs4(Fragment8, { children: [
5365
+ return /* @__PURE__ */ jsxs4(Fragment7, { children: [
5365
5366
  /* @__PURE__ */ jsx24(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
5366
5367
  itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM4.createPortal(itemTextProps.children, context.valueNode) : null
5367
5368
  ] });
@@ -5382,15 +5383,15 @@ var SelectScrollUpButton = React36.forwardRef((props, forwardedRef) => {
5382
5383
  const composedRefs = useComposedRefs2(forwardedRef, viewportContext.onScrollButtonChange);
5383
5384
  useLayoutEffect2(() => {
5384
5385
  if (contentContext.viewport && contentContext.isPositioned) {
5385
- let handleScroll22 = function() {
5386
+ let handleScroll2 = function() {
5386
5387
  const canScrollUp2 = viewport.scrollTop > 0;
5387
5388
  setCanScrollUp(canScrollUp2);
5388
5389
  };
5389
- var handleScroll2 = handleScroll22;
5390
+ var handleScroll = handleScroll2;
5390
5391
  const viewport = contentContext.viewport;
5391
- handleScroll22();
5392
- viewport.addEventListener("scroll", handleScroll22);
5393
- return () => viewport.removeEventListener("scroll", handleScroll22);
5392
+ handleScroll2();
5393
+ viewport.addEventListener("scroll", handleScroll2);
5394
+ return () => viewport.removeEventListener("scroll", handleScroll2);
5394
5395
  }
5395
5396
  }, [contentContext.viewport, contentContext.isPositioned]);
5396
5397
  return canScrollUp ? /* @__PURE__ */ jsx24(SelectScrollButtonImpl, {
@@ -5413,16 +5414,16 @@ var SelectScrollDownButton = React36.forwardRef((props, forwardedRef) => {
5413
5414
  const composedRefs = useComposedRefs2(forwardedRef, viewportContext.onScrollButtonChange);
5414
5415
  useLayoutEffect2(() => {
5415
5416
  if (contentContext.viewport && contentContext.isPositioned) {
5416
- let handleScroll22 = function() {
5417
+ let handleScroll2 = function() {
5417
5418
  const maxScroll = viewport.scrollHeight - viewport.clientHeight;
5418
5419
  const canScrollDown2 = Math.ceil(viewport.scrollTop) < maxScroll;
5419
5420
  setCanScrollDown(canScrollDown2);
5420
5421
  };
5421
- var handleScroll2 = handleScroll22;
5422
+ var handleScroll = handleScroll2;
5422
5423
  const viewport = contentContext.viewport;
5423
- handleScroll22();
5424
- viewport.addEventListener("scroll", handleScroll22);
5425
- return () => viewport.removeEventListener("scroll", handleScroll22);
5424
+ handleScroll2();
5425
+ viewport.addEventListener("scroll", handleScroll2);
5426
+ return () => viewport.removeEventListener("scroll", handleScroll2);
5426
5427
  }
5427
5428
  }, [contentContext.viewport, contentContext.isPositioned]);
5428
5429
  return canScrollDown ? /* @__PURE__ */ jsx24(SelectScrollButtonImpl, {
@@ -5548,7 +5549,7 @@ function findNextItem(items, search, currentItem) {
5548
5549
  return nextItem !== currentItem ? nextItem : undefined;
5549
5550
  }
5550
5551
  function wrapArray(array, startIndex) {
5551
- return array.map((_, index2) => array[(startIndex + index2) % array.length]);
5552
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
5552
5553
  }
5553
5554
  var Root22 = Select;
5554
5555
  var Trigger = SelectTrigger;
@@ -5565,14 +5566,13 @@ var ItemIndicator = SelectItemIndicator;
5565
5566
  var ScrollUpButton = SelectScrollUpButton;
5566
5567
  var ScrollDownButton = SelectScrollDownButton;
5567
5568
  var Separator = SelectSeparator;
5568
-
5569
5569
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/createLucideIcon.js
5570
5570
  import { forwardRef as forwardRef14, createElement as createElement7 } from "react";
5571
5571
 
5572
5572
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/shared/src/utils.js
5573
5573
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
5574
- var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
5575
- return Boolean(className) && array.indexOf(className) === index2;
5574
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
5575
+ return Boolean(className) && array.indexOf(className) === index;
5576
5576
  }).join(" ");
5577
5577
 
5578
5578
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/Icon.js
@@ -5594,7 +5594,7 @@ var defaultAttributes = {
5594
5594
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/Icon.js
5595
5595
  var Icon2 = forwardRef13(({
5596
5596
  color = "currentColor",
5597
- size: size4 = 24,
5597
+ size = 24,
5598
5598
  strokeWidth = 2,
5599
5599
  absoluteStrokeWidth,
5600
5600
  className = "",
@@ -5605,10 +5605,10 @@ var Icon2 = forwardRef13(({
5605
5605
  return createElement6("svg", {
5606
5606
  ref,
5607
5607
  ...defaultAttributes,
5608
- width: size4,
5609
- height: size4,
5608
+ width: size,
5609
+ height: size,
5610
5610
  stroke: color,
5611
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
5611
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
5612
5612
  className: mergeClasses("lucide", className),
5613
5613
  ...rest
5614
5614
  }, [
@@ -5631,12 +5631,10 @@ var createLucideIcon = (iconName, iconNode) => {
5631
5631
 
5632
5632
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/check.js
5633
5633
  var Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
5634
-
5635
5634
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/chevron-down.js
5636
5635
  var ChevronDown = createLucideIcon("ChevronDown", [
5637
5636
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
5638
5637
  ]);
5639
-
5640
5638
  // ../../node_modules/.bun/lucide-react@0.439.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/chevron-up.js
5641
5639
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
5642
5640
  // src/Select.tsx
@@ -5728,21 +5726,21 @@ var SelectSeparator2 = React37.forwardRef(({ className, ...props }, ref) => /* @
5728
5726
  SelectSeparator2.displayName = Separator.displayName;
5729
5727
  // src/Slider.tsx
5730
5728
  import React38 from "react";
5731
- import { jsx as jsx26, jsxs as jsxs6, Fragment as Fragment9 } from "react/jsx-runtime";
5729
+ import { jsx as jsx26, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
5732
5730
  var Slider = React38.forwardRef(({
5733
5731
  className,
5734
- max: max2 = 100,
5735
- min: min2 = 0,
5732
+ max = 100,
5733
+ min = 0,
5736
5734
  onChange,
5737
5735
  style,
5738
5736
  unfilledColor = "var(--color-card-bg, white)",
5739
5737
  value,
5740
5738
  ...props
5741
5739
  }, ref) => {
5742
- const numericMin = Number(min2);
5743
- const numericMax = Number(max2);
5740
+ const numericMin = Number(min);
5741
+ const numericMax = Number(max);
5744
5742
  const percentage = numericMax === numericMin ? 0 : (value - numericMin) / (numericMax - numericMin) * 100;
5745
- return /* @__PURE__ */ jsxs6(Fragment9, {
5743
+ return /* @__PURE__ */ jsxs6(Fragment8, {
5746
5744
  children: [
5747
5745
  /* @__PURE__ */ jsx26("style", {
5748
5746
  children: `
@@ -5787,8 +5785,8 @@ var Slider = React38.forwardRef(({
5787
5785
  /* @__PURE__ */ jsx26("input", {
5788
5786
  ref,
5789
5787
  type: "range",
5790
- min: min2,
5791
- max: max2,
5788
+ min,
5789
+ max,
5792
5790
  value,
5793
5791
  onChange: (event) => onChange(Number(event.target.value)),
5794
5792
  className: cn("remotion-design-slider w-full", className),
@@ -5838,19 +5836,19 @@ import * as React39 from "react";
5838
5836
  import { jsx as jsx28 } from "react/jsx-runtime";
5839
5837
  function createContextScope2(scopeName, createContextScopeDeps = []) {
5840
5838
  let defaultContexts = [];
5841
- function createContext32(rootComponentName, defaultContext) {
5839
+ function createContext3(rootComponentName, defaultContext) {
5842
5840
  const BaseContext = React39.createContext(defaultContext);
5843
- const index2 = defaultContexts.length;
5841
+ const index = defaultContexts.length;
5844
5842
  defaultContexts = [...defaultContexts, defaultContext];
5845
5843
  const Provider = (props) => {
5846
5844
  const { scope, children, ...context } = props;
5847
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
5845
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
5848
5846
  const value = React39.useMemo(() => context, Object.values(context));
5849
5847
  return /* @__PURE__ */ jsx28(Context.Provider, { value, children });
5850
5848
  };
5851
5849
  Provider.displayName = rootComponentName + "Provider";
5852
- function useContext22(consumerName, scope) {
5853
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
5850
+ function useContext2(consumerName, scope) {
5851
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
5854
5852
  const context = React39.useContext(Context);
5855
5853
  if (context)
5856
5854
  return context;
@@ -5858,7 +5856,7 @@ function createContextScope2(scopeName, createContextScopeDeps = []) {
5858
5856
  return defaultContext;
5859
5857
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
5860
5858
  }
5861
- return [Provider, useContext22];
5859
+ return [Provider, useContext2];
5862
5860
  }
5863
5861
  const createScope = () => {
5864
5862
  const scopeContexts = defaultContexts.map((defaultContext) => {
@@ -5870,7 +5868,7 @@ function createContextScope2(scopeName, createContextScopeDeps = []) {
5870
5868
  };
5871
5869
  };
5872
5870
  createScope.scopeName = scopeName;
5873
- return [createContext32, composeContextScopes2(createScope, ...createContextScopeDeps)];
5871
+ return [createContext3, composeContextScopes2(createScope, ...createContextScopeDeps)];
5874
5872
  }
5875
5873
  function composeContextScopes2(...scopes) {
5876
5874
  const baseScope = scopes[0];
@@ -5904,8 +5902,8 @@ import React41 from "react";
5904
5902
  import * as React40 from "react";
5905
5903
  import { Fragment as Fragment22, jsx as jsx29 } from "react/jsx-runtime";
5906
5904
  function createSlot2(ownerName) {
5907
- const SlotClone2 = /* @__PURE__ */ createSlotClone2(ownerName);
5908
- const Slot22 = React40.forwardRef((props, forwardedRef) => {
5905
+ const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
5906
+ const Slot2 = React40.forwardRef((props, forwardedRef) => {
5909
5907
  const { children, ...slotProps } = props;
5910
5908
  const childrenArray = React40.Children.toArray(children);
5911
5909
  const slottable = childrenArray.find(isSlottable3);
@@ -5920,15 +5918,15 @@ function createSlot2(ownerName) {
5920
5918
  return child;
5921
5919
  }
5922
5920
  });
5923
- return /* @__PURE__ */ jsx29(SlotClone2, { ...slotProps, ref: forwardedRef, children: React40.isValidElement(newElement) ? React40.cloneElement(newElement, undefined, newChildren) : null });
5921
+ return /* @__PURE__ */ jsx29(SlotClone, { ...slotProps, ref: forwardedRef, children: React40.isValidElement(newElement) ? React40.cloneElement(newElement, undefined, newChildren) : null });
5924
5922
  }
5925
- return /* @__PURE__ */ jsx29(SlotClone2, { ...slotProps, ref: forwardedRef, children });
5923
+ return /* @__PURE__ */ jsx29(SlotClone, { ...slotProps, ref: forwardedRef, children });
5926
5924
  });
5927
- Slot22.displayName = `${ownerName}.Slot`;
5928
- return Slot22;
5925
+ Slot2.displayName = `${ownerName}.Slot`;
5926
+ return Slot2;
5929
5927
  }
5930
5928
  function createSlotClone2(ownerName) {
5931
- const SlotClone2 = React40.forwardRef((props, forwardedRef) => {
5929
+ const SlotClone = React40.forwardRef((props, forwardedRef) => {
5932
5930
  const { children, ...slotProps } = props;
5933
5931
  if (React40.isValidElement(children)) {
5934
5932
  const childrenRef = getElementRef3(children);
@@ -5940,8 +5938,8 @@ function createSlotClone2(ownerName) {
5940
5938
  }
5941
5939
  return React40.Children.count(children) > 1 ? React40.Children.only(null) : null;
5942
5940
  });
5943
- SlotClone2.displayName = `${ownerName}.SlotClone`;
5944
- return SlotClone2;
5941
+ SlotClone.displayName = `${ownerName}.SlotClone`;
5942
+ return SlotClone;
5945
5943
  }
5946
5944
  var SLOTTABLE_IDENTIFIER2 = Symbol("radix.slottable");
5947
5945
  function isSlottable3(child) {
@@ -5991,7 +5989,7 @@ import React210 from "react";
5991
5989
  import { jsx as jsx210 } from "react/jsx-runtime";
5992
5990
  function createCollection2(name) {
5993
5991
  const PROVIDER_NAME = name + "CollectionProvider";
5994
- const [createCollectionContext, createCollectionScope2] = createContextScope2(PROVIDER_NAME);
5992
+ const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);
5995
5993
  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map });
5996
5994
  const CollectionProvider = (props) => {
5997
5995
  const { scope, children } = props;
@@ -6024,7 +6022,7 @@ function createCollection2(name) {
6024
6022
  return /* @__PURE__ */ jsx30(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
6025
6023
  });
6026
6024
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
6027
- function useCollection2(scope) {
6025
+ function useCollection(scope) {
6028
6026
  const context = useCollectionContext(name + "CollectionConsumer", scope);
6029
6027
  const getItems = React41.useCallback(() => {
6030
6028
  const collectionNode = context.collectionRef.current;
@@ -6039,311 +6037,10 @@ function createCollection2(name) {
6039
6037
  }
6040
6038
  return [
6041
6039
  { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
6042
- useCollection2,
6043
- createCollectionScope2
6040
+ useCollection,
6041
+ createCollectionScope
6044
6042
  ];
6045
6043
  }
6046
- var __instanciated = /* @__PURE__ */ new WeakMap;
6047
- var OrderedDict = class _OrderedDict extends Map {
6048
- #keys;
6049
- constructor(entries) {
6050
- super(entries);
6051
- this.#keys = [...super.keys()];
6052
- __instanciated.set(this, true);
6053
- }
6054
- set(key, value) {
6055
- if (__instanciated.get(this)) {
6056
- if (this.has(key)) {
6057
- this.#keys[this.#keys.indexOf(key)] = key;
6058
- } else {
6059
- this.#keys.push(key);
6060
- }
6061
- }
6062
- super.set(key, value);
6063
- return this;
6064
- }
6065
- insert(index2, key, value) {
6066
- const has = this.has(key);
6067
- const length = this.#keys.length;
6068
- const relativeIndex = toSafeInteger(index2);
6069
- let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
6070
- const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
6071
- if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {
6072
- this.set(key, value);
6073
- return this;
6074
- }
6075
- const size4 = this.size + (has ? 0 : 1);
6076
- if (relativeIndex < 0) {
6077
- actualIndex++;
6078
- }
6079
- const keys = [...this.#keys];
6080
- let nextValue;
6081
- let shouldSkip = false;
6082
- for (let i = actualIndex;i < size4; i++) {
6083
- if (actualIndex === i) {
6084
- let nextKey = keys[i];
6085
- if (keys[i] === key) {
6086
- nextKey = keys[i + 1];
6087
- }
6088
- if (has) {
6089
- this.delete(key);
6090
- }
6091
- nextValue = this.get(nextKey);
6092
- this.set(key, value);
6093
- } else {
6094
- if (!shouldSkip && keys[i - 1] === key) {
6095
- shouldSkip = true;
6096
- }
6097
- const currentKey = keys[shouldSkip ? i : i - 1];
6098
- const currentValue = nextValue;
6099
- nextValue = this.get(currentKey);
6100
- this.delete(currentKey);
6101
- this.set(currentKey, currentValue);
6102
- }
6103
- }
6104
- return this;
6105
- }
6106
- with(index2, key, value) {
6107
- const copy = new _OrderedDict(this);
6108
- copy.insert(index2, key, value);
6109
- return copy;
6110
- }
6111
- before(key) {
6112
- const index2 = this.#keys.indexOf(key) - 1;
6113
- if (index2 < 0) {
6114
- return;
6115
- }
6116
- return this.entryAt(index2);
6117
- }
6118
- setBefore(key, newKey, value) {
6119
- const index2 = this.#keys.indexOf(key);
6120
- if (index2 === -1) {
6121
- return this;
6122
- }
6123
- return this.insert(index2, newKey, value);
6124
- }
6125
- after(key) {
6126
- let index2 = this.#keys.indexOf(key);
6127
- index2 = index2 === -1 || index2 === this.size - 1 ? -1 : index2 + 1;
6128
- if (index2 === -1) {
6129
- return;
6130
- }
6131
- return this.entryAt(index2);
6132
- }
6133
- setAfter(key, newKey, value) {
6134
- const index2 = this.#keys.indexOf(key);
6135
- if (index2 === -1) {
6136
- return this;
6137
- }
6138
- return this.insert(index2 + 1, newKey, value);
6139
- }
6140
- first() {
6141
- return this.entryAt(0);
6142
- }
6143
- last() {
6144
- return this.entryAt(-1);
6145
- }
6146
- clear() {
6147
- this.#keys = [];
6148
- return super.clear();
6149
- }
6150
- delete(key) {
6151
- const deleted = super.delete(key);
6152
- if (deleted) {
6153
- this.#keys.splice(this.#keys.indexOf(key), 1);
6154
- }
6155
- return deleted;
6156
- }
6157
- deleteAt(index2) {
6158
- const key = this.keyAt(index2);
6159
- if (key !== undefined) {
6160
- return this.delete(key);
6161
- }
6162
- return false;
6163
- }
6164
- at(index2) {
6165
- const key = at(this.#keys, index2);
6166
- if (key !== undefined) {
6167
- return this.get(key);
6168
- }
6169
- }
6170
- entryAt(index2) {
6171
- const key = at(this.#keys, index2);
6172
- if (key !== undefined) {
6173
- return [key, this.get(key)];
6174
- }
6175
- }
6176
- indexOf(key) {
6177
- return this.#keys.indexOf(key);
6178
- }
6179
- keyAt(index2) {
6180
- return at(this.#keys, index2);
6181
- }
6182
- from(key, offset4) {
6183
- const index2 = this.indexOf(key);
6184
- if (index2 === -1) {
6185
- return;
6186
- }
6187
- let dest = index2 + offset4;
6188
- if (dest < 0)
6189
- dest = 0;
6190
- if (dest >= this.size)
6191
- dest = this.size - 1;
6192
- return this.at(dest);
6193
- }
6194
- keyFrom(key, offset4) {
6195
- const index2 = this.indexOf(key);
6196
- if (index2 === -1) {
6197
- return;
6198
- }
6199
- let dest = index2 + offset4;
6200
- if (dest < 0)
6201
- dest = 0;
6202
- if (dest >= this.size)
6203
- dest = this.size - 1;
6204
- return this.keyAt(dest);
6205
- }
6206
- find(predicate, thisArg) {
6207
- let index2 = 0;
6208
- for (const entry of this) {
6209
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6210
- return entry;
6211
- }
6212
- index2++;
6213
- }
6214
- return;
6215
- }
6216
- findIndex(predicate, thisArg) {
6217
- let index2 = 0;
6218
- for (const entry of this) {
6219
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6220
- return index2;
6221
- }
6222
- index2++;
6223
- }
6224
- return -1;
6225
- }
6226
- filter(predicate, thisArg) {
6227
- const entries = [];
6228
- let index2 = 0;
6229
- for (const entry of this) {
6230
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6231
- entries.push(entry);
6232
- }
6233
- index2++;
6234
- }
6235
- return new _OrderedDict(entries);
6236
- }
6237
- map(callbackfn, thisArg) {
6238
- const entries = [];
6239
- let index2 = 0;
6240
- for (const entry of this) {
6241
- entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index2, this])]);
6242
- index2++;
6243
- }
6244
- return new _OrderedDict(entries);
6245
- }
6246
- reduce(...args) {
6247
- const [callbackfn, initialValue] = args;
6248
- let index2 = 0;
6249
- let accumulator = initialValue ?? this.at(0);
6250
- for (const entry of this) {
6251
- if (index2 === 0 && args.length === 1) {
6252
- accumulator = entry;
6253
- } else {
6254
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
6255
- }
6256
- index2++;
6257
- }
6258
- return accumulator;
6259
- }
6260
- reduceRight(...args) {
6261
- const [callbackfn, initialValue] = args;
6262
- let accumulator = initialValue ?? this.at(-1);
6263
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
6264
- const entry = this.at(index2);
6265
- if (index2 === this.size - 1 && args.length === 1) {
6266
- accumulator = entry;
6267
- } else {
6268
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
6269
- }
6270
- }
6271
- return accumulator;
6272
- }
6273
- toSorted(compareFn) {
6274
- const entries = [...this.entries()].sort(compareFn);
6275
- return new _OrderedDict(entries);
6276
- }
6277
- toReversed() {
6278
- const reversed = new _OrderedDict;
6279
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
6280
- const key = this.keyAt(index2);
6281
- const element = this.get(key);
6282
- reversed.set(key, element);
6283
- }
6284
- return reversed;
6285
- }
6286
- toSpliced(...args) {
6287
- const entries = [...this.entries()];
6288
- entries.splice(...args);
6289
- return new _OrderedDict(entries);
6290
- }
6291
- slice(start, end) {
6292
- const result = new _OrderedDict;
6293
- let stop = this.size - 1;
6294
- if (start === undefined) {
6295
- return result;
6296
- }
6297
- if (start < 0) {
6298
- start = start + this.size;
6299
- }
6300
- if (end !== undefined && end > 0) {
6301
- stop = end - 1;
6302
- }
6303
- for (let index2 = start;index2 <= stop; index2++) {
6304
- const key = this.keyAt(index2);
6305
- const element = this.get(key);
6306
- result.set(key, element);
6307
- }
6308
- return result;
6309
- }
6310
- every(predicate, thisArg) {
6311
- let index2 = 0;
6312
- for (const entry of this) {
6313
- if (!Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6314
- return false;
6315
- }
6316
- index2++;
6317
- }
6318
- return true;
6319
- }
6320
- some(predicate, thisArg) {
6321
- let index2 = 0;
6322
- for (const entry of this) {
6323
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6324
- return true;
6325
- }
6326
- index2++;
6327
- }
6328
- return false;
6329
- }
6330
- };
6331
- function at(array, index2) {
6332
- if ("at" in Array.prototype) {
6333
- return Array.prototype.at.call(array, index2);
6334
- }
6335
- const actualIndex = toSafeIndex(array, index2);
6336
- return actualIndex === -1 ? undefined : array[actualIndex];
6337
- }
6338
- function toSafeIndex(array, index2) {
6339
- const length = array.length;
6340
- const relativeIndex = toSafeInteger(index2);
6341
- const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
6342
- return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
6343
- }
6344
- function toSafeInteger(number) {
6345
- return number !== number || number === 0 ? 0 : Math.trunc(number);
6346
- }
6347
6044
 
6348
6045
  // ../../node_modules/.bun/@radix-ui+react-id@1.1.1+09a4a3ac15cb54ba/node_modules/@radix-ui/react-id/dist/index.mjs
6349
6046
  import * as React43 from "react";
@@ -6390,10 +6087,10 @@ var NODES2 = [
6390
6087
  "ul"
6391
6088
  ];
6392
6089
  var Primitive2 = NODES2.reduce((primitive, node) => {
6393
- const Slot3 = createSlot2(`Primitive.${node}`);
6090
+ const Slot = createSlot2(`Primitive.${node}`);
6394
6091
  const Node2 = React44.forwardRef((props, forwardedRef) => {
6395
6092
  const { asChild, ...primitiveProps } = props;
6396
- const Comp = asChild ? Slot3 : node;
6093
+ const Comp = asChild ? Slot : node;
6397
6094
  if (typeof window !== "undefined") {
6398
6095
  window[Symbol.for("radix-ui")] = true;
6399
6096
  }
@@ -6405,7 +6102,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
6405
6102
 
6406
6103
  // ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.1+09a4a3ac15cb54ba/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
6407
6104
  import * as React45 from "react";
6408
- function useCallbackRef3(callback) {
6105
+ function useCallbackRef4(callback) {
6409
6106
  const callbackRef = React45.useRef(callback);
6410
6107
  React45.useEffect(() => {
6411
6108
  callbackRef.current = callback;
@@ -6415,7 +6112,7 @@ function useCallbackRef3(callback) {
6415
6112
 
6416
6113
  // ../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.2.2+09a4a3ac15cb54ba/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
6417
6114
  import * as React46 from "react";
6418
- import * as React212 from "react";
6115
+ import * as React211 from "react";
6419
6116
  var useInsertionEffect = React46[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
6420
6117
  function useControllableState2({
6421
6118
  prop,
@@ -6520,7 +6217,7 @@ var RovingFocusGroupImpl = React48.forwardRef((props, forwardedRef) => {
6520
6217
  caller: GROUP_NAME2
6521
6218
  });
6522
6219
  const [isTabbingBackOut, setIsTabbingBackOut] = React48.useState(false);
6523
- const handleEntryFocus = useCallbackRef3(onEntryFocus);
6220
+ const handleEntryFocus = useCallbackRef4(onEntryFocus);
6524
6221
  const getItems = useCollection2(__scopeRovingFocusGroup);
6525
6222
  const isClickFocusRef = React48.useRef(false);
6526
6223
  const [focusableItemsCount, setFocusableItemsCount] = React48.useState(0);
@@ -6673,13 +6370,13 @@ function focusFirst2(candidates, preventScroll = false) {
6673
6370
  }
6674
6371
  }
6675
6372
  function wrapArray2(array, startIndex) {
6676
- return array.map((_, index2) => array[(startIndex + index2) % array.length]);
6373
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
6677
6374
  }
6678
6375
  var Root3 = RovingFocusGroup;
6679
6376
  var Item2 = RovingFocusGroupItem;
6680
6377
 
6681
6378
  // ../../node_modules/.bun/@radix-ui+react-presence@1.1.5+f178f9b1194b24ba/node_modules/@radix-ui/react-presence/dist/index.mjs
6682
- import * as React213 from "react";
6379
+ import * as React212 from "react";
6683
6380
  import * as React49 from "react";
6684
6381
  function useStateMachine(initialState, machine) {
6685
6382
  return React49.useReducer((state, event) => {
@@ -6690,17 +6387,17 @@ function useStateMachine(initialState, machine) {
6690
6387
  var Presence = (props) => {
6691
6388
  const { present, children } = props;
6692
6389
  const presence = usePresence(present);
6693
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React213.Children.only(children);
6390
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React212.Children.only(children);
6694
6391
  const ref = useComposedRefs(presence.ref, getElementRef4(child));
6695
6392
  const forceMount = typeof children === "function";
6696
- return forceMount || presence.isPresent ? React213.cloneElement(child, { ref }) : null;
6393
+ return forceMount || presence.isPresent ? React212.cloneElement(child, { ref }) : null;
6697
6394
  };
6698
6395
  Presence.displayName = "Presence";
6699
6396
  function usePresence(present) {
6700
- const [node, setNode] = React213.useState();
6701
- const stylesRef = React213.useRef(null);
6702
- const prevPresentRef = React213.useRef(present);
6703
- const prevAnimationNameRef = React213.useRef("none");
6397
+ const [node, setNode] = React212.useState();
6398
+ const stylesRef = React212.useRef(null);
6399
+ const prevPresentRef = React212.useRef(present);
6400
+ const prevAnimationNameRef = React212.useRef("none");
6704
6401
  const initialState = present ? "mounted" : "unmounted";
6705
6402
  const [state, send] = useStateMachine(initialState, {
6706
6403
  mounted: {
@@ -6715,7 +6412,7 @@ function usePresence(present) {
6715
6412
  MOUNT: "mounted"
6716
6413
  }
6717
6414
  });
6718
- React213.useEffect(() => {
6415
+ React212.useEffect(() => {
6719
6416
  const currentAnimationName = getAnimationName(stylesRef.current);
6720
6417
  prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
6721
6418
  }, [state]);
@@ -6781,7 +6478,7 @@ function usePresence(present) {
6781
6478
  }, [node, send]);
6782
6479
  return {
6783
6480
  isPresent: ["mounted", "unmountSuspended"].includes(state),
6784
- ref: React213.useCallback((node2) => {
6481
+ ref: React212.useCallback((node2) => {
6785
6482
  stylesRef.current = node2 ? getComputedStyle(node2) : null;
6786
6483
  setNode(node2);
6787
6484
  }, [])
@@ -7003,30 +6700,30 @@ var Triangle2 = (props) => {
7003
6700
  });
7004
6701
  };
7005
6702
  export {
7006
- Triangle2 as Triangle,
7007
- Textarea,
7008
- TabsTrigger2 as TabsTrigger,
7009
- TabsList2 as TabsList,
7010
- TabsContent2 as TabsContent,
7011
- Tabs2 as Tabs,
7012
- Switch,
7013
- Slider,
7014
- SelectValue2 as SelectValue,
7015
- SelectTrigger2 as SelectTrigger,
7016
- SelectSeparator2 as SelectSeparator,
7017
- SelectScrollUpButton2 as SelectScrollUpButton,
7018
- SelectScrollDownButton2 as SelectScrollDownButton,
7019
- SelectLabel2 as SelectLabel,
7020
- SelectItem2 as SelectItem,
7021
- SelectGroup2 as SelectGroup,
7022
- SelectContent2 as SelectContent,
7023
- Select2 as Select,
7024
- PlanePaperIcon,
7025
- Link,
7026
- Input,
7027
- InlineCode,
7028
- Counter,
7029
- CheckIcon,
6703
+ Button,
7030
6704
  Card,
7031
- Button
6705
+ CheckIcon,
6706
+ Counter,
6707
+ InlineCode,
6708
+ Input,
6709
+ Link,
6710
+ PlanePaperIcon,
6711
+ Select2 as Select,
6712
+ SelectContent2 as SelectContent,
6713
+ SelectGroup2 as SelectGroup,
6714
+ SelectItem2 as SelectItem,
6715
+ SelectLabel2 as SelectLabel,
6716
+ SelectScrollDownButton2 as SelectScrollDownButton,
6717
+ SelectScrollUpButton2 as SelectScrollUpButton,
6718
+ SelectSeparator2 as SelectSeparator,
6719
+ SelectTrigger2 as SelectTrigger,
6720
+ SelectValue2 as SelectValue,
6721
+ Slider,
6722
+ Switch,
6723
+ Tabs2 as Tabs,
6724
+ TabsContent2 as TabsContent,
6725
+ TabsList2 as TabsList,
6726
+ TabsTrigger2 as TabsTrigger,
6727
+ Textarea,
6728
+ Triangle2 as Triangle
7032
6729
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/design",
3
- "version": "4.0.533",
3
+ "version": "4.0.535",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/esm/index.mjs",
@@ -22,19 +22,19 @@
22
22
  "@radix-ui/react-select": "2.1.1",
23
23
  "@radix-ui/react-slot": "1.2.4",
24
24
  "@radix-ui/react-tabs": "1.1.13",
25
- "@remotion/paths": "4.0.533",
26
- "@remotion/shapes": "4.0.533",
27
- "@remotion/svg-3d-engine": "4.0.533",
25
+ "@remotion/paths": "4.0.535",
26
+ "@remotion/shapes": "4.0.535",
27
+ "@remotion/svg-3d-engine": "4.0.535",
28
28
  "clsx": "2.1.1",
29
29
  "lucide-react": "0.439.0",
30
- "remotion": "4.0.533"
30
+ "remotion": "4.0.535"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@remotion/eslint-config-internal": "4.0.533",
37
+ "@remotion/eslint-config-internal": "4.0.535",
38
38
  "eslint": "9.19.0",
39
39
  "react": "19.2.3",
40
40
  "react-dom": "19.2.3",