@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,283 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn, cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { Icon } from "../icon/icon.js";
|
|
4
|
+
import { Tree, TreeGroup, TreeItem, TreeItemIndicator, TreeItemLabel, createTreeController, treeFromPaths } from "../tree/tree.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { File01Icon, Folder01Icon, FolderOpenIcon } from "@hugeicons/core-free-icons";
|
|
8
|
+
// src/components/file-tree/file-tree.tsx
|
|
9
|
+
/** The tree's `items` or `paths`, as folders and files. */
|
|
10
|
+
function dataNodes(items) {
|
|
11
|
+
return items.map((item) => item.children ? /* @__PURE__ */ jsx(FileTreeFolder, {
|
|
12
|
+
path: item.value,
|
|
13
|
+
name: item.label,
|
|
14
|
+
disabled: item.disabled,
|
|
15
|
+
children: dataNodes(item.children)
|
|
16
|
+
}, item.value) : /* @__PURE__ */ jsx(FileTreeFile, {
|
|
17
|
+
path: item.value,
|
|
18
|
+
name: item.label,
|
|
19
|
+
disabled: item.disabled
|
|
20
|
+
}, item.value));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* abby's Tree with a file tree's look. Which folders are open and which file is
|
|
24
|
+
* selected go through the tree's own props: `expanded`, `defaultExpanded` and
|
|
25
|
+
* `onExpandedChange`, `value`, `defaultValue` and `onValueChange`. Without
|
|
26
|
+
* children it renders its `items` or `paths` as folders and files.
|
|
27
|
+
*/
|
|
28
|
+
function FileTree(t0) {
|
|
29
|
+
const $ = c(12);
|
|
30
|
+
let T0;
|
|
31
|
+
let t1;
|
|
32
|
+
let t2;
|
|
33
|
+
let t3;
|
|
34
|
+
if ($[0] !== t0) {
|
|
35
|
+
const { className, children, ...props } = t0;
|
|
36
|
+
const data = props.items ?? (props.paths ? treeFromPaths(props.paths) : void 0);
|
|
37
|
+
T0 = Tree;
|
|
38
|
+
if ($[5] !== className) {
|
|
39
|
+
t1 = cnState("rounded-xl border bg-background p-2 font-mono", className);
|
|
40
|
+
$[5] = className;
|
|
41
|
+
$[6] = t1;
|
|
42
|
+
} else t1 = $[6];
|
|
43
|
+
t2 = props;
|
|
44
|
+
t3 = children ?? (data ? dataNodes(data) : null);
|
|
45
|
+
$[0] = t0;
|
|
46
|
+
$[1] = T0;
|
|
47
|
+
$[2] = t1;
|
|
48
|
+
$[3] = t2;
|
|
49
|
+
$[4] = t3;
|
|
50
|
+
} else {
|
|
51
|
+
T0 = $[1];
|
|
52
|
+
t1 = $[2];
|
|
53
|
+
t2 = $[3];
|
|
54
|
+
t3 = $[4];
|
|
55
|
+
}
|
|
56
|
+
let t4;
|
|
57
|
+
if ($[7] !== T0 || $[8] !== t1 || $[9] !== t2 || $[10] !== t3) {
|
|
58
|
+
t4 = /* @__PURE__ */ jsx(T0, {
|
|
59
|
+
className: t1,
|
|
60
|
+
...t2,
|
|
61
|
+
children: t3
|
|
62
|
+
});
|
|
63
|
+
$[7] = T0;
|
|
64
|
+
$[8] = t1;
|
|
65
|
+
$[9] = t2;
|
|
66
|
+
$[10] = t3;
|
|
67
|
+
$[11] = t4;
|
|
68
|
+
} else t4 = $[11];
|
|
69
|
+
return t4;
|
|
70
|
+
}
|
|
71
|
+
/** The icon of a row. It is decorative: the name says what the row is. */
|
|
72
|
+
function FileTreeIcon(t0) {
|
|
73
|
+
const $ = c(8);
|
|
74
|
+
let className;
|
|
75
|
+
let props;
|
|
76
|
+
if ($[0] !== t0) {
|
|
77
|
+
({className, ...props} = t0);
|
|
78
|
+
$[0] = t0;
|
|
79
|
+
$[1] = className;
|
|
80
|
+
$[2] = props;
|
|
81
|
+
} else {
|
|
82
|
+
className = $[1];
|
|
83
|
+
props = $[2];
|
|
84
|
+
}
|
|
85
|
+
let t1;
|
|
86
|
+
if ($[3] !== className) {
|
|
87
|
+
t1 = cn("flex shrink-0 items-center text-muted-foreground", className);
|
|
88
|
+
$[3] = className;
|
|
89
|
+
$[4] = t1;
|
|
90
|
+
} else t1 = $[4];
|
|
91
|
+
let t2;
|
|
92
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
93
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
94
|
+
"data-slot": "file-tree-icon",
|
|
95
|
+
"aria-hidden": "true",
|
|
96
|
+
className: t1,
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
$[5] = props;
|
|
100
|
+
$[6] = t1;
|
|
101
|
+
$[7] = t2;
|
|
102
|
+
} else t2 = $[7];
|
|
103
|
+
return t2;
|
|
104
|
+
}
|
|
105
|
+
/** The name of a file or a folder, cut short when the row is narrow. */
|
|
106
|
+
function FileTreeName(t0) {
|
|
107
|
+
const $ = c(8);
|
|
108
|
+
let className;
|
|
109
|
+
let props;
|
|
110
|
+
if ($[0] !== t0) {
|
|
111
|
+
({className, ...props} = t0);
|
|
112
|
+
$[0] = t0;
|
|
113
|
+
$[1] = className;
|
|
114
|
+
$[2] = props;
|
|
115
|
+
} else {
|
|
116
|
+
className = $[1];
|
|
117
|
+
props = $[2];
|
|
118
|
+
}
|
|
119
|
+
let t1;
|
|
120
|
+
if ($[3] !== className) {
|
|
121
|
+
t1 = cn("min-w-0 truncate", className);
|
|
122
|
+
$[3] = className;
|
|
123
|
+
$[4] = t1;
|
|
124
|
+
} else t1 = $[4];
|
|
125
|
+
let t2;
|
|
126
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
127
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
128
|
+
"data-slot": "file-tree-name",
|
|
129
|
+
className: t1,
|
|
130
|
+
...props
|
|
131
|
+
});
|
|
132
|
+
$[5] = props;
|
|
133
|
+
$[6] = t1;
|
|
134
|
+
$[7] = t2;
|
|
135
|
+
} else t2 = $[7];
|
|
136
|
+
return t2;
|
|
137
|
+
}
|
|
138
|
+
/** A branch: an arrow, a folder icon and its name, over the entries inside it. */
|
|
139
|
+
function FileTreeFolder(t0) {
|
|
140
|
+
const $ = c(16);
|
|
141
|
+
let children;
|
|
142
|
+
let icon;
|
|
143
|
+
let name;
|
|
144
|
+
let path;
|
|
145
|
+
let props;
|
|
146
|
+
if ($[0] !== t0) {
|
|
147
|
+
({path, name, icon, children, ...props} = t0);
|
|
148
|
+
$[0] = t0;
|
|
149
|
+
$[1] = children;
|
|
150
|
+
$[2] = icon;
|
|
151
|
+
$[3] = name;
|
|
152
|
+
$[4] = path;
|
|
153
|
+
$[5] = props;
|
|
154
|
+
} else {
|
|
155
|
+
children = $[1];
|
|
156
|
+
icon = $[2];
|
|
157
|
+
name = $[3];
|
|
158
|
+
path = $[4];
|
|
159
|
+
props = $[5];
|
|
160
|
+
}
|
|
161
|
+
let t1;
|
|
162
|
+
if ($[6] !== icon || $[7] !== name) {
|
|
163
|
+
t1 = /* @__PURE__ */ jsx(TreeItemLabel, { children: (state) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
164
|
+
/* @__PURE__ */ jsx(TreeItemIndicator, {}),
|
|
165
|
+
/* @__PURE__ */ jsx(FileTreeIcon, { children: icon ?? /* @__PURE__ */ jsx(Icon, { icon: state.expanded ? FolderOpenIcon : Folder01Icon }) }),
|
|
166
|
+
/* @__PURE__ */ jsx(FileTreeName, { children: name })
|
|
167
|
+
] }) });
|
|
168
|
+
$[6] = icon;
|
|
169
|
+
$[7] = name;
|
|
170
|
+
$[8] = t1;
|
|
171
|
+
} else t1 = $[8];
|
|
172
|
+
let t2;
|
|
173
|
+
if ($[9] !== children) {
|
|
174
|
+
t2 = /* @__PURE__ */ jsx(TreeGroup, { children });
|
|
175
|
+
$[9] = children;
|
|
176
|
+
$[10] = t2;
|
|
177
|
+
} else t2 = $[10];
|
|
178
|
+
let t3;
|
|
179
|
+
if ($[11] !== path || $[12] !== props || $[13] !== t1 || $[14] !== t2) {
|
|
180
|
+
t3 = /* @__PURE__ */ jsxs(TreeItem, {
|
|
181
|
+
value: path,
|
|
182
|
+
...props,
|
|
183
|
+
children: [t1, t2]
|
|
184
|
+
});
|
|
185
|
+
$[11] = path;
|
|
186
|
+
$[12] = props;
|
|
187
|
+
$[13] = t1;
|
|
188
|
+
$[14] = t2;
|
|
189
|
+
$[15] = t3;
|
|
190
|
+
} else t3 = $[15];
|
|
191
|
+
return t3;
|
|
192
|
+
}
|
|
193
|
+
/** A leaf: a file icon and its name. */
|
|
194
|
+
function FileTreeFile(t0) {
|
|
195
|
+
const $ = c(16);
|
|
196
|
+
let children;
|
|
197
|
+
let icon;
|
|
198
|
+
let name;
|
|
199
|
+
let path;
|
|
200
|
+
let props;
|
|
201
|
+
if ($[0] !== t0) {
|
|
202
|
+
({path, name, icon, children, ...props} = t0);
|
|
203
|
+
$[0] = t0;
|
|
204
|
+
$[1] = children;
|
|
205
|
+
$[2] = icon;
|
|
206
|
+
$[3] = name;
|
|
207
|
+
$[4] = path;
|
|
208
|
+
$[5] = props;
|
|
209
|
+
} else {
|
|
210
|
+
children = $[1];
|
|
211
|
+
icon = $[2];
|
|
212
|
+
name = $[3];
|
|
213
|
+
path = $[4];
|
|
214
|
+
props = $[5];
|
|
215
|
+
}
|
|
216
|
+
let t1;
|
|
217
|
+
if ($[6] !== children || $[7] !== icon || $[8] !== name) {
|
|
218
|
+
t1 = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FileTreeIcon, { children: icon ?? /* @__PURE__ */ jsx(Icon, { icon: File01Icon }) }), /* @__PURE__ */ jsx(FileTreeName, { children: name })] });
|
|
219
|
+
$[6] = children;
|
|
220
|
+
$[7] = icon;
|
|
221
|
+
$[8] = name;
|
|
222
|
+
$[9] = t1;
|
|
223
|
+
} else t1 = $[9];
|
|
224
|
+
let t2;
|
|
225
|
+
if ($[10] !== t1) {
|
|
226
|
+
t2 = /* @__PURE__ */ jsx(TreeItemLabel, { children: t1 });
|
|
227
|
+
$[10] = t1;
|
|
228
|
+
$[11] = t2;
|
|
229
|
+
} else t2 = $[11];
|
|
230
|
+
let t3;
|
|
231
|
+
if ($[12] !== path || $[13] !== props || $[14] !== t2) {
|
|
232
|
+
t3 = /* @__PURE__ */ jsx(TreeItem, {
|
|
233
|
+
value: path,
|
|
234
|
+
...props,
|
|
235
|
+
children: t2
|
|
236
|
+
});
|
|
237
|
+
$[12] = path;
|
|
238
|
+
$[13] = props;
|
|
239
|
+
$[14] = t2;
|
|
240
|
+
$[15] = t3;
|
|
241
|
+
} else t3 = $[15];
|
|
242
|
+
return t3;
|
|
243
|
+
}
|
|
244
|
+
const stop = (event) => event.stopPropagation();
|
|
245
|
+
/**
|
|
246
|
+
* Buttons at the end of a file's row. Pressing one doesn't select the row.
|
|
247
|
+
* Give each an `aria-label` that names its file.
|
|
248
|
+
*/
|
|
249
|
+
function FileTreeActions(t0) {
|
|
250
|
+
const $ = c(8);
|
|
251
|
+
let className;
|
|
252
|
+
let props;
|
|
253
|
+
if ($[0] !== t0) {
|
|
254
|
+
({className, ...props} = t0);
|
|
255
|
+
$[0] = t0;
|
|
256
|
+
$[1] = className;
|
|
257
|
+
$[2] = props;
|
|
258
|
+
} else {
|
|
259
|
+
className = $[1];
|
|
260
|
+
props = $[2];
|
|
261
|
+
}
|
|
262
|
+
let t1;
|
|
263
|
+
if ($[3] !== className) {
|
|
264
|
+
t1 = cn("ms-auto flex shrink-0 items-center gap-1", className);
|
|
265
|
+
$[3] = className;
|
|
266
|
+
$[4] = t1;
|
|
267
|
+
} else t1 = $[4];
|
|
268
|
+
let t2;
|
|
269
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
270
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
271
|
+
"data-slot": "file-tree-actions",
|
|
272
|
+
className: t1,
|
|
273
|
+
onClick: stop,
|
|
274
|
+
onKeyDown: stop,
|
|
275
|
+
...props
|
|
276
|
+
});
|
|
277
|
+
$[5] = props;
|
|
278
|
+
$[6] = t1;
|
|
279
|
+
$[7] = t2;
|
|
280
|
+
} else t2 = $[7];
|
|
281
|
+
return t2;
|
|
282
|
+
}
|
|
283
|
+
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName, createTreeController, treeFromPaths };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { HoverCardArrow as HoverCardArrow$1, HoverCardArrowState, HoverCardContent as HoverCardContent$1, HoverCardContentState, HoverCardController, HoverCardOpenChangeReason, HoverCardPayloadChangeReason, HoverCardProps, HoverCardTrigger as HoverCardTrigger$1, HoverCardTriggerState, createHoverCardController } from "@ui-sdk/react/hover-card";
|
|
3
|
+
declare function HoverCard(props: HoverCardProps): import("react").JSX.Element;
|
|
4
|
+
/** A link: give it an `href`. Underlined, so it reads as one inside a line of text. */
|
|
5
|
+
declare function HoverCardTrigger({ className, ...props }: ComponentProps<typeof HoverCardTrigger$1>): import("react").JSX.Element;
|
|
6
|
+
type HoverCardContentProps<Payload = unknown> = ComponentProps<typeof HoverCardContent$1<Payload>>;
|
|
7
|
+
declare function HoverCardContent<Payload = unknown>({ className, sideOffset, ...props }: HoverCardContentProps<Payload>): import("react").JSX.Element;
|
|
8
|
+
/** Give the content a `sideOffset` that leaves room for it. */
|
|
9
|
+
declare function HoverCardArrow({ className, ...props }: ComponentProps<typeof HoverCardArrow$1>): import("react").JSX.Element;
|
|
10
|
+
export { HoverCard, HoverCardArrow, type HoverCardArrowState, HoverCardContent, type HoverCardContentProps, type HoverCardContentState, type HoverCardController, type HoverCardOpenChangeReason, type HoverCardPayloadChangeReason, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerState, createHoverCardController };
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { HoverCard as HoverCard$1, HoverCardArrow as HoverCardArrow$1, HoverCardContent as HoverCardContent$1, HoverCardTrigger as HoverCardTrigger$1, createHoverCardController } from "@ui-sdk/react/hover-card";
|
|
6
|
+
// src/components/hover-card/hover-card.tsx
|
|
7
|
+
function HoverCard(props) {
|
|
8
|
+
const $ = c(2);
|
|
9
|
+
let t0;
|
|
10
|
+
if ($[0] !== props) {
|
|
11
|
+
t0 = /* @__PURE__ */ jsx(HoverCard$1, { ...props });
|
|
12
|
+
$[0] = props;
|
|
13
|
+
$[1] = t0;
|
|
14
|
+
} else t0 = $[1];
|
|
15
|
+
return t0;
|
|
16
|
+
}
|
|
17
|
+
/** A link: give it an `href`. Underlined, so it reads as one inside a line of text. */
|
|
18
|
+
function HoverCardTrigger(t0) {
|
|
19
|
+
const $ = c(8);
|
|
20
|
+
let className;
|
|
21
|
+
let props;
|
|
22
|
+
if ($[0] !== t0) {
|
|
23
|
+
({className, ...props} = t0);
|
|
24
|
+
$[0] = t0;
|
|
25
|
+
$[1] = className;
|
|
26
|
+
$[2] = props;
|
|
27
|
+
} else {
|
|
28
|
+
className = $[1];
|
|
29
|
+
props = $[2];
|
|
30
|
+
}
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[3] !== className) {
|
|
33
|
+
t1 = cnState("rounded-sm font-medium underline underline-offset-4 focus-ring", className);
|
|
34
|
+
$[3] = className;
|
|
35
|
+
$[4] = t1;
|
|
36
|
+
} else t1 = $[4];
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
39
|
+
t2 = /* @__PURE__ */ jsx(HoverCardTrigger$1, {
|
|
40
|
+
className: t1,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
$[5] = props;
|
|
44
|
+
$[6] = t1;
|
|
45
|
+
$[7] = t2;
|
|
46
|
+
} else t2 = $[7];
|
|
47
|
+
return t2;
|
|
48
|
+
}
|
|
49
|
+
function HoverCardContent(t0) {
|
|
50
|
+
const $ = c(10);
|
|
51
|
+
let className;
|
|
52
|
+
let props;
|
|
53
|
+
let t1;
|
|
54
|
+
if ($[0] !== t0) {
|
|
55
|
+
({className, sideOffset: t1, ...props} = t0);
|
|
56
|
+
$[0] = t0;
|
|
57
|
+
$[1] = className;
|
|
58
|
+
$[2] = props;
|
|
59
|
+
$[3] = t1;
|
|
60
|
+
} else {
|
|
61
|
+
className = $[1];
|
|
62
|
+
props = $[2];
|
|
63
|
+
t1 = $[3];
|
|
64
|
+
}
|
|
65
|
+
const sideOffset = t1 === void 0 ? 4 : t1;
|
|
66
|
+
let t2;
|
|
67
|
+
if ($[4] !== className) {
|
|
68
|
+
t2 = cnState("w-64 max-w-(--available-width) origin-(--transform-origin) rounded-xl popup-surface p-2.5 text-sm popup-motion data-starting-style:scale-95 data-closed:scale-95", className);
|
|
69
|
+
$[4] = className;
|
|
70
|
+
$[5] = t2;
|
|
71
|
+
} else t2 = $[5];
|
|
72
|
+
let t3;
|
|
73
|
+
if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
|
|
74
|
+
t3 = /* @__PURE__ */ jsx(HoverCardContent$1, {
|
|
75
|
+
sideOffset,
|
|
76
|
+
className: t2,
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
$[6] = props;
|
|
80
|
+
$[7] = sideOffset;
|
|
81
|
+
$[8] = t2;
|
|
82
|
+
$[9] = t3;
|
|
83
|
+
} else t3 = $[9];
|
|
84
|
+
return t3;
|
|
85
|
+
}
|
|
86
|
+
/** Give the content a `sideOffset` that leaves room for it. */
|
|
87
|
+
function HoverCardArrow(t0) {
|
|
88
|
+
const $ = c(8);
|
|
89
|
+
let className;
|
|
90
|
+
let props;
|
|
91
|
+
if ($[0] !== t0) {
|
|
92
|
+
({className, ...props} = t0);
|
|
93
|
+
$[0] = t0;
|
|
94
|
+
$[1] = className;
|
|
95
|
+
$[2] = props;
|
|
96
|
+
} else {
|
|
97
|
+
className = $[1];
|
|
98
|
+
props = $[2];
|
|
99
|
+
}
|
|
100
|
+
let t1;
|
|
101
|
+
if ($[3] !== className) {
|
|
102
|
+
t1 = cnState("popup-arrow", className);
|
|
103
|
+
$[3] = className;
|
|
104
|
+
$[4] = t1;
|
|
105
|
+
} else t1 = $[4];
|
|
106
|
+
let t2;
|
|
107
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
108
|
+
t2 = /* @__PURE__ */ jsx(HoverCardArrow$1, {
|
|
109
|
+
className: t1,
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
$[5] = props;
|
|
113
|
+
$[6] = t1;
|
|
114
|
+
$[7] = t2;
|
|
115
|
+
} else t2 = $[7];
|
|
116
|
+
return t2;
|
|
117
|
+
}
|
|
118
|
+
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, createHoverCardController };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HugeiconsIconProps, IconSvgElement } from "@hugeicons/react";
|
|
2
|
+
type IconProps = HugeiconsIconProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Names the icon for screen readers, when it stands alone and says something
|
|
5
|
+
* the text around it doesn't. Without it the icon is decorative and hidden.
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* An icon from Hugeicons, at abby's size and stroke:
|
|
11
|
+
* `<Icon icon={Cancel01Icon} />`, with the icon from `@hugeicons/core-free-icons`.
|
|
12
|
+
*/
|
|
13
|
+
declare function Icon({ strokeWidth, label, className, ...props }: IconProps): import("react").JSX.Element;
|
|
14
|
+
export { Icon, type IconProps, type IconSvgElement };
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
6
|
+
// src/components/icon/icon.tsx
|
|
7
|
+
/**
|
|
8
|
+
* An icon from Hugeicons, at abby's size and stroke:
|
|
9
|
+
* `<Icon icon={Cancel01Icon} />`, with the icon from `@hugeicons/core-free-icons`.
|
|
10
|
+
*/
|
|
11
|
+
function Icon(t0) {
|
|
12
|
+
const $ = c(14);
|
|
13
|
+
let className;
|
|
14
|
+
let label;
|
|
15
|
+
let props;
|
|
16
|
+
let t1;
|
|
17
|
+
if ($[0] !== t0) {
|
|
18
|
+
({strokeWidth: t1, label, className, ...props} = t0);
|
|
19
|
+
$[0] = t0;
|
|
20
|
+
$[1] = className;
|
|
21
|
+
$[2] = label;
|
|
22
|
+
$[3] = props;
|
|
23
|
+
$[4] = t1;
|
|
24
|
+
} else {
|
|
25
|
+
className = $[1];
|
|
26
|
+
label = $[2];
|
|
27
|
+
props = $[3];
|
|
28
|
+
t1 = $[4];
|
|
29
|
+
}
|
|
30
|
+
const strokeWidth = t1 === void 0 ? 1.5 : t1;
|
|
31
|
+
const t2 = label ? "img" : void 0;
|
|
32
|
+
const t3 = label ? void 0 : true;
|
|
33
|
+
let t4;
|
|
34
|
+
if ($[5] !== className) {
|
|
35
|
+
t4 = cn("size-4 shrink-0", className);
|
|
36
|
+
$[5] = className;
|
|
37
|
+
$[6] = t4;
|
|
38
|
+
} else t4 = $[6];
|
|
39
|
+
let t5;
|
|
40
|
+
if ($[7] !== label || $[8] !== props || $[9] !== strokeWidth || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
|
|
41
|
+
t5 = /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
42
|
+
"data-slot": "icon",
|
|
43
|
+
strokeWidth,
|
|
44
|
+
role: t2,
|
|
45
|
+
"aria-label": label,
|
|
46
|
+
"aria-hidden": t3,
|
|
47
|
+
className: t4,
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
$[7] = label;
|
|
51
|
+
$[8] = props;
|
|
52
|
+
$[9] = strokeWidth;
|
|
53
|
+
$[10] = t2;
|
|
54
|
+
$[11] = t3;
|
|
55
|
+
$[12] = t4;
|
|
56
|
+
$[13] = t5;
|
|
57
|
+
} else t5 = $[13];
|
|
58
|
+
return t5;
|
|
59
|
+
}
|
|
60
|
+
export { Icon };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ImageCrop, ImageCropper as ImageCropper$1, ImageCropperChangeOptions, ImageCropperController, ImageCropperCropChangeDetails, ImageCropperCropChangeReason, ImageCropperCropCommitDetails, ImageCropperFlip as ImageCropperFlip$1, ImageCropperFlipDirection, ImageCropperGrid as ImageCropperGrid$1, ImageCropperHandle as ImageCropperHandle$1, ImageCropperHandlePosition, ImageCropperHandleProps, ImageCropperHandleState, ImageCropperImage as ImageCropperImage$1, ImageCropperMode, ImageCropperOptions, ImageCropperRotate as ImageCropperRotate$1, ImageCropperSelection as ImageCropperSelection$1, ImageCropperShape, ImageCropperState, ImageCropperViewport as ImageCropperViewport$1, ImageCropperZoom as ImageCropperZoom$1, ImageRotation, createImageCropperController } from "@ui-sdk/react/image-cropper";
|
|
4
|
+
declare function ImageCropper({ className, ...props }: ComponentProps<typeof ImageCropper$1>): import("react").JSX.Element;
|
|
5
|
+
declare function ImageCropperViewport({ className, ...props }: ComponentProps<typeof ImageCropperViewport$1>): import("react").JSX.Element;
|
|
6
|
+
declare function ImageCropperImage({ className, ...props }: ComponentProps<typeof ImageCropperImage$1>): import("react").JSX.Element;
|
|
7
|
+
declare function ImageCropperSelection({ className, ...props }: ComponentProps<typeof ImageCropperSelection$1>): import("react").JSX.Element;
|
|
8
|
+
declare function ImageCropperGrid({ className, ...props }: ComponentProps<typeof ImageCropperGrid$1>): import("react").JSX.Element;
|
|
9
|
+
declare function ImageCropperHandle({ className, ...props }: ComponentProps<typeof ImageCropperHandle$1>): import("react").JSX.Element;
|
|
10
|
+
declare function ImageCropperZoom({ className, ...props }: ComponentProps<typeof ImageCropperZoom$1>): import("react").JSX.Element;
|
|
11
|
+
type ImageCropperRotateProps = ComponentProps<typeof ImageCropperRotate$1> & ButtonLook;
|
|
12
|
+
declare function ImageCropperRotate({ variant, size, className, children, ...props }: ImageCropperRotateProps): import("react").JSX.Element;
|
|
13
|
+
type ImageCropperFlipProps = ComponentProps<typeof ImageCropperFlip$1> & ButtonLook;
|
|
14
|
+
declare function ImageCropperFlip({ variant, size, className, children, ...props }: ImageCropperFlipProps): import("react").JSX.Element;
|
|
15
|
+
export { type ImageCrop, ImageCropper, type ImageCropperChangeOptions, type ImageCropperController, type ImageCropperCropChangeDetails, type ImageCropperCropChangeReason, type ImageCropperCropCommitDetails, ImageCropperFlip, type ImageCropperFlipDirection, type ImageCropperFlipProps, ImageCropperGrid, ImageCropperHandle, type ImageCropperHandlePosition, type ImageCropperHandleProps, type ImageCropperHandleState, ImageCropperImage, type ImageCropperMode, type ImageCropperOptions, ImageCropperRotate, type ImageCropperRotateProps, ImageCropperSelection, type ImageCropperShape, type ImageCropperState, ImageCropperViewport, ImageCropperZoom, type ImageRotation, createImageCropperController };
|