@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,8 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Meter as Meter$1, MeterIndicator as MeterIndicator$1, MeterLabel as MeterLabel$1, MeterLabelDetails, MeterState, MeterTrack as MeterTrack$1, MeterValue as MeterValue$1, MeterValueState, NumberFormat } from "@ui-sdk/react/meter";
|
|
3
|
+
declare function Meter({ className, ...props }: ComponentProps<typeof Meter$1>): import("react").JSX.Element;
|
|
4
|
+
declare function MeterLabel({ className, ...props }: ComponentProps<typeof MeterLabel$1>): import("react").JSX.Element;
|
|
5
|
+
declare function MeterValue({ className, ...props }: ComponentProps<typeof MeterValue$1>): import("react").JSX.Element;
|
|
6
|
+
declare function MeterTrack({ className, ...props }: ComponentProps<typeof MeterTrack$1>): import("react").JSX.Element;
|
|
7
|
+
declare function MeterIndicator({ className, ...props }: ComponentProps<typeof MeterIndicator$1>): import("react").JSX.Element;
|
|
8
|
+
export { Meter, MeterIndicator, MeterLabel, type MeterLabelDetails, type MeterState, MeterTrack, MeterValue, type MeterValueState, type NumberFormat };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Meter as Meter$1, MeterIndicator as MeterIndicator$1, MeterLabel as MeterLabel$1, MeterTrack as MeterTrack$1, MeterValue as MeterValue$1 } from "@ui-sdk/react/meter";
|
|
6
|
+
// src/components/meter/meter.tsx
|
|
7
|
+
function Meter(t0) {
|
|
8
|
+
const $ = c(8);
|
|
9
|
+
let className;
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({className, ...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = className;
|
|
15
|
+
$[2] = props;
|
|
16
|
+
} else {
|
|
17
|
+
className = $[1];
|
|
18
|
+
props = $[2];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[3] !== className) {
|
|
22
|
+
t1 = cnState("flex w-full min-w-48 flex-wrap gap-x-3 gap-y-2", className);
|
|
23
|
+
$[3] = className;
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
} else t1 = $[4];
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
28
|
+
t2 = /* @__PURE__ */ jsx(Meter$1, {
|
|
29
|
+
className: t1,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
$[5] = props;
|
|
33
|
+
$[6] = t1;
|
|
34
|
+
$[7] = t2;
|
|
35
|
+
} else t2 = $[7];
|
|
36
|
+
return t2;
|
|
37
|
+
}
|
|
38
|
+
function MeterLabel(t0) {
|
|
39
|
+
const $ = c(8);
|
|
40
|
+
let className;
|
|
41
|
+
let props;
|
|
42
|
+
if ($[0] !== t0) {
|
|
43
|
+
({className, ...props} = t0);
|
|
44
|
+
$[0] = t0;
|
|
45
|
+
$[1] = className;
|
|
46
|
+
$[2] = props;
|
|
47
|
+
} else {
|
|
48
|
+
className = $[1];
|
|
49
|
+
props = $[2];
|
|
50
|
+
}
|
|
51
|
+
let t1;
|
|
52
|
+
if ($[3] !== className) {
|
|
53
|
+
t1 = cnState("text-sm font-medium", className);
|
|
54
|
+
$[3] = className;
|
|
55
|
+
$[4] = t1;
|
|
56
|
+
} else t1 = $[4];
|
|
57
|
+
let t2;
|
|
58
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
59
|
+
t2 = /* @__PURE__ */ jsx(MeterLabel$1, {
|
|
60
|
+
className: t1,
|
|
61
|
+
...props
|
|
62
|
+
});
|
|
63
|
+
$[5] = props;
|
|
64
|
+
$[6] = t1;
|
|
65
|
+
$[7] = t2;
|
|
66
|
+
} else t2 = $[7];
|
|
67
|
+
return t2;
|
|
68
|
+
}
|
|
69
|
+
function MeterValue(t0) {
|
|
70
|
+
const $ = c(8);
|
|
71
|
+
let className;
|
|
72
|
+
let props;
|
|
73
|
+
if ($[0] !== t0) {
|
|
74
|
+
({className, ...props} = t0);
|
|
75
|
+
$[0] = t0;
|
|
76
|
+
$[1] = className;
|
|
77
|
+
$[2] = props;
|
|
78
|
+
} else {
|
|
79
|
+
className = $[1];
|
|
80
|
+
props = $[2];
|
|
81
|
+
}
|
|
82
|
+
let t1;
|
|
83
|
+
if ($[3] !== className) {
|
|
84
|
+
t1 = cnState("ms-auto text-sm text-muted-foreground tabular-nums", className);
|
|
85
|
+
$[3] = className;
|
|
86
|
+
$[4] = t1;
|
|
87
|
+
} else t1 = $[4];
|
|
88
|
+
let t2;
|
|
89
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
90
|
+
t2 = /* @__PURE__ */ jsx(MeterValue$1, {
|
|
91
|
+
className: t1,
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
$[5] = props;
|
|
95
|
+
$[6] = t1;
|
|
96
|
+
$[7] = t2;
|
|
97
|
+
} else t2 = $[7];
|
|
98
|
+
return t2;
|
|
99
|
+
}
|
|
100
|
+
function MeterTrack(t0) {
|
|
101
|
+
const $ = c(8);
|
|
102
|
+
let className;
|
|
103
|
+
let props;
|
|
104
|
+
if ($[0] !== t0) {
|
|
105
|
+
({className, ...props} = t0);
|
|
106
|
+
$[0] = t0;
|
|
107
|
+
$[1] = className;
|
|
108
|
+
$[2] = props;
|
|
109
|
+
} else {
|
|
110
|
+
className = $[1];
|
|
111
|
+
props = $[2];
|
|
112
|
+
}
|
|
113
|
+
let t1;
|
|
114
|
+
if ($[3] !== className) {
|
|
115
|
+
t1 = cnState("relative flex h-1 w-full items-center overflow-hidden rounded-full bg-muted", className);
|
|
116
|
+
$[3] = className;
|
|
117
|
+
$[4] = t1;
|
|
118
|
+
} else t1 = $[4];
|
|
119
|
+
let t2;
|
|
120
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
121
|
+
t2 = /* @__PURE__ */ jsx(MeterTrack$1, {
|
|
122
|
+
className: t1,
|
|
123
|
+
...props
|
|
124
|
+
});
|
|
125
|
+
$[5] = props;
|
|
126
|
+
$[6] = t1;
|
|
127
|
+
$[7] = t2;
|
|
128
|
+
} else t2 = $[7];
|
|
129
|
+
return t2;
|
|
130
|
+
}
|
|
131
|
+
function MeterIndicator(t0) {
|
|
132
|
+
const $ = c(8);
|
|
133
|
+
let className;
|
|
134
|
+
let props;
|
|
135
|
+
if ($[0] !== t0) {
|
|
136
|
+
({className, ...props} = t0);
|
|
137
|
+
$[0] = t0;
|
|
138
|
+
$[1] = className;
|
|
139
|
+
$[2] = props;
|
|
140
|
+
} else {
|
|
141
|
+
className = $[1];
|
|
142
|
+
props = $[2];
|
|
143
|
+
}
|
|
144
|
+
let t1;
|
|
145
|
+
if ($[3] !== className) {
|
|
146
|
+
t1 = cnState("h-full bg-primary transition-[width] duration-popup ease-out motion-reduce:transition-none", className);
|
|
147
|
+
$[3] = className;
|
|
148
|
+
$[4] = t1;
|
|
149
|
+
} else t1 = $[4];
|
|
150
|
+
let t2;
|
|
151
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
152
|
+
t2 = /* @__PURE__ */ jsx(MeterIndicator$1, {
|
|
153
|
+
className: t1,
|
|
154
|
+
...props
|
|
155
|
+
});
|
|
156
|
+
$[5] = props;
|
|
157
|
+
$[6] = t1;
|
|
158
|
+
$[7] = t2;
|
|
159
|
+
} else t2 = $[7];
|
|
160
|
+
return t2;
|
|
161
|
+
}
|
|
162
|
+
export { Meter, MeterIndicator, MeterLabel, MeterTrack, MeterValue };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ChangeDetails } from "../../core/ui-sdk.js";
|
|
2
|
+
import "../../core/index.js";
|
|
3
|
+
import { MenuContentProps, MenuController, MenuProps, MenuRadioGroupProps, MenuRadioItem, MenuSeparator, MenuShortcut, MenuTriggerProps, createMenuController } from "../menu/menu.js";
|
|
4
|
+
import { ComponentProps, ReactNode } from "react";
|
|
5
|
+
/** `reason` is `item-press` for a person's pick, and `imperative` when an agent or code set the value. */
|
|
6
|
+
type ModelSelectorChangeDetails = ChangeDetails<"item-press" | "imperative">;
|
|
7
|
+
type ModelSelectorValueChange = (value: string, details: ModelSelectorChangeDetails) => void;
|
|
8
|
+
/** A choice as data: what an agent reads while the menu is closed. */
|
|
9
|
+
type ModelSelectorOption = {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/** Choices under one heading. */
|
|
15
|
+
type ModelSelectorOptionGroup = {
|
|
16
|
+
type: "group";
|
|
17
|
+
label?: string;
|
|
18
|
+
items: readonly ModelSelectorOption[];
|
|
19
|
+
};
|
|
20
|
+
type ModelSelectorItems = readonly (ModelSelectorOption | ModelSelectorOptionGroup)[];
|
|
21
|
+
type ModelSelectorContextValue = {
|
|
22
|
+
/** The selected value, or null when nothing is selected. */
|
|
23
|
+
value: string | null;
|
|
24
|
+
/** Selects a value, as a press on its item does. */
|
|
25
|
+
onValueChange: ModelSelectorValueChange;
|
|
26
|
+
};
|
|
27
|
+
/** The selected value and its setter. Call it inside a `ModelSelector`. */
|
|
28
|
+
declare function useModelSelector(): ModelSelectorContextValue;
|
|
29
|
+
type ModelSelectorProps = Omit<MenuProps, "items" | "onValueChange"> & {
|
|
30
|
+
/** The selected value. Pass it to control the selector. `null` selects nothing. */
|
|
31
|
+
value?: string | null;
|
|
32
|
+
/** The value selected at first, when uncontrolled. */
|
|
33
|
+
defaultValue?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Runs when a person picks an item or an agent sets the value.
|
|
36
|
+
* `details.source` says who, and `details.cancel()` stops it.
|
|
37
|
+
*/
|
|
38
|
+
onValueChange?: ModelSelectorValueChange;
|
|
39
|
+
/**
|
|
40
|
+
* The choices as data. With them an agent reads the choices while the menu
|
|
41
|
+
* is closed, and a `ModelSelectorContent` with no children renders them.
|
|
42
|
+
* Without them an agent opens the menu to read its items.
|
|
43
|
+
*/
|
|
44
|
+
items?: ModelSelectorItems;
|
|
45
|
+
/**
|
|
46
|
+
* Names the selector for agents and screen readers, like "Model". Without
|
|
47
|
+
* it the trigger's name does, which usually holds the value too.
|
|
48
|
+
*/
|
|
49
|
+
"aria-label"?: string;
|
|
50
|
+
"aria-labelledby"?: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The menu and its one value, shared by every `ModelSelectorGroup` inside. It
|
|
54
|
+
* takes Menu's props (`open`, `onOpenChange`, `controller`…). An agent sets
|
|
55
|
+
* the value with `setValue`, by an item's label or its value.
|
|
56
|
+
*/
|
|
57
|
+
declare function ModelSelector({ value, defaultValue, onValueChange, items, controller, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: ModelSelectorProps): import("react").JSX.Element | null;
|
|
58
|
+
type ModelSelectorSettingProps = {
|
|
59
|
+
/** What a `ModelSelectorSegments` inside the selector's menu calls it, like `effort`. */
|
|
60
|
+
name: string;
|
|
61
|
+
/** The selected value. Pass it to control the setting. */
|
|
62
|
+
value?: string | null;
|
|
63
|
+
/** The value selected at first, when uncontrolled. */
|
|
64
|
+
defaultValue?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Runs when a person picks a segment or an agent sets the value.
|
|
67
|
+
* `details.source` says who, and `details.cancel()` stops it.
|
|
68
|
+
*/
|
|
69
|
+
onValueChange?: ModelSelectorValueChange;
|
|
70
|
+
/** The choices, which an agent reads while the menu is closed. */
|
|
71
|
+
items: readonly ModelSelectorOption[];
|
|
72
|
+
/** Names the setting for agents and screen readers, like "Effort". */
|
|
73
|
+
"aria-label": string;
|
|
74
|
+
/** The `ModelSelector` whose menu shows the setting. */
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* A second value chosen in a selector's menu, like how hard the model thinks:
|
|
79
|
+
* wrap the `ModelSelector` in it and put a `ModelSelectorSegments` with its
|
|
80
|
+
* `name` in the menu. An agent sees it as a control of its own, named by
|
|
81
|
+
* `aria-label`, whose choices it reads and sets without opening the menu.
|
|
82
|
+
*/
|
|
83
|
+
declare function ModelSelectorSetting({ name, value, defaultValue, onValueChange, items, "aria-label": ariaLabel, children }: ModelSelectorSettingProps): import("react").JSX.Element | null;
|
|
84
|
+
type ModelSelectorSegmentsProps = Omit<MenuRadioGroupProps, "value" | "defaultValue" | "onValueChange" | "children"> & {
|
|
85
|
+
/** The `name` of the `ModelSelectorSetting` it chooses. */
|
|
86
|
+
setting: string;
|
|
87
|
+
/** The label over the segments, like "Effort". It names the group. */
|
|
88
|
+
heading?: ReactNode;
|
|
89
|
+
/** A word on the label's far side about the current choice, like "Balanced". */
|
|
90
|
+
hint?: ReactNode;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* A setting's choices as segments in a track, in the selector's menu. Picking
|
|
94
|
+
* one keeps the menu open, so the model can be chosen next. The arrow keys
|
|
95
|
+
* move through them like the menu's other items.
|
|
96
|
+
*/
|
|
97
|
+
declare function ModelSelectorSegments({ setting, heading, hint, className, ...props }: ModelSelectorSegmentsProps): import("react").JSX.Element;
|
|
98
|
+
type ModelSelectorTriggerProps = MenuTriggerProps;
|
|
99
|
+
/**
|
|
100
|
+
* The button that opens the menu, sized for a prompt input's footer: a quiet
|
|
101
|
+
* pill that takes a fill while its menu is open, with its last icon, the
|
|
102
|
+
* chevron, turned over. Its children are what it shows, usually a logo, the
|
|
103
|
+
* selected item's name and a chevron. When they don't say what the value is
|
|
104
|
+
* for, name it with an `aria-label`.
|
|
105
|
+
*/
|
|
106
|
+
declare function ModelSelectorTrigger({ variant, className, ...props }: ModelSelectorTriggerProps): import("react").JSX.Element;
|
|
107
|
+
type ModelSelectorContentProps = MenuContentProps;
|
|
108
|
+
/**
|
|
109
|
+
* The menu's popup. It holds `ModelSelectorGroup`s, with separators between
|
|
110
|
+
* them. Without children it renders the selector's `items`.
|
|
111
|
+
*/
|
|
112
|
+
declare function ModelSelectorContent({ align, className, children, ...props }: ModelSelectorContentProps): import("react").JSX.Element;
|
|
113
|
+
type ModelSelectorGroupProps = Omit<MenuRadioGroupProps, "value" | "defaultValue" | "onValueChange" | "children"> & {
|
|
114
|
+
/** The group's label, like a provider's name. It names the group for assistive tech. */
|
|
115
|
+
heading?: ReactNode;
|
|
116
|
+
children?: ReactNode;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* A set of items under an optional `heading`. Every item sits in a group, and
|
|
120
|
+
* every group of a selector chooses the same value: a group whose items don't
|
|
121
|
+
* hold it has nothing checked.
|
|
122
|
+
*/
|
|
123
|
+
declare function ModelSelectorGroup({ heading, children, ...props }: ModelSelectorGroupProps): import("react").JSX.Element;
|
|
124
|
+
type ModelSelectorItemProps = Omit<ComponentProps<typeof MenuRadioItem>, "children"> & {
|
|
125
|
+
children?: ReactNode;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* One choice. Picking it closes the menu, and the selected one shows a check.
|
|
129
|
+
* With a `ModelSelectorDescription` inside its `ModelSelectorName` it is two
|
|
130
|
+
* lines tall; give it a `label` with the name alone for typeahead.
|
|
131
|
+
*/
|
|
132
|
+
declare function ModelSelectorItem({ closeOnSelect, className, children, ...props }: ModelSelectorItemProps): import("react").JSX.Element | null;
|
|
133
|
+
/** A line between two groups, from one edge of the popup to the other. */
|
|
134
|
+
declare function ModelSelectorSeparator(props: ComponentProps<typeof MenuSeparator>): import("react").JSX.Element;
|
|
135
|
+
/** A key hint at the end of an item. */
|
|
136
|
+
declare function ModelSelectorShortcut(props: ComponentProps<typeof MenuShortcut>): import("react").JSX.Element;
|
|
137
|
+
type ModelSelectorLogoProps = ComponentProps<"img"> & {
|
|
138
|
+
/** The provider's id on models.dev, like `openai` or `anthropic`. */
|
|
139
|
+
provider: string;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* A provider's logo, loaded from models.dev unless it is given a `src`. It is
|
|
143
|
+
* decorative next to the model's name; give it an `alt` when it stands alone.
|
|
144
|
+
*/
|
|
145
|
+
declare function ModelSelectorLogo({ provider, src, alt, className, ...props }: ModelSelectorLogoProps): import("react").JSX.Element;
|
|
146
|
+
/** The logos of the providers that serve one model, overlapped. */
|
|
147
|
+
declare function ModelSelectorLogoGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
148
|
+
/**
|
|
149
|
+
* A model's name, cut short when it doesn't fit. A `ModelSelectorDescription`
|
|
150
|
+
* inside it goes on a second line.
|
|
151
|
+
*/
|
|
152
|
+
declare function ModelSelectorName({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
153
|
+
/** What a model is for, like "Fastest for quick answers", under its name. */
|
|
154
|
+
declare function ModelSelectorDescription({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
155
|
+
export { ModelSelector, type ModelSelectorChangeDetails, ModelSelectorContent, type ModelSelectorContentProps, type ModelSelectorContextValue, type MenuController as ModelSelectorController, ModelSelectorDescription, ModelSelectorGroup, type ModelSelectorGroupProps, ModelSelectorItem, type ModelSelectorItemProps, type ModelSelectorItems, ModelSelectorLogo, ModelSelectorLogoGroup, type ModelSelectorLogoProps, ModelSelectorName, type ModelSelectorOption, type ModelSelectorOptionGroup, type ModelSelectorProps, ModelSelectorSegments, type ModelSelectorSegmentsProps, ModelSelectorSeparator, ModelSelectorSetting, type ModelSelectorSettingProps, ModelSelectorShortcut, ModelSelectorTrigger, type ModelSelectorTriggerProps, type ModelSelectorValueChange, createMenuController as createModelSelectorController, useModelSelector };
|