create-disposabl-app 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/disposabl.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.api-keys.tsx +1 -1
  4. package/dist/templates/default/bun.lock +16 -1230
  5. package/dist/templates/default/packages/cli/README.md +9 -24
  6. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/login.tsx +1 -1
  7. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/signUp.tsx +1 -1
  8. package/dist/templates/default/packages/disposabl-kit/client/routes/consent.tsx +71 -13
  9. package/dist/templates/default/packages/disposabl-kit/package.json +0 -12
  10. package/package.json +1 -1
  11. package/dist/templates/default/apps/web/src/components/connections/expo-connection.tsx +0 -97
  12. package/dist/templates/default/apps/web/src/components/connections/provider-logo.tsx +0 -44
  13. package/dist/templates/default/apps/web/src/components/connections/use-connection-setup.ts +0 -169
  14. package/dist/templates/default/packages/disposabl-kit/client/components/ui/accordion.tsx +0 -77
  15. package/dist/templates/default/packages/disposabl-kit/client/components/ui/alert-dialog.tsx +0 -185
  16. package/dist/templates/default/packages/disposabl-kit/client/components/ui/alert.tsx +0 -75
  17. package/dist/templates/default/packages/disposabl-kit/client/components/ui/aspect-ratio.tsx +0 -22
  18. package/dist/templates/default/packages/disposabl-kit/client/components/ui/attachment.tsx +0 -207
  19. package/dist/templates/default/packages/disposabl-kit/client/components/ui/avatar.tsx +0 -106
  20. package/dist/templates/default/packages/disposabl-kit/client/components/ui/badge.tsx +0 -51
  21. package/dist/templates/default/packages/disposabl-kit/client/components/ui/breadcrumb.tsx +0 -121
  22. package/dist/templates/default/packages/disposabl-kit/client/components/ui/bubble.tsx +0 -127
  23. package/dist/templates/default/packages/disposabl-kit/client/components/ui/button-group.tsx +0 -87
  24. package/dist/templates/default/packages/disposabl-kit/client/components/ui/calendar.tsx +0 -241
  25. package/dist/templates/default/packages/disposabl-kit/client/components/ui/carousel.tsx +0 -239
  26. package/dist/templates/default/packages/disposabl-kit/client/components/ui/chart.tsx +0 -368
  27. package/dist/templates/default/packages/disposabl-kit/client/components/ui/checkbox.tsx +0 -27
  28. package/dist/templates/default/packages/disposabl-kit/client/components/ui/code-block.tsx +0 -243
  29. package/dist/templates/default/packages/disposabl-kit/client/components/ui/collapsible.tsx +0 -19
  30. package/dist/templates/default/packages/disposabl-kit/client/components/ui/combobox.tsx +0 -300
  31. package/dist/templates/default/packages/disposabl-kit/client/components/ui/command.tsx +0 -194
  32. package/dist/templates/default/packages/disposabl-kit/client/components/ui/context-menu.tsx +0 -271
  33. package/dist/templates/default/packages/disposabl-kit/client/components/ui/dialog.tsx +0 -156
  34. package/dist/templates/default/packages/disposabl-kit/client/components/ui/direction.tsx +0 -4
  35. package/dist/templates/default/packages/disposabl-kit/client/components/ui/drawer.tsx +0 -224
  36. package/dist/templates/default/packages/disposabl-kit/client/components/ui/dropdown-menu.tsx +0 -269
  37. package/dist/templates/default/packages/disposabl-kit/client/components/ui/empty.tsx +0 -103
  38. package/dist/templates/default/packages/disposabl-kit/client/components/ui/hover-card.tsx +0 -50
  39. package/dist/templates/default/packages/disposabl-kit/client/components/ui/input-group.tsx +0 -158
  40. package/dist/templates/default/packages/disposabl-kit/client/components/ui/input-otp.tsx +0 -83
  41. package/dist/templates/default/packages/disposabl-kit/client/components/ui/item.tsx +0 -201
  42. package/dist/templates/default/packages/disposabl-kit/client/components/ui/kbd.tsx +0 -26
  43. package/dist/templates/default/packages/disposabl-kit/client/components/ui/marker.tsx +0 -70
  44. package/dist/templates/default/packages/disposabl-kit/client/components/ui/menubar.tsx +0 -284
  45. package/dist/templates/default/packages/disposabl-kit/client/components/ui/message-scroller.tsx +0 -128
  46. package/dist/templates/default/packages/disposabl-kit/client/components/ui/message.tsx +0 -91
  47. package/dist/templates/default/packages/disposabl-kit/client/components/ui/native-select.tsx +0 -64
  48. package/dist/templates/default/packages/disposabl-kit/client/components/ui/navigation-menu.tsx +0 -170
  49. package/dist/templates/default/packages/disposabl-kit/client/components/ui/pagination.tsx +0 -133
  50. package/dist/templates/default/packages/disposabl-kit/client/components/ui/popover.tsx +0 -87
  51. package/dist/templates/default/packages/disposabl-kit/client/components/ui/progress.tsx +0 -82
  52. package/dist/templates/default/packages/disposabl-kit/client/components/ui/questionnaire.tsx +0 -330
  53. package/dist/templates/default/packages/disposabl-kit/client/components/ui/radio-group.tsx +0 -35
  54. package/dist/templates/default/packages/disposabl-kit/client/components/ui/resizable.tsx +0 -49
  55. package/dist/templates/default/packages/disposabl-kit/client/components/ui/scroll-area.tsx +0 -51
  56. package/dist/templates/default/packages/disposabl-kit/client/components/ui/select.tsx +0 -201
  57. package/dist/templates/default/packages/disposabl-kit/client/components/ui/sheet.tsx +0 -132
  58. package/dist/templates/default/packages/disposabl-kit/client/components/ui/sidebar.tsx +0 -723
  59. package/dist/templates/default/packages/disposabl-kit/client/components/ui/skeleton.tsx +0 -13
  60. package/dist/templates/default/packages/disposabl-kit/client/components/ui/slider.tsx +0 -51
  61. package/dist/templates/default/packages/disposabl-kit/client/components/ui/switch.tsx +0 -31
  62. package/dist/templates/default/packages/disposabl-kit/client/components/ui/table.tsx +0 -113
  63. package/dist/templates/default/packages/disposabl-kit/client/components/ui/tabs.tsx +0 -81
  64. package/dist/templates/default/packages/disposabl-kit/client/components/ui/textarea.tsx +0 -17
  65. package/dist/templates/default/packages/disposabl-kit/client/components/ui/toast.tsx +0 -229
  66. package/dist/templates/default/packages/disposabl-kit/client/components/ui/toggle-group.tsx +0 -87
  67. package/dist/templates/default/packages/disposabl-kit/client/components/ui/toggle.tsx +0 -42
  68. package/dist/templates/default/packages/disposabl-kit/client/components/ui/tooltip.tsx +0 -65
  69. package/dist/templates/default/packages/disposabl-kit/client/components/ui/trace.tsx +0 -161
  70. package/dist/templates/default/packages/disposabl-kit/client/hooks/use-mobile.ts +0 -21
@@ -1,284 +0,0 @@
1
- "use client";
2
-
3
- import * as React from "react";
4
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
5
- import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
6
- import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
7
-
8
- import {
9
- DropdownMenu,
10
- DropdownMenuContent,
11
- DropdownMenuGroup,
12
- DropdownMenuItem,
13
- DropdownMenuLabel,
14
- DropdownMenuPortal,
15
- DropdownMenuRadioGroup,
16
- DropdownMenuSeparator,
17
- DropdownMenuShortcut,
18
- DropdownMenuSub,
19
- DropdownMenuSubContent,
20
- DropdownMenuSubTrigger,
21
- DropdownMenuTrigger,
22
- } from "@disposabl/disposabl-kit/client/components/ui/dropdown-menu";
23
- import { CheckIcon } from "lucide-react";
24
-
25
- function Menubar({ className, ...props }: MenubarPrimitive.Props) {
26
- return (
27
- <MenubarPrimitive
28
- data-slot="menubar"
29
- className={cn(
30
- "flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
31
- className,
32
- )}
33
- {...props}
34
- />
35
- );
36
- }
37
-
38
- function MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>) {
39
- return <DropdownMenu data-slot="menubar-menu" {...props} />;
40
- }
41
-
42
- function MenubarGroup({
43
- ...props
44
- }: React.ComponentProps<typeof DropdownMenuGroup>) {
45
- return <DropdownMenuGroup data-slot="menubar-group" {...props} />;
46
- }
47
-
48
- function MenubarPortal({
49
- ...props
50
- }: React.ComponentProps<typeof DropdownMenuPortal>) {
51
- return <DropdownMenuPortal data-slot="menubar-portal" {...props} />;
52
- }
53
-
54
- function MenubarTrigger({
55
- className,
56
- ...props
57
- }: React.ComponentProps<typeof DropdownMenuTrigger>) {
58
- return (
59
- <DropdownMenuTrigger
60
- data-slot="menubar-trigger"
61
- className={cn(
62
- "flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted",
63
- className,
64
- )}
65
- {...props}
66
- />
67
- );
68
- }
69
-
70
- function MenubarContent({
71
- className,
72
- align = "start",
73
- alignOffset = -4,
74
- sideOffset = 8,
75
- ...props
76
- }: React.ComponentProps<typeof DropdownMenuContent>) {
77
- return (
78
- <DropdownMenuContent
79
- data-slot="menubar-content"
80
- align={align}
81
- alignOffset={alignOffset}
82
- sideOffset={sideOffset}
83
- className={cn(
84
- "min-w-36 rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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",
85
- className,
86
- )}
87
- {...props}
88
- />
89
- );
90
- }
91
-
92
- function MenubarItem({
93
- className,
94
- inset,
95
- variant = "default",
96
- ...props
97
- }: React.ComponentProps<typeof DropdownMenuItem>) {
98
- return (
99
- <DropdownMenuItem
100
- data-slot="menubar-item"
101
- data-inset={inset}
102
- data-variant={variant}
103
- className={cn(
104
- "group/menubar-item gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 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!",
105
- className,
106
- )}
107
- {...props}
108
- />
109
- );
110
- }
111
-
112
- function MenubarCheckboxItem({
113
- className,
114
- children,
115
- checked,
116
- inset,
117
- ...props
118
- }: MenuPrimitive.CheckboxItem.Props & {
119
- inset?: boolean;
120
- }) {
121
- return (
122
- <MenuPrimitive.CheckboxItem
123
- data-slot="menubar-checkbox-item"
124
- data-inset={inset}
125
- className={cn(
126
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
127
- className,
128
- )}
129
- checked={checked}
130
- {...props}
131
- >
132
- <span className="pointer-events-none absolute left-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4">
133
- <MenuPrimitive.CheckboxItemIndicator>
134
- <CheckIcon />
135
- </MenuPrimitive.CheckboxItemIndicator>
136
- </span>
137
- {children}
138
- </MenuPrimitive.CheckboxItem>
139
- );
140
- }
141
-
142
- function MenubarRadioGroup({
143
- ...props
144
- }: React.ComponentProps<typeof DropdownMenuRadioGroup>) {
145
- return <DropdownMenuRadioGroup data-slot="menubar-radio-group" {...props} />;
146
- }
147
-
148
- function MenubarRadioItem({
149
- className,
150
- children,
151
- inset,
152
- ...props
153
- }: MenuPrimitive.RadioItem.Props & {
154
- inset?: boolean;
155
- }) {
156
- return (
157
- <MenuPrimitive.RadioItem
158
- data-slot="menubar-radio-item"
159
- data-inset={inset}
160
- className={cn(
161
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
162
- className,
163
- )}
164
- {...props}
165
- >
166
- <span className="pointer-events-none absolute left-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4">
167
- <MenuPrimitive.RadioItemIndicator>
168
- <CheckIcon />
169
- </MenuPrimitive.RadioItemIndicator>
170
- </span>
171
- {children}
172
- </MenuPrimitive.RadioItem>
173
- );
174
- }
175
-
176
- function MenubarLabel({
177
- className,
178
- inset,
179
- ...props
180
- }: React.ComponentProps<typeof DropdownMenuLabel> & {
181
- inset?: boolean;
182
- }) {
183
- return (
184
- <DropdownMenuLabel
185
- data-slot="menubar-label"
186
- data-inset={inset}
187
- className={cn(
188
- "px-2 py-1.5 text-sm font-medium data-inset:pl-8",
189
- className,
190
- )}
191
- {...props}
192
- />
193
- );
194
- }
195
-
196
- function MenubarSeparator({
197
- className,
198
- ...props
199
- }: React.ComponentProps<typeof DropdownMenuSeparator>) {
200
- return (
201
- <DropdownMenuSeparator
202
- data-slot="menubar-separator"
203
- className={cn("-mx-1 my-1 h-px bg-border", className)}
204
- {...props}
205
- />
206
- );
207
- }
208
-
209
- function MenubarShortcut({
210
- className,
211
- ...props
212
- }: React.ComponentProps<typeof DropdownMenuShortcut>) {
213
- return (
214
- <DropdownMenuShortcut
215
- data-slot="menubar-shortcut"
216
- className={cn(
217
- "ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground",
218
- className,
219
- )}
220
- {...props}
221
- />
222
- );
223
- }
224
-
225
- function MenubarSub({
226
- ...props
227
- }: React.ComponentProps<typeof DropdownMenuSub>) {
228
- return <DropdownMenuSub data-slot="menubar-sub" {...props} />;
229
- }
230
-
231
- function MenubarSubTrigger({
232
- className,
233
- inset,
234
- ...props
235
- }: React.ComponentProps<typeof DropdownMenuSubTrigger> & {
236
- inset?: boolean;
237
- }) {
238
- return (
239
- <DropdownMenuSubTrigger
240
- data-slot="menubar-sub-trigger"
241
- data-inset={inset}
242
- className={cn(
243
- "gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4",
244
- className,
245
- )}
246
- {...props}
247
- />
248
- );
249
- }
250
-
251
- function MenubarSubContent({
252
- className,
253
- ...props
254
- }: React.ComponentProps<typeof DropdownMenuSubContent>) {
255
- return (
256
- <DropdownMenuSubContent
257
- data-slot="menubar-sub-content"
258
- className={cn(
259
- "min-w-32 rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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",
260
- className,
261
- )}
262
- {...props}
263
- />
264
- );
265
- }
266
-
267
- export {
268
- Menubar,
269
- MenubarPortal,
270
- MenubarMenu,
271
- MenubarTrigger,
272
- MenubarContent,
273
- MenubarGroup,
274
- MenubarSeparator,
275
- MenubarLabel,
276
- MenubarItem,
277
- MenubarShortcut,
278
- MenubarCheckboxItem,
279
- MenubarRadioGroup,
280
- MenubarRadioItem,
281
- MenubarSub,
282
- MenubarSubTrigger,
283
- MenubarSubContent,
284
- };
@@ -1,128 +0,0 @@
1
- import * as React from "react";
2
- import {
3
- MessageScroller as MessageScrollerPrimitive,
4
- useMessageScroller,
5
- useMessageScrollerScrollable,
6
- useMessageScrollerVisibility,
7
- } from "@shadcn/react/message-scroller";
8
- import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
9
-
10
- import { Button } from "@disposabl/disposabl-kit/client/components/ui/button";
11
- import { ArrowDownIcon } from "lucide-react";
12
-
13
- function MessageScrollerProvider(
14
- props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>,
15
- ) {
16
- return <MessageScrollerPrimitive.Provider {...props} />;
17
- }
18
-
19
- function MessageScroller({
20
- className,
21
- ...props
22
- }: React.ComponentProps<typeof MessageScrollerPrimitive.Root>) {
23
- return (
24
- <MessageScrollerPrimitive.Root
25
- data-slot="message-scroller"
26
- className={cn(
27
- "group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
28
- className,
29
- )}
30
- {...props}
31
- />
32
- );
33
- }
34
-
35
- function MessageScrollerViewport({
36
- className,
37
- ...props
38
- }: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>) {
39
- return (
40
- <MessageScrollerPrimitive.Viewport
41
- data-slot="message-scroller-viewport"
42
- className={cn(
43
- "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",
44
- className,
45
- )}
46
- {...props}
47
- />
48
- );
49
- }
50
-
51
- function MessageScrollerContent({
52
- className,
53
- ...props
54
- }: React.ComponentProps<typeof MessageScrollerPrimitive.Content>) {
55
- return (
56
- <MessageScrollerPrimitive.Content
57
- data-slot="message-scroller-content"
58
- className={cn("flex h-max min-h-full flex-col gap-8", className)}
59
- {...props}
60
- />
61
- );
62
- }
63
-
64
- function MessageScrollerItem({
65
- className,
66
- scrollAnchor = false,
67
- ...props
68
- }: React.ComponentProps<typeof MessageScrollerPrimitive.Item>) {
69
- return (
70
- <MessageScrollerPrimitive.Item
71
- data-slot="message-scroller-item"
72
- scrollAnchor={scrollAnchor}
73
- className={cn(
74
- "min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
75
- className,
76
- )}
77
- {...props}
78
- />
79
- );
80
- }
81
-
82
- function MessageScrollerButton({
83
- direction = "end",
84
- className,
85
- children,
86
- render,
87
- variant = "secondary",
88
- size = "icon-sm",
89
- ...props
90
- }: React.ComponentProps<typeof MessageScrollerPrimitive.Button> &
91
- Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
92
- return (
93
- <MessageScrollerPrimitive.Button
94
- data-slot="message-scroller-button"
95
- data-direction={direction}
96
- data-variant={variant}
97
- data-size={size}
98
- direction={direction}
99
- className={cn(
100
- "absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 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-400 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",
101
- className,
102
- )}
103
- render={render ?? <Button variant={variant} size={size} />}
104
- {...props}
105
- >
106
- {children ?? (
107
- <>
108
- <ArrowDownIcon />
109
- <span className="sr-only">
110
- {direction === "end" ? "Scroll to end" : "Scroll to start"}
111
- </span>
112
- </>
113
- )}
114
- </MessageScrollerPrimitive.Button>
115
- );
116
- }
117
-
118
- export {
119
- MessageScrollerProvider,
120
- MessageScroller,
121
- MessageScrollerViewport,
122
- MessageScrollerContent,
123
- MessageScrollerItem,
124
- MessageScrollerButton,
125
- useMessageScroller,
126
- useMessageScrollerScrollable,
127
- useMessageScrollerVisibility,
128
- };
@@ -1,91 +0,0 @@
1
- import * as React from "react";
2
- import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
3
-
4
- function MessageGroup({ className, ...props }: React.ComponentProps<"div">) {
5
- return (
6
- <div
7
- data-slot="message-group"
8
- className={cn("flex min-w-0 flex-col gap-2", className)}
9
- {...props}
10
- />
11
- );
12
- }
13
-
14
- function Message({
15
- className,
16
- align = "start",
17
- ...props
18
- }: React.ComponentProps<"div"> & { align?: "start" | "end" }) {
19
- return (
20
- <div
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
-
32
- function MessageAvatar({ className, ...props }: React.ComponentProps<"div">) {
33
- return (
34
- <div
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
-
45
- function MessageContent({ className, ...props }: React.ComponentProps<"div">) {
46
- return (
47
- <div
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
-
58
- function MessageHeader({ className, ...props }: React.ComponentProps<"div">) {
59
- return (
60
- <div
61
- data-slot="message-header"
62
- className={cn(
63
- "flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
64
- className,
65
- )}
66
- {...props}
67
- />
68
- );
69
- }
70
-
71
- function MessageFooter({ className, ...props }: React.ComponentProps<"div">) {
72
- return (
73
- <div
74
- data-slot="message-footer"
75
- className={cn(
76
- "flex max-w-full min-w-0 items-center px-3 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
-
84
- export {
85
- MessageGroup,
86
- Message,
87
- MessageAvatar,
88
- MessageContent,
89
- MessageFooter,
90
- MessageHeader,
91
- };
@@ -1,64 +0,0 @@
1
- import * as React from "react";
2
- import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
3
- import { ChevronDownIcon } from "lucide-react";
4
-
5
- type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
6
- size?: "sm" | "default";
7
- };
8
-
9
- function NativeSelect({
10
- className,
11
- size = "default",
12
- ...props
13
- }: NativeSelectProps) {
14
- return (
15
- <div
16
- className={cn(
17
- "group/native-select relative w-fit has-[select:disabled]:opacity-50",
18
- className,
19
- )}
20
- data-slot="native-select-wrapper"
21
- data-size={size}
22
- >
23
- <select
24
- data-slot="native-select"
25
- data-size={size}
26
- className="h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 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"
27
- {...props}
28
- />
29
- <ChevronDownIcon
30
- className="pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none"
31
- aria-hidden="true"
32
- data-slot="native-select-icon"
33
- />
34
- </div>
35
- );
36
- }
37
-
38
- function NativeSelectOption({
39
- className,
40
- ...props
41
- }: React.ComponentProps<"option">) {
42
- return (
43
- <option
44
- data-slot="native-select-option"
45
- className={cn("bg-[Canvas] text-[CanvasText]", className)}
46
- {...props}
47
- />
48
- );
49
- }
50
-
51
- function NativeSelectOptGroup({
52
- className,
53
- ...props
54
- }: React.ComponentProps<"optgroup">) {
55
- return (
56
- <optgroup
57
- data-slot="native-select-optgroup"
58
- className={cn("bg-[Canvas] text-[CanvasText]", className)}
59
- {...props}
60
- />
61
- );
62
- }
63
-
64
- export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };