@team-monolith/cds 1.99.1 → 1.99.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.
|
@@ -178,13 +178,13 @@ const SIZE_TO_LABEL_STYLE = {
|
|
|
178
178
|
export const SquareButton = React.forwardRef(function SquareButton(props, ref) {
|
|
179
179
|
const { className, component: Component = "button", disabled, color, size, icon, label, fullWidth, loading = false, buttonProps } = props, other = __rest(props, ["className", "component", "disabled", "color", "size", "icon", "label", "fullWidth", "loading", "buttonProps"]);
|
|
180
180
|
const theme = useTheme();
|
|
181
|
-
return (_jsxs("span", Object.assign({ css: css `
|
|
181
|
+
return (_jsxs("span", Object.assign({ className: className, css: css `
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-direction: column;
|
|
184
184
|
align-items: center;
|
|
185
185
|
gap: 8px;
|
|
186
186
|
width: ${fullWidth ? "100%" : "fit-content"};
|
|
187
|
-
` }, { children: [_jsx(Component, Object.assign({ type: "button" }, other, buttonProps, { ref: ref,
|
|
187
|
+
` }, { children: [_jsx(Component, Object.assign({ type: "button" }, other, buttonProps, { ref: ref, css: [
|
|
188
188
|
COLOR_TO_BUTTON_STYLE(theme, color, Boolean(disabled || loading)),
|
|
189
189
|
SIZE_TO_BUTTON_STYLE[size],
|
|
190
190
|
css `
|