@t3q-ui/design-system 1.61.4 → 1.62.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 +16 -0
- package/dist/{chunk-BTYTVCQG.cjs → chunk-B7EVWGOO.cjs} +13 -10
- package/dist/chunk-B7EVWGOO.cjs.map +1 -0
- package/dist/{chunk-LBGSVYNB.js → chunk-RWXQIS6W.js} +13 -10
- package/dist/chunk-RWXQIS6W.js.map +1 -0
- package/dist/{index-DYwapUZv.d.cts → index-49sVdPlX.d.cts} +1 -1
- package/dist/{index-DYwapUZv.d.ts → index-49sVdPlX.d.ts} +1 -1
- package/dist/index.cjs +463 -463
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +2 -2
- 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/mcp/manifests/components.json +40 -10
- package/package.json +1 -1
- package/skills/tds/SKILL.md +5 -4
- package/skills/tds/examples/detail-page.tsx +5 -4
- package/skills/tds/reference/components.md +7 -6
- package/skills/tds/rules.md +1 -1
- package/dist/chunk-BTYTVCQG.cjs.map +0 -1
- package/dist/chunk-LBGSVYNB.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, 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-
|
|
11
|
+
import { B as BadgeProps } from './index-49sVdPlX.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-49sVdPlX.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';
|
|
@@ -789,7 +789,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
789
789
|
*
|
|
790
790
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
791
791
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
792
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다.
|
|
792
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기 prop 이 없어 기본 간격(`spacing='normal'`)에서 크기 = 여백 6×2 + 아이콘이다 — 높이 36 인 입력란·버튼 옆(검색 돋보기·더보기)은 아이콘 `size={24}`(36×36)로 맞춘다(아이콘 기본 16 이면 28×28 이라 입력란보다 작다).
|
|
793
793
|
*/
|
|
794
794
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
795
795
|
|
|
@@ -1043,17 +1043,19 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1043
1043
|
note?: React$1.ReactNode;
|
|
1044
1044
|
/** 맨 아래 버튼 줄(오른쪽 정렬, 8px 간격) */
|
|
1045
1045
|
footer?: React$1.ReactNode;
|
|
1046
|
-
/** 안쪽
|
|
1046
|
+
/** 안쪽 여백과 제목→본문 간격. medium = 여백 16px·간격 12px(옆 패널·폼 검토 패널·폼 안 코드 편집기, 기본) · large = 여백 24px·간격 16px(목록의 상세 패널). `appearance='none'`(상세 본문 구역)이면 안쪽 여백이 없어 간격만 바뀐다 */
|
|
1047
1047
|
padding?: 'medium' | 'large';
|
|
1048
|
+
/** 상자 모양. `standard`(기본) = 1px 테두리·둥근 모서리·배경·안쪽 여백이 있는 상자 · `none` = 상자와 **안쪽 여백도 없이** 제목 줄·본문만 그린다(제목→본문 간격·`titleRight`·`note`·`footer` 는 그대로). 상세 화면 정보 탭의 본문 구역은 `none` 으로 두고 구역 사이를 32px 로 띄운다 — 상자가 없어 간격만이 구역을 가른다. 목록 상세 패널·폼 검토 패널·옆 패널(패턴이 그림)과 폼 안의 코드 편집기 상자는 기본 그대로(2026-11-17 사용자 결정) */
|
|
1049
|
+
appearance?: 'standard' | 'none';
|
|
1048
1050
|
}
|
|
1049
1051
|
/**
|
|
1050
|
-
* 1px 테두리의 둥근
|
|
1052
|
+
* 1px 테두리의 둥근 상자(기본). 상세 화면의 옆 패널, 목록의 상세 패널, 폼의 검토 패널, 폼 안의 코드 편집기 상자가 이 상자다. 상세 화면 정보 탭의 본문 구역은 `appearance='none'` — 상자·안쪽 여백 없이 제목 + 본문만 두고 구역 사이를 32px 로 띄운다(2026-11-17 사용자 결정).
|
|
1051
1053
|
*
|
|
1052
|
-
* 언제 쓰나: 제목 + 내용 묶음을 본문과 구분해 보일 때(상세 본문의 "주요 정보"·"설명"
|
|
1054
|
+
* 언제 쓰나: 제목 + 내용 묶음을 본문과 구분해 보일 때(상세 본문의 "주요 정보"·"설명" — `appearance='none'`, DetailPage `aside`, FormPage `aside`, ListPage `detail`, 폼 안의 코드 편집기 — 기본 상자). 기본 상자는 그림자 없이 선 하나로 나눈다 — 화면의 다른 선(표·구분선)과 같은 토큰.
|
|
1053
1055
|
* 언제 안 쓰나: 대시보드 요약 타일(→ Card), 알림(→ Alert), 겹쳐 뜨는 것(→ Dialog·Drawer·Popover).
|
|
1054
1056
|
* 대신/함께: 안의 필드는 `MetaList` + `MetaRow align='start'`, 표는 `Table`·`AgGridTable`(자기 상자가 있으니 Panel 로 또 감싸지 않는다). 패턴 슬롯(`aside`·`detail`)은 패턴이 Panel 로 그리므로 소비 앱이 상자를 또 두르지 않는다.
|
|
1055
1057
|
*/
|
|
1056
|
-
declare function Panel({ title, description, level, titleRight, note, footer, padding, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1058
|
+
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1057
1059
|
|
|
1058
1060
|
interface ParameterTableRow {
|
|
1059
1061
|
id: string;
|
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, 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-
|
|
11
|
+
import { B as BadgeProps } from './index-49sVdPlX.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-49sVdPlX.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';
|
|
@@ -789,7 +789,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
789
789
|
*
|
|
790
790
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
791
791
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
792
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다.
|
|
792
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기 prop 이 없어 기본 간격(`spacing='normal'`)에서 크기 = 여백 6×2 + 아이콘이다 — 높이 36 인 입력란·버튼 옆(검색 돋보기·더보기)은 아이콘 `size={24}`(36×36)로 맞춘다(아이콘 기본 16 이면 28×28 이라 입력란보다 작다).
|
|
793
793
|
*/
|
|
794
794
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
795
795
|
|
|
@@ -1043,17 +1043,19 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1043
1043
|
note?: React$1.ReactNode;
|
|
1044
1044
|
/** 맨 아래 버튼 줄(오른쪽 정렬, 8px 간격) */
|
|
1045
1045
|
footer?: React$1.ReactNode;
|
|
1046
|
-
/** 안쪽
|
|
1046
|
+
/** 안쪽 여백과 제목→본문 간격. medium = 여백 16px·간격 12px(옆 패널·폼 검토 패널·폼 안 코드 편집기, 기본) · large = 여백 24px·간격 16px(목록의 상세 패널). `appearance='none'`(상세 본문 구역)이면 안쪽 여백이 없어 간격만 바뀐다 */
|
|
1047
1047
|
padding?: 'medium' | 'large';
|
|
1048
|
+
/** 상자 모양. `standard`(기본) = 1px 테두리·둥근 모서리·배경·안쪽 여백이 있는 상자 · `none` = 상자와 **안쪽 여백도 없이** 제목 줄·본문만 그린다(제목→본문 간격·`titleRight`·`note`·`footer` 는 그대로). 상세 화면 정보 탭의 본문 구역은 `none` 으로 두고 구역 사이를 32px 로 띄운다 — 상자가 없어 간격만이 구역을 가른다. 목록 상세 패널·폼 검토 패널·옆 패널(패턴이 그림)과 폼 안의 코드 편집기 상자는 기본 그대로(2026-11-17 사용자 결정) */
|
|
1049
|
+
appearance?: 'standard' | 'none';
|
|
1048
1050
|
}
|
|
1049
1051
|
/**
|
|
1050
|
-
* 1px 테두리의 둥근
|
|
1052
|
+
* 1px 테두리의 둥근 상자(기본). 상세 화면의 옆 패널, 목록의 상세 패널, 폼의 검토 패널, 폼 안의 코드 편집기 상자가 이 상자다. 상세 화면 정보 탭의 본문 구역은 `appearance='none'` — 상자·안쪽 여백 없이 제목 + 본문만 두고 구역 사이를 32px 로 띄운다(2026-11-17 사용자 결정).
|
|
1051
1053
|
*
|
|
1052
|
-
* 언제 쓰나: 제목 + 내용 묶음을 본문과 구분해 보일 때(상세 본문의 "주요 정보"·"설명"
|
|
1054
|
+
* 언제 쓰나: 제목 + 내용 묶음을 본문과 구분해 보일 때(상세 본문의 "주요 정보"·"설명" — `appearance='none'`, DetailPage `aside`, FormPage `aside`, ListPage `detail`, 폼 안의 코드 편집기 — 기본 상자). 기본 상자는 그림자 없이 선 하나로 나눈다 — 화면의 다른 선(표·구분선)과 같은 토큰.
|
|
1053
1055
|
* 언제 안 쓰나: 대시보드 요약 타일(→ Card), 알림(→ Alert), 겹쳐 뜨는 것(→ Dialog·Drawer·Popover).
|
|
1054
1056
|
* 대신/함께: 안의 필드는 `MetaList` + `MetaRow align='start'`, 표는 `Table`·`AgGridTable`(자기 상자가 있으니 Panel 로 또 감싸지 않는다). 패턴 슬롯(`aside`·`detail`)은 패턴이 Panel 로 그리므로 소비 앱이 상자를 또 두르지 않는다.
|
|
1055
1057
|
*/
|
|
1056
|
-
declare function Panel({ title, description, level, titleRight, note, footer, padding, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1058
|
+
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1057
1059
|
|
|
1058
1060
|
interface ParameterTableRow {
|
|
1059
1061
|
id: string;
|
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, growColumnIds, 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-RWXQIS6W.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-RWXQIS6W.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 chunkB7EVWGOO_cjs = require('../chunk-B7EVWGOO.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: chunkB7EVWGOO_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: chunkB7EVWGOO_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(chunkB7EVWGOO_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
|
|
53
|
+
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Skeleton, { className: chunkB7EVWGOO_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: chunkB7EVWGOO_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: chunkB7EVWGOO_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(chunkB7EVWGOO_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(chunkB7EVWGOO_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(chunkB7EVWGOO_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
|
+
chunkB7EVWGOO_cjs.Button,
|
|
178
178
|
{
|
|
179
179
|
type: "button",
|
|
180
180
|
variant: "secondaryOutline",
|
|
181
181
|
onClick: onResetFilters,
|
|
182
|
-
className:
|
|
182
|
+
className: chunkB7EVWGOO_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 }),
|
|
@@ -203,7 +203,7 @@ function ListPage({
|
|
|
203
203
|
const quick = quickFilter ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-[8px]", children: [
|
|
204
204
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small-regular font-medium text-sys-text-subtle", children: quickFilter.label }),
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
206
|
-
|
|
206
|
+
chunkB7EVWGOO_cjs.ToggleGroup,
|
|
207
207
|
{
|
|
208
208
|
type: "multiple",
|
|
209
209
|
variant: "outline",
|
|
@@ -215,9 +215,9 @@ function ListPage({
|
|
|
215
215
|
quickFilter.onChange(pressedAll ? [] : next.filter((v) => v !== QUICK_ALL));
|
|
216
216
|
},
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
218
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
|
|
219
219
|
quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
220
|
-
|
|
220
|
+
chunkB7EVWGOO_cjs.ToggleGroupItem,
|
|
221
221
|
{
|
|
222
222
|
value: o.value,
|
|
223
223
|
count: o.count,
|
|
@@ -258,7 +258,7 @@ function ListPage({
|
|
|
258
258
|
className: "pt-[32px] pb-[16px]",
|
|
259
259
|
title: content.title,
|
|
260
260
|
description: content.description ?? content.children,
|
|
261
|
-
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
261
|
+
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Button, { type: "button", variant: "secondaryLink", onClick: () => resetRef.current?.(), children: "\uD544\uD130 \uCD08\uAE30\uD654" }) : null
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
},
|
|
@@ -270,7 +270,7 @@ function ListPage({
|
|
|
270
270
|
);
|
|
271
271
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
272
272
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
273
|
-
|
|
273
|
+
chunkB7EVWGOO_cjs.PageHeader,
|
|
274
274
|
{
|
|
275
275
|
title,
|
|
276
276
|
description,
|
|
@@ -279,19 +279,19 @@ function ListPage({
|
|
|
279
279
|
bottomRight: filterRow
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
|
-
/* @__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(chunkB7EVWGOO_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.AlertDescription, { children: error }) }) : (
|
|
283
283
|
// 상세 패널(detail)이 있으면 표 쪽이 줄고 패널이 오른쪽에 나란히 선다 — 목록 맥락을 유지한 채 상세를 본다
|
|
284
284
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-[24px]", children: [
|
|
285
285
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
286
286
|
caption,
|
|
287
287
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
288
|
-
|
|
288
|
+
chunkB7EVWGOO_cjs.AgGridTable,
|
|
289
289
|
{
|
|
290
290
|
rowData: rows,
|
|
291
291
|
columnDefs,
|
|
292
292
|
loading,
|
|
293
293
|
noRowsOverlayComponent: EmptyOverlay,
|
|
294
|
-
onSortChanged: onSortChange ? (e) => onSortChange(
|
|
294
|
+
onSortChanged: onSortChange ? (e) => onSortChange(chunkB7EVWGOO_cjs.getSortedColumnState(e).value) : void 0,
|
|
295
295
|
onRowClicked: onRowClick ? (e) => {
|
|
296
296
|
if (e.data) onRowClick(e.data);
|
|
297
297
|
} : void 0,
|
|
@@ -301,8 +301,8 @@ function ListPage({
|
|
|
301
301
|
rowClassRules
|
|
302
302
|
}
|
|
303
303
|
),
|
|
304
|
-
pagination ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
305
|
-
|
|
304
|
+
pagination ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.TablePagination, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
305
|
+
chunkB7EVWGOO_cjs.Pagination,
|
|
306
306
|
{
|
|
307
307
|
total: pagination.total,
|
|
308
308
|
rowsPerPage: pagination.pageSize,
|
|
@@ -315,13 +315,13 @@ function ListPage({
|
|
|
315
315
|
// 나란한 상세 패널: 제목·설명·닫기 → 본문 → (안내) → 버튼 줄. 스크롤해도 따라오게 sticky. Card 와 같은 테두리·라운드(그림자 없음).
|
|
316
316
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe landmark-complementary-is-top-level) 이름 있는 section — DetailPage 의 aside 와 같다
|
|
317
317
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
318
|
-
|
|
318
|
+
chunkB7EVWGOO_cjs.Panel,
|
|
319
319
|
{
|
|
320
320
|
title: detail.title,
|
|
321
321
|
description: detail.description,
|
|
322
322
|
padding: "large",
|
|
323
323
|
titleRight: /* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
-
|
|
324
|
+
chunkB7EVWGOO_cjs.IconButton,
|
|
325
325
|
{
|
|
326
326
|
type: "button",
|
|
327
327
|
variant: "secondary",
|
|
@@ -332,7 +332,7 @@ function ListPage({
|
|
|
332
332
|
),
|
|
333
333
|
note: detail.note,
|
|
334
334
|
footer: detail.footer,
|
|
335
|
-
className:
|
|
335
|
+
className: chunkB7EVWGOO_cjs.cn("sticky top-[24px] shrink-0", DETAIL_WIDTH[detail.width ?? "medium"]),
|
|
336
336
|
children: detail.children
|
|
337
337
|
}
|
|
338
338
|
)
|
|
@@ -350,10 +350,10 @@ function MoreMenu({
|
|
|
350
350
|
const select = (fn) => () => {
|
|
351
351
|
pendingRef.current = fn;
|
|
352
352
|
};
|
|
353
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
354
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
353
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkB7EVWGOO_cjs.DropdownMenu, { children: [
|
|
354
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.IconButton, { ref: triggerRef, variant: "secondary", "aria-label": "\uB354\uBCF4\uAE30", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { size: 24 }) }) }),
|
|
355
355
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
356
|
-
|
|
356
|
+
chunkB7EVWGOO_cjs.DropdownMenuContent,
|
|
357
357
|
{
|
|
358
358
|
align: "end",
|
|
359
359
|
onCloseAutoFocus: (e) => {
|
|
@@ -364,10 +364,10 @@ function MoreMenu({
|
|
|
364
364
|
fn?.();
|
|
365
365
|
},
|
|
366
366
|
children: [
|
|
367
|
-
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
368
|
-
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
367
|
+
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
|
|
368
|
+
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DropdownMenuSeparator, {}) : null,
|
|
369
369
|
deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
370
|
-
|
|
370
|
+
chunkB7EVWGOO_cjs.DropdownMenuItem,
|
|
371
371
|
{
|
|
372
372
|
variant: "danger",
|
|
373
373
|
disabled: deleteAction.disabled,
|
|
@@ -415,7 +415,7 @@ function DetailPage({
|
|
|
415
415
|
body = // 넓은 화면: 본문 2 : 패널 1 + 세로선. 좁은 화면: 세로로 쌓이고 패널은 제목 + 가로선으로 시작한다
|
|
416
416
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[2fr_1fr] xl:items-start", children: [
|
|
417
417
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children }),
|
|
418
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
418
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Panel, { title: asideTitle, children: aside })
|
|
419
419
|
] });
|
|
420
420
|
} else {
|
|
421
421
|
body = children;
|
|
@@ -423,11 +423,11 @@ function DetailPage({
|
|
|
423
423
|
const VISIBLE_SECONDARY = 2;
|
|
424
424
|
const visibleSecondary = secondaryActions?.slice(0, VISIBLE_SECONDARY) ?? [];
|
|
425
425
|
const overflowSecondary = secondaryActions?.slice(VISIBLE_SECONDARY) ?? [];
|
|
426
|
-
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
426
|
+
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
|
|
427
427
|
const moreMenu = (items) => items.length || deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items, deleteAction }) : null;
|
|
428
428
|
const fullRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
429
429
|
moreMenu(overflowSecondary),
|
|
430
|
-
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
430
|
+
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
|
|
431
431
|
primaryButton
|
|
432
432
|
] });
|
|
433
433
|
const collapsedRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -448,7 +448,7 @@ function DetailPage({
|
|
|
448
448
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "detail-actions-collapsed", className: "flex items-center gap-[8px] @3xl:hidden", children: collapsedRow })
|
|
449
449
|
] }) : primaryButton ? primaryButton : void 0;
|
|
450
450
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
451
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
451
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.PageHeader, { ...header, actions: actionRow }),
|
|
452
452
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
453
453
|
"section",
|
|
454
454
|
{
|
|
@@ -456,7 +456,7 @@ function DetailPage({
|
|
|
456
456
|
className: "flex flex-col gap-[24px] px-[24px] py-[24px]",
|
|
457
457
|
children: [
|
|
458
458
|
banner,
|
|
459
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
459
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkB7EVWGOO_cjs.cn("w-full", width === "panel" && "mx-auto max-w-[900px]"), children: [
|
|
460
460
|
note,
|
|
461
461
|
body
|
|
462
462
|
] })
|
|
@@ -478,7 +478,7 @@ function useFormShell({
|
|
|
478
478
|
}
|
|
479
479
|
function FormError({ error, className }) {
|
|
480
480
|
if (!error) return null;
|
|
481
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
481
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.AlertDescription, { children: error }) });
|
|
482
482
|
}
|
|
483
483
|
function FormActions({
|
|
484
484
|
busy,
|
|
@@ -490,7 +490,7 @@ function FormActions({
|
|
|
490
490
|
}) {
|
|
491
491
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
492
492
|
onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
493
|
-
|
|
493
|
+
chunkB7EVWGOO_cjs.Button,
|
|
494
494
|
{
|
|
495
495
|
type: "button",
|
|
496
496
|
variant: "secondaryOutline",
|
|
@@ -501,7 +501,7 @@ function FormActions({
|
|
|
501
501
|
}
|
|
502
502
|
) : null,
|
|
503
503
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
504
|
-
|
|
504
|
+
chunkB7EVWGOO_cjs.Button,
|
|
505
505
|
{
|
|
506
506
|
type: "submit",
|
|
507
507
|
variant: "primaryBold",
|
|
@@ -553,11 +553,11 @@ function FormPage({
|
|
|
553
553
|
" ",
|
|
554
554
|
"\uD45C\uC2DC\uB294 \uD544\uC218 \uC785\uB825 \uD56D\uBAA9\uC785\uB2C8\uB2E4"
|
|
555
555
|
] }) : null,
|
|
556
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
556
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
|
|
557
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
|
|
558
558
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
|
|
559
559
|
aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
560
|
-
|
|
560
|
+
chunkB7EVWGOO_cjs.FormFooter,
|
|
561
561
|
{
|
|
562
562
|
align: "end",
|
|
563
563
|
className: "mt-[24px] border-t border-sys-divider-subtle pt-[16px]",
|
|
@@ -569,9 +569,9 @@ function FormPage({
|
|
|
569
569
|
const column = canvas === "subtle" ? (
|
|
570
570
|
// 폼 전체를 흰 Card 하나로(섹션 사이 구분선은 그대로). 위 8px 는 첫 FormSection 의 pt-[16px] 과 더해 24
|
|
571
571
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
572
|
-
|
|
572
|
+
chunkB7EVWGOO_cjs.Card,
|
|
573
573
|
{
|
|
574
|
-
className:
|
|
574
|
+
className: chunkB7EVWGOO_cjs.cn(
|
|
575
575
|
"w-full max-w-[var(--max-w-form-control)] px-[24px] pb-[24px] pt-[8px]",
|
|
576
576
|
align === "center" && !aside && "mx-auto"
|
|
577
577
|
),
|
|
@@ -581,7 +581,7 @@ function FormPage({
|
|
|
581
581
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
582
582
|
"div",
|
|
583
583
|
{
|
|
584
|
-
className:
|
|
584
|
+
className: chunkB7EVWGOO_cjs.cn(
|
|
585
585
|
"w-full max-w-[var(--max-w-form-control)]",
|
|
586
586
|
align === "center" && !aside && "mx-auto"
|
|
587
587
|
),
|
|
@@ -590,9 +590,9 @@ function FormPage({
|
|
|
590
590
|
);
|
|
591
591
|
return (
|
|
592
592
|
// subtle 의 캔버스 회색은 기존 토큰(grayscale20, 진단 18-A 의 f7 변형)을 쓴다 — 채택되면 전용 sys 토큰으로 올린다
|
|
593
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
593
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkB7EVWGOO_cjs.cn("w-full", canvas === "subtle" && "bg-sys-background-hover"), children: [
|
|
594
594
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
595
|
-
|
|
595
|
+
chunkB7EVWGOO_cjs.PageHeader,
|
|
596
596
|
{
|
|
597
597
|
title,
|
|
598
598
|
description,
|
|
@@ -606,7 +606,7 @@ function FormPage({
|
|
|
606
606
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe) 이름 있는 section (DetailPage aside 와 같은 꼴)
|
|
607
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: [
|
|
608
608
|
column,
|
|
609
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
609
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkB7EVWGOO_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
|
|
610
610
|
aside,
|
|
611
611
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
612
612
|
"div",
|
|
@@ -643,23 +643,23 @@ function FormDrawer({
|
|
|
643
643
|
if (!next && busy) return;
|
|
644
644
|
onOpenChange(next);
|
|
645
645
|
};
|
|
646
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
647
|
-
|
|
646
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
647
|
+
chunkB7EVWGOO_cjs.DrawerContent,
|
|
648
648
|
{
|
|
649
649
|
side,
|
|
650
650
|
size,
|
|
651
651
|
...description ? {} : { "aria-describedby": void 0 },
|
|
652
652
|
children: [
|
|
653
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
654
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
655
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
653
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkB7EVWGOO_cjs.DrawerHeader, { children: [
|
|
654
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DrawerTitle, { children: title }),
|
|
655
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DrawerDescription, { children: description }) : null
|
|
656
656
|
] }),
|
|
657
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
658
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
657
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_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(chunkB7EVWGOO_cjs.DrawerBody, { className: "px-[24px]", children: [
|
|
659
659
|
children,
|
|
660
660
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
|
|
661
661
|
] }),
|
|
662
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
662
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
663
663
|
FormActions,
|
|
664
664
|
{
|
|
665
665
|
busy,
|
|
@@ -694,21 +694,21 @@ function FormDialog({
|
|
|
694
694
|
if (!next && busy) return;
|
|
695
695
|
onOpenChange(next);
|
|
696
696
|
};
|
|
697
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
698
|
-
|
|
697
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
698
|
+
chunkB7EVWGOO_cjs.DialogContent,
|
|
699
699
|
{
|
|
700
700
|
width,
|
|
701
701
|
hideCloseButton: busy,
|
|
702
702
|
...description ? {} : { "aria-describedby": void 0 },
|
|
703
703
|
children: [
|
|
704
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
705
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
706
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkB7EVWGOO_cjs.DialogHeader, { children: [
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DialogTitle, { children: title }),
|
|
706
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DialogDescription, { children: description }) : null
|
|
707
707
|
] }),
|
|
708
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
|
|
709
709
|
children,
|
|
710
710
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error }),
|
|
711
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
711
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
712
712
|
FormActions,
|
|
713
713
|
{
|
|
714
714
|
busy,
|
|
@@ -740,7 +740,7 @@ function StatTile({
|
|
|
740
740
|
}) {
|
|
741
741
|
const labelId = react.useId();
|
|
742
742
|
const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100);
|
|
743
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
743
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkB7EVWGOO_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
|
|
744
744
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: labelId, className: "text-h6 text-sys-text-subtle", children: href ? (
|
|
745
745
|
// 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다
|
|
746
746
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -752,7 +752,7 @@ function StatTile({
|
|
|
752
752
|
}
|
|
753
753
|
)
|
|
754
754
|
) : label }),
|
|
755
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
755
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.Skeleton, { role: "status", "aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911", className: "h-[32px] w-[80px]" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkB7EVWGOO_cjs.cn("flex items-center gap-[6px] text-h2", TONE_TEXT[tone]), children: [
|
|
756
756
|
tone !== "default" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlert, { "aria-hidden": true, size: 20, className: "shrink-0" }) : null,
|
|
757
757
|
value
|
|
758
758
|
] }),
|
|
@@ -768,7 +768,7 @@ function StatTile({
|
|
|
768
768
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
769
769
|
"div",
|
|
770
770
|
{
|
|
771
|
-
className:
|
|
771
|
+
className: chunkB7EVWGOO_cjs.cn("h-full rounded-full", TONE_BAR[tone]),
|
|
772
772
|
style: { width: `${percent}%` }
|
|
773
773
|
}
|
|
774
774
|
)
|
|
@@ -797,7 +797,7 @@ function DashboardLayout({
|
|
|
797
797
|
children
|
|
798
798
|
] });
|
|
799
799
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
800
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
800
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB7EVWGOO_cjs.PageHeader, { ...header, actions }),
|
|
801
801
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
802
802
|
"section",
|
|
803
803
|
{
|
|
@@ -819,9 +819,9 @@ function DashboardSection({ title, action, columns, children }) {
|
|
|
819
819
|
// 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다
|
|
820
820
|
// 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다
|
|
821
821
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
822
|
-
|
|
822
|
+
chunkB7EVWGOO_cjs.Card,
|
|
823
823
|
{
|
|
824
|
-
className:
|
|
824
|
+
className: chunkB7EVWGOO_cjs.cn(
|
|
825
825
|
"grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler",
|
|
826
826
|
columns === 2 && "xl:grid-cols-2 xl:[&>:last-child:nth-child(odd)]:col-span-2"
|
|
827
827
|
),
|