@symbo.ls/uikit 2.11.206 → 2.11.211
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 +665 -450
- package/dist/index.cjs.js.map +4 -4
- package/index.js +0 -1
- package/package.json +2 -3
package/dist/index.cjs.js
CHANGED
|
@@ -274,7 +274,7 @@ var require_cjs = __commonJS({
|
|
|
274
274
|
isObject: () => isObject7,
|
|
275
275
|
isObjectLike: () => isObjectLike3,
|
|
276
276
|
isString: () => isString9,
|
|
277
|
-
isUndefined: () =>
|
|
277
|
+
isUndefined: () => isUndefined2
|
|
278
278
|
});
|
|
279
279
|
module22.exports = __toCommonJS22(types_exports);
|
|
280
280
|
var import_node = require_node2();
|
|
@@ -297,7 +297,7 @@ var require_cjs = __commonJS({
|
|
|
297
297
|
var isDefined2 = (arg) => {
|
|
298
298
|
return isObject7(arg) || isObjectLike3(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
|
|
299
299
|
};
|
|
300
|
-
var
|
|
300
|
+
var isUndefined2 = (arg) => {
|
|
301
301
|
return arg === void 0;
|
|
302
302
|
};
|
|
303
303
|
var TYPES = {
|
|
@@ -505,6 +505,7 @@ var require_cjs = __commonJS({
|
|
|
505
505
|
clone: () => clone,
|
|
506
506
|
deepClone: () => deepClone22,
|
|
507
507
|
deepCloneExclude: () => deepCloneExclude,
|
|
508
|
+
deepContains: () => deepContains2,
|
|
508
509
|
deepDestringify: () => deepDestringify,
|
|
509
510
|
deepMerge: () => deepMerge3,
|
|
510
511
|
deepStringify: () => deepStringify,
|
|
@@ -890,6 +891,33 @@ var require_cjs = __commonJS({
|
|
|
890
891
|
}
|
|
891
892
|
return true;
|
|
892
893
|
};
|
|
894
|
+
var deepContains2 = (obj1, obj2) => {
|
|
895
|
+
if (typeof obj1 !== typeof obj2) {
|
|
896
|
+
return false;
|
|
897
|
+
}
|
|
898
|
+
if ((0, import_types.isObjectLike)(obj1)) {
|
|
899
|
+
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
900
|
+
if (obj1.length !== obj2.length) {
|
|
901
|
+
return false;
|
|
902
|
+
}
|
|
903
|
+
for (let i = 0; i < obj1.length; i++) {
|
|
904
|
+
if (!deepContains2(obj1[i], obj2[i])) {
|
|
905
|
+
return false;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
909
|
+
for (const key in obj1) {
|
|
910
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
911
|
+
if (!hasOwnProperty || !deepContains2(obj1[key], obj2[key])) {
|
|
912
|
+
return false;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
} else {
|
|
917
|
+
return obj2 === obj1;
|
|
918
|
+
}
|
|
919
|
+
return true;
|
|
920
|
+
};
|
|
893
921
|
var removeFromObject = (obj, props4) => {
|
|
894
922
|
if (props4 === void 0 || props4 === null)
|
|
895
923
|
return obj;
|
|
@@ -1398,7 +1426,7 @@ var require_cjs = __commonJS({
|
|
|
1398
1426
|
setVariables: () => setVariables
|
|
1399
1427
|
});
|
|
1400
1428
|
var import_globals = __toESM2(require_cjs7(), 1);
|
|
1401
|
-
var
|
|
1429
|
+
var import_utils13 = __toESM2(require_cjs22(), 1);
|
|
1402
1430
|
var ENV = "development";
|
|
1403
1431
|
var colorStringToRgbaArray = (color) => {
|
|
1404
1432
|
if (color === "")
|
|
@@ -1526,9 +1554,9 @@ var require_cjs = __commonJS({
|
|
|
1526
1554
|
return `rgba(${arr})`;
|
|
1527
1555
|
};
|
|
1528
1556
|
var getRgbTone = (rgb, tone) => {
|
|
1529
|
-
if ((0,
|
|
1557
|
+
if ((0, import_utils13.isString)(rgb))
|
|
1530
1558
|
rgb = rgb.split(", ").map((v) => parseFloat(v));
|
|
1531
|
-
if ((0,
|
|
1559
|
+
if ((0, import_utils13.isNumber)(tone))
|
|
1532
1560
|
tone += "";
|
|
1533
1561
|
const toHex = rgbArrayToHex(rgb);
|
|
1534
1562
|
const abs2 = tone.slice(0, 1);
|
|
@@ -2439,7 +2467,7 @@ var require_cjs = __commonJS({
|
|
|
2439
2467
|
const r = recursiveTheme(value);
|
|
2440
2468
|
return r;
|
|
2441
2469
|
};
|
|
2442
|
-
var
|
|
2470
|
+
var import_utils122 = __toESM2(require_cjs22(), 1);
|
|
2443
2471
|
var setFont = (val, key) => {
|
|
2444
2472
|
const CSSvar = `--font-${key}`;
|
|
2445
2473
|
const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
|
|
@@ -2456,7 +2484,7 @@ var require_cjs = __commonJS({
|
|
|
2456
2484
|
let { value, type } = val;
|
|
2457
2485
|
if (val.isDefault)
|
|
2458
2486
|
FONT_FAMILY2.default = key;
|
|
2459
|
-
if ((0,
|
|
2487
|
+
if ((0, import_utils122.isObject)(value))
|
|
2460
2488
|
value = arrayzeValue(value);
|
|
2461
2489
|
const CSSvar = `--font-family-${key}`;
|
|
2462
2490
|
const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
|
|
@@ -2988,9 +3016,9 @@ var require_cjs = __commonJS({
|
|
|
2988
3016
|
}
|
|
2989
3017
|
});
|
|
2990
3018
|
|
|
2991
|
-
//
|
|
3019
|
+
// ../../../domql/packages/utils/dist/cjs/key.js
|
|
2992
3020
|
var require_key = __commonJS({
|
|
2993
|
-
"
|
|
3021
|
+
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
|
|
2994
3022
|
"use strict";
|
|
2995
3023
|
var __defProp2 = Object.defineProperty;
|
|
2996
3024
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3027,9 +3055,9 @@ var require_key = __commonJS({
|
|
|
3027
3055
|
}
|
|
3028
3056
|
});
|
|
3029
3057
|
|
|
3030
|
-
//
|
|
3058
|
+
// ../../../domql/packages/utils/dist/cjs/env.js
|
|
3031
3059
|
var require_env = __commonJS({
|
|
3032
|
-
"
|
|
3060
|
+
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
|
|
3033
3061
|
"use strict";
|
|
3034
3062
|
var __defProp2 = Object.defineProperty;
|
|
3035
3063
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3065,9 +3093,9 @@ var require_env = __commonJS({
|
|
|
3065
3093
|
}
|
|
3066
3094
|
});
|
|
3067
3095
|
|
|
3068
|
-
//
|
|
3096
|
+
// ../../../domql/packages/utils/dist/cjs/globals.js
|
|
3069
3097
|
var require_globals = __commonJS({
|
|
3070
|
-
"
|
|
3098
|
+
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
|
|
3071
3099
|
"use strict";
|
|
3072
3100
|
var __defProp2 = Object.defineProperty;
|
|
3073
3101
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3091,19 +3119,19 @@ var require_globals = __commonJS({
|
|
|
3091
3119
|
document: () => document2,
|
|
3092
3120
|
global: () => global,
|
|
3093
3121
|
self: () => self,
|
|
3094
|
-
window: () =>
|
|
3122
|
+
window: () => window2
|
|
3095
3123
|
});
|
|
3096
3124
|
module2.exports = __toCommonJS2(globals_exports);
|
|
3097
3125
|
var global = globalThis;
|
|
3098
3126
|
var self = globalThis;
|
|
3099
|
-
var
|
|
3100
|
-
var document2 =
|
|
3127
|
+
var window2 = globalThis;
|
|
3128
|
+
var document2 = window2.document;
|
|
3101
3129
|
}
|
|
3102
3130
|
});
|
|
3103
3131
|
|
|
3104
|
-
//
|
|
3132
|
+
// ../../../domql/packages/utils/dist/cjs/node.js
|
|
3105
3133
|
var require_node = __commonJS({
|
|
3106
|
-
"
|
|
3134
|
+
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
|
|
3107
3135
|
"use strict";
|
|
3108
3136
|
var __defProp2 = Object.defineProperty;
|
|
3109
3137
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3138,9 +3166,9 @@ var require_node = __commonJS({
|
|
|
3138
3166
|
}
|
|
3139
3167
|
});
|
|
3140
3168
|
|
|
3141
|
-
//
|
|
3169
|
+
// ../../../domql/packages/utils/dist/cjs/types.js
|
|
3142
3170
|
var require_types = __commonJS({
|
|
3143
|
-
"
|
|
3171
|
+
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
|
|
3144
3172
|
"use strict";
|
|
3145
3173
|
var __defProp2 = Object.defineProperty;
|
|
3146
3174
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3172,8 +3200,8 @@ var require_types = __commonJS({
|
|
|
3172
3200
|
isNumber: () => isNumber,
|
|
3173
3201
|
isObject: () => isObject4,
|
|
3174
3202
|
isObjectLike: () => isObjectLike2,
|
|
3175
|
-
isString: () =>
|
|
3176
|
-
isUndefined: () =>
|
|
3203
|
+
isString: () => isString6,
|
|
3204
|
+
isUndefined: () => isUndefined2
|
|
3177
3205
|
});
|
|
3178
3206
|
module2.exports = __toCommonJS2(types_exports);
|
|
3179
3207
|
var import_node = require_node();
|
|
@@ -3182,7 +3210,7 @@ var require_types = __commonJS({
|
|
|
3182
3210
|
return false;
|
|
3183
3211
|
return typeof arg === "object" && arg.constructor === Object;
|
|
3184
3212
|
};
|
|
3185
|
-
var
|
|
3213
|
+
var isString6 = (arg) => typeof arg === "string";
|
|
3186
3214
|
var isNumber = (arg) => typeof arg === "number";
|
|
3187
3215
|
var isFunction3 = (arg) => typeof arg === "function";
|
|
3188
3216
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
@@ -3194,16 +3222,16 @@ var require_types = __commonJS({
|
|
|
3194
3222
|
return typeof arg === "object";
|
|
3195
3223
|
};
|
|
3196
3224
|
var isDefined = (arg) => {
|
|
3197
|
-
return isObject4(arg) || isObjectLike2(arg) ||
|
|
3225
|
+
return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isNull(arg);
|
|
3198
3226
|
};
|
|
3199
|
-
var
|
|
3227
|
+
var isUndefined2 = (arg) => {
|
|
3200
3228
|
return arg === void 0;
|
|
3201
3229
|
};
|
|
3202
3230
|
var TYPES = {
|
|
3203
3231
|
boolean: isBoolean,
|
|
3204
3232
|
array: isArray3,
|
|
3205
3233
|
object: isObject4,
|
|
3206
|
-
string:
|
|
3234
|
+
string: isString6,
|
|
3207
3235
|
number: isNumber,
|
|
3208
3236
|
null: isNull,
|
|
3209
3237
|
function: isFunction3,
|
|
@@ -3225,9 +3253,9 @@ var require_types = __commonJS({
|
|
|
3225
3253
|
}
|
|
3226
3254
|
});
|
|
3227
3255
|
|
|
3228
|
-
//
|
|
3256
|
+
// ../../../domql/packages/utils/dist/cjs/array.js
|
|
3229
3257
|
var require_array = __commonJS({
|
|
3230
|
-
"
|
|
3258
|
+
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
|
|
3231
3259
|
"use strict";
|
|
3232
3260
|
var __defProp2 = Object.defineProperty;
|
|
3233
3261
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3324,9 +3352,9 @@ var require_array = __commonJS({
|
|
|
3324
3352
|
}
|
|
3325
3353
|
});
|
|
3326
3354
|
|
|
3327
|
-
//
|
|
3355
|
+
// ../../../domql/packages/utils/dist/cjs/string.js
|
|
3328
3356
|
var require_string = __commonJS({
|
|
3329
|
-
"
|
|
3357
|
+
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
|
|
3330
3358
|
"use strict";
|
|
3331
3359
|
var __defProp2 = Object.defineProperty;
|
|
3332
3360
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3384,9 +3412,9 @@ var require_string = __commonJS({
|
|
|
3384
3412
|
}
|
|
3385
3413
|
});
|
|
3386
3414
|
|
|
3387
|
-
//
|
|
3415
|
+
// ../../../domql/packages/utils/dist/cjs/object.js
|
|
3388
3416
|
var require_object = __commonJS({
|
|
3389
|
-
"
|
|
3417
|
+
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
|
|
3390
3418
|
"use strict";
|
|
3391
3419
|
var __defProp2 = Object.defineProperty;
|
|
3392
3420
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3410,6 +3438,7 @@ var require_object = __commonJS({
|
|
|
3410
3438
|
clone: () => clone,
|
|
3411
3439
|
deepClone: () => deepClone3,
|
|
3412
3440
|
deepCloneExclude: () => deepCloneExclude,
|
|
3441
|
+
deepContains: () => deepContains2,
|
|
3413
3442
|
deepDestringify: () => deepDestringify,
|
|
3414
3443
|
deepMerge: () => deepMerge2,
|
|
3415
3444
|
deepStringify: () => deepStringify,
|
|
@@ -3472,7 +3501,7 @@ var require_object = __commonJS({
|
|
|
3472
3501
|
const elementProp = element[e];
|
|
3473
3502
|
const extendProp = extend[e];
|
|
3474
3503
|
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
3475
|
-
deepMerge2(elementProp, extendProp);
|
|
3504
|
+
deepMerge2(elementProp, extendProp, excludeFrom);
|
|
3476
3505
|
} else if (elementProp === void 0) {
|
|
3477
3506
|
element[e] = extendProp;
|
|
3478
3507
|
}
|
|
@@ -3562,8 +3591,8 @@ var require_object = __commonJS({
|
|
|
3562
3591
|
const spaces = " ".repeat(indent);
|
|
3563
3592
|
let str = "{\n";
|
|
3564
3593
|
for (const [key, value] of Object.entries(obj)) {
|
|
3565
|
-
const
|
|
3566
|
-
const stringedKey =
|
|
3594
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
|
|
3595
|
+
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
3567
3596
|
str += `${spaces} ${stringedKey}: `;
|
|
3568
3597
|
if ((0, import_types.isArray)(value)) {
|
|
3569
3598
|
str += "[\n";
|
|
@@ -3618,7 +3647,7 @@ var require_object = __commonJS({
|
|
|
3618
3647
|
}
|
|
3619
3648
|
return detached;
|
|
3620
3649
|
};
|
|
3621
|
-
var deepDestringify = (obj,
|
|
3650
|
+
var deepDestringify = (obj, destringified = {}) => {
|
|
3622
3651
|
for (const prop in obj) {
|
|
3623
3652
|
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3624
3653
|
if (!hasOwnProperty)
|
|
@@ -3628,52 +3657,50 @@ var require_object = __commonJS({
|
|
|
3628
3657
|
if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
|
|
3629
3658
|
try {
|
|
3630
3659
|
const evalProp = import_globals.window.eval(`(${objProp})`);
|
|
3631
|
-
|
|
3660
|
+
destringified[prop] = evalProp;
|
|
3632
3661
|
} catch (e) {
|
|
3633
3662
|
if (e)
|
|
3634
|
-
|
|
3663
|
+
destringified[prop] = objProp;
|
|
3635
3664
|
}
|
|
3636
3665
|
} else {
|
|
3637
|
-
|
|
3666
|
+
destringified[prop] = objProp;
|
|
3638
3667
|
}
|
|
3639
3668
|
} else if ((0, import_types.isArray)(objProp)) {
|
|
3640
|
-
|
|
3669
|
+
destringified[prop] = [];
|
|
3641
3670
|
objProp.forEach((arrProp) => {
|
|
3642
3671
|
if ((0, import_types.isString)(arrProp)) {
|
|
3643
3672
|
if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
|
|
3644
3673
|
try {
|
|
3645
3674
|
const evalProp = import_globals.window.eval(`(${arrProp})`);
|
|
3646
|
-
|
|
3675
|
+
destringified[prop].push(evalProp);
|
|
3647
3676
|
} catch (e) {
|
|
3648
3677
|
if (e)
|
|
3649
|
-
|
|
3678
|
+
destringified[prop].push(arrProp);
|
|
3650
3679
|
}
|
|
3651
3680
|
} else {
|
|
3652
|
-
|
|
3681
|
+
destringified[prop].push(arrProp);
|
|
3653
3682
|
}
|
|
3654
3683
|
} else if ((0, import_types.isObject)(arrProp)) {
|
|
3655
|
-
|
|
3684
|
+
destringified[prop].push(deepDestringify(arrProp));
|
|
3656
3685
|
} else {
|
|
3657
|
-
|
|
3686
|
+
destringified[prop].push(arrProp);
|
|
3658
3687
|
}
|
|
3659
3688
|
});
|
|
3660
3689
|
} else if ((0, import_types.isObject)(objProp)) {
|
|
3661
|
-
|
|
3690
|
+
destringified[prop] = deepDestringify(objProp, destringified[prop]);
|
|
3662
3691
|
} else {
|
|
3663
|
-
|
|
3692
|
+
destringified[prop] = objProp;
|
|
3664
3693
|
}
|
|
3665
3694
|
}
|
|
3666
|
-
return
|
|
3695
|
+
return destringified;
|
|
3667
3696
|
};
|
|
3668
|
-
var stringToObject = (str) => {
|
|
3669
|
-
let obj;
|
|
3697
|
+
var stringToObject = (str, verbose) => {
|
|
3670
3698
|
try {
|
|
3671
|
-
|
|
3699
|
+
return import_globals.window.eval("(" + str + ")");
|
|
3672
3700
|
} catch (e) {
|
|
3673
|
-
|
|
3701
|
+
if (verbose)
|
|
3702
|
+
console.warn(e);
|
|
3674
3703
|
}
|
|
3675
|
-
if (obj)
|
|
3676
|
-
return obj;
|
|
3677
3704
|
};
|
|
3678
3705
|
var diffObjects = (original, objToDiff, cache) => {
|
|
3679
3706
|
for (const e in objToDiff) {
|
|
@@ -3795,6 +3822,33 @@ var require_object = __commonJS({
|
|
|
3795
3822
|
}
|
|
3796
3823
|
return true;
|
|
3797
3824
|
};
|
|
3825
|
+
var deepContains2 = (obj1, obj2) => {
|
|
3826
|
+
if (typeof obj1 !== typeof obj2) {
|
|
3827
|
+
return false;
|
|
3828
|
+
}
|
|
3829
|
+
if ((0, import_types.isObjectLike)(obj1)) {
|
|
3830
|
+
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
3831
|
+
if (obj1.length !== obj2.length) {
|
|
3832
|
+
return false;
|
|
3833
|
+
}
|
|
3834
|
+
for (let i = 0; i < obj1.length; i++) {
|
|
3835
|
+
if (!deepContains2(obj1[i], obj2[i])) {
|
|
3836
|
+
return false;
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
3840
|
+
for (const key in obj1) {
|
|
3841
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
3842
|
+
if (!hasOwnProperty || !deepContains2(obj1[key], obj2[key])) {
|
|
3843
|
+
return false;
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
} else {
|
|
3848
|
+
return obj2 === obj1;
|
|
3849
|
+
}
|
|
3850
|
+
return true;
|
|
3851
|
+
};
|
|
3798
3852
|
var removeFromObject = (obj, props4) => {
|
|
3799
3853
|
if (props4 === void 0 || props4 === null)
|
|
3800
3854
|
return obj;
|
|
@@ -3810,9 +3864,9 @@ var require_object = __commonJS({
|
|
|
3810
3864
|
}
|
|
3811
3865
|
});
|
|
3812
3866
|
|
|
3813
|
-
//
|
|
3867
|
+
// ../../../domql/packages/utils/dist/cjs/function.js
|
|
3814
3868
|
var require_function = __commonJS({
|
|
3815
|
-
"
|
|
3869
|
+
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
|
|
3816
3870
|
"use strict";
|
|
3817
3871
|
var __defProp2 = Object.defineProperty;
|
|
3818
3872
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3834,11 +3888,29 @@ var require_function = __commonJS({
|
|
|
3834
3888
|
var function_exports = {};
|
|
3835
3889
|
__export2(function_exports, {
|
|
3836
3890
|
debounce: () => debounce,
|
|
3891
|
+
debounceOnContext: () => debounceOnContext,
|
|
3837
3892
|
isStringFunction: () => isStringFunction,
|
|
3838
3893
|
memoize: () => memoize2
|
|
3839
3894
|
});
|
|
3840
3895
|
module2.exports = __toCommonJS2(function_exports);
|
|
3841
|
-
|
|
3896
|
+
function debounce(func, wait, immediate) {
|
|
3897
|
+
let timeout;
|
|
3898
|
+
return function() {
|
|
3899
|
+
const context = this;
|
|
3900
|
+
const args = arguments;
|
|
3901
|
+
const later = function() {
|
|
3902
|
+
timeout = null;
|
|
3903
|
+
if (!immediate)
|
|
3904
|
+
func.apply(context, args);
|
|
3905
|
+
};
|
|
3906
|
+
const callNow = immediate && !timeout;
|
|
3907
|
+
clearTimeout(timeout);
|
|
3908
|
+
timeout = setTimeout(later, wait);
|
|
3909
|
+
if (callNow)
|
|
3910
|
+
func.apply(context, args);
|
|
3911
|
+
};
|
|
3912
|
+
}
|
|
3913
|
+
var debounceOnContext = (element, func, timeout = 300) => {
|
|
3842
3914
|
let timer;
|
|
3843
3915
|
return (...args) => {
|
|
3844
3916
|
clearTimeout(timer);
|
|
@@ -3867,9 +3939,9 @@ var require_function = __commonJS({
|
|
|
3867
3939
|
}
|
|
3868
3940
|
});
|
|
3869
3941
|
|
|
3870
|
-
//
|
|
3942
|
+
// ../../../domql/packages/utils/dist/cjs/log.js
|
|
3871
3943
|
var require_log = __commonJS({
|
|
3872
|
-
"
|
|
3944
|
+
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
|
|
3873
3945
|
"use strict";
|
|
3874
3946
|
var __defProp2 = Object.defineProperty;
|
|
3875
3947
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3908,9 +3980,9 @@ var require_log = __commonJS({
|
|
|
3908
3980
|
}
|
|
3909
3981
|
});
|
|
3910
3982
|
|
|
3911
|
-
//
|
|
3983
|
+
// ../../../domql/packages/utils/dist/cjs/cookie.js
|
|
3912
3984
|
var require_cookie = __commonJS({
|
|
3913
|
-
"
|
|
3985
|
+
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
3914
3986
|
"use strict";
|
|
3915
3987
|
var __defProp2 = Object.defineProperty;
|
|
3916
3988
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3964,9 +4036,9 @@ var require_cookie = __commonJS({
|
|
|
3964
4036
|
}
|
|
3965
4037
|
});
|
|
3966
4038
|
|
|
3967
|
-
//
|
|
4039
|
+
// ../../../domql/packages/utils/dist/cjs/tags.js
|
|
3968
4040
|
var require_tags = __commonJS({
|
|
3969
|
-
"
|
|
4041
|
+
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
|
|
3970
4042
|
"use strict";
|
|
3971
4043
|
var __defProp2 = Object.defineProperty;
|
|
3972
4044
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4129,9 +4201,9 @@ var require_tags = __commonJS({
|
|
|
4129
4201
|
}
|
|
4130
4202
|
});
|
|
4131
4203
|
|
|
4132
|
-
//
|
|
4204
|
+
// ../../../domql/packages/utils/dist/cjs/index.js
|
|
4133
4205
|
var require_cjs2 = __commonJS({
|
|
4134
|
-
"
|
|
4206
|
+
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
|
|
4135
4207
|
"use strict";
|
|
4136
4208
|
var __defProp2 = Object.defineProperty;
|
|
4137
4209
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4164,9 +4236,9 @@ var require_cjs2 = __commonJS({
|
|
|
4164
4236
|
}
|
|
4165
4237
|
});
|
|
4166
4238
|
|
|
4167
|
-
//
|
|
4239
|
+
// ../../../domql/packages/state/dist/cjs/ignore.js
|
|
4168
4240
|
var require_ignore = __commonJS({
|
|
4169
|
-
"
|
|
4241
|
+
"../../../domql/packages/state/dist/cjs/ignore.js"(exports, module2) {
|
|
4170
4242
|
"use strict";
|
|
4171
4243
|
var __defProp2 = Object.defineProperty;
|
|
4172
4244
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4213,9 +4285,9 @@ var require_ignore = __commonJS({
|
|
|
4213
4285
|
}
|
|
4214
4286
|
});
|
|
4215
4287
|
|
|
4216
|
-
//
|
|
4288
|
+
// ../../../domql/packages/event/dist/cjs/on.js
|
|
4217
4289
|
var require_on = __commonJS({
|
|
4218
|
-
"
|
|
4290
|
+
"../../../domql/packages/event/dist/cjs/on.js"(exports, module2) {
|
|
4219
4291
|
"use strict";
|
|
4220
4292
|
var __defProp2 = Object.defineProperty;
|
|
4221
4293
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4243,12 +4315,12 @@ var require_on = __commonJS({
|
|
|
4243
4315
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
4244
4316
|
});
|
|
4245
4317
|
module2.exports = __toCommonJS2(on_exports);
|
|
4246
|
-
var
|
|
4318
|
+
var import_utils13 = require_cjs2();
|
|
4247
4319
|
var applyEvent = (param, element, state, context, options) => {
|
|
4248
4320
|
return param(element, state || element.state, context || element.context, options);
|
|
4249
4321
|
};
|
|
4250
4322
|
var triggerEventOn = (param, element, options) => {
|
|
4251
|
-
if (element.on && (0,
|
|
4323
|
+
if (element.on && (0, import_utils13.isFunction)(element.on[param])) {
|
|
4252
4324
|
const { state, context } = element;
|
|
4253
4325
|
return applyEvent(element.on[param], element, state, context, options);
|
|
4254
4326
|
}
|
|
@@ -4257,7 +4329,7 @@ var require_on = __commonJS({
|
|
|
4257
4329
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
4258
4330
|
};
|
|
4259
4331
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
4260
|
-
if (element.on && (0,
|
|
4332
|
+
if (element.on && (0, import_utils13.isFunction)(element.on[param])) {
|
|
4261
4333
|
const { state, context } = element;
|
|
4262
4334
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
4263
4335
|
}
|
|
@@ -4268,7 +4340,7 @@ var require_on = __commonJS({
|
|
|
4268
4340
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
4269
4341
|
continue;
|
|
4270
4342
|
const appliedFunction = element.on[param];
|
|
4271
|
-
if ((0,
|
|
4343
|
+
if ((0, import_utils13.isFunction)(appliedFunction)) {
|
|
4272
4344
|
const { state, context } = element;
|
|
4273
4345
|
node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
|
|
4274
4346
|
}
|
|
@@ -4277,9 +4349,9 @@ var require_on = __commonJS({
|
|
|
4277
4349
|
}
|
|
4278
4350
|
});
|
|
4279
4351
|
|
|
4280
|
-
//
|
|
4352
|
+
// ../../../domql/plugins/report/dist/cjs/index.js
|
|
4281
4353
|
var require_cjs3 = __commonJS({
|
|
4282
|
-
"
|
|
4354
|
+
"../../../domql/plugins/report/dist/cjs/index.js"(exports, module2) {
|
|
4283
4355
|
"use strict";
|
|
4284
4356
|
var __defProp2 = Object.defineProperty;
|
|
4285
4357
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4374,9 +4446,9 @@ ${element}` : ""
|
|
|
4374
4446
|
}
|
|
4375
4447
|
});
|
|
4376
4448
|
|
|
4377
|
-
//
|
|
4449
|
+
// ../../../domql/packages/event/dist/cjs/can.js
|
|
4378
4450
|
var require_can = __commonJS({
|
|
4379
|
-
"
|
|
4451
|
+
"../../../domql/packages/event/dist/cjs/can.js"(exports, module2) {
|
|
4380
4452
|
"use strict";
|
|
4381
4453
|
var __defProp2 = Object.defineProperty;
|
|
4382
4454
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4401,17 +4473,17 @@ var require_can = __commonJS({
|
|
|
4401
4473
|
});
|
|
4402
4474
|
module2.exports = __toCommonJS2(can_exports);
|
|
4403
4475
|
var import_report = require_cjs3();
|
|
4404
|
-
var
|
|
4476
|
+
var import_utils13 = require_cjs2();
|
|
4405
4477
|
var canRender = (element) => {
|
|
4406
4478
|
const tag = element.tag || "div";
|
|
4407
|
-
return (0,
|
|
4479
|
+
return (0, import_utils13.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
4408
4480
|
};
|
|
4409
4481
|
}
|
|
4410
4482
|
});
|
|
4411
4483
|
|
|
4412
|
-
//
|
|
4484
|
+
// ../../../domql/packages/event/dist/cjs/index.js
|
|
4413
4485
|
var require_cjs4 = __commonJS({
|
|
4414
|
-
"
|
|
4486
|
+
"../../../domql/packages/event/dist/cjs/index.js"(exports, module2) {
|
|
4415
4487
|
"use strict";
|
|
4416
4488
|
var __defProp2 = Object.defineProperty;
|
|
4417
4489
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4434,9 +4506,9 @@ var require_cjs4 = __commonJS({
|
|
|
4434
4506
|
}
|
|
4435
4507
|
});
|
|
4436
4508
|
|
|
4437
|
-
//
|
|
4509
|
+
// ../../../domql/packages/state/dist/cjs/methods.js
|
|
4438
4510
|
var require_methods = __commonJS({
|
|
4439
|
-
"
|
|
4511
|
+
"../../../domql/packages/state/dist/cjs/methods.js"(exports, module2) {
|
|
4440
4512
|
"use strict";
|
|
4441
4513
|
var __defProp2 = Object.defineProperty;
|
|
4442
4514
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4469,11 +4541,11 @@ var require_methods = __commonJS({
|
|
|
4469
4541
|
toggle: () => toggle
|
|
4470
4542
|
});
|
|
4471
4543
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4472
|
-
var
|
|
4544
|
+
var import_utils13 = require_cjs2();
|
|
4473
4545
|
var import_ignore = require_ignore();
|
|
4474
4546
|
var parse2 = function() {
|
|
4475
4547
|
const state = this;
|
|
4476
|
-
if ((0,
|
|
4548
|
+
if ((0, import_utils13.isObject)(state)) {
|
|
4477
4549
|
const obj = {};
|
|
4478
4550
|
for (const param in state) {
|
|
4479
4551
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -4481,7 +4553,7 @@ var require_methods = __commonJS({
|
|
|
4481
4553
|
}
|
|
4482
4554
|
}
|
|
4483
4555
|
return obj;
|
|
4484
|
-
} else if ((0,
|
|
4556
|
+
} else if ((0, import_utils13.isArray)(state)) {
|
|
4485
4557
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
4486
4558
|
}
|
|
4487
4559
|
};
|
|
@@ -4501,7 +4573,7 @@ var require_methods = __commonJS({
|
|
|
4501
4573
|
const state = this;
|
|
4502
4574
|
const element = state.__element;
|
|
4503
4575
|
const stateKey = element.__ref.__state;
|
|
4504
|
-
if ((0,
|
|
4576
|
+
if ((0, import_utils13.isString)(stateKey)) {
|
|
4505
4577
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
4506
4578
|
return element.state;
|
|
4507
4579
|
}
|
|
@@ -4532,14 +4604,14 @@ var require_methods = __commonJS({
|
|
|
4532
4604
|
if (!state)
|
|
4533
4605
|
return;
|
|
4534
4606
|
const rootState = state.__element.__ref.__root.state;
|
|
4535
|
-
return rootState.update(obj, { isHoisted: false, options });
|
|
4607
|
+
return rootState.update(obj, { isHoisted: false, ...options });
|
|
4536
4608
|
};
|
|
4537
4609
|
var add = function(value, options = {}) {
|
|
4538
4610
|
const state = this;
|
|
4539
|
-
if ((0,
|
|
4611
|
+
if ((0, import_utils13.isArray)(state)) {
|
|
4540
4612
|
state.push(value);
|
|
4541
4613
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
4542
|
-
} else if ((0,
|
|
4614
|
+
} else if ((0, import_utils13.isObject)(state)) {
|
|
4543
4615
|
const key = Object.keys(state).length;
|
|
4544
4616
|
state.update({ [key]: value }, options);
|
|
4545
4617
|
}
|
|
@@ -4550,10 +4622,10 @@ var require_methods = __commonJS({
|
|
|
4550
4622
|
};
|
|
4551
4623
|
var remove = function(key, options = {}) {
|
|
4552
4624
|
const state = this;
|
|
4553
|
-
if ((0,
|
|
4554
|
-
(0,
|
|
4555
|
-
if ((0,
|
|
4556
|
-
(0,
|
|
4625
|
+
if ((0, import_utils13.isArray)(state))
|
|
4626
|
+
(0, import_utils13.removeFromArray)(state, key);
|
|
4627
|
+
if ((0, import_utils13.isObject)(state))
|
|
4628
|
+
(0, import_utils13.removeFromObject)(state, key);
|
|
4557
4629
|
return state.update(state.parse(), { replace: true, ...options });
|
|
4558
4630
|
};
|
|
4559
4631
|
var set3 = function(value, options = {}) {
|
|
@@ -4562,7 +4634,7 @@ var require_methods = __commonJS({
|
|
|
4562
4634
|
};
|
|
4563
4635
|
var apply = function(func, options = {}) {
|
|
4564
4636
|
const state = this;
|
|
4565
|
-
if ((0,
|
|
4637
|
+
if ((0, import_utils13.isFunction)(func)) {
|
|
4566
4638
|
func(state);
|
|
4567
4639
|
return state.update(state, { replace: true, ...options });
|
|
4568
4640
|
}
|
|
@@ -4570,9 +4642,9 @@ var require_methods = __commonJS({
|
|
|
4570
4642
|
}
|
|
4571
4643
|
});
|
|
4572
4644
|
|
|
4573
|
-
//
|
|
4645
|
+
// ../../../domql/packages/state/dist/cjs/inherit.js
|
|
4574
4646
|
var require_inherit = __commonJS({
|
|
4575
|
-
"
|
|
4647
|
+
"../../../domql/packages/state/dist/cjs/inherit.js"(exports, module2) {
|
|
4576
4648
|
"use strict";
|
|
4577
4649
|
var __defProp2 = Object.defineProperty;
|
|
4578
4650
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4602,7 +4674,7 @@ var require_inherit = __commonJS({
|
|
|
4602
4674
|
isState: () => isState2
|
|
4603
4675
|
});
|
|
4604
4676
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
4605
|
-
var
|
|
4677
|
+
var import_utils13 = require_cjs2();
|
|
4606
4678
|
var import_ignore = require_ignore();
|
|
4607
4679
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
4608
4680
|
if (!stateKey.includes("../"))
|
|
@@ -4654,12 +4726,12 @@ var require_inherit = __commonJS({
|
|
|
4654
4726
|
var createInheritedState = (element, parent) => {
|
|
4655
4727
|
const ref = element.__ref;
|
|
4656
4728
|
const inheritedState = findInheritedState(element, parent);
|
|
4657
|
-
if (
|
|
4729
|
+
if ((0, import_utils13.isUndefined)(inheritedState))
|
|
4658
4730
|
return element.state;
|
|
4659
|
-
if ((0,
|
|
4660
|
-
return (0,
|
|
4661
|
-
} else if ((0,
|
|
4662
|
-
ref.__stateType =
|
|
4731
|
+
if ((0, import_utils13.is)(inheritedState)("object", "array")) {
|
|
4732
|
+
return (0, import_utils13.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4733
|
+
} else if ((0, import_utils13.is)(inheritedState)("string", "number", "boolean")) {
|
|
4734
|
+
ref.__stateType = typeof inheritedState;
|
|
4663
4735
|
return { value: inheritedState };
|
|
4664
4736
|
}
|
|
4665
4737
|
console.warn(ref.__state, "is not present. Replacing with", {});
|
|
@@ -4667,12 +4739,12 @@ var require_inherit = __commonJS({
|
|
|
4667
4739
|
var checkIfInherits = (element) => {
|
|
4668
4740
|
const ref = element.__ref;
|
|
4669
4741
|
const stateKey = ref.__state;
|
|
4670
|
-
if (
|
|
4671
|
-
return
|
|
4672
|
-
return
|
|
4742
|
+
if (stateKey && (0, import_utils13.is)(stateKey)("number", "string", "boolean"))
|
|
4743
|
+
return true;
|
|
4744
|
+
return false;
|
|
4673
4745
|
};
|
|
4674
4746
|
var isState2 = function(state) {
|
|
4675
|
-
if (!(0,
|
|
4747
|
+
if (!(0, import_utils13.isObjectLike)(state))
|
|
4676
4748
|
return false;
|
|
4677
4749
|
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
|
|
4678
4750
|
};
|
|
@@ -4692,9 +4764,9 @@ var require_inherit = __commonJS({
|
|
|
4692
4764
|
}
|
|
4693
4765
|
});
|
|
4694
4766
|
|
|
4695
|
-
//
|
|
4767
|
+
// ../../../domql/packages/state/dist/cjs/updateState.js
|
|
4696
4768
|
var require_updateState = __commonJS({
|
|
4697
|
-
"
|
|
4769
|
+
"../../../domql/packages/state/dist/cjs/updateState.js"(exports, module2) {
|
|
4698
4770
|
"use strict";
|
|
4699
4771
|
var __defProp2 = Object.defineProperty;
|
|
4700
4772
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4721,7 +4793,7 @@ var require_updateState = __commonJS({
|
|
|
4721
4793
|
var import_report = require_cjs3();
|
|
4722
4794
|
var import_event = require_cjs4();
|
|
4723
4795
|
var import_ignore = require_ignore();
|
|
4724
|
-
var
|
|
4796
|
+
var import_utils13 = require_cjs2();
|
|
4725
4797
|
var import_inherit = require_inherit();
|
|
4726
4798
|
var STATE_UPDATE_OPTIONS = {
|
|
4727
4799
|
overwrite: true,
|
|
@@ -4735,7 +4807,7 @@ var require_updateState = __commonJS({
|
|
|
4735
4807
|
const state = this;
|
|
4736
4808
|
const element = state.__element;
|
|
4737
4809
|
if (!options.updateByState)
|
|
4738
|
-
(0,
|
|
4810
|
+
(0, import_utils13.merge)(options, STATE_UPDATE_OPTIONS);
|
|
4739
4811
|
if (!state.__element)
|
|
4740
4812
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
4741
4813
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -4765,16 +4837,17 @@ var require_updateState = __commonJS({
|
|
|
4765
4837
|
const shallow = overwrite === "shallow";
|
|
4766
4838
|
const merge22 = overwrite === "merge";
|
|
4767
4839
|
if (merge22) {
|
|
4768
|
-
(0,
|
|
4840
|
+
(0, import_utils13.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4769
4841
|
return;
|
|
4770
4842
|
}
|
|
4771
|
-
const overwriteFunc = shallow ?
|
|
4843
|
+
const overwriteFunc = shallow ? import_utils13.overwriteShallow : import_utils13.overwriteDeep;
|
|
4772
4844
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4773
4845
|
};
|
|
4774
4846
|
var hoistStateUpdate = (state, obj, options) => {
|
|
4775
4847
|
const element = state.__element;
|
|
4776
4848
|
const { parent, __ref: ref } = element;
|
|
4777
4849
|
const stateKey = ref.__state;
|
|
4850
|
+
const stateType = ref.__stateType;
|
|
4778
4851
|
if (!stateKey)
|
|
4779
4852
|
return;
|
|
4780
4853
|
const asksForInherit = (0, import_inherit.checkIfInherits)(element);
|
|
@@ -4782,7 +4855,7 @@ var require_updateState = __commonJS({
|
|
|
4782
4855
|
const shouldPropagateState = asksForInherit && inheritedState && !options.stopStatePropagation;
|
|
4783
4856
|
if (!shouldPropagateState)
|
|
4784
4857
|
return;
|
|
4785
|
-
const isStringState =
|
|
4858
|
+
const isStringState = stateType === "string" || stateType === "number" || stateType === "boolean";
|
|
4786
4859
|
const value = isStringState ? state.value : state.parse();
|
|
4787
4860
|
const passedValue = isStringState ? state.value : obj;
|
|
4788
4861
|
const findGrandParentState = (0, import_inherit.getParentStateInKey)(stateKey, parent.state);
|
|
@@ -4831,9 +4904,9 @@ var require_updateState = __commonJS({
|
|
|
4831
4904
|
}
|
|
4832
4905
|
});
|
|
4833
4906
|
|
|
4834
|
-
//
|
|
4907
|
+
// ../../../domql/packages/state/dist/cjs/create.js
|
|
4835
4908
|
var require_create = __commonJS({
|
|
4836
|
-
"
|
|
4909
|
+
"../../../domql/packages/state/dist/cjs/create.js"(exports, module2) {
|
|
4837
4910
|
"use strict";
|
|
4838
4911
|
var __defProp2 = Object.defineProperty;
|
|
4839
4912
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4859,7 +4932,7 @@ var require_create = __commonJS({
|
|
|
4859
4932
|
});
|
|
4860
4933
|
module2.exports = __toCommonJS2(create_exports);
|
|
4861
4934
|
var import_event = require_cjs4();
|
|
4862
|
-
var
|
|
4935
|
+
var import_utils13 = require_cjs2();
|
|
4863
4936
|
var import_ignore = require_ignore();
|
|
4864
4937
|
var import_methods = require_methods();
|
|
4865
4938
|
var import_updateState = require_updateState();
|
|
@@ -4873,13 +4946,13 @@ var require_create = __commonJS({
|
|
|
4873
4946
|
if (objectizeState === false)
|
|
4874
4947
|
return parent.state || {};
|
|
4875
4948
|
else
|
|
4876
|
-
element.state = (0,
|
|
4949
|
+
element.state = (0, import_utils13.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4877
4950
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
4878
4951
|
if (whatInitReturns === false)
|
|
4879
4952
|
return element.state;
|
|
4880
4953
|
if ((0, import_inherit.checkIfInherits)(element)) {
|
|
4881
4954
|
const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
|
|
4882
|
-
element.state = inheritedState
|
|
4955
|
+
element.state = (0, import_utils13.isUndefined)(inheritedState) ? {} : inheritedState;
|
|
4883
4956
|
}
|
|
4884
4957
|
const dependentState = applyDependentState(element, element.state);
|
|
4885
4958
|
if (dependentState)
|
|
@@ -4892,17 +4965,17 @@ var require_create = __commonJS({
|
|
|
4892
4965
|
const { __ref: ref } = state;
|
|
4893
4966
|
if (!ref)
|
|
4894
4967
|
return;
|
|
4895
|
-
const dependentState = (0,
|
|
4968
|
+
const dependentState = (0, import_utils13.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
4896
4969
|
const newDepends = { [element.key]: dependentState };
|
|
4897
|
-
ref.__depends = (0,
|
|
4970
|
+
ref.__depends = (0, import_utils13.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
4898
4971
|
return dependentState;
|
|
4899
4972
|
};
|
|
4900
4973
|
var checkForTypes = (element) => {
|
|
4901
4974
|
const { state, __ref: ref } = element;
|
|
4902
|
-
if ((0,
|
|
4975
|
+
if ((0, import_utils13.isFunction)(state)) {
|
|
4903
4976
|
ref.__state = state;
|
|
4904
|
-
return (0,
|
|
4905
|
-
} else if ((0,
|
|
4977
|
+
return (0, import_utils13.exec)(state, element);
|
|
4978
|
+
} else if ((0, import_utils13.is)(state)("string", "number")) {
|
|
4906
4979
|
ref.__state = state;
|
|
4907
4980
|
return {};
|
|
4908
4981
|
} else if (state === true) {
|
|
@@ -4949,7 +5022,7 @@ var require_create = __commonJS({
|
|
|
4949
5022
|
__children: {},
|
|
4950
5023
|
__root: ref.__root ? ref.__root.state : state
|
|
4951
5024
|
};
|
|
4952
|
-
if ((0,
|
|
5025
|
+
if ((0, import_utils13.isArray)(state)) {
|
|
4953
5026
|
addProtoToArray(state, proto);
|
|
4954
5027
|
} else {
|
|
4955
5028
|
Object.setPrototypeOf(state, proto);
|
|
@@ -4961,9 +5034,9 @@ var require_create = __commonJS({
|
|
|
4961
5034
|
}
|
|
4962
5035
|
});
|
|
4963
5036
|
|
|
4964
|
-
//
|
|
5037
|
+
// ../../../domql/packages/state/dist/cjs/index.js
|
|
4965
5038
|
var require_cjs5 = __commonJS({
|
|
4966
|
-
"
|
|
5039
|
+
"../../../domql/packages/state/dist/cjs/index.js"(exports, module2) {
|
|
4967
5040
|
"use strict";
|
|
4968
5041
|
var __defProp2 = Object.defineProperty;
|
|
4969
5042
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5019,8 +5092,8 @@ var require_cjs6 = __commonJS({
|
|
|
5019
5092
|
router: () => router
|
|
5020
5093
|
});
|
|
5021
5094
|
module2.exports = __toCommonJS2(router_exports);
|
|
5022
|
-
var
|
|
5023
|
-
var getActiveRoute = (level = 0, route =
|
|
5095
|
+
var import_utils13 = require_cjs2();
|
|
5096
|
+
var getActiveRoute = (level = 0, route = import_utils13.window.location.pathname) => {
|
|
5024
5097
|
const routeArray = route.split("/");
|
|
5025
5098
|
const activeRoute = routeArray[level + 1];
|
|
5026
5099
|
if (activeRoute)
|
|
@@ -5034,7 +5107,7 @@ var require_cjs6 = __commonJS({
|
|
|
5034
5107
|
initialRender: false,
|
|
5035
5108
|
scrollToTop: true,
|
|
5036
5109
|
scrollToNode: false,
|
|
5037
|
-
scrollNode:
|
|
5110
|
+
scrollNode: import_utils13.document && import_utils13.document.documentElement,
|
|
5038
5111
|
scrollBody: false,
|
|
5039
5112
|
useFragment: false,
|
|
5040
5113
|
updateState: true,
|
|
@@ -5049,13 +5122,13 @@ var require_cjs6 = __commonJS({
|
|
|
5049
5122
|
const route = getActiveRoute(options.level, pathname);
|
|
5050
5123
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
5051
5124
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
5052
|
-
const hashChanged = hash2 && hash2 !==
|
|
5125
|
+
const hashChanged = hash2 && hash2 !== import_utils13.window.location.hash.slice(1);
|
|
5053
5126
|
const pathChanged = pathname !== lastPathname;
|
|
5054
5127
|
lastPathname = pathname;
|
|
5055
5128
|
if (!content)
|
|
5056
5129
|
return;
|
|
5057
5130
|
if (options.pushState) {
|
|
5058
|
-
|
|
5131
|
+
import_utils13.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
5059
5132
|
}
|
|
5060
5133
|
if (pathChanged || !hashChanged) {
|
|
5061
5134
|
if (options.updateState) {
|
|
@@ -5081,7 +5154,7 @@ var require_cjs6 = __commonJS({
|
|
|
5081
5154
|
});
|
|
5082
5155
|
}
|
|
5083
5156
|
if (hash2) {
|
|
5084
|
-
const activeNode =
|
|
5157
|
+
const activeNode = import_utils13.document.getElementById(hash2);
|
|
5085
5158
|
if (activeNode) {
|
|
5086
5159
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
5087
5160
|
scrollNode.scrollTo({
|
|
@@ -5201,7 +5274,7 @@ __export(domql_exports, {
|
|
|
5201
5274
|
Pills: () => Pills,
|
|
5202
5275
|
PlusMinusButtons: () => PlusMinusButtons,
|
|
5203
5276
|
Position: () => Position,
|
|
5204
|
-
|
|
5277
|
+
Pricing: () => Pricing,
|
|
5205
5278
|
ProgressCircle: () => ProgressCircle,
|
|
5206
5279
|
ProgressCircleWithIcon: () => ProgressCircleWithIcon,
|
|
5207
5280
|
ProgressCircleWithSideUnitValue: () => ProgressCircleWithSideUnitValue,
|
|
@@ -5521,11 +5594,6 @@ var Grid = {
|
|
|
5521
5594
|
// Atoms/Img.js
|
|
5522
5595
|
var Img = {
|
|
5523
5596
|
tag: "img",
|
|
5524
|
-
props: {
|
|
5525
|
-
src: "",
|
|
5526
|
-
alt: "",
|
|
5527
|
-
title: ""
|
|
5528
|
-
},
|
|
5529
5597
|
attr: {
|
|
5530
5598
|
src: ({ props: props4 }) => props4.src,
|
|
5531
5599
|
alt: ({ props: props4 }) => props4.alt,
|
|
@@ -5545,7 +5613,7 @@ var Form = {
|
|
|
5545
5613
|
};
|
|
5546
5614
|
|
|
5547
5615
|
// Atoms/Media.js
|
|
5548
|
-
var
|
|
5616
|
+
var import_utils2 = __toESM(require_cjs2());
|
|
5549
5617
|
|
|
5550
5618
|
// Atoms/Theme.js
|
|
5551
5619
|
var import_scratch5 = __toESM(require_cjs());
|
|
@@ -5775,6 +5843,7 @@ var SHAPES = {
|
|
|
5775
5843
|
};
|
|
5776
5844
|
|
|
5777
5845
|
// Atoms/Theme.js
|
|
5846
|
+
var import_utils = __toESM(require_cjs2());
|
|
5778
5847
|
var getSystemTheme = ({ context, state }) => {
|
|
5779
5848
|
const rootState = state && state.__root;
|
|
5780
5849
|
return rootState ? rootState.globalTheme : context.designSystem && context.designSystem.globalTheme;
|
|
@@ -5791,7 +5860,7 @@ var Theme = {
|
|
|
5791
5860
|
transformBackgroundImage: import_scratch5.transformBackgroundImage
|
|
5792
5861
|
},
|
|
5793
5862
|
class: {
|
|
5794
|
-
depth: ({ props: props4, deps }) => props4.depth && deps.depth[props4.depth],
|
|
5863
|
+
depth: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.depth) && deps.depth[props4.depth],
|
|
5795
5864
|
theme: (element) => {
|
|
5796
5865
|
const { props: props4, deps } = element;
|
|
5797
5866
|
const globalTheme = deps.getSystemTheme(element);
|
|
@@ -5836,55 +5905,55 @@ var Theme = {
|
|
|
5836
5905
|
backgroundImage: deps.transformBackgroundImage(props4.backgroundImage, globalTheme)
|
|
5837
5906
|
};
|
|
5838
5907
|
},
|
|
5839
|
-
backgroundSize: ({ props: props4 }) => props4.backgroundSize ? {
|
|
5908
|
+
backgroundSize: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.backgroundSize) ? {
|
|
5840
5909
|
backgroundSize: props4.backgroundSize
|
|
5841
5910
|
} : null,
|
|
5842
|
-
backgroundPosition: ({ props: props4 }) => props4.backgroundPosition ? {
|
|
5911
|
+
backgroundPosition: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.backgroundPosition) ? {
|
|
5843
5912
|
backgroundPosition: props4.backgroundPosition
|
|
5844
5913
|
} : null,
|
|
5845
|
-
textStroke: ({ props: props4, deps }) => props4.textStroke ? {
|
|
5914
|
+
textStroke: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textStroke) ? {
|
|
5846
5915
|
WebkitTextStroke: deps.transformTextStroke(props4.textStroke)
|
|
5847
5916
|
} : null,
|
|
5848
|
-
outline: ({ props: props4, deps }) => props4.outline && {
|
|
5917
|
+
outline: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.outline) && {
|
|
5849
5918
|
outline: deps.transformBorder(props4.outline)
|
|
5850
5919
|
},
|
|
5851
|
-
border: ({ props: props4, deps }) => props4.border && {
|
|
5920
|
+
border: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.border) && {
|
|
5852
5921
|
border: deps.transformBorder(props4.border)
|
|
5853
5922
|
},
|
|
5854
|
-
borderColor: ({ props: props4, deps }) => props4.borderColor && {
|
|
5923
|
+
borderColor: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderColor) && {
|
|
5855
5924
|
borderColor: deps.getMediaColor(props4.borderColor)
|
|
5856
5925
|
},
|
|
5857
|
-
borderStyle: ({ props: props4 }) => props4.borderStyle && {
|
|
5926
|
+
borderStyle: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.borderStyle) && {
|
|
5858
5927
|
borderStyle: props4.borderStyle
|
|
5859
5928
|
},
|
|
5860
|
-
borderLeft: ({ props: props4, deps }) => props4.borderLeft && {
|
|
5929
|
+
borderLeft: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderLeft) && {
|
|
5861
5930
|
borderLeft: deps.transformBorder(props4.borderLeft)
|
|
5862
5931
|
},
|
|
5863
|
-
borderTop: ({ props: props4, deps }) => props4.borderTop && {
|
|
5932
|
+
borderTop: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderTop) && {
|
|
5864
5933
|
borderTop: deps.transformBorder(props4.borderTop)
|
|
5865
5934
|
},
|
|
5866
|
-
borderRight: ({ props: props4, deps }) => props4.borderRight && {
|
|
5935
|
+
borderRight: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderRight) && {
|
|
5867
5936
|
borderRight: deps.transformBorder(props4.borderRight)
|
|
5868
5937
|
},
|
|
5869
|
-
borderBottom: ({ props: props4, deps }) => props4.borderBottom && {
|
|
5938
|
+
borderBottom: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderBottom) && {
|
|
5870
5939
|
borderBottom: deps.transformBorder(props4.borderBottom)
|
|
5871
5940
|
},
|
|
5872
|
-
boxShadow: ({ props: props4, deps }) => props4.boxShadow && {
|
|
5941
|
+
boxShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.boxShadow) && {
|
|
5873
5942
|
boxShadow: deps.transformShadow(props4.boxShadow)
|
|
5874
5943
|
},
|
|
5875
|
-
textShadow: ({ props: props4, deps }) => props4.textShadow && {
|
|
5944
|
+
textShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textShadow) && {
|
|
5876
5945
|
textShadow: deps.transformShadow(props4.textShadow)
|
|
5877
5946
|
},
|
|
5878
|
-
opacity: ({ props: props4 }) => props4.opacity && {
|
|
5947
|
+
opacity: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.opacity) && {
|
|
5879
5948
|
opacity: props4.opacity
|
|
5880
5949
|
},
|
|
5881
|
-
visibility: ({ props: props4 }) => props4.visibility && {
|
|
5950
|
+
visibility: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.visibility) && {
|
|
5882
5951
|
visibility: props4.visibility
|
|
5883
5952
|
},
|
|
5884
|
-
columnRule: ({ props: props4, deps }) => props4.columnRule && {
|
|
5953
|
+
columnRule: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.columnRule) && {
|
|
5885
5954
|
columnRule: deps.transformBorder(props4.columnRule)
|
|
5886
5955
|
},
|
|
5887
|
-
appearance: ({ props: props4 }) => props4.appearance && {
|
|
5956
|
+
appearance: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.appearance) && {
|
|
5888
5957
|
appearance: props4.appearance
|
|
5889
5958
|
}
|
|
5890
5959
|
}
|
|
@@ -5928,6 +5997,12 @@ var keySetters = {
|
|
|
5928
5997
|
isSubtree ? result : result && result.case,
|
|
5929
5998
|
element
|
|
5930
5999
|
),
|
|
6000
|
+
"-": (key, props4, result, element, isSubtree) => applyVariableProps(
|
|
6001
|
+
key,
|
|
6002
|
+
props4,
|
|
6003
|
+
isSubtree ? result : result && result.variable,
|
|
6004
|
+
element
|
|
6005
|
+
),
|
|
5931
6006
|
".": (key, props4, result, element, isSubtree) => applyConditionalCaseProps(
|
|
5932
6007
|
key,
|
|
5933
6008
|
props4,
|
|
@@ -5952,8 +6027,8 @@ var execClass = (key, props4, result, element) => {
|
|
|
5952
6027
|
state: element.state,
|
|
5953
6028
|
deps: element.deps
|
|
5954
6029
|
});
|
|
5955
|
-
if ((0,
|
|
5956
|
-
classExec = classExec.reduce((a, c) => (0,
|
|
6030
|
+
if ((0, import_utils2.isArray)(classExec)) {
|
|
6031
|
+
classExec = classExec.reduce((a, c) => (0, import_utils2.merge)(a, c), {});
|
|
5957
6032
|
}
|
|
5958
6033
|
for (const finalProp in classExec) {
|
|
5959
6034
|
result[finalProp] = classExec[finalProp];
|
|
@@ -5986,7 +6061,7 @@ var applyMediaProps = (key, props4, result, element) => {
|
|
|
5986
6061
|
const matchesGlobal = name === globalTheme;
|
|
5987
6062
|
if (globalTheme && isTheme) {
|
|
5988
6063
|
if (matchesGlobal)
|
|
5989
|
-
return (0,
|
|
6064
|
+
return (0, import_utils2.merge)(result, generatedClass);
|
|
5990
6065
|
return;
|
|
5991
6066
|
}
|
|
5992
6067
|
const mediaKey = mediaName ? `@media screen and ${mediaName}` : key;
|
|
@@ -6008,28 +6083,33 @@ var applyCaseProps = (key, props4, result, element) => {
|
|
|
6008
6083
|
const isPropTrue = element.props[caseKey];
|
|
6009
6084
|
if (!CASES[caseKey] && !isPropTrue)
|
|
6010
6085
|
return;
|
|
6011
|
-
return (0,
|
|
6086
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6087
|
+
};
|
|
6088
|
+
var applyVariableProps = (key, props4, result, element) => {
|
|
6089
|
+
result[key] = props4;
|
|
6090
|
+
return result;
|
|
6012
6091
|
};
|
|
6013
6092
|
var applyConditionalCaseProps = (key, props4, result, element) => {
|
|
6014
6093
|
const caseKey = key.slice(1);
|
|
6015
6094
|
const isPropTrue = element.props[caseKey] || element.state[caseKey];
|
|
6016
6095
|
if (!isPropTrue)
|
|
6017
6096
|
return;
|
|
6018
|
-
return (0,
|
|
6097
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6019
6098
|
};
|
|
6020
6099
|
var applyConditionalFalsyProps = (key, props4, result, element) => {
|
|
6021
6100
|
const caseKey = key.slice(1);
|
|
6022
6101
|
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
|
|
6023
6102
|
if (!isPropTrue)
|
|
6024
|
-
return (0,
|
|
6103
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6025
6104
|
};
|
|
6026
|
-
var applyTrueProps = (props4, result, element) => (0,
|
|
6105
|
+
var applyTrueProps = (props4, result, element) => (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6027
6106
|
var beforeClassAssign = (element, s) => {
|
|
6028
6107
|
const { props: props4, class: className, context } = element;
|
|
6029
6108
|
const CLASS_NAMES = {
|
|
6030
6109
|
media: {},
|
|
6031
6110
|
selector: {},
|
|
6032
|
-
case: {}
|
|
6111
|
+
case: {},
|
|
6112
|
+
variable: {}
|
|
6033
6113
|
};
|
|
6034
6114
|
if (!context)
|
|
6035
6115
|
return;
|
|
@@ -6062,7 +6142,7 @@ var beforeClassAssign = (element, s) => {
|
|
|
6062
6142
|
preventDefineUpdate: true
|
|
6063
6143
|
});
|
|
6064
6144
|
}
|
|
6065
|
-
(0,
|
|
6145
|
+
(0, import_utils2.overwriteShallow)(className, CLASS_NAMES);
|
|
6066
6146
|
};
|
|
6067
6147
|
var Media = {
|
|
6068
6148
|
class: {
|
|
@@ -6182,19 +6262,19 @@ var Overflow = {
|
|
|
6182
6262
|
|
|
6183
6263
|
// Atoms/Collection.js
|
|
6184
6264
|
var import_state = __toESM(require_cjs5());
|
|
6185
|
-
var
|
|
6265
|
+
var import_utils3 = __toESM(require_cjs2());
|
|
6186
6266
|
var Collection = {
|
|
6187
6267
|
define: {
|
|
6188
6268
|
$setCollection: (param, el, state) => {
|
|
6189
6269
|
if (!param)
|
|
6190
6270
|
return;
|
|
6191
|
-
if ((0,
|
|
6271
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6192
6272
|
if (param === "state")
|
|
6193
6273
|
param = state.parse();
|
|
6194
6274
|
else
|
|
6195
6275
|
param = (0, import_state.getChildStateInKey)(param, state);
|
|
6196
6276
|
}
|
|
6197
|
-
const data = ((0,
|
|
6277
|
+
const data = ((0, import_utils3.isArray)(param) ? param : (0, import_utils3.isObject)(param) ? Object.values(param) : []).map((item) => !(0, import_utils3.isObjectLike)(item) ? { props: { value: item } } : item);
|
|
6198
6278
|
if (data.length) {
|
|
6199
6279
|
const t = setTimeout(() => {
|
|
6200
6280
|
el.set({ tag: "fragment", ...data }, { preventDefineUpdate: "$setCollection" });
|
|
@@ -6206,7 +6286,7 @@ var Collection = {
|
|
|
6206
6286
|
$setStateCollection: (param, el, state) => {
|
|
6207
6287
|
if (!param)
|
|
6208
6288
|
return;
|
|
6209
|
-
if ((0,
|
|
6289
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6210
6290
|
if (param === "state")
|
|
6211
6291
|
param = state.parse();
|
|
6212
6292
|
else
|
|
@@ -6214,28 +6294,35 @@ var Collection = {
|
|
|
6214
6294
|
}
|
|
6215
6295
|
if ((0, import_state.isState)(param))
|
|
6216
6296
|
param = param.parse();
|
|
6217
|
-
if ((0,
|
|
6297
|
+
if ((0, import_utils3.isNot)(param)("array", "object"))
|
|
6218
6298
|
return;
|
|
6219
6299
|
if (el.key === "cnt") {
|
|
6220
6300
|
if (el.__ref.__stateCollectionCache) {
|
|
6221
|
-
const d = (0,
|
|
6301
|
+
const d = (0, import_utils3.diff)(param, el.__ref.__stateCollectionCache);
|
|
6222
6302
|
} else {
|
|
6223
|
-
el.__ref.__stateCollectionCache = (0,
|
|
6303
|
+
el.__ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
|
|
6224
6304
|
}
|
|
6225
6305
|
}
|
|
6226
|
-
const obj = {
|
|
6306
|
+
const obj = {
|
|
6307
|
+
tag: "fragment",
|
|
6308
|
+
props: {
|
|
6309
|
+
childProps: el.props.childProps
|
|
6310
|
+
}
|
|
6311
|
+
};
|
|
6227
6312
|
for (const key in param) {
|
|
6228
6313
|
const value = param[key];
|
|
6229
|
-
obj[key] = { state: (0,
|
|
6314
|
+
obj[key] = { state: (0, import_utils3.isObjectLike)(value) ? value : { value } };
|
|
6315
|
+
}
|
|
6316
|
+
if (!(0, import_utils3.deepContains)(obj, el.content)) {
|
|
6317
|
+
el.removeContent();
|
|
6318
|
+
el.content = obj;
|
|
6230
6319
|
}
|
|
6231
|
-
el.removeContent();
|
|
6232
|
-
el.content = obj;
|
|
6233
6320
|
return obj;
|
|
6234
6321
|
},
|
|
6235
6322
|
$setPropsCollection: (param, el, state) => {
|
|
6236
6323
|
if (!param)
|
|
6237
6324
|
return;
|
|
6238
|
-
if ((0,
|
|
6325
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6239
6326
|
if (param === "state")
|
|
6240
6327
|
param = state.parse();
|
|
6241
6328
|
else
|
|
@@ -6243,15 +6330,22 @@ var Collection = {
|
|
|
6243
6330
|
}
|
|
6244
6331
|
if ((0, import_state.isState)(param))
|
|
6245
6332
|
param = param.parse();
|
|
6246
|
-
if ((0,
|
|
6333
|
+
if ((0, import_utils3.isNot)(param)("array", "object"))
|
|
6247
6334
|
return;
|
|
6248
|
-
const obj = {
|
|
6335
|
+
const obj = {
|
|
6336
|
+
tag: "fragment",
|
|
6337
|
+
props: {
|
|
6338
|
+
childProps: el.props.childProps
|
|
6339
|
+
}
|
|
6340
|
+
};
|
|
6249
6341
|
for (const key in param) {
|
|
6250
6342
|
const value = param[key];
|
|
6251
|
-
obj[key] = { props: (0,
|
|
6343
|
+
obj[key] = { props: (0, import_utils3.isObjectLike)(value) ? value : { value } };
|
|
6344
|
+
}
|
|
6345
|
+
if (!(0, import_utils3.deepContains)(obj, el.content)) {
|
|
6346
|
+
el.removeContent();
|
|
6347
|
+
el.content = obj;
|
|
6252
6348
|
}
|
|
6253
|
-
el.removeContent();
|
|
6254
|
-
el.content = obj;
|
|
6255
6349
|
return obj;
|
|
6256
6350
|
}
|
|
6257
6351
|
}
|
|
@@ -6314,7 +6408,7 @@ var Pseudo = {
|
|
|
6314
6408
|
|
|
6315
6409
|
// ../../packages/init/index.js
|
|
6316
6410
|
var import_scratch7 = __toESM(require_cjs());
|
|
6317
|
-
var
|
|
6411
|
+
var import_utils5 = __toESM(require_cjs2());
|
|
6318
6412
|
|
|
6319
6413
|
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
|
|
6320
6414
|
function sheetForTag(tag) {
|
|
@@ -7668,9 +7762,9 @@ var dynamic_default = {};
|
|
|
7668
7762
|
// ../../packages/init/index.js
|
|
7669
7763
|
var CONFIG2 = (0, import_scratch7.getActiveConfig)();
|
|
7670
7764
|
var mergeWithLocalFile = (config = CONFIG2, RC_FILE) => {
|
|
7671
|
-
const rcfile = (0,
|
|
7672
|
-
const clonedFile = (0,
|
|
7673
|
-
return (0,
|
|
7765
|
+
const rcfile = (0, import_utils5.isObject)(RC_FILE) ? RC_FILE : dynamic_default || {};
|
|
7766
|
+
const clonedFile = (0, import_utils5.deepClone)(rcfile.designSystem || {});
|
|
7767
|
+
return (0, import_utils5.deepMerge)(config, clonedFile);
|
|
7674
7768
|
};
|
|
7675
7769
|
var SET_OPTIONS = {
|
|
7676
7770
|
emotion,
|
|
@@ -7758,10 +7852,10 @@ var Svg = {
|
|
|
7758
7852
|
};
|
|
7759
7853
|
|
|
7760
7854
|
// Atoms/Shape/index.js
|
|
7761
|
-
var
|
|
7855
|
+
var import_utils6 = __toESM(require_cjs2());
|
|
7762
7856
|
var import_scratch8 = __toESM(require_cjs());
|
|
7763
7857
|
var transformBorderRadius = (radius, props4, propertyName) => {
|
|
7764
|
-
if (!(0,
|
|
7858
|
+
if (!(0, import_utils6.isString)(radius))
|
|
7765
7859
|
return;
|
|
7766
7860
|
return {
|
|
7767
7861
|
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch8.getSpacingBasedOnRatio)(props4, propertyName, v)[propertyName]).join(" ")
|
|
@@ -7769,7 +7863,7 @@ var transformBorderRadius = (radius, props4, propertyName) => {
|
|
|
7769
7863
|
};
|
|
7770
7864
|
var Shape = {
|
|
7771
7865
|
extend: Pseudo,
|
|
7772
|
-
deps: { exec:
|
|
7866
|
+
deps: { exec: import_utils6.exec, getSpacingBasedOnRatio: import_scratch8.getSpacingBasedOnRatio, getMediaColor: import_scratch8.getMediaColor, transformBorderRadius },
|
|
7773
7867
|
class: {
|
|
7774
7868
|
shape: ({ props: props4, deps }) => {
|
|
7775
7869
|
const { shape } = props4;
|
|
@@ -7868,18 +7962,18 @@ var XYZ = {
|
|
|
7868
7962
|
|
|
7869
7963
|
// Atoms/Animation.js
|
|
7870
7964
|
var import_scratch10 = __toESM(require_cjs());
|
|
7871
|
-
var
|
|
7965
|
+
var import_utils7 = __toESM(require_cjs2());
|
|
7872
7966
|
var applyAnimationProps = (animation, element) => {
|
|
7873
7967
|
const { emotion: ctxEmotion } = element.context;
|
|
7874
7968
|
const { keyframes } = ctxEmotion || emotion;
|
|
7875
|
-
if ((0,
|
|
7969
|
+
if ((0, import_utils7.isObject)(animation))
|
|
7876
7970
|
return { animationName: keyframes(animation) };
|
|
7877
7971
|
const { ANIMATION } = element.context && element.context.designSystem;
|
|
7878
7972
|
const record = ANIMATION[animation];
|
|
7879
7973
|
return keyframes(record);
|
|
7880
7974
|
};
|
|
7881
7975
|
var Animation = {
|
|
7882
|
-
deps: { isObject:
|
|
7976
|
+
deps: { isObject: import_utils7.isObject, getTimingByKey: import_scratch10.getTimingByKey, getTimingFunction: import_scratch10.getTimingFunction, applyAnimationProps },
|
|
7883
7977
|
class: {
|
|
7884
7978
|
animation: (el) => el.props.animation && {
|
|
7885
7979
|
animationName: el.deps.applyAnimationProps(el.props.animation, el),
|
|
@@ -7918,7 +8012,7 @@ var Animation = {
|
|
|
7918
8012
|
};
|
|
7919
8013
|
|
|
7920
8014
|
// Box/index.js
|
|
7921
|
-
var
|
|
8015
|
+
var import_utils8 = __toESM(require_cjs2());
|
|
7922
8016
|
var PropsCSS = {
|
|
7923
8017
|
class: {
|
|
7924
8018
|
style: ({ props: props4 }) => props4 && props4.style
|
|
@@ -7940,7 +8034,7 @@ var Box = {
|
|
|
7940
8034
|
XYZ,
|
|
7941
8035
|
Animation
|
|
7942
8036
|
],
|
|
7943
|
-
deps: { isString:
|
|
8037
|
+
deps: { isString: import_utils8.isString },
|
|
7944
8038
|
attr: {
|
|
7945
8039
|
id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
|
|
7946
8040
|
title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
|
|
@@ -7961,13 +8055,15 @@ var Circle = {
|
|
|
7961
8055
|
};
|
|
7962
8056
|
|
|
7963
8057
|
// Icon/index.js
|
|
8058
|
+
var import_utils9 = __toESM(require_cjs2());
|
|
7964
8059
|
var Icon = {
|
|
7965
8060
|
extend: Svg,
|
|
7966
|
-
|
|
8061
|
+
deps: { isString: import_utils9.isString },
|
|
8062
|
+
props: ({ key, props: props4, parent, context, deps }) => {
|
|
7967
8063
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
7968
8064
|
const { toCamelCase } = context && context.utils;
|
|
7969
8065
|
const iconName = props4.inheritedString || props4.name || props4.icon || key;
|
|
7970
|
-
const camelCase = toCamelCase(iconName);
|
|
8066
|
+
const camelCase = toCamelCase(deps.isString(iconName) ? iconName : key);
|
|
7971
8067
|
const isArray3 = camelCase.split(/([a-z])([A-Z])/g);
|
|
7972
8068
|
let activeIconName;
|
|
7973
8069
|
if (props4.active) {
|
|
@@ -8008,14 +8104,9 @@ var IconText = {
|
|
|
8008
8104
|
align: "center center",
|
|
8009
8105
|
lineHeight: 1
|
|
8010
8106
|
},
|
|
8011
|
-
// TODO: remove this variant
|
|
8012
|
-
icon: {
|
|
8013
|
-
extend: Icon,
|
|
8014
|
-
if: ({ parent }) => parent.props.icon
|
|
8015
|
-
},
|
|
8016
8107
|
Icon: {
|
|
8017
|
-
props: {},
|
|
8018
|
-
if: ({ props: props4 }) => props4.name || props4.icon
|
|
8108
|
+
props: ({ parent, props: props4 }) => ({ icon: parent.props.icon || props4.name || props4.icon }),
|
|
8109
|
+
if: ({ parent, props: props4 }) => parent.props.icon || parent.props.Icon || props4.name || props4.icon
|
|
8019
8110
|
},
|
|
8020
8111
|
text: ({ props: props4 }) => props4.text,
|
|
8021
8112
|
".reversed": {
|
|
@@ -8083,13 +8174,16 @@ var CheckIndicatorWithLabel = {
|
|
|
8083
8174
|
|
|
8084
8175
|
// Indicator/CountIndicator.js
|
|
8085
8176
|
var CountIndicator = {
|
|
8177
|
+
extend: Flex,
|
|
8086
8178
|
props: {
|
|
8087
8179
|
text: "2",
|
|
8088
8180
|
theme: "primary",
|
|
8089
8181
|
boxSize: "fit-content",
|
|
8090
8182
|
lineHeight: "1em",
|
|
8091
|
-
padding: "
|
|
8092
|
-
round: "
|
|
8183
|
+
padding: "X1",
|
|
8184
|
+
round: "100%",
|
|
8185
|
+
align: "center center",
|
|
8186
|
+
aspectRatio: "1 / 1",
|
|
8093
8187
|
color: "white"
|
|
8094
8188
|
}
|
|
8095
8189
|
};
|
|
@@ -8174,7 +8268,7 @@ var TitleParagraphWithButton = {
|
|
|
8174
8268
|
background: "transparent",
|
|
8175
8269
|
color: "white",
|
|
8176
8270
|
padding: "0",
|
|
8177
|
-
|
|
8271
|
+
Icon: {
|
|
8178
8272
|
name: "x",
|
|
8179
8273
|
fontSize: "C"
|
|
8180
8274
|
}
|
|
@@ -8299,15 +8393,14 @@ var RouterLink = {
|
|
|
8299
8393
|
const { href } = props4;
|
|
8300
8394
|
if (!href)
|
|
8301
8395
|
return;
|
|
8302
|
-
const { utils, routerOptions } = ctx;
|
|
8303
|
-
const { router } = utils;
|
|
8396
|
+
const { utils, snippets, routerOptions } = ctx;
|
|
8304
8397
|
const root = el.__ref.__root;
|
|
8305
8398
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
8306
8399
|
const options = props4.routerOptions || routerOptions || {
|
|
8307
8400
|
scrollToOptions: { behaviour: "instant" }
|
|
8308
8401
|
};
|
|
8309
8402
|
if (href && !linkIsExternal) {
|
|
8310
|
-
(router || import_router.router)(href, root, {}, options);
|
|
8403
|
+
(snippets.router || utils.router || import_router.router)(href, root, {}, options);
|
|
8311
8404
|
event.preventDefault();
|
|
8312
8405
|
}
|
|
8313
8406
|
}
|
|
@@ -8366,11 +8459,11 @@ var DoubleHr = {
|
|
|
8366
8459
|
};
|
|
8367
8460
|
|
|
8368
8461
|
// Input/Input.js
|
|
8369
|
-
var
|
|
8462
|
+
var import_utils10 = __toESM(require_cjs2());
|
|
8370
8463
|
var Input = {
|
|
8371
8464
|
tag: "input",
|
|
8372
8465
|
extend: [Focusable],
|
|
8373
|
-
deps: { isString:
|
|
8466
|
+
deps: { isString: import_utils10.isString, replaceLiteralsWithObjectFields: import_utils10.replaceLiteralsWithObjectFields },
|
|
8374
8467
|
props: {
|
|
8375
8468
|
border: "none",
|
|
8376
8469
|
type: "input",
|
|
@@ -8389,8 +8482,8 @@ var Input = {
|
|
|
8389
8482
|
autocomplete: ({ props: props4 }) => props4.autocomplete,
|
|
8390
8483
|
placeholder: ({ props: props4 }) => props4.placeholder,
|
|
8391
8484
|
value: ({ props: props4, state, deps }) => {
|
|
8392
|
-
const { isString:
|
|
8393
|
-
if (
|
|
8485
|
+
const { isString: isString6, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
|
|
8486
|
+
if (isString6(props4.value) && props4.value.includes("{{")) {
|
|
8394
8487
|
return replaceLiteralsWithObjectFields2(props4.value, state);
|
|
8395
8488
|
}
|
|
8396
8489
|
return props4.value;
|
|
@@ -8424,11 +8517,11 @@ var Checkbox = {
|
|
|
8424
8517
|
Input: {
|
|
8425
8518
|
type: "checkbox",
|
|
8426
8519
|
display: "none",
|
|
8427
|
-
":checked
|
|
8520
|
+
":checked + div": {
|
|
8428
8521
|
background: "#0474F2",
|
|
8429
8522
|
border: "1px solid transparent"
|
|
8430
8523
|
},
|
|
8431
|
-
":checked
|
|
8524
|
+
":checked + div > svg": { opacity: "1" }
|
|
8432
8525
|
},
|
|
8433
8526
|
Flex: {
|
|
8434
8527
|
props: {
|
|
@@ -8450,12 +8543,13 @@ var Checkbox = {
|
|
|
8450
8543
|
};
|
|
8451
8544
|
var CheckboxTitleParagraph = {
|
|
8452
8545
|
extend: Flex,
|
|
8546
|
+
tag: "label",
|
|
8453
8547
|
props: {
|
|
8454
8548
|
boxSize: "fit-content",
|
|
8455
8549
|
align: "flex-start flex-start",
|
|
8456
8550
|
gap: "A"
|
|
8457
8551
|
},
|
|
8458
|
-
Checkbox: {},
|
|
8552
|
+
Checkbox: { tag: "div" },
|
|
8459
8553
|
TitleParagraph: {
|
|
8460
8554
|
gap: "Z1",
|
|
8461
8555
|
margin: "Y - - -"
|
|
@@ -8467,7 +8561,7 @@ var Radio = {
|
|
|
8467
8561
|
extend: Checkbox,
|
|
8468
8562
|
Input: {
|
|
8469
8563
|
type: "radio",
|
|
8470
|
-
":checked
|
|
8564
|
+
":checked + div:after": { opacity: "1" }
|
|
8471
8565
|
},
|
|
8472
8566
|
Flex: {
|
|
8473
8567
|
props: {
|
|
@@ -8496,7 +8590,7 @@ var RadioTitleParagraph = {
|
|
|
8496
8590
|
var Toggle = {
|
|
8497
8591
|
extend: Checkbox,
|
|
8498
8592
|
Input: {
|
|
8499
|
-
":checked
|
|
8593
|
+
":checked + div": {
|
|
8500
8594
|
background: "green2 +8",
|
|
8501
8595
|
justifyContent: "flex-end"
|
|
8502
8596
|
}
|
|
@@ -8532,7 +8626,17 @@ var Textarea = {
|
|
|
8532
8626
|
tag: "textarea",
|
|
8533
8627
|
extend: [Input, Flex],
|
|
8534
8628
|
props: {
|
|
8535
|
-
variant: "outlined"
|
|
8629
|
+
variant: "outlined",
|
|
8630
|
+
round: "Z2",
|
|
8631
|
+
maxWidth: "H",
|
|
8632
|
+
minHeight: "E",
|
|
8633
|
+
placeholder: "Leave us a message...",
|
|
8634
|
+
fontSize: "Z1",
|
|
8635
|
+
padding: "A",
|
|
8636
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8637
|
+
border: "1px solid #3F3F43",
|
|
8638
|
+
color: "white",
|
|
8639
|
+
style: { resize: "none" }
|
|
8536
8640
|
},
|
|
8537
8641
|
".simple": {
|
|
8538
8642
|
props: {
|
|
@@ -8547,12 +8651,11 @@ var Textarea = {
|
|
|
8547
8651
|
props: {
|
|
8548
8652
|
border: "1px solid #3F3F43",
|
|
8549
8653
|
background: "transparent",
|
|
8550
|
-
round:
|
|
8654
|
+
// round: 'Y+W',
|
|
8551
8655
|
width: "G1",
|
|
8552
8656
|
height: "D2+W",
|
|
8553
8657
|
lineHeight: 1.4,
|
|
8554
8658
|
placeholder: "Leave us a message...",
|
|
8555
|
-
fontSize: "Y2",
|
|
8556
8659
|
outline: "none !important",
|
|
8557
8660
|
color: "white",
|
|
8558
8661
|
resize: "none"
|
|
@@ -8581,18 +8684,18 @@ var TextareaWithButton = {
|
|
|
8581
8684
|
extend: Flex,
|
|
8582
8685
|
props: { gap: "Y2" },
|
|
8583
8686
|
Textarea: {
|
|
8584
|
-
height: "
|
|
8687
|
+
height: "C2+W",
|
|
8688
|
+
minWidth: "H",
|
|
8585
8689
|
padding: "A",
|
|
8586
8690
|
fontSize: "Z1",
|
|
8587
8691
|
color: "white",
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
// background: 'gray'
|
|
8692
|
+
round: "Z2",
|
|
8693
|
+
minHeight: "dit-content"
|
|
8591
8694
|
},
|
|
8592
8695
|
IconCommonButton: {
|
|
8593
8696
|
props: {
|
|
8594
8697
|
background: "blue",
|
|
8595
|
-
|
|
8698
|
+
Icon: { name: "send" }
|
|
8596
8699
|
}
|
|
8597
8700
|
}
|
|
8598
8701
|
};
|
|
@@ -8628,7 +8731,8 @@ var Select = {
|
|
|
8628
8731
|
|
|
8629
8732
|
// Field/Field.js
|
|
8630
8733
|
var Field = {
|
|
8631
|
-
|
|
8734
|
+
tag: "label",
|
|
8735
|
+
extend: [Focusable, IconText],
|
|
8632
8736
|
props: {
|
|
8633
8737
|
minWidth: "G",
|
|
8634
8738
|
maxWidth: "G",
|
|
@@ -8639,8 +8743,8 @@ var Field = {
|
|
|
8639
8743
|
padding: "- Z+W",
|
|
8640
8744
|
round: "Y+W",
|
|
8641
8745
|
border: "1px solid #3F3F43",
|
|
8642
|
-
overflow: "hidden",
|
|
8643
8746
|
position: "relative",
|
|
8747
|
+
":focus-within": { outline: "1px solid #0474F2" },
|
|
8644
8748
|
Button: {
|
|
8645
8749
|
padding: "0",
|
|
8646
8750
|
background: "transparent",
|
|
@@ -8649,53 +8753,57 @@ var Field = {
|
|
|
8649
8753
|
}
|
|
8650
8754
|
},
|
|
8651
8755
|
Input: {
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8756
|
+
props: {
|
|
8757
|
+
padding: "0",
|
|
8758
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8759
|
+
round: "0",
|
|
8760
|
+
color: "white",
|
|
8761
|
+
fontFamily: "avenir",
|
|
8762
|
+
placeholder: "Placeholder",
|
|
8763
|
+
flex: "1",
|
|
8764
|
+
minHeight: "100%",
|
|
8765
|
+
outline: "none !important",
|
|
8766
|
+
fontWeight: "400"
|
|
8767
|
+
}
|
|
8662
8768
|
}
|
|
8663
8769
|
};
|
|
8664
8770
|
var FieldTemplate = {
|
|
8665
8771
|
extend: Field,
|
|
8666
8772
|
Icon: { props: { name: "info" } },
|
|
8667
8773
|
Input: {},
|
|
8668
|
-
Button: {
|
|
8774
|
+
Button: { Icon: { name: "eye" } }
|
|
8669
8775
|
};
|
|
8670
8776
|
|
|
8671
8777
|
// Field/CommonField.js
|
|
8672
8778
|
var CommonField = {
|
|
8673
8779
|
extend: Flex,
|
|
8780
|
+
tag: "label",
|
|
8674
8781
|
props: {
|
|
8675
8782
|
flow: "column",
|
|
8676
8783
|
boxSize: "fit-content fit-content",
|
|
8677
|
-
gap: "
|
|
8678
|
-
Hint: {
|
|
8679
|
-
align: "center flex-start",
|
|
8680
|
-
text: "",
|
|
8681
|
-
fontSize: "Y",
|
|
8682
|
-
gap: "Y",
|
|
8683
|
-
padding: "- - - Z"
|
|
8684
|
-
}
|
|
8784
|
+
gap: "Z"
|
|
8685
8785
|
},
|
|
8686
8786
|
Title: {
|
|
8687
8787
|
props: {
|
|
8688
8788
|
text: "Label",
|
|
8689
|
-
fontSize: "Z",
|
|
8690
8789
|
lineHeight: "1em",
|
|
8691
|
-
padding: "- - -
|
|
8790
|
+
padding: "- - - V2",
|
|
8692
8791
|
color: "gray4"
|
|
8693
8792
|
}
|
|
8694
8793
|
},
|
|
8695
|
-
Field: {
|
|
8794
|
+
Field: {
|
|
8795
|
+
tag: "div"
|
|
8796
|
+
},
|
|
8696
8797
|
Hint: {
|
|
8697
8798
|
extend: IconText,
|
|
8698
|
-
props: {
|
|
8799
|
+
props: {
|
|
8800
|
+
color: "gray4",
|
|
8801
|
+
align: "center flex-start",
|
|
8802
|
+
text: "",
|
|
8803
|
+
fontSize: "Z1",
|
|
8804
|
+
gap: "Y",
|
|
8805
|
+
padding: "W - - W"
|
|
8806
|
+
}
|
|
8699
8807
|
}
|
|
8700
8808
|
};
|
|
8701
8809
|
var CommonFieldTemplate = {
|
|
@@ -8723,15 +8831,20 @@ var NumberField = {
|
|
|
8723
8831
|
},
|
|
8724
8832
|
Input: null,
|
|
8725
8833
|
NumberInput: {
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8834
|
+
props: {
|
|
8835
|
+
fontSize: "E",
|
|
8836
|
+
placeholder: "0",
|
|
8837
|
+
boxSize: "100% 100%",
|
|
8838
|
+
textAlign: "center",
|
|
8839
|
+
round: "Y",
|
|
8840
|
+
color: "white",
|
|
8841
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8842
|
+
outline: "none !important",
|
|
8843
|
+
style: {
|
|
8844
|
+
"&::-webkit-inner-spin-button": {
|
|
8845
|
+
"-webkit-appearance": "none"
|
|
8846
|
+
}
|
|
8847
|
+
}
|
|
8735
8848
|
}
|
|
8736
8849
|
}
|
|
8737
8850
|
};
|
|
@@ -8740,41 +8853,52 @@ var NumberField = {
|
|
|
8740
8853
|
var Search = {
|
|
8741
8854
|
extend: Field,
|
|
8742
8855
|
props: {
|
|
8743
|
-
minHeight: "C+A",
|
|
8744
8856
|
maxWidth: "H",
|
|
8745
|
-
gap: "
|
|
8746
|
-
padding: "
|
|
8857
|
+
gap: "Y2",
|
|
8858
|
+
padding: "Z2 A1",
|
|
8747
8859
|
background: "gray .92 +8"
|
|
8748
8860
|
},
|
|
8749
8861
|
Icon: {
|
|
8750
8862
|
props: {
|
|
8863
|
+
opacity: ".65",
|
|
8751
8864
|
name: "search",
|
|
8752
|
-
fontSize: "
|
|
8865
|
+
fontSize: "B",
|
|
8753
8866
|
margin: "0 - - -"
|
|
8754
8867
|
}
|
|
8755
8868
|
},
|
|
8756
|
-
Input: {
|
|
8869
|
+
Input: {
|
|
8870
|
+
props: { placeholder: "Type a command or search" }
|
|
8871
|
+
}
|
|
8757
8872
|
};
|
|
8758
8873
|
var SearchWithButton = {
|
|
8759
8874
|
extend: Search,
|
|
8760
8875
|
Icon: {},
|
|
8761
|
-
Input: { ":focus ~ button": { opacity: "1" } },
|
|
8876
|
+
Input: { props: { ":focus ~ button": { opacity: "1" } } },
|
|
8762
8877
|
Button: {
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8878
|
+
props: {
|
|
8879
|
+
opacity: "0",
|
|
8880
|
+
fontSize: "D",
|
|
8881
|
+
icon: "x"
|
|
8882
|
+
},
|
|
8883
|
+
Icon: {
|
|
8884
|
+
on: {
|
|
8885
|
+
click: (e, el) => {
|
|
8886
|
+
el.parent.parent.Input.node.value = "";
|
|
8887
|
+
}
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8766
8890
|
}
|
|
8767
8891
|
};
|
|
8768
8892
|
var SearchWithDropDownButton = {
|
|
8769
8893
|
extend: SearchWithButton,
|
|
8770
8894
|
props: {
|
|
8771
8895
|
padding: "- A - 0",
|
|
8772
|
-
|
|
8896
|
+
theme: "tertiary",
|
|
8773
8897
|
maxWidth: "H+C"
|
|
8774
8898
|
},
|
|
8775
8899
|
DropDownButton: {
|
|
8776
8900
|
background: "gray",
|
|
8777
|
-
margin: "-
|
|
8901
|
+
margin: "- Z - -"
|
|
8778
8902
|
},
|
|
8779
8903
|
Icon: {},
|
|
8780
8904
|
Input: {},
|
|
@@ -8825,15 +8949,14 @@ var KangorooButton = {
|
|
|
8825
8949
|
var CommonButton = {
|
|
8826
8950
|
extend: Button,
|
|
8827
8951
|
props: {
|
|
8828
|
-
|
|
8829
|
-
background: "blue",
|
|
8952
|
+
theme: "primary",
|
|
8830
8953
|
boxSize: "fit-content",
|
|
8831
8954
|
padding: "A A2",
|
|
8832
8955
|
round: "Z2",
|
|
8833
8956
|
gap: "Y2",
|
|
8834
8957
|
position: "relative"
|
|
8835
8958
|
},
|
|
8836
|
-
|
|
8959
|
+
Icon: {
|
|
8837
8960
|
props: { fontSize: "C" }
|
|
8838
8961
|
},
|
|
8839
8962
|
Caption: {
|
|
@@ -8846,7 +8969,7 @@ var CommonButton = {
|
|
|
8846
8969
|
var IconCommonButton = {
|
|
8847
8970
|
extend: CommonButton,
|
|
8848
8971
|
props: {
|
|
8849
|
-
|
|
8972
|
+
Icon: { name: "smile" },
|
|
8850
8973
|
boxSize: "fit-content fit-content",
|
|
8851
8974
|
padding: "A",
|
|
8852
8975
|
background: "gray3"
|
|
@@ -8883,26 +9006,26 @@ var CancelConfirmButtons = {
|
|
|
8883
9006
|
var IcontextButton = {
|
|
8884
9007
|
extend: CommonButton,
|
|
8885
9008
|
props: {
|
|
8886
|
-
padding: "A",
|
|
9009
|
+
padding: "A A1",
|
|
8887
9010
|
position: "relative",
|
|
8888
9011
|
background: "gray3",
|
|
8889
|
-
|
|
9012
|
+
Icon: { name: "smile" }
|
|
8890
9013
|
}
|
|
8891
9014
|
};
|
|
8892
9015
|
var DropDownButton = {
|
|
8893
9016
|
extend: CommonButton,
|
|
8894
9017
|
props: {
|
|
8895
|
-
gap: "
|
|
9018
|
+
gap: "X2",
|
|
8896
9019
|
boxSize: "fit-content fit-content",
|
|
8897
|
-
padding: "
|
|
9020
|
+
padding: "Z2 B Z2 A",
|
|
8898
9021
|
round: "Z",
|
|
8899
9022
|
background: "#141416",
|
|
8900
9023
|
color: "white",
|
|
8901
|
-
|
|
9024
|
+
Icon: {
|
|
8902
9025
|
name: "chevronDown",
|
|
8903
9026
|
fontSize: "D"
|
|
8904
9027
|
},
|
|
8905
|
-
Caption: { text: "
|
|
9028
|
+
Caption: { text: "All" }
|
|
8906
9029
|
}
|
|
8907
9030
|
};
|
|
8908
9031
|
var DropDownButtonWithAvatar = {
|
|
@@ -8931,12 +9054,12 @@ var PlusMinusButtons = {
|
|
|
8931
9054
|
},
|
|
8932
9055
|
Minus: {
|
|
8933
9056
|
extend: IconCommonButton,
|
|
8934
|
-
props: {
|
|
9057
|
+
props: { Icon: { name: "minus" } }
|
|
8935
9058
|
},
|
|
8936
9059
|
Value: { props: { text: "1" } },
|
|
8937
9060
|
Plus: {
|
|
8938
9061
|
extend: IconCommonButton,
|
|
8939
|
-
props: {
|
|
9062
|
+
props: { Icon: { name: "plus" } }
|
|
8940
9063
|
}
|
|
8941
9064
|
};
|
|
8942
9065
|
|
|
@@ -9052,7 +9175,7 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
9052
9175
|
};
|
|
9053
9176
|
|
|
9054
9177
|
// Range/index.js
|
|
9055
|
-
var
|
|
9178
|
+
var import_utils11 = __toESM(require_cjs2());
|
|
9056
9179
|
var import_scratch11 = __toESM(require_cjs());
|
|
9057
9180
|
var props = {
|
|
9058
9181
|
appearance: "none",
|
|
@@ -9120,7 +9243,7 @@ var Range = {
|
|
|
9120
9243
|
};
|
|
9121
9244
|
var listenProp = (el, prop, def) => {
|
|
9122
9245
|
const val = el.props && el.props[prop];
|
|
9123
|
-
const r = (0,
|
|
9246
|
+
const r = (0, import_utils11.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
|
|
9124
9247
|
return r + "";
|
|
9125
9248
|
};
|
|
9126
9249
|
var RangeWithButtons = {
|
|
@@ -9129,7 +9252,7 @@ var RangeWithButtons = {
|
|
|
9129
9252
|
props: { theme: "tertiary", icon: "minus" },
|
|
9130
9253
|
on: {
|
|
9131
9254
|
click: (ev, el, s) => {
|
|
9132
|
-
el.props && (0,
|
|
9255
|
+
el.props && (0, import_utils11.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
|
|
9133
9256
|
}
|
|
9134
9257
|
}
|
|
9135
9258
|
},
|
|
@@ -9150,8 +9273,8 @@ var RangeWithButtons = {
|
|
|
9150
9273
|
step: (el, s) => listenProp(el, "step", 1)
|
|
9151
9274
|
},
|
|
9152
9275
|
on: {
|
|
9153
|
-
input: (ev, el, s) => el.props && (0,
|
|
9154
|
-
change: (ev, el, s) => el.props && (0,
|
|
9276
|
+
input: (ev, el, s) => el.props && (0, import_utils11.isFunction)(el.props.onInput) && el.props.onInput(ev, el, el.state),
|
|
9277
|
+
change: (ev, el, s) => el.props && (0, import_utils11.isFunction)(el.props.onChange) && el.props.onChange(ev, el, el.state)
|
|
9155
9278
|
}
|
|
9156
9279
|
},
|
|
9157
9280
|
plus: {
|
|
@@ -9159,7 +9282,7 @@ var RangeWithButtons = {
|
|
|
9159
9282
|
props: { theme: "tertiary", icon: "plus" },
|
|
9160
9283
|
on: {
|
|
9161
9284
|
click: (ev, el, s) => {
|
|
9162
|
-
el.props && (0,
|
|
9285
|
+
el.props && (0, import_utils11.isFunction)(el.props.onClick) && el.props.onClick(ev, el, el.state);
|
|
9163
9286
|
}
|
|
9164
9287
|
}
|
|
9165
9288
|
}
|
|
@@ -9186,7 +9309,7 @@ var style_default = {
|
|
|
9186
9309
|
|
|
9187
9310
|
// Slider/index.js
|
|
9188
9311
|
var import_scratch12 = __toESM(require_cjs());
|
|
9189
|
-
var
|
|
9312
|
+
var import_utils12 = __toESM(require_cjs2());
|
|
9190
9313
|
(0, import_scratch12.set)({
|
|
9191
9314
|
theme: {
|
|
9192
9315
|
sliderThumb: {
|
|
@@ -9218,7 +9341,7 @@ var RangeSlider = {
|
|
|
9218
9341
|
};
|
|
9219
9342
|
var listenProp2 = (el, prop, def) => {
|
|
9220
9343
|
const val = el && el.props && el.props[prop];
|
|
9221
|
-
const r = ((0,
|
|
9344
|
+
const r = ((0, import_utils12.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
9222
9345
|
return r;
|
|
9223
9346
|
};
|
|
9224
9347
|
var Slider = {
|
|
@@ -9229,10 +9352,10 @@ var Slider = {
|
|
|
9229
9352
|
},
|
|
9230
9353
|
on: {
|
|
9231
9354
|
click: (ev, el, s) => {
|
|
9232
|
-
el.props && (0,
|
|
9355
|
+
el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
9233
9356
|
const input = el.parent.input;
|
|
9234
9357
|
const props4 = input.props;
|
|
9235
|
-
const value = (0,
|
|
9358
|
+
const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
9236
9359
|
input.node.value = value;
|
|
9237
9360
|
}
|
|
9238
9361
|
}
|
|
@@ -9255,8 +9378,8 @@ var Slider = {
|
|
|
9255
9378
|
step: (el, s) => listenProp2(el, "step", 1)
|
|
9256
9379
|
},
|
|
9257
9380
|
on: {
|
|
9258
|
-
input: (ev, el, s) => el.props && (0,
|
|
9259
|
-
change: (ev, el, s) => el.props && (0,
|
|
9381
|
+
input: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
9382
|
+
change: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
9260
9383
|
}
|
|
9261
9384
|
},
|
|
9262
9385
|
button1: {
|
|
@@ -9266,10 +9389,10 @@ var Slider = {
|
|
|
9266
9389
|
},
|
|
9267
9390
|
on: {
|
|
9268
9391
|
click: (ev, el, s) => {
|
|
9269
|
-
el.props && (0,
|
|
9392
|
+
el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
9270
9393
|
const input = el.parent.input;
|
|
9271
9394
|
const props4 = input.props;
|
|
9272
|
-
const value = (0,
|
|
9395
|
+
const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
9273
9396
|
input.node.value = value;
|
|
9274
9397
|
}
|
|
9275
9398
|
}
|
|
@@ -9324,8 +9447,7 @@ var Avatar = {
|
|
|
9324
9447
|
avatarType: "initials",
|
|
9325
9448
|
borderRadius: "100%",
|
|
9326
9449
|
boxSize: "C+X C+X",
|
|
9327
|
-
|
|
9328
|
-
src: `https://api.dicebear.com/7.x/${props4.avatarType || "adventurer-neutral"}/svg?seed=${props4.key || key}`
|
|
9450
|
+
src: `https://api.dicebear.com/7.x/${props4.avatarType || "initials"}/svg?seed=${props4.key || key}`
|
|
9329
9451
|
})
|
|
9330
9452
|
};
|
|
9331
9453
|
|
|
@@ -9347,16 +9469,20 @@ var AvatarIndicator = {
|
|
|
9347
9469
|
// Avatar/AvatarBundle.js
|
|
9348
9470
|
var AvatarBundle = {
|
|
9349
9471
|
extend: Flex,
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9472
|
+
props: {
|
|
9473
|
+
childProps: {
|
|
9474
|
+
"@light": {
|
|
9475
|
+
border: "X, var(--theme-document-light-background), solid"
|
|
9476
|
+
},
|
|
9477
|
+
"@dark": {
|
|
9478
|
+
border: "X, var(--theme-document-dark-background), solid"
|
|
9479
|
+
},
|
|
9354
9480
|
":not(:last-child)": {
|
|
9355
9481
|
margin: "0 -Y2 0 0"
|
|
9356
9482
|
}
|
|
9357
9483
|
}
|
|
9358
9484
|
},
|
|
9359
|
-
|
|
9485
|
+
childExtend: Avatar
|
|
9360
9486
|
};
|
|
9361
9487
|
|
|
9362
9488
|
// Avatar/AvatarChooser.js
|
|
@@ -9365,6 +9491,7 @@ var AvatarChooser = {
|
|
|
9365
9491
|
tag: "label",
|
|
9366
9492
|
props: {
|
|
9367
9493
|
round: "C",
|
|
9494
|
+
width: "fit-content",
|
|
9368
9495
|
gap: "Y",
|
|
9369
9496
|
padding: "W2 A W2 W2",
|
|
9370
9497
|
theme: "tertiary",
|
|
@@ -9381,7 +9508,7 @@ var AvatarChooser = {
|
|
|
9381
9508
|
Select: {
|
|
9382
9509
|
props: {
|
|
9383
9510
|
outline: "none",
|
|
9384
|
-
pointerEvents: "
|
|
9511
|
+
pointerEvents: "All",
|
|
9385
9512
|
appearance: "none",
|
|
9386
9513
|
border: "none",
|
|
9387
9514
|
width: "100%",
|
|
@@ -9412,6 +9539,9 @@ var AvatarChooser = {
|
|
|
9412
9539
|
console.log(state.key);
|
|
9413
9540
|
}
|
|
9414
9541
|
}
|
|
9542
|
+
},
|
|
9543
|
+
Icon: {
|
|
9544
|
+
name: "arrowDown"
|
|
9415
9545
|
}
|
|
9416
9546
|
};
|
|
9417
9547
|
|
|
@@ -9602,17 +9732,17 @@ var Tab = {
|
|
|
9602
9732
|
extend: IcontextButton,
|
|
9603
9733
|
props: {
|
|
9604
9734
|
boxSize: "fit-content fit-content",
|
|
9605
|
-
|
|
9735
|
+
theme: "secondary",
|
|
9606
9736
|
align: "center flex-start",
|
|
9607
|
-
padding: "Z Z2",
|
|
9608
9737
|
gap: "Z",
|
|
9609
9738
|
position: "relative"
|
|
9610
9739
|
},
|
|
9611
|
-
|
|
9740
|
+
Icon: {},
|
|
9612
9741
|
Caption: {},
|
|
9613
9742
|
CountIndicator: {
|
|
9614
|
-
|
|
9615
|
-
|
|
9743
|
+
fontSize: "Y2",
|
|
9744
|
+
margin: "- -X - X",
|
|
9745
|
+
text: "19"
|
|
9616
9746
|
}
|
|
9617
9747
|
};
|
|
9618
9748
|
var IconTab = {
|
|
@@ -9621,11 +9751,11 @@ var IconTab = {
|
|
|
9621
9751
|
Span: null,
|
|
9622
9752
|
CountIndicator: {
|
|
9623
9753
|
position: "absolute",
|
|
9624
|
-
top: "-
|
|
9625
|
-
right: "-
|
|
9754
|
+
top: "-Y1",
|
|
9755
|
+
right: "-Y1",
|
|
9626
9756
|
fontSize: "Y",
|
|
9627
9757
|
fontWeight: "500",
|
|
9628
|
-
padding: "
|
|
9758
|
+
padding: "X1",
|
|
9629
9759
|
text: "19"
|
|
9630
9760
|
}
|
|
9631
9761
|
};
|
|
@@ -9774,7 +9904,7 @@ var LineStepsWithTitleParagraph = {
|
|
|
9774
9904
|
extend: Flex,
|
|
9775
9905
|
props: {
|
|
9776
9906
|
flow: "column",
|
|
9777
|
-
padding: "B",
|
|
9907
|
+
padding: "A1 B B",
|
|
9778
9908
|
background: "gray",
|
|
9779
9909
|
round: "A",
|
|
9780
9910
|
boxSize: "fit-content",
|
|
@@ -9812,7 +9942,7 @@ var ParagraphButton = {
|
|
|
9812
9942
|
},
|
|
9813
9943
|
P: {
|
|
9814
9944
|
props: {
|
|
9815
|
-
text: "Didn
|
|
9945
|
+
text: "Didn't get the code?",
|
|
9816
9946
|
color: "gray2",
|
|
9817
9947
|
margin: "0"
|
|
9818
9948
|
}
|
|
@@ -9827,14 +9957,18 @@ var ParagraphButton = {
|
|
|
9827
9957
|
};
|
|
9828
9958
|
var ParagraphButtonWithCheckbox = {
|
|
9829
9959
|
extend: Flex,
|
|
9960
|
+
tag: "label",
|
|
9830
9961
|
props: {
|
|
9831
|
-
gap: "
|
|
9962
|
+
gap: "1ch",
|
|
9832
9963
|
alignItems: "center"
|
|
9833
9964
|
},
|
|
9834
9965
|
Checkbox: {
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9966
|
+
tag: "div",
|
|
9967
|
+
props: {
|
|
9968
|
+
Input: {},
|
|
9969
|
+
Flex: {
|
|
9970
|
+
fontSize: "A1"
|
|
9971
|
+
}
|
|
9838
9972
|
}
|
|
9839
9973
|
},
|
|
9840
9974
|
ParagraphButton: {
|
|
@@ -9855,7 +9989,7 @@ var SocialLink = {
|
|
|
9855
9989
|
round: "Y+W",
|
|
9856
9990
|
maxHeight: `${48 / 16}em`,
|
|
9857
9991
|
cursor: "pointer",
|
|
9858
|
-
|
|
9992
|
+
Icon: {
|
|
9859
9993
|
name: "twitch",
|
|
9860
9994
|
boxSize: "A2"
|
|
9861
9995
|
},
|
|
@@ -9865,11 +9999,10 @@ var SocialLink = {
|
|
|
9865
9999
|
|
|
9866
10000
|
// Dialog/index.js
|
|
9867
10001
|
var Dialog = {
|
|
10002
|
+
extend: Flex,
|
|
9868
10003
|
props: {
|
|
9869
|
-
theme: "
|
|
10004
|
+
theme: "dialog",
|
|
9870
10005
|
round: "Z2",
|
|
9871
|
-
margin: "E",
|
|
9872
|
-
overflow: "hidden",
|
|
9873
10006
|
padding: "- Z - -"
|
|
9874
10007
|
}
|
|
9875
10008
|
};
|
|
@@ -9914,13 +10047,12 @@ var DialogFooter = {
|
|
|
9914
10047
|
|
|
9915
10048
|
// Modal/Modal.js
|
|
9916
10049
|
var Modal = {
|
|
9917
|
-
extend:
|
|
10050
|
+
extend: Dialog,
|
|
9918
10051
|
props: {
|
|
9919
10052
|
flow: "column",
|
|
9920
|
-
background: "gray",
|
|
9921
10053
|
boxSize: "fit-content fit-content",
|
|
9922
|
-
round: "Z+X",
|
|
9923
10054
|
padding: "A",
|
|
10055
|
+
gap: "B1",
|
|
9924
10056
|
minWidth: "G3+Z1"
|
|
9925
10057
|
},
|
|
9926
10058
|
Header: {
|
|
@@ -9938,7 +10070,7 @@ var Modal = {
|
|
|
9938
10070
|
p: { props: { color: "white" } }
|
|
9939
10071
|
}
|
|
9940
10072
|
},
|
|
9941
|
-
Content: { extend:
|
|
10073
|
+
Content: { extend: Flex },
|
|
9942
10074
|
Footer: { extend: Flex }
|
|
9943
10075
|
};
|
|
9944
10076
|
|
|
@@ -10026,20 +10158,20 @@ var Message = {
|
|
|
10026
10158
|
};
|
|
10027
10159
|
|
|
10028
10160
|
// Modal/Pricing.js
|
|
10029
|
-
var
|
|
10161
|
+
var Pricing = {
|
|
10030
10162
|
extend: Modal,
|
|
10031
10163
|
props: {
|
|
10032
10164
|
background: "gray3",
|
|
10033
|
-
gap: "
|
|
10165
|
+
gap: "B",
|
|
10034
10166
|
minWidth: "G+B",
|
|
10035
10167
|
maxWidth: "G+B",
|
|
10036
|
-
padding: "
|
|
10168
|
+
padding: "A1"
|
|
10037
10169
|
},
|
|
10038
10170
|
Header: null,
|
|
10039
10171
|
Content: {
|
|
10040
10172
|
props: {
|
|
10041
10173
|
flow: "column",
|
|
10042
|
-
gap: "
|
|
10174
|
+
gap: "A1"
|
|
10043
10175
|
},
|
|
10044
10176
|
childExtend: {
|
|
10045
10177
|
extend: UnitValue,
|
|
@@ -10065,11 +10197,15 @@ var Pracing = {
|
|
|
10065
10197
|
]
|
|
10066
10198
|
},
|
|
10067
10199
|
Footer: {
|
|
10200
|
+
props: {
|
|
10201
|
+
margin: "- -X -X"
|
|
10202
|
+
},
|
|
10068
10203
|
CommonButton: {
|
|
10069
10204
|
flex: "1",
|
|
10070
10205
|
padding: "Z2 -",
|
|
10071
10206
|
round: "Y2",
|
|
10072
|
-
|
|
10207
|
+
theme: "secondary",
|
|
10208
|
+
margin: "- -X -X",
|
|
10073
10209
|
Caption: {
|
|
10074
10210
|
text: "Add promo code",
|
|
10075
10211
|
fontSize: "Z",
|
|
@@ -10080,16 +10216,25 @@ var Pracing = {
|
|
|
10080
10216
|
};
|
|
10081
10217
|
|
|
10082
10218
|
// Modal/VerificationCode.js
|
|
10219
|
+
var NUMBERS = [null, null, null, null];
|
|
10083
10220
|
var VerificationCode = {
|
|
10084
10221
|
extend: Modal,
|
|
10085
10222
|
props: {
|
|
10086
10223
|
maxWidth: "G3",
|
|
10087
10224
|
gap: "A2"
|
|
10088
10225
|
},
|
|
10226
|
+
state: { value: NUMBERS },
|
|
10089
10227
|
Header: {
|
|
10090
10228
|
props: { gap: "A" },
|
|
10091
10229
|
Title: { h5: { text: "Verify your email" } },
|
|
10092
|
-
Paragraph: {
|
|
10230
|
+
Paragraph: {
|
|
10231
|
+
p: {
|
|
10232
|
+
props: {
|
|
10233
|
+
text: "Verification code has been sent to you. Enter the code below.",
|
|
10234
|
+
lineHeight: "1.5em"
|
|
10235
|
+
}
|
|
10236
|
+
}
|
|
10237
|
+
}
|
|
10093
10238
|
},
|
|
10094
10239
|
Content: {
|
|
10095
10240
|
props: {
|
|
@@ -10102,10 +10247,50 @@ var VerificationCode = {
|
|
|
10102
10247
|
justifyContent: "space-between",
|
|
10103
10248
|
flex: "1"
|
|
10104
10249
|
},
|
|
10105
|
-
childExtend:
|
|
10250
|
+
childExtend: {
|
|
10251
|
+
extend: NumberField,
|
|
10252
|
+
NumberInput: {
|
|
10253
|
+
props: ({ parent, state }) => ({
|
|
10254
|
+
...NumberField.NumberInput.props,
|
|
10255
|
+
value: state.value[parent.key] || ""
|
|
10256
|
+
}),
|
|
10257
|
+
on: {
|
|
10258
|
+
keydown: (event, { node: node2 }) => {
|
|
10259
|
+
const { value } = node2;
|
|
10260
|
+
if (value.length > 1)
|
|
10261
|
+
return false;
|
|
10262
|
+
},
|
|
10263
|
+
keyup: (event, { parent, state }) => {
|
|
10264
|
+
const { target, keyCode } = event;
|
|
10265
|
+
const { value } = target;
|
|
10266
|
+
const next2 = parent.nextElement();
|
|
10267
|
+
const previous = parent.previousElement();
|
|
10268
|
+
const isNumber = keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105;
|
|
10269
|
+
const isBackspace = event.keyCode === 8 || event.keyCode === 46;
|
|
10270
|
+
target.select();
|
|
10271
|
+
if (isNumber && value.length && next2)
|
|
10272
|
+
next2.NumberInput.node.focus();
|
|
10273
|
+
if ((!value.length || isBackspace) && previous)
|
|
10274
|
+
previous.NumberInput.node.focus();
|
|
10275
|
+
state.value[parent.key] = value;
|
|
10276
|
+
},
|
|
10277
|
+
paste: (event, { state }) => {
|
|
10278
|
+
event.preventDefault();
|
|
10279
|
+
const paste = (event.clipboardData || window.clipboardData).getData("text");
|
|
10280
|
+
if (!paste)
|
|
10281
|
+
return;
|
|
10282
|
+
const value = paste.split("");
|
|
10283
|
+
state.update({ value }, { overwrite: "shallow" });
|
|
10284
|
+
}
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10106
10288
|
...[{}, {}, {}, {}]
|
|
10107
10289
|
},
|
|
10108
|
-
ParagraphButton: {
|
|
10290
|
+
ParagraphButton: {
|
|
10291
|
+
extend: ParagraphButton,
|
|
10292
|
+
props: { padding: "- - - Y" }
|
|
10293
|
+
}
|
|
10109
10294
|
},
|
|
10110
10295
|
Footer: {
|
|
10111
10296
|
props: {
|
|
@@ -10116,7 +10301,7 @@ var VerificationCode = {
|
|
|
10116
10301
|
extend: CancelConfirmButtons,
|
|
10117
10302
|
props: { childProps: { ":first-child": { border: "none" } } },
|
|
10118
10303
|
...[
|
|
10119
|
-
{},
|
|
10304
|
+
{ Caption: { text: "Cancel" } },
|
|
10120
10305
|
{ Caption: { text: "Verify" } }
|
|
10121
10306
|
]
|
|
10122
10307
|
}
|
|
@@ -10129,53 +10314,40 @@ var List = {
|
|
|
10129
10314
|
position: "relative",
|
|
10130
10315
|
overflow: "hidden",
|
|
10131
10316
|
round: "Z1",
|
|
10132
|
-
background: "gray",
|
|
10133
10317
|
minWidth: "F1",
|
|
10134
|
-
|
|
10318
|
+
theme: "dialog",
|
|
10319
|
+
":before, &:after": {
|
|
10135
10320
|
content: '""',
|
|
10136
10321
|
position: "absolute",
|
|
10137
10322
|
boxSize: "A2 100%",
|
|
10138
|
-
top: "0",
|
|
10139
|
-
left: "0",
|
|
10140
10323
|
zIndex: "2",
|
|
10141
|
-
|
|
10324
|
+
left: "0",
|
|
10325
|
+
pointerEvents: "none"
|
|
10326
|
+
},
|
|
10327
|
+
":before": {
|
|
10328
|
+
top: "0",
|
|
10329
|
+
background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
|
|
10142
10330
|
},
|
|
10143
10331
|
":after": {
|
|
10144
|
-
content: '""',
|
|
10145
|
-
position: "absolute",
|
|
10146
|
-
boxSize: "A2 100%",
|
|
10147
10332
|
bottom: "0",
|
|
10148
|
-
|
|
10149
|
-
zIndex: "2",
|
|
10150
|
-
background: "linear-gradient(to top, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)"
|
|
10333
|
+
background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
|
|
10151
10334
|
}
|
|
10152
10335
|
},
|
|
10153
10336
|
Flex: {
|
|
10154
10337
|
props: {
|
|
10155
10338
|
flow: "column",
|
|
10156
10339
|
maxHeight: "F+C",
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
"::-webkit-scrollbar": { display: "none" }
|
|
10160
|
-
}
|
|
10340
|
+
overflow: "auto",
|
|
10341
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
10161
10342
|
},
|
|
10162
10343
|
childExtend: {
|
|
10163
10344
|
props: {
|
|
10164
10345
|
padding: "Z1 A1",
|
|
10165
10346
|
position: "relative",
|
|
10166
10347
|
cursor: "pointer",
|
|
10167
|
-
":
|
|
10168
|
-
content: '""',
|
|
10169
|
-
boxSize: "100% 100%",
|
|
10170
|
-
position: "absolute",
|
|
10171
|
-
top: "0",
|
|
10172
|
-
left: "0",
|
|
10173
|
-
opacity: "0",
|
|
10348
|
+
":hover": {
|
|
10174
10349
|
background: "gray .92 +8"
|
|
10175
|
-
// background: '#141416'
|
|
10176
10350
|
},
|
|
10177
|
-
":hover > *": { zIndex: "5" },
|
|
10178
|
-
":hover:after": { opacity: "1", zIndex: "4" },
|
|
10179
10351
|
childProps: { position: "relative" }
|
|
10180
10352
|
}
|
|
10181
10353
|
}
|
|
@@ -10186,6 +10358,12 @@ var ListTemplate = {
|
|
|
10186
10358
|
props: { maxWidth: "F" },
|
|
10187
10359
|
Flex: {
|
|
10188
10360
|
...[
|
|
10361
|
+
{ span: { text: "Item" } },
|
|
10362
|
+
{ span: { text: "Item" } },
|
|
10363
|
+
{ span: { text: "Item" } },
|
|
10364
|
+
{ span: { text: "Item" } },
|
|
10365
|
+
{ span: { text: "Item" } },
|
|
10366
|
+
{ span: { text: "Item" } },
|
|
10189
10367
|
{ span: { text: "Item" } },
|
|
10190
10368
|
{ span: { text: "Item" } },
|
|
10191
10369
|
{ span: { text: "Item" } },
|
|
@@ -10210,11 +10388,14 @@ var ListWithTitle = {
|
|
|
10210
10388
|
Title: {
|
|
10211
10389
|
tag: "h5",
|
|
10212
10390
|
props: {
|
|
10391
|
+
position: "sticky",
|
|
10392
|
+
top: "0",
|
|
10393
|
+
zIndex: "3",
|
|
10213
10394
|
text: "Group name",
|
|
10214
10395
|
fontSize: "Z",
|
|
10215
10396
|
color: "gray .92 +68",
|
|
10216
10397
|
fontWeight: "400",
|
|
10217
|
-
|
|
10398
|
+
theme: "dialog",
|
|
10218
10399
|
padding: "A"
|
|
10219
10400
|
}
|
|
10220
10401
|
},
|
|
@@ -10237,8 +10418,6 @@ var ListWithTitleTemplate = {
|
|
|
10237
10418
|
{ span: { text: "Item" } },
|
|
10238
10419
|
{ span: { text: "Item" } },
|
|
10239
10420
|
{ span: { text: "Item" } },
|
|
10240
|
-
{ span: { text: "Item" } },
|
|
10241
|
-
{ span: { text: "Item" } },
|
|
10242
10421
|
{ span: { text: "Item" } }
|
|
10243
10422
|
]
|
|
10244
10423
|
}
|
|
@@ -10251,15 +10430,14 @@ var GroupList = {
|
|
|
10251
10430
|
props: {
|
|
10252
10431
|
flow: "column",
|
|
10253
10432
|
overflow: "hidden",
|
|
10433
|
+
theme: "dialog",
|
|
10254
10434
|
maxHeight: "H",
|
|
10255
|
-
background: "gray3",
|
|
10256
10435
|
round: "Z1",
|
|
10257
10436
|
maxWidth: "G"
|
|
10258
10437
|
},
|
|
10259
10438
|
Header: {
|
|
10260
10439
|
extend: Flex,
|
|
10261
10440
|
props: {
|
|
10262
|
-
background: "gray",
|
|
10263
10441
|
padding: "Z - Z A"
|
|
10264
10442
|
},
|
|
10265
10443
|
h4: {
|
|
@@ -10273,37 +10451,17 @@ var GroupList = {
|
|
|
10273
10451
|
},
|
|
10274
10452
|
Groups: {
|
|
10275
10453
|
props: {
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
":before": {
|
|
10280
|
-
content: '""',
|
|
10281
|
-
position: "absolute",
|
|
10282
|
-
boxSize: "A1 100%",
|
|
10283
|
-
top: "0",
|
|
10284
|
-
left: "0",
|
|
10285
|
-
zIndex: "2",
|
|
10286
|
-
background: "linear-gradient(to bottom, rgba(28, 28, 31, 1) 0%, rgba(28, 28, 31, 0) 100%)"
|
|
10287
|
-
},
|
|
10288
|
-
":after": {
|
|
10289
|
-
content: '""',
|
|
10290
|
-
position: "absolute",
|
|
10291
|
-
boxSize: "A1 100%",
|
|
10292
|
-
bottom: "0",
|
|
10293
|
-
left: "0",
|
|
10294
|
-
zIndex: "2",
|
|
10295
|
-
background: "linear-gradient(to top, rgba(28, 28, 31, 1) 0%, rgba(28, 28, 31, 0) 100%)"
|
|
10296
|
-
}
|
|
10454
|
+
...List.props,
|
|
10455
|
+
theme: null,
|
|
10456
|
+
round: "0"
|
|
10297
10457
|
},
|
|
10298
10458
|
Flex: {
|
|
10299
10459
|
extend: Flex,
|
|
10300
10460
|
props: {
|
|
10301
10461
|
flow: "column",
|
|
10302
10462
|
maxHeight: "G2",
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
"::-webkit-scrollbar": { display: "none" }
|
|
10306
|
-
}
|
|
10463
|
+
overflow: "auto",
|
|
10464
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
10307
10465
|
},
|
|
10308
10466
|
childExtend: {
|
|
10309
10467
|
extend: ListWithTitle,
|
|
@@ -10339,12 +10497,16 @@ var GroupListTemplate = {
|
|
|
10339
10497
|
extend: GroupList,
|
|
10340
10498
|
Header: {},
|
|
10341
10499
|
Groups: {
|
|
10500
|
+
props: {},
|
|
10342
10501
|
Flex: {
|
|
10502
|
+
props: {},
|
|
10343
10503
|
...[
|
|
10344
10504
|
{
|
|
10345
10505
|
Title: null,
|
|
10346
10506
|
List: {
|
|
10507
|
+
props: {},
|
|
10347
10508
|
Flex: {
|
|
10509
|
+
props: {},
|
|
10348
10510
|
...[
|
|
10349
10511
|
{ span: { text: "Item" } },
|
|
10350
10512
|
{ span: { text: "Item" } }
|
|
@@ -10355,7 +10517,9 @@ var GroupListTemplate = {
|
|
|
10355
10517
|
{
|
|
10356
10518
|
Title: {},
|
|
10357
10519
|
List: {
|
|
10520
|
+
props: {},
|
|
10358
10521
|
Flex: {
|
|
10522
|
+
props: {},
|
|
10359
10523
|
...[
|
|
10360
10524
|
{ span: { text: "Item" } },
|
|
10361
10525
|
{ span: { text: "Item" } },
|
|
@@ -10367,8 +10531,18 @@ var GroupListTemplate = {
|
|
|
10367
10531
|
{
|
|
10368
10532
|
Title: {},
|
|
10369
10533
|
List: {
|
|
10534
|
+
props: {},
|
|
10370
10535
|
Flex: {
|
|
10536
|
+
props: {},
|
|
10371
10537
|
...[
|
|
10538
|
+
{ span: { text: "Item" } },
|
|
10539
|
+
{ span: { text: "Item" } },
|
|
10540
|
+
{ span: { text: "Item" } },
|
|
10541
|
+
{ span: { text: "Item" } },
|
|
10542
|
+
{ span: { text: "Item" } },
|
|
10543
|
+
{ span: { text: "Item" } },
|
|
10544
|
+
{ span: { text: "Item" } },
|
|
10545
|
+
{ span: { text: "Item" } },
|
|
10372
10546
|
{ span: { text: "Item" } },
|
|
10373
10547
|
{ span: { text: "Item" } },
|
|
10374
10548
|
{ span: { text: "Item" } },
|
|
@@ -10391,7 +10565,7 @@ var GroupListWithSearch = {
|
|
|
10391
10565
|
SearchContainer: {
|
|
10392
10566
|
extend: Flex,
|
|
10393
10567
|
props: {
|
|
10394
|
-
padding: "
|
|
10568
|
+
padding: "X Y"
|
|
10395
10569
|
},
|
|
10396
10570
|
Search: {
|
|
10397
10571
|
extend: Search,
|
|
@@ -10399,8 +10573,10 @@ var GroupListWithSearch = {
|
|
|
10399
10573
|
maxWidth: "100%",
|
|
10400
10574
|
minWidth: "100%",
|
|
10401
10575
|
minHeight: "C+Y",
|
|
10402
|
-
round: "
|
|
10403
|
-
|
|
10576
|
+
round: "C",
|
|
10577
|
+
fontSize: "Z2",
|
|
10578
|
+
border: "none",
|
|
10579
|
+
background: "black .25"
|
|
10404
10580
|
},
|
|
10405
10581
|
Icon: {
|
|
10406
10582
|
props: {
|
|
@@ -10555,8 +10731,9 @@ var TimeSwitcher = {
|
|
|
10555
10731
|
".active": { theme: "primary" }
|
|
10556
10732
|
}),
|
|
10557
10733
|
on: {
|
|
10558
|
-
click: (event,
|
|
10559
|
-
|
|
10734
|
+
click: (event, { key, state }) => {
|
|
10735
|
+
console.log(event, key, state);
|
|
10736
|
+
state.update({ activeShift: key });
|
|
10560
10737
|
}
|
|
10561
10738
|
}
|
|
10562
10739
|
},
|
|
@@ -10573,7 +10750,7 @@ var TimePicker = {
|
|
|
10573
10750
|
props: {
|
|
10574
10751
|
flow: "column",
|
|
10575
10752
|
width: "fit-content",
|
|
10576
|
-
padding: "
|
|
10753
|
+
padding: "Z2 A"
|
|
10577
10754
|
},
|
|
10578
10755
|
Title: {
|
|
10579
10756
|
fontSize: "Z1",
|
|
@@ -10659,7 +10836,7 @@ var DropdownList = {
|
|
|
10659
10836
|
svg: { opacity: "0.5" }
|
|
10660
10837
|
}
|
|
10661
10838
|
},
|
|
10662
|
-
|
|
10839
|
+
Icon: {
|
|
10663
10840
|
active: state.active === key,
|
|
10664
10841
|
name: "checkmark",
|
|
10665
10842
|
opacity: "0.1",
|
|
@@ -10693,8 +10870,9 @@ var DropdownParent = {
|
|
|
10693
10870
|
// Form/CommonForm.js
|
|
10694
10871
|
var CommonForm = {
|
|
10695
10872
|
extend: [Form, Grid],
|
|
10873
|
+
tag: "form",
|
|
10696
10874
|
props: {
|
|
10697
|
-
gap: "
|
|
10875
|
+
gap: "B2",
|
|
10698
10876
|
height: "fit-content",
|
|
10699
10877
|
margin: "0",
|
|
10700
10878
|
width: "100%"
|
|
@@ -10703,13 +10881,15 @@ var CommonForm = {
|
|
|
10703
10881
|
extend: CommonField,
|
|
10704
10882
|
props: {
|
|
10705
10883
|
minWidth: "100%",
|
|
10706
|
-
Textarea: {
|
|
10884
|
+
Textarea: {
|
|
10885
|
+
width: "100%",
|
|
10886
|
+
maxWidth: "100%"
|
|
10887
|
+
},
|
|
10707
10888
|
Hint: { color: "gray .92 +68" }
|
|
10708
10889
|
},
|
|
10709
|
-
Title: {
|
|
10890
|
+
Title: {},
|
|
10710
10891
|
Field: {
|
|
10711
|
-
props: { minWidth: "100%" }
|
|
10712
|
-
Input: { fontSize: "Y2" }
|
|
10892
|
+
props: { minWidth: "100%" }
|
|
10713
10893
|
}
|
|
10714
10894
|
}
|
|
10715
10895
|
};
|
|
@@ -10719,16 +10899,17 @@ var ResetPassword = {
|
|
|
10719
10899
|
extend: Modal,
|
|
10720
10900
|
props: {
|
|
10721
10901
|
minWidth: "H+B",
|
|
10722
|
-
gap: "
|
|
10902
|
+
gap: "B1",
|
|
10903
|
+
Content: {}
|
|
10723
10904
|
},
|
|
10724
10905
|
Header: {
|
|
10725
|
-
props: { gap: "
|
|
10906
|
+
props: { gap: "Z2" },
|
|
10726
10907
|
Title: { h5: { text: "Choose new password" } },
|
|
10727
|
-
Paragraph: { p: { text: "Almost done. Enter your new password and you
|
|
10908
|
+
Paragraph: { p: { text: "Almost done. Enter your new password and you're all set" } }
|
|
10728
10909
|
},
|
|
10729
10910
|
Content: {
|
|
10730
10911
|
extend: CommonForm,
|
|
10731
|
-
props: {
|
|
10912
|
+
props: { flow: "column" },
|
|
10732
10913
|
...[{
|
|
10733
10914
|
Title: { text: "Old password" },
|
|
10734
10915
|
Field: {},
|
|
@@ -10768,12 +10949,12 @@ var ContactForm = {
|
|
|
10768
10949
|
props: {
|
|
10769
10950
|
minWidth: "H+B",
|
|
10770
10951
|
maxWidth: "H+B",
|
|
10771
|
-
|
|
10952
|
+
gap: "B2",
|
|
10953
|
+
padding: "A2 A2"
|
|
10772
10954
|
},
|
|
10773
10955
|
Header: {
|
|
10774
10956
|
props: {
|
|
10775
|
-
gap: "Y2"
|
|
10776
|
-
padding: "- - B1 W"
|
|
10957
|
+
gap: "Y2"
|
|
10777
10958
|
},
|
|
10778
10959
|
Title: {
|
|
10779
10960
|
h5: {
|
|
@@ -10818,17 +10999,17 @@ var ContactForm = {
|
|
|
10818
10999
|
props: { gridColumn: "1 / span 2" },
|
|
10819
11000
|
Title: { text: "Message" },
|
|
10820
11001
|
Field: null,
|
|
10821
|
-
Textarea,
|
|
11002
|
+
Textarea: {},
|
|
10822
11003
|
Hint: null
|
|
10823
11004
|
}
|
|
10824
11005
|
]
|
|
10825
11006
|
},
|
|
10826
11007
|
ParagraphButtonWithCheckbox: {
|
|
10827
|
-
padding: "A1 Z
|
|
11008
|
+
padding: "A1 Z - W",
|
|
10828
11009
|
Checkbox: {},
|
|
10829
11010
|
ParagraphButton: {
|
|
10830
11011
|
P: { text: "You agree to" },
|
|
10831
|
-
Button: { text: "
|
|
11012
|
+
Button: { text: "Privacy Policy" }
|
|
10832
11013
|
}
|
|
10833
11014
|
}
|
|
10834
11015
|
},
|
|
@@ -10850,7 +11031,7 @@ var SignUp = {
|
|
|
10850
11031
|
props: {
|
|
10851
11032
|
minWidth: "H+B",
|
|
10852
11033
|
maxWidth: "H+B",
|
|
10853
|
-
padding: "
|
|
11034
|
+
padding: "A2 A2"
|
|
10854
11035
|
},
|
|
10855
11036
|
Header: {
|
|
10856
11037
|
props: { gap: "Y1" },
|
|
@@ -10913,11 +11094,11 @@ var SignUp = {
|
|
|
10913
11094
|
]
|
|
10914
11095
|
},
|
|
10915
11096
|
ParagraphButtonWithCheckbox: {
|
|
10916
|
-
padding: "A1 Z
|
|
11097
|
+
padding: "A1 Z - W",
|
|
10917
11098
|
Checkbox: {},
|
|
10918
11099
|
ParagraphButton: {
|
|
10919
11100
|
P: { text: "You agree to" },
|
|
10920
|
-
Button: { text: "
|
|
11101
|
+
Button: { text: "Privacy Policy" }
|
|
10921
11102
|
}
|
|
10922
11103
|
}
|
|
10923
11104
|
},
|
|
@@ -10982,7 +11163,7 @@ var LogIn = {
|
|
|
10982
11163
|
Title: { text: "Password" },
|
|
10983
11164
|
Field: {
|
|
10984
11165
|
Input: { placeholder: "Enter your password" },
|
|
10985
|
-
Button: {
|
|
11166
|
+
Button: { Icon: { name: "eye" } }
|
|
10986
11167
|
}
|
|
10987
11168
|
}
|
|
10988
11169
|
]
|
|
@@ -11024,7 +11205,7 @@ var LogIn = {
|
|
|
11024
11205
|
{},
|
|
11025
11206
|
{
|
|
11026
11207
|
props: {
|
|
11027
|
-
|
|
11208
|
+
Icon: { name: "facebook" },
|
|
11028
11209
|
text: "Continue with Facebook"
|
|
11029
11210
|
}
|
|
11030
11211
|
}
|
|
@@ -11094,12 +11275,12 @@ var UploadButton = {
|
|
|
11094
11275
|
extend: CommonButton,
|
|
11095
11276
|
props: {
|
|
11096
11277
|
position: "relative",
|
|
11278
|
+
theme: "transparent",
|
|
11097
11279
|
padding: "0",
|
|
11098
11280
|
color: "#0474F2",
|
|
11099
11281
|
boxSize: "fit-content fit-content",
|
|
11100
11282
|
overflow: "hidden",
|
|
11101
11283
|
fontWeight: "500",
|
|
11102
|
-
background: "transparent",
|
|
11103
11284
|
cursor: "pointer",
|
|
11104
11285
|
Caption: { text: "Choose file" }
|
|
11105
11286
|
},
|
|
@@ -11119,10 +11300,10 @@ var UploadButtonWithIcon = {
|
|
|
11119
11300
|
extend: UploadButton,
|
|
11120
11301
|
props: {
|
|
11121
11302
|
gap: "Z",
|
|
11122
|
-
|
|
11123
|
-
background: "#0474F2",
|
|
11303
|
+
theme: "primary",
|
|
11124
11304
|
padding: "A B",
|
|
11125
|
-
round: "A"
|
|
11305
|
+
round: "A",
|
|
11306
|
+
color: "white"
|
|
11126
11307
|
},
|
|
11127
11308
|
Icon: {
|
|
11128
11309
|
props: {
|
|
@@ -11220,7 +11401,7 @@ var UploadModal = {
|
|
|
11220
11401
|
Footer: {
|
|
11221
11402
|
UploadButtonWithIcon: {
|
|
11222
11403
|
flex: 1,
|
|
11223
|
-
|
|
11404
|
+
Icon: { display: "none" },
|
|
11224
11405
|
Caption: { text: "Choose file" }
|
|
11225
11406
|
}
|
|
11226
11407
|
}
|
|
@@ -11240,7 +11421,7 @@ var UploadModal2 = {
|
|
|
11240
11421
|
padding: "- X"
|
|
11241
11422
|
},
|
|
11242
11423
|
IconText: {
|
|
11243
|
-
|
|
11424
|
+
Icon: { name: "info" },
|
|
11244
11425
|
text: "Support",
|
|
11245
11426
|
gap: "Z"
|
|
11246
11427
|
},
|
|
@@ -11492,7 +11673,7 @@ var User = {
|
|
|
11492
11673
|
extend: TitleParagraph,
|
|
11493
11674
|
props: {
|
|
11494
11675
|
gap: "Y2",
|
|
11495
|
-
margin: "
|
|
11676
|
+
margin: "W - - -"
|
|
11496
11677
|
},
|
|
11497
11678
|
Title: {
|
|
11498
11679
|
h5: {
|
|
@@ -11555,9 +11736,8 @@ var ChatUser = {
|
|
|
11555
11736
|
fontSize: "Z"
|
|
11556
11737
|
}
|
|
11557
11738
|
},
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
props: { fontSize: "Y2" }
|
|
11739
|
+
CountIndicator: {
|
|
11740
|
+
fontSize: "Y2"
|
|
11561
11741
|
}
|
|
11562
11742
|
}
|
|
11563
11743
|
}
|
|
@@ -11570,7 +11750,7 @@ var UserButtonSet = {
|
|
|
11570
11750
|
gap: "E2",
|
|
11571
11751
|
background: "gray",
|
|
11572
11752
|
boxSize: "fit-content",
|
|
11573
|
-
padding: "
|
|
11753
|
+
padding: "A",
|
|
11574
11754
|
round: "Z2"
|
|
11575
11755
|
},
|
|
11576
11756
|
User: {
|
|
@@ -11594,9 +11774,9 @@ var UserButtonSet = {
|
|
|
11594
11774
|
extend: ButtonSet,
|
|
11595
11775
|
props: { gap: "Y2" },
|
|
11596
11776
|
...[
|
|
11597
|
-
{ props: {
|
|
11598
|
-
{ props: {
|
|
11599
|
-
{ props: {
|
|
11777
|
+
{ props: { Icon: { name: "phone" } } },
|
|
11778
|
+
{ props: { Icon: { name: "video" } } },
|
|
11779
|
+
{ props: { Icon: { name: "moreHorizontal" } } }
|
|
11600
11780
|
]
|
|
11601
11781
|
}
|
|
11602
11782
|
};
|
|
@@ -11665,8 +11845,7 @@ var UserWithButton = {
|
|
|
11665
11845
|
boxSize: "fit-content",
|
|
11666
11846
|
padding: "X X2",
|
|
11667
11847
|
round: "Z",
|
|
11668
|
-
border: "solid, gray3",
|
|
11669
|
-
borderWidth: "1px",
|
|
11848
|
+
border: "1px, solid, gray3",
|
|
11670
11849
|
gap: "Y2"
|
|
11671
11850
|
},
|
|
11672
11851
|
Avatar: {
|
|
@@ -11694,11 +11873,21 @@ var UserWithButton = {
|
|
|
11694
11873
|
}
|
|
11695
11874
|
},
|
|
11696
11875
|
IconCommonButton: {
|
|
11697
|
-
round: "
|
|
11876
|
+
round: "Y1",
|
|
11698
11877
|
background: "transparent",
|
|
11699
|
-
|
|
11878
|
+
theme: null,
|
|
11879
|
+
color: "currentColor",
|
|
11880
|
+
opacity: "0.5",
|
|
11881
|
+
transition: "A defaultBezier",
|
|
11882
|
+
transitionProperty: "opacity, background",
|
|
11883
|
+
":hover": {
|
|
11884
|
+
opacity: "1",
|
|
11885
|
+
theme: "secondary"
|
|
11886
|
+
},
|
|
11887
|
+
margin: "- - - Z2",
|
|
11888
|
+
Icon: {
|
|
11700
11889
|
name: "copy",
|
|
11701
|
-
fontSize: "
|
|
11890
|
+
fontSize: "C"
|
|
11702
11891
|
}
|
|
11703
11892
|
}
|
|
11704
11893
|
};
|
|
@@ -11711,7 +11900,7 @@ var BalanceCard = {
|
|
|
11711
11900
|
extend: TitleParagraphWithButton,
|
|
11712
11901
|
props: {
|
|
11713
11902
|
boxSize: "fit-content",
|
|
11714
|
-
padding: "A",
|
|
11903
|
+
padding: "Z2 A",
|
|
11715
11904
|
round: "Z",
|
|
11716
11905
|
gap: "Z1",
|
|
11717
11906
|
background: "linear-gradient(to right, #0474F2, #003067)"
|
|
@@ -11719,7 +11908,7 @@ var BalanceCard = {
|
|
|
11719
11908
|
Title: {
|
|
11720
11909
|
props: { gap: "E1" },
|
|
11721
11910
|
h5: { props: { text: "Total crypto assets" } },
|
|
11722
|
-
Button: { props: {
|
|
11911
|
+
Button: { props: { Icon: { name: "arrowUpRight" } } }
|
|
11723
11912
|
},
|
|
11724
11913
|
Paragraph: {
|
|
11725
11914
|
props: {
|
|
@@ -11782,7 +11971,7 @@ var ConvertCard = {
|
|
|
11782
11971
|
boxSize: "fit-content",
|
|
11783
11972
|
gap: "A",
|
|
11784
11973
|
background: "gray",
|
|
11785
|
-
padding: "
|
|
11974
|
+
padding: "Z2 A",
|
|
11786
11975
|
round: "Z"
|
|
11787
11976
|
},
|
|
11788
11977
|
Title: {
|
|
@@ -11816,14 +12005,14 @@ var ConvertCard = {
|
|
|
11816
12005
|
}
|
|
11817
12006
|
};
|
|
11818
12007
|
|
|
11819
|
-
//
|
|
12008
|
+
// Card/CurrencyConvertCard.js
|
|
11820
12009
|
var CurrencyConvert = {
|
|
11821
12010
|
extend: Modal,
|
|
11822
12011
|
props: {
|
|
11823
12012
|
boxSize: "fit-content",
|
|
11824
12013
|
minWidth: "fit-content",
|
|
11825
|
-
gap: "
|
|
11826
|
-
padding: "
|
|
12014
|
+
gap: "A",
|
|
12015
|
+
padding: "A"
|
|
11827
12016
|
},
|
|
11828
12017
|
Header: {
|
|
11829
12018
|
Title: {
|
|
@@ -11839,23 +12028,49 @@ var CurrencyConvert = {
|
|
|
11839
12028
|
},
|
|
11840
12029
|
Content: {
|
|
11841
12030
|
props: {
|
|
12031
|
+
margin: "- -X2",
|
|
11842
12032
|
flow: "column",
|
|
11843
12033
|
gap: "Z"
|
|
11844
12034
|
},
|
|
11845
12035
|
childExtend: {
|
|
11846
12036
|
extend: ConvertCard,
|
|
11847
12037
|
props: {
|
|
11848
|
-
|
|
12038
|
+
theme: "dialog @dark .helper"
|
|
11849
12039
|
}
|
|
11850
12040
|
},
|
|
11851
12041
|
...[{}, {}]
|
|
11852
12042
|
},
|
|
11853
12043
|
Footer: {
|
|
12044
|
+
props: {
|
|
12045
|
+
margin: "- -X2 -X2"
|
|
12046
|
+
},
|
|
11854
12047
|
CommonButton: {
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
12048
|
+
extend: {
|
|
12049
|
+
extend: "Button",
|
|
12050
|
+
props: {
|
|
12051
|
+
theme: "primary",
|
|
12052
|
+
boxSize: "fit-content",
|
|
12053
|
+
padding: "A A2",
|
|
12054
|
+
round: "Z2",
|
|
12055
|
+
gap: "Y2",
|
|
12056
|
+
position: "relative"
|
|
12057
|
+
},
|
|
12058
|
+
Icon: {
|
|
12059
|
+
props: { fontSize: "C" }
|
|
12060
|
+
},
|
|
12061
|
+
Caption: {
|
|
12062
|
+
props: {
|
|
12063
|
+
text: "Button",
|
|
12064
|
+
line_height: "1em"
|
|
12065
|
+
}
|
|
12066
|
+
}
|
|
12067
|
+
},
|
|
12068
|
+
props: {
|
|
12069
|
+
flex: "1",
|
|
12070
|
+
padding: "Z1 -",
|
|
12071
|
+
round: "Z",
|
|
12072
|
+
Caption: { text: "Convert", fontWeight: "500" }
|
|
12073
|
+
}
|
|
11859
12074
|
}
|
|
11860
12075
|
}
|
|
11861
12076
|
};
|