@symbo.ls/uikit 2.11.205 → 2.11.210
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 +586 -417
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
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,
|
|
@@ -3795,6 +3824,33 @@ var require_object = __commonJS({
|
|
|
3795
3824
|
}
|
|
3796
3825
|
return true;
|
|
3797
3826
|
};
|
|
3827
|
+
var deepContains2 = (obj1, obj2) => {
|
|
3828
|
+
if (typeof obj1 !== typeof obj2) {
|
|
3829
|
+
return false;
|
|
3830
|
+
}
|
|
3831
|
+
if ((0, import_types.isObjectLike)(obj1)) {
|
|
3832
|
+
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
3833
|
+
if (obj1.length !== obj2.length) {
|
|
3834
|
+
return false;
|
|
3835
|
+
}
|
|
3836
|
+
for (let i = 0; i < obj1.length; i++) {
|
|
3837
|
+
if (!deepContains2(obj1[i], obj2[i])) {
|
|
3838
|
+
return false;
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
3842
|
+
for (const key in obj1) {
|
|
3843
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
3844
|
+
if (!hasOwnProperty || !deepContains2(obj1[key], obj2[key])) {
|
|
3845
|
+
return false;
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
} else {
|
|
3850
|
+
return obj2 === obj1;
|
|
3851
|
+
}
|
|
3852
|
+
return true;
|
|
3853
|
+
};
|
|
3798
3854
|
var removeFromObject = (obj, props4) => {
|
|
3799
3855
|
if (props4 === void 0 || props4 === null)
|
|
3800
3856
|
return obj;
|
|
@@ -3810,9 +3866,9 @@ var require_object = __commonJS({
|
|
|
3810
3866
|
}
|
|
3811
3867
|
});
|
|
3812
3868
|
|
|
3813
|
-
//
|
|
3869
|
+
// ../../../domql/packages/utils/dist/cjs/function.js
|
|
3814
3870
|
var require_function = __commonJS({
|
|
3815
|
-
"
|
|
3871
|
+
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
|
|
3816
3872
|
"use strict";
|
|
3817
3873
|
var __defProp2 = Object.defineProperty;
|
|
3818
3874
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3867,9 +3923,9 @@ var require_function = __commonJS({
|
|
|
3867
3923
|
}
|
|
3868
3924
|
});
|
|
3869
3925
|
|
|
3870
|
-
//
|
|
3926
|
+
// ../../../domql/packages/utils/dist/cjs/log.js
|
|
3871
3927
|
var require_log = __commonJS({
|
|
3872
|
-
"
|
|
3928
|
+
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
|
|
3873
3929
|
"use strict";
|
|
3874
3930
|
var __defProp2 = Object.defineProperty;
|
|
3875
3931
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3908,9 +3964,9 @@ var require_log = __commonJS({
|
|
|
3908
3964
|
}
|
|
3909
3965
|
});
|
|
3910
3966
|
|
|
3911
|
-
//
|
|
3967
|
+
// ../../../domql/packages/utils/dist/cjs/cookie.js
|
|
3912
3968
|
var require_cookie = __commonJS({
|
|
3913
|
-
"
|
|
3969
|
+
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
3914
3970
|
"use strict";
|
|
3915
3971
|
var __defProp2 = Object.defineProperty;
|
|
3916
3972
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3964,9 +4020,9 @@ var require_cookie = __commonJS({
|
|
|
3964
4020
|
}
|
|
3965
4021
|
});
|
|
3966
4022
|
|
|
3967
|
-
//
|
|
4023
|
+
// ../../../domql/packages/utils/dist/cjs/tags.js
|
|
3968
4024
|
var require_tags = __commonJS({
|
|
3969
|
-
"
|
|
4025
|
+
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
|
|
3970
4026
|
"use strict";
|
|
3971
4027
|
var __defProp2 = Object.defineProperty;
|
|
3972
4028
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4129,9 +4185,9 @@ var require_tags = __commonJS({
|
|
|
4129
4185
|
}
|
|
4130
4186
|
});
|
|
4131
4187
|
|
|
4132
|
-
//
|
|
4188
|
+
// ../../../domql/packages/utils/dist/cjs/index.js
|
|
4133
4189
|
var require_cjs2 = __commonJS({
|
|
4134
|
-
"
|
|
4190
|
+
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
|
|
4135
4191
|
"use strict";
|
|
4136
4192
|
var __defProp2 = Object.defineProperty;
|
|
4137
4193
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4164,9 +4220,9 @@ var require_cjs2 = __commonJS({
|
|
|
4164
4220
|
}
|
|
4165
4221
|
});
|
|
4166
4222
|
|
|
4167
|
-
//
|
|
4223
|
+
// ../../../domql/packages/state/dist/cjs/ignore.js
|
|
4168
4224
|
var require_ignore = __commonJS({
|
|
4169
|
-
"
|
|
4225
|
+
"../../../domql/packages/state/dist/cjs/ignore.js"(exports, module2) {
|
|
4170
4226
|
"use strict";
|
|
4171
4227
|
var __defProp2 = Object.defineProperty;
|
|
4172
4228
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4213,9 +4269,9 @@ var require_ignore = __commonJS({
|
|
|
4213
4269
|
}
|
|
4214
4270
|
});
|
|
4215
4271
|
|
|
4216
|
-
//
|
|
4272
|
+
// ../../../domql/packages/event/dist/cjs/on.js
|
|
4217
4273
|
var require_on = __commonJS({
|
|
4218
|
-
"
|
|
4274
|
+
"../../../domql/packages/event/dist/cjs/on.js"(exports, module2) {
|
|
4219
4275
|
"use strict";
|
|
4220
4276
|
var __defProp2 = Object.defineProperty;
|
|
4221
4277
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4243,12 +4299,12 @@ var require_on = __commonJS({
|
|
|
4243
4299
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
4244
4300
|
});
|
|
4245
4301
|
module2.exports = __toCommonJS2(on_exports);
|
|
4246
|
-
var
|
|
4302
|
+
var import_utils13 = require_cjs2();
|
|
4247
4303
|
var applyEvent = (param, element, state, context, options) => {
|
|
4248
4304
|
return param(element, state || element.state, context || element.context, options);
|
|
4249
4305
|
};
|
|
4250
4306
|
var triggerEventOn = (param, element, options) => {
|
|
4251
|
-
if (element.on && (0,
|
|
4307
|
+
if (element.on && (0, import_utils13.isFunction)(element.on[param])) {
|
|
4252
4308
|
const { state, context } = element;
|
|
4253
4309
|
return applyEvent(element.on[param], element, state, context, options);
|
|
4254
4310
|
}
|
|
@@ -4257,7 +4313,7 @@ var require_on = __commonJS({
|
|
|
4257
4313
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
4258
4314
|
};
|
|
4259
4315
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
4260
|
-
if (element.on && (0,
|
|
4316
|
+
if (element.on && (0, import_utils13.isFunction)(element.on[param])) {
|
|
4261
4317
|
const { state, context } = element;
|
|
4262
4318
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
4263
4319
|
}
|
|
@@ -4268,7 +4324,7 @@ var require_on = __commonJS({
|
|
|
4268
4324
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
4269
4325
|
continue;
|
|
4270
4326
|
const appliedFunction = element.on[param];
|
|
4271
|
-
if ((0,
|
|
4327
|
+
if ((0, import_utils13.isFunction)(appliedFunction)) {
|
|
4272
4328
|
const { state, context } = element;
|
|
4273
4329
|
node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
|
|
4274
4330
|
}
|
|
@@ -4277,9 +4333,9 @@ var require_on = __commonJS({
|
|
|
4277
4333
|
}
|
|
4278
4334
|
});
|
|
4279
4335
|
|
|
4280
|
-
//
|
|
4336
|
+
// ../../../domql/plugins/report/dist/cjs/index.js
|
|
4281
4337
|
var require_cjs3 = __commonJS({
|
|
4282
|
-
"
|
|
4338
|
+
"../../../domql/plugins/report/dist/cjs/index.js"(exports, module2) {
|
|
4283
4339
|
"use strict";
|
|
4284
4340
|
var __defProp2 = Object.defineProperty;
|
|
4285
4341
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4374,9 +4430,9 @@ ${element}` : ""
|
|
|
4374
4430
|
}
|
|
4375
4431
|
});
|
|
4376
4432
|
|
|
4377
|
-
//
|
|
4433
|
+
// ../../../domql/packages/event/dist/cjs/can.js
|
|
4378
4434
|
var require_can = __commonJS({
|
|
4379
|
-
"
|
|
4435
|
+
"../../../domql/packages/event/dist/cjs/can.js"(exports, module2) {
|
|
4380
4436
|
"use strict";
|
|
4381
4437
|
var __defProp2 = Object.defineProperty;
|
|
4382
4438
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4401,17 +4457,17 @@ var require_can = __commonJS({
|
|
|
4401
4457
|
});
|
|
4402
4458
|
module2.exports = __toCommonJS2(can_exports);
|
|
4403
4459
|
var import_report = require_cjs3();
|
|
4404
|
-
var
|
|
4460
|
+
var import_utils13 = require_cjs2();
|
|
4405
4461
|
var canRender = (element) => {
|
|
4406
4462
|
const tag = element.tag || "div";
|
|
4407
|
-
return (0,
|
|
4463
|
+
return (0, import_utils13.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
4408
4464
|
};
|
|
4409
4465
|
}
|
|
4410
4466
|
});
|
|
4411
4467
|
|
|
4412
|
-
//
|
|
4468
|
+
// ../../../domql/packages/event/dist/cjs/index.js
|
|
4413
4469
|
var require_cjs4 = __commonJS({
|
|
4414
|
-
"
|
|
4470
|
+
"../../../domql/packages/event/dist/cjs/index.js"(exports, module2) {
|
|
4415
4471
|
"use strict";
|
|
4416
4472
|
var __defProp2 = Object.defineProperty;
|
|
4417
4473
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4434,9 +4490,9 @@ var require_cjs4 = __commonJS({
|
|
|
4434
4490
|
}
|
|
4435
4491
|
});
|
|
4436
4492
|
|
|
4437
|
-
//
|
|
4493
|
+
// ../../../domql/packages/state/dist/cjs/methods.js
|
|
4438
4494
|
var require_methods = __commonJS({
|
|
4439
|
-
"
|
|
4495
|
+
"../../../domql/packages/state/dist/cjs/methods.js"(exports, module2) {
|
|
4440
4496
|
"use strict";
|
|
4441
4497
|
var __defProp2 = Object.defineProperty;
|
|
4442
4498
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4469,11 +4525,11 @@ var require_methods = __commonJS({
|
|
|
4469
4525
|
toggle: () => toggle
|
|
4470
4526
|
});
|
|
4471
4527
|
module2.exports = __toCommonJS2(methods_exports);
|
|
4472
|
-
var
|
|
4528
|
+
var import_utils13 = require_cjs2();
|
|
4473
4529
|
var import_ignore = require_ignore();
|
|
4474
4530
|
var parse2 = function() {
|
|
4475
4531
|
const state = this;
|
|
4476
|
-
if ((0,
|
|
4532
|
+
if ((0, import_utils13.isObject)(state)) {
|
|
4477
4533
|
const obj = {};
|
|
4478
4534
|
for (const param in state) {
|
|
4479
4535
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -4481,7 +4537,7 @@ var require_methods = __commonJS({
|
|
|
4481
4537
|
}
|
|
4482
4538
|
}
|
|
4483
4539
|
return obj;
|
|
4484
|
-
} else if ((0,
|
|
4540
|
+
} else if ((0, import_utils13.isArray)(state)) {
|
|
4485
4541
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
4486
4542
|
}
|
|
4487
4543
|
};
|
|
@@ -4501,7 +4557,7 @@ var require_methods = __commonJS({
|
|
|
4501
4557
|
const state = this;
|
|
4502
4558
|
const element = state.__element;
|
|
4503
4559
|
const stateKey = element.__ref.__state;
|
|
4504
|
-
if ((0,
|
|
4560
|
+
if ((0, import_utils13.isString)(stateKey)) {
|
|
4505
4561
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
4506
4562
|
return element.state;
|
|
4507
4563
|
}
|
|
@@ -4532,14 +4588,14 @@ var require_methods = __commonJS({
|
|
|
4532
4588
|
if (!state)
|
|
4533
4589
|
return;
|
|
4534
4590
|
const rootState = state.__element.__ref.__root.state;
|
|
4535
|
-
return rootState.update(obj, { isHoisted: false, options });
|
|
4591
|
+
return rootState.update(obj, { isHoisted: false, ...options });
|
|
4536
4592
|
};
|
|
4537
4593
|
var add = function(value, options = {}) {
|
|
4538
4594
|
const state = this;
|
|
4539
|
-
if ((0,
|
|
4595
|
+
if ((0, import_utils13.isArray)(state)) {
|
|
4540
4596
|
state.push(value);
|
|
4541
4597
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
4542
|
-
} else if ((0,
|
|
4598
|
+
} else if ((0, import_utils13.isObject)(state)) {
|
|
4543
4599
|
const key = Object.keys(state).length;
|
|
4544
4600
|
state.update({ [key]: value }, options);
|
|
4545
4601
|
}
|
|
@@ -4550,10 +4606,10 @@ var require_methods = __commonJS({
|
|
|
4550
4606
|
};
|
|
4551
4607
|
var remove = function(key, options = {}) {
|
|
4552
4608
|
const state = this;
|
|
4553
|
-
if ((0,
|
|
4554
|
-
(0,
|
|
4555
|
-
if ((0,
|
|
4556
|
-
(0,
|
|
4609
|
+
if ((0, import_utils13.isArray)(state))
|
|
4610
|
+
(0, import_utils13.removeFromArray)(state, key);
|
|
4611
|
+
if ((0, import_utils13.isObject)(state))
|
|
4612
|
+
(0, import_utils13.removeFromObject)(state, key);
|
|
4557
4613
|
return state.update(state.parse(), { replace: true, ...options });
|
|
4558
4614
|
};
|
|
4559
4615
|
var set3 = function(value, options = {}) {
|
|
@@ -4562,7 +4618,7 @@ var require_methods = __commonJS({
|
|
|
4562
4618
|
};
|
|
4563
4619
|
var apply = function(func, options = {}) {
|
|
4564
4620
|
const state = this;
|
|
4565
|
-
if ((0,
|
|
4621
|
+
if ((0, import_utils13.isFunction)(func)) {
|
|
4566
4622
|
func(state);
|
|
4567
4623
|
return state.update(state, { replace: true, ...options });
|
|
4568
4624
|
}
|
|
@@ -4570,9 +4626,9 @@ var require_methods = __commonJS({
|
|
|
4570
4626
|
}
|
|
4571
4627
|
});
|
|
4572
4628
|
|
|
4573
|
-
//
|
|
4629
|
+
// ../../../domql/packages/state/dist/cjs/inherit.js
|
|
4574
4630
|
var require_inherit = __commonJS({
|
|
4575
|
-
"
|
|
4631
|
+
"../../../domql/packages/state/dist/cjs/inherit.js"(exports, module2) {
|
|
4576
4632
|
"use strict";
|
|
4577
4633
|
var __defProp2 = Object.defineProperty;
|
|
4578
4634
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4602,7 +4658,7 @@ var require_inherit = __commonJS({
|
|
|
4602
4658
|
isState: () => isState2
|
|
4603
4659
|
});
|
|
4604
4660
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
4605
|
-
var
|
|
4661
|
+
var import_utils13 = require_cjs2();
|
|
4606
4662
|
var import_ignore = require_ignore();
|
|
4607
4663
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
4608
4664
|
if (!stateKey.includes("../"))
|
|
@@ -4656,9 +4712,9 @@ var require_inherit = __commonJS({
|
|
|
4656
4712
|
const inheritedState = findInheritedState(element, parent);
|
|
4657
4713
|
if (!inheritedState)
|
|
4658
4714
|
return element.state;
|
|
4659
|
-
if ((0,
|
|
4660
|
-
return (0,
|
|
4661
|
-
} else if ((0,
|
|
4715
|
+
if ((0, import_utils13.is)(inheritedState)("object", "array")) {
|
|
4716
|
+
return (0, import_utils13.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4717
|
+
} else if ((0, import_utils13.is)(inheritedState)("string", "number")) {
|
|
4662
4718
|
ref.__stateType = "string";
|
|
4663
4719
|
return { value: inheritedState };
|
|
4664
4720
|
}
|
|
@@ -4667,12 +4723,12 @@ var require_inherit = __commonJS({
|
|
|
4667
4723
|
var checkIfInherits = (element) => {
|
|
4668
4724
|
const ref = element.__ref;
|
|
4669
4725
|
const stateKey = ref.__state;
|
|
4670
|
-
if (!stateKey || (0,
|
|
4726
|
+
if (!stateKey || (0, import_utils13.isNot)(stateKey)("number", "string"))
|
|
4671
4727
|
return false;
|
|
4672
4728
|
return true;
|
|
4673
4729
|
};
|
|
4674
4730
|
var isState2 = function(state) {
|
|
4675
|
-
if (!(0,
|
|
4731
|
+
if (!(0, import_utils13.isObjectLike)(state))
|
|
4676
4732
|
return false;
|
|
4677
4733
|
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
4734
|
};
|
|
@@ -4692,9 +4748,9 @@ var require_inherit = __commonJS({
|
|
|
4692
4748
|
}
|
|
4693
4749
|
});
|
|
4694
4750
|
|
|
4695
|
-
//
|
|
4751
|
+
// ../../../domql/packages/state/dist/cjs/updateState.js
|
|
4696
4752
|
var require_updateState = __commonJS({
|
|
4697
|
-
"
|
|
4753
|
+
"../../../domql/packages/state/dist/cjs/updateState.js"(exports, module2) {
|
|
4698
4754
|
"use strict";
|
|
4699
4755
|
var __defProp2 = Object.defineProperty;
|
|
4700
4756
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4721,7 +4777,7 @@ var require_updateState = __commonJS({
|
|
|
4721
4777
|
var import_report = require_cjs3();
|
|
4722
4778
|
var import_event = require_cjs4();
|
|
4723
4779
|
var import_ignore = require_ignore();
|
|
4724
|
-
var
|
|
4780
|
+
var import_utils13 = require_cjs2();
|
|
4725
4781
|
var import_inherit = require_inherit();
|
|
4726
4782
|
var STATE_UPDATE_OPTIONS = {
|
|
4727
4783
|
overwrite: true,
|
|
@@ -4735,7 +4791,7 @@ var require_updateState = __commonJS({
|
|
|
4735
4791
|
const state = this;
|
|
4736
4792
|
const element = state.__element;
|
|
4737
4793
|
if (!options.updateByState)
|
|
4738
|
-
(0,
|
|
4794
|
+
(0, import_utils13.merge)(options, STATE_UPDATE_OPTIONS);
|
|
4739
4795
|
if (!state.__element)
|
|
4740
4796
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
4741
4797
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -4765,10 +4821,10 @@ var require_updateState = __commonJS({
|
|
|
4765
4821
|
const shallow = overwrite === "shallow";
|
|
4766
4822
|
const merge22 = overwrite === "merge";
|
|
4767
4823
|
if (merge22) {
|
|
4768
|
-
(0,
|
|
4824
|
+
(0, import_utils13.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4769
4825
|
return;
|
|
4770
4826
|
}
|
|
4771
|
-
const overwriteFunc = shallow ?
|
|
4827
|
+
const overwriteFunc = shallow ? import_utils13.overwriteShallow : import_utils13.overwriteDeep;
|
|
4772
4828
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
4773
4829
|
};
|
|
4774
4830
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -4831,9 +4887,9 @@ var require_updateState = __commonJS({
|
|
|
4831
4887
|
}
|
|
4832
4888
|
});
|
|
4833
4889
|
|
|
4834
|
-
//
|
|
4890
|
+
// ../../../domql/packages/state/dist/cjs/create.js
|
|
4835
4891
|
var require_create = __commonJS({
|
|
4836
|
-
"
|
|
4892
|
+
"../../../domql/packages/state/dist/cjs/create.js"(exports, module2) {
|
|
4837
4893
|
"use strict";
|
|
4838
4894
|
var __defProp2 = Object.defineProperty;
|
|
4839
4895
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4859,7 +4915,7 @@ var require_create = __commonJS({
|
|
|
4859
4915
|
});
|
|
4860
4916
|
module2.exports = __toCommonJS2(create_exports);
|
|
4861
4917
|
var import_event = require_cjs4();
|
|
4862
|
-
var
|
|
4918
|
+
var import_utils13 = require_cjs2();
|
|
4863
4919
|
var import_ignore = require_ignore();
|
|
4864
4920
|
var import_methods = require_methods();
|
|
4865
4921
|
var import_updateState = require_updateState();
|
|
@@ -4873,7 +4929,7 @@ var require_create = __commonJS({
|
|
|
4873
4929
|
if (objectizeState === false)
|
|
4874
4930
|
return parent.state || {};
|
|
4875
4931
|
else
|
|
4876
|
-
element.state = (0,
|
|
4932
|
+
element.state = (0, import_utils13.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
4877
4933
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
4878
4934
|
if (whatInitReturns === false)
|
|
4879
4935
|
return element.state;
|
|
@@ -4892,17 +4948,17 @@ var require_create = __commonJS({
|
|
|
4892
4948
|
const { __ref: ref } = state;
|
|
4893
4949
|
if (!ref)
|
|
4894
4950
|
return;
|
|
4895
|
-
const dependentState = (0,
|
|
4951
|
+
const dependentState = (0, import_utils13.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
4896
4952
|
const newDepends = { [element.key]: dependentState };
|
|
4897
|
-
ref.__depends = (0,
|
|
4953
|
+
ref.__depends = (0, import_utils13.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
4898
4954
|
return dependentState;
|
|
4899
4955
|
};
|
|
4900
4956
|
var checkForTypes = (element) => {
|
|
4901
4957
|
const { state, __ref: ref } = element;
|
|
4902
|
-
if ((0,
|
|
4958
|
+
if ((0, import_utils13.isFunction)(state)) {
|
|
4903
4959
|
ref.__state = state;
|
|
4904
|
-
return (0,
|
|
4905
|
-
} else if ((0,
|
|
4960
|
+
return (0, import_utils13.exec)(state, element);
|
|
4961
|
+
} else if ((0, import_utils13.is)(state)("string", "number")) {
|
|
4906
4962
|
ref.__state = state;
|
|
4907
4963
|
return {};
|
|
4908
4964
|
} else if (state === true) {
|
|
@@ -4949,7 +5005,7 @@ var require_create = __commonJS({
|
|
|
4949
5005
|
__children: {},
|
|
4950
5006
|
__root: ref.__root ? ref.__root.state : state
|
|
4951
5007
|
};
|
|
4952
|
-
if ((0,
|
|
5008
|
+
if ((0, import_utils13.isArray)(state)) {
|
|
4953
5009
|
addProtoToArray(state, proto);
|
|
4954
5010
|
} else {
|
|
4955
5011
|
Object.setPrototypeOf(state, proto);
|
|
@@ -4961,9 +5017,9 @@ var require_create = __commonJS({
|
|
|
4961
5017
|
}
|
|
4962
5018
|
});
|
|
4963
5019
|
|
|
4964
|
-
//
|
|
5020
|
+
// ../../../domql/packages/state/dist/cjs/index.js
|
|
4965
5021
|
var require_cjs5 = __commonJS({
|
|
4966
|
-
"
|
|
5022
|
+
"../../../domql/packages/state/dist/cjs/index.js"(exports, module2) {
|
|
4967
5023
|
"use strict";
|
|
4968
5024
|
var __defProp2 = Object.defineProperty;
|
|
4969
5025
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5019,8 +5075,8 @@ var require_cjs6 = __commonJS({
|
|
|
5019
5075
|
router: () => router
|
|
5020
5076
|
});
|
|
5021
5077
|
module2.exports = __toCommonJS2(router_exports);
|
|
5022
|
-
var
|
|
5023
|
-
var getActiveRoute = (level = 0, route =
|
|
5078
|
+
var import_utils13 = require_cjs2();
|
|
5079
|
+
var getActiveRoute = (level = 0, route = import_utils13.window.location.pathname) => {
|
|
5024
5080
|
const routeArray = route.split("/");
|
|
5025
5081
|
const activeRoute = routeArray[level + 1];
|
|
5026
5082
|
if (activeRoute)
|
|
@@ -5034,7 +5090,7 @@ var require_cjs6 = __commonJS({
|
|
|
5034
5090
|
initialRender: false,
|
|
5035
5091
|
scrollToTop: true,
|
|
5036
5092
|
scrollToNode: false,
|
|
5037
|
-
scrollNode:
|
|
5093
|
+
scrollNode: import_utils13.document && import_utils13.document.documentElement,
|
|
5038
5094
|
scrollBody: false,
|
|
5039
5095
|
useFragment: false,
|
|
5040
5096
|
updateState: true,
|
|
@@ -5049,13 +5105,13 @@ var require_cjs6 = __commonJS({
|
|
|
5049
5105
|
const route = getActiveRoute(options.level, pathname);
|
|
5050
5106
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
5051
5107
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
5052
|
-
const hashChanged = hash2 && hash2 !==
|
|
5108
|
+
const hashChanged = hash2 && hash2 !== import_utils13.window.location.hash.slice(1);
|
|
5053
5109
|
const pathChanged = pathname !== lastPathname;
|
|
5054
5110
|
lastPathname = pathname;
|
|
5055
5111
|
if (!content)
|
|
5056
5112
|
return;
|
|
5057
5113
|
if (options.pushState) {
|
|
5058
|
-
|
|
5114
|
+
import_utils13.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
5059
5115
|
}
|
|
5060
5116
|
if (pathChanged || !hashChanged) {
|
|
5061
5117
|
if (options.updateState) {
|
|
@@ -5081,7 +5137,7 @@ var require_cjs6 = __commonJS({
|
|
|
5081
5137
|
});
|
|
5082
5138
|
}
|
|
5083
5139
|
if (hash2) {
|
|
5084
|
-
const activeNode =
|
|
5140
|
+
const activeNode = import_utils13.document.getElementById(hash2);
|
|
5085
5141
|
if (activeNode) {
|
|
5086
5142
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
5087
5143
|
scrollNode.scrollTo({
|
|
@@ -5201,7 +5257,7 @@ __export(domql_exports, {
|
|
|
5201
5257
|
Pills: () => Pills,
|
|
5202
5258
|
PlusMinusButtons: () => PlusMinusButtons,
|
|
5203
5259
|
Position: () => Position,
|
|
5204
|
-
|
|
5260
|
+
Pricing: () => Pricing,
|
|
5205
5261
|
ProgressCircle: () => ProgressCircle,
|
|
5206
5262
|
ProgressCircleWithIcon: () => ProgressCircleWithIcon,
|
|
5207
5263
|
ProgressCircleWithSideUnitValue: () => ProgressCircleWithSideUnitValue,
|
|
@@ -5430,10 +5486,12 @@ var Block = {
|
|
|
5430
5486
|
};
|
|
5431
5487
|
},
|
|
5432
5488
|
columns: ({ props: props4 }) => props4.columns && { columns: props4.columns },
|
|
5489
|
+
columnRule: ({ props: props4 }) => props4.columnRule && { columnRule: props4.columnRule },
|
|
5490
|
+
columnWidth: ({ props: props4 }) => props4.columnWidth && { columnWidth: props4.columnWidth },
|
|
5433
5491
|
columnGap: ({ props: props4, deps }) => props4.columnGap ? deps.getSpacingBasedOnRatio(props4, "columnGap") : null,
|
|
5434
|
-
columnSpan: ({ props: props4 }) => props4.columnSpan && {
|
|
5435
|
-
columnFill: ({ props: props4 }) => props4.columnFill && {
|
|
5436
|
-
columnCount: ({ props: props4 }) => props4.columnCount && {
|
|
5492
|
+
columnSpan: ({ props: props4 }) => props4.columnSpan && { columnSpan: props4.columnSpan },
|
|
5493
|
+
columnFill: ({ props: props4 }) => props4.columnFill && { columnFill: props4.columnFill },
|
|
5494
|
+
columnCount: ({ props: props4 }) => props4.columnCount && { columnCount: props4.columnCount }
|
|
5437
5495
|
}
|
|
5438
5496
|
};
|
|
5439
5497
|
var Hr = {
|
|
@@ -5519,11 +5577,6 @@ var Grid = {
|
|
|
5519
5577
|
// Atoms/Img.js
|
|
5520
5578
|
var Img = {
|
|
5521
5579
|
tag: "img",
|
|
5522
|
-
props: {
|
|
5523
|
-
src: "",
|
|
5524
|
-
alt: "",
|
|
5525
|
-
title: ""
|
|
5526
|
-
},
|
|
5527
5580
|
attr: {
|
|
5528
5581
|
src: ({ props: props4 }) => props4.src,
|
|
5529
5582
|
alt: ({ props: props4 }) => props4.alt,
|
|
@@ -5543,7 +5596,7 @@ var Form = {
|
|
|
5543
5596
|
};
|
|
5544
5597
|
|
|
5545
5598
|
// Atoms/Media.js
|
|
5546
|
-
var
|
|
5599
|
+
var import_utils2 = __toESM(require_cjs2());
|
|
5547
5600
|
|
|
5548
5601
|
// Atoms/Theme.js
|
|
5549
5602
|
var import_scratch5 = __toESM(require_cjs());
|
|
@@ -5773,6 +5826,7 @@ var SHAPES = {
|
|
|
5773
5826
|
};
|
|
5774
5827
|
|
|
5775
5828
|
// Atoms/Theme.js
|
|
5829
|
+
var import_utils = __toESM(require_cjs2());
|
|
5776
5830
|
var getSystemTheme = ({ context, state }) => {
|
|
5777
5831
|
const rootState = state && state.__root;
|
|
5778
5832
|
return rootState ? rootState.globalTheme : context.designSystem && context.designSystem.globalTheme;
|
|
@@ -5789,7 +5843,7 @@ var Theme = {
|
|
|
5789
5843
|
transformBackgroundImage: import_scratch5.transformBackgroundImage
|
|
5790
5844
|
},
|
|
5791
5845
|
class: {
|
|
5792
|
-
depth: ({ props: props4, deps }) => props4.depth && deps.depth[props4.depth],
|
|
5846
|
+
depth: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.depth) && deps.depth[props4.depth],
|
|
5793
5847
|
theme: (element) => {
|
|
5794
5848
|
const { props: props4, deps } = element;
|
|
5795
5849
|
const globalTheme = deps.getSystemTheme(element);
|
|
@@ -5834,55 +5888,55 @@ var Theme = {
|
|
|
5834
5888
|
backgroundImage: deps.transformBackgroundImage(props4.backgroundImage, globalTheme)
|
|
5835
5889
|
};
|
|
5836
5890
|
},
|
|
5837
|
-
backgroundSize: ({ props: props4 }) => props4.backgroundSize ? {
|
|
5891
|
+
backgroundSize: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.backgroundSize) ? {
|
|
5838
5892
|
backgroundSize: props4.backgroundSize
|
|
5839
5893
|
} : null,
|
|
5840
|
-
backgroundPosition: ({ props: props4 }) => props4.backgroundPosition ? {
|
|
5894
|
+
backgroundPosition: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.backgroundPosition) ? {
|
|
5841
5895
|
backgroundPosition: props4.backgroundPosition
|
|
5842
5896
|
} : null,
|
|
5843
|
-
textStroke: ({ props: props4, deps }) => props4.textStroke ? {
|
|
5897
|
+
textStroke: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textStroke) ? {
|
|
5844
5898
|
WebkitTextStroke: deps.transformTextStroke(props4.textStroke)
|
|
5845
5899
|
} : null,
|
|
5846
|
-
outline: ({ props: props4, deps }) => props4.outline && {
|
|
5900
|
+
outline: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.outline) && {
|
|
5847
5901
|
outline: deps.transformBorder(props4.outline)
|
|
5848
5902
|
},
|
|
5849
|
-
border: ({ props: props4, deps }) => props4.border && {
|
|
5903
|
+
border: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.border) && {
|
|
5850
5904
|
border: deps.transformBorder(props4.border)
|
|
5851
5905
|
},
|
|
5852
|
-
borderColor: ({ props: props4, deps }) => props4.borderColor && {
|
|
5906
|
+
borderColor: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderColor) && {
|
|
5853
5907
|
borderColor: deps.getMediaColor(props4.borderColor)
|
|
5854
5908
|
},
|
|
5855
|
-
borderStyle: ({ props: props4 }) => props4.borderStyle && {
|
|
5909
|
+
borderStyle: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.borderStyle) && {
|
|
5856
5910
|
borderStyle: props4.borderStyle
|
|
5857
5911
|
},
|
|
5858
|
-
borderLeft: ({ props: props4, deps }) => props4.borderLeft && {
|
|
5912
|
+
borderLeft: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderLeft) && {
|
|
5859
5913
|
borderLeft: deps.transformBorder(props4.borderLeft)
|
|
5860
5914
|
},
|
|
5861
|
-
borderTop: ({ props: props4, deps }) => props4.borderTop && {
|
|
5915
|
+
borderTop: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderTop) && {
|
|
5862
5916
|
borderTop: deps.transformBorder(props4.borderTop)
|
|
5863
5917
|
},
|
|
5864
|
-
borderRight: ({ props: props4, deps }) => props4.borderRight && {
|
|
5918
|
+
borderRight: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderRight) && {
|
|
5865
5919
|
borderRight: deps.transformBorder(props4.borderRight)
|
|
5866
5920
|
},
|
|
5867
|
-
borderBottom: ({ props: props4, deps }) => props4.borderBottom && {
|
|
5921
|
+
borderBottom: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderBottom) && {
|
|
5868
5922
|
borderBottom: deps.transformBorder(props4.borderBottom)
|
|
5869
5923
|
},
|
|
5870
|
-
boxShadow: ({ props: props4, deps }) => props4.boxShadow && {
|
|
5924
|
+
boxShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.boxShadow) && {
|
|
5871
5925
|
boxShadow: deps.transformShadow(props4.boxShadow)
|
|
5872
5926
|
},
|
|
5873
|
-
textShadow: ({ props: props4, deps }) => props4.textShadow && {
|
|
5927
|
+
textShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textShadow) && {
|
|
5874
5928
|
textShadow: deps.transformShadow(props4.textShadow)
|
|
5875
5929
|
},
|
|
5876
|
-
opacity: ({ props: props4 }) => props4.opacity && {
|
|
5930
|
+
opacity: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.opacity) && {
|
|
5877
5931
|
opacity: props4.opacity
|
|
5878
5932
|
},
|
|
5879
|
-
visibility: ({ props: props4 }) => props4.visibility && {
|
|
5933
|
+
visibility: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.visibility) && {
|
|
5880
5934
|
visibility: props4.visibility
|
|
5881
5935
|
},
|
|
5882
|
-
columnRule: ({ props: props4, deps }) => props4.columnRule && {
|
|
5936
|
+
columnRule: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.columnRule) && {
|
|
5883
5937
|
columnRule: deps.transformBorder(props4.columnRule)
|
|
5884
5938
|
},
|
|
5885
|
-
appearance: ({ props: props4 }) => props4.appearance && {
|
|
5939
|
+
appearance: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.appearance) && {
|
|
5886
5940
|
appearance: props4.appearance
|
|
5887
5941
|
}
|
|
5888
5942
|
}
|
|
@@ -5926,6 +5980,12 @@ var keySetters = {
|
|
|
5926
5980
|
isSubtree ? result : result && result.case,
|
|
5927
5981
|
element
|
|
5928
5982
|
),
|
|
5983
|
+
"-": (key, props4, result, element, isSubtree) => applyVariableProps(
|
|
5984
|
+
key,
|
|
5985
|
+
props4,
|
|
5986
|
+
isSubtree ? result : result && result.variable,
|
|
5987
|
+
element
|
|
5988
|
+
),
|
|
5929
5989
|
".": (key, props4, result, element, isSubtree) => applyConditionalCaseProps(
|
|
5930
5990
|
key,
|
|
5931
5991
|
props4,
|
|
@@ -5950,8 +6010,8 @@ var execClass = (key, props4, result, element) => {
|
|
|
5950
6010
|
state: element.state,
|
|
5951
6011
|
deps: element.deps
|
|
5952
6012
|
});
|
|
5953
|
-
if ((0,
|
|
5954
|
-
classExec = classExec.reduce((a, c) => (0,
|
|
6013
|
+
if ((0, import_utils2.isArray)(classExec)) {
|
|
6014
|
+
classExec = classExec.reduce((a, c) => (0, import_utils2.merge)(a, c), {});
|
|
5955
6015
|
}
|
|
5956
6016
|
for (const finalProp in classExec) {
|
|
5957
6017
|
result[finalProp] = classExec[finalProp];
|
|
@@ -5984,7 +6044,7 @@ var applyMediaProps = (key, props4, result, element) => {
|
|
|
5984
6044
|
const matchesGlobal = name === globalTheme;
|
|
5985
6045
|
if (globalTheme && isTheme) {
|
|
5986
6046
|
if (matchesGlobal)
|
|
5987
|
-
return (0,
|
|
6047
|
+
return (0, import_utils2.merge)(result, generatedClass);
|
|
5988
6048
|
return;
|
|
5989
6049
|
}
|
|
5990
6050
|
const mediaKey = mediaName ? `@media screen and ${mediaName}` : key;
|
|
@@ -6006,28 +6066,33 @@ var applyCaseProps = (key, props4, result, element) => {
|
|
|
6006
6066
|
const isPropTrue = element.props[caseKey];
|
|
6007
6067
|
if (!CASES[caseKey] && !isPropTrue)
|
|
6008
6068
|
return;
|
|
6009
|
-
return (0,
|
|
6069
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6070
|
+
};
|
|
6071
|
+
var applyVariableProps = (key, props4, result, element) => {
|
|
6072
|
+
result[key] = props4;
|
|
6073
|
+
return result;
|
|
6010
6074
|
};
|
|
6011
6075
|
var applyConditionalCaseProps = (key, props4, result, element) => {
|
|
6012
6076
|
const caseKey = key.slice(1);
|
|
6013
6077
|
const isPropTrue = element.props[caseKey] || element.state[caseKey];
|
|
6014
6078
|
if (!isPropTrue)
|
|
6015
6079
|
return;
|
|
6016
|
-
return (0,
|
|
6080
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6017
6081
|
};
|
|
6018
6082
|
var applyConditionalFalsyProps = (key, props4, result, element) => {
|
|
6019
6083
|
const caseKey = key.slice(1);
|
|
6020
6084
|
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
|
|
6021
6085
|
if (!isPropTrue)
|
|
6022
|
-
return (0,
|
|
6086
|
+
return (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6023
6087
|
};
|
|
6024
|
-
var applyTrueProps = (props4, result, element) => (0,
|
|
6088
|
+
var applyTrueProps = (props4, result, element) => (0, import_utils2.merge)(result, convertPropsToClass(props4, result, element));
|
|
6025
6089
|
var beforeClassAssign = (element, s) => {
|
|
6026
6090
|
const { props: props4, class: className, context } = element;
|
|
6027
6091
|
const CLASS_NAMES = {
|
|
6028
6092
|
media: {},
|
|
6029
6093
|
selector: {},
|
|
6030
|
-
case: {}
|
|
6094
|
+
case: {},
|
|
6095
|
+
variable: {}
|
|
6031
6096
|
};
|
|
6032
6097
|
if (!context)
|
|
6033
6098
|
return;
|
|
@@ -6060,7 +6125,7 @@ var beforeClassAssign = (element, s) => {
|
|
|
6060
6125
|
preventDefineUpdate: true
|
|
6061
6126
|
});
|
|
6062
6127
|
}
|
|
6063
|
-
(0,
|
|
6128
|
+
(0, import_utils2.overwriteShallow)(className, CLASS_NAMES);
|
|
6064
6129
|
};
|
|
6065
6130
|
var Media = {
|
|
6066
6131
|
class: {
|
|
@@ -6180,19 +6245,19 @@ var Overflow = {
|
|
|
6180
6245
|
|
|
6181
6246
|
// Atoms/Collection.js
|
|
6182
6247
|
var import_state = __toESM(require_cjs5());
|
|
6183
|
-
var
|
|
6248
|
+
var import_utils3 = __toESM(require_cjs2());
|
|
6184
6249
|
var Collection = {
|
|
6185
6250
|
define: {
|
|
6186
6251
|
$setCollection: (param, el, state) => {
|
|
6187
6252
|
if (!param)
|
|
6188
6253
|
return;
|
|
6189
|
-
if ((0,
|
|
6254
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6190
6255
|
if (param === "state")
|
|
6191
6256
|
param = state.parse();
|
|
6192
6257
|
else
|
|
6193
6258
|
param = (0, import_state.getChildStateInKey)(param, state);
|
|
6194
6259
|
}
|
|
6195
|
-
const data = ((0,
|
|
6260
|
+
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);
|
|
6196
6261
|
if (data.length) {
|
|
6197
6262
|
const t = setTimeout(() => {
|
|
6198
6263
|
el.set({ tag: "fragment", ...data }, { preventDefineUpdate: "$setCollection" });
|
|
@@ -6204,7 +6269,7 @@ var Collection = {
|
|
|
6204
6269
|
$setStateCollection: (param, el, state) => {
|
|
6205
6270
|
if (!param)
|
|
6206
6271
|
return;
|
|
6207
|
-
if ((0,
|
|
6272
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6208
6273
|
if (param === "state")
|
|
6209
6274
|
param = state.parse();
|
|
6210
6275
|
else
|
|
@@ -6212,28 +6277,35 @@ var Collection = {
|
|
|
6212
6277
|
}
|
|
6213
6278
|
if ((0, import_state.isState)(param))
|
|
6214
6279
|
param = param.parse();
|
|
6215
|
-
if ((0,
|
|
6280
|
+
if ((0, import_utils3.isNot)(param)("array", "object"))
|
|
6216
6281
|
return;
|
|
6217
6282
|
if (el.key === "cnt") {
|
|
6218
6283
|
if (el.__ref.__stateCollectionCache) {
|
|
6219
|
-
const d = (0,
|
|
6284
|
+
const d = (0, import_utils3.diff)(param, el.__ref.__stateCollectionCache);
|
|
6220
6285
|
} else {
|
|
6221
|
-
el.__ref.__stateCollectionCache = (0,
|
|
6286
|
+
el.__ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
|
|
6222
6287
|
}
|
|
6223
6288
|
}
|
|
6224
|
-
const obj = {
|
|
6289
|
+
const obj = {
|
|
6290
|
+
tag: "fragment",
|
|
6291
|
+
props: {
|
|
6292
|
+
childProps: el.props.childProps
|
|
6293
|
+
}
|
|
6294
|
+
};
|
|
6225
6295
|
for (const key in param) {
|
|
6226
6296
|
const value = param[key];
|
|
6227
|
-
obj[key] = { state: (0,
|
|
6297
|
+
obj[key] = { state: (0, import_utils3.isObjectLike)(value) ? value : { value } };
|
|
6298
|
+
}
|
|
6299
|
+
if (!(0, import_utils3.deepContains)(obj, el.content)) {
|
|
6300
|
+
el.removeContent();
|
|
6301
|
+
el.content = obj;
|
|
6228
6302
|
}
|
|
6229
|
-
el.removeContent();
|
|
6230
|
-
el.content = obj;
|
|
6231
6303
|
return obj;
|
|
6232
6304
|
},
|
|
6233
6305
|
$setPropsCollection: (param, el, state) => {
|
|
6234
6306
|
if (!param)
|
|
6235
6307
|
return;
|
|
6236
|
-
if ((0,
|
|
6308
|
+
if ((0, import_utils3.isString)(param)) {
|
|
6237
6309
|
if (param === "state")
|
|
6238
6310
|
param = state.parse();
|
|
6239
6311
|
else
|
|
@@ -6241,15 +6313,22 @@ var Collection = {
|
|
|
6241
6313
|
}
|
|
6242
6314
|
if ((0, import_state.isState)(param))
|
|
6243
6315
|
param = param.parse();
|
|
6244
|
-
if ((0,
|
|
6316
|
+
if ((0, import_utils3.isNot)(param)("array", "object"))
|
|
6245
6317
|
return;
|
|
6246
|
-
const obj = {
|
|
6318
|
+
const obj = {
|
|
6319
|
+
tag: "fragment",
|
|
6320
|
+
props: {
|
|
6321
|
+
childProps: el.props.childProps
|
|
6322
|
+
}
|
|
6323
|
+
};
|
|
6247
6324
|
for (const key in param) {
|
|
6248
6325
|
const value = param[key];
|
|
6249
|
-
obj[key] = { props: (0,
|
|
6326
|
+
obj[key] = { props: (0, import_utils3.isObjectLike)(value) ? value : { value } };
|
|
6327
|
+
}
|
|
6328
|
+
if (!(0, import_utils3.deepContains)(obj, el.content)) {
|
|
6329
|
+
el.removeContent();
|
|
6330
|
+
el.content = obj;
|
|
6250
6331
|
}
|
|
6251
|
-
el.removeContent();
|
|
6252
|
-
el.content = obj;
|
|
6253
6332
|
return obj;
|
|
6254
6333
|
}
|
|
6255
6334
|
}
|
|
@@ -6312,7 +6391,7 @@ var Pseudo = {
|
|
|
6312
6391
|
|
|
6313
6392
|
// ../../packages/init/index.js
|
|
6314
6393
|
var import_scratch7 = __toESM(require_cjs());
|
|
6315
|
-
var
|
|
6394
|
+
var import_utils5 = __toESM(require_cjs2());
|
|
6316
6395
|
|
|
6317
6396
|
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
|
|
6318
6397
|
function sheetForTag(tag) {
|
|
@@ -7666,9 +7745,9 @@ var dynamic_default = {};
|
|
|
7666
7745
|
// ../../packages/init/index.js
|
|
7667
7746
|
var CONFIG2 = (0, import_scratch7.getActiveConfig)();
|
|
7668
7747
|
var mergeWithLocalFile = (config = CONFIG2, RC_FILE) => {
|
|
7669
|
-
const rcfile = (0,
|
|
7670
|
-
const clonedFile = (0,
|
|
7671
|
-
return (0,
|
|
7748
|
+
const rcfile = (0, import_utils5.isObject)(RC_FILE) ? RC_FILE : dynamic_default || {};
|
|
7749
|
+
const clonedFile = (0, import_utils5.deepClone)(rcfile.designSystem || {});
|
|
7750
|
+
return (0, import_utils5.deepMerge)(config, clonedFile);
|
|
7672
7751
|
};
|
|
7673
7752
|
var SET_OPTIONS = {
|
|
7674
7753
|
emotion,
|
|
@@ -7756,10 +7835,10 @@ var Svg = {
|
|
|
7756
7835
|
};
|
|
7757
7836
|
|
|
7758
7837
|
// Atoms/Shape/index.js
|
|
7759
|
-
var
|
|
7838
|
+
var import_utils6 = __toESM(require_cjs2());
|
|
7760
7839
|
var import_scratch8 = __toESM(require_cjs());
|
|
7761
7840
|
var transformBorderRadius = (radius, props4, propertyName) => {
|
|
7762
|
-
if (!(0,
|
|
7841
|
+
if (!(0, import_utils6.isString)(radius))
|
|
7763
7842
|
return;
|
|
7764
7843
|
return {
|
|
7765
7844
|
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch8.getSpacingBasedOnRatio)(props4, propertyName, v)[propertyName]).join(" ")
|
|
@@ -7767,7 +7846,7 @@ var transformBorderRadius = (radius, props4, propertyName) => {
|
|
|
7767
7846
|
};
|
|
7768
7847
|
var Shape = {
|
|
7769
7848
|
extend: Pseudo,
|
|
7770
|
-
deps: { exec:
|
|
7849
|
+
deps: { exec: import_utils6.exec, getSpacingBasedOnRatio: import_scratch8.getSpacingBasedOnRatio, getMediaColor: import_scratch8.getMediaColor, transformBorderRadius },
|
|
7771
7850
|
class: {
|
|
7772
7851
|
shape: ({ props: props4, deps }) => {
|
|
7773
7852
|
const { shape } = props4;
|
|
@@ -7866,18 +7945,18 @@ var XYZ = {
|
|
|
7866
7945
|
|
|
7867
7946
|
// Atoms/Animation.js
|
|
7868
7947
|
var import_scratch10 = __toESM(require_cjs());
|
|
7869
|
-
var
|
|
7948
|
+
var import_utils7 = __toESM(require_cjs2());
|
|
7870
7949
|
var applyAnimationProps = (animation, element) => {
|
|
7871
7950
|
const { emotion: ctxEmotion } = element.context;
|
|
7872
7951
|
const { keyframes } = ctxEmotion || emotion;
|
|
7873
|
-
if ((0,
|
|
7952
|
+
if ((0, import_utils7.isObject)(animation))
|
|
7874
7953
|
return { animationName: keyframes(animation) };
|
|
7875
7954
|
const { ANIMATION } = element.context && element.context.designSystem;
|
|
7876
7955
|
const record = ANIMATION[animation];
|
|
7877
7956
|
return keyframes(record);
|
|
7878
7957
|
};
|
|
7879
7958
|
var Animation = {
|
|
7880
|
-
deps: { isObject:
|
|
7959
|
+
deps: { isObject: import_utils7.isObject, getTimingByKey: import_scratch10.getTimingByKey, getTimingFunction: import_scratch10.getTimingFunction, applyAnimationProps },
|
|
7881
7960
|
class: {
|
|
7882
7961
|
animation: (el) => el.props.animation && {
|
|
7883
7962
|
animationName: el.deps.applyAnimationProps(el.props.animation, el),
|
|
@@ -7916,7 +7995,7 @@ var Animation = {
|
|
|
7916
7995
|
};
|
|
7917
7996
|
|
|
7918
7997
|
// Box/index.js
|
|
7919
|
-
var
|
|
7998
|
+
var import_utils8 = __toESM(require_cjs2());
|
|
7920
7999
|
var PropsCSS = {
|
|
7921
8000
|
class: {
|
|
7922
8001
|
style: ({ props: props4 }) => props4 && props4.style
|
|
@@ -7938,7 +8017,7 @@ var Box = {
|
|
|
7938
8017
|
XYZ,
|
|
7939
8018
|
Animation
|
|
7940
8019
|
],
|
|
7941
|
-
deps: { isString:
|
|
8020
|
+
deps: { isString: import_utils8.isString },
|
|
7942
8021
|
attr: {
|
|
7943
8022
|
id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
|
|
7944
8023
|
title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
|
|
@@ -7959,13 +8038,15 @@ var Circle = {
|
|
|
7959
8038
|
};
|
|
7960
8039
|
|
|
7961
8040
|
// Icon/index.js
|
|
8041
|
+
var import_utils9 = __toESM(require_cjs2());
|
|
7962
8042
|
var Icon = {
|
|
7963
8043
|
extend: Svg,
|
|
7964
|
-
|
|
8044
|
+
deps: { isString: import_utils9.isString },
|
|
8045
|
+
props: ({ key, props: props4, parent, context, deps }) => {
|
|
7965
8046
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
7966
8047
|
const { toCamelCase } = context && context.utils;
|
|
7967
8048
|
const iconName = props4.inheritedString || props4.name || props4.icon || key;
|
|
7968
|
-
const camelCase = toCamelCase(iconName);
|
|
8049
|
+
const camelCase = toCamelCase(deps.isString(iconName) ? iconName : key);
|
|
7969
8050
|
const isArray3 = camelCase.split(/([a-z])([A-Z])/g);
|
|
7970
8051
|
let activeIconName;
|
|
7971
8052
|
if (props4.active) {
|
|
@@ -8006,14 +8087,9 @@ var IconText = {
|
|
|
8006
8087
|
align: "center center",
|
|
8007
8088
|
lineHeight: 1
|
|
8008
8089
|
},
|
|
8009
|
-
// TODO: remove this variant
|
|
8010
|
-
icon: {
|
|
8011
|
-
extend: Icon,
|
|
8012
|
-
if: ({ parent }) => parent.props.icon
|
|
8013
|
-
},
|
|
8014
8090
|
Icon: {
|
|
8015
|
-
props: {},
|
|
8016
|
-
if: ({ props: props4 }) => props4.name || props4.icon
|
|
8091
|
+
props: ({ parent, props: props4 }) => ({ icon: parent.props.icon || props4.name || props4.icon }),
|
|
8092
|
+
if: ({ parent, props: props4 }) => parent.props.icon || parent.props.Icon || props4.name || props4.icon
|
|
8017
8093
|
},
|
|
8018
8094
|
text: ({ props: props4 }) => props4.text,
|
|
8019
8095
|
".reversed": {
|
|
@@ -8081,13 +8157,16 @@ var CheckIndicatorWithLabel = {
|
|
|
8081
8157
|
|
|
8082
8158
|
// Indicator/CountIndicator.js
|
|
8083
8159
|
var CountIndicator = {
|
|
8160
|
+
extend: Flex,
|
|
8084
8161
|
props: {
|
|
8085
8162
|
text: "2",
|
|
8086
8163
|
theme: "primary",
|
|
8087
8164
|
boxSize: "fit-content",
|
|
8088
8165
|
lineHeight: "1em",
|
|
8089
|
-
padding: "
|
|
8090
|
-
round: "
|
|
8166
|
+
padding: "X1",
|
|
8167
|
+
round: "100%",
|
|
8168
|
+
align: "center center",
|
|
8169
|
+
aspectRatio: "1 / 1",
|
|
8091
8170
|
color: "white"
|
|
8092
8171
|
}
|
|
8093
8172
|
};
|
|
@@ -8172,7 +8251,7 @@ var TitleParagraphWithButton = {
|
|
|
8172
8251
|
background: "transparent",
|
|
8173
8252
|
color: "white",
|
|
8174
8253
|
padding: "0",
|
|
8175
|
-
|
|
8254
|
+
Icon: {
|
|
8176
8255
|
name: "x",
|
|
8177
8256
|
fontSize: "C"
|
|
8178
8257
|
}
|
|
@@ -8297,15 +8376,14 @@ var RouterLink = {
|
|
|
8297
8376
|
const { href } = props4;
|
|
8298
8377
|
if (!href)
|
|
8299
8378
|
return;
|
|
8300
|
-
const { utils, routerOptions } = ctx;
|
|
8301
|
-
const { router } = utils;
|
|
8379
|
+
const { utils, snippets, routerOptions } = ctx;
|
|
8302
8380
|
const root = el.__ref.__root;
|
|
8303
8381
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
8304
8382
|
const options = props4.routerOptions || routerOptions || {
|
|
8305
8383
|
scrollToOptions: { behaviour: "instant" }
|
|
8306
8384
|
};
|
|
8307
8385
|
if (href && !linkIsExternal) {
|
|
8308
|
-
(router || import_router.router)(href, root, {}, options);
|
|
8386
|
+
(snippets.router || utils.router || import_router.router)(href, root, {}, options);
|
|
8309
8387
|
event.preventDefault();
|
|
8310
8388
|
}
|
|
8311
8389
|
}
|
|
@@ -8364,11 +8442,11 @@ var DoubleHr = {
|
|
|
8364
8442
|
};
|
|
8365
8443
|
|
|
8366
8444
|
// Input/Input.js
|
|
8367
|
-
var
|
|
8445
|
+
var import_utils10 = __toESM(require_cjs2());
|
|
8368
8446
|
var Input = {
|
|
8369
8447
|
tag: "input",
|
|
8370
8448
|
extend: [Focusable],
|
|
8371
|
-
deps: { isString:
|
|
8449
|
+
deps: { isString: import_utils10.isString, replaceLiteralsWithObjectFields: import_utils10.replaceLiteralsWithObjectFields },
|
|
8372
8450
|
props: {
|
|
8373
8451
|
border: "none",
|
|
8374
8452
|
type: "input",
|
|
@@ -8387,8 +8465,8 @@ var Input = {
|
|
|
8387
8465
|
autocomplete: ({ props: props4 }) => props4.autocomplete,
|
|
8388
8466
|
placeholder: ({ props: props4 }) => props4.placeholder,
|
|
8389
8467
|
value: ({ props: props4, state, deps }) => {
|
|
8390
|
-
const { isString:
|
|
8391
|
-
if (
|
|
8468
|
+
const { isString: isString6, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
|
|
8469
|
+
if (isString6(props4.value) && props4.value.includes("{{")) {
|
|
8392
8470
|
return replaceLiteralsWithObjectFields2(props4.value, state);
|
|
8393
8471
|
}
|
|
8394
8472
|
return props4.value;
|
|
@@ -8422,11 +8500,11 @@ var Checkbox = {
|
|
|
8422
8500
|
Input: {
|
|
8423
8501
|
type: "checkbox",
|
|
8424
8502
|
display: "none",
|
|
8425
|
-
":checked
|
|
8503
|
+
":checked + div": {
|
|
8426
8504
|
background: "#0474F2",
|
|
8427
8505
|
border: "1px solid transparent"
|
|
8428
8506
|
},
|
|
8429
|
-
":checked
|
|
8507
|
+
":checked + div > svg": { opacity: "1" }
|
|
8430
8508
|
},
|
|
8431
8509
|
Flex: {
|
|
8432
8510
|
props: {
|
|
@@ -8448,12 +8526,13 @@ var Checkbox = {
|
|
|
8448
8526
|
};
|
|
8449
8527
|
var CheckboxTitleParagraph = {
|
|
8450
8528
|
extend: Flex,
|
|
8529
|
+
tag: "label",
|
|
8451
8530
|
props: {
|
|
8452
8531
|
boxSize: "fit-content",
|
|
8453
8532
|
align: "flex-start flex-start",
|
|
8454
8533
|
gap: "A"
|
|
8455
8534
|
},
|
|
8456
|
-
Checkbox: {},
|
|
8535
|
+
Checkbox: { tag: "div" },
|
|
8457
8536
|
TitleParagraph: {
|
|
8458
8537
|
gap: "Z1",
|
|
8459
8538
|
margin: "Y - - -"
|
|
@@ -8465,7 +8544,7 @@ var Radio = {
|
|
|
8465
8544
|
extend: Checkbox,
|
|
8466
8545
|
Input: {
|
|
8467
8546
|
type: "radio",
|
|
8468
|
-
":checked
|
|
8547
|
+
":checked + div:after": { opacity: "1" }
|
|
8469
8548
|
},
|
|
8470
8549
|
Flex: {
|
|
8471
8550
|
props: {
|
|
@@ -8494,7 +8573,7 @@ var RadioTitleParagraph = {
|
|
|
8494
8573
|
var Toggle = {
|
|
8495
8574
|
extend: Checkbox,
|
|
8496
8575
|
Input: {
|
|
8497
|
-
":checked
|
|
8576
|
+
":checked + div": {
|
|
8498
8577
|
background: "green2 +8",
|
|
8499
8578
|
justifyContent: "flex-end"
|
|
8500
8579
|
}
|
|
@@ -8530,7 +8609,17 @@ var Textarea = {
|
|
|
8530
8609
|
tag: "textarea",
|
|
8531
8610
|
extend: [Input, Flex],
|
|
8532
8611
|
props: {
|
|
8533
|
-
variant: "outlined"
|
|
8612
|
+
variant: "outlined",
|
|
8613
|
+
round: "Z2",
|
|
8614
|
+
maxWidth: "H",
|
|
8615
|
+
minHeight: "E",
|
|
8616
|
+
placeholder: "Leave us a message...",
|
|
8617
|
+
fontSize: "Z1",
|
|
8618
|
+
padding: "A",
|
|
8619
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8620
|
+
border: "1px solid #3F3F43",
|
|
8621
|
+
color: "white",
|
|
8622
|
+
style: { resize: "none" }
|
|
8534
8623
|
},
|
|
8535
8624
|
".simple": {
|
|
8536
8625
|
props: {
|
|
@@ -8545,12 +8634,11 @@ var Textarea = {
|
|
|
8545
8634
|
props: {
|
|
8546
8635
|
border: "1px solid #3F3F43",
|
|
8547
8636
|
background: "transparent",
|
|
8548
|
-
round:
|
|
8637
|
+
// round: 'Y+W',
|
|
8549
8638
|
width: "G1",
|
|
8550
8639
|
height: "D2+W",
|
|
8551
8640
|
lineHeight: 1.4,
|
|
8552
8641
|
placeholder: "Leave us a message...",
|
|
8553
|
-
fontSize: "Y2",
|
|
8554
8642
|
outline: "none !important",
|
|
8555
8643
|
color: "white",
|
|
8556
8644
|
resize: "none"
|
|
@@ -8579,18 +8667,18 @@ var TextareaWithButton = {
|
|
|
8579
8667
|
extend: Flex,
|
|
8580
8668
|
props: { gap: "Y2" },
|
|
8581
8669
|
Textarea: {
|
|
8582
|
-
height: "
|
|
8670
|
+
height: "C2+W",
|
|
8671
|
+
minWidth: "H",
|
|
8583
8672
|
padding: "A",
|
|
8584
8673
|
fontSize: "Z1",
|
|
8585
8674
|
color: "white",
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
// background: 'gray'
|
|
8675
|
+
round: "Z2",
|
|
8676
|
+
minHeight: "dit-content"
|
|
8589
8677
|
},
|
|
8590
8678
|
IconCommonButton: {
|
|
8591
8679
|
props: {
|
|
8592
8680
|
background: "blue",
|
|
8593
|
-
|
|
8681
|
+
Icon: { name: "send" }
|
|
8594
8682
|
}
|
|
8595
8683
|
}
|
|
8596
8684
|
};
|
|
@@ -8626,7 +8714,8 @@ var Select = {
|
|
|
8626
8714
|
|
|
8627
8715
|
// Field/Field.js
|
|
8628
8716
|
var Field = {
|
|
8629
|
-
|
|
8717
|
+
tag: "label",
|
|
8718
|
+
extend: [Focusable, IconText],
|
|
8630
8719
|
props: {
|
|
8631
8720
|
minWidth: "G",
|
|
8632
8721
|
maxWidth: "G",
|
|
@@ -8637,8 +8726,8 @@ var Field = {
|
|
|
8637
8726
|
padding: "- Z+W",
|
|
8638
8727
|
round: "Y+W",
|
|
8639
8728
|
border: "1px solid #3F3F43",
|
|
8640
|
-
overflow: "hidden",
|
|
8641
8729
|
position: "relative",
|
|
8730
|
+
":focus-within": { outline: "1px solid #0474F2" },
|
|
8642
8731
|
Button: {
|
|
8643
8732
|
padding: "0",
|
|
8644
8733
|
background: "transparent",
|
|
@@ -8647,53 +8736,57 @@ var Field = {
|
|
|
8647
8736
|
}
|
|
8648
8737
|
},
|
|
8649
8738
|
Input: {
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8739
|
+
props: {
|
|
8740
|
+
padding: "0",
|
|
8741
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8742
|
+
round: "0",
|
|
8743
|
+
color: "white",
|
|
8744
|
+
fontFamily: "avenir",
|
|
8745
|
+
placeholder: "Placeholder",
|
|
8746
|
+
flex: "1",
|
|
8747
|
+
minHeight: "100%",
|
|
8748
|
+
outline: "none !important",
|
|
8749
|
+
fontWeight: "400"
|
|
8750
|
+
}
|
|
8660
8751
|
}
|
|
8661
8752
|
};
|
|
8662
8753
|
var FieldTemplate = {
|
|
8663
8754
|
extend: Field,
|
|
8664
8755
|
Icon: { props: { name: "info" } },
|
|
8665
8756
|
Input: {},
|
|
8666
|
-
Button: {
|
|
8757
|
+
Button: { Icon: { name: "eye" } }
|
|
8667
8758
|
};
|
|
8668
8759
|
|
|
8669
8760
|
// Field/CommonField.js
|
|
8670
8761
|
var CommonField = {
|
|
8671
8762
|
extend: Flex,
|
|
8763
|
+
tag: "label",
|
|
8672
8764
|
props: {
|
|
8673
8765
|
flow: "column",
|
|
8674
8766
|
boxSize: "fit-content fit-content",
|
|
8675
|
-
gap: "
|
|
8676
|
-
Hint: {
|
|
8677
|
-
align: "center flex-start",
|
|
8678
|
-
text: "",
|
|
8679
|
-
fontSize: "Y",
|
|
8680
|
-
gap: "Y",
|
|
8681
|
-
padding: "- - - Z"
|
|
8682
|
-
}
|
|
8767
|
+
gap: "Z"
|
|
8683
8768
|
},
|
|
8684
8769
|
Title: {
|
|
8685
8770
|
props: {
|
|
8686
8771
|
text: "Label",
|
|
8687
|
-
fontSize: "Z",
|
|
8688
8772
|
lineHeight: "1em",
|
|
8689
|
-
padding: "- - -
|
|
8773
|
+
padding: "- - - V2",
|
|
8690
8774
|
color: "gray4"
|
|
8691
8775
|
}
|
|
8692
8776
|
},
|
|
8693
|
-
Field: {
|
|
8777
|
+
Field: {
|
|
8778
|
+
tag: "div"
|
|
8779
|
+
},
|
|
8694
8780
|
Hint: {
|
|
8695
8781
|
extend: IconText,
|
|
8696
|
-
props: {
|
|
8782
|
+
props: {
|
|
8783
|
+
color: "gray4",
|
|
8784
|
+
align: "center flex-start",
|
|
8785
|
+
text: "",
|
|
8786
|
+
fontSize: "Z1",
|
|
8787
|
+
gap: "Y",
|
|
8788
|
+
padding: "W - - W"
|
|
8789
|
+
}
|
|
8697
8790
|
}
|
|
8698
8791
|
};
|
|
8699
8792
|
var CommonFieldTemplate = {
|
|
@@ -8721,15 +8814,20 @@ var NumberField = {
|
|
|
8721
8814
|
},
|
|
8722
8815
|
Input: null,
|
|
8723
8816
|
NumberInput: {
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8817
|
+
props: {
|
|
8818
|
+
fontSize: "E",
|
|
8819
|
+
placeholder: "0",
|
|
8820
|
+
boxSize: "100% 100%",
|
|
8821
|
+
textAlign: "center",
|
|
8822
|
+
round: "Y",
|
|
8823
|
+
color: "white",
|
|
8824
|
+
background: "rgba(0, 0, 0, 0)",
|
|
8825
|
+
outline: "none !important",
|
|
8826
|
+
style: {
|
|
8827
|
+
"&::-webkit-inner-spin-button": {
|
|
8828
|
+
"-webkit-appearance": "none"
|
|
8829
|
+
}
|
|
8830
|
+
}
|
|
8733
8831
|
}
|
|
8734
8832
|
}
|
|
8735
8833
|
};
|
|
@@ -8738,41 +8836,52 @@ var NumberField = {
|
|
|
8738
8836
|
var Search = {
|
|
8739
8837
|
extend: Field,
|
|
8740
8838
|
props: {
|
|
8741
|
-
minHeight: "C+A",
|
|
8742
8839
|
maxWidth: "H",
|
|
8743
|
-
gap: "
|
|
8744
|
-
padding: "
|
|
8840
|
+
gap: "Y2",
|
|
8841
|
+
padding: "Z2 A1",
|
|
8745
8842
|
background: "gray .92 +8"
|
|
8746
8843
|
},
|
|
8747
8844
|
Icon: {
|
|
8748
8845
|
props: {
|
|
8846
|
+
opacity: ".65",
|
|
8749
8847
|
name: "search",
|
|
8750
|
-
fontSize: "
|
|
8848
|
+
fontSize: "B",
|
|
8751
8849
|
margin: "0 - - -"
|
|
8752
8850
|
}
|
|
8753
8851
|
},
|
|
8754
|
-
Input: {
|
|
8852
|
+
Input: {
|
|
8853
|
+
props: { placeholder: "Type a command or search" }
|
|
8854
|
+
}
|
|
8755
8855
|
};
|
|
8756
8856
|
var SearchWithButton = {
|
|
8757
8857
|
extend: Search,
|
|
8758
8858
|
Icon: {},
|
|
8759
|
-
Input: { ":focus ~ button": { opacity: "1" } },
|
|
8859
|
+
Input: { props: { ":focus ~ button": { opacity: "1" } } },
|
|
8760
8860
|
Button: {
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8861
|
+
props: {
|
|
8862
|
+
opacity: "0",
|
|
8863
|
+
fontSize: "D",
|
|
8864
|
+
icon: "x"
|
|
8865
|
+
},
|
|
8866
|
+
Icon: {
|
|
8867
|
+
on: {
|
|
8868
|
+
click: (e, el) => {
|
|
8869
|
+
el.parent.parent.Input.node.value = "";
|
|
8870
|
+
}
|
|
8871
|
+
}
|
|
8872
|
+
}
|
|
8764
8873
|
}
|
|
8765
8874
|
};
|
|
8766
8875
|
var SearchWithDropDownButton = {
|
|
8767
8876
|
extend: SearchWithButton,
|
|
8768
8877
|
props: {
|
|
8769
8878
|
padding: "- A - 0",
|
|
8770
|
-
|
|
8879
|
+
theme: "tertiary",
|
|
8771
8880
|
maxWidth: "H+C"
|
|
8772
8881
|
},
|
|
8773
8882
|
DropDownButton: {
|
|
8774
8883
|
background: "gray",
|
|
8775
|
-
margin: "-
|
|
8884
|
+
margin: "- Z - -"
|
|
8776
8885
|
},
|
|
8777
8886
|
Icon: {},
|
|
8778
8887
|
Input: {},
|
|
@@ -8823,15 +8932,14 @@ var KangorooButton = {
|
|
|
8823
8932
|
var CommonButton = {
|
|
8824
8933
|
extend: Button,
|
|
8825
8934
|
props: {
|
|
8826
|
-
|
|
8827
|
-
background: "blue",
|
|
8935
|
+
theme: "primary",
|
|
8828
8936
|
boxSize: "fit-content",
|
|
8829
8937
|
padding: "A A2",
|
|
8830
8938
|
round: "Z2",
|
|
8831
8939
|
gap: "Y2",
|
|
8832
8940
|
position: "relative"
|
|
8833
8941
|
},
|
|
8834
|
-
|
|
8942
|
+
Icon: {
|
|
8835
8943
|
props: { fontSize: "C" }
|
|
8836
8944
|
},
|
|
8837
8945
|
Caption: {
|
|
@@ -8844,7 +8952,7 @@ var CommonButton = {
|
|
|
8844
8952
|
var IconCommonButton = {
|
|
8845
8953
|
extend: CommonButton,
|
|
8846
8954
|
props: {
|
|
8847
|
-
|
|
8955
|
+
Icon: { name: "smile" },
|
|
8848
8956
|
boxSize: "fit-content fit-content",
|
|
8849
8957
|
padding: "A",
|
|
8850
8958
|
background: "gray3"
|
|
@@ -8881,26 +8989,26 @@ var CancelConfirmButtons = {
|
|
|
8881
8989
|
var IcontextButton = {
|
|
8882
8990
|
extend: CommonButton,
|
|
8883
8991
|
props: {
|
|
8884
|
-
padding: "A",
|
|
8992
|
+
padding: "A A1",
|
|
8885
8993
|
position: "relative",
|
|
8886
8994
|
background: "gray3",
|
|
8887
|
-
|
|
8995
|
+
Icon: { name: "smile" }
|
|
8888
8996
|
}
|
|
8889
8997
|
};
|
|
8890
8998
|
var DropDownButton = {
|
|
8891
8999
|
extend: CommonButton,
|
|
8892
9000
|
props: {
|
|
8893
|
-
gap: "
|
|
9001
|
+
gap: "X2",
|
|
8894
9002
|
boxSize: "fit-content fit-content",
|
|
8895
|
-
padding: "
|
|
9003
|
+
padding: "Z2 B Z2 A",
|
|
8896
9004
|
round: "Z",
|
|
8897
9005
|
background: "#141416",
|
|
8898
9006
|
color: "white",
|
|
8899
|
-
|
|
9007
|
+
Icon: {
|
|
8900
9008
|
name: "chevronDown",
|
|
8901
9009
|
fontSize: "D"
|
|
8902
9010
|
},
|
|
8903
|
-
Caption: { text: "
|
|
9011
|
+
Caption: { text: "All" }
|
|
8904
9012
|
}
|
|
8905
9013
|
};
|
|
8906
9014
|
var DropDownButtonWithAvatar = {
|
|
@@ -8929,12 +9037,12 @@ var PlusMinusButtons = {
|
|
|
8929
9037
|
},
|
|
8930
9038
|
Minus: {
|
|
8931
9039
|
extend: IconCommonButton,
|
|
8932
|
-
props: {
|
|
9040
|
+
props: { Icon: { name: "minus" } }
|
|
8933
9041
|
},
|
|
8934
9042
|
Value: { props: { text: "1" } },
|
|
8935
9043
|
Plus: {
|
|
8936
9044
|
extend: IconCommonButton,
|
|
8937
|
-
props: {
|
|
9045
|
+
props: { Icon: { name: "plus" } }
|
|
8938
9046
|
}
|
|
8939
9047
|
};
|
|
8940
9048
|
|
|
@@ -9050,7 +9158,7 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
9050
9158
|
};
|
|
9051
9159
|
|
|
9052
9160
|
// Range/index.js
|
|
9053
|
-
var
|
|
9161
|
+
var import_utils11 = __toESM(require_cjs2());
|
|
9054
9162
|
var import_scratch11 = __toESM(require_cjs());
|
|
9055
9163
|
var props = {
|
|
9056
9164
|
appearance: "none",
|
|
@@ -9118,7 +9226,7 @@ var Range = {
|
|
|
9118
9226
|
};
|
|
9119
9227
|
var listenProp = (el, prop, def) => {
|
|
9120
9228
|
const val = el.props && el.props[prop];
|
|
9121
|
-
const r = (0,
|
|
9229
|
+
const r = (0, import_utils11.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
|
|
9122
9230
|
return r + "";
|
|
9123
9231
|
};
|
|
9124
9232
|
var RangeWithButtons = {
|
|
@@ -9127,7 +9235,7 @@ var RangeWithButtons = {
|
|
|
9127
9235
|
props: { theme: "tertiary", icon: "minus" },
|
|
9128
9236
|
on: {
|
|
9129
9237
|
click: (ev, el, s) => {
|
|
9130
|
-
el.props && (0,
|
|
9238
|
+
el.props && (0, import_utils11.isFunction)(el.props.onClick) && el.props.onClick(ev, el, s);
|
|
9131
9239
|
}
|
|
9132
9240
|
}
|
|
9133
9241
|
},
|
|
@@ -9148,8 +9256,8 @@ var RangeWithButtons = {
|
|
|
9148
9256
|
step: (el, s) => listenProp(el, "step", 1)
|
|
9149
9257
|
},
|
|
9150
9258
|
on: {
|
|
9151
|
-
input: (ev, el, s) => el.props && (0,
|
|
9152
|
-
change: (ev, el, s) => el.props && (0,
|
|
9259
|
+
input: (ev, el, s) => el.props && (0, import_utils11.isFunction)(el.props.onInput) && el.props.onInput(ev, el, el.state),
|
|
9260
|
+
change: (ev, el, s) => el.props && (0, import_utils11.isFunction)(el.props.onChange) && el.props.onChange(ev, el, el.state)
|
|
9153
9261
|
}
|
|
9154
9262
|
},
|
|
9155
9263
|
plus: {
|
|
@@ -9157,7 +9265,7 @@ var RangeWithButtons = {
|
|
|
9157
9265
|
props: { theme: "tertiary", icon: "plus" },
|
|
9158
9266
|
on: {
|
|
9159
9267
|
click: (ev, el, s) => {
|
|
9160
|
-
el.props && (0,
|
|
9268
|
+
el.props && (0, import_utils11.isFunction)(el.props.onClick) && el.props.onClick(ev, el, el.state);
|
|
9161
9269
|
}
|
|
9162
9270
|
}
|
|
9163
9271
|
}
|
|
@@ -9184,7 +9292,7 @@ var style_default = {
|
|
|
9184
9292
|
|
|
9185
9293
|
// Slider/index.js
|
|
9186
9294
|
var import_scratch12 = __toESM(require_cjs());
|
|
9187
|
-
var
|
|
9295
|
+
var import_utils12 = __toESM(require_cjs2());
|
|
9188
9296
|
(0, import_scratch12.set)({
|
|
9189
9297
|
theme: {
|
|
9190
9298
|
sliderThumb: {
|
|
@@ -9216,7 +9324,7 @@ var RangeSlider = {
|
|
|
9216
9324
|
};
|
|
9217
9325
|
var listenProp2 = (el, prop, def) => {
|
|
9218
9326
|
const val = el && el.props && el.props[prop];
|
|
9219
|
-
const r = ((0,
|
|
9327
|
+
const r = ((0, import_utils12.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
9220
9328
|
return r;
|
|
9221
9329
|
};
|
|
9222
9330
|
var Slider = {
|
|
@@ -9227,10 +9335,10 @@ var Slider = {
|
|
|
9227
9335
|
},
|
|
9228
9336
|
on: {
|
|
9229
9337
|
click: (ev, el, s) => {
|
|
9230
|
-
el.props && (0,
|
|
9338
|
+
el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
9231
9339
|
const input = el.parent.input;
|
|
9232
9340
|
const props4 = input.props;
|
|
9233
|
-
const value = (0,
|
|
9341
|
+
const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
9234
9342
|
input.node.value = value;
|
|
9235
9343
|
}
|
|
9236
9344
|
}
|
|
@@ -9253,8 +9361,8 @@ var Slider = {
|
|
|
9253
9361
|
step: (el, s) => listenProp2(el, "step", 1)
|
|
9254
9362
|
},
|
|
9255
9363
|
on: {
|
|
9256
|
-
input: (ev, el, s) => el.props && (0,
|
|
9257
|
-
change: (ev, el, s) => el.props && (0,
|
|
9364
|
+
input: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
9365
|
+
change: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
9258
9366
|
}
|
|
9259
9367
|
},
|
|
9260
9368
|
button1: {
|
|
@@ -9264,10 +9372,10 @@ var Slider = {
|
|
|
9264
9372
|
},
|
|
9265
9373
|
on: {
|
|
9266
9374
|
click: (ev, el, s) => {
|
|
9267
|
-
el.props && (0,
|
|
9375
|
+
el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
9268
9376
|
const input = el.parent.input;
|
|
9269
9377
|
const props4 = input.props;
|
|
9270
|
-
const value = (0,
|
|
9378
|
+
const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
9271
9379
|
input.node.value = value;
|
|
9272
9380
|
}
|
|
9273
9381
|
}
|
|
@@ -9322,8 +9430,7 @@ var Avatar = {
|
|
|
9322
9430
|
avatarType: "initials",
|
|
9323
9431
|
borderRadius: "100%",
|
|
9324
9432
|
boxSize: "C+X C+X",
|
|
9325
|
-
|
|
9326
|
-
src: `https://api.dicebear.com/7.x/${props4.avatarType || "adventurer-neutral"}/svg?seed=${props4.key || key}`
|
|
9433
|
+
src: `https://api.dicebear.com/7.x/${props4.avatarType || "initials"}/svg?seed=${props4.key || key}`
|
|
9327
9434
|
})
|
|
9328
9435
|
};
|
|
9329
9436
|
|
|
@@ -9345,16 +9452,20 @@ var AvatarIndicator = {
|
|
|
9345
9452
|
// Avatar/AvatarBundle.js
|
|
9346
9453
|
var AvatarBundle = {
|
|
9347
9454
|
extend: Flex,
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9455
|
+
props: {
|
|
9456
|
+
childProps: {
|
|
9457
|
+
"@light": {
|
|
9458
|
+
border: "X, var(--theme-document-light-background), solid"
|
|
9459
|
+
},
|
|
9460
|
+
"@dark": {
|
|
9461
|
+
border: "X, var(--theme-document-dark-background), solid"
|
|
9462
|
+
},
|
|
9352
9463
|
":not(:last-child)": {
|
|
9353
9464
|
margin: "0 -Y2 0 0"
|
|
9354
9465
|
}
|
|
9355
9466
|
}
|
|
9356
9467
|
},
|
|
9357
|
-
|
|
9468
|
+
childExtend: Avatar
|
|
9358
9469
|
};
|
|
9359
9470
|
|
|
9360
9471
|
// Avatar/AvatarChooser.js
|
|
@@ -9363,6 +9474,7 @@ var AvatarChooser = {
|
|
|
9363
9474
|
tag: "label",
|
|
9364
9475
|
props: {
|
|
9365
9476
|
round: "C",
|
|
9477
|
+
width: "fit-content",
|
|
9366
9478
|
gap: "Y",
|
|
9367
9479
|
padding: "W2 A W2 W2",
|
|
9368
9480
|
theme: "tertiary",
|
|
@@ -9379,7 +9491,7 @@ var AvatarChooser = {
|
|
|
9379
9491
|
Select: {
|
|
9380
9492
|
props: {
|
|
9381
9493
|
outline: "none",
|
|
9382
|
-
pointerEvents: "
|
|
9494
|
+
pointerEvents: "All",
|
|
9383
9495
|
appearance: "none",
|
|
9384
9496
|
border: "none",
|
|
9385
9497
|
width: "100%",
|
|
@@ -9410,6 +9522,9 @@ var AvatarChooser = {
|
|
|
9410
9522
|
console.log(state.key);
|
|
9411
9523
|
}
|
|
9412
9524
|
}
|
|
9525
|
+
},
|
|
9526
|
+
Icon: {
|
|
9527
|
+
name: "arrowDown"
|
|
9413
9528
|
}
|
|
9414
9529
|
};
|
|
9415
9530
|
|
|
@@ -9600,17 +9715,17 @@ var Tab = {
|
|
|
9600
9715
|
extend: IcontextButton,
|
|
9601
9716
|
props: {
|
|
9602
9717
|
boxSize: "fit-content fit-content",
|
|
9603
|
-
|
|
9718
|
+
theme: "secondary",
|
|
9604
9719
|
align: "center flex-start",
|
|
9605
|
-
padding: "Z Z2",
|
|
9606
9720
|
gap: "Z",
|
|
9607
9721
|
position: "relative"
|
|
9608
9722
|
},
|
|
9609
|
-
|
|
9723
|
+
Icon: {},
|
|
9610
9724
|
Caption: {},
|
|
9611
9725
|
CountIndicator: {
|
|
9612
|
-
|
|
9613
|
-
|
|
9726
|
+
fontSize: "Y2",
|
|
9727
|
+
margin: "- -X - X",
|
|
9728
|
+
text: "19"
|
|
9614
9729
|
}
|
|
9615
9730
|
};
|
|
9616
9731
|
var IconTab = {
|
|
@@ -9619,11 +9734,11 @@ var IconTab = {
|
|
|
9619
9734
|
Span: null,
|
|
9620
9735
|
CountIndicator: {
|
|
9621
9736
|
position: "absolute",
|
|
9622
|
-
top: "-
|
|
9623
|
-
right: "-
|
|
9737
|
+
top: "-Y1",
|
|
9738
|
+
right: "-Y1",
|
|
9624
9739
|
fontSize: "Y",
|
|
9625
9740
|
fontWeight: "500",
|
|
9626
|
-
padding: "
|
|
9741
|
+
padding: "X1",
|
|
9627
9742
|
text: "19"
|
|
9628
9743
|
}
|
|
9629
9744
|
};
|
|
@@ -9772,7 +9887,7 @@ var LineStepsWithTitleParagraph = {
|
|
|
9772
9887
|
extend: Flex,
|
|
9773
9888
|
props: {
|
|
9774
9889
|
flow: "column",
|
|
9775
|
-
padding: "B",
|
|
9890
|
+
padding: "A1 B B",
|
|
9776
9891
|
background: "gray",
|
|
9777
9892
|
round: "A",
|
|
9778
9893
|
boxSize: "fit-content",
|
|
@@ -9810,7 +9925,7 @@ var ParagraphButton = {
|
|
|
9810
9925
|
},
|
|
9811
9926
|
P: {
|
|
9812
9927
|
props: {
|
|
9813
|
-
text: "Didn
|
|
9928
|
+
text: "Didn't get the code?",
|
|
9814
9929
|
color: "gray2",
|
|
9815
9930
|
margin: "0"
|
|
9816
9931
|
}
|
|
@@ -9825,14 +9940,18 @@ var ParagraphButton = {
|
|
|
9825
9940
|
};
|
|
9826
9941
|
var ParagraphButtonWithCheckbox = {
|
|
9827
9942
|
extend: Flex,
|
|
9943
|
+
tag: "label",
|
|
9828
9944
|
props: {
|
|
9829
|
-
gap: "
|
|
9945
|
+
gap: "1ch",
|
|
9830
9946
|
alignItems: "center"
|
|
9831
9947
|
},
|
|
9832
9948
|
Checkbox: {
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9949
|
+
tag: "div",
|
|
9950
|
+
props: {
|
|
9951
|
+
Input: {},
|
|
9952
|
+
Flex: {
|
|
9953
|
+
fontSize: "A1"
|
|
9954
|
+
}
|
|
9836
9955
|
}
|
|
9837
9956
|
},
|
|
9838
9957
|
ParagraphButton: {
|
|
@@ -9853,7 +9972,7 @@ var SocialLink = {
|
|
|
9853
9972
|
round: "Y+W",
|
|
9854
9973
|
maxHeight: `${48 / 16}em`,
|
|
9855
9974
|
cursor: "pointer",
|
|
9856
|
-
|
|
9975
|
+
Icon: {
|
|
9857
9976
|
name: "twitch",
|
|
9858
9977
|
boxSize: "A2"
|
|
9859
9978
|
},
|
|
@@ -9863,11 +9982,10 @@ var SocialLink = {
|
|
|
9863
9982
|
|
|
9864
9983
|
// Dialog/index.js
|
|
9865
9984
|
var Dialog = {
|
|
9985
|
+
extend: Flex,
|
|
9866
9986
|
props: {
|
|
9867
|
-
theme: "
|
|
9987
|
+
theme: "dialog",
|
|
9868
9988
|
round: "Z2",
|
|
9869
|
-
margin: "E",
|
|
9870
|
-
overflow: "hidden",
|
|
9871
9989
|
padding: "- Z - -"
|
|
9872
9990
|
}
|
|
9873
9991
|
};
|
|
@@ -9912,13 +10030,12 @@ var DialogFooter = {
|
|
|
9912
10030
|
|
|
9913
10031
|
// Modal/Modal.js
|
|
9914
10032
|
var Modal = {
|
|
9915
|
-
extend:
|
|
10033
|
+
extend: Dialog,
|
|
9916
10034
|
props: {
|
|
9917
10035
|
flow: "column",
|
|
9918
|
-
background: "gray",
|
|
9919
10036
|
boxSize: "fit-content fit-content",
|
|
9920
|
-
round: "Z+X",
|
|
9921
10037
|
padding: "A",
|
|
10038
|
+
gap: "B1",
|
|
9922
10039
|
minWidth: "G3+Z1"
|
|
9923
10040
|
},
|
|
9924
10041
|
Header: {
|
|
@@ -9936,7 +10053,7 @@ var Modal = {
|
|
|
9936
10053
|
p: { props: { color: "white" } }
|
|
9937
10054
|
}
|
|
9938
10055
|
},
|
|
9939
|
-
Content: { extend:
|
|
10056
|
+
Content: { extend: Flex },
|
|
9940
10057
|
Footer: { extend: Flex }
|
|
9941
10058
|
};
|
|
9942
10059
|
|
|
@@ -10024,20 +10141,20 @@ var Message = {
|
|
|
10024
10141
|
};
|
|
10025
10142
|
|
|
10026
10143
|
// Modal/Pricing.js
|
|
10027
|
-
var
|
|
10144
|
+
var Pricing = {
|
|
10028
10145
|
extend: Modal,
|
|
10029
10146
|
props: {
|
|
10030
10147
|
background: "gray3",
|
|
10031
|
-
gap: "
|
|
10148
|
+
gap: "B",
|
|
10032
10149
|
minWidth: "G+B",
|
|
10033
10150
|
maxWidth: "G+B",
|
|
10034
|
-
padding: "
|
|
10151
|
+
padding: "A1"
|
|
10035
10152
|
},
|
|
10036
10153
|
Header: null,
|
|
10037
10154
|
Content: {
|
|
10038
10155
|
props: {
|
|
10039
10156
|
flow: "column",
|
|
10040
|
-
gap: "
|
|
10157
|
+
gap: "A1"
|
|
10041
10158
|
},
|
|
10042
10159
|
childExtend: {
|
|
10043
10160
|
extend: UnitValue,
|
|
@@ -10063,11 +10180,15 @@ var Pracing = {
|
|
|
10063
10180
|
]
|
|
10064
10181
|
},
|
|
10065
10182
|
Footer: {
|
|
10183
|
+
props: {
|
|
10184
|
+
margin: "- -X -X"
|
|
10185
|
+
},
|
|
10066
10186
|
CommonButton: {
|
|
10067
10187
|
flex: "1",
|
|
10068
10188
|
padding: "Z2 -",
|
|
10069
10189
|
round: "Y2",
|
|
10070
|
-
|
|
10190
|
+
theme: "secondary",
|
|
10191
|
+
margin: "- -X -X",
|
|
10071
10192
|
Caption: {
|
|
10072
10193
|
text: "Add promo code",
|
|
10073
10194
|
fontSize: "Z",
|
|
@@ -10078,16 +10199,25 @@ var Pracing = {
|
|
|
10078
10199
|
};
|
|
10079
10200
|
|
|
10080
10201
|
// Modal/VerificationCode.js
|
|
10202
|
+
var NUMBERS = [null, null, null, null];
|
|
10081
10203
|
var VerificationCode = {
|
|
10082
10204
|
extend: Modal,
|
|
10083
10205
|
props: {
|
|
10084
10206
|
maxWidth: "G3",
|
|
10085
10207
|
gap: "A2"
|
|
10086
10208
|
},
|
|
10209
|
+
state: { value: NUMBERS },
|
|
10087
10210
|
Header: {
|
|
10088
10211
|
props: { gap: "A" },
|
|
10089
10212
|
Title: { h5: { text: "Verify your email" } },
|
|
10090
|
-
Paragraph: {
|
|
10213
|
+
Paragraph: {
|
|
10214
|
+
p: {
|
|
10215
|
+
props: {
|
|
10216
|
+
text: "Verification code has been sent to you. Enter the code below.",
|
|
10217
|
+
lineHeight: "1.5em"
|
|
10218
|
+
}
|
|
10219
|
+
}
|
|
10220
|
+
}
|
|
10091
10221
|
},
|
|
10092
10222
|
Content: {
|
|
10093
10223
|
props: {
|
|
@@ -10100,10 +10230,50 @@ var VerificationCode = {
|
|
|
10100
10230
|
justifyContent: "space-between",
|
|
10101
10231
|
flex: "1"
|
|
10102
10232
|
},
|
|
10103
|
-
childExtend:
|
|
10233
|
+
childExtend: {
|
|
10234
|
+
extend: NumberField,
|
|
10235
|
+
NumberInput: {
|
|
10236
|
+
props: ({ parent, state }) => ({
|
|
10237
|
+
...NumberField.NumberInput.props,
|
|
10238
|
+
value: state.value[parent.key] || ""
|
|
10239
|
+
}),
|
|
10240
|
+
on: {
|
|
10241
|
+
keydown: (event, element, state) => {
|
|
10242
|
+
const { value } = element.node;
|
|
10243
|
+
if (value.length > 1)
|
|
10244
|
+
return false;
|
|
10245
|
+
},
|
|
10246
|
+
keyup: (event, element, state) => {
|
|
10247
|
+
const { target, keyCode } = event;
|
|
10248
|
+
const { value } = target;
|
|
10249
|
+
const next2 = element.parent.nextElement();
|
|
10250
|
+
const previous = element.parent.previousElement();
|
|
10251
|
+
const isNumber = keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105;
|
|
10252
|
+
const isBackspace = event.keyCode === 8 || event.keyCode === 46;
|
|
10253
|
+
target.select();
|
|
10254
|
+
if (isNumber && value.length && next2)
|
|
10255
|
+
next2.NumberInput.node.focus();
|
|
10256
|
+
if ((!value.length || isBackspace) && previous)
|
|
10257
|
+
previous.NumberInput.node.focus();
|
|
10258
|
+
state.value[element.parent.key] = value;
|
|
10259
|
+
},
|
|
10260
|
+
paste: (event, element, state) => {
|
|
10261
|
+
event.preventDefault();
|
|
10262
|
+
const paste = (event.clipboardData || window.clipboardData).getData("text");
|
|
10263
|
+
if (!paste)
|
|
10264
|
+
return;
|
|
10265
|
+
const value = paste.split("");
|
|
10266
|
+
state.update({ value }, { overwrite: "shallow" });
|
|
10267
|
+
}
|
|
10268
|
+
}
|
|
10269
|
+
}
|
|
10270
|
+
},
|
|
10104
10271
|
...[{}, {}, {}, {}]
|
|
10105
10272
|
},
|
|
10106
|
-
ParagraphButton: {
|
|
10273
|
+
ParagraphButton: {
|
|
10274
|
+
extend: ParagraphButton,
|
|
10275
|
+
props: { padding: "- - - Y" }
|
|
10276
|
+
}
|
|
10107
10277
|
},
|
|
10108
10278
|
Footer: {
|
|
10109
10279
|
props: {
|
|
@@ -10114,7 +10284,7 @@ var VerificationCode = {
|
|
|
10114
10284
|
extend: CancelConfirmButtons,
|
|
10115
10285
|
props: { childProps: { ":first-child": { border: "none" } } },
|
|
10116
10286
|
...[
|
|
10117
|
-
{},
|
|
10287
|
+
{ Caption: { text: "Cancel" } },
|
|
10118
10288
|
{ Caption: { text: "Verify" } }
|
|
10119
10289
|
]
|
|
10120
10290
|
}
|
|
@@ -10127,53 +10297,40 @@ var List = {
|
|
|
10127
10297
|
position: "relative",
|
|
10128
10298
|
overflow: "hidden",
|
|
10129
10299
|
round: "Z1",
|
|
10130
|
-
background: "gray",
|
|
10131
10300
|
minWidth: "F1",
|
|
10132
|
-
|
|
10301
|
+
theme: "dialog",
|
|
10302
|
+
":before, &:after": {
|
|
10133
10303
|
content: '""',
|
|
10134
10304
|
position: "absolute",
|
|
10135
10305
|
boxSize: "A2 100%",
|
|
10136
|
-
top: "0",
|
|
10137
|
-
left: "0",
|
|
10138
10306
|
zIndex: "2",
|
|
10139
|
-
|
|
10307
|
+
left: "0",
|
|
10308
|
+
pointerEvents: "none"
|
|
10309
|
+
},
|
|
10310
|
+
":before": {
|
|
10311
|
+
top: "0",
|
|
10312
|
+
background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
|
|
10140
10313
|
},
|
|
10141
10314
|
":after": {
|
|
10142
|
-
content: '""',
|
|
10143
|
-
position: "absolute",
|
|
10144
|
-
boxSize: "A2 100%",
|
|
10145
10315
|
bottom: "0",
|
|
10146
|
-
|
|
10147
|
-
zIndex: "2",
|
|
10148
|
-
background: "linear-gradient(to top, rgba(20, 20, 22, 1) 0%, rgba(20, 20, 22, 0) 100%)"
|
|
10316
|
+
background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
|
|
10149
10317
|
}
|
|
10150
10318
|
},
|
|
10151
10319
|
Flex: {
|
|
10152
10320
|
props: {
|
|
10153
10321
|
flow: "column",
|
|
10154
10322
|
maxHeight: "F+C",
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
"::-webkit-scrollbar": { display: "none" }
|
|
10158
|
-
}
|
|
10323
|
+
overflow: "auto",
|
|
10324
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
10159
10325
|
},
|
|
10160
10326
|
childExtend: {
|
|
10161
10327
|
props: {
|
|
10162
10328
|
padding: "Z1 A1",
|
|
10163
10329
|
position: "relative",
|
|
10164
10330
|
cursor: "pointer",
|
|
10165
|
-
":
|
|
10166
|
-
content: '""',
|
|
10167
|
-
boxSize: "100% 100%",
|
|
10168
|
-
position: "absolute",
|
|
10169
|
-
top: "0",
|
|
10170
|
-
left: "0",
|
|
10171
|
-
opacity: "0",
|
|
10331
|
+
":hover": {
|
|
10172
10332
|
background: "gray .92 +8"
|
|
10173
|
-
// background: '#141416'
|
|
10174
10333
|
},
|
|
10175
|
-
":hover > *": { zIndex: "5" },
|
|
10176
|
-
":hover:after": { opacity: "1", zIndex: "4" },
|
|
10177
10334
|
childProps: { position: "relative" }
|
|
10178
10335
|
}
|
|
10179
10336
|
}
|
|
@@ -10184,6 +10341,12 @@ var ListTemplate = {
|
|
|
10184
10341
|
props: { maxWidth: "F" },
|
|
10185
10342
|
Flex: {
|
|
10186
10343
|
...[
|
|
10344
|
+
{ span: { text: "Item" } },
|
|
10345
|
+
{ span: { text: "Item" } },
|
|
10346
|
+
{ span: { text: "Item" } },
|
|
10347
|
+
{ span: { text: "Item" } },
|
|
10348
|
+
{ span: { text: "Item" } },
|
|
10349
|
+
{ span: { text: "Item" } },
|
|
10187
10350
|
{ span: { text: "Item" } },
|
|
10188
10351
|
{ span: { text: "Item" } },
|
|
10189
10352
|
{ span: { text: "Item" } },
|
|
@@ -10208,11 +10371,14 @@ var ListWithTitle = {
|
|
|
10208
10371
|
Title: {
|
|
10209
10372
|
tag: "h5",
|
|
10210
10373
|
props: {
|
|
10374
|
+
position: "sticky",
|
|
10375
|
+
top: "0",
|
|
10376
|
+
zIndex: "3",
|
|
10211
10377
|
text: "Group name",
|
|
10212
10378
|
fontSize: "Z",
|
|
10213
10379
|
color: "gray .92 +68",
|
|
10214
10380
|
fontWeight: "400",
|
|
10215
|
-
|
|
10381
|
+
theme: "dialog",
|
|
10216
10382
|
padding: "A"
|
|
10217
10383
|
}
|
|
10218
10384
|
},
|
|
@@ -10235,8 +10401,6 @@ var ListWithTitleTemplate = {
|
|
|
10235
10401
|
{ span: { text: "Item" } },
|
|
10236
10402
|
{ span: { text: "Item" } },
|
|
10237
10403
|
{ span: { text: "Item" } },
|
|
10238
|
-
{ span: { text: "Item" } },
|
|
10239
|
-
{ span: { text: "Item" } },
|
|
10240
10404
|
{ span: { text: "Item" } }
|
|
10241
10405
|
]
|
|
10242
10406
|
}
|
|
@@ -10249,15 +10413,14 @@ var GroupList = {
|
|
|
10249
10413
|
props: {
|
|
10250
10414
|
flow: "column",
|
|
10251
10415
|
overflow: "hidden",
|
|
10416
|
+
theme: "dialog",
|
|
10252
10417
|
maxHeight: "H",
|
|
10253
|
-
background: "gray3",
|
|
10254
10418
|
round: "Z1",
|
|
10255
10419
|
maxWidth: "G"
|
|
10256
10420
|
},
|
|
10257
10421
|
Header: {
|
|
10258
10422
|
extend: Flex,
|
|
10259
10423
|
props: {
|
|
10260
|
-
background: "gray",
|
|
10261
10424
|
padding: "Z - Z A"
|
|
10262
10425
|
},
|
|
10263
10426
|
h4: {
|
|
@@ -10271,37 +10434,17 @@ var GroupList = {
|
|
|
10271
10434
|
},
|
|
10272
10435
|
Groups: {
|
|
10273
10436
|
props: {
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
":before": {
|
|
10278
|
-
content: '""',
|
|
10279
|
-
position: "absolute",
|
|
10280
|
-
boxSize: "A1 100%",
|
|
10281
|
-
top: "0",
|
|
10282
|
-
left: "0",
|
|
10283
|
-
zIndex: "2",
|
|
10284
|
-
background: "linear-gradient(to bottom, rgba(28, 28, 31, 1) 0%, rgba(28, 28, 31, 0) 100%)"
|
|
10285
|
-
},
|
|
10286
|
-
":after": {
|
|
10287
|
-
content: '""',
|
|
10288
|
-
position: "absolute",
|
|
10289
|
-
boxSize: "A1 100%",
|
|
10290
|
-
bottom: "0",
|
|
10291
|
-
left: "0",
|
|
10292
|
-
zIndex: "2",
|
|
10293
|
-
background: "linear-gradient(to top, rgba(28, 28, 31, 1) 0%, rgba(28, 28, 31, 0) 100%)"
|
|
10294
|
-
}
|
|
10437
|
+
...List.props,
|
|
10438
|
+
theme: null,
|
|
10439
|
+
round: "0"
|
|
10295
10440
|
},
|
|
10296
10441
|
Flex: {
|
|
10297
10442
|
extend: Flex,
|
|
10298
10443
|
props: {
|
|
10299
10444
|
flow: "column",
|
|
10300
10445
|
maxHeight: "G2",
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
"::-webkit-scrollbar": { display: "none" }
|
|
10304
|
-
}
|
|
10446
|
+
overflow: "auto",
|
|
10447
|
+
"::-webkit-scrollbar": { display: "none" }
|
|
10305
10448
|
},
|
|
10306
10449
|
childExtend: {
|
|
10307
10450
|
extend: ListWithTitle,
|
|
@@ -10367,6 +10510,14 @@ var GroupListTemplate = {
|
|
|
10367
10510
|
List: {
|
|
10368
10511
|
Flex: {
|
|
10369
10512
|
...[
|
|
10513
|
+
{ span: { text: "Item" } },
|
|
10514
|
+
{ span: { text: "Item" } },
|
|
10515
|
+
{ span: { text: "Item" } },
|
|
10516
|
+
{ span: { text: "Item" } },
|
|
10517
|
+
{ span: { text: "Item" } },
|
|
10518
|
+
{ span: { text: "Item" } },
|
|
10519
|
+
{ span: { text: "Item" } },
|
|
10520
|
+
{ span: { text: "Item" } },
|
|
10370
10521
|
{ span: { text: "Item" } },
|
|
10371
10522
|
{ span: { text: "Item" } },
|
|
10372
10523
|
{ span: { text: "Item" } },
|
|
@@ -10389,7 +10540,7 @@ var GroupListWithSearch = {
|
|
|
10389
10540
|
SearchContainer: {
|
|
10390
10541
|
extend: Flex,
|
|
10391
10542
|
props: {
|
|
10392
|
-
padding: "
|
|
10543
|
+
padding: "X Y"
|
|
10393
10544
|
},
|
|
10394
10545
|
Search: {
|
|
10395
10546
|
extend: Search,
|
|
@@ -10397,8 +10548,10 @@ var GroupListWithSearch = {
|
|
|
10397
10548
|
maxWidth: "100%",
|
|
10398
10549
|
minWidth: "100%",
|
|
10399
10550
|
minHeight: "C+Y",
|
|
10400
|
-
round: "
|
|
10401
|
-
|
|
10551
|
+
round: "C",
|
|
10552
|
+
fontSize: "Z2",
|
|
10553
|
+
border: "none",
|
|
10554
|
+
background: "black .25"
|
|
10402
10555
|
},
|
|
10403
10556
|
Icon: {
|
|
10404
10557
|
props: {
|
|
@@ -10571,7 +10724,7 @@ var TimePicker = {
|
|
|
10571
10724
|
props: {
|
|
10572
10725
|
flow: "column",
|
|
10573
10726
|
width: "fit-content",
|
|
10574
|
-
padding: "
|
|
10727
|
+
padding: "Z2 A"
|
|
10575
10728
|
},
|
|
10576
10729
|
Title: {
|
|
10577
10730
|
fontSize: "Z1",
|
|
@@ -10657,7 +10810,7 @@ var DropdownList = {
|
|
|
10657
10810
|
svg: { opacity: "0.5" }
|
|
10658
10811
|
}
|
|
10659
10812
|
},
|
|
10660
|
-
|
|
10813
|
+
Icon: {
|
|
10661
10814
|
active: state.active === key,
|
|
10662
10815
|
name: "checkmark",
|
|
10663
10816
|
opacity: "0.1",
|
|
@@ -10691,8 +10844,9 @@ var DropdownParent = {
|
|
|
10691
10844
|
// Form/CommonForm.js
|
|
10692
10845
|
var CommonForm = {
|
|
10693
10846
|
extend: [Form, Grid],
|
|
10847
|
+
tag: "form",
|
|
10694
10848
|
props: {
|
|
10695
|
-
gap: "
|
|
10849
|
+
gap: "B2",
|
|
10696
10850
|
height: "fit-content",
|
|
10697
10851
|
margin: "0",
|
|
10698
10852
|
width: "100%"
|
|
@@ -10701,13 +10855,15 @@ var CommonForm = {
|
|
|
10701
10855
|
extend: CommonField,
|
|
10702
10856
|
props: {
|
|
10703
10857
|
minWidth: "100%",
|
|
10704
|
-
Textarea: {
|
|
10858
|
+
Textarea: {
|
|
10859
|
+
width: "100%",
|
|
10860
|
+
maxWidth: "100%"
|
|
10861
|
+
},
|
|
10705
10862
|
Hint: { color: "gray .92 +68" }
|
|
10706
10863
|
},
|
|
10707
|
-
Title: {
|
|
10864
|
+
Title: {},
|
|
10708
10865
|
Field: {
|
|
10709
|
-
props: { minWidth: "100%" }
|
|
10710
|
-
Input: { fontSize: "Y2" }
|
|
10866
|
+
props: { minWidth: "100%" }
|
|
10711
10867
|
}
|
|
10712
10868
|
}
|
|
10713
10869
|
};
|
|
@@ -10717,16 +10873,17 @@ var ResetPassword = {
|
|
|
10717
10873
|
extend: Modal,
|
|
10718
10874
|
props: {
|
|
10719
10875
|
minWidth: "H+B",
|
|
10720
|
-
gap: "
|
|
10876
|
+
gap: "B1",
|
|
10877
|
+
Content: {}
|
|
10721
10878
|
},
|
|
10722
10879
|
Header: {
|
|
10723
|
-
props: { gap: "
|
|
10880
|
+
props: { gap: "Z2" },
|
|
10724
10881
|
Title: { h5: { text: "Choose new password" } },
|
|
10725
|
-
Paragraph: { p: { text: "Almost done. Enter your new password and you
|
|
10882
|
+
Paragraph: { p: { text: "Almost done. Enter your new password and you're all set" } }
|
|
10726
10883
|
},
|
|
10727
10884
|
Content: {
|
|
10728
10885
|
extend: CommonForm,
|
|
10729
|
-
props: {
|
|
10886
|
+
props: { flow: "column" },
|
|
10730
10887
|
...[{
|
|
10731
10888
|
Title: { text: "Old password" },
|
|
10732
10889
|
Field: {},
|
|
@@ -10766,12 +10923,12 @@ var ContactForm = {
|
|
|
10766
10923
|
props: {
|
|
10767
10924
|
minWidth: "H+B",
|
|
10768
10925
|
maxWidth: "H+B",
|
|
10769
|
-
|
|
10926
|
+
gap: "B2",
|
|
10927
|
+
padding: "A2 A2"
|
|
10770
10928
|
},
|
|
10771
10929
|
Header: {
|
|
10772
10930
|
props: {
|
|
10773
|
-
gap: "Y2"
|
|
10774
|
-
padding: "- - B1 W"
|
|
10931
|
+
gap: "Y2"
|
|
10775
10932
|
},
|
|
10776
10933
|
Title: {
|
|
10777
10934
|
h5: {
|
|
@@ -10816,17 +10973,17 @@ var ContactForm = {
|
|
|
10816
10973
|
props: { gridColumn: "1 / span 2" },
|
|
10817
10974
|
Title: { text: "Message" },
|
|
10818
10975
|
Field: null,
|
|
10819
|
-
Textarea,
|
|
10976
|
+
Textarea: {},
|
|
10820
10977
|
Hint: null
|
|
10821
10978
|
}
|
|
10822
10979
|
]
|
|
10823
10980
|
},
|
|
10824
10981
|
ParagraphButtonWithCheckbox: {
|
|
10825
|
-
padding: "A1 Z
|
|
10982
|
+
padding: "A1 Z - W",
|
|
10826
10983
|
Checkbox: {},
|
|
10827
10984
|
ParagraphButton: {
|
|
10828
10985
|
P: { text: "You agree to" },
|
|
10829
|
-
Button: { text: "
|
|
10986
|
+
Button: { text: "Privacy Policy" }
|
|
10830
10987
|
}
|
|
10831
10988
|
}
|
|
10832
10989
|
},
|
|
@@ -10848,7 +11005,7 @@ var SignUp = {
|
|
|
10848
11005
|
props: {
|
|
10849
11006
|
minWidth: "H+B",
|
|
10850
11007
|
maxWidth: "H+B",
|
|
10851
|
-
padding: "
|
|
11008
|
+
padding: "A2 A2"
|
|
10852
11009
|
},
|
|
10853
11010
|
Header: {
|
|
10854
11011
|
props: { gap: "Y1" },
|
|
@@ -10911,11 +11068,11 @@ var SignUp = {
|
|
|
10911
11068
|
]
|
|
10912
11069
|
},
|
|
10913
11070
|
ParagraphButtonWithCheckbox: {
|
|
10914
|
-
padding: "A1 Z
|
|
11071
|
+
padding: "A1 Z - W",
|
|
10915
11072
|
Checkbox: {},
|
|
10916
11073
|
ParagraphButton: {
|
|
10917
11074
|
P: { text: "You agree to" },
|
|
10918
|
-
Button: { text: "
|
|
11075
|
+
Button: { text: "Privacy Policy" }
|
|
10919
11076
|
}
|
|
10920
11077
|
}
|
|
10921
11078
|
},
|
|
@@ -10980,7 +11137,7 @@ var LogIn = {
|
|
|
10980
11137
|
Title: { text: "Password" },
|
|
10981
11138
|
Field: {
|
|
10982
11139
|
Input: { placeholder: "Enter your password" },
|
|
10983
|
-
Button: {
|
|
11140
|
+
Button: { Icon: { name: "eye" } }
|
|
10984
11141
|
}
|
|
10985
11142
|
}
|
|
10986
11143
|
]
|
|
@@ -11022,7 +11179,7 @@ var LogIn = {
|
|
|
11022
11179
|
{},
|
|
11023
11180
|
{
|
|
11024
11181
|
props: {
|
|
11025
|
-
|
|
11182
|
+
Icon: { name: "facebook" },
|
|
11026
11183
|
text: "Continue with Facebook"
|
|
11027
11184
|
}
|
|
11028
11185
|
}
|
|
@@ -11092,12 +11249,12 @@ var UploadButton = {
|
|
|
11092
11249
|
extend: CommonButton,
|
|
11093
11250
|
props: {
|
|
11094
11251
|
position: "relative",
|
|
11252
|
+
theme: "transparent",
|
|
11095
11253
|
padding: "0",
|
|
11096
11254
|
color: "#0474F2",
|
|
11097
11255
|
boxSize: "fit-content fit-content",
|
|
11098
11256
|
overflow: "hidden",
|
|
11099
11257
|
fontWeight: "500",
|
|
11100
|
-
background: "transparent",
|
|
11101
11258
|
cursor: "pointer",
|
|
11102
11259
|
Caption: { text: "Choose file" }
|
|
11103
11260
|
},
|
|
@@ -11117,10 +11274,10 @@ var UploadButtonWithIcon = {
|
|
|
11117
11274
|
extend: UploadButton,
|
|
11118
11275
|
props: {
|
|
11119
11276
|
gap: "Z",
|
|
11120
|
-
|
|
11121
|
-
background: "#0474F2",
|
|
11277
|
+
theme: "primary",
|
|
11122
11278
|
padding: "A B",
|
|
11123
|
-
round: "A"
|
|
11279
|
+
round: "A",
|
|
11280
|
+
color: "white"
|
|
11124
11281
|
},
|
|
11125
11282
|
Icon: {
|
|
11126
11283
|
props: {
|
|
@@ -11218,7 +11375,7 @@ var UploadModal = {
|
|
|
11218
11375
|
Footer: {
|
|
11219
11376
|
UploadButtonWithIcon: {
|
|
11220
11377
|
flex: 1,
|
|
11221
|
-
|
|
11378
|
+
Icon: { display: "none" },
|
|
11222
11379
|
Caption: { text: "Choose file" }
|
|
11223
11380
|
}
|
|
11224
11381
|
}
|
|
@@ -11238,7 +11395,7 @@ var UploadModal2 = {
|
|
|
11238
11395
|
padding: "- X"
|
|
11239
11396
|
},
|
|
11240
11397
|
IconText: {
|
|
11241
|
-
|
|
11398
|
+
Icon: { name: "info" },
|
|
11242
11399
|
text: "Support",
|
|
11243
11400
|
gap: "Z"
|
|
11244
11401
|
},
|
|
@@ -11490,7 +11647,7 @@ var User = {
|
|
|
11490
11647
|
extend: TitleParagraph,
|
|
11491
11648
|
props: {
|
|
11492
11649
|
gap: "Y2",
|
|
11493
|
-
margin: "
|
|
11650
|
+
margin: "W - - -"
|
|
11494
11651
|
},
|
|
11495
11652
|
Title: {
|
|
11496
11653
|
h5: {
|
|
@@ -11553,9 +11710,8 @@ var ChatUser = {
|
|
|
11553
11710
|
fontSize: "Z"
|
|
11554
11711
|
}
|
|
11555
11712
|
},
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
props: { fontSize: "Y2" }
|
|
11713
|
+
CountIndicator: {
|
|
11714
|
+
fontSize: "Y2"
|
|
11559
11715
|
}
|
|
11560
11716
|
}
|
|
11561
11717
|
}
|
|
@@ -11568,7 +11724,7 @@ var UserButtonSet = {
|
|
|
11568
11724
|
gap: "E2",
|
|
11569
11725
|
background: "gray",
|
|
11570
11726
|
boxSize: "fit-content",
|
|
11571
|
-
padding: "
|
|
11727
|
+
padding: "A",
|
|
11572
11728
|
round: "Z2"
|
|
11573
11729
|
},
|
|
11574
11730
|
User: {
|
|
@@ -11592,9 +11748,9 @@ var UserButtonSet = {
|
|
|
11592
11748
|
extend: ButtonSet,
|
|
11593
11749
|
props: { gap: "Y2" },
|
|
11594
11750
|
...[
|
|
11595
|
-
{ props: {
|
|
11596
|
-
{ props: {
|
|
11597
|
-
{ props: {
|
|
11751
|
+
{ props: { Icon: { name: "phone" } } },
|
|
11752
|
+
{ props: { Icon: { name: "video" } } },
|
|
11753
|
+
{ props: { Icon: { name: "moreHorizontal" } } }
|
|
11598
11754
|
]
|
|
11599
11755
|
}
|
|
11600
11756
|
};
|
|
@@ -11663,8 +11819,7 @@ var UserWithButton = {
|
|
|
11663
11819
|
boxSize: "fit-content",
|
|
11664
11820
|
padding: "X X2",
|
|
11665
11821
|
round: "Z",
|
|
11666
|
-
border: "solid, gray3",
|
|
11667
|
-
borderWidth: "1px",
|
|
11822
|
+
border: "1px, solid, gray3",
|
|
11668
11823
|
gap: "Y2"
|
|
11669
11824
|
},
|
|
11670
11825
|
Avatar: {
|
|
@@ -11692,11 +11847,21 @@ var UserWithButton = {
|
|
|
11692
11847
|
}
|
|
11693
11848
|
},
|
|
11694
11849
|
IconCommonButton: {
|
|
11695
|
-
round: "
|
|
11850
|
+
round: "Y1",
|
|
11696
11851
|
background: "transparent",
|
|
11697
|
-
|
|
11852
|
+
theme: null,
|
|
11853
|
+
color: "currentColor",
|
|
11854
|
+
opacity: "0.5",
|
|
11855
|
+
transition: "A defaultBezier",
|
|
11856
|
+
transitionProperty: "opacity, background",
|
|
11857
|
+
":hover": {
|
|
11858
|
+
opacity: "1",
|
|
11859
|
+
theme: "secondary"
|
|
11860
|
+
},
|
|
11861
|
+
margin: "- - - Z2",
|
|
11862
|
+
Icon: {
|
|
11698
11863
|
name: "copy",
|
|
11699
|
-
fontSize: "
|
|
11864
|
+
fontSize: "C"
|
|
11700
11865
|
}
|
|
11701
11866
|
}
|
|
11702
11867
|
};
|
|
@@ -11709,7 +11874,7 @@ var BalanceCard = {
|
|
|
11709
11874
|
extend: TitleParagraphWithButton,
|
|
11710
11875
|
props: {
|
|
11711
11876
|
boxSize: "fit-content",
|
|
11712
|
-
padding: "A",
|
|
11877
|
+
padding: "Z2 A",
|
|
11713
11878
|
round: "Z",
|
|
11714
11879
|
gap: "Z1",
|
|
11715
11880
|
background: "linear-gradient(to right, #0474F2, #003067)"
|
|
@@ -11717,7 +11882,7 @@ var BalanceCard = {
|
|
|
11717
11882
|
Title: {
|
|
11718
11883
|
props: { gap: "E1" },
|
|
11719
11884
|
h5: { props: { text: "Total crypto assets" } },
|
|
11720
|
-
Button: { props: {
|
|
11885
|
+
Button: { props: { Icon: { name: "arrowUpRight" } } }
|
|
11721
11886
|
},
|
|
11722
11887
|
Paragraph: {
|
|
11723
11888
|
props: {
|
|
@@ -11780,7 +11945,7 @@ var ConvertCard = {
|
|
|
11780
11945
|
boxSize: "fit-content",
|
|
11781
11946
|
gap: "A",
|
|
11782
11947
|
background: "gray",
|
|
11783
|
-
padding: "
|
|
11948
|
+
padding: "Z2 A",
|
|
11784
11949
|
round: "Z"
|
|
11785
11950
|
},
|
|
11786
11951
|
Title: {
|
|
@@ -11820,8 +11985,8 @@ var CurrencyConvert = {
|
|
|
11820
11985
|
props: {
|
|
11821
11986
|
boxSize: "fit-content",
|
|
11822
11987
|
minWidth: "fit-content",
|
|
11823
|
-
gap: "
|
|
11824
|
-
padding: "
|
|
11988
|
+
gap: "A",
|
|
11989
|
+
padding: "A"
|
|
11825
11990
|
},
|
|
11826
11991
|
Header: {
|
|
11827
11992
|
Title: {
|
|
@@ -11837,18 +12002,22 @@ var CurrencyConvert = {
|
|
|
11837
12002
|
},
|
|
11838
12003
|
Content: {
|
|
11839
12004
|
props: {
|
|
12005
|
+
margin: "- -X2",
|
|
11840
12006
|
flow: "column",
|
|
11841
12007
|
gap: "Z"
|
|
11842
12008
|
},
|
|
11843
12009
|
childExtend: {
|
|
11844
12010
|
extend: ConvertCard,
|
|
11845
12011
|
props: {
|
|
11846
|
-
|
|
12012
|
+
theme: "dialog @dark .helper"
|
|
11847
12013
|
}
|
|
11848
12014
|
},
|
|
11849
12015
|
...[{}, {}]
|
|
11850
12016
|
},
|
|
11851
12017
|
Footer: {
|
|
12018
|
+
props: {
|
|
12019
|
+
margin: "- -X2 -X2"
|
|
12020
|
+
},
|
|
11852
12021
|
CommonButton: {
|
|
11853
12022
|
flex: "1",
|
|
11854
12023
|
padding: "Z1 -",
|