@team-monolith/cds 1.70.0 → 1.70.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.
|
@@ -111,7 +111,9 @@ const Container = styled(motion.div) `
|
|
|
111
111
|
|
|
112
112
|
padding-top: ${HOVER_Y_OFFSET}px;
|
|
113
113
|
`;
|
|
114
|
-
const Cover = styled(motion.div
|
|
114
|
+
const Cover = styled(motion.div, {
|
|
115
|
+
shouldForwardProp: (prop) => prop !== "backgroundColor",
|
|
116
|
+
})(({ backgroundColor }) => css `
|
|
115
117
|
height: ${BOOK_HEIGHT}px;
|
|
116
118
|
|
|
117
119
|
border-radius: 8px;
|
|
@@ -27,7 +27,7 @@ export interface SquareButtonOwnProps<RootComponentType extends React.ElementTyp
|
|
|
27
27
|
/** 버튼에 전달될 Props. 접근성을 위해 aria-label이 필수로 들어가야 합니다. */
|
|
28
28
|
buttonProps: {
|
|
29
29
|
"aria-label": string;
|
|
30
|
-
} &
|
|
30
|
+
} & Omit<ButtonProps, "disabled" | "color" | "type" | "size" | "icon" | "label" | "loading" | "fullWidth" | "onClick" | "aria-label">;
|
|
31
31
|
}
|
|
32
32
|
export type SquareButtonProps<RootComponentType extends React.ElementType = SquareButtonTypeMap["defaultComponent"]> = PolymorphicProps<SquareButtonTypeMap<RootComponentType>, RootComponentType>;
|
|
33
33
|
export interface SquareButtonTypeMap<RootComponentType extends React.ElementType = "span"> {
|
|
@@ -28,6 +28,7 @@ const TYPE_TO_COLOR = (theme, type) => {
|
|
|
28
28
|
/**
|
|
29
29
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?type=design&node-id=106-1900&t=FwczLZ1IVvskUVbT-0)
|
|
30
30
|
*/
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, react/display-name
|
|
31
32
|
const DropdownItem = React.forwardRef((props, ref) => {
|
|
32
33
|
const { className, index, labelCss, component: Component = "div", type = "default", checkbox, checkboxProps = { checked: false }, startIcon, label, endIcon, preserveIconColor = false, disabled, active, onMouseEnter, onMouseLeave, onClick, subMenuProps, children } = props, other = __rest(props, ["className", "index", "labelCss", "component", "type", "checkbox", "checkboxProps", "startIcon", "label", "endIcon", "preserveIconColor", "disabled", "active", "onMouseEnter", "onMouseLeave", "onClick", "subMenuProps", "children"]);
|
|
33
34
|
const itemRef = useRef(null);
|
|
@@ -65,7 +66,9 @@ const DropdownItem = React.forwardRef((props, ref) => {
|
|
|
65
66
|
const StyledCheckboxInput = styled(CheckboxInput) `
|
|
66
67
|
margin: 4px;
|
|
67
68
|
`;
|
|
68
|
-
const IconDiv = styled
|
|
69
|
+
const IconDiv = styled("div", {
|
|
70
|
+
shouldForwardProp: (prop) => prop !== "preserveIconColor",
|
|
71
|
+
})(({ theme, type, preserveIconColor }) => css `
|
|
69
72
|
width: 14px;
|
|
70
73
|
height: 14px;
|
|
71
74
|
svg {
|