@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,309 @@
|
|
|
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 { Drawer as Drawer$1, DrawerBackdrop as DrawerBackdrop$1, DrawerClose as DrawerClose$1, DrawerContent as DrawerContent$1, DrawerDescription as DrawerDescription$1, DrawerHandle as DrawerHandle$1, DrawerOutlet as DrawerOutlet$1, DrawerShortcut as DrawerShortcut$1, DrawerTitle as DrawerTitle$1, DrawerTrigger as DrawerTrigger$1, createDrawerController, sheetPhysics } from "@ui-sdk/react/drawer";
|
|
7
|
+
// src/components/drawer/drawer.tsx
|
|
8
|
+
function Drawer(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(Drawer$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
function DrawerTrigger(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(DrawerTrigger$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 DrawerBackdrop(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 transition-none data-hidden:hidden", className);
|
|
76
|
+
$[3] = className;
|
|
77
|
+
$[4] = t1;
|
|
78
|
+
} else t1 = $[4];
|
|
79
|
+
let t2;
|
|
80
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
81
|
+
t2 = /* @__PURE__ */ jsx(DrawerBackdrop$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 DrawerContent(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([
|
|
107
|
+
"relative flex scale-[calc(1-var(--drawer-stack,0)*0.04)] flex-col gap-4 bg-popover p-4 text-sm text-popover-foreground shadow-lg outline-none",
|
|
108
|
+
"after:absolute after:bg-inherit",
|
|
109
|
+
"data-[side=bottom]:mx-auto data-[side=bottom]:h-fit data-[side=bottom]:max-h-[85dvh] data-[side=bottom]:w-full data-[side=bottom]:origin-bottom data-[side=bottom]:rounded-t-2xl data-[side=bottom]:border-t data-[side=bottom]:after:inset-x-0 data-[side=bottom]:after:top-full data-[side=bottom]:after:h-24",
|
|
110
|
+
"data-[side=top]:mx-auto data-[side=top]:h-fit data-[side=top]:max-h-[85dvh] data-[side=top]:w-full data-[side=top]:origin-top data-[side=top]:rounded-b-2xl data-[side=top]:border-b data-[side=top]:after:inset-x-0 data-[side=top]:after:bottom-full data-[side=top]:after:h-24",
|
|
111
|
+
"data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:origin-left data-[side=left]:rounded-r-2xl data-[side=left]:border-r data-[side=left]:after:inset-y-0 data-[side=left]:after:right-full data-[side=left]:after:w-24 data-[side=left]:sm:max-w-sm",
|
|
112
|
+
"data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:origin-right data-[side=right]:rounded-l-2xl data-[side=right]:border-l data-[side=right]:after:inset-y-0 data-[side=right]:after:left-full data-[side=right]:after:w-24 data-[side=right]:sm:max-w-sm"
|
|
113
|
+
], className);
|
|
114
|
+
$[3] = className;
|
|
115
|
+
$[4] = t1;
|
|
116
|
+
} else t1 = $[4];
|
|
117
|
+
let t2;
|
|
118
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
119
|
+
t2 = /* @__PURE__ */ jsx(DrawerContent$1, {
|
|
120
|
+
className: t1,
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
$[5] = props;
|
|
124
|
+
$[6] = t1;
|
|
125
|
+
$[7] = t2;
|
|
126
|
+
} else t2 = $[7];
|
|
127
|
+
return t2;
|
|
128
|
+
}
|
|
129
|
+
function DrawerHandle(t0) {
|
|
130
|
+
const $ = c(8);
|
|
131
|
+
let className;
|
|
132
|
+
let props;
|
|
133
|
+
if ($[0] !== t0) {
|
|
134
|
+
({className, ...props} = t0);
|
|
135
|
+
$[0] = t0;
|
|
136
|
+
$[1] = className;
|
|
137
|
+
$[2] = props;
|
|
138
|
+
} else {
|
|
139
|
+
className = $[1];
|
|
140
|
+
props = $[2];
|
|
141
|
+
}
|
|
142
|
+
let t1;
|
|
143
|
+
if ($[3] !== className) {
|
|
144
|
+
t1 = cnState([
|
|
145
|
+
"mx-auto flex h-5 w-24 shrink-0 cursor-grab items-center justify-center rounded-full focus-ring after:h-1.5 after:w-12 after:rounded-full after:bg-input active:cursor-grabbing",
|
|
146
|
+
"in-data-[side=left]:absolute in-data-[side=left]:inset-y-0 in-data-[side=left]:right-0 in-data-[side=left]:my-auto in-data-[side=left]:h-24 in-data-[side=left]:w-5 in-data-[side=left]:after:h-12 in-data-[side=left]:after:w-1.5",
|
|
147
|
+
"in-data-[side=right]:absolute in-data-[side=right]:inset-y-0 in-data-[side=right]:left-0 in-data-[side=right]:my-auto in-data-[side=right]:h-24 in-data-[side=right]:w-5 in-data-[side=right]:after:h-12 in-data-[side=right]:after:w-1.5"
|
|
148
|
+
], className);
|
|
149
|
+
$[3] = className;
|
|
150
|
+
$[4] = t1;
|
|
151
|
+
} else t1 = $[4];
|
|
152
|
+
let t2;
|
|
153
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
154
|
+
t2 = /* @__PURE__ */ jsx(DrawerHandle$1, {
|
|
155
|
+
className: t1,
|
|
156
|
+
...props
|
|
157
|
+
});
|
|
158
|
+
$[5] = props;
|
|
159
|
+
$[6] = t1;
|
|
160
|
+
$[7] = t2;
|
|
161
|
+
} else t2 = $[7];
|
|
162
|
+
return t2;
|
|
163
|
+
}
|
|
164
|
+
function DrawerTitle(t0) {
|
|
165
|
+
const $ = c(8);
|
|
166
|
+
let className;
|
|
167
|
+
let props;
|
|
168
|
+
if ($[0] !== t0) {
|
|
169
|
+
({className, ...props} = t0);
|
|
170
|
+
$[0] = t0;
|
|
171
|
+
$[1] = className;
|
|
172
|
+
$[2] = props;
|
|
173
|
+
} else {
|
|
174
|
+
className = $[1];
|
|
175
|
+
props = $[2];
|
|
176
|
+
}
|
|
177
|
+
let t1;
|
|
178
|
+
if ($[3] !== className) {
|
|
179
|
+
t1 = cnState("text-heading-3", className);
|
|
180
|
+
$[3] = className;
|
|
181
|
+
$[4] = t1;
|
|
182
|
+
} else t1 = $[4];
|
|
183
|
+
let t2;
|
|
184
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
185
|
+
t2 = /* @__PURE__ */ jsx(DrawerTitle$1, {
|
|
186
|
+
className: t1,
|
|
187
|
+
...props
|
|
188
|
+
});
|
|
189
|
+
$[5] = props;
|
|
190
|
+
$[6] = t1;
|
|
191
|
+
$[7] = t2;
|
|
192
|
+
} else t2 = $[7];
|
|
193
|
+
return t2;
|
|
194
|
+
}
|
|
195
|
+
function DrawerDescription(t0) {
|
|
196
|
+
const $ = c(8);
|
|
197
|
+
let className;
|
|
198
|
+
let props;
|
|
199
|
+
if ($[0] !== t0) {
|
|
200
|
+
({className, ...props} = t0);
|
|
201
|
+
$[0] = t0;
|
|
202
|
+
$[1] = className;
|
|
203
|
+
$[2] = props;
|
|
204
|
+
} else {
|
|
205
|
+
className = $[1];
|
|
206
|
+
props = $[2];
|
|
207
|
+
}
|
|
208
|
+
let t1;
|
|
209
|
+
if ($[3] !== className) {
|
|
210
|
+
t1 = cnState("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className);
|
|
211
|
+
$[3] = className;
|
|
212
|
+
$[4] = t1;
|
|
213
|
+
} else t1 = $[4];
|
|
214
|
+
let t2;
|
|
215
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
216
|
+
t2 = /* @__PURE__ */ jsx(DrawerDescription$1, {
|
|
217
|
+
className: t1,
|
|
218
|
+
...props
|
|
219
|
+
});
|
|
220
|
+
$[5] = props;
|
|
221
|
+
$[6] = t1;
|
|
222
|
+
$[7] = t2;
|
|
223
|
+
} else t2 = $[7];
|
|
224
|
+
return t2;
|
|
225
|
+
}
|
|
226
|
+
function DrawerClose(t0) {
|
|
227
|
+
const $ = c(12);
|
|
228
|
+
let className;
|
|
229
|
+
let props;
|
|
230
|
+
let size;
|
|
231
|
+
let variant;
|
|
232
|
+
if ($[0] !== t0) {
|
|
233
|
+
({variant, size, className, ...props} = t0);
|
|
234
|
+
$[0] = t0;
|
|
235
|
+
$[1] = className;
|
|
236
|
+
$[2] = props;
|
|
237
|
+
$[3] = size;
|
|
238
|
+
$[4] = variant;
|
|
239
|
+
} else {
|
|
240
|
+
className = $[1];
|
|
241
|
+
props = $[2];
|
|
242
|
+
size = $[3];
|
|
243
|
+
variant = $[4];
|
|
244
|
+
}
|
|
245
|
+
let t1;
|
|
246
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
247
|
+
t1 = cnState(buttonLook({
|
|
248
|
+
variant,
|
|
249
|
+
size
|
|
250
|
+
}), className);
|
|
251
|
+
$[5] = className;
|
|
252
|
+
$[6] = size;
|
|
253
|
+
$[7] = variant;
|
|
254
|
+
$[8] = t1;
|
|
255
|
+
} else t1 = $[8];
|
|
256
|
+
let t2;
|
|
257
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
258
|
+
t2 = /* @__PURE__ */ jsx(DrawerClose$1, {
|
|
259
|
+
className: t1,
|
|
260
|
+
...props
|
|
261
|
+
});
|
|
262
|
+
$[9] = props;
|
|
263
|
+
$[10] = t1;
|
|
264
|
+
$[11] = t2;
|
|
265
|
+
} else t2 = $[11];
|
|
266
|
+
return t2;
|
|
267
|
+
}
|
|
268
|
+
function DrawerShortcut(t0) {
|
|
269
|
+
const $ = c(8);
|
|
270
|
+
let className;
|
|
271
|
+
let props;
|
|
272
|
+
if ($[0] !== t0) {
|
|
273
|
+
({className, ...props} = t0);
|
|
274
|
+
$[0] = t0;
|
|
275
|
+
$[1] = className;
|
|
276
|
+
$[2] = props;
|
|
277
|
+
} else {
|
|
278
|
+
className = $[1];
|
|
279
|
+
props = $[2];
|
|
280
|
+
}
|
|
281
|
+
let t1;
|
|
282
|
+
if ($[3] !== className) {
|
|
283
|
+
t1 = cnState("ms-auto text-xs tracking-widest text-muted-foreground", className);
|
|
284
|
+
$[3] = className;
|
|
285
|
+
$[4] = t1;
|
|
286
|
+
} else t1 = $[4];
|
|
287
|
+
let t2;
|
|
288
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
289
|
+
t2 = /* @__PURE__ */ jsx(DrawerShortcut$1, {
|
|
290
|
+
className: t1,
|
|
291
|
+
...props
|
|
292
|
+
});
|
|
293
|
+
$[5] = props;
|
|
294
|
+
$[6] = t1;
|
|
295
|
+
$[7] = t2;
|
|
296
|
+
} else t2 = $[7];
|
|
297
|
+
return t2;
|
|
298
|
+
}
|
|
299
|
+
function DrawerOutlet(props) {
|
|
300
|
+
const $ = c(2);
|
|
301
|
+
let t0;
|
|
302
|
+
if ($[0] !== props) {
|
|
303
|
+
t0 = /* @__PURE__ */ jsx(DrawerOutlet$1, { ...props });
|
|
304
|
+
$[0] = props;
|
|
305
|
+
$[1] = t0;
|
|
306
|
+
} else t0 = $[1];
|
|
307
|
+
return t0;
|
|
308
|
+
}
|
|
309
|
+
export { Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerHandle, DrawerOutlet, DrawerShortcut, DrawerTitle, DrawerTrigger, createDrawerController, sheetPhysics };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { index_d_exports } from "../../core/index.js";
|
|
2
|
+
import { VariantProps } from "../../utilities/cn/index.js";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
/** What a view shows when it has nothing to list: a title, why, and what to do next. */
|
|
5
|
+
declare function Empty({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
6
|
+
declare function EmptyHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
7
|
+
declare const emptyMediaVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "icon" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
type EmptyMediaProps = ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>;
|
|
11
|
+
/** An icon, avatar or picture above the title. Decorative unless what's inside has a name. */
|
|
12
|
+
declare function EmptyMedia({ className, variant, ...props }: EmptyMediaProps): import("react").JSX.Element;
|
|
13
|
+
/** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
|
|
14
|
+
declare function EmptyTitle({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
+
declare function EmptyDescription({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
16
|
+
/** The actions: buttons, a search field, a link to the docs. */
|
|
17
|
+
declare function EmptyContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
18
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, EmptyTitle, emptyMediaVariants };
|
|
@@ -0,0 +1,192 @@
|
|
|
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/empty/empty.tsx
|
|
7
|
+
/** What a view shows when it has nothing to list: a title, why, and what to do next. */
|
|
8
|
+
function Empty(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 = cn("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance", className);
|
|
24
|
+
$[3] = className;
|
|
25
|
+
$[4] = t1;
|
|
26
|
+
} else t1 = $[4];
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
29
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
30
|
+
"data-slot": "empty",
|
|
31
|
+
className: t1,
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
$[5] = props;
|
|
35
|
+
$[6] = t1;
|
|
36
|
+
$[7] = t2;
|
|
37
|
+
} else t2 = $[7];
|
|
38
|
+
return t2;
|
|
39
|
+
}
|
|
40
|
+
function EmptyHeader(t0) {
|
|
41
|
+
const $ = c(8);
|
|
42
|
+
let className;
|
|
43
|
+
let props;
|
|
44
|
+
if ($[0] !== t0) {
|
|
45
|
+
({className, ...props} = t0);
|
|
46
|
+
$[0] = t0;
|
|
47
|
+
$[1] = className;
|
|
48
|
+
$[2] = props;
|
|
49
|
+
} else {
|
|
50
|
+
className = $[1];
|
|
51
|
+
props = $[2];
|
|
52
|
+
}
|
|
53
|
+
let t1;
|
|
54
|
+
if ($[3] !== className) {
|
|
55
|
+
t1 = cn("flex max-w-sm flex-col items-center gap-2", className);
|
|
56
|
+
$[3] = className;
|
|
57
|
+
$[4] = t1;
|
|
58
|
+
} else t1 = $[4];
|
|
59
|
+
let t2;
|
|
60
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
61
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
62
|
+
"data-slot": "empty-header",
|
|
63
|
+
className: t1,
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
$[5] = props;
|
|
67
|
+
$[6] = t1;
|
|
68
|
+
$[7] = t2;
|
|
69
|
+
} else t2 = $[7];
|
|
70
|
+
return t2;
|
|
71
|
+
}
|
|
72
|
+
const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
73
|
+
variants: { variant: {
|
|
74
|
+
default: "bg-transparent",
|
|
75
|
+
icon: "size-8 rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
76
|
+
} },
|
|
77
|
+
defaultVariants: { variant: "default" }
|
|
78
|
+
});
|
|
79
|
+
/** An icon, avatar or picture above the title. Decorative unless what's inside has a name. */
|
|
80
|
+
function EmptyMedia(t0) {
|
|
81
|
+
const $ = c(11);
|
|
82
|
+
let className;
|
|
83
|
+
let props;
|
|
84
|
+
let variant;
|
|
85
|
+
if ($[0] !== t0) {
|
|
86
|
+
({className, variant, ...props} = t0);
|
|
87
|
+
$[0] = t0;
|
|
88
|
+
$[1] = className;
|
|
89
|
+
$[2] = props;
|
|
90
|
+
$[3] = variant;
|
|
91
|
+
} else {
|
|
92
|
+
className = $[1];
|
|
93
|
+
props = $[2];
|
|
94
|
+
variant = $[3];
|
|
95
|
+
}
|
|
96
|
+
const t1 = variant ?? "default";
|
|
97
|
+
let t2;
|
|
98
|
+
if ($[4] !== className || $[5] !== variant) {
|
|
99
|
+
t2 = cn(emptyMediaVariants({ variant }), className);
|
|
100
|
+
$[4] = className;
|
|
101
|
+
$[5] = variant;
|
|
102
|
+
$[6] = t2;
|
|
103
|
+
} else t2 = $[6];
|
|
104
|
+
let t3;
|
|
105
|
+
if ($[7] !== props || $[8] !== t1 || $[9] !== t2) {
|
|
106
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
107
|
+
"data-slot": "empty-icon",
|
|
108
|
+
"data-variant": t1,
|
|
109
|
+
className: t2,
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
$[7] = props;
|
|
113
|
+
$[8] = t1;
|
|
114
|
+
$[9] = t2;
|
|
115
|
+
$[10] = t3;
|
|
116
|
+
} else t3 = $[10];
|
|
117
|
+
return t3;
|
|
118
|
+
}
|
|
119
|
+
/** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
|
|
120
|
+
function EmptyTitle({ className, render, ...props }) {
|
|
121
|
+
return (0, core_exports.renderElement)("div", {
|
|
122
|
+
"data-slot": "empty-title",
|
|
123
|
+
...props,
|
|
124
|
+
className: cnState("text-heading-4", className)
|
|
125
|
+
}, render);
|
|
126
|
+
}
|
|
127
|
+
function EmptyDescription(t0) {
|
|
128
|
+
const $ = c(8);
|
|
129
|
+
let className;
|
|
130
|
+
let props;
|
|
131
|
+
if ($[0] !== t0) {
|
|
132
|
+
({className, ...props} = t0);
|
|
133
|
+
$[0] = t0;
|
|
134
|
+
$[1] = className;
|
|
135
|
+
$[2] = props;
|
|
136
|
+
} else {
|
|
137
|
+
className = $[1];
|
|
138
|
+
props = $[2];
|
|
139
|
+
}
|
|
140
|
+
let t1;
|
|
141
|
+
if ($[3] !== className) {
|
|
142
|
+
t1 = cn("text-sm/relaxed text-muted-foreground [&>a]:rounded-sm [&>a]:underline [&>a]:underline-offset-4 [&>a]:focus-ring [&>a:hover]:text-primary", className);
|
|
143
|
+
$[3] = className;
|
|
144
|
+
$[4] = t1;
|
|
145
|
+
} else t1 = $[4];
|
|
146
|
+
let t2;
|
|
147
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
148
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
149
|
+
"data-slot": "empty-description",
|
|
150
|
+
className: t1,
|
|
151
|
+
...props
|
|
152
|
+
});
|
|
153
|
+
$[5] = props;
|
|
154
|
+
$[6] = t1;
|
|
155
|
+
$[7] = t2;
|
|
156
|
+
} else t2 = $[7];
|
|
157
|
+
return t2;
|
|
158
|
+
}
|
|
159
|
+
/** The actions: buttons, a search field, a link to the docs. */
|
|
160
|
+
function EmptyContent(t0) {
|
|
161
|
+
const $ = c(8);
|
|
162
|
+
let className;
|
|
163
|
+
let props;
|
|
164
|
+
if ($[0] !== t0) {
|
|
165
|
+
({className, ...props} = t0);
|
|
166
|
+
$[0] = t0;
|
|
167
|
+
$[1] = className;
|
|
168
|
+
$[2] = props;
|
|
169
|
+
} else {
|
|
170
|
+
className = $[1];
|
|
171
|
+
props = $[2];
|
|
172
|
+
}
|
|
173
|
+
let t1;
|
|
174
|
+
if ($[3] !== className) {
|
|
175
|
+
t1 = cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance", className);
|
|
176
|
+
$[3] = className;
|
|
177
|
+
$[4] = t1;
|
|
178
|
+
} else t1 = $[4];
|
|
179
|
+
let t2;
|
|
180
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
181
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
182
|
+
"data-slot": "empty-content",
|
|
183
|
+
className: t1,
|
|
184
|
+
...props
|
|
185
|
+
});
|
|
186
|
+
$[5] = props;
|
|
187
|
+
$[6] = t1;
|
|
188
|
+
$[7] = t2;
|
|
189
|
+
} else t2 = $[7];
|
|
190
|
+
return t2;
|
|
191
|
+
}
|
|
192
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Field as Field$1, FieldControl as FieldControl$1, FieldDescription as FieldDescription$1, FieldError as FieldError$1, FieldGroup as FieldGroup$1, FieldLabel as FieldLabel$1, FieldLegend as FieldLegend$1, FieldSet as FieldSet$1, useFieldControl } from "@ui-sdk/react/field";
|
|
3
|
+
declare function Field({ className, ...props }: ComponentProps<typeof Field$1>): import("react").JSX.Element;
|
|
4
|
+
declare function FieldLabel({ className, ...props }: ComponentProps<typeof FieldLabel$1>): import("react").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* A control ui-sdk doesn't ship, like a native `<select>`. An agent can't
|
|
7
|
+
* fill it: use `Input` or another of abby's controls where there is one.
|
|
8
|
+
*/
|
|
9
|
+
declare function FieldControl({ className, ...props }: ComponentProps<typeof FieldControl$1>): import("react").JSX.Element;
|
|
10
|
+
declare function FieldDescription({ className, ...props }: ComponentProps<typeof FieldDescription$1>): import("react").JSX.Element;
|
|
11
|
+
declare function FieldError({ className, ...props }: ComponentProps<typeof FieldError$1>): import("react").JSX.Element;
|
|
12
|
+
declare function FieldSet({ className, ...props }: ComponentProps<typeof FieldSet$1>): import("react").JSX.Element;
|
|
13
|
+
declare function FieldLegend({ className, ...props }: ComponentProps<typeof FieldLegend$1>): import("react").JSX.Element;
|
|
14
|
+
declare function FieldGroup({ className, ...props }: ComponentProps<typeof FieldGroup$1>): import("react").JSX.Element;
|
|
15
|
+
export { Field, FieldControl, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSet, useFieldControl };
|