@alfalab/core-components-select 12.4.7 → 13.0.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 (259) hide show
  1. package/{Component-c832d566.d.ts → Component-395c666f.d.ts} +0 -0
  2. package/{Component-c832d566.js → Component-395c666f.js} +8 -13
  3. package/{Component-0ae85b5e.d.ts → Component-6cb15433.d.ts} +5 -5
  4. package/{Component-0ae85b5e.js → Component-6cb15433.js} +28 -43
  5. package/Component-db573794.d.ts +73 -0
  6. package/Component.d.ts +10 -3
  7. package/Component.js +12 -12
  8. package/components/arrow/Component.js +1 -1
  9. package/components/arrow/index.css +3 -3
  10. package/components/base-select/Component.js +5 -5
  11. package/components/base-select/index.css +15 -9
  12. package/components/base-select/index.d.ts +1 -1
  13. package/components/base-select/index.js +5 -5
  14. package/components/base-select-mobile/Component.js +15 -15
  15. package/components/base-select-mobile/checkmark/Component.js +1 -1
  16. package/components/base-select-mobile/checkmark/index.css +4 -4
  17. package/components/base-select-mobile/index.css +12 -12
  18. package/components/base-select-mobile/index.d.ts +1 -1
  19. package/components/base-select-mobile/index.js +15 -15
  20. package/components/base-select-mobile/options-list/Component.js +2 -2
  21. package/components/base-select-mobile/options-list/index.css +9 -9
  22. package/components/base-select-mobile/options-list/index.js +1 -1
  23. package/components/checkmark/Component.js +1 -1
  24. package/components/checkmark/index.css +7 -7
  25. package/components/field/Component.d.ts +2 -22
  26. package/components/field/Component.js +3 -3
  27. package/components/field/index.css +9 -9
  28. package/components/field/index.js +2 -2
  29. package/components/index.js +18 -18
  30. package/components/native-select/Component.d.ts +2 -2
  31. package/components/native-select/Component.js +1 -1
  32. package/components/native-select/index.js +1 -1
  33. package/components/optgroup/Component.js +1 -1
  34. package/components/optgroup/index.css +6 -6
  35. package/components/option/Component.js +2 -2
  36. package/components/option/index.css +20 -20
  37. package/components/option/index.js +1 -1
  38. package/components/options-list/Component.js +13 -19
  39. package/components/options-list/index.css +6 -6
  40. package/components/options-list/index.js +3 -3
  41. package/components/select-mobile/Component.js +15 -15
  42. package/components/select-mobile/index.d.ts +1 -1
  43. package/components/select-mobile/index.js +15 -15
  44. package/components/select-modal-mobile/Component.js +15 -15
  45. package/components/select-modal-mobile/index.d.ts +1 -1
  46. package/components/select-modal-mobile/index.js +15 -15
  47. package/components/virtual-options-list/Component.js +7 -10
  48. package/components/virtual-options-list/index.css +12 -12
  49. package/components/virtual-options-list/index.js +2 -2
  50. package/cssm/{Component-77d7e4fc.d.ts → Component-095a346d.d.ts} +5 -5
  51. package/cssm/{Component-77d7e4fc.js → Component-095a346d.js} +28 -43
  52. package/cssm/Component-db573794.d.ts +73 -0
  53. package/cssm/{Component-4bd2b7ec.d.ts → Component-f4dd589a.d.ts} +0 -0
  54. package/cssm/{Component-4bd2b7ec.js → Component-f4dd589a.js} +7 -12
  55. package/cssm/Component.d.ts +10 -3
  56. package/cssm/Component.js +15 -15
  57. package/cssm/components/base-select/Component.js +5 -5
  58. package/cssm/components/base-select/index.d.ts +1 -1
  59. package/cssm/components/base-select/index.js +5 -5
  60. package/cssm/components/base-select/index.module.css +8 -2
  61. package/cssm/components/base-select-mobile/Component.js +20 -20
  62. package/cssm/components/base-select-mobile/index.d.ts +1 -1
  63. package/cssm/components/base-select-mobile/index.js +20 -20
  64. package/cssm/components/base-select-mobile/index.module.css +1 -1
  65. package/cssm/components/base-select-mobile/options-list/Component.js +1 -1
  66. package/cssm/components/base-select-mobile/options-list/index.js +1 -1
  67. package/cssm/components/field/Component.d.ts +2 -22
  68. package/cssm/components/field/Component.js +2 -2
  69. package/cssm/components/field/index.js +2 -2
  70. package/cssm/components/index.js +23 -23
  71. package/cssm/components/native-select/Component.d.ts +2 -2
  72. package/cssm/components/native-select/Component.js +1 -1
  73. package/cssm/components/native-select/index.js +1 -1
  74. package/cssm/components/option/Component.js +1 -1
  75. package/cssm/components/option/index.js +1 -1
  76. package/cssm/components/options-list/Component.js +12 -18
  77. package/cssm/components/options-list/index.js +3 -3
  78. package/cssm/components/select-mobile/Component.js +20 -20
  79. package/cssm/components/select-mobile/index.d.ts +1 -1
  80. package/cssm/components/select-mobile/index.js +20 -20
  81. package/cssm/components/select-modal-mobile/Component.js +20 -20
  82. package/cssm/components/select-modal-mobile/index.d.ts +1 -1
  83. package/cssm/components/select-modal-mobile/index.js +20 -20
  84. package/cssm/components/virtual-options-list/Component.js +6 -9
  85. package/cssm/components/virtual-options-list/index.js +2 -2
  86. package/cssm/{hook-f5b8fe4f.d.ts → hook-edac5428.d.ts} +2 -4
  87. package/cssm/index.js +23 -23
  88. package/cssm/presets/index.d.ts +1 -1
  89. package/cssm/presets/index.js +20 -20
  90. package/cssm/presets/useLazyLoading/hook.d.ts +2 -2
  91. package/cssm/presets/useLazyLoading/hook.js +4 -4
  92. package/cssm/presets/useSelectWithApply/hook.js +20 -20
  93. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +20 -20
  94. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  95. package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +20 -20
  96. package/cssm/presets/useSelectWithLoading/hook.js +1 -1
  97. package/{esm/tslib.es6-14867fac.d.ts → cssm/tslib.es6-0857346e.d.ts} +8 -4
  98. package/{tslib.es6-beb5d518.js → cssm/tslib.es6-0857346e.js} +12 -9
  99. package/cssm/typings.d.ts +2 -2
  100. package/cssm/utils.d.ts +2 -2
  101. package/esm/{Component-b4fcaaca.d.ts → Component-2cf53a63.d.ts} +5 -5
  102. package/esm/{Component-b4fcaaca.js → Component-2cf53a63.js} +28 -43
  103. package/esm/{Component-d190d712.d.ts → Component-878fd5fa.d.ts} +0 -0
  104. package/esm/{Component-d190d712.js → Component-878fd5fa.js} +8 -13
  105. package/esm/Component-db573794.d.ts +73 -0
  106. package/esm/Component.d.ts +10 -3
  107. package/esm/Component.js +12 -12
  108. package/esm/components/arrow/Component.js +1 -1
  109. package/esm/components/arrow/index.css +3 -3
  110. package/esm/components/base-select/Component.js +5 -5
  111. package/esm/components/base-select/index.css +15 -9
  112. package/esm/components/base-select/index.d.ts +1 -1
  113. package/esm/components/base-select/index.js +5 -5
  114. package/esm/components/base-select-mobile/Component.js +15 -15
  115. package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
  116. package/esm/components/base-select-mobile/checkmark/index.css +4 -4
  117. package/esm/components/base-select-mobile/index.css +12 -12
  118. package/esm/components/base-select-mobile/index.d.ts +1 -1
  119. package/esm/components/base-select-mobile/index.js +15 -15
  120. package/esm/components/base-select-mobile/options-list/Component.js +2 -2
  121. package/esm/components/base-select-mobile/options-list/index.css +9 -9
  122. package/esm/components/base-select-mobile/options-list/index.js +1 -1
  123. package/esm/components/checkmark/Component.js +1 -1
  124. package/esm/components/checkmark/index.css +7 -7
  125. package/esm/components/field/Component.d.ts +2 -22
  126. package/esm/components/field/Component.js +3 -3
  127. package/esm/components/field/index.css +9 -9
  128. package/esm/components/field/index.js +2 -2
  129. package/esm/components/index.js +15 -15
  130. package/esm/components/native-select/Component.d.ts +2 -2
  131. package/esm/components/native-select/Component.js +1 -1
  132. package/esm/components/native-select/index.js +1 -1
  133. package/esm/components/optgroup/Component.js +1 -1
  134. package/esm/components/optgroup/index.css +6 -6
  135. package/esm/components/option/Component.js +2 -2
  136. package/esm/components/option/index.css +20 -20
  137. package/esm/components/option/index.js +1 -1
  138. package/esm/components/options-list/Component.js +14 -20
  139. package/esm/components/options-list/index.css +6 -6
  140. package/esm/components/options-list/index.js +3 -3
  141. package/esm/components/select-mobile/Component.js +15 -15
  142. package/esm/components/select-mobile/index.d.ts +1 -1
  143. package/esm/components/select-mobile/index.js +15 -15
  144. package/esm/components/select-modal-mobile/Component.js +15 -15
  145. package/esm/components/select-modal-mobile/index.d.ts +1 -1
  146. package/esm/components/select-modal-mobile/index.js +15 -15
  147. package/esm/components/virtual-options-list/Component.js +7 -10
  148. package/esm/components/virtual-options-list/index.css +12 -12
  149. package/esm/components/virtual-options-list/index.js +2 -2
  150. package/{modern/hook-f5b8fe4f.d.ts → esm/hook-edac5428.d.ts} +2 -4
  151. package/esm/index.js +15 -15
  152. package/esm/{intersection-observer-a0b1a83f.d.ts → intersection-observer-5cff2265.d.ts} +0 -0
  153. package/esm/{intersection-observer-a0b1a83f.js → intersection-observer-5cff2265.js} +0 -0
  154. package/esm/presets/index.d.ts +1 -1
  155. package/esm/presets/index.js +15 -15
  156. package/esm/presets/useLazyLoading/hook.d.ts +2 -2
  157. package/esm/presets/useLazyLoading/hook.js +5 -5
  158. package/esm/presets/useLazyLoading/index.css +2 -2
  159. package/esm/presets/useSelectWithApply/hook.js +15 -15
  160. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +15 -15
  161. package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  162. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  163. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +15 -15
  164. package/esm/presets/useSelectWithLoading/hook.js +2 -2
  165. package/esm/presets/useSelectWithLoading/index.css +2 -2
  166. package/{cssm/tslib.es6-f8106a15.d.ts → esm/tslib.es6-8ce25143.d.ts} +8 -4
  167. package/esm/{tslib.es6-14867fac.js → tslib.es6-8ce25143.js} +12 -9
  168. package/esm/typings.d.ts +2 -2
  169. package/esm/utils.d.ts +2 -2
  170. package/{hook-f5b8fe4f.d.ts → hook-edac5428.d.ts} +2 -4
  171. package/index.js +18 -18
  172. package/{intersection-observer-f01dee86.d.ts → intersection-observer-ecb8338a.d.ts} +0 -0
  173. package/{intersection-observer-f01dee86.js → intersection-observer-ecb8338a.js} +0 -0
  174. package/modern/{Component-538a2034.d.ts → Component-42762c09.d.ts} +0 -0
  175. package/modern/{Component-538a2034.js → Component-42762c09.js} +19 -22
  176. package/modern/{Component-8186c533.d.ts → Component-afb04bfc.d.ts} +5 -5
  177. package/modern/{Component-8186c533.js → Component-afb04bfc.js} +43 -61
  178. package/modern/Component-db573794.d.ts +73 -0
  179. package/modern/Component.d.ts +10 -3
  180. package/modern/Component.js +12 -12
  181. package/modern/components/arrow/Component.js +1 -1
  182. package/modern/components/arrow/index.css +3 -3
  183. package/modern/components/base-select/Component.js +4 -4
  184. package/modern/components/base-select/index.css +15 -9
  185. package/modern/components/base-select/index.d.ts +1 -1
  186. package/modern/components/base-select/index.js +4 -4
  187. package/modern/components/base-select-mobile/Component.js +14 -14
  188. package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
  189. package/modern/components/base-select-mobile/checkmark/index.css +4 -4
  190. package/modern/components/base-select-mobile/index.css +12 -12
  191. package/modern/components/base-select-mobile/index.d.ts +1 -1
  192. package/modern/components/base-select-mobile/index.js +14 -14
  193. package/modern/components/base-select-mobile/options-list/Component.js +2 -2
  194. package/modern/components/base-select-mobile/options-list/index.css +9 -9
  195. package/modern/components/checkmark/Component.js +1 -1
  196. package/modern/components/checkmark/index.css +7 -7
  197. package/modern/components/field/Component.d.ts +2 -22
  198. package/modern/components/field/Component.js +4 -4
  199. package/modern/components/field/index.css +9 -9
  200. package/modern/components/field/index.js +1 -1
  201. package/modern/components/index.js +14 -14
  202. package/modern/components/native-select/Component.d.ts +2 -2
  203. package/modern/components/native-select/Component.js +1 -1
  204. package/modern/components/optgroup/Component.js +1 -1
  205. package/modern/components/optgroup/index.css +6 -6
  206. package/modern/components/option/Component.js +3 -3
  207. package/modern/components/option/index.css +20 -20
  208. package/modern/components/options-list/Component.js +11 -15
  209. package/modern/components/options-list/index.css +6 -6
  210. package/modern/components/options-list/index.js +2 -2
  211. package/modern/components/select-mobile/Component.js +14 -14
  212. package/modern/components/select-mobile/index.d.ts +1 -1
  213. package/modern/components/select-mobile/index.js +14 -14
  214. package/modern/components/select-modal-mobile/Component.js +14 -14
  215. package/modern/components/select-modal-mobile/index.d.ts +1 -1
  216. package/modern/components/select-modal-mobile/index.js +14 -14
  217. package/modern/components/virtual-options-list/Component.js +18 -23
  218. package/modern/components/virtual-options-list/index.css +12 -12
  219. package/modern/components/virtual-options-list/index.js +1 -1
  220. package/{esm/hook-f5b8fe4f.d.ts → modern/hook-edac5428.d.ts} +2 -4
  221. package/modern/index.js +14 -14
  222. package/modern/{intersection-observer-a0b1a83f.d.ts → intersection-observer-5cff2265.d.ts} +0 -0
  223. package/modern/{intersection-observer-a0b1a83f.js → intersection-observer-5cff2265.js} +0 -0
  224. package/modern/presets/index.d.ts +1 -1
  225. package/modern/presets/index.js +14 -14
  226. package/modern/presets/useLazyLoading/hook.d.ts +2 -2
  227. package/modern/presets/useLazyLoading/hook.js +13 -15
  228. package/modern/presets/useLazyLoading/index.css +2 -2
  229. package/modern/presets/useSelectWithApply/hook.js +14 -14
  230. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +14 -14
  231. package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  232. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  233. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +14 -14
  234. package/modern/presets/useSelectWithLoading/hook.js +2 -2
  235. package/modern/presets/useSelectWithLoading/index.css +2 -2
  236. package/modern/typings.d.ts +2 -2
  237. package/modern/utils.d.ts +2 -2
  238. package/modern/utils.js +1 -1
  239. package/package.json +6 -6
  240. package/presets/index.d.ts +1 -1
  241. package/presets/index.js +15 -15
  242. package/presets/useLazyLoading/hook.d.ts +2 -2
  243. package/presets/useLazyLoading/hook.js +5 -5
  244. package/presets/useLazyLoading/index.css +2 -2
  245. package/presets/useSelectWithApply/hook.js +15 -15
  246. package/presets/useSelectWithApply/options-list-with-apply/Component.js +15 -15
  247. package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
  248. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  249. package/presets/useSelectWithApply/options-list-with-apply/index.js +15 -15
  250. package/presets/useSelectWithLoading/hook.js +2 -2
  251. package/presets/useSelectWithLoading/index.css +2 -2
  252. package/{tslib.es6-beb5d518.d.ts → tslib.es6-401ce1ea.d.ts} +8 -4
  253. package/{cssm/tslib.es6-f8106a15.js → tslib.es6-401ce1ea.js} +12 -9
  254. package/typings.d.ts +2 -2
  255. package/utils.d.ts +2 -2
  256. package/Component-afce40e0.d.ts +0 -73
  257. package/cssm/Component-afce40e0.d.ts +0 -73
  258. package/esm/Component-afce40e0.d.ts +0 -73
  259. package/modern/Component-afce40e0.d.ts +0 -73
@@ -2,38 +2,38 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../tslib.es6-beb5d518.js');
5
+ require('../../../tslib.es6-401ce1ea.js');
6
6
  require('react');
7
7
  require('classnames');
8
- require('@alfalab/hooks');
9
- require('@alfalab/core-components-form-control');
10
- require('../../../utils.js');
11
- require('../../../components/field/Component.js');
12
8
  require('@alfalab/icons-glyph/ChevronDownMIcon');
13
9
  require('../../../components/arrow/Component.js');
14
10
  require('react-merge-refs');
15
- require('@alfalab/core-components-scrollbar');
11
+ require('@juggle/resize-observer');
12
+ require('downshift');
13
+ require('@alfalab/core-components-popover');
14
+ require('@alfalab/hooks');
15
+ require('../../../Component-395c666f.js');
16
+ require('../../../utils.js');
17
+ require('../../../components/native-select/Component.js');
18
+ require('@alfalab/core-components-form-control');
19
+ require('../../../components/field/Component.js');
16
20
  require('../../../components/optgroup/Component.js');
17
- require('../../../components/options-list/Component.js');
18
21
  require('@alfalab/core-components-checkbox');
19
22
  require('../../../components/checkmark/Component.js');
20
23
  require('../../../components/option/Component.js');
21
- require('@juggle/resize-observer');
22
- require('@alfalab/core-components-popover');
23
- require('downshift');
24
- require('../../../components/native-select/Component.js');
25
- require('../../../Component-c832d566.js');
24
+ require('@alfalab/core-components-scrollbar');
25
+ require('../../../components/options-list/Component.js');
26
26
  require('../../../Component.js');
27
27
  require('@alfalab/core-components-bottom-sheet');
28
28
  require('@alfalab/core-components-modal/mobile');
29
29
  require('@alfalab/core-components-button');
30
+ var presets_useSelectWithApply_hook = require('../../../Component-6cb15433.js');
31
+ require('../../../components/base-select-mobile/checkmark/Component.js');
30
32
  require('@alfalab/core-components-base-modal');
31
33
  require('../../../components/base-select-mobile/options-list/Component.js');
32
- require('../../../components/base-select-mobile/checkmark/Component.js');
33
- var presets_useSelectWithApply_hook = require('../../../Component-0ae85b5e.js');
34
34
  require('react-virtual');
35
35
  require('@alfalab/core-components-skeleton');
36
- require('../../../intersection-observer-f01dee86.js');
36
+ require('../../../intersection-observer-ecb8338a.js');
37
37
 
38
38
 
39
39
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-beb5d518.js');
5
+ var tslib_es6 = require('../../tslib.es6-401ce1ea.js');
6
6
  var React = require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-checkbox');
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var styles = {"skeleton":"select__skeleton_1v8of"};
17
+ var styles = {"skeleton":"select__skeleton_1qz93"};
18
18
  require('./index.css')
19
19
 
20
20
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 4v0gc */
2
- .select__skeleton_1v8of {
1
+ /* hash: 1kjo5 */
2
+ .select__skeleton_1qz93 {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
12
12
  declare function __exportStar(m: any, o: any): void;
13
13
  declare function __values(o: any): any;
14
14
  declare function __read(o: any, n: any): any;
15
+ /** @deprecated */
15
16
  declare function __spread(...args: any[]): any[];
17
+ /** @deprecated */
16
18
  declare function __spreadArrays(...args: any[]): any[];
17
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
18
21
  declare class __await {
19
22
  constructor(v: any);
20
23
  v: any;
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
25
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
26
29
  declare function __importStar(mod: any): any;
27
30
  declare function __importDefault(mod: any): any;
28
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
29
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
30
34
  declare function __assign(...args: any[]): any;
31
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
32
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
36
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- /*! *****************************************************************************
3
+ /******************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
5
5
 
6
6
  Permission to use, copy, modify, and/or distribute this software for any
@@ -38,14 +38,17 @@ function __rest(s, e) {
38
38
  }
39
39
  return t;
40
40
  }
41
- function __spreadArrays() {
42
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
43
- s += arguments[i].length;
44
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
45
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
46
- r[k] = a[j];
47
- return r;
41
+ function __spreadArray(to, from, pack) {
42
+ if (pack || arguments.length === 2)
43
+ for (var i = 0, l = from.length, ar; i < l; i++) {
44
+ if (ar || !(i in from)) {
45
+ if (!ar)
46
+ ar = Array.prototype.slice.call(from, 0, i);
47
+ ar[i] = from[i];
48
+ }
49
+ }
50
+ return to.concat(ar || Array.prototype.slice.call(from));
48
51
  }
49
52
 
50
53
  exports.__rest = __rest;
51
- exports.__spreadArrays = __spreadArrays;
54
+ exports.__spreadArray = __spreadArray;
package/typings.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ReactNode, FC, RefAttributes, AriaAttributes, FocusEvent, MouseEvent, ReactElement } from 'react';
3
- import { PopoverProps } from "@alfalab/core-components-popover";
2
+ import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes } from 'react';
4
3
  import { InputProps } from "@alfalab/core-components-input";
4
+ import { PopoverProps } from "@alfalab/core-components-popover";
5
5
  type OptionShape = {
6
6
  /**
7
7
  * Текстовое представление пункта
package/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { OptionShape, GroupShape, BaseSelectProps } from "./typings";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
- declare const isOptionShape: (item: string | OptionShape | null) => item is OptionShape;
4
+ declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
6
6
  selected?: OptionShape | undefined;
7
7
  selectedMultiple?: OptionShape[] | undefined;
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
4
- import { ButtonProps } from "@alfalab/core-components-button";
5
- type IconButtonProps = {
6
- /**
7
- * Компонент иконки
8
- */
9
- icon: ElementType<{
10
- className?: string;
11
- }>;
12
- /**
13
- * Тип кнопки
14
- */
15
- view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
16
- /**
17
- * Размер компонента
18
- */
19
- size?: "xxs" | "xs" | "s";
20
- /**
21
- * Дополнительный класс
22
- */
23
- className?: string;
24
- /**
25
- * Идентификатор для систем автоматизированного тестирования
26
- */
27
- dataTestId?: string;
28
- /**
29
- * Набор цветов для компонента
30
- */
31
- colors?: "default" | "inverted";
32
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
33
- declare const IconButton: React.ForwardRefExoticComponent<{
34
- icon: React.ElementType<{
35
- className?: string | undefined;
36
- }>;
37
- view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
38
- size?: "s" | "xxs" | "xs" | undefined;
39
- className?: string | undefined;
40
- dataTestId?: string | undefined;
41
- colors?: "default" | "inverted" | undefined;
42
- } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
43
- type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
44
- /**
45
- * Дополнительный класс
46
- */
47
- className?: string;
48
- /**
49
- * Позиция крестика
50
- */
51
- align?: 'left' | 'right';
52
- /**
53
- * Размер кнопки
54
- */
55
- size?: IconButtonProps['size'];
56
- /**
57
- * Фиксирует крестик
58
- */
59
- sticky?: boolean;
60
- /**
61
- * Иконка
62
- */
63
- icon?: ElementType;
64
- /**
65
- * Идентификатор для систем автоматизированного тестирования
66
- */
67
- dataTestId?: string;
68
- };
69
- /**
70
- * @deprecated Компонент только для внутреннего использования. Используйте <Header />
71
- */
72
- declare const Closer: FC<CloserProps>;
73
- export { IconButtonProps, IconButton, CloserProps, Closer };
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
4
- import { ButtonProps } from "@alfalab/core-components-button";
5
- type IconButtonProps = {
6
- /**
7
- * Компонент иконки
8
- */
9
- icon: ElementType<{
10
- className?: string;
11
- }>;
12
- /**
13
- * Тип кнопки
14
- */
15
- view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
16
- /**
17
- * Размер компонента
18
- */
19
- size?: "xxs" | "xs" | "s";
20
- /**
21
- * Дополнительный класс
22
- */
23
- className?: string;
24
- /**
25
- * Идентификатор для систем автоматизированного тестирования
26
- */
27
- dataTestId?: string;
28
- /**
29
- * Набор цветов для компонента
30
- */
31
- colors?: "default" | "inverted";
32
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
33
- declare const IconButton: React.ForwardRefExoticComponent<{
34
- icon: React.ElementType<{
35
- className?: string | undefined;
36
- }>;
37
- view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
38
- size?: "s" | "xxs" | "xs" | undefined;
39
- className?: string | undefined;
40
- dataTestId?: string | undefined;
41
- colors?: "default" | "inverted" | undefined;
42
- } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
43
- type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
44
- /**
45
- * Дополнительный класс
46
- */
47
- className?: string;
48
- /**
49
- * Позиция крестика
50
- */
51
- align?: 'left' | 'right';
52
- /**
53
- * Размер кнопки
54
- */
55
- size?: IconButtonProps['size'];
56
- /**
57
- * Фиксирует крестик
58
- */
59
- sticky?: boolean;
60
- /**
61
- * Иконка
62
- */
63
- icon?: ElementType;
64
- /**
65
- * Идентификатор для систем автоматизированного тестирования
66
- */
67
- dataTestId?: string;
68
- };
69
- /**
70
- * @deprecated Компонент только для внутреннего использования. Используйте <Header />
71
- */
72
- declare const Closer: FC<CloserProps>;
73
- export { IconButtonProps, IconButton, CloserProps, Closer };
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
4
- import { ButtonProps } from "@alfalab/core-components-button";
5
- type IconButtonProps = {
6
- /**
7
- * Компонент иконки
8
- */
9
- icon: ElementType<{
10
- className?: string;
11
- }>;
12
- /**
13
- * Тип кнопки
14
- */
15
- view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
16
- /**
17
- * Размер компонента
18
- */
19
- size?: "xxs" | "xs" | "s";
20
- /**
21
- * Дополнительный класс
22
- */
23
- className?: string;
24
- /**
25
- * Идентификатор для систем автоматизированного тестирования
26
- */
27
- dataTestId?: string;
28
- /**
29
- * Набор цветов для компонента
30
- */
31
- colors?: "default" | "inverted";
32
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
33
- declare const IconButton: React.ForwardRefExoticComponent<{
34
- icon: React.ElementType<{
35
- className?: string | undefined;
36
- }>;
37
- view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
38
- size?: "s" | "xxs" | "xs" | undefined;
39
- className?: string | undefined;
40
- dataTestId?: string | undefined;
41
- colors?: "default" | "inverted" | undefined;
42
- } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
43
- type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
44
- /**
45
- * Дополнительный класс
46
- */
47
- className?: string;
48
- /**
49
- * Позиция крестика
50
- */
51
- align?: 'left' | 'right';
52
- /**
53
- * Размер кнопки
54
- */
55
- size?: IconButtonProps['size'];
56
- /**
57
- * Фиксирует крестик
58
- */
59
- sticky?: boolean;
60
- /**
61
- * Иконка
62
- */
63
- icon?: ElementType;
64
- /**
65
- * Идентификатор для систем автоматизированного тестирования
66
- */
67
- dataTestId?: string;
68
- };
69
- /**
70
- * @deprecated Компонент только для внутреннего использования. Используйте <Header />
71
- */
72
- declare const Closer: FC<CloserProps>;
73
- export { IconButtonProps, IconButton, CloserProps, Closer };
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
4
- import { ButtonProps } from "@alfalab/core-components-button";
5
- type IconButtonProps = {
6
- /**
7
- * Компонент иконки
8
- */
9
- icon: ElementType<{
10
- className?: string;
11
- }>;
12
- /**
13
- * Тип кнопки
14
- */
15
- view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
16
- /**
17
- * Размер компонента
18
- */
19
- size?: "xxs" | "xs" | "s";
20
- /**
21
- * Дополнительный класс
22
- */
23
- className?: string;
24
- /**
25
- * Идентификатор для систем автоматизированного тестирования
26
- */
27
- dataTestId?: string;
28
- /**
29
- * Набор цветов для компонента
30
- */
31
- colors?: "default" | "inverted";
32
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
33
- declare const IconButton: React.ForwardRefExoticComponent<{
34
- icon: React.ElementType<{
35
- className?: string | undefined;
36
- }>;
37
- view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
38
- size?: "s" | "xxs" | "xs" | undefined;
39
- className?: string | undefined;
40
- dataTestId?: string | undefined;
41
- colors?: "default" | "inverted" | undefined;
42
- } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
43
- type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
44
- /**
45
- * Дополнительный класс
46
- */
47
- className?: string;
48
- /**
49
- * Позиция крестика
50
- */
51
- align?: 'left' | 'right';
52
- /**
53
- * Размер кнопки
54
- */
55
- size?: IconButtonProps['size'];
56
- /**
57
- * Фиксирует крестик
58
- */
59
- sticky?: boolean;
60
- /**
61
- * Иконка
62
- */
63
- icon?: ElementType;
64
- /**
65
- * Идентификатор для систем автоматизированного тестирования
66
- */
67
- dataTestId?: string;
68
- };
69
- /**
70
- * @deprecated Компонент только для внутреннего использования. Используйте <Header />
71
- */
72
- declare const Closer: FC<CloserProps>;
73
- export { IconButtonProps, IconButton, CloserProps, Closer };