@npm-questionpro/wick-ui-lib 0.1.1 → 0.2.2
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/src/base/ui/avatar.d.ts +6 -0
- package/dist/src/base/ui/breadcrumb.d.ts +19 -0
- package/dist/src/base/ui/button.d.ts +5 -6
- package/dist/src/base/ui/dialog.d.ts +21 -0
- package/dist/src/base/ui/dropdownMenu.d.ts +28 -0
- package/dist/src/base/ui/input.d.ts +3 -0
- package/dist/src/base/ui/menubar.d.ts +28 -0
- package/dist/src/base/ui/popover.d.ts +6 -0
- package/dist/src/base/ui/scrollArea.d.ts +5 -0
- package/dist/src/base/ui/select.d.ts +13 -0
- package/dist/src/base/ui/textarea.d.ts +3 -0
- package/dist/src/base/ui/toast.d.ts +5 -5
- package/dist/src/base/ui/toaster.d.ts +1 -1
- package/dist/src/base/ui/toggle.d.ts +12 -0
- package/dist/src/base/ui/toggleGroup.d.ts +12 -0
- package/dist/src/base/ui/useToast.d.ts +40 -0
- package/dist/src/components/appHeader/WuAppHeader.d.ts +15 -0
- package/dist/src/components/appHeader/WuAppHeader.test.d.ts +1 -0
- package/dist/src/components/appHeader/index.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderAccount.d.ts +44 -0
- package/dist/src/components/appHeader/types/WuAppHeaderBreadcrumbItem.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderHelpMenu.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderMenuItem.d.ts +16 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderAccount.d.ts +8 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderBreadcrumb.d.ts +6 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderHelp.d.ts +6 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderMenu.d.ts +9 -0
- package/dist/src/components/appHeader/ui/WuAppHeaderSearch.d.ts +6 -0
- package/dist/src/components/appHeader/utils/dataFromApi.d.ts +4 -0
- package/dist/src/components/button/WuButton.d.ts +4 -8
- package/dist/src/components/button/index.d.ts +0 -4
- package/dist/src/components/checkbox/WuCheckbox.d.ts +1 -0
- package/dist/src/components/formFields/WuFormFields.test.d.ts +1 -0
- package/dist/src/components/formFields/WuInput.d.ts +15 -0
- package/dist/src/components/formFields/WuInputError.d.ts +3 -0
- package/dist/src/components/formFields/WuInputHint.d.ts +5 -0
- package/dist/src/components/formFields/WuTextarea.d.ts +7 -0
- package/dist/src/components/formFields/index.d.ts +4 -0
- package/dist/src/components/helpButton/WuHelpButton.d.ts +8 -0
- package/dist/src/components/helpButton/WuHelpButton.test.d.ts +1 -0
- package/dist/src/components/helpButton/index.d.ts +2 -0
- package/dist/src/components/icon/WuIcon.d.ts +8 -0
- package/dist/src/components/icon/WuIcon.test.d.ts +1 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/loader/WuLoader.d.ts +8 -0
- package/dist/src/components/loader/WuLoader.test.d.ts +1 -0
- package/dist/src/components/loader/index.d.ts +2 -0
- package/dist/src/components/menu/WuMenu.d.ts +14 -0
- package/dist/src/components/menu/WuMenu.test.d.ts +1 -0
- package/dist/src/components/menu/WuMenuItemGroup.d.ts +3 -0
- package/dist/src/components/menu/WuMenuSeparatorItem.d.ts +3 -0
- package/dist/src/components/menu/WuSubMenu.d.ts +5 -0
- package/dist/src/components/menu/index.d.ts +10 -0
- package/dist/src/components/menu/ui/WuMenuCheckboxItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItemGroup.d.ts +5 -0
- package/dist/src/components/menu/ui/WuMenuRadioItem.d.ts +11 -0
- package/dist/src/components/menu/ui/WuMenuSeparatorItem.d.ts +3 -0
- package/dist/src/components/menu/ui/WuSubMenu.d.ts +9 -0
- package/dist/src/components/modal/WuModal.d.ts +26 -0
- package/dist/src/components/modal/WuModal.test.d.ts +1 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/radio/WuRadio.d.ts +2 -2
- package/dist/src/components/select/WuSelect.d.ts +15 -0
- package/dist/src/components/select/WuSelect.test.d.ts +1 -0
- package/dist/src/components/select/hooks/useOptionDestructure.d.ts +3 -0
- package/dist/src/components/select/index.d.ts +3 -0
- package/dist/src/components/select/types/IWuMultipleCheck.d.ts +1 -0
- package/dist/src/components/select/types/IWuSelectOptions.d.ts +19 -0
- package/dist/src/components/select/ui/WuSelectItem.d.ts +10 -0
- package/dist/src/components/select/ui/WuSelectTrigger.d.ts +12 -0
- package/dist/src/components/stepper/WuStepper.d.ts +10 -0
- package/dist/src/components/stepper/WuStepper.test.d.ts +1 -0
- package/dist/src/components/stepper/index.d.ts +2 -0
- package/dist/src/components/switcher/WuSwitcher.d.ts +10 -0
- package/dist/src/components/switcher/WuSwitcher.test.d.ts +1 -0
- package/dist/src/components/switcher/index.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOptions.d.ts +6 -0
- package/dist/src/components/toast/WuToast.d.ts +1 -1
- package/dist/src/components/toggle/WuToggle.d.ts +2 -2
- package/dist/src/components/virtualScroll/WuVirtualScroll.d.ts +9 -0
- package/dist/src/components/virtualScroll/WuVirtualScroll.test.d.ts +1 -0
- package/dist/src/components/virtualScroll/index.d.ts +2 -0
- package/dist/src/docs/Theme.d.ts +2 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useAnimation.d.ts +9 -0
- package/dist/src/index.d.ts +12 -2
- package/dist/src/lib/testUtils.d.ts +4 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +13974 -0
- package/dist/wick-ui-lib/es/index.js.map +1 -0
- package/dist/wick-ui-lib/umd/index.js +120 -0
- package/dist/wick-ui-lib/umd/index.js.map +1 -0
- package/package.json +59 -44
- package/dist/src/base/ui/use-toast.d.ts +0 -44
- package/dist/src/components/button/types/WuButtonColorEnum.d.ts +0 -5
- package/dist/src/components/button/types/WuButtonIconPositionEnum.d.ts +0 -4
- package/dist/src/components/button/types/WuButtonSizeEnum.d.ts +0 -5
- package/dist/src/components/button/types/WuButtonVariantEnum.d.ts +0 -8
- package/dist/src/components/spinner/WuSpinner.d.ts +0 -12
- package/dist/src/components/spinner/index.d.ts +0 -3
- package/dist/src/components/spinner/types/WuSpinnerSizeEnum.d.ts +0 -5
- package/dist/wickui/es/index.js +0 -6314
- package/dist/wickui/es/index.js.map +0 -1
- package/dist/wickui/umd/index.js +0 -32
- package/dist/wickui/umd/index.js.map +0 -1
- /package/dist/src/base/ui/{radio-group.d.ts → radioGroup.d.ts} +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
|
+
separator?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
declare const BreadcrumbSeparator: {
|
|
12
|
+
({ children, className, ...props }: React.ComponentProps<"li">): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const BreadcrumbEllipsis: {
|
|
16
|
+
({ className, ...props }: React.ComponentProps<"span">): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { WuButtonColorEnum } from '../../components/button/types/WuButtonColorEnum';
|
|
3
2
|
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
size?: "sm" | "md" | "
|
|
5
|
+
size?: "sm" | "md" | "mobile" | null | undefined;
|
|
7
6
|
color?: "primary" | "accent" | "error" | null | undefined;
|
|
8
|
-
variant?: "
|
|
7
|
+
variant?: "link" | "primary" | "secondary" | "outline" | "rounded" | "iconOnly" | null | undefined;
|
|
9
8
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
10
|
-
export interface
|
|
9
|
+
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
11
10
|
asChild?: boolean;
|
|
12
|
-
color?:
|
|
11
|
+
color?: 'primary' | 'accent' | 'error';
|
|
13
12
|
}
|
|
14
|
-
declare const Button: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
14
|
export { Button };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
hideCloseButton?: boolean;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DialogHeader: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const DialogFooter: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
20
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
21
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
position?: "left" | "right";
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const DropdownMenuShortcut: {
|
|
25
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const MenubarMenu: typeof MenubarPrimitive.Menu;
|
|
4
|
+
declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
|
|
6
|
+
declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
|
|
7
|
+
declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const MenubarShortcut: {
|
|
25
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
26
|
+
displayname: string;
|
|
27
|
+
};
|
|
28
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import * as React from 'react';
|
|
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 SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -3,15 +3,15 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
5
|
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & VariantProps<(props?: ({
|
|
6
|
-
position?: "
|
|
6
|
+
position?: "top" | "bottom" | "topRight" | "topLeft" | "bottomRight" | "bottomReft" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLOListElement>>;
|
|
8
8
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
11
11
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
type
|
|
16
|
-
type
|
|
17
|
-
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type
|
|
15
|
+
type IToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
16
|
+
type IToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
17
|
+
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type IToastActionElement, type IToastProps, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Toaster():
|
|
1
|
+
export declare function Toaster(): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IToastActionElement, IToastProps } from './toast';
|
|
2
|
+
|
|
3
|
+
type IToasterToast = IToastProps & {
|
|
4
|
+
id: string;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
action?: IToastActionElement;
|
|
8
|
+
};
|
|
9
|
+
declare const _actionTypes: {
|
|
10
|
+
readonly ADD_TOAST: "ADD_TOAST";
|
|
11
|
+
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
12
|
+
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
13
|
+
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
14
|
+
};
|
|
15
|
+
type IActionType = typeof _actionTypes;
|
|
16
|
+
type IAction = {
|
|
17
|
+
type: IActionType['ADD_TOAST'];
|
|
18
|
+
toast: IToasterToast;
|
|
19
|
+
} | {
|
|
20
|
+
type: IActionType['UPDATE_TOAST'];
|
|
21
|
+
toast: Partial<IToasterToast>;
|
|
22
|
+
} | {
|
|
23
|
+
type: IActionType['DISMISS_TOAST'];
|
|
24
|
+
toastId?: IToasterToast['id'];
|
|
25
|
+
} | {
|
|
26
|
+
type: IActionType['REMOVE_TOAST'];
|
|
27
|
+
toastId?: IToasterToast['id'];
|
|
28
|
+
};
|
|
29
|
+
interface IState {
|
|
30
|
+
toasts: IToasterToast[];
|
|
31
|
+
}
|
|
32
|
+
export declare const reducer: (state: IState, action: IAction) => IState;
|
|
33
|
+
type IToast = Omit<IToasterToast, 'id'>;
|
|
34
|
+
declare function toast({ ...props }: IToast): unknown;
|
|
35
|
+
declare function useToast(): {
|
|
36
|
+
toasts: IToasterToast[];
|
|
37
|
+
toast: typeof toast;
|
|
38
|
+
dismiss: (toastId?: string) => void;
|
|
39
|
+
};
|
|
40
|
+
export { toast, useToast };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWuAppHeaderAccount } from './types/WuAppHeaderAccount';
|
|
3
|
+
import { IWuAppHeaderBreadcrumbItem } from './types/WuAppHeaderBreadcrumbItem';
|
|
4
|
+
import { IWuAppHeaderMenuItem } from './types/WuAppHeaderMenuItem';
|
|
5
|
+
|
|
6
|
+
export interface IWuAppHeaderProps extends React.HTMLAttributes<HTMLBaseElement> {
|
|
7
|
+
productName: string;
|
|
8
|
+
catagories: IWuAppHeaderMenuItem[];
|
|
9
|
+
user?: IWuAppHeaderAccount;
|
|
10
|
+
breadcrumbs?: IWuAppHeaderBreadcrumbItem[];
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onLogout?: () => void;
|
|
13
|
+
homeLink?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const WuAppHeader: React.FC<IWuAppHeaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { IWuAppHeaderAccount } from './types/WuAppHeaderAccount';
|
|
2
|
+
export type { IWuAppHeaderBreadcrumbItem } from './types/WuAppHeaderBreadcrumbItem';
|
|
3
|
+
export type { IWuAppHeaderHelpMenu } from './types/WuAppHeaderHelpMenu';
|
|
4
|
+
export type { IWuAppHeaderMenuItem } from './types/WuAppHeaderMenuItem';
|
|
5
|
+
export { WuAppHeaderSearch } from './ui/WuAppHeaderSearch';
|
|
6
|
+
export { WuAppHeader } from './WuAppHeader';
|
|
7
|
+
export type { IWuAppHeaderProps } from './WuAppHeader';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface IWuAppHeaderAccount {
|
|
2
|
+
profile: {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
companyName: string;
|
|
6
|
+
profilePicture: string;
|
|
7
|
+
initials: string;
|
|
8
|
+
sentimentIndustry: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
license: {
|
|
12
|
+
expiryDate: string;
|
|
13
|
+
expiryAfterQuarter: boolean;
|
|
14
|
+
expiryDatePostFixString: string;
|
|
15
|
+
subtitle: string;
|
|
16
|
+
showExpiryDate: boolean;
|
|
17
|
+
title: string;
|
|
18
|
+
upgradeLink: boolean;
|
|
19
|
+
currentLicenseExpiryDays: number;
|
|
20
|
+
url: string;
|
|
21
|
+
expiryBeforeTwoMonth: boolean;
|
|
22
|
+
};
|
|
23
|
+
settings: {
|
|
24
|
+
canDisplay: boolean;
|
|
25
|
+
displayIcon: boolean;
|
|
26
|
+
icon?: string;
|
|
27
|
+
title: string;
|
|
28
|
+
betaIconHTML: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}[];
|
|
31
|
+
usage: {
|
|
32
|
+
collectedResponseCount: string;
|
|
33
|
+
displayResponseProgressBar: boolean;
|
|
34
|
+
title: string;
|
|
35
|
+
url: string;
|
|
36
|
+
responseCountPercentage: number;
|
|
37
|
+
};
|
|
38
|
+
invoice: {
|
|
39
|
+
size: number;
|
|
40
|
+
title: string;
|
|
41
|
+
url: string;
|
|
42
|
+
};
|
|
43
|
+
issueTrackerCount: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IWuAppHeaderMenuItem {
|
|
2
|
+
name: string;
|
|
3
|
+
logo: string;
|
|
4
|
+
desc: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
order?: number;
|
|
7
|
+
products?: IWuAppHeaderSubMenuItem[];
|
|
8
|
+
}
|
|
9
|
+
export interface IWuAppHeaderSubMenuItem {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
logo?: string;
|
|
15
|
+
order?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IWuAppHeaderMenuItem } from '../types/WuAppHeaderMenuItem';
|
|
2
|
+
|
|
3
|
+
interface IWuAppHeaderMenuProps {
|
|
4
|
+
menuItems: IWuAppHeaderMenuItem[];
|
|
5
|
+
productName: string;
|
|
6
|
+
homeLink?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const WuAppHeaderMenu: React.FC<IWuAppHeaderMenuProps>;
|
|
9
|
+
export {};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { WuButtonColorEnum } from './types/WuButtonColorEnum';
|
|
3
|
-
import { WuButtonIconPositionEnum } from './types/WuButtonIconPositionEnum';
|
|
4
|
-
import { WuButtonSizeEnum } from './types/WuButtonSizeEnum';
|
|
5
|
-
import { WuButtonVariantEnum } from './types/WuButtonVariantEnum';
|
|
6
2
|
|
|
7
3
|
export interface IWuButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
8
4
|
disabled?: boolean;
|
|
9
5
|
loading?: boolean;
|
|
10
|
-
variant?:
|
|
11
|
-
size?:
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'rounded' | 'link' | 'iconOnly';
|
|
7
|
+
size?: 'md' | 'sm' | 'mobile';
|
|
12
8
|
icon?: ReactNode;
|
|
13
|
-
iconPosition?:
|
|
9
|
+
iconPosition?: 'left' | 'right';
|
|
14
10
|
floating?: boolean;
|
|
15
|
-
color?:
|
|
11
|
+
color?: 'primary' | 'accent' | 'error';
|
|
16
12
|
}
|
|
17
13
|
export declare const WuButton: React.FC<IWuButtonProps>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export { WuButtonColorEnum } from './types/WuButtonColorEnum';
|
|
2
|
-
export { WuButtonIconPositionEnum } from './types/WuButtonIconPositionEnum';
|
|
3
|
-
export { WuButtonSizeEnum } from './types/WuButtonSizeEnum';
|
|
4
|
-
export { WuButtonVariantEnum } from './types/WuButtonVariantEnum';
|
|
5
1
|
export { WuButton } from './WuButton';
|
|
6
2
|
export type { IWuButtonProps } from './WuButton';
|
|
@@ -7,6 +7,7 @@ export interface IWuCheckboxProps extends Omit<React.HTMLAttributes<HTMLButtonEl
|
|
|
7
7
|
labelPosition?: 'left' | 'right';
|
|
8
8
|
partial?: boolean;
|
|
9
9
|
readonly?: boolean;
|
|
10
|
+
required?: boolean;
|
|
10
11
|
onChange?: (e: boolean) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const WuCheckbox: React.FC<IWuCheckboxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IWuInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
labelPosition?: 'left' | 'top';
|
|
6
|
+
icon?: string;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* variant: flat | outlined
|
|
13
|
+
* size: sm | md | lg
|
|
14
|
+
*/
|
|
15
|
+
export declare const WuInput: React.FC<IWuInputProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IWuHelpButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
idOrSlugOrUrl: string;
|
|
5
|
+
size?: 'sm' | 'md';
|
|
6
|
+
variant?: 'primary' | 'secondary';
|
|
7
|
+
}
|
|
8
|
+
export declare const WuHelpButton: React.FC<IWuHelpButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IWuIconProps extends React.HTMLAttributes<HTMLBaseElement> {
|
|
4
|
+
size?: 'sm' | 'base' | 'lg';
|
|
5
|
+
icon: string;
|
|
6
|
+
}
|
|
7
|
+
/** This is a wrapper for Material Symbols Outlined font which is temporary. Will be replaced by a Wick UI Icon Library. */
|
|
8
|
+
export declare const WuIcon: React.FC<IWuIconProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DropdownMenu } from '../../base/ui/dropdownMenu';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface IWuMenuProps extends Omit<React.ComponentProps<typeof DropdownMenu>, 'open' | 'onOpenChange'> {
|
|
5
|
+
name?: string;
|
|
6
|
+
menuTitle?: string;
|
|
7
|
+
trigger?: React.ReactNode;
|
|
8
|
+
variant?: 'flat' | 'outlined';
|
|
9
|
+
open?: boolean;
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
height?: string;
|
|
12
|
+
preventCloseOnClickOutside?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const WuMenu: React.FC<IWuMenuProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|