@asanchez-sa/abby 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +217 -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 +336 -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 +683 -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 @@
|
|
|
1
|
+
export { bindDrag, bindDragPreview, createAutoScroll, createReorder, createTransfer, createTreeReorder, dragThreshold, reorderMessage, subtreeEnd, transferMessage, treeReorderMessage } from "./ui-sdk.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AutoScrollOptions, BindDragOptions, DragPreview, PointerSample, Reorder, ReorderDraft, ReorderMessage, ReorderOptions, ReorderOrientation, ReorderReason, Transfer, TransferDraft, TransferLists, TransferMessage, TransferOptions, TransferReason, TreePlace, TreeReorder, TreeReorderDraft, TreeReorderMessage, TreeReorderOptions, TreeReorderReason, TreeReorderRow, bindDrag, bindDragPreview, createAutoScroll, createReorder, createTransfer, createTreeReorder, dragThreshold, reorderMessage, subtreeEnd, transferMessage, treeReorderMessage } from "@ui-sdk/core";
|
|
2
|
+
export { type AutoScrollOptions, type BindDragOptions, type DragPreview, type PointerSample, type Reorder, type ReorderDraft, type ReorderMessage, type ReorderOptions, type ReorderOrientation, type ReorderReason, type Transfer, type TransferDraft, type TransferLists, type TransferMessage, type TransferOptions, type TransferReason, type TreePlace, type TreeReorder, type TreeReorderDraft, type TreeReorderMessage, type TreeReorderOptions, type TreeReorderReason, type TreeReorderRow, bindDrag, bindDragPreview, createAutoScroll, createReorder, createTransfer, createTreeReorder, dragThreshold, reorderMessage, subtreeEnd, transferMessage, treeReorderMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bindDrag, bindDragPreview, createAutoScroll, createReorder, createTransfer, createTreeReorder, dragThreshold, reorderMessage, subtreeEnd, transferMessage, treeReorderMessage } from "@ui-sdk/core";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Area, AreaAxis, AreaOptions, AreaReason, AreaValue, BindHoldOptions, BindRepeatOptions, HoldDetails, HoldEndDetails, HoldInput, MoveDraft, MoveMessage, MoveOptions, MovePoint, MoveReason, PreviewOptions, PreviewReason, RepeatDetails, RepeatEndDetails, Resize, ResizeBox, ResizeDraft, ResizeHandle, ResizeMessage, ResizeOptions, ResizeReason, Span, SpanAction, Spans, SpansDraft, SpansMessage, SpansOptions, SpansReason, SwipeActions, SwipeActionsOptions, SwipeDraft, SwipeOpen, SwipeSide, bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans } from "./ui-sdk.js";
|
|
2
|
+
export { type Area, type AreaAxis, type AreaOptions, type AreaReason, type AreaValue, type BindHoldOptions, type BindRepeatOptions, type HoldDetails, type HoldEndDetails, type HoldInput, type MoveDraft, type MoveMessage, type MoveOptions, type MovePoint, type MoveReason, type PreviewOptions, type PreviewReason, type RepeatDetails, type RepeatEndDetails, type Resize, type ResizeBox, type ResizeDraft, type ResizeHandle, type ResizeMessage, type ResizeOptions, type ResizeReason, type Span, type SpanAction, type Spans, type SpansDraft, type SpansMessage, type SpansOptions, type SpansReason, type SwipeActions, type SwipeActionsOptions, type SwipeDraft, type SwipeOpen, type SwipeSide, bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans } from "./ui-sdk.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Area, AreaAxis, AreaOptions, AreaReason, AreaValue, BindHoldOptions, BindRepeatOptions, HoldDetails, HoldEndDetails, HoldInput, MoveDraft, MoveMessage, MoveOptions, MovePoint, MoveReason, PreviewOptions, PreviewReason, RepeatDetails, RepeatEndDetails, Resize, ResizeBox, ResizeDraft, ResizeHandle, ResizeMessage, ResizeOptions, ResizeReason, Span, SpanAction, Spans, SpansDraft, SpansMessage, SpansOptions, SpansReason, SwipeActions, SwipeActionsOptions, SwipeDraft, SwipeOpen, SwipeSide, bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans } from "@ui-sdk/core";
|
|
2
|
+
export { type Area, type AreaAxis, type AreaOptions, type AreaReason, type AreaValue, type BindHoldOptions, type BindRepeatOptions, type HoldDetails, type HoldEndDetails, type HoldInput, type MoveDraft, type MoveMessage, type MoveOptions, type MovePoint, type MoveReason, type PreviewOptions, type PreviewReason, type RepeatDetails, type RepeatEndDetails, type Resize, type ResizeBox, type ResizeDraft, type ResizeHandle, type ResizeMessage, type ResizeOptions, type ResizeReason, type Span, type SpanAction, type Spans, type SpansDraft, type SpansMessage, type SpansOptions, type SpansReason, type SwipeActions, type SwipeActionsOptions, type SwipeDraft, type SwipeOpen, type SwipeSide, bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bindHold, bindRepeat, createArea, createMove, createPreview, createResize, createSpans, createSwipeActions, isSpanFree, moveMessage, resizeMessage, spansMessage, stackSpans } from "@ui-sdk/core";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { FocusRecovery, GridCell, GridFocus, GridFocusOptions, GridFocusReason, LostFocus, RovingFocus, RovingFocusItem, RovingFocusMoveContext, RovingFocusOptions, RovingOrientation, SpatialRect, byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove } from "./ui-sdk.js";
|
|
2
|
+
export { type FocusRecovery, type GridCell, type GridFocus, type GridFocusOptions, type GridFocusReason, type LostFocus, type RovingFocus, type RovingFocusItem, type RovingFocusMoveContext, type RovingFocusOptions, type RovingOrientation, type SpatialRect, byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove } from "./ui-sdk.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { FocusRecovery, GridCell, GridFocus, GridFocusOptions, GridFocusReason, LostFocus, RovingFocus, RovingFocusItem, RovingFocusMoveContext, RovingFocusOptions, RovingOrientation, SpatialRect, byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove } from "@ui-sdk/core";
|
|
2
|
+
export { type FocusRecovery, type GridCell, type GridFocus, type GridFocusOptions, type GridFocusReason, type LostFocus, type RovingFocus, type RovingFocusItem, type RovingFocusMoveContext, type RovingFocusOptions, type RovingOrientation, type SpatialRect, byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { byCell, createFocusRecovery, createGridFocus, createRovingFocus, keepFocus, nearestInDirection, spatialMove } from "@ui-sdk/core";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InlineEdit, InlineEditOptions, InlineEditReason, ListData, ListFilter, ListGroup, ListHighlightDetails, ListItem, ListSeparator, ListboxBehavior, ListboxBehaviorOptions, ListboxOption, ScrollPickerOptions, ScrollPickerSelectDetails, StickToBottom, StickToBottomOptions, StickToBottomState, VirtualAlign, VirtualItem, Virtualizer, VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "./ui-sdk.js";
|
|
2
|
+
export * from "@ui-sdk/react/async-options";
|
|
3
|
+
export { type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InlineEdit, InlineEditOptions, InlineEditReason, ListData, ListFilter, ListGroup, ListHighlightDetails, ListItem, ListSeparator, ListboxBehavior, ListboxBehaviorOptions, ListboxOption, ScrollPickerOptions, ScrollPickerSelectDetails, StickToBottom, StickToBottomOptions, StickToBottomState, VirtualAlign, VirtualItem, Virtualizer, VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "@ui-sdk/core";
|
|
2
|
+
export * from "@ui-sdk/react/async-options";
|
|
3
|
+
export { type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Align, Anchor, LayerDismissReason, Modal, PopupChangeOptions, PopupContentProps, PopupContentState, PopupController, PopupOpenOptions, PopupPartState, PopupPreset, PopupResult, PopupState, PopupTriggerProps, PopupTriggerState, PortalProps, PositionOptions, PositionProps, Side, VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
|
|
2
|
+
export * from "@ui-sdk/react/overlays";
|
|
3
|
+
export { type Align, type Anchor, type LayerDismissReason, type Modal, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export { bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
|
|
3
|
+
export * from "@ui-sdk/react/overlays";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Align, Anchor, LayerDismissReason, Modal, PopupChangeOptions, PopupContentProps, PopupContentState, PopupController, PopupOpenOptions, PopupPartState, PopupPreset, PopupResult, PopupState, PopupTriggerProps, PopupTriggerState, PortalProps, PositionOptions, PositionProps, Side, VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "@ui-sdk/core";
|
|
2
|
+
export * from "@ui-sdk/react/overlays";
|
|
3
|
+
export { type Align, type Anchor, type LayerDismissReason, type Modal, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export { bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "@ui-sdk/core";
|
|
3
|
+
export * from "@ui-sdk/react/overlays";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeStore, ColorSchemeValue, PointerHover, PointerKind, PointerKindOptions, PointerKindState, PointerKindStore, PointerPrecision, Preference, PreferenceLike, PreferenceOptions, PreferenceStore, SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "./ui-sdk.js";
|
|
2
|
+
export * from "@ui-sdk/react/preferences";
|
|
3
|
+
export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeStore, ColorSchemeValue, PointerHover, PointerKind, PointerKindOptions, PointerKindState, PointerKindStore, PointerPrecision, Preference, PreferenceLike, PreferenceOptions, PreferenceStore, SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "@ui-sdk/core";
|
|
2
|
+
export * from "@ui-sdk/react/preferences";
|
|
3
|
+
export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CellBounds, CellRange, CellRangeOptions, CellRangeReason, CellRangeSelection, LassoDraft, LassoOptions, SelectionModel, SelectionOptions, byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, textToCells } from "./ui-sdk.js";
|
|
2
|
+
import { markPlaced } from "./indicator.js";
|
|
3
|
+
export { type CellBounds, type CellRange, type CellRangeOptions, type CellRangeReason, type CellRangeSelection, type LassoDraft, type LassoOptions, type SelectionModel, type SelectionOptions, byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, markPlaced, textToCells };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, textToCells } from "./ui-sdk.js";
|
|
2
|
+
import { markPlaced } from "./indicator.js";
|
|
3
|
+
export { byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, markPlaced, textToCells };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marks a sliding indicator with `data-placed` once its first placement is
|
|
3
|
+
* done, so its transition can wait for that attribute: the indicator then
|
|
4
|
+
* slides on every change after the first, but doesn't slide in from the
|
|
5
|
+
* corner when the page loads.
|
|
6
|
+
*
|
|
7
|
+
* ui-sdk measures an indicator in a microtask and again when the first frame
|
|
8
|
+
* lays out; two frames later it is in place. Its own state attributes can't
|
|
9
|
+
* gate the transition: ui-sdk writes the indicator's position as soon as the
|
|
10
|
+
* selection changes, and the attributes a render later. Returns a function
|
|
11
|
+
* that cancels the mark, so it fits as a React ref callback's cleanup.
|
|
12
|
+
*/
|
|
13
|
+
export declare function markPlaced(element: HTMLElement): () => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/behaviors/selection/indicator.ts
|
|
2
|
+
/**
|
|
3
|
+
* Marks a sliding indicator with `data-placed` once its first placement is
|
|
4
|
+
* done, so its transition can wait for that attribute: the indicator then
|
|
5
|
+
* slides on every change after the first, but doesn't slide in from the
|
|
6
|
+
* corner when the page loads.
|
|
7
|
+
*
|
|
8
|
+
* ui-sdk measures an indicator in a microtask and again when the first frame
|
|
9
|
+
* lays out; two frames later it is in place. Its own state attributes can't
|
|
10
|
+
* gate the transition: ui-sdk writes the indicator's position as soon as the
|
|
11
|
+
* selection changes, and the attributes a render later. Returns a function
|
|
12
|
+
* that cancels the mark, so it fits as a React ref callback's cleanup.
|
|
13
|
+
*/
|
|
14
|
+
function markPlaced(element) {
|
|
15
|
+
let frame = requestAnimationFrame(() => {
|
|
16
|
+
frame = requestAnimationFrame(() => element.setAttribute("data-placed", ""));
|
|
17
|
+
});
|
|
18
|
+
return () => cancelAnimationFrame(frame);
|
|
19
|
+
}
|
|
20
|
+
export { markPlaced };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CellBounds, CellRange, CellRangeOptions, CellRangeReason, CellRangeSelection, LassoDraft, LassoOptions, SelectionModel, SelectionOptions, byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, textToCells } from "@ui-sdk/core";
|
|
2
|
+
export { type CellBounds, type CellRange, type CellRangeOptions, type CellRangeReason, type CellRangeSelection, type LassoDraft, type LassoOptions, type SelectionModel, type SelectionOptions, byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, textToCells };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { byCellRange, cellRangeMessage, cellsToText, createCellRange, createLasso, createSelection, textToCells } from "@ui-sdk/core";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "./ui-sdk.js";
|
|
2
|
+
export * from "@ui-sdk/core/gesture";
|
|
3
|
+
export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "@ui-sdk/core";
|
|
2
|
+
export * from "@ui-sdk/core/gesture";
|
|
3
|
+
export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TreeCheckStrategy, TreeCheckedState, TreeCollection, TreeCollectionNode, TreeItemData, TreeRow, createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows } from "./ui-sdk.js";
|
|
2
|
+
export { type TreeCheckStrategy, type TreeCheckedState, type TreeCollection, type TreeCollectionNode, type TreeItemData, type TreeRow, createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows } from "./ui-sdk.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TreeCheckStrategy, TreeCheckedState, TreeCollection, TreeCollectionNode, TreeItemData, TreeRow, createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows } from "@ui-sdk/core";
|
|
2
|
+
export { type TreeCheckStrategy, type TreeCheckedState, type TreeCollection, type TreeCollectionNode, type TreeItemData, type TreeRow, createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createTreeCollection, toggleTreeChecked, treeCheckedStates, treeDataNodes, treeFromPaths, visibleTreeRows } from "@ui-sdk/core";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Accordion as Accordion$1, AccordionController, AccordionHeader as AccordionHeader$1, AccordionItem as AccordionItem$1, AccordionPanel as AccordionPanel$1, AccordionTrigger as AccordionTrigger$1, createAccordionController } from "@ui-sdk/react/accordion";
|
|
3
|
+
type AccordionProps<T extends string = string> = Parameters<typeof Accordion$1<T>>[0];
|
|
4
|
+
/** With more than one item, name it with `aria-label` so an agent can find it. */
|
|
5
|
+
declare function Accordion<T extends string = string>({ className, ...props }: AccordionProps<T>): import("react").JSX.Element;
|
|
6
|
+
type AccordionItemProps<T extends string = string> = Parameters<typeof AccordionItem$1<T>>[0];
|
|
7
|
+
declare function AccordionItem<T extends string = string>({ className, ...props }: AccordionItemProps<T>): import("react").JSX.Element;
|
|
8
|
+
/** An `h3`. Change the level with `render={<h2 />}`. */
|
|
9
|
+
declare function AccordionHeader({ className, ...props }: ComponentProps<typeof AccordionHeader$1>): import("react").JSX.Element;
|
|
10
|
+
/** End its children with an `Icon`, like a chevron, and it turns as the panel opens. */
|
|
11
|
+
declare function AccordionTrigger({ className, ...props }: ComponentProps<typeof AccordionTrigger$1>): import("react").JSX.Element;
|
|
12
|
+
declare function AccordionPanel({ className, ...props }: ComponentProps<typeof AccordionPanel$1>): import("react").JSX.Element;
|
|
13
|
+
export { Accordion, type AccordionController, AccordionHeader, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionProps, AccordionTrigger, createAccordionController };
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { Accordion as Accordion$1, AccordionHeader as AccordionHeader$1, AccordionItem as AccordionItem$1, AccordionPanel as AccordionPanel$1, AccordionTrigger as AccordionTrigger$1, createAccordionController } from "@ui-sdk/react/accordion";
|
|
6
|
+
// src/components/accordion/accordion.tsx
|
|
7
|
+
/** With more than one item, name it with `aria-label` so an agent can find it. */
|
|
8
|
+
function Accordion(t0) {
|
|
9
|
+
const $ = c(8);
|
|
10
|
+
let className;
|
|
11
|
+
let props;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({className, ...props} = t0);
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = className;
|
|
16
|
+
$[2] = props;
|
|
17
|
+
} else {
|
|
18
|
+
className = $[1];
|
|
19
|
+
props = $[2];
|
|
20
|
+
}
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[3] !== className) {
|
|
23
|
+
t1 = cnState("flex w-full flex-col", className);
|
|
24
|
+
$[3] = className;
|
|
25
|
+
$[4] = t1;
|
|
26
|
+
} else t1 = $[4];
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
29
|
+
t2 = /* @__PURE__ */ jsx(Accordion$1, {
|
|
30
|
+
className: t1,
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
$[5] = props;
|
|
34
|
+
$[6] = t1;
|
|
35
|
+
$[7] = t2;
|
|
36
|
+
} else t2 = $[7];
|
|
37
|
+
return t2;
|
|
38
|
+
}
|
|
39
|
+
function AccordionItem(t0) {
|
|
40
|
+
const $ = c(8);
|
|
41
|
+
let className;
|
|
42
|
+
let props;
|
|
43
|
+
if ($[0] !== t0) {
|
|
44
|
+
({className, ...props} = t0);
|
|
45
|
+
$[0] = t0;
|
|
46
|
+
$[1] = className;
|
|
47
|
+
$[2] = props;
|
|
48
|
+
} else {
|
|
49
|
+
className = $[1];
|
|
50
|
+
props = $[2];
|
|
51
|
+
}
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[3] !== className) {
|
|
54
|
+
t1 = cnState("not-last:border-b", className);
|
|
55
|
+
$[3] = className;
|
|
56
|
+
$[4] = t1;
|
|
57
|
+
} else t1 = $[4];
|
|
58
|
+
let t2;
|
|
59
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
60
|
+
t2 = /* @__PURE__ */ jsx(AccordionItem$1, {
|
|
61
|
+
className: t1,
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
$[5] = props;
|
|
65
|
+
$[6] = t1;
|
|
66
|
+
$[7] = t2;
|
|
67
|
+
} else t2 = $[7];
|
|
68
|
+
return t2;
|
|
69
|
+
}
|
|
70
|
+
/** An `h3`. Change the level with `render={<h2 />}`. */
|
|
71
|
+
function AccordionHeader(t0) {
|
|
72
|
+
const $ = c(8);
|
|
73
|
+
let className;
|
|
74
|
+
let props;
|
|
75
|
+
if ($[0] !== t0) {
|
|
76
|
+
({className, ...props} = t0);
|
|
77
|
+
$[0] = t0;
|
|
78
|
+
$[1] = className;
|
|
79
|
+
$[2] = props;
|
|
80
|
+
} else {
|
|
81
|
+
className = $[1];
|
|
82
|
+
props = $[2];
|
|
83
|
+
}
|
|
84
|
+
let t1;
|
|
85
|
+
if ($[3] !== className) {
|
|
86
|
+
t1 = cnState("flex", className);
|
|
87
|
+
$[3] = className;
|
|
88
|
+
$[4] = t1;
|
|
89
|
+
} else t1 = $[4];
|
|
90
|
+
let t2;
|
|
91
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
92
|
+
t2 = /* @__PURE__ */ jsx(AccordionHeader$1, {
|
|
93
|
+
className: t1,
|
|
94
|
+
...props
|
|
95
|
+
});
|
|
96
|
+
$[5] = props;
|
|
97
|
+
$[6] = t1;
|
|
98
|
+
$[7] = t2;
|
|
99
|
+
} else t2 = $[7];
|
|
100
|
+
return t2;
|
|
101
|
+
}
|
|
102
|
+
/** End its children with an `Icon`, like a chevron, and it turns as the panel opens. */
|
|
103
|
+
function AccordionTrigger(t0) {
|
|
104
|
+
const $ = c(8);
|
|
105
|
+
let className;
|
|
106
|
+
let props;
|
|
107
|
+
if ($[0] !== t0) {
|
|
108
|
+
({className, ...props} = t0);
|
|
109
|
+
$[0] = t0;
|
|
110
|
+
$[1] = className;
|
|
111
|
+
$[2] = props;
|
|
112
|
+
} else {
|
|
113
|
+
className = $[1];
|
|
114
|
+
props = $[2];
|
|
115
|
+
}
|
|
116
|
+
let t1;
|
|
117
|
+
if ($[3] !== className) {
|
|
118
|
+
t1 = cnState("flex flex-1 items-start justify-between gap-4 rounded-md py-2.5 text-start text-sm font-medium hover:underline focus-ring data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:pointer-events-none [&>svg]:translate-y-0.5 [&>svg]:shrink-0 [&>svg]:text-subtle [&>svg]:transition-transform [&>svg]:duration-popup [&>svg]:ease-out data-open:[&>svg]:rotate-180 motion-reduce:[&>svg]:transition-none", className);
|
|
119
|
+
$[3] = className;
|
|
120
|
+
$[4] = t1;
|
|
121
|
+
} else t1 = $[4];
|
|
122
|
+
let t2;
|
|
123
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
124
|
+
t2 = /* @__PURE__ */ jsx(AccordionTrigger$1, {
|
|
125
|
+
className: t1,
|
|
126
|
+
...props
|
|
127
|
+
});
|
|
128
|
+
$[5] = props;
|
|
129
|
+
$[6] = t1;
|
|
130
|
+
$[7] = t2;
|
|
131
|
+
} else t2 = $[7];
|
|
132
|
+
return t2;
|
|
133
|
+
}
|
|
134
|
+
function AccordionPanel(t0) {
|
|
135
|
+
const $ = c(8);
|
|
136
|
+
let className;
|
|
137
|
+
let props;
|
|
138
|
+
if ($[0] !== t0) {
|
|
139
|
+
({className, ...props} = t0);
|
|
140
|
+
$[0] = t0;
|
|
141
|
+
$[1] = className;
|
|
142
|
+
$[2] = props;
|
|
143
|
+
} else {
|
|
144
|
+
className = $[1];
|
|
145
|
+
props = $[2];
|
|
146
|
+
}
|
|
147
|
+
let t1;
|
|
148
|
+
if ($[3] !== className) {
|
|
149
|
+
t1 = cnState("h-(--accordion-panel-height) overflow-y-clip pb-2.5 text-sm text-muted-foreground transition-[height,padding] duration-popup ease-out data-closed:h-0 data-closed:pb-0 data-starting-style:h-0 data-starting-style:pb-0 motion-reduce:transition-none [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className);
|
|
150
|
+
$[3] = className;
|
|
151
|
+
$[4] = t1;
|
|
152
|
+
} else t1 = $[4];
|
|
153
|
+
let t2;
|
|
154
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
155
|
+
t2 = /* @__PURE__ */ jsx(AccordionPanel$1, {
|
|
156
|
+
className: t1,
|
|
157
|
+
...props
|
|
158
|
+
});
|
|
159
|
+
$[5] = props;
|
|
160
|
+
$[6] = t1;
|
|
161
|
+
$[7] = t2;
|
|
162
|
+
} else t2 = $[7];
|
|
163
|
+
return t2;
|
|
164
|
+
}
|
|
165
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionTrigger, createAccordionController };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { index_d_exports } from "../../core/index.js";
|
|
2
|
+
import { VariantProps } from "../../utilities/cn/index.js";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
declare const alertVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
type AlertProps = ComponentProps<"div"> & VariantProps<typeof alertVariants>;
|
|
8
|
+
declare function Alert({ className, variant, role, ...props }: AlertProps): import("react").JSX.Element;
|
|
9
|
+
/** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
|
|
10
|
+
declare function AlertTitle({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
11
|
+
declare function AlertDescription({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
12
|
+
declare function AlertAction({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
13
|
+
export { Alert, AlertAction, AlertDescription, type AlertProps, AlertTitle };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { core_exports } from "../../core/index.js";
|
|
3
|
+
import { cn, cnState, cva } from "../../utilities/cn/index.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
// src/components/alert/alert.tsx
|
|
7
|
+
const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-xl border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-data-[slot=alert-action]:gap-x-2 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 has-[>svg]:has-data-[slot=alert-action]:grid-cols-[auto_1fr_auto] *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
default: "bg-card text-card-foreground",
|
|
10
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { variant: "default" }
|
|
13
|
+
});
|
|
14
|
+
function Alert(t0) {
|
|
15
|
+
const $ = c(13);
|
|
16
|
+
let className;
|
|
17
|
+
let props;
|
|
18
|
+
let t1;
|
|
19
|
+
let variant;
|
|
20
|
+
if ($[0] !== t0) {
|
|
21
|
+
({className, variant, role: t1, ...props} = t0);
|
|
22
|
+
$[0] = t0;
|
|
23
|
+
$[1] = className;
|
|
24
|
+
$[2] = props;
|
|
25
|
+
$[3] = t1;
|
|
26
|
+
$[4] = variant;
|
|
27
|
+
} else {
|
|
28
|
+
className = $[1];
|
|
29
|
+
props = $[2];
|
|
30
|
+
t1 = $[3];
|
|
31
|
+
variant = $[4];
|
|
32
|
+
}
|
|
33
|
+
const role = t1 === void 0 ? "status" : t1;
|
|
34
|
+
const t2 = variant ?? "default";
|
|
35
|
+
let t3;
|
|
36
|
+
if ($[5] !== className || $[6] !== variant) {
|
|
37
|
+
t3 = cn(alertVariants({ variant }), className);
|
|
38
|
+
$[5] = className;
|
|
39
|
+
$[6] = variant;
|
|
40
|
+
$[7] = t3;
|
|
41
|
+
} else t3 = $[7];
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[8] !== props || $[9] !== role || $[10] !== t2 || $[11] !== t3) {
|
|
44
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
45
|
+
"data-slot": "alert",
|
|
46
|
+
"data-variant": t2,
|
|
47
|
+
role,
|
|
48
|
+
className: t3,
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
$[8] = props;
|
|
52
|
+
$[9] = role;
|
|
53
|
+
$[10] = t2;
|
|
54
|
+
$[11] = t3;
|
|
55
|
+
$[12] = t4;
|
|
56
|
+
} else t4 = $[12];
|
|
57
|
+
return t4;
|
|
58
|
+
}
|
|
59
|
+
/** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
|
|
60
|
+
function AlertTitle({ className, render, ...props }) {
|
|
61
|
+
return (0, core_exports.renderElement)("div", {
|
|
62
|
+
"data-slot": "alert-title",
|
|
63
|
+
...props,
|
|
64
|
+
className: cnState("col-start-1 text-label group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", className)
|
|
65
|
+
}, render);
|
|
66
|
+
}
|
|
67
|
+
function AlertDescription(t0) {
|
|
68
|
+
const $ = c(8);
|
|
69
|
+
let className;
|
|
70
|
+
let props;
|
|
71
|
+
if ($[0] !== t0) {
|
|
72
|
+
({className, ...props} = t0);
|
|
73
|
+
$[0] = t0;
|
|
74
|
+
$[1] = className;
|
|
75
|
+
$[2] = props;
|
|
76
|
+
} else {
|
|
77
|
+
className = $[1];
|
|
78
|
+
props = $[2];
|
|
79
|
+
}
|
|
80
|
+
let t1;
|
|
81
|
+
if ($[3] !== className) {
|
|
82
|
+
t1 = cn("col-start-1 text-sm text-balance text-muted-foreground group-has-[>svg]/alert:col-start-2 md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className);
|
|
83
|
+
$[3] = className;
|
|
84
|
+
$[4] = t1;
|
|
85
|
+
} else t1 = $[4];
|
|
86
|
+
let t2;
|
|
87
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
88
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
89
|
+
"data-slot": "alert-description",
|
|
90
|
+
className: t1,
|
|
91
|
+
...props
|
|
92
|
+
});
|
|
93
|
+
$[5] = props;
|
|
94
|
+
$[6] = t1;
|
|
95
|
+
$[7] = t2;
|
|
96
|
+
} else t2 = $[7];
|
|
97
|
+
return t2;
|
|
98
|
+
}
|
|
99
|
+
function AlertAction(t0) {
|
|
100
|
+
const $ = c(8);
|
|
101
|
+
let className;
|
|
102
|
+
let props;
|
|
103
|
+
if ($[0] !== t0) {
|
|
104
|
+
({className, ...props} = t0);
|
|
105
|
+
$[0] = t0;
|
|
106
|
+
$[1] = className;
|
|
107
|
+
$[2] = props;
|
|
108
|
+
} else {
|
|
109
|
+
className = $[1];
|
|
110
|
+
props = $[2];
|
|
111
|
+
}
|
|
112
|
+
let t1;
|
|
113
|
+
if ($[3] !== className) {
|
|
114
|
+
t1 = cn("col-start-2 row-span-2 row-start-1 self-start group-has-[>svg]/alert:col-start-3", className);
|
|
115
|
+
$[3] = className;
|
|
116
|
+
$[4] = t1;
|
|
117
|
+
} else t1 = $[4];
|
|
118
|
+
let t2;
|
|
119
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
120
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
121
|
+
"data-slot": "alert-action",
|
|
122
|
+
className: t1,
|
|
123
|
+
...props
|
|
124
|
+
});
|
|
125
|
+
$[5] = props;
|
|
126
|
+
$[6] = t1;
|
|
127
|
+
$[7] = t2;
|
|
128
|
+
} else t2 = $[7];
|
|
129
|
+
return t2;
|
|
130
|
+
}
|
|
131
|
+
export { Alert, AlertAction, AlertDescription, AlertTitle };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { AlertDialogBackdrop as AlertDialogBackdrop$1, AlertDialogClose as AlertDialogClose$1, AlertDialogCloseActionDetails, AlertDialogCloseState, AlertDialogContent as AlertDialogContent$1, AlertDialogContentState, AlertDialogController, AlertDialogDescription as AlertDialogDescription$1, AlertDialogOpenChangeReason, AlertDialogPayloadChangeReason, AlertDialogProps, AlertDialogShortcut as AlertDialogShortcut$1, AlertDialogShortcutState, AlertDialogTitle as AlertDialogTitle$1, AlertDialogTrigger as AlertDialogTrigger$1, AlertDialogTriggerState, ConfirmOptions, confirm, createAlertDialogController, createConfirm } from "@ui-sdk/react/alert-dialog";
|
|
4
|
+
declare function AlertDialog(props: AlertDialogProps): import("react").JSX.Element;
|
|
5
|
+
type AlertDialogTriggerProps = ComponentProps<typeof AlertDialogTrigger$1> & ButtonLook;
|
|
6
|
+
declare function AlertDialogTrigger({ variant, size, className, ...props }: AlertDialogTriggerProps): import("react").JSX.Element;
|
|
7
|
+
declare function AlertDialogBackdrop({ className, ...props }: ComponentProps<typeof AlertDialogBackdrop$1>): import("react").JSX.Element;
|
|
8
|
+
type AlertDialogContentProps<Payload = unknown> = ComponentProps<typeof AlertDialogContent$1<Payload>>;
|
|
9
|
+
declare function AlertDialogContent<Payload = unknown>({ className, ...props }: AlertDialogContentProps<Payload>): import("react").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogTitle$1>): import("react").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogDescription$1>): import("react").JSX.Element;
|
|
12
|
+
type AlertDialogCloseProps = ComponentProps<typeof AlertDialogClose$1> & ButtonLook;
|
|
13
|
+
declare function AlertDialogClose({ variant, size, className, ...props }: AlertDialogCloseProps): import("react").JSX.Element;
|
|
14
|
+
declare function AlertDialogShortcut({ className, ...props }: ComponentProps<typeof AlertDialogShortcut$1>): import("react").JSX.Element;
|
|
15
|
+
export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, type AlertDialogCloseActionDetails, type AlertDialogCloseProps, type AlertDialogCloseState, AlertDialogContent, type AlertDialogContentProps, type AlertDialogContentState, type AlertDialogController, AlertDialogDescription, type AlertDialogOpenChangeReason, type AlertDialogPayloadChangeReason, type AlertDialogProps, AlertDialogShortcut, type AlertDialogShortcutState, AlertDialogTitle, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertDialogTriggerState, type ConfirmOptions, confirm, createAlertDialogController, createConfirm };
|