@t3q-ui/design-system 1.59.0 → 1.59.2

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.
@@ -2839,15 +2839,12 @@ function Pagination({
2839
2839
  const n = total.toLocaleString();
2840
2840
  const start = total === 0 ? 0 : (page - 1) * rowsPerPage + 1;
2841
2841
  const end = total === 0 ? 0 : Math.min(page * rowsPerPage, total);
2842
- return /* @__PURE__ */ jsxs(Fragment, { children: [
2843
- "\uC804\uCCB4 ",
2844
- /* @__PURE__ */ jsx("span", { className: "text-large-medium text-sys-text-main tabular-nums", children: n }),
2845
- "\uAC1C \uC911",
2846
- " ",
2842
+ return /* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
2843
+ n,
2844
+ "\uAC1C \uC911 ",
2847
2845
  start,
2848
- " - ",
2849
- end,
2850
- "\uBC88\uC9F8"
2846
+ "\u2013",
2847
+ end
2851
2848
  ] });
2852
2849
  }, [total, page, rowsPerPage]);
2853
2850
  return /* @__PURE__ */ jsxs(PaginationWrapper, { className: "relative justify-center", ...rest, children: [
@@ -3113,7 +3110,7 @@ var TablePagination = React12.forwardRef(({ className, ...props }, ref) => /* @_
3113
3110
  "div",
3114
3111
  {
3115
3112
  ref,
3116
- className: cn("mt-[38px] flex items-center justify-center", className),
3113
+ className: cn("mt-0 flex items-center justify-center", className),
3117
3114
  ...props
3118
3115
  }
3119
3116
  ));
@@ -4009,7 +4006,11 @@ function AgGridContent() {
4009
4006
  () => withTypeClasses(
4010
4007
  withHeaderMinWidth(
4011
4008
  withSortIconOffset(
4012
- withExplicitSortIcons(withNumberColumnWidth(withFlexFill(restTableProps.columnDefs)))
4009
+ // 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
4010
+ // 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
4011
+ withExplicitSortIcons(
4012
+ withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
4013
+ )
4013
4014
  )
4014
4015
  ),
4015
4016
  mergedColumnTypes
@@ -4196,6 +4197,40 @@ function withFlexFill(defs) {
4196
4197
  return strip(defs);
4197
4198
  }
4198
4199
  var columnTypesOf = (d) => Array.isArray(d.type) ? d.type : typeof d.type === "string" ? [d.type] : [];
4200
+ var BALANCED_FILL_MIN_WIDTH = 150;
4201
+ function withBalancedFill(defs) {
4202
+ if (!Array.isArray(defs)) return defs;
4203
+ const flexCols = [];
4204
+ const collect = (list) => {
4205
+ for (const d of list) {
4206
+ if (!d || typeof d !== "object") continue;
4207
+ if (Array.isArray(d.children)) collect(d.children);
4208
+ else if (!d.hide && isFlex(d)) flexCols.push(d);
4209
+ }
4210
+ };
4211
+ collect(defs);
4212
+ if (flexCols.length === 0) return defs;
4213
+ const uncapped = flexCols.filter((d) => d.maxWidth == null);
4214
+ const lone = uncapped.length === 1 ? uncapped[0] : null;
4215
+ const share = (d) => !d.hide && !isFlex(d) && typeof d.width === "number" && d.width >= BALANCED_FILL_MIN_WIDTH && !columnTypesOf(d).includes("number");
4216
+ let sharedCount = 0;
4217
+ const walk = (list) => list.map((d) => {
4218
+ if (!d || typeof d !== "object") return d;
4219
+ const c = d;
4220
+ if (Array.isArray(c.children)) return { ...c, children: walk(c.children) };
4221
+ if (lone && c === lone) return c.flex >= 2 ? d : { ...c, flex: 2 };
4222
+ if (!share(c)) return d;
4223
+ sharedCount += 1;
4224
+ const { width, ...rest } = c;
4225
+ return {
4226
+ ...rest,
4227
+ flex: 1,
4228
+ minWidth: Math.max(typeof c.minWidth === "number" ? c.minWidth : 0, width)
4229
+ };
4230
+ });
4231
+ const out = walk(defs);
4232
+ return sharedCount > 0 ? out : defs;
4233
+ }
4199
4234
  var NUMBER_COLUMN_WIDTH = 140;
4200
4235
  function withNumberColumnWidth(defs) {
4201
4236
  if (!Array.isArray(defs)) return defs;
@@ -4270,6 +4305,6 @@ function TwoLineCellRenderer(params) {
4270
4305
  ] });
4271
4306
  }
4272
4307
 
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-GQFI5K5T.js.map
4275
- //# sourceMappingURL=chunk-GQFI5K5T.js.map
4308
+ 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 };
4309
+ //# sourceMappingURL=chunk-AIMWERAR.js.map
4310
+ //# sourceMappingURL=chunk-AIMWERAR.js.map