@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,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = t;
|
|
3
|
+
function t(e, r) {
|
|
4
|
+
e -= 117;
|
|
5
|
+
let i = n(), a = i[e];
|
|
6
|
+
t.DiKeqR === void 0 && (t.ZWHHOt = function(e) {
|
|
7
|
+
let t = "", n = "";
|
|
8
|
+
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);
|
|
9
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
+
return decodeURIComponent(n);
|
|
11
|
+
}, t.YDkxKb = {}, t.DiKeqR = !0);
|
|
12
|
+
let o = i[0];
|
|
13
|
+
t.atzLif !== o && (t.YDkxKb = {}, t.atzLif = o);
|
|
14
|
+
let s = t.YDkxKb[e];
|
|
15
|
+
return s === void 0 ? (a = t.ZWHHOt(a), t.YDkxKb[e] = a) : a = s, a;
|
|
16
|
+
}
|
|
17
|
+
(function(e, n) {
|
|
18
|
+
let r = t, i = e();
|
|
19
|
+
for (;;) try {
|
|
20
|
+
if (-parseInt(r(150)) / 1 * (-parseInt(r(135)) / 2) + parseInt(r(130)) / 3 + -parseInt(r(126)) / 4 * (-parseInt(r(118)) / 5) + parseInt(r(149)) / 6 + -parseInt(r(153)) / 7 * (-parseInt(r(127)) / 8) + -parseInt(r(144)) / 9 + parseInt(r(119)) / 10 * (-parseInt(r(140)) / 11) == n) break;
|
|
21
|
+
i.push(i.shift());
|
|
22
|
+
} catch {
|
|
23
|
+
i.push(i.shift());
|
|
24
|
+
}
|
|
25
|
+
})(n, 100953);
|
|
26
|
+
function n() {
|
|
27
|
+
let e = /* @__PURE__ */ "mti0nen6yMjJsG.mJK2svLjDuTg.A28Ts1i.C21VB3rO.mZyYnte0vunuugv6.BgvUz3rO.y29TCgfJDa.AM9PBG.zMXVB3i.mtzdBuDeru8.zNjVBq.DMfYkc0TD2fYBMLUzY1ZB2z0kq.DMfYkc0Ty2HHCNqTyxHPCYK.Bg9Nmta.mJjNqw5TCwC.y2vPBa.BNvTyMvY.DMfYka.ndCZmdmXzvrrEgjO.AxngAw5PDgu.ls1JAgfYDc0.DMfYkc0TzgfUz2vYlxnVzNqP.zMLUza.mte0otK4nfnOrhDjEq.mJm5nNvnAwzNzq.DMfYkc0TC3vYzMfJzs1Hy3rPDMuP.BwfW.mZaWmdL6AKnoDLO.CMv2zxjZzq.mJKXnwXOrevzAG.mJu5mdq1mhbNAMjNAq.DMfYkc0TzgfUz2vYkq.CM91BMq.tNvTyMvYrM9YBwf0.zM9YBwf0.Bwf4.BwLU".split(".");
|
|
28
|
+
return n = function() {
|
|
29
|
+
return e;
|
|
30
|
+
}, n();
|
|
31
|
+
}
|
|
32
|
+
var r = new Intl[e(122)](e(128)), i = new Intl[e(122)](e(128), {
|
|
33
|
+
notation: e(132),
|
|
34
|
+
maximumFractionDigits: 1
|
|
35
|
+
}), a = (t) => r[e(123)](t), o = (t) => i[e(123)](t), s = (t) => Math[e(121)](t * 1e3) / 10 + "%", c = (t, n) => {
|
|
36
|
+
let r = e, i = t ?? r(146) + (n % 6 + 1);
|
|
37
|
+
return i.startsWith("--") ? r(143) + i + ")" : i;
|
|
38
|
+
}, l = (t, n) => {
|
|
39
|
+
let r = e, i = t?.[n];
|
|
40
|
+
return typeof i === r(142) && Number[r(145)](i) ? i : null;
|
|
41
|
+
};
|
|
42
|
+
function u(t, n) {
|
|
43
|
+
let r = e, i = Math[r(124)](1, n - 1);
|
|
44
|
+
if (t <= 0) return Array[r(136)]({ length: i + 1 }, (e, t) => t);
|
|
45
|
+
let a = t / i, o = 10 ** Math[r(134)](Math[r(139)](a)), s = ([
|
|
46
|
+
1,
|
|
47
|
+
1.5,
|
|
48
|
+
2,
|
|
49
|
+
2.5,
|
|
50
|
+
3,
|
|
51
|
+
5,
|
|
52
|
+
10
|
|
53
|
+
][r(148)]((e) => e * o >= a) ?? 10) * o;
|
|
54
|
+
return Array[r(136)]({ length: i + 1 }, (e, t) => t * s);
|
|
55
|
+
}
|
|
56
|
+
var d = (t) => Math[e(124)](...t[e(152)]((t) => t[e(131)])) * 7 + 14, f = (t, n, r = 110) => Math.max(1, Math[e(141)](t / Math[e(124)](1, Math.floor(n / r)))), p = (t, n) => n === e(129) && t[e(131)] > 2 ? m(t) : t.map(([e, t], n) => (n ? "L" : "M") + e + "," + t)[e(133)]("");
|
|
57
|
+
function m(t) {
|
|
58
|
+
let n = e, r = t[n(131)], i = t.slice(0, -1).map(([e, n], r) => (t[r + 1][1] - n) / (t[r + 1][0] - e)), a = t[n(152)]((e, t) => t === 0 ? i[0] : t === r - 1 ? i[r - 2] : i[t - 1] * i[t] <= 0 ? 0 : (i[t - 1] + i[t]) / 2);
|
|
59
|
+
for (let e = 0; e < r - 1; e++) {
|
|
60
|
+
if (i[e] === 0) {
|
|
61
|
+
a[e] = a[e + 1] = 0;
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
let t = a[e] / i[e], n = a[e + 1] / i[e], r = t * t + n * n;
|
|
65
|
+
if (r > 9) {
|
|
66
|
+
let o = 3 / Math.sqrt(r);
|
|
67
|
+
a[e] = o * t * i[e], a[e + 1] = o * n * i[e];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
let o = "M" + t[0][0] + "," + t[0][1];
|
|
71
|
+
for (let e = 0; e < r - 1; e++) {
|
|
72
|
+
let n = (t[e + 1][0] - t[e][0]) / 3;
|
|
73
|
+
o += "C" + (t[e][0] + n) + "," + (t[e][1] + a[e] * n) + " " + (t[e + 1][0] - n) + "," + (t[e + 1][1] - a[e + 1] * n) + " " + t[e + 1][0] + "," + t[e + 1][1];
|
|
74
|
+
}
|
|
75
|
+
return o;
|
|
76
|
+
}
|
|
77
|
+
function h(t, n, r, i, a) {
|
|
78
|
+
let o = e, s = Math[o(124)](0, Math[o(125)](a, r / 2, i));
|
|
79
|
+
return "M" + t + "," + (n + i) + "V" + (n + s) + "Q" + t + "," + n + " " + (t + s) + "," + n + "H" + (t + r - s) + "Q" + (t + r) + "," + n + " " + (t + r) + "," + (n + s) + "V" + (n + i) + "Z";
|
|
80
|
+
}
|
|
81
|
+
var g = {
|
|
82
|
+
neutral: e(151),
|
|
83
|
+
accent: "var(--accent-soft)",
|
|
84
|
+
warning: e(137),
|
|
85
|
+
danger: e(147)
|
|
86
|
+
}, _ = {
|
|
87
|
+
neutral: e(138),
|
|
88
|
+
accent: "var(--accent)",
|
|
89
|
+
warning: "var(--warning)",
|
|
90
|
+
danger: e(120)
|
|
91
|
+
}, v = (t, n) => t[e(131)] ? p(t, n) : "";
|
|
92
|
+
function y(t, n, r) {
|
|
93
|
+
let i = e;
|
|
94
|
+
return t[i(131)] ? "" + p(t, r) + p([...n][i(117)](), r).replace(/^M/, "L") + "Z" : "";
|
|
95
|
+
}
|
|
96
|
+
export { g as CHART_TONE_SOFT, _ as CHART_TONE_STRONG, d as axisGutter, y as bandPath, h as barPath, c as chartColor, o as formatCompact, a as formatNumber, s as formatPercent, f as labelStep, v as linePath, u as niceTicks, l as numberAt };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = t;
|
|
3
|
+
function t(e, r) {
|
|
4
|
+
e -= 333;
|
|
5
|
+
let i = n(), a = i[e];
|
|
6
|
+
t.uxmFPO === void 0 && (t.cBczNr = function(e) {
|
|
7
|
+
let t = "", n = "";
|
|
8
|
+
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);
|
|
9
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
+
return decodeURIComponent(n);
|
|
11
|
+
}, t.OrzuxQ = {}, t.uxmFPO = !0);
|
|
12
|
+
let o = i[0];
|
|
13
|
+
t.VjIWYk !== o && (t.OrzuxQ = {}, t.VjIWYk = o);
|
|
14
|
+
let s = t.OrzuxQ[e];
|
|
15
|
+
return s === void 0 ? (a = t.cBczNr(a), t.OrzuxQ[e] = a) : a = s, a;
|
|
16
|
+
}
|
|
17
|
+
function n() {
|
|
18
|
+
let e = /* @__PURE__ */ "BwLU.B2jZzxj2zq.mLPSCvzmwq.Ag92zxjhCMfJzq.mJa1mJmXnM1mBK9PsG.mZG1mZCYmMDAqNHlvG.mtaZnJy5ntbKwuzyDLC.B2zMC2v0sgvPz2H0.y2XLyxjuAw1LB3v0.offuzKnktq.Bwf4.B2zMC2v0v2LKDgG.mtKWodrAs2juqM0.qxjYB3DsAwDODa.C2v0vgLTzw91Da.mtGZmdC4m1jyvgvMBa.qxjYB3DvCa.y2XPzw50v2LKDgG.qxjYB3Dmzwz0.oMzVy3vZlxzPC2LIBgu.ChjLDMvUDerLzMf1Bhq.BgfZDa.nJeYmZK0mKfZEMXewq.rxnJyxbL.y3vYCMvUDa.zMLYC3q.nJe5ntvHzMPZCMy.nde1rvfoz3zM.rw5K.A2v5".split(".");
|
|
19
|
+
return n = function() {
|
|
20
|
+
return e;
|
|
21
|
+
}, n();
|
|
22
|
+
}
|
|
23
|
+
(function(e, n) {
|
|
24
|
+
let r = t, i = e();
|
|
25
|
+
for (;;) try {
|
|
26
|
+
if (parseInt(r(356)) / 1 * (parseInt(r(362)) / 2) + -parseInt(r(345)) / 3 + -parseInt(r(342)) / 4 * (parseInt(r(357)) / 5) + parseInt(r(335)) / 6 + -parseInt(r(334)) / 7 * (-parseInt(r(339)) / 8) + -parseInt(r(352)) / 9 + parseInt(r(336)) / 10 == n) break;
|
|
27
|
+
i.push(i.shift());
|
|
28
|
+
} catch {
|
|
29
|
+
i.push(i.shift());
|
|
30
|
+
}
|
|
31
|
+
})(n, 347433);
|
|
32
|
+
import { TIMING as r } from "../../hooks/timing.js";
|
|
33
|
+
import { useControllableState as i } from "../../hooks/useControllableState.js";
|
|
34
|
+
import { useEffect as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
35
|
+
function l({ count: n, activeIndex: l, defaultActiveIndex: u = null, onActiveIndexChange: d, initialKeyboardIndex: f = e(351) }) {
|
|
36
|
+
let p = e, [m, h] = i(l, u, d), g = s(null), _ = s(null), [v, y] = c(0), [b, x] = c({
|
|
37
|
+
w: 0,
|
|
38
|
+
h: 0
|
|
39
|
+
}), S = s(void 0);
|
|
40
|
+
o(() => {
|
|
41
|
+
let e = t, n = g[e(354)], r = _[e(354)];
|
|
42
|
+
if (!n) return;
|
|
43
|
+
let i = new ResizeObserver(() => {
|
|
44
|
+
let t = e;
|
|
45
|
+
y(n.clientWidth), r && x((e) => e.w === r[t(341)] && e.h === r[t(337)] ? e : {
|
|
46
|
+
w: r.offsetWidth,
|
|
47
|
+
h: r[t(337)]
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
return i.observe(n), r && i[e(361)](r), y(n[e(347)]), () => i.disconnect();
|
|
51
|
+
}, []), a(() => () => window[p(338)](S[p(354)]), []);
|
|
52
|
+
let C = m !== null && m < n, [w, T] = c(m);
|
|
53
|
+
C && m !== w && T(m);
|
|
54
|
+
let E = w !== null && w < n ? w : null, [D, O] = c(!1);
|
|
55
|
+
return !C && D && O(!1), a(() => {
|
|
56
|
+
if (!C) return;
|
|
57
|
+
let e = requestAnimationFrame(() => e = requestAnimationFrame(() => O(!0)));
|
|
58
|
+
return () => cancelAnimationFrame(e);
|
|
59
|
+
}, [C]), {
|
|
60
|
+
active: m,
|
|
61
|
+
setActive: h,
|
|
62
|
+
open: C,
|
|
63
|
+
shown: E,
|
|
64
|
+
settled: D,
|
|
65
|
+
width: v,
|
|
66
|
+
tipRef: _,
|
|
67
|
+
tipSize: b,
|
|
68
|
+
hover: (e) => {
|
|
69
|
+
let t = p;
|
|
70
|
+
window[t(338)](S[t(354)]), e !== m && h(e);
|
|
71
|
+
},
|
|
72
|
+
leave: () => {
|
|
73
|
+
let e = p;
|
|
74
|
+
window[e(338)](S[e(354)]), S[e(354)] = window[e(344)](() => h(null), r[e(333)]);
|
|
75
|
+
},
|
|
76
|
+
plotProps: {
|
|
77
|
+
ref: g,
|
|
78
|
+
tabIndex: 0,
|
|
79
|
+
role: "group",
|
|
80
|
+
onKeyDown: (e) => {
|
|
81
|
+
let t = p;
|
|
82
|
+
if (!n) return;
|
|
83
|
+
let r = m ?? (f === t(355) ? 0 : n - 1), i = e[t(359)] === t(343) || e[t(359)] === "ArrowDown" ? Math[t(360)](n - 1, r + 1) : e[t(359)] === t(348) || e[t(359)] === t(346) ? Math[t(340)](0, r - 1) : e[t(359)] === "Home" ? 0 : e[t(359)] === t(358) ? n - 1 : void 0;
|
|
84
|
+
i === void 0 ? e[t(359)] === t(353) && m !== null && (e[t(350)](), h(null)) : (e[t(350)](), h(i));
|
|
85
|
+
},
|
|
86
|
+
onFocus: (e) => {
|
|
87
|
+
let t = p;
|
|
88
|
+
e.currentTarget.matches(t(349)) && m === null && n && h(f === t(355) ? 0 : n - 1);
|
|
89
|
+
},
|
|
90
|
+
onBlur: () => h(null)
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export { l as useChartInteraction };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = D;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = D, r = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (parseInt(n(442)) / 1 * (parseInt(n(431)) / 2) + -parseInt(n(445)) / 3 * (-parseInt(n(437)) / 4) + -parseInt(n(440)) / 5 + parseInt(n(448)) / 6 + parseInt(n(406)) / 7 * (parseInt(n(413)) / 8) + -parseInt(n(444)) / 9 + parseInt(n(409)) / 10 == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
r.push(r.shift());
|
|
10
|
+
}
|
|
11
|
+
})(v, 329069);
|
|
12
|
+
import { Spinner as t } from "../../primitives/Spinner2.js";
|
|
13
|
+
import { Text as n } from "../../primitives/Typography2.js";
|
|
14
|
+
import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
|
|
15
|
+
import { RelativeTime as a } from "../../primitives/RelativeTime.js";
|
|
16
|
+
import { Avatar as o, Button as s, cx as c } from "../../primitives/index.js";
|
|
17
|
+
import { formatChatTime as l } from "./formatChatTime.js";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { Children as u, createContext as d, isValidElement as f, useContext as p } from "react";
|
|
20
|
+
import { AlertCircle as m, Check as h, CheckCheck as g, RotateCw as _ } from "lucide-react";
|
|
21
|
+
function v() {
|
|
22
|
+
let e = /* @__PURE__ */ "7kce7iAH65cO.zw5K.z2HVC3q.7j6f66cLioYKKq.Aw5OzxjPDa.7kce7iAHioYlPo2mQa.C3bHBG.7j2yioUPLoYlNoYNGa.zhmTy2HHDc1IDwjIBgvFx2zPBgW.odi1mdKYr2PhzKzZ.zMLSDgvY.C2vUzgLUzW.zMLYC3q.zhmTy2HHDc1IDwjIBgvFx2fJDgLVBNm.BwLKzgXL.mJKXodHWtxLgy3e.y2fWDgLVBG.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.mty5nJCYmfzdvw1ZDG.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.mxbmEe9cBq.C3rYAw5N.ntKWmZqZm0XIzwvIyq.ouTjAvDMyq.ywnJzw50.zhmTy2HHDc1IDwjIBgu.mJmWntCYmMz1B1DQsq.zhmTy2HHDc1NCM91Ca.C2LUz2XL.r3jVDxa.64UK7iUCioUZToUcToQ4Sa.mtyZmwnHtwnLwG.yM9KEs1Tza.BgfZDa.mtGXotG5mhLkvwfnqq.zhmTy2HHDc1NCM91Cf9FBMfTzq.C2LKzq.C2vJB25Kyxj5.mteXmtjMCfn1Duy.uhjVDMLKzxi.zhmTy2HHDc1IDwjIBgvFx2zPBgWTlq.BgfIzwWTC20.zhmTy2HHDc1NCM91Cf9FyNvIyMXLCW.zMfPBgvK.Cg9ZAxrPB24.C3rHCNq.zhmTy2HHDc1IDwjIBgvFx3jVDW".split(".");
|
|
23
|
+
return v = function() {
|
|
24
|
+
return e;
|
|
25
|
+
}, v();
|
|
26
|
+
}
|
|
27
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
28
|
+
var S = d(null), C = {
|
|
29
|
+
sending: "보내는 중",
|
|
30
|
+
sent: e(422),
|
|
31
|
+
read: "읽음",
|
|
32
|
+
failed: e(427)
|
|
33
|
+
};
|
|
34
|
+
function w({ status: n }) {
|
|
35
|
+
let r = e;
|
|
36
|
+
if (n === r(433)) return b(t, {
|
|
37
|
+
size: 12,
|
|
38
|
+
tone: r(426),
|
|
39
|
+
label: C[r(433)]
|
|
40
|
+
});
|
|
41
|
+
if (n === "failed") return null;
|
|
42
|
+
let i = n === "read" ? g : h;
|
|
43
|
+
return b(r(428), {
|
|
44
|
+
className: "ds-chat-bubble__status",
|
|
45
|
+
"data-status": n,
|
|
46
|
+
role: "img",
|
|
47
|
+
"aria-label": C[n],
|
|
48
|
+
children: b(i, { "aria-hidden": !0 })
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function T({ side: t, tone: o, position: u, children: d, time: f, status: h, onRetry: g, typing: v, actions: T, footer: E, appear: D, className: O, style: k }) {
|
|
52
|
+
let A = e, j = p(S), M = t ?? j?.[A(411)] ?? A(420), N = u ?? j?.[A(419)] ?? A(403), P = o ?? (M === A(423) ? A(446) : "neutral"), F = N === A(403) || N === A(408), I = F && (f != null || h != null) || h === "sending" || h === "failed", L = b(n, {
|
|
53
|
+
as: "div",
|
|
54
|
+
variant: A(407),
|
|
55
|
+
tone: A(426),
|
|
56
|
+
className: c(A(430), A(415) + P),
|
|
57
|
+
"data-typing": v || void 0,
|
|
58
|
+
children: v ? x(A(428), {
|
|
59
|
+
className: "ds-chat-bubble__dots",
|
|
60
|
+
role: "status",
|
|
61
|
+
"aria-label": A(425),
|
|
62
|
+
children: [
|
|
63
|
+
b(A(428), {}),
|
|
64
|
+
b(A(428), {}),
|
|
65
|
+
b(A(428), {})
|
|
66
|
+
]
|
|
67
|
+
}) : d
|
|
68
|
+
}), R = I && b(r, {
|
|
69
|
+
gap: 1,
|
|
70
|
+
wrap: !1,
|
|
71
|
+
className: "ds-chat-bubble__meta",
|
|
72
|
+
"data-failed": h === "failed" || void 0,
|
|
73
|
+
children: h === "failed" ? x(y, { children: [b(m, {
|
|
74
|
+
"aria-hidden": !0,
|
|
75
|
+
className: A(441)
|
|
76
|
+
}), b(n, {
|
|
77
|
+
variant: A(438),
|
|
78
|
+
tone: "danger",
|
|
79
|
+
children: C.failed
|
|
80
|
+
})] }) : x(y, { children: [h && b(w, { status: h }), F && f != null && b(a, {
|
|
81
|
+
date: f,
|
|
82
|
+
format: l,
|
|
83
|
+
refreshInterval: !1
|
|
84
|
+
})] })
|
|
85
|
+
}), z = h === A(418) && g && b(s, {
|
|
86
|
+
variant: A(424),
|
|
87
|
+
size: "sm",
|
|
88
|
+
icon: b(_, {}),
|
|
89
|
+
onClick: g,
|
|
90
|
+
children: A(405)
|
|
91
|
+
}), B = T && b(A(428), {
|
|
92
|
+
className: A(435),
|
|
93
|
+
children: T
|
|
94
|
+
});
|
|
95
|
+
return x(i, {
|
|
96
|
+
gap: 1,
|
|
97
|
+
align: M === A(423) ? "end" : A(420),
|
|
98
|
+
className: c(A(447), O),
|
|
99
|
+
"data-side": M,
|
|
100
|
+
"data-position": N,
|
|
101
|
+
"data-status": h,
|
|
102
|
+
"data-appear": D || void 0,
|
|
103
|
+
style: k,
|
|
104
|
+
children: [x(r, {
|
|
105
|
+
gap: 2,
|
|
106
|
+
align: A(423),
|
|
107
|
+
wrap: !1,
|
|
108
|
+
className: A(421),
|
|
109
|
+
children: [
|
|
110
|
+
L,
|
|
111
|
+
R,
|
|
112
|
+
z,
|
|
113
|
+
B
|
|
114
|
+
]
|
|
115
|
+
}), E]
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function E({ author: t, avatar: a, side: s = e(420), avatarSize: l = 28, showName: d = s === "start", children: p, className: m, style: h }) {
|
|
119
|
+
let g = e, _ = u.toArray(p)[g(432)](f), v = _.length - 1, y = s === "start" && (a === void 0 ? typeof t === g(443) ? b(o, {
|
|
120
|
+
name: t,
|
|
121
|
+
size: l
|
|
122
|
+
}) : null : a), C = x(i, {
|
|
123
|
+
gap: 1,
|
|
124
|
+
align: s === g(423) ? g(423) : g(420),
|
|
125
|
+
className: g(417),
|
|
126
|
+
children: [d && t != null && b(n, {
|
|
127
|
+
variant: g(416),
|
|
128
|
+
tone: g(412),
|
|
129
|
+
className: g(410),
|
|
130
|
+
children: t
|
|
131
|
+
}), _.map((e, t) => b(S[g(414)], {
|
|
132
|
+
value: {
|
|
133
|
+
side: s,
|
|
134
|
+
position: g(v === 0 ? 403 : t === 0 ? 434 : t === v ? 408 : 436)
|
|
135
|
+
},
|
|
136
|
+
children: e
|
|
137
|
+
}, e.key ?? t))]
|
|
138
|
+
});
|
|
139
|
+
return b("div", {
|
|
140
|
+
className: c(g(402), m),
|
|
141
|
+
"data-side": s,
|
|
142
|
+
role: "group",
|
|
143
|
+
"aria-label": typeof t == "string" ? t + g(429) : void 0,
|
|
144
|
+
style: {
|
|
145
|
+
"--_avatar": l + "px",
|
|
146
|
+
...h
|
|
147
|
+
},
|
|
148
|
+
children: s === "start" && (y || a === null) ? x(r, {
|
|
149
|
+
gap: 2,
|
|
150
|
+
align: "start",
|
|
151
|
+
wrap: !1,
|
|
152
|
+
children: [b(g(428), {
|
|
153
|
+
className: g(439),
|
|
154
|
+
children: y
|
|
155
|
+
}), C]
|
|
156
|
+
}) : C
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function D(e, t) {
|
|
160
|
+
e -= 402;
|
|
161
|
+
let n = v(), r = n[e];
|
|
162
|
+
D.CGZWYf === void 0 && (D.oMivpx = function(e) {
|
|
163
|
+
let t = "", n = "";
|
|
164
|
+
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);
|
|
165
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
166
|
+
return decodeURIComponent(n);
|
|
167
|
+
}, D.rsgeeI = {}, D.CGZWYf = !0);
|
|
168
|
+
let i = n[0];
|
|
169
|
+
D.eHCqaQ !== i && (D.rsgeeI = {}, D.eHCqaQ = i);
|
|
170
|
+
let a = D.rsgeeI[e];
|
|
171
|
+
return a === void 0 ? (r = D.oMivpx(r), D.rsgeeI[e] = r) : r = a, r;
|
|
172
|
+
}
|
|
173
|
+
T[e(404)] = E;
|
|
174
|
+
export { T as ChatBubble, E as ChatBubbleGroup };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function e(t, r) {
|
|
3
|
+
t -= 103;
|
|
4
|
+
var i = n(), a = i[t];
|
|
5
|
+
e.QDOOFc === void 0 && (e.aZXDIp = function(e) {
|
|
6
|
+
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);
|
|
7
|
+
for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
|
|
8
|
+
return decodeURIComponent(r);
|
|
9
|
+
}, e.pNISwi = {}, e.QDOOFc = !0);
|
|
10
|
+
var o = i[0];
|
|
11
|
+
e.CjNQoe !== o && (e.pNISwi = {}, e.CjNQoe = o);
|
|
12
|
+
var s = e.pNISwi[t];
|
|
13
|
+
return s === void 0 ? (a = e.aZXDIp(a), e.pNISwi[t] = a) : a = s, a;
|
|
14
|
+
}
|
|
15
|
+
(function(t, n) {
|
|
16
|
+
for (var r = e, i = t();;) try {
|
|
17
|
+
if (parseInt(r(110)) / 1 + -parseInt(r(108)) / 2 * (-parseInt(r(118)) / 3) + parseInt(r(111)) / 4 * (parseInt(r(116)) / 5) + parseInt(r(115)) / 6 + parseInt(r(112)) / 7 + -parseInt(r(106)) / 8 * (-parseInt(r(109)) / 9) + -parseInt(r(107)) / 10 * (parseInt(r(113)) / 11) == n) break;
|
|
18
|
+
i.push(i.shift());
|
|
19
|
+
} catch {
|
|
20
|
+
i.push(i.shift());
|
|
21
|
+
}
|
|
22
|
+
})(n, 758137);
|
|
23
|
+
function t(t) {
|
|
24
|
+
var n = e;
|
|
25
|
+
return new Intl[n(114)](n(104), {
|
|
26
|
+
hour: n(103),
|
|
27
|
+
minute: n(117)
|
|
28
|
+
})[n(105)](t);
|
|
29
|
+
}
|
|
30
|
+
export { t as formatChatTime };
|
|
31
|
+
function n() {
|
|
32
|
+
var e = [
|
|
33
|
+
"rgf0zvrPBwvgB3jTyxq",
|
|
34
|
+
"oduWmZq4ogHLAhzmqG",
|
|
35
|
+
"ndi4mte1yLDsr1b0",
|
|
36
|
+
"mI1KAwDPDa",
|
|
37
|
+
"nJiYmJnnwuHwrMO",
|
|
38
|
+
"BNvTzxjPyW",
|
|
39
|
+
"A28Ts1i",
|
|
40
|
+
"zM9YBwf0",
|
|
41
|
+
"ofL5qKD4sq",
|
|
42
|
+
"nZiXodbervv6yMe",
|
|
43
|
+
"mMDtrvrdBW",
|
|
44
|
+
"nZm5ndeWm1zPEej5rq",
|
|
45
|
+
"ntyZmZeZyM1rBMzS",
|
|
46
|
+
"ngnLue5dCa",
|
|
47
|
+
"ntyXmJy0oxrkqNLhCq",
|
|
48
|
+
"ndq5ouzKCNzSAW"
|
|
49
|
+
];
|
|
50
|
+
return n = function() {
|
|
51
|
+
return e;
|
|
52
|
+
}, n();
|
|
53
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = i;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = i, r = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (parseInt(n(264)) / 1 * (parseInt(n(304)) / 2) + parseInt(n(276)) / 3 * (parseInt(n(300)) / 4) + -parseInt(n(274)) / 5 * (-parseInt(n(305)) / 6) + -parseInt(n(277)) / 7 * (parseInt(n(275)) / 8) + -parseInt(n(273)) / 9 * (parseInt(n(271)) / 10) + parseInt(n(299)) / 11 + -parseInt(n(285)) / 12 == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
r.push(r.shift());
|
|
10
|
+
}
|
|
11
|
+
})(t, 230464);
|
|
12
|
+
function t() {
|
|
13
|
+
let e = /* @__PURE__ */ "C2HPzNrlzxK.66Mu7iUC7kEa.ndmZmgr0zwrSrW.zw50zxi.mZK1mvfLD2TTqG.nuzoD1jYzq.ofLqC0LkrG.nJKXntLoC2vfz3C.nZm3odq5B0vktvLq.yNv0Dg9UlcbHlcbPBNb1DcWGDgv4DgfYzweSifTYB2XLpsjTzw51iL0.66Y07jEh7j2065oGioUSVoYwToUZToYeUoYALa.yMv0D2vLBG.zhmTy29TCg9ZzxjFx2zVB3rLCG.7yYm7j28ioYYQoU2Ga.7j2r64U1ioYKKEYNGa.y3vYCMvUDenVBg9Y.nJmXmdaWohfNrvrbCW.zhmTy29TCg9ZzxiTlxnT.zhmTy29TCg9ZzxjFx3nLBMq.67o064k06RIWia.y3vYCMvUDa.z2HVC3q.rxnJyxbL.zw5K.DMfSDwu.zM9JDxm.zhmTy29UDhjVBcbKCY1JB21WB3nLCG.y29UDgfPBNm.rw50zxi.BMf0AxzLrxzLBNq.ndy2otC3nu14A3HHyW.mtzwyNHtyK8.zgL2.DgfYz2v0.ChjPBwfYEq.mJiWmZmYuwHPA1PQ.mJu0otmZnfHhB2XlvG.A2v5.y2XVC2vZDa.67o064k06RIW.7ksr7kEaia.mu5lvMTrtq.ChjLDMvUDerLzMf1Bhq.zhmTy29TCg9ZzxjFx2LUChv0.y3vYCMvUDfrHCMDLDa.zxnJ".split(".");
|
|
14
|
+
return t = function() {
|
|
15
|
+
return e;
|
|
16
|
+
}, t();
|
|
17
|
+
}
|
|
18
|
+
import { Kbd as n } from "../../primitives/Kbd2.js";
|
|
19
|
+
import { Tooltip as r } from "../../primitives/Tooltip2.js";
|
|
20
|
+
function i(e, n) {
|
|
21
|
+
e -= 260;
|
|
22
|
+
let r = t(), a = r[e];
|
|
23
|
+
i.QAvxvB === void 0 && (i.eHaljV = function(e) {
|
|
24
|
+
let t = "", n = "";
|
|
25
|
+
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);
|
|
26
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
27
|
+
return decodeURIComponent(n);
|
|
28
|
+
}, i.yTorLt = {}, i.QAvxvB = !0);
|
|
29
|
+
let o = r[0];
|
|
30
|
+
i.VDJefR !== o && (i.yTorLt = {}, i.VDJefR = o);
|
|
31
|
+
let s = i.yTorLt[e];
|
|
32
|
+
return s === void 0 ? (a = i.eHaljV(a), i.yTorLt[e] = a) : a = s, a;
|
|
33
|
+
}
|
|
34
|
+
import { Box as a, Inline as o, Stack as s } from "../../primitives/Layout2.js";
|
|
35
|
+
import { useControllableState as c } from "../../hooks/useControllableState.js";
|
|
36
|
+
import { Button as l, Textarea as u, cx as d } from "../../primitives/index.js";
|
|
37
|
+
/* empty css */
|
|
38
|
+
import { useRef as f } from "react";
|
|
39
|
+
import { ArrowUp as p, Plus as m, Square as h } from "lucide-react";
|
|
40
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
41
|
+
function y({ value: t, defaultValue: y = "", onValueChange: b, onSubmit: x, placeholder: S = e(279), disabled: C, pending: w, onStop: T, onAttach: E, attachLabel: D = e(282), tools: O, actions: k, attachments: A, footer: j, maxRows: M, size: N = "md", autoFocus: P, name: F, "aria-label": I = e(270), className: L }) {
|
|
42
|
+
let R = e, [z, B] = c(t, y, b), V = f(null), H = !C && !w && z.trim() !== "", U = N === "sm", W = () => {
|
|
43
|
+
H && (x?.(z), B(""));
|
|
44
|
+
}, G = (e) => {
|
|
45
|
+
let t = i;
|
|
46
|
+
e[t(298)].isComposing || (e.key === t(297) && !e[t(269)] ? (e.preventDefault(), W()) : e[t(260)] === t(291) && w && T?.());
|
|
47
|
+
}, K = (e) => {
|
|
48
|
+
let t = i, n = e[t(302)];
|
|
49
|
+
!C && e[t(267)][t(296)](n) && (n[t(261)](t(278)) || (e[t(265)](), V[t(289)]?.[t(294)]()));
|
|
50
|
+
}, q = U ? "sm" : "md", J = _(u, {
|
|
51
|
+
ref: V,
|
|
52
|
+
className: R(266),
|
|
53
|
+
bare: !0,
|
|
54
|
+
autoResize: !0,
|
|
55
|
+
maxRows: M ?? (U ? 4 : 8),
|
|
56
|
+
value: z,
|
|
57
|
+
onChange: (e) => B(e[R(302)][R(293)]),
|
|
58
|
+
onKeyDown: G,
|
|
59
|
+
placeholder: S,
|
|
60
|
+
disabled: C,
|
|
61
|
+
autoFocus: P,
|
|
62
|
+
name: F,
|
|
63
|
+
"aria-label": I
|
|
64
|
+
}), Y = E && _(l, {
|
|
65
|
+
variant: R(290),
|
|
66
|
+
size: q,
|
|
67
|
+
iconOnly: !0,
|
|
68
|
+
icon: _(m, {}),
|
|
69
|
+
"aria-label": D,
|
|
70
|
+
onClick: E,
|
|
71
|
+
disabled: C
|
|
72
|
+
}), X = w ? _(r, {
|
|
73
|
+
content: v(g, { children: [R(263), _(n, {
|
|
74
|
+
keys: [R(268)],
|
|
75
|
+
size: "sm"
|
|
76
|
+
})] }),
|
|
77
|
+
children: _(l, {
|
|
78
|
+
className: "ds-composer__send",
|
|
79
|
+
variant: "primary",
|
|
80
|
+
size: q,
|
|
81
|
+
iconOnly: !0,
|
|
82
|
+
icon: _(h, { fill: R(284) }),
|
|
83
|
+
"aria-label": R(283),
|
|
84
|
+
onClick: T
|
|
85
|
+
})
|
|
86
|
+
}) : _(r, {
|
|
87
|
+
content: v(g, { children: [R(288), _(n, {
|
|
88
|
+
keys: [R(272)],
|
|
89
|
+
size: "sm"
|
|
90
|
+
})] }),
|
|
91
|
+
children: _(l, {
|
|
92
|
+
className: R(287),
|
|
93
|
+
variant: R(303),
|
|
94
|
+
size: q,
|
|
95
|
+
iconOnly: !0,
|
|
96
|
+
icon: _(p, {}),
|
|
97
|
+
"aria-label": R(262),
|
|
98
|
+
disabled: !H,
|
|
99
|
+
onClick: W
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
return v("div", {
|
|
103
|
+
className: d(R(295), U && R(286), L),
|
|
104
|
+
"data-disabled": C || void 0,
|
|
105
|
+
"data-pending": w || void 0,
|
|
106
|
+
onMouseDown: K,
|
|
107
|
+
children: [U ? _(a, {
|
|
108
|
+
padding: 2,
|
|
109
|
+
children: v(s, {
|
|
110
|
+
gap: 2,
|
|
111
|
+
children: [A, v(o, {
|
|
112
|
+
gap: 1,
|
|
113
|
+
align: R(292),
|
|
114
|
+
wrap: !1,
|
|
115
|
+
children: [
|
|
116
|
+
Y,
|
|
117
|
+
O,
|
|
118
|
+
J,
|
|
119
|
+
k,
|
|
120
|
+
X
|
|
121
|
+
]
|
|
122
|
+
})]
|
|
123
|
+
})
|
|
124
|
+
}) : _(a, {
|
|
125
|
+
padding: 3,
|
|
126
|
+
children: v(s, {
|
|
127
|
+
gap: 3,
|
|
128
|
+
children: [
|
|
129
|
+
A,
|
|
130
|
+
J,
|
|
131
|
+
v(o, {
|
|
132
|
+
gap: 2,
|
|
133
|
+
justify: R(280),
|
|
134
|
+
wrap: !1,
|
|
135
|
+
children: [v(o, {
|
|
136
|
+
gap: 2,
|
|
137
|
+
wrap: !1,
|
|
138
|
+
children: [Y, O]
|
|
139
|
+
}), v(o, {
|
|
140
|
+
gap: 1,
|
|
141
|
+
wrap: !1,
|
|
142
|
+
children: [k, X]
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
})
|
|
147
|
+
}), j && _(R(301), {
|
|
148
|
+
className: R(281),
|
|
149
|
+
children: j
|
|
150
|
+
})]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export { y as ChatComposer };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = a;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = a, r = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (parseInt(n(471)) / 1 + -parseInt(n(463)) / 2 + parseInt(n(450)) / 3 + parseInt(n(446)) / 4 + parseInt(n(462)) / 5 + -parseInt(n(470)) / 6 * (parseInt(n(452)) / 7) + parseInt(n(465)) / 8 * (-parseInt(n(472)) / 9) == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
r.push(r.shift());
|
|
10
|
+
}
|
|
11
|
+
})(i, 960925);
|
|
12
|
+
import { CopyButton as t } from "../../primitives/CopyButton2.js";
|
|
13
|
+
import { cx as n } from "../../primitives/index.js";
|
|
14
|
+
import { tokenize as r } from "./highlight.js";
|
|
15
|
+
function i() {
|
|
16
|
+
let e = /* @__PURE__ */ "zhmTy29Kzv9FDgL0Bgu.nJzmq3nwvKC.mta0ndiWmgvdz2XPCa.mtuZvuzcAgLJ.zhmTy29Kzv9FBw9Yzq.zhmTy29Kzs0Ty29TBwfUza.BwfW.yMfZAa.oti4odK2swL6yM1n.zhmTy29Kzv9FAgvHza.y29Kzq.DhLWzq.mtq0nZCZn2jVz2fpwa.zhmTy29Kzv9FAw5SAw5L.mZyXnZeXyxHxuM9k.zhmTy29Kzv9Fz3v0DgvY.7l2u65oCioUnLcdRS7tQUlaGWRCG.zhmTy29Kzv9FChjLigrZlxnJCM9SBa.ChjL.zgL2.yNv0Dg9U.Dgv4Da.zNjVBq.C3bSAxq.odm0mZCWnu5qCLfcrW.mJm3mdi5nfvUrLDoqW.BgvUz3rO.mZm1nJu2tvfryvjQ.CMvWBgfJzq.zhmTy29Kzq.C3bHBG".split(".");
|
|
17
|
+
return i = function() {
|
|
18
|
+
return e;
|
|
19
|
+
}, i();
|
|
20
|
+
}
|
|
21
|
+
/* empty css */
|
|
22
|
+
function a(e, t) {
|
|
23
|
+
e -= 444;
|
|
24
|
+
let n = i(), r = n[e];
|
|
25
|
+
a.TUKGCh === void 0 && (a.QkwDjE = 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
|
+
}, a.AsHpyq = {}, a.TUKGCh = !0);
|
|
31
|
+
let o = n[0];
|
|
32
|
+
a.tAbTlm !== o && (a.AsHpyq = {}, a.tAbTlm = o);
|
|
33
|
+
let s = a.AsHpyq[e];
|
|
34
|
+
return s === void 0 ? (r = a.QkwDjE(r), a.AsHpyq[e] = r) : r = s, r;
|
|
35
|
+
}
|
|
36
|
+
import { useMemo as o, useState as s } from "react";
|
|
37
|
+
import { ChevronDown as c } from "lucide-react";
|
|
38
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
39
|
+
function d({ code: e, language: i = "tsx", title: d, command: p, showLineNumbers: m, maxHeight: h, copyable: g = !0, className: _ }) {
|
|
40
|
+
let v = a, y = e[v(466)](/\n+$/, ""), b = o(() => r(y, p ? v(445) : i), [
|
|
41
|
+
y,
|
|
42
|
+
i,
|
|
43
|
+
p
|
|
44
|
+
]), [x, S] = s(!1), C = y[v(461)]("\n")[v(464)], w = !!h && C * 22 > h;
|
|
45
|
+
return p ? u("div", {
|
|
46
|
+
className: n(v(467), v(474), _),
|
|
47
|
+
children: [
|
|
48
|
+
l(v(468), {
|
|
49
|
+
className: "ds-code__prompt",
|
|
50
|
+
"aria-hidden": !0,
|
|
51
|
+
children: "$"
|
|
52
|
+
}),
|
|
53
|
+
l("code", {
|
|
54
|
+
className: v(451),
|
|
55
|
+
children: f(b)
|
|
56
|
+
}),
|
|
57
|
+
g && l(t, { value: y })
|
|
58
|
+
]
|
|
59
|
+
}) : u(v(457), {
|
|
60
|
+
className: n(v(467), _),
|
|
61
|
+
"data-collapsed": w && !x || void 0,
|
|
62
|
+
children: [
|
|
63
|
+
(d || g) && u("div", {
|
|
64
|
+
className: v(447),
|
|
65
|
+
children: [l(v(468), {
|
|
66
|
+
className: v(469),
|
|
67
|
+
children: d
|
|
68
|
+
}), g && l(t, { value: y })]
|
|
69
|
+
}),
|
|
70
|
+
u(v(456), {
|
|
71
|
+
className: v(455),
|
|
72
|
+
style: w && !x ? { maxHeight: h } : void 0,
|
|
73
|
+
children: [m && l("span", {
|
|
74
|
+
className: v(453),
|
|
75
|
+
"aria-hidden": !0,
|
|
76
|
+
children: Array[v(460)]({ length: C }, (e, t) => l(v(468), { children: t + 1 }, t))
|
|
77
|
+
}), l(v(448), { children: f(b) })]
|
|
78
|
+
}),
|
|
79
|
+
w && u(v(458), {
|
|
80
|
+
type: v(458),
|
|
81
|
+
className: v(473),
|
|
82
|
+
"data-expanded": x || void 0,
|
|
83
|
+
onClick: () => S((e) => !e),
|
|
84
|
+
children: [x ? "접기" : v(454) + C + "줄", l(c, {})]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
var f = (t) => t[e(444)]((t, n) => t[e(449)] === "plain" ? t[e(459)] : l("span", {
|
|
90
|
+
className: "ds-code__t-" + t[e(449)],
|
|
91
|
+
children: t.text
|
|
92
|
+
}, n));
|
|
93
|
+
export { d as CodeBlock };
|