@sero-ai/ui 0.4.1 → 0.4.2
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/.turbo/turbo-build.log +628 -615
- package/.turbo/turbo-test.log +18 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/components/ai-elements/agent.cjs +6 -6
- package/dist/components/ai-elements/agent.js +6 -6
- package/dist/components/ai-elements/artifact.cjs +2 -2
- package/dist/components/ai-elements/artifact.js +2 -2
- package/dist/components/ai-elements/attachments.cjs +2 -2
- package/dist/components/ai-elements/attachments.js +2 -2
- package/dist/components/ai-elements/chain-of-thought.cjs +2 -2
- package/dist/components/ai-elements/chain-of-thought.js +2 -2
- package/dist/components/ai-elements/code-block.cjs +7 -5
- package/dist/components/ai-elements/code-block.d.cts +2 -1
- package/dist/components/ai-elements/code-block.d.ts +2 -1
- package/dist/components/ai-elements/code-block.js +7 -5
- package/dist/components/ai-elements/commit.cjs +2 -2
- package/dist/components/ai-elements/commit.js +2 -2
- package/dist/components/ai-elements/confirmation.cjs +1 -1
- package/dist/components/ai-elements/confirmation.js +1 -1
- package/dist/components/ai-elements/conversation.cjs +2 -2
- package/dist/components/ai-elements/conversation.js +2 -2
- package/dist/components/ai-elements/environment-variables.cjs +3 -3
- package/dist/components/ai-elements/environment-variables.js +3 -3
- package/dist/components/ai-elements/file-tree.cjs +1 -1
- package/dist/components/ai-elements/file-tree.js +1 -1
- package/dist/components/ai-elements/inline-citation.cjs +3 -3
- package/dist/components/ai-elements/inline-citation.js +3 -3
- package/dist/components/ai-elements/jsx-preview.cjs +1 -1
- package/dist/components/ai-elements/jsx-preview.js +1 -1
- package/dist/components/ai-elements/message.cjs +1 -1
- package/dist/components/ai-elements/message.js +1 -1
- package/dist/components/ai-elements/package-info.cjs +4 -4
- package/dist/components/ai-elements/package-info.js +4 -4
- package/dist/components/ai-elements/prompt-input-context.cjs +2 -3
- package/dist/components/ai-elements/prompt-input-context.js +2 -3
- package/dist/components/ai-elements/queue.cjs +2 -2
- package/dist/components/ai-elements/queue.js +2 -2
- package/dist/components/ai-elements/reasoning.cjs +2 -2
- package/dist/components/ai-elements/reasoning.js +2 -2
- package/dist/components/ai-elements/sandbox.cjs +3 -3
- package/dist/components/ai-elements/sandbox.js +3 -3
- package/dist/components/ai-elements/schema-display.cjs +12 -12
- package/dist/components/ai-elements/schema-display.js +12 -12
- package/dist/components/ai-elements/speech-input.cjs +18 -2
- package/dist/components/ai-elements/speech-input.js +16 -0
- package/dist/components/ai-elements/stack-trace.cjs +1 -1
- package/dist/components/ai-elements/stack-trace.js +1 -1
- package/dist/components/ai-elements/task.cjs +3 -3
- package/dist/components/ai-elements/task.js +3 -3
- package/dist/components/ai-elements/terminal.cjs +2 -2
- package/dist/components/ai-elements/terminal.js +2 -2
- package/dist/components/ai-elements/test-results.cjs +4 -4
- package/dist/components/ai-elements/test-results.js +4 -4
- package/dist/components/ai-elements/tool.cjs +4 -4
- package/dist/components/ai-elements/tool.js +4 -4
- package/dist/components/ai-elements/transcription.cjs +1 -1
- package/dist/components/ai-elements/transcription.js +1 -1
- package/dist/components/ai-elements/web-preview.cjs +2 -2
- package/dist/components/ai-elements/web-preview.js +2 -2
- package/dist/components/context-editor/CapabilitySection.cjs +2 -2
- package/dist/components/context-editor/CapabilitySection.js +2 -2
- package/dist/components/context-editor/ContextEditor.cjs +2 -2
- package/dist/components/context-editor/ContextEditor.js +2 -2
- package/dist/components/context-editor/PresetBar.cjs +3 -3
- package/dist/components/context-editor/PresetBar.js +3 -3
- package/dist/components/context-editor/SystemPromptSection.cjs +4 -4
- package/dist/components/context-editor/SystemPromptSection.js +4 -4
- package/dist/components/context-editor/parts.cjs +6 -6
- package/dist/components/context-editor/parts.js +6 -6
- package/dist/components/dashboard/activity-list.cjs +2 -2
- package/dist/components/dashboard/activity-list.js +2 -2
- package/dist/components/dashboard/empty-state.cjs +1 -1
- package/dist/components/dashboard/empty-state.js +1 -1
- package/dist/components/dashboard/item-list.cjs +2 -2
- package/dist/components/dashboard/item-list.js +2 -2
- package/dist/components/dashboard/layout.cjs +1 -1
- package/dist/components/dashboard/layout.js +1 -1
- package/dist/components/dashboard/metric.cjs +1 -1
- package/dist/components/dashboard/metric.js +1 -1
- package/dist/components/dashboard/stale-indicator.cjs +1 -1
- package/dist/components/dashboard/stale-indicator.js +1 -1
- package/dist/components/dashboard/typography.cjs +4 -4
- package/dist/components/dashboard/typography.d.cts +1 -1
- package/dist/components/dashboard/typography.d.ts +1 -1
- package/dist/components/dashboard/typography.js +4 -4
- package/dist/components/model-selection/available-model-picker.cjs +6 -6
- package/dist/components/model-selection/available-model-picker.js +6 -6
- package/dist/components/model-selection/thinking-level-picker.cjs +1 -1
- package/dist/components/model-selection/thinking-level-picker.js +1 -1
- package/dist/components/model-selection/thinking-picker.cjs +70 -0
- package/dist/components/model-selection/thinking-picker.d.cts +12 -0
- package/dist/components/model-selection/thinking-picker.d.ts +12 -0
- package/dist/components/model-selection/thinking-picker.js +70 -0
- package/dist/components/ui/accordion.cjs +2 -2
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.cjs +4 -2
- package/dist/components/ui/alert-dialog.js +4 -2
- package/dist/components/ui/alert.cjs +2 -2
- package/dist/components/ui/alert.js +2 -2
- package/dist/components/ui/avatar.cjs +2 -2
- package/dist/components/ui/avatar.js +2 -2
- package/dist/components/ui/breadcrumb.cjs +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.cjs +1 -1
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.cjs +2 -2
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/card.cjs +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/carousel.cjs +3 -2
- package/dist/components/ui/carousel.js +2 -1
- package/dist/components/ui/chart.cjs +36 -27
- package/dist/components/ui/chart.d.cts +21 -17
- package/dist/components/ui/chart.d.ts +21 -17
- package/dist/components/ui/chart.js +30 -21
- package/dist/components/ui/combobox.cjs +7 -5
- package/dist/components/ui/combobox.js +7 -5
- package/dist/components/ui/command.cjs +3 -3
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.cjs +10 -7
- package/dist/components/ui/context-menu.js +10 -7
- package/dist/components/ui/dialog.cjs +4 -2
- package/dist/components/ui/dialog.js +4 -2
- package/dist/components/ui/drawer.cjs +4 -2
- package/dist/components/ui/drawer.js +4 -2
- package/dist/components/ui/dropdown-menu.cjs +10 -7
- package/dist/components/ui/dropdown-menu.js +10 -7
- package/dist/components/ui/empty.cjs +2 -2
- package/dist/components/ui/empty.js +2 -2
- package/dist/components/ui/field.cjs +5 -5
- package/dist/components/ui/field.js +5 -5
- package/dist/components/ui/form.cjs +2 -2
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/hover-card.cjs +3 -1
- package/dist/components/ui/hover-card.js +3 -1
- package/dist/components/ui/input-group.cjs +3 -3
- package/dist/components/ui/input-group.js +3 -3
- package/dist/components/ui/input-otp.cjs +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.cjs +3 -3
- package/dist/components/ui/item.js +3 -3
- package/dist/components/ui/label.cjs +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/menubar.cjs +9 -7
- package/dist/components/ui/menubar.js +9 -7
- package/dist/components/ui/native-select.cjs +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.cjs +2 -2
- package/dist/components/ui/navigation-menu.js +2 -2
- package/dist/components/ui/plugin-safety-disclaimer.cjs +1 -1
- package/dist/components/ui/plugin-safety-disclaimer.js +1 -1
- package/dist/components/ui/popover.cjs +4 -2
- package/dist/components/ui/popover.js +4 -2
- package/dist/components/ui/select.cjs +5 -3
- package/dist/components/ui/select.js +5 -3
- package/dist/components/ui/sheet.cjs +4 -2
- package/dist/components/ui/sheet.js +4 -2
- package/dist/components/ui/sidebar.cjs +5 -5
- package/dist/components/ui/sidebar.js +5 -5
- package/dist/components/ui/table.cjs +2 -2
- package/dist/components/ui/table.js +2 -2
- package/dist/components/ui/tabs.cjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.cjs +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/toggle.cjs +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/tooltip.cjs +3 -1
- package/dist/components/ui/tooltip.js +3 -1
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/plugin-style-scope-context.cjs +10 -0
- package/dist/plugin-style-scope-context.d.cts +13 -0
- package/dist/plugin-style-scope-context.d.ts +13 -0
- package/dist/plugin-style-scope-context.js +10 -0
- package/dist/plugin-style-scope.cjs +25 -0
- package/dist/plugin-style-scope.d.cts +11 -0
- package/dist/plugin-style-scope.d.ts +11 -0
- package/dist/plugin-style-scope.js +25 -0
- package/dist/reference.cjs +15 -15
- package/dist/reference.js +15 -15
- package/dist/styles/globals.css +22 -3
- package/dist/styles/plugin-theme.css +80 -0
- package/dist/styles/plugin.css +14 -2
- package/package.json +2 -2
- package/src/components/ai-elements/agent.tsx +6 -6
- package/src/components/ai-elements/artifact.tsx +2 -2
- package/src/components/ai-elements/attachments.tsx +2 -2
- package/src/components/ai-elements/chain-of-thought.tsx +2 -2
- package/src/components/ai-elements/code-block.tsx +6 -3
- package/src/components/ai-elements/commit.tsx +2 -2
- package/src/components/ai-elements/confirmation.tsx +1 -1
- package/src/components/ai-elements/conversation.tsx +2 -2
- package/src/components/ai-elements/environment-variables.tsx +3 -3
- package/src/components/ai-elements/file-tree.tsx +1 -1
- package/src/components/ai-elements/inline-citation.tsx +3 -3
- package/src/components/ai-elements/jsx-preview.tsx +1 -1
- package/src/components/ai-elements/message.tsx +1 -1
- package/src/components/ai-elements/package-info.tsx +4 -4
- package/src/components/ai-elements/prompt-input-context.tsx +3 -2
- package/src/components/ai-elements/queue.tsx +2 -2
- package/src/components/ai-elements/reasoning.tsx +2 -2
- package/src/components/ai-elements/sandbox.tsx +3 -3
- package/src/components/ai-elements/schema-display.tsx +12 -12
- package/src/components/ai-elements/speech-input.tsx +17 -0
- package/src/components/ai-elements/stack-trace.tsx +1 -1
- package/src/components/ai-elements/task.tsx +3 -3
- package/src/components/ai-elements/terminal.tsx +2 -2
- package/src/components/ai-elements/test-results.tsx +4 -4
- package/src/components/ai-elements/tool.tsx +4 -4
- package/src/components/ai-elements/transcription.tsx +1 -1
- package/src/components/ai-elements/web-preview.tsx +2 -2
- package/src/components/context-editor/CapabilitySection.tsx +2 -2
- package/src/components/context-editor/ContextEditor.tsx +2 -2
- package/src/components/context-editor/PresetBar.tsx +3 -3
- package/src/components/context-editor/SystemPromptSection.tsx +4 -4
- package/src/components/context-editor/parts.tsx +6 -6
- package/src/components/dashboard/activity-list.tsx +2 -2
- package/src/components/dashboard/empty-state.tsx +1 -1
- package/src/components/dashboard/item-list.tsx +2 -2
- package/src/components/dashboard/layout.tsx +1 -1
- package/src/components/dashboard/metric.tsx +1 -1
- package/src/components/dashboard/stale-indicator.tsx +1 -1
- package/src/components/dashboard/typography.tsx +5 -5
- package/src/components/model-selection/available-model-picker.tsx +7 -7
- package/src/components/model-selection/thinking-level-picker.tsx +1 -1
- package/src/components/model-selection/thinking-picker.tsx +90 -0
- package/src/components/ui/accordion.tsx +2 -2
- package/src/components/ui/alert-dialog.tsx +4 -2
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +2 -2
- package/src/components/ui/breadcrumb.tsx +1 -1
- package/src/components/ui/button-group.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +3 -3
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -1
- package/src/components/ui/chart.tsx +54 -36
- package/src/components/ui/combobox.tsx +7 -5
- package/src/components/ui/command.tsx +3 -3
- package/src/components/ui/context-menu.tsx +10 -7
- package/src/components/ui/dialog.tsx +4 -2
- package/src/components/ui/drawer.tsx +4 -2
- package/src/components/ui/dropdown-menu.tsx +10 -7
- package/src/components/ui/empty.tsx +2 -2
- package/src/components/ui/field.tsx +5 -5
- package/src/components/ui/form.tsx +2 -2
- package/src/components/ui/hover-card.tsx +3 -1
- package/src/components/ui/input-group.tsx +3 -3
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +3 -3
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +9 -7
- package/src/components/ui/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +2 -2
- package/src/components/ui/plugin-safety-disclaimer.tsx +1 -1
- package/src/components/ui/popover.tsx +4 -2
- package/src/components/ui/select.tsx +5 -3
- package/src/components/ui/sheet.tsx +4 -2
- package/src/components/ui/sidebar.tsx +5 -5
- package/src/components/ui/table.tsx +2 -2
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +3 -1
- package/src/index.ts +2 -0
- package/src/plugin-style-scope-context.ts +21 -0
- package/src/plugin-style-scope.test.tsx +38 -0
- package/src/plugin-style-scope.tsx +35 -0
- package/src/styles/globals.css +22 -3
- package/src/styles/plugin-theme.css +80 -0
- package/src/styles/plugin.css +14 -2
|
@@ -4,6 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
5
5
|
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
|
|
6
6
|
import { cn } from "../../lib/utils";
|
|
7
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
7
8
|
import { Button } from "./button";
|
|
8
9
|
import {
|
|
9
10
|
InputGroup,
|
|
@@ -94,7 +95,8 @@ function ComboboxContent({
|
|
|
94
95
|
anchor,
|
|
95
96
|
...props
|
|
96
97
|
}) {
|
|
97
|
-
|
|
98
|
+
const container = usePluginPortalContainer();
|
|
99
|
+
return /* @__PURE__ */ jsx(ComboboxPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
98
100
|
ComboboxPrimitive.Positioner,
|
|
99
101
|
{
|
|
100
102
|
side,
|
|
@@ -141,7 +143,7 @@ function ComboboxItem({
|
|
|
141
143
|
{
|
|
142
144
|
"data-slot": "combobox-item",
|
|
143
145
|
className: cn(
|
|
144
|
-
"data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-
|
|
146
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
145
147
|
className
|
|
146
148
|
),
|
|
147
149
|
...props,
|
|
@@ -178,7 +180,7 @@ function ComboboxLabel({
|
|
|
178
180
|
{
|
|
179
181
|
"data-slot": "combobox-label",
|
|
180
182
|
className: cn(
|
|
181
|
-
"text-muted-foreground px-2 py-1.5 text-xs pointer-coarse:px-3 pointer-coarse:py-2 pointer-coarse:text-
|
|
183
|
+
"text-muted-foreground px-2 py-1.5 text-xs pointer-coarse:px-3 pointer-coarse:py-2 pointer-coarse:text-base",
|
|
182
184
|
className
|
|
183
185
|
),
|
|
184
186
|
...props
|
|
@@ -194,7 +196,7 @@ function ComboboxEmpty({ className, ...props }) {
|
|
|
194
196
|
{
|
|
195
197
|
"data-slot": "combobox-empty",
|
|
196
198
|
className: cn(
|
|
197
|
-
"text-muted-foreground hidden w-full justify-center py-2 text-center text-
|
|
199
|
+
"text-muted-foreground hidden w-full justify-center py-2 text-center text-base group-data-empty/combobox-content:flex",
|
|
198
200
|
className
|
|
199
201
|
),
|
|
200
202
|
...props
|
|
@@ -223,7 +225,7 @@ function ComboboxChips({
|
|
|
223
225
|
{
|
|
224
226
|
"data-slot": "combobox-chips",
|
|
225
227
|
className: cn(
|
|
226
|
-
"dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent bg-clip-padding px-2.5 py-1.5 text-
|
|
228
|
+
"dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent bg-clip-padding px-2.5 py-1.5 text-base shadow-xs transition-[color,box-shadow] focus-within:ring-[3px] has-aria-invalid:ring-[3px] has-data-[slot=combobox-chip]:px-1.5",
|
|
227
229
|
className
|
|
228
230
|
),
|
|
229
231
|
...props
|
|
@@ -65,7 +65,7 @@ function CommandInput({
|
|
|
65
65
|
{
|
|
66
66
|
"data-slot": "command-input",
|
|
67
67
|
className: _utils.cn.call(void 0,
|
|
68
|
-
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent pl-1.5 py-3 text-
|
|
68
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent pl-1.5 py-3 text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
69
69
|
className
|
|
70
70
|
),
|
|
71
71
|
...props
|
|
@@ -98,7 +98,7 @@ function CommandEmpty({
|
|
|
98
98
|
_cmdk.Command.Empty,
|
|
99
99
|
{
|
|
100
100
|
"data-slot": "command-empty",
|
|
101
|
-
className: "py-6 text-center text-
|
|
101
|
+
className: "py-6 text-center text-base",
|
|
102
102
|
...props
|
|
103
103
|
}
|
|
104
104
|
);
|
|
@@ -141,7 +141,7 @@ function CommandItem({
|
|
|
141
141
|
{
|
|
142
142
|
"data-slot": "command-item",
|
|
143
143
|
className: _utils.cn.call(void 0,
|
|
144
|
-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
144
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
145
145
|
className
|
|
146
146
|
),
|
|
147
147
|
...props
|
|
@@ -65,7 +65,7 @@ function CommandInput({
|
|
|
65
65
|
{
|
|
66
66
|
"data-slot": "command-input",
|
|
67
67
|
className: cn(
|
|
68
|
-
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent pl-1.5 py-3 text-
|
|
68
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent pl-1.5 py-3 text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
69
69
|
className
|
|
70
70
|
),
|
|
71
71
|
...props
|
|
@@ -98,7 +98,7 @@ function CommandEmpty({
|
|
|
98
98
|
CommandPrimitive.Empty,
|
|
99
99
|
{
|
|
100
100
|
"data-slot": "command-empty",
|
|
101
|
-
className: "py-6 text-center text-
|
|
101
|
+
className: "py-6 text-center text-base",
|
|
102
102
|
...props
|
|
103
103
|
}
|
|
104
104
|
);
|
|
@@ -141,7 +141,7 @@ function CommandItem({
|
|
|
141
141
|
{
|
|
142
142
|
"data-slot": "command-item",
|
|
143
143
|
className: cn(
|
|
144
|
-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
144
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
145
145
|
className
|
|
146
146
|
),
|
|
147
147
|
...props
|
|
@@ -3,6 +3,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
3
3
|
var _lucidereact = require('lucide-react');
|
|
4
4
|
var _radixui = require('radix-ui');
|
|
5
5
|
var _utils = require('../../lib/utils');
|
|
6
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
6
7
|
function ContextMenu({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -21,7 +22,8 @@ function ContextMenuGroup({
|
|
|
21
22
|
function ContextMenuPortal({
|
|
22
23
|
...props
|
|
23
24
|
}) {
|
|
24
|
-
|
|
25
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
26
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.ContextMenu.Portal, { "data-slot": "context-menu-portal", container, ...props });
|
|
25
27
|
}
|
|
26
28
|
function ContextMenuSub({
|
|
27
29
|
...props
|
|
@@ -51,7 +53,7 @@ function ContextMenuSubTrigger({
|
|
|
51
53
|
"data-slot": "context-menu-sub-trigger",
|
|
52
54
|
"data-inset": inset,
|
|
53
55
|
className: _utils.cn.call(void 0,
|
|
54
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-
|
|
56
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
55
57
|
className
|
|
56
58
|
),
|
|
57
59
|
...props,
|
|
@@ -82,7 +84,8 @@ function ContextMenuContent({
|
|
|
82
84
|
className,
|
|
83
85
|
...props
|
|
84
86
|
}) {
|
|
85
|
-
|
|
87
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
88
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.ContextMenu.Portal, { container, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
89
|
_radixui.ContextMenu.Content,
|
|
87
90
|
{
|
|
88
91
|
"data-slot": "context-menu-content",
|
|
@@ -107,7 +110,7 @@ function ContextMenuItem({
|
|
|
107
110
|
"data-inset": inset,
|
|
108
111
|
"data-variant": variant,
|
|
109
112
|
className: _utils.cn.call(void 0,
|
|
110
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-3 py-2 text-
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-3 py-2 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
111
114
|
className
|
|
112
115
|
),
|
|
113
116
|
...props
|
|
@@ -125,7 +128,7 @@ function ContextMenuCheckboxItem({
|
|
|
125
128
|
{
|
|
126
129
|
"data-slot": "context-menu-checkbox-item",
|
|
127
130
|
className: _utils.cn.call(void 0,
|
|
128
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
131
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
129
132
|
className
|
|
130
133
|
),
|
|
131
134
|
checked,
|
|
@@ -147,7 +150,7 @@ function ContextMenuRadioItem({
|
|
|
147
150
|
{
|
|
148
151
|
"data-slot": "context-menu-radio-item",
|
|
149
152
|
className: _utils.cn.call(void 0,
|
|
150
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
153
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
151
154
|
className
|
|
152
155
|
),
|
|
153
156
|
...props,
|
|
@@ -169,7 +172,7 @@ function ContextMenuLabel({
|
|
|
169
172
|
"data-slot": "context-menu-label",
|
|
170
173
|
"data-inset": inset,
|
|
171
174
|
className: _utils.cn.call(void 0,
|
|
172
|
-
"text-foreground px-2 py-1.5 text-
|
|
175
|
+
"text-foreground px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
173
176
|
className
|
|
174
177
|
),
|
|
175
178
|
...props
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
6
7
|
function ContextMenu({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -21,7 +22,8 @@ function ContextMenuGroup({
|
|
|
21
22
|
function ContextMenuPortal({
|
|
22
23
|
...props
|
|
23
24
|
}) {
|
|
24
|
-
|
|
25
|
+
const container = usePluginPortalContainer();
|
|
26
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", container, ...props });
|
|
25
27
|
}
|
|
26
28
|
function ContextMenuSub({
|
|
27
29
|
...props
|
|
@@ -51,7 +53,7 @@ function ContextMenuSubTrigger({
|
|
|
51
53
|
"data-slot": "context-menu-sub-trigger",
|
|
52
54
|
"data-inset": inset,
|
|
53
55
|
className: cn(
|
|
54
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-
|
|
56
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
55
57
|
className
|
|
56
58
|
),
|
|
57
59
|
...props,
|
|
@@ -82,7 +84,8 @@ function ContextMenuContent({
|
|
|
82
84
|
className,
|
|
83
85
|
...props
|
|
84
86
|
}) {
|
|
85
|
-
|
|
87
|
+
const container = usePluginPortalContainer();
|
|
88
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
86
89
|
ContextMenuPrimitive.Content,
|
|
87
90
|
{
|
|
88
91
|
"data-slot": "context-menu-content",
|
|
@@ -107,7 +110,7 @@ function ContextMenuItem({
|
|
|
107
110
|
"data-inset": inset,
|
|
108
111
|
"data-variant": variant,
|
|
109
112
|
className: cn(
|
|
110
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-3 py-2 text-
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-3 py-2 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
111
114
|
className
|
|
112
115
|
),
|
|
113
116
|
...props
|
|
@@ -125,7 +128,7 @@ function ContextMenuCheckboxItem({
|
|
|
125
128
|
{
|
|
126
129
|
"data-slot": "context-menu-checkbox-item",
|
|
127
130
|
className: cn(
|
|
128
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
131
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
129
132
|
className
|
|
130
133
|
),
|
|
131
134
|
checked,
|
|
@@ -147,7 +150,7 @@ function ContextMenuRadioItem({
|
|
|
147
150
|
{
|
|
148
151
|
"data-slot": "context-menu-radio-item",
|
|
149
152
|
className: cn(
|
|
150
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
153
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
151
154
|
className
|
|
152
155
|
),
|
|
153
156
|
...props,
|
|
@@ -169,7 +172,7 @@ function ContextMenuLabel({
|
|
|
169
172
|
"data-slot": "context-menu-label",
|
|
170
173
|
"data-inset": inset,
|
|
171
174
|
className: cn(
|
|
172
|
-
"text-foreground px-2 py-1.5 text-
|
|
175
|
+
"text-foreground px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
173
176
|
className
|
|
174
177
|
),
|
|
175
178
|
...props
|
|
@@ -3,6 +3,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
3
3
|
var _lucidereact = require('lucide-react');
|
|
4
4
|
var _radixui = require('radix-ui');
|
|
5
5
|
var _utils = require('../../lib/utils');
|
|
6
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
6
7
|
var _button = require('./button');
|
|
7
8
|
function Dialog({
|
|
8
9
|
...props
|
|
@@ -17,7 +18,8 @@ function DialogTrigger({
|
|
|
17
18
|
function DialogPortal({
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
22
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal, { "data-slot": "dialog-portal", container, ...props });
|
|
21
23
|
}
|
|
22
24
|
function DialogClose({
|
|
23
25
|
...props
|
|
@@ -128,7 +130,7 @@ function DialogDescription({
|
|
|
128
130
|
_radixui.Dialog.Description,
|
|
129
131
|
{
|
|
130
132
|
"data-slot": "dialog-description",
|
|
131
|
-
className: _utils.cn.call(void 0, "text-muted-foreground text-
|
|
133
|
+
className: _utils.cn.call(void 0, "text-muted-foreground text-base", className),
|
|
132
134
|
...props
|
|
133
135
|
}
|
|
134
136
|
);
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { XIcon } from "lucide-react";
|
|
4
4
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
6
7
|
import { Button } from "./button";
|
|
7
8
|
function Dialog({
|
|
8
9
|
...props
|
|
@@ -17,7 +18,8 @@ function DialogTrigger({
|
|
|
17
18
|
function DialogPortal({
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = usePluginPortalContainer();
|
|
22
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", container, ...props });
|
|
21
23
|
}
|
|
22
24
|
function DialogClose({
|
|
23
25
|
...props
|
|
@@ -128,7 +130,7 @@ function DialogDescription({
|
|
|
128
130
|
DialogPrimitive.Description,
|
|
129
131
|
{
|
|
130
132
|
"data-slot": "dialog-description",
|
|
131
|
-
className: cn("text-muted-foreground text-
|
|
133
|
+
className: cn("text-muted-foreground text-base", className),
|
|
132
134
|
...props
|
|
133
135
|
}
|
|
134
136
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');
|
|
2
2
|
var _vaul = require('vaul');
|
|
3
3
|
var _utils = require('../../lib/utils');
|
|
4
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
4
5
|
function Drawer({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -14,7 +15,8 @@ function DrawerTrigger({
|
|
|
14
15
|
function DrawerPortal({
|
|
15
16
|
...props
|
|
16
17
|
}) {
|
|
17
|
-
|
|
18
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
19
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _vaul.Drawer.Portal, { "data-slot": "drawer-portal", container, ...props });
|
|
18
20
|
}
|
|
19
21
|
function DrawerClose({
|
|
20
22
|
...props
|
|
@@ -109,7 +111,7 @@ function DrawerDescription({
|
|
|
109
111
|
_vaul.Drawer.Description,
|
|
110
112
|
{
|
|
111
113
|
"data-slot": "drawer-description",
|
|
112
|
-
className: _utils.cn.call(void 0, "text-muted-foreground text-
|
|
114
|
+
className: _utils.cn.call(void 0, "text-muted-foreground text-base", className),
|
|
113
115
|
...props
|
|
114
116
|
}
|
|
115
117
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
4
5
|
function Drawer({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -14,7 +15,8 @@ function DrawerTrigger({
|
|
|
14
15
|
function DrawerPortal({
|
|
15
16
|
...props
|
|
16
17
|
}) {
|
|
17
|
-
|
|
18
|
+
const container = usePluginPortalContainer();
|
|
19
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", container, ...props });
|
|
18
20
|
}
|
|
19
21
|
function DrawerClose({
|
|
20
22
|
...props
|
|
@@ -109,7 +111,7 @@ function DrawerDescription({
|
|
|
109
111
|
DrawerPrimitive.Description,
|
|
110
112
|
{
|
|
111
113
|
"data-slot": "drawer-description",
|
|
112
|
-
className: cn("text-muted-foreground text-
|
|
114
|
+
className: cn("text-muted-foreground text-base", className),
|
|
113
115
|
...props
|
|
114
116
|
}
|
|
115
117
|
);
|
|
@@ -3,6 +3,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
3
3
|
var _lucidereact = require('lucide-react');
|
|
4
4
|
var _radixui = require('radix-ui');
|
|
5
5
|
var _utils = require('../../lib/utils');
|
|
6
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
6
7
|
function DropdownMenu({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -11,7 +12,8 @@ function DropdownMenu({
|
|
|
11
12
|
function DropdownMenuPortal({
|
|
12
13
|
...props
|
|
13
14
|
}) {
|
|
14
|
-
|
|
15
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
16
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.DropdownMenu.Portal, { "data-slot": "dropdown-menu-portal", container, ...props });
|
|
15
17
|
}
|
|
16
18
|
function DropdownMenuTrigger({
|
|
17
19
|
...props
|
|
@@ -29,7 +31,8 @@ function DropdownMenuContent({
|
|
|
29
31
|
sideOffset = 4,
|
|
30
32
|
...props
|
|
31
33
|
}) {
|
|
32
|
-
|
|
34
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
35
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.DropdownMenu.Portal, { container, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
36
|
_radixui.DropdownMenu.Content,
|
|
34
37
|
{
|
|
35
38
|
"data-slot": "dropdown-menu-content",
|
|
@@ -60,7 +63,7 @@ function DropdownMenuItem({
|
|
|
60
63
|
"data-inset": inset,
|
|
61
64
|
"data-variant": variant,
|
|
62
65
|
className: _utils.cn.call(void 0,
|
|
63
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
66
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
64
67
|
className
|
|
65
68
|
),
|
|
66
69
|
...props
|
|
@@ -78,7 +81,7 @@ function DropdownMenuCheckboxItem({
|
|
|
78
81
|
{
|
|
79
82
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
80
83
|
className: _utils.cn.call(void 0,
|
|
81
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
84
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
82
85
|
className
|
|
83
86
|
),
|
|
84
87
|
checked,
|
|
@@ -111,7 +114,7 @@ function DropdownMenuRadioItem({
|
|
|
111
114
|
{
|
|
112
115
|
"data-slot": "dropdown-menu-radio-item",
|
|
113
116
|
className: _utils.cn.call(void 0,
|
|
114
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
117
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
115
118
|
className
|
|
116
119
|
),
|
|
117
120
|
...props,
|
|
@@ -133,7 +136,7 @@ function DropdownMenuLabel({
|
|
|
133
136
|
"data-slot": "dropdown-menu-label",
|
|
134
137
|
"data-inset": inset,
|
|
135
138
|
className: _utils.cn.call(void 0,
|
|
136
|
-
"px-2 py-1.5 text-
|
|
139
|
+
"px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
137
140
|
className
|
|
138
141
|
),
|
|
139
142
|
...props
|
|
@@ -186,7 +189,7 @@ function DropdownMenuSubTrigger({
|
|
|
186
189
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
187
190
|
"data-inset": inset,
|
|
188
191
|
className: _utils.cn.call(void 0,
|
|
189
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
192
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
190
193
|
className
|
|
191
194
|
),
|
|
192
195
|
...props,
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
6
7
|
function DropdownMenu({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -11,7 +12,8 @@ function DropdownMenu({
|
|
|
11
12
|
function DropdownMenuPortal({
|
|
12
13
|
...props
|
|
13
14
|
}) {
|
|
14
|
-
|
|
15
|
+
const container = usePluginPortalContainer();
|
|
16
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", container, ...props });
|
|
15
17
|
}
|
|
16
18
|
function DropdownMenuTrigger({
|
|
17
19
|
...props
|
|
@@ -29,7 +31,8 @@ function DropdownMenuContent({
|
|
|
29
31
|
sideOffset = 4,
|
|
30
32
|
...props
|
|
31
33
|
}) {
|
|
32
|
-
|
|
34
|
+
const container = usePluginPortalContainer();
|
|
35
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
33
36
|
DropdownMenuPrimitive.Content,
|
|
34
37
|
{
|
|
35
38
|
"data-slot": "dropdown-menu-content",
|
|
@@ -60,7 +63,7 @@ function DropdownMenuItem({
|
|
|
60
63
|
"data-inset": inset,
|
|
61
64
|
"data-variant": variant,
|
|
62
65
|
className: cn(
|
|
63
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
66
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
64
67
|
className
|
|
65
68
|
),
|
|
66
69
|
...props
|
|
@@ -78,7 +81,7 @@ function DropdownMenuCheckboxItem({
|
|
|
78
81
|
{
|
|
79
82
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
80
83
|
className: cn(
|
|
81
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
84
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
82
85
|
className
|
|
83
86
|
),
|
|
84
87
|
checked,
|
|
@@ -111,7 +114,7 @@ function DropdownMenuRadioItem({
|
|
|
111
114
|
{
|
|
112
115
|
"data-slot": "dropdown-menu-radio-item",
|
|
113
116
|
className: cn(
|
|
114
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-
|
|
117
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-base outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
115
118
|
className
|
|
116
119
|
),
|
|
117
120
|
...props,
|
|
@@ -133,7 +136,7 @@ function DropdownMenuLabel({
|
|
|
133
136
|
"data-slot": "dropdown-menu-label",
|
|
134
137
|
"data-inset": inset,
|
|
135
138
|
className: cn(
|
|
136
|
-
"px-2 py-1.5 text-
|
|
139
|
+
"px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
137
140
|
className
|
|
138
141
|
),
|
|
139
142
|
...props
|
|
@@ -186,7 +189,7 @@ function DropdownMenuSubTrigger({
|
|
|
186
189
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
187
190
|
"data-inset": inset,
|
|
188
191
|
className: cn(
|
|
189
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-
|
|
192
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
190
193
|
className
|
|
191
194
|
),
|
|
192
195
|
...props,
|
|
@@ -72,7 +72,7 @@ function EmptyDescription({ className, ...props }) {
|
|
|
72
72
|
{
|
|
73
73
|
"data-slot": "empty-description",
|
|
74
74
|
className: _utils.cn.call(void 0,
|
|
75
|
-
"text-muted-foreground [&>a:hover]:text-primary text-
|
|
75
|
+
"text-muted-foreground [&>a:hover]:text-primary text-base/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
76
76
|
className
|
|
77
77
|
),
|
|
78
78
|
...props
|
|
@@ -85,7 +85,7 @@ function EmptyContent({ className, ...props }) {
|
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "empty-content",
|
|
87
87
|
className: _utils.cn.call(void 0,
|
|
88
|
-
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-
|
|
88
|
+
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-base text-balance",
|
|
89
89
|
className
|
|
90
90
|
),
|
|
91
91
|
...props
|
|
@@ -72,7 +72,7 @@ function EmptyDescription({ className, ...props }) {
|
|
|
72
72
|
{
|
|
73
73
|
"data-slot": "empty-description",
|
|
74
74
|
className: cn(
|
|
75
|
-
"text-muted-foreground [&>a:hover]:text-primary text-
|
|
75
|
+
"text-muted-foreground [&>a:hover]:text-primary text-base/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
76
76
|
className
|
|
77
77
|
),
|
|
78
78
|
...props
|
|
@@ -85,7 +85,7 @@ function EmptyContent({ className, ...props }) {
|
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "empty-content",
|
|
87
87
|
className: cn(
|
|
88
|
-
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-
|
|
88
|
+
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-base text-balance",
|
|
89
89
|
className
|
|
90
90
|
),
|
|
91
91
|
...props
|
|
@@ -32,7 +32,7 @@ function FieldLegend({
|
|
|
32
32
|
className: _utils.cn.call(void 0,
|
|
33
33
|
"mb-3 font-medium",
|
|
34
34
|
"data-[variant=legend]:text-base",
|
|
35
|
-
"data-[variant=label]:text-
|
|
35
|
+
"data-[variant=label]:text-base",
|
|
36
36
|
className
|
|
37
37
|
),
|
|
38
38
|
...props
|
|
@@ -128,7 +128,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
128
128
|
{
|
|
129
129
|
"data-slot": "field-label",
|
|
130
130
|
className: _utils.cn.call(void 0,
|
|
131
|
-
"flex w-fit items-center gap-2 text-
|
|
131
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
132
132
|
className
|
|
133
133
|
),
|
|
134
134
|
...props
|
|
@@ -141,7 +141,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
141
141
|
{
|
|
142
142
|
"data-slot": "field-description",
|
|
143
143
|
className: _utils.cn.call(void 0,
|
|
144
|
-
"text-muted-foreground text-
|
|
144
|
+
"text-muted-foreground text-base leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
145
145
|
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
146
146
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
147
147
|
className
|
|
@@ -161,7 +161,7 @@ function FieldSeparator({
|
|
|
161
161
|
"data-slot": "field-separator",
|
|
162
162
|
"data-content": !!children,
|
|
163
163
|
className: _utils.cn.call(void 0,
|
|
164
|
-
"relative -my-2 h-5 text-
|
|
164
|
+
"relative -my-2 h-5 text-base group-data-[variant=outline]/field-group:-mb-2",
|
|
165
165
|
className
|
|
166
166
|
),
|
|
167
167
|
...props,
|
|
@@ -210,7 +210,7 @@ function FieldError({
|
|
|
210
210
|
{
|
|
211
211
|
role: "alert",
|
|
212
212
|
"data-slot": "field-error",
|
|
213
|
-
className: _utils.cn.call(void 0, "text-destructive text-
|
|
213
|
+
className: _utils.cn.call(void 0, "text-destructive text-base font-normal", className),
|
|
214
214
|
...props,
|
|
215
215
|
children: content
|
|
216
216
|
}
|
|
@@ -32,7 +32,7 @@ function FieldLegend({
|
|
|
32
32
|
className: cn(
|
|
33
33
|
"mb-3 font-medium",
|
|
34
34
|
"data-[variant=legend]:text-base",
|
|
35
|
-
"data-[variant=label]:text-
|
|
35
|
+
"data-[variant=label]:text-base",
|
|
36
36
|
className
|
|
37
37
|
),
|
|
38
38
|
...props
|
|
@@ -128,7 +128,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
128
128
|
{
|
|
129
129
|
"data-slot": "field-label",
|
|
130
130
|
className: cn(
|
|
131
|
-
"flex w-fit items-center gap-2 text-
|
|
131
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
132
132
|
className
|
|
133
133
|
),
|
|
134
134
|
...props
|
|
@@ -141,7 +141,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
141
141
|
{
|
|
142
142
|
"data-slot": "field-description",
|
|
143
143
|
className: cn(
|
|
144
|
-
"text-muted-foreground text-
|
|
144
|
+
"text-muted-foreground text-base leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
145
145
|
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
146
146
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
147
147
|
className
|
|
@@ -161,7 +161,7 @@ function FieldSeparator({
|
|
|
161
161
|
"data-slot": "field-separator",
|
|
162
162
|
"data-content": !!children,
|
|
163
163
|
className: cn(
|
|
164
|
-
"relative -my-2 h-5 text-
|
|
164
|
+
"relative -my-2 h-5 text-base group-data-[variant=outline]/field-group:-mb-2",
|
|
165
165
|
className
|
|
166
166
|
),
|
|
167
167
|
...props,
|
|
@@ -210,7 +210,7 @@ function FieldError({
|
|
|
210
210
|
{
|
|
211
211
|
role: "alert",
|
|
212
212
|
"data-slot": "field-error",
|
|
213
|
-
className: cn("text-destructive text-
|
|
213
|
+
className: cn("text-destructive text-base font-normal", className),
|
|
214
214
|
...props,
|
|
215
215
|
children: content
|
|
216
216
|
}
|