@box/blueprint-web 16.14.2 → 16.15.0

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.
@@ -41,9 +41,9 @@ const Root = /*#__PURE__*/forwardRef(({
41
41
  }), jsx("div", {
42
42
  className: styles.comboboxGroupcontainer,
43
43
  children: children
44
- }), (comboboxHasError || selectHasError) && jsx(InlineError, {
44
+ }), jsx(InlineError, {
45
45
  id: inlineErrorId,
46
- children: errorMessage
46
+ children: comboboxHasError || selectHasError ? errorMessage : undefined
47
47
  })]
48
48
  });
49
49
  });
@@ -128,11 +128,11 @@ const BaseTextInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
128
128
  children: error
129
129
  })]
130
130
  }) : EndIconComponent]
131
- }), errorVariant === 'default' && hasError ? jsx(InlineError, {
131
+ }), errorVariant === 'default' && jsx(InlineError, {
132
132
  className: styles.inlineError,
133
133
  id: inlineErrorId,
134
- children: error
135
- }) : hasSubtext && jsx(Text, {
134
+ children: hasError ? error : undefined
135
+ }), hasSubtext && jsx(Text, {
136
136
  as: "p",
137
137
  className: styles.subtext,
138
138
  color: "textOnLightSecondary",
@@ -53,11 +53,11 @@ const RadioTilesRoot = ({
53
53
  role: "radiogroup",
54
54
  style: containerStyles,
55
55
  children: children
56
- }), hasError ? jsx(InlineError, {
56
+ }), jsx(InlineError, {
57
57
  className: styles.inlineError,
58
58
  id: inlineErrorId,
59
- children: error
60
- }) : null]
59
+ children: hasError ? error : undefined
60
+ })]
61
61
  })
62
62
  });
63
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "16.14.2",
3
+ "version": "16.15.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@ariakit/react": "0.4.21",
52
52
  "@ariakit/react-core": "0.4.21",
53
- "@box/blueprint-web-assets": "^5.6.2",
53
+ "@box/blueprint-web-assets": "^5.6.3",
54
54
  "@internationalized/date": "^3.12.0",
55
55
  "@radix-ui/react-accordion": "1.1.2",
56
56
  "@radix-ui/react-checkbox": "1.0.4",
@@ -79,7 +79,7 @@
79
79
  "type-fest": "^3.2.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@box/storybook-utils": "^1.2.2",
82
+ "@box/storybook-utils": "^1.2.3",
83
83
  "@figma/code-connect": "1.4.4",
84
84
  "@types/react": "^18.0.0",
85
85
  "@types/react-dom": "^18.0.0",