@remotion/design 4.0.462 → 4.0.463

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 +76 -78
  2. package/package.json +6 -6
@@ -3887,7 +3887,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
3887
3887
 
3888
3888
  // ../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
3889
3889
  var __assign = function() {
3890
- __assign = Object.assign || function __assign(t) {
3890
+ __assign = Object.assign || function __assign2(t) {
3891
3891
  for (var s, i = 1, n = arguments.length;i < n; i++) {
3892
3892
  s = arguments[i];
3893
3893
  for (var p in s)
@@ -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) {
@@ -5565,7 +5566,6 @@ 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
 
@@ -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
@@ -5764,17 +5762,17 @@ function createContextScope2(scopeName, createContextScopeDeps = []) {
5764
5762
  let defaultContexts = [];
5765
5763
  function createContext32(rootComponentName, defaultContext) {
5766
5764
  const BaseContext = React38.createContext(defaultContext);
5767
- const index2 = defaultContexts.length;
5765
+ const index3 = defaultContexts.length;
5768
5766
  defaultContexts = [...defaultContexts, defaultContext];
5769
5767
  const Provider = (props) => {
5770
5768
  const { scope, children, ...context } = props;
5771
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
5769
+ const Context = scope?.[scopeName]?.[index3] || BaseContext;
5772
5770
  const value = React38.useMemo(() => context, Object.values(context));
5773
5771
  return /* @__PURE__ */ jsx27(Context.Provider, { value, children });
5774
5772
  };
5775
5773
  Provider.displayName = rootComponentName + "Provider";
5776
5774
  function useContext22(consumerName, scope) {
5777
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
5775
+ const Context = scope?.[scopeName]?.[index3] || BaseContext;
5778
5776
  const context = React38.useContext(Context);
5779
5777
  if (context)
5780
5778
  return context;
@@ -5986,10 +5984,10 @@ var OrderedDict = class _OrderedDict extends Map {
5986
5984
  super.set(key, value);
5987
5985
  return this;
5988
5986
  }
5989
- insert(index2, key, value) {
5987
+ insert(index3, key, value) {
5990
5988
  const has = this.has(key);
5991
5989
  const length = this.#keys.length;
5992
- const relativeIndex = toSafeInteger(index2);
5990
+ const relativeIndex = toSafeInteger(index3);
5993
5991
  let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
5994
5992
  const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
5995
5993
  if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {
@@ -6027,39 +6025,39 @@ var OrderedDict = class _OrderedDict extends Map {
6027
6025
  }
6028
6026
  return this;
6029
6027
  }
6030
- with(index2, key, value) {
6028
+ with(index3, key, value) {
6031
6029
  const copy = new _OrderedDict(this);
6032
- copy.insert(index2, key, value);
6030
+ copy.insert(index3, key, value);
6033
6031
  return copy;
6034
6032
  }
6035
6033
  before(key) {
6036
- const index2 = this.#keys.indexOf(key) - 1;
6037
- if (index2 < 0) {
6034
+ const index3 = this.#keys.indexOf(key) - 1;
6035
+ if (index3 < 0) {
6038
6036
  return;
6039
6037
  }
6040
- return this.entryAt(index2);
6038
+ return this.entryAt(index3);
6041
6039
  }
6042
6040
  setBefore(key, newKey, value) {
6043
- const index2 = this.#keys.indexOf(key);
6044
- if (index2 === -1) {
6041
+ const index3 = this.#keys.indexOf(key);
6042
+ if (index3 === -1) {
6045
6043
  return this;
6046
6044
  }
6047
- return this.insert(index2, newKey, value);
6045
+ return this.insert(index3, newKey, value);
6048
6046
  }
6049
6047
  after(key) {
6050
- let index2 = this.#keys.indexOf(key);
6051
- index2 = index2 === -1 || index2 === this.size - 1 ? -1 : index2 + 1;
6052
- if (index2 === -1) {
6048
+ let index3 = this.#keys.indexOf(key);
6049
+ index3 = index3 === -1 || index3 === this.size - 1 ? -1 : index3 + 1;
6050
+ if (index3 === -1) {
6053
6051
  return;
6054
6052
  }
6055
- return this.entryAt(index2);
6053
+ return this.entryAt(index3);
6056
6054
  }
6057
6055
  setAfter(key, newKey, value) {
6058
- const index2 = this.#keys.indexOf(key);
6059
- if (index2 === -1) {
6056
+ const index3 = this.#keys.indexOf(key);
6057
+ if (index3 === -1) {
6060
6058
  return this;
6061
6059
  }
6062
- return this.insert(index2 + 1, newKey, value);
6060
+ return this.insert(index3 + 1, newKey, value);
6063
6061
  }
6064
6062
  first() {
6065
6063
  return this.entryAt(0);
@@ -6078,21 +6076,21 @@ var OrderedDict = class _OrderedDict extends Map {
6078
6076
  }
6079
6077
  return deleted;
6080
6078
  }
6081
- deleteAt(index2) {
6082
- const key = this.keyAt(index2);
6079
+ deleteAt(index3) {
6080
+ const key = this.keyAt(index3);
6083
6081
  if (key !== undefined) {
6084
6082
  return this.delete(key);
6085
6083
  }
6086
6084
  return false;
6087
6085
  }
6088
- at(index2) {
6089
- const key = at(this.#keys, index2);
6086
+ at(index3) {
6087
+ const key = at(this.#keys, index3);
6090
6088
  if (key !== undefined) {
6091
6089
  return this.get(key);
6092
6090
  }
6093
6091
  }
6094
- entryAt(index2) {
6095
- const key = at(this.#keys, index2);
6092
+ entryAt(index3) {
6093
+ const key = at(this.#keys, index3);
6096
6094
  if (key !== undefined) {
6097
6095
  return [key, this.get(key)];
6098
6096
  }
@@ -6100,15 +6098,15 @@ var OrderedDict = class _OrderedDict extends Map {
6100
6098
  indexOf(key) {
6101
6099
  return this.#keys.indexOf(key);
6102
6100
  }
6103
- keyAt(index2) {
6104
- return at(this.#keys, index2);
6101
+ keyAt(index3) {
6102
+ return at(this.#keys, index3);
6105
6103
  }
6106
6104
  from(key, offset4) {
6107
- const index2 = this.indexOf(key);
6108
- if (index2 === -1) {
6105
+ const index3 = this.indexOf(key);
6106
+ if (index3 === -1) {
6109
6107
  return;
6110
6108
  }
6111
- let dest = index2 + offset4;
6109
+ let dest = index3 + offset4;
6112
6110
  if (dest < 0)
6113
6111
  dest = 0;
6114
6112
  if (dest >= this.size)
@@ -6116,11 +6114,11 @@ var OrderedDict = class _OrderedDict extends Map {
6116
6114
  return this.at(dest);
6117
6115
  }
6118
6116
  keyFrom(key, offset4) {
6119
- const index2 = this.indexOf(key);
6120
- if (index2 === -1) {
6117
+ const index3 = this.indexOf(key);
6118
+ if (index3 === -1) {
6121
6119
  return;
6122
6120
  }
6123
- let dest = index2 + offset4;
6121
+ let dest = index3 + offset4;
6124
6122
  if (dest < 0)
6125
6123
  dest = 0;
6126
6124
  if (dest >= this.size)
@@ -6128,68 +6126,68 @@ var OrderedDict = class _OrderedDict extends Map {
6128
6126
  return this.keyAt(dest);
6129
6127
  }
6130
6128
  find(predicate, thisArg) {
6131
- let index2 = 0;
6129
+ let index3 = 0;
6132
6130
  for (const entry of this) {
6133
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6131
+ if (Reflect.apply(predicate, thisArg, [entry, index3, this])) {
6134
6132
  return entry;
6135
6133
  }
6136
- index2++;
6134
+ index3++;
6137
6135
  }
6138
6136
  return;
6139
6137
  }
6140
6138
  findIndex(predicate, thisArg) {
6141
- let index2 = 0;
6139
+ let index3 = 0;
6142
6140
  for (const entry of this) {
6143
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6144
- return index2;
6141
+ if (Reflect.apply(predicate, thisArg, [entry, index3, this])) {
6142
+ return index3;
6145
6143
  }
6146
- index2++;
6144
+ index3++;
6147
6145
  }
6148
6146
  return -1;
6149
6147
  }
6150
6148
  filter(predicate, thisArg) {
6151
6149
  const entries = [];
6152
- let index2 = 0;
6150
+ let index3 = 0;
6153
6151
  for (const entry of this) {
6154
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6152
+ if (Reflect.apply(predicate, thisArg, [entry, index3, this])) {
6155
6153
  entries.push(entry);
6156
6154
  }
6157
- index2++;
6155
+ index3++;
6158
6156
  }
6159
6157
  return new _OrderedDict(entries);
6160
6158
  }
6161
6159
  map(callbackfn, thisArg) {
6162
6160
  const entries = [];
6163
- let index2 = 0;
6161
+ let index3 = 0;
6164
6162
  for (const entry of this) {
6165
- entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index2, this])]);
6166
- index2++;
6163
+ entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index3, this])]);
6164
+ index3++;
6167
6165
  }
6168
6166
  return new _OrderedDict(entries);
6169
6167
  }
6170
6168
  reduce(...args) {
6171
6169
  const [callbackfn, initialValue] = args;
6172
- let index2 = 0;
6170
+ let index3 = 0;
6173
6171
  let accumulator = initialValue ?? this.at(0);
6174
6172
  for (const entry of this) {
6175
- if (index2 === 0 && args.length === 1) {
6173
+ if (index3 === 0 && args.length === 1) {
6176
6174
  accumulator = entry;
6177
6175
  } else {
6178
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
6176
+ accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index3, this]);
6179
6177
  }
6180
- index2++;
6178
+ index3++;
6181
6179
  }
6182
6180
  return accumulator;
6183
6181
  }
6184
6182
  reduceRight(...args) {
6185
6183
  const [callbackfn, initialValue] = args;
6186
6184
  let accumulator = initialValue ?? this.at(-1);
6187
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
6188
- const entry = this.at(index2);
6189
- if (index2 === this.size - 1 && args.length === 1) {
6185
+ for (let index3 = this.size - 1;index3 >= 0; index3--) {
6186
+ const entry = this.at(index3);
6187
+ if (index3 === this.size - 1 && args.length === 1) {
6190
6188
  accumulator = entry;
6191
6189
  } else {
6192
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
6190
+ accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index3, this]);
6193
6191
  }
6194
6192
  }
6195
6193
  return accumulator;
@@ -6200,8 +6198,8 @@ var OrderedDict = class _OrderedDict extends Map {
6200
6198
  }
6201
6199
  toReversed() {
6202
6200
  const reversed = new _OrderedDict;
6203
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
6204
- const key = this.keyAt(index2);
6201
+ for (let index3 = this.size - 1;index3 >= 0; index3--) {
6202
+ const key = this.keyAt(index3);
6205
6203
  const element = this.get(key);
6206
6204
  reversed.set(key, element);
6207
6205
  }
@@ -6224,44 +6222,44 @@ var OrderedDict = class _OrderedDict extends Map {
6224
6222
  if (end !== undefined && end > 0) {
6225
6223
  stop = end - 1;
6226
6224
  }
6227
- for (let index2 = start;index2 <= stop; index2++) {
6228
- const key = this.keyAt(index2);
6225
+ for (let index3 = start;index3 <= stop; index3++) {
6226
+ const key = this.keyAt(index3);
6229
6227
  const element = this.get(key);
6230
6228
  result.set(key, element);
6231
6229
  }
6232
6230
  return result;
6233
6231
  }
6234
6232
  every(predicate, thisArg) {
6235
- let index2 = 0;
6233
+ let index3 = 0;
6236
6234
  for (const entry of this) {
6237
- if (!Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6235
+ if (!Reflect.apply(predicate, thisArg, [entry, index3, this])) {
6238
6236
  return false;
6239
6237
  }
6240
- index2++;
6238
+ index3++;
6241
6239
  }
6242
6240
  return true;
6243
6241
  }
6244
6242
  some(predicate, thisArg) {
6245
- let index2 = 0;
6243
+ let index3 = 0;
6246
6244
  for (const entry of this) {
6247
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
6245
+ if (Reflect.apply(predicate, thisArg, [entry, index3, this])) {
6248
6246
  return true;
6249
6247
  }
6250
- index2++;
6248
+ index3++;
6251
6249
  }
6252
6250
  return false;
6253
6251
  }
6254
6252
  };
6255
- function at(array, index2) {
6253
+ function at(array, index3) {
6256
6254
  if ("at" in Array.prototype) {
6257
- return Array.prototype.at.call(array, index2);
6255
+ return Array.prototype.at.call(array, index3);
6258
6256
  }
6259
- const actualIndex = toSafeIndex(array, index2);
6257
+ const actualIndex = toSafeIndex(array, index3);
6260
6258
  return actualIndex === -1 ? undefined : array[actualIndex];
6261
6259
  }
6262
- function toSafeIndex(array, index2) {
6260
+ function toSafeIndex(array, index3) {
6263
6261
  const length = array.length;
6264
- const relativeIndex = toSafeInteger(index2);
6262
+ const relativeIndex = toSafeInteger(index3);
6265
6263
  const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
6266
6264
  return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
6267
6265
  }
@@ -6329,7 +6327,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
6329
6327
 
6330
6328
  // ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.1+09a4a3ac15cb54ba/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
6331
6329
  import * as React44 from "react";
6332
- function useCallbackRef3(callback) {
6330
+ function useCallbackRef4(callback) {
6333
6331
  const callbackRef = React44.useRef(callback);
6334
6332
  React44.useEffect(() => {
6335
6333
  callbackRef.current = callback;
@@ -6444,7 +6442,7 @@ var RovingFocusGroupImpl = React47.forwardRef((props, forwardedRef) => {
6444
6442
  caller: GROUP_NAME2
6445
6443
  });
6446
6444
  const [isTabbingBackOut, setIsTabbingBackOut] = React47.useState(false);
6447
- const handleEntryFocus = useCallbackRef3(onEntryFocus);
6445
+ const handleEntryFocus = useCallbackRef4(onEntryFocus);
6448
6446
  const getItems = useCollection2(__scopeRovingFocusGroup);
6449
6447
  const isClickFocusRef = React47.useRef(false);
6450
6448
  const [focusableItemsCount, setFocusableItemsCount] = React47.useState(0);
@@ -6597,7 +6595,7 @@ function focusFirst2(candidates, preventScroll = false) {
6597
6595
  }
6598
6596
  }
6599
6597
  function wrapArray2(array, startIndex) {
6600
- return array.map((_, index2) => array[(startIndex + index2) % array.length]);
6598
+ return array.map((_, index3) => array[(startIndex + index3) % array.length]);
6601
6599
  }
6602
6600
  var Root3 = RovingFocusGroup;
6603
6601
  var Item2 = RovingFocusGroupItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/design",
3
- "version": "4.0.462",
3
+ "version": "4.0.463",
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.462",
26
- "@remotion/shapes": "4.0.462",
27
- "@remotion/svg-3d-engine": "4.0.462",
25
+ "@remotion/paths": "4.0.463",
26
+ "@remotion/shapes": "4.0.463",
27
+ "@remotion/svg-3d-engine": "4.0.463",
28
28
  "clsx": "2.1.1",
29
29
  "lucide-react": "0.439.0",
30
- "remotion": "4.0.462"
30
+ "remotion": "4.0.463"
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.462",
37
+ "@remotion/eslint-config-internal": "4.0.463",
38
38
  "eslint": "9.19.0",
39
39
  "react": "19.2.3",
40
40
  "react-dom": "19.2.3",