@itcase/ui 1.9.31 → 1.9.34
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.
- package/dist/{Avatar_cjs_DsgsCeRd.js → Avatar_cjs_MeHu04tK.js} +4 -4
- package/dist/{Avatar_es_DBNS3IWw.js → Avatar_es_uJ8vSNKC.js} +4 -4
- package/dist/{Button_cjs_DiaYeIs8.js → Button_cjs_BLuRWxbc.js} +3 -3
- package/dist/{Button_es_y6hlih24.js → Button_es_DH8hqqdN.js} +3 -3
- package/dist/{ChipsGroup_cjs_P0UlUnid.js → ChipsGroup_cjs_C-oThNwF.js} +1 -1
- package/dist/{ChipsGroup_es_BgECuDPT.js → ChipsGroup_es_BOaDqAo8.js} +1 -1
- package/dist/{DatePicker_cjs_CaD9pYTQ.js → DatePicker_cjs_CHxK5Rw8.js} +6 -6
- package/dist/{DatePicker_es_DqHRlhti.js → DatePicker_es_DHGzUpHd.js} +6 -6
- package/dist/{Divider_cjs_BZn2epqW.js → Divider_cjs_1fwsCxEb.js} +2 -2
- package/dist/{Divider_es_DNJg0mQR.js → Divider_es_BlOJ77zx.js} +2 -2
- package/dist/{DropdownItem_cjs_l_fnynBJ.js → DropdownItem_cjs_DUtEvTHI.js} +6 -6
- package/dist/{DropdownItem_es_B36TJ2oI.js → DropdownItem_es_DgaoM2SE.js} +6 -6
- package/dist/{Group_cjs_C1YVff0N.js → Group_cjs_CcDdC0Ua.js} +2 -2
- package/dist/{Group_es_C69f2Dom.js → Group_es_Dml1c8Cz.js} +2 -2
- package/dist/{Icon_cjs_D-jQrwjV.js → Icon_cjs_CQxDPPGY.js} +7 -7
- package/dist/{Icon_es_BstDGBF3.js → Icon_es_Banbw98_.js} +7 -7
- package/dist/{Image_cjs_BUM81t4Y.js → Image_cjs_B3E9N9YO.js} +2 -2
- package/dist/{Image_es_C-IjVkKX.js → Image_es_D3YrkouM.js} +2 -2
- package/dist/{Input_cjs_DnjehCpi.js → Input_cjs_BUtZUZYh.js} +2 -2
- package/dist/{Input_es_DCaVqQH5.js → Input_es_DaDvQ8Xp.js} +2 -2
- package/dist/{Label_cjs_CyPU9hqO.js → Label_cjs_eckLVQqh.js} +1 -1
- package/dist/{Label_es_qnCgQX52.js → Label_es_DuDL0-3C.js} +1 -1
- package/dist/{Link_cjs_qKXVfU8e.js → Link_cjs_DqNtNI23.js} +2 -2
- package/dist/{Link_es_P2b6ya7P.js → Link_es_Bt-Bhy3t.js} +2 -2
- package/dist/{Loader_cjs_B3j9ATrq.js → Loader_cjs_CP1xKwb-.js} +2 -2
- package/dist/{Loader_es_wjTqawH6.js → Loader_es_Csp5tr40.js} +2 -2
- package/dist/{Scrollbar_cjs_Cp-7v2Mt.js → Scrollbar_cjs_DHe1EK_B.js} +2 -2
- package/dist/{Scrollbar_es_CcMgNvGi.js → Scrollbar_es_CKTh3pew.js} +2 -2
- package/dist/{SelectContainer_cjs_CnhODaJP.js → SelectContainer_cjs_DzjEQKXj.js} +49 -21
- package/dist/{SelectContainer_es_CcYDHcBP.js → SelectContainer_es_BlhjV0hm.js} +49 -21
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/AvatarStack.js +5 -5
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +7 -7
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +5 -5
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +6 -6
- package/dist/cjs/components/Dadata.js +3 -3
- package/dist/cjs/components/DatePeriod.js +13 -13
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dot.js +2 -2
- package/dist/cjs/components/Drawer.js +5 -5
- package/dist/cjs/components/Dropdown.js +4 -4
- package/dist/cjs/components/Flex.js +5 -5
- package/dist/cjs/components/Grid.js +7 -7
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HTMLContent.js +2 -2
- package/dist/cjs/components/HeroTitle.js +4 -4
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputNumber.js +6 -6
- package/dist/cjs/components/InputPassword.js +4 -4
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +5 -5
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +3 -3
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +7 -36
- package/dist/cjs/components/ModalSheetBottom.js +4 -4
- package/dist/cjs/components/Notification.js +6 -6
- package/dist/cjs/components/Pagination.js +4 -4
- package/dist/cjs/components/Radio.js +2 -2
- package/dist/cjs/components/RangeSlider.js +2 -2
- package/dist/cjs/components/Response.js +8 -15
- package/dist/cjs/components/SVGContent.js +2 -2
- package/dist/cjs/components/ScrollOnDrag.js +2 -2
- package/dist/cjs/components/ScrollToView.js +2 -2
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +7 -7
- package/dist/cjs/components/Segmented.js +11 -11
- package/dist/cjs/components/Select.js +6 -6
- package/dist/cjs/components/Swiper.js +5 -5
- package/dist/cjs/components/Switch.js +4 -4
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +5 -5
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Video.js +2 -2
- package/dist/cjs/components/Warning.js +4 -4
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +4 -4
- package/dist/components/AvatarStack.js +5 -5
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +7 -7
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +5 -5
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +3 -3
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +6 -6
- package/dist/components/Dadata.js +3 -3
- package/dist/components/DatePeriod.js +13 -13
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dot.js +2 -2
- package/dist/components/Drawer.js +5 -5
- package/dist/components/Dropdown.js +4 -4
- package/dist/components/Flex.js +5 -5
- package/dist/components/Grid.js +7 -7
- package/dist/components/Group.js +1 -1
- package/dist/components/HTMLContent.js +2 -2
- package/dist/components/HeroTitle.js +4 -4
- package/dist/components/Icon.js +2 -2
- package/dist/components/Image.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputNumber.js +6 -6
- package/dist/components/InputPassword.js +4 -4
- package/dist/components/Label.js +3 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +5 -5
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +3 -3
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +7 -36
- package/dist/components/ModalSheetBottom.js +4 -4
- package/dist/components/Notification.js +6 -6
- package/dist/components/Pagination.js +4 -4
- package/dist/components/Radio.js +2 -2
- package/dist/components/RangeSlider.js +2 -2
- package/dist/components/Response.js +8 -15
- package/dist/components/SVGContent.js +2 -2
- package/dist/components/ScrollOnDrag.js +2 -2
- package/dist/components/ScrollToView.js +2 -2
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +7 -7
- package/dist/components/Segmented.js +11 -11
- package/dist/components/Select.js +6 -6
- package/dist/components/Swiper.js +5 -5
- package/dist/components/Switch.js +4 -4
- package/dist/components/Tab.js +4 -4
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +5 -5
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Video.js +2 -2
- package/dist/components/Warning.js +4 -4
- package/dist/css/styles/bundles.css +56 -29
- package/dist/types/components/Avatar/Avatar.appearance.d.ts +1120 -0
- package/dist/types/components/Avatar/Avatar.interface.d.ts +2 -0
- package/dist/types/components/Badge/Badge.appearance.d.ts +680 -0
- package/dist/types/components/Badge/Badge.interface.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +4 -0
- package/dist/types/components/Button/Button.appearance.d.ts +2000 -0
- package/dist/types/components/Cell/Cell.interface.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +3 -1
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +2 -0
- package/dist/types/components/Code/Code.interface.d.ts +2 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +2 -0
- package/dist/types/components/Dadata/Dadata.interface.d.ts +2 -0
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +2 -0
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +2 -0
- package/dist/types/components/Divider/Divider.appearance.d.ts +560 -0
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -0
- package/dist/types/components/Dot/Dot.interface.d.ts +2 -0
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +4 -0
- package/dist/types/components/Flex/Flex.interface.d.ts +4 -0
- package/dist/types/components/Grid/Grid.interface.d.ts +3 -0
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -0
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -0
- package/dist/types/components/Image/Image.interface.d.ts +2 -0
- package/dist/types/components/Input/Input.interface.d.ts +2 -1
- package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +2 -0
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +2 -0
- package/dist/types/components/Label/Label.appearance.d.ts +1560 -0
- package/dist/types/components/Link/Link.interface.d.ts +2 -0
- package/dist/types/components/List/List.interface.d.ts +4 -0
- package/dist/types/components/Loader/Loader.appearance.d.ts +320 -0
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -0
- package/dist/types/components/Logo/Logo.interface.d.ts +2 -0
- package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +1680 -0
- package/dist/types/components/Modal/Modal.appearance.d.ts +1160 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +2 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination.interface.d.ts +2 -0
- package/dist/types/components/Radio/Radio.interface.d.ts +2 -0
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +2 -0
- package/dist/types/components/Response/Response.interface.d.ts +2 -3
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +2 -0
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +2 -0
- package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +2 -0
- package/dist/types/components/Search/Search.interface.d.ts +3 -0
- package/dist/types/components/Segmented/Segmented.interface.d.ts +2 -0
- package/dist/types/components/Select/Select.interface.d.ts +4 -2
- package/dist/types/components/Select/SelectMultiValue.d.ts +4 -0
- package/dist/types/components/Select/SelectOverflowBadge.d.ts +7 -0
- package/dist/types/components/Select/appearance/selectDefault.d.ts +2 -2
- package/dist/types/components/Select/appearance/selectError.d.ts +2 -2
- package/dist/types/components/Select/appearance/selectRequire.d.ts +2 -2
- package/dist/types/components/Select/appearance/selectSize.d.ts +6 -0
- package/dist/types/components/Select/appearance/selectSuccess.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -0
- package/dist/types/components/Switch/Switch.interface.d.ts +2 -0
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -1
- package/dist/types/components/Text/Text.appearance.d.ts +520 -0
- package/dist/types/components/Textarea/Textarea.interface.d.ts +2 -0
- package/dist/types/components/Tile/Tile.appearance.d.ts +40 -0
- package/dist/types/components/Title/Title.appearance.d.ts +1600 -0
- package/dist/types/components/Video/Video.interface.d.ts +2 -0
- package/dist/types/components/Warning/Warning.appearance.d.ts +938 -58
- package/dist/types/components/Warning/Warning.interface.d.ts +3 -1
- package/package.json +10 -10
package/dist/components/Logo.js
CHANGED
|
@@ -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 '../
|
|
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,
|
|
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 '../
|
|
8
|
-
import { L as Link } from '../
|
|
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';
|
package/dist/components/Modal.js
CHANGED
|
@@ -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 '../
|
|
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 '../
|
|
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 '../
|
|
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
|
-
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
8
|
-
import { I as Icon } from '../
|
|
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 '../
|
|
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 '../
|
|
10
|
-
import { I as Icon } from '../
|
|
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 '../
|
|
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 '../
|
|
30
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
31
31
|
|
|
32
32
|
const paginationAppearanceAccent = {
|
|
33
33
|
accent: {
|
package/dist/components/Radio.js
CHANGED
|
@@ -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 '../
|
|
10
|
-
import { G as Group } from '../
|
|
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 '../
|
|
26
|
+
import '../Icon_es_Banbw98_.js';
|
|
27
27
|
import 'react-inlinesvg';
|
|
28
|
-
import '../
|
|
29
|
-
import '../
|
|
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 {
|
|
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",
|
|
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 };
|
|
@@ -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 '../
|
|
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 '../
|
|
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 '../
|
|
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 {
|
|
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", {
|
|
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/
|
|
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 '
|
|
25
|
-
import '
|
|
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 '../
|
|
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_BlhjV0hm.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 '../
|
|
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 '../
|
|
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 '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
30
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
31
|
+
import '../Loader_es_Csp5tr40.js';
|
|
32
|
+
import '../Divider_es_BlOJ77zx.js';
|