@team-monolith/cds 1.103.3 → 1.103.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.
Files changed (182) hide show
  1. package/@types/emotion.d.ts +158 -158
  2. package/README.md +35 -35
  3. package/dist/CdsProvider.js +4 -4
  4. package/dist/components/AlertDialog/AlertDialog.js +54 -54
  5. package/dist/components/AlertDialog/AlertDialogActions.js +7 -7
  6. package/dist/components/AlertDialog/AlertDialogContent.js +8 -8
  7. package/dist/components/AlertDialog/AlertDialogTitle.js +34 -33
  8. package/dist/components/AnimatedButton.js +32 -32
  9. package/dist/components/Banner.js +51 -51
  10. package/dist/components/Book/Book.d.ts +2 -2
  11. package/dist/components/Book/Book.js +174 -174
  12. package/dist/components/Button.js +179 -179
  13. package/dist/components/CheckboxInput.js +100 -100
  14. package/dist/components/FileTypeAlertDialog.js +4 -4
  15. package/dist/components/Input.js +53 -53
  16. package/dist/components/InputBase.js +72 -72
  17. package/dist/components/Modal.js +4 -4
  18. package/dist/components/OverflowTooltip.js +4 -4
  19. package/dist/components/Pagination.js +56 -56
  20. package/dist/components/PinInput.js +64 -64
  21. package/dist/components/Popover.js +27 -27
  22. package/dist/components/RadioInput.js +73 -73
  23. package/dist/components/SquareButton.js +109 -109
  24. package/dist/components/Switch.js +69 -69
  25. package/dist/components/SwitchButton.js +107 -107
  26. package/dist/components/Tag.js +68 -68
  27. package/dist/components/Tooltip.js +19 -19
  28. package/dist/foundation/breakpoints.js +16 -16
  29. package/dist/icons/custom/colored/ai-helper.svg +4 -4
  30. package/dist/icons/custom/colored/ai-quiz-color.svg +20 -20
  31. package/dist/icons/custom/colored/badge-color.svg +4 -4
  32. package/dist/icons/custom/colored/badge-gold.svg +11 -11
  33. package/dist/icons/custom/colored/badge-green.svg +11 -11
  34. package/dist/icons/custom/colored/badge-silver.svg +11 -11
  35. package/dist/icons/custom/colored/basic-plus.svg +31 -31
  36. package/dist/icons/custom/colored/basic.svg +3 -3
  37. package/dist/icons/custom/colored/board-color.svg +5 -5
  38. package/dist/icons/custom/colored/cast-cloudy-color.svg +6 -6
  39. package/dist/icons/custom/colored/cast-partly-color.svg +7 -7
  40. package/dist/icons/custom/colored/cast-rainbow-color.svg +13 -13
  41. package/dist/icons/custom/colored/cast-sunny-color.svg +4 -4
  42. package/dist/icons/custom/colored/clap-bronze.svg +8 -8
  43. package/dist/icons/custom/colored/clap-gold.svg +8 -8
  44. package/dist/icons/custom/colored/clap-silver.svg +8 -8
  45. package/dist/icons/custom/colored/class.svg +13 -13
  46. package/dist/icons/custom/colored/codap-color.svg +13 -13
  47. package/dist/icons/custom/colored/ebook-color.svg +5 -5
  48. package/dist/icons/custom/colored/embedded-color.svg +38 -38
  49. package/dist/icons/custom/colored/emo-clap-color.svg +252 -252
  50. package/dist/icons/custom/colored/emo-good-color.svg +68 -68
  51. package/dist/icons/custom/colored/emo-great-color.svg +67 -67
  52. package/dist/icons/custom/colored/emo-heart-color.svg +239 -239
  53. package/dist/icons/custom/colored/emo-hundred-color.svg +194 -194
  54. package/dist/icons/custom/colored/emo-neutral-color.svg +76 -76
  55. package/dist/icons/custom/colored/emo-stars-color.svg +121 -121
  56. package/dist/icons/custom/colored/emo-thumbup-color.svg +238 -238
  57. package/dist/icons/custom/colored/empty.svg +1 -1
  58. package/dist/icons/custom/colored/entry-color.svg +4 -4
  59. package/dist/icons/custom/colored/filename-all-color.svg +4 -4
  60. package/dist/icons/custom/colored/filename-doc-color.svg +5 -5
  61. package/dist/icons/custom/colored/filename-hwp-color.svg +6 -6
  62. package/dist/icons/custom/colored/filename-img-color.svg +6 -6
  63. package/dist/icons/custom/colored/filename-mp4-color.svg +5 -5
  64. package/dist/icons/custom/colored/filename-pdf-color.svg +12 -12
  65. package/dist/icons/custom/colored/filename-ppt-color.svg +6 -6
  66. package/dist/icons/custom/colored/filename-xls-color.svg +5 -5
  67. package/dist/icons/custom/colored/filename-zip-color.svg +5 -5
  68. package/dist/icons/custom/colored/google.svg +13 -13
  69. package/dist/icons/custom/colored/hand-fill.svg +4 -4
  70. package/dist/icons/custom/colored/judge-color.svg +6 -6
  71. package/dist/icons/custom/colored/makecode-color.svg +4 -4
  72. package/dist/icons/custom/colored/master.svg +12 -12
  73. package/dist/icons/custom/colored/material.svg +6 -6
  74. package/dist/icons/custom/colored/medal-bronze.svg +9 -9
  75. package/dist/icons/custom/colored/medal-gold.svg +9 -9
  76. package/dist/icons/custom/colored/medal-silver.svg +9 -9
  77. package/dist/icons/custom/colored/pro.svg +4 -4
  78. package/dist/icons/custom/colored/problem.svg +7 -7
  79. package/dist/icons/custom/colored/python-color.svg +4 -4
  80. package/dist/icons/custom/colored/quiz-color.svg +12 -12
  81. package/dist/icons/custom/colored/resource-color.svg +13 -13
  82. package/dist/icons/custom/colored/scratch-color.svg +6 -6
  83. package/dist/icons/custom/colored/type-helper.svg +9 -9
  84. package/dist/icons/custom/colored/whale.svg +7 -7
  85. package/dist/icons/custom/colored/worksheet-color.svg +5 -5
  86. package/dist/icons/custom/default/ai-quiz.svg +8 -8
  87. package/dist/icons/custom/default/badge.svg +4 -4
  88. package/dist/icons/custom/default/board.svg +5 -5
  89. package/dist/icons/custom/default/cast-cloudy.svg +3 -3
  90. package/dist/icons/custom/default/cast-partly.svg +4 -4
  91. package/dist/icons/custom/default/cast-rainbow.svg +12 -12
  92. package/dist/icons/custom/default/cast-sunny.svg +3 -3
  93. package/dist/icons/custom/default/codap.svg +11 -11
  94. package/dist/icons/custom/default/ebook.svg +3 -3
  95. package/dist/icons/custom/default/embedded.svg +4 -4
  96. package/dist/icons/custom/default/emo-clap.svg +6 -6
  97. package/dist/icons/custom/default/emo-good.svg +12 -12
  98. package/dist/icons/custom/default/emo-great.svg +12 -12
  99. package/dist/icons/custom/default/emo-heart.svg +5 -5
  100. package/dist/icons/custom/default/emo-hundred.svg +3 -3
  101. package/dist/icons/custom/default/emo-neutral.svg +14 -14
  102. package/dist/icons/custom/default/emo-stars.svg +14 -14
  103. package/dist/icons/custom/default/emo-thumbup.svg +3 -3
  104. package/dist/icons/custom/default/entry.svg +4 -4
  105. package/dist/icons/custom/default/fab.svg +10 -10
  106. package/dist/icons/custom/default/grant-alt.svg +5 -5
  107. package/dist/icons/custom/default/grant.svg +4 -4
  108. package/dist/icons/custom/default/hand-line.svg +3 -3
  109. package/dist/icons/custom/default/judge.svg +3 -3
  110. package/dist/icons/custom/default/makecode.svg +5 -5
  111. package/dist/icons/custom/default/pdf.svg +3 -3
  112. package/dist/icons/custom/default/python.svg +7 -7
  113. package/dist/icons/custom/default/quiz.svg +4 -4
  114. package/dist/icons/custom/default/resource.svg +11 -11
  115. package/dist/icons/custom/default/scratch.svg +3 -3
  116. package/dist/icons/custom/default/scroll-alt.svg +5 -5
  117. package/dist/icons/custom/default/scroll-fill.svg +4 -4
  118. package/dist/icons/custom/default/scroll-line.svg +5 -5
  119. package/dist/icons/custom/default/symbol.svg +4 -4
  120. package/dist/icons/custom/default/worksheet.svg +4 -4
  121. package/dist/icons/custom/svgrColoredTemplate.js +26 -26
  122. package/dist/icons/custom/svgrDefaultTemplate.js +26 -26
  123. package/dist/patterns/Accordion.js +20 -20
  124. package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +58 -58
  125. package/dist/patterns/Dropdown/DropdownMenu/DropdownMenu.js +27 -27
  126. package/dist/patterns/Dropdown/DropdownMenu/style.js +19 -19
  127. package/dist/patterns/LexicalEditor/Plugins.js +36 -36
  128. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +23 -23
  129. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +4 -4
  130. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +15 -15
  131. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -2
  132. package/dist/patterns/LexicalEditor/hr.svg +3 -3
  133. package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -44
  134. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +25 -25
  135. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +8 -8
  136. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.js +60 -60
  137. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +19 -19
  138. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +49 -49
  139. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +7 -7
  140. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +73 -73
  141. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +5 -5
  142. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +7 -7
  143. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxComponent.js +69 -69
  144. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxEdit.js +3 -3
  145. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  146. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  147. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +54 -54
  148. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +61 -61
  149. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/Evaluation.js +75 -75
  150. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +17 -17
  151. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +7 -7
  152. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +28 -28
  153. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +52 -52
  154. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +7 -7
  155. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +25 -25
  156. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +53 -53
  157. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxComponent.js +54 -54
  158. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +5 -5
  159. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +21 -21
  160. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +42 -42
  161. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +71 -71
  162. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.js +51 -51
  163. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +11 -11
  164. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/menu.svg +7 -7
  165. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/plus.svg +2 -2
  166. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +10 -10
  167. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuItem.js +32 -32
  168. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuList.js +32 -32
  169. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +12 -12
  170. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +49 -49
  171. package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.js +36 -36
  172. package/dist/patterns/LexicalEditor/plugins/ParagraphPlaceholderPlugin/index.js +7 -7
  173. package/dist/patterns/LexicalEditor/theme.js +243 -243
  174. package/dist/patterns/SegmentedControl/SegmentedControlButton.js +10 -10
  175. package/dist/patterns/SegmentedControl/SegmentedControlGroup.js +8 -8
  176. package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +2 -2
  177. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +40 -40
  178. package/dist/patterns/ToggleButtonGroup/ToggleButtonGroup.js +11 -11
  179. package/dist/utils/hover.js +12 -12
  180. package/dist/utils/reset.js +19 -19
  181. package/dist/utils/visuallyHidden.js +10 -10
  182. package/package.json +92 -92
@@ -17,193 +17,193 @@ import React from "react";
17
17
  import { HOVER } from "../utils/hover";
18
18
  import { Spinner } from "..";
19
19
  const COLOR_TO_BUTTON_STYLE = (theme, color, disabled) => ({
20
- primary: css `
20
+ primary: css `
21
21
  ${disabled
22
- ? css `
23
- color: ${theme.color.foreground.neutralAltDisabled};
24
- background: ${theme.color.background.primaryDisabled};
22
+ ? css `
23
+ color: ${theme.color.foreground.neutralAltDisabled};
24
+ background: ${theme.color.background.primaryDisabled};
25
25
  `
26
- : css `
27
- color: ${theme.color.foreground.neutralAlt};
28
- background: ${theme.color.background.primary};
29
- ${HOVER(css `
30
- color: ${theme.color.foreground.neutralAltActive};
31
- background: ${theme.color.background.primaryActive};
32
- `)}
33
- `}
26
+ : css `
27
+ color: ${theme.color.foreground.neutralAlt};
28
+ background: ${theme.color.background.primary};
29
+ ${HOVER(css `
30
+ color: ${theme.color.foreground.neutralAltActive};
31
+ background: ${theme.color.background.primaryActive};
32
+ `)}
33
+ `}
34
34
  `,
35
- grey: css `
35
+ grey: css `
36
36
  ${disabled
37
- ? css `
38
- background: ${theme.color.background.neutralAltDisabled};
39
- color: ${theme.color.foreground.neutralBaseDisabled};
37
+ ? css `
38
+ background: ${theme.color.background.neutralAltDisabled};
39
+ color: ${theme.color.foreground.neutralBaseDisabled};
40
40
  `
41
- : css `
42
- background: ${theme.color.background.neutralAlt};
43
- color: ${theme.color.foreground.neutralBase};
44
- ${HOVER(css `
45
- background: ${theme.color.background.neutralAltActive};
46
- color: ${theme.color.foreground.neutralBaseActive};
47
- `)}
48
- `}
41
+ : css `
42
+ background: ${theme.color.background.neutralAlt};
43
+ color: ${theme.color.foreground.neutralBase};
44
+ ${HOVER(css `
45
+ background: ${theme.color.background.neutralAltActive};
46
+ color: ${theme.color.foreground.neutralBaseActive};
47
+ `)}
48
+ `}
49
49
  `,
50
- danger: css `
50
+ danger: css `
51
51
  ${disabled
52
- ? css `
53
- color: ${theme.color.foreground.neutralAltDisabled};
54
- background: ${theme.color.background.dangerDisabled};
52
+ ? css `
53
+ color: ${theme.color.foreground.neutralAltDisabled};
54
+ background: ${theme.color.background.dangerDisabled};
55
55
  `
56
- : css `
57
- color: ${theme.color.foreground.neutralAlt};
58
- background: ${theme.color.background.danger};
59
- ${HOVER(css `
60
- color: ${theme.color.foreground.neutralAltActive};
61
- background: ${theme.color.background.dangerActive};
62
- `)}
63
- `}
56
+ : css `
57
+ color: ${theme.color.foreground.neutralAlt};
58
+ background: ${theme.color.background.danger};
59
+ ${HOVER(css `
60
+ color: ${theme.color.foreground.neutralAltActive};
61
+ background: ${theme.color.background.dangerActive};
62
+ `)}
63
+ `}
64
64
  `,
65
- textNeutral: css `
65
+ textNeutral: css `
66
66
  ${disabled
67
- ? css `
68
- background: none;
69
- color: ${theme.color.foreground.neutralBaseDisabled};
67
+ ? css `
68
+ background: none;
69
+ color: ${theme.color.foreground.neutralBaseDisabled};
70
70
  `
71
- : css `
72
- background: none;
73
- color: ${theme.color.foreground.neutralBase};
74
- ${HOVER(css `
75
- background: ${theme.color.blanket.neutralLight};
76
- color: ${theme.color.foreground.neutralBaseActive};
77
- `)}
78
- `}
71
+ : css `
72
+ background: none;
73
+ color: ${theme.color.foreground.neutralBase};
74
+ ${HOVER(css `
75
+ background: ${theme.color.blanket.neutralLight};
76
+ color: ${theme.color.foreground.neutralBaseActive};
77
+ `)}
78
+ `}
79
79
  `,
80
- textDanger: css `
80
+ textDanger: css `
81
81
  ${disabled
82
- ? css `
83
- background: none;
84
- color: ${theme.color.foreground.dangerDisabled};
82
+ ? css `
83
+ background: none;
84
+ color: ${theme.color.foreground.dangerDisabled};
85
85
  `
86
- : css `
87
- background: none;
88
- color: ${theme.color.foreground.danger};
89
- ${HOVER(css `
90
- background: ${theme.color.blanket.neutralLight};
91
- color: ${theme.color.foreground.dangerActive};
92
- `)}
93
- `}
86
+ : css `
87
+ background: none;
88
+ color: ${theme.color.foreground.danger};
89
+ ${HOVER(css `
90
+ background: ${theme.color.blanket.neutralLight};
91
+ color: ${theme.color.foreground.dangerActive};
92
+ `)}
93
+ `}
94
94
  `,
95
- textPrimary: css `
95
+ textPrimary: css `
96
96
  ${disabled
97
- ? css `
98
- background: none;
99
- color: ${theme.color.foreground.primaryDisabled};
97
+ ? css `
98
+ background: none;
99
+ color: ${theme.color.foreground.primaryDisabled};
100
100
  `
101
- : css `
102
- background: none;
103
- color: ${theme.color.foreground.primary};
104
- ${HOVER(css `
105
- background: ${theme.color.blanket.neutralLight};
106
- color: ${theme.color.foreground.primaryActive};
107
- `)}
108
- `}
101
+ : css `
102
+ background: none;
103
+ color: ${theme.color.foreground.primary};
104
+ ${HOVER(css `
105
+ background: ${theme.color.blanket.neutralLight};
106
+ color: ${theme.color.foreground.primaryActive};
107
+ `)}
108
+ `}
109
109
  `,
110
- black: css `
110
+ black: css `
111
111
  ${disabled
112
- ? css `
113
- background: ${theme.color.background.inverseDisabled};
114
- color: ${theme.color.foreground.neutralAltDisabled};
112
+ ? css `
113
+ background: ${theme.color.background.inverseDisabled};
114
+ color: ${theme.color.foreground.neutralAltDisabled};
115
115
  `
116
- : css `
117
- background: ${theme.color.background.inverse};
118
- color: ${theme.color.foreground.neutralAlt};
119
- ${HOVER(css `
120
- background: ${theme.color.background.inverseActive};
121
- color: ${theme.color.foreground.neutralAltActive};
122
- `)}
123
- `}
116
+ : css `
117
+ background: ${theme.color.background.inverse};
118
+ color: ${theme.color.foreground.neutralAlt};
119
+ ${HOVER(css `
120
+ background: ${theme.color.background.inverseActive};
121
+ color: ${theme.color.foreground.neutralAltActive};
122
+ `)}
123
+ `}
124
124
  `,
125
- white: css `
125
+ white: css `
126
126
  ${disabled
127
- ? css `
128
- background: ${theme.color.background.neutralAltDisabled};
129
- color: ${theme.color.foreground.neutralBaseDisabled};
127
+ ? css `
128
+ background: ${theme.color.background.neutralAltDisabled};
129
+ color: ${theme.color.foreground.neutralBaseDisabled};
130
130
  `
131
- : css `
132
- background: ${theme.color.background.neutralBase};
133
- color: ${theme.color.foreground.neutralBase};
134
- ${HOVER(css `
135
- background: ${theme.color.background.neutralAltActive};
136
- color: ${theme.color.foreground.neutralBaseActive};
137
- `)}
138
- `}
131
+ : css `
132
+ background: ${theme.color.background.neutralBase};
133
+ color: ${theme.color.foreground.neutralBase};
134
+ ${HOVER(css `
135
+ background: ${theme.color.background.neutralAltActive};
136
+ color: ${theme.color.foreground.neutralBaseActive};
137
+ `)}
138
+ `}
139
139
  `,
140
140
  })[color];
141
141
  const SIZE_TO_BUTTON_STYLE = {
142
- large: css `
143
- min-width: 100px;
144
- height: 56px;
145
- padding: 0 20px;
146
- gap: 10px;
147
- border-radius: 12px;
148
-
149
- svg {
150
- width: 24px;
151
- height: 24px;
152
- }
142
+ large: css `
143
+ min-width: 100px;
144
+ height: 56px;
145
+ padding: 0 20px;
146
+ gap: 10px;
147
+ border-radius: 12px;
148
+
149
+ svg {
150
+ width: 24px;
151
+ height: 24px;
152
+ }
153
153
  `,
154
- medium: css `
155
- min-width: 82px;
156
- height: 48px;
157
- padding: 0 16px;
158
- gap: 8px;
159
- border-radius: 10px;
160
-
161
- svg {
162
- width: 20px;
163
- height: 20px;
164
- }
154
+ medium: css `
155
+ min-width: 82px;
156
+ height: 48px;
157
+ padding: 0 16px;
158
+ gap: 8px;
159
+ border-radius: 10px;
160
+
161
+ svg {
162
+ width: 20px;
163
+ height: 20px;
164
+ }
165
165
  `,
166
- small: css `
167
- min-width: 64px;
168
- height: 36px;
169
- padding: 0 12px;
170
- gap: 8px;
171
- border-radius: 8px;
172
-
173
- svg {
174
- width: 16px;
175
- height: 16px;
176
- }
166
+ small: css `
167
+ min-width: 64px;
168
+ height: 36px;
169
+ padding: 0 12px;
170
+ gap: 8px;
171
+ border-radius: 8px;
172
+
173
+ svg {
174
+ width: 16px;
175
+ height: 16px;
176
+ }
177
177
  `,
178
- xsmall: css `
179
- min-width: 52px;
180
- height: 28px;
181
- padding: 0 8px;
182
- gap: 4px;
183
- border-radius: 6px;
184
-
185
- svg {
186
- width: 12px;
187
- height: 12px;
188
- }
178
+ xsmall: css `
179
+ min-width: 52px;
180
+ height: 28px;
181
+ padding: 0 8px;
182
+ gap: 4px;
183
+ border-radius: 6px;
184
+
185
+ svg {
186
+ width: 12px;
187
+ height: 12px;
188
+ }
189
189
  `,
190
190
  };
191
191
  const SIZE_TO_LABEL_STYLE = {
192
- large: css `
193
- font-size: 20px;
194
- line-height: 24px;
192
+ large: css `
193
+ font-size: 20px;
194
+ line-height: 24px;
195
195
  `,
196
- medium: css `
197
- font-size: 18px;
198
- line-height: 20px;
196
+ medium: css `
197
+ font-size: 18px;
198
+ line-height: 20px;
199
199
  `,
200
- small: css `
201
- font-size: 14px;
202
- line-height: 16px;
200
+ small: css `
201
+ font-size: 14px;
202
+ line-height: 16px;
203
203
  `,
204
- xsmall: css `
205
- font-size: 14px;
206
- line-height: 16px;
204
+ xsmall: css `
205
+ font-size: 14px;
206
+ line-height: 16px;
207
207
  `,
208
208
  };
209
209
  /**
@@ -213,40 +213,40 @@ export const Button = React.forwardRef(function Button(props, ref) {
213
213
  const { className, component: Component = "button", disabled, color, size, startIcon, endIcon, label, fullWidth, bold = false, loading = false } = props, other = __rest(props, ["className", "component", "disabled", "color", "size", "startIcon", "endIcon", "label", "fullWidth", "bold", "loading"]);
214
214
  const theme = useTheme();
215
215
  return (_jsxs(Component, Object.assign({ type: Component === "button" || Component === "input" ? "button" : undefined }, other, { className: className, ref: ref, css: [
216
- css `
217
- display: inline-flex;
218
- align-items: center;
219
- justify-content: center;
220
- gap: 8px;
221
-
222
- border: none;
223
-
216
+ css `
217
+ display: inline-flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ gap: 8px;
221
+
222
+ border: none;
223
+
224
224
  ${disabled || loading
225
- ? css `
226
- cursor: default;
227
- pointer-events: none;
225
+ ? css `
226
+ cursor: default;
227
+ pointer-events: none;
228
228
  `
229
- : css `
230
- cursor: pointer;
231
- `}
232
-
233
- font-family: ${theme.fontFamily.ui};
234
- text-decoration: none;
235
-
229
+ : css `
230
+ cursor: pointer;
231
+ `}
232
+
233
+ font-family: ${theme.fontFamily.ui};
234
+ text-decoration: none;
235
+
236
236
  ${fullWidth
237
- ? css `
238
- width: 100%;
237
+ ? css `
238
+ width: 100%;
239
239
  `
240
- : css `
241
- flex-shrink: 0;
242
- `};
240
+ : css `
241
+ flex-shrink: 0;
242
+ `};
243
243
  `,
244
244
  COLOR_TO_BUTTON_STYLE(theme, color, Boolean(disabled || loading)),
245
245
  SIZE_TO_BUTTON_STYLE[size],
246
246
  ], disabled: disabled || loading, children: [loading ? _jsx(Spinner, {}) : startIcon, label && (_jsx(Label, { size: size, bold: bold, children: label })), endIcon] })));
247
247
  });
248
- const Label = styled.span `
249
- font-weight: ${({ bold }) => (bold ? 700 : 400)};
250
- white-space: nowrap;
251
- ${({ size }) => SIZE_TO_LABEL_STYLE[size]}
248
+ const Label = styled.span `
249
+ font-weight: ${({ bold }) => (bold ? 700 : 400)};
250
+ white-space: nowrap;
251
+ ${({ size }) => SIZE_TO_LABEL_STYLE[size]}
252
252
  `;
@@ -16,84 +16,84 @@ import * as React from "react";
16
16
  import styled from "@emotion/styled";
17
17
  import { ZINDEX } from "../utils/zIndex";
18
18
  const CHECKBOX_ICON_STYLE = (theme, type, disabled) => ({
19
- default: css `
20
- rect {
21
- fill: ${theme.color.background.neutralBase};
22
- stroke: ${theme.color.background.neutralAltActive};
23
- }
19
+ default: css `
20
+ rect {
21
+ fill: ${theme.color.background.neutralBase};
22
+ stroke: ${theme.color.background.neutralAltActive};
23
+ }
24
24
  ${disabled
25
- ? css `
26
- rect {
27
- fill: ${theme.color.background.neutralBaseDisabled};
28
- stroke: ${theme.color.foreground.neutralBaseDisabled};
29
- }
25
+ ? css `
26
+ rect {
27
+ fill: ${theme.color.background.neutralBaseDisabled};
28
+ stroke: ${theme.color.foreground.neutralBaseDisabled};
29
+ }
30
30
  `
31
- : css `
32
- input[type="checkbox"]:hover + & {
33
- rect {
34
- stroke: ${theme.color.background.primary};
35
- }
36
- }
37
- `}
31
+ : css `
32
+ input[type="checkbox"]:hover + & {
33
+ rect {
34
+ stroke: ${theme.color.background.primary};
35
+ }
36
+ }
37
+ `}
38
38
  `,
39
- checked: css `
40
- rect {
41
- fill: ${theme.color.background.primary};
42
- stroke: ${theme.color.background.primary};
43
- }
44
- path {
45
- fill: ${theme.color.background.neutralBase};
46
- }
39
+ checked: css `
40
+ rect {
41
+ fill: ${theme.color.background.primary};
42
+ stroke: ${theme.color.background.primary};
43
+ }
44
+ path {
45
+ fill: ${theme.color.background.neutralBase};
46
+ }
47
47
  ${disabled
48
- ? css `
49
- rect {
50
- fill: ${theme.color.background.neutralBaseDisabled};
51
- stroke: ${theme.color.background.primaryDisabled};
52
- }
53
- path {
54
- fill: ${theme.color.background.primaryDisabled};
55
- }
48
+ ? css `
49
+ rect {
50
+ fill: ${theme.color.background.neutralBaseDisabled};
51
+ stroke: ${theme.color.background.primaryDisabled};
52
+ }
53
+ path {
54
+ fill: ${theme.color.background.primaryDisabled};
55
+ }
56
56
  `
57
- : css `
58
- input[type="checkbox"]:hover + & {
59
- rect {
60
- fill: ${theme.color.background.primaryActive};
61
- stroke: ${theme.color.background.primaryActive};
62
- }
63
- }
64
- `}
57
+ : css `
58
+ input[type="checkbox"]:hover + & {
59
+ rect {
60
+ fill: ${theme.color.background.primaryActive};
61
+ stroke: ${theme.color.background.primaryActive};
62
+ }
63
+ }
64
+ `}
65
65
  `,
66
- partial: css `
67
- rect {
68
- fill: ${theme.color.background.neutralBase};
69
- stroke: ${theme.color.background.primary};
70
- }
71
- rect + rect {
72
- fill: ${theme.color.background.primary};
73
- stroke: none;
74
- }
66
+ partial: css `
67
+ rect {
68
+ fill: ${theme.color.background.neutralBase};
69
+ stroke: ${theme.color.background.primary};
70
+ }
71
+ rect + rect {
72
+ fill: ${theme.color.background.primary};
73
+ stroke: none;
74
+ }
75
75
  ${disabled
76
- ? css `
77
- rect {
78
- fill: ${theme.color.background.neutralBaseDisabled};
79
- stroke: ${theme.color.background.primaryDisabled};
80
- }
81
- rect + rect {
82
- fill: ${theme.color.background.primaryDisabled};
83
- stroke: none;
84
- }
76
+ ? css `
77
+ rect {
78
+ fill: ${theme.color.background.neutralBaseDisabled};
79
+ stroke: ${theme.color.background.primaryDisabled};
80
+ }
81
+ rect + rect {
82
+ fill: ${theme.color.background.primaryDisabled};
83
+ stroke: none;
84
+ }
85
85
  `
86
- : css `
87
- input[type="checkbox"]:hover + & {
88
- rect {
89
- stroke: ${theme.color.background.primaryActive};
90
- }
91
- rect + rect {
92
- fill: ${theme.color.background.primaryActive};
93
- stroke: none;
94
- }
95
- }
96
- `}
86
+ : css `
87
+ input[type="checkbox"]:hover + & {
88
+ rect {
89
+ stroke: ${theme.color.background.primaryActive};
90
+ }
91
+ rect + rect {
92
+ fill: ${theme.color.background.primaryActive};
93
+ stroke: none;
94
+ }
95
+ }
96
+ `}
97
97
  `,
98
98
  })[type];
99
99
  /**
@@ -112,8 +112,8 @@ export const CheckboxInput = React.forwardRef(function CheckboxInput(props, ref)
112
112
  onChange,
113
113
  inputProps,
114
114
  };
115
- return (_jsxs(Label, Object.assign({ className: className, ref: ref, disabled: disabled !== null && disabled !== void 0 ? disabled : false }, other, { children: [_jsx(Checkbox, Object.assign({}, checkboxProps)), _jsx("span", { css: css `
116
- margin-left: 8px;
115
+ return (_jsxs(Label, Object.assign({ className: className, ref: ref, disabled: disabled !== null && disabled !== void 0 ? disabled : false }, other, { children: [_jsx(Checkbox, Object.assign({}, checkboxProps)), _jsx("span", { css: css `
116
+ margin-left: 8px;
117
117
  `, children: label })] })));
118
118
  });
119
119
  const Checkbox = React.forwardRef(function Checkbox(props, ref) {
@@ -125,38 +125,38 @@ const Checkbox = React.forwardRef(function Checkbox(props, ref) {
125
125
  : "default";
126
126
  return (_jsxs(CheckboxContainer, Object.assign({ className: className, spacer: spacer, disabled: disabled, ref: ref }, other, { children: [_jsx(StyledInput, Object.assign({ type: "checkbox" }, inputProps, { checked: checked, disabled: disabled, onClick: onClick, onChange: onChange })), _jsx(CheckboxIcon, { type: type, disabled: disabled })] })));
127
127
  });
128
- const CheckboxContainer = styled.span(({ spacer, disabled }) => css `
129
- display: inline-flex;
130
- position: relative;
131
- width: 16px;
132
- height: 16px;
133
- cursor: ${disabled ? "default" : "pointer"};
134
- margin-bottom: ${spacer ? "8px" : "0"};
128
+ const CheckboxContainer = styled.span(({ spacer, disabled }) => css `
129
+ display: inline-flex;
130
+ position: relative;
131
+ width: 16px;
132
+ height: 16px;
133
+ cursor: ${disabled ? "default" : "pointer"};
134
+ margin-bottom: ${spacer ? "8px" : "0"};
135
135
  `);
136
- const StyledInput = styled.input `
137
- cursor: inherit;
138
- position: absolute;
139
- top: 0;
140
- left: 0;
141
- opacity: 0;
142
- width: 16px;
143
- height: 16px;
144
- margin: 0;
145
- padding: 0;
146
- // input 컴포넌트는 보이지 않지만, 클릭이 가능하게 z-index를 설정합니다.
147
- z-index: ${ZINDEX.inputBase};
136
+ const StyledInput = styled.input `
137
+ cursor: inherit;
138
+ position: absolute;
139
+ top: 0;
140
+ left: 0;
141
+ opacity: 0;
142
+ width: 16px;
143
+ height: 16px;
144
+ margin: 0;
145
+ padding: 0;
146
+ // input 컴포넌트는 보이지 않지만, 클릭이 가능하게 z-index를 설정합니다.
147
+ z-index: ${ZINDEX.inputBase};
148
148
  `;
149
- const Label = styled.label `
150
- display: flex;
151
- position: relative;
152
- width: fit-content;
153
- font-size: 14px;
154
- font-weight: 500;
155
- line-height: 16px;
149
+ const Label = styled.label `
150
+ display: flex;
151
+ position: relative;
152
+ width: fit-content;
153
+ font-size: 14px;
154
+ font-weight: 500;
155
+ line-height: 16px;
156
156
  color: ${({ theme, disabled }) => disabled
157
157
  ? theme.color.foreground.neutralBaseDisabled
158
- : theme.color.foreground.neutralBase};
159
- align-self: center;
158
+ : theme.color.foreground.neutralBase};
159
+ align-self: center;
160
160
  `;
161
161
  const CheckboxIcon = (props) => {
162
162
  const theme = useTheme();
@@ -7,10 +7,10 @@ import { Button } from "./Button";
7
7
  export function FileTypeAlertDialog(props) {
8
8
  const { open, onClose, content, openFileBrowser } = props;
9
9
  const theme = useTheme();
10
- return (_jsxs(AlertDialog, { open: open, onClose: onClose, icon: _jsx(AlertFillIcon, { css: css `
11
- color: ${theme.color.background.danger};
12
- ` }), children: [_jsx(AlertDialogTitle, { css: css `
13
- font-weight: 700;
10
+ return (_jsxs(AlertDialog, { open: open, onClose: onClose, icon: _jsx(AlertFillIcon, { css: css `
11
+ color: ${theme.color.background.danger};
12
+ ` }), children: [_jsx(AlertDialogTitle, { css: css `
13
+ font-weight: 700;
14
14
  `, onClose: onClose, children: "\uD30C\uC77C \uD615\uC2DD\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694." }), _jsx(AlertDialogContent, { children: content }), _jsxs(AlertDialogActions, { children: [_jsx(Button, { color: "grey", label: "\uB2EB\uAE30", size: "medium", onClick: onClose, bold: true }), _jsx(Button, { color: "primary", label: "\uB2E4\uC2DC \uC5C5\uB85C\uB4DC", size: "medium", onClick: () => {
15
15
  onClose();
16
16
  openFileBrowser();