@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/dist/source-badge.d.ts
CHANGED
|
@@ -3,21 +3,20 @@ import { SourceBadgeKnobStyle } from "./knob-contracts/source-badge-knobs.js";
|
|
|
3
3
|
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.js";
|
|
4
4
|
import { CSSProperties, ComponentProps } from "react";
|
|
5
5
|
//#region src/source-badge.d.ts
|
|
6
|
-
type SourceBadgeProps = Omit<ComponentProps<"a">, "href" | "style"> & {
|
|
6
|
+
export type SourceBadgeProps = Omit<ComponentProps<"a">, "href" | "style"> & {
|
|
7
7
|
faviconSrc?: string | false;
|
|
8
8
|
href: string;
|
|
9
9
|
style?: CSSProperties & SourceBadgeKnobStyle & BadgeKnobStyle;
|
|
10
10
|
};
|
|
11
|
-
declare function sourceHostname(href: string): string;
|
|
12
|
-
declare function sourceFaviconHref(href: string): string | undefined;
|
|
13
|
-
type SourceFaviconProps = Omit<ComponentProps<typeof Avatar>, "children" | "style"> & {
|
|
11
|
+
export declare function sourceHostname(href: string): string;
|
|
12
|
+
export declare function sourceFaviconHref(href: string): string | undefined;
|
|
13
|
+
export type SourceFaviconProps = Omit<ComponentProps<typeof Avatar>, "children" | "style"> & {
|
|
14
14
|
faviconSrc?: string | false;
|
|
15
15
|
href: string;
|
|
16
16
|
imageProps?: Omit<ComponentProps<typeof AvatarImage>, "src">;
|
|
17
17
|
fallbackProps?: ComponentProps<typeof AvatarFallback>;
|
|
18
18
|
style?: CSSProperties & SourceBadgeKnobStyle;
|
|
19
19
|
};
|
|
20
|
-
declare function SourceFavicon({ faviconSrc, href, imageProps, fallbackProps, className, ...props }: SourceFaviconProps): import("react").JSX.Element;
|
|
21
|
-
declare function SourceBadge({ faviconSrc, href, children, className, rel, target, ...props }: SourceBadgeProps): import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { SourceBadge, SourceBadgeProps, SourceFavicon, SourceFaviconProps, sourceFaviconHref, sourceHostname };
|
|
20
|
+
export declare function SourceFavicon({ faviconSrc, href, imageProps, fallbackProps, className, ...props }: SourceFaviconProps): import("react").JSX.Element;
|
|
21
|
+
export declare function SourceBadge({ faviconSrc, href, children, className, rel, target, ...props }: SourceBadgeProps): import("react").JSX.Element;
|
|
22
|
+
//#endregion
|
package/dist/styles/index.css
CHANGED
|
@@ -26,17 +26,18 @@
|
|
|
26
26
|
@import "./recipes/chat-message.css";
|
|
27
27
|
@import "./recipes/chat-composer.css";
|
|
28
28
|
@import "./chat-composer-editor.css";
|
|
29
|
+
@import "./recipes/spinner.css";
|
|
29
30
|
@import "./recipes/chat-composer-attachment.css";
|
|
30
31
|
@import "./recipes/choice.css";
|
|
31
32
|
@import "./code.css";
|
|
32
33
|
@import "./recipes/code.css";
|
|
33
|
-
@import "./recipes/code-block-editor.css";
|
|
34
34
|
@import "./recipes/code-diff.css";
|
|
35
35
|
@import "./recipes/sidebar.css";
|
|
36
36
|
@import "./recipes/sidebar-menu.css";
|
|
37
37
|
@import "./recipes/color-picker.css";
|
|
38
38
|
@import "./recipes/color-picker-details.css";
|
|
39
39
|
@import "./recipes/color-picker-values.css";
|
|
40
|
+
@import "./recipes/empty.css";
|
|
40
41
|
@import "./recipes/context.css";
|
|
41
42
|
@import "./recipes/popup-drawer.css";
|
|
42
43
|
@import "./recipes/dockable-panel.css";
|
|
@@ -46,7 +47,6 @@
|
|
|
46
47
|
@import "./recipes/dynamic-notification.css";
|
|
47
48
|
@import "./recipes/dynamic-notification-input.css";
|
|
48
49
|
@import "./recipes/dynamic-notification-motion.css";
|
|
49
|
-
@import "./recipes/empty.css";
|
|
50
50
|
@import "./recipes/environment-variables.css";
|
|
51
51
|
@import "./recipes/resizable.css";
|
|
52
52
|
@import "./recipes/gradient-editor.css";
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
@import "./recipes/markdown-block.css";
|
|
60
60
|
@import "./recipes/range.css";
|
|
61
61
|
@import "./recipes/morphing-panel.css";
|
|
62
|
+
@import "./recipes/page-layout.css";
|
|
62
63
|
@import "./recipes/pagination.css";
|
|
63
64
|
@import "./recipes/phone-input.css";
|
|
64
65
|
@import "./recipes/rich-tooltip.css";
|
|
65
66
|
@import "./recipes/skeleton.css";
|
|
66
|
-
@import "./recipes/spinner.css";
|
|
67
67
|
@import "./recipes/stepper.css";
|
|
68
68
|
@import "./recipes/switch.css";
|
|
69
69
|
@import "./recipes/table.css";
|
|
@@ -79,5 +79,3 @@
|
|
|
79
79
|
@import "./type-scale.css";
|
|
80
80
|
@import "./recipes/user-ask.css";
|
|
81
81
|
@import "./recipes/user-ask-details.css";
|
|
82
|
-
@import "./skin-theme.css";
|
|
83
|
-
@import "./skin.css";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="accordion"][data-slot="root"]) {
|
|
3
3
|
--cui-accordion-item-border-color: var(--border);
|
|
4
|
+
--cui-accordion-item-border-width: 1px;
|
|
4
5
|
--cui-accordion-trigger-foreground: var(--foreground);
|
|
5
6
|
--cui-accordion-trigger-hover-foreground: oklch(from var(--foreground) l c h / 0.8);
|
|
6
7
|
--cui-accordion-icon-foreground: var(--muted-foreground);
|
|
7
8
|
}
|
|
8
9
|
:where([data-control-family="accordion"][data-slot="item"]) {
|
|
9
|
-
border-block-end:
|
|
10
|
+
border-block-end: var(--cui-accordion-item-border-width) solid var(--cui-accordion-item-border-color);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
:where([data-control-family="accordion"][data-slot="item"]:last-child) {
|
|
@@ -19,7 +20,6 @@
|
|
|
19
20
|
color: var(--cui-accordion-trigger-foreground);
|
|
20
21
|
font-size: var(--text-body);
|
|
21
22
|
outline: none;
|
|
22
|
-
transition: color var(--duration-fast) var(--ease-standard);
|
|
23
23
|
text-align: left;
|
|
24
24
|
font-weight: var(--font-weight-medium);
|
|
25
25
|
}
|
|
@@ -68,6 +68,12 @@
|
|
|
68
68
|
initial-value: transparent;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
@property --cui-accordion-item-border-width {
|
|
72
|
+
syntax: "<length>";
|
|
73
|
+
inherits: true;
|
|
74
|
+
initial-value: 0px;
|
|
75
|
+
}
|
|
76
|
+
|
|
71
77
|
@property --cui-accordion-trigger-foreground {
|
|
72
78
|
syntax: "<color>";
|
|
73
79
|
inherits: true;
|
|
@@ -1,19 +1,54 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="action-bar"][data-slot="root"]) {
|
|
3
|
+
--cui-action-bar-hidden-opacity: 0;
|
|
4
|
+
--cui-action-bar-visible-opacity: 1;
|
|
3
5
|
margin-block-start: calc(var(--spacing) * 1);
|
|
4
6
|
min-block-size: calc(var(--spacing) * 8);
|
|
5
7
|
gap: calc(var(--spacing) * 1);
|
|
6
|
-
opacity:
|
|
7
|
-
transition: opacity
|
|
8
|
+
opacity: var(--cui-action-bar-visible-opacity);
|
|
9
|
+
transition-property: opacity;
|
|
10
|
+
transition-duration: var(--duration-fast);
|
|
11
|
+
transition-timing-function: var(--ease-standard);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
@media (hover: hover) {
|
|
14
|
+
@media (hover: hover) and (pointer: fine) {
|
|
15
|
+
:where([data-control-family="chat-layout"][data-slot="turn"] [data-control-family="action-bar"][data-slot="root"]) {
|
|
16
|
+
opacity: var(--cui-action-bar-hidden-opacity);
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
:where([data-control-family="chat-layout"][data-slot="turn"]:hover [data-control-family="action-bar"][data-slot="root"]) {
|
|
12
|
-
opacity:
|
|
20
|
+
opacity: var(--cui-action-bar-visible-opacity);
|
|
13
21
|
}
|
|
14
22
|
}
|
|
15
23
|
|
|
16
24
|
:where([data-control-family="chat-layout"][data-slot="turn"]:focus-within [data-control-family="action-bar"][data-slot="root"]) {
|
|
17
|
-
opacity:
|
|
25
|
+
opacity: var(--cui-action-bar-visible-opacity);
|
|
18
26
|
}
|
|
27
|
+
|
|
28
|
+
@media (pointer: coarse) {
|
|
29
|
+
:where([data-control-family="action-bar"][data-slot="root"] [data-control-family="button"]) {
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-control-family="action-bar"][data-slot="root"] [data-control-family="button"])::after {
|
|
34
|
+
content: "";
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 50% 50%;
|
|
37
|
+
translate: -50% -50%;
|
|
38
|
+
inline-size: 100%;
|
|
39
|
+
block-size: max(100%, 44px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@property --cui-action-bar-hidden-opacity {
|
|
45
|
+
syntax: "<number>";
|
|
46
|
+
inherits: true;
|
|
47
|
+
initial-value: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@property --cui-action-bar-visible-opacity {
|
|
51
|
+
syntax: "<number>";
|
|
52
|
+
inherits: true;
|
|
53
|
+
initial-value: 1;
|
|
19
54
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="activity"][data-slot="root"]) {
|
|
3
|
-
margin-block: calc(var(--spacing) * 1);
|
|
4
3
|
--cui-activity-row-foreground: var(--muted-foreground);
|
|
5
4
|
--cui-activity-trigger-hover-background: oklch(from var(--muted) l c h / 0.45);
|
|
6
5
|
--cui-activity-trigger-radius: var(--radius-control);
|
|
7
6
|
--cui-activity-code-background: oklch(from var(--muted) l c h / 0.5);
|
|
7
|
+
--cui-activity-code-radius: var(--radius-control);
|
|
8
|
+
margin-block: calc(var(--spacing) * 1);
|
|
8
9
|
font-size: var(--text-body);
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -36,6 +37,11 @@
|
|
|
36
37
|
inline-size: calc(var(--spacing) * 3.5);
|
|
37
38
|
block-size: calc(var(--spacing) * 3.5);
|
|
38
39
|
color: oklch(from var(--muted-foreground) l c h / 0.75);
|
|
40
|
+
transition: rotate var(--duration-base) var(--ease-standard);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where([data-control-family="activity"][data-slot="trigger"][data-state="open"] [data-slot="chevron"]) {
|
|
44
|
+
rotate: 90deg;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
:where([data-control-family="activity"][data-slot="icon"]) {
|
|
@@ -59,7 +65,7 @@
|
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
:where([data-control-family="activity"][data-slot="root"][data-activity-state="running"] [data-slot="icon"][data-status-icon] svg) {
|
|
62
|
-
animation: spin var(--duration-slow) linear infinite;
|
|
68
|
+
animation: activity-spin calc(var(--duration-slow) * 2) linear infinite;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
:where([data-control-family="activity"][data-slot="root"][data-activity-state="error"] [data-slot="icon"]) {
|
|
@@ -99,9 +105,30 @@
|
|
|
99
105
|
padding-inline: calc(var(--spacing) * 2);
|
|
100
106
|
padding-block: calc(var(--spacing) * 1.5);
|
|
101
107
|
background: var(--cui-activity-code-background);
|
|
102
|
-
border-radius: var(--radius
|
|
108
|
+
border-radius: var(--cui-activity-code-radius);
|
|
103
109
|
font-size: var(--text-caption);
|
|
104
110
|
}
|
|
111
|
+
|
|
112
|
+
@media (pointer: coarse) {
|
|
113
|
+
:where([data-control-family="activity"][data-slot="trigger"]) {
|
|
114
|
+
position: relative;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where([data-control-family="activity"][data-slot="trigger"])::after {
|
|
118
|
+
content: "";
|
|
119
|
+
position: absolute;
|
|
120
|
+
inset: 50% 50%;
|
|
121
|
+
translate: -50% -50%;
|
|
122
|
+
inline-size: 100%;
|
|
123
|
+
block-size: max(100%, 44px);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes activity-spin {
|
|
129
|
+
to {
|
|
130
|
+
rotate: 360deg;
|
|
131
|
+
}
|
|
105
132
|
}
|
|
106
133
|
|
|
107
134
|
@property --cui-activity-row-foreground {
|
|
@@ -127,3 +154,9 @@
|
|
|
127
154
|
inherits: true;
|
|
128
155
|
initial-value: transparent;
|
|
129
156
|
}
|
|
157
|
+
|
|
158
|
+
@property --cui-activity-code-radius {
|
|
159
|
+
syntax: "<length>";
|
|
160
|
+
inherits: true;
|
|
161
|
+
initial-value: 0px;
|
|
162
|
+
}
|
|
@@ -4,34 +4,47 @@
|
|
|
4
4
|
--cui-alert-background: var(--card);
|
|
5
5
|
--cui-alert-border-color: var(--border);
|
|
6
6
|
--cui-alert-shadow: none;
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
|
|
10
|
-
padding: calc(var(--spacing) * 3)
|
|
11
|
-
|
|
7
|
+
--cui-alert-foreground: var(--card-foreground);
|
|
8
|
+
--cui-alert-description-foreground: var(--muted-foreground);
|
|
9
|
+
--cui-alert-border-width: 1px;
|
|
10
|
+
--cui-alert-padding: calc(var(--spacing) * 3);
|
|
11
|
+
--cui-alert-padding-inline: calc(var(--spacing) * 4);
|
|
12
|
+
--cui-alert-gap: calc(var(--spacing) * 0.5);
|
|
13
|
+
--cui-alert-icon-gap: calc(var(--spacing) * 3);
|
|
14
|
+
--cui-alert-icon-size: calc(var(--spacing) * 4);
|
|
15
|
+
--cui-alert-font-size: var(--text-sm);
|
|
16
|
+
--cui-alert-title-font-weight: var(--font-weight-medium);
|
|
17
|
+
--cui-alert-description-gap: var(--spacing);
|
|
18
|
+
grid-template-columns: 0 minmax(0, 1fr);
|
|
19
|
+
row-gap: var(--cui-alert-gap);
|
|
20
|
+
padding: var(--cui-alert-padding) var(--cui-alert-padding-inline);
|
|
21
|
+
border: var(--cui-alert-border-width) solid var(--cui-alert-border-color);
|
|
12
22
|
border-radius: var(--cui-alert-radius);
|
|
13
23
|
background: var(--cui-alert-background);
|
|
14
24
|
box-shadow: var(--cui-alert-shadow);
|
|
15
|
-
color: var(--
|
|
16
|
-
font-size: var(--
|
|
25
|
+
color: var(--cui-alert-foreground);
|
|
26
|
+
font-size: var(--cui-alert-font-size);
|
|
17
27
|
line-height: var(--text-sm--line-height);
|
|
28
|
+
overflow-wrap: anywhere;
|
|
18
29
|
}
|
|
19
30
|
|
|
20
31
|
:where([data-control-family="alert"][data-slot="root"][data-variant="destructive"]) {
|
|
21
|
-
--
|
|
32
|
+
--cui-alert-foreground: var(--destructive-text);
|
|
22
33
|
--cui-alert-border-color: oklch(from var(--destructive) l c h / 0.5);
|
|
23
|
-
--
|
|
34
|
+
--cui-alert-description-foreground: oklch(from var(--destructive-text) l c h / 0.9);
|
|
24
35
|
}
|
|
25
36
|
|
|
26
37
|
:where([data-control-family="alert"][data-slot="root"]:has(> svg)) {
|
|
27
|
-
|
|
38
|
+
grid-template-columns: var(--cui-alert-icon-size) minmax(0, 1fr);
|
|
39
|
+
column-gap: var(--cui-alert-icon-gap);
|
|
28
40
|
}
|
|
29
41
|
|
|
30
42
|
:where([data-control-family="alert"][data-slot="description"]) {
|
|
31
|
-
gap:
|
|
32
|
-
color: var(--
|
|
33
|
-
font-size: var(--
|
|
43
|
+
gap: var(--cui-alert-description-gap);
|
|
44
|
+
color: var(--cui-alert-description-foreground);
|
|
45
|
+
font-size: var(--cui-alert-font-size);
|
|
34
46
|
line-height: var(--text-sm--line-height);
|
|
47
|
+
text-wrap: pretty;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
:where([data-control-family="alert"][data-slot="description"] p) {
|
|
@@ -39,14 +52,16 @@
|
|
|
39
52
|
}
|
|
40
53
|
|
|
41
54
|
:where([data-control-family="alert"][data-slot="title"]) {
|
|
42
|
-
|
|
43
|
-
font-weight: var(--font-weight-medium);
|
|
55
|
+
font-weight: var(--cui-alert-title-font-weight);
|
|
44
56
|
letter-spacing: var(--tracking-tight);
|
|
57
|
+
text-wrap: balance;
|
|
45
58
|
}
|
|
46
59
|
|
|
47
60
|
:where([data-control-family="alert"][data-slot="root"] > svg) {
|
|
48
61
|
color: currentcolor;
|
|
49
|
-
|
|
62
|
+
inline-size: var(--cui-alert-icon-size);
|
|
63
|
+
block-size: var(--cui-alert-icon-size);
|
|
64
|
+
margin-block-start: max(0px, calc((1lh - var(--cui-alert-icon-size)) / 2));
|
|
50
65
|
}
|
|
51
66
|
}
|
|
52
67
|
|
|
@@ -73,3 +88,69 @@
|
|
|
73
88
|
inherits: true;
|
|
74
89
|
initial-value: none;
|
|
75
90
|
}
|
|
91
|
+
|
|
92
|
+
@property --cui-alert-foreground {
|
|
93
|
+
syntax: "<color>";
|
|
94
|
+
inherits: true;
|
|
95
|
+
initial-value: transparent;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@property --cui-alert-description-foreground {
|
|
99
|
+
syntax: "<color>";
|
|
100
|
+
inherits: true;
|
|
101
|
+
initial-value: transparent;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@property --cui-alert-border-width {
|
|
105
|
+
syntax: "<length>";
|
|
106
|
+
inherits: true;
|
|
107
|
+
initial-value: 0px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@property --cui-alert-padding {
|
|
111
|
+
syntax: "<length>";
|
|
112
|
+
inherits: true;
|
|
113
|
+
initial-value: 0px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@property --cui-alert-padding-inline {
|
|
117
|
+
syntax: "<length>";
|
|
118
|
+
inherits: true;
|
|
119
|
+
initial-value: 0px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@property --cui-alert-gap {
|
|
123
|
+
syntax: "<length>";
|
|
124
|
+
inherits: true;
|
|
125
|
+
initial-value: 0px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@property --cui-alert-icon-gap {
|
|
129
|
+
syntax: "<length>";
|
|
130
|
+
inherits: true;
|
|
131
|
+
initial-value: 0px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@property --cui-alert-icon-size {
|
|
135
|
+
syntax: "<length>";
|
|
136
|
+
inherits: true;
|
|
137
|
+
initial-value: 0px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@property --cui-alert-font-size {
|
|
141
|
+
syntax: "<length>";
|
|
142
|
+
inherits: true;
|
|
143
|
+
initial-value: 0px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@property --cui-alert-description-gap {
|
|
147
|
+
syntax: "<length>";
|
|
148
|
+
inherits: true;
|
|
149
|
+
initial-value: 0px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@property --cui-alert-title-font-weight {
|
|
153
|
+
syntax: "<number>";
|
|
154
|
+
inherits: true;
|
|
155
|
+
initial-value: 500;
|
|
156
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
:where([data-control-family="audio-visualizer"][data-variant]) {
|
|
3
3
|
--cui-audio-visualizer-radius: var(--radius-control);
|
|
4
4
|
--cui-audio-visualizer-bar-background: oklch(from var(--primary) l c h / 0.8);
|
|
5
|
+
--cui-audio-visualizer-bar-radius: var(--radius-control);
|
|
5
6
|
--cui-audio-visualizer-line-fill: oklch(from var(--primary) l c h / 0.18);
|
|
6
7
|
--cui-audio-visualizer-line-stroke: oklch(from var(--primary) l c h / 0.8);
|
|
7
8
|
}
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
|
|
48
49
|
:where([data-control-family="audio-visualizer"][data-slot="bar"]) {
|
|
49
50
|
background: var(--cui-audio-visualizer-bar-background);
|
|
50
|
-
border-radius: var(--radius
|
|
51
|
+
border-radius: var(--cui-audio-visualizer-bar-radius);
|
|
51
52
|
opacity: var(--_audio-visualizer-level-opacity);
|
|
52
53
|
transition:
|
|
53
54
|
clip-path var(--duration-base) var(--ease-standard),
|
|
@@ -71,6 +72,12 @@
|
|
|
71
72
|
initial-value: 0px;
|
|
72
73
|
}
|
|
73
74
|
|
|
75
|
+
@property --cui-audio-visualizer-bar-radius {
|
|
76
|
+
syntax: "<length-percentage>";
|
|
77
|
+
inherits: true;
|
|
78
|
+
initial-value: 0px;
|
|
79
|
+
}
|
|
80
|
+
|
|
74
81
|
@property --cui-audio-visualizer-bar-background {
|
|
75
82
|
syntax: "<color>";
|
|
76
83
|
inherits: true;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="avatar"][data-slot="root"]) {
|
|
3
|
+
--cui-avatar-image-outline-color: oklch(from var(--foreground) l c h / 0.1);
|
|
3
4
|
inline-size: calc(var(--spacing) * 9);
|
|
4
5
|
block-size: calc(var(--spacing) * 9);
|
|
5
6
|
}
|
|
@@ -14,12 +15,21 @@
|
|
|
14
15
|
border-radius: var(--cui-avatar-radius);
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
:where([data-control-family="avatar"][data-slot="root"])::after {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: 0;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
border-radius: inherit;
|
|
24
|
+
box-shadow: inset 0 0 0 1px var(--cui-avatar-image-outline-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
:where([data-control-family="avatar"][data-slot="group"] > [data-control-family="avatar"]) {
|
|
18
28
|
box-shadow: 0 0 0 2px var(--cui-avatar-group-ring-color);
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
:where([data-control-family="avatar"][data-slot="fallback"]) {
|
|
22
|
-
border-radius:
|
|
32
|
+
border-radius: inherit;
|
|
23
33
|
background: var(--cui-avatar-fallback-background);
|
|
24
34
|
color: var(--cui-avatar-fallback-foreground);
|
|
25
35
|
font-size: var(--text-caption);
|
|
@@ -50,3 +60,9 @@
|
|
|
50
60
|
inherits: true;
|
|
51
61
|
initial-value: transparent;
|
|
52
62
|
}
|
|
63
|
+
|
|
64
|
+
@property --cui-avatar-image-outline-color {
|
|
65
|
+
syntax: "<color>";
|
|
66
|
+
inherits: true;
|
|
67
|
+
initial-value: transparent;
|
|
68
|
+
}
|
|
@@ -83,6 +83,14 @@
|
|
|
83
83
|
:where([data-control-family="button-group"][data-slot="root"] > [data-active="true"]:focus-within) {
|
|
84
84
|
z-index: 3;
|
|
85
85
|
}
|
|
86
|
+
|
|
87
|
+
@media (pointer: coarse) {
|
|
88
|
+
:where(
|
|
89
|
+
[data-control-family="button-group"][data-slot="root"][data-orientation="vertical"] [data-control-family="button"][data-size="xs"]
|
|
90
|
+
)::after {
|
|
91
|
+
block-size: 100%;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
@property --cui-button-group-text-radius {
|
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
+
@media (pointer: coarse) {
|
|
3
|
+
:where([data-control-family="button"][data-size="xs"]) {
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where([data-control-family="button"][data-size="xs"])::after {
|
|
8
|
+
content: "";
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 50% 50%;
|
|
11
|
+
translate: -50% -50%;
|
|
12
|
+
inline-size: 100%;
|
|
13
|
+
block-size: max(100%, 44px);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(
|
|
18
|
+
[data-control-family="popup"][data-popup-kind="dialog"][data-slot="content"]
|
|
19
|
+
> [data-control-family="button"][data-popup-part="close"][data-icon-only="true"]
|
|
20
|
+
) {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 12px;
|
|
23
|
+
right: 12px;
|
|
24
|
+
}
|
|
2
25
|
:where([data-control-family="button"][data-control="true"]) {
|
|
3
26
|
--cui-button-radius: var(--radius-control);
|
|
4
27
|
--cui-button-gap: calc(var(--spacing) * 1.5);
|
|
5
28
|
--cui-button-icon: 1rem;
|
|
6
29
|
--cui-button-height: var(--control-h-md);
|
|
7
30
|
--cui-button-padding-inline: var(--padding-x);
|
|
31
|
+
--cui-button-icon-padding-inline: max(0px, calc(var(--cui-button-padding-inline) - var(--spacing) * 0.5));
|
|
8
32
|
--cui-button-font-size: var(--text-body);
|
|
9
33
|
--cui-button-background: transparent;
|
|
10
34
|
--cui-button-background-image: none;
|
|
@@ -31,7 +55,7 @@
|
|
|
31
55
|
cursor: pointer;
|
|
32
56
|
font-weight: var(--font-weight-medium);
|
|
33
57
|
outline: none;
|
|
34
|
-
transition-property:
|
|
58
|
+
transition-property: scale, translate;
|
|
35
59
|
transition-timing-function: var(--ease-standard);
|
|
36
60
|
transition-duration: var(--duration-fast);
|
|
37
61
|
}
|
|
@@ -65,6 +89,24 @@
|
|
|
65
89
|
font-size: var(--cui-button-font-size);
|
|
66
90
|
}
|
|
67
91
|
|
|
92
|
+
:where(
|
|
93
|
+
[data-control-family="button"][data-control="true"][data-size]:not([data-icon-only="true"]):has(
|
|
94
|
+
> :is(svg, [data-slot="icon"]):first-child:not(:only-child),
|
|
95
|
+
> [data-slot="content"] > :is(svg, [data-slot="icon"]):first-child:not(:only-child)
|
|
96
|
+
)
|
|
97
|
+
) {
|
|
98
|
+
padding-inline-start: var(--cui-button-icon-padding-inline);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where(
|
|
102
|
+
[data-control-family="button"][data-control="true"][data-size]:not([data-icon-only="true"]):has(
|
|
103
|
+
> :is(svg, [data-slot="icon"]):last-child:not(:only-child),
|
|
104
|
+
> [data-slot="content"] > :is(svg, [data-slot="icon"]):last-child:not(:only-child)
|
|
105
|
+
)
|
|
106
|
+
) {
|
|
107
|
+
padding-inline-end: var(--cui-button-icon-padding-inline);
|
|
108
|
+
}
|
|
109
|
+
|
|
68
110
|
:where([data-control-family="button"][data-icon-only="true"]) {
|
|
69
111
|
aspect-ratio: 1;
|
|
70
112
|
padding-inline: 0;
|
|
@@ -205,13 +247,6 @@
|
|
|
205
247
|
gap: calc(var(--spacing) * 1.5);
|
|
206
248
|
}
|
|
207
249
|
|
|
208
|
-
:where([data-control-family="button"][data-button-kind="model-switcher"][data-slot="indicator"]) {
|
|
209
|
-
inline-size: calc(var(--spacing) * 1.5);
|
|
210
|
-
block-size: calc(var(--spacing) * 1.5);
|
|
211
|
-
border-radius: calc(infinity * 1px);
|
|
212
|
-
background-color: var(--primary);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
250
|
:where([data-control-family="button"][data-slot="group"]) {
|
|
216
251
|
gap: calc(var(--spacing) * 1);
|
|
217
252
|
}
|
|
@@ -247,6 +282,12 @@
|
|
|
247
282
|
initial-value: 0px;
|
|
248
283
|
}
|
|
249
284
|
|
|
285
|
+
@property --cui-button-icon-padding-inline {
|
|
286
|
+
syntax: "<length-percentage>";
|
|
287
|
+
inherits: true;
|
|
288
|
+
initial-value: 0px;
|
|
289
|
+
}
|
|
290
|
+
|
|
250
291
|
@property --cui-button-font-size {
|
|
251
292
|
syntax: "<length-percentage>";
|
|
252
293
|
inherits: true;
|
|
@@ -41,9 +41,6 @@
|
|
|
41
41
|
border-radius: var(--radius-control);
|
|
42
42
|
outline: none;
|
|
43
43
|
color: var(--muted-foreground);
|
|
44
|
-
transition-property: background-color, color, box-shadow;
|
|
45
|
-
transition-duration: var(--duration-fast);
|
|
46
|
-
transition-timing-function: var(--ease-standard);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
@media (hover: hover) {
|
|
@@ -66,9 +63,7 @@
|
|
|
66
63
|
font-size: var(--text-sm);
|
|
67
64
|
font-weight: var(--font-weight-normal);
|
|
68
65
|
line-height: 1;
|
|
69
|
-
|
|
70
|
-
transition-duration: var(--duration-fast);
|
|
71
|
-
transition-timing-function: var(--ease-standard);
|
|
66
|
+
font-variant-numeric: tabular-nums;
|
|
72
67
|
}
|
|
73
68
|
|
|
74
69
|
@media (hover: hover) {
|
|
@@ -119,6 +114,26 @@
|
|
|
119
114
|
margin-block-start: calc(var(--spacing) * 1);
|
|
120
115
|
border-collapse: collapse;
|
|
121
116
|
}
|
|
117
|
+
|
|
118
|
+
@media (pointer: coarse) {
|
|
119
|
+
:where([data-control-family="calendar"][data-slot="day"]) {
|
|
120
|
+
min-inline-size: 44px;
|
|
121
|
+
min-block-size: 44px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:where([data-control-family="calendar"][data-slot="nav-button"]) {
|
|
125
|
+
position: relative;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:where([data-control-family="calendar"][data-slot="nav-button"])::after {
|
|
129
|
+
content: "";
|
|
130
|
+
position: absolute;
|
|
131
|
+
inset: 50% 50%;
|
|
132
|
+
translate: -50% -50%;
|
|
133
|
+
inline-size: 100%;
|
|
134
|
+
block-size: max(100%, 44px);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
122
137
|
}
|
|
123
138
|
|
|
124
139
|
@property --cui-calendar-day-radius {
|
|
@@ -48,11 +48,13 @@
|
|
|
48
48
|
:where([data-control-family="card"][data-slot="title"]) {
|
|
49
49
|
font-weight: var(--font-weight-semibold);
|
|
50
50
|
line-height: 1;
|
|
51
|
+
text-wrap: balance;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
:where([data-control-family="card"][data-slot="description"]) {
|
|
54
55
|
color: var(--muted-foreground);
|
|
55
56
|
font-size: var(--text-body);
|
|
57
|
+
text-wrap: pretty;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|