@iamfiro/design 0.0.0-stage → 0.3.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/AGENTS.md +82 -0
- package/README.md +15 -2
- package/agents/INDEX.md +157 -0
- package/agents/accordion/AGENTS.md +279 -0
- package/agents/action-bar/AGENTS.md +90 -0
- package/agents/alert/AGENTS.md +212 -0
- package/agents/alert-dialog/AGENTS.md +193 -0
- package/agents/app-shell/AGENTS.md +409 -0
- package/agents/area-chart/AGENTS.md +183 -0
- package/agents/aspect-ratio/AGENTS.md +143 -0
- package/agents/avatar/AGENTS.md +130 -0
- package/agents/badge/AGENTS.md +217 -0
- package/agents/bar-chart/AGENTS.md +386 -0
- package/agents/bar-list/AGENTS.md +223 -0
- package/agents/brand-icon/AGENTS.md +82 -0
- package/agents/breadcrumb/AGENTS.md +133 -0
- package/agents/button/AGENTS.md +195 -0
- package/agents/card/AGENTS.md +141 -0
- package/agents/card-frame/AGENTS.md +227 -0
- package/agents/chat-bubble/AGENTS.md +266 -0
- package/agents/chat-composer/AGENTS.md +251 -0
- package/agents/checkbox/AGENTS.md +113 -0
- package/agents/code-block/AGENTS.md +144 -0
- package/agents/color-dot/AGENTS.md +120 -0
- package/agents/color-picker/AGENTS.md +224 -0
- package/agents/colors/AGENTS.md +168 -0
- package/agents/combobox/AGENTS.md +218 -0
- package/agents/command-menu/AGENTS.md +169 -0
- package/agents/comment/AGENTS.md +206 -0
- package/agents/context-menu/AGENTS.md +303 -0
- package/agents/copy-button/AGENTS.md +84 -0
- package/agents/count-badge/AGENTS.md +115 -0
- package/agents/countdown/AGENTS.md +101 -0
- package/agents/data-grid/AGENTS.md +460 -0
- package/agents/date-picker/AGENTS.md +197 -0
- package/agents/delta/AGENTS.md +114 -0
- package/agents/description-list/AGENTS.md +251 -0
- package/agents/dialog/AGENTS.md +391 -0
- package/agents/drawer/AGENTS.md +471 -0
- package/agents/dropdown-menu/AGENTS.md +322 -0
- package/agents/dropzone/AGENTS.md +116 -0
- package/agents/elapsed/AGENTS.md +160 -0
- package/agents/empty-state/AGENTS.md +203 -0
- package/agents/file-chip/AGENTS.md +79 -0
- package/agents/file-icon/AGENTS.md +66 -0
- package/agents/file-upload/AGENTS.md +168 -0
- package/agents/filter-chips/AGENTS.md +167 -0
- package/agents/flag/AGENTS.md +67 -0
- package/agents/funnel-chart/AGENTS.md +131 -0
- package/agents/highlight/AGENTS.md +119 -0
- package/agents/hover-card/AGENTS.md +271 -0
- package/agents/icon-stack/AGENTS.md +120 -0
- package/agents/icon-tile/AGENTS.md +94 -0
- package/agents/inline-diff/AGENTS.md +211 -0
- package/agents/input/AGENTS.md +261 -0
- package/agents/kanban/AGENTS.md +352 -0
- package/agents/kbd/AGENTS.md +160 -0
- package/agents/layout/AGENTS.md +351 -0
- package/agents/line-chart/AGENTS.md +393 -0
- package/agents/link/AGENTS.md +53 -0
- package/agents/list/AGENTS.md +392 -0
- package/agents/marker/AGENTS.md +142 -0
- package/agents/masked-text/AGENTS.md +127 -0
- package/agents/menubar/AGENTS.md +276 -0
- package/agents/multi-select/AGENTS.md +159 -0
- package/agents/navigation-menu/AGENTS.md +315 -0
- package/agents/notice-stack/AGENTS.md +101 -0
- package/agents/number-stepper/AGENTS.md +96 -0
- package/agents/otp-input/AGENTS.md +162 -0
- package/agents/pagination/AGENTS.md +189 -0
- package/agents/phone-input/AGENTS.md +131 -0
- package/agents/pie-chart/AGENTS.md +243 -0
- package/agents/popover/AGENTS.md +190 -0
- package/agents/progress/AGENTS.md +273 -0
- package/agents/progress-tracker/AGENTS.md +305 -0
- package/agents/rating/AGENTS.md +165 -0
- package/agents/relative-time/AGENTS.md +103 -0
- package/agents/resizable/AGENTS.md +390 -0
- package/agents/scaled-preview/AGENTS.md +111 -0
- package/agents/scatter-chart/AGENTS.md +160 -0
- package/agents/scroll-area/AGENTS.md +271 -0
- package/agents/search-input/AGENTS.md +105 -0
- package/agents/segmented-control/AGENTS.md +153 -0
- package/agents/select/AGENTS.md +159 -0
- package/agents/selector-button/AGENTS.md +122 -0
- package/agents/sidebar/AGENTS.md +201 -0
- package/agents/skeleton/AGENTS.md +166 -0
- package/agents/slider/AGENTS.md +181 -0
- package/agents/social-login-button/AGENTS.md +156 -0
- package/agents/spark-chart/AGENTS.md +257 -0
- package/agents/sparkbar/AGENTS.md +92 -0
- package/agents/spinner/AGENTS.md +123 -0
- package/agents/split-view/AGENTS.md +290 -0
- package/agents/stat/AGENTS.md +138 -0
- package/agents/status-icon/AGENTS.md +243 -0
- package/agents/step-list/AGENTS.md +313 -0
- package/agents/table/AGENTS.md +286 -0
- package/agents/tabs/AGENTS.md +305 -0
- package/agents/tag-input/AGENTS.md +246 -0
- package/agents/time-picker/AGENTS.md +228 -0
- package/agents/timeline/AGENTS.md +1018 -0
- package/agents/toast/AGENTS.md +266 -0
- package/agents/toggle-group/AGENTS.md +216 -0
- package/agents/toolbar/AGENTS.md +277 -0
- package/agents/tooltip/AGENTS.md +154 -0
- package/agents/tracker/AGENTS.md +158 -0
- package/agents/tree-diagram/AGENTS.md +260 -0
- package/agents/tree-view/AGENTS.md +329 -0
- package/agents/typography/AGENTS.md +396 -0
- package/lib/components/Accordion/Accordion2.js +135 -0
- package/lib/components/ActionBar/ActionBar2.js +65 -0
- package/lib/components/Alert/Alert2.js +131 -0
- package/lib/components/AppShell/AppShell2.js +94 -0
- package/lib/components/AreaChart/AreaChart.js +59 -0
- package/lib/components/BarChart/BarChart2.js +243 -0
- package/lib/components/BarList/BarList2.js +172 -0
- package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
- package/lib/components/Calendar/Calendar2.js +309 -0
- package/lib/components/Calendar/DatePicker2.js +229 -0
- package/lib/components/Calendar/date.js +121 -0
- package/lib/components/Card/Card2.js +104 -0
- package/lib/components/CardFrame/CardFrame2.js +72 -0
- package/lib/components/Chart/ChartParts.js +150 -0
- package/lib/components/Chart/chart2.js +96 -0
- package/lib/components/Chart/useChartInteraction.js +94 -0
- package/lib/components/ChatBubble/ChatBubble2.js +174 -0
- package/lib/components/ChatBubble/formatChatTime.js +53 -0
- package/lib/components/ChatComposer/ChatComposer2.js +153 -0
- package/lib/components/CodeBlock/CodeBlock2.js +93 -0
- package/lib/components/CodeBlock/highlight.js +114 -0
- package/lib/components/ColorPicker/ColorPicker2.js +610 -0
- package/lib/components/ColorPicker/color.js +180 -0
- package/lib/components/ColorPicker/presets.js +75 -0
- package/lib/components/Combobox/Combobox2.js +229 -0
- package/lib/components/CommandMenu/CommandMenu.js +267 -0
- package/lib/components/Comment/Comment2.js +134 -0
- package/lib/components/ContextMenu/ContextMenu2.js +168 -0
- package/lib/components/DataGrid/DataGrid2.js +1996 -0
- package/lib/components/DataGrid/GridPopover.js +154 -0
- package/lib/components/DataGrid/anchor.js +50 -0
- package/lib/components/DataGrid/model.js +558 -0
- package/lib/components/DataGrid/panels.js +703 -0
- package/lib/components/DataGrid/typeMeta.js +76 -0
- package/lib/components/DataGrid/types.js +54 -0
- package/lib/components/DescriptionList/DescriptionList2.js +180 -0
- package/lib/components/Dialog/AlertDialog.js +118 -0
- package/lib/components/Dialog/Dialog2.js +109 -0
- package/lib/components/Dialog/modal.js +92 -0
- package/lib/components/Drawer/Drawer2.js +244 -0
- package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
- package/lib/components/DropdownMenu/menuCore.js +63 -0
- package/lib/components/Dropzone/Dropzone2.js +144 -0
- package/lib/components/EmptyState/EmptyState2.js +72 -0
- package/lib/components/FileChip/FileChip2.js +118 -0
- package/lib/components/FileUpload/FileUpload.js +258 -0
- package/lib/components/FilterChips/FilterChips2.js +101 -0
- package/lib/components/FunnelChart/FunnelChart2.js +283 -0
- package/lib/components/FunnelChart/funnel.js +69 -0
- package/lib/components/Highlight/Highlight2.js +100 -0
- package/lib/components/HoverCard/HoverCard.js +134 -0
- package/lib/components/InlineDiff/InlineDiff2.js +215 -0
- package/lib/components/InlineDiff/diff.js +126 -0
- package/lib/components/InlineDiff/useDiffReview.js +109 -0
- package/lib/components/Kanban/Kanban2.js +691 -0
- package/lib/components/Kanban/KanbanCard.js +159 -0
- package/lib/components/Kanban/move.js +69 -0
- package/lib/components/LineChart/LineChart2.js +342 -0
- package/lib/components/List/List2.js +133 -0
- package/lib/components/Listbox/Listbox2.js +163 -0
- package/lib/components/Marker/Marker2.js +82 -0
- package/lib/components/Menubar/Menubar2.js +223 -0
- package/lib/components/MultiSelect/MultiSelect2.js +204 -0
- package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
- package/lib/components/NoticeStack/NoticeStack2.js +178 -0
- package/lib/components/NumberStepper/NumberStepper2.js +129 -0
- package/lib/components/OtpInput/OtpInput2.js +122 -0
- package/lib/components/Pagination/Pagination2.js +210 -0
- package/lib/components/Pagination/paginationRange.js +53 -0
- package/lib/components/PhoneInput/PhoneInput.js +175 -0
- package/lib/components/PieChart/PieChart2.js +246 -0
- package/lib/components/PieChart/arc.js +66 -0
- package/lib/components/PieChart/useArcTween.js +94 -0
- package/lib/components/Popover/Popover2.js +112 -0
- package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
- package/lib/components/Rating/Rating2.js +186 -0
- package/lib/components/Resizable/Resizable2.js +236 -0
- package/lib/components/Resizable/layout.js +115 -0
- package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
- package/lib/components/ScatterChart/ScatterChart2.js +356 -0
- package/lib/components/ScatterChart/scatter.js +83 -0
- package/lib/components/ScrollArea/ScrollArea2.js +218 -0
- package/lib/components/Select/Select2.js +153 -0
- package/lib/components/Sidebar/Sidebar2.js +127 -0
- package/lib/components/Skeleton/Skeleton2.js +91 -0
- package/lib/components/Slider/Slider2.js +142 -0
- package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
- package/lib/components/SparkChart/SparkChart2.js +217 -0
- package/lib/components/SparkChart/spark.js +76 -0
- package/lib/components/Sparkbar/Sparkbar2.js +111 -0
- package/lib/components/SplitView/SplitView2.js +95 -0
- package/lib/components/Stat/Stat2.js +164 -0
- package/lib/components/StepList/StepList2.js +131 -0
- package/lib/components/Table/Table2.js +104 -0
- package/lib/components/Tabs/Tabs2.js +131 -0
- package/lib/components/TagInput/TagInput2.js +360 -0
- package/lib/components/TimePicker/TimePicker2.js +388 -0
- package/lib/components/TimePicker/time.js +83 -0
- package/lib/components/Timeline/Timeline2.js +369 -0
- package/lib/components/Timeline/scale.js +83 -0
- package/lib/components/Toast/Toaster.js +212 -0
- package/lib/components/Toast/store.js +129 -0
- package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
- package/lib/components/Toolbar/Toolbar2.js +281 -0
- package/lib/components/Tracker/Tracker2.js +172 -0
- package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
- package/lib/components/TreeView/TreeView2.js +284 -0
- package/lib/hooks/timing.js +55 -0
- package/lib/hooks/useControllableState.js +49 -0
- package/lib/hooks/useCountdown.js +80 -0
- package/lib/hooks/useDigitInput.js +105 -0
- package/lib/hooks/useDismiss.js +71 -0
- package/lib/hooks/useElapsed.js +83 -0
- package/lib/hooks/useFloating.js +70 -0
- package/lib/hooks/useFocusTrap.js +61 -0
- package/lib/hooks/usePresence.js +60 -0
- package/lib/hooks/usePressToOpen.js +69 -0
- package/lib/hooks/useScrollLock.js +70 -0
- package/lib/hooks/useSelection.js +68 -0
- package/lib/index.js +178 -0
- package/lib/primitives/AspectRatio2.js +80 -0
- package/lib/primitives/BrandIcon.js +245 -0
- package/lib/primitives/ColorDot2.js +70 -0
- package/lib/primitives/CopyButton2.js +85 -0
- package/lib/primitives/CountBadge2.js +78 -0
- package/lib/primitives/Countdown2.js +65 -0
- package/lib/primitives/Delta2.js +67 -0
- package/lib/primitives/Elapsed.js +62 -0
- package/lib/primitives/FileIcon2.js +125 -0
- package/lib/primitives/Flag2.js +263 -0
- package/lib/primitives/IconStack2.js +85 -0
- package/lib/primitives/IconTile2.js +68 -0
- package/lib/primitives/Kbd2.js +88 -0
- package/lib/primitives/Layout2.js +118 -0
- package/lib/primitives/Link2.js +53 -0
- package/lib/primitives/MaskedText2.js +120 -0
- package/lib/primitives/Progress2.js +137 -0
- package/lib/primitives/RelativeTime.js +84 -0
- package/lib/primitives/SearchInput2.js +84 -0
- package/lib/primitives/SelectorButton2.js +97 -0
- package/lib/primitives/Spinner2.js +98 -0
- package/lib/primitives/StatusIcon2.js +126 -0
- package/lib/primitives/Swatch2.js +79 -0
- package/lib/primitives/Tooltip2.js +132 -0
- package/lib/primitives/Typography2.js +97 -0
- package/lib/primitives/formatCountdown.js +51 -0
- package/lib/primitives/formatElapsed.js +66 -0
- package/lib/primitives/formatRelativeTime.js +64 -0
- package/lib/primitives/hotkey.js +94 -0
- package/lib/primitives/index.js +352 -0
- package/lib/primitives/maskValue.js +65 -0
- package/lib/style.css +2 -0
- package/lib/types/components/Accordion/Accordion.d.ts +57 -0
- package/lib/types/components/ActionBar/ActionBar.d.ts +24 -0
- package/lib/types/components/Alert/Alert.d.ts +36 -0
- package/lib/types/components/AppShell/AppShell.d.ts +38 -0
- package/lib/types/components/AreaChart/AreaChart.d.ts +17 -0
- package/lib/types/components/BarChart/BarChart.d.ts +57 -0
- package/lib/types/components/BarList/BarList.d.ts +56 -0
- package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +15 -0
- package/lib/types/components/Calendar/Calendar.d.ts +34 -0
- package/lib/types/components/Calendar/DatePicker.d.ts +45 -0
- package/lib/types/components/Calendar/date.d.ts +32 -0
- package/lib/types/components/Card/Card.d.ts +64 -0
- package/lib/types/components/CardFrame/CardFrame.d.ts +15 -0
- package/lib/types/components/Chart/ChartParts.d.ts +38 -0
- package/lib/types/components/Chart/chart.d.ts +46 -0
- package/lib/types/components/Chart/useChartInteraction.d.ts +39 -0
- package/lib/types/components/ChatBubble/ChatBubble.d.ts +61 -0
- package/lib/types/components/ChatBubble/formatChatTime.d.ts +2 -0
- package/lib/types/components/ChatComposer/ChatComposer.d.ts +42 -0
- package/lib/types/components/CodeBlock/CodeBlock.d.ts +18 -0
- package/lib/types/components/CodeBlock/highlight.d.ts +10 -0
- package/lib/types/components/ColorPicker/ColorPicker.d.ts +61 -0
- package/lib/types/components/ColorPicker/color.d.ts +48 -0
- package/lib/types/components/ColorPicker/presets.d.ts +7 -0
- package/lib/types/components/Combobox/Combobox.d.ts +48 -0
- package/lib/types/components/CommandMenu/CommandMenu.d.ts +51 -0
- package/lib/types/components/Comment/Comment.d.ts +45 -0
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +40 -0
- package/lib/types/components/DataGrid/DataGrid.d.ts +43 -0
- package/lib/types/components/DataGrid/GridPopover.d.ts +43 -0
- package/lib/types/components/DataGrid/anchor.d.ts +5 -0
- package/lib/types/components/DataGrid/model.d.ts +61 -0
- package/lib/types/components/DataGrid/panels.d.ts +63 -0
- package/lib/types/components/DataGrid/typeMeta.d.ts +6 -0
- package/lib/types/components/DataGrid/types.d.ts +77 -0
- package/lib/types/components/DescriptionList/DescriptionList.d.ts +77 -0
- package/lib/types/components/Dialog/AlertDialog.d.ts +26 -0
- package/lib/types/components/Dialog/Dialog.d.ts +42 -0
- package/lib/types/components/Dialog/modal.d.ts +38 -0
- package/lib/types/components/Drawer/Drawer.d.ts +62 -0
- package/lib/types/components/DropdownMenu/DropdownMenu.d.ts +97 -0
- package/lib/types/components/DropdownMenu/menuCore.d.ts +23 -0
- package/lib/types/components/Dropzone/Dropzone.d.ts +30 -0
- package/lib/types/components/EmptyState/EmptyState.d.ts +26 -0
- package/lib/types/components/FileChip/FileChip.d.ts +32 -0
- package/lib/types/components/FileUpload/FileUpload.d.ts +52 -0
- package/lib/types/components/FilterChips/FilterChips.d.ts +37 -0
- package/lib/types/components/FunnelChart/FunnelChart.d.ts +38 -0
- package/lib/types/components/FunnelChart/funnel.d.ts +25 -0
- package/lib/types/components/Highlight/Highlight.d.ts +35 -0
- package/lib/types/components/HoverCard/HoverCard.d.ts +47 -0
- package/lib/types/components/InlineDiff/InlineDiff.d.ts +36 -0
- package/lib/types/components/InlineDiff/diff.d.ts +42 -0
- package/lib/types/components/InlineDiff/useDiffReview.d.ts +57 -0
- package/lib/types/components/Kanban/Kanban.d.ts +64 -0
- package/lib/types/components/Kanban/KanbanCard.d.ts +35 -0
- package/lib/types/components/Kanban/move.d.ts +25 -0
- package/lib/types/components/LineChart/LineChart.d.ts +85 -0
- package/lib/types/components/List/List.d.ts +62 -0
- package/lib/types/components/Listbox/Listbox.d.ts +60 -0
- package/lib/types/components/Marker/Marker.d.ts +28 -0
- package/lib/types/components/Menubar/Menubar.d.ts +50 -0
- package/lib/types/components/MultiSelect/MultiSelect.d.ts +38 -0
- package/lib/types/components/NavigationMenu/NavigationMenu.d.ts +101 -0
- package/lib/types/components/NoticeStack/NoticeStack.d.ts +41 -0
- package/lib/types/components/NumberStepper/NumberStepper.d.ts +32 -0
- package/lib/types/components/OtpInput/OtpInput.d.ts +31 -0
- package/lib/types/components/Pagination/Pagination.d.ts +54 -0
- package/lib/types/components/Pagination/paginationRange.d.ts +7 -0
- package/lib/types/components/PhoneInput/PhoneInput.d.ts +47 -0
- package/lib/types/components/PieChart/PieChart.d.ts +67 -0
- package/lib/types/components/PieChart/arc.d.ts +26 -0
- package/lib/types/components/PieChart/useArcTween.d.ts +15 -0
- package/lib/types/components/Popover/Popover.d.ts +28 -0
- package/lib/types/components/ProgressTracker/ProgressTracker.d.ts +64 -0
- package/lib/types/components/Rating/Rating.d.ts +42 -0
- package/lib/types/components/Resizable/Resizable.d.ts +50 -0
- package/lib/types/components/Resizable/layout.d.ts +31 -0
- package/lib/types/components/ScaledPreview/ScaledPreview.d.ts +38 -0
- package/lib/types/components/ScatterChart/ScatterChart.d.ts +81 -0
- package/lib/types/components/ScatterChart/scatter.d.ts +14 -0
- package/lib/types/components/ScrollArea/ScrollArea.d.ts +34 -0
- package/lib/types/components/Select/Select.d.ts +39 -0
- package/lib/types/components/Sidebar/Sidebar.d.ts +39 -0
- package/lib/types/components/Skeleton/Skeleton.d.ts +47 -0
- package/lib/types/components/Slider/Slider.d.ts +36 -0
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
- package/lib/types/components/SparkChart/SparkChart.d.ts +55 -0
- package/lib/types/components/SparkChart/spark.d.ts +16 -0
- package/lib/types/components/Sparkbar/Sparkbar.d.ts +39 -0
- package/lib/types/components/SplitView/SplitView.d.ts +31 -0
- package/lib/types/components/Stat/Stat.d.ts +58 -0
- package/lib/types/components/StepList/StepList.d.ts +61 -0
- package/lib/types/components/Table/Table.d.ts +39 -0
- package/lib/types/components/Tabs/Tabs.d.ts +47 -0
- package/lib/types/components/TagInput/TagInput.d.ts +46 -0
- package/lib/types/components/TimePicker/TimePicker.d.ts +43 -0
- package/lib/types/components/TimePicker/time.d.ts +15 -0
- package/lib/types/components/Timeline/Timeline.d.ts +154 -0
- package/lib/types/components/Timeline/scale.d.ts +22 -0
- package/lib/types/components/Toast/Toaster.d.ts +19 -0
- package/lib/types/components/Toast/index.d.ts +4 -0
- package/lib/types/components/Toast/store.d.ts +75 -0
- package/lib/types/components/ToggleGroup/ToggleGroup.d.ts +28 -0
- package/lib/types/components/Toolbar/Toolbar.d.ts +70 -0
- package/lib/types/components/Tracker/Tracker.d.ts +43 -0
- package/lib/types/components/TreeDiagram/TreeDiagram.d.ts +68 -0
- package/lib/types/components/TreeView/TreeView.d.ts +107 -0
- package/lib/types/components/index.d.ts +188 -0
- package/lib/types/hooks/index.d.ts +17 -0
- package/lib/types/hooks/timing.d.ts +29 -0
- package/lib/types/hooks/useControllableState.d.ts +5 -0
- package/lib/types/hooks/useCountdown.d.ts +19 -0
- package/lib/types/hooks/useDigitInput.d.ts +24 -0
- package/lib/types/hooks/useDismiss.d.ts +3 -0
- package/lib/types/hooks/useElapsed.d.ts +28 -0
- package/lib/types/hooks/useFloating.d.ts +21 -0
- package/lib/types/hooks/useFocusTrap.d.ts +7 -0
- package/lib/types/hooks/usePresence.d.ts +8 -0
- package/lib/types/hooks/usePressToOpen.d.ts +20 -0
- package/lib/types/hooks/useScrollLock.d.ts +2 -0
- package/lib/types/hooks/useSelection.d.ts +29 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/primitives/AspectRatio.d.ts +14 -0
- package/lib/types/primitives/BrandIcon.d.ts +12 -0
- package/lib/types/primitives/ColorDot.d.ts +20 -0
- package/lib/types/primitives/CopyButton.d.ts +12 -0
- package/lib/types/primitives/CountBadge.d.ts +28 -0
- package/lib/types/primitives/Countdown.d.ts +21 -0
- package/lib/types/primitives/Delta.d.ts +33 -0
- package/lib/types/primitives/Elapsed.d.ts +23 -0
- package/lib/types/primitives/FileIcon.d.ts +17 -0
- package/lib/types/primitives/Flag.d.ts +15 -0
- package/lib/types/primitives/IconStack.d.ts +27 -0
- package/lib/types/primitives/IconTile.d.ts +24 -0
- package/lib/types/primitives/Kbd.d.ts +19 -0
- package/lib/types/primitives/Layout.d.ts +64 -0
- package/lib/types/primitives/Link.d.ts +12 -0
- package/lib/types/primitives/MaskedText.d.ts +28 -0
- package/lib/types/primitives/Progress.d.ts +52 -0
- package/lib/types/primitives/RelativeTime.d.ts +22 -0
- package/lib/types/primitives/SearchInput.d.ts +8 -0
- package/lib/types/primitives/SelectorButton.d.ts +23 -0
- package/lib/types/primitives/Spinner.d.ts +15 -0
- package/lib/types/primitives/StatusIcon.d.ts +40 -0
- package/lib/types/primitives/Swatch.d.ts +11 -0
- package/lib/types/primitives/Tooltip.d.ts +17 -0
- package/lib/types/primitives/Typography.d.ts +48 -0
- package/lib/types/primitives/formatCountdown.d.ts +2 -0
- package/lib/types/primitives/formatElapsed.d.ts +8 -0
- package/lib/types/primitives/formatRelativeTime.d.ts +16 -0
- package/lib/types/primitives/hotkey.d.ts +10 -0
- package/lib/types/primitives/index.d.ts +188 -0
- package/lib/types/primitives/maskValue.d.ts +24 -0
- package/package.json +55 -4
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = n;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let r = n, i = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (parseInt(r(275)) / 1 + parseInt(r(288)) / 2 * (parseInt(r(286)) / 3) + parseInt(r(274)) / 4 + -parseInt(r(271)) / 5 + parseInt(r(294)) / 6 + -parseInt(r(296)) / 7 + -parseInt(r(278)) / 8 * (parseInt(r(293)) / 9) == t) break;
|
|
7
|
+
i.push(i.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
i.push(i.shift());
|
|
10
|
+
}
|
|
11
|
+
})(t, 793408);
|
|
12
|
+
function t() {
|
|
13
|
+
let e = /* @__PURE__ */ "Aw5SAw5L.zhmTywXLCNrFx2fJDgLVBNm.zhmTyMfUBMvY.C2v0vgLTzw91Da.zhmTywXLCNrFx2nSB3nL.zhmTywXLCNrFx2nVBNrLBNq.mtmYmtu4mxz0s2Putq.zhmTyMfUBMvYls1MBhvZAa.nNbmALHrAq.7jwm66A8ioUlQ+Q4Sa.zhmTywXLCNqTlq.Aw5MBW.zhmTywXLCNrFx2jVzhK.mJy0otyYn0jKtNnuDW.nZeXotq5mM5tr21pwa.C3rHy2TLza.mJC0otmYmhnvAgrOtG.67cW64siioUlQ+Q4Sa.D2fYBMLUzW.C3rHDhvZ.zgL2.mZe5nZq5nuD2vfLUDW.C3bHBG.zhmTywXLCNrFx3rPDgXL.mZG5mtG0D0nmuuvo.mZK3odiWCwLRCLLI.ywXLCNq.zhmTyMfUBMvYx19JBg9Zzq.mZjquw5eB2G.z2HVC3q".split(".");
|
|
14
|
+
return t = function() {
|
|
15
|
+
return e;
|
|
16
|
+
}, t();
|
|
17
|
+
}
|
|
18
|
+
function n(e, r) {
|
|
19
|
+
e -= 268;
|
|
20
|
+
let i = t(), a = i[e];
|
|
21
|
+
n.oiQEtD === void 0 && (n.iWXCZG = function(e) {
|
|
22
|
+
let t = "", n = "";
|
|
23
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
24
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
25
|
+
return decodeURIComponent(n);
|
|
26
|
+
}, n.GbqVOg = {}, n.oiQEtD = !0);
|
|
27
|
+
let o = i[0];
|
|
28
|
+
n.SkuZIv !== o && (n.GbqVOg = {}, n.SkuZIv = o);
|
|
29
|
+
let s = n.GbqVOg[e];
|
|
30
|
+
return s === void 0 ? (a = n.iWXCZG(a), n.GbqVOg[e] = a) : a = s, a;
|
|
31
|
+
}
|
|
32
|
+
import { Button as r, cx as i } from "../../primitives/index.js";
|
|
33
|
+
/* empty css */
|
|
34
|
+
import { useState as a } from "react";
|
|
35
|
+
import { AlertTriangle as o, CheckCircle2 as s, Info as c, X as l, XCircle as u } from "lucide-react";
|
|
36
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
37
|
+
var p = {
|
|
38
|
+
neutral: d(c, {}),
|
|
39
|
+
info: d(c, {}),
|
|
40
|
+
success: d(s, {}),
|
|
41
|
+
warning: d(o, {}),
|
|
42
|
+
danger: d(u, {})
|
|
43
|
+
}, m = 260;
|
|
44
|
+
function h({ tone: t = e(291), title: o, children: s, icon: c, actions: u, onClose: h, layout: g = e(295), className: _ }) {
|
|
45
|
+
let v = e, [y, b] = a(!1);
|
|
46
|
+
return d(v(270), {
|
|
47
|
+
className: "ds-alert-wrap",
|
|
48
|
+
"data-leaving": y || void 0,
|
|
49
|
+
children: f(v(270), {
|
|
50
|
+
role: t === "danger" || t === v(268) ? v(276) : v(269),
|
|
51
|
+
className: i("ds-alert", v(290) + t, v(290) + g, _),
|
|
52
|
+
children: [
|
|
53
|
+
c !== !1 && d("span", {
|
|
54
|
+
className: "ds-alert__icon",
|
|
55
|
+
children: c ?? p[t]
|
|
56
|
+
}),
|
|
57
|
+
f(v(270), {
|
|
58
|
+
className: v(285),
|
|
59
|
+
children: [
|
|
60
|
+
o && d(v(270), {
|
|
61
|
+
className: v(273),
|
|
62
|
+
children: o
|
|
63
|
+
}),
|
|
64
|
+
s && d(v(270), {
|
|
65
|
+
className: v(292),
|
|
66
|
+
children: s
|
|
67
|
+
}),
|
|
68
|
+
u && g === "stacked" && d(v(270), {
|
|
69
|
+
className: v(281),
|
|
70
|
+
children: u
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
u && g === v(280) && d(v(270), {
|
|
75
|
+
className: v(281),
|
|
76
|
+
children: u
|
|
77
|
+
}),
|
|
78
|
+
h && d(r, {
|
|
79
|
+
iconOnly: !0,
|
|
80
|
+
variant: v(279),
|
|
81
|
+
size: "sm",
|
|
82
|
+
icon: d(l, {}),
|
|
83
|
+
"aria-label": v(289),
|
|
84
|
+
className: v(284),
|
|
85
|
+
onClick: () => {
|
|
86
|
+
let e = n;
|
|
87
|
+
b(!0), window[e(283)](() => h?.(), m);
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function g({ tone: t = e(291), children: o, action: s, onClose: c, icon: u, flush: h, className: g }) {
|
|
95
|
+
let _ = e, [v, y] = a(!1);
|
|
96
|
+
return d("div", {
|
|
97
|
+
className: "ds-alert-wrap",
|
|
98
|
+
"data-leaving": v || void 0,
|
|
99
|
+
children: f(_(270), {
|
|
100
|
+
role: "status",
|
|
101
|
+
className: i(_(282), _(290) + t, h && _(287), g),
|
|
102
|
+
children: [
|
|
103
|
+
u !== !1 && d(_(272), {
|
|
104
|
+
className: "ds-alert__icon",
|
|
105
|
+
children: u ?? p[t]
|
|
106
|
+
}),
|
|
107
|
+
d(_(272), {
|
|
108
|
+
className: "ds-banner__text",
|
|
109
|
+
children: o
|
|
110
|
+
}),
|
|
111
|
+
s && d(_(272), {
|
|
112
|
+
className: "ds-banner__action",
|
|
113
|
+
children: s
|
|
114
|
+
}),
|
|
115
|
+
c && d(r, {
|
|
116
|
+
iconOnly: !0,
|
|
117
|
+
variant: _(279),
|
|
118
|
+
size: "sm",
|
|
119
|
+
icon: d(l, {}),
|
|
120
|
+
"aria-label": _(297),
|
|
121
|
+
className: _(277),
|
|
122
|
+
onClick: () => {
|
|
123
|
+
let e = n;
|
|
124
|
+
y(!0), window[e(283)](() => c?.(), m);
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export { h as Alert, g as Banner };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = s;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = s, r = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (-parseInt(n(495)) / 1 * (parseInt(n(488)) / 2) + parseInt(n(493)) / 3 + -parseInt(n(484)) / 4 + parseInt(n(466)) / 5 + parseInt(n(479)) / 6 + parseInt(n(465)) / 7 + -parseInt(n(485)) / 8 == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
r.push(r.shift());
|
|
10
|
+
}
|
|
11
|
+
})(i, 708015);
|
|
12
|
+
import { cx as t } from "../../primitives/index.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import { useEffect as n, useRef as r } from "react";
|
|
15
|
+
function i() {
|
|
16
|
+
let e = /* @__PURE__ */ "ndy3mdmZmMzZC091DG.oti2odG4r1fADNv1.zhmTC2HLBgXFx3nPzgvIyxi.A2v5.mtKYrvznExby.zhmTC2HLBgXFx21HAw4.zgL2.zhmTC2nYB2XS.Aw5Zzxq.ndiXotaZmKz3qxb5Dq.zhmTC2HLBgXFx2HLywrLCG.odq1nNDvEKjlEa.yxnPzgu.A2v5zg93BG.nJaYmtqWCu1mCvf3.mZe2mZG4nxfgyNH1Cq.zhmTC2HLBgXFx3nPzgvIyxiTAw5Uzxi.CgXHAw4.rxnJyxbL.ywrKrxzLBNrmAxn0zw5LCG.zhmTC2HLBgXFx2fZAwrL.zhmTC2HLBgXFx3nJCMLT.zhmTC2HLBgXFx2fZAwrLlwLUBMvYigrZlxnJCM9SBa.BwfPBG.zhmTC2HLBgW.C2nYB2XSvg8.AgvHzgvY.zhmTC2HLBgWTlq.nda2odu2nfHiBgzKtG.y3vYCMvUDa.zhmTC2HLBgWTlwfZAwrL.zhmTC2HLBgXFx2nVBNrLBNq.CMvTB3zLrxzLBNrmAxn0zw5LCG".split(".");
|
|
17
|
+
return i = function() {
|
|
18
|
+
return e;
|
|
19
|
+
}, i();
|
|
20
|
+
}
|
|
21
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
22
|
+
function s(e, t) {
|
|
23
|
+
e -= 464;
|
|
24
|
+
let n = i(), r = n[e];
|
|
25
|
+
s.vLQamU === void 0 && (s.EeuCmu = function(e) {
|
|
26
|
+
let t = "", n = "";
|
|
27
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
28
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
29
|
+
return decodeURIComponent(n);
|
|
30
|
+
}, s.rKRubs = {}, s.vLQamU = !0);
|
|
31
|
+
let a = n[0];
|
|
32
|
+
s.tYMwCH !== a && (s.rKRubs = {}, s.tYMwCH = a);
|
|
33
|
+
let o = s.rKRubs[e];
|
|
34
|
+
return o === void 0 ? (r = s.EeuCmu(r), s.rKRubs[e] = r) : r = o, r;
|
|
35
|
+
}
|
|
36
|
+
function c({ sidebar: i, header: c, children: l, variant: u = e(468), sidebarWidth: d = 264, sidebarCollapsed: f = !1, mobileSidebarOpen: p = !1, onMobileSidebarOpenChange: m, aside: h, asideWidth: g = 320, asideOpen: _ = !0, asideLabel: v = "패널", scrollKey: y, className: b }) {
|
|
37
|
+
let x = e, S = r(null);
|
|
38
|
+
n(() => {
|
|
39
|
+
let e = s;
|
|
40
|
+
if (!p) return;
|
|
41
|
+
let t = (t) => t[e(487)] === e(469) && m?.(!1);
|
|
42
|
+
return document[e(470)](e(464), t), () => document[e(483)](e(464), t);
|
|
43
|
+
}, [p, m]);
|
|
44
|
+
let C = r(!0);
|
|
45
|
+
return n(() => {
|
|
46
|
+
let e = s;
|
|
47
|
+
C[e(480)] ? C[e(480)] = !1 : u === e(492) ? S[e(480)]?.[e(476)]({ top: 0 }) : window.scrollTo({ top: 0 });
|
|
48
|
+
}, [y, u]), o(x(490), {
|
|
49
|
+
className: t(x(475), x(478) + u, h != null && x(481), b),
|
|
50
|
+
"data-drawer-open": p || void 0,
|
|
51
|
+
"data-sidebar-collapsed": f || void 0,
|
|
52
|
+
"data-aside-open": h != null && _ || void 0,
|
|
53
|
+
style: {
|
|
54
|
+
"--_sidebar": d + "px",
|
|
55
|
+
"--_aside": g + "px"
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
a(x(490), {
|
|
59
|
+
className: x(486),
|
|
60
|
+
inert: f && !p ? !0 : void 0,
|
|
61
|
+
children: a("div", {
|
|
62
|
+
className: x(467),
|
|
63
|
+
children: i
|
|
64
|
+
})
|
|
65
|
+
}),
|
|
66
|
+
a(x(490), {
|
|
67
|
+
className: x(472),
|
|
68
|
+
"aria-hidden": !0,
|
|
69
|
+
onClick: () => m?.(!1)
|
|
70
|
+
}),
|
|
71
|
+
o(x(490), {
|
|
72
|
+
ref: S,
|
|
73
|
+
className: t(x(489), u === "inset" && x(491)),
|
|
74
|
+
children: [c && a(x(477), {
|
|
75
|
+
className: x(494),
|
|
76
|
+
children: c
|
|
77
|
+
}), a(x(474), {
|
|
78
|
+
className: x(482),
|
|
79
|
+
children: l
|
|
80
|
+
})]
|
|
81
|
+
}),
|
|
82
|
+
h != null && a(x(496), {
|
|
83
|
+
className: x(471),
|
|
84
|
+
"aria-label": v,
|
|
85
|
+
inert: !_ || void 0,
|
|
86
|
+
children: a(x(490), {
|
|
87
|
+
className: x(473),
|
|
88
|
+
children: h
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export { c as AppShell };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var e = n;
|
|
3
|
+
function t() {
|
|
4
|
+
var e = [
|
|
5
|
+
"7jIb7jETioYWQo2kUa",
|
|
6
|
+
"ovjoC2jpCG",
|
|
7
|
+
"mwjQwg1WDq",
|
|
8
|
+
"zhmTyxjLys1JAgfYDa",
|
|
9
|
+
"ntGXode1wvbRD3bN",
|
|
10
|
+
"ntmYnZmZmg5cwxDVsq",
|
|
11
|
+
"z3jHzgLLBNq",
|
|
12
|
+
"mtCZmJm0z0XNsu5Z",
|
|
13
|
+
"nJL6z3r2B1e",
|
|
14
|
+
"mJeYnJCWnK9vEgLMvq",
|
|
15
|
+
"zgvMyxvSDa",
|
|
16
|
+
"n2DkufHOAW",
|
|
17
|
+
"mZy4nJyWmeLSwgXgrW",
|
|
18
|
+
"mZa1nZjfwMTWBey",
|
|
19
|
+
"mZG1ndiYng5HDKHJzW"
|
|
20
|
+
];
|
|
21
|
+
return t = function() {
|
|
22
|
+
return e;
|
|
23
|
+
}, t();
|
|
24
|
+
}
|
|
25
|
+
(function(e, t) {
|
|
26
|
+
for (var r = n, i = e();;) try {
|
|
27
|
+
if (parseInt(r(181)) / 1 * (-parseInt(r(186)) / 2) + parseInt(r(187)) / 3 * (parseInt(r(192)) / 4) + parseInt(r(183)) / 5 + parseInt(r(188)) / 6 * (parseInt(r(190)) / 7) + parseInt(r(191)) / 8 * (-parseInt(r(180)) / 9) + parseInt(r(184)) / 10 + -parseInt(r(193)) / 11 == t) break;
|
|
28
|
+
i.push(i.shift());
|
|
29
|
+
} catch {
|
|
30
|
+
i.push(i.shift());
|
|
31
|
+
}
|
|
32
|
+
})(t, 281510);
|
|
33
|
+
function n(e, r) {
|
|
34
|
+
e -= 179;
|
|
35
|
+
var i = t(), a = i[e];
|
|
36
|
+
n.ODSfCG === void 0 && (n.teFgYs = function(e) {
|
|
37
|
+
for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
|
|
38
|
+
for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
|
|
39
|
+
return decodeURIComponent(r);
|
|
40
|
+
}, n.CCciKr = {}, n.ODSfCG = !0);
|
|
41
|
+
var o = i[0];
|
|
42
|
+
n.OATrmK !== o && (n.CCciKr = {}, n.OATrmK = o);
|
|
43
|
+
var s = n.CCciKr[e];
|
|
44
|
+
return s === void 0 ? (a = n.teFgYs(a), n.CCciKr[e] = a) : a = s, a;
|
|
45
|
+
}
|
|
46
|
+
import { cx as r } from "../../primitives/index.js";
|
|
47
|
+
import { LineChart as i } from "../LineChart/LineChart2.js";
|
|
48
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
49
|
+
function o({ type: t = "default", fill: n = e(185), "aria-label": o = e(179), className: s, ...c }) {
|
|
50
|
+
var l = e;
|
|
51
|
+
return a(i, {
|
|
52
|
+
...c,
|
|
53
|
+
area: n,
|
|
54
|
+
stack: t === l(189) ? void 0 : t,
|
|
55
|
+
"aria-label": o,
|
|
56
|
+
className: r(l(182), s)
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export { o as AreaChart };
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function e(t, n) {
|
|
3
|
+
t -= 138;
|
|
4
|
+
let r = s(), i = r[t];
|
|
5
|
+
e.Hzhiep === void 0 && (e.VOAHTh = function(e) {
|
|
6
|
+
let t = "", n = "";
|
|
7
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
8
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
9
|
+
return decodeURIComponent(n);
|
|
10
|
+
}, e.GRzzLK = {}, e.Hzhiep = !0);
|
|
11
|
+
let a = r[0];
|
|
12
|
+
e.vsKInx !== a && (e.GRzzLK = {}, e.vsKInx = a);
|
|
13
|
+
let o = e.GRzzLK[t];
|
|
14
|
+
return o === void 0 ? (i = e.VOAHTh(i), e.GRzzLK[t] = i) : i = o, i;
|
|
15
|
+
}
|
|
16
|
+
const t = e;
|
|
17
|
+
(function(t, n) {
|
|
18
|
+
let r = e, i = t();
|
|
19
|
+
for (;;) try {
|
|
20
|
+
if (parseInt(r(146)) / 1 + -parseInt(r(151)) / 2 + parseInt(r(200)) / 3 + -parseInt(r(174)) / 4 * (-parseInt(r(191)) / 5) + parseInt(r(168)) / 6 * (-parseInt(r(196)) / 7) + -parseInt(r(166)) / 8 + parseInt(r(177)) / 9 == n) break;
|
|
21
|
+
i.push(i.shift());
|
|
22
|
+
} catch {
|
|
23
|
+
i.push(i.shift());
|
|
24
|
+
}
|
|
25
|
+
})(s, 686856);
|
|
26
|
+
import { Stack as n } from "../../primitives/Layout2.js";
|
|
27
|
+
import { useControllableState as r } from "../../hooks/useControllableState.js";
|
|
28
|
+
import { cx as i } from "../../primitives/index.js";
|
|
29
|
+
import { ChartLegend as a, ChartTooltip as o } from "../Chart/ChartParts.js";
|
|
30
|
+
function s() {
|
|
31
|
+
let e = /* @__PURE__ */ "BgvMDa.zhmTy2HHCNrFx3bSB3q.C3zN.zhmTyMfYlwnOyxj0x19IyxjZ.odCZndKYohnIu2HkqW.zhmTyMfYlwnOyxj0x190AwnRCW.nNnRz2jsuq.lwXPDMu.BgfIzwW.C3bHBG.zhmTy2HHCNrFx3nY.Cgf0Aa.nJe2qwLsAeje.y2XVC2vK.zgL2.mta1nJu2mtnovMHMsxu.y2XPzw50wa.zhmTyMfYlwnOyxj0x190AwnR.66Ej64YaioYWQo2kUa.BwLU.zhmTy2HHCNrFx3rPCa.DMfSDwu.yNv0Dg9U.ChGP.CMvJDa.y29SB3i.zMXHDe1HCa.C29YDa.zhmTy2HHCNrFx2HPDa.otu4mhDLEKvLtq.zhmTy2HHCNrFx2f4AxmGzhmTyMfYlwnOyxj0x19SywjLBa.BwfW.C2vYAwvZ.D2LKDgG.mJu5mZiYmgzUuhfWsW.Dg90ywW.BgvUz3rO.zhmTyMfYlwnOyxj0x19Iyw5K.mtu2mdy3nwTRAwjyyq.CMvKDwnL.DhjHBNnSyxrLwcG.y3vYCMvUDfrHCMDLDa.Cg9SAxrL.zhmTy2HHCNrFx3n2zW.zMLSDgvY.DhjHBNnSyxrLka.Aw5JBhvKzxm.zM9VDgvY.zhmTyMfYlwnOyxj0x190AwnRlwXHyMvS.mta3odu2nu1TAe9isa.Bwf4.A2v5.BwLKzgXL.CMv2zxjZzq.mtGZnZi1ohzKrxjgDa.Dgv4Da.B25lzxLeB3DU.C29Tzq.ChGSia.CMLNAhq.z2v0qM91BMrPBMDdBgLLBNrszwn0.BgLUzq.ChjLDMvUDerLzMf1Bhq.B3bLBG.zhmTy2HHCNq".split(".");
|
|
32
|
+
return s = function() {
|
|
33
|
+
return e;
|
|
34
|
+
}, s();
|
|
35
|
+
}
|
|
36
|
+
import { axisGutter as c, barPath as ee, chartColor as l, formatCompact as u, formatNumber as te, labelStep as ne, niceTicks as d, numberAt as f } from "../Chart/chart2.js";
|
|
37
|
+
import { useChartInteraction as p } from "../Chart/useChartInteraction.js";
|
|
38
|
+
/* empty css */
|
|
39
|
+
import { useId as re, useMemo as ie, useState as ae } from "react";
|
|
40
|
+
import { Fragment as oe, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
41
|
+
var g = 8, se = 28, ce = 44, _ = 8, v = 3, le = 4;
|
|
42
|
+
function y({ data: e, xKey: s, series: y, height: b = 240, stacked: x, segmentGap: ue = 0, yTickCount: de = 3, yMax: fe, yTicks: S, yAxis: C = "left", formatValue: w = te, formatAxisValue: pe = u, formatX: T = (e) => String(e[s] ?? ""), formatTitle: me, xIcon: E, showTotal: he = x, totalPlacement: ge = t(144), tooltipLeading: _e, tooltipSort: ve = t(194), legend: ye = !0, activeIndex: be, defaultActiveIndex: xe, onActiveIndexChange: Se, selectable: Ce, selected: we, defaultSelected: D = null, onSelectedChange: O, "aria-label": Te = t(180), className: Ee, style: De }) {
|
|
43
|
+
let k = t, A = e[k(198)], { active: j, open: M, shown: N, settled: Oe, width: P, tipRef: ke, tipSize: Ae, hover: je, leave: Me, plotProps: Ne } = p({
|
|
44
|
+
count: A,
|
|
45
|
+
activeIndex: be,
|
|
46
|
+
defaultActiveIndex: xe,
|
|
47
|
+
onActiveIndexChange: Se
|
|
48
|
+
}), F = Ce ?? (we !== void 0 || D !== null || O !== void 0), [I, Pe] = r(we, D, O), L = F && I !== null && I < A ? I : null, [R, Fe] = ae(null), Ie = re(), z = ie(() => {
|
|
49
|
+
let t = k;
|
|
50
|
+
if (S?.[t(198)]) return S;
|
|
51
|
+
let n = e[t(193)]((e) => y[t(193)]((n) => Math.max(0, f(e, n[t(148)]) ?? 0))), r = fe ?? Math.max(0, ...n[t(193)]((e) => x ? e[t(201)]((e, t) => e + t, 0) : Math.max(0, ...e)));
|
|
52
|
+
return d(r, de);
|
|
53
|
+
}, [
|
|
54
|
+
e,
|
|
55
|
+
y,
|
|
56
|
+
x,
|
|
57
|
+
fe,
|
|
58
|
+
S,
|
|
59
|
+
de
|
|
60
|
+
]), Le = Math[k(147)](...z) || 1, Re = E ? ce : se, ze = c(z.map(pe)), B = Math.max(0, P - ze), V = C === k(156) ? 0 : ze, H = b - g - Re, U = g + H, W = A ? B / A : 0, G = (e) => V + e * W, K = (e) => Math[k(147)](0, e) / Le * H, Be = ne(A, B, E ? 40 : 64), q = Math[k(181)](W * .64, x ? 48 : 24 * y[k(198)] + v * (y.length - 1)), Ve = x ? q : Math[k(147)](1, (q - v * (y[k(198)] - 1)) / Math[k(147)](1, y[k(198)])), He = e.flatMap((e, t) => {
|
|
61
|
+
let n = k, r = 0, i = G(t) + (W - q) / 2, a = y[n(193)]((t, r) => ({
|
|
62
|
+
s: t,
|
|
63
|
+
j: r,
|
|
64
|
+
v: f(e, t[n(148)])
|
|
65
|
+
}))[n(141)]((e) => e.v !== null && e.v > 0), o = a[a.length - 1]?.j;
|
|
66
|
+
return y[n(188)]((a, s) => {
|
|
67
|
+
let c = n, l = f(e, a[c(148)]);
|
|
68
|
+
if (l === null || l <= 0) return [];
|
|
69
|
+
let u = K(l), te = x ? i : i + s * (Ve + v), ne = x ? U - K(r) - u : U - u;
|
|
70
|
+
r += l;
|
|
71
|
+
let d = !x || s === o, p = d ? 0 : Math.min(ue, Math[c(147)](0, u - 1));
|
|
72
|
+
return [{
|
|
73
|
+
key: t + "-" + a[c(148)],
|
|
74
|
+
i: t,
|
|
75
|
+
s: a,
|
|
76
|
+
j: s,
|
|
77
|
+
d: ee(te, ne + p, Ve, u - p, d ? le : 0)
|
|
78
|
+
}];
|
|
79
|
+
});
|
|
80
|
+
}), J = M ? N : null, Ue = F ? [L, J] : [J], We = Ue[k(154)]((e) => e !== null), Ge = (e) => We && !Ue[k(143)](e) || void 0, Y = N === null ? void 0 : e[N], X = Y ? y[k(193)]((e, t) => ({
|
|
81
|
+
s: e,
|
|
82
|
+
color: l(e[k(187)], t),
|
|
83
|
+
value: f(Y, e[k(148)])
|
|
84
|
+
}))[k(141)]((e) => e[k(183)] !== null) : [];
|
|
85
|
+
ve === "reverse" ? X[k(150)]() : ve === k(183) && X[k(189)]((e, t) => t[k(183)] - e[k(183)]);
|
|
86
|
+
let Ke = X.reduce((e, t) => e + t[k(183)], 0), qe = Y && N !== null ? (me ?? T)(Y, N) : null, Z = he ? w(Ke, y[0]) : void 0, Q = N === null ? 0 : G(N), Je = Q + W + _ + Ae.w > P ? Math[k(147)](0, Q - _ - Ae.w) : Q + W + _, Ye = (e) => {
|
|
87
|
+
let t = k, n = e[t(138)][t(157)]();
|
|
88
|
+
return Math.min(A - 1, Math[t(147)](0, Math.floor((e[t(178)] - n[t(162)]) / n[t(195)] * A)));
|
|
89
|
+
}, Xe = (e) => je(Ye(e)), $ = (e) => {
|
|
90
|
+
F && e !== L && Pe(e);
|
|
91
|
+
}, Ze = (e) => {
|
|
92
|
+
let t = k;
|
|
93
|
+
F && j !== null && (e.key === "Enter" || e[t(148)] === " ") ? (e[t(159)](), $(j)) : Ne[t(153)](e);
|
|
94
|
+
}, Qe = M && Y ? "" + (Y[s] ?? "") + (N === L ? " (선택됨)" : "") + ": " + X[k(193)]((e) => e.s[k(170)] + " " + w(e[k(183)], e.s)).join(", ") : "";
|
|
95
|
+
return h(n, {
|
|
96
|
+
gap: 3,
|
|
97
|
+
className: i(k(161), "ds-bar-chart", Ee),
|
|
98
|
+
style: De,
|
|
99
|
+
children: [h(k(176), {
|
|
100
|
+
...Ne,
|
|
101
|
+
onKeyDown: Ze,
|
|
102
|
+
className: k(163),
|
|
103
|
+
style: { height: b },
|
|
104
|
+
"aria-roledescription": k(180),
|
|
105
|
+
"aria-label": Te,
|
|
106
|
+
"aria-describedby": Ie + k(169),
|
|
107
|
+
children: [
|
|
108
|
+
P > 0 && h(k(164), {
|
|
109
|
+
className: k(140),
|
|
110
|
+
width: P,
|
|
111
|
+
height: b,
|
|
112
|
+
"aria-hidden": !0,
|
|
113
|
+
children: [
|
|
114
|
+
m(k(186), {
|
|
115
|
+
className: k(199),
|
|
116
|
+
"data-state": k(M ? 160 : 175),
|
|
117
|
+
x: 0,
|
|
118
|
+
y: 4,
|
|
119
|
+
width: W,
|
|
120
|
+
height: H + 4,
|
|
121
|
+
rx: 8,
|
|
122
|
+
style: { transform: k(202) + Q + k(185) }
|
|
123
|
+
}),
|
|
124
|
+
z[k(193)]((e) => h("g", { children: [m(k(158), {
|
|
125
|
+
className: "ds-chart__grid",
|
|
126
|
+
x1: V,
|
|
127
|
+
x2: V + B,
|
|
128
|
+
y1: U - K(e),
|
|
129
|
+
y2: U - K(e)
|
|
130
|
+
}), m(k(152), {
|
|
131
|
+
className: "ds-chart__axis",
|
|
132
|
+
x: C === k(156) ? P : 0,
|
|
133
|
+
y: U - K(e),
|
|
134
|
+
dominantBaseline: "middle",
|
|
135
|
+
textAnchor: C === k(156) ? "end" : "start",
|
|
136
|
+
children: pe(e)
|
|
137
|
+
})] }, e)),
|
|
138
|
+
!E && e[k(193)]((e, t) => t % Be === 0 ? m(k(152), {
|
|
139
|
+
className: k(192),
|
|
140
|
+
"data-selected": t === L || void 0,
|
|
141
|
+
x: G(t) + W / 2,
|
|
142
|
+
y: b - 6,
|
|
143
|
+
textAnchor: k(149),
|
|
144
|
+
children: T(e, t)
|
|
145
|
+
}, t) : null),
|
|
146
|
+
m("g", {
|
|
147
|
+
className: k(165),
|
|
148
|
+
style: { transformOrigin: "0 " + U + "px" },
|
|
149
|
+
children: He[k(193)]((e) => m(k(173), {
|
|
150
|
+
className: "ds-bar-chart__bar",
|
|
151
|
+
d: e.d,
|
|
152
|
+
fill: l(e.s[k(187)], e.j),
|
|
153
|
+
"data-faded": Ge(e.i),
|
|
154
|
+
"data-dimmed": R !== null && R !== e.s[k(148)] || void 0
|
|
155
|
+
}, e.key))
|
|
156
|
+
}),
|
|
157
|
+
m(k(186), {
|
|
158
|
+
className: k(190),
|
|
159
|
+
"data-selectable": F || void 0,
|
|
160
|
+
x: V,
|
|
161
|
+
y: 0,
|
|
162
|
+
width: B,
|
|
163
|
+
height: b,
|
|
164
|
+
onPointerMove: Xe,
|
|
165
|
+
onPointerDown: Xe,
|
|
166
|
+
onPointerLeave: Me,
|
|
167
|
+
onClick: (e) => $(Ye(e))
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
}),
|
|
171
|
+
P > 0 && E && m(k(176), {
|
|
172
|
+
className: k(167),
|
|
173
|
+
style: { top: U + 6 },
|
|
174
|
+
"aria-hidden": !0,
|
|
175
|
+
children: e[k(193)]((e, t) => {
|
|
176
|
+
let n = k;
|
|
177
|
+
if (t % Be !== 0 && t !== L) return null;
|
|
178
|
+
let r = h(oe, { children: [E(e, t), m(n(171), {
|
|
179
|
+
className: n(145),
|
|
180
|
+
children: m(n(171), { children: T(e, t) })
|
|
181
|
+
})] }), i = {
|
|
182
|
+
className: n(179),
|
|
183
|
+
"data-selected": t === L || void 0,
|
|
184
|
+
style: { left: G(t) + W / 2 },
|
|
185
|
+
onPointerEnter: () => je(t),
|
|
186
|
+
onPointerLeave: Me
|
|
187
|
+
};
|
|
188
|
+
return F ? m(n(184), {
|
|
189
|
+
type: "button",
|
|
190
|
+
tabIndex: -1,
|
|
191
|
+
...i,
|
|
192
|
+
onClick: () => $(t),
|
|
193
|
+
children: r
|
|
194
|
+
}, t) : m(n(171), {
|
|
195
|
+
...i,
|
|
196
|
+
children: r
|
|
197
|
+
}, t);
|
|
198
|
+
})
|
|
199
|
+
}),
|
|
200
|
+
m("div", {
|
|
201
|
+
ref: ke,
|
|
202
|
+
className: k(182),
|
|
203
|
+
"data-state": k(M ? 160 : 175),
|
|
204
|
+
"data-settled": Oe || void 0,
|
|
205
|
+
style: { transform: k(142) + Je + k(155) + g + k(185) },
|
|
206
|
+
"aria-hidden": !0,
|
|
207
|
+
children: m(o, {
|
|
208
|
+
leading: Y && N !== null ? _e?.(Y, N) : void 0,
|
|
209
|
+
title: qe,
|
|
210
|
+
value: ge === "header" ? Z : void 0,
|
|
211
|
+
rows: X.map((e) => ({
|
|
212
|
+
key: e.s[k(148)],
|
|
213
|
+
label: e.s[k(170)],
|
|
214
|
+
color: e[k(187)],
|
|
215
|
+
value: w(e[k(183)], e.s)
|
|
216
|
+
})),
|
|
217
|
+
footer: Z !== void 0 && ge === k(144) ? {
|
|
218
|
+
key: k(197),
|
|
219
|
+
label: "합계",
|
|
220
|
+
color: "",
|
|
221
|
+
value: Z
|
|
222
|
+
} : void 0
|
|
223
|
+
})
|
|
224
|
+
}),
|
|
225
|
+
m(k(171), {
|
|
226
|
+
id: Ie + k(169),
|
|
227
|
+
className: k(172),
|
|
228
|
+
"aria-live": k(139),
|
|
229
|
+
children: Qe
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
}), ye && m(a, {
|
|
233
|
+
items: y.map((e, t) => ({
|
|
234
|
+
key: e[k(148)],
|
|
235
|
+
label: e[k(170)],
|
|
236
|
+
color: l(e.color, t)
|
|
237
|
+
})),
|
|
238
|
+
focused: R,
|
|
239
|
+
onFocusChange: Fe
|
|
240
|
+
})]
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
export { y as BarChart };
|