@team-monolith/cds 1.26.2 → 1.27.1
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.
|
@@ -30,7 +30,7 @@ export const SegmentedControlButton = React.forwardRef(function SegmentedControl
|
|
|
30
30
|
const isActive = context.multiSelect
|
|
31
31
|
? context.value.includes(props.value)
|
|
32
32
|
: context.value === props.value;
|
|
33
|
-
return (_jsx(StyledButton, Object.assign({}, other, { ref: ref, startIcon: typeof startIcon === "function" ? startIcon(isActive) : startIcon, endIcon: typeof endIcon === "function" ? endIcon(isActive) : endIcon, isActive: isActive, color: isActive ? "white" : "textNeutral", size: context.size, onClick: handleClick })));
|
|
33
|
+
return (_jsx(StyledButton, Object.assign({}, other, { ref: ref, startIcon: typeof startIcon === "function" ? startIcon(isActive) : startIcon, endIcon: typeof endIcon === "function" ? endIcon(isActive) : endIcon, isActive: isActive, color: isActive ? "white" : "textNeutral", size: context.size, onClick: handleClick, disabled: context.disabled || props.disabled })));
|
|
34
34
|
});
|
|
35
35
|
const StyledButton = styled(Button, {
|
|
36
36
|
shouldForwardProp: (prop) => prop !== "isActive",
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?node-id=181%3A89883)
|
|
8
8
|
*/
|
|
9
9
|
export const SegmentedControlGroup = React.forwardRef(function SegmentedControlGroup(props, ref) {
|
|
10
|
-
const { component: Component = "div", className, children, fullWidth, multiSelect, } = props;
|
|
10
|
+
const { component: Component = "div", className, children, fullWidth, disabled, multiSelect, } = props;
|
|
11
11
|
const theme = useTheme();
|
|
12
12
|
return (_jsx(Component, Object.assign({ ref: ref, className: className, css: css `
|
|
13
13
|
display: flex;
|