@remotion/design 4.0.467 → 4.0.469

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