@t3q-ui/design-system 1.58.0 → 1.59.1
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/CHANGELOG.md +17 -0
- package/dist/{chunk-IYDQLTRF.cjs → chunk-2T6PIVRA.cjs} +43 -4
- package/dist/chunk-2T6PIVRA.cjs.map +1 -0
- package/dist/{chunk-UNNNNYKG.js → chunk-4VVIGFI2.js} +42 -5
- package/dist/chunk-4VVIGFI2.js.map +1 -0
- package/dist/{index-3laRfJM7.d.cts → index-kM4bOlin.d.cts} +13 -3
- package/dist/{index-3laRfJM7.d.ts → index-kM4bOlin.d.ts} +13 -3
- package/dist/index.cjs +478 -458
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/patterns/index.cjs +69 -69
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/tds/SKILL.md +4 -3
- package/skills/tds/reference/components.md +6 -6
- package/dist/chunk-IYDQLTRF.cjs.map +0 -1
- package/dist/chunk-UNNNNYKG.js.map +0 -1
|
@@ -155,7 +155,7 @@ type PageHeaderState = {
|
|
|
155
155
|
/** 제목 아래 메타. 상세 화면의 핵심 정보는 여기 한 곳 — 여러 개면 `MetaGroup` + `MetaItem` — 가로로 흘려 다음 줄로(2026-10-30 사용자 결정: 메타 자리를 두 개로 나누지 않는다, 2026-11-06 격자 대신 흘림) */
|
|
156
156
|
meta?: ReactNode;
|
|
157
157
|
actions?: ReactNode;
|
|
158
|
-
/**
|
|
158
|
+
/** 제목 오른쪽 자리. 정보가 있는 작은 행동만 둔다(예: `PageHeaderRefreshButton`). 상태는 `status`·`meta` 에 두고, 장식 Tag·Badge·글자는 넣지 않는다(2026-11-06). */
|
|
159
159
|
titleRight?: ReactNode;
|
|
160
160
|
bottomLeft?: ReactNode;
|
|
161
161
|
bottomRight?: ReactNode;
|
|
@@ -198,7 +198,7 @@ type AgGridTableType = AgGridReactProps & {
|
|
|
198
198
|
*
|
|
199
199
|
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
200
200
|
* 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
|
|
201
|
-
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름
|
|
201
|
+
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. 글자 열이 하나뿐이면 표가 남는 폭을 150 이상 고정 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한 열만 부풀지 않는다.
|
|
202
202
|
*/
|
|
203
203
|
declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
|
|
204
204
|
containerStyle?: CSSProperties;
|
|
@@ -224,6 +224,16 @@ declare function estimateHeaderTextWidth(label: string): number;
|
|
|
224
224
|
* 끝나 빈 띠가 남는다(2026-10-28 홀드아웃 14: 이름 열 하나만 `flex: 2, maxWidth: 480` 이고 나머지가 고정 폭, "row dividers stop around 1330px",
|
|
225
225
|
* Opus·Gemini). 상한 없는 flex 열이 하나라도 있거나 flex 열이 없으면 그대로(같은 배열). 런타임에 열을 숨겨 생기는 경우는 다루지 않는다 */
|
|
226
226
|
declare function withFlexFill<T>(defs: T): T;
|
|
227
|
+
/** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
|
|
228
|
+
declare const BALANCED_FILL_MIN_WIDTH = 150;
|
|
229
|
+
/**
|
|
230
|
+
* 보이는 flex 열이 **하나뿐**이면 남는 폭을 그 열이 혼자 받지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
|
|
231
|
+
* `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 그 flex 열은 `flex` 를 최소 2 로 올린다. 그러면 남는 폭이 글자 열 2 : 나머지 1 로 흩어진다.
|
|
232
|
+
* 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
|
|
233
|
+
* 세 심판 → 패; 세트 2 도 "large empty gap", Opus 3건). 홀드아웃 14·17 의 "이름 열 과대" 도 같은 원인. flex 열이 없거나 둘 이상이면 그대로(같은 배열).
|
|
234
|
+
* 앱이 이미 여러 열에 flex 를 줬으면 그 분배를 존중한다. 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
|
|
235
|
+
*/
|
|
236
|
+
declare function withBalancedFill<T>(defs: T): T;
|
|
227
237
|
/** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
|
|
228
238
|
declare const NUMBER_COLUMN_WIDTH = 140;
|
|
229
239
|
/** `type: 'number'` 열에 width·flex·minWidth·maxWidth 가 모두 없으면 `width: 140`(그룹 children 재귀). 폭을 하나라도 줬으면 그대로 */
|
|
@@ -251,4 +261,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
|
|
|
251
261
|
*/
|
|
252
262
|
declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
|
|
253
263
|
|
|
254
|
-
export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P,
|
|
264
|
+
export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, type TwoLineCellRendererParams as Y, TwoLineCellRenderer as Z, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };
|
|
@@ -155,7 +155,7 @@ type PageHeaderState = {
|
|
|
155
155
|
/** 제목 아래 메타. 상세 화면의 핵심 정보는 여기 한 곳 — 여러 개면 `MetaGroup` + `MetaItem` — 가로로 흘려 다음 줄로(2026-10-30 사용자 결정: 메타 자리를 두 개로 나누지 않는다, 2026-11-06 격자 대신 흘림) */
|
|
156
156
|
meta?: ReactNode;
|
|
157
157
|
actions?: ReactNode;
|
|
158
|
-
/**
|
|
158
|
+
/** 제목 오른쪽 자리. 정보가 있는 작은 행동만 둔다(예: `PageHeaderRefreshButton`). 상태는 `status`·`meta` 에 두고, 장식 Tag·Badge·글자는 넣지 않는다(2026-11-06). */
|
|
159
159
|
titleRight?: ReactNode;
|
|
160
160
|
bottomLeft?: ReactNode;
|
|
161
161
|
bottomRight?: ReactNode;
|
|
@@ -198,7 +198,7 @@ type AgGridTableType = AgGridReactProps & {
|
|
|
198
198
|
*
|
|
199
199
|
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
200
200
|
* 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
|
|
201
|
-
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름
|
|
201
|
+
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. 글자 열이 하나뿐이면 표가 남는 폭을 150 이상 고정 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한 열만 부풀지 않는다.
|
|
202
202
|
*/
|
|
203
203
|
declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
|
|
204
204
|
containerStyle?: CSSProperties;
|
|
@@ -224,6 +224,16 @@ declare function estimateHeaderTextWidth(label: string): number;
|
|
|
224
224
|
* 끝나 빈 띠가 남는다(2026-10-28 홀드아웃 14: 이름 열 하나만 `flex: 2, maxWidth: 480` 이고 나머지가 고정 폭, "row dividers stop around 1330px",
|
|
225
225
|
* Opus·Gemini). 상한 없는 flex 열이 하나라도 있거나 flex 열이 없으면 그대로(같은 배열). 런타임에 열을 숨겨 생기는 경우는 다루지 않는다 */
|
|
226
226
|
declare function withFlexFill<T>(defs: T): T;
|
|
227
|
+
/** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
|
|
228
|
+
declare const BALANCED_FILL_MIN_WIDTH = 150;
|
|
229
|
+
/**
|
|
230
|
+
* 보이는 flex 열이 **하나뿐**이면 남는 폭을 그 열이 혼자 받지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
|
|
231
|
+
* `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 그 flex 열은 `flex` 를 최소 2 로 올린다. 그러면 남는 폭이 글자 열 2 : 나머지 1 로 흩어진다.
|
|
232
|
+
* 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
|
|
233
|
+
* 세 심판 → 패; 세트 2 도 "large empty gap", Opus 3건). 홀드아웃 14·17 의 "이름 열 과대" 도 같은 원인. flex 열이 없거나 둘 이상이면 그대로(같은 배열).
|
|
234
|
+
* 앱이 이미 여러 열에 flex 를 줬으면 그 분배를 존중한다. 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
|
|
235
|
+
*/
|
|
236
|
+
declare function withBalancedFill<T>(defs: T): T;
|
|
227
237
|
/** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
|
|
228
238
|
declare const NUMBER_COLUMN_WIDTH = 140;
|
|
229
239
|
/** `type: 'number'` 열에 width·flex·minWidth·maxWidth 가 모두 없으면 `width: 140`(그룹 children 재귀). 폭을 하나라도 줬으면 그대로 */
|
|
@@ -251,4 +261,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
|
|
|
251
261
|
*/
|
|
252
262
|
declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
|
|
253
263
|
|
|
254
|
-
export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P,
|
|
264
|
+
export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, type TwoLineCellRendererParams as Y, TwoLineCellRenderer as Z, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };
|