@team-monolith/cds 1.99.15 → 1.99.16
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.
- package/dist/components/Switch.d.ts +1 -1
- package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export interface SwitchProps {
|
|
|
12
12
|
/** 스위치 상태 변경 시 호출될 콜백 함수 */
|
|
13
13
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
14
14
|
/** HTML input 태그에 전달될 props */
|
|
15
|
-
inputProps
|
|
15
|
+
inputProps: InputHTMLAttributes<HTMLInputElement>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=36-1577&t=9sDLb4XIOdmF2VMc-0)
|
|
@@ -54,9 +54,7 @@ const DropdownItem = React.forwardRef(function DropdownItem(props, ref) {
|
|
|
54
54
|
? {
|
|
55
55
|
type: "button",
|
|
56
56
|
disabled: disabled,
|
|
57
|
-
css:
|
|
58
|
-
${RESET_BUTTON}
|
|
59
|
-
`,
|
|
57
|
+
css: RESET_BUTTON,
|
|
60
58
|
}
|
|
61
59
|
: {}), { children: _jsxs(Item, Object.assign({ ref: itemRef, disabled: disabled, selected: isSubMenuShowed || Boolean(active) }, { children: [_jsxs(LeftWrapper, { children: [checkbox && (_jsx(StyledCheckboxInput, Object.assign({}, checkboxProps, { disabled: disabled, onClick: (e) => {
|
|
62
60
|
e.stopPropagation();
|
|
@@ -40,7 +40,7 @@ function LazyImage({ altText, className, imageRef, src, width, height, maxWidth:
|
|
|
40
40
|
// fixme: maxWidth를 수정할 수 있게 되면 원복합니다.
|
|
41
41
|
maxWidth: "100%",
|
|
42
42
|
width,
|
|
43
|
-
}, "aria-label": title, onClick: onClick, onError: onError, draggable: "false" }, (onClick ? {
|
|
43
|
+
}, title: title, "aria-label": title, onClick: onClick, onError: onError, draggable: "false" }, (onClick ? {
|
|
44
44
|
role: "button",
|
|
45
45
|
tabIndex: 0,
|
|
46
46
|
onKeyDown: (event) => {
|
|
@@ -60,7 +60,7 @@ export function FormSelection(props) {
|
|
|
60
60
|
: "이미지 삽입하기",
|
|
61
61
|
} }), _jsxs(Answer, Object.assign({ onClick: () => {
|
|
62
62
|
onChange(Object.assign(Object.assign({}, value), { isAnswer: !value.isAnswer }));
|
|
63
|
-
} }, { children: ["\uC815\uB2F5", _jsx(Switch, { checked: Boolean(value.isAnswer), size: "small" })] })), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, buttonProps: {
|
|
63
|
+
} }, { children: ["\uC815\uB2F5", _jsx(Switch, { checked: Boolean(value.isAnswer), size: "small", inputProps: { "aria-label": "정답" } })] })), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, buttonProps: {
|
|
64
64
|
"aria-label": "삭제",
|
|
65
65
|
} }))] }))] }));
|
|
66
66
|
}
|