@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.mjs
CHANGED
|
@@ -31,6 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
// ../../node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
32
32
|
var require_classCallCheck = __commonJS({
|
|
33
33
|
"../../node_modules/@babel/runtime/helpers/classCallCheck.js"(exports, module) {
|
|
34
|
+
"use strict";
|
|
34
35
|
function _classCallCheck23(instance, Constructor) {
|
|
35
36
|
if (!(instance instanceof Constructor)) {
|
|
36
37
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -43,6 +44,7 @@ var require_classCallCheck = __commonJS({
|
|
|
43
44
|
// ../../node_modules/@babel/runtime/helpers/typeof.js
|
|
44
45
|
var require_typeof = __commonJS({
|
|
45
46
|
"../../node_modules/@babel/runtime/helpers/typeof.js"(exports, module) {
|
|
47
|
+
"use strict";
|
|
46
48
|
function _typeof(o) {
|
|
47
49
|
"@babel/helpers - typeof";
|
|
48
50
|
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -58,15 +60,14 @@ var require_typeof = __commonJS({
|
|
|
58
60
|
// ../../node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
59
61
|
var require_toPrimitive = __commonJS({
|
|
60
62
|
"../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module) {
|
|
63
|
+
"use strict";
|
|
61
64
|
var _typeof = require_typeof()["default"];
|
|
62
65
|
function toPrimitive(t, r2) {
|
|
63
|
-
if ("object" != _typeof(t) || !t)
|
|
64
|
-
return t;
|
|
66
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
65
67
|
var e = t[Symbol.toPrimitive];
|
|
66
68
|
if (void 0 !== e) {
|
|
67
69
|
var i = e.call(t, r2 || "default");
|
|
68
|
-
if ("object" != _typeof(i))
|
|
69
|
-
return i;
|
|
70
|
+
if ("object" != _typeof(i)) return i;
|
|
70
71
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
71
72
|
}
|
|
72
73
|
return ("string" === r2 ? String : Number)(t);
|
|
@@ -78,6 +79,7 @@ var require_toPrimitive = __commonJS({
|
|
|
78
79
|
// ../../node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
79
80
|
var require_toPropertyKey = __commonJS({
|
|
80
81
|
"../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module) {
|
|
82
|
+
"use strict";
|
|
81
83
|
var _typeof = require_typeof()["default"];
|
|
82
84
|
var toPrimitive = require_toPrimitive();
|
|
83
85
|
function toPropertyKey(t) {
|
|
@@ -91,22 +93,20 @@ var require_toPropertyKey = __commonJS({
|
|
|
91
93
|
// ../../node_modules/@babel/runtime/helpers/createClass.js
|
|
92
94
|
var require_createClass = __commonJS({
|
|
93
95
|
"../../node_modules/@babel/runtime/helpers/createClass.js"(exports, module) {
|
|
96
|
+
"use strict";
|
|
94
97
|
var toPropertyKey = require_toPropertyKey();
|
|
95
98
|
function _defineProperties(target, props) {
|
|
96
99
|
for (var i = 0; i < props.length; i++) {
|
|
97
100
|
var descriptor = props[i];
|
|
98
101
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
99
102
|
descriptor.configurable = true;
|
|
100
|
-
if ("value" in descriptor)
|
|
101
|
-
descriptor.writable = true;
|
|
103
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
102
104
|
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
function _createClass22(Constructor, protoProps, staticProps) {
|
|
106
|
-
if (protoProps)
|
|
107
|
-
|
|
108
|
-
if (staticProps)
|
|
109
|
-
_defineProperties(Constructor, staticProps);
|
|
108
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
109
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
110
110
|
Object.defineProperty(Constructor, "prototype", {
|
|
111
111
|
writable: false
|
|
112
112
|
});
|
|
@@ -119,6 +119,7 @@ var require_createClass = __commonJS({
|
|
|
119
119
|
// ../../node_modules/@babel/runtime/helpers/assertThisInitialized.js
|
|
120
120
|
var require_assertThisInitialized = __commonJS({
|
|
121
121
|
"../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports, module) {
|
|
122
|
+
"use strict";
|
|
122
123
|
function _assertThisInitialized15(self2) {
|
|
123
124
|
if (self2 === void 0) {
|
|
124
125
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -132,6 +133,7 @@ var require_assertThisInitialized = __commonJS({
|
|
|
132
133
|
// ../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
133
134
|
var require_possibleConstructorReturn = __commonJS({
|
|
134
135
|
"../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports, module) {
|
|
136
|
+
"use strict";
|
|
135
137
|
var _typeof = require_typeof()["default"];
|
|
136
138
|
var assertThisInitialized = require_assertThisInitialized();
|
|
137
139
|
function _possibleConstructorReturn16(self2, call) {
|
|
@@ -149,6 +151,7 @@ var require_possibleConstructorReturn = __commonJS({
|
|
|
149
151
|
// ../../node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
150
152
|
var require_getPrototypeOf = __commonJS({
|
|
151
153
|
"../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports, module) {
|
|
154
|
+
"use strict";
|
|
152
155
|
function _getPrototypeOf16(o) {
|
|
153
156
|
module.exports = _getPrototypeOf16 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf17(o2) {
|
|
154
157
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
@@ -162,6 +165,7 @@ var require_getPrototypeOf = __commonJS({
|
|
|
162
165
|
// ../../node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
163
166
|
var require_setPrototypeOf = __commonJS({
|
|
164
167
|
"../../node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports, module) {
|
|
168
|
+
"use strict";
|
|
165
169
|
function _setPrototypeOf(o, p) {
|
|
166
170
|
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
167
171
|
o2.__proto__ = p2;
|
|
@@ -176,6 +180,7 @@ var require_setPrototypeOf = __commonJS({
|
|
|
176
180
|
// ../../node_modules/@babel/runtime/helpers/inherits.js
|
|
177
181
|
var require_inherits = __commonJS({
|
|
178
182
|
"../../node_modules/@babel/runtime/helpers/inherits.js"(exports, module) {
|
|
183
|
+
"use strict";
|
|
179
184
|
var setPrototypeOf = require_setPrototypeOf();
|
|
180
185
|
function _inherits16(subClass, superClass) {
|
|
181
186
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -191,8 +196,7 @@ var require_inherits = __commonJS({
|
|
|
191
196
|
Object.defineProperty(subClass, "prototype", {
|
|
192
197
|
writable: false
|
|
193
198
|
});
|
|
194
|
-
if (superClass)
|
|
195
|
-
setPrototypeOf(subClass, superClass);
|
|
199
|
+
if (superClass) setPrototypeOf(subClass, superClass);
|
|
196
200
|
}
|
|
197
201
|
module.exports = _inherits16, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
198
202
|
}
|
|
@@ -201,6 +205,7 @@ var require_inherits = __commonJS({
|
|
|
201
205
|
// ../../node_modules/@babel/runtime/helpers/defineProperty.js
|
|
202
206
|
var require_defineProperty = __commonJS({
|
|
203
207
|
"../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
208
|
+
"use strict";
|
|
204
209
|
var toPropertyKey = require_toPropertyKey();
|
|
205
210
|
function _defineProperty19(obj, key, value) {
|
|
206
211
|
key = toPropertyKey(key);
|
|
@@ -223,6 +228,7 @@ var require_defineProperty = __commonJS({
|
|
|
223
228
|
// ../../node_modules/@babel/runtime/helpers/extends.js
|
|
224
229
|
var require_extends = __commonJS({
|
|
225
230
|
"../../node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
231
|
+
"use strict";
|
|
226
232
|
function _extends7() {
|
|
227
233
|
module.exports = _extends7 = Object.assign ? Object.assign.bind() : function(target) {
|
|
228
234
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -244,16 +250,15 @@ var require_extends = __commonJS({
|
|
|
244
250
|
// ../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
245
251
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
246
252
|
"../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
253
|
+
"use strict";
|
|
247
254
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
248
|
-
if (source == null)
|
|
249
|
-
return {};
|
|
255
|
+
if (source == null) return {};
|
|
250
256
|
var target = {};
|
|
251
257
|
var sourceKeys = Object.keys(source);
|
|
252
258
|
var key, i;
|
|
253
259
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
254
260
|
key = sourceKeys[i];
|
|
255
|
-
if (excluded.indexOf(key) >= 0)
|
|
256
|
-
continue;
|
|
261
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
257
262
|
target[key] = source[key];
|
|
258
263
|
}
|
|
259
264
|
return target;
|
|
@@ -265,20 +270,18 @@ var require_objectWithoutPropertiesLoose = __commonJS({
|
|
|
265
270
|
// ../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
266
271
|
var require_objectWithoutProperties = __commonJS({
|
|
267
272
|
"../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
273
|
+
"use strict";
|
|
268
274
|
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
269
275
|
function _objectWithoutProperties3(source, excluded) {
|
|
270
|
-
if (source == null)
|
|
271
|
-
return {};
|
|
276
|
+
if (source == null) return {};
|
|
272
277
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
273
278
|
var key, i;
|
|
274
279
|
if (Object.getOwnPropertySymbols) {
|
|
275
280
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
276
281
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
277
282
|
key = sourceSymbolKeys[i];
|
|
278
|
-
if (excluded.indexOf(key) >= 0)
|
|
279
|
-
|
|
280
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
281
|
-
continue;
|
|
283
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
284
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
282
285
|
target[key] = source[key];
|
|
283
286
|
}
|
|
284
287
|
}
|
|
@@ -650,6 +653,7 @@ var require_ReactPropTypesSecret = __commonJS({
|
|
|
650
653
|
// ../../node_modules/prop-types/lib/has.js
|
|
651
654
|
var require_has = __commonJS({
|
|
652
655
|
"../../node_modules/prop-types/lib/has.js"(exports, module) {
|
|
656
|
+
"use strict";
|
|
653
657
|
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
654
658
|
}
|
|
655
659
|
});
|
|
@@ -1222,6 +1226,7 @@ var require_factoryWithThrowingShims = __commonJS({
|
|
|
1222
1226
|
// ../../node_modules/prop-types/index.js
|
|
1223
1227
|
var require_prop_types = __commonJS({
|
|
1224
1228
|
"../../node_modules/prop-types/index.js"(exports, module) {
|
|
1229
|
+
"use strict";
|
|
1225
1230
|
if (process.env.NODE_ENV !== "production") {
|
|
1226
1231
|
ReactIs = require_react_is();
|
|
1227
1232
|
throwOnDirectAccess = true;
|
|
@@ -1237,11 +1242,10 @@ var require_prop_types = __commonJS({
|
|
|
1237
1242
|
// ../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
1238
1243
|
var require_arrayLikeToArray = __commonJS({
|
|
1239
1244
|
"../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports, module) {
|
|
1245
|
+
"use strict";
|
|
1240
1246
|
function _arrayLikeToArray(arr, len) {
|
|
1241
|
-
if (len == null || len > arr.length)
|
|
1242
|
-
|
|
1243
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1244
|
-
arr2[i] = arr[i];
|
|
1247
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1248
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1245
1249
|
return arr2;
|
|
1246
1250
|
}
|
|
1247
1251
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
@@ -1251,10 +1255,10 @@ var require_arrayLikeToArray = __commonJS({
|
|
|
1251
1255
|
// ../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
1252
1256
|
var require_arrayWithoutHoles = __commonJS({
|
|
1253
1257
|
"../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"(exports, module) {
|
|
1258
|
+
"use strict";
|
|
1254
1259
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
1255
1260
|
function _arrayWithoutHoles(arr) {
|
|
1256
|
-
if (Array.isArray(arr))
|
|
1257
|
-
return arrayLikeToArray(arr);
|
|
1261
|
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
1258
1262
|
}
|
|
1259
1263
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1260
1264
|
}
|
|
@@ -1263,9 +1267,9 @@ var require_arrayWithoutHoles = __commonJS({
|
|
|
1263
1267
|
// ../../node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
1264
1268
|
var require_iterableToArray = __commonJS({
|
|
1265
1269
|
"../../node_modules/@babel/runtime/helpers/iterableToArray.js"(exports, module) {
|
|
1270
|
+
"use strict";
|
|
1266
1271
|
function _iterableToArray(iter) {
|
|
1267
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1268
|
-
return Array.from(iter);
|
|
1272
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1269
1273
|
}
|
|
1270
1274
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1271
1275
|
}
|
|
@@ -1274,19 +1278,15 @@ var require_iterableToArray = __commonJS({
|
|
|
1274
1278
|
// ../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
1275
1279
|
var require_unsupportedIterableToArray = __commonJS({
|
|
1276
1280
|
"../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports, module) {
|
|
1281
|
+
"use strict";
|
|
1277
1282
|
var arrayLikeToArray = require_arrayLikeToArray();
|
|
1278
1283
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1279
|
-
if (!o)
|
|
1280
|
-
|
|
1281
|
-
if (typeof o === "string")
|
|
1282
|
-
return arrayLikeToArray(o, minLen);
|
|
1284
|
+
if (!o) return;
|
|
1285
|
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
1283
1286
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1284
|
-
if (n === "Object" && o.constructor)
|
|
1285
|
-
|
|
1286
|
-
if (n === "
|
|
1287
|
-
return Array.from(o);
|
|
1288
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1289
|
-
return arrayLikeToArray(o, minLen);
|
|
1287
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1288
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1289
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
1290
1290
|
}
|
|
1291
1291
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1292
1292
|
}
|
|
@@ -1295,6 +1295,7 @@ var require_unsupportedIterableToArray = __commonJS({
|
|
|
1295
1295
|
// ../../node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
1296
1296
|
var require_nonIterableSpread = __commonJS({
|
|
1297
1297
|
"../../node_modules/@babel/runtime/helpers/nonIterableSpread.js"(exports, module) {
|
|
1298
|
+
"use strict";
|
|
1298
1299
|
function _nonIterableSpread() {
|
|
1299
1300
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1300
1301
|
}
|
|
@@ -1305,6 +1306,7 @@ var require_nonIterableSpread = __commonJS({
|
|
|
1305
1306
|
// ../../node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
1306
1307
|
var require_toConsumableArray = __commonJS({
|
|
1307
1308
|
"../../node_modules/@babel/runtime/helpers/toConsumableArray.js"(exports, module) {
|
|
1309
|
+
"use strict";
|
|
1308
1310
|
var arrayWithoutHoles = require_arrayWithoutHoles();
|
|
1309
1311
|
var iterableToArray = require_iterableToArray();
|
|
1310
1312
|
var unsupportedIterableToArray = require_unsupportedIterableToArray();
|
|
@@ -1319,9 +1321,9 @@ var require_toConsumableArray = __commonJS({
|
|
|
1319
1321
|
// ../../node_modules/@babel/runtime/helpers/arrayWithHoles.js
|
|
1320
1322
|
var require_arrayWithHoles = __commonJS({
|
|
1321
1323
|
"../../node_modules/@babel/runtime/helpers/arrayWithHoles.js"(exports, module) {
|
|
1324
|
+
"use strict";
|
|
1322
1325
|
function _arrayWithHoles(arr) {
|
|
1323
|
-
if (Array.isArray(arr))
|
|
1324
|
-
return arr;
|
|
1326
|
+
if (Array.isArray(arr)) return arr;
|
|
1325
1327
|
}
|
|
1326
1328
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1327
1329
|
}
|
|
@@ -1330,27 +1332,23 @@ var require_arrayWithHoles = __commonJS({
|
|
|
1330
1332
|
// ../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
|
|
1331
1333
|
var require_iterableToArrayLimit = __commonJS({
|
|
1332
1334
|
"../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"(exports, module) {
|
|
1335
|
+
"use strict";
|
|
1333
1336
|
function _iterableToArrayLimit(r2, l) {
|
|
1334
1337
|
var t = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
1335
1338
|
if (null != t) {
|
|
1336
1339
|
var e, n, i, u, a = [], f = true, o = false;
|
|
1337
1340
|
try {
|
|
1338
1341
|
if (i = (t = t.call(r2)).next, 0 === l) {
|
|
1339
|
-
if (Object(t) !== t)
|
|
1340
|
-
return;
|
|
1342
|
+
if (Object(t) !== t) return;
|
|
1341
1343
|
f = false;
|
|
1342
|
-
} else
|
|
1343
|
-
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
1344
|
-
;
|
|
1344
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
1345
1345
|
} catch (r3) {
|
|
1346
1346
|
o = true, n = r3;
|
|
1347
1347
|
} finally {
|
|
1348
1348
|
try {
|
|
1349
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
1350
|
-
return;
|
|
1349
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
1351
1350
|
} finally {
|
|
1352
|
-
if (o)
|
|
1353
|
-
throw n;
|
|
1351
|
+
if (o) throw n;
|
|
1354
1352
|
}
|
|
1355
1353
|
}
|
|
1356
1354
|
return a;
|
|
@@ -1363,6 +1361,7 @@ var require_iterableToArrayLimit = __commonJS({
|
|
|
1363
1361
|
// ../../node_modules/@babel/runtime/helpers/nonIterableRest.js
|
|
1364
1362
|
var require_nonIterableRest = __commonJS({
|
|
1365
1363
|
"../../node_modules/@babel/runtime/helpers/nonIterableRest.js"(exports, module) {
|
|
1364
|
+
"use strict";
|
|
1366
1365
|
function _nonIterableRest() {
|
|
1367
1366
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1368
1367
|
}
|
|
@@ -1373,6 +1372,7 @@ var require_nonIterableRest = __commonJS({
|
|
|
1373
1372
|
// ../../node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
1374
1373
|
var require_slicedToArray = __commonJS({
|
|
1375
1374
|
"../../node_modules/@babel/runtime/helpers/slicedToArray.js"(exports, module) {
|
|
1375
|
+
"use strict";
|
|
1376
1376
|
var arrayWithHoles = require_arrayWithHoles();
|
|
1377
1377
|
var iterableToArrayLimit = require_iterableToArrayLimit();
|
|
1378
1378
|
var unsupportedIterableToArray = require_unsupportedIterableToArray();
|
|
@@ -3928,8 +3928,7 @@ function AvatarStack({
|
|
|
3928
3928
|
return React2.cloneElement(child, { size: size3 });
|
|
3929
3929
|
});
|
|
3930
3930
|
return /* @__PURE__ */ React2.createElement("div", { className: "flex" }, childrenArray.map((child, index) => {
|
|
3931
|
-
if (index === 0)
|
|
3932
|
-
return child;
|
|
3931
|
+
if (index === 0) return child;
|
|
3933
3932
|
return /* @__PURE__ */ React2.createElement(
|
|
3934
3933
|
"div",
|
|
3935
3934
|
{
|
|
@@ -4555,8 +4554,7 @@ var Dialog = forwardRef7(function Dialog2({
|
|
|
4555
4554
|
const contentRef = useRef2(null);
|
|
4556
4555
|
useImperativeHandle(forwardedRef, () => ({
|
|
4557
4556
|
containsElement(element) {
|
|
4558
|
-
if (!contentRef.current)
|
|
4559
|
-
return false;
|
|
4557
|
+
if (!contentRef.current) return false;
|
|
4560
4558
|
return contentRef.current.contains(element);
|
|
4561
4559
|
}
|
|
4562
4560
|
}));
|
|
@@ -4848,8 +4846,7 @@ var Emitter = class {
|
|
|
4848
4846
|
};
|
|
4849
4847
|
removeListener = (f) => {
|
|
4850
4848
|
const index = this.listeners.indexOf(f);
|
|
4851
|
-
if (index === -1)
|
|
4852
|
-
return;
|
|
4849
|
+
if (index === -1) return;
|
|
4853
4850
|
this.listeners.splice(index, 1);
|
|
4854
4851
|
};
|
|
4855
4852
|
emit = (...args) => {
|
|
@@ -4938,8 +4935,7 @@ function handleNudge(e) {
|
|
|
4938
4935
|
handled = true;
|
|
4939
4936
|
break;
|
|
4940
4937
|
}
|
|
4941
|
-
if (!handled)
|
|
4942
|
-
return;
|
|
4938
|
+
if (!handled) return;
|
|
4943
4939
|
if (e.shiftKey) {
|
|
4944
4940
|
amount *= 10;
|
|
4945
4941
|
} else if (e.altKey) {
|
|
@@ -4970,8 +4966,7 @@ var DropdownMenuItem = memo7(function ContextMenuItem({
|
|
|
4970
4966
|
shortcut
|
|
4971
4967
|
}) {
|
|
4972
4968
|
const handleSelectItem = useCallback9(() => {
|
|
4973
|
-
if (!value)
|
|
4974
|
-
return;
|
|
4969
|
+
if (!value) return;
|
|
4975
4970
|
onSelect(value);
|
|
4976
4971
|
}, [onSelect, value]);
|
|
4977
4972
|
if (checked) {
|
|
@@ -5097,7 +5092,7 @@ import React17, {
|
|
|
5097
5092
|
|
|
5098
5093
|
// src/contexts/GlobalInputBlurContext.tsx
|
|
5099
5094
|
import { createContext, useContext, useEffect as useEffect9 } from "react";
|
|
5100
|
-
var defaultValue = (() => {
|
|
5095
|
+
var defaultValue = /* @__PURE__ */ (() => {
|
|
5101
5096
|
const listeners = [];
|
|
5102
5097
|
const value = {
|
|
5103
5098
|
addListener(f) {
|
|
@@ -5105,8 +5100,7 @@ var defaultValue = (() => {
|
|
|
5105
5100
|
},
|
|
5106
5101
|
removeListener(f) {
|
|
5107
5102
|
const index = listeners.indexOf(f);
|
|
5108
|
-
if (index === -1)
|
|
5109
|
-
return;
|
|
5103
|
+
if (index === -1) return;
|
|
5110
5104
|
listeners.splice(index, 1);
|
|
5111
5105
|
},
|
|
5112
5106
|
trigger() {
|
|
@@ -5210,16 +5204,14 @@ var SubmittableTextInput = forwardRef9(function SubmittableTextInput2({
|
|
|
5210
5204
|
const handleSubmit = useCallback10(() => {
|
|
5211
5205
|
const submissionValue = isSubmitTriggeredByEscapeKey.current ? value : internalValue;
|
|
5212
5206
|
isSubmitTriggeredByEscapeKey.current = false;
|
|
5213
|
-
if (submissionValue === value && !allowSubmittingWithSameValue)
|
|
5214
|
-
return;
|
|
5207
|
+
if (submissionValue === value && !allowSubmittingWithSameValue) return;
|
|
5215
5208
|
onSubmit(submissionValue);
|
|
5216
5209
|
userDidEdit.current = false;
|
|
5217
5210
|
setInternalValue(latestValue.current);
|
|
5218
5211
|
}, [allowSubmittingWithSameValue, value, internalValue, onSubmit]);
|
|
5219
5212
|
useGlobalInputBlurListener(
|
|
5220
5213
|
useCallback10(() => {
|
|
5221
|
-
if (ref.current !== document.activeElement)
|
|
5222
|
-
return;
|
|
5214
|
+
if (ref.current !== document.activeElement) return;
|
|
5223
5215
|
handleSubmit();
|
|
5224
5216
|
}, [handleSubmit])
|
|
5225
5217
|
);
|
|
@@ -5271,8 +5263,7 @@ var SubmittableTextInput = forwardRef9(function SubmittableTextInput2({
|
|
|
5271
5263
|
clearTimeout(autoSubmitTimeoutRef.current);
|
|
5272
5264
|
}
|
|
5273
5265
|
autoSubmitTimeoutRef.current = setTimeout(() => {
|
|
5274
|
-
if (userDidEdit.current === false)
|
|
5275
|
-
return;
|
|
5266
|
+
if (userDidEdit.current === false) return;
|
|
5276
5267
|
latestHandleSubmit.current();
|
|
5277
5268
|
}, submitAutomaticallyAfterDelay);
|
|
5278
5269
|
}
|
|
@@ -5412,11 +5403,9 @@ var InputFieldLabel = memo8(
|
|
|
5412
5403
|
const { labelPosition, hasDropdown, setLabelWidth, size: size3 } = useContext2(InputFieldContext);
|
|
5413
5404
|
const ref = useRef12(null);
|
|
5414
5405
|
useLayoutEffect4(() => {
|
|
5415
|
-
if (!setLabelWidth)
|
|
5416
|
-
return;
|
|
5406
|
+
if (!setLabelWidth) return;
|
|
5417
5407
|
const width = ref.current?.getBoundingClientRect().width;
|
|
5418
|
-
if (!width)
|
|
5419
|
-
return;
|
|
5408
|
+
if (!width) return;
|
|
5420
5409
|
setLabelWidth(width);
|
|
5421
5410
|
}, [setLabelWidth]);
|
|
5422
5411
|
return /* @__PURE__ */ React19.createElement(
|
|
@@ -5479,11 +5468,9 @@ var InputFieldButton = memo8(
|
|
|
5479
5468
|
const { size: size3, inputRef, setButtonWidth } = useContext2(InputFieldContext);
|
|
5480
5469
|
const ref = useRef12(null);
|
|
5481
5470
|
useLayoutEffect4(() => {
|
|
5482
|
-
if (!setButtonWidth)
|
|
5483
|
-
return;
|
|
5471
|
+
if (!setButtonWidth) return;
|
|
5484
5472
|
const width = ref.current?.getBoundingClientRect().width;
|
|
5485
|
-
if (!width)
|
|
5486
|
-
return;
|
|
5473
|
+
if (!width) return;
|
|
5487
5474
|
setButtonWidth(width);
|
|
5488
5475
|
}, [setButtonWidth]);
|
|
5489
5476
|
const defaultHandleClick = useCallback11(
|
|
@@ -5635,8 +5622,7 @@ function InputFieldNumberInput(props) {
|
|
|
5635
5622
|
const handleKeyDown = useCallback11(
|
|
5636
5623
|
(event) => {
|
|
5637
5624
|
const amount = handleNudge(event);
|
|
5638
|
-
if (!amount)
|
|
5639
|
-
return;
|
|
5625
|
+
if (!amount) return;
|
|
5640
5626
|
onNudge?.(amount);
|
|
5641
5627
|
setInternalValue(void 0);
|
|
5642
5628
|
event.preventDefault();
|
|
@@ -5824,13 +5810,11 @@ var DialogProvider = function DialogProvider2({
|
|
|
5824
5810
|
const [contents, setContents] = useState13();
|
|
5825
5811
|
const isOpen = !!contents;
|
|
5826
5812
|
const close = useCallback12(() => {
|
|
5827
|
-
if (!contents)
|
|
5828
|
-
return;
|
|
5813
|
+
if (!contents) return;
|
|
5829
5814
|
contents.resolve(void 0);
|
|
5830
5815
|
}, [contents]);
|
|
5831
5816
|
const submit = useCallback12(() => {
|
|
5832
|
-
if (!contents || !contents.inputValue)
|
|
5833
|
-
return;
|
|
5817
|
+
if (!contents || !contents.inputValue) return;
|
|
5834
5818
|
contents.resolve(contents.inputValue);
|
|
5835
5819
|
setContents(void 0);
|
|
5836
5820
|
}, [contents]);
|
|
@@ -5851,8 +5835,7 @@ var DialogProvider = function DialogProvider2({
|
|
|
5851
5835
|
);
|
|
5852
5836
|
const handleKeyDown = useCallback12(
|
|
5853
5837
|
(event) => {
|
|
5854
|
-
if (event.key !== "Enter")
|
|
5855
|
-
return;
|
|
5838
|
+
if (event.key !== "Enter") return;
|
|
5856
5839
|
event.stopPropagation();
|
|
5857
5840
|
event.preventDefault();
|
|
5858
5841
|
submit();
|
|
@@ -5862,8 +5845,7 @@ var DialogProvider = function DialogProvider2({
|
|
|
5862
5845
|
const inputRef = useRef13(null);
|
|
5863
5846
|
const dialogRef = useRef13(null);
|
|
5864
5847
|
const containsElement = useCallback12((element) => {
|
|
5865
|
-
if (!dialogRef.current)
|
|
5866
|
-
return false;
|
|
5848
|
+
if (!dialogRef.current) return false;
|
|
5867
5849
|
return dialogRef.current.containsElement(element);
|
|
5868
5850
|
}, []);
|
|
5869
5851
|
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|
|
@@ -5991,8 +5973,7 @@ var DesignSystemConfigurationProvider = memo9(
|
|
|
5991
5973
|
platform ?? "key"
|
|
5992
5974
|
);
|
|
5993
5975
|
useEffect12(() => {
|
|
5994
|
-
if (platform !== void 0)
|
|
5995
|
-
return;
|
|
5976
|
+
if (platform !== void 0) return;
|
|
5996
5977
|
if (typeof navigator !== "undefined") {
|
|
5997
5978
|
setInternalPlatform(getCurrentPlatform(navigator));
|
|
5998
5979
|
}
|
|
@@ -6020,8 +6001,7 @@ function withSeparatorElements(elements2, separator) {
|
|
|
6020
6001
|
if (isValidElement2(sep) && sep.key == null) {
|
|
6021
6002
|
sep = cloneElement(sep, { key: createKey(i) });
|
|
6022
6003
|
}
|
|
6023
|
-
if (!sep || typeof sep === "boolean")
|
|
6024
|
-
continue;
|
|
6004
|
+
if (!sep || typeof sep === "boolean") continue;
|
|
6025
6005
|
childrenArray.splice(i, 0, sep);
|
|
6026
6006
|
}
|
|
6027
6007
|
return childrenArray;
|
|
@@ -6060,12 +6040,9 @@ var styles = {
|
|
|
6060
6040
|
`
|
|
6061
6041
|
};
|
|
6062
6042
|
function getKeyboardShortcuts(item) {
|
|
6063
|
-
if (item === SEPARATOR_ITEM)
|
|
6064
|
-
|
|
6065
|
-
if (item.
|
|
6066
|
-
return item.items.flatMap(getKeyboardShortcuts);
|
|
6067
|
-
if (item.disabled || !item.value || !item.shortcut)
|
|
6068
|
-
return [];
|
|
6043
|
+
if (item === SEPARATOR_ITEM) return [];
|
|
6044
|
+
if (item.items) return item.items.flatMap(getKeyboardShortcuts);
|
|
6045
|
+
if (item.disabled || !item.value || !item.shortcut) return [];
|
|
6069
6046
|
return [[item.shortcut, item.value]];
|
|
6070
6047
|
}
|
|
6071
6048
|
function getKeyboardShortcutsForMenuItems(menuItems, onSelect) {
|
|
@@ -6110,8 +6087,7 @@ var ContextMenuItem2 = memo11(function ContextMenuItem3({
|
|
|
6110
6087
|
[]
|
|
6111
6088
|
);
|
|
6112
6089
|
const handleSelectItem = useCallback13(() => {
|
|
6113
|
-
if (!value)
|
|
6114
|
-
return;
|
|
6090
|
+
if (!value) return;
|
|
6115
6091
|
onSelect(value);
|
|
6116
6092
|
}, [onSelect, value]);
|
|
6117
6093
|
if (checked) {
|
|
@@ -6294,8 +6270,7 @@ var DraggableMenuButton = memo13(function DraggableMenuButton2({
|
|
|
6294
6270
|
);
|
|
6295
6271
|
const handleOpenChange = useCallback14(
|
|
6296
6272
|
(isOpen) => {
|
|
6297
|
-
if (!isOpen)
|
|
6298
|
-
setOpen(false);
|
|
6273
|
+
if (!isOpen) setOpen(false);
|
|
6299
6274
|
},
|
|
6300
6275
|
[setOpen]
|
|
6301
6276
|
);
|
|
@@ -6693,8 +6668,7 @@ function useImageData(ref) {
|
|
|
6693
6668
|
import { useLayoutEffect as useLayoutEffect5, useMemo as useMemo13 } from "react";
|
|
6694
6669
|
function useObjectURL(object) {
|
|
6695
6670
|
const objectURL = useMemo13(() => {
|
|
6696
|
-
if (object instanceof Blob)
|
|
6697
|
-
return URL.createObjectURL(object);
|
|
6671
|
+
if (object instanceof Blob) return URL.createObjectURL(object);
|
|
6698
6672
|
const bytes = object instanceof Uint8Array ? object : object !== void 0 ? new Uint8Array(object) : new Uint8Array();
|
|
6699
6673
|
return URL.createObjectURL(new Blob([bytes]));
|
|
6700
6674
|
}, [object]);
|
|
@@ -6815,21 +6789,19 @@ var background = `center url("data:image/svg+xml;utf8,${dotsHorizontalSvg(
|
|
|
6815
6789
|
var FillPreviewBackground = memo15(function FillPreviewBackground2({
|
|
6816
6790
|
value
|
|
6817
6791
|
}) {
|
|
6818
|
-
if (!value)
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
);
|
|
6792
|
+
if (!value) return /* @__PURE__ */ React28.createElement(
|
|
6793
|
+
Background,
|
|
6794
|
+
{
|
|
6795
|
+
background
|
|
6796
|
+
}
|
|
6797
|
+
);
|
|
6825
6798
|
switch (value._class) {
|
|
6826
6799
|
case "color":
|
|
6827
6800
|
return /* @__PURE__ */ React28.createElement(ColorPreviewBackground, { color: value });
|
|
6828
6801
|
case "gradient":
|
|
6829
6802
|
return /* @__PURE__ */ React28.createElement(GradientPreviewBackground, { gradient: value });
|
|
6830
6803
|
case "pattern":
|
|
6831
|
-
if (!value.image)
|
|
6832
|
-
return null;
|
|
6804
|
+
if (!value.image) return null;
|
|
6833
6805
|
return /* @__PURE__ */ React28.createElement(
|
|
6834
6806
|
PatternPreviewBackground,
|
|
6835
6807
|
{
|
|
@@ -6993,8 +6965,7 @@ var FloatingWindow = ({
|
|
|
6993
6965
|
}
|
|
6994
6966
|
};
|
|
6995
6967
|
const handleMouseDown = useCallback15((e) => {
|
|
6996
|
-
if (!wrapperRef.current)
|
|
6997
|
-
return;
|
|
6968
|
+
if (!wrapperRef.current) return;
|
|
6998
6969
|
const rect = wrapperRef.current.getBoundingClientRect();
|
|
6999
6970
|
setDragOffset({
|
|
7000
6971
|
x: e.clientX - rect.left,
|
|
@@ -7082,8 +7053,7 @@ var FloatingWindow = ({
|
|
|
7082
7053
|
const floatingWindowManager = useFloatingWindowManager();
|
|
7083
7054
|
const currentFloatingWindow = useCurrentFloatingWindowInternal();
|
|
7084
7055
|
const handleClose = useCallback15(() => {
|
|
7085
|
-
if (onClose)
|
|
7086
|
-
onClose();
|
|
7056
|
+
if (onClose) onClose();
|
|
7087
7057
|
floatingWindowManager.closeWindow(currentFloatingWindow.id);
|
|
7088
7058
|
}, [currentFloatingWindow.id, floatingWindowManager, onClose]);
|
|
7089
7059
|
return /* @__PURE__ */ React30.createElement(
|
|
@@ -7469,8 +7439,7 @@ function fuzzyFilter({
|
|
|
7469
7439
|
...fuzzyScore({ item: text, query })
|
|
7470
7440
|
})
|
|
7471
7441
|
);
|
|
7472
|
-
if (!query)
|
|
7473
|
-
return scoredItems;
|
|
7442
|
+
if (!query) return scoredItems;
|
|
7474
7443
|
return scoredItems.filter(({ score }) => score > scoreThreshold).sort((a, b) => b.score - a.score);
|
|
7475
7444
|
}
|
|
7476
7445
|
function fuzzyTokenize({
|
|
@@ -7651,20 +7620,13 @@ import * as React35 from "react";
|
|
|
7651
7620
|
// ../../node_modules/clsx/dist/clsx.m.js
|
|
7652
7621
|
function r(e) {
|
|
7653
7622
|
var t, f, n = "";
|
|
7654
|
-
if ("string" == typeof e || "number" == typeof e)
|
|
7655
|
-
|
|
7656
|
-
else
|
|
7657
|
-
if (Array.isArray(e))
|
|
7658
|
-
for (t = 0; t < e.length; t++)
|
|
7659
|
-
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7660
|
-
else
|
|
7661
|
-
for (t in e)
|
|
7662
|
-
e[t] && (n && (n += " "), n += t);
|
|
7623
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
7624
|
+
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);
|
|
7625
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
7663
7626
|
return n;
|
|
7664
7627
|
}
|
|
7665
7628
|
function clsx() {
|
|
7666
|
-
for (var e, t, f = 0, n = ""; f < arguments.length; )
|
|
7667
|
-
(e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7629
|
+
for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7668
7630
|
return n;
|
|
7669
7631
|
}
|
|
7670
7632
|
var clsx_m_default = clsx;
|
|
@@ -8397,10 +8359,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
8397
8359
|
var keys = Object.keys(object);
|
|
8398
8360
|
if (Object.getOwnPropertySymbols) {
|
|
8399
8361
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
8400
|
-
if (enumerableOnly)
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
});
|
|
8362
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
8363
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8364
|
+
});
|
|
8404
8365
|
keys.push.apply(keys, symbols);
|
|
8405
8366
|
}
|
|
8406
8367
|
return keys;
|
|
@@ -9530,10 +9491,9 @@ function ownKeys2(object, enumerableOnly) {
|
|
|
9530
9491
|
var keys = Object.keys(object);
|
|
9531
9492
|
if (Object.getOwnPropertySymbols) {
|
|
9532
9493
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
9533
|
-
if (enumerableOnly)
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
});
|
|
9494
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
9495
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9496
|
+
});
|
|
9537
9497
|
keys.push.apply(keys, symbols);
|
|
9538
9498
|
}
|
|
9539
9499
|
return keys;
|
|
@@ -9881,10 +9841,9 @@ function ownKeys3(object, enumerableOnly) {
|
|
|
9881
9841
|
var keys = Object.keys(object);
|
|
9882
9842
|
if (Object.getOwnPropertySymbols) {
|
|
9883
9843
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
9884
|
-
if (enumerableOnly)
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
});
|
|
9844
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
9845
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9846
|
+
});
|
|
9888
9847
|
keys.push.apply(keys, symbols);
|
|
9889
9848
|
}
|
|
9890
9849
|
return keys;
|
|
@@ -10205,10 +10164,9 @@ function ownKeys4(object, enumerableOnly) {
|
|
|
10205
10164
|
var keys = Object.keys(object);
|
|
10206
10165
|
if (Object.getOwnPropertySymbols) {
|
|
10207
10166
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
10208
|
-
if (enumerableOnly)
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
});
|
|
10167
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
10168
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10169
|
+
});
|
|
10212
10170
|
keys.push.apply(keys, symbols);
|
|
10213
10171
|
}
|
|
10214
10172
|
return keys;
|
|
@@ -12227,10 +12185,9 @@ function ownKeys5(object, enumerableOnly) {
|
|
|
12227
12185
|
var keys = Object.keys(object);
|
|
12228
12186
|
if (Object.getOwnPropertySymbols) {
|
|
12229
12187
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
12230
|
-
if (enumerableOnly)
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
});
|
|
12188
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
12189
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
12190
|
+
});
|
|
12234
12191
|
keys.push.apply(keys, symbols);
|
|
12235
12192
|
}
|
|
12236
12193
|
return keys;
|
|
@@ -12676,10 +12633,9 @@ function ownKeys6(object, enumerableOnly) {
|
|
|
12676
12633
|
var keys = Object.keys(object);
|
|
12677
12634
|
if (Object.getOwnPropertySymbols) {
|
|
12678
12635
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
12679
|
-
if (enumerableOnly)
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
});
|
|
12636
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
12637
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
12638
|
+
});
|
|
12683
12639
|
keys.push.apply(keys, symbols);
|
|
12684
12640
|
}
|
|
12685
12641
|
return keys;
|
|
@@ -13686,10 +13642,9 @@ function ownKeys7(object, enumerableOnly) {
|
|
|
13686
13642
|
var keys = Object.keys(object);
|
|
13687
13643
|
if (Object.getOwnPropertySymbols) {
|
|
13688
13644
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
13689
|
-
if (enumerableOnly)
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
});
|
|
13645
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
13646
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
13647
|
+
});
|
|
13693
13648
|
keys.push.apply(keys, symbols);
|
|
13694
13649
|
}
|
|
13695
13650
|
return keys;
|
|
@@ -14458,10 +14413,9 @@ function ownKeys8(object, enumerableOnly) {
|
|
|
14458
14413
|
var keys = Object.keys(object);
|
|
14459
14414
|
if (Object.getOwnPropertySymbols) {
|
|
14460
14415
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
14461
|
-
if (enumerableOnly)
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
});
|
|
14416
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
14417
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14418
|
+
});
|
|
14465
14419
|
keys.push.apply(keys, symbols);
|
|
14466
14420
|
}
|
|
14467
14421
|
return keys;
|
|
@@ -14740,8 +14694,7 @@ var normalizeListDestinationIndex = (index, position) => {
|
|
|
14740
14694
|
return position === "above" ? index : index + 1;
|
|
14741
14695
|
};
|
|
14742
14696
|
var defaultAcceptsDrop = (sourceIndex, destinationIndex, position) => {
|
|
14743
|
-
if (position === "inside")
|
|
14744
|
-
return false;
|
|
14697
|
+
if (position === "inside") return false;
|
|
14745
14698
|
const normalized = normalizeListDestinationIndex(destinationIndex, position);
|
|
14746
14699
|
if (sourceIndex === normalized || sourceIndex + 1 === normalized) {
|
|
14747
14700
|
return false;
|
|
@@ -14856,8 +14809,7 @@ function SortableRoot({
|
|
|
14856
14809
|
axis === "x" ? over.rect.offsetLeft : over.rect.offsetTop,
|
|
14857
14810
|
axis === "x" ? over.rect.width : over.rect.height
|
|
14858
14811
|
);
|
|
14859
|
-
if (!indicator)
|
|
14860
|
-
return;
|
|
14812
|
+
if (!indicator) return;
|
|
14861
14813
|
onMoveItem?.(oldIndex, newIndex, indicator);
|
|
14862
14814
|
}
|
|
14863
14815
|
},
|
|
@@ -14956,8 +14908,7 @@ function ListViewEditableRowTitle({
|
|
|
14956
14908
|
const inputRef = useRef16(null);
|
|
14957
14909
|
useLayoutEffect6(() => {
|
|
14958
14910
|
const element = inputRef.current;
|
|
14959
|
-
if (!element || !autoFocus)
|
|
14960
|
-
return;
|
|
14911
|
+
if (!element || !autoFocus) return;
|
|
14961
14912
|
element.focus();
|
|
14962
14913
|
setTimeout(() => {
|
|
14963
14914
|
element.select();
|
|
@@ -15174,8 +15125,7 @@ var ListViewRow = forwardRef14(function ListViewRow2({
|
|
|
15174
15125
|
const handlePress = useCallback20(
|
|
15175
15126
|
(event) => {
|
|
15176
15127
|
event.preventDefault();
|
|
15177
|
-
if (event.button !== 0)
|
|
15178
|
-
return;
|
|
15128
|
+
if (event.button !== 0) return;
|
|
15179
15129
|
onPress?.(event);
|
|
15180
15130
|
},
|
|
15181
15131
|
[onPress]
|
|
@@ -15411,8 +15361,7 @@ var ListViewRootInner = forwardRef14(function ListViewRootInner2({
|
|
|
15411
15361
|
if (variant === "bare" || variant === "normal")
|
|
15412
15362
|
return defaultContextValue;
|
|
15413
15363
|
const current = renderChild(i);
|
|
15414
|
-
if (!isValidElement3(current))
|
|
15415
|
-
return;
|
|
15364
|
+
if (!isValidElement3(current)) return;
|
|
15416
15365
|
const prevChild = i - 1 >= 0 && renderChild(i - 1);
|
|
15417
15366
|
const nextChild = i + 1 < data.length && renderChild(i + 1);
|
|
15418
15367
|
const next = isValidElement3(nextChild) ? nextChild : void 0;
|
|
@@ -15481,8 +15430,7 @@ var ListViewRootInner = forwardRef14(function ListViewRootInner2({
|
|
|
15481
15430
|
(index) => {
|
|
15482
15431
|
const contextValue = getItemContextValue(index);
|
|
15483
15432
|
const current = renderChild(index);
|
|
15484
|
-
if (!contextValue || !isValidElement3(current))
|
|
15485
|
-
return null;
|
|
15433
|
+
if (!contextValue || !isValidElement3(current)) return null;
|
|
15486
15434
|
return /* @__PURE__ */ React56.createElement(ListRowContext.Provider, { key: current.key, value: contextValue }, current);
|
|
15487
15435
|
},
|
|
15488
15436
|
[getItemContextValue, renderChild]
|
|
@@ -15610,8 +15558,7 @@ function filterWithGroupedSections(items, query) {
|
|
|
15610
15558
|
if (maxVisibleItems !== void 0) {
|
|
15611
15559
|
newItems = newItems.slice(0, maxVisibleItems);
|
|
15612
15560
|
}
|
|
15613
|
-
if (newItems.length === 0)
|
|
15614
|
-
return [];
|
|
15561
|
+
if (newItems.length === 0) return [];
|
|
15615
15562
|
return [...headers, ...newItems];
|
|
15616
15563
|
});
|
|
15617
15564
|
}
|
|
@@ -15724,8 +15671,7 @@ var InputFieldWithCompletions = memo22(
|
|
|
15724
15671
|
);
|
|
15725
15672
|
const initialValueRef = useRef17(initialValue);
|
|
15726
15673
|
useLayoutEffect7(() => {
|
|
15727
|
-
if (initialValueRef.current === initialValue)
|
|
15728
|
-
return;
|
|
15674
|
+
if (initialValueRef.current === initialValue) return;
|
|
15729
15675
|
initialValueRef.current = initialValue;
|
|
15730
15676
|
updateState({ filter: initialValue });
|
|
15731
15677
|
}, [initialValue, updateState]);
|
|
@@ -15755,8 +15701,7 @@ var InputFieldWithCompletions = memo22(
|
|
|
15755
15701
|
const lastSubmittedValueRef = useRef17(void 0);
|
|
15756
15702
|
const selectItem = useCallback21(
|
|
15757
15703
|
(item) => {
|
|
15758
|
-
if (item.type === "sectionHeader")
|
|
15759
|
-
return;
|
|
15704
|
+
if (item.type === "sectionHeader") return;
|
|
15760
15705
|
lastSubmittedValueRef.current = {
|
|
15761
15706
|
filter,
|
|
15762
15707
|
itemName: item.name
|
|
@@ -15926,8 +15871,7 @@ var InputFieldWithCompletions = memo22(
|
|
|
15926
15871
|
);
|
|
15927
15872
|
function getNextIndex(items, currentIndex, direction, isDisabled) {
|
|
15928
15873
|
currentIndex = currentIndex < 0 ? 0 : currentIndex >= items.length ? items.length - 1 : currentIndex;
|
|
15929
|
-
if (items.every(isDisabled))
|
|
15930
|
-
return -1;
|
|
15874
|
+
if (items.every(isDisabled)) return -1;
|
|
15931
15875
|
let nextIndex = currentIndex;
|
|
15932
15876
|
do {
|
|
15933
15877
|
if (direction === "next") {
|
|
@@ -15935,8 +15879,7 @@ function getNextIndex(items, currentIndex, direction, isDisabled) {
|
|
|
15935
15879
|
} else {
|
|
15936
15880
|
nextIndex = (nextIndex - 1 + items.length) % items.length;
|
|
15937
15881
|
}
|
|
15938
|
-
if (nextIndex === currentIndex)
|
|
15939
|
-
return currentIndex;
|
|
15882
|
+
if (nextIndex === currentIndex) return currentIndex;
|
|
15940
15883
|
} while (isDisabled(items[nextIndex]));
|
|
15941
15884
|
return nextIndex;
|
|
15942
15885
|
}
|
|
@@ -16026,15 +15969,13 @@ var LabeledElementView = memo25(function LabeledElementView2({
|
|
|
16026
15969
|
));
|
|
16027
15970
|
}, [refs, serializedIds, renderLabel]);
|
|
16028
15971
|
useLayoutEffect8(() => {
|
|
16029
|
-
if (!containerRef.current)
|
|
16030
|
-
return;
|
|
15972
|
+
if (!containerRef.current) return;
|
|
16031
15973
|
const containerRect = containerRef.current.getBoundingClientRect();
|
|
16032
15974
|
const solver = new kiwi.Solver();
|
|
16033
15975
|
const variables = [];
|
|
16034
15976
|
const heights = [];
|
|
16035
15977
|
Object.entries(refs).forEach(([id, ref], index, list) => {
|
|
16036
|
-
if (!ref.current)
|
|
16037
|
-
return;
|
|
15978
|
+
if (!ref.current) return;
|
|
16038
15979
|
const targetElement = document.getElementById(id);
|
|
16039
15980
|
const targetRect = targetElement.getBoundingClientRect();
|
|
16040
15981
|
targetRect.x = targetElement.offsetLeft;
|
|
@@ -16077,8 +16018,7 @@ var LabeledElementView = memo25(function LabeledElementView2({
|
|
|
16077
16018
|
});
|
|
16078
16019
|
solver.updateVariables();
|
|
16079
16020
|
Object.entries(refs).forEach(([id, ref], index) => {
|
|
16080
|
-
if (!ref.current)
|
|
16081
|
-
return;
|
|
16021
|
+
if (!ref.current) return;
|
|
16082
16022
|
const labelRect = ref.current.getBoundingClientRect();
|
|
16083
16023
|
ref.current.style.setProperty(
|
|
16084
16024
|
"--x-offset",
|
|
@@ -16161,8 +16101,7 @@ function ToggleGroupRoot({
|
|
|
16161
16101
|
const contextValue = useMemo22(() => ({ colorScheme }), [colorScheme]);
|
|
16162
16102
|
const handleValueChange = useCallback22(
|
|
16163
16103
|
(value2) => {
|
|
16164
|
-
if (!allowEmpty && !value2)
|
|
16165
|
-
return;
|
|
16104
|
+
if (!allowEmpty && !value2) return;
|
|
16166
16105
|
onValueChange?.(value2);
|
|
16167
16106
|
},
|
|
16168
16107
|
[allowEmpty, onValueChange]
|
|
@@ -16337,8 +16276,7 @@ import React66, { forwardRef as forwardRef18, memo as memo28, useCallback as use
|
|
|
16337
16276
|
var useAutoResize = (value) => {
|
|
16338
16277
|
const textareaRef = useRef19(null);
|
|
16339
16278
|
useEffect15(() => {
|
|
16340
|
-
if (!textareaRef.current)
|
|
16341
|
-
return;
|
|
16279
|
+
if (!textareaRef.current) return;
|
|
16342
16280
|
textareaRef.current.style.height = "auto";
|
|
16343
16281
|
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
|
|
16344
16282
|
}, [value]);
|
|
@@ -16505,8 +16443,7 @@ function usePreservePanelSize(panelGroupRef, setPanelLayoutState) {
|
|
|
16505
16443
|
};
|
|
16506
16444
|
}, [panelGroupRef, setPanelLayoutState]);
|
|
16507
16445
|
useLayoutEffect9(() => {
|
|
16508
|
-
if (!layoutRef.current)
|
|
16509
|
-
return;
|
|
16446
|
+
if (!layoutRef.current) return;
|
|
16510
16447
|
const {
|
|
16511
16448
|
windowWidth: oldWindowWidth,
|
|
16512
16449
|
panelPercentages: oldPanelPercentages
|
|
@@ -16802,8 +16739,7 @@ import { useState as useState23, useEffect as useEffect17 } from "react";
|
|
|
16802
16739
|
function useDarkMode(elementRef) {
|
|
16803
16740
|
const [isDark, setIsDark] = useState23(false);
|
|
16804
16741
|
useEffect17(() => {
|
|
16805
|
-
if (!elementRef.current)
|
|
16806
|
-
return;
|
|
16742
|
+
if (!elementRef.current) return;
|
|
16807
16743
|
const hasDarkTheme = elementRef.current.closest('[data-theme="dark"]') !== null;
|
|
16808
16744
|
setIsDark(hasDarkTheme);
|
|
16809
16745
|
}, [elementRef]);
|