@rovula/ui 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
|
@@ -25,6 +25,7 @@ export * from "./components/AlertDialog/AlertDialog";
|
|
|
25
25
|
export * from "./components/Search/Search";
|
|
26
26
|
export * from "./components/Slider/Slider";
|
|
27
27
|
export * from "./components/Switch/Switch";
|
|
28
|
+
export * from "./components/DropdownMenu/DropdownMenu";
|
|
28
29
|
export type { ButtonProps } from "./components/Button/Button";
|
|
29
30
|
export type { InputProps } from "./components/TextInput/TextInput";
|
|
30
31
|
export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
|
12
12
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
13
13
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
14
14
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
15
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
15
16
|
import { ClassValue } from 'clsx';
|
|
16
17
|
|
|
17
18
|
type ButtonProps = {
|
|
@@ -398,6 +399,31 @@ type SliderProps = React.ComponentProps<typeof Slider>;
|
|
|
398
399
|
|
|
399
400
|
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
400
401
|
|
|
402
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
403
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
404
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
405
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
406
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
407
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
408
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
409
|
+
inset?: boolean | undefined;
|
|
410
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
411
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
412
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
413
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
414
|
+
inset?: boolean | undefined;
|
|
415
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
416
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
417
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
418
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
419
|
+
inset?: boolean | undefined;
|
|
420
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
421
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
422
|
+
declare const DropdownMenuShortcut: {
|
|
423
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
424
|
+
displayName: string;
|
|
425
|
+
};
|
|
426
|
+
|
|
401
427
|
declare const resloveTimestamp: (timestamp: number) => number;
|
|
402
428
|
declare const getStartDateOfDay: (date: Date) => Date;
|
|
403
429
|
declare const getEndDateOfDay: (date: Date) => Date;
|
|
@@ -409,4 +435,4 @@ declare const getTimestampUTC: (date: Date) => number;
|
|
|
409
435
|
|
|
410
436
|
declare function cn(...inputs: ClassValue[]): string;
|
|
411
437
|
|
|
412
|
-
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownProps, Icon, Input, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, ForwardedText as Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
|
438
|
+
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownProps, Icon, Input, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, ForwardedText as Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./components/AlertDialog/AlertDialog";
|
|
|
27
27
|
export * from "./components/Search/Search";
|
|
28
28
|
export * from "./components/Slider/Slider";
|
|
29
29
|
export * from "./components/Switch/Switch";
|
|
30
|
+
export * from "./components/DropdownMenu/DropdownMenu";
|
|
30
31
|
// UTILS
|
|
31
32
|
export { resloveTimestamp, getStartDateOfDay, getEndDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, } from "./utils/datetime";
|
|
32
33
|
export { cn } from "./utils/cn";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from "./components/AlertDialog/AlertDialog";
|
|
|
32
32
|
export * from "./components/Search/Search";
|
|
33
33
|
export * from "./components/Slider/Slider";
|
|
34
34
|
export * from "./components/Switch/Switch";
|
|
35
|
+
export * from "./components/DropdownMenu/DropdownMenu";
|
|
35
36
|
|
|
36
37
|
// Export component types
|
|
37
38
|
export type { ButtonProps } from "./components/Button/Button";
|