@team-monolith/cds 1.29.0 → 1.29.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.
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonProps } from "../..";
|
|
3
|
-
export
|
|
3
|
+
export interface SegmentedControlButtonProps<T> extends Omit<ButtonProps, "color" | "size" | "startIcon" | "endIcon" | "value"> {
|
|
4
4
|
value: T;
|
|
5
5
|
startIcon?: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
6
6
|
endIcon?: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
/**
|
|
9
9
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?node-id=181%3A89883)
|
|
10
10
|
*/
|
|
11
|
-
export declare const SegmentedControlButton: <T>(props:
|
|
12
|
-
value: T;
|
|
13
|
-
startIcon?: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
14
|
-
endIcon?: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
15
|
-
} & {
|
|
11
|
+
export declare const SegmentedControlButton: <T>(props: SegmentedControlButtonProps<T> & {
|
|
16
12
|
ref?: React.ComponentPropsWithRef<"button">["ref"];
|
|
17
13
|
}) => React.ReactElement;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SquareButtonProps } from "../..";
|
|
3
|
-
export
|
|
3
|
+
export interface SegmentedControlSquareButtonProps<T> extends Omit<SquareButtonProps, "color" | "size" | "icon"> {
|
|
4
4
|
value: T;
|
|
5
5
|
icon: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
/**
|
|
8
8
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?node-id=181%3A89883)
|
|
9
9
|
*/
|
|
10
|
-
export declare const SegmentedControlSquareButton: <T>(props:
|
|
11
|
-
value: T;
|
|
12
|
-
icon: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
13
|
-
} & {
|
|
10
|
+
export declare const SegmentedControlSquareButton: <T>(props: SegmentedControlSquareButtonProps<T> & {
|
|
14
11
|
ref?: React.ComponentPropsWithRef<"button">["ref"];
|
|
15
12
|
}) => React.ReactElement;
|