@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,320 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../utilities/cn/index.js";
|
|
3
|
+
import { Icon } from "../icon/icon.js";
|
|
4
|
+
import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "../trace/trace.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { createContext, useContext } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { CheckmarkCircle02Icon, CircleDotIcon, CircleIcon, Route01Icon } from "@hugeicons/core-free-icons";
|
|
9
|
+
// src/components/plan/plan.tsx
|
|
10
|
+
const PlanContext = createContext(null);
|
|
11
|
+
/** What `Plan` shares with its parts. Call it inside a `Plan`. */
|
|
12
|
+
function usePlan() {
|
|
13
|
+
const context = useContext(PlanContext);
|
|
14
|
+
if (!context) throw new Error("Plan's parts must be used within Plan.");
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A plan: a `PlanHeader`, a `PlanContent` with its `PlanStep`s, and optionally
|
|
19
|
+
* a `PlanAction` and a `PlanFooter`. It takes Collapsible's props.
|
|
20
|
+
*/
|
|
21
|
+
function Plan(t0) {
|
|
22
|
+
const $ = c(16);
|
|
23
|
+
let children;
|
|
24
|
+
let className;
|
|
25
|
+
let props;
|
|
26
|
+
let t1;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({isStreaming: t1, className, children, ...props} = t0);
|
|
29
|
+
$[0] = t0;
|
|
30
|
+
$[1] = children;
|
|
31
|
+
$[2] = className;
|
|
32
|
+
$[3] = props;
|
|
33
|
+
$[4] = t1;
|
|
34
|
+
} else {
|
|
35
|
+
children = $[1];
|
|
36
|
+
className = $[2];
|
|
37
|
+
props = $[3];
|
|
38
|
+
t1 = $[4];
|
|
39
|
+
}
|
|
40
|
+
const isStreaming = t1 === void 0 ? false : t1;
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[5] !== isStreaming) {
|
|
43
|
+
t2 = { isStreaming };
|
|
44
|
+
$[5] = isStreaming;
|
|
45
|
+
$[6] = t2;
|
|
46
|
+
} else t2 = $[6];
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[7] !== children || $[8] !== props) {
|
|
49
|
+
t3 = /* @__PURE__ */ jsx(TraceCollapsible, {
|
|
50
|
+
className: "has-[>[data-slot=plan-action]]:grid has-[>[data-slot=plan-action]]:grid-cols-[minmax(0,1fr)_auto] has-[>[data-slot=plan-action]]:items-center has-[>[data-slot=plan-action]]:gap-x-2 [&>div:not([data-slot=plan-action])]:col-span-full",
|
|
51
|
+
...props,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
$[7] = children;
|
|
55
|
+
$[8] = props;
|
|
56
|
+
$[9] = t3;
|
|
57
|
+
} else t3 = $[9];
|
|
58
|
+
let t4;
|
|
59
|
+
if ($[10] !== className || $[11] !== t3) {
|
|
60
|
+
t4 = /* @__PURE__ */ jsx(Trace, {
|
|
61
|
+
"data-slot": "plan",
|
|
62
|
+
className,
|
|
63
|
+
children: t3
|
|
64
|
+
});
|
|
65
|
+
$[10] = className;
|
|
66
|
+
$[11] = t3;
|
|
67
|
+
$[12] = t4;
|
|
68
|
+
} else t4 = $[12];
|
|
69
|
+
let t5;
|
|
70
|
+
if ($[13] !== t2 || $[14] !== t4) {
|
|
71
|
+
t5 = /* @__PURE__ */ jsx(PlanContext.Provider, {
|
|
72
|
+
value: t2,
|
|
73
|
+
children: t4
|
|
74
|
+
});
|
|
75
|
+
$[13] = t2;
|
|
76
|
+
$[14] = t4;
|
|
77
|
+
$[15] = t5;
|
|
78
|
+
} else t5 = $[15];
|
|
79
|
+
return t5;
|
|
80
|
+
}
|
|
81
|
+
/** The plan's line, which opens it: a `PlanTitle` and a `PlanDescription`. It shimmers while the plan streams. */
|
|
82
|
+
function PlanHeader(t0) {
|
|
83
|
+
const $ = c(13);
|
|
84
|
+
let children;
|
|
85
|
+
let icon;
|
|
86
|
+
let props;
|
|
87
|
+
if ($[0] !== t0) {
|
|
88
|
+
({icon, children, ...props} = t0);
|
|
89
|
+
$[0] = t0;
|
|
90
|
+
$[1] = children;
|
|
91
|
+
$[2] = icon;
|
|
92
|
+
$[3] = props;
|
|
93
|
+
} else {
|
|
94
|
+
children = $[1];
|
|
95
|
+
icon = $[2];
|
|
96
|
+
props = $[3];
|
|
97
|
+
}
|
|
98
|
+
const { isStreaming } = usePlan();
|
|
99
|
+
const t1 = isStreaming ? "running" : void 0;
|
|
100
|
+
let t2;
|
|
101
|
+
if ($[4] !== icon) {
|
|
102
|
+
t2 = icon === void 0 ? /* @__PURE__ */ jsx(TraceIcon, { children: /* @__PURE__ */ jsx(Icon, { icon: Route01Icon }) }) : icon !== null && /* @__PURE__ */ jsx(TraceIcon, { children: icon });
|
|
103
|
+
$[4] = icon;
|
|
104
|
+
$[5] = t2;
|
|
105
|
+
} else t2 = $[5];
|
|
106
|
+
let t3;
|
|
107
|
+
if ($[6] !== children || $[7] !== t1 || $[8] !== t2) {
|
|
108
|
+
t3 = /* @__PURE__ */ jsxs(TraceLine, {
|
|
109
|
+
status: t1,
|
|
110
|
+
children: [t2, children]
|
|
111
|
+
});
|
|
112
|
+
$[6] = children;
|
|
113
|
+
$[7] = t1;
|
|
114
|
+
$[8] = t2;
|
|
115
|
+
$[9] = t3;
|
|
116
|
+
} else t3 = $[9];
|
|
117
|
+
let t4;
|
|
118
|
+
if ($[10] !== props || $[11] !== t3) {
|
|
119
|
+
t4 = /* @__PURE__ */ jsx(TraceCollapsibleTrigger, {
|
|
120
|
+
"data-slot": "plan-header",
|
|
121
|
+
...props,
|
|
122
|
+
children: t3
|
|
123
|
+
});
|
|
124
|
+
$[10] = props;
|
|
125
|
+
$[11] = t3;
|
|
126
|
+
$[12] = t4;
|
|
127
|
+
} else t4 = $[12];
|
|
128
|
+
return t4;
|
|
129
|
+
}
|
|
130
|
+
/** What the plan is for. */
|
|
131
|
+
function PlanTitle(props) {
|
|
132
|
+
const $ = c(2);
|
|
133
|
+
let t0;
|
|
134
|
+
if ($[0] !== props) {
|
|
135
|
+
t0 = /* @__PURE__ */ jsx(TraceTitle, { ...props });
|
|
136
|
+
$[0] = props;
|
|
137
|
+
$[1] = t0;
|
|
138
|
+
} else t0 = $[1];
|
|
139
|
+
return t0;
|
|
140
|
+
}
|
|
141
|
+
/** The progress after the title, like "2 of 4 done". It is part of the line's accessible name. */
|
|
142
|
+
function PlanDescription(props) {
|
|
143
|
+
const $ = c(2);
|
|
144
|
+
let t0;
|
|
145
|
+
if ($[0] !== props) {
|
|
146
|
+
t0 = /* @__PURE__ */ jsx(TraceDescription, { ...props });
|
|
147
|
+
$[0] = props;
|
|
148
|
+
$[1] = t0;
|
|
149
|
+
} else t0 = $[1];
|
|
150
|
+
return t0;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* A control next to the header, like a button to edit the plan. Put it after
|
|
154
|
+
* `PlanHeader`, not inside: a button can't sit inside the line, which is one.
|
|
155
|
+
*/
|
|
156
|
+
function PlanAction(t0) {
|
|
157
|
+
const $ = c(8);
|
|
158
|
+
let className;
|
|
159
|
+
let props;
|
|
160
|
+
if ($[0] !== t0) {
|
|
161
|
+
({className, ...props} = t0);
|
|
162
|
+
$[0] = t0;
|
|
163
|
+
$[1] = className;
|
|
164
|
+
$[2] = props;
|
|
165
|
+
} else {
|
|
166
|
+
className = $[1];
|
|
167
|
+
props = $[2];
|
|
168
|
+
}
|
|
169
|
+
let t1;
|
|
170
|
+
if ($[3] !== className) {
|
|
171
|
+
t1 = cn("flex shrink-0 items-center gap-1", className);
|
|
172
|
+
$[3] = className;
|
|
173
|
+
$[4] = t1;
|
|
174
|
+
} else t1 = $[4];
|
|
175
|
+
let t2;
|
|
176
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
177
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
178
|
+
"data-slot": "plan-action",
|
|
179
|
+
className: t1,
|
|
180
|
+
...props
|
|
181
|
+
});
|
|
182
|
+
$[5] = props;
|
|
183
|
+
$[6] = t1;
|
|
184
|
+
$[7] = t2;
|
|
185
|
+
} else t2 = $[7];
|
|
186
|
+
return t2;
|
|
187
|
+
}
|
|
188
|
+
/** The steps, as `PlanStep`s. A paragraph before them describes the plan. */
|
|
189
|
+
function PlanContent(t0) {
|
|
190
|
+
const $ = c(8);
|
|
191
|
+
let children;
|
|
192
|
+
let props;
|
|
193
|
+
if ($[0] !== t0) {
|
|
194
|
+
({children, ...props} = t0);
|
|
195
|
+
$[0] = t0;
|
|
196
|
+
$[1] = children;
|
|
197
|
+
$[2] = props;
|
|
198
|
+
} else {
|
|
199
|
+
children = $[1];
|
|
200
|
+
props = $[2];
|
|
201
|
+
}
|
|
202
|
+
let t1;
|
|
203
|
+
if ($[3] !== children) {
|
|
204
|
+
t1 = /* @__PURE__ */ jsx(Trace, { children });
|
|
205
|
+
$[3] = children;
|
|
206
|
+
$[4] = t1;
|
|
207
|
+
} else t1 = $[4];
|
|
208
|
+
let t2;
|
|
209
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
210
|
+
t2 = /* @__PURE__ */ jsx(TraceCollapsibleContent, {
|
|
211
|
+
"data-slot": "plan-content",
|
|
212
|
+
...props,
|
|
213
|
+
children: t1
|
|
214
|
+
});
|
|
215
|
+
$[5] = props;
|
|
216
|
+
$[6] = t1;
|
|
217
|
+
$[7] = t2;
|
|
218
|
+
} else t2 = $[7];
|
|
219
|
+
return t2;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* One step. The running one shimmers and is announced only while the plan
|
|
223
|
+
* streams, so it stops when the agent stops.
|
|
224
|
+
*/
|
|
225
|
+
function PlanStep(t0) {
|
|
226
|
+
const $ = c(18);
|
|
227
|
+
let children;
|
|
228
|
+
let icon;
|
|
229
|
+
let props;
|
|
230
|
+
let t1;
|
|
231
|
+
if ($[0] !== t0) {
|
|
232
|
+
({status: t1, icon, children, ...props} = t0);
|
|
233
|
+
$[0] = t0;
|
|
234
|
+
$[1] = children;
|
|
235
|
+
$[2] = icon;
|
|
236
|
+
$[3] = props;
|
|
237
|
+
$[4] = t1;
|
|
238
|
+
} else {
|
|
239
|
+
children = $[1];
|
|
240
|
+
icon = $[2];
|
|
241
|
+
props = $[3];
|
|
242
|
+
t1 = $[4];
|
|
243
|
+
}
|
|
244
|
+
const status = t1 === void 0 ? "pending" : t1;
|
|
245
|
+
const { isStreaming } = usePlan();
|
|
246
|
+
const active = isStreaming && status === "running";
|
|
247
|
+
const t2 = status === "pending" ? "pending" : active ? "running" : void 0;
|
|
248
|
+
let t3;
|
|
249
|
+
if ($[5] !== icon || $[6] !== status) {
|
|
250
|
+
t3 = icon ?? /* @__PURE__ */ jsx(Icon, { icon: status === "done" ? CheckmarkCircle02Icon : status === "running" ? CircleDotIcon : CircleIcon });
|
|
251
|
+
$[5] = icon;
|
|
252
|
+
$[6] = status;
|
|
253
|
+
$[7] = t3;
|
|
254
|
+
} else t3 = $[7];
|
|
255
|
+
let t4;
|
|
256
|
+
if ($[8] !== t3) {
|
|
257
|
+
t4 = /* @__PURE__ */ jsx(TraceIcon, { children: t3 });
|
|
258
|
+
$[8] = t3;
|
|
259
|
+
$[9] = t4;
|
|
260
|
+
} else t4 = $[9];
|
|
261
|
+
const t5 = active ? "status" : void 0;
|
|
262
|
+
let t6;
|
|
263
|
+
if ($[10] !== children || $[11] !== t5) {
|
|
264
|
+
t6 = /* @__PURE__ */ jsx(TraceTitle, {
|
|
265
|
+
role: t5,
|
|
266
|
+
children
|
|
267
|
+
});
|
|
268
|
+
$[10] = children;
|
|
269
|
+
$[11] = t5;
|
|
270
|
+
$[12] = t6;
|
|
271
|
+
} else t6 = $[12];
|
|
272
|
+
let t7;
|
|
273
|
+
if ($[13] !== props || $[14] !== t2 || $[15] !== t4 || $[16] !== t6) {
|
|
274
|
+
t7 = /* @__PURE__ */ jsxs(TraceLine, {
|
|
275
|
+
status: t2,
|
|
276
|
+
...props,
|
|
277
|
+
children: [t4, t6]
|
|
278
|
+
});
|
|
279
|
+
$[13] = props;
|
|
280
|
+
$[14] = t2;
|
|
281
|
+
$[15] = t4;
|
|
282
|
+
$[16] = t6;
|
|
283
|
+
$[17] = t7;
|
|
284
|
+
} else t7 = $[17];
|
|
285
|
+
return t7;
|
|
286
|
+
}
|
|
287
|
+
/** A row under the plan for what comes next, like a button to start building. It shows while the plan is closed too. */
|
|
288
|
+
function PlanFooter(t0) {
|
|
289
|
+
const $ = c(8);
|
|
290
|
+
let className;
|
|
291
|
+
let props;
|
|
292
|
+
if ($[0] !== t0) {
|
|
293
|
+
({className, ...props} = t0);
|
|
294
|
+
$[0] = t0;
|
|
295
|
+
$[1] = className;
|
|
296
|
+
$[2] = props;
|
|
297
|
+
} else {
|
|
298
|
+
className = $[1];
|
|
299
|
+
props = $[2];
|
|
300
|
+
}
|
|
301
|
+
let t1;
|
|
302
|
+
if ($[3] !== className) {
|
|
303
|
+
t1 = cn("mt-2 flex items-center gap-2", className);
|
|
304
|
+
$[3] = className;
|
|
305
|
+
$[4] = t1;
|
|
306
|
+
} else t1 = $[4];
|
|
307
|
+
let t2;
|
|
308
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
309
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
310
|
+
"data-slot": "plan-footer",
|
|
311
|
+
className: t1,
|
|
312
|
+
...props
|
|
313
|
+
});
|
|
314
|
+
$[5] = props;
|
|
315
|
+
$[6] = t1;
|
|
316
|
+
$[7] = t2;
|
|
317
|
+
} else t2 = $[7];
|
|
318
|
+
return t2;
|
|
319
|
+
}
|
|
320
|
+
export { Plan, PlanAction, PlanContent, PlanDescription, PlanFooter, PlanHeader, PlanStep, PlanTitle, usePlan };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { PopoverArrow as PopoverArrow$1, PopoverArrowState, PopoverClose as PopoverClose$1, PopoverContent as PopoverContent$1, PopoverContentState, PopoverController, PopoverDescription as PopoverDescription$1, PopoverDismissReason, PopoverFinalFocus, PopoverInitialFocus, PopoverOpenChangeReason, PopoverPayloadChangeReason, PopoverProps, PopoverShortcut as PopoverShortcut$1, PopoverShortcutState, PopoverTitle as PopoverTitle$1, PopoverTrigger as PopoverTrigger$1, PopoverTriggerState, createPopoverController } from "@ui-sdk/react/popover";
|
|
4
|
+
declare function Popover(props: PopoverProps): import("react").JSX.Element;
|
|
5
|
+
type PopoverTriggerProps = ComponentProps<typeof PopoverTrigger$1> & ButtonLook;
|
|
6
|
+
declare function PopoverTrigger({ variant, size, className, ...props }: PopoverTriggerProps): import("react").JSX.Element;
|
|
7
|
+
type PopoverContentProps<Payload = unknown> = ComponentProps<typeof PopoverContent$1<Payload>>;
|
|
8
|
+
declare function PopoverContent<Payload = unknown>({ className, sideOffset, ...props }: PopoverContentProps<Payload>): import("react").JSX.Element;
|
|
9
|
+
/** Give the content a `sideOffset` that leaves room for it. */
|
|
10
|
+
declare function PopoverArrow({ className, ...props }: ComponentProps<typeof PopoverArrow$1>): import("react").JSX.Element;
|
|
11
|
+
declare function PopoverTitle({ className, ...props }: ComponentProps<typeof PopoverTitle$1>): import("react").JSX.Element;
|
|
12
|
+
declare function PopoverDescription({ className, ...props }: ComponentProps<typeof PopoverDescription$1>): import("react").JSX.Element;
|
|
13
|
+
type PopoverCloseProps = ComponentProps<typeof PopoverClose$1> & ButtonLook;
|
|
14
|
+
declare function PopoverClose({ variant, size, className, ...props }: PopoverCloseProps): import("react").JSX.Element;
|
|
15
|
+
declare function PopoverShortcut({ className, ...props }: ComponentProps<typeof PopoverShortcut$1>): import("react").JSX.Element;
|
|
16
|
+
export { Popover, PopoverArrow, type PopoverArrowState, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverContentState, type PopoverController, PopoverDescription, type PopoverDismissReason, type PopoverFinalFocus, type PopoverInitialFocus, type PopoverOpenChangeReason, type PopoverPayloadChangeReason, type PopoverProps, PopoverShortcut, type PopoverShortcutState, PopoverTitle, PopoverTrigger, type PopoverTriggerProps, type PopoverTriggerState, createPopoverController };
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { buttonLook } from "../button/button.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Popover as Popover$1, PopoverArrow as PopoverArrow$1, PopoverClose as PopoverClose$1, PopoverContent as PopoverContent$1, PopoverDescription as PopoverDescription$1, PopoverShortcut as PopoverShortcut$1, PopoverTitle as PopoverTitle$1, PopoverTrigger as PopoverTrigger$1, createPopoverController } from "@ui-sdk/react/popover";
|
|
7
|
+
// src/components/popover/popover.tsx
|
|
8
|
+
function Popover(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(Popover$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
function PopoverTrigger(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(PopoverTrigger$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 PopoverContent(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([
|
|
80
|
+
"flex flex-col gap-2.5 popup-surface text-sm",
|
|
81
|
+
"data-[presentation=popover]:popup-motion data-[presentation=popover]:w-72 data-[presentation=popover]:max-w-(--available-width) data-[presentation=popover]:origin-(--transform-origin) data-[presentation=popover]:rounded-xl data-[presentation=popover]:p-2.5 data-[presentation=popover]:data-starting-style:scale-95 data-[presentation=popover]:data-closed:scale-95",
|
|
82
|
+
"data-[presentation=sheet]:rounded-t-2xl data-[presentation=sheet]:p-4 data-[presentation=sheet]:shadow-lg data-[presentation=sheet]:pb-[max(--spacing(4),env(safe-area-inset-bottom))]"
|
|
83
|
+
], className);
|
|
84
|
+
$[4] = className;
|
|
85
|
+
$[5] = t2;
|
|
86
|
+
} else t2 = $[5];
|
|
87
|
+
let t3;
|
|
88
|
+
if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
|
|
89
|
+
t3 = /* @__PURE__ */ jsx(PopoverContent$1, {
|
|
90
|
+
sideOffset,
|
|
91
|
+
className: t2,
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
$[6] = props;
|
|
95
|
+
$[7] = sideOffset;
|
|
96
|
+
$[8] = t2;
|
|
97
|
+
$[9] = t3;
|
|
98
|
+
} else t3 = $[9];
|
|
99
|
+
return t3;
|
|
100
|
+
}
|
|
101
|
+
/** Give the content a `sideOffset` that leaves room for it. */
|
|
102
|
+
function PopoverArrow(t0) {
|
|
103
|
+
const $ = c(8);
|
|
104
|
+
let className;
|
|
105
|
+
let props;
|
|
106
|
+
if ($[0] !== t0) {
|
|
107
|
+
({className, ...props} = t0);
|
|
108
|
+
$[0] = t0;
|
|
109
|
+
$[1] = className;
|
|
110
|
+
$[2] = props;
|
|
111
|
+
} else {
|
|
112
|
+
className = $[1];
|
|
113
|
+
props = $[2];
|
|
114
|
+
}
|
|
115
|
+
let t1;
|
|
116
|
+
if ($[3] !== className) {
|
|
117
|
+
t1 = cnState("popup-arrow", className);
|
|
118
|
+
$[3] = className;
|
|
119
|
+
$[4] = t1;
|
|
120
|
+
} else t1 = $[4];
|
|
121
|
+
let t2;
|
|
122
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
123
|
+
t2 = /* @__PURE__ */ jsx(PopoverArrow$1, {
|
|
124
|
+
className: t1,
|
|
125
|
+
...props
|
|
126
|
+
});
|
|
127
|
+
$[5] = props;
|
|
128
|
+
$[6] = t1;
|
|
129
|
+
$[7] = t2;
|
|
130
|
+
} else t2 = $[7];
|
|
131
|
+
return t2;
|
|
132
|
+
}
|
|
133
|
+
function PopoverTitle(t0) {
|
|
134
|
+
const $ = c(8);
|
|
135
|
+
let className;
|
|
136
|
+
let props;
|
|
137
|
+
if ($[0] !== t0) {
|
|
138
|
+
({className, ...props} = t0);
|
|
139
|
+
$[0] = t0;
|
|
140
|
+
$[1] = className;
|
|
141
|
+
$[2] = props;
|
|
142
|
+
} else {
|
|
143
|
+
className = $[1];
|
|
144
|
+
props = $[2];
|
|
145
|
+
}
|
|
146
|
+
let t1;
|
|
147
|
+
if ($[3] !== className) {
|
|
148
|
+
t1 = cnState("text-heading-4", className);
|
|
149
|
+
$[3] = className;
|
|
150
|
+
$[4] = t1;
|
|
151
|
+
} else t1 = $[4];
|
|
152
|
+
let t2;
|
|
153
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
154
|
+
t2 = /* @__PURE__ */ jsx(PopoverTitle$1, {
|
|
155
|
+
className: t1,
|
|
156
|
+
...props
|
|
157
|
+
});
|
|
158
|
+
$[5] = props;
|
|
159
|
+
$[6] = t1;
|
|
160
|
+
$[7] = t2;
|
|
161
|
+
} else t2 = $[7];
|
|
162
|
+
return t2;
|
|
163
|
+
}
|
|
164
|
+
function PopoverDescription(t0) {
|
|
165
|
+
const $ = c(8);
|
|
166
|
+
let className;
|
|
167
|
+
let props;
|
|
168
|
+
if ($[0] !== t0) {
|
|
169
|
+
({className, ...props} = t0);
|
|
170
|
+
$[0] = t0;
|
|
171
|
+
$[1] = className;
|
|
172
|
+
$[2] = props;
|
|
173
|
+
} else {
|
|
174
|
+
className = $[1];
|
|
175
|
+
props = $[2];
|
|
176
|
+
}
|
|
177
|
+
let t1;
|
|
178
|
+
if ($[3] !== className) {
|
|
179
|
+
t1 = cnState("text-muted-foreground", className);
|
|
180
|
+
$[3] = className;
|
|
181
|
+
$[4] = t1;
|
|
182
|
+
} else t1 = $[4];
|
|
183
|
+
let t2;
|
|
184
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
185
|
+
t2 = /* @__PURE__ */ jsx(PopoverDescription$1, {
|
|
186
|
+
className: t1,
|
|
187
|
+
...props
|
|
188
|
+
});
|
|
189
|
+
$[5] = props;
|
|
190
|
+
$[6] = t1;
|
|
191
|
+
$[7] = t2;
|
|
192
|
+
} else t2 = $[7];
|
|
193
|
+
return t2;
|
|
194
|
+
}
|
|
195
|
+
function PopoverClose(t0) {
|
|
196
|
+
const $ = c(12);
|
|
197
|
+
let className;
|
|
198
|
+
let props;
|
|
199
|
+
let size;
|
|
200
|
+
let variant;
|
|
201
|
+
if ($[0] !== t0) {
|
|
202
|
+
({variant, size, className, ...props} = t0);
|
|
203
|
+
$[0] = t0;
|
|
204
|
+
$[1] = className;
|
|
205
|
+
$[2] = props;
|
|
206
|
+
$[3] = size;
|
|
207
|
+
$[4] = variant;
|
|
208
|
+
} else {
|
|
209
|
+
className = $[1];
|
|
210
|
+
props = $[2];
|
|
211
|
+
size = $[3];
|
|
212
|
+
variant = $[4];
|
|
213
|
+
}
|
|
214
|
+
let t1;
|
|
215
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
216
|
+
t1 = cnState(buttonLook({
|
|
217
|
+
variant,
|
|
218
|
+
size
|
|
219
|
+
}), className);
|
|
220
|
+
$[5] = className;
|
|
221
|
+
$[6] = size;
|
|
222
|
+
$[7] = variant;
|
|
223
|
+
$[8] = t1;
|
|
224
|
+
} else t1 = $[8];
|
|
225
|
+
let t2;
|
|
226
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
227
|
+
t2 = /* @__PURE__ */ jsx(PopoverClose$1, {
|
|
228
|
+
className: t1,
|
|
229
|
+
...props
|
|
230
|
+
});
|
|
231
|
+
$[9] = props;
|
|
232
|
+
$[10] = t1;
|
|
233
|
+
$[11] = t2;
|
|
234
|
+
} else t2 = $[11];
|
|
235
|
+
return t2;
|
|
236
|
+
}
|
|
237
|
+
function PopoverShortcut(t0) {
|
|
238
|
+
const $ = c(8);
|
|
239
|
+
let className;
|
|
240
|
+
let props;
|
|
241
|
+
if ($[0] !== t0) {
|
|
242
|
+
({className, ...props} = t0);
|
|
243
|
+
$[0] = t0;
|
|
244
|
+
$[1] = className;
|
|
245
|
+
$[2] = props;
|
|
246
|
+
} else {
|
|
247
|
+
className = $[1];
|
|
248
|
+
props = $[2];
|
|
249
|
+
}
|
|
250
|
+
let t1;
|
|
251
|
+
if ($[3] !== className) {
|
|
252
|
+
t1 = cnState("ms-auto text-xs tracking-widest text-muted-foreground", className);
|
|
253
|
+
$[3] = className;
|
|
254
|
+
$[4] = t1;
|
|
255
|
+
} else t1 = $[4];
|
|
256
|
+
let t2;
|
|
257
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
258
|
+
t2 = /* @__PURE__ */ jsx(PopoverShortcut$1, {
|
|
259
|
+
className: t1,
|
|
260
|
+
...props
|
|
261
|
+
});
|
|
262
|
+
$[5] = props;
|
|
263
|
+
$[6] = t1;
|
|
264
|
+
$[7] = t2;
|
|
265
|
+
} else t2 = $[7];
|
|
266
|
+
return t2;
|
|
267
|
+
}
|
|
268
|
+
export { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverShortcut, PopoverTitle, PopoverTrigger, createPopoverController };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeValue, Preference, PreferenceLike, PreferenceOptions, SystemColorScheme, createColorScheme, createPreference } from "../../behaviors/preferences/ui-sdk.js";
|
|
2
|
+
import "../../behaviors/preferences/index.js";
|
|
3
|
+
import { PreferencesProps, usePreference } from "@ui-sdk/react/preferences";
|
|
4
|
+
declare function Preferences(props: PreferencesProps): import("react").JSX.Element;
|
|
5
|
+
export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeValue, type Preference, type PreferenceLike, type PreferenceOptions, Preferences, type PreferencesProps, type SystemColorScheme, createColorScheme, createPreference, usePreference };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createColorScheme, createPreference } from "../../behaviors/preferences/ui-sdk.js";
|
|
3
|
+
import "../../behaviors/preferences/index.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { Preferences as Preferences$1, usePreference } from "@ui-sdk/react/preferences";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
// src/components/preferences/preferences.tsx
|
|
8
|
+
function Preferences(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(Preferences$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
export { Preferences, createColorScheme, createPreference, usePreference };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { GaugeLabelDetails, NumberFormat, Progress as Progress$1, ProgressIndicator as ProgressIndicator$1, ProgressLabel as ProgressLabel$1, ProgressState, ProgressStatus, ProgressTrack as ProgressTrack$1, ProgressValue as ProgressValue$1, ProgressValueState } from "@ui-sdk/react/progress";
|
|
3
|
+
declare function Progress({ className, ...props }: ComponentProps<typeof Progress$1>): import("react").JSX.Element;
|
|
4
|
+
declare function ProgressLabel({ className, ...props }: ComponentProps<typeof ProgressLabel$1>): import("react").JSX.Element;
|
|
5
|
+
declare function ProgressValue({ className, ...props }: ComponentProps<typeof ProgressValue$1>): import("react").JSX.Element;
|
|
6
|
+
declare function ProgressTrack({ className, ...props }: ComponentProps<typeof ProgressTrack$1>): import("react").JSX.Element;
|
|
7
|
+
declare function ProgressIndicator({ className, ...props }: ComponentProps<typeof ProgressIndicator$1>): import("react").JSX.Element;
|
|
8
|
+
export { type GaugeLabelDetails, type NumberFormat, Progress, ProgressIndicator, ProgressLabel, type ProgressState, type ProgressStatus, ProgressTrack, ProgressValue, type ProgressValueState };
|