@loword/loword-design-system 0.5.6 → 0.5.7

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.
@@ -10,7 +10,7 @@ export declare const CalloutBase: {
10
10
  className?: string;
11
11
  }) => import("react/jsx-runtime").JSX.Element | null;
12
12
  Description: (props: {
13
- description?: string;
13
+ description?: ReactNode;
14
14
  className?: string;
15
15
  }) => import("react/jsx-runtime").JSX.Element | null;
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CalloutBase.d.ts","sourceRoot":"","sources":["../../../src/components/LDCallout/CalloutBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIvD,UAAU,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAqCD,eAAO,MAAM,WAAW;mDAnC8B,SAAS;mBAezC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;yBAUhC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;CAcvE,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"CalloutBase.d.ts","sourceRoot":"","sources":["../../../src/components/LDCallout/CalloutBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIvD,UAAU,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAwCD,eAAO,MAAM,WAAW;mDAtC8B,SAAS;mBAezC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;yBAUhC;QAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CAcA,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { type ReactNode } from 'react';
2
2
  interface INoticeProps {
3
3
  title: string;
4
- description?: string;
4
+ /** 일부만 굵게 하는 등 마크업이 필요하면 ReactNode 로 넘깁니다. */
5
+ description?: ReactNode;
5
6
  button?: ReactNode;
6
7
  className?: string;
8
+ /** 제목·설명을 묶는 영역 className (기본 `flex flex-col gap-xs`) */
9
+ contentClassName?: string;
10
+ /** 제목 className (기본 `display16 extrabold text-lb500`) */
11
+ titleClassName?: string;
12
+ /** 설명 className (기본 `display14 text-lb500`) */
13
+ descriptionClassName?: string;
7
14
  }
8
15
  declare const LDCallout: (props: INoticeProps) => import("react/jsx-runtime").JSX.Element;
9
16
  export default LDCallout;
@@ -1 +1 @@
1
- {"version":3,"file":"LDCallout.d.ts","sourceRoot":"","sources":["../../../src/components/LDCallout/LDCallout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,GAAI,OAAO,YAAY,4CAUrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"LDCallout.d.ts","sourceRoot":"","sources":["../../../src/components/LDCallout/LDCallout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,QAAA,MAAM,SAAS,GAAI,OAAO,YAAY,4CAgBrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import CalloutBase from '../../components/LDCallout/CalloutBase.js';
3
+ import cn from '../../utils/cn.js';
3
4
  const LDCallout = (props) => {
4
- return (_jsxs(CalloutBase.Root, { className: props.className, children: [_jsxs("div", { className: "flex flex-col gap-xs", children: [_jsx(CalloutBase.Title, { title: props.title }), _jsx(CalloutBase.Description, { description: props.description })] }), props.button] }));
5
+ return (_jsxs(CalloutBase.Root, { className: props.className, children: [_jsxs("div", { className: cn('flex flex-col gap-xs', props.contentClassName), children: [_jsx(CalloutBase.Title, { title: props.title, className: props.titleClassName }), _jsx(CalloutBase.Description, { description: props.description, className: props.descriptionClassName })] }), props.button] }));
5
6
  };
6
7
  export default LDCallout;
package/dist/index.css CHANGED
@@ -2259,6 +2259,10 @@
2259
2259
  .rounded-xs {
2260
2260
  border-radius: var(--radius-xs);
2261
2261
  }
2262
+ .rounded-t-\[5px\] {
2263
+ border-top-left-radius: 5px;
2264
+ border-top-right-radius: 5px;
2265
+ }
2262
2266
  .rounded-t-\[10px\] {
2263
2267
  border-top-left-radius: 10px;
2264
2268
  border-top-right-radius: 10px;
@@ -1 +1 @@
1
- {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAyE7C,QAAA,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,WAElC,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AA4E7C,QAAA,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,WAElC,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/dist/utils/cn.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { clsx } from 'clsx';
2
- import { extendTailwindMerge } from 'tailwind-merge';
2
+ import { extendTailwindMerge, validators } from 'tailwind-merge';
3
3
  // 커스텀 타이포 유틸을 twMerge 그룹에 등록해, 프리셋과 className이 상충하면
4
4
  // 뒤(className)가 이기게 함. (typography.css의 @utility 목록과 반드시 일치시킬 것)
5
5
  const DISPLAY_SIZES = [
@@ -49,6 +49,9 @@ const twMerge = extendTailwindMerge({
49
49
  extend: {
50
50
  theme: {
51
51
  spacing: SPACING,
52
+ // 소비처가 `--radius-8` 처럼 숫자 이름으로 정의한 rounded-* 를 radius 로 인식시켜,
53
+ // 프리셋의 rounded-[5px] 와 상충하면 className 이 이기게 함. (기본 설정은 sm·lg 같은 이름만 앎)
54
+ radius: [validators.isNumber],
52
55
  },
53
56
  classGroups: {
54
57
  'font-size': DISPLAY_SIZES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loword/loword-design-system",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "로워드 디자인 시스템 컴포넌트 패키지(Tailwind v4)",
5
5
  "keywords": [
6
6
  "react",