@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,257 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { buttonLook } from "../button/button.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { AlertDialog as AlertDialog$1, AlertDialogBackdrop as AlertDialogBackdrop$1, AlertDialogClose as AlertDialogClose$1, AlertDialogContent as AlertDialogContent$1, AlertDialogDescription as AlertDialogDescription$1, AlertDialogShortcut as AlertDialogShortcut$1, AlertDialogTitle as AlertDialogTitle$1, AlertDialogTrigger as AlertDialogTrigger$1, confirm, createAlertDialogController, createConfirm } from "@ui-sdk/react/alert-dialog";
|
|
7
|
+
// src/components/alert-dialog/alert-dialog.tsx
|
|
8
|
+
function AlertDialog(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(AlertDialog$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
function AlertDialogTrigger(t0) {
|
|
19
|
+
const $ = c(12);
|
|
20
|
+
let className;
|
|
21
|
+
let props;
|
|
22
|
+
let size;
|
|
23
|
+
let variant;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({variant, size, className, ...props} = t0);
|
|
26
|
+
$[0] = t0;
|
|
27
|
+
$[1] = className;
|
|
28
|
+
$[2] = props;
|
|
29
|
+
$[3] = size;
|
|
30
|
+
$[4] = variant;
|
|
31
|
+
} else {
|
|
32
|
+
className = $[1];
|
|
33
|
+
props = $[2];
|
|
34
|
+
size = $[3];
|
|
35
|
+
variant = $[4];
|
|
36
|
+
}
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
39
|
+
t1 = cnState(buttonLook({
|
|
40
|
+
variant,
|
|
41
|
+
size
|
|
42
|
+
}), className);
|
|
43
|
+
$[5] = className;
|
|
44
|
+
$[6] = size;
|
|
45
|
+
$[7] = variant;
|
|
46
|
+
$[8] = t1;
|
|
47
|
+
} else t1 = $[8];
|
|
48
|
+
let t2;
|
|
49
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
50
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogTrigger$1, {
|
|
51
|
+
className: t1,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
$[9] = props;
|
|
55
|
+
$[10] = t1;
|
|
56
|
+
$[11] = t2;
|
|
57
|
+
} else t2 = $[11];
|
|
58
|
+
return t2;
|
|
59
|
+
}
|
|
60
|
+
function AlertDialogBackdrop(t0) {
|
|
61
|
+
const $ = c(8);
|
|
62
|
+
let className;
|
|
63
|
+
let props;
|
|
64
|
+
if ($[0] !== t0) {
|
|
65
|
+
({className, ...props} = t0);
|
|
66
|
+
$[0] = t0;
|
|
67
|
+
$[1] = className;
|
|
68
|
+
$[2] = props;
|
|
69
|
+
} else {
|
|
70
|
+
className = $[1];
|
|
71
|
+
props = $[2];
|
|
72
|
+
}
|
|
73
|
+
let t1;
|
|
74
|
+
if ($[3] !== className) {
|
|
75
|
+
t1 = cnState("popup-overlay [--popup-duration:var(--transition-duration-modal)]", className);
|
|
76
|
+
$[3] = className;
|
|
77
|
+
$[4] = t1;
|
|
78
|
+
} else t1 = $[4];
|
|
79
|
+
let t2;
|
|
80
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
81
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogBackdrop$1, {
|
|
82
|
+
className: t1,
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
85
|
+
$[5] = props;
|
|
86
|
+
$[6] = t1;
|
|
87
|
+
$[7] = t2;
|
|
88
|
+
} else t2 = $[7];
|
|
89
|
+
return t2;
|
|
90
|
+
}
|
|
91
|
+
function AlertDialogContent(t0) {
|
|
92
|
+
const $ = c(8);
|
|
93
|
+
let className;
|
|
94
|
+
let props;
|
|
95
|
+
if ($[0] !== t0) {
|
|
96
|
+
({className, ...props} = t0);
|
|
97
|
+
$[0] = t0;
|
|
98
|
+
$[1] = className;
|
|
99
|
+
$[2] = props;
|
|
100
|
+
} else {
|
|
101
|
+
className = $[1];
|
|
102
|
+
props = $[2];
|
|
103
|
+
}
|
|
104
|
+
let t1;
|
|
105
|
+
if ($[3] !== className) {
|
|
106
|
+
t1 = cnState("fixed inset-0 m-auto grid h-fit max-h-[calc(100%-2rem)] w-full max-w-xs gap-4 overflow-y-auto rounded-2xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none popup-motion [--popup-duration:var(--transition-duration-modal)] data-starting-style:scale-[0.96] data-closed:scale-[0.96] sm:max-w-sm", className);
|
|
107
|
+
$[3] = className;
|
|
108
|
+
$[4] = t1;
|
|
109
|
+
} else t1 = $[4];
|
|
110
|
+
let t2;
|
|
111
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
112
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogContent$1, {
|
|
113
|
+
className: t1,
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
$[5] = props;
|
|
117
|
+
$[6] = t1;
|
|
118
|
+
$[7] = t2;
|
|
119
|
+
} else t2 = $[7];
|
|
120
|
+
return t2;
|
|
121
|
+
}
|
|
122
|
+
function AlertDialogTitle(t0) {
|
|
123
|
+
const $ = c(8);
|
|
124
|
+
let className;
|
|
125
|
+
let props;
|
|
126
|
+
if ($[0] !== t0) {
|
|
127
|
+
({className, ...props} = t0);
|
|
128
|
+
$[0] = t0;
|
|
129
|
+
$[1] = className;
|
|
130
|
+
$[2] = props;
|
|
131
|
+
} else {
|
|
132
|
+
className = $[1];
|
|
133
|
+
props = $[2];
|
|
134
|
+
}
|
|
135
|
+
let t1;
|
|
136
|
+
if ($[3] !== className) {
|
|
137
|
+
t1 = cnState("text-heading-3", className);
|
|
138
|
+
$[3] = className;
|
|
139
|
+
$[4] = t1;
|
|
140
|
+
} else t1 = $[4];
|
|
141
|
+
let t2;
|
|
142
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
143
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogTitle$1, {
|
|
144
|
+
className: t1,
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
$[5] = props;
|
|
148
|
+
$[6] = t1;
|
|
149
|
+
$[7] = t2;
|
|
150
|
+
} else t2 = $[7];
|
|
151
|
+
return t2;
|
|
152
|
+
}
|
|
153
|
+
function AlertDialogDescription(t0) {
|
|
154
|
+
const $ = c(8);
|
|
155
|
+
let className;
|
|
156
|
+
let props;
|
|
157
|
+
if ($[0] !== t0) {
|
|
158
|
+
({className, ...props} = t0);
|
|
159
|
+
$[0] = t0;
|
|
160
|
+
$[1] = className;
|
|
161
|
+
$[2] = props;
|
|
162
|
+
} else {
|
|
163
|
+
className = $[1];
|
|
164
|
+
props = $[2];
|
|
165
|
+
}
|
|
166
|
+
let t1;
|
|
167
|
+
if ($[3] !== className) {
|
|
168
|
+
t1 = cnState("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className);
|
|
169
|
+
$[3] = className;
|
|
170
|
+
$[4] = t1;
|
|
171
|
+
} else t1 = $[4];
|
|
172
|
+
let t2;
|
|
173
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
174
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogDescription$1, {
|
|
175
|
+
className: t1,
|
|
176
|
+
...props
|
|
177
|
+
});
|
|
178
|
+
$[5] = props;
|
|
179
|
+
$[6] = t1;
|
|
180
|
+
$[7] = t2;
|
|
181
|
+
} else t2 = $[7];
|
|
182
|
+
return t2;
|
|
183
|
+
}
|
|
184
|
+
function AlertDialogClose(t0) {
|
|
185
|
+
const $ = c(12);
|
|
186
|
+
let className;
|
|
187
|
+
let props;
|
|
188
|
+
let size;
|
|
189
|
+
let variant;
|
|
190
|
+
if ($[0] !== t0) {
|
|
191
|
+
({variant, size, className, ...props} = t0);
|
|
192
|
+
$[0] = t0;
|
|
193
|
+
$[1] = className;
|
|
194
|
+
$[2] = props;
|
|
195
|
+
$[3] = size;
|
|
196
|
+
$[4] = variant;
|
|
197
|
+
} else {
|
|
198
|
+
className = $[1];
|
|
199
|
+
props = $[2];
|
|
200
|
+
size = $[3];
|
|
201
|
+
variant = $[4];
|
|
202
|
+
}
|
|
203
|
+
let t1;
|
|
204
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
205
|
+
t1 = cnState(buttonLook({
|
|
206
|
+
variant,
|
|
207
|
+
size
|
|
208
|
+
}), className);
|
|
209
|
+
$[5] = className;
|
|
210
|
+
$[6] = size;
|
|
211
|
+
$[7] = variant;
|
|
212
|
+
$[8] = t1;
|
|
213
|
+
} else t1 = $[8];
|
|
214
|
+
let t2;
|
|
215
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
216
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogClose$1, {
|
|
217
|
+
className: t1,
|
|
218
|
+
...props
|
|
219
|
+
});
|
|
220
|
+
$[9] = props;
|
|
221
|
+
$[10] = t1;
|
|
222
|
+
$[11] = t2;
|
|
223
|
+
} else t2 = $[11];
|
|
224
|
+
return t2;
|
|
225
|
+
}
|
|
226
|
+
function AlertDialogShortcut(t0) {
|
|
227
|
+
const $ = c(8);
|
|
228
|
+
let className;
|
|
229
|
+
let props;
|
|
230
|
+
if ($[0] !== t0) {
|
|
231
|
+
({className, ...props} = t0);
|
|
232
|
+
$[0] = t0;
|
|
233
|
+
$[1] = className;
|
|
234
|
+
$[2] = props;
|
|
235
|
+
} else {
|
|
236
|
+
className = $[1];
|
|
237
|
+
props = $[2];
|
|
238
|
+
}
|
|
239
|
+
let t1;
|
|
240
|
+
if ($[3] !== className) {
|
|
241
|
+
t1 = cnState("ms-auto text-xs tracking-widest text-muted-foreground", className);
|
|
242
|
+
$[3] = className;
|
|
243
|
+
$[4] = t1;
|
|
244
|
+
} else t1 = $[4];
|
|
245
|
+
let t2;
|
|
246
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
247
|
+
t2 = /* @__PURE__ */ jsx(AlertDialogShortcut$1, {
|
|
248
|
+
className: t1,
|
|
249
|
+
...props
|
|
250
|
+
});
|
|
251
|
+
$[5] = props;
|
|
252
|
+
$[6] = t1;
|
|
253
|
+
$[7] = t2;
|
|
254
|
+
} else t2 = $[7];
|
|
255
|
+
return t2;
|
|
256
|
+
}
|
|
257
|
+
export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogShortcut, AlertDialogTitle, AlertDialogTrigger, confirm, createAlertDialogController, createConfirm };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
type AspectRatioProps = ComponentProps<"div"> & {
|
|
3
|
+
/** Width divided by height, like `16 / 9`. */
|
|
4
|
+
ratio: number;
|
|
5
|
+
};
|
|
6
|
+
declare function AspectRatio({ ratio, className, style, ...props }: AspectRatioProps): import("react").JSX.Element;
|
|
7
|
+
export { AspectRatio, type AspectRatioProps };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../utilities/cn/index.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/aspect-ratio/aspect-ratio.tsx
|
|
6
|
+
function AspectRatio(t0) {
|
|
7
|
+
const $ = c(14);
|
|
8
|
+
let className;
|
|
9
|
+
let props;
|
|
10
|
+
let ratio;
|
|
11
|
+
let style;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({ratio, className, style, ...props} = t0);
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = className;
|
|
16
|
+
$[2] = props;
|
|
17
|
+
$[3] = ratio;
|
|
18
|
+
$[4] = style;
|
|
19
|
+
} else {
|
|
20
|
+
className = $[1];
|
|
21
|
+
props = $[2];
|
|
22
|
+
ratio = $[3];
|
|
23
|
+
style = $[4];
|
|
24
|
+
}
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[5] !== ratio || $[6] !== style) {
|
|
27
|
+
t1 = {
|
|
28
|
+
"--ratio": ratio,
|
|
29
|
+
...style
|
|
30
|
+
};
|
|
31
|
+
$[5] = ratio;
|
|
32
|
+
$[6] = style;
|
|
33
|
+
$[7] = t1;
|
|
34
|
+
} else t1 = $[7];
|
|
35
|
+
const t2 = t1;
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[8] !== className) {
|
|
38
|
+
t3 = cn("relative aspect-(--ratio)", className);
|
|
39
|
+
$[8] = className;
|
|
40
|
+
$[9] = t3;
|
|
41
|
+
} else t3 = $[9];
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[10] !== props || $[11] !== t2 || $[12] !== t3) {
|
|
44
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
45
|
+
"data-slot": "aspect-ratio",
|
|
46
|
+
style: t2,
|
|
47
|
+
className: t3,
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
$[10] = props;
|
|
51
|
+
$[11] = t2;
|
|
52
|
+
$[12] = t3;
|
|
53
|
+
$[13] = t4;
|
|
54
|
+
} else t4 = $[13];
|
|
55
|
+
return t4;
|
|
56
|
+
}
|
|
57
|
+
export { AspectRatio };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { index_d_exports } from "../../core/index.js";
|
|
2
|
+
import { VariantProps } from "../../utilities/cn/index.js";
|
|
3
|
+
import { ButtonProps } from "../button/button.js";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
type AttachmentState = "idle" | "uploading" | "processing" | "error" | "done";
|
|
6
|
+
declare const attachmentVariants: (props?: ({
|
|
7
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
8
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
type AttachmentProps = ComponentProps<"div"> & VariantProps<typeof attachmentVariants> & {
|
|
11
|
+
/** The upload state. Drives the styling and the title's shimmer. */
|
|
12
|
+
state?: AttachmentState;
|
|
13
|
+
};
|
|
14
|
+
declare function Attachment({ className, state, size, orientation, ...props }: AttachmentProps): import("react").JSX.Element;
|
|
15
|
+
declare const attachmentMediaVariants: (props?: ({
|
|
16
|
+
variant?: "icon" | "image" | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
type AttachmentMediaProps = ComponentProps<"div"> & VariantProps<typeof attachmentMediaVariants>;
|
|
19
|
+
declare function AttachmentMedia({ className, variant, ...props }: AttachmentMediaProps): import("react").JSX.Element;
|
|
20
|
+
declare function AttachmentContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* The attachment's name. While the attachment is `uploading` or `processing`
|
|
23
|
+
* it shimmers and is a `status`, since it announces a wait.
|
|
24
|
+
*/
|
|
25
|
+
declare function AttachmentTitle({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
26
|
+
declare function AttachmentDescription({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
27
|
+
declare function AttachmentActions({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* An action on the attachment: abby's `Button`, ghost and `icon-xs` by default.
|
|
30
|
+
* An action that is only an icon needs an `aria-label` that names the action
|
|
31
|
+
* and its target, like "Remove report.pdf". Its `data-slot` is ui-sdk's
|
|
32
|
+
* `button`, which the primitive sets itself.
|
|
33
|
+
*/
|
|
34
|
+
declare function AttachmentAction({ className, variant, size, ...props }: ButtonProps): import("react").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* An invisible button stretched over the attachment, behind its actions. It
|
|
37
|
+
* has no text of its own, so give it an `aria-label` for what it opens.
|
|
38
|
+
* `render` makes it a link, or the trigger of a dialog.
|
|
39
|
+
*/
|
|
40
|
+
declare function AttachmentTrigger({ className, render, type, ...props }: index_d_exports.PartProps<"button">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
41
|
+
/**
|
|
42
|
+
* A row of attachments that scrolls sideways and snaps. Attachments with a
|
|
43
|
+
* trigger or actions are reached with Tab. A row of attachments with no
|
|
44
|
+
* controls needs `tabIndex={0}`, `role="group"` and an `aria-label` so the
|
|
45
|
+
* keyboard can scroll it.
|
|
46
|
+
*/
|
|
47
|
+
declare function AttachmentGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
48
|
+
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentMediaProps, type AttachmentProps, type AttachmentState, AttachmentTitle, AttachmentTrigger, attachmentMediaVariants, attachmentVariants };
|