@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,211 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { buttonLook } from "../button/button.js";
|
|
4
|
+
import { Icon } from "../icon/icon.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { ArrowDown02Icon } from "@hugeicons/core-free-icons";
|
|
8
|
+
import { ScrollArea as ScrollArea$1, ScrollAreaContent as ScrollAreaContent$1, ScrollAreaCorner as ScrollAreaCorner$1, ScrollAreaScrollToEnd as ScrollAreaScrollToEnd$1, ScrollAreaScrollbar as ScrollAreaScrollbar$1, ScrollAreaThumb as ScrollAreaThumb$1, ScrollAreaViewport as ScrollAreaViewport$1, createScrollAreaController } from "@ui-sdk/react/scroll-area";
|
|
9
|
+
// src/components/scroll-area/scroll-area.tsx
|
|
10
|
+
/** Give it a size: the viewport fills it. */
|
|
11
|
+
function ScrollArea(t0) {
|
|
12
|
+
const $ = c(8);
|
|
13
|
+
let className;
|
|
14
|
+
let props;
|
|
15
|
+
if ($[0] !== t0) {
|
|
16
|
+
({className, ...props} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = className;
|
|
19
|
+
$[2] = props;
|
|
20
|
+
} else {
|
|
21
|
+
className = $[1];
|
|
22
|
+
props = $[2];
|
|
23
|
+
}
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[3] !== className) {
|
|
26
|
+
t1 = cnState("relative", className);
|
|
27
|
+
$[3] = className;
|
|
28
|
+
$[4] = t1;
|
|
29
|
+
} else t1 = $[4];
|
|
30
|
+
let t2;
|
|
31
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
32
|
+
t2 = /* @__PURE__ */ jsx(ScrollArea$1, {
|
|
33
|
+
className: t1,
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
$[5] = props;
|
|
37
|
+
$[6] = t1;
|
|
38
|
+
$[7] = t2;
|
|
39
|
+
} else t2 = $[7];
|
|
40
|
+
return t2;
|
|
41
|
+
}
|
|
42
|
+
function ScrollAreaViewport(t0) {
|
|
43
|
+
const $ = c(8);
|
|
44
|
+
let className;
|
|
45
|
+
let props;
|
|
46
|
+
if ($[0] !== t0) {
|
|
47
|
+
({className, ...props} = t0);
|
|
48
|
+
$[0] = t0;
|
|
49
|
+
$[1] = className;
|
|
50
|
+
$[2] = props;
|
|
51
|
+
} else {
|
|
52
|
+
className = $[1];
|
|
53
|
+
props = $[2];
|
|
54
|
+
}
|
|
55
|
+
let t1;
|
|
56
|
+
if ($[3] !== className) {
|
|
57
|
+
t1 = cnState("size-full rounded-[inherit] focus-ring-inset", className);
|
|
58
|
+
$[3] = className;
|
|
59
|
+
$[4] = t1;
|
|
60
|
+
} else t1 = $[4];
|
|
61
|
+
let t2;
|
|
62
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
63
|
+
t2 = /* @__PURE__ */ jsx(ScrollAreaViewport$1, {
|
|
64
|
+
className: t1,
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
$[5] = props;
|
|
68
|
+
$[6] = t1;
|
|
69
|
+
$[7] = t2;
|
|
70
|
+
} else t2 = $[7];
|
|
71
|
+
return t2;
|
|
72
|
+
}
|
|
73
|
+
function ScrollAreaContent(t0) {
|
|
74
|
+
const $ = c(8);
|
|
75
|
+
let className;
|
|
76
|
+
let props;
|
|
77
|
+
if ($[0] !== t0) {
|
|
78
|
+
({className, ...props} = t0);
|
|
79
|
+
$[0] = t0;
|
|
80
|
+
$[1] = className;
|
|
81
|
+
$[2] = props;
|
|
82
|
+
} else {
|
|
83
|
+
className = $[1];
|
|
84
|
+
props = $[2];
|
|
85
|
+
}
|
|
86
|
+
let t1;
|
|
87
|
+
if ($[3] !== className) {
|
|
88
|
+
t1 = cnState("", className);
|
|
89
|
+
$[3] = className;
|
|
90
|
+
$[4] = t1;
|
|
91
|
+
} else t1 = $[4];
|
|
92
|
+
let t2;
|
|
93
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
94
|
+
t2 = /* @__PURE__ */ jsx(ScrollAreaContent$1, {
|
|
95
|
+
className: t1,
|
|
96
|
+
...props
|
|
97
|
+
});
|
|
98
|
+
$[5] = props;
|
|
99
|
+
$[6] = t1;
|
|
100
|
+
$[7] = t2;
|
|
101
|
+
} else t2 = $[7];
|
|
102
|
+
return t2;
|
|
103
|
+
}
|
|
104
|
+
function ScrollAreaScrollbar(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("flex touch-none border-transparent p-px opacity-0 transition-opacity select-none data-visible:opacity-100 data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:border-t data-[orientation=vertical]:w-2.5 data-[orientation=vertical]:border-s", className);
|
|
120
|
+
$[3] = className;
|
|
121
|
+
$[4] = t1;
|
|
122
|
+
} else t1 = $[4];
|
|
123
|
+
let t2;
|
|
124
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
125
|
+
t2 = /* @__PURE__ */ jsx(ScrollAreaScrollbar$1, {
|
|
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 ScrollAreaThumb(t0) {
|
|
136
|
+
const $ = c(8);
|
|
137
|
+
let className;
|
|
138
|
+
let props;
|
|
139
|
+
if ($[0] !== t0) {
|
|
140
|
+
({className, ...props} = t0);
|
|
141
|
+
$[0] = t0;
|
|
142
|
+
$[1] = className;
|
|
143
|
+
$[2] = props;
|
|
144
|
+
} else {
|
|
145
|
+
className = $[1];
|
|
146
|
+
props = $[2];
|
|
147
|
+
}
|
|
148
|
+
let t1;
|
|
149
|
+
if ($[3] !== className) {
|
|
150
|
+
t1 = cnState("relative flex-1 rounded-full bg-input transition-colors hover:bg-muted-foreground data-dragging:bg-muted-foreground", className);
|
|
151
|
+
$[3] = className;
|
|
152
|
+
$[4] = t1;
|
|
153
|
+
} else t1 = $[4];
|
|
154
|
+
let t2;
|
|
155
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
156
|
+
t2 = /* @__PURE__ */ jsx(ScrollAreaThumb$1, {
|
|
157
|
+
className: t1,
|
|
158
|
+
...props
|
|
159
|
+
});
|
|
160
|
+
$[5] = props;
|
|
161
|
+
$[6] = t1;
|
|
162
|
+
$[7] = t2;
|
|
163
|
+
} else t2 = $[7];
|
|
164
|
+
return t2;
|
|
165
|
+
}
|
|
166
|
+
function ScrollAreaCorner(t0) {
|
|
167
|
+
const $ = c(8);
|
|
168
|
+
let className;
|
|
169
|
+
let props;
|
|
170
|
+
if ($[0] !== t0) {
|
|
171
|
+
({className, ...props} = t0);
|
|
172
|
+
$[0] = t0;
|
|
173
|
+
$[1] = className;
|
|
174
|
+
$[2] = props;
|
|
175
|
+
} else {
|
|
176
|
+
className = $[1];
|
|
177
|
+
props = $[2];
|
|
178
|
+
}
|
|
179
|
+
let t1;
|
|
180
|
+
if ($[3] !== className) {
|
|
181
|
+
t1 = cnState("", className);
|
|
182
|
+
$[3] = className;
|
|
183
|
+
$[4] = t1;
|
|
184
|
+
} else t1 = $[4];
|
|
185
|
+
let t2;
|
|
186
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
187
|
+
t2 = /* @__PURE__ */ jsx(ScrollAreaCorner$1, {
|
|
188
|
+
className: t1,
|
|
189
|
+
...props
|
|
190
|
+
});
|
|
191
|
+
$[5] = props;
|
|
192
|
+
$[6] = t1;
|
|
193
|
+
$[7] = t2;
|
|
194
|
+
} else t2 = $[7];
|
|
195
|
+
return t2;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* A round outline button over the bottom edge, with an arrow. Name it with
|
|
199
|
+
* `aria-label`. It fades out while the view is at the end.
|
|
200
|
+
*/
|
|
201
|
+
function ScrollAreaScrollToEnd({ variant = "outline", size = "icon-sm", className, children = /* @__PURE__ */ jsx(Icon, { icon: ArrowDown02Icon }), ...props }) {
|
|
202
|
+
return /* @__PURE__ */ jsx(ScrollAreaScrollToEnd$1, {
|
|
203
|
+
className: cnState([buttonLook({
|
|
204
|
+
variant,
|
|
205
|
+
size
|
|
206
|
+
}), "absolute start-1/2 bottom-3 -translate-x-1/2 rounded-full rtl:translate-x-1/2 opacity-0 shadow-md transition-[opacity,background-color] data-visible:opacity-100"], className),
|
|
207
|
+
...props,
|
|
208
|
+
children
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export { ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollToEnd, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, createScrollAreaController };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { SegmentedControl as SegmentedControl$1, SegmentedControlIndicator as SegmentedControlIndicator$1, SegmentedControlItem as SegmentedControlItem$1, createSegmentedControlController } from "@ui-sdk/react/segmented-control";
|
|
3
|
+
type SegmentedControlProps<T extends string = string> = Parameters<typeof SegmentedControl$1<T>>[0];
|
|
4
|
+
/**
|
|
5
|
+
* Name it with `aria-label`, or put it in a `Field` with a `FieldLabel`. The
|
|
6
|
+
* fill slides to the item you check: the control draws a
|
|
7
|
+
* `SegmentedControlIndicator` when its children have none.
|
|
8
|
+
*/
|
|
9
|
+
declare function SegmentedControl<T extends string = string>({ className, children, ...props }: SegmentedControlProps<T>): import("react").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* The fill that slides to the checked item. `SegmentedControl` draws one by
|
|
12
|
+
* itself; render your own, first, before the items, to give it a `className`.
|
|
13
|
+
*/
|
|
14
|
+
declare function SegmentedControlIndicator({ className, ref, ...props }: ComponentProps<typeof SegmentedControlIndicator$1>): import("react").JSX.Element;
|
|
15
|
+
declare function SegmentedControlItem({ className, ...props }: ComponentProps<typeof SegmentedControlItem$1>): import("react").JSX.Element;
|
|
16
|
+
export { SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, type SegmentedControlProps, createSegmentedControlController };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { markPlaced } from "../../behaviors/selection/indicator.js";
|
|
3
|
+
import "../../behaviors/selection/index.js";
|
|
4
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { Children, isValidElement } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { SegmentedControl as SegmentedControl$1, SegmentedControlIndicator as SegmentedControlIndicator$1, SegmentedControlItem as SegmentedControlItem$1, createSegmentedControlController } from "@ui-sdk/react/segmented-control";
|
|
9
|
+
// src/components/segmented-control/segmented-control.tsx
|
|
10
|
+
/** Adds a `SegmentedControlIndicator` before the items, unless they already hold one. */
|
|
11
|
+
function withIndicator(children) {
|
|
12
|
+
return Children.toArray(children).some((child) => isValidElement(child) && child.type === SegmentedControlIndicator) ? children : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SegmentedControlIndicator, {}), children] });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Name it with `aria-label`, or put it in a `Field` with a `FieldLabel`. The
|
|
16
|
+
* fill slides to the item you check: the control draws a
|
|
17
|
+
* `SegmentedControlIndicator` when its children have none.
|
|
18
|
+
*/
|
|
19
|
+
function SegmentedControl(t0) {
|
|
20
|
+
const $ = c(12);
|
|
21
|
+
let children;
|
|
22
|
+
let className;
|
|
23
|
+
let props;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({className, children, ...props} = t0);
|
|
26
|
+
$[0] = t0;
|
|
27
|
+
$[1] = children;
|
|
28
|
+
$[2] = className;
|
|
29
|
+
$[3] = props;
|
|
30
|
+
} else {
|
|
31
|
+
children = $[1];
|
|
32
|
+
className = $[2];
|
|
33
|
+
props = $[3];
|
|
34
|
+
}
|
|
35
|
+
let t1;
|
|
36
|
+
if ($[4] !== className) {
|
|
37
|
+
t1 = cnState("group/segmented-control relative isolate inline-flex w-fit items-center rounded-full bg-muted p-1 data-[orientation=vertical]:flex-col data-[orientation=vertical]:rounded-2xl data-[orientation=vertical]:items-stretch", className);
|
|
38
|
+
$[4] = className;
|
|
39
|
+
$[5] = t1;
|
|
40
|
+
} else t1 = $[5];
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[6] !== children) {
|
|
43
|
+
t2 = typeof children === "function" ? (state) => withIndicator(children(state)) : withIndicator(children);
|
|
44
|
+
$[6] = children;
|
|
45
|
+
$[7] = t2;
|
|
46
|
+
} else t2 = $[7];
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
|
|
49
|
+
t3 = /* @__PURE__ */ jsx(SegmentedControl$1, {
|
|
50
|
+
className: t1,
|
|
51
|
+
...props,
|
|
52
|
+
children: t2
|
|
53
|
+
});
|
|
54
|
+
$[8] = props;
|
|
55
|
+
$[9] = t1;
|
|
56
|
+
$[10] = t2;
|
|
57
|
+
$[11] = t3;
|
|
58
|
+
} else t3 = $[11];
|
|
59
|
+
return t3;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The fill that slides to the checked item. `SegmentedControl` draws one by
|
|
63
|
+
* itself; render your own, first, before the items, to give it a `className`.
|
|
64
|
+
*/
|
|
65
|
+
function SegmentedControlIndicator(t0) {
|
|
66
|
+
const $ = c(12);
|
|
67
|
+
let className;
|
|
68
|
+
let props;
|
|
69
|
+
let ref;
|
|
70
|
+
if ($[0] !== t0) {
|
|
71
|
+
({className, ref, ...props} = t0);
|
|
72
|
+
$[0] = t0;
|
|
73
|
+
$[1] = className;
|
|
74
|
+
$[2] = props;
|
|
75
|
+
$[3] = ref;
|
|
76
|
+
} else {
|
|
77
|
+
className = $[1];
|
|
78
|
+
props = $[2];
|
|
79
|
+
ref = $[3];
|
|
80
|
+
}
|
|
81
|
+
let t1;
|
|
82
|
+
if ($[4] !== ref) {
|
|
83
|
+
t1 = (element) => {
|
|
84
|
+
if (typeof ref === "function") ref(element);
|
|
85
|
+
else if (ref) ref.current = element;
|
|
86
|
+
return element ? markPlaced(element) : void 0;
|
|
87
|
+
};
|
|
88
|
+
$[4] = ref;
|
|
89
|
+
$[5] = t1;
|
|
90
|
+
} else t1 = $[5];
|
|
91
|
+
let t2;
|
|
92
|
+
if ($[6] !== className) {
|
|
93
|
+
t2 = cnState("absolute top-0 left-0 -z-1 h-(--segmented-control-indicator-height) w-(--segmented-control-indicator-width) translate-x-(--segmented-control-indicator-left) translate-y-(--segmented-control-indicator-top) rounded-full bg-background shadow-sm ring-1 ring-border not-[[style*=--segmented-control-indicator-width]]:hidden motion-safe:data-placed:transition-[translate,width,height] motion-safe:data-placed:duration-popup motion-safe:data-placed:ease-in-out", className);
|
|
94
|
+
$[6] = className;
|
|
95
|
+
$[7] = t2;
|
|
96
|
+
} else t2 = $[7];
|
|
97
|
+
let t3;
|
|
98
|
+
if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
|
|
99
|
+
t3 = /* @__PURE__ */ jsx(SegmentedControlIndicator$1, {
|
|
100
|
+
ref: t1,
|
|
101
|
+
className: t2,
|
|
102
|
+
...props
|
|
103
|
+
});
|
|
104
|
+
$[8] = props;
|
|
105
|
+
$[9] = t1;
|
|
106
|
+
$[10] = t2;
|
|
107
|
+
$[11] = t3;
|
|
108
|
+
} else t3 = $[11];
|
|
109
|
+
return t3;
|
|
110
|
+
}
|
|
111
|
+
function SegmentedControlItem(t0) {
|
|
112
|
+
const $ = c(8);
|
|
113
|
+
let className;
|
|
114
|
+
let props;
|
|
115
|
+
if ($[0] !== t0) {
|
|
116
|
+
({className, ...props} = t0);
|
|
117
|
+
$[0] = t0;
|
|
118
|
+
$[1] = className;
|
|
119
|
+
$[2] = props;
|
|
120
|
+
} else {
|
|
121
|
+
className = $[1];
|
|
122
|
+
props = $[2];
|
|
123
|
+
}
|
|
124
|
+
let t1;
|
|
125
|
+
if ($[3] !== className) {
|
|
126
|
+
t1 = cnState(["inline-flex min-h-7 flex-1 items-center justify-center gap-1.5 rounded-full px-3 text-sm font-medium whitespace-nowrap text-muted-foreground select-none transition-colors hover:text-foreground focus-ring data-checked:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-not-has-[[data-slot=segmented-control-indicator][data-placed]]/segmented-control:data-checked:bg-background group-not-has-[[data-slot=segmented-control-indicator][data-placed]]/segmented-control:data-checked:shadow-sm group-not-has-[[data-slot=segmented-control-indicator][data-placed]]/segmented-control:data-checked:ring-1 group-not-has-[[data-slot=segmented-control-indicator][data-placed]]/segmented-control:data-checked:ring-border"], className);
|
|
127
|
+
$[3] = className;
|
|
128
|
+
$[4] = t1;
|
|
129
|
+
} else t1 = $[4];
|
|
130
|
+
let t2;
|
|
131
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
132
|
+
t2 = /* @__PURE__ */ jsx(SegmentedControlItem$1, {
|
|
133
|
+
className: t1,
|
|
134
|
+
...props
|
|
135
|
+
});
|
|
136
|
+
$[5] = props;
|
|
137
|
+
$[6] = t1;
|
|
138
|
+
$[7] = t2;
|
|
139
|
+
} else t2 = $[7];
|
|
140
|
+
return t2;
|
|
141
|
+
}
|
|
142
|
+
export { SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, createSegmentedControlController };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ListData, SelectArrow as SelectArrow$1, SelectClear as SelectClear$1, SelectContent as SelectContent$1, SelectEmpty as SelectEmpty$1, SelectGroup as SelectGroup$1, SelectGroupLabel as SelectGroupLabel$1, SelectInput as SelectInput$1, SelectItem as SelectItem$1, SelectItemIcon as SelectItemIcon$1, SelectItemIndicator as SelectItemIndicator$1, SelectItemText as SelectItemText$1, SelectLabel as SelectLabel$1, SelectList as SelectList$1, SelectProps, SelectSelectAll as SelectSelectAll$1, SelectSeparator as SelectSeparator$1, SelectStatus as SelectStatus$1, SelectTrigger as SelectTrigger$1, SelectValue as SelectValue$1, SelectValueIcon as SelectValueIcon$1, createSelectController } from "@ui-sdk/react/select";
|
|
4
|
+
declare function Select<T = string, Multiple extends boolean | undefined = false>(props: SelectProps<T, Multiple>): import("react").JSX.Element;
|
|
5
|
+
declare function SelectLabel({ className, ...props }: ComponentProps<typeof SelectLabel$1>): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* Looks like abby's `Input`. Without children it shows a `SelectValue` and a
|
|
8
|
+
* chevron. With children it shows only those, as in ui-sdk: end them with an
|
|
9
|
+
* `Icon` and it sits at the trigger's far edge.
|
|
10
|
+
*/
|
|
11
|
+
declare function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectTrigger$1>): import("react").JSX.Element;
|
|
12
|
+
declare function SelectValue({ className, ...props }: ComponentProps<typeof SelectValue$1>): import("react").JSX.Element;
|
|
13
|
+
declare function SelectValueIcon({ className, ...props }: ComponentProps<typeof SelectValueIcon$1>): import("react").JSX.Element;
|
|
14
|
+
type SelectClearProps = ComponentProps<typeof SelectClear$1> & ButtonLook;
|
|
15
|
+
/** A ghost icon button with a cross. Name it with `aria-label`. */
|
|
16
|
+
declare function SelectClear({ variant, size, className, children, ...props }: SelectClearProps): import("react").JSX.Element;
|
|
17
|
+
/** Without children it renders the select's `items`, each with its check. */
|
|
18
|
+
declare function SelectContent({ className, sideOffset, children, ...props }: ComponentProps<typeof SelectContent$1>): import("react").JSX.Element;
|
|
19
|
+
/** Without children it renders the select's `items` that match the search. */
|
|
20
|
+
declare function SelectList({ className, children, ...props }: ComponentProps<typeof SelectList$1>): import("react").JSX.Element;
|
|
21
|
+
declare function SelectInput({ className, ...props }: ComponentProps<typeof SelectInput$1>): import("react").JSX.Element;
|
|
22
|
+
declare function SelectEmpty({ className, ...props }: ComponentProps<typeof SelectEmpty$1>): import("react").JSX.Element;
|
|
23
|
+
declare function SelectStatus({ className, ...props }: ComponentProps<typeof SelectStatus$1>): import("react").JSX.Element;
|
|
24
|
+
type SelectItemProps<T = string> = Parameters<typeof SelectItem$1<T>>[0];
|
|
25
|
+
declare function SelectItem<T = string>({ className, ...props }: SelectItemProps<T>): import("react").JSX.Element;
|
|
26
|
+
declare function SelectItemText({ className, ...props }: ComponentProps<typeof SelectItemText$1>): import("react").JSX.Element;
|
|
27
|
+
/** Without children it shows a check. */
|
|
28
|
+
declare const SelectItemIndicator: (({ className, children, ...props }: ComponentProps<typeof SelectItemIndicator$1>) => import("react").JSX.Element) & {
|
|
29
|
+
[x: symbol]: boolean;
|
|
30
|
+
};
|
|
31
|
+
declare const SelectItemIcon: (({ className, ...props }: ComponentProps<typeof SelectItemIcon$1>) => import("react").JSX.Element) & {
|
|
32
|
+
[x: symbol]: boolean;
|
|
33
|
+
};
|
|
34
|
+
declare function SelectSelectAll({ className, ...props }: ComponentProps<typeof SelectSelectAll$1>): import("react").JSX.Element;
|
|
35
|
+
declare function SelectGroup({ className, ...props }: ComponentProps<typeof SelectGroup$1>): import("react").JSX.Element;
|
|
36
|
+
declare function SelectGroupLabel({ className, ...props }: ComponentProps<typeof SelectGroupLabel$1>): import("react").JSX.Element;
|
|
37
|
+
declare function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectSeparator$1>): import("react").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Give the content a `sideOffset` that leaves room for it. The content stops
|
|
40
|
+
* clipping while it holds an arrow, so a long list scrolls in a `SelectList`.
|
|
41
|
+
*/
|
|
42
|
+
declare function SelectArrow({ className, ...props }: ComponentProps<typeof SelectArrow$1>): import("react").JSX.Element;
|
|
43
|
+
export { type ListData, Select, SelectArrow, SelectClear, type SelectClearProps, SelectContent, SelectEmpty, SelectGroup, SelectGroupLabel, SelectInput, SelectItem, SelectItemIcon, SelectItemIndicator, type SelectItemProps, SelectItemText, SelectLabel, SelectList, type SelectProps, SelectSelectAll, SelectSeparator, SelectStatus, SelectTrigger, SelectValue, SelectValueIcon, createSelectController };
|