@itcase/ui 1.8.122 → 1.8.124

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 (266) hide show
  1. package/dist/Avatar_cjs_mojzcWRL.js +161 -0
  2. package/dist/Avatar_es_BFom0nAS.js +157 -0
  3. package/dist/{Button_cjs_i0Dn1pkl.js → Button_cjs_CZz8OjWi.js} +42 -30
  4. package/dist/{Button_es_CtH5EKJd.js → Button_es_Cn3wtv3M.js} +42 -30
  5. package/dist/ChipsGroup_cjs_Dgskkc1e.js +344 -0
  6. package/dist/{ChipsGroup_es_ayPPUwQ7.js → ChipsGroup_es_BVQ7_n0k.js} +48 -35
  7. package/dist/DatePicker_cjs_Lzrr9Amf.js +182 -0
  8. package/dist/DatePicker_es_D1LvY5RT.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_rKLdFxSj.js +211 -0
  12. package/dist/DropdownItem_es_B-1qtEa7.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_DpFxIFv5.js} +170 -121
  16. package/dist/{Icon_es_BrwLifge.js → Icon_es_D5eiycFI.js} +170 -121
  17. package/dist/Image_cjs_CBDMUzv_.js +29 -0
  18. package/dist/Image_es_BHec4iVN.js +27 -0
  19. package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DDi5JVAV.js} +27 -19
  20. package/dist/{Input_es_CiDHjDqJ.js → Input_es_BnCXATnh.js} +27 -19
  21. package/dist/{Label_cjs_DMoaOoHi.js → Label_cjs_C-x9blCL.js} +45 -33
  22. package/dist/{Label_es_SULlg9bL.js → Label_es_DCqpSw_F.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 +114 -84
  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 +102 -84
  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 +47 -42
  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 +59 -69
  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 +114 -84
  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 +102 -84
  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 +47 -42
  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 +59 -69
  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/Checkmark/Checkmark.css +2 -0
  203. package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
  204. package/dist/css/components/Input/Input.css +0 -8
  205. package/dist/css/components/InputPassword/InputPassword.css +34 -43
  206. package/dist/css/components/Tile/Tile.css +3 -3
  207. package/dist/hoc/urlWithAssetPrefix.js +13 -16
  208. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +13 -40
  209. package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +1 -1
  210. package/dist/hooks/useActiveClasses/useActiveClasses.js +25 -29
  211. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +13 -15
  212. package/dist/hooks/useAppearanceConfig.js +0 -1
  213. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +21 -28
  214. package/dist/hooks/useDevicePropsGenerator.js +0 -1
  215. package/dist/hooks/useDeviceTargetClass.js +0 -1
  216. package/dist/hooks/useStyles/styleAttributes.js +1 -1
  217. package/dist/hooks/useStyles/useStyles.js +0 -1
  218. package/dist/hooks/useStyles.js +0 -1
  219. package/dist/hooks/useViewportFix.js +5 -5
  220. package/dist/hooks.js +1 -1
  221. package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
  222. package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
  223. package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
  224. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
  225. package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
  226. package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
  227. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
  228. package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
  229. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
  230. package/dist/types/components/Response/Response.constant.d.ts +32 -35
  231. package/dist/types/components/Response/appearance/responseConfirm.d.ts +1 -0
  232. package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
  233. package/dist/types/components/Response/appearance/responseEmpty.d.ts +1 -0
  234. package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
  235. package/dist/types/components/Response/appearance/responseFail.d.ts +1 -0
  236. package/dist/types/components/Response/appearance/responseNothingFound.d.ts +1 -0
  237. package/dist/types/components/Response/appearance/responseRefresh.d.ts +1 -0
  238. package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
  239. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
  240. package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
  241. package/dist/types/components/Select/SelectContainer.d.ts +1 -1
  242. package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
  243. package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
  244. package/dist/utils/setViewportProperty.js +3 -3
  245. package/package.json +14 -14
  246. package/dist/Avatar_cjs_kuE0Rueg.js +0 -157
  247. package/dist/Avatar_es_lx7s4Vla.js +0 -153
  248. package/dist/ChipsGroup_cjs_C8L3ZeD_.js +0 -331
  249. package/dist/DatePicker_cjs_DsIAoi01.js +0 -183
  250. package/dist/DatePicker_es_BP5BrEr-.js +0 -179
  251. package/dist/Divider_cjs_DUYtmwn2.js +0 -97
  252. package/dist/Divider_es_CCLBFIx6.js +0 -93
  253. package/dist/DropdownItem_cjs_Bhss6lyM.js +0 -207
  254. package/dist/DropdownItem_es_BXl6lPJx.js +0 -202
  255. package/dist/Group_cjs_CsJ6ICKK.js +0 -59
  256. package/dist/Group_es_DRqIIM9m.js +0 -55
  257. package/dist/Image_cjs_B6YlGx8G.js +0 -28
  258. package/dist/Image_es_BvYo_cHH.js +0 -26
  259. package/dist/Loader_cjs_D3lnxPlI.js +0 -132
  260. package/dist/Loader_es_BUSqFrCd.js +0 -128
  261. package/dist/Overlay_cjs_CcfJYN5o.js +0 -41
  262. package/dist/Overlay_es_DF3DAdxS.js +0 -37
  263. package/dist/Text_cjs_0EINiUq4.js +0 -68
  264. package/dist/Text_es_CwV9rjFD.js +0 -64
  265. package/dist/tslib.es6_cjs_CCZ3TN_7.js +0 -59
  266. package/dist/tslib.es6_es_Bwu1Cn-t.js +0 -56
@@ -1,19 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
3
  var jsxRuntime = require('react/jsx-runtime');
5
4
  var Select = require('react-select');
6
- var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
5
+ var Icon = require('../../Icon_cjs_DpFxIFv5.js');
7
6
  var React = require('react');
8
7
  var clsx = require('clsx');
9
8
  var CreatableSelect = require('react-select/creatable');
10
- var Group = require('../../Group_cjs_CsJ6ICKK.js');
11
- var Text = require('../../Text_cjs_0EINiUq4.js');
9
+ var Group = require('../../Group_cjs_DmfeUcFI.js');
10
+ var Text = require('../../Text_cjs_BDTjOTVB.js');
12
11
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
13
12
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
14
13
  var _default = require('@itcase/icons/default');
15
- var Loader = require('../../Loader_cjs_D3lnxPlI.js');
16
- var Divider = require('../../Divider_cjs_DUYtmwn2.js');
14
+ var Loader = require('../../Loader_cjs_DIDsIq3J.js');
15
+ var Divider = require('../../Divider_cjs_DrmV2ezS.js');
17
16
  require('react-inlinesvg');
18
17
  require('../hoc/urlWithAssetPrefix.js');
19
18
  require('@itcase/common');
@@ -30,25 +29,25 @@ require('react-responsive');
30
29
  require('../utils/setViewportProperty.js');
31
30
  require('../hooks.js');
32
31
  require('../hooks/useStyles/styleAttributes.js');
33
- require('../../Link_cjs_C5UsZUiF.js');
32
+ require('../../Link_cjs_qKXVfU8e.js');
34
33
  require('lodash/castArray');
35
34
 
36
35
  // interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
37
36
  // extends DefaultClearIndicatorProps<Option, IsMulti, Group> {}
38
37
  // For use memo need to check "ClearIndicator" props
39
38
  // const SelectClearIndicator = React.memo(
40
- var SelectClearIndicator = function (props) {
41
- var children = props.children;
42
- var _a = props.selectProps, clearIcon = _a.clearIcon, clearIconFill = _a.clearIconFill;
43
- return (jsxRuntime.jsx(Select.components.ClearIndicator, tslib_es6.__assign({}, props, { children: clearIcon ? (jsxRuntime.jsx(Icon.Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) })));
39
+ const SelectClearIndicator = (props) => {
40
+ const { children } = props;
41
+ const { clearIcon, clearIconFill } = props.selectProps;
42
+ return (jsxRuntime.jsx(Select.components.ClearIndicator, { ...props, children: clearIcon ? (jsxRuntime.jsx(Icon.Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) }));
44
43
  };
45
44
 
46
- var SelectLoadingMessage = function (props) {
47
- var _a = props.selectProps, loadingMessageText = _a.loadingMessageText, loadingMessageTextColor = _a.loadingMessageTextColor, loadingMessageTextSize = _a.loadingMessageTextSize;
45
+ const SelectLoadingMessage = (props) => {
46
+ const { loadingMessageText, loadingMessageTextColor, loadingMessageTextSize, } = props.selectProps;
48
47
  return (jsxRuntime.jsx(Group.Group, { textAlign: "center", children: jsxRuntime.jsx(Text.Text, { size: loadingMessageTextSize, textColor: loadingMessageTextColor, children: loadingMessageText }) }));
49
48
  };
50
49
 
51
- var selectAppearanceDefault = {
50
+ const selectAppearanceDefault = {
52
51
  defaultPrimary: {
53
52
  fill: 'surfaceSecondary',
54
53
  fillHover: 'surfaceTertiary',
@@ -87,7 +86,7 @@ var selectAppearanceDefault = {
87
86
  },
88
87
  };
89
88
 
90
- var selectAppearanceDisabled = {
89
+ const selectAppearanceDisabled = {
91
90
  disabledPrimary: {
92
91
  elevation: 8,
93
92
  badgeAppearance: 'accent',
@@ -117,7 +116,7 @@ var selectAppearanceDisabled = {
117
116
  },
118
117
  };
119
118
 
120
- var selectAppearanceError = {
119
+ const selectAppearanceError = {
121
120
  errorPrimary: {
122
121
  fill: 'errorTertiary',
123
122
  fillHover: 'errorTertiary',
@@ -156,7 +155,7 @@ var selectAppearanceError = {
156
155
  },
157
156
  };
158
157
 
159
- var selectAppearanceRequire = {
158
+ const selectAppearanceRequire = {
160
159
  requirePrimary: {
161
160
  fill: 'warningTertiary',
162
161
  fillHover: 'warningTertiary',
@@ -195,7 +194,7 @@ var selectAppearanceRequire = {
195
194
  },
196
195
  };
197
196
 
198
- var selectAppearanceShape = {
197
+ const selectAppearanceShape = {
199
198
  rounded: {
200
199
  shape: 'rounded',
201
200
  },
@@ -217,7 +216,7 @@ var selectAppearanceShape = {
217
216
  },
218
217
  };
219
218
 
220
- var selectAppearanceSize = {
219
+ const selectAppearanceSize = {
221
220
  sizeXXL: {
222
221
  size: 'xxl',
223
222
  textLoadingMessageAppearance: 'sizeM',
@@ -334,7 +333,7 @@ var selectAppearanceSize = {
334
333
  },
335
334
  };
336
335
 
337
- var selectAppearanceStyle = {
336
+ const selectAppearanceStyle = {
338
337
  solid: {
339
338
  borderColor: 'none',
340
339
  borderColorHover: 'none',
@@ -351,7 +350,7 @@ var selectAppearanceStyle = {
351
350
  },
352
351
  };
353
352
 
354
- var selectAppearanceSuccess = {
353
+ const selectAppearanceSuccess = {
355
354
  successPrimary: {
356
355
  fill: 'successTertiary',
357
356
  fillHover: 'successTertiary',
@@ -390,169 +389,175 @@ var selectAppearanceSuccess = {
390
389
  },
391
390
  };
392
391
 
393
- var selectAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, selectAppearanceRequire), selectAppearanceDefault), selectAppearanceDisabled), selectAppearanceSuccess), selectAppearanceSize), selectAppearanceError), selectAppearanceShape), selectAppearanceStyle);
392
+ const selectAppearance = {
393
+ ...selectAppearanceRequire,
394
+ ...selectAppearanceDefault,
395
+ ...selectAppearanceDisabled,
396
+ ...selectAppearanceSuccess,
397
+ ...selectAppearanceSize,
398
+ ...selectAppearanceError,
399
+ ...selectAppearanceShape,
400
+ ...selectAppearanceStyle,
401
+ };
394
402
 
395
- var SelectControl = function (props) {
396
- var _a = props.selectProps, before = _a.before, after = _a.after;
397
- return (jsxRuntime.jsxs(React.Fragment, { children: [before, jsxRuntime.jsx(Select.components.Control, tslib_es6.__assign({}, props, { className: clsx('select__control') })), after] }));
403
+ const SelectControl = (props) => {
404
+ const { before, after } = props.selectProps;
405
+ return (jsxRuntime.jsxs(React.Fragment, { children: [before, jsxRuntime.jsx(Select.components.Control, { ...props, className: clsx('select__control') }), after] }));
398
406
  };
399
407
 
400
408
  // For use memo need to check "DropdownIndicator" props
401
409
  // const SelectDropdownIndicator = React.memo(
402
- var SelectDropdownIndicator = function (props) {
403
- var children = props.children;
404
- var _a = props.selectProps, dropdownFillHover = _a.dropdownFillHover, dropdownIcon = _a.dropdownIcon, dropdownIconFill = _a.dropdownIconFill, dropdownIconShape = _a.dropdownIconShape;
405
- return (jsxRuntime.jsx(Select.components.DropdownIndicator, tslib_es6.__assign({}, props, { children: dropdownIcon ? (jsxRuntime.jsx(Icon.Icon, { fillHover: dropdownFillHover, iconFill: dropdownIconFill, shape: dropdownIconShape, SvgImage: dropdownIcon })) : (children) })));
410
+ const SelectDropdownIndicator = (props) => {
411
+ const { children } = props;
412
+ const { dropdownFillHover, dropdownIcon, dropdownIconFill, dropdownIconShape, } = props.selectProps;
413
+ return (jsxRuntime.jsx(Select.components.DropdownIndicator, { ...props, children: dropdownIcon ? (jsxRuntime.jsx(Icon.Icon, { fillHover: dropdownFillHover, iconFill: dropdownIconFill, shape: dropdownIconShape, SvgImage: dropdownIcon })) : (children) }));
406
414
  };
407
415
 
408
- var SelectGroupHeading = function (props) {
409
- var _a = props.selectProps, groupFill = _a.groupFill, groupTextColor = _a.groupTextColor, groupTextSize = _a.groupTextSize, groupTextWeight = _a.groupTextWeight;
410
- return (jsxRuntime.jsx(Select.components.GroupHeading, tslib_es6.__assign({}, props, { className: clsx('select__menu-group-heading', groupFill && "fill_".concat(groupFill)), children: jsxRuntime.jsx(Text.Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) })));
416
+ const SelectGroupHeading = (props) => {
417
+ const { groupFill, groupTextColor, groupTextSize, groupTextWeight } = props.selectProps;
418
+ return (jsxRuntime.jsx(Select.components.GroupHeading, { ...props, className: clsx('select__menu-group-heading', groupFill && `fill_${groupFill}`), children: jsxRuntime.jsx(Text.Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) }));
411
419
  };
412
420
 
413
- var SelectIndicatorsContainer = function (props) {
414
- var _a = props.selectProps, badgeAppearance = _a.badgeAppearance, badgeSize = _a.badgeSize, badgeTextSize = _a.badgeTextSize, showBadge = _a.showBadge, value = _a.value;
415
- return (jsxRuntime.jsxs(Select.components.IndicatorsContainer, tslib_es6.__assign({}, props, { children: [showBadge &&
421
+ const SelectIndicatorsContainer = (props) => {
422
+ const { badgeAppearance, badgeSize, badgeTextSize, showBadge, value } = props.selectProps;
423
+ return (jsxRuntime.jsxs(Select.components.IndicatorsContainer, { ...props, children: [showBadge &&
416
424
  value &&
417
425
  // @ts-expect-error
418
- (value === null || value === void 0 ? void 0 : value.length) > 0 ? (jsxRuntime.jsx(Icon.Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
426
+ value?.length > 0 ? (jsxRuntime.jsx(Icon.Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
419
427
  // @ts-expect-error
420
- value: value.length.toString() })) : null, props.children] })));
428
+ value: value.length.toString() })) : null, props.children] }));
421
429
  };
422
430
 
423
- var SelectInput = function (props) {
424
- var _a = props.selectProps, inputCaretColor = _a.inputCaretColor, inputTextColor = _a.inputTextColor, inputTextSize = _a.inputTextSize;
425
- return (jsxRuntime.jsx(Select.components.Input, tslib_es6.__assign({}, props, { className: clsx(inputTextSize && "text_size_".concat(inputTextSize), inputTextColor && "text-color_".concat(inputTextColor), inputCaretColor && "caret-color_".concat(inputCaretColor)) })));
431
+ const SelectInput = (props) => {
432
+ const { inputCaretColor, inputTextColor, inputTextSize } = props.selectProps;
433
+ return (jsxRuntime.jsx(Select.components.Input, { ...props, className: clsx(inputTextSize && `text_size_${inputTextSize}`, inputTextColor && `text-color_${inputTextColor}`, inputCaretColor && `caret-color_${inputCaretColor}`) }));
426
434
  };
427
435
 
428
- var SelectLoadingIndicator = function (props) {
429
- var _a = props.selectProps, loaderAppearance = _a.loaderAppearance, isLoading = _a.isLoading;
436
+ const SelectLoadingIndicator = (props) => {
437
+ const { loaderAppearance, isLoading } = props.selectProps;
430
438
  return isLoading && jsxRuntime.jsx(Loader.Loader, { appearance: loaderAppearance });
431
439
  };
432
440
 
433
- var SelectMenu = function (props) {
434
- var _a = props.selectProps, elevation = _a.elevation, menuAfter = _a.menuAfter, menuBefore = _a.menuBefore, menuFill = _a.menuFill, menuShape = _a.menuShape, menuShapeStrength = _a.menuShapeStrength;
435
- return (jsxRuntime.jsxs(Select.components.Menu, tslib_es6.__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 ? (jsxRuntime.jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsxRuntime.jsx(React.Fragment, { children: props.children })), menuAfter] })));
441
+ const SelectMenu = (props) => {
442
+ const { elevation, menuAfter, menuBefore, menuFill, menuShape, menuShapeStrength, } = props.selectProps;
443
+ return (jsxRuntime.jsxs(Select.components.Menu, { ...props, className: clsx(menuFill && `fill_${menuFill}`, menuShape && `shape_${menuShape}`, menuShapeStrength && `shape-strength_${menuShapeStrength}`, elevation && `elevation_${elevation}`), children: [menuBefore, props.selectProps.fetchingData ? (jsxRuntime.jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsxRuntime.jsx(React.Fragment, { children: props.children })), menuAfter] }));
436
444
  };
437
445
 
438
- var SelectMultiValueContainer = function (props) {
439
- var _a = props.selectProps, multipleItemFill = _a.multipleItemFill, multipleItemFillHover = _a.multipleItemFillHover;
440
- return (jsxRuntime.jsx(Select.components.MultiValueContainer, tslib_es6.__assign({}, props, { children: jsxRuntime.jsx(Group.Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, gap: "0.5m", children: props.children }) })));
446
+ const SelectMultiValueContainer = (props) => {
447
+ const { multipleItemFill, multipleItemFillHover } = props.selectProps;
448
+ return (jsxRuntime.jsx(Select.components.MultiValueContainer, { ...props, children: jsxRuntime.jsx(Group.Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, gap: "0.5m", children: props.children }) }));
441
449
  };
442
450
 
443
- var SelectMultiValueLabel = function (props) {
444
- var _a = props.selectProps, multipleItemTextColor = _a.multipleItemTextColor, multipleItemTextSize = _a.multipleItemTextSize;
445
- return (jsxRuntime.jsx(Select.components.MultiValueLabel, tslib_es6.__assign({}, props, { children: props.data && (jsxRuntime.jsx(Text.Text, { size: multipleItemTextSize, textColor: multipleItemTextColor, children: props.data.label })) })));
451
+ const SelectMultiValueLabel = (props) => {
452
+ const { multipleItemTextColor, multipleItemTextSize } = props.selectProps;
453
+ return (jsxRuntime.jsx(Select.components.MultiValueLabel, { ...props, children: props.data && (jsxRuntime.jsx(Text.Text, { size: multipleItemTextSize, textColor: multipleItemTextColor, children: props.data.label })) }));
446
454
  };
447
455
 
448
- var SelectMultiValueRemove = function (props) {
449
- var _a = props.selectProps, multipleItemIcon = _a.multipleItemIcon, multipleItemIconFill = _a.multipleItemIconFill;
450
- return (jsxRuntime.jsx(Select.components.MultiValueRemove, tslib_es6.__assign({}, props, { children: jsxRuntime.jsx(Icon.Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) })));
456
+ const SelectMultiValueRemove = (props) => {
457
+ const { multipleItemIcon, multipleItemIconFill } = props.selectProps;
458
+ return (jsxRuntime.jsx(Select.components.MultiValueRemove, { ...props, children: jsxRuntime.jsx(Icon.Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) }));
451
459
  };
452
460
 
453
- var SelectNoOptions = function (props) {
454
- var _a = props.selectProps, inputValue = _a.inputValue, noOptionsSearchText = _a.noOptionsSearchText, noOptionsText = _a.noOptionsText, noOptionsTextColor = _a.noOptionsTextColor, noOptionsTextSize = _a.noOptionsTextSize, optionFill = _a.optionFill;
455
- return (jsxRuntime.jsx(Select.components.NoOptionsMessage, tslib_es6.__assign({}, props, { className: clsx(optionFill && "fill_".concat(optionFill)), children: jsxRuntime.jsx(Group.Group, { textAlign: "center", children: jsxRuntime.jsx(Text.Text, { size: noOptionsTextSize, textColor: noOptionsTextColor, children: inputValue && noOptionsSearchText
461
+ const SelectNoOptions = (props) => {
462
+ const { inputValue, noOptionsSearchText, noOptionsText, noOptionsTextColor, noOptionsTextSize, optionFill, } = props.selectProps;
463
+ return (jsxRuntime.jsx(Select.components.NoOptionsMessage, { ...props, className: clsx(optionFill && `fill_${optionFill}`), children: jsxRuntime.jsx(Group.Group, { textAlign: "center", children: jsxRuntime.jsx(Text.Text, { size: noOptionsTextSize, textColor: noOptionsTextColor, children: inputValue && noOptionsSearchText
456
464
  ? noOptionsSearchText
457
- : noOptionsText }) }) })));
465
+ : noOptionsText }) }) }));
458
466
  };
459
467
 
460
- var SelectOption = function (props) {
461
- var label = props.label, isSelected = props.isSelected;
462
- 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;
463
- return (jsxRuntime.jsxs(Select.components.Option, tslib_es6.__assign({}, props, { className: clsx('select__menu-list-item', isSelected || props.isSelected
468
+ const SelectOption = (props) => {
469
+ const { label, isSelected } = props;
470
+ 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;
471
+ return (jsxRuntime.jsxs(Select.components.Option, { ...props, className: clsx('select__menu-list-item', isSelected || props.isSelected
464
472
  ? !props.isDisabled
465
- ? optionFillActive && "fill_active_".concat(optionFillActive)
473
+ ? optionFillActive && `fill_active_${optionFillActive}`
466
474
  : optionFillActiveDisabled &&
467
- "fill_active_disabled_".concat(optionFillActiveDisabled)
475
+ `fill_active_disabled_${optionFillActiveDisabled}`
468
476
  : !props.isDisabled
469
- ? optionFill && "fill_".concat(optionFill)
470
- : optionFillDisabled && "fill_".concat(optionFillDisabled), (isSelected || props.isSelected) &&
477
+ ? optionFill && `fill_${optionFill}`
478
+ : optionFillDisabled && `fill_${optionFillDisabled}`, (isSelected || props.isSelected) &&
471
479
  !props.isDisabled &&
472
480
  optionFillActiveHover &&
473
- "fill_active_hover_".concat(optionFillActiveHover), !isSelected &&
481
+ `fill_active_hover_${optionFillActiveHover}`, !isSelected &&
474
482
  !props.isSelected &&
475
483
  !props.isDisabled &&
476
484
  optionFillHover &&
477
- "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, jsxRuntime.jsx(Text.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) && (jsxRuntime.jsx("div", { className: "select__menu-list-item_selected", children: jsxRuntime.jsx(Icon.Icon, { iconFill: optionSelectedIconFillIcon, iconSize: optionSelectedIconSize, imageSrc: optionSelectedIconSrc, SvgImage: optionSelectedIcon }) })), optionAfter, showDivider && (jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] })));
485
+ `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, jsxRuntime.jsx(Text.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) && (jsxRuntime.jsx("div", { className: "select__menu-list-item_selected", children: jsxRuntime.jsx(Icon.Icon, { iconFill: optionSelectedIconFillIcon, iconSize: optionSelectedIconSize, imageSrc: optionSelectedIconSrc, SvgImage: optionSelectedIcon }) })), optionAfter, showDivider && (jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] }));
478
486
  };
479
487
 
480
- var SelectPlaceholder = function (props) {
481
- var _a = props.selectProps, placeholderTextColor = _a.placeholderTextColor, placeholderTextSize = _a.placeholderTextSize;
482
- return (jsxRuntime.jsx(Select.components.Placeholder, tslib_es6.__assign({}, props, { children: jsxRuntime.jsx(Text.Text, { size: placeholderTextSize, textColor: placeholderTextColor, children: props.children }) })));
488
+ const SelectPlaceholder = (props) => {
489
+ const { placeholderTextColor, placeholderTextSize } = props.selectProps;
490
+ return (jsxRuntime.jsx(Select.components.Placeholder, { ...props, children: jsxRuntime.jsx(Text.Text, { size: placeholderTextSize, textColor: placeholderTextColor, children: props.children }) }));
483
491
  };
484
492
 
485
- var SelectSingleValue = function (props) {
486
- var data = props.data;
487
- var _a = props.selectProps, inputTextColor = _a.inputTextColor, inputTextSize = _a.inputTextSize;
488
- return (jsxRuntime.jsxs(Select.components.SingleValue, tslib_es6.__assign({}, props, { children: [data && data.optionBefore, jsxRuntime.jsx(Text.Text, { size: inputTextSize, textColor: inputTextColor, children: props.children }), data && data.optionAfter] })));
493
+ const SelectSingleValue = (props) => {
494
+ const { data } = props;
495
+ const { inputTextColor, inputTextSize } = props.selectProps;
496
+ return (jsxRuntime.jsxs(Select.components.SingleValue, { ...props, children: [data && data.optionBefore, jsxRuntime.jsx(Text.Text, { size: inputTextSize, textColor: inputTextColor, children: props.children }), data && data.optionAfter] }));
489
497
  };
490
498
 
491
- var SelectValueContainer = function (props) {
492
- var _a = props.selectProps, inputAfter = _a.inputAfter, inputBefore = _a.inputBefore;
493
- return (jsxRuntime.jsxs(Select.components.ValueContainer, tslib_es6.__assign({}, props, { children: [inputBefore, props.children, inputAfter] })));
499
+ const SelectValueContainer = (props) => {
500
+ const { inputAfter, inputBefore } = props.selectProps;
501
+ return (jsxRuntime.jsxs(Select.components.ValueContainer, { ...props, children: [inputBefore, props.children, inputAfter] }));
494
502
  };
495
503
 
496
- var selectConfig = {
504
+ const selectConfig = {
497
505
  appearance: selectAppearance,
498
- setAppearance: function (appearanceConfig) {
506
+ setAppearance: (appearanceConfig) => {
499
507
  selectConfig.appearance = appearanceConfig;
500
508
  },
501
509
  };
502
- var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
503
- 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;
504
- var defaultRef = React.useRef(null);
505
- var selectRef = ref || defaultRef;
506
- var SelectComponent = isCreatable
510
+ const SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
511
+ 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;
512
+ const defaultRef = React.useRef(null);
513
+ const selectRef = ref || defaultRef;
514
+ const SelectComponent = isCreatable
507
515
  ? CreatableSelect
508
516
  : Select;
509
- React.useEffect(function () {
517
+ React.useEffect(() => {
510
518
  // @ts-expect-error
511
- var onClickOutside = function (event) {
512
- var _a;
513
- var isTargetSelectContainer =
519
+ const onClickOutside = (event) => {
520
+ const isTargetSelectContainer =
514
521
  // maybe here ".contains()"?
515
522
  event.target.hasClass &&
516
523
  event.target.hasClass('select_state_hide-value-container');
517
524
  if ('current' in selectRef &&
518
525
  selectRef.current &&
519
526
  selectRef.current.controlRef) {
520
- var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
527
+ const isTargetInsideController = selectRef.current.controlRef.contains(event.target);
521
528
  if (!isTargetSelectContainer && !isTargetInsideController) {
522
529
  // @ts-expect-error
523
- (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
530
+ selectRef.current?.onInputBlur();
524
531
  }
525
532
  }
526
533
  };
527
534
  if (hideValueContainer) {
528
535
  document.addEventListener('click', onClickOutside);
529
536
  }
530
- return function () {
537
+ return () => {
531
538
  if (hideValueContainer) {
532
539
  document.removeEventListener('click', onClickOutside);
533
540
  }
534
541
  };
535
542
  }, [hideValueContainer, selectRef]);
536
- var clearStyle = React.useMemo(function () {
537
- return new Proxy({
538
- container: {
539
- width: width,
540
- minWidth: minWidth,
541
- },
542
- }, {
543
- get: function (target, prop) {
544
- if (prop in target) {
545
- return function () { return target[prop]; };
546
- }
547
- return function () { };
548
- },
549
- });
550
- }, [minWidth, width]);
551
- var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, selectConfig, isDisabled);
552
- var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
553
- 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;
554
- return (jsxRuntime.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: {
555
- IndicatorSeparator: function () { return null; },
543
+ const clearStyle = React.useMemo(() => new Proxy({
544
+ container: {
545
+ width: width,
546
+ minWidth: minWidth,
547
+ },
548
+ }, {
549
+ get: (target, prop) => {
550
+ if (prop in target) {
551
+ return () => target[prop];
552
+ }
553
+ return () => { };
554
+ },
555
+ }), [minWidth, width]);
556
+ const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, selectConfig, isDisabled);
557
+ const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
558
+ 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;
559
+ return (jsxRuntime.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: {
560
+ IndicatorSeparator: () => null,
556
561
  ClearIndicator: SelectClearIndicator,
557
562
  Control: SelectControl,
558
563
  DropdownIndicator: SelectDropdownIndicator,
@@ -570,7 +575,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
570
575
  Placeholder: SelectPlaceholder,
571
576
  SingleValue: SelectSingleValue,
572
577
  ValueContainer: SelectValueContainer,
573
- }, 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 }));
578
+ }, 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 }));
574
579
  });
575
580
 
576
581
  exports.Select = SelectContainer;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
 
5
- var slidesMock = Array.from({ length: 10 }, function (_, index) { return (jsxRuntime.jsxs("div", { style: {
5
+ const slidesMock = Array.from({ length: 10 }, (_, index) => (jsxRuntime.jsxs("div", { style: {
6
6
  width: '100%',
7
7
  height: 'auto',
8
8
  justifyContent: 'center',
@@ -10,7 +10,7 @@ var slidesMock = Array.from({ length: 10 }, function (_, index) { return (jsxRun
10
10
  fontSize: 24,
11
11
  fontWeight: 'bold',
12
12
  display: 'flex',
13
- background: "hsl(".concat(index * 60, ", 70%, 80%)"),
14
- }, children: ["Slide ", index + 1] }, index)); });
13
+ background: `hsl(${index * 60}, 70%, 80%)`,
14
+ }, children: ["Slide ", index + 1] }, index)));
15
15
 
16
16
  exports.slidesMock = slidesMock;
@@ -6,8 +6,7 @@ var clsx = require('clsx');
6
6
  var react = require('swiper/react');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
10
- require('../../tslib.es6_cjs_CCZ3TN_7.js');
9
+ var Icon = require('../../Icon_cjs_DpFxIFv5.js');
11
10
  require('lodash/camelCase');
12
11
  require('lodash/castArray');
13
12
  require('lodash/upperFirst');
@@ -25,18 +24,18 @@ require('react-inlinesvg');
25
24
  require('../hoc/urlWithAssetPrefix.js');
26
25
  require('../context/UrlAssetPrefix.js');
27
26
  require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
28
- require('../../Link_cjs_C5UsZUiF.js');
29
- require('../../Text_cjs_0EINiUq4.js');
27
+ require('../../Link_cjs_qKXVfU8e.js');
28
+ require('../../Text_cjs_BDTjOTVB.js');
30
29
 
31
30
  function Swiper(props) {
32
- 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
33
- 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;
34
- var swiperRef = React.useRef(null);
35
- var isMountedRef = React.useRef(false);
36
- var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
37
- var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
38
- var isLoop = loop !== null && loop !== void 0 ? loop : true;
39
- var onInitSwiper = React.useCallback(function (swiper) {
31
+ 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
32
+ 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;
33
+ const swiperRef = React.useRef(null);
34
+ const isMountedRef = React.useRef(false);
35
+ const [nextEl, nextRef] = useSwiperRef();
36
+ const [prevEl, prevRef] = useSwiperRef();
37
+ const isLoop = loop ?? true;
38
+ const onInitSwiper = React.useCallback((swiper) => {
40
39
  // swiper.touchEventsData.formElements = 'undefined'
41
40
  // Set "disabled" state to navigation buttons on init
42
41
  if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
@@ -44,13 +43,13 @@ function Swiper(props) {
44
43
  setNextBtnDisabled(swiper.isEnd);
45
44
  }
46
45
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
47
- var onSlideChange = React.useCallback(function (swiper) {
46
+ const onSlideChange = React.useCallback((swiper) => {
48
47
  // Some things with clickedIndex
49
48
  if (isChangeOnClickSlide) {
50
49
  swiper.activeIndex = activeSlideIndex || swiper.clickedIndex;
51
50
  }
52
51
  }, [isChangeOnClickSlide, activeSlideIndex]);
53
- var onTransitionStart = React.useCallback(function (swiper) {
52
+ const onTransitionStart = React.useCallback((swiper) => {
54
53
  // Set "disabled" state to navigation buttons, when slider move
55
54
  if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
56
55
  setPrevBtnDisabled(swiper.isBeginning);
@@ -58,31 +57,30 @@ function Swiper(props) {
58
57
  }
59
58
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
60
59
  // @ts-expect-error
61
- React.useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
62
- React.useEffect(function () {
63
- var _a;
60
+ React.useImperativeHandle(forwardedRef, () => swiperRef.current, []);
61
+ React.useEffect(() => {
64
62
  if (isMountedRef.current) {
65
- var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
63
+ const swiperInstance = swiperRef.current?.swiper;
66
64
  // @ts-expect-error
67
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
68
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
65
+ swiperInstance?.updateActiveIndex(activeSlideIndex);
66
+ swiperInstance?.updateSlidesClasses();
69
67
  }
70
68
  else {
71
69
  isMountedRef.current = true;
72
70
  }
73
71
  }, [activeSlideIndex]);
74
- var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
75
- var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass;
72
+ const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
73
+ const { alignClass, alignDirectionClass, fillClass, shapeClass } = propsGenerator;
76
74
  // @ts-expect-error
77
- var style = useStyles.useStyles(props).styles;
78
- return (jsxRuntime.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)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { 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 ||
79
- (items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
75
+ const { styles: style } = useStyles.useStyles(props);
76
+ return (jsxRuntime.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)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { 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 ||
77
+ items?.map((item, i) => (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: item }, `swiper-slide_${i}`))) })] }));
80
78
  }
81
79
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
82
- var useSwiperRef = function () {
83
- var _a = React.useState(null), wrapper = _a[0], setWrapper = _a[1];
84
- var ref = React.useRef(null);
85
- React.useEffect(function () {
80
+ const useSwiperRef = () => {
81
+ const [wrapper, setWrapper] = React.useState(null);
82
+ const ref = React.useRef(null);
83
+ React.useEffect(() => {
86
84
  if (ref.current) {
87
85
  setWrapper(ref.current);
88
86
  }