@mondrianai/runyourai-design-system 0.0.4 → 0.0.6
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/README.md +38 -0
- package/dist/index.d.mts +58 -10
- package/dist/index.d.ts +58 -10
- package/dist/index.js +1638 -316
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1683 -367
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +55 -27
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,26 @@ npm install @mondrianai/runyourai-design-system
|
|
|
16
16
|
yarn add @mondrianai/runyourai-design-system
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
## Local Development (yalc)
|
|
20
|
+
|
|
21
|
+
소비 앱에서 로컬 빌드를 테스트할 때는 [yalc](https://github.com/wclr/yalc)를 사용합니다.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 최초 1회: 소비 앱에 yalc 연결
|
|
25
|
+
# (design system 레포에서)
|
|
26
|
+
yalc publish
|
|
27
|
+
# (소비 앱 레포에서)
|
|
28
|
+
yalc add @mondrianai/runyourai-design-system
|
|
29
|
+
|
|
30
|
+
# 이후 변경사항 반영 시 (design system 레포에서)
|
|
31
|
+
npm run build && yalc push
|
|
32
|
+
# 소비 앱 dev 서버 재시작 필요
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> **주의**: `sidebar.tsx`, `button.tsx` 등 컴포넌트 소스를 수정한 경우, 반드시 `npm run build && yalc push` 를 실행해야 소비 앱에 변경사항이 반영됩니다. 소스 파일을 수정해도 소비 앱의 dev server hot-reload만으로는 dist가 갱신되지 않습니다.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
19
39
|
## Setup
|
|
20
40
|
|
|
21
41
|
### 1. 패키지 설치
|
|
@@ -89,6 +109,24 @@ export default nextConfig;
|
|
|
89
109
|
> - `url(...)` 형태의 외부 폰트 import가 있다면 `@import 'tailwindcss'` **앞에** 위치시킵니다.
|
|
90
110
|
> - `@mondrianai/runyourai-design-system/styles`, `@mondrianai/runyourai-design-system/tailwind-theme`는 `@import 'tailwindcss'` **뒤에** 위치시킵니다.
|
|
91
111
|
|
|
112
|
+
> **디자인 토큰 오버라이드 주의**
|
|
113
|
+
>
|
|
114
|
+
> `:root`에서 디자인 시스템 CSS 변수를 오버라이드할 때, **컴포넌트 표면색 토큰**(`--background`, `--card`, `--popover` 등)을 페이지 배경색 설정 목적으로 변경하면 안 됩니다. 이 변수들은 `Button` outline, `Card`, `Popover` 등 컴포넌트의 배경색에 직접 사용됩니다.
|
|
115
|
+
>
|
|
116
|
+
> **페이지 배경색**은 CSS 토큰 오버라이드 대신 `html`/`body`에 직접 지정하세요.
|
|
117
|
+
>
|
|
118
|
+
> ```css
|
|
119
|
+
> /* ❌ 잘못된 예 — Button outline 등 컴포넌트 배경색까지 바뀜 */
|
|
120
|
+
> :root {
|
|
121
|
+
> --background: #fdfdfd;
|
|
122
|
+
> }
|
|
123
|
+
>
|
|
124
|
+
> /* ✅ 올바른 예 — 페이지 배경만 변경, 컴포넌트 토큰 무영향 */
|
|
125
|
+
> html, body {
|
|
126
|
+
> background-color: #fdfdfd;
|
|
127
|
+
> }
|
|
128
|
+
> ```
|
|
129
|
+
|
|
92
130
|
> **기존 CSS 리셋 주의 (Tailwind v4)**
|
|
93
131
|
> 프로젝트에 `* { margin: 0; padding: 0; }` 같은 전역 리셋이 있다면 반드시 `@layer base`로 감싸야 합니다. Tailwind v4에서 레이어 밖의 스타일은 `@layer utilities`보다 우선순위가 높아 `px-*`, `py-*` 등의 유틸리티 클래스가 무효화됩니다.
|
|
94
132
|
>
|
package/dist/index.d.mts
CHANGED
|
@@ -179,7 +179,7 @@ interface DrawerProps {
|
|
|
179
179
|
metadata?: React$1.ReactNode;
|
|
180
180
|
className?: string;
|
|
181
181
|
}
|
|
182
|
-
declare function Drawer({ open, onClose, title, children, metadata, className, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function Drawer({ open, onClose, title, children, metadata, className, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
183
183
|
|
|
184
184
|
interface EmptyProps {
|
|
185
185
|
image?: React$1.ReactNode;
|
|
@@ -445,6 +445,8 @@ interface KbCardProps {
|
|
|
445
445
|
name: string;
|
|
446
446
|
metadata?: KbCardMetadataItem[];
|
|
447
447
|
icon?: React$1.ReactNode;
|
|
448
|
+
/** 아이콘 우측 상단에 노출할 콘텐츠 (e.g. 스크랩 날짜). selectable 모드에서는 무시됨. */
|
|
449
|
+
topRight?: React$1.ReactNode;
|
|
448
450
|
selectable?: boolean;
|
|
449
451
|
checked?: boolean;
|
|
450
452
|
onCheckedChange?: (checked: boolean) => void;
|
|
@@ -452,7 +454,7 @@ interface KbCardProps {
|
|
|
452
454
|
onClick?: () => void;
|
|
453
455
|
className?: string;
|
|
454
456
|
}
|
|
455
|
-
declare function KbCard({ name, metadata, icon, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
457
|
+
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
456
458
|
|
|
457
459
|
declare function MarkdownMessage({ content, isStreaming, footerMeta, className, }: {
|
|
458
460
|
content: string;
|
|
@@ -473,6 +475,13 @@ interface ModalProps {
|
|
|
473
475
|
* ex) trigger={(open) => <Button onClick={open}>열기</Button>}
|
|
474
476
|
*/
|
|
475
477
|
trigger?: (open: () => void) => React$1.ReactNode;
|
|
478
|
+
/**
|
|
479
|
+
* controlled 모드: 외부에서 열림 상태를 직접 제어.
|
|
480
|
+
* onOpenChange와 함께 사용.
|
|
481
|
+
*/
|
|
482
|
+
open?: boolean;
|
|
483
|
+
/** controlled 모드에서 열림 상태 변경 콜백 */
|
|
484
|
+
onOpenChange?: (open: boolean) => void;
|
|
476
485
|
/**
|
|
477
486
|
* footer 버튼 렌더 방식
|
|
478
487
|
* confirm — 취소 + default(검정) 확인 버튼
|
|
@@ -508,7 +517,7 @@ interface ModalProps {
|
|
|
508
517
|
/** 모달 패널에 추가할 className */
|
|
509
518
|
className?: string;
|
|
510
519
|
}
|
|
511
|
-
declare function Modal({ id, trigger, variant, title, description, showCloseButton, children, cancelLabel, confirmLabel, onConfirm, onCancel, confirmDisabled, closeOnOverlayClick, className, isLoading, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
520
|
+
declare function Modal({ id, trigger, open: openProp, onOpenChange, variant, title, description, showCloseButton, children, cancelLabel, confirmLabel, onConfirm, onCancel, confirmDisabled, closeOnOverlayClick, className, isLoading, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
512
521
|
|
|
513
522
|
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<Menubar$1.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
514
523
|
declare const MenubarMenu: {
|
|
@@ -677,6 +686,13 @@ declare function Sidebar({ logo, menus, avatar, utilities, panelTopContent, pane
|
|
|
677
686
|
LinkComponent: SidebarLinkComponent;
|
|
678
687
|
}): react_jsx_runtime.JSX.Element;
|
|
679
688
|
|
|
689
|
+
declare const skeletonVariants: (props?: ({
|
|
690
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
691
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
692
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
693
|
+
}
|
|
694
|
+
declare function Skeleton({ className, size, style, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
695
|
+
|
|
680
696
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
681
697
|
|
|
682
698
|
interface StepperStep {
|
|
@@ -695,6 +711,27 @@ interface StepperProps {
|
|
|
695
711
|
}
|
|
696
712
|
declare function Stepper({ steps, currentStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
697
713
|
|
|
714
|
+
interface CircleIndicatorProps {
|
|
715
|
+
/** 사용량 (바이트 또는 임의 단위) */
|
|
716
|
+
used: number;
|
|
717
|
+
/** 전체 용량 */
|
|
718
|
+
total: number;
|
|
719
|
+
/** 중앙에 표시할 아이콘 */
|
|
720
|
+
icon?: React$1.ReactNode;
|
|
721
|
+
/** hover 시 표시할 툴팁 텍스트 */
|
|
722
|
+
tooltip?: string;
|
|
723
|
+
/**
|
|
724
|
+
* progress arc 색상. CSS color 값 또는 디자인 시스템 토큰을 받습니다.
|
|
725
|
+
* 예) "#3b82f6" | "var(--color-primary)" | "var(--color-blue-500)"
|
|
726
|
+
* 미지정 시 primary 색상이 적용됩니다.
|
|
727
|
+
*/
|
|
728
|
+
color?: string;
|
|
729
|
+
/** 컴포넌트 크기 (px, 기본값 44) */
|
|
730
|
+
size?: number;
|
|
731
|
+
className?: string;
|
|
732
|
+
}
|
|
733
|
+
declare function CircleIndicator({ used, total, icon, tooltip, color, size, className, }: CircleIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
734
|
+
|
|
698
735
|
declare const Switch: React__default.ForwardRefExoticComponent<Omit<Switch$1.SwitchProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
699
736
|
interface SwitchFieldProps extends React__default.ComponentPropsWithoutRef<typeof Switch$1.Root> {
|
|
700
737
|
/** 레이블 텍스트 */
|
|
@@ -705,7 +742,7 @@ interface SwitchFieldProps extends React__default.ComponentPropsWithoutRef<typeo
|
|
|
705
742
|
}
|
|
706
743
|
declare function SwitchField({ label, description, className, id, ...props }: SwitchFieldProps): react_jsx_runtime.JSX.Element;
|
|
707
744
|
|
|
708
|
-
type SortDirection = '
|
|
745
|
+
type SortDirection = 'ASC' | 'DESC' | null;
|
|
709
746
|
interface TableColumn<T> {
|
|
710
747
|
key: string;
|
|
711
748
|
header: string;
|
|
@@ -1049,11 +1086,6 @@ declare function FileTypeCornerIcon({ className }: {
|
|
|
1049
1086
|
className?: string;
|
|
1050
1087
|
}): react_jsx_runtime.JSX.Element;
|
|
1051
1088
|
|
|
1052
|
-
/**
|
|
1053
|
-
* Folder-amber icon — amber-colored folder from Figma design system.
|
|
1054
|
-
* Uses <img> to preserve complex gradient fills and filters.
|
|
1055
|
-
* Source: public/icons/folder-amber.svg
|
|
1056
|
-
*/
|
|
1057
1089
|
declare function FolderAmberIcon({ className }: {
|
|
1058
1090
|
className?: string;
|
|
1059
1091
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1079,6 +1111,10 @@ declare function FolderVioletIcon({ className }: {
|
|
|
1079
1111
|
className?: string;
|
|
1080
1112
|
}): react_jsx_runtime.JSX.Element;
|
|
1081
1113
|
|
|
1114
|
+
declare function HangulFileIcon({ className }: {
|
|
1115
|
+
className?: string;
|
|
1116
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1117
|
+
|
|
1082
1118
|
/**
|
|
1083
1119
|
* Heading icon — SVG downloaded from Figma design system.
|
|
1084
1120
|
* Source: Figma node (lucide/heading)
|
|
@@ -1087,6 +1123,10 @@ declare function HeadingIcon({ className }: {
|
|
|
1087
1123
|
className?: string;
|
|
1088
1124
|
}): react_jsx_runtime.JSX.Element;
|
|
1089
1125
|
|
|
1126
|
+
declare function HtmlFileIcon({ className }: {
|
|
1127
|
+
className?: string;
|
|
1128
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1129
|
+
|
|
1090
1130
|
/**
|
|
1091
1131
|
* Image icon — SVG downloaded from Figma design system.
|
|
1092
1132
|
* Source: Figma node (lucide/image)
|
|
@@ -1178,6 +1218,10 @@ declare function MessageCircleIcon({ className }: {
|
|
|
1178
1218
|
className?: string;
|
|
1179
1219
|
}): react_jsx_runtime.JSX.Element;
|
|
1180
1220
|
|
|
1221
|
+
declare function MarkdownFileIcon({ className }: {
|
|
1222
|
+
className?: string;
|
|
1223
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1224
|
+
|
|
1181
1225
|
/**
|
|
1182
1226
|
* Messages-square icon — SVG downloaded directly from Figma design system.
|
|
1183
1227
|
* Uses stroke="currentColor" for CSS color control.
|
|
@@ -1212,6 +1256,10 @@ declare function PdfFileIcon({ className }: {
|
|
|
1212
1256
|
className?: string;
|
|
1213
1257
|
}): react_jsx_runtime.JSX.Element;
|
|
1214
1258
|
|
|
1259
|
+
declare function RefreshCwIcon({ className }: {
|
|
1260
|
+
className?: string;
|
|
1261
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1262
|
+
|
|
1215
1263
|
interface PenLineIconProps {
|
|
1216
1264
|
className?: string;
|
|
1217
1265
|
}
|
|
@@ -1327,4 +1375,4 @@ declare function WordFileIcon({ className }: {
|
|
|
1327
1375
|
className?: string;
|
|
1328
1376
|
}): react_jsx_runtime.JSX.Element;
|
|
1329
1377
|
|
|
1330
|
-
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, 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, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, 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, 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, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps, type StepperStep, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants };
|
|
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, type StepperStep, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ interface DrawerProps {
|
|
|
179
179
|
metadata?: React$1.ReactNode;
|
|
180
180
|
className?: string;
|
|
181
181
|
}
|
|
182
|
-
declare function Drawer({ open, onClose, title, children, metadata, className, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare function Drawer({ open, onClose, title, children, metadata, className, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
183
183
|
|
|
184
184
|
interface EmptyProps {
|
|
185
185
|
image?: React$1.ReactNode;
|
|
@@ -445,6 +445,8 @@ interface KbCardProps {
|
|
|
445
445
|
name: string;
|
|
446
446
|
metadata?: KbCardMetadataItem[];
|
|
447
447
|
icon?: React$1.ReactNode;
|
|
448
|
+
/** 아이콘 우측 상단에 노출할 콘텐츠 (e.g. 스크랩 날짜). selectable 모드에서는 무시됨. */
|
|
449
|
+
topRight?: React$1.ReactNode;
|
|
448
450
|
selectable?: boolean;
|
|
449
451
|
checked?: boolean;
|
|
450
452
|
onCheckedChange?: (checked: boolean) => void;
|
|
@@ -452,7 +454,7 @@ interface KbCardProps {
|
|
|
452
454
|
onClick?: () => void;
|
|
453
455
|
className?: string;
|
|
454
456
|
}
|
|
455
|
-
declare function KbCard({ name, metadata, icon, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
457
|
+
declare function KbCard({ name, metadata, icon, topRight, selectable, checked, onCheckedChange, onClick, className, }: KbCardProps): react_jsx_runtime.JSX.Element;
|
|
456
458
|
|
|
457
459
|
declare function MarkdownMessage({ content, isStreaming, footerMeta, className, }: {
|
|
458
460
|
content: string;
|
|
@@ -473,6 +475,13 @@ interface ModalProps {
|
|
|
473
475
|
* ex) trigger={(open) => <Button onClick={open}>열기</Button>}
|
|
474
476
|
*/
|
|
475
477
|
trigger?: (open: () => void) => React$1.ReactNode;
|
|
478
|
+
/**
|
|
479
|
+
* controlled 모드: 외부에서 열림 상태를 직접 제어.
|
|
480
|
+
* onOpenChange와 함께 사용.
|
|
481
|
+
*/
|
|
482
|
+
open?: boolean;
|
|
483
|
+
/** controlled 모드에서 열림 상태 변경 콜백 */
|
|
484
|
+
onOpenChange?: (open: boolean) => void;
|
|
476
485
|
/**
|
|
477
486
|
* footer 버튼 렌더 방식
|
|
478
487
|
* confirm — 취소 + default(검정) 확인 버튼
|
|
@@ -508,7 +517,7 @@ interface ModalProps {
|
|
|
508
517
|
/** 모달 패널에 추가할 className */
|
|
509
518
|
className?: string;
|
|
510
519
|
}
|
|
511
|
-
declare function Modal({ id, trigger, variant, title, description, showCloseButton, children, cancelLabel, confirmLabel, onConfirm, onCancel, confirmDisabled, closeOnOverlayClick, className, isLoading, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
520
|
+
declare function Modal({ id, trigger, open: openProp, onOpenChange, variant, title, description, showCloseButton, children, cancelLabel, confirmLabel, onConfirm, onCancel, confirmDisabled, closeOnOverlayClick, className, isLoading, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
512
521
|
|
|
513
522
|
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<Menubar$1.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
514
523
|
declare const MenubarMenu: {
|
|
@@ -677,6 +686,13 @@ declare function Sidebar({ logo, menus, avatar, utilities, panelTopContent, pane
|
|
|
677
686
|
LinkComponent: SidebarLinkComponent;
|
|
678
687
|
}): react_jsx_runtime.JSX.Element;
|
|
679
688
|
|
|
689
|
+
declare const skeletonVariants: (props?: ({
|
|
690
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
691
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
692
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
693
|
+
}
|
|
694
|
+
declare function Skeleton({ className, size, style, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
695
|
+
|
|
680
696
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
681
697
|
|
|
682
698
|
interface StepperStep {
|
|
@@ -695,6 +711,27 @@ interface StepperProps {
|
|
|
695
711
|
}
|
|
696
712
|
declare function Stepper({ steps, currentStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
697
713
|
|
|
714
|
+
interface CircleIndicatorProps {
|
|
715
|
+
/** 사용량 (바이트 또는 임의 단위) */
|
|
716
|
+
used: number;
|
|
717
|
+
/** 전체 용량 */
|
|
718
|
+
total: number;
|
|
719
|
+
/** 중앙에 표시할 아이콘 */
|
|
720
|
+
icon?: React$1.ReactNode;
|
|
721
|
+
/** hover 시 표시할 툴팁 텍스트 */
|
|
722
|
+
tooltip?: string;
|
|
723
|
+
/**
|
|
724
|
+
* progress arc 색상. CSS color 값 또는 디자인 시스템 토큰을 받습니다.
|
|
725
|
+
* 예) "#3b82f6" | "var(--color-primary)" | "var(--color-blue-500)"
|
|
726
|
+
* 미지정 시 primary 색상이 적용됩니다.
|
|
727
|
+
*/
|
|
728
|
+
color?: string;
|
|
729
|
+
/** 컴포넌트 크기 (px, 기본값 44) */
|
|
730
|
+
size?: number;
|
|
731
|
+
className?: string;
|
|
732
|
+
}
|
|
733
|
+
declare function CircleIndicator({ used, total, icon, tooltip, color, size, className, }: CircleIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
734
|
+
|
|
698
735
|
declare const Switch: React__default.ForwardRefExoticComponent<Omit<Switch$1.SwitchProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
699
736
|
interface SwitchFieldProps extends React__default.ComponentPropsWithoutRef<typeof Switch$1.Root> {
|
|
700
737
|
/** 레이블 텍스트 */
|
|
@@ -705,7 +742,7 @@ interface SwitchFieldProps extends React__default.ComponentPropsWithoutRef<typeo
|
|
|
705
742
|
}
|
|
706
743
|
declare function SwitchField({ label, description, className, id, ...props }: SwitchFieldProps): react_jsx_runtime.JSX.Element;
|
|
707
744
|
|
|
708
|
-
type SortDirection = '
|
|
745
|
+
type SortDirection = 'ASC' | 'DESC' | null;
|
|
709
746
|
interface TableColumn<T> {
|
|
710
747
|
key: string;
|
|
711
748
|
header: string;
|
|
@@ -1049,11 +1086,6 @@ declare function FileTypeCornerIcon({ className }: {
|
|
|
1049
1086
|
className?: string;
|
|
1050
1087
|
}): react_jsx_runtime.JSX.Element;
|
|
1051
1088
|
|
|
1052
|
-
/**
|
|
1053
|
-
* Folder-amber icon — amber-colored folder from Figma design system.
|
|
1054
|
-
* Uses <img> to preserve complex gradient fills and filters.
|
|
1055
|
-
* Source: public/icons/folder-amber.svg
|
|
1056
|
-
*/
|
|
1057
1089
|
declare function FolderAmberIcon({ className }: {
|
|
1058
1090
|
className?: string;
|
|
1059
1091
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1079,6 +1111,10 @@ declare function FolderVioletIcon({ className }: {
|
|
|
1079
1111
|
className?: string;
|
|
1080
1112
|
}): react_jsx_runtime.JSX.Element;
|
|
1081
1113
|
|
|
1114
|
+
declare function HangulFileIcon({ className }: {
|
|
1115
|
+
className?: string;
|
|
1116
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1117
|
+
|
|
1082
1118
|
/**
|
|
1083
1119
|
* Heading icon — SVG downloaded from Figma design system.
|
|
1084
1120
|
* Source: Figma node (lucide/heading)
|
|
@@ -1087,6 +1123,10 @@ declare function HeadingIcon({ className }: {
|
|
|
1087
1123
|
className?: string;
|
|
1088
1124
|
}): react_jsx_runtime.JSX.Element;
|
|
1089
1125
|
|
|
1126
|
+
declare function HtmlFileIcon({ className }: {
|
|
1127
|
+
className?: string;
|
|
1128
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1129
|
+
|
|
1090
1130
|
/**
|
|
1091
1131
|
* Image icon — SVG downloaded from Figma design system.
|
|
1092
1132
|
* Source: Figma node (lucide/image)
|
|
@@ -1178,6 +1218,10 @@ declare function MessageCircleIcon({ className }: {
|
|
|
1178
1218
|
className?: string;
|
|
1179
1219
|
}): react_jsx_runtime.JSX.Element;
|
|
1180
1220
|
|
|
1221
|
+
declare function MarkdownFileIcon({ className }: {
|
|
1222
|
+
className?: string;
|
|
1223
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1224
|
+
|
|
1181
1225
|
/**
|
|
1182
1226
|
* Messages-square icon — SVG downloaded directly from Figma design system.
|
|
1183
1227
|
* Uses stroke="currentColor" for CSS color control.
|
|
@@ -1212,6 +1256,10 @@ declare function PdfFileIcon({ className }: {
|
|
|
1212
1256
|
className?: string;
|
|
1213
1257
|
}): react_jsx_runtime.JSX.Element;
|
|
1214
1258
|
|
|
1259
|
+
declare function RefreshCwIcon({ className }: {
|
|
1260
|
+
className?: string;
|
|
1261
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1262
|
+
|
|
1215
1263
|
interface PenLineIconProps {
|
|
1216
1264
|
className?: string;
|
|
1217
1265
|
}
|
|
@@ -1327,4 +1375,4 @@ declare function WordFileIcon({ className }: {
|
|
|
1327
1375
|
className?: string;
|
|
1328
1376
|
}): react_jsx_runtime.JSX.Element;
|
|
1329
1377
|
|
|
1330
|
-
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, 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, Header, type HeaderNavItem, type HeaderProps, HeadingIcon, 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, 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, RyaiLogoIcon, SearchInput, type SearchInputProps, SegmentedControl, Select, type SelectGroup, type SelectOption, type SelectProps, Sheet, SheetFileIcon, ShoppingBagIcon, Sidebar, SidebarLink, type SidebarMainMenuItem, type SidebarSubMenuItem, type SidebarUtilityItem, SlideFileIcon, Slider, SmileIcon, type SortDirection, SortIcon, SparklesIcon, SquareCheckIcon, SquareCheckOutlineIcon, StarIcon, Stepper, type StepperProps, type StepperStep, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants };
|
|
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, type StepperStep, StrikethroughIcon, Switch, SwitchField, type SwitchFieldProps, Table, type TableColumn, type TablePaginationConfig, TablePropertiesIcon, type TableProps, type TableSortingItem, Tooltip, type TooltipProps, TooltipProvider, TooltipWithIcon, type TooltipWithIconProps, TrashIcon, UpstageIcon, type UserMenuSection, type UserMenuSectionItem, UserMessageBubble, WandSparklesIcon, WordFileIcon, buttonVariants };
|