@marigold/components 4.1.0 → 4.1.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/dist/index.js CHANGED
@@ -1313,7 +1313,7 @@ var FieldBase = ({
1313
1313
  const hasHelpText = !!description || errorMessage && error;
1314
1314
  const style = (0, import_system25.useComponentStyles)("Field", { variant, size });
1315
1315
  return /* @__PURE__ */ import_react38.default.createElement(import_system25.Box, {
1316
- __baseCSS: { width },
1316
+ __baseCSS: { display: "flex", flexDirection: "column", width },
1317
1317
  css: style
1318
1318
  }, label && /* @__PURE__ */ import_react38.default.createElement(Label, {
1319
1319
  required,
@@ -1321,7 +1321,9 @@ var FieldBase = ({
1321
1321
  size,
1322
1322
  ...labelProps,
1323
1323
  ...stateProps
1324
- }, label), /* @__PURE__ */ import_react38.default.createElement("div", null, children, hasHelpText && /* @__PURE__ */ import_react38.default.createElement(HelpText, {
1324
+ }, label), /* @__PURE__ */ import_react38.default.createElement(import_system25.Box, {
1325
+ __baseCSS: { display: "flex", flexDirection: "column" }
1326
+ }, children, hasHelpText && /* @__PURE__ */ import_react38.default.createElement(HelpText, {
1325
1327
  ...stateProps,
1326
1328
  variant,
1327
1329
  size,
package/dist/index.mjs CHANGED
@@ -1278,7 +1278,7 @@ var FieldBase = ({
1278
1278
  const hasHelpText = !!description || errorMessage && error;
1279
1279
  const style = useComponentStyles21("Field", { variant, size });
1280
1280
  return /* @__PURE__ */ React35.createElement(Box19, {
1281
- __baseCSS: { width },
1281
+ __baseCSS: { display: "flex", flexDirection: "column", width },
1282
1282
  css: style
1283
1283
  }, label && /* @__PURE__ */ React35.createElement(Label, {
1284
1284
  required,
@@ -1286,7 +1286,9 @@ var FieldBase = ({
1286
1286
  size,
1287
1287
  ...labelProps,
1288
1288
  ...stateProps
1289
- }, label), /* @__PURE__ */ React35.createElement("div", null, children, hasHelpText && /* @__PURE__ */ React35.createElement(HelpText, {
1289
+ }, label), /* @__PURE__ */ React35.createElement(Box19, {
1290
+ __baseCSS: { display: "flex", flexDirection: "column" }
1291
+ }, children, hasHelpText && /* @__PURE__ */ React35.createElement(HelpText, {
1290
1292
  ...stateProps,
1291
1293
  variant,
1292
1294
  size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,8 +23,8 @@
23
23
  "directory": "packages/components"
24
24
  },
25
25
  "dependencies": {
26
- "@marigold/icons": "1.1.8",
27
- "@marigold/system": "4.1.0",
26
+ "@marigold/icons": "1.1.10",
27
+ "@marigold/system": "4.1.2",
28
28
  "@marigold/tokens": "3.1.0",
29
29
  "@marigold/types": "0.5.6",
30
30
  "@react-aria/button": "3.6.3",