@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.
@@ -9,6 +9,8 @@ export interface TagProps {
9
9
  icon?: React.ReactNode;
10
10
  /** 컴포넌트의 색상 */
11
11
  color?: TagColor;
12
+ /** 라벨 텍스트의 굵기 여부 */
13
+ bold?: boolean;
12
14
  /** 컴포넌트 우측에 표기될 닫기 버튼 유무 */
13
15
  close?: boolean;
14
16
  /** 닫기 버튼 클릭 시 호출될 콜백 함수 */
@@ -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, {})] })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.58.1",
3
+ "version": "1.59.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,