@symbo.ls/uikit 2.11.81 → 2.11.86
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/dist/index.cjs.js +78 -12
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -464,6 +464,9 @@ var require_cjs = __commonJS({
|
|
|
464
464
|
var array_exports = {};
|
|
465
465
|
__export22(array_exports, {
|
|
466
466
|
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
467
|
+
createNestedObject: () => createNestedObject,
|
|
468
|
+
cutArrayAfterValue: () => cutArrayAfterValue,
|
|
469
|
+
cutArrayBeforeValue: () => cutArrayBeforeValue,
|
|
467
470
|
joinArrays: () => joinArrays,
|
|
468
471
|
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
469
472
|
mergeArray: () => mergeArray,
|
|
@@ -503,6 +506,36 @@ var require_cjs = __commonJS({
|
|
|
503
506
|
var mergeAndCloneIfArray = (obj) => {
|
|
504
507
|
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
505
508
|
};
|
|
509
|
+
var cutArrayBeforeValue = (arr, value) => {
|
|
510
|
+
const index = arr.indexOf(value);
|
|
511
|
+
if (index !== -1) {
|
|
512
|
+
return arr.slice(0, index);
|
|
513
|
+
}
|
|
514
|
+
return arr;
|
|
515
|
+
};
|
|
516
|
+
var cutArrayAfterValue = (arr, value) => {
|
|
517
|
+
const index = arr.indexOf(value);
|
|
518
|
+
if (index !== -1) {
|
|
519
|
+
return arr.slice(index + 1);
|
|
520
|
+
}
|
|
521
|
+
return arr;
|
|
522
|
+
};
|
|
523
|
+
var createNestedObject = (arr, lastValue) => {
|
|
524
|
+
let nestedObject = {};
|
|
525
|
+
if (arr.length === 0) {
|
|
526
|
+
return lastValue;
|
|
527
|
+
}
|
|
528
|
+
arr.reduce((obj, value, index) => {
|
|
529
|
+
if (!obj[value]) {
|
|
530
|
+
obj[value] = {};
|
|
531
|
+
}
|
|
532
|
+
if (index === arr.length - 1 && lastValue) {
|
|
533
|
+
obj[value] = lastValue;
|
|
534
|
+
}
|
|
535
|
+
return obj[value];
|
|
536
|
+
}, nestedObject);
|
|
537
|
+
return nestedObject;
|
|
538
|
+
};
|
|
506
539
|
}
|
|
507
540
|
});
|
|
508
541
|
var require_string2 = __commonJS2({
|
|
@@ -1394,7 +1427,7 @@ var require_cjs = __commonJS({
|
|
|
1394
1427
|
return index === 0 ? word.toLowerCase() : word.toUpperCase();
|
|
1395
1428
|
}).replaceAll(/\s+/g, "");
|
|
1396
1429
|
};
|
|
1397
|
-
var toDashCase = (val) => val.replace(/[
|
|
1430
|
+
var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
1398
1431
|
var arrayzeValue = (val) => {
|
|
1399
1432
|
if ((0, import_utils22.isString)(val))
|
|
1400
1433
|
return val.split(" ");
|
|
@@ -3125,7 +3158,7 @@ var require_types = __commonJS({
|
|
|
3125
3158
|
isNumber: () => isNumber,
|
|
3126
3159
|
isObject: () => isObject7,
|
|
3127
3160
|
isObjectLike: () => isObjectLike4,
|
|
3128
|
-
isString: () =>
|
|
3161
|
+
isString: () => isString7,
|
|
3129
3162
|
isUndefined: () => isUndefined,
|
|
3130
3163
|
isValidHtmlTag: () => isValidHtmlTag
|
|
3131
3164
|
});
|
|
@@ -3138,7 +3171,7 @@ var require_types = __commonJS({
|
|
|
3138
3171
|
return false;
|
|
3139
3172
|
return typeof arg === "object" && arg.constructor === Object;
|
|
3140
3173
|
};
|
|
3141
|
-
var
|
|
3174
|
+
var isString7 = (arg) => typeof arg === "string";
|
|
3142
3175
|
var isNumber = (arg) => typeof arg === "number";
|
|
3143
3176
|
var isFunction3 = (arg) => typeof arg === "function";
|
|
3144
3177
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
@@ -3150,7 +3183,7 @@ var require_types = __commonJS({
|
|
|
3150
3183
|
return typeof arg === "object";
|
|
3151
3184
|
};
|
|
3152
3185
|
var isDefined = (arg) => {
|
|
3153
|
-
return isObject7(arg) || isObjectLike4(arg) ||
|
|
3186
|
+
return isObject7(arg) || isObjectLike4(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray7(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
|
|
3154
3187
|
};
|
|
3155
3188
|
var isUndefined = (arg) => {
|
|
3156
3189
|
return arg === void 0;
|
|
@@ -3159,7 +3192,7 @@ var require_types = __commonJS({
|
|
|
3159
3192
|
boolean: isBoolean,
|
|
3160
3193
|
array: isArray7,
|
|
3161
3194
|
object: isObject7,
|
|
3162
|
-
string:
|
|
3195
|
+
string: isString7,
|
|
3163
3196
|
number: isNumber,
|
|
3164
3197
|
null: isNull,
|
|
3165
3198
|
function: isFunction3,
|
|
@@ -3205,6 +3238,9 @@ var require_array = __commonJS({
|
|
|
3205
3238
|
var array_exports = {};
|
|
3206
3239
|
__export2(array_exports, {
|
|
3207
3240
|
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
3241
|
+
createNestedObject: () => createNestedObject,
|
|
3242
|
+
cutArrayAfterValue: () => cutArrayAfterValue,
|
|
3243
|
+
cutArrayBeforeValue: () => cutArrayBeforeValue,
|
|
3208
3244
|
joinArrays: () => joinArrays,
|
|
3209
3245
|
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
3210
3246
|
mergeArray: () => mergeArray,
|
|
@@ -3244,6 +3280,36 @@ var require_array = __commonJS({
|
|
|
3244
3280
|
var mergeAndCloneIfArray = (obj) => {
|
|
3245
3281
|
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
3246
3282
|
};
|
|
3283
|
+
var cutArrayBeforeValue = (arr, value) => {
|
|
3284
|
+
const index = arr.indexOf(value);
|
|
3285
|
+
if (index !== -1) {
|
|
3286
|
+
return arr.slice(0, index);
|
|
3287
|
+
}
|
|
3288
|
+
return arr;
|
|
3289
|
+
};
|
|
3290
|
+
var cutArrayAfterValue = (arr, value) => {
|
|
3291
|
+
const index = arr.indexOf(value);
|
|
3292
|
+
if (index !== -1) {
|
|
3293
|
+
return arr.slice(index + 1);
|
|
3294
|
+
}
|
|
3295
|
+
return arr;
|
|
3296
|
+
};
|
|
3297
|
+
var createNestedObject = (arr, lastValue) => {
|
|
3298
|
+
let nestedObject = {};
|
|
3299
|
+
if (arr.length === 0) {
|
|
3300
|
+
return lastValue;
|
|
3301
|
+
}
|
|
3302
|
+
arr.reduce((obj, value, index) => {
|
|
3303
|
+
if (!obj[value]) {
|
|
3304
|
+
obj[value] = {};
|
|
3305
|
+
}
|
|
3306
|
+
if (index === arr.length - 1 && lastValue) {
|
|
3307
|
+
obj[value] = lastValue;
|
|
3308
|
+
}
|
|
3309
|
+
return obj[value];
|
|
3310
|
+
}, nestedObject);
|
|
3311
|
+
return nestedObject;
|
|
3312
|
+
};
|
|
3247
3313
|
}
|
|
3248
3314
|
});
|
|
3249
3315
|
|
|
@@ -4250,7 +4316,7 @@ var require_inherit = __commonJS({
|
|
|
4250
4316
|
createChangesByKey: () => createChangesByKey,
|
|
4251
4317
|
createInheritedState: () => createInheritedState,
|
|
4252
4318
|
findInheritedState: () => findInheritedState,
|
|
4253
|
-
getChildStateInKey: () =>
|
|
4319
|
+
getChildStateInKey: () => getChildStateInKey4,
|
|
4254
4320
|
getParentStateInKey: () => getParentStateInKey,
|
|
4255
4321
|
isState: () => isState4
|
|
4256
4322
|
});
|
|
@@ -4269,7 +4335,7 @@ var require_inherit = __commonJS({
|
|
|
4269
4335
|
}
|
|
4270
4336
|
return parentState;
|
|
4271
4337
|
};
|
|
4272
|
-
var
|
|
4338
|
+
var getChildStateInKey4 = (stateKey, parentState, options = {}) => {
|
|
4273
4339
|
const arr = stateKey.split("/");
|
|
4274
4340
|
const arrLength = arr.length - 1;
|
|
4275
4341
|
for (let i = 0; i < arrLength; i++) {
|
|
@@ -4299,7 +4365,7 @@ var require_inherit = __commonJS({
|
|
|
4299
4365
|
}
|
|
4300
4366
|
if (!parentState)
|
|
4301
4367
|
return;
|
|
4302
|
-
return
|
|
4368
|
+
return getChildStateInKey4(stateKey, parentState, options);
|
|
4303
4369
|
};
|
|
4304
4370
|
var createInheritedState = (element, parent) => {
|
|
4305
4371
|
const ref = element.__ref;
|
|
@@ -7109,11 +7175,11 @@ var require_moment = __commonJS({
|
|
|
7109
7175
|
}
|
|
7110
7176
|
}
|
|
7111
7177
|
var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
|
7112
|
-
function
|
|
7178
|
+
function isString7(input) {
|
|
7113
7179
|
return typeof input === "string" || input instanceof String;
|
|
7114
7180
|
}
|
|
7115
7181
|
function isMomentInput(input) {
|
|
7116
|
-
return isMoment(input) || isDate(input) ||
|
|
7182
|
+
return isMoment(input) || isDate(input) || isString7(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
7117
7183
|
}
|
|
7118
7184
|
function isMomentInputObject(input) {
|
|
7119
7185
|
var objectTest = isObject7(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
|
@@ -7152,7 +7218,7 @@ var require_moment = __commonJS({
|
|
|
7152
7218
|
var arrayTest = isArray7(input), dataTypeTest = false;
|
|
7153
7219
|
if (arrayTest) {
|
|
7154
7220
|
dataTypeTest = input.filter(function(item) {
|
|
7155
|
-
return !isNumber(item) &&
|
|
7221
|
+
return !isNumber(item) && isString7(input);
|
|
7156
7222
|
}).length === 0;
|
|
7157
7223
|
}
|
|
7158
7224
|
return arrayTest && dataTypeTest;
|
|
@@ -12815,7 +12881,7 @@ var XYZ = {
|
|
|
12815
12881
|
var import_scratch9 = __toESM(require_cjs());
|
|
12816
12882
|
var import_utils5 = __toESM(require_cjs5());
|
|
12817
12883
|
|
|
12818
|
-
// ../../node_modules/@emotion/
|
|
12884
|
+
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
|
|
12819
12885
|
function sheetForTag(tag) {
|
|
12820
12886
|
if (tag.sheet) {
|
|
12821
12887
|
return tag.sheet;
|