orbital-ds 0.1.0 → 0.2.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.
Files changed (101) hide show
  1. package/contract.json +38 -0
  2. package/dist/styles.css +98 -18
  3. package/dist/themes/qratia.css +13 -13
  4. package/dist/themes/zyro.css +189 -0
  5. package/dist/ui/accordion.d.ts +9 -0
  6. package/dist/ui/accordion.js +79 -0
  7. package/dist/ui/alert-dialog.d.ts +23 -0
  8. package/dist/ui/alert-dialog.js +173 -0
  9. package/dist/ui/alert.d.ts +13 -0
  10. package/dist/ui/alert.js +77 -0
  11. package/dist/ui/aspect-ratio.d.ts +7 -0
  12. package/dist/ui/aspect-ratio.js +22 -0
  13. package/dist/ui/attachment.d.ts +26 -0
  14. package/dist/ui/attachment.js +197 -0
  15. package/dist/ui/avatar.js +1 -1
  16. package/dist/ui/badge.d.ts +1 -1
  17. package/dist/ui/badge.js +1 -1
  18. package/dist/ui/bubble.d.ts +19 -0
  19. package/dist/ui/bubble.js +115 -0
  20. package/dist/ui/button-group.d.ts +15 -0
  21. package/dist/ui/button-group.js +82 -0
  22. package/dist/ui/button.d.ts +5 -3
  23. package/dist/ui/button.js +9 -6
  24. package/dist/ui/calendar.d.ts +15 -0
  25. package/dist/ui/calendar.js +190 -0
  26. package/dist/ui/card.js +4 -4
  27. package/dist/ui/carousel.d.ts +33 -0
  28. package/dist/ui/carousel.js +199 -0
  29. package/dist/ui/checkbox.js +1 -1
  30. package/dist/ui/combobox.d.ts +26 -0
  31. package/dist/ui/combobox.js +281 -0
  32. package/dist/ui/command.d.ts +22 -0
  33. package/dist/ui/command.js +183 -0
  34. package/dist/ui/context-menu.d.ts +31 -0
  35. package/dist/ui/context-menu.js +242 -0
  36. package/dist/ui/dialog.js +2 -2
  37. package/dist/ui/direction.d.ts +1 -0
  38. package/dist/ui/direction.js +8 -0
  39. package/dist/ui/drawer.d.ts +18 -0
  40. package/dist/ui/drawer.js +208 -0
  41. package/dist/ui/dropdown-menu.d.ts +1 -1
  42. package/dist/ui/dropdown-menu.js +13 -9
  43. package/dist/ui/empty.d.ts +15 -0
  44. package/dist/ui/empty.js +102 -0
  45. package/dist/ui/field.d.ts +28 -0
  46. package/dist/ui/field.js +217 -0
  47. package/dist/ui/hover-card.d.ts +8 -0
  48. package/dist/ui/hover-card.js +45 -0
  49. package/dist/ui/input-group.d.ts +22 -0
  50. package/dist/ui/input-group.js +145 -0
  51. package/dist/ui/input-otp.d.ts +13 -0
  52. package/dist/ui/input-otp.js +82 -0
  53. package/dist/ui/input.js +1 -1
  54. package/dist/ui/item.d.ts +26 -0
  55. package/dist/ui/item.js +195 -0
  56. package/dist/ui/kbd.d.ts +6 -0
  57. package/dist/ui/kbd.js +29 -0
  58. package/dist/ui/marker.d.ts +13 -0
  59. package/dist/ui/marker.js +71 -0
  60. package/dist/ui/menubar.d.ts +31 -0
  61. package/dist/ui/menubar.js +259 -0
  62. package/dist/ui/message-scroller.d.ts +16 -0
  63. package/dist/ui/message-scroller.js +120 -0
  64. package/dist/ui/message.d.ts +12 -0
  65. package/dist/ui/message.js +90 -0
  66. package/dist/ui/native-select.d.ts +10 -0
  67. package/dist/ui/native-select.js +63 -0
  68. package/dist/ui/navigation-menu.d.ts +15 -0
  69. package/dist/ui/navigation-menu.js +162 -0
  70. package/dist/ui/pagination.d.ts +22 -0
  71. package/dist/ui/pagination.js +128 -0
  72. package/dist/ui/popover.js +2 -2
  73. package/dist/ui/questionnaire.d.ts +24 -0
  74. package/dist/ui/questionnaire.js +331 -0
  75. package/dist/ui/radio-group.d.ts +8 -0
  76. package/dist/ui/radio-group.js +39 -0
  77. package/dist/ui/resizable.d.ts +10 -0
  78. package/dist/ui/resizable.js +46 -0
  79. package/dist/ui/scroll-area.js +1 -1
  80. package/dist/ui/select.js +5 -5
  81. package/dist/ui/sheet.js +4 -4
  82. package/dist/ui/sidebar.js +4 -4
  83. package/dist/ui/slider.d.ts +6 -0
  84. package/dist/ui/slider.js +53 -0
  85. package/dist/ui/spinner.d.ts +5 -0
  86. package/dist/ui/spinner.js +9 -0
  87. package/dist/ui/switch.d.ts +8 -0
  88. package/dist/ui/switch.js +32 -0
  89. package/dist/ui/table.js +2 -2
  90. package/dist/ui/tabs.js +1 -1
  91. package/dist/ui/textarea.js +1 -1
  92. package/dist/ui/toast.d.ts +19 -0
  93. package/dist/ui/toast.js +193 -0
  94. package/dist/ui/toggle-group.d.ts +14 -0
  95. package/dist/ui/toggle-group.js +77 -0
  96. package/dist/ui/toggle.d.ts +12 -0
  97. package/dist/ui/toggle.js +43 -0
  98. package/dist/ui/tooltip.js +3 -3
  99. package/docs/CONTRACT.md +113 -0
  100. package/package.json +50 -12
  101. package/scripts/doctor.mjs +142 -0
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import { Menu } from '@base-ui/react/menu';
3
+ import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
4
+ import { DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenu, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './dropdown-menu.js';
5
+
6
+ declare function Menubar({ className, ...props }: Menubar$1.Props): React.JSX.Element;
7
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>): React.JSX.Element;
8
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof DropdownMenuGroup>): React.JSX.Element;
9
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPortal>): React.JSX.Element;
10
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof DropdownMenuTrigger>): React.JSX.Element;
11
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
12
+ declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuItem>): React.JSX.Element;
13
+ declare function MenubarCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & {
14
+ inset?: boolean;
15
+ }): React.JSX.Element;
16
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuRadioGroup>): React.JSX.Element;
17
+ declare function MenubarRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & {
18
+ inset?: boolean;
19
+ }): React.JSX.Element;
20
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuLabel> & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuSeparator>): React.JSX.Element;
24
+ declare function MenubarShortcut({ className, ...props }: React.ComponentProps<typeof DropdownMenuShortcut>): React.JSX.Element;
25
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof DropdownMenuSub>): React.JSX.Element;
26
+ declare function MenubarSubTrigger({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuSubTrigger> & {
27
+ inset?: boolean;
28
+ }): React.JSX.Element;
29
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuSubContent>): React.JSX.Element;
30
+
31
+ export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
@@ -0,0 +1,259 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Menu as MenuPrimitive } from "@base-ui/react/menu";
4
+ import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
5
+ import { cn } from "../lib/utils";
6
+ import {
7
+ DropdownMenu,
8
+ DropdownMenuContent,
9
+ DropdownMenuGroup,
10
+ DropdownMenuItem,
11
+ DropdownMenuLabel,
12
+ DropdownMenuPortal,
13
+ DropdownMenuRadioGroup,
14
+ DropdownMenuSeparator,
15
+ DropdownMenuShortcut,
16
+ DropdownMenuSub,
17
+ DropdownMenuSubContent,
18
+ DropdownMenuSubTrigger,
19
+ DropdownMenuTrigger
20
+ } from "./dropdown-menu";
21
+ import { CheckIcon } from "lucide-react";
22
+ function Menubar({ className, ...props }) {
23
+ return /* @__PURE__ */ jsx(
24
+ MenubarPrimitive,
25
+ {
26
+ "data-slot": "menubar",
27
+ className: cn("flex h-9 items-center rounded-control border p-1", className),
28
+ ...props
29
+ }
30
+ );
31
+ }
32
+ function MenubarMenu({ ...props }) {
33
+ return /* @__PURE__ */ jsx(DropdownMenu, { "data-slot": "menubar-menu", ...props });
34
+ }
35
+ function MenubarGroup({
36
+ ...props
37
+ }) {
38
+ return /* @__PURE__ */ jsx(DropdownMenuGroup, { "data-slot": "menubar-group", ...props });
39
+ }
40
+ function MenubarPortal({
41
+ ...props
42
+ }) {
43
+ return /* @__PURE__ */ jsx(DropdownMenuPortal, { "data-slot": "menubar-portal", ...props });
44
+ }
45
+ function MenubarTrigger({
46
+ className,
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */ jsx(
50
+ DropdownMenuTrigger,
51
+ {
52
+ "data-slot": "menubar-trigger",
53
+ className: cn(
54
+ "flex items-center rounded-xl px-2 py-0.75 text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted",
55
+ className
56
+ ),
57
+ ...props
58
+ }
59
+ );
60
+ }
61
+ function MenubarContent({
62
+ className,
63
+ align = "start",
64
+ alignOffset = -4,
65
+ sideOffset = 8,
66
+ ...props
67
+ }) {
68
+ return /* @__PURE__ */ jsx(
69
+ DropdownMenuContent,
70
+ {
71
+ "data-slot": "menubar-content",
72
+ align,
73
+ alignOffset,
74
+ sideOffset,
75
+ className: cn("min-w-48 rounded-2xl bg-popover p-1 text-popover-foreground shadow-popover ring-1 ring-foreground/5 duration-(--ds-motion-fast) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", className),
76
+ ...props
77
+ }
78
+ );
79
+ }
80
+ function MenubarItem({
81
+ className,
82
+ inset,
83
+ variant = "default",
84
+ ...props
85
+ }) {
86
+ return /* @__PURE__ */ jsx(
87
+ DropdownMenuItem,
88
+ {
89
+ "data-slot": "menubar-item",
90
+ "data-inset": inset,
91
+ "data-variant": variant,
92
+ className: cn(
93
+ "group/menubar-item gap-2.5 rounded-xl px-3 py-2 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!",
94
+ className
95
+ ),
96
+ ...props
97
+ }
98
+ );
99
+ }
100
+ function MenubarCheckboxItem({
101
+ className,
102
+ children,
103
+ checked,
104
+ inset,
105
+ ...props
106
+ }) {
107
+ return /* @__PURE__ */ jsxs(
108
+ MenuPrimitive.CheckboxItem,
109
+ {
110
+ "data-slot": "menubar-checkbox-item",
111
+ "data-inset": inset,
112
+ className: cn(
113
+ "relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-3 pl-9.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
114
+ className
115
+ ),
116
+ checked,
117
+ ...props,
118
+ children: [
119
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-3 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4", children: /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(
120
+ CheckIcon,
121
+ {}
122
+ ) }) }),
123
+ children
124
+ ]
125
+ }
126
+ );
127
+ }
128
+ function MenubarRadioGroup({
129
+ ...props
130
+ }) {
131
+ return /* @__PURE__ */ jsx(DropdownMenuRadioGroup, { "data-slot": "menubar-radio-group", ...props });
132
+ }
133
+ function MenubarRadioItem({
134
+ className,
135
+ children,
136
+ inset,
137
+ ...props
138
+ }) {
139
+ return /* @__PURE__ */ jsxs(
140
+ MenuPrimitive.RadioItem,
141
+ {
142
+ "data-slot": "menubar-radio-item",
143
+ "data-inset": inset,
144
+ className: cn(
145
+ "relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-3 pl-9.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
146
+ className
147
+ ),
148
+ ...props,
149
+ children: [
150
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-3 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4", children: /* @__PURE__ */ jsx(MenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx(
151
+ CheckIcon,
152
+ {}
153
+ ) }) }),
154
+ children
155
+ ]
156
+ }
157
+ );
158
+ }
159
+ function MenubarLabel({
160
+ className,
161
+ inset,
162
+ ...props
163
+ }) {
164
+ return /* @__PURE__ */ jsx(
165
+ DropdownMenuLabel,
166
+ {
167
+ "data-slot": "menubar-label",
168
+ "data-inset": inset,
169
+ className: cn(
170
+ "px-3.5 py-2.5 text-xs text-muted-foreground data-inset:pl-9.5",
171
+ className
172
+ ),
173
+ ...props
174
+ }
175
+ );
176
+ }
177
+ function MenubarSeparator({
178
+ className,
179
+ ...props
180
+ }) {
181
+ return /* @__PURE__ */ jsx(
182
+ DropdownMenuSeparator,
183
+ {
184
+ "data-slot": "menubar-separator",
185
+ className: cn("-mx-1 my-1 h-px bg-border/50", className),
186
+ ...props
187
+ }
188
+ );
189
+ }
190
+ function MenubarShortcut({
191
+ className,
192
+ ...props
193
+ }) {
194
+ return /* @__PURE__ */ jsx(
195
+ DropdownMenuShortcut,
196
+ {
197
+ "data-slot": "menubar-shortcut",
198
+ className: cn(
199
+ "ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground",
200
+ className
201
+ ),
202
+ ...props
203
+ }
204
+ );
205
+ }
206
+ function MenubarSub({
207
+ ...props
208
+ }) {
209
+ return /* @__PURE__ */ jsx(DropdownMenuSub, { "data-slot": "menubar-sub", ...props });
210
+ }
211
+ function MenubarSubTrigger({
212
+ className,
213
+ inset,
214
+ ...props
215
+ }) {
216
+ return /* @__PURE__ */ jsx(
217
+ DropdownMenuSubTrigger,
218
+ {
219
+ "data-slot": "menubar-sub-trigger",
220
+ "data-inset": inset,
221
+ className: cn(
222
+ "gap-2 rounded-xl px-3 py-2 text-sm focus:bg-accent focus:text-accent-foreground data-inset:pl-9.5 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4",
223
+ className
224
+ ),
225
+ ...props
226
+ }
227
+ );
228
+ }
229
+ function MenubarSubContent({
230
+ className,
231
+ ...props
232
+ }) {
233
+ return /* @__PURE__ */ jsx(
234
+ DropdownMenuSubContent,
235
+ {
236
+ "data-slot": "menubar-sub-content",
237
+ className: cn("min-w-32 rounded-2xl bg-popover p-1 text-popover-foreground shadow-popover ring-1 ring-foreground/5 duration-(--ds-motion-fast) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
238
+ ...props
239
+ }
240
+ );
241
+ }
242
+ export {
243
+ Menubar,
244
+ MenubarCheckboxItem,
245
+ MenubarContent,
246
+ MenubarGroup,
247
+ MenubarItem,
248
+ MenubarLabel,
249
+ MenubarMenu,
250
+ MenubarPortal,
251
+ MenubarRadioGroup,
252
+ MenubarRadioItem,
253
+ MenubarSeparator,
254
+ MenubarShortcut,
255
+ MenubarSub,
256
+ MenubarSubContent,
257
+ MenubarSubTrigger,
258
+ MenubarTrigger
259
+ };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
3
+ export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
4
+ import { Button } from './button.js';
5
+ import 'class-variance-authority/types';
6
+ import '@base-ui/react/use-render';
7
+ import 'class-variance-authority';
8
+
9
+ declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScroller$1.Provider>): React.JSX.Element;
10
+ declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Root>): React.JSX.Element;
11
+ declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Viewport>): React.JSX.Element;
12
+ declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Content>): React.JSX.Element;
13
+ declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScroller$1.Item>): React.JSX.Element;
14
+ declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScroller$1.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
15
+
16
+ export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport };
@@ -0,0 +1,120 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ MessageScroller as MessageScrollerPrimitive,
4
+ useMessageScroller,
5
+ useMessageScrollerScrollable,
6
+ useMessageScrollerVisibility
7
+ } from "@shadcn/react/message-scroller";
8
+ import { cn } from "../lib/utils";
9
+ import { Button } from "./button";
10
+ import { ArrowDownIcon } from "lucide-react";
11
+ function MessageScrollerProvider(props) {
12
+ return /* @__PURE__ */ jsx(MessageScrollerPrimitive.Provider, { ...props });
13
+ }
14
+ function MessageScroller({
15
+ className,
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */ jsx(
19
+ MessageScrollerPrimitive.Root,
20
+ {
21
+ "data-slot": "message-scroller",
22
+ className: cn(
23
+ "group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
24
+ className
25
+ ),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function MessageScrollerViewport({
31
+ className,
32
+ ...props
33
+ }) {
34
+ return /* @__PURE__ */ jsx(
35
+ MessageScrollerPrimitive.Viewport,
36
+ {
37
+ "data-slot": "message-scroller-viewport",
38
+ className: cn(
39
+ "size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible",
40
+ className
41
+ ),
42
+ ...props
43
+ }
44
+ );
45
+ }
46
+ function MessageScrollerContent({
47
+ className,
48
+ ...props
49
+ }) {
50
+ return /* @__PURE__ */ jsx(
51
+ MessageScrollerPrimitive.Content,
52
+ {
53
+ "data-slot": "message-scroller-content",
54
+ className: cn("flex h-max min-h-full flex-col gap-8", className),
55
+ ...props
56
+ }
57
+ );
58
+ }
59
+ function MessageScrollerItem({
60
+ className,
61
+ scrollAnchor = false,
62
+ ...props
63
+ }) {
64
+ return /* @__PURE__ */ jsx(
65
+ MessageScrollerPrimitive.Item,
66
+ {
67
+ "data-slot": "message-scroller-item",
68
+ scrollAnchor,
69
+ className: cn(
70
+ "min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
71
+ className
72
+ ),
73
+ ...props
74
+ }
75
+ );
76
+ }
77
+ function MessageScrollerButton({
78
+ direction = "end",
79
+ className,
80
+ children,
81
+ render,
82
+ variant = "secondary",
83
+ size = "icon-sm",
84
+ ...props
85
+ }) {
86
+ return /* @__PURE__ */ jsx(
87
+ MessageScrollerPrimitive.Button,
88
+ {
89
+ "data-slot": "message-scroller-button",
90
+ "data-direction": direction,
91
+ "data-variant": variant,
92
+ "data-size": size,
93
+ direction,
94
+ className: cn(
95
+ "absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-(--ds-motion-base) hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-(--ds-motion-slow) data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180",
96
+ className
97
+ ),
98
+ render: render ?? /* @__PURE__ */ jsx(Button, { variant, size }),
99
+ ...props,
100
+ children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
101
+ /* @__PURE__ */ jsx(
102
+ ArrowDownIcon,
103
+ {}
104
+ ),
105
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
106
+ ] })
107
+ }
108
+ );
109
+ }
110
+ export {
111
+ MessageScroller,
112
+ MessageScrollerButton,
113
+ MessageScrollerContent,
114
+ MessageScrollerItem,
115
+ MessageScrollerProvider,
116
+ MessageScrollerViewport,
117
+ useMessageScroller,
118
+ useMessageScrollerScrollable,
119
+ useMessageScrollerVisibility
120
+ };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+
3
+ declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
4
+ declare function Message({ className, align, ...props }: React.ComponentProps<"div"> & {
5
+ align?: "start" | "end";
6
+ }): React.JSX.Element;
7
+ declare function MessageAvatar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+
12
+ export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
@@ -0,0 +1,90 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ function MessageGroup({ className, ...props }) {
4
+ return /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ "data-slot": "message-group",
8
+ className: cn("flex min-w-0 flex-col gap-2", className),
9
+ ...props
10
+ }
11
+ );
12
+ }
13
+ function Message({
14
+ className,
15
+ align = "start",
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */ jsx(
19
+ "div",
20
+ {
21
+ "data-slot": "message",
22
+ "data-align": align,
23
+ className: cn(
24
+ "group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
25
+ className
26
+ ),
27
+ ...props
28
+ }
29
+ );
30
+ }
31
+ function MessageAvatar({ className, ...props }) {
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ "data-slot": "message-avatar",
36
+ className: cn(
37
+ "flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8",
38
+ className
39
+ ),
40
+ ...props
41
+ }
42
+ );
43
+ }
44
+ function MessageContent({ className, ...props }) {
45
+ return /* @__PURE__ */ jsx(
46
+ "div",
47
+ {
48
+ "data-slot": "message-content",
49
+ className: cn(
50
+ "flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
51
+ className
52
+ ),
53
+ ...props
54
+ }
55
+ );
56
+ }
57
+ function MessageHeader({ className, ...props }) {
58
+ return /* @__PURE__ */ jsx(
59
+ "div",
60
+ {
61
+ "data-slot": "message-header",
62
+ className: cn(
63
+ "flex max-w-full min-w-0 items-center px-3.5 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
64
+ className
65
+ ),
66
+ ...props
67
+ }
68
+ );
69
+ }
70
+ function MessageFooter({ className, ...props }) {
71
+ return /* @__PURE__ */ jsx(
72
+ "div",
73
+ {
74
+ "data-slot": "message-footer",
75
+ className: cn(
76
+ "flex max-w-full min-w-0 items-center px-3.5 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",
77
+ className
78
+ ),
79
+ ...props
80
+ }
81
+ );
82
+ }
83
+ export {
84
+ Message,
85
+ MessageAvatar,
86
+ MessageContent,
87
+ MessageFooter,
88
+ MessageGroup,
89
+ MessageHeader
90
+ };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+
3
+ type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
4
+ size?: "sm" | "default";
5
+ };
6
+ declare function NativeSelect({ className, size, ...props }: NativeSelectProps): React.JSX.Element;
7
+ declare function NativeSelectOption({ className, ...props }: React.ComponentProps<"option">): React.JSX.Element;
8
+ declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<"optgroup">): React.JSX.Element;
9
+
10
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
@@ -0,0 +1,63 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ import { ChevronDownIcon } from "lucide-react";
4
+ function NativeSelect({
5
+ className,
6
+ size = "default",
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsxs(
10
+ "div",
11
+ {
12
+ className: cn(
13
+ "group/native-select relative w-fit has-[select:disabled]:opacity-50",
14
+ className
15
+ ),
16
+ "data-slot": "native-select-wrapper",
17
+ "data-size": size,
18
+ children: [
19
+ /* @__PURE__ */ jsx(
20
+ "select",
21
+ {
22
+ "data-slot": "native-select",
23
+ "data-size": size,
24
+ className: "h-9 w-full min-w-0 appearance-none rounded-control border border-input bg-input/30 py-1 pr-8 pl-3 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-(length:--ds-ring-width) aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
25
+ ...props
26
+ }
27
+ ),
28
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-muted-foreground select-none", "aria-hidden": "true", "data-slot": "native-select-icon" })
29
+ ]
30
+ }
31
+ );
32
+ }
33
+ function NativeSelectOption({
34
+ className,
35
+ ...props
36
+ }) {
37
+ return /* @__PURE__ */ jsx(
38
+ "option",
39
+ {
40
+ "data-slot": "native-select-option",
41
+ className: cn("bg-[Canvas] text-[CanvasText]", className),
42
+ ...props
43
+ }
44
+ );
45
+ }
46
+ function NativeSelectOptGroup({
47
+ className,
48
+ ...props
49
+ }) {
50
+ return /* @__PURE__ */ jsx(
51
+ "optgroup",
52
+ {
53
+ "data-slot": "native-select-optgroup",
54
+ className: cn("bg-[Canvas] text-[CanvasText]", className),
55
+ ...props
56
+ }
57
+ );
58
+ }
59
+ export {
60
+ NativeSelect,
61
+ NativeSelectOptGroup,
62
+ NativeSelectOption
63
+ };
@@ -0,0 +1,15 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React$1 from 'react';
3
+ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
4
+
5
+ declare function NavigationMenu({ align, className, children, ...props }: NavigationMenu$1.Root.Props & Pick<NavigationMenu$1.Positioner.Props, "align">): React$1.JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.List>): React$1.JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): React$1.JSX.Element;
8
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9
+ declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenu$1.Trigger.Props): React$1.JSX.Element;
10
+ declare function NavigationMenuContent({ className, ...props }: NavigationMenu$1.Content.Props): React$1.JSX.Element;
11
+ declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenu$1.Positioner.Props): React$1.JSX.Element;
12
+ declare function NavigationMenuLink({ className, ...props }: NavigationMenu$1.Link.Props): React$1.JSX.Element;
13
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.Icon>): React$1.JSX.Element;
14
+
15
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, navigationMenuTriggerStyle };