profinansy-ui-lib 3.8.1 → 3.8.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.
Files changed (55) hide show
  1. package/dist/components/banners/TextBlackBanner/TextBlackBanner.styled.d.ts +2 -30
  2. package/dist/components/blocks/Navigation/components/NewFeature/NewFeature.styled.d.ts +2 -30
  3. package/dist/components/blocks/header/components/Cart/components/CartItem/CartStyled.styled.d.ts +2 -30
  4. package/dist/components/blocks/header/components/header-link-item/components/Hit/Hit.d.ts +2 -30
  5. package/dist/components/blocks/header/components/header-link-item/components/MoreItems/MoreItems.styled.d.ts +4 -60
  6. package/dist/components/blocks/header/components/header-link-item/components/New/New.d.ts +2 -30
  7. package/dist/components/blocks/header/components/header-link-item/header-link-item.styled.d.ts +2 -30
  8. package/dist/components/blocks/header/components/userMenu/components/PersonalInformation/PersonalInformation.styled.d.ts +2 -30
  9. package/dist/components/blocks/search/components/InstrumentItem/InstrumentItem.styled.d.ts +6 -90
  10. package/dist/components/blocks/search/components/Item.styled.d.ts +2 -30
  11. package/dist/components/blocks/search/components/SearchNotFound/SearchNotFound.styled.d.ts +2 -30
  12. package/dist/components/blocks/search/hooks/useFavourites.d.ts +4 -2
  13. package/dist/components/blocks/sideMenu/components/FooterSlot/FooterSlot.d.ts +4 -3
  14. package/dist/components/blocks/sideMenu/components/SubPages/SubPages.styled.d.ts +2 -30
  15. package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.tyled.d.ts +4 -3
  16. package/dist/components/uikit/Bubbles/Bubbles.styled.d.ts +2 -30
  17. package/dist/components/uikit/Card/Card.d.ts +2 -20
  18. package/dist/components/uikit/Card/Card.typed.d.ts +5 -3
  19. package/dist/components/uikit/Checkbox/Checkbox.styled.d.ts +2 -30
  20. package/dist/components/uikit/DragScroll/DragScroll.d.ts +5 -2
  21. package/dist/components/uikit/Dropdown/Dropdown.d.ts +1 -13
  22. package/dist/components/uikit/Dropdown/Dropdown.typed.d.ts +5 -3
  23. package/dist/components/uikit/FieldRow/FieldRow.typed.d.ts +5 -3
  24. package/dist/components/uikit/FilterButton/FilterButton.d.ts +2 -19
  25. package/dist/components/uikit/FilterButton/FilterButton.typed.d.ts +8 -5
  26. package/dist/components/uikit/FilterButton/components/Drop/Drop.d.ts +2 -14
  27. package/dist/components/uikit/FilterButton/components/Mobile/MobileFilter.d.ts +2 -18
  28. package/dist/components/uikit/HiddenText/HiddenText.typed.d.ts +8 -3
  29. package/dist/components/uikit/Hint/Hint.typed.d.ts +5 -3
  30. package/dist/components/uikit/Modal/Modal.styled.d.ts +4 -60
  31. package/dist/components/uikit/Modal/Modal.typed.d.ts +5 -3
  32. package/dist/components/uikit/ModalMobile/ModalMobile.typed.d.ts +5 -3
  33. package/dist/components/uikit/Portal/Portal.typed.d.ts +4 -3
  34. package/dist/components/uikit/Radio/Radio.styled.d.ts +2 -30
  35. package/dist/components/uikit/SegmentControl/SegmentControl.styled.d.ts +2 -30
  36. package/dist/components/uikit/Select/components/ValueContainerWithImage/ValueContainerWithImage.styled.d.ts +2 -30
  37. package/dist/components/uikit/SideModal/SideModal.typed.d.ts +5 -3
  38. package/dist/components/uikit/Table/components/TCellText/TCellText.d.ts +5 -3
  39. package/dist/components/uikit/Tabs/Tabs.styled.d.ts +2 -30
  40. package/dist/components/uikit/Tooltip/Tooltip.d.ts +4 -3
  41. package/dist/components/uikit/Tooltip/Tooltip.typed.d.ts +5 -3
  42. package/dist/components/uikit/Typography/Typography.d.ts +2 -15
  43. package/dist/components/uikit/Typography/Typography.typed.d.ts +5 -3
  44. package/dist/components/uikit/storybook/StoryExample/StoryExample.d.ts +5 -2
  45. package/dist/components/uikit/storybook/StoryTitle/StoryTitle.d.ts +4 -3
  46. package/dist/config.d.ts +4 -3
  47. package/dist/hooks/useTransitionModal.d.ts +4 -3
  48. package/dist/localization/translations/urls.d.ts +2 -0
  49. package/dist/localization/useLocalization.d.ts +4 -3
  50. package/dist/profinansy-ui-lib.cjs.js +2 -2
  51. package/dist/profinansy-ui-lib.cjs.js.map +1 -1
  52. package/dist/profinansy-ui-lib.es.js +8 -2
  53. package/dist/profinansy-ui-lib.es.js.map +1 -1
  54. package/dist/theme/ThemeProvider.d.ts +8 -3
  55. package/package.json +1 -1
@@ -1,11 +1,13 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { Placement } from '@floating-ui/react';
3
3
  import CSS from 'csstype';
4
- export type ITooltipProps = PropsWithChildren<{
4
+ export interface ITooltipProps {
5
5
  /** Элемент, по которому открывается выпадашка*/
6
6
  targetElement: ReactNode;
7
7
  /** Положение выпадашки*/
8
8
  placement?: Placement;
9
+ /** Контент*/
10
+ children: ReactNode;
9
11
  /** Ширина выпадашки*/
10
12
  width?: string;
11
13
  /** Максимальная высота выпадашки*/
@@ -24,4 +26,4 @@ export type ITooltipProps = PropsWithChildren<{
24
26
  onOpenTooltip?: (val: boolean) => void;
25
27
  /** Стили для контейнера.*/
26
28
  styleContainer?: CSS.Properties;
27
- }>;
29
+ }
@@ -1,17 +1,4 @@
1
1
  import React from 'react';
2
- declare const Typography: React.ForwardRefExoticComponent<{
3
- tag?: keyof JSX.IntrinsicElements;
4
- variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
5
- variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
6
- resolution: number;
7
- }[];
8
- className?: string;
9
- title?: string;
10
- valueNumber?: number;
11
- onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
12
- colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
13
- colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
14
- } & {
15
- children?: React.ReactNode;
16
- } & React.CSSProperties & React.RefAttributes<HTMLElement>>;
2
+ import { ITypographyProps } from './Typography.typed';
3
+ declare const Typography: React.ForwardRefExoticComponent<ITypographyProps & React.CSSProperties & React.RefAttributes<HTMLElement>>;
17
4
  export { Typography };
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { typographyVariants } from './Typography.const';
3
3
  import { TTheme } from '../../../theme/theme.typed';
4
4
  export type TTypographyVariant = (typeof typographyVariants)[number];
5
- export type ITypographyProps = PropsWithChildren<{
5
+ export interface ITypographyProps {
6
6
  /**HTML тег */
7
7
  tag?: keyof JSX.IntrinsicElements;
8
8
  /**Тип тега */
@@ -12,6 +12,8 @@ export type ITypographyProps = PropsWithChildren<{
12
12
  }[];
13
13
  /**Класс элемента */
14
14
  className?: string;
15
+ /**Контента внутри элемента */
16
+ children: ReactNode;
15
17
  /**Подсказка на элемент */
16
18
  title?: string;
17
19
  /**Если вам надо покарсить число в позитивный или негативный цвет, то передайте это числю сюда. */
@@ -22,4 +24,4 @@ export type ITypographyProps = PropsWithChildren<{
22
24
  colorName?: keyof TTheme['text'] | keyof TTheme['background'] | keyof TTheme['icons'] | keyof TTheme['stroke'] | keyof TTheme['interactiveButtons'] | keyof TTheme['interactiveControls'] | keyof TTheme['other'];
23
25
  /**Категория цвета из палитры. По умолчанию text */
24
26
  colorCategory?: keyof TTheme;
25
- }>;
27
+ }
@@ -1,3 +1,6 @@
1
- import { PropsWithChildren } from 'react';
2
- declare const StoryExample: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const StoryExample: ({ children }: IProps) => import("react/jsx-runtime").JSX.Element;
3
6
  export { StoryExample };
@@ -1,6 +1,7 @@
1
- import { PropsWithChildren } from 'react';
2
- type IProps = PropsWithChildren<{
1
+ import React from 'react';
2
+ interface IProps {
3
+ children: React.ReactNode;
3
4
  isBig?: boolean;
4
- }>;
5
+ }
5
6
  declare const StoryTitle: ({ children, isBig }: IProps) => import("react/jsx-runtime").JSX.Element;
6
7
  export { StoryTitle };
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { ElementType, PropsWithChildren } from 'react';
1
+ import { ReactNode, ElementType } from 'react';
2
2
  import { IUser, UserRole } from './common.types';
3
3
  import { StateTypeOpenMenu } from './hooks/sideMenu/useSaveOpenMode';
4
4
  export type TProject = 'profinansy' | 'wallet' | 'lms' | 'lenta';
@@ -24,8 +24,9 @@ interface IConfig extends IConfigProps {
24
24
  /** Роль пользователя **/
25
25
  userRole: UserRole | null;
26
26
  }
27
- export declare const ConfigLibraryProvider: ({ config, children }: React.PropsWithChildren<{
27
+ export declare const ConfigLibraryProvider: ({ config, children }: {
28
28
  config: IConfigProps;
29
- }>) => import("react/jsx-runtime").JSX.Element;
29
+ children: ReactNode;
30
+ }) => import("react/jsx-runtime").JSX.Element;
30
31
  export declare const useConfigLibrary: () => IConfig;
31
32
  export {};
@@ -1,10 +1,11 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  declare function useControlsForModal(handleClose: () => void): void;
3
- type ITransition = PropsWithChildren<{
3
+ interface ITransition {
4
4
  isOpen: boolean;
5
+ children: ReactNode;
5
6
  onClose: () => void;
6
7
  onBeforeClose?: () => void;
7
- }>;
8
+ }
8
9
  declare function useTransitionModal({ isOpen, onClose, onBeforeClose, children }: ITransition): {
9
10
  animation: boolean;
10
11
  content: any;
@@ -131,6 +131,7 @@ export declare const Urls_translations: {
131
131
  myMoney_budget: string;
132
132
  myMoney_accounts: string;
133
133
  myMoney_accumulations: string;
134
+ myMoney_debts: string;
134
135
  myMoney_credits: string;
135
136
  myMoney_goals: string;
136
137
  myMoney_goals_active: string;
@@ -291,6 +292,7 @@ export declare const Urls_translations: {
291
292
  myMoney_budget: string;
292
293
  myMoney_accounts: string;
293
294
  myMoney_accumulations: string;
295
+ myMoney_debts: string;
294
296
  myMoney_credits: string;
295
297
  myMoney_goals: string;
296
298
  myMoney_goals_active: string;
@@ -1,4 +1,4 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { Locales } from '../common.types';
3
3
  interface ILocalizationProps {
4
4
  /** Выбранная локализация **/
@@ -7,8 +7,9 @@ interface ILocalizationProps {
7
7
  interface ILocalization extends ILocalizationProps {
8
8
  isForeignSite: boolean;
9
9
  }
10
- export declare const LocalizationProvider: ({ config, children }: React.PropsWithChildren<{
10
+ export declare const LocalizationProvider: ({ config, children }: {
11
11
  config: ILocalizationProps;
12
- }>) => import("react/jsx-runtime").JSX.Element;
12
+ children: ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
13
14
  export declare const useLocalization: () => ILocalization;
14
15
  export {};