@itcase/ui 1.9.30 → 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.
- 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_CD-J8jSe.js} +6 -6
- package/dist/{SelectContainer_es_CcYDHcBP.js → SelectContainer_es_Bxt5C3nI.js} +6 -6
- 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 +3 -3
- 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 +3 -3
- 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 +5 -1
- package/dist/types/components/Avatar/Avatar.interface.d.ts +2 -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/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.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/Link/Link.interface.d.ts +2 -0
- package/dist/types/components/List/List.interface.d.ts +4 -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/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 +3 -1
- 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/Textarea/Textarea.interface.d.ts +2 -0
- package/dist/types/components/Video/Video.interface.d.ts +2 -0
- package/dist/types/components/Warning/Warning.appearance.d.ts +58 -58
- package/dist/types/components/Warning/Warning.interface.d.ts +3 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_DH8hqqdN.js';
|
|
8
8
|
import { T as Text } from '../Text_es_DaYcLe4H.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -20,12 +20,12 @@ import '../hooks.js';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Icon_es_Banbw98_.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
26
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
27
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
28
|
+
import '../Loader_es_Csp5tr40.js';
|
|
29
29
|
|
|
30
30
|
const cookiesWarningAppearanceDefault = {
|
|
31
31
|
defaultPrimary: {
|
|
@@ -50,7 +50,7 @@ const cookiesWarningConfig = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function CookiesWarning(props) {
|
|
53
|
-
const { className,
|
|
53
|
+
const { appearance, className, dataTestId, dataTour, message, isHideOnScroll = false, } = props;
|
|
54
54
|
const cookiesWarningRef = useRef(null);
|
|
55
55
|
const isOpen = useMemo(() => Cookies.get('cookies-warning') !== 'close', []);
|
|
56
56
|
const closeCookiesWarning = useCallback(() => {
|
|
@@ -74,7 +74,7 @@ function CookiesWarning(props) {
|
|
|
74
74
|
const appearanceConfig = useAppearanceConfig(appearance, cookiesWarningConfig);
|
|
75
75
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
76
76
|
const { fillClass, messageTextColor, messageTextSize, buttonAppearance, buttonFill, buttonFillHover, buttonLabel, buttonLabelSize, buttonLabelTextColor, buttonShape, buttonSize, buttonWidth, elevationClass, } = propsGenerator;
|
|
77
|
-
return (isOpen && (jsx("div", { className: clsx('cookies-warning', className, fillClass && `fill_${fillClass}`, elevationClass && `elevation_${elevationClass}`), ref: cookiesWarningRef, children: jsxs("div", { className: "cookies-warning__inner", children: [jsx(Text, { size: messageTextSize, textColor: messageTextColor, children: message }), jsx(Button, { appearance: buttonAppearance, width: buttonWidth, size: buttonSize, fill: buttonFill, fillHover: buttonFillHover, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, shape: buttonShape, onClick: closeCookiesWarning, children: buttonLabel })] }) })));
|
|
77
|
+
return (isOpen && (jsx("div", { className: clsx('cookies-warning', className, fillClass && `fill_${fillClass}`, elevationClass && `elevation_${elevationClass}`), ref: cookiesWarningRef, "data-testid": dataTestId, "data-tour": dataTour, children: jsxs("div", { className: "cookies-warning__inner", children: [jsx(Text, { size: messageTextSize, textColor: messageTextColor, children: message }), jsx(Button, { appearance: buttonAppearance, width: buttonWidth, size: buttonSize, fill: buttonFill, fillHover: buttonFillHover, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, shape: buttonShape, onClick: closeCookiesWarning, children: buttonLabel })] }) })));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export { CookiesWarning, cookiesWarningAppearance, cookiesWarningConfig };
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { PartySuggestions } from 'react-dadata';
|
|
5
|
-
import { I as Input } from '../
|
|
5
|
+
import { I as Input } from '../Input_es_DaDvQ8Xp.js';
|
|
6
6
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -19,7 +19,7 @@ import '../hooks.js';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
|
|
21
21
|
function Dadata(props) {
|
|
22
|
-
const { delay, input, inputProps, meta, token, setValue } = props;
|
|
22
|
+
const { dataTestId, dataTour, delay, input, inputProps, meta, token, setValue, } = props;
|
|
23
23
|
const dadataInputProps = useMemo(() => {
|
|
24
24
|
return {
|
|
25
25
|
...inputProps,
|
|
@@ -44,7 +44,7 @@ function Dadata(props) {
|
|
|
44
44
|
input.onBlur,
|
|
45
45
|
input.onChange,
|
|
46
46
|
]);
|
|
47
|
-
return (jsx(PartySuggestions, { minChars: 3, customInput: DadataCustomInput, delay: delay || 750, inputProps: dadataInputProps, token: token, onChange: setValue }));
|
|
47
|
+
return (jsx(PartySuggestions, { minChars: 3, customInput: DadataCustomInput, "data-testid": dataTestId, "data-tour": dataTour, delay: delay || 750, inputProps: dadataInputProps, token: token, onChange: setValue }));
|
|
48
48
|
}
|
|
49
49
|
function DadataCustomInput(props) {
|
|
50
50
|
const { inputValue, ...otherProps } = props;
|
|
@@ -5,17 +5,17 @@ import { DateTime } from 'luxon';
|
|
|
5
5
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
-
import { D as DatePickerInput } from '../
|
|
8
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_BOaDqAo8.js';
|
|
9
|
+
import { D as DatePickerInput } from '../DatePicker_es_DHGzUpHd.js';
|
|
10
10
|
import 'react-select';
|
|
11
|
-
import '../
|
|
12
|
-
import { a as SelectContainer } from '../
|
|
11
|
+
import '../Icon_es_Banbw98_.js';
|
|
12
|
+
import { a as SelectContainer } from '../SelectContainer_es_Bxt5C3nI.js';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/maxBy';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../context/Notifications.js';
|
|
17
17
|
import '../context/UIContext.js';
|
|
18
|
-
import '../
|
|
18
|
+
import '../Group_es_Dml1c8Cz.js';
|
|
19
19
|
import 'lodash/castArray';
|
|
20
20
|
import '../hooks.js';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -27,17 +27,17 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
27
27
|
import '../Text_es_DaYcLe4H.js';
|
|
28
28
|
import 'date-fns/locale';
|
|
29
29
|
import 'react-datepicker';
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
34
|
-
import '../
|
|
30
|
+
import '../Button_es_DH8hqqdN.js';
|
|
31
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
32
|
+
import '../Loader_es_Csp5tr40.js';
|
|
33
|
+
import '../Input_es_DaDvQ8Xp.js';
|
|
34
|
+
import '../Label_es_DuDL0-3C.js';
|
|
35
35
|
import '@itcase/icons/default';
|
|
36
36
|
import 'react-inlinesvg';
|
|
37
37
|
import '../hoc/urlWithAssetPrefix.js';
|
|
38
38
|
import '../context/UrlAssetPrefix.js';
|
|
39
39
|
import 'react-select/creatable';
|
|
40
|
-
import '../
|
|
40
|
+
import '../Divider_es_BlOJ77zx.js';
|
|
41
41
|
|
|
42
42
|
const datePeriodAppearanceShape = {
|
|
43
43
|
circular: {
|
|
@@ -128,7 +128,7 @@ const datePeriodConfig = {
|
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
130
|
function DatePeriod(props) {
|
|
131
|
-
const { appearance, className, datePeriodIntervalsList = Object.values(DATE_PERIOD_INTERVALS), datePeriodSelectFirstOptions, datePeriodSelectFirstPlaceholder, datePeriodSelectFirstValue, datePeriodSelectSecondOptions, datePeriodSelectSecondPlaceholder, datePeriodSelectSecondValue, datePeriodValueEnd, datePeriodValueStart, monthsShown, popperPlacement, selectsRange = true, showWeekNumbers = true, isDisabled, isSkeleton, onChangeDatePeriod, onChangeDatePeriodFirstSelect, onChangeDatePeriodSecondSelect, onKeyDown, } = props;
|
|
131
|
+
const { appearance, className, dataTestId, dataTour, datePeriodIntervalsList = Object.values(DATE_PERIOD_INTERVALS), datePeriodSelectFirstOptions, datePeriodSelectFirstPlaceholder, datePeriodSelectFirstValue, datePeriodSelectSecondOptions, datePeriodSelectSecondPlaceholder, datePeriodSelectSecondValue, datePeriodValueEnd, datePeriodValueStart, monthsShown, popperPlacement, selectsRange = true, showWeekNumbers = true, isDisabled, isSkeleton, onChangeDatePeriod, onChangeDatePeriodFirstSelect, onChangeDatePeriodSecondSelect, onKeyDown, } = props;
|
|
132
132
|
const appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig, isDisabled);
|
|
133
133
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
134
134
|
const { fillClass, chipsAppearance, chipsAppearanceSize, chipsShape, datePickerAppearance, datePickerAppearanceSize, datePickerInputAppearance, datePickerInputAppearanceSize, datePickerInputFillHover, datePickerInputTextSize, selectAppearance, selectAppearanceSize, selectShape, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
|
|
@@ -151,7 +151,7 @@ function DatePeriod(props) {
|
|
|
151
151
|
return (dateStartIso === normalizedDatePeriodValueStart &&
|
|
152
152
|
dateEndIso === normalizedDatePeriodValueEnd);
|
|
153
153
|
}, [datePeriodValueEnd, datePeriodValueStart]);
|
|
154
|
-
return (jsxs("div", { className: clsx(className, 'date-period', sizeClass && `date-period_size_${sizeClass}`, isSkeleton && `date-period_skeleton`), children: [jsxs("div", { className: clsx('date-period__wrapper', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, 'cursor_type_pointer'), children: [jsx(ChipsGroup, { className: "date-period__choice", direction: "horizontal", children: datePeriodIntervalsList.map((datePeriodItem) => (jsx(Chips, { appearance: `${chipsAppearance} ${chipsAppearanceSize}`, label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: () => onClickPeriodChips(datePeriodItem) }, datePeriodItem.value))) }), jsx(DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
|
|
154
|
+
return (jsxs("div", { className: clsx(className, 'date-period', sizeClass && `date-period_size_${sizeClass}`, isSkeleton && `date-period_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, children: [jsxs("div", { className: clsx('date-period__wrapper', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, 'cursor_type_pointer'), children: [jsx(ChipsGroup, { className: "date-period__choice", direction: "horizontal", children: datePeriodIntervalsList.map((datePeriodItem) => (jsx(Chips, { appearance: `${chipsAppearance} ${chipsAppearanceSize}`, label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: () => onClickPeriodChips(datePeriodItem) }, datePeriodItem.value))) }), jsx(DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
|
|
155
155
|
appearance: `${datePickerAppearance} ${datePickerAppearanceSize}`,
|
|
156
156
|
dateFormat: 'dd/MM/yyyy',
|
|
157
157
|
monthsShown: monthsShown,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DHGzUpHd.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -20,14 +20,14 @@ import '../hooks.js';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_DH8hqqdN.js';
|
|
24
|
+
import '../Icon_es_Banbw98_.js';
|
|
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
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
30
|
+
import '../Loader_es_Csp5tr40.js';
|
|
31
|
+
import '../Input_es_DaDvQ8Xp.js';
|
|
32
|
+
import '../Label_es_DuDL0-3C.js';
|
|
33
33
|
import '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_BlOJ77zx.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
package/dist/components/Dot.js
CHANGED
|
@@ -20,10 +20,10 @@ import 'lodash/maxBy';
|
|
|
20
20
|
function Dot(props) {
|
|
21
21
|
const { className, children } = props;
|
|
22
22
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
23
|
-
const { fillClass, borderColorClass, borderTypeClass, shapeClass, sizeClass, } = propsGenerator;
|
|
23
|
+
const { dataTestId, dataTour, fillClass, borderColorClass, borderTypeClass, shapeClass, sizeClass, } = propsGenerator;
|
|
24
24
|
// @ts-expect-error
|
|
25
25
|
const { styles } = useStyles(props);
|
|
26
|
-
return (jsx("div", { className: clsx(className, 'dot', borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `dot_shape_${shapeClass}`, sizeClass && `dot_size_${sizeClass}`), style: styles, children: children }));
|
|
26
|
+
return (jsx("div", { className: clsx(className, 'dot', borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `dot_shape_${shapeClass}`, sizeClass && `dot_size_${sizeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: styles, children: children }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { Dot };
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { D as Divider } from '../
|
|
8
|
-
import { I as Icon, b as Title } from '../
|
|
7
|
+
import { D as Divider } from '../Divider_es_BlOJ77zx.js';
|
|
8
|
+
import { I as Icon, b as Title } 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 'lodash/camelCase';
|
|
@@ -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
|
|
|
30
30
|
const drawerAppearanceSize = {
|
|
31
31
|
sizeH3: {
|
|
@@ -141,9 +141,9 @@ function Drawer(props) {
|
|
|
141
141
|
if (!animationState.isInDOM) {
|
|
142
142
|
return null;
|
|
143
143
|
}
|
|
144
|
-
return (jsxs(ReactDrawer, { className: clsx('drawer', type && `drawer_type_${type}`, className, dataTour && `dataTour-${dataTour}`, stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'),
|
|
144
|
+
return (jsxs(ReactDrawer, { className: clsx('drawer', type && `drawer_type_${type}`, className, dataTour && `dataTour-${dataTour}`, stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
|
|
145
145
|
// Drawer set prefix "EZDrawer" for any id
|
|
146
|
-
customIdSuffix: dataTestId ? `_${dataTestId}` : undefined, duration: ANIMATION_DURATION, enableOverlay: enableOverlay, lockBackgroundScroll: lockBackgroundScroll, overlayClassName: "drawer__overlay", open: animationState.isOpen, onClose: _onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsx("div", { className: "drawer__close", children: jsx(Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: _onClickClose }) })), (title || desc) && (jsxs("div", { className: "drawer__header", children: [jsx(Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && (jsx(Divider, { width: "fill", size: dividerSize, fill: "surfaceTertiary" })), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
146
|
+
customIdSuffix: dataTestId ? `_${dataTestId}` : undefined, "data-testid": dataTestId, "data-tour": dataTour, duration: ANIMATION_DURATION, enableOverlay: enableOverlay, lockBackgroundScroll: lockBackgroundScroll, overlayClassName: "drawer__overlay", open: animationState.isOpen, onClose: _onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsx("div", { className: "drawer__close", children: jsx(Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: _onClickClose }) })), (title || desc) && (jsxs("div", { className: "drawer__header", children: [jsx(Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && (jsx(Divider, { width: "fill", size: dividerSize, fill: "surfaceTertiary" })), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export { Drawer, drawerAppearance, drawerConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_DgaoM2SE.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,10 +18,10 @@ import '../hooks.js';
|
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_Banbw98_.js';
|
|
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
|
-
import '../
|
|
27
|
+
import '../Divider_es_BlOJ77zx.js';
|
package/dist/components/Flex.js
CHANGED
|
@@ -18,22 +18,22 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
|
|
20
20
|
function Flex(props) {
|
|
21
|
-
const { id, className, type, print, style, tag: Tag = 'div', onClick, children, } = props;
|
|
21
|
+
const { id, className, dataTestId, dataTour, type, dataId, print, style, tag: Tag = 'div', onClick, children, } = props;
|
|
22
22
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
23
|
-
const {
|
|
23
|
+
const { directionClass, justifyContentClass, alignContentClass, alignItemsClass, fillClass, borderColorClass, borderTypeClass, flowClass, positionClass, shapeClass, widthClass, wrapClass, } = propsGenerator;
|
|
24
24
|
// @ts-expect-error
|
|
25
25
|
const { styles: flexStyles, wrapper: flexWrapperStyles } = useStyles(props);
|
|
26
|
-
return (jsx(Tag, { id: id, className: clsx(className, 'flex', widthClass && `width_${widthClass}`, alignContentClass && `flex_align-content_${alignContentClass}`, alignItemsClass && `flex_align-items_${alignItemsClass}`, directionClass && `flex_direction_${directionClass}`, fillClass && `fill_${fillClass}`, flowClass && `flex_flow_${flowClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, positionClass && `position_${positionClass}`, justifyContentClass && `flex_justify-content_${justifyContentClass}`, shapeClass && `flex_shape_${shapeClass}`, type && `flex_type_${type}`, print === false && 'no-print', print === true && 'print', wrapClass && `flex_wrap_${wrapClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, flexStyles, style), onClick: onClick, children: jsx("div", { className: "flex__wrapper", style: flexWrapperStyles, children: children }) }));
|
|
26
|
+
return (jsx(Tag, { id: id, className: clsx(className, 'flex', widthClass && `width_${widthClass}`, alignContentClass && `flex_align-content_${alignContentClass}`, alignItemsClass && `flex_align-items_${alignItemsClass}`, directionClass && `flex_direction_${directionClass}`, fillClass && `fill_${fillClass}`, flowClass && `flex_flow_${flowClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, positionClass && `position_${positionClass}`, justifyContentClass && `flex_justify-content_${justifyContentClass}`, shapeClass && `flex_shape_${shapeClass}`, type && `flex_type_${type}`, print === false && 'no-print', print === true && 'print', wrapClass && `flex_wrap_${wrapClass}`), "data-id": dataId, "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, flexStyles, style), onClick: onClick, children: jsx("div", { className: "flex__wrapper", style: flexWrapperStyles, children: children }) }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function FlexItem(props) {
|
|
30
30
|
const { className, htmlFor, print, style, tag: Tag = 'div', children } = props;
|
|
31
31
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
32
|
-
const { dataTestId, dataTour, directionClass, justifyContentClass, alignItemsClass, alignSelfClass, fillClass, fillHoverClass, growClass, positionClass, shapeClass, widthClass, wrapClass, } = propsGenerator;
|
|
32
|
+
const { dataTestId, dataTour, directionClass, justifyContentClass, alignItemsClass, alignSelfClass, fillClass, fillHoverClass, dataId, growClass, positionClass, shapeClass, widthClass, wrapClass, } = propsGenerator;
|
|
33
33
|
// @ts-expect-error
|
|
34
34
|
const { styles: flexItemStyles } = useStyles(props);
|
|
35
35
|
return (jsx(Tag, { className: clsx(className, 'flex__item', positionClass && `position_${positionClass}`, alignItemsClass && `flex__item_align-items_${alignItemsClass}`, alignSelfClass && `flex__item_align-self_${alignSelfClass}`, directionClass && `flex__item_direction_${directionClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, growClass && `flex__item_grow_${growClass}`, justifyContentClass &&
|
|
36
|
-
`flex__item_justify-content_${justifyContentClass}`, shapeClass && `flex__item_shape_${shapeClass}`, print === false && 'no-print', print === true && 'print', widthClass && `width_${widthClass}`, wrapClass && `flex__item_wrap_${wrapClass}`), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: Object.assign({}, flexItemStyles, style), children: children }));
|
|
36
|
+
`flex__item_justify-content_${justifyContentClass}`, shapeClass && `flex__item_shape_${shapeClass}`, print === false && 'no-print', print === true && 'print', widthClass && `width_${widthClass}`, wrapClass && `flex__item_wrap_${wrapClass}`), "data-id": dataId, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: Object.assign({}, flexItemStyles, style), children: children }));
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export { Flex, FlexItem };
|
package/dist/components/Grid.js
CHANGED
|
@@ -18,30 +18,30 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
|
|
20
20
|
function Grid(props) {
|
|
21
|
-
const { id, className, dataTour, type, horizontalResizing, horizontalScroll, print, tag: Tag = 'div', useGridSystem, verticalResizing, before, after, onClick, onDoubleClick, children, } = props;
|
|
21
|
+
const { id, className, dataTestId, dataTour, type, horizontalResizing, horizontalScroll, print, tag: Tag = 'div', useGridSystem, verticalResizing, before, after, onClick, onDoubleClick, children, } = props;
|
|
22
22
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
23
23
|
const { justifyContentClass, justifyItemsClass, alignContentClass, alignItemsClass, fillClass, fillHoverClass, borderColorClass, columnGapClass, columnsClass, heightClass, rowGapClass, rowsClass, widthClass, } = propsGenerator;
|
|
24
24
|
// @ts-expect-error
|
|
25
25
|
const { styles: gridStyles } = useStyles(props);
|
|
26
|
-
return (jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, useGridSystem && `grid_state_system`, horizontalScroll && `grid_scroll_horizontal`, type && `grid_type_${type}`, columnsClass && `grid_columns_${columnsClass}`, rowsClass && `grid_rows_${rowsClass}`, rowGapClass && `grid_row-gap_${rowGapClass}`, columnGapClass && `grid_column-gap_${columnGapClass}`, alignContentClass && `grid_align-content_${alignContentClass}`, alignItemsClass && `grid_align-items_${alignItemsClass}`, borderColorClass && `border-color_${borderColorClass}`, justifyContentClass && `grid_justify-content_${justifyContentClass}`, justifyItemsClass && `grid_justify-items_${justifyItemsClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, horizontalResizing && `grid_horizontal-resizing_${horizontalResizing}`, verticalResizing && `grid_vertical-resizing_${verticalResizing}`, print === false && 'no-print', print === true && 'print'), "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
26
|
+
return (jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, useGridSystem && `grid_state_system`, horizontalScroll && `grid_scroll_horizontal`, type && `grid_type_${type}`, columnsClass && `grid_columns_${columnsClass}`, rowsClass && `grid_rows_${rowsClass}`, rowGapClass && `grid_row-gap_${rowGapClass}`, columnGapClass && `grid_column-gap_${columnGapClass}`, alignContentClass && `grid_align-content_${alignContentClass}`, alignItemsClass && `grid_align-items_${alignItemsClass}`, borderColorClass && `border-color_${borderColorClass}`, justifyContentClass && `grid_justify-content_${justifyContentClass}`, justifyItemsClass && `grid_justify-items_${justifyItemsClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, horizontalResizing && `grid_horizontal-resizing_${horizontalResizing}`, verticalResizing && `grid_vertical-resizing_${verticalResizing}`, print === false && 'no-print', print === true && 'print'), "data-testid": dataTestId, "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function GridItem(props) {
|
|
30
|
-
const { id, className, print, style, onClick, children } = props;
|
|
30
|
+
const { id, className, dataTestId, dataTour, print, style, onClick, children, } = props;
|
|
31
31
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
32
|
-
const {
|
|
32
|
+
const { directionClass, justifySelfClass, alignSelfClass, fillClass, fillHoverClass, columnEndClass, columnGapClass, columnSpanClass, columnStartClass, gapClass, heightClass, orderClass, rowEndClass, rowGapClass, rowSpanClass, rowStartClass, widthClass, } = propsGenerator;
|
|
33
33
|
// @ts-expect-error
|
|
34
34
|
const { styles: gridItemStyles } = useStyles(props);
|
|
35
|
-
return (jsx("div", { id: id, className: clsx(className, 'grid__item', orderClass && `order_${orderClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, alignSelfClass && `grid__item_align-self_${alignSelfClass}`, justifySelfClass && `grid__item_justify-self_${justifySelfClass}`, columnStartClass && `grid__item_column-start_${columnStartClass}`, columnEndClass && `grid__item_column-end_${columnEndClass}`, columnSpanClass && `grid__item_column-span_${columnSpanClass}`, rowStartClass && `grid__item_row-start_${rowStartClass}`, rowEndClass && `grid__item_row-end_${rowEndClass}`, rowSpanClass && `grid__item_row-span_${rowSpanClass}`, directionClass && `direction_${directionClass}`, gapClass && `gap_${gapClass}`, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, rowGapClass && `row-gap_${rowGapClass}`, print
|
|
35
|
+
return (jsx("div", { id: id, className: clsx(className, 'grid__item', orderClass && `order_${orderClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, alignSelfClass && `grid__item_align-self_${alignSelfClass}`, justifySelfClass && `grid__item_justify-self_${justifySelfClass}`, columnStartClass && `grid__item_column-start_${columnStartClass}`, columnEndClass && `grid__item_column-end_${columnEndClass}`, columnSpanClass && `grid__item_column-span_${columnSpanClass}`, rowStartClass && `grid__item_row-start_${rowStartClass}`, rowEndClass && `grid__item_row-end_${rowEndClass}`, rowSpanClass && `grid__item_row-span_${rowSpanClass}`, directionClass && `direction_${directionClass}`, gapClass && `gap_${gapClass}`, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, rowGapClass && `row-gap_${rowGapClass}`, !print && 'no-print', print && 'print', columnGapClass && `column-gap_${columnGapClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, gridItemStyles, style), onClick: onClick, children: children }));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
function GridRow(props) {
|
|
39
|
-
const { id, className, dataTestId, dataTour, htmlFor, print, tag: Tag = 'div', onClick, children, } = props;
|
|
39
|
+
const { id, className, dataTestId, dataTour, dataId, htmlFor, print, tag: Tag = 'div', onClick, children, } = props;
|
|
40
40
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
41
41
|
const { fillClass, fillHoverClass, borderColorClass, heightClass, widthClass, } = propsGenerator;
|
|
42
42
|
// @ts-expect-error
|
|
43
43
|
const { styles: gridRowStyles } = useStyles(props);
|
|
44
|
-
return (jsx(Tag, { id: id, className: clsx(className, 'grid__row', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, print === false && 'no-print', print === true && 'print', borderColorClass && `border-color_${borderColorClass}`), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: gridRowStyles, onClick: onClick, children: children }));
|
|
44
|
+
return (jsx(Tag, { id: id, className: clsx(className, 'grid__row', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, print === false && 'no-print', print === true && 'print', borderColorClass && `border-color_${borderColorClass}`), "data-id": dataId, "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: gridRowStyles, onClick: onClick, children: children }));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export { Grid, GridItem, GridRow };
|
package/dist/components/Group.js
CHANGED
|
@@ -18,12 +18,12 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
|
|
20
20
|
function HTMLContent(props) {
|
|
21
|
-
const { className,
|
|
21
|
+
const { className, dataTestId, dataTour, content, style, onClick, children } = props;
|
|
22
22
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
23
23
|
const { directionClass, flexGrowClass, justifyContentClass, alignClass, alignDirectionClass, fillClass, fillHoverClass, borderColorClass, borderTypeClass, borderWidthClass, textColorClass, textWeightClass, columnsClass, elevationClass, heightClass, shapeClass, widthClass, wrapClass, } = propsGenerator;
|
|
24
24
|
// @ts-expect-error
|
|
25
25
|
const { styles: htmlContentStyles } = useStyles(props);
|
|
26
|
-
return (jsx("div", { className: clsx(className, 'html-content', alignClass && `align_${alignClass}`, alignDirectionClass && `align_${alignDirectionClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, columnsClass && `html-content_columns_${columnsClass}`, directionClass && `html-content_direction_${directionClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, flexGrowClass && `flex-grow_${flexGrowClass}`, heightClass && `height_${heightClass}`, justifyContentClass && `justify-content_${justifyContentClass}`, shapeClass && `html-content_shape_${shapeClass}`, textColorClass && `text-color_${textColorClass}`, textWeightClass && `text-weight_${textWeightClass}`, wrapClass && `html-content_wrap_${wrapClass}`, widthClass && `width_${widthClass}`), dangerouslySetInnerHTML: { __html: content },
|
|
26
|
+
return (jsx("div", { className: clsx(className, 'html-content', alignClass && `align_${alignClass}`, alignDirectionClass && `align_${alignDirectionClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, columnsClass && `html-content_columns_${columnsClass}`, directionClass && `html-content_direction_${directionClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, flexGrowClass && `flex-grow_${flexGrowClass}`, heightClass && `height_${heightClass}`, justifyContentClass && `justify-content_${justifyContentClass}`, shapeClass && `html-content_shape_${shapeClass}`, textColorClass && `text-color_${textColorClass}`, textWeightClass && `text-weight_${textWeightClass}`, wrapClass && `html-content_wrap_${wrapClass}`, widthClass && `width_${widthClass}`), dangerouslySetInnerHTML: { __html: content }, "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, htmlContentStyles, style), onClick: onClick, children: children }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { HTMLContent };
|
|
@@ -4,7 +4,7 @@ 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 } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_Banbw98_.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
|
@@ -21,7 +21,7 @@ import 'lodash/maxBy';
|
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
24
|
-
import '../
|
|
24
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
25
25
|
import '../Text_es_DaYcLe4H.js';
|
|
26
26
|
|
|
27
27
|
const heroTitleAppearanceSize = {
|
|
@@ -62,10 +62,10 @@ const heroTitleConfig = {
|
|
|
62
62
|
},
|
|
63
63
|
};
|
|
64
64
|
function HeroTitle(props) {
|
|
65
|
-
const { appearance, className, dataTour, text, afterWrapper, beforeWrapper, tag = 'span', before, after, isDisabled, isSkeleton, onClick, children, } = props;
|
|
65
|
+
const { appearance, className, dataTestId, dataTour, text, afterWrapper, beforeWrapper, tag = 'span', before, after, isDisabled, isSkeleton, onClick, children, } = props;
|
|
66
66
|
const appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig, isDisabled);
|
|
67
67
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
68
|
-
const {
|
|
68
|
+
const { directionClass, size, fillClass, textAlignClass, textColorActiveClass, textColorClass, textColorGradientClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrap, heightClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, svgFillClass, svgFillHoverClass, typeClass, widthClass, wrapperDirectionClass, } = propsGenerator;
|
|
69
69
|
// @ts-expect-error
|
|
70
70
|
const { styles: heroTitleStyles, wrapper: heroTitleWrapperStyles } = useStyles(props);
|
|
71
71
|
// Element type (h1, h2, ..., h6)
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, e as iconAppearance, i as iconConfig } from '../
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_Banbw98_.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -21,5 +21,5 @@ import '../hooks.js';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import '../hooks/useStyles/useStyles.js';
|
|
23
23
|
import 'lodash/maxBy';
|
|
24
|
-
import '../
|
|
24
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
25
25
|
import '../Text_es_DaYcLe4H.js';
|
package/dist/components/Image.js
CHANGED
package/dist/components/Input.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useState, useEffect, useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { B as Button } from '../
|
|
6
|
+
import { B as Button } from '../Button_es_DH8hqqdN.js';
|
|
7
7
|
import { icons24 } from '@itcase/icons/default';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -19,13 +19,13 @@ import '../hooks.js';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Icon_es_Banbw98_.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
27
27
|
import '../Text_es_DaYcLe4H.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Loader_es_Csp5tr40.js';
|
|
29
29
|
|
|
30
30
|
const inputNumberAppearanceDefault = {
|
|
31
31
|
defaultPrimary: {
|
|
@@ -142,7 +142,7 @@ const inputNumberAppearance = {
|
|
|
142
142
|
const inputNumberConfig = {
|
|
143
143
|
appearance: inputNumberAppearance};
|
|
144
144
|
const InputNumber = (props) => {
|
|
145
|
-
const { id, appearance, className, dataTestId, type = 'custom', name, min = 0, max = Infinity, step = 1, value = 0, onChange, } = props;
|
|
145
|
+
const { id, appearance, className, dataTestId, dataTour, type = 'custom', name, min = 0, max = Infinity, step = 1, value = 0, onChange, } = props;
|
|
146
146
|
const [number, setNumber] = useState(value);
|
|
147
147
|
useEffect(() => {
|
|
148
148
|
setNumber(value);
|
|
@@ -170,7 +170,7 @@ const InputNumber = (props) => {
|
|
|
170
170
|
if (type === 'number') {
|
|
171
171
|
return (jsx("input", { id: String(id), type: "number", min: min, max: max, step: step, value: number, onChange: (event) => handleInputValue(event) }));
|
|
172
172
|
}
|
|
173
|
-
return (jsxs("div", { id: String(id), className: clsx(className, 'input-number', 'input-number__custom', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-number_size_${sizeClass}`, widthClass && `width_${widthClass}`), children: [jsx(Button, { className: "input-number__icon", icon: iconMinus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('minus') }), jsx("input", { className: clsx(inputNumberTextColorClass &&
|
|
173
|
+
return (jsxs("div", { id: String(id), className: clsx(className, 'input-number', 'input-number__custom', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-number_size_${sizeClass}`, widthClass && `width_${widthClass}`), "data-tour": dataTour, children: [jsx(Button, { className: "input-number__icon", icon: iconMinus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('minus') }), jsx("input", { className: clsx(inputNumberTextColorClass &&
|
|
174
174
|
`text-color_${inputNumberTextColorClass}`, inputNumberTextSizeClass && `text_size_${inputNumberTextSizeClass}`, inputNumberTextWeightClass &&
|
|
175
175
|
`text-weight_${inputNumberTextWeightClass}`), type: "number", min: min, max: max, "data-testid": dataTestId || (name ? `${name}-input-number` : 'input-number'), step: step, value: number, onChange: (event) => handleInputValue(event) }), jsx(Button, { className: "input-number__icon", icon: iconPlus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('plus') })] }));
|
|
176
176
|
};
|
|
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_Banbw98_.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
|
@@ -22,7 +22,7 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
22
22
|
import '../context/UrlAssetPrefix.js';
|
|
23
23
|
import '../hooks/useStyles/useStyles.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Link_es_Bt-Bhy3t.js';
|
|
26
26
|
import '../Text_es_DaYcLe4H.js';
|
|
27
27
|
|
|
28
28
|
const inputPasswordAppearanceDefault = {
|
|
@@ -244,7 +244,7 @@ const inputPasswordConfig = {
|
|
|
244
244
|
},
|
|
245
245
|
};
|
|
246
246
|
function InputPassword(props) {
|
|
247
|
-
const { id, appearance, className, dataTestId, name, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
|
|
247
|
+
const { id, appearance, className, dataTestId, dataTour, name, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
|
|
248
248
|
const [isRevealed, setIsRevealed] = useState(false);
|
|
249
249
|
const inputType = useMemo(() => {
|
|
250
250
|
return isRevealed ? 'text' : 'password';
|
|
@@ -258,7 +258,7 @@ function InputPassword(props) {
|
|
|
258
258
|
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, iconFill, iconFillHover, iconRevealableHide, iconRevealableShow, iconShape, iconSize, imageRevealableHide, imageRevealableShow, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
259
259
|
return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass &&
|
|
260
260
|
`border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
|
|
261
|
-
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-password__input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: inputType, "data-testid": dataTestId || (name ? `${name}-input-password` : 'input-password'), disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
|
|
261
|
+
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-password__input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: inputType, "data-testid": dataTestId || (name ? `${name}-input-password` : 'input-password'), "data-tour": dataTour, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_DuDL0-3C.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,9 +18,9 @@ import '../hooks.js';
|
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_Banbw98_.js';
|
|
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';
|
package/dist/components/Link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../
|
|
1
|
+
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_Bt-Bhy3t.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
package/dist/components/List.js
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { L as Link } from '../
|
|
6
|
+
import { L as Link } from '../Link_es_Bt-Bhy3t.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -234,18 +234,18 @@ const listAppearance = {
|
|
|
234
234
|
const listConfig = {
|
|
235
235
|
appearance: listAppearance};
|
|
236
236
|
function List(props) {
|
|
237
|
-
const { className,
|
|
237
|
+
const { appearance, className, dataTestId, dataTour, type, style, children } = props;
|
|
238
238
|
const appearanceConfig = useAppearanceConfig(appearance, listConfig);
|
|
239
239
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
240
240
|
const { directionClass, bulletFillClass, bulletSizeClass, bulletTextColorClass, sizeClass, } = propsGenerator;
|
|
241
241
|
// @ts-expect-error
|
|
242
242
|
const { styles: ulStyles } = useStyles(props);
|
|
243
243
|
return (jsx("ul", { className: clsx(className, 'list', bulletSizeClass && `list_bullet-size_${bulletSizeClass}`, bulletFillClass && `list_bullet-fill_${bulletFillClass}`, bulletTextColorClass &&
|
|
244
|
-
`list_bullet-text-color_${bulletTextColorClass}`, directionClass && `list_direction_${directionClass}`, sizeClass && `list_size_${sizeClass}`, style && `list_style_${style}`, type && `list_type_${type}`), style: ulStyles, children: children }));
|
|
244
|
+
`list_bullet-text-color_${bulletTextColorClass}`, directionClass && `list_direction_${directionClass}`, sizeClass && `list_size_${sizeClass}`, style && `list_style_${style}`, type && `list_type_${type}`), "data-testid": dataTestId, "data-tour": dataTour, style: ulStyles, children: children }));
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
function ListItem(props) {
|
|
248
|
-
const { className, text, href, link, before, after, children } = props;
|
|
248
|
+
const { className, dataTestId, dataTour, text, href, link, before, after, children, } = props;
|
|
249
249
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
250
250
|
const { fillClass, textColorClass, textStyleClass, textWeightClass } = propsGenerator;
|
|
251
251
|
// @ts-expect-error
|
|
@@ -253,7 +253,7 @@ function ListItem(props) {
|
|
|
253
253
|
if (link) {
|
|
254
254
|
return (jsx("li", { className: clsx(className, 'list__item', 'list__item_type_link', textStyleClass && `text text-style_${textStyleClass}`, textWeightClass && `text text-weight_${textWeightClass}`, textColorClass && `text-color_${textColorClass}`, fillClass && `fill_${fillClass}`), style: liStyles, children: jsx(Link, { className: clsx('list__item-link'), href: link || href, style: linkStyles, children: children || text }) }));
|
|
255
255
|
}
|
|
256
|
-
return (jsxs("li", { className: clsx(className, 'list__item', textStyleClass && `text text-style_${textStyleClass}`, textWeightClass && `text text-weight_${textWeightClass}`, textColorClass && `text-color_${textColorClass}`, fillClass && `fill_${fillClass}`), style: liStyles, children: [before, children || text, after] }));
|
|
256
|
+
return (jsxs("li", { className: clsx(className, 'list__item', textStyleClass && `text text-style_${textStyleClass}`, textWeightClass && `text text-weight_${textWeightClass}`, textColorClass && `text-color_${textColorClass}`, fillClass && `fill_${fillClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: liStyles, children: [before, children || text, after] }));
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
export { List, ListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_Csp5tr40.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|