@mondrianai/runyourai-design-system 0.0.6 → 0.0.8
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/dist/index.d.mts +97 -26
- package/dist/index.d.ts +97 -26
- package/dist/index.js +760 -519
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +711 -475
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +5 -5
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
8
|
-
import {
|
|
8
|
+
import { RowSelectionState, OnChangeFn, SortingState } from '@tanstack/react-table';
|
|
9
9
|
export { OnChangeFn, PaginationState, RowSelectionState, SortingState } from '@tanstack/react-table';
|
|
10
10
|
|
|
11
11
|
declare const Accordion: React$1.ForwardRefExoticComponent<(Accordion$1.AccordionSingleProps | Accordion$1.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -168,8 +168,9 @@ interface DataSectionProps {
|
|
|
168
168
|
left?: React$1.ReactNode;
|
|
169
169
|
right?: React$1.ReactNode;
|
|
170
170
|
className?: string;
|
|
171
|
+
childrenClassName?: string;
|
|
171
172
|
}
|
|
172
|
-
declare function DataSection({ title, left, right, className, children, }: DataSectionProps): react_jsx_runtime.JSX.Element;
|
|
173
|
+
declare function DataSection({ title, left, right, className, childrenClassName, children, }: DataSectionProps): react_jsx_runtime.JSX.Element;
|
|
173
174
|
|
|
174
175
|
interface DrawerProps {
|
|
175
176
|
open: boolean;
|
|
@@ -453,8 +454,9 @@ interface KbCardProps {
|
|
|
453
454
|
/** 카드 클릭 핸들러. selectable(편집 모드)일 때는 동작하지 않음. */
|
|
454
455
|
onClick?: () => void;
|
|
455
456
|
className?: string;
|
|
457
|
+
variant?: 'grid' | 'list';
|
|
456
458
|
}
|
|
457
|
-
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
459
|
+
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, variant, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
458
460
|
|
|
459
461
|
declare function MarkdownMessage({ content, isStreaming, footerMeta, className, }: {
|
|
460
462
|
content: string;
|
|
@@ -642,6 +644,7 @@ type SidebarSubMenuItem = {
|
|
|
642
644
|
isActive?: boolean;
|
|
643
645
|
titleBadge?: string | number;
|
|
644
646
|
onClick?: () => void;
|
|
647
|
+
isExternal?: boolean;
|
|
645
648
|
};
|
|
646
649
|
type SidebarMainMenuItem = {
|
|
647
650
|
id: string;
|
|
@@ -686,22 +689,27 @@ declare function Sidebar({ logo, menus, avatar, utilities, panelTopContent, pane
|
|
|
686
689
|
LinkComponent: SidebarLinkComponent;
|
|
687
690
|
}): react_jsx_runtime.JSX.Element;
|
|
688
691
|
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
692
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
693
|
+
/**
|
|
694
|
+
* bar — 가로 막대, width=100%, 양쪽 rounded-full (default)
|
|
695
|
+
* circle — 원형, size prop으로 지름 조절
|
|
696
|
+
* card — 대형 사각형 블록, rounded-xl
|
|
697
|
+
*/
|
|
698
|
+
shape?: 'bar' | 'circle' | 'card';
|
|
699
|
+
/**
|
|
700
|
+
* lg — bar: 24px / circle: 40px / card: 128px
|
|
701
|
+
* md — bar: 12px / circle: 32px / card: 96px
|
|
702
|
+
* sm — bar: 6px / circle: 24px / card: 64px
|
|
703
|
+
*/
|
|
704
|
+
size?: 'lg' | 'md' | 'sm';
|
|
693
705
|
}
|
|
694
|
-
declare function Skeleton({ className,
|
|
706
|
+
declare function Skeleton({ className, shape, size, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
695
707
|
|
|
696
708
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
697
709
|
|
|
698
|
-
interface StepperStep {
|
|
699
|
-
/** key prop으로 사용되는 고유 식별자 */
|
|
700
|
-
id: string;
|
|
701
|
-
label: string;
|
|
702
|
-
}
|
|
703
710
|
interface StepperProps {
|
|
704
|
-
|
|
711
|
+
/** Step 라벨 문자열 배열 */
|
|
712
|
+
steps: string[];
|
|
705
713
|
/**
|
|
706
714
|
* 현재 진행 중인 step의 0-based 인덱스.
|
|
707
715
|
* 이 인덱스 이전 step은 complete, 이 인덱스는 current, 이후는 next.
|
|
@@ -711,6 +719,65 @@ interface StepperProps {
|
|
|
711
719
|
}
|
|
712
720
|
declare function Stepper({ steps, currentStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
713
721
|
|
|
722
|
+
interface TabItem<T extends string = string> {
|
|
723
|
+
value: T;
|
|
724
|
+
label: string;
|
|
725
|
+
}
|
|
726
|
+
interface TabsProps<T extends string = string> {
|
|
727
|
+
allTabs: TabItem<T>[];
|
|
728
|
+
current: T;
|
|
729
|
+
onTabChange: (value: T) => void;
|
|
730
|
+
/**
|
|
731
|
+
* "pill" — 회색 배경 컨테이너 + 흰 배경 active (segment control 스타일)
|
|
732
|
+
* "underline" — 하단 밑줄 active (default)
|
|
733
|
+
*/
|
|
734
|
+
variant?: 'pill' | 'underline';
|
|
735
|
+
className?: string;
|
|
736
|
+
}
|
|
737
|
+
declare function Tabs<T extends string = string>({ allTabs, current, onTabChange, variant, className, }: TabsProps<T>): react_jsx_runtime.JSX.Element;
|
|
738
|
+
|
|
739
|
+
interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
740
|
+
pressed?: boolean;
|
|
741
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
742
|
+
size?: 'sm' | 'md' | 'lg';
|
|
743
|
+
}
|
|
744
|
+
declare const toggleSizeClasses: {
|
|
745
|
+
readonly sm: "h-7 min-w-7 px-1.5 text-sm";
|
|
746
|
+
readonly md: "h-9 min-w-9 px-2 text-sm";
|
|
747
|
+
readonly lg: "h-10 min-w-10 px-2.5 text-base";
|
|
748
|
+
};
|
|
749
|
+
declare const toggleBaseClasses = "inline-flex items-center justify-center gap-1.5 font-medium tracking-tight transition-colors select-none";
|
|
750
|
+
declare function Toggle({ pressed, onPressedChange, size, disabled, className, children, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
752
|
+
interface ToggleGroupItemData<T extends string = string> {
|
|
753
|
+
value: T;
|
|
754
|
+
children: React.ReactNode;
|
|
755
|
+
disabled?: boolean;
|
|
756
|
+
}
|
|
757
|
+
interface ToggleGroupBaseProps<T extends string = string> {
|
|
758
|
+
items: ToggleGroupItemData<T>[];
|
|
759
|
+
/**
|
|
760
|
+
* outlined — 컨테이너 border + 아이템 사이 divider (default)
|
|
761
|
+
* noBorder — border 없음, 아이템마다 rounded-md 독립 적용
|
|
762
|
+
*/
|
|
763
|
+
variant?: 'bordered' | 'noBorder';
|
|
764
|
+
disabled?: boolean;
|
|
765
|
+
size?: 'sm' | 'md' | 'lg';
|
|
766
|
+
className?: string;
|
|
767
|
+
}
|
|
768
|
+
interface ToggleGroupSingleProps<T extends string = string> extends ToggleGroupBaseProps<T> {
|
|
769
|
+
type?: 'single';
|
|
770
|
+
value?: T;
|
|
771
|
+
onValueChange?: (value: T) => void;
|
|
772
|
+
}
|
|
773
|
+
interface ToggleGroupMultipleProps<T extends string = string> extends ToggleGroupBaseProps<T> {
|
|
774
|
+
type: 'multiple';
|
|
775
|
+
value?: T[];
|
|
776
|
+
onValueChange?: (value: T[]) => void;
|
|
777
|
+
}
|
|
778
|
+
type ToggleGroupProps<T extends string = string> = ToggleGroupSingleProps<T> | ToggleGroupMultipleProps<T>;
|
|
779
|
+
declare function ToggleGroup<T extends string = string>({ items, variant, disabled, size, className, ...rest }: ToggleGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
780
|
+
|
|
714
781
|
interface CircleIndicatorProps {
|
|
715
782
|
/** 사용량 (바이트 또는 임의 단위) */
|
|
716
783
|
used: number;
|
|
@@ -762,13 +829,12 @@ interface TableColumn<T> {
|
|
|
762
829
|
ellipsisTooltip?: (row: T) => React$1.ReactNode;
|
|
763
830
|
cell: (row: T) => React$1.ReactNode;
|
|
764
831
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
*/
|
|
770
|
-
|
|
771
|
-
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
832
|
+
interface TablePaginationConfig {
|
|
833
|
+
pageSize?: number;
|
|
834
|
+
/** 현재 페이지 번호 (1-based). 외부에서 제어할 때 전달. */
|
|
835
|
+
currentPage?: number;
|
|
836
|
+
/** 페이지 변경 콜백 (1-based page). */
|
|
837
|
+
onPageChange?: (page: number) => void;
|
|
772
838
|
/** 서버사이드 페이지네이션 시 true로 설정 */
|
|
773
839
|
manualPagination?: boolean;
|
|
774
840
|
/** manualPagination=true 일 때 전체 페이지 수 */
|
|
@@ -792,7 +858,7 @@ interface TableProps<T> {
|
|
|
792
858
|
rowKey: keyof T | ((row: T) => string);
|
|
793
859
|
/**
|
|
794
860
|
* 페이지네이션 설정. 미전달 시 페이지네이션 비활성화.
|
|
795
|
-
* TanStack
|
|
861
|
+
* 외부 API는 1-based page를 사용하고, TanStack의 0-based pageIndex는 내부에서 변환한다.
|
|
796
862
|
*/
|
|
797
863
|
pagination?: TablePaginationConfig;
|
|
798
864
|
/**
|
|
@@ -816,6 +882,11 @@ interface TableProps<T> {
|
|
|
816
882
|
rowActions?: (row: T) => React$1.ReactNode;
|
|
817
883
|
/** 행 클릭 핸들러. enableRowSelection=true(편집 모드)일 때는 동작하지 않음. */
|
|
818
884
|
onRowClick?: (row: T) => void;
|
|
885
|
+
/**
|
|
886
|
+
* 정렬 상태 변경 콜백. 서버사이드 정렬 연동에 사용.
|
|
887
|
+
* 빈 배열(정렬 해제)은 전달되지 않으므로 항상 최소 1개 항목 보장.
|
|
888
|
+
*/
|
|
889
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
819
890
|
className?: string;
|
|
820
891
|
}
|
|
821
892
|
declare function SortIcon({ direction }: {
|
|
@@ -828,7 +899,7 @@ interface PaginationProps {
|
|
|
828
899
|
className?: string;
|
|
829
900
|
}
|
|
830
901
|
declare function Pagination({ currentPage, totalPages, onPageChange, className, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
831
|
-
declare function Table<T>({ columns, data, rowKey, pagination, defaultSorting, loading, enableRowSelection, rowSelection: rowSelectionProp, onRowSelectionChange, rowActions, onRowClick, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
902
|
+
declare function Table<T>({ columns, data, rowKey, pagination, defaultSorting, loading, enableRowSelection, rowSelection: rowSelectionProp, onRowSelectionChange, rowActions, onRowClick, onSortingChange, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
832
903
|
|
|
833
904
|
declare const TooltipProvider: React$1.FC<Tooltip$1.TooltipProviderProps>;
|
|
834
905
|
interface TooltipProps extends Pick<React$1.ComponentPropsWithoutRef<typeof Tooltip$1.Root>, 'open' | 'defaultOpen' | 'onOpenChange' | 'delayDuration'>, Omit<React$1.ComponentPropsWithoutRef<typeof Tooltip$1.Content>, 'children' | 'content'> {
|
|
@@ -1357,9 +1428,9 @@ interface TrashIconProps {
|
|
|
1357
1428
|
className?: string;
|
|
1358
1429
|
}
|
|
1359
1430
|
/**
|
|
1360
|
-
* Trash icon — SVG downloaded directly from Figma design system.
|
|
1431
|
+
* Trash-2 icon — SVG downloaded directly from Figma design system.
|
|
1361
1432
|
* Uses stroke="currentColor" for CSS color control.
|
|
1362
|
-
* Source: figma.com/design/bNKDIZZAm8ByouCPBnlEye node 128:
|
|
1433
|
+
* Source: figma.com/design/bNKDIZZAm8ByouCPBnlEye node 128:2738 (lucide/trash-2)
|
|
1363
1434
|
*/
|
|
1364
1435
|
declare function TrashIcon({ className }: TrashIconProps): react_jsx_runtime.JSX.Element;
|
|
1365
1436
|
|
|
@@ -1375,4 +1446,4 @@ declare function WordFileIcon({ className }: {
|
|
|
1375
1446
|
className?: string;
|
|
1376
1447
|
}): react_jsx_runtime.JSX.Element;
|
|
1377
1448
|
|
|
1378
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentBlogIcon, AgentCsIcon, AgentDataIcon, AgentHrIcon, AgentMailIcon, AgentTrendIcon, AiAgentIcon, AiBuilderIcon, AiCloudIcon, AiDatacenterIcon, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlignJustifyIcon, AlignLeftIcon, ArrowDownIcon, type AvailabilityStatus, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarSize, BADGE_VARIANT_STYLES, Badge, type BadgeProps, type BadgeVariant, BlockquoteIcon, BoldIcon, BookOpenIcon, BookUpIcon, Breadcrumb, Button, type ButtonProps, Card, type CardProps, type CardSpec, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxProps, ChevronsUpDownIcon, ChoiceCardGroup, type ChoiceCardGroupProps, ChoiceCardItem, type ChoiceCardItemProps, CircleCheckFillIcon, CircleHelpIcon, CircleIndicator, type CircleIndicatorProps, CircleOutlineIcon, ClaudeIcon, CodeIcon, CodeSquareIcon, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleRoot, CollapsibleTrigger, type CollapsibleWorkspace, Combobox, type ComboboxOption, type ComboboxProps, CreditIcon, DataSection, type DataSectionProps, DeepSeekIcon, DownloadIcon, Drawer, type DrawerProps, DriveIcon, Empty, EmptyTrayIcon, Field, FieldDivider, type FieldProps, FieldRow, type FieldRowProps, FieldSection, type FieldSectionProps, FileCodeIcon, FileSearchIcon, FileTypeCornerIcon, FolderAmberIcon, FolderBlueIcon, FolderClosedIcon, FolderGreenIcon, FolderVioletIcon, GeminiIcon, GoogleIcon, GroupedSelect, HangulFileIcon, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, HtmlFileIcon, ICON_NODES, Icon, type IconProps, ImageIcon, ImportIcon, IndentIcon, ItalicIcon, KbCard, type KbCardMetadataItem, type KbCardProps, KeyRoundIcon, type LanguageItem, LayersIcon, LayoutGridIcon, LineChartIcon, LinkIcon, ListIcon, ListOrderedIcon, type MachineType, MarkdownFileIcon, MarkdownMessage, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageCircleIcon, MessageFooter, type MessageFooterProps, MessagesSquareIcon, Modal, type ModalProps, type ModelGroup, type ModelItem, MyPageIcon, type NavDropdownItem, type NotificationItem, NumberBadge, type NumberBadgeProps, OpenAiIcon, OutdentIcon, Pagination, PanelLeftIcon, PdfFileIcon, PenLineIcon, PencilLineIcon, PresentationIcon, Providers, RefreshCwIcon, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, Skeleton, type SkeletonProps, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps,
|
|
1449
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentBlogIcon, AgentCsIcon, AgentDataIcon, AgentHrIcon, AgentMailIcon, AgentTrendIcon, AiAgentIcon, AiBuilderIcon, AiCloudIcon, AiDatacenterIcon, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlignJustifyIcon, AlignLeftIcon, ArrowDownIcon, type AvailabilityStatus, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarSize, BADGE_VARIANT_STYLES, Badge, type BadgeProps, type BadgeVariant, BlockquoteIcon, BoldIcon, BookOpenIcon, BookUpIcon, Breadcrumb, Button, type ButtonProps, Card, type CardProps, type CardSpec, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxProps, ChevronsUpDownIcon, ChoiceCardGroup, type ChoiceCardGroupProps, ChoiceCardItem, type ChoiceCardItemProps, CircleCheckFillIcon, CircleHelpIcon, CircleIndicator, type CircleIndicatorProps, CircleOutlineIcon, ClaudeIcon, CodeIcon, CodeSquareIcon, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleRoot, CollapsibleTrigger, type CollapsibleWorkspace, Combobox, type ComboboxOption, type ComboboxProps, CreditIcon, DataSection, type DataSectionProps, DeepSeekIcon, DownloadIcon, Drawer, type DrawerProps, DriveIcon, Empty, EmptyTrayIcon, Field, FieldDivider, type FieldProps, FieldRow, type FieldRowProps, FieldSection, type FieldSectionProps, FileCodeIcon, FileSearchIcon, FileTypeCornerIcon, FolderAmberIcon, FolderBlueIcon, FolderClosedIcon, FolderGreenIcon, FolderVioletIcon, GeminiIcon, GoogleIcon, GroupedSelect, HangulFileIcon, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, HtmlFileIcon, ICON_NODES, Icon, type IconProps, ImageIcon, ImportIcon, IndentIcon, ItalicIcon, KbCard, type KbCardMetadataItem, type KbCardProps, KeyRoundIcon, type LanguageItem, LayersIcon, LayoutGridIcon, LineChartIcon, LinkIcon, ListIcon, ListOrderedIcon, type MachineType, MarkdownFileIcon, MarkdownMessage, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageCircleIcon, MessageFooter, type MessageFooterProps, MessagesSquareIcon, Modal, type ModalProps, type ModelGroup, type ModelItem, MyPageIcon, type NavDropdownItem, type NotificationItem, NumberBadge, type NumberBadgeProps, OpenAiIcon, OutdentIcon, Pagination, PanelLeftIcon, PdfFileIcon, PenLineIcon, PencilLineIcon, PresentationIcon, Providers, RefreshCwIcon, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, Skeleton, type SkeletonProps, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, type TabItem, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tabs, type TabsProps, Toggle, ToggleGroup, type ToggleGroupItemData, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants, toggleBaseClasses, toggleSizeClasses };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
8
|
-
import {
|
|
8
|
+
import { RowSelectionState, OnChangeFn, SortingState } from '@tanstack/react-table';
|
|
9
9
|
export { OnChangeFn, PaginationState, RowSelectionState, SortingState } from '@tanstack/react-table';
|
|
10
10
|
|
|
11
11
|
declare const Accordion: React$1.ForwardRefExoticComponent<(Accordion$1.AccordionSingleProps | Accordion$1.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -168,8 +168,9 @@ interface DataSectionProps {
|
|
|
168
168
|
left?: React$1.ReactNode;
|
|
169
169
|
right?: React$1.ReactNode;
|
|
170
170
|
className?: string;
|
|
171
|
+
childrenClassName?: string;
|
|
171
172
|
}
|
|
172
|
-
declare function DataSection({ title, left, right, className, children, }: DataSectionProps): react_jsx_runtime.JSX.Element;
|
|
173
|
+
declare function DataSection({ title, left, right, className, childrenClassName, children, }: DataSectionProps): react_jsx_runtime.JSX.Element;
|
|
173
174
|
|
|
174
175
|
interface DrawerProps {
|
|
175
176
|
open: boolean;
|
|
@@ -453,8 +454,9 @@ interface KbCardProps {
|
|
|
453
454
|
/** 카드 클릭 핸들러. selectable(편집 모드)일 때는 동작하지 않음. */
|
|
454
455
|
onClick?: () => void;
|
|
455
456
|
className?: string;
|
|
457
|
+
variant?: 'grid' | 'list';
|
|
456
458
|
}
|
|
457
|
-
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
459
|
+
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, variant, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
458
460
|
|
|
459
461
|
declare function MarkdownMessage({ content, isStreaming, footerMeta, className, }: {
|
|
460
462
|
content: string;
|
|
@@ -642,6 +644,7 @@ type SidebarSubMenuItem = {
|
|
|
642
644
|
isActive?: boolean;
|
|
643
645
|
titleBadge?: string | number;
|
|
644
646
|
onClick?: () => void;
|
|
647
|
+
isExternal?: boolean;
|
|
645
648
|
};
|
|
646
649
|
type SidebarMainMenuItem = {
|
|
647
650
|
id: string;
|
|
@@ -686,22 +689,27 @@ declare function Sidebar({ logo, menus, avatar, utilities, panelTopContent, pane
|
|
|
686
689
|
LinkComponent: SidebarLinkComponent;
|
|
687
690
|
}): react_jsx_runtime.JSX.Element;
|
|
688
691
|
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
692
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
693
|
+
/**
|
|
694
|
+
* bar — 가로 막대, width=100%, 양쪽 rounded-full (default)
|
|
695
|
+
* circle — 원형, size prop으로 지름 조절
|
|
696
|
+
* card — 대형 사각형 블록, rounded-xl
|
|
697
|
+
*/
|
|
698
|
+
shape?: 'bar' | 'circle' | 'card';
|
|
699
|
+
/**
|
|
700
|
+
* lg — bar: 24px / circle: 40px / card: 128px
|
|
701
|
+
* md — bar: 12px / circle: 32px / card: 96px
|
|
702
|
+
* sm — bar: 6px / circle: 24px / card: 64px
|
|
703
|
+
*/
|
|
704
|
+
size?: 'lg' | 'md' | 'sm';
|
|
693
705
|
}
|
|
694
|
-
declare function Skeleton({ className,
|
|
706
|
+
declare function Skeleton({ className, shape, size, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
695
707
|
|
|
696
708
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
697
709
|
|
|
698
|
-
interface StepperStep {
|
|
699
|
-
/** key prop으로 사용되는 고유 식별자 */
|
|
700
|
-
id: string;
|
|
701
|
-
label: string;
|
|
702
|
-
}
|
|
703
710
|
interface StepperProps {
|
|
704
|
-
|
|
711
|
+
/** Step 라벨 문자열 배열 */
|
|
712
|
+
steps: string[];
|
|
705
713
|
/**
|
|
706
714
|
* 현재 진행 중인 step의 0-based 인덱스.
|
|
707
715
|
* 이 인덱스 이전 step은 complete, 이 인덱스는 current, 이후는 next.
|
|
@@ -711,6 +719,65 @@ interface StepperProps {
|
|
|
711
719
|
}
|
|
712
720
|
declare function Stepper({ steps, currentStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
713
721
|
|
|
722
|
+
interface TabItem<T extends string = string> {
|
|
723
|
+
value: T;
|
|
724
|
+
label: string;
|
|
725
|
+
}
|
|
726
|
+
interface TabsProps<T extends string = string> {
|
|
727
|
+
allTabs: TabItem<T>[];
|
|
728
|
+
current: T;
|
|
729
|
+
onTabChange: (value: T) => void;
|
|
730
|
+
/**
|
|
731
|
+
* "pill" — 회색 배경 컨테이너 + 흰 배경 active (segment control 스타일)
|
|
732
|
+
* "underline" — 하단 밑줄 active (default)
|
|
733
|
+
*/
|
|
734
|
+
variant?: 'pill' | 'underline';
|
|
735
|
+
className?: string;
|
|
736
|
+
}
|
|
737
|
+
declare function Tabs<T extends string = string>({ allTabs, current, onTabChange, variant, className, }: TabsProps<T>): react_jsx_runtime.JSX.Element;
|
|
738
|
+
|
|
739
|
+
interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
740
|
+
pressed?: boolean;
|
|
741
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
742
|
+
size?: 'sm' | 'md' | 'lg';
|
|
743
|
+
}
|
|
744
|
+
declare const toggleSizeClasses: {
|
|
745
|
+
readonly sm: "h-7 min-w-7 px-1.5 text-sm";
|
|
746
|
+
readonly md: "h-9 min-w-9 px-2 text-sm";
|
|
747
|
+
readonly lg: "h-10 min-w-10 px-2.5 text-base";
|
|
748
|
+
};
|
|
749
|
+
declare const toggleBaseClasses = "inline-flex items-center justify-center gap-1.5 font-medium tracking-tight transition-colors select-none";
|
|
750
|
+
declare function Toggle({ pressed, onPressedChange, size, disabled, className, children, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
752
|
+
interface ToggleGroupItemData<T extends string = string> {
|
|
753
|
+
value: T;
|
|
754
|
+
children: React.ReactNode;
|
|
755
|
+
disabled?: boolean;
|
|
756
|
+
}
|
|
757
|
+
interface ToggleGroupBaseProps<T extends string = string> {
|
|
758
|
+
items: ToggleGroupItemData<T>[];
|
|
759
|
+
/**
|
|
760
|
+
* outlined — 컨테이너 border + 아이템 사이 divider (default)
|
|
761
|
+
* noBorder — border 없음, 아이템마다 rounded-md 독립 적용
|
|
762
|
+
*/
|
|
763
|
+
variant?: 'bordered' | 'noBorder';
|
|
764
|
+
disabled?: boolean;
|
|
765
|
+
size?: 'sm' | 'md' | 'lg';
|
|
766
|
+
className?: string;
|
|
767
|
+
}
|
|
768
|
+
interface ToggleGroupSingleProps<T extends string = string> extends ToggleGroupBaseProps<T> {
|
|
769
|
+
type?: 'single';
|
|
770
|
+
value?: T;
|
|
771
|
+
onValueChange?: (value: T) => void;
|
|
772
|
+
}
|
|
773
|
+
interface ToggleGroupMultipleProps<T extends string = string> extends ToggleGroupBaseProps<T> {
|
|
774
|
+
type: 'multiple';
|
|
775
|
+
value?: T[];
|
|
776
|
+
onValueChange?: (value: T[]) => void;
|
|
777
|
+
}
|
|
778
|
+
type ToggleGroupProps<T extends string = string> = ToggleGroupSingleProps<T> | ToggleGroupMultipleProps<T>;
|
|
779
|
+
declare function ToggleGroup<T extends string = string>({ items, variant, disabled, size, className, ...rest }: ToggleGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
780
|
+
|
|
714
781
|
interface CircleIndicatorProps {
|
|
715
782
|
/** 사용량 (바이트 또는 임의 단위) */
|
|
716
783
|
used: number;
|
|
@@ -762,13 +829,12 @@ interface TableColumn<T> {
|
|
|
762
829
|
ellipsisTooltip?: (row: T) => React$1.ReactNode;
|
|
763
830
|
cell: (row: T) => React$1.ReactNode;
|
|
764
831
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
*/
|
|
770
|
-
|
|
771
|
-
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
832
|
+
interface TablePaginationConfig {
|
|
833
|
+
pageSize?: number;
|
|
834
|
+
/** 현재 페이지 번호 (1-based). 외부에서 제어할 때 전달. */
|
|
835
|
+
currentPage?: number;
|
|
836
|
+
/** 페이지 변경 콜백 (1-based page). */
|
|
837
|
+
onPageChange?: (page: number) => void;
|
|
772
838
|
/** 서버사이드 페이지네이션 시 true로 설정 */
|
|
773
839
|
manualPagination?: boolean;
|
|
774
840
|
/** manualPagination=true 일 때 전체 페이지 수 */
|
|
@@ -792,7 +858,7 @@ interface TableProps<T> {
|
|
|
792
858
|
rowKey: keyof T | ((row: T) => string);
|
|
793
859
|
/**
|
|
794
860
|
* 페이지네이션 설정. 미전달 시 페이지네이션 비활성화.
|
|
795
|
-
* TanStack
|
|
861
|
+
* 외부 API는 1-based page를 사용하고, TanStack의 0-based pageIndex는 내부에서 변환한다.
|
|
796
862
|
*/
|
|
797
863
|
pagination?: TablePaginationConfig;
|
|
798
864
|
/**
|
|
@@ -816,6 +882,11 @@ interface TableProps<T> {
|
|
|
816
882
|
rowActions?: (row: T) => React$1.ReactNode;
|
|
817
883
|
/** 행 클릭 핸들러. enableRowSelection=true(편집 모드)일 때는 동작하지 않음. */
|
|
818
884
|
onRowClick?: (row: T) => void;
|
|
885
|
+
/**
|
|
886
|
+
* 정렬 상태 변경 콜백. 서버사이드 정렬 연동에 사용.
|
|
887
|
+
* 빈 배열(정렬 해제)은 전달되지 않으므로 항상 최소 1개 항목 보장.
|
|
888
|
+
*/
|
|
889
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
819
890
|
className?: string;
|
|
820
891
|
}
|
|
821
892
|
declare function SortIcon({ direction }: {
|
|
@@ -828,7 +899,7 @@ interface PaginationProps {
|
|
|
828
899
|
className?: string;
|
|
829
900
|
}
|
|
830
901
|
declare function Pagination({ currentPage, totalPages, onPageChange, className, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
831
|
-
declare function Table<T>({ columns, data, rowKey, pagination, defaultSorting, loading, enableRowSelection, rowSelection: rowSelectionProp, onRowSelectionChange, rowActions, onRowClick, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
902
|
+
declare function Table<T>({ columns, data, rowKey, pagination, defaultSorting, loading, enableRowSelection, rowSelection: rowSelectionProp, onRowSelectionChange, rowActions, onRowClick, onSortingChange, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
832
903
|
|
|
833
904
|
declare const TooltipProvider: React$1.FC<Tooltip$1.TooltipProviderProps>;
|
|
834
905
|
interface TooltipProps extends Pick<React$1.ComponentPropsWithoutRef<typeof Tooltip$1.Root>, 'open' | 'defaultOpen' | 'onOpenChange' | 'delayDuration'>, Omit<React$1.ComponentPropsWithoutRef<typeof Tooltip$1.Content>, 'children' | 'content'> {
|
|
@@ -1357,9 +1428,9 @@ interface TrashIconProps {
|
|
|
1357
1428
|
className?: string;
|
|
1358
1429
|
}
|
|
1359
1430
|
/**
|
|
1360
|
-
* Trash icon — SVG downloaded directly from Figma design system.
|
|
1431
|
+
* Trash-2 icon — SVG downloaded directly from Figma design system.
|
|
1361
1432
|
* Uses stroke="currentColor" for CSS color control.
|
|
1362
|
-
* Source: figma.com/design/bNKDIZZAm8ByouCPBnlEye node 128:
|
|
1433
|
+
* Source: figma.com/design/bNKDIZZAm8ByouCPBnlEye node 128:2738 (lucide/trash-2)
|
|
1363
1434
|
*/
|
|
1364
1435
|
declare function TrashIcon({ className }: TrashIconProps): react_jsx_runtime.JSX.Element;
|
|
1365
1436
|
|
|
@@ -1375,4 +1446,4 @@ declare function WordFileIcon({ className }: {
|
|
|
1375
1446
|
className?: string;
|
|
1376
1447
|
}): react_jsx_runtime.JSX.Element;
|
|
1377
1448
|
|
|
1378
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentBlogIcon, AgentCsIcon, AgentDataIcon, AgentHrIcon, AgentMailIcon, AgentTrendIcon, AiAgentIcon, AiBuilderIcon, AiCloudIcon, AiDatacenterIcon, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlignJustifyIcon, AlignLeftIcon, ArrowDownIcon, type AvailabilityStatus, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarSize, BADGE_VARIANT_STYLES, Badge, type BadgeProps, type BadgeVariant, BlockquoteIcon, BoldIcon, BookOpenIcon, BookUpIcon, Breadcrumb, Button, type ButtonProps, Card, type CardProps, type CardSpec, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxProps, ChevronsUpDownIcon, ChoiceCardGroup, type ChoiceCardGroupProps, ChoiceCardItem, type ChoiceCardItemProps, CircleCheckFillIcon, CircleHelpIcon, CircleIndicator, type CircleIndicatorProps, CircleOutlineIcon, ClaudeIcon, CodeIcon, CodeSquareIcon, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleRoot, CollapsibleTrigger, type CollapsibleWorkspace, Combobox, type ComboboxOption, type ComboboxProps, CreditIcon, DataSection, type DataSectionProps, DeepSeekIcon, DownloadIcon, Drawer, type DrawerProps, DriveIcon, Empty, EmptyTrayIcon, Field, FieldDivider, type FieldProps, FieldRow, type FieldRowProps, FieldSection, type FieldSectionProps, FileCodeIcon, FileSearchIcon, FileTypeCornerIcon, FolderAmberIcon, FolderBlueIcon, FolderClosedIcon, FolderGreenIcon, FolderVioletIcon, GeminiIcon, GoogleIcon, GroupedSelect, HangulFileIcon, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, HtmlFileIcon, ICON_NODES, Icon, type IconProps, ImageIcon, ImportIcon, IndentIcon, ItalicIcon, KbCard, type KbCardMetadataItem, type KbCardProps, KeyRoundIcon, type LanguageItem, LayersIcon, LayoutGridIcon, LineChartIcon, LinkIcon, ListIcon, ListOrderedIcon, type MachineType, MarkdownFileIcon, MarkdownMessage, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageCircleIcon, MessageFooter, type MessageFooterProps, MessagesSquareIcon, Modal, type ModalProps, type ModelGroup, type ModelItem, MyPageIcon, type NavDropdownItem, type NotificationItem, NumberBadge, type NumberBadgeProps, OpenAiIcon, OutdentIcon, Pagination, PanelLeftIcon, PdfFileIcon, PenLineIcon, PencilLineIcon, PresentationIcon, Providers, RefreshCwIcon, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, Skeleton, type SkeletonProps, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps,
|
|
1449
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentBlogIcon, AgentCsIcon, AgentDataIcon, AgentHrIcon, AgentMailIcon, AgentTrendIcon, AiAgentIcon, AiBuilderIcon, AiCloudIcon, AiDatacenterIcon, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlignJustifyIcon, AlignLeftIcon, ArrowDownIcon, type AvailabilityStatus, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarProps, type AvatarSize, BADGE_VARIANT_STYLES, Badge, type BadgeProps, type BadgeVariant, BlockquoteIcon, BoldIcon, BookOpenIcon, BookUpIcon, Breadcrumb, Button, type ButtonProps, Card, type CardProps, type CardSpec, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxProps, ChevronsUpDownIcon, ChoiceCardGroup, type ChoiceCardGroupProps, ChoiceCardItem, type ChoiceCardItemProps, CircleCheckFillIcon, CircleHelpIcon, CircleIndicator, type CircleIndicatorProps, CircleOutlineIcon, ClaudeIcon, CodeIcon, CodeSquareIcon, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleRoot, CollapsibleTrigger, type CollapsibleWorkspace, Combobox, type ComboboxOption, type ComboboxProps, CreditIcon, DataSection, type DataSectionProps, DeepSeekIcon, DownloadIcon, Drawer, type DrawerProps, DriveIcon, Empty, EmptyTrayIcon, Field, FieldDivider, type FieldProps, FieldRow, type FieldRowProps, FieldSection, type FieldSectionProps, FileCodeIcon, FileSearchIcon, FileTypeCornerIcon, FolderAmberIcon, FolderBlueIcon, FolderClosedIcon, FolderGreenIcon, FolderVioletIcon, GeminiIcon, GoogleIcon, GroupedSelect, HangulFileIcon, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, HtmlFileIcon, ICON_NODES, Icon, type IconProps, ImageIcon, ImportIcon, IndentIcon, ItalicIcon, KbCard, type KbCardMetadataItem, type KbCardProps, KeyRoundIcon, type LanguageItem, LayersIcon, LayoutGridIcon, LineChartIcon, LinkIcon, ListIcon, ListOrderedIcon, type MachineType, MarkdownFileIcon, MarkdownMessage, Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageCircleIcon, MessageFooter, type MessageFooterProps, MessagesSquareIcon, Modal, type ModalProps, type ModelGroup, type ModelItem, MyPageIcon, type NavDropdownItem, type NotificationItem, NumberBadge, type NumberBadgeProps, OpenAiIcon, OutdentIcon, Pagination, PanelLeftIcon, PdfFileIcon, PenLineIcon, PencilLineIcon, PresentationIcon, Providers, RefreshCwIcon, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, Skeleton, type SkeletonProps, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, type TabItem, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tabs, type TabsProps, Toggle, ToggleGroup, type ToggleGroupItemData, type ToggleGroupProps, type ToggleProps, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants, toggleBaseClasses, toggleSizeClasses };
|