@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
margin-block: calc(var(--spacing) * 4);
|
|
4
4
|
--cui-code-diff-background: var(--background);
|
|
5
5
|
--cui-code-diff-border-color: var(--border);
|
|
6
|
+
--cui-code-diff-border-width: 1px;
|
|
6
7
|
--cui-code-diff-radius: var(--radius-panel);
|
|
7
8
|
--cui-code-diff-shadow: var(--shadow-sm);
|
|
8
9
|
--cui-code-diff-foreground: var(--code-foreground);
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
--cui-code-diff-expand-button-shadow: none;
|
|
15
16
|
--cui-code-diff-expand-button-hover-background: oklch(from var(--foreground) l c h / 0.08);
|
|
16
17
|
--cui-code-diff-expand-button-hover-foreground: var(--foreground);
|
|
17
|
-
border:
|
|
18
|
+
border: var(--cui-code-diff-border-width) solid var(--cui-code-diff-border-color);
|
|
18
19
|
border-radius: var(--cui-code-diff-radius);
|
|
19
20
|
background: var(--cui-code-diff-background);
|
|
20
21
|
box-shadow: var(--cui-code-diff-shadow);
|
|
@@ -166,6 +167,7 @@
|
|
|
166
167
|
|
|
167
168
|
:where([data-control-family="code-diff"][data-slot="title"]) {
|
|
168
169
|
font-family: var(--font-mono);
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
:where([data-control-family="code-diff"][data-slot="file-title"]) {
|
|
@@ -202,6 +204,12 @@
|
|
|
202
204
|
initial-value: transparent;
|
|
203
205
|
}
|
|
204
206
|
|
|
207
|
+
@property --cui-code-diff-border-width {
|
|
208
|
+
syntax: "<length>";
|
|
209
|
+
inherits: true;
|
|
210
|
+
initial-value: 0px;
|
|
211
|
+
}
|
|
212
|
+
|
|
205
213
|
@property --cui-code-diff-foreground {
|
|
206
214
|
syntax: "<color>";
|
|
207
215
|
inherits: true;
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
margin-block: calc(var(--spacing) * 4);
|
|
4
4
|
--cui-code-background: var(--background);
|
|
5
5
|
--cui-code-border-color: var(--control-rim);
|
|
6
|
+
--cui-code-border-width: 1px;
|
|
6
7
|
--cui-code-radius: var(--radius-panel);
|
|
7
8
|
--cui-code-shadow: var(--shadow-sm);
|
|
8
9
|
--cui-code-text-foreground: var(--code-foreground);
|
|
9
10
|
--cui-code-title-foreground: var(--muted-foreground);
|
|
11
|
+
--cui-code-line-highlight-background: oklch(from var(--primary) l c h / 0.08);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
:where([data-control-family="code"][data-slot="root"][data-chrome="standalone"]) {
|
|
13
|
-
border:
|
|
15
|
+
border: var(--cui-code-border-width) solid var(--cui-code-border-color);
|
|
14
16
|
border-radius: var(--cui-code-radius);
|
|
15
17
|
background: var(--cui-code-background);
|
|
16
18
|
box-shadow: var(--cui-code-shadow);
|
|
@@ -41,6 +43,10 @@
|
|
|
41
43
|
min-block-size: calc(var(--spacing) * 5);
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
:where([data-control-family="code"][data-slot="line"][data-highlighted]) {
|
|
47
|
+
background: var(--cui-code-line-highlight-background);
|
|
48
|
+
}
|
|
49
|
+
|
|
44
50
|
:where([data-control-family="code"][data-slot="line"] > code) {
|
|
45
51
|
padding-inline-end: calc(var(--spacing) * 4);
|
|
46
52
|
}
|
|
@@ -55,14 +61,6 @@
|
|
|
55
61
|
font-family: var(--font-mono);
|
|
56
62
|
}
|
|
57
63
|
|
|
58
|
-
:where([data-control-family="button"][data-code-floating="true"]) {
|
|
59
|
-
background: oklch(from var(--background) l c h / 0.85);
|
|
60
|
-
box-shadow:
|
|
61
|
-
inset 0 0 0 1px var(--border),
|
|
62
|
-
var(--shadow-sm);
|
|
63
|
-
backdrop-filter: blur(var(--backdrop-blur-popover));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
64
|
:where([data-control-family="code"][data-slot="grid"]) {
|
|
67
65
|
padding-block: calc(var(--spacing) * 3);
|
|
68
66
|
color: var(--cui-code-text-foreground);
|
|
@@ -77,18 +75,30 @@
|
|
|
77
75
|
font-size: var(--text-micro);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
:where([data-control-family="
|
|
81
|
-
|
|
82
|
-
block-size:
|
|
83
|
-
padding:
|
|
78
|
+
:where([data-control-family="code"][data-slot="editor"]) {
|
|
79
|
+
min-block-size: 160px;
|
|
80
|
+
max-block-size: 520px;
|
|
81
|
+
padding-block: calc(var(--spacing) * 3);
|
|
82
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
83
|
+
border-width: 0px;
|
|
84
|
+
outline: none;
|
|
85
|
+
background: transparent;
|
|
86
|
+
color: var(--cui-code-text-foreground);
|
|
87
|
+
font-size: var(--text-label);
|
|
88
|
+
font-family: var(--font-mono);
|
|
84
89
|
}
|
|
85
90
|
|
|
86
|
-
:where([data-control-family="code"][data-slot="
|
|
87
|
-
|
|
91
|
+
:where([data-control-family="code"][data-slot="root"][data-density="compact"] [data-slot="editor"]) {
|
|
92
|
+
min-block-size: 0;
|
|
93
|
+
max-block-size: 320px;
|
|
94
|
+
padding-block: calc(var(--spacing) * 2);
|
|
95
|
+
font-size: var(--text-micro);
|
|
88
96
|
}
|
|
89
97
|
|
|
90
|
-
:where([data-control-family="
|
|
91
|
-
|
|
98
|
+
:where([data-control-family="button"][data-code-copy="true"]) {
|
|
99
|
+
inline-size: calc(var(--spacing) * 7);
|
|
100
|
+
block-size: calc(var(--spacing) * 7);
|
|
101
|
+
padding: 0;
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
:where([data-control-family="code"][data-slot="gutter"]) {
|
|
@@ -98,6 +108,31 @@
|
|
|
98
108
|
text-align: right;
|
|
99
109
|
font-variant-numeric: tabular-nums;
|
|
100
110
|
}
|
|
111
|
+
|
|
112
|
+
@media (pointer: coarse) {
|
|
113
|
+
:where([data-control-family="code"][data-slot="editor"]) {
|
|
114
|
+
font-size: max(16px, var(--text-label));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where([data-control-family="code"][data-slot="header"]) {
|
|
118
|
+
min-block-size: 44px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where([data-control-family="code"][data-slot="actions"] [data-control-family="button"]),
|
|
122
|
+
:where([data-control-family="button"][data-code-copy="true"]) {
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:where([data-control-family="code"][data-slot="actions"] [data-control-family="button"])::after,
|
|
127
|
+
:where([data-control-family="button"][data-code-copy="true"])::after {
|
|
128
|
+
content: "";
|
|
129
|
+
position: absolute;
|
|
130
|
+
inset: 50% 50%;
|
|
131
|
+
translate: -50% -50%;
|
|
132
|
+
inline-size: 100%;
|
|
133
|
+
block-size: max(100%, 44px);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
101
136
|
}
|
|
102
137
|
|
|
103
138
|
@property --cui-code-radius {
|
|
@@ -118,6 +153,12 @@
|
|
|
118
153
|
initial-value: transparent;
|
|
119
154
|
}
|
|
120
155
|
|
|
156
|
+
@property --cui-code-border-width {
|
|
157
|
+
syntax: "<length>";
|
|
158
|
+
inherits: true;
|
|
159
|
+
initial-value: 0px;
|
|
160
|
+
}
|
|
161
|
+
|
|
121
162
|
@property --cui-code-shadow {
|
|
122
163
|
syntax: "*";
|
|
123
164
|
inherits: true;
|
|
@@ -134,3 +175,9 @@
|
|
|
134
175
|
inherits: true;
|
|
135
176
|
initial-value: transparent;
|
|
136
177
|
}
|
|
178
|
+
|
|
179
|
+
@property --cui-code-line-highlight-background {
|
|
180
|
+
syntax: "<color>";
|
|
181
|
+
inherits: true;
|
|
182
|
+
initial-value: transparent;
|
|
183
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="collapsible"][data-slot="trigger"]) {
|
|
3
3
|
outline: none;
|
|
4
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
5
|
-
transition-duration: var(--duration-fast);
|
|
6
|
-
transition-timing-function: var(--ease-standard);
|
|
7
4
|
}
|
|
8
5
|
|
|
9
6
|
:where([data-control-family="collapsible"][data-slot="trigger"] > svg) {
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
:where([data-control-family="color-picker"][data-slot="trigger"]) {
|
|
7
7
|
border-radius: var(--cui-color-picker-trigger-radius);
|
|
8
8
|
outline-style: none;
|
|
9
|
-
transition-property:
|
|
10
|
-
color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
9
|
+
transition-property: transform, translate, scale, rotate;
|
|
11
10
|
transition-timing-function: var(--ease-standard);
|
|
12
11
|
transition-duration: var(--duration-fast);
|
|
13
12
|
box-shadow: var(--cui-color-picker-trigger-shadow);
|
|
@@ -53,10 +53,6 @@
|
|
|
53
53
|
--_color-picker-swatch-add-foreground: var(--muted-foreground);
|
|
54
54
|
color: var(--_color-picker-swatch-add-foreground);
|
|
55
55
|
outline-style: none;
|
|
56
|
-
transition-property:
|
|
57
|
-
color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
58
|
-
transition-timing-function: var(--ease-standard);
|
|
59
|
-
transition-duration: var(--duration-fast);
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
@media (hover: hover) {
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
:where([data-control-family="context"][data-slot="root"]),
|
|
3
3
|
:where([data-control-family="context"][data-slot="content"]) {
|
|
4
4
|
--cui-context-graph-radius: 9999px;
|
|
5
|
+
--cui-context-legend-indicator-radius: 9999px;
|
|
5
6
|
--cui-context-limit-marker-color: var(--destructive-text);
|
|
6
7
|
--cui-context-overage-fill: oklch(from var(--destructive-text) l c h / 0.22);
|
|
7
8
|
--cui-context-track-fill: var(--muted);
|
|
9
|
+
--cui-context-segment-cache-fill: oklch(from var(--muted-foreground) l c h / 0.55);
|
|
8
10
|
--cui-context-segment-message-fill: oklch(from var(--primary) l c h / 0.65);
|
|
9
11
|
--cui-context-segment-reasoning-fill: oklch(from var(--foreground) l c h / 0.5);
|
|
10
12
|
--cui-context-segment-source-fill: oklch(from var(--accent-foreground) l c h / 0.65);
|
|
13
|
+
--cui-context-segment-system-fill: oklch(from var(--foreground) l c h / 0.75);
|
|
11
14
|
--cui-context-segment-tool-fill: var(--primary);
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -34,19 +37,7 @@
|
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
:where([data-control-family="context"][data-slot="trigger-label"]) {
|
|
37
|
-
|
|
38
|
-
opacity: 0;
|
|
39
|
-
transition-property: max-width, opacity;
|
|
40
|
-
transition-duration: var(--duration-fast);
|
|
41
|
-
transition-timing-function: var(--ease-standard);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:where(
|
|
45
|
-
[data-context-trigger-button="true"]:is(:hover, :focus-visible, [data-popup-open])
|
|
46
|
-
[data-control-family="context"][data-slot="trigger-label"]
|
|
47
|
-
) {
|
|
48
|
-
max-inline-size: calc(var(--spacing) * 32);
|
|
49
|
-
opacity: 1;
|
|
40
|
+
font-variant-numeric: tabular-nums;
|
|
50
41
|
}
|
|
51
42
|
|
|
52
43
|
:where([data-control-family="context"][data-slot="content-grid"]) {
|
|
@@ -72,16 +63,19 @@
|
|
|
72
63
|
:where([data-control-family="context"][data-slot="title"]) {
|
|
73
64
|
font-size: var(--text-sm);
|
|
74
65
|
font-weight: var(--font-weight-medium);
|
|
66
|
+
text-wrap: balance;
|
|
75
67
|
}
|
|
76
68
|
|
|
77
69
|
:where([data-control-family="context"][data-slot="description"]) {
|
|
78
70
|
color: var(--muted-foreground);
|
|
79
71
|
font-size: var(--text-caption);
|
|
72
|
+
text-wrap: pretty;
|
|
80
73
|
}
|
|
81
74
|
|
|
82
75
|
:where([data-control-family="context"][data-slot="summary"]) {
|
|
83
76
|
gap: calc(var(--spacing) * 3);
|
|
84
77
|
font-size: var(--text-sm);
|
|
78
|
+
font-variant-numeric: tabular-nums;
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
:where([data-control-family="context"][data-slot="summary-value"]) {
|
|
@@ -103,7 +97,7 @@
|
|
|
103
97
|
}
|
|
104
98
|
|
|
105
99
|
:where([data-control-family="context"][data-slot="segment"][data-kind="system"]) {
|
|
106
|
-
fill:
|
|
100
|
+
fill: var(--cui-context-segment-system-fill);
|
|
107
101
|
}
|
|
108
102
|
|
|
109
103
|
:where([data-control-family="context"][data-slot="segment"][data-kind="tool"]) {
|
|
@@ -123,7 +117,7 @@
|
|
|
123
117
|
}
|
|
124
118
|
|
|
125
119
|
:where([data-control-family="context"][data-slot="segment"][data-kind="cache"]) {
|
|
126
|
-
fill:
|
|
120
|
+
fill: var(--cui-context-segment-cache-fill);
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
:where([data-control-family="context"][data-slot="overage"]) {
|
|
@@ -138,12 +132,12 @@
|
|
|
138
132
|
margin-block-start: calc(var(--spacing) * 1);
|
|
139
133
|
inline-size: calc(var(--spacing) * 2.5);
|
|
140
134
|
block-size: calc(var(--spacing) * 2.5);
|
|
141
|
-
border-radius:
|
|
135
|
+
border-radius: var(--cui-context-legend-indicator-radius);
|
|
142
136
|
background: var(--border);
|
|
143
137
|
}
|
|
144
138
|
|
|
145
139
|
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="system"]) {
|
|
146
|
-
background:
|
|
140
|
+
background: var(--cui-context-segment-system-fill);
|
|
147
141
|
}
|
|
148
142
|
|
|
149
143
|
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="tool"]) {
|
|
@@ -163,7 +157,7 @@
|
|
|
163
157
|
}
|
|
164
158
|
|
|
165
159
|
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="cache"]) {
|
|
166
|
-
background:
|
|
160
|
+
background: var(--cui-context-segment-cache-fill);
|
|
167
161
|
}
|
|
168
162
|
|
|
169
163
|
:where([data-control-family="context"][data-slot="legend-item"][data-tone="available"] [data-slot="legend-indicator"]) {
|
|
@@ -194,6 +188,24 @@
|
|
|
194
188
|
initial-value: 0px;
|
|
195
189
|
}
|
|
196
190
|
|
|
191
|
+
@property --cui-context-legend-indicator-radius {
|
|
192
|
+
syntax: "<length>";
|
|
193
|
+
inherits: true;
|
|
194
|
+
initial-value: 0px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@property --cui-context-segment-system-fill {
|
|
198
|
+
syntax: "<color>";
|
|
199
|
+
inherits: true;
|
|
200
|
+
initial-value: transparent;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@property --cui-context-segment-cache-fill {
|
|
204
|
+
syntax: "<color>";
|
|
205
|
+
inherits: true;
|
|
206
|
+
initial-value: transparent;
|
|
207
|
+
}
|
|
208
|
+
|
|
197
209
|
@property --cui-context-track-fill {
|
|
198
210
|
syntax: "<color>";
|
|
199
211
|
inherits: true;
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
--cui-dockable-panel-background: var(--card);
|
|
6
6
|
--cui-dockable-panel-foreground: var(--card-foreground);
|
|
7
7
|
--cui-dockable-panel-border-color: oklch(from var(--border) l c h / 0.8);
|
|
8
|
+
--cui-dockable-panel-border-width: 1px;
|
|
8
9
|
--cui-dockable-panel-shadow: var(--shadow-pop);
|
|
9
10
|
--cui-dockable-panel-drop-zone-active-background: oklch(from var(--primary) l c h / 0.12);
|
|
10
11
|
--cui-dockable-panel-drop-zone-active-border-color: oklch(from var(--primary) l c h / 0.55);
|
|
11
|
-
border:
|
|
12
|
+
border: var(--cui-dockable-panel-border-width) solid var(--cui-dockable-panel-border-color);
|
|
12
13
|
border-radius: var(--cui-dockable-panel-radius);
|
|
13
14
|
outline: none;
|
|
14
15
|
background-color: var(--cui-dockable-panel-background);
|
|
@@ -88,6 +89,12 @@
|
|
|
88
89
|
initial-value: transparent;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
@property --cui-dockable-panel-border-width {
|
|
93
|
+
syntax: "<length>";
|
|
94
|
+
inherits: true;
|
|
95
|
+
initial-value: 0px;
|
|
96
|
+
}
|
|
97
|
+
|
|
91
98
|
@property --cui-dockable-panel-shadow {
|
|
92
99
|
syntax: "*";
|
|
93
100
|
inherits: true;
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
--cui-dropzone-surface-radius: var(--radius-panel);
|
|
4
4
|
--cui-dropzone-surface-foreground: var(--foreground);
|
|
5
5
|
--cui-dropzone-surface-border-color: var(--border);
|
|
6
|
+
--cui-dropzone-surface-border-width: 1px;
|
|
6
7
|
--cui-dropzone-accept-border-color: var(--primary);
|
|
7
8
|
--cui-dropzone-reject-border-color: var(--destructive);
|
|
8
9
|
--cui-dropzone-overlay-background: oklch(from var(--card) l c h / 0.95);
|
|
9
10
|
}
|
|
10
11
|
:where([data-control-family="dropzone"][data-slot="trigger"]),
|
|
11
12
|
:where([data-control-family="dropzone"][data-slot="overlay"]) {
|
|
12
|
-
border:
|
|
13
|
+
border: var(--cui-dropzone-surface-border-width) dashed var(--cui-dropzone-surface-border-color);
|
|
13
14
|
border-radius: var(--cui-dropzone-surface-radius);
|
|
14
15
|
color: var(--cui-dropzone-surface-foreground);
|
|
15
16
|
}
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
background-color: var(--card);
|
|
22
23
|
text-align: center;
|
|
23
24
|
outline-style: none;
|
|
24
|
-
transition-property:
|
|
25
|
+
transition-property: border-color, color, opacity, box-shadow;
|
|
25
26
|
transition-duration: var(--duration-fast);
|
|
26
27
|
transition-timing-function: var(--ease-standard);
|
|
27
28
|
}
|
|
@@ -130,6 +131,12 @@
|
|
|
130
131
|
initial-value: transparent;
|
|
131
132
|
}
|
|
132
133
|
|
|
134
|
+
@property --cui-dropzone-surface-border-width {
|
|
135
|
+
syntax: "<length>";
|
|
136
|
+
inherits: true;
|
|
137
|
+
initial-value: 0px;
|
|
138
|
+
}
|
|
139
|
+
|
|
133
140
|
@property --cui-dropzone-accept-border-color {
|
|
134
141
|
syntax: "<color>";
|
|
135
142
|
inherits: true;
|
|
@@ -26,4 +26,10 @@
|
|
|
26
26
|
:where([data-control-family="button"][data-dynamic-notification-close="true"]:hover) {
|
|
27
27
|
color: inherit;
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
@media (pointer: coarse) {
|
|
31
|
+
:where([data-control-family="dynamic-notification"][data-slot="reply-input"]) {
|
|
32
|
+
font-size: max(16px, var(--text-body));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
29
35
|
}
|
|
@@ -3,52 +3,75 @@
|
|
|
3
3
|
--cui-empty-radius: var(--radius-lg);
|
|
4
4
|
--cui-empty-background: transparent;
|
|
5
5
|
--cui-empty-border-color: transparent;
|
|
6
|
-
--cui-empty-border-width:
|
|
6
|
+
--cui-empty-border-width: 1px;
|
|
7
7
|
--cui-empty-border-style: solid;
|
|
8
8
|
--cui-empty-media-radius: var(--radius-lg);
|
|
9
9
|
--cui-empty-media-background: var(--muted);
|
|
10
|
+
--cui-empty-shadow: none;
|
|
11
|
+
--cui-empty-foreground: var(--foreground);
|
|
12
|
+
--cui-empty-description-foreground: var(--muted-foreground);
|
|
13
|
+
--cui-empty-media-foreground: var(--muted-foreground);
|
|
14
|
+
--cui-empty-padding: calc(var(--spacing) * 6);
|
|
15
|
+
--cui-empty-gap: calc(var(--spacing) * 6);
|
|
16
|
+
--cui-empty-header-gap: calc(var(--spacing) * 2);
|
|
17
|
+
--cui-empty-content-gap: calc(var(--spacing) * 2);
|
|
18
|
+
--cui-empty-content-size: 24rem;
|
|
19
|
+
--cui-empty-media-size: calc(var(--spacing) * 10);
|
|
20
|
+
--cui-empty-media-icon-size: calc(var(--spacing) * 5);
|
|
21
|
+
--cui-empty-font-size: var(--text-sm);
|
|
22
|
+
--cui-empty-title-font-weight: var(--font-weight-medium);
|
|
10
23
|
border: var(--cui-empty-border-width) var(--cui-empty-border-style) var(--cui-empty-border-color);
|
|
11
24
|
border-radius: var(--cui-empty-radius);
|
|
12
25
|
background: var(--cui-empty-background);
|
|
13
|
-
box-shadow:
|
|
14
|
-
color: var(--foreground);
|
|
26
|
+
box-shadow: var(--cui-empty-shadow);
|
|
27
|
+
color: var(--cui-empty-foreground);
|
|
15
28
|
text-align: center;
|
|
16
29
|
text-wrap: balance;
|
|
17
|
-
gap:
|
|
18
|
-
padding:
|
|
30
|
+
gap: var(--cui-empty-gap);
|
|
31
|
+
padding: var(--cui-empty-padding);
|
|
32
|
+
overflow-wrap: anywhere;
|
|
19
33
|
}
|
|
20
34
|
|
|
21
35
|
:where([data-control-family="empty"][data-slot="media"]) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
block-size: calc(var(--spacing) * 10);
|
|
36
|
+
inline-size: var(--cui-empty-media-size);
|
|
37
|
+
block-size: var(--cui-empty-media-size);
|
|
25
38
|
border-radius: var(--cui-empty-media-radius);
|
|
26
39
|
background: var(--cui-empty-media-background);
|
|
27
|
-
color: var(--
|
|
40
|
+
color: var(--cui-empty-media-foreground);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where([data-control-family="empty"][data-slot="media"] > svg) {
|
|
44
|
+
inline-size: var(--cui-empty-media-icon-size);
|
|
45
|
+
block-size: var(--cui-empty-media-icon-size);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-control-family="empty"][data-slot="header"]),
|
|
49
|
+
:where([data-control-family="empty"][data-slot="content"]) {
|
|
50
|
+
max-inline-size: min(100%, var(--cui-empty-content-size));
|
|
28
51
|
}
|
|
29
52
|
|
|
30
53
|
:where([data-control-family="empty"][data-slot="content"]) {
|
|
31
|
-
gap:
|
|
32
|
-
font-size: var(--
|
|
54
|
+
gap: var(--cui-empty-content-gap);
|
|
55
|
+
font-size: var(--cui-empty-font-size);
|
|
33
56
|
line-height: var(--text-sm--line-height);
|
|
34
57
|
text-wrap: balance;
|
|
35
58
|
}
|
|
36
59
|
|
|
37
60
|
:where([data-control-family="empty"][data-slot="description"]) {
|
|
38
|
-
font-size: var(--
|
|
61
|
+
font-size: var(--cui-empty-font-size);
|
|
39
62
|
line-height: var(--leading-relaxed);
|
|
40
|
-
color: var(--
|
|
63
|
+
color: var(--cui-empty-description-foreground);
|
|
41
64
|
}
|
|
42
65
|
|
|
43
66
|
:where([data-control-family="empty"][data-slot="title"]) {
|
|
44
|
-
font-size: var(--
|
|
67
|
+
font-size: var(--cui-empty-font-size);
|
|
45
68
|
line-height: var(--text-sm--line-height);
|
|
46
|
-
font-weight: var(--font-weight
|
|
47
|
-
color: var(--foreground);
|
|
69
|
+
font-weight: var(--cui-empty-title-font-weight);
|
|
70
|
+
color: var(--cui-empty-foreground);
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
:where([data-control-family="empty"][data-slot="header"]) {
|
|
51
|
-
gap:
|
|
74
|
+
gap: var(--cui-empty-header-gap);
|
|
52
75
|
text-align: center;
|
|
53
76
|
}
|
|
54
77
|
}
|
|
@@ -94,3 +117,81 @@
|
|
|
94
117
|
inherits: true;
|
|
95
118
|
initial-value: transparent;
|
|
96
119
|
}
|
|
120
|
+
|
|
121
|
+
@property --cui-empty-shadow {
|
|
122
|
+
syntax: "*";
|
|
123
|
+
inherits: true;
|
|
124
|
+
initial-value: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@property --cui-empty-foreground {
|
|
128
|
+
syntax: "<color>";
|
|
129
|
+
inherits: true;
|
|
130
|
+
initial-value: transparent;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@property --cui-empty-description-foreground {
|
|
134
|
+
syntax: "<color>";
|
|
135
|
+
inherits: true;
|
|
136
|
+
initial-value: transparent;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@property --cui-empty-media-foreground {
|
|
140
|
+
syntax: "<color>";
|
|
141
|
+
inherits: true;
|
|
142
|
+
initial-value: transparent;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@property --cui-empty-padding {
|
|
146
|
+
syntax: "<length>";
|
|
147
|
+
inherits: true;
|
|
148
|
+
initial-value: 0px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@property --cui-empty-gap {
|
|
152
|
+
syntax: "<length>";
|
|
153
|
+
inherits: true;
|
|
154
|
+
initial-value: 0px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@property --cui-empty-header-gap {
|
|
158
|
+
syntax: "<length>";
|
|
159
|
+
inherits: true;
|
|
160
|
+
initial-value: 0px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@property --cui-empty-content-gap {
|
|
164
|
+
syntax: "<length>";
|
|
165
|
+
inherits: true;
|
|
166
|
+
initial-value: 0px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@property --cui-empty-content-size {
|
|
170
|
+
syntax: "<length>";
|
|
171
|
+
inherits: true;
|
|
172
|
+
initial-value: 0px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@property --cui-empty-media-size {
|
|
176
|
+
syntax: "<length>";
|
|
177
|
+
inherits: true;
|
|
178
|
+
initial-value: 0px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@property --cui-empty-media-icon-size {
|
|
182
|
+
syntax: "<length>";
|
|
183
|
+
inherits: true;
|
|
184
|
+
initial-value: 0px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@property --cui-empty-font-size {
|
|
188
|
+
syntax: "<length>";
|
|
189
|
+
inherits: true;
|
|
190
|
+
initial-value: 0px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@property --cui-empty-title-font-weight {
|
|
194
|
+
syntax: "<number>";
|
|
195
|
+
inherits: true;
|
|
196
|
+
initial-value: 500;
|
|
197
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--cui-environment-variables-error-foreground: var(--destructive-text);
|
|
4
4
|
--cui-environment-variables-message-background: oklch(from var(--destructive) l c h / 0.05);
|
|
5
5
|
--cui-environment-variables-message-border-color: oklch(from var(--destructive) l c h / 0.4);
|
|
6
|
+
--cui-environment-variables-message-border-width: 1px;
|
|
6
7
|
--cui-environment-variables-message-foreground: var(--destructive-text);
|
|
7
8
|
--cui-environment-variables-meta-foreground: var(--muted-foreground);
|
|
8
9
|
--cui-environment-variables-title-foreground: var(--foreground);
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
color: var(--cui-environment-variables-title-foreground);
|
|
53
54
|
font-size: var(--text-label);
|
|
54
55
|
font-weight: var(--font-weight-semibold);
|
|
56
|
+
text-wrap: balance;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
:where(
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
padding-inline: calc(var(--spacing) * 3);
|
|
92
94
|
padding-block: calc(var(--spacing) * 2);
|
|
93
95
|
background: var(--cui-environment-variables-message-background);
|
|
94
|
-
border-block:
|
|
96
|
+
border-block: var(--cui-environment-variables-message-border-width) solid var(--cui-environment-variables-message-border-color);
|
|
95
97
|
color: var(--cui-environment-variables-message-foreground);
|
|
96
98
|
font-size: var(--text-caption);
|
|
97
99
|
}
|
|
@@ -171,3 +173,9 @@
|
|
|
171
173
|
inherits: true;
|
|
172
174
|
initial-value: transparent;
|
|
173
175
|
}
|
|
176
|
+
|
|
177
|
+
@property --cui-environment-variables-message-border-width {
|
|
178
|
+
syntax: "<length>";
|
|
179
|
+
inherits: true;
|
|
180
|
+
initial-value: 0px;
|
|
181
|
+
}
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]) {
|
|
27
27
|
border-radius: var(--radius-control);
|
|
28
28
|
outline: none;
|
|
29
|
-
transition-property: color, box-shadow;
|
|
30
|
-
transition-duration: var(--duration-fast);
|
|
31
|
-
transition-timing-function: var(--ease-standard);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
@media (hover: hover) {
|
|
@@ -36,6 +33,7 @@
|
|
|
36
33
|
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]:hover),
|
|
37
34
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]:hover),
|
|
38
35
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]:hover) {
|
|
36
|
+
background: var(--hover-fill);
|
|
39
37
|
color: var(--foreground);
|
|
40
38
|
}
|
|
41
39
|
}
|
|
@@ -70,9 +68,6 @@
|
|
|
70
68
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]),
|
|
71
69
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]) {
|
|
72
70
|
outline: none;
|
|
73
|
-
transition-property: color, background-color;
|
|
74
|
-
transition-duration: var(--duration-fast);
|
|
75
|
-
transition-timing-function: var(--ease-standard);
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]:active),
|
|
@@ -105,6 +100,7 @@
|
|
|
105
100
|
color: var(--foreground);
|
|
106
101
|
font-size: var(--text-label);
|
|
107
102
|
font-weight: var(--font-weight-medium);
|
|
103
|
+
text-wrap: balance;
|
|
108
104
|
}
|
|
109
105
|
|
|
110
106
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="label"]) {
|
|
@@ -120,6 +116,7 @@
|
|
|
120
116
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="description"]) {
|
|
121
117
|
color: var(--muted-foreground);
|
|
122
118
|
font-size: var(--text-caption);
|
|
119
|
+
text-wrap: pretty;
|
|
123
120
|
}
|
|
124
121
|
|
|
125
122
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="error"]) {
|