@itcase/ui 1.8.123 → 1.8.125

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 (246) hide show
  1. package/dist/Avatar_cjs_AwXEUY8j.js +161 -0
  2. package/dist/Avatar_es_BtlaCRc5.js +157 -0
  3. package/dist/{Button_cjs_Ce97psFT.js → Button_cjs_C34BU1BK.js} +46 -34
  4. package/dist/{Button_es_CZss7cXh.js → Button_es_DnlzLBUT.js} +46 -34
  5. package/dist/ChipsGroup_cjs_DfAKN5CA.js +344 -0
  6. package/dist/{ChipsGroup_es_ayPPUwQ7.js → ChipsGroup_es_DBKY2UyF.js} +48 -35
  7. package/dist/DatePicker_cjs_DfbeIL2m.js +182 -0
  8. package/dist/DatePicker_es_BIJNx427.js +178 -0
  9. package/dist/Divider_cjs_DrmV2ezS.js +105 -0
  10. package/dist/Divider_es_BiYozVBS.js +101 -0
  11. package/dist/DropdownItem_cjs_vHuzXW9M.js +211 -0
  12. package/dist/DropdownItem_es_DVHWWgnU.js +206 -0
  13. package/dist/Group_cjs_DmfeUcFI.js +59 -0
  14. package/dist/Group_es_BU5k8f5S.js +55 -0
  15. package/dist/{Icon_cjs_Cz6IyOkb.js → Icon_cjs_BVLGzj7Y.js} +170 -157
  16. package/dist/{Icon_es_BrwLifge.js → Icon_es_DkVkzTha.js} +170 -157
  17. package/dist/Image_cjs_BUM81t4Y.js +28 -0
  18. package/dist/Image_es_C-IjVkKX.js +26 -0
  19. package/dist/{Input_cjs_DRPK_RHK.js → Input_cjs_DDi5JVAV.js} +27 -19
  20. package/dist/{Input_es_Cv5nEb_n.js → Input_es_BnCXATnh.js} +27 -19
  21. package/dist/{Label_cjs_DMoaOoHi.js → Label_cjs_DwAmukik.js} +45 -33
  22. package/dist/{Label_es_SULlg9bL.js → Label_es_B2kcstsG.js} +45 -33
  23. package/dist/{Link_cjs_C5UsZUiF.js → Link_cjs_qKXVfU8e.js} +43 -30
  24. package/dist/{Link_es_XiqbdwLp.js → Link_es_P2b6ya7P.js} +43 -30
  25. package/dist/Loader_cjs_DIDsIq3J.js +143 -0
  26. package/dist/Loader_es_CmSggwbR.js +139 -0
  27. package/dist/Overlay_cjs_tGA2fU43.js +42 -0
  28. package/dist/Overlay_es_BS7OTFoy.js +38 -0
  29. package/dist/{Scrollbar_cjs_DcKOfcNp.js → Scrollbar_cjs_Cp-7v2Mt.js} +1 -1
  30. package/dist/{Scrollbar_es_CThJeCLF.js → Scrollbar_es_CcMgNvGi.js} +1 -1
  31. package/dist/Text_cjs_BDTjOTVB.js +69 -0
  32. package/dist/Text_es_CnymlElo.js +65 -0
  33. package/dist/cjs/components/Accordion.js +37 -34
  34. package/dist/cjs/components/Avatar.js +5 -6
  35. package/dist/cjs/components/AvatarStack/stories/__mock__.js +1 -1
  36. package/dist/cjs/components/AvatarStack.js +17 -16
  37. package/dist/cjs/components/Badge.js +3 -4
  38. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +1 -1
  39. package/dist/cjs/components/Breadcrumbs.js +27 -23
  40. package/dist/cjs/components/Button.js +5 -6
  41. package/dist/cjs/components/Cell/stories/__mock__.js +1 -1
  42. package/dist/cjs/components/Cell.js +28 -25
  43. package/dist/cjs/components/Checkbox.js +33 -26
  44. package/dist/cjs/components/Checkmark.js +28 -23
  45. package/dist/cjs/components/Chips/stories/__mock__.js +1 -1
  46. package/dist/cjs/components/Chips.js +4 -5
  47. package/dist/cjs/components/Choice/stories/__mock__.js +2 -2
  48. package/dist/cjs/components/Choice.js +46 -40
  49. package/dist/cjs/components/Code.js +34 -26
  50. package/dist/cjs/components/CookiesWarning.js +23 -23
  51. package/dist/cjs/components/Dadata.js +14 -9
  52. package/dist/cjs/components/DatePeriod.js +32 -30
  53. package/dist/cjs/components/DatePicker.js +8 -9
  54. package/dist/cjs/components/Divider.js +1 -2
  55. package/dist/cjs/components/Dot.js +5 -6
  56. package/dist/cjs/components/Drawer.js +23 -21
  57. package/dist/cjs/components/Dropdown/stories/__mock__.js +6 -6
  58. package/dist/cjs/components/Dropdown.js +5 -6
  59. package/dist/cjs/components/Flex.js +11 -12
  60. package/dist/cjs/components/Grid.js +15 -16
  61. package/dist/cjs/components/Group.js +1 -2
  62. package/dist/cjs/components/HTMLContent.js +5 -6
  63. package/dist/cjs/components/HeroTitle.js +17 -16
  64. package/dist/cjs/components/Icon.js +3 -4
  65. package/dist/cjs/components/Image.js +1 -2
  66. package/dist/cjs/components/Input.js +1 -2
  67. package/dist/cjs/components/InputPassword.js +34 -26
  68. package/dist/cjs/components/Label.js +4 -5
  69. package/dist/cjs/components/Link.js +1 -2
  70. package/dist/cjs/components/List.js +39 -28
  71. package/dist/cjs/components/Loader.js +2 -3
  72. package/dist/cjs/components/Logo.js +10 -11
  73. package/dist/cjs/components/MenuItem.js +36 -33
  74. package/dist/cjs/components/Modal.js +40 -38
  75. package/dist/cjs/components/ModalSheetBottom.js +17 -18
  76. package/dist/cjs/components/Notification/stories/__mock__.js +1 -1
  77. package/dist/cjs/components/Notification.js +31 -24
  78. package/dist/cjs/components/Overlay.js +1 -2
  79. package/dist/cjs/components/Pagination.js +43 -41
  80. package/dist/cjs/components/Radio.js +34 -26
  81. package/dist/cjs/components/RangeSlider.js +8 -9
  82. package/dist/cjs/components/Response/img.js +1 -1
  83. package/dist/cjs/components/Response.js +45 -34
  84. package/dist/cjs/components/SVGContent.js +6 -7
  85. package/dist/cjs/components/ScrollOnDrag/stories/__mock__.js +2 -2
  86. package/dist/cjs/components/ScrollOnDrag.js +7 -8
  87. package/dist/cjs/components/ScrollToView.js +8 -9
  88. package/dist/cjs/components/Scrollbar/stories/__mock__.js +1 -1
  89. package/dist/cjs/components/Scrollbar.js +1 -1
  90. package/dist/cjs/components/Search.js +39 -31
  91. package/dist/cjs/components/Segmented/stories/__mock__.js +23 -10
  92. package/dist/cjs/components/Segmented.js +46 -41
  93. package/dist/cjs/components/Select.js +118 -113
  94. package/dist/cjs/components/Swiper/stories/__mock__.js +3 -3
  95. package/dist/cjs/components/Swiper.js +27 -29
  96. package/dist/cjs/components/Switch.js +33 -26
  97. package/dist/cjs/components/Tab/stories/__mock__.js +1 -1
  98. package/dist/cjs/components/Tab.js +33 -29
  99. package/dist/cjs/components/Text.js +1 -2
  100. package/dist/cjs/components/Textarea.js +26 -18
  101. package/dist/cjs/components/Tile.js +21 -17
  102. package/dist/cjs/components/Title.js +3 -4
  103. package/dist/cjs/components/Tooltip.js +3 -4
  104. package/dist/cjs/components/Video/stories/__mocks__.js +1 -1
  105. package/dist/cjs/components/Video.js +3 -4
  106. package/dist/cjs/components/Warning.js +26 -20
  107. package/dist/cjs/context/Notifications.js +38 -42
  108. package/dist/cjs/context/UIContext.js +19 -17
  109. package/dist/cjs/context/UrlAssetPrefix.js +3 -3
  110. package/dist/cjs/hoc/urlWithAssetPrefix.js +13 -16
  111. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +13 -40
  112. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.interface.js +1 -1
  113. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.js +25 -29
  114. package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +13 -15
  115. package/dist/cjs/hooks/useAppearanceConfig.js +0 -1
  116. package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +21 -28
  117. package/dist/cjs/hooks/useDevicePropsGenerator.js +0 -1
  118. package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
  119. package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
  120. package/dist/cjs/hooks/useStyles/useStyles.js +0 -1
  121. package/dist/cjs/hooks/useStyles.js +0 -1
  122. package/dist/cjs/hooks/useViewportFix.js +5 -5
  123. package/dist/cjs/hooks.js +1 -1
  124. package/dist/cjs/utils/setViewportProperty.js +3 -3
  125. package/dist/components/Accordion.js +37 -34
  126. package/dist/components/Avatar.js +5 -6
  127. package/dist/components/AvatarStack/stories/__mock__.js +1 -1
  128. package/dist/components/AvatarStack.js +17 -16
  129. package/dist/components/Badge.js +3 -4
  130. package/dist/components/Breadcrumbs/stories/__mock__.js +1 -1
  131. package/dist/components/Breadcrumbs.js +27 -23
  132. package/dist/components/Button.js +5 -6
  133. package/dist/components/Cell/stories/__mock__.js +1 -1
  134. package/dist/components/Cell.js +28 -25
  135. package/dist/components/Checkbox.js +33 -26
  136. package/dist/components/Checkmark.js +28 -23
  137. package/dist/components/Chips/stories/__mock__.js +1 -1
  138. package/dist/components/Chips.js +4 -5
  139. package/dist/components/Choice/stories/__mock__.js +2 -2
  140. package/dist/components/Choice.js +46 -40
  141. package/dist/components/Code.js +34 -26
  142. package/dist/components/CookiesWarning.js +23 -23
  143. package/dist/components/Dadata.js +14 -9
  144. package/dist/components/DatePeriod.js +32 -30
  145. package/dist/components/DatePicker.js +8 -9
  146. package/dist/components/Divider.js +1 -2
  147. package/dist/components/Dot.js +5 -6
  148. package/dist/components/Drawer.js +23 -21
  149. package/dist/components/Dropdown/stories/__mock__.js +6 -6
  150. package/dist/components/Dropdown.js +5 -6
  151. package/dist/components/Flex.js +11 -12
  152. package/dist/components/Grid.js +15 -16
  153. package/dist/components/Group.js +1 -2
  154. package/dist/components/HTMLContent.js +5 -6
  155. package/dist/components/HeroTitle.js +17 -16
  156. package/dist/components/Icon.js +3 -4
  157. package/dist/components/Image.js +1 -2
  158. package/dist/components/Input.js +1 -2
  159. package/dist/components/InputPassword.js +34 -26
  160. package/dist/components/Label.js +4 -5
  161. package/dist/components/Link.js +1 -2
  162. package/dist/components/List.js +39 -28
  163. package/dist/components/Loader.js +2 -3
  164. package/dist/components/Logo.js +10 -11
  165. package/dist/components/MenuItem.js +36 -33
  166. package/dist/components/Modal.js +40 -38
  167. package/dist/components/ModalSheetBottom.js +17 -18
  168. package/dist/components/Notification/stories/__mock__.js +1 -1
  169. package/dist/components/Notification.js +31 -24
  170. package/dist/components/Overlay.js +1 -2
  171. package/dist/components/Pagination.js +43 -41
  172. package/dist/components/Radio.js +34 -26
  173. package/dist/components/RangeSlider.js +8 -9
  174. package/dist/components/Response/img.js +1 -1
  175. package/dist/components/Response.js +45 -34
  176. package/dist/components/SVGContent.js +6 -7
  177. package/dist/components/ScrollOnDrag/stories/__mock__.js +2 -2
  178. package/dist/components/ScrollOnDrag.js +7 -8
  179. package/dist/components/ScrollToView.js +8 -9
  180. package/dist/components/Scrollbar/stories/__mock__.js +1 -1
  181. package/dist/components/Scrollbar.js +1 -1
  182. package/dist/components/Search.js +39 -31
  183. package/dist/components/Segmented/stories/__mock__.js +23 -10
  184. package/dist/components/Segmented.js +46 -41
  185. package/dist/components/Select.js +118 -113
  186. package/dist/components/Swiper/stories/__mock__.js +3 -3
  187. package/dist/components/Swiper.js +27 -29
  188. package/dist/components/Switch.js +33 -26
  189. package/dist/components/Tab/stories/__mock__.js +1 -1
  190. package/dist/components/Tab.js +33 -29
  191. package/dist/components/Text.js +1 -2
  192. package/dist/components/Textarea.js +26 -18
  193. package/dist/components/Tile.js +21 -17
  194. package/dist/components/Title.js +3 -4
  195. package/dist/components/Tooltip.js +3 -4
  196. package/dist/components/Video/stories/__mocks__.js +1 -1
  197. package/dist/components/Video.js +3 -4
  198. package/dist/components/Warning.js +26 -20
  199. package/dist/context/Notifications.js +38 -42
  200. package/dist/context/UIContext.js +19 -17
  201. package/dist/context/UrlAssetPrefix.js +3 -3
  202. package/dist/css/components/Tile/Tile.css +3 -3
  203. package/dist/hoc/urlWithAssetPrefix.js +13 -16
  204. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +13 -40
  205. package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +1 -1
  206. package/dist/hooks/useActiveClasses/useActiveClasses.js +25 -29
  207. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +13 -15
  208. package/dist/hooks/useAppearanceConfig.js +0 -1
  209. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +21 -28
  210. package/dist/hooks/useDevicePropsGenerator.js +0 -1
  211. package/dist/hooks/useDeviceTargetClass.js +0 -1
  212. package/dist/hooks/useStyles/styleAttributes.js +1 -1
  213. package/dist/hooks/useStyles/useStyles.js +0 -1
  214. package/dist/hooks/useStyles.js +0 -1
  215. package/dist/hooks/useViewportFix.js +5 -5
  216. package/dist/hooks.js +1 -1
  217. package/dist/types/components/Button/Button.appearance.d.ts +232 -232
  218. package/dist/types/components/Button/Button.d.ts +4 -4
  219. package/dist/types/components/Button/Button.interface.d.ts +5 -5
  220. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  221. package/dist/types/components/Select/SelectContainer.d.ts +1 -1
  222. package/dist/types/components/Text/Text.appearance.d.ts +58 -58
  223. package/dist/types/components/Text/Text.interface.d.ts +1 -1
  224. package/dist/utils/setViewportProperty.js +3 -3
  225. package/package.json +3 -3
  226. package/dist/Avatar_cjs_CLJnKU39.js +0 -157
  227. package/dist/Avatar_es_BgN-fbOj.js +0 -153
  228. package/dist/ChipsGroup_cjs_C8L3ZeD_.js +0 -331
  229. package/dist/DatePicker_cjs_BzEtDAb8.js +0 -183
  230. package/dist/DatePicker_es_DRyCMO0I.js +0 -179
  231. package/dist/Divider_cjs_DUYtmwn2.js +0 -97
  232. package/dist/Divider_es_CCLBFIx6.js +0 -93
  233. package/dist/DropdownItem_cjs_Bhss6lyM.js +0 -207
  234. package/dist/DropdownItem_es_BXl6lPJx.js +0 -202
  235. package/dist/Group_cjs_CsJ6ICKK.js +0 -59
  236. package/dist/Group_es_DRqIIM9m.js +0 -55
  237. package/dist/Image_cjs_DRhhc66R.js +0 -29
  238. package/dist/Image_es_BpMidmve.js +0 -27
  239. package/dist/Loader_cjs_D3lnxPlI.js +0 -132
  240. package/dist/Loader_es_BUSqFrCd.js +0 -128
  241. package/dist/Overlay_cjs_CcfJYN5o.js +0 -41
  242. package/dist/Overlay_es_DF3DAdxS.js +0 -37
  243. package/dist/Text_cjs_0EINiUq4.js +0 -68
  244. package/dist/Text_es_CwV9rjFD.js +0 -64
  245. package/dist/tslib.es6_cjs_CCZ3TN_7.js +0 -59
  246. package/dist/tslib.es6_es_Bwu1Cn-t.js +0 -56
@@ -1,17 +1,16 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import Select, { components } from 'react-select';
4
- import { I as Icon, B as Badge } from '../Icon_es_BrwLifge.js';
3
+ import { I as Icon, B as Badge } from '../Icon_es_DkVkzTha.js';
5
4
  import React, { useRef, useEffect, useMemo } from 'react';
6
5
  import clsx from 'clsx';
7
6
  import CreatableSelect from 'react-select/creatable';
8
- import { G as Group } from '../Group_es_DRqIIM9m.js';
9
- import { T as Text } from '../Text_es_CwV9rjFD.js';
7
+ import { G as Group } from '../Group_es_BU5k8f5S.js';
8
+ import { T as Text } from '../Text_es_CnymlElo.js';
10
9
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
11
10
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
12
11
  import { icons12, icons16, icons14, icons24 } from '@itcase/icons/default';
13
- import { L as Loader } from '../Loader_es_BUSqFrCd.js';
14
- import { D as Divider } from '../Divider_es_CCLBFIx6.js';
12
+ import { L as Loader } from '../Loader_es_CmSggwbR.js';
13
+ import { D as Divider } from '../Divider_es_BiYozVBS.js';
15
14
  import 'react-inlinesvg';
16
15
  import '../hoc/urlWithAssetPrefix.js';
17
16
  import '@itcase/common';
@@ -28,25 +27,25 @@ import 'react-responsive';
28
27
  import '../utils/setViewportProperty.js';
29
28
  import '../hooks.js';
30
29
  import '../hooks/useStyles/styleAttributes.js';
31
- import '../Link_es_XiqbdwLp.js';
30
+ import '../Link_es_P2b6ya7P.js';
32
31
  import 'lodash/castArray';
33
32
 
34
33
  // interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
35
34
  // extends DefaultClearIndicatorProps<Option, IsMulti, Group> {}
36
35
  // For use memo need to check "ClearIndicator" props
37
36
  // const SelectClearIndicator = React.memo(
38
- var SelectClearIndicator = function (props) {
39
- var children = props.children;
40
- var _a = props.selectProps, clearIcon = _a.clearIcon, clearIconFill = _a.clearIconFill;
41
- return (jsx(components.ClearIndicator, __assign({}, props, { children: clearIcon ? (jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) })));
37
+ const SelectClearIndicator = (props) => {
38
+ const { children } = props;
39
+ const { clearIcon, clearIconFill } = props.selectProps;
40
+ return (jsx(components.ClearIndicator, { ...props, children: clearIcon ? (jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) }));
42
41
  };
43
42
 
44
- var SelectLoadingMessage = function (props) {
45
- var _a = props.selectProps, loadingMessageText = _a.loadingMessageText, loadingMessageTextColor = _a.loadingMessageTextColor, loadingMessageTextSize = _a.loadingMessageTextSize;
43
+ const SelectLoadingMessage = (props) => {
44
+ const { loadingMessageText, loadingMessageTextColor, loadingMessageTextSize, } = props.selectProps;
46
45
  return (jsx(Group, { textAlign: "center", children: jsx(Text, { size: loadingMessageTextSize, textColor: loadingMessageTextColor, children: loadingMessageText }) }));
47
46
  };
48
47
 
49
- var selectAppearanceDefault = {
48
+ const selectAppearanceDefault = {
50
49
  defaultPrimary: {
51
50
  fill: 'surfaceSecondary',
52
51
  fillHover: 'surfaceTertiary',
@@ -85,7 +84,7 @@ var selectAppearanceDefault = {
85
84
  },
86
85
  };
87
86
 
88
- var selectAppearanceDisabled = {
87
+ const selectAppearanceDisabled = {
89
88
  disabledPrimary: {
90
89
  elevation: 8,
91
90
  badgeAppearance: 'accent',
@@ -115,7 +114,7 @@ var selectAppearanceDisabled = {
115
114
  },
116
115
  };
117
116
 
118
- var selectAppearanceError = {
117
+ const selectAppearanceError = {
119
118
  errorPrimary: {
120
119
  fill: 'errorTertiary',
121
120
  fillHover: 'errorTertiary',
@@ -154,7 +153,7 @@ var selectAppearanceError = {
154
153
  },
155
154
  };
156
155
 
157
- var selectAppearanceRequire = {
156
+ const selectAppearanceRequire = {
158
157
  requirePrimary: {
159
158
  fill: 'warningTertiary',
160
159
  fillHover: 'warningTertiary',
@@ -193,7 +192,7 @@ var selectAppearanceRequire = {
193
192
  },
194
193
  };
195
194
 
196
- var selectAppearanceShape = {
195
+ const selectAppearanceShape = {
197
196
  rounded: {
198
197
  shape: 'rounded',
199
198
  },
@@ -215,7 +214,7 @@ var selectAppearanceShape = {
215
214
  },
216
215
  };
217
216
 
218
- var selectAppearanceSize = {
217
+ const selectAppearanceSize = {
219
218
  sizeXXL: {
220
219
  size: 'xxl',
221
220
  textLoadingMessageAppearance: 'sizeM',
@@ -332,7 +331,7 @@ var selectAppearanceSize = {
332
331
  },
333
332
  };
334
333
 
335
- var selectAppearanceStyle = {
334
+ const selectAppearanceStyle = {
336
335
  solid: {
337
336
  borderColor: 'none',
338
337
  borderColorHover: 'none',
@@ -349,7 +348,7 @@ var selectAppearanceStyle = {
349
348
  },
350
349
  };
351
350
 
352
- var selectAppearanceSuccess = {
351
+ const selectAppearanceSuccess = {
353
352
  successPrimary: {
354
353
  fill: 'successTertiary',
355
354
  fillHover: 'successTertiary',
@@ -388,169 +387,175 @@ var selectAppearanceSuccess = {
388
387
  },
389
388
  };
390
389
 
391
- var selectAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, selectAppearanceRequire), selectAppearanceDefault), selectAppearanceDisabled), selectAppearanceSuccess), selectAppearanceSize), selectAppearanceError), selectAppearanceShape), selectAppearanceStyle);
390
+ const selectAppearance = {
391
+ ...selectAppearanceRequire,
392
+ ...selectAppearanceDefault,
393
+ ...selectAppearanceDisabled,
394
+ ...selectAppearanceSuccess,
395
+ ...selectAppearanceSize,
396
+ ...selectAppearanceError,
397
+ ...selectAppearanceShape,
398
+ ...selectAppearanceStyle,
399
+ };
392
400
 
393
- var SelectControl = function (props) {
394
- var _a = props.selectProps, before = _a.before, after = _a.after;
395
- return (jsxs(React.Fragment, { children: [before, jsx(components.Control, __assign({}, props, { className: clsx('select__control') })), after] }));
401
+ const SelectControl = (props) => {
402
+ const { before, after } = props.selectProps;
403
+ return (jsxs(React.Fragment, { children: [before, jsx(components.Control, { ...props, className: clsx('select__control') }), after] }));
396
404
  };
397
405
 
398
406
  // For use memo need to check "DropdownIndicator" props
399
407
  // const SelectDropdownIndicator = React.memo(
400
- var SelectDropdownIndicator = function (props) {
401
- var children = props.children;
402
- var _a = props.selectProps, dropdownFillHover = _a.dropdownFillHover, dropdownIcon = _a.dropdownIcon, dropdownIconFill = _a.dropdownIconFill, dropdownIconShape = _a.dropdownIconShape;
403
- return (jsx(components.DropdownIndicator, __assign({}, props, { children: dropdownIcon ? (jsx(Icon, { fillHover: dropdownFillHover, iconFill: dropdownIconFill, shape: dropdownIconShape, SvgImage: dropdownIcon })) : (children) })));
408
+ const SelectDropdownIndicator = (props) => {
409
+ const { children } = props;
410
+ const { dropdownFillHover, dropdownIcon, dropdownIconFill, dropdownIconShape, } = props.selectProps;
411
+ return (jsx(components.DropdownIndicator, { ...props, children: dropdownIcon ? (jsx(Icon, { fillHover: dropdownFillHover, iconFill: dropdownIconFill, shape: dropdownIconShape, SvgImage: dropdownIcon })) : (children) }));
404
412
  };
405
413
 
406
- var SelectGroupHeading = function (props) {
407
- var _a = props.selectProps, groupFill = _a.groupFill, groupTextColor = _a.groupTextColor, groupTextSize = _a.groupTextSize, groupTextWeight = _a.groupTextWeight;
408
- return (jsx(components.GroupHeading, __assign({}, props, { className: clsx('select__menu-group-heading', groupFill && "fill_".concat(groupFill)), children: jsx(Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) })));
414
+ const SelectGroupHeading = (props) => {
415
+ const { groupFill, groupTextColor, groupTextSize, groupTextWeight } = props.selectProps;
416
+ return (jsx(components.GroupHeading, { ...props, className: clsx('select__menu-group-heading', groupFill && `fill_${groupFill}`), children: jsx(Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) }));
409
417
  };
410
418
 
411
- var SelectIndicatorsContainer = function (props) {
412
- var _a = props.selectProps, badgeAppearance = _a.badgeAppearance, badgeSize = _a.badgeSize, badgeTextSize = _a.badgeTextSize, showBadge = _a.showBadge, value = _a.value;
413
- return (jsxs(components.IndicatorsContainer, __assign({}, props, { children: [showBadge &&
419
+ const SelectIndicatorsContainer = (props) => {
420
+ const { badgeAppearance, badgeSize, badgeTextSize, showBadge, value } = props.selectProps;
421
+ return (jsxs(components.IndicatorsContainer, { ...props, children: [showBadge &&
414
422
  value &&
415
423
  // @ts-expect-error
416
- (value === null || value === void 0 ? void 0 : value.length) > 0 ? (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
424
+ value?.length > 0 ? (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
417
425
  // @ts-expect-error
418
- value: value.length.toString() })) : null, props.children] })));
426
+ value: value.length.toString() })) : null, props.children] }));
419
427
  };
420
428
 
421
- var SelectInput = function (props) {
422
- var _a = props.selectProps, inputCaretColor = _a.inputCaretColor, inputTextColor = _a.inputTextColor, inputTextSize = _a.inputTextSize;
423
- return (jsx(components.Input, __assign({}, props, { className: clsx(inputTextSize && "text_size_".concat(inputTextSize), inputTextColor && "text-color_".concat(inputTextColor), inputCaretColor && "caret-color_".concat(inputCaretColor)) })));
429
+ const SelectInput = (props) => {
430
+ const { inputCaretColor, inputTextColor, inputTextSize } = props.selectProps;
431
+ return (jsx(components.Input, { ...props, className: clsx(inputTextSize && `text_size_${inputTextSize}`, inputTextColor && `text-color_${inputTextColor}`, inputCaretColor && `caret-color_${inputCaretColor}`) }));
424
432
  };
425
433
 
426
- var SelectLoadingIndicator = function (props) {
427
- var _a = props.selectProps, loaderAppearance = _a.loaderAppearance, isLoading = _a.isLoading;
434
+ const SelectLoadingIndicator = (props) => {
435
+ const { loaderAppearance, isLoading } = props.selectProps;
428
436
  return isLoading && jsx(Loader, { appearance: loaderAppearance });
429
437
  };
430
438
 
431
- var SelectMenu = function (props) {
432
- var _a = props.selectProps, elevation = _a.elevation, menuAfter = _a.menuAfter, menuBefore = _a.menuBefore, menuFill = _a.menuFill, menuShape = _a.menuShape, menuShapeStrength = _a.menuShapeStrength;
433
- return (jsxs(components.Menu, __assign({}, props, { className: clsx(menuFill && "fill_".concat(menuFill), menuShape && "shape_".concat(menuShape), menuShapeStrength && "shape-strength_".concat(menuShapeStrength), elevation && "elevation_".concat(elevation)), children: [menuBefore, props.selectProps.fetchingData ? (jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsx(React.Fragment, { children: props.children })), menuAfter] })));
439
+ const SelectMenu = (props) => {
440
+ const { elevation, menuAfter, menuBefore, menuFill, menuShape, menuShapeStrength, } = props.selectProps;
441
+ return (jsxs(components.Menu, { ...props, className: clsx(menuFill && `fill_${menuFill}`, menuShape && `shape_${menuShape}`, menuShapeStrength && `shape-strength_${menuShapeStrength}`, elevation && `elevation_${elevation}`), children: [menuBefore, props.selectProps.fetchingData ? (jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsx(React.Fragment, { children: props.children })), menuAfter] }));
434
442
  };
435
443
 
436
- var SelectMultiValueContainer = function (props) {
437
- var _a = props.selectProps, multipleItemFill = _a.multipleItemFill, multipleItemFillHover = _a.multipleItemFillHover;
438
- return (jsx(components.MultiValueContainer, __assign({}, props, { children: jsx(Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, gap: "0.5m", children: props.children }) })));
444
+ const SelectMultiValueContainer = (props) => {
445
+ const { multipleItemFill, multipleItemFillHover } = props.selectProps;
446
+ return (jsx(components.MultiValueContainer, { ...props, children: jsx(Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, gap: "0.5m", children: props.children }) }));
439
447
  };
440
448
 
441
- var SelectMultiValueLabel = function (props) {
442
- var _a = props.selectProps, multipleItemTextColor = _a.multipleItemTextColor, multipleItemTextSize = _a.multipleItemTextSize;
443
- return (jsx(components.MultiValueLabel, __assign({}, props, { children: props.data && (jsx(Text, { size: multipleItemTextSize, textColor: multipleItemTextColor, children: props.data.label })) })));
449
+ const SelectMultiValueLabel = (props) => {
450
+ const { multipleItemTextColor, multipleItemTextSize } = props.selectProps;
451
+ return (jsx(components.MultiValueLabel, { ...props, children: props.data && (jsx(Text, { size: multipleItemTextSize, textColor: multipleItemTextColor, children: props.data.label })) }));
444
452
  };
445
453
 
446
- var SelectMultiValueRemove = function (props) {
447
- var _a = props.selectProps, multipleItemIcon = _a.multipleItemIcon, multipleItemIconFill = _a.multipleItemIconFill;
448
- return (jsx(components.MultiValueRemove, __assign({}, props, { children: jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) })));
454
+ const SelectMultiValueRemove = (props) => {
455
+ const { multipleItemIcon, multipleItemIconFill } = props.selectProps;
456
+ return (jsx(components.MultiValueRemove, { ...props, children: jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) }));
449
457
  };
450
458
 
451
- var SelectNoOptions = function (props) {
452
- var _a = props.selectProps, inputValue = _a.inputValue, noOptionsSearchText = _a.noOptionsSearchText, noOptionsText = _a.noOptionsText, noOptionsTextColor = _a.noOptionsTextColor, noOptionsTextSize = _a.noOptionsTextSize, optionFill = _a.optionFill;
453
- return (jsx(components.NoOptionsMessage, __assign({}, props, { className: clsx(optionFill && "fill_".concat(optionFill)), children: jsx(Group, { textAlign: "center", children: jsx(Text, { size: noOptionsTextSize, textColor: noOptionsTextColor, children: inputValue && noOptionsSearchText
459
+ const SelectNoOptions = (props) => {
460
+ const { inputValue, noOptionsSearchText, noOptionsText, noOptionsTextColor, noOptionsTextSize, optionFill, } = props.selectProps;
461
+ return (jsx(components.NoOptionsMessage, { ...props, className: clsx(optionFill && `fill_${optionFill}`), children: jsx(Group, { textAlign: "center", children: jsx(Text, { size: noOptionsTextSize, textColor: noOptionsTextColor, children: inputValue && noOptionsSearchText
454
462
  ? noOptionsSearchText
455
- : noOptionsText }) }) })));
463
+ : noOptionsText }) }) }));
456
464
  };
457
465
 
458
- var SelectOption = function (props) {
459
- var label = props.label, isSelected = props.isSelected;
460
- var _a = props.selectProps, optionFillActiveDisabled = _a.optionFillActiveDisabled, optionFillDisabled = _a.optionFillDisabled, optionTextColorDisabled = _a.optionTextColorDisabled, dividerDirection = _a.dividerDirection, dividerFill = _a.dividerFill, dividerSize = _a.dividerSize, menuItemSize = _a.menuItemSize, optionAfter = _a.optionAfter, optionBefore = _a.optionBefore, optionBorder = _a.optionBorder, optionBorderType = _a.optionBorderType, optionFill = _a.optionFill, optionFillActive = _a.optionFillActive, optionFillActiveHover = _a.optionFillActiveHover, optionFillHover = _a.optionFillHover, optionSelectedIcon = _a.optionSelectedIcon, optionSelectedIconFillIcon = _a.optionSelectedIconFillIcon, optionSelectedIconSize = _a.optionSelectedIconSize, optionSelectedIconSrc = _a.optionSelectedIconSrc, optionShape = _a.optionShape, optionShapeStrength = _a.optionShapeStrength, optionTextColor = _a.optionTextColor, optionTextColorActive = _a.optionTextColorActive, optionTextSize = _a.optionTextSize, showDivider = _a.showDivider;
461
- return (jsxs(components.Option, __assign({}, props, { className: clsx('select__menu-list-item', isSelected || props.isSelected
466
+ const SelectOption = (props) => {
467
+ const { label, isSelected } = props;
468
+ const { optionFillActiveDisabled, optionFillDisabled, optionTextColorDisabled, dividerDirection, dividerFill, dividerSize, menuItemSize, optionAfter, optionBefore, optionBorder, optionBorderType, optionFill, optionFillActive, optionFillActiveHover, optionFillHover, optionSelectedIcon, optionSelectedIconFillIcon, optionSelectedIconSize, optionSelectedIconSrc, optionShape, optionShapeStrength, optionTextColor, optionTextColorActive, optionTextSize, showDivider, } = props.selectProps;
469
+ return (jsxs(components.Option, { ...props, className: clsx('select__menu-list-item', isSelected || props.isSelected
462
470
  ? !props.isDisabled
463
- ? optionFillActive && "fill_active_".concat(optionFillActive)
471
+ ? optionFillActive && `fill_active_${optionFillActive}`
464
472
  : optionFillActiveDisabled &&
465
- "fill_active_disabled_".concat(optionFillActiveDisabled)
473
+ `fill_active_disabled_${optionFillActiveDisabled}`
466
474
  : !props.isDisabled
467
- ? optionFill && "fill_".concat(optionFill)
468
- : optionFillDisabled && "fill_".concat(optionFillDisabled), (isSelected || props.isSelected) &&
475
+ ? optionFill && `fill_${optionFill}`
476
+ : optionFillDisabled && `fill_${optionFillDisabled}`, (isSelected || props.isSelected) &&
469
477
  !props.isDisabled &&
470
478
  optionFillActiveHover &&
471
- "fill_active_hover_".concat(optionFillActiveHover), !isSelected &&
479
+ `fill_active_hover_${optionFillActiveHover}`, !isSelected &&
472
480
  !props.isSelected &&
473
481
  !props.isDisabled &&
474
482
  optionFillHover &&
475
- "fill_hover_".concat(optionFillHover), isSelected && 'select__menu-list-item_state_selected', menuItemSize && "select__menu-list-item_size_".concat(menuItemSize), optionBorder && "border-color_".concat(optionBorder), optionBorderType && "border_type_".concat(optionBorderType), optionShape && "shape_".concat(optionShape), optionShapeStrength && "shape-strength_".concat(optionShapeStrength)), children: [optionBefore, jsx(Text, { className: "select__menu-list-item_option", size: optionTextSize, textColor: optionTextColor, textColorActive: optionTextColorActive, textColorDisabled: optionTextColorDisabled, isDisabled: props.isDisabled, isActive: props.isSelected || isSelected, children: label }), (isSelected || props.isSelected) && (jsx("div", { className: "select__menu-list-item_selected", children: jsx(Icon, { iconFill: optionSelectedIconFillIcon, iconSize: optionSelectedIconSize, imageSrc: optionSelectedIconSrc, SvgImage: optionSelectedIcon }) })), optionAfter, showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] })));
483
+ `fill_hover_${optionFillHover}`, isSelected && 'select__menu-list-item_state_selected', menuItemSize && `select__menu-list-item_size_${menuItemSize}`, optionBorder && `border-color_${optionBorder}`, optionBorderType && `border_type_${optionBorderType}`, optionShape && `shape_${optionShape}`, optionShapeStrength && `shape-strength_${optionShapeStrength}`), children: [optionBefore, jsx(Text, { className: "select__menu-list-item_option", size: optionTextSize, textColor: optionTextColor, textColorActive: optionTextColorActive, textColorDisabled: optionTextColorDisabled, isDisabled: props.isDisabled, isActive: props.isSelected || isSelected, children: label }), (isSelected || props.isSelected) && (jsx("div", { className: "select__menu-list-item_selected", children: jsx(Icon, { iconFill: optionSelectedIconFillIcon, iconSize: optionSelectedIconSize, imageSrc: optionSelectedIconSrc, SvgImage: optionSelectedIcon }) })), optionAfter, showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] }));
476
484
  };
477
485
 
478
- var SelectPlaceholder = function (props) {
479
- var _a = props.selectProps, placeholderTextColor = _a.placeholderTextColor, placeholderTextSize = _a.placeholderTextSize;
480
- return (jsx(components.Placeholder, __assign({}, props, { children: jsx(Text, { size: placeholderTextSize, textColor: placeholderTextColor, children: props.children }) })));
486
+ const SelectPlaceholder = (props) => {
487
+ const { placeholderTextColor, placeholderTextSize } = props.selectProps;
488
+ return (jsx(components.Placeholder, { ...props, children: jsx(Text, { size: placeholderTextSize, textColor: placeholderTextColor, children: props.children }) }));
481
489
  };
482
490
 
483
- var SelectSingleValue = function (props) {
484
- var data = props.data;
485
- var _a = props.selectProps, inputTextColor = _a.inputTextColor, inputTextSize = _a.inputTextSize;
486
- return (jsxs(components.SingleValue, __assign({}, props, { children: [data && data.optionBefore, jsx(Text, { size: inputTextSize, textColor: inputTextColor, children: props.children }), data && data.optionAfter] })));
491
+ const SelectSingleValue = (props) => {
492
+ const { data } = props;
493
+ const { inputTextColor, inputTextSize } = props.selectProps;
494
+ return (jsxs(components.SingleValue, { ...props, children: [data && data.optionBefore, jsx(Text, { size: inputTextSize, textColor: inputTextColor, children: props.children }), data && data.optionAfter] }));
487
495
  };
488
496
 
489
- var SelectValueContainer = function (props) {
490
- var _a = props.selectProps, inputAfter = _a.inputAfter, inputBefore = _a.inputBefore;
491
- return (jsxs(components.ValueContainer, __assign({}, props, { children: [inputBefore, props.children, inputAfter] })));
497
+ const SelectValueContainer = (props) => {
498
+ const { inputAfter, inputBefore } = props.selectProps;
499
+ return (jsxs(components.ValueContainer, { ...props, children: [inputBefore, props.children, inputAfter] }));
492
500
  };
493
501
 
494
- var selectConfig = {
502
+ const selectConfig = {
495
503
  appearance: selectAppearance,
496
- setAppearance: function (appearanceConfig) {
504
+ setAppearance: (appearanceConfig) => {
497
505
  selectConfig.appearance = appearanceConfig;
498
506
  },
499
507
  };
500
- var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
501
- var className = props.className, _a = props.appearance, appearance = _a === void 0 ? '' : _a, width = props.width, minWidth = props.minWidth, initialValue = props.initialValue, isDisabled = props.isDisabled, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loaderAppearance = props.loaderAppearance, loadingMessageText = props.loadingMessageText, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, placeholder = props.placeholder, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, before = props.before, after = props.after, openMenuOnClick = props.openMenuOnClick, closeMenuOnSelect = props.closeMenuOnSelect, isClearable = props.isClearable, isCreatable = props.isCreatable, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, onChange = props.onChange, onInputChange = props.onInputChange;
502
- var defaultRef = useRef(null);
503
- var selectRef = ref || defaultRef;
504
- var SelectComponent = isCreatable
508
+ const SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
509
+ const { appearance = '', className, width, minWidth, initialValue, badgeAppearance, badgeSize, defaultValue, dividerDirection, filterOption, hideSelectedOptions, hideValueContainer, inputAfter, inputBefore, instanceId, loaderAppearance, loadingMessageText, menuAfter, menuBefore, menuIsOpen, menuItemSize, noOptionsSearchText, noOptionsText, optionAfter, optionBefore, options, placeholder, showBadge, showDivider, value, before, after, openMenuOnClick, closeMenuOnSelect, isDisabled, isClearable, isCreatable, isLoading, isMulti, isSearchable, set, onChange, onInputChange, } = props;
510
+ const defaultRef = useRef(null);
511
+ const selectRef = ref || defaultRef;
512
+ const SelectComponent = isCreatable
505
513
  ? CreatableSelect
506
514
  : Select;
507
- useEffect(function () {
515
+ useEffect(() => {
508
516
  // @ts-expect-error
509
- var onClickOutside = function (event) {
510
- var _a;
511
- var isTargetSelectContainer =
517
+ const onClickOutside = (event) => {
518
+ const isTargetSelectContainer =
512
519
  // maybe here ".contains()"?
513
520
  event.target.hasClass &&
514
521
  event.target.hasClass('select_state_hide-value-container');
515
522
  if ('current' in selectRef &&
516
523
  selectRef.current &&
517
524
  selectRef.current.controlRef) {
518
- var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
525
+ const isTargetInsideController = selectRef.current.controlRef.contains(event.target);
519
526
  if (!isTargetSelectContainer && !isTargetInsideController) {
520
527
  // @ts-expect-error
521
- (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
528
+ selectRef.current?.onInputBlur();
522
529
  }
523
530
  }
524
531
  };
525
532
  if (hideValueContainer) {
526
533
  document.addEventListener('click', onClickOutside);
527
534
  }
528
- return function () {
535
+ return () => {
529
536
  if (hideValueContainer) {
530
537
  document.removeEventListener('click', onClickOutside);
531
538
  }
532
539
  };
533
540
  }, [hideValueContainer, selectRef]);
534
- var clearStyle = useMemo(function () {
535
- return new Proxy({
536
- container: {
537
- width: width,
538
- minWidth: minWidth,
539
- },
540
- }, {
541
- get: function (target, prop) {
542
- if (prop in target) {
543
- return function () { return target[prop]; };
544
- }
545
- return function () { };
546
- },
547
- });
548
- }, [minWidth, width]);
549
- var appearanceConfig = useAppearanceConfig(appearance, selectConfig, isDisabled);
550
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
551
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, optionFillActiveDisabledClass = propsGenerator.optionFillActiveDisabledClass, optionFillDisabledClass = propsGenerator.optionFillDisabledClass, optionTextColorDisabled = propsGenerator.optionTextColorDisabled, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIcon = propsGenerator.clearIcon, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIcon = propsGenerator.dropdownIcon, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, groupFillClass = propsGenerator.groupFillClass, groupTextColorClass = propsGenerator.groupTextColorClass, groupTextSizeClass = propsGenerator.groupTextSizeClass, groupTextWeightClass = propsGenerator.groupTextWeightClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, loadingMessageTextColor = propsGenerator.loadingMessageTextColor, loadingMessageTextSize = propsGenerator.loadingMessageTextSize, menuFillClass = propsGenerator.menuFillClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillActiveClass = propsGenerator.optionFillActiveClass, optionFillActiveHoverClass = propsGenerator.optionFillActiveHoverClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionSelectedIcon = propsGenerator.optionSelectedIcon, optionSelectedIconFillIcon = propsGenerator.optionSelectedIconFillIcon, optionSelectedIconSize = propsGenerator.optionSelectedIconSize, optionSelectedIconSrc = propsGenerator.optionSelectedIconSrc, optionTextColorActiveClass = propsGenerator.optionTextColorActiveClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
552
- return (jsx(SelectComponent, { className: clsx(className, 'select', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), ref: selectRef, isDisabled: isDisabled, optionFillActiveDisabledClass: optionFillActiveDisabledClass, optionFillDisabled: optionFillDisabledClass, optionTextColorDisabled: optionTextColorDisabled, elevation: elevation, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
553
- IndicatorSeparator: function () { return null; },
541
+ const clearStyle = useMemo(() => new Proxy({
542
+ container: {
543
+ width: width,
544
+ minWidth: minWidth,
545
+ },
546
+ }, {
547
+ get: (target, prop) => {
548
+ if (prop in target) {
549
+ return () => target[prop];
550
+ }
551
+ return () => { };
552
+ },
553
+ }), [minWidth, width]);
554
+ const appearanceConfig = useAppearanceConfig(appearance, selectConfig, isDisabled);
555
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
556
+ const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, elevation, badgeTextSize, clearIcon, clearIconFill, dividerFill, dividerSize, dropdownFillHover, dropdownIcon, dropdownIconFill, dropdownIconShape, groupFillClass, groupTextColorClass, groupTextSizeClass, groupTextWeightClass, inputCaretColorClass, inputTextColorClass, inputTextSizeClass, loadingMessageTextColor, loadingMessageTextSize, menuFillClass, multipleItemFill, multipleItemFillHover, multipleItemIcon, multipleItemIconFill, multipleItemTextColorClass, multipleItemTextSizeClass, noOptionsTextColorClass, noOptionsTextSizeClass, optionBorderClass, optionBorderTypeClass, optionFillActiveClass, optionFillActiveDisabledClass, optionFillActiveHoverClass, optionFillClass, optionFillDisabledClass, optionFillHoverClass, optionSelectedIcon, optionSelectedIconFillIcon, optionSelectedIconSize, optionSelectedIconSrc, optionTextColorActiveClass, optionTextColorClass, optionTextColorDisabled, optionTextSizeClass, placeholderTextColor, placeholderTextSize, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
557
+ return (jsx(SelectComponent, { className: clsx(className, 'select', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, sizeClass && `select_size_${sizeClass}`, hideValueContainer && 'select_state_hide-value-container', set && `select_set_${set}`, widthClass && `select_width_${widthClass}`), ref: selectRef, elevation: elevation, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
558
+ IndicatorSeparator: () => null,
554
559
  ClearIndicator: SelectClearIndicator,
555
560
  Control: SelectControl,
556
561
  DropdownIndicator: SelectDropdownIndicator,
@@ -568,7 +573,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
568
573
  Placeholder: SelectPlaceholder,
569
574
  SingleValue: SelectSingleValue,
570
575
  ValueContainer: SelectValueContainer,
571
- }, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputShape: shapeClass, inputShapeStrength: shapeStrengthClass, inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId, loaderAppearance: loaderAppearance, loadingMessageText: loadingMessageText, loadingMessageTextColor: loadingMessageTextColor, loadingMessageTextSize: loadingMessageTextSize, menuAfter: menuAfter, menuBefore: menuBefore, menuFill: menuFillClass, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, menuShape: shapeClass, menuShapeStrength: shapeStrengthClass, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemSize: sizeClass, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass && "border-color_".concat(optionBorderClass), noOptionBorderType: optionBorderTypeClass && "border_type_".concat(optionBorderTypeClass), noOptionsFill: optionFillClass && "fill_".concat(optionFillClass), noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, optionFill: optionFillClass, optionFillActive: optionFillActiveClass, optionFillActiveHover: optionFillActiveHoverClass, optionFillHover: optionFillHoverClass, options: options, optionSelectedIcon: optionSelectedIcon, optionSelectedIconFillIcon: optionSelectedIconFillIcon, optionSelectedIconSize: optionSelectedIconSize, optionSelectedIconSrc: optionSelectedIconSrc, optionShape: shapeClass, optionShapeStrength: shapeStrengthClass, optionTextColor: optionTextColorClass, optionTextColorActive: optionTextColorActiveClass, optionTextSize: optionTextSizeClass, placeholder: placeholder, placeholderTextColor: placeholderTextColor, placeholderTextSize: placeholderTextSize, set: set, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, isClearable: isClearable, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, onChange: onChange, onInputChange: onInputChange }));
576
+ }, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions ?? false, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputShape: shapeClass, inputShapeStrength: shapeStrengthClass, inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId, loaderAppearance: loaderAppearance, loadingMessageText: loadingMessageText, loadingMessageTextColor: loadingMessageTextColor, loadingMessageTextSize: loadingMessageTextSize, menuAfter: menuAfter, menuBefore: menuBefore, menuFill: menuFillClass, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, menuShape: shapeClass, menuShapeStrength: shapeStrengthClass, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemSize: sizeClass, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass && `border-color_${optionBorderClass}`, noOptionBorderType: optionBorderTypeClass && `border_type_${optionBorderTypeClass}`, noOptionsFill: optionFillClass && `fill_${optionFillClass}`, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, optionFill: optionFillClass, optionFillActive: optionFillActiveClass, optionFillActiveDisabledClass: optionFillActiveDisabledClass, optionFillActiveHover: optionFillActiveHoverClass, optionFillDisabled: optionFillDisabledClass, optionFillHover: optionFillHoverClass, options: options, optionSelectedIcon: optionSelectedIcon, optionSelectedIconFillIcon: optionSelectedIconFillIcon, optionSelectedIconSize: optionSelectedIconSize, optionSelectedIconSrc: optionSelectedIconSrc, optionShape: shapeClass, optionShapeStrength: shapeStrengthClass, optionTextColor: optionTextColorClass, optionTextColorActive: optionTextColorActiveClass, optionTextColorDisabled: optionTextColorDisabled, optionTextSize: optionTextSizeClass, placeholder: placeholder, placeholderTextColor: placeholderTextColor, placeholderTextSize: placeholderTextSize, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect ?? true, isDisabled: isDisabled, isClearable: isClearable ?? false, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable ?? false, set: set, onChange: onChange, onInputChange: onInputChange }));
572
577
  });
573
578
 
574
579
  export { SelectContainer as Select, SelectClearIndicator, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig };
@@ -1,6 +1,6 @@
1
1
  import { jsxs } from 'react/jsx-runtime';
2
2
 
3
- var slidesMock = Array.from({ length: 10 }, function (_, index) { return (jsxs("div", { style: {
3
+ const slidesMock = Array.from({ length: 10 }, (_, index) => (jsxs("div", { style: {
4
4
  width: '100%',
5
5
  height: 'auto',
6
6
  justifyContent: 'center',
@@ -8,7 +8,7 @@ var slidesMock = Array.from({ length: 10 }, function (_, index) { return (jsxs("
8
8
  fontSize: 24,
9
9
  fontWeight: 'bold',
10
10
  display: 'flex',
11
- background: "hsl(".concat(index * 60, ", 70%, 80%)"),
12
- }, children: ["Slide ", index + 1] }, index)); });
11
+ background: `hsl(${index * 60}, 70%, 80%)`,
12
+ }, children: ["Slide ", index + 1] }, index)));
13
13
 
14
14
  export { slidesMock };
@@ -4,8 +4,7 @@ import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { b as Title } from '../Icon_es_BrwLifge.js';
8
- import '../tslib.es6_es_Bwu1Cn-t.js';
7
+ import { b as Title } from '../Icon_es_DkVkzTha.js';
9
8
  import 'lodash/camelCase';
10
9
  import 'lodash/castArray';
11
10
  import 'lodash/upperFirst';
@@ -23,18 +22,18 @@ import 'react-inlinesvg';
23
22
  import '../hoc/urlWithAssetPrefix.js';
24
23
  import '../context/UrlAssetPrefix.js';
25
24
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
26
- import '../Link_es_XiqbdwLp.js';
27
- import '../Text_es_CwV9rjFD.js';
25
+ import '../Link_es_P2b6ya7P.js';
26
+ import '../Text_es_CnymlElo.js';
28
27
 
29
28
  function Swiper(props) {
30
- var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
31
- freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, set = props.set, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _b = props.isNavigation, isNavigation = _b === void 0 ? false : _b, isScrollbar = props.isScrollbar, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate, children = props.children;
32
- var swiperRef = useRef(null);
33
- var isMountedRef = useRef(false);
34
- var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
35
- var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
36
- var isLoop = loop !== null && loop !== void 0 ? loop : true;
37
- var onInitSwiper = useCallback(function (swiper) {
29
+ const { id, className, direction, title, titleAfter, titleSize, titleTextColor, titleWeight, setNextBtnDisabled, setPrevBtnDisabled, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, // https://github.com/vercel/next.js/issues/4957
30
+ freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, set, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
31
+ const swiperRef = useRef(null);
32
+ const isMountedRef = useRef(false);
33
+ const [nextEl, nextRef] = useSwiperRef();
34
+ const [prevEl, prevRef] = useSwiperRef();
35
+ const isLoop = loop ?? true;
36
+ const onInitSwiper = useCallback((swiper) => {
38
37
  // swiper.touchEventsData.formElements = 'undefined'
39
38
  // Set "disabled" state to navigation buttons on init
40
39
  if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
@@ -42,13 +41,13 @@ function Swiper(props) {
42
41
  setNextBtnDisabled(swiper.isEnd);
43
42
  }
44
43
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
45
- var onSlideChange = useCallback(function (swiper) {
44
+ const onSlideChange = useCallback((swiper) => {
46
45
  // Some things with clickedIndex
47
46
  if (isChangeOnClickSlide) {
48
47
  swiper.activeIndex = activeSlideIndex || swiper.clickedIndex;
49
48
  }
50
49
  }, [isChangeOnClickSlide, activeSlideIndex]);
51
- var onTransitionStart = useCallback(function (swiper) {
50
+ const onTransitionStart = useCallback((swiper) => {
52
51
  // Set "disabled" state to navigation buttons, when slider move
53
52
  if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
54
53
  setPrevBtnDisabled(swiper.isBeginning);
@@ -56,31 +55,30 @@ function Swiper(props) {
56
55
  }
57
56
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
58
57
  // @ts-expect-error
59
- useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
60
- useEffect(function () {
61
- var _a;
58
+ useImperativeHandle(forwardedRef, () => swiperRef.current, []);
59
+ useEffect(() => {
62
60
  if (isMountedRef.current) {
63
- var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
61
+ const swiperInstance = swiperRef.current?.swiper;
64
62
  // @ts-expect-error
65
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
66
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
63
+ swiperInstance?.updateActiveIndex(activeSlideIndex);
64
+ swiperInstance?.updateSlidesClasses();
67
65
  }
68
66
  else {
69
67
  isMountedRef.current = true;
70
68
  }
71
69
  }, [activeSlideIndex]);
72
- var propsGenerator = useDevicePropsGenerator(props);
73
- var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass;
70
+ const propsGenerator = useDevicePropsGenerator(props);
71
+ const { alignClass, alignDirectionClass, fillClass, shapeClass } = propsGenerator;
74
72
  // @ts-expect-error
75
- var style = useStyles(props).styles;
76
- return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
77
- (items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
73
+ const { styles: style } = useStyles(props);
74
+ return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className, set && `swiper-block_set_${set}`), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
75
+ items?.map((item, i) => (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: item }, `swiper-slide_${i}`))) })] }));
78
76
  }
79
77
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
80
- var useSwiperRef = function () {
81
- var _a = useState(null), wrapper = _a[0], setWrapper = _a[1];
82
- var ref = useRef(null);
83
- useEffect(function () {
78
+ const useSwiperRef = () => {
79
+ const [wrapper, setWrapper] = useState(null);
80
+ const ref = useRef(null);
81
+ useEffect(() => {
84
82
  if (ref.current) {
85
83
  setWrapper(ref.current);
86
84
  }