@team-monolith/cds 1.61.1 → 1.61.3

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.
@@ -106,6 +106,20 @@ interface CodleColors {
106
106
  ebookAlt: string;
107
107
  makecode: string;
108
108
  makecodeAlt: string;
109
+ decorativeRed: string;
110
+ decorativePink: string;
111
+ decorativeAmber: string;
112
+ decorativeGrass: string;
113
+ decorativeGreen: string;
114
+ decorativeBlue: string;
115
+ decorativeIndigo: string;
116
+ decorativePurple: string;
117
+ decorativeBrown: string;
118
+ decorativeCopper: string;
119
+ decorativeGold: string;
120
+ decorativeSilver: string;
121
+ decorativeGray: string;
122
+ decorativeBlack: string;
109
123
  };
110
124
  blanket: {
111
125
  neutral: string;
@@ -111,6 +111,20 @@ export const light = {
111
111
  ebookAlt: "#E0F2FF",
112
112
  makecode: "#AA278F",
113
113
  makecodeAlt: "#FFE0F9",
114
+ decorativeRed: "#D73152",
115
+ decorativePink: "#D13D78",
116
+ decorativeAmber: "#CC4827",
117
+ decorativeGrass: "#6E7B3F",
118
+ decorativeGreen: "#26864B",
119
+ decorativeBlue: "#0076D0",
120
+ decorativeIndigo: "#5863FF",
121
+ decorativePurple: "#9A3BBC",
122
+ decorativeBrown: "#996C49",
123
+ decorativeCopper: "#8A6470",
124
+ decorativeGold: "#876E3F",
125
+ decorativeSilver: "#6A7781",
126
+ decorativeGray: "#747474",
127
+ decorativeBlack: "#474658",
114
128
  },
115
129
  blanket: {
116
130
  neutral: COLOR.alpha030,
@@ -228,6 +242,20 @@ export const dark = {
228
242
  ebookAlt: "#475966",
229
243
  makecode: "#AA278F",
230
244
  makecodeAlt: "#664760",
245
+ decorativeRed: "#D73152",
246
+ decorativePink: "#D13D78",
247
+ decorativeAmber: "#CC4827",
248
+ decorativeGrass: "#6E7B3F",
249
+ decorativeGreen: "#26864B",
250
+ decorativeBlue: "#0076D0",
251
+ decorativeIndigo: "#5863FF",
252
+ decorativePurple: "#9A3BBC",
253
+ decorativeBrown: "#996C49",
254
+ decorativeCopper: "#8A6470",
255
+ decorativeGold: "#876E3F",
256
+ decorativeSilver: "#6A7781",
257
+ decorativeGray: "#747474",
258
+ decorativeBlack: "#474658",
231
259
  },
232
260
  blanket: {
233
261
  neutral: COLOR.alphaf20,
@@ -2,8 +2,8 @@ import React from "react";
2
2
  export interface BookProps {
3
3
  className?: string;
4
4
  title?: string;
5
- chapter?: string;
6
- courseType?: string;
5
+ subtitle?: string;
6
+ subtitleBold?: string;
7
7
  isHidden?: boolean;
8
8
  buttons?: React.ReactNode;
9
9
  /** 전달하면 controlled component로 애니메이션을 제어할 수 있다 */
@@ -73,7 +73,7 @@ const CARD_COLOR_PALETTE = (theme) => ({
73
73
  * @returns
74
74
  */
75
75
  function Book(props, ref) {
76
- const { className, title, chapter, courseType, coverColor, isHidden = false, buttons, open: controlledOpen, onHoverStart, onHoverEnd, onCoverClick, icon, } = props;
76
+ const { className, title, subtitle, subtitleBold, coverColor, isHidden = false, buttons, open: controlledOpen, onHoverStart, onHoverEnd, onCoverClick, icon, } = props;
77
77
  const theme = useTheme();
78
78
  const [open, setOpen] = useState(false);
79
79
  return (_jsxs(Container, Object.assign({ initial: "closed", animate: (controlledOpen !== undefined ? controlledOpen : open)
@@ -97,7 +97,9 @@ function Book(props, ref) {
97
97
 
98
98
  width: 24px;
99
99
  height: 24px;
100
- ` })] })), _jsxs(CoverTexts, Object.assign({ variants: buttons ? textMotion : undefined }, { children: [_jsx(Chapter, { children: chapter }), _jsx(CourseType, { children: courseType }), _jsx(CoverTitle, { children: title })] })), _jsx(BookGradient, {}), _jsx(Buttons, Object.assign({ variants: buttonsMotion, onClick: (e) => {
100
+ ` })] })), _jsxs(CoverTexts, Object.assign({ variants: buttons ? textMotion : undefined }, { children: [_jsx(Subtitle, { children: subtitle }), _jsx(Subtitle, Object.assign({ css: css `
101
+ font-weight: 800;
102
+ ` }, { children: subtitleBold })), _jsx(CoverTitle, { children: title })] })), _jsx(BookGradient, {}), _jsx(Buttons, Object.assign({ variants: buttonsMotion, onClick: (e) => {
101
103
  // Button 클릭 시에도 CoverClick 이벤트가 발생하지 않도록 막습니다.
102
104
  e.stopPropagation();
103
105
  } }, { children: buttons }))] })), _jsx(Shelf, {})] })));
@@ -224,7 +226,7 @@ const Hide = styled.div(({ theme }) => css `
224
226
 
225
227
  z-index: ${ZINDEX_HIDE};
226
228
  `);
227
- const Chapter = styled.div(({ theme }) => css `
229
+ const Subtitle = styled.div(({ theme }) => css `
228
230
  color: ${CARD_COLOR_PALETTE(theme).text};
229
231
 
230
232
  /* Default/Label/12px-Md */
@@ -233,20 +235,6 @@ const Chapter = styled.div(({ theme }) => css `
233
235
  font-style: normal;
234
236
  font-weight: 500;
235
237
  line-height: 16px; /* 133.333% */
236
-
237
- opacity: 0.8;
238
- `);
239
- const CourseType = styled.div(({ theme }) => css `
240
- color: ${CARD_COLOR_PALETTE(theme).text};
241
-
242
- /* Default/Label/12px-Eb */
243
- font-family: ${theme.fontFamily.ui};
244
- font-size: 12px;
245
- font-style: normal;
246
- font-weight: 800;
247
- line-height: 16px; /* 133.333% */
248
-
249
- opacity: 0.8;
250
238
  `);
251
239
  const CoverIcon = styled.div(({ theme }) => css `
252
240
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.61.1",
3
+ "version": "1.61.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,