@ctrl-ui/react 0.8.2 → 0.8.5
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 +32 -23
- package/dist/action-bar.d.ts +11 -12
- package/dist/activity.d.ts +24 -25
- package/dist/audio-recorder.d.ts +16 -16
- package/dist/audio-visualizer.d.ts +3 -4
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/chat.d.ts +3 -4
- package/dist/blocks/chat.js +6 -3
- package/dist/blocks/coding-agent.d.ts +11 -12
- package/dist/blocks/coding-agent.js +10 -9
- package/dist/blocks/file-explorer-data.d.ts +11 -12
- package/dist/blocks/file-explorer.d.ts +3 -3
- package/dist/blocks/settings-data.d.ts +8 -9
- package/dist/blocks/settings.d.ts +4 -4
- package/dist/blocks/theme-toggle.d.ts +11 -12
- package/dist/blocks/theme-toggle.js +14 -4
- package/dist/chat-composer-attachment.d.ts +20 -21
- package/dist/chat-composer-attachment.js +24 -20
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
- package/dist/chat-composer-editor/extensions/mention.js +4 -0
- package/dist/chat-composer-editor/ghost.d.ts +3 -4
- package/dist/chat-composer-editor/schema.d.ts +2 -3
- package/dist/chat-composer-editor/serialize.d.ts +3 -4
- package/dist/chat-composer-editor/types.d.ts +5 -6
- package/dist/chat-composer-editor.d.ts +2 -3
- package/dist/chat-composer-editor.js +18 -4
- package/dist/chat-composer.d.ts +17 -18
- package/dist/chat-composer.js +14 -8
- package/dist/chat-layout.d.ts +17 -21
- package/dist/chat-layout.js +72 -86
- package/dist/chat-message.d.ts +19 -15
- package/dist/chat-message.js +19 -2
- package/dist/context-model.d.ts +7 -8
- package/dist/context.d.ts +21 -22
- package/dist/context.js +0 -2
- package/dist/control-props.d.ts +10 -11
- package/dist/control-variants.d.ts +6 -7
- package/dist/dynamic-notification-glass.d.ts +3 -4
- package/dist/dynamic-notification-liquid.d.ts +3 -4
- package/dist/dynamic-notification-siri-wave.d.ts +2 -3
- package/dist/dynamic-notification.d.ts +28 -29
- package/dist/email/email-brand.d.ts +60 -0
- package/dist/email/email-brand.js +101 -0
- package/dist/email/email-code.d.ts +18 -0
- package/dist/email/email-code.js +172 -0
- package/dist/email/email-footer.d.ts +63 -0
- package/dist/email/email-footer.js +98 -0
- package/dist/email/email.d.ts +62 -14
- package/dist/email/email.js +155 -24
- package/dist/email/length.d.ts +2 -3
- package/dist/email/templates.d.ts +56 -12
- package/dist/email/templates.js +314 -116
- package/dist/email/theme.d.ts +15 -8
- package/dist/email/theme.js +30 -8
- package/dist/environment-variables.d.ts +35 -36
- package/dist/extensions/create-track-highlight.d.ts +3 -4
- package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
- package/dist/extensions/track-highlight.d.ts +3 -4
- package/dist/hooks/use-audio-recorder.d.ts +14 -15
- package/dist/hooks/use-chat-composer.d.ts +5 -6
- package/dist/hooks/use-chat-message.d.ts +8 -8
- package/dist/hooks/use-chat-message.js +1 -0
- package/dist/hooks/use-chat-thread-scroll.d.ts +8 -0
- package/dist/hooks/use-chat-thread-scroll.js +66 -0
- package/dist/hooks/use-color-area.d.ts +5 -6
- package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
- package/dist/hooks/use-dropzone.d.ts +11 -12
- package/dist/hooks/use-dynamic-notification.d.ts +6 -7
- package/dist/hooks/use-environment-variables.d.ts +9 -10
- package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
- package/dist/hooks/use-keyboard-navigation.js +22 -0
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
- package/dist/hooks/use-trigger-menu.d.ts +7 -8
- package/dist/hooks/use-user-ask.d.ts +11 -10
- package/dist/hooks/use-user-ask.js +56 -17
- package/dist/inline-attachment.d.ts +16 -17
- package/dist/inline-attachment.js +1 -1
- package/dist/inline-citation.d.ts +22 -23
- package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
- package/dist/knob-contracts/accordion-knobs.js +1 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
- package/dist/knob-contracts/action-bar-knobs.js +1 -1
- package/dist/knob-contracts/activity-knobs.d.ts +3 -4
- package/dist/knob-contracts/activity-knobs.js +2 -1
- package/dist/knob-contracts/alert-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.js +12 -1
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.js +1 -0
- package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.js +2 -1
- package/dist/knob-contracts/badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
- package/dist/knob-contracts/card-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +5 -1
- package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-knobs.js +2 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-layout-knobs.js +2 -2
- package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-message-knobs.js +3 -1
- package/dist/knob-contracts/choice-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.js +2 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-diff-knobs.js +1 -0
- package/dist/knob-contracts/code-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-knobs.js +3 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
- package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.js +3 -0
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
- package/dist/knob-contracts/dropzone-knobs.js +1 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.js +14 -1
- package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
- package/dist/knob-contracts/environment-variables-knobs.js +2 -1
- package/dist/knob-contracts/field-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.js +6 -1
- package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-citation-knobs.js +4 -1
- package/dist/knob-contracts/item-knobs.d.ts +3 -4
- package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.js +2 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-knobs.js +1 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/page-layout-knobs.d.ts +4 -0
- package/dist/knob-contracts/page-layout-knobs.js +15 -0
- package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.js +1 -0
- package/dist/knob-contracts/popup-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
- package/dist/knob-contracts/range-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
- package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
- package/dist/knob-contracts/separator-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.js +1 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
- package/dist/knob-contracts/skeleton-knobs.js +9 -1
- package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.js +1 -0
- package/dist/knob-contracts/switch-knobs.d.ts +3 -4
- package/dist/knob-contracts/switch-knobs.js +7 -1
- package/dist/knob-contracts/table-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
- package/dist/knob-contracts/tabs-knobs.js +2 -1
- package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
- package/dist/knob-contracts/task-list-knobs.js +5 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
- package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.js +1 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
- package/dist/knob-contracts/tree-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.js +5 -0
- package/dist/lib/cn.d.ts +2 -3
- package/dist/lib/code-tokens.d.ts +12 -13
- package/dist/lib/color.d.ts +26 -27
- package/dist/lib/contrast.d.ts +12 -13
- package/dist/lib/diff.d.ts +14 -15
- package/dist/lib/dropzone-validation.d.ts +25 -26
- package/dist/lib/env-file.d.ts +12 -13
- package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
- package/dist/lib/liquid-glass-optics.d.ts +2 -3
- package/dist/lib/phone-input-format.d.ts +3 -4
- package/dist/lib/phone-number.d.ts +8 -9
- package/dist/lib/trigger-detect.d.ts +4 -5
- package/dist/markdown-block.d.ts +11 -12
- package/dist/markdown-block.js +1 -1
- package/dist/scripts/contrast-eval.d.ts +16 -17
- package/dist/scripts/contrast-eval.js +13 -7
- package/dist/skin-provider.d.ts +14 -0
- package/dist/skin-provider.js +21 -0
- package/dist/skin.d.ts +14 -33
- package/dist/skin.js +3 -46
- package/dist/source-badge.d.ts +7 -8
- package/dist/styles/index.css +3 -5
- package/dist/styles/recipes/accordion.css +8 -2
- package/dist/styles/recipes/action-bar.css +40 -5
- package/dist/styles/recipes/activity.css +36 -3
- package/dist/styles/recipes/alert.css +97 -16
- package/dist/styles/recipes/audio-visualizer.css +8 -1
- package/dist/styles/recipes/avatar.css +17 -1
- package/dist/styles/recipes/badge.css +0 -1
- package/dist/styles/recipes/button-group.css +8 -0
- package/dist/styles/recipes/button.css +49 -8
- package/dist/styles/recipes/calendar.css +21 -6
- package/dist/styles/recipes/card.css +2 -0
- package/dist/styles/recipes/chat-composer-attachment.css +83 -54
- package/dist/styles/recipes/chat-composer.css +41 -22
- package/dist/styles/recipes/chat-layout.css +37 -54
- package/dist/styles/recipes/chat-message.css +78 -5
- package/dist/styles/recipes/choice.css +21 -2
- package/dist/styles/recipes/code-diff.css +9 -1
- package/dist/styles/recipes/code.css +64 -17
- package/dist/styles/recipes/collapsible.css +0 -3
- package/dist/styles/recipes/color-picker-details.css +1 -2
- package/dist/styles/recipes/color-picker-values.css +0 -4
- package/dist/styles/recipes/context.css +30 -18
- package/dist/styles/recipes/dockable-panel.css +8 -1
- package/dist/styles/recipes/dropzone.css +9 -2
- package/dist/styles/recipes/dynamic-notification-input.css +6 -0
- package/dist/styles/recipes/dynamic-notification.css +1 -0
- package/dist/styles/recipes/empty.css +118 -17
- package/dist/styles/recipes/environment-variables.css +9 -1
- package/dist/styles/recipes/field-parts.css +3 -6
- package/dist/styles/recipes/field.css +15 -5
- package/dist/styles/recipes/gradient-editor.css +33 -5
- package/dist/styles/recipes/inline-attachment.css +68 -20
- package/dist/styles/recipes/inline-citation.css +52 -10
- package/dist/styles/recipes/item.css +4 -2
- package/dist/styles/recipes/kbd.css +8 -0
- package/dist/styles/recipes/markdown-block.css +17 -2
- package/dist/styles/recipes/markdown.css +19 -0
- package/dist/styles/recipes/morphing-panel.css +1 -1
- package/dist/styles/recipes/page-layout.css +203 -0
- package/dist/styles/recipes/pagination.css +16 -4
- package/dist/styles/recipes/phone-input.css +8 -4
- package/dist/styles/recipes/popup-drawer.css +3 -1
- package/dist/styles/recipes/popup-lists.css +11 -0
- package/dist/styles/recipes/popup-toast.css +3 -29
- package/dist/styles/recipes/popup.css +10 -14
- package/dist/styles/recipes/progressive-blur.css +28 -7
- package/dist/styles/recipes/range.css +74 -3
- package/dist/styles/recipes/resizable.css +8 -10
- package/dist/styles/recipes/rich-tooltip.css +1 -4
- package/dist/styles/recipes/scroll-area.css +8 -2
- package/dist/styles/recipes/sidebar-menu.css +0 -6
- package/dist/styles/recipes/sidebar.css +56 -17
- package/dist/styles/recipes/skeleton.css +85 -3
- package/dist/styles/recipes/source-badge.css +20 -3
- package/dist/styles/recipes/stepper.css +8 -1
- package/dist/styles/recipes/switch.css +89 -17
- package/dist/styles/recipes/table-of-contents.css +211 -45
- package/dist/styles/recipes/table.css +0 -1
- package/dist/styles/recipes/tabs.css +35 -2
- package/dist/styles/recipes/task-list.css +68 -9
- package/dist/styles/recipes/thread-rail.css +19 -17
- package/dist/styles/recipes/toolbar.css +39 -4
- package/dist/styles/recipes/track-highlight.css +63 -5
- package/dist/styles/recipes/transcript-divider.css +1 -0
- package/dist/styles/recipes/tree.css +2 -0
- package/dist/styles/recipes/user-ask.css +65 -18
- package/dist/styles/theme.css +164 -138
- package/dist/surface-variants.d.ts +4 -5
- package/dist/task-list.d.ts +16 -17
- package/dist/thread-rail.d.ts +21 -22
- package/dist/thread-rail.js +1 -1
- package/dist/transcript-divider.d.ts +6 -7
- package/dist/ui/accordion.d.ts +10 -11
- package/dist/ui/alert-dialog.d.ts +11 -12
- package/dist/ui/alert-dialog.js +9 -7
- package/dist/ui/alert.d.ts +9 -10
- package/dist/ui/alert.js +3 -3
- package/dist/ui/aspect-ratio.d.ts +3 -4
- package/dist/ui/autocomplete.d.ts +19 -20
- package/dist/ui/autocomplete.js +6 -4
- package/dist/ui/avatar.d.ts +9 -10
- package/dist/ui/badge.d.ts +9 -10
- package/dist/ui/button-group.d.ts +7 -8
- package/dist/ui/button-group.js +3 -2
- package/dist/ui/button.d.ts +17 -18
- package/dist/ui/button.js +20 -5
- package/dist/ui/calendar.d.ts +3 -4
- package/dist/ui/card.d.ts +16 -17
- package/dist/ui/checkbox-group.d.ts +4 -5
- package/dist/ui/checkbox-group.js +3 -2
- package/dist/ui/checkbox.d.ts +3 -4
- package/dist/ui/code-diff.d.ts +8 -9
- package/dist/ui/code.d.ts +32 -23
- package/dist/ui/code.js +41 -20
- package/dist/ui/collapsible.d.ts +7 -8
- package/dist/ui/color-picker.d.ts +40 -41
- package/dist/ui/color-picker.js +8 -6
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +19 -20
- package/dist/ui/combobox.js +6 -4
- package/dist/ui/command.d.ts +22 -19
- package/dist/ui/command.js +63 -13
- package/dist/ui/context-menu.d.ts +30 -31
- package/dist/ui/context-menu.js +10 -7
- package/dist/ui/dialog.d.ts +13 -13
- package/dist/ui/dialog.js +11 -9
- package/dist/ui/dockable-panel-geometry.d.ts +7 -8
- package/dist/ui/dockable-panel.d.ts +21 -22
- package/dist/ui/drawer.d.ts +17 -18
- package/dist/ui/drawer.js +9 -8
- package/dist/ui/dropdown-menu.d.ts +32 -33
- package/dist/ui/dropdown-menu.js +6 -4
- package/dist/ui/dropzone.d.ts +24 -24
- package/dist/ui/dropzone.js +4 -1
- package/dist/ui/empty.d.ts +14 -14
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.d.ts +26 -27
- package/dist/ui/form.d.ts +4 -5
- package/dist/ui/gradient-editor.d.ts +16 -17
- package/dist/ui/gradient-editor.js +2 -2
- package/dist/ui/hover-card.d.ts +6 -7
- package/dist/ui/hover-card.js +6 -4
- package/dist/ui/infinite-canvas.d.ts +11 -12
- package/dist/ui/infinite-canvas.js +1 -0
- package/dist/ui/input-group.d.ts +6 -7
- package/dist/ui/input-otp.d.ts +7 -8
- package/dist/ui/input.d.ts +3 -4
- package/dist/ui/item.d.ts +20 -21
- package/dist/ui/kbd.d.ts +7 -5
- package/dist/ui/kbd.js +4 -2
- package/dist/ui/markdown-elements.d.ts +20 -21
- package/dist/ui/markdown.d.ts +5 -6
- package/dist/ui/menubar.d.ts +25 -26
- package/dist/ui/menubar.js +10 -7
- package/dist/ui/meter.d.ts +11 -12
- package/dist/ui/morphing-panel.d.ts +8 -9
- package/dist/ui/native-select.d.ts +3 -4
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/navigation-menu.d.ts +17 -18
- package/dist/ui/navigation-menu.js +6 -4
- package/dist/ui/number-field.d.ts +15 -16
- package/dist/ui/number-field.js +1 -1
- package/dist/ui/page-layout.d.ts +44 -0
- package/dist/ui/page-layout.js +108 -0
- package/dist/ui/pagination.d.ts +10 -11
- package/dist/ui/phone-input.d.ts +5 -6
- package/dist/ui/phone-input.js +39 -36
- package/dist/ui/popover.d.ts +11 -12
- package/dist/ui/popover.js +6 -4
- package/dist/ui/progress.d.ts +11 -12
- package/dist/ui/progressive-blur.d.ts +4 -5
- package/dist/ui/radio-group.d.ts +5 -6
- package/dist/ui/resizable.d.ts +12 -13
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/responsive-dialog.d.ts +11 -12
- package/dist/ui/rich-tooltip-tour.d.ts +5 -6
- package/dist/ui/rich-tooltip.d.ts +21 -23
- package/dist/ui/rich-tooltip.js +6 -6
- package/dist/ui/scroll-area.d.ts +7 -8
- package/dist/ui/scroll-area.js +9 -6
- package/dist/ui/select.d.ts +21 -14
- package/dist/ui/select.js +8 -5
- package/dist/ui/separator.d.ts +2 -3
- package/dist/ui/sheet.d.ts +8 -9
- package/dist/ui/sheet.js +9 -7
- package/dist/ui/sidebar-menu.d.ts +18 -19
- package/dist/ui/sidebar-menu.js +4 -3
- package/dist/ui/sidebar-provider.d.ts +32 -7
- package/dist/ui/sidebar-provider.js +82 -22
- package/dist/ui/sidebar-resize-rail.d.ts +8 -0
- package/dist/ui/sidebar-resize-rail.js +192 -0
- package/dist/ui/sidebar.d.ts +19 -13
- package/dist/ui/sidebar.js +120 -55
- package/dist/ui/skeleton.d.ts +7 -4
- package/dist/ui/skeleton.js +9 -2
- package/dist/ui/slider.d.ts +6 -5
- package/dist/ui/slider.js +16 -13
- package/dist/ui/spinner.d.ts +3 -4
- package/dist/ui/stepper.d.ts +22 -23
- package/dist/ui/switch.d.ts +3 -4
- package/dist/ui/switch.js +12 -1
- package/dist/ui/table-of-contents.d.ts +7 -8
- package/dist/ui/table-of-contents.js +4 -2
- package/dist/ui/table.d.ts +17 -18
- package/dist/ui/tabs.d.ts +14 -11
- package/dist/ui/textarea.d.ts +3 -4
- package/dist/ui/timeline.d.ts +18 -19
- package/dist/ui/toast.d.ts +9 -9
- package/dist/ui/toast.js +23 -16
- package/dist/ui/toggle.d.ts +5 -6
- package/dist/ui/toggle.js +3 -2
- package/dist/ui/toolbar.d.ts +15 -16
- package/dist/ui/toolbar.js +15 -4
- package/dist/ui/tooltip.d.ts +6 -13
- package/dist/ui/tooltip.js +8 -9
- package/dist/ui/tree.d.ts +18 -19
- package/dist/ui/tree.js +3 -2
- package/dist/ui/trigger-menu.d.ts +15 -16
- package/dist/ui/trigger-menu.js +6 -4
- package/dist/ui/use-switch-drag.d.ts +7 -0
- package/dist/ui/use-switch-drag.js +104 -0
- package/dist/user-ask.d.ts +28 -27
- package/dist/user-ask.js +38 -13
- package/package.json +17 -16
- package/dist/code-block-editor.d.ts +0 -59
- package/dist/code-block-editor.js +0 -250
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
- package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
- package/dist/lib/code-block-shiki.d.ts +0 -9
- package/dist/lib/code-block-shiki.js +0 -6
- package/dist/skin.config.d.ts +0 -5
- package/dist/skin.config.js +0 -12
- package/dist/styles/recipes/code-block-editor.css +0 -136
- package/dist/styles/skin-theme.css +0 -137
- package/dist/styles/skin.css +0 -143
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ctrl-ui/react
|
|
2
2
|
|
|
3
|
-
Every Control UI component, block, and primitive with
|
|
3
|
+
Every Control UI component, block, and primitive with neutral defaults. The package contains no skin presets and needs no provider or skin config. Use the [registry](https://control-ui.dev/get-started) when you want to own and edit the component source.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Every Control UI component, block, and primitive with the Refined skin, as a ver
|
|
|
8
8
|
bun add @ctrl-ui/react
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires React 19 and Tailwind CSS v4. Wire the styles once in
|
|
11
|
+
Requires React 19 and Tailwind CSS v4. Wire the styles once in your global CSS:
|
|
12
12
|
|
|
13
13
|
```css
|
|
14
14
|
@import "tailwindcss";
|
|
@@ -16,45 +16,54 @@ Requires React 19 and Tailwind CSS v4. Wire the styles once in `app/globals.css`
|
|
|
16
16
|
@source "../node_modules/@ctrl-ui/react/dist";
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Stamp the skin on the root element:
|
|
20
|
-
|
|
21
|
-
```tsx
|
|
22
|
-
<html lang="en" data-skin="refined">
|
|
23
|
-
```
|
|
24
|
-
|
|
25
19
|
## Use
|
|
26
20
|
|
|
27
|
-
Import paths mirror the registry tree, so any docs example works after replacing `@/components/control-ui/` with `@ctrl-ui/react/`.
|
|
28
|
-
|
|
29
21
|
```tsx
|
|
30
|
-
import { ChatMessage } from "@ctrl-ui/react/chat-message";
|
|
31
22
|
import { Button } from "@ctrl-ui/react/ui/button";
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
`styles/index.css` imports every recipe. To ship less CSS, import the four base sheets and only the recipes you use:
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
@import "@ctrl-ui/react/styles/theme.css";
|
|
38
|
-
@import "@ctrl-ui/react/styles/effects.css";
|
|
39
|
-
@import "@ctrl-ui/react/styles/skin-theme.css";
|
|
40
|
-
@import "@ctrl-ui/react/styles/skin.css";
|
|
41
|
-
@import "@ctrl-ui/react/styles/recipes/button.css";
|
|
24
|
+
<Button>Save</Button>
|
|
42
25
|
```
|
|
43
26
|
|
|
27
|
+
Import paths mirror the registry tree. To ship less CSS, import `styles/theme.css` and only the recipes and effects your components use.
|
|
28
|
+
|
|
44
29
|
## Customize
|
|
45
30
|
|
|
46
|
-
|
|
31
|
+
Your application owns its theme. Override the library's neutral defaults in your CSS:
|
|
47
32
|
|
|
48
33
|
```css
|
|
49
|
-
|
|
50
|
-
--
|
|
34
|
+
:root {
|
|
35
|
+
--primary: oklch(0.45 0.18 260);
|
|
36
|
+
--radius: 4px;
|
|
37
|
+
}
|
|
38
|
+
.dark {
|
|
39
|
+
--primary: oklch(0.78 0.1 260);
|
|
51
40
|
}
|
|
52
41
|
```
|
|
53
42
|
|
|
43
|
+
Component knobs customize one instance:
|
|
44
|
+
|
|
54
45
|
```tsx
|
|
55
46
|
<Button style={{ "--cui-button-radius": "4px" }}>Save</Button>
|
|
56
47
|
```
|
|
57
48
|
|
|
49
|
+
For scoped themes, behavior choices, or adornments, pass your own `ControlUiSkin` to the optional provider. Define configurations containing render functions in a client module:
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
"use client";
|
|
53
|
+
|
|
54
|
+
import type { ReactNode } from "react";
|
|
55
|
+
import type { ControlUiSkin } from "@ctrl-ui/react/skin";
|
|
56
|
+
import { SkinProvider } from "@ctrl-ui/react/skin-provider";
|
|
57
|
+
|
|
58
|
+
const skin: ControlUiSkin = { id: "acme", indicators: { sidebar: "hover" } };
|
|
59
|
+
|
|
60
|
+
export function AppTheme({ children }: { children: ReactNode }) {
|
|
61
|
+
return <SkinProvider skin={skin}><div data-skin="acme">{children}</div></SkinProvider>;
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Scope the corresponding CSS to `[data-skin="acme"]`. Portalled surfaces carry the provider's id, so they receive the same theme. With no provider, portals inherit the root theme. Each provider owns its subtree; there is no global skin singleton.
|
|
66
|
+
|
|
58
67
|
## Optional peers
|
|
59
68
|
|
|
60
69
|
Install a peer only when you import the component that needs it.
|
package/dist/action-bar.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { ActionBarKnobStyle } from "./knob-contracts/action-bar-knobs.js";
|
|
|
2
2
|
import { Button } from "./ui/button.js";
|
|
3
3
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
4
4
|
//#region src/action-bar.d.ts
|
|
5
|
-
type ActionBarCopyValue = string | (() => string | Promise<string>);
|
|
6
|
-
type ActionBarContextValue = {
|
|
5
|
+
export type ActionBarCopyValue = string | (() => string | Promise<string>);
|
|
6
|
+
export type ActionBarContextValue = {
|
|
7
7
|
copyValue?: ActionBarCopyValue;
|
|
8
8
|
editValue?: ActionBarCopyValue;
|
|
9
9
|
onCopy?: (value: string) => void;
|
|
@@ -11,7 +11,7 @@ type ActionBarContextValue = {
|
|
|
11
11
|
onEdit?: (value: string) => void;
|
|
12
12
|
onEditError?: (error: unknown) => void;
|
|
13
13
|
};
|
|
14
|
-
type ActionBarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
14
|
+
export type ActionBarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
15
15
|
label?: string;
|
|
16
16
|
align?: "start" | "end";
|
|
17
17
|
context?: ActionBarContextValue;
|
|
@@ -23,22 +23,21 @@ type ActionBarProps = Omit<ComponentProps<"div">, "style"> & {
|
|
|
23
23
|
onEditError?: (error: unknown) => void;
|
|
24
24
|
style?: CSSProperties & ActionBarKnobStyle;
|
|
25
25
|
};
|
|
26
|
-
declare function ActionBar({ label, align, className, children, context, copyValue, editValue, onCopy, onCopyError, onEdit, onEditError, ...props }: ActionBarProps): import("react").JSX.Element;
|
|
27
|
-
type ActionBarItemProps = ComponentProps<typeof Button> & {
|
|
26
|
+
export declare function ActionBar({ label, align, className, children, context, copyValue, editValue, onCopy, onCopyError, onEdit, onEditError, ...props }: ActionBarProps): import("react").JSX.Element;
|
|
27
|
+
export type ActionBarItemProps = ComponentProps<typeof Button> & {
|
|
28
28
|
icon?: ReactNode;
|
|
29
29
|
};
|
|
30
|
-
declare function ActionBarItem({ icon, children, className, ...props }: ActionBarItemProps): import("react").JSX.Element;
|
|
31
|
-
type ActionBarCopyProps = Omit<ActionBarItemProps, "children"> & {
|
|
30
|
+
export declare function ActionBarItem({ icon, children, className, ...props }: ActionBarItemProps): import("react").JSX.Element;
|
|
31
|
+
export type ActionBarCopyProps = Omit<ActionBarItemProps, "children"> & {
|
|
32
32
|
value?: ActionBarCopyValue;
|
|
33
33
|
children?: ReactNode;
|
|
34
34
|
copiedChildren?: ReactNode;
|
|
35
35
|
resetDelay?: number;
|
|
36
36
|
};
|
|
37
|
-
declare function ActionBarCopy({ value, children, copiedChildren, resetDelay, disabled, onClick, ...props }: ActionBarCopyProps): import("react").JSX.Element;
|
|
38
|
-
type ActionBarEditProps = Omit<ActionBarItemProps, "children"> & {
|
|
37
|
+
export declare function ActionBarCopy({ value, children, copiedChildren, resetDelay, disabled, onClick, ...props }: ActionBarCopyProps): import("react").JSX.Element;
|
|
38
|
+
export type ActionBarEditProps = Omit<ActionBarItemProps, "children"> & {
|
|
39
39
|
value?: ActionBarCopyValue;
|
|
40
40
|
children?: ReactNode;
|
|
41
41
|
};
|
|
42
|
-
declare function ActionBarEdit({ value, children, disabled, onClick, ...props }: ActionBarEditProps): import("react").JSX.Element;
|
|
43
|
-
//#endregion
|
|
44
|
-
export { ActionBar, ActionBarContextValue, ActionBarCopy, ActionBarCopyProps, ActionBarCopyValue, ActionBarEdit, ActionBarEditProps, ActionBarItem, ActionBarItemProps, ActionBarProps };
|
|
42
|
+
export declare function ActionBarEdit({ value, children, disabled, onClick, ...props }: ActionBarEditProps): import("react").JSX.Element;
|
|
43
|
+
//#endregion
|
package/dist/activity.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { ScrollAreaProps } from "./ui/scroll-area.js";
|
|
|
4
4
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
5
5
|
import { ChevronRight } from "lucide-react";
|
|
6
6
|
//#region src/activity.d.ts
|
|
7
|
-
type ActivityState = "pending" | "running" | "success" | "error";
|
|
8
|
-
type ActivityKind = "default" | "tool" | "reasoning" | "signal";
|
|
9
|
-
type ActivityDetailFormat = "text" | "code";
|
|
10
|
-
type ActivityProps = Omit<CollapsibleProps, "children" | "style"> & {
|
|
7
|
+
export type ActivityState = "pending" | "running" | "success" | "error";
|
|
8
|
+
export type ActivityKind = "default" | "tool" | "reasoning" | "signal";
|
|
9
|
+
export type ActivityDetailFormat = "text" | "code";
|
|
10
|
+
export type ActivityProps = Omit<CollapsibleProps, "children" | "style"> & {
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
kind?: ActivityKind;
|
|
13
13
|
name?: string;
|
|
@@ -18,36 +18,35 @@ type ActivityProps = Omit<CollapsibleProps, "children" | "style"> & {
|
|
|
18
18
|
type ActivityStyleProps<Props, Style> = Omit<Props, "style"> & {
|
|
19
19
|
style?: CSSProperties & Style;
|
|
20
20
|
};
|
|
21
|
-
declare function Activity({ kind, name, state, statusLabel, className, children, ...props }: ActivityProps): import("react").JSX.Element;
|
|
22
|
-
type ActivityRowProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle>;
|
|
23
|
-
declare function ActivityRow({ className, ...props }: ActivityRowProps): import("react").JSX.Element;
|
|
24
|
-
type ActivityTriggerProps = ActivityStyleProps<ComponentProps<typeof CollapsibleTrigger>, ActivityKnobStyle> & {
|
|
21
|
+
export declare function Activity({ kind, name, state, statusLabel, className, children, ...props }: ActivityProps): import("react").JSX.Element;
|
|
22
|
+
export type ActivityRowProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle>;
|
|
23
|
+
export declare function ActivityRow({ className, ...props }: ActivityRowProps): import("react").JSX.Element;
|
|
24
|
+
export type ActivityTriggerProps = ActivityStyleProps<ComponentProps<typeof CollapsibleTrigger>, ActivityKnobStyle> & {
|
|
25
25
|
chevronProps?: ActivityStyleProps<ComponentProps<typeof ChevronRight>, ActivityKnobStyle> & {
|
|
26
26
|
"data-slot"?: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
declare function ActivityTrigger({ className, children, chevronProps, ...props }: ActivityTriggerProps): import("react").JSX.Element;
|
|
30
|
-
type ActivityIconProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
31
|
-
declare function ActivityIcon({ className, children, ...props }: ActivityIconProps): import("react").JSX.Element;
|
|
32
|
-
type ActivityTitleProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
33
|
-
declare function ActivityTitle({ className, children, ...props }: ActivityTitleProps): import("react").JSX.Element;
|
|
34
|
-
type ActivityStatusProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
35
|
-
declare function ActivityStatus({ className, children, ...props }: ActivityStatusProps): import("react").JSX.Element;
|
|
36
|
-
type ActivityContentProps = Omit<ComponentProps<typeof CollapsibleContent>, "children"> & {
|
|
29
|
+
export declare function ActivityTrigger({ className, children, chevronProps, ...props }: ActivityTriggerProps): import("react").JSX.Element;
|
|
30
|
+
export type ActivityIconProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
31
|
+
export declare function ActivityIcon({ className, children, ...props }: ActivityIconProps): import("react").JSX.Element;
|
|
32
|
+
export type ActivityTitleProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
33
|
+
export declare function ActivityTitle({ className, children, ...props }: ActivityTitleProps): import("react").JSX.Element;
|
|
34
|
+
export type ActivityStatusProps = ActivityStyleProps<ComponentProps<"span">, ActivityKnobStyle>;
|
|
35
|
+
export declare function ActivityStatus({ className, children, ...props }: ActivityStatusProps): import("react").JSX.Element;
|
|
36
|
+
export type ActivityContentProps = Omit<ComponentProps<typeof CollapsibleContent>, "children"> & {
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
maxHeight?: string | false;
|
|
39
39
|
scrollAreaProps?: Omit<ScrollAreaProps, "children" | "maxHeight">;
|
|
40
40
|
};
|
|
41
|
-
declare function ActivityContent({ className, children, maxHeight, scrollAreaProps, ...props }: ActivityContentProps): import("react").JSX.Element;
|
|
42
|
-
type ActivityDetailProps = ComponentProps<"div"> & {
|
|
41
|
+
export declare function ActivityContent({ className, children, maxHeight, scrollAreaProps, ...props }: ActivityContentProps): import("react").JSX.Element;
|
|
42
|
+
export type ActivityDetailProps = ComponentProps<"div"> & {
|
|
43
43
|
style?: CSSProperties & ActivityKnobStyle;
|
|
44
44
|
};
|
|
45
|
-
declare function ActivityDetail({ className, ...props }: ActivityDetailProps): import("react").JSX.Element;
|
|
46
|
-
type ActivityDetailLabelProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle>;
|
|
47
|
-
declare function ActivityDetailLabel({ className, ...props }: ActivityDetailLabelProps): import("react").JSX.Element;
|
|
48
|
-
type ActivityDetailContentProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle> & {
|
|
45
|
+
export declare function ActivityDetail({ className, ...props }: ActivityDetailProps): import("react").JSX.Element;
|
|
46
|
+
export type ActivityDetailLabelProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle>;
|
|
47
|
+
export declare function ActivityDetailLabel({ className, ...props }: ActivityDetailLabelProps): import("react").JSX.Element;
|
|
48
|
+
export type ActivityDetailContentProps = ActivityStyleProps<ComponentProps<"div">, ActivityKnobStyle> & {
|
|
49
49
|
format?: ActivityDetailFormat;
|
|
50
50
|
};
|
|
51
|
-
declare function ActivityDetailContent({ format, className, ...props }: ActivityDetailContentProps): import("react").JSX.Element;
|
|
52
|
-
//#endregion
|
|
53
|
-
export { Activity, ActivityContent, ActivityContentProps, ActivityDetail, ActivityDetailContent, ActivityDetailContentProps, ActivityDetailFormat, ActivityDetailLabel, ActivityDetailLabelProps, ActivityDetailProps, ActivityIcon, ActivityIconProps, ActivityKind, ActivityProps, ActivityRow, ActivityRowProps, ActivityState, ActivityStatus, ActivityStatusProps, ActivityTitle, ActivityTitleProps, ActivityTrigger, ActivityTriggerProps };
|
|
51
|
+
export declare function ActivityDetailContent({ format, className, ...props }: ActivityDetailContentProps): import("react").JSX.Element;
|
|
52
|
+
//#endregion
|
package/dist/audio-recorder.d.ts
CHANGED
|
@@ -8,25 +8,25 @@ import { CSSProperties, ComponentProps } from "react";
|
|
|
8
8
|
type AudioRecorderStyleProps<Props, Style> = Omit<Props, "style"> & {
|
|
9
9
|
style?: CSSProperties & Style;
|
|
10
10
|
};
|
|
11
|
-
declare function useAudioRecorderContext(): UseAudioRecorderResult;
|
|
12
|
-
type AudioRecorderProps = Omit<ComponentProps<"div">, "style"> & UseAudioRecorderOptions & {
|
|
11
|
+
export declare function useAudioRecorderContext(): UseAudioRecorderResult;
|
|
12
|
+
export type AudioRecorderProps = Omit<ComponentProps<"div">, "style"> & UseAudioRecorderOptions & {
|
|
13
13
|
label?: string;
|
|
14
14
|
style?: CSSProperties & AudioRecorderKnobStyle;
|
|
15
15
|
};
|
|
16
|
-
declare function AudioRecorder({ onRecordingComplete, onCancel, maxDurationMs, disabled, barCount, barDurationMs, deviceId, label, className, children, ...props }: AudioRecorderProps): import("react").JSX.Element;
|
|
17
|
-
type AudioRecorderTriggerProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
18
|
-
declare function AudioRecorderTrigger({ className, children, disabled, onClick, ...props }: AudioRecorderTriggerProps): import("react").JSX.Element;
|
|
19
|
-
type AudioRecorderVisualizerProps = AudioRecorderStyleProps<Omit<ComponentProps<"div">, "children">, AudioVisualizerKnobStyle & AudioRecorderKnobStyle> & {
|
|
16
|
+
export declare function AudioRecorder({ onRecordingComplete, onCancel, maxDurationMs, disabled, barCount, barDurationMs, deviceId, label, className, children, ...props }: AudioRecorderProps): import("react").JSX.Element;
|
|
17
|
+
export type AudioRecorderTriggerProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
18
|
+
export declare function AudioRecorderTrigger({ className, children, disabled, onClick, ...props }: AudioRecorderTriggerProps): import("react").JSX.Element;
|
|
19
|
+
export type AudioRecorderVisualizerProps = AudioRecorderStyleProps<Omit<ComponentProps<"div">, "children">, AudioVisualizerKnobStyle & AudioRecorderKnobStyle> & {
|
|
20
20
|
points?: number;
|
|
21
21
|
};
|
|
22
|
-
declare function AudioRecorderVisualizer({ points, className, ...props }: AudioRecorderVisualizerProps): import("react").JSX.Element;
|
|
23
|
-
type AudioRecorderStatusProps = AudioRecorderStyleProps<ComponentProps<"span">, AudioRecorderKnobStyle>;
|
|
24
|
-
declare function AudioRecorderStatus({ className, children, ...props }: AudioRecorderStatusProps): import("react").JSX.Element;
|
|
25
|
-
type AudioRecorderDurationProps = AudioRecorderStyleProps<ComponentProps<"span">, AudioRecorderKnobStyle>;
|
|
26
|
-
declare function AudioRecorderDuration({ className, children, ...props }: AudioRecorderDurationProps): import("react").JSX.Element;
|
|
27
|
-
type AudioRecorderCancelProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
28
|
-
declare function AudioRecorderCancel({ className, children, disabled, onClick, tabIndex, ...props }: AudioRecorderCancelProps): import("react").JSX.Element;
|
|
29
|
-
type AudioRecorderSubmitProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
30
|
-
declare function AudioRecorderSubmit({ className, children, disabled, onClick, tabIndex, ...props }: AudioRecorderSubmitProps): import("react").JSX.Element;
|
|
22
|
+
export declare function AudioRecorderVisualizer({ points, className, ...props }: AudioRecorderVisualizerProps): import("react").JSX.Element;
|
|
23
|
+
export type AudioRecorderStatusProps = AudioRecorderStyleProps<ComponentProps<"span">, AudioRecorderKnobStyle>;
|
|
24
|
+
export declare function AudioRecorderStatus({ className, children, ...props }: AudioRecorderStatusProps): import("react").JSX.Element;
|
|
25
|
+
export type AudioRecorderDurationProps = AudioRecorderStyleProps<ComponentProps<"span">, AudioRecorderKnobStyle>;
|
|
26
|
+
export declare function AudioRecorderDuration({ className, children, ...props }: AudioRecorderDurationProps): import("react").JSX.Element;
|
|
27
|
+
export type AudioRecorderCancelProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
28
|
+
export declare function AudioRecorderCancel({ className, children, disabled, onClick, tabIndex, ...props }: AudioRecorderCancelProps): import("react").JSX.Element;
|
|
29
|
+
export type AudioRecorderSubmitProps = AudioRecorderStyleProps<ComponentProps<typeof Button>, ButtonKnobStyle & AudioRecorderKnobStyle>;
|
|
30
|
+
export declare function AudioRecorderSubmit({ className, children, disabled, onClick, tabIndex, ...props }: AudioRecorderSubmitProps): import("react").JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export type { AudioRecording };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { AudioVisualizerKnobStyle } from "./knob-contracts/audio-visualizer-knobs.js";
|
|
2
2
|
import { CSSProperties, ComponentProps } from "react";
|
|
3
3
|
//#region src/audio-visualizer.d.ts
|
|
4
|
-
type AudioVisualizerProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
4
|
+
export type AudioVisualizerProps = Omit<ComponentProps<"div">, "children" | "style"> & {
|
|
5
5
|
levels: readonly number[];
|
|
6
6
|
active?: boolean;
|
|
7
7
|
points?: number;
|
|
8
8
|
style?: CSSProperties & AudioVisualizerKnobStyle;
|
|
9
9
|
};
|
|
10
|
-
declare function AudioVisualizer({ levels, points, active, className, style, ...props }: AudioVisualizerProps): import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { AudioVisualizer, AudioVisualizerProps };
|
|
10
|
+
export declare function AudioVisualizer({ levels, points, active, className, style, ...props }: AudioVisualizerProps): import("react").JSX.Element;
|
|
11
|
+
//#endregion
|
package/dist/audio-visualizer.js
CHANGED
|
@@ -35,7 +35,7 @@ function AudioVisualizer({ levels, points, active = true, className, style, ...p
|
|
|
35
35
|
const visibleLevel = MIN_VISIBLE_LEVEL + perceptualLevel * .88;
|
|
36
36
|
const levelStyle = {
|
|
37
37
|
"--_audio-visualizer-level-opacity": `${.48 + perceptualLevel * .52}`,
|
|
38
|
-
clipPath: `inset(${(1 - visibleLevel) * 50}% 0 round var(--radius
|
|
38
|
+
clipPath: `inset(${(1 - visibleLevel) * 50}% 0 round var(--cui-audio-visualizer-bar-radius))`
|
|
39
39
|
};
|
|
40
40
|
return /* @__PURE__ */ jsx("span", {
|
|
41
41
|
"data-control-ui": "audio-visualizer",
|
package/dist/blocks/chat.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ChatLayout } from "../chat-layout.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/blocks/chat.d.ts
|
|
4
|
-
type ChatBlockProps = Omit<ComponentProps<typeof ChatLayout>, "children"> & {
|
|
4
|
+
export type ChatBlockProps = Omit<ComponentProps<typeof ChatLayout>, "children"> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
composer: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
declare function ChatBlock({ children, composer, className, ...props }: ChatBlockProps): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ChatBlock, ChatBlockProps };
|
|
8
|
+
export declare function ChatBlock({ children, composer, className, ...props }: ChatBlockProps): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
package/dist/blocks/chat.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ChatLayout, ChatThread } from "../chat-layout.js";
|
|
2
|
-
import { jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/blocks/chat.tsx
|
|
4
4
|
function ChatBlock({ children, composer, className, ...props }) {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(ChatLayout, {
|
|
6
6
|
className,
|
|
7
7
|
...props,
|
|
8
|
-
children:
|
|
8
|
+
children: /* @__PURE__ */ jsx(ChatThread, {
|
|
9
|
+
composer,
|
|
10
|
+
children
|
|
11
|
+
})
|
|
9
12
|
});
|
|
10
13
|
}
|
|
11
14
|
//#endregion
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ChatLayout } from "../chat-layout.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/blocks/coding-agent.d.ts
|
|
4
|
-
type CodingAgentNavigationItem = {
|
|
4
|
+
export type CodingAgentNavigationItem = {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
7
|
icon?: ReactNode;
|
|
8
8
|
trailing?: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
type CodingAgentTask = {
|
|
10
|
+
export type CodingAgentTask = {
|
|
11
11
|
id: string;
|
|
12
12
|
title: string;
|
|
13
13
|
trailing?: ReactNode;
|
|
14
14
|
};
|
|
15
|
-
type CodingAgentProject = {
|
|
15
|
+
export type CodingAgentProject = {
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
18
18
|
icon?: ReactNode;
|
|
19
19
|
tasks: readonly CodingAgentTask[];
|
|
20
20
|
open?: boolean;
|
|
21
21
|
};
|
|
22
|
-
type CodingAgentBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
22
|
+
export type CodingAgentBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
23
23
|
appName?: string;
|
|
24
24
|
brand?: ReactNode;
|
|
25
25
|
sidebarTop?: ReactNode;
|
|
@@ -36,26 +36,25 @@ type CodingAgentBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
|
36
36
|
children: ReactNode;
|
|
37
37
|
layout?: "viewport" | "contained";
|
|
38
38
|
};
|
|
39
|
-
declare function CodingAgentBlock({ appName, brand, sidebarTop, navigation, projects, activeTaskId, activeTaskTitle, onNavigationSelect, onTaskSelect, onNewTask, onSearch, headerActions, sidebarFooter, children, layout, className, style, ...props }: CodingAgentBlockProps): import("react").JSX.Element;
|
|
40
|
-
type CodingAgentConversationProps = Omit<ComponentProps<typeof ChatLayout>, "children"> & {
|
|
39
|
+
export declare function CodingAgentBlock({ appName, brand, sidebarTop, navigation, projects, activeTaskId, activeTaskTitle, onNavigationSelect, onTaskSelect, onNewTask, onSearch, headerActions, sidebarFooter, children, layout, className, style, ...props }: CodingAgentBlockProps): import("react").JSX.Element;
|
|
40
|
+
export type CodingAgentConversationProps = Omit<ComponentProps<typeof ChatLayout>, "children"> & {
|
|
41
41
|
children: ReactNode;
|
|
42
42
|
composer: ReactNode;
|
|
43
43
|
};
|
|
44
|
-
declare function CodingAgentConversation({ children, composer, className, ...props }: CodingAgentConversationProps): import("react").JSX.Element;
|
|
45
|
-
type CodingAgentSuggestion = {
|
|
44
|
+
export declare function CodingAgentConversation({ children, composer, className, ...props }: CodingAgentConversationProps): import("react").JSX.Element;
|
|
45
|
+
export type CodingAgentSuggestion = {
|
|
46
46
|
id: string;
|
|
47
47
|
title: string;
|
|
48
48
|
description?: string;
|
|
49
49
|
icon?: ReactNode;
|
|
50
50
|
prompt?: string;
|
|
51
51
|
};
|
|
52
|
-
type CodingAgentEmptyStateProps = Omit<ComponentProps<"section">, "title"> & {
|
|
52
|
+
export type CodingAgentEmptyStateProps = Omit<ComponentProps<"section">, "title"> & {
|
|
53
53
|
title?: ReactNode;
|
|
54
54
|
description?: ReactNode;
|
|
55
55
|
icon?: ReactNode;
|
|
56
56
|
suggestions?: readonly CodingAgentSuggestion[];
|
|
57
57
|
onSuggestionSelect?: (prompt: string, suggestion: CodingAgentSuggestion) => void;
|
|
58
58
|
};
|
|
59
|
-
declare function CodingAgentEmptyState({ title, description, icon, suggestions, onSuggestionSelect, className, ...props }: CodingAgentEmptyStateProps): import("react").JSX.Element;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { CodingAgentBlock, CodingAgentBlockProps, CodingAgentConversation, CodingAgentConversationProps, CodingAgentEmptyState, CodingAgentEmptyStateProps, CodingAgentNavigationItem, CodingAgentProject, CodingAgentSuggestion, CodingAgentTask };
|
|
59
|
+
export declare function CodingAgentEmptyState({ title, description, icon, suggestions, onSuggestionSelect, className, ...props }: CodingAgentEmptyStateProps): import("react").JSX.Element;
|
|
60
|
+
//#endregion
|
|
@@ -189,19 +189,20 @@ function CodingAgentSidebar({ appName, brand, sidebarTop, navigation, projects,
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
function CodingAgentConversation({ children, composer, className, ...props }) {
|
|
192
|
-
return /* @__PURE__ */
|
|
193
|
-
|
|
192
|
+
return /* @__PURE__ */ jsx(ChatLayout, {
|
|
193
|
+
chrome: "embedded",
|
|
194
|
+
className: cn("h-full min-h-0 max-w-none", className),
|
|
194
195
|
...props,
|
|
195
|
-
children:
|
|
196
|
-
|
|
196
|
+
children: /* @__PURE__ */ jsx(ChatThread, {
|
|
197
|
+
composer: /* @__PURE__ */ jsx("div", {
|
|
198
|
+
className: "mx-auto w-full max-w-3xl px-2 sm:px-6",
|
|
199
|
+
children: composer
|
|
200
|
+
}),
|
|
197
201
|
children: /* @__PURE__ */ jsx("div", {
|
|
198
|
-
className: "mx-auto flex
|
|
202
|
+
className: "mx-auto flex w-full max-w-3xl flex-1 flex-col gap-8",
|
|
199
203
|
children
|
|
200
204
|
})
|
|
201
|
-
})
|
|
202
|
-
className: "mx-auto w-full max-w-3xl px-2 sm:px-6",
|
|
203
|
-
children: composer
|
|
204
|
-
})]
|
|
205
|
+
})
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
208
|
function CodingAgentEmptyState({ title = "What should we build?", description, icon, suggestions = [], onSuggestionSelect, className, ...props }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/blocks/file-explorer-data.d.ts
|
|
3
|
-
type FileExplorerEntryDetail = {
|
|
3
|
+
export type FileExplorerEntryDetail = {
|
|
4
4
|
label: string;
|
|
5
5
|
value: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
type FileExplorerEntry = {
|
|
7
|
+
export type FileExplorerEntry = {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
kind: "file" | "folder";
|
|
@@ -15,43 +15,42 @@ type FileExplorerEntry = {
|
|
|
15
15
|
preview?: ReactNode;
|
|
16
16
|
children?: readonly FileExplorerEntry[];
|
|
17
17
|
};
|
|
18
|
-
type FileExplorerLocation = {
|
|
18
|
+
export type FileExplorerLocation = {
|
|
19
19
|
id: string;
|
|
20
20
|
label: string;
|
|
21
21
|
group?: string;
|
|
22
22
|
icon?: ReactNode;
|
|
23
23
|
entries: readonly FileExplorerEntry[];
|
|
24
24
|
};
|
|
25
|
-
type FileExplorerColumn = {
|
|
25
|
+
export type FileExplorerColumn = {
|
|
26
26
|
id: string;
|
|
27
27
|
label: string;
|
|
28
28
|
entries: readonly FileExplorerEntry[];
|
|
29
29
|
selectedId?: string;
|
|
30
30
|
};
|
|
31
|
-
type FileExplorerBreadcrumb = {
|
|
31
|
+
export type FileExplorerBreadcrumb = {
|
|
32
32
|
id: string;
|
|
33
33
|
label: string;
|
|
34
34
|
path: readonly string[];
|
|
35
35
|
entry?: FileExplorerEntry;
|
|
36
36
|
};
|
|
37
|
-
type FileExplorerResolution = {
|
|
37
|
+
export type FileExplorerResolution = {
|
|
38
38
|
columns: readonly FileExplorerColumn[];
|
|
39
39
|
breadcrumbs: readonly FileExplorerBreadcrumb[];
|
|
40
40
|
selectedEntry?: FileExplorerEntry;
|
|
41
41
|
validPath: readonly string[];
|
|
42
42
|
};
|
|
43
|
-
type FileExplorerSearchResult = {
|
|
43
|
+
export type FileExplorerSearchResult = {
|
|
44
44
|
entry: FileExplorerEntry;
|
|
45
45
|
path: readonly string[];
|
|
46
46
|
parents: readonly string[];
|
|
47
47
|
};
|
|
48
|
-
declare function resolveFileExplorer(location: FileExplorerLocation, selectedPath: readonly string[]): FileExplorerResolution;
|
|
49
|
-
declare function groupFileExplorerItems<T extends {
|
|
48
|
+
export declare function resolveFileExplorer(location: FileExplorerLocation, selectedPath: readonly string[]): FileExplorerResolution;
|
|
49
|
+
export declare function groupFileExplorerItems<T extends {
|
|
50
50
|
group?: string;
|
|
51
51
|
}>(items: readonly T[]): {
|
|
52
52
|
label: string;
|
|
53
53
|
items: T[];
|
|
54
54
|
}[];
|
|
55
|
-
declare function searchFileExplorer(location: FileExplorerLocation, query: string): readonly FileExplorerSearchResult[];
|
|
56
|
-
//#endregion
|
|
57
|
-
export { FileExplorerBreadcrumb, FileExplorerColumn, FileExplorerEntry, FileExplorerEntryDetail, FileExplorerLocation, FileExplorerResolution, FileExplorerSearchResult, groupFileExplorerItems, resolveFileExplorer, searchFileExplorer };
|
|
55
|
+
export declare function searchFileExplorer(location: FileExplorerLocation, query: string): readonly FileExplorerSearchResult[];
|
|
56
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileExplorerBreadcrumb, FileExplorerColumn, FileExplorerEntry, FileExplorerEntryDetail, FileExplorerLocation, FileExplorerResolution, FileExplorerSearchResult } from "./file-explorer-data.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/blocks/file-explorer.d.ts
|
|
4
|
-
type FileExplorerBlockProps = Omit<ComponentProps<"div">, "children" | "defaultValue" | "onChange"> & {
|
|
4
|
+
export type FileExplorerBlockProps = Omit<ComponentProps<"div">, "children" | "defaultValue" | "onChange"> & {
|
|
5
5
|
locations: readonly FileExplorerLocation[];
|
|
6
6
|
activeLocationId?: string;
|
|
7
7
|
defaultActiveLocationId?: string;
|
|
@@ -19,6 +19,6 @@ type FileExplorerBlockProps = Omit<ComponentProps<"div">, "children" | "defaultV
|
|
|
19
19
|
searchPlaceholder?: string | false;
|
|
20
20
|
layout?: "viewport" | "contained";
|
|
21
21
|
};
|
|
22
|
-
declare function FileExplorerBlock({ locations, activeLocationId, defaultActiveLocationId, selectedPath, defaultSelectedPath, searchValue, defaultSearchValue, onActiveLocationChange, onSelectedPathChange, onSearchValueChange, onOpenEntry, sidebarTop, sidebarFooter, headerActions, searchPlaceholder, layout, className, style, ...props }: FileExplorerBlockProps): import("react").JSX.Element;
|
|
22
|
+
export declare function FileExplorerBlock({ locations, activeLocationId, defaultActiveLocationId, selectedPath, defaultSelectedPath, searchValue, defaultSearchValue, onActiveLocationChange, onSelectedPathChange, onSearchValueChange, onOpenEntry, sidebarTop, sidebarFooter, headerActions, searchPlaceholder, layout, className, style, ...props }: FileExplorerBlockProps): import("react").JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export type { FileExplorerBreadcrumb, FileExplorerColumn, FileExplorerEntry, FileExplorerEntryDetail, FileExplorerLocation, FileExplorerResolution, FileExplorerSearchResult };
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/blocks/settings-data.d.ts
|
|
3
|
-
type SettingsControlProps = {
|
|
3
|
+
export type SettingsControlProps = {
|
|
4
4
|
id: string;
|
|
5
5
|
"aria-labelledby": string;
|
|
6
6
|
"aria-describedby"?: string;
|
|
7
7
|
};
|
|
8
|
-
type SettingDefinition = {
|
|
8
|
+
export type SettingDefinition = {
|
|
9
9
|
id: string;
|
|
10
10
|
title: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
keywords?: readonly string[];
|
|
13
13
|
renderControl: (props: SettingsControlProps) => ReactNode;
|
|
14
14
|
};
|
|
15
|
-
type SettingsSectionDefinition = {
|
|
15
|
+
export type SettingsSectionDefinition = {
|
|
16
16
|
id: string;
|
|
17
17
|
title: string;
|
|
18
18
|
settings: readonly SettingDefinition[];
|
|
19
19
|
};
|
|
20
|
-
type SettingsPageDefinition = {
|
|
20
|
+
export type SettingsPageDefinition = {
|
|
21
21
|
id: string;
|
|
22
22
|
title: string;
|
|
23
23
|
icon?: ReactNode;
|
|
24
24
|
sections: readonly SettingsSectionDefinition[];
|
|
25
25
|
};
|
|
26
|
-
type SettingsSearchResult = {
|
|
26
|
+
export type SettingsSearchResult = {
|
|
27
27
|
page: SettingsPageDefinition;
|
|
28
28
|
section: SettingsSectionDefinition;
|
|
29
29
|
setting: SettingDefinition;
|
|
30
30
|
score: number;
|
|
31
31
|
order: number;
|
|
32
32
|
};
|
|
33
|
-
declare function normalizeSettingsSearchText(value: string): string;
|
|
34
|
-
declare function searchSettings(pages: readonly SettingsPageDefinition[], query: string): SettingsSearchResult[];
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SettingDefinition, SettingsControlProps, SettingsPageDefinition, SettingsSearchResult, SettingsSectionDefinition, normalizeSettingsSearchText, searchSettings };
|
|
33
|
+
export declare function normalizeSettingsSearchText(value: string): string;
|
|
34
|
+
export declare function searchSettings(pages: readonly SettingsPageDefinition[], query: string): SettingsSearchResult[];
|
|
35
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Button } from "../ui/button.js";
|
|
|
2
2
|
import { SettingDefinition, SettingsControlProps, SettingsPageDefinition, SettingsSectionDefinition } from "./settings-data.js";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
//#region src/blocks/settings.d.ts
|
|
5
|
-
type SettingsBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
5
|
+
export type SettingsBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
6
6
|
pages: readonly SettingsPageDefinition[];
|
|
7
7
|
activePageId?: string;
|
|
8
8
|
defaultActivePageId?: string;
|
|
@@ -11,9 +11,9 @@ type SettingsBlockProps = Omit<ComponentProps<"div">, "children"> & {
|
|
|
11
11
|
searchPlaceholder?: string;
|
|
12
12
|
layout?: "viewport" | "contained";
|
|
13
13
|
};
|
|
14
|
-
declare function SettingsBlock({ pages, activePageId, defaultActivePageId, onActivePageChange, backAction, searchPlaceholder, layout, className, style, ...props }: SettingsBlockProps): import("react").JSX.Element;
|
|
15
|
-
declare function SettingsBackAction({ children, ...props }: Omit<ComponentProps<typeof Button>, "children"> & {
|
|
14
|
+
export declare function SettingsBlock({ pages, activePageId, defaultActivePageId, onActivePageChange, backAction, searchPlaceholder, layout, className, style, ...props }: SettingsBlockProps): import("react").JSX.Element;
|
|
15
|
+
export declare function SettingsBackAction({ children, ...props }: Omit<ComponentProps<typeof Button>, "children"> & {
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
}): import("react").JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export type { SettingDefinition, SettingsControlProps, SettingsPageDefinition, SettingsSectionDefinition };
|
|
@@ -3,8 +3,8 @@ import { DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
|
3
3
|
import { Switch } from "../ui/switch.js";
|
|
4
4
|
import { ComponentProps, ComponentType } from "react";
|
|
5
5
|
//#region src/blocks/theme-toggle.d.ts
|
|
6
|
-
type ThemeMode = "light" | "dark" | "system";
|
|
7
|
-
type ThemeToggleOption = {
|
|
6
|
+
export type ThemeMode = "light" | "dark" | "system";
|
|
7
|
+
export type ThemeToggleOption = {
|
|
8
8
|
value: ThemeMode;
|
|
9
9
|
label: string;
|
|
10
10
|
icon: ComponentType<{
|
|
@@ -18,26 +18,25 @@ type ThemeControlProps = {
|
|
|
18
18
|
onValueChange: (value: ThemeMode) => void;
|
|
19
19
|
options?: readonly ThemeToggleOption[];
|
|
20
20
|
};
|
|
21
|
-
type ThemeToggleProps = Omit<ComponentProps<typeof Button>, "value" | "onChange"> & ThemeControlProps & {
|
|
21
|
+
export type ThemeToggleProps = Omit<ComponentProps<typeof Button>, "value" | "onChange"> & ThemeControlProps & {
|
|
22
22
|
showLabel?: boolean;
|
|
23
23
|
showLabels?: boolean;
|
|
24
24
|
};
|
|
25
|
-
type ThemeSwitchProps = Omit<ComponentProps<typeof Switch>, "checked" | "defaultChecked" | "onCheckedChange" | "value"> & {
|
|
25
|
+
export type ThemeSwitchProps = Omit<ComponentProps<typeof Switch>, "checked" | "defaultChecked" | "onCheckedChange" | "value"> & {
|
|
26
26
|
value: ThemeMode;
|
|
27
27
|
onValueChange: (value: ThemeMode) => void;
|
|
28
28
|
onValue?: ThemeMode;
|
|
29
29
|
offValue?: ThemeMode;
|
|
30
30
|
};
|
|
31
|
-
type ThemeSegmentedSwitchProps = Omit<ComponentProps<"div">, "onChange"> & ThemeControlProps & {
|
|
31
|
+
export type ThemeSegmentedSwitchProps = Omit<ComponentProps<"div">, "onChange"> & ThemeControlProps & {
|
|
32
32
|
name?: string;
|
|
33
33
|
showLabels?: boolean;
|
|
34
34
|
};
|
|
35
|
-
type ThemeDropdownProps = Omit<ComponentProps<typeof DropdownMenuTrigger>, "children" | "value" | "onChange"> & ThemeControlProps & {
|
|
35
|
+
export type ThemeDropdownProps = Omit<ComponentProps<typeof DropdownMenuTrigger>, "children" | "value" | "onChange"> & ThemeControlProps & {
|
|
36
36
|
label?: string;
|
|
37
37
|
};
|
|
38
|
-
declare function ThemeSwitch({ value, onValueChange, onValue, offValue, checkedIcon, uncheckedIcon, "aria-label": ariaLabel, ...props }: ThemeSwitchProps): import("react").JSX.Element;
|
|
39
|
-
declare function ThemeSegmentedSwitch({ value, onValueChange, options, showLabels, name, className, style, "aria-label": ariaLabel, ...props }: ThemeSegmentedSwitchProps): import("react").JSX.Element;
|
|
40
|
-
declare function ThemeToggle({ value, onValueChange, options, showLabel, showLabels, className, onClick, "aria-label": ariaLabel, ...props }: ThemeToggleProps): import("react").JSX.Element;
|
|
41
|
-
declare function ThemeDropdown({ value, onValueChange, options, label, className, "aria-label": ariaLabel, ...props }: ThemeDropdownProps): import("react").JSX.Element;
|
|
42
|
-
//#endregion
|
|
43
|
-
export { ThemeDropdown, ThemeDropdownProps, ThemeMode, ThemeSegmentedSwitch, ThemeSegmentedSwitchProps, ThemeSwitch, ThemeSwitchProps, ThemeToggle, ThemeToggleOption, ThemeToggleProps };
|
|
38
|
+
export declare function ThemeSwitch({ value, onValueChange, onValue, offValue, checkedIcon, uncheckedIcon, "aria-label": ariaLabel, ...props }: ThemeSwitchProps): import("react").JSX.Element;
|
|
39
|
+
export declare function ThemeSegmentedSwitch({ value, onValueChange, options, showLabels, name, className, style, "aria-label": ariaLabel, ...props }: ThemeSegmentedSwitchProps): import("react").JSX.Element;
|
|
40
|
+
export declare function ThemeToggle({ value, onValueChange, options, showLabel, showLabels, className, onClick, "aria-label": ariaLabel, ...props }: ThemeToggleProps): import("react").JSX.Element;
|
|
41
|
+
export declare function ThemeDropdown({ value, onValueChange, options, label, className, "aria-label": ariaLabel, ...props }: ThemeDropdownProps): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|