@noya-app/noya-designsystem 0.1.35 → 0.1.36
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.
- package/.turbo/turbo-build.log +13 -12
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +1053 -0
- package/dist/index.d.ts +2 -14
- package/dist/index.js +224 -288
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -198
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/tsconfig.json +1 -0
package/dist/index.js
CHANGED
|
@@ -32,7 +32,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
|
|
33
33
|
// ../../node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
34
34
|
var require_classCallCheck = __commonJS({
|
|
35
|
-
"../../node_modules/@babel/runtime/helpers/classCallCheck.js"(
|
|
35
|
+
"../../node_modules/@babel/runtime/helpers/classCallCheck.js"(exports2, module2) {
|
|
36
|
+
"use strict";
|
|
36
37
|
function _classCallCheck23(instance, Constructor) {
|
|
37
38
|
if (!(instance instanceof Constructor)) {
|
|
38
39
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -44,7 +45,8 @@ var require_classCallCheck = __commonJS({
|
|
|
44
45
|
|
|
45
46
|
// ../../node_modules/@babel/runtime/helpers/typeof.js
|
|
46
47
|
var require_typeof = __commonJS({
|
|
47
|
-
"../../node_modules/@babel/runtime/helpers/typeof.js"(
|
|
48
|
+
"../../node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) {
|
|
49
|
+
"use strict";
|
|
48
50
|
function _typeof(o) {
|
|
49
51
|
"@babel/helpers - typeof";
|
|
50
52
|
return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -59,16 +61,15 @@ var require_typeof = __commonJS({
|
|
|
59
61
|
|
|
60
62
|
// ../../node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
61
63
|
var require_toPrimitive = __commonJS({
|
|
62
|
-
"../../node_modules/@babel/runtime/helpers/toPrimitive.js"(
|
|
64
|
+
"../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports2, module2) {
|
|
65
|
+
"use strict";
|
|
63
66
|
var _typeof = require_typeof()["default"];
|
|
64
67
|
function toPrimitive(t, r2) {
|
|
65
|
-
if ("object" != _typeof(t) || !t)
|
|
66
|
-
return t;
|
|
68
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
67
69
|
var e = t[Symbol.toPrimitive];
|
|
68
70
|
if (void 0 !== e) {
|
|
69
71
|
var i = e.call(t, r2 || "default");
|
|
70
|
-
if ("object" != _typeof(i))
|
|
71
|
-
return i;
|
|
72
|
+
if ("object" != _typeof(i)) return i;
|
|
72
73
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
73
74
|
}
|
|
74
75
|
return ("string" === r2 ? String : Number)(t);
|
|
@@ -79,7 +80,8 @@ var require_toPrimitive = __commonJS({
|
|
|
79
80
|
|
|
80
81
|
// ../../node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
81
82
|
var require_toPropertyKey = __commonJS({
|
|
82
|
-
"../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(
|
|
83
|
+
"../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports2, module2) {
|
|
84
|
+
"use strict";
|
|
83
85
|
var _typeof = require_typeof()["default"];
|
|
84
86
|
var toPrimitive = require_toPrimitive();
|
|
85
87
|
function toPropertyKey(t) {
|
|
@@ -92,23 +94,21 @@ var require_toPropertyKey = __commonJS({
|
|
|
92
94
|
|
|
93
95
|
// ../../node_modules/@babel/runtime/helpers/createClass.js
|
|
94
96
|
var require_createClass = __commonJS({
|
|
95
|
-
"../../node_modules/@babel/runtime/helpers/createClass.js"(
|
|
97
|
+
"../../node_modules/@babel/runtime/helpers/createClass.js"(exports2, module2) {
|
|
98
|
+
"use strict";
|
|
96
99
|
var toPropertyKey = require_toPropertyKey();
|
|
97
100
|
function _defineProperties(target, props) {
|
|
98
101
|
for (var i = 0; i < props.length; i++) {
|
|
99
102
|
var descriptor = props[i];
|
|
100
103
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
101
104
|
descriptor.configurable = true;
|
|
102
|
-
if ("value" in descriptor)
|
|
103
|
-
descriptor.writable = true;
|
|
105
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
104
106
|
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
function _createClass22(Constructor, protoProps, staticProps) {
|
|
108
|
-
if (protoProps)
|
|
109
|
-
|
|
110
|
-
if (staticProps)
|
|
111
|
-
_defineProperties(Constructor, staticProps);
|
|
110
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
111
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
112
112
|
Object.defineProperty(Constructor, "prototype", {
|
|
113
113
|
writable: false
|
|
114
114
|
});
|
|
@@ -120,7 +120,8 @@ var require_createClass = __commonJS({
|
|
|
120
120
|
|
|
121
121
|
// ../../node_modules/@babel/runtime/helpers/assertThisInitialized.js
|
|
122
122
|
var require_assertThisInitialized = __commonJS({
|
|
123
|
-
"../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"(
|
|
123
|
+
"../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports2, module2) {
|
|
124
|
+
"use strict";
|
|
124
125
|
function _assertThisInitialized15(self2) {
|
|
125
126
|
if (self2 === void 0) {
|
|
126
127
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -133,7 +134,8 @@ var require_assertThisInitialized = __commonJS({
|
|
|
133
134
|
|
|
134
135
|
// ../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
135
136
|
var require_possibleConstructorReturn = __commonJS({
|
|
136
|
-
"../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(
|
|
137
|
+
"../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports2, module2) {
|
|
138
|
+
"use strict";
|
|
137
139
|
var _typeof = require_typeof()["default"];
|
|
138
140
|
var assertThisInitialized = require_assertThisInitialized();
|
|
139
141
|
function _possibleConstructorReturn16(self2, call) {
|
|
@@ -150,7 +152,8 @@ var require_possibleConstructorReturn = __commonJS({
|
|
|
150
152
|
|
|
151
153
|
// ../../node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
152
154
|
var require_getPrototypeOf = __commonJS({
|
|
153
|
-
"../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"(
|
|
155
|
+
"../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports2, module2) {
|
|
156
|
+
"use strict";
|
|
154
157
|
function _getPrototypeOf16(o) {
|
|
155
158
|
module2.exports = _getPrototypeOf16 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf17(o2) {
|
|
156
159
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
@@ -163,7 +166,8 @@ var require_getPrototypeOf = __commonJS({
|
|
|
163
166
|
|
|
164
167
|
// ../../node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
165
168
|
var require_setPrototypeOf = __commonJS({
|
|
166
|
-
"../../node_modules/@babel/runtime/helpers/setPrototypeOf.js"(
|
|
169
|
+
"../../node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports2, module2) {
|
|
170
|
+
"use strict";
|
|
167
171
|
function _setPrototypeOf(o, p) {
|
|
168
172
|
module2.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
169
173
|
o2.__proto__ = p2;
|
|
@@ -177,7 +181,8 @@ var require_setPrototypeOf = __commonJS({
|
|
|
177
181
|
|
|
178
182
|
// ../../node_modules/@babel/runtime/helpers/inherits.js
|
|
179
183
|
var require_inherits = __commonJS({
|
|
180
|
-
"../../node_modules/@babel/runtime/helpers/inherits.js"(
|
|
184
|
+
"../../node_modules/@babel/runtime/helpers/inherits.js"(exports2, module2) {
|
|
185
|
+
"use strict";
|
|
181
186
|
var setPrototypeOf = require_setPrototypeOf();
|
|
182
187
|
function _inherits16(subClass, superClass) {
|
|
183
188
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -193,8 +198,7 @@ var require_inherits = __commonJS({
|
|
|
193
198
|
Object.defineProperty(subClass, "prototype", {
|
|
194
199
|
writable: false
|
|
195
200
|
});
|
|
196
|
-
if (superClass)
|
|
197
|
-
setPrototypeOf(subClass, superClass);
|
|
201
|
+
if (superClass) setPrototypeOf(subClass, superClass);
|
|
198
202
|
}
|
|
199
203
|
module2.exports = _inherits16, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
200
204
|
}
|
|
@@ -202,7 +206,8 @@ var require_inherits = __commonJS({
|
|
|
202
206
|
|
|
203
207
|
// ../../node_modules/@babel/runtime/helpers/defineProperty.js
|
|
204
208
|
var require_defineProperty = __commonJS({
|
|
205
|
-
"../../node_modules/@babel/runtime/helpers/defineProperty.js"(
|
|
209
|
+
"../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports2, module2) {
|
|
210
|
+
"use strict";
|
|
206
211
|
var toPropertyKey = require_toPropertyKey();
|
|
207
212
|
function _defineProperty19(obj, key, value) {
|
|
208
213
|
key = toPropertyKey(key);
|
|
@@ -224,7 +229,8 @@ var require_defineProperty = __commonJS({
|
|
|
224
229
|
|
|
225
230
|
// ../../node_modules/@babel/runtime/helpers/extends.js
|
|
226
231
|
var require_extends = __commonJS({
|
|
227
|
-
"../../node_modules/@babel/runtime/helpers/extends.js"(
|
|
232
|
+
"../../node_modules/@babel/runtime/helpers/extends.js"(exports2, module2) {
|
|
233
|
+
"use strict";
|
|
228
234
|
function _extends7() {
|
|
229
235
|
module2.exports = _extends7 = Object.assign ? Object.assign.bind() : function(target) {
|
|
230
236
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -245,17 +251,16 @@ var require_extends = __commonJS({
|
|
|
245
251
|
|
|
246
252
|
// ../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
247
253
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
248
|
-
"../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(
|
|
254
|
+
"../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports2, module2) {
|
|
255
|
+
"use strict";
|
|
249
256
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
250
|
-
if (source == null)
|
|
251
|
-
return {};
|
|
257
|
+
if (source == null) return {};
|
|
252
258
|
var target = {};
|
|
253
259
|
var sourceKeys = Object.keys(source);
|
|
254
260
|
var key, i;
|
|
255
261
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
256
262
|
key = sourceKeys[i];
|
|
257
|
-
if (excluded.indexOf(key) >= 0)
|
|
258
|
-
continue;
|
|
263
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
259
264
|
target[key] = source[key];
|
|
260
265
|
}
|
|
261
266
|
return target;
|
|
@@ -266,21 +271,19 @@ var require_objectWithoutPropertiesLoose = __commonJS({
|
|
|
266
271
|
|
|
267
272
|
// ../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
268
273
|
var require_objectWithoutProperties = __commonJS({
|
|
269
|
-
"../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(
|
|
274
|
+
"../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports2, module2) {
|
|
275
|
+
"use strict";
|
|
270
276
|
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
271
277
|
function _objectWithoutProperties3(source, excluded) {
|
|
272
|
-
if (source == null)
|
|
273
|
-
return {};
|
|
278
|
+
if (source == null) return {};
|
|
274
279
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
275
280
|
var key, i;
|
|
276
281
|
if (Object.getOwnPropertySymbols) {
|
|
277
282
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
278
283
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
279
284
|
key = sourceSymbolKeys[i];
|
|
280
|
-
if (excluded.indexOf(key) >= 0)
|
|
281
|
-
|
|
282
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
283
|
-
continue;
|
|
285
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
286
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
284
287
|
target[key] = source[key];
|
|
285
288
|
}
|
|
286
289
|
}
|
|
@@ -292,7 +295,7 @@ var require_objectWithoutProperties = __commonJS({
|
|
|
292
295
|
|
|
293
296
|
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
|
294
297
|
var require_react_is_production_min = __commonJS({
|
|
295
|
-
"../../node_modules/react-is/cjs/react-is.production.min.js"(
|
|
298
|
+
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
296
299
|
"use strict";
|
|
297
300
|
var b = "function" === typeof Symbol && Symbol.for;
|
|
298
301
|
var c = b ? Symbol.for("react.element") : 60103;
|
|
@@ -346,66 +349,66 @@ var require_react_is_production_min = __commonJS({
|
|
|
346
349
|
function A(a) {
|
|
347
350
|
return z(a) === m;
|
|
348
351
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
352
|
+
exports2.AsyncMode = l;
|
|
353
|
+
exports2.ConcurrentMode = m;
|
|
354
|
+
exports2.ContextConsumer = k;
|
|
355
|
+
exports2.ContextProvider = h;
|
|
356
|
+
exports2.Element = c;
|
|
357
|
+
exports2.ForwardRef = n;
|
|
358
|
+
exports2.Fragment = e;
|
|
359
|
+
exports2.Lazy = t;
|
|
360
|
+
exports2.Memo = r2;
|
|
361
|
+
exports2.Portal = d;
|
|
362
|
+
exports2.Profiler = g;
|
|
363
|
+
exports2.StrictMode = f;
|
|
364
|
+
exports2.Suspense = p;
|
|
365
|
+
exports2.isAsyncMode = function(a) {
|
|
363
366
|
return A(a) || z(a) === l;
|
|
364
367
|
};
|
|
365
|
-
|
|
366
|
-
|
|
368
|
+
exports2.isConcurrentMode = A;
|
|
369
|
+
exports2.isContextConsumer = function(a) {
|
|
367
370
|
return z(a) === k;
|
|
368
371
|
};
|
|
369
|
-
|
|
372
|
+
exports2.isContextProvider = function(a) {
|
|
370
373
|
return z(a) === h;
|
|
371
374
|
};
|
|
372
|
-
|
|
375
|
+
exports2.isElement = function(a) {
|
|
373
376
|
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
374
377
|
};
|
|
375
|
-
|
|
378
|
+
exports2.isForwardRef = function(a) {
|
|
376
379
|
return z(a) === n;
|
|
377
380
|
};
|
|
378
|
-
|
|
381
|
+
exports2.isFragment = function(a) {
|
|
379
382
|
return z(a) === e;
|
|
380
383
|
};
|
|
381
|
-
|
|
384
|
+
exports2.isLazy = function(a) {
|
|
382
385
|
return z(a) === t;
|
|
383
386
|
};
|
|
384
|
-
|
|
387
|
+
exports2.isMemo = function(a) {
|
|
385
388
|
return z(a) === r2;
|
|
386
389
|
};
|
|
387
|
-
|
|
390
|
+
exports2.isPortal = function(a) {
|
|
388
391
|
return z(a) === d;
|
|
389
392
|
};
|
|
390
|
-
|
|
393
|
+
exports2.isProfiler = function(a) {
|
|
391
394
|
return z(a) === g;
|
|
392
395
|
};
|
|
393
|
-
|
|
396
|
+
exports2.isStrictMode = function(a) {
|
|
394
397
|
return z(a) === f;
|
|
395
398
|
};
|
|
396
|
-
|
|
399
|
+
exports2.isSuspense = function(a) {
|
|
397
400
|
return z(a) === p;
|
|
398
401
|
};
|
|
399
|
-
|
|
402
|
+
exports2.isValidElementType = function(a) {
|
|
400
403
|
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r2 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
401
404
|
};
|
|
402
|
-
|
|
405
|
+
exports2.typeOf = z;
|
|
403
406
|
}
|
|
404
407
|
});
|
|
405
408
|
|
|
406
409
|
// ../../node_modules/react-is/cjs/react-is.development.js
|
|
407
410
|
var require_react_is_development = __commonJS({
|
|
408
|
-
"../../node_modules/react-is/cjs/react-is.development.js"(
|
|
411
|
+
"../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
409
412
|
"use strict";
|
|
410
413
|
if (process.env.NODE_ENV !== "production") {
|
|
411
414
|
(function() {
|
|
@@ -525,34 +528,34 @@ var require_react_is_development = __commonJS({
|
|
|
525
528
|
function isSuspense(object) {
|
|
526
529
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
527
530
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
531
|
+
exports2.AsyncMode = AsyncMode;
|
|
532
|
+
exports2.ConcurrentMode = ConcurrentMode;
|
|
533
|
+
exports2.ContextConsumer = ContextConsumer;
|
|
534
|
+
exports2.ContextProvider = ContextProvider;
|
|
535
|
+
exports2.Element = Element2;
|
|
536
|
+
exports2.ForwardRef = ForwardRef;
|
|
537
|
+
exports2.Fragment = Fragment2;
|
|
538
|
+
exports2.Lazy = Lazy;
|
|
539
|
+
exports2.Memo = Memo;
|
|
540
|
+
exports2.Portal = Portal6;
|
|
541
|
+
exports2.Profiler = Profiler;
|
|
542
|
+
exports2.StrictMode = StrictMode;
|
|
543
|
+
exports2.Suspense = Suspense;
|
|
544
|
+
exports2.isAsyncMode = isAsyncMode;
|
|
545
|
+
exports2.isConcurrentMode = isConcurrentMode;
|
|
546
|
+
exports2.isContextConsumer = isContextConsumer;
|
|
547
|
+
exports2.isContextProvider = isContextProvider;
|
|
548
|
+
exports2.isElement = isElement;
|
|
549
|
+
exports2.isForwardRef = isForwardRef;
|
|
550
|
+
exports2.isFragment = isFragment;
|
|
551
|
+
exports2.isLazy = isLazy;
|
|
552
|
+
exports2.isMemo = isMemo;
|
|
553
|
+
exports2.isPortal = isPortal;
|
|
554
|
+
exports2.isProfiler = isProfiler;
|
|
555
|
+
exports2.isStrictMode = isStrictMode;
|
|
556
|
+
exports2.isSuspense = isSuspense;
|
|
557
|
+
exports2.isValidElementType = isValidElementType;
|
|
558
|
+
exports2.typeOf = typeOf;
|
|
556
559
|
})();
|
|
557
560
|
}
|
|
558
561
|
}
|
|
@@ -560,7 +563,7 @@ var require_react_is_development = __commonJS({
|
|
|
560
563
|
|
|
561
564
|
// ../../node_modules/react-is/index.js
|
|
562
565
|
var require_react_is = __commonJS({
|
|
563
|
-
"../../node_modules/react-is/index.js"(
|
|
566
|
+
"../../node_modules/react-is/index.js"(exports2, module2) {
|
|
564
567
|
"use strict";
|
|
565
568
|
if (process.env.NODE_ENV === "production") {
|
|
566
569
|
module2.exports = require_react_is_production_min();
|
|
@@ -572,7 +575,7 @@ var require_react_is = __commonJS({
|
|
|
572
575
|
|
|
573
576
|
// ../../node_modules/object-assign/index.js
|
|
574
577
|
var require_object_assign = __commonJS({
|
|
575
|
-
"../../node_modules/object-assign/index.js"(
|
|
578
|
+
"../../node_modules/object-assign/index.js"(exports2, module2) {
|
|
576
579
|
"use strict";
|
|
577
580
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
578
581
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -642,7 +645,7 @@ var require_object_assign = __commonJS({
|
|
|
642
645
|
|
|
643
646
|
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
|
|
644
647
|
var require_ReactPropTypesSecret = __commonJS({
|
|
645
|
-
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(
|
|
648
|
+
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
|
|
646
649
|
"use strict";
|
|
647
650
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
648
651
|
module2.exports = ReactPropTypesSecret;
|
|
@@ -651,14 +654,15 @@ var require_ReactPropTypesSecret = __commonJS({
|
|
|
651
654
|
|
|
652
655
|
// ../../node_modules/prop-types/lib/has.js
|
|
653
656
|
var require_has = __commonJS({
|
|
654
|
-
"../../node_modules/prop-types/lib/has.js"(
|
|
657
|
+
"../../node_modules/prop-types/lib/has.js"(exports2, module2) {
|
|
658
|
+
"use strict";
|
|
655
659
|
module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
656
660
|
}
|
|
657
661
|
});
|
|
658
662
|
|
|
659
663
|
// ../../node_modules/prop-types/checkPropTypes.js
|
|
660
664
|
var require_checkPropTypes = __commonJS({
|
|
661
|
-
"../../node_modules/prop-types/checkPropTypes.js"(
|
|
665
|
+
"../../node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
|
|
662
666
|
"use strict";
|
|
663
667
|
var printWarning = function() {
|
|
664
668
|
};
|
|
@@ -724,7 +728,7 @@ var require_checkPropTypes = __commonJS({
|
|
|
724
728
|
|
|
725
729
|
// ../../node_modules/prop-types/factoryWithTypeCheckers.js
|
|
726
730
|
var require_factoryWithTypeCheckers = __commonJS({
|
|
727
|
-
"../../node_modules/prop-types/factoryWithTypeCheckers.js"(
|
|
731
|
+
"../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
|
|
728
732
|
"use strict";
|
|
729
733
|
var ReactIs = require_react_is();
|
|
730
734
|
var assign = require_object_assign();
|
|
@@ -1167,7 +1171,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
1167
1171
|
|
|
1168
1172
|
// ../../node_modules/prop-types/factoryWithThrowingShims.js
|
|
1169
1173
|
var require_factoryWithThrowingShims = __commonJS({
|
|
1170
|
-
"../../node_modules/prop-types/factoryWithThrowingShims.js"(
|
|
1174
|
+
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
|
|
1171
1175
|
"use strict";
|
|
1172
1176
|
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
1173
1177
|
function emptyFunction() {
|
|
@@ -1223,7 +1227,8 @@ var require_factoryWithThrowingShims = __commonJS({
|
|
|
1223
1227
|
|
|
1224
1228
|
// ../../node_modules/prop-types/index.js
|
|
1225
1229
|
var require_prop_types = __commonJS({
|
|
1226
|
-
"../../node_modules/prop-types/index.js"(
|
|
1230
|
+
"../../node_modules/prop-types/index.js"(exports2, module2) {
|
|
1231
|
+
"use strict";
|
|
1227
1232
|
if (process.env.NODE_ENV !== "production") {
|
|
1228
1233
|
ReactIs = require_react_is();
|
|
1229
1234
|
throwOnDirectAccess = true;
|
|
@@ -1238,12 +1243,11 @@ var require_prop_types = __commonJS({
|
|
|
1238
1243
|
|
|
1239
1244
|
// ../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
1240
1245
|
var require_arrayLikeToArray = __commonJS({
|
|
1241
|
-
"../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(
|
|
1246
|
+
"../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports2, module2) {
|
|
1247
|
+
"use strict";
|
|
1242
1248
|
function _arrayLikeToArray(arr, len) {
|
|
1243
|
-
if (len == null || len > arr.length)
|
|
1244
|
-
|
|
1245
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1246
|
-
arr2[i] = arr[i];
|
|
1249
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1250
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1247
1251
|
return arr2;
|
|
1248
1252
|
}
|
|
1249
1253
|
module2.exports = _arrayLikeToArray, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
@@ -1252,11 +1256,11 @@ var require_arrayLikeToArray = __commonJS({
|
|
|
1252
1256
|
|
|
1253
1257
|
// ../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
1254
1258
|
var require_arrayWithoutHoles = __commonJS({
|
|
1255
|
-
"../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(
|
|
1259
|
+
"../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports2, module2) {
|
|
1260
|
+
"use strict";
|
|
1256
1261
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
1257
1262
|
function _arrayWithoutHoles(arr) {
|
|
1258
|
-
if (Array.isArray(arr))
|
|
1259
|
-
return arrayLikeToArray(arr);
|
|
1263
|
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
1260
1264
|
}
|
|
1261
1265
|
module2.exports = _arrayWithoutHoles, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
1262
1266
|
}
|
|
@@ -1264,10 +1268,10 @@ var require_arrayWithoutHoles = __commonJS({
|
|
|
1264
1268
|
|
|
1265
1269
|
// ../../node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
1266
1270
|
var require_iterableToArray = __commonJS({
|
|
1267
|
-
"../../node_modules/@babel/runtime/helpers/iterableToArray.js"(
|
|
1271
|
+
"../../node_modules/@babel/runtime/helpers/iterableToArray.js"(exports2, module2) {
|
|
1272
|
+
"use strict";
|
|
1268
1273
|
function _iterableToArray(iter) {
|
|
1269
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1270
|
-
return Array.from(iter);
|
|
1274
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1271
1275
|
}
|
|
1272
1276
|
module2.exports = _iterableToArray, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
1273
1277
|
}
|
|
@@ -1275,20 +1279,16 @@ var require_iterableToArray = __commonJS({
|
|
|
1275
1279
|
|
|
1276
1280
|
// ../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
1277
1281
|
var require_unsupportedIterableToArray = __commonJS({
|
|
1278
|
-
"../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(
|
|
1282
|
+
"../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports2, module2) {
|
|
1283
|
+
"use strict";
|
|
1279
1284
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
1280
1285
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1281
|
-
if (!o)
|
|
1282
|
-
|
|
1283
|
-
if (typeof o === "string")
|
|
1284
|
-
return arrayLikeToArray(o, minLen);
|
|
1286
|
+
if (!o) return;
|
|
1287
|
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
1285
1288
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1286
|
-
if (n === "Object" && o.constructor)
|
|
1287
|
-
|
|
1288
|
-
if (n === "
|
|
1289
|
-
return Array.from(o);
|
|
1290
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1291
|
-
return arrayLikeToArray(o, minLen);
|
|
1289
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1290
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1291
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
1292
1292
|
}
|
|
1293
1293
|
module2.exports = _unsupportedIterableToArray, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
1294
1294
|
}
|
|
@@ -1296,7 +1296,8 @@ var require_unsupportedIterableToArray = __commonJS({
|
|
|
1296
1296
|
|
|
1297
1297
|
// ../../node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
1298
1298
|
var require_nonIterableSpread = __commonJS({
|
|
1299
|
-
"../../node_modules/@babel/runtime/helpers/nonIterableSpread.js"(
|
|
1299
|
+
"../../node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports2, module2) {
|
|
1300
|
+
"use strict";
|
|
1300
1301
|
function _nonIterableSpread() {
|
|
1301
1302
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1302
1303
|
}
|
|
@@ -1306,7 +1307,8 @@ var require_nonIterableSpread = __commonJS({
|
|
|
1306
1307
|
|
|
1307
1308
|
// ../../node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
1308
1309
|
var require_toConsumableArray = __commonJS({
|
|
1309
|
-
"../../node_modules/@babel/runtime/helpers/toConsumableArray.js"(
|
|
1310
|
+
"../../node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports2, module2) {
|
|
1311
|
+
"use strict";
|
|
1310
1312
|
var arrayWithoutHoles = require_arrayWithoutHoles();
|
|
1311
1313
|
var iterableToArray = require_iterableToArray();
|
|
1312
1314
|
var unsupportedIterableToArray = require_unsupportedIterableToArray();
|
|
@@ -1320,10 +1322,10 @@ var require_toConsumableArray = __commonJS({
|
|
|
1320
1322
|
|
|
1321
1323
|
// ../../node_modules/@babel/runtime/helpers/arrayWithHoles.js
|
|
1322
1324
|
var require_arrayWithHoles = __commonJS({
|
|
1323
|
-
"../../node_modules/@babel/runtime/helpers/arrayWithHoles.js"(
|
|
1325
|
+
"../../node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports2, module2) {
|
|
1326
|
+
"use strict";
|
|
1324
1327
|
function _arrayWithHoles(arr) {
|
|
1325
|
-
if (Array.isArray(arr))
|
|
1326
|
-
return arr;
|
|
1328
|
+
if (Array.isArray(arr)) return arr;
|
|
1327
1329
|
}
|
|
1328
1330
|
module2.exports = _arrayWithHoles, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
1329
1331
|
}
|
|
@@ -1331,28 +1333,24 @@ var require_arrayWithHoles = __commonJS({
|
|
|
1331
1333
|
|
|
1332
1334
|
// ../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
|
|
1333
1335
|
var require_iterableToArrayLimit = __commonJS({
|
|
1334
|
-
"../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(
|
|
1336
|
+
"../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports2, module2) {
|
|
1337
|
+
"use strict";
|
|
1335
1338
|
function _iterableToArrayLimit(r2, l) {
|
|
1336
1339
|
var t = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
1337
1340
|
if (null != t) {
|
|
1338
1341
|
var e, n, i, u, a = [], f = true, o = false;
|
|
1339
1342
|
try {
|
|
1340
1343
|
if (i = (t = t.call(r2)).next, 0 === l) {
|
|
1341
|
-
if (Object(t) !== t)
|
|
1342
|
-
return;
|
|
1344
|
+
if (Object(t) !== t) return;
|
|
1343
1345
|
f = false;
|
|
1344
|
-
} else
|
|
1345
|
-
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
1346
|
-
;
|
|
1346
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
1347
1347
|
} catch (r3) {
|
|
1348
1348
|
o = true, n = r3;
|
|
1349
1349
|
} finally {
|
|
1350
1350
|
try {
|
|
1351
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
1352
|
-
return;
|
|
1351
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
1353
1352
|
} finally {
|
|
1354
|
-
if (o)
|
|
1355
|
-
throw n;
|
|
1353
|
+
if (o) throw n;
|
|
1356
1354
|
}
|
|
1357
1355
|
}
|
|
1358
1356
|
return a;
|
|
@@ -1364,7 +1362,8 @@ var require_iterableToArrayLimit = __commonJS({
|
|
|
1364
1362
|
|
|
1365
1363
|
// ../../node_modules/@babel/runtime/helpers/nonIterableRest.js
|
|
1366
1364
|
var require_nonIterableRest = __commonJS({
|
|
1367
|
-
"../../node_modules/@babel/runtime/helpers/nonIterableRest.js"(
|
|
1365
|
+
"../../node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports2, module2) {
|
|
1366
|
+
"use strict";
|
|
1368
1367
|
function _nonIterableRest() {
|
|
1369
1368
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1370
1369
|
}
|
|
@@ -1374,7 +1373,8 @@ var require_nonIterableRest = __commonJS({
|
|
|
1374
1373
|
|
|
1375
1374
|
// ../../node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
1376
1375
|
var require_slicedToArray = __commonJS({
|
|
1377
|
-
"../../node_modules/@babel/runtime/helpers/slicedToArray.js"(
|
|
1376
|
+
"../../node_modules/@babel/runtime/helpers/slicedToArray.js"(exports2, module2) {
|
|
1377
|
+
"use strict";
|
|
1378
1378
|
var arrayWithHoles = require_arrayWithHoles();
|
|
1379
1379
|
var iterableToArrayLimit = require_iterableToArrayLimit();
|
|
1380
1380
|
var unsupportedIterableToArray = require_unsupportedIterableToArray();
|
|
@@ -4034,8 +4034,7 @@ function AvatarStack({
|
|
|
4034
4034
|
return import_react2.default.cloneElement(child, { size: size3 });
|
|
4035
4035
|
});
|
|
4036
4036
|
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "flex" }, childrenArray.map((child, index) => {
|
|
4037
|
-
if (index === 0)
|
|
4038
|
-
return child;
|
|
4037
|
+
if (index === 0) return child;
|
|
4039
4038
|
return /* @__PURE__ */ import_react2.default.createElement(
|
|
4040
4039
|
"div",
|
|
4041
4040
|
{
|
|
@@ -4636,8 +4635,7 @@ var Dialog = (0, import_react11.forwardRef)(function Dialog2({
|
|
|
4636
4635
|
const contentRef = (0, import_react11.useRef)(null);
|
|
4637
4636
|
(0, import_react11.useImperativeHandle)(forwardedRef, () => ({
|
|
4638
4637
|
containsElement(element) {
|
|
4639
|
-
if (!contentRef.current)
|
|
4640
|
-
return false;
|
|
4638
|
+
if (!contentRef.current) return false;
|
|
4641
4639
|
return contentRef.current.contains(element);
|
|
4642
4640
|
}
|
|
4643
4641
|
}));
|
|
@@ -4924,8 +4922,7 @@ var Emitter = class {
|
|
|
4924
4922
|
};
|
|
4925
4923
|
removeListener = (f) => {
|
|
4926
4924
|
const index = this.listeners.indexOf(f);
|
|
4927
|
-
if (index === -1)
|
|
4928
|
-
return;
|
|
4925
|
+
if (index === -1) return;
|
|
4929
4926
|
this.listeners.splice(index, 1);
|
|
4930
4927
|
};
|
|
4931
4928
|
emit = (...args) => {
|
|
@@ -5001,8 +4998,7 @@ function handleNudge(e) {
|
|
|
5001
4998
|
handled = true;
|
|
5002
4999
|
break;
|
|
5003
5000
|
}
|
|
5004
|
-
if (!handled)
|
|
5005
|
-
return;
|
|
5001
|
+
if (!handled) return;
|
|
5006
5002
|
if (e.shiftKey) {
|
|
5007
5003
|
amount *= 10;
|
|
5008
5004
|
} else if (e.altKey) {
|
|
@@ -5028,8 +5024,7 @@ var DropdownMenuItem = (0, import_react28.memo)(function ContextMenuItem({
|
|
|
5028
5024
|
shortcut
|
|
5029
5025
|
}) {
|
|
5030
5026
|
const handleSelectItem = (0, import_react28.useCallback)(() => {
|
|
5031
|
-
if (!value)
|
|
5032
|
-
return;
|
|
5027
|
+
if (!value) return;
|
|
5033
5028
|
onSelect(value);
|
|
5034
5029
|
}, [onSelect, value]);
|
|
5035
5030
|
if (checked) {
|
|
@@ -5148,7 +5143,7 @@ var import_react30 = __toESM(require("react"));
|
|
|
5148
5143
|
|
|
5149
5144
|
// src/contexts/GlobalInputBlurContext.tsx
|
|
5150
5145
|
var import_react29 = require("react");
|
|
5151
|
-
var defaultValue = (() => {
|
|
5146
|
+
var defaultValue = /* @__PURE__ */ (() => {
|
|
5152
5147
|
const listeners = [];
|
|
5153
5148
|
const value = {
|
|
5154
5149
|
addListener(f) {
|
|
@@ -5156,8 +5151,7 @@ var defaultValue = (() => {
|
|
|
5156
5151
|
},
|
|
5157
5152
|
removeListener(f) {
|
|
5158
5153
|
const index = listeners.indexOf(f);
|
|
5159
|
-
if (index === -1)
|
|
5160
|
-
return;
|
|
5154
|
+
if (index === -1) return;
|
|
5161
5155
|
listeners.splice(index, 1);
|
|
5162
5156
|
},
|
|
5163
5157
|
trigger() {
|
|
@@ -5261,16 +5255,14 @@ var SubmittableTextInput = (0, import_react30.forwardRef)(function SubmittableTe
|
|
|
5261
5255
|
const handleSubmit = (0, import_react30.useCallback)(() => {
|
|
5262
5256
|
const submissionValue = isSubmitTriggeredByEscapeKey.current ? value : internalValue;
|
|
5263
5257
|
isSubmitTriggeredByEscapeKey.current = false;
|
|
5264
|
-
if (submissionValue === value && !allowSubmittingWithSameValue)
|
|
5265
|
-
return;
|
|
5258
|
+
if (submissionValue === value && !allowSubmittingWithSameValue) return;
|
|
5266
5259
|
onSubmit(submissionValue);
|
|
5267
5260
|
userDidEdit.current = false;
|
|
5268
5261
|
setInternalValue(latestValue.current);
|
|
5269
5262
|
}, [allowSubmittingWithSameValue, value, internalValue, onSubmit]);
|
|
5270
5263
|
useGlobalInputBlurListener(
|
|
5271
5264
|
(0, import_react30.useCallback)(() => {
|
|
5272
|
-
if (ref.current !== document.activeElement)
|
|
5273
|
-
return;
|
|
5265
|
+
if (ref.current !== document.activeElement) return;
|
|
5274
5266
|
handleSubmit();
|
|
5275
5267
|
}, [handleSubmit])
|
|
5276
5268
|
);
|
|
@@ -5322,8 +5314,7 @@ var SubmittableTextInput = (0, import_react30.forwardRef)(function SubmittableTe
|
|
|
5322
5314
|
clearTimeout(autoSubmitTimeoutRef.current);
|
|
5323
5315
|
}
|
|
5324
5316
|
autoSubmitTimeoutRef.current = setTimeout(() => {
|
|
5325
|
-
if (userDidEdit.current === false)
|
|
5326
|
-
return;
|
|
5317
|
+
if (userDidEdit.current === false) return;
|
|
5327
5318
|
latestHandleSubmit.current();
|
|
5328
5319
|
}, submitAutomaticallyAfterDelay);
|
|
5329
5320
|
}
|
|
@@ -5463,11 +5454,9 @@ var InputFieldLabel = (0, import_react32.memo)(
|
|
|
5463
5454
|
const { labelPosition, hasDropdown, setLabelWidth, size: size3 } = (0, import_react32.useContext)(InputFieldContext);
|
|
5464
5455
|
const ref = (0, import_react32.useRef)(null);
|
|
5465
5456
|
(0, import_react32.useLayoutEffect)(() => {
|
|
5466
|
-
if (!setLabelWidth)
|
|
5467
|
-
return;
|
|
5457
|
+
if (!setLabelWidth) return;
|
|
5468
5458
|
const width = ref.current?.getBoundingClientRect().width;
|
|
5469
|
-
if (!width)
|
|
5470
|
-
return;
|
|
5459
|
+
if (!width) return;
|
|
5471
5460
|
setLabelWidth(width);
|
|
5472
5461
|
}, [setLabelWidth]);
|
|
5473
5462
|
return /* @__PURE__ */ import_react32.default.createElement(
|
|
@@ -5530,11 +5519,9 @@ var InputFieldButton = (0, import_react32.memo)(
|
|
|
5530
5519
|
const { size: size3, inputRef, setButtonWidth } = (0, import_react32.useContext)(InputFieldContext);
|
|
5531
5520
|
const ref = (0, import_react32.useRef)(null);
|
|
5532
5521
|
(0, import_react32.useLayoutEffect)(() => {
|
|
5533
|
-
if (!setButtonWidth)
|
|
5534
|
-
return;
|
|
5522
|
+
if (!setButtonWidth) return;
|
|
5535
5523
|
const width = ref.current?.getBoundingClientRect().width;
|
|
5536
|
-
if (!width)
|
|
5537
|
-
return;
|
|
5524
|
+
if (!width) return;
|
|
5538
5525
|
setButtonWidth(width);
|
|
5539
5526
|
}, [setButtonWidth]);
|
|
5540
5527
|
const defaultHandleClick = (0, import_react32.useCallback)(
|
|
@@ -5686,8 +5673,7 @@ function InputFieldNumberInput(props) {
|
|
|
5686
5673
|
const handleKeyDown = (0, import_react32.useCallback)(
|
|
5687
5674
|
(event) => {
|
|
5688
5675
|
const amount = handleNudge(event);
|
|
5689
|
-
if (!amount)
|
|
5690
|
-
return;
|
|
5676
|
+
if (!amount) return;
|
|
5691
5677
|
onNudge?.(amount);
|
|
5692
5678
|
setInternalValue(void 0);
|
|
5693
5679
|
event.preventDefault();
|
|
@@ -5875,13 +5861,11 @@ var DialogProvider = function DialogProvider2({
|
|
|
5875
5861
|
const [contents, setContents] = (0, import_react33.useState)();
|
|
5876
5862
|
const isOpen = !!contents;
|
|
5877
5863
|
const close = (0, import_react33.useCallback)(() => {
|
|
5878
|
-
if (!contents)
|
|
5879
|
-
return;
|
|
5864
|
+
if (!contents) return;
|
|
5880
5865
|
contents.resolve(void 0);
|
|
5881
5866
|
}, [contents]);
|
|
5882
5867
|
const submit = (0, import_react33.useCallback)(() => {
|
|
5883
|
-
if (!contents || !contents.inputValue)
|
|
5884
|
-
return;
|
|
5868
|
+
if (!contents || !contents.inputValue) return;
|
|
5885
5869
|
contents.resolve(contents.inputValue);
|
|
5886
5870
|
setContents(void 0);
|
|
5887
5871
|
}, [contents]);
|
|
@@ -5902,8 +5886,7 @@ var DialogProvider = function DialogProvider2({
|
|
|
5902
5886
|
);
|
|
5903
5887
|
const handleKeyDown = (0, import_react33.useCallback)(
|
|
5904
5888
|
(event) => {
|
|
5905
|
-
if (event.key !== "Enter")
|
|
5906
|
-
return;
|
|
5889
|
+
if (event.key !== "Enter") return;
|
|
5907
5890
|
event.stopPropagation();
|
|
5908
5891
|
event.preventDefault();
|
|
5909
5892
|
submit();
|
|
@@ -5913,8 +5896,7 @@ var DialogProvider = function DialogProvider2({
|
|
|
5913
5896
|
const inputRef = (0, import_react33.useRef)(null);
|
|
5914
5897
|
const dialogRef = (0, import_react33.useRef)(null);
|
|
5915
5898
|
const containsElement = (0, import_react33.useCallback)((element) => {
|
|
5916
|
-
if (!dialogRef.current)
|
|
5917
|
-
return false;
|
|
5899
|
+
if (!dialogRef.current) return false;
|
|
5918
5900
|
return dialogRef.current.containsElement(element);
|
|
5919
5901
|
}, []);
|
|
5920
5902
|
return /* @__PURE__ */ import_react33.default.createElement(import_react33.default.Fragment, null, /* @__PURE__ */ import_react33.default.createElement(
|
|
@@ -6042,8 +6024,7 @@ var DesignSystemConfigurationProvider = (0, import_react35.memo)(
|
|
|
6042
6024
|
platform ?? "key"
|
|
6043
6025
|
);
|
|
6044
6026
|
(0, import_react35.useEffect)(() => {
|
|
6045
|
-
if (platform !== void 0)
|
|
6046
|
-
return;
|
|
6027
|
+
if (platform !== void 0) return;
|
|
6047
6028
|
if (typeof navigator !== "undefined") {
|
|
6048
6029
|
setInternalPlatform((0, import_noya_keymap2.getCurrentPlatform)(navigator));
|
|
6049
6030
|
}
|
|
@@ -6071,8 +6052,7 @@ function withSeparatorElements(elements2, separator) {
|
|
|
6071
6052
|
if ((0, import_react36.isValidElement)(sep) && sep.key == null) {
|
|
6072
6053
|
sep = (0, import_react36.cloneElement)(sep, { key: createKey(i) });
|
|
6073
6054
|
}
|
|
6074
|
-
if (!sep || typeof sep === "boolean")
|
|
6075
|
-
continue;
|
|
6055
|
+
if (!sep || typeof sep === "boolean") continue;
|
|
6076
6056
|
childrenArray.splice(i, 0, sep);
|
|
6077
6057
|
}
|
|
6078
6058
|
return childrenArray;
|
|
@@ -6111,12 +6091,9 @@ var styles = {
|
|
|
6111
6091
|
`
|
|
6112
6092
|
};
|
|
6113
6093
|
function getKeyboardShortcuts(item) {
|
|
6114
|
-
if (item === SEPARATOR_ITEM)
|
|
6115
|
-
|
|
6116
|
-
if (item.
|
|
6117
|
-
return item.items.flatMap(getKeyboardShortcuts);
|
|
6118
|
-
if (item.disabled || !item.value || !item.shortcut)
|
|
6119
|
-
return [];
|
|
6094
|
+
if (item === SEPARATOR_ITEM) return [];
|
|
6095
|
+
if (item.items) return item.items.flatMap(getKeyboardShortcuts);
|
|
6096
|
+
if (item.disabled || !item.value || !item.shortcut) return [];
|
|
6120
6097
|
return [[item.shortcut, item.value]];
|
|
6121
6098
|
}
|
|
6122
6099
|
function getKeyboardShortcutsForMenuItems(menuItems, onSelect) {
|
|
@@ -6161,8 +6138,7 @@ var ContextMenuItem2 = (0, import_react38.memo)(function ContextMenuItem3({
|
|
|
6161
6138
|
[]
|
|
6162
6139
|
);
|
|
6163
6140
|
const handleSelectItem = (0, import_react38.useCallback)(() => {
|
|
6164
|
-
if (!value)
|
|
6165
|
-
return;
|
|
6141
|
+
if (!value) return;
|
|
6166
6142
|
onSelect(value);
|
|
6167
6143
|
}, [onSelect, value]);
|
|
6168
6144
|
if (checked) {
|
|
@@ -6345,8 +6321,7 @@ var DraggableMenuButton = (0, import_react40.memo)(function DraggableMenuButton2
|
|
|
6345
6321
|
);
|
|
6346
6322
|
const handleOpenChange = (0, import_react40.useCallback)(
|
|
6347
6323
|
(isOpen) => {
|
|
6348
|
-
if (!isOpen)
|
|
6349
|
-
setOpen(false);
|
|
6324
|
+
if (!isOpen) setOpen(false);
|
|
6350
6325
|
},
|
|
6351
6326
|
[setOpen]
|
|
6352
6327
|
);
|
|
@@ -6739,8 +6714,7 @@ function useImageData(ref) {
|
|
|
6739
6714
|
var import_react42 = require("react");
|
|
6740
6715
|
function useObjectURL(object) {
|
|
6741
6716
|
const objectURL = (0, import_react42.useMemo)(() => {
|
|
6742
|
-
if (object instanceof Blob)
|
|
6743
|
-
return URL.createObjectURL(object);
|
|
6717
|
+
if (object instanceof Blob) return URL.createObjectURL(object);
|
|
6744
6718
|
const bytes = object instanceof Uint8Array ? object : object !== void 0 ? new Uint8Array(object) : new Uint8Array();
|
|
6745
6719
|
return URL.createObjectURL(new Blob([bytes]));
|
|
6746
6720
|
}, [object]);
|
|
@@ -6857,21 +6831,19 @@ var background = `center url("data:image/svg+xml;utf8,${dotsHorizontalSvg(
|
|
|
6857
6831
|
var FillPreviewBackground = (0, import_react43.memo)(function FillPreviewBackground2({
|
|
6858
6832
|
value
|
|
6859
6833
|
}) {
|
|
6860
|
-
if (!value)
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
);
|
|
6834
|
+
if (!value) return /* @__PURE__ */ import_react43.default.createElement(
|
|
6835
|
+
Background,
|
|
6836
|
+
{
|
|
6837
|
+
background
|
|
6838
|
+
}
|
|
6839
|
+
);
|
|
6867
6840
|
switch (value._class) {
|
|
6868
6841
|
case "color":
|
|
6869
6842
|
return /* @__PURE__ */ import_react43.default.createElement(ColorPreviewBackground, { color: value });
|
|
6870
6843
|
case "gradient":
|
|
6871
6844
|
return /* @__PURE__ */ import_react43.default.createElement(GradientPreviewBackground, { gradient: value });
|
|
6872
6845
|
case "pattern":
|
|
6873
|
-
if (!value.image)
|
|
6874
|
-
return null;
|
|
6846
|
+
if (!value.image) return null;
|
|
6875
6847
|
return /* @__PURE__ */ import_react43.default.createElement(
|
|
6876
6848
|
PatternPreviewBackground,
|
|
6877
6849
|
{
|
|
@@ -7035,8 +7007,7 @@ var FloatingWindow = ({
|
|
|
7035
7007
|
}
|
|
7036
7008
|
};
|
|
7037
7009
|
const handleMouseDown = (0, import_react45.useCallback)((e) => {
|
|
7038
|
-
if (!wrapperRef.current)
|
|
7039
|
-
return;
|
|
7010
|
+
if (!wrapperRef.current) return;
|
|
7040
7011
|
const rect = wrapperRef.current.getBoundingClientRect();
|
|
7041
7012
|
setDragOffset({
|
|
7042
7013
|
x: e.clientX - rect.left,
|
|
@@ -7124,8 +7095,7 @@ var FloatingWindow = ({
|
|
|
7124
7095
|
const floatingWindowManager = useFloatingWindowManager();
|
|
7125
7096
|
const currentFloatingWindow = useCurrentFloatingWindowInternal();
|
|
7126
7097
|
const handleClose = (0, import_react45.useCallback)(() => {
|
|
7127
|
-
if (onClose)
|
|
7128
|
-
onClose();
|
|
7098
|
+
if (onClose) onClose();
|
|
7129
7099
|
floatingWindowManager.closeWindow(currentFloatingWindow.id);
|
|
7130
7100
|
}, [currentFloatingWindow.id, floatingWindowManager, onClose]);
|
|
7131
7101
|
return /* @__PURE__ */ import_react45.default.createElement(
|
|
@@ -7485,8 +7455,7 @@ function fuzzyFilter({
|
|
|
7485
7455
|
...fuzzyScore({ item: text, query })
|
|
7486
7456
|
})
|
|
7487
7457
|
);
|
|
7488
|
-
if (!query)
|
|
7489
|
-
return scoredItems;
|
|
7458
|
+
if (!query) return scoredItems;
|
|
7490
7459
|
return scoredItems.filter(({ score }) => score > scoreThreshold).sort((a, b) => b.score - a.score);
|
|
7491
7460
|
}
|
|
7492
7461
|
function fuzzyTokenize({
|
|
@@ -7655,20 +7624,13 @@ var React35 = __toESM(require("react"));
|
|
|
7655
7624
|
// ../../node_modules/clsx/dist/clsx.m.js
|
|
7656
7625
|
function r(e) {
|
|
7657
7626
|
var t, f, n = "";
|
|
7658
|
-
if ("string" == typeof e || "number" == typeof e)
|
|
7659
|
-
|
|
7660
|
-
else
|
|
7661
|
-
if (Array.isArray(e))
|
|
7662
|
-
for (t = 0; t < e.length; t++)
|
|
7663
|
-
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7664
|
-
else
|
|
7665
|
-
for (t in e)
|
|
7666
|
-
e[t] && (n && (n += " "), n += t);
|
|
7627
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
7628
|
+
else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7629
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
7667
7630
|
return n;
|
|
7668
7631
|
}
|
|
7669
7632
|
function clsx() {
|
|
7670
|
-
for (var e, t, f = 0, n = ""; f < arguments.length; )
|
|
7671
|
-
(e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7633
|
+
for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7672
7634
|
return n;
|
|
7673
7635
|
}
|
|
7674
7636
|
var clsx_m_default = clsx;
|
|
@@ -8401,10 +8363,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
8401
8363
|
var keys = Object.keys(object);
|
|
8402
8364
|
if (Object.getOwnPropertySymbols) {
|
|
8403
8365
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
8404
|
-
if (enumerableOnly)
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
});
|
|
8366
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
8367
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8368
|
+
});
|
|
8408
8369
|
keys.push.apply(keys, symbols);
|
|
8409
8370
|
}
|
|
8410
8371
|
return keys;
|
|
@@ -9534,10 +9495,9 @@ function ownKeys2(object, enumerableOnly) {
|
|
|
9534
9495
|
var keys = Object.keys(object);
|
|
9535
9496
|
if (Object.getOwnPropertySymbols) {
|
|
9536
9497
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
9537
|
-
if (enumerableOnly)
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
});
|
|
9498
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
9499
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9500
|
+
});
|
|
9541
9501
|
keys.push.apply(keys, symbols);
|
|
9542
9502
|
}
|
|
9543
9503
|
return keys;
|
|
@@ -9885,10 +9845,9 @@ function ownKeys3(object, enumerableOnly) {
|
|
|
9885
9845
|
var keys = Object.keys(object);
|
|
9886
9846
|
if (Object.getOwnPropertySymbols) {
|
|
9887
9847
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
9888
|
-
if (enumerableOnly)
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
});
|
|
9848
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
9849
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9850
|
+
});
|
|
9892
9851
|
keys.push.apply(keys, symbols);
|
|
9893
9852
|
}
|
|
9894
9853
|
return keys;
|
|
@@ -10209,10 +10168,9 @@ function ownKeys4(object, enumerableOnly) {
|
|
|
10209
10168
|
var keys = Object.keys(object);
|
|
10210
10169
|
if (Object.getOwnPropertySymbols) {
|
|
10211
10170
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
10212
|
-
if (enumerableOnly)
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
});
|
|
10171
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
10172
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10173
|
+
});
|
|
10216
10174
|
keys.push.apply(keys, symbols);
|
|
10217
10175
|
}
|
|
10218
10176
|
return keys;
|
|
@@ -12231,10 +12189,9 @@ function ownKeys5(object, enumerableOnly) {
|
|
|
12231
12189
|
var keys = Object.keys(object);
|
|
12232
12190
|
if (Object.getOwnPropertySymbols) {
|
|
12233
12191
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
12234
|
-
if (enumerableOnly)
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
});
|
|
12192
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
12193
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
12194
|
+
});
|
|
12238
12195
|
keys.push.apply(keys, symbols);
|
|
12239
12196
|
}
|
|
12240
12197
|
return keys;
|
|
@@ -12680,10 +12637,9 @@ function ownKeys6(object, enumerableOnly) {
|
|
|
12680
12637
|
var keys = Object.keys(object);
|
|
12681
12638
|
if (Object.getOwnPropertySymbols) {
|
|
12682
12639
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
12683
|
-
if (enumerableOnly)
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
});
|
|
12640
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
12641
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
12642
|
+
});
|
|
12687
12643
|
keys.push.apply(keys, symbols);
|
|
12688
12644
|
}
|
|
12689
12645
|
return keys;
|
|
@@ -13690,10 +13646,9 @@ function ownKeys7(object, enumerableOnly) {
|
|
|
13690
13646
|
var keys = Object.keys(object);
|
|
13691
13647
|
if (Object.getOwnPropertySymbols) {
|
|
13692
13648
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
13693
|
-
if (enumerableOnly)
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
});
|
|
13649
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
13650
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
13651
|
+
});
|
|
13697
13652
|
keys.push.apply(keys, symbols);
|
|
13698
13653
|
}
|
|
13699
13654
|
return keys;
|
|
@@ -14462,10 +14417,9 @@ function ownKeys8(object, enumerableOnly) {
|
|
|
14462
14417
|
var keys = Object.keys(object);
|
|
14463
14418
|
if (Object.getOwnPropertySymbols) {
|
|
14464
14419
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
14465
|
-
if (enumerableOnly)
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
});
|
|
14420
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
14421
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14422
|
+
});
|
|
14469
14423
|
keys.push.apply(keys, symbols);
|
|
14470
14424
|
}
|
|
14471
14425
|
return keys;
|
|
@@ -14724,8 +14678,7 @@ var normalizeListDestinationIndex = (index, position) => {
|
|
|
14724
14678
|
return position === "above" ? index : index + 1;
|
|
14725
14679
|
};
|
|
14726
14680
|
var defaultAcceptsDrop = (sourceIndex, destinationIndex, position) => {
|
|
14727
|
-
if (position === "inside")
|
|
14728
|
-
return false;
|
|
14681
|
+
if (position === "inside") return false;
|
|
14729
14682
|
const normalized = normalizeListDestinationIndex(destinationIndex, position);
|
|
14730
14683
|
if (sourceIndex === normalized || sourceIndex + 1 === normalized) {
|
|
14731
14684
|
return false;
|
|
@@ -14840,8 +14793,7 @@ function SortableRoot({
|
|
|
14840
14793
|
axis === "x" ? over.rect.offsetLeft : over.rect.offsetTop,
|
|
14841
14794
|
axis === "x" ? over.rect.width : over.rect.height
|
|
14842
14795
|
);
|
|
14843
|
-
if (!indicator)
|
|
14844
|
-
return;
|
|
14796
|
+
if (!indicator) return;
|
|
14845
14797
|
onMoveItem?.(oldIndex, newIndex, indicator);
|
|
14846
14798
|
}
|
|
14847
14799
|
},
|
|
@@ -14940,8 +14892,7 @@ function ListViewEditableRowTitle({
|
|
|
14940
14892
|
const inputRef = (0, import_react50.useRef)(null);
|
|
14941
14893
|
(0, import_react50.useLayoutEffect)(() => {
|
|
14942
14894
|
const element = inputRef.current;
|
|
14943
|
-
if (!element || !autoFocus)
|
|
14944
|
-
return;
|
|
14895
|
+
if (!element || !autoFocus) return;
|
|
14945
14896
|
element.focus();
|
|
14946
14897
|
setTimeout(() => {
|
|
14947
14898
|
element.select();
|
|
@@ -15158,8 +15109,7 @@ var ListViewRow = (0, import_react50.forwardRef)(function ListViewRow2({
|
|
|
15158
15109
|
const handlePress = (0, import_react50.useCallback)(
|
|
15159
15110
|
(event) => {
|
|
15160
15111
|
event.preventDefault();
|
|
15161
|
-
if (event.button !== 0)
|
|
15162
|
-
return;
|
|
15112
|
+
if (event.button !== 0) return;
|
|
15163
15113
|
onPress?.(event);
|
|
15164
15114
|
},
|
|
15165
15115
|
[onPress]
|
|
@@ -15395,8 +15345,7 @@ var ListViewRootInner = (0, import_react50.forwardRef)(function ListViewRootInne
|
|
|
15395
15345
|
if (variant === "bare" || variant === "normal")
|
|
15396
15346
|
return defaultContextValue;
|
|
15397
15347
|
const current = renderChild(i);
|
|
15398
|
-
if (!(0, import_react50.isValidElement)(current))
|
|
15399
|
-
return;
|
|
15348
|
+
if (!(0, import_react50.isValidElement)(current)) return;
|
|
15400
15349
|
const prevChild = i - 1 >= 0 && renderChild(i - 1);
|
|
15401
15350
|
const nextChild = i + 1 < data.length && renderChild(i + 1);
|
|
15402
15351
|
const next = (0, import_react50.isValidElement)(nextChild) ? nextChild : void 0;
|
|
@@ -15465,8 +15414,7 @@ var ListViewRootInner = (0, import_react50.forwardRef)(function ListViewRootInne
|
|
|
15465
15414
|
(index) => {
|
|
15466
15415
|
const contextValue = getItemContextValue(index);
|
|
15467
15416
|
const current = renderChild(index);
|
|
15468
|
-
if (!contextValue || !(0, import_react50.isValidElement)(current))
|
|
15469
|
-
return null;
|
|
15417
|
+
if (!contextValue || !(0, import_react50.isValidElement)(current)) return null;
|
|
15470
15418
|
return /* @__PURE__ */ import_react50.default.createElement(ListRowContext.Provider, { key: current.key, value: contextValue }, current);
|
|
15471
15419
|
},
|
|
15472
15420
|
[getItemContextValue, renderChild]
|
|
@@ -15594,8 +15542,7 @@ function filterWithGroupedSections(items, query) {
|
|
|
15594
15542
|
if (maxVisibleItems !== void 0) {
|
|
15595
15543
|
newItems = newItems.slice(0, maxVisibleItems);
|
|
15596
15544
|
}
|
|
15597
|
-
if (newItems.length === 0)
|
|
15598
|
-
return [];
|
|
15545
|
+
if (newItems.length === 0) return [];
|
|
15599
15546
|
return [...headers, ...newItems];
|
|
15600
15547
|
});
|
|
15601
15548
|
}
|
|
@@ -15708,8 +15655,7 @@ var InputFieldWithCompletions = (0, import_react51.memo)(
|
|
|
15708
15655
|
);
|
|
15709
15656
|
const initialValueRef = (0, import_react51.useRef)(initialValue);
|
|
15710
15657
|
(0, import_react51.useLayoutEffect)(() => {
|
|
15711
|
-
if (initialValueRef.current === initialValue)
|
|
15712
|
-
return;
|
|
15658
|
+
if (initialValueRef.current === initialValue) return;
|
|
15713
15659
|
initialValueRef.current = initialValue;
|
|
15714
15660
|
updateState({ filter: initialValue });
|
|
15715
15661
|
}, [initialValue, updateState]);
|
|
@@ -15739,8 +15685,7 @@ var InputFieldWithCompletions = (0, import_react51.memo)(
|
|
|
15739
15685
|
const lastSubmittedValueRef = (0, import_react51.useRef)(void 0);
|
|
15740
15686
|
const selectItem = (0, import_react51.useCallback)(
|
|
15741
15687
|
(item) => {
|
|
15742
|
-
if (item.type === "sectionHeader")
|
|
15743
|
-
return;
|
|
15688
|
+
if (item.type === "sectionHeader") return;
|
|
15744
15689
|
lastSubmittedValueRef.current = {
|
|
15745
15690
|
filter,
|
|
15746
15691
|
itemName: item.name
|
|
@@ -15910,8 +15855,7 @@ var InputFieldWithCompletions = (0, import_react51.memo)(
|
|
|
15910
15855
|
);
|
|
15911
15856
|
function getNextIndex(items, currentIndex, direction, isDisabled) {
|
|
15912
15857
|
currentIndex = currentIndex < 0 ? 0 : currentIndex >= items.length ? items.length - 1 : currentIndex;
|
|
15913
|
-
if (items.every(isDisabled))
|
|
15914
|
-
return -1;
|
|
15858
|
+
if (items.every(isDisabled)) return -1;
|
|
15915
15859
|
let nextIndex = currentIndex;
|
|
15916
15860
|
do {
|
|
15917
15861
|
if (direction === "next") {
|
|
@@ -15919,8 +15863,7 @@ function getNextIndex(items, currentIndex, direction, isDisabled) {
|
|
|
15919
15863
|
} else {
|
|
15920
15864
|
nextIndex = (nextIndex - 1 + items.length) % items.length;
|
|
15921
15865
|
}
|
|
15922
|
-
if (nextIndex === currentIndex)
|
|
15923
|
-
return currentIndex;
|
|
15866
|
+
if (nextIndex === currentIndex) return currentIndex;
|
|
15924
15867
|
} while (isDisabled(items[nextIndex]));
|
|
15925
15868
|
return nextIndex;
|
|
15926
15869
|
}
|
|
@@ -16001,15 +15944,13 @@ var LabeledElementView = (0, import_react54.memo)(function LabeledElementView2({
|
|
|
16001
15944
|
));
|
|
16002
15945
|
}, [refs, serializedIds, renderLabel]);
|
|
16003
15946
|
(0, import_react54.useLayoutEffect)(() => {
|
|
16004
|
-
if (!containerRef.current)
|
|
16005
|
-
return;
|
|
15947
|
+
if (!containerRef.current) return;
|
|
16006
15948
|
const containerRect = containerRef.current.getBoundingClientRect();
|
|
16007
15949
|
const solver = new kiwi.Solver();
|
|
16008
15950
|
const variables = [];
|
|
16009
15951
|
const heights = [];
|
|
16010
15952
|
Object.entries(refs).forEach(([id, ref], index, list) => {
|
|
16011
|
-
if (!ref.current)
|
|
16012
|
-
return;
|
|
15953
|
+
if (!ref.current) return;
|
|
16013
15954
|
const targetElement = document.getElementById(id);
|
|
16014
15955
|
const targetRect = targetElement.getBoundingClientRect();
|
|
16015
15956
|
targetRect.x = targetElement.offsetLeft;
|
|
@@ -16052,8 +15993,7 @@ var LabeledElementView = (0, import_react54.memo)(function LabeledElementView2({
|
|
|
16052
15993
|
});
|
|
16053
15994
|
solver.updateVariables();
|
|
16054
15995
|
Object.entries(refs).forEach(([id, ref], index) => {
|
|
16055
|
-
if (!ref.current)
|
|
16056
|
-
return;
|
|
15996
|
+
if (!ref.current) return;
|
|
16057
15997
|
const labelRect = ref.current.getBoundingClientRect();
|
|
16058
15998
|
ref.current.style.setProperty(
|
|
16059
15999
|
"--x-offset",
|
|
@@ -16129,8 +16069,7 @@ function ToggleGroupRoot({
|
|
|
16129
16069
|
const contextValue = (0, import_react56.useMemo)(() => ({ colorScheme }), [colorScheme]);
|
|
16130
16070
|
const handleValueChange = (0, import_react56.useCallback)(
|
|
16131
16071
|
(value2) => {
|
|
16132
|
-
if (!allowEmpty && !value2)
|
|
16133
|
-
return;
|
|
16072
|
+
if (!allowEmpty && !value2) return;
|
|
16134
16073
|
onValueChange?.(value2);
|
|
16135
16074
|
},
|
|
16136
16075
|
[allowEmpty, onValueChange]
|
|
@@ -16305,8 +16244,7 @@ var import_react60 = __toESM(require("react"));
|
|
|
16305
16244
|
var useAutoResize = (value) => {
|
|
16306
16245
|
const textareaRef = (0, import_react60.useRef)(null);
|
|
16307
16246
|
(0, import_react60.useEffect)(() => {
|
|
16308
|
-
if (!textareaRef.current)
|
|
16309
|
-
return;
|
|
16247
|
+
if (!textareaRef.current) return;
|
|
16310
16248
|
textareaRef.current.style.height = "auto";
|
|
16311
16249
|
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
|
|
16312
16250
|
}, [value]);
|
|
@@ -16458,8 +16396,7 @@ function usePreservePanelSize(panelGroupRef, setPanelLayoutState) {
|
|
|
16458
16396
|
};
|
|
16459
16397
|
}, [panelGroupRef, setPanelLayoutState]);
|
|
16460
16398
|
(0, import_react63.useLayoutEffect)(() => {
|
|
16461
|
-
if (!layoutRef.current)
|
|
16462
|
-
return;
|
|
16399
|
+
if (!layoutRef.current) return;
|
|
16463
16400
|
const {
|
|
16464
16401
|
windowWidth: oldWindowWidth,
|
|
16465
16402
|
panelPercentages: oldPanelPercentages
|
|
@@ -16755,8 +16692,7 @@ var import_react65 = require("react");
|
|
|
16755
16692
|
function useDarkMode(elementRef) {
|
|
16756
16693
|
const [isDark, setIsDark] = (0, import_react65.useState)(false);
|
|
16757
16694
|
(0, import_react65.useEffect)(() => {
|
|
16758
|
-
if (!elementRef.current)
|
|
16759
|
-
return;
|
|
16695
|
+
if (!elementRef.current) return;
|
|
16760
16696
|
const hasDarkTheme = elementRef.current.closest('[data-theme="dark"]') !== null;
|
|
16761
16697
|
setIsDark(hasDarkTheme);
|
|
16762
16698
|
}, [elementRef]);
|