@symbo.ls/uikit 2.11.254 → 2.11.257
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 +39 -17
- package/dist/index.cjs.js.map +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -264,7 +264,7 @@ var require_cjs = __commonJS({
|
|
|
264
264
|
__export22(types_exports, {
|
|
265
265
|
TYPES: () => TYPES,
|
|
266
266
|
is: () => is,
|
|
267
|
-
isArray: () =>
|
|
267
|
+
isArray: () => isArray9,
|
|
268
268
|
isBoolean: () => isBoolean,
|
|
269
269
|
isDate: () => isDate,
|
|
270
270
|
isDefined: () => isDefined2,
|
|
@@ -289,7 +289,7 @@ var require_cjs = __commonJS({
|
|
|
289
289
|
var isFunction22 = (arg) => typeof arg === "function";
|
|
290
290
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
291
291
|
var isNull = (arg) => arg === null;
|
|
292
|
-
var
|
|
292
|
+
var isArray9 = (arg) => Array.isArray(arg);
|
|
293
293
|
var isDate = (d) => d instanceof Date;
|
|
294
294
|
var isObjectLike3 = (arg) => {
|
|
295
295
|
if (arg === null)
|
|
@@ -297,14 +297,14 @@ var require_cjs = __commonJS({
|
|
|
297
297
|
return typeof arg === "object";
|
|
298
298
|
};
|
|
299
299
|
var isDefined2 = (arg) => {
|
|
300
|
-
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction22(arg) ||
|
|
300
|
+
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction22(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
301
301
|
};
|
|
302
302
|
var isUndefined3 = (arg) => {
|
|
303
303
|
return arg === void 0;
|
|
304
304
|
};
|
|
305
305
|
var TYPES = {
|
|
306
306
|
boolean: isBoolean,
|
|
307
|
-
array:
|
|
307
|
+
array: isArray9,
|
|
308
308
|
object: isObject8,
|
|
309
309
|
string: isString10,
|
|
310
310
|
date: isDate,
|
|
@@ -705,7 +705,7 @@ var require_cjs = __commonJS({
|
|
|
705
705
|
const spaces = " ".repeat(indent);
|
|
706
706
|
let str = "{\n";
|
|
707
707
|
for (const [key, value] of Object.entries(obj)) {
|
|
708
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
708
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
|
|
709
709
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
710
710
|
str += `${spaces} ${stringedKey}: `;
|
|
711
711
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -1748,14 +1748,14 @@ var require_cjs = __commonJS({
|
|
|
1748
1748
|
};
|
|
1749
1749
|
var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
1750
1750
|
var arrayzeValue = (val) => {
|
|
1751
|
+
if ((0, import_utils32.isArray)(val))
|
|
1752
|
+
return val;
|
|
1751
1753
|
if ((0, import_utils32.isString)(val))
|
|
1752
1754
|
return val.split(" ");
|
|
1753
1755
|
if ((0, import_utils32.isObject)(val))
|
|
1754
|
-
return Object.
|
|
1756
|
+
return Object.values(val);
|
|
1755
1757
|
if ((0, import_utils32.isNumber)(val))
|
|
1756
1758
|
return [val];
|
|
1757
|
-
if ((0, import_utils32.isArray)(val))
|
|
1758
|
-
return val;
|
|
1759
1759
|
};
|
|
1760
1760
|
var import_utils42 = __toESM2(require_cjs22(), 1);
|
|
1761
1761
|
var defaultConfig_exports = {};
|
|
@@ -2815,7 +2815,7 @@ var require_cjs = __commonJS({
|
|
|
2815
2815
|
var getSpacingByKey3 = (value, propertyName = "padding", sequenceProps) => {
|
|
2816
2816
|
const sequence = getSequence(sequenceProps);
|
|
2817
2817
|
const stack = arrayzeValue(value);
|
|
2818
|
-
if (!stack)
|
|
2818
|
+
if (!(0, import_utils18.isArray)(stack))
|
|
2819
2819
|
return;
|
|
2820
2820
|
if ((0, import_utils18.isString)(value) && value.includes("calc")) {
|
|
2821
2821
|
return { [propertyName]: value };
|
|
@@ -6419,6 +6419,24 @@ var keySetters = {
|
|
|
6419
6419
|
isSubtree ? result : result && result.selector,
|
|
6420
6420
|
element
|
|
6421
6421
|
),
|
|
6422
|
+
"*": (key, props4, result, element, isSubtree) => applySelectorProps(
|
|
6423
|
+
key,
|
|
6424
|
+
props4,
|
|
6425
|
+
isSubtree ? result : result && result.selector,
|
|
6426
|
+
element
|
|
6427
|
+
),
|
|
6428
|
+
"+": (key, props4, result, element, isSubtree) => applySelectorProps(
|
|
6429
|
+
key,
|
|
6430
|
+
props4,
|
|
6431
|
+
isSubtree ? result : result && result.selector,
|
|
6432
|
+
element
|
|
6433
|
+
),
|
|
6434
|
+
"~": (key, props4, result, element, isSubtree) => applySelectorProps(
|
|
6435
|
+
key,
|
|
6436
|
+
props4,
|
|
6437
|
+
isSubtree ? result : result && result.selector,
|
|
6438
|
+
element
|
|
6439
|
+
),
|
|
6422
6440
|
"&": (key, props4, result, element, isSubtree) => applyAndProps(
|
|
6423
6441
|
key,
|
|
6424
6442
|
props4,
|
|
@@ -6467,9 +6485,8 @@ var execClass = (key, props4, result, element) => {
|
|
|
6467
6485
|
state: element.state,
|
|
6468
6486
|
deps: element.deps
|
|
6469
6487
|
});
|
|
6470
|
-
if ((0, import_utils2.isArray)(classExec))
|
|
6488
|
+
if ((0, import_utils2.isArray)(classExec))
|
|
6471
6489
|
classExec = classExec.reduce((a, c) => (0, import_utils2.merge)(a, c), {});
|
|
6472
|
-
}
|
|
6473
6490
|
for (const finalProp in classExec) {
|
|
6474
6491
|
result[finalProp] = classExec[finalProp];
|
|
6475
6492
|
}
|
|
@@ -6571,6 +6588,12 @@ var beforeClassAssign = (element, s) => {
|
|
|
6571
6588
|
if (setter)
|
|
6572
6589
|
setter(key, props4[key], CLASS_NAMES, element);
|
|
6573
6590
|
}
|
|
6591
|
+
if (props4["^"]) {
|
|
6592
|
+
for (const key in props4["^"]) {
|
|
6593
|
+
execClass(key, props4, CLASS_NAMES, element);
|
|
6594
|
+
}
|
|
6595
|
+
console.log(CLASS_NAMES);
|
|
6596
|
+
}
|
|
6574
6597
|
const parentProps = element.parent && element.parent.props;
|
|
6575
6598
|
if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
|
|
6576
6599
|
element.setProps({
|
|
@@ -9621,7 +9644,6 @@ var RouterLink = {
|
|
|
9621
9644
|
const { href } = props4;
|
|
9622
9645
|
if (!href)
|
|
9623
9646
|
return;
|
|
9624
|
-
debugger;
|
|
9625
9647
|
const { utils, snippets, routerOptions } = ctx;
|
|
9626
9648
|
const root = el.__ref.__root;
|
|
9627
9649
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
@@ -10020,7 +10042,7 @@ var CommonButton = {
|
|
|
10020
10042
|
var IconCommonButton = {
|
|
10021
10043
|
extend: CommonButton,
|
|
10022
10044
|
props: {
|
|
10023
|
-
|
|
10045
|
+
icon: "smile",
|
|
10024
10046
|
boxSize: "fit-content fit-content",
|
|
10025
10047
|
padding: "Z2",
|
|
10026
10048
|
theme: "tertiary"
|
|
@@ -10058,7 +10080,7 @@ var IcontextButton = {
|
|
|
10058
10080
|
position: "relative",
|
|
10059
10081
|
theme: "tertiary",
|
|
10060
10082
|
padding: "Z2 A",
|
|
10061
|
-
|
|
10083
|
+
icon: "smile"
|
|
10062
10084
|
}
|
|
10063
10085
|
};
|
|
10064
10086
|
var DropDownButton = {
|
|
@@ -10068,8 +10090,8 @@ var DropDownButton = {
|
|
|
10068
10090
|
boxSize: "fit-content fit-content",
|
|
10069
10091
|
padding: "Z1 A1 Z Z1",
|
|
10070
10092
|
theme: "dialog",
|
|
10093
|
+
icon: "chevronDown",
|
|
10071
10094
|
Icon: {
|
|
10072
|
-
name: "chevronDown",
|
|
10073
10095
|
fontSize: "D"
|
|
10074
10096
|
},
|
|
10075
10097
|
caption: { text: "All" }
|
|
@@ -10103,12 +10125,12 @@ var PlusMinusButtons = {
|
|
|
10103
10125
|
},
|
|
10104
10126
|
Minus: {
|
|
10105
10127
|
extend: IconCommonButton,
|
|
10106
|
-
props: {
|
|
10128
|
+
props: { icon: "minus" }
|
|
10107
10129
|
},
|
|
10108
10130
|
Value: { props: { text: "1" } },
|
|
10109
10131
|
Plus: {
|
|
10110
10132
|
extend: IconCommonButton,
|
|
10111
|
-
props: {
|
|
10133
|
+
props: { icon: "plus" }
|
|
10112
10134
|
}
|
|
10113
10135
|
};
|
|
10114
10136
|
|