@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
|
@@ -3113,7 +3113,7 @@ var TablePagination = React12.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3113
3113
|
"div",
|
|
3114
3114
|
{
|
|
3115
3115
|
ref,
|
|
3116
|
-
className: cn("mt-[
|
|
3116
|
+
className: cn("mt-[16px] flex items-center justify-center", className),
|
|
3117
3117
|
...props
|
|
3118
3118
|
}
|
|
3119
3119
|
));
|
|
@@ -4009,7 +4009,11 @@ function AgGridContent() {
|
|
|
4009
4009
|
() => withTypeClasses(
|
|
4010
4010
|
withHeaderMinWidth(
|
|
4011
4011
|
withSortIconOffset(
|
|
4012
|
-
|
|
4012
|
+
// 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
|
|
4013
|
+
// 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
|
|
4014
|
+
withExplicitSortIcons(
|
|
4015
|
+
withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
|
|
4016
|
+
)
|
|
4013
4017
|
)
|
|
4014
4018
|
),
|
|
4015
4019
|
mergedColumnTypes
|
|
@@ -4196,6 +4200,39 @@ function withFlexFill(defs) {
|
|
|
4196
4200
|
return strip(defs);
|
|
4197
4201
|
}
|
|
4198
4202
|
var columnTypesOf = (d) => Array.isArray(d.type) ? d.type : typeof d.type === "string" ? [d.type] : [];
|
|
4203
|
+
var BALANCED_FILL_MIN_WIDTH = 150;
|
|
4204
|
+
function withBalancedFill(defs) {
|
|
4205
|
+
if (!Array.isArray(defs)) return defs;
|
|
4206
|
+
const flexCols = [];
|
|
4207
|
+
const collect = (list) => {
|
|
4208
|
+
for (const d of list) {
|
|
4209
|
+
if (!d || typeof d !== "object") continue;
|
|
4210
|
+
if (Array.isArray(d.children)) collect(d.children);
|
|
4211
|
+
else if (!d.hide && isFlex(d)) flexCols.push(d);
|
|
4212
|
+
}
|
|
4213
|
+
};
|
|
4214
|
+
collect(defs);
|
|
4215
|
+
if (flexCols.length !== 1) return defs;
|
|
4216
|
+
const lone = flexCols[0];
|
|
4217
|
+
const share = (d) => !d.hide && !isFlex(d) && typeof d.width === "number" && d.width >= BALANCED_FILL_MIN_WIDTH && !columnTypesOf(d).includes("number");
|
|
4218
|
+
let sharedCount = 0;
|
|
4219
|
+
const walk = (list) => list.map((d) => {
|
|
4220
|
+
if (!d || typeof d !== "object") return d;
|
|
4221
|
+
const c = d;
|
|
4222
|
+
if (Array.isArray(c.children)) return { ...c, children: walk(c.children) };
|
|
4223
|
+
if (c === lone) return c.flex >= 2 ? d : { ...c, flex: 2 };
|
|
4224
|
+
if (!share(c)) return d;
|
|
4225
|
+
sharedCount += 1;
|
|
4226
|
+
const { width, ...rest } = c;
|
|
4227
|
+
return {
|
|
4228
|
+
...rest,
|
|
4229
|
+
flex: 1,
|
|
4230
|
+
minWidth: Math.max(typeof c.minWidth === "number" ? c.minWidth : 0, width)
|
|
4231
|
+
};
|
|
4232
|
+
});
|
|
4233
|
+
const out = walk(defs);
|
|
4234
|
+
return sharedCount > 0 ? out : defs;
|
|
4235
|
+
}
|
|
4199
4236
|
var NUMBER_COLUMN_WIDTH = 140;
|
|
4200
4237
|
function withNumberColumnWidth(defs) {
|
|
4201
4238
|
if (!Array.isArray(defs)) return defs;
|
|
@@ -4270,6 +4307,6 @@ function TwoLineCellRenderer(params) {
|
|
|
4270
4307
|
] });
|
|
4271
4308
|
}
|
|
4272
4309
|
|
|
4273
|
-
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, getPaginationRange, getSortedColumnState, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses };
|
|
4274
|
-
//# sourceMappingURL=chunk-
|
|
4275
|
-
//# sourceMappingURL=chunk-
|
|
4310
|
+
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, getPaginationRange, getSortedColumnState, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses };
|
|
4311
|
+
//# sourceMappingURL=chunk-4VVIGFI2.js.map
|
|
4312
|
+
//# sourceMappingURL=chunk-4VVIGFI2.js.map
|