@asanchez-sa/abby 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +245 -2
- package/dist/_virtual/_rolldown/runtime.js +26 -0
- package/dist/agents/approvals.d.ts +46 -0
- package/dist/agents/approvals.js +58 -0
- package/dist/agents/changes.d.ts +21 -0
- package/dist/agents/changes.js +21 -0
- package/dist/agents/hooks.d.ts +20 -0
- package/dist/agents/hooks.js +58 -0
- package/dist/agents/index.d.ts +11 -0
- package/dist/agents/index.js +9 -0
- package/dist/agents/run-tool.d.ts +44 -0
- package/dist/agents/run-tool.js +79 -0
- package/dist/agents/ui-sdk.d.ts +5 -0
- package/dist/agents/ui-sdk.js +3 -0
- package/dist/behaviors/canvas/index.d.ts +2 -0
- package/dist/behaviors/canvas/index.js +1 -0
- package/dist/behaviors/canvas/ui-sdk.d.ts +2 -0
- package/dist/behaviors/canvas/ui-sdk.js +1 -0
- package/dist/behaviors/drag-and-drop/index.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/index.js +1 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.js +1 -0
- package/dist/behaviors/dragging/index.d.ts +2 -0
- package/dist/behaviors/dragging/index.js +1 -0
- package/dist/behaviors/dragging/ui-sdk.d.ts +2 -0
- package/dist/behaviors/dragging/ui-sdk.js +1 -0
- package/dist/behaviors/focus/index.d.ts +2 -0
- package/dist/behaviors/focus/index.js +1 -0
- package/dist/behaviors/focus/ui-sdk.d.ts +2 -0
- package/dist/behaviors/focus/ui-sdk.js +1 -0
- package/dist/behaviors/lists/index.d.ts +3 -0
- package/dist/behaviors/lists/index.js +3 -0
- package/dist/behaviors/lists/ui-sdk.d.ts +3 -0
- package/dist/behaviors/lists/ui-sdk.js +3 -0
- package/dist/behaviors/popups/index.d.ts +3 -0
- package/dist/behaviors/popups/index.js +3 -0
- package/dist/behaviors/popups/ui-sdk.d.ts +3 -0
- package/dist/behaviors/popups/ui-sdk.js +3 -0
- package/dist/behaviors/preferences/index.d.ts +3 -0
- package/dist/behaviors/preferences/index.js +3 -0
- package/dist/behaviors/preferences/ui-sdk.d.ts +3 -0
- package/dist/behaviors/preferences/ui-sdk.js +3 -0
- package/dist/behaviors/selection/index.d.ts +3 -0
- package/dist/behaviors/selection/index.js +3 -0
- package/dist/behaviors/selection/indicator.d.ts +13 -0
- package/dist/behaviors/selection/indicator.js +20 -0
- package/dist/behaviors/selection/ui-sdk.d.ts +2 -0
- package/dist/behaviors/selection/ui-sdk.js +1 -0
- package/dist/behaviors/transitions/index.d.ts +3 -0
- package/dist/behaviors/transitions/index.js +3 -0
- package/dist/behaviors/transitions/ui-sdk.d.ts +3 -0
- package/dist/behaviors/transitions/ui-sdk.js +3 -0
- package/dist/behaviors/trees/index.d.ts +2 -0
- package/dist/behaviors/trees/index.js +1 -0
- package/dist/behaviors/trees/ui-sdk.d.ts +2 -0
- package/dist/behaviors/trees/ui-sdk.js +1 -0
- package/dist/components/accordion/accordion.d.ts +13 -0
- package/dist/components/accordion/accordion.js +165 -0
- package/dist/components/alert/alert.d.ts +13 -0
- package/dist/components/alert/alert.js +131 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +15 -0
- package/dist/components/alert-dialog/alert-dialog.js +257 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +57 -0
- package/dist/components/attachment/attachment.d.ts +48 -0
- package/dist/components/attachment/attachment.js +372 -0
- package/dist/components/autocomplete/autocomplete.d.ts +32 -0
- package/dist/components/autocomplete/autocomplete.js +466 -0
- package/dist/components/avatar/avatar.d.ts +6 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar-group/avatar-group.d.ts +9 -0
- package/dist/components/avatar-group/avatar-group.js +75 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +31 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/breadcrumb.js +279 -0
- package/dist/components/bubble/bubble.d.ts +26 -0
- package/dist/components/bubble/bubble.js +173 -0
- package/dist/components/button/button.d.ts +18 -0
- package/dist/components/button/button.js +91 -0
- package/dist/components/button-group/button-group.d.ts +15 -0
- package/dist/components/button-group/button-group.js +71 -0
- package/dist/components/calendar/calendar.d.ts +29 -0
- package/dist/components/calendar/calendar.js +453 -0
- package/dist/components/card/card.d.ts +14 -0
- package/dist/components/card/card.js +213 -0
- package/dist/components/carousel/carousel.d.ts +16 -0
- package/dist/components/carousel/carousel.js +364 -0
- package/dist/components/chain-of-thought/chain-of-thought.d.ts +72 -0
- package/dist/components/chain-of-thought/chain-of-thought.js +491 -0
- package/dist/components/chat/chat.d.ts +48 -0
- package/dist/components/chat/chat.js +207 -0
- package/dist/components/checkbox/checkbox.d.ts +10 -0
- package/dist/components/checkbox/checkbox.js +118 -0
- package/dist/components/checkpoint/checkpoint.d.ts +24 -0
- package/dist/components/checkpoint/checkpoint.js +178 -0
- package/dist/components/choice-cards/choice-cards.d.ts +38 -0
- package/dist/components/choice-cards/choice-cards.js +255 -0
- package/dist/components/code-block/code-block.d.ts +58 -0
- package/dist/components/code-block/code-block.js +506 -0
- package/dist/components/code-block/highlighter.js +96 -0
- package/dist/components/code-block/use-highlighted-code.d.ts +11 -0
- package/dist/components/code-block/use-highlighted-code.js +54 -0
- package/dist/components/collapsible/collapsible.d.ts +10 -0
- package/dist/components/collapsible/collapsible.js +92 -0
- package/dist/components/color-picker/color-picker.d.ts +17 -0
- package/dist/components/color-picker/color-picker.js +395 -0
- package/dist/components/combobox/combobox.d.ts +54 -0
- package/dist/components/combobox/combobox.js +683 -0
- package/dist/components/command/command.d.ts +23 -0
- package/dist/components/command/command.js +373 -0
- package/dist/components/command-dock/command-dock.d.ts +118 -0
- package/dist/components/command-dock/command-dock.js +944 -0
- package/dist/components/confirmation/confirmation.d.ts +58 -0
- package/dist/components/confirmation/confirmation.js +181 -0
- package/dist/components/context/context.d.ts +82 -0
- package/dist/components/context/context.js +490 -0
- package/dist/components/date-input/date-input.d.ts +16 -0
- package/dist/components/date-input/date-input.js +89 -0
- package/dist/components/date-picker/date-picker.d.ts +28 -0
- package/dist/components/date-picker/date-picker.js +361 -0
- package/dist/components/dialog/dialog.d.ts +14 -0
- package/dist/components/dialog/dialog.js +261 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.js +309 -0
- package/dist/components/empty/empty.d.ts +18 -0
- package/dist/components/empty/empty.js +192 -0
- package/dist/components/field/field.d.ts +15 -0
- package/dist/components/field/field.js +261 -0
- package/dist/components/file-input/file-input.d.ts +12 -0
- package/dist/components/file-input/file-input.js +216 -0
- package/dist/components/file-tree/file-tree.d.ts +45 -0
- package/dist/components/file-tree/file-tree.js +283 -0
- package/dist/components/hover-card/hover-card.d.ts +10 -0
- package/dist/components/hover-card/hover-card.js +118 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/components/icon/icon.js +60 -0
- package/dist/components/image-cropper/image-cropper.d.ts +15 -0
- package/dist/components/image-cropper/image-cropper.js +334 -0
- package/dist/components/inline-citation/inline-citation.d.ts +46 -0
- package/dist/components/inline-citation/inline-citation.js +269 -0
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/input/input.js +43 -0
- package/dist/components/input-group/input-group.d.ts +42 -0
- package/dist/components/input-group/input-group.js +192 -0
- package/dist/components/item/item.d.ts +32 -0
- package/dist/components/item/item.js +394 -0
- package/dist/components/kbd/kbd.d.ts +9 -0
- package/dist/components/kbd/kbd.js +75 -0
- package/dist/components/label/label.d.ts +6 -0
- package/dist/components/label/label.js +40 -0
- package/dist/components/link/link.d.ts +21 -0
- package/dist/components/link/link.js +126 -0
- package/dist/components/listbox/listbox.d.ts +20 -0
- package/dist/components/listbox/listbox.js +199 -0
- package/dist/components/marker/marker.d.ts +11 -0
- package/dist/components/marker/marker.js +88 -0
- package/dist/components/menu/menu.d.ts +38 -0
- package/dist/components/menu/menu.js +553 -0
- package/dist/components/menubar/menubar.d.ts +9 -0
- package/dist/components/menubar/menubar.js +47 -0
- package/dist/components/message/message.d.ts +44 -0
- package/dist/components/message/message.js +328 -0
- package/dist/components/message-scroller/message-scroller.d.ts +111 -0
- package/dist/components/message-scroller/message-scroller.js +957 -0
- package/dist/components/meter/meter.d.ts +8 -0
- package/dist/components/meter/meter.js +162 -0
- package/dist/components/model-selector/model-selector.d.ts +155 -0
- package/dist/components/model-selector/model-selector.js +905 -0
- package/dist/components/native-select/native-select.d.ts +27 -0
- package/dist/components/native-select/native-select.js +226 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +29 -0
- package/dist/components/navigation-menu/navigation-menu.js +318 -0
- package/dist/components/not-label.js +9 -0
- package/dist/components/note-editor/blocks.d.ts +22 -0
- package/dist/components/note-editor/blocks.js +245 -0
- package/dist/components/note-editor/diff.d.ts +19 -0
- package/dist/components/note-editor/diff.js +64 -0
- package/dist/components/note-editor/editor.js +249 -0
- package/dist/components/note-editor/note-editor.d.ts +109 -0
- package/dist/components/note-editor/note-editor.js +954 -0
- package/dist/components/note-editor/parts/comments.d.ts +24 -0
- package/dist/components/note-editor/parts/comments.js +337 -0
- package/dist/components/note-editor/parts/header.d.ts +25 -0
- package/dist/components/note-editor/parts/header.js +263 -0
- package/dist/components/note-editor/parts/history.d.ts +56 -0
- package/dist/components/note-editor/parts/history.js +409 -0
- package/dist/components/note-editor/parts/presence.d.ts +31 -0
- package/dist/components/note-editor/parts/presence.js +140 -0
- package/dist/components/note-editor/parts/suggestions.d.ts +45 -0
- package/dist/components/note-editor/parts/suggestions.js +316 -0
- package/dist/components/note-editor/parts/toolbar.d.ts +38 -0
- package/dist/components/note-editor/parts/toolbar.js +687 -0
- package/dist/components/note-editor/people.d.ts +84 -0
- package/dist/components/note-editor/people.js +276 -0
- package/dist/components/note-editor/person.d.ts +11 -0
- package/dist/components/note-editor/person.js +15 -0
- package/dist/components/note-place/note-place.d.ts +42 -0
- package/dist/components/note-place/note-place.js +256 -0
- package/dist/components/note-status/note-status.d.ts +59 -0
- package/dist/components/note-status/note-status.js +380 -0
- package/dist/components/number-input/number-input.d.ts +12 -0
- package/dist/components/number-input/number-input.js +252 -0
- package/dist/components/otp-input/otp-input.d.ts +12 -0
- package/dist/components/otp-input/otp-input.js +136 -0
- package/dist/components/pagination/pagination.d.ts +23 -0
- package/dist/components/pagination/pagination.js +218 -0
- package/dist/components/password-input/password-input.d.ts +11 -0
- package/dist/components/password-input/password-input.js +117 -0
- package/dist/components/plan/plan.d.ts +51 -0
- package/dist/components/plan/plan.js +320 -0
- package/dist/components/popover/popover.d.ts +16 -0
- package/dist/components/popover/popover.js +268 -0
- package/dist/components/preferences/preferences.d.ts +5 -0
- package/dist/components/preferences/preferences.js +18 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +162 -0
- package/dist/components/prompt-input/prompt-input.d.ts +247 -0
- package/dist/components/prompt-input/prompt-input.js +1367 -0
- package/dist/components/questionnaire/questionnaire.d.ts +174 -0
- package/dist/components/questionnaire/questionnaire.js +1628 -0
- package/dist/components/queue/queue.d.ts +82 -0
- package/dist/components/queue/queue.js +471 -0
- package/dist/components/radio/radio.d.ts +7 -0
- package/dist/components/radio/radio.js +101 -0
- package/dist/components/rating/rating.d.ts +10 -0
- package/dist/components/rating/rating.js +95 -0
- package/dist/components/reasoning/reasoning.d.ts +50 -0
- package/dist/components/reasoning/reasoning.js +233 -0
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/resizable/resizable.js +100 -0
- package/dist/components/scroll-area/scroll-area.d.ts +17 -0
- package/dist/components/scroll-area/scroll-area.js +211 -0
- package/dist/components/segmented-control/segmented-control.d.ts +16 -0
- package/dist/components/segmented-control/segmented-control.js +142 -0
- package/dist/components/select/select.d.ts +43 -0
- package/dist/components/select/select.js +577 -0
- package/dist/components/separator/separator.d.ts +4 -0
- package/dist/components/separator/separator.js +38 -0
- package/dist/components/sheet/sheet.d.ts +24 -0
- package/dist/components/sheet/sheet.js +330 -0
- package/dist/components/sidebar/sidebar.d.ts +138 -0
- package/dist/components/sidebar/sidebar.js +1374 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton.js +40 -0
- package/dist/components/slider/slider.d.ts +9 -0
- package/dist/components/slider/slider.js +193 -0
- package/dist/components/sources/sources.d.ts +35 -0
- package/dist/components/sources/sources.js +209 -0
- package/dist/components/spinner/spinner.d.ts +11 -0
- package/dist/components/spinner/spinner.js +59 -0
- package/dist/components/stack-trace/parse-stack-trace.d.ts +21 -0
- package/dist/components/stack-trace/parse-stack-trace.js +61 -0
- package/dist/components/stack-trace/stack-trace.d.ts +79 -0
- package/dist/components/stack-trace/stack-trace.js +434 -0
- package/dist/components/subagent/subagent.d.ts +71 -0
- package/dist/components/subagent/subagent.js +450 -0
- package/dist/components/suggestion/suggestion.d.ts +21 -0
- package/dist/components/suggestion/suggestion.js +130 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/switch/switch.js +70 -0
- package/dist/components/table/table.d.ts +19 -0
- package/dist/components/table/table.js +284 -0
- package/dist/components/table-of-contents/spy.js +84 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +92 -0
- package/dist/components/table-of-contents/table-of-contents.js +787 -0
- package/dist/components/tabs/tabs.d.ts +25 -0
- package/dist/components/tabs/tabs.js +273 -0
- package/dist/components/task/task.d.ts +40 -0
- package/dist/components/task/task.js +262 -0
- package/dist/components/terminal/terminal.d.ts +82 -0
- package/dist/components/terminal/terminal.js +457 -0
- package/dist/components/test-results/test-results.d.ts +127 -0
- package/dist/components/test-results/test-results.js +687 -0
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +43 -0
- package/dist/components/time-input/time-input.d.ts +7 -0
- package/dist/components/time-input/time-input.js +82 -0
- package/dist/components/timeline/timeline.d.ts +19 -0
- package/dist/components/timeline/timeline.js +247 -0
- package/dist/components/toast/toast.d.ts +12 -0
- package/dist/components/toast/toast.js +285 -0
- package/dist/components/toggle/toggle.d.ts +15 -0
- package/dist/components/toggle/toggle.js +137 -0
- package/dist/components/token-input/token-input.d.ts +7 -0
- package/dist/components/token-input/token-input.js +117 -0
- package/dist/components/tool/tool.d.ts +66 -0
- package/dist/components/tool/tool.js +413 -0
- package/dist/components/toolbar/toolbar.d.ts +91 -0
- package/dist/components/toolbar/toolbar.js +655 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +97 -0
- package/dist/components/trace/trace.d.ts +31 -0
- package/dist/components/trace/trace.js +309 -0
- package/dist/components/tree/tree.d.ts +13 -0
- package/dist/components/tree/tree.js +258 -0
- package/dist/components/trigger-menu/trigger-menu.d.ts +30 -0
- package/dist/components/trigger-menu/trigger-menu.js +352 -0
- package/dist/components/usage/usage.d.ts +132 -0
- package/dist/components/usage/usage.js +1368 -0
- package/dist/components/waterfall/waterfall.d.ts +20 -0
- package/dist/components/waterfall/waterfall.js +360 -0
- package/dist/components/week-strip/week-strip.d.ts +177 -0
- package/dist/components/week-strip/week-strip.js +1081 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.js +27 -0
- package/dist/core/ui-sdk.d.ts +3 -0
- package/dist/core/ui-sdk.js +3 -0
- package/dist/core/use-primitive-state.d.ts +14 -0
- package/dist/core/use-primitive-state.js +25 -0
- package/dist/styles/LICENSE-shadcn.md +21 -0
- package/dist/styles/color-scheme.css +32 -0
- package/dist/styles/components.css +303 -0
- package/dist/styles/index.css +41 -0
- package/dist/styles/tokens.css +474 -0
- package/dist/styles/typeset/shadcn.css +506 -0
- package/dist/styles/typeset.css +70 -0
- package/dist/styles/utilities.css +555 -0
- package/dist/tools/observe/index.d.ts +2 -0
- package/dist/tools/observe/index.js +3 -0
- package/dist/tools/observe/ui-sdk.d.ts +1 -0
- package/dist/tools/observe/ui-sdk.js +2 -0
- package/dist/tools/testing/check-agent.d.ts +28 -0
- package/dist/tools/testing/check-agent.js +42 -0
- package/dist/tools/testing/index.d.ts +4 -0
- package/dist/tools/testing/index.js +4 -0
- package/dist/tools/testing/ui-sdk.d.ts +1 -0
- package/dist/tools/testing/ui-sdk.js +2 -0
- package/dist/utilities/cn/index.d.ts +12 -0
- package/dist/utilities/cn/index.js +47 -0
- package/dist/utilities/color/index.d.ts +2 -0
- package/dist/utilities/color/index.js +3 -0
- package/dist/utilities/color/ui-sdk.d.ts +1 -0
- package/dist/utilities/color/ui-sdk.js +2 -0
- package/dist/utilities/date/index.d.ts +2 -0
- package/dist/utilities/date/index.js +6 -0
- package/dist/utilities/date/ui-sdk.d.ts +1 -0
- package/dist/utilities/date/ui-sdk.js +2 -0
- package/dist/utilities/image/index.d.ts +2 -0
- package/dist/utilities/image/index.js +3 -0
- package/dist/utilities/image/ui-sdk.d.ts +1 -0
- package/dist/utilities/image/ui-sdk.js +2 -0
- package/dist/utilities/mobile/index.d.ts +2 -0
- package/dist/utilities/mobile/index.js +1 -0
- package/dist/utilities/mobile/ui-sdk.d.ts +2 -0
- package/dist/utilities/mobile/ui-sdk.js +1 -0
- package/dist/utilities/number/index.d.ts +2 -0
- package/dist/utilities/number/index.js +3 -0
- package/dist/utilities/number/ui-sdk.d.ts +1 -0
- package/dist/utilities/number/ui-sdk.js +2 -0
- package/dist/utilities/platform/index.d.ts +3 -0
- package/dist/utilities/platform/index.js +14 -0
- package/dist/utilities/platform/ui-sdk.d.ts +3 -0
- package/dist/utilities/platform/ui-sdk.js +3 -0
- package/dist/utilities/storage/index.d.ts +2 -0
- package/dist/utilities/storage/index.js +1 -0
- package/dist/utilities/storage/ui-sdk.d.ts +2 -0
- package/dist/utilities/storage/ui-sdk.js +1 -0
- package/dist/utilities/text/index.d.ts +3 -0
- package/dist/utilities/text/index.js +3 -0
- package/dist/utilities/text/ui-sdk.d.ts +3 -0
- package/dist/utilities/text/ui-sdk.js +3 -0
- package/package.json +192 -4
- package/skills/agent-ready-ui/SKILL.md +229 -0
- package/skills/blocks/SKILL.md +262 -0
- package/skills/compose-screens/SKILL.md +354 -0
- package/skills/note-editor/SKILL.md +493 -0
- package/skills/note-status/SKILL.md +295 -0
- package/skills/setup/SKILL.md +136 -0
- package/skills/theming/SKILL.md +216 -0
- package/src/blocks/notes/adapters.ts +77 -0
- package/src/blocks/notes/data.ts +508 -0
- package/src/blocks/notes/notes-block.tsx +244 -0
- package/src/blocks/notes/parts/home.tsx +219 -0
- package/src/blocks/notes/parts/no-access.tsx +84 -0
- package/src/blocks/notes/parts/note-screen.tsx +412 -0
- package/src/blocks/notes/parts/notes-sidebar.tsx +277 -0
- package/src/blocks/notes/parts/panels.tsx +393 -0
- package/src/blocks/notes/parts/place.ts +15 -0
- package/src/blocks/notes/parts/review-dialog.tsx +159 -0
- package/src/blocks/notes/parts/share.tsx +172 -0
- package/src/blocks/notes/texts.ts +135 -0
- package/src/blocks/shell/adapters.ts +69 -0
- package/src/blocks/shell/data.ts +281 -0
- package/src/blocks/shell/parts/compose.tsx +292 -0
- package/src/blocks/shell/parts/home.tsx +203 -0
- package/src/blocks/shell/parts/marks.tsx +144 -0
- package/src/blocks/shell/parts/rail.tsx +166 -0
- package/src/blocks/shell/parts/rooms-column.tsx +326 -0
- package/src/blocks/shell/shell-block.tsx +210 -0
- package/src/blocks/shell/texts.ts +80 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { buttonLook } from "../button/button.js";
|
|
3
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Tooltip as Tooltip$1, TooltipContent as TooltipContent$1, TooltipTrigger as TooltipTrigger$1, createTooltipController } from "@ui-sdk/react/tooltip";
|
|
7
|
+
// src/components/tooltip/tooltip.tsx
|
|
8
|
+
function Tooltip(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(Tooltip$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
function TooltipTrigger(t0) {
|
|
19
|
+
const $ = c(12);
|
|
20
|
+
let className;
|
|
21
|
+
let props;
|
|
22
|
+
let size;
|
|
23
|
+
let variant;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({variant, size, className, ...props} = t0);
|
|
26
|
+
$[0] = t0;
|
|
27
|
+
$[1] = className;
|
|
28
|
+
$[2] = props;
|
|
29
|
+
$[3] = size;
|
|
30
|
+
$[4] = variant;
|
|
31
|
+
} else {
|
|
32
|
+
className = $[1];
|
|
33
|
+
props = $[2];
|
|
34
|
+
size = $[3];
|
|
35
|
+
variant = $[4];
|
|
36
|
+
}
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
39
|
+
t1 = cnState(buttonLook({
|
|
40
|
+
variant,
|
|
41
|
+
size
|
|
42
|
+
}), className);
|
|
43
|
+
$[5] = className;
|
|
44
|
+
$[6] = size;
|
|
45
|
+
$[7] = variant;
|
|
46
|
+
$[8] = t1;
|
|
47
|
+
} else t1 = $[8];
|
|
48
|
+
let t2;
|
|
49
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
50
|
+
t2 = /* @__PURE__ */ jsx(TooltipTrigger$1, {
|
|
51
|
+
className: t1,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
$[9] = props;
|
|
55
|
+
$[10] = t1;
|
|
56
|
+
$[11] = t2;
|
|
57
|
+
} else t2 = $[11];
|
|
58
|
+
return t2;
|
|
59
|
+
}
|
|
60
|
+
function TooltipContent(t0) {
|
|
61
|
+
const $ = c(10);
|
|
62
|
+
let className;
|
|
63
|
+
let props;
|
|
64
|
+
let t1;
|
|
65
|
+
if ($[0] !== t0) {
|
|
66
|
+
({className, sideOffset: t1, ...props} = t0);
|
|
67
|
+
$[0] = t0;
|
|
68
|
+
$[1] = className;
|
|
69
|
+
$[2] = props;
|
|
70
|
+
$[3] = t1;
|
|
71
|
+
} else {
|
|
72
|
+
className = $[1];
|
|
73
|
+
props = $[2];
|
|
74
|
+
t1 = $[3];
|
|
75
|
+
}
|
|
76
|
+
const sideOffset = t1 === void 0 ? 4 : t1;
|
|
77
|
+
let t2;
|
|
78
|
+
if ($[4] !== className) {
|
|
79
|
+
t2 = cnState("w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background popup-motion [--popup-duration:var(--transition-duration-quick)] data-starting-style:scale-[0.97] data-closed:scale-[0.97]", className);
|
|
80
|
+
$[4] = className;
|
|
81
|
+
$[5] = t2;
|
|
82
|
+
} else t2 = $[5];
|
|
83
|
+
let t3;
|
|
84
|
+
if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
|
|
85
|
+
t3 = /* @__PURE__ */ jsx(TooltipContent$1, {
|
|
86
|
+
sideOffset,
|
|
87
|
+
className: t2,
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
$[6] = props;
|
|
91
|
+
$[7] = sideOffset;
|
|
92
|
+
$[8] = t2;
|
|
93
|
+
$[9] = t3;
|
|
94
|
+
} else t3 = $[9];
|
|
95
|
+
return t3;
|
|
96
|
+
}
|
|
97
|
+
export { Tooltip, TooltipContent, TooltipTrigger, createTooltipController };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Collapsible, CollapsibleController, CollapsiblePanel, CollapsibleTrigger, createCollapsibleController } from "../collapsible/collapsible.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
3
|
+
/** A list of lines. A link or a button that wraps a line takes the line's shape and a focus ring. */
|
|
4
|
+
declare function Trace({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
5
|
+
type TraceLineProps = ComponentProps<"span"> & {
|
|
6
|
+
/** `running` shimmers the title, `error` turns the line destructive and `pending` dims its icon. */
|
|
7
|
+
status?: "running" | "error" | "pending";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* One step. shadcn dims a pending line whole; abby dims only its icon, since
|
|
11
|
+
* dimmed text falls under 4.5:1.
|
|
12
|
+
*/
|
|
13
|
+
declare function TraceLine({ className, status, ...props }: TraceLineProps): import("react").JSX.Element;
|
|
14
|
+
/** The line's icon. It is decorative: the title says what the step is. */
|
|
15
|
+
declare function TraceIcon({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
16
|
+
declare function TraceTitle({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
17
|
+
/** What follows the title: a duration, a count, an exit code. */
|
|
18
|
+
declare function TraceDescription({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
19
|
+
type TraceCollapsibleProps = ComponentProps<typeof Collapsible>;
|
|
20
|
+
/** A line that opens its details. It takes Collapsible's props: `open`, `defaultOpen`, `onOpenChange`, `controller`. */
|
|
21
|
+
declare function TraceCollapsible({ className, ...props }: TraceCollapsibleProps): import("react").JSX.Element;
|
|
22
|
+
/** The button around a `TraceLine`. It adds the chevron after the line. */
|
|
23
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: Omit<ComponentProps<typeof CollapsibleTrigger>, "children"> & {
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
/** The details, indented under the line with a rule down their side. `className` goes on the inner box. */
|
|
27
|
+
declare function TraceCollapsibleContent({ className, children, ...props }: Omit<ComponentProps<typeof CollapsiblePanel>, "className" | "children"> & {
|
|
28
|
+
className?: string;
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, type CollapsibleController as TraceCollapsibleController, type TraceCollapsibleProps, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, type TraceLineProps, TraceTitle, createCollapsibleController as createTraceCollapsibleController };
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn, cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { Collapsible, CollapsiblePanel, CollapsibleTrigger, createCollapsibleController } from "../collapsible/collapsible.js";
|
|
4
|
+
import { Icon } from "../icon/icon.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { ArrowRight01Icon } from "@hugeicons/core-free-icons";
|
|
8
|
+
// src/components/trace/trace.tsx
|
|
9
|
+
/** A list of lines. A link or a button that wraps a line takes the line's shape and a focus ring. */
|
|
10
|
+
function Trace(t0) {
|
|
11
|
+
const $ = c(8);
|
|
12
|
+
let className;
|
|
13
|
+
let props;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({className, ...props} = t0);
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = className;
|
|
18
|
+
$[2] = props;
|
|
19
|
+
} else {
|
|
20
|
+
className = $[1];
|
|
21
|
+
props = $[2];
|
|
22
|
+
}
|
|
23
|
+
let t1;
|
|
24
|
+
if ($[3] !== className) {
|
|
25
|
+
t1 = cn("flex w-full min-w-0 flex-col gap-2 *:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit *:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0 *:has-[>[data-slot=trace-line]]:rounded-md *:has-[>[data-slot=trace-line]]:text-start *:has-[>[data-slot=trace-line]]:focus-ring", className);
|
|
26
|
+
$[3] = className;
|
|
27
|
+
$[4] = t1;
|
|
28
|
+
} else t1 = $[4];
|
|
29
|
+
let t2;
|
|
30
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
31
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
32
|
+
"data-slot": "trace",
|
|
33
|
+
className: t1,
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
$[5] = props;
|
|
37
|
+
$[6] = t1;
|
|
38
|
+
$[7] = t2;
|
|
39
|
+
} else t2 = $[7];
|
|
40
|
+
return t2;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* One step. shadcn dims a pending line whole; abby dims only its icon, since
|
|
44
|
+
* dimmed text falls under 4.5:1.
|
|
45
|
+
*/
|
|
46
|
+
function TraceLine(t0) {
|
|
47
|
+
const $ = c(10);
|
|
48
|
+
let className;
|
|
49
|
+
let props;
|
|
50
|
+
let status;
|
|
51
|
+
if ($[0] !== t0) {
|
|
52
|
+
({className, status, ...props} = t0);
|
|
53
|
+
$[0] = t0;
|
|
54
|
+
$[1] = className;
|
|
55
|
+
$[2] = props;
|
|
56
|
+
$[3] = status;
|
|
57
|
+
} else {
|
|
58
|
+
className = $[1];
|
|
59
|
+
props = $[2];
|
|
60
|
+
status = $[3];
|
|
61
|
+
}
|
|
62
|
+
let t1;
|
|
63
|
+
if ($[4] !== className) {
|
|
64
|
+
t1 = cn("flex w-fit max-w-full min-w-0 items-center gap-2 text-sm text-muted-foreground transition-colors in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground data-[status=error]:text-destructive data-[status=error]:in-[a:hover,button:hover]:text-destructive data-[status=pending]:*:data-[slot=trace-icon]:opacity-60 data-[status=running]:*:data-[slot=trace-title]:shimmer", className);
|
|
65
|
+
$[4] = className;
|
|
66
|
+
$[5] = t1;
|
|
67
|
+
} else t1 = $[5];
|
|
68
|
+
let t2;
|
|
69
|
+
if ($[6] !== props || $[7] !== status || $[8] !== t1) {
|
|
70
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
71
|
+
"data-slot": "trace-line",
|
|
72
|
+
"data-status": status,
|
|
73
|
+
className: t1,
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
$[6] = props;
|
|
77
|
+
$[7] = status;
|
|
78
|
+
$[8] = t1;
|
|
79
|
+
$[9] = t2;
|
|
80
|
+
} else t2 = $[9];
|
|
81
|
+
return t2;
|
|
82
|
+
}
|
|
83
|
+
/** The line's icon. It is decorative: the title says what the step is. */
|
|
84
|
+
function TraceIcon(t0) {
|
|
85
|
+
const $ = c(8);
|
|
86
|
+
let className;
|
|
87
|
+
let props;
|
|
88
|
+
if ($[0] !== t0) {
|
|
89
|
+
({className, ...props} = t0);
|
|
90
|
+
$[0] = t0;
|
|
91
|
+
$[1] = className;
|
|
92
|
+
$[2] = props;
|
|
93
|
+
} else {
|
|
94
|
+
className = $[1];
|
|
95
|
+
props = $[2];
|
|
96
|
+
}
|
|
97
|
+
let t1;
|
|
98
|
+
if ($[3] !== className) {
|
|
99
|
+
t1 = cn("flex size-4 shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [[data-slot=trace-title]~&]:-ms-1", className);
|
|
100
|
+
$[3] = className;
|
|
101
|
+
$[4] = t1;
|
|
102
|
+
} else t1 = $[4];
|
|
103
|
+
let t2;
|
|
104
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
105
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
106
|
+
"data-slot": "trace-icon",
|
|
107
|
+
"aria-hidden": "true",
|
|
108
|
+
className: t1,
|
|
109
|
+
...props
|
|
110
|
+
});
|
|
111
|
+
$[5] = props;
|
|
112
|
+
$[6] = t1;
|
|
113
|
+
$[7] = t2;
|
|
114
|
+
} else t2 = $[7];
|
|
115
|
+
return t2;
|
|
116
|
+
}
|
|
117
|
+
function TraceTitle(t0) {
|
|
118
|
+
const $ = c(8);
|
|
119
|
+
let className;
|
|
120
|
+
let props;
|
|
121
|
+
if ($[0] !== t0) {
|
|
122
|
+
({className, ...props} = t0);
|
|
123
|
+
$[0] = t0;
|
|
124
|
+
$[1] = className;
|
|
125
|
+
$[2] = props;
|
|
126
|
+
} else {
|
|
127
|
+
className = $[1];
|
|
128
|
+
props = $[2];
|
|
129
|
+
}
|
|
130
|
+
let t1;
|
|
131
|
+
if ($[3] !== className) {
|
|
132
|
+
t1 = cn("min-w-0 truncate", className);
|
|
133
|
+
$[3] = className;
|
|
134
|
+
$[4] = t1;
|
|
135
|
+
} else t1 = $[4];
|
|
136
|
+
let t2;
|
|
137
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
138
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
139
|
+
"data-slot": "trace-title",
|
|
140
|
+
className: t1,
|
|
141
|
+
...props
|
|
142
|
+
});
|
|
143
|
+
$[5] = props;
|
|
144
|
+
$[6] = t1;
|
|
145
|
+
$[7] = t2;
|
|
146
|
+
} else t2 = $[7];
|
|
147
|
+
return t2;
|
|
148
|
+
}
|
|
149
|
+
/** What follows the title: a duration, a count, an exit code. */
|
|
150
|
+
function TraceDescription(t0) {
|
|
151
|
+
const $ = c(8);
|
|
152
|
+
let className;
|
|
153
|
+
let props;
|
|
154
|
+
if ($[0] !== t0) {
|
|
155
|
+
({className, ...props} = t0);
|
|
156
|
+
$[0] = t0;
|
|
157
|
+
$[1] = className;
|
|
158
|
+
$[2] = props;
|
|
159
|
+
} else {
|
|
160
|
+
className = $[1];
|
|
161
|
+
props = $[2];
|
|
162
|
+
}
|
|
163
|
+
let t1;
|
|
164
|
+
if ($[3] !== className) {
|
|
165
|
+
t1 = cn("shrink-0 text-muted-foreground tabular-nums", className);
|
|
166
|
+
$[3] = className;
|
|
167
|
+
$[4] = t1;
|
|
168
|
+
} else t1 = $[4];
|
|
169
|
+
let t2;
|
|
170
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
171
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
172
|
+
"data-slot": "trace-description",
|
|
173
|
+
className: t1,
|
|
174
|
+
...props
|
|
175
|
+
});
|
|
176
|
+
$[5] = props;
|
|
177
|
+
$[6] = t1;
|
|
178
|
+
$[7] = t2;
|
|
179
|
+
} else t2 = $[7];
|
|
180
|
+
return t2;
|
|
181
|
+
}
|
|
182
|
+
/** A line that opens its details. It takes Collapsible's props: `open`, `defaultOpen`, `onOpenChange`, `controller`. */
|
|
183
|
+
function TraceCollapsible(t0) {
|
|
184
|
+
const $ = c(8);
|
|
185
|
+
let className;
|
|
186
|
+
let props;
|
|
187
|
+
if ($[0] !== t0) {
|
|
188
|
+
({className, ...props} = t0);
|
|
189
|
+
$[0] = t0;
|
|
190
|
+
$[1] = className;
|
|
191
|
+
$[2] = props;
|
|
192
|
+
} else {
|
|
193
|
+
className = $[1];
|
|
194
|
+
props = $[2];
|
|
195
|
+
}
|
|
196
|
+
let t1;
|
|
197
|
+
if ($[3] !== className) {
|
|
198
|
+
t1 = cnState("flex w-full min-w-0 flex-col", className);
|
|
199
|
+
$[3] = className;
|
|
200
|
+
$[4] = t1;
|
|
201
|
+
} else t1 = $[4];
|
|
202
|
+
let t2;
|
|
203
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
204
|
+
t2 = /* @__PURE__ */ jsx(Collapsible, {
|
|
205
|
+
"data-slot": "trace-collapsible",
|
|
206
|
+
className: t1,
|
|
207
|
+
...props
|
|
208
|
+
});
|
|
209
|
+
$[5] = props;
|
|
210
|
+
$[6] = t1;
|
|
211
|
+
$[7] = t2;
|
|
212
|
+
} else t2 = $[7];
|
|
213
|
+
return t2;
|
|
214
|
+
}
|
|
215
|
+
/** The button around a `TraceLine`. It adds the chevron after the line. */
|
|
216
|
+
function TraceCollapsibleTrigger(t0) {
|
|
217
|
+
const $ = c(11);
|
|
218
|
+
let children;
|
|
219
|
+
let className;
|
|
220
|
+
let props;
|
|
221
|
+
if ($[0] !== t0) {
|
|
222
|
+
({className, children, ...props} = t0);
|
|
223
|
+
$[0] = t0;
|
|
224
|
+
$[1] = children;
|
|
225
|
+
$[2] = className;
|
|
226
|
+
$[3] = props;
|
|
227
|
+
} else {
|
|
228
|
+
children = $[1];
|
|
229
|
+
className = $[2];
|
|
230
|
+
props = $[3];
|
|
231
|
+
}
|
|
232
|
+
let t1;
|
|
233
|
+
if ($[4] !== className) {
|
|
234
|
+
t1 = cnState("group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1 text-start text-muted-foreground transition-colors hover:text-foreground has-data-[status=error]:text-destructive", className);
|
|
235
|
+
$[4] = className;
|
|
236
|
+
$[5] = t1;
|
|
237
|
+
} else t1 = $[5];
|
|
238
|
+
let t2;
|
|
239
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
240
|
+
t2 = /* @__PURE__ */ jsx(TraceIcon, {
|
|
241
|
+
className: "transition-transform ease-out group-data-open/trace-collapsible-trigger:rotate-90 motion-reduce:transition-none rtl:group-not-data-open/trace-collapsible-trigger:rotate-180",
|
|
242
|
+
children: /* @__PURE__ */ jsx(Icon, { icon: ArrowRight01Icon })
|
|
243
|
+
});
|
|
244
|
+
$[6] = t2;
|
|
245
|
+
} else t2 = $[6];
|
|
246
|
+
let t3;
|
|
247
|
+
if ($[7] !== children || $[8] !== props || $[9] !== t1) {
|
|
248
|
+
t3 = /* @__PURE__ */ jsxs(CollapsibleTrigger, {
|
|
249
|
+
"data-slot": "trace-collapsible-trigger",
|
|
250
|
+
className: t1,
|
|
251
|
+
...props,
|
|
252
|
+
children: [children, t2]
|
|
253
|
+
});
|
|
254
|
+
$[7] = children;
|
|
255
|
+
$[8] = props;
|
|
256
|
+
$[9] = t1;
|
|
257
|
+
$[10] = t3;
|
|
258
|
+
} else t3 = $[10];
|
|
259
|
+
return t3;
|
|
260
|
+
}
|
|
261
|
+
/** The details, indented under the line with a rule down their side. `className` goes on the inner box. */
|
|
262
|
+
function TraceCollapsibleContent(t0) {
|
|
263
|
+
const $ = c(12);
|
|
264
|
+
let children;
|
|
265
|
+
let className;
|
|
266
|
+
let props;
|
|
267
|
+
if ($[0] !== t0) {
|
|
268
|
+
({className, children, ...props} = t0);
|
|
269
|
+
$[0] = t0;
|
|
270
|
+
$[1] = children;
|
|
271
|
+
$[2] = className;
|
|
272
|
+
$[3] = props;
|
|
273
|
+
} else {
|
|
274
|
+
children = $[1];
|
|
275
|
+
className = $[2];
|
|
276
|
+
props = $[3];
|
|
277
|
+
}
|
|
278
|
+
let t1;
|
|
279
|
+
if ($[4] !== className) {
|
|
280
|
+
t1 = cn("ms-[calc(--spacing(2)-1px)] mt-2 mb-1 min-w-0 border-s ps-4 pe-1 leading-relaxed wrap-break-word text-muted-foreground", className);
|
|
281
|
+
$[4] = className;
|
|
282
|
+
$[5] = t1;
|
|
283
|
+
} else t1 = $[5];
|
|
284
|
+
let t2;
|
|
285
|
+
if ($[6] !== children || $[7] !== t1) {
|
|
286
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
287
|
+
"data-slot": "trace-collapsible-content-inner",
|
|
288
|
+
className: t1,
|
|
289
|
+
children
|
|
290
|
+
});
|
|
291
|
+
$[6] = children;
|
|
292
|
+
$[7] = t1;
|
|
293
|
+
$[8] = t2;
|
|
294
|
+
} else t2 = $[8];
|
|
295
|
+
let t3;
|
|
296
|
+
if ($[9] !== props || $[10] !== t2) {
|
|
297
|
+
t3 = /* @__PURE__ */ jsx(CollapsiblePanel, {
|
|
298
|
+
"data-slot": "trace-collapsible-content",
|
|
299
|
+
className: "min-w-0",
|
|
300
|
+
...props,
|
|
301
|
+
children: t2
|
|
302
|
+
});
|
|
303
|
+
$[9] = props;
|
|
304
|
+
$[10] = t2;
|
|
305
|
+
$[11] = t3;
|
|
306
|
+
} else t3 = $[11];
|
|
307
|
+
return t3;
|
|
308
|
+
}
|
|
309
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, createCollapsibleController as createTraceCollapsibleController };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { TreeGroup as TreeGroup$1, TreeItem as TreeItem$1, TreeItemCheckbox as TreeItemCheckbox$1, TreeItemData, TreeItemIndicator as TreeItemIndicator$1, TreeItemLabel as TreeItemLabel$1, TreeMode, TreeProps, TreeRow, TreeValue, createTreeController, toggleTreeChecked, treeCheckedStates, treeFromPaths, visibleTreeRows } from "@ui-sdk/react/tree";
|
|
3
|
+
/** Without children it renders its `items` or `paths`, each row with its arrow and, with `checkable`, its checkbox. */
|
|
4
|
+
declare function Tree<Mode extends TreeMode = "single">({ className, children, ...props }: TreeProps<Mode>): import("react").JSX.Element;
|
|
5
|
+
declare function TreeItem({ className, ...props }: ComponentProps<typeof TreeItem$1>): import("react").JSX.Element;
|
|
6
|
+
/** The item's row. It indents by the item's depth, and leaves room for the arrow when it has none. */
|
|
7
|
+
declare function TreeItemLabel({ className, ...props }: ComponentProps<typeof TreeItemLabel$1>): import("react").JSX.Element;
|
|
8
|
+
/** Without children it shows an arrow that turns as the branch expands, a spinner while its children load and a retry mark after they failed. */
|
|
9
|
+
declare function TreeItemIndicator({ className, children, ...props }: ComponentProps<typeof TreeItemIndicator$1>): import("react").JSX.Element;
|
|
10
|
+
/** Looks like abby's `Checkbox`. Without children it shows a check, or a dash while only some of its branch is checked. */
|
|
11
|
+
declare function TreeItemCheckbox({ className, children, ...props }: ComponentProps<typeof TreeItemCheckbox$1>): import("react").JSX.Element;
|
|
12
|
+
declare function TreeGroup({ className, ...props }: ComponentProps<typeof TreeGroup$1>): import("react").JSX.Element;
|
|
13
|
+
export { Tree, TreeGroup, TreeItem, TreeItemCheckbox, type TreeItemData, TreeItemIndicator, TreeItemLabel, type TreeMode, type TreeProps, type TreeRow, type TreeValue, createTreeController, toggleTreeChecked, treeCheckedStates, treeFromPaths, visibleTreeRows };
|