@team-monolith/cds 1.102.0 → 1.102.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.
- package/dist/components/AlertDialog/AlertDialogTitle.js +1 -3
- package/dist/components/Banner.js +2 -6
- package/dist/components/Button.js +5 -9
- package/dist/components/SquareButton.js +1 -0
- package/dist/icons/custom/colored/ai-helper.svg +4 -0
- package/dist/icons/custom/colored/ai-quiz-color.svg +20 -0
- package/dist/icons/custom/colored/badge-color.svg +4 -0
- package/dist/icons/custom/colored/badge-gold.svg +11 -0
- package/dist/icons/custom/colored/badge-green.svg +11 -0
- package/dist/icons/custom/colored/badge-silver.svg +11 -0
- package/dist/icons/custom/colored/basic-plus.svg +32 -0
- package/dist/icons/custom/colored/basic.svg +3 -0
- package/dist/icons/custom/colored/board-color.svg +5 -0
- package/dist/icons/custom/colored/cast-cloudy-color.svg +6 -0
- package/dist/icons/custom/colored/cast-partly-color.svg +7 -0
- package/dist/icons/custom/colored/cast-rainbow-color.svg +13 -0
- package/dist/icons/custom/colored/cast-sunny-color.svg +4 -0
- package/dist/icons/custom/colored/clap-bronze.svg +8 -0
- package/dist/icons/custom/colored/clap-gold.svg +8 -0
- package/dist/icons/custom/colored/clap-silver.svg +8 -0
- package/dist/icons/custom/colored/class.svg +13 -0
- package/dist/icons/custom/colored/codap-color.svg +13 -0
- package/dist/icons/custom/colored/ebook-color.svg +5 -0
- package/dist/icons/custom/colored/embedded-color.svg +39 -0
- package/dist/icons/custom/colored/emo-clap-color.svg +252 -0
- package/dist/icons/custom/colored/emo-good-color.svg +69 -0
- package/dist/icons/custom/colored/emo-great-color.svg +68 -0
- package/dist/icons/custom/colored/emo-heart-color.svg +239 -0
- package/dist/icons/custom/colored/emo-hundred-color.svg +194 -0
- package/dist/icons/custom/colored/emo-neutral-color.svg +77 -0
- package/dist/icons/custom/colored/emo-stars-color.svg +121 -0
- package/dist/icons/custom/colored/emo-thumbup-color.svg +238 -0
- package/dist/icons/custom/colored/empty.svg +1 -0
- package/dist/icons/custom/colored/entry-color.svg +4 -0
- package/dist/icons/custom/colored/filename-all-color.svg +4 -0
- package/dist/icons/custom/colored/filename-doc-color.svg +5 -0
- package/dist/icons/custom/colored/filename-hwp-color.svg +6 -0
- package/dist/icons/custom/colored/filename-img-color.svg +6 -0
- package/dist/icons/custom/colored/filename-mp4-color.svg +5 -0
- package/dist/icons/custom/colored/filename-pdf-color.svg +12 -0
- package/dist/icons/custom/colored/filename-ppt-color.svg +6 -0
- package/dist/icons/custom/colored/filename-xls-color.svg +5 -0
- package/dist/icons/custom/colored/filename-zip-color.svg +5 -0
- package/dist/icons/custom/colored/google.svg +14 -0
- package/dist/icons/custom/colored/hand-fill.svg +4 -0
- package/dist/icons/custom/colored/judge-color.svg +6 -0
- package/dist/icons/custom/colored/makecode-color.svg +4 -0
- package/dist/icons/custom/colored/master.svg +13 -0
- package/dist/icons/custom/colored/material.svg +6 -0
- package/dist/icons/custom/colored/medal-bronze.svg +9 -0
- package/dist/icons/custom/colored/medal-gold.svg +9 -0
- package/dist/icons/custom/colored/medal-silver.svg +9 -0
- package/dist/icons/custom/colored/pro.svg +5 -0
- package/dist/icons/custom/colored/problem.svg +7 -0
- package/dist/icons/custom/colored/python-color.svg +4 -0
- package/dist/icons/custom/colored/quiz-color.svg +12 -0
- package/dist/icons/custom/colored/resource-color.svg +14 -0
- package/dist/icons/custom/colored/scratch-color.svg +6 -0
- package/dist/icons/custom/colored/type-helper.svg +9 -0
- package/dist/icons/custom/colored/whale.svg +8 -0
- package/dist/icons/custom/colored/worksheet-color.svg +5 -0
- package/dist/icons/custom/default/ai-quiz.svg +8 -0
- package/dist/icons/custom/default/badge.svg +4 -0
- package/dist/icons/custom/default/board.svg +5 -0
- package/dist/icons/custom/default/cast-cloudy.svg +3 -0
- package/dist/icons/custom/default/cast-partly.svg +4 -0
- package/dist/icons/custom/default/cast-rainbow.svg +12 -0
- package/dist/icons/custom/default/cast-sunny.svg +3 -0
- package/dist/icons/custom/default/codap.svg +11 -0
- package/dist/icons/custom/default/ebook.svg +3 -0
- package/dist/icons/custom/default/embedded.svg +5 -0
- package/dist/icons/custom/default/emo-clap.svg +6 -0
- package/dist/icons/custom/default/emo-good.svg +13 -0
- package/dist/icons/custom/default/emo-great.svg +13 -0
- package/dist/icons/custom/default/emo-heart.svg +5 -0
- package/dist/icons/custom/default/emo-hundred.svg +3 -0
- package/dist/icons/custom/default/emo-neutral.svg +15 -0
- package/dist/icons/custom/default/emo-stars.svg +14 -0
- package/dist/icons/custom/default/emo-thumbup.svg +3 -0
- package/dist/icons/custom/default/entry.svg +4 -0
- package/dist/icons/custom/default/fab.svg +10 -0
- package/dist/icons/custom/default/grant-alt.svg +6 -0
- package/dist/icons/custom/default/grant.svg +5 -0
- package/dist/icons/custom/default/hand-line.svg +3 -0
- package/dist/icons/custom/default/judge.svg +3 -0
- package/dist/icons/custom/default/makecode.svg +5 -0
- package/dist/icons/custom/default/pdf.svg +3 -0
- package/dist/icons/custom/default/python.svg +8 -0
- package/dist/icons/custom/default/quiz.svg +4 -0
- package/dist/icons/custom/default/resource.svg +11 -0
- package/dist/icons/custom/default/scratch.svg +3 -0
- package/dist/icons/custom/default/scroll-alt.svg +6 -0
- package/dist/icons/custom/default/scroll-fill.svg +5 -0
- package/dist/icons/custom/default/scroll-line.svg +6 -0
- package/dist/icons/custom/default/symbol.svg +5 -0
- package/dist/icons/custom/default/worksheet.svg +4 -0
- package/dist/patterns/LexicalEditor/hr.svg +3 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +1 -5
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +2 -8
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +1 -3
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +1 -5
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/menu.svg +8 -0
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/plus.svg +3 -0
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.d.ts +1 -1
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +8 -20
- package/package.json +1 -1
|
@@ -19,10 +19,6 @@ export function FormSolution(props) {
|
|
|
19
19
|
`, startIcon: _jsx(TextTypeDropdown, { index: index, control: control, disabled: disabled }), endIcon: _jsxs("div", Object.assign({ css: css `
|
|
20
20
|
display: flex;
|
|
21
21
|
gap: 4px;
|
|
22
|
-
` }, { children: [onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete,
|
|
23
|
-
"aria-label": "삭제",
|
|
24
|
-
} })), disabled && (_jsx(Tooltip, Object.assign({ text: _jsxs("span", { children: ["\uC785\uB825 \uCE78 \uC124\uC815\uC774 '\uAE00\uC790 \uC218\uB300\uB85C'\uC778 \uACBD\uC6B0", _jsx("br", {}), "\uC815\uB2F5\uC744 \uD558\uB098\uB9CC \uB4F1\uB85D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."] }) }, { children: _jsx(SquareButton, { color: "danger", size: "xsmall", icon: _jsx(AlertFillIcon, { color: theme.color.foreground.neutralAlt }), disabled: true, buttonProps: {
|
|
25
|
-
"aria-label": "정답 등록 불가",
|
|
26
|
-
} }) })))] })) }));
|
|
22
|
+
` }, { children: [onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, "aria-label": "\uC0AD\uC81C" })), disabled && (_jsx(Tooltip, Object.assign({ text: _jsxs("span", { children: ["\uC785\uB825 \uCE78 \uC124\uC815\uC774 '\uAE00\uC790 \uC218\uB300\uB85C'\uC778 \uACBD\uC6B0", _jsx("br", {}), "\uC815\uB2F5\uC744 \uD558\uB098\uB9CC \uB4F1\uB85D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."] }) }, { children: _jsx(SquareButton, { color: "danger", size: "xsmall", icon: _jsx(AlertFillIcon, { color: theme.color.foreground.neutralAlt }), disabled: true, "aria-label": "\uC815\uB2F5 \uB4F1\uB85D \uBD88\uAC00" }) })))] })) }));
|
|
27
23
|
} }));
|
|
28
24
|
}
|
|
@@ -76,9 +76,7 @@ export function SelectComponent(props) {
|
|
|
76
76
|
? `${index + 1}번 선택지`
|
|
77
77
|
: selection.show.text, onClick: () => setSettingOpen(true) }, index))) })), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => {
|
|
78
78
|
setSettingOpen(true);
|
|
79
|
-
},
|
|
80
|
-
"aria-label": "선택지 설정",
|
|
81
|
-
} })] })), settingOpen && (_jsx(SettingForm, { selections: selections, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
79
|
+
}, "aria-label": "\uC120\uD0DD\uC9C0 \uC124\uC815" })] })), settingOpen && (_jsx(SettingForm, { selections: selections, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
82
80
|
}
|
|
83
81
|
const Alert = styled.div(({ theme }) => css `
|
|
84
82
|
display: flex;
|
|
@@ -54,15 +54,9 @@ export function FormSelection(props) {
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
` }, { children: [_jsx(SquareButton, { color: "icon", size: "xsmall", icon: value.show.image ? _jsx(ImageEditFillIcon, {}) : _jsx(ImageAddFillIcon, {}), onClick: () => {
|
|
56
56
|
setImageOpen(true);
|
|
57
|
-
},
|
|
58
|
-
"aria-label": value.show.image
|
|
59
|
-
? "이미지 바꾸기"
|
|
60
|
-
: "이미지 삽입하기",
|
|
61
|
-
} }), _jsxs(Answer, { children: ["\uC815\uB2F5", _jsx(Switch, { checked: Boolean(value.isAnswer), size: "small", onChange: () => {
|
|
57
|
+
}, "aria-label": value.show.image ? "이미지 바꾸기" : "이미지 삽입하기" }), _jsxs(Answer, { children: ["\uC815\uB2F5", _jsx(Switch, { checked: Boolean(value.isAnswer), size: "small", onChange: () => {
|
|
62
58
|
onChange(Object.assign(Object.assign({}, value), { isAnswer: !value.isAnswer }));
|
|
63
|
-
} })] }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete,
|
|
64
|
-
"aria-label": "삭제",
|
|
65
|
-
} }))] }))] }));
|
|
59
|
+
} })] }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, "aria-label": "\uC0AD\uC81C" }))] }))] }));
|
|
66
60
|
}
|
|
67
61
|
const Container = styled.div(({ theme }) => css `
|
|
68
62
|
display: flex;
|
|
@@ -8,9 +8,7 @@ export function FormQuestion(props) {
|
|
|
8
8
|
const { control, index, onDelete } = props;
|
|
9
9
|
return (_jsxs(Item, { children: [_jsx(Index, { children: index + 1 }), _jsx(FormInput, { control: control, name: `evaluations.${index}.question.text`, rules: {
|
|
10
10
|
required: "필수 입력 항목입니다.",
|
|
11
|
-
}, size: "small", placeholder: `${index + 1}번 평가 항목`, multiline: true, fullWidth: true }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete,
|
|
12
|
-
"aria-label": "삭제",
|
|
13
|
-
} }))] }));
|
|
11
|
+
}, size: "small", placeholder: `${index + 1}번 평가 항목`, multiline: true, fullWidth: true }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, "aria-label": "\uC0AD\uC81C" }))] }));
|
|
14
12
|
}
|
|
15
13
|
const Item = styled.div(({ theme }) => css `
|
|
16
14
|
display: flex;
|
|
@@ -51,9 +51,7 @@ export function EvaluationComponent(props) {
|
|
|
51
51
|
width: ${EVALUATION_EDIT_WIDTH}px;
|
|
52
52
|
`, data: data, evaluations: evaluations, onClick: () => setSettingOpen((open) => !open) }), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => {
|
|
53
53
|
setSettingOpen((open) => !open);
|
|
54
|
-
},
|
|
55
|
-
"aria-label": "평가 칸 설정",
|
|
56
|
-
} })] })), settingOpen && (_jsx(SettingForm, { css: css `
|
|
54
|
+
}, "aria-label": "\uD3C9\uAC00 \uCE78 \uC124\uC815" })] })), settingOpen && (_jsx(SettingForm, { css: css `
|
|
57
55
|
width: ${EVALUATION_EDIT_WIDTH}px;
|
|
58
56
|
`, iconType: iconType, labels: labels, evaluations: evaluations, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
59
57
|
}
|
|
@@ -58,9 +58,7 @@ export function InputComponent(props) {
|
|
|
58
58
|
` }, { children: [_jsx(VirtualInput, Object.assign({ onClick: () => setSettingOpen((open) => !open), css: multiline &&
|
|
59
59
|
css `
|
|
60
60
|
height: ${TEXTAREA_HEIGHT + 2 * INPUT_VERTICAL_PADDING}px;
|
|
61
|
-
` }, { children: multiline ? "서술형 입력 칸" : "단답형 입력 칸" })), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => setSettingOpen((open) => !open),
|
|
62
|
-
"aria-label": "입력 칸 설정",
|
|
63
|
-
} })] })), settingOpen && (_jsx(SettingForm, { multiline: multiline, placeholder: placeholder, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
61
|
+
` }, { children: multiline ? "서술형 입력 칸" : "단답형 입력 칸" })), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => setSettingOpen((open) => !open), "aria-label": "\uC785\uB825 \uCE78 \uC124\uC815" })] })), settingOpen && (_jsx(SettingForm, { multiline: multiline, placeholder: placeholder, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
64
62
|
}
|
|
65
63
|
const VirtualInput = styled.div(({ theme }) => css `
|
|
66
64
|
box-sizing: border-box;
|
package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js
CHANGED
|
@@ -64,9 +64,7 @@ export function SelectComponent(props) {
|
|
|
64
64
|
? `${index + 1}번 선택지`
|
|
65
65
|
: selection.show.text, onClick: () => setSettingOpen((open) => !open) }, index))) })), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => {
|
|
66
66
|
setSettingOpen((open) => !open);
|
|
67
|
-
},
|
|
68
|
-
"aria-label": "선택지 설정",
|
|
69
|
-
} })] })), settingOpen && (_jsx(SettingForm, { data: {
|
|
67
|
+
}, "aria-label": "\uC120\uD0DD\uC9C0 \uC124\uC815" })] })), settingOpen && (_jsx(SettingForm, { data: {
|
|
70
68
|
selections,
|
|
71
69
|
allowMultipleAnswers,
|
|
72
70
|
}, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
|
|
@@ -53,11 +53,7 @@ export function FormSelection(props) {
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
` }, { children: [_jsx(SquareButton, { color: "icon", size: "xsmall", icon: value.image ? _jsx(ImageEditFillIcon, {}) : _jsx(ImageAddFillIcon, {}), onClick: () => {
|
|
55
55
|
setImageOpen(true);
|
|
56
|
-
},
|
|
57
|
-
"aria-label": value.image ? "이미지 바꾸기" : "이미지 삽입하기",
|
|
58
|
-
} }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, buttonProps: {
|
|
59
|
-
"aria-label": "삭제",
|
|
60
|
-
} }))] }))] }));
|
|
56
|
+
}, "aria-label": value.image ? "이미지 바꾸기" : "이미지 삽입하기" }), onDelete && (_jsx(SquareButton, { color: "white", size: "xsmall", icon: _jsx(DeleteBinLineIcon, {}), onClick: onDelete, "aria-label": "\uC0AD\uC81C" }))] }))] }));
|
|
61
57
|
}
|
|
62
58
|
const Container = styled.div(({ theme }) => css `
|
|
63
59
|
display: flex;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path d="M9.41002 7.29999H9.40002" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
3
|
+
<path d="M14.6 7.29999H14.59" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
4
|
+
<path d="M9.31004 12H9.30005" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
5
|
+
<path d="M14.6 12H14.59" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
6
|
+
<path d="M9.41002 16.7H9.40002" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
7
|
+
<path d="M14.6 16.7H14.59" stroke="#363636" stroke-width="2.6" stroke-linecap="round"/>
|
|
8
|
+
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SquareButtonProps } from "../..";
|
|
3
|
-
export interface SegmentedControlSquareButtonProps<T> extends Omit<SquareButtonProps, "color" | "size" | "icon"> {
|
|
3
|
+
export interface SegmentedControlSquareButtonProps<T> extends Omit<SquareButtonProps, "color" | "size" | "icon" | "value"> {
|
|
4
4
|
value: T;
|
|
5
5
|
icon: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
6
6
|
}
|
|
@@ -11,7 +11,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
13
13
|
/** @jsxImportSource @emotion/react */
|
|
14
|
-
import styled from "@emotion/styled";
|
|
15
14
|
import { css } from "@emotion/react";
|
|
16
15
|
import React, { useContext } from "react";
|
|
17
16
|
import { shadows, SquareButton } from "../..";
|
|
@@ -20,16 +19,16 @@ import { SegmentedControlGroupPropsContext, } from "./SegmentedControlGroupProps
|
|
|
20
19
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?node-id=181%3A89883)
|
|
21
20
|
*/
|
|
22
21
|
export const SegmentedControlSquareButton = React.forwardRef(function SegmentedControlSquareButton(props, ref) {
|
|
23
|
-
const { onClick, icon,
|
|
22
|
+
const { onClick, icon, value } = props, other = __rest(props, ["onClick", "icon", "value"]);
|
|
24
23
|
const context = useContext(SegmentedControlGroupPropsContext);
|
|
25
24
|
const handleClick = (e) => {
|
|
26
25
|
var _a;
|
|
27
|
-
(_a = context.onClick) === null || _a === void 0 ? void 0 : _a.call(context,
|
|
26
|
+
(_a = context.onClick) === null || _a === void 0 ? void 0 : _a.call(context, value);
|
|
28
27
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
29
28
|
};
|
|
30
29
|
const isActive = context.multiSelect
|
|
31
|
-
? context.value.includes(
|
|
32
|
-
: context.value ===
|
|
30
|
+
? context.value.includes(value)
|
|
31
|
+
: context.value === value;
|
|
33
32
|
// 화살표 키(좌, 우)로 인접 버튼으로 포커스 이동하는 로직
|
|
34
33
|
const handleKeyDown = (e) => {
|
|
35
34
|
var _a, _b, _c, _d;
|
|
@@ -48,19 +47,8 @@ export const SegmentedControlSquareButton = React.forwardRef(function SegmentedC
|
|
|
48
47
|
siblingButton.focus();
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
|
-
return (_jsx(
|
|
50
|
+
return (_jsx(SquareButton, Object.assign({}, other, { css: isActive &&
|
|
51
|
+
css `
|
|
52
|
+
box-shadow: ${shadows.shadow04};
|
|
53
|
+
`, ref: ref, icon: typeof icon === "function" ? icon(isActive) : icon, color: isActive ? "white" : "icon", size: context.size, onClick: handleClick, onKeyDown: handleKeyDown, disabled: context.disabled || props.disabled, "aria-selected": isActive, role: "tab", tabIndex: isActive ? 0 : -1 })));
|
|
52
54
|
});
|
|
53
|
-
const StyledSquareButton = styled(SquareButton, {
|
|
54
|
-
shouldForwardProp: (prop) => prop !== "isActive",
|
|
55
|
-
})(({ isActive }) => css `
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
flex-grow: 1;
|
|
59
|
-
${isActive &&
|
|
60
|
-
`
|
|
61
|
-
box-shadow: ${shadows.shadow04};
|
|
62
|
-
span {
|
|
63
|
-
font-weight: 700;
|
|
64
|
-
}
|
|
65
|
-
`}
|
|
66
|
-
`);
|