@team-monolith/cds 1.28.1 → 1.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.
@@ -229,7 +229,7 @@ const Button = React.forwardRef(function Button(props, ref) {
229
229
  `,
230
230
  COLOR_TO_BUTTON_STYLE(theme, color, Boolean(disabled)),
231
231
  SIZE_TO_BUTTON_STYLE[size],
232
- ], disabled: disabled }, { children: [startIcon, _jsx(Label, Object.assign({ size: size, bold: bold }, { children: label })), endIcon] })));
232
+ ], disabled: disabled }, { children: [startIcon, label && (_jsx(Label, Object.assign({ size: size, bold: bold }, { children: label }))), endIcon] })));
233
233
  });
234
234
  const Label = styled.span `
235
235
  font-weight: ${({ bold }) => (bold ? 700 : 400)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.28.1",
3
+ "version": "1.28.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,