@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
|
@@ -87,7 +87,7 @@ function FormDescription({ className, ...props }) {
|
|
|
87
87
|
{
|
|
88
88
|
"data-slot": "form-description",
|
|
89
89
|
id: formDescriptionId,
|
|
90
|
-
className: _utils.cn.call(void 0, "text-muted-foreground text-
|
|
90
|
+
className: _utils.cn.call(void 0, "text-muted-foreground text-base", className),
|
|
91
91
|
...props
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -103,7 +103,7 @@ function FormMessage({ className, ...props }) {
|
|
|
103
103
|
{
|
|
104
104
|
"data-slot": "form-message",
|
|
105
105
|
id: formMessageId,
|
|
106
|
-
className: _utils.cn.call(void 0, "text-destructive text-
|
|
106
|
+
className: _utils.cn.call(void 0, "text-destructive text-base", className),
|
|
107
107
|
...props,
|
|
108
108
|
children: body
|
|
109
109
|
}
|
|
@@ -87,7 +87,7 @@ function FormDescription({ className, ...props }) {
|
|
|
87
87
|
{
|
|
88
88
|
"data-slot": "form-description",
|
|
89
89
|
id: formDescriptionId,
|
|
90
|
-
className: cn("text-muted-foreground text-
|
|
90
|
+
className: cn("text-muted-foreground text-base", className),
|
|
91
91
|
...props
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -103,7 +103,7 @@ function FormMessage({ className, ...props }) {
|
|
|
103
103
|
{
|
|
104
104
|
"data-slot": "form-message",
|
|
105
105
|
id: formMessageId,
|
|
106
|
-
className: cn("text-destructive text-
|
|
106
|
+
className: cn("text-destructive text-base", className),
|
|
107
107
|
...props,
|
|
108
108
|
children: body
|
|
109
109
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');
|
|
2
2
|
var _radixui = require('radix-ui');
|
|
3
3
|
var _utils = require('../../lib/utils');
|
|
4
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
4
5
|
function HoverCard({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -17,7 +18,8 @@ function HoverCardContent({
|
|
|
17
18
|
sideOffset = 4,
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
22
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.HoverCard.Portal, { "data-slot": "hover-card-portal", container, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21
23
|
_radixui.HoverCard.Content,
|
|
22
24
|
{
|
|
23
25
|
"data-slot": "hover-card-content",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
4
5
|
function HoverCard({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -17,7 +18,8 @@ function HoverCardContent({
|
|
|
17
18
|
sideOffset = 4,
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = usePluginPortalContainer();
|
|
22
|
+
return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", container, children: /* @__PURE__ */ jsx(
|
|
21
23
|
HoverCardPrimitive.Content,
|
|
22
24
|
{
|
|
23
25
|
"data-slot": "hover-card-content",
|
|
@@ -29,7 +29,7 @@ function InputGroup({ className, ...props }) {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const inputGroupAddonVariants = _classvarianceauthority.cva.call(void 0,
|
|
32
|
-
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-
|
|
32
|
+
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-base font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
35
35
|
align: {
|
|
@@ -67,7 +67,7 @@ function InputGroupAddon({
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
const inputGroupButtonVariants = _classvarianceauthority.cva.call(void 0,
|
|
70
|
-
"text-
|
|
70
|
+
"text-base shadow-none flex gap-2 items-center",
|
|
71
71
|
{
|
|
72
72
|
variants: {
|
|
73
73
|
size: {
|
|
@@ -105,7 +105,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
105
105
|
"span",
|
|
106
106
|
{
|
|
107
107
|
className: _utils.cn.call(void 0,
|
|
108
|
-
"text-muted-foreground flex items-center gap-2 text-
|
|
108
|
+
"text-muted-foreground flex items-center gap-2 text-base [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
109
109
|
className
|
|
110
110
|
),
|
|
111
111
|
...props
|
|
@@ -29,7 +29,7 @@ function InputGroup({ className, ...props }) {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const inputGroupAddonVariants = cva(
|
|
32
|
-
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-
|
|
32
|
+
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-base font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
35
35
|
align: {
|
|
@@ -67,7 +67,7 @@ function InputGroupAddon({
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
const inputGroupButtonVariants = cva(
|
|
70
|
-
"text-
|
|
70
|
+
"text-base shadow-none flex gap-2 items-center",
|
|
71
71
|
{
|
|
72
72
|
variants: {
|
|
73
73
|
size: {
|
|
@@ -105,7 +105,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
105
105
|
"span",
|
|
106
106
|
{
|
|
107
107
|
className: cn(
|
|
108
|
-
"text-muted-foreground flex items-center gap-2 text-
|
|
108
|
+
"text-muted-foreground flex items-center gap-2 text-base [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
109
109
|
className
|
|
110
110
|
),
|
|
111
111
|
...props
|
|
@@ -45,7 +45,7 @@ function InputOTPSlot({
|
|
|
45
45
|
"data-slot": "input-otp-slot",
|
|
46
46
|
"data-active": isActive,
|
|
47
47
|
className: _utils.cn.call(void 0,
|
|
48
|
-
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex size-9 items-center justify-center border-y border-r text-
|
|
48
|
+
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex size-9 items-center justify-center border-y border-r text-base shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
49
49
|
className
|
|
50
50
|
),
|
|
51
51
|
...props,
|
|
@@ -45,7 +45,7 @@ function InputOTPSlot({
|
|
|
45
45
|
"data-slot": "input-otp-slot",
|
|
46
46
|
"data-active": isActive,
|
|
47
47
|
className: cn(
|
|
48
|
-
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex size-9 items-center justify-center border-y border-r text-
|
|
48
|
+
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex size-9 items-center justify-center border-y border-r text-base shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
49
49
|
className
|
|
50
50
|
),
|
|
51
51
|
...props,
|
|
@@ -9,7 +9,7 @@ function Input({ className, type, placeholder, "aria-label": ariaLabel, ...props
|
|
|
9
9
|
type,
|
|
10
10
|
"data-slot": "input",
|
|
11
11
|
className: _utils.cn.call(void 0,
|
|
12
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-
|
|
12
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-base file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-base",
|
|
13
13
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
14
14
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
15
15
|
className
|
|
@@ -9,7 +9,7 @@ function Input({ className, type, placeholder, "aria-label": ariaLabel, ...props
|
|
|
9
9
|
type,
|
|
10
10
|
"data-slot": "input",
|
|
11
11
|
className: cn(
|
|
12
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-
|
|
12
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-base file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-base",
|
|
13
13
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
14
14
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
15
15
|
className
|
|
@@ -29,7 +29,7 @@ function ItemSeparator({
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const itemVariants = _classvarianceauthority.cva.call(void 0,
|
|
32
|
-
"group/item flex items-center border border-transparent text-
|
|
32
|
+
"group/item flex items-center border border-transparent text-base rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
35
35
|
variant: {
|
|
@@ -116,7 +116,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "item-title",
|
|
118
118
|
className: _utils.cn.call(void 0,
|
|
119
|
-
"flex w-fit items-center gap-2 text-
|
|
119
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium",
|
|
120
120
|
className
|
|
121
121
|
),
|
|
122
122
|
...props
|
|
@@ -129,7 +129,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
129
129
|
{
|
|
130
130
|
"data-slot": "item-description",
|
|
131
131
|
className: _utils.cn.call(void 0,
|
|
132
|
-
"text-muted-foreground line-clamp-2 text-
|
|
132
|
+
"text-muted-foreground line-clamp-2 text-base leading-normal font-normal text-balance",
|
|
133
133
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
134
134
|
className
|
|
135
135
|
),
|
|
@@ -29,7 +29,7 @@ function ItemSeparator({
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const itemVariants = cva(
|
|
32
|
-
"group/item flex items-center border border-transparent text-
|
|
32
|
+
"group/item flex items-center border border-transparent text-base rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
35
35
|
variant: {
|
|
@@ -116,7 +116,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "item-title",
|
|
118
118
|
className: cn(
|
|
119
|
-
"flex w-fit items-center gap-2 text-
|
|
119
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium",
|
|
120
120
|
className
|
|
121
121
|
),
|
|
122
122
|
...props
|
|
@@ -129,7 +129,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
129
129
|
{
|
|
130
130
|
"data-slot": "item-description",
|
|
131
131
|
className: cn(
|
|
132
|
-
"text-muted-foreground line-clamp-2 text-
|
|
132
|
+
"text-muted-foreground line-clamp-2 text-base leading-normal font-normal text-balance",
|
|
133
133
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
134
134
|
className
|
|
135
135
|
),
|
|
@@ -10,7 +10,7 @@ function Label({
|
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "label",
|
|
12
12
|
className: _utils.cn.call(void 0,
|
|
13
|
-
"flex items-center gap-2 text-
|
|
13
|
+
"flex items-center gap-2 text-base leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
14
14
|
className
|
|
15
15
|
),
|
|
16
16
|
...props
|
|
@@ -10,7 +10,7 @@ function Label({
|
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "label",
|
|
12
12
|
className: cn(
|
|
13
|
-
"flex items-center gap-2 text-
|
|
13
|
+
"flex items-center gap-2 text-base leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
14
14
|
className
|
|
15
15
|
),
|
|
16
16
|
...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 Menubar({
|
|
7
8
|
className,
|
|
8
9
|
...props
|
|
@@ -32,7 +33,8 @@ function MenubarGroup({
|
|
|
32
33
|
function MenubarPortal({
|
|
33
34
|
...props
|
|
34
35
|
}) {
|
|
35
|
-
|
|
36
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
37
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Menubar.Portal, { "data-slot": "menubar-portal", container, ...props });
|
|
36
38
|
}
|
|
37
39
|
function MenubarRadioGroup({
|
|
38
40
|
...props
|
|
@@ -48,7 +50,7 @@ function MenubarTrigger({
|
|
|
48
50
|
{
|
|
49
51
|
"data-slot": "menubar-trigger",
|
|
50
52
|
className: _utils.cn.call(void 0,
|
|
51
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-
|
|
53
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-base font-medium outline-hidden select-none",
|
|
52
54
|
className
|
|
53
55
|
),
|
|
54
56
|
...props
|
|
@@ -90,7 +92,7 @@ function MenubarItem({
|
|
|
90
92
|
"data-inset": inset,
|
|
91
93
|
"data-variant": variant,
|
|
92
94
|
className: _utils.cn.call(void 0,
|
|
93
|
-
"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-
|
|
95
|
+
"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",
|
|
94
96
|
className
|
|
95
97
|
),
|
|
96
98
|
...props
|
|
@@ -108,7 +110,7 @@ function MenubarCheckboxItem({
|
|
|
108
110
|
{
|
|
109
111
|
"data-slot": "menubar-checkbox-item",
|
|
110
112
|
className: _utils.cn.call(void 0,
|
|
111
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
112
114
|
className
|
|
113
115
|
),
|
|
114
116
|
checked,
|
|
@@ -130,7 +132,7 @@ function MenubarRadioItem({
|
|
|
130
132
|
{
|
|
131
133
|
"data-slot": "menubar-radio-item",
|
|
132
134
|
className: _utils.cn.call(void 0,
|
|
133
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-
|
|
135
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
134
136
|
className
|
|
135
137
|
),
|
|
136
138
|
...props,
|
|
@@ -152,7 +154,7 @@ function MenubarLabel({
|
|
|
152
154
|
"data-slot": "menubar-label",
|
|
153
155
|
"data-inset": inset,
|
|
154
156
|
className: _utils.cn.call(void 0,
|
|
155
|
-
"px-2 py-1.5 text-
|
|
157
|
+
"px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
156
158
|
className
|
|
157
159
|
),
|
|
158
160
|
...props
|
|
@@ -205,7 +207,7 @@ function MenubarSubTrigger({
|
|
|
205
207
|
"data-slot": "menubar-sub-trigger",
|
|
206
208
|
"data-inset": inset,
|
|
207
209
|
className: _utils.cn.call(void 0,
|
|
208
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-
|
|
210
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-base outline-none select-none data-[inset]:pl-8",
|
|
209
211
|
className
|
|
210
212
|
),
|
|
211
213
|
...props,
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
6
7
|
function Menubar({
|
|
7
8
|
className,
|
|
8
9
|
...props
|
|
@@ -32,7 +33,8 @@ function MenubarGroup({
|
|
|
32
33
|
function MenubarPortal({
|
|
33
34
|
...props
|
|
34
35
|
}) {
|
|
35
|
-
|
|
36
|
+
const container = usePluginPortalContainer();
|
|
37
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", container, ...props });
|
|
36
38
|
}
|
|
37
39
|
function MenubarRadioGroup({
|
|
38
40
|
...props
|
|
@@ -48,7 +50,7 @@ function MenubarTrigger({
|
|
|
48
50
|
{
|
|
49
51
|
"data-slot": "menubar-trigger",
|
|
50
52
|
className: cn(
|
|
51
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-
|
|
53
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-base font-medium outline-hidden select-none",
|
|
52
54
|
className
|
|
53
55
|
),
|
|
54
56
|
...props
|
|
@@ -90,7 +92,7 @@ function MenubarItem({
|
|
|
90
92
|
"data-inset": inset,
|
|
91
93
|
"data-variant": variant,
|
|
92
94
|
className: cn(
|
|
93
|
-
"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-
|
|
95
|
+
"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",
|
|
94
96
|
className
|
|
95
97
|
),
|
|
96
98
|
...props
|
|
@@ -108,7 +110,7 @@ function MenubarCheckboxItem({
|
|
|
108
110
|
{
|
|
109
111
|
"data-slot": "menubar-checkbox-item",
|
|
110
112
|
className: cn(
|
|
111
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
112
114
|
className
|
|
113
115
|
),
|
|
114
116
|
checked,
|
|
@@ -130,7 +132,7 @@ function MenubarRadioItem({
|
|
|
130
132
|
{
|
|
131
133
|
"data-slot": "menubar-radio-item",
|
|
132
134
|
className: cn(
|
|
133
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-
|
|
135
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
134
136
|
className
|
|
135
137
|
),
|
|
136
138
|
...props,
|
|
@@ -152,7 +154,7 @@ function MenubarLabel({
|
|
|
152
154
|
"data-slot": "menubar-label",
|
|
153
155
|
"data-inset": inset,
|
|
154
156
|
className: cn(
|
|
155
|
-
"px-2 py-1.5 text-
|
|
157
|
+
"px-2 py-1.5 text-base font-medium data-[inset]:pl-8",
|
|
156
158
|
className
|
|
157
159
|
),
|
|
158
160
|
...props
|
|
@@ -205,7 +207,7 @@ function MenubarSubTrigger({
|
|
|
205
207
|
"data-slot": "menubar-sub-trigger",
|
|
206
208
|
"data-inset": inset,
|
|
207
209
|
className: cn(
|
|
208
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-
|
|
210
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-base outline-none select-none data-[inset]:pl-8",
|
|
209
211
|
className
|
|
210
212
|
),
|
|
211
213
|
...props,
|
|
@@ -20,7 +20,7 @@ function NativeSelect({
|
|
|
20
20
|
"data-slot": "native-select",
|
|
21
21
|
"data-size": size,
|
|
22
22
|
className: _utils.cn.call(void 0,
|
|
23
|
-
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-
|
|
23
|
+
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1",
|
|
24
24
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
25
25
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
26
26
|
className
|
|
@@ -20,7 +20,7 @@ function NativeSelect({
|
|
|
20
20
|
"data-slot": "native-select",
|
|
21
21
|
"data-size": size,
|
|
22
22
|
className: cn(
|
|
23
|
-
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-
|
|
23
|
+
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1",
|
|
24
24
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
25
25
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
26
26
|
className
|
|
@@ -56,7 +56,7 @@ function NavigationMenuItem({
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const navigationMenuTriggerStyle = _classvarianceauthority.cva.call(void 0,
|
|
59
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-
|
|
59
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-base font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
60
60
|
);
|
|
61
61
|
function NavigationMenuTrigger({
|
|
62
62
|
className,
|
|
@@ -133,7 +133,7 @@ function NavigationMenuLink({
|
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "navigation-menu-link",
|
|
135
135
|
className: _utils.cn.call(void 0,
|
|
136
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-
|
|
136
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-base transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
137
137
|
className
|
|
138
138
|
),
|
|
139
139
|
...props
|
|
@@ -56,7 +56,7 @@ function NavigationMenuItem({
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const navigationMenuTriggerStyle = cva(
|
|
59
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-
|
|
59
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-base font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
60
60
|
);
|
|
61
61
|
function NavigationMenuTrigger({
|
|
62
62
|
className,
|
|
@@ -133,7 +133,7 @@ function NavigationMenuLink({
|
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "navigation-menu-link",
|
|
135
135
|
className: cn(
|
|
136
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-
|
|
136
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-base transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
137
137
|
className
|
|
138
138
|
),
|
|
139
139
|
...props
|
|
@@ -7,7 +7,7 @@ function PluginSafetyDisclaimer({ className }) {
|
|
|
7
7
|
{
|
|
8
8
|
role: "note",
|
|
9
9
|
className: _utils.cn.call(void 0,
|
|
10
|
-
"flex shrink-0 items-start gap-2 border-t border-status-warning-border bg-status-warning-faint px-4 py-2.5 text-
|
|
10
|
+
"flex shrink-0 items-start gap-2 border-t border-status-warning-border bg-status-warning-faint px-4 py-2.5 text-sm leading-5 text-[var(--text-secondary)]",
|
|
11
11
|
className
|
|
12
12
|
),
|
|
13
13
|
children: [
|
|
@@ -7,7 +7,7 @@ function PluginSafetyDisclaimer({ className }) {
|
|
|
7
7
|
{
|
|
8
8
|
role: "note",
|
|
9
9
|
className: cn(
|
|
10
|
-
"flex shrink-0 items-start gap-2 border-t border-status-warning-border bg-status-warning-faint px-4 py-2.5 text-
|
|
10
|
+
"flex shrink-0 items-start gap-2 border-t border-status-warning-border bg-status-warning-faint px-4 py-2.5 text-sm leading-5 text-[var(--text-secondary)]",
|
|
11
11
|
className
|
|
12
12
|
),
|
|
13
13
|
children: [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');
|
|
2
2
|
var _radixui = require('radix-ui');
|
|
3
3
|
var _utils = require('../../lib/utils');
|
|
4
|
+
var _pluginstylescopecontext = require('../../plugin-style-scope-context');
|
|
4
5
|
function Popover({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -17,7 +18,8 @@ function PopoverContent({
|
|
|
17
18
|
sideOffset = 4,
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
22
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Popover.Portal, { container, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21
23
|
_radixui.Popover.Content,
|
|
22
24
|
{
|
|
23
25
|
"data-slot": "popover-content",
|
|
@@ -41,7 +43,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
41
43
|
"div",
|
|
42
44
|
{
|
|
43
45
|
"data-slot": "popover-header",
|
|
44
|
-
className: _utils.cn.call(void 0, "flex flex-col gap-1 text-
|
|
46
|
+
className: _utils.cn.call(void 0, "flex flex-col gap-1 text-base", className),
|
|
45
47
|
...props
|
|
46
48
|
}
|
|
47
49
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
4
5
|
function Popover({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
@@ -17,7 +18,8 @@ function PopoverContent({
|
|
|
17
18
|
sideOffset = 4,
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
|
-
|
|
21
|
+
const container = usePluginPortalContainer();
|
|
22
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
21
23
|
PopoverPrimitive.Content,
|
|
22
24
|
{
|
|
23
25
|
"data-slot": "popover-content",
|
|
@@ -41,7 +43,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
41
43
|
"div",
|
|
42
44
|
{
|
|
43
45
|
"data-slot": "popover-header",
|
|
44
|
-
className: cn("flex flex-col gap-1 text-
|
|
46
|
+
className: cn("flex flex-col gap-1 text-base", className),
|
|
45
47
|
...props
|
|
46
48
|
}
|
|
47
49
|
);
|
|
@@ -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 Select({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -30,7 +31,7 @@ function SelectTrigger({
|
|
|
30
31
|
"data-slot": "select-trigger",
|
|
31
32
|
"data-size": size,
|
|
32
33
|
className: _utils.cn.call(void 0,
|
|
33
|
-
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-
|
|
34
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
34
35
|
className
|
|
35
36
|
),
|
|
36
37
|
...props,
|
|
@@ -48,7 +49,8 @@ function SelectContent({
|
|
|
48
49
|
align = "center",
|
|
49
50
|
...props
|
|
50
51
|
}) {
|
|
51
|
-
|
|
52
|
+
const container = _pluginstylescopecontext.usePluginPortalContainer.call(void 0, );
|
|
53
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Select.Portal, { container, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
52
54
|
_radixui.Select.Content,
|
|
53
55
|
{
|
|
54
56
|
"data-slot": "select-content",
|
|
@@ -100,7 +102,7 @@ function SelectItem({
|
|
|
100
102
|
{
|
|
101
103
|
"data-slot": "select-item",
|
|
102
104
|
className: _utils.cn.call(void 0,
|
|
103
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-
|
|
105
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
104
106
|
className
|
|
105
107
|
),
|
|
106
108
|
...props,
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
4
4
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { usePluginPortalContainer } from "../../plugin-style-scope-context";
|
|
6
7
|
function Select({
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
@@ -30,7 +31,7 @@ function SelectTrigger({
|
|
|
30
31
|
"data-slot": "select-trigger",
|
|
31
32
|
"data-size": size,
|
|
32
33
|
className: cn(
|
|
33
|
-
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-
|
|
34
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
34
35
|
className
|
|
35
36
|
),
|
|
36
37
|
...props,
|
|
@@ -48,7 +49,8 @@ function SelectContent({
|
|
|
48
49
|
align = "center",
|
|
49
50
|
...props
|
|
50
51
|
}) {
|
|
51
|
-
|
|
52
|
+
const container = usePluginPortalContainer();
|
|
53
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container, children: /* @__PURE__ */ jsxs(
|
|
52
54
|
SelectPrimitive.Content,
|
|
53
55
|
{
|
|
54
56
|
"data-slot": "select-content",
|
|
@@ -100,7 +102,7 @@ function SelectItem({
|
|
|
100
102
|
{
|
|
101
103
|
"data-slot": "select-item",
|
|
102
104
|
className: cn(
|
|
103
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-
|
|
105
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
104
106
|
className
|
|
105
107
|
),
|
|
106
108
|
...props,
|