@team-monolith/cds 1.104.0 → 1.105.0
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,7 +106,7 @@ export const Book = forwardRef(function Book(props, ref) {
|
|
|
106
106
|
display: flex;
|
|
107
107
|
gap: 4px;
|
|
108
108
|
flex-wrap: wrap;
|
|
109
|
-
`, children: tagsProps.map((tagProps) => (_jsx(Tag, Object.assign({}, tagProps),
|
|
109
|
+
`, children: tagsProps.map((tagProps, index) => (_jsx(Tag, Object.assign({}, tagProps), index))) })), _jsx(Subtitle, { children: subtitle }), _jsx(Subtitle, { css: css `
|
|
110
110
|
font-weight: 800;
|
|
111
111
|
`, children: subtitleBold }), _jsx(CoverTitle, { showProgress: Boolean(progressInfo), children: title }), progressInfo && (_jsxs(Progress, { children: [_jsx("div", { className: bookClasses.progressText, children: progressInfo.title }), _jsxs("div", { css: css `
|
|
112
112
|
display: flex;
|
package/dist/components/Tag.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export type TagColor = "default" | "red" | "teal" | "orange" | "blue" | "green"
|
|
|
3
3
|
export interface TagProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
component?: React.ElementType;
|
|
6
|
-
/** 컴포넌트 내 표기될
|
|
7
|
-
label:
|
|
6
|
+
/** 컴포넌트 내 표기될 ReactNode */
|
|
7
|
+
label: React.ReactNode;
|
|
8
8
|
/** 컴포넌트 좌측에 표기될 아이콘 */
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
/** 컴포넌트의 색상 */
|