profinansy-ui-lib 2.0.34 → 2.0.36

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.
@@ -3,6 +3,6 @@ export declare const getTrial: (rights: Record<string, number | string>, purchas
3
3
  isPossibleTrial: any;
4
4
  };
5
5
  export declare const getMainLinksColor: (isBlack: boolean, isActive: boolean) => "#6553F5" | "#898989" | "#C0C0C0" | "#756CBB";
6
- export declare const getDropdownsLinksColor: (isBlack: boolean, isActive: boolean, isLocked: boolean) => "#6553F5" | "#9B8EFF" | "#242424" | "#898989" | "#FFFFFF";
6
+ export declare const getDropdownsLinksColor: (isBlack: boolean, isActive: boolean, isLocked: boolean) => "#FFFFFF" | "#6553F5" | "#9B8EFF" | "#242424" | "#898989";
7
7
  export declare const getDropdownsIconsColor: (isBlack: boolean, isActive: boolean) => "#6553F5" | "#9B8EFF" | "#A2A1A7";
8
- export declare const getDropdownItemBackground: (isBlack: boolean, isOpen: boolean) => "#fff" | "transparent" | "#2B2B2B" | "#f8f8f8";
8
+ export declare const getDropdownItemBackground: (isBlack: boolean, isOpen: boolean) => "transparent" | "#fff" | "#2B2B2B" | "#f8f8f8";
@@ -1,19 +1,19 @@
1
1
  export declare const Size: {
2
- large: {
2
+ L: {
3
3
  fontWeight: number;
4
4
  fontSize: string;
5
5
  lineHeight: string;
6
6
  height: string;
7
7
  maxHeight: string;
8
8
  };
9
- medium: {
9
+ M: {
10
10
  fontWeight: number;
11
11
  fontSize: string;
12
12
  lineHeight: string;
13
13
  height: string;
14
14
  maxHeight: string;
15
15
  };
16
- small: {
16
+ S: {
17
17
  fontWeight: number;
18
18
  fontSize: string;
19
19
  lineHeight: string;
@@ -8,11 +8,7 @@ export declare enum ButtonTheme {
8
8
  Negative = "Negative",
9
9
  Neutral = "Neutral"
10
10
  }
11
- export declare enum ButtonSize {
12
- L = "large",
13
- M = "medium",
14
- S = "small"
15
- }
11
+ export type ButtonSize = 'L' | 'M' | 'S';
16
12
  export interface IButton {
17
13
  type?: 'submit' | 'button';
18
14
  text?: string;
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- export declare enum CheckboxSize {
3
- regular = "regular",
4
- compact = "compact"
5
- }
2
+ export type CheckboxSize = 'M' | 'S';
6
3
  export declare enum CheckboxForm {
7
4
  square = "square",
8
5
  circle = "circle"
@@ -1,11 +1,11 @@
1
1
  export declare const CircleButtonSize: {
2
- large: {
2
+ L: {
3
3
  size: string;
4
4
  };
5
- medium: {
5
+ M: {
6
6
  size: string;
7
7
  };
8
- small: {
8
+ S: {
9
9
  size: string;
10
10
  };
11
11
  };
@@ -1,10 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import CSS from 'csstype';
3
- export declare enum Size {
4
- L = "large",
5
- M = "medium",
6
- S = "small"
7
- }
3
+ export type Size = 'L' | 'M' | 'S';
8
4
  export declare enum Theme {
9
5
  Dark = "Dark",
10
6
  Light = "Light"
@@ -1,9 +1,4 @@
1
- export declare enum SizeLoader {
2
- L = "L",
3
- M = "M",
4
- S = "S",
5
- XS = "XS"
6
- }
1
+ export type SizeLoader = 'L' | 'M' | 'S' | 'XS';
7
2
  export interface ILoader {
8
3
  size?: SizeLoader;
9
4
  color?: string;
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- export declare enum RadioSize {
3
- regular = "regular",
4
- compact = "compact"
5
- }
2
+ export type RadioSize = 'M' | 'S';
6
3
  export interface IRadio {
7
4
  checked?: boolean;
8
5
  text?: string;
@@ -1,10 +1,7 @@
1
1
  import CSS from 'csstype';
2
2
  import React from 'react';
3
3
  import { IPopup } from '../Popup/Popup.typed';
4
- export declare enum SwitchSize {
5
- regular = "regular",
6
- compact = "compact"
7
- }
4
+ export type SwitchSize = 'M' | 'S';
8
5
  export interface ISwitch {
9
6
  checked?: boolean;
10
7
  text?: string;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Header } from './components/header';
2
2
  import { Footer } from './components/footer';
3
- import { CheckboxSize, Checkbox, CheckboxForm } from './components/uikit/Checkbox';
4
- import { Radio, RadioSize } from './components/uikit/Radio';
3
+ import { Checkbox, CheckboxForm } from './components/uikit/Checkbox';
4
+ import { Radio } from './components/uikit/Radio';
5
5
  import { Portal } from './components/uikit/Portal';
6
- import { Loader, SizeLoader } from './components/uikit/Loader';
7
- import { ButtonTheme, ButtonSize, Button } from './components/uikit/Button';
6
+ import { Loader } from './components/uikit/Loader';
7
+ import { ButtonTheme, Button } from './components/uikit/Button';
8
8
  import { TextButtonTheme, TextButton } from './components/uikit/TextButton';
9
9
  import { RegexPattern, Input } from './components/uikit/Input';
10
10
  import { ErrorText } from './components/uikit/ErrorText';
@@ -22,4 +22,4 @@ import { Popup } from './components/uikit/Popup/';
22
22
  import { FieldRow } from './components/uikit/FieldRow';
23
23
  import { Card } from './components/uikit/Card';
24
24
  import { Switch } from './components/uikit/Switch';
25
- export { Footer, Header, CheckboxForm, CheckboxSize, Checkbox, Radio, RadioSize, Portal, Loader, SizeLoader, Button, ButtonSize, ButtonTheme, TextButton, TextButtonTheme, RegexPattern, Input, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, FieldRow, Card, Switch };
25
+ export { Footer, Header, CheckboxForm, Checkbox, Radio, Portal, Loader, Button, ButtonTheme, TextButton, TextButtonTheme, RegexPattern, Input, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, FieldRow, Card, Switch };