@cognite/aura 0.1.0 → 0.1.1

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.
@@ -48,6 +48,10 @@ export { DialogMetadata } from './ui/core/dialog/dialog.metadata';
48
48
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from './ui/core/command/command';
49
49
  export { CommandMetadata } from './ui/core/command/command.metadata';
50
50
  export { InlineCitationMetadata } from './ui/core/inline-citation/inline-citation.metadata';
51
- export { InlineCitation, InlineCitationGroup, InlineCitationText, InlineCitationCard, InlineCitationCardTrigger, InlineCitationCardBody, InlineCitationSource, InlineCitationQuote, InlineCitationLink, } from './ui/core/inline-citation/inline-citation';
51
+ export { InlineCitation, InlineCitationGroup, InlineCitationText, InlineCitationCard, InlineCitationCardTrigger, InlineCitationCardBody, InlineCitationSource, InlineCitationQuote, InlineCitationLink, type InlineCitationLinkProps, } from './ui/core/inline-citation/inline-citation';
52
52
  export { Reasoning, ReasoningContent, ReasoningHeader, ReasoningItem, } from './ui/core/reasoning/reasoning';
53
53
  export { ReasoningMetadata } from './ui/core/reasoning/reasoning.metadata';
54
+ export { Popover, PopoverContent, PopoverTrigger, } from './ui/core/popover/popover';
55
+ export { Sources, SourcesTitle, Source } from './ui/core/sources/sources';
56
+ export { PortalContainerContext } from '../lib/portal-container-context';
57
+ export type { ComponentMeta, ComponentStatusType } from '../lib/types';
@@ -0,0 +1,239 @@
1
+ import { Button as e, buttonVariants as r } from "./ui/core/button/button.js";
2
+ import { ButtonMetadata as n } from "./ui/core/button/button.metadata.js";
3
+ import { ButtonGroup as m, ButtonGroupSeparator as u, ButtonGroupText as l, buttonGroupVariants as d } from "./ui/core/button-group/button-group.js";
4
+ import { ButtonGroupMetadata as I } from "./ui/core/button-group/button-group.metadata.js";
5
+ import { Avatar as C, AvatarFallback as M, AvatarIcon as f, AvatarImage as g } from "./ui/core/avatar/avatar.js";
6
+ import { AvatarMetadata as c } from "./ui/core/avatar/avatar.metadata.js";
7
+ import { Label as S } from "./ui/core/label/label.js";
8
+ import { LabelMetadata as D } from "./ui/core/label/label.metadata.js";
9
+ import { HelperText as B } from "./ui/core/helper-text/helper-text.js";
10
+ import { HelperTextMetadata as w } from "./ui/core/helper-text/helper-text.metadata.js";
11
+ import { Loader as G } from "./ui/core/loader/loader.js";
12
+ import { LoaderMetadata as L } from "./ui/core/loader/loader.metadata.js";
13
+ import { Shimmer as R } from "./ui/core/shimmer/shimmer.js";
14
+ import { ShimmerMetadata as h } from "./ui/core/shimmer/shimmer.metadata.js";
15
+ import { CodeBlock as F, CodeBlockCollapseButton as E, CodeBlockCopyButton as O } from "./ui/core/code-block/code-block.js";
16
+ import { CodeBlockMetadata as U } from "./ui/core/code-block/code-block.metadata.js";
17
+ import { Separator as q } from "./ui/core/separator/separator.js";
18
+ import { SeparatorMetadata as J } from "./ui/core/separator/separator.metadata.js";
19
+ import { Tooltip as N, TooltipContent as W, TooltipProvider as X, TooltipTrigger as Y } from "./ui/core/tooltip/tooltip.js";
20
+ import { TooltipMetadata as _ } from "./ui/core/tooltip/tooltip.metadata.js";
21
+ import { Tool as oo, ToolContent as to, ToolHeader as eo, ToolInput as ro, ToolOutput as ao } from "./ui/core/tool/tool.js";
22
+ import { ToolMetadata as po } from "./ui/core/tool/tool.metadata.js";
23
+ import { DropdownMenu as uo, DropdownMenuCheckboxItem as lo, DropdownMenuContent as io, DropdownMenuGroup as Io, DropdownMenuHeader as xo, DropdownMenuItem as Co, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as go, DropdownMenuRadioItem as Po, DropdownMenuSectionLabel as co, DropdownMenuSeparator as To, DropdownMenuShortcut as So, DropdownMenuSub as so, DropdownMenuSubContent as Do, DropdownMenuSubTrigger as bo, DropdownMenuTrigger as Bo } from "./ui/core/dropdown-menu/dropdown-menu.js";
24
+ import { DropdownMenuMetadata as wo } from "./ui/core/dropdown-menu/dropdown-menu.metadata.js";
25
+ import { Badge as Go, badgeVariants as Ho } from "./ui/core/badge/badge.js";
26
+ import { BadgeMetadata as ko } from "./ui/core/badge/badge.metadata.js";
27
+ import { Collapsible as yo, CollapsibleContent as ho, CollapsibleTrigger as Vo } from "./ui/core/collapsible/collapsible.js";
28
+ import { CollapsibleMetadata as Eo } from "./ui/core/collapsible/collapsible.metadata.js";
29
+ import { HoverCard as Qo, HoverCardContent as Uo, HoverCardTrigger as jo } from "./ui/core/hover-card/hover-card.js";
30
+ import { HoverCardMetadata as zo } from "./ui/core/hover-card/hover-card.metadata.js";
31
+ import { Select as Ko, SelectContent as No, SelectGroup as Wo, SelectItem as Xo, SelectLabel as Yo, SelectScrollDownButton as Zo, SelectScrollUpButton as _o, SelectSeparator as $o, SelectTrigger as ot, SelectValue as tt } from "./ui/core/select/select.js";
32
+ import { SelectMetadata as rt } from "./ui/core/select/select.metadata.js";
33
+ import { Skeleton as nt } from "./ui/core/skeleton/skeleton.js";
34
+ import { SkeletonMetadata as mt } from "./ui/core/skeleton/skeleton.metadata.js";
35
+ import { Input as lt } from "./ui/core/input/input.js";
36
+ import { InputMetadata as it } from "./ui/core/input/input.metadata.js";
37
+ import { Textarea as xt } from "./ui/core/textarea/textarea.js";
38
+ import { TextareaMetadata as Mt } from "./ui/core/textarea/textarea.metadata.js";
39
+ import { InputGroup as gt, InputGroupAddon as Pt, InputGroupButton as ct, InputGroupInput as Tt, InputGroupText as St, InputGroupTextarea as st } from "./ui/core/input-group/input-group.js";
40
+ import { InputGroupMetadata as bt } from "./ui/core/input-group/input-group.metadata.js";
41
+ import { Alert as At, AlertActions as wt, AlertButton as vt, AlertClose as Gt, AlertDescription as Ht, AlertTitle as Lt } from "./ui/core/alert/alert.js";
42
+ import { AlertMetadata as Rt } from "./ui/core/alert/alert.metadata.js";
43
+ import { Message as ht, MessageAction as Vt, MessageActions as Ft, MessageContent as Et, MessageResponse as Ot } from "./ui/core/message/message.js";
44
+ import { PromptInputMetadata as Ut } from "./ui/core/prompt-input/prompt-input.metadata.js";
45
+ import { PromptInput as qt, PromptInputActionMenu as zt, PromptInputActionMenuContent as Jt, PromptInputActionMenuItem as Kt, PromptInputActionMenuTrigger as Nt, PromptInputBody as Wt, PromptInputButton as Xt, PromptInputCommand as Yt, PromptInputCommandEmpty as Zt, PromptInputCommandGroup as _t, PromptInputCommandInput as $t, PromptInputCommandItem as oe, PromptInputCommandList as te, PromptInputCommandSeparator as ee, PromptInputFooter as re, PromptInputHeader as ae, PromptInputHoverCard as ne, PromptInputHoverCardContent as pe, PromptInputHoverCardTrigger as me, PromptInputModelSelect as ue, PromptInputModelSelectContent as le, PromptInputModelSelectItem as de, PromptInputModelSelectTrigger as ie, PromptInputModelSelectValue as Ie, PromptInputProvider as xe, PromptInputSubmit as Ce, PromptInputTab as Me, PromptInputTabBody as fe, PromptInputTabItem as ge, PromptInputTabLabel as Pe, PromptInputTabsList as ce, PromptInputTextarea as Te, PromptInputTools as Se, usePromptInputController as se } from "./ui/core/prompt-input/prompt-input.js";
46
+ import { Dialog as be, DialogClose as Be, DialogContent as Ae, DialogDescription as we, DialogFooter as ve, DialogHeader as Ge, DialogOverlay as He, DialogPortal as Le, DialogTitle as ke, DialogTrigger as Re } from "./ui/core/dialog/dialog.js";
47
+ import { DialogMetadata as he } from "./ui/core/dialog/dialog.metadata.js";
48
+ import { Command as Fe, CommandDialog as Ee, CommandEmpty as Oe, CommandGroup as Qe, CommandInput as Ue, CommandItem as je, CommandList as qe, CommandSeparator as ze, CommandShortcut as Je } from "./ui/core/command/command.js";
49
+ import { CommandMetadata as Ne } from "./ui/core/command/command.metadata.js";
50
+ import { InlineCitationMetadata as Xe } from "./ui/core/inline-citation/inline-citation.metadata.js";
51
+ import { InlineCitation as Ze, InlineCitationCard as _e, InlineCitationCardBody as $e, InlineCitationCardTrigger as or, InlineCitationGroup as tr, InlineCitationLink as er, InlineCitationQuote as rr, InlineCitationSource as ar, InlineCitationText as nr } from "./ui/core/inline-citation/inline-citation.js";
52
+ import { Reasoning as mr, ReasoningContent as ur, ReasoningHeader as lr, ReasoningItem as dr } from "./ui/core/reasoning/reasoning.js";
53
+ import { ReasoningMetadata as Ir } from "./ui/core/reasoning/reasoning.metadata.js";
54
+ import { Popover as Cr, PopoverContent as Mr, PopoverTrigger as fr } from "./ui/core/popover/popover.js";
55
+ import { Source as Pr, Sources as cr, SourcesTitle as Tr } from "./ui/core/sources/sources.js";
56
+ import { PortalContainerContext as sr } from "../lib/portal-container-context.js";
57
+ export {
58
+ At as Alert,
59
+ wt as AlertActions,
60
+ vt as AlertButton,
61
+ Gt as AlertClose,
62
+ Ht as AlertDescription,
63
+ Rt as AlertMetadata,
64
+ Lt as AlertTitle,
65
+ C as Avatar,
66
+ M as AvatarFallback,
67
+ f as AvatarIcon,
68
+ g as AvatarImage,
69
+ c as AvatarMetadata,
70
+ Go as Badge,
71
+ ko as BadgeMetadata,
72
+ e as Button,
73
+ m as ButtonGroup,
74
+ I as ButtonGroupMetadata,
75
+ u as ButtonGroupSeparator,
76
+ l as ButtonGroupText,
77
+ n as ButtonMetadata,
78
+ F as CodeBlock,
79
+ E as CodeBlockCollapseButton,
80
+ O as CodeBlockCopyButton,
81
+ U as CodeBlockMetadata,
82
+ yo as Collapsible,
83
+ ho as CollapsibleContent,
84
+ Eo as CollapsibleMetadata,
85
+ Vo as CollapsibleTrigger,
86
+ Fe as Command,
87
+ Ee as CommandDialog,
88
+ Oe as CommandEmpty,
89
+ Qe as CommandGroup,
90
+ Ue as CommandInput,
91
+ je as CommandItem,
92
+ qe as CommandList,
93
+ Ne as CommandMetadata,
94
+ ze as CommandSeparator,
95
+ Je as CommandShortcut,
96
+ be as Dialog,
97
+ Be as DialogClose,
98
+ Ae as DialogContent,
99
+ we as DialogDescription,
100
+ ve as DialogFooter,
101
+ Ge as DialogHeader,
102
+ he as DialogMetadata,
103
+ He as DialogOverlay,
104
+ Le as DialogPortal,
105
+ ke as DialogTitle,
106
+ Re as DialogTrigger,
107
+ uo as DropdownMenu,
108
+ lo as DropdownMenuCheckboxItem,
109
+ io as DropdownMenuContent,
110
+ Io as DropdownMenuGroup,
111
+ xo as DropdownMenuHeader,
112
+ Co as DropdownMenuItem,
113
+ Mo as DropdownMenuLabel,
114
+ wo as DropdownMenuMetadata,
115
+ fo as DropdownMenuPortal,
116
+ go as DropdownMenuRadioGroup,
117
+ Po as DropdownMenuRadioItem,
118
+ co as DropdownMenuSectionLabel,
119
+ To as DropdownMenuSeparator,
120
+ So as DropdownMenuShortcut,
121
+ so as DropdownMenuSub,
122
+ Do as DropdownMenuSubContent,
123
+ bo as DropdownMenuSubTrigger,
124
+ Bo as DropdownMenuTrigger,
125
+ B as HelperText,
126
+ w as HelperTextMetadata,
127
+ Qo as HoverCard,
128
+ Uo as HoverCardContent,
129
+ zo as HoverCardMetadata,
130
+ jo as HoverCardTrigger,
131
+ Ze as InlineCitation,
132
+ _e as InlineCitationCard,
133
+ $e as InlineCitationCardBody,
134
+ or as InlineCitationCardTrigger,
135
+ tr as InlineCitationGroup,
136
+ er as InlineCitationLink,
137
+ Xe as InlineCitationMetadata,
138
+ rr as InlineCitationQuote,
139
+ ar as InlineCitationSource,
140
+ nr as InlineCitationText,
141
+ lt as Input,
142
+ gt as InputGroup,
143
+ Pt as InputGroupAddon,
144
+ ct as InputGroupButton,
145
+ Tt as InputGroupInput,
146
+ bt as InputGroupMetadata,
147
+ St as InputGroupText,
148
+ st as InputGroupTextarea,
149
+ it as InputMetadata,
150
+ S as Label,
151
+ D as LabelMetadata,
152
+ G as Loader,
153
+ L as LoaderMetadata,
154
+ ht as Message,
155
+ Vt as MessageAction,
156
+ Ft as MessageActions,
157
+ Et as MessageContent,
158
+ Ot as MessageResponse,
159
+ Cr as Popover,
160
+ Mr as PopoverContent,
161
+ fr as PopoverTrigger,
162
+ sr as PortalContainerContext,
163
+ qt as PromptInput,
164
+ zt as PromptInputActionMenu,
165
+ Jt as PromptInputActionMenuContent,
166
+ Kt as PromptInputActionMenuItem,
167
+ Nt as PromptInputActionMenuTrigger,
168
+ Wt as PromptInputBody,
169
+ Xt as PromptInputButton,
170
+ Yt as PromptInputCommand,
171
+ Zt as PromptInputCommandEmpty,
172
+ _t as PromptInputCommandGroup,
173
+ $t as PromptInputCommandInput,
174
+ oe as PromptInputCommandItem,
175
+ te as PromptInputCommandList,
176
+ ee as PromptInputCommandSeparator,
177
+ re as PromptInputFooter,
178
+ ae as PromptInputHeader,
179
+ ne as PromptInputHoverCard,
180
+ pe as PromptInputHoverCardContent,
181
+ me as PromptInputHoverCardTrigger,
182
+ Ut as PromptInputMetadata,
183
+ ue as PromptInputModelSelect,
184
+ le as PromptInputModelSelectContent,
185
+ de as PromptInputModelSelectItem,
186
+ ie as PromptInputModelSelectTrigger,
187
+ Ie as PromptInputModelSelectValue,
188
+ xe as PromptInputProvider,
189
+ Ce as PromptInputSubmit,
190
+ Me as PromptInputTab,
191
+ fe as PromptInputTabBody,
192
+ ge as PromptInputTabItem,
193
+ Pe as PromptInputTabLabel,
194
+ ce as PromptInputTabsList,
195
+ Te as PromptInputTextarea,
196
+ Se as PromptInputTools,
197
+ mr as Reasoning,
198
+ ur as ReasoningContent,
199
+ lr as ReasoningHeader,
200
+ dr as ReasoningItem,
201
+ Ir as ReasoningMetadata,
202
+ Ko as Select,
203
+ No as SelectContent,
204
+ Wo as SelectGroup,
205
+ Xo as SelectItem,
206
+ Yo as SelectLabel,
207
+ rt as SelectMetadata,
208
+ Zo as SelectScrollDownButton,
209
+ _o as SelectScrollUpButton,
210
+ $o as SelectSeparator,
211
+ ot as SelectTrigger,
212
+ tt as SelectValue,
213
+ q as Separator,
214
+ J as SeparatorMetadata,
215
+ R as Shimmer,
216
+ h as ShimmerMetadata,
217
+ nt as Skeleton,
218
+ mt as SkeletonMetadata,
219
+ Pr as Source,
220
+ cr as Sources,
221
+ Tr as SourcesTitle,
222
+ xt as Textarea,
223
+ Mt as TextareaMetadata,
224
+ oo as Tool,
225
+ to as ToolContent,
226
+ eo as ToolHeader,
227
+ ro as ToolInput,
228
+ po as ToolMetadata,
229
+ ao as ToolOutput,
230
+ N as Tooltip,
231
+ W as TooltipContent,
232
+ _ as TooltipMetadata,
233
+ X as TooltipProvider,
234
+ Y as TooltipTrigger,
235
+ Ho as badgeVariants,
236
+ d as buttonGroupVariants,
237
+ r as buttonVariants,
238
+ se as usePromptInputController
239
+ };
@@ -1,24 +1,26 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import { Dialog as a } from "@base-ui/react/dialog";
3
3
  import { IconX as d } from "@tabler/icons-react";
4
- import { cn as i, getPortalContainer as c } from "../../../../lib/utils.js";
5
- function y({ ...t }) {
4
+ import { usePortalContainer as c } from "../../../../lib/portal-container-context.js";
5
+ import { cn as i } from "../../../../lib/utils.js";
6
+ function D({ ...t }) {
6
7
  return /* @__PURE__ */ e(a.Root, { "data-slot": "dialog", ...t });
7
8
  }
8
- function D({ children: t, ...o }) {
9
+ function b({ children: t, ...o }) {
9
10
  return /* @__PURE__ */ e(a.Trigger, { "data-slot": "dialog-trigger", ...o, children: t });
10
11
  }
11
12
  function g({ ...t }) {
13
+ const o = c();
12
14
  return /* @__PURE__ */ e(
13
15
  a.Portal,
14
16
  {
15
17
  "data-slot": "dialog-portal",
16
- ...t,
17
- container: c()
18
+ container: o,
19
+ ...t
18
20
  }
19
21
  );
20
22
  }
21
- function b({
23
+ function h({
22
24
  children: t,
23
25
  ...o
24
26
  }) {
@@ -40,7 +42,7 @@ function u({
40
42
  }
41
43
  );
42
44
  }
43
- function h({
45
+ function v({
44
46
  className: t,
45
47
  children: o,
46
48
  showCloseButton: l = !0,
@@ -83,7 +85,7 @@ function h({
83
85
  )
84
86
  ] });
85
87
  }
86
- function v({ className: t, ...o }) {
88
+ function N({ className: t, ...o }) {
87
89
  return /* @__PURE__ */ e(
88
90
  "div",
89
91
  {
@@ -96,7 +98,7 @@ function v({ className: t, ...o }) {
96
98
  }
97
99
  );
98
100
  }
99
- function N({ className: t, ...o }) {
101
+ function k({ className: t, ...o }) {
100
102
  return /* @__PURE__ */ e(
101
103
  "div",
102
104
  {
@@ -109,7 +111,7 @@ function N({ className: t, ...o }) {
109
111
  }
110
112
  );
111
113
  }
112
- function k({
114
+ function C({
113
115
  className: t,
114
116
  ...o
115
117
  }) {
@@ -125,7 +127,7 @@ function k({
125
127
  }
126
128
  );
127
129
  }
128
- function C({
130
+ function w({
129
131
  className: t,
130
132
  ...o
131
133
  }) {
@@ -142,14 +144,14 @@ function C({
142
144
  );
143
145
  }
144
146
  export {
145
- y as Dialog,
146
- b as DialogClose,
147
- h as DialogContent,
148
- C as DialogDescription,
149
- N as DialogFooter,
150
- v as DialogHeader,
147
+ D as Dialog,
148
+ h as DialogClose,
149
+ v as DialogContent,
150
+ w as DialogDescription,
151
+ k as DialogFooter,
152
+ N as DialogHeader,
151
153
  u as DialogOverlay,
152
154
  g as DialogPortal,
153
- k as DialogTitle,
154
- D as DialogTrigger
155
+ C as DialogTitle,
156
+ b as DialogTrigger
155
157
  };
@@ -1,18 +1,20 @@
1
- import { jsx as o, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
3
  import { Menu as r } from "@base-ui/react/menu";
4
4
  import { IconCheck as c, IconChevronRight as f } from "@tabler/icons-react";
5
- import { cn as d, getPortalContainer as v } from "../../../../lib/utils.js";
5
+ import { usePortalContainer as v } from "../../../../lib/portal-container-context.js";
6
+ import { cn as d } from "../../../../lib/utils.js";
6
7
  function w({ ...e }) {
7
- return /* @__PURE__ */ o(r.Root, { "data-slot": "dropdown-menu", ...e });
8
+ return /* @__PURE__ */ t(r.Root, { "data-slot": "dropdown-menu", ...e });
8
9
  }
9
10
  w.displayName = "DropdownMenu";
10
11
  function l({ ...e }) {
11
- return /* @__PURE__ */ o(
12
+ const o = v();
13
+ return /* @__PURE__ */ t(
12
14
  r.Portal,
13
15
  {
14
16
  "data-slot": "dropdown-menu-portal",
15
- container: v(),
17
+ container: o,
16
18
  ...e
17
19
  }
18
20
  );
@@ -20,29 +22,29 @@ function l({ ...e }) {
20
22
  l.displayName = "DropdownMenuPortal";
21
23
  function b({
22
24
  children: e,
23
- ...t
25
+ ...o
24
26
  }) {
25
- return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...t, children: e });
27
+ return /* @__PURE__ */ t(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...o, children: e });
26
28
  }
27
29
  b.displayName = "DropdownMenuTrigger";
28
30
  function m({
29
31
  align: e = "start",
30
- alignOffset: t = 0,
32
+ alignOffset: o = 0,
31
33
  side: n = "bottom",
32
34
  sideOffset: a = 4,
33
35
  className: s,
34
36
  container: u,
35
37
  ...g
36
38
  }) {
37
- return /* @__PURE__ */ o(l, { container: u, children: /* @__PURE__ */ o(
39
+ return /* @__PURE__ */ t(l, { container: u, children: /* @__PURE__ */ t(
38
40
  r.Positioner,
39
41
  {
40
42
  className: "isolate z-50 outline-none",
41
43
  align: e,
42
- alignOffset: t,
44
+ alignOffset: o,
43
45
  side: n,
44
46
  sideOffset: a,
45
- children: /* @__PURE__ */ o(
47
+ children: /* @__PURE__ */ t(
46
48
  r.Popup,
47
49
  {
48
50
  "data-slot": "dropdown-menu-content",
@@ -58,15 +60,15 @@ function m({
58
60
  }
59
61
  m.displayName = "DropdownMenuContent";
60
62
  function x({ ...e }) {
61
- return /* @__PURE__ */ o(r.Group, { "data-slot": "dropdown-menu-group", ...e });
63
+ return /* @__PURE__ */ t(r.Group, { "data-slot": "dropdown-menu-group", ...e });
62
64
  }
63
65
  x.displayName = "DropdownMenuGroup";
64
- const h = i(({ className: e, inset: t, variant: n = "default", children: a, ...s }, u) => /* @__PURE__ */ o(
66
+ const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s }, u) => /* @__PURE__ */ t(
65
67
  r.Item,
66
68
  {
67
69
  ref: u,
68
70
  "data-slot": "dropdown-menu-item",
69
- "data-inset": t,
71
+ "data-inset": o,
70
72
  "data-variant": n,
71
73
  className: d(
72
74
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive-hover dark:data-[variant=destructive]:focus:bg-destructive-hover data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:text-destructive-foreground data-[variant=destructive]:hover:bg-destructive-hover dark:data-[variant=destructive]:hover:bg-destructive-hover [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm p-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",
@@ -77,7 +79,7 @@ const h = i(({ className: e, inset: t, variant: n = "default", children: a, ...s
77
79
  }
78
80
  ));
79
81
  h.displayName = "DropdownMenuItem";
80
- const M = i(({ className: e, children: t, checked: n, ...a }, s) => /* @__PURE__ */ p(
82
+ const M = i(({ className: e, children: o, checked: n, ...a }, s) => /* @__PURE__ */ p(
81
83
  r.CheckboxItem,
82
84
  {
83
85
  ref: s,
@@ -89,14 +91,14 @@ const M = i(({ className: e, children: t, checked: n, ...a }, s) => /* @__PURE__
89
91
  checked: n,
90
92
  ...a,
91
93
  children: [
92
- /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.CheckboxItemIndicator, { children: /* @__PURE__ */ o(c, { className: "size-4 text-popover-foreground" }) }) }),
93
- t
94
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(r.CheckboxItemIndicator, { children: /* @__PURE__ */ t(c, { className: "size-4 text-popover-foreground" }) }) }),
95
+ o
94
96
  ]
95
97
  }
96
98
  ));
97
99
  M.displayName = "DropdownMenuCheckboxItem";
98
100
  function D({ ...e }) {
99
- return /* @__PURE__ */ o(
101
+ return /* @__PURE__ */ t(
100
102
  r.RadioGroup,
101
103
  {
102
104
  "data-slot": "dropdown-menu-radio-group",
@@ -105,7 +107,7 @@ function D({ ...e }) {
105
107
  );
106
108
  }
107
109
  D.displayName = "DropdownMenuRadioGroup";
108
- const N = i(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p(
110
+ const N = i(({ className: e, children: o, ...n }, a) => /* @__PURE__ */ p(
109
111
  r.RadioItem,
110
112
  {
111
113
  ref: a,
@@ -116,18 +118,18 @@ const N = i(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p(
116
118
  ),
117
119
  ...n,
118
120
  children: [
119
- /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.RadioItemIndicator, { children: /* @__PURE__ */ o(c, { className: "size-4 text-popover-foreground" }) }) }),
120
- t
121
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(r.RadioItemIndicator, { children: /* @__PURE__ */ t(c, { className: "size-4 text-popover-foreground" }) }) }),
122
+ o
121
123
  ]
122
124
  }
123
125
  ));
124
126
  N.displayName = "DropdownMenuRadioItem";
125
- const y = i(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */ o(
127
+ const y = i(({ className: e, inset: o, ...n }, a) => /* @__PURE__ */ t(
126
128
  r.GroupLabel,
127
129
  {
128
130
  ref: a,
129
131
  "data-slot": "dropdown-menu-label",
130
- "data-inset": t,
132
+ "data-inset": o,
131
133
  className: d(
132
134
  "-mx-1 -mt-1 mb-1 px-2 py-1.5 text-sm border-b border-border font-medium data-inset:pl-8 text-popover-foreground dark:text-popover-foreground",
133
135
  e
@@ -136,7 +138,7 @@ const y = i(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */ o(
136
138
  }
137
139
  ));
138
140
  y.displayName = "DropdownMenuLabel";
139
- const z = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
141
+ const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
140
142
  "div",
141
143
  {
142
144
  ref: n,
@@ -145,21 +147,21 @@ const z = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
145
147
  "-mx-1 -mt-1 mb-1 flex flex-row items-center gap-2 border-b border-border px-2 py-2 pointer-events-none",
146
148
  e
147
149
  ),
148
- ...t
150
+ ...o
149
151
  }
150
152
  ));
151
153
  z.displayName = "DropdownMenuHeader";
152
- const k = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
154
+ const k = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
153
155
  r.Separator,
154
156
  {
155
157
  ref: n,
156
158
  "data-slot": "dropdown-menu-separator",
157
159
  className: d("bg-border -mx-1 my-1 h-px", e),
158
- ...t
160
+ ...o
159
161
  }
160
162
  ));
161
163
  k.displayName = "DropdownMenuSeparator";
162
- const I = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
164
+ const I = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
163
165
  "span",
164
166
  {
165
167
  ref: n,
@@ -168,20 +170,20 @@ const I = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
168
170
  "text-muted-foreground ml-auto text-xs tracking-widest",
169
171
  e
170
172
  ),
171
- ...t
173
+ ...o
172
174
  }
173
175
  ));
174
176
  I.displayName = "DropdownMenuShortcut";
175
177
  function S({ ...e }) {
176
- return /* @__PURE__ */ o(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
178
+ return /* @__PURE__ */ t(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
177
179
  }
178
180
  S.displayName = "DropdownMenuSub";
179
- const _ = i(({ className: e, inset: t, children: n, ...a }, s) => /* @__PURE__ */ p(
181
+ const _ = i(({ className: e, inset: o, children: n, ...a }, s) => /* @__PURE__ */ p(
180
182
  r.SubmenuTrigger,
181
183
  {
182
184
  ref: s,
183
185
  "data-slot": "dropdown-menu-sub-trigger",
184
- "data-inset": t,
186
+ "data-inset": o,
185
187
  className: d(
186
188
  "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-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-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
187
189
  e
@@ -189,26 +191,26 @@ const _ = i(({ className: e, inset: t, children: n, ...a }, s) => /* @__PURE__ *
189
191
  ...a,
190
192
  children: [
191
193
  n,
192
- /* @__PURE__ */ o(f, { className: "ml-auto size-4" })
194
+ /* @__PURE__ */ t(f, { className: "ml-auto size-4" })
193
195
  ]
194
196
  }
195
197
  ));
196
198
  _.displayName = "DropdownMenuSubTrigger";
197
199
  function C({
198
200
  align: e = "start",
199
- alignOffset: t = -3,
201
+ alignOffset: o = -3,
200
202
  side: n = "right",
201
203
  sideOffset: a = 0,
202
204
  className: s,
203
205
  ...u
204
206
  }) {
205
- return /* @__PURE__ */ o(
207
+ return /* @__PURE__ */ t(
206
208
  m,
207
209
  {
208
210
  "data-slot": "dropdown-menu-sub-content",
209
211
  className: d("min-w-32 w-auto", s),
210
212
  align: e,
211
- alignOffset: t,
213
+ alignOffset: o,
212
214
  side: n,
213
215
  sideOffset: a,
214
216
  ...u
@@ -216,7 +218,7 @@ function C({
216
218
  );
217
219
  }
218
220
  C.displayName = "DropdownMenuSubContent";
219
- const R = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
221
+ const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
220
222
  "div",
221
223
  {
222
224
  ref: n,
@@ -225,7 +227,7 @@ const R = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
225
227
  "px-2 py-1 text-sm text-muted-foreground dark:text-muted-foreground",
226
228
  e
227
229
  ),
228
- ...t
230
+ ...o
229
231
  }
230
232
  ));
231
233
  R.displayName = "DropdownMenuSectionLabel";