@itcase/ui 1.8.58 → 1.8.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar_cjs_CxyEa4gB.js → Avatar_cjs_B-x-GK60.js} +29 -4
- package/dist/{Avatar_es_DQTyqtKx.js → Avatar_es_Dq-ngVWR.js} +29 -4
- package/dist/{Button_cjs_DnkftkHE.js → Button_cjs_mbF1YhaZ.js} +2 -2
- package/dist/{Button_es_kqE4jwUz.js → Button_es_B2N3GsgJ.js} +2 -2
- package/dist/{ChipsGroup_cjs_CymyJ6SH.js → ChipsGroup_cjs_BroKrFnn.js} +37 -4
- package/dist/{ChipsGroup_es_BVXA2F8b.js → ChipsGroup_es_CCN4Bfnp.js} +37 -4
- package/dist/{DatePicker_cjs_DuPePxS9.js → DatePicker_cjs_CMgWyAQ0.js} +1 -1
- package/dist/{DatePicker_es_B84xipuO.js → DatePicker_es_CLJs86S9.js} +1 -1
- package/dist/{DropdownItem_cjs_BtL83PeZ.js → DropdownItem_cjs_DdjN_gRH.js} +3 -3
- package/dist/{DropdownItem_es_BK2bacxA.js → DropdownItem_es_DfEoMbef.js} +3 -3
- package/dist/{Image_cjs_2zEjohYE.js → Image_cjs_B6YlGx8G.js} +2 -2
- package/dist/{Image_es_ChF-63wh.js → Image_es_BvYo_cHH.js} +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/Cell.js +12 -0
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePeriod.js +3 -3
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/Logo.js +3 -3
- package/dist/cjs/components/MenuItem.js +1 -0
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Response.js +9 -17
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Button.js +1 -1
- package/dist/components/Cell.js +12 -0
- package/dist/components/Chips.js +1 -1
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePeriod.js +3 -3
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Image.js +1 -1
- package/dist/components/Logo.js +3 -3
- package/dist/components/MenuItem.js +1 -0
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Response.js +9 -17
- package/dist/css/components/Avatar/Avatar.css +0 -22
- package/dist/css/components/Chips/Chips.css +0 -20
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +3 -4
- package/dist/css/components/Select/Select.css +1 -1
- package/dist/css/components/Swiper/Swiper.css +3 -1
- package/dist/css/styles/align/align_horizontal-reverse.css +20 -5
- package/dist/css/styles/align/align_horizontal.css +24 -8
- package/dist/css/styles/align/align_vertical-reverse.css +19 -7
- package/dist/css/styles/align/align_vertical.css +22 -7
- package/dist/stories/Overview.mdx +1 -1
- package/dist/stories/Playground.mdx +1 -1
- package/dist/types/components/Avatar/appearance/avatarShape.d.ts +25 -0
- package/dist/types/components/Cell/appearance/cellSurface.d.ts +12 -0
- package/dist/types/components/Chips/appearance/chipsShape.d.ts +25 -0
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +8 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
|
-
var Button = require('../../
|
|
9
|
+
var Button = require('../../Button_cjs_mbF1YhaZ.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C-Ux7Tz5.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -4,10 +4,10 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var common = require('@itcase/common');
|
|
7
|
-
var DatePicker = require('../../
|
|
7
|
+
var DatePicker = require('../../DatePicker_cjs_CMgWyAQ0.js');
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var ChipsGroup = require('../../
|
|
10
|
+
var ChipsGroup = require('../../ChipsGroup_cjs_BroKrFnn.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('date-fns/locale');
|
|
13
13
|
require('react-datepicker');
|
|
@@ -22,7 +22,7 @@ require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
|
22
22
|
require('react-responsive');
|
|
23
23
|
require('../utils/setViewportProperty.js');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Button_cjs_mbF1YhaZ.js');
|
|
26
26
|
require('../../Icon_cjs_O7ILYzgW.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../hoc/urlWithAssetPrefix.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DatePicker = require('../../
|
|
3
|
+
var DatePicker = require('../../DatePicker_cjs_CMgWyAQ0.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -22,7 +22,7 @@ require('../utils/setViewportProperty.js');
|
|
|
22
22
|
require('../hooks/useStyles/useStyles.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Button_cjs_mbF1YhaZ.js');
|
|
26
26
|
require('../../Icon_cjs_O7ILYzgW.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../hoc/urlWithAssetPrefix.js');
|
|
@@ -30,12 +30,12 @@ var logoConfig = {
|
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
var Logo = urlWithAssetPrefix.urlWithAssetPrefix(function Logo(props) {
|
|
33
|
-
var className = props.className, appearance = props.appearance,
|
|
33
|
+
var className = props.className, appearance = props.appearance, href = props.href, link = props.link;
|
|
34
34
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, logoConfig);
|
|
35
35
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
36
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, widthClass = propsGenerator.widthClass;
|
|
36
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
37
37
|
var logo = useStyles.useStyles(props).styles;
|
|
38
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass),
|
|
38
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass), sizeClass && "logo_size_".concat(sizeClass), widthClass && "width_".concat(widthClass)), style: logo, children: link || href ? (jsxRuntime.jsx(Link.LinkWrapper, { className: "logo__link", href: link || href, children: jsxRuntime.jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title }) })) : (jsxRuntime.jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title })) }));
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
exports.Logo = Logo;
|
|
@@ -145,6 +145,7 @@ var menuItemAppearanceSurface = {
|
|
|
145
145
|
fillActive: 'surfaceHover',
|
|
146
146
|
fillActiveHover: 'surfaceHover',
|
|
147
147
|
fillHover: 'surfaceHover',
|
|
148
|
+
labelTextHoverColor: 'accentTextSecondary',
|
|
148
149
|
labelTextColor: 'surfaceTextPrimary',
|
|
149
150
|
borderColor: 'surfaceBorderQuaternary',
|
|
150
151
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
@@ -8,7 +8,7 @@ var ReactPaginate = require('react-paginate');
|
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var DropdownItem = require('../../
|
|
11
|
+
var DropdownItem = require('../../DropdownItem_cjs_DdjN_gRH.js');
|
|
12
12
|
var Icon = require('../../Icon_cjs_O7ILYzgW.js');
|
|
13
13
|
var Text = require('../../Text_cjs_C-Ux7Tz5.js');
|
|
14
14
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -4,12 +4,11 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var SVG = require('react-inlinesvg');
|
|
8
7
|
var urlWithAssetPrefix = require('../hoc/urlWithAssetPrefix.js');
|
|
9
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
12
|
-
var Button = require('../../
|
|
11
|
+
var Button = require('../../Button_cjs_mbF1YhaZ.js');
|
|
13
12
|
var Group = require('../../Group_cjs_DHNBxjH3.js');
|
|
14
13
|
var Text = require('../../Text_cjs_C-Ux7Tz5.js');
|
|
15
14
|
require('@itcase/common');
|
|
@@ -26,6 +25,7 @@ require('../utils/setViewportProperty.js');
|
|
|
26
25
|
require('lodash/maxBy');
|
|
27
26
|
require('../hooks/useStyles/styleAttributes.js');
|
|
28
27
|
require('../../Icon_cjs_O7ILYzgW.js');
|
|
28
|
+
require('react-inlinesvg');
|
|
29
29
|
require('../../Link_cjs_BqT6eVl6.js');
|
|
30
30
|
require('../../Loader_cjs_DXJ1zsFJ.js');
|
|
31
31
|
|
|
@@ -167,14 +167,13 @@ var Response = urlWithAssetPrefix.urlWithAssetPrefix(function Response(props) {
|
|
|
167
167
|
return jsxRuntime.jsx(Image, tslib_es6.__assign({}, sizes));
|
|
168
168
|
}
|
|
169
169
|
if (src) {
|
|
170
|
-
if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
170
|
+
// if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
171
|
+
// if (svgFillClass) {
|
|
172
|
+
// return <SVG src={src} preProcessor={removeFillStroke} />
|
|
173
|
+
// } else {
|
|
174
|
+
// return <SVG src={src} />
|
|
175
|
+
// }
|
|
176
|
+
// }
|
|
178
177
|
return jsxRuntime.jsx("img", { src: src });
|
|
179
178
|
}
|
|
180
179
|
return null;
|
|
@@ -187,13 +186,6 @@ var Response = urlWithAssetPrefix.urlWithAssetPrefix(function Response(props) {
|
|
|
187
186
|
secondaryButton ||
|
|
188
187
|
appearanceConfig) && (jsxRuntime.jsxs(Group.Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
|
|
189
188
|
});
|
|
190
|
-
var removeFillStroke = function (code) {
|
|
191
|
-
return code
|
|
192
|
-
.replace(/fill=".*?"/g, 'fill=""')
|
|
193
|
-
.replace(/fill='.*?'/g, "fill=''")
|
|
194
|
-
.replace(/stroke=".*?"/g, 'stroke=""')
|
|
195
|
-
.replace(/stroke='.*?'/g, "stroke=''");
|
|
196
|
-
};
|
|
197
189
|
|
|
198
190
|
exports.Response = Response;
|
|
199
191
|
exports.responseAppearance = responseAppearance;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_Dq-ngVWR.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -24,4 +24,4 @@ import 'lodash/maxBy';
|
|
|
24
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
26
|
import '../Text_es_BdFAdf7M.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Image_es_BvYo_cHH.js';
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_Dq-ngVWR.js';
|
|
7
7
|
import { G as Group } from '../Group_es_B2yGEJfj.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -25,7 +25,7 @@ import 'react-inlinesvg';
|
|
|
25
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
26
|
import '../context/UrlAssetPrefix.js';
|
|
27
27
|
import '../Link_es_BnUIX0QT.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Image_es_BvYo_cHH.js';
|
|
29
29
|
|
|
30
30
|
var avatarStackAppearanceSize = {
|
|
31
31
|
size16: {
|
package/dist/components/Cell.js
CHANGED
|
@@ -102,7 +102,10 @@ var cellAppearanceSurface = {
|
|
|
102
102
|
surfacePrimary: {
|
|
103
103
|
fill: 'surfacePrimary',
|
|
104
104
|
fillHover: 'surfacePrimaryHover',
|
|
105
|
+
titleTextSize: 'surfaceTextPrimary',
|
|
105
106
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
107
|
+
valueTextColor: 'surfaceTextPrimary',
|
|
108
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
106
109
|
titleLabelAppearance: 'accentPrimary',
|
|
107
110
|
labelTextColor: 'surfaceTextPrimary',
|
|
108
111
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -112,7 +115,10 @@ var cellAppearanceSurface = {
|
|
|
112
115
|
surfaceSecondary: {
|
|
113
116
|
fill: 'surfaceSecondary',
|
|
114
117
|
fillHover: 'surfaceSecondaryHover',
|
|
118
|
+
titleTextSize: 'surfaceTextPrimary',
|
|
119
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
115
120
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
121
|
+
valueTextColor: 'surfaceTextPrimary',
|
|
116
122
|
titleLabelAppearance: 'accentPrimary',
|
|
117
123
|
labelTextColor: 'surfaceTextPrimary',
|
|
118
124
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -122,7 +128,10 @@ var cellAppearanceSurface = {
|
|
|
122
128
|
surfaceTertiary: {
|
|
123
129
|
fill: 'surfaceTertiary',
|
|
124
130
|
fillHover: 'surfaceTertiaryHover',
|
|
131
|
+
titleTextSize: 'surfaceTextPrimary',
|
|
132
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
125
133
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
134
|
+
valueTextColor: 'surfaceTextPrimary',
|
|
126
135
|
titleLabelAppearance: 'accentPrimary',
|
|
127
136
|
labelTextColor: 'surfaceTextPrimary',
|
|
128
137
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -130,7 +139,10 @@ var cellAppearanceSurface = {
|
|
|
130
139
|
valueLabelAppearance: 'accentPrimary',
|
|
131
140
|
},
|
|
132
141
|
surfaceQuaternary: {
|
|
142
|
+
titleTextSize: 'surfaceTextPrimary',
|
|
133
143
|
fill: 'surfaceQuaternary',
|
|
144
|
+
valueTextColor: 'surfaceTextPrimary',
|
|
145
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
134
146
|
fillHover: 'surfaceQuaternaryHover',
|
|
135
147
|
titleIconItemFill: 'surfaceItemPrimary',
|
|
136
148
|
titleLabelAppearance: 'accentPrimary',
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CCN4Bfnp.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_B2N3GsgJ.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
5
|
-
import { D as DatePickerInput } from '../
|
|
5
|
+
import { D as DatePickerInput } from '../DatePicker_es_CLJs86S9.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
8
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CCN4Bfnp.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
@@ -20,7 +20,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Button_es_B2N3GsgJ.js';
|
|
24
24
|
import '../Icon_es_BGR9vYtq.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CLJs86S9.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Button_es_B2N3GsgJ.js';
|
|
24
24
|
import '../Icon_es_BGR9vYtq.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_DfEoMbef.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
package/dist/components/Image.js
CHANGED
package/dist/components/Logo.js
CHANGED
|
@@ -28,12 +28,12 @@ var logoConfig = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
var Logo = urlWithAssetPrefix(function Logo(props) {
|
|
31
|
-
var className = props.className, appearance = props.appearance,
|
|
31
|
+
var className = props.className, appearance = props.appearance, href = props.href, link = props.link;
|
|
32
32
|
var appearanceConfig = useAppearanceConfig(appearance, logoConfig);
|
|
33
33
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
34
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, widthClass = propsGenerator.widthClass;
|
|
34
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
35
35
|
var logo = useStyles(props).styles;
|
|
36
|
-
return (jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass),
|
|
36
|
+
return (jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass), sizeClass && "logo_size_".concat(sizeClass), widthClass && "width_".concat(widthClass)), style: logo, children: link || href ? (jsx(LinkWrapper, { className: "logo__link", href: link || href, children: jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title }) })) : (jsx("img", { className: "logo__image", src: src, title: title || alt, alt: alt || title })) }));
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export { Logo, logoConfig };
|
|
@@ -143,6 +143,7 @@ var menuItemAppearanceSurface = {
|
|
|
143
143
|
fillActive: 'surfaceHover',
|
|
144
144
|
fillActiveHover: 'surfaceHover',
|
|
145
145
|
fillHover: 'surfaceHover',
|
|
146
|
+
labelTextHoverColor: 'accentTextSecondary',
|
|
146
147
|
labelTextColor: 'surfaceTextPrimary',
|
|
147
148
|
borderColor: 'surfaceBorderQuaternary',
|
|
148
149
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
@@ -6,7 +6,7 @@ import ReactPaginate from 'react-paginate';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_DfEoMbef.js';
|
|
10
10
|
import { I as Icon } from '../Icon_es_BGR9vYtq.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -2,12 +2,11 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import SVG from 'react-inlinesvg';
|
|
6
5
|
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
7
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from '../
|
|
9
|
+
import { B as Button } from '../Button_es_B2N3GsgJ.js';
|
|
11
10
|
import { G as Group } from '../Group_es_B2yGEJfj.js';
|
|
12
11
|
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
13
12
|
import '@itcase/common';
|
|
@@ -24,6 +23,7 @@ import '../utils/setViewportProperty.js';
|
|
|
24
23
|
import 'lodash/maxBy';
|
|
25
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
25
|
import '../Icon_es_BGR9vYtq.js';
|
|
26
|
+
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_BnUIX0QT.js';
|
|
28
28
|
import '../Loader_es_D_NFpg8C.js';
|
|
29
29
|
|
|
@@ -165,14 +165,13 @@ var Response = urlWithAssetPrefix(function Response(props) {
|
|
|
165
165
|
return jsx(Image, __assign({}, sizes));
|
|
166
166
|
}
|
|
167
167
|
if (src) {
|
|
168
|
-
if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
168
|
+
// if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
169
|
+
// if (svgFillClass) {
|
|
170
|
+
// return <SVG src={src} preProcessor={removeFillStroke} />
|
|
171
|
+
// } else {
|
|
172
|
+
// return <SVG src={src} />
|
|
173
|
+
// }
|
|
174
|
+
// }
|
|
176
175
|
return jsx("img", { src: src });
|
|
177
176
|
}
|
|
178
177
|
return null;
|
|
@@ -185,12 +184,5 @@ var Response = urlWithAssetPrefix(function Response(props) {
|
|
|
185
184
|
secondaryButton ||
|
|
186
185
|
appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
|
|
187
186
|
});
|
|
188
|
-
var removeFillStroke = function (code) {
|
|
189
|
-
return code
|
|
190
|
-
.replace(/fill=".*?"/g, 'fill=""')
|
|
191
|
-
.replace(/fill='.*?'/g, "fill=''")
|
|
192
|
-
.replace(/stroke=".*?"/g, 'stroke=""')
|
|
193
|
-
.replace(/stroke='.*?'/g, "stroke=''");
|
|
194
|
-
};
|
|
195
187
|
|
|
196
188
|
export { Response, responseAppearance, responseConfig };
|
|
@@ -50,28 +50,6 @@
|
|
|
50
50
|
background-position: -200%;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
.avatar {
|
|
54
|
-
&_shape {
|
|
55
|
-
&_circular {
|
|
56
|
-
^^&__image,
|
|
57
|
-
^^&__wrapper {
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
&_geometric {
|
|
62
|
-
^^&__image,
|
|
63
|
-
^^&__wrapper {
|
|
64
|
-
border-radius: 0;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&_rounded {
|
|
68
|
-
^^&__image,
|
|
69
|
-
^^&__wrapper {
|
|
70
|
-
border-radius: var(--avatar-shape-rounded);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
53
|
/* stylelint-disable prettier/prettier */
|
|
76
54
|
.avatar {
|
|
77
55
|
&_size {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
.chips {
|
|
10
9
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
11
10
|
&_size_$(size) {
|
|
@@ -18,23 +17,6 @@
|
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
.chips {
|
|
23
|
-
&_shape {
|
|
24
|
-
&_rounded {
|
|
25
|
-
border-radius: var(--chips-shape-rounded-default);
|
|
26
|
-
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
27
|
-
&^^&_size_$(size) {
|
|
28
|
-
border-radius: var(--chips-$(size)-shape-rounded);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
&_circular {
|
|
33
|
-
border-radius: 20px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
20
|
.chips {
|
|
39
21
|
&&_skeleton {
|
|
40
22
|
background-size: 200% !important;
|
|
@@ -51,7 +33,6 @@
|
|
|
51
33
|
}
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
|
-
|
|
55
36
|
@keyframes chipsSkeleton {
|
|
56
37
|
0% {
|
|
57
38
|
background-position: 200%;
|
|
@@ -60,7 +41,6 @@
|
|
|
60
41
|
background-position: -200%;
|
|
61
42
|
}
|
|
62
43
|
}
|
|
63
|
-
|
|
64
44
|
:root {
|
|
65
45
|
/* Default */
|
|
66
46
|
--chips-shape-rounded-default: 8px;
|
|
@@ -12,17 +12,16 @@
|
|
|
12
12
|
scroll-behavior: auto;
|
|
13
13
|
}
|
|
14
14
|
&--hide-scrollbars {
|
|
15
|
-
/* overflow: hidden;
|
|
16
15
|
overflow: -moz-scrollbars-none;
|
|
17
16
|
-ms-overflow-style: none;
|
|
18
|
-
scrollbar-width: none;
|
|
19
|
-
|
|
17
|
+
scrollbar-width: none;
|
|
18
|
+
&::-webkit-scrollbar {
|
|
20
19
|
width: 0 !important;
|
|
21
20
|
height: 0 !important;
|
|
22
21
|
background: transparent !important;
|
|
23
22
|
display: none !important;
|
|
24
23
|
appearance: none !important;
|
|
25
|
-
}
|
|
24
|
+
}
|
|
26
25
|
}
|
|
27
26
|
&--native-scroll {
|
|
28
27
|
overflow: auto;
|
|
@@ -902,11 +902,13 @@ div.swiper-block__item {
|
|
|
902
902
|
|
|
903
903
|
.swiper-block {
|
|
904
904
|
&&_type_step {
|
|
905
|
-
min-height: 100vh;
|
|
906
905
|
display: flex;
|
|
907
906
|
align-items: center;
|
|
907
|
+
flex-grow: 1;
|
|
908
908
|
^&__swiper {
|
|
909
|
+
width: 100%;
|
|
909
910
|
height: 100%;
|
|
911
|
+
align-items: center;
|
|
910
912
|
display: flex;
|
|
911
913
|
}
|
|
912
914
|
& .swiper-wrapper {
|
|
@@ -1,49 +1,64 @@
|
|
|
1
|
+
%align-horizontal-reverse {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row-reverse;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.align {
|
|
2
7
|
&_horizontal-reverse {
|
|
3
8
|
display: flex;
|
|
4
9
|
flex-direction: row-reverse;
|
|
5
|
-
|
|
10
|
+
@extend %align-horizontal-reverse;
|
|
11
|
+
&-top {
|
|
6
12
|
&-left {
|
|
7
13
|
align-items: flex-start;
|
|
14
|
+
@extend %align-horizontal-reverse;
|
|
8
15
|
}
|
|
9
16
|
&-center {
|
|
10
17
|
text-align: center;
|
|
11
18
|
justify-content: center;
|
|
12
19
|
align-items: flex-start;
|
|
20
|
+
@extend %align-horizontal-reverse;
|
|
13
21
|
}
|
|
14
22
|
&-right {
|
|
15
23
|
text-align: right;
|
|
16
24
|
justify-content: flex-end;
|
|
17
25
|
align-items: flex-start;
|
|
26
|
+
@extend %align-horizontal-reverse;
|
|
18
27
|
}
|
|
19
28
|
}
|
|
20
|
-
|
|
29
|
+
&-left {
|
|
21
30
|
align-items: center;
|
|
31
|
+
@extend %align-horizontal-reverse;
|
|
22
32
|
}
|
|
23
|
-
|
|
33
|
+
&-center {
|
|
24
34
|
text-align: center;
|
|
25
35
|
justify-content: center;
|
|
26
36
|
align-items: center;
|
|
37
|
+
@extend %align-horizontal-reverse;
|
|
27
38
|
}
|
|
28
|
-
|
|
39
|
+
&-right {
|
|
29
40
|
text-align: right;
|
|
30
41
|
justify-content: flex-end;
|
|
31
42
|
align-items: center;
|
|
43
|
+
@extend %align-horizontal-reverse;
|
|
32
44
|
}
|
|
33
|
-
|
|
45
|
+
&-bottom {
|
|
34
46
|
&-left {
|
|
35
47
|
flex-direction: row;
|
|
36
48
|
align-items: flex-end;
|
|
49
|
+
@extend %align-horizontal-reverse;
|
|
37
50
|
}
|
|
38
51
|
&-center {
|
|
39
52
|
text-align: center;
|
|
40
53
|
justify-content: center;
|
|
41
54
|
align-items: flex-end;
|
|
55
|
+
@extend %align-horizontal-reverse;
|
|
42
56
|
}
|
|
43
57
|
&-right {
|
|
44
58
|
text-align: right;
|
|
45
59
|
justify-content: flex-end;
|
|
46
60
|
align-items: flex-end;
|
|
61
|
+
@extend %align-horizontal-reverse;
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
64
|
}
|