@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.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -48,7 +49,6 @@ __export(ui_exports, {
48
49
  AlertModalPortal: () => AlertModalPortal,
49
50
  AlertModalTitle: () => AlertModalTitle,
50
51
  AlertModalTrigger: () => AlertModalTrigger,
51
- AlertRoot: () => AlertRoot,
52
52
  AlertTitle: () => AlertTitle,
53
53
  Avatar: () => Avatar,
54
54
  AvatarFallback: () => AvatarFallback,
@@ -74,13 +74,11 @@ __export(ui_exports, {
74
74
  CardTitle: () => CardTitle,
75
75
  ChatInput: () => ChatInput,
76
76
  ChatInputField: () => ChatInputField,
77
- ChatInputRoot: () => ChatInputRoot,
78
77
  ChatInputSubmit: () => ChatInputSubmit,
79
78
  ChatMessage: () => ChatMessage,
80
79
  ChatMessageAvatar: () => ChatMessageAvatar,
81
80
  ChatMessageContent: () => ChatMessageContent,
82
81
  ChatMessageFooter: () => ChatMessageFooter,
83
- ChatMessageRoot: () => ChatMessageRoot,
84
82
  Checkbox: () => Checkbox,
85
83
  Divider: () => Divider,
86
84
  Drawer: () => Drawer,
@@ -92,7 +90,6 @@ __export(ui_exports, {
92
90
  DrawerHeader: () => DrawerHeader,
93
91
  DrawerOverlay: () => DrawerOverlay,
94
92
  DrawerPortal: () => DrawerPortal,
95
- DrawerRoot: () => DrawerRoot,
96
93
  DrawerTitle: () => DrawerTitle,
97
94
  DrawerTrigger: () => DrawerTrigger,
98
95
  DropdownMenu: () => DropdownMenu,
@@ -158,12 +155,10 @@ __export(ui_exports, {
158
155
  PopoverClose: () => PopoverClose,
159
156
  PopoverContent: () => PopoverContent,
160
157
  PopoverPortal: () => PopoverPortal,
161
- PopoverRoot: () => PopoverRoot,
162
158
  PopoverTrigger: () => PopoverTrigger,
163
159
  Progress: () => Progress,
164
160
  QuickReply: () => QuickReply,
165
161
  QuickReplyItem: () => QuickReplyItem,
166
- QuickReplyRoot: () => QuickReplyRoot,
167
162
  RadioGroup: () => RadioGroup,
168
163
  RadioGroupItem: () => RadioGroupItem,
169
164
  Segmented: () => Segmented,
@@ -202,7 +197,6 @@ __export(ui_exports, {
202
197
  TooltipContent: () => TooltipContent,
203
198
  TooltipPortal: () => TooltipPortal,
204
199
  TooltipProvider: () => TooltipProvider,
205
- TooltipRoot: () => TooltipRoot,
206
200
  TooltipTrigger: () => TooltipTrigger,
207
201
  TypingIndicator: () => TypingIndicator,
208
202
  accordionTriggerVariants: () => accordionTriggerVariants,
@@ -296,7 +290,7 @@ var accordionVariants = (0, import_class_variance_authority.cva)("w-full", {
296
290
  variant: "default"
297
291
  }
298
292
  });
299
- var AccordionRoot = React.forwardRef(
293
+ var Accordion = React.forwardRef(
300
294
  ({ className, variant = "default", size = "default", iconPosition = "right", type = "single", collapsible = true, defaultValue, value, onValueChange, disabled, ...props }, ref) => {
301
295
  const restProps = props;
302
296
  const sharedClassName = cn(accordionVariants({ variant }), className);
@@ -325,7 +319,7 @@ var AccordionRoot = React.forwardRef(
325
319
  ));
326
320
  }
327
321
  );
328
- AccordionRoot.displayName = "Accordion";
322
+ Accordion.displayName = "Accordion";
329
323
  var accordionItemVariants = (0, import_class_variance_authority.cva)("", {
330
324
  variants: {
331
325
  variant: {
@@ -433,11 +427,6 @@ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref)
433
427
  );
434
428
  });
435
429
  AccordionContent.displayName = "AccordionContent";
436
- var Accordion = Object.assign(AccordionRoot, {
437
- Item: AccordionItem,
438
- Trigger: AccordionTrigger,
439
- Content: AccordionContent
440
- });
441
430
 
442
431
  // src/components/ui/breadcrumb.tsx
443
432
  var React2 = __toESM(require("react"));
@@ -475,7 +464,7 @@ var breadcrumbSizeMap = {
475
464
  default: { text: "text-sm", icon: "icon-xs", gap: "gap-2" },
476
465
  lg: { text: "text-md", icon: "icon-sm", gap: "gap-2" }
477
466
  };
478
- var BreadcrumbRoot = React2.forwardRef(
467
+ var Breadcrumb = React2.forwardRef(
479
468
  ({ className, separator, size = "default", ...props }, ref) => /* @__PURE__ */ React2.createElement(BreadcrumbContext.Provider, { value: { size, separator } }, /* @__PURE__ */ React2.createElement(
480
469
  "nav",
481
470
  {
@@ -486,7 +475,7 @@ var BreadcrumbRoot = React2.forwardRef(
486
475
  }
487
476
  ))
488
477
  );
489
- BreadcrumbRoot.displayName = "Breadcrumb";
478
+ Breadcrumb.displayName = "Breadcrumb";
490
479
  var BreadcrumbList = React2.forwardRef(
491
480
  ({ className, ...props }, ref) => {
492
481
  const { size = "default" } = useBreadcrumbContext();
@@ -587,14 +576,6 @@ var BreadcrumbEllipsis = React2.forwardRef(
587
576
  }
588
577
  );
589
578
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
590
- var Breadcrumb = Object.assign(BreadcrumbRoot, {
591
- List: BreadcrumbList,
592
- Item: BreadcrumbItem,
593
- Link: BreadcrumbLink,
594
- Page: BreadcrumbPage,
595
- Separator: BreadcrumbSeparator,
596
- Ellipsis: BreadcrumbEllipsis
597
- });
598
579
 
599
580
  // src/components/ui/divider.tsx
600
581
  var React3 = __toESM(require("react"));
@@ -1235,7 +1216,7 @@ var ToggleGroupContext = React8.createContext({
1235
1216
  radius: "default",
1236
1217
  fontWeight: "normal"
1237
1218
  });
1238
- var ToggleGroupRoot = React8.forwardRef(({ className, orientation, variant, size, radius, fontWeight, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1219
+ var ToggleGroup = React8.forwardRef(({ className, orientation, variant, size, radius, fontWeight, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1239
1220
  ToggleGroupPrimitive.Root,
1240
1221
  {
1241
1222
  ref,
@@ -1269,7 +1250,7 @@ var ToggleGroupRoot = React8.forwardRef(({ className, orientation, variant, size
1269
1250
  },
1270
1251
  /* @__PURE__ */ React8.createElement(ToggleGroupContext.Provider, { value: { variant, size, radius, fontWeight } }, children)
1271
1252
  ));
1272
- ToggleGroupRoot.displayName = ToggleGroupPrimitive.Root.displayName;
1253
+ ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
1273
1254
  var iconSizeClasses2 = {
1274
1255
  xs: "[&>svg]:icon-xs",
1275
1256
  // 14px
@@ -1305,9 +1286,6 @@ var ToggleGroupItem = React8.forwardRef(({ className, variant, size, radius, fon
1305
1286
  );
1306
1287
  });
1307
1288
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
1308
- var ToggleGroup = Object.assign(ToggleGroupRoot, {
1309
- Item: ToggleGroupItem
1310
- });
1311
1289
 
1312
1290
  // src/components/ui/segmented.tsx
1313
1291
  var React9 = __toESM(require("react"));
@@ -1461,7 +1439,7 @@ var segmentedItemVariants = (0, import_class_variance_authority7.cva)(
1461
1439
  }
1462
1440
  }
1463
1441
  );
1464
- var SegmentedRoot = React9.forwardRef(({ className, variant, size, radius, fontWeight, ...props }, ref) => {
1442
+ var Segmented = React9.forwardRef(({ className, variant, size, radius, fontWeight, ...props }, ref) => {
1465
1443
  const resolvedFontWeight = fontWeight ?? "normal";
1466
1444
  return /* @__PURE__ */ React9.createElement(SegmentedContext.Provider, { value: { variant: variant || "default", size: size || "default", radius: radius || "default" } }, /* @__PURE__ */ React9.createElement(
1467
1445
  RadioGroupPrimitive.Root,
@@ -1472,7 +1450,7 @@ var SegmentedRoot = React9.forwardRef(({ className, variant, size, radius, fontW
1472
1450
  }
1473
1451
  ));
1474
1452
  });
1475
- SegmentedRoot.displayName = "Segmented";
1453
+ Segmented.displayName = "Segmented";
1476
1454
  var iconSizeClasses3 = {
1477
1455
  sm: "[&>svg]:icon-xs",
1478
1456
  // 14px
@@ -1502,9 +1480,6 @@ var SegmentedItem = React9.forwardRef(({ className, children, size, radius, cont
1502
1480
  );
1503
1481
  });
1504
1482
  SegmentedItem.displayName = "SegmentedItem";
1505
- var Segmented = Object.assign(SegmentedRoot, {
1506
- Item: SegmentedItem
1507
- });
1508
1483
 
1509
1484
  // src/components/ui/input.tsx
1510
1485
  var React11 = __toESM(require("react"));
@@ -1531,7 +1506,7 @@ var fieldVariants = (0, import_class_variance_authority8.cva)("flex flex-col", {
1531
1506
  gap: "default"
1532
1507
  }
1533
1508
  });
1534
- var FieldRoot = React10.forwardRef(
1509
+ var Field = React10.forwardRef(
1535
1510
  ({ className, gap, error, disabled, children, ...props }, ref) => {
1536
1511
  const id = React10.useId();
1537
1512
  return /* @__PURE__ */ React10.createElement(FieldContext.Provider, { value: { id, error, disabled } }, /* @__PURE__ */ React10.createElement(
@@ -1547,7 +1522,7 @@ var FieldRoot = React10.forwardRef(
1547
1522
  ));
1548
1523
  }
1549
1524
  );
1550
- FieldRoot.displayName = "Field";
1525
+ Field.displayName = "Field";
1551
1526
  var FieldLabel = React10.forwardRef(
1552
1527
  ({ className, required, children, ...props }, ref) => {
1553
1528
  const context = useFieldContext();
@@ -1604,11 +1579,6 @@ var FieldCharCount = React10.forwardRef(({ className, ...props }, ref) => {
1604
1579
  );
1605
1580
  });
1606
1581
  FieldCharCount.displayName = "FieldCharCount";
1607
- var Field = Object.assign(FieldRoot, {
1608
- Label: FieldLabel,
1609
- Error: FieldError,
1610
- CharCount: FieldCharCount
1611
- });
1612
1582
 
1613
1583
  // src/components/ui/input.tsx
1614
1584
  var inputVariants = (0, import_class_variance_authority9.cva)(
@@ -2115,7 +2085,7 @@ var radioGroupVariants = (0, import_class_variance_authority12.cva)("grid gap-3"
2115
2085
  orientation: "vertical"
2116
2086
  }
2117
2087
  });
2118
- var RadioGroupRoot = React14.forwardRef(({ className, orientation, size = "default", weight = "bold", color = "default", disabled, ...props }, ref) => {
2088
+ var RadioGroup = React14.forwardRef(({ className, orientation, size = "default", weight = "bold", color = "default", disabled, ...props }, ref) => {
2119
2089
  const fieldContext = useFieldContext();
2120
2090
  const resolvedDisabled = disabled ?? fieldContext?.disabled;
2121
2091
  return /* @__PURE__ */ React14.createElement(RadioGroupContext.Provider, { value: { size, weight, color, disabled: resolvedDisabled } }, /* @__PURE__ */ React14.createElement(
@@ -2129,7 +2099,7 @@ var RadioGroupRoot = React14.forwardRef(({ className, orientation, size = "defau
2129
2099
  }
2130
2100
  ));
2131
2101
  });
2132
- RadioGroupRoot.displayName = "RadioGroup";
2102
+ RadioGroup.displayName = "RadioGroup";
2133
2103
  var radioItemVariants = (0, import_class_variance_authority12.cva)(
2134
2104
  [
2135
2105
  "relative shrink-0 rounded-full border-border hover:border-border-strong transition-all duration-micro ease-out",
@@ -2217,9 +2187,6 @@ var RadioGroupItem = React14.forwardRef(({ className, label, disabled, ...props
2217
2187
  ));
2218
2188
  });
2219
2189
  RadioGroupItem.displayName = "RadioGroupItem";
2220
- var RadioGroup = Object.assign(RadioGroupRoot, {
2221
- Item: RadioGroupItem
2222
- });
2223
2190
 
2224
2191
  // src/components/ui/switch.tsx
2225
2192
  var React15 = __toESM(require("react"));
@@ -2548,7 +2515,7 @@ var insetSizeMap = {
2548
2515
  lg: "pl-10"
2549
2516
  };
2550
2517
  var DropdownMenuStyleContext = React17.createContext({ radius: "lg", flush: false, size: "md" });
2551
- var DropdownMenuRoot = DropdownMenuPrimitive.Root;
2518
+ var DropdownMenu = DropdownMenuPrimitive.Root;
2552
2519
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
2553
2520
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
2554
2521
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
@@ -2725,21 +2692,6 @@ function DropdownMenuShortcut({
2725
2692
  );
2726
2693
  }
2727
2694
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2728
- var DropdownMenu = Object.assign(DropdownMenuRoot, {
2729
- Trigger: DropdownMenuTrigger,
2730
- Content: DropdownMenuContent,
2731
- Item: DropdownMenuItem,
2732
- CheckboxItem: DropdownMenuCheckboxItem,
2733
- RadioGroup: DropdownMenuRadioGroup,
2734
- RadioItem: DropdownMenuRadioItem,
2735
- Label: DropdownMenuLabel,
2736
- Separator: DropdownMenuSeparator,
2737
- Group: DropdownMenuGroup,
2738
- Sub: DropdownMenuSub,
2739
- SubTrigger: DropdownMenuSubTrigger,
2740
- SubContent: DropdownMenuSubContent,
2741
- Shortcut: DropdownMenuShortcut
2742
- });
2743
2695
 
2744
2696
  // src/components/ui/select.tsx
2745
2697
  var React18 = __toESM(require("react"));
@@ -2845,7 +2797,7 @@ var flushLabelPaddingMap = {
2845
2797
  };
2846
2798
  var SelectRootContext = React18.createContext({ size: "default", radius: "default" });
2847
2799
  var SelectStyleContext = React18.createContext({ contentRadius: "xl", itemSize: "md", flush: false });
2848
- var SelectRoot = ({
2800
+ var Select = ({
2849
2801
  size = "default",
2850
2802
  radius = "default",
2851
2803
  ...props
@@ -2996,15 +2948,6 @@ var SelectSeparator = React18.forwardRef(({ className, ...props }, ref) => {
2996
2948
  );
2997
2949
  });
2998
2950
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2999
- var Select = Object.assign(SelectRoot, {
3000
- Trigger: SelectTrigger,
3001
- Value: SelectValue,
3002
- Content: SelectContent,
3003
- Item: SelectItem,
3004
- Group: SelectGroup,
3005
- Label: SelectLabel,
3006
- Separator: SelectSeparator
3007
- });
3008
2951
 
3009
2952
  // src/components/ui/avatar.tsx
3010
2953
  var React19 = __toESM(require("react"));
@@ -3112,7 +3055,7 @@ function getAvatarColor(name, variant = "vivid") {
3112
3055
  }
3113
3056
  return avatarColors[(hash >>> 0) % avatarColors.length][variant];
3114
3057
  }
3115
- var AvatarRoot = React19.forwardRef(({ className, size, shape, status, children, ...props }, ref) => {
3058
+ var Avatar = React19.forwardRef(({ className, size, shape, status, children, ...props }, ref) => {
3116
3059
  const resolvedSize = size || "default";
3117
3060
  if (!status) {
3118
3061
  return /* @__PURE__ */ React19.createElement(
@@ -3144,7 +3087,7 @@ var AvatarRoot = React19.forwardRef(({ className, size, shape, status, children,
3144
3087
  }
3145
3088
  ));
3146
3089
  });
3147
- AvatarRoot.displayName = "Avatar";
3090
+ Avatar.displayName = "Avatar";
3148
3091
  var AvatarImage = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
3149
3092
  AvatarPrimitive.Image,
3150
3093
  {
@@ -3193,16 +3136,11 @@ var AvatarGroup = React19.forwardRef(
3193
3136
  ...props
3194
3137
  },
3195
3138
  visibleChildren,
3196
- overflowCount > 0 && /* @__PURE__ */ React19.createElement(AvatarRoot, { size, shape }, /* @__PURE__ */ React19.createElement(AvatarFallback, { size }, "+", overflowCount))
3139
+ overflowCount > 0 && /* @__PURE__ */ React19.createElement(Avatar, { size, shape }, /* @__PURE__ */ React19.createElement(AvatarFallback, { size }, "+", overflowCount))
3197
3140
  );
3198
3141
  }
3199
3142
  );
3200
3143
  AvatarGroup.displayName = "AvatarGroup";
3201
- var Avatar = Object.assign(AvatarRoot, {
3202
- Image: AvatarImage,
3203
- Fallback: AvatarFallback,
3204
- Group: AvatarGroup
3205
- });
3206
3144
 
3207
3145
  // src/components/ui/metric-card.tsx
3208
3146
  var React20 = __toESM(require("react"));
@@ -3266,7 +3204,7 @@ var trendConfig = {
3266
3204
  neutral: { color: "text-text-muted", srLabel: "No change" }
3267
3205
  };
3268
3206
  var MetricCardContext = React20.createContext({ size: "default", animated: false });
3269
- var MetricCardRoot = React20.forwardRef(
3207
+ var MetricCard = React20.forwardRef(
3270
3208
  ({ className, variant, size, radius, animated = false, children, ...props }, ref) => {
3271
3209
  const resolvedSize = size || "default";
3272
3210
  return /* @__PURE__ */ React20.createElement(MetricCardContext.Provider, { value: { size: resolvedSize, animated } }, /* @__PURE__ */ React20.createElement(
@@ -3280,7 +3218,7 @@ var MetricCardRoot = React20.forwardRef(
3280
3218
  ));
3281
3219
  }
3282
3220
  );
3283
- MetricCardRoot.displayName = "MetricCard";
3221
+ MetricCard.displayName = "MetricCard";
3284
3222
  var MetricCardHeader = React20.forwardRef(
3285
3223
  ({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
3286
3224
  "div",
@@ -3401,14 +3339,6 @@ var MetricCardSymbol = React20.forwardRef(
3401
3339
  }
3402
3340
  );
3403
3341
  MetricCardSymbol.displayName = "MetricCardSymbol";
3404
- var MetricCard = Object.assign(MetricCardRoot, {
3405
- Header: MetricCardHeader,
3406
- Title: MetricCardTitle,
3407
- Value: MetricCardValue,
3408
- Trend: MetricCardTrend,
3409
- Description: MetricCardDescription,
3410
- Symbol: MetricCardSymbol
3411
- });
3412
3342
 
3413
3343
  // src/components/ui/badge.tsx
3414
3344
  var React21 = __toESM(require("react"));
@@ -3627,7 +3557,7 @@ var cardVariants = (0, import_class_variance_authority18.cva)(
3627
3557
  }
3628
3558
  }
3629
3559
  );
3630
- var CardRoot = React22.forwardRef(
3560
+ var Card = React22.forwardRef(
3631
3561
  ({
3632
3562
  className,
3633
3563
  variant = "default",
@@ -3669,7 +3599,7 @@ var CardRoot = React22.forwardRef(
3669
3599
  ));
3670
3600
  }
3671
3601
  );
3672
- CardRoot.displayName = "Card";
3602
+ Card.displayName = "Card";
3673
3603
  var sizePaddingXMap = {
3674
3604
  sm: "px-4",
3675
3605
  // 16px
@@ -3873,15 +3803,6 @@ var CardFooter = React22.forwardRef(
3873
3803
  }
3874
3804
  );
3875
3805
  CardFooter.displayName = "CardFooter";
3876
- var Card = Object.assign(CardRoot, {
3877
- Image: CardImage,
3878
- Header: CardHeader,
3879
- Title: CardTitle,
3880
- Description: CardDescription,
3881
- Action: CardAction,
3882
- Content: CardContent,
3883
- Footer: CardFooter
3884
- });
3885
3806
 
3886
3807
  // src/components/ui/table.tsx
3887
3808
  var React23 = __toESM(require("react"));
@@ -3917,7 +3838,7 @@ var tableVariants = (0, import_class_variance_authority19.cva)(
3917
3838
  }
3918
3839
  }
3919
3840
  );
3920
- var TableRoot = React23.forwardRef(
3841
+ var Table = React23.forwardRef(
3921
3842
  ({ 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(
3922
3843
  "table",
3923
3844
  {
@@ -3927,7 +3848,7 @@ var TableRoot = React23.forwardRef(
3927
3848
  }
3928
3849
  )))
3929
3850
  );
3930
- TableRoot.displayName = "Table";
3851
+ Table.displayName = "Table";
3931
3852
  var TableHeader = React23.forwardRef(({ className, ...props }, ref) => {
3932
3853
  const { stickyHeader } = React23.useContext(TableContext);
3933
3854
  return /* @__PURE__ */ React23.createElement(
@@ -4061,15 +3982,6 @@ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
4061
3982
  }
4062
3983
  ));
4063
3984
  TableCaption.displayName = "TableCaption";
4064
- var Table = Object.assign(TableRoot, {
4065
- Header: TableHeader,
4066
- Body: TableBody,
4067
- Footer: TableFooter,
4068
- Row: TableRow,
4069
- Head: TableHead,
4070
- Cell: TableCell,
4071
- Caption: TableCaption
4072
- });
4073
3985
 
4074
3986
  // src/components/ui/tabs.tsx
4075
3987
  var React24 = __toESM(require("react"));
@@ -4254,12 +4166,7 @@ var TabsContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
4254
4166
  }
4255
4167
  ));
4256
4168
  TabsContent.displayName = "TabsContent";
4257
- var TabsRoot = TabsPrimitive.Root;
4258
- var Tabs = Object.assign(TabsRoot, {
4259
- List: TabsList,
4260
- Trigger: TabsTrigger,
4261
- Content: TabsContent
4262
- });
4169
+ var Tabs = TabsPrimitive.Root;
4263
4170
 
4264
4171
  // src/components/ui/navigation-menu.tsx
4265
4172
  var React25 = __toESM(require("react"));
@@ -4347,7 +4254,7 @@ var navigationMenuSizeMap = {
4347
4254
  groupMargin: "mt-6 first:mt-0"
4348
4255
  }
4349
4256
  };
4350
- var NavigationMenuRoot = React25.forwardRef(
4257
+ var NavigationMenu = React25.forwardRef(
4351
4258
  ({
4352
4259
  className,
4353
4260
  orientation = "horizontal",
@@ -4404,7 +4311,7 @@ var NavigationMenuRoot = React25.forwardRef(
4404
4311
  ));
4405
4312
  }
4406
4313
  );
4407
- NavigationMenuRoot.displayName = "NavigationMenu";
4314
+ NavigationMenu.displayName = "NavigationMenu";
4408
4315
  var NavigationMenuList = React25.forwardRef(
4409
4316
  ({ className, children, ...props }, ref) => {
4410
4317
  const { orientation } = useNavigationMenuContext();
@@ -4724,16 +4631,6 @@ var NavigationMenuViewport = React25.forwardRef(
4724
4631
  }
4725
4632
  );
4726
4633
  NavigationMenuViewport.displayName = "NavigationMenuViewport";
4727
- var NavigationMenu = Object.assign(NavigationMenuRoot, {
4728
- List: NavigationMenuList,
4729
- Item: NavigationMenuItem,
4730
- Trigger: NavigationMenuTrigger,
4731
- Content: NavigationMenuContent,
4732
- Link: NavigationMenuLink,
4733
- Group: NavigationMenuGroup,
4734
- Indicator: NavigationMenuIndicator,
4735
- Viewport: NavigationMenuViewport
4736
- });
4737
4634
 
4738
4635
  // src/components/ui/pagination.tsx
4739
4636
  var React26 = __toESM(require("react"));
@@ -4905,7 +4802,7 @@ function getItemClasses(variant, color, isActive, disabled) {
4905
4802
  return "border border-transparent text-text-muted hover:bg-background-muted hover:text-foreground";
4906
4803
  }
4907
4804
  }
4908
- var PaginationRoot = React26.forwardRef(
4805
+ var Pagination = React26.forwardRef(
4909
4806
  ({
4910
4807
  className,
4911
4808
  total = 1,
@@ -4962,7 +4859,7 @@ var PaginationRoot = React26.forwardRef(
4962
4859
  ));
4963
4860
  }
4964
4861
  );
4965
- PaginationRoot.displayName = "Pagination";
4862
+ Pagination.displayName = "Pagination";
4966
4863
  var PaginationContent = React26.forwardRef(
4967
4864
  ({ className, ...props }, ref) => {
4968
4865
  const { size } = usePaginationContext();
@@ -5156,17 +5053,6 @@ var PaginationItems = React26.forwardRef(
5156
5053
  }
5157
5054
  );
5158
5055
  PaginationItems.displayName = "PaginationItems";
5159
- var Pagination = Object.assign(PaginationRoot, {
5160
- Content: PaginationContent,
5161
- Item: PaginationItem,
5162
- Link: PaginationLink,
5163
- Previous: PaginationPrevious,
5164
- Next: PaginationNext,
5165
- First: PaginationFirst,
5166
- Last: PaginationLast,
5167
- Ellipsis: PaginationEllipsis,
5168
- Items: PaginationItems
5169
- });
5170
5056
 
5171
5057
  // src/components/ui/modal.tsx
5172
5058
  var React27 = __toESM(require("react"));
@@ -5188,7 +5074,7 @@ var DefaultCloseIcon = ({ className }) => /* @__PURE__ */ React27.createElement(
5188
5074
  var ModalStyleContext = React27.createContext({
5189
5075
  scrollBehavior: "outside"
5190
5076
  });
5191
- function ModalRoot(props) {
5077
+ function Modal(props) {
5192
5078
  return /* @__PURE__ */ React27.createElement(DialogPrimitive.Root, { ...props });
5193
5079
  }
5194
5080
  var ModalTrigger = DialogPrimitive.Trigger;
@@ -5341,7 +5227,7 @@ var ModalFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
5341
5227
  }
5342
5228
  ));
5343
5229
  ModalFooter.displayName = "ModalFooter";
5344
- var AlertModalRoot = AlertDialogPrimitive.Root;
5230
+ var AlertModal = AlertDialogPrimitive.Root;
5345
5231
  var AlertModalTrigger = AlertDialogPrimitive.Trigger;
5346
5232
  var AlertModalPortal = AlertDialogPrimitive.Portal;
5347
5233
  var AlertModalOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
@@ -5452,31 +5338,6 @@ var AlertModalCancel = React27.forwardRef(({ className, ...props }, ref) => /* @
5452
5338
  }
5453
5339
  ));
5454
5340
  AlertModalCancel.displayName = "AlertModalCancel";
5455
- var Modal = Object.assign(ModalRoot, {
5456
- Trigger: ModalTrigger,
5457
- Portal: ModalPortal,
5458
- Overlay: ModalOverlay,
5459
- Content: ModalContent,
5460
- Header: ModalHeader,
5461
- Title: ModalTitle,
5462
- Description: ModalDescription,
5463
- Body: ModalBody,
5464
- Footer: ModalFooter,
5465
- Close: ModalClose
5466
- });
5467
- var AlertModal = Object.assign(AlertModalRoot, {
5468
- Trigger: AlertModalTrigger,
5469
- Portal: AlertModalPortal,
5470
- Overlay: AlertModalOverlay,
5471
- Content: AlertModalContent,
5472
- Header: AlertModalHeader,
5473
- Title: AlertModalTitle,
5474
- Description: AlertModalDescription,
5475
- Body: AlertModalBody,
5476
- Footer: AlertModalFooter,
5477
- Action: AlertModalAction,
5478
- Cancel: AlertModalCancel
5479
- });
5480
5341
 
5481
5342
  // src/components/ui/drawer.tsx
5482
5343
  var React28 = __toESM(require("react"));
@@ -5524,7 +5385,7 @@ var drawerSizeVertical = (0, import_class_variance_authority23.cva)("", {
5524
5385
  },
5525
5386
  defaultVariants: { size: "md" }
5526
5387
  });
5527
- function DrawerRoot(props) {
5388
+ function Drawer(props) {
5528
5389
  return /* @__PURE__ */ React28.createElement(DialogPrimitive2.Root, { ...props });
5529
5390
  }
5530
5391
  var DrawerTrigger = DialogPrimitive2.Trigger;
@@ -5626,18 +5487,6 @@ var DrawerFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PU
5626
5487
  }
5627
5488
  ));
5628
5489
  DrawerFooter.displayName = "DrawerFooter";
5629
- var Drawer = Object.assign(DrawerRoot, {
5630
- Trigger: DrawerTrigger,
5631
- Portal: DrawerPortal,
5632
- Overlay: DrawerOverlay,
5633
- Content: DrawerContent,
5634
- Header: DrawerHeader,
5635
- Title: DrawerTitle,
5636
- Description: DrawerDescription,
5637
- Body: DrawerBody,
5638
- Footer: DrawerFooter,
5639
- Close: DrawerClose
5640
- });
5641
5490
 
5642
5491
  // src/components/ui/tooltip.tsx
5643
5492
  var React29 = __toESM(require("react"));
@@ -5673,7 +5522,7 @@ var ARROW_FILL = {
5673
5522
  inverted: "fill-background-paper drop-shadow-sm"
5674
5523
  };
5675
5524
  var TooltipProvider = TooltipPrimitive.Provider;
5676
- function TooltipRoot({ delayDuration = 200, ...props }) {
5525
+ function Tooltip({ delayDuration = 200, ...props }) {
5677
5526
  return /* @__PURE__ */ React29.createElement(TooltipPrimitive.Root, { delayDuration, ...props });
5678
5527
  }
5679
5528
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -5716,13 +5565,6 @@ var TooltipArrow = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
5716
5565
  }
5717
5566
  ));
5718
5567
  TooltipArrow.displayName = "TooltipArrow";
5719
- var Tooltip = Object.assign(TooltipRoot, {
5720
- Trigger: TooltipTrigger,
5721
- Content: TooltipContent,
5722
- Arrow: TooltipArrow,
5723
- Portal: TooltipPortal,
5724
- Provider: TooltipProvider
5725
- });
5726
5568
 
5727
5569
  // src/components/ui/popover.tsx
5728
5570
  var React30 = __toESM(require("react"));
@@ -5773,7 +5615,7 @@ var CSS_ARROW_CLASSES = {
5773
5615
  left: "-right-[5px] top-1/2 -translate-y-1/2 border-t border-r border-border"
5774
5616
  };
5775
5617
  var ARROW_ELEVATED = "fill-background-paper drop-shadow-sm";
5776
- function PopoverRoot(props) {
5618
+ function Popover(props) {
5777
5619
  return /* @__PURE__ */ React30.createElement(PopoverPrimitive.Root, { ...props });
5778
5620
  }
5779
5621
  var PopoverTrigger = PopoverPrimitive.Trigger;
@@ -5836,14 +5678,6 @@ var PopoverArrow = React30.forwardRef(({ className, ...props }, ref) => /* @__PU
5836
5678
  }
5837
5679
  ));
5838
5680
  PopoverArrow.displayName = "PopoverArrow";
5839
- var Popover = Object.assign(PopoverRoot, {
5840
- Trigger: PopoverTrigger,
5841
- Content: PopoverContent,
5842
- Arrow: PopoverArrow,
5843
- Close: PopoverClose,
5844
- Anchor: PopoverAnchor,
5845
- Portal: PopoverPortal
5846
- });
5847
5681
 
5848
5682
  // src/components/ui/alert.tsx
5849
5683
  var React31 = __toESM(require("react"));
@@ -5939,7 +5773,7 @@ var AlertContext = React31.createContext({
5939
5773
  function useAlertContext() {
5940
5774
  return React31.useContext(AlertContext);
5941
5775
  }
5942
- var AlertRoot = React31.forwardRef(
5776
+ var Alert = React31.forwardRef(
5943
5777
  ({
5944
5778
  className,
5945
5779
  variant = "default",
@@ -5988,7 +5822,7 @@ var AlertRoot = React31.forwardRef(
5988
5822
  ));
5989
5823
  }
5990
5824
  );
5991
- AlertRoot.displayName = "AlertRoot";
5825
+ Alert.displayName = "Alert";
5992
5826
  var AlertTitle = React31.forwardRef(
5993
5827
  ({ className, ...props }, ref) => {
5994
5828
  const { size } = useAlertContext();
@@ -6022,10 +5856,6 @@ var AlertDescription = React31.forwardRef(
6022
5856
  }
6023
5857
  );
6024
5858
  AlertDescription.displayName = "AlertDescription";
6025
- var Alert = Object.assign(AlertRoot, {
6026
- Title: AlertTitle,
6027
- Description: AlertDescription
6028
- });
6029
5859
 
6030
5860
  // src/components/ui/toast.tsx
6031
5861
  var React32 = __toESM(require("react"));
@@ -7286,7 +7116,7 @@ var iconSizeMap = {
7286
7116
  lg: "icon-sm"
7287
7117
  // 16px
7288
7118
  };
7289
- var QuickReplyRoot = React37.forwardRef(
7119
+ var QuickReply = React37.forwardRef(
7290
7120
  ({
7291
7121
  className,
7292
7122
  layout = "scroll",
@@ -7315,7 +7145,7 @@ var QuickReplyRoot = React37.forwardRef(
7315
7145
  ));
7316
7146
  }
7317
7147
  );
7318
- QuickReplyRoot.displayName = "QuickReply";
7148
+ QuickReply.displayName = "QuickReply";
7319
7149
  var QuickReplyItem = React37.forwardRef(
7320
7150
  ({ className, icon, asChild = false, children, ...props }, ref) => {
7321
7151
  const { size, variant, color, radius } = React37.useContext(QuickReplyContext);
@@ -7345,10 +7175,7 @@ var QuickReplyItem = React37.forwardRef(
7345
7175
  );
7346
7176
  }
7347
7177
  );
7348
- QuickReplyItem.displayName = "QuickReply.Item";
7349
- var QuickReply = Object.assign(QuickReplyRoot, {
7350
- Item: QuickReplyItem
7351
- });
7178
+ QuickReplyItem.displayName = "QuickReplyItem";
7352
7179
 
7353
7180
  // src/components/ui/chat-input.tsx
7354
7181
  var React38 = __toESM(require("react"));
@@ -7464,7 +7291,7 @@ var ChatInputContext = React38.createContext({
7464
7291
  _handleSubmit: () => {
7465
7292
  }
7466
7293
  });
7467
- var ChatInputRoot = React38.forwardRef(
7294
+ var ChatInput = React38.forwardRef(
7468
7295
  ({
7469
7296
  className,
7470
7297
  variant = "outline",
@@ -7539,7 +7366,7 @@ var ChatInputRoot = React38.forwardRef(
7539
7366
  ));
7540
7367
  }
7541
7368
  );
7542
- ChatInputRoot.displayName = "ChatInput";
7369
+ ChatInput.displayName = "ChatInput";
7543
7370
  var ChatInputField = React38.forwardRef(
7544
7371
  ({
7545
7372
  className,
@@ -7624,7 +7451,7 @@ var ChatInputField = React38.forwardRef(
7624
7451
  ));
7625
7452
  }
7626
7453
  );
7627
- ChatInputField.displayName = "ChatInput.Field";
7454
+ ChatInputField.displayName = "ChatInputField";
7628
7455
  var ChatInputSubmit = React38.forwardRef(
7629
7456
  ({
7630
7457
  className,
@@ -7692,7 +7519,7 @@ var ChatInputSubmit = React38.forwardRef(
7692
7519
  ));
7693
7520
  }
7694
7521
  );
7695
- ChatInputSubmit.displayName = "ChatInput.Submit";
7522
+ ChatInputSubmit.displayName = "ChatInputSubmit";
7696
7523
  function SendIcon() {
7697
7524
  return /* @__PURE__ */ React38.createElement(
7698
7525
  "svg",
@@ -7712,10 +7539,6 @@ function SendIcon() {
7712
7539
  function StopIcon() {
7713
7540
  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" }));
7714
7541
  }
7715
- var ChatInput = Object.assign(ChatInputRoot, {
7716
- Field: ChatInputField,
7717
- Submit: ChatInputSubmit
7718
- });
7719
7542
 
7720
7543
  // src/components/ui/chat-message.tsx
7721
7544
  var React39 = __toESM(require("react"));
@@ -7810,7 +7633,7 @@ var typingMinWidthMap = {
7810
7633
  default: "min-w-12",
7811
7634
  lg: "min-w-16"
7812
7635
  };
7813
- var ChatMessageRoot = React39.forwardRef(
7636
+ var ChatMessage = React39.forwardRef(
7814
7637
  ({
7815
7638
  className,
7816
7639
  role = "assistant",
@@ -7846,7 +7669,7 @@ var ChatMessageRoot = React39.forwardRef(
7846
7669
  ));
7847
7670
  }
7848
7671
  );
7849
- ChatMessageRoot.displayName = "ChatMessage";
7672
+ ChatMessage.displayName = "ChatMessage";
7850
7673
  function DefaultAiIcon() {
7851
7674
  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" }));
7852
7675
  }
@@ -7862,7 +7685,7 @@ var ChatMessageAvatar = React39.forwardRef(
7862
7685
  /* @__PURE__ */ React39.createElement(AvatarFallback, { className: cn("font-semibold", chatAvatarFontMap[avatarSize]) }, icon ?? (initials || /* @__PURE__ */ React39.createElement(DefaultAiIcon, null)))
7863
7686
  )
7864
7687
  );
7865
- ChatMessageAvatar.displayName = "ChatMessage.Avatar";
7688
+ ChatMessageAvatar.displayName = "ChatMessageAvatar";
7866
7689
  var ChatMessageContent = React39.forwardRef(
7867
7690
  ({ className, children, ...props }, ref) => {
7868
7691
  const { role, variant, color, size, radius, tail, typing, actions } = React39.useContext(ChatMessageContext);
@@ -7905,7 +7728,7 @@ var ChatMessageContent = React39.forwardRef(
7905
7728
  ) }, actions));
7906
7729
  }
7907
7730
  );
7908
- ChatMessageContent.displayName = "ChatMessage.Content";
7731
+ ChatMessageContent.displayName = "ChatMessageContent";
7909
7732
  var ChatMessageFooter = React39.forwardRef(
7910
7733
  ({
7911
7734
  className,
@@ -7947,12 +7770,7 @@ var ChatMessageFooter = React39.forwardRef(
7947
7770
  );
7948
7771
  }
7949
7772
  );
7950
- ChatMessageFooter.displayName = "ChatMessage.Footer";
7951
- var ChatMessage = Object.assign(ChatMessageRoot, {
7952
- Avatar: ChatMessageAvatar,
7953
- Content: ChatMessageContent,
7954
- Footer: ChatMessageFooter
7955
- });
7773
+ ChatMessageFooter.displayName = "ChatMessageFooter";
7956
7774
  // Annotate the CommonJS export names for ESM import in node:
7957
7775
  0 && (module.exports = {
7958
7776
  Accordion,
@@ -7973,7 +7791,6 @@ var ChatMessage = Object.assign(ChatMessageRoot, {
7973
7791
  AlertModalPortal,
7974
7792
  AlertModalTitle,
7975
7793
  AlertModalTrigger,
7976
- AlertRoot,
7977
7794
  AlertTitle,
7978
7795
  Avatar,
7979
7796
  AvatarFallback,
@@ -7999,13 +7816,11 @@ var ChatMessage = Object.assign(ChatMessageRoot, {
7999
7816
  CardTitle,
8000
7817
  ChatInput,
8001
7818
  ChatInputField,
8002
- ChatInputRoot,
8003
7819
  ChatInputSubmit,
8004
7820
  ChatMessage,
8005
7821
  ChatMessageAvatar,
8006
7822
  ChatMessageContent,
8007
7823
  ChatMessageFooter,
8008
- ChatMessageRoot,
8009
7824
  Checkbox,
8010
7825
  Divider,
8011
7826
  Drawer,
@@ -8017,7 +7832,6 @@ var ChatMessage = Object.assign(ChatMessageRoot, {
8017
7832
  DrawerHeader,
8018
7833
  DrawerOverlay,
8019
7834
  DrawerPortal,
8020
- DrawerRoot,
8021
7835
  DrawerTitle,
8022
7836
  DrawerTrigger,
8023
7837
  DropdownMenu,
@@ -8083,12 +7897,10 @@ var ChatMessage = Object.assign(ChatMessageRoot, {
8083
7897
  PopoverClose,
8084
7898
  PopoverContent,
8085
7899
  PopoverPortal,
8086
- PopoverRoot,
8087
7900
  PopoverTrigger,
8088
7901
  Progress,
8089
7902
  QuickReply,
8090
7903
  QuickReplyItem,
8091
- QuickReplyRoot,
8092
7904
  RadioGroup,
8093
7905
  RadioGroupItem,
8094
7906
  Segmented,
@@ -8127,7 +7939,6 @@ var ChatMessage = Object.assign(ChatMessageRoot, {
8127
7939
  TooltipContent,
8128
7940
  TooltipPortal,
8129
7941
  TooltipProvider,
8130
- TooltipRoot,
8131
7942
  TooltipTrigger,
8132
7943
  TypingIndicator,
8133
7944
  accordionTriggerVariants,