@makeswift/runtime 0.0.19 → 0.0.22
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/builder.cjs.js +1 -0
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +1 -0
- package/dist/builder.es.js.map +1 -1
- package/dist/color.cjs.js +8 -0
- package/dist/color.cjs.js.map +1 -0
- package/dist/color.es.js +6 -0
- package/dist/color.es.js.map +1 -0
- package/dist/components.cjs.js +1 -0
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +1 -0
- package/dist/components.es.js.map +1 -1
- package/dist/control-serialization.cjs.js +1 -0
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +1 -0
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +7 -5
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +2 -1
- package/dist/controls.es.js.map +1 -1
- package/dist/descriptors.cjs.js.map +1 -1
- package/dist/descriptors.es.js.map +1 -1
- package/dist/image.cjs.js +6 -6
- package/dist/image.cjs.js.map +1 -1
- package/dist/image.es.js +6 -5
- package/dist/image.es.js.map +1 -1
- package/dist/index.cjs.js +191 -150
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +98 -57
- package/dist/index.es.js.map +1 -1
- package/dist/main.cjs.js +1 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +1 -0
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +1 -0
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +1 -0
- package/dist/next.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +2 -1
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +2 -1
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +10 -9
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +7 -6
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs.js +1 -0
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +1 -0
- package/dist/react.es.js.map +1 -1
- package/dist/types/components/builtin/SocialLinks/options.d.ts +5 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -1
- package/dist/types/controls/image.d.ts +15 -3
- package/dist/types/controls/image.d.ts.map +1 -1
- package/dist/types/prop-controllers/descriptors.d.ts +2 -2
- package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/runtimes/react/controls/control.d.ts +2 -2
- package/dist/types/runtimes/react/controls/control.d.ts.map +1 -1
- package/dist/types/runtimes/react/controls/image.d.ts +12 -3
- package/dist/types/runtimes/react/controls/image.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -46,6 +46,7 @@ var client = require("@apollo/client");
|
|
|
46
46
|
var batchHttp = require("@apollo/client/link/batch-http");
|
|
47
47
|
var slate = require("slate");
|
|
48
48
|
var graphql = require("./graphql.cjs.js");
|
|
49
|
+
var image = require("./image.cjs.js");
|
|
49
50
|
var shape = require("./shape.cjs.js");
|
|
50
51
|
var style = require("./style.cjs.js");
|
|
51
52
|
var descriptors = require("./descriptors.cjs.js");
|
|
@@ -69,7 +70,7 @@ var isHotkey = require("is-hotkey");
|
|
|
69
70
|
var slateReact = require("slate-react");
|
|
70
71
|
var Lists = require("@convertkit/slate-lists");
|
|
71
72
|
var textInput = require("./text-input.cjs.js");
|
|
72
|
-
var
|
|
73
|
+
var color = require("./color.cjs.js");
|
|
73
74
|
var reactDom = require("react-dom");
|
|
74
75
|
function _interopDefaultLegacy(e) {
|
|
75
76
|
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
@@ -398,7 +399,7 @@ async function introspect(element, client2, store) {
|
|
|
398
399
|
variables: { ids: [...typographyIds] }
|
|
399
400
|
});
|
|
400
401
|
(_c = typographiesResult == null ? void 0 : typographiesResult.data) == null ? void 0 : _c.typographies.forEach((typography) => {
|
|
401
|
-
typography.style.forEach((style2) => {
|
|
402
|
+
typography == null ? void 0 : typography.style.forEach((style2) => {
|
|
402
403
|
var _a2;
|
|
403
404
|
const swatchId = (_a2 = style2.value.color) == null ? void 0 : _a2.swatchId;
|
|
404
405
|
if (swatchId != null)
|
|
@@ -632,11 +633,11 @@ function useBackgrounds(value) {
|
|
|
632
633
|
angle: bg.payload.angle,
|
|
633
634
|
isRadial: bg.payload.isRadial,
|
|
634
635
|
stops: bg.payload.stops.map((_b2) => {
|
|
635
|
-
var _c = _b2, { color } = _c, restOfStop = __objRest(_c, ["color"]);
|
|
636
|
+
var _c = _b2, { color: color2 } = _c, restOfStop = __objRest(_c, ["color"]);
|
|
636
637
|
return __spreadProps(__spreadValues({}, restOfStop), {
|
|
637
|
-
color:
|
|
638
|
-
swatch: swatches.find((s) => s && s.id ===
|
|
639
|
-
alpha:
|
|
638
|
+
color: color2 && {
|
|
639
|
+
swatch: swatches.find((s) => s && s.id === color2.swatchId),
|
|
640
|
+
alpha: color2.alpha
|
|
640
641
|
}
|
|
641
642
|
});
|
|
642
643
|
})
|
|
@@ -661,11 +662,11 @@ function useBackgrounds(value) {
|
|
|
661
662
|
}, [filesResult, swatchesResult, value]);
|
|
662
663
|
}
|
|
663
664
|
function mapSideColor(swatches, _c) {
|
|
664
|
-
var _d = _c, { color } = _d, restOfSide = __objRest(_d, ["color"]);
|
|
665
|
+
var _d = _c, { color: color2 } = _d, restOfSide = __objRest(_d, ["color"]);
|
|
665
666
|
return __spreadProps(__spreadValues({}, restOfSide), {
|
|
666
|
-
color:
|
|
667
|
-
alpha:
|
|
668
|
-
swatch: swatches.find((s) => s && s.id ===
|
|
667
|
+
color: color2 && {
|
|
668
|
+
alpha: color2.alpha,
|
|
669
|
+
swatch: swatches.find((s) => s && s.id === color2.swatchId)
|
|
669
670
|
}
|
|
670
671
|
});
|
|
671
672
|
}
|
|
@@ -705,7 +706,7 @@ const ShadowDefaultValue = {
|
|
|
705
706
|
};
|
|
706
707
|
function useBoxShadow(value) {
|
|
707
708
|
const swatchIds = value == null ? [] : [
|
|
708
|
-
...Array.from(new Set(value.map(({ value: shadows }) => shadows.map(({ payload: { color } }) =>
|
|
709
|
+
...Array.from(new Set(value.map(({ value: shadows }) => shadows.map(({ payload: { color: color2 } }) => color2 && color2.swatchId)).reduce((a, b) => a.concat(b), []).filter(isNonNullable)))
|
|
709
710
|
];
|
|
710
711
|
const skip = value == null || swatchIds.length === 0;
|
|
711
712
|
const { error, data = {} } = useQuery(SWATCHES_BY_ID, { skip, variables: { ids: swatchIds } });
|
|
@@ -717,15 +718,15 @@ function useBoxShadow(value) {
|
|
|
717
718
|
return __spreadProps(__spreadValues({}, restOfValue), {
|
|
718
719
|
value: shadows.map((_a2) => {
|
|
719
720
|
var _b2 = _a2, {
|
|
720
|
-
payload: { color, inset, offsetX, offsetY, blurRadius, spreadRadius }
|
|
721
|
+
payload: { color: color2, inset, offsetX, offsetY, blurRadius, spreadRadius }
|
|
721
722
|
} = _b2, restOfShadow = __objRest(_b2, [
|
|
722
723
|
"payload"
|
|
723
724
|
]);
|
|
724
725
|
return __spreadProps(__spreadValues({}, restOfShadow), {
|
|
725
726
|
payload: {
|
|
726
|
-
color:
|
|
727
|
-
swatch: swatches.find((s) => s && s.id ===
|
|
728
|
-
alpha:
|
|
727
|
+
color: color2 != null ? {
|
|
728
|
+
swatch: swatches.find((s) => s && s.id === color2.swatchId),
|
|
729
|
+
alpha: color2.alpha
|
|
729
730
|
} : null,
|
|
730
731
|
inset: inset != null ? inset : ShadowDefaultValue.inset,
|
|
731
732
|
offsetX: offsetX != null ? offsetX : ShadowDefaultValue.offsetX,
|
|
@@ -738,14 +739,14 @@ function useBoxShadow(value) {
|
|
|
738
739
|
});
|
|
739
740
|
});
|
|
740
741
|
}
|
|
741
|
-
function useResponsiveColor(
|
|
742
|
-
const swatchIds =
|
|
742
|
+
function useResponsiveColor(color2) {
|
|
743
|
+
const swatchIds = color2 == null ? [] : [...Array.from(new Set(color2.map(({ value: v }) => v && v.swatchId).filter(isNonNullable)))];
|
|
743
744
|
const skip = swatchIds.length === 0;
|
|
744
745
|
const { error, data = {} } = useQuery(SWATCHES_BY_ID, { skip, variables: { ids: swatchIds } });
|
|
745
|
-
if (
|
|
746
|
+
if (color2 == null || error != null)
|
|
746
747
|
return null;
|
|
747
748
|
const { swatches = [] } = data;
|
|
748
|
-
return
|
|
749
|
+
return color2.map((_a) => {
|
|
749
750
|
var _b = _a, { value: v } = _b, rest = __objRest(_b, ["value"]);
|
|
750
751
|
const { swatchId, alpha } = v;
|
|
751
752
|
const swatch = swatches.find((s) => s && s.id === swatchId);
|
|
@@ -1114,8 +1115,8 @@ const getIndexes = (spans, index) => {
|
|
|
1114
1115
|
}
|
|
1115
1116
|
return [rowIndex, remainder];
|
|
1116
1117
|
};
|
|
1117
|
-
function colorToString(
|
|
1118
|
-
return
|
|
1118
|
+
function colorToString(color2) {
|
|
1119
|
+
return color2 && color2.swatch ? `hsla(${color2.swatch.hue},${color2.swatch.saturation}%,${color2.swatch.lightness}%,${color2.alpha})` : "";
|
|
1119
1120
|
}
|
|
1120
1121
|
function cssMediaRules(responsiveValues, join$1, strategy) {
|
|
1121
1122
|
return (props) => join(typeof responsiveValues === "function" ? responsiveValues(props) : responsiveValues, join$1, strategy).reduce((acc, { deviceId, value }) => {
|
|
@@ -1185,7 +1186,7 @@ function cssPadding(defaultValue = {}) {
|
|
|
1185
1186
|
`;
|
|
1186
1187
|
}
|
|
1187
1188
|
const defaultBorderSide = { width: 0, style: "solid", color: null };
|
|
1188
|
-
const getBorderSide = ({ width, style: style2, color }) => `${width != null ? width : 0}px ${style2} ${
|
|
1189
|
+
const getBorderSide = ({ width, style: style2, color: color2 }) => `${width != null ? width : 0}px ${style2} ${color2 != null ? colorToString(color2) : "black"}`;
|
|
1189
1190
|
function cssBorder(defaultValue = {}) {
|
|
1190
1191
|
const defaultBorderTop = defaultValue.borderTop === void 0 ? defaultBorderSide : defaultValue.borderTop;
|
|
1191
1192
|
const defaultBorderRight = defaultValue.borderRight === void 0 ? defaultBorderSide : defaultValue.borderRight;
|
|
@@ -1231,7 +1232,7 @@ function cssBorderRadius(defaultValue = {}) {
|
|
|
1231
1232
|
`)}
|
|
1232
1233
|
`;
|
|
1233
1234
|
}
|
|
1234
|
-
const getBoxShadow = (shadows) => shadows.map(({ payload: { inset, offsetX, offsetY, blurRadius, spreadRadius, color } }) => `${inset ? "inset " : ""}${offsetX.toFixed(1)}px ${offsetY.toFixed(1)}px ${blurRadius}px ${spreadRadius}px ${
|
|
1235
|
+
const getBoxShadow = (shadows) => shadows.map(({ payload: { inset, offsetX, offsetY, blurRadius, spreadRadius, color: color2 } }) => `${inset ? "inset " : ""}${offsetX.toFixed(1)}px ${offsetY.toFixed(1)}px ${blurRadius}px ${spreadRadius}px ${color2 != null ? colorToString(color2) : "rgba(0,0,0,0.2)"}`).filter(Boolean).join();
|
|
1235
1236
|
function cssBoxShadow(defaultValue = []) {
|
|
1236
1237
|
return (props) => styled.css`
|
|
1237
1238
|
${cssMediaRules([props.boxShadow], ([boxShadow = defaultValue]) => styled.css`
|
|
@@ -1518,11 +1519,11 @@ function BackgroundVideo({
|
|
|
1518
1519
|
})]
|
|
1519
1520
|
});
|
|
1520
1521
|
}
|
|
1521
|
-
function getColor(
|
|
1522
|
-
if (
|
|
1522
|
+
function getColor(color2) {
|
|
1523
|
+
if (color2 == null)
|
|
1523
1524
|
return "black";
|
|
1524
|
-
if (
|
|
1525
|
-
return colorToString(__spreadProps(__spreadValues({},
|
|
1525
|
+
if (color2.swatch == null) {
|
|
1526
|
+
return colorToString(__spreadProps(__spreadValues({}, color2), {
|
|
1526
1527
|
swatch: {
|
|
1527
1528
|
hue: 0,
|
|
1528
1529
|
saturation: 0,
|
|
@@ -1530,12 +1531,12 @@ function getColor(color) {
|
|
|
1530
1531
|
}
|
|
1531
1532
|
}));
|
|
1532
1533
|
}
|
|
1533
|
-
return colorToString(
|
|
1534
|
+
return colorToString(color2);
|
|
1534
1535
|
}
|
|
1535
1536
|
const getStopsStyle = (stops) => stops.map(({
|
|
1536
|
-
color,
|
|
1537
|
+
color: color2,
|
|
1537
1538
|
location
|
|
1538
|
-
}) => `${getColor(
|
|
1539
|
+
}) => `${getColor(color2)} ${location}%`).join(",");
|
|
1539
1540
|
const getAspectRatio = (aspectRatio) => {
|
|
1540
1541
|
switch (aspectRatio) {
|
|
1541
1542
|
case "wide":
|
|
@@ -2171,7 +2172,7 @@ const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
|
2171
2172
|
lightness: 100
|
|
2172
2173
|
},
|
|
2173
2174
|
alpha: 1
|
|
2174
|
-
},
|
|
2175
|
+
}, color2 = {
|
|
2175
2176
|
swatch: {
|
|
2176
2177
|
hue: 0,
|
|
2177
2178
|
saturation: 0,
|
|
@@ -2202,35 +2203,35 @@ const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
|
2202
2203
|
font-size: ${`${fontSize.value}${fontSize.unit}`};
|
|
2203
2204
|
${{
|
|
2204
2205
|
flat: styled.css`
|
|
2205
|
-
background: ${colorToString(
|
|
2206
|
+
background: ${colorToString(color2)};
|
|
2206
2207
|
border: none;
|
|
2207
2208
|
transition: ${["color", "background", "border", "box-shadow"].map((property) => `${property} 0.15s ease-in-out`).join(", ")};
|
|
2208
2209
|
|
|
2209
2210
|
:hover {
|
|
2210
|
-
background: ${ColorHelper__default["default"](colorToString(
|
|
2211
|
+
background: ${ColorHelper__default["default"](colorToString(color2)).darken(0.1).hex()};
|
|
2211
2212
|
}
|
|
2212
2213
|
|
|
2213
2214
|
:active {
|
|
2214
|
-
background: ${ColorHelper__default["default"](colorToString(
|
|
2215
|
+
background: ${ColorHelper__default["default"](colorToString(color2)).darken(0.15).hex()};
|
|
2215
2216
|
}
|
|
2216
2217
|
`,
|
|
2217
2218
|
outline: styled.css`
|
|
2218
2219
|
background: transparent;
|
|
2219
|
-
box-shadow: inset 0 0 0 2px ${colorToString(
|
|
2220
|
+
box-shadow: inset 0 0 0 2px ${colorToString(color2)};
|
|
2220
2221
|
transition: ${["color", "background", "box-shadow"].map((property) => `${property} 0.15s ease-in-out`).join(", ")};
|
|
2221
2222
|
|
|
2222
2223
|
:hover {
|
|
2223
|
-
box-shadow: inset 0 0 0 2px ${ColorHelper__default["default"](colorToString(
|
|
2224
|
-
color: ${ColorHelper__default["default"](colorToString(
|
|
2224
|
+
box-shadow: inset 0 0 0 2px ${ColorHelper__default["default"](colorToString(color2)).darken(0.1).hex()};
|
|
2225
|
+
color: ${ColorHelper__default["default"](colorToString(color2)).darken(0.1).hex()};
|
|
2225
2226
|
}
|
|
2226
2227
|
|
|
2227
2228
|
:active {
|
|
2228
|
-
box-shadow: inset 0 0 0 2px ${ColorHelper__default["default"](colorToString(
|
|
2229
|
-
color: ${ColorHelper__default["default"](colorToString(
|
|
2229
|
+
box-shadow: inset 0 0 0 2px ${ColorHelper__default["default"](colorToString(color2)).darken(0.15).hex()};
|
|
2230
|
+
color: ${ColorHelper__default["default"](colorToString(color2)).darken(0.15).hex()};
|
|
2230
2231
|
}
|
|
2231
2232
|
`,
|
|
2232
2233
|
shadow: styled.css`
|
|
2233
|
-
background: ${colorToString(
|
|
2234
|
+
background: ${colorToString(color2)};
|
|
2234
2235
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
2235
2236
|
transition: ${["transform", "box-shadow"].map((property) => `${property} 0.18s`).join(", ")};
|
|
2236
2237
|
|
|
@@ -2257,28 +2258,28 @@ const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
|
2257
2258
|
}
|
|
2258
2259
|
`,
|
|
2259
2260
|
blocky: styled.css`
|
|
2260
|
-
background: ${colorToString(
|
|
2261
|
+
background: ${colorToString(color2)};
|
|
2261
2262
|
border-width: 1px;
|
|
2262
2263
|
border-style: solid;
|
|
2263
|
-
border-color: ${ColorHelper__default["default"](colorToString(
|
|
2264
|
-
box-shadow: 0 4px ${ColorHelper__default["default"](colorToString(
|
|
2264
|
+
border-color: ${ColorHelper__default["default"](colorToString(color2)).darken(0.25).hex()};
|
|
2265
|
+
box-shadow: 0 4px ${ColorHelper__default["default"](colorToString(color2)).darken(0.25).hex()};
|
|
2265
2266
|
transition: ${["transform", "box-shadow"].map((property) => `${property} 0.1s`).join(", ")};
|
|
2266
2267
|
|
|
2267
2268
|
:hover {
|
|
2268
2269
|
transform: translateY(2px);
|
|
2269
|
-
box-shadow: 0 2px ${ColorHelper__default["default"](colorToString(
|
|
2270
|
+
box-shadow: 0 2px ${ColorHelper__default["default"](colorToString(color2)).darken(0.25).hex()};
|
|
2270
2271
|
}
|
|
2271
2272
|
|
|
2272
2273
|
:active {
|
|
2273
2274
|
transform: translateY(4px);
|
|
2274
|
-
box-shadow: 0 0 ${ColorHelper__default["default"](colorToString(
|
|
2275
|
+
box-shadow: 0 0 ${ColorHelper__default["default"](colorToString(color2)).darken(0.25).hex()};
|
|
2275
2276
|
}
|
|
2276
2277
|
`,
|
|
2277
2278
|
bubbly: styled.css`
|
|
2278
2279
|
background: linear-gradient(
|
|
2279
2280
|
180deg,
|
|
2280
|
-
${ColorHelper__default["default"](colorToString(
|
|
2281
|
-
${ColorHelper__default["default"](colorToString(
|
|
2281
|
+
${ColorHelper__default["default"](colorToString(color2)).lighten(0.05).hex()},
|
|
2282
|
+
${ColorHelper__default["default"](colorToString(color2)).darken(0.3).saturate(0.05).hex()}
|
|
2282
2283
|
);
|
|
2283
2284
|
position: relative;
|
|
2284
2285
|
z-index: 0;
|
|
@@ -2294,8 +2295,8 @@ const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
|
2294
2295
|
border-radius: inherit;
|
|
2295
2296
|
background: linear-gradient(
|
|
2296
2297
|
180deg,
|
|
2297
|
-
${ColorHelper__default["default"](colorToString(
|
|
2298
|
-
${ColorHelper__default["default"](colorToString(
|
|
2298
|
+
${ColorHelper__default["default"](colorToString(color2)).lighten(0.2).hex()},
|
|
2299
|
+
${ColorHelper__default["default"](colorToString(color2)).darken(0.2).saturate(0.05).hex()}
|
|
2299
2300
|
);
|
|
2300
2301
|
opacity: 0;
|
|
2301
2302
|
transition: opacity 0.15s;
|
|
@@ -2325,7 +2326,7 @@ const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
|
2325
2326
|
bottom: 0;
|
|
2326
2327
|
left: 0;
|
|
2327
2328
|
z-index: -1;
|
|
2328
|
-
background: ${colorToString(
|
|
2329
|
+
background: ${colorToString(color2)};
|
|
2329
2330
|
transform: skewX(-12deg);
|
|
2330
2331
|
border-radius: inherit;
|
|
2331
2332
|
transition: transform 0.2s cubic-bezier(0.25, 0, 0.25, 1.75);
|
|
@@ -2353,7 +2354,7 @@ const Button$1 = React.forwardRef(function Button2(_m, ref) {
|
|
|
2353
2354
|
shape: shape2,
|
|
2354
2355
|
size,
|
|
2355
2356
|
textColor,
|
|
2356
|
-
color,
|
|
2357
|
+
color: color2,
|
|
2357
2358
|
textStyle,
|
|
2358
2359
|
width,
|
|
2359
2360
|
margin,
|
|
@@ -2376,7 +2377,7 @@ const Button$1 = React.forwardRef(function Button2(_m, ref) {
|
|
|
2376
2377
|
ref,
|
|
2377
2378
|
id,
|
|
2378
2379
|
className: css.cx(css.css(responsiveWidth(width, "auto")), className),
|
|
2379
|
-
color,
|
|
2380
|
+
color: color2,
|
|
2380
2381
|
link,
|
|
2381
2382
|
margin,
|
|
2382
2383
|
shape: shape2,
|
|
@@ -2703,7 +2704,7 @@ const Slop = styled__default["default"].div.withConfig({
|
|
|
2703
2704
|
align-items: center;
|
|
2704
2705
|
cursor: pointer;
|
|
2705
2706
|
z-index: 2;
|
|
2706
|
-
${(p) => cssMediaRules([p.color], ([
|
|
2707
|
+
${(p) => cssMediaRules([p.color], ([color2 = {
|
|
2707
2708
|
swatch: {
|
|
2708
2709
|
hue: 0,
|
|
2709
2710
|
saturation: 0,
|
|
@@ -2711,7 +2712,7 @@ const Slop = styled__default["default"].div.withConfig({
|
|
|
2711
2712
|
},
|
|
2712
2713
|
alpha: 1
|
|
2713
2714
|
}]) => styled.css`
|
|
2714
|
-
color: ${colorToString(
|
|
2715
|
+
color: ${colorToString(color2)};
|
|
2715
2716
|
`)}
|
|
2716
2717
|
`;
|
|
2717
2718
|
const Slide = styled__default["default"](framerMotion.motion.div).withConfig({
|
|
@@ -2812,7 +2813,7 @@ const Dots = styled__default["default"].div.withConfig({
|
|
|
2812
2813
|
display: ${(props) => props.hidden ? "none" : "flex"};
|
|
2813
2814
|
justify-content: center;
|
|
2814
2815
|
margin-top: 20px;
|
|
2815
|
-
${(p) => cssMediaRules([p.color], ([
|
|
2816
|
+
${(p) => cssMediaRules([p.color], ([color2 = {
|
|
2816
2817
|
swatch: {
|
|
2817
2818
|
hue: 0,
|
|
2818
2819
|
saturation: 0,
|
|
@@ -2820,7 +2821,7 @@ const Dots = styled__default["default"].div.withConfig({
|
|
|
2820
2821
|
},
|
|
2821
2822
|
alpha: 1
|
|
2822
2823
|
}]) => styled.css`
|
|
2823
|
-
color: ${colorToString(
|
|
2824
|
+
color: ${colorToString(color2)};
|
|
2824
2825
|
`)}
|
|
2825
2826
|
`;
|
|
2826
2827
|
const Dot = styled__default["default"].div.withConfig({
|
|
@@ -3626,7 +3627,7 @@ const Line = styled__default["default"].div.withConfig({
|
|
|
3626
3627
|
${(p) => cssMediaRules([p.variant, p.thickness, p.color], ([variant = "solid", thickness = {
|
|
3627
3628
|
value: 1,
|
|
3628
3629
|
unit: "px"
|
|
3629
|
-
},
|
|
3630
|
+
}, color2 = {
|
|
3630
3631
|
swatch: {
|
|
3631
3632
|
hue: 0,
|
|
3632
3633
|
saturation: 0,
|
|
@@ -3641,17 +3642,17 @@ const Line = styled__default["default"].div.withConfig({
|
|
|
3641
3642
|
return styled.css`
|
|
3642
3643
|
border-bottom-width: ${thickness == null ? "1px" : `${thickness.value}${thickness.unit}`};
|
|
3643
3644
|
border-bottom-style: ${variant};
|
|
3644
|
-
border-bottom-color: ${colorToString(
|
|
3645
|
+
border-bottom-color: ${colorToString(color2)};
|
|
3645
3646
|
`;
|
|
3646
3647
|
case "blended":
|
|
3647
3648
|
return styled.css`
|
|
3648
3649
|
height: ${`${thickness.value}${thickness.unit}`};
|
|
3649
3650
|
background: linear-gradient(
|
|
3650
3651
|
${["90deg", colorToString({
|
|
3651
|
-
swatch:
|
|
3652
|
+
swatch: color2.swatch,
|
|
3652
3653
|
alpha: 0
|
|
3653
|
-
}), colorToString(
|
|
3654
|
-
swatch:
|
|
3654
|
+
}), colorToString(color2), colorToString({
|
|
3655
|
+
swatch: color2.swatch,
|
|
3655
3656
|
alpha: 0
|
|
3656
3657
|
})].join(", ")}
|
|
3657
3658
|
);
|
|
@@ -3665,7 +3666,7 @@ const Divider = React.forwardRef(function Divider2({
|
|
|
3665
3666
|
id,
|
|
3666
3667
|
variant,
|
|
3667
3668
|
thickness,
|
|
3668
|
-
color,
|
|
3669
|
+
color: color2,
|
|
3669
3670
|
width,
|
|
3670
3671
|
margin
|
|
3671
3672
|
}, ref) {
|
|
@@ -3678,7 +3679,7 @@ const Divider = React.forwardRef(function Divider2({
|
|
|
3678
3679
|
children: /* @__PURE__ */ jsxRuntime.jsx(Line, {
|
|
3679
3680
|
variant,
|
|
3680
3681
|
thickness,
|
|
3681
|
-
color
|
|
3682
|
+
color: color2
|
|
3682
3683
|
})
|
|
3683
3684
|
})
|
|
3684
3685
|
});
|
|
@@ -3843,9 +3844,9 @@ function registerComponent$6(runtime) {
|
|
|
3843
3844
|
}
|
|
3844
3845
|
});
|
|
3845
3846
|
}
|
|
3846
|
-
var _path$
|
|
3847
|
-
function _extends$
|
|
3848
|
-
_extends$
|
|
3847
|
+
var _path$u;
|
|
3848
|
+
function _extends$v() {
|
|
3849
|
+
_extends$v = Object.assign || function(target) {
|
|
3849
3850
|
for (var i = 1; i < arguments.length; i++) {
|
|
3850
3851
|
var source = arguments[i];
|
|
3851
3852
|
for (var key in source) {
|
|
@@ -3856,15 +3857,15 @@ function _extends$u() {
|
|
|
3856
3857
|
}
|
|
3857
3858
|
return target;
|
|
3858
3859
|
};
|
|
3859
|
-
return _extends$
|
|
3860
|
+
return _extends$v.apply(this, arguments);
|
|
3860
3861
|
}
|
|
3861
3862
|
var SvgCheck12 = function SvgCheck122(props) {
|
|
3862
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
3863
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$v({
|
|
3863
3864
|
width: 12,
|
|
3864
3865
|
height: 12,
|
|
3865
3866
|
viewBox: "0 0 12 12",
|
|
3866
3867
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3867
|
-
}, props), _path$
|
|
3868
|
+
}, props), _path$u || (_path$u = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
3868
3869
|
fillRule: "evenodd",
|
|
3869
3870
|
clipRule: "evenodd",
|
|
3870
3871
|
d: "M11.7071 1.79289C12.0976 2.18342 12.0976 2.81658 11.7071 3.20711L4.70711 10.2071C4.31658 10.5976 3.68342 10.5976 3.29289 10.2071L0.292893 7.20711C-0.0976311 6.81658 -0.0976311 6.18342 0.292893 5.79289C0.683417 5.40237 1.31658 5.40237 1.70711 5.79289L4 8.08579L10.2929 1.79289C10.6834 1.40237 11.3166 1.40237 11.7071 1.79289Z"
|
|
@@ -5072,8 +5073,8 @@ function Field({
|
|
|
5072
5073
|
});
|
|
5073
5074
|
}
|
|
5074
5075
|
var _g;
|
|
5075
|
-
function _extends$
|
|
5076
|
-
_extends$
|
|
5076
|
+
function _extends$u() {
|
|
5077
|
+
_extends$u = Object.assign || function(target) {
|
|
5077
5078
|
for (var i = 1; i < arguments.length; i++) {
|
|
5078
5079
|
var source = arguments[i];
|
|
5079
5080
|
for (var key in source) {
|
|
@@ -5084,10 +5085,10 @@ function _extends$t() {
|
|
|
5084
5085
|
}
|
|
5085
5086
|
return target;
|
|
5086
5087
|
};
|
|
5087
|
-
return _extends$
|
|
5088
|
+
return _extends$u.apply(this, arguments);
|
|
5088
5089
|
}
|
|
5089
5090
|
var SvgSpinner20 = function SvgSpinner202(props) {
|
|
5090
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5091
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$u({
|
|
5091
5092
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5092
5093
|
width: 20,
|
|
5093
5094
|
height: 20
|
|
@@ -5671,9 +5672,9 @@ function registerComponent$5(runtime) {
|
|
|
5671
5672
|
}
|
|
5672
5673
|
});
|
|
5673
5674
|
}
|
|
5674
|
-
var _path$
|
|
5675
|
-
function _extends$
|
|
5676
|
-
_extends$
|
|
5675
|
+
var _path$t;
|
|
5676
|
+
function _extends$t() {
|
|
5677
|
+
_extends$t = Object.assign || function(target) {
|
|
5677
5678
|
for (var i = 1; i < arguments.length; i++) {
|
|
5678
5679
|
var source = arguments[i];
|
|
5679
5680
|
for (var key in source) {
|
|
@@ -5684,14 +5685,14 @@ function _extends$s() {
|
|
|
5684
5685
|
}
|
|
5685
5686
|
return target;
|
|
5686
5687
|
};
|
|
5687
|
-
return _extends$
|
|
5688
|
+
return _extends$t.apply(this, arguments);
|
|
5688
5689
|
}
|
|
5689
5690
|
var SvgMobileMenu28 = function SvgMobileMenu282(props) {
|
|
5690
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5691
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$t({
|
|
5691
5692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5692
5693
|
width: 28,
|
|
5693
5694
|
height: 28
|
|
5694
|
-
}, props), _path$
|
|
5695
|
+
}, props), _path$t || (_path$t = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5695
5696
|
d: "M27 15H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h26a1 1 0 0 1 1 1 1 1 0 0 1-1 1zm0-10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1zm0 16H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1z"
|
|
5696
5697
|
})));
|
|
5697
5698
|
};
|
|
@@ -5735,9 +5736,9 @@ function LinksPlaceholder({
|
|
|
5735
5736
|
}, i))
|
|
5736
5737
|
});
|
|
5737
5738
|
}
|
|
5738
|
-
var _path$
|
|
5739
|
-
function _extends$
|
|
5740
|
-
_extends$
|
|
5739
|
+
var _path$s;
|
|
5740
|
+
function _extends$s() {
|
|
5741
|
+
_extends$s = Object.assign || function(target) {
|
|
5741
5742
|
for (var i = 1; i < arguments.length; i++) {
|
|
5742
5743
|
var source = arguments[i];
|
|
5743
5744
|
for (var key in source) {
|
|
@@ -5748,20 +5749,20 @@ function _extends$r() {
|
|
|
5748
5749
|
}
|
|
5749
5750
|
return target;
|
|
5750
5751
|
};
|
|
5751
|
-
return _extends$
|
|
5752
|
+
return _extends$s.apply(this, arguments);
|
|
5752
5753
|
}
|
|
5753
5754
|
var SvgCaretDown8 = function SvgCaretDown82(props) {
|
|
5754
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5755
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$s({
|
|
5755
5756
|
width: 8,
|
|
5756
5757
|
height: 8,
|
|
5757
5758
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5758
|
-
}, props), _path$
|
|
5759
|
+
}, props), _path$s || (_path$s = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5759
5760
|
d: "M1 2a1 1 0 0 0-.707 1.707l3 3a1 1 0 0 0 1.414 0l3-3A1 1 0 0 0 7 2H1z"
|
|
5760
5761
|
})));
|
|
5761
5762
|
};
|
|
5762
|
-
var _path$
|
|
5763
|
-
function _extends$
|
|
5764
|
-
_extends$
|
|
5763
|
+
var _path$r;
|
|
5764
|
+
function _extends$r() {
|
|
5765
|
+
_extends$r = Object.assign || function(target) {
|
|
5765
5766
|
for (var i = 1; i < arguments.length; i++) {
|
|
5766
5767
|
var source = arguments[i];
|
|
5767
5768
|
for (var key in source) {
|
|
@@ -5772,20 +5773,20 @@ function _extends$q() {
|
|
|
5772
5773
|
}
|
|
5773
5774
|
return target;
|
|
5774
5775
|
};
|
|
5775
|
-
return _extends$
|
|
5776
|
+
return _extends$r.apply(this, arguments);
|
|
5776
5777
|
}
|
|
5777
5778
|
var SvgPlus8 = function SvgPlus82(props) {
|
|
5778
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5779
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
|
|
5779
5780
|
width: 8,
|
|
5780
5781
|
height: 8,
|
|
5781
5782
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5782
|
-
}, props), _path$
|
|
5783
|
+
}, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5783
5784
|
d: "M4 0a1 1 0 0 0-1 1v2H1a1 1 0 1 0 0 2h2v2a1 1 0 0 0 2 0V5h2a1 1 0 0 0 0-2H5V1a1 1 0 0 0-1-1z"
|
|
5784
5785
|
})));
|
|
5785
5786
|
};
|
|
5786
|
-
var _path$
|
|
5787
|
-
function _extends$
|
|
5788
|
-
_extends$
|
|
5787
|
+
var _path$q;
|
|
5788
|
+
function _extends$q() {
|
|
5789
|
+
_extends$q = Object.assign || function(target) {
|
|
5789
5790
|
for (var i = 1; i < arguments.length; i++) {
|
|
5790
5791
|
var source = arguments[i];
|
|
5791
5792
|
for (var key in source) {
|
|
@@ -5796,20 +5797,20 @@ function _extends$p() {
|
|
|
5796
5797
|
}
|
|
5797
5798
|
return target;
|
|
5798
5799
|
};
|
|
5799
|
-
return _extends$
|
|
5800
|
+
return _extends$q.apply(this, arguments);
|
|
5800
5801
|
}
|
|
5801
5802
|
var SvgArrowDown8 = function SvgArrowDown82(props) {
|
|
5802
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5803
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
|
|
5803
5804
|
width: 8,
|
|
5804
5805
|
height: 8,
|
|
5805
5806
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5806
|
-
}, props), _path$
|
|
5807
|
+
}, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5807
5808
|
d: "M5 1a1 1 0 0 0-2 0v3.586l-.293-.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0-1.414-1.414L5 4.586V1z"
|
|
5808
5809
|
})));
|
|
5809
5810
|
};
|
|
5810
|
-
var _path$
|
|
5811
|
-
function _extends$
|
|
5812
|
-
_extends$
|
|
5811
|
+
var _path$p;
|
|
5812
|
+
function _extends$p() {
|
|
5813
|
+
_extends$p = Object.assign || function(target) {
|
|
5813
5814
|
for (var i = 1; i < arguments.length; i++) {
|
|
5814
5815
|
var source = arguments[i];
|
|
5815
5816
|
for (var key in source) {
|
|
@@ -5820,14 +5821,14 @@ function _extends$o() {
|
|
|
5820
5821
|
}
|
|
5821
5822
|
return target;
|
|
5822
5823
|
};
|
|
5823
|
-
return _extends$
|
|
5824
|
+
return _extends$p.apply(this, arguments);
|
|
5824
5825
|
}
|
|
5825
5826
|
var SvgChevronDown8 = function SvgChevronDown82(props) {
|
|
5826
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5827
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
|
|
5827
5828
|
width: 8,
|
|
5828
5829
|
height: 8,
|
|
5829
5830
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5830
|
-
}, props), _path$
|
|
5831
|
+
}, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5831
5832
|
fillRule: "evenodd",
|
|
5832
5833
|
clipRule: "evenodd",
|
|
5833
5834
|
d: "M.293 2.293a1 1 0 0 1 1.414 0L4 4.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414z"
|
|
@@ -5884,7 +5885,7 @@ const StyledDropDownItem = styled__default["default"](Link).withConfig({
|
|
|
5884
5885
|
background-color: transparent;
|
|
5885
5886
|
transition: background-color 0.2s;
|
|
5886
5887
|
${cssTextStyle()}
|
|
5887
|
-
${(p) => cssMediaRules([p.color, p.textStyle], ([
|
|
5888
|
+
${(p) => cssMediaRules([p.color, p.textStyle], ([color2, textStyle = {}]) => {
|
|
5888
5889
|
const fontSize = textStyle.fontSize || {
|
|
5889
5890
|
value: 14,
|
|
5890
5891
|
unit: "px"
|
|
@@ -5894,7 +5895,7 @@ const StyledDropDownItem = styled__default["default"](Link).withConfig({
|
|
|
5894
5895
|
const letterSpacing = textStyle.letterSpacing == null ? null : textStyle.letterSpacing;
|
|
5895
5896
|
const textTransform = textStyle.textTransform || [];
|
|
5896
5897
|
return styled.css`
|
|
5897
|
-
color: ${
|
|
5898
|
+
color: ${color2 == null ? "black" : colorToString(color2)};
|
|
5898
5899
|
font-size: ${`${fontSize.value}${fontSize.unit}`};
|
|
5899
5900
|
font-weight: ${fontWeight};
|
|
5900
5901
|
font-style: ${fontStyle.includes("italic") ? "italic" : "normal"};
|
|
@@ -5909,12 +5910,12 @@ const StyledDropDownItem = styled__default["default"](Link).withConfig({
|
|
|
5909
5910
|
`;
|
|
5910
5911
|
function DropDownItem$1(_S) {
|
|
5911
5912
|
var _T = _S, {
|
|
5912
|
-
color
|
|
5913
|
+
color: color2
|
|
5913
5914
|
} = _T, restOfProps = __objRest(_T, [
|
|
5914
5915
|
"color"
|
|
5915
5916
|
]);
|
|
5916
5917
|
return /* @__PURE__ */ jsxRuntime.jsx(StyledDropDownItem, __spreadProps(__spreadValues({}, restOfProps), {
|
|
5917
|
-
color: useResponsiveColor(
|
|
5918
|
+
color: useResponsiveColor(color2)
|
|
5918
5919
|
}));
|
|
5919
5920
|
}
|
|
5920
5921
|
function DropDownButton(_U) {
|
|
@@ -5923,7 +5924,7 @@ function DropDownButton(_U) {
|
|
|
5923
5924
|
caret = "caret",
|
|
5924
5925
|
links: links2 = [],
|
|
5925
5926
|
textColor,
|
|
5926
|
-
color
|
|
5927
|
+
color: color2
|
|
5927
5928
|
} = _V, restOfProps = __objRest(_V, [
|
|
5928
5929
|
"label",
|
|
5929
5930
|
"caret",
|
|
@@ -5944,7 +5945,7 @@ function DropDownButton(_U) {
|
|
|
5944
5945
|
ref: container,
|
|
5945
5946
|
children: [/* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
5946
5947
|
textColor: useResponsiveColor(textColor),
|
|
5947
|
-
color: useResponsiveColor(
|
|
5948
|
+
color: useResponsiveColor(color2),
|
|
5948
5949
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
5949
5950
|
style: {
|
|
5950
5951
|
display: "flex",
|
|
@@ -5974,9 +5975,9 @@ function DropDownButton(_U) {
|
|
|
5974
5975
|
})]
|
|
5975
5976
|
});
|
|
5976
5977
|
}
|
|
5977
|
-
var _path$
|
|
5978
|
-
function _extends$
|
|
5979
|
-
_extends$
|
|
5978
|
+
var _path$o;
|
|
5979
|
+
function _extends$o() {
|
|
5980
|
+
_extends$o = Object.assign || function(target) {
|
|
5980
5981
|
for (var i = 1; i < arguments.length; i++) {
|
|
5981
5982
|
var source = arguments[i];
|
|
5982
5983
|
for (var key in source) {
|
|
@@ -5987,14 +5988,14 @@ function _extends$n() {
|
|
|
5987
5988
|
}
|
|
5988
5989
|
return target;
|
|
5989
5990
|
};
|
|
5990
|
-
return _extends$
|
|
5991
|
+
return _extends$o.apply(this, arguments);
|
|
5991
5992
|
}
|
|
5992
5993
|
var SvgTimes16 = function SvgTimes162(props) {
|
|
5993
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5994
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
|
|
5994
5995
|
width: 16,
|
|
5995
5996
|
height: 16,
|
|
5996
5997
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5997
|
-
}, props), _path$
|
|
5998
|
+
}, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5998
5999
|
fillRule: "evenodd",
|
|
5999
6000
|
clipRule: "evenodd",
|
|
6000
6001
|
d: "M13.707 3.707a1 1 0 0 0-1.414-1.414L8 6.586 3.707 2.293a1 1 0 0 0-1.414 1.414L6.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414L8 9.414l4.293 4.293a1 1 0 0 0 1.414-1.414L9.414 8l4.293-4.293Z"
|
|
@@ -6018,18 +6019,18 @@ const StyledLink$2 = styled__default["default"](Link).withConfig({
|
|
|
6018
6019
|
padding: 8px 16px;
|
|
6019
6020
|
color: black;
|
|
6020
6021
|
${cssTextStyle()}
|
|
6021
|
-
${(p) => cssMediaRules([p.color], ([
|
|
6022
|
-
color: ${
|
|
6022
|
+
${(p) => cssMediaRules([p.color], ([color2]) => styled.css`
|
|
6023
|
+
color: ${color2 == null ? "black" : colorToString(color2)};
|
|
6023
6024
|
`)}
|
|
6024
6025
|
`;
|
|
6025
6026
|
function DropDownItem(_W) {
|
|
6026
6027
|
var _X = _W, {
|
|
6027
|
-
color
|
|
6028
|
+
color: color2
|
|
6028
6029
|
} = _X, restOfProps = __objRest(_X, [
|
|
6029
6030
|
"color"
|
|
6030
6031
|
]);
|
|
6031
6032
|
return /* @__PURE__ */ jsxRuntime.jsx(StyledLink$2, __spreadProps(__spreadValues({}, restOfProps), {
|
|
6032
|
-
color: useResponsiveColor(
|
|
6033
|
+
color: useResponsiveColor(color2)
|
|
6033
6034
|
}));
|
|
6034
6035
|
}
|
|
6035
6036
|
function MobileDropDownButton(_Y) {
|
|
@@ -6039,7 +6040,7 @@ function MobileDropDownButton(_Y) {
|
|
|
6039
6040
|
links: links2 = [],
|
|
6040
6041
|
onClose = () => {
|
|
6041
6042
|
},
|
|
6042
|
-
color,
|
|
6043
|
+
color: color2,
|
|
6043
6044
|
textColor
|
|
6044
6045
|
} = _Z, restOfProps = __objRest(_Z, [
|
|
6045
6046
|
"label",
|
|
@@ -6053,7 +6054,7 @@ function MobileDropDownButton(_Y) {
|
|
|
6053
6054
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
6054
6055
|
children: [/* @__PURE__ */ jsxRuntime.jsx(ButtonLink$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
6055
6056
|
textColor: useResponsiveColor(textColor),
|
|
6056
|
-
color: useResponsiveColor(
|
|
6057
|
+
color: useResponsiveColor(color2),
|
|
6057
6058
|
onPointerDown: () => setIsOpen((prev) => !prev),
|
|
6058
6059
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
6059
6060
|
style: {
|
|
@@ -6090,14 +6091,14 @@ function MobileDropDownButton(_Y) {
|
|
|
6090
6091
|
function NavigationButton$1(props) {
|
|
6091
6092
|
const _a = props, {
|
|
6092
6093
|
textColor,
|
|
6093
|
-
color
|
|
6094
|
+
color: color2
|
|
6094
6095
|
} = _a, restOfProps = __objRest(_a, [
|
|
6095
6096
|
"textColor",
|
|
6096
6097
|
"color"
|
|
6097
6098
|
]);
|
|
6098
6099
|
return /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
6099
6100
|
textColor: useResponsiveColor(textColor),
|
|
6100
|
-
color: useResponsiveColor(
|
|
6101
|
+
color: useResponsiveColor(color2)
|
|
6101
6102
|
}));
|
|
6102
6103
|
}
|
|
6103
6104
|
const ButtonLink = styled__default["default"](NavigationButton$1)`
|
|
@@ -6148,8 +6149,8 @@ const CloseIconContainer = styled__default["default"].button.withConfig({
|
|
|
6148
6149
|
outline: 0;
|
|
6149
6150
|
background: none;
|
|
6150
6151
|
fill: currentColor;
|
|
6151
|
-
${(p) => cssMediaRules([p.color], ([
|
|
6152
|
-
color: ${
|
|
6152
|
+
${(p) => cssMediaRules([p.color], ([color2]) => styled.css`
|
|
6153
|
+
color: ${color2 == null ? "rgba(161, 168, 194, 0.5)" : colorToString(color2)};
|
|
6153
6154
|
`)}
|
|
6154
6155
|
`;
|
|
6155
6156
|
function MobileMenu({
|
|
@@ -6223,23 +6224,23 @@ const OpenIconContainer = styled__default["default"].button.withConfig({
|
|
|
6223
6224
|
border: 0;
|
|
6224
6225
|
padding: 0;
|
|
6225
6226
|
fill: currentColor;
|
|
6226
|
-
${(p) => cssMediaRules([p.mobileMenuAnimation, p.alignment, p.color], ([mobileMenuAnimation, alignment = "flex-end",
|
|
6227
|
+
${(p) => cssMediaRules([p.mobileMenuAnimation, p.alignment, p.color], ([mobileMenuAnimation, alignment = "flex-end", color2]) => styled.css`
|
|
6227
6228
|
display: ${mobileMenuAnimation == null ? "none" : "flex"};
|
|
6228
6229
|
justify-content: ${alignment};
|
|
6229
|
-
color: ${
|
|
6230
|
+
color: ${color2 == null ? "rgba(161, 168, 194, 0.5)" : colorToString(color2)};
|
|
6230
6231
|
`)}
|
|
6231
6232
|
`;
|
|
6232
6233
|
function NavigationButton(props) {
|
|
6233
6234
|
const _a = props, {
|
|
6234
6235
|
textColor,
|
|
6235
|
-
color
|
|
6236
|
+
color: color2
|
|
6236
6237
|
} = _a, restOfProps = __objRest(_a, [
|
|
6237
6238
|
"textColor",
|
|
6238
6239
|
"color"
|
|
6239
6240
|
]);
|
|
6240
6241
|
return /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
6241
6242
|
textColor: useResponsiveColor(textColor),
|
|
6242
|
-
color: useResponsiveColor(
|
|
6243
|
+
color: useResponsiveColor(color2)
|
|
6243
6244
|
}));
|
|
6244
6245
|
}
|
|
6245
6246
|
const placeholder = {
|
|
@@ -6542,6 +6543,31 @@ function registerComponent$3(runtime) {
|
|
|
6542
6543
|
}
|
|
6543
6544
|
});
|
|
6544
6545
|
}
|
|
6546
|
+
var _path$n;
|
|
6547
|
+
function _extends$n() {
|
|
6548
|
+
_extends$n = Object.assign || function(target) {
|
|
6549
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6550
|
+
var source = arguments[i];
|
|
6551
|
+
for (var key in source) {
|
|
6552
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6553
|
+
target[key] = source[key];
|
|
6554
|
+
}
|
|
6555
|
+
}
|
|
6556
|
+
}
|
|
6557
|
+
return target;
|
|
6558
|
+
};
|
|
6559
|
+
return _extends$n.apply(this, arguments);
|
|
6560
|
+
}
|
|
6561
|
+
var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
|
|
6562
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
|
|
6563
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6564
|
+
width: 20,
|
|
6565
|
+
height: 20,
|
|
6566
|
+
viewBox: "0 0 20 20"
|
|
6567
|
+
}, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6568
|
+
d: "M13.7412,8.2967 C14.3582,6.6297 14.8392,5.2547 15.1842,4.1687 C15.5292,3.0837 15.7022,2.4177 15.7022,2.1707 C15.7022,1.9047 15.6442,1.6987 15.5292,1.5517 C15.4142,1.4057 15.2562,1.3327 15.0532,1.3327 C14.7962,1.3327 14.5332,1.5457 14.2662,1.9707 C13.9992,2.3967 13.7052,3.0817 13.3832,4.0247 L12.0022,7.9947 L13.7412,8.2967 Z M11.9052,11.9917 C11.5102,11.9737 11.1342,11.9327 10.7802,11.8677 C10.4262,11.8047 10.0872,11.7127 9.7652,11.5937 C9.9122,11.8867 10.0432,12.1797 10.1582,12.4727 C10.2742,12.7657 10.3682,13.0547 10.4422,13.3387 C10.6622,13.0637 10.8952,12.8137 11.1382,12.5887 C11.3832,12.3647 11.6382,12.1657 11.9052,11.9917 L11.9052,11.9917 Z M10.3452,7.8297 L8.8542,3.5437 C8.4672,2.4547 8.1682,1.7427 7.9562,1.4077 C7.7442,1.0737 7.5142,0.9067 7.2662,0.9067 C7.0732,0.9067 6.9162,0.9797 6.7972,1.1267 C6.6772,1.2727 6.6172,1.4697 6.6172,1.7167 C6.6172,2.1387 6.7782,2.8707 7.1002,3.9147 C7.4232,4.9587 7.9062,6.3277 8.5502,8.0217 C8.6052,7.9217 8.6832,7.8507 8.7852,7.8087 C8.8862,7.7677 9.0242,7.7477 9.1992,7.7477 C9.2542,7.7477 9.3652,7.7527 9.5312,7.7607 C9.6962,7.7707 9.9682,7.7937 10.3452,7.8297 L10.3452,7.8297 Z M8.9922,14.4637 C9.1482,14.4637 9.2912,14.3937 9.4202,14.2517 C9.5492,14.1097 9.6132,13.9567 9.6132,13.7917 C9.6132,13.6177 9.4872,13.2127 9.2342,12.5757 C8.9802,11.9397 8.6652,11.3147 8.2882,10.7007 C8.0122,10.2427 7.7402,9.8977 7.4732,9.6637 C7.2062,9.4297 6.9532,9.3137 6.7142,9.3137 C6.5202,9.3137 6.3062,9.4347 6.0722,9.6767 C5.8372,9.9197 5.7202,10.1467 5.7202,10.3577 C5.7202,10.5767 5.8352,10.9067 6.0652,11.3457 C6.2952,11.7857 6.6032,12.2527 6.9902,12.7477 C7.3952,13.2877 7.7772,13.7087 8.1362,14.0107 C8.4952,14.3137 8.7802,14.4637 8.9922,14.4637 L8.9922,14.4637 Z M4.8502,14.1347 C4.9792,14.2907 5.1582,14.5197 5.3882,14.8217 C5.9962,15.6547 6.5572,16.0717 7.0732,16.0717 C7.2472,16.0717 7.4042,16.0167 7.5422,15.9067 C7.6802,15.7967 7.7492,15.6827 7.7492,15.5637 C7.7492,15.4257 7.6572,15.1967 7.4732,14.8767 C7.2892,14.5557 7.0362,14.1947 6.7142,13.7917 C6.3452,13.3247 6.0392,12.9837 5.7962,12.7677 C5.5522,12.5527 5.3562,12.4447 5.2092,12.4447 C4.8872,12.4447 4.5902,12.6167 4.3182,12.9607 C4.0472,13.3037 3.9112,13.7087 3.9112,14.1757 C3.9112,14.5517 4.0052,14.9707 4.1942,15.4327 C4.3832,15.8957 4.6572,16.3597 5.0152,16.8267 C5.5582,17.5507 6.2332,18.1067 7.0382,18.4957 C7.8442,18.8857 8.7342,19.0797 9.7102,19.0797 C11.5052,19.0797 13.0082,18.4137 14.2182,17.0817 C15.4282,15.7487 16.0332,14.0797 16.0332,12.0737 C16.0332,11.4607 15.9872,10.9737 15.8952,10.6107 C15.8042,10.2497 15.6512,9.9857 15.4392,9.8217 C15.0622,9.5097 14.3282,9.2307 13.2372,8.9837 C12.1462,8.7357 11.0082,8.6127 9.8202,8.6127 C9.4892,8.6127 9.2542,8.6677 9.1162,8.7777 C8.9782,8.8877 8.9092,9.0747 8.9092,9.3407 C8.9092,9.9637 9.2592,10.4147 9.9582,10.6937 C10.6582,10.9737 11.7902,11.1127 13.3552,11.1127 L13.9212,11.1127 C14.0502,11.1127 14.1532,11.1607 14.2312,11.2567 C14.3092,11.3527 14.3632,11.4977 14.3902,11.6897 C14.2332,11.8367 13.9122,12.0037 13.4242,12.1917 C12.9362,12.3787 12.5632,12.5647 12.3052,12.7477 C11.7542,13.1507 11.3092,13.6287 10.9732,14.1827 C10.6372,14.7367 10.4692,15.2607 10.4692,15.7557 C10.4692,16.0577 10.5402,16.4217 10.6832,16.8477 C10.8262,17.2737 10.8972,17.5367 10.8972,17.6377 L10.8972,17.7337 L10.8692,17.8577 C10.4652,17.8297 10.1452,17.5937 9.9102,17.1497 C9.6752,16.7057 9.5582,16.1127 9.5582,15.3707 L9.5582,15.2477 C9.4842,15.3117 9.4132,15.3577 9.3442,15.3847 C9.2752,15.4127 9.1992,15.4257 9.1162,15.4257 C9.0332,15.4257 8.9552,15.4197 8.8822,15.4047 C8.8072,15.3917 8.7252,15.3707 8.6332,15.3437 C8.6602,15.4447 8.6812,15.5427 8.6952,15.6387 C8.7092,15.7347 8.7162,15.8107 8.7162,15.8657 C8.7162,16.2047 8.5822,16.4957 8.3152,16.7377 C8.0482,16.9807 7.7312,17.1017 7.3632,17.1017 C6.7832,17.1017 6.1942,16.8197 5.5952,16.2567 C4.9972,15.6937 4.6982,15.1427 4.6982,14.6017 C4.6982,14.5007 4.7102,14.4117 4.7332,14.3337 C4.7552,14.2557 4.7952,14.1897 4.8502,14.1347 L4.8502,14.1347 Z M14.7352,8.5297 C15.5642,8.6867 16.1482,9.0337 16.4892,9.5737 C16.8292,10.1147 17.0002,10.9667 17.0002,12.1297 C17.0002,14.4367 16.3032,16.3257 14.9082,17.7957 C13.5132,19.2647 11.7302,19.9997 9.5582,19.9997 C8.7022,19.9997 7.8712,19.8467 7.0662,19.5397 C6.2602,19.2337 5.5682,18.8047 4.9882,18.2557 C4.3252,17.6507 3.8282,17.0127 3.4972,16.3397 C3.1652,15.6667 3.0002,14.9777 3.0002,14.2727 C3.0002,13.4847 3.1702,12.8757 3.5112,12.4447 C3.8512,12.0147 4.3892,11.7217 5.1262,11.5667 C4.9882,11.2457 4.8872,10.9757 4.8222,10.7557 C4.7582,10.5357 4.7252,10.3667 4.7252,10.2477 C4.7252,9.8357 4.9442,9.4147 5.3822,8.9837 C5.8192,8.5527 6.2312,8.3377 6.6172,8.3377 C6.7832,8.3377 6.9572,8.3677 7.1422,8.4267 C7.3262,8.4867 7.5372,8.5857 7.7772,8.7227 C7.0682,6.7267 6.5532,5.1857 6.2312,4.1007 C5.9082,3.0147 5.7472,2.2667 5.7472,1.8547 C5.7472,1.2867 5.8942,0.8357 6.1892,0.5017 C6.4842,0.1677 6.8842,-0.0003 7.3902,-0.0003 C8.2552,-0.0003 9.3512,1.9227 10.6762,5.7697 C10.9062,6.4287 11.0812,6.9367 11.2012,7.2947 C11.3032,7.0097 11.4452,6.6077 11.6292,6.0857 C12.9552,2.2757 14.0952,0.3707 15.0532,0.3707 C15.5222,0.3707 15.8972,0.5287 16.1792,0.8447 C16.4592,1.1607 16.5992,1.5847 16.5992,2.1157 C16.5992,2.5187 16.4452,3.2557 16.1372,4.3267 C15.8282,5.3987 15.3612,6.7997 14.7352,8.5297 L14.7352,8.5297 Z"
|
|
6569
|
+
})));
|
|
6570
|
+
};
|
|
6545
6571
|
var _path$m;
|
|
6546
6572
|
function _extends$m() {
|
|
6547
6573
|
_extends$m = Object.assign || function(target) {
|
|
@@ -6557,14 +6583,14 @@ function _extends$m() {
|
|
|
6557
6583
|
};
|
|
6558
6584
|
return _extends$m.apply(this, arguments);
|
|
6559
6585
|
}
|
|
6560
|
-
var
|
|
6586
|
+
var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
|
|
6561
6587
|
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
|
|
6562
6588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6563
6589
|
width: 20,
|
|
6564
6590
|
height: 20,
|
|
6565
6591
|
viewBox: "0 0 20 20"
|
|
6566
6592
|
}, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6567
|
-
d: "
|
|
6593
|
+
d: "M18.281,11.4383 L16.132,10.0003 L18.281,8.5623 L18.281,11.4383 Z M10.859,17.5343 L10.859,13.5263 L14.586,11.0343 L17.594,13.0453 L10.859,17.5343 Z M10,12.0333 L6.961,10.0003 L10,7.9663 L13.04,10.0003 L10,12.0333 Z M9.141,17.5343 L2.407,13.0453 L5.415,11.0343 L9.141,13.5263 L9.141,17.5343 Z M1.719,8.5623 L3.869,10.0003 L1.719,11.4383 L1.719,8.5623 Z M9.141,2.4653 L9.141,6.4743 L5.415,8.9663 L2.407,6.9543 L9.141,2.4653 Z M10.859,2.4653 L17.594,6.9543 L14.586,8.9663 L10.859,6.4743 L10.859,2.4653 Z M19.985,6.8033 C19.944,6.5803 19.812,6.3603 19.617,6.2383 L10.477,0.1443 C10.188,-0.0477 9.812,-0.0477 9.523,0.1443 L0.383,6.2383 C0.148,6.3943 0,6.6713 0,6.9533 L0,13.0463 C0,13.3283 0.148,13.6063 0.383,13.7613 L9.523,19.8553 C9.668,19.9523 9.834,20.0003 10,20.0003 C10.167,20.0003 10.333,19.9523 10.477,19.8553 L19.617,13.7613 C19.854,13.6133 20,13.3233 20,13.0463 L20,6.9533 C20.001,6.9023 19.996,6.8533 19.985,6.8033 L19.985,6.8033 Z"
|
|
6568
6594
|
})));
|
|
6569
6595
|
};
|
|
6570
6596
|
var _path$l;
|
|
@@ -6582,14 +6608,14 @@ function _extends$l() {
|
|
|
6582
6608
|
};
|
|
6583
6609
|
return _extends$l.apply(this, arguments);
|
|
6584
6610
|
}
|
|
6585
|
-
var
|
|
6611
|
+
var SvgLogoDiscord20 = function SvgLogoDiscord202(props) {
|
|
6586
6612
|
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$l({
|
|
6587
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6588
6613
|
width: 20,
|
|
6589
6614
|
height: 20,
|
|
6590
|
-
viewBox: "0 0 20 20"
|
|
6615
|
+
viewBox: "0 0 20 20",
|
|
6616
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
6591
6617
|
}, props), _path$l || (_path$l = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6592
|
-
d: "
|
|
6618
|
+
d: "M16.918 3.742a16.52 16.52 0 0 0-4.068-1.24.06.06 0 0 0-.065.03 11.12 11.12 0 0 0-.506 1.022 15.401 15.401 0 0 0-4.569 0 9.946 9.946 0 0 0-.515-1.022.059.059 0 0 0-.065-.03A16.586 16.586 0 0 0 3.046 3.75a.045.045 0 0 0-.011.014C.445 7.573-.265 11.287.082 14.957a.074.074 0 0 0 .028.047 16.708 16.708 0 0 0 4.988 2.493.065.065 0 0 0 .07-.022c.388-.52.73-1.07 1.025-1.645a.06.06 0 0 0 .003-.05.061.061 0 0 0-.037-.036 11.399 11.399 0 0 1-1.56-.731.063.063 0 0 1 0-.106l.31-.238a.057.057 0 0 1 .065 0 11.983 11.983 0 0 0 10.043 0 .06.06 0 0 1 .065 0c.101.083.206.164.31.241a.064.064 0 0 1 .028.053.063.063 0 0 1-.028.052c-.498.286-1.02.53-1.56.729a.067.067 0 0 0-.035.037.065.065 0 0 0 .002.051c.3.569.642 1.115 1.021 1.635a.065.065 0 0 0 .07.022 16.64 16.64 0 0 0 4.997-2.493.055.055 0 0 0 .026-.047 16.305 16.305 0 0 0-2.978-11.196.045.045 0 0 0-.017-.01ZM6.68 12.725c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.797 1.986-1.796 1.986Zm6.64 0c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.788 1.986-1.796 1.986Z"
|
|
6593
6619
|
})));
|
|
6594
6620
|
};
|
|
6595
6621
|
var _path$k;
|
|
@@ -7102,6 +7128,11 @@ const SocialLinksOptions = [{
|
|
|
7102
7128
|
label: "CodePen",
|
|
7103
7129
|
icon: /* @__PURE__ */ jsxRuntime.jsx(SvgLogoCodepen20, {}),
|
|
7104
7130
|
brandColor: "black"
|
|
7131
|
+
}, {
|
|
7132
|
+
type: "discord",
|
|
7133
|
+
label: "Discord",
|
|
7134
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(SvgLogoDiscord20, {}),
|
|
7135
|
+
brandColor: "#5865F2"
|
|
7105
7136
|
}, {
|
|
7106
7137
|
type: "dribbble",
|
|
7107
7138
|
label: "Dribbble",
|
|
@@ -7536,15 +7567,15 @@ function useTypography(typographyId) {
|
|
|
7536
7567
|
return data == null ? void 0 : data.typographies[0];
|
|
7537
7568
|
}
|
|
7538
7569
|
const concat = (a, b) => a.concat(b);
|
|
7539
|
-
const getSwatchId = ({ value: { color } }) =>
|
|
7570
|
+
const getSwatchId = ({ value: { color: color2 } }) => color2 && color2.swatchId;
|
|
7540
7571
|
const getDeviceId = ({ deviceId }) => deviceId;
|
|
7541
7572
|
const withColor = (swatches) => (_a) => {
|
|
7542
|
-
var _b = _a, { value: _c } = _b, _d = _c, { color } = _d, restOfValue = __objRest(_d, ["color"]), rest = __objRest(_b, ["value"]);
|
|
7573
|
+
var _b = _a, { value: _c } = _b, _d = _c, { color: color2 } = _d, restOfValue = __objRest(_d, ["color"]), rest = __objRest(_b, ["value"]);
|
|
7543
7574
|
return __spreadProps(__spreadValues({}, rest), {
|
|
7544
|
-
value: __spreadValues(__spreadValues({}, restOfValue),
|
|
7575
|
+
value: __spreadValues(__spreadValues({}, restOfValue), color2 ? {
|
|
7545
7576
|
color: {
|
|
7546
|
-
swatch: swatches.find((s) => s && s.id ===
|
|
7547
|
-
alpha:
|
|
7577
|
+
swatch: swatches.find((s) => s && s.id === color2.swatchId),
|
|
7578
|
+
alpha: color2.alpha
|
|
7548
7579
|
}
|
|
7549
7580
|
} : {})
|
|
7550
7581
|
});
|
|
@@ -7573,7 +7604,7 @@ function useTypographyMark(value) {
|
|
|
7573
7604
|
}
|
|
7574
7605
|
const Span = styled__default["default"].span`
|
|
7575
7606
|
${(p) => cssMediaRules([p.typographyStyle], ([{
|
|
7576
|
-
color,
|
|
7607
|
+
color: color2,
|
|
7577
7608
|
fontFamily,
|
|
7578
7609
|
fontSize,
|
|
7579
7610
|
fontWeight,
|
|
@@ -7584,8 +7615,8 @@ const Span = styled__default["default"].span`
|
|
|
7584
7615
|
strikethrough,
|
|
7585
7616
|
italic
|
|
7586
7617
|
} = {}]) => styled.css`
|
|
7587
|
-
${
|
|
7588
|
-
color: ${colorToString(
|
|
7618
|
+
${color2 == null ? "" : styled.css`
|
|
7619
|
+
color: ${colorToString(color2)};
|
|
7589
7620
|
`}
|
|
7590
7621
|
|
|
7591
7622
|
${fontFamily == null ? "" : styled.css`
|
|
@@ -8795,8 +8826,8 @@ function useStyleControlCssObject(style$1, controlDefinition) {
|
|
|
8795
8826
|
function borderSideToString(borderSide) {
|
|
8796
8827
|
if (borderSide == null)
|
|
8797
8828
|
return null;
|
|
8798
|
-
const { width, color, style: style2 } = borderSide;
|
|
8799
|
-
return `${width != null ? width : 0}px ${style2} ${
|
|
8829
|
+
const { width, color: color2, style: style2 } = borderSide;
|
|
8830
|
+
return `${width != null ? width : 0}px ${style2} ${color2 != null ? colorToString(color2) : "black"}`;
|
|
8800
8831
|
}
|
|
8801
8832
|
function borderRadiusToString(borderRadius) {
|
|
8802
8833
|
if (borderRadius == null)
|
|
@@ -8851,9 +8882,19 @@ function useColorValue(data, definition) {
|
|
|
8851
8882
|
function useComboboxControlValue(data) {
|
|
8852
8883
|
return data == null ? void 0 : data.value;
|
|
8853
8884
|
}
|
|
8854
|
-
function useImageControlValue(data) {
|
|
8885
|
+
function useImageControlValue(data, definition) {
|
|
8855
8886
|
var _a;
|
|
8856
|
-
|
|
8887
|
+
const format = (_a = definition.config.format) != null ? _a : image.ImageControlValueFormat.URL;
|
|
8888
|
+
const file = useFile(data);
|
|
8889
|
+
if (format === image.ImageControlValueFormat.URL) {
|
|
8890
|
+
return file == null ? void 0 : file.publicUrl;
|
|
8891
|
+
}
|
|
8892
|
+
if (file == null || file.dimensions == null)
|
|
8893
|
+
return void 0;
|
|
8894
|
+
return {
|
|
8895
|
+
url: file.publicUrl,
|
|
8896
|
+
dimensions: { width: file.dimensions.width, height: file.dimensions.height }
|
|
8897
|
+
};
|
|
8857
8898
|
}
|
|
8858
8899
|
function ListControlValue({
|
|
8859
8900
|
definition,
|
|
@@ -8927,7 +8968,7 @@ function ControlValue({
|
|
|
8927
8968
|
parameters: [data, definition],
|
|
8928
8969
|
children: (value) => children(value)
|
|
8929
8970
|
}, definition.type);
|
|
8930
|
-
case
|
|
8971
|
+
case color.ColorControlType:
|
|
8931
8972
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
|
|
8932
8973
|
hook: useColorValue,
|
|
8933
8974
|
parameters: [data, definition],
|
|
@@ -8936,7 +8977,7 @@ function ControlValue({
|
|
|
8936
8977
|
case image.ImageControlType:
|
|
8937
8978
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
|
|
8938
8979
|
hook: useImageControlValue,
|
|
8939
|
-
parameters: [data],
|
|
8980
|
+
parameters: [data, definition],
|
|
8940
8981
|
children: (value) => children(value)
|
|
8941
8982
|
}, definition.type);
|
|
8942
8983
|
case shape.ComboboxControlType:
|
|
@@ -8984,7 +9025,7 @@ function PropsValue({
|
|
|
8984
9025
|
case textInput.TextInputControlType:
|
|
8985
9026
|
case textInput.TextAreaControlType:
|
|
8986
9027
|
case textInput.SelectControlType:
|
|
8987
|
-
case
|
|
9028
|
+
case color.ColorControlType:
|
|
8988
9029
|
case image.ImageControlType:
|
|
8989
9030
|
case shape.ComboboxControlType:
|
|
8990
9031
|
case shape.ShapeControlType:
|