@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,174 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="inline-citation"][data-slot="root"]),
|
|
3
|
+
:where([data-control-ui="inline-citation"][data-slot="content"]) {
|
|
4
|
+
--cui-inline-citation-navigation-background: oklch(from var(--muted) l c h / 0.45);
|
|
5
|
+
--cui-inline-citation-quote-background: oklch(from var(--muted) l c h / 0.55);
|
|
6
|
+
--cui-inline-citation-quote-radius: var(--radius-control);
|
|
7
|
+
--cui-inline-citation-trigger-background: oklch(from var(--muted) l c h / 0.55);
|
|
8
|
+
--cui-inline-citation-trigger-border-color: var(--border);
|
|
9
|
+
--cui-inline-citation-trigger-foreground: var(--muted-foreground);
|
|
10
|
+
--cui-inline-citation-trigger-hover-background: var(--muted);
|
|
11
|
+
--cui-inline-citation-trigger-hover-foreground: var(--foreground);
|
|
12
|
+
--cui-inline-citation-trigger-radius: 9999px;
|
|
13
|
+
}
|
|
14
|
+
:where([data-control-family="inline-citation"][data-slot="trigger"]) {
|
|
15
|
+
margin-inline-start: calc(var(--spacing) * 1);
|
|
16
|
+
block-size: calc(var(--spacing) * 6);
|
|
17
|
+
max-inline-size: calc(var(--spacing) * 52);
|
|
18
|
+
gap: calc(var(--spacing) * 1.5);
|
|
19
|
+
padding-inline: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
|
|
20
|
+
border: 1px solid var(--cui-inline-citation-trigger-border-color);
|
|
21
|
+
border-radius: var(--cui-inline-citation-trigger-radius);
|
|
22
|
+
background: var(--cui-inline-citation-trigger-background);
|
|
23
|
+
color: var(--cui-inline-citation-trigger-foreground);
|
|
24
|
+
font-size: var(--text-caption);
|
|
25
|
+
font-weight: var(--font-weight-normal);
|
|
26
|
+
outline-style: none;
|
|
27
|
+
transition-property: background-color, color, box-shadow;
|
|
28
|
+
transition-duration: var(--duration-fast);
|
|
29
|
+
transition-timing-function: var(--ease-standard);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (hover: hover) {
|
|
33
|
+
:where([data-control-family="inline-citation"][data-slot="trigger"]:hover) {
|
|
34
|
+
background: var(--cui-inline-citation-trigger-hover-background);
|
|
35
|
+
color: var(--cui-inline-citation-trigger-hover-foreground);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where([data-control-ui="inline-citation"][data-slot="favicon"]) {
|
|
40
|
+
inline-size: calc(var(--spacing) * 3.5);
|
|
41
|
+
block-size: calc(var(--spacing) * 3.5);
|
|
42
|
+
border: 1px solid var(--background);
|
|
43
|
+
border-radius: 9999px;
|
|
44
|
+
background: var(--muted);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where([data-control-family="inline-citation"][data-slot="navigation"]) {
|
|
48
|
+
min-block-size: calc(var(--spacing) * 10);
|
|
49
|
+
gap: calc(var(--spacing) * 1);
|
|
50
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
51
|
+
border-bottom: 1px solid var(--border);
|
|
52
|
+
background: var(--cui-inline-citation-navigation-background);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(
|
|
56
|
+
[data-control-family="inline-citation"]:is(
|
|
57
|
+
[data-slot="position"],
|
|
58
|
+
[data-slot="source-hostname"],
|
|
59
|
+
[data-slot="source-description"],
|
|
60
|
+
[data-slot="source-quote"]
|
|
61
|
+
)
|
|
62
|
+
) {
|
|
63
|
+
color: var(--muted-foreground);
|
|
64
|
+
font-size: var(--text-caption);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where([data-control-family="inline-citation"][data-slot="source"]) {
|
|
68
|
+
gap: calc(var(--spacing) * 3);
|
|
69
|
+
padding: calc(var(--spacing) * 4);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where([data-control-family="inline-citation"][data-slot="source-header"]) {
|
|
73
|
+
gap: calc(var(--spacing) * 2);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where([data-control-ui="inline-citation"][data-slot="source-favicon"]) {
|
|
77
|
+
inline-size: calc(var(--spacing) * 5);
|
|
78
|
+
block-size: calc(var(--spacing) * 5);
|
|
79
|
+
border-radius: 9999px;
|
|
80
|
+
background: var(--muted);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]) {
|
|
84
|
+
gap: calc(var(--spacing) * 2);
|
|
85
|
+
color: var(--foreground);
|
|
86
|
+
font-size: var(--text-label);
|
|
87
|
+
font-weight: var(--font-weight-medium);
|
|
88
|
+
line-height: calc(var(--spacing) * 5);
|
|
89
|
+
outline-style: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]:is(:hover, :focus-visible)) {
|
|
93
|
+
text-decoration-line: underline;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where([data-control-family="inline-citation"][data-slot="source-external-icon"]) {
|
|
97
|
+
margin-block-start: calc(var(--spacing) * 0.5);
|
|
98
|
+
inline-size: calc(var(--spacing) * 3.5);
|
|
99
|
+
block-size: calc(var(--spacing) * 3.5);
|
|
100
|
+
color: var(--muted-foreground);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-control-family="inline-citation"][data-slot="source-quote"]) {
|
|
104
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
105
|
+
padding-block: calc(var(--spacing) * 2);
|
|
106
|
+
border-radius: var(--cui-inline-citation-quote-radius);
|
|
107
|
+
background: var(--cui-inline-citation-quote-background);
|
|
108
|
+
line-height: calc(var(--spacing) * 5);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where([data-control-family="inline-citation"][data-slot="source-description"]) {
|
|
112
|
+
line-height: calc(var(--spacing) * 5);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:where([data-control-family="inline-citation"][data-slot="position"]) {
|
|
116
|
+
margin-inline-start: auto;
|
|
117
|
+
padding-inline: calc(var(--spacing) * 1);
|
|
118
|
+
font-variant-numeric: tabular-nums;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@property --cui-inline-citation-trigger-radius {
|
|
123
|
+
syntax: "<length>";
|
|
124
|
+
inherits: true;
|
|
125
|
+
initial-value: 0px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@property --cui-inline-citation-trigger-background {
|
|
129
|
+
syntax: "<color>";
|
|
130
|
+
inherits: true;
|
|
131
|
+
initial-value: transparent;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@property --cui-inline-citation-trigger-foreground {
|
|
135
|
+
syntax: "<color>";
|
|
136
|
+
inherits: true;
|
|
137
|
+
initial-value: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@property --cui-inline-citation-trigger-border-color {
|
|
141
|
+
syntax: "<color>";
|
|
142
|
+
inherits: true;
|
|
143
|
+
initial-value: transparent;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@property --cui-inline-citation-trigger-hover-background {
|
|
147
|
+
syntax: "<color>";
|
|
148
|
+
inherits: true;
|
|
149
|
+
initial-value: transparent;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@property --cui-inline-citation-trigger-hover-foreground {
|
|
153
|
+
syntax: "<color>";
|
|
154
|
+
inherits: true;
|
|
155
|
+
initial-value: transparent;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@property --cui-inline-citation-navigation-background {
|
|
159
|
+
syntax: "<color>";
|
|
160
|
+
inherits: true;
|
|
161
|
+
initial-value: transparent;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@property --cui-inline-citation-quote-background {
|
|
165
|
+
syntax: "<color>";
|
|
166
|
+
inherits: true;
|
|
167
|
+
initial-value: transparent;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@property --cui-inline-citation-quote-radius {
|
|
171
|
+
syntax: "<length>";
|
|
172
|
+
inherits: true;
|
|
173
|
+
initial-value: 0px;
|
|
174
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="item"][data-slot="root"]) {
|
|
3
|
+
--cui-item-radius: var(--radius-lg);
|
|
4
|
+
--cui-item-hover-background: transparent;
|
|
5
|
+
--cui-item-hover-border-color: var(--_item-border-color);
|
|
6
|
+
--cui-item-border-width: 0px;
|
|
7
|
+
--cui-item-active-scale: 1;
|
|
8
|
+
--_item-background: transparent;
|
|
9
|
+
--_item-border-color: transparent;
|
|
10
|
+
outline: var(--cui-item-border-width) solid var(--_item-border-color);
|
|
11
|
+
outline-offset: calc(-1 * var(--cui-item-border-width));
|
|
12
|
+
border-radius: var(--cui-item-radius);
|
|
13
|
+
background: var(--_item-background);
|
|
14
|
+
box-shadow: none;
|
|
15
|
+
color: var(--foreground);
|
|
16
|
+
transition-property: background-color, box-shadow, color, outline-color, scale;
|
|
17
|
+
transition-duration: var(--duration-fast);
|
|
18
|
+
transition-timing-function: var(--ease-standard);
|
|
19
|
+
gap: calc(var(--spacing) * 3);
|
|
20
|
+
padding: calc(var(--spacing) * 3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="item"][data-slot="content"]) {
|
|
24
|
+
gap: calc(var(--spacing) * 0.5);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where([data-control-family="item"][data-slot="actions"]) {
|
|
28
|
+
gap: calc(var(--spacing) * 1.5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where([data-control-family="item"][data-slot="header"]),
|
|
32
|
+
:where([data-control-family="item"][data-slot="footer"]) {
|
|
33
|
+
gap: calc(var(--spacing) * 2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="item"][data-slot="root"][data-variant="outline"]) {
|
|
37
|
+
--_item-border-color: var(--border);
|
|
38
|
+
--cui-item-border-width: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where([data-control-family="item"][data-slot="root"][data-variant="muted"]) {
|
|
42
|
+
--_item-background: oklch(from var(--muted) l c h / 0.5);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where([data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):hover) {
|
|
46
|
+
outline-color: var(--cui-item-hover-border-color);
|
|
47
|
+
background: var(--cui-item-hover-background);
|
|
48
|
+
box-shadow: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where([data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):active) {
|
|
52
|
+
scale: var(--cui-item-active-scale);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-control-family="item"][data-slot="footer"]) {
|
|
56
|
+
font-size: var(--text-caption);
|
|
57
|
+
color: var(--muted-foreground);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-control-family="item"][data-slot="description"]) {
|
|
61
|
+
font-size: var(--text-sm);
|
|
62
|
+
line-height: var(--leading-relaxed);
|
|
63
|
+
color: var(--muted-foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-control-family="item"][data-slot="title"]) {
|
|
67
|
+
gap: calc(var(--spacing) * 2);
|
|
68
|
+
font-size: var(--text-sm);
|
|
69
|
+
font-weight: var(--font-weight-medium);
|
|
70
|
+
line-height: 1;
|
|
71
|
+
color: var(--foreground);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-control-family="item"][data-slot="media"]) {
|
|
75
|
+
color: var(--muted-foreground);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@property --cui-item-radius {
|
|
80
|
+
syntax: "<length-percentage>";
|
|
81
|
+
inherits: true;
|
|
82
|
+
initial-value: 0px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@property --cui-item-hover-background {
|
|
86
|
+
syntax: "*";
|
|
87
|
+
inherits: true;
|
|
88
|
+
initial-value: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@property --cui-item-hover-border-color {
|
|
92
|
+
syntax: "<color>";
|
|
93
|
+
inherits: true;
|
|
94
|
+
initial-value: transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@property --cui-item-border-width {
|
|
98
|
+
syntax: "<length>";
|
|
99
|
+
inherits: true;
|
|
100
|
+
initial-value: 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@property --cui-item-active-scale {
|
|
104
|
+
syntax: "<number>";
|
|
105
|
+
inherits: true;
|
|
106
|
+
initial-value: 1;
|
|
107
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="kbd"][data-slot="root"]) {
|
|
3
|
+
block-size: calc(var(--spacing) * 5);
|
|
4
|
+
min-inline-size: calc(var(--spacing) * 5);
|
|
5
|
+
gap: calc(var(--spacing) * 1);
|
|
6
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
7
|
+
--cui-kbd-radius: var(--radius-control);
|
|
8
|
+
--cui-kbd-background: oklch(from var(--card) l c h / 0.6);
|
|
9
|
+
--cui-kbd-foreground: var(--muted-foreground);
|
|
10
|
+
--cui-kbd-border-color: var(--control-rim);
|
|
11
|
+
--cui-kbd-shadow: var(--shadow-sm);
|
|
12
|
+
border-radius: var(--cui-kbd-radius);
|
|
13
|
+
background: var(--cui-kbd-background);
|
|
14
|
+
box-shadow:
|
|
15
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-kbd-border-color),
|
|
16
|
+
var(--cui-kbd-shadow);
|
|
17
|
+
color: var(--cui-kbd-foreground);
|
|
18
|
+
font-size: var(--text-micro);
|
|
19
|
+
font-family: var(--font-sans);
|
|
20
|
+
font-weight: var(--font-weight-medium);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="kbd"][data-slot="group"]) {
|
|
24
|
+
gap: calc(var(--spacing) * 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@property --cui-kbd-radius {
|
|
29
|
+
syntax: "<length-percentage>";
|
|
30
|
+
inherits: true;
|
|
31
|
+
initial-value: 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@property --cui-kbd-background {
|
|
35
|
+
syntax: "<color>";
|
|
36
|
+
inherits: true;
|
|
37
|
+
initial-value: transparent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@property --cui-kbd-foreground {
|
|
41
|
+
syntax: "<color>";
|
|
42
|
+
inherits: true;
|
|
43
|
+
initial-value: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@property --cui-kbd-border-color {
|
|
47
|
+
syntax: "<color>";
|
|
48
|
+
inherits: true;
|
|
49
|
+
initial-value: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@property --cui-kbd-shadow {
|
|
53
|
+
syntax: "*";
|
|
54
|
+
inherits: true;
|
|
55
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="markdown-block"][data-slot="root"]) {
|
|
3
|
+
margin-block: calc(var(--spacing) * 4);
|
|
4
|
+
--cui-markdown-block-radius: var(--radius-panel);
|
|
5
|
+
--cui-markdown-block-background: var(--background);
|
|
6
|
+
--cui-markdown-block-border-color: var(--border);
|
|
7
|
+
--cui-markdown-block-shadow: var(--shadow-sm);
|
|
8
|
+
--cui-markdown-block-header-border-color: var(--border);
|
|
9
|
+
--cui-markdown-block-icon-background: oklch(from var(--foreground) l c h / 0.08);
|
|
10
|
+
background: var(--cui-markdown-block-background);
|
|
11
|
+
border: 1px solid var(--cui-markdown-block-border-color);
|
|
12
|
+
border-radius: var(--cui-markdown-block-radius);
|
|
13
|
+
box-shadow: var(--cui-markdown-block-shadow);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-control-family="markdown-block"][data-slot="header"]) {
|
|
17
|
+
gap: calc(var(--spacing) * 3);
|
|
18
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
19
|
+
padding-block: calc(var(--spacing) * 2);
|
|
20
|
+
border-bottom: 1px solid var(--cui-markdown-block-header-border-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="markdown-block"][data-slot="title"]) {
|
|
24
|
+
gap: calc(var(--spacing) * 2);
|
|
25
|
+
font-size: var(--text-sm);
|
|
26
|
+
font-weight: var(--font-weight-medium);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where([data-control-family="markdown-block"][data-slot="content"]) {
|
|
30
|
+
padding: calc(var(--spacing) * 4);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-control-family="markdown-block"][data-slot="title-icon"]) {
|
|
34
|
+
inline-size: calc(var(--spacing) * 5);
|
|
35
|
+
block-size: calc(var(--spacing) * 5);
|
|
36
|
+
background: var(--cui-markdown-block-icon-background);
|
|
37
|
+
border-radius: var(--radius-md);
|
|
38
|
+
font-size: var(--text-micro);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@property --cui-markdown-block-radius {
|
|
43
|
+
syntax: "<length-percentage>";
|
|
44
|
+
inherits: true;
|
|
45
|
+
initial-value: 0px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@property --cui-markdown-block-background {
|
|
49
|
+
syntax: "<color>";
|
|
50
|
+
inherits: true;
|
|
51
|
+
initial-value: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@property --cui-markdown-block-border-color {
|
|
55
|
+
syntax: "<color>";
|
|
56
|
+
inherits: true;
|
|
57
|
+
initial-value: transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@property --cui-markdown-block-shadow {
|
|
61
|
+
syntax: "*";
|
|
62
|
+
inherits: true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@property --cui-markdown-block-header-border-color {
|
|
66
|
+
syntax: "<color>";
|
|
67
|
+
inherits: true;
|
|
68
|
+
initial-value: transparent;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@property --cui-markdown-block-icon-background {
|
|
72
|
+
syntax: "<color>";
|
|
73
|
+
inherits: true;
|
|
74
|
+
initial-value: transparent;
|
|
75
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="markdown"][data-slot="root"]) {
|
|
3
|
+
--cui-markdown-foreground: oklch(from var(--foreground) l c h / 0.9);
|
|
4
|
+
--cui-markdown-blockquote-border-color: var(--border);
|
|
5
|
+
--cui-markdown-blockquote-foreground: var(--muted-foreground);
|
|
6
|
+
--cui-markdown-inline-code-background: color-mix(in oklab, var(--foreground) 8%, transparent);
|
|
7
|
+
--cui-markdown-inline-code-foreground: var(--foreground);
|
|
8
|
+
--cui-markdown-inline-code-radius: 0.25rem;
|
|
9
|
+
--cui-markdown-link-foreground: var(--primary-text);
|
|
10
|
+
--cui-markdown-table-cell-border-color: var(--border);
|
|
11
|
+
--cui-markdown-table-header-background: var(--muted);
|
|
12
|
+
color: var(--cui-markdown-foreground);
|
|
13
|
+
font-size: var(--text-label);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-control-family="markdown"][data-slot="table-cell"]) {
|
|
17
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
18
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
19
|
+
border-style: solid;
|
|
20
|
+
border-width: 1px;
|
|
21
|
+
border-color: var(--cui-markdown-table-cell-border-color);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-control-family="markdown"][data-slot="table-header"]) {
|
|
25
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
26
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-width: 1px;
|
|
29
|
+
border-color: var(--border);
|
|
30
|
+
background-color: var(--cui-markdown-table-header-background);
|
|
31
|
+
text-align: left;
|
|
32
|
+
font-weight: var(--font-weight-semibold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where([data-control-family="markdown"][data-slot="table"]) {
|
|
36
|
+
border-collapse: collapse;
|
|
37
|
+
font-size: var(--text-label);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-control-family="markdown"][data-slot="emphasis"]) {
|
|
41
|
+
font-style: italic;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-control-family="markdown"][data-slot="strong"]) {
|
|
45
|
+
font-weight: var(--font-weight-semibold);
|
|
46
|
+
color: var(--foreground);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where([data-control-family="markdown"][data-slot="separator"]) {
|
|
50
|
+
margin-block: calc(var(--spacing) * 6);
|
|
51
|
+
border-color: var(--border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where([data-control-family="markdown"][data-slot="blockquote"]) {
|
|
55
|
+
margin-block: calc(var(--spacing) * 4);
|
|
56
|
+
padding-inline-start: calc(var(--spacing) * 4);
|
|
57
|
+
border-color: var(--cui-markdown-blockquote-border-color);
|
|
58
|
+
border-left-style: solid;
|
|
59
|
+
border-left-width: 2px;
|
|
60
|
+
color: var(--cui-markdown-blockquote-foreground);
|
|
61
|
+
font-style: italic;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-control-family="markdown"][data-slot="link"]) {
|
|
65
|
+
font-weight: var(--font-weight-medium);
|
|
66
|
+
color: var(--cui-markdown-link-foreground);
|
|
67
|
+
--_markdown-link-decoration: underline;
|
|
68
|
+
text-decoration-line: var(--_markdown-link-decoration);
|
|
69
|
+
text-underline-offset: 2px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (hover: hover) {
|
|
73
|
+
:where([data-control-family="markdown"][data-slot="link"]:hover) {
|
|
74
|
+
--_markdown-link-decoration: none;
|
|
75
|
+
text-decoration-line: var(--_markdown-link-decoration);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where([data-control-family="markdown"][data-slot="list-item"]) {
|
|
80
|
+
line-height: calc(var(--spacing) * 7);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-control-family="markdown"][data-slot="paragraph"]) {
|
|
84
|
+
margin-block: calc(var(--spacing) * 3);
|
|
85
|
+
line-height: calc(var(--spacing) * 7);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where([data-control-family="markdown"][data-slot="h3"]) {
|
|
89
|
+
margin-block: calc(var(--spacing) * 5) calc(var(--spacing) * 2);
|
|
90
|
+
font-weight: var(--font-weight-semibold);
|
|
91
|
+
font-size: var(--text-base);
|
|
92
|
+
line-height: var(--text-base--line-height);
|
|
93
|
+
color: var(--foreground);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where([data-control-family="markdown"][data-slot="h2"]) {
|
|
97
|
+
font-weight: var(--font-weight-semibold);
|
|
98
|
+
font-size: var(--text-lg);
|
|
99
|
+
line-height: var(--text-lg--line-height);
|
|
100
|
+
color: var(--foreground);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-control-family="markdown"][data-slot="h1"]) {
|
|
104
|
+
font-weight: var(--font-weight-semibold);
|
|
105
|
+
font-size: var(--text-xl);
|
|
106
|
+
line-height: var(--text-xl--line-height);
|
|
107
|
+
color: var(--foreground);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where([data-control-family="markdown"][data-slot="h1"]),
|
|
111
|
+
:where([data-control-family="markdown"][data-slot="h2"]) {
|
|
112
|
+
margin-block: calc(var(--spacing) * 6) calc(var(--spacing) * 3);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:where([data-control-family="markdown"]:is([data-slot="h1"], [data-slot="h2"], [data-slot="h3"]):first-child) {
|
|
116
|
+
margin-block-start: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where([data-control-family="markdown"][data-slot="paragraph"]:first-child) {
|
|
120
|
+
margin-block-start: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where([data-control-family="markdown"][data-slot="paragraph"]:last-child) {
|
|
124
|
+
margin-block-end: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:where([data-control-family="markdown"][data-slot="unordered-list"]),
|
|
128
|
+
:where([data-control-family="markdown"][data-slot="ordered-list"]) {
|
|
129
|
+
margin-block: calc(var(--spacing) * 3);
|
|
130
|
+
padding-inline-start: calc(var(--spacing) * 6);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where([data-control-family="markdown"]:is([data-slot="unordered-list"], [data-slot="ordered-list"]) > * + *) {
|
|
134
|
+
margin-block-start: calc(var(--spacing) * 1);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:where([data-control-family="markdown"][data-slot="table-scroll"]) {
|
|
138
|
+
margin-block: calc(var(--spacing) * 4);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where([data-control-family="markdown"][data-slot="inline-code"]) {
|
|
142
|
+
padding-inline: calc(var(--spacing) * 1);
|
|
143
|
+
padding-block: calc(var(--spacing) * 0.5);
|
|
144
|
+
border-radius: var(--cui-markdown-inline-code-radius);
|
|
145
|
+
background-color: var(--cui-markdown-inline-code-background);
|
|
146
|
+
font-family: var(--font-mono);
|
|
147
|
+
font-size: 0.9em;
|
|
148
|
+
color: var(--cui-markdown-inline-code-foreground);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@property --cui-markdown-foreground {
|
|
153
|
+
syntax: "<color>";
|
|
154
|
+
inherits: true;
|
|
155
|
+
initial-value: transparent;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@property --cui-markdown-blockquote-border-color {
|
|
159
|
+
syntax: "<color>";
|
|
160
|
+
inherits: true;
|
|
161
|
+
initial-value: transparent;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@property --cui-markdown-blockquote-foreground {
|
|
165
|
+
syntax: "<color>";
|
|
166
|
+
inherits: true;
|
|
167
|
+
initial-value: transparent;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@property --cui-markdown-inline-code-background {
|
|
171
|
+
syntax: "<color>";
|
|
172
|
+
inherits: true;
|
|
173
|
+
initial-value: transparent;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@property --cui-markdown-inline-code-foreground {
|
|
177
|
+
syntax: "<color>";
|
|
178
|
+
inherits: true;
|
|
179
|
+
initial-value: transparent;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@property --cui-markdown-inline-code-radius {
|
|
183
|
+
syntax: "<length-percentage>+";
|
|
184
|
+
inherits: true;
|
|
185
|
+
initial-value: 0px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@property --cui-markdown-link-foreground {
|
|
189
|
+
syntax: "<color>";
|
|
190
|
+
inherits: true;
|
|
191
|
+
initial-value: transparent;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@property --cui-markdown-table-cell-border-color {
|
|
195
|
+
syntax: "<color>";
|
|
196
|
+
inherits: true;
|
|
197
|
+
initial-value: transparent;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@property --cui-markdown-table-header-background {
|
|
201
|
+
syntax: "<color>";
|
|
202
|
+
inherits: true;
|
|
203
|
+
initial-value: transparent;
|
|
204
|
+
}
|