@team-monolith/cds 1.76.3 → 1.76.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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface ProgressInfo {
|
|
3
3
|
/** 프로그레스 바 상단에 표시되는 텍스트 */
|
|
4
|
-
|
|
4
|
+
title: string;
|
|
5
5
|
/** 프로그레스 바 진행도 (0 ~ 1 사이 숫자) */
|
|
6
|
-
|
|
6
|
+
value: number;
|
|
7
7
|
/** 프로그레스 바 배경 및 텍스트 색상 */
|
|
8
|
-
|
|
8
|
+
baseColor: string;
|
|
9
9
|
/** 프로그레스 바 진행도 색상 */
|
|
10
|
-
|
|
10
|
+
barColor: string;
|
|
11
11
|
}
|
|
12
12
|
export interface BookProps {
|
|
13
13
|
className?: string;
|
|
@@ -98,28 +98,28 @@ function Book(props, ref) {
|
|
|
98
98
|
` })] })), _jsxs(CoverTexts, Object.assign({ variants: buttons ? textMotion : undefined }, { children: [_jsx(Subtitle, { children: subtitle }), _jsx(Subtitle, Object.assign({ css: css `
|
|
99
99
|
font-weight: 800;
|
|
100
100
|
` }, { children: subtitleBold })), _jsx(CoverTitle, Object.assign({ showProgress: Boolean(progressInfo) }, { children: title })), progressInfo && (_jsxs(Progress, { children: [_jsx("div", Object.assign({ css: css `
|
|
101
|
-
color: ${progressInfo.
|
|
102
|
-
` }, { children: progressInfo.
|
|
101
|
+
color: ${progressInfo.baseColor};
|
|
102
|
+
` }, { children: progressInfo.title })), _jsxs("div", Object.assign({ css: css `
|
|
103
103
|
display: flex;
|
|
104
104
|
justify-content: space-between;
|
|
105
105
|
align-items: center;
|
|
106
106
|
` }, { children: [_jsx("div", Object.assign({ css: css `
|
|
107
107
|
overflow: hidden;
|
|
108
|
-
background-color: ${progressInfo.
|
|
108
|
+
background-color: ${progressInfo.baseColor};
|
|
109
109
|
width: 128px;
|
|
110
110
|
height: 6px;
|
|
111
111
|
border-radius: 3px;
|
|
112
112
|
` }, { children: _jsx("div", { css: css `
|
|
113
|
-
background-color: ${progressInfo.
|
|
114
|
-
width: ${progressInfo.
|
|
113
|
+
background-color: ${progressInfo.barColor};
|
|
114
|
+
width: ${progressInfo.value * 100}%;
|
|
115
115
|
height: 6px;
|
|
116
116
|
` }) })), _jsxs("div", Object.assign({ css: css `
|
|
117
|
-
color: ${progressInfo.
|
|
117
|
+
color: ${progressInfo.baseColor};
|
|
118
118
|
width: 32px;
|
|
119
119
|
display: flex;
|
|
120
120
|
justify-content: center;
|
|
121
121
|
align-items: center;
|
|
122
|
-
` }, { children: [Math.round(progressInfo.
|
|
122
|
+
` }, { children: [Math.round(progressInfo.value * 100), "%"] }))] }))] }))] })), _jsx(BookGradient, {}), _jsx(Buttons, Object.assign({ variants: buttonsMotion, onClick: (e) => {
|
|
123
123
|
// Button 클릭 시에도 CoverClick 이벤트가 발생하지 않도록 막습니다.
|
|
124
124
|
e.stopPropagation();
|
|
125
125
|
} }, { children: buttons }))] })), _jsx(Shelf, {})] })));
|