@itcase/ui 1.6.0 → 1.8.0
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/{Badge-ydSHGXSG.js → Badge-BY030Mwm.js} +4 -4
- package/dist/{Badge-JXM0G_0I.js → Badge-Df7Zxjnk.js} +4 -4
- package/dist/{Button-BmSyIDb_.js → Button-DJxd2_t4.js} +7 -7
- package/dist/{Button-DCtRrkgc.js → Button-K5n8BI_w.js} +7 -7
- package/dist/{Divider-D8hUUrwe.js → Divider-BQIfjvPR.js} +2 -2
- package/dist/{Divider-DhXzYcNF.js → Divider-CUFKsm-9.js} +2 -2
- package/dist/{DropdownItem-B2yfeMxS.js → DropdownItem-CdAS1E-G.js} +4 -4
- package/dist/{DropdownItem-Cr7XLcHZ.js → DropdownItem-f29l8dds.js} +4 -4
- package/dist/{Group-OkygpKiJ.js → Group-C8NUU6k5.js} +4 -4
- package/dist/{Group-BVlu5z77.js → Group-utjnjUDZ.js} +4 -4
- package/dist/{Icon-BOEOspTF.js → Icon-BF7i3XdQ.js} +2 -2
- package/dist/{Icon-DU2T-nfY.js → Icon-D_BDlSSb.js} +2 -2
- package/dist/{Input-e0kLrbs6.js → Input-C_HeI9UK.js} +2 -2
- package/dist/{Input-ChiH90mV.js → Input-v52BiIsb.js} +2 -2
- package/dist/{Label-CP8IAPOM.js → Label-DsNZ-asS.js} +4 -4
- package/dist/{Label-CfE08vBy.js → Label-brG78nLi.js} +4 -4
- package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
- package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
- package/dist/{Loader-CRN4MAbm.js → Loader-BnhUh-g6.js} +3 -3
- package/dist/{Loader-rzo8nnRI.js → Loader-CZVsMYl6.js} +3 -3
- package/dist/{Overlay-CRIofShk.js → Overlay-Be9UCtR9.js} +2 -2
- package/dist/{Overlay-CZFSerUl.js → Overlay-BoIJ-g58.js} +2 -2
- package/dist/{Text-CEcBg-F5.js → Text-DwIx33-P.js} +2 -2
- package/dist/{Text-CI2prtf6.js → Text-aaWArShm.js} +2 -2
- package/dist/{Title-CaXw1KBQ.js → Title--_epIXkC.js} +2 -2
- package/dist/{Title-C4xUtigh.js → Title-ByfOyy-n.js} +2 -2
- package/dist/{Tooltip-EOu0a93a.js → Tooltip-DP32J5V6.js} +4 -4
- package/dist/{Tooltip-Lhx-Fefx.js → Tooltip-hznDyLwa.js} +4 -4
- package/dist/cjs/components/Accordion.js +10 -10
- package/dist/cjs/components/Avatar.js +7 -7
- package/dist/cjs/components/Badge.js +6 -6
- package/dist/cjs/components/Breadcrumbs.js +5 -5
- package/dist/cjs/components/Button.js +7 -7
- package/dist/cjs/components/Cell.js +8 -8
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +8 -8
- package/dist/cjs/components/Choice.js +9 -9
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +8 -8
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +11 -11
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +5 -5
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +3 -3
- package/dist/cjs/components/InputPassword.js +7 -7
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +3 -3
- package/dist/cjs/components/MenuItem.js +4 -4
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +9 -9
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +10 -10
- package/dist/cjs/components/Search.js +7 -7
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +18 -13
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +3 -3
- package/dist/cjs/components/Tab.js +11 -11
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +8 -8
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +10 -10
- package/dist/components/Avatar.js +7 -7
- package/dist/components/Badge.js +6 -6
- package/dist/components/Breadcrumbs.js +5 -5
- package/dist/components/Button.js +7 -7
- package/dist/components/Cell.js +8 -8
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +8 -8
- package/dist/components/Choice.js +9 -9
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +8 -8
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +11 -11
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +5 -5
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +3 -3
- package/dist/components/InputPassword.js +7 -7
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +3 -3
- package/dist/components/MenuItem.js +4 -4
- package/dist/components/Modal.js +6 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +9 -9
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +10 -10
- package/dist/components/Search.js +7 -7
- package/dist/components/Segmented.js +3 -3
- package/dist/components/Select.js +18 -13
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +3 -3
- package/dist/components/Tab.js +11 -11
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +8 -8
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/Divider/Divider.css +10 -13
- package/dist/css/components/Group/Group.css +13 -4
- package/dist/css/components/Link/Link.css +17 -0
- package/dist/types/components/Select/index.d.ts +15 -15
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Badge = require('../../Badge-
|
|
9
|
-
var Text = require('../../Text-
|
|
10
|
-
var Title = require('../../Title-
|
|
8
|
+
var Badge = require('../../Badge-Df7Zxjnk.js');
|
|
9
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
10
|
+
var Title = require('../../Title-ByfOyy-n.js');
|
|
11
11
|
require('react');
|
|
12
12
|
require('lodash/camelCase');
|
|
13
13
|
require('lodash/castArray');
|
|
@@ -21,10 +21,10 @@ require('react-responsive');
|
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../Icon-
|
|
24
|
+
require('../../Icon-D_BDlSSb.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
|
-
require('../../Link-
|
|
27
|
-
require('../../Tooltip-
|
|
26
|
+
require('../../Link-CZ8o5lGW.js');
|
|
27
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
|
|
29
29
|
var tileAppearance = {
|
|
30
30
|
dev: {},
|
|
@@ -38,9 +38,9 @@ var tileConfig = {
|
|
|
38
38
|
};
|
|
39
39
|
function Tile(props) {
|
|
40
40
|
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, size = props.size, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
41
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
41
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
42
42
|
var _a;
|
|
43
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
43
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
44
44
|
}, {});
|
|
45
45
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
46
46
|
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Tooltip = require('../../Tooltip-
|
|
3
|
+
var Tooltip = require('../../Tooltip-hznDyLwa.js');
|
|
4
4
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -19,8 +19,8 @@ require('../utils/setViewportProperty.js');
|
|
|
19
19
|
require('../hooks/useStyles/useStyles.js');
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
|
-
require('../../Text-
|
|
23
|
-
require('../../Title-
|
|
22
|
+
require('../../Text-DwIx33-P.js');
|
|
23
|
+
require('../../Title-ByfOyy-n.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -6,9 +6,9 @@ import castArray from 'lodash/castArray';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { icon16 } from '@itcase/icons/default';
|
|
9
|
-
import { D as Divider } from '../Divider-
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
11
|
-
import { T as Text } from '../Text-
|
|
9
|
+
import { D as Divider } from '../Divider-CUFKsm-9.js';
|
|
10
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
11
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
14
14
|
import '../context/Notifications.js';
|
|
@@ -21,9 +21,9 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../Link-
|
|
25
|
-
import '../Tooltip-
|
|
26
|
-
import '../Title
|
|
24
|
+
import '../Link-Cn7hiWmM.js';
|
|
25
|
+
import '../Tooltip-DP32J5V6.js';
|
|
26
|
+
import '../Title--_epIXkC.js';
|
|
27
27
|
|
|
28
28
|
var accordionAppearance = {
|
|
29
29
|
dev: {},
|
|
@@ -50,9 +50,9 @@ function AccordionItem(props) {
|
|
|
50
50
|
};
|
|
51
51
|
onClick && onClick(thisItemData);
|
|
52
52
|
}, [id, title, content, isExpanded, onClick]);
|
|
53
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
53
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
54
54
|
var _a;
|
|
55
|
-
return (__assign(__assign({},
|
|
55
|
+
return (__assign(__assign({}, resultConfig), (_a = accordionItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
56
56
|
}, {});
|
|
57
57
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
58
58
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
|
|
@@ -116,9 +116,9 @@ function Accordion(props) {
|
|
|
116
116
|
}
|
|
117
117
|
return [];
|
|
118
118
|
}, [children, items, expandedItems, onClickAccordionItem]);
|
|
119
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
119
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
120
120
|
var _a;
|
|
121
|
-
return (__assign(__assign({},
|
|
121
|
+
return (__assign(__assign({}, resultConfig), (_a = accordionConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
122
122
|
}, {});
|
|
123
123
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
124
124
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
7
7
|
import { I as Image } from '../Image-CSzHhlA1.js';
|
|
8
|
-
import { T as Text } from '../Text-
|
|
8
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
@@ -20,9 +20,9 @@ import 'react-inlinesvg';
|
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../Link-
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
23
|
+
import '../Link-Cn7hiWmM.js';
|
|
24
|
+
import '../Tooltip-DP32J5V6.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
27
|
var avatarAppearance = {
|
|
28
28
|
dev: {},
|
|
@@ -41,9 +41,9 @@ function Avatar(props) {
|
|
|
41
41
|
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
42
42
|
return "".concat(firstChar).concat(secondChar);
|
|
43
43
|
}, [firstName, secondName]);
|
|
44
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
44
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
45
45
|
var _a;
|
|
46
|
-
return (__assign(__assign({},
|
|
46
|
+
return (__assign(__assign({}, resultConfig), (_a = avatarConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
47
47
|
}, {});
|
|
48
48
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
49
49
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, _d = propsGenerator.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = propsGenerator.textSize, textSize = _e === void 0 ? 'l' : _e, _f = propsGenerator.textWeight, textWeight = _f === void 0 ? '600' : _f, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass;
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-
|
|
1
|
+
export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-BY030Mwm.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,9 +17,9 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-BF7i3XdQ.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../Link-
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Text-
|
|
25
|
-
import '../Title
|
|
22
|
+
import '../Link-Cn7hiWmM.js';
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Text-aaWArShm.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
@@ -5,9 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
9
|
-
import { a as LinkWrapper } from '../Link-
|
|
10
|
-
import { T as Text } from '../Text-
|
|
8
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
9
|
+
import { a as LinkWrapper } from '../Link-Cn7hiWmM.js';
|
|
10
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
13
13
|
import '../context/Notifications.js';
|
|
@@ -20,8 +20,8 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Title
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Title--_epIXkC.js';
|
|
25
25
|
|
|
26
26
|
function BreadcrumbsItem(props) {
|
|
27
27
|
var className = props.className, text = props.text, textColor = props.textColor, textColorHover = props.textColorHover, textSize = props.textSize, cursor = props.cursor, href = props.href, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, _a = props.set, set = _a === void 0 ? 'default' : _a, onClick = props.onClick, children = props.children;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-K5n8BI_w.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import '../Icon-
|
|
6
|
+
import '../Icon-BF7i3XdQ.js';
|
|
7
7
|
import 'react-inlinesvg';
|
|
8
8
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
@@ -19,8 +19,8 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../Link-
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Text-
|
|
25
|
-
import '../Title
|
|
26
|
-
import '../Loader-
|
|
22
|
+
import '../Link-Cn7hiWmM.js';
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Text-aaWArShm.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
|
+
import '../Loader-BnhUh-g6.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import { L as Label } from '../Label-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
7
|
+
import { L as Label } from '../Label-brG78nLi.js';
|
|
8
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -20,9 +20,9 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Link-
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
23
|
+
import '../Link-Cn7hiWmM.js';
|
|
24
|
+
import '../Tooltip-DP32J5V6.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
27
|
var cellAppearance = {
|
|
28
28
|
dev: {},
|
|
@@ -44,9 +44,9 @@ function Cell(props) {
|
|
|
44
44
|
valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor,
|
|
45
45
|
// valueTextSize,
|
|
46
46
|
valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, before = props.before, after = props.after, isActive = props.isActive, isEqual = props.isEqual, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
47
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
47
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
48
48
|
var _a;
|
|
49
|
-
return (__assign(__assign({},
|
|
49
|
+
return (__assign(__assign({}, resultConfig), (_a = cellConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
50
50
|
}, {});
|
|
51
51
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
52
52
|
/* eslint-disable perfectionist/sort-objects */
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { T as Text } from '../Text-
|
|
5
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -50,9 +50,9 @@ var checkboxConfig = {
|
|
|
50
50
|
};
|
|
51
51
|
function Checkbox(props) {
|
|
52
52
|
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, checked = props.checked, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
53
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
53
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
54
54
|
var _a;
|
|
55
|
-
return (__assign(__assign({},
|
|
55
|
+
return (__assign(__assign({}, resultConfig), (_a = checkboxConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
56
56
|
}, {});
|
|
57
57
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
58
58
|
var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateShapeClass = propsGenerator.stateShapeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -72,9 +72,9 @@ var checkmarkConfig = {
|
|
|
72
72
|
};
|
|
73
73
|
function Checkmark(props) {
|
|
74
74
|
var className = props.className, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isChecked = props.isChecked, onClick = props.onClick;
|
|
75
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
75
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
76
76
|
var _a;
|
|
77
|
-
return (__assign(__assign({},
|
|
77
|
+
return (__assign(__assign({}, resultConfig), (_a = checkmarkConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
78
78
|
}, {});
|
|
79
79
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
80
80
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
|
package/dist/components/Chips.js
CHANGED
|
@@ -4,8 +4,8 @@ import { useMemo } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../Icon-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
7
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
8
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
@@ -19,9 +19,9 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../Link-
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Title
|
|
22
|
+
import '../Link-Cn7hiWmM.js';
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Title--_epIXkC.js';
|
|
25
25
|
|
|
26
26
|
var chipsAppearanceAccent = {
|
|
27
27
|
accent: {
|
|
@@ -111,9 +111,9 @@ function Chips(props) {
|
|
|
111
111
|
var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, onClick = props.onClick, children = props.children;
|
|
112
112
|
var appearanceConfig = useMemo(function () {
|
|
113
113
|
if (appearance) {
|
|
114
|
-
var appearanceProps = appearance.split(' ').reduce(function (
|
|
114
|
+
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
115
115
|
var _a;
|
|
116
|
-
return (__assign(__assign({},
|
|
116
|
+
return (__assign(__assign({}, resultConfig), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
117
117
|
}, {});
|
|
118
118
|
if (isDisabled && chipsConfig.appearance.disabled) {
|
|
119
119
|
Object.assign(appearanceProps, chipsConfig.appearance.disabled);
|
|
@@ -133,7 +133,7 @@ function Chips(props) {
|
|
|
133
133
|
? "fill_".concat(fillClass)
|
|
134
134
|
: "fill_active_".concat(fillActiveClass), !isActive
|
|
135
135
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
136
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "
|
|
136
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
|
|
137
137
|
? labelTextHoverColor
|
|
138
138
|
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
|
|
139
139
|
}
|
|
@@ -4,9 +4,9 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../Icon-
|
|
8
|
-
import { L as Loader } from '../Loader-
|
|
9
|
-
import { T as Text } from '../Text-
|
|
7
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
8
|
+
import { L as Loader } from '../Loader-BnhUh-g6.js';
|
|
9
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -20,9 +20,9 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Link-
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
23
|
+
import '../Link-Cn7hiWmM.js';
|
|
24
|
+
import '../Tooltip-DP32J5V6.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
27
|
var choiceAppearance = {
|
|
28
28
|
accent: {
|
|
@@ -64,15 +64,15 @@ function Choice(props) {
|
|
|
64
64
|
var isChecked = isCheckbox ? event.target.checked : true;
|
|
65
65
|
setActiveSegment && setActiveSegment(item, isChecked);
|
|
66
66
|
}, [isCheckbox, setActiveSegment]);
|
|
67
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
67
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
68
68
|
var _a;
|
|
69
|
-
return (__assign(__assign({},
|
|
69
|
+
return (__assign(__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
70
70
|
}, {});
|
|
71
71
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
72
72
|
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeClass = propsGenerator.shapeClass, wrapClass = propsGenerator.wrapClass;
|
|
73
73
|
// @ts-expect-error
|
|
74
74
|
var styles = useStyles(props).styles;
|
|
75
|
-
return (jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "
|
|
75
|
+
return (jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
76
76
|
// prettier-ignore
|
|
77
77
|
var isActive = typeof active === 'object'
|
|
78
78
|
? String(item.value) === String(active.value)
|
package/dist/components/Code.js
CHANGED
|
@@ -28,9 +28,9 @@ var codeConfig = {
|
|
|
28
28
|
function Code(props) {
|
|
29
29
|
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? 0 : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
30
30
|
var _d = useState(''), otp = _d[0], setOtp = _d[1];
|
|
31
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
31
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
32
32
|
var _a;
|
|
33
|
-
return (__assign(__assign({},
|
|
33
|
+
return (__assign(__assign({}, resultConfig), (_a = codeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
34
34
|
}, {});
|
|
35
35
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
36
36
|
var inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputBorderFocusColorClass = propsGenerator.inputBorderFocusColorClass, inputBorderWidthClass = propsGenerator.inputBorderWidthClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputFillHoverClass = propsGenerator.inputFillHoverClass, inputPlaceholderTextColorClass = propsGenerator.inputPlaceholderTextColorClass, inputShapeClass = propsGenerator.inputShapeClass, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -3,9 +3,9 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
7
|
-
import { G as Group } from '../Group-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { B as Button } from '../Button-K5n8BI_w.js';
|
|
7
|
+
import { G as Group } from '../Group-C8NUU6k5.js';
|
|
8
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -17,15 +17,15 @@ import '../context/UIContext.js';
|
|
|
17
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
18
18
|
import 'react-responsive';
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-BF7i3XdQ.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hooks/useStyles/useStyles.js';
|
|
23
23
|
import 'lodash/maxBy';
|
|
24
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
|
-
import '../Link-
|
|
26
|
-
import '../Tooltip-
|
|
27
|
-
import '../Title
|
|
28
|
-
import '../Loader-
|
|
25
|
+
import '../Link-Cn7hiWmM.js';
|
|
26
|
+
import '../Tooltip-DP32J5V6.js';
|
|
27
|
+
import '../Title--_epIXkC.js';
|
|
28
|
+
import '../Loader-BnhUh-g6.js';
|
|
29
29
|
|
|
30
30
|
function CookiesWarning(props) {
|
|
31
31
|
var className = props.className, _a = props.message, message = _a === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _a, textColor = props.textColor, textSize = props.textSize, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { PartySuggestions } from 'react-dadata';
|
|
6
|
-
import { I as Input } from '../Input-
|
|
6
|
+
import { I as Input } from '../Input-v52BiIsb.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -6,11 +6,11 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../Button-
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
11
|
-
import { I as Input } from '../Input-
|
|
12
|
-
import { L as Label } from '../Label-
|
|
13
|
-
import { T as Text } from '../Text-
|
|
9
|
+
import { B as Button } from '../Button-K5n8BI_w.js';
|
|
10
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
11
|
+
import { I as Input } from '../Input-v52BiIsb.js';
|
|
12
|
+
import { L as Label } from '../Label-brG78nLi.js';
|
|
13
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
14
14
|
import 'lodash/camelCase';
|
|
15
15
|
import 'lodash/castArray';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
@@ -23,11 +23,11 @@ import 'react-responsive';
|
|
|
23
23
|
import '../utils/setViewportProperty.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
|
-
import '../Link-
|
|
27
|
-
import '../Loader-
|
|
26
|
+
import '../Link-Cn7hiWmM.js';
|
|
27
|
+
import '../Loader-BnhUh-g6.js';
|
|
28
28
|
import 'react-inlinesvg';
|
|
29
|
-
import '../Tooltip-
|
|
30
|
-
import '../Title
|
|
29
|
+
import '../Tooltip-DP32J5V6.js';
|
|
30
|
+
import '../Title--_epIXkC.js';
|
|
31
31
|
|
|
32
32
|
var datePickerAppearance = {
|
|
33
33
|
default: {
|
|
@@ -129,9 +129,9 @@ function DatePickerInput(props) {
|
|
|
129
129
|
useEffect(function () {
|
|
130
130
|
setEndDate(end);
|
|
131
131
|
}, [end]);
|
|
132
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
132
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
133
133
|
var _a;
|
|
134
|
-
return (__assign(__assign({},
|
|
134
|
+
return (__assign(__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
135
135
|
}, {});
|
|
136
136
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
137
137
|
var widthClass = propsGenerator.widthClass;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider-
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider-CUFKsm-9.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -22,7 +22,9 @@ function Drawer(props) {
|
|
|
22
22
|
}
|
|
23
23
|
prevIsOpenModalRef.current = Boolean(isOpenModal);
|
|
24
24
|
}, [isOpenModal, onClose]);
|
|
25
|
-
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
25
|
+
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
26
|
+
// Drawer set prefix "EZDrawer" for any id
|
|
27
|
+
customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, "data-tour": dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay",
|
|
26
28
|
// @ts-expect-error
|
|
27
29
|
open: isOpenModal, onClose: onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
28
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-f29l8dds.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,5 +17,5 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../Divider-
|
|
21
|
-
import '../Text-
|
|
20
|
+
import '../Divider-CUFKsm-9.js';
|
|
21
|
+
import '../Text-aaWArShm.js';
|
package/dist/components/Group.js
CHANGED
|
@@ -32,9 +32,9 @@ var heroTitleConfig = {
|
|
|
32
32
|
function HeroTitle(props) {
|
|
33
33
|
var className = props.className, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'h3' : _a, text = props.text, textWrap = props.textWrap, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, mode = props.mode, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
34
34
|
var _c = useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
|
|
35
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
35
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
36
36
|
var _a;
|
|
37
|
-
return (__assign(__assign({},
|
|
37
|
+
return (__assign(__assign({}, resultConfig), (_a = heroTitleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
38
38
|
}, {});
|
|
39
39
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
40
40
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-BF7i3XdQ.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../Link-
|
|
22
|
-
import '../Tooltip-
|
|
23
|
-
import '../Text-
|
|
24
|
-
import '../Title
|
|
21
|
+
import '../Link-Cn7hiWmM.js';
|
|
22
|
+
import '../Tooltip-DP32J5V6.js';
|
|
23
|
+
import '../Text-aaWArShm.js';
|
|
24
|
+
import '../Title--_epIXkC.js';
|
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-
|
|
1
|
+
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-v52BiIsb.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|