profinansy-ui-lib 2.0.65 → 2.0.66

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,9 +1,9 @@
1
- import { palette } from '../../theme/theme.const';
1
+ import { TTheme } from '../../theme/theme.typed';
2
2
  export declare const getTrial: (rights: Record<string, number | string>, purchased: Record<string, string>) => {
3
3
  trial: any;
4
4
  isPossibleTrial: any;
5
5
  };
6
- export declare const getMainLinksColor: (theme: (typeof palette)['light'], isActive: boolean) => string;
7
- export declare const getDropdownsLinksColor: (theme: (typeof palette)['light'], isActive: boolean, isLocked: boolean) => string;
8
- export declare const getDropdownsIconsColor: (theme: (typeof palette)['light'], isActive: boolean) => string;
9
- export declare const getDropdownItemBackground: (theme: (typeof palette)['light'], isOpen: boolean) => string;
6
+ export declare const getMainLinksColor: (theme: TTheme, isActive: boolean) => string;
7
+ export declare const getDropdownsLinksColor: (theme: TTheme, isActive: boolean, isLocked: boolean) => string;
8
+ export declare const getDropdownsIconsColor: (theme: TTheme, isActive: boolean) => string;
9
+ export declare const getDropdownItemBackground: (theme: TTheme, isOpen: boolean) => string;
@@ -1,11 +1,6 @@
1
+ import { TModesStyle } from './Button.typed';
2
+ import { TTheme } from '../../../theme/theme.typed';
1
3
  export declare const Size: {
2
- L: {
3
- fontWeight: number;
4
- fontSize: string;
5
- lineHeight: string;
6
- height: string;
7
- maxHeight: string;
8
- };
9
4
  M: {
10
5
  fontWeight: number;
11
6
  fontSize: string;
@@ -21,115 +16,4 @@ export declare const Size: {
21
16
  maxHeight: string;
22
17
  };
23
18
  };
24
- export declare const Mode: {
25
- primary: {
26
- default: {
27
- color: string;
28
- border: string;
29
- background: string;
30
- };
31
- hover: {
32
- background: string;
33
- borderColor: string;
34
- color: string;
35
- };
36
- active: {
37
- background: string;
38
- borderColor: string;
39
- color: string;
40
- };
41
- disabled: {
42
- background: string;
43
- borderColor: string;
44
- color: string;
45
- };
46
- };
47
- secondary: {
48
- default: {
49
- color: string;
50
- border: string;
51
- background: string;
52
- };
53
- hover: {
54
- background: string;
55
- borderColor: string;
56
- color: string;
57
- };
58
- active: {
59
- background: string;
60
- borderColor: string;
61
- color: string;
62
- };
63
- disabled: {
64
- background: string;
65
- borderColor: string;
66
- color: string;
67
- };
68
- };
69
- tertiary: {
70
- default: {
71
- color: string;
72
- border: string;
73
- background: string;
74
- };
75
- hover: {
76
- background: string;
77
- borderColor: string;
78
- color: string;
79
- };
80
- active: {
81
- background: string;
82
- borderColor: string;
83
- color: string;
84
- };
85
- disabled: {
86
- background: string;
87
- borderColor: string;
88
- color: string;
89
- };
90
- };
91
- negative: {
92
- default: {
93
- color: string;
94
- border: string;
95
- background: string;
96
- };
97
- hover: {
98
- background: string;
99
- borderColor: string;
100
- color: string;
101
- };
102
- active: {
103
- background: string;
104
- borderColor: string;
105
- color: string;
106
- };
107
- disabled: {
108
- background: string;
109
- borderColor: string;
110
- color: string;
111
- };
112
- };
113
- neutral: {
114
- default: {
115
- color: string;
116
- border: string;
117
- background: string;
118
- };
119
- hover: {
120
- background: string;
121
- borderColor: string;
122
- color: string;
123
- };
124
- active: {
125
- background: string;
126
- borderColor: string;
127
- color: string;
128
- };
129
- disabled: {
130
- background: string;
131
- borderColor: string;
132
- color: string;
133
- };
134
- };
135
- };
19
+ export declare const getMode: (theme: TTheme) => TModesStyle;
@@ -1,5 +1,6 @@
1
+ import { DefaultTheme } from 'styled-components';
1
2
  import { TButtonMode, ButtonSize } from './Button.typed';
2
- declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
3
+ declare const Button: import("styled-components").StyledComponent<"button", DefaultTheme, {
3
4
  size: ButtonSize;
4
5
  width: string;
5
6
  mode: TButtonMode;
@@ -8,15 +9,15 @@ declare const Button: import("styled-components").StyledComponent<"button", impo
8
9
  isIconRight: boolean;
9
10
  isFill: boolean;
10
11
  }, never>;
11
- declare const IconLeft: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
12
+ declare const IconLeft: import("styled-components").StyledComponent<"span", DefaultTheme, {
12
13
  size: ButtonSize;
13
14
  isText: boolean;
14
15
  }, never>;
15
- declare const IconRight: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
16
+ declare const IconRight: import("styled-components").StyledComponent<"span", DefaultTheme, {
16
17
  size: ButtonSize;
17
18
  isText: boolean;
18
19
  }, never>;
19
- declare const Loading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
20
+ declare const Loading: import("styled-components").StyledComponent<"div", DefaultTheme, {
20
21
  mode: TButtonMode;
21
22
  }, never>;
22
23
  export { Loading, IconRight, IconLeft, Button };
@@ -1,8 +1,8 @@
1
1
  import CSS from 'csstype';
2
2
  import { ReactNode } from 'react';
3
3
  import { SizeLoader } from '../Loader';
4
- export type TButtonMode = 'primary' | 'secondary' | 'tertiary' | 'negative' | 'neutral';
5
- export type ButtonSize = 'L' | 'M' | 'S';
4
+ export type TButtonMode = 'primary' | 'tertiary' | 'negative' | 'neutral';
5
+ export type ButtonSize = 'M' | 'S';
6
6
  export interface IButton {
7
7
  type?: 'submit' | 'button';
8
8
  text?: string;
@@ -20,3 +20,21 @@ export interface IButton {
20
20
  loaderSize?: SizeLoader;
21
21
  isFill?: boolean;
22
22
  }
23
+ export type TModesStyle = {
24
+ primary: TStatesStyle;
25
+ tertiary: TStatesStyle;
26
+ negative: TStatesStyle;
27
+ neutral: TStatesStyle;
28
+ };
29
+ type TStatesStyle = {
30
+ default: TModeStyle;
31
+ hover: TModeStyle;
32
+ active: TModeStyle;
33
+ disabled: TModeStyle;
34
+ };
35
+ type TModeStyle = {
36
+ color: string;
37
+ background: string;
38
+ border?: string;
39
+ };
40
+ export {};
@@ -5,7 +5,7 @@ declare const Container: import("styled-components").StyledComponent<"div", impo
5
5
  }, never>;
6
6
  declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
7
  declare const TitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- declare const Title: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, {}, never>;
8
+ declare const Title: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, {}, never>;
9
9
  declare const TitleLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
10
10
  declare const Hint: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
11
  declare const Subtitle: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
@@ -2,6 +2,7 @@ import { CheckboxForm, CheckboxSize } from './Checkbox.typed';
2
2
  declare const Element: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
3
3
  size: CheckboxSize;
4
4
  form: CheckboxForm;
5
+ readonly: boolean;
5
6
  }, never>;
6
7
  declare const Container: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
7
8
  align: string;
@@ -1,9 +1,6 @@
1
1
  import React from 'react';
2
2
  export type CheckboxSize = 'M' | 'S';
3
- export declare enum CheckboxForm {
4
- square = "square",
5
- circle = "circle"
6
- }
3
+ export type CheckboxForm = 'square' | 'circle';
7
4
  export interface ICheckbox {
8
5
  checked?: boolean;
9
6
  text?: string;
@@ -1,2 +1 @@
1
1
  export { Checkbox } from './Checkbox';
2
- export { CheckboxSize, CheckboxForm } from './Checkbox.typed';
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Header } from './components/header';
2
2
  import { Footer } from './components/footer';
3
3
  import { useHidingFromApp } from './hooks/useHiddingFromApp';
4
4
  import { useHidingChat } from './hooks/useHidingChat';
5
- import { Checkbox, CheckboxForm } from './components/uikit/Checkbox';
5
+ import { Checkbox } from './components/uikit/Checkbox';
6
6
  import { Radio } from './components/uikit/Radio';
7
7
  import { Portal } from './components/uikit/Portal';
8
8
  import { Loader } from './components/uikit/Loader';
@@ -29,4 +29,4 @@ import { Skeleton } from './components/uikit/Skeleton';
29
29
  import { TabListCell } from './components/uikit/TabListCell';
30
30
  import { palette } from './theme/theme.const';
31
31
  import { ThemeProvider, useMode } from './theme/ThemeProvider';
32
- export { Footer, Header, CheckboxForm, Checkbox, Radio, Portal, Loader, Button, TextButton, RegexPattern, Input, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp };
32
+ export { Footer, Header, Checkbox, Radio, Portal, Loader, Button, TextButton, RegexPattern, Input, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp };