@itcase/ui 1.9.31 → 1.9.32

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 (195) hide show
  1. package/dist/{Avatar_cjs_DsgsCeRd.js → Avatar_cjs_MeHu04tK.js} +4 -4
  2. package/dist/{Avatar_es_DBNS3IWw.js → Avatar_es_uJ8vSNKC.js} +4 -4
  3. package/dist/{Button_cjs_DiaYeIs8.js → Button_cjs_BLuRWxbc.js} +3 -3
  4. package/dist/{Button_es_y6hlih24.js → Button_es_DH8hqqdN.js} +3 -3
  5. package/dist/{ChipsGroup_cjs_P0UlUnid.js → ChipsGroup_cjs_C-oThNwF.js} +1 -1
  6. package/dist/{ChipsGroup_es_BgECuDPT.js → ChipsGroup_es_BOaDqAo8.js} +1 -1
  7. package/dist/{DatePicker_cjs_CaD9pYTQ.js → DatePicker_cjs_CHxK5Rw8.js} +6 -6
  8. package/dist/{DatePicker_es_DqHRlhti.js → DatePicker_es_DHGzUpHd.js} +6 -6
  9. package/dist/{Divider_cjs_BZn2epqW.js → Divider_cjs_1fwsCxEb.js} +2 -2
  10. package/dist/{Divider_es_DNJg0mQR.js → Divider_es_BlOJ77zx.js} +2 -2
  11. package/dist/{DropdownItem_cjs_l_fnynBJ.js → DropdownItem_cjs_DUtEvTHI.js} +6 -6
  12. package/dist/{DropdownItem_es_B36TJ2oI.js → DropdownItem_es_DgaoM2SE.js} +6 -6
  13. package/dist/{Group_cjs_C1YVff0N.js → Group_cjs_CcDdC0Ua.js} +2 -2
  14. package/dist/{Group_es_C69f2Dom.js → Group_es_Dml1c8Cz.js} +2 -2
  15. package/dist/{Icon_cjs_D-jQrwjV.js → Icon_cjs_CQxDPPGY.js} +7 -7
  16. package/dist/{Icon_es_BstDGBF3.js → Icon_es_Banbw98_.js} +7 -7
  17. package/dist/{Image_cjs_BUM81t4Y.js → Image_cjs_B3E9N9YO.js} +2 -2
  18. package/dist/{Image_es_C-IjVkKX.js → Image_es_D3YrkouM.js} +2 -2
  19. package/dist/{Input_cjs_DnjehCpi.js → Input_cjs_BUtZUZYh.js} +2 -2
  20. package/dist/{Input_es_DCaVqQH5.js → Input_es_DaDvQ8Xp.js} +2 -2
  21. package/dist/{Label_cjs_CyPU9hqO.js → Label_cjs_eckLVQqh.js} +1 -1
  22. package/dist/{Label_es_qnCgQX52.js → Label_es_DuDL0-3C.js} +1 -1
  23. package/dist/{Link_cjs_qKXVfU8e.js → Link_cjs_DqNtNI23.js} +2 -2
  24. package/dist/{Link_es_P2b6ya7P.js → Link_es_Bt-Bhy3t.js} +2 -2
  25. package/dist/{Loader_cjs_B3j9ATrq.js → Loader_cjs_CP1xKwb-.js} +2 -2
  26. package/dist/{Loader_es_wjTqawH6.js → Loader_es_Csp5tr40.js} +2 -2
  27. package/dist/{Scrollbar_cjs_Cp-7v2Mt.js → Scrollbar_cjs_DHe1EK_B.js} +2 -2
  28. package/dist/{Scrollbar_es_CcMgNvGi.js → Scrollbar_es_CKTh3pew.js} +2 -2
  29. package/dist/{SelectContainer_cjs_CnhODaJP.js → SelectContainer_cjs_CD-J8jSe.js} +6 -6
  30. package/dist/{SelectContainer_es_CcYDHcBP.js → SelectContainer_es_Bxt5C3nI.js} +6 -6
  31. package/dist/cjs/components/Accordion.js +3 -3
  32. package/dist/cjs/components/Avatar.js +4 -4
  33. package/dist/cjs/components/AvatarStack.js +5 -5
  34. package/dist/cjs/components/Badge.js +2 -2
  35. package/dist/cjs/components/Breadcrumbs.js +7 -7
  36. package/dist/cjs/components/Button.js +4 -4
  37. package/dist/cjs/components/Cell.js +5 -5
  38. package/dist/cjs/components/Checkbox.js +2 -2
  39. package/dist/cjs/components/Checkmark.js +2 -2
  40. package/dist/cjs/components/Chips.js +3 -3
  41. package/dist/cjs/components/Choice.js +3 -3
  42. package/dist/cjs/components/Code.js +2 -2
  43. package/dist/cjs/components/CookiesWarning.js +6 -6
  44. package/dist/cjs/components/Dadata.js +3 -3
  45. package/dist/cjs/components/DatePeriod.js +13 -13
  46. package/dist/cjs/components/DatePicker.js +7 -7
  47. package/dist/cjs/components/Divider.js +1 -1
  48. package/dist/cjs/components/Dot.js +2 -2
  49. package/dist/cjs/components/Drawer.js +5 -5
  50. package/dist/cjs/components/Dropdown.js +4 -4
  51. package/dist/cjs/components/Flex.js +5 -5
  52. package/dist/cjs/components/Grid.js +7 -7
  53. package/dist/cjs/components/Group.js +1 -1
  54. package/dist/cjs/components/HTMLContent.js +2 -2
  55. package/dist/cjs/components/HeroTitle.js +4 -4
  56. package/dist/cjs/components/Icon.js +2 -2
  57. package/dist/cjs/components/Image.js +1 -1
  58. package/dist/cjs/components/Input.js +1 -1
  59. package/dist/cjs/components/InputNumber.js +6 -6
  60. package/dist/cjs/components/InputPassword.js +4 -4
  61. package/dist/cjs/components/Label.js +3 -3
  62. package/dist/cjs/components/Link.js +1 -1
  63. package/dist/cjs/components/List.js +5 -5
  64. package/dist/cjs/components/Loader.js +1 -1
  65. package/dist/cjs/components/Logo.js +3 -3
  66. package/dist/cjs/components/MenuItem.js +2 -2
  67. package/dist/cjs/components/Modal.js +7 -36
  68. package/dist/cjs/components/ModalSheetBottom.js +4 -4
  69. package/dist/cjs/components/Notification.js +6 -6
  70. package/dist/cjs/components/Pagination.js +4 -4
  71. package/dist/cjs/components/Radio.js +2 -2
  72. package/dist/cjs/components/RangeSlider.js +2 -2
  73. package/dist/cjs/components/Response.js +8 -15
  74. package/dist/cjs/components/SVGContent.js +2 -2
  75. package/dist/cjs/components/ScrollOnDrag.js +2 -2
  76. package/dist/cjs/components/ScrollToView.js +2 -2
  77. package/dist/cjs/components/Scrollbar.js +1 -1
  78. package/dist/cjs/components/Search.js +7 -7
  79. package/dist/cjs/components/Segmented.js +11 -11
  80. package/dist/cjs/components/Select.js +6 -6
  81. package/dist/cjs/components/Swiper.js +5 -5
  82. package/dist/cjs/components/Switch.js +4 -4
  83. package/dist/cjs/components/Tab.js +3 -3
  84. package/dist/cjs/components/Textarea.js +2 -2
  85. package/dist/cjs/components/Tile.js +5 -5
  86. package/dist/cjs/components/Title.js +2 -2
  87. package/dist/cjs/components/Tooltip.js +2 -2
  88. package/dist/cjs/components/Video.js +2 -2
  89. package/dist/cjs/components/Warning.js +4 -4
  90. package/dist/components/Accordion.js +3 -3
  91. package/dist/components/Avatar.js +4 -4
  92. package/dist/components/AvatarStack.js +5 -5
  93. package/dist/components/Badge.js +2 -2
  94. package/dist/components/Breadcrumbs.js +7 -7
  95. package/dist/components/Button.js +4 -4
  96. package/dist/components/Cell.js +5 -5
  97. package/dist/components/Checkbox.js +2 -2
  98. package/dist/components/Checkmark.js +2 -2
  99. package/dist/components/Chips.js +3 -3
  100. package/dist/components/Choice.js +3 -3
  101. package/dist/components/Code.js +2 -2
  102. package/dist/components/CookiesWarning.js +6 -6
  103. package/dist/components/Dadata.js +3 -3
  104. package/dist/components/DatePeriod.js +13 -13
  105. package/dist/components/DatePicker.js +7 -7
  106. package/dist/components/Divider.js +1 -1
  107. package/dist/components/Dot.js +2 -2
  108. package/dist/components/Drawer.js +5 -5
  109. package/dist/components/Dropdown.js +4 -4
  110. package/dist/components/Flex.js +5 -5
  111. package/dist/components/Grid.js +7 -7
  112. package/dist/components/Group.js +1 -1
  113. package/dist/components/HTMLContent.js +2 -2
  114. package/dist/components/HeroTitle.js +4 -4
  115. package/dist/components/Icon.js +2 -2
  116. package/dist/components/Image.js +1 -1
  117. package/dist/components/Input.js +1 -1
  118. package/dist/components/InputNumber.js +6 -6
  119. package/dist/components/InputPassword.js +4 -4
  120. package/dist/components/Label.js +3 -3
  121. package/dist/components/Link.js +1 -1
  122. package/dist/components/List.js +5 -5
  123. package/dist/components/Loader.js +1 -1
  124. package/dist/components/Logo.js +3 -3
  125. package/dist/components/MenuItem.js +2 -2
  126. package/dist/components/Modal.js +7 -36
  127. package/dist/components/ModalSheetBottom.js +4 -4
  128. package/dist/components/Notification.js +6 -6
  129. package/dist/components/Pagination.js +4 -4
  130. package/dist/components/Radio.js +2 -2
  131. package/dist/components/RangeSlider.js +2 -2
  132. package/dist/components/Response.js +8 -15
  133. package/dist/components/SVGContent.js +2 -2
  134. package/dist/components/ScrollOnDrag.js +2 -2
  135. package/dist/components/ScrollToView.js +2 -2
  136. package/dist/components/Scrollbar.js +1 -1
  137. package/dist/components/Search.js +7 -7
  138. package/dist/components/Segmented.js +11 -11
  139. package/dist/components/Select.js +6 -6
  140. package/dist/components/Swiper.js +5 -5
  141. package/dist/components/Switch.js +4 -4
  142. package/dist/components/Tab.js +3 -3
  143. package/dist/components/Textarea.js +2 -2
  144. package/dist/components/Tile.js +5 -5
  145. package/dist/components/Title.js +2 -2
  146. package/dist/components/Tooltip.js +2 -2
  147. package/dist/components/Video.js +2 -2
  148. package/dist/components/Warning.js +4 -4
  149. package/dist/css/styles/bundles.css +3 -3
  150. package/dist/types/components/Avatar/Avatar.interface.d.ts +2 -0
  151. package/dist/types/components/Badge/Badge.interface.d.ts +2 -0
  152. package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +4 -0
  153. package/dist/types/components/Cell/Cell.interface.d.ts +2 -0
  154. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +3 -1
  155. package/dist/types/components/Checkmark/Checkmark.interface.d.ts +2 -0
  156. package/dist/types/components/Code/Code.interface.d.ts +2 -0
  157. package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +2 -0
  158. package/dist/types/components/Dadata/Dadata.interface.d.ts +2 -0
  159. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +2 -0
  160. package/dist/types/components/DatePicker/DatePicker.interface.d.ts +2 -0
  161. package/dist/types/components/Divider/Divider.interface.d.ts +2 -0
  162. package/dist/types/components/Dot/Dot.interface.d.ts +2 -0
  163. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +4 -0
  164. package/dist/types/components/Flex/Flex.interface.d.ts +4 -0
  165. package/dist/types/components/Grid/Grid.interface.d.ts +3 -0
  166. package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -0
  167. package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -0
  168. package/dist/types/components/Image/Image.interface.d.ts +2 -0
  169. package/dist/types/components/Input/Input.interface.d.ts +2 -1
  170. package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +2 -0
  171. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +2 -0
  172. package/dist/types/components/Link/Link.interface.d.ts +2 -0
  173. package/dist/types/components/List/List.interface.d.ts +4 -0
  174. package/dist/types/components/Loader/Loader.interface.d.ts +3 -0
  175. package/dist/types/components/Logo/Logo.interface.d.ts +2 -0
  176. package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +2 -1
  177. package/dist/types/components/Notification/Notification.interface.d.ts +3 -0
  178. package/dist/types/components/Pagination/Pagination.interface.d.ts +2 -0
  179. package/dist/types/components/Radio/Radio.interface.d.ts +2 -0
  180. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +2 -0
  181. package/dist/types/components/Response/Response.interface.d.ts +2 -3
  182. package/dist/types/components/SVGContent/SVGContent.interface.d.ts +2 -0
  183. package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +2 -0
  184. package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +2 -0
  185. package/dist/types/components/Search/Search.interface.d.ts +3 -0
  186. package/dist/types/components/Segmented/Segmented.interface.d.ts +2 -0
  187. package/dist/types/components/Select/Select.interface.d.ts +3 -1
  188. package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -0
  189. package/dist/types/components/Switch/Switch.interface.d.ts +2 -0
  190. package/dist/types/components/Tab/Tab.interface.d.ts +1 -1
  191. package/dist/types/components/Textarea/Textarea.interface.d.ts +2 -0
  192. package/dist/types/components/Video/Video.interface.d.ts +2 -0
  193. package/dist/types/components/Warning/Warning.appearance.d.ts +58 -58
  194. package/dist/types/components/Warning/Warning.interface.d.ts +3 -1
  195. package/package.json +2 -2
@@ -4,7 +4,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { a as LinkWrapper } from '../Link_es_P2b6ya7P.js';
7
+ import { a as LinkWrapper } from '../Link_es_Bt-Bhy3t.js';
8
8
  import 'react';
9
9
  import '@itcase/common';
10
10
  import '../context/UrlAssetPrefix.js';
@@ -28,12 +28,12 @@ const logoConfig = {
28
28
  },
29
29
  };
30
30
  const Logo = urlWithAssetPrefix(function Logo(props) {
31
- const { className, appearance, href, link } = props;
31
+ const { appearance, className, dataTestId, dataTour, href, link } = props;
32
32
  const appearanceConfig = useAppearanceConfig(appearance, logoConfig);
33
33
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
34
34
  const { alignClass, alignDirectionClass, alignItemsClass, src, title, alt, sizeClass, widthClass, } = propsGenerator;
35
35
  const { styles: logo } = useStyles(props);
36
- return (jsx("div", { className: clsx(className, 'logo', alignClass && `align_${alignClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignItemsClass && `logo_align-items_${alignItemsClass}`, sizeClass && `logo_size_${sizeClass}`, widthClass && `width_${widthClass}`), style: logo, children: link || href ? (jsx(LinkWrapper, { className: "logo__link", href: link || href, children: jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title }) })) : (jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title })) }));
36
+ return (jsx("div", { className: clsx(className, 'logo', alignClass && `align_${alignClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignItemsClass && `logo_align-items_${alignItemsClass}`, sizeClass && `logo_size_${sizeClass}`, widthClass && `width_${widthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: logo, children: link || href ? (jsx(LinkWrapper, { className: "logo__link", href: link || href, children: jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title }) })) : (jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title })) }));
37
37
  });
38
38
 
39
39
  export { Logo, logoConfig };
@@ -4,8 +4,8 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon, T as Tooltip } from '../Icon_es_BstDGBF3.js';
8
- import { L as Link } from '../Link_es_P2b6ya7P.js';
7
+ import { I as Icon, T as Tooltip } from '../Icon_es_Banbw98_.js';
8
+ import { L as Link } from '../Link_es_Bt-Bhy3t.js';
9
9
  import { T as Text } from '../Text_es_DaYcLe4H.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
@@ -6,9 +6,9 @@ import { icons24, icons32, icons40 } from '@itcase/icons/default';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { b as Title, I as Icon } from '../Icon_es_BstDGBF3.js';
9
+ import { b as Title, I as Icon } from '../Icon_es_Banbw98_.js';
10
10
  import { O as Overlay } from '../Overlay_es_dNz3djDB.js';
11
- import { L as Loader } from '../Loader_es_wjTqawH6.js';
11
+ import { L as Loader } from '../Loader_es_Csp5tr40.js';
12
12
  import 'lodash/camelCase';
13
13
  import 'lodash/castArray';
14
14
  import 'lodash/upperFirst';
@@ -25,7 +25,7 @@ import 'lodash/maxBy';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
- import '../Link_es_P2b6ya7P.js';
28
+ import '../Link_es_Bt-Bhy3t.js';
29
29
  import '../Text_es_DaYcLe4H.js';
30
30
 
31
31
  const modalAppearanceShape = {
@@ -140,19 +140,12 @@ const Modal = React.forwardRef(function Modal(props, ref) {
140
140
  const [modalElement, setModalElement] = useState(null);
141
141
  const [isOpen, setIsOpen] = useState(initialIsOpen);
142
142
  const modalContentRef = useRef(null);
143
- // const modalOverlayRef = useRef(null)
144
143
  const addModalProps = useCallback((element) => {
145
- // Change class need in "useEffect"
146
144
  if (isOpen) {
147
- // Show modal
148
145
  element.classList.add('modal_state_visible');
149
- // Scroll to opened modal
150
146
  if (isScrollOnOpen) {
151
- // modalContentRef.current.style.top = `${window.visualViewport.pageTop}px`
152
147
  element.scrollIntoView({ behavior: 'smooth', block: 'center' });
153
148
  }
154
- // "setTimeout" in this implementation is needs for set focus on modal
155
- // after "onMouseDown" event on button
156
149
  if (isSetFocusOnOpen) {
157
150
  setTimeout(() => {
158
151
  if (modalContentRef.current) {
@@ -162,46 +155,27 @@ const Modal = React.forwardRef(function Modal(props, ref) {
162
155
  }
163
156
  }
164
157
  else if (!element.children.length) {
165
- // Hide modal if has no children
166
158
  element.classList.remove('modal_state_visible');
167
159
  }
168
160
  }, [isOpen, isScrollOnOpen, isSetFocusOnOpen]);
169
- // Show modal with children content
170
161
  const openModal = useCallback(() => {
171
162
  startTransition(() => {
172
163
  setIsOpen(true);
173
164
  });
174
- // Callback
175
165
  if (typeof onOpenModal === 'function') {
176
166
  onOpenModal();
177
167
  }
178
- /* SHOW TARGET POPUP ABOVE OTHERS POPUPS F TARGET ALREADY OPENED
179
- // If current modal is already opened
180
- // Move content to end of modal root container. For order in DOM.
181
- const modalContentElement = modalContentRef.current
182
- if (modalContentElement) {
183
- modalContentElement.parentNode.appendChild(modalContentElement)
184
- }
185
- // Also move overlay to end of modal root container after container
186
- const modalOverlayElement = modalOverlayRef.current
187
- if (modalOverlayElement) {
188
- modalOverlayElement.parentNode.appendChild(modalOverlayElement)
189
- }
190
- */
191
168
  }, [onOpenModal]);
192
- // Hide modal and unmount children content
193
169
  const closeModal = useCallback((event) => {
194
170
  if (event) {
195
- // prettier-ignore
196
- const hasRelatedTarget = (event.relatedTarget &&
171
+ const hasRelatedTarget = event.relatedTarget &&
197
172
  modalElement &&
198
- modalElement.contains(event.relatedTarget));
173
+ modalElement.contains(event.relatedTarget);
199
174
  if (hasRelatedTarget) {
200
175
  return event;
201
176
  }
202
177
  }
203
178
  setIsOpen(false);
204
- // Callback
205
179
  onCloseModal && onCloseModal();
206
180
  }, [modalElement, onCloseModal]);
207
181
  const handleClickOverlay = useCallback(() => {
@@ -222,6 +196,7 @@ const Modal = React.forwardRef(function Modal(props, ref) {
222
196
  classNameModal = clsx(className, 'no-print');
223
197
  }
224
198
  const element = getOrCreateModalElement(modalIdQuerySelector, classNameModal);
199
+ // eslint-disable-next-line react-hooks/set-state-in-effect
225
200
  setModalElement(element);
226
201
  if (element) {
227
202
  addModalProps(element);
@@ -247,18 +222,14 @@ const Modal = React.forwardRef(function Modal(props, ref) {
247
222
  window.removeEventListener('click', handleClickOutside);
248
223
  };
249
224
  }, [onCloseModal, isCloseOnBlur, isOpen, modalElement]);
250
- // Save ref things
251
225
  useImperativeHandle(ref, () => ({ modalElement, openModal, closeModal, isOpen }), [isOpen, openModal, closeModal, modalElement]);
252
226
  const appearanceConfig = useAppearanceConfig(appearance, modalConfig, isDisabled);
253
227
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
254
228
  const { fillClass, titleTextColor, titleTextColorHover, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWidth, titleTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, overlayFill, overlayOpacity, shapeClass, shapeStrengthClass, sizeClass, closeIconAppearance, closeIconAppearanceSize, closeIconFillSize, closeIconImage, closeIconShape, closeIconSize, } = propsGenerator;
255
229
  // @ts-expect-error
256
230
  const { styles: modalStyles } = useStyles(props);
257
- // Use a portal to render the children into the element
258
231
  return (modalElement &&
259
- ReactDOM.createPortal(
260
- // Any valid React child: JSX, strings, arrays, etc.
261
- isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-testid": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
232
+ ReactDOM.createPortal(isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-testid": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
262
233
  // ref={modalOverlayRef}
263
234
  fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: handleClickOverlay })] })) : null,
264
235
  // A DOM element
@@ -5,7 +5,7 @@ import { Sheet } from 'react-modal-sheet';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { b as Title } from '../Icon_es_BstDGBF3.js';
8
+ import { b as Title } from '../Icon_es_Banbw98_.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import 'lodash/upperFirst';
@@ -22,7 +22,7 @@ import 'lodash/maxBy';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
- import '../Link_es_P2b6ya7P.js';
25
+ import '../Link_es_Bt-Bhy3t.js';
26
26
  import '../Text_es_DaYcLe4H.js';
27
27
 
28
28
  const modalSheetBottomAppearanceSize = {
@@ -43,7 +43,7 @@ const modalSheetBottomAppearance = {
43
43
  const modalSheetBottomConfig = {
44
44
  appearance: modalSheetBottomAppearance};
45
45
  const ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
46
- const { appearance, initialIsOpen, title, closeButton, isDisabled, onCloseModalSheetBottom, onOpenModalSheetBottom, children, } = props;
46
+ const { appearance, dataTestId, dataTour, initialIsOpen, title, closeButton, isDisabled, onCloseModalSheetBottom, onOpenModalSheetBottom, children, } = props;
47
47
  const [isOpen, setIsOpen] = useState(initialIsOpen);
48
48
  const openModalSheetBottom = useCallback(() => {
49
49
  setIsOpen(true);
@@ -64,7 +64,7 @@ const ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
64
64
  const { titleTextColor, titleTextColorHover, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWidth, titleTextWrap, zeroPadding, } = propsGenerator;
65
65
  // @ts-expect-error
66
66
  const { styles } = useStyles(props);
67
- return (jsxs(Sheet, { className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom, ...props, children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [jsx(Sheet.Header, { className: "modal-sheet-bottom__header", children: closeButton && (jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModalSheetBottom, children: closeButton })) }), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: jsxs("div", { className: clsx('modal-sheet-bottom__content-wrapper', zeroPadding && 'modal-sheet-bottom__content-reset-padding'), children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), children] }) })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModalSheetBottom })] }));
67
+ return (jsxs(Sheet, { className: "modal-sheet-bottom", "data-testid": dataTestId, "data-tour": dataTour, isOpen: isOpen, onClose: closeModalSheetBottom, ...props, children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [jsx(Sheet.Header, { className: "modal-sheet-bottom__header", children: closeButton && (jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModalSheetBottom, children: closeButton })) }), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: jsxs("div", { className: clsx('modal-sheet-bottom__content-wrapper', zeroPadding && 'modal-sheet-bottom__content-reset-padding'), children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), children] }) })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModalSheetBottom })] }));
68
68
  });
69
69
 
70
70
  export { ModalSheetBottom, modalSheetBottomAppearance };
@@ -1,11 +1,11 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { L as Loader } from '../Loader_es_wjTqawH6.js';
3
+ import { L as Loader } from '../Loader_es_Csp5tr40.js';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Button } from '../Button_es_y6hlih24.js';
8
- import { I as Icon } from '../Icon_es_BstDGBF3.js';
7
+ import { B as Button } from '../Button_es_DH8hqqdN.js';
8
+ import { I as Icon } from '../Icon_es_Banbw98_.js';
9
9
  import { T as Text } from '../Text_es_DaYcLe4H.js';
10
10
  import { icons24 } from '@itcase/icons/default';
11
11
  import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
@@ -22,7 +22,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
22
22
  import 'react-responsive';
23
23
  import '../utils/setViewportProperty.js';
24
24
  import 'lodash/maxBy';
25
- import '../Link_es_P2b6ya7P.js';
25
+ import '../Link_es_Bt-Bhy3t.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
28
28
  import '../context/UrlAssetPrefix.js';
@@ -190,8 +190,8 @@ function Notification(props) {
190
190
  function NotificationWrapper(props) {
191
191
  const notifications = useNotifications();
192
192
  const { hideNotifications } = useNotificationsAPI();
193
- const { className } = props;
194
- return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map((notification) => (jsx(Notification, { id: notification.id, appearance: notification.appearance, type: notification.type, title: notification.title, status: notification.status, text: notification.text, buttonLabel: notification.buttonLabel, after: notification.after, closeIcon: notification.closeIcon, closeIconSrc: notification.closeIconSrc, isLoading: notification.isLoading, onClickButton: notification.onClickButton, onClickClose: hideNotifications }, notification.id))) }) }));
193
+ const { className, dataTestId, dataTour } = props;
194
+ return (jsx("div", { className: clsx('notification', className), "data-testid": dataTestId, "data-tour": dataTour, children: jsx("div", { className: "notification__wrapper", children: notifications.map((notification) => (jsx(Notification, { id: notification.id, appearance: notification.appearance, type: notification.type, title: notification.title, status: notification.status, text: notification.text, buttonLabel: notification.buttonLabel, after: notification.after, closeIcon: notification.closeIcon, closeIconSrc: notification.closeIconSrc, isLoading: notification.isLoading, onClickButton: notification.onClickButton, onClickClose: hideNotifications }, notification.id))) }) }));
195
195
  }
196
196
 
197
197
  export { Notification, NotificationWrapper, notificationAppearance, notificationConfig };
@@ -6,8 +6,8 @@ import ReactPaginate from 'react-paginate';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_B36TJ2oI.js';
10
- import { I as Icon } from '../Icon_es_BstDGBF3.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_DgaoM2SE.js';
10
+ import { I as Icon } from '../Icon_es_Banbw98_.js';
11
11
  import { T as Text } from '../Text_es_DaYcLe4H.js';
12
12
  import { icons14, icons24, icons16 } from '@itcase/icons/default';
13
13
  import 'lodash/camelCase';
@@ -23,11 +23,11 @@ import '../utils/setViewportProperty.js';
23
23
  import '../hooks.js';
24
24
  import '../hooks/useStyles/styleAttributes.js';
25
25
  import 'lodash/maxBy';
26
- import '../Divider_es_DNJg0mQR.js';
26
+ import '../Divider_es_BlOJ77zx.js';
27
27
  import 'react-inlinesvg';
28
28
  import '../hoc/urlWithAssetPrefix.js';
29
29
  import '../context/UrlAssetPrefix.js';
30
- import '../Link_es_P2b6ya7P.js';
30
+ import '../Link_es_Bt-Bhy3t.js';
31
31
 
32
32
  const paginationAppearanceAccent = {
33
33
  accent: {
@@ -178,7 +178,7 @@ const radioConfig = {
178
178
  },
179
179
  };
180
180
  function Radio(props) {
181
- const { id, appearance, className, label, desc, checked, tag: Tag = 'label', value, isActive, isDisabled, isSkeleton, onChange, } = props;
181
+ const { id, appearance, className, dataTestId, dataTour, label, desc, checked, tag: Tag = 'label', value, isActive, isDisabled, isSkeleton, onChange, } = props;
182
182
  const appearanceConfig = useAppearanceConfig(appearance, radioConfig, isDisabled);
183
183
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
184
184
  const { fillCheckmarkClass, fillClass, fillHoverClass, fillRadioActiveClass, fillRadioActiveHoverClass, fillRadioClass, fillRadioHoverClass, labelTextColor, labelTextSize, labelTextWeight, descTextColor, descTextSize, descTextWeight, borderRadioColorActiveClass, borderRadioColorActiveHoverClass, borderRadioColorClass, borderRadioColorHoverClass, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
@@ -195,7 +195,7 @@ function Radio(props) {
195
195
  ? borderRadioColorHoverClass &&
196
196
  `radio_border-color_hover_${borderRadioColorHoverClass}`
197
197
  : borderRadioColorActiveHoverClass &&
198
- `radio_border-color_active_hover_${borderRadioColorActiveHoverClass}`), htmlFor: id, children: [jsxs("div", { className: clsx('radio__item'), children: [jsx("input", { id: String(id), className: "radio__input", type: "radio", checked: checked, disabled: isDisabled && 'disabled', value: value, onChange: onChange }), jsx("div", { className: clsx('radio__state', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: "\u00A0" }), jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && `fill_${fillCheckmarkClass}`), children: "\u00A0" })] }), label && (jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
198
+ `radio_border-color_active_hover_${borderRadioColorActiveHoverClass}`), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: id, children: [jsxs("div", { className: clsx('radio__item'), children: [jsx("input", { id: String(id), className: "radio__input", type: "radio", checked: checked, disabled: isDisabled && 'disabled', value: value, onChange: onChange }), jsx("div", { className: clsx('radio__state', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: "\u00A0" }), jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && `fill_${fillCheckmarkClass}`), children: "\u00A0" })] }), label && (jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
199
199
  }
200
200
 
201
201
  export { Radio, radioAppearance, radioConfig };
@@ -19,7 +19,7 @@ import '../hooks/useStyles/styleAttributes.js';
19
19
  import 'lodash/maxBy';
20
20
 
21
21
  function RangeSlider(props) {
22
- const { className, min, max, disabled, pushable, range, step, value, vertical, before, after, set, onChangeSlider, children, } = props;
22
+ const { className, dataTestId, dataTour, min, max, disabled, pushable, range, step, value, vertical, before, after, set, onChangeSlider, children, } = props;
23
23
  const propsGenerator = useDevicePropsGenerator(props);
24
24
  const { fillClass, fillHandleClass, fillHandleDraggingClass, fillHandleDraggingHoverClass, fillHandleHoverClass, fillRailClass, fillTrackClass, shapeClass, widthClass, } = propsGenerator;
25
25
  // @ts-expect-error
@@ -27,7 +27,7 @@ function RangeSlider(props) {
27
27
  return (jsxs("div", { className: clsx(className, 'range-slider', set && `range-slider_set_${set}`, fillClass && `fill_${fillClass}`, fillTrackClass && `range-slider-track-fill_${fillTrackClass}`, fillRailClass && `range-slider-rail-fill_${fillRailClass}`, fillHandleClass && `range-slider-handle-fill_${fillHandleClass}`, fillHandleHoverClass &&
28
28
  `range-slider-handle-fill-hover_${fillHandleHoverClass}`, fillHandleDraggingClass &&
29
29
  `range-slider-handle-dragging-fill_${fillHandleDraggingClass}`, fillHandleDraggingHoverClass &&
30
- `range-slider-handle-dragging-fill-hover_${fillHandleDraggingHoverClass}`, shapeClass && `range-slider_shape_${shapeClass}`, widthClass && `width_${widthClass}`), style: rangeSliderStyles, children: [before && jsx("div", { className: "range-slider__before", children: before }), jsx(Slider, { className: "range-slider__wrapper", min: min, max: max, disabled: disabled, pushable: pushable, range: range, step: step, value: value, vertical: vertical, onChange: onChangeSlider }), children, after && jsx("div", { className: "range-slider__after", children: after })] }));
30
+ `range-slider-handle-dragging-fill-hover_${fillHandleDraggingHoverClass}`, shapeClass && `range-slider_shape_${shapeClass}`, widthClass && `width_${widthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: rangeSliderStyles, children: [before && jsx("div", { className: "range-slider__before", children: before }), jsx(Slider, { className: "range-slider__wrapper", min: min, max: max, disabled: disabled, pushable: pushable, range: range, step: step, value: value, vertical: vertical, onChange: onChangeSlider }), children, after && jsx("div", { className: "range-slider__after", children: after })] }));
31
31
  }
32
32
 
33
33
  export { RangeSlider };
@@ -6,8 +6,8 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button_es_y6hlih24.js';
10
- import { G as Group } from '../Group_es_C69f2Dom.js';
9
+ import { B as Button } from '../Button_es_DH8hqqdN.js';
10
+ import { G as Group } from '../Group_es_Dml1c8Cz.js';
11
11
  import { T as Text } from '../Text_es_DaYcLe4H.js';
12
12
  import '@itcase/common';
13
13
  import '../context/UrlAssetPrefix.js';
@@ -23,10 +23,10 @@ import '../utils/setViewportProperty.js';
23
23
  import '../hooks.js';
24
24
  import '../hooks/useStyles/styleAttributes.js';
25
25
  import 'lodash/maxBy';
26
- import '../Icon_es_BstDGBF3.js';
26
+ import '../Icon_es_Banbw98_.js';
27
27
  import 'react-inlinesvg';
28
- import '../Link_es_P2b6ya7P.js';
29
- import '../Loader_es_wjTqawH6.js';
28
+ import '../Link_es_Bt-Bhy3t.js';
29
+ import '../Loader_es_Csp5tr40.js';
30
30
 
31
31
  const responseAppearanceConfirm = {
32
32
  confirm: {
@@ -213,10 +213,10 @@ const responseConfig = {
213
213
  },
214
214
  };
215
215
  const Response = urlWithAssetPrefix(function Response(props) {
216
- const { appearance, className, width, height, title, desc, bottomButton, primaryButton, secondaryButton, before, after, isSkeleton, onClickSecondaryButton, } = props;
216
+ const { appearance, className, dataTestId, dataTour, width, height, title, desc, bottomButton, primaryButton, secondaryButton, before, after, isSkeleton, onClickSecondaryButton, } = props;
217
217
  const appearanceConfig = useAppearanceConfig(appearance, responseConfig);
218
218
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
219
- const { dataTestId, dataTour, fillClass, fillHoverClass, titleTextColor, titleTextSize, titleTextWeight, descTextColor, descTextSize, descTextWeight, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, heightClass, imageSrc, primaryButtonAfter, primaryButtonAppearance, primaryButtonBefore, primaryButtonFill, primaryButtonFillHover, primaryButtonLabel, primaryButtonLabelTextColor, primaryButtonLabelTextSize, primaryButtonShape, primaryButtonSize, primaryButtonWidth, secondaryButtonAfter, secondaryButtonAppearance, secondaryButtonBefore, secondaryButtonFill, secondaryButtonFillHover, secondaryButtonLabel, secondaryButtonLabelTextColor, secondaryButtonLabelTextSize, secondaryButtonShape, secondaryButtonSize, secondaryButtonWidth, shapeClass, shapeStrengthClass, svgFillClass, SvgImage, svgPathFillClass, svgSrc, widthClass, onClickPrimaryButton, } = propsGenerator;
219
+ const { fillClass, fillHoverClass, titleTextColor, titleTextSize, titleTextWeight, descTextColor, descTextSize, descTextWeight, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, heightClass, imageSrc, primaryButtonAfter, primaryButtonAppearance, primaryButtonBefore, primaryButtonFill, primaryButtonFillHover, primaryButtonLabel, primaryButtonLabelTextColor, primaryButtonLabelTextSize, primaryButtonShape, primaryButtonSize, primaryButtonWidth, secondaryButtonAfter, secondaryButtonAppearance, secondaryButtonBefore, secondaryButtonFill, secondaryButtonFillHover, secondaryButtonLabel, secondaryButtonLabelTextColor, secondaryButtonLabelTextSize, secondaryButtonShape, secondaryButtonSize, secondaryButtonWidth, shapeClass, shapeStrengthClass, svgFillClass, SvgImage, svgPathFillClass, svgSrc, widthClass, onClickPrimaryButton, } = propsGenerator;
220
220
  // TODO: use Icon instead?
221
221
  const ImageComponent = useMemo(() => {
222
222
  const src = imageSrc || svgSrc;
@@ -232,13 +232,6 @@ const Response = urlWithAssetPrefix(function Response(props) {
232
232
  return jsx(Image, { ...sizes });
233
233
  }
234
234
  if (src) {
235
- // if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
236
- // if (svgFillClass) {
237
- // return <SVG src={src} preProcessor={removeFillStroke} />
238
- // } else {
239
- // return <SVG src={src} />
240
- // }
241
- // }
242
235
  return jsx("img", { src: src });
243
236
  }
244
237
  return null;
@@ -249,7 +242,7 @@ const Response = urlWithAssetPrefix(function Response(props) {
249
242
  primaryButton ||
250
243
  secondaryButtonLabel ||
251
244
  secondaryButton ||
252
- appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
245
+ appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { appearance: primaryButtonAppearance, className: "response__button-item", width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { appearance: secondaryButtonAppearance, className: "response__button-item", width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
253
246
  });
254
247
 
255
248
  const RESPONSE_MESSAGES = {
@@ -21,12 +21,12 @@ import '../hooks/useStyles/styleAttributes.js';
21
21
  import 'lodash/maxBy';
22
22
 
23
23
  const SVGContent = urlWithAssetPrefix(function SVGContent(props) {
24
- const { className, src, SvgImage } = props;
24
+ const { className, dataTestId, dataTour, src, SvgImage } = props;
25
25
  const propsGenerator = useDevicePropsGenerator(props);
26
26
  const { svgFillClass, svgFillHoverClass } = propsGenerator;
27
27
  // @ts-expect-error
28
28
  const { styles: svgContentStyles } = useStyles(props);
29
- return (jsxs("div", { className: clsx(className, 'svg-content', svgFillClass && `svg_fill_${svgFillClass}`, svgFillHoverClass && `svg_fill_hover_${svgFillHoverClass}`), style: svgContentStyles, children: [src && jsx(SVG, { src: src }), SvgImage && jsx(SvgImage, {})] }));
29
+ return (jsxs("div", { className: clsx(className, 'svg-content', svgFillClass && `svg_fill_${svgFillClass}`, svgFillHoverClass && `svg_fill_hover_${svgFillHoverClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: svgContentStyles, children: [src && jsx(SVG, { src: src }), SvgImage && jsx(SvgImage, {})] }));
30
30
  });
31
31
 
32
32
  export { SVGContent };
@@ -20,7 +20,7 @@ import '../hooks/useStyles/styleAttributes.js';
20
20
  import 'lodash/maxBy';
21
21
 
22
22
  function ScrollOnDrag(props) {
23
- const { className, scrollContainerProps, isScrollbar, children } = props;
23
+ const { className, dataTestId, dataTour, scrollContainerProps, isScrollbar, children, } = props;
24
24
  const propsGenerator = useDevicePropsGenerator(props);
25
25
  const { ref } = useScrollContainer();
26
26
  const { fillClass, fillHoverClass, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, heightClass, widthClass = 'fill', } = propsGenerator;
@@ -29,7 +29,7 @@ function ScrollOnDrag(props) {
29
29
  const ScrollOnDragWrapper = isScrollbar ? SimpleBar : React.Fragment;
30
30
  // fix to error 'Invalid prop `scrollableNodeProps` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.'
31
31
  const fixedProps = isScrollbar ? { scrollableNodeProps: { ref } } : {};
32
- return (jsx(ScrollOnDragWrapper, { ...fixedProps, children: jsx("div", { className: clsx('scroll-on-drag', className, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, widthClass && `width_${widthClass}`), style: styles, children: jsx(ScrollContainer, { className: clsx(!isScrollbar && 'scroll-on-drag__wrapper'), ref: ref, ...scrollContainerProps, style: scrollContainerStyles, children: children }) }) }));
32
+ return (jsx(ScrollOnDragWrapper, { ...fixedProps, children: jsx("div", { className: clsx('scroll-on-drag', className, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, widthClass && `width_${widthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: styles, children: jsx(ScrollContainer, { className: clsx(!isScrollbar && 'scroll-on-drag__wrapper'), ref: ref, ...scrollContainerProps, style: scrollContainerStyles, children: children }) }) }));
33
33
  }
34
34
 
35
35
  export { ScrollOnDrag };
@@ -19,13 +19,13 @@ import '../hooks/useStyles/styleAttributes.js';
19
19
  import 'lodash/maxBy';
20
20
 
21
21
  const ScrollToView = ScrollLink(function ScrollToView(props) {
22
- const { id, className, tag: Tag = 'div', children } = props;
22
+ const { id, className, dataTestId, dataTour, tag: Tag = 'div', children, } = props;
23
23
  const propsGenerator = useDevicePropsGenerator(props);
24
24
  const { directionClass, justifyContentClass, alignClass, alignDirectionClass, alignItemsClass, alignSelfClass, textColorActiveClass, textColorClass, textColorHoverClass, heightClass, widthClass, } = propsGenerator;
25
25
  const { styles: scrollToViewStyles } = useStyles(props);
26
26
  return (jsx(Tag, { id: id, className: clsx(className, 'scroll-to-view', alignItemsClass && `align-items_${alignItemsClass}`, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, textColorClass && `scroll-to-view_text-color_${textColorClass}`, textColorActiveClass &&
27
27
  `scroll-to-view_text-color_active_${textColorActiveClass}`, textColorHoverClass &&
28
- `scroll-to-view_text-color_hover_${textColorHoverClass}`, justifyContentClass && `justify-content_${justifyContentClass}`, directionClass && `direction_${directionClass}`, alignSelfClass && `align-self_${alignSelfClass}`), style: Object.assign({}, scrollToViewStyles, props.style), onClick: props.onClick, children: children }));
28
+ `scroll-to-view_text-color_hover_${textColorHoverClass}`, justifyContentClass && `justify-content_${justifyContentClass}`, directionClass && `direction_${directionClass}`, alignSelfClass && `align-self_${alignSelfClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, scrollToViewStyles, props.style), onClick: props.onClick, children: children }));
29
29
  });
30
30
 
31
31
  export { ScrollToView };
@@ -1,4 +1,4 @@
1
- export { S as Scrollbar } from '../Scrollbar_es_CcMgNvGi.js';
1
+ export { S as Scrollbar } from '../Scrollbar_es_CKTh3pew.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import 'react-scrollbars-custom';
@@ -5,9 +5,9 @@ import clsx from 'clsx';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { I as Icon } from '../Icon_es_BstDGBF3.js';
8
+ import { I as Icon } from '../Icon_es_Banbw98_.js';
9
9
  import { T as Text } from '../Text_es_DaYcLe4H.js';
10
- import { S as Scrollbar } from '../Scrollbar_es_CcMgNvGi.js';
10
+ import { S as Scrollbar } from '../Scrollbar_es_CKTh3pew.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
13
13
  import 'lodash/upperFirst';
@@ -24,7 +24,7 @@ import 'lodash/maxBy';
24
24
  import 'react-inlinesvg';
25
25
  import '../hoc/urlWithAssetPrefix.js';
26
26
  import '../context/UrlAssetPrefix.js';
27
- import '../Link_es_P2b6ya7P.js';
27
+ import '../Link_es_Bt-Bhy3t.js';
28
28
  import 'react-scrollbars-custom';
29
29
 
30
30
  const searchAppearanceDefault = {
@@ -207,7 +207,7 @@ const searchInputConfig = {
207
207
  },
208
208
  };
209
209
  const SearchInput = React.forwardRef(function SearchInput(props, ref) {
210
- const { dataTour, className, appearance, placeholder, value, before, after, isActive, isSkeleton, isDisabled, onChange, onClickClean, onFocus, onKeyDown, } = props;
210
+ const { appearance, className, dataTestId, dataTour, placeholder, value, before, after, isActive, isDisabled, isSkeleton, onClickClean, onChange, onFocus, onKeyDown, } = props;
211
211
  const onChangeSearchInput = useCallback((event) => {
212
212
  onChange && onChange(event.target.value);
213
213
  }, [onChange]);
@@ -222,7 +222,7 @@ const SearchInput = React.forwardRef(function SearchInput(props, ref) {
222
222
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
223
223
  const { size, fillClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, iconAfter, iconAfterFill, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeSize, iconBeforeSrc, iconClear, iconClearFill, iconClearSize, iconClearSrc, inputFillClass, inputTextColorClass, inputTextSizeClass, inputTextStyleClass, inputTextWeightClass, placeholderTextColor, placeholderTextSize, placeholderTextStyle, placeholderTextWeight, shapeClass, shapeStrengthClass, widthClass, } = propsGenerator;
224
224
  const { styles: searchInputStyles } = useStyles(props);
225
- return (jsxs("label", { dataTour: dataTour, className: clsx(className, 'search-input', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `width_${widthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, size && `search-input_size_${size}`, isSkeleton && `search-input_skeleton`), style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && `fill_${inputFillClass}`), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
225
+ return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `width_${widthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, size && `search-input_size_${size}`, isSkeleton && `search-input_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && `fill_${inputFillClass}`), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
226
226
  inputTextWeightClass ||
227
227
  inputTextColorClass ||
228
228
  inputTextStyleClass) &&
@@ -234,10 +234,10 @@ SearchInput.DEFAULT_REF_STATE = {
234
234
  };
235
235
 
236
236
  const SearchResult = React.forwardRef(function SearchResult(props) {
237
- const { className, scrollHeight, before, after, children } = props;
237
+ const { className, dataTestId, dataTour, scrollHeight, before, after, children, } = props;
238
238
  const propsGenerator = useDevicePropsGenerator(props);
239
239
  const { fillClass, shapeClass, shapeStrengthClass } = propsGenerator;
240
- return (jsx("div", { className: clsx(className, 'search-result', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`), children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? `${scrollHeight}px` : '300px', children: children })), after] }) }));
240
+ return (jsx("div", { className: clsx(className, 'search-result', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`), "data-testid": dataTestId, "data-tour": dataTour, children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? `${scrollHeight}px` : '300px', children: children })), after] }) }));
241
241
  });
242
242
 
243
243
  export { SearchInput, SearchResult, searchAppearance, searchInputConfig };
@@ -1,28 +1,28 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_BstDGBF3.js';
5
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
+ import { I as Icon } from '../Icon_es_Banbw98_.js';
7
7
  import { T as Text } from '../Text_es_DaYcLe4H.js';
8
- import 'react-inlinesvg';
9
- import '../hoc/urlWithAssetPrefix.js';
10
- import '@itcase/common';
11
- import '../context/UrlAssetPrefix.js';
12
- import '../hooks/useStyles/useStyles.js';
13
8
  import 'lodash/camelCase';
14
- import 'lodash/maxBy';
9
+ import 'lodash/castArray';
15
10
  import 'lodash/upperFirst';
16
11
  import '../context/Notifications.js';
17
12
  import 'uuid';
13
+ import '@itcase/common';
18
14
  import '../context/UIContext.js';
19
15
  import '../hooks/useMediaQueries/useMediaQueries.js';
20
16
  import 'react-responsive';
21
17
  import '../utils/setViewportProperty.js';
22
18
  import '../hooks.js';
23
19
  import '../hooks/useStyles/styleAttributes.js';
24
- import '../Link_es_P2b6ya7P.js';
25
- import 'lodash/castArray';
20
+ import 'react-inlinesvg';
21
+ import '../hoc/urlWithAssetPrefix.js';
22
+ import '../context/UrlAssetPrefix.js';
23
+ import '../hooks/useStyles/useStyles.js';
24
+ import 'lodash/maxBy';
25
+ import '../Link_es_Bt-Bhy3t.js';
26
26
 
27
27
  const segmentedAppearanceDefault = {
28
28
  defaultPrimary: {
@@ -219,7 +219,7 @@ const segmentedConfig = {
219
219
  },
220
220
  };
221
221
  const Segmented = (props) => {
222
- const { appearance, className, name, activeSegment = {}, segments, isDisabled, isSkeleton, setActiveSegment, onChange, } = props;
222
+ const { appearance, className, dataTestId, dataTour, name, activeSegment = {}, segments, isDisabled, isSkeleton, setActiveSegment, onChange, } = props;
223
223
  const controlRef = useRef(null);
224
224
  const segmentsRefs = useMemo(() => new Map(segments.map((item) => [item.value, createRef()])), [segments]);
225
225
  const onChangeValue = useCallback((item) => {
@@ -241,7 +241,7 @@ const Segmented = (props) => {
241
241
  const appearanceConfig = useAppearanceConfig(appearance, segmentedConfig, isDisabled);
242
242
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
243
243
  const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconFill, iconFillActive, iconFillDisabled, iconSize, indicatorFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
244
- return (jsx("div", { className: clsx(className, 'segmented', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `segmented_width_${widthClass}`, sizeClass && `segmented_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, isSkeleton && `segmented_skeleton`), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments?.map((item) => {
244
+ return (jsx("div", { className: clsx(className, 'segmented', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `segmented_width_${widthClass}`, sizeClass && `segmented_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, isSkeleton && `segmented_skeleton`), ref: controlRef, "data-testid": dataTestId, "data-tour": dataTour, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments?.map((item) => {
245
245
  const isActive = String(activeSegment?.value) === String(item.value);
246
246
  return (jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && `segmented__item_size_${sizeClass}`, isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
247
247
  isDisabled &&
@@ -1,4 +1,4 @@
1
- export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_CcYDHcBP.js';
1
+ export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_Bxt5C3nI.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -18,15 +18,15 @@ import 'react-responsive';
18
18
  import '../utils/setViewportProperty.js';
19
19
  import '../hooks.js';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Group_es_C69f2Dom.js';
21
+ import '../Group_es_Dml1c8Cz.js';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
24
  import '../Text_es_DaYcLe4H.js';
25
25
  import '@itcase/icons/default';
26
- import '../Icon_es_BstDGBF3.js';
26
+ import '../Icon_es_Banbw98_.js';
27
27
  import 'react-inlinesvg';
28
28
  import '../hoc/urlWithAssetPrefix.js';
29
29
  import '../context/UrlAssetPrefix.js';
30
- import '../Link_es_P2b6ya7P.js';
31
- import '../Loader_es_wjTqawH6.js';
32
- import '../Divider_es_DNJg0mQR.js';
30
+ import '../Link_es_Bt-Bhy3t.js';
31
+ import '../Loader_es_Csp5tr40.js';
32
+ import '../Divider_es_BlOJ77zx.js';