@wise/dynamic-flow-client-internal 5.19.3 → 5.20.0-exp-box-cq-2-e95523a

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.css CHANGED
@@ -52,6 +52,44 @@
52
52
  width: 66.66%;
53
53
  }
54
54
  }
55
+ /* NEW box renderer styles */
56
+ @media screen and (width >=1px) {
57
+ /* container queries (when .df-prefer-container-queries is set on a parent) */
58
+ /* In container-query mode, ignore viewport-based width overrides by resetting to narrow defaults. */
59
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-border {
60
+ padding: var(--size-16);
61
+ }
62
+
63
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-xs,
64
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-sm,
65
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-md,
66
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-lg {
67
+ width: 100%;
68
+ }
69
+
70
+ /* @container (min-width: 576px) { */
71
+ @container (min-width: 480px) {
72
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-border {
73
+ padding: var(--size-24);
74
+ }
75
+
76
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-xs {
77
+ width: 33.33%;
78
+ }
79
+
80
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-sm {
81
+ width: 50%;
82
+ }
83
+
84
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-md {
85
+ width: 66.66%;
86
+ }
87
+
88
+ .df-prefer-container-queries .df-box-renderer.df-box-renderer-width-lg {
89
+ width: 83.33%;
90
+ }
91
+ }
92
+ }
55
93
  .df-columns-renderer-container {
56
94
  display: flex;
57
95
  gap: var(--size-4);
@@ -137,13 +175,6 @@
137
175
  width: 300px;
138
176
  }
139
177
  }
140
- /**
141
- * This speficies the container for container queries about width.
142
- * We don't use it by default, but integrations can specify it using the className prop in the DF component.
143
- */
144
- .df-prefer-container-queries {
145
- container-type: inline-size;
146
- }
147
178
  /* narrow container */
148
179
  @container (max-width: 576px) {
149
180
  .df-image.xs img.df-reserve-space {
@@ -230,6 +261,13 @@
230
261
  margin-left: auto;
231
262
  margin-right: auto;
232
263
  }
264
+ /**
265
+ * This specifies the container for container queries about width.
266
+ * We don't use it by default, but integrations can specify it using the className prop in the DF component.
267
+ */
268
+ .df-prefer-container-queries {
269
+ container-type: inline-size;
270
+ }
233
271
  .df-context-menu {
234
272
  position: fixed;
235
273
  z-index: 10;
package/build/main.js CHANGED
@@ -395,25 +395,30 @@ var AlertRenderer_default = AlertRenderer;
395
395
  // ../renderers/src/BoxRenderer.tsx
396
396
  var import_classnames = __toESM(require_classnames());
397
397
  var import_jsx_runtime3 = require("react/jsx-runtime");
398
- var BoxRenderer = {
399
- canRenderType: "box",
400
- render: ({ children, control, margin, width }) => {
401
- const hasFixedWidth = width !== "xl";
402
- const hasBorder = control === "bordered" || control === "bordered-web";
403
- const contents = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
404
- "div",
405
- {
406
- className: (0, import_classnames.default)({
407
- "df-box-renderer-border": hasBorder,
408
- [`df-box-renderer-width-${width}`]: hasFixedWidth,
409
- [getMargin(margin)]: !hasFixedWidth
410
- }),
411
- children
412
- }
413
- );
414
- return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
415
- }
398
+ var getBoxRenderer = (className) => {
399
+ const renderer = {
400
+ canRenderType: "box",
401
+ render: ({ children, control, margin, width }) => {
402
+ const hasFixedWidth = width !== "xl";
403
+ const hasBorder = control === "bordered" || control === "bordered-web";
404
+ const contents = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
405
+ "div",
406
+ {
407
+ className: (0, import_classnames.default)({
408
+ [className]: !!className,
409
+ "df-box-renderer-border": hasBorder,
410
+ [`df-box-renderer-width-${width}`]: hasFixedWidth,
411
+ [getMargin(margin)]: !hasFixedWidth
412
+ }),
413
+ children
414
+ }
415
+ );
416
+ return hasFixedWidth ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
417
+ }
418
+ };
419
+ return renderer;
416
420
  };
421
+ var BoxRenderer = getBoxRenderer("df-box-renderer");
417
422
  var BoxRenderer_default = BoxRenderer;
418
423
 
419
424
  // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx
package/build/main.mjs CHANGED
@@ -377,25 +377,30 @@ var AlertRenderer_default = AlertRenderer;
377
377
  // ../renderers/src/BoxRenderer.tsx
378
378
  var import_classnames = __toESM(require_classnames());
379
379
  import { jsx as jsx3 } from "react/jsx-runtime";
380
- var BoxRenderer = {
381
- canRenderType: "box",
382
- render: ({ children, control, margin, width }) => {
383
- const hasFixedWidth = width !== "xl";
384
- const hasBorder = control === "bordered" || control === "bordered-web";
385
- const contents = /* @__PURE__ */ jsx3(
386
- "div",
387
- {
388
- className: (0, import_classnames.default)({
389
- "df-box-renderer-border": hasBorder,
390
- [`df-box-renderer-width-${width}`]: hasFixedWidth,
391
- [getMargin(margin)]: !hasFixedWidth
392
- }),
393
- children
394
- }
395
- );
396
- return hasFixedWidth ? /* @__PURE__ */ jsx3("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
397
- }
380
+ var getBoxRenderer = (className) => {
381
+ const renderer = {
382
+ canRenderType: "box",
383
+ render: ({ children, control, margin, width }) => {
384
+ const hasFixedWidth = width !== "xl";
385
+ const hasBorder = control === "bordered" || control === "bordered-web";
386
+ const contents = /* @__PURE__ */ jsx3(
387
+ "div",
388
+ {
389
+ className: (0, import_classnames.default)({
390
+ [className]: !!className,
391
+ "df-box-renderer-border": hasBorder,
392
+ [`df-box-renderer-width-${width}`]: hasFixedWidth,
393
+ [getMargin(margin)]: !hasFixedWidth
394
+ }),
395
+ children
396
+ }
397
+ );
398
+ return hasFixedWidth ? /* @__PURE__ */ jsx3("div", { className: (0, import_classnames.default)("df-box-renderer-fixed-width", getMargin(margin)), children: contents }) : contents;
399
+ }
400
+ };
401
+ return renderer;
398
402
  };
403
+ var BoxRenderer = getBoxRenderer("df-box-renderer");
399
404
  var BoxRenderer_default = BoxRenderer;
400
405
 
401
406
  // ../renderers/src/ButtonRenderer/AddressValidationButtonRenderer.tsx