@candy.thieves/ui-kit-lumos 0.0.70 → 0.0.73

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.
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const AssignUser: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { AssignUser };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const BillPay: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { BillPay };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const Devices: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { Devices };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const MoneyCheck: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { MoneyCheck };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const Payment: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { Payment };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const PaymentSettings: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { PaymentSettings };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const Tablet: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { Tablet };
@@ -0,0 +1,3 @@
1
+ import { type IconProps } from '@/utils';
2
+ declare const YooKassa: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export { YooKassa };
@@ -103,4 +103,12 @@ export { FileIcon } from './icons/FileIcon';
103
103
  export { List } from './icons/List';
104
104
  export { RecycleBin } from './icons/RecycleBin';
105
105
  export { Clock } from './icons/Clock';
106
+ export { AssignUser } from './icons/AssignUser';
107
+ export { BillPay } from './icons/BillPay';
108
+ export { Devices } from './icons/Devices';
109
+ export { Tablet } from './icons/Tablet';
110
+ export { MoneyCheck } from './icons/MoneyCheck';
111
+ export { Payment } from './icons/Payment';
112
+ export { PaymentSettings } from './icons/PaymentSettings';
113
+ export { YooKassa } from './icons/YooKassa';
106
114
  export { Logo } from './logo/Logo';
@@ -1,7 +1,8 @@
1
- import type { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
3
3
  export type ActionMenuItem = {
4
4
  disabled?: boolean;
5
+ href?: string;
5
6
  icon?: ReactNode;
6
7
  id: string;
7
8
  itemProps?: Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>, 'children' | 'disabled' | 'onSelect' | 'textValue'>;
@@ -9,6 +10,11 @@ export type ActionMenuItem = {
9
10
  onSelect?: () => void;
10
11
  textValue?: string;
11
12
  };
13
+ export type ActionMenuLinkTag = ElementType<{
14
+ children?: ReactNode;
15
+ className?: string;
16
+ href: string;
17
+ }>;
12
18
  export type ActionMenuProps = Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>, 'children'> & {
13
19
  ariaLabel: string;
14
20
  className?: string;
@@ -16,8 +22,9 @@ export type ActionMenuProps = Omit<ComponentPropsWithoutRef<typeof DropdownMenuP
16
22
  contentProps?: Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>, 'children'>;
17
23
  itemClassName?: string;
18
24
  items: ActionMenuItem[];
25
+ linkTag?: ActionMenuLinkTag;
19
26
  portalProps?: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Portal>;
20
27
  trigger?: ReactNode;
21
28
  triggerClassName?: string;
22
29
  };
23
- export declare const ActionMenu: ({ ariaLabel, className, contentClassName, contentProps, itemClassName, items, modal, portalProps, trigger, triggerClassName, ...props }: ActionMenuProps) => import("react").JSX.Element;
30
+ export declare const ActionMenu: ({ ariaLabel, className, contentClassName, contentProps, itemClassName, items, linkTag: LinkTag, modal, portalProps, trigger, triggerClassName, ...props }: ActionMenuProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { ActionMenu } from './ActionMenu';
2
- export type { ActionMenuItem, ActionMenuProps } from './ActionMenu';
2
+ export type { ActionMenuItem, ActionMenuLinkTag, ActionMenuProps } from './ActionMenu';
@@ -1,5 +1,5 @@
1
- import type { ComponentPropsWithoutRef, ElementType } from 'react';
2
- import { type ActionMenuItem } from '@/components/ActionMenu';
1
+ import type { ComponentPropsWithoutRef } from 'react';
2
+ import { type ActionMenuItem, type ActionMenuLinkTag } 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?: ElementType;
16
+ linkTag?: ActionMenuLinkTag;
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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@candy.thieves/ui-kit-lumos",
3
3
  "private": false,
4
4
  "packageManager": "pnpm@10.34.5",
5
- "version": "0.0.70",
5
+ "version": "0.0.73",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",