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