@7onic-ui/react 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // src/components/ui/accordion.tsx
2
4
  import * as React from "react";
3
5
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
@@ -37,7 +39,7 @@ var accordionVariants = cva("w-full", {
37
39
  variant: "default"
38
40
  }
39
41
  });
40
- var AccordionRoot = React.forwardRef(
42
+ var Accordion = React.forwardRef(
41
43
  ({ className, variant = "default", size = "default", iconPosition = "right", type = "single", collapsible = true, defaultValue, value, onValueChange, disabled, ...props }, ref) => {
42
44
  const restProps = props;
43
45
  const sharedClassName = cn(accordionVariants({ variant }), className);
@@ -66,7 +68,7 @@ var AccordionRoot = React.forwardRef(
66
68
  ));
67
69
  }
68
70
  );
69
- AccordionRoot.displayName = "Accordion";
71
+ Accordion.displayName = "Accordion";
70
72
  var accordionItemVariants = cva("", {
71
73
  variants: {
72
74
  variant: {
@@ -174,11 +176,6 @@ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref)
174
176
  );
175
177
  });
176
178
  AccordionContent.displayName = "AccordionContent";
177
- var Accordion = Object.assign(AccordionRoot, {
178
- Item: AccordionItem,
179
- Trigger: AccordionTrigger,
180
- Content: AccordionContent
181
- });
182
179
 
183
180
  // src/components/ui/breadcrumb.tsx
184
181
  import * as React2 from "react";
@@ -216,7 +213,7 @@ var breadcrumbSizeMap = {
216
213
  default: { text: "text-sm", icon: "icon-xs", gap: "gap-2" },
217
214
  lg: { text: "text-md", icon: "icon-sm", gap: "gap-2" }
218
215
  };
219
- var BreadcrumbRoot = React2.forwardRef(
216
+ var Breadcrumb = React2.forwardRef(
220
217
  ({ className, separator, size = "default", ...props }, ref) => /* @__PURE__ */ React2.createElement(BreadcrumbContext.Provider, { value: { size, separator } }, /* @__PURE__ */ React2.createElement(
221
218
  "nav",
222
219
  {
@@ -227,7 +224,7 @@ var BreadcrumbRoot = React2.forwardRef(
227
224
  }
228
225
  ))
229
226
  );
230
- BreadcrumbRoot.displayName = "Breadcrumb";
227
+ Breadcrumb.displayName = "Breadcrumb";
231
228
  var BreadcrumbList = React2.forwardRef(
232
229
  ({ className, ...props }, ref) => {
233
230
  const { size = "default" } = useBreadcrumbContext();
@@ -328,14 +325,6 @@ var BreadcrumbEllipsis = React2.forwardRef(
328
325
  }
329
326
  );
330
327
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
331
- var Breadcrumb = Object.assign(BreadcrumbRoot, {
332
- List: BreadcrumbList,
333
- Item: BreadcrumbItem,
334
- Link: BreadcrumbLink,
335
- Page: BreadcrumbPage,
336
- Separator: BreadcrumbSeparator,
337
- Ellipsis: BreadcrumbEllipsis
338
- });
339
328
 
340
329
  // src/components/ui/divider.tsx
341
330
  import * as React3 from "react";
@@ -976,7 +965,7 @@ var ToggleGroupContext = React8.createContext({
976
965
  radius: "default",
977
966
  fontWeight: "normal"
978
967
  });
979
- var ToggleGroupRoot = React8.forwardRef(({ className, orientation, variant, size, radius, fontWeight, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
968
+ var ToggleGroup = React8.forwardRef(({ className, orientation, variant, size, radius, fontWeight, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
980
969
  ToggleGroupPrimitive.Root,
981
970
  {
982
971
  ref,
@@ -1010,7 +999,7 @@ var ToggleGroupRoot = React8.forwardRef(({ className, orientation, variant, size
1010
999
  },
1011
1000
  /* @__PURE__ */ React8.createElement(ToggleGroupContext.Provider, { value: { variant, size, radius, fontWeight } }, children)
1012
1001
  ));
1013
- ToggleGroupRoot.displayName = ToggleGroupPrimitive.Root.displayName;
1002
+ ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
1014
1003
  var iconSizeClasses2 = {
1015
1004
  xs: "[&>svg]:icon-xs",
1016
1005
  // 14px
@@ -1046,9 +1035,6 @@ var ToggleGroupItem = React8.forwardRef(({ className, variant, size, radius, fon
1046
1035
  );
1047
1036
  });
1048
1037
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
1049
- var ToggleGroup = Object.assign(ToggleGroupRoot, {
1050
- Item: ToggleGroupItem
1051
- });
1052
1038
 
1053
1039
  // src/components/ui/segmented.tsx
1054
1040
  import * as React9 from "react";
@@ -1202,7 +1188,7 @@ var segmentedItemVariants = cva7(
1202
1188
  }
1203
1189
  }
1204
1190
  );
1205
- var SegmentedRoot = React9.forwardRef(({ className, variant, size, radius, fontWeight, ...props }, ref) => {
1191
+ var Segmented = React9.forwardRef(({ className, variant, size, radius, fontWeight, ...props }, ref) => {
1206
1192
  const resolvedFontWeight = fontWeight ?? "normal";
1207
1193
  return /* @__PURE__ */ React9.createElement(SegmentedContext.Provider, { value: { variant: variant || "default", size: size || "default", radius: radius || "default" } }, /* @__PURE__ */ React9.createElement(
1208
1194
  RadioGroupPrimitive.Root,
@@ -1213,7 +1199,7 @@ var SegmentedRoot = React9.forwardRef(({ className, variant, size, radius, fontW
1213
1199
  }
1214
1200
  ));
1215
1201
  });
1216
- SegmentedRoot.displayName = "Segmented";
1202
+ Segmented.displayName = "Segmented";
1217
1203
  var iconSizeClasses3 = {
1218
1204
  sm: "[&>svg]:icon-xs",
1219
1205
  // 14px
@@ -1243,9 +1229,6 @@ var SegmentedItem = React9.forwardRef(({ className, children, size, radius, cont
1243
1229
  );
1244
1230
  });
1245
1231
  SegmentedItem.displayName = "SegmentedItem";
1246
- var Segmented = Object.assign(SegmentedRoot, {
1247
- Item: SegmentedItem
1248
- });
1249
1232
 
1250
1233
  // src/components/ui/input.tsx
1251
1234
  import * as React11 from "react";
@@ -1272,7 +1255,7 @@ var fieldVariants = cva8("flex flex-col", {
1272
1255
  gap: "default"
1273
1256
  }
1274
1257
  });
1275
- var FieldRoot = React10.forwardRef(
1258
+ var Field = React10.forwardRef(
1276
1259
  ({ className, gap, error, disabled, children, ...props }, ref) => {
1277
1260
  const id = React10.useId();
1278
1261
  return /* @__PURE__ */ React10.createElement(FieldContext.Provider, { value: { id, error, disabled } }, /* @__PURE__ */ React10.createElement(
@@ -1288,7 +1271,7 @@ var FieldRoot = React10.forwardRef(
1288
1271
  ));
1289
1272
  }
1290
1273
  );
1291
- FieldRoot.displayName = "Field";
1274
+ Field.displayName = "Field";
1292
1275
  var FieldLabel = React10.forwardRef(
1293
1276
  ({ className, required, children, ...props }, ref) => {
1294
1277
  const context = useFieldContext();
@@ -1345,11 +1328,6 @@ var FieldCharCount = React10.forwardRef(({ className, ...props }, ref) => {
1345
1328
  );
1346
1329
  });
1347
1330
  FieldCharCount.displayName = "FieldCharCount";
1348
- var Field = Object.assign(FieldRoot, {
1349
- Label: FieldLabel,
1350
- Error: FieldError,
1351
- CharCount: FieldCharCount
1352
- });
1353
1331
 
1354
1332
  // src/components/ui/input.tsx
1355
1333
  var inputVariants = cva9(
@@ -1856,7 +1834,7 @@ var radioGroupVariants = cva12("grid gap-3", {
1856
1834
  orientation: "vertical"
1857
1835
  }
1858
1836
  });
1859
- var RadioGroupRoot = React14.forwardRef(({ className, orientation, size = "default", weight = "bold", color = "default", disabled, ...props }, ref) => {
1837
+ var RadioGroup = React14.forwardRef(({ className, orientation, size = "default", weight = "bold", color = "default", disabled, ...props }, ref) => {
1860
1838
  const fieldContext = useFieldContext();
1861
1839
  const resolvedDisabled = disabled ?? fieldContext?.disabled;
1862
1840
  return /* @__PURE__ */ React14.createElement(RadioGroupContext.Provider, { value: { size, weight, color, disabled: resolvedDisabled } }, /* @__PURE__ */ React14.createElement(
@@ -1870,7 +1848,7 @@ var RadioGroupRoot = React14.forwardRef(({ className, orientation, size = "defau
1870
1848
  }
1871
1849
  ));
1872
1850
  });
1873
- RadioGroupRoot.displayName = "RadioGroup";
1851
+ RadioGroup.displayName = "RadioGroup";
1874
1852
  var radioItemVariants = cva12(
1875
1853
  [
1876
1854
  "relative shrink-0 rounded-full border-border hover:border-border-strong transition-all duration-micro ease-out",
@@ -1958,9 +1936,6 @@ var RadioGroupItem = React14.forwardRef(({ className, label, disabled, ...props
1958
1936
  ));
1959
1937
  });
1960
1938
  RadioGroupItem.displayName = "RadioGroupItem";
1961
- var RadioGroup = Object.assign(RadioGroupRoot, {
1962
- Item: RadioGroupItem
1963
- });
1964
1939
 
1965
1940
  // src/components/ui/switch.tsx
1966
1941
  import * as React15 from "react";
@@ -2289,7 +2264,7 @@ var insetSizeMap = {
2289
2264
  lg: "pl-10"
2290
2265
  };
2291
2266
  var DropdownMenuStyleContext = React17.createContext({ radius: "lg", flush: false, size: "md" });
2292
- var DropdownMenuRoot = DropdownMenuPrimitive.Root;
2267
+ var DropdownMenu = DropdownMenuPrimitive.Root;
2293
2268
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
2294
2269
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
2295
2270
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
@@ -2466,21 +2441,6 @@ function DropdownMenuShortcut({
2466
2441
  );
2467
2442
  }
2468
2443
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2469
- var DropdownMenu = Object.assign(DropdownMenuRoot, {
2470
- Trigger: DropdownMenuTrigger,
2471
- Content: DropdownMenuContent,
2472
- Item: DropdownMenuItem,
2473
- CheckboxItem: DropdownMenuCheckboxItem,
2474
- RadioGroup: DropdownMenuRadioGroup,
2475
- RadioItem: DropdownMenuRadioItem,
2476
- Label: DropdownMenuLabel,
2477
- Separator: DropdownMenuSeparator,
2478
- Group: DropdownMenuGroup,
2479
- Sub: DropdownMenuSub,
2480
- SubTrigger: DropdownMenuSubTrigger,
2481
- SubContent: DropdownMenuSubContent,
2482
- Shortcut: DropdownMenuShortcut
2483
- });
2484
2444
 
2485
2445
  // src/components/ui/select.tsx
2486
2446
  import * as React18 from "react";
@@ -2586,7 +2546,7 @@ var flushLabelPaddingMap = {
2586
2546
  };
2587
2547
  var SelectRootContext = React18.createContext({ size: "default", radius: "default" });
2588
2548
  var SelectStyleContext = React18.createContext({ contentRadius: "xl", itemSize: "md", flush: false });
2589
- var SelectRoot = ({
2549
+ var Select = ({
2590
2550
  size = "default",
2591
2551
  radius = "default",
2592
2552
  ...props
@@ -2737,15 +2697,6 @@ var SelectSeparator = React18.forwardRef(({ className, ...props }, ref) => {
2737
2697
  );
2738
2698
  });
2739
2699
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2740
- var Select = Object.assign(SelectRoot, {
2741
- Trigger: SelectTrigger,
2742
- Value: SelectValue,
2743
- Content: SelectContent,
2744
- Item: SelectItem,
2745
- Group: SelectGroup,
2746
- Label: SelectLabel,
2747
- Separator: SelectSeparator
2748
- });
2749
2700
 
2750
2701
  // src/components/ui/avatar.tsx
2751
2702
  import * as React19 from "react";
@@ -2853,7 +2804,7 @@ function getAvatarColor(name, variant = "vivid") {
2853
2804
  }
2854
2805
  return avatarColors[(hash >>> 0) % avatarColors.length][variant];
2855
2806
  }
2856
- var AvatarRoot = React19.forwardRef(({ className, size, shape, status, children, ...props }, ref) => {
2807
+ var Avatar = React19.forwardRef(({ className, size, shape, status, children, ...props }, ref) => {
2857
2808
  const resolvedSize = size || "default";
2858
2809
  if (!status) {
2859
2810
  return /* @__PURE__ */ React19.createElement(
@@ -2885,7 +2836,7 @@ var AvatarRoot = React19.forwardRef(({ className, size, shape, status, children,
2885
2836
  }
2886
2837
  ));
2887
2838
  });
2888
- AvatarRoot.displayName = "Avatar";
2839
+ Avatar.displayName = "Avatar";
2889
2840
  var AvatarImage = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
2890
2841
  AvatarPrimitive.Image,
2891
2842
  {
@@ -2934,16 +2885,11 @@ var AvatarGroup = React19.forwardRef(
2934
2885
  ...props
2935
2886
  },
2936
2887
  visibleChildren,
2937
- overflowCount > 0 && /* @__PURE__ */ React19.createElement(AvatarRoot, { size, shape }, /* @__PURE__ */ React19.createElement(AvatarFallback, { size }, "+", overflowCount))
2888
+ overflowCount > 0 && /* @__PURE__ */ React19.createElement(Avatar, { size, shape }, /* @__PURE__ */ React19.createElement(AvatarFallback, { size }, "+", overflowCount))
2938
2889
  );
2939
2890
  }
2940
2891
  );
2941
2892
  AvatarGroup.displayName = "AvatarGroup";
2942
- var Avatar = Object.assign(AvatarRoot, {
2943
- Image: AvatarImage,
2944
- Fallback: AvatarFallback,
2945
- Group: AvatarGroup
2946
- });
2947
2893
 
2948
2894
  // src/components/ui/metric-card.tsx
2949
2895
  import * as React20 from "react";
@@ -3007,7 +2953,7 @@ var trendConfig = {
3007
2953
  neutral: { color: "text-text-muted", srLabel: "No change" }
3008
2954
  };
3009
2955
  var MetricCardContext = React20.createContext({ size: "default", animated: false });
3010
- var MetricCardRoot = React20.forwardRef(
2956
+ var MetricCard = React20.forwardRef(
3011
2957
  ({ className, variant, size, radius, animated = false, children, ...props }, ref) => {
3012
2958
  const resolvedSize = size || "default";
3013
2959
  return /* @__PURE__ */ React20.createElement(MetricCardContext.Provider, { value: { size: resolvedSize, animated } }, /* @__PURE__ */ React20.createElement(
@@ -3021,7 +2967,7 @@ var MetricCardRoot = React20.forwardRef(
3021
2967
  ));
3022
2968
  }
3023
2969
  );
3024
- MetricCardRoot.displayName = "MetricCard";
2970
+ MetricCard.displayName = "MetricCard";
3025
2971
  var MetricCardHeader = React20.forwardRef(
3026
2972
  ({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
3027
2973
  "div",
@@ -3142,14 +3088,6 @@ var MetricCardSymbol = React20.forwardRef(
3142
3088
  }
3143
3089
  );
3144
3090
  MetricCardSymbol.displayName = "MetricCardSymbol";
3145
- var MetricCard = Object.assign(MetricCardRoot, {
3146
- Header: MetricCardHeader,
3147
- Title: MetricCardTitle,
3148
- Value: MetricCardValue,
3149
- Trend: MetricCardTrend,
3150
- Description: MetricCardDescription,
3151
- Symbol: MetricCardSymbol
3152
- });
3153
3091
 
3154
3092
  // src/components/ui/badge.tsx
3155
3093
  import * as React21 from "react";
@@ -3368,7 +3306,7 @@ var cardVariants = cva18(
3368
3306
  }
3369
3307
  }
3370
3308
  );
3371
- var CardRoot = React22.forwardRef(
3309
+ var Card = React22.forwardRef(
3372
3310
  ({
3373
3311
  className,
3374
3312
  variant = "default",
@@ -3410,7 +3348,7 @@ var CardRoot = React22.forwardRef(
3410
3348
  ));
3411
3349
  }
3412
3350
  );
3413
- CardRoot.displayName = "Card";
3351
+ Card.displayName = "Card";
3414
3352
  var sizePaddingXMap = {
3415
3353
  sm: "px-4",
3416
3354
  // 16px
@@ -3614,15 +3552,6 @@ var CardFooter = React22.forwardRef(
3614
3552
  }
3615
3553
  );
3616
3554
  CardFooter.displayName = "CardFooter";
3617
- var Card = Object.assign(CardRoot, {
3618
- Image: CardImage,
3619
- Header: CardHeader,
3620
- Title: CardTitle,
3621
- Description: CardDescription,
3622
- Action: CardAction,
3623
- Content: CardContent,
3624
- Footer: CardFooter
3625
- });
3626
3555
 
3627
3556
  // src/components/ui/table.tsx
3628
3557
  import * as React23 from "react";
@@ -3658,7 +3587,7 @@ var tableVariants = cva19(
3658
3587
  }
3659
3588
  }
3660
3589
  );
3661
- var TableRoot = React23.forwardRef(
3590
+ var Table = React23.forwardRef(
3662
3591
  ({ className, size = "default", variant = "default", stickyHeader = false, wrapperClassName, ...props }, ref) => /* @__PURE__ */ React23.createElement(TableContext.Provider, { value: { size, variant, stickyHeader } }, /* @__PURE__ */ React23.createElement("div", { className: cn("relative w-full overflow-auto", wrapperClassName) }, /* @__PURE__ */ React23.createElement(
3663
3592
  "table",
3664
3593
  {
@@ -3668,7 +3597,7 @@ var TableRoot = React23.forwardRef(
3668
3597
  }
3669
3598
  )))
3670
3599
  );
3671
- TableRoot.displayName = "Table";
3600
+ Table.displayName = "Table";
3672
3601
  var TableHeader = React23.forwardRef(({ className, ...props }, ref) => {
3673
3602
  const { stickyHeader } = React23.useContext(TableContext);
3674
3603
  return /* @__PURE__ */ React23.createElement(
@@ -3802,15 +3731,6 @@ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3802
3731
  }
3803
3732
  ));
3804
3733
  TableCaption.displayName = "TableCaption";
3805
- var Table = Object.assign(TableRoot, {
3806
- Header: TableHeader,
3807
- Body: TableBody,
3808
- Footer: TableFooter,
3809
- Row: TableRow,
3810
- Head: TableHead,
3811
- Cell: TableCell,
3812
- Caption: TableCaption
3813
- });
3814
3734
 
3815
3735
  // src/components/ui/tabs.tsx
3816
3736
  import * as React24 from "react";
@@ -3995,12 +3915,7 @@ var TabsContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3995
3915
  }
3996
3916
  ));
3997
3917
  TabsContent.displayName = "TabsContent";
3998
- var TabsRoot = TabsPrimitive.Root;
3999
- var Tabs = Object.assign(TabsRoot, {
4000
- List: TabsList,
4001
- Trigger: TabsTrigger,
4002
- Content: TabsContent
4003
- });
3918
+ var Tabs = TabsPrimitive.Root;
4004
3919
 
4005
3920
  // src/components/ui/navigation-menu.tsx
4006
3921
  import * as React25 from "react";
@@ -4088,7 +4003,7 @@ var navigationMenuSizeMap = {
4088
4003
  groupMargin: "mt-6 first:mt-0"
4089
4004
  }
4090
4005
  };
4091
- var NavigationMenuRoot = React25.forwardRef(
4006
+ var NavigationMenu = React25.forwardRef(
4092
4007
  ({
4093
4008
  className,
4094
4009
  orientation = "horizontal",
@@ -4145,7 +4060,7 @@ var NavigationMenuRoot = React25.forwardRef(
4145
4060
  ));
4146
4061
  }
4147
4062
  );
4148
- NavigationMenuRoot.displayName = "NavigationMenu";
4063
+ NavigationMenu.displayName = "NavigationMenu";
4149
4064
  var NavigationMenuList = React25.forwardRef(
4150
4065
  ({ className, children, ...props }, ref) => {
4151
4066
  const { orientation } = useNavigationMenuContext();
@@ -4465,16 +4380,6 @@ var NavigationMenuViewport = React25.forwardRef(
4465
4380
  }
4466
4381
  );
4467
4382
  NavigationMenuViewport.displayName = "NavigationMenuViewport";
4468
- var NavigationMenu = Object.assign(NavigationMenuRoot, {
4469
- List: NavigationMenuList,
4470
- Item: NavigationMenuItem,
4471
- Trigger: NavigationMenuTrigger,
4472
- Content: NavigationMenuContent,
4473
- Link: NavigationMenuLink,
4474
- Group: NavigationMenuGroup,
4475
- Indicator: NavigationMenuIndicator,
4476
- Viewport: NavigationMenuViewport
4477
- });
4478
4383
 
4479
4384
  // src/components/ui/pagination.tsx
4480
4385
  import * as React26 from "react";
@@ -4646,7 +4551,7 @@ function getItemClasses(variant, color, isActive, disabled) {
4646
4551
  return "border border-transparent text-text-muted hover:bg-background-muted hover:text-foreground";
4647
4552
  }
4648
4553
  }
4649
- var PaginationRoot = React26.forwardRef(
4554
+ var Pagination = React26.forwardRef(
4650
4555
  ({
4651
4556
  className,
4652
4557
  total = 1,
@@ -4703,7 +4608,7 @@ var PaginationRoot = React26.forwardRef(
4703
4608
  ));
4704
4609
  }
4705
4610
  );
4706
- PaginationRoot.displayName = "Pagination";
4611
+ Pagination.displayName = "Pagination";
4707
4612
  var PaginationContent = React26.forwardRef(
4708
4613
  ({ className, ...props }, ref) => {
4709
4614
  const { size } = usePaginationContext();
@@ -4897,17 +4802,6 @@ var PaginationItems = React26.forwardRef(
4897
4802
  }
4898
4803
  );
4899
4804
  PaginationItems.displayName = "PaginationItems";
4900
- var Pagination = Object.assign(PaginationRoot, {
4901
- Content: PaginationContent,
4902
- Item: PaginationItem,
4903
- Link: PaginationLink,
4904
- Previous: PaginationPrevious,
4905
- Next: PaginationNext,
4906
- First: PaginationFirst,
4907
- Last: PaginationLast,
4908
- Ellipsis: PaginationEllipsis,
4909
- Items: PaginationItems
4910
- });
4911
4805
 
4912
4806
  // src/components/ui/modal.tsx
4913
4807
  import * as React27 from "react";
@@ -4929,7 +4823,7 @@ var DefaultCloseIcon = ({ className }) => /* @__PURE__ */ React27.createElement(
4929
4823
  var ModalStyleContext = React27.createContext({
4930
4824
  scrollBehavior: "outside"
4931
4825
  });
4932
- function ModalRoot(props) {
4826
+ function Modal(props) {
4933
4827
  return /* @__PURE__ */ React27.createElement(DialogPrimitive.Root, { ...props });
4934
4828
  }
4935
4829
  var ModalTrigger = DialogPrimitive.Trigger;
@@ -5082,7 +4976,7 @@ var ModalFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
5082
4976
  }
5083
4977
  ));
5084
4978
  ModalFooter.displayName = "ModalFooter";
5085
- var AlertModalRoot = AlertDialogPrimitive.Root;
4979
+ var AlertModal = AlertDialogPrimitive.Root;
5086
4980
  var AlertModalTrigger = AlertDialogPrimitive.Trigger;
5087
4981
  var AlertModalPortal = AlertDialogPrimitive.Portal;
5088
4982
  var AlertModalOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
@@ -5193,31 +5087,6 @@ var AlertModalCancel = React27.forwardRef(({ className, ...props }, ref) => /* @
5193
5087
  }
5194
5088
  ));
5195
5089
  AlertModalCancel.displayName = "AlertModalCancel";
5196
- var Modal = Object.assign(ModalRoot, {
5197
- Trigger: ModalTrigger,
5198
- Portal: ModalPortal,
5199
- Overlay: ModalOverlay,
5200
- Content: ModalContent,
5201
- Header: ModalHeader,
5202
- Title: ModalTitle,
5203
- Description: ModalDescription,
5204
- Body: ModalBody,
5205
- Footer: ModalFooter,
5206
- Close: ModalClose
5207
- });
5208
- var AlertModal = Object.assign(AlertModalRoot, {
5209
- Trigger: AlertModalTrigger,
5210
- Portal: AlertModalPortal,
5211
- Overlay: AlertModalOverlay,
5212
- Content: AlertModalContent,
5213
- Header: AlertModalHeader,
5214
- Title: AlertModalTitle,
5215
- Description: AlertModalDescription,
5216
- Body: AlertModalBody,
5217
- Footer: AlertModalFooter,
5218
- Action: AlertModalAction,
5219
- Cancel: AlertModalCancel
5220
- });
5221
5090
 
5222
5091
  // src/components/ui/drawer.tsx
5223
5092
  import * as React28 from "react";
@@ -5265,7 +5134,7 @@ var drawerSizeVertical = cva23("", {
5265
5134
  },
5266
5135
  defaultVariants: { size: "md" }
5267
5136
  });
5268
- function DrawerRoot(props) {
5137
+ function Drawer(props) {
5269
5138
  return /* @__PURE__ */ React28.createElement(DialogPrimitive2.Root, { ...props });
5270
5139
  }
5271
5140
  var DrawerTrigger = DialogPrimitive2.Trigger;
@@ -5367,18 +5236,6 @@ var DrawerFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PU
5367
5236
  }
5368
5237
  ));
5369
5238
  DrawerFooter.displayName = "DrawerFooter";
5370
- var Drawer = Object.assign(DrawerRoot, {
5371
- Trigger: DrawerTrigger,
5372
- Portal: DrawerPortal,
5373
- Overlay: DrawerOverlay,
5374
- Content: DrawerContent,
5375
- Header: DrawerHeader,
5376
- Title: DrawerTitle,
5377
- Description: DrawerDescription,
5378
- Body: DrawerBody,
5379
- Footer: DrawerFooter,
5380
- Close: DrawerClose
5381
- });
5382
5239
 
5383
5240
  // src/components/ui/tooltip.tsx
5384
5241
  import * as React29 from "react";
@@ -5414,7 +5271,7 @@ var ARROW_FILL = {
5414
5271
  inverted: "fill-background-paper drop-shadow-sm"
5415
5272
  };
5416
5273
  var TooltipProvider = TooltipPrimitive.Provider;
5417
- function TooltipRoot({ delayDuration = 200, ...props }) {
5274
+ function Tooltip({ delayDuration = 200, ...props }) {
5418
5275
  return /* @__PURE__ */ React29.createElement(TooltipPrimitive.Root, { delayDuration, ...props });
5419
5276
  }
5420
5277
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -5457,13 +5314,6 @@ var TooltipArrow = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
5457
5314
  }
5458
5315
  ));
5459
5316
  TooltipArrow.displayName = "TooltipArrow";
5460
- var Tooltip = Object.assign(TooltipRoot, {
5461
- Trigger: TooltipTrigger,
5462
- Content: TooltipContent,
5463
- Arrow: TooltipArrow,
5464
- Portal: TooltipPortal,
5465
- Provider: TooltipProvider
5466
- });
5467
5317
 
5468
5318
  // src/components/ui/popover.tsx
5469
5319
  import * as React30 from "react";
@@ -5514,7 +5364,7 @@ var CSS_ARROW_CLASSES = {
5514
5364
  left: "-right-[5px] top-1/2 -translate-y-1/2 border-t border-r border-border"
5515
5365
  };
5516
5366
  var ARROW_ELEVATED = "fill-background-paper drop-shadow-sm";
5517
- function PopoverRoot(props) {
5367
+ function Popover(props) {
5518
5368
  return /* @__PURE__ */ React30.createElement(PopoverPrimitive.Root, { ...props });
5519
5369
  }
5520
5370
  var PopoverTrigger = PopoverPrimitive.Trigger;
@@ -5577,14 +5427,6 @@ var PopoverArrow = React30.forwardRef(({ className, ...props }, ref) => /* @__PU
5577
5427
  }
5578
5428
  ));
5579
5429
  PopoverArrow.displayName = "PopoverArrow";
5580
- var Popover = Object.assign(PopoverRoot, {
5581
- Trigger: PopoverTrigger,
5582
- Content: PopoverContent,
5583
- Arrow: PopoverArrow,
5584
- Close: PopoverClose,
5585
- Anchor: PopoverAnchor,
5586
- Portal: PopoverPortal
5587
- });
5588
5430
 
5589
5431
  // src/components/ui/alert.tsx
5590
5432
  import * as React31 from "react";
@@ -5680,7 +5522,7 @@ var AlertContext = React31.createContext({
5680
5522
  function useAlertContext() {
5681
5523
  return React31.useContext(AlertContext);
5682
5524
  }
5683
- var AlertRoot = React31.forwardRef(
5525
+ var Alert = React31.forwardRef(
5684
5526
  ({
5685
5527
  className,
5686
5528
  variant = "default",
@@ -5729,7 +5571,7 @@ var AlertRoot = React31.forwardRef(
5729
5571
  ));
5730
5572
  }
5731
5573
  );
5732
- AlertRoot.displayName = "AlertRoot";
5574
+ Alert.displayName = "Alert";
5733
5575
  var AlertTitle = React31.forwardRef(
5734
5576
  ({ className, ...props }, ref) => {
5735
5577
  const { size } = useAlertContext();
@@ -5763,10 +5605,6 @@ var AlertDescription = React31.forwardRef(
5763
5605
  }
5764
5606
  );
5765
5607
  AlertDescription.displayName = "AlertDescription";
5766
- var Alert = Object.assign(AlertRoot, {
5767
- Title: AlertTitle,
5768
- Description: AlertDescription
5769
- });
5770
5608
 
5771
5609
  // src/components/ui/toast.tsx
5772
5610
  import * as React32 from "react";
@@ -7027,7 +6865,7 @@ var iconSizeMap = {
7027
6865
  lg: "icon-sm"
7028
6866
  // 16px
7029
6867
  };
7030
- var QuickReplyRoot = React37.forwardRef(
6868
+ var QuickReply = React37.forwardRef(
7031
6869
  ({
7032
6870
  className,
7033
6871
  layout = "scroll",
@@ -7056,7 +6894,7 @@ var QuickReplyRoot = React37.forwardRef(
7056
6894
  ));
7057
6895
  }
7058
6896
  );
7059
- QuickReplyRoot.displayName = "QuickReply";
6897
+ QuickReply.displayName = "QuickReply";
7060
6898
  var QuickReplyItem = React37.forwardRef(
7061
6899
  ({ className, icon, asChild = false, children, ...props }, ref) => {
7062
6900
  const { size, variant, color, radius } = React37.useContext(QuickReplyContext);
@@ -7086,10 +6924,7 @@ var QuickReplyItem = React37.forwardRef(
7086
6924
  );
7087
6925
  }
7088
6926
  );
7089
- QuickReplyItem.displayName = "QuickReply.Item";
7090
- var QuickReply = Object.assign(QuickReplyRoot, {
7091
- Item: QuickReplyItem
7092
- });
6927
+ QuickReplyItem.displayName = "QuickReplyItem";
7093
6928
 
7094
6929
  // src/components/ui/chat-input.tsx
7095
6930
  import * as React38 from "react";
@@ -7205,7 +7040,7 @@ var ChatInputContext = React38.createContext({
7205
7040
  _handleSubmit: () => {
7206
7041
  }
7207
7042
  });
7208
- var ChatInputRoot = React38.forwardRef(
7043
+ var ChatInput = React38.forwardRef(
7209
7044
  ({
7210
7045
  className,
7211
7046
  variant = "outline",
@@ -7280,7 +7115,7 @@ var ChatInputRoot = React38.forwardRef(
7280
7115
  ));
7281
7116
  }
7282
7117
  );
7283
- ChatInputRoot.displayName = "ChatInput";
7118
+ ChatInput.displayName = "ChatInput";
7284
7119
  var ChatInputField = React38.forwardRef(
7285
7120
  ({
7286
7121
  className,
@@ -7365,7 +7200,7 @@ var ChatInputField = React38.forwardRef(
7365
7200
  ));
7366
7201
  }
7367
7202
  );
7368
- ChatInputField.displayName = "ChatInput.Field";
7203
+ ChatInputField.displayName = "ChatInputField";
7369
7204
  var ChatInputSubmit = React38.forwardRef(
7370
7205
  ({
7371
7206
  className,
@@ -7433,7 +7268,7 @@ var ChatInputSubmit = React38.forwardRef(
7433
7268
  ));
7434
7269
  }
7435
7270
  );
7436
- ChatInputSubmit.displayName = "ChatInput.Submit";
7271
+ ChatInputSubmit.displayName = "ChatInputSubmit";
7437
7272
  function SendIcon() {
7438
7273
  return /* @__PURE__ */ React38.createElement(
7439
7274
  "svg",
@@ -7453,10 +7288,6 @@ function SendIcon() {
7453
7288
  function StopIcon() {
7454
7289
  return /* @__PURE__ */ React38.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "w-full h-full" }, /* @__PURE__ */ React38.createElement("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }));
7455
7290
  }
7456
- var ChatInput = Object.assign(ChatInputRoot, {
7457
- Field: ChatInputField,
7458
- Submit: ChatInputSubmit
7459
- });
7460
7291
 
7461
7292
  // src/components/ui/chat-message.tsx
7462
7293
  import * as React39 from "react";
@@ -7551,7 +7382,7 @@ var typingMinWidthMap = {
7551
7382
  default: "min-w-12",
7552
7383
  lg: "min-w-16"
7553
7384
  };
7554
- var ChatMessageRoot = React39.forwardRef(
7385
+ var ChatMessage = React39.forwardRef(
7555
7386
  ({
7556
7387
  className,
7557
7388
  role = "assistant",
@@ -7587,7 +7418,7 @@ var ChatMessageRoot = React39.forwardRef(
7587
7418
  ));
7588
7419
  }
7589
7420
  );
7590
- ChatMessageRoot.displayName = "ChatMessage";
7421
+ ChatMessage.displayName = "ChatMessage";
7591
7422
  function DefaultAiIcon() {
7592
7423
  return /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "w-3/5 h-3/5", "aria-hidden": "true" }, /* @__PURE__ */ React39.createElement("path", { d: "M12 3l1.8 5.4 5.4 1.8-5.4 1.8L12 17.4l-1.8-5.4L4.8 10.2l5.4-1.8z" }), /* @__PURE__ */ React39.createElement("path", { d: "M19.5 3.5l.8 2.4 2.4.8-2.4.8L19.5 10l-.8-2.5-2.4-.8 2.4-.8z", opacity: ".6" }), /* @__PURE__ */ React39.createElement("path", { d: "M4.5 14.5l.7 2 2 .7-2 .7L4.5 20l-.7-2-2-.7 2-.7z", opacity: ".4" }));
7593
7424
  }
@@ -7603,7 +7434,7 @@ var ChatMessageAvatar = React39.forwardRef(
7603
7434
  /* @__PURE__ */ React39.createElement(AvatarFallback, { className: cn("font-semibold", chatAvatarFontMap[avatarSize]) }, icon ?? (initials || /* @__PURE__ */ React39.createElement(DefaultAiIcon, null)))
7604
7435
  )
7605
7436
  );
7606
- ChatMessageAvatar.displayName = "ChatMessage.Avatar";
7437
+ ChatMessageAvatar.displayName = "ChatMessageAvatar";
7607
7438
  var ChatMessageContent = React39.forwardRef(
7608
7439
  ({ className, children, ...props }, ref) => {
7609
7440
  const { role, variant, color, size, radius, tail, typing, actions } = React39.useContext(ChatMessageContext);
@@ -7646,7 +7477,7 @@ var ChatMessageContent = React39.forwardRef(
7646
7477
  ) }, actions));
7647
7478
  }
7648
7479
  );
7649
- ChatMessageContent.displayName = "ChatMessage.Content";
7480
+ ChatMessageContent.displayName = "ChatMessageContent";
7650
7481
  var ChatMessageFooter = React39.forwardRef(
7651
7482
  ({
7652
7483
  className,
@@ -7688,12 +7519,7 @@ var ChatMessageFooter = React39.forwardRef(
7688
7519
  );
7689
7520
  }
7690
7521
  );
7691
- ChatMessageFooter.displayName = "ChatMessage.Footer";
7692
- var ChatMessage = Object.assign(ChatMessageRoot, {
7693
- Avatar: ChatMessageAvatar,
7694
- Content: ChatMessageContent,
7695
- Footer: ChatMessageFooter
7696
- });
7522
+ ChatMessageFooter.displayName = "ChatMessageFooter";
7697
7523
  export {
7698
7524
  Accordion,
7699
7525
  AccordionContent,
@@ -7713,7 +7539,6 @@ export {
7713
7539
  AlertModalPortal,
7714
7540
  AlertModalTitle,
7715
7541
  AlertModalTrigger,
7716
- AlertRoot,
7717
7542
  AlertTitle,
7718
7543
  Avatar,
7719
7544
  AvatarFallback,
@@ -7739,13 +7564,11 @@ export {
7739
7564
  CardTitle,
7740
7565
  ChatInput,
7741
7566
  ChatInputField,
7742
- ChatInputRoot,
7743
7567
  ChatInputSubmit,
7744
7568
  ChatMessage,
7745
7569
  ChatMessageAvatar,
7746
7570
  ChatMessageContent,
7747
7571
  ChatMessageFooter,
7748
- ChatMessageRoot,
7749
7572
  Checkbox,
7750
7573
  Divider,
7751
7574
  Drawer,
@@ -7757,7 +7580,6 @@ export {
7757
7580
  DrawerHeader,
7758
7581
  DrawerOverlay,
7759
7582
  DrawerPortal,
7760
- DrawerRoot,
7761
7583
  DrawerTitle,
7762
7584
  DrawerTrigger,
7763
7585
  DropdownMenu,
@@ -7823,12 +7645,10 @@ export {
7823
7645
  PopoverClose,
7824
7646
  PopoverContent,
7825
7647
  PopoverPortal,
7826
- PopoverRoot,
7827
7648
  PopoverTrigger,
7828
7649
  Progress,
7829
7650
  QuickReply,
7830
7651
  QuickReplyItem,
7831
- QuickReplyRoot,
7832
7652
  RadioGroup,
7833
7653
  RadioGroupItem,
7834
7654
  Segmented,
@@ -7867,7 +7687,6 @@ export {
7867
7687
  TooltipContent,
7868
7688
  TooltipPortal,
7869
7689
  TooltipProvider,
7870
- TooltipRoot,
7871
7690
  TooltipTrigger,
7872
7691
  TypingIndicator,
7873
7692
  accordionTriggerVariants,