@team-monolith/cds 1.58.1 → 1.59.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.
package/dist/components/Tag.d.ts
CHANGED
package/dist/components/Tag.js
CHANGED
|
@@ -68,7 +68,7 @@ const COLOR_TO_STYLE = (theme, color) => ({
|
|
|
68
68
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=42-869&t=HZXCHP0r0tbvMA6v-0)
|
|
69
69
|
*/
|
|
70
70
|
const Tag = React.forwardRef((props, ref) => {
|
|
71
|
-
const { className, component: Component = "span", label, icon, color = "default", close, onClick } = props, other = __rest(props, ["className", "component", "label", "icon", "color", "close", "onClick"]);
|
|
71
|
+
const { className, component: Component = "span", label, icon, color = "default", bold, close, onClick } = props, other = __rest(props, ["className", "component", "label", "icon", "color", "bold", "close", "onClick"]);
|
|
72
72
|
const theme = useTheme();
|
|
73
73
|
return (_jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: [
|
|
74
74
|
css `
|
|
@@ -94,7 +94,7 @@ const Tag = React.forwardRef((props, ref) => {
|
|
|
94
94
|
`
|
|
95
95
|
: undefined,
|
|
96
96
|
], onClick: onClick }, { children: [icon, _jsx("span", Object.assign({ css: css `
|
|
97
|
-
font-weight: 400;
|
|
97
|
+
font-weight: ${bold ? 700 : 400};
|
|
98
98
|
font-size: 12px;
|
|
99
99
|
line-height: 20px;
|
|
100
100
|
` }, { children: label })), close && _jsx(StyledCloseFillIcon, {})] })));
|