@t3q-ui/design-system 1.59.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 +9 -0
- package/dist/{chunk-KT6LEYWL.cjs → chunk-2T6PIVRA.cjs} +43 -4
- package/dist/chunk-2T6PIVRA.cjs.map +1 -0
- package/dist/{chunk-GQFI5K5T.js → chunk-4VVIGFI2.js} +42 -5
- package/dist/chunk-4VVIGFI2.js.map +1 -0
- package/dist/{index-CHnIxzU2.d.cts → index-kM4bOlin.d.cts} +12 -2
- package/dist/{index-CHnIxzU2.d.ts → index-kM4bOlin.d.ts} +12 -2
- package/dist/index.cjs +466 -458
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/patterns/index.cjs +69 -69
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +1 -1
- package/package.json +1 -1
- package/skills/tds/SKILL.md +1 -1
- package/skills/tds/reference/components.md +1 -1
- package/dist/chunk-GQFI5K5T.js.map +0 -1
- package/dist/chunk-KT6LEYWL.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<!-- release: v1.59.1 -->
|
|
4
|
+
## 1.59.1 (2026-11-08)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **agGridTable:** 글자 열이 하나뿐이면 남는 폭을 ID·날짜 열에도 나눔 (홀드아웃 21 "endpoint column takes up too much space") (29790db)
|
|
10
|
+
* **table:** 표와 페이지네이션 간격 38 → 16 — 한 묶음으로 붙임 (홀드아웃 21 "pagination floating") (882ef91)
|
|
11
|
+
|
|
3
12
|
<!-- release: v1.59.0 -->
|
|
4
13
|
# 1.59.0 (2026-11-06)
|
|
5
14
|
|
|
@@ -3144,7 +3144,7 @@ var TablePagination = React12__namespace.forwardRef(({ className, ...props }, re
|
|
|
3144
3144
|
"div",
|
|
3145
3145
|
{
|
|
3146
3146
|
ref,
|
|
3147
|
-
className: cn("mt-[
|
|
3147
|
+
className: cn("mt-[16px] flex items-center justify-center", className),
|
|
3148
3148
|
...props
|
|
3149
3149
|
}
|
|
3150
3150
|
));
|
|
@@ -4040,7 +4040,11 @@ function AgGridContent() {
|
|
|
4040
4040
|
() => withTypeClasses(
|
|
4041
4041
|
withHeaderMinWidth(
|
|
4042
4042
|
withSortIconOffset(
|
|
4043
|
-
|
|
4043
|
+
// 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
|
|
4044
|
+
// 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
|
|
4045
|
+
withExplicitSortIcons(
|
|
4046
|
+
withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
|
|
4047
|
+
)
|
|
4044
4048
|
)
|
|
4045
4049
|
),
|
|
4046
4050
|
mergedColumnTypes
|
|
@@ -4227,6 +4231,39 @@ function withFlexFill(defs) {
|
|
|
4227
4231
|
return strip(defs);
|
|
4228
4232
|
}
|
|
4229
4233
|
var columnTypesOf = (d) => Array.isArray(d.type) ? d.type : typeof d.type === "string" ? [d.type] : [];
|
|
4234
|
+
var BALANCED_FILL_MIN_WIDTH = 150;
|
|
4235
|
+
function withBalancedFill(defs) {
|
|
4236
|
+
if (!Array.isArray(defs)) return defs;
|
|
4237
|
+
const flexCols = [];
|
|
4238
|
+
const collect = (list) => {
|
|
4239
|
+
for (const d of list) {
|
|
4240
|
+
if (!d || typeof d !== "object") continue;
|
|
4241
|
+
if (Array.isArray(d.children)) collect(d.children);
|
|
4242
|
+
else if (!d.hide && isFlex(d)) flexCols.push(d);
|
|
4243
|
+
}
|
|
4244
|
+
};
|
|
4245
|
+
collect(defs);
|
|
4246
|
+
if (flexCols.length !== 1) return defs;
|
|
4247
|
+
const lone = flexCols[0];
|
|
4248
|
+
const share = (d) => !d.hide && !isFlex(d) && typeof d.width === "number" && d.width >= BALANCED_FILL_MIN_WIDTH && !columnTypesOf(d).includes("number");
|
|
4249
|
+
let sharedCount = 0;
|
|
4250
|
+
const walk = (list) => list.map((d) => {
|
|
4251
|
+
if (!d || typeof d !== "object") return d;
|
|
4252
|
+
const c = d;
|
|
4253
|
+
if (Array.isArray(c.children)) return { ...c, children: walk(c.children) };
|
|
4254
|
+
if (c === lone) return c.flex >= 2 ? d : { ...c, flex: 2 };
|
|
4255
|
+
if (!share(c)) return d;
|
|
4256
|
+
sharedCount += 1;
|
|
4257
|
+
const { width, ...rest } = c;
|
|
4258
|
+
return {
|
|
4259
|
+
...rest,
|
|
4260
|
+
flex: 1,
|
|
4261
|
+
minWidth: Math.max(typeof c.minWidth === "number" ? c.minWidth : 0, width)
|
|
4262
|
+
};
|
|
4263
|
+
});
|
|
4264
|
+
const out = walk(defs);
|
|
4265
|
+
return sharedCount > 0 ? out : defs;
|
|
4266
|
+
}
|
|
4230
4267
|
var NUMBER_COLUMN_WIDTH = 140;
|
|
4231
4268
|
function withNumberColumnWidth(defs) {
|
|
4232
4269
|
if (!Array.isArray(defs)) return defs;
|
|
@@ -4309,6 +4346,7 @@ exports.AlertActions = AlertActions;
|
|
|
4309
4346
|
exports.AlertDescription = AlertDescription;
|
|
4310
4347
|
exports.AlertTitle = AlertTitle;
|
|
4311
4348
|
exports.BADGE_OUTLINE_ACCENT = BADGE_OUTLINE_ACCENT;
|
|
4349
|
+
exports.BALANCED_FILL_MIN_WIDTH = BALANCED_FILL_MIN_WIDTH;
|
|
4312
4350
|
exports.Badge = Badge;
|
|
4313
4351
|
exports.Button = Button;
|
|
4314
4352
|
exports.Card = Card;
|
|
@@ -4418,11 +4456,12 @@ exports.useFormControlContext = useFormControlContext;
|
|
|
4418
4456
|
exports.useFormField = useFormField;
|
|
4419
4457
|
exports.usePageHeader = usePageHeader;
|
|
4420
4458
|
exports.useRestoreFocusToOpener = useRestoreFocusToOpener;
|
|
4459
|
+
exports.withBalancedFill = withBalancedFill;
|
|
4421
4460
|
exports.withExplicitSortIcons = withExplicitSortIcons;
|
|
4422
4461
|
exports.withFlexFill = withFlexFill;
|
|
4423
4462
|
exports.withHeaderMinWidth = withHeaderMinWidth;
|
|
4424
4463
|
exports.withNumberColumnWidth = withNumberColumnWidth;
|
|
4425
4464
|
exports.withSortIconOffset = withSortIconOffset;
|
|
4426
4465
|
exports.withTypeClasses = withTypeClasses;
|
|
4427
|
-
//# sourceMappingURL=chunk-
|
|
4428
|
-
//# sourceMappingURL=chunk-
|
|
4466
|
+
//# sourceMappingURL=chunk-2T6PIVRA.cjs.map
|
|
4467
|
+
//# sourceMappingURL=chunk-2T6PIVRA.cjs.map
|