@candy.thieves/ui-kit-lumos 0.0.68 → 0.0.70
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef,
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
3
3
|
export type ActionMenuItem = {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
href?: string;
|
|
6
5
|
icon?: ReactNode;
|
|
7
6
|
id: string;
|
|
8
7
|
itemProps?: Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>, 'children' | 'disabled' | 'onSelect' | 'textValue'>;
|
|
@@ -10,11 +9,6 @@ export type ActionMenuItem = {
|
|
|
10
9
|
onSelect?: () => void;
|
|
11
10
|
textValue?: string;
|
|
12
11
|
};
|
|
13
|
-
export type ActionMenuLinkTag = ElementType<{
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
href: string;
|
|
17
|
-
}>;
|
|
18
12
|
export type ActionMenuProps = Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>, 'children'> & {
|
|
19
13
|
ariaLabel: string;
|
|
20
14
|
className?: string;
|
|
@@ -22,9 +16,8 @@ export type ActionMenuProps = Omit<ComponentPropsWithoutRef<typeof DropdownMenuP
|
|
|
22
16
|
contentProps?: Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>, 'children'>;
|
|
23
17
|
itemClassName?: string;
|
|
24
18
|
items: ActionMenuItem[];
|
|
25
|
-
linkTag?: ActionMenuLinkTag;
|
|
26
19
|
portalProps?: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Portal>;
|
|
27
20
|
trigger?: ReactNode;
|
|
28
21
|
triggerClassName?: string;
|
|
29
22
|
};
|
|
30
|
-
export declare const ActionMenu: ({ ariaLabel, className, contentClassName, contentProps, itemClassName, items,
|
|
23
|
+
export declare const ActionMenu: ({ ariaLabel, className, contentClassName, contentProps, itemClassName, items, modal, portalProps, trigger, triggerClassName, ...props }: ActionMenuProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ActionMenu } from './ActionMenu';
|
|
2
|
-
export type { ActionMenuItem,
|
|
2
|
+
export type { ActionMenuItem, ActionMenuProps } from './ActionMenu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { type ActionMenuItem
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
+
import { type ActionMenuItem } from '@/components/ActionMenu';
|
|
3
3
|
export type HeaderProps = {
|
|
4
4
|
brandName?: string;
|
|
5
5
|
isAuthenticated?: boolean;
|
|
@@ -13,6 +13,6 @@ export type HeaderProps = {
|
|
|
13
13
|
onNotificationClick?: () => void;
|
|
14
14
|
onSignUpClick?: () => void;
|
|
15
15
|
signUpLabel?: string;
|
|
16
|
-
linkTag?:
|
|
16
|
+
linkTag?: ElementType;
|
|
17
17
|
} & Omit<ComponentPropsWithoutRef<'header'>, 'children'>;
|
|
18
18
|
export declare const Header: ({ brandName, className, isAuthenticated, logoHref, logInLabel, mobileAuthenticatedMenuItems, mobileMenuLabel, notificationCount, notificationLabel, onLogInClick, onNotificationClick, onSignUpClick, signUpLabel, linkTag: LinkTag, ...props }: HeaderProps) => import("react").JSX.Element;
|