@candy.thieves/ui-kit-lumos 0.0.40 → 0.0.42

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,21 +1,18 @@
1
- import type { ComponentPropsWithoutRef } from 'react';
2
- import type { HeaderLanguage, HeaderLanguageOption } from '@/types';
1
+ import type { ComponentPropsWithoutRef, ElementType } from 'react';
3
2
  import { type ActionMenuItem } from '@/components/ActionMenu';
4
3
  export type HeaderProps = {
5
4
  brandName?: string;
6
- defaultLanguage?: HeaderLanguage;
7
5
  isAuthenticated?: boolean;
8
- language?: HeaderLanguage;
9
- languageOptions?: HeaderLanguageOption[];
6
+ logoHref?: string;
10
7
  logInLabel?: string;
11
8
  mobileAuthenticatedMenuItems?: ActionMenuItem[];
12
9
  mobileMenuLabel?: string;
13
10
  notificationCount?: number;
14
11
  notificationLabel?: string;
15
- onLanguageChange?: (value: HeaderLanguage) => void;
16
12
  onLogInClick?: () => void;
17
13
  onNotificationClick?: () => void;
18
14
  onSignUpClick?: () => void;
19
15
  signUpLabel?: string;
16
+ linkTag?: ElementType;
20
17
  } & Omit<ComponentPropsWithoutRef<'header'>, 'children'>;
21
- export declare const Header: ({ brandName, className, defaultLanguage, isAuthenticated, language, languageOptions, logInLabel, mobileAuthenticatedMenuItems, mobileMenuLabel, notificationCount, notificationLabel, onLanguageChange, onLogInClick, onNotificationClick, onSignUpClick, signUpLabel, ...props }: HeaderProps) => import("react").JSX.Element;
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;
@@ -1,3 +1 @@
1
- export { Header } from './Header';
2
- export type { HeaderProps } from './Header';
3
- export type { HeaderLanguage, HeaderLanguageOption } from '@/types';
1
+ export * from './Header';
@@ -1,7 +1,6 @@
1
- import type { HeaderLanguageOption, ProgressThemeColor } from '@/types';
1
+ import type { ProgressThemeColor } from '@/types';
2
2
  export declare const COLOR_MAP: Record<ProgressThemeColor, string>;
3
3
  export declare const WAVE_FORM: number[];
4
- export declare const DEFAULT_HEADER_LANGUAGE_OPTIONS: HeaderLanguageOption[];
5
4
  export declare const TAB_INDEX: {
6
5
  readonly ENABLED: 0;
7
6
  readonly DISABLED: -1;
@@ -1,15 +1,8 @@
1
- import type { ReactNode } from 'react';
2
1
  export type ProgressThemeColor = 'error' | 'inherit' | 'primary' | 'success' | 'warning';
3
2
  export type ProgressSizeVariant = 'lg' | 'md' | 'sm';
4
3
  export type AvatarSize = 'l' | 'm' | 's' | 'xs';
5
4
  export type MainAvatarSize = 'xl' | 'xxl';
6
5
  export type ModalSize = 'l' | 'm' | 's' | 'xl' | 'xs';
7
- export type HeaderLanguage = 'english' | 'russian';
8
- export type HeaderLanguageOption = {
9
- icon?: ReactNode;
10
- label: string;
11
- value: HeaderLanguage;
12
- };
13
6
  export type VerticalMetrics = {
14
7
  thumbHeight: number;
15
8
  maxThumbOffsetY: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@candy.thieves/ui-kit-lumos",
3
3
  "private": false,
4
- "version": "0.0.40",
4
+ "version": "0.0.42",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",