skillgrid 0.0.29 → 0.0.30

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.
@@ -6,11 +6,11 @@ export type InputComponent = 'input' | 'textarea';
6
6
  /**
7
7
  * Размер компонента Input
8
8
  */
9
- export type InputSize = 'small' | 'medium' | 'large';
9
+ export type InputSize = 'S' | 'M' | 'L' | 'XL';
10
10
  /**
11
11
  * Размер компонента InputWrapper
12
12
  */
13
- export type InputWrapperSize = 'small' | 'medium' | 'large';
13
+ export type InputWrapperSize = 'S' | 'M' | 'L' | 'XL';
14
14
  /**
15
15
  * Пропсы для компонента Input
16
16
  */
@@ -2,7 +2,7 @@ import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes,
2
2
  /**
3
3
  * Размеры для компонента InputBase
4
4
  */
5
- export type InputBaseSize = 'small' | 'medium' | 'large';
5
+ export type InputBaseSize = 'S' | 'M' | 'L' | 'XL';
6
6
  /**
7
7
  * Типы компонентов для InputBase
8
8
  */
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ListProps } from './List.type';
3
- export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLOListElement | HTMLUListElement>> & {
4
- Item: React.FC<import('./ListItem/ListItem').ListItemProps>;
2
+ export declare const List: import('react').ForwardRefExoticComponent<ListProps & import('react').RefAttributes<HTMLOListElement | HTMLUListElement>> & {
3
+ Item: import('react').FC<import('./ListItem/ListItem').ListItemProps>;
5
4
  };
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { PaletteProps } from './Palette.type';
3
2
  declare const Palette: React.FC<PaletteProps>;
4
3
  export default Palette;
@@ -2,7 +2,7 @@ import { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';
2
2
  /**
3
3
  * Размеры для компонента TextArea
4
4
  */
5
- export type TextAreaSize = 'small' | 'medium';
5
+ export type TextAreaSize = 'M' | 'L';
6
6
  /**
7
7
  * Пропсы для компонента TextArea
8
8
  */
@@ -2,22 +2,22 @@
2
2
  * Константы для размеров TextArea
3
3
  */
4
4
  export declare const SIZES: {
5
- readonly SMALL: "small";
6
- readonly MEDIUM: "medium";
5
+ readonly M: "M";
6
+ readonly L: "L";
7
7
  };
8
8
  /**
9
9
  * Константы для позиций
10
10
  */
11
11
  export declare const POSITIONS: {
12
- readonly SMALL: "12px";
13
- readonly MEDIUM: "16px";
12
+ readonly M: "12px";
13
+ readonly L: "16px";
14
14
  };
15
15
  /**
16
16
  * Константы для размеров иконок
17
17
  */
18
18
  export declare const ICON_SIZES: {
19
- readonly SMALL: "xs";
20
- readonly MEDIUM: "sm";
19
+ readonly M: "xs";
20
+ readonly L: "sm";
21
21
  };
22
22
  /**
23
23
  * Константы для resize режимов
@@ -32,32 +32,32 @@ export declare const RESIZE_MODES: {
32
32
  * Константы для высот wrapper
33
33
  */
34
34
  export declare const WRAPPER_HEIGHTS: {
35
- readonly SMALL: "112px";
36
- readonly MEDIUM: "56px";
35
+ readonly M: "112px";
36
+ readonly L: "56px";
37
37
  };
38
38
  /**
39
39
  * Константы для высот textarea
40
40
  */
41
41
  export declare const TEXTAREA_HEIGHTS: {
42
- readonly SMALL: "48px";
43
- readonly MEDIUM: "22px";
42
+ readonly M: "48px";
43
+ readonly L: "22px";
44
44
  };
45
45
  /**
46
46
  * Константы для padding
47
47
  */
48
48
  export declare const PADDING: {
49
- readonly SMALL: "12px 12px 12px 12px";
50
- readonly MEDIUM: "16px 16px 16px 16px";
51
- readonly MEDIUM_WITH_PREFIX: "12px 16px 12px 16px";
52
- readonly MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px";
49
+ readonly M: "12px 12px 12px 12px";
50
+ readonly L: "16px 16px 16px 16px";
51
+ readonly L_WITH_PREFIX: "12px 16px 12px 16px";
52
+ readonly L_FLOATING_LABEL: "8px 16px 8px 16px";
53
53
  };
54
54
  /**
55
55
  * Константы для minHeight значений
56
56
  */
57
57
  export declare const MIN_HEIGHTS: {
58
- readonly SMALL: 48;
59
- readonly MEDIUM: 56;
60
- readonly LARGE: 112;
58
+ readonly M: 48;
59
+ readonly L: 56;
60
+ readonly XL: 112;
61
61
  };
62
62
  export type TextAreaSize = (typeof SIZES)[keyof typeof SIZES];
63
63
  export type TextAreaPosition = (typeof POSITIONS)[keyof typeof POSITIONS];
@@ -23,7 +23,7 @@ export declare const getPadding: (size: TextAreaSize, minHeight?: number, should
23
23
  /**
24
24
  * Получает размер для InputBase в зависимости от размера TextArea и minHeight
25
25
  */
26
- export declare const getInputBaseSize: (size: TextAreaSize, minHeight?: number) => "small" | "medium";
26
+ export declare const getInputBaseSize: (size: TextAreaSize, minHeight?: number) => "M" | "L";
27
27
  /**
28
28
  * Получает размер иконки в зависимости от размера TextArea
29
29
  */
@@ -2,7 +2,7 @@ import { InputHTMLAttributes, ReactNode, ChangeEvent } from 'react';
2
2
  /**
3
3
  * Размеры для компонента TextInput
4
4
  */
5
- export type TextInputSize = 'small' | 'medium' | 'large';
5
+ export type TextInputSize = 'S' | 'M' | 'L' | 'XL';
6
6
  /**
7
7
  * Пропсы для компонента TextInput
8
8
  */
@@ -22,7 +22,7 @@ export interface TextInputProps {
22
22
  /** Показывать ли метку (по умолчанию: true) */
23
23
  showLabel?: boolean;
24
24
  /** Автозаполнение */
25
- autoComplete?: string;
25
+ autoComplete?: HTMLInputElement['autocomplete'];
26
26
  /** Автофокус */
27
27
  autoFocus?: boolean;
28
28
  /** Размер компонента */
@@ -2,8 +2,9 @@
2
2
  * Константы для размеров TextInput
3
3
  */
4
4
  export declare const SIZES: {
5
- readonly SMALL: "small";
6
- readonly MEDIUM: "medium";
7
- readonly LARGE: "large";
5
+ readonly S: "S";
6
+ readonly M: "M";
7
+ readonly L: "L";
8
+ readonly XL: "XL";
8
9
  };
9
10
  export type TextInputSize = (typeof SIZES)[keyof typeof SIZES];
@@ -17,21 +17,29 @@ export declare const getPadding: (size: TextInputSize, showFloatingLabel: boolea
17
17
  */
18
18
  export declare const getHeight: (size: TextInputSize) => string;
19
19
  /**
20
- * Получает отступы префикса и суффикса
20
+ * Получает отступы суффикса
21
21
  */
22
- export declare const getPrefixSuffixSpacing: (size: TextInputSize) => number;
22
+ export declare const getSuffixSpacing: (size: TextInputSize) => number;
23
23
  /**
24
- * Получает стили для большого размера
24
+ * Получает отступы префикса
25
25
  */
26
- export declare const getLargeSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
26
+ export declare const getPrefixSpacing: (size: TextInputSize) => number;
27
27
  /**
28
- * Получает стили для среднего размера
28
+ * Получает стили для S размера
29
29
  */
30
- export declare const getMediumSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
30
+ export declare const getSSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
31
31
  /**
32
- * Получает стили для малого размера
32
+ * Получает стили для XL размера
33
33
  */
34
- export declare const getSmallSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
34
+ export declare const getXLSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
35
+ /**
36
+ * Получает стили для L размера
37
+ */
38
+ export declare const getLSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
39
+ /**
40
+ * Получает стили для M размера
41
+ */
42
+ export declare const getMSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
35
43
  /**
36
44
  * Основная функция для получения стилей размеров
37
45
  */