@sikka/hawa 0.1.14 → 0.1.16

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.
@@ -19,15 +19,24 @@ type HawaAppLayoutTypes = {
19
19
  username?: string;
20
20
  email?: string;
21
21
  drawerSize?: "sm" | "md" | "large";
22
- profileMenuItems?: MenuItems[][];
22
+ profileMenuItems?: Item[];
23
23
  onSettingsClick?: () => void;
24
- DrawerFooterActions: any;
24
+ DrawerFooterActions?: any;
25
+ texts?: {
26
+ expandSidebar?: string;
27
+ collapseSidebar?: string;
28
+ };
25
29
  };
26
- type MenuItems = {
27
- icon?: JSX.Element;
30
+ type SubItem = {
28
31
  label: string;
29
- action?: (e: any) => void;
30
- isButton?: boolean;
32
+ value: string;
33
+ highlighted?: boolean;
34
+ };
35
+ type Item = {
36
+ label: string;
37
+ value: string;
38
+ highlighted?: boolean;
39
+ subitems?: SubItem[];
31
40
  };
32
41
  export declare const HawaAppLayoutSimplified: React.FunctionComponent<HawaAppLayoutTypes>;
33
42
  export {};
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ type ExtendedDropdownMenuContentProps = Partial<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
4
+ type SubItem = {
5
+ label: string;
6
+ value: string;
7
+ highlighted?: boolean;
8
+ };
9
+ type Item = {
10
+ label: string;
11
+ value: string;
12
+ highlighted?: boolean;
13
+ subitems?: SubItem[];
14
+ };
15
+ export declare const DropdownMenu: ({ trigger, items, direction, onItemSelect, sideOffset, side, className, align, alignOffset, }: {
16
+ trigger?: any;
17
+ items?: Item[];
18
+ direction?: "rtl" | "ltr";
19
+ onItemSelect?: any;
20
+ className?: ExtendedDropdownMenuContentProps["className"];
21
+ sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
22
+ side?: ExtendedDropdownMenuContentProps["side"];
23
+ align?: ExtendedDropdownMenuContentProps["align"];
24
+ alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
25
+ }) => React.JSX.Element;
26
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
1
+ import React from "react";
2
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
3
3
  export { Skeleton };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+ export { Textarea };
@@ -57,3 +57,4 @@ export * from "./Tooltip";
57
57
  export * from "./Card";
58
58
  export * from "./Skeleton";
59
59
  export * from "./InterfaceSettings";
60
+ export * from "./DropdownMenu";