@t3q-ui/design-system 1.60.0 → 1.61.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 +13 -0
- package/README.md +8 -3
- package/cli/doctor.mjs +19 -12
- package/cli/lib.mjs +145 -25
- package/cli/mcp.mjs +67 -0
- package/cli/setup.mjs +42 -19
- package/cli/t3q-design.mjs +19 -7
- package/dist/{chunk-PDSWUEB2.js → chunk-BGQ5WONC.js} +2 -2
- package/dist/chunk-BGQ5WONC.js.map +1 -0
- package/dist/{chunk-FOVMRFMR.cjs → chunk-BL6W75OG.cjs} +2 -2
- package/dist/chunk-BL6W75OG.cjs.map +1 -0
- package/dist/index.cjs +463 -463
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +154 -5
- package/dist/index.d.ts +154 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/patterns/index.cjs +69 -69
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +7 -0
- package/dist/patterns/index.d.ts +7 -0
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/index.js.map +1 -1
- package/mcp/manifests/components.json +15924 -0
- package/mcp/manifests/docs.json +13 -0
- package/package.json +7 -3
- package/skills/tds/reference/components.md +140 -5
- package/dist/chunk-FOVMRFMR.cjs.map +0 -1
- package/dist/chunk-PDSWUEB2.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -39,6 +39,13 @@ import { AgGridReactProps, AgGridReact } from 'ag-grid-react';
|
|
|
39
39
|
type AccordionProps = React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
40
40
|
sticky?: boolean;
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* 제목을 눌러 내용을 펼치고 접는 구역 목록.
|
|
44
|
+
*
|
|
45
|
+
* 언제 쓰나: 기본으로 접어 두어도 되는 내용 — 고급 설정, 자주 보지 않는 세부 정보, 질문과 답. 하나만 열리게는 `type='single' collapsible`, 여러 개를 함께 열려면 `type='multiple'`.
|
|
46
|
+
* 언제 안 쓰나: 같은 대상을 다른 관점으로 보는 전환(→ Tabs), 늘 봐야 하는 핵심 정보(→ `Panel` 로 펼쳐 둠), 상세 본문 구역 나누기(→ `Panel` + `MetaList`).
|
|
47
|
+
* 대신/함께: 제목만 보고 열지 말지 판단할 수 있게 제목에 내용을 요약한다.
|
|
48
|
+
*/
|
|
42
49
|
declare function Accordion({ sticky, className, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
43
50
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
44
51
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -97,6 +104,13 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
97
104
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant" | "loading"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
105
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
99
106
|
|
|
107
|
+
/**
|
|
108
|
+
* 지금 화면의 상위 위치를 보여 주고 돌아가게 하는 경로 표시.
|
|
109
|
+
*
|
|
110
|
+
* 언제 쓰나: 목록 아래 단계 화면(상세·폼)의 PageHeader `breadcrumb` 슬롯에 — 목록 › 항목.
|
|
111
|
+
* 언제 안 쓰나: 최상위 목록 화면(경로가 하나뿐), 단계 진행 표시(→ 단계 탭), 앱 전체 메뉴(→ Sidebar).
|
|
112
|
+
* 대신/함께: 마지막 항목은 현재 화면이라 링크로 두지 않는다. 길면 중간을 줄인다.
|
|
113
|
+
*/
|
|
100
114
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
101
115
|
/** 하위 `BreadcrumbSeparator` 의 기본 구분자 (children 을 넘기지 않은 Separator 에 적용) */
|
|
102
116
|
separator?: React$1.ReactNode;
|
|
@@ -165,8 +179,22 @@ type CalendarProps = React$1.ComponentProps<typeof DayPicker> & {
|
|
|
165
179
|
/** 뷰 전환 비활성화 (항상 days view만 표시) */
|
|
166
180
|
disableViewSwitching?: boolean;
|
|
167
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* 날짜를 달력에서 고르는 인라인 달력(하루·기간).
|
|
184
|
+
*
|
|
185
|
+
* 언제 쓰나: 달력을 화면이나 직접 만든 팝오버 안에 펼쳐 둬야 할 때(일정 보기, 기간 고르기 패널).
|
|
186
|
+
* 언제 안 쓰나: 폼의 날짜 입력(→ DatePicker·DatePickerRange — 입력칸 + 이 달력), 날짜와 시각(→ DatePicker + TimePicker), 자주 쓰는 기간 빠른 선택(→ DatePresets).
|
|
187
|
+
* 대신/함께: 월·연 보기 전환이 필요 없으면 `disableViewSwitching` 으로 날짜 보기만 둔다.
|
|
188
|
+
*/
|
|
168
189
|
declare function Calendar({ classNames: classNamesProp, className, showOutsideDays, disableViewSwitching, ...dayPickerProps }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
169
190
|
|
|
191
|
+
/**
|
|
192
|
+
* 그림자·테두리가 있는 독립 객체 상자(머리·본문·바닥·이미지).
|
|
193
|
+
*
|
|
194
|
+
* 언제 쓰나: 서로 독립적인 항목을 나란히 놓고 고르거나 비교할 때(템플릿·모델 카드 그리드, 이미지가 있는 항목).
|
|
195
|
+
* 언제 안 쓰나: 상세·폼 화면의 구역(→ `Panel` — 그림자 없는 상자), 대시보드 지표(→ DashboardLayout `stats`·`DashboardPanel`), 표 감싸기(→ 표는 자기 상자가 있다), 폼 옆 검토 패널(→ FormPage `aside`).
|
|
196
|
+
* 대신/함께: 같은 화면에서 Card 와 Panel 을 섞어 상자 모양이 둘로 보이지 않게 한다.
|
|
197
|
+
*/
|
|
170
198
|
declare function Card({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
171
199
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
172
200
|
declare function CardTitle({ className, children, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
@@ -368,6 +396,13 @@ declare const OPERATOR_LABELS: Record<Operator, string>;
|
|
|
368
396
|
declare const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]>;
|
|
369
397
|
|
|
370
398
|
declare function useColumnFilter(): ColumnFilterContextType;
|
|
399
|
+
/**
|
|
400
|
+
* 표 검색창과 열 조건 태그(열·연산자·값)로 목록을 거르는 필터.
|
|
401
|
+
*
|
|
402
|
+
* 언제 쓰나: 목록 화면 헤더의 검색 — `ColumnFilter` + `ColumnFilterInput`. 열별 조건(상태 = 실행 중, 수정일 이후 …)을 태그로 쌓는다.
|
|
403
|
+
* 언제 안 쓰나: 상태 몇 개로 빠르게 거르기(→ ListPage `quickFilter` 칩), 폼 입력(→ TextField), 열 보이기·숨기기(→ ColumnVisibilityFilter).
|
|
404
|
+
* 대신/함께: placeholder 는 무엇으로 찾는지만("모델 이름·요청 ID 검색"). 필터 칩 옆에 TextField 를 따로 두지 않는다.
|
|
405
|
+
*/
|
|
371
406
|
declare function ColumnFilter({ columns, value, onChange, onSearch, className, disabled, getValueSuggestions, operatorsByType, operatorsByColumn, children, }: ColumnFilterProps & {
|
|
372
407
|
children: React$1.ReactNode;
|
|
373
408
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -440,8 +475,22 @@ interface ColumnVisibilityFilterProps {
|
|
|
440
475
|
searchable?: boolean;
|
|
441
476
|
align?: 'start' | 'center' | 'end';
|
|
442
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* 표의 열을 체크로 보이기·숨기기 하는 필터 팝오버.
|
|
480
|
+
*
|
|
481
|
+
* 언제 쓰나: 열이 많은 AgGridTable 목록에서 사용자가 볼 열을 고르게 할 때(ListPage 필터 줄).
|
|
482
|
+
* 언제 안 쓰나: 행 거르기(→ ColumnFilter·`quickFilter`), 열이 6~7개 이하인 표(보조 정보는 열을 늘리지 말고 `secondaryField`).
|
|
483
|
+
* 대신/함께: 처음부터 숨겨 둘 열은 기본값에서 빼 두고, 사용자가 켜게 한다.
|
|
484
|
+
*/
|
|
443
485
|
declare function ColumnVisibilityFilter({ title, options, value, onChange, searchPlaceholder, emptyText, allText, searchable, className, align, }: ColumnVisibilityFilterProps): react_jsx_runtime.JSX.Element;
|
|
444
486
|
|
|
487
|
+
/**
|
|
488
|
+
* 검색 입력과 걸러지는 목록을 묶은 키보드 선택 목록(cmdk).
|
|
489
|
+
*
|
|
490
|
+
* 언제 쓰나: 항목이 많아 검색이 필요한 목록을 팝오버·Dialog 안에 직접 만들 때(명령 팔레트, 사용자·태그 찾기). 화면 가운데 명령 팔레트는 `CommandDialog`(제목은 보조기술용 `title`).
|
|
491
|
+
* 언제 안 쓰나: 폼의 값 고르기(→ Select·MultiSelect), 몇 개뿐인 행동(→ DropdownMenu), 표 검색(→ ColumnFilter).
|
|
492
|
+
* 대신/함께: TableFilter·ColumnVisibilityFilter 가 안쪽에서 이미 쓰고 있다 — 그 필터들을 직접 다시 만들지 않는다.
|
|
493
|
+
*/
|
|
445
494
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
446
495
|
children?: React$1.ReactNode;
|
|
447
496
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -631,6 +680,13 @@ type DatePickerRangeProps = {
|
|
|
631
680
|
};
|
|
632
681
|
declare function DatePickerRange({ date, setDate, withPresets, placeholder, classNames, disabled, isInvalid, label, appearance, required, calendarProps, }: DatePickerRangeProps): react_jsx_runtime.JSX.Element;
|
|
633
682
|
|
|
683
|
+
/**
|
|
684
|
+
* 버튼을 눌러 여는 행동 메뉴. 자주 쓰지 않는 행동을 "더보기" 안에 접어 둔다.
|
|
685
|
+
*
|
|
686
|
+
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
|
|
687
|
+
* 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
|
|
688
|
+
* 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다.
|
|
689
|
+
*/
|
|
634
690
|
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
635
691
|
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
636
692
|
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -664,6 +720,13 @@ declare const useFormField: () => {
|
|
|
664
720
|
formDescriptionId: string;
|
|
665
721
|
formMessageId: string;
|
|
666
722
|
};
|
|
723
|
+
/**
|
|
724
|
+
* 폼 필드 한 칸의 틀. 라벨·입력·도움말·오류를 묶고, 입력에 오류 상태와 접근성 속성을 전한다(입력 폭 기본 상한 720).
|
|
725
|
+
*
|
|
726
|
+
* 언제 쓰나: react-hook-form 폼에서 `FormField` → `FormItem` → `FormLabel`·`FormControl`(입력)·`FormDescription`·`FormMessage` 로 한 칸을 만든다. 섹션은 `FormSection`.
|
|
727
|
+
* 언제 안 쓰나: 폼 화면 전체 골격(→ FormPage·FormDrawer·FormDialog — 제출·버튼·서버 오류를 패턴이 처리), 폼 밖의 단독 라벨(→ Label).
|
|
728
|
+
* 대신/함께: 도움말(`FormDescription`)은 규칙·전제·추천값만, placeholder 와 같은 말을 되풀이하지 않는다.
|
|
729
|
+
*/
|
|
667
730
|
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
668
731
|
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
669
732
|
required?: boolean;
|
|
@@ -742,6 +805,13 @@ type IconSelectProps = {
|
|
|
742
805
|
/** 검색 입력 숨김 @default false */
|
|
743
806
|
hiddenSearch?: boolean;
|
|
744
807
|
};
|
|
808
|
+
/**
|
|
809
|
+
* 아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.
|
|
810
|
+
*
|
|
811
|
+
* 언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.
|
|
812
|
+
* 언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).
|
|
813
|
+
* 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.
|
|
814
|
+
*/
|
|
745
815
|
declare function IconSelect({ iconColumnCount, hasCategory, hiddenSearch, ...props }: IconSelectProps): react_jsx_runtime.JSX.Element;
|
|
746
816
|
|
|
747
817
|
type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
@@ -771,6 +841,13 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
771
841
|
*/
|
|
772
842
|
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
773
843
|
|
|
844
|
+
/**
|
|
845
|
+
* 컨트롤 옆에 붙는 글자 라벨.
|
|
846
|
+
*
|
|
847
|
+
* 언제 쓰나: 폼 밖의 단독 컨트롤(설정 줄의 Checkbox·Switch)에 `htmlFor` 로 이름을 붙일 때.
|
|
848
|
+
* 언제 안 쓰나: 폼 필드(→ FormLabel — 필수 표시·오류 색·접근성 연결), 카드형 선택지(→ CheckboxSection·RadioSection·SwitchSection 이 제목을 그린다), TextField·Textarea 의 떠 있는 라벨(→ `label` prop).
|
|
849
|
+
* 대신/함께: 라벨 글자는 컨트롤이 무엇을 하는지 명사로 짧게.
|
|
850
|
+
*/
|
|
774
851
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
775
852
|
|
|
776
853
|
interface MetaItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -898,6 +975,13 @@ interface PopoverContentProps extends React$1.ComponentPropsWithoutRef<typeof Po
|
|
|
898
975
|
sideOffset?: number;
|
|
899
976
|
withFitContent?: boolean;
|
|
900
977
|
}
|
|
978
|
+
/**
|
|
979
|
+
* 트리거에 붙어 뜨는 떠 있는 상자. 안에 입력·버튼 같은 대화형 내용을 둘 수 있다.
|
|
980
|
+
*
|
|
981
|
+
* 언제 쓰나: 버튼 옆에 작은 설정·필터·선택 패널을 띄울 때(필터 조건, 짧은 입력 몇 개).
|
|
982
|
+
* 언제 안 쓰나: 글자 한 줄 힌트(→ Tooltip), 행동 목록(→ DropdownMenu), 확인·긴 폼처럼 집중이 필요한 작업(→ Dialog·Drawer).
|
|
983
|
+
* 대신/함께: 열리는 방향(`side`·`align`)은 공간에 맞추고, 고정된 상단 바에 가리면 `collisionPadding` 으로 비켜 열게 한다.
|
|
984
|
+
*/
|
|
901
985
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
902
986
|
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
903
987
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1006,6 +1090,13 @@ interface ParameterTableProps {
|
|
|
1006
1090
|
*/
|
|
1007
1091
|
cellErrors?: ParameterTableCellErrors;
|
|
1008
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* 이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).
|
|
1095
|
+
*
|
|
1096
|
+
* 언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`.
|
|
1097
|
+
* 언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).
|
|
1098
|
+
* 대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.
|
|
1099
|
+
*/
|
|
1009
1100
|
declare const ParameterTable: React$1.ForwardRefExoticComponent<ParameterTableProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1010
1101
|
|
|
1011
1102
|
/** 막대 색 — 작업 상태와 연동(실패한 작업의 막대가 파란색이면 상태와 어긋난다, 2026-10-16 이슈 47) */
|
|
@@ -1353,6 +1444,13 @@ declare function SelectValue({ placeholder }: SelectValueProps): react_jsx_runti
|
|
|
1353
1444
|
|
|
1354
1445
|
declare function useSelectContext(): SelectContextValue;
|
|
1355
1446
|
|
|
1447
|
+
/**
|
|
1448
|
+
* 가로·세로 1px 구분선.
|
|
1449
|
+
*
|
|
1450
|
+
* 언제 쓰나: 한 상자 안에서 성격이 다른 묶음 사이(메뉴 항목 묶음, 툴바 버튼 묶음 사이의 세로선).
|
|
1451
|
+
* 언제 안 쓰나: 상세 본문 구역 나누기(→ 구역마다 `Panel`), 폼 섹션 사이(→ FormSection 이 그린다), `MetaList` 행 사이(→ 행이 선을 가진다), 검토 패널 안 묶음 나누기(→ `MetaList` 하나).
|
|
1452
|
+
* 대신/함께: 이미 선이 있는 자리(패널 테두리·표·목록 행)에 겹쳐 두지 않는다 — 이중 구분선이 된다.
|
|
1453
|
+
*/
|
|
1356
1454
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1357
1455
|
|
|
1358
1456
|
type SidebarContextType = {
|
|
@@ -1367,6 +1465,13 @@ type SidebarProviderProps = {
|
|
|
1367
1465
|
};
|
|
1368
1466
|
declare function SidebarProvider({ children, defaultOpen, open: controlledOpen, onOpenChange, }: SidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
1369
1467
|
declare function useSidebar(): SidebarContextType;
|
|
1468
|
+
/**
|
|
1469
|
+
* 앱 왼쪽 내비게이션(메뉴 묶음·접기).
|
|
1470
|
+
*
|
|
1471
|
+
* 언제 쓰나: 소비 앱 레이아웃(앱 셸)에서 화면 사이를 오가는 메뉴.
|
|
1472
|
+
* 언제 안 쓰나: 한 화면 안의 보기 전환(→ Tabs), 화면 안의 보조 패널(→ ListPage `detail`·Drawer), 패턴 안쪽 — 패턴은 앱 셸을 그리지 않고 앱 레이아웃의 `<main>` 안에 들어간다.
|
|
1473
|
+
* 대신/함께: 접힌 상태에서는 아이콘만 보이므로 아이콘마다 Tooltip 으로 이름을 준다.
|
|
1474
|
+
*/
|
|
1370
1475
|
declare const Sidebar: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
|
|
1371
1476
|
top?: number;
|
|
1372
1477
|
openWidth?: number;
|
|
@@ -1408,6 +1513,13 @@ declare function TableSkeleton({ columnDefs, rowLength, rowHeight, headerHeight,
|
|
|
1408
1513
|
selectionColumnWidth?: number;
|
|
1409
1514
|
}): react_jsx_runtime.JSX.Element;
|
|
1410
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* 내용이 오기 전에 그 자리를 회색 블록으로 보여 주는 로딩 자리표시.
|
|
1518
|
+
*
|
|
1519
|
+
* 언제 쓰나: 모양을 아는 내용(글 줄·카드·아바타·폼 필드 하나)이 늦게 올 때, 실제 내용과 같은 크기로.
|
|
1520
|
+
* 언제 안 쓰나: 패턴 화면 전체의 로딩(→ ListPage·DetailPage·FormPage·DashboardLayout 의 `loading`), 표 로딩(→ AgGridTable `loading`), 버튼 처리 중(→ Button `loading`), 모양을 모르는 짧은 대기(→ Spinner).
|
|
1521
|
+
* 대신/함께: 내용으로 바뀔 때 레이아웃이 움직이지 않도록 높이·폭을 실제와 맞춘다.
|
|
1522
|
+
*/
|
|
1411
1523
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1412
1524
|
|
|
1413
1525
|
/**
|
|
@@ -1452,8 +1564,13 @@ interface RangeProps {
|
|
|
1452
1564
|
name?: string;
|
|
1453
1565
|
}
|
|
1454
1566
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1567
|
+
* ± 버튼·슬라이더·숫자 입력을 묶은 값 하나짜리 범위 입력.
|
|
1568
|
+
*
|
|
1569
|
+
* 언제 쓰나: 정해진 범위 안의 숫자 하나를 끌어서 맞추되 정확한 값도 넣어야 할 때(GPU 수·배치 크기·임계값). 눈금은 `step`(discrete) 또는 양끝 라벨(continuous).
|
|
1570
|
+
* 언제 안 쓰나: 구간의 두 끝(→ RangeSlider 두 thumb), 범위가 넓거나 정확한 값만 중요한 숫자(→ TextField 숫자 입력), 진행률 표시(→ Progress).
|
|
1571
|
+
* 대신/함께: 필요 없는 부분은 `hasButtonControl`(± 버튼)·`hasCustomInput`(숫자칸)으로 끈다.
|
|
1572
|
+
*
|
|
1573
|
+
* 구현 메모: Figma "Range" 합성 컴포넌트 — ± 스테퍼(IconButton) + 슬라이더(RangeSlider) + 숫자 입력박스(DS TextField). 숫자 입력 검증은 useNumberInput 훅이 담당. 단일값 전용 — 두 thumb 범위는 저수준 `RangeSlider`를 직접 쓴다.
|
|
1457
1574
|
*/
|
|
1458
1575
|
declare const Range: React$1.ForwardRefExoticComponent<RangeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1459
1576
|
|
|
@@ -1467,9 +1584,13 @@ interface RangeSliderProps extends Omit<RadixRootProps, 'children'> {
|
|
|
1467
1584
|
marks?: RangeMark[];
|
|
1468
1585
|
}
|
|
1469
1586
|
/**
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1587
|
+
* 슬라이더 부품(트랙·채움·thumb). 값 하나 또는 구간의 두 끝을 고른다.
|
|
1588
|
+
*
|
|
1589
|
+
* 언제 쓰나: 두 thumb 로 구간을 고를 때(최소~최대, 점수 구간), ± 버튼·숫자칸 없이 슬라이더만 필요할 때. `value` 배열 길이가 thumb 개수다.
|
|
1590
|
+
* 언제 안 쓰나: 숫자 하나를 정확히도 넣어야 하는 입력(→ Range), 진행률(→ Progress).
|
|
1591
|
+
* 대신/함께: 구간 양끝의 현재 값은 라벨이나 숫자로 함께 보여 준다.
|
|
1592
|
+
*
|
|
1593
|
+
* 구현 메모: 저수준 슬라이더 파트(Radix 기반). Track + 채움(Range) + thumb 상태머신 + 선택적 discrete/continuous 라벨. thumb 상태: default(primary30) → hover(primary40) → press(primary50) → focus(+ring) → disabled(secondary50). 단일값/범위([lo,hi]) 모두 지원(value 배열 길이로 thumb 개수 결정).
|
|
1473
1594
|
*/
|
|
1474
1595
|
declare const RangeSlider: React$1.ForwardRefExoticComponent<RangeSliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1475
1596
|
|
|
@@ -1521,8 +1642,22 @@ interface SpinnerProps extends HTMLAttributes<HTMLDivElement>, VariantProps<type
|
|
|
1521
1642
|
size?: keyof typeof sizeVariants;
|
|
1522
1643
|
shape?: 'spinner' | 'dot';
|
|
1523
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* 진행 중임을 알리는 회전 표시.
|
|
1647
|
+
*
|
|
1648
|
+
* 언제 쓰나: 모양을 모르는 짧은 대기, 작은 영역 안의 처리 중 표시. 뱃지처럼 색이 정해진 자리 안에서는 `variant='current'` 로 글자색을 따른다.
|
|
1649
|
+
* 언제 안 쓰나: 화면·표 로딩(→ 패턴 `loading`·Skeleton), 버튼 처리 중(→ Button `loading` 이 스피너를 넣는다), 진행률을 아는 작업(→ Progress).
|
|
1650
|
+
* 대신/함께: 오래 걸리는 작업은 스피너만 두지 말고 무엇을 하는지 글자로 함께 알린다.
|
|
1651
|
+
*/
|
|
1524
1652
|
declare function Spinner({ size, variant, shape, ...props }: SpinnerProps): JSX.Element;
|
|
1525
1653
|
|
|
1654
|
+
/**
|
|
1655
|
+
* 자식을 가로·세로로 늘어놓는 flex 배치 도우미(간격·정렬).
|
|
1656
|
+
*
|
|
1657
|
+
* 언제 쓰나: 버튼 묶음·아이콘과 글자·작은 요소의 줄 배치. 기본 방향은 가로(`row`) — 세로는 `direction='column'`.
|
|
1658
|
+
* 언제 안 쓰나: 화면 골격(→ 패턴), 카드 격자(→ CSS grid), 폼 필드 쌓기(→ FormSection 이 간격을 준다), 상세 필드 목록(→ `MetaList`).
|
|
1659
|
+
* 대신/함께: 나란히 놓인 버튼 사이 간격은 8px.
|
|
1660
|
+
*/
|
|
1526
1661
|
declare const Stack: React__default.ForwardRefExoticComponent<{
|
|
1527
1662
|
children?: React__default.ReactNode | undefined;
|
|
1528
1663
|
} & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1817,6 +1952,13 @@ type TextareaProps = Omit<TextareaAutosizeProps, 'children'> & {
|
|
|
1817
1952
|
/** 수동 리사이즈 허용 */
|
|
1818
1953
|
resize?: boolean;
|
|
1819
1954
|
};
|
|
1955
|
+
/**
|
|
1956
|
+
* 여러 줄 글자 입력(떠 있는 라벨·자동 높이).
|
|
1957
|
+
*
|
|
1958
|
+
* 언제 쓰나: 설명·메모·사유처럼 한 줄을 넘는 글. `minRows`·`maxRows` 로 내용만큼 늘린다.
|
|
1959
|
+
* 언제 안 쓰나: 한 줄 값(→ TextField), 이름-값 여러 줄(→ ParameterTable), 코드·JSON 편집(DS 밖의 코드 편집기).
|
|
1960
|
+
* 대신/함께: 폼에서는 `FormControl` 안에. 글자 수("0 / 200자")는 `FormDescription` 에 아이콘 없이.
|
|
1961
|
+
*/
|
|
1820
1962
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextareaAutosizeProps, "children"> & {
|
|
1821
1963
|
/** @default 'standard' */
|
|
1822
1964
|
appearance?: "standard" | "none";
|
|
@@ -1913,6 +2055,13 @@ declare function useTheme(): ThemeContextValue;
|
|
|
1913
2055
|
declare function useOptionalTheme(): ThemeContextValue | undefined;
|
|
1914
2056
|
|
|
1915
2057
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
2058
|
+
/**
|
|
2059
|
+
* 마우스를 올리거나 포커스했을 때 뜨는 짧은 글자 설명.
|
|
2060
|
+
*
|
|
2061
|
+
* 언제 쓰나: 아이콘만 있는 버튼의 이름, 말줄임으로 잘린 글자 전체.
|
|
2062
|
+
* 언제 안 쓰나: 꼭 읽어야 하는 정보·오류(→ FormDescription·FormMessage·Alert), 대화형 내용(→ Popover), 터치 화면에서만 쓰는 정보(마우스를 올릴 수 없다).
|
|
2063
|
+
* 대신/함께: IconButton 에는 Tooltip 과 함께 `aria-label` 을 준다.
|
|
2064
|
+
*/
|
|
1916
2065
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
1917
2066
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1918
2067
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,13 @@ import { AgGridReactProps, AgGridReact } from 'ag-grid-react';
|
|
|
39
39
|
type AccordionProps = React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
40
40
|
sticky?: boolean;
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* 제목을 눌러 내용을 펼치고 접는 구역 목록.
|
|
44
|
+
*
|
|
45
|
+
* 언제 쓰나: 기본으로 접어 두어도 되는 내용 — 고급 설정, 자주 보지 않는 세부 정보, 질문과 답. 하나만 열리게는 `type='single' collapsible`, 여러 개를 함께 열려면 `type='multiple'`.
|
|
46
|
+
* 언제 안 쓰나: 같은 대상을 다른 관점으로 보는 전환(→ Tabs), 늘 봐야 하는 핵심 정보(→ `Panel` 로 펼쳐 둠), 상세 본문 구역 나누기(→ `Panel` + `MetaList`).
|
|
47
|
+
* 대신/함께: 제목만 보고 열지 말지 판단할 수 있게 제목에 내용을 요약한다.
|
|
48
|
+
*/
|
|
42
49
|
declare function Accordion({ sticky, className, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
43
50
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
44
51
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -97,6 +104,13 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
97
104
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant" | "loading"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
105
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
99
106
|
|
|
107
|
+
/**
|
|
108
|
+
* 지금 화면의 상위 위치를 보여 주고 돌아가게 하는 경로 표시.
|
|
109
|
+
*
|
|
110
|
+
* 언제 쓰나: 목록 아래 단계 화면(상세·폼)의 PageHeader `breadcrumb` 슬롯에 — 목록 › 항목.
|
|
111
|
+
* 언제 안 쓰나: 최상위 목록 화면(경로가 하나뿐), 단계 진행 표시(→ 단계 탭), 앱 전체 메뉴(→ Sidebar).
|
|
112
|
+
* 대신/함께: 마지막 항목은 현재 화면이라 링크로 두지 않는다. 길면 중간을 줄인다.
|
|
113
|
+
*/
|
|
100
114
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
101
115
|
/** 하위 `BreadcrumbSeparator` 의 기본 구분자 (children 을 넘기지 않은 Separator 에 적용) */
|
|
102
116
|
separator?: React$1.ReactNode;
|
|
@@ -165,8 +179,22 @@ type CalendarProps = React$1.ComponentProps<typeof DayPicker> & {
|
|
|
165
179
|
/** 뷰 전환 비활성화 (항상 days view만 표시) */
|
|
166
180
|
disableViewSwitching?: boolean;
|
|
167
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* 날짜를 달력에서 고르는 인라인 달력(하루·기간).
|
|
184
|
+
*
|
|
185
|
+
* 언제 쓰나: 달력을 화면이나 직접 만든 팝오버 안에 펼쳐 둬야 할 때(일정 보기, 기간 고르기 패널).
|
|
186
|
+
* 언제 안 쓰나: 폼의 날짜 입력(→ DatePicker·DatePickerRange — 입력칸 + 이 달력), 날짜와 시각(→ DatePicker + TimePicker), 자주 쓰는 기간 빠른 선택(→ DatePresets).
|
|
187
|
+
* 대신/함께: 월·연 보기 전환이 필요 없으면 `disableViewSwitching` 으로 날짜 보기만 둔다.
|
|
188
|
+
*/
|
|
168
189
|
declare function Calendar({ classNames: classNamesProp, className, showOutsideDays, disableViewSwitching, ...dayPickerProps }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
169
190
|
|
|
191
|
+
/**
|
|
192
|
+
* 그림자·테두리가 있는 독립 객체 상자(머리·본문·바닥·이미지).
|
|
193
|
+
*
|
|
194
|
+
* 언제 쓰나: 서로 독립적인 항목을 나란히 놓고 고르거나 비교할 때(템플릿·모델 카드 그리드, 이미지가 있는 항목).
|
|
195
|
+
* 언제 안 쓰나: 상세·폼 화면의 구역(→ `Panel` — 그림자 없는 상자), 대시보드 지표(→ DashboardLayout `stats`·`DashboardPanel`), 표 감싸기(→ 표는 자기 상자가 있다), 폼 옆 검토 패널(→ FormPage `aside`).
|
|
196
|
+
* 대신/함께: 같은 화면에서 Card 와 Panel 을 섞어 상자 모양이 둘로 보이지 않게 한다.
|
|
197
|
+
*/
|
|
170
198
|
declare function Card({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
171
199
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
172
200
|
declare function CardTitle({ className, children, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
@@ -368,6 +396,13 @@ declare const OPERATOR_LABELS: Record<Operator, string>;
|
|
|
368
396
|
declare const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]>;
|
|
369
397
|
|
|
370
398
|
declare function useColumnFilter(): ColumnFilterContextType;
|
|
399
|
+
/**
|
|
400
|
+
* 표 검색창과 열 조건 태그(열·연산자·값)로 목록을 거르는 필터.
|
|
401
|
+
*
|
|
402
|
+
* 언제 쓰나: 목록 화면 헤더의 검색 — `ColumnFilter` + `ColumnFilterInput`. 열별 조건(상태 = 실행 중, 수정일 이후 …)을 태그로 쌓는다.
|
|
403
|
+
* 언제 안 쓰나: 상태 몇 개로 빠르게 거르기(→ ListPage `quickFilter` 칩), 폼 입력(→ TextField), 열 보이기·숨기기(→ ColumnVisibilityFilter).
|
|
404
|
+
* 대신/함께: placeholder 는 무엇으로 찾는지만("모델 이름·요청 ID 검색"). 필터 칩 옆에 TextField 를 따로 두지 않는다.
|
|
405
|
+
*/
|
|
371
406
|
declare function ColumnFilter({ columns, value, onChange, onSearch, className, disabled, getValueSuggestions, operatorsByType, operatorsByColumn, children, }: ColumnFilterProps & {
|
|
372
407
|
children: React$1.ReactNode;
|
|
373
408
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -440,8 +475,22 @@ interface ColumnVisibilityFilterProps {
|
|
|
440
475
|
searchable?: boolean;
|
|
441
476
|
align?: 'start' | 'center' | 'end';
|
|
442
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* 표의 열을 체크로 보이기·숨기기 하는 필터 팝오버.
|
|
480
|
+
*
|
|
481
|
+
* 언제 쓰나: 열이 많은 AgGridTable 목록에서 사용자가 볼 열을 고르게 할 때(ListPage 필터 줄).
|
|
482
|
+
* 언제 안 쓰나: 행 거르기(→ ColumnFilter·`quickFilter`), 열이 6~7개 이하인 표(보조 정보는 열을 늘리지 말고 `secondaryField`).
|
|
483
|
+
* 대신/함께: 처음부터 숨겨 둘 열은 기본값에서 빼 두고, 사용자가 켜게 한다.
|
|
484
|
+
*/
|
|
443
485
|
declare function ColumnVisibilityFilter({ title, options, value, onChange, searchPlaceholder, emptyText, allText, searchable, className, align, }: ColumnVisibilityFilterProps): react_jsx_runtime.JSX.Element;
|
|
444
486
|
|
|
487
|
+
/**
|
|
488
|
+
* 검색 입력과 걸러지는 목록을 묶은 키보드 선택 목록(cmdk).
|
|
489
|
+
*
|
|
490
|
+
* 언제 쓰나: 항목이 많아 검색이 필요한 목록을 팝오버·Dialog 안에 직접 만들 때(명령 팔레트, 사용자·태그 찾기). 화면 가운데 명령 팔레트는 `CommandDialog`(제목은 보조기술용 `title`).
|
|
491
|
+
* 언제 안 쓰나: 폼의 값 고르기(→ Select·MultiSelect), 몇 개뿐인 행동(→ DropdownMenu), 표 검색(→ ColumnFilter).
|
|
492
|
+
* 대신/함께: TableFilter·ColumnVisibilityFilter 가 안쪽에서 이미 쓰고 있다 — 그 필터들을 직접 다시 만들지 않는다.
|
|
493
|
+
*/
|
|
445
494
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
446
495
|
children?: React$1.ReactNode;
|
|
447
496
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -631,6 +680,13 @@ type DatePickerRangeProps = {
|
|
|
631
680
|
};
|
|
632
681
|
declare function DatePickerRange({ date, setDate, withPresets, placeholder, classNames, disabled, isInvalid, label, appearance, required, calendarProps, }: DatePickerRangeProps): react_jsx_runtime.JSX.Element;
|
|
633
682
|
|
|
683
|
+
/**
|
|
684
|
+
* 버튼을 눌러 여는 행동 메뉴. 자주 쓰지 않는 행동을 "더보기" 안에 접어 둔다.
|
|
685
|
+
*
|
|
686
|
+
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
|
|
687
|
+
* 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
|
|
688
|
+
* 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다.
|
|
689
|
+
*/
|
|
634
690
|
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
635
691
|
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
636
692
|
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -664,6 +720,13 @@ declare const useFormField: () => {
|
|
|
664
720
|
formDescriptionId: string;
|
|
665
721
|
formMessageId: string;
|
|
666
722
|
};
|
|
723
|
+
/**
|
|
724
|
+
* 폼 필드 한 칸의 틀. 라벨·입력·도움말·오류를 묶고, 입력에 오류 상태와 접근성 속성을 전한다(입력 폭 기본 상한 720).
|
|
725
|
+
*
|
|
726
|
+
* 언제 쓰나: react-hook-form 폼에서 `FormField` → `FormItem` → `FormLabel`·`FormControl`(입력)·`FormDescription`·`FormMessage` 로 한 칸을 만든다. 섹션은 `FormSection`.
|
|
727
|
+
* 언제 안 쓰나: 폼 화면 전체 골격(→ FormPage·FormDrawer·FormDialog — 제출·버튼·서버 오류를 패턴이 처리), 폼 밖의 단독 라벨(→ Label).
|
|
728
|
+
* 대신/함께: 도움말(`FormDescription`)은 규칙·전제·추천값만, placeholder 와 같은 말을 되풀이하지 않는다.
|
|
729
|
+
*/
|
|
667
730
|
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
668
731
|
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
669
732
|
required?: boolean;
|
|
@@ -742,6 +805,13 @@ type IconSelectProps = {
|
|
|
742
805
|
/** 검색 입력 숨김 @default false */
|
|
743
806
|
hiddenSearch?: boolean;
|
|
744
807
|
};
|
|
808
|
+
/**
|
|
809
|
+
* 아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.
|
|
810
|
+
*
|
|
811
|
+
* 언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.
|
|
812
|
+
* 언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).
|
|
813
|
+
* 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.
|
|
814
|
+
*/
|
|
745
815
|
declare function IconSelect({ iconColumnCount, hasCategory, hiddenSearch, ...props }: IconSelectProps): react_jsx_runtime.JSX.Element;
|
|
746
816
|
|
|
747
817
|
type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
@@ -771,6 +841,13 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
771
841
|
*/
|
|
772
842
|
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
773
843
|
|
|
844
|
+
/**
|
|
845
|
+
* 컨트롤 옆에 붙는 글자 라벨.
|
|
846
|
+
*
|
|
847
|
+
* 언제 쓰나: 폼 밖의 단독 컨트롤(설정 줄의 Checkbox·Switch)에 `htmlFor` 로 이름을 붙일 때.
|
|
848
|
+
* 언제 안 쓰나: 폼 필드(→ FormLabel — 필수 표시·오류 색·접근성 연결), 카드형 선택지(→ CheckboxSection·RadioSection·SwitchSection 이 제목을 그린다), TextField·Textarea 의 떠 있는 라벨(→ `label` prop).
|
|
849
|
+
* 대신/함께: 라벨 글자는 컨트롤이 무엇을 하는지 명사로 짧게.
|
|
850
|
+
*/
|
|
774
851
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
775
852
|
|
|
776
853
|
interface MetaItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -898,6 +975,13 @@ interface PopoverContentProps extends React$1.ComponentPropsWithoutRef<typeof Po
|
|
|
898
975
|
sideOffset?: number;
|
|
899
976
|
withFitContent?: boolean;
|
|
900
977
|
}
|
|
978
|
+
/**
|
|
979
|
+
* 트리거에 붙어 뜨는 떠 있는 상자. 안에 입력·버튼 같은 대화형 내용을 둘 수 있다.
|
|
980
|
+
*
|
|
981
|
+
* 언제 쓰나: 버튼 옆에 작은 설정·필터·선택 패널을 띄울 때(필터 조건, 짧은 입력 몇 개).
|
|
982
|
+
* 언제 안 쓰나: 글자 한 줄 힌트(→ Tooltip), 행동 목록(→ DropdownMenu), 확인·긴 폼처럼 집중이 필요한 작업(→ Dialog·Drawer).
|
|
983
|
+
* 대신/함께: 열리는 방향(`side`·`align`)은 공간에 맞추고, 고정된 상단 바에 가리면 `collisionPadding` 으로 비켜 열게 한다.
|
|
984
|
+
*/
|
|
901
985
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
902
986
|
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
903
987
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1006,6 +1090,13 @@ interface ParameterTableProps {
|
|
|
1006
1090
|
*/
|
|
1007
1091
|
cellErrors?: ParameterTableCellErrors;
|
|
1008
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* 이름·값·설명 행을 표 안에서 바로 편집하는 표(행 추가·삭제·순서 변경·엑셀 붙여넣기).
|
|
1095
|
+
*
|
|
1096
|
+
* 언제 쓰나: 환경 변수·하이퍼파라미터·태그처럼 개수가 정해지지 않은 이름-값 목록을 폼에서 입력할 때. 셀 오류는 `cellErrors`.
|
|
1097
|
+
* 언제 안 쓰나: 읽기 전용 표(→ Table·AgGridTable), 정해진 몇 개 필드(→ FormField 여러 개), 긴 글(→ Textarea).
|
|
1098
|
+
* 대신/함께: 폼에서는 섹션 하나에 두고, 빈 이름·중복 이름은 제출할 때 셀 오류로 알린다.
|
|
1099
|
+
*/
|
|
1009
1100
|
declare const ParameterTable: React$1.ForwardRefExoticComponent<ParameterTableProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1010
1101
|
|
|
1011
1102
|
/** 막대 색 — 작업 상태와 연동(실패한 작업의 막대가 파란색이면 상태와 어긋난다, 2026-10-16 이슈 47) */
|
|
@@ -1353,6 +1444,13 @@ declare function SelectValue({ placeholder }: SelectValueProps): react_jsx_runti
|
|
|
1353
1444
|
|
|
1354
1445
|
declare function useSelectContext(): SelectContextValue;
|
|
1355
1446
|
|
|
1447
|
+
/**
|
|
1448
|
+
* 가로·세로 1px 구분선.
|
|
1449
|
+
*
|
|
1450
|
+
* 언제 쓰나: 한 상자 안에서 성격이 다른 묶음 사이(메뉴 항목 묶음, 툴바 버튼 묶음 사이의 세로선).
|
|
1451
|
+
* 언제 안 쓰나: 상세 본문 구역 나누기(→ 구역마다 `Panel`), 폼 섹션 사이(→ FormSection 이 그린다), `MetaList` 행 사이(→ 행이 선을 가진다), 검토 패널 안 묶음 나누기(→ `MetaList` 하나).
|
|
1452
|
+
* 대신/함께: 이미 선이 있는 자리(패널 테두리·표·목록 행)에 겹쳐 두지 않는다 — 이중 구분선이 된다.
|
|
1453
|
+
*/
|
|
1356
1454
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1357
1455
|
|
|
1358
1456
|
type SidebarContextType = {
|
|
@@ -1367,6 +1465,13 @@ type SidebarProviderProps = {
|
|
|
1367
1465
|
};
|
|
1368
1466
|
declare function SidebarProvider({ children, defaultOpen, open: controlledOpen, onOpenChange, }: SidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
1369
1467
|
declare function useSidebar(): SidebarContextType;
|
|
1468
|
+
/**
|
|
1469
|
+
* 앱 왼쪽 내비게이션(메뉴 묶음·접기).
|
|
1470
|
+
*
|
|
1471
|
+
* 언제 쓰나: 소비 앱 레이아웃(앱 셸)에서 화면 사이를 오가는 메뉴.
|
|
1472
|
+
* 언제 안 쓰나: 한 화면 안의 보기 전환(→ Tabs), 화면 안의 보조 패널(→ ListPage `detail`·Drawer), 패턴 안쪽 — 패턴은 앱 셸을 그리지 않고 앱 레이아웃의 `<main>` 안에 들어간다.
|
|
1473
|
+
* 대신/함께: 접힌 상태에서는 아이콘만 보이므로 아이콘마다 Tooltip 으로 이름을 준다.
|
|
1474
|
+
*/
|
|
1370
1475
|
declare const Sidebar: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
|
|
1371
1476
|
top?: number;
|
|
1372
1477
|
openWidth?: number;
|
|
@@ -1408,6 +1513,13 @@ declare function TableSkeleton({ columnDefs, rowLength, rowHeight, headerHeight,
|
|
|
1408
1513
|
selectionColumnWidth?: number;
|
|
1409
1514
|
}): react_jsx_runtime.JSX.Element;
|
|
1410
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* 내용이 오기 전에 그 자리를 회색 블록으로 보여 주는 로딩 자리표시.
|
|
1518
|
+
*
|
|
1519
|
+
* 언제 쓰나: 모양을 아는 내용(글 줄·카드·아바타·폼 필드 하나)이 늦게 올 때, 실제 내용과 같은 크기로.
|
|
1520
|
+
* 언제 안 쓰나: 패턴 화면 전체의 로딩(→ ListPage·DetailPage·FormPage·DashboardLayout 의 `loading`), 표 로딩(→ AgGridTable `loading`), 버튼 처리 중(→ Button `loading`), 모양을 모르는 짧은 대기(→ Spinner).
|
|
1521
|
+
* 대신/함께: 내용으로 바뀔 때 레이아웃이 움직이지 않도록 높이·폭을 실제와 맞춘다.
|
|
1522
|
+
*/
|
|
1411
1523
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1412
1524
|
|
|
1413
1525
|
/**
|
|
@@ -1452,8 +1564,13 @@ interface RangeProps {
|
|
|
1452
1564
|
name?: string;
|
|
1453
1565
|
}
|
|
1454
1566
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1567
|
+
* ± 버튼·슬라이더·숫자 입력을 묶은 값 하나짜리 범위 입력.
|
|
1568
|
+
*
|
|
1569
|
+
* 언제 쓰나: 정해진 범위 안의 숫자 하나를 끌어서 맞추되 정확한 값도 넣어야 할 때(GPU 수·배치 크기·임계값). 눈금은 `step`(discrete) 또는 양끝 라벨(continuous).
|
|
1570
|
+
* 언제 안 쓰나: 구간의 두 끝(→ RangeSlider 두 thumb), 범위가 넓거나 정확한 값만 중요한 숫자(→ TextField 숫자 입력), 진행률 표시(→ Progress).
|
|
1571
|
+
* 대신/함께: 필요 없는 부분은 `hasButtonControl`(± 버튼)·`hasCustomInput`(숫자칸)으로 끈다.
|
|
1572
|
+
*
|
|
1573
|
+
* 구현 메모: Figma "Range" 합성 컴포넌트 — ± 스테퍼(IconButton) + 슬라이더(RangeSlider) + 숫자 입력박스(DS TextField). 숫자 입력 검증은 useNumberInput 훅이 담당. 단일값 전용 — 두 thumb 범위는 저수준 `RangeSlider`를 직접 쓴다.
|
|
1457
1574
|
*/
|
|
1458
1575
|
declare const Range: React$1.ForwardRefExoticComponent<RangeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1459
1576
|
|
|
@@ -1467,9 +1584,13 @@ interface RangeSliderProps extends Omit<RadixRootProps, 'children'> {
|
|
|
1467
1584
|
marks?: RangeMark[];
|
|
1468
1585
|
}
|
|
1469
1586
|
/**
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1587
|
+
* 슬라이더 부품(트랙·채움·thumb). 값 하나 또는 구간의 두 끝을 고른다.
|
|
1588
|
+
*
|
|
1589
|
+
* 언제 쓰나: 두 thumb 로 구간을 고를 때(최소~최대, 점수 구간), ± 버튼·숫자칸 없이 슬라이더만 필요할 때. `value` 배열 길이가 thumb 개수다.
|
|
1590
|
+
* 언제 안 쓰나: 숫자 하나를 정확히도 넣어야 하는 입력(→ Range), 진행률(→ Progress).
|
|
1591
|
+
* 대신/함께: 구간 양끝의 현재 값은 라벨이나 숫자로 함께 보여 준다.
|
|
1592
|
+
*
|
|
1593
|
+
* 구현 메모: 저수준 슬라이더 파트(Radix 기반). Track + 채움(Range) + thumb 상태머신 + 선택적 discrete/continuous 라벨. thumb 상태: default(primary30) → hover(primary40) → press(primary50) → focus(+ring) → disabled(secondary50). 단일값/범위([lo,hi]) 모두 지원(value 배열 길이로 thumb 개수 결정).
|
|
1473
1594
|
*/
|
|
1474
1595
|
declare const RangeSlider: React$1.ForwardRefExoticComponent<RangeSliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1475
1596
|
|
|
@@ -1521,8 +1642,22 @@ interface SpinnerProps extends HTMLAttributes<HTMLDivElement>, VariantProps<type
|
|
|
1521
1642
|
size?: keyof typeof sizeVariants;
|
|
1522
1643
|
shape?: 'spinner' | 'dot';
|
|
1523
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* 진행 중임을 알리는 회전 표시.
|
|
1647
|
+
*
|
|
1648
|
+
* 언제 쓰나: 모양을 모르는 짧은 대기, 작은 영역 안의 처리 중 표시. 뱃지처럼 색이 정해진 자리 안에서는 `variant='current'` 로 글자색을 따른다.
|
|
1649
|
+
* 언제 안 쓰나: 화면·표 로딩(→ 패턴 `loading`·Skeleton), 버튼 처리 중(→ Button `loading` 이 스피너를 넣는다), 진행률을 아는 작업(→ Progress).
|
|
1650
|
+
* 대신/함께: 오래 걸리는 작업은 스피너만 두지 말고 무엇을 하는지 글자로 함께 알린다.
|
|
1651
|
+
*/
|
|
1524
1652
|
declare function Spinner({ size, variant, shape, ...props }: SpinnerProps): JSX.Element;
|
|
1525
1653
|
|
|
1654
|
+
/**
|
|
1655
|
+
* 자식을 가로·세로로 늘어놓는 flex 배치 도우미(간격·정렬).
|
|
1656
|
+
*
|
|
1657
|
+
* 언제 쓰나: 버튼 묶음·아이콘과 글자·작은 요소의 줄 배치. 기본 방향은 가로(`row`) — 세로는 `direction='column'`.
|
|
1658
|
+
* 언제 안 쓰나: 화면 골격(→ 패턴), 카드 격자(→ CSS grid), 폼 필드 쌓기(→ FormSection 이 간격을 준다), 상세 필드 목록(→ `MetaList`).
|
|
1659
|
+
* 대신/함께: 나란히 놓인 버튼 사이 간격은 8px.
|
|
1660
|
+
*/
|
|
1526
1661
|
declare const Stack: React__default.ForwardRefExoticComponent<{
|
|
1527
1662
|
children?: React__default.ReactNode | undefined;
|
|
1528
1663
|
} & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1817,6 +1952,13 @@ type TextareaProps = Omit<TextareaAutosizeProps, 'children'> & {
|
|
|
1817
1952
|
/** 수동 리사이즈 허용 */
|
|
1818
1953
|
resize?: boolean;
|
|
1819
1954
|
};
|
|
1955
|
+
/**
|
|
1956
|
+
* 여러 줄 글자 입력(떠 있는 라벨·자동 높이).
|
|
1957
|
+
*
|
|
1958
|
+
* 언제 쓰나: 설명·메모·사유처럼 한 줄을 넘는 글. `minRows`·`maxRows` 로 내용만큼 늘린다.
|
|
1959
|
+
* 언제 안 쓰나: 한 줄 값(→ TextField), 이름-값 여러 줄(→ ParameterTable), 코드·JSON 편집(DS 밖의 코드 편집기).
|
|
1960
|
+
* 대신/함께: 폼에서는 `FormControl` 안에. 글자 수("0 / 200자")는 `FormDescription` 에 아이콘 없이.
|
|
1961
|
+
*/
|
|
1820
1962
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextareaAutosizeProps, "children"> & {
|
|
1821
1963
|
/** @default 'standard' */
|
|
1822
1964
|
appearance?: "standard" | "none";
|
|
@@ -1913,6 +2055,13 @@ declare function useTheme(): ThemeContextValue;
|
|
|
1913
2055
|
declare function useOptionalTheme(): ThemeContextValue | undefined;
|
|
1914
2056
|
|
|
1915
2057
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
2058
|
+
/**
|
|
2059
|
+
* 마우스를 올리거나 포커스했을 때 뜨는 짧은 글자 설명.
|
|
2060
|
+
*
|
|
2061
|
+
* 언제 쓰나: 아이콘만 있는 버튼의 이름, 말줄임으로 잘린 글자 전체.
|
|
2062
|
+
* 언제 안 쓰나: 꼭 읽어야 하는 정보·오류(→ FormDescription·FormMessage·Alert), 대화형 내용(→ Popover), 터치 화면에서만 쓰는 정보(마우스를 올릴 수 없다).
|
|
2063
|
+
* 대신/함께: IconButton 에는 Tooltip 과 함께 `aria-label` 을 준다.
|
|
2064
|
+
*/
|
|
1916
2065
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
1917
2066
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1918
2067
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
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-BGQ5WONC.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-BGQ5WONC.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';
|