@t3q-ui/design-system 1.59.3 → 1.60.0
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 +14 -0
- package/dist/{chunk-5O3JWQP3.cjs → chunk-FOVMRFMR.cjs} +169 -23
- package/dist/chunk-FOVMRFMR.cjs.map +1 -0
- package/dist/{chunk-GOY465GH.js → chunk-PDSWUEB2.js} +169 -24
- package/dist/chunk-PDSWUEB2.js.map +1 -0
- package/dist/{index-gy-cc-DH.d.cts → index-DYwapUZv.d.cts} +15 -12
- package/dist/{index-gy-cc-DH.d.ts → index-DYwapUZv.d.ts} +15 -12
- package/dist/index.cjs +466 -462
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/patterns/index.cjs +72 -74
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +4 -6
- package/dist/patterns/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/tds/SKILL.md +2 -1
- package/skills/tds/examples/detail-page.tsx +7 -7
- package/skills/tds/examples/form-page.tsx +1 -1
- package/skills/tds/examples/list-page.tsx +4 -4
- package/skills/tds/reference/components.md +7 -6
- package/dist/chunk-5O3JWQP3.cjs.map +0 -1
- package/dist/chunk-GOY465GH.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { I as AgGridTable, K as AgGridTableType, d as BADGE_OUTLINE_ACCENT, Q as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, D as Dialog, k as DialogClose, l as DialogContent, p as DialogDescription, n as DialogFooter, m as DialogHeader, i as DialogOverlay, h as DialogPortal, o as DialogTitle, j as DialogTrigger, q as Drawer, x as DrawerBody, u as DrawerClose, v as DrawerContent, A as DrawerDescription, y as DrawerFooter, w as DrawerHeader, s as DrawerOverlay, r as DrawerPortal, z as DrawerTitle, t as DrawerTrigger, J as HeaderCheckboxRenderer, U as NUMBER_COLUMN_WIDTH, H as PageHeader, G as PageHeaderProps, E as PageHeaderProvider, C as PageHeaderState, P as PageHeaderTabItem, R as RowCheckboxRenderer, S as SORT_ICON_OFFSET_CLASS,
|
|
11
|
+
import { B as BadgeProps } from './index-DYwapUZv.cjs';
|
|
12
|
+
export { I as AgGridTable, K as AgGridTableType, d as BADGE_OUTLINE_ACCENT, Q as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, D as Dialog, k as DialogClose, l as DialogContent, p as DialogDescription, n as DialogFooter, m as DialogHeader, i as DialogOverlay, h as DialogPortal, o as DialogTitle, j as DialogTrigger, q as Drawer, x as DrawerBody, u as DrawerClose, v as DrawerContent, A as DrawerDescription, y as DrawerFooter, w as DrawerHeader, s as DrawerOverlay, r as DrawerPortal, z as DrawerTitle, t as DrawerTrigger, J as HeaderCheckboxRenderer, U as NUMBER_COLUMN_WIDTH, H as PageHeader, G as PageHeaderProps, E as PageHeaderProvider, C as PageHeaderState, P as PageHeaderTabItem, R as RowCheckboxRenderer, S as SORT_ICON_OFFSET_CLASS, a0 as TwoLineCellRenderer, $ as TwoLineCellRendererParams, b as badgeVariants, f as buttonVariants, N as estimateHeaderTextWidth, _ as fitColumnsToContent, Z as growColumnIds, F as usePageHeader, T as withBalancedFill, L as withExplicitSortIcons, O as withFlexFill, X as withHeaderMinWidth, V as withNumberColumnWidth, M as withSortIconOffset, W as withTypeClasses, Y as withWidthFloor } from './index-DYwapUZv.cjs';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -1568,7 +1568,7 @@ declare const SwitchSection: React$1.ForwardRefExoticComponent<SwitchSectionProp
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* HTML table 기반의 가벼운 표. 정렬·컬럼 조작이 없는 소량 데이터 나열에 쓴다.
|
|
1570
1570
|
*
|
|
1571
|
-
* 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`
|
|
1571
|
+
* 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`(오른쪽 정렬·한 줄). 열 폭은 표가 내용에 맞춰 나눈다(`AgGridTable` 과 같은 규칙, 2026-11-09 홀드아웃 24 뒤 3-C): 각 열은 내용(머리글·값)만큼, 남는 폭은 첫 열(이름)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 — 이름 열 하나가 남는 폭을 다 받지 않는다. 열에 `w-…` 를 주지 않는다(주면 그 폭이 하한이라 빈 자리가 생긴다). 표가 내용보다 좁으면 브라우저 배치(줄바꿈)를 따른다. 열 폭을 직접 고정하려면 `className='table-fixed'`(이때는 재지 않는다).
|
|
1572
1572
|
* 언제 안 쓰나: 서버 페이징·정렬·컬럼 숨김·가상 스크롤이 필요한 목록(→ AgGridTable), 키-값 몇 줄(→ MetaItem).
|
|
1573
1573
|
* 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다.
|
|
1574
1574
|
*/
|
|
@@ -1587,16 +1587,16 @@ interface TableBodyProps extends React$1.HTMLAttributes<HTMLTableSectionElement>
|
|
|
1587
1587
|
declare const TableBody: React$1.ForwardRefExoticComponent<TableBodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1588
1588
|
declare const TablePagination: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1589
1589
|
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
1590
|
-
/** 숫자 열
|
|
1591
|
-
*
|
|
1592
|
-
declare const NUMBER_COLUMN_CLASS = "
|
|
1590
|
+
/** 숫자 열(오른쪽 정렬)은 한 줄 — 값과 단위가 줄바꿈되지 않는다. 폭은 표가 내용에 맞춰 나눈다(2026-11-09 3-C). 1.59.3 까지의 140px 고정 폭은
|
|
1591
|
+
* table-fixed 시절(2026-10-27 홀드아웃 13 "wide empty area")의 보정이었고, table-auto 에서는 늘지 않는 열이 되어 이름 열이 남는 폭을 다 받게 했다 */
|
|
1592
|
+
declare const NUMBER_COLUMN_CLASS = "whitespace-nowrap";
|
|
1593
1593
|
declare const tableHeadVariant: (props?: ({
|
|
1594
1594
|
align?: "left" | "right" | "center" | null | undefined;
|
|
1595
1595
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1596
1596
|
interface TableHeadProps extends Omit<React$1.ThHTMLAttributes<HTMLTableCellElement>, 'align'>, VariantProps<typeof tableHeadVariant> {
|
|
1597
1597
|
}
|
|
1598
|
-
/** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자
|
|
1599
|
-
*
|
|
1598
|
+
/** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자 열 — 오른쪽 정렬·한 줄. 열 폭은 표가 내용에 맞춰 나누므로 `w-…` 를 주지 않는다
|
|
1599
|
+
* (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다 */
|
|
1600
1600
|
declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1601
1601
|
declare const tableCellMasterVariant: (props?: ({
|
|
1602
1602
|
align?: "left" | "right" | "center" | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { I as AgGridTable, K as AgGridTableType, d as BADGE_OUTLINE_ACCENT, Q as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, D as Dialog, k as DialogClose, l as DialogContent, p as DialogDescription, n as DialogFooter, m as DialogHeader, i as DialogOverlay, h as DialogPortal, o as DialogTitle, j as DialogTrigger, q as Drawer, x as DrawerBody, u as DrawerClose, v as DrawerContent, A as DrawerDescription, y as DrawerFooter, w as DrawerHeader, s as DrawerOverlay, r as DrawerPortal, z as DrawerTitle, t as DrawerTrigger, J as HeaderCheckboxRenderer, U as NUMBER_COLUMN_WIDTH, H as PageHeader, G as PageHeaderProps, E as PageHeaderProvider, C as PageHeaderState, P as PageHeaderTabItem, R as RowCheckboxRenderer, S as SORT_ICON_OFFSET_CLASS,
|
|
11
|
+
import { B as BadgeProps } from './index-DYwapUZv.js';
|
|
12
|
+
export { I as AgGridTable, K as AgGridTableType, d as BADGE_OUTLINE_ACCENT, Q as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, D as Dialog, k as DialogClose, l as DialogContent, p as DialogDescription, n as DialogFooter, m as DialogHeader, i as DialogOverlay, h as DialogPortal, o as DialogTitle, j as DialogTrigger, q as Drawer, x as DrawerBody, u as DrawerClose, v as DrawerContent, A as DrawerDescription, y as DrawerFooter, w as DrawerHeader, s as DrawerOverlay, r as DrawerPortal, z as DrawerTitle, t as DrawerTrigger, J as HeaderCheckboxRenderer, U as NUMBER_COLUMN_WIDTH, H as PageHeader, G as PageHeaderProps, E as PageHeaderProvider, C as PageHeaderState, P as PageHeaderTabItem, R as RowCheckboxRenderer, S as SORT_ICON_OFFSET_CLASS, a0 as TwoLineCellRenderer, $ as TwoLineCellRendererParams, b as badgeVariants, f as buttonVariants, N as estimateHeaderTextWidth, _ as fitColumnsToContent, Z as growColumnIds, F as usePageHeader, T as withBalancedFill, L as withExplicitSortIcons, O as withFlexFill, X as withHeaderMinWidth, V as withNumberColumnWidth, M as withSortIconOffset, W as withTypeClasses, Y as withWidthFloor } from './index-DYwapUZv.js';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -1568,7 +1568,7 @@ declare const SwitchSection: React$1.ForwardRefExoticComponent<SwitchSectionProp
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* HTML table 기반의 가벼운 표. 정렬·컬럼 조작이 없는 소량 데이터 나열에 쓴다.
|
|
1570
1570
|
*
|
|
1571
|
-
* 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`
|
|
1571
|
+
* 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`(오른쪽 정렬·한 줄). 열 폭은 표가 내용에 맞춰 나눈다(`AgGridTable` 과 같은 규칙, 2026-11-09 홀드아웃 24 뒤 3-C): 각 열은 내용(머리글·값)만큼, 남는 폭은 첫 열(이름)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 — 이름 열 하나가 남는 폭을 다 받지 않는다. 열에 `w-…` 를 주지 않는다(주면 그 폭이 하한이라 빈 자리가 생긴다). 표가 내용보다 좁으면 브라우저 배치(줄바꿈)를 따른다. 열 폭을 직접 고정하려면 `className='table-fixed'`(이때는 재지 않는다).
|
|
1572
1572
|
* 언제 안 쓰나: 서버 페이징·정렬·컬럼 숨김·가상 스크롤이 필요한 목록(→ AgGridTable), 키-값 몇 줄(→ MetaItem).
|
|
1573
1573
|
* 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다.
|
|
1574
1574
|
*/
|
|
@@ -1587,16 +1587,16 @@ interface TableBodyProps extends React$1.HTMLAttributes<HTMLTableSectionElement>
|
|
|
1587
1587
|
declare const TableBody: React$1.ForwardRefExoticComponent<TableBodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1588
1588
|
declare const TablePagination: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1589
1589
|
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
1590
|
-
/** 숫자 열
|
|
1591
|
-
*
|
|
1592
|
-
declare const NUMBER_COLUMN_CLASS = "
|
|
1590
|
+
/** 숫자 열(오른쪽 정렬)은 한 줄 — 값과 단위가 줄바꿈되지 않는다. 폭은 표가 내용에 맞춰 나눈다(2026-11-09 3-C). 1.59.3 까지의 140px 고정 폭은
|
|
1591
|
+
* table-fixed 시절(2026-10-27 홀드아웃 13 "wide empty area")의 보정이었고, table-auto 에서는 늘지 않는 열이 되어 이름 열이 남는 폭을 다 받게 했다 */
|
|
1592
|
+
declare const NUMBER_COLUMN_CLASS = "whitespace-nowrap";
|
|
1593
1593
|
declare const tableHeadVariant: (props?: ({
|
|
1594
1594
|
align?: "left" | "right" | "center" | null | undefined;
|
|
1595
1595
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1596
1596
|
interface TableHeadProps extends Omit<React$1.ThHTMLAttributes<HTMLTableCellElement>, 'align'>, VariantProps<typeof tableHeadVariant> {
|
|
1597
1597
|
}
|
|
1598
|
-
/** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자
|
|
1599
|
-
*
|
|
1598
|
+
/** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자 열 — 오른쪽 정렬·한 줄. 열 폭은 표가 내용에 맞춰 나누므로 `w-…` 를 주지 않는다
|
|
1599
|
+
* (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다 */
|
|
1600
1600
|
declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1601
1601
|
declare const tableCellMasterVariant: (props?: ({
|
|
1602
1602
|
align?: "left" | "right" | "center" | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn, useRestoreFocusToOpener, Stack, sanitizeUserText, Button, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Checkbox, useFormControlContext, Table, TableHeader, TableRow, TableHead, TableBody, Spinner, IconButton, Separator, LucideIcon, TableCell, Dialog, DialogContent, DialogTitle, Badge } from './chunk-
|
|
2
|
-
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, fitColumnsToContent, getPaginationRange, getSortedColumnState, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor } from './chunk-
|
|
1
|
+
import { cn, useRestoreFocusToOpener, Stack, sanitizeUserText, Button, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Checkbox, useFormControlContext, Table, TableHeader, TableRow, TableHead, TableBody, Spinner, IconButton, Separator, LucideIcon, TableCell, Dialog, DialogContent, DialogTitle, Badge } from './chunk-PDSWUEB2.js';
|
|
2
|
+
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, fitColumnsToContent, getPaginationRange, getSortedColumnState, growColumnIds, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor } from './chunk-PDSWUEB2.js';
|
|
3
3
|
import * as React17 from 'react';
|
|
4
4
|
import React17__default, { forwardRef, useMemo, useState, useEffect, useCallback, useRef } from 'react';
|
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
package/dist/patterns/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFOVMRFMR_cjs = require('../chunk-FOVMRFMR.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -21,7 +21,7 @@ function withSecondaryLine(columns, primaryField, secondaryField) {
|
|
|
21
21
|
return columns.map(
|
|
22
22
|
(c) => c.field === primaryField && c.cellRenderer == null ? {
|
|
23
23
|
...c,
|
|
24
|
-
cellRenderer:
|
|
24
|
+
cellRenderer: chunkFOVMRFMR_cjs.TwoLineCellRenderer,
|
|
25
25
|
cellRendererParams: { ...c.cellRendererParams, secondaryField }
|
|
26
26
|
} : c
|
|
27
27
|
);
|
|
@@ -47,10 +47,10 @@ function LoadingState({ className, lines = 3 }) {
|
|
|
47
47
|
{
|
|
48
48
|
role: "status",
|
|
49
49
|
"aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911",
|
|
50
|
-
className:
|
|
50
|
+
className: chunkFOVMRFMR_cjs.cn("flex flex-col gap-[12px]", className),
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
-
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
|
|
53
|
+
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Skeleton, { className: chunkFOVMRFMR_cjs.cn("h-[16px]", i % 2 ? "w-3/5" : "w-full") }, i))
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
);
|
|
@@ -68,12 +68,12 @@ function StateBox({
|
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
role,
|
|
71
|
-
className:
|
|
71
|
+
className: chunkFOVMRFMR_cjs.cn(
|
|
72
72
|
"flex flex-col items-center justify-center gap-[4px] text-center text-sys-text-subtler",
|
|
73
73
|
className
|
|
74
74
|
),
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className:
|
|
76
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: chunkFOVMRFMR_cjs.cn("mb-[4px] flex text-sys-text-subtler", iconClassName), children: icon }),
|
|
77
77
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-h5 text-sys-text-main", children: title }),
|
|
78
78
|
description ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "break-keep text-base-regular text-sys-text-subtle wrap-break-word", children: description }) : null,
|
|
79
79
|
action ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto mt-[12px] flex gap-[8px]", children: action }) : null
|
|
@@ -94,7 +94,7 @@ function EmptyState({
|
|
|
94
94
|
{
|
|
95
95
|
role: "status",
|
|
96
96
|
className,
|
|
97
|
-
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.EmptyBoxIllustration, {}),
|
|
98
98
|
title: title ?? children,
|
|
99
99
|
description,
|
|
100
100
|
action
|
|
@@ -113,11 +113,11 @@ function ErrorState({
|
|
|
113
113
|
{
|
|
114
114
|
role: "alert",
|
|
115
115
|
className,
|
|
116
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
116
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
|
|
117
117
|
iconClassName: "text-danger30",
|
|
118
118
|
title,
|
|
119
119
|
description,
|
|
120
|
-
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Button, { type: "button", variant: "primary", onClick: onRetry, children: retryLabel }) : null
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
}
|
|
@@ -174,12 +174,12 @@ function ListPage({
|
|
|
174
174
|
return () => document.removeEventListener("keydown", onKey);
|
|
175
175
|
}, [detailOpen]);
|
|
176
176
|
const resetButton = onResetFilters ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
177
|
-
|
|
177
|
+
chunkFOVMRFMR_cjs.Button,
|
|
178
178
|
{
|
|
179
179
|
type: "button",
|
|
180
180
|
variant: "secondaryOutline",
|
|
181
181
|
onClick: onResetFilters,
|
|
182
|
-
className:
|
|
182
|
+
className: chunkFOVMRFMR_cjs.cn(filtersActive === false && "invisible"),
|
|
183
183
|
"aria-hidden": filtersActive === false || void 0,
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { size: 16, "aria-hidden": true }),
|
|
@@ -192,20 +192,18 @@ function ListPage({
|
|
|
192
192
|
filters,
|
|
193
193
|
!hasCaption ? resetButton : null
|
|
194
194
|
] }) : void 0;
|
|
195
|
+
const hasRowClick = Boolean(onRowClick);
|
|
195
196
|
const columnDefs = react.useMemo(() => {
|
|
196
|
-
const primary = resolvePrimaryField(
|
|
197
|
-
primaryField,
|
|
198
|
-
Boolean(onRowClick) || Boolean(secondaryField)
|
|
199
|
-
);
|
|
197
|
+
const primary = resolvePrimaryField(primaryField, hasRowClick || Boolean(secondaryField));
|
|
200
198
|
return withSecondaryLine(withPrimaryColumn(columns, primary), primary, secondaryField);
|
|
201
|
-
}, [columns, primaryField,
|
|
199
|
+
}, [columns, primaryField, hasRowClick, secondaryField]);
|
|
202
200
|
const total = pagination?.total;
|
|
203
201
|
const quickAllCount = quickFilter?.options.every((o) => o.count !== void 0) ? quickFilter.options.reduce((sum, o) => sum + (o.count ?? 0), 0) : void 0;
|
|
204
202
|
const quickIsAll = (quickFilter?.value.length ?? 0) === 0;
|
|
205
203
|
const quick = quickFilter ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-[8px]", children: [
|
|
206
204
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small-regular font-medium text-sys-text-subtle", children: quickFilter.label }),
|
|
207
205
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
208
|
-
|
|
206
|
+
chunkFOVMRFMR_cjs.ToggleGroup,
|
|
209
207
|
{
|
|
210
208
|
type: "multiple",
|
|
211
209
|
variant: "outline",
|
|
@@ -217,9 +215,9 @@ function ListPage({
|
|
|
217
215
|
quickFilter.onChange(pressedAll ? [] : next.filter((v) => v !== QUICK_ALL));
|
|
218
216
|
},
|
|
219
217
|
children: [
|
|
220
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
218
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
|
|
221
219
|
quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
222
|
-
|
|
220
|
+
chunkFOVMRFMR_cjs.ToggleGroupItem,
|
|
223
221
|
{
|
|
224
222
|
value: o.value,
|
|
225
223
|
count: o.count,
|
|
@@ -260,7 +258,7 @@ function ListPage({
|
|
|
260
258
|
className: "pt-[32px] pb-[16px]",
|
|
261
259
|
title: content.title,
|
|
262
260
|
description: content.description ?? content.children,
|
|
263
|
-
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
261
|
+
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Button, { type: "button", variant: "secondaryLink", onClick: () => resetRef.current?.(), children: "\uD544\uD130 \uCD08\uAE30\uD654" }) : null
|
|
264
262
|
}
|
|
265
263
|
);
|
|
266
264
|
},
|
|
@@ -272,7 +270,7 @@ function ListPage({
|
|
|
272
270
|
);
|
|
273
271
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
274
272
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
275
|
-
|
|
273
|
+
chunkFOVMRFMR_cjs.PageHeader,
|
|
276
274
|
{
|
|
277
275
|
title,
|
|
278
276
|
description,
|
|
@@ -281,19 +279,19 @@ function ListPage({
|
|
|
281
279
|
bottomRight: filterRow
|
|
282
280
|
}
|
|
283
281
|
),
|
|
284
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title, className: "px-[24px] py-[32px]", children: error ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
282
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title, className: "px-[24px] py-[32px]", children: error ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.AlertDescription, { children: error }) }) : (
|
|
285
283
|
// 상세 패널(detail)이 있으면 표 쪽이 줄고 패널이 오른쪽에 나란히 선다 — 목록 맥락을 유지한 채 상세를 본다
|
|
286
284
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-[24px]", children: [
|
|
287
285
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
288
286
|
caption,
|
|
289
287
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
290
|
-
|
|
288
|
+
chunkFOVMRFMR_cjs.AgGridTable,
|
|
291
289
|
{
|
|
292
290
|
rowData: rows,
|
|
293
291
|
columnDefs,
|
|
294
292
|
loading,
|
|
295
293
|
noRowsOverlayComponent: EmptyOverlay,
|
|
296
|
-
onSortChanged: onSortChange ? (e) => onSortChange(
|
|
294
|
+
onSortChanged: onSortChange ? (e) => onSortChange(chunkFOVMRFMR_cjs.getSortedColumnState(e).value) : void 0,
|
|
297
295
|
onRowClicked: onRowClick ? (e) => {
|
|
298
296
|
if (e.data) onRowClick(e.data);
|
|
299
297
|
} : void 0,
|
|
@@ -303,8 +301,8 @@ function ListPage({
|
|
|
303
301
|
rowClassRules
|
|
304
302
|
}
|
|
305
303
|
),
|
|
306
|
-
pagination ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
307
|
-
|
|
304
|
+
pagination ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.TablePagination, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
305
|
+
chunkFOVMRFMR_cjs.Pagination,
|
|
308
306
|
{
|
|
309
307
|
total: pagination.total,
|
|
310
308
|
rowsPerPage: pagination.pageSize,
|
|
@@ -317,13 +315,13 @@ function ListPage({
|
|
|
317
315
|
// 나란한 상세 패널: 제목·설명·닫기 → 본문 → (안내) → 버튼 줄. 스크롤해도 따라오게 sticky. Card 와 같은 테두리·라운드(그림자 없음).
|
|
318
316
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe landmark-complementary-is-top-level) 이름 있는 section — DetailPage 의 aside 와 같다
|
|
319
317
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
320
|
-
|
|
318
|
+
chunkFOVMRFMR_cjs.Panel,
|
|
321
319
|
{
|
|
322
320
|
title: detail.title,
|
|
323
321
|
description: detail.description,
|
|
324
322
|
padding: "large",
|
|
325
323
|
titleRight: /* @__PURE__ */ jsxRuntime.jsx(
|
|
326
|
-
|
|
324
|
+
chunkFOVMRFMR_cjs.IconButton,
|
|
327
325
|
{
|
|
328
326
|
type: "button",
|
|
329
327
|
variant: "secondary",
|
|
@@ -334,7 +332,7 @@ function ListPage({
|
|
|
334
332
|
),
|
|
335
333
|
note: detail.note,
|
|
336
334
|
footer: detail.footer,
|
|
337
|
-
className:
|
|
335
|
+
className: chunkFOVMRFMR_cjs.cn("sticky top-[24px] shrink-0", DETAIL_WIDTH[detail.width ?? "medium"]),
|
|
338
336
|
children: detail.children
|
|
339
337
|
}
|
|
340
338
|
)
|
|
@@ -352,10 +350,10 @@ function MoreMenu({
|
|
|
352
350
|
const select = (fn) => () => {
|
|
353
351
|
pendingRef.current = fn;
|
|
354
352
|
};
|
|
355
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
356
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
353
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.DropdownMenu, { children: [
|
|
354
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.IconButton, { ref: triggerRef, variant: "secondary", "aria-label": "\uB354\uBCF4\uAE30", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { size: 24 }) }) }),
|
|
357
355
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
358
|
-
|
|
356
|
+
chunkFOVMRFMR_cjs.DropdownMenuContent,
|
|
359
357
|
{
|
|
360
358
|
align: "end",
|
|
361
359
|
onCloseAutoFocus: (e) => {
|
|
@@ -366,10 +364,10 @@ function MoreMenu({
|
|
|
366
364
|
fn?.();
|
|
367
365
|
},
|
|
368
366
|
children: [
|
|
369
|
-
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
370
|
-
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
367
|
+
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
|
|
368
|
+
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DropdownMenuSeparator, {}) : null,
|
|
371
369
|
deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
372
|
-
|
|
370
|
+
chunkFOVMRFMR_cjs.DropdownMenuItem,
|
|
373
371
|
{
|
|
374
372
|
variant: "danger",
|
|
375
373
|
disabled: deleteAction.disabled,
|
|
@@ -417,7 +415,7 @@ function DetailPage({
|
|
|
417
415
|
body = // 넓은 화면: 본문 2 : 패널 1 + 세로선. 좁은 화면: 세로로 쌓이고 패널은 제목 + 가로선으로 시작한다
|
|
418
416
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[2fr_1fr] xl:items-start", children: [
|
|
419
417
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children }),
|
|
420
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
418
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Panel, { title: asideTitle, children: aside })
|
|
421
419
|
] });
|
|
422
420
|
} else {
|
|
423
421
|
body = children;
|
|
@@ -425,11 +423,11 @@ function DetailPage({
|
|
|
425
423
|
const VISIBLE_SECONDARY = 2;
|
|
426
424
|
const visibleSecondary = secondaryActions?.slice(0, VISIBLE_SECONDARY) ?? [];
|
|
427
425
|
const overflowSecondary = secondaryActions?.slice(VISIBLE_SECONDARY) ?? [];
|
|
428
|
-
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
426
|
+
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
|
|
429
427
|
const moreMenu = (items) => items.length || deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items, deleteAction }) : null;
|
|
430
428
|
const fullRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
431
429
|
moreMenu(overflowSecondary),
|
|
432
|
-
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
430
|
+
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
|
|
433
431
|
primaryButton
|
|
434
432
|
] });
|
|
435
433
|
const collapsedRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -450,7 +448,7 @@ function DetailPage({
|
|
|
450
448
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "detail-actions-collapsed", className: "flex items-center gap-[8px] @3xl:hidden", children: collapsedRow })
|
|
451
449
|
] }) : primaryButton ? primaryButton : void 0;
|
|
452
450
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
453
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
451
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.PageHeader, { ...header, actions: actionRow }),
|
|
454
452
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
455
453
|
"section",
|
|
456
454
|
{
|
|
@@ -458,7 +456,7 @@ function DetailPage({
|
|
|
458
456
|
className: "flex flex-col gap-[24px] px-[24px] py-[24px]",
|
|
459
457
|
children: [
|
|
460
458
|
banner,
|
|
461
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
459
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkFOVMRFMR_cjs.cn("w-full", width === "panel" && "mx-auto max-w-[900px]"), children: [
|
|
462
460
|
note,
|
|
463
461
|
body
|
|
464
462
|
] })
|
|
@@ -480,7 +478,7 @@ function useFormShell({
|
|
|
480
478
|
}
|
|
481
479
|
function FormError({ error, className }) {
|
|
482
480
|
if (!error) return null;
|
|
483
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
481
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.AlertDescription, { children: error }) });
|
|
484
482
|
}
|
|
485
483
|
function FormActions({
|
|
486
484
|
busy,
|
|
@@ -492,7 +490,7 @@ function FormActions({
|
|
|
492
490
|
}) {
|
|
493
491
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
494
492
|
onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
495
|
-
|
|
493
|
+
chunkFOVMRFMR_cjs.Button,
|
|
496
494
|
{
|
|
497
495
|
type: "button",
|
|
498
496
|
variant: "secondaryOutline",
|
|
@@ -503,7 +501,7 @@ function FormActions({
|
|
|
503
501
|
}
|
|
504
502
|
) : null,
|
|
505
503
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
506
|
-
|
|
504
|
+
chunkFOVMRFMR_cjs.Button,
|
|
507
505
|
{
|
|
508
506
|
type: "submit",
|
|
509
507
|
variant: "primaryBold",
|
|
@@ -555,11 +553,11 @@ function FormPage({
|
|
|
555
553
|
" ",
|
|
556
554
|
"\uD45C\uC2DC\uB294 \uD544\uC218 \uC785\uB825 \uD56D\uBAA9\uC785\uB2C8\uB2E4"
|
|
557
555
|
] }) : null,
|
|
558
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
559
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
556
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
|
|
557
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
|
|
560
558
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
|
|
561
559
|
aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
562
|
-
|
|
560
|
+
chunkFOVMRFMR_cjs.FormFooter,
|
|
563
561
|
{
|
|
564
562
|
align: "end",
|
|
565
563
|
className: "mt-[24px] border-t border-sys-divider-subtle pt-[16px]",
|
|
@@ -571,9 +569,9 @@ function FormPage({
|
|
|
571
569
|
const column = canvas === "subtle" ? (
|
|
572
570
|
// 폼 전체를 흰 Card 하나로(섹션 사이 구분선은 그대로). 위 8px 는 첫 FormSection 의 pt-[16px] 과 더해 24
|
|
573
571
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
574
|
-
|
|
572
|
+
chunkFOVMRFMR_cjs.Card,
|
|
575
573
|
{
|
|
576
|
-
className:
|
|
574
|
+
className: chunkFOVMRFMR_cjs.cn(
|
|
577
575
|
"w-full max-w-[var(--max-w-form-control)] px-[24px] pb-[24px] pt-[8px]",
|
|
578
576
|
align === "center" && !aside && "mx-auto"
|
|
579
577
|
),
|
|
@@ -583,7 +581,7 @@ function FormPage({
|
|
|
583
581
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
584
582
|
"div",
|
|
585
583
|
{
|
|
586
|
-
className:
|
|
584
|
+
className: chunkFOVMRFMR_cjs.cn(
|
|
587
585
|
"w-full max-w-[var(--max-w-form-control)]",
|
|
588
586
|
align === "center" && !aside && "mx-auto"
|
|
589
587
|
),
|
|
@@ -592,9 +590,9 @@ function FormPage({
|
|
|
592
590
|
);
|
|
593
591
|
return (
|
|
594
592
|
// subtle 의 캔버스 회색은 기존 토큰(grayscale20, 진단 18-A 의 f7 변형)을 쓴다 — 채택되면 전용 sys 토큰으로 올린다
|
|
595
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
593
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkFOVMRFMR_cjs.cn("w-full", canvas === "subtle" && "bg-sys-background-hover"), children: [
|
|
596
594
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
597
|
-
|
|
595
|
+
chunkFOVMRFMR_cjs.PageHeader,
|
|
598
596
|
{
|
|
599
597
|
title,
|
|
600
598
|
description,
|
|
@@ -608,7 +606,7 @@ function FormPage({
|
|
|
608
606
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe) 이름 있는 section (DetailPage aside 와 같은 꼴)
|
|
609
607
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[minmax(0,var(--max-w-form-control))_minmax(280px,1fr)] xl:items-start", children: [
|
|
610
608
|
column,
|
|
611
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
609
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
|
|
612
610
|
aside,
|
|
613
611
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
614
612
|
"div",
|
|
@@ -645,23 +643,23 @@ function FormDrawer({
|
|
|
645
643
|
if (!next && busy) return;
|
|
646
644
|
onOpenChange(next);
|
|
647
645
|
};
|
|
648
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
649
|
-
|
|
646
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
647
|
+
chunkFOVMRFMR_cjs.DrawerContent,
|
|
650
648
|
{
|
|
651
649
|
side,
|
|
652
650
|
size,
|
|
653
651
|
...description ? {} : { "aria-describedby": void 0 },
|
|
654
652
|
children: [
|
|
655
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
656
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
657
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
653
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.DrawerHeader, { children: [
|
|
654
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DrawerTitle, { children: title }),
|
|
655
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DrawerDescription, { children: description }) : null
|
|
658
656
|
] }),
|
|
659
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
660
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
657
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex min-h-0 flex-1 flex-col", children: [
|
|
658
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.DrawerBody, { className: "px-[24px]", children: [
|
|
661
659
|
children,
|
|
662
660
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
|
|
663
661
|
] }),
|
|
664
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
662
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
665
663
|
FormActions,
|
|
666
664
|
{
|
|
667
665
|
busy,
|
|
@@ -696,21 +694,21 @@ function FormDialog({
|
|
|
696
694
|
if (!next && busy) return;
|
|
697
695
|
onOpenChange(next);
|
|
698
696
|
};
|
|
699
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
700
|
-
|
|
697
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
698
|
+
chunkFOVMRFMR_cjs.DialogContent,
|
|
701
699
|
{
|
|
702
700
|
width,
|
|
703
701
|
hideCloseButton: busy,
|
|
704
702
|
...description ? {} : { "aria-describedby": void 0 },
|
|
705
703
|
children: [
|
|
706
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
707
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.DialogHeader, { children: [
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DialogTitle, { children: title }),
|
|
706
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DialogDescription, { children: description }) : null
|
|
709
707
|
] }),
|
|
710
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
|
|
711
709
|
children,
|
|
712
710
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error }),
|
|
713
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
711
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
714
712
|
FormActions,
|
|
715
713
|
{
|
|
716
714
|
busy,
|
|
@@ -742,7 +740,7 @@ function StatTile({
|
|
|
742
740
|
}) {
|
|
743
741
|
const labelId = react.useId();
|
|
744
742
|
const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100);
|
|
745
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
743
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkFOVMRFMR_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
|
|
746
744
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: labelId, className: "text-h6 text-sys-text-subtle", children: href ? (
|
|
747
745
|
// 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다
|
|
748
746
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -754,7 +752,7 @@ function StatTile({
|
|
|
754
752
|
}
|
|
755
753
|
)
|
|
756
754
|
) : label }),
|
|
757
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
755
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.Skeleton, { role: "status", "aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911", className: "h-[32px] w-[80px]" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkFOVMRFMR_cjs.cn("flex items-center gap-[6px] text-h2", TONE_TEXT[tone]), children: [
|
|
758
756
|
tone !== "default" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlert, { "aria-hidden": true, size: 20, className: "shrink-0" }) : null,
|
|
759
757
|
value
|
|
760
758
|
] }),
|
|
@@ -770,7 +768,7 @@ function StatTile({
|
|
|
770
768
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
771
769
|
"div",
|
|
772
770
|
{
|
|
773
|
-
className:
|
|
771
|
+
className: chunkFOVMRFMR_cjs.cn("h-full rounded-full", TONE_BAR[tone]),
|
|
774
772
|
style: { width: `${percent}%` }
|
|
775
773
|
}
|
|
776
774
|
)
|
|
@@ -799,7 +797,7 @@ function DashboardLayout({
|
|
|
799
797
|
children
|
|
800
798
|
] });
|
|
801
799
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
802
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
800
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkFOVMRFMR_cjs.PageHeader, { ...header, actions }),
|
|
803
801
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
804
802
|
"section",
|
|
805
803
|
{
|
|
@@ -821,9 +819,9 @@ function DashboardSection({ title, action, columns, children }) {
|
|
|
821
819
|
// 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다
|
|
822
820
|
// 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다
|
|
823
821
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
824
|
-
|
|
822
|
+
chunkFOVMRFMR_cjs.Card,
|
|
825
823
|
{
|
|
826
|
-
className:
|
|
824
|
+
className: chunkFOVMRFMR_cjs.cn(
|
|
827
825
|
"grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler",
|
|
828
826
|
columns === 2 && "xl:grid-cols-2 xl:[&>:last-child:nth-child(odd)]:col-span-2"
|
|
829
827
|
),
|