@t3q-ui/design-system 1.71.7 → 1.73.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 +22 -0
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/chatComposer.cjs +12 -1
- package/dist/components/chatComposer.cjs.map +1 -1
- package/dist/components/chatComposer.js +12 -1
- package/dist/components/chatComposer.js.map +1 -1
- package/dist/components/chatHistory.cjs +2 -1
- package/dist/components/chatHistory.cjs.map +1 -1
- package/dist/components/chatHistory.js +2 -1
- package/dist/components/chatHistory.js.map +1 -1
- package/dist/components/chatMessage.cjs +6 -5
- package/dist/components/chatMessage.cjs.map +1 -1
- package/dist/components/chatMessage.js +6 -5
- package/dist/components/chatMessage.js.map +1 -1
- package/dist/components/drawer.cjs +2 -2
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/iconButton.cjs +4 -3
- package/dist/components/iconButton.cjs.map +1 -1
- package/dist/components/iconButton.js +4 -3
- package/dist/components/iconButton.js.map +1 -1
- package/dist/components/lucideIcon.cjs.map +1 -1
- package/dist/components/lucideIcon.js.map +1 -1
- package/dist/components/metaItem.cjs +3 -1
- package/dist/components/metaItem.cjs.map +1 -1
- package/dist/components/metaItem.js +3 -1
- package/dist/components/metaItem.js.map +1 -1
- package/dist/components/pageHeaderRefreshButton.cjs +1 -1
- package/dist/components/pageHeaderRefreshButton.cjs.map +1 -1
- package/dist/components/pageHeaderRefreshButton.js +1 -1
- package/dist/components/pageHeaderRefreshButton.js.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.cjs +2 -3
- package/dist/components/parameterTable/ParameterTableRow.cjs.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.js +2 -3
- package/dist/components/parameterTable/ParameterTableRow.js.map +1 -1
- package/dist/components/range/range.cjs +2 -2
- package/dist/components/range/range.cjs.map +1 -1
- package/dist/components/range/range.js +2 -2
- package/dist/components/range/range.js.map +1 -1
- package/dist/components/select/select.cjs.map +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/selectedItemCard.cjs +71 -0
- package/dist/components/selectedItemCard.cjs.map +1 -0
- package/dist/components/selectedItemCard.js +71 -0
- package/dist/components/selectedItemCard.js.map +1 -0
- package/dist/components/sidebar/index.cjs +2 -2
- package/dist/components/sidebar/index.cjs.map +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/index.js.map +1 -1
- package/dist/{index-CSkXld6f.d.cts → index-Dd-O1cSb.d.cts} +1 -1
- package/dist/{index-CSkXld6f.d.ts → index-Dd-O1cSb.d.ts} +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -8
- package/dist/index.d.ts +43 -8
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/markdown/markdown.cjs +2 -1
- package/dist/markdown/markdown.cjs.map +1 -1
- package/dist/markdown/markdown.js +2 -1
- package/dist/markdown/markdown.js.map +1 -1
- package/dist/patterns/chatPage.cjs +9 -1
- package/dist/patterns/chatPage.cjs.map +1 -1
- package/dist/patterns/chatPage.js +9 -1
- package/dist/patterns/chatPage.js.map +1 -1
- package/dist/patterns/chatShell.cjs +2 -2
- package/dist/patterns/chatShell.cjs.map +1 -1
- package/dist/patterns/chatShell.js +2 -2
- package/dist/patterns/chatShell.js.map +1 -1
- package/dist/patterns/detailPage.cjs +1 -1
- package/dist/patterns/detailPage.cjs.map +1 -1
- package/dist/patterns/detailPage.js +1 -1
- package/dist/patterns/detailPage.js.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/sidePanel.cjs +1 -1
- package/dist/patterns/sidePanel.cjs.map +1 -1
- package/dist/patterns/sidePanel.js +1 -1
- package/dist/patterns/sidePanel.js.map +1 -1
- package/mcp/manifests/components.json +211 -13
- package/package.json +1 -1
- package/skills/tds/SKILL.md +2 -1
- package/skills/tds/reference/components.md +38 -7
|
@@ -186,7 +186,7 @@ const SidebarHeader = React.forwardRef(
|
|
|
186
186
|
toggle();
|
|
187
187
|
},
|
|
188
188
|
className: cn(
|
|
189
|
-
"absolute right-[8px] top-1/2 -translate-y-1/2",
|
|
189
|
+
"absolute right-[8px] top-1/2 h-[24px] min-w-[24px] -translate-y-1/2",
|
|
190
190
|
"transition-opacity duration-150",
|
|
191
191
|
isHovered ? "opacity-100" : "opacity-0 focus-visible:opacity-100",
|
|
192
192
|
focusRing
|
|
@@ -225,7 +225,7 @@ const SidebarToggle = React.forwardRef(
|
|
|
225
225
|
shape: "normal",
|
|
226
226
|
spacing: "compact",
|
|
227
227
|
className: cn(
|
|
228
|
-
"opacity-50 hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-150",
|
|
228
|
+
"h-[24px] min-w-[24px] opacity-50 hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-150",
|
|
229
229
|
focusRing
|
|
230
230
|
),
|
|
231
231
|
onClick: toggle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/sidebar/index.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { ChevronDown, PanelLeft } from 'lucide-react'\n\nimport { cn } from '../../utils/cn'\nimport { IconButton } from '../iconButton'\nimport { LucideIcon } from '../lucideIcon'\nimport { Separator } from '../separator'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip'\n\n// 키보드로 왔을 때만 보이는 포커스 링(DS 공통 토큰). 꽉 찬 줄(메뉴 항목·묶음 머리·접힌 머리)은 목록의 overflow-hidden 에 잘리지 않게 안쪽으로 그린다\nconst focusRing = 'focus-visible:outline-[2px] focus-visible:outline-sys-focus-ring-main'\nconst rowFocusRing = `${focusRing} focus-visible:-outline-offset-2`\n\n/* --------------------------------- Context -------------------------------- */\n\ntype SidebarContextType = {\n isOpen: boolean\n toggle: () => void\n}\n\nconst SidebarContext = React.createContext<SidebarContextType | undefined>(undefined)\n\ntype SidebarProviderProps = {\n children: React.ReactNode\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n}\n\nfunction SidebarProvider({\n children,\n defaultOpen = true,\n open: controlledOpen,\n onOpenChange,\n}: SidebarProviderProps) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen)\n\n const isOpen = controlledOpen ?? uncontrolledOpen\n\n const toggle = React.useCallback(() => {\n const newState = !isOpen\n if (onOpenChange) {\n onOpenChange(newState)\n } else {\n setUncontrolledOpen(newState)\n }\n }, [isOpen, onOpenChange])\n\n return <SidebarContext.Provider value={{ isOpen, toggle }}>{children}</SidebarContext.Provider>\n}\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext)\n if (!context) {\n throw new Error('useSidebar must be used within SidebarProvider')\n }\n return context\n}\n\n/* --------------------------------- Sidebar -------------------------------- */\n\ntype SidebarProps = React.HTMLAttributes<HTMLElement> & {\n top?: number\n openWidth?: number\n closedWidth?: number\n}\n\n/**\n * 앱 왼쪽 내비게이션(메뉴 묶음·접기).\n *\n * 언제 쓰나: 소비 앱 레이아웃(앱 셸)에서 화면 사이를 오가는 메뉴.\n * 언제 안 쓰나: 한 화면 안의 보기 전환(→ Tabs), 화면 안의 보조 패널(→ ListPage `detail`·Drawer), 패턴 안쪽 — 패턴은 앱 셸을 그리지 않고 앱 레이아웃의 `<main>` 안에 들어간다.\n * 대신/함께: 접힌 상태에서는 아이콘만 보이므로 아이콘마다 Tooltip 으로 이름을 준다.\n */\nconst Sidebar = React.forwardRef<HTMLElement, SidebarProps>(\n ({ className, top = 0, openWidth = 240, closedWidth = 72, style, children, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n return (\n <aside\n ref={ref}\n className={cn(\n 'fixed left-0 z-[var(--z-index-sidebar)]',\n 'bg-sys-background',\n 'flex flex-col overflow-y-auto',\n 'transition-all duration-200 ease-in-out',\n className,\n )}\n style={{\n top,\n height: `calc(100vh - ${top}px)`,\n width: isOpen ? openWidth : closedWidth,\n boxShadow: '1px 0 0 0 var(--color-sys-divider-subtler)',\n ...style,\n }}\n {...props}\n >\n {children}\n </aside>\n )\n },\n)\nSidebar.displayName = 'Sidebar'\n\n/* ------------------------------ SidebarHeader ----------------------------- */\n\ntype SidebarHeaderProps = React.HTMLAttributes<HTMLDivElement> & {\n avatar?: string\n avatarColor?: string\n title?: string\n description?: string\n openLabel?: string\n closeLabel?: string\n}\n\nconst SidebarHeader = React.forwardRef<HTMLDivElement, SidebarHeaderProps>(\n (\n {\n className,\n avatar,\n avatarColor,\n title,\n description,\n openLabel = '사이드바 열기',\n closeLabel = '사이드바 접기',\n children,\n ...props\n },\n ref,\n ) => {\n const { isOpen, toggle } = useSidebar()\n const [isHovered, setIsHovered] = React.useState(false)\n const [isFullyCollapsed, setIsFullyCollapsed] = React.useState(!isOpen)\n const headerRef = React.useRef<HTMLDivElement>(null)\n const closeRef = React.useRef<HTMLButtonElement>(null)\n React.useImperativeHandle(ref, () => headerRef.current as HTMLDivElement)\n\n // 키보드로 접거나 펴면 누른 컨트롤이 사라진다(접기 버튼은 빠지고, 머리는 단추가 아니게 된다) — 포커스를 짝 컨트롤로 넘긴다.\n // 마우스로 눌렀을 때는 넘기지 않는다: 넘기면 접기 버튼의 Tooltip 이 떠서 남는다\n const focusPartner = React.useRef(false)\n React.useEffect(() => {\n if (!focusPartner.current) return\n focusPartner.current = false\n ;(isOpen ? closeRef.current : headerRef.current)?.focus()\n }, [isOpen])\n\n // 전환 애니메이션(200ms) 완료 후에만 호버 효과 허용\n React.useEffect(() => {\n if (!isOpen) {\n const timer = setTimeout(() => setIsFullyCollapsed(true), 200)\n return () => clearTimeout(timer)\n } else {\n setIsFullyCollapsed(false)\n }\n }, [isOpen])\n\n // children이 있으면 커스텀 렌더링\n if (children) {\n return (\n <div\n ref={headerRef}\n className={cn(\n 'sticky top-0 z-10',\n 'h-[72px] py-[16px] pl-[18px] pr-[16px]',\n 'flex items-center gap-[16px]',\n 'bg-secondary-o10-blur backdrop-blur-md border-b border-sys-divider-subtler',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n return (\n <div\n ref={headerRef}\n className={cn(\n 'sticky top-0 z-10',\n 'h-[72px] py-[16px] pl-[18px] pr-[16px]',\n 'flex items-center gap-[16px]',\n 'bg-secondary-o10-blur backdrop-blur-md border-b border-sys-divider-subtler',\n !isOpen && ['cursor-pointer', rowFocusRing],\n className,\n )}\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n onClick={!isOpen ? toggle : undefined}\n role={!isOpen ? 'button' : undefined}\n aria-label={!isOpen ? openLabel : undefined}\n aria-expanded={!isOpen ? false : undefined}\n tabIndex={!isOpen ? 0 : undefined}\n onKeyDown={\n !isOpen\n ? (e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n focusPartner.current = true\n toggle()\n }\n }\n : undefined\n }\n {...props}\n >\n {/* Avatar */}\n {avatar && (\n <div className='shrink-0 flex items-center justify-center size-[36px]'>\n {isFullyCollapsed && isHovered ? (\n <PanelLeft size={20} className='text-sys-text-subtle' />\n ) : (\n <div\n className={cn(\n 'flex items-center justify-center',\n 'size-[36px] rounded-full',\n 'border border-sys-divider-subtler',\n 'text-h6',\n )}\n style={{\n backgroundColor: avatarColor || 'var(--color-secondary20)',\n color: 'var(--color-sys-text-normal)',\n }}\n >\n {avatar}\n </div>\n )}\n </div>\n )}\n\n {/* Title & Description */}\n {(title || description) && (\n <div\n className={cn(\n 'flex flex-col justify-center flex-1 min-w-0',\n 'transition-all duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n isHovered && isOpen && 'pr-[20px]',\n )}\n >\n {title && <p className='text-h6 text-sys-text-main truncate'>{title}</p>}\n {description && (\n <p className='text-small-regular text-sys-text-subtle truncate'>{description}</p>\n )}\n </div>\n )}\n\n {/* 펼친 상태: 호버 시 토글 버튼 페이드인 */}\n {isOpen && (\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>\n <IconButton\n ref={closeRef}\n variant='secondaryLink'\n shape='normal'\n spacing='compact'\n onClick={(e) => {\n e.stopPropagation()\n // Enter·Space 로 누른 click 은 detail 이 0 이다(마우스는 1 이상)\n focusPartner.current = e.detail === 0\n toggle()\n }}\n className={cn(\n 'absolute right-[8px] top-1/2 -translate-y-1/2',\n 'transition-opacity duration-150',\n isHovered ? 'opacity-100' : 'opacity-0 focus-visible:opacity-100',\n focusRing,\n )}\n aria-label={closeLabel}\n aria-expanded\n >\n <PanelLeft size={20} />\n </IconButton>\n </TooltipTrigger>\n <TooltipContent side='right'>{closeLabel}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n },\n)\nSidebarHeader.displayName = 'SidebarHeader'\n\n/* ------------------------------ SidebarToggle ----------------------------- */\n/* Header 없는 경우의 standalone toggle */\n\ntype SidebarToggleProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n openLabel?: string\n closeLabel?: string\n}\n\nconst SidebarToggle = React.forwardRef<HTMLDivElement, SidebarToggleProps>(\n ({ className, openLabel = '사이드바 열기', closeLabel = '사이드바 접기', ...props }, ref) => {\n const { isOpen, toggle } = useSidebar()\n\n return (\n <div\n ref={ref}\n className={cn(\n 'h-[40px] flex items-center',\n isOpen ? 'justify-end px-[8px]' : 'justify-center',\n className,\n )}\n {...props}\n >\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>\n <IconButton\n variant='secondaryLink'\n shape='normal'\n spacing='compact'\n className={cn(\n 'opacity-50 hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-150',\n focusRing,\n )}\n onClick={toggle}\n aria-label={isOpen ? closeLabel : openLabel}\n aria-expanded={isOpen}\n >\n <PanelLeft size={20} />\n </IconButton>\n </TooltipTrigger>\n <TooltipContent side='right'>{isOpen ? closeLabel : openLabel}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n </div>\n )\n },\n)\nSidebarToggle.displayName = 'SidebarToggle'\n\n/* ----------------------------- SidebarContent ----------------------------- */\n\nconst SidebarContent = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>(\n ({ className, ...props }, ref) => (\n <nav ref={ref} className={cn('flex-1 overflow-x-clip', className)} {...props} />\n ),\n)\nSidebarContent.displayName = 'SidebarContent'\n\n/* ----------------------------- SidebarSection ----------------------------- */\n\ntype SidebarSectionProps = React.HTMLAttributes<HTMLDivElement> & {\n title?: string\n collapsible?: boolean\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n}\n\nconst SidebarSection = React.forwardRef<HTMLDivElement, SidebarSectionProps>(\n (\n {\n className,\n title,\n collapsible = false,\n defaultOpen = true,\n open: controlledOpen,\n onOpenChange,\n children,\n ...props\n },\n ref,\n ) => {\n const { isOpen: sidebarOpen } = useSidebar()\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen)\n\n const isExpanded = controlledOpen ?? uncontrolledOpen\n\n const toggleExpanded = React.useCallback(() => {\n const next = !isExpanded\n if (onOpenChange) {\n onOpenChange(next)\n } else {\n setUncontrolledOpen(next)\n }\n }, [isExpanded, onOpenChange])\n\n // 사이드바 접힘 시 또는 collapsible 아닐 때 → 항상 열림\n const showChildren = !collapsible || !sidebarOpen || isExpanded\n\n // 접힌 묶음의 항목은 높이 0 으로 줄 뿐 문서에 남는다 — inert 로 Tab·스크린리더에서 뺀다.\n // React 18 타입에 inert 가 없어 속성으로 건다 (chatPage.tsx 와 같다)\n const listRef = React.useRef<HTMLDivElement>(null)\n React.useEffect(() => {\n listRef.current?.toggleAttribute('inert', !showChildren)\n }, [showChildren])\n\n return (\n <div ref={ref} className={cn('', className)} {...props}>\n {title && (\n <div\n className={cn(\n 'h-[40px] px-[16px] py-[12px] flex items-center gap-[12px]',\n collapsible &&\n sidebarOpen && [\n 'cursor-pointer hover:bg-sys-button-secondary-subtle-background-hover',\n rowFocusRing,\n ],\n )}\n role={collapsible && sidebarOpen ? 'button' : undefined}\n aria-expanded={collapsible && sidebarOpen ? isExpanded : undefined}\n tabIndex={collapsible && sidebarOpen ? 0 : undefined}\n onClick={collapsible && sidebarOpen ? toggleExpanded : undefined}\n onKeyDown={\n collapsible && sidebarOpen\n ? (e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n toggleExpanded()\n }\n }\n : undefined\n }\n >\n {sidebarOpen && (\n <span className='text-small-bold text-sys-text-subtler whitespace-nowrap'>\n {title}\n </span>\n )}\n <Separator className='flex-1' />\n {collapsible && sidebarOpen && (\n <ChevronDown\n size={14}\n className={cn(\n 'text-sys-text-subtler shrink-0 transition-transform duration-200',\n isExpanded && 'rotate-180',\n )}\n />\n )}\n </div>\n )}\n <div\n ref={listRef}\n className={cn(\n 'grid transition-[grid-template-rows] duration-200 ease-in-out',\n showChildren ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]',\n )}\n >\n <ul className='flex flex-col overflow-hidden'>{children}</ul>\n </div>\n </div>\n )\n },\n)\nSidebarSection.displayName = 'SidebarSection'\n\n/* ----------------------------- SidebarMenuItem ---------------------------- */\n\ntype SidebarMenuItemProps = React.HTMLAttributes<HTMLLIElement> & {\n icon?: string\n label: string\n /** 지금 화면의 메뉴 — 강조해 그리고 `aria-current=\"page\"` 로 알린다 */\n isActive?: boolean\n /** 자식 요소(라우터 `Link` 등 포커스를 받는 요소)가 메뉴 항목이 된다. 없으면 `<button>` 을 그린다 */\n asChild?: boolean\n}\n\nconst SidebarMenuItem = React.forwardRef<HTMLLIElement, SidebarMenuItemProps>(\n ({ className, icon, label, isActive = false, asChild = false, children, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n const buttonContent = (\n <span\n className={cn(\n 'flex items-center gap-[16px] w-full',\n 'pl-[21px] pr-[6px] py-[6px]',\n 'transition-all duration-200',\n // Active state\n isActive && [\n 'bg-sys-button-primary-subtle-background',\n 'border-l-[4px] border-primary30',\n 'hover:bg-sys-button-primary-subtle-background-hover',\n 'active:bg-sys-button-primary-subtle-background-press',\n ],\n // Inactive state\n !isActive && [\n 'border-l-[4px] border-transparent',\n 'hover:bg-sys-button-secondary-subtle-background-hover',\n 'active:bg-sys-button-secondary-subtle-background-press',\n ],\n )}\n >\n {/* Icon */}\n {icon && (\n <span className='shrink-0'>\n <LucideIcon\n iconComponentName={icon}\n size={20}\n className={cn(\n isActive ? 'text-sys-button-primary-subtle-text' : 'text-sys-text-subtle',\n )}\n />\n </span>\n )}\n\n {/* Label */}\n <span\n className={cn(\n 'flex-1 text-left whitespace-nowrap overflow-hidden',\n 'transition-opacity duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n isActive\n ? 'text-h6 text-sys-button-primary-subtle-text'\n : 'text-base-semibold text-sys-text-subtle',\n )}\n >\n {label}\n </span>\n </span>\n )\n\n // 소비자 ref·props(onClick 포함)는 그대로 <li> 에 붙는다 — 단추의 click 이 <li> 로 올라가 Enter·Space 도 onClick 을 부른다\n const Comp = asChild ? Slot : 'button'\n\n const content = (\n <Comp\n type={asChild ? undefined : 'button'}\n aria-current={isActive ? 'page' : undefined}\n className={cn('flex items-center w-full cursor-pointer', rowFocusRing)}\n >\n {asChild\n ? React.isValidElement(children)\n ? React.cloneElement(children as React.ReactElement, {\n children: buttonContent,\n })\n : children\n : buttonContent}\n </Comp>\n )\n\n return (\n <li ref={ref} className={cn('', className)} {...props}>\n {!isOpen ? (\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>{content}</TooltipTrigger>\n <TooltipContent side='right'>{label}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n ) : (\n content\n )}\n </li>\n )\n },\n)\nSidebarMenuItem.displayName = 'SidebarMenuItem'\n\n/* ------------------------------ SidebarFooter ----------------------------- */\n\nconst SidebarFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n return (\n <div\n ref={ref}\n className={cn(\n 'sticky bottom-0 z-10 mt-auto',\n 'bg-sys-background-blur backdrop-blur-md',\n 'transition-opacity duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n className,\n )}\n {...props}\n />\n )\n },\n)\nSidebarFooter.displayName = 'SidebarFooter'\n\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n SidebarHeader,\n SidebarToggle,\n SidebarContent,\n SidebarSection,\n SidebarMenuItem,\n SidebarFooter,\n}\n"],"names":[],"mappings":";;;;;;;;;;AAaA,MAAM,YAAY;AAClB,MAAM,eAAe,GAAG,SAAS;AASjC,MAAM,iBAAiB,MAAM,cAA8C,MAAS;AASpF,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA,cAAc;AAAA,EACd,MAAM;AAAA,EACN;AACF,GAAyB;AACvB,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,MAAM,SAAS,WAAW;AAE1E,QAAM,SAAS,kBAAkB;AAEjC,QAAM,SAAS,MAAM,YAAY,MAAM;AACrC,UAAM,WAAW,CAAC;AAClB,QAAI,cAAc;AAChB,mBAAa,QAAQ;AAAA,IACvB,OAAO;AACL,0BAAoB,QAAQ;AAAA,IAC9B;AAAA,EACF,GAAG,CAAC,QAAQ,YAAY,CAAC;AAEzB,SAAO,oBAAC,eAAe,UAAf,EAAwB,OAAO,EAAE,QAAQ,UAAW,UAAS;AACvE;AAEA,SAAS,aAAa;AACpB,QAAM,UAAU,MAAM,WAAW,cAAc;AAC/C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,gDAAgD;AAAA,EAClE;AACA,SAAO;AACT;AAiBA,MAAM,UAAU,MAAM;AAAA,EACpB,CAAC,EAAE,WAAW,MAAM,GAAG,YAAY,KAAK,cAAc,IAAI,OAAO,UAAU,GAAG,MAAA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AA,QAClC,WAAW,GAAG,2CAA2C,YAAY;AAAA,QAEpE,oBACG,MAAM,eAAe,QAAQ,IAC3B,MAAM,aAAa,UAAgC;AAAA,UACjD,UAAU;AAAA,QAAA,CACX,IACD,WACF;AAAA,MAAA;AAAA,IAAA;AAIR,+BACG,MAAA,EAAG,KAAU,WAAW,GAAG,IAAI,SAAS,GAAI,GAAG,OAC7C,WAAC,SACA,oBAAC,mBAAgB,eAAe,KAC9B,+BAAC,SAAA,EACC,UAAA;AAAA,MAAA,oBAAC,gBAAA,EAAe,SAAO,MAAE,UAAA,SAAQ;AAAA,MACjC,oBAAC,gBAAA,EAAe,MAAK,SAAS,UAAA,MAAA,CAAM;AAAA,IAAA,GACtC,EAAA,CACF,IAEA,SAEJ;AAAA,EAEJ;AACF;AACA,gBAAgB,cAAc;AAI9B,MAAM,gBAAgB,MAAM;AAAA,EAC1B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAAQ;AAChC,UAAM,EAAE,OAAA,IAAW,WAAA;AAEnB,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,UACA,SAAS,0BAA0B;AAAA,UACnC;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACA,cAAc,cAAc;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/sidebar/index.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { ChevronDown, PanelLeft } from 'lucide-react'\n\nimport { cn } from '../../utils/cn'\nimport { IconButton } from '../iconButton'\nimport { LucideIcon } from '../lucideIcon'\nimport { Separator } from '../separator'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip'\n\n// 키보드로 왔을 때만 보이는 포커스 링(DS 공통 토큰). 꽉 찬 줄(메뉴 항목·묶음 머리·접힌 머리)은 목록의 overflow-hidden 에 잘리지 않게 안쪽으로 그린다\nconst focusRing = 'focus-visible:outline-[2px] focus-visible:outline-sys-focus-ring-main'\nconst rowFocusRing = `${focusRing} focus-visible:-outline-offset-2`\n\n/* --------------------------------- Context -------------------------------- */\n\ntype SidebarContextType = {\n isOpen: boolean\n toggle: () => void\n}\n\nconst SidebarContext = React.createContext<SidebarContextType | undefined>(undefined)\n\ntype SidebarProviderProps = {\n children: React.ReactNode\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n}\n\nfunction SidebarProvider({\n children,\n defaultOpen = true,\n open: controlledOpen,\n onOpenChange,\n}: SidebarProviderProps) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen)\n\n const isOpen = controlledOpen ?? uncontrolledOpen\n\n const toggle = React.useCallback(() => {\n const newState = !isOpen\n if (onOpenChange) {\n onOpenChange(newState)\n } else {\n setUncontrolledOpen(newState)\n }\n }, [isOpen, onOpenChange])\n\n return <SidebarContext.Provider value={{ isOpen, toggle }}>{children}</SidebarContext.Provider>\n}\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext)\n if (!context) {\n throw new Error('useSidebar must be used within SidebarProvider')\n }\n return context\n}\n\n/* --------------------------------- Sidebar -------------------------------- */\n\ntype SidebarProps = React.HTMLAttributes<HTMLElement> & {\n top?: number\n openWidth?: number\n closedWidth?: number\n}\n\n/**\n * 앱 왼쪽 내비게이션(메뉴 묶음·접기).\n *\n * 언제 쓰나: 소비 앱 레이아웃(앱 셸)에서 화면 사이를 오가는 메뉴.\n * 언제 안 쓰나: 한 화면 안의 보기 전환(→ Tabs), 화면 안의 보조 패널(→ ListPage `detail`·Drawer), 패턴 안쪽 — 패턴은 앱 셸을 그리지 않고 앱 레이아웃의 `<main>` 안에 들어간다.\n * 대신/함께: 접힌 상태에서는 아이콘만 보이므로 아이콘마다 Tooltip 으로 이름을 준다.\n */\nconst Sidebar = React.forwardRef<HTMLElement, SidebarProps>(\n ({ className, top = 0, openWidth = 240, closedWidth = 72, style, children, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n return (\n <aside\n ref={ref}\n className={cn(\n 'fixed left-0 z-[var(--z-index-sidebar)]',\n 'bg-sys-background',\n 'flex flex-col overflow-y-auto',\n 'transition-all duration-200 ease-in-out',\n className,\n )}\n style={{\n top,\n height: `calc(100vh - ${top}px)`,\n width: isOpen ? openWidth : closedWidth,\n boxShadow: '1px 0 0 0 var(--color-sys-divider-subtler)',\n ...style,\n }}\n {...props}\n >\n {children}\n </aside>\n )\n },\n)\nSidebar.displayName = 'Sidebar'\n\n/* ------------------------------ SidebarHeader ----------------------------- */\n\ntype SidebarHeaderProps = React.HTMLAttributes<HTMLDivElement> & {\n avatar?: string\n avatarColor?: string\n title?: string\n description?: string\n openLabel?: string\n closeLabel?: string\n}\n\nconst SidebarHeader = React.forwardRef<HTMLDivElement, SidebarHeaderProps>(\n (\n {\n className,\n avatar,\n avatarColor,\n title,\n description,\n openLabel = '사이드바 열기',\n closeLabel = '사이드바 접기',\n children,\n ...props\n },\n ref,\n ) => {\n const { isOpen, toggle } = useSidebar()\n const [isHovered, setIsHovered] = React.useState(false)\n const [isFullyCollapsed, setIsFullyCollapsed] = React.useState(!isOpen)\n const headerRef = React.useRef<HTMLDivElement>(null)\n const closeRef = React.useRef<HTMLButtonElement>(null)\n React.useImperativeHandle(ref, () => headerRef.current as HTMLDivElement)\n\n // 키보드로 접거나 펴면 누른 컨트롤이 사라진다(접기 버튼은 빠지고, 머리는 단추가 아니게 된다) — 포커스를 짝 컨트롤로 넘긴다.\n // 마우스로 눌렀을 때는 넘기지 않는다: 넘기면 접기 버튼의 Tooltip 이 떠서 남는다\n const focusPartner = React.useRef(false)\n React.useEffect(() => {\n if (!focusPartner.current) return\n focusPartner.current = false\n ;(isOpen ? closeRef.current : headerRef.current)?.focus()\n }, [isOpen])\n\n // 전환 애니메이션(200ms) 완료 후에만 호버 효과 허용\n React.useEffect(() => {\n if (!isOpen) {\n const timer = setTimeout(() => setIsFullyCollapsed(true), 200)\n return () => clearTimeout(timer)\n } else {\n setIsFullyCollapsed(false)\n }\n }, [isOpen])\n\n // children이 있으면 커스텀 렌더링\n if (children) {\n return (\n <div\n ref={headerRef}\n className={cn(\n 'sticky top-0 z-10',\n 'h-[72px] py-[16px] pl-[18px] pr-[16px]',\n 'flex items-center gap-[16px]',\n 'bg-secondary-o10-blur backdrop-blur-md border-b border-sys-divider-subtler',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n return (\n <div\n ref={headerRef}\n className={cn(\n 'sticky top-0 z-10',\n 'h-[72px] py-[16px] pl-[18px] pr-[16px]',\n 'flex items-center gap-[16px]',\n 'bg-secondary-o10-blur backdrop-blur-md border-b border-sys-divider-subtler',\n !isOpen && ['cursor-pointer', rowFocusRing],\n className,\n )}\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n onClick={!isOpen ? toggle : undefined}\n role={!isOpen ? 'button' : undefined}\n aria-label={!isOpen ? openLabel : undefined}\n aria-expanded={!isOpen ? false : undefined}\n tabIndex={!isOpen ? 0 : undefined}\n onKeyDown={\n !isOpen\n ? (e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n focusPartner.current = true\n toggle()\n }\n }\n : undefined\n }\n {...props}\n >\n {/* Avatar */}\n {avatar && (\n <div className='shrink-0 flex items-center justify-center size-[36px]'>\n {isFullyCollapsed && isHovered ? (\n <PanelLeft size={20} className='text-sys-text-subtle' />\n ) : (\n <div\n className={cn(\n 'flex items-center justify-center',\n 'size-[36px] rounded-full',\n 'border border-sys-divider-subtler',\n 'text-h6',\n )}\n style={{\n backgroundColor: avatarColor || 'var(--color-secondary20)',\n color: 'var(--color-sys-text-normal)',\n }}\n >\n {avatar}\n </div>\n )}\n </div>\n )}\n\n {/* Title & Description */}\n {(title || description) && (\n <div\n className={cn(\n 'flex flex-col justify-center flex-1 min-w-0',\n 'transition-all duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n isHovered && isOpen && 'pr-[20px]',\n )}\n >\n {title && <p className='text-h6 text-sys-text-main truncate'>{title}</p>}\n {description && (\n <p className='text-small-regular text-sys-text-subtle truncate'>{description}</p>\n )}\n </div>\n )}\n\n {/* 펼친 상태: 호버 시 토글 버튼 페이드인 */}\n {isOpen && (\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>\n <IconButton\n ref={closeRef}\n variant='secondaryLink'\n shape='normal'\n spacing='compact'\n onClick={(e) => {\n e.stopPropagation()\n // Enter·Space 로 누른 click 은 detail 이 0 이다(마우스는 1 이상)\n focusPartner.current = e.detail === 0\n toggle()\n }}\n className={cn(\n 'absolute right-[8px] top-1/2 h-[24px] min-w-[24px] -translate-y-1/2',\n 'transition-opacity duration-150',\n isHovered ? 'opacity-100' : 'opacity-0 focus-visible:opacity-100',\n focusRing,\n )}\n aria-label={closeLabel}\n aria-expanded\n >\n <PanelLeft size={20} />\n </IconButton>\n </TooltipTrigger>\n <TooltipContent side='right'>{closeLabel}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n },\n)\nSidebarHeader.displayName = 'SidebarHeader'\n\n/* ------------------------------ SidebarToggle ----------------------------- */\n/* Header 없는 경우의 standalone toggle */\n\ntype SidebarToggleProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n openLabel?: string\n closeLabel?: string\n}\n\nconst SidebarToggle = React.forwardRef<HTMLDivElement, SidebarToggleProps>(\n ({ className, openLabel = '사이드바 열기', closeLabel = '사이드바 접기', ...props }, ref) => {\n const { isOpen, toggle } = useSidebar()\n\n return (\n <div\n ref={ref}\n className={cn(\n 'h-[40px] flex items-center',\n isOpen ? 'justify-end px-[8px]' : 'justify-center',\n className,\n )}\n {...props}\n >\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>\n <IconButton\n variant='secondaryLink'\n shape='normal'\n spacing='compact'\n className={cn(\n 'h-[24px] min-w-[24px] opacity-50 hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-150',\n focusRing,\n )}\n onClick={toggle}\n aria-label={isOpen ? closeLabel : openLabel}\n aria-expanded={isOpen}\n >\n <PanelLeft size={20} />\n </IconButton>\n </TooltipTrigger>\n <TooltipContent side='right'>{isOpen ? closeLabel : openLabel}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n </div>\n )\n },\n)\nSidebarToggle.displayName = 'SidebarToggle'\n\n/* ----------------------------- SidebarContent ----------------------------- */\n\nconst SidebarContent = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>(\n ({ className, ...props }, ref) => (\n <nav ref={ref} className={cn('flex-1 overflow-x-clip', className)} {...props} />\n ),\n)\nSidebarContent.displayName = 'SidebarContent'\n\n/* ----------------------------- SidebarSection ----------------------------- */\n\ntype SidebarSectionProps = React.HTMLAttributes<HTMLDivElement> & {\n title?: string\n collapsible?: boolean\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n}\n\nconst SidebarSection = React.forwardRef<HTMLDivElement, SidebarSectionProps>(\n (\n {\n className,\n title,\n collapsible = false,\n defaultOpen = true,\n open: controlledOpen,\n onOpenChange,\n children,\n ...props\n },\n ref,\n ) => {\n const { isOpen: sidebarOpen } = useSidebar()\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen)\n\n const isExpanded = controlledOpen ?? uncontrolledOpen\n\n const toggleExpanded = React.useCallback(() => {\n const next = !isExpanded\n if (onOpenChange) {\n onOpenChange(next)\n } else {\n setUncontrolledOpen(next)\n }\n }, [isExpanded, onOpenChange])\n\n // 사이드바 접힘 시 또는 collapsible 아닐 때 → 항상 열림\n const showChildren = !collapsible || !sidebarOpen || isExpanded\n\n // 접힌 묶음의 항목은 높이 0 으로 줄 뿐 문서에 남는다 — inert 로 Tab·스크린리더에서 뺀다.\n // React 18 타입에 inert 가 없어 속성으로 건다 (chatPage.tsx 와 같다)\n const listRef = React.useRef<HTMLDivElement>(null)\n React.useEffect(() => {\n listRef.current?.toggleAttribute('inert', !showChildren)\n }, [showChildren])\n\n return (\n <div ref={ref} className={cn('', className)} {...props}>\n {title && (\n <div\n className={cn(\n 'h-[40px] px-[16px] py-[12px] flex items-center gap-[12px]',\n collapsible &&\n sidebarOpen && [\n 'cursor-pointer hover:bg-sys-button-secondary-subtle-background-hover',\n rowFocusRing,\n ],\n )}\n role={collapsible && sidebarOpen ? 'button' : undefined}\n aria-expanded={collapsible && sidebarOpen ? isExpanded : undefined}\n tabIndex={collapsible && sidebarOpen ? 0 : undefined}\n onClick={collapsible && sidebarOpen ? toggleExpanded : undefined}\n onKeyDown={\n collapsible && sidebarOpen\n ? (e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n toggleExpanded()\n }\n }\n : undefined\n }\n >\n {sidebarOpen && (\n <span className='text-small-bold text-sys-text-subtler whitespace-nowrap'>\n {title}\n </span>\n )}\n <Separator className='flex-1' />\n {collapsible && sidebarOpen && (\n <ChevronDown\n size={14}\n className={cn(\n 'text-sys-text-subtler shrink-0 transition-transform duration-200',\n isExpanded && 'rotate-180',\n )}\n />\n )}\n </div>\n )}\n <div\n ref={listRef}\n className={cn(\n 'grid transition-[grid-template-rows] duration-200 ease-in-out',\n showChildren ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]',\n )}\n >\n <ul className='flex flex-col overflow-hidden'>{children}</ul>\n </div>\n </div>\n )\n },\n)\nSidebarSection.displayName = 'SidebarSection'\n\n/* ----------------------------- SidebarMenuItem ---------------------------- */\n\ntype SidebarMenuItemProps = React.HTMLAttributes<HTMLLIElement> & {\n icon?: string\n label: string\n /** 지금 화면의 메뉴 — 강조해 그리고 `aria-current=\"page\"` 로 알린다 */\n isActive?: boolean\n /** 자식 요소(라우터 `Link` 등 포커스를 받는 요소)가 메뉴 항목이 된다. 없으면 `<button>` 을 그린다 */\n asChild?: boolean\n}\n\nconst SidebarMenuItem = React.forwardRef<HTMLLIElement, SidebarMenuItemProps>(\n ({ className, icon, label, isActive = false, asChild = false, children, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n const buttonContent = (\n <span\n className={cn(\n 'flex items-center gap-[16px] w-full',\n 'pl-[21px] pr-[6px] py-[6px]',\n 'transition-all duration-200',\n // Active state\n isActive && [\n 'bg-sys-button-primary-subtle-background',\n 'border-l-[4px] border-primary30',\n 'hover:bg-sys-button-primary-subtle-background-hover',\n 'active:bg-sys-button-primary-subtle-background-press',\n ],\n // Inactive state\n !isActive && [\n 'border-l-[4px] border-transparent',\n 'hover:bg-sys-button-secondary-subtle-background-hover',\n 'active:bg-sys-button-secondary-subtle-background-press',\n ],\n )}\n >\n {/* Icon */}\n {icon && (\n <span className='shrink-0'>\n <LucideIcon\n iconComponentName={icon}\n size={20}\n className={cn(\n isActive ? 'text-sys-button-primary-subtle-text' : 'text-sys-text-subtle',\n )}\n />\n </span>\n )}\n\n {/* Label */}\n <span\n className={cn(\n 'flex-1 text-left whitespace-nowrap overflow-hidden',\n 'transition-opacity duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n isActive\n ? 'text-h6 text-sys-button-primary-subtle-text'\n : 'text-base-semibold text-sys-text-subtle',\n )}\n >\n {label}\n </span>\n </span>\n )\n\n // 소비자 ref·props(onClick 포함)는 그대로 <li> 에 붙는다 — 단추의 click 이 <li> 로 올라가 Enter·Space 도 onClick 을 부른다\n const Comp = asChild ? Slot : 'button'\n\n const content = (\n <Comp\n type={asChild ? undefined : 'button'}\n aria-current={isActive ? 'page' : undefined}\n className={cn('flex items-center w-full cursor-pointer', rowFocusRing)}\n >\n {asChild\n ? React.isValidElement(children)\n ? React.cloneElement(children as React.ReactElement, {\n children: buttonContent,\n })\n : children\n : buttonContent}\n </Comp>\n )\n\n return (\n <li ref={ref} className={cn('', className)} {...props}>\n {!isOpen ? (\n <TooltipProvider delayDuration={300}>\n <Tooltip>\n <TooltipTrigger asChild>{content}</TooltipTrigger>\n <TooltipContent side='right'>{label}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n ) : (\n content\n )}\n </li>\n )\n },\n)\nSidebarMenuItem.displayName = 'SidebarMenuItem'\n\n/* ------------------------------ SidebarFooter ----------------------------- */\n\nconst SidebarFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const { isOpen } = useSidebar()\n\n return (\n <div\n ref={ref}\n className={cn(\n 'sticky bottom-0 z-10 mt-auto',\n 'bg-sys-background-blur backdrop-blur-md',\n 'transition-opacity duration-200',\n isOpen ? 'opacity-100 delay-150' : 'opacity-0 delay-0',\n className,\n )}\n {...props}\n />\n )\n },\n)\nSidebarFooter.displayName = 'SidebarFooter'\n\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n SidebarHeader,\n SidebarToggle,\n SidebarContent,\n SidebarSection,\n SidebarMenuItem,\n SidebarFooter,\n}\n"],"names":[],"mappings":";;;;;;;;;;AAaA,MAAM,YAAY;AAClB,MAAM,eAAe,GAAG,SAAS;AASjC,MAAM,iBAAiB,MAAM,cAA8C,MAAS;AASpF,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA,cAAc;AAAA,EACd,MAAM;AAAA,EACN;AACF,GAAyB;AACvB,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,MAAM,SAAS,WAAW;AAE1E,QAAM,SAAS,kBAAkB;AAEjC,QAAM,SAAS,MAAM,YAAY,MAAM;AACrC,UAAM,WAAW,CAAC;AAClB,QAAI,cAAc;AAChB,mBAAa,QAAQ;AAAA,IACvB,OAAO;AACL,0BAAoB,QAAQ;AAAA,IAC9B;AAAA,EACF,GAAG,CAAC,QAAQ,YAAY,CAAC;AAEzB,SAAO,oBAAC,eAAe,UAAf,EAAwB,OAAO,EAAE,QAAQ,UAAW,UAAS;AACvE;AAEA,SAAS,aAAa;AACpB,QAAM,UAAU,MAAM,WAAW,cAAc;AAC/C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,gDA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A,IAAA;AAKJ,UAAM,OAAO,UAAU,OAAO;AAE9B,UAAM,UACJ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAM,UAAU,SAAY;AAAA,QAC5B,gBAAc,WAAW,SAAS;AAAA,QAClC,WAAW,GAAG,2CAA2C,YAAY;AAAA,QAEpE,oBACG,MAAM,eAAe,QAAQ,IAC3B,MAAM,aAAa,UAAgC;AAAA,UACjD,UAAU;AAAA,QAAA,CACX,IACD,WACF;AAAA,MAAA;AAAA,IAAA;AAIR,+BACG,MAAA,EAAG,KAAU,WAAW,GAAG,IAAI,SAAS,GAAI,GAAG,OAC7C,WAAC,SACA,oBAAC,mBAAgB,eAAe,KAC9B,+BAAC,SAAA,EACC,UAAA;AAAA,MAAA,oBAAC,gBAAA,EAAe,SAAO,MAAE,UAAA,SAAQ;AAAA,MACjC,oBAAC,gBAAA,EAAe,MAAK,SAAS,UAAA,MAAA,CAAM;AAAA,IAAA,GACtC,EAAA,CACF,IAEA,SAEJ;AAAA,EAEJ;AACF;AACA,gBAAgB,cAAc;AAI9B,MAAM,gBAAgB,MAAM;AAAA,EAC1B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAAQ;AAChC,UAAM,EAAE,OAAA,IAAW,WAAA;AAEnB,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,UACA,SAAS,0BAA0B;AAAA,UACnC;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACA,cAAc,cAAc;"}
|
|
@@ -53,7 +53,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
53
53
|
*
|
|
54
54
|
* 언제 쓰나: 화면의 주요 행동은 `primaryBold` 1개, 보조 행동은 `secondaryOutline`·`secondaryLink`, 파괴적 행동은 `danger*`. 비동기 처리 중에는 `loading` 으로 잠근다.
|
|
55
55
|
* 언제 안 쓰나: 아이콘만 있는 버튼(→ IconButton), 페이지 이동(→ 링크. 버튼 모양이 꼭 필요하면 `asChild` 로 `<a>` 를 감싼다), 표 안의 상태 표시(→ Badge).
|
|
56
|
-
* 대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽.
|
|
56
|
+
* 대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽. 글자 앞뒤 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(아이콘이 있어도 높이는 36 그대로).
|
|
57
57
|
*/
|
|
58
58
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
59
|
|
|
@@ -53,7 +53,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
53
53
|
*
|
|
54
54
|
* 언제 쓰나: 화면의 주요 행동은 `primaryBold` 1개, 보조 행동은 `secondaryOutline`·`secondaryLink`, 파괴적 행동은 `danger*`. 비동기 처리 중에는 `loading` 으로 잠근다.
|
|
55
55
|
* 언제 안 쓰나: 아이콘만 있는 버튼(→ IconButton), 페이지 이동(→ 링크. 버튼 모양이 꼭 필요하면 `asChild` 로 `<a>` 를 감싼다), 표 안의 상태 표시(→ Badge).
|
|
56
|
-
* 대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽.
|
|
56
|
+
* 대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽. 글자 앞뒤 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(아이콘이 있어도 높이는 36 그대로).
|
|
57
57
|
*/
|
|
58
58
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
59
|
|
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ const pageHeaderRefreshButton = require("./components/pageHeaderRefreshButton.cj
|
|
|
37
37
|
const popover = require("./components/popover.cjs");
|
|
38
38
|
const pagination = require("./components/pagination.cjs");
|
|
39
39
|
const panel = require("./components/panel.cjs");
|
|
40
|
+
const selectedItemCard = require("./components/selectedItemCard.cjs");
|
|
40
41
|
const progress = require("./components/progress.cjs");
|
|
41
42
|
const radio = require("./components/radio.cjs");
|
|
42
43
|
const radioGroup = require("./components/radioGroup.cjs");
|
|
@@ -228,6 +229,7 @@ exports.PaginationPrevious = pagination.PaginationPrevious;
|
|
|
228
229
|
exports.PaginationWrapper = pagination.PaginationWrapper;
|
|
229
230
|
exports.getPaginationRange = pagination.getPaginationRange;
|
|
230
231
|
exports.Panel = panel.Panel;
|
|
232
|
+
exports.SelectedItemCard = selectedItemCard.SelectedItemCard;
|
|
231
233
|
exports.Progress = progress.Progress;
|
|
232
234
|
exports.Radio = radio.Radio;
|
|
233
235
|
exports.RadioGroup = radioGroup.RadioGroup;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-
|
|
11
|
+
import { B as BadgeProps } from './index-Dd-O1cSb.cjs';
|
|
12
|
+
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-Dd-O1cSb.cjs';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -915,7 +915,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
915
915
|
*
|
|
916
916
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
917
917
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
918
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다.
|
|
918
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기).
|
|
919
919
|
*/
|
|
920
920
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
921
921
|
|
|
@@ -1015,6 +1015,8 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1015
1015
|
* 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 "불균일"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다
|
|
1016
1016
|
*/
|
|
1017
1017
|
emphasis?: boolean;
|
|
1018
|
+
/** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */
|
|
1019
|
+
spacing?: 'normal' | 'compact';
|
|
1018
1020
|
}
|
|
1019
1021
|
/**
|
|
1020
1022
|
* PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.
|
|
@@ -1023,7 +1025,7 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1023
1025
|
* 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 "metadata spread across very wide columns"). dl-ui-v3 상세 화면과 같은 모양
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare function MetaGroup({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1026
|
-
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, spacing, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1027
1029
|
interface MetaListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1028
1030
|
/** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */
|
|
1029
1031
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -1081,7 +1083,7 @@ interface LucideIconProps extends lucide.LucideProps {
|
|
|
1081
1083
|
/**
|
|
1082
1084
|
* 이름으로 그리는 lucide 아이콘. 버튼·뱃지·메뉴의 작은 아이콘에 쓴다.
|
|
1083
1085
|
*
|
|
1084
|
-
* 언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(
|
|
1086
|
+
* 언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(뱃지 안·표·글자 옆). `Button`·`IconButton`·메뉴 항목 안에서는 그 컴포넌트가 20px 로 맞추므로 `size` 를 주지 않는다.
|
|
1085
1087
|
* 언제 안 쓰나: 이름이 코드에 고정돼 있고 lucide 를 직접 import 할 수 있으면 `import { Plus } from 'lucide-react'` 가 더 가볍다.
|
|
1086
1088
|
* 대신/함께: 상태 뱃지 아이콘은 `Badge` 의 자식으로 넣는다(16px·글자색). 로딩은 `Spinner`.
|
|
1087
1089
|
*/
|
|
@@ -1194,6 +1196,39 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1194
1196
|
*/
|
|
1195
1197
|
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1196
1198
|
|
|
1199
|
+
interface SelectedItemCardItem {
|
|
1200
|
+
/** 속성 이름 */
|
|
1201
|
+
label: React$1.ReactNode;
|
|
1202
|
+
/** 속성 값 */
|
|
1203
|
+
value: React$1.ReactNode;
|
|
1204
|
+
}
|
|
1205
|
+
interface SelectedItemCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1206
|
+
/** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */
|
|
1207
|
+
title?: React$1.ReactNode;
|
|
1208
|
+
/** 이름 아래 설명(최대 2줄) */
|
|
1209
|
+
description?: React$1.ReactNode;
|
|
1210
|
+
/** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */
|
|
1211
|
+
items?: SelectedItemCardItem[];
|
|
1212
|
+
/** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */
|
|
1213
|
+
isEmpty?: boolean;
|
|
1214
|
+
/** 빈 상태 문구 */
|
|
1215
|
+
emptyMessage?: React$1.ReactNode;
|
|
1216
|
+
/** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */
|
|
1217
|
+
onRemove?: () => void;
|
|
1218
|
+
/** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */
|
|
1219
|
+
detailHref?: string;
|
|
1220
|
+
/** 상세 링크 버튼의 접근성 이름 */
|
|
1221
|
+
detailLabel?: string;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.
|
|
1225
|
+
*
|
|
1226
|
+
* 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).
|
|
1227
|
+
* 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).
|
|
1228
|
+
* 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.
|
|
1229
|
+
*/
|
|
1230
|
+
declare function SelectedItemCard({ title, description, items, isEmpty, emptyMessage, onRemove, detailHref, detailLabel, className, ...props }: SelectedItemCardProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
+
|
|
1197
1232
|
interface ParameterTableRow {
|
|
1198
1233
|
id: string;
|
|
1199
1234
|
values: Record<string, string>;
|
|
@@ -1560,8 +1595,8 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1560
1595
|
/**
|
|
1561
1596
|
* 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.
|
|
1562
1597
|
*
|
|
1563
|
-
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.
|
|
1564
|
-
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1598
|
+
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.
|
|
1599
|
+
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).
|
|
1565
1600
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1566
1601
|
*/
|
|
1567
1602
|
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2830,4 +2865,4 @@ interface UseFloatingLabelReturn {
|
|
|
2830
2865
|
}
|
|
2831
2866
|
declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
|
|
2832
2867
|
|
|
2833
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
|
2868
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectedItemCard, type SelectedItemCardItem, type SelectedItemCardProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-
|
|
11
|
+
import { B as BadgeProps } from './index-Dd-O1cSb.js';
|
|
12
|
+
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-Dd-O1cSb.js';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -915,7 +915,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
915
915
|
*
|
|
916
916
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
917
917
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
918
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다.
|
|
918
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기).
|
|
919
919
|
*/
|
|
920
920
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
921
921
|
|
|
@@ -1015,6 +1015,8 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1015
1015
|
* 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 "불균일"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다
|
|
1016
1016
|
*/
|
|
1017
1017
|
emphasis?: boolean;
|
|
1018
|
+
/** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */
|
|
1019
|
+
spacing?: 'normal' | 'compact';
|
|
1018
1020
|
}
|
|
1019
1021
|
/**
|
|
1020
1022
|
* PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.
|
|
@@ -1023,7 +1025,7 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1023
1025
|
* 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 "metadata spread across very wide columns"). dl-ui-v3 상세 화면과 같은 모양
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare function MetaGroup({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1026
|
-
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, spacing, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1027
1029
|
interface MetaListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1028
1030
|
/** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */
|
|
1029
1031
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -1081,7 +1083,7 @@ interface LucideIconProps extends lucide.LucideProps {
|
|
|
1081
1083
|
/**
|
|
1082
1084
|
* 이름으로 그리는 lucide 아이콘. 버튼·뱃지·메뉴의 작은 아이콘에 쓴다.
|
|
1083
1085
|
*
|
|
1084
|
-
* 언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(
|
|
1086
|
+
* 언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(뱃지 안·표·글자 옆). `Button`·`IconButton`·메뉴 항목 안에서는 그 컴포넌트가 20px 로 맞추므로 `size` 를 주지 않는다.
|
|
1085
1087
|
* 언제 안 쓰나: 이름이 코드에 고정돼 있고 lucide 를 직접 import 할 수 있으면 `import { Plus } from 'lucide-react'` 가 더 가볍다.
|
|
1086
1088
|
* 대신/함께: 상태 뱃지 아이콘은 `Badge` 의 자식으로 넣는다(16px·글자색). 로딩은 `Spinner`.
|
|
1087
1089
|
*/
|
|
@@ -1194,6 +1196,39 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1194
1196
|
*/
|
|
1195
1197
|
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1196
1198
|
|
|
1199
|
+
interface SelectedItemCardItem {
|
|
1200
|
+
/** 속성 이름 */
|
|
1201
|
+
label: React$1.ReactNode;
|
|
1202
|
+
/** 속성 값 */
|
|
1203
|
+
value: React$1.ReactNode;
|
|
1204
|
+
}
|
|
1205
|
+
interface SelectedItemCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1206
|
+
/** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */
|
|
1207
|
+
title?: React$1.ReactNode;
|
|
1208
|
+
/** 이름 아래 설명(최대 2줄) */
|
|
1209
|
+
description?: React$1.ReactNode;
|
|
1210
|
+
/** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */
|
|
1211
|
+
items?: SelectedItemCardItem[];
|
|
1212
|
+
/** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */
|
|
1213
|
+
isEmpty?: boolean;
|
|
1214
|
+
/** 빈 상태 문구 */
|
|
1215
|
+
emptyMessage?: React$1.ReactNode;
|
|
1216
|
+
/** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */
|
|
1217
|
+
onRemove?: () => void;
|
|
1218
|
+
/** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */
|
|
1219
|
+
detailHref?: string;
|
|
1220
|
+
/** 상세 링크 버튼의 접근성 이름 */
|
|
1221
|
+
detailLabel?: string;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.
|
|
1225
|
+
*
|
|
1226
|
+
* 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).
|
|
1227
|
+
* 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).
|
|
1228
|
+
* 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.
|
|
1229
|
+
*/
|
|
1230
|
+
declare function SelectedItemCard({ title, description, items, isEmpty, emptyMessage, onRemove, detailHref, detailLabel, className, ...props }: SelectedItemCardProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
+
|
|
1197
1232
|
interface ParameterTableRow {
|
|
1198
1233
|
id: string;
|
|
1199
1234
|
values: Record<string, string>;
|
|
@@ -1560,8 +1595,8 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1560
1595
|
/**
|
|
1561
1596
|
* 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.
|
|
1562
1597
|
*
|
|
1563
|
-
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.
|
|
1564
|
-
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1598
|
+
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.
|
|
1599
|
+
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).
|
|
1565
1600
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1566
1601
|
*/
|
|
1567
1602
|
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2830,4 +2865,4 @@ interface UseFloatingLabelReturn {
|
|
|
2830
2865
|
}
|
|
2831
2866
|
declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
|
|
2832
2867
|
|
|
2833
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
|
2868
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectedItemCard, type SelectedItemCardItem, type SelectedItemCardProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import { PageHeaderRefreshButton } from "./components/pageHeaderRefreshButton.js
|
|
|
35
35
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/popover.js";
|
|
36
36
|
import { Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, getPaginationRange } from "./components/pagination.js";
|
|
37
37
|
import { Panel } from "./components/panel.js";
|
|
38
|
+
import { SelectedItemCard } from "./components/selectedItemCard.js";
|
|
38
39
|
import { Progress } from "./components/progress.js";
|
|
39
40
|
import { Radio } from "./components/radio.js";
|
|
40
41
|
import { RadioGroup, RadioGroupItem } from "./components/radioGroup.js";
|
|
@@ -265,6 +266,7 @@ export {
|
|
|
265
266
|
SelectSeparator2 as SelectSeparator,
|
|
266
267
|
SelectTrigger,
|
|
267
268
|
SelectValue,
|
|
269
|
+
SelectedItemCard,
|
|
268
270
|
Separator,
|
|
269
271
|
Sidebar,
|
|
270
272
|
SidebarContent,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -51,9 +51,10 @@ function CodeBlock(all) {
|
|
|
51
51
|
iconButton.IconButton,
|
|
52
52
|
{
|
|
53
53
|
variant: "secondaryLink",
|
|
54
|
+
spacing: "compact",
|
|
54
55
|
"aria-label": copied ? "복사됨" : "코드 복사",
|
|
55
56
|
onClick: () => void copy(code),
|
|
56
|
-
children: copied ? /* @__PURE__ */ jsxRuntime.jsx(lucide.Check, {
|
|
57
|
+
children: copied ? /* @__PURE__ */ jsxRuntime.jsx(lucide.Check, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucide.Copy, {})
|
|
57
58
|
}
|
|
58
59
|
)
|
|
59
60
|
] }),
|