@team-monolith/cds 1.70.1 → 1.70.3

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)(({ backgroundColor }) => css `
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;
@@ -65,12 +65,20 @@ const SIZE_TO_FONT_STYLES = (size) => ({
65
65
  /**
66
66
  * [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-10284&t=HnIfxpf8uR6WmzMW-0)
67
67
  */
68
+ // eslint-disable-next-line react/display-name, @typescript-eslint/no-explicit-any
68
69
  const Input = React.forwardRef((props, ref) => {
69
- const { label, hintText, hintIcon, className, color, size, placeholder, disabled, startIcon, startLabel, endLabel, endIcon, inputProps, inputRef, fullWidth, onChange, onClear, defaultValue, value } = props, other = __rest(props, ["label", "hintText", "hintIcon", "className", "color", "size", "placeholder", "disabled", "startIcon", "startLabel", "endLabel", "endIcon", "inputProps", "inputRef", "fullWidth", "onChange", "onClear", "defaultValue", "value"]);
70
+ const { label, hintText, hintIcon,
71
+ /* eslint-disable @typescript-eslint/no-unused-vars */
72
+ className, color, size, placeholder, disabled, startIcon, startLabel, endLabel, endIcon, inputProps, inputRef, fullWidth, onChange, onClear, defaultValue, value } = props,
73
+ /* eslint-enable @typescript-eslint/no-unused-vars */
74
+ other = __rest(props, ["label", "hintText", "hintIcon", "className", "color", "size", "placeholder", "disabled", "startIcon", "startLabel", "endLabel", "endIcon", "inputProps", "inputRef", "fullWidth", "onChange", "onClear", "defaultValue", "value"]);
75
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
76
  const { className: _className } = props, inputBaseProps = __rest(props, ["className"]);
71
77
  return (_jsxs(InputWrapper, Object.assign({ className: props.className, size: props.size, fullWidth: props.fullWidth, ref: ref }, other, { children: [label ? (_jsxs(Label, Object.assign({ disabled: props.disabled }, { children: [label, " ", _jsx(InputBase, Object.assign({}, inputBaseProps))] }))) : (_jsx(InputBase, Object.assign({}, inputBaseProps))), hintText && (_jsxs(Hint, Object.assign({ color: props.color, disabled: props.disabled }, { children: [hintIcon, hintText] })))] })));
72
78
  });
73
- const InputWrapper = styled.span `
79
+ const InputWrapper = styled("span", {
80
+ shouldForwardProp: (prop) => prop !== "fullWidth",
81
+ }) `
74
82
  display: flex;
75
83
  flex-direction: column;
76
84
  gap: 8px;
@@ -99,7 +99,9 @@ export function InputBase(props) {
99
99
  const { className, color, size, disabled = false, startIcon, startLabel, endLabel, endIcon, fullWidth = false, onClear, } = props;
100
100
  return (_jsxs(InputContainer, Object.assign({ className: className, disabled: disabled, color: color, inputSize: size, fullWidth: fullWidth }, { children: [startIcon, startLabel && _jsx("span", { children: startLabel }), _jsx(InputComponent, Object.assign({}, props)), endLabel && _jsx("span", { children: endLabel }), endIcon, onClear && (_jsx(ClearButton, Object.assign({ type: "button", onClick: onClear, disabled: disabled, tabIndex: -1 }, { children: _jsx(CloseCircleFillIcon, {}) })))] })));
101
101
  }
102
- const InputContainer = styled.div(({ theme, color, inputSize, disabled, fullWidth }) => css `
102
+ const InputContainer = styled("div", {
103
+ shouldForwardProp: (prop) => !["inputSize", "fullWidth"].includes(prop),
104
+ })(({ theme, color, inputSize, disabled, fullWidth }) => css `
103
105
  display: flex;
104
106
  align-items: center;
105
107
  gap: 16px;
@@ -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.div(({ theme, type, preserveIconColor }) => css `
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.70.1",
3
+ "version": "1.70.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,