@ctrl-ui/react 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/dist/action-bar.d.ts +44 -0
- package/dist/action-bar.js +89 -0
- package/dist/activity.d.ts +53 -0
- package/dist/activity.js +188 -0
- package/dist/audio-recorder.d.ts +32 -0
- package/dist/audio-recorder.js +235 -0
- package/dist/audio-visualizer.d.ts +12 -0
- package/dist/audio-visualizer.js +58 -0
- package/dist/blocks/chat.d.ts +10 -0
- package/dist/blocks/chat.js +12 -0
- package/dist/blocks/coding-agent.d.ts +61 -0
- package/dist/blocks/coding-agent.js +255 -0
- package/dist/blocks/file-explorer-data.d.ts +57 -0
- package/dist/blocks/file-explorer-data.js +74 -0
- package/dist/blocks/file-explorer.d.ts +24 -0
- package/dist/blocks/file-explorer.js +427 -0
- package/dist/blocks/settings-data.d.ts +36 -0
- package/dist/blocks/settings-data.js +66 -0
- package/dist/blocks/settings.d.ts +19 -0
- package/dist/blocks/settings.js +282 -0
- package/dist/blocks/theme-toggle.d.ts +43 -0
- package/dist/blocks/theme-toggle.js +180 -0
- package/dist/chat-composer-attachment.d.ts +55 -0
- package/dist/chat-composer-attachment.js +267 -0
- package/dist/chat-composer-editor/extensions/mention.d.ts +14 -0
- package/dist/chat-composer-editor/extensions/mention.js +278 -0
- package/dist/chat-composer-editor/ghost.d.ts +5 -0
- package/dist/chat-composer-editor/ghost.js +55 -0
- package/dist/chat-composer-editor/schema.d.ts +6 -0
- package/dist/chat-composer-editor/schema.js +25 -0
- package/dist/chat-composer-editor/serialize.d.ts +6 -0
- package/dist/chat-composer-editor/serialize.js +16 -0
- package/dist/chat-composer-editor/types.d.ts +29 -0
- package/dist/chat-composer-editor/types.js +0 -0
- package/dist/chat-composer-editor.d.ts +9 -0
- package/dist/chat-composer-editor.js +154 -0
- package/dist/chat-composer.d.ts +60 -0
- package/dist/chat-composer.js +134 -0
- package/dist/chat-layout.d.ts +27 -0
- package/dist/chat-layout.js +114 -0
- package/dist/chat-message.d.ts +31 -0
- package/dist/chat-message.js +95 -0
- package/dist/code-block-editor.d.ts +59 -0
- package/dist/code-block-editor.js +250 -0
- package/dist/context-model.d.ts +33 -0
- package/dist/context-model.js +52 -0
- package/dist/context.d.ts +47 -0
- package/dist/context.js +335 -0
- package/dist/control-props.d.ts +28 -0
- package/dist/control-props.js +4 -0
- package/dist/control-variants.d.ts +8 -0
- package/dist/control-variants.js +14 -0
- package/dist/dynamic-notification-glass.d.ts +10 -0
- package/dist/dynamic-notification-glass.js +311 -0
- package/dist/dynamic-notification-liquid.d.ts +24 -0
- package/dist/dynamic-notification-liquid.js +682 -0
- package/dist/dynamic-notification-siri-wave.d.ts +4 -0
- package/dist/dynamic-notification-siri-wave.js +82 -0
- package/dist/dynamic-notification.d.ts +74 -0
- package/dist/dynamic-notification.js +342 -0
- package/dist/environment-variables.d.ts +124 -0
- package/dist/environment-variables.js +492 -0
- package/dist/extensions/create-track-highlight.d.ts +12 -0
- package/dist/extensions/create-track-highlight.js +147 -0
- package/dist/extensions/track-highlight.d.ts +22 -0
- package/dist/extensions/track-highlight.js +52 -0
- package/dist/hooks/use-audio-recorder.d.ts +107 -0
- package/dist/hooks/use-audio-recorder.js +577 -0
- package/dist/hooks/use-chat-composer.d.ts +56 -0
- package/dist/hooks/use-chat-composer.js +63 -0
- package/dist/hooks/use-chat-message.d.ts +28 -0
- package/dist/hooks/use-chat-message.js +24 -0
- package/dist/hooks/use-color-area.d.ts +18 -0
- package/dist/hooks/use-color-area.js +60 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +22 -0
- package/dist/hooks/use-copy-to-clipboard.js +90 -0
- package/dist/hooks/use-dropzone.d.ts +59 -0
- package/dist/hooks/use-dropzone.js +372 -0
- package/dist/hooks/use-dynamic-notification.d.ts +37 -0
- package/dist/hooks/use-dynamic-notification.js +87 -0
- package/dist/hooks/use-environment-variables.d.ts +51 -0
- package/dist/hooks/use-environment-variables.js +188 -0
- package/dist/hooks/use-mobile.d.ts +5 -0
- package/dist/hooks/use-mobile.js +29 -0
- package/dist/hooks/use-textarea-trigger-menu.d.ts +8 -0
- package/dist/hooks/use-textarea-trigger-menu.js +69 -0
- package/dist/hooks/use-trigger-menu.d.ts +49 -0
- package/dist/hooks/use-trigger-menu.js +102 -0
- package/dist/hooks/use-user-ask.d.ts +48 -0
- package/dist/hooks/use-user-ask.js +167 -0
- package/dist/inline-attachment.d.ts +37 -0
- package/dist/inline-attachment.js +192 -0
- package/dist/inline-citation.d.ts +56 -0
- package/dist/inline-citation.js +319 -0
- package/dist/knob-contracts/accordion-knobs.d.ts +5 -0
- package/dist/knob-contracts/accordion-knobs.js +9 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +5 -0
- package/dist/knob-contracts/action-bar-knobs.js +4 -0
- package/dist/knob-contracts/activity-knobs.d.ts +5 -0
- package/dist/knob-contracts/activity-knobs.js +9 -0
- package/dist/knob-contracts/alert-knobs.d.ts +5 -0
- package/dist/knob-contracts/alert-knobs.js +9 -0
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +5 -0
- package/dist/knob-contracts/audio-recorder-knobs.js +9 -0
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +5 -0
- package/dist/knob-contracts/audio-visualizer-knobs.js +9 -0
- package/dist/knob-contracts/avatar-knobs.d.ts +5 -0
- package/dist/knob-contracts/avatar-knobs.js +9 -0
- package/dist/knob-contracts/badge-knobs.d.ts +5 -0
- package/dist/knob-contracts/badge-knobs.js +9 -0
- package/dist/knob-contracts/button-group-knobs.d.ts +5 -0
- package/dist/knob-contracts/button-group-knobs.js +9 -0
- package/dist/knob-contracts/button-knobs.d.ts +5 -0
- package/dist/knob-contracts/button-knobs.js +25 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +5 -0
- package/dist/knob-contracts/calendar-knobs.js +10 -0
- package/dist/knob-contracts/card-knobs.d.ts +5 -0
- package/dist/knob-contracts/card-knobs.js +11 -0
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +11 -0
- package/dist/knob-contracts/chat-composer-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-composer-knobs.js +18 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-layout-knobs.js +11 -0
- package/dist/knob-contracts/chat-message-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-message-knobs.js +17 -0
- package/dist/knob-contracts/choice-knobs.d.ts +5 -0
- package/dist/knob-contracts/choice-knobs.js +9 -0
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-block-editor-knobs.js +11 -0
- package/dist/knob-contracts/code-diff-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-diff-knobs.js +18 -0
- package/dist/knob-contracts/code-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-knobs.js +11 -0
- package/dist/knob-contracts/collapsible-knobs.d.ts +5 -0
- package/dist/knob-contracts/collapsible-knobs.js +4 -0
- package/dist/knob-contracts/color-picker-knobs.d.ts +5 -0
- package/dist/knob-contracts/color-picker-knobs.js +12 -0
- package/dist/knob-contracts/context-knobs.d.ts +5 -0
- package/dist/knob-contracts/context-knobs.js +13 -0
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +5 -0
- package/dist/knob-contracts/dockable-panel-knobs.js +12 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +5 -0
- package/dist/knob-contracts/dropzone-knobs.js +11 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +5 -0
- package/dist/knob-contracts/dynamic-notification-knobs.js +18 -0
- package/dist/knob-contracts/empty-knobs.d.ts +5 -0
- package/dist/knob-contracts/empty-knobs.js +12 -0
- package/dist/knob-contracts/environment-variables-knobs.d.ts +5 -0
- package/dist/knob-contracts/environment-variables-knobs.js +11 -0
- package/dist/knob-contracts/field-knobs.d.ts +5 -0
- package/dist/knob-contracts/field-knobs.js +16 -0
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +5 -0
- package/dist/knob-contracts/gradient-editor-knobs.js +13 -0
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +5 -0
- package/dist/knob-contracts/infinite-canvas-knobs.js +13 -0
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +5 -0
- package/dist/knob-contracts/inline-attachment-knobs.js +14 -0
- package/dist/knob-contracts/inline-citation-knobs.d.ts +5 -0
- package/dist/knob-contracts/inline-citation-knobs.js +14 -0
- package/dist/knob-contracts/item-knobs.d.ts +5 -0
- package/dist/knob-contracts/item-knobs.js +10 -0
- package/dist/knob-contracts/kbd-knobs.d.ts +5 -0
- package/dist/knob-contracts/kbd-knobs.js +10 -0
- package/dist/knob-contracts/markdown-block-knobs.d.ts +5 -0
- package/dist/knob-contracts/markdown-block-knobs.js +11 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +5 -0
- package/dist/knob-contracts/markdown-knobs.js +14 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +5 -0
- package/dist/knob-contracts/morphing-panel-knobs.js +11 -0
- package/dist/knob-contracts/pagination-knobs.d.ts +5 -0
- package/dist/knob-contracts/pagination-knobs.js +10 -0
- package/dist/knob-contracts/phone-input-knobs.d.ts +5 -0
- package/dist/knob-contracts/phone-input-knobs.js +10 -0
- package/dist/knob-contracts/popup-knobs.d.ts +5 -0
- package/dist/knob-contracts/popup-knobs.js +21 -0
- package/dist/knob-contracts/range-knobs.d.ts +5 -0
- package/dist/knob-contracts/range-knobs.js +13 -0
- package/dist/knob-contracts/resizable-knobs.d.ts +5 -0
- package/dist/knob-contracts/resizable-knobs.js +14 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +5 -0
- package/dist/knob-contracts/rich-tooltip-knobs.js +13 -0
- package/dist/knob-contracts/scroll-area-knobs.d.ts +5 -0
- package/dist/knob-contracts/scroll-area-knobs.js +8 -0
- package/dist/knob-contracts/separator-knobs.d.ts +5 -0
- package/dist/knob-contracts/separator-knobs.js +4 -0
- package/dist/knob-contracts/sidebar-knobs.d.ts +5 -0
- package/dist/knob-contracts/sidebar-knobs.js +26 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +5 -0
- package/dist/knob-contracts/skeleton-knobs.js +4 -0
- package/dist/knob-contracts/source-badge-knobs.d.ts +5 -0
- package/dist/knob-contracts/source-badge-knobs.js +11 -0
- package/dist/knob-contracts/spinner-knobs.d.ts +5 -0
- package/dist/knob-contracts/spinner-knobs.js +4 -0
- package/dist/knob-contracts/stepper-knobs.d.ts +5 -0
- package/dist/knob-contracts/stepper-knobs.js +11 -0
- package/dist/knob-contracts/switch-knobs.d.ts +5 -0
- package/dist/knob-contracts/switch-knobs.js +12 -0
- package/dist/knob-contracts/table-knobs.d.ts +5 -0
- package/dist/knob-contracts/table-knobs.js +12 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.js +8 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +5 -0
- package/dist/knob-contracts/tabs-knobs.js +16 -0
- package/dist/knob-contracts/task-list-knobs.d.ts +5 -0
- package/dist/knob-contracts/task-list-knobs.js +14 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +5 -0
- package/dist/knob-contracts/thread-rail-knobs.js +14 -0
- package/dist/knob-contracts/timeline-knobs.d.ts +5 -0
- package/dist/knob-contracts/timeline-knobs.js +12 -0
- package/dist/knob-contracts/toolbar-knobs.d.ts +5 -0
- package/dist/knob-contracts/toolbar-knobs.js +20 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +5 -0
- package/dist/knob-contracts/track-highlight-knobs.js +11 -0
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +5 -0
- package/dist/knob-contracts/transcript-divider-knobs.js +10 -0
- package/dist/knob-contracts/tree-knobs.d.ts +5 -0
- package/dist/knob-contracts/tree-knobs.js +13 -0
- package/dist/knob-contracts/user-ask-knobs.d.ts +5 -0
- package/dist/knob-contracts/user-ask-knobs.js +17 -0
- package/dist/lib/cn.d.ts +5 -0
- package/dist/lib/cn.js +34 -0
- package/dist/lib/code-block-shiki.d.ts +9 -0
- package/dist/lib/code-block-shiki.js +6 -0
- package/dist/lib/code-tokens.d.ts +28 -0
- package/dist/lib/code-tokens.js +160 -0
- package/dist/lib/color.d.ts +72 -0
- package/dist/lib/color.js +490 -0
- package/dist/lib/contrast.d.ts +30 -0
- package/dist/lib/contrast.js +64 -0
- package/dist/lib/diff.d.ts +50 -0
- package/dist/lib/diff.js +315 -0
- package/dist/lib/dropzone-validation.d.ts +66 -0
- package/dist/lib/dropzone-validation.js +228 -0
- package/dist/lib/env-file.d.ts +28 -0
- package/dist/lib/env-file.js +218 -0
- package/dist/lib/format-audio-recorder-duration.d.ts +4 -0
- package/dist/lib/format-audio-recorder-duration.js +7 -0
- package/dist/lib/liquid-glass-optics.d.ts +4 -0
- package/dist/lib/liquid-glass-optics.js +96 -0
- package/dist/lib/phone-input-format.d.ts +6 -0
- package/dist/lib/phone-input-format.js +26 -0
- package/dist/lib/phone-number.d.ts +18 -0
- package/dist/lib/phone-number.js +28 -0
- package/dist/lib/trigger-detect.d.ts +15 -0
- package/dist/lib/trigger-detect.js +77 -0
- package/dist/markdown-block.d.ts +25 -0
- package/dist/markdown-block.js +77 -0
- package/dist/skin.config.d.ts +5 -0
- package/dist/skin.config.js +4 -0
- package/dist/skin.d.ts +69 -0
- package/dist/skin.js +62 -0
- package/dist/source-badge.d.ts +23 -0
- package/dist/source-badge.js +72 -0
- package/dist/styles/chat-composer-editor.css +44 -0
- package/dist/styles/code.css +57 -0
- package/dist/styles/effects.css +126 -0
- package/dist/styles/index.css +81 -0
- package/dist/styles/recipes/accordion.css +87 -0
- package/dist/styles/recipes/action-bar.css +19 -0
- package/dist/styles/recipes/activity.css +129 -0
- package/dist/styles/recipes/alert.css +75 -0
- package/dist/styles/recipes/audio-recorder.css +102 -0
- package/dist/styles/recipes/audio-visualizer.css +90 -0
- package/dist/styles/recipes/avatar.css +52 -0
- package/dist/styles/recipes/badge.css +110 -0
- package/dist/styles/recipes/button-group.css +64 -0
- package/dist/styles/recipes/button.css +305 -0
- package/dist/styles/recipes/calendar.css +152 -0
- package/dist/styles/recipes/card.css +93 -0
- package/dist/styles/recipes/chat-composer-attachment.css +177 -0
- package/dist/styles/recipes/chat-composer.css +195 -0
- package/dist/styles/recipes/chat-layout.css +108 -0
- package/dist/styles/recipes/chat-message.css +160 -0
- package/dist/styles/recipes/choice.css +108 -0
- package/dist/styles/recipes/code-block-editor.css +136 -0
- package/dist/styles/recipes/code-diff.css +256 -0
- package/dist/styles/recipes/code.css +136 -0
- package/dist/styles/recipes/collapsible.css +27 -0
- package/dist/styles/recipes/color-picker-details.css +61 -0
- package/dist/styles/recipes/color-picker-values.css +117 -0
- package/dist/styles/recipes/color-picker.css +158 -0
- package/dist/styles/recipes/context.css +237 -0
- package/dist/styles/recipes/dockable-panel.css +106 -0
- package/dist/styles/recipes/dropzone.css +149 -0
- package/dist/styles/recipes/dynamic-notification-input.css +29 -0
- package/dist/styles/recipes/dynamic-notification-motion.css +298 -0
- package/dist/styles/recipes/dynamic-notification.css +241 -0
- package/dist/styles/recipes/empty.css +96 -0
- package/dist/styles/recipes/environment-variables.css +173 -0
- package/dist/styles/recipes/field-parts.css +148 -0
- package/dist/styles/recipes/field.css +234 -0
- package/dist/styles/recipes/gradient-editor.css +109 -0
- package/dist/styles/recipes/infinite-canvas.css +78 -0
- package/dist/styles/recipes/inline-attachment.css +182 -0
- package/dist/styles/recipes/inline-citation.css +174 -0
- package/dist/styles/recipes/item.css +107 -0
- package/dist/styles/recipes/kbd.css +55 -0
- package/dist/styles/recipes/markdown-block.css +75 -0
- package/dist/styles/recipes/markdown.css +204 -0
- package/dist/styles/recipes/morphing-panel.css +123 -0
- package/dist/styles/recipes/pagination.css +86 -0
- package/dist/styles/recipes/phone-input.css +105 -0
- package/dist/styles/recipes/popup-controls.css +59 -0
- package/dist/styles/recipes/popup-drawer.css +162 -0
- package/dist/styles/recipes/popup-lists.css +198 -0
- package/dist/styles/recipes/popup-motion.css +94 -0
- package/dist/styles/recipes/popup-toast.css +126 -0
- package/dist/styles/recipes/popup.css +396 -0
- package/dist/styles/recipes/range.css +259 -0
- package/dist/styles/recipes/resizable.css +170 -0
- package/dist/styles/recipes/rich-tooltip.css +272 -0
- package/dist/styles/recipes/scroll-area.css +59 -0
- package/dist/styles/recipes/separator.css +12 -0
- package/dist/styles/recipes/sidebar.css +345 -0
- package/dist/styles/recipes/skeleton.css +23 -0
- package/dist/styles/recipes/source-badge.css +77 -0
- package/dist/styles/recipes/spinner.css +33 -0
- package/dist/styles/recipes/stepper.css +178 -0
- package/dist/styles/recipes/switch.css +149 -0
- package/dist/styles/recipes/table-of-contents.css +107 -0
- package/dist/styles/recipes/table.css +124 -0
- package/dist/styles/recipes/tabs.css +235 -0
- package/dist/styles/recipes/task-list.css +146 -0
- package/dist/styles/recipes/thread-rail.css +247 -0
- package/dist/styles/recipes/timeline.css +107 -0
- package/dist/styles/recipes/toolbar.css +260 -0
- package/dist/styles/recipes/track-highlight.css +73 -0
- package/dist/styles/recipes/transcript-divider.css +64 -0
- package/dist/styles/recipes/tree.css +137 -0
- package/dist/styles/recipes/user-ask-details.css +45 -0
- package/dist/styles/recipes/user-ask.css +204 -0
- package/dist/styles/skin-theme.css +137 -0
- package/dist/styles/skin.css +143 -0
- package/dist/styles/theme.css +628 -0
- package/dist/styles/type-scale.css +45 -0
- package/dist/surface-variants.d.ts +6 -0
- package/dist/surface-variants.js +16 -0
- package/dist/task-list.d.ts +34 -0
- package/dist/task-list.js +177 -0
- package/dist/thread-rail.d.ts +52 -0
- package/dist/thread-rail.js +190 -0
- package/dist/transcript-divider.d.ts +15 -0
- package/dist/transcript-divider.js +25 -0
- package/dist/ui/accordion.d.ts +31 -0
- package/dist/ui/accordion.js +60 -0
- package/dist/ui/alert-dialog.d.ts +36 -0
- package/dist/ui/alert-dialog.js +100 -0
- package/dist/ui/alert.d.ts +21 -0
- package/dist/ui/alert.js +36 -0
- package/dist/ui/aspect-ratio.d.ts +8 -0
- package/dist/ui/aspect-ratio.js +17 -0
- package/dist/ui/autocomplete.d.ts +70 -0
- package/dist/ui/autocomplete.js +150 -0
- package/dist/ui/avatar.d.ts +24 -0
- package/dist/ui/avatar.js +44 -0
- package/dist/ui/badge.d.ts +20 -0
- package/dist/ui/badge.js +36 -0
- package/dist/ui/button-group.d.ts +24 -0
- package/dist/ui/button-group.js +45 -0
- package/dist/ui/button.d.ts +36 -0
- package/dist/ui/button.js +104 -0
- package/dist/ui/calendar.d.ts +11 -0
- package/dist/ui/calendar.js +160 -0
- package/dist/ui/card.d.ts +36 -0
- package/dist/ui/card.js +70 -0
- package/dist/ui/checkbox-group.d.ts +11 -0
- package/dist/ui/checkbox-group.js +16 -0
- package/dist/ui/checkbox.d.ts +23 -0
- package/dist/ui/checkbox.js +58 -0
- package/dist/ui/code-diff.d.ts +28 -0
- package/dist/ui/code-diff.js +561 -0
- package/dist/ui/code.d.ts +62 -0
- package/dist/ui/code.js +292 -0
- package/dist/ui/collapsible.d.ts +31 -0
- package/dist/ui/collapsible.js +72 -0
- package/dist/ui/color-picker.d.ts +137 -0
- package/dist/ui/color-picker.js +797 -0
- package/dist/ui/combobox-disabled-selection.d.ts +5 -0
- package/dist/ui/combobox-disabled-selection.js +11 -0
- package/dist/ui/combobox.d.ts +70 -0
- package/dist/ui/combobox.js +194 -0
- package/dist/ui/command.d.ts +44 -0
- package/dist/ui/command.js +166 -0
- package/dist/ui/context-menu.d.ts +86 -0
- package/dist/ui/context-menu.js +202 -0
- package/dist/ui/dialog.d.ts +38 -0
- package/dist/ui/dialog.js +124 -0
- package/dist/ui/dockable-panel-geometry.d.ts +18 -0
- package/dist/ui/dockable-panel-geometry.js +17 -0
- package/dist/ui/dockable-panel.d.ts +58 -0
- package/dist/ui/dockable-panel.js +366 -0
- package/dist/ui/drawer.d.ts +42 -0
- package/dist/ui/drawer.js +182 -0
- package/dist/ui/dropdown-menu.d.ts +46 -0
- package/dist/ui/dropdown-menu.js +89 -0
- package/dist/ui/dropzone.d.ts +66 -0
- package/dist/ui/dropzone.js +311 -0
- package/dist/ui/empty.d.ts +28 -0
- package/dist/ui/empty.js +59 -0
- package/dist/ui/field.d.ts +64 -0
- package/dist/ui/field.js +166 -0
- package/dist/ui/form.d.ts +10 -0
- package/dist/ui/form.js +17 -0
- package/dist/ui/gradient-editor.d.ts +47 -0
- package/dist/ui/gradient-editor.js +301 -0
- package/dist/ui/hover-card.d.ts +25 -0
- package/dist/ui/hover-card.js +46 -0
- package/dist/ui/infinite-canvas.d.ts +40 -0
- package/dist/ui/infinite-canvas.js +278 -0
- package/dist/ui/input-group.d.ts +21 -0
- package/dist/ui/input-group.js +44 -0
- package/dist/ui/input-otp.d.ts +38 -0
- package/dist/ui/input-otp.js +45 -0
- package/dist/ui/input.d.ts +12 -0
- package/dist/ui/input.js +18 -0
- package/dist/ui/item.d.ts +46 -0
- package/dist/ui/item.js +110 -0
- package/dist/ui/kbd.d.ts +12 -0
- package/dist/ui/kbd.js +23 -0
- package/dist/ui/markdown-elements.d.ts +52 -0
- package/dist/ui/markdown-elements.js +211 -0
- package/dist/ui/markdown.d.ts +14 -0
- package/dist/ui/markdown.js +31 -0
- package/dist/ui/menubar.d.ts +74 -0
- package/dist/ui/menubar.js +162 -0
- package/dist/ui/meter.d.ts +34 -0
- package/dist/ui/meter.js +57 -0
- package/dist/ui/morphing-panel.d.ts +24 -0
- package/dist/ui/morphing-panel.js +87 -0
- package/dist/ui/native-select.d.ts +12 -0
- package/dist/ui/native-select.js +41 -0
- package/dist/ui/navigation-menu.d.ts +51 -0
- package/dist/ui/navigation-menu.js +135 -0
- package/dist/ui/number-field.d.ts +72 -0
- package/dist/ui/number-field.js +124 -0
- package/dist/ui/pagination.d.ts +26 -0
- package/dist/ui/pagination.js +77 -0
- package/dist/ui/phone-input.d.ts +30 -0
- package/dist/ui/phone-input.js +263 -0
- package/dist/ui/popover.d.ts +34 -0
- package/dist/ui/popover.js +87 -0
- package/dist/ui/progress.d.ts +34 -0
- package/dist/ui/progress.js +57 -0
- package/dist/ui/radio-group.d.ts +29 -0
- package/dist/ui/radio-group.js +37 -0
- package/dist/ui/resizable.d.ts +56 -0
- package/dist/ui/resizable.js +82 -0
- package/dist/ui/responsive-dialog.d.ts +18 -0
- package/dist/ui/responsive-dialog.js +121 -0
- package/dist/ui/rich-tooltip-tour.d.ts +12 -0
- package/dist/ui/rich-tooltip-tour.js +20 -0
- package/dist/ui/rich-tooltip.d.ts +83 -0
- package/dist/ui/rich-tooltip.js +331 -0
- package/dist/ui/scroll-area.d.ts +25 -0
- package/dist/ui/scroll-area.js +93 -0
- package/dist/ui/select.d.ts +44 -0
- package/dist/ui/select.js +124 -0
- package/dist/ui/separator.d.ts +9 -0
- package/dist/ui/separator.js +16 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/sheet.js +76 -0
- package/dist/ui/sidebar.d.ts +88 -0
- package/dist/ui/sidebar.js +362 -0
- package/dist/ui/skeleton.d.ts +8 -0
- package/dist/ui/skeleton.js +13 -0
- package/dist/ui/slider.d.ts +24 -0
- package/dist/ui/slider.js +114 -0
- package/dist/ui/spinner.d.ts +12 -0
- package/dist/ui/spinner.js +26 -0
- package/dist/ui/stepper.d.ts +58 -0
- package/dist/ui/stepper.js +232 -0
- package/dist/ui/switch.d.ts +26 -0
- package/dist/ui/switch.js +71 -0
- package/dist/ui/table-of-contents.d.ts +22 -0
- package/dist/ui/table-of-contents.js +181 -0
- package/dist/ui/table.d.ts +37 -0
- package/dist/ui/table.js +83 -0
- package/dist/ui/tabs.d.ts +36 -0
- package/dist/ui/tabs.js +127 -0
- package/dist/ui/textarea.d.ts +9 -0
- package/dist/ui/textarea.js +16 -0
- package/dist/ui/timeline.d.ts +40 -0
- package/dist/ui/timeline.js +80 -0
- package/dist/ui/toast.d.ts +28 -0
- package/dist/ui/toast.js +132 -0
- package/dist/ui/toggle.d.ts +20 -0
- package/dist/ui/toggle.js +71 -0
- package/dist/ui/toolbar.d.ts +40 -0
- package/dist/ui/toolbar.js +72 -0
- package/dist/ui/tooltip.d.ts +27 -0
- package/dist/ui/tooltip.js +93 -0
- package/dist/ui/tree.d.ts +56 -0
- package/dist/ui/tree.js +438 -0
- package/dist/ui/trigger-menu.d.ts +46 -0
- package/dist/ui/trigger-menu.js +116 -0
- package/dist/user-ask.d.ts +50 -0
- package/dist/user-ask.js +398 -0
- package/package.json +115 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="color-picker"][data-slot="trigger-color"]) {
|
|
3
|
+
border-radius: inherit;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where([data-control-family="color-picker"][data-slot="trigger"]) {
|
|
7
|
+
border-radius: var(--cui-color-picker-trigger-radius);
|
|
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;
|
|
11
|
+
transition-timing-function: var(--ease-standard);
|
|
12
|
+
transition-duration: var(--duration-fast);
|
|
13
|
+
box-shadow: var(--cui-color-picker-trigger-shadow);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-control-family="color-picker"][data-slot="trigger"]:disabled) {
|
|
17
|
+
opacity: 50%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-control-family="color-picker"][data-slot="area"][data-disabled="true"]) {
|
|
21
|
+
opacity: 50%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-control-family="color-picker"][data-slot="wheel"][data-disabled="true"]) {
|
|
25
|
+
opacity: 50%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="color-picker"][data-slot="area-saturation"]) {
|
|
29
|
+
background-image: linear-gradient(to right in srgb, var(--color-white), transparent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="color-picker"][data-slot="area-brightness"]) {
|
|
33
|
+
background-image: linear-gradient(to top in srgb, var(--color-black), transparent);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="color-picker"][data-slot="contrast-level"][data-passing="true"]) {
|
|
37
|
+
background-color: color-mix(in oklab, var(--foreground) 6%, transparent);
|
|
38
|
+
--_color-picker-contrast-level-foreground: var(--foreground);
|
|
39
|
+
color: var(--_color-picker-contrast-level-foreground);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-control-family="color-picker"][data-slot="contrast-level"]:not([data-passing="true"])) {
|
|
43
|
+
--_color-picker-contrast-level-foreground: var(--muted-foreground);
|
|
44
|
+
color: var(--_color-picker-contrast-level-foreground);
|
|
45
|
+
text-decoration-line: line-through;
|
|
46
|
+
text-decoration-thickness: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where([data-control-family="color-picker"][data-slot="contrast-ratio"]) {
|
|
50
|
+
font-variant-numeric: tabular-nums;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(
|
|
54
|
+
[data-control-family="color-picker"][data-slot="wheel"][data-dragging] [data-control-family="color-picker"][data-slot="wheel-thumb"]
|
|
55
|
+
),
|
|
56
|
+
:where(
|
|
57
|
+
[data-control-family="color-picker"][data-slot="area"][data-dragging] [data-control-family="color-picker"][data-slot="area-thumb"]
|
|
58
|
+
) {
|
|
59
|
+
scale: 110% 110%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="color-picker"][data-slot="output-value"]) {
|
|
3
|
+
font-family: var(--font-mono);
|
|
4
|
+
font-size: var(--text-caption);
|
|
5
|
+
color: var(--muted-foreground);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where([data-control-family="color-picker"][data-slot="output-swatch"]) {
|
|
9
|
+
inline-size: calc(var(--spacing) * 6);
|
|
10
|
+
block-size: calc(var(--spacing) * 6);
|
|
11
|
+
border-radius: var(--cui-color-picker-output-swatch-radius);
|
|
12
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where([data-control-family="color-picker"][data-slot="contrast-level"]) {
|
|
16
|
+
gap: calc(var(--spacing) * 1);
|
|
17
|
+
padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 1.5);
|
|
18
|
+
border-radius: var(--radius-sm);
|
|
19
|
+
font-weight: var(--font-weight-medium);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where([data-control-family="color-picker"][data-slot="contrast-fix"]) {
|
|
23
|
+
padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 1.5);
|
|
24
|
+
border-radius: var(--radius-sm);
|
|
25
|
+
font-weight: var(--font-weight-medium);
|
|
26
|
+
color: var(--foreground);
|
|
27
|
+
text-decoration-line: underline;
|
|
28
|
+
text-decoration-style: dotted;
|
|
29
|
+
text-underline-offset: 2px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (hover: hover) {
|
|
33
|
+
:where([data-control-family="color-picker"][data-slot="contrast-fix"]:hover) {
|
|
34
|
+
background-color: color-mix(in oklab, var(--foreground) 6%, transparent);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([data-control-family="color-picker"][data-slot="contrast-ratio"]) {
|
|
39
|
+
color: var(--muted-foreground);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-control-family="color-picker"][data-slot="contrast"]) {
|
|
43
|
+
gap: calc(var(--spacing) * 1.5);
|
|
44
|
+
font-size: var(--text-caption);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where([data-control-family="color-picker"][data-slot="swatch-add"]) {
|
|
48
|
+
border-radius: var(--radius-md);
|
|
49
|
+
border-width: 1px;
|
|
50
|
+
border-style: dashed;
|
|
51
|
+
--_color-picker-swatch-add-border-color: var(--border);
|
|
52
|
+
border-color: var(--_color-picker-swatch-add-border-color);
|
|
53
|
+
--_color-picker-swatch-add-foreground: var(--muted-foreground);
|
|
54
|
+
color: var(--_color-picker-swatch-add-foreground);
|
|
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
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (hover: hover) {
|
|
63
|
+
:where([data-control-family="color-picker"][data-slot="swatch-add"]:hover) {
|
|
64
|
+
--_color-picker-swatch-add-border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
|
|
65
|
+
border-color: var(--_color-picker-swatch-add-border-color);
|
|
66
|
+
--_color-picker-swatch-add-foreground: var(--foreground);
|
|
67
|
+
color: var(--_color-picker-swatch-add-foreground);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where([data-control-family="color-picker"][data-slot="swatch"]) {
|
|
72
|
+
border-radius: var(--cui-color-picker-swatch-radius);
|
|
73
|
+
outline-style: none;
|
|
74
|
+
transition-property:
|
|
75
|
+
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;
|
|
76
|
+
transition-timing-function: var(--ease-standard);
|
|
77
|
+
transition-duration: var(--duration-fast);
|
|
78
|
+
--_color-picker-swatch-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent);
|
|
79
|
+
box-shadow: var(--_color-picker-swatch-shadow);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="color-picker"][data-slot="swatch"][data-selected="true"]) {
|
|
83
|
+
--_color-picker-swatch-shadow: inset 0 0 0 2px var(--foreground);
|
|
84
|
+
box-shadow: var(--_color-picker-swatch-shadow);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where([data-control-family="color-picker"][data-slot="swatches-label"]) {
|
|
88
|
+
font-size: var(--text-micro);
|
|
89
|
+
color: var(--muted-foreground);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where([data-control-family="color-picker"][data-slot="channel-label"]) {
|
|
93
|
+
font-size: var(--text-micro);
|
|
94
|
+
color: var(--muted-foreground);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where([data-control-family="color-picker"][data-slot="channel"]) {
|
|
98
|
+
text-align: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where([data-control-family="color-picker"][data-slot="input"]) {
|
|
102
|
+
font-family: var(--font-mono);
|
|
103
|
+
font-size: var(--text-caption);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@property --cui-color-picker-output-swatch-radius {
|
|
108
|
+
syntax: "<length-percentage>+";
|
|
109
|
+
inherits: true;
|
|
110
|
+
initial-value: 0px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@property --cui-color-picker-swatch-radius {
|
|
114
|
+
syntax: "<length-percentage>+";
|
|
115
|
+
inherits: true;
|
|
116
|
+
initial-value: 0px;
|
|
117
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="color-picker"][data-slot="trigger"]) {
|
|
3
|
+
inline-size: calc(var(--spacing) * 8);
|
|
4
|
+
block-size: calc(var(--spacing) * 8);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where([data-control-family="popup"][data-popup-kind="color-picker"][data-popup-part="surface"]) {
|
|
8
|
+
inline-size: calc(var(--spacing) * 64);
|
|
9
|
+
gap: calc(var(--spacing) * 3);
|
|
10
|
+
padding: calc(var(--spacing) * 3);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([data-control-family="color-picker"][data-slot="hue-track"]),
|
|
14
|
+
:where([data-control-family="color-picker"][data-slot="alpha-track"]) {
|
|
15
|
+
block-size: calc(var(--spacing) * 3);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where([data-control-family="color-picker"][data-slot="hue-thumb"]),
|
|
19
|
+
:where([data-control-family="color-picker"][data-slot="alpha-thumb"]),
|
|
20
|
+
:where([data-control-family="color-picker"][data-slot="area-thumb"]),
|
|
21
|
+
:where([data-control-family="color-picker"][data-slot="wheel-thumb"]) {
|
|
22
|
+
inline-size: calc(var(--spacing) * 4);
|
|
23
|
+
block-size: calc(var(--spacing) * 4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([data-control-family="color-picker"][data-slot="swatch"]),
|
|
27
|
+
:where([data-control-family="color-picker"][data-slot="swatch-add"]) {
|
|
28
|
+
inline-size: calc(var(--spacing) * 6);
|
|
29
|
+
block-size: calc(var(--spacing) * 6);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="color-picker"][data-slot="swatches-group"]),
|
|
33
|
+
:where([data-control-family="color-picker"][data-slot="swatches"]) {
|
|
34
|
+
gap: calc(var(--spacing) * 1.5);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where([data-control-family="color-picker"][data-slot="channels"]) {
|
|
38
|
+
gap: calc(var(--spacing) * 1.5);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where([data-control-family="color-picker"][data-slot="channel"]) {
|
|
42
|
+
gap: calc(var(--spacing) * 1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where([data-control-family="color-picker"][data-slot="trigger"]),
|
|
46
|
+
:where([data-control-family="color-picker"][data-slot="area"]),
|
|
47
|
+
:where([data-control-family="color-picker"][data-slot="hue"]),
|
|
48
|
+
:where([data-control-family="color-picker"][data-slot="alpha"]),
|
|
49
|
+
:where([data-control-family="color-picker"][data-slot="wheel"]),
|
|
50
|
+
:where([data-control-family="color-picker"][data-slot="swatch"]),
|
|
51
|
+
:where([data-control-family="color-picker"][data-slot="output"]) {
|
|
52
|
+
--cui-color-picker-area-radius: var(--radius-field);
|
|
53
|
+
--cui-color-picker-output-swatch-radius: var(--radius-md);
|
|
54
|
+
--cui-color-picker-slider-thumb-background: transparent;
|
|
55
|
+
--cui-color-picker-slider-thumb-radius: calc(infinity * 1px);
|
|
56
|
+
--cui-color-picker-swatch-radius: var(--radius-md);
|
|
57
|
+
--cui-color-picker-trigger-radius: var(--radius-control);
|
|
58
|
+
--cui-color-picker-trigger-shadow: inset 0 0 0 1px var(--border);
|
|
59
|
+
}
|
|
60
|
+
:where([data-control-family="color-picker"][data-slot="hue"]),
|
|
61
|
+
:where([data-control-family="color-picker"][data-slot="alpha"]) {
|
|
62
|
+
block-size: calc(var(--spacing) * 4);
|
|
63
|
+
--_color-picker-slider-thumb-outline: none;
|
|
64
|
+
--_color-picker-slider-thumb-scale: 1;
|
|
65
|
+
--_color-picker-slider-thumb-transition-property: scale;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where([data-control-family="color-picker"][data-slot="hue-thumb"]),
|
|
69
|
+
:where([data-control-family="color-picker"][data-slot="alpha-thumb"]) {
|
|
70
|
+
border-radius: var(--cui-color-picker-slider-thumb-radius);
|
|
71
|
+
border-width: 2px;
|
|
72
|
+
border-style: solid;
|
|
73
|
+
border-color: var(--color-white);
|
|
74
|
+
background: var(--cui-color-picker-slider-thumb-background);
|
|
75
|
+
box-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.35);
|
|
76
|
+
outline-style: var(--_color-picker-slider-thumb-outline);
|
|
77
|
+
transition-property: var(--_color-picker-slider-thumb-transition-property);
|
|
78
|
+
transition-duration: var(--duration-fast);
|
|
79
|
+
transition-timing-function: var(--ease-standard);
|
|
80
|
+
scale: var(--_color-picker-slider-thumb-scale);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-control-family="color-picker"][data-slot="hue-thumb"][data-dragging]),
|
|
84
|
+
:where([data-control-family="color-picker"][data-slot="alpha-thumb"][data-dragging]) {
|
|
85
|
+
--_color-picker-slider-thumb-scale: 110% 110%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where([data-control-family="color-picker"][data-slot="wheel-thumb"]) {
|
|
89
|
+
border-radius: calc(infinity * 1px);
|
|
90
|
+
border-style: solid;
|
|
91
|
+
border-width: 2px;
|
|
92
|
+
border-color: var(--color-white);
|
|
93
|
+
box-shadow: var(--_color-picker-wheel-thumb-shadow);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where([data-control-family="color-picker"][data-slot="wheel"]) {
|
|
97
|
+
border-radius: calc(infinity * 1px);
|
|
98
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent);
|
|
99
|
+
--_color-picker-wheel-thumb-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.4);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where([data-control-family="color-picker"][data-slot="alpha-track"]) {
|
|
103
|
+
border-radius: calc(infinity * 1px);
|
|
104
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 50%, transparent);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where([data-control-family="color-picker"][data-slot="hue-track"]) {
|
|
108
|
+
border-radius: calc(infinity * 1px);
|
|
109
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 50%, transparent);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where([data-control-family="color-picker"][data-slot="area-thumb"]) {
|
|
113
|
+
border-radius: calc(infinity * 1px);
|
|
114
|
+
border-style: solid;
|
|
115
|
+
border-width: 2px;
|
|
116
|
+
border-color: var(--color-white);
|
|
117
|
+
transition-property: box-shadow;
|
|
118
|
+
transition-timing-function: var(--ease-standard);
|
|
119
|
+
transition-duration: var(--duration-fast);
|
|
120
|
+
box-shadow: var(--_color-picker-area-thumb-shadow);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where([data-control-family="color-picker"][data-slot="area"]) {
|
|
124
|
+
block-size: calc(var(--spacing) * 40);
|
|
125
|
+
border-radius: var(--cui-color-picker-area-radius);
|
|
126
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent);
|
|
127
|
+
--_color-picker-area-thumb-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.4);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@property --cui-color-picker-area-radius {
|
|
132
|
+
syntax: "<length-percentage>+";
|
|
133
|
+
inherits: true;
|
|
134
|
+
initial-value: 0px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@property --cui-color-picker-trigger-radius {
|
|
138
|
+
syntax: "<length-percentage>+";
|
|
139
|
+
inherits: true;
|
|
140
|
+
initial-value: 0px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@property --cui-color-picker-trigger-shadow {
|
|
144
|
+
syntax: "*";
|
|
145
|
+
inherits: true;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@property --cui-color-picker-slider-thumb-radius {
|
|
149
|
+
syntax: "<length-percentage>";
|
|
150
|
+
inherits: true;
|
|
151
|
+
initial-value: 0px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@property --cui-color-picker-slider-thumb-background {
|
|
155
|
+
syntax: "<color>";
|
|
156
|
+
inherits: true;
|
|
157
|
+
initial-value: transparent;
|
|
158
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="context"][data-slot="root"]),
|
|
3
|
+
:where([data-control-family="context"][data-slot="content"]) {
|
|
4
|
+
--cui-context-graph-radius: 9999px;
|
|
5
|
+
--cui-context-limit-marker-color: var(--destructive-text);
|
|
6
|
+
--cui-context-overage-fill: oklch(from var(--destructive-text) l c h / 0.22);
|
|
7
|
+
--cui-context-track-fill: var(--muted);
|
|
8
|
+
--cui-context-segment-message-fill: oklch(from var(--primary) l c h / 0.65);
|
|
9
|
+
--cui-context-segment-reasoning-fill: oklch(from var(--foreground) l c h / 0.5);
|
|
10
|
+
--cui-context-segment-source-fill: oklch(from var(--accent-foreground) l c h / 0.65);
|
|
11
|
+
--cui-context-segment-tool-fill: var(--primary);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-control-family="context"][data-slot="trigger-indicator"]) {
|
|
15
|
+
inline-size: calc(var(--spacing) * 4);
|
|
16
|
+
block-size: calc(var(--spacing) * 4);
|
|
17
|
+
fill: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-control-family="context"][data-slot="trigger-track"]) {
|
|
21
|
+
stroke: oklch(from var(--border) l c h / 0.7);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-control-family="context"][data-slot="trigger-track"][data-status="unavailable"]) {
|
|
25
|
+
stroke: var(--muted);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="context"][data-slot="trigger-value"]) {
|
|
29
|
+
stroke: var(--primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="context"][data-slot="trigger-value"][data-status="over-limit"]) {
|
|
33
|
+
stroke: var(--destructive-text);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="context"][data-slot="trigger-label"]) {
|
|
37
|
+
max-inline-size: 0;
|
|
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;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([data-control-family="context"][data-slot="content-grid"]) {
|
|
53
|
+
gap: calc(var(--spacing) * 4);
|
|
54
|
+
padding: calc(var(--spacing) * 4);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where([data-control-family="context"][data-slot="header"]) {
|
|
58
|
+
gap: calc(var(--spacing) * 3);
|
|
59
|
+
padding: calc(var(--spacing) * 4);
|
|
60
|
+
padding-block-end: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where([data-control-family="context"][data-slot="legend-item"]) {
|
|
64
|
+
gap: calc(var(--spacing) * 3);
|
|
65
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where([data-control-family="context"][data-slot="legend-item"] > div) {
|
|
69
|
+
gap: calc(var(--spacing) * 2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where([data-control-family="context"][data-slot="title"]) {
|
|
73
|
+
font-size: var(--text-sm);
|
|
74
|
+
font-weight: var(--font-weight-medium);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where([data-control-family="context"][data-slot="description"]) {
|
|
78
|
+
color: var(--muted-foreground);
|
|
79
|
+
font-size: var(--text-caption);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="context"][data-slot="summary"]) {
|
|
83
|
+
gap: calc(var(--spacing) * 3);
|
|
84
|
+
font-size: var(--text-sm);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where([data-control-family="context"][data-slot="summary-value"]) {
|
|
88
|
+
color: var(--muted-foreground);
|
|
89
|
+
font-variant-numeric: tabular-nums;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where([data-control-family="context"][data-slot="graph"]) {
|
|
93
|
+
block-size: calc(var(--spacing) * 2.5);
|
|
94
|
+
border-radius: var(--cui-context-graph-radius);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where([data-control-family="context"][data-slot="track"]) {
|
|
98
|
+
fill: var(--cui-context-track-fill);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where([data-control-family="context"][data-slot="segment"]) {
|
|
102
|
+
fill: var(--border);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="system"]) {
|
|
106
|
+
fill: oklch(from var(--foreground) l c h / 0.75);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="tool"]) {
|
|
110
|
+
fill: var(--cui-context-segment-tool-fill);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="message"]) {
|
|
114
|
+
fill: var(--cui-context-segment-message-fill);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="source"]) {
|
|
118
|
+
fill: var(--cui-context-segment-source-fill);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="reasoning"]) {
|
|
122
|
+
fill: var(--cui-context-segment-reasoning-fill);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where([data-control-family="context"][data-slot="segment"][data-kind="cache"]) {
|
|
126
|
+
fill: oklch(from var(--muted-foreground) l c h / 0.55);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where([data-control-family="context"][data-slot="overage"]) {
|
|
130
|
+
fill: var(--cui-context-overage-fill);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where([data-control-family="context"][data-slot="limit-marker"]) {
|
|
134
|
+
stroke: var(--cui-context-limit-marker-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:where([data-control-family="context"][data-slot="legend-indicator"]) {
|
|
138
|
+
margin-block-start: calc(var(--spacing) * 1);
|
|
139
|
+
inline-size: calc(var(--spacing) * 2.5);
|
|
140
|
+
block-size: calc(var(--spacing) * 2.5);
|
|
141
|
+
border-radius: 9999px;
|
|
142
|
+
background: var(--border);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="system"]) {
|
|
146
|
+
background: oklch(from var(--foreground) l c h / 0.75);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="tool"]) {
|
|
150
|
+
background: var(--cui-context-segment-tool-fill);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="message"]) {
|
|
154
|
+
background: var(--cui-context-segment-message-fill);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="source"]) {
|
|
158
|
+
background: var(--cui-context-segment-source-fill);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="reasoning"]) {
|
|
162
|
+
background: var(--cui-context-segment-reasoning-fill);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:where([data-control-family="context"][data-slot="legend-indicator"][data-kind="cache"]) {
|
|
166
|
+
background: oklch(from var(--muted-foreground) l c h / 0.55);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:where([data-control-family="context"][data-slot="legend-item"][data-tone="available"] [data-slot="legend-indicator"]) {
|
|
170
|
+
background: var(--muted);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:where([data-control-family="context"][data-slot="legend-item"][data-tone="over-limit"] [data-slot="legend-indicator"]) {
|
|
174
|
+
background: var(--destructive-text);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:where([data-control-family="context"][data-slot="legend-label"]) {
|
|
178
|
+
font-size: var(--text-sm);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:where([data-control-family="context"]:is([data-slot="legend-description"], [data-slot="legend-value"])) {
|
|
182
|
+
color: var(--muted-foreground);
|
|
183
|
+
font-size: var(--text-caption);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:where([data-control-family="context"][data-slot="legend-value"]) {
|
|
187
|
+
font-variant-numeric: tabular-nums;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@property --cui-context-graph-radius {
|
|
192
|
+
syntax: "<length>";
|
|
193
|
+
inherits: true;
|
|
194
|
+
initial-value: 0px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@property --cui-context-track-fill {
|
|
198
|
+
syntax: "<color>";
|
|
199
|
+
inherits: true;
|
|
200
|
+
initial-value: transparent;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@property --cui-context-segment-tool-fill {
|
|
204
|
+
syntax: "<color>";
|
|
205
|
+
inherits: true;
|
|
206
|
+
initial-value: transparent;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@property --cui-context-segment-message-fill {
|
|
210
|
+
syntax: "<color>";
|
|
211
|
+
inherits: true;
|
|
212
|
+
initial-value: transparent;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@property --cui-context-segment-source-fill {
|
|
216
|
+
syntax: "<color>";
|
|
217
|
+
inherits: true;
|
|
218
|
+
initial-value: transparent;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@property --cui-context-segment-reasoning-fill {
|
|
222
|
+
syntax: "<color>";
|
|
223
|
+
inherits: true;
|
|
224
|
+
initial-value: transparent;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@property --cui-context-overage-fill {
|
|
228
|
+
syntax: "<color>";
|
|
229
|
+
inherits: true;
|
|
230
|
+
initial-value: transparent;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@property --cui-context-limit-marker-color {
|
|
234
|
+
syntax: "<color>";
|
|
235
|
+
inherits: true;
|
|
236
|
+
initial-value: transparent;
|
|
237
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="dockable-panel"][data-slot="root"]),
|
|
3
|
+
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="content"][data-dockable-panel-root]) {
|
|
4
|
+
--cui-dockable-panel-radius: var(--radius-panel);
|
|
5
|
+
--cui-dockable-panel-background: var(--card);
|
|
6
|
+
--cui-dockable-panel-foreground: var(--card-foreground);
|
|
7
|
+
--cui-dockable-panel-border-color: oklch(from var(--border) l c h / 0.8);
|
|
8
|
+
--cui-dockable-panel-shadow: var(--shadow-pop);
|
|
9
|
+
--cui-dockable-panel-drop-zone-active-background: oklch(from var(--primary) l c h / 0.12);
|
|
10
|
+
--cui-dockable-panel-drop-zone-active-border-color: oklch(from var(--primary) l c h / 0.55);
|
|
11
|
+
border: 1px solid var(--cui-dockable-panel-border-color);
|
|
12
|
+
border-radius: var(--cui-dockable-panel-radius);
|
|
13
|
+
outline: none;
|
|
14
|
+
background-color: var(--cui-dockable-panel-background);
|
|
15
|
+
color: var(--cui-dockable-panel-foreground);
|
|
16
|
+
box-shadow: var(--cui-dockable-panel-shadow);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where([data-control-family="dockable-panel"][data-slot="root"][data-dragging]) {
|
|
20
|
+
box-shadow: var(--shadow-modal);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="dockable-panel"][data-slot="header"]) {
|
|
24
|
+
min-block-size: calc(var(--spacing) * 11);
|
|
25
|
+
gap: calc(var(--spacing) * 2);
|
|
26
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
27
|
+
border-block-end: 1px solid oklch(from var(--border) l c h / 0.7);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-control-family="dockable-panel"][data-slot="drag-handle"]) {
|
|
31
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
32
|
+
border-radius: var(--radius-control);
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="dockable-panel"][data-slot="actions"]) {
|
|
37
|
+
gap: calc(var(--spacing) * 0.5);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-control-family="dockable-panel"][data-slot="content"][data-padding="default"]) {
|
|
41
|
+
padding: calc(var(--spacing) * 3);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-control-family="dockable-panel"][data-slot="title"]) {
|
|
45
|
+
color: var(--foreground);
|
|
46
|
+
font-size: var(--text-sm);
|
|
47
|
+
font-weight: var(--font-weight-semibold);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-control-family="dockable-panel"][data-slot="drop-zone"]) {
|
|
51
|
+
border-radius: var(--radius-panel);
|
|
52
|
+
background-color: oklch(from var(--background) l c h / 0.12);
|
|
53
|
+
box-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.2);
|
|
54
|
+
transition-property: background-color, box-shadow;
|
|
55
|
+
transition-duration: var(--duration-fast);
|
|
56
|
+
transition-timing-function: var(--ease-standard);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where([data-control-family="dockable-panel"][data-slot="drop-zone"][data-active]) {
|
|
60
|
+
background-color: var(--cui-dockable-panel-drop-zone-active-background);
|
|
61
|
+
box-shadow:
|
|
62
|
+
var(--shadow-sm),
|
|
63
|
+
0 0 0 1px var(--cui-dockable-panel-drop-zone-active-border-color);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@property --cui-dockable-panel-radius {
|
|
68
|
+
syntax: "<length-percentage>";
|
|
69
|
+
inherits: true;
|
|
70
|
+
initial-value: 0px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@property --cui-dockable-panel-background {
|
|
74
|
+
syntax: "<color>";
|
|
75
|
+
inherits: true;
|
|
76
|
+
initial-value: transparent;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@property --cui-dockable-panel-foreground {
|
|
80
|
+
syntax: "<color>";
|
|
81
|
+
inherits: true;
|
|
82
|
+
initial-value: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@property --cui-dockable-panel-border-color {
|
|
86
|
+
syntax: "<color>";
|
|
87
|
+
inherits: true;
|
|
88
|
+
initial-value: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@property --cui-dockable-panel-shadow {
|
|
92
|
+
syntax: "*";
|
|
93
|
+
inherits: true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@property --cui-dockable-panel-drop-zone-active-background {
|
|
97
|
+
syntax: "<color>";
|
|
98
|
+
inherits: true;
|
|
99
|
+
initial-value: transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@property --cui-dockable-panel-drop-zone-active-border-color {
|
|
103
|
+
syntax: "<color>";
|
|
104
|
+
inherits: true;
|
|
105
|
+
initial-value: transparent;
|
|
106
|
+
}
|