@alfalab/core-components-select 16.0.2 → 16.0.3

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 (196) hide show
  1. package/Component.responsive.js +6 -5
  2. package/components/arrow/Component.js +1 -1
  3. package/components/arrow/index.css +3 -3
  4. package/components/base-checkmark/Component.js +1 -1
  5. package/components/base-checkmark/index.css +4 -4
  6. package/components/base-option/Component.js +1 -1
  7. package/components/base-option/index.css +13 -13
  8. package/components/base-select/Component.js +2 -2
  9. package/components/base-select/index.css +11 -11
  10. package/components/base-select/mobile.css +13 -13
  11. package/components/checkmark/Component.js +1 -1
  12. package/components/checkmark/index.css +10 -10
  13. package/components/checkmark-mobile/Component.js +1 -1
  14. package/components/checkmark-mobile/index.css +6 -6
  15. package/components/field/Component.js +1 -1
  16. package/components/field/index.css +12 -12
  17. package/components/footer/Component.js +1 -1
  18. package/components/footer/index.css +5 -5
  19. package/components/optgroup/Component.js +1 -1
  20. package/components/optgroup/index.css +6 -6
  21. package/components/option/Component.js +1 -1
  22. package/components/option/index.css +20 -20
  23. package/components/options-list/Component.js +1 -1
  24. package/components/options-list/index.css +9 -9
  25. package/components/search/Component.js +1 -1
  26. package/components/search/index.css +2 -2
  27. package/components/virtual-options-list/Component.js +1 -1
  28. package/components/virtual-options-list/index.css +15 -15
  29. package/cssm/Component.responsive.js +5 -4
  30. package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +2 -2
  31. package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +22 -22
  32. package/cssm/desktop/index.d.ts +1 -1
  33. package/cssm/desktop/index.js +2 -2
  34. package/cssm/index.js +4 -3
  35. package/{esm → cssm/mobile}/Component.mobile.d.ts +1 -1
  36. package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +33 -33
  37. package/cssm/mobile/Component.modal.mobile.d.ts +4 -0
  38. package/cssm/mobile/Component.modal.mobile.js +69 -0
  39. package/cssm/mobile/index.d.ts +2 -2
  40. package/cssm/mobile/index.js +5 -5
  41. package/cssm/typings.d.ts +2 -2
  42. package/{esm → desktop}/Component.desktop.d.ts +2 -2
  43. package/{Component.desktop.js → desktop/Component.desktop.js} +12 -12
  44. package/desktop/index.d.ts +1 -1
  45. package/desktop/index.js +2 -2
  46. package/esm/Component.responsive.js +5 -4
  47. package/esm/components/arrow/Component.js +1 -1
  48. package/esm/components/arrow/index.css +3 -3
  49. package/esm/components/base-checkmark/Component.js +1 -1
  50. package/esm/components/base-checkmark/index.css +4 -4
  51. package/esm/components/base-option/Component.js +1 -1
  52. package/esm/components/base-option/index.css +13 -13
  53. package/esm/components/base-select/Component.js +2 -2
  54. package/esm/components/base-select/index.css +11 -11
  55. package/esm/components/base-select/mobile.css +13 -13
  56. package/esm/components/checkmark/Component.js +1 -1
  57. package/esm/components/checkmark/index.css +10 -10
  58. package/esm/components/checkmark-mobile/Component.js +1 -1
  59. package/esm/components/checkmark-mobile/index.css +6 -6
  60. package/esm/components/field/Component.js +1 -1
  61. package/esm/components/field/index.css +12 -12
  62. package/esm/components/footer/Component.js +1 -1
  63. package/esm/components/footer/index.css +5 -5
  64. package/esm/components/optgroup/Component.js +1 -1
  65. package/esm/components/optgroup/index.css +6 -6
  66. package/esm/components/option/Component.js +1 -1
  67. package/esm/components/option/index.css +20 -20
  68. package/esm/components/options-list/Component.js +1 -1
  69. package/esm/components/options-list/index.css +9 -9
  70. package/esm/components/search/Component.js +1 -1
  71. package/esm/components/search/index.css +2 -2
  72. package/esm/components/virtual-options-list/Component.js +1 -1
  73. package/esm/components/virtual-options-list/index.css +15 -15
  74. package/{modern → esm/desktop}/Component.desktop.d.ts +2 -2
  75. package/esm/{Component.desktop.js → desktop/Component.desktop.js} +12 -12
  76. package/esm/desktop/index.d.ts +1 -1
  77. package/esm/desktop/index.js +1 -1
  78. package/esm/index.js +5 -4
  79. package/{cssm → esm/mobile}/Component.mobile.d.ts +1 -1
  80. package/esm/{Component.mobile.js → mobile/Component.mobile.js} +18 -18
  81. package/esm/mobile/Component.modal.mobile.d.ts +4 -0
  82. package/esm/{Component.modal.mobile.js → mobile/Component.modal.mobile.js} +18 -18
  83. package/esm/mobile/index.d.ts +2 -2
  84. package/esm/mobile/index.js +4 -4
  85. package/esm/presets/index.js +1 -1
  86. package/esm/presets/useSelectWithApply/hook.js +1 -1
  87. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  88. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  89. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  90. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  91. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  92. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  93. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  94. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  95. package/esm/presets/useSelectWithLoading/index.css +2 -2
  96. package/esm/shared/index.js +1 -1
  97. package/esm/typings.d.ts +2 -2
  98. package/index.js +5 -4
  99. package/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +1 -1
  100. package/{Component.mobile.js → mobile/Component.mobile.js} +19 -19
  101. package/mobile/Component.modal.mobile.d.ts +4 -0
  102. package/{Component.modal.mobile.js → mobile/Component.modal.mobile.js} +20 -20
  103. package/mobile/index.d.ts +2 -2
  104. package/mobile/index.js +6 -6
  105. package/modern/Component.responsive.js +5 -4
  106. package/modern/components/arrow/Component.js +1 -1
  107. package/modern/components/arrow/index.css +3 -3
  108. package/modern/components/base-checkmark/Component.js +1 -1
  109. package/modern/components/base-checkmark/index.css +4 -4
  110. package/modern/components/base-option/Component.js +1 -1
  111. package/modern/components/base-option/index.css +13 -13
  112. package/modern/components/base-select/Component.js +2 -2
  113. package/modern/components/base-select/index.css +11 -11
  114. package/modern/components/base-select/mobile.css +13 -13
  115. package/modern/components/checkmark/Component.js +1 -1
  116. package/modern/components/checkmark/index.css +10 -10
  117. package/modern/components/checkmark-mobile/Component.js +1 -1
  118. package/modern/components/checkmark-mobile/index.css +6 -6
  119. package/modern/components/field/Component.js +1 -1
  120. package/modern/components/field/index.css +12 -12
  121. package/modern/components/footer/Component.js +1 -1
  122. package/modern/components/footer/index.css +5 -5
  123. package/modern/components/optgroup/Component.js +1 -1
  124. package/modern/components/optgroup/index.css +6 -6
  125. package/modern/components/option/Component.js +1 -1
  126. package/modern/components/option/index.css +20 -20
  127. package/modern/components/options-list/Component.js +1 -1
  128. package/modern/components/options-list/index.css +9 -9
  129. package/modern/components/search/Component.js +1 -1
  130. package/modern/components/search/index.css +2 -2
  131. package/modern/components/virtual-options-list/Component.js +1 -1
  132. package/modern/components/virtual-options-list/index.css +15 -15
  133. package/{cssm → modern/desktop}/Component.desktop.d.ts +2 -2
  134. package/modern/{Component.desktop.js → desktop/Component.desktop.js} +12 -12
  135. package/modern/desktop/index.d.ts +1 -1
  136. package/modern/desktop/index.js +1 -1
  137. package/modern/index.js +5 -4
  138. package/modern/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +1 -1
  139. package/modern/{Component.mobile.js → mobile/Component.mobile.js} +18 -18
  140. package/modern/mobile/Component.modal.mobile.d.ts +4 -0
  141. package/modern/{Component.modal.mobile.js → mobile/Component.modal.mobile.js} +18 -18
  142. package/modern/mobile/index.d.ts +2 -2
  143. package/modern/mobile/index.js +4 -4
  144. package/modern/presets/index.js +1 -1
  145. package/modern/presets/useSelectWithApply/hook.js +1 -1
  146. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  147. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  148. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  149. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  150. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  151. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  152. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  153. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  154. package/modern/presets/useSelectWithLoading/index.css +2 -2
  155. package/modern/shared/index.js +1 -1
  156. package/modern/typings.d.ts +2 -2
  157. package/package.json +6 -6
  158. package/presets/index.js +1 -1
  159. package/presets/useSelectWithApply/hook.js +1 -1
  160. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  161. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  162. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  163. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  164. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  165. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  166. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  167. package/presets/useSelectWithLoading/hook.js +1 -1
  168. package/presets/useSelectWithLoading/index.css +2 -2
  169. package/shared/index.js +1 -1
  170. package/src/Component.responsive.tsx +2 -2
  171. package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +8 -8
  172. package/src/desktop/index.ts +1 -1
  173. package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +13 -13
  174. package/src/{Component.modal.mobile.tsx → mobile/Component.modal.mobile.tsx} +2 -1
  175. package/src/mobile/index.ts +2 -2
  176. package/src/typings.ts +2 -2
  177. package/typings.d.ts +2 -2
  178. package/Component.modal.mobile.d.ts +0 -4
  179. package/cssm/Component.modal.mobile.d.ts +0 -4
  180. package/cssm/Component.modal.mobile.js +0 -69
  181. package/cssm/types-1b036d4b.d.ts +0 -13
  182. package/cssm/useSkeleton-1b036d4b.d.ts +0 -12
  183. package/esm/Component.modal.mobile.d.ts +0 -4
  184. package/esm/types-1b036d4b.d.ts +0 -13
  185. package/esm/useSkeleton-1b036d4b.d.ts +0 -12
  186. package/modern/Component.modal.mobile.d.ts +0 -4
  187. package/modern/types-1b036d4b.d.ts +0 -13
  188. package/modern/useSkeleton-1b036d4b.d.ts +0 -12
  189. package/types-1b036d4b.d.ts +0 -13
  190. package/useSkeleton-1b036d4b.d.ts +0 -12
  191. /package/esm/{hook-3d076499.d.ts → hook-a287da6c.d.ts} +0 -0
  192. /package/esm/{hook-3d076499.js → hook-a287da6c.js} +0 -0
  193. /package/{hook-693409b2.d.ts → hook-d8cd1702.d.ts} +0 -0
  194. /package/{hook-693409b2.js → hook-d8cd1702.js} +0 -0
  195. /package/modern/{hook-8b4455f6.d.ts → hook-14cdb84d.d.ts} +0 -0
  196. /package/modern/{hook-8b4455f6.js → hook-14cdb84d.js} +0 -0
@@ -1,4 +1,4 @@
1
- export { SelectDesktop } from '../Component.desktop.js';
1
+ export { SelectDesktop } from './Component.desktop.js';
2
2
  import 'react';
3
3
  import '@alfalab/core-components-form-control/modern/desktop';
4
4
  import '@alfalab/core-components-popover/modern';
package/modern/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { SelectResponsive as Select } from './Component.responsive.js';
2
2
  import 'react';
3
3
  import '@alfalab/core-components-mq/modern';
4
- import './Component.desktop.js';
4
+ import './desktop/Component.desktop.js';
5
5
  import '@alfalab/core-components-form-control/modern/desktop';
6
6
  import '@alfalab/core-components-popover/modern';
7
7
  import './components/arrow/Component.js';
@@ -31,16 +31,17 @@ import './consts.js';
31
31
  import './components/search/Component.js';
32
32
  import '@alfalab/core-components-input/modern';
33
33
  import '@alfalab/icons-glyph/MagnifierMIcon';
34
- import './Component.mobile.js';
34
+ import './mobile/Component.mobile.js';
35
35
  import '@alfalab/core-components-bottom-sheet/modern';
36
36
  import '@alfalab/core-components-form-control/modern/mobile';
37
- import '@alfalab/core-components-modal/modern/Component.mobile';
37
+ import '@alfalab/core-components-modal/modern/mobile';
38
38
  import './components/footer/Component.js';
39
39
  import '@alfalab/core-components-base-modal/modern';
40
40
  import '@alfalab/core-components-button/modern/mobile';
41
41
  import './components/virtual-options-list/Component.js';
42
42
  import 'react-virtual';
43
- import './hook-8b4455f6.js';
43
+ import './hook-14cdb84d.js';
44
44
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
45
45
  import '@alfalab/core-components-button/modern/desktop';
46
46
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
47
+ import './mobile/Component.modal.mobile.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { SelectMobileProps } from "./typings";
3
+ import { SelectMobileProps } from "../typings";
4
4
  declare const SelectMobile: React.ForwardRefExoticComponent<SelectMobileProps & React.RefAttributes<unknown>>;
5
5
  export { SelectMobile };
@@ -1,18 +1,18 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { BottomSheet } from '@alfalab/core-components-bottom-sheet/modern';
3
3
  import { FormControlMobile } from '@alfalab/core-components-form-control/modern/mobile';
4
- import { ModalMobile } from '@alfalab/core-components-modal/modern/Component.mobile';
5
- import { Arrow } from './components/arrow/Component.js';
6
- import { BaseSelect } from './components/base-select/Component.js';
7
- import { Field } from './components/field/Component.js';
8
- import { Footer } from './components/footer/Component.js';
9
- import { Optgroup } from './components/optgroup/Component.js';
10
- import { Option } from './components/option/Component.js';
11
- import { OptionsList } from './components/options-list/Component.js';
12
- import { Search } from './components/search/Component.js';
13
- import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
14
- import { u as useSelectWithApply } from './hook-8b4455f6.js';
15
- import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
4
+ import { ModalMobile } from '@alfalab/core-components-modal/modern/mobile';
5
+ import { Arrow } from '../components/arrow/Component.js';
6
+ import { BaseSelect } from '../components/base-select/Component.js';
7
+ import { Field } from '../components/field/Component.js';
8
+ import { Footer } from '../components/footer/Component.js';
9
+ import { Optgroup } from '../components/optgroup/Component.js';
10
+ import { Option } from '../components/option/Component.js';
11
+ import { OptionsList } from '../components/options-list/Component.js';
12
+ import { Search } from '../components/search/Component.js';
13
+ import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
14
+ import { u as useSelectWithApply } from '../hook-14cdb84d.js';
15
+ import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
16
16
  import 'classnames';
17
17
  import '@alfalab/icons-glyph/ChevronDownMIcon';
18
18
  import 'react-merge-refs';
@@ -21,23 +21,23 @@ import 'compute-scroll-into-view';
21
21
  import 'downshift';
22
22
  import '@alfalab/core-components-shared/modern';
23
23
  import '@alfalab/hooks';
24
- import './utils.js';
25
- import './components/native-select/Component.js';
24
+ import '../utils.js';
25
+ import '../components/native-select/Component.js';
26
26
  import '@alfalab/core-components-base-modal/modern';
27
27
  import '@alfalab/core-components-button/modern/mobile';
28
- import './components/checkmark/Component.js';
28
+ import '../components/checkmark/Component.js';
29
29
  import '@alfalab/core-components-badge/modern';
30
30
  import '@alfalab/core-components-checkbox/modern';
31
31
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
32
32
  import '@alfalab/icons-glyph/CheckmarkMIcon';
33
- import './components/checkmark-mobile/Component.js';
33
+ import '../components/checkmark-mobile/Component.js';
34
34
  import '@alfalab/core-components-mq/modern';
35
35
  import '@alfalab/core-components-scrollbar/modern';
36
- import './consts.js';
36
+ import '../consts.js';
37
37
  import '@alfalab/core-components-input/modern';
38
38
  import '@alfalab/icons-glyph/MagnifierMIcon';
39
39
  import 'react-virtual';
40
- import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
40
+ import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
41
41
  import '@alfalab/core-components-button/modern/desktop';
42
42
 
43
43
  const VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<import("../typings").BaseSelectProps, "Checkmark"> & import("../typings").AdditionalMobileProps & import("../typings").ModalSelectMobileProps & React.RefAttributes<unknown>>;
4
+ export { SelectModalMobile };
@@ -2,44 +2,44 @@ import React, { forwardRef } from 'react';
2
2
  import { SelectMobile } from './Component.mobile.js';
3
3
  import '@alfalab/core-components-bottom-sheet/modern';
4
4
  import '@alfalab/core-components-form-control/modern/mobile';
5
- import '@alfalab/core-components-modal/modern/Component.mobile';
6
- import './components/arrow/Component.js';
5
+ import '@alfalab/core-components-modal/modern/mobile';
6
+ import '../components/arrow/Component.js';
7
7
  import 'classnames';
8
8
  import '@alfalab/icons-glyph/ChevronDownMIcon';
9
- import './components/base-select/Component.js';
9
+ import '../components/base-select/Component.js';
10
10
  import 'react-merge-refs';
11
11
  import '@juggle/resize-observer';
12
12
  import 'compute-scroll-into-view';
13
13
  import 'downshift';
14
14
  import '@alfalab/core-components-shared/modern';
15
15
  import '@alfalab/hooks';
16
- import './utils.js';
17
- import './components/native-select/Component.js';
18
- import './components/field/Component.js';
19
- import './components/footer/Component.js';
16
+ import '../utils.js';
17
+ import '../components/native-select/Component.js';
18
+ import '../components/field/Component.js';
19
+ import '../components/footer/Component.js';
20
20
  import '@alfalab/core-components-base-modal/modern';
21
21
  import '@alfalab/core-components-button/modern/mobile';
22
- import './components/optgroup/Component.js';
23
- import './components/option/Component.js';
24
- import './components/checkmark/Component.js';
22
+ import '../components/optgroup/Component.js';
23
+ import '../components/option/Component.js';
24
+ import '../components/checkmark/Component.js';
25
25
  import '@alfalab/core-components-badge/modern';
26
26
  import '@alfalab/core-components-checkbox/modern';
27
27
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
28
28
  import '@alfalab/icons-glyph/CheckmarkMIcon';
29
- import './components/checkmark-mobile/Component.js';
30
- import './components/options-list/Component.js';
29
+ import '../components/checkmark-mobile/Component.js';
30
+ import '../components/options-list/Component.js';
31
31
  import '@alfalab/core-components-mq/modern';
32
32
  import '@alfalab/core-components-scrollbar/modern';
33
- import './consts.js';
34
- import './components/search/Component.js';
33
+ import '../consts.js';
34
+ import '../components/search/Component.js';
35
35
  import '@alfalab/core-components-input/modern';
36
36
  import '@alfalab/icons-glyph/MagnifierMIcon';
37
- import './components/virtual-options-list/Component.js';
37
+ import '../components/virtual-options-list/Component.js';
38
38
  import 'react-virtual';
39
- import './hook-8b4455f6.js';
40
- import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
39
+ import '../hook-14cdb84d.js';
40
+ import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
41
41
  import '@alfalab/core-components-button/modern/desktop';
42
- import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
42
+ import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
43
43
 
44
44
  const SelectModalMobile = forwardRef((props, ref) => (React.createElement(SelectMobile, { ...props, isBottomSheet: false, ref: ref })));
45
45
 
@@ -1,3 +1,3 @@
1
- export { SelectMobile } from "../Component.mobile";
2
- export { SelectModalMobile } from "../Component.modal.mobile";
1
+ export { SelectMobile } from "./Component.mobile";
2
+ export { SelectModalMobile } from "./Component.modal.mobile";
3
3
  export type { SelectMobileProps, SelectModalMobileProps } from "../typings";
@@ -1,9 +1,9 @@
1
- export { SelectMobile } from '../Component.mobile.js';
2
- export { SelectModalMobile } from '../Component.modal.mobile.js';
1
+ export { SelectMobile } from './Component.mobile.js';
2
+ export { SelectModalMobile } from './Component.modal.mobile.js';
3
3
  import 'react';
4
4
  import '@alfalab/core-components-bottom-sheet/modern';
5
5
  import '@alfalab/core-components-form-control/modern/mobile';
6
- import '@alfalab/core-components-modal/modern/Component.mobile';
6
+ import '@alfalab/core-components-modal/modern/mobile';
7
7
  import '../components/arrow/Component.js';
8
8
  import 'classnames';
9
9
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -37,7 +37,7 @@ import '@alfalab/core-components-input/modern';
37
37
  import '@alfalab/icons-glyph/MagnifierMIcon';
38
38
  import '../components/virtual-options-list/Component.js';
39
39
  import 'react-virtual';
40
- import '../hook-8b4455f6.js';
40
+ import '../hook-14cdb84d.js';
41
41
  import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
42
42
  import '@alfalab/core-components-button/modern/desktop';
43
43
  import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-8b4455f6.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-14cdb84d.js';
4
4
  import 'react';
5
5
  import '@alfalab/core-components-skeleton/modern';
6
6
  import '../components/option/Component.js';
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import '../../utils.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-8b4455f6.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-14cdb84d.js';
4
4
  import '../../components/options-list/Component.js';
5
5
  import 'react-merge-refs';
6
6
  import 'classnames';
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
2
  import '../../../components/options-list/Component.js';
3
3
  import '../../../consts.js';
4
- export { O as OptionsListWithApply } from '../../../hook-8b4455f6.js';
4
+ export { O as OptionsListWithApply } from '../../../hook-14cdb84d.js';
5
5
  import './footer/Component.js';
6
6
  import './header/Component.js';
7
7
  import 'react-merge-refs';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ButtonDesktop } from '@alfalab/core-components-button/modern/desktop';
3
3
 
4
- const styles = {"footer":"select__footer_k8o53"};
4
+ const styles = {"footer":"select__footer_oq3je"};
5
5
  require('./index.css')
6
6
 
7
7
  const Footer = ({ handleApply, handleClear, showClear, selectedDraft = [], }) => (React.createElement("div", {
@@ -1,4 +1,4 @@
1
- /* hash: 1lstk */
1
+ /* hash: 2l65x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff; /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-s: 12px;
18
18
  } :root {
19
19
  } :root {
20
- } .select__footer_k8o53 {
20
+ } .select__footer_oq3je {
21
21
  background-color: var(--color-light-bg-primary);
22
22
  padding: var(--gap-s);
23
23
  outline: none
24
- } .select__footer_k8o53 > * + * {
24
+ } .select__footer_oq3je > * + * {
25
25
  margin-left: var(--gap-xs);
26
26
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/modern';
4
4
 
5
- const styles = {"desktop":"select__desktop_1iqc5","mobile":"select__mobile_1iqc5"};
5
+ const styles = {"desktop":"select__desktop_2zk8m","mobile":"select__mobile_2zk8m"};
6
6
  require('./index.css')
7
7
 
8
8
  const Header = ({ onChange, checked, indeterminate, mobile }) => (React.createElement("div", { className: cn({ [styles.desktop]: !mobile, [styles.mobile]: mobile }) },
@@ -1,4 +1,4 @@
1
- /* hash: 1pbox */
1
+ /* hash: kwy91 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* 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 */ /* deprecated */
@@ -16,8 +16,8 @@
16
16
  --gap-s: 12px;
17
17
  } :root {
18
18
  } :root {
19
- } .select__desktop_1iqc5 {
19
+ } .select__desktop_2zk8m {
20
20
  padding: var(--gap-s);
21
- } .select__mobile_1iqc5 {
21
+ } .select__mobile_2zk8m {
22
22
  padding: var(--gap-s) var(--gap-xs);
23
23
  }
@@ -1 +1 @@
1
- export * from "../../../hook-8b4455f6";
1
+ export * from "../../../hook-14cdb84d";
@@ -1,4 +1,4 @@
1
- export { O as OptionsListWithApply } from '../../../hook-8b4455f6.js';
1
+ export { O as OptionsListWithApply } from '../../../hook-14cdb84d.js';
2
2
  import 'react';
3
3
  import '../../../utils.js';
4
4
  import '../../../components/options-list/Component.js';
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
9
9
  import '@alfalab/icons-glyph/CheckmarkMIcon';
10
10
  import '../../components/checkmark-mobile/Component.js';
11
11
 
12
- const styles = {"skeleton":"select__skeleton_1857r"};
12
+ const styles = {"skeleton":"select__skeleton_tnwpp"};
13
13
  require('./index.css')
14
14
 
15
15
  function useSelectWithLoading({ loading = false, visibleOptions = 6, Option: Option$1 = Option, }) {
@@ -1,5 +1,5 @@
1
- /* hash: 6qohn */
2
- .select__skeleton_1857r {
1
+ /* hash: 1cylu */
2
+ .select__skeleton_tnwpp {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-8b4455f6.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-14cdb84d.js';
4
4
  export { defaultAccessor, defaultFilterFn, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
5
5
  export { Option } from '../components/option/Component.js';
6
6
  export { BaseOption } from '../components/base-option/Component.js';
@@ -245,11 +245,11 @@ type BaseSelectProps = {
245
245
  name?: string;
246
246
  }) => void;
247
247
  /**
248
- * Обработчик фокуса поля
248
+ * Обработчик блюра поля
249
249
  */
250
250
  onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
251
251
  /**
252
- * Обработчик блюра поля
252
+ * Обработчик фокуса поля
253
253
  */
254
254
  onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
255
255
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-select",
3
- "version": "16.0.2",
3
+ "version": "16.0.3",
4
4
  "description": "Select component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,12 +17,12 @@
17
17
  "dependencies": {
18
18
  "@alfalab/core-components-badge": "^5.3.0",
19
19
  "@alfalab/core-components-base-modal": "^5.6.0",
20
- "@alfalab/core-components-bottom-sheet": "^6.11.5",
21
- "@alfalab/core-components-button": "^10.0.1",
20
+ "@alfalab/core-components-bottom-sheet": "^6.12.0",
21
+ "@alfalab/core-components-button": "^10.0.2",
22
22
  "@alfalab/core-components-checkbox": "^3.3.0",
23
- "@alfalab/core-components-form-control": "^11.0.0",
24
- "@alfalab/core-components-input": "^13.0.1",
25
- "@alfalab/core-components-modal": "^8.1.2",
23
+ "@alfalab/core-components-form-control": "^11.1.0",
24
+ "@alfalab/core-components-input": "^13.0.2",
25
+ "@alfalab/core-components-modal": "^8.1.3",
26
26
  "@alfalab/core-components-mq": "^4.2.0",
27
27
  "@alfalab/core-components-popover": "^6.1.0",
28
28
  "@alfalab/core-components-scrollbar": "^2.2.0",
package/presets/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
6
6
  var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
7
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-693409b2.js');
7
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-d8cd1702.js');
8
8
  require('tslib');
9
9
  require('react');
10
10
  require('@alfalab/core-components-skeleton');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  require('tslib');
6
6
  require('react');
7
7
  require('../../utils.js');
8
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-693409b2.js');
8
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-d8cd1702.js');
9
9
  require('../../components/options-list/Component.js');
10
10
  require('react-merge-refs');
11
11
  require('classnames');
@@ -6,7 +6,7 @@ require('tslib');
6
6
  require('react');
7
7
  require('../../../components/options-list/Component.js');
8
8
  require('../../../consts.js');
9
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-693409b2.js');
9
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-d8cd1702.js');
10
10
  require('./footer/Component.js');
11
11
  require('./header/Component.js');
12
12
  require('react-merge-refs');
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
11
 
12
- var styles = {"footer":"select__footer_k8o53"};
12
+ var styles = {"footer":"select__footer_oq3je"};
13
13
  require('./index.css')
14
14
 
15
15
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1lstk */
1
+ /* hash: 2l65x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff; /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-s: 12px;
18
18
  } :root {
19
19
  } :root {
20
- } .select__footer_k8o53 {
20
+ } .select__footer_oq3je {
21
21
  background-color: var(--color-light-bg-primary);
22
22
  padding: var(--gap-s);
23
23
  outline: none
24
- } .select__footer_k8o53 > * + * {
24
+ } .select__footer_oq3je > * + * {
25
25
  margin-left: var(--gap-xs);
26
26
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"desktop":"select__desktop_1iqc5","mobile":"select__mobile_1iqc5"};
14
+ var styles = {"desktop":"select__desktop_2zk8m","mobile":"select__mobile_2zk8m"};
15
15
  require('./index.css')
16
16
 
17
17
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1pbox */
1
+ /* hash: kwy91 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* 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 */ /* deprecated */
@@ -16,8 +16,8 @@
16
16
  --gap-s: 12px;
17
17
  } :root {
18
18
  } :root {
19
- } .select__desktop_1iqc5 {
19
+ } .select__desktop_2zk8m {
20
20
  padding: var(--gap-s);
21
- } .select__mobile_1iqc5 {
21
+ } .select__mobile_2zk8m {
22
22
  padding: var(--gap-s) var(--gap-xs);
23
23
  }
@@ -1 +1 @@
1
- export * from "../../../hook-693409b2";
1
+ export * from "../../../hook-d8cd1702";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-693409b2.js');
5
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-d8cd1702.js');
6
6
  require('tslib');
7
7
  require('react');
8
8
  require('../../../utils.js');
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
18
18
 
19
19
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
20
20
 
21
- var styles = {"skeleton":"select__skeleton_1857r"};
21
+ var styles = {"skeleton":"select__skeleton_tnwpp"};
22
22
  require('./index.css')
23
23
 
24
24
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 6qohn */
2
- .select__skeleton_1857r {
1
+ /* hash: 1cylu */
2
+ .select__skeleton_tnwpp {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
package/shared/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var presets_useSelectWithLoading_hook = require('../presets/useSelectWithLoading/hook.js');
6
6
  var presets_useLazyLoading_hook = require('../presets/useLazyLoading/hook.js');
7
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-693409b2.js');
7
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-d8cd1702.js');
8
8
  var utils = require('../utils.js');
9
9
  var components_option_Component = require('../components/option/Component.js');
10
10
  var components_baseOption_Component = require('../components/base-option/Component.js');
@@ -2,8 +2,8 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { useMatchMedia } from '@alfalab/core-components-mq';
4
4
 
5
- import { SelectDesktop } from './Component.desktop';
6
- import { SelectMobile } from './Component.mobile';
5
+ import { SelectDesktop } from './desktop';
6
+ import { SelectMobile } from './mobile';
7
7
  import type { SelectFieldProps, SelectProps } from './typings';
8
8
 
9
9
  export const SelectResponsive = forwardRef<HTMLDivElement, SelectProps>(
@@ -3,14 +3,14 @@ import React, { forwardRef } from 'react';
3
3
  import { FormControlDesktop } from '@alfalab/core-components-form-control/desktop';
4
4
  import { Popover } from '@alfalab/core-components-popover';
5
5
 
6
- import { Arrow as DefaultArrow } from './components/arrow';
7
- import { BaseSelect } from './components/base-select';
8
- import { Field as DefaultField } from './components/field';
9
- import { Optgroup as DefaultOptgroup } from './components/optgroup';
10
- import { Option as DefaultOption } from './components/option';
11
- import { OptionsList as DefaultOptionsList } from './components/options-list';
12
- import { Search as DefaultSearch } from './components/search';
13
- import { SelectDesktopProps } from './typings';
6
+ import { Arrow as DefaultArrow } from '../components/arrow';
7
+ import { BaseSelect } from '../components/base-select';
8
+ import { Field as DefaultField } from '../components/field';
9
+ import { Optgroup as DefaultOptgroup } from '../components/optgroup';
10
+ import { Option as DefaultOption } from '../components/option';
11
+ import { OptionsList as DefaultOptionsList } from '../components/options-list';
12
+ import { Search as DefaultSearch } from '../components/search';
13
+ import { SelectDesktopProps } from '../typings';
14
14
 
15
15
  export const SelectDesktop = forwardRef<HTMLDivElement, SelectDesktopProps>(
16
16
  (
@@ -1,2 +1,2 @@
1
- export { SelectDesktop } from '../Component.desktop';
1
+ export { SelectDesktop } from './Component.desktop';
2
2
  export type { SelectDesktopProps } from '../typings';
@@ -2,25 +2,25 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  import { BottomSheet } from '@alfalab/core-components-bottom-sheet';
4
4
  import { FormControlMobile } from '@alfalab/core-components-form-control/mobile';
5
- import { ModalMobile } from '@alfalab/core-components-modal/Component.mobile';
5
+ import { ModalMobile } from '@alfalab/core-components-modal/mobile';
6
6
 
7
- import { Arrow as DefaultArrow } from './components/arrow';
8
- import { BaseSelect } from './components/base-select';
9
- import { Field as DefaultField } from './components/field';
10
- import { Footer } from './components/footer';
11
- import { Optgroup as DefaultOptgroup } from './components/optgroup';
12
- import { Option as DefaultOption } from './components/option';
13
- import { OptionsList as DefaultOptionsList } from './components/options-list';
14
- import { Search as DefaultSearch } from './components/search';
15
- import { VirtualOptionsList as DefaultVirtualOptionsList } from './components/virtual-options-list';
16
- import { useSelectWithApply } from './presets/useSelectWithApply/hook';
17
- import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component';
7
+ import { Arrow as DefaultArrow } from '../components/arrow';
8
+ import { BaseSelect } from '../components/base-select';
9
+ import { Field as DefaultField } from '../components/field';
10
+ import { Footer } from '../components/footer';
11
+ import { Optgroup as DefaultOptgroup } from '../components/optgroup';
12
+ import { Option as DefaultOption } from '../components/option';
13
+ import { OptionsList as DefaultOptionsList } from '../components/options-list';
14
+ import { Search as DefaultSearch } from '../components/search';
15
+ import { VirtualOptionsList as DefaultVirtualOptionsList } from '../components/virtual-options-list';
16
+ import { useSelectWithApply } from '../presets/useSelectWithApply/hook';
17
+ import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component';
18
18
  import {
19
19
  AnyObject,
20
20
  BottomSheetSelectMobileProps,
21
21
  ModalSelectMobileProps,
22
22
  SelectMobileProps,
23
- } from './typings';
23
+ } from '../typings';
24
24
 
25
25
  const VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
26
26
 
@@ -1,7 +1,8 @@
1
1
  import React, { forwardRef } from 'react';
2
2
 
3
+ import { SelectModalMobileProps } from '../typings';
4
+
3
5
  import { SelectMobile } from './Component.mobile';
4
- import { SelectModalMobileProps } from './typings';
5
6
 
6
7
  export const SelectModalMobile = forwardRef((props: SelectModalMobileProps, ref) => (
7
8
  <SelectMobile {...props} isBottomSheet={false} ref={ref} />