@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,330 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn, cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { Icon } from "../icon/icon.js";
|
|
4
|
+
import { buttonLook } from "../button/button.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Cancel01Icon } from "@hugeicons/core-free-icons";
|
|
8
|
+
import { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogTitle, DialogTrigger, createDialogController } from "@ui-sdk/react/dialog";
|
|
9
|
+
// src/components/sheet/sheet.tsx
|
|
10
|
+
function Sheet(props) {
|
|
11
|
+
const $ = c(2);
|
|
12
|
+
let t0;
|
|
13
|
+
if ($[0] !== props) {
|
|
14
|
+
t0 = /* @__PURE__ */ jsx(Dialog, { ...props });
|
|
15
|
+
$[0] = props;
|
|
16
|
+
$[1] = t0;
|
|
17
|
+
} else t0 = $[1];
|
|
18
|
+
return t0;
|
|
19
|
+
}
|
|
20
|
+
function SheetTrigger(t0) {
|
|
21
|
+
const $ = c(12);
|
|
22
|
+
let className;
|
|
23
|
+
let props;
|
|
24
|
+
let size;
|
|
25
|
+
let variant;
|
|
26
|
+
if ($[0] !== t0) {
|
|
27
|
+
({variant, size, className, ...props} = t0);
|
|
28
|
+
$[0] = t0;
|
|
29
|
+
$[1] = className;
|
|
30
|
+
$[2] = props;
|
|
31
|
+
$[3] = size;
|
|
32
|
+
$[4] = variant;
|
|
33
|
+
} else {
|
|
34
|
+
className = $[1];
|
|
35
|
+
props = $[2];
|
|
36
|
+
size = $[3];
|
|
37
|
+
variant = $[4];
|
|
38
|
+
}
|
|
39
|
+
let t1;
|
|
40
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
41
|
+
t1 = cnState(buttonLook({
|
|
42
|
+
variant,
|
|
43
|
+
size
|
|
44
|
+
}), className);
|
|
45
|
+
$[5] = className;
|
|
46
|
+
$[6] = size;
|
|
47
|
+
$[7] = variant;
|
|
48
|
+
$[8] = t1;
|
|
49
|
+
} else t1 = $[8];
|
|
50
|
+
let t2;
|
|
51
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
52
|
+
t2 = /* @__PURE__ */ jsx(DialogTrigger, {
|
|
53
|
+
className: t1,
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
$[9] = props;
|
|
57
|
+
$[10] = t1;
|
|
58
|
+
$[11] = t2;
|
|
59
|
+
} else t2 = $[11];
|
|
60
|
+
return t2;
|
|
61
|
+
}
|
|
62
|
+
function SheetClose(t0) {
|
|
63
|
+
const $ = c(12);
|
|
64
|
+
let className;
|
|
65
|
+
let props;
|
|
66
|
+
let size;
|
|
67
|
+
let variant;
|
|
68
|
+
if ($[0] !== t0) {
|
|
69
|
+
({variant, size, className, ...props} = t0);
|
|
70
|
+
$[0] = t0;
|
|
71
|
+
$[1] = className;
|
|
72
|
+
$[2] = props;
|
|
73
|
+
$[3] = size;
|
|
74
|
+
$[4] = variant;
|
|
75
|
+
} else {
|
|
76
|
+
className = $[1];
|
|
77
|
+
props = $[2];
|
|
78
|
+
size = $[3];
|
|
79
|
+
variant = $[4];
|
|
80
|
+
}
|
|
81
|
+
let t1;
|
|
82
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
83
|
+
t1 = cnState(buttonLook({
|
|
84
|
+
variant,
|
|
85
|
+
size
|
|
86
|
+
}), className);
|
|
87
|
+
$[5] = className;
|
|
88
|
+
$[6] = size;
|
|
89
|
+
$[7] = variant;
|
|
90
|
+
$[8] = t1;
|
|
91
|
+
} else t1 = $[8];
|
|
92
|
+
let t2;
|
|
93
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
94
|
+
t2 = /* @__PURE__ */ jsx(DialogClose, {
|
|
95
|
+
className: t1,
|
|
96
|
+
...props
|
|
97
|
+
});
|
|
98
|
+
$[9] = props;
|
|
99
|
+
$[10] = t1;
|
|
100
|
+
$[11] = t2;
|
|
101
|
+
} else t2 = $[11];
|
|
102
|
+
return t2;
|
|
103
|
+
}
|
|
104
|
+
function SheetOverlay(t0) {
|
|
105
|
+
const $ = c(8);
|
|
106
|
+
let className;
|
|
107
|
+
let props;
|
|
108
|
+
if ($[0] !== t0) {
|
|
109
|
+
({className, ...props} = t0);
|
|
110
|
+
$[0] = t0;
|
|
111
|
+
$[1] = className;
|
|
112
|
+
$[2] = props;
|
|
113
|
+
} else {
|
|
114
|
+
className = $[1];
|
|
115
|
+
props = $[2];
|
|
116
|
+
}
|
|
117
|
+
let t1;
|
|
118
|
+
if ($[3] !== className) {
|
|
119
|
+
t1 = cnState("popup-overlay", className);
|
|
120
|
+
$[3] = className;
|
|
121
|
+
$[4] = t1;
|
|
122
|
+
} else t1 = $[4];
|
|
123
|
+
let t2;
|
|
124
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
125
|
+
t2 = /* @__PURE__ */ jsx(DialogBackdrop, {
|
|
126
|
+
className: t1,
|
|
127
|
+
...props
|
|
128
|
+
});
|
|
129
|
+
$[5] = props;
|
|
130
|
+
$[6] = t1;
|
|
131
|
+
$[7] = t2;
|
|
132
|
+
} else t2 = $[7];
|
|
133
|
+
return t2;
|
|
134
|
+
}
|
|
135
|
+
function SheetContent(t0) {
|
|
136
|
+
const $ = c(19);
|
|
137
|
+
let children;
|
|
138
|
+
let className;
|
|
139
|
+
let props;
|
|
140
|
+
let t1;
|
|
141
|
+
let t2;
|
|
142
|
+
let t3;
|
|
143
|
+
if ($[0] !== t0) {
|
|
144
|
+
({className, children, side: t1, showCloseButton: t2, closeLabel: t3, ...props} = t0);
|
|
145
|
+
$[0] = t0;
|
|
146
|
+
$[1] = children;
|
|
147
|
+
$[2] = className;
|
|
148
|
+
$[3] = props;
|
|
149
|
+
$[4] = t1;
|
|
150
|
+
$[5] = t2;
|
|
151
|
+
$[6] = t3;
|
|
152
|
+
} else {
|
|
153
|
+
children = $[1];
|
|
154
|
+
className = $[2];
|
|
155
|
+
props = $[3];
|
|
156
|
+
t1 = $[4];
|
|
157
|
+
t2 = $[5];
|
|
158
|
+
t3 = $[6];
|
|
159
|
+
}
|
|
160
|
+
const side = t1 === void 0 ? "right" : t1;
|
|
161
|
+
const showCloseButton = t2 === void 0 ? true : t2;
|
|
162
|
+
const closeLabel = t3 === void 0 ? "Close" : t3;
|
|
163
|
+
let t4;
|
|
164
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
165
|
+
t4 = /* @__PURE__ */ jsx(SheetOverlay, {});
|
|
166
|
+
$[7] = t4;
|
|
167
|
+
} else t4 = $[7];
|
|
168
|
+
let t5;
|
|
169
|
+
if ($[8] !== className) {
|
|
170
|
+
t5 = cnState(cn("sheet-motion fixed m-0 flex max-h-none max-w-none flex-col gap-4 bg-popover bg-clip-padding p-0 text-sm text-popover-foreground shadow-lg outline-none", "data-[side=left]:inset-y-0 data-[side=left]:right-auto data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:sm:max-w-sm data-[side=left]:data-starting-style:-translate-x-full data-[side=left]:data-closed:-translate-x-full", "data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:left-auto data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:sm:max-w-sm data-[side=right]:data-starting-style:translate-x-full data-[side=right]:data-closed:translate-x-full", "data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:bottom-auto data-[side=top]:h-auto data-[side=top]:w-full data-[side=top]:border-b data-[side=top]:data-starting-style:-translate-y-full data-[side=top]:data-closed:-translate-y-full", "data-[side=bottom]:inset-x-0 data-[side=bottom]:top-auto data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:w-full data-[side=bottom]:border-t data-[side=bottom]:data-starting-style:translate-y-full data-[side=bottom]:data-closed:translate-y-full"), className);
|
|
171
|
+
$[8] = className;
|
|
172
|
+
$[9] = t5;
|
|
173
|
+
} else t5 = $[9];
|
|
174
|
+
let t6;
|
|
175
|
+
if ($[10] !== children || $[11] !== closeLabel || $[12] !== showCloseButton) {
|
|
176
|
+
t6 = (state) => /* @__PURE__ */ jsxs(Fragment, { children: [typeof children === "function" ? children(state) : children, showCloseButton && /* @__PURE__ */ jsx(SheetClose, {
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
size: "icon-sm",
|
|
179
|
+
"aria-label": closeLabel,
|
|
180
|
+
className: "absolute end-3 top-3",
|
|
181
|
+
children: /* @__PURE__ */ jsx(Icon, { icon: Cancel01Icon })
|
|
182
|
+
})] });
|
|
183
|
+
$[10] = children;
|
|
184
|
+
$[11] = closeLabel;
|
|
185
|
+
$[12] = showCloseButton;
|
|
186
|
+
$[13] = t6;
|
|
187
|
+
} else t6 = $[13];
|
|
188
|
+
let t7;
|
|
189
|
+
if ($[14] !== props || $[15] !== side || $[16] !== t5 || $[17] !== t6) {
|
|
190
|
+
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t4, /* @__PURE__ */ jsx(DialogContent, {
|
|
191
|
+
"data-side": side,
|
|
192
|
+
className: t5,
|
|
193
|
+
...props,
|
|
194
|
+
children: t6
|
|
195
|
+
})] });
|
|
196
|
+
$[14] = props;
|
|
197
|
+
$[15] = side;
|
|
198
|
+
$[16] = t5;
|
|
199
|
+
$[17] = t6;
|
|
200
|
+
$[18] = t7;
|
|
201
|
+
} else t7 = $[18];
|
|
202
|
+
return t7;
|
|
203
|
+
}
|
|
204
|
+
function SheetHeader(t0) {
|
|
205
|
+
const $ = c(8);
|
|
206
|
+
let className;
|
|
207
|
+
let props;
|
|
208
|
+
if ($[0] !== t0) {
|
|
209
|
+
({className, ...props} = t0);
|
|
210
|
+
$[0] = t0;
|
|
211
|
+
$[1] = className;
|
|
212
|
+
$[2] = props;
|
|
213
|
+
} else {
|
|
214
|
+
className = $[1];
|
|
215
|
+
props = $[2];
|
|
216
|
+
}
|
|
217
|
+
let t1;
|
|
218
|
+
if ($[3] !== className) {
|
|
219
|
+
t1 = cn("flex flex-col gap-0.5 p-4", className);
|
|
220
|
+
$[3] = className;
|
|
221
|
+
$[4] = t1;
|
|
222
|
+
} else t1 = $[4];
|
|
223
|
+
let t2;
|
|
224
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
225
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
226
|
+
"data-slot": "sheet-header",
|
|
227
|
+
className: t1,
|
|
228
|
+
...props
|
|
229
|
+
});
|
|
230
|
+
$[5] = props;
|
|
231
|
+
$[6] = t1;
|
|
232
|
+
$[7] = t2;
|
|
233
|
+
} else t2 = $[7];
|
|
234
|
+
return t2;
|
|
235
|
+
}
|
|
236
|
+
function SheetFooter(t0) {
|
|
237
|
+
const $ = c(8);
|
|
238
|
+
let className;
|
|
239
|
+
let props;
|
|
240
|
+
if ($[0] !== t0) {
|
|
241
|
+
({className, ...props} = t0);
|
|
242
|
+
$[0] = t0;
|
|
243
|
+
$[1] = className;
|
|
244
|
+
$[2] = props;
|
|
245
|
+
} else {
|
|
246
|
+
className = $[1];
|
|
247
|
+
props = $[2];
|
|
248
|
+
}
|
|
249
|
+
let t1;
|
|
250
|
+
if ($[3] !== className) {
|
|
251
|
+
t1 = cn("mt-auto flex flex-col gap-2 p-4", className);
|
|
252
|
+
$[3] = className;
|
|
253
|
+
$[4] = t1;
|
|
254
|
+
} else t1 = $[4];
|
|
255
|
+
let t2;
|
|
256
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
257
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
258
|
+
"data-slot": "sheet-footer",
|
|
259
|
+
className: t1,
|
|
260
|
+
...props
|
|
261
|
+
});
|
|
262
|
+
$[5] = props;
|
|
263
|
+
$[6] = t1;
|
|
264
|
+
$[7] = t2;
|
|
265
|
+
} else t2 = $[7];
|
|
266
|
+
return t2;
|
|
267
|
+
}
|
|
268
|
+
function SheetTitle(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("text-heading-3 text-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(DialogTitle, {
|
|
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 SheetDescription(t0) {
|
|
300
|
+
const $ = c(8);
|
|
301
|
+
let className;
|
|
302
|
+
let props;
|
|
303
|
+
if ($[0] !== t0) {
|
|
304
|
+
({className, ...props} = t0);
|
|
305
|
+
$[0] = t0;
|
|
306
|
+
$[1] = className;
|
|
307
|
+
$[2] = props;
|
|
308
|
+
} else {
|
|
309
|
+
className = $[1];
|
|
310
|
+
props = $[2];
|
|
311
|
+
}
|
|
312
|
+
let t1;
|
|
313
|
+
if ($[3] !== className) {
|
|
314
|
+
t1 = cnState("text-sm text-muted-foreground", className);
|
|
315
|
+
$[3] = className;
|
|
316
|
+
$[4] = t1;
|
|
317
|
+
} else t1 = $[4];
|
|
318
|
+
let t2;
|
|
319
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
320
|
+
t2 = /* @__PURE__ */ jsx(DialogDescription, {
|
|
321
|
+
className: t1,
|
|
322
|
+
...props
|
|
323
|
+
});
|
|
324
|
+
$[5] = props;
|
|
325
|
+
$[6] = t1;
|
|
326
|
+
$[7] = t2;
|
|
327
|
+
} else t2 = $[7];
|
|
328
|
+
return t2;
|
|
329
|
+
}
|
|
330
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetTitle, SheetTrigger, createDialogController as createSheetController };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { index_d_exports } from "../../core/index.js";
|
|
2
|
+
import { ChangeDetails } from "../../core/ui-sdk.js";
|
|
3
|
+
import { VariantProps } from "../../utilities/cn/index.js";
|
|
4
|
+
import { Input } from "../input/input.js";
|
|
5
|
+
import { Separator } from "../separator/separator.js";
|
|
6
|
+
import { ComponentProps, ReactNode, Ref } from "react";
|
|
7
|
+
import { Button } from "@ui-sdk/react/button";
|
|
8
|
+
type SidebarSide = "left" | "right";
|
|
9
|
+
type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
10
|
+
type SidebarCollapsible = "offcanvas" | "icon";
|
|
11
|
+
type SidebarOptions = {
|
|
12
|
+
/** Whether the sidebar is expanded on a wide screen. Pass it to control the sidebar. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Whether the sidebar starts expanded, when uncontrolled. Expanded by default. */
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
/** Runs when the sidebar wants to expand or collapse. `details.cancel()` stops it. */
|
|
17
|
+
onOpenChange?: (open: boolean, details: ChangeDetails) => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The sidebar's state and the methods that change it, for a component inside
|
|
21
|
+
* `SidebarProvider`. It re-renders when the state changes.
|
|
22
|
+
*/
|
|
23
|
+
declare function useSidebar(): {
|
|
24
|
+
open: boolean;
|
|
25
|
+
openMobile: boolean;
|
|
26
|
+
isMobile: boolean;
|
|
27
|
+
/** Whether the collapsed sidebar shows its column over the page. */
|
|
28
|
+
peek: boolean;
|
|
29
|
+
setOpen: (open: boolean, event?: Event) => void;
|
|
30
|
+
setOpenMobile: (openMobile: boolean) => void;
|
|
31
|
+
toggleSidebar: (event?: Event) => void;
|
|
32
|
+
};
|
|
33
|
+
type SidebarProviderProps = SidebarOptions & index_d_exports.PartProps<"div"> & {
|
|
34
|
+
/** The keys that expand and collapse the sidebar. Pass `null` for none. */
|
|
35
|
+
shortcut?: string | null;
|
|
36
|
+
/** Names the layout for screen readers and agents. Set it in the page's language. */
|
|
37
|
+
label?: string;
|
|
38
|
+
};
|
|
39
|
+
declare function SidebarProvider({ open, defaultOpen, onOpenChange, shortcut, label, className, style, children, ...props }: SidebarProviderProps): import("react").JSX.Element | null;
|
|
40
|
+
type SidebarProps = Omit<ComponentProps<"div">, "children"> & {
|
|
41
|
+
side?: SidebarSide;
|
|
42
|
+
variant?: SidebarVariant;
|
|
43
|
+
collapsible?: SidebarCollapsible | "none";
|
|
44
|
+
/**
|
|
45
|
+
* For a panel with `collapsible="none"` inside a sidebar that collapses to
|
|
46
|
+
* its icons, like the column next to a rail: while the sidebar is
|
|
47
|
+
* collapsed, the panel floats out over the page when the pointer rests on
|
|
48
|
+
* the sidebar, and leaves when it goes. Escape sends it away too.
|
|
49
|
+
*/
|
|
50
|
+
peek?: boolean;
|
|
51
|
+
/** Names the sheet the sidebar opens in on a narrow screen. Set it in the page's language. */
|
|
52
|
+
label?: string;
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
};
|
|
55
|
+
declare function Sidebar({ side, variant, collapsible, peek, label, className, children, ...props }: SidebarProps): import("react").JSX.Element | null;
|
|
56
|
+
type SidebarTriggerProps = index_d_exports.PartProps<"button"> & {
|
|
57
|
+
/** The button's accessible name. Set it in the page's language. */
|
|
58
|
+
label?: string;
|
|
59
|
+
};
|
|
60
|
+
declare function SidebarTrigger({ label, className, children, ref, ...props }: SidebarTriggerProps & {
|
|
61
|
+
ref?: Ref<HTMLButtonElement>;
|
|
62
|
+
}): import("react").JSX.Element | null;
|
|
63
|
+
declare function SidebarRail({ label, className, ...props }: SidebarTriggerProps): import("react").JSX.Element | null;
|
|
64
|
+
declare function SidebarInset({ className, ...props }: ComponentProps<"main">): import("react").JSX.Element;
|
|
65
|
+
/**
|
|
66
|
+
* The page's top bar, first in `SidebarInset`: a title, the page's actions,
|
|
67
|
+
* and `SidebarTrigger` first while the sidebar is collapsed. In a desktop
|
|
68
|
+
* window its middle lines up with the window's controls, whether the page is
|
|
69
|
+
* a card (34px, Alma's) or fills the window (the title bar's 52px), and it
|
|
70
|
+
* drags the window. A border under it adds to its height (`box-content`).
|
|
71
|
+
*/
|
|
72
|
+
declare function SidebarInsetHeader({ className, ...props }: ComponentProps<"header">): import("react").JSX.Element;
|
|
73
|
+
declare function SidebarInput({ className, ...props }: ComponentProps<typeof Input>): import("react").JSX.Element;
|
|
74
|
+
/**
|
|
75
|
+
* The top row of an app in a desktop window that draws its own title bar,
|
|
76
|
+
* with the window's controls (macOS's traffic lights) over it. It leaves the
|
|
77
|
+
* controls their room at the leading edge, centers what it holds with them,
|
|
78
|
+
* and drags the window, while its controls stay clickable. The app places
|
|
79
|
+
* the window's controls on the sidebar's icon column and in the row's middle
|
|
80
|
+
* (Foundations/Layout). Its `pe-2` centers a 28px button on the trailing
|
|
81
|
+
* column, 22px in from the edge, where badges and row actions are centered too.
|
|
82
|
+
* The first header under it, in the sidebar or in a panel beside a rail,
|
|
83
|
+
* starts right under it: the bar's lower half is the gap. Collapsed, the bar
|
|
84
|
+
* folds to the 8px gap above the icons, so a rail starts near the window's
|
|
85
|
+
* top instead of under an empty band: the app hides the window's controls
|
|
86
|
+
* while the sidebar is collapsed (Electron's `setWindowButtonVisibility`).
|
|
87
|
+
*/
|
|
88
|
+
declare function SidebarTitlebar({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
89
|
+
declare function SidebarHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
90
|
+
declare function SidebarFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
91
|
+
declare function SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
|
|
92
|
+
declare function SidebarContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
93
|
+
declare function SidebarGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
94
|
+
declare function SidebarGroupLabel({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
95
|
+
declare function SidebarGroupAction({ className, ...props }: ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
96
|
+
declare function SidebarGroupContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
97
|
+
declare function SidebarMenu({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
|
|
98
|
+
declare function SidebarMenuItem({ className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
|
|
99
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
100
|
+
variant?: "default" | "outline" | null | undefined;
|
|
101
|
+
size?: "default" | "icon" | "lg" | "sm" | null | undefined;
|
|
102
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
103
|
+
type SidebarMenuButtonProps = ComponentProps<typeof Button> & VariantProps<typeof sidebarMenuButtonVariants> & {
|
|
104
|
+
/** Marks the page or section the user is on. */
|
|
105
|
+
isActive?: boolean;
|
|
106
|
+
/** Names the button while the sidebar is collapsed to icons. */
|
|
107
|
+
tooltip?: ReactNode;
|
|
108
|
+
};
|
|
109
|
+
declare function SidebarMenuButton({ isActive, variant, size, tooltip, className, ...props }: SidebarMenuButtonProps): import("react").JSX.Element;
|
|
110
|
+
type SidebarMenuActionProps = ComponentProps<typeof Button> & {
|
|
111
|
+
/** Shows the action only while its row is hovered or focused. */
|
|
112
|
+
showOnHover?: boolean;
|
|
113
|
+
};
|
|
114
|
+
declare function SidebarMenuAction({ className, showOnHover, ...props }: SidebarMenuActionProps): import("react").JSX.Element;
|
|
115
|
+
type SidebarMenuBadgeProps = ComponentProps<"div"> & {
|
|
116
|
+
/**
|
|
117
|
+
* `dot` is for an icon button, like a rail's: a dot on its corner while the
|
|
118
|
+
* sidebar is open, and the count while it is collapsed. Its color is the
|
|
119
|
+
* badge's `className` (`bg-warning text-warning-foreground` for what waits).
|
|
120
|
+
*/
|
|
121
|
+
variant?: "count" | "dot";
|
|
122
|
+
};
|
|
123
|
+
declare function SidebarMenuBadge({ variant, className, children, ...props }: SidebarMenuBadgeProps): import("react").JSX.Element;
|
|
124
|
+
type SidebarMenuSkeletonProps = ComponentProps<"div"> & {
|
|
125
|
+
showIcon?: boolean;
|
|
126
|
+
/** The width of the text placeholder, like `"60%"`. */
|
|
127
|
+
width?: string;
|
|
128
|
+
};
|
|
129
|
+
declare function SidebarMenuSkeleton({ className, showIcon, width, ...props }: SidebarMenuSkeletonProps): import("react").JSX.Element;
|
|
130
|
+
declare function SidebarMenuSub({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
|
|
131
|
+
declare function SidebarMenuSubItem({ className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
|
|
132
|
+
type SidebarMenuSubButtonProps = ComponentProps<typeof Button> & {
|
|
133
|
+
size?: "sm" | "md";
|
|
134
|
+
/** Marks the page the user is on. */
|
|
135
|
+
isActive?: boolean;
|
|
136
|
+
};
|
|
137
|
+
declare function SidebarMenuSubButton({ size, isActive, className, ...props }: SidebarMenuSubButtonProps): import("react").JSX.Element;
|
|
138
|
+
export { Sidebar, type SidebarCollapsible, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarInsetHeader, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, type SidebarMenuBadgeProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarOptions, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, type SidebarSide, SidebarTitlebar, SidebarTrigger, type SidebarTriggerProps, type SidebarVariant, sidebarMenuButtonVariants, useSidebar };
|