@itcase/ui 1.6.0 → 1.7.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-BE28NFES.js} +4 -4
- package/dist/{Badge-JXM0G_0I.js → Badge-C_6Iofu7.js} +4 -4
- package/dist/{Button-BmSyIDb_.js → Button-Df425Vot.js} +6 -6
- package/dist/{Button-DCtRrkgc.js → Button-sYpJIJPv.js} +6 -6
- 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-D5nvxHx0.js} +2 -2
- package/dist/{Group-BVlu5z77.js → Group-NYDjw1CD.js} +2 -2
- package/dist/{Icon-BOEOspTF.js → Icon-BzIdIgGY.js} +1 -1
- package/dist/{Icon-DU2T-nfY.js → Icon-dS-it4rs.js} +1 -1
- 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/{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 +9 -9
- package/dist/cjs/components/Avatar.js +6 -6
- package/dist/cjs/components/Badge.js +5 -5
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +6 -6
- package/dist/cjs/components/Cell.js +7 -7
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +6 -6
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +7 -7
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/Divider.js +1 -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 +4 -4
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +2 -2
- package/dist/cjs/components/InputPassword.js +6 -6
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/MenuItem.js +3 -3
- 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 +8 -8
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +9 -9
- package/dist/cjs/components/Search.js +6 -6
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +17 -12
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +3 -3
- package/dist/cjs/components/Tab.js +8 -8
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +7 -7
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +9 -9
- package/dist/components/Avatar.js +6 -6
- package/dist/components/Badge.js +5 -5
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +6 -6
- package/dist/components/Cell.js +7 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +6 -6
- package/dist/components/Choice.js +7 -7
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +7 -7
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/Divider.js +1 -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 +4 -4
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +2 -2
- package/dist/components/InputPassword.js +6 -6
- package/dist/components/Label.js +4 -4
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/MenuItem.js +3 -3
- 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 +8 -8
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +9 -9
- package/dist/components/Search.js +6 -6
- package/dist/components/Segmented.js +3 -3
- package/dist/components/Select.js +17 -12
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +3 -3
- package/dist/components/Tab.js +8 -8
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +7 -7
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/types/components/Select/index.d.ts +15 -15
- package/package.json +1 -1
|
@@ -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-sYpJIJPv.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-BzIdIgGY.js';
|
|
7
7
|
import 'react-inlinesvg';
|
|
8
8
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
@@ -20,7 +20,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import '../Link-aBsZ1d0Q.js';
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Text-
|
|
25
|
-
import '../Title
|
|
26
|
-
import '../Loader-
|
|
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-BzIdIgGY.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';
|
|
@@ -21,8 +21,8 @@ import 'lodash/maxBy';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link-aBsZ1d0Q.js';
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
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-BzIdIgGY.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';
|
|
@@ -20,8 +20,8 @@ import 'lodash/maxBy';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../Link-aBsZ1d0Q.js';
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Title
|
|
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);
|
|
@@ -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-BzIdIgGY.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';
|
|
@@ -21,8 +21,8 @@ import 'lodash/maxBy';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link-aBsZ1d0Q.js';
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
24
|
+
import '../Tooltip-DP32J5V6.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
27
|
var choiceAppearance = {
|
|
28
28
|
accent: {
|
|
@@ -64,9 +64,9 @@ 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;
|
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-sYpJIJPv.js';
|
|
7
|
+
import { G as Group } from '../Group-D5nvxHx0.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-BzIdIgGY.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
25
|
import '../Link-aBsZ1d0Q.js';
|
|
26
|
-
import '../Tooltip-
|
|
27
|
-
import '../Title
|
|
28
|
-
import '../Loader-
|
|
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-sYpJIJPv.js';
|
|
10
|
+
import { I as Icon } from '../Icon-BzIdIgGY.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';
|
|
@@ -24,10 +24,10 @@ import '../utils/setViewportProperty.js';
|
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
26
|
import '../Link-aBsZ1d0Q.js';
|
|
27
|
-
import '../Loader-
|
|
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';
|
|
@@ -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-BzIdIgGY.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,6 +19,6 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../Link-aBsZ1d0Q.js';
|
|
22
|
-
import '../Tooltip-
|
|
23
|
-
import '../Text-
|
|
24
|
-
import '../Title
|
|
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';
|
|
@@ -30,9 +30,9 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
30
30
|
_a = props.type,
|
|
31
31
|
// state,
|
|
32
32
|
type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
33
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
33
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
34
34
|
var _a;
|
|
35
|
-
return (__assign(__assign({},
|
|
35
|
+
return (__assign(__assign({}, resultConfig), (_a = inputMaskConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
36
36
|
}, {});
|
|
37
37
|
// const stateConfig = useMemo(
|
|
38
38
|
// () => state && inputMaskConfig.state && inputMaskConfig.state[state],
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useMemo, useCallback } 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-BzIdIgGY.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
@@ -19,9 +19,9 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../Link-aBsZ1d0Q.js';
|
|
22
|
-
import '../Tooltip-
|
|
23
|
-
import '../Text-
|
|
24
|
-
import '../Title
|
|
22
|
+
import '../Tooltip-DP32J5V6.js';
|
|
23
|
+
import '../Text-aaWArShm.js';
|
|
24
|
+
import '../Title--_epIXkC.js';
|
|
25
25
|
|
|
26
26
|
var InputPasswordAppearance = {
|
|
27
27
|
dev: {
|
|
@@ -103,9 +103,9 @@ function InputPassword(props) {
|
|
|
103
103
|
// () => state && inputPasswordConfig.state && inputPasswordConfig.state[state],
|
|
104
104
|
// [state, inputPasswordConfig],
|
|
105
105
|
// )
|
|
106
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
106
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
107
107
|
var _a;
|
|
108
|
-
return (__assign(__assign({},
|
|
108
|
+
return (__assign(__assign({}, resultConfig), (_a = inputPasswordConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
109
109
|
}, {});
|
|
110
110
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
111
111
|
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-brG78nLi.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,6 +17,6 @@ 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 '../Text-
|
|
21
|
-
import '../Tooltip-
|
|
22
|
-
import '../Title
|
|
20
|
+
import '../Text-aaWArShm.js';
|
|
21
|
+
import '../Tooltip-DP32J5V6.js';
|
|
22
|
+
import '../Title--_epIXkC.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-BnhUh-g6.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,4 +17,4 @@ 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 '../Text-
|
|
20
|
+
import '../Text-aaWArShm.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -26,9 +26,9 @@ var logoConfig = {
|
|
|
26
26
|
};
|
|
27
27
|
function Logo(props) {
|
|
28
28
|
var className = props.className, appearance = props.appearance, size = props.size, href = props.href, link = props.link, mode = props.mode;
|
|
29
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
29
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
30
30
|
var _a;
|
|
31
|
-
return (__assign(__assign({},
|
|
31
|
+
return (__assign(__assign({}, resultConfig), (_a = logoConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
32
32
|
}, {});
|
|
33
33
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
34
34
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, source = propsGenerator.source, widthClass = propsGenerator.widthClass;
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
7
|
import { L as Link } from '../Link-aBsZ1d0Q.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';
|
|
@@ -36,9 +36,9 @@ var menuItemConfig = {
|
|
|
36
36
|
};
|
|
37
37
|
function MenuItem(props) {
|
|
38
38
|
var className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, descTextColor = props.descTextColor, descTextColorHover = props.descTextColorHover, descTextGradient = props.descTextGradient, descTextSize = props.descTextSize, descTextStyle = props.descTextStyle, descTextWeight = props.descTextWeight, descTextWrap = props.descTextWrap, textColor = props.textColor, textColorActive = props.textColorActive, textColorHover = props.textColorHover, textGradient = props.textGradient, textSize = props.textSize, textStyle = props.textStyle, textWeight = props.textWeight, textWrap = props.textWrap, href = props.href, link = props.link, linkFill = props.linkFill, rel = props.rel, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, isHover = props.isHover, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
39
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
39
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
40
40
|
var _a;
|
|
41
|
-
return (__assign(__assign({},
|
|
41
|
+
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
42
42
|
}, {});
|
|
43
43
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
44
44
|
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,9 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { O as Overlay } from '../Overlay-
|
|
9
|
-
import { T as Title } from '../Title
|
|
10
|
-
import { L as Loader } from '../Loader-
|
|
8
|
+
import { O as Overlay } from '../Overlay-Be9UCtR9.js';
|
|
9
|
+
import { T as Title } from '../Title--_epIXkC.js';
|
|
10
|
+
import { L as Loader } from '../Loader-BnhUh-g6.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
@@ -20,7 +20,7 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../Text-
|
|
23
|
+
import '../Text-aaWArShm.js';
|
|
24
24
|
|
|
25
25
|
var modalAppearanceSurface = {
|
|
26
26
|
surfacePrimary: {
|
|
@@ -141,9 +141,9 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
141
141
|
}, [addModalProps, className, modalQuerySelector]);
|
|
142
142
|
// Save ref things
|
|
143
143
|
useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
|
|
144
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
144
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
145
145
|
var _a;
|
|
146
|
-
return (__assign(__assign({},
|
|
146
|
+
return (__assign(__assign({}, resultConfig), (_a = modalConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
147
147
|
}, {});
|
|
148
148
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
149
149
|
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayFillGradient = propsGenerator.overlayFillGradient, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass;
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
5
|
-
import { T as Text } from '../Text-
|
|
5
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
6
6
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
7
7
|
import '../context/UIContext.js';
|
|
8
8
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-
|
|
1
|
+
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-Be9UCtR9.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -5,9 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import ceil from 'lodash/ceil';
|
|
6
6
|
import ReactPaginate from 'react-paginate';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-
|
|
9
|
-
import { I as Icon } from '../Icon-
|
|
10
|
-
import { T as Text } from '../Text-
|
|
8
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-f29l8dds.js';
|
|
9
|
+
import { I as Icon } from '../Icon-BzIdIgGY.js';
|
|
10
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
@@ -21,11 +21,11 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
|
-
import '../Divider-
|
|
24
|
+
import '../Divider-CUFKsm-9.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../Link-aBsZ1d0Q.js';
|
|
27
|
-
import '../Tooltip-
|
|
28
|
-
import '../Title
|
|
27
|
+
import '../Tooltip-DP32J5V6.js';
|
|
28
|
+
import '../Title--_epIXkC.js';
|
|
29
29
|
|
|
30
30
|
var paginationAppearance = {
|
|
31
31
|
default: {
|
|
@@ -126,9 +126,9 @@ function Pagination(props) {
|
|
|
126
126
|
}
|
|
127
127
|
return 0;
|
|
128
128
|
}, [pageNumber]);
|
|
129
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
129
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
130
130
|
var _a;
|
|
131
|
-
return (__assign(__assign({},
|
|
131
|
+
return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
132
132
|
}, {});
|
|
133
133
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
134
134
|
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, gapClass = propsGenerator.gapClass;
|
package/dist/components/Panel.js
CHANGED
|
@@ -4,8 +4,8 @@ import React 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 { G as Group } from '../Group-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
7
|
+
import { G as Group } from '../Group-D5nvxHx0.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';
|
|
@@ -27,9 +27,9 @@ var panelConfig = {
|
|
|
27
27
|
};
|
|
28
28
|
var Panel = React.forwardRef(function Panel(props, ref) {
|
|
29
29
|
var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
|
|
30
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
30
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
31
31
|
var _a;
|
|
32
|
-
return (__assign(__assign({},
|
|
32
|
+
return (__assign(__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
33
33
|
}, {});
|
|
34
34
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
35
35
|
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
package/dist/components/Radio.js
CHANGED
|
@@ -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';
|
|
@@ -49,9 +49,9 @@ var radioConfig = {
|
|
|
49
49
|
};
|
|
50
50
|
function Radio(props) {
|
|
51
51
|
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, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, onChange = props.onChange;
|
|
52
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
52
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
53
53
|
var _a;
|
|
54
|
-
return (__assign(__assign({},
|
|
54
|
+
return (__assign(__assign({}, resultConfig), (_a = radioConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
55
55
|
}, {});
|
|
56
56
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
57
57
|
var fillClass = propsGenerator.fillClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b, stateBorderColorClass = propsGenerator.stateBorderColorClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateCheckmarkFillClass = propsGenerator.stateCheckmarkFillClass, stateShapeClass = propsGenerator.stateShapeClass;
|