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