@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,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { buttonLook } from "../button/button.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Collapsible as Collapsible$1, CollapsiblePanel as CollapsiblePanel$1, CollapsibleTrigger as CollapsibleTrigger$1, createCollapsibleController } from "@ui-sdk/react/collapsible";
|
|
7
|
+
// src/components/collapsible/collapsible.tsx
|
|
8
|
+
function Collapsible(props) {
|
|
9
|
+
const $ = c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /* @__PURE__ */ jsx(Collapsible$1, { ...props });
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else t0 = $[1];
|
|
16
|
+
return t0;
|
|
17
|
+
}
|
|
18
|
+
/** Unstyled but for its focus ring. Give it a `variant` or a `size` to look like a button. */
|
|
19
|
+
function CollapsibleTrigger(t0) {
|
|
20
|
+
const $ = c(12);
|
|
21
|
+
let className;
|
|
22
|
+
let props;
|
|
23
|
+
let size;
|
|
24
|
+
let variant;
|
|
25
|
+
if ($[0] !== t0) {
|
|
26
|
+
({variant, size, className, ...props} = t0);
|
|
27
|
+
$[0] = t0;
|
|
28
|
+
$[1] = className;
|
|
29
|
+
$[2] = props;
|
|
30
|
+
$[3] = size;
|
|
31
|
+
$[4] = variant;
|
|
32
|
+
} else {
|
|
33
|
+
className = $[1];
|
|
34
|
+
props = $[2];
|
|
35
|
+
size = $[3];
|
|
36
|
+
variant = $[4];
|
|
37
|
+
}
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
40
|
+
t1 = cnState(["rounded-md focus-ring data-disabled:pointer-events-none data-disabled:opacity-50", buttonLook({
|
|
41
|
+
variant,
|
|
42
|
+
size
|
|
43
|
+
})], className);
|
|
44
|
+
$[5] = className;
|
|
45
|
+
$[6] = size;
|
|
46
|
+
$[7] = variant;
|
|
47
|
+
$[8] = t1;
|
|
48
|
+
} else t1 = $[8];
|
|
49
|
+
let t2;
|
|
50
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
51
|
+
t2 = /* @__PURE__ */ jsx(CollapsibleTrigger$1, {
|
|
52
|
+
className: t1,
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
$[9] = props;
|
|
56
|
+
$[10] = t1;
|
|
57
|
+
$[11] = t2;
|
|
58
|
+
} else t2 = $[11];
|
|
59
|
+
return t2;
|
|
60
|
+
}
|
|
61
|
+
function CollapsiblePanel(t0) {
|
|
62
|
+
const $ = c(8);
|
|
63
|
+
let className;
|
|
64
|
+
let props;
|
|
65
|
+
if ($[0] !== t0) {
|
|
66
|
+
({className, ...props} = t0);
|
|
67
|
+
$[0] = t0;
|
|
68
|
+
$[1] = className;
|
|
69
|
+
$[2] = props;
|
|
70
|
+
} else {
|
|
71
|
+
className = $[1];
|
|
72
|
+
props = $[2];
|
|
73
|
+
}
|
|
74
|
+
let t1;
|
|
75
|
+
if ($[3] !== className) {
|
|
76
|
+
t1 = cnState("h-(--collapsible-panel-height) overflow-y-clip text-sm transition-[height] duration-popup ease-out data-closed:h-0 data-starting-style:h-0 motion-reduce:transition-none", className);
|
|
77
|
+
$[3] = className;
|
|
78
|
+
$[4] = t1;
|
|
79
|
+
} else t1 = $[4];
|
|
80
|
+
let t2;
|
|
81
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
82
|
+
t2 = /* @__PURE__ */ jsx(CollapsiblePanel$1, {
|
|
83
|
+
className: t1,
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
$[5] = props;
|
|
87
|
+
$[6] = t1;
|
|
88
|
+
$[7] = t2;
|
|
89
|
+
} else t2 = $[7];
|
|
90
|
+
return t2;
|
|
91
|
+
}
|
|
92
|
+
export { Collapsible, CollapsiblePanel, CollapsibleTrigger, createCollapsibleController };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ColorPicker as ColorPicker$1, ColorPickerArea as ColorPickerArea$1, ColorPickerAreaCanvas as ColorPickerAreaCanvas$1, ColorPickerAreaThumb as ColorPickerAreaThumb$1, ColorPickerChannelInput as ColorPickerChannelInput$1, ColorPickerEyeDropper as ColorPickerEyeDropper$1, ColorPickerInput as ColorPickerInput$1, ColorPickerSlider as ColorPickerSlider$1, ColorPickerSliderThumb as ColorPickerSliderThumb$1, ColorPickerSwatch as ColorPickerSwatch$1, ColorPickerSwatchItem as ColorPickerSwatchItem$1, ColorPickerSwatches as ColorPickerSwatches$1, createColorPickerController } from "@ui-sdk/react/color-picker";
|
|
4
|
+
declare function ColorPicker({ className, ...props }: ComponentProps<typeof ColorPicker$1>): import("react").JSX.Element;
|
|
5
|
+
declare function ColorPickerArea({ className, ...props }: ComponentProps<typeof ColorPickerArea$1>): import("react").JSX.Element;
|
|
6
|
+
declare function ColorPickerAreaCanvas({ className, ...props }: ComponentProps<typeof ColorPickerAreaCanvas$1>): import("react").JSX.Element;
|
|
7
|
+
declare function ColorPickerAreaThumb({ className, ...props }: ComponentProps<typeof ColorPickerAreaThumb$1>): import("react").JSX.Element;
|
|
8
|
+
declare function ColorPickerSlider({ className, ...props }: ComponentProps<typeof ColorPickerSlider$1>): import("react").JSX.Element;
|
|
9
|
+
declare function ColorPickerSliderThumb({ className, ...props }: ComponentProps<typeof ColorPickerSliderThumb$1>): import("react").JSX.Element;
|
|
10
|
+
declare function ColorPickerSwatch({ className, ...props }: ComponentProps<typeof ColorPickerSwatch$1>): import("react").JSX.Element;
|
|
11
|
+
declare function ColorPickerInput({ className, ...props }: ComponentProps<typeof ColorPickerInput$1>): import("react").JSX.Element;
|
|
12
|
+
declare function ColorPickerChannelInput({ className, ...props }: ComponentProps<typeof ColorPickerChannelInput$1>): import("react").JSX.Element;
|
|
13
|
+
type ColorPickerEyeDropperProps = ComponentProps<typeof ColorPickerEyeDropper$1> & ButtonLook;
|
|
14
|
+
declare function ColorPickerEyeDropper({ variant, size, className, ...props }: ColorPickerEyeDropperProps): import("react").JSX.Element;
|
|
15
|
+
declare function ColorPickerSwatches({ className, ...props }: ComponentProps<typeof ColorPickerSwatches$1>): import("react").JSX.Element;
|
|
16
|
+
declare function ColorPickerSwatchItem({ className, ...props }: ComponentProps<typeof ColorPickerSwatchItem$1>): import("react").JSX.Element;
|
|
17
|
+
export { ColorPicker, ColorPickerArea, ColorPickerAreaCanvas, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerEyeDropper, type ColorPickerEyeDropperProps, ColorPickerInput, ColorPickerSlider, ColorPickerSliderThumb, ColorPickerSwatch, ColorPickerSwatchItem, ColorPickerSwatches, createColorPickerController };
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cnState } from "../../utilities/cn/index.js";
|
|
3
|
+
import { buttonLook } from "../button/button.js";
|
|
4
|
+
import { inputClasses } from "../input/input.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { ColorPicker as ColorPicker$1, ColorPickerArea as ColorPickerArea$1, ColorPickerAreaCanvas as ColorPickerAreaCanvas$1, ColorPickerAreaThumb as ColorPickerAreaThumb$1, ColorPickerChannelInput as ColorPickerChannelInput$1, ColorPickerEyeDropper as ColorPickerEyeDropper$1, ColorPickerInput as ColorPickerInput$1, ColorPickerSlider as ColorPickerSlider$1, ColorPickerSliderThumb as ColorPickerSliderThumb$1, ColorPickerSwatch as ColorPickerSwatch$1, ColorPickerSwatchItem as ColorPickerSwatchItem$1, ColorPickerSwatches as ColorPickerSwatches$1, createColorPickerController } from "@ui-sdk/react/color-picker";
|
|
8
|
+
// src/components/color-picker/color-picker.tsx
|
|
9
|
+
const sliderBackground = "[background:var(--color-slider-background),repeating-conic-gradient(var(--border)_0_25%,var(--background)_0_50%)_0_0/0.5rem_0.5rem]";
|
|
10
|
+
const colorBackground = "[background:linear-gradient(var(--color-picker-color),var(--color-picker-color)),repeating-conic-gradient(var(--border)_0_25%,var(--background)_0_50%)_0_0/0.5rem_0.5rem]";
|
|
11
|
+
const thumbClasses = "size-4 -translate-1/2 rounded-full border-2 border-background bg-(--color-picker-color) ring-1 ring-foreground/50 focus-ring rtl:translate-x-1/2 data-disabled:pointer-events-none";
|
|
12
|
+
function ColorPicker(t0) {
|
|
13
|
+
const $ = c(8);
|
|
14
|
+
let className;
|
|
15
|
+
let props;
|
|
16
|
+
if ($[0] !== t0) {
|
|
17
|
+
({className, ...props} = t0);
|
|
18
|
+
$[0] = t0;
|
|
19
|
+
$[1] = className;
|
|
20
|
+
$[2] = props;
|
|
21
|
+
} else {
|
|
22
|
+
className = $[1];
|
|
23
|
+
props = $[2];
|
|
24
|
+
}
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[3] !== className) {
|
|
27
|
+
t1 = cnState("flex w-60 flex-col gap-3", className);
|
|
28
|
+
$[3] = className;
|
|
29
|
+
$[4] = t1;
|
|
30
|
+
} else t1 = $[4];
|
|
31
|
+
let t2;
|
|
32
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
33
|
+
t2 = /* @__PURE__ */ jsx(ColorPicker$1, {
|
|
34
|
+
className: t1,
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
$[5] = props;
|
|
38
|
+
$[6] = t1;
|
|
39
|
+
$[7] = t2;
|
|
40
|
+
} else t2 = $[7];
|
|
41
|
+
return t2;
|
|
42
|
+
}
|
|
43
|
+
function ColorPickerArea(t0) {
|
|
44
|
+
const $ = c(8);
|
|
45
|
+
let className;
|
|
46
|
+
let props;
|
|
47
|
+
if ($[0] !== t0) {
|
|
48
|
+
({className, ...props} = t0);
|
|
49
|
+
$[0] = t0;
|
|
50
|
+
$[1] = className;
|
|
51
|
+
$[2] = props;
|
|
52
|
+
} else {
|
|
53
|
+
className = $[1];
|
|
54
|
+
props = $[2];
|
|
55
|
+
}
|
|
56
|
+
let t1;
|
|
57
|
+
if ($[3] !== className) {
|
|
58
|
+
t1 = cnState("relative h-40 w-full touch-none rounded-xl border border-input [background:var(--color-area-background)] data-disabled:opacity-50", className);
|
|
59
|
+
$[3] = className;
|
|
60
|
+
$[4] = t1;
|
|
61
|
+
} else t1 = $[4];
|
|
62
|
+
let t2;
|
|
63
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
64
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerArea$1, {
|
|
65
|
+
className: t1,
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
$[5] = props;
|
|
69
|
+
$[6] = t1;
|
|
70
|
+
$[7] = t2;
|
|
71
|
+
} else t2 = $[7];
|
|
72
|
+
return t2;
|
|
73
|
+
}
|
|
74
|
+
function ColorPickerAreaCanvas(t0) {
|
|
75
|
+
const $ = c(8);
|
|
76
|
+
let className;
|
|
77
|
+
let props;
|
|
78
|
+
if ($[0] !== t0) {
|
|
79
|
+
({className, ...props} = t0);
|
|
80
|
+
$[0] = t0;
|
|
81
|
+
$[1] = className;
|
|
82
|
+
$[2] = props;
|
|
83
|
+
} else {
|
|
84
|
+
className = $[1];
|
|
85
|
+
props = $[2];
|
|
86
|
+
}
|
|
87
|
+
let t1;
|
|
88
|
+
if ($[3] !== className) {
|
|
89
|
+
t1 = cnState("absolute inset-0 size-full rounded-[inherit]", className);
|
|
90
|
+
$[3] = className;
|
|
91
|
+
$[4] = t1;
|
|
92
|
+
} else t1 = $[4];
|
|
93
|
+
let t2;
|
|
94
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
95
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerAreaCanvas$1, {
|
|
96
|
+
className: t1,
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
$[5] = props;
|
|
100
|
+
$[6] = t1;
|
|
101
|
+
$[7] = t2;
|
|
102
|
+
} else t2 = $[7];
|
|
103
|
+
return t2;
|
|
104
|
+
}
|
|
105
|
+
function ColorPickerAreaThumb(t0) {
|
|
106
|
+
const $ = c(8);
|
|
107
|
+
let className;
|
|
108
|
+
let props;
|
|
109
|
+
if ($[0] !== t0) {
|
|
110
|
+
({className, ...props} = t0);
|
|
111
|
+
$[0] = t0;
|
|
112
|
+
$[1] = className;
|
|
113
|
+
$[2] = props;
|
|
114
|
+
} else {
|
|
115
|
+
className = $[1];
|
|
116
|
+
props = $[2];
|
|
117
|
+
}
|
|
118
|
+
let t1;
|
|
119
|
+
if ($[3] !== className) {
|
|
120
|
+
t1 = cnState(thumbClasses, className);
|
|
121
|
+
$[3] = className;
|
|
122
|
+
$[4] = t1;
|
|
123
|
+
} else t1 = $[4];
|
|
124
|
+
let t2;
|
|
125
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
126
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerAreaThumb$1, {
|
|
127
|
+
className: t1,
|
|
128
|
+
...props
|
|
129
|
+
});
|
|
130
|
+
$[5] = props;
|
|
131
|
+
$[6] = t1;
|
|
132
|
+
$[7] = t2;
|
|
133
|
+
} else t2 = $[7];
|
|
134
|
+
return t2;
|
|
135
|
+
}
|
|
136
|
+
function ColorPickerSlider(t0) {
|
|
137
|
+
const $ = c(8);
|
|
138
|
+
let className;
|
|
139
|
+
let props;
|
|
140
|
+
if ($[0] !== t0) {
|
|
141
|
+
({className, ...props} = t0);
|
|
142
|
+
$[0] = t0;
|
|
143
|
+
$[1] = className;
|
|
144
|
+
$[2] = props;
|
|
145
|
+
} else {
|
|
146
|
+
className = $[1];
|
|
147
|
+
props = $[2];
|
|
148
|
+
}
|
|
149
|
+
let t1;
|
|
150
|
+
if ($[3] !== className) {
|
|
151
|
+
t1 = cnState(["relative touch-none rounded-full border border-input data-disabled:opacity-50 data-[orientation=horizontal]:h-3 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-40 data-[orientation=vertical]:w-3", sliderBackground], className);
|
|
152
|
+
$[3] = className;
|
|
153
|
+
$[4] = t1;
|
|
154
|
+
} else t1 = $[4];
|
|
155
|
+
let t2;
|
|
156
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
157
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerSlider$1, {
|
|
158
|
+
className: t1,
|
|
159
|
+
...props
|
|
160
|
+
});
|
|
161
|
+
$[5] = props;
|
|
162
|
+
$[6] = t1;
|
|
163
|
+
$[7] = t2;
|
|
164
|
+
} else t2 = $[7];
|
|
165
|
+
return t2;
|
|
166
|
+
}
|
|
167
|
+
function ColorPickerSliderThumb(t0) {
|
|
168
|
+
const $ = c(8);
|
|
169
|
+
let className;
|
|
170
|
+
let props;
|
|
171
|
+
if ($[0] !== t0) {
|
|
172
|
+
({className, ...props} = t0);
|
|
173
|
+
$[0] = t0;
|
|
174
|
+
$[1] = className;
|
|
175
|
+
$[2] = props;
|
|
176
|
+
} else {
|
|
177
|
+
className = $[1];
|
|
178
|
+
props = $[2];
|
|
179
|
+
}
|
|
180
|
+
let t1;
|
|
181
|
+
if ($[3] !== className) {
|
|
182
|
+
t1 = cnState([thumbClasses, "data-[orientation=horizontal]:top-1/2 data-[orientation=vertical]:left-1/2 data-[orientation=vertical]:translate-y-1/2"], className);
|
|
183
|
+
$[3] = className;
|
|
184
|
+
$[4] = t1;
|
|
185
|
+
} else t1 = $[4];
|
|
186
|
+
let t2;
|
|
187
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
188
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerSliderThumb$1, {
|
|
189
|
+
className: t1,
|
|
190
|
+
...props
|
|
191
|
+
});
|
|
192
|
+
$[5] = props;
|
|
193
|
+
$[6] = t1;
|
|
194
|
+
$[7] = t2;
|
|
195
|
+
} else t2 = $[7];
|
|
196
|
+
return t2;
|
|
197
|
+
}
|
|
198
|
+
function ColorPickerSwatch(t0) {
|
|
199
|
+
const $ = c(8);
|
|
200
|
+
let className;
|
|
201
|
+
let props;
|
|
202
|
+
if ($[0] !== t0) {
|
|
203
|
+
({className, ...props} = t0);
|
|
204
|
+
$[0] = t0;
|
|
205
|
+
$[1] = className;
|
|
206
|
+
$[2] = props;
|
|
207
|
+
} else {
|
|
208
|
+
className = $[1];
|
|
209
|
+
props = $[2];
|
|
210
|
+
}
|
|
211
|
+
let t1;
|
|
212
|
+
if ($[3] !== className) {
|
|
213
|
+
t1 = cnState(["size-9 shrink-0 rounded-full border border-input data-disabled:opacity-50", colorBackground], className);
|
|
214
|
+
$[3] = className;
|
|
215
|
+
$[4] = t1;
|
|
216
|
+
} else t1 = $[4];
|
|
217
|
+
let t2;
|
|
218
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
219
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerSwatch$1, {
|
|
220
|
+
className: t1,
|
|
221
|
+
...props
|
|
222
|
+
});
|
|
223
|
+
$[5] = props;
|
|
224
|
+
$[6] = t1;
|
|
225
|
+
$[7] = t2;
|
|
226
|
+
} else t2 = $[7];
|
|
227
|
+
return t2;
|
|
228
|
+
}
|
|
229
|
+
function ColorPickerInput(t0) {
|
|
230
|
+
const $ = c(8);
|
|
231
|
+
let className;
|
|
232
|
+
let props;
|
|
233
|
+
if ($[0] !== t0) {
|
|
234
|
+
({className, ...props} = t0);
|
|
235
|
+
$[0] = t0;
|
|
236
|
+
$[1] = className;
|
|
237
|
+
$[2] = props;
|
|
238
|
+
} else {
|
|
239
|
+
className = $[1];
|
|
240
|
+
props = $[2];
|
|
241
|
+
}
|
|
242
|
+
let t1;
|
|
243
|
+
if ($[3] !== className) {
|
|
244
|
+
t1 = cnState(inputClasses, className);
|
|
245
|
+
$[3] = className;
|
|
246
|
+
$[4] = t1;
|
|
247
|
+
} else t1 = $[4];
|
|
248
|
+
let t2;
|
|
249
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
250
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerInput$1, {
|
|
251
|
+
className: t1,
|
|
252
|
+
...props
|
|
253
|
+
});
|
|
254
|
+
$[5] = props;
|
|
255
|
+
$[6] = t1;
|
|
256
|
+
$[7] = t2;
|
|
257
|
+
} else t2 = $[7];
|
|
258
|
+
return t2;
|
|
259
|
+
}
|
|
260
|
+
function ColorPickerChannelInput(t0) {
|
|
261
|
+
const $ = c(8);
|
|
262
|
+
let className;
|
|
263
|
+
let props;
|
|
264
|
+
if ($[0] !== t0) {
|
|
265
|
+
({className, ...props} = t0);
|
|
266
|
+
$[0] = t0;
|
|
267
|
+
$[1] = className;
|
|
268
|
+
$[2] = props;
|
|
269
|
+
} else {
|
|
270
|
+
className = $[1];
|
|
271
|
+
props = $[2];
|
|
272
|
+
}
|
|
273
|
+
let t1;
|
|
274
|
+
if ($[3] !== className) {
|
|
275
|
+
t1 = cnState(inputClasses, className);
|
|
276
|
+
$[3] = className;
|
|
277
|
+
$[4] = t1;
|
|
278
|
+
} else t1 = $[4];
|
|
279
|
+
let t2;
|
|
280
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
281
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerChannelInput$1, {
|
|
282
|
+
className: t1,
|
|
283
|
+
...props
|
|
284
|
+
});
|
|
285
|
+
$[5] = props;
|
|
286
|
+
$[6] = t1;
|
|
287
|
+
$[7] = t2;
|
|
288
|
+
} else t2 = $[7];
|
|
289
|
+
return t2;
|
|
290
|
+
}
|
|
291
|
+
function ColorPickerEyeDropper(t0) {
|
|
292
|
+
const $ = c(12);
|
|
293
|
+
let className;
|
|
294
|
+
let props;
|
|
295
|
+
let size;
|
|
296
|
+
let variant;
|
|
297
|
+
if ($[0] !== t0) {
|
|
298
|
+
({variant, size, className, ...props} = t0);
|
|
299
|
+
$[0] = t0;
|
|
300
|
+
$[1] = className;
|
|
301
|
+
$[2] = props;
|
|
302
|
+
$[3] = size;
|
|
303
|
+
$[4] = variant;
|
|
304
|
+
} else {
|
|
305
|
+
className = $[1];
|
|
306
|
+
props = $[2];
|
|
307
|
+
size = $[3];
|
|
308
|
+
variant = $[4];
|
|
309
|
+
}
|
|
310
|
+
let t1;
|
|
311
|
+
if ($[5] !== className || $[6] !== size || $[7] !== variant) {
|
|
312
|
+
t1 = cnState([buttonLook({
|
|
313
|
+
variant,
|
|
314
|
+
size
|
|
315
|
+
}), "shrink-0 data-unsupported:hidden"], className);
|
|
316
|
+
$[5] = className;
|
|
317
|
+
$[6] = size;
|
|
318
|
+
$[7] = variant;
|
|
319
|
+
$[8] = t1;
|
|
320
|
+
} else t1 = $[8];
|
|
321
|
+
let t2;
|
|
322
|
+
if ($[9] !== props || $[10] !== t1) {
|
|
323
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerEyeDropper$1, {
|
|
324
|
+
className: t1,
|
|
325
|
+
...props
|
|
326
|
+
});
|
|
327
|
+
$[9] = props;
|
|
328
|
+
$[10] = t1;
|
|
329
|
+
$[11] = t2;
|
|
330
|
+
} else t2 = $[11];
|
|
331
|
+
return t2;
|
|
332
|
+
}
|
|
333
|
+
function ColorPickerSwatches(t0) {
|
|
334
|
+
const $ = c(8);
|
|
335
|
+
let className;
|
|
336
|
+
let props;
|
|
337
|
+
if ($[0] !== t0) {
|
|
338
|
+
({className, ...props} = t0);
|
|
339
|
+
$[0] = t0;
|
|
340
|
+
$[1] = className;
|
|
341
|
+
$[2] = props;
|
|
342
|
+
} else {
|
|
343
|
+
className = $[1];
|
|
344
|
+
props = $[2];
|
|
345
|
+
}
|
|
346
|
+
let t1;
|
|
347
|
+
if ($[3] !== className) {
|
|
348
|
+
t1 = cnState("flex flex-wrap gap-2", className);
|
|
349
|
+
$[3] = className;
|
|
350
|
+
$[4] = t1;
|
|
351
|
+
} else t1 = $[4];
|
|
352
|
+
let t2;
|
|
353
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
354
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerSwatches$1, {
|
|
355
|
+
className: t1,
|
|
356
|
+
...props
|
|
357
|
+
});
|
|
358
|
+
$[5] = props;
|
|
359
|
+
$[6] = t1;
|
|
360
|
+
$[7] = t2;
|
|
361
|
+
} else t2 = $[7];
|
|
362
|
+
return t2;
|
|
363
|
+
}
|
|
364
|
+
function ColorPickerSwatchItem(t0) {
|
|
365
|
+
const $ = c(8);
|
|
366
|
+
let className;
|
|
367
|
+
let props;
|
|
368
|
+
if ($[0] !== t0) {
|
|
369
|
+
({className, ...props} = t0);
|
|
370
|
+
$[0] = t0;
|
|
371
|
+
$[1] = className;
|
|
372
|
+
$[2] = props;
|
|
373
|
+
} else {
|
|
374
|
+
className = $[1];
|
|
375
|
+
props = $[2];
|
|
376
|
+
}
|
|
377
|
+
let t1;
|
|
378
|
+
if ($[3] !== className) {
|
|
379
|
+
t1 = cnState(["size-6 rounded-full border border-input focus-ring data-disabled:pointer-events-none data-disabled:opacity-50 data-selected:ring-2 data-selected:ring-brand data-selected:ring-offset-2 data-selected:ring-offset-background", colorBackground], className);
|
|
380
|
+
$[3] = className;
|
|
381
|
+
$[4] = t1;
|
|
382
|
+
} else t1 = $[4];
|
|
383
|
+
let t2;
|
|
384
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
385
|
+
t2 = /* @__PURE__ */ jsx(ColorPickerSwatchItem$1, {
|
|
386
|
+
className: t1,
|
|
387
|
+
...props
|
|
388
|
+
});
|
|
389
|
+
$[5] = props;
|
|
390
|
+
$[6] = t1;
|
|
391
|
+
$[7] = t2;
|
|
392
|
+
} else t2 = $[7];
|
|
393
|
+
return t2;
|
|
394
|
+
}
|
|
395
|
+
export { ColorPicker, ColorPickerArea, ColorPickerAreaCanvas, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerEyeDropper, ColorPickerInput, ColorPickerSlider, ColorPickerSliderThumb, ColorPickerSwatch, ColorPickerSwatchItem, ColorPickerSwatches, createColorPickerController };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ButtonLook } from "../button/button.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ComboboxArrow as ComboboxArrow$1, ComboboxChip as ComboboxChip$1, ComboboxChipRemove as ComboboxChipRemove$1, ComboboxChips as ComboboxChips$1, ComboboxChipsOverflow as ComboboxChipsOverflow$1, ComboboxClear as ComboboxClear$1, ComboboxContent as ComboboxContent$1, ComboboxController, ComboboxCreate as ComboboxCreate$1, ComboboxEmpty as ComboboxEmpty$1, ComboboxGroup as ComboboxGroup$1, ComboboxGroupLabel as ComboboxGroupLabel$1, ComboboxInput as ComboboxInput$1, ComboboxItem as ComboboxItem$1, ComboboxItemIcon as ComboboxItemIcon$1, ComboboxItemIndicator as ComboboxItemIndicator$1, ComboboxItemText as ComboboxItemText$1, ComboboxLabel as ComboboxLabel$1, ComboboxList as ComboboxList$1, ComboboxProps, ComboboxSelectAll as ComboboxSelectAll$1, ComboboxSeparator as ComboboxSeparator$1, ComboboxStatus as ComboboxStatus$1, ComboboxTrigger as ComboboxTrigger$1, ComboboxValue, ComboboxValueIcon as ComboboxValueIcon$1, ListData, ListFilter, createComboboxController } from "@ui-sdk/react/combobox";
|
|
4
|
+
declare function Combobox<T = string, Multiple extends boolean | undefined = false>(props: ComboboxProps<T, Multiple>): import("react").JSX.Element;
|
|
5
|
+
declare function ComboboxLabel({ className, ...props }: ComponentProps<typeof ComboboxLabel$1>): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* Looks like abby's `Input`. Put it in a row with `ComboboxClear` and
|
|
8
|
+
* `ComboboxTrigger`, or inside `ComboboxChips` with `multiple`.
|
|
9
|
+
*/
|
|
10
|
+
declare function ComboboxInput({ className, ...props }: ComponentProps<typeof ComboboxInput$1>): import("react").JSX.Element;
|
|
11
|
+
type ComboboxTriggerProps = ComponentProps<typeof ComboboxTrigger$1> & ButtonLook;
|
|
12
|
+
/**
|
|
13
|
+
* An outline icon button with a chevron. Name it with `aria-label`. With
|
|
14
|
+
* children it shows only those, like a `ComboboxValue` when the input lives
|
|
15
|
+
* in the popup: give it a `size` to fit them.
|
|
16
|
+
*/
|
|
17
|
+
declare function ComboboxTrigger({ variant, size, className, children, ...props }: ComboboxTriggerProps): import("react").JSX.Element;
|
|
18
|
+
type ComboboxClearProps = ComponentProps<typeof ComboboxClear$1> & ButtonLook;
|
|
19
|
+
/** A ghost icon button with a cross. Name it with `aria-label`. */
|
|
20
|
+
declare function ComboboxClear({ variant, size, className, children, ...props }: ComboboxClearProps): import("react").JSX.Element;
|
|
21
|
+
/** The box around the chips and the input of a `multiple` combobox. Looks like abby's `Input`. */
|
|
22
|
+
declare function ComboboxChips({ className, ...props }: ComponentProps<typeof ComboboxChips$1>): import("react").JSX.Element;
|
|
23
|
+
type ComboboxChipProps<T = string> = Parameters<typeof ComboboxChip$1<T>>[0];
|
|
24
|
+
declare function ComboboxChip<T = string>({ className, ...props }: ComboboxChipProps<T>): import("react").JSX.Element;
|
|
25
|
+
/** Removes its chip. Name it with `aria-label`. Without children it shows a cross. */
|
|
26
|
+
declare function ComboboxChipRemove({ className, children, ...props }: ComponentProps<typeof ComboboxChipRemove$1>): import("react").JSX.Element;
|
|
27
|
+
declare function ComboboxChipsOverflow({ className, ...props }: ComponentProps<typeof ComboboxChipsOverflow$1>): import("react").JSX.Element;
|
|
28
|
+
declare function ComboboxValueIcon({ className, ...props }: ComponentProps<typeof ComboboxValueIcon$1>): import("react").JSX.Element;
|
|
29
|
+
declare function ComboboxContent({ className, sideOffset, ...props }: ComponentProps<typeof ComboboxContent$1>): import("react").JSX.Element;
|
|
30
|
+
/** Without children it renders the combobox's `items` that match, each with its check. */
|
|
31
|
+
declare function ComboboxList({ className, children, ...props }: ComponentProps<typeof ComboboxList$1>): import("react").JSX.Element;
|
|
32
|
+
declare function ComboboxEmpty({ className, ...props }: ComponentProps<typeof ComboboxEmpty$1>): import("react").JSX.Element;
|
|
33
|
+
declare function ComboboxStatus({ className, ...props }: ComponentProps<typeof ComboboxStatus$1>): import("react").JSX.Element;
|
|
34
|
+
type ComboboxItemProps<T = string> = Parameters<typeof ComboboxItem$1<T>>[0];
|
|
35
|
+
declare function ComboboxItem<T = string>({ className, ...props }: ComboboxItemProps<T>): import("react").JSX.Element;
|
|
36
|
+
declare function ComboboxItemText({ className, ...props }: ComponentProps<typeof ComboboxItemText$1>): import("react").JSX.Element;
|
|
37
|
+
/** Without children it shows a check. */
|
|
38
|
+
declare const ComboboxItemIndicator: (({ className, children, ...props }: ComponentProps<typeof ComboboxItemIndicator$1>) => import("react").JSX.Element) & {
|
|
39
|
+
[x: symbol]: boolean;
|
|
40
|
+
};
|
|
41
|
+
declare const ComboboxItemIcon: (({ className, ...props }: ComponentProps<typeof ComboboxItemIcon$1>) => import("react").JSX.Element) & {
|
|
42
|
+
[x: symbol]: boolean;
|
|
43
|
+
};
|
|
44
|
+
declare function ComboboxSelectAll({ className, ...props }: ComponentProps<typeof ComboboxSelectAll$1>): import("react").JSX.Element;
|
|
45
|
+
declare function ComboboxCreate({ className, ...props }: ComponentProps<typeof ComboboxCreate$1>): import("react").JSX.Element;
|
|
46
|
+
declare function ComboboxGroup({ className, ...props }: ComponentProps<typeof ComboboxGroup$1>): import("react").JSX.Element;
|
|
47
|
+
declare function ComboboxGroupLabel({ className, ...props }: ComponentProps<typeof ComboboxGroupLabel$1>): import("react").JSX.Element;
|
|
48
|
+
declare function ComboboxSeparator({ className, ...props }: ComponentProps<typeof ComboboxSeparator$1>): import("react").JSX.Element;
|
|
49
|
+
/**
|
|
50
|
+
* Give the content a `sideOffset` that leaves room for it. The content stops
|
|
51
|
+
* clipping while it holds an arrow; the list inside still scrolls.
|
|
52
|
+
*/
|
|
53
|
+
declare function ComboboxArrow({ className, ...props }: ComponentProps<typeof ComboboxArrow$1>): import("react").JSX.Element;
|
|
54
|
+
export { Combobox, ComboboxArrow, ComboboxChip, type ComboboxChipProps, ComboboxChipRemove, ComboboxChips, ComboboxChipsOverflow, ComboboxClear, type ComboboxClearProps, ComboboxContent, type ComboboxController, ComboboxCreate, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxItemIcon, ComboboxItemIndicator, type ComboboxItemProps, ComboboxItemText, ComboboxLabel, ComboboxList, type ComboboxProps, ComboboxSelectAll, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, type ComboboxTriggerProps, ComboboxValue, ComboboxValueIcon, type ListData, type ListFilter, createComboboxController };
|