@symbo.ls/uikit 2.11.43 → 2.11.49
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 +708 -608
- package/dist/index.cjs.js.map +4 -4
- package/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -851,13 +851,13 @@ var require_cjs = __commonJS({
|
|
|
851
851
|
}
|
|
852
852
|
return true;
|
|
853
853
|
};
|
|
854
|
-
var removeFromObject = (obj,
|
|
855
|
-
if (
|
|
854
|
+
var removeFromObject = (obj, props7) => {
|
|
855
|
+
if (props7 === void 0 || props7 === null)
|
|
856
856
|
return obj;
|
|
857
|
-
if ((0, import_types.is)(
|
|
858
|
-
delete obj[
|
|
859
|
-
} else if ((0, import_types.isArray)(
|
|
860
|
-
|
|
857
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
858
|
+
delete obj[props7];
|
|
859
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
860
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
861
861
|
} else {
|
|
862
862
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
863
863
|
}
|
|
@@ -1540,8 +1540,8 @@ var require_cjs = __commonJS({
|
|
|
1540
1540
|
18: "S",
|
|
1541
1541
|
19: "T"
|
|
1542
1542
|
};
|
|
1543
|
-
var setSequenceValue = (
|
|
1544
|
-
const { key, variable, value, scaling, index } =
|
|
1543
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
1544
|
+
const { key, variable, value, scaling, index } = props7;
|
|
1545
1545
|
sequenceProps.sequence[key] = {
|
|
1546
1546
|
key,
|
|
1547
1547
|
decimal: ~~(value * 100) / 100,
|
|
@@ -1553,8 +1553,8 @@ var require_cjs = __commonJS({
|
|
|
1553
1553
|
sequenceProps.scales[key] = scaling;
|
|
1554
1554
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
1555
1555
|
};
|
|
1556
|
-
var generateSubSequence = (
|
|
1557
|
-
const { key, base, value, ratio, variable, index } =
|
|
1556
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
1557
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
1558
1558
|
const next2 = value * ratio;
|
|
1559
1559
|
const diff5 = next2 - value;
|
|
1560
1560
|
const smallscale = diff5 / 1.618;
|
|
@@ -1595,7 +1595,7 @@ var require_cjs = __commonJS({
|
|
|
1595
1595
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
1596
1596
|
const scaling = ~~(value / base * 100) / 100;
|
|
1597
1597
|
const variable = prefix2 + letterKey;
|
|
1598
|
-
const
|
|
1598
|
+
const props7 = {
|
|
1599
1599
|
key: letterKey,
|
|
1600
1600
|
variable,
|
|
1601
1601
|
value,
|
|
@@ -1604,9 +1604,9 @@ var require_cjs = __commonJS({
|
|
|
1604
1604
|
ratio,
|
|
1605
1605
|
index: key
|
|
1606
1606
|
};
|
|
1607
|
-
setSequenceValue(
|
|
1607
|
+
setSequenceValue(props7, sequenceProps);
|
|
1608
1608
|
if (subSequence)
|
|
1609
|
-
generateSubSequence(
|
|
1609
|
+
generateSubSequence(props7, sequenceProps);
|
|
1610
1610
|
}
|
|
1611
1611
|
return sequenceProps;
|
|
1612
1612
|
};
|
|
@@ -1688,14 +1688,14 @@ var require_cjs = __commonJS({
|
|
|
1688
1688
|
CSS_VARS2[result.var] = result.value;
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
-
var applySequenceVars = (
|
|
1691
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
1692
1692
|
const CONFIG22 = getActiveConfig5();
|
|
1693
1693
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
1694
|
-
const unit =
|
|
1695
|
-
const { sequence, scales } =
|
|
1694
|
+
const unit = props7.unit || UNIT2.default;
|
|
1695
|
+
const { sequence, scales } = props7;
|
|
1696
1696
|
for (const key in sequence) {
|
|
1697
1697
|
const item = sequence[key];
|
|
1698
|
-
const value = (
|
|
1698
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
1699
1699
|
if (mediaName) {
|
|
1700
1700
|
const query = MEDIA2[mediaName];
|
|
1701
1701
|
if (!query) {
|
|
@@ -2184,13 +2184,13 @@ var require_cjs = __commonJS({
|
|
|
2184
2184
|
return { var: CSSvar, value: str, arr: value, type };
|
|
2185
2185
|
};
|
|
2186
2186
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
2187
|
-
var runThroughMedia = (
|
|
2187
|
+
var runThroughMedia = (props7) => {
|
|
2188
2188
|
const CONFIG22 = getActiveConfig5();
|
|
2189
2189
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
2190
|
-
for (const prop in
|
|
2191
|
-
const mediaProps =
|
|
2190
|
+
for (const prop in props7) {
|
|
2191
|
+
const mediaProps = props7[prop];
|
|
2192
2192
|
if (prop.slice(0, 1) === "@") {
|
|
2193
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
2193
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
2194
2194
|
(0, import_utils142.merge)(mediaProps, {
|
|
2195
2195
|
type,
|
|
2196
2196
|
base,
|
|
@@ -2214,20 +2214,20 @@ var require_cjs = __commonJS({
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
};
|
|
2217
|
-
var applyHeadings = (
|
|
2217
|
+
var applyHeadings = (props7) => {
|
|
2218
2218
|
const CONFIG22 = getActiveConfig5();
|
|
2219
|
-
if (
|
|
2220
|
-
const unit =
|
|
2221
|
-
const HEADINGS = findHeadings(
|
|
2222
|
-
const { templates } =
|
|
2219
|
+
if (props7.h1Matches) {
|
|
2220
|
+
const unit = props7.unit;
|
|
2221
|
+
const HEADINGS = findHeadings(props7);
|
|
2222
|
+
const { templates } = props7;
|
|
2223
2223
|
for (const k in HEADINGS) {
|
|
2224
2224
|
const headerName = `h${parseInt(k) + 1}`;
|
|
2225
2225
|
const headerStyle = templates[headerName];
|
|
2226
2226
|
templates[headerName] = {
|
|
2227
2227
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
2228
2228
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
2229
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
2230
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
2229
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
2230
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
2231
2231
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
@@ -2322,11 +2322,11 @@ var require_cjs = __commonJS({
|
|
|
2322
2322
|
sequence
|
|
2323
2323
|
);
|
|
2324
2324
|
};
|
|
2325
|
-
var getSpacingBasedOnRatio13 = (
|
|
2325
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
2326
2326
|
const CONFIG22 = getActiveConfig5();
|
|
2327
2327
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
2328
|
-
const { spacingRatio, unit } =
|
|
2329
|
-
const value = val ||
|
|
2328
|
+
const { spacingRatio, unit } = props7;
|
|
2329
|
+
const value = val || props7[propertyName];
|
|
2330
2330
|
if (spacingRatio) {
|
|
2331
2331
|
let sequenceProps = SPACING2[spacingRatio];
|
|
2332
2332
|
if (!sequenceProps) {
|
|
@@ -2601,7 +2601,7 @@ var require_cjs = __commonJS({
|
|
|
2601
2601
|
return v;
|
|
2602
2602
|
}).join(" ");
|
|
2603
2603
|
};
|
|
2604
|
-
var transformDuration5 = (duration,
|
|
2604
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
2605
2605
|
if (!(0, import_utils25.isString)(duration))
|
|
2606
2606
|
return;
|
|
2607
2607
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -2649,11 +2649,11 @@ var require_cjs = __commonJS({
|
|
|
2649
2649
|
if (CONFIG22.verbose)
|
|
2650
2650
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
2651
2651
|
};
|
|
2652
|
-
var setEach = (factoryName,
|
|
2652
|
+
var setEach = (factoryName, props7) => {
|
|
2653
2653
|
const CONFIG22 = getActiveConfig5();
|
|
2654
2654
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
2655
|
-
const keys = Object.keys(
|
|
2656
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
2655
|
+
const keys = Object.keys(props7);
|
|
2656
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
2657
2657
|
return CONFIG22[FACTORY_NAME];
|
|
2658
2658
|
};
|
|
2659
2659
|
var SET_OPTIONS = {};
|
|
@@ -3508,13 +3508,13 @@ var require_object = __commonJS({
|
|
|
3508
3508
|
}
|
|
3509
3509
|
return true;
|
|
3510
3510
|
};
|
|
3511
|
-
var removeFromObject = (obj,
|
|
3512
|
-
if (
|
|
3511
|
+
var removeFromObject = (obj, props7) => {
|
|
3512
|
+
if (props7 === void 0 || props7 === null)
|
|
3513
3513
|
return obj;
|
|
3514
|
-
if ((0, import_types.is)(
|
|
3515
|
-
delete obj[
|
|
3516
|
-
} else if ((0, import_types.isArray)(
|
|
3517
|
-
|
|
3514
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
3515
|
+
delete obj[props7];
|
|
3516
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
3517
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
3518
3518
|
} else {
|
|
3519
3519
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
3520
3520
|
}
|
|
@@ -5269,13 +5269,13 @@ var require_cjs9 = __commonJS({
|
|
|
5269
5269
|
}
|
|
5270
5270
|
return true;
|
|
5271
5271
|
};
|
|
5272
|
-
var removeFromObject = (obj,
|
|
5273
|
-
if (
|
|
5272
|
+
var removeFromObject = (obj, props7) => {
|
|
5273
|
+
if (props7 === void 0 || props7 === null)
|
|
5274
5274
|
return obj;
|
|
5275
|
-
if ((0, import_types.is)(
|
|
5276
|
-
delete obj[
|
|
5277
|
-
} else if ((0, import_types.isArray)(
|
|
5278
|
-
|
|
5275
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
5276
|
+
delete obj[props7];
|
|
5277
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
5278
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
5279
5279
|
} else {
|
|
5280
5280
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
5281
5281
|
}
|
|
@@ -5958,8 +5958,8 @@ var require_cjs9 = __commonJS({
|
|
|
5958
5958
|
18: "S",
|
|
5959
5959
|
19: "T"
|
|
5960
5960
|
};
|
|
5961
|
-
var setSequenceValue = (
|
|
5962
|
-
const { key, variable, value, scaling, index } =
|
|
5961
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
5962
|
+
const { key, variable, value, scaling, index } = props7;
|
|
5963
5963
|
sequenceProps.sequence[key] = {
|
|
5964
5964
|
key,
|
|
5965
5965
|
decimal: ~~(value * 100) / 100,
|
|
@@ -5971,8 +5971,8 @@ var require_cjs9 = __commonJS({
|
|
|
5971
5971
|
sequenceProps.scales[key] = scaling;
|
|
5972
5972
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
5973
5973
|
};
|
|
5974
|
-
var generateSubSequence = (
|
|
5975
|
-
const { key, base, value, ratio, variable, index } =
|
|
5974
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
5975
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
5976
5976
|
const next2 = value * ratio;
|
|
5977
5977
|
const diff5 = next2 - value;
|
|
5978
5978
|
const smallscale = diff5 / 1.618;
|
|
@@ -6013,7 +6013,7 @@ var require_cjs9 = __commonJS({
|
|
|
6013
6013
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
6014
6014
|
const scaling = ~~(value / base * 100) / 100;
|
|
6015
6015
|
const variable = prefix2 + letterKey;
|
|
6016
|
-
const
|
|
6016
|
+
const props7 = {
|
|
6017
6017
|
key: letterKey,
|
|
6018
6018
|
variable,
|
|
6019
6019
|
value,
|
|
@@ -6022,9 +6022,9 @@ var require_cjs9 = __commonJS({
|
|
|
6022
6022
|
ratio,
|
|
6023
6023
|
index: key
|
|
6024
6024
|
};
|
|
6025
|
-
setSequenceValue(
|
|
6025
|
+
setSequenceValue(props7, sequenceProps);
|
|
6026
6026
|
if (subSequence)
|
|
6027
|
-
generateSubSequence(
|
|
6027
|
+
generateSubSequence(props7, sequenceProps);
|
|
6028
6028
|
}
|
|
6029
6029
|
return sequenceProps;
|
|
6030
6030
|
};
|
|
@@ -6106,14 +6106,14 @@ var require_cjs9 = __commonJS({
|
|
|
6106
6106
|
CSS_VARS2[result.var] = result.value;
|
|
6107
6107
|
}
|
|
6108
6108
|
};
|
|
6109
|
-
var applySequenceVars = (
|
|
6109
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
6110
6110
|
const CONFIG22 = getActiveConfig5();
|
|
6111
6111
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
6112
|
-
const unit =
|
|
6113
|
-
const { sequence, scales } =
|
|
6112
|
+
const unit = props7.unit || UNIT2.default;
|
|
6113
|
+
const { sequence, scales } = props7;
|
|
6114
6114
|
for (const key in sequence) {
|
|
6115
6115
|
const item = sequence[key];
|
|
6116
|
-
const value = (
|
|
6116
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
6117
6117
|
if (mediaName) {
|
|
6118
6118
|
const query = MEDIA2[mediaName];
|
|
6119
6119
|
if (!query) {
|
|
@@ -6602,13 +6602,13 @@ var require_cjs9 = __commonJS({
|
|
|
6602
6602
|
return { var: CSSvar, value: str, arr: value, type };
|
|
6603
6603
|
};
|
|
6604
6604
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
6605
|
-
var runThroughMedia = (
|
|
6605
|
+
var runThroughMedia = (props7) => {
|
|
6606
6606
|
const CONFIG22 = getActiveConfig5();
|
|
6607
6607
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
6608
|
-
for (const prop in
|
|
6609
|
-
const mediaProps =
|
|
6608
|
+
for (const prop in props7) {
|
|
6609
|
+
const mediaProps = props7[prop];
|
|
6610
6610
|
if (prop.slice(0, 1) === "@") {
|
|
6611
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
6611
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
6612
6612
|
(0, import_utils142.merge)(mediaProps, {
|
|
6613
6613
|
type,
|
|
6614
6614
|
base,
|
|
@@ -6632,20 +6632,20 @@ var require_cjs9 = __commonJS({
|
|
|
6632
6632
|
}
|
|
6633
6633
|
}
|
|
6634
6634
|
};
|
|
6635
|
-
var applyHeadings = (
|
|
6635
|
+
var applyHeadings = (props7) => {
|
|
6636
6636
|
const CONFIG22 = getActiveConfig5();
|
|
6637
|
-
if (
|
|
6638
|
-
const unit =
|
|
6639
|
-
const HEADINGS = findHeadings(
|
|
6640
|
-
const { templates } =
|
|
6637
|
+
if (props7.h1Matches) {
|
|
6638
|
+
const unit = props7.unit;
|
|
6639
|
+
const HEADINGS = findHeadings(props7);
|
|
6640
|
+
const { templates } = props7;
|
|
6641
6641
|
for (const k in HEADINGS) {
|
|
6642
6642
|
const headerName = `h${parseInt(k) + 1}`;
|
|
6643
6643
|
const headerStyle = templates[headerName];
|
|
6644
6644
|
templates[headerName] = {
|
|
6645
6645
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
6646
6646
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
6647
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
6648
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
6647
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
6648
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
6649
6649
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
6650
6650
|
};
|
|
6651
6651
|
}
|
|
@@ -6740,11 +6740,11 @@ var require_cjs9 = __commonJS({
|
|
|
6740
6740
|
sequence
|
|
6741
6741
|
);
|
|
6742
6742
|
};
|
|
6743
|
-
var getSpacingBasedOnRatio13 = (
|
|
6743
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
6744
6744
|
const CONFIG22 = getActiveConfig5();
|
|
6745
6745
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
6746
|
-
const { spacingRatio, unit } =
|
|
6747
|
-
const value = val ||
|
|
6746
|
+
const { spacingRatio, unit } = props7;
|
|
6747
|
+
const value = val || props7[propertyName];
|
|
6748
6748
|
if (spacingRatio) {
|
|
6749
6749
|
let sequenceProps = SPACING2[spacingRatio];
|
|
6750
6750
|
if (!sequenceProps) {
|
|
@@ -7019,7 +7019,7 @@ var require_cjs9 = __commonJS({
|
|
|
7019
7019
|
return v;
|
|
7020
7020
|
}).join(" ");
|
|
7021
7021
|
};
|
|
7022
|
-
var transformDuration5 = (duration,
|
|
7022
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
7023
7023
|
if (!(0, import_utils25.isString)(duration))
|
|
7024
7024
|
return;
|
|
7025
7025
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -7067,11 +7067,11 @@ var require_cjs9 = __commonJS({
|
|
|
7067
7067
|
if (CONFIG22.verbose)
|
|
7068
7068
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
7069
7069
|
};
|
|
7070
|
-
var setEach = (factoryName,
|
|
7070
|
+
var setEach = (factoryName, props7) => {
|
|
7071
7071
|
const CONFIG22 = getActiveConfig5();
|
|
7072
7072
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
7073
|
-
const keys = Object.keys(
|
|
7074
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
7073
|
+
const keys = Object.keys(props7);
|
|
7074
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
7075
7075
|
return CONFIG22[FACTORY_NAME];
|
|
7076
7076
|
};
|
|
7077
7077
|
var SET_OPTIONS = {};
|
|
@@ -8048,13 +8048,13 @@ var require_cjs11 = __commonJS({
|
|
|
8048
8048
|
}
|
|
8049
8049
|
return true;
|
|
8050
8050
|
};
|
|
8051
|
-
var removeFromObject = (obj,
|
|
8052
|
-
if (
|
|
8051
|
+
var removeFromObject = (obj, props7) => {
|
|
8052
|
+
if (props7 === void 0 || props7 === null)
|
|
8053
8053
|
return obj;
|
|
8054
|
-
if ((0, import_types.is)(
|
|
8055
|
-
delete obj[
|
|
8056
|
-
} else if ((0, import_types.isArray)(
|
|
8057
|
-
|
|
8054
|
+
if ((0, import_types.is)(props7)("string", "number")) {
|
|
8055
|
+
delete obj[props7];
|
|
8056
|
+
} else if ((0, import_types.isArray)(props7)) {
|
|
8057
|
+
props7.forEach((prop) => delete obj[prop]);
|
|
8058
8058
|
} else {
|
|
8059
8059
|
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
8060
8060
|
}
|
|
@@ -8737,8 +8737,8 @@ var require_cjs11 = __commonJS({
|
|
|
8737
8737
|
18: "S",
|
|
8738
8738
|
19: "T"
|
|
8739
8739
|
};
|
|
8740
|
-
var setSequenceValue = (
|
|
8741
|
-
const { key, variable, value, scaling, index } =
|
|
8740
|
+
var setSequenceValue = (props7, sequenceProps) => {
|
|
8741
|
+
const { key, variable, value, scaling, index } = props7;
|
|
8742
8742
|
sequenceProps.sequence[key] = {
|
|
8743
8743
|
key,
|
|
8744
8744
|
decimal: ~~(value * 100) / 100,
|
|
@@ -8750,8 +8750,8 @@ var require_cjs11 = __commonJS({
|
|
|
8750
8750
|
sequenceProps.scales[key] = scaling;
|
|
8751
8751
|
sequenceProps.vars[variable] = scaling + sequenceProps.unit;
|
|
8752
8752
|
};
|
|
8753
|
-
var generateSubSequence = (
|
|
8754
|
-
const { key, base, value, ratio, variable, index } =
|
|
8753
|
+
var generateSubSequence = (props7, sequenceProps) => {
|
|
8754
|
+
const { key, base, value, ratio, variable, index } = props7;
|
|
8755
8755
|
const next2 = value * ratio;
|
|
8756
8756
|
const diff5 = next2 - value;
|
|
8757
8757
|
const smallscale = diff5 / 1.618;
|
|
@@ -8792,7 +8792,7 @@ var require_cjs11 = __commonJS({
|
|
|
8792
8792
|
const value = switchSequenceOnNegative(key, base, ratio);
|
|
8793
8793
|
const scaling = ~~(value / base * 100) / 100;
|
|
8794
8794
|
const variable = prefix2 + letterKey;
|
|
8795
|
-
const
|
|
8795
|
+
const props7 = {
|
|
8796
8796
|
key: letterKey,
|
|
8797
8797
|
variable,
|
|
8798
8798
|
value,
|
|
@@ -8801,9 +8801,9 @@ var require_cjs11 = __commonJS({
|
|
|
8801
8801
|
ratio,
|
|
8802
8802
|
index: key
|
|
8803
8803
|
};
|
|
8804
|
-
setSequenceValue(
|
|
8804
|
+
setSequenceValue(props7, sequenceProps);
|
|
8805
8805
|
if (subSequence)
|
|
8806
|
-
generateSubSequence(
|
|
8806
|
+
generateSubSequence(props7, sequenceProps);
|
|
8807
8807
|
}
|
|
8808
8808
|
return sequenceProps;
|
|
8809
8809
|
};
|
|
@@ -8885,14 +8885,14 @@ var require_cjs11 = __commonJS({
|
|
|
8885
8885
|
CSS_VARS2[result.var] = result.value;
|
|
8886
8886
|
}
|
|
8887
8887
|
};
|
|
8888
|
-
var applySequenceVars = (
|
|
8888
|
+
var applySequenceVars = (props7, mediaName, options = {}) => {
|
|
8889
8889
|
const CONFIG22 = getActiveConfig5();
|
|
8890
8890
|
const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
|
|
8891
|
-
const unit =
|
|
8892
|
-
const { sequence, scales } =
|
|
8891
|
+
const unit = props7.unit || UNIT2.default;
|
|
8892
|
+
const { sequence, scales } = props7;
|
|
8893
8893
|
for (const key in sequence) {
|
|
8894
8894
|
const item = sequence[key];
|
|
8895
|
-
const value = (
|
|
8895
|
+
const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
|
|
8896
8896
|
if (mediaName) {
|
|
8897
8897
|
const query = MEDIA2[mediaName];
|
|
8898
8898
|
if (!query) {
|
|
@@ -9381,13 +9381,13 @@ var require_cjs11 = __commonJS({
|
|
|
9381
9381
|
return { var: CSSvar, value: str, arr: value, type };
|
|
9382
9382
|
};
|
|
9383
9383
|
var import_utils142 = __toESM2(require_cjs42(), 1);
|
|
9384
|
-
var runThroughMedia = (
|
|
9384
|
+
var runThroughMedia = (props7) => {
|
|
9385
9385
|
const CONFIG22 = getActiveConfig5();
|
|
9386
9386
|
const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
|
|
9387
|
-
for (const prop in
|
|
9388
|
-
const mediaProps =
|
|
9387
|
+
for (const prop in props7) {
|
|
9388
|
+
const mediaProps = props7[prop];
|
|
9389
9389
|
if (prop.slice(0, 1) === "@") {
|
|
9390
|
-
const { type, base, ratio, range, subSequence, h1Matches, unit } =
|
|
9390
|
+
const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
|
|
9391
9391
|
(0, import_utils142.merge)(mediaProps, {
|
|
9392
9392
|
type,
|
|
9393
9393
|
base,
|
|
@@ -9411,20 +9411,20 @@ var require_cjs11 = __commonJS({
|
|
|
9411
9411
|
}
|
|
9412
9412
|
}
|
|
9413
9413
|
};
|
|
9414
|
-
var applyHeadings = (
|
|
9414
|
+
var applyHeadings = (props7) => {
|
|
9415
9415
|
const CONFIG22 = getActiveConfig5();
|
|
9416
|
-
if (
|
|
9417
|
-
const unit =
|
|
9418
|
-
const HEADINGS = findHeadings(
|
|
9419
|
-
const { templates } =
|
|
9416
|
+
if (props7.h1Matches) {
|
|
9417
|
+
const unit = props7.unit;
|
|
9418
|
+
const HEADINGS = findHeadings(props7);
|
|
9419
|
+
const { templates } = props7;
|
|
9420
9420
|
for (const k in HEADINGS) {
|
|
9421
9421
|
const headerName = `h${parseInt(k) + 1}`;
|
|
9422
9422
|
const headerStyle = templates[headerName];
|
|
9423
9423
|
templates[headerName] = {
|
|
9424
9424
|
fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
9425
9425
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
9426
|
-
lineHeight: headerStyle ? headerStyle.lineHeight :
|
|
9427
|
-
letterSpacing: headerStyle ? headerStyle.letterSpacing :
|
|
9426
|
+
lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
|
|
9427
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
|
|
9428
9428
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
|
|
9429
9429
|
};
|
|
9430
9430
|
}
|
|
@@ -9519,11 +9519,11 @@ var require_cjs11 = __commonJS({
|
|
|
9519
9519
|
sequence
|
|
9520
9520
|
);
|
|
9521
9521
|
};
|
|
9522
|
-
var getSpacingBasedOnRatio13 = (
|
|
9522
|
+
var getSpacingBasedOnRatio13 = (props7, propertyName, val) => {
|
|
9523
9523
|
const CONFIG22 = getActiveConfig5();
|
|
9524
9524
|
const { SPACING: SPACING2 } = CONFIG22;
|
|
9525
|
-
const { spacingRatio, unit } =
|
|
9526
|
-
const value = val ||
|
|
9525
|
+
const { spacingRatio, unit } = props7;
|
|
9526
|
+
const value = val || props7[propertyName];
|
|
9527
9527
|
if (spacingRatio) {
|
|
9528
9528
|
let sequenceProps = SPACING2[spacingRatio];
|
|
9529
9529
|
if (!sequenceProps) {
|
|
@@ -9798,7 +9798,7 @@ var require_cjs11 = __commonJS({
|
|
|
9798
9798
|
return v;
|
|
9799
9799
|
}).join(" ");
|
|
9800
9800
|
};
|
|
9801
|
-
var transformDuration5 = (duration,
|
|
9801
|
+
var transformDuration5 = (duration, props7, propertyName) => {
|
|
9802
9802
|
if (!(0, import_utils25.isString)(duration))
|
|
9803
9803
|
return;
|
|
9804
9804
|
return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
|
|
@@ -9846,11 +9846,11 @@ var require_cjs11 = __commonJS({
|
|
|
9846
9846
|
if (CONFIG22.verbose)
|
|
9847
9847
|
console.warn("Can not find", factoryName, "method in scratch");
|
|
9848
9848
|
};
|
|
9849
|
-
var setEach = (factoryName,
|
|
9849
|
+
var setEach = (factoryName, props7) => {
|
|
9850
9850
|
const CONFIG22 = getActiveConfig5();
|
|
9851
9851
|
const FACTORY_NAME = factoryName.toUpperCase();
|
|
9852
|
-
const keys = Object.keys(
|
|
9853
|
-
keys.map((key) => setValue(FACTORY_NAME,
|
|
9852
|
+
const keys = Object.keys(props7);
|
|
9853
|
+
keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
|
|
9854
9854
|
return CONFIG22[FACTORY_NAME];
|
|
9855
9855
|
};
|
|
9856
9856
|
var SET_OPTIONS = {};
|
|
@@ -9920,8 +9920,12 @@ __export(domql_exports, {
|
|
|
9920
9920
|
Clickable: () => Clickable,
|
|
9921
9921
|
Collection: () => Collection,
|
|
9922
9922
|
DatePicker: () => DatePicker,
|
|
9923
|
+
DatePickerGrid: () => DatePickerGrid,
|
|
9924
|
+
DatePickerMonthsSlider: () => DatePickerMonthsSlider,
|
|
9923
9925
|
DatePickerTwoColumns: () => DatePickerTwoColumns,
|
|
9926
|
+
DatePickerWeekDays: () => DatePickerWeekDays,
|
|
9924
9927
|
DatePickerYears: () => DatePickerYears,
|
|
9928
|
+
DialogFooter: () => DialogFooter,
|
|
9925
9929
|
Direction: () => Direction,
|
|
9926
9930
|
DropdownList: () => DropdownList,
|
|
9927
9931
|
DropdownParent: () => DropdownParent,
|
|
@@ -9978,6 +9982,7 @@ __export(domql_exports, {
|
|
|
9978
9982
|
Text: () => Text,
|
|
9979
9983
|
Textarea: () => Textarea,
|
|
9980
9984
|
Theme: () => Theme,
|
|
9985
|
+
TimePicker: () => TimePicker,
|
|
9981
9986
|
Timing: () => Timing,
|
|
9982
9987
|
ToggleSwitch: () => ToggleSwitch,
|
|
9983
9988
|
ToggleSwithWithLabel: () => ToggleSwithWithLabel,
|
|
@@ -9996,143 +10001,143 @@ module.exports = __toCommonJS(domql_exports);
|
|
|
9996
10001
|
var import_scratch = __toESM(require_cjs());
|
|
9997
10002
|
var Block = {
|
|
9998
10003
|
class: {
|
|
9999
|
-
boxSizing: ({ props:
|
|
10004
|
+
boxSizing: ({ props: props7 }) => props7.boxSizing ? { boxSizing: props7.boxSizing } : {
|
|
10000
10005
|
boxSizing: "border-box"
|
|
10001
10006
|
},
|
|
10002
|
-
display: ({ props:
|
|
10003
|
-
hide: ({ props:
|
|
10004
|
-
width: ({ props:
|
|
10005
|
-
height: ({ props:
|
|
10006
|
-
boxSize: ({ props:
|
|
10007
|
-
if (typeof
|
|
10007
|
+
display: ({ props: props7 }) => props7.display && { display: props7.display },
|
|
10008
|
+
hide: ({ props: props7 }) => props7.hide && { display: "none" },
|
|
10009
|
+
width: ({ props: props7 }) => props7.width && (0, import_scratch.getSpacingBasedOnRatio)(props7, "width"),
|
|
10010
|
+
height: ({ props: props7 }) => props7.height && (0, import_scratch.getSpacingBasedOnRatio)(props7, "height"),
|
|
10011
|
+
boxSize: ({ props: props7 }) => {
|
|
10012
|
+
if (typeof props7.boxSize !== "string")
|
|
10008
10013
|
return;
|
|
10009
|
-
const [height, width] =
|
|
10014
|
+
const [height, width] = props7.boxSize.split(" ");
|
|
10010
10015
|
return {
|
|
10011
10016
|
...(0, import_scratch.getSpacingByKey)(height, "height"),
|
|
10012
10017
|
...(0, import_scratch.getSpacingByKey)(width || height, "width")
|
|
10013
10018
|
};
|
|
10014
10019
|
},
|
|
10015
|
-
maxWidth: ({ props:
|
|
10016
|
-
minWidth: ({ props:
|
|
10017
|
-
widthRange: ({ props:
|
|
10018
|
-
if (typeof
|
|
10020
|
+
maxWidth: ({ props: props7 }) => props7.maxWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxWidth"),
|
|
10021
|
+
minWidth: ({ props: props7 }) => props7.minWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minWidth"),
|
|
10022
|
+
widthRange: ({ props: props7 }) => {
|
|
10023
|
+
if (typeof props7.widthRange !== "string")
|
|
10019
10024
|
return;
|
|
10020
|
-
const [minWidth, maxWidth] =
|
|
10025
|
+
const [minWidth, maxWidth] = props7.widthRange.split(" ");
|
|
10021
10026
|
return {
|
|
10022
10027
|
...(0, import_scratch.getSpacingByKey)(minWidth, "minWidth"),
|
|
10023
10028
|
...(0, import_scratch.getSpacingByKey)(maxWidth || minWidth, "maxWidth")
|
|
10024
10029
|
};
|
|
10025
10030
|
},
|
|
10026
|
-
maxHeight: ({ props:
|
|
10027
|
-
minHeight: ({ props:
|
|
10028
|
-
heightRange: ({ props:
|
|
10029
|
-
if (typeof
|
|
10031
|
+
maxHeight: ({ props: props7 }) => props7.maxHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxHeight"),
|
|
10032
|
+
minHeight: ({ props: props7 }) => props7.minHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minHeight"),
|
|
10033
|
+
heightRange: ({ props: props7 }) => {
|
|
10034
|
+
if (typeof props7.heightRange !== "string")
|
|
10030
10035
|
return;
|
|
10031
|
-
const [minHeight, maxHeight] =
|
|
10036
|
+
const [minHeight, maxHeight] = props7.heightRange.split(" ");
|
|
10032
10037
|
return {
|
|
10033
10038
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10034
10039
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10035
10040
|
};
|
|
10036
10041
|
},
|
|
10037
|
-
direction: ({ props:
|
|
10038
|
-
aspectRatio: ({ props:
|
|
10039
|
-
borderWidth: ({ props:
|
|
10040
|
-
padding: ({ props:
|
|
10041
|
-
paddingInline: ({ props:
|
|
10042
|
-
if (typeof
|
|
10042
|
+
direction: ({ props: props7 }) => props7.direction && { direction: props7.direction },
|
|
10043
|
+
aspectRatio: ({ props: props7 }) => props7.aspectRatio && { aspectRatio: props7.aspectRatio },
|
|
10044
|
+
borderWidth: ({ props: props7 }) => props7.borderWidth ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "borderWidth") : null,
|
|
10045
|
+
padding: ({ props: props7 }) => props7.padding ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "padding") : null,
|
|
10046
|
+
paddingInline: ({ props: props7 }) => {
|
|
10047
|
+
if (typeof props7.paddingInline !== "string")
|
|
10043
10048
|
return;
|
|
10044
|
-
const [paddingInlineStart, paddingInlineEnd] =
|
|
10049
|
+
const [paddingInlineStart, paddingInlineEnd] = props7.paddingInline.split(" ");
|
|
10045
10050
|
return {
|
|
10046
10051
|
...(0, import_scratch.getSpacingByKey)(paddingInlineStart, "paddingInlineStart"),
|
|
10047
10052
|
...(0, import_scratch.getSpacingByKey)(paddingInlineEnd || paddingInlineStart, "paddingInlineEnd")
|
|
10048
10053
|
};
|
|
10049
10054
|
},
|
|
10050
|
-
paddingBlock: ({ props:
|
|
10051
|
-
if (typeof
|
|
10055
|
+
paddingBlock: ({ props: props7 }) => {
|
|
10056
|
+
if (typeof props7.paddingBlock !== "string")
|
|
10052
10057
|
return;
|
|
10053
|
-
const [paddingBlockStart, paddingBlockEnd] =
|
|
10058
|
+
const [paddingBlockStart, paddingBlockEnd] = props7.paddingBlock.split(" ");
|
|
10054
10059
|
return {
|
|
10055
10060
|
...(0, import_scratch.getSpacingByKey)(paddingBlockStart, "paddingBlockStart"),
|
|
10056
10061
|
...(0, import_scratch.getSpacingByKey)(paddingBlockEnd || paddingBlockStart, "paddingBlockEnd")
|
|
10057
10062
|
};
|
|
10058
10063
|
},
|
|
10059
|
-
paddingInlineStart: ({ props:
|
|
10060
|
-
paddingInlineEnd: ({ props:
|
|
10061
|
-
paddingBlockStart: ({ props:
|
|
10062
|
-
paddingBlockEnd: ({ props:
|
|
10063
|
-
margin: ({ props:
|
|
10064
|
-
marginInline: ({ props:
|
|
10065
|
-
if (typeof
|
|
10064
|
+
paddingInlineStart: ({ props: props7 }) => props7.paddingInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineStart") : null,
|
|
10065
|
+
paddingInlineEnd: ({ props: props7 }) => props7.paddingInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineEnd") : null,
|
|
10066
|
+
paddingBlockStart: ({ props: props7 }) => props7.paddingBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockStart") : null,
|
|
10067
|
+
paddingBlockEnd: ({ props: props7 }) => props7.paddingBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockEnd") : null,
|
|
10068
|
+
margin: ({ props: props7 }) => props7.margin ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "margin") : null,
|
|
10069
|
+
marginInline: ({ props: props7 }) => {
|
|
10070
|
+
if (typeof props7.marginInline !== "string")
|
|
10066
10071
|
return;
|
|
10067
|
-
const [marginInlineStart, marginInlineEnd] =
|
|
10072
|
+
const [marginInlineStart, marginInlineEnd] = props7.marginInline.split(" ");
|
|
10068
10073
|
return {
|
|
10069
10074
|
...(0, import_scratch.getSpacingByKey)(marginInlineStart, "marginInlineStart"),
|
|
10070
10075
|
...(0, import_scratch.getSpacingByKey)(marginInlineEnd || marginInlineStart, "marginInlineEnd")
|
|
10071
10076
|
};
|
|
10072
10077
|
},
|
|
10073
|
-
marginBlock: ({ props:
|
|
10074
|
-
if (typeof
|
|
10078
|
+
marginBlock: ({ props: props7 }) => {
|
|
10079
|
+
if (typeof props7.marginBlock !== "string")
|
|
10075
10080
|
return;
|
|
10076
|
-
const [marginBlockStart, marginBlockEnd] =
|
|
10081
|
+
const [marginBlockStart, marginBlockEnd] = props7.marginBlock.split(" ");
|
|
10077
10082
|
return {
|
|
10078
10083
|
...(0, import_scratch.getSpacingByKey)(marginBlockStart, "marginBlockStart"),
|
|
10079
10084
|
...(0, import_scratch.getSpacingByKey)(marginBlockEnd || marginBlockStart, "marginBlockEnd")
|
|
10080
10085
|
};
|
|
10081
10086
|
},
|
|
10082
|
-
marginInlineStart: ({ props:
|
|
10083
|
-
marginInlineEnd: ({ props:
|
|
10084
|
-
marginBlockStart: ({ props:
|
|
10085
|
-
marginBlockEnd: ({ props:
|
|
10086
|
-
gap: ({ props:
|
|
10087
|
-
gap: (0, import_scratch.transfromGap)(
|
|
10087
|
+
marginInlineStart: ({ props: props7 }) => props7.marginInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineStart") : null,
|
|
10088
|
+
marginInlineEnd: ({ props: props7 }) => props7.marginInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineEnd") : null,
|
|
10089
|
+
marginBlockStart: ({ props: props7 }) => props7.marginBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockStart") : null,
|
|
10090
|
+
marginBlockEnd: ({ props: props7 }) => props7.marginBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockEnd") : null,
|
|
10091
|
+
gap: ({ props: props7 }) => props7.gap ? {
|
|
10092
|
+
gap: (0, import_scratch.transfromGap)(props7.gap)
|
|
10088
10093
|
} : null,
|
|
10089
|
-
gridArea: ({ props:
|
|
10090
|
-
flex: ({ props:
|
|
10091
|
-
flexDirection: ({ props:
|
|
10092
|
-
alignItems: ({ props:
|
|
10093
|
-
alignContent: ({ props:
|
|
10094
|
-
justifyContent: ({ props:
|
|
10095
|
-
justifyItems: ({ props:
|
|
10096
|
-
alignSelf: ({ props:
|
|
10097
|
-
order: ({ props:
|
|
10098
|
-
flexWrap: ({ props:
|
|
10094
|
+
gridArea: ({ props: props7 }) => props7.gridArea && { gridArea: props7.gridArea },
|
|
10095
|
+
flex: ({ props: props7 }) => props7.flex && { flex: props7.flex },
|
|
10096
|
+
flexDirection: ({ props: props7 }) => props7.flexDirection && { flexDirection: props7.flexDirection },
|
|
10097
|
+
alignItems: ({ props: props7 }) => props7.alignItems && { alignItems: props7.alignItems },
|
|
10098
|
+
alignContent: ({ props: props7 }) => props7.alignContent && { alignContent: props7.alignContent },
|
|
10099
|
+
justifyContent: ({ props: props7 }) => props7.justifyContent && { justifyContent: props7.justifyContent },
|
|
10100
|
+
justifyItems: ({ props: props7 }) => props7.justifyItems && { justifyItems: props7.justifyItems },
|
|
10101
|
+
alignSelf: ({ props: props7 }) => props7.alignSelf && { alignSelf: props7.alignSelf },
|
|
10102
|
+
order: ({ props: props7 }) => props7.order && { order: props7.order },
|
|
10103
|
+
flexWrap: ({ props: props7 }) => props7.flexWrap && {
|
|
10099
10104
|
display: "flex",
|
|
10100
|
-
flexFlow:
|
|
10105
|
+
flexFlow: props7.flexWrap
|
|
10101
10106
|
},
|
|
10102
|
-
flexFlow: ({ props:
|
|
10107
|
+
flexFlow: ({ props: props7 }) => props7.flexFlow && {
|
|
10103
10108
|
display: "flex",
|
|
10104
|
-
flexFlow:
|
|
10109
|
+
flexFlow: props7.flexFlow
|
|
10105
10110
|
},
|
|
10106
|
-
flexAlign: ({ props:
|
|
10107
|
-
if (typeof
|
|
10111
|
+
flexAlign: ({ props: props7 }) => {
|
|
10112
|
+
if (typeof props7.flexAlign !== "string")
|
|
10108
10113
|
return;
|
|
10109
|
-
const [alignItems, justifyContent] =
|
|
10114
|
+
const [alignItems, justifyContent] = props7.flexAlign.split(" ");
|
|
10110
10115
|
return {
|
|
10111
10116
|
display: "flex",
|
|
10112
10117
|
alignItems,
|
|
10113
10118
|
justifyContent
|
|
10114
10119
|
};
|
|
10115
10120
|
},
|
|
10116
|
-
gridColumn: ({ props:
|
|
10117
|
-
gridColumnStart: ({ props:
|
|
10118
|
-
gridColumnStart:
|
|
10121
|
+
gridColumn: ({ props: props7 }) => props7.gridColumn && { gridColumn: props7.gridColumn },
|
|
10122
|
+
gridColumnStart: ({ props: props7 }) => props7.columnStart ? {
|
|
10123
|
+
gridColumnStart: props7.columnStart
|
|
10119
10124
|
} : null,
|
|
10120
|
-
gridRow: ({ props:
|
|
10121
|
-
gridRowStart: ({ props:
|
|
10122
|
-
size: ({ props:
|
|
10123
|
-
if (typeof
|
|
10125
|
+
gridRow: ({ props: props7 }) => props7.gridRow && { gridRow: props7.gridRow },
|
|
10126
|
+
gridRowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
10127
|
+
size: ({ props: props7 }) => {
|
|
10128
|
+
if (typeof props7.heightRange !== "string")
|
|
10124
10129
|
return;
|
|
10125
|
-
const [minHeight, maxHeight] =
|
|
10130
|
+
const [minHeight, maxHeight] = props7.heightRange.split(" ");
|
|
10126
10131
|
return {
|
|
10127
10132
|
...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
|
|
10128
10133
|
...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
|
|
10129
10134
|
};
|
|
10130
10135
|
},
|
|
10131
|
-
columns: ({ props:
|
|
10132
|
-
columnGap: ({ props:
|
|
10133
|
-
columnSpan: ({ props:
|
|
10134
|
-
columnFill: ({ props:
|
|
10135
|
-
columnCount: ({ props:
|
|
10136
|
+
columns: ({ props: props7 }) => props7.columns && { columns: props7.columns },
|
|
10137
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
10138
|
+
columnSpan: ({ props: props7 }) => props7.columnSpan && { columns: props7.columnSpan },
|
|
10139
|
+
columnFill: ({ props: props7 }) => props7.columnFill && { columns: props7.columnFill },
|
|
10140
|
+
columnCount: ({ props: props7 }) => props7.columnCount && { columns: props7.columnCount }
|
|
10136
10141
|
}
|
|
10137
10142
|
};
|
|
10138
10143
|
var Span = { tag: "span" };
|
|
@@ -10147,7 +10152,7 @@ var Direction = {
|
|
|
10147
10152
|
direction: "ltr"
|
|
10148
10153
|
},
|
|
10149
10154
|
class: {
|
|
10150
|
-
direction: ({ props:
|
|
10155
|
+
direction: ({ props: props7 }) => ({ direction: props7.direction })
|
|
10151
10156
|
}
|
|
10152
10157
|
};
|
|
10153
10158
|
|
|
@@ -10157,12 +10162,12 @@ var Flex = {
|
|
|
10157
10162
|
display: "flex"
|
|
10158
10163
|
},
|
|
10159
10164
|
class: {
|
|
10160
|
-
flow: ({ props:
|
|
10161
|
-
wrap: ({ props:
|
|
10162
|
-
align: ({ props:
|
|
10163
|
-
if (typeof
|
|
10165
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
10166
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
10167
|
+
align: ({ props: props7 }) => {
|
|
10168
|
+
if (typeof props7.align !== "string")
|
|
10164
10169
|
return;
|
|
10165
|
-
const [alignItems, justifyContent] =
|
|
10170
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
10166
10171
|
return { alignItems, justifyContent };
|
|
10167
10172
|
}
|
|
10168
10173
|
}
|
|
@@ -10173,22 +10178,22 @@ var import_scratch2 = __toESM(require_cjs());
|
|
|
10173
10178
|
var Grid = {
|
|
10174
10179
|
props: { display: "grid" },
|
|
10175
10180
|
class: {
|
|
10176
|
-
area: ({ props:
|
|
10177
|
-
template: ({ props:
|
|
10178
|
-
templateAreas: ({ props:
|
|
10179
|
-
column: ({ props:
|
|
10180
|
-
columns: ({ props:
|
|
10181
|
-
templateColumns: ({ props:
|
|
10182
|
-
autoColumns: ({ props:
|
|
10183
|
-
columnStart: ({ props:
|
|
10184
|
-
row: ({ props:
|
|
10185
|
-
rows: ({ props:
|
|
10186
|
-
templateRows: ({ props:
|
|
10187
|
-
autoRows: ({ props:
|
|
10188
|
-
rowStart: ({ props:
|
|
10189
|
-
autoFlow: ({ props:
|
|
10190
|
-
columnGap: ({ props:
|
|
10191
|
-
rowGap: ({ props:
|
|
10181
|
+
area: ({ props: props7 }) => props7.area ? { gridArea: props7.area } : null,
|
|
10182
|
+
template: ({ props: props7 }) => props7.template ? { gridTemplate: props7.template } : null,
|
|
10183
|
+
templateAreas: ({ props: props7 }) => props7.templateAreas ? { gridTemplateAreas: props7.templateAreas } : null,
|
|
10184
|
+
column: ({ props: props7 }) => props7.column ? { gridColumn: props7.column } : null,
|
|
10185
|
+
columns: ({ props: props7 }) => props7.columns ? { gridTemplateColumns: props7.columns } : null,
|
|
10186
|
+
templateColumns: ({ props: props7 }) => props7.templateColumns ? { gridTemplateColumns: props7.templateColumns } : null,
|
|
10187
|
+
autoColumns: ({ props: props7 }) => props7.autoColumns ? { gridAutoColumns: props7.autoColumns } : null,
|
|
10188
|
+
columnStart: ({ props: props7 }) => props7.columnStart ? { gridColumnStart: props7.columnStart } : null,
|
|
10189
|
+
row: ({ props: props7 }) => props7.row ? { gridRow: props7.row } : null,
|
|
10190
|
+
rows: ({ props: props7 }) => props7.rows ? { gridTemplateRows: props7.rows } : null,
|
|
10191
|
+
templateRows: ({ props: props7 }) => props7.templateRows ? { gridTemplateRows: props7.templateRows } : null,
|
|
10192
|
+
autoRows: ({ props: props7 }) => props7.autoRows ? { gridAutoRows: props7.autoRows } : null,
|
|
10193
|
+
rowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
10194
|
+
autoFlow: ({ props: props7 }) => props7.autoFlow ? { gridAutoFlow: props7.autoFlow } : null,
|
|
10195
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
10196
|
+
rowGap: ({ props: props7 }) => props7.rowGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "rowGap") : null
|
|
10192
10197
|
}
|
|
10193
10198
|
};
|
|
10194
10199
|
|
|
@@ -10201,9 +10206,9 @@ var Img = {
|
|
|
10201
10206
|
title: ""
|
|
10202
10207
|
},
|
|
10203
10208
|
attr: {
|
|
10204
|
-
src: ({ props:
|
|
10205
|
-
alt: ({ props:
|
|
10206
|
-
title: ({ props:
|
|
10209
|
+
src: ({ props: props7 }) => props7.src,
|
|
10210
|
+
alt: ({ props: props7 }) => props7.alt,
|
|
10211
|
+
title: ({ props: props7 }) => props7.title || props7.alt
|
|
10207
10212
|
}
|
|
10208
10213
|
};
|
|
10209
10214
|
|
|
@@ -10212,9 +10217,9 @@ var Form = {
|
|
|
10212
10217
|
tag: "form",
|
|
10213
10218
|
props: {},
|
|
10214
10219
|
attr: {
|
|
10215
|
-
action: ({ props:
|
|
10216
|
-
method: ({ props:
|
|
10217
|
-
enctype: ({ props:
|
|
10220
|
+
action: ({ props: props7 }) => props7.action,
|
|
10221
|
+
method: ({ props: props7 }) => props7.method,
|
|
10222
|
+
enctype: ({ props: props7 }) => props7.enctype
|
|
10218
10223
|
}
|
|
10219
10224
|
};
|
|
10220
10225
|
|
|
@@ -10231,24 +10236,24 @@ var import_scratch4 = __toESM(require_cjs());
|
|
|
10231
10236
|
var import_scratch3 = __toESM(require_cjs());
|
|
10232
10237
|
var Timing = {
|
|
10233
10238
|
class: {
|
|
10234
|
-
transition: ({ props:
|
|
10235
|
-
transition: (0, import_scratch3.splitTransition)(
|
|
10239
|
+
transition: ({ props: props7 }) => props7.transition && {
|
|
10240
|
+
transition: (0, import_scratch3.splitTransition)(props7.transition)
|
|
10236
10241
|
},
|
|
10237
|
-
willChange: ({ props:
|
|
10238
|
-
willChange:
|
|
10242
|
+
willChange: ({ props: props7 }) => props7.willChange && {
|
|
10243
|
+
willChange: props7.willChange
|
|
10239
10244
|
},
|
|
10240
|
-
transitionDuration: ({ props:
|
|
10241
|
-
transitionDuration: (0, import_scratch3.transformDuration)(
|
|
10245
|
+
transitionDuration: ({ props: props7 }) => props7.transitionDuration && {
|
|
10246
|
+
transitionDuration: (0, import_scratch3.transformDuration)(props7.transitionDuration)
|
|
10242
10247
|
},
|
|
10243
|
-
transitionDelay: ({ props:
|
|
10244
|
-
transitionDelay: (0, import_scratch3.transformDuration)(
|
|
10248
|
+
transitionDelay: ({ props: props7 }) => props7.transitionDelay && {
|
|
10249
|
+
transitionDelay: (0, import_scratch3.transformDuration)(props7.transitionDelay)
|
|
10245
10250
|
},
|
|
10246
|
-
transitionTimingFunction: ({ props:
|
|
10247
|
-
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(
|
|
10251
|
+
transitionTimingFunction: ({ props: props7 }) => props7.transitionTimingFunction && {
|
|
10252
|
+
transitionTimingFunction: (0, import_scratch3.getTimingFunction)(props7.transitionTimingFunction)
|
|
10248
10253
|
},
|
|
10249
|
-
transitionProperty: ({ props:
|
|
10250
|
-
transitionProperty:
|
|
10251
|
-
willChange:
|
|
10254
|
+
transitionProperty: ({ props: props7 }) => props7.transitionProperty && {
|
|
10255
|
+
transitionProperty: props7.transitionProperty,
|
|
10256
|
+
willChange: props7.transitionProperty
|
|
10252
10257
|
}
|
|
10253
10258
|
}
|
|
10254
10259
|
};
|
|
@@ -10263,11 +10268,11 @@ var depth = {
|
|
|
10263
10268
|
26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG.UNIT.default} 26${CONFIG.UNIT.default}` },
|
|
10264
10269
|
42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG.UNIT.default} 42${CONFIG.UNIT.default}` }
|
|
10265
10270
|
};
|
|
10266
|
-
var getComputedBackgroundColor = ({ props:
|
|
10267
|
-
return (0, import_scratch4.getColor)(
|
|
10271
|
+
var getComputedBackgroundColor = ({ props: props7 }) => {
|
|
10272
|
+
return (0, import_scratch4.getColor)(props7.shapeDirectionColor) || (0, import_scratch4.getColor)(props7.borderColor) || (0, import_scratch4.getColor)(props7.backgroundColor) || (0, import_scratch4.getColor)(props7.background);
|
|
10268
10273
|
};
|
|
10269
|
-
var inheritTransition = ({ props:
|
|
10270
|
-
const exec5 = Timing.class.transition({ props:
|
|
10274
|
+
var inheritTransition = ({ props: props7 }) => {
|
|
10275
|
+
const exec5 = Timing.class.transition({ props: props7 });
|
|
10271
10276
|
return exec5 && exec5.transition;
|
|
10272
10277
|
};
|
|
10273
10278
|
var SHAPES = {
|
|
@@ -10277,16 +10282,16 @@ var SHAPES = {
|
|
|
10277
10282
|
tv: {
|
|
10278
10283
|
borderRadius: "1.15em/2.5em"
|
|
10279
10284
|
},
|
|
10280
|
-
tooltip: ({ props:
|
|
10281
|
-
position:
|
|
10285
|
+
tooltip: ({ props: props7 }) => ({
|
|
10286
|
+
position: props7.position || "relative",
|
|
10282
10287
|
"&:before": {
|
|
10283
10288
|
content: '""',
|
|
10284
10289
|
display: "block",
|
|
10285
10290
|
width: "0px",
|
|
10286
10291
|
height: "0px",
|
|
10287
10292
|
border: ".35em solid",
|
|
10288
|
-
borderColor: getComputedBackgroundColor({ props:
|
|
10289
|
-
transition: inheritTransition({ props:
|
|
10293
|
+
borderColor: getComputedBackgroundColor({ props: props7 }),
|
|
10294
|
+
transition: inheritTransition({ props: props7 }),
|
|
10290
10295
|
transitionProperty: "border-color",
|
|
10291
10296
|
position: "absolute",
|
|
10292
10297
|
borderRadius: ".15em"
|
|
@@ -10322,13 +10327,13 @@ var SHAPES = {
|
|
|
10322
10327
|
}
|
|
10323
10328
|
}
|
|
10324
10329
|
},
|
|
10325
|
-
tag: ({ props:
|
|
10330
|
+
tag: ({ props: props7 }) => ({
|
|
10326
10331
|
position: "relative",
|
|
10327
10332
|
"&:before": {
|
|
10328
10333
|
content: '""',
|
|
10329
10334
|
display: "block",
|
|
10330
|
-
background: getComputedBackgroundColor({ props:
|
|
10331
|
-
transition: inheritTransition({ props:
|
|
10335
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10336
|
+
transition: inheritTransition({ props: props7 }),
|
|
10332
10337
|
transitionProperty: "background",
|
|
10333
10338
|
borderRadius: ".25em",
|
|
10334
10339
|
position: "absolute",
|
|
@@ -10369,7 +10374,7 @@ var SHAPES = {
|
|
|
10369
10374
|
}
|
|
10370
10375
|
}
|
|
10371
10376
|
},
|
|
10372
|
-
hexagon: ({ props:
|
|
10377
|
+
hexagon: ({ props: props7 }) => ({
|
|
10373
10378
|
position: "relative",
|
|
10374
10379
|
"&:before, &:after": {
|
|
10375
10380
|
content: '""',
|
|
@@ -10381,8 +10386,8 @@ var SHAPES = {
|
|
|
10381
10386
|
top: "50%",
|
|
10382
10387
|
transformOrigin: "50% 50%",
|
|
10383
10388
|
height: "73%",
|
|
10384
|
-
background: getComputedBackgroundColor({ props:
|
|
10385
|
-
transition: inheritTransition({ props:
|
|
10389
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10390
|
+
transition: inheritTransition({ props: props7 }),
|
|
10386
10391
|
transitionProperty: "background"
|
|
10387
10392
|
},
|
|
10388
10393
|
"&:before": {
|
|
@@ -10394,7 +10399,7 @@ var SHAPES = {
|
|
|
10394
10399
|
transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
|
|
10395
10400
|
}
|
|
10396
10401
|
}),
|
|
10397
|
-
chevron: ({ props:
|
|
10402
|
+
chevron: ({ props: props7 }) => ({
|
|
10398
10403
|
position: "relative",
|
|
10399
10404
|
// overflow: 'hidden',
|
|
10400
10405
|
"&:before, &:after": {
|
|
@@ -10405,14 +10410,14 @@ var SHAPES = {
|
|
|
10405
10410
|
aspectRatio: "1/1",
|
|
10406
10411
|
top: "50%",
|
|
10407
10412
|
transformOrigin: "50% 50%",
|
|
10408
|
-
transition: inheritTransition({ props:
|
|
10413
|
+
transition: inheritTransition({ props: props7 }),
|
|
10409
10414
|
transitionProperty: "background"
|
|
10410
10415
|
},
|
|
10411
10416
|
"&:before": {
|
|
10412
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props:
|
|
10417
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%)`
|
|
10413
10418
|
},
|
|
10414
10419
|
"&:after": {
|
|
10415
|
-
background: getComputedBackgroundColor({ props:
|
|
10420
|
+
background: getComputedBackgroundColor({ props: props7 }),
|
|
10416
10421
|
borderRadius: ".25em"
|
|
10417
10422
|
}
|
|
10418
10423
|
}),
|
|
@@ -10451,153 +10456,153 @@ var getSystemTheme = ({ context, state }) => {
|
|
|
10451
10456
|
};
|
|
10452
10457
|
var Theme = {
|
|
10453
10458
|
class: {
|
|
10454
|
-
depth: ({ props:
|
|
10459
|
+
depth: ({ props: props7 }) => props7.depth && depth[props7.depth],
|
|
10455
10460
|
theme: (element) => {
|
|
10456
|
-
const { props:
|
|
10461
|
+
const { props: props7 } = element;
|
|
10457
10462
|
const globalTheme = getSystemTheme(element);
|
|
10458
|
-
if (!
|
|
10463
|
+
if (!props7.theme)
|
|
10459
10464
|
return;
|
|
10460
|
-
return (0, import_scratch5.getMediaTheme)(
|
|
10465
|
+
return (0, import_scratch5.getMediaTheme)(props7.theme, `@${props7.themeModifier || globalTheme}`);
|
|
10461
10466
|
},
|
|
10462
10467
|
color: (element) => {
|
|
10463
|
-
const { props:
|
|
10468
|
+
const { props: props7 } = element;
|
|
10464
10469
|
const globalTheme = getSystemTheme(element);
|
|
10465
|
-
if (!
|
|
10470
|
+
if (!props7.color)
|
|
10466
10471
|
return;
|
|
10467
10472
|
return {
|
|
10468
|
-
color: (0, import_scratch5.getMediaColor)(
|
|
10473
|
+
color: (0, import_scratch5.getMediaColor)(props7.color, globalTheme)
|
|
10469
10474
|
};
|
|
10470
10475
|
},
|
|
10471
10476
|
background: (element) => {
|
|
10472
|
-
const { props:
|
|
10477
|
+
const { props: props7 } = element;
|
|
10473
10478
|
const globalTheme = getSystemTheme(element);
|
|
10474
|
-
if (!
|
|
10479
|
+
if (!props7.background)
|
|
10475
10480
|
return;
|
|
10476
10481
|
return {
|
|
10477
|
-
background: (0, import_scratch5.getMediaColor)(
|
|
10482
|
+
background: (0, import_scratch5.getMediaColor)(props7.background, globalTheme)
|
|
10478
10483
|
};
|
|
10479
10484
|
},
|
|
10480
10485
|
backgroundColor: (element) => {
|
|
10481
|
-
const { props:
|
|
10486
|
+
const { props: props7 } = element;
|
|
10482
10487
|
const globalTheme = getSystemTheme(element);
|
|
10483
|
-
if (!
|
|
10488
|
+
if (!props7.backgroundColor)
|
|
10484
10489
|
return;
|
|
10485
10490
|
return {
|
|
10486
|
-
backgroundColor: (0, import_scratch5.getMediaColor)(
|
|
10491
|
+
backgroundColor: (0, import_scratch5.getMediaColor)(props7.backgroundColor, globalTheme)
|
|
10487
10492
|
};
|
|
10488
10493
|
},
|
|
10489
10494
|
backgroundImage: (element) => {
|
|
10490
|
-
const { props:
|
|
10495
|
+
const { props: props7 } = element;
|
|
10491
10496
|
const globalTheme = getSystemTheme(element);
|
|
10492
|
-
if (!
|
|
10497
|
+
if (!props7.backgroundImage)
|
|
10493
10498
|
return;
|
|
10494
10499
|
return {
|
|
10495
|
-
backgroundImage: (0, import_scratch5.transformBackgroundImage)(
|
|
10500
|
+
backgroundImage: (0, import_scratch5.transformBackgroundImage)(props7.backgroundImage, globalTheme)
|
|
10496
10501
|
};
|
|
10497
10502
|
},
|
|
10498
|
-
backgroundSize: ({ props:
|
|
10499
|
-
backgroundSize:
|
|
10503
|
+
backgroundSize: ({ props: props7 }) => props7.backgroundSize ? {
|
|
10504
|
+
backgroundSize: props7.backgroundSize
|
|
10500
10505
|
} : null,
|
|
10501
|
-
backgroundPosition: ({ props:
|
|
10502
|
-
backgroundPosition:
|
|
10506
|
+
backgroundPosition: ({ props: props7 }) => props7.backgroundPosition ? {
|
|
10507
|
+
backgroundPosition: props7.backgroundPosition
|
|
10503
10508
|
} : null,
|
|
10504
|
-
textStroke: ({ props:
|
|
10505
|
-
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(
|
|
10509
|
+
textStroke: ({ props: props7 }) => props7.textStroke ? {
|
|
10510
|
+
WebkitTextStroke: (0, import_scratch5.transformTextStroke)(props7.textStroke)
|
|
10506
10511
|
} : null,
|
|
10507
|
-
outline: ({ props:
|
|
10508
|
-
outline: (0, import_scratch5.transformBorder)(
|
|
10512
|
+
outline: ({ props: props7 }) => props7.outline && {
|
|
10513
|
+
outline: (0, import_scratch5.transformBorder)(props7.outline)
|
|
10509
10514
|
},
|
|
10510
|
-
border: ({ props:
|
|
10511
|
-
border: (0, import_scratch5.transformBorder)(
|
|
10515
|
+
border: ({ props: props7 }) => props7.border && {
|
|
10516
|
+
border: (0, import_scratch5.transformBorder)(props7.border)
|
|
10512
10517
|
},
|
|
10513
|
-
borderColor: ({ props:
|
|
10514
|
-
borderColor: (0, import_scratch5.getMediaColor)(
|
|
10518
|
+
borderColor: ({ props: props7 }) => props7.borderColor && {
|
|
10519
|
+
borderColor: (0, import_scratch5.getMediaColor)(props7.borderColor)
|
|
10515
10520
|
},
|
|
10516
|
-
borderStyle: ({ props:
|
|
10517
|
-
borderStyle:
|
|
10521
|
+
borderStyle: ({ props: props7 }) => props7.borderStyle && {
|
|
10522
|
+
borderStyle: props7.borderStyle
|
|
10518
10523
|
},
|
|
10519
|
-
borderLeft: ({ props:
|
|
10520
|
-
borderLeft: (0, import_scratch5.transformBorder)(
|
|
10524
|
+
borderLeft: ({ props: props7 }) => props7.borderLeft && {
|
|
10525
|
+
borderLeft: (0, import_scratch5.transformBorder)(props7.borderLeft)
|
|
10521
10526
|
},
|
|
10522
|
-
borderTop: ({ props:
|
|
10523
|
-
borderTop: (0, import_scratch5.transformBorder)(
|
|
10527
|
+
borderTop: ({ props: props7 }) => props7.borderTop && {
|
|
10528
|
+
borderTop: (0, import_scratch5.transformBorder)(props7.borderTop)
|
|
10524
10529
|
},
|
|
10525
|
-
borderRight: ({ props:
|
|
10526
|
-
borderRight: (0, import_scratch5.transformBorder)(
|
|
10530
|
+
borderRight: ({ props: props7 }) => props7.borderRight && {
|
|
10531
|
+
borderRight: (0, import_scratch5.transformBorder)(props7.borderRight)
|
|
10527
10532
|
},
|
|
10528
|
-
borderBottom: ({ props:
|
|
10529
|
-
borderBottom: (0, import_scratch5.transformBorder)(
|
|
10533
|
+
borderBottom: ({ props: props7 }) => props7.borderBottom && {
|
|
10534
|
+
borderBottom: (0, import_scratch5.transformBorder)(props7.borderBottom)
|
|
10530
10535
|
},
|
|
10531
|
-
boxShadow: ({ props:
|
|
10532
|
-
boxShadow: (0, import_scratch5.transformShadow)(
|
|
10536
|
+
boxShadow: ({ props: props7 }) => props7.boxShadow && {
|
|
10537
|
+
boxShadow: (0, import_scratch5.transformShadow)(props7.boxShadow)
|
|
10533
10538
|
},
|
|
10534
|
-
textShadow: ({ props:
|
|
10535
|
-
textShadow: (0, import_scratch5.transformShadow)(
|
|
10539
|
+
textShadow: ({ props: props7 }) => props7.textShadow && {
|
|
10540
|
+
textShadow: (0, import_scratch5.transformShadow)(props7.textShadow)
|
|
10536
10541
|
},
|
|
10537
|
-
opacity: ({ props:
|
|
10538
|
-
opacity:
|
|
10542
|
+
opacity: ({ props: props7 }) => props7.opacity && {
|
|
10543
|
+
opacity: props7.opacity
|
|
10539
10544
|
},
|
|
10540
|
-
visibility: ({ props:
|
|
10541
|
-
visibility:
|
|
10545
|
+
visibility: ({ props: props7 }) => props7.visibility && {
|
|
10546
|
+
visibility: props7.visibility
|
|
10542
10547
|
},
|
|
10543
|
-
columnRule: ({ props:
|
|
10544
|
-
columnRule: (0, import_scratch5.transformBorder)(
|
|
10548
|
+
columnRule: ({ props: props7 }) => props7.columnRule && {
|
|
10549
|
+
columnRule: (0, import_scratch5.transformBorder)(props7.columnRule)
|
|
10545
10550
|
}
|
|
10546
10551
|
}
|
|
10547
10552
|
};
|
|
10548
10553
|
|
|
10549
10554
|
// Atoms/Media.js
|
|
10550
10555
|
var keySetters = {
|
|
10551
|
-
"@": (key,
|
|
10556
|
+
"@": (key, props7, result, element, isSubtree) => applyMediaProps(
|
|
10552
10557
|
key,
|
|
10553
|
-
|
|
10558
|
+
props7,
|
|
10554
10559
|
isSubtree ? result : result && result.media,
|
|
10555
10560
|
element
|
|
10556
10561
|
),
|
|
10557
|
-
":": (key,
|
|
10562
|
+
":": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10558
10563
|
key,
|
|
10559
|
-
|
|
10564
|
+
props7,
|
|
10560
10565
|
isSubtree ? result : result && result.selector,
|
|
10561
10566
|
element
|
|
10562
10567
|
),
|
|
10563
|
-
"[": (key,
|
|
10568
|
+
"[": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10564
10569
|
key,
|
|
10565
|
-
|
|
10570
|
+
props7,
|
|
10566
10571
|
isSubtree ? result : result && result.selector,
|
|
10567
10572
|
element
|
|
10568
10573
|
),
|
|
10569
|
-
"&": (key,
|
|
10574
|
+
"&": (key, props7, result, element, isSubtree) => applySelectorProps(
|
|
10570
10575
|
key,
|
|
10571
|
-
|
|
10576
|
+
props7,
|
|
10572
10577
|
isSubtree ? result : result && result.selector,
|
|
10573
10578
|
element
|
|
10574
10579
|
),
|
|
10575
|
-
$: (key,
|
|
10580
|
+
$: (key, props7, result, element, isSubtree) => applyCaseProps(
|
|
10576
10581
|
key,
|
|
10577
|
-
|
|
10582
|
+
props7,
|
|
10578
10583
|
isSubtree ? result : result && result.case,
|
|
10579
10584
|
element
|
|
10580
10585
|
),
|
|
10581
|
-
".": (key,
|
|
10586
|
+
".": (key, props7, result, element, isSubtree) => applyConditionalCaseProps(
|
|
10582
10587
|
key,
|
|
10583
|
-
|
|
10588
|
+
props7,
|
|
10584
10589
|
isSubtree ? result : result && result.case,
|
|
10585
10590
|
element
|
|
10586
10591
|
),
|
|
10587
|
-
"!": (key,
|
|
10592
|
+
"!": (key, props7, result, element, isSubtree) => applyConditionalFalsyProps(
|
|
10588
10593
|
key,
|
|
10589
|
-
|
|
10594
|
+
props7,
|
|
10590
10595
|
isSubtree ? result : result && result.case,
|
|
10591
10596
|
element
|
|
10592
10597
|
)
|
|
10593
10598
|
};
|
|
10594
|
-
var execClass = (key,
|
|
10599
|
+
var execClass = (key, props7, result, element) => {
|
|
10595
10600
|
const { class: className } = element;
|
|
10596
10601
|
const classnameExec = className[key];
|
|
10597
10602
|
if (typeof classnameExec !== "function")
|
|
10598
10603
|
return;
|
|
10599
10604
|
let classExec = classnameExec({
|
|
10600
|
-
props:
|
|
10605
|
+
props: props7,
|
|
10601
10606
|
context: element.context,
|
|
10602
10607
|
state: element.state
|
|
10603
10608
|
});
|
|
@@ -10609,27 +10614,27 @@ var execClass = (key, props5, result, element) => {
|
|
|
10609
10614
|
}
|
|
10610
10615
|
return classExec;
|
|
10611
10616
|
};
|
|
10612
|
-
var convertPropsToClass = (
|
|
10617
|
+
var convertPropsToClass = (props7, result, element) => {
|
|
10613
10618
|
const propsClassObj = {};
|
|
10614
|
-
for (const key in
|
|
10619
|
+
for (const key in props7) {
|
|
10615
10620
|
const setter = keySetters[key.slice(0, 1)];
|
|
10616
10621
|
if (setter) {
|
|
10617
|
-
setter(key,
|
|
10622
|
+
setter(key, props7[key], propsClassObj, element, true);
|
|
10618
10623
|
continue;
|
|
10619
10624
|
} else {
|
|
10620
|
-
execClass(key,
|
|
10625
|
+
execClass(key, props7, propsClassObj, element);
|
|
10621
10626
|
}
|
|
10622
10627
|
}
|
|
10623
10628
|
return propsClassObj;
|
|
10624
10629
|
};
|
|
10625
|
-
var applyMediaProps = (key,
|
|
10630
|
+
var applyMediaProps = (key, props7, result, element) => {
|
|
10626
10631
|
const { context } = element;
|
|
10627
10632
|
if (!context.designSystem || !context.designSystem.MEDIA)
|
|
10628
10633
|
return;
|
|
10629
10634
|
const globalTheme = getSystemTheme(element);
|
|
10630
10635
|
const { MEDIA } = context.designSystem;
|
|
10631
10636
|
const mediaName = MEDIA[key.slice(1)];
|
|
10632
|
-
const generatedClass = convertPropsToClass(
|
|
10637
|
+
const generatedClass = convertPropsToClass(props7, result, element);
|
|
10633
10638
|
const name = key.slice(1);
|
|
10634
10639
|
const isTheme = ["dark", "light"].includes(name);
|
|
10635
10640
|
const matchesGlobal = name === globalTheme;
|
|
@@ -10642,49 +10647,49 @@ var applyMediaProps = (key, props5, result, element) => {
|
|
|
10642
10647
|
result[mediaKey] = generatedClass;
|
|
10643
10648
|
return result[mediaKey];
|
|
10644
10649
|
};
|
|
10645
|
-
var applySelectorProps = (key,
|
|
10650
|
+
var applySelectorProps = (key, props7, result, element) => {
|
|
10646
10651
|
const selectorKey = `&${key}`;
|
|
10647
|
-
result[selectorKey] = convertPropsToClass(
|
|
10652
|
+
result[selectorKey] = convertPropsToClass(props7, result, element);
|
|
10648
10653
|
return result[selectorKey];
|
|
10649
10654
|
};
|
|
10650
|
-
var applyCaseProps = (key,
|
|
10655
|
+
var applyCaseProps = (key, props7, result, element) => {
|
|
10651
10656
|
const { CASES } = element.context && element.context.designSystem;
|
|
10652
10657
|
const caseKey = key.slice(1);
|
|
10653
10658
|
const isPropTrue = element.props[caseKey];
|
|
10654
10659
|
if (!CASES[caseKey] && !isPropTrue)
|
|
10655
10660
|
return;
|
|
10656
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10661
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10657
10662
|
};
|
|
10658
|
-
var applyConditionalCaseProps = (key,
|
|
10663
|
+
var applyConditionalCaseProps = (key, props7, result, element) => {
|
|
10659
10664
|
const caseKey = key.slice(1);
|
|
10660
10665
|
const isPropTrue = element.props[caseKey] || element.state[caseKey];
|
|
10661
10666
|
if (!isPropTrue)
|
|
10662
10667
|
return;
|
|
10663
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10668
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10664
10669
|
};
|
|
10665
|
-
var applyConditionalFalsyProps = (key,
|
|
10670
|
+
var applyConditionalFalsyProps = (key, props7, result, element) => {
|
|
10666
10671
|
const caseKey = key.slice(1);
|
|
10667
10672
|
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
|
|
10668
10673
|
if (!isPropTrue)
|
|
10669
|
-
return (0, import_utils.merge)(result, convertPropsToClass(
|
|
10674
|
+
return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10670
10675
|
};
|
|
10671
|
-
var applyTrueProps = (
|
|
10676
|
+
var applyTrueProps = (props7, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
|
|
10672
10677
|
var beforeClassAssign = (element, s) => {
|
|
10673
|
-
const { props:
|
|
10678
|
+
const { props: props7, class: className } = element;
|
|
10674
10679
|
const CLASS_NAMES = {
|
|
10675
10680
|
media: {},
|
|
10676
10681
|
selector: {},
|
|
10677
10682
|
case: {}
|
|
10678
10683
|
};
|
|
10679
|
-
for (const key in
|
|
10684
|
+
for (const key in props7) {
|
|
10680
10685
|
const setter = keySetters[key.slice(0, 1)];
|
|
10681
10686
|
if (setter)
|
|
10682
|
-
setter(key,
|
|
10687
|
+
setter(key, props7[key], CLASS_NAMES, element);
|
|
10683
10688
|
}
|
|
10684
10689
|
(0, import_utils.overwriteShallow)(className, CLASS_NAMES);
|
|
10685
10690
|
};
|
|
10686
10691
|
var initUpdate = (changes, element) => {
|
|
10687
|
-
const { props:
|
|
10692
|
+
const { props: props7, context, class: className } = element;
|
|
10688
10693
|
if (!context)
|
|
10689
10694
|
return;
|
|
10690
10695
|
const globalTheme = context.designSystem.globalTheme;
|
|
@@ -10704,10 +10709,10 @@ var initUpdate = (changes, element) => {
|
|
|
10704
10709
|
selector: {},
|
|
10705
10710
|
case: {}
|
|
10706
10711
|
};
|
|
10707
|
-
for (const key in
|
|
10712
|
+
for (const key in props7) {
|
|
10708
10713
|
const setter = keySetters[key.slice(0, 1)];
|
|
10709
10714
|
if (key === "theme") {
|
|
10710
|
-
|
|
10715
|
+
props7.update({
|
|
10711
10716
|
themeModifier: globalTheme
|
|
10712
10717
|
}, {
|
|
10713
10718
|
preventRecursive: true,
|
|
@@ -10715,9 +10720,9 @@ var initUpdate = (changes, element) => {
|
|
|
10715
10720
|
preventDefineUpdate: true
|
|
10716
10721
|
});
|
|
10717
10722
|
} else if (key === "true")
|
|
10718
|
-
applyTrueProps(
|
|
10723
|
+
applyTrueProps(props7[key], CLASS_NAMES, element);
|
|
10719
10724
|
if (setter)
|
|
10720
|
-
setter(key,
|
|
10725
|
+
setter(key, props7[key], CLASS_NAMES, element);
|
|
10721
10726
|
}
|
|
10722
10727
|
if (Object.keys(CLASS_NAMES.media).length) {
|
|
10723
10728
|
className.media = CLASS_NAMES.media;
|
|
@@ -10746,19 +10751,19 @@ var Iframe = {
|
|
|
10746
10751
|
minHeight: "H"
|
|
10747
10752
|
},
|
|
10748
10753
|
attr: {
|
|
10749
|
-
src: ({ props:
|
|
10750
|
-
loading: ({ props:
|
|
10751
|
-
allowfullscreen: ({ props:
|
|
10752
|
-
referrerpolicy: ({ props:
|
|
10754
|
+
src: ({ props: props7 }) => props7.src,
|
|
10755
|
+
loading: ({ props: props7 }) => props7.loading,
|
|
10756
|
+
allowfullscreen: ({ props: props7 }) => props7.allowfullscreen,
|
|
10757
|
+
referrerpolicy: ({ props: props7 }) => props7.referrerpolicy
|
|
10753
10758
|
}
|
|
10754
10759
|
};
|
|
10755
10760
|
|
|
10756
10761
|
// Atoms/Interaction.js
|
|
10757
10762
|
var Interaction = {
|
|
10758
10763
|
class: {
|
|
10759
|
-
userSelect: ({ props:
|
|
10760
|
-
pointerEvents: ({ props:
|
|
10761
|
-
cursor: ({ props:
|
|
10764
|
+
userSelect: ({ props: props7 }) => props7.userSelect && { userSelect: props7.userSelect },
|
|
10765
|
+
pointerEvents: ({ props: props7 }) => props7.pointerEvents && { pointerEvents: props7.pointerEvents },
|
|
10766
|
+
cursor: ({ props: props7 }) => props7.cursor && { cursor: props7.cursor }
|
|
10762
10767
|
}
|
|
10763
10768
|
};
|
|
10764
10769
|
|
|
@@ -10811,8 +10816,8 @@ var Focusable = {
|
|
|
10811
10816
|
}
|
|
10812
10817
|
},
|
|
10813
10818
|
attr: {
|
|
10814
|
-
placeholder: ({ props:
|
|
10815
|
-
tabIndex: ({ props:
|
|
10819
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
10820
|
+
tabIndex: ({ props: props7 }) => props7.tabIndex
|
|
10816
10821
|
}
|
|
10817
10822
|
};
|
|
10818
10823
|
var FocusableComponent = {
|
|
@@ -10829,14 +10834,14 @@ var FocusableComponent = {
|
|
|
10829
10834
|
style
|
|
10830
10835
|
},
|
|
10831
10836
|
attr: {
|
|
10832
|
-
type: ({ props:
|
|
10837
|
+
type: ({ props: props7 }) => props7.type
|
|
10833
10838
|
}
|
|
10834
10839
|
};
|
|
10835
10840
|
|
|
10836
10841
|
// Atoms/Overflow.js
|
|
10837
10842
|
var Overflow = {
|
|
10838
10843
|
class: {
|
|
10839
|
-
overflow: ({ props:
|
|
10844
|
+
overflow: ({ props: props7 }) => props7.overflow && { overflow: props7.overflow }
|
|
10840
10845
|
}
|
|
10841
10846
|
};
|
|
10842
10847
|
|
|
@@ -10912,17 +10917,17 @@ var import_scratch6 = __toESM(require_cjs());
|
|
|
10912
10917
|
var Position = {
|
|
10913
10918
|
props: {},
|
|
10914
10919
|
class: {
|
|
10915
|
-
position: ({ props:
|
|
10916
|
-
inset: ({ props:
|
|
10917
|
-
const { inset } =
|
|
10920
|
+
position: ({ props: props7 }) => props7.position && { position: props7.position },
|
|
10921
|
+
inset: ({ props: props7 }) => {
|
|
10922
|
+
const { inset } = props7;
|
|
10918
10923
|
if (typeof inset !== "string")
|
|
10919
10924
|
return;
|
|
10920
10925
|
return { inset: inset.split(" ").map((v) => (0, import_scratch6.getSpacingByKey)(v, "k").k).join(" ") };
|
|
10921
10926
|
},
|
|
10922
|
-
left: ({ props:
|
|
10923
|
-
top: ({ props:
|
|
10924
|
-
right: ({ props:
|
|
10925
|
-
bottom: ({ props:
|
|
10927
|
+
left: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.left, "left"),
|
|
10928
|
+
top: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.top, "top"),
|
|
10929
|
+
right: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.right, "right"),
|
|
10930
|
+
bottom: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.bottom, "bottom")
|
|
10926
10931
|
}
|
|
10927
10932
|
};
|
|
10928
10933
|
|
|
@@ -10933,30 +10938,30 @@ var Picture = {
|
|
|
10933
10938
|
tag: "source",
|
|
10934
10939
|
attr: {
|
|
10935
10940
|
media: (element) => {
|
|
10936
|
-
const { props:
|
|
10941
|
+
const { props: props7, key, context } = element;
|
|
10937
10942
|
const { MEDIA } = context.designSystem;
|
|
10938
10943
|
const globalTheme = getSystemTheme(element);
|
|
10939
|
-
const mediaName = (
|
|
10944
|
+
const mediaName = (props7.media || key).slice(1);
|
|
10940
10945
|
if (mediaName === globalTheme)
|
|
10941
10946
|
return "(min-width: 0px)";
|
|
10942
10947
|
else if (mediaName === "dark" || mediaName === "light")
|
|
10943
10948
|
return "(max-width: 0px)";
|
|
10944
10949
|
return MEDIA[mediaName];
|
|
10945
10950
|
},
|
|
10946
|
-
srcset: ({ props:
|
|
10951
|
+
srcset: ({ props: props7 }) => props7.srcset
|
|
10947
10952
|
}
|
|
10948
10953
|
},
|
|
10949
|
-
Img: ({ props:
|
|
10954
|
+
Img: ({ props: props7 }) => ({
|
|
10950
10955
|
width: "inherit",
|
|
10951
10956
|
height: "inherit",
|
|
10952
|
-
src:
|
|
10957
|
+
src: props7.src
|
|
10953
10958
|
})
|
|
10954
10959
|
};
|
|
10955
10960
|
|
|
10956
10961
|
// Atoms/Pseudo.js
|
|
10957
10962
|
var Pseudo = {
|
|
10958
10963
|
class: {
|
|
10959
|
-
content: ({ props:
|
|
10964
|
+
content: ({ props: props7 }) => props7.content && { content: props7.content }
|
|
10960
10965
|
}
|
|
10961
10966
|
};
|
|
10962
10967
|
|
|
@@ -10970,25 +10975,25 @@ var Svg = {
|
|
|
10970
10975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10971
10976
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
10972
10977
|
},
|
|
10973
|
-
html: ({ key, props:
|
|
10978
|
+
html: ({ key, props: props7, context, ...el }) => {
|
|
10974
10979
|
const { designSystem, utils } = context;
|
|
10975
10980
|
const SVG = designSystem && designSystem.SVG;
|
|
10976
|
-
const useSvgSprite =
|
|
10981
|
+
const useSvgSprite = props7.spriteId || context.designSystem && context.designSystem.useSvgSprite;
|
|
10977
10982
|
const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
|
|
10978
10983
|
const init = utils && utils.init;
|
|
10979
|
-
if (!useSvgSprite &&
|
|
10980
|
-
return
|
|
10981
|
-
const spriteId =
|
|
10984
|
+
if (!useSvgSprite && props7.src)
|
|
10985
|
+
return props7.src;
|
|
10986
|
+
const spriteId = props7.spriteId;
|
|
10982
10987
|
if (spriteId)
|
|
10983
10988
|
return useSVGSymbol(spriteId);
|
|
10984
|
-
const symbolId = Symbol.for(
|
|
10989
|
+
const symbolId = Symbol.for(props7.src);
|
|
10985
10990
|
let SVGKey = SVG[symbolId];
|
|
10986
10991
|
if (SVGKey && SVG[SVGKey])
|
|
10987
10992
|
return useSVGSymbol(SVGKey);
|
|
10988
10993
|
SVGKey = SVG[symbolId] = Math.random();
|
|
10989
|
-
if (
|
|
10994
|
+
if (props7.src) {
|
|
10990
10995
|
init({
|
|
10991
|
-
svg: { [SVGKey]:
|
|
10996
|
+
svg: { [SVGKey]: props7.src }
|
|
10992
10997
|
}, {
|
|
10993
10998
|
document: context.document,
|
|
10994
10999
|
emotion: context.emotion
|
|
@@ -11001,60 +11006,60 @@ var Svg = {
|
|
|
11001
11006
|
// Atoms/Shape/index.js
|
|
11002
11007
|
var import_utils3 = __toESM(require_cjs5());
|
|
11003
11008
|
var import_scratch7 = __toESM(require_cjs());
|
|
11004
|
-
var transformBorderRadius = (radius,
|
|
11009
|
+
var transformBorderRadius = (radius, props7, propertyName) => {
|
|
11005
11010
|
if (!(0, import_utils3.isString)(radius))
|
|
11006
11011
|
return;
|
|
11007
11012
|
return {
|
|
11008
|
-
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(
|
|
11013
|
+
borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(props7, propertyName, v)[propertyName]).join(" ")
|
|
11009
11014
|
};
|
|
11010
11015
|
};
|
|
11011
11016
|
var Shape = {
|
|
11012
11017
|
extend: Pseudo,
|
|
11013
11018
|
class: {
|
|
11014
|
-
shape: ({ props:
|
|
11015
|
-
const { shape } =
|
|
11016
|
-
return (0, import_utils3.exec)(SHAPES[shape], { props:
|
|
11019
|
+
shape: ({ props: props7 }) => {
|
|
11020
|
+
const { shape } = props7;
|
|
11021
|
+
return (0, import_utils3.exec)(SHAPES[shape], { props: props7 });
|
|
11017
11022
|
},
|
|
11018
|
-
shapeDirection: ({ props:
|
|
11019
|
-
const { shape, shapeDirection } =
|
|
11023
|
+
shapeDirection: ({ props: props7 }) => {
|
|
11024
|
+
const { shape, shapeDirection } = props7;
|
|
11020
11025
|
if (!shape || !shapeDirection)
|
|
11021
11026
|
return;
|
|
11022
11027
|
const shapeDir = SHAPES[shape + "Direction"];
|
|
11023
11028
|
return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
|
|
11024
11029
|
},
|
|
11025
|
-
shapeDirectionColor: ({ props:
|
|
11026
|
-
const { background, backgroundColor } =
|
|
11030
|
+
shapeDirectionColor: ({ props: props7 }) => {
|
|
11031
|
+
const { background, backgroundColor } = props7;
|
|
11027
11032
|
const borderColor = {
|
|
11028
11033
|
borderColor: (0, import_scratch7.getMediaColor)(background || backgroundColor)
|
|
11029
11034
|
};
|
|
11030
|
-
return
|
|
11035
|
+
return props7.shapeDirection ? borderColor : null;
|
|
11031
11036
|
},
|
|
11032
|
-
round: ({ props:
|
|
11033
|
-
borderRadius: ({ props:
|
|
11037
|
+
round: ({ props: props7, key, ...el }) => transformBorderRadius(props7.round || props7.borderRadius, props7, "round"),
|
|
11038
|
+
borderRadius: ({ props: props7, key, ...el }) => transformBorderRadius(props7.borderRadius || props7.round, props7, "borderRadius")
|
|
11034
11039
|
}
|
|
11035
11040
|
};
|
|
11036
11041
|
|
|
11037
11042
|
// Atoms/Text.js
|
|
11038
11043
|
var import_scratch8 = __toESM(require_cjs());
|
|
11039
11044
|
var Text = {
|
|
11040
|
-
text: ({ key, props:
|
|
11041
|
-
if (
|
|
11042
|
-
return state && state[key] ||
|
|
11043
|
-
return
|
|
11045
|
+
text: ({ key, props: props7, state }) => {
|
|
11046
|
+
if (props7.text === true)
|
|
11047
|
+
return state && state[key] || props7 && props7[key];
|
|
11048
|
+
return props7.text;
|
|
11044
11049
|
},
|
|
11045
11050
|
class: {
|
|
11046
|
-
fontSize: ({ props:
|
|
11047
|
-
fontFamily: ({ props:
|
|
11048
|
-
lineHeight: ({ props:
|
|
11051
|
+
fontSize: ({ props: props7 }) => props7.fontSize ? (0, import_scratch8.getFontSizeByKey)(props7.fontSize) : null,
|
|
11052
|
+
fontFamily: ({ props: props7 }) => props7.fontFamily && { fontFamily: (0, import_scratch8.getFontFamily)(props7.fontFamily) || props7.fontFamily },
|
|
11053
|
+
lineHeight: ({ props: props7 }) => props7.lineHeight && { lineHeight: props7.lineHeight },
|
|
11049
11054
|
// lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
11050
|
-
textDecoration: ({ props:
|
|
11051
|
-
textTransform: ({ props:
|
|
11052
|
-
whiteSpace: ({ props:
|
|
11053
|
-
letterSpacing: ({ props:
|
|
11054
|
-
textAlign: ({ props:
|
|
11055
|
-
fontWeight: ({ props:
|
|
11056
|
-
fontWeight:
|
|
11057
|
-
fontVariationSettings: '"wght" ' +
|
|
11055
|
+
textDecoration: ({ props: props7 }) => props7.textDecoration && { textDecoration: props7.textDecoration },
|
|
11056
|
+
textTransform: ({ props: props7 }) => props7.textTransform && { textTransform: props7.textTransform },
|
|
11057
|
+
whiteSpace: ({ props: props7 }) => props7.whiteSpace && { whiteSpace: props7.whiteSpace },
|
|
11058
|
+
letterSpacing: ({ props: props7 }) => props7.letterSpacing && { letterSpacing: props7.letterSpacing },
|
|
11059
|
+
textAlign: ({ props: props7 }) => props7.textAlign && { textAlign: props7.textAlign },
|
|
11060
|
+
fontWeight: ({ props: props7 }) => props7.fontWeight && {
|
|
11061
|
+
fontWeight: props7.fontWeight,
|
|
11062
|
+
fontVariationSettings: '"wght" ' + props7.fontWeight
|
|
11058
11063
|
}
|
|
11059
11064
|
}
|
|
11060
11065
|
};
|
|
@@ -11088,15 +11093,15 @@ var Footnote = {
|
|
|
11088
11093
|
// Atoms/Transform.js
|
|
11089
11094
|
var Transform = {
|
|
11090
11095
|
class: {
|
|
11091
|
-
transform: ({ props:
|
|
11092
|
-
transformOrigin: ({ props:
|
|
11096
|
+
transform: ({ props: props7 }) => props7.transform && { transform: props7.transform },
|
|
11097
|
+
transformOrigin: ({ props: props7 }) => props7.transformOrigin && { transformOrigin: props7.transformOrigin }
|
|
11093
11098
|
}
|
|
11094
11099
|
};
|
|
11095
11100
|
|
|
11096
11101
|
// Atoms/XYZ.js
|
|
11097
11102
|
var XYZ = {
|
|
11098
11103
|
class: {
|
|
11099
|
-
zIndex: ({ props:
|
|
11104
|
+
zIndex: ({ props: props7 }) => props7.zIndex && { zIndex: props7.zIndex }
|
|
11100
11105
|
}
|
|
11101
11106
|
};
|
|
11102
11107
|
|
|
@@ -11253,11 +11258,11 @@ var length = 0;
|
|
|
11253
11258
|
var position = 0;
|
|
11254
11259
|
var character = 0;
|
|
11255
11260
|
var characters = "";
|
|
11256
|
-
function node(value, root, parent, type,
|
|
11257
|
-
return { value, root, parent, type, props:
|
|
11261
|
+
function node(value, root, parent, type, props7, children, length2) {
|
|
11262
|
+
return { value, root, parent, type, props: props7, children, line, column, length: length2, return: "" };
|
|
11258
11263
|
}
|
|
11259
|
-
function copy(root,
|
|
11260
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length },
|
|
11264
|
+
function copy(root, props7) {
|
|
11265
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props7);
|
|
11261
11266
|
}
|
|
11262
11267
|
function char() {
|
|
11263
11268
|
return character;
|
|
@@ -11388,7 +11393,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11388
11393
|
var ampersand = 1;
|
|
11389
11394
|
var character2 = 0;
|
|
11390
11395
|
var type = "";
|
|
11391
|
-
var
|
|
11396
|
+
var props7 = rules;
|
|
11392
11397
|
var children = rulesets;
|
|
11393
11398
|
var reference = rule;
|
|
11394
11399
|
var characters2 = type;
|
|
@@ -11442,17 +11447,17 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11442
11447
|
case 59:
|
|
11443
11448
|
characters2 += ";";
|
|
11444
11449
|
default:
|
|
11445
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type,
|
|
11450
|
+
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props7 = [], children = [], length2), rulesets);
|
|
11446
11451
|
if (character2 === 123)
|
|
11447
11452
|
if (offset === 0)
|
|
11448
|
-
parse(characters2, root, reference, reference,
|
|
11453
|
+
parse(characters2, root, reference, reference, props7, rulesets, length2, points, children);
|
|
11449
11454
|
else
|
|
11450
11455
|
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
11451
11456
|
case 100:
|
|
11452
11457
|
case 108:
|
|
11453
11458
|
case 109:
|
|
11454
11459
|
case 115:
|
|
11455
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules,
|
|
11460
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props7 = [], length2), children), rules, children, length2, points, rule ? props7 : children);
|
|
11456
11461
|
break;
|
|
11457
11462
|
default:
|
|
11458
11463
|
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
@@ -11488,15 +11493,15 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
11488
11493
|
}
|
|
11489
11494
|
return rulesets;
|
|
11490
11495
|
}
|
|
11491
|
-
function ruleset(value, root, parent, index, offset, rules, points, type,
|
|
11496
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props7, children, length2) {
|
|
11492
11497
|
var post = offset - 1;
|
|
11493
11498
|
var rule = offset === 0 ? rules : [""];
|
|
11494
11499
|
var size = sizeof(rule);
|
|
11495
11500
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
11496
11501
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
11497
11502
|
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
11498
|
-
|
|
11499
|
-
return node(value, root, parent, offset === 0 ? RULESET : type,
|
|
11503
|
+
props7[k++] = z;
|
|
11504
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props7, children, length2);
|
|
11500
11505
|
}
|
|
11501
11506
|
function comment(value, root, parent) {
|
|
11502
11507
|
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
@@ -12473,26 +12478,26 @@ var Animation = {
|
|
|
12473
12478
|
animationName: (el) => el.props.animationName && {
|
|
12474
12479
|
animationName: applyAnimationProps(el.props.animationName, el)
|
|
12475
12480
|
},
|
|
12476
|
-
animationDuration: ({ props:
|
|
12477
|
-
animationDuration: (0, import_scratch9.getTimingByKey)(
|
|
12481
|
+
animationDuration: ({ props: props7 }) => props7.animationDuration && {
|
|
12482
|
+
animationDuration: (0, import_scratch9.getTimingByKey)(props7.animationDuration).timing
|
|
12478
12483
|
},
|
|
12479
|
-
animationDelay: ({ props:
|
|
12480
|
-
animationDelay: (0, import_scratch9.getTimingByKey)(
|
|
12484
|
+
animationDelay: ({ props: props7 }) => props7.animationDelay && {
|
|
12485
|
+
animationDelay: (0, import_scratch9.getTimingByKey)(props7.animationDelay).timing
|
|
12481
12486
|
},
|
|
12482
|
-
animationTimingFunction: ({ props:
|
|
12483
|
-
animationTimingFunction: (0, import_scratch9.getTimingFunction)(
|
|
12487
|
+
animationTimingFunction: ({ props: props7 }) => props7.animationTimingFunction && {
|
|
12488
|
+
animationTimingFunction: (0, import_scratch9.getTimingFunction)(props7.animationTimingFunction)
|
|
12484
12489
|
},
|
|
12485
|
-
animationFillMode: ({ props:
|
|
12486
|
-
animationFillMode:
|
|
12490
|
+
animationFillMode: ({ props: props7 }) => props7.animationFillMode && {
|
|
12491
|
+
animationFillMode: props7.animationFillMode
|
|
12487
12492
|
},
|
|
12488
|
-
animationPlayState: ({ props:
|
|
12489
|
-
animationPlayState:
|
|
12493
|
+
animationPlayState: ({ props: props7 }) => props7.animationPlayState && {
|
|
12494
|
+
animationPlayState: props7.animationPlayState
|
|
12490
12495
|
},
|
|
12491
|
-
animationIterationCount: ({ props:
|
|
12492
|
-
animationIterationCount:
|
|
12496
|
+
animationIterationCount: ({ props: props7 }) => props7.animationIterationCount && {
|
|
12497
|
+
animationIterationCount: props7.animationIterationCount || 1
|
|
12493
12498
|
},
|
|
12494
|
-
animationDirection: ({ props:
|
|
12495
|
-
animationDirection:
|
|
12499
|
+
animationDirection: ({ props: props7 }) => props7.animationDirection && {
|
|
12500
|
+
animationDirection: props7.animationDirection
|
|
12496
12501
|
}
|
|
12497
12502
|
}
|
|
12498
12503
|
};
|
|
@@ -12500,7 +12505,7 @@ var Animation = {
|
|
|
12500
12505
|
// Box/index.js
|
|
12501
12506
|
var PropsCSS = {
|
|
12502
12507
|
class: {
|
|
12503
|
-
style: ({ props:
|
|
12508
|
+
style: ({ props: props7 }) => props7 && props7.style
|
|
12504
12509
|
}
|
|
12505
12510
|
};
|
|
12506
12511
|
var Box = {
|
|
@@ -12520,7 +12525,7 @@ var Box = {
|
|
|
12520
12525
|
Animation
|
|
12521
12526
|
],
|
|
12522
12527
|
attr: {
|
|
12523
|
-
id: ({ props:
|
|
12528
|
+
id: ({ props: props7 }) => props7.id
|
|
12524
12529
|
}
|
|
12525
12530
|
};
|
|
12526
12531
|
|
|
@@ -12535,7 +12540,7 @@ var Avatar = {
|
|
|
12535
12540
|
cursor: "pointer"
|
|
12536
12541
|
},
|
|
12537
12542
|
attr: {
|
|
12538
|
-
src: ({ key, props:
|
|
12543
|
+
src: ({ key, props: props7 }) => props7.src || `https://avatars.dicebear.com/api/${props7.avatarType || "adventurer-neutral"}/${props7.key || key}.svg`
|
|
12539
12544
|
}
|
|
12540
12545
|
};
|
|
12541
12546
|
var AvatarBundle = {
|
|
@@ -12555,15 +12560,15 @@ var AvatarBundle = {
|
|
|
12555
12560
|
// Icon/index.js
|
|
12556
12561
|
var Icon = {
|
|
12557
12562
|
extend: Svg,
|
|
12558
|
-
props: ({ key, props:
|
|
12563
|
+
props: ({ key, props: props7, parent, context }) => {
|
|
12559
12564
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
12560
12565
|
const { toCamelCase } = context && context.utils;
|
|
12561
|
-
const iconName =
|
|
12566
|
+
const iconName = props7.inheritedString || props7.name || props7.icon || key;
|
|
12562
12567
|
const camelCase = toCamelCase(iconName);
|
|
12563
12568
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
12564
12569
|
let activeIconName;
|
|
12565
|
-
if (
|
|
12566
|
-
activeIconName =
|
|
12570
|
+
if (props7.active) {
|
|
12571
|
+
activeIconName = props7[".active"].name || props7[".active"].icon;
|
|
12567
12572
|
}
|
|
12568
12573
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
12569
12574
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -12582,7 +12587,7 @@ var Icon = {
|
|
|
12582
12587
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
12583
12588
|
}
|
|
12584
12589
|
const iconFromLibrary = ICONS[validIconName];
|
|
12585
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
12590
|
+
const directSrc = parent && parent.props && parent.props.src || props7.src;
|
|
12586
12591
|
return {
|
|
12587
12592
|
width: "A",
|
|
12588
12593
|
height: "A",
|
|
@@ -12607,9 +12612,9 @@ var IconText = {
|
|
|
12607
12612
|
},
|
|
12608
12613
|
Icon: {
|
|
12609
12614
|
props: {},
|
|
12610
|
-
if: ({ props:
|
|
12615
|
+
if: ({ props: props7 }) => props7.name || props7.icon
|
|
12611
12616
|
},
|
|
12612
|
-
text: ({ props:
|
|
12617
|
+
text: ({ props: props7 }) => props7.text
|
|
12613
12618
|
};
|
|
12614
12619
|
|
|
12615
12620
|
// Button/index.js
|
|
@@ -12630,7 +12635,7 @@ var Button = {
|
|
|
12630
12635
|
round: "C2"
|
|
12631
12636
|
},
|
|
12632
12637
|
attr: {
|
|
12633
|
-
type: ({ props:
|
|
12638
|
+
type: ({ props: props7 }) => props7.type
|
|
12634
12639
|
}
|
|
12635
12640
|
};
|
|
12636
12641
|
var SquareButton = {
|
|
@@ -12661,6 +12666,41 @@ var ButtonSet = {
|
|
|
12661
12666
|
childExtend: SquareButton
|
|
12662
12667
|
};
|
|
12663
12668
|
|
|
12669
|
+
// Dialog/index.js
|
|
12670
|
+
var DialogFooter = {
|
|
12671
|
+
extend: Flex,
|
|
12672
|
+
props: {
|
|
12673
|
+
align: "center flex-end",
|
|
12674
|
+
gap: "X2",
|
|
12675
|
+
margin: "auto - -",
|
|
12676
|
+
padding: "Y2 X2"
|
|
12677
|
+
},
|
|
12678
|
+
childExtend: {
|
|
12679
|
+
extend: Button,
|
|
12680
|
+
props: {
|
|
12681
|
+
theme: "primary @dark .color-only",
|
|
12682
|
+
fontSize: "Z1",
|
|
12683
|
+
textTransform: "uppercase",
|
|
12684
|
+
background: "transparent",
|
|
12685
|
+
"&": {
|
|
12686
|
+
padding: "Z A"
|
|
12687
|
+
},
|
|
12688
|
+
":hover": {
|
|
12689
|
+
background: "white .065"
|
|
12690
|
+
},
|
|
12691
|
+
":active": {
|
|
12692
|
+
background: "white .1"
|
|
12693
|
+
}
|
|
12694
|
+
}
|
|
12695
|
+
},
|
|
12696
|
+
cancel: {
|
|
12697
|
+
text: "cancel"
|
|
12698
|
+
},
|
|
12699
|
+
ok: {
|
|
12700
|
+
text: "ok"
|
|
12701
|
+
}
|
|
12702
|
+
};
|
|
12703
|
+
|
|
12664
12704
|
// Datepicker/node_modules/@symbo.ls/atoms/Block.js
|
|
12665
12705
|
var import_scratch10 = __toESM(require_cjs9());
|
|
12666
12706
|
|
|
@@ -12670,12 +12710,12 @@ var Flex2 = {
|
|
|
12670
12710
|
display: "flex"
|
|
12671
12711
|
},
|
|
12672
12712
|
class: {
|
|
12673
|
-
flow: ({ props:
|
|
12674
|
-
wrap: ({ props:
|
|
12675
|
-
align: ({ props:
|
|
12676
|
-
if (typeof
|
|
12713
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
12714
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
12715
|
+
align: ({ props: props7 }) => {
|
|
12716
|
+
if (typeof props7.align !== "string")
|
|
12677
12717
|
return;
|
|
12678
|
-
const [alignItems, justifyContent] =
|
|
12718
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
12679
12719
|
return { alignItems, justifyContent };
|
|
12680
12720
|
}
|
|
12681
12721
|
}
|
|
@@ -12686,22 +12726,22 @@ var import_scratch11 = __toESM(require_cjs9());
|
|
|
12686
12726
|
var Grid2 = {
|
|
12687
12727
|
props: { display: "grid" },
|
|
12688
12728
|
class: {
|
|
12689
|
-
area: ({ props:
|
|
12690
|
-
template: ({ props:
|
|
12691
|
-
templateAreas: ({ props:
|
|
12692
|
-
column: ({ props:
|
|
12693
|
-
columns: ({ props:
|
|
12694
|
-
templateColumns: ({ props:
|
|
12695
|
-
autoColumns: ({ props:
|
|
12696
|
-
columnStart: ({ props:
|
|
12697
|
-
row: ({ props:
|
|
12698
|
-
rows: ({ props:
|
|
12699
|
-
templateRows: ({ props:
|
|
12700
|
-
autoRows: ({ props:
|
|
12701
|
-
rowStart: ({ props:
|
|
12702
|
-
autoFlow: ({ props:
|
|
12703
|
-
columnGap: ({ props:
|
|
12704
|
-
rowGap: ({ props:
|
|
12729
|
+
area: ({ props: props7 }) => props7.area ? { gridArea: props7.area } : null,
|
|
12730
|
+
template: ({ props: props7 }) => props7.template ? { gridTemplate: props7.template } : null,
|
|
12731
|
+
templateAreas: ({ props: props7 }) => props7.templateAreas ? { gridTemplateAreas: props7.templateAreas } : null,
|
|
12732
|
+
column: ({ props: props7 }) => props7.column ? { gridColumn: props7.column } : null,
|
|
12733
|
+
columns: ({ props: props7 }) => props7.columns ? { gridTemplateColumns: props7.columns } : null,
|
|
12734
|
+
templateColumns: ({ props: props7 }) => props7.templateColumns ? { gridTemplateColumns: props7.templateColumns } : null,
|
|
12735
|
+
autoColumns: ({ props: props7 }) => props7.autoColumns ? { gridAutoColumns: props7.autoColumns } : null,
|
|
12736
|
+
columnStart: ({ props: props7 }) => props7.columnStart ? { gridColumnStart: props7.columnStart } : null,
|
|
12737
|
+
row: ({ props: props7 }) => props7.row ? { gridRow: props7.row } : null,
|
|
12738
|
+
rows: ({ props: props7 }) => props7.rows ? { gridTemplateRows: props7.rows } : null,
|
|
12739
|
+
templateRows: ({ props: props7 }) => props7.templateRows ? { gridTemplateRows: props7.templateRows } : null,
|
|
12740
|
+
autoRows: ({ props: props7 }) => props7.autoRows ? { gridAutoRows: props7.autoRows } : null,
|
|
12741
|
+
rowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
|
|
12742
|
+
autoFlow: ({ props: props7 }) => props7.autoFlow ? { gridAutoFlow: props7.autoFlow } : null,
|
|
12743
|
+
columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props7, "columnGap") : null,
|
|
12744
|
+
rowGap: ({ props: props7 }) => props7.rowGap ? (0, import_scratch11.getSpacingBasedOnRatio)(props7, "rowGap") : null
|
|
12705
12745
|
}
|
|
12706
12746
|
};
|
|
12707
12747
|
|
|
@@ -12768,7 +12808,7 @@ var DatePickerYears = {
|
|
|
12768
12808
|
position: "absolute",
|
|
12769
12809
|
top: "0",
|
|
12770
12810
|
left: "0",
|
|
12771
|
-
background: "linear-gradient(to bottom,
|
|
12811
|
+
background: "linear-gradient(to bottom, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12772
12812
|
zIndex: "10"
|
|
12773
12813
|
},
|
|
12774
12814
|
":after": {
|
|
@@ -12777,7 +12817,7 @@ var DatePickerYears = {
|
|
|
12777
12817
|
position: "absolute",
|
|
12778
12818
|
bottom: "0",
|
|
12779
12819
|
left: "0",
|
|
12780
|
-
background: "linear-gradient(to top,
|
|
12820
|
+
background: "linear-gradient(to top, var(--theme-tertiary-dark-background) 0%, transparent 100%)"
|
|
12781
12821
|
}
|
|
12782
12822
|
},
|
|
12783
12823
|
Flex: {
|
|
@@ -12804,8 +12844,8 @@ var DatePickerYears = {
|
|
|
12804
12844
|
on: {
|
|
12805
12845
|
click: (event, element, state) => state.update({ activeYear: element.text }),
|
|
12806
12846
|
render: (el, state) => {
|
|
12807
|
-
const { props:
|
|
12808
|
-
const { isActive } =
|
|
12847
|
+
const { props: props7 } = el;
|
|
12848
|
+
const { isActive } = props7;
|
|
12809
12849
|
if (isActive) {
|
|
12810
12850
|
window.requestAnimationFrame(() => {
|
|
12811
12851
|
el.parent.parent.node.scrollTop = el.node.offsetTop - 100;
|
|
@@ -12842,7 +12882,7 @@ var DatePickerYears = {
|
|
|
12842
12882
|
}
|
|
12843
12883
|
}
|
|
12844
12884
|
};
|
|
12845
|
-
var
|
|
12885
|
+
var DatePickerMonthsSlider = {
|
|
12846
12886
|
extend: Flex2,
|
|
12847
12887
|
props: {
|
|
12848
12888
|
position: "relative",
|
|
@@ -12855,7 +12895,7 @@ var months = {
|
|
|
12855
12895
|
content: '""',
|
|
12856
12896
|
position: "absolute",
|
|
12857
12897
|
boxSize: "100% 100px",
|
|
12858
|
-
background: "linear-gradient(to right,
|
|
12898
|
+
background: "linear-gradient(to right, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12859
12899
|
left: "0",
|
|
12860
12900
|
top: "0",
|
|
12861
12901
|
zIndex: "30",
|
|
@@ -12865,7 +12905,7 @@ var months = {
|
|
|
12865
12905
|
content: '""',
|
|
12866
12906
|
position: "absolute",
|
|
12867
12907
|
boxSize: "100% 100px",
|
|
12868
|
-
background: "linear-gradient(to left,
|
|
12908
|
+
background: "linear-gradient(to left, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
12869
12909
|
right: "0",
|
|
12870
12910
|
top: "0",
|
|
12871
12911
|
zIndex: "30",
|
|
@@ -12905,8 +12945,8 @@ var months = {
|
|
|
12905
12945
|
".isActive": { opacity: "1" }
|
|
12906
12946
|
}),
|
|
12907
12947
|
render: (el, state) => {
|
|
12908
|
-
const { props:
|
|
12909
|
-
const { isActive } =
|
|
12948
|
+
const { props: props7 } = el;
|
|
12949
|
+
const { isActive } = props7;
|
|
12910
12950
|
if (isActive) {
|
|
12911
12951
|
window.requestAnimationFrame(() => {
|
|
12912
12952
|
el.parent.parent.node.scrollLeft = el.node.offsetLeft;
|
|
@@ -12933,11 +12973,24 @@ var months = {
|
|
|
12933
12973
|
},
|
|
12934
12974
|
rightButton: { extend: Button, props: { icon: "arrowRight" } }
|
|
12935
12975
|
};
|
|
12936
|
-
var
|
|
12976
|
+
var DatePickerWeekDays = {
|
|
12937
12977
|
extend: Grid2,
|
|
12978
|
+
props: {
|
|
12979
|
+
overflow: "hidden",
|
|
12980
|
+
padding: "- Z Z",
|
|
12981
|
+
width: "100%",
|
|
12982
|
+
columns: "repeat(7, 1fr)",
|
|
12983
|
+
gap: "W2"
|
|
12984
|
+
},
|
|
12938
12985
|
childExtend: {
|
|
12939
12986
|
tag: "span",
|
|
12940
|
-
extend: Flex2
|
|
12987
|
+
extend: Flex2,
|
|
12988
|
+
props: {
|
|
12989
|
+
fontSize: "Y1",
|
|
12990
|
+
textTransform: "capitalize",
|
|
12991
|
+
align: "center center",
|
|
12992
|
+
":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
|
|
12993
|
+
}
|
|
12941
12994
|
},
|
|
12942
12995
|
...[
|
|
12943
12996
|
{ text: "Mo" },
|
|
@@ -12949,28 +13002,31 @@ var weekDays = {
|
|
|
12949
13002
|
{ text: "Su" }
|
|
12950
13003
|
]
|
|
12951
13004
|
};
|
|
12952
|
-
var
|
|
13005
|
+
var DatePickerGrid = {
|
|
12953
13006
|
extend: Grid2,
|
|
12954
13007
|
props: {
|
|
12955
|
-
columns: "repeat(7,
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
padding: `-
|
|
13008
|
+
columns: "repeat(7, 1fr)",
|
|
13009
|
+
minWidth: "100%",
|
|
13010
|
+
gap: "W2",
|
|
13011
|
+
padding: `- Z`
|
|
12959
13012
|
},
|
|
12960
13013
|
childExtend: {
|
|
12961
13014
|
extend: Button,
|
|
12962
13015
|
props: ({ state, key }) => ({
|
|
12963
|
-
|
|
13016
|
+
isActive: state.activeDay === parseInt(key) + 1,
|
|
12964
13017
|
textAlign: "center",
|
|
12965
|
-
background: "transparent",
|
|
12966
13018
|
fontSize: "Z1",
|
|
12967
13019
|
round: "100%",
|
|
12968
|
-
height: "
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
".isActive": { theme: "
|
|
13020
|
+
height: "B1",
|
|
13021
|
+
aspectRatio: "1/1",
|
|
13022
|
+
lineHeight: ".9",
|
|
13023
|
+
background: "transparent",
|
|
13024
|
+
theme: "secondary @dark .color",
|
|
13025
|
+
".isActive": { theme: "primary" },
|
|
13026
|
+
"!isActive": {
|
|
13027
|
+
":hover": { theme: "secondary" },
|
|
13028
|
+
":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
|
|
13029
|
+
}
|
|
12974
13030
|
}),
|
|
12975
13031
|
on: {
|
|
12976
13032
|
click: (event, element, state) => {
|
|
@@ -12979,28 +13035,12 @@ var monthNumbers = {
|
|
|
12979
13035
|
}
|
|
12980
13036
|
}
|
|
12981
13037
|
},
|
|
12982
|
-
$
|
|
13038
|
+
$setPropsCollection: (el, s) => {
|
|
12983
13039
|
const daysInMonth = new Date(s.activeYear, s.activeMonth, 0).getDate();
|
|
12984
13040
|
const days = new Array(daysInMonth).fill(void 0).map((v, k) => ({ text: k + 1 }));
|
|
12985
13041
|
return days;
|
|
12986
13042
|
}
|
|
12987
13043
|
};
|
|
12988
|
-
var confirmButtons = {
|
|
12989
|
-
extend: Flex2,
|
|
12990
|
-
childExtend: Button,
|
|
12991
|
-
...[
|
|
12992
|
-
{
|
|
12993
|
-
text: "cancel",
|
|
12994
|
-
on: {
|
|
12995
|
-
click: (event, element, state) => {
|
|
12996
|
-
}
|
|
12997
|
-
}
|
|
12998
|
-
},
|
|
12999
|
-
{
|
|
13000
|
-
text: "ok"
|
|
13001
|
-
}
|
|
13002
|
-
]
|
|
13003
|
-
};
|
|
13004
13044
|
var monthNumbersContainer = {
|
|
13005
13045
|
props: {
|
|
13006
13046
|
maxWidth: `${272 / 16}em`,
|
|
@@ -13009,7 +13049,7 @@ var monthNumbersContainer = {
|
|
|
13009
13049
|
content: '""',
|
|
13010
13050
|
position: "absolute",
|
|
13011
13051
|
boxSize: "100% 12px",
|
|
13012
|
-
background: "linear-gradient(to right,
|
|
13052
|
+
background: "linear-gradient(to right, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
13013
13053
|
left: "0",
|
|
13014
13054
|
top: "0",
|
|
13015
13055
|
zIndex: "30"
|
|
@@ -13018,70 +13058,34 @@ var monthNumbersContainer = {
|
|
|
13018
13058
|
content: '""',
|
|
13019
13059
|
position: "absolute",
|
|
13020
13060
|
boxSize: "100% 12px",
|
|
13021
|
-
background: "linear-gradient(to left,
|
|
13061
|
+
background: "linear-gradient(to left, var(--theme-tertiary-dark-background) 0%, transparent 100%)",
|
|
13022
13062
|
right: "0",
|
|
13023
13063
|
top: "0",
|
|
13024
13064
|
zIndex: "30"
|
|
13025
13065
|
},
|
|
13026
13066
|
content: {
|
|
13027
|
-
|
|
13067
|
+
overflow: "auto hidden"
|
|
13028
13068
|
}
|
|
13029
13069
|
},
|
|
13030
13070
|
content: {
|
|
13031
13071
|
extend: Flex2,
|
|
13032
|
-
childExtend:
|
|
13072
|
+
childExtend: DatePickerGrid,
|
|
13033
13073
|
...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
|
|
13034
13074
|
}
|
|
13035
13075
|
};
|
|
13036
13076
|
var props = {
|
|
13037
13077
|
yearRange: [1993, 2023],
|
|
13078
|
+
theme: "tertiary",
|
|
13038
13079
|
round: "Z2",
|
|
13039
13080
|
margin: "E",
|
|
13040
13081
|
overflow: "hidden",
|
|
13041
13082
|
maxHeight: "318px",
|
|
13042
13083
|
boxSize: "fit-content fit-content",
|
|
13043
|
-
background: "#141416",
|
|
13044
13084
|
padding: "- Z - -",
|
|
13045
13085
|
style: {
|
|
13046
13086
|
button: {
|
|
13047
13087
|
padding: "0"
|
|
13048
13088
|
}
|
|
13049
|
-
},
|
|
13050
|
-
calendar: {
|
|
13051
|
-
flow: "column",
|
|
13052
|
-
padding: "20px - - -",
|
|
13053
|
-
position: "relative",
|
|
13054
|
-
weekDaysContainer: {
|
|
13055
|
-
overflow: "hidden",
|
|
13056
|
-
padding: "- - Z1 -",
|
|
13057
|
-
boxSizing: "content-box",
|
|
13058
|
-
maxWidth: `${272 / 16}em`,
|
|
13059
|
-
childProps: {
|
|
13060
|
-
maxWidth: "fit-content",
|
|
13061
|
-
columns: "repeat(7, 32px)",
|
|
13062
|
-
gap: "4px",
|
|
13063
|
-
boxSizing: "content-box",
|
|
13064
|
-
padding: `- ${12 / 16}em`,
|
|
13065
|
-
childProps: {
|
|
13066
|
-
fontSize: "Y1",
|
|
13067
|
-
textTransform: "capitalize",
|
|
13068
|
-
":nth-child(7n-1)": { color: "rgba(255, 255, 255, .5)" },
|
|
13069
|
-
":nth-child(7n)": { color: "rgba(255, 255, 255, .5)" },
|
|
13070
|
-
align: "center center"
|
|
13071
|
-
}
|
|
13072
|
-
}
|
|
13073
|
-
},
|
|
13074
|
-
confirmButtons: {
|
|
13075
|
-
align: "center flex-end",
|
|
13076
|
-
gap: "A1",
|
|
13077
|
-
padding: "A A1 - -",
|
|
13078
|
-
childProps: {
|
|
13079
|
-
color: "#0079FD",
|
|
13080
|
-
fontSize: "Y",
|
|
13081
|
-
textTransform: "uppercase",
|
|
13082
|
-
background: "transparent"
|
|
13083
|
-
}
|
|
13084
|
-
}
|
|
13085
13089
|
}
|
|
13086
13090
|
};
|
|
13087
13091
|
var DatePicker = {
|
|
@@ -13093,16 +13097,16 @@ var DatePicker = {
|
|
|
13093
13097
|
},
|
|
13094
13098
|
props,
|
|
13095
13099
|
DatePickerYears: {},
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
childExtend: weekDays,
|
|
13102
|
-
...[{}, {}]
|
|
13100
|
+
Flex: {
|
|
13101
|
+
props: {
|
|
13102
|
+
flow: "column",
|
|
13103
|
+
padding: "20px - - -",
|
|
13104
|
+
position: "relative"
|
|
13103
13105
|
},
|
|
13106
|
+
DatePickerMonthsSlider: {},
|
|
13107
|
+
DatePickerWeekDays: {},
|
|
13104
13108
|
monthNumbersContainer,
|
|
13105
|
-
|
|
13109
|
+
DialogFooter: {}
|
|
13106
13110
|
}
|
|
13107
13111
|
};
|
|
13108
13112
|
var DatePickerTwoColumns = {
|
|
@@ -13122,6 +13126,131 @@ var DatePickerTwoColumns = {
|
|
|
13122
13126
|
}
|
|
13123
13127
|
};
|
|
13124
13128
|
|
|
13129
|
+
// Input/index.js
|
|
13130
|
+
var Input = {
|
|
13131
|
+
extend: [Focusable],
|
|
13132
|
+
tag: "input",
|
|
13133
|
+
props: {
|
|
13134
|
+
border: "none",
|
|
13135
|
+
type: "input",
|
|
13136
|
+
theme: "quaternary",
|
|
13137
|
+
fontSize: "A",
|
|
13138
|
+
round: "C",
|
|
13139
|
+
lineHeight: 1,
|
|
13140
|
+
fontFamily: "smbls",
|
|
13141
|
+
padding: "Z A"
|
|
13142
|
+
},
|
|
13143
|
+
attr: {
|
|
13144
|
+
pattern: ({ props: props7 }) => props7.pattern,
|
|
13145
|
+
minlength: ({ props: props7 }) => props7.minlength,
|
|
13146
|
+
maxlength: ({ props: props7 }) => props7.maxlength,
|
|
13147
|
+
name: ({ props: props7 }) => props7.name,
|
|
13148
|
+
autocomplete: ({ props: props7 }) => props7.autocomplete,
|
|
13149
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
13150
|
+
value: ({ props: props7, state }) => props7.value,
|
|
13151
|
+
disabled: ({ props: props7 }) => props7.disabled || null,
|
|
13152
|
+
readonly: ({ props: props7 }) => props7.readonly,
|
|
13153
|
+
required: ({ props: props7 }) => props7.required,
|
|
13154
|
+
type: ({ props: props7 }) => props7.type
|
|
13155
|
+
}
|
|
13156
|
+
};
|
|
13157
|
+
|
|
13158
|
+
// TimePicker/TimePickerItem.js
|
|
13159
|
+
var props2 = {
|
|
13160
|
+
align: "center center",
|
|
13161
|
+
flow: "column",
|
|
13162
|
+
gap: "X",
|
|
13163
|
+
style: {
|
|
13164
|
+
"input[type=number]::-webkit-inner-spin-button": {
|
|
13165
|
+
"-webkit-appearance": "none",
|
|
13166
|
+
margin: 0
|
|
13167
|
+
},
|
|
13168
|
+
"input[type=number]::-webkit-outer-spin-button": {
|
|
13169
|
+
"-webkit-appearance": "none",
|
|
13170
|
+
margin: 0
|
|
13171
|
+
},
|
|
13172
|
+
"input[type=number]": { "-webkit-appearance": "textfield" },
|
|
13173
|
+
"input:focus < button": { border: "3px solid red" },
|
|
13174
|
+
"> button": {
|
|
13175
|
+
padding: "0",
|
|
13176
|
+
background: "transparent",
|
|
13177
|
+
color: "white",
|
|
13178
|
+
fontSize: `${12 / 16}em`,
|
|
13179
|
+
display: "none"
|
|
13180
|
+
}
|
|
13181
|
+
},
|
|
13182
|
+
input: {
|
|
13183
|
+
boxSize: "C C",
|
|
13184
|
+
round: "Z",
|
|
13185
|
+
padding: "0",
|
|
13186
|
+
align: "center center",
|
|
13187
|
+
textAlign: "center",
|
|
13188
|
+
color: "white",
|
|
13189
|
+
background: "white .15"
|
|
13190
|
+
}
|
|
13191
|
+
};
|
|
13192
|
+
var TimePickerItem = {
|
|
13193
|
+
tag: "label",
|
|
13194
|
+
extend: Flex,
|
|
13195
|
+
props: props2,
|
|
13196
|
+
upButton: { extend: Button, props: { icon: "plus" } },
|
|
13197
|
+
input: { extend: [Input, Flex], attr: { type: "number", min: "1", max: "24", value: "1" } },
|
|
13198
|
+
downButton: { extend: Button, props: { icon: "minus" } }
|
|
13199
|
+
};
|
|
13200
|
+
|
|
13201
|
+
// TimePicker/index.js
|
|
13202
|
+
var props3 = {
|
|
13203
|
+
flow: "column",
|
|
13204
|
+
width: "fit-content",
|
|
13205
|
+
background: "rgba(255, 255, 255, .15)",
|
|
13206
|
+
padding: "A A B A",
|
|
13207
|
+
round: "Z",
|
|
13208
|
+
title: {
|
|
13209
|
+
fontSize: "Z1",
|
|
13210
|
+
textTransform: "capitalize",
|
|
13211
|
+
padding: "- - B -"
|
|
13212
|
+
},
|
|
13213
|
+
content: {
|
|
13214
|
+
align: "center center",
|
|
13215
|
+
gap: "A",
|
|
13216
|
+
timePickers: {
|
|
13217
|
+
align: "center center",
|
|
13218
|
+
gap: "Y2"
|
|
13219
|
+
}
|
|
13220
|
+
},
|
|
13221
|
+
footButtons: {
|
|
13222
|
+
align: "center flex-end",
|
|
13223
|
+
gap: "A1",
|
|
13224
|
+
padding: "B1 - - -",
|
|
13225
|
+
childProps: {
|
|
13226
|
+
background: "transparent",
|
|
13227
|
+
padding: "0",
|
|
13228
|
+
color: "#0079FD"
|
|
13229
|
+
}
|
|
13230
|
+
}
|
|
13231
|
+
};
|
|
13232
|
+
var TimePicker = {
|
|
13233
|
+
extend: Flex,
|
|
13234
|
+
props: props3,
|
|
13235
|
+
title: { text: "enter time" },
|
|
13236
|
+
content: {
|
|
13237
|
+
extend: Flex,
|
|
13238
|
+
timePickers: {
|
|
13239
|
+
tag: "label",
|
|
13240
|
+
extend: Flex,
|
|
13241
|
+
...[
|
|
13242
|
+
{ extend: TimePickerItem },
|
|
13243
|
+
":",
|
|
13244
|
+
{ extend: TimePickerItem },
|
|
13245
|
+
":",
|
|
13246
|
+
{ extend: TimePickerItem }
|
|
13247
|
+
]
|
|
13248
|
+
},
|
|
13249
|
+
TimeSwitcher: {}
|
|
13250
|
+
},
|
|
13251
|
+
DialogFooter: {}
|
|
13252
|
+
};
|
|
13253
|
+
|
|
13125
13254
|
// Dropdown/index.js
|
|
13126
13255
|
var DropdownList = {
|
|
13127
13256
|
extend: Flex,
|
|
@@ -13183,7 +13312,7 @@ var DropdownParent = {
|
|
|
13183
13312
|
};
|
|
13184
13313
|
|
|
13185
13314
|
// Form/FieldLabel.js
|
|
13186
|
-
var
|
|
13315
|
+
var props4 = {
|
|
13187
13316
|
flow: "column",
|
|
13188
13317
|
gap: "Y2",
|
|
13189
13318
|
childProps: { textTransform: "capitalize" },
|
|
@@ -13194,7 +13323,7 @@ var props2 = {
|
|
|
13194
13323
|
};
|
|
13195
13324
|
var FieldLabel = {
|
|
13196
13325
|
extend: Flex,
|
|
13197
|
-
props:
|
|
13326
|
+
props: props4,
|
|
13198
13327
|
caption: {
|
|
13199
13328
|
tag: "span",
|
|
13200
13329
|
text: "text"
|
|
@@ -13340,15 +13469,15 @@ var ToggleSwithWithLabel = {
|
|
|
13340
13469
|
// node_modules/@symbo.ls/icon/index.js
|
|
13341
13470
|
var Icon2 = {
|
|
13342
13471
|
extend: Svg,
|
|
13343
|
-
props: ({ key, props:
|
|
13472
|
+
props: ({ key, props: props7, parent, context }) => {
|
|
13344
13473
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
13345
13474
|
const { toCamelCase } = context && context.utils;
|
|
13346
|
-
const iconName =
|
|
13475
|
+
const iconName = props7.inheritedString || props7.name || props7.icon || key;
|
|
13347
13476
|
const camelCase = toCamelCase(iconName);
|
|
13348
13477
|
const isArray9 = camelCase.split(/([a-z])([A-Z])/g);
|
|
13349
13478
|
let activeIconName;
|
|
13350
|
-
if (
|
|
13351
|
-
activeIconName =
|
|
13479
|
+
if (props7.active) {
|
|
13480
|
+
activeIconName = props7[".active"].name || props7[".active"].icon;
|
|
13352
13481
|
}
|
|
13353
13482
|
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
13354
13483
|
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
@@ -13367,7 +13496,7 @@ var Icon2 = {
|
|
|
13367
13496
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
13368
13497
|
}
|
|
13369
13498
|
const iconFromLibrary = ICONS[validIconName];
|
|
13370
|
-
const directSrc = parent && parent.props && parent.props.src ||
|
|
13499
|
+
const directSrc = parent && parent.props && parent.props.src || props7.src;
|
|
13371
13500
|
return {
|
|
13372
13501
|
width: "A",
|
|
13373
13502
|
height: "A",
|
|
@@ -13392,9 +13521,9 @@ var IconText2 = {
|
|
|
13392
13521
|
},
|
|
13393
13522
|
Icon: {
|
|
13394
13523
|
props: {},
|
|
13395
|
-
if: ({ props:
|
|
13524
|
+
if: ({ props: props7 }) => props7.name || props7.icon
|
|
13396
13525
|
},
|
|
13397
|
-
text: ({ props:
|
|
13526
|
+
text: ({ props: props7 }) => props7.text
|
|
13398
13527
|
};
|
|
13399
13528
|
|
|
13400
13529
|
// Link/index.js
|
|
@@ -13414,23 +13543,23 @@ var Link = {
|
|
|
13414
13543
|
const { exec: exec5 } = ctx.utils;
|
|
13415
13544
|
return exec5(el.props.href, el) || exec5(el.props, el).href;
|
|
13416
13545
|
},
|
|
13417
|
-
target: ({ props:
|
|
13418
|
-
"aria-label": ({ props:
|
|
13419
|
-
draggable: ({ props:
|
|
13546
|
+
target: ({ props: props7 }) => props7.target,
|
|
13547
|
+
"aria-label": ({ props: props7 }) => props7.aria ? props7.aria.label : props7.text,
|
|
13548
|
+
draggable: ({ props: props7 }) => props7.draggable
|
|
13420
13549
|
}
|
|
13421
13550
|
};
|
|
13422
13551
|
var RouterLink = {
|
|
13423
13552
|
on: {
|
|
13424
13553
|
click: (event, el, s, ctx) => {
|
|
13425
|
-
const { props:
|
|
13426
|
-
const { href } =
|
|
13554
|
+
const { props: props7 } = el;
|
|
13555
|
+
const { href } = props7;
|
|
13427
13556
|
if (!href)
|
|
13428
13557
|
return;
|
|
13429
13558
|
const { utils, routerOptions } = ctx;
|
|
13430
13559
|
const { router } = utils;
|
|
13431
13560
|
const root = el.__ref.__root;
|
|
13432
13561
|
const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
|
|
13433
|
-
const options =
|
|
13562
|
+
const options = props7.routerOptions || routerOptions || {
|
|
13434
13563
|
scrollToOptions: { behaviour: "instant" }
|
|
13435
13564
|
};
|
|
13436
13565
|
if (href && !linkIsExternal) {
|
|
@@ -13444,35 +13573,6 @@ var RouteLink = {
|
|
|
13444
13573
|
extend: [Link, RouterLink]
|
|
13445
13574
|
};
|
|
13446
13575
|
|
|
13447
|
-
// Input/index.js
|
|
13448
|
-
var Input = {
|
|
13449
|
-
extend: [Focusable],
|
|
13450
|
-
tag: "input",
|
|
13451
|
-
props: {
|
|
13452
|
-
border: "none",
|
|
13453
|
-
type: "input",
|
|
13454
|
-
theme: "quaternary",
|
|
13455
|
-
fontSize: "A",
|
|
13456
|
-
round: "C",
|
|
13457
|
-
lineHeight: 1,
|
|
13458
|
-
fontFamily: "smbls",
|
|
13459
|
-
padding: "Z A"
|
|
13460
|
-
},
|
|
13461
|
-
attr: {
|
|
13462
|
-
pattern: ({ props: props5 }) => props5.pattern,
|
|
13463
|
-
minlength: ({ props: props5 }) => props5.minlength,
|
|
13464
|
-
maxlength: ({ props: props5 }) => props5.maxlength,
|
|
13465
|
-
name: ({ props: props5 }) => props5.name,
|
|
13466
|
-
autocomplete: ({ props: props5 }) => props5.autocomplete,
|
|
13467
|
-
placeholder: ({ props: props5 }) => props5.placeholder,
|
|
13468
|
-
value: ({ props: props5, state }) => props5.value,
|
|
13469
|
-
disabled: ({ props: props5 }) => props5.disabled || null,
|
|
13470
|
-
readonly: ({ props: props5 }) => props5.readonly,
|
|
13471
|
-
required: ({ props: props5 }) => props5.required,
|
|
13472
|
-
type: ({ props: props5 }) => props5.type
|
|
13473
|
-
}
|
|
13474
|
-
};
|
|
13475
|
-
|
|
13476
13576
|
// Field/node_modules/@symbo.ls/atoms/Block.js
|
|
13477
13577
|
var import_scratch19 = __toESM(require_cjs());
|
|
13478
13578
|
|
|
@@ -13513,8 +13613,8 @@ var Focusable2 = {
|
|
|
13513
13613
|
}
|
|
13514
13614
|
},
|
|
13515
13615
|
attr: {
|
|
13516
|
-
placeholder: ({ props:
|
|
13517
|
-
tabIndex: ({ props:
|
|
13616
|
+
placeholder: ({ props: props7 }) => props7.placeholder,
|
|
13617
|
+
tabIndex: ({ props: props7 }) => props7.tabIndex
|
|
13518
13618
|
}
|
|
13519
13619
|
};
|
|
13520
13620
|
|
|
@@ -13585,23 +13685,23 @@ var Video = {
|
|
|
13585
13685
|
childExtend: {
|
|
13586
13686
|
tag: "source",
|
|
13587
13687
|
attr: {
|
|
13588
|
-
src: ({ props:
|
|
13589
|
-
controls: ({ props:
|
|
13688
|
+
src: ({ props: props7 }) => props7.src,
|
|
13689
|
+
controls: ({ props: props7 }) => props7.controls
|
|
13590
13690
|
}
|
|
13591
13691
|
},
|
|
13592
13692
|
props: {
|
|
13593
13693
|
controls: true
|
|
13594
13694
|
},
|
|
13595
13695
|
attr: {
|
|
13596
|
-
autoplay: ({ props:
|
|
13597
|
-
controls: ({ props:
|
|
13696
|
+
autoplay: ({ props: props7 }) => props7.autoplay,
|
|
13697
|
+
controls: ({ props: props7 }) => props7.controls
|
|
13598
13698
|
}
|
|
13599
13699
|
};
|
|
13600
13700
|
|
|
13601
13701
|
// Range/index.js
|
|
13602
13702
|
var import_utils14 = __toESM(require_cjs5());
|
|
13603
13703
|
var import_scratch28 = __toESM(require_cjs());
|
|
13604
|
-
var
|
|
13704
|
+
var props5 = {
|
|
13605
13705
|
appearance: "none",
|
|
13606
13706
|
width: "100%",
|
|
13607
13707
|
height: "2px",
|
|
@@ -13661,7 +13761,7 @@ var props3 = {
|
|
|
13661
13761
|
}
|
|
13662
13762
|
};
|
|
13663
13763
|
var Range = {
|
|
13664
|
-
props:
|
|
13764
|
+
props: props5,
|
|
13665
13765
|
tag: "input",
|
|
13666
13766
|
attr: { type: "range" }
|
|
13667
13767
|
};
|
|
@@ -13778,8 +13878,8 @@ var Slider = {
|
|
|
13778
13878
|
click: (ev, el, s) => {
|
|
13779
13879
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13780
13880
|
const input = el.parent.input;
|
|
13781
|
-
const
|
|
13782
|
-
const value = (0, import_utils15.isFunction)(
|
|
13881
|
+
const props7 = input.props;
|
|
13882
|
+
const value = (0, import_utils15.isFunction)(props7.value) ? props7.value() : props7.value;
|
|
13783
13883
|
input.node.value = value;
|
|
13784
13884
|
}
|
|
13785
13885
|
}
|
|
@@ -13815,8 +13915,8 @@ var Slider = {
|
|
|
13815
13915
|
click: (ev, el, s) => {
|
|
13816
13916
|
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
13817
13917
|
const input = el.parent.input;
|
|
13818
|
-
const
|
|
13819
|
-
const value = (0, import_utils15.isFunction)(
|
|
13918
|
+
const props7 = input.props;
|
|
13919
|
+
const value = (0, import_utils15.isFunction)(props7.value) ? props7.value() : props7.value;
|
|
13820
13920
|
input.node.value = value;
|
|
13821
13921
|
}
|
|
13822
13922
|
}
|
|
@@ -13832,12 +13932,12 @@ var Flex3 = {
|
|
|
13832
13932
|
display: "flex"
|
|
13833
13933
|
},
|
|
13834
13934
|
class: {
|
|
13835
|
-
flow: ({ props:
|
|
13836
|
-
wrap: ({ props:
|
|
13837
|
-
align: ({ props:
|
|
13838
|
-
if (typeof
|
|
13935
|
+
flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
|
|
13936
|
+
wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
|
|
13937
|
+
align: ({ props: props7 }) => {
|
|
13938
|
+
if (typeof props7.align !== "string")
|
|
13839
13939
|
return;
|
|
13840
|
-
const [alignItems, justifyContent] =
|
|
13940
|
+
const [alignItems, justifyContent] = props7.align.split(" ");
|
|
13841
13941
|
return { alignItems, justifyContent };
|
|
13842
13942
|
}
|
|
13843
13943
|
}
|
|
@@ -13985,14 +14085,14 @@ var TooltipParent = {
|
|
|
13985
14085
|
};
|
|
13986
14086
|
|
|
13987
14087
|
// Textarea/index.js
|
|
13988
|
-
var
|
|
14088
|
+
var props6 = {
|
|
13989
14089
|
height: "E",
|
|
13990
14090
|
lineHeight: 1.4,
|
|
13991
14091
|
style: { resize: "none" }
|
|
13992
14092
|
};
|
|
13993
14093
|
var Textarea = {
|
|
13994
14094
|
extend: [Input],
|
|
13995
|
-
props:
|
|
14095
|
+
props: props6,
|
|
13996
14096
|
tag: "textarea"
|
|
13997
14097
|
};
|
|
13998
14098
|
|
|
@@ -14056,13 +14156,13 @@ var Select = {
|
|
|
14056
14156
|
disabled: ""
|
|
14057
14157
|
},
|
|
14058
14158
|
attr: {
|
|
14059
|
-
value: ({ props:
|
|
14060
|
-
selected: ({ props:
|
|
14061
|
-
disabled: ({ props:
|
|
14159
|
+
value: ({ props: props7 }) => props7.value,
|
|
14160
|
+
selected: ({ props: props7 }) => props7.selected,
|
|
14161
|
+
disabled: ({ props: props7 }) => props7.disabled
|
|
14062
14162
|
}
|
|
14063
14163
|
},
|
|
14064
14164
|
attr: {
|
|
14065
|
-
name: ({ props:
|
|
14066
|
-
disabled: ({ props:
|
|
14165
|
+
name: ({ props: props7 }) => props7.name,
|
|
14166
|
+
disabled: ({ props: props7 }) => props7.disabled
|
|
14067
14167
|
}
|
|
14068
14168
|
};
|