@makeswift/runtime 0.0.0-20230407200421 → 0.0.0-20230410231005
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/Box.cjs.js +14 -10
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +9 -5
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +40 -36
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +15 -11
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +38 -34
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +13 -9
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +30 -54
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +5 -29
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +11 -35
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +5 -29
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +6 -30
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +5 -29
- package/dist/Embed.es.js.map +1 -1
- package/dist/Form.cjs.js +76 -72
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +14 -10
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +22 -18
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +15 -11
- package/dist/Image.es.js.map +1 -1
- package/dist/LiveProvider.cjs.js +14 -10
- package/dist/LiveProvider.cjs.js.map +1 -1
- package/dist/LiveProvider.es.js +14 -10
- package/dist/LiveProvider.es.js.map +1 -1
- package/dist/Navigation.cjs.js +41 -37
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +15 -11
- package/dist/Navigation.es.js.map +1 -1
- package/dist/PreviewProvider.cjs.js +12 -8
- package/dist/PreviewProvider.cjs.js.map +1 -1
- package/dist/PreviewProvider.es.js +12 -8
- package/dist/PreviewProvider.es.js.map +1 -1
- package/dist/ReadOnlyText.cjs.js +71 -67
- package/dist/ReadOnlyText.cjs.js.map +1 -1
- package/dist/ReadOnlyText.es.js +15 -11
- package/dist/ReadOnlyText.es.js.map +1 -1
- package/dist/Root.cjs.js +13 -9
- package/dist/Root.cjs.js.map +1 -1
- package/dist/Root.es.js +11 -7
- package/dist/Root.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +16 -12
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +9 -5
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Text.cjs.js +7 -3
- package/dist/Text.cjs.js.map +1 -1
- package/dist/Text.es.js +8 -4
- package/dist/Text.es.js.map +1 -1
- package/dist/Video.cjs.js +6 -30
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +5 -29
- package/dist/Video.es.js.map +1 -1
- package/dist/actions.cjs.js +0 -13
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +1 -12
- package/dist/actions.es.js.map +1 -1
- package/dist/api.cjs.js +1 -1
- package/dist/api.es.js +1 -1
- 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/components.cjs.js +14 -10
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +14 -10
- package/dist/components.es.js.map +1 -1
- package/dist/control-serialization.cjs.js +37 -36
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +2 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +22 -22
- package/dist/controls.es.js +2 -1
- package/dist/controls.es.js.map +1 -1
- package/dist/index.cjs.js +548 -1689
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs2.js +23 -21
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +2 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs4.js +2 -2
- package/dist/index.cjs4.js.map +1 -1
- package/dist/index.cjs5.js +20 -20
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs6.js +7 -3
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs7.js +50 -46
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.es.js +329 -1450
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +5 -3
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +2 -1
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es5.js +3 -3
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es6.js +7 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es7.js +16 -12
- package/dist/index.es7.js.map +1 -1
- package/dist/introspection.cjs.js +21 -23
- package/dist/introspection.cjs.js.map +1 -1
- package/dist/introspection.es.js +4 -5
- package/dist/introspection.es.js.map +1 -1
- package/dist/isNonNullable.cjs.js +6 -0
- package/dist/isNonNullable.cjs.js.map +1 -0
- package/dist/isNonNullable.es.js +5 -0
- package/dist/isNonNullable.es.js.map +1 -0
- package/dist/leaf.cjs.js +11 -11
- package/dist/leaf.cjs.js.map +1 -1
- package/dist/leaf.es.js +2 -2
- package/dist/main.cjs.js +2 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +2 -0
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +9 -6
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +10 -6
- package/dist/next.es.js.map +1 -1
- package/dist/prop-controllers.cjs.js +3 -1
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +3 -1
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react.cjs.js +7 -3
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +7 -3
- package/dist/react.es.js.map +1 -1
- package/dist/responsive-style.cjs.js +917 -0
- package/dist/responsive-style.cjs.js.map +1 -0
- package/dist/responsive-style.es.js +853 -0
- package/dist/responsive-style.es.js.map +1 -0
- package/dist/rich-text.cjs.js +61 -1319
- package/dist/rich-text.cjs.js.map +1 -1
- package/dist/rich-text.es.js +17 -1217
- package/dist/rich-text.es.js.map +1 -1
- package/dist/slate.cjs.js +8 -28
- package/dist/slate.cjs.js.map +1 -1
- package/dist/slate.es.js +8 -28
- package/dist/slate.es.js.map +1 -1
- package/dist/types/src/api/graphql/documents/queries.d.ts +0 -2
- package/dist/types/src/api/graphql/documents/queries.d.ts.map +1 -1
- package/dist/types/src/api/graphql/generated/types.d.ts +0 -70
- package/dist/types/src/api/graphql/generated/types.d.ts.map +1 -1
- package/dist/types/src/api/react.d.ts +0 -3
- package/dist/types/src/api/react.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text/types.d.ts +1 -16
- package/dist/types/src/controls/rich-text/types.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/element-tree.d.ts +12 -0
- package/dist/types/src/next/api-handler/handlers/element-tree.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/handlers/fonts.d.ts +18 -0
- package/dist/types/src/next/api-handler/handlers/fonts.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/handlers/manifest.d.ts +17 -0
- package/dist/types/src/next/api-handler/handlers/manifest.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/handlers/proxy-preview-mode.d.ts +8 -0
- package/dist/types/src/next/api-handler/handlers/proxy-preview-mode.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/handlers/revalidate.d.ts +13 -0
- package/dist/types/src/next/api-handler/handlers/revalidate.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/index.d.ts +19 -0
- package/dist/types/src/next/api-handler/index.d.ts.map +1 -0
- package/dist/types/src/next/client.d.ts +11 -35
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/dist/types/src/next/index.d.ts +1 -6
- package/dist/types/src/next/index.d.ts.map +1 -1
- package/dist/types/src/state/actions.d.ts +2 -22
- package/dist/types/src/state/actions.d.ts.map +1 -1
- package/dist/types/src/state/makeswift-api-client.d.ts +4 -9
- package/dist/types/src/state/makeswift-api-client.d.ts.map +1 -1
- package/dist/types/src/state/modules/api-resources.d.ts +4 -4
- package/dist/types/src/state/modules/api-resources.d.ts.map +1 -1
- package/dist/types.cjs.js +1272 -10
- package/dist/types.cjs.js.map +1 -1
- package/dist/types.cjs2.js +14 -0
- package/dist/types.cjs2.js.map +1 -0
- package/dist/types.es.js +1207 -10
- package/dist/types.es.js.map +1 -1
- package/dist/types.es2.js +13 -0
- package/dist/types.es2.js.map +1 -0
- package/package.json +3 -2
- package/dist/types/src/api/introspection.d.ts +0 -11
- package/dist/types/src/api/introspection.d.ts.map +0 -1
- package/dist/types/src/next/api-handler.d.ts +0 -48
- package/dist/types/src/next/api-handler.d.ts.map +0 -1
- package/dist/types/src/next/snapshots.d.ts +0 -152
- package/dist/types/src/next/snapshots.d.ts.map +0 -1
package/dist/Form.cjs.js
CHANGED
|
@@ -34,42 +34,46 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
34
34
|
var React = require("react");
|
|
35
35
|
var formik = require("formik");
|
|
36
36
|
var css = require("@emotion/css");
|
|
37
|
+
var responsiveStyle = require("./responsive-style.cjs.js");
|
|
37
38
|
var next = require("./index.cjs.js");
|
|
38
39
|
var jsxRuntime = require("react/jsx-runtime");
|
|
39
40
|
var ColorHelper = require("color");
|
|
40
41
|
var Button$1 = require("./Button.cjs.js");
|
|
41
42
|
var index = require("./index.cjs3.js");
|
|
42
43
|
var boxModels = require("./box-models.cjs.js");
|
|
43
|
-
require("
|
|
44
|
-
require("
|
|
45
|
-
require("
|
|
44
|
+
require("@emotion/serialize");
|
|
45
|
+
require("@emotion/utils");
|
|
46
|
+
require("use-sync-external-store/shim");
|
|
46
47
|
require("redux");
|
|
47
48
|
require("redux-thunk");
|
|
49
|
+
require("./types.cjs2.js");
|
|
48
50
|
require("./actions.cjs.js");
|
|
51
|
+
require("use-sync-external-store/shim/with-selector");
|
|
52
|
+
require("next/dynamic");
|
|
53
|
+
require("./constants.cjs.js");
|
|
49
54
|
require("./rich-text.cjs.js");
|
|
50
55
|
require("slate");
|
|
56
|
+
require("./types.cjs.js");
|
|
51
57
|
require("slate-react");
|
|
52
58
|
require("./introspection.cjs.js");
|
|
53
|
-
require("
|
|
54
|
-
require("@emotion/utils");
|
|
59
|
+
require("./isNonNullable.cjs.js");
|
|
55
60
|
require("./text-input.cjs.js");
|
|
56
61
|
require("./combobox.cjs.js");
|
|
57
|
-
require("use-sync-external-store/shim");
|
|
58
|
-
require("./types.cjs.js");
|
|
59
62
|
require("scroll-into-view-if-needed");
|
|
60
63
|
require("react-dom");
|
|
61
64
|
require("html-react-parser");
|
|
62
65
|
require("next/head");
|
|
63
66
|
require("@emotion/server/create-instance");
|
|
64
67
|
require("next/document");
|
|
65
|
-
require("cookie");
|
|
66
68
|
require("cors");
|
|
69
|
+
require("path-to-regexp");
|
|
70
|
+
require("cookie");
|
|
67
71
|
require("http-proxy");
|
|
68
72
|
require("set-cookie-parser");
|
|
69
73
|
require("uuid");
|
|
70
74
|
require("corporate-ipsum");
|
|
71
|
-
require("css-box-model");
|
|
72
75
|
require("next/link");
|
|
76
|
+
require("css-box-model");
|
|
73
77
|
function _interopDefaultLegacy(e) {
|
|
74
78
|
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
75
79
|
}
|
|
@@ -218,7 +222,7 @@ function responsiveField(props) {
|
|
|
218
222
|
borderWidth: 1,
|
|
219
223
|
borderStyle: "solid",
|
|
220
224
|
transition: "border-color 200ms"
|
|
221
|
-
},
|
|
225
|
+
}, responsiveStyle.responsiveStyle([props.shape, props.size, props.contrast, props.brandColor], ([
|
|
222
226
|
shape = next.Shapes.ROUNDED,
|
|
223
227
|
size = next.Sizes.MEDIUM,
|
|
224
228
|
contrast = next.Contrasts.LIGHT,
|
|
@@ -230,7 +234,7 @@ function responsiveField(props) {
|
|
|
230
234
|
color: getContrastColor$1(contrast),
|
|
231
235
|
backgroundColor: getContrastBackgroundColor(contrast),
|
|
232
236
|
":focus, :focus-within": {
|
|
233
|
-
borderColor:
|
|
237
|
+
borderColor: responsiveStyle.colorToString(brandColor)
|
|
234
238
|
},
|
|
235
239
|
"::placeholder": {
|
|
236
240
|
color: getContrastPlaceholderColor(contrast)
|
|
@@ -267,13 +271,13 @@ var Input$2 = React.forwardRef(function Input2(_a, ref) {
|
|
|
267
271
|
} = next.useFormContext();
|
|
268
272
|
return /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, restOfProps), {
|
|
269
273
|
ref,
|
|
270
|
-
className: css.cx(
|
|
274
|
+
className: css.cx(responsiveStyle.useStyle(responsiveField({
|
|
271
275
|
shape,
|
|
272
276
|
size,
|
|
273
277
|
contrast,
|
|
274
278
|
brandColor,
|
|
275
279
|
error
|
|
276
|
-
})),
|
|
280
|
+
})), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
277
281
|
minHeight: getSizeHeight$1(size2),
|
|
278
282
|
maxHeight: getSizeHeight$1(size2)
|
|
279
283
|
}))), className)
|
|
@@ -281,7 +285,7 @@ var Input$2 = React.forwardRef(function Input2(_a, ref) {
|
|
|
281
285
|
});
|
|
282
286
|
function Label$2() {
|
|
283
287
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
284
|
-
className:
|
|
288
|
+
className: responsiveStyle.useStyle({
|
|
285
289
|
maxWidth: 120,
|
|
286
290
|
minWidth: 60,
|
|
287
291
|
height: 8,
|
|
@@ -294,7 +298,7 @@ function Label$2() {
|
|
|
294
298
|
}
|
|
295
299
|
function Input$1() {
|
|
296
300
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
297
|
-
className:
|
|
301
|
+
className: responsiveStyle.useStyle({
|
|
298
302
|
minWidth: 80,
|
|
299
303
|
height: 32,
|
|
300
304
|
borderRadius: 4,
|
|
@@ -307,7 +311,7 @@ function Input$1() {
|
|
|
307
311
|
}
|
|
308
312
|
function Button() {
|
|
309
313
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
310
|
-
className:
|
|
314
|
+
className: responsiveStyle.useStyle({
|
|
311
315
|
minWidth: 140,
|
|
312
316
|
height: 32,
|
|
313
317
|
borderRadius: 4,
|
|
@@ -323,7 +327,7 @@ var Placeholder = React.forwardRef(function Placeholder2({
|
|
|
323
327
|
}, ref) {
|
|
324
328
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
325
329
|
ref,
|
|
326
|
-
className: css.cx(
|
|
330
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
327
331
|
display: "flex",
|
|
328
332
|
flexDirection: "column"
|
|
329
333
|
}), width, margin, className),
|
|
@@ -389,12 +393,12 @@ function Label$1(_c) {
|
|
|
389
393
|
labelTextColor
|
|
390
394
|
} = next.useFormContext();
|
|
391
395
|
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({}, restOfProps), {
|
|
392
|
-
className: css.cx(
|
|
396
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
393
397
|
display: "block",
|
|
394
398
|
margin: "0 0 0.25em 0"
|
|
395
|
-
}),
|
|
399
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveTextStyle(labelTextStyle)), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size, contrast, labelTextColor], ([size2 = next.Sizes.MEDIUM, contrast2 = next.Contrasts.LIGHT, textColor]) => ({
|
|
396
400
|
minHeight: getSizeHeight(size2),
|
|
397
|
-
color: textColor == null ? getContrastColor(contrast2) :
|
|
401
|
+
color: textColor == null ? getContrastColor(contrast2) : responsiveStyle.colorToString(textColor)
|
|
398
402
|
}))), className)
|
|
399
403
|
}));
|
|
400
404
|
}
|
|
@@ -444,9 +448,9 @@ var TextArea = React.forwardRef(function TextArea2(_g2, ref) {
|
|
|
444
448
|
} = next.useFormContext();
|
|
445
449
|
return /* @__PURE__ */ jsxRuntime.jsx("textarea", __spreadProps(__spreadValues({}, restOfProps), {
|
|
446
450
|
ref,
|
|
447
|
-
className: css.cx(
|
|
451
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
448
452
|
resize: "vertical"
|
|
449
|
-
}),
|
|
453
|
+
}), responsiveStyle.useStyle(responsiveField({
|
|
450
454
|
error,
|
|
451
455
|
shape,
|
|
452
456
|
size,
|
|
@@ -505,7 +509,7 @@ function FakeCheckbox({
|
|
|
505
509
|
}) {
|
|
506
510
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
507
511
|
style,
|
|
508
|
-
className: css.cx(FAKE_CHECKBOX_CLASS_NAME,
|
|
512
|
+
className: css.cx(FAKE_CHECKBOX_CLASS_NAME, responsiveStyle.useStyle({
|
|
509
513
|
position: "absolute",
|
|
510
514
|
width: "100%",
|
|
511
515
|
height: "100%",
|
|
@@ -513,7 +517,7 @@ function FakeCheckbox({
|
|
|
513
517
|
borderRadius: 4,
|
|
514
518
|
pointerEvents: "none",
|
|
515
519
|
borderWidth: 1
|
|
516
|
-
}),
|
|
520
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([contrast], ([contrast2 = next.Contrasts.LIGHT]) => ({
|
|
517
521
|
borderColor: getContrastBorderColor(contrast2, error),
|
|
518
522
|
backgroundColor: getContrastBackgroundColor(contrast2)
|
|
519
523
|
}))), className)
|
|
@@ -535,7 +539,7 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
535
539
|
]);
|
|
536
540
|
return /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, restOfProps), {
|
|
537
541
|
ref,
|
|
538
|
-
className: css.cx(
|
|
542
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
539
543
|
position: "absolute",
|
|
540
544
|
opacity: 0,
|
|
541
545
|
width: "100%",
|
|
@@ -547,7 +551,7 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
547
551
|
opacity: 0.5
|
|
548
552
|
}
|
|
549
553
|
},
|
|
550
|
-
[`&:checked ~ .${FAKE_CHECKBOX_CLASS_NAME}`]: __spreadProps(__spreadValues({},
|
|
554
|
+
[`&:checked ~ .${FAKE_CHECKBOX_CLASS_NAME}`]: __spreadProps(__spreadValues({}, responsiveStyle.responsiveStyle([brandColor], ([{
|
|
551
555
|
swatch = {
|
|
552
556
|
hue: 0,
|
|
553
557
|
saturation: 0,
|
|
@@ -555,7 +559,7 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
555
559
|
},
|
|
556
560
|
alpha = 1
|
|
557
561
|
} = {}]) => ({
|
|
558
|
-
backgroundColor:
|
|
562
|
+
backgroundColor: responsiveStyle.colorToString({
|
|
559
563
|
swatch,
|
|
560
564
|
alpha
|
|
561
565
|
})
|
|
@@ -568,7 +572,7 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
568
572
|
width: "25%",
|
|
569
573
|
height: "50%",
|
|
570
574
|
borderStyle: "solid"
|
|
571
|
-
},
|
|
575
|
+
}, responsiveStyle.responsiveStyle([size, brandColor], ([size2 = next.Sizes.MEDIUM, {
|
|
572
576
|
swatch = {
|
|
573
577
|
hue: 0,
|
|
574
578
|
saturation: 0,
|
|
@@ -588,7 +592,7 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
588
592
|
})
|
|
589
593
|
}),
|
|
590
594
|
"&:not(:disabled)": {
|
|
591
|
-
[`&:focus ~ .${FAKE_CHECKBOX_CLASS_NAME}`]:
|
|
595
|
+
[`&:focus ~ .${FAKE_CHECKBOX_CLASS_NAME}`]: responsiveStyle.responsiveStyle([brandColor], ([brandColor2 = {
|
|
592
596
|
swatch: {
|
|
593
597
|
hue: 0,
|
|
594
598
|
saturation: 0,
|
|
@@ -596,11 +600,11 @@ const HiddenCheckbox = React.forwardRef(function HiddenCheckbox2(_k, ref) {
|
|
|
596
600
|
},
|
|
597
601
|
alpha: 1
|
|
598
602
|
}]) => ({
|
|
599
|
-
borderColor:
|
|
603
|
+
borderColor: responsiveStyle.colorToString(brandColor2)
|
|
600
604
|
}))
|
|
601
605
|
},
|
|
602
606
|
"&:not(:disabled):checked": {
|
|
603
|
-
[`&:focus ~ .${FAKE_CHECKBOX_CLASS_NAME}`]:
|
|
607
|
+
[`&:focus ~ .${FAKE_CHECKBOX_CLASS_NAME}`]: responsiveStyle.responsiveStyle([contrast], ([contrast2 = next.Contrasts.LIGHT]) => ({
|
|
604
608
|
borderColor: getContrastBorderColor(contrast2, error)
|
|
605
609
|
}))
|
|
606
610
|
}
|
|
@@ -625,9 +629,9 @@ var Checkbox = React.forwardRef(function Checkbox2(_m, ref) {
|
|
|
625
629
|
brandColor
|
|
626
630
|
} = next.useFormContext();
|
|
627
631
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
628
|
-
className: css.cx(
|
|
632
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
629
633
|
position: "relative"
|
|
630
|
-
}),
|
|
634
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
631
635
|
height: getSizeHeight(size2),
|
|
632
636
|
width: getSizeHeight(size2)
|
|
633
637
|
})))),
|
|
@@ -673,17 +677,17 @@ var CheckboxTableField = React.forwardRef(function CheckboxTableField2(_o, ref)
|
|
|
673
677
|
form.setFieldValue(name, event.currentTarget.checked);
|
|
674
678
|
}
|
|
675
679
|
return /* @__PURE__ */ jsxRuntime.jsxs(Label$1, {
|
|
676
|
-
className: css.cx(
|
|
680
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
677
681
|
display: "flex",
|
|
678
682
|
alignItems: "center",
|
|
679
683
|
margin: 0
|
|
680
|
-
}),
|
|
684
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
681
685
|
minHeight: getSizeHeight$1(size2),
|
|
682
686
|
maxHeight: getSizeHeight$1(size2)
|
|
683
687
|
})))),
|
|
684
688
|
htmlFor: id,
|
|
685
689
|
children: [/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
686
|
-
className:
|
|
690
|
+
className: responsiveStyle.useStyle({
|
|
687
691
|
marginRight: 8
|
|
688
692
|
}),
|
|
689
693
|
children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
|
|
@@ -704,7 +708,7 @@ function MainLabel(_q) {
|
|
|
704
708
|
"className"
|
|
705
709
|
]);
|
|
706
710
|
return /* @__PURE__ */ jsxRuntime.jsx(Label$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
707
|
-
className: css.cx(
|
|
711
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
708
712
|
margin: "0 0 4px 0"
|
|
709
713
|
}), className)
|
|
710
714
|
}));
|
|
@@ -716,7 +720,7 @@ function StyledLabel$1(_s) {
|
|
|
716
720
|
"className"
|
|
717
721
|
]);
|
|
718
722
|
return /* @__PURE__ */ jsxRuntime.jsx(Label$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
719
|
-
className: css.cx(
|
|
723
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
720
724
|
display: "flex",
|
|
721
725
|
alignItems: "center",
|
|
722
726
|
margin: "8px 0",
|
|
@@ -733,7 +737,7 @@ function CheckboxContainer(_u) {
|
|
|
733
737
|
"className"
|
|
734
738
|
]);
|
|
735
739
|
return /* @__PURE__ */ jsxRuntime.jsx("span", __spreadProps(__spreadValues({}, restOfProps), {
|
|
736
|
-
className: css.cx(
|
|
740
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
737
741
|
marginRight: 8
|
|
738
742
|
}), className)
|
|
739
743
|
}));
|
|
@@ -809,9 +813,9 @@ function Container$1(_y) {
|
|
|
809
813
|
"className"
|
|
810
814
|
]);
|
|
811
815
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
812
|
-
className: css.cx(
|
|
816
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
813
817
|
position: "relative"
|
|
814
|
-
}),
|
|
818
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
815
819
|
height: getSizeHeight(size2),
|
|
816
820
|
width: getSizeHeight(size2)
|
|
817
821
|
}))), className)
|
|
@@ -829,7 +833,7 @@ function FakeRadioButton(_A) {
|
|
|
829
833
|
"error"
|
|
830
834
|
]);
|
|
831
835
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
832
|
-
className: css.cx(FAKE_RADIO_BUTTON_CLASS_NAME,
|
|
836
|
+
className: css.cx(FAKE_RADIO_BUTTON_CLASS_NAME, responsiveStyle.useStyle({
|
|
833
837
|
position: "absolute",
|
|
834
838
|
width: "100%",
|
|
835
839
|
height: "100%",
|
|
@@ -837,7 +841,7 @@ function FakeRadioButton(_A) {
|
|
|
837
841
|
borderRadius: "50%",
|
|
838
842
|
pointerEvents: "none",
|
|
839
843
|
borderWidth: 1
|
|
840
|
-
}),
|
|
844
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([contrast], ([contrast2 = next.Contrasts.LIGHT]) => ({
|
|
841
845
|
borderColor: getContrastBorderColor(contrast2, error),
|
|
842
846
|
backgroundColor: getContrastBackgroundColor(contrast2)
|
|
843
847
|
}))), className)
|
|
@@ -857,7 +861,7 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
857
861
|
]);
|
|
858
862
|
return /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, restOfProps), {
|
|
859
863
|
type: "radio",
|
|
860
|
-
className: css.cx(
|
|
864
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
861
865
|
position: "absolute",
|
|
862
866
|
opacity: 0,
|
|
863
867
|
width: "100%",
|
|
@@ -869,7 +873,7 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
869
873
|
opacity: 0.5
|
|
870
874
|
}
|
|
871
875
|
},
|
|
872
|
-
[`&:checked ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]: __spreadProps(__spreadValues({},
|
|
876
|
+
[`&:checked ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]: __spreadProps(__spreadValues({}, responsiveStyle.responsiveStyle([brandColor], ([brandColor2 = {
|
|
873
877
|
swatch: {
|
|
874
878
|
hue: 0,
|
|
875
879
|
saturation: 0,
|
|
@@ -877,7 +881,7 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
877
881
|
},
|
|
878
882
|
alpha: 1
|
|
879
883
|
}]) => ({
|
|
880
|
-
backgroundColor:
|
|
884
|
+
backgroundColor: responsiveStyle.colorToString(brandColor2)
|
|
881
885
|
}))), {
|
|
882
886
|
borderColor: "transparent",
|
|
883
887
|
"&::after": __spreadValues({
|
|
@@ -890,7 +894,7 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
890
894
|
height: "50%",
|
|
891
895
|
borderRadius: "50%",
|
|
892
896
|
transform: "translate(-50%, -50%)"
|
|
893
|
-
},
|
|
897
|
+
}, responsiveStyle.responsiveStyle([brandColor], ([brandColor2 = {
|
|
894
898
|
swatch: {
|
|
895
899
|
hue: 0,
|
|
896
900
|
saturation: 0,
|
|
@@ -902,7 +906,7 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
902
906
|
})))
|
|
903
907
|
}),
|
|
904
908
|
"&:not(:disabled)": {
|
|
905
|
-
[`&:focus ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]:
|
|
909
|
+
[`&:focus ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]: responsiveStyle.responsiveStyle([brandColor], ([brandColor2 = {
|
|
906
910
|
swatch: {
|
|
907
911
|
hue: 0,
|
|
908
912
|
saturation: 0,
|
|
@@ -910,11 +914,11 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref)
|
|
|
910
914
|
},
|
|
911
915
|
alpha: 1
|
|
912
916
|
}]) => ({
|
|
913
|
-
borderColor:
|
|
917
|
+
borderColor: responsiveStyle.colorToString(brandColor2)
|
|
914
918
|
}))
|
|
915
919
|
},
|
|
916
920
|
"&:not(:disabled):checked": {
|
|
917
|
-
[`&:focus ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]:
|
|
921
|
+
[`&:focus ~ .${FAKE_RADIO_BUTTON_CLASS_NAME}`]: responsiveStyle.responsiveStyle([contrast], ([contrast2 = next.Contrasts.LIGHT]) => ({
|
|
918
922
|
borderColor: getContrastBorderColor(contrast2, error)
|
|
919
923
|
}))
|
|
920
924
|
}
|
|
@@ -961,7 +965,7 @@ function StyledLabel(_G) {
|
|
|
961
965
|
"className"
|
|
962
966
|
]);
|
|
963
967
|
return /* @__PURE__ */ jsxRuntime.jsx(Label$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
964
|
-
className: css.cx(
|
|
968
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
965
969
|
display: "flex",
|
|
966
970
|
alignItems: "center",
|
|
967
971
|
margin: "8px 0",
|
|
@@ -978,7 +982,7 @@ function RadioButtonContainer(_I) {
|
|
|
978
982
|
"className"
|
|
979
983
|
]);
|
|
980
984
|
return /* @__PURE__ */ jsxRuntime.jsx("span", __spreadProps(__spreadValues({}, restOfProps), {
|
|
981
|
-
className: css.cx(
|
|
985
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
982
986
|
marginRight: 8
|
|
983
987
|
}), className)
|
|
984
988
|
}));
|
|
@@ -1045,13 +1049,13 @@ function Container(_M) {
|
|
|
1045
1049
|
"className"
|
|
1046
1050
|
]);
|
|
1047
1051
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1048
|
-
className: css.cx(
|
|
1052
|
+
className: css.cx(responsiveStyle.useStyle(responsiveField({
|
|
1049
1053
|
shape,
|
|
1050
1054
|
size,
|
|
1051
1055
|
contrast,
|
|
1052
1056
|
brandColor,
|
|
1053
1057
|
error
|
|
1054
|
-
})),
|
|
1058
|
+
})), responsiveStyle.useStyle(__spreadValues({
|
|
1055
1059
|
display: "flex",
|
|
1056
1060
|
alignItems: "center",
|
|
1057
1061
|
position: "relative",
|
|
@@ -1060,7 +1064,7 @@ function Container(_M) {
|
|
|
1060
1064
|
"&:focus, &:focus-within": {
|
|
1061
1065
|
borderColor: "#e54e7f"
|
|
1062
1066
|
}
|
|
1063
|
-
},
|
|
1067
|
+
}, responsiveStyle.responsiveStyle([size, contrast], ([size2 = next.Sizes.MEDIUM, contrast2 = next.Contrasts.LIGHT]) => ({
|
|
1064
1068
|
minHeight: getSizeHeight$2(size2),
|
|
1065
1069
|
maxHeight: getSizeHeight$2(size2),
|
|
1066
1070
|
"&::after": {
|
|
@@ -1083,7 +1087,7 @@ const Select = React.forwardRef(function Select2(_O, ref) {
|
|
|
1083
1087
|
]);
|
|
1084
1088
|
return /* @__PURE__ */ jsxRuntime.jsx("select", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1085
1089
|
ref,
|
|
1086
|
-
className: css.cx(
|
|
1090
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1087
1091
|
appearance: "none",
|
|
1088
1092
|
position: "absolute",
|
|
1089
1093
|
top: 0,
|
|
@@ -1282,14 +1286,14 @@ function Label({
|
|
|
1282
1286
|
size
|
|
1283
1287
|
}) {
|
|
1284
1288
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1285
|
-
className: css.cx(
|
|
1289
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1286
1290
|
display: "block",
|
|
1287
1291
|
maxWidth: 120,
|
|
1288
1292
|
minWidth: 60,
|
|
1289
1293
|
borderRadius: 2,
|
|
1290
1294
|
backgroundColor: "#5f49f4",
|
|
1291
1295
|
opacity: 0.4
|
|
1292
|
-
}),
|
|
1296
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
1293
1297
|
margin: `calc(0.25 * ${getSizeHeight(size2)}px + 2px) 0`,
|
|
1294
1298
|
minHeight: 0.5 * getSizeHeight(size2),
|
|
1295
1299
|
maxHeight: 0.5 * getSizeHeight(size2)
|
|
@@ -1301,14 +1305,14 @@ function Input({
|
|
|
1301
1305
|
size
|
|
1302
1306
|
}) {
|
|
1303
1307
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1304
|
-
className: css.cx(
|
|
1308
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1305
1309
|
display: "block",
|
|
1306
1310
|
width: "100%",
|
|
1307
1311
|
borderWidth: 2,
|
|
1308
1312
|
borderStyle: "solid",
|
|
1309
1313
|
borderColor: "#5f49f4",
|
|
1310
1314
|
opacity: 0.4
|
|
1311
|
-
}),
|
|
1315
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([shape, size], ([shape2 = next.Shapes.ROUNDED, size2 = next.Sizes.MEDIUM]) => ({
|
|
1312
1316
|
minHeight: getSizeHeight$1(size2),
|
|
1313
1317
|
maxHeight: getSizeHeight$1(size2),
|
|
1314
1318
|
borderRadius: getShapeBorderRadius(shape2)
|
|
@@ -1471,7 +1475,7 @@ const spin = css.keyframes`
|
|
|
1471
1475
|
`;
|
|
1472
1476
|
function Spinner() {
|
|
1473
1477
|
return /* @__PURE__ */ jsxRuntime.jsx(SvgSpinner20, {
|
|
1474
|
-
className:
|
|
1478
|
+
className: responsiveStyle.useStyle({
|
|
1475
1479
|
display: "inline-flex",
|
|
1476
1480
|
animation: `${spin} 1s linear infinite`,
|
|
1477
1481
|
stroke: "currentColor"
|
|
@@ -1530,11 +1534,11 @@ const GridForm = React.forwardRef(function GridFrom(_aa, ref) {
|
|
|
1530
1534
|
]);
|
|
1531
1535
|
return /* @__PURE__ */ jsxRuntime.jsx("form", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1532
1536
|
ref,
|
|
1533
|
-
className: css.cx(
|
|
1537
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1534
1538
|
display: "flex",
|
|
1535
1539
|
flexWrap: "wrap",
|
|
1536
1540
|
width: "100%"
|
|
1537
|
-
}),
|
|
1541
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
|
|
1538
1542
|
fontSize: getSizeFontSize(size2)
|
|
1539
1543
|
}))), className)
|
|
1540
1544
|
}));
|
|
@@ -1555,10 +1559,10 @@ const GridItem = React.forwardRef(function GridItem2(_ca, ref) {
|
|
|
1555
1559
|
]);
|
|
1556
1560
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1557
1561
|
ref,
|
|
1558
|
-
className: css.cx(
|
|
1562
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1559
1563
|
alignSelf: "flex-end",
|
|
1560
1564
|
flexDirection: "column"
|
|
1561
|
-
}),
|
|
1565
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveGridItem({
|
|
1562
1566
|
grid,
|
|
1563
1567
|
index: index2,
|
|
1564
1568
|
rowGap,
|
|
@@ -1588,11 +1592,11 @@ function StyledButton(_ea) {
|
|
|
1588
1592
|
]);
|
|
1589
1593
|
return /* @__PURE__ */ jsxRuntime.jsx(Button$1["default"], __spreadProps(__spreadValues({}, restOfProps), {
|
|
1590
1594
|
as: "button",
|
|
1591
|
-
className: css.cx(
|
|
1595
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1592
1596
|
display: "flex",
|
|
1593
1597
|
alignItems: "center",
|
|
1594
1598
|
justifyContent: "center"
|
|
1595
|
-
}),
|
|
1599
|
+
}), responsiveStyle.useStyle(responsiveStyle.responsiveStyle([size, alignment], ([size2 = next.Sizes.MEDIUM, alignment2 = next.Alignments.CENTER]) => ({
|
|
1596
1600
|
minHeight: getSizeHeight$1(size2),
|
|
1597
1601
|
maxHeight: getSizeHeight$1(size2),
|
|
1598
1602
|
margin: getAlignmentMargin(alignment2),
|
|
@@ -1608,7 +1612,7 @@ function ErrorContainer(_ga) {
|
|
|
1608
1612
|
"className"
|
|
1609
1613
|
]);
|
|
1610
1614
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1611
|
-
className: css.cx(
|
|
1615
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1612
1616
|
padding: "8px 16px",
|
|
1613
1617
|
backgroundColor: "#f19eb9",
|
|
1614
1618
|
borderRadius: 4,
|
|
@@ -1623,7 +1627,7 @@ function IconContainer(_ia) {
|
|
|
1623
1627
|
"className"
|
|
1624
1628
|
]);
|
|
1625
1629
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1626
|
-
className: css.cx(
|
|
1630
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1627
1631
|
fill: "currentColor"
|
|
1628
1632
|
}), className)
|
|
1629
1633
|
}));
|
|
@@ -1635,7 +1639,7 @@ function ErrorMessage(_ka) {
|
|
|
1635
1639
|
"className"
|
|
1636
1640
|
]);
|
|
1637
1641
|
return /* @__PURE__ */ jsxRuntime.jsx("p", __spreadProps(__spreadValues({}, restOfProps), {
|
|
1638
|
-
className: css.cx(
|
|
1642
|
+
className: css.cx(responsiveStyle.useStyle({
|
|
1639
1643
|
fontSize: 12,
|
|
1640
1644
|
margin: "8px 0",
|
|
1641
1645
|
color: "rgba(127, 0, 0, 0.95)"
|
|
@@ -1688,8 +1692,8 @@ const Form = React.forwardRef(function Form2({
|
|
|
1688
1692
|
var _a;
|
|
1689
1693
|
return (_a = fieldsProp == null ? void 0 : fieldsProp.grid) != null ? _a : [];
|
|
1690
1694
|
}, [fieldsProp]);
|
|
1691
|
-
const table =
|
|
1692
|
-
const client =
|
|
1695
|
+
const table = responsiveStyle.useTable(tableId != null ? tableId : null);
|
|
1696
|
+
const client = responsiveStyle.useMakeswiftClient();
|
|
1693
1697
|
const [refEl, setRefEl] = React.useState(null);
|
|
1694
1698
|
const [propControllers, setPropControllers] = React.useState(null);
|
|
1695
1699
|
const [initialValues, setInitialValues] = React.useState(() => fields.reduce((acc, formField) => {
|