@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
@@ -3,9 +3,8 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { b as Title, B as Badge, I as Icon } from '../Icon_es_BrwLifge.js';
7
- import { T as Text } from '../Text_es_CwV9rjFD.js';
8
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
6
+ import { b as Title, B as Badge, I as Icon } from '../Icon_es_D5eiycFI.js';
7
+ import { T as Text } from '../Text_es_CnymlElo.js';
9
8
  import 'react';
10
9
  import 'lodash/camelCase';
11
10
  import 'lodash/castArray';
@@ -23,9 +22,9 @@ import 'lodash/maxBy';
23
22
  import 'react-inlinesvg';
24
23
  import '../hoc/urlWithAssetPrefix.js';
25
24
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_XiqbdwLp.js';
25
+ import '../Link_es_P2b6ya7P.js';
27
26
 
28
- var tileAppearanceShape = {
27
+ const tileAppearanceShape = {
29
28
  circular: {
30
29
  shape: 'circular',
31
30
  },
@@ -50,7 +49,7 @@ var tileAppearanceShape = {
50
49
  },
51
50
  };
52
51
 
53
- var tileAppearanceSize = {
52
+ const tileAppearanceSize = {
54
53
  sizeXL: {
55
54
  size: 'xl',
56
55
  titleTextSize: 'h4',
@@ -101,7 +100,7 @@ var tileAppearanceSize = {
101
100
  },
102
101
  };
103
102
 
104
- var tileAppearanceStyle = {
103
+ const tileAppearanceStyle = {
105
104
  solid: {
106
105
  borderColor: 'none',
107
106
  },
@@ -115,7 +114,7 @@ var tileAppearanceStyle = {
115
114
  },
116
115
  };
117
116
 
118
- var tileAppearanceSurface = {
117
+ const tileAppearanceSurface = {
119
118
  surfacePrimary: {
120
119
  fill: 'surfacePrimary',
121
120
  titleTextColor: 'surfaceTextPrimary',
@@ -150,22 +149,27 @@ var tileAppearanceSurface = {
150
149
  },
151
150
  };
152
151
 
153
- var tileAppearance = __assign(__assign(__assign(__assign({}, tileAppearanceShape), tileAppearanceSize), tileAppearanceStyle), tileAppearanceSurface);
152
+ const tileAppearance = {
153
+ ...tileAppearanceShape,
154
+ ...tileAppearanceSize,
155
+ ...tileAppearanceStyle,
156
+ ...tileAppearanceSurface,
157
+ };
154
158
 
155
- var tileConfig = {
159
+ const tileConfig = {
156
160
  appearance: tileAppearance,
157
- setAppearance: function (appearanceConfig) {
161
+ setAppearance: (appearanceConfig) => {
158
162
  tileConfig.appearance = appearanceConfig;
159
163
  },
160
164
  };
161
165
  function Tile(props) {
162
- var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, badgeValue = props.badgeValue, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
163
- var appearanceConfig = useAppearanceConfig(appearance, tileConfig);
164
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
165
- var dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWrap = propsGenerator.descTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
166
+ const { className, type, appearance, title, desc, badgeValue, before, after, isSkeleton, onClick, children, } = props;
167
+ const appearanceConfig = useAppearanceConfig(appearance, tileConfig);
168
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
169
+ const { dataTestId, dataTour, directionClass, alignClass, alignDirectionClass, fillClass, titleTextAlign, titleTextColor, titleTextSize, titleTextWeight, titleTextWrap, descTextColor, descTextSize, descTextWrap, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, icon, iconAppearance, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
166
170
  // @ts-expect-error
167
- var tileStyles = useStyles(props).styles;
168
- return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignClass && "align_".concat(alignClass), directionClass && "direction_".concat(directionClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badgeValue && "tile_state_badge", widthClass && "width_".concat(widthClass), isSkeleton && "tile_skeleton"), "data-test-id": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, jsxs("div", { className: "tile__header", children: [jsxs("div", { className: "tile__header-inner", children: [title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (jsx(Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), jsxs("div", { className: "tile__header-actions", children: [badgeValue && (jsx(Badge, { className: "tile__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: "tile__icon", appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] })] }), children, after] }) }));
171
+ const { styles: tileStyles } = useStyles(props);
172
+ return (jsx("div", { className: clsx('tile', className, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, alignClass && `align_${alignClass}`, directionClass && `direction_${directionClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `tile_size_${sizeClass}`, type && `tile_type_${type}`, badgeValue && `tile_state_badge`, widthClass && `width_${widthClass}`, isSkeleton && `tile_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, jsxs("div", { className: "tile__header", children: [jsxs("div", { className: "tile__header-inner", children: [title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (jsx(Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), jsxs("div", { className: "tile__header-actions", children: [badgeValue && (jsx(Badge, { className: "tile__badge", appearance: `${badgeAppearance} ${badgeAppearanceSize}`, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: "tile__icon", appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] })] }), children, after] }) }));
169
173
  }
170
174
 
171
175
  export { Tile, tileAppearance, tileConfig };
@@ -1,5 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_BrwLifge.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_D5eiycFI.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
@@ -22,5 +21,5 @@ import '../hooks.js';
22
21
  import '../hooks/useStyles/styleAttributes.js';
23
22
  import '../hooks/useStyles/useStyles.js';
24
23
  import 'lodash/maxBy';
25
- import '../Link_es_XiqbdwLp.js';
26
- import '../Text_es_CwV9rjFD.js';
24
+ import '../Link_es_P2b6ya7P.js';
25
+ import '../Text_es_CnymlElo.js';
@@ -1,5 +1,4 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_BrwLifge.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_D5eiycFI.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
@@ -22,5 +21,5 @@ import '../hooks.js';
22
21
  import '../hooks/useStyles/styleAttributes.js';
23
22
  import '../hooks/useStyles/useStyles.js';
24
23
  import 'lodash/maxBy';
25
- import '../Link_es_XiqbdwLp.js';
26
- import '../Text_es_CwV9rjFD.js';
24
+ import '../Link_es_P2b6ya7P.js';
25
+ import '../Text_es_CnymlElo.js';
@@ -1,4 +1,4 @@
1
- var videoMock = {
1
+ const videoMock = {
2
2
  mp4: 'https://www.w3schools.com/html/mov_bbb.mp4',
3
3
  ogv: 'https://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv',
4
4
  poster: '../avatar/Man.png',
@@ -6,7 +6,6 @@ import 'lodash/camelCase';
6
6
  import 'lodash/maxBy';
7
7
  import 'lodash/upperFirst';
8
8
  import '../context/Notifications.js';
9
- import '../tslib.es6_es_Bwu1Cn-t.js';
10
9
  import 'uuid';
11
10
  import '@itcase/common';
12
11
  import '../context/UIContext.js';
@@ -17,9 +16,9 @@ import '../hooks.js';
17
16
  import '../hooks/useStyles/styleAttributes.js';
18
17
 
19
18
  function Video(props) {
20
- var id = props.id, className = props.className, position = props.position, mp4 = props.mp4, ogv = props.ogv, poster = props.poster, webm = props.webm, children = props.children;
21
- var videoStyles = useStyles(props).styles;
22
- return (jsxs("div", { id: id, className: clsx('video', className, poster && "video_poster", position && "video_position_".concat(position)), style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && jsx("source", { type: "video/webm", src: webm, codecs: "vp8, vorbis" }), ogv && jsx("source", { type: "video/ogg", src: ogv, codecs: "theora, vorbis" }), mp4 && (jsx("source", { type: "video/mp4", src: mp4, codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
19
+ const { id, className, position, mp4, ogv, poster, webm, children } = props;
20
+ const { styles: videoStyles } = useStyles(props);
21
+ return (jsxs("div", { id: id, className: clsx('video', className, poster && `video_poster`, position && `video_position_${position}`), style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && jsx("source", { type: "video/webm", src: webm, codecs: "vp8, vorbis" }), ogv && jsx("source", { type: "video/ogg", src: ogv, codecs: "theora, vorbis" }), mp4 && (jsx("source", { type: "video/mp4", src: mp4, codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
23
22
  }
24
23
 
25
24
  export { Video };
@@ -1,18 +1,17 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, Fragment } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_BrwLifge.js';
5
- import { T as Text } from '../Text_es_CwV9rjFD.js';
4
+ import { I as Icon } from '../Icon_es_D5eiycFI.js';
5
+ import { T as Text } from '../Text_es_CnymlElo.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
9
  import { icons16 } from '@itcase/icons/default';
11
10
  import 'react-inlinesvg';
12
11
  import '../hoc/urlWithAssetPrefix.js';
13
12
  import '@itcase/common';
14
13
  import '../context/UrlAssetPrefix.js';
15
- import '../Link_es_XiqbdwLp.js';
14
+ import '../Link_es_P2b6ya7P.js';
16
15
  import 'lodash/camelCase';
17
16
  import 'lodash/castArray';
18
17
  import 'lodash/upperFirst';
@@ -26,7 +25,7 @@ import '../hooks.js';
26
25
  import '../hooks/useStyles/styleAttributes.js';
27
26
  import 'lodash/maxBy';
28
27
 
29
- var warningAppearanceAccent = {
28
+ const warningAppearanceAccent = {
30
29
  accentMutedPrimary: {
31
30
  fill: 'accentTertiary',
32
31
  labelTextColor: 'accentTextQuaternary',
@@ -49,7 +48,7 @@ var warningAppearanceAccent = {
49
48
  },
50
49
  };
51
50
 
52
- var warningAppearanceError = {
51
+ const warningAppearanceError = {
53
52
  errorMutedPrimary: {
54
53
  fill: 'errorTertiary',
55
54
  labelTextColor: 'errorTextQuaternary',
@@ -72,7 +71,7 @@ var warningAppearanceError = {
72
71
  },
73
72
  };
74
73
 
75
- var warningAppearanceInfo = {
74
+ const warningAppearanceInfo = {
76
75
  infoMutedPrimary: {
77
76
  fill: 'infoTertiary',
78
77
  labelTextColor: 'infoTextSecondary',
@@ -95,7 +94,7 @@ var warningAppearanceInfo = {
95
94
  },
96
95
  };
97
96
 
98
- var warningAppearanceSize = {
97
+ const warningAppearanceSize = {
99
98
  sizeL: {
100
99
  size: 'l',
101
100
  labelTextSize: 's',
@@ -106,7 +105,7 @@ var warningAppearanceSize = {
106
105
  },
107
106
  };
108
107
 
109
- var warningAppearanceStyle = {
108
+ const warningAppearanceStyle = {
110
109
  solid: {
111
110
  borderColor: 'none',
112
111
  },
@@ -120,7 +119,7 @@ var warningAppearanceStyle = {
120
119
  },
121
120
  };
122
121
 
123
- var warningAppearanceWarning = {
122
+ const warningAppearanceWarning = {
124
123
  warningMutedPrimary: {
125
124
  fill: 'warningTertiary',
126
125
  labelTextColor: 'warningTextSecondary',
@@ -143,23 +142,30 @@ var warningAppearanceWarning = {
143
142
  },
144
143
  };
145
144
 
146
- var warningAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, warningAppearanceAccent), warningAppearanceWarning), warningAppearanceError), warningAppearanceInfo), warningAppearanceStyle), warningAppearanceSize);
145
+ const warningAppearance = {
146
+ ...warningAppearanceAccent,
147
+ ...warningAppearanceWarning,
148
+ ...warningAppearanceError,
149
+ ...warningAppearanceInfo,
150
+ ...warningAppearanceStyle,
151
+ ...warningAppearanceSize,
152
+ };
147
153
 
148
- var warningConfig = {
154
+ const warningConfig = {
149
155
  appearance: warningAppearance,
150
- setAppearance: function (appearanceConfig) {
156
+ setAppearance: (appearanceConfig) => {
151
157
  warningConfig.appearance = appearanceConfig;
152
158
  },
153
159
  };
154
160
  function Warning(props) {
155
- var className = props.className, appearance = props.appearance, label = props.label, description = props.description, shape = props.shape, isSkeleton = props.isSkeleton;
156
- var appearanceConfig = useAppearanceConfig(appearance, warningConfig);
157
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
158
- var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descriptionTextColor = propsGenerator.descriptionTextColor, descriptionTextSize = propsGenerator.descriptionTextSize, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, sizeClass = propsGenerator.sizeClass;
161
+ const { className, appearance, label, description, shape, isSkeleton } = props;
162
+ const appearanceConfig = useAppearanceConfig(appearance, warningConfig);
163
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
164
+ const { fillClass, labelTextColor, labelTextSize, labelTextWeight, descriptionTextColor, descriptionTextSize, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeSize, iconBeforeSrc, sizeClass, } = propsGenerator;
159
165
  // @ts-ignore
160
- var warningStyles = useStyles(props).styles;
161
- var _a = useState(true), isVisible = _a[0], setIsVisible = _a[1];
162
- return (jsx(Fragment, { children: isVisible && (jsxs("div", { className: clsx(className, 'warning', fillClass && "fill_".concat(fillClass), sizeClass && "warning_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), shape && "warning_shape_".concat(shape), isSkeleton && "warning_skeleton"), style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: 'warning__content', children: [label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: function () { return setIsVisible(false); } }))] })) }));
166
+ const { styles: warningStyles } = useStyles(props);
167
+ const [isVisible, setIsVisible] = useState(true);
168
+ return (jsx(Fragment, { children: isVisible && (jsxs("div", { className: clsx(className, 'warning', fillClass && `fill_${fillClass}`, sizeClass && `warning_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, shape && `warning_shape_${shape}`, isSkeleton && `warning_skeleton`), style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: 'warning__content', children: [label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: () => setIsVisible(false) }))] })) }));
163
169
  }
164
170
 
165
171
  export { Warning, warningAppearance, warningConfig };
@@ -1,41 +1,40 @@
1
1
  'use client';
2
- import { a as __spreadArray } from '../tslib.es6_es_Bwu1Cn-t.js';
3
2
  import { jsx } from 'react/jsx-runtime';
4
3
  import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
5
4
  import { v4 } from 'uuid';
6
5
  import { axiosInstanceITCase } from '@itcase/common';
7
6
 
8
- var STATUSES = {
7
+ const STATUSES = {
9
8
  error: 'error',
10
9
  warning: 'warning',
11
10
  info: 'info',
12
11
  success: 'success',
13
12
  };
14
- var NotificationsContext = createContext([]);
13
+ const NotificationsContext = createContext([]);
15
14
  /* eslint-disable @typescript-eslint/no-unused-vars */
16
- var NotificationsAPIContext = createContext({
17
- hideNotifications: function (targetId) { },
18
- showNotification: function (notification, onClose) { },
15
+ const NotificationsAPIContext = createContext({
16
+ hideNotifications: (targetId) => { },
17
+ showNotification: (notification, onClose) => { },
19
18
  notificationStatuses: STATUSES,
20
19
  });
21
20
  /* eslint-enable @typescript-eslint/no-unused-vars */
22
21
  function NotificationsProvider(props) {
23
- var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
24
- var _b = useState(function () {
22
+ const { initialNotificationsList = [], isLogRequestsErrors, children } = props;
23
+ const [notificationsList, setNotificationsList] = useState(() => {
25
24
  // We need to set id to every notification item and original list also be have new id's
26
- return (initialNotificationsList || []).map(function (notificationItem) {
25
+ return (initialNotificationsList || []).map((notificationItem) => {
27
26
  return createNotification(notificationItem, notificationItem.onClose);
28
27
  });
29
- }), notificationsList = _b[0], setNotificationsList = _b[1];
30
- var hideNotifications = useCallback(function (targetId) {
28
+ });
29
+ const hideNotifications = useCallback((targetId) => {
31
30
  // If not target, then nothing to hide
32
31
  if (!targetId) {
33
32
  return;
34
33
  }
35
- setNotificationsList(function (prevNotificationsList) {
36
- var newState = prevNotificationsList.filter(function (notificationItem) {
34
+ setNotificationsList((prevNotificationsList) => {
35
+ const newState = prevNotificationsList.filter((notificationItem) => {
37
36
  // Check on need to hide, if current notification is target for hide
38
- var isNeedToHide = String(notificationItem.id) === String(targetId);
37
+ const isNeedToHide = String(notificationItem.id) === String(targetId);
39
38
  // Callback for close if exists
40
39
  if (isNeedToHide) {
41
40
  clearTimeout(notificationItem._closeTimeout);
@@ -49,19 +48,17 @@ function NotificationsProvider(props) {
49
48
  return newState;
50
49
  });
51
50
  }, []);
52
- var showNotification = useCallback(function (notification, onClose) {
53
- var newNotificationItem = createNotification(notification, onClose);
54
- setNotificationsList(function (prevNotificationsList) {
55
- var newState = prevNotificationsList.slice();
56
- var existsNotificationIndex = newState.findIndex(function (notificationItem) {
57
- return String(notificationItem.id) === String(newNotificationItem.id);
58
- });
51
+ const showNotification = useCallback((notification, onClose) => {
52
+ const newNotificationItem = createNotification(notification, onClose);
53
+ setNotificationsList((prevNotificationsList) => {
54
+ const newState = prevNotificationsList.slice();
55
+ const existsNotificationIndex = newState.findIndex((notificationItem) => String(notificationItem.id) === String(newNotificationItem.id));
59
56
  // Add new notification
60
57
  if (existsNotificationIndex === -1) {
61
- return __spreadArray(__spreadArray([], newState, true), [newNotificationItem], false);
58
+ return [...newState, newNotificationItem];
62
59
  }
63
60
  // Or update exists notification
64
- var updatedNotificationItem = newState[existsNotificationIndex];
61
+ const updatedNotificationItem = newState[existsNotificationIndex];
65
62
  // Clear timeout to avoid close event for updated notification
66
63
  clearTimeout(updatedNotificationItem._closeTimeout);
67
64
  updatedNotificationItem._closeTimeout = undefined;
@@ -70,26 +67,26 @@ function NotificationsProvider(props) {
70
67
  return newState;
71
68
  });
72
69
  if (newNotificationItem.closeByTime) {
73
- newNotificationItem._closeTimeout = setTimeout(function () { return hideNotifications(newNotificationItem.id); }, newNotificationItem.closeByTime);
70
+ newNotificationItem._closeTimeout = setTimeout(() => hideNotifications(newNotificationItem.id), newNotificationItem.closeByTime);
74
71
  }
75
72
  return newNotificationItem;
76
73
  },
77
74
  // "hideNotifications" is never changed
78
75
  // eslint-disable-next-line react-hooks/exhaustive-deps
79
76
  []);
80
- var notificationsAPI = useMemo(function () { return ({
77
+ const notificationsAPI = useMemo(() => ({
81
78
  hideNotifications: hideNotifications,
82
79
  notificationStatuses: STATUSES,
83
80
  showNotification: showNotification,
84
- }); },
81
+ }),
85
82
  // Functions is never changes, no sense to set as dependencies
86
83
  // eslint-disable-next-line
87
84
  []);
88
- useEffect(function () {
85
+ useEffect(() => {
89
86
  // Set timeout for initial notifications list one time on first render
90
- notificationsList.forEach(function (notificationItem) {
87
+ notificationsList.forEach((notificationItem) => {
91
88
  if (notificationItem.closeByTime) {
92
- setTimeout(function () { return hideNotifications(notificationItem.id); }, notificationItem.closeByTime);
89
+ setTimeout(() => hideNotifications(notificationItem.id), notificationItem.closeByTime);
93
90
  }
94
91
  });
95
92
  // Show notifications on all requests errors.
@@ -97,7 +94,7 @@ function NotificationsProvider(props) {
97
94
  // to disable notifications logger.
98
95
  if (isLogRequestsErrors) {
99
96
  axiosInstanceITCase.responseErrorHandler.loggerManager = {
100
- log: function (responseError) {
97
+ log: (responseError) => {
101
98
  if (responseError.message) {
102
99
  showNotification({
103
100
  title: responseError.message,
@@ -119,24 +116,23 @@ function useNotificationsAPI() {
119
116
  return useContext(NotificationsAPIContext);
120
117
  }
121
118
  function createNotification(notification, onClose) {
122
- var _a, _b, _c, _d, _e;
123
119
  // Default notification item properties
124
- var id = v4().split('-')[0];
125
- var title = '';
126
- var text = '';
127
- var status = STATUSES.warning;
120
+ let id = v4().split('-')[0];
121
+ let title = '';
122
+ let text = '';
123
+ let status = STATUSES.warning;
128
124
  // let appearance = STATUSES.appearance
129
- var closeByTime = 4500;
130
- var appearance = '';
125
+ let closeByTime = 4500;
126
+ let appearance = '';
131
127
  if (typeof notification === 'string') {
132
128
  text = notification;
133
129
  }
134
130
  else if (typeof notification === 'object') {
135
- id = (_a = notification.id) !== null && _a !== void 0 ? _a : id;
136
- title = (_b = notification.title) !== null && _b !== void 0 ? _b : title;
137
- text = (_c = notification.text) !== null && _c !== void 0 ? _c : text;
138
- status = (_d = notification.status) !== null && _d !== void 0 ? _d : status;
139
- closeByTime = (_e = notification.closeByTime) !== null && _e !== void 0 ? _e : closeByTime;
131
+ id = notification.id ?? id;
132
+ title = notification.title ?? title;
133
+ text = notification.text ?? text;
134
+ status = notification.status ?? status;
135
+ closeByTime = notification.closeByTime ?? closeByTime;
140
136
  }
141
137
  switch (status) {
142
138
  case 'success':
@@ -1,5 +1,4 @@
1
1
  'use client';
2
- import { b as __rest, _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
3
2
  import { jsx } from 'react/jsx-runtime';
4
3
  import { createContext, memo, useMemo, useEffect, useContext } from 'react';
5
4
  import camelCase from 'lodash/camelCase';
@@ -7,14 +6,14 @@ import { useMediaQueries } from '../hooks/useMediaQueries/useMediaQueries.js';
7
6
  import { setViewportProperty } from '../utils/setViewportProperty.js';
8
7
  import 'react-responsive';
9
8
 
10
- var UserDeviceContext = createContext({
9
+ const UserDeviceContext = createContext({
11
10
  isMobile: false,
12
11
  isTablet: false,
13
12
  isDesktop: false,
14
13
  deviceCurrentMainType: '',
15
14
  });
16
- var UIProvider = memo(function UIProvider(props) {
17
- var _a = props.userDeviceState, userDeviceState = _a === void 0 ? {} : _a, children = props.children;
15
+ const UIProvider = memo(function UIProvider(props) {
16
+ const { userDeviceState = {}, children } = props;
18
17
  /** NOTE:
19
18
  * Remember that the "useMediaQueries" hook works by next scenario:
20
19
  * when changing the device type(browser width), the hook will first "enable"
@@ -22,20 +21,18 @@ var UIProvider = memo(function UIProvider(props) {
22
21
  * what provoke to double rendering, and in moment we have two different types as "true".
23
22
  * We will need to look at how to change this behavior.
24
23
  */
25
- var allDevicesTypes = useMediaQueries(userDeviceState);
26
- var isMobile = allDevicesTypes.isMobile, isTablet = allDevicesTypes.isTablet, isDesktop = allDevicesTypes.isDesktop, fullNamedDeviceTypes = __rest(allDevicesTypes, ["isMobile", "isTablet", "isDesktop"]);
27
- var deviceCurrentMainType = (isMobile && 'mobile') ||
24
+ const allDevicesTypes = useMediaQueries(userDeviceState);
25
+ const { isMobile, isTablet, isDesktop, ...fullNamedDeviceTypes } = allDevicesTypes;
26
+ const deviceCurrentMainType = (isMobile && 'mobile') ||
28
27
  (isTablet && 'tablet') ||
29
28
  (isDesktop && 'desktop') ||
30
29
  '';
31
- var _b = useMemo(function () {
32
- var deviceTypesList = Object.keys(allDevicesTypes).map(function (key) {
33
- return camelCase(key.replace('is', ''));
34
- });
30
+ const [deviceCurrentType, deviceTypesList] = useMemo(() => {
31
+ const deviceTypesList = Object.keys(allDevicesTypes).map((key) => camelCase(key.replace('is', '')));
35
32
  // In same time "allDevicesTypes" can contain "isMobile" and "isMobileLarge" as true
36
- var deviceCurrentType = Object.keys(fullNamedDeviceTypes).find(
33
+ let deviceCurrentType = Object.keys(fullNamedDeviceTypes).find(
37
34
  // If "fullNamedDeviceTypes.isMobileLarge: true" - that our device
38
- function (key) { return fullNamedDeviceTypes[key]; });
35
+ (key) => fullNamedDeviceTypes[key]);
39
36
  // Or set main type (e.g. "isMobile")
40
37
  if (!deviceCurrentType) {
41
38
  deviceCurrentType = deviceCurrentMainType;
@@ -43,16 +40,21 @@ var UIProvider = memo(function UIProvider(props) {
43
40
  deviceCurrentType = camelCase(deviceCurrentType.replace('is', ''));
44
41
  // On server side render we doesn't known user device and we need to set special word
45
42
  return [deviceCurrentType || '_none_', deviceTypesList];
46
- }, [allDevicesTypes, deviceCurrentMainType, fullNamedDeviceTypes]), deviceCurrentType = _b[0], deviceTypesList = _b[1];
47
- var deviceContextState = useMemo(function () {
48
- return __assign(__assign({}, allDevicesTypes), { deviceCurrentMainType: deviceCurrentMainType, deviceCurrentType: deviceCurrentType, deviceTypesList: deviceTypesList });
43
+ }, [allDevicesTypes, deviceCurrentMainType, fullNamedDeviceTypes]);
44
+ const deviceContextState = useMemo(() => {
45
+ return {
46
+ ...allDevicesTypes,
47
+ deviceCurrentMainType: deviceCurrentMainType,
48
+ deviceCurrentType: deviceCurrentType,
49
+ deviceTypesList: deviceTypesList,
50
+ };
49
51
  }, [
50
52
  allDevicesTypes,
51
53
  deviceCurrentMainType,
52
54
  deviceCurrentType,
53
55
  deviceTypesList,
54
56
  ]);
55
- useEffect(function () {
57
+ useEffect(() => {
56
58
  setViewportProperty();
57
59
  window.addEventListener('resize', setViewportProperty);
58
60
  }, []);
@@ -1,13 +1,13 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { createContext, useMemo } from 'react';
3
3
 
4
- var UrlAssetPrefixContext = createContext({
4
+ const UrlAssetPrefixContext = createContext({
5
5
  assetPrefix: undefined,
6
6
  ignorePathsList: undefined,
7
7
  });
8
8
  function UrlAssetPrefixProvider(props) {
9
- var assetPrefix = props.assetPrefix, ignorePathsList = props.ignorePathsList, children = props.children;
10
- var value = useMemo(function () { return ({ assetPrefix: assetPrefix, ignorePathsList: ignorePathsList }); }, [assetPrefix, ignorePathsList]);
9
+ const { assetPrefix, ignorePathsList, children } = props;
10
+ const value = useMemo(() => ({ assetPrefix, ignorePathsList }), [assetPrefix, ignorePathsList]);
11
11
  return (jsx(UrlAssetPrefixContext.Provider, { value: value, children: children }));
12
12
  }
13
13
 
@@ -19,6 +19,8 @@
19
19
  &_$(size) {
20
20
  width: var(--checkmark-$(size)-width);
21
21
  height: var(--checkmark-$(size)-height);
22
+ min-width: var(--checkmark-$(size)-width);
23
+ min-height: var(--checkmark-$(size)-height);
22
24
  & svg {
23
25
  transform: scale($(scale));
24
26
  }
@@ -1,5 +1,8 @@
1
1
  .date-period {
2
2
  display: flex;
3
+ &__datepicker {
4
+ min-width: 220px;
5
+ }
3
6
  }
4
7
  .date-period {
5
8
  &&_skeleton {
@@ -10,14 +10,6 @@
10
10
  outline: 0;
11
11
  caret-color: var(--input-caret-color);
12
12
  transition: var(--input-transition);
13
- /* &:disabled {
14
- background: none;
15
- border: solid 1px none;
16
- &:hover {
17
- background: none;
18
- border: solid 1px none;
19
- }
20
- } */
21
13
  &:focus {
22
14
  outline: none;
23
15
  }