bmj-ui 1.0.12 → 1.0.13

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 (2) hide show
  1. package/dist/index.d.ts +714 -182
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,230 +1,762 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { LucideIcon } from 'lucide-react';
4
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
5
- import { useRender } from '@base-ui/react/use-render';
6
- import { VariantProps } from 'class-variance-authority';
7
- import { Button as Button$1 } from '@base-ui/react/button';
8
- import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
9
- import { Menu } from '@base-ui/react/menu';
10
- import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
11
- import { Select as Select$1 } from '@base-ui/react/select';
12
- import { Separator as Separator$1 } from '@base-ui/react/separator';
13
- import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
1
+ import * as react_jsx_runtime from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { LucideIcon } from "lucide-react";
4
+ import * as class_variance_authority_dist_types from "class-variance-authority";
5
+ import { useRender } from "@base-ui/react/use-render";
6
+ import { VariantProps } from "class-variance-authority";
7
+ import { Button as Button$1 } from "@base-ui/react/button";
8
+ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
9
+ import { Menu } from "@base-ui/react/menu";
10
+ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
11
+ import { Select as Select$1 } from "@base-ui/react/select";
12
+ import { Separator as Separator$1 } from "@base-ui/react/separator";
13
+ import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
14
14
 
15
15
  interface SidebarItem {
16
- title: string;
17
- icon: React.ElementType;
18
- url: string;
16
+ title: string;
17
+ icon: React.ElementType;
18
+ url: string;
19
19
  }
20
- declare function AppSidebar({ items, onItemClick, activeItem, }: {
21
- items?: SidebarItem[];
22
- onItemClick?: (title: string) => void;
23
- activeItem?: string;
20
+ declare function AppSidebar({
21
+ items,
22
+ onItemClick,
23
+ activeItem,
24
+ }: {
25
+ items?: SidebarItem[];
26
+ onItemClick?: (title: string) => void;
27
+ activeItem?: string;
24
28
  }): react_jsx_runtime.JSX.Element;
25
29
 
26
30
  interface DashboardLayoutProps {
27
- children: React.ReactNode;
28
- sidebarItems?: SidebarItem[];
29
- onSidebarItemClick?: (title: string) => void;
30
- activeSidebarItem?: string;
31
+ children: React.ReactNode;
32
+ sidebarItems?: SidebarItem[];
33
+ onSidebarItemClick?: (title: string) => void;
34
+ activeSidebarItem?: string;
31
35
  }
32
- declare function DashboardLayout({ children, sidebarItems, onSidebarItemClick, activeSidebarItem, }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
36
+ declare function DashboardLayout({
37
+ children,
38
+ sidebarItems,
39
+ onSidebarItemClick,
40
+ activeSidebarItem,
41
+ }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
33
42
 
34
43
  interface ChartCardProps {
35
- title: string;
36
- description?: string;
37
- data: any[];
38
- dataKey: string;
39
- categoryKey: string;
40
- color?: string;
41
- className?: string;
42
- loading?: boolean;
43
- type?: "area" | "bar" | "line" | "scatter";
44
+ title: string;
45
+ description?: string;
46
+ data: any[];
47
+ dataKey: string;
48
+ categoryKey: string;
49
+ color?: string;
50
+ className?: string;
51
+ loading?: boolean;
52
+ type?: "area" | "bar" | "line" | "scatter";
44
53
  }
45
- declare function ChartCard({ title, description, data, dataKey, categoryKey, color, className, loading, type, }: ChartCardProps): react_jsx_runtime.JSX.Element;
54
+ declare function ChartCard({
55
+ title,
56
+ description,
57
+ data,
58
+ dataKey,
59
+ categoryKey,
60
+ color,
61
+ className,
62
+ loading,
63
+ type,
64
+ }: ChartCardProps): react_jsx_runtime.JSX.Element;
46
65
 
47
66
  interface StatCardProps {
48
- title: string;
49
- value: string | number;
50
- description?: string;
51
- trend?: {
52
- value: number;
53
- isPositive: boolean;
54
- };
55
- icon?: LucideIcon;
56
- className?: string;
57
- loading?: boolean;
67
+ title: string;
68
+ value: string | number;
69
+ description?: string;
70
+ trend?: {
71
+ value: number;
72
+ isPositive: boolean;
73
+ };
74
+ icon?: LucideIcon;
75
+ className?: string;
76
+ loading?: boolean;
58
77
  }
59
- declare function StatCard({ title, value, description, trend, icon: Icon, className, loading, }: StatCardProps): react_jsx_runtime.JSX.Element;
78
+ declare function StatCard({
79
+ title,
80
+ value,
81
+ description,
82
+ trend,
83
+ icon: Icon,
84
+ className,
85
+ loading,
86
+ }: StatCardProps): react_jsx_runtime.JSX.Element;
60
87
 
61
88
  declare function Topbar(): react_jsx_runtime.JSX.Element;
62
89
 
63
- declare const badgeVariants: (props?: ({
64
- variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
65
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
66
- declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
90
+ declare const badgeVariants: (
91
+ props?:
92
+ | ({
93
+ variant?:
94
+ | "default"
95
+ | "outline"
96
+ | "secondary"
97
+ | "ghost"
98
+ | "destructive"
99
+ | "link"
100
+ | null
101
+ | undefined;
102
+ } & class_variance_authority_dist_types.ClassProp)
103
+ | undefined,
104
+ ) => string;
105
+ declare function Badge({
106
+ className,
107
+ variant,
108
+ render,
109
+ ...props
110
+ }: useRender.ComponentProps<"span"> &
111
+ VariantProps<typeof badgeVariants>): React.ReactElement<
112
+ unknown,
113
+ string | React.JSXElementConstructor<any>
114
+ >;
67
115
 
68
- declare const buttonVariants: (props?: ({
69
- variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
70
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
71
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
72
- declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
116
+ declare const buttonVariants: (
117
+ props?:
118
+ | ({
119
+ variant?:
120
+ | "default"
121
+ | "outline"
122
+ | "secondary"
123
+ | "ghost"
124
+ | "destructive"
125
+ | "link"
126
+ | null
127
+ | undefined;
128
+ size?:
129
+ | "default"
130
+ | "xs"
131
+ | "sm"
132
+ | "lg"
133
+ | "icon"
134
+ | "icon-xs"
135
+ | "icon-sm"
136
+ | "icon-lg"
137
+ | null
138
+ | undefined;
139
+ } & class_variance_authority_dist_types.ClassProp)
140
+ | undefined,
141
+ ) => string;
142
+ declare function Button({
143
+ className,
144
+ variant,
145
+ size,
146
+ ...props
147
+ }: Button$1.Props &
148
+ VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
73
149
 
74
- declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
75
- size?: "default" | "sm";
150
+ declare function Card({
151
+ className,
152
+ size,
153
+ ...props
154
+ }: React.ComponentProps<"div"> & {
155
+ size?: "default" | "sm";
76
156
  }): react_jsx_runtime.JSX.Element;
77
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
78
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
79
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
80
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
81
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
82
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
83
-
84
- declare function Dialog({ ...props }: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element;
85
- declare function DialogTrigger({ ...props }: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element;
86
- declare function DialogPortal({ ...props }: Dialog$1.Portal.Props): react_jsx_runtime.JSX.Element;
87
- declare function DialogClose({ ...props }: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element;
88
- declare function DialogOverlay({ className, ...props }: Dialog$1.Backdrop.Props): react_jsx_runtime.JSX.Element;
89
- declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog$1.Popup.Props & {
90
- showCloseButton?: boolean;
157
+ declare function CardHeader({
158
+ className,
159
+ ...props
160
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
161
+ declare function CardTitle({
162
+ className,
163
+ ...props
164
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
165
+ declare function CardDescription({
166
+ className,
167
+ ...props
168
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
169
+ declare function CardAction({
170
+ className,
171
+ ...props
172
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
173
+ declare function CardContent({
174
+ className,
175
+ ...props
176
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
177
+ declare function CardFooter({
178
+ className,
179
+ ...props
180
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
181
+
182
+ declare function Dialog({
183
+ ...props
184
+ }: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element;
185
+ declare function DialogTrigger({
186
+ ...props
187
+ }: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element;
188
+ declare function DialogPortal({
189
+ ...props
190
+ }: Dialog$1.Portal.Props): react_jsx_runtime.JSX.Element;
191
+ declare function DialogClose({
192
+ ...props
193
+ }: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element;
194
+ declare function DialogOverlay({
195
+ className,
196
+ ...props
197
+ }: Dialog$1.Backdrop.Props): react_jsx_runtime.JSX.Element;
198
+ declare function DialogContent({
199
+ className,
200
+ children,
201
+ showCloseButton,
202
+ ...props
203
+ }: Dialog$1.Popup.Props & {
204
+ showCloseButton?: boolean;
91
205
  }): react_jsx_runtime.JSX.Element;
92
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
93
- declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
94
- showCloseButton?: boolean;
206
+ declare function DialogHeader({
207
+ className,
208
+ ...props
209
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
210
+ declare function DialogFooter({
211
+ className,
212
+ showCloseButton,
213
+ children,
214
+ ...props
215
+ }: React.ComponentProps<"div"> & {
216
+ showCloseButton?: boolean;
95
217
  }): react_jsx_runtime.JSX.Element;
96
- declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element;
97
- declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element;
98
-
99
- declare function DropdownMenu({ ...props }: Menu.Root.Props): react_jsx_runtime.JSX.Element;
100
- declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): react_jsx_runtime.JSX.Element;
101
- declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): react_jsx_runtime.JSX.Element;
102
- declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
103
- declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): react_jsx_runtime.JSX.Element;
104
- declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & {
105
- inset?: boolean;
218
+ declare function DialogTitle({
219
+ className,
220
+ ...props
221
+ }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element;
222
+ declare function DialogDescription({
223
+ className,
224
+ ...props
225
+ }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element;
226
+
227
+ declare function DropdownMenu({
228
+ ...props
229
+ }: Menu.Root.Props): react_jsx_runtime.JSX.Element;
230
+ declare function DropdownMenuPortal({
231
+ ...props
232
+ }: Menu.Portal.Props): react_jsx_runtime.JSX.Element;
233
+ declare function DropdownMenuTrigger({
234
+ ...props
235
+ }: Menu.Trigger.Props): react_jsx_runtime.JSX.Element;
236
+ declare function DropdownMenuContent({
237
+ align,
238
+ alignOffset,
239
+ side,
240
+ sideOffset,
241
+ className,
242
+ ...props
243
+ }: Menu.Popup.Props &
244
+ Pick<
245
+ Menu.Positioner.Props,
246
+ "align" | "alignOffset" | "side" | "sideOffset"
247
+ >): react_jsx_runtime.JSX.Element;
248
+ declare function DropdownMenuGroup({
249
+ ...props
250
+ }: Menu.Group.Props): react_jsx_runtime.JSX.Element;
251
+ declare function DropdownMenuLabel({
252
+ className,
253
+ inset,
254
+ ...props
255
+ }: Menu.GroupLabel.Props & {
256
+ inset?: boolean;
106
257
  }): react_jsx_runtime.JSX.Element;
107
- declare function DropdownMenuItem({ className, inset, variant, ...props }: Menu.Item.Props & {
108
- inset?: boolean;
109
- variant?: "default" | "destructive";
258
+ declare function DropdownMenuItem({
259
+ className,
260
+ inset,
261
+ variant,
262
+ ...props
263
+ }: Menu.Item.Props & {
264
+ inset?: boolean;
265
+ variant?: "default" | "destructive";
110
266
  }): react_jsx_runtime.JSX.Element;
111
- declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): react_jsx_runtime.JSX.Element;
112
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Menu.SubmenuTrigger.Props & {
113
- inset?: boolean;
267
+ declare function DropdownMenuSub({
268
+ ...props
269
+ }: Menu.SubmenuRoot.Props): react_jsx_runtime.JSX.Element;
270
+ declare function DropdownMenuSubTrigger({
271
+ className,
272
+ inset,
273
+ children,
274
+ ...props
275
+ }: Menu.SubmenuTrigger.Props & {
276
+ inset?: boolean;
114
277
  }): react_jsx_runtime.JSX.Element;
115
- declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): react_jsx_runtime.JSX.Element;
116
- declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & {
117
- inset?: boolean;
278
+ declare function DropdownMenuSubContent({
279
+ align,
280
+ alignOffset,
281
+ side,
282
+ sideOffset,
283
+ className,
284
+ ...props
285
+ }: React.ComponentProps<
286
+ typeof DropdownMenuContent
287
+ >): react_jsx_runtime.JSX.Element;
288
+ declare function DropdownMenuCheckboxItem({
289
+ className,
290
+ children,
291
+ checked,
292
+ inset,
293
+ ...props
294
+ }: Menu.CheckboxItem.Props & {
295
+ inset?: boolean;
118
296
  }): react_jsx_runtime.JSX.Element;
119
- declare function DropdownMenuRadioGroup({ ...props }: Menu.RadioGroup.Props): react_jsx_runtime.JSX.Element;
120
- declare function DropdownMenuRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & {
121
- inset?: boolean;
297
+ declare function DropdownMenuRadioGroup({
298
+ ...props
299
+ }: Menu.RadioGroup.Props): react_jsx_runtime.JSX.Element;
300
+ declare function DropdownMenuRadioItem({
301
+ className,
302
+ children,
303
+ inset,
304
+ ...props
305
+ }: Menu.RadioItem.Props & {
306
+ inset?: boolean;
122
307
  }): react_jsx_runtime.JSX.Element;
123
- declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): react_jsx_runtime.JSX.Element;
124
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
308
+ declare function DropdownMenuSeparator({
309
+ className,
310
+ ...props
311
+ }: Menu.Separator.Props): react_jsx_runtime.JSX.Element;
312
+ declare function DropdownMenuShortcut({
313
+ className,
314
+ ...props
315
+ }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
125
316
 
126
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
317
+ declare function Input({
318
+ className,
319
+ type,
320
+ ...props
321
+ }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
127
322
 
128
- declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): react_jsx_runtime.JSX.Element;
129
- declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): react_jsx_runtime.JSX.Element;
323
+ declare function ScrollArea({
324
+ className,
325
+ children,
326
+ ...props
327
+ }: ScrollArea$1.Root.Props): react_jsx_runtime.JSX.Element;
328
+ declare function ScrollBar({
329
+ className,
330
+ orientation,
331
+ ...props
332
+ }: ScrollArea$1.Scrollbar.Props): react_jsx_runtime.JSX.Element;
130
333
 
131
334
  declare const Select: typeof Select$1.Root;
132
- declare function SelectGroup({ className, ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
133
- declare function SelectValue({ className, ...props }: Select$1.Value.Props): react_jsx_runtime.JSX.Element;
134
- declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
135
- size?: "sm" | "default";
335
+ declare function SelectGroup({
336
+ className,
337
+ ...props
338
+ }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
339
+ declare function SelectValue({
340
+ className,
341
+ ...props
342
+ }: Select$1.Value.Props): react_jsx_runtime.JSX.Element;
343
+ declare function SelectTrigger({
344
+ className,
345
+ size,
346
+ children,
347
+ ...props
348
+ }: Select$1.Trigger.Props & {
349
+ size?: "sm" | "default";
136
350
  }): react_jsx_runtime.JSX.Element;
137
- declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): react_jsx_runtime.JSX.Element;
138
- declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
139
- declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
140
- declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
141
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpArrow>): react_jsx_runtime.JSX.Element;
142
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownArrow>): react_jsx_runtime.JSX.Element;
143
-
144
- declare function Separator({ className, orientation, ...props }: Separator$1.Props): react_jsx_runtime.JSX.Element;
145
-
146
- declare function Sheet({ ...props }: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element;
147
- declare function SheetTrigger({ ...props }: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element;
148
- declare function SheetClose({ ...props }: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element;
149
- declare function SheetContent({ className, children, side, showCloseButton, ...props }: Dialog$1.Popup.Props & {
150
- side?: "top" | "right" | "bottom" | "left";
151
- showCloseButton?: boolean;
351
+ declare function SelectContent({
352
+ className,
353
+ children,
354
+ side,
355
+ sideOffset,
356
+ align,
357
+ alignOffset,
358
+ alignItemWithTrigger,
359
+ ...props
360
+ }: Select$1.Popup.Props &
361
+ Pick<
362
+ Select$1.Positioner.Props,
363
+ "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger"
364
+ >): react_jsx_runtime.JSX.Element;
365
+ declare function SelectLabel({
366
+ className,
367
+ ...props
368
+ }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
369
+ declare function SelectItem({
370
+ className,
371
+ children,
372
+ ...props
373
+ }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
374
+ declare function SelectSeparator({
375
+ className,
376
+ ...props
377
+ }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
378
+ declare function SelectScrollUpButton({
379
+ className,
380
+ ...props
381
+ }: React.ComponentProps<
382
+ typeof Select$1.ScrollUpArrow
383
+ >): react_jsx_runtime.JSX.Element;
384
+ declare function SelectScrollDownButton({
385
+ className,
386
+ ...props
387
+ }: React.ComponentProps<
388
+ typeof Select$1.ScrollDownArrow
389
+ >): react_jsx_runtime.JSX.Element;
390
+
391
+ declare function Separator({
392
+ className,
393
+ orientation,
394
+ ...props
395
+ }: Separator$1.Props): react_jsx_runtime.JSX.Element;
396
+
397
+ declare function Sheet({
398
+ ...props
399
+ }: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element;
400
+ declare function SheetTrigger({
401
+ ...props
402
+ }: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element;
403
+ declare function SheetClose({
404
+ ...props
405
+ }: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element;
406
+ declare function SheetContent({
407
+ className,
408
+ children,
409
+ side,
410
+ showCloseButton,
411
+ ...props
412
+ }: Dialog$1.Popup.Props & {
413
+ side?: "top" | "right" | "bottom" | "left";
414
+ showCloseButton?: boolean;
152
415
  }): react_jsx_runtime.JSX.Element;
153
- declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
154
- declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
155
- declare function SheetTitle({ className, ...props }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element;
156
- declare function SheetDescription({ className, ...props }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element;
416
+ declare function SheetHeader({
417
+ className,
418
+ ...props
419
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
420
+ declare function SheetFooter({
421
+ className,
422
+ ...props
423
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
424
+ declare function SheetTitle({
425
+ className,
426
+ ...props
427
+ }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element;
428
+ declare function SheetDescription({
429
+ className,
430
+ ...props
431
+ }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element;
157
432
 
158
- declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): react_jsx_runtime.JSX.Element;
159
- declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
160
- declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
161
- declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
433
+ declare function TooltipProvider({
434
+ delay,
435
+ ...props
436
+ }: Tooltip$1.Provider.Props): react_jsx_runtime.JSX.Element;
437
+ declare function Tooltip({
438
+ ...props
439
+ }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
440
+ declare function TooltipTrigger({
441
+ ...props
442
+ }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
443
+ declare function TooltipContent({
444
+ className,
445
+ side,
446
+ sideOffset,
447
+ align,
448
+ alignOffset,
449
+ children,
450
+ ...props
451
+ }: Tooltip$1.Popup.Props &
452
+ Pick<
453
+ Tooltip$1.Positioner.Props,
454
+ "align" | "alignOffset" | "side" | "sideOffset"
455
+ >): react_jsx_runtime.JSX.Element;
162
456
 
163
457
  type SidebarContextProps = {
164
- state: "expanded" | "collapsed";
165
- open: boolean;
166
- setOpen: (open: boolean) => void;
167
- openMobile: boolean;
168
- setOpenMobile: (open: boolean) => void;
169
- isMobile: boolean;
170
- toggleSidebar: () => void;
458
+ state: "expanded" | "collapsed";
459
+ open: boolean;
460
+ setOpen: (open: boolean) => void;
461
+ openMobile: boolean;
462
+ setOpenMobile: (open: boolean) => void;
463
+ isMobile: boolean;
464
+ toggleSidebar: () => void;
171
465
  };
172
466
  declare function useSidebar(): SidebarContextProps;
173
- declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
174
- defaultOpen?: boolean;
175
- open?: boolean;
176
- onOpenChange?: (open: boolean) => void;
467
+ declare function SidebarProvider({
468
+ defaultOpen,
469
+ open: openProp,
470
+ onOpenChange: setOpenProp,
471
+ className,
472
+ style,
473
+ children,
474
+ ...props
475
+ }: React.ComponentProps<"div"> & {
476
+ defaultOpen?: boolean;
477
+ open?: boolean;
478
+ onOpenChange?: (open: boolean) => void;
177
479
  }): react_jsx_runtime.JSX.Element;
178
- declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React.ComponentProps<"div"> & {
179
- side?: "left" | "right";
180
- variant?: "sidebar" | "floating" | "inset";
181
- collapsible?: "offcanvas" | "icon" | "none";
480
+ declare function Sidebar({
481
+ side,
482
+ variant,
483
+ collapsible,
484
+ className,
485
+ children,
486
+ dir,
487
+ ...props
488
+ }: React.ComponentProps<"div"> & {
489
+ side?: "left" | "right";
490
+ variant?: "sidebar" | "floating" | "inset";
491
+ collapsible?: "offcanvas" | "icon" | "none";
182
492
  }): react_jsx_runtime.JSX.Element;
183
- declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
184
- declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
185
- declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
186
- declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
187
- declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
188
- declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
189
- declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
190
- declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
191
- declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
192
- declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<"div"> & React.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
193
- declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
194
- declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
195
- declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
196
- declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
197
- declare const sidebarMenuButtonVariants: (props?: ({
198
- variant?: "default" | "outline" | null | undefined;
199
- size?: "default" | "sm" | "lg" | null | undefined;
200
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
201
- declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
493
+ declare function SidebarTrigger({
494
+ className,
495
+ onClick,
496
+ ...props
497
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
498
+ declare function SidebarRail({
499
+ className,
500
+ ...props
501
+ }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
502
+ declare function SidebarInset({
503
+ className,
504
+ ...props
505
+ }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
506
+ declare function SidebarInput({
507
+ className,
508
+ ...props
509
+ }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
510
+ declare function SidebarHeader({
511
+ className,
512
+ ...props
513
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
514
+ declare function SidebarFooter({
515
+ className,
516
+ ...props
517
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
518
+ declare function SidebarSeparator({
519
+ className,
520
+ ...props
521
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
522
+ declare function SidebarContent({
523
+ className,
524
+ ...props
525
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
526
+ declare function SidebarGroup({
527
+ className,
528
+ ...props
529
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
530
+ declare function SidebarGroupLabel({
531
+ className,
532
+ render,
533
+ ...props
534
+ }: useRender.ComponentProps<"div"> &
535
+ React.ComponentProps<"div">): React.ReactElement<
536
+ unknown,
537
+ string | React.JSXElementConstructor<any>
538
+ >;
539
+ declare function SidebarGroupAction({
540
+ className,
541
+ render,
542
+ ...props
543
+ }: useRender.ComponentProps<"button"> &
544
+ React.ComponentProps<"button">): React.ReactElement<
545
+ unknown,
546
+ string | React.JSXElementConstructor<any>
547
+ >;
548
+ declare function SidebarGroupContent({
549
+ className,
550
+ ...props
551
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
552
+ declare function SidebarMenu({
553
+ className,
554
+ ...props
555
+ }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
556
+ declare function SidebarMenuItem({
557
+ className,
558
+ ...props
559
+ }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
560
+ declare const sidebarMenuButtonVariants: (
561
+ props?:
562
+ | ({
563
+ variant?: "default" | "outline" | null | undefined;
564
+ size?: "default" | "sm" | "lg" | null | undefined;
565
+ } & class_variance_authority_dist_types.ClassProp)
566
+ | undefined,
567
+ ) => string;
568
+ declare function SidebarMenuButton({
569
+ render,
570
+ isActive,
571
+ variant,
572
+ size,
573
+ tooltip,
574
+ className,
575
+ ...props
576
+ }: useRender.ComponentProps<"button"> &
577
+ React.ComponentProps<"button"> & {
202
578
  isActive?: boolean;
203
579
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
204
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
205
- declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
580
+ } & VariantProps<
581
+ typeof sidebarMenuButtonVariants
582
+ >): react_jsx_runtime.JSX.Element;
583
+ declare function SidebarMenuAction({
584
+ className,
585
+ render,
586
+ showOnHover,
587
+ ...props
588
+ }: useRender.ComponentProps<"button"> &
589
+ React.ComponentProps<"button"> & {
206
590
  showOnHover?: boolean;
207
- }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
208
- declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
209
- declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
210
- showIcon?: boolean;
591
+ }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
592
+ declare function SidebarMenuBadge({
593
+ className,
594
+ ...props
595
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
596
+ declare function SidebarMenuSkeleton({
597
+ className,
598
+ showIcon,
599
+ ...props
600
+ }: React.ComponentProps<"div"> & {
601
+ showIcon?: boolean;
211
602
  }): react_jsx_runtime.JSX.Element;
212
- declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
213
- declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
214
- declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
603
+ declare function SidebarMenuSub({
604
+ className,
605
+ ...props
606
+ }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
607
+ declare function SidebarMenuSubItem({
608
+ className,
609
+ ...props
610
+ }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
611
+ declare function SidebarMenuSubButton({
612
+ render,
613
+ size,
614
+ isActive,
615
+ className,
616
+ ...props
617
+ }: useRender.ComponentProps<"a"> &
618
+ React.ComponentProps<"a"> & {
215
619
  size?: "sm" | "md";
216
620
  isActive?: boolean;
217
- }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
621
+ }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
218
622
 
219
- declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
623
+ declare function Skeleton({
624
+ className,
625
+ ...props
626
+ }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
220
627
 
221
- declare function Table({ className, ...props }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
222
- declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
223
- declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
224
- declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
225
- declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
226
- declare function TableHead({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
227
- declare function TableCell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
228
- declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
628
+ declare function Table({
629
+ className,
630
+ ...props
631
+ }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
632
+ declare function TableHeader({
633
+ className,
634
+ ...props
635
+ }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
636
+ declare function TableBody({
637
+ className,
638
+ ...props
639
+ }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
640
+ declare function TableFooter({
641
+ className,
642
+ ...props
643
+ }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
644
+ declare function TableRow({
645
+ className,
646
+ ...props
647
+ }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
648
+ declare function TableHead({
649
+ className,
650
+ ...props
651
+ }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
652
+ declare function TableCell({
653
+ className,
654
+ ...props
655
+ }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
656
+ declare function TableCaption({
657
+ className,
658
+ ...props
659
+ }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
229
660
 
230
- export { AppSidebar, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartCard, DashboardLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, StatCard, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, badgeVariants, buttonVariants, useSidebar };
661
+ export {
662
+ AppSidebar,
663
+ Badge,
664
+ Button,
665
+ Card,
666
+ CardAction,
667
+ CardContent,
668
+ CardDescription,
669
+ CardFooter,
670
+ CardHeader,
671
+ CardTitle,
672
+ ChartCard,
673
+ DashboardLayout,
674
+ Dialog,
675
+ DialogClose,
676
+ DialogContent,
677
+ DialogDescription,
678
+ DialogFooter,
679
+ DialogHeader,
680
+ DialogOverlay,
681
+ DialogPortal,
682
+ DialogTitle,
683
+ DialogTrigger,
684
+ DropdownMenu,
685
+ DropdownMenuCheckboxItem,
686
+ DropdownMenuContent,
687
+ DropdownMenuGroup,
688
+ DropdownMenuItem,
689
+ DropdownMenuLabel,
690
+ DropdownMenuPortal,
691
+ DropdownMenuRadioGroup,
692
+ DropdownMenuRadioItem,
693
+ DropdownMenuSeparator,
694
+ DropdownMenuShortcut,
695
+ DropdownMenuSub,
696
+ DropdownMenuSubContent,
697
+ DropdownMenuSubTrigger,
698
+ DropdownMenuTrigger,
699
+ Input,
700
+ ScrollArea,
701
+ ScrollBar,
702
+ Select,
703
+ SelectContent,
704
+ SelectGroup,
705
+ SelectItem,
706
+ SelectLabel,
707
+ SelectScrollDownButton,
708
+ SelectScrollUpButton,
709
+ SelectSeparator,
710
+ SelectTrigger,
711
+ SelectValue,
712
+ Separator,
713
+ Sheet,
714
+ SheetClose,
715
+ SheetContent,
716
+ SheetDescription,
717
+ SheetFooter,
718
+ SheetHeader,
719
+ SheetTitle,
720
+ SheetTrigger,
721
+ Sidebar,
722
+ SidebarContent,
723
+ SidebarFooter,
724
+ SidebarGroup,
725
+ SidebarGroupAction,
726
+ SidebarGroupContent,
727
+ SidebarGroupLabel,
728
+ SidebarHeader,
729
+ SidebarInput,
730
+ SidebarInset,
731
+ SidebarMenu,
732
+ SidebarMenuAction,
733
+ SidebarMenuBadge,
734
+ SidebarMenuButton,
735
+ SidebarMenuItem,
736
+ SidebarMenuSkeleton,
737
+ SidebarMenuSub,
738
+ SidebarMenuSubButton,
739
+ SidebarMenuSubItem,
740
+ SidebarProvider,
741
+ SidebarRail,
742
+ SidebarSeparator,
743
+ SidebarTrigger,
744
+ Skeleton,
745
+ StatCard,
746
+ Table,
747
+ TableBody,
748
+ TableCaption,
749
+ TableCell,
750
+ TableFooter,
751
+ TableHead,
752
+ TableHeader,
753
+ TableRow,
754
+ Tooltip,
755
+ TooltipContent,
756
+ TooltipProvider,
757
+ TooltipTrigger,
758
+ Topbar,
759
+ badgeVariants,
760
+ buttonVariants,
761
+ useSidebar,
762
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmj-ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Headless component library meticulously crafted for rapid dashboard development. Professional, polished, and ready for production.",
5
5
  "license": "ISC",
6
6
  "author": "",