@team-monolith/cds 1.119.3 → 1.119.4
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/@types/emotion.d.ts +160 -160
- package/README.md +37 -37
- package/dist/CdsProvider.js +4 -4
- package/dist/components/AlertDialog/AlertDialog.js +54 -54
- package/dist/components/AlertDialog/AlertDialogActions.js +7 -7
- package/dist/components/AlertDialog/AlertDialogContent.js +8 -8
- package/dist/components/AlertDialog/AlertDialogTitle.js +34 -34
- package/dist/components/AnimatedButton.js +32 -32
- package/dist/components/Banner.js +51 -51
- package/dist/components/Book/Book.js +174 -174
- package/dist/components/Button.js +179 -179
- package/dist/components/CheckboxInput.js +148 -148
- package/dist/components/FileTypeAlertDialog.js +4 -4
- package/dist/components/Input.js +53 -53
- package/dist/components/InputBase.js +72 -72
- package/dist/components/Modal.js +4 -4
- package/dist/components/OverflowTooltip.js +4 -4
- package/dist/components/Pagination.js +56 -56
- package/dist/components/PinInput.js +64 -64
- package/dist/components/Popover.js +27 -27
- package/dist/components/RadioInput.js +73 -73
- package/dist/components/SquareButton.js +109 -109
- package/dist/components/Switch.js +69 -69
- package/dist/components/SwitchButton.js +107 -107
- package/dist/components/Tag.js +72 -72
- package/dist/components/Tooltip.js +19 -19
- package/dist/foundation/breakpoints.js +16 -16
- package/dist/icons/custom/colored/ai-helper.svg +4 -4
- package/dist/icons/custom/colored/ai-quiz-color.svg +20 -20
- package/dist/icons/custom/colored/badge-color.svg +4 -4
- package/dist/icons/custom/colored/badge-gold.svg +11 -11
- package/dist/icons/custom/colored/badge-green.svg +11 -11
- package/dist/icons/custom/colored/badge-silver.svg +11 -11
- package/dist/icons/custom/colored/basic-plus.svg +31 -31
- package/dist/icons/custom/colored/basic.svg +3 -3
- package/dist/icons/custom/colored/board-color.svg +5 -5
- package/dist/icons/custom/colored/cast-cloudy-color.svg +6 -6
- package/dist/icons/custom/colored/cast-partly-color.svg +7 -7
- package/dist/icons/custom/colored/cast-rainbow-color.svg +13 -13
- package/dist/icons/custom/colored/cast-sunny-color.svg +4 -4
- package/dist/icons/custom/colored/clap-bronze.svg +8 -8
- package/dist/icons/custom/colored/clap-gold.svg +8 -8
- package/dist/icons/custom/colored/clap-silver.svg +8 -8
- package/dist/icons/custom/colored/class.svg +13 -13
- package/dist/icons/custom/colored/codap-color.svg +13 -13
- package/dist/icons/custom/colored/ebook-color.svg +5 -5
- package/dist/icons/custom/colored/embedded-color.svg +38 -38
- package/dist/icons/custom/colored/emo-clap-color.svg +252 -252
- package/dist/icons/custom/colored/emo-good-color.svg +68 -68
- package/dist/icons/custom/colored/emo-great-color.svg +67 -67
- package/dist/icons/custom/colored/emo-heart-color.svg +239 -239
- package/dist/icons/custom/colored/emo-hundred-color.svg +194 -194
- package/dist/icons/custom/colored/emo-neutral-color.svg +76 -76
- package/dist/icons/custom/colored/emo-stars-color.svg +121 -121
- package/dist/icons/custom/colored/emo-thumbup-color.svg +238 -238
- package/dist/icons/custom/colored/empty.svg +1 -1
- package/dist/icons/custom/colored/entry-color.svg +4 -4
- package/dist/icons/custom/colored/filename-all-color.svg +4 -4
- package/dist/icons/custom/colored/filename-doc-color.svg +5 -5
- package/dist/icons/custom/colored/filename-hwp-color.svg +6 -6
- package/dist/icons/custom/colored/filename-img-color.svg +6 -6
- package/dist/icons/custom/colored/filename-mp4-color.svg +5 -5
- package/dist/icons/custom/colored/filename-pdf-color.svg +12 -12
- package/dist/icons/custom/colored/filename-ppt-color.svg +6 -6
- package/dist/icons/custom/colored/filename-xls-color.svg +5 -5
- package/dist/icons/custom/colored/filename-zip-color.svg +5 -5
- package/dist/icons/custom/colored/google.svg +13 -13
- package/dist/icons/custom/colored/hand-fill.svg +4 -4
- package/dist/icons/custom/colored/judge-color.svg +6 -6
- package/dist/icons/custom/colored/makecode-color.svg +4 -4
- package/dist/icons/custom/colored/master.svg +12 -12
- package/dist/icons/custom/colored/material.svg +6 -6
- package/dist/icons/custom/colored/medal-bronze.svg +9 -9
- package/dist/icons/custom/colored/medal-gold.svg +9 -9
- package/dist/icons/custom/colored/medal-silver.svg +9 -9
- package/dist/icons/custom/colored/pro.svg +4 -4
- package/dist/icons/custom/colored/problem.svg +7 -7
- package/dist/icons/custom/colored/python-color.svg +4 -4
- package/dist/icons/custom/colored/quiz-color.svg +12 -12
- package/dist/icons/custom/colored/resource-color.svg +13 -13
- package/dist/icons/custom/colored/scratch-color.svg +6 -6
- package/dist/icons/custom/colored/type-helper.svg +9 -9
- package/dist/icons/custom/colored/whale.svg +7 -7
- package/dist/icons/custom/colored/worksheet-color.svg +5 -5
- package/dist/icons/custom/default/ai-quiz.svg +8 -8
- package/dist/icons/custom/default/badge.svg +4 -4
- package/dist/icons/custom/default/board.svg +5 -5
- package/dist/icons/custom/default/cast-cloudy.svg +3 -3
- package/dist/icons/custom/default/cast-partly.svg +4 -4
- package/dist/icons/custom/default/cast-rainbow.svg +12 -12
- package/dist/icons/custom/default/cast-sunny.svg +3 -3
- package/dist/icons/custom/default/codap.svg +11 -11
- package/dist/icons/custom/default/ebook.svg +3 -3
- package/dist/icons/custom/default/embedded.svg +4 -4
- package/dist/icons/custom/default/emo-clap.svg +6 -6
- package/dist/icons/custom/default/emo-good.svg +12 -12
- package/dist/icons/custom/default/emo-great.svg +12 -12
- package/dist/icons/custom/default/emo-heart.svg +5 -5
- package/dist/icons/custom/default/emo-hundred.svg +3 -3
- package/dist/icons/custom/default/emo-neutral.svg +14 -14
- package/dist/icons/custom/default/emo-stars.svg +14 -14
- package/dist/icons/custom/default/emo-thumbup.svg +3 -3
- package/dist/icons/custom/default/entry.svg +4 -4
- package/dist/icons/custom/default/fab.svg +10 -10
- package/dist/icons/custom/default/grant-alt.svg +5 -5
- package/dist/icons/custom/default/grant.svg +4 -4
- package/dist/icons/custom/default/hand-line.svg +3 -3
- package/dist/icons/custom/default/judge.svg +3 -3
- package/dist/icons/custom/default/makecode.svg +5 -5
- package/dist/icons/custom/default/pdf.svg +3 -3
- package/dist/icons/custom/default/python.svg +7 -7
- package/dist/icons/custom/default/quiz.svg +4 -4
- package/dist/icons/custom/default/resource.svg +11 -11
- package/dist/icons/custom/default/scratch.svg +3 -3
- package/dist/icons/custom/default/scroll-alt.svg +5 -5
- package/dist/icons/custom/default/scroll-fill.svg +4 -4
- package/dist/icons/custom/default/scroll-line.svg +5 -5
- package/dist/icons/custom/default/symbol.svg +4 -4
- package/dist/icons/custom/default/worksheet.svg +4 -4
- package/dist/icons/custom/svgrColoredTemplate.js +26 -26
- package/dist/icons/custom/svgrDefaultTemplate.js +26 -26
- package/dist/patterns/Accordion.js +20 -20
- package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +60 -60
- package/dist/patterns/Dropdown/DropdownMenu/DropdownMenu.js +27 -27
- package/dist/patterns/Dropdown/DropdownMenu/style.js +19 -19
- package/dist/patterns/LexicalEditor/Plugins.js +38 -37
- package/dist/patterns/LexicalEditor/components/FileSelectInput.js +23 -23
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +4 -4
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +15 -15
- package/dist/patterns/LexicalEditor/components/InsertVideoDialog/InsertVideoDialog.js +17 -17
- package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -2
- package/dist/patterns/LexicalEditor/hr.svg +3 -3
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -44
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +25 -25
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +8 -8
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.js +60 -60
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +19 -19
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +49 -49
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +73 -73
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +5 -5
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxComponent.js +69 -69
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxEdit.js +3 -3
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +54 -54
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +61 -61
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/Evaluation.js +75 -75
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +17 -17
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +52 -52
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +25 -25
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +53 -53
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxComponent.js +54 -54
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +5 -5
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +21 -21
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +42 -42
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +71 -71
- package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +6 -6
- package/dist/patterns/LexicalEditor/nodes/index.d.ts +3 -0
- package/dist/patterns/LexicalEditor/nodes/index.js +3 -0
- package/dist/patterns/LexicalEditor/nodes/nodes.d.ts +4 -2
- package/dist/patterns/LexicalEditor/nodes/nodes.js +6 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleContainerNode.d.ts +32 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleContainerNode.js +131 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleContentNode.d.ts +23 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleContentNode.js +88 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleTitleNode.d.ts +24 -0
- package/dist/patterns/LexicalEditor/nodes/toggleNodes/ToggleTitleNode.js +105 -0
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.js +51 -51
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +11 -11
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/menu.svg +7 -7
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/plus.svg +2 -2
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +76 -12
- package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuItem.js +32 -32
- package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuList.js +32 -32
- package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +38 -17
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +49 -49
- package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.js +36 -36
- package/dist/patterns/LexicalEditor/plugins/ParagraphPlaceholderPlugin/index.js +10 -1
- package/dist/patterns/LexicalEditor/plugins/TogglePlugin/index.d.ts +9 -0
- package/dist/patterns/LexicalEditor/plugins/TogglePlugin/index.js +198 -0
- package/dist/patterns/LexicalEditor/theme.d.ts +6 -0
- package/dist/patterns/LexicalEditor/theme.js +281 -243
- package/dist/patterns/LexicalEditor/utils/toggleUtils.d.ts +9 -0
- package/dist/patterns/LexicalEditor/utils/toggleUtils.js +18 -0
- package/dist/patterns/SegmentedControl/SegmentedControlButton.js +10 -10
- package/dist/patterns/SegmentedControl/SegmentedControlGroup.js +8 -8
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +2 -2
- package/dist/patterns/Tabs.js +43 -43
- package/dist/patterns/ToggleButtonGroup/ToggleButton.js +40 -40
- package/dist/patterns/ToggleButtonGroup/ToggleButtonGroup.js +11 -11
- package/dist/utils/hover.js +12 -12
- package/dist/utils/reset.js +19 -19
- package/dist/utils/visuallyHidden.js +10 -10
- package/package.json +109 -109
package/@types/emotion.d.ts
CHANGED
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
import "@emotion/react";
|
|
2
|
-
|
|
3
|
-
interface CodleFontFamilies {
|
|
4
|
-
ui: string;
|
|
5
|
-
title: string;
|
|
6
|
-
code: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface CodleColors {
|
|
10
|
-
background: {
|
|
11
|
-
neutralBase: string;
|
|
12
|
-
neutralBaseActive: string;
|
|
13
|
-
neutralBaseDisabled: string;
|
|
14
|
-
neutralAlt: string;
|
|
15
|
-
neutralAltActive: string;
|
|
16
|
-
neutralAltDisabled: string;
|
|
17
|
-
primary: string;
|
|
18
|
-
primaryActive: string;
|
|
19
|
-
primaryDisabled: string;
|
|
20
|
-
secondary: string;
|
|
21
|
-
secondaryActive: string;
|
|
22
|
-
secondaryDisabled: string;
|
|
23
|
-
danger: string;
|
|
24
|
-
dangerActive: string;
|
|
25
|
-
dangerDisabled: string;
|
|
26
|
-
success: string;
|
|
27
|
-
successActive: string;
|
|
28
|
-
successDisabled: string;
|
|
29
|
-
info: string;
|
|
30
|
-
infoActive: string;
|
|
31
|
-
infoDisabled: string;
|
|
32
|
-
warning: string;
|
|
33
|
-
warningActive: string;
|
|
34
|
-
warningDisabled: string;
|
|
35
|
-
inverse: string;
|
|
36
|
-
inverseActive: string;
|
|
37
|
-
inverseDisabled: string;
|
|
38
|
-
};
|
|
39
|
-
foreground: {
|
|
40
|
-
neutralBase: string;
|
|
41
|
-
neutralBaseActive: string;
|
|
42
|
-
neutralBaseDisabled: string;
|
|
43
|
-
neutralAlt: string;
|
|
44
|
-
neutralAltActive: string;
|
|
45
|
-
neutralAltDisabled: string;
|
|
46
|
-
primary: string;
|
|
47
|
-
primaryActive: string;
|
|
48
|
-
primaryDisabled: string;
|
|
49
|
-
secondary: string;
|
|
50
|
-
secondaryActive: string;
|
|
51
|
-
secondaryDisabled: string;
|
|
52
|
-
danger: string;
|
|
53
|
-
dangerActive: string;
|
|
54
|
-
dangerDisabled: string;
|
|
55
|
-
success: string;
|
|
56
|
-
successActive: string;
|
|
57
|
-
successDisabled: string;
|
|
58
|
-
info: string;
|
|
59
|
-
infoActive: string;
|
|
60
|
-
infoDisabled: string;
|
|
61
|
-
warning: string;
|
|
62
|
-
warningActive: string;
|
|
63
|
-
warningDisabled: string;
|
|
64
|
-
};
|
|
65
|
-
container: {
|
|
66
|
-
blueContainer: string;
|
|
67
|
-
blueOnContainer: string;
|
|
68
|
-
orangeContainer: string;
|
|
69
|
-
orangeOnContainer: string;
|
|
70
|
-
redContainer: string;
|
|
71
|
-
redOnContainer: string;
|
|
72
|
-
greenContainer: string;
|
|
73
|
-
greenOnContainer: string;
|
|
74
|
-
tealContainer: string;
|
|
75
|
-
tealOnContainer: string;
|
|
76
|
-
yellowContainer: string;
|
|
77
|
-
yellowOnContainer: string;
|
|
78
|
-
obsidianContainer: string;
|
|
79
|
-
obsidianOnContainer: string;
|
|
80
|
-
marbleContainer: string;
|
|
81
|
-
marbleOnContainer: string;
|
|
82
|
-
};
|
|
83
|
-
brand: {
|
|
84
|
-
brandOriginal: string;
|
|
85
|
-
brandAlt: string;
|
|
86
|
-
brandAccent: string;
|
|
87
|
-
brandFaded: string;
|
|
88
|
-
pdf: string;
|
|
89
|
-
pdfAlt: string;
|
|
90
|
-
quiz: string;
|
|
91
|
-
quizAlt: string;
|
|
92
|
-
python: string;
|
|
93
|
-
pythonAlt: string;
|
|
94
|
-
embedded: string;
|
|
95
|
-
embeddedAlt: string;
|
|
96
|
-
board: string;
|
|
97
|
-
boardAlt: string;
|
|
98
|
-
scratch: string;
|
|
99
|
-
scratchAlt: string;
|
|
100
|
-
entry: string;
|
|
101
|
-
entryAlt: string;
|
|
102
|
-
video: string;
|
|
103
|
-
videoAlt: string;
|
|
104
|
-
worksheet: string;
|
|
105
|
-
worksheetAlt: string;
|
|
106
|
-
ebook: string;
|
|
107
|
-
ebookAlt: string;
|
|
108
|
-
makecode: string;
|
|
109
|
-
makecodeAlt: string;
|
|
110
|
-
codap: string;
|
|
111
|
-
codapAlt: string;
|
|
112
|
-
aiQuiz: string;
|
|
113
|
-
aiQuizAlt: string;
|
|
114
|
-
|
|
115
|
-
decorativeRed: string;
|
|
116
|
-
decorativePink: string;
|
|
117
|
-
decorativeAmber: string;
|
|
118
|
-
decorativeCoral: string;
|
|
119
|
-
decorativeGrass: string;
|
|
120
|
-
decorativeGreen: string;
|
|
121
|
-
decorativeBlue: string;
|
|
122
|
-
decorativeIndigo: string;
|
|
123
|
-
decorativePurple: string;
|
|
124
|
-
decorativeBrown: string;
|
|
125
|
-
decorativeCopper: string;
|
|
126
|
-
decorativeGold: string;
|
|
127
|
-
decorativeSilver: string;
|
|
128
|
-
decorativeGray: string;
|
|
129
|
-
decorativeBlack: string;
|
|
130
|
-
decorativeRedContainer: string;
|
|
131
|
-
decorativeRedOnContainer: string;
|
|
132
|
-
decorativeIndigoContainer: string;
|
|
133
|
-
decorativeIndigoOnContainer: string;
|
|
134
|
-
decorativeGreenContainer: string;
|
|
135
|
-
decorativeGreenOnContainer: string;
|
|
136
|
-
decorativePurpleContainer: string;
|
|
137
|
-
decorativePurpleOnContainer: string;
|
|
138
|
-
decorativeGoldContainer: string;
|
|
139
|
-
decorativeGoldOnContainer: string;
|
|
140
|
-
decorativeGrayContainer: string;
|
|
141
|
-
decorativeGrayOnContainer: string;
|
|
142
|
-
decorativeBlackContainer: string;
|
|
143
|
-
decorativeBlackOnContainer: string;
|
|
144
|
-
};
|
|
145
|
-
blanket: {
|
|
146
|
-
neutral: string;
|
|
147
|
-
neutralLight: string;
|
|
148
|
-
neutralHeavy: string;
|
|
149
|
-
inverse: string;
|
|
150
|
-
inverseLight: string;
|
|
151
|
-
inverseHeavy: string;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
declare module "@emotion/react" {
|
|
156
|
-
export interface Theme {
|
|
157
|
-
color: CodleColors;
|
|
158
|
-
fontFamily: CodleFontFamilies;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
1
|
+
import "@emotion/react";
|
|
2
|
+
|
|
3
|
+
interface CodleFontFamilies {
|
|
4
|
+
ui: string;
|
|
5
|
+
title: string;
|
|
6
|
+
code: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface CodleColors {
|
|
10
|
+
background: {
|
|
11
|
+
neutralBase: string;
|
|
12
|
+
neutralBaseActive: string;
|
|
13
|
+
neutralBaseDisabled: string;
|
|
14
|
+
neutralAlt: string;
|
|
15
|
+
neutralAltActive: string;
|
|
16
|
+
neutralAltDisabled: string;
|
|
17
|
+
primary: string;
|
|
18
|
+
primaryActive: string;
|
|
19
|
+
primaryDisabled: string;
|
|
20
|
+
secondary: string;
|
|
21
|
+
secondaryActive: string;
|
|
22
|
+
secondaryDisabled: string;
|
|
23
|
+
danger: string;
|
|
24
|
+
dangerActive: string;
|
|
25
|
+
dangerDisabled: string;
|
|
26
|
+
success: string;
|
|
27
|
+
successActive: string;
|
|
28
|
+
successDisabled: string;
|
|
29
|
+
info: string;
|
|
30
|
+
infoActive: string;
|
|
31
|
+
infoDisabled: string;
|
|
32
|
+
warning: string;
|
|
33
|
+
warningActive: string;
|
|
34
|
+
warningDisabled: string;
|
|
35
|
+
inverse: string;
|
|
36
|
+
inverseActive: string;
|
|
37
|
+
inverseDisabled: string;
|
|
38
|
+
};
|
|
39
|
+
foreground: {
|
|
40
|
+
neutralBase: string;
|
|
41
|
+
neutralBaseActive: string;
|
|
42
|
+
neutralBaseDisabled: string;
|
|
43
|
+
neutralAlt: string;
|
|
44
|
+
neutralAltActive: string;
|
|
45
|
+
neutralAltDisabled: string;
|
|
46
|
+
primary: string;
|
|
47
|
+
primaryActive: string;
|
|
48
|
+
primaryDisabled: string;
|
|
49
|
+
secondary: string;
|
|
50
|
+
secondaryActive: string;
|
|
51
|
+
secondaryDisabled: string;
|
|
52
|
+
danger: string;
|
|
53
|
+
dangerActive: string;
|
|
54
|
+
dangerDisabled: string;
|
|
55
|
+
success: string;
|
|
56
|
+
successActive: string;
|
|
57
|
+
successDisabled: string;
|
|
58
|
+
info: string;
|
|
59
|
+
infoActive: string;
|
|
60
|
+
infoDisabled: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
warningActive: string;
|
|
63
|
+
warningDisabled: string;
|
|
64
|
+
};
|
|
65
|
+
container: {
|
|
66
|
+
blueContainer: string;
|
|
67
|
+
blueOnContainer: string;
|
|
68
|
+
orangeContainer: string;
|
|
69
|
+
orangeOnContainer: string;
|
|
70
|
+
redContainer: string;
|
|
71
|
+
redOnContainer: string;
|
|
72
|
+
greenContainer: string;
|
|
73
|
+
greenOnContainer: string;
|
|
74
|
+
tealContainer: string;
|
|
75
|
+
tealOnContainer: string;
|
|
76
|
+
yellowContainer: string;
|
|
77
|
+
yellowOnContainer: string;
|
|
78
|
+
obsidianContainer: string;
|
|
79
|
+
obsidianOnContainer: string;
|
|
80
|
+
marbleContainer: string;
|
|
81
|
+
marbleOnContainer: string;
|
|
82
|
+
};
|
|
83
|
+
brand: {
|
|
84
|
+
brandOriginal: string;
|
|
85
|
+
brandAlt: string;
|
|
86
|
+
brandAccent: string;
|
|
87
|
+
brandFaded: string;
|
|
88
|
+
pdf: string;
|
|
89
|
+
pdfAlt: string;
|
|
90
|
+
quiz: string;
|
|
91
|
+
quizAlt: string;
|
|
92
|
+
python: string;
|
|
93
|
+
pythonAlt: string;
|
|
94
|
+
embedded: string;
|
|
95
|
+
embeddedAlt: string;
|
|
96
|
+
board: string;
|
|
97
|
+
boardAlt: string;
|
|
98
|
+
scratch: string;
|
|
99
|
+
scratchAlt: string;
|
|
100
|
+
entry: string;
|
|
101
|
+
entryAlt: string;
|
|
102
|
+
video: string;
|
|
103
|
+
videoAlt: string;
|
|
104
|
+
worksheet: string;
|
|
105
|
+
worksheetAlt: string;
|
|
106
|
+
ebook: string;
|
|
107
|
+
ebookAlt: string;
|
|
108
|
+
makecode: string;
|
|
109
|
+
makecodeAlt: string;
|
|
110
|
+
codap: string;
|
|
111
|
+
codapAlt: string;
|
|
112
|
+
aiQuiz: string;
|
|
113
|
+
aiQuizAlt: string;
|
|
114
|
+
|
|
115
|
+
decorativeRed: string;
|
|
116
|
+
decorativePink: string;
|
|
117
|
+
decorativeAmber: string;
|
|
118
|
+
decorativeCoral: string;
|
|
119
|
+
decorativeGrass: string;
|
|
120
|
+
decorativeGreen: string;
|
|
121
|
+
decorativeBlue: string;
|
|
122
|
+
decorativeIndigo: string;
|
|
123
|
+
decorativePurple: string;
|
|
124
|
+
decorativeBrown: string;
|
|
125
|
+
decorativeCopper: string;
|
|
126
|
+
decorativeGold: string;
|
|
127
|
+
decorativeSilver: string;
|
|
128
|
+
decorativeGray: string;
|
|
129
|
+
decorativeBlack: string;
|
|
130
|
+
decorativeRedContainer: string;
|
|
131
|
+
decorativeRedOnContainer: string;
|
|
132
|
+
decorativeIndigoContainer: string;
|
|
133
|
+
decorativeIndigoOnContainer: string;
|
|
134
|
+
decorativeGreenContainer: string;
|
|
135
|
+
decorativeGreenOnContainer: string;
|
|
136
|
+
decorativePurpleContainer: string;
|
|
137
|
+
decorativePurpleOnContainer: string;
|
|
138
|
+
decorativeGoldContainer: string;
|
|
139
|
+
decorativeGoldOnContainer: string;
|
|
140
|
+
decorativeGrayContainer: string;
|
|
141
|
+
decorativeGrayOnContainer: string;
|
|
142
|
+
decorativeBlackContainer: string;
|
|
143
|
+
decorativeBlackOnContainer: string;
|
|
144
|
+
};
|
|
145
|
+
blanket: {
|
|
146
|
+
neutral: string;
|
|
147
|
+
neutralLight: string;
|
|
148
|
+
neutralHeavy: string;
|
|
149
|
+
inverse: string;
|
|
150
|
+
inverseLight: string;
|
|
151
|
+
inverseHeavy: string;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare module "@emotion/react" {
|
|
156
|
+
export interface Theme {
|
|
157
|
+
color: CodleColors;
|
|
158
|
+
fontFamily: CodleFontFamilies;
|
|
159
|
+
}
|
|
160
|
+
}
|
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# Codle Design System
|
|
2
|
-
|
|
3
|
-
코들 디자인 시스템을 구현합니다.
|
|
4
|
-
|
|
5
|
-
### src/cds/components
|
|
6
|
-
|
|
7
|
-
컴포넌트를 구현합니다.
|
|
8
|
-
컴포넌트는 반드시 `className`과 `component` 인자를 가집니다.
|
|
9
|
-
컴포넌트는 모두 스토리북에 등록해야 합니다.
|
|
10
|
-
|
|
11
|
-
### src/cds/foundation
|
|
12
|
-
|
|
13
|
-
색상, 그림자 등을 제공합니다.
|
|
14
|
-
|
|
15
|
-
### src/cds/icons
|
|
16
|
-
|
|
17
|
-
아이콘을 제공합니다.
|
|
18
|
-
|
|
19
|
-
아이콘은 [피그마](<[https://www.figma.com/file/wefLB6cN0oM2VZjwYmBA6B/Codle-PD-Kit---Foundation?type=design&node-id=1-23307&t=ASkFT82aJsgxrxvr-0](https://www.figma.com/design/UD08wln8CwDoCMGFBIGTiZ/CDS-24?t=szRkpuQ7CYUzU9vm-0)>)에 정의된대로 24px X 24px 크기의 svg로 정의됩니다. 색상이나 크기를 변경하기 위해 Styled Component를 활용할 수 있으므로 `className` 인자를 받아야합니다.
|
|
20
|
-
|
|
21
|
-
아이콘은 컴파일 과정에서, remixicon 라이브러리의 svg 파일을 읽어와서 string 형태와 React JSX 형태로 export 되는 코드가 `src/cds/icons` 폴더 안에 자동 생성됩니다.
|
|
22
|
-
생성되는 규칙은 다음과 같습니다.
|
|
23
|
-
|
|
24
|
-
- 네이밍은 remixicon 라이브러리의 svg 파일 이름에서 다음과 같이 변환됩니다.
|
|
25
|
-
- string 형태로 export되는 값은 다음 예시와 같이 camel case로 네이밍됩니다. (예: `arrowDownCircleFillSvg`)
|
|
26
|
-
- React JSX 형태로 export되는 값은 다음 예시와 같이 pascal case로 네이밍됩니다. (예: `ArrowDownCircleFillIcon`)
|
|
27
|
-
- svg 파일 이름이 숫자로 시작하는 경우, 제일 앞에 `i`를 붙입니다. (예: `4k-fill.svg` -> `i4KFillSvg`, `I4KFillIcon`)
|
|
28
|
-
|
|
29
|
-
## 개발 및 배포 절차
|
|
30
|
-
|
|
31
|
-
`npm run storybook` 을 실행하면 스토리북이 실행됩니다. 이곳에서 디버깅을 진행합니다.
|
|
32
|
-
|
|
33
|
-
패키지 특성상 개발환경이 따로 존재하지 않으며 `npm run build` 후 `npm publish` 를 사용하여 npm 에 배포합니다.
|
|
34
|
-
|
|
35
|
-
이때 npm team-monolith 에 소속되어 있어야 합니다.
|
|
36
|
-
|
|
37
|
-
빌드 시에 번역 관련 환경변수가 필요합니다. (.locize 파일)
|
|
1
|
+
# Codle Design System
|
|
2
|
+
|
|
3
|
+
코들 디자인 시스템을 구현합니다.
|
|
4
|
+
|
|
5
|
+
### src/cds/components
|
|
6
|
+
|
|
7
|
+
컴포넌트를 구현합니다.
|
|
8
|
+
컴포넌트는 반드시 `className`과 `component` 인자를 가집니다.
|
|
9
|
+
컴포넌트는 모두 스토리북에 등록해야 합니다.
|
|
10
|
+
|
|
11
|
+
### src/cds/foundation
|
|
12
|
+
|
|
13
|
+
색상, 그림자 등을 제공합니다.
|
|
14
|
+
|
|
15
|
+
### src/cds/icons
|
|
16
|
+
|
|
17
|
+
아이콘을 제공합니다.
|
|
18
|
+
|
|
19
|
+
아이콘은 [피그마](<[https://www.figma.com/file/wefLB6cN0oM2VZjwYmBA6B/Codle-PD-Kit---Foundation?type=design&node-id=1-23307&t=ASkFT82aJsgxrxvr-0](https://www.figma.com/design/UD08wln8CwDoCMGFBIGTiZ/CDS-24?t=szRkpuQ7CYUzU9vm-0)>)에 정의된대로 24px X 24px 크기의 svg로 정의됩니다. 색상이나 크기를 변경하기 위해 Styled Component를 활용할 수 있으므로 `className` 인자를 받아야합니다.
|
|
20
|
+
|
|
21
|
+
아이콘은 컴파일 과정에서, remixicon 라이브러리의 svg 파일을 읽어와서 string 형태와 React JSX 형태로 export 되는 코드가 `src/cds/icons` 폴더 안에 자동 생성됩니다.
|
|
22
|
+
생성되는 규칙은 다음과 같습니다.
|
|
23
|
+
|
|
24
|
+
- 네이밍은 remixicon 라이브러리의 svg 파일 이름에서 다음과 같이 변환됩니다.
|
|
25
|
+
- string 형태로 export되는 값은 다음 예시와 같이 camel case로 네이밍됩니다. (예: `arrowDownCircleFillSvg`)
|
|
26
|
+
- React JSX 형태로 export되는 값은 다음 예시와 같이 pascal case로 네이밍됩니다. (예: `ArrowDownCircleFillIcon`)
|
|
27
|
+
- svg 파일 이름이 숫자로 시작하는 경우, 제일 앞에 `i`를 붙입니다. (예: `4k-fill.svg` -> `i4KFillSvg`, `I4KFillIcon`)
|
|
28
|
+
|
|
29
|
+
## 개발 및 배포 절차
|
|
30
|
+
|
|
31
|
+
`npm run storybook` 을 실행하면 스토리북이 실행됩니다. 이곳에서 디버깅을 진행합니다.
|
|
32
|
+
|
|
33
|
+
패키지 특성상 개발환경이 따로 존재하지 않으며 `npm run build` 후 `npm publish` 를 사용하여 npm 에 배포합니다.
|
|
34
|
+
|
|
35
|
+
이때 npm team-monolith 에 소속되어 있어야 합니다.
|
|
36
|
+
|
|
37
|
+
빌드 시에 번역 관련 환경변수가 필요합니다. (.locize 파일)
|
package/dist/CdsProvider.js
CHANGED
|
@@ -333,9 +333,9 @@ export function CdsProvider(props) {
|
|
|
333
333
|
* 따라서 cds package.json에서 react-i18next를 bundleDependencies로 설정하여
|
|
334
334
|
* 호스트의 react-i18next와 분리했습니다.
|
|
335
335
|
*/
|
|
336
|
-
_jsxs(I18nextProvider, { i18n: i18n, children: [_jsx(Global, { styles: css `
|
|
337
|
-
body {
|
|
338
|
-
font-family: ${FONT.pretendard};
|
|
339
|
-
}
|
|
336
|
+
_jsxs(I18nextProvider, { i18n: i18n, children: [_jsx(Global, { styles: css `
|
|
337
|
+
body {
|
|
338
|
+
font-family: ${FONT.pretendard};
|
|
339
|
+
}
|
|
340
340
|
` }), _jsx(MuiThemeProvider, { theme: muiTheme, children: _jsx(ThemeProvider, { theme: theme, children: _jsx(CdsContext.Provider, { value: props, children: props.children }) }) })] }));
|
|
341
341
|
}
|
|
@@ -31,62 +31,62 @@ export const AlertDialog = React.forwardRef(function AlertDialog(props, ref) {
|
|
|
31
31
|
zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : ZINDEX.ALERT,
|
|
32
32
|
} }, other, { children: _jsxs(Component, { className: [alertDialogClasses.root, className]
|
|
33
33
|
.filter(Boolean)
|
|
34
|
-
.join(" "), css: css `
|
|
35
|
-
width: 480px;
|
|
36
|
-
max-height: calc(100% - 48px);
|
|
37
|
-
background: ${theme.color.background.neutralBase};
|
|
38
|
-
box-shadow: ${shadows.shadow04};
|
|
39
|
-
border-radius: 16px;
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 50%;
|
|
42
|
-
left: 50%;
|
|
43
|
-
transform: translate(-50%, -50%);
|
|
44
|
-
padding: 24px;
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
|
|
47
|
-
display: grid;
|
|
48
|
-
grid-template-rows: auto 1fr auto;
|
|
34
|
+
.join(" "), css: css `
|
|
35
|
+
width: 480px;
|
|
36
|
+
max-height: calc(100% - 48px);
|
|
37
|
+
background: ${theme.color.background.neutralBase};
|
|
38
|
+
box-shadow: ${shadows.shadow04};
|
|
39
|
+
border-radius: 16px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 50%;
|
|
42
|
+
left: 50%;
|
|
43
|
+
transform: translate(-50%, -50%);
|
|
44
|
+
padding: 24px;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-rows: auto 1fr auto;
|
|
49
49
|
${icon
|
|
50
|
-
? css `
|
|
51
|
-
grid-template-columns: 32px 1fr;
|
|
52
|
-
grid-template-areas:
|
|
53
|
-
"icon title"
|
|
54
|
-
"${paddingAreaName} content"
|
|
55
|
-
"actions actions";
|
|
50
|
+
? css `
|
|
51
|
+
grid-template-columns: 32px 1fr;
|
|
52
|
+
grid-template-areas:
|
|
53
|
+
"icon title"
|
|
54
|
+
"${paddingAreaName} content"
|
|
55
|
+
"actions actions";
|
|
56
56
|
`
|
|
57
|
-
: css `
|
|
58
|
-
grid-template-areas:
|
|
59
|
-
"title"
|
|
60
|
-
"content"
|
|
61
|
-
"actions";
|
|
62
|
-
`}
|
|
63
|
-
|
|
64
|
-
gap: 8px 16px;
|
|
65
|
-
|
|
66
|
-
${MOBILE(css `
|
|
67
|
-
width: calc(100% - 24px);
|
|
68
|
-
grid-template-columns: auto;
|
|
69
|
-
grid-template-areas:
|
|
70
|
-
"title"
|
|
71
|
-
"content"
|
|
72
|
-
"actions";
|
|
73
|
-
`)}
|
|
57
|
+
: css `
|
|
58
|
+
grid-template-areas:
|
|
59
|
+
"title"
|
|
60
|
+
"content"
|
|
61
|
+
"actions";
|
|
62
|
+
`}
|
|
63
|
+
|
|
64
|
+
gap: 8px 16px;
|
|
65
|
+
|
|
66
|
+
${MOBILE(css `
|
|
67
|
+
width: calc(100% - 24px);
|
|
68
|
+
grid-template-columns: auto;
|
|
69
|
+
grid-template-areas:
|
|
70
|
+
"title"
|
|
71
|
+
"content"
|
|
72
|
+
"actions";
|
|
73
|
+
`)}
|
|
74
74
|
`, children: [icon && (_jsx(IconDiv, { className: alertDialogClasses.icon, children: icon })), _jsx(AlertDialogContext.Provider, { value: { icon }, children: children })] }) })));
|
|
75
75
|
});
|
|
76
|
-
const IconDiv = styled.div `
|
|
77
|
-
display: flex;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
align-items: center;
|
|
80
|
-
grid-area: icon;
|
|
81
|
-
${({ theme }) => css `
|
|
82
|
-
color: ${theme.color.background.infoActive};
|
|
83
|
-
`}
|
|
84
|
-
svg {
|
|
85
|
-
width: 32px;
|
|
86
|
-
height: 32px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
${MOBILE(css `
|
|
90
|
-
display: none;
|
|
91
|
-
`)}
|
|
76
|
+
const IconDiv = styled.div `
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
grid-area: icon;
|
|
81
|
+
${({ theme }) => css `
|
|
82
|
+
color: ${theme.color.background.infoActive};
|
|
83
|
+
`}
|
|
84
|
+
svg {
|
|
85
|
+
width: 32px;
|
|
86
|
+
height: 32px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
${MOBILE(css `
|
|
90
|
+
display: none;
|
|
91
|
+
`)}
|
|
92
92
|
`;
|
|
@@ -18,12 +18,12 @@ export const alertDialogActionsClasses = {
|
|
|
18
18
|
};
|
|
19
19
|
export const AlertDialogActions = React.forwardRef(function AlertDialogActions(props, ref) {
|
|
20
20
|
const { className, component: Component = "div", children } = props, other = __rest(props, ["className", "component", "children"]);
|
|
21
|
-
return (_jsx(Component, Object.assign({}, other, { ref: ref, className: [alertDialogActionsClasses.root, className].filter(Boolean).join(" "), css: css `
|
|
22
|
-
grid-area: actions;
|
|
23
|
-
|
|
24
|
-
margin-top: 8px;
|
|
25
|
-
display: flex;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
justify-content: flex-end;
|
|
21
|
+
return (_jsx(Component, Object.assign({}, other, { ref: ref, className: [alertDialogActionsClasses.root, className].filter(Boolean).join(" "), css: css `
|
|
22
|
+
grid-area: actions;
|
|
23
|
+
|
|
24
|
+
margin-top: 8px;
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
justify-content: flex-end;
|
|
28
28
|
`, children: children })));
|
|
29
29
|
});
|
|
@@ -19,13 +19,13 @@ export const alertDialogContentClasses = {
|
|
|
19
19
|
export const AlertDialogContent = React.forwardRef(function AlertDialogContent(props, ref) {
|
|
20
20
|
const { className, component: Component = "div", children } = props, other = __rest(props, ["className", "component", "children"]);
|
|
21
21
|
const theme = useTheme();
|
|
22
|
-
return (_jsx(Component, Object.assign({}, other, { ref: ref, className: [alertDialogContentClasses.root, className].filter(Boolean).join(" "), css: css `
|
|
23
|
-
grid-area: content;
|
|
24
|
-
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-size: 18px;
|
|
27
|
-
line-height: 28px;
|
|
28
|
-
color: ${theme.color.foreground.neutralBase};
|
|
29
|
-
overflow-y: auto;
|
|
22
|
+
return (_jsx(Component, Object.assign({}, other, { ref: ref, className: [alertDialogContentClasses.root, className].filter(Boolean).join(" "), css: css `
|
|
23
|
+
grid-area: content;
|
|
24
|
+
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-size: 18px;
|
|
27
|
+
line-height: 28px;
|
|
28
|
+
color: ${theme.color.foreground.neutralBase};
|
|
29
|
+
overflow-y: auto;
|
|
30
30
|
`, children: children })));
|
|
31
31
|
});
|
|
@@ -31,39 +31,39 @@ export const AlertDialogTitle = React.forwardRef(function AlertDialogTitle(props
|
|
|
31
31
|
const theme = useTheme();
|
|
32
32
|
return (_jsx(_Fragment, { children: _jsxs(Component, Object.assign({}, other, { ref: ref, className: [alertDialogTitleClasses.root, className]
|
|
33
33
|
.filter(Boolean)
|
|
34
|
-
.join(" "), css: css `
|
|
35
|
-
grid-area: title;
|
|
36
|
-
font-family: ${theme.fontFamily.ui};
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
font-size: 20px;
|
|
40
|
-
line-height: 28px; /* 140% */
|
|
41
|
-
letter-spacing: 0.25px;
|
|
42
|
-
|
|
43
|
-
color: ${theme.color.foreground.neutralBase};
|
|
44
|
-
text-align: center;
|
|
45
|
-
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: space-between;
|
|
48
|
-
`, children: [_jsxs("div", { className: alertDialogTitleClasses.content, css: css `
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: flex-start;
|
|
53
|
-
gap: 16px;
|
|
54
|
-
text-align: left;
|
|
55
|
-
`, children: [icon && (_jsx("div", { className: alertDialogTitleClasses.icon, css: css `
|
|
56
|
-
display: none;
|
|
57
|
-
${MOBILE(css `
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
align-items: center;
|
|
61
|
-
color: ${theme.color.background.infoActive};
|
|
62
|
-
|
|
63
|
-
svg {
|
|
64
|
-
width: 32px;
|
|
65
|
-
height: 32px;
|
|
66
|
-
}
|
|
67
|
-
`)}
|
|
34
|
+
.join(" "), css: css `
|
|
35
|
+
grid-area: title;
|
|
36
|
+
font-family: ${theme.fontFamily.ui};
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
line-height: 28px; /* 140% */
|
|
41
|
+
letter-spacing: 0.25px;
|
|
42
|
+
|
|
43
|
+
color: ${theme.color.foreground.neutralBase};
|
|
44
|
+
text-align: center;
|
|
45
|
+
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
`, children: [_jsxs("div", { className: alertDialogTitleClasses.content, css: css `
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
gap: 16px;
|
|
54
|
+
text-align: left;
|
|
55
|
+
`, children: [icon && (_jsx("div", { className: alertDialogTitleClasses.icon, css: css `
|
|
56
|
+
display: none;
|
|
57
|
+
${MOBILE(css `
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
color: ${theme.color.background.infoActive};
|
|
62
|
+
|
|
63
|
+
svg {
|
|
64
|
+
width: 32px;
|
|
65
|
+
height: 32px;
|
|
66
|
+
}
|
|
67
|
+
`)}
|
|
68
68
|
`, children: icon })), children] }), onClose && (_jsx(SquareButton, { className: alertDialogTitleClasses.closeButton, color: "icon", size: "small", icon: _jsx(CloseFillIcon, {}), onClick: onClose, "aria-label": t("닫기", { context: "다이얼로그" }) }))] })) }));
|
|
69
69
|
});
|