@ctrl-ui/react 0.8.7 → 0.8.9
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/dist/action-bar.d.ts +15 -7
- package/dist/action-bar.js +39 -19
- package/dist/activity.js +7 -15
- package/dist/audio-recorder.d.ts +14 -4
- package/dist/audio-recorder.js +82 -29
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/coding-agent.js +39 -39
- package/dist/blocks/design-canvas.d.ts +5 -1
- package/dist/blocks/design-canvas.js +198 -92
- package/dist/blocks/discussion.d.ts +28 -0
- package/dist/blocks/discussion.js +67 -0
- package/dist/blocks/file-explorer-data.d.ts +1 -0
- package/dist/blocks/file-explorer-data.js +4 -1
- package/dist/blocks/file-explorer.d.ts +9 -1
- package/dist/blocks/file-explorer.js +461 -192
- package/dist/blocks/settings.d.ts +2 -1
- package/dist/blocks/settings.js +101 -79
- package/dist/blocks/team-chat.d.ts +12 -0
- package/dist/blocks/team-chat.js +26 -0
- package/dist/blocks/theme-toggle.js +23 -31
- package/dist/chat-composer-attachment.d.ts +4 -1
- package/dist/chat-composer-attachment.js +35 -10
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +59 -28
- package/dist/chat-composer-editor/ghost.js +2 -4
- package/dist/chat-composer-editor/types.d.ts +5 -0
- package/dist/chat-composer-editor.d.ts +1 -1
- package/dist/chat-composer-editor.js +57 -30
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +52 -12
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +91 -40
- package/dist/chat-message/social.d.ts +26 -0
- package/dist/chat-message/social.js +122 -0
- package/dist/chat-message.d.ts +28 -29
- package/dist/chat-message.js +106 -25
- package/dist/context.d.ts +2 -2
- package/dist/context.js +38 -23
- package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
- package/dist/dynamic-notification-canvas-loop.js +113 -0
- package/dist/dynamic-notification-glass.js +23 -114
- package/dist/dynamic-notification-liquid.js +14 -118
- package/dist/dynamic-notification.d.ts +16 -8
- package/dist/dynamic-notification.js +85 -22
- package/dist/email/email-brand.d.ts +7 -4
- package/dist/email/email-brand.js +9 -6
- package/dist/email/email-code.d.ts +3 -2
- package/dist/email/email-code.js +11 -9
- package/dist/email/email-footer.d.ts +5 -3
- package/dist/email/email-footer.js +11 -5
- package/dist/email/email.d.ts +31 -9
- package/dist/email/email.js +50 -26
- package/dist/email/templates.d.ts +10 -9
- package/dist/email/templates.js +102 -38
- package/dist/email/theme.js +1 -1
- package/dist/environment-variables.d.ts +4 -2
- package/dist/environment-variables.js +52 -32
- package/dist/filter-bar/editor.js +20 -8
- package/dist/filter-bar/model.d.ts +1 -0
- package/dist/filter-bar/model.js +10 -1
- package/dist/filter-bar/motion.js +4 -4
- package/dist/filter-bar/parts.js +19 -8
- package/dist/filter-bar/types.d.ts +1 -0
- package/dist/filter-bar.js +19 -13
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +19 -7
- package/dist/hooks/use-chat-composer.js +32 -5
- package/dist/hooks/use-chat-message.d.ts +28 -2
- package/dist/hooks/use-chat-message.js +41 -10
- package/dist/hooks/use-chat-thread-scroll.js +43 -7
- package/dist/hooks/use-color-area.d.ts +3 -3
- package/dist/hooks/use-color-area.js +13 -12
- package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
- package/dist/hooks/use-copy-to-clipboard.js +20 -20
- package/dist/hooks/use-dynamic-notification.d.ts +6 -2
- package/dist/hooks/use-dynamic-notification.js +26 -10
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +8 -4
- package/dist/hooks/use-textarea-trigger-menu.js +2 -1
- package/dist/hooks/use-trigger-menu.d.ts +54 -0
- package/dist/hooks/use-trigger-menu.js +102 -47
- package/dist/hooks/use-user-ask.d.ts +2 -0
- package/dist/hooks/use-user-ask.js +35 -41
- package/dist/inline-attachment.d.ts +6 -2
- package/dist/inline-attachment.js +36 -15
- package/dist/inline-citation.d.ts +12 -5
- package/dist/inline-citation.js +25 -16
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
- package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
- package/dist/knob-contracts/avatar-knobs.js +6 -1
- package/dist/knob-contracts/badge-knobs.d.ts +1 -1
- package/dist/knob-contracts/badge-knobs.js +2 -1
- package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
- package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
- package/dist/knob-contracts/button-knobs.d.ts +1 -1
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-diff-knobs.js +2 -0
- package/dist/knob-contracts/code-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-knobs.js +2 -1
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
- package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
- package/dist/knob-contracts/field-knobs.d.ts +1 -1
- package/dist/knob-contracts/field-knobs.js +5 -1
- package/dist/knob-contracts/filter-bar-knobs.d.ts +1 -1
- package/dist/knob-contracts/filter-bar-knobs.js +1 -2
- package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
- package/dist/knob-contracts/markdown-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/page-layout-knobs.js +2 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +27 -0
- package/dist/knob-contracts/range-knobs.d.ts +1 -1
- package/dist/knob-contracts/range-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
- package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +27 -2
- package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
- package/dist/knob-contracts/spinner-knobs.js +1 -1
- package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
- package/dist/knob-contracts/stepper-knobs.js +4 -1
- package/dist/knob-contracts/switch-knobs.d.ts +1 -1
- package/dist/knob-contracts/switch-knobs.js +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +2 -1
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +1 -0
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/cn.js +0 -4
- package/dist/lib/contrast.d.ts +1 -0
- package/dist/lib/contrast.js +17 -5
- package/dist/lib/dropzone-validation.js +41 -28
- package/dist/lib/env-file.d.ts +1 -1
- package/dist/lib/env-file.js +5 -5
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.js +15 -0
- package/dist/lib/trigger-detect.js +6 -8
- package/dist/markdown-block.js +2 -1
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- package/dist/source-badge.js +3 -1
- package/dist/styles/code.css +0 -2
- package/dist/styles/effects.css +6 -32
- package/dist/styles/index.css +10 -5
- package/dist/styles/recipes/accordion.css +9 -6
- package/dist/styles/recipes/action-bar.css +0 -15
- package/dist/styles/recipes/activity.css +5 -11
- package/dist/styles/recipes/alert.css +4 -4
- package/dist/styles/recipes/audio-recorder.css +15 -3
- package/dist/styles/recipes/audio-visualizer.css +13 -2
- package/dist/styles/recipes/avatar.css +78 -1
- package/dist/styles/recipes/badge.css +14 -4
- package/dist/styles/recipes/breadcrumb.css +77 -0
- package/dist/styles/recipes/button-group.css +5 -7
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +24 -83
- package/dist/styles/recipes/calendar.css +17 -23
- package/dist/styles/recipes/card.css +2 -2
- package/dist/styles/recipes/chat-composer-attachment.css +9 -3
- package/dist/styles/recipes/chat-composer.css +7 -10
- package/dist/styles/recipes/chat-layout.css +35 -0
- package/dist/styles/recipes/chat-message-social.css +123 -0
- package/dist/styles/recipes/chat-message.css +157 -37
- package/dist/styles/recipes/choice.css +18 -21
- package/dist/styles/recipes/code-diff.css +46 -33
- package/dist/styles/recipes/code.css +36 -16
- package/dist/styles/recipes/collapsible.css +7 -2
- package/dist/styles/recipes/color-picker-details.css +3 -4
- package/dist/styles/recipes/color-picker-values.css +9 -8
- package/dist/styles/recipes/color-picker.css +11 -2
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +7 -4
- package/dist/styles/recipes/dropzone.css +7 -8
- package/dist/styles/recipes/dynamic-notification-input.css +8 -5
- package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
- package/dist/styles/recipes/dynamic-notification.css +40 -26
- package/dist/styles/recipes/emoji-picker.css +132 -0
- package/dist/styles/recipes/empty.css +5 -4
- package/dist/styles/recipes/environment-variables.css +4 -15
- package/dist/styles/recipes/field-parts.css +30 -24
- package/dist/styles/recipes/field.css +61 -26
- package/dist/styles/recipes/filter-bar.css +18 -31
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +0 -1
- package/dist/styles/recipes/inline-attachment.css +3 -3
- package/dist/styles/recipes/inline-citation.css +10 -4
- package/dist/styles/recipes/item.css +23 -9
- package/dist/styles/recipes/markdown-block.css +5 -4
- package/dist/styles/recipes/markdown.css +68 -26
- package/dist/styles/recipes/morphing-panel.css +8 -8
- package/dist/styles/recipes/page-layout.css +20 -12
- package/dist/styles/recipes/pagination.css +4 -5
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +166 -33
- package/dist/styles/recipes/popup-drawer.css +3 -14
- package/dist/styles/recipes/popup-lists.css +128 -27
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +139 -141
- package/dist/styles/recipes/range.css +54 -18
- package/dist/styles/recipes/resizable.css +2 -7
- package/dist/styles/recipes/rich-tooltip.css +24 -34
- package/dist/styles/recipes/scroll-area.css +8 -1
- package/dist/styles/recipes/sidebar-menu.css +166 -34
- package/dist/styles/recipes/sidebar-parts.css +192 -0
- package/dist/styles/recipes/sidebar.css +188 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +8 -1
- package/dist/styles/recipes/stepper.css +31 -13
- package/dist/styles/recipes/switch.css +68 -23
- package/dist/styles/recipes/table-of-contents.css +9 -1
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +17 -12
- package/dist/styles/recipes/task-list.css +7 -14
- package/dist/styles/recipes/thread-rail.css +42 -19
- package/dist/styles/recipes/timeline.css +2 -0
- package/dist/styles/recipes/toolbar.css +27 -25
- package/dist/styles/recipes/track-highlight.css +10 -7
- package/dist/styles/recipes/tree.css +31 -4
- package/dist/styles/recipes/user-ask-details.css +0 -1
- package/dist/styles/recipes/user-ask.css +4 -4
- package/dist/styles/theme.css +37 -16
- package/dist/task-list.d.ts +4 -1
- package/dist/task-list.js +24 -8
- package/dist/thread-rail.d.ts +1 -1
- package/dist/thread-rail.js +61 -19
- package/dist/transcript-divider.js +2 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +3 -1
- package/dist/ui/avatar.d.ts +8 -0
- package/dist/ui/avatar.js +23 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +27 -0
- package/dist/ui/breadcrumb.js +88 -0
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/card.d.ts +3 -1
- package/dist/ui/card.js +12 -7
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/code-diff.d.ts +1 -1
- package/dist/ui/code-diff.js +71 -27
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +26 -27
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +84 -36
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -9
- package/dist/ui/combobox.js +13 -5
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +30 -14
- package/dist/ui/context-menu.js +3 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +3 -22
- package/dist/ui/dockable-panel-geometry.d.ts +1 -0
- package/dist/ui/dockable-panel-geometry.js +7 -1
- package/dist/ui/dockable-panel.d.ts +9 -6
- package/dist/ui/dockable-panel.js +63 -23
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +2 -2
- package/dist/ui/dropzone.js +75 -16
- package/dist/ui/emoji-picker.d.ts +18 -0
- package/dist/ui/emoji-picker.js +136 -0
- package/dist/ui/empty.d.ts +3 -1
- package/dist/ui/empty.js +12 -7
- package/dist/ui/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +3 -2
- package/dist/ui/infinite-canvas.js +63 -19
- package/dist/ui/input-group.d.ts +0 -3
- package/dist/ui/input-group.js +3 -13
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +4 -4
- package/dist/ui/item.d.ts +2 -1
- package/dist/ui/item.js +11 -7
- package/dist/ui/live-status.d.ts +7 -0
- package/dist/ui/live-status.js +17 -0
- package/dist/ui/markdown-elements.d.ts +6 -0
- package/dist/ui/markdown-elements.js +31 -1
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/morphing-panel.js +2 -1
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/page-layout.d.ts +2 -2
- package/dist/ui/page-layout.js +2 -4
- package/dist/ui/pagination.d.ts +7 -5
- package/dist/ui/pagination.js +19 -13
- package/dist/ui/phone-input.d.ts +1 -0
- package/dist/ui/phone-input.js +56 -58
- package/dist/ui/radio-group.d.ts +2 -0
- package/dist/ui/resizable.d.ts +3 -2
- package/dist/ui/resizable.js +5 -3
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +4 -21
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.js +43 -28
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +34 -34
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +38 -13
- package/dist/ui/sidebar-resize-rail.js +7 -3
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +48 -24
- package/dist/ui/slider.js +31 -22
- package/dist/ui/spinner.d.ts +3 -2
- package/dist/ui/spinner.js +3 -2
- package/dist/ui/stepper.d.ts +8 -1
- package/dist/ui/stepper.js +74 -25
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/table-of-contents.d.ts +2 -2
- package/dist/ui/table-of-contents.js +20 -8
- package/dist/ui/table.js +4 -2
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +20 -9
- package/dist/ui/timeline.d.ts +3 -1
- package/dist/ui/timeline.js +17 -9
- package/dist/ui/toast.d.ts +11 -5
- package/dist/ui/toast.js +100 -54
- package/dist/ui/toolbar.d.ts +2 -1
- package/dist/ui/toolbar.js +3 -1
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +1 -0
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +31 -11
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="body"]) {
|
|
81
81
|
gap: calc(var(--spacing) * 4);
|
|
82
|
+
overscroll-behavior: contain;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
/* Block padding lives inside the scroller, never on the popup: the scroll edge would clip a focus ring on the first or last row. */
|
|
@@ -94,18 +95,6 @@
|
|
|
94
95
|
padding: calc(var(--spacing) * 2);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="title"]) {
|
|
98
|
-
color: var(--foreground);
|
|
99
|
-
font-weight: var(--font-weight-semibold);
|
|
100
|
-
text-wrap: balance;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="description"]) {
|
|
104
|
-
color: var(--muted-foreground);
|
|
105
|
-
font-size: var(--text-sm);
|
|
106
|
-
text-wrap: pretty;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
98
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="content"][data-side="bottom"]) {
|
|
110
99
|
--_drawer-edge-inset-end: max(calc(var(--spacing) * 4), env(safe-area-inset-bottom));
|
|
111
100
|
}
|
|
@@ -124,13 +113,13 @@
|
|
|
124
113
|
|
|
125
114
|
@media (width >= 40rem) {
|
|
126
115
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="header"]) {
|
|
127
|
-
--_drawer-header-text-align:
|
|
116
|
+
--_drawer-header-text-align: start;
|
|
128
117
|
text-align: var(--_drawer-header-text-align);
|
|
129
118
|
}
|
|
130
119
|
}
|
|
131
120
|
|
|
132
121
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="content"]) {
|
|
133
|
-
|
|
122
|
+
--cui-popup-title-foreground: var(--foreground);
|
|
134
123
|
transform: translate(var(--drawer-swipe-movement-x, 0), var(--drawer-swipe-movement-y, 0));
|
|
135
124
|
transition-property: transform, translate, scale, rotate, filter;
|
|
136
125
|
--_drawer-content-transition-duration: var(--duration-base);
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
gap: calc(var(--spacing) * 0.5);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:where([data-control-family="popup"][data-popup-kind="trigger-menu"][data-slot="positioner"]) {
|
|
36
|
-
outline-style: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
35
|
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="group"]),
|
|
40
36
|
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="group"]) {
|
|
41
37
|
padding-block: calc(var(--spacing) * 1);
|
|
@@ -58,10 +54,6 @@
|
|
|
58
54
|
color: var(--muted-foreground);
|
|
59
55
|
}
|
|
60
56
|
|
|
61
|
-
:where([data-control-family="popup"][data-popup-kind="combobox"][data-slot="positioner"]) {
|
|
62
|
-
outline-style: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
57
|
:where([data-control-family="popup"][data-popup-kind="command"][data-chrome="embedded"]) {
|
|
66
58
|
border-radius: inherit;
|
|
67
59
|
corner-shape: inherit;
|
|
@@ -80,7 +72,8 @@
|
|
|
80
72
|
letter-spacing: 0.08em;
|
|
81
73
|
}
|
|
82
74
|
|
|
83
|
-
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="empty"])
|
|
75
|
+
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="empty"]),
|
|
76
|
+
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="loading"]) {
|
|
84
77
|
padding-block: calc(var(--spacing) * 6);
|
|
85
78
|
text-align: center;
|
|
86
79
|
font-size: var(--text-body);
|
|
@@ -100,7 +93,6 @@
|
|
|
100
93
|
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="input"]) {
|
|
101
94
|
background: transparent;
|
|
102
95
|
color: var(--foreground);
|
|
103
|
-
outline-style: none;
|
|
104
96
|
}
|
|
105
97
|
|
|
106
98
|
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="input"])::placeholder,
|
|
@@ -109,7 +101,7 @@
|
|
|
109
101
|
}
|
|
110
102
|
|
|
111
103
|
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="input"]:disabled) {
|
|
112
|
-
opacity:
|
|
104
|
+
opacity: var(--disabled-opacity);
|
|
113
105
|
}
|
|
114
106
|
|
|
115
107
|
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="group"]) {
|
|
@@ -140,33 +132,29 @@
|
|
|
140
132
|
color: var(--muted-foreground);
|
|
141
133
|
}
|
|
142
134
|
|
|
143
|
-
:where([data-control-family="popup"][data-popup-kind="autocomplete"][data-slot="positioner"]) {
|
|
144
|
-
outline-style: none;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
135
|
:where([data-control-family="popup"][data-slot="item-text"]) {
|
|
148
136
|
gap: calc(var(--spacing) * 2);
|
|
149
137
|
}
|
|
150
138
|
|
|
151
139
|
:where([data-control-family="popup"][data-popup-part="label"]) {
|
|
152
|
-
padding-block:
|
|
153
|
-
padding-inline:
|
|
140
|
+
padding-block: var(--cui-popup-label-padding-block);
|
|
141
|
+
padding-inline: var(--cui-popup-label-padding-inline);
|
|
154
142
|
color: var(--muted-foreground);
|
|
155
|
-
font-size: var(--
|
|
156
|
-
font-weight: var(--font-weight
|
|
157
|
-
letter-spacing:
|
|
158
|
-
text-transform:
|
|
143
|
+
font-size: var(--cui-popup-label-font-size);
|
|
144
|
+
font-weight: var(--cui-popup-label-font-weight);
|
|
145
|
+
letter-spacing: var(--cui-popup-label-letter-spacing);
|
|
146
|
+
text-transform: var(--cui-popup-label-text-transform);
|
|
159
147
|
}
|
|
160
148
|
|
|
161
149
|
:where([data-control-family="popup"][data-popup-part="item"][data-inset]),
|
|
162
150
|
:where([data-control-family="popup"][data-popup-part="label"][data-inset]),
|
|
163
151
|
:where([data-control-family="popup"][data-popup-part="item"]:is([data-slot="checkbox-item"], [data-slot="radio-item"])) {
|
|
164
|
-
padding-inline-start:
|
|
152
|
+
padding-inline-start: var(--cui-popup-item-inset);
|
|
165
153
|
}
|
|
166
154
|
|
|
167
155
|
:where([data-control-family="popup"][data-popup-part="separator"]) {
|
|
168
156
|
margin-block: calc(var(--spacing) * 1);
|
|
169
|
-
margin-inline:
|
|
157
|
+
margin-inline: var(--cui-popup-separator-inset);
|
|
170
158
|
block-size: 1px;
|
|
171
159
|
background-color: var(--cui-popup-separator-color);
|
|
172
160
|
}
|
|
@@ -174,19 +162,19 @@
|
|
|
174
162
|
:where([data-control-family="popup"][data-popup-part="shortcut"]) {
|
|
175
163
|
margin-inline-start: auto;
|
|
176
164
|
padding-inline-start: calc(var(--spacing) * 6);
|
|
177
|
-
--_popup-shortcut-font-size: var(--text-body);
|
|
178
165
|
color: var(--cui-popup-shortcut-foreground);
|
|
179
|
-
font-size: var(--
|
|
180
|
-
letter-spacing:
|
|
166
|
+
font-size: var(--cui-popup-shortcut-font-size);
|
|
167
|
+
letter-spacing: var(--cui-popup-shortcut-letter-spacing);
|
|
181
168
|
}
|
|
182
169
|
|
|
183
170
|
:where([data-control-family="popup"][data-popup-kind="command"][data-slot="shortcut"]) {
|
|
184
|
-
--
|
|
171
|
+
--cui-popup-shortcut-font-size: var(--text-label);
|
|
185
172
|
}
|
|
186
173
|
|
|
187
174
|
:where([data-control-family="popup"][data-slot="sub-trigger-indicator"]) {
|
|
188
175
|
margin-inline-start: auto;
|
|
189
176
|
padding-inline-start: calc(var(--spacing) * 4);
|
|
177
|
+
line-height: 1;
|
|
190
178
|
}
|
|
191
179
|
|
|
192
180
|
:where([data-control-family="popup"][data-popup-part="bar"]) {
|
|
@@ -215,4 +203,117 @@
|
|
|
215
203
|
:where([data-control-family="popup"][data-popup-part="navigation-link"][data-variant="compact"]) {
|
|
216
204
|
padding-block: 0;
|
|
217
205
|
}
|
|
206
|
+
|
|
207
|
+
:where([data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="positioner"]) {
|
|
208
|
+
transition-property: inset-block-start, inset-inline-start, inset-block-end, inset-inline-end;
|
|
209
|
+
transition-duration: var(--duration-base);
|
|
210
|
+
transition-timing-function: var(--ease-emphasized);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:where([data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="popup"]) {
|
|
214
|
+
transform-origin: var(--transform-origin);
|
|
215
|
+
transition-property: opacity, inline-size, block-size, scale;
|
|
216
|
+
transition-duration: var(--duration-base);
|
|
217
|
+
transition-timing-function: var(--ease-emphasized);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:where([data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="popup"][data-starting-style]) {
|
|
221
|
+
scale: 0.95;
|
|
222
|
+
opacity: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:where([data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="popup"][data-ending-style]) {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
transition-duration: var(--duration-fast);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
:where([data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"]) {
|
|
231
|
+
transition-property: opacity, translate;
|
|
232
|
+
transition-duration: var(--duration-base);
|
|
233
|
+
transition-timing-function: var(--ease-emphasized);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:where(
|
|
237
|
+
[data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"]:is([data-starting-style], [data-ending-style])
|
|
238
|
+
) {
|
|
239
|
+
opacity: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:where(
|
|
243
|
+
[data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"][data-starting-style][data-activation-direction="left"]
|
|
244
|
+
),
|
|
245
|
+
:where(
|
|
246
|
+
[data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"][data-ending-style][data-activation-direction="right"]
|
|
247
|
+
) {
|
|
248
|
+
translate: calc(var(--spacing) * -3) 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
:where(
|
|
252
|
+
[data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"][data-starting-style][data-activation-direction="right"]
|
|
253
|
+
),
|
|
254
|
+
:where(
|
|
255
|
+
[data-control-family="popup"][data-popup-kind="navigation-menu"][data-slot="content"][data-ending-style][data-activation-direction="left"]
|
|
256
|
+
) {
|
|
257
|
+
translate: calc(var(--spacing) * 3) 0;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@property --cui-popup-item-inset {
|
|
262
|
+
syntax: "<length-percentage>";
|
|
263
|
+
inherits: true;
|
|
264
|
+
initial-value: 0px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@property --cui-popup-label-padding-block {
|
|
268
|
+
syntax: "<length-percentage>";
|
|
269
|
+
inherits: true;
|
|
270
|
+
initial-value: 0px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@property --cui-popup-label-padding-inline {
|
|
274
|
+
syntax: "<length-percentage>";
|
|
275
|
+
inherits: true;
|
|
276
|
+
initial-value: 0px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@property --cui-popup-label-font-size {
|
|
280
|
+
syntax: "<length>";
|
|
281
|
+
inherits: true;
|
|
282
|
+
initial-value: 0px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@property --cui-popup-label-font-weight {
|
|
286
|
+
syntax: "<number>";
|
|
287
|
+
inherits: true;
|
|
288
|
+
initial-value: 400;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@property --cui-popup-label-letter-spacing {
|
|
292
|
+
syntax: "<length>";
|
|
293
|
+
inherits: true;
|
|
294
|
+
initial-value: 0px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@property --cui-popup-label-text-transform {
|
|
298
|
+
syntax: "none | uppercase | lowercase | capitalize";
|
|
299
|
+
inherits: true;
|
|
300
|
+
initial-value: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@property --cui-popup-separator-inset {
|
|
304
|
+
syntax: "<length-percentage>";
|
|
305
|
+
inherits: true;
|
|
306
|
+
initial-value: 0px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@property --cui-popup-shortcut-font-size {
|
|
310
|
+
syntax: "<length>";
|
|
311
|
+
inherits: true;
|
|
312
|
+
initial-value: 0px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@property --cui-popup-shortcut-letter-spacing {
|
|
316
|
+
syntax: "<length>";
|
|
317
|
+
inherits: true;
|
|
318
|
+
initial-value: 0px;
|
|
218
319
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="popup"][data-popup-kind="sheet"][data-popup-part="surface"]) {
|
|
3
|
-
outline-style: none;
|
|
4
3
|
transition-property: translate;
|
|
5
4
|
transition-duration: var(--duration-base);
|
|
6
5
|
transition-timing-function: var(--ease-emphasized);
|
|
@@ -27,42 +26,17 @@
|
|
|
27
26
|
translate: 100% 0;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="arrow-shape"]) {
|
|
31
|
-
fill: currentcolor;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
29
|
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="content"]) {
|
|
35
|
-
font-size: var(--text-
|
|
36
|
-
line-height:
|
|
30
|
+
font-size: var(--text-label);
|
|
31
|
+
line-height: 1.35;
|
|
37
32
|
text-wrap: balance;
|
|
38
|
-
|
|
39
|
-
--_popup-tooltip-content-transition-property: opacity, scale;
|
|
40
|
-
transition-property: var(--_popup-tooltip-content-transition-property);
|
|
33
|
+
transition-property: opacity, scale;
|
|
41
34
|
transition-timing-function: var(--ease-standard);
|
|
42
35
|
transition-duration: var(--duration-fast);
|
|
43
36
|
}
|
|
44
37
|
|
|
45
38
|
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="content"][data-instant]) {
|
|
46
|
-
|
|
47
|
-
transition-property: var(--_popup-tooltip-content-transition-property);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="content"][data-ending-style]) {
|
|
51
|
-
--_popup-tooltip-content-opacity: 0%;
|
|
52
|
-
opacity: var(--_popup-tooltip-content-opacity);
|
|
53
|
-
--_popup-tooltip-content-scale: 95% 95%;
|
|
54
|
-
scale: var(--_popup-tooltip-content-scale);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="content"][data-starting-style]) {
|
|
58
|
-
--_popup-tooltip-content-opacity: 0%;
|
|
59
|
-
opacity: var(--_popup-tooltip-content-opacity);
|
|
60
|
-
--_popup-tooltip-content-scale: 95% 95%;
|
|
61
|
-
scale: var(--_popup-tooltip-content-scale);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="positioner"]) {
|
|
65
|
-
outline-style: none;
|
|
39
|
+
transition-property: none;
|
|
66
40
|
}
|
|
67
41
|
|
|
68
42
|
:where(
|
|
@@ -76,19 +50,4 @@
|
|
|
76
50
|
--_popup-tooltip-content-radius: clamp(0px, var(--cui-popup-radius), 3px);
|
|
77
51
|
border-radius: var(--_popup-tooltip-content-radius);
|
|
78
52
|
}
|
|
79
|
-
|
|
80
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="arrow"][data-side="top"]) {
|
|
81
|
-
--_popup-tooltip-arrow-rotate: 180deg;
|
|
82
|
-
rotate: var(--_popup-tooltip-arrow-rotate);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="arrow"][data-side="left"]) {
|
|
86
|
-
--_popup-tooltip-arrow-rotate: 90deg;
|
|
87
|
-
rotate: var(--_popup-tooltip-arrow-rotate);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:where([data-control-family="popup"][data-popup-kind="tooltip"][data-slot="arrow"][data-side="right"]) {
|
|
91
|
-
--_popup-tooltip-arrow-rotate: calc(90deg * -1);
|
|
92
|
-
rotate: var(--_popup-tooltip-arrow-rotate);
|
|
93
|
-
}
|
|
94
53
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="root"]) {
|
|
3
|
+
--cui-popup-title-font-size: var(--text-body);
|
|
4
|
+
--cui-popup-title-line-height: 1.35;
|
|
5
|
+
--cui-popup-status-success-foreground: var(--success-text);
|
|
6
|
+
--cui-popup-status-warning-foreground: var(--warning-text);
|
|
7
|
+
--cui-popup-status-info-foreground: var(--info-text);
|
|
8
|
+
--cui-popup-status-error-foreground: var(--destructive);
|
|
3
9
|
--_toast-swipe-x: var(--toast-swipe-movement-x);
|
|
4
10
|
--_toast-swipe-y: var(--toast-swipe-movement-y);
|
|
11
|
+
--_toast-y: calc(var(--_toast-swipe-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)));
|
|
12
|
+
--_toast-scale: var(--scale);
|
|
5
13
|
transform-origin: bottom;
|
|
6
|
-
transform: translateX(var(--_toast-swipe-x))
|
|
7
|
-
translateY(calc(var(--_toast-swipe-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)))) scale(var(--scale));
|
|
14
|
+
transform: translateX(var(--_toast-swipe-x)) translateY(var(--_toast-y)) scale(var(--_toast-scale));
|
|
8
15
|
transition:
|
|
9
16
|
transform var(--duration-slow) var(--ease-emphasized),
|
|
10
17
|
opacity var(--duration-slow) var(--ease-standard),
|
|
@@ -16,16 +23,21 @@
|
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="root"][data-expanded]) {
|
|
19
|
-
|
|
26
|
+
--_toast-y: var(--offset-y);
|
|
27
|
+
--_toast-scale: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="root"][data-starting-style]) {
|
|
31
|
+
transform: translateY(150%);
|
|
20
32
|
}
|
|
21
33
|
|
|
22
|
-
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="root"][data-starting-style]),
|
|
23
34
|
:where(
|
|
24
35
|
[data-control-family="popup"][data-popup-kind="toast"][data-slot="root"][data-ending-style]:not([data-limited]):not(
|
|
25
36
|
[data-swipe-direction]
|
|
26
37
|
)
|
|
27
38
|
) {
|
|
28
|
-
transform: translateY(
|
|
39
|
+
transform: translateX(var(--_toast-swipe-x)) translateY(calc(var(--_toast-y) + var(--spacing) * 3)) scale(var(--_toast-scale));
|
|
40
|
+
transition-duration: var(--duration-fast);
|
|
29
41
|
}
|
|
30
42
|
|
|
31
43
|
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="root"][data-ending-style][data-swipe-direction="down"]) {
|
|
@@ -63,38 +75,55 @@
|
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="indicator"]) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
background: var(--_toast-indicator-background);
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
block-size: 1lh;
|
|
81
|
+
font-size: var(--cui-popup-title-font-size);
|
|
82
|
+
line-height: var(--cui-popup-title-line-height);
|
|
72
83
|
}
|
|
73
84
|
|
|
74
|
-
:where([data-control-family="popup"][data-popup-kind="toast"][data-type="
|
|
75
|
-
|
|
85
|
+
:where([data-control-family="popup"][data-popup-kind="toast"][data-type="success"] [data-slot="indicator"]) {
|
|
86
|
+
color: var(--cui-popup-status-success-foreground);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where([data-control-family="popup"][data-popup-kind="toast"][data-type="warning"] [data-slot="indicator"]) {
|
|
90
|
+
color: var(--cui-popup-status-warning-foreground);
|
|
76
91
|
}
|
|
77
92
|
|
|
78
|
-
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="
|
|
79
|
-
|
|
80
|
-
font-weight: var(--font-weight-semibold);
|
|
81
|
-
line-height: 1;
|
|
82
|
-
letter-spacing: -0.025em;
|
|
83
|
-
text-wrap: balance;
|
|
93
|
+
:where([data-control-family="popup"][data-popup-kind="toast"][data-type="info"] [data-slot="indicator"]) {
|
|
94
|
+
color: var(--cui-popup-status-info-foreground);
|
|
84
95
|
}
|
|
85
96
|
|
|
86
|
-
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="
|
|
87
|
-
color: var(--
|
|
88
|
-
font-size: var(--text-body);
|
|
89
|
-
text-wrap: pretty;
|
|
97
|
+
:where([data-control-family="popup"][data-popup-kind="toast"][data-type="error"] [data-slot="indicator"]) {
|
|
98
|
+
color: var(--cui-popup-status-error-foreground);
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
:where([data-control-family="button"][data-popup-kind="toast"][data-popup-part="close"]) {
|
|
93
102
|
margin-block-start: calc(var(--spacing) * -1);
|
|
94
103
|
margin-inline-end: calc(var(--spacing) * -1);
|
|
95
104
|
}
|
|
105
|
+
}
|
|
96
106
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
@property --cui-popup-status-success-foreground {
|
|
108
|
+
syntax: "<color>";
|
|
109
|
+
inherits: true;
|
|
110
|
+
initial-value: transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@property --cui-popup-status-warning-foreground {
|
|
114
|
+
syntax: "<color>";
|
|
115
|
+
inherits: true;
|
|
116
|
+
initial-value: transparent;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@property --cui-popup-status-info-foreground {
|
|
120
|
+
syntax: "<color>";
|
|
121
|
+
inherits: true;
|
|
122
|
+
initial-value: transparent;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@property --cui-popup-status-error-foreground {
|
|
126
|
+
syntax: "<color>";
|
|
127
|
+
inherits: true;
|
|
128
|
+
initial-value: transparent;
|
|
100
129
|
}
|