@team-monolith/cds 1.103.2 → 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 (184) 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/index.d.ts +1 -1
  124. package/dist/index.js +1 -1
  125. package/dist/patterns/Accordion.js +20 -20
  126. package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +58 -58
  127. package/dist/patterns/Dropdown/DropdownMenu/DropdownMenu.js +27 -27
  128. package/dist/patterns/Dropdown/DropdownMenu/style.js +19 -19
  129. package/dist/patterns/LexicalEditor/Plugins.js +36 -36
  130. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +23 -23
  131. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +4 -4
  132. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +15 -15
  133. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -2
  134. package/dist/patterns/LexicalEditor/hr.svg +3 -3
  135. package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -44
  136. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +25 -25
  137. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +8 -8
  138. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.js +60 -60
  139. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +19 -19
  140. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +49 -49
  141. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +7 -7
  142. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +73 -73
  143. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +5 -5
  144. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +7 -7
  145. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxComponent.js +69 -69
  146. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxEdit.js +3 -3
  147. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  148. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  149. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +54 -54
  150. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +61 -61
  151. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/Evaluation.js +75 -75
  152. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +17 -17
  153. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +7 -7
  154. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +28 -28
  155. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +52 -52
  156. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +7 -7
  157. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +25 -25
  158. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +53 -53
  159. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxComponent.js +54 -54
  160. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +5 -5
  161. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +21 -21
  162. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +42 -42
  163. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +71 -71
  164. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.js +51 -51
  165. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +11 -11
  166. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/menu.svg +7 -7
  167. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/plus.svg +2 -2
  168. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +10 -10
  169. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuItem.js +32 -32
  170. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuList.js +32 -32
  171. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +12 -12
  172. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +49 -49
  173. package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.js +36 -36
  174. package/dist/patterns/LexicalEditor/plugins/ParagraphPlaceholderPlugin/index.js +7 -7
  175. package/dist/patterns/LexicalEditor/theme.js +243 -243
  176. package/dist/patterns/SegmentedControl/SegmentedControlButton.js +10 -10
  177. package/dist/patterns/SegmentedControl/SegmentedControlGroup.js +8 -8
  178. package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +2 -2
  179. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +40 -40
  180. package/dist/patterns/ToggleButtonGroup/ToggleButtonGroup.js +11 -11
  181. package/dist/utils/hover.js +12 -12
  182. package/dist/utils/reset.js +19 -19
  183. package/dist/utils/visuallyHidden.js +10 -10
  184. package/package.json +92 -92
@@ -1,158 +1,158 @@
1
- import "@emotion/react";
2
-
3
- interface CodleFontFamilies {
4
- ui: string;
5
- title: string;
6
- }
7
-
8
- interface CodleColors {
9
- background: {
10
- neutralBase: string;
11
- neutralBaseActive: string;
12
- neutralBaseDisabled: string;
13
- neutralAlt: string;
14
- neutralAltActive: string;
15
- neutralAltDisabled: string;
16
- primary: string;
17
- primaryActive: string;
18
- primaryDisabled: string;
19
- secondary: string;
20
- secondaryActive: string;
21
- secondaryDisabled: string;
22
- danger: string;
23
- dangerActive: string;
24
- dangerDisabled: string;
25
- success: string;
26
- successActive: string;
27
- successDisabled: string;
28
- info: string;
29
- infoActive: string;
30
- infoDisabled: string;
31
- warning: string;
32
- warningActive: string;
33
- warningDisabled: string;
34
- inverse: string;
35
- inverseActive: string;
36
- inverseDisabled: string;
37
- };
38
- foreground: {
39
- neutralBase: string;
40
- neutralBaseActive: string;
41
- neutralBaseDisabled: string;
42
- neutralAlt: string;
43
- neutralAltActive: string;
44
- neutralAltDisabled: string;
45
- primary: string;
46
- primaryActive: string;
47
- primaryDisabled: string;
48
- secondary: string;
49
- secondaryActive: string;
50
- secondaryDisabled: string;
51
- danger: string;
52
- dangerActive: string;
53
- dangerDisabled: string;
54
- success: string;
55
- successActive: string;
56
- successDisabled: string;
57
- info: string;
58
- infoActive: string;
59
- infoDisabled: string;
60
- warning: string;
61
- warningActive: string;
62
- warningDisabled: string;
63
- };
64
- container: {
65
- blueContainer: string;
66
- blueOnContainer: string;
67
- orangeContainer: string;
68
- orangeOnContainer: string;
69
- redContainer: string;
70
- redOnContainer: string;
71
- greenContainer: string;
72
- greenOnContainer: string;
73
- tealContainer: string;
74
- tealOnContainer: string;
75
- yellowContainer: string;
76
- yellowOnContainer: string;
77
- obsidianContainer: string;
78
- obsidianOnContainer: string;
79
- marbleContainer: string;
80
- marbleOnContainer: string;
81
- };
82
- brand: {
83
- brandOriginal: string;
84
- brandAlt: string;
85
- brandAccent: string;
86
- brandFaded: string;
87
- pdf: string;
88
- pdfAlt: string;
89
- quiz: string;
90
- quizAlt: string;
91
- python: string;
92
- pythonAlt: string;
93
- embedded: string;
94
- embeddedAlt: string;
95
- board: string;
96
- boardAlt: string;
97
- scratch: string;
98
- scratchAlt: string;
99
- entry: string;
100
- entryAlt: string;
101
- video: string;
102
- videoAlt: string;
103
- worksheet: string;
104
- worksheetAlt: string;
105
- ebook: string;
106
- ebookAlt: string;
107
- makecode: string;
108
- makecodeAlt: string;
109
- codap: string;
110
- codapAlt: string;
111
- aiQuiz: string;
112
- aiQuizAlt: string;
113
-
114
- decorativeRed: string;
115
- decorativePink: string;
116
- decorativeAmber: string;
117
- decorativeGrass: string;
118
- decorativeGreen: string;
119
- decorativeBlue: string;
120
- decorativeIndigo: string;
121
- decorativePurple: string;
122
- decorativeBrown: string;
123
- decorativeCopper: string;
124
- decorativeGold: string;
125
- decorativeSilver: string;
126
- decorativeGray: string;
127
- decorativeBlack: string;
128
- decorativeRedContainer: string;
129
- decorativeRedOnContainer: string;
130
- decorativeIndigoContainer: string;
131
- decorativeIndigoOnContainer: string;
132
- decorativeGreenContainer: string;
133
- decorativeGreenOnContainer: string;
134
- decorativePurpleContainer: string;
135
- decorativePurpleOnContainer: string;
136
- decorativeGoldContainer: string;
137
- decorativeGoldOnContainer: string;
138
- decorativeGrayContainer: string;
139
- decorativeGrayOnContainer: string;
140
- decorativeBlackContainer: string;
141
- decorativeBlackOnContainer: string;
142
- };
143
- blanket: {
144
- neutral: string;
145
- neutralLight: string;
146
- neutralHeavy: string;
147
- inverse: string;
148
- inverseLight: string;
149
- inverseHeavy: string;
150
- };
151
- }
152
-
153
- declare module "@emotion/react" {
154
- export interface Theme {
155
- color: CodleColors;
156
- fontFamily: CodleFontFamilies;
157
- }
158
- }
1
+ import "@emotion/react";
2
+
3
+ interface CodleFontFamilies {
4
+ ui: string;
5
+ title: string;
6
+ }
7
+
8
+ interface CodleColors {
9
+ background: {
10
+ neutralBase: string;
11
+ neutralBaseActive: string;
12
+ neutralBaseDisabled: string;
13
+ neutralAlt: string;
14
+ neutralAltActive: string;
15
+ neutralAltDisabled: string;
16
+ primary: string;
17
+ primaryActive: string;
18
+ primaryDisabled: string;
19
+ secondary: string;
20
+ secondaryActive: string;
21
+ secondaryDisabled: string;
22
+ danger: string;
23
+ dangerActive: string;
24
+ dangerDisabled: string;
25
+ success: string;
26
+ successActive: string;
27
+ successDisabled: string;
28
+ info: string;
29
+ infoActive: string;
30
+ infoDisabled: string;
31
+ warning: string;
32
+ warningActive: string;
33
+ warningDisabled: string;
34
+ inverse: string;
35
+ inverseActive: string;
36
+ inverseDisabled: string;
37
+ };
38
+ foreground: {
39
+ neutralBase: string;
40
+ neutralBaseActive: string;
41
+ neutralBaseDisabled: string;
42
+ neutralAlt: string;
43
+ neutralAltActive: string;
44
+ neutralAltDisabled: string;
45
+ primary: string;
46
+ primaryActive: string;
47
+ primaryDisabled: string;
48
+ secondary: string;
49
+ secondaryActive: string;
50
+ secondaryDisabled: string;
51
+ danger: string;
52
+ dangerActive: string;
53
+ dangerDisabled: string;
54
+ success: string;
55
+ successActive: string;
56
+ successDisabled: string;
57
+ info: string;
58
+ infoActive: string;
59
+ infoDisabled: string;
60
+ warning: string;
61
+ warningActive: string;
62
+ warningDisabled: string;
63
+ };
64
+ container: {
65
+ blueContainer: string;
66
+ blueOnContainer: string;
67
+ orangeContainer: string;
68
+ orangeOnContainer: string;
69
+ redContainer: string;
70
+ redOnContainer: string;
71
+ greenContainer: string;
72
+ greenOnContainer: string;
73
+ tealContainer: string;
74
+ tealOnContainer: string;
75
+ yellowContainer: string;
76
+ yellowOnContainer: string;
77
+ obsidianContainer: string;
78
+ obsidianOnContainer: string;
79
+ marbleContainer: string;
80
+ marbleOnContainer: string;
81
+ };
82
+ brand: {
83
+ brandOriginal: string;
84
+ brandAlt: string;
85
+ brandAccent: string;
86
+ brandFaded: string;
87
+ pdf: string;
88
+ pdfAlt: string;
89
+ quiz: string;
90
+ quizAlt: string;
91
+ python: string;
92
+ pythonAlt: string;
93
+ embedded: string;
94
+ embeddedAlt: string;
95
+ board: string;
96
+ boardAlt: string;
97
+ scratch: string;
98
+ scratchAlt: string;
99
+ entry: string;
100
+ entryAlt: string;
101
+ video: string;
102
+ videoAlt: string;
103
+ worksheet: string;
104
+ worksheetAlt: string;
105
+ ebook: string;
106
+ ebookAlt: string;
107
+ makecode: string;
108
+ makecodeAlt: string;
109
+ codap: string;
110
+ codapAlt: string;
111
+ aiQuiz: string;
112
+ aiQuizAlt: string;
113
+
114
+ decorativeRed: string;
115
+ decorativePink: string;
116
+ decorativeAmber: string;
117
+ decorativeGrass: string;
118
+ decorativeGreen: string;
119
+ decorativeBlue: string;
120
+ decorativeIndigo: string;
121
+ decorativePurple: string;
122
+ decorativeBrown: string;
123
+ decorativeCopper: string;
124
+ decorativeGold: string;
125
+ decorativeSilver: string;
126
+ decorativeGray: string;
127
+ decorativeBlack: string;
128
+ decorativeRedContainer: string;
129
+ decorativeRedOnContainer: string;
130
+ decorativeIndigoContainer: string;
131
+ decorativeIndigoOnContainer: string;
132
+ decorativeGreenContainer: string;
133
+ decorativeGreenOnContainer: string;
134
+ decorativePurpleContainer: string;
135
+ decorativePurpleOnContainer: string;
136
+ decorativeGoldContainer: string;
137
+ decorativeGoldOnContainer: string;
138
+ decorativeGrayContainer: string;
139
+ decorativeGrayOnContainer: string;
140
+ decorativeBlackContainer: string;
141
+ decorativeBlackOnContainer: string;
142
+ };
143
+ blanket: {
144
+ neutral: string;
145
+ neutralLight: string;
146
+ neutralHeavy: string;
147
+ inverse: string;
148
+ inverseLight: string;
149
+ inverseHeavy: string;
150
+ };
151
+ }
152
+
153
+ declare module "@emotion/react" {
154
+ export interface Theme {
155
+ color: CodleColors;
156
+ fontFamily: CodleFontFamilies;
157
+ }
158
+ }
package/README.md CHANGED
@@ -1,35 +1,35 @@
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 compile` 후 `npm publish` 를 사용하여 npm 에 배포합니다.
34
-
35
- 이때 npm team-monolith 에 소속되어 있어야 합니다.
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 compile` 후 `npm publish` 를 사용하여 npm 에 배포합니다.
34
+
35
+ 이때 npm team-monolith 에 소속되어 있어야 합니다.
@@ -318,9 +318,9 @@ export function CdsProvider(props) {
318
318
  },
319
319
  });
320
320
  const { theme = light } = props;
321
- return (_jsxs(_Fragment, { children: [_jsx(Global, { styles: css `
322
- body {
323
- font-family: ${FONT.pretendard};
324
- }
321
+ return (_jsxs(_Fragment, { children: [_jsx(Global, { styles: css `
322
+ body {
323
+ font-family: ${FONT.pretendard};
324
+ }
325
325
  ` }), _jsx(MuiThemeProvider, { theme: muiTheme, children: _jsx(ThemeProvider, { theme: theme, children: _jsx(CdsContext.Provider, { value: props, children: props.children }) }) })] }));
326
326
  }
@@ -25,62 +25,62 @@ export const AlertDialog = React.forwardRef(function AlertDialog(props, ref) {
25
25
  const paddingAreaName = disableIconPadding ? "content" : "iconPadding";
26
26
  return (_jsx(Modal, Object.assign({ open: open, onClose: onClose, ref: ref, sx: {
27
27
  zIndex: ZINDEX.ALERT,
28
- } }, other, { children: _jsxs(Component, { className: className, css: css `
29
- width: 480px;
30
- max-height: calc(100% - 48px);
31
- background: ${theme.color.background.neutralBase};
32
- box-shadow: ${shadows.shadow04};
33
- border-radius: 16px;
34
- position: absolute;
35
- top: 50%;
36
- left: 50%;
37
- transform: translate(-50%, -50%);
38
- padding: 24px;
39
- box-sizing: border-box;
40
-
41
- display: grid;
42
- grid-template-rows: auto 1fr auto;
28
+ } }, other, { children: _jsxs(Component, { className: className, css: css `
29
+ width: 480px;
30
+ max-height: calc(100% - 48px);
31
+ background: ${theme.color.background.neutralBase};
32
+ box-shadow: ${shadows.shadow04};
33
+ border-radius: 16px;
34
+ position: absolute;
35
+ top: 50%;
36
+ left: 50%;
37
+ transform: translate(-50%, -50%);
38
+ padding: 24px;
39
+ box-sizing: border-box;
40
+
41
+ display: grid;
42
+ grid-template-rows: auto 1fr auto;
43
43
  ${icon
44
- ? css `
45
- grid-template-columns: 32px 1fr;
46
- grid-template-areas:
47
- "icon title"
48
- "${paddingAreaName} content"
49
- "actions actions";
44
+ ? css `
45
+ grid-template-columns: 32px 1fr;
46
+ grid-template-areas:
47
+ "icon title"
48
+ "${paddingAreaName} content"
49
+ "actions actions";
50
50
  `
51
- : css `
52
- grid-template-areas:
53
- "title"
54
- "content"
55
- "actions";
56
- `}
57
-
58
- gap: 8px 16px;
59
-
60
- ${MOBILE(css `
61
- width: calc(100% - 24px);
62
- grid-template-columns: auto;
63
- grid-template-areas:
64
- "title"
65
- "content"
66
- "actions";
67
- `)}
51
+ : css `
52
+ grid-template-areas:
53
+ "title"
54
+ "content"
55
+ "actions";
56
+ `}
57
+
58
+ gap: 8px 16px;
59
+
60
+ ${MOBILE(css `
61
+ width: calc(100% - 24px);
62
+ grid-template-columns: auto;
63
+ grid-template-areas:
64
+ "title"
65
+ "content"
66
+ "actions";
67
+ `)}
68
68
  `, children: [icon && _jsx(IconDiv, { children: icon }), _jsx(AlertDialogContext.Provider, { value: { icon }, children: children })] }) })));
69
69
  });
70
- const IconDiv = styled.div `
71
- display: flex;
72
- justify-content: center;
73
- align-items: center;
74
- grid-area: icon;
75
- ${({ theme }) => css `
76
- color: ${theme.color.background.infoActive};
77
- `}
78
- svg {
79
- width: 32px;
80
- height: 32px;
81
- }
82
-
83
- ${MOBILE(css `
84
- display: none;
85
- `)}
70
+ const IconDiv = styled.div `
71
+ display: flex;
72
+ justify-content: center;
73
+ align-items: center;
74
+ grid-area: icon;
75
+ ${({ theme }) => css `
76
+ color: ${theme.color.background.infoActive};
77
+ `}
78
+ svg {
79
+ width: 32px;
80
+ height: 32px;
81
+ }
82
+
83
+ ${MOBILE(css `
84
+ display: none;
85
+ `)}
86
86
  `;
@@ -15,12 +15,12 @@ import { css } from "@emotion/react";
15
15
  import React from "react";
16
16
  export const AlertDialogActions = React.forwardRef(function AlertDialogActions(props, ref) {
17
17
  const { className, component: Component = "div", children } = props, other = __rest(props, ["className", "component", "children"]);
18
- return (_jsx(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
19
- grid-area: actions;
20
-
21
- margin-top: 8px;
22
- display: flex;
23
- gap: 8px;
24
- justify-content: flex-end;
18
+ return (_jsx(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
19
+ grid-area: actions;
20
+
21
+ margin-top: 8px;
22
+ display: flex;
23
+ gap: 8px;
24
+ justify-content: flex-end;
25
25
  `, children: children })));
26
26
  });
@@ -16,13 +16,13 @@ import React from "react";
16
16
  export const AlertDialogContent = React.forwardRef(function AlertDialogContent(props, ref) {
17
17
  const { className, component: Component = "div", children } = props, other = __rest(props, ["className", "component", "children"]);
18
18
  const theme = useTheme();
19
- return (_jsx(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
20
- grid-area: content;
21
-
22
- font-style: normal;
23
- font-size: 18px;
24
- line-height: 28px;
25
- color: ${theme.color.foreground.neutralBase};
26
- overflow-y: auto;
19
+ return (_jsx(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
20
+ grid-area: content;
21
+
22
+ font-style: normal;
23
+ font-size: 18px;
24
+ line-height: 28px;
25
+ color: ${theme.color.foreground.neutralBase};
26
+ overflow-y: auto;
27
27
  `, children: children })));
28
28
  });
@@ -21,38 +21,39 @@ export const AlertDialogTitle = React.forwardRef(function AlertDialogTitle(props
21
21
  const { className, component: Component = "div", onClose, children } = props, other = __rest(props, ["className", "component", "onClose", "children"]);
22
22
  const { icon } = React.useContext(AlertDialogContext);
23
23
  const theme = useTheme();
24
- return (_jsx(_Fragment, { children: _jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
25
- grid-area: title;
26
- font-family: ${theme.fontFamily.ui};
27
- font-style: normal;
28
- font-weight: 700;
29
- font-size: 20px;
30
- line-height: 28px; /* 140% */
31
- letter-spacing: 0.25px;
32
-
33
- color: ${theme.color.foreground.neutralBase};
34
- text-align: center;
35
-
36
- display: flex;
37
- justify-content: space-between;
38
- `, children: [_jsxs("div", { css: css `
39
- display: flex;
40
- flex-direction: column;
41
- justify-content: center;
42
- align-items: flex-start;
43
- gap: 16px;
44
- `, children: [icon && (_jsx("div", { css: css `
45
- display: none;
46
- ${MOBILE(css `
47
- display: flex;
48
- justify-content: center;
49
- align-items: center;
50
- color: ${theme.color.background.infoActive};
51
-
52
- svg {
53
- width: 32px;
54
- height: 32px;
55
- }
56
- `)}
24
+ return (_jsx(_Fragment, { children: _jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
25
+ grid-area: title;
26
+ font-family: ${theme.fontFamily.ui};
27
+ font-style: normal;
28
+ font-weight: 700;
29
+ font-size: 20px;
30
+ line-height: 28px; /* 140% */
31
+ letter-spacing: 0.25px;
32
+
33
+ color: ${theme.color.foreground.neutralBase};
34
+ text-align: center;
35
+
36
+ display: flex;
37
+ justify-content: space-between;
38
+ `, children: [_jsxs("div", { css: css `
39
+ display: flex;
40
+ flex-direction: column;
41
+ justify-content: center;
42
+ align-items: flex-start;
43
+ gap: 16px;
44
+ text-align: left;
45
+ `, children: [icon && (_jsx("div", { css: css `
46
+ display: none;
47
+ ${MOBILE(css `
48
+ display: flex;
49
+ justify-content: center;
50
+ align-items: center;
51
+ color: ${theme.color.background.infoActive};
52
+
53
+ svg {
54
+ width: 32px;
55
+ height: 32px;
56
+ }
57
+ `)}
57
58
  `, children: icon })), children] }), onClose && (_jsx(SquareButton, { color: "icon", size: "small", icon: _jsx(CloseFillIcon, {}), onClick: onClose, "aria-label": "\uB2EB\uAE30" }))] })) }));
58
59
  });