@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
@@ -7,22 +7,23 @@ var clsx = require('clsx');
7
7
  var SVG = require('react-inlinesvg');
8
8
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
9
9
  var useStyles = require('../hooks/useStyles.js');
10
- var Button = require('../../Button-BSygAkO5.js');
11
- var Group = require('../../Group-pMTTxQH4.js');
12
- var Text = require('../../Text-COHpLTYr.js');
10
+ var Button = require('../../Button-BFX_EEum.js');
11
+ var Group = require('../../Group-BQ4Ic0jX.js');
12
+ var Text = require('../../Text-Beslj4Ns.js');
13
13
  require('lodash/camelCase');
14
14
  require('lodash/castArray');
15
15
  require('../context/UIContext.js');
16
16
  require('../hooks/useMediaQueries.js');
17
17
  require('react-responsive');
18
+ require('../utils/setViewportProperty.js');
18
19
  require('lodash/maxBy');
19
20
  require('lodash/upperFirst');
20
21
  require('../hooks/styleAttributes.js');
21
- require('../../Icon-ByLHEhHL.js');
22
- require('../../Link-CoAhRbFg.js');
23
- require('../../Tooltip-CyZCVyba.js');
24
- require('../../Title-BduD-TXE.js');
25
- require('../../Loader-D_53c71f.js');
22
+ require('../../Icon-B_bS-o4g.js');
23
+ require('../../Link-CxWmYMyL.js');
24
+ require('../../Tooltip-CNua1g76.js');
25
+ require('../../Title-DBaHcpvB.js');
26
+ require('../../Loader-Dn036JwE.js');
26
27
 
27
28
  var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
28
29
 
@@ -250,8 +251,8 @@ function Response(props) {
250
251
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
251
252
  var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass, textAlignClass = classGenerator.textAlignClass;
252
253
  var ImageComponent = React.useMemo(function () {
253
- var src = imageSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.svgSrc);
254
- var Image = SvgImage || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.SvgImage);
254
+ var src = imageSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.svgSrc);
255
+ var Image = SvgImage || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.SvgImage);
255
256
  if (Image) {
256
257
  var sizes = {};
257
258
  if (width) {
@@ -264,7 +265,7 @@ function Response(props) {
264
265
  }
265
266
  if (src) {
266
267
  if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
267
- if (svgFillClass || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.svgFill)) {
268
+ if (svgFillClass || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.svgFill)) {
268
269
  return jsxRuntime.jsx(SVG, { preProcessor: removeFillStroke, src: src });
269
270
  }
270
271
  else {
@@ -277,11 +278,11 @@ function Response(props) {
277
278
  }, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
278
279
  // @ts-expect-error
279
280
  var _a = useStyles.useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
280
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsxRuntime.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
281
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsxRuntime.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
281
282
  primaryButton ||
282
283
  secondaryButtonLabel ||
283
284
  secondaryButton ||
284
- appearanceConfig) && (jsxRuntime.jsxs(Group.Group, { className: "response__button", width: "fill", children: [primaryButtonLabel || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: primaryButtonWidth || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonWidth) || 'fill', labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonLabelTextSize), fill: primaryButtonFill, fillHover: primaryButtonFillHover, after: primaryButtonAfter, before: primaryButtonBefore, label: primaryButtonLabel || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonLabel), shape: primaryButtonShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonShape), size: primaryButtonSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonSize), appearance: primaryButtonAppearance || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.primaryButtonAppearance) || 'dev', onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: secondaryButtonWidth || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonWidth) || 'fill', labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonLabelTextSize), fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, after: secondaryButtonAfter, before: secondaryButtonBefore, label: secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonLabel), shape: secondaryButtonShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonShape), size: secondaryButtonSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonSize), appearance: secondaryButtonAppearance || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.secondaryButtonAppearance) || 'dev', onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
285
+ appearanceConfig) && (jsxRuntime.jsxs(Group.Group, { className: "response__button", width: "fill", children: [primaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: primaryButtonWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonWidth) || 'fill', labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabelTextSize), fill: primaryButtonFill, fillHover: primaryButtonFillHover, after: primaryButtonAfter, before: primaryButtonBefore, label: primaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabel), shape: primaryButtonShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonShape), size: primaryButtonSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonSize), appearance: primaryButtonAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonAppearance) || 'dev', onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: secondaryButtonWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonWidth) || 'fill', labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabelTextSize), fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, after: secondaryButtonAfter, before: secondaryButtonBefore, label: secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabel), shape: secondaryButtonShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonShape), size: secondaryButtonSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonSize), appearance: secondaryButtonAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonAppearance) || 'dev', onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
285
286
  }
286
287
  var removeFillStroke = function (code) {
287
288
  return code
@@ -12,6 +12,7 @@ require('lodash/castArray');
12
12
  require('../context/UIContext.js');
13
13
  require('../hooks/useMediaQueries.js');
14
14
  require('react-responsive');
15
+ require('../utils/setViewportProperty.js');
15
16
  require('lodash/maxBy');
16
17
  require('lodash/upperFirst');
17
18
  require('../hooks/styleAttributes.js');
@@ -22,7 +23,6 @@ function SVGContent(props) {
22
23
  var svgFillClass = classGenerator.svgFillClass, svgFillHoverClass = classGenerator.svgFillHoverClass;
23
24
  // @ts-expect-error
24
25
  var svgContentStyles = useStyles.useStyles(props).styles;
25
- console.log(src);
26
26
  return (jsxRuntime.jsxs("div", { className: clsx(className, 'svg-content', svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass)), style: svgContentStyles, children: [src && jsxRuntime.jsx(SVG, { src: src }), SvgImage && jsxRuntime.jsx(SvgImage, {})] }));
27
27
  }
28
28
 
@@ -12,6 +12,7 @@ require('lodash/castArray');
12
12
  require('../context/UIContext.js');
13
13
  require('../hooks/useMediaQueries.js');
14
14
  require('react-responsive');
15
+ require('../utils/setViewportProperty.js');
15
16
  require('lodash/maxBy');
16
17
  require('lodash/upperFirst');
17
18
  require('../hooks/styleAttributes.js');
@@ -12,12 +12,13 @@ require('lodash/castArray');
12
12
  require('../context/UIContext.js');
13
13
  require('../hooks/useMediaQueries.js');
14
14
  require('react-responsive');
15
+ require('../utils/setViewportProperty.js');
15
16
  require('lodash/maxBy');
16
17
  require('lodash/upperFirst');
17
18
  require('../hooks/styleAttributes.js');
18
19
 
19
20
  var ScrollToView = reactScroll.ScrollLink(function ScrollToView(props) {
20
- var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === undefined ? 'div' : _a;
21
+ var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === void 0 ? 'div' : _a;
21
22
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props);
22
23
  var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, alignItemsClass = classGenerator.alignItemsClass, alignSelfClass = classGenerator.alignSelfClass, directionClass = classGenerator.directionClass, heightClass = classGenerator.heightClass, justifyContentClass = classGenerator.justifyContentClass, textColorActiveClass = classGenerator.textColorActiveClass, textColorClass = classGenerator.textColorClass, textColorHoverClass = classGenerator.textColorHoverClass, widthClass = classGenerator.widthClass;
23
24
  var scrollToViewStyles = useStyles.useStyles(props).styles;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Scrollbar = require('../../Scrollbar-CL9V8d1X.js');
3
+ var Scrollbar = require('../../Scrollbar-CKbA0jQU.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('react-scrollbars-custom');
@@ -5,22 +5,23 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles.js');
8
- var Icon = require('../../Icon-ByLHEhHL.js');
9
- var Text = require('../../Text-COHpLTYr.js');
10
- var Scrollbar = require('../../Scrollbar-CL9V8d1X.js');
8
+ var Icon = require('../../Icon-B_bS-o4g.js');
9
+ var Text = require('../../Text-Beslj4Ns.js');
10
+ var Scrollbar = require('../../Scrollbar-CKbA0jQU.js');
11
11
  require('../../tslib.es6-CCZ3TN_7.js');
12
12
  require('lodash/camelCase');
13
13
  require('lodash/castArray');
14
14
  require('../context/UIContext.js');
15
15
  require('../hooks/useMediaQueries.js');
16
16
  require('react-responsive');
17
+ require('../utils/setViewportProperty.js');
17
18
  require('lodash/maxBy');
18
19
  require('lodash/upperFirst');
19
20
  require('../hooks/styleAttributes.js');
20
21
  require('react-inlinesvg');
21
- require('../../Link-CoAhRbFg.js');
22
- require('../../Tooltip-CyZCVyba.js');
23
- require('../../Title-BduD-TXE.js');
22
+ require('../../Link-CxWmYMyL.js');
23
+ require('../../Tooltip-CNua1g76.js');
24
+ require('../../Title-DBaHcpvB.js');
24
25
  require('react-scrollbars-custom');
25
26
 
26
27
  var searchAppearance = {
@@ -40,7 +41,7 @@ var searchInputConfig = {
40
41
  },
41
42
  };
42
43
  var SearchInput = React.forwardRef(function SearchInput(props, ref) {
43
- var after = props.after, appearance = props.appearance, before = props.before, className = props.className, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeFill = props.iconBeforeFill, iconBeforeSize = props.iconBeforeSize, iconBeforeSrc = props.iconBeforeSrc, iconClear = props.iconClear, iconClearFill = props.iconClearFill, iconClearSize = props.iconClearSize, iconClearSrc = props.iconClearSrc, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, _a = props.placeholderTextSize, placeholderTextSize = _a === undefined ? 'm' : _a, placeholderTextStyle = props.placeholderTextStyle, placeholderTextWeight = props.placeholderTextWeight, _b = props.size, size = _b === undefined ? 'normal' : _b, type = props.type, value = props.value, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
44
+ var after = props.after, appearance = props.appearance, before = props.before, className = props.className, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeFill = props.iconBeforeFill, iconBeforeSize = props.iconBeforeSize, iconBeforeSrc = props.iconBeforeSrc, iconClear = props.iconClear, iconClearFill = props.iconClearFill, iconClearSize = props.iconClearSize, iconClearSrc = props.iconClearSrc, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, _a = props.placeholderTextSize, placeholderTextSize = _a === void 0 ? 'm' : _a, placeholderTextStyle = props.placeholderTextStyle, placeholderTextWeight = props.placeholderTextWeight, _b = props.size, size = _b === void 0 ? 'normal' : _b, type = props.type, value = props.value, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
44
45
  var onChangeSearchInput = React.useCallback(function (event) {
45
46
  onChange && onChange(event.target.value);
46
47
  }, [onChange]);
@@ -57,11 +58,11 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
57
58
  var borderColorClass = classGenerator.borderColorClass, borderHoverClass = classGenerator.borderHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, inputFillClass = classGenerator.inputFillClass, inputShapeClass = classGenerator.inputShapeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, inputTextStyleClass = classGenerator.inputTextStyleClass, inputTextWeightClass = classGenerator.inputTextWeightClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
58
59
  // @ts-expect-error
59
60
  var searchInputStyles = useStyles.useStyles(props).styles;
60
- return (jsxRuntime.jsxs("label", { className: clsx(className, 'search-input', shapeClass && "search_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), type && "search-input_type_".concat(type)), "data-tour": dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "search-input__icon search-input__icon-before", iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconBeforeFill), imageSrc: iconBeforeSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconBeforeSrc), size: iconBeforeSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconBeforeSize), SvgImage: iconBefore || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconBefore) })), jsxRuntime.jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass), inputShapeClass && "search-input_shape_".concat(inputShapeClass)), children: [jsxRuntime.jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
61
+ return (jsxRuntime.jsxs("label", { className: clsx(className, 'search-input', shapeClass && "search_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), type && "search-input_type_".concat(type)), "data-tour": dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "search-input__icon search-input__icon-before", iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeFill), imageSrc: iconBeforeSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeSrc), size: iconBeforeSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeSize), SvgImage: iconBefore || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBefore) })), jsxRuntime.jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass), inputShapeClass && "search-input_shape_".concat(inputShapeClass)), children: [jsxRuntime.jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
61
62
  inputTextWeightClass ||
62
63
  inputTextColorClass ||
63
64
  inputTextStyleClass) &&
64
- 'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), ref: ref, required: true, type: "text", value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsxRuntime.jsx("div", { className: "search-input__placeholder", children: jsxRuntime.jsx(Text.Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.placeholderTextSize), textColor: placeholderTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.placeholderTextColor), textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder || 'Search' }) }), value && (jsxRuntime.jsx(Icon.Icon, { className: clsx('search-input__clear', 'cursor_type_pointer'), iconFill: iconClearFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconClearFill), imageSrc: iconClearSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconClearSrc), size: iconClearSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconClearSize), SvgImage: iconClear || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconClear), onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "search-input__icon search-input__icon-after", iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconAfterFill), imageSrc: iconAfterSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconAfterSrc), size: iconAfterSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconAfterSize), SvgImage: iconAfter || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconAfter) })), after] }));
65
+ 'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), ref: ref, required: true, type: "text", value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsxRuntime.jsx("div", { className: "search-input__placeholder", children: jsxRuntime.jsx(Text.Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.placeholderTextSize), textColor: placeholderTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.placeholderTextColor), textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder || 'Search' }) }), value && (jsxRuntime.jsx(Icon.Icon, { className: clsx('search-input__clear', 'cursor_type_pointer'), iconFill: iconClearFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearFill), imageSrc: iconClearSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearSrc), size: iconClearSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearSize), SvgImage: iconClear || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClear), onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "search-input__icon search-input__icon-after", iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterFill), imageSrc: iconAfterSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterSrc), size: iconAfterSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterSize), SvgImage: iconAfter || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfter) })), after] }));
65
66
  });
66
67
  // @ts-expect-error
67
68
  SearchInput.DEFAULT_REF_STATE = {
@@ -4,13 +4,14 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
7
- var Text = require('../../Text-COHpLTYr.js');
7
+ var Text = require('../../Text-Beslj4Ns.js');
8
8
  require('../../tslib.es6-CCZ3TN_7.js');
9
9
  require('lodash/camelCase');
10
10
  require('lodash/castArray');
11
11
  require('../context/UIContext.js');
12
12
  require('../hooks/useMediaQueries.js');
13
13
  require('react-responsive');
14
+ require('../utils/setViewportProperty.js');
14
15
  require('../hooks/useStyles.js');
15
16
  require('lodash/maxBy');
16
17
  require('lodash/upperFirst');
@@ -36,7 +37,7 @@ var segmentedConfig = {
36
37
  },
37
38
  };
38
39
  var Segmented = React.forwardRef(function (props, ref) {
39
- var isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === undefined ? {} : _a, appearance = props.appearance, className = props.className, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveHoverColor = props.labelTextActiveHoverColor, labelTextColor = props.labelTextColor, labelTextHoverColor = props.labelTextHoverColor, labelTextSize = props.labelTextSize, labelTextWrap = props.labelTextWrap, name = props.name, segments = props.segments, setActiveSegment = props.setActiveSegment, size = props.size, type = props.type, onChange = props.onChange;
40
+ var isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === void 0 ? {} : _a, appearance = props.appearance, className = props.className, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveHoverColor = props.labelTextActiveHoverColor, labelTextColor = props.labelTextColor, labelTextHoverColor = props.labelTextHoverColor, labelTextSize = props.labelTextSize, labelTextWrap = props.labelTextWrap, name = props.name, segments = props.segments, setActiveSegment = props.setActiveSegment, size = props.size, type = props.type, onChange = props.onChange;
40
41
  var controlRef = React.useRef(null);
41
42
  var segmentsRefs = React.useMemo(function () { return new Map(segments.map(function (item) { return [item.value, React.createRef()]; })); }, [segments]);
42
43
  var onChangeValue = React.useCallback(function (item) {
@@ -47,14 +48,14 @@ var Segmented = React.forwardRef(function (props, ref) {
47
48
  var _a, _b;
48
49
  var offsetWidth = 0;
49
50
  var offsetLeft = 0;
50
- var activeSegmentRef = segmentsRefs.get(activeSegment === null || activeSegment === undefined ? undefined : activeSegment.value);
51
- if (activeSegmentRef === null || activeSegmentRef === undefined ? undefined : activeSegmentRef.current) {
51
+ var activeSegmentRef = segmentsRefs.get(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value);
52
+ if (activeSegmentRef === null || activeSegmentRef === void 0 ? void 0 : activeSegmentRef.current) {
52
53
  offsetWidth = activeSegmentRef.current.offsetWidth;
53
54
  offsetLeft = activeSegmentRef.current.offsetLeft;
54
55
  }
55
- (_a = controlRef.current) === null || _a === undefined ? undefined : _a.style.setProperty('--segmented-active-width', "".concat(offsetWidth, "px"));
56
+ (_a = controlRef.current) === null || _a === void 0 ? void 0 : _a.style.setProperty('--segmented-active-width', "".concat(offsetWidth, "px"));
56
57
  // controlRef.current.style.setProperty('--segmented-active-x-pos', `${offsetLeft - 2}px`)
57
- (_b = controlRef.current) === null || _b === undefined ? undefined : _b.style.setProperty('--segmented-active-x-pos', "".concat(offsetLeft, "px"));
58
+ (_b = controlRef.current) === null || _b === void 0 ? void 0 : _b.style.setProperty('--segmented-active-x-pos', "".concat(offsetLeft, "px"));
58
59
  }, [activeSegment, segmentsRefs]);
59
60
  // @ts-expect-error
60
61
  var appearanceConfig = segmentedConfig.appearance && segmentedConfig.appearance[appearance];
@@ -62,15 +63,15 @@ var Segmented = React.forwardRef(function (props, ref) {
62
63
  var borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, indicatorFillClass = classGenerator.indicatorFillClass, inputBorderColorClass = classGenerator.inputBorderColorClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
63
64
  return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), size
64
65
  ? "segmented_size_".concat(size)
65
- : (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.size) &&
66
+ : (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.size) &&
66
67
  "segmented_size_".concat(appearanceConfig.size).replace(/([A-Z])/g, '-$1').toLowerCase(), type
67
68
  ? "segmented_type_".concat(type)
68
- : (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.type) &&
69
- "segmented_type_".concat(appearanceConfig.type).replace(/([A-Z])/g, '-$1').toLowerCase(), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === undefined ? undefined : segments.map(function (item, i) { return (jsxRuntime.jsxs("div", { className: clsx('segmented__item', fillHoverClass && "fill_hover_".concat(fillHoverClass), item.value === (activeSegment === null || activeSegment === undefined ? undefined : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [jsxRuntime.jsx("input", { className: "segmented__item-radio", name: name, checked: item.value === (activeSegment === null || activeSegment === undefined ? undefined : activeSegment.value), id: item.label, type: "radio", value: item.value, onChange: function () { return onChangeValue(item); } }), jsxRuntime.jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsxRuntime.jsx(Text.Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textColor: item.value === (activeSegment === null || activeSegment === undefined ? undefined : activeSegment.value)
70
- ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
71
- : labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor), textColorHover: item.value === (activeSegment === null || activeSegment === undefined ? undefined : activeSegment.value)
72
- ? labelTextActiveHoverColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveHoverColor)
73
- : labelTextHoverColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextHoverColor), children: item.label }) })] }, item.value)); }), jsxRuntime.jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)), children: "\u00A0" })] }) }) }));
69
+ : (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.type) &&
70
+ "segmented_type_".concat(appearanceConfig.type).replace(/([A-Z])/g, '-$1').toLowerCase(), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item, i) { return (jsxRuntime.jsxs("div", { className: clsx('segmented__item', fillHoverClass && "fill_hover_".concat(fillHoverClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [jsxRuntime.jsx("input", { className: "segmented__item-radio", name: name, checked: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value), id: item.label, type: "radio", value: item.value, onChange: function () { return onChangeValue(item); } }), jsxRuntime.jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsxRuntime.jsx(Text.Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
71
+ ? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
72
+ : labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorHover: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
73
+ ? labelTextActiveHoverColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveHoverColor)
74
+ : labelTextHoverColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextHoverColor), children: item.label }) })] }, item.value)); }), jsxRuntime.jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)), children: "\u00A0" })] }) }) }));
74
75
  });
75
76
  Segmented.displayName = 'Segmented';
76
77
 
@@ -3,14 +3,14 @@
3
3
  var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var Select = require('react-select');
6
- var Icon = require('../../Icon-ByLHEhHL.js');
6
+ var Icon = require('../../Icon-B_bS-o4g.js');
7
7
  var React = require('react');
8
8
  var clsx = require('clsx');
9
9
  var CreatableSelect = require('react-select/creatable');
10
10
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
11
- var Text = require('../../Text-COHpLTYr.js');
12
- var Badge = require('../../Badge-DxHwStfq.js');
13
- var Group = require('../../Group-pMTTxQH4.js');
11
+ var Text = require('../../Text-Beslj4Ns.js');
12
+ var Badge = require('../../Badge-CoHPvO35.js');
13
+ var Group = require('../../Group-BQ4Ic0jX.js');
14
14
  var Divider = require('../../Divider-Goh6mpPK.js');
15
15
  require('react-inlinesvg');
16
16
  require('../hooks/useStyles.js');
@@ -20,10 +20,11 @@ require('lodash/upperFirst');
20
20
  require('../context/UIContext.js');
21
21
  require('../hooks/useMediaQueries.js');
22
22
  require('react-responsive');
23
+ require('../utils/setViewportProperty.js');
23
24
  require('../hooks/styleAttributes.js');
24
- require('../../Link-CoAhRbFg.js');
25
- require('../../Tooltip-CyZCVyba.js');
26
- require('../../Title-BduD-TXE.js');
25
+ require('../../Link-CxWmYMyL.js');
26
+ require('../../Tooltip-CNua1g76.js');
27
+ require('../../Title-DBaHcpvB.js');
27
28
  require('lodash/castArray');
28
29
 
29
30
  // interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
@@ -82,7 +83,7 @@ var SelectIndicatorsContainer = function (props) {
82
83
  return (jsxRuntime.jsxs(Select.components.IndicatorsContainer, tslib_es6.__assign({}, props, { children: [showBadge &&
83
84
  value &&
84
85
  // @ts-expect-error
85
- (value === null || value === undefined ? undefined : value.length) > 0 ? (jsxRuntime.jsx(Badge.Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
86
+ (value === null || value === void 0 ? void 0 : value.length) > 0 ? (jsxRuntime.jsx(Badge.Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
86
87
  // @ts-expect-error
87
88
  value: value.length.toString() })) : null, props.children] })));
88
89
  };
@@ -171,7 +172,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
171
172
  var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
172
173
  if (!isTargetSelectContainer && !isTargetInsideController) {
173
174
  // @ts-expect-error
174
- (_a = selectRef.current) === null || _a === undefined ? undefined : _a.onInputBlur();
175
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
175
176
  }
176
177
  }
177
178
  };
@@ -203,7 +204,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
203
204
  var appearanceConfig = (selectConfig.appearance && selectConfig.appearance[appearance]) || {};
204
205
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
205
206
  var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, headingFillClass = classGenerator.headingFillClass, headingFillHoverClass = classGenerator.headingFillHoverClass, headingTextColorClass = classGenerator.headingTextColorClass, headingTextSizeClass = classGenerator.headingTextSizeClass, headingTextWeightClass = classGenerator.headingTextWeightClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputShapeClass = classGenerator.inputShapeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, multipleItemTextColorClass = classGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = classGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = classGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = classGenerator.noOptionsTextSizeClass, optionBorderClass = classGenerator.optionBorderClass, optionBorderTypeClass = classGenerator.optionBorderTypeClass, optionFillClass = classGenerator.optionFillClass, optionFillHoverClass = classGenerator.optionFillHoverClass, optionShapeClass = classGenerator.optionShapeClass, optionTextColorClass = classGenerator.optionTextColorClass, optionTextSizeClass = classGenerator.optionTextSizeClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
206
- return (jsxRuntime.jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== undefined ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || appearanceConfig.elevation, filterOption: filterOption,
207
+ return (jsxRuntime.jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || appearanceConfig.elevation, filterOption: filterOption,
207
208
  // headingFill={headingFillClass as tFillProps}
208
209
  headingFill: headingFillClass && "fill_".concat(headingFillClass), headingFillHover: headingFillHoverClass && "fill_hover_".concat(headingFillHoverClass), headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputBorderColor: inputBorderColorClass, inputBorderColorHover: inputBorderColorHoverClass, inputCaretColor: inputCaretColorClass, inputFill: inputFillClass && "select__control_fill_".concat(inputFillClass), inputShape: inputShapeClass && "select__control_shape_".concat(inputShapeClass), inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId,
209
210
  // @ts-expect-error
@@ -5,10 +5,11 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var UIContext = require('../context/UIContext.js');
7
7
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
8
- var Icon = require('../../Icon-ByLHEhHL.js');
9
- var Text = require('../../Text-COHpLTYr.js');
8
+ var Icon = require('../../Icon-B_bS-o4g.js');
9
+ var Text = require('../../Text-Beslj4Ns.js');
10
10
  require('../hooks/useMediaQueries.js');
11
11
  require('react-responsive');
12
+ require('../utils/setViewportProperty.js');
12
13
  require('../../tslib.es6-CCZ3TN_7.js');
13
14
  require('lodash/camelCase');
14
15
  require('lodash/castArray');
@@ -17,9 +18,9 @@ require('../hooks/useStyles.js');
17
18
  require('lodash/maxBy');
18
19
  require('lodash/upperFirst');
19
20
  require('../hooks/styleAttributes.js');
20
- require('../../Link-CoAhRbFg.js');
21
- require('../../Tooltip-CyZCVyba.js');
22
- require('../../Title-BduD-TXE.js');
21
+ require('../../Link-CxWmYMyL.js');
22
+ require('../../Tooltip-CNua1g76.js');
23
+ require('../../Title-DBaHcpvB.js');
23
24
 
24
25
  var siteMenuAppearance = {
25
26
  dev: {},
@@ -62,7 +63,7 @@ function SiteMenu(props) {
62
63
  var appearanceConfig = siteMenuConfig.appearance && siteMenuConfig.appearance[appearance];
63
64
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
64
65
  var fillClass = classGenerator.fillClass;
65
- return (jsxRuntime.jsx("div", { className: clsx(className, 'site-menu', fillClass && "fill_".concat(fillClass), isSiteMenuOpen && 'site-menu_state_visible', !isSiteMenuOpen && 'site-menu_state_hidden'), children: jsxRuntime.jsxs("div", { className: "site-menu__wrapper", children: [jsxRuntime.jsx("div", { className: "site-menu__close", children: iconClose ? (jsxRuntime.jsx(Icon.Icon, { fill: iconCloseFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconCloseFill), bgFill: iconCloseBgFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconCloseBgFill), size: iconCloseSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconCloseSize), SvgImage: iconClose || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconClose), onClick: onClickClose })) : (jsxRuntime.jsx(Text.Text, { size: closeTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.closeTextSize), textColor: closeTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.closeTextColor), textColorHover: closeTextColorHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.closeTextColorHover),
66
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'site-menu', fillClass && "fill_".concat(fillClass), isSiteMenuOpen && 'site-menu_state_visible', !isSiteMenuOpen && 'site-menu_state_hidden'), children: jsxRuntime.jsxs("div", { className: "site-menu__wrapper", children: [jsxRuntime.jsx("div", { className: "site-menu__close", children: iconClose ? (jsxRuntime.jsx(Icon.Icon, { fill: iconCloseFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseFill), bgFill: iconCloseBgFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseBgFill), size: iconCloseSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseSize), SvgImage: iconClose || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClose), onClick: onClickClose })) : (jsxRuntime.jsx(Text.Text, { size: closeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextSize), textColor: closeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColor), textColorHover: closeTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColorHover),
66
67
  // @ts-expect-error
67
68
  onClick: onClickClose, children: closeText })) }), jsxRuntime.jsx("div", { className: "site-menu__items", children: children })] }) }));
68
69
  }
@@ -6,24 +6,25 @@ var clsx = require('clsx');
6
6
  var react = require('swiper/react');
7
7
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles.js');
9
- var Title = require('../../Title-BduD-TXE.js');
9
+ var Title = require('../../Title-DBaHcpvB.js');
10
10
  require('../../tslib.es6-CCZ3TN_7.js');
11
11
  require('lodash/camelCase');
12
12
  require('lodash/castArray');
13
13
  require('../context/UIContext.js');
14
14
  require('../hooks/useMediaQueries.js');
15
15
  require('react-responsive');
16
+ require('../utils/setViewportProperty.js');
16
17
  require('lodash/maxBy');
17
18
  require('lodash/upperFirst');
18
19
  require('../hooks/styleAttributes.js');
19
20
 
20
21
  function Swiper(props) {
21
- var id = props.id, children = props.children, direction = props.direction, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _a = props.isNavigation, isNavigation = _a === undefined ? false : _a, isScrollbar = props.isScrollbar, _b = props.activeSlideIndex, activeSlideIndex = _b === undefined ? 0 : _b, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, className = props.className, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
22
+ var id = props.id, children = props.children, direction = props.direction, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _a = props.isNavigation, isNavigation = _a === void 0 ? false : _a, isScrollbar = props.isScrollbar, _b = props.activeSlideIndex, activeSlideIndex = _b === void 0 ? 0 : _b, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, className = props.className, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
22
23
  freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, set = props.set, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate;
23
24
  var swiperRef = React.useRef(null);
24
25
  var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
25
26
  var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
26
- var isLoop = loop !== null && loop !== undefined ? loop : true;
27
+ var isLoop = loop !== null && loop !== void 0 ? loop : true;
27
28
  var onInitSwiper = React.useCallback(function (swiper) {
28
29
  // swiper.touchEventsData.formElements = 'undefined'
29
30
  // Set "disabled" state to navigation buttons on init
@@ -49,17 +50,17 @@ function Swiper(props) {
49
50
  React.useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
50
51
  React.useEffect(function () {
51
52
  var _a;
52
- var swiperInstance = (_a = swiperRef.current) === null || _a === undefined ? undefined : _a.swiper;
53
+ var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
53
54
  // @ts-expect-error
54
- swiperInstance === null || swiperInstance === undefined ? undefined : swiperInstance.updateActiveIndex(activeSlideIndex);
55
- swiperInstance === null || swiperInstance === undefined ? undefined : swiperInstance.updateSlidesClasses();
55
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
56
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
56
57
  }, [activeSlideIndex]);
57
58
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props);
58
59
  var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
59
60
  // @ts-expect-error
60
61
  var style = useStyles.useStyles(props).styles;
61
- return (jsxRuntime.jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), id: id, style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Title.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== undefined ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, direction: direction, freeMode: freeMode, init: isInit !== null && isInit !== undefined ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== undefined ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
62
- (items === null || items === undefined ? undefined : items.map(function (item, i) { return (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
62
+ return (jsxRuntime.jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), id: id, style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Title.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, direction: direction, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
63
+ (items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
63
64
  }
64
65
  Swiper.defaultProps = {
65
66
  disabledButtonClass: 'swiper-button-disabled',
@@ -5,16 +5,17 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles.js');
8
- var Badge = require('../../Badge-DxHwStfq.js');
8
+ var Badge = require('../../Badge-CoHPvO35.js');
9
9
  var Divider = require('../../Divider-Goh6mpPK.js');
10
- var Link = require('../../Link-CoAhRbFg.js');
11
- var Text = require('../../Text-COHpLTYr.js');
10
+ var Link = require('../../Link-CxWmYMyL.js');
11
+ var Text = require('../../Text-Beslj4Ns.js');
12
12
  require('../../tslib.es6-CCZ3TN_7.js');
13
13
  require('lodash/camelCase');
14
14
  require('lodash/castArray');
15
15
  require('../context/UIContext.js');
16
16
  require('../hooks/useMediaQueries.js');
17
17
  require('react-responsive');
18
+ require('../utils/setViewportProperty.js');
18
19
  require('lodash/maxBy');
19
20
  require('lodash/upperFirst');
20
21
  require('../hooks/styleAttributes.js');
@@ -125,7 +126,7 @@ var tabConfig = {
125
126
  },
126
127
  };
127
128
  function Tab(props) {
128
- var children = props.children, _a = props.isActive, isActive = _a === undefined ? false : _a, _b = props.isDisabled, isDisabled = _b === undefined ? false : _b, _c = props.isHover, isHover = _c === undefined ? false : _c, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeShape = props.badgeShape, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, badgeValue = props.badgeValue, before = props.before, className = props.className, dataTour = props.dataTour, _d = props.dividerDirection, dividerDirection = _d === undefined ? 'horizontal' : _d, dividerFill = props.dividerFill, dividerFillActive = props.dividerFillActive, dividerFillActiveHover = props.dividerFillActiveHover, dividerFillDisabled = props.dividerFillDisabled, dividerFillHover = props.dividerFillHover, dividerSize = props.dividerSize, href = props.href, label = props.label, labelColor = props.labelColor, labelColorActive = props.labelColorActive, labelColorDisabled = props.labelColorDisabled, labelTextAlign = props.labelTextAlign, labelTextColorHover = props.labelTextColorHover, labelTextGradient = props.labelTextGradient, labelTextSize = props.labelTextSize, labelTextStyle = props.labelTextStyle, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, link = props.link, linkFill = props.linkFill, rel = props.rel, reset = props.reset, set = props.set, target = props.target, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
129
+ var children = props.children, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isHover, isHover = _c === void 0 ? false : _c, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeShape = props.badgeShape, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, badgeValue = props.badgeValue, before = props.before, className = props.className, dataTour = props.dataTour, _d = props.dividerDirection, dividerDirection = _d === void 0 ? 'horizontal' : _d, dividerFill = props.dividerFill, dividerFillActive = props.dividerFillActive, dividerFillActiveHover = props.dividerFillActiveHover, dividerFillDisabled = props.dividerFillDisabled, dividerFillHover = props.dividerFillHover, dividerSize = props.dividerSize, href = props.href, label = props.label, labelColor = props.labelColor, labelColorActive = props.labelColorActive, labelColorDisabled = props.labelColorDisabled, labelTextAlign = props.labelTextAlign, labelTextColorHover = props.labelTextColorHover, labelTextGradient = props.labelTextGradient, labelTextSize = props.labelTextSize, labelTextStyle = props.labelTextStyle, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, link = props.link, linkFill = props.linkFill, rel = props.rel, reset = props.reset, set = props.set, target = props.target, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
129
130
  // @ts-expect-error
130
131
  var appearanceConfig = tabConfig.appearance && tabConfig.appearance[appearance];
131
132
  var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
@@ -134,11 +135,11 @@ function Tab(props) {
134
135
  var tab = useStyles.useStyles(props).styles;
135
136
  return (jsxRuntime.jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', !isDisabled
136
137
  ? fillClass && "fill_".concat(fillClass)
137
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxRuntime.jsx(Link.Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxRuntime.jsxs(React.Fragment, { children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [(label || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.label)) && (jsxRuntime.jsx(Text.Text, { className: "tab__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textAlign: labelTextAlign, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, textColor: isDisabled
138
- ? labelColorDisabled || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelColorDisabled)
139
- : labelColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelColor), textColorActive: isActive && (labelColorActive || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelColorActive)), children: label || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.label) })), (badgeValue || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeValue)) && (jsxRuntime.jsx(Badge.Badge, { appearance: badgeAppearance || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeAppearance), shape: badgeShape, size: badgeSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeSize), textColor: badgeTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeTextColor), textSize: badgeTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeTextSize), value: badgeValue || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.badgeValue) }))] }), jsxRuntime.jsx(Divider.Divider, { width: "fill", fill: isDisabled
140
- ? dividerFillDisabled || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.dividerFillDisabled)
141
- : dividerFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.dividerFill), fillHover: isHover && (dividerFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.dividerFillHover)), direction: dividerDirection, fillActive: isActive && (dividerFillActive || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.dividerFillActive)), fillActiveHover: dividerFillActiveHover, size: dividerSize })] })), after] }) }) }));
138
+ : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxRuntime.jsx(Link.Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxRuntime.jsxs(React.Fragment, { children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [(label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntime.jsx(Text.Text, { className: "tab__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textAlign: labelTextAlign, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, textColor: isDisabled
139
+ ? labelColorDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorDisabled)
140
+ : labelColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColor), textColorActive: isActive && (labelColorActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorActive)), children: label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue)) && (jsxRuntime.jsx(Badge.Badge, { appearance: badgeAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeAppearance), shape: badgeShape, size: badgeSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeSize), textColor: badgeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextColor), textSize: badgeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextSize), value: badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue) }))] }), jsxRuntime.jsx(Divider.Divider, { width: "fill", fill: isDisabled
141
+ ? dividerFillDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillDisabled)
142
+ : dividerFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFill), fillHover: isHover && (dividerFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillHover)), direction: dividerDirection, fillActive: isActive && (dividerFillActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillActive)), fillActiveHover: dividerFillActiveHover, size: dividerSize })] })), after] }) }) }));
142
143
  }
143
144
 
144
145
  function TabGroup(props) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Text = require('../../Text-COHpLTYr.js');
3
+ var Text = require('../../Text-Beslj4Ns.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useDeviceTargetClassGenerator.js');
@@ -11,6 +11,7 @@ require('lodash/castArray');
11
11
  require('../context/UIContext.js');
12
12
  require('../hooks/useMediaQueries.js');
13
13
  require('react-responsive');
14
+ require('../utils/setViewportProperty.js');
14
15
  require('../hooks/useStyles.js');
15
16
  require('lodash/maxBy');
16
17
  require('lodash/upperFirst');
@@ -10,6 +10,7 @@ require('lodash/castArray');
10
10
  require('../context/UIContext.js');
11
11
  require('../hooks/useMediaQueries.js');
12
12
  require('react-responsive');
13
+ require('../utils/setViewportProperty.js');
13
14
 
14
15
  var textareaAppearance = {
15
16
  dev: {