@itcase/ui 1.3.25 → 1.3.27

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 (184) hide show
  1. package/dist/{Badge-Bcj5H3vs.js → Badge-CcaG-4ly.js} +49 -8
  2. package/dist/{Badge-DxHwStfq.js → Badge-CoHPvO35.js} +49 -8
  3. package/dist/{Button-BSygAkO5.js → Button-BFX_EEum.js} +6 -6
  4. package/dist/{Button-Bn8Mjoeh.js → Button-BSzqA8CB.js} +6 -6
  5. package/dist/{DropdownItem-CExjlJjQ.js → DropdownItem-Bq-oPnWX.js} +4 -4
  6. package/dist/{DropdownItem-DFE1HsyX.js → DropdownItem-FNOztnTT.js} +4 -4
  7. package/dist/{Group-pMTTxQH4.js → Group-BQ4Ic0jX.js} +2 -2
  8. package/dist/{Group-CIIZoSm5.js → Group-DT1ukQCn.js} +2 -2
  9. package/dist/{Icon-DotE-03d.js → Icon-BZa8B7te.js} +3 -3
  10. package/dist/{Icon-ByLHEhHL.js → Icon-B_bS-o4g.js} +2 -2
  11. package/dist/{Input-Ck5IbuH6.js → Input-BrV5_NoV.js} +1 -1
  12. package/dist/{Input-zkYoZhQk.js → Input-ffioh1sj.js} +1 -1
  13. package/dist/{Label-9O3dQlUa.js → Label-DQyB2ThM.js} +6 -6
  14. package/dist/{Label-GEBQXoVJ.js → Label-HKRKV3mn.js} +6 -6
  15. package/dist/{Link-CoAhRbFg.js → Link-CxWmYMyL.js} +1 -1
  16. package/dist/{Link-C53o3P6_.js → Link-DN2LhPjD.js} +4 -4
  17. package/dist/{Loader-D_53c71f.js → Loader-Dn036JwE.js} +2 -2
  18. package/dist/{Loader-Cm98w6lJ.js → Loader-K_DJmah6.js} +2 -2
  19. package/dist/{MenuItem-Cu6wlj-X.js → MenuItem-CLDNk2l8.js} +3 -3
  20. package/dist/{MenuItem-Ybh5Mpoi.js → MenuItem-amqx61Y0.js} +3 -3
  21. package/dist/{Scrollbar-DkJr3S-w.js → Scrollbar-Bo7z7ELm.js} +1 -1
  22. package/dist/{Scrollbar-CL9V8d1X.js → Scrollbar-CKbA0jQU.js} +1 -1
  23. package/dist/{Text-COHpLTYr.js → Text-Beslj4Ns.js} +1 -1
  24. package/dist/{Text-D9sEeRE4.js → Text-JayJa3hj.js} +1 -1
  25. package/dist/{Title-Cl95USIn.js → Title-CHgrIarR.js} +1 -1
  26. package/dist/{Title-BduD-TXE.js → Title-DBaHcpvB.js} +1 -1
  27. package/dist/{Tooltip-BsbXMzGd.js → Tooltip-1Jbub0K6.js} +4 -4
  28. package/dist/{Tooltip-CyZCVyba.js → Tooltip-CNua1g76.js} +4 -4
  29. package/dist/cjs/components/Accordion.js +8 -7
  30. package/dist/cjs/components/Avatar.js +10 -9
  31. package/dist/cjs/components/Badge.js +4 -3
  32. package/dist/cjs/components/Breadcrumbs.js +7 -6
  33. package/dist/cjs/components/Button.js +8 -7
  34. package/dist/cjs/components/Caption.js +1 -0
  35. package/dist/cjs/components/Card.js +3 -2
  36. package/dist/cjs/components/Cell.js +8 -7
  37. package/dist/cjs/components/Checkbox.js +4 -3
  38. package/dist/cjs/components/Checkmark.js +7 -12
  39. package/dist/cjs/components/Chips.js +5 -4
  40. package/dist/cjs/components/Choice.js +11 -10
  41. package/dist/cjs/components/Code.js +4 -3
  42. package/dist/cjs/components/CookiesWarning.js +11 -10
  43. package/dist/cjs/components/DadataHintField.js +2 -1
  44. package/dist/cjs/components/DatePicker.js +17 -16
  45. package/dist/cjs/components/Divider.js +1 -0
  46. package/dist/cjs/components/Dot.js +1 -0
  47. package/dist/cjs/components/Dropdown.js +4 -3
  48. package/dist/cjs/components/Flex.js +3 -2
  49. package/dist/cjs/components/Grid.js +3 -2
  50. package/dist/cjs/components/Group.js +2 -1
  51. package/dist/cjs/components/HTMLContent.js +1 -0
  52. package/dist/cjs/components/HeroTitle.js +2 -1
  53. package/dist/cjs/components/Icon.js +6 -5
  54. package/dist/cjs/components/Image.js +1 -0
  55. package/dist/cjs/components/Input.js +2 -1
  56. package/dist/cjs/components/InputMask.js +2 -1
  57. package/dist/cjs/components/InputPassword.js +6 -5
  58. package/dist/cjs/components/Label.js +5 -4
  59. package/dist/cjs/components/Link.js +2 -1
  60. package/dist/cjs/components/List.js +2 -1
  61. package/dist/cjs/components/Loader.js +3 -2
  62. package/dist/cjs/components/Logo.js +3 -2
  63. package/dist/cjs/components/Menu.js +5 -4
  64. package/dist/cjs/components/MenuItem.js +4 -3
  65. package/dist/cjs/components/Modal.js +6 -5
  66. package/dist/cjs/components/ModalSheetBottom.js +1 -0
  67. package/dist/cjs/components/Notification.js +4 -3
  68. package/dist/cjs/components/Overlay.js +1 -0
  69. package/dist/cjs/components/Pagination.js +29 -28
  70. package/dist/cjs/components/Panel.js +3 -2
  71. package/dist/cjs/components/Radio.js +4 -3
  72. package/dist/cjs/components/RangeSlider.js +1 -0
  73. package/dist/cjs/components/Response.js +14 -13
  74. package/dist/cjs/components/SVGContent.js +1 -1
  75. package/dist/cjs/components/ScrollOnDrag.js +1 -0
  76. package/dist/cjs/components/ScrollToView.js +2 -1
  77. package/dist/cjs/components/Scrollbar.js +1 -1
  78. package/dist/cjs/components/Search.js +10 -9
  79. package/dist/cjs/components/Segmented.js +14 -13
  80. package/dist/cjs/components/Select.js +11 -10
  81. package/dist/cjs/components/SiteMenu.js +7 -6
  82. package/dist/cjs/components/Swiper.js +9 -8
  83. package/dist/cjs/components/Tab.js +10 -9
  84. package/dist/cjs/components/Text.js +2 -1
  85. package/dist/cjs/components/Textarea.js +1 -0
  86. package/dist/cjs/components/Tile.js +5 -4
  87. package/dist/cjs/components/Title.js +2 -1
  88. package/dist/cjs/components/Tooltip.js +4 -3
  89. package/dist/cjs/components/Video.js +1 -0
  90. package/dist/cjs/components/Wrapper.js +2 -1
  91. package/dist/cjs/context/Notifications.js +6 -6
  92. package/dist/cjs/context/UIContext.js +6 -1
  93. package/dist/cjs/hooks/useDeviceTargetClass.js +1 -0
  94. package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +1 -0
  95. package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +5 -4
  96. package/dist/cjs/hooks/useMediaQueries.js +0 -12
  97. package/dist/cjs/hooks/useStyles.js +1 -0
  98. package/dist/cjs/hooks.js +0 -1
  99. package/dist/cjs/utils/setViewportProperty.js +8 -0
  100. package/dist/cjs/utils.js +7 -0
  101. package/dist/components/Accordion.js +9 -8
  102. package/dist/components/Avatar.js +11 -10
  103. package/dist/components/Badge.js +4 -3
  104. package/dist/components/Breadcrumbs.js +8 -7
  105. package/dist/components/Button.js +9 -8
  106. package/dist/components/Caption.js +2 -1
  107. package/dist/components/Card.js +4 -3
  108. package/dist/components/Cell.js +9 -8
  109. package/dist/components/Checkbox.js +5 -4
  110. package/dist/components/Checkmark.js +8 -13
  111. package/dist/components/Chips.js +6 -5
  112. package/dist/components/Choice.js +12 -11
  113. package/dist/components/Code.js +5 -4
  114. package/dist/components/CookiesWarning.js +12 -11
  115. package/dist/components/DadataHintField.js +3 -2
  116. package/dist/components/DatePicker.js +18 -17
  117. package/dist/components/Divider.js +2 -1
  118. package/dist/components/Dot.js +2 -1
  119. package/dist/components/Dropdown.js +5 -4
  120. package/dist/components/Flex.js +4 -3
  121. package/dist/components/Grid.js +4 -3
  122. package/dist/components/Group.js +3 -2
  123. package/dist/components/HTMLContent.js +2 -1
  124. package/dist/components/HeroTitle.js +3 -2
  125. package/dist/components/Icon.js +7 -6
  126. package/dist/components/Image.js +2 -1
  127. package/dist/components/Input.js +3 -2
  128. package/dist/components/InputMask.js +3 -2
  129. package/dist/components/InputPassword.js +7 -6
  130. package/dist/components/Label.js +6 -5
  131. package/dist/components/Link.js +3 -2
  132. package/dist/components/List.js +3 -2
  133. package/dist/components/Loader.js +4 -3
  134. package/dist/components/Logo.js +4 -3
  135. package/dist/components/Menu.js +6 -5
  136. package/dist/components/MenuItem.js +5 -4
  137. package/dist/components/Modal.js +7 -6
  138. package/dist/components/ModalSheetBottom.js +2 -1
  139. package/dist/components/Notification.js +5 -4
  140. package/dist/components/Overlay.js +2 -1
  141. package/dist/components/Pagination.js +30 -29
  142. package/dist/components/Panel.js +4 -3
  143. package/dist/components/Radio.js +5 -4
  144. package/dist/components/RangeSlider.js +2 -1
  145. package/dist/components/Response.js +15 -14
  146. package/dist/components/SVGContent.js +2 -2
  147. package/dist/components/ScrollOnDrag.js +2 -1
  148. package/dist/components/ScrollToView.js +3 -2
  149. package/dist/components/Scrollbar.js +1 -1
  150. package/dist/components/Search.js +11 -10
  151. package/dist/components/Segmented.js +15 -14
  152. package/dist/components/Select.js +12 -11
  153. package/dist/components/SiteMenu.js +8 -7
  154. package/dist/components/Swiper.js +10 -9
  155. package/dist/components/Tab.js +11 -10
  156. package/dist/components/Text.js +3 -2
  157. package/dist/components/Textarea.js +2 -1
  158. package/dist/components/Tile.js +6 -5
  159. package/dist/components/Title.js +3 -2
  160. package/dist/components/Tooltip.js +5 -4
  161. package/dist/components/Video.js +1 -0
  162. package/dist/components/Wrapper.js +3 -2
  163. package/dist/context/Notifications.js +7 -7
  164. package/dist/context/UIContext.js +7 -2
  165. package/dist/css/components/Checkmark/Checkmark.css +2 -4
  166. package/dist/css/components/Checkmark/Checkmark.tokens.css +16 -0
  167. package/dist/css/components/Swiper/Swiper.css +2 -2
  168. package/dist/css/tokens/colors.css +28 -7
  169. package/dist/hooks/useDeviceTargetClass.js +1 -0
  170. package/dist/hooks/useDeviceTargetClassGenerator.interface.js +1 -1
  171. package/dist/hooks/useDeviceTargetClassGenerator.js +6 -5
  172. package/dist/hooks/useMediaQueries.js +0 -12
  173. package/dist/hooks/useStyles.js +1 -0
  174. package/dist/hooks.js +1 -1
  175. package/dist/stories/Avatar.mdx +1 -1
  176. package/dist/stories/Checkmark.mdx +11 -0
  177. package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
  178. package/dist/types/components/Badge/stories/args.d.ts +69 -0
  179. package/dist/types/components/Select/index.d.ts +15 -15
  180. package/dist/types/utils/index.d.ts +2 -0
  181. package/dist/types/utils/setViewportProperty.d.ts +2 -0
  182. package/dist/utils/setViewportProperty.js +6 -0
  183. package/dist/utils.js +1 -0
  184. package/package.json +34 -53
@@ -2,41 +2,36 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import { I as Icon } from '../Icon-DotE-03d.js';
6
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
7
6
  import 'react';
8
7
  import 'lodash/camelCase';
9
8
  import 'lodash/castArray';
10
9
  import '../context/UIContext.js';
11
10
  import '../hooks/useMediaQueries.js';
12
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
13
13
  import 'lodash/maxBy';
14
14
  import 'lodash/upperFirst';
15
15
  import '../hooks/styleAttributes.js';
16
- import 'react-inlinesvg';
17
- import '../Link-C53o3P6_.js';
18
- import '../Tooltip-BsbXMzGd.js';
19
- import '../Text-D9sEeRE4.js';
20
- import '../Title-Cl95USIn.js';
21
16
 
22
17
  var checkmarkAppearance = {
23
18
  accent: {
24
19
  borderWidth: '4',
25
- borderColor: 'accentBorderQuaternary',
20
+ borderColor: 'accentBorderPrimary',
26
21
  fill: 'accentPrimary',
27
- iconFill: 'surfaceItemInverse',
22
+ iconFill: 'white',
28
23
  },
29
24
  disabled: {
30
25
  borderWidth: '4',
31
26
  borderColor: 'surfaceBorderTertiary',
32
27
  fill: 'surfaceItemSecondary',
33
- iconFill: 'surfaceItemQuaternary',
28
+ iconFill: '#787878',
34
29
  },
35
30
  surface: {
36
31
  borderWidth: '4',
37
32
  borderColor: 'surfaceBorderTertiary',
38
33
  fill: 'surfacePrimary',
39
- iconFill: 'surfaceItemPrimary',
34
+ iconFill: 'black',
40
35
  },
41
36
  };
42
37
 
@@ -47,14 +42,14 @@ var checkmarkConfig = {
47
42
  },
48
43
  };
49
44
  function Checkmark(props) {
50
- var isChecked = props.isChecked, _a = props.isDisabled, isDisabled = _a === undefined ? false : _a, appearance = props.appearance, className = props.className, iconChecked = props.iconChecked, iconFill = props.iconFill, onClick = props.onClick;
45
+ var isChecked = props.isChecked, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, appearance = props.appearance, className = props.className, iconFill = props.iconFill, onClick = props.onClick;
51
46
  // @ts-expect-error
52
47
  var appearanceConfig = checkmarkConfig.appearance && checkmarkConfig.appearance[appearance];
53
48
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
54
49
  var borderColorClass = classGenerator.borderColorClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, sizeClass = classGenerator.sizeClass;
55
50
  // @ts-expect-error
56
51
  var checkmarkStyles = useStyles(props).styles;
57
- return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsx(Icon, { className: "checkmark__svg", iconFill: iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFill), size: "24", SvgImage: isChecked ? iconChecked : null })) }));
52
+ return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsx("svg", { fill: "none", style: { width: '60%', height: '60%' }, viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { fill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), "clip-rule": "evenodd", d: "M11.5281 3.04275C11.8222 2.75109 11.8242 2.27622 11.5325 1.9821C11.2409 1.68799 10.766 1.686 10.4719 1.97766L3.94118 8.45396L1.52811 6.061C1.23399 5.76933 0.759121 5.77132 0.467456 6.06544C0.17579 6.35955 0.177777 6.83442 0.471894 7.12609L3.37786 10.0078C3.68973 10.3171 4.19262 10.3171 4.50449 10.0078L11.5281 3.04275Z", "fill-rule": "evenodd" }) })) }));
58
53
  }
59
54
 
60
55
  export { Checkmark, checkmarkAppearance, checkmarkConfig };
@@ -2,14 +2,15 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import { T as Text } from '../Text-D9sEeRE4.js';
6
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { T as Text } from '../Text-JayJa3hj.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'react';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import '../context/UIContext.js';
11
11
  import '../hooks/useMediaQueries.js';
12
12
  import 'react-responsive';
13
+ import '../utils/setViewportProperty.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
15
16
  import '../hooks/styleAttributes.js';
@@ -60,7 +61,7 @@ var chipsConfig = {
60
61
  },
61
62
  };
62
63
  function Chips(props) {
63
- var children = props.children, isActive = props.isActive, appearance = props.appearance, className = props.className, _a = props.label, label = _a === undefined ? '' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, type = props.type, onClick = props.onClick;
64
+ var children = props.children, isActive = props.isActive, appearance = props.appearance, className = props.className, _a = props.label, label = _a === void 0 ? '' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, type = props.type, onClick = props.onClick;
64
65
  // @ts-expect-error
65
66
  var appearanceConfig = chipsConfig.appearance && chipsConfig.appearance[appearance];
66
67
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
@@ -70,8 +71,8 @@ function Chips(props) {
70
71
  return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
71
72
  ? fillActiveClass && "fill_active_".concat(fillActiveClass)
72
73
  : fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "chips_type_".concat(type), cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), style: chipsStyles, onClick: onClick, children: jsxs("div", { className: "chips__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textWeight: labelTextWeight, textColor: isActive
73
- ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
74
- : labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor), children: label })) : (jsx("div", { className: "chips__label", children: label })), children] }) }));
74
+ ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
75
+ : labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), children: label })) : (jsx("div", { className: "chips__label", children: label })), children] }) }));
75
76
  }
76
77
 
77
78
  export { Chips, chipsAppearance, chipsConfig };
@@ -2,23 +2,24 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useRef, useMemo, createRef, useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
5
- import { I as Icon } from '../Icon-DotE-03d.js';
6
- import { L as Loader } from '../Loader-Cm98w6lJ.js';
7
- import { T as Text } from '../Text-D9sEeRE4.js';
8
- import '../tslib.es6-5FtW-kfi.js';
5
+ import { I as Icon } from '../Icon-BZa8B7te.js';
6
+ import { L as Loader } from '../Loader-K_DJmah6.js';
7
+ import { T as Text } from '../Text-JayJa3hj.js';
8
+ import '../tslib.es6-Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import '../context/UIContext.js';
12
12
  import '../hooks/useMediaQueries.js';
13
13
  import 'react-responsive';
14
+ import '../utils/setViewportProperty.js';
14
15
  import 'react-inlinesvg';
15
16
  import '../hooks/useStyles.js';
16
17
  import 'lodash/maxBy';
17
18
  import 'lodash/upperFirst';
18
19
  import '../hooks/styleAttributes.js';
19
- import '../Link-C53o3P6_.js';
20
- import '../Tooltip-BsbXMzGd.js';
21
- import '../Title-Cl95USIn.js';
20
+ import '../Link-DN2LhPjD.js';
21
+ import '../Tooltip-1Jbub0K6.js';
22
+ import '../Title-CHgrIarR.js';
22
23
 
23
24
  var choiceAppearance = {
24
25
  accent: {
@@ -51,7 +52,7 @@ var choiceConfig = {
51
52
  },
52
53
  };
53
54
  function Choice(props) {
54
- var _a = props.isCheckbox, isCheckbox = _a === undefined ? false : _a, _b = props.isDisabled, isDisabled = _b === undefined ? false : _b, _c = props.isLoading, isLoading = _c === undefined ? false : _c, _d = props.active, active = _d === undefined ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === undefined ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === undefined ? 'normal' : _f, type = props.type;
55
+ var _a = props.isCheckbox, isCheckbox = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _d = props.active, active = _d === void 0 ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === void 0 ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === void 0 ? 'normal' : _f, type = props.type;
55
56
  var controlRef = useRef(null);
56
57
  var optionsRefs = useMemo(function () { return new Map(options.map(function (item) { return [item.value, createRef()]; })); }, [options]);
57
58
  var onChange = useCallback(function (event, item) {
@@ -75,12 +76,12 @@ function Choice(props) {
75
76
  : fillActiveDisabledClass && "fill_active_disabled_".concat(fillActiveDisabledClass)
76
77
  : !isDisabled
77
78
  ? fillClass && "fill_".concat(fillClass)
78
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: isActive
79
+ : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: isActive
79
80
  ? !isDisabled
80
- ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
81
+ ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
81
82
  : labelTextActiveColorDisabled
82
83
  : !isDisabled
83
- ? labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor)
84
+ ? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
84
85
  : labelTextColorDisabled, children: item.label })), (icon || activeIcon) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon, iconFill: isActive
85
86
  ? activeIconItemFill || item.activeIconItemFill
86
87
  : iconItemFill || item.iconItemFill })), after] })] }, "".concat(name, "-").concat(item.value)));
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
+ import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
4
  import clsx from 'clsx';
@@ -9,6 +9,7 @@ import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
 
13
14
  var codeAppearance = {
14
15
  dev: {},
@@ -21,16 +22,16 @@ var codeConfig = {
21
22
  },
22
23
  };
23
24
  function Code(props) {
24
- var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === undefined ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === undefined ? 0 : _b, _c = props.inputType, inputType = _c === undefined ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
25
+ var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? 0 : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
25
26
  var _d = useState(''), otp = _d[0], setOtp = _d[1];
26
27
  // @ts-expect-error
27
28
  var appearanceConfig = codeConfig.appearance && codeConfig.appearance[appearance];
28
29
  var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
29
30
  var gapClass = classGenerator.gapClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputBorderFocusColorClass = classGenerator.inputBorderFocusColorClass, inputBorderWidthClass = classGenerator.inputBorderWidthClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputFillHoverClass = classGenerator.inputFillHoverClass, inputPlaceholderTextColorClass = classGenerator.inputPlaceholderTextColorClass, inputShapeClass = classGenerator.inputShapeClass, inputSizeClass = classGenerator.inputSizeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, inputTextWeightClass = classGenerator.inputTextWeightClass, widthClass = classGenerator.widthClass;
30
31
  // NOTE: too many dependencies for "useCallback" and possible too many checks
31
- var renderInput = function (otpInputProps) {
32
+ var renderInput = function (otpInputProps, index) {
32
33
  return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
33
- "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass && "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass && "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass)), autoComplete: "one-time-code", onBlur: function (event) {
34
+ "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass && "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass && "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass)), name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
34
35
  onBlur && onBlur(event);
35
36
  otpInputProps.onBlur(event);
36
37
  }, onFocus: function (event) {
@@ -3,33 +3,34 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
6
- import { B as Button } from '../Button-Bn8Mjoeh.js';
7
- import { G as Group } from '../Group-CIIZoSm5.js';
8
- import { T as Text } from '../Text-D9sEeRE4.js';
9
- import '../tslib.es6-5FtW-kfi.js';
6
+ import { B as Button } from '../Button-BSzqA8CB.js';
7
+ import { G as Group } from '../Group-DT1ukQCn.js';
8
+ import { T as Text } from '../Text-JayJa3hj.js';
9
+ import '../tslib.es6-Bwu1Cn-t.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
12
12
  import '../context/UIContext.js';
13
13
  import '../hooks/useMediaQueries.js';
14
14
  import 'react-responsive';
15
+ import '../utils/setViewportProperty.js';
15
16
  import '../hooks/useStyles.js';
16
17
  import 'lodash/maxBy';
17
18
  import 'lodash/upperFirst';
18
19
  import '../hooks/styleAttributes.js';
19
- import '../Icon-DotE-03d.js';
20
+ import '../Icon-BZa8B7te.js';
20
21
  import 'react-inlinesvg';
21
- import '../Link-C53o3P6_.js';
22
- import '../Tooltip-BsbXMzGd.js';
23
- import '../Title-Cl95USIn.js';
24
- import '../Loader-Cm98w6lJ.js';
22
+ import '../Link-DN2LhPjD.js';
23
+ import '../Tooltip-1Jbub0K6.js';
24
+ import '../Title-CHgrIarR.js';
25
+ import '../Loader-K_DJmah6.js';
25
26
 
26
27
  function CookiesWarning(props) {
27
- var _a = props.isHideOnScroll, isHideOnScroll = _a === undefined ? false : _a, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === undefined ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, className = props.className, _c = props.message, message = _c === undefined ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _c, textColor = props.textColor, textSize = props.textSize;
28
+ var _a = props.isHideOnScroll, isHideOnScroll = _a === void 0 ? false : _a, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, className = props.className, _c = props.message, message = _c === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _c, textColor = props.textColor, textSize = props.textSize;
28
29
  var cookiesWarningRef = useRef(null);
29
30
  var isOpen = useMemo(function () { return Cookies.get('cookies-warning') !== 'close'; }, []);
30
31
  var closeCookiesWarning = useCallback(function () {
31
32
  var _a;
32
- (_a = cookiesWarningRef.current) === null || _a === undefined ? undefined : _a.classList.add('cookies-warning_state_hidden');
33
+ (_a = cookiesWarningRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('cookies-warning_state_hidden');
33
34
  Cookies.set('cookies-warning', 'close');
34
35
  }, []);
35
36
  useEffect(function () {
@@ -1,15 +1,16 @@
1
- import { _ as __assign, a as __rest } from '../tslib.es6-5FtW-kfi.js';
1
+ import { _ as __assign, b as __rest } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { PartySuggestions } from 'react-dadata';
6
- import { I as Input } from '../Input-Ck5IbuH6.js';
6
+ import { I as Input } from '../Input-BrV5_NoV.js';
7
7
  import '../hooks/useDeviceTargetClassGenerator.js';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import '../context/UIContext.js';
11
11
  import '../hooks/useMediaQueries.js';
12
12
  import 'react-responsive';
13
+ import '../utils/setViewportProperty.js';
13
14
 
14
15
  function DadataHintField(props) {
15
16
  var delay = props.delay, input = props.input, inputProps = props.inputProps, meta = props.meta, setValue = props.setValue, token = props.token;
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
+ import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import React, { useMemo, useCallback, useRef, useState, useEffect } from 'react';
4
4
  import clsx from 'clsx';
@@ -6,24 +6,25 @@ import { ru } from 'date-fns/locale';
6
6
  import DatePicker from 'react-datepicker';
7
7
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles.js';
9
- import { B as Button } from '../Button-Bn8Mjoeh.js';
10
- import { I as Icon } from '../Icon-DotE-03d.js';
11
- import { I as Input } from '../Input-Ck5IbuH6.js';
12
- import { L as Label } from '../Label-9O3dQlUa.js';
13
- import { T as Text } from '../Text-D9sEeRE4.js';
9
+ import { B as Button } from '../Button-BSzqA8CB.js';
10
+ import { I as Icon } from '../Icon-BZa8B7te.js';
11
+ import { I as Input } from '../Input-BrV5_NoV.js';
12
+ import { L as Label } from '../Label-DQyB2ThM.js';
13
+ import { T as Text } from '../Text-JayJa3hj.js';
14
14
  import 'lodash/camelCase';
15
15
  import 'lodash/castArray';
16
16
  import '../context/UIContext.js';
17
17
  import '../hooks/useMediaQueries.js';
18
18
  import 'react-responsive';
19
+ import '../utils/setViewportProperty.js';
19
20
  import 'lodash/maxBy';
20
21
  import 'lodash/upperFirst';
21
22
  import '../hooks/styleAttributes.js';
22
- import '../Link-C53o3P6_.js';
23
- import '../Loader-Cm98w6lJ.js';
23
+ import '../Link-DN2LhPjD.js';
24
+ import '../Loader-K_DJmah6.js';
24
25
  import 'react-inlinesvg';
25
- import '../Tooltip-BsbXMzGd.js';
26
- import '../Title-Cl95USIn.js';
26
+ import '../Tooltip-1Jbub0K6.js';
27
+ import '../Title-CHgrIarR.js';
27
28
 
28
29
  var datePickerAppearance = {
29
30
  dev: {},
@@ -36,7 +37,7 @@ var datePickerConfig = {
36
37
  },
37
38
  };
38
39
  function DatePickerInput(props) {
39
- var appearance = props.appearance, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, _a = props.datePickerProps, datePickerProps = _a === undefined ? {} : _a, endValue = props.endValue, inputProps = props.inputProps, labelTextSize = props.labelTextSize, value = props.value, onChange = props.onChange;
40
+ var appearance = props.appearance, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, _a = props.datePickerProps, datePickerProps = _a === void 0 ? {} : _a, endValue = props.endValue, inputProps = props.inputProps, labelTextSize = props.labelTextSize, value = props.value, onChange = props.onChange;
40
41
  var datepickerRef = useRef(null);
41
42
  var start = useMemo(function () {
42
43
  if (value) {
@@ -68,7 +69,7 @@ function DatePickerInput(props) {
68
69
  setEndDate(newEndDate);
69
70
  }, [onChange]);
70
71
  var renderDayContents = useCallback(function (day, date) {
71
- return (jsx(Button, { className: "react-datepicker__day-button", labelTextColor: datePickerProps.dayTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextColor), labelTextSize: datePickerProps.dayTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextSize), label: date.getDate().toString(), shape: datePickerProps.dayTextShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextShape), size: datePickerProps.daySize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.daySize) }));
72
+ return (jsx(Button, { className: "react-datepicker__day-button", labelTextColor: datePickerProps.dayTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.dayTextColor), labelTextSize: datePickerProps.dayTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.dayTextSize), label: date.getDate().toString(), shape: datePickerProps.dayTextShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.dayTextShape), size: datePickerProps.daySize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.daySize) }));
72
73
  }, [
73
74
  datePickerProps.daySize,
74
75
  datePickerProps.dayTextColor,
@@ -77,7 +78,7 @@ function DatePickerInput(props) {
77
78
  ]);
78
79
  var renderCustomHeader = useCallback(function (_a) {
79
80
  var decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth, monthDate = _a.monthDate;
80
- return (jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconLeft || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconLeft), onClick: decreaseMonth })), jsxs("div", { className: "react-datepicker__data", children: [jsx(Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextSize), textColor: datePickerProps.monthTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextColor), textWeight: datePickerProps.monthTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextWeight), children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsx(Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextSize), textColor: datePickerProps.yearTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextColor), textWeight: datePickerProps.yearTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextWeight), children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconRight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconRight), onClick: increaseMonth }))] }));
81
+ return (jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconLeft || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconLeft), onClick: decreaseMonth })), jsxs("div", { className: "react-datepicker__data", children: [jsx(Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.monthTextSize), textColor: datePickerProps.monthTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.monthTextColor), textWeight: datePickerProps.monthTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.monthTextWeight), children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsx(Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.yearTextSize), textColor: datePickerProps.yearTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.yearTextColor), textWeight: datePickerProps.yearTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.yearTextWeight), children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconRight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.datePicker.iconRight), onClick: increaseMonth }))] }));
81
82
  }, [
82
83
  datePickerProps.iconFill,
83
84
  datePickerProps.iconFillHover,
@@ -106,7 +107,7 @@ function DatePickerInput(props) {
106
107
  var widthClass = classGenerator.widthClass;
107
108
  // @ts-expect-error
108
109
  var datePickerStyles = useStyles(props).styles;
109
- return (jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ ref: datepickerRef, endDate: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.selectsRange) ? endDate : undefined, locale: ru, minDate: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.disablePastDays) ? new Date() : undefined, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, customInput: jsx(DatePickerCustomInput, { labelTextSize: labelTextSize, clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datePickerAppearance: appearance, datepickerRef: datepickerRef, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconItemFill: datePickerProps.inputIconItemFill, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputProps: inputProps, isClearable: datePickerProps.isClearable }), popperClassName: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.popper) && "react-datepicker-popper-".concat(datePickerProps.popper), onChange: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
110
+ return (jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ ref: datepickerRef, endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : undefined, locale: ru, minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : undefined, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, customInput: jsx(DatePickerCustomInput, { labelTextSize: labelTextSize, clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datePickerAppearance: appearance, datepickerRef: datepickerRef, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconItemFill: datePickerProps.inputIconItemFill, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputProps: inputProps, isClearable: datePickerProps.isClearable }), popperClassName: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.popper) && "react-datepicker-popper-".concat(datePickerProps.popper), onChange: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
110
111
  // Important for use custom clear button
111
112
  isClearable: false })) }));
112
113
  }
@@ -120,7 +121,7 @@ var DatePickerCustomInput = React.forwardRef(function (props, ref) {
120
121
  }
121
122
  return '';
122
123
  }, [value]);
123
- var inputAppearanceProps = (_a = datePickerConfig.appearance[datePickerAppearance]) === null || _a === undefined ? undefined : _a.input;
124
+ var inputAppearanceProps = (_a = datePickerConfig.appearance[datePickerAppearance]) === null || _a === void 0 ? void 0 : _a.input;
124
125
  return (jsxs(React.Fragment, { children: [jsx(Input, __assign({}, inputAppearanceProps, props, inputProps, { ref: ref, autocomplete: "off", value: multipleValue })), inputIcon && jsx(DatePickerInputIcon, __assign({}, props)), isClearable && jsx(DatePickerClearButton, __assign({}, props))] }));
125
126
  });
126
127
  DatePickerCustomInput.displayName = 'DatePickerCustomInput';
@@ -128,8 +129,8 @@ function DatePickerClearButton(props) {
128
129
  var clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, datepickerRef = props.datepickerRef;
129
130
  var onClick = useCallback(function (event) {
130
131
  var _a, _b;
131
- (_a = datepickerRef === null || datepickerRef === undefined ? undefined : datepickerRef.current) === null || _a === undefined ? undefined : _a.onClearClick(event);
132
- (_b = datepickerRef === null || datepickerRef === undefined ? undefined : datepickerRef.current) === null || _b === undefined ? undefined : _b.handleFocus(event);
132
+ (_a = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _a === void 0 ? void 0 : _a.onClearClick(event);
133
+ (_b = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _b === void 0 ? void 0 : _b.handleFocus(event);
133
134
  }, []);
134
135
  return (jsxs(React.Fragment, { children: [clearLabel && (jsx(Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), labelTextColor: clearLabelTextColor, labelTextSize: clearLabelTextSize, label: clearLabel, labelTextColorHover: clearLabelTextColorHover, onClick: onClick })), (clearIcon || clearIconSrc) && (jsx(Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, size: clearIconSize, SvgImage: clearIcon, onClick: onClick }))] }));
135
136
  }
@@ -2,13 +2,14 @@ export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Div
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useDeviceTargetClassGenerator.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
@@ -2,13 +2,14 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import 'lodash/maxBy';
13
14
  import 'lodash/upperFirst';
14
15
  import '../hooks/styleAttributes.js';
@@ -1,18 +1,19 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-CExjlJjQ.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-Bq-oPnWX.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
5
5
  import '../hooks/useDeviceTargetClassGenerator.js';
6
- import '../tslib.es6-5FtW-kfi.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
15
16
  import '../hooks/styleAttributes.js';
16
17
  import '../Divider-DBvDCUqP.js';
17
- import '../Link-C53o3P6_.js';
18
- import '../Text-D9sEeRE4.js';
18
+ import '../Link-DN2LhPjD.js';
19
+ import '../Text-JayJa3hj.js';
@@ -2,19 +2,20 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import 'lodash/maxBy';
13
14
  import 'lodash/upperFirst';
14
15
  import '../hooks/styleAttributes.js';
15
16
 
16
17
  function Flex(props) {
17
- var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === undefined ? 'div' : _a, type = props.type, style = props.style, onClick = props.onClick;
18
+ var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, type = props.type, style = props.style, onClick = props.onClick;
18
19
  var classGenerator = useDeviceTargetClassGenerator(props);
19
20
  var alignContentClass = classGenerator.alignContentClass, alignItemsClass = classGenerator.alignItemsClass, borderColorClass = classGenerator.borderColorClass, borderTypeClass = classGenerator.borderTypeClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, flowClass = classGenerator.flowClass, justifyContentClass = classGenerator.justifyContentClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass, wrapClass = classGenerator.wrapClass;
20
21
  // @ts-expect-error
@@ -23,7 +24,7 @@ function Flex(props) {
23
24
  }
24
25
 
25
26
  function FlexItem(props) {
26
- var children = props.children, className = props.className, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === undefined ? 'div' : _a, style = props.style;
27
+ var children = props.children, className = props.className, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, style = props.style;
27
28
  var classGenerator = useDeviceTargetClassGenerator(props);
28
29
  var alignItemsClass = classGenerator.alignItemsClass, alignSelfClass = classGenerator.alignSelfClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, growClass = classGenerator.growClass, justifyContentClass = classGenerator.justifyContentClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass, wrapClass = classGenerator.wrapClass;
29
30
  // @ts-expect-error
@@ -2,19 +2,20 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import 'lodash/maxBy';
13
14
  import 'lodash/upperFirst';
14
15
  import '../hooks/styleAttributes.js';
15
16
 
16
17
  function Grid(props) {
17
- var id = props.id, children = props.children, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === undefined ? 'div' : _a, type = props.type, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, onClick = props.onClick, onDoubleClick = props.onDoubleClick;
18
+ var id = props.id, children = props.children, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, type = props.type, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, onClick = props.onClick, onDoubleClick = props.onDoubleClick;
18
19
  var classGenerator = useDeviceTargetClassGenerator(props);
19
20
  var alignContentClass = classGenerator.alignContentClass, alignItemsClass = classGenerator.alignItemsClass, borderColorClass = classGenerator.borderColorClass, columnGapClass = classGenerator.columnGapClass, columnsClass = classGenerator.columnsClass, fillClass = classGenerator.fillClass, justifyContentClass = classGenerator.justifyContentClass, justifyItemsClass = classGenerator.justifyItemsClass, rowGapClass = classGenerator.rowGapClass, rowsClass = classGenerator.rowsClass;
20
21
  // @ts-expect-error
@@ -32,7 +33,7 @@ function GridItem(props) {
32
33
  }
33
34
 
34
35
  function GridRow(props) {
35
- var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === undefined ? 'div' : _a, onClick = props.onClick;
36
+ var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick;
36
37
  var classGenerator = useDeviceTargetClassGenerator(props);
37
38
  var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass;
38
39
  // @ts-expect-error
@@ -1,14 +1,15 @@
1
- export { G as Group, a as groupAppearance, g as groupConfig } from '../Group-CIIZoSm5.js';
1
+ export { G as Group, a as groupAppearance, g as groupConfig } from '../Group-DT1ukQCn.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
5
5
  import '../hooks/useDeviceTargetClassGenerator.js';
6
- import '../tslib.es6-5FtW-kfi.js';
6
+ import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import '../hooks/useStyles.js';
13
14
  import 'lodash/maxBy';
14
15
  import 'lodash/upperFirst';
@@ -2,13 +2,14 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles.js';
5
- import '../tslib.es6-5FtW-kfi.js';
5
+ import '../tslib.es6-Bwu1Cn-t.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import '../context/UIContext.js';
10
10
  import '../hooks/useMediaQueries.js';
11
11
  import 'react-responsive';
12
+ import '../utils/setViewportProperty.js';
12
13
  import 'lodash/maxBy';
13
14
  import 'lodash/upperFirst';
14
15
  import '../hooks/styleAttributes.js';
@@ -6,7 +6,8 @@ import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGene
6
6
  import { useStyles } from '../hooks/useStyles.js';
7
7
  import '../hooks/useMediaQueries.js';
8
8
  import 'react-responsive';
9
- import '../tslib.es6-5FtW-kfi.js';
9
+ import '../utils/setViewportProperty.js';
10
+ import '../tslib.es6-Bwu1Cn-t.js';
10
11
  import 'lodash/camelCase';
11
12
  import 'lodash/castArray';
12
13
  import 'lodash/maxBy';
@@ -26,7 +27,7 @@ var heroTitleConfig = {
26
27
  },
27
28
  };
28
29
  function HeroTitle(props) {
29
- var children = props.children, after = props.after, afterWrapper = props.afterWrapper, appearance = props.appearance, before = props.before, beforeWrapper = props.beforeWrapper, className = props.className, dataTour = props.dataTour, mode = props.mode, _a = props.size, size = _a === undefined ? 'h3' : _a, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === undefined ? 'span' : _b, text = props.text, textWrap = props.textWrap, onClick = props.onClick;
30
+ var children = props.children, after = props.after, afterWrapper = props.afterWrapper, appearance = props.appearance, before = props.before, beforeWrapper = props.beforeWrapper, className = props.className, dataTour = props.dataTour, mode = props.mode, _a = props.size, size = _a === void 0 ? 'h3' : _a, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, text = props.text, textWrap = props.textWrap, onClick = props.onClick;
30
31
  var _c = useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
31
32
  // @ts-expect-error
32
33
  var appearanceConfig = heroTitleConfig.appearance && heroTitleConfig.appearance[appearance];