@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",
@@ -8,6 +8,8 @@ export type SegmentedControlGroupProps = {
8
8
  size: ButtonSize | SquareButtonSize;
9
9
  /** 전체 너비 유무 */
10
10
  fullWidth?: boolean;
11
+ /** 비활성화 여부 */
12
+ disabled?: boolean;
11
13
  } & ({
12
14
  /** 중복 선택 가능 유무 */
13
15
  multiSelect?: false;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.26.2",
3
+ "version": "1.27.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,