@wise/dynamic-flow-client 3.28.0 → 3.28.2
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/build/main.js +10 -7
- package/build/main.min.js +1 -1
- package/build/main.mjs +10 -7
- package/package.json +19 -19
package/build/main.js
CHANGED
|
@@ -144,10 +144,10 @@ var init_clsx = __esm({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.
|
|
147
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index-a91e5689.esm.js
|
|
148
148
|
var import_react7, import_jsx_runtime17, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
|
|
149
149
|
var init_index_a91e5689_esm = __esm({
|
|
150
|
-
"../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.
|
|
150
|
+
"../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
|
|
151
151
|
"use strict";
|
|
152
152
|
init_clsx();
|
|
153
153
|
import_react7 = require("react");
|
|
@@ -11624,13 +11624,14 @@ var import_classnames = __toESM(require_classnames());
|
|
|
11624
11624
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
11625
11625
|
var BoxRenderer = {
|
|
11626
11626
|
canRenderType: "box",
|
|
11627
|
-
render: ({ border, children, margin, width }) => {
|
|
11627
|
+
render: ({ border, children, control, margin, width }) => {
|
|
11628
11628
|
const hasFixedWidth = width !== "xl";
|
|
11629
|
+
const hasBorder = control === "bordered" || control === "bordered-web" || border;
|
|
11629
11630
|
const contents = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
11630
11631
|
"div",
|
|
11631
11632
|
{
|
|
11632
11633
|
className: (0, import_classnames.default)({
|
|
11633
|
-
"df-box-renderer-border":
|
|
11634
|
+
"df-box-renderer-border": hasBorder,
|
|
11634
11635
|
[`df-box-renderer-width-${width}`]: hasFixedWidth,
|
|
11635
11636
|
[getMargin(margin)]: !hasFixedWidth
|
|
11636
11637
|
}),
|
|
@@ -11873,7 +11874,7 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11873
11874
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11874
11875
|
var import_components9 = require("@transferwise/components");
|
|
11875
11876
|
|
|
11876
|
-
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.
|
|
11877
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index.esm.js
|
|
11877
11878
|
init_index_a91e5689_esm();
|
|
11878
11879
|
init_clsx();
|
|
11879
11880
|
var import_react8 = require("react");
|
|
@@ -16157,10 +16158,12 @@ function MultiSelectSchema({
|
|
|
16157
16158
|
const shouldShowInitialError = Boolean(errors) && !changed;
|
|
16158
16159
|
const shouldShowValidationError = Boolean(validations.length) && submitted;
|
|
16159
16160
|
const formGroupClasses = {
|
|
16160
|
-
"
|
|
16161
|
+
"form-group": true,
|
|
16162
|
+
"has-error": shouldShowInitialError || shouldShowValidationError,
|
|
16163
|
+
"has-info": !!schema.description
|
|
16161
16164
|
};
|
|
16162
16165
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_classnames8.default)("d-flex flex-column", formGroupClasses), children: [
|
|
16163
|
-
schema.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { htmlFor: id, children: schema.title }) : void 0,
|
|
16166
|
+
schema.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { className: "control-label d-inline m-b-1", htmlFor: id, children: schema.title }) : void 0,
|
|
16164
16167
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16165
16168
|
import_components51.SelectInput,
|
|
16166
16169
|
{
|