@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,149 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="switch"][data-slot="root"]) {
|
|
3
|
+
block-size: calc(var(--spacing) * 5);
|
|
4
|
+
inline-size: calc(var(--spacing) * 9);
|
|
5
|
+
padding: calc(var(--spacing) * 0.5);
|
|
6
|
+
--cui-switch-background: oklch(from var(--foreground) l c h / 0.14);
|
|
7
|
+
--cui-switch-hover-background: oklch(from var(--foreground) l c h / 0.2);
|
|
8
|
+
--cui-switch-checked-background: var(--primary);
|
|
9
|
+
--cui-switch-checked-hover-background: oklch(from var(--primary) l c h / 0.9);
|
|
10
|
+
--cui-switch-thumb-radius: 9999px;
|
|
11
|
+
--cui-switch-thumb-background: var(--background);
|
|
12
|
+
--cui-switch-thumb-shadow: var(--shadow-sm);
|
|
13
|
+
border-radius: calc(infinity * 1px);
|
|
14
|
+
background: var(--cui-switch-background);
|
|
15
|
+
outline: none;
|
|
16
|
+
transition: background-color var(--duration-base) var(--ease-standard);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where([data-control-family="switch"][data-slot="root"]:hover) {
|
|
20
|
+
background: var(--cui-switch-hover-background);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="switch"][data-slot="root"]:active) {
|
|
24
|
+
background: oklch(from var(--foreground) l c h / 0.25);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked]) {
|
|
28
|
+
background: var(--cui-switch-checked-background);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked]:hover) {
|
|
32
|
+
background: var(--cui-switch-checked-hover-background);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked]:active) {
|
|
36
|
+
background: oklch(from var(--primary) l c h / 0.8);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where([data-control-family="switch"][data-slot="root"][data-disabled]) {
|
|
40
|
+
opacity: 0.5;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where([data-control-family="switch"][data-slot="root"][data-disabled]:hover) {
|
|
44
|
+
background: var(--cui-switch-background);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where([data-control-family="switch"][data-slot="root"][data-disabled][data-checked]:hover) {
|
|
48
|
+
background: var(--cui-switch-checked-background);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where([data-control-family="switch"][data-slot="thumb"]) {
|
|
52
|
+
border-radius: var(--cui-switch-thumb-radius);
|
|
53
|
+
background: var(--cui-switch-thumb-background);
|
|
54
|
+
box-shadow: var(--cui-switch-thumb-shadow);
|
|
55
|
+
width: calc(var(--spacing) * 4);
|
|
56
|
+
height: calc(var(--spacing) * 4);
|
|
57
|
+
transition-property: translate, width;
|
|
58
|
+
transition-duration: var(--duration-base);
|
|
59
|
+
transition-timing-function: var(--ease-emphasized);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where([data-control-family="switch"][data-slot="root"][data-disabled] [data-slot="thumb"]) {
|
|
63
|
+
opacity: 0.8;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-control-family="switch"][data-slot="thumb-icon"]) {
|
|
67
|
+
color: oklch(from var(--foreground) l c h / 0.7);
|
|
68
|
+
transition-property: color, opacity;
|
|
69
|
+
transition-duration: var(--duration-base);
|
|
70
|
+
transition-timing-function: var(--ease-standard);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked] [data-slot="thumb-icon"]:not([data-switch-icon="unchecked"])) {
|
|
74
|
+
color: var(--primary-text);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where([data-control-family="switch"][data-slot="thumb-icon"][data-switch-icon="unchecked"]) {
|
|
78
|
+
color: oklch(from var(--foreground) l c h / 0.6);
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked] [data-switch-icon="unchecked"]) {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where([data-control-family="switch"][data-slot="thumb-icon"][data-switch-icon="checked"]) {
|
|
87
|
+
color: var(--primary-text);
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked] [data-switch-icon="checked"]) {
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where([data-control-family="switch"][data-slot="thumb"][data-checked]) {
|
|
96
|
+
--_switch-thumb-translate: calc(var(--spacing) * 4) 0;
|
|
97
|
+
translate: var(--_switch-thumb-translate);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where([data-control-family="switch"][data-slot="root"]:active [data-control-family="switch"][data-slot="thumb"]) {
|
|
101
|
+
width: calc(var(--spacing) * 5);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where([data-control-family="switch"][data-slot="root"]:active [data-control-family="switch"][data-slot="thumb"][data-checked]) {
|
|
105
|
+
--_switch-thumb-translate: calc(var(--spacing) * 3) 0;
|
|
106
|
+
translate: var(--_switch-thumb-translate);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@property --cui-switch-thumb-shadow {
|
|
111
|
+
syntax: "*";
|
|
112
|
+
inherits: true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@property --cui-switch-background {
|
|
116
|
+
syntax: "<color>";
|
|
117
|
+
inherits: true;
|
|
118
|
+
initial-value: transparent;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@property --cui-switch-hover-background {
|
|
122
|
+
syntax: "<color>";
|
|
123
|
+
inherits: true;
|
|
124
|
+
initial-value: transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@property --cui-switch-checked-background {
|
|
128
|
+
syntax: "<color>";
|
|
129
|
+
inherits: true;
|
|
130
|
+
initial-value: transparent;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@property --cui-switch-checked-hover-background {
|
|
134
|
+
syntax: "<color>";
|
|
135
|
+
inherits: true;
|
|
136
|
+
initial-value: transparent;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@property --cui-switch-thumb-radius {
|
|
140
|
+
syntax: "<length-percentage>";
|
|
141
|
+
inherits: true;
|
|
142
|
+
initial-value: 0px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@property --cui-switch-thumb-background {
|
|
146
|
+
syntax: "<color>";
|
|
147
|
+
inherits: true;
|
|
148
|
+
initial-value: transparent;
|
|
149
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="table-of-contents"][data-slot="root"]) {
|
|
3
|
+
--cui-track-highlight-transition-duration: var(--duration-base);
|
|
4
|
+
--cui-table-of-contents-rail-background: oklch(from var(--border) l c h / 0.6);
|
|
5
|
+
--cui-table-of-contents-highlight-radius: var(--radius-md);
|
|
6
|
+
--cui-table-of-contents-highlight-background: oklch(from var(--foreground) l c h / 0.04);
|
|
7
|
+
border: 1px solid oklch(from var(--border) l c h / 0.7);
|
|
8
|
+
border-radius: var(--radius-panel);
|
|
9
|
+
background-color: oklch(from var(--card) l c h / 0.8);
|
|
10
|
+
box-shadow: var(--shadow-sm);
|
|
11
|
+
backdrop-filter: blur(var(--blur-sm));
|
|
12
|
+
padding: calc(var(--spacing) * 4);
|
|
13
|
+
font-size: var(--text-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-control-family="table-of-contents"][data-slot="label"]) {
|
|
17
|
+
margin-block-end: calc(var(--spacing) * 3);
|
|
18
|
+
color: var(--muted-foreground);
|
|
19
|
+
font-size: var(--text-caption);
|
|
20
|
+
font-weight: var(--font-weight-medium);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="table-of-contents"][data-slot="rail"]) {
|
|
24
|
+
background-color: var(--cui-table-of-contents-rail-background);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where([data-control-family="table-of-contents"][data-slot="item"]) {
|
|
28
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
29
|
+
padding-inline-start: calc(var(--spacing) * 14);
|
|
30
|
+
color: var(--muted-foreground);
|
|
31
|
+
font-size: var(--text-sm);
|
|
32
|
+
font-weight: var(--font-weight-normal);
|
|
33
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
34
|
+
transition-duration: var(--duration-fast);
|
|
35
|
+
transition-timing-function: var(--ease-standard);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="1"]) {
|
|
39
|
+
padding-inline-start: calc(var(--spacing) * 5);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="2"]) {
|
|
43
|
+
padding-inline-start: calc(var(--spacing) * 7);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="3"]) {
|
|
47
|
+
padding-inline-start: calc(var(--spacing) * 9);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="4"]) {
|
|
51
|
+
padding-inline-start: calc(var(--spacing) * 11);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="0"]) {
|
|
55
|
+
padding-inline-start: calc(var(--spacing) * 3);
|
|
56
|
+
font-weight: var(--font-weight-medium);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (hover: hover) {
|
|
60
|
+
:where([data-control-family="table-of-contents"][data-slot="item"]:hover) {
|
|
61
|
+
color: var(--foreground);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where([data-control-family="table-of-contents"][data-slot="item"]:focus-visible) {
|
|
66
|
+
color: var(--foreground);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-control-family="table-of-contents"][data-slot="item"][data-active]) {
|
|
70
|
+
color: var(--foreground);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where([data-control-family="table-of-contents"][data-slot="root"] [data-control-family="track-highlight"][data-slot="root"]) {
|
|
74
|
+
--cui-track-highlight-radius: var(--cui-table-of-contents-highlight-radius);
|
|
75
|
+
--cui-track-highlight-background: var(--cui-table-of-contents-highlight-background);
|
|
76
|
+
--cui-track-highlight-ring-color: transparent;
|
|
77
|
+
--cui-track-highlight-shadow: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where([data-control-family="table-of-contents"][data-slot="root"][data-variant="trail"]) {
|
|
81
|
+
--cui-table-of-contents-highlight-radius: 0px;
|
|
82
|
+
--cui-table-of-contents-highlight-background: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where([data-control-family="table-of-contents"][data-slot="trail"]) {
|
|
86
|
+
border-radius: 9999px;
|
|
87
|
+
background-color: var(--foreground);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@property --cui-table-of-contents-rail-background {
|
|
92
|
+
syntax: "<color>";
|
|
93
|
+
inherits: true;
|
|
94
|
+
initial-value: transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@property --cui-table-of-contents-highlight-radius {
|
|
98
|
+
syntax: "<length-percentage>";
|
|
99
|
+
inherits: true;
|
|
100
|
+
initial-value: 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@property --cui-table-of-contents-highlight-background {
|
|
104
|
+
syntax: "<color>";
|
|
105
|
+
inherits: true;
|
|
106
|
+
initial-value: transparent;
|
|
107
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="table"][data-slot="root"]) {
|
|
3
|
+
--cui-table-background: transparent;
|
|
4
|
+
--cui-table-foreground: var(--foreground);
|
|
5
|
+
--cui-table-border-color: var(--border);
|
|
6
|
+
--cui-table-footer-background: oklch(from var(--foreground) l c h / 0.03);
|
|
7
|
+
--cui-table-header-foreground: var(--muted-foreground);
|
|
8
|
+
--cui-table-row-hover-background: oklch(from var(--foreground) l c h / 0.03);
|
|
9
|
+
--cui-table-row-selected-background: oklch(from var(--foreground) l c h / 0.05);
|
|
10
|
+
background: var(--cui-table-background);
|
|
11
|
+
color: var(--cui-table-foreground);
|
|
12
|
+
border-collapse: collapse;
|
|
13
|
+
font-size: var(--text-body);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-control-family="table"][data-slot="header"] [data-slot="row"]) {
|
|
17
|
+
border-bottom-color: var(--cui-table-border-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-control-family="table"][data-slot="footer"]) {
|
|
21
|
+
border-top-color: var(--cui-table-border-color);
|
|
22
|
+
background: var(--cui-table-footer-background);
|
|
23
|
+
border-top-style: solid;
|
|
24
|
+
border-top-width: 1px;
|
|
25
|
+
font-weight: var(--font-weight-medium);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="table"][data-slot="row"]) {
|
|
29
|
+
border-bottom-color: var(--cui-table-border-color);
|
|
30
|
+
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
31
|
+
border-bottom-style: solid;
|
|
32
|
+
border-bottom-width: 1px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(
|
|
36
|
+
[data-control-family="table"][data-slot="row"]:is(
|
|
37
|
+
[data-interactive],
|
|
38
|
+
[tabindex],
|
|
39
|
+
[role="button"],
|
|
40
|
+
:has(a, button, [role="checkbox"])
|
|
41
|
+
):hover
|
|
42
|
+
) {
|
|
43
|
+
background: var(--cui-table-row-hover-background);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where([data-control-family="table"][data-slot="row"][data-state="selected"]) {
|
|
47
|
+
background: var(--cui-table-row-selected-background);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-control-family="table"][data-slot="head"]) {
|
|
51
|
+
block-size: calc(var(--spacing) * 10);
|
|
52
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
53
|
+
color: var(--cui-table-header-foreground);
|
|
54
|
+
text-align: left;
|
|
55
|
+
font-weight: var(--font-weight-medium);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where([data-control-family="table"][data-slot="caption"]) {
|
|
59
|
+
margin-block-start: calc(var(--spacing) * 4);
|
|
60
|
+
color: var(--muted-foreground);
|
|
61
|
+
font-size: var(--text-body);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-control-family="table"][data-slot="footer"] > tr:last-child) {
|
|
65
|
+
border-bottom-style: solid;
|
|
66
|
+
border-bottom-width: 0px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-control-family="table"][data-slot="body"] tr:last-child) {
|
|
70
|
+
border-style: solid;
|
|
71
|
+
border-width: 0px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-control-family="table"][data-slot="header"] tr) {
|
|
75
|
+
border-bottom-style: solid;
|
|
76
|
+
border-bottom-width: 1px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where([data-control-family="table"][data-slot="cell"]) {
|
|
80
|
+
padding: calc(var(--spacing) * 2);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@property --cui-table-background {
|
|
85
|
+
syntax: "*";
|
|
86
|
+
inherits: true;
|
|
87
|
+
initial-value: transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@property --cui-table-foreground {
|
|
91
|
+
syntax: "<color>";
|
|
92
|
+
inherits: true;
|
|
93
|
+
initial-value: transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@property --cui-table-border-color {
|
|
97
|
+
syntax: "<color>";
|
|
98
|
+
inherits: true;
|
|
99
|
+
initial-value: transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@property --cui-table-row-hover-background {
|
|
103
|
+
syntax: "*";
|
|
104
|
+
inherits: true;
|
|
105
|
+
initial-value: transparent;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@property --cui-table-row-selected-background {
|
|
109
|
+
syntax: "*";
|
|
110
|
+
inherits: true;
|
|
111
|
+
initial-value: transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@property --cui-table-header-foreground {
|
|
115
|
+
syntax: "<color>";
|
|
116
|
+
inherits: true;
|
|
117
|
+
initial-value: transparent;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@property --cui-table-footer-background {
|
|
121
|
+
syntax: "*";
|
|
122
|
+
inherits: true;
|
|
123
|
+
initial-value: transparent;
|
|
124
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="tabs"][data-slot="root"]) {
|
|
3
|
+
--cui-tabs-trigger-radius: var(--radius-control);
|
|
4
|
+
--cui-tabs-list-padding: calc(var(--spacing) * 1);
|
|
5
|
+
--cui-tabs-list-radius: calc(
|
|
6
|
+
var(--cui-tabs-trigger-radius) +
|
|
7
|
+
clamp(0px, calc(var(--cui-tabs-trigger-radius) * 1000), var(--cui-tabs-list-padding))
|
|
8
|
+
);
|
|
9
|
+
--cui-tabs-list-background: var(--hover-fill);
|
|
10
|
+
--cui-tabs-list-shadow: inset 0 0 0 var(--control-rim-width) var(--control-rim), var(--shadow-inset);
|
|
11
|
+
--cui-tabs-list-backdrop-filter: none;
|
|
12
|
+
--cui-tabs-indicator-background: var(--background);
|
|
13
|
+
--cui-tabs-foreground: var(--muted-foreground);
|
|
14
|
+
--cui-tabs-active-foreground: var(--foreground);
|
|
15
|
+
--cui-tabs-indicator-shadow: var(--shadow-sm);
|
|
16
|
+
--cui-tabs-border-color: var(--border);
|
|
17
|
+
}
|
|
18
|
+
:where([data-control-family="tabs"][data-slot="list"]) {
|
|
19
|
+
--_tabs-trigger-radius-fit: min(var(--cui-tabs-trigger-radius), calc(var(--_tabs-trigger-h) / 2));
|
|
20
|
+
position: relative;
|
|
21
|
+
display: flex;
|
|
22
|
+
min-height: calc(var(--_tabs-trigger-h) + var(--cui-tabs-list-padding) + var(--cui-tabs-list-padding));
|
|
23
|
+
width: fit-content;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: calc(var(--spacing) * 1);
|
|
26
|
+
border-radius: min(var(--cui-tabs-list-radius), calc(var(--_tabs-trigger-h) / 2 + var(--cui-tabs-list-padding)));
|
|
27
|
+
background: var(--cui-tabs-list-background);
|
|
28
|
+
box-shadow: var(--cui-tabs-list-shadow);
|
|
29
|
+
padding: var(--cui-tabs-list-padding);
|
|
30
|
+
-webkit-backdrop-filter: var(--cui-tabs-list-backdrop-filter);
|
|
31
|
+
backdrop-filter: var(--cui-tabs-list-backdrop-filter);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([data-control-family="tabs"][data-slot="indicator"]) {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
left: 0;
|
|
38
|
+
z-index: 0;
|
|
39
|
+
height: var(--_tabs-trigger-h);
|
|
40
|
+
width: var(--active-tab-width);
|
|
41
|
+
transform: translateX(var(--active-tab-left)) translateY(-50%);
|
|
42
|
+
border-radius: var(--_tabs-trigger-radius-fit);
|
|
43
|
+
background: var(--cui-tabs-indicator-background);
|
|
44
|
+
box-shadow: var(--cui-tabs-indicator-shadow);
|
|
45
|
+
/* left, not transform, in the browser variant: transform slides on the compositor while width resizes on the main thread — the ends tear apart. */
|
|
46
|
+
transition:
|
|
47
|
+
width var(--duration-base) var(--ease-standard),
|
|
48
|
+
left var(--duration-base) var(--ease-standard),
|
|
49
|
+
transform var(--duration-base) var(--ease-standard),
|
|
50
|
+
background-color var(--duration-fast) var(--ease-standard),
|
|
51
|
+
box-shadow var(--duration-fast) var(--ease-standard);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where([data-control-family="tabs"][data-slot="tab"]) {
|
|
55
|
+
position: relative;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
height: var(--_tabs-trigger-h);
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
gap: calc(var(--spacing) * 1.5);
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
border-radius: var(--_tabs-trigger-radius-fit);
|
|
66
|
+
padding-inline: calc(var(--spacing) * 3.5);
|
|
67
|
+
color: var(--cui-tabs-foreground);
|
|
68
|
+
font-size: var(--text-label);
|
|
69
|
+
font-weight: var(--font-weight-medium);
|
|
70
|
+
outline: none;
|
|
71
|
+
transition: color var(--duration-fast) var(--ease-standard);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-control-family="tabs"][data-slot="tab"]:hover) {
|
|
75
|
+
color: var(--foreground);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where([data-control-family="tabs"][data-slot="tab"]:is([aria-selected="true"], [data-active])) {
|
|
79
|
+
color: var(--cui-tabs-active-foreground);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="tabs"][data-slot="tab"][data-disabled]) {
|
|
83
|
+
cursor: not-allowed;
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"]) {
|
|
88
|
+
--_tabs-browser-corner-double: calc(var(--_tabs-trigger-radius-fit) + var(--_tabs-trigger-radius-fit));
|
|
89
|
+
/* One trigger radius for the flare, plus the surface corner arc it must clear. */
|
|
90
|
+
--_tabs-browser-inset: calc(var(--_tabs-trigger-radius-fit) + var(--radius-panel));
|
|
91
|
+
min-height: calc(var(--_tabs-trigger-h) + var(--cui-tabs-list-padding));
|
|
92
|
+
align-items: flex-end;
|
|
93
|
+
isolation: isolate;
|
|
94
|
+
/* The slide machinery promotes the surface wrapper mid-switch — the strip stays above it. */
|
|
95
|
+
z-index: 1;
|
|
96
|
+
/* Bare-surface chrome: re-pin the pill knobs so a skin's pill styling can't leak in. */
|
|
97
|
+
--cui-tabs-list-background: transparent;
|
|
98
|
+
--cui-tabs-list-shadow: inset 0 -1px 0 var(--cui-tabs-border-color);
|
|
99
|
+
--cui-tabs-indicator-background: var(--background);
|
|
100
|
+
border-radius: var(--cui-tabs-list-radius) var(--cui-tabs-list-radius) 0 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-slot="indicator"]) {
|
|
104
|
+
--_tabs-browser-indicator-width: calc(var(--active-tab-width) + var(--_tabs-browser-corner-double));
|
|
105
|
+
--_tabs-browser-indicator-x: calc(var(--active-tab-left) - var(--_tabs-trigger-radius-fit));
|
|
106
|
+
background: none;
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-slot="indicator"])::before {
|
|
111
|
+
content: "";
|
|
112
|
+
position: absolute;
|
|
113
|
+
inset: 0 var(--_tabs-trigger-radius-fit);
|
|
114
|
+
border: 1px solid var(--cui-tabs-border-color);
|
|
115
|
+
border-bottom: none;
|
|
116
|
+
border-radius: var(--_tabs-trigger-radius-fit) var(--_tabs-trigger-radius-fit) 0 0;
|
|
117
|
+
background: var(--cui-tabs-indicator-background);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Flares: the side walls scoop outward into the surface line — an arc no border can draw. */
|
|
121
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-slot="indicator"])::after {
|
|
122
|
+
content: "";
|
|
123
|
+
position: absolute;
|
|
124
|
+
inset: auto 0 0;
|
|
125
|
+
height: var(--_tabs-trigger-radius-fit);
|
|
126
|
+
background:
|
|
127
|
+
radial-gradient(
|
|
128
|
+
circle at 0 -1px,
|
|
129
|
+
transparent calc(var(--_tabs-trigger-radius-fit) - 0.5px),
|
|
130
|
+
var(--cui-tabs-border-color) var(--_tabs-trigger-radius-fit) calc(var(--_tabs-trigger-radius-fit) + 0.5px),
|
|
131
|
+
var(--cui-tabs-indicator-background) calc(var(--_tabs-trigger-radius-fit) + 1px)
|
|
132
|
+
)
|
|
133
|
+
left / calc(var(--_tabs-trigger-radius-fit) + 1px) 100% no-repeat,
|
|
134
|
+
radial-gradient(
|
|
135
|
+
circle at 100% -1px,
|
|
136
|
+
transparent calc(var(--_tabs-trigger-radius-fit) - 0.5px),
|
|
137
|
+
var(--cui-tabs-border-color) var(--_tabs-trigger-radius-fit) calc(var(--_tabs-trigger-radius-fit) + 0.5px),
|
|
138
|
+
var(--cui-tabs-indicator-background) calc(var(--_tabs-trigger-radius-fit) + 1px)
|
|
139
|
+
)
|
|
140
|
+
right / calc(var(--_tabs-trigger-radius-fit) + 1px) 100% no-repeat,
|
|
141
|
+
linear-gradient(var(--cui-tabs-indicator-background) 0 0) center / calc(100% - var(--_tabs-browser-corner-double)) 100% no-repeat;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where([data-control-family="tabs"][data-slot="list"][data-single="true"]) {
|
|
145
|
+
min-height: auto;
|
|
146
|
+
gap: 0;
|
|
147
|
+
border-radius: 0;
|
|
148
|
+
background: transparent;
|
|
149
|
+
padding: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:where([data-control-family="tabs"][data-slot="list"][data-single="true"] [data-slot="tab"]) {
|
|
153
|
+
height: auto;
|
|
154
|
+
cursor: default;
|
|
155
|
+
border-radius: 0;
|
|
156
|
+
padding-inline: 0;
|
|
157
|
+
color: var(--muted-foreground);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:where([data-control-family="tabs"][data-slot="panel"]) {
|
|
161
|
+
outline-style: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-control-family="tabs"][data-slot="tab"]) {
|
|
165
|
+
border-top-left-radius: var(--_tabs-trigger-radius-fit);
|
|
166
|
+
border-top-right-radius: var(--_tabs-trigger-radius-fit);
|
|
167
|
+
border-bottom-right-radius: 0;
|
|
168
|
+
border-bottom-left-radius: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@property --cui-tabs-trigger-radius {
|
|
173
|
+
syntax: "<length-percentage>";
|
|
174
|
+
inherits: true;
|
|
175
|
+
initial-value: 0px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@property --cui-tabs-list-padding {
|
|
179
|
+
syntax: "<length-percentage>";
|
|
180
|
+
inherits: true;
|
|
181
|
+
initial-value: 0px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@property --cui-tabs-list-radius {
|
|
185
|
+
syntax: "<length-percentage>";
|
|
186
|
+
inherits: true;
|
|
187
|
+
initial-value: 0px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@property --cui-tabs-list-background {
|
|
191
|
+
syntax: "<color>";
|
|
192
|
+
inherits: true;
|
|
193
|
+
initial-value: transparent;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@property --cui-tabs-list-backdrop-filter {
|
|
197
|
+
syntax: "*";
|
|
198
|
+
inherits: true;
|
|
199
|
+
initial-value: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@property --cui-tabs-indicator-background {
|
|
203
|
+
syntax: "*";
|
|
204
|
+
inherits: true;
|
|
205
|
+
initial-value: transparent;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@property --cui-tabs-foreground {
|
|
209
|
+
syntax: "<color>";
|
|
210
|
+
inherits: true;
|
|
211
|
+
initial-value: transparent;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@property --cui-tabs-active-foreground {
|
|
215
|
+
syntax: "<color>";
|
|
216
|
+
inherits: true;
|
|
217
|
+
initial-value: transparent;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@property --cui-tabs-indicator-shadow {
|
|
221
|
+
syntax: "*";
|
|
222
|
+
inherits: true;
|
|
223
|
+
initial-value: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@property --cui-tabs-list-shadow {
|
|
227
|
+
syntax: "*";
|
|
228
|
+
inherits: true;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@property --cui-tabs-border-color {
|
|
232
|
+
syntax: "<color>";
|
|
233
|
+
inherits: true;
|
|
234
|
+
initial-value: transparent;
|
|
235
|
+
}
|