@alfalab/core-components-picker-button 11.7.17 → 11.8.0

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 (121) hide show
  1. package/Component-2f466837.d.ts +5 -2
  2. package/colors-facf1d2a.d.ts +3 -0
  3. package/component-03d088c4.d.ts +32 -0
  4. package/component-eb15729d.d.ts +123 -0
  5. package/cssm/Component-2f466837.d.ts +5 -2
  6. package/cssm/colors-facf1d2a.d.ts +3 -0
  7. package/cssm/component-03d088c4.d.ts +32 -0
  8. package/cssm/component-eb15729d.d.ts +123 -0
  9. package/cssm/field/index.module.css +2 -1
  10. package/cssm/index-03d088c4.d.ts +20 -0
  11. package/cssm/index-281accb7.d.ts +19 -0
  12. package/cssm/index-d691530f.d.ts +1 -0
  13. package/cssm/index.module.css +4 -2
  14. package/cssm/option/index.module.css +2 -1
  15. package/desktop/Component.desktop.js +1 -1
  16. package/esm/Component-2f466837.d.ts +5 -2
  17. package/esm/colors-facf1d2a.d.ts +3 -0
  18. package/esm/component-03d088c4.d.ts +32 -0
  19. package/esm/component-eb15729d.d.ts +123 -0
  20. package/esm/desktop/Component.desktop.js +1 -1
  21. package/esm/field/Component.js +1 -1
  22. package/esm/field/index.css +8 -7
  23. package/esm/index-03d088c4.d.ts +20 -0
  24. package/esm/index-281accb7.d.ts +19 -0
  25. package/esm/index-d691530f.d.ts +1 -0
  26. package/esm/index.css +9 -7
  27. package/esm/option/Component.js +1 -1
  28. package/esm/option/index.css +6 -5
  29. package/field/Component.js +1 -1
  30. package/field/index.css +8 -7
  31. package/index-03d088c4.d.ts +20 -0
  32. package/index-281accb7.d.ts +19 -0
  33. package/index-d691530f.d.ts +1 -0
  34. package/index.css +9 -7
  35. package/modern/Component-2f466837.d.ts +5 -2
  36. package/modern/colors-facf1d2a.d.ts +3 -0
  37. package/modern/component-03d088c4.d.ts +32 -0
  38. package/modern/component-eb15729d.d.ts +123 -0
  39. package/modern/desktop/Component.desktop.js +1 -1
  40. package/modern/field/Component.js +1 -1
  41. package/modern/field/index.css +8 -7
  42. package/modern/index-03d088c4.d.ts +20 -0
  43. package/modern/index-281accb7.d.ts +19 -0
  44. package/modern/index-d691530f.d.ts +1 -0
  45. package/modern/index.css +9 -7
  46. package/modern/option/Component.js +1 -1
  47. package/modern/option/index.css +6 -5
  48. package/moderncssm/Component-11f20b2e.d.ts +13 -0
  49. package/moderncssm/Component-2f466837.d.ts +171 -0
  50. package/moderncssm/Component-7d83ec1e.d.ts +5 -0
  51. package/moderncssm/Component-c44170fe.d.ts +291 -0
  52. package/moderncssm/Component.desktop-63dec22f.d.ts +6 -0
  53. package/moderncssm/Component.desktop-ebda875c.d.ts +6 -0
  54. package/moderncssm/Component.mobile-96988a65.d.ts +6 -0
  55. package/moderncssm/Component.mobile-ebda875c.d.ts +6 -0
  56. package/moderncssm/Component.responsive.d.ts +27 -0
  57. package/moderncssm/Component.responsive.js +15 -0
  58. package/moderncssm/Context-c2e6f1b2.d.ts +4 -0
  59. package/moderncssm/ResponsiveContext-d6bfd5b7.d.ts +5 -0
  60. package/moderncssm/browser-a216f694.d.ts +6 -0
  61. package/moderncssm/colors-facf1d2a.d.ts +3 -0
  62. package/moderncssm/component-03d088c4.d.ts +32 -0
  63. package/moderncssm/component-eb15729d.d.ts +123 -0
  64. package/moderncssm/consts-6c9aad46.d.ts +12 -0
  65. package/moderncssm/consts-ef43bf1b.d.ts +12 -0
  66. package/moderncssm/desktop/Component.desktop.d.ts +59 -0
  67. package/moderncssm/desktop/Component.desktop.js +32 -0
  68. package/moderncssm/desktop/index.d.ts +2 -0
  69. package/moderncssm/desktop/index.js +1 -0
  70. package/moderncssm/field/Component.d.ts +14 -0
  71. package/moderncssm/field/Component.js +39 -0
  72. package/moderncssm/field/index.d.ts +1 -0
  73. package/moderncssm/field/index.js +1 -0
  74. package/moderncssm/field/index.module.css +22 -0
  75. package/moderncssm/iconMap-09d2f9c9.d.ts +4 -0
  76. package/moderncssm/index-03d088c4.d.ts +20 -0
  77. package/moderncssm/index-064acd29.d.ts +13 -0
  78. package/moderncssm/index-09d2f9c9.d.ts +38 -0
  79. package/moderncssm/index-11f20b2e.d.ts +215 -0
  80. package/moderncssm/index-281accb7.d.ts +19 -0
  81. package/moderncssm/index-2f466837.d.ts +74 -0
  82. package/moderncssm/index-3109f463.d.ts +66 -0
  83. package/moderncssm/index-63dec22f.d.ts +2 -0
  84. package/moderncssm/index-96988a65.d.ts +2 -0
  85. package/moderncssm/index-c44170fe.d.ts +19 -0
  86. package/moderncssm/index-d691530f.d.ts +1 -0
  87. package/moderncssm/index-ebda875c.d.ts +3 -0
  88. package/moderncssm/index.d.ts +2 -0
  89. package/moderncssm/index.js +1 -0
  90. package/moderncssm/index.module.css +18 -0
  91. package/moderncssm/mobile/Component.mobile.d.ts +19 -0
  92. package/moderncssm/mobile/Component.mobile.js +30 -0
  93. package/moderncssm/mobile/index.d.ts +2 -0
  94. package/moderncssm/mobile/index.js +1 -0
  95. package/moderncssm/option/Component.d.ts +12 -0
  96. package/moderncssm/option/Component.js +14 -0
  97. package/moderncssm/option/index.d.ts +1 -0
  98. package/moderncssm/option/index.js +1 -0
  99. package/moderncssm/option/index.module.css +17 -0
  100. package/moderncssm/shared/index.d.ts +2 -0
  101. package/moderncssm/shared/index.js +1 -0
  102. package/moderncssm/types-1328ead9.d.ts +21 -0
  103. package/moderncssm/types-a870d1f8.d.ts +117 -0
  104. package/moderncssm/types.d.ts +3 -0
  105. package/moderncssm/types.js +1 -0
  106. package/moderncssm/typings-7d83ec1e.d.ts +1160 -0
  107. package/moderncssm/typings-d6bfd5b7.d.ts +62 -0
  108. package/moderncssm/use-skeleton-1328ead9.d.ts +44 -0
  109. package/moderncssm/use-visualviewport-size-2f466837.d.ts +3 -0
  110. package/moderncssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  111. package/moderncssm/usePortalContainer-2f466837.d.ts +2 -0
  112. package/moderncssm/utils/index.d.ts +6 -0
  113. package/moderncssm/utils/index.js +19 -0
  114. package/moderncssm/utils-3942b092.d.ts +81 -0
  115. package/moderncssm/utils-ed29dc0e.d.ts +5 -0
  116. package/option/Component.js +1 -1
  117. package/option/index.css +6 -5
  118. package/package.json +6 -6
  119. package/src/field/index.module.css +2 -2
  120. package/src/index.module.css +3 -3
  121. package/src/option/index.module.css +2 -2
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
2
+ import React from "react";
3
3
  import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
+ declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
5
+ declare const IconCheck20: () => React.JSX.Element;
6
+ declare const IconCheck24: () => React.JSX.Element;
4
7
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
8
  type Align = 'start' | 'center';
6
9
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
165
168
  */
166
169
  labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
167
170
  } & React.RefAttributes<HTMLLabelElement>>;
168
- export { CheckboxProps, Checkbox };
171
+ export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
@@ -0,0 +1,3 @@
1
+ declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
2
+ type Color = typeof colors[number];
3
+ export { colors, Color };
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TitleProps } from "./index-03d088c4";
4
+ type TitleResponsiveProps = TitleProps & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ };
11
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
12
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
14
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
15
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
16
+ font?: "styrene" | "system" | undefined;
17
+ defaultMargins?: boolean | undefined;
18
+ className?: string | undefined;
19
+ dataTestId?: string | undefined;
20
+ children?: React.ReactNode;
21
+ rowLimit?: 1 | 2 | 3 | undefined;
22
+ showSkeleton?: boolean | undefined;
23
+ skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & {
26
+ /**
27
+ * Контрольная точка, с нее начинается desktop версия
28
+ * @default 1024
29
+ */
30
+ breakpoint?: number | undefined;
31
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
32
+ export { TitleResponsiveProps, TitleResponsive };
@@ -0,0 +1,123 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { HTMLAttributes } from "react";
4
+ import { Color } from "./colors-facf1d2a";
5
+ import { TextSkeletonProps } from "./types-1328ead9";
6
+ declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
7
+ type NativeProps = HTMLAttributes<HTMLHeadingElement>;
8
+ type TitleProps = Omit<NativeProps, 'color'> & {
9
+ /**
10
+ * HTML тег
11
+ */
12
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
13
+ /**
14
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
15
+ */
16
+ view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
17
+ /**
18
+ * Цвет текста
19
+ */
20
+ color?: Color;
21
+ /**
22
+ * Толщина шрифта
23
+ */
24
+ weight?: 'regular' | 'medium' | 'bold' | 'semibold';
25
+ /**
26
+ * Шрифт текста
27
+ */
28
+ font?: 'styrene' | 'system';
29
+ /**
30
+ * Добавляет отступы
31
+ */
32
+ defaultMargins?: boolean;
33
+ /**
34
+ * Css-класс для стилизации (native prop)
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Id компонента для тестов
39
+ */
40
+ dataTestId?: string;
41
+ /**
42
+ * Контент (native prop)
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * Количество строк
47
+ */
48
+ rowLimit?: 1 | 2 | 3;
49
+ /**
50
+ * Показать скелетон
51
+ */
52
+ showSkeleton?: boolean;
53
+ /**
54
+ * Пропы для скелетона
55
+ */
56
+ skeletonProps?: TextSkeletonProps;
57
+ /**
58
+ * Значение по-умолчанию для хука useMatchMedia
59
+ */
60
+ defaultMatchMediaValue?: boolean | (() => boolean);
61
+ };
62
+ type PrivateProps = {
63
+ styles: {
64
+ [key: string]: string;
65
+ };
66
+ platform: 'mobile' | 'desktop';
67
+ };
68
+ type TitleElementType = HTMLHeadingElement | HTMLDivElement;
69
+ declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
70
+ /**
71
+ * HTML тег
72
+ */
73
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
74
+ /**
75
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
76
+ */
77
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
78
+ /**
79
+ * Цвет текста
80
+ */
81
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
82
+ /**
83
+ * Толщина шрифта
84
+ */
85
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
86
+ /**
87
+ * Шрифт текста
88
+ */
89
+ font?: "styrene" | "system" | undefined;
90
+ /**
91
+ * Добавляет отступы
92
+ */
93
+ defaultMargins?: boolean | undefined;
94
+ /**
95
+ * Css-класс для стилизации (native prop)
96
+ */
97
+ className?: string | undefined;
98
+ /**
99
+ * Id компонента для тестов
100
+ */
101
+ dataTestId?: string | undefined;
102
+ /**
103
+ * Контент (native prop)
104
+ */
105
+ children?: React.ReactNode;
106
+ /**
107
+ * Количество строк
108
+ */
109
+ rowLimit?: 1 | 2 | 3 | undefined;
110
+ /**
111
+ * Показать скелетон
112
+ */
113
+ showSkeleton?: boolean | undefined;
114
+ /**
115
+ * Пропы для скелетона
116
+ */
117
+ skeletonProps?: TextSkeletonProps | undefined;
118
+ /**
119
+ * Значение по-умолчанию для хука useMatchMedia
120
+ */
121
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
122
+ } & PrivateProps & React.RefAttributes<TitleElementType>>;
123
+ export { getDefaultWeight, TitleProps, TitleBase };
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
2
+ import React from "react";
3
3
  import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
+ declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
5
+ declare const IconCheck20: () => React.JSX.Element;
6
+ declare const IconCheck24: () => React.JSX.Element;
4
7
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
8
  type Align = 'start' | 'center';
6
9
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
165
168
  */
166
169
  labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
167
170
  } & React.RefAttributes<HTMLLabelElement>>;
168
- export { CheckboxProps, Checkbox };
171
+ export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
@@ -0,0 +1,3 @@
1
+ declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
2
+ type Color = typeof colors[number];
3
+ export { colors, Color };
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TitleProps } from "./index-03d088c4";
4
+ type TitleResponsiveProps = TitleProps & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ };
11
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
12
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
14
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
15
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
16
+ font?: "styrene" | "system" | undefined;
17
+ defaultMargins?: boolean | undefined;
18
+ className?: string | undefined;
19
+ dataTestId?: string | undefined;
20
+ children?: React.ReactNode;
21
+ rowLimit?: 1 | 2 | 3 | undefined;
22
+ showSkeleton?: boolean | undefined;
23
+ skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & {
26
+ /**
27
+ * Контрольная точка, с нее начинается desktop версия
28
+ * @default 1024
29
+ */
30
+ breakpoint?: number | undefined;
31
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
32
+ export { TitleResponsiveProps, TitleResponsive };
@@ -0,0 +1,123 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { HTMLAttributes } from "react";
4
+ import { Color } from "./colors-facf1d2a";
5
+ import { TextSkeletonProps } from "./types-1328ead9";
6
+ declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
7
+ type NativeProps = HTMLAttributes<HTMLHeadingElement>;
8
+ type TitleProps = Omit<NativeProps, 'color'> & {
9
+ /**
10
+ * HTML тег
11
+ */
12
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
13
+ /**
14
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
15
+ */
16
+ view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
17
+ /**
18
+ * Цвет текста
19
+ */
20
+ color?: Color;
21
+ /**
22
+ * Толщина шрифта
23
+ */
24
+ weight?: 'regular' | 'medium' | 'bold' | 'semibold';
25
+ /**
26
+ * Шрифт текста
27
+ */
28
+ font?: 'styrene' | 'system';
29
+ /**
30
+ * Добавляет отступы
31
+ */
32
+ defaultMargins?: boolean;
33
+ /**
34
+ * Css-класс для стилизации (native prop)
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Id компонента для тестов
39
+ */
40
+ dataTestId?: string;
41
+ /**
42
+ * Контент (native prop)
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * Количество строк
47
+ */
48
+ rowLimit?: 1 | 2 | 3;
49
+ /**
50
+ * Показать скелетон
51
+ */
52
+ showSkeleton?: boolean;
53
+ /**
54
+ * Пропы для скелетона
55
+ */
56
+ skeletonProps?: TextSkeletonProps;
57
+ /**
58
+ * Значение по-умолчанию для хука useMatchMedia
59
+ */
60
+ defaultMatchMediaValue?: boolean | (() => boolean);
61
+ };
62
+ type PrivateProps = {
63
+ styles: {
64
+ [key: string]: string;
65
+ };
66
+ platform: 'mobile' | 'desktop';
67
+ };
68
+ type TitleElementType = HTMLHeadingElement | HTMLDivElement;
69
+ declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
70
+ /**
71
+ * HTML тег
72
+ */
73
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
74
+ /**
75
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
76
+ */
77
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
78
+ /**
79
+ * Цвет текста
80
+ */
81
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
82
+ /**
83
+ * Толщина шрифта
84
+ */
85
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
86
+ /**
87
+ * Шрифт текста
88
+ */
89
+ font?: "styrene" | "system" | undefined;
90
+ /**
91
+ * Добавляет отступы
92
+ */
93
+ defaultMargins?: boolean | undefined;
94
+ /**
95
+ * Css-класс для стилизации (native prop)
96
+ */
97
+ className?: string | undefined;
98
+ /**
99
+ * Id компонента для тестов
100
+ */
101
+ dataTestId?: string | undefined;
102
+ /**
103
+ * Контент (native prop)
104
+ */
105
+ children?: React.ReactNode;
106
+ /**
107
+ * Количество строк
108
+ */
109
+ rowLimit?: 1 | 2 | 3 | undefined;
110
+ /**
111
+ * Показать скелетон
112
+ */
113
+ showSkeleton?: boolean | undefined;
114
+ /**
115
+ * Пропы для скелетона
116
+ */
117
+ skeletonProps?: TextSkeletonProps | undefined;
118
+ /**
119
+ * Значение по-умолчанию для хука useMatchMedia
120
+ */
121
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
122
+ } & PrivateProps & React.RefAttributes<TitleElementType>>;
123
+ export { getDefaultWeight, TitleProps, TitleBase };
@@ -17,6 +17,7 @@
17
17
  --gap-2xs: 4px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
18
18
 
19
19
  /* новые значения, используйте их */
20
+ --gap-4: var(--gap-2xs);
20
21
  } :root {
21
22
  } :root {
22
23
  --arrow-transform: rotate(180deg);
@@ -26,7 +27,7 @@
26
27
  } .addonsContainer {
27
28
  display: flex
28
29
  } .addonsContainer.showControlIcon {
29
- margin-right: var(--gap-2xs);
30
+ margin-right: var(--gap-4);
30
31
  } .open {
31
32
  transform: var(--arrow-transform);
32
33
  } .linkOpen:not(:hover) {
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TitleProps } from "./component-eb15729d";
4
+ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
5
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
7
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
8
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
9
+ font?: "styrene" | "system" | undefined;
10
+ defaultMargins?: boolean | undefined;
11
+ className?: string | undefined;
12
+ dataTestId?: string | undefined;
13
+ children?: React.ReactNode;
14
+ rowLimit?: 1 | 2 | 3 | undefined;
15
+ showSkeleton?: boolean | undefined;
16
+ skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
17
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
18
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
19
+ export { Title };
20
+ export type { TitleProps };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
4
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
6
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
7
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
8
+ font?: "styrene" | "system" | undefined;
9
+ defaultMargins?: boolean | undefined;
10
+ className?: string | undefined;
11
+ dataTestId?: string | undefined;
12
+ children?: React.ReactNode;
13
+ rowLimit?: 1 | 2 | 3 | undefined;
14
+ showSkeleton?: boolean | undefined;
15
+ skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
16
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
18
+ export { TitleMobile };
19
+ export type { TitleProps as TitleMobileProps } from "./component-eb15729d";
@@ -0,0 +1 @@
1
+ export * from "./use-skeleton-1328ead9";
@@ -17,14 +17,16 @@
17
17
  --gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
18
18
 
19
19
  /* новые значения, используйте их */
20
+ --gap-8: var(--gap-xs);
21
+ --gap-16: var(--gap-m);
20
22
  } :root {
21
23
  } :root {
22
24
  } .container {
23
25
  min-width: auto;
24
26
  } :global(.cc-picker-button).optionsPopover.sideGap {
25
- padding: 0 var(--gap-xs);
27
+ padding: 0 var(--gap-8);
26
28
  } :global(.cc-picker-button) .option {
27
- padding: 0 var(--gap-m)
29
+ padding: 0 var(--gap-16)
28
30
  } :global(.cc-picker-button) .option:before {
29
31
  /* Удаляем разделители у опций выпадающего списка. */
30
32
  display: none;
@@ -16,6 +16,7 @@
16
16
  --gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
17
17
 
18
18
  /* новые значения, используйте их */
19
+ --gap-12: var(--gap-s);
19
20
  } :root {
20
21
  } :root {
21
22
  } .container {
@@ -23,7 +24,7 @@
23
24
  align-items: center;
24
25
  } .icon {
25
26
  display: flex;
26
- margin-right: var(--gap-s);
27
+ margin-right: var(--gap-12);
27
28
  } .content {
28
29
  overflow: hidden;
29
30
  flex: 1;
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"container":"picker-button__container_xquy1","optionsPopover":"picker-button__optionsPopover_xquy1","sideGap":"picker-button__sideGap_xquy1","option":"picker-button__option_xquy1"};
18
+ var styles = {"container":"picker-button__container_1xu2g","optionsPopover":"picker-button__optionsPopover_1xu2g","sideGap":"picker-button__sideGap_1xu2g","option":"picker-button__option_1xu2g"};
19
19
  require('./../index.css')
20
20
 
21
21
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
2
+ import React from "react";
3
3
  import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
+ declare const getIcon: (size: "s" | "m" | 20 | 24) => React.JSX.Element;
5
+ declare const IconCheck20: () => React.JSX.Element;
6
+ declare const IconCheck24: () => React.JSX.Element;
4
7
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
8
  type Align = 'start' | 'center';
6
9
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -165,4 +168,4 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
165
168
  */
166
169
  labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
167
170
  } & React.RefAttributes<HTMLLabelElement>>;
168
- export { CheckboxProps, Checkbox };
171
+ export { getIcon, IconCheck20, IconCheck24, CheckboxProps, Checkbox };
@@ -0,0 +1,3 @@
1
+ declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
2
+ type Color = typeof colors[number];
3
+ export { colors, Color };
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TitleProps } from "./index-03d088c4";
4
+ type TitleResponsiveProps = TitleProps & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ };
11
+ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
12
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
14
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
15
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
16
+ font?: "styrene" | "system" | undefined;
17
+ defaultMargins?: boolean | undefined;
18
+ className?: string | undefined;
19
+ dataTestId?: string | undefined;
20
+ children?: React.ReactNode;
21
+ rowLimit?: 1 | 2 | 3 | undefined;
22
+ showSkeleton?: boolean | undefined;
23
+ skeletonProps?: import("./types-1328ead9").TextSkeletonProps | undefined;
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & {
26
+ /**
27
+ * Контрольная точка, с нее начинается desktop версия
28
+ * @default 1024
29
+ */
30
+ breakpoint?: number | undefined;
31
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
32
+ export { TitleResponsiveProps, TitleResponsive };
@@ -0,0 +1,123 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { HTMLAttributes } from "react";
4
+ import { Color } from "./colors-facf1d2a";
5
+ import { TextSkeletonProps } from "./types-1328ead9";
6
+ declare function getDefaultWeight(font: "styrene" | "system", platform: "mobile" | "desktop"): "medium" | "bold" | "semibold";
7
+ type NativeProps = HTMLAttributes<HTMLHeadingElement>;
8
+ type TitleProps = Omit<NativeProps, 'color'> & {
9
+ /**
10
+ * HTML тег
11
+ */
12
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
13
+ /**
14
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
15
+ */
16
+ view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
17
+ /**
18
+ * Цвет текста
19
+ */
20
+ color?: Color;
21
+ /**
22
+ * Толщина шрифта
23
+ */
24
+ weight?: 'regular' | 'medium' | 'bold' | 'semibold';
25
+ /**
26
+ * Шрифт текста
27
+ */
28
+ font?: 'styrene' | 'system';
29
+ /**
30
+ * Добавляет отступы
31
+ */
32
+ defaultMargins?: boolean;
33
+ /**
34
+ * Css-класс для стилизации (native prop)
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Id компонента для тестов
39
+ */
40
+ dataTestId?: string;
41
+ /**
42
+ * Контент (native prop)
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * Количество строк
47
+ */
48
+ rowLimit?: 1 | 2 | 3;
49
+ /**
50
+ * Показать скелетон
51
+ */
52
+ showSkeleton?: boolean;
53
+ /**
54
+ * Пропы для скелетона
55
+ */
56
+ skeletonProps?: TextSkeletonProps;
57
+ /**
58
+ * Значение по-умолчанию для хука useMatchMedia
59
+ */
60
+ defaultMatchMediaValue?: boolean | (() => boolean);
61
+ };
62
+ type PrivateProps = {
63
+ styles: {
64
+ [key: string]: string;
65
+ };
66
+ platform: 'mobile' | 'desktop';
67
+ };
68
+ type TitleElementType = HTMLHeadingElement | HTMLDivElement;
69
+ declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
70
+ /**
71
+ * HTML тег
72
+ */
73
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
74
+ /**
75
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
76
+ */
77
+ view?: "small" | "medium" | "xlarge" | "large" | "xsmall" | undefined;
78
+ /**
79
+ * Цвет текста
80
+ */
81
+ color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
82
+ /**
83
+ * Толщина шрифта
84
+ */
85
+ weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
86
+ /**
87
+ * Шрифт текста
88
+ */
89
+ font?: "styrene" | "system" | undefined;
90
+ /**
91
+ * Добавляет отступы
92
+ */
93
+ defaultMargins?: boolean | undefined;
94
+ /**
95
+ * Css-класс для стилизации (native prop)
96
+ */
97
+ className?: string | undefined;
98
+ /**
99
+ * Id компонента для тестов
100
+ */
101
+ dataTestId?: string | undefined;
102
+ /**
103
+ * Контент (native prop)
104
+ */
105
+ children?: React.ReactNode;
106
+ /**
107
+ * Количество строк
108
+ */
109
+ rowLimit?: 1 | 2 | 3 | undefined;
110
+ /**
111
+ * Показать скелетон
112
+ */
113
+ showSkeleton?: boolean | undefined;
114
+ /**
115
+ * Пропы для скелетона
116
+ */
117
+ skeletonProps?: TextSkeletonProps | undefined;
118
+ /**
119
+ * Значение по-умолчанию для хука useMatchMedia
120
+ */
121
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
122
+ } & PrivateProps & React.RefAttributes<TitleElementType>>;
123
+ export { getDefaultWeight, TitleProps, TitleBase };