@itcase/ui 1.8.54 → 1.8.56

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.
Files changed (29) hide show
  1. package/dist/{Button_cjs_DUciIEhV.js → Button_cjs_DnkftkHE.js} +1 -1
  2. package/dist/{Button_es_CaVzZgqG.js → Button_es_kqE4jwUz.js} +1 -1
  3. package/dist/{DatePicker_cjs_B2lmtIti.js → DatePicker_cjs_DuPePxS9.js} +1 -1
  4. package/dist/{DatePicker_es_CfT5zDjb.js → DatePicker_es_B84xipuO.js} +1 -1
  5. package/dist/{Loader_cjs_D_n5PrK5.js → Loader_cjs_DXJ1zsFJ.js} +0 -1
  6. package/dist/{Loader_es_DXVVV9LE.js → Loader_es_D_NFpg8C.js} +0 -1
  7. package/dist/cjs/components/Button.js +2 -2
  8. package/dist/cjs/components/Choice.js +1 -1
  9. package/dist/cjs/components/CookiesWarning.js +2 -2
  10. package/dist/cjs/components/DatePeriod.js +3 -3
  11. package/dist/cjs/components/DatePicker.js +3 -3
  12. package/dist/cjs/components/Loader.js +1 -1
  13. package/dist/cjs/components/Modal.js +1 -1
  14. package/dist/cjs/components/Response.js +3 -3
  15. package/dist/cjs/components/Segmented.js +28 -3
  16. package/dist/components/Button.js +2 -2
  17. package/dist/components/Choice.js +1 -1
  18. package/dist/components/CookiesWarning.js +2 -2
  19. package/dist/components/DatePeriod.js +3 -3
  20. package/dist/components/DatePicker.js +3 -3
  21. package/dist/components/Loader.js +1 -1
  22. package/dist/components/Modal.js +1 -1
  23. package/dist/components/Response.js +3 -3
  24. package/dist/components/Segmented.js +28 -3
  25. package/dist/css/components/Response/Response.css +6 -1
  26. package/dist/css/components/Segmented/Segmented.css +0 -12
  27. package/dist/css/components/Swiper/Swiper.css +2 -1
  28. package/dist/types/components/Segmented/appearance/segmentedShape.d.ts +25 -0
  29. package/package.json +3 -3
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var Icon = require('./Icon_cjs_O7ILYzgW.js');
7
7
  var Link = require('./Link_cjs_BqT6eVl6.js');
8
- var Loader = require('./Loader_cjs_D_n5PrK5.js');
8
+ var Loader = require('./Loader_cjs_DXJ1zsFJ.js');
9
9
  var Text = require('./Text_cjs_C-Ux7Tz5.js');
10
10
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
11
11
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { I as Icon } from './Icon_es_BGR9vYtq.js';
5
5
  import { a as LinkWrapper } from './Link_es_BnUIX0QT.js';
6
- import { L as Loader } from './Loader_es_DXVVV9LE.js';
6
+ import { L as Loader } from './Loader_es_D_NFpg8C.js';
7
7
  import { T as Text } from './Text_es_BdFAdf7M.js';
8
8
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
9
9
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -9,7 +9,7 @@ var DatePicker = require('react-datepicker');
9
9
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
10
10
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
12
- var Button = require('./Button_cjs_DUciIEhV.js');
12
+ var Button = require('./Button_cjs_DnkftkHE.js');
13
13
  var Icon = require('./Icon_cjs_O7ILYzgW.js');
14
14
  var Input = require('./Input_cjs_BGLd0EQu.js');
15
15
  var Label = require('./Label_cjs_eQIgvtt7.js');
@@ -7,7 +7,7 @@ import DatePicker from 'react-datepicker';
7
7
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { useStyles } from './hooks/useStyles/useStyles.js';
10
- import { B as Button } from './Button_es_CaVzZgqG.js';
10
+ import { B as Button } from './Button_es_kqE4jwUz.js';
11
11
  import { I as Icon } from './Icon_es_BGR9vYtq.js';
12
12
  import { I as Input } from './Input_es_D2mNCqiH.js';
13
13
  import { L as Label } from './Label_es_BQDu9dwH.js';
@@ -104,7 +104,6 @@ function Loader(props) {
104
104
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, loaderConfig);
105
105
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
106
106
  var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
107
- // @ts-expect-error
108
107
  var loader = useStyles.useStyles(props).styles;
109
108
  return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
110
109
  ? "shape-strength_".concat(shapeStrengthClass)
@@ -102,7 +102,6 @@ function Loader(props) {
102
102
  var appearanceConfig = useAppearanceConfig(appearance, loaderConfig);
103
103
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
104
104
  var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
105
- // @ts-expect-error
106
105
  var loader = useStyles(props).styles;
107
106
  return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
108
107
  ? "shape-strength_".concat(shapeStrengthClass)
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button_cjs_DUciIEhV.js');
3
+ var Button = require('../../Button_cjs_DnkftkHE.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -26,7 +26,7 @@ require('lodash/maxBy');
26
26
  require('../hooks/useStyles/styleAttributes.js');
27
27
  require('../../Link_cjs_BqT6eVl6.js');
28
28
  require('../../Text_cjs_C-Ux7Tz5.js');
29
- require('../../Loader_cjs_D_n5PrK5.js');
29
+ require('../../Loader_cjs_DXJ1zsFJ.js');
30
30
 
31
31
 
32
32
 
@@ -7,7 +7,7 @@ var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceCon
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
9
  var Icon = require('../../Icon_cjs_O7ILYzgW.js');
10
- var Loader = require('../../Loader_cjs_D_n5PrK5.js');
10
+ var Loader = require('../../Loader_cjs_DXJ1zsFJ.js');
11
11
  var Text = require('../../Text_cjs_C-Ux7Tz5.js');
12
12
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
13
13
  require('lodash/camelCase');
@@ -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('../../Button_cjs_DUciIEhV.js');
9
+ var Button = require('../../Button_cjs_DnkftkHE.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');
@@ -27,7 +27,7 @@ require('../hooks/useStyles/useStyles.js');
27
27
  require('lodash/maxBy');
28
28
  require('../hooks/useStyles/styleAttributes.js');
29
29
  require('../../Link_cjs_BqT6eVl6.js');
30
- require('../../Loader_cjs_D_n5PrK5.js');
30
+ require('../../Loader_cjs_DXJ1zsFJ.js');
31
31
 
32
32
  var cookiesWarningAppearanceDefault = {
33
33
  defaultPrimary: {
@@ -4,7 +4,7 @@ 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('../../DatePicker_cjs_B2lmtIti.js');
7
+ var DatePicker = require('../../DatePicker_cjs_DuPePxS9.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var ChipsGroup = require('../../ChipsGroup_cjs_BMwgN3bm.js');
@@ -22,14 +22,14 @@ 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('../../Button_cjs_DUciIEhV.js');
25
+ require('../../Button_cjs_DnkftkHE.js');
26
26
  require('../../Icon_cjs_O7ILYzgW.js');
27
27
  require('react-inlinesvg');
28
28
  require('../hoc/urlWithAssetPrefix.js');
29
29
  require('../context/UrlAssetPrefix.js');
30
30
  require('../../Link_cjs_BqT6eVl6.js');
31
31
  require('../../Text_cjs_C-Ux7Tz5.js');
32
- require('../../Loader_cjs_D_n5PrK5.js');
32
+ require('../../Loader_cjs_DXJ1zsFJ.js');
33
33
  require('../../Input_cjs_BGLd0EQu.js');
34
34
  require('../../Label_cjs_eQIgvtt7.js');
35
35
  require('@itcase/icons/default');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../../DatePicker_cjs_B2lmtIti.js');
3
+ var DatePicker = require('../../DatePicker_cjs_DuPePxS9.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
@@ -22,14 +22,14 @@ 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('../../Button_cjs_DUciIEhV.js');
25
+ require('../../Button_cjs_DnkftkHE.js');
26
26
  require('../../Icon_cjs_O7ILYzgW.js');
27
27
  require('react-inlinesvg');
28
28
  require('../hoc/urlWithAssetPrefix.js');
29
29
  require('../context/UrlAssetPrefix.js');
30
30
  require('../../Link_cjs_BqT6eVl6.js');
31
31
  require('../../Text_cjs_C-Ux7Tz5.js');
32
- require('../../Loader_cjs_D_n5PrK5.js');
32
+ require('../../Loader_cjs_DXJ1zsFJ.js');
33
33
  require('../../Input_cjs_BGLd0EQu.js');
34
34
  require('../../Label_cjs_eQIgvtt7.js');
35
35
  require('@itcase/icons/default');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Loader = require('../../Loader_cjs_D_n5PrK5.js');
3
+ var Loader = require('../../Loader_cjs_DXJ1zsFJ.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
@@ -10,7 +10,7 @@ var useStyles = require('../hooks/useStyles/useStyles.js');
10
10
  var Overlay = require('../../Overlay_cjs_BMrkRg7M.js');
11
11
  var Icon = require('../../Icon_cjs_O7ILYzgW.js');
12
12
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
13
- var Loader = require('../../Loader_cjs_D_n5PrK5.js');
13
+ var Loader = require('../../Loader_cjs_DXJ1zsFJ.js');
14
14
  require('lodash/camelCase');
15
15
  require('lodash/castArray');
16
16
  require('lodash/upperFirst');
@@ -9,7 +9,7 @@ var urlWithAssetPrefix = require('../hoc/urlWithAssetPrefix.js');
9
9
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
10
10
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var useStyles = require('../hooks/useStyles/useStyles.js');
12
- var Button = require('../../Button_cjs_DUciIEhV.js');
12
+ var Button = require('../../Button_cjs_DnkftkHE.js');
13
13
  var Group = require('../../Group_cjs_CDLfU5D2.js');
14
14
  var Text = require('../../Text_cjs_C-Ux7Tz5.js');
15
15
  require('@itcase/common');
@@ -27,7 +27,7 @@ require('lodash/maxBy');
27
27
  require('../hooks/useStyles/styleAttributes.js');
28
28
  require('../../Icon_cjs_O7ILYzgW.js');
29
29
  require('../../Link_cjs_BqT6eVl6.js');
30
- require('../../Loader_cjs_D_n5PrK5.js');
30
+ require('../../Loader_cjs_DXJ1zsFJ.js');
31
31
 
32
32
  var responseAppearanceConfirm = {
33
33
  confirm: {
@@ -181,7 +181,7 @@ var Response = urlWithAssetPrefix.urlWithAssetPrefix(function Response(props) {
181
181
  }, [imageSrc, svgSrc, SvgImage, width, height, svgFillClass]);
182
182
  // @ts-expect-error
183
183
  var _a = useStyles.useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
184
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs("div", { className: "response__wrapper-inner", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
184
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent })), jsxRuntime.jsxs("div", { className: "response__wrapper-inner", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
185
185
  primaryButton ||
186
186
  secondaryButtonLabel ||
187
187
  secondaryButton ||
@@ -97,6 +97,31 @@ var segmentedAppearanceError = {
97
97
  },
98
98
  };
99
99
 
100
+ var segmentedAppearanceShape = {
101
+ circular: {
102
+ shape: 'circular',
103
+ },
104
+ rounded: {
105
+ shape: 'rounded',
106
+ },
107
+ roundedL: {
108
+ shape: 'rounded',
109
+ shapeStrength: '1_5m',
110
+ },
111
+ roundedM: {
112
+ shape: 'rounded',
113
+ shapeStrength: '1m',
114
+ },
115
+ roundedS: {
116
+ shape: 'rounded',
117
+ shapeStrength: '0_5m',
118
+ },
119
+ roundedXL: {
120
+ shape: 'rounded',
121
+ shapeStrength: '2m',
122
+ },
123
+ };
124
+
100
125
  var segmentedAppearanceSize = {
101
126
  sizeL: {
102
127
  size: 'l',
@@ -177,7 +202,7 @@ var segmentedAppearanceWarning = {
177
202
  },
178
203
  };
179
204
 
180
- var segmentedAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceStyle), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceDefault), segmentedAppearanceWarning);
205
+ var segmentedAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceShape), segmentedAppearanceStyle), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceDefault), segmentedAppearanceWarning);
181
206
 
182
207
  var segmentedConfig = {
183
208
  appearance: segmentedAppearance,
@@ -210,8 +235,8 @@ var Segmented = React.forwardRef(function (props) {
210
235
  }, [activeSegment, segmentsRefs]);
211
236
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, segmentedConfig);
212
237
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
213
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
214
- return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
238
+ var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
239
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
215
240
  var isActive = String(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) === String(item.value);
216
241
  return (jsxRuntime.jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
217
242
  isDisabled &&
@@ -1,4 +1,4 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CaVzZgqG.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_kqE4jwUz.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 '../Loader_es_DXVVV9LE.js';
27
+ import '../Loader_es_D_NFpg8C.js';
@@ -5,7 +5,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
7
  import { I as Icon } from '../Icon_es_BGR9vYtq.js';
8
- import { L as Loader } from '../Loader_es_DXVVV9LE.js';
8
+ import { L as Loader } from '../Loader_es_D_NFpg8C.js';
9
9
  import { T as Text } from '../Text_es_BdFAdf7M.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
11
  import 'lodash/camelCase';
@@ -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 '../Button_es_CaVzZgqG.js';
7
+ import { B as Button } from '../Button_es_kqE4jwUz.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';
@@ -25,7 +25,7 @@ import '../hooks/useStyles/useStyles.js';
25
25
  import 'lodash/maxBy';
26
26
  import '../hooks/useStyles/styleAttributes.js';
27
27
  import '../Link_es_BnUIX0QT.js';
28
- import '../Loader_es_DXVVV9LE.js';
28
+ import '../Loader_es_D_NFpg8C.js';
29
29
 
30
30
  var cookiesWarningAppearanceDefault = {
31
31
  defaultPrimary: {
@@ -2,7 +2,7 @@ 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 '../DatePicker_es_CfT5zDjb.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_B84xipuO.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DVnt9N0b.js';
@@ -20,14 +20,14 @@ 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 '../Button_es_CaVzZgqG.js';
23
+ import '../Button_es_kqE4jwUz.js';
24
24
  import '../Icon_es_BGR9vYtq.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
28
  import '../Link_es_BnUIX0QT.js';
29
29
  import '../Text_es_BdFAdf7M.js';
30
- import '../Loader_es_DXVVV9LE.js';
30
+ import '../Loader_es_D_NFpg8C.js';
31
31
  import '../Input_es_D2mNCqiH.js';
32
32
  import '../Label_es_BQDu9dwH.js';
33
33
  import '@itcase/icons/default';
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CfT5zDjb.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_B84xipuO.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -20,14 +20,14 @@ 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 '../Button_es_CaVzZgqG.js';
23
+ import '../Button_es_kqE4jwUz.js';
24
24
  import '../Icon_es_BGR9vYtq.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
28
  import '../Link_es_BnUIX0QT.js';
29
29
  import '../Text_es_BdFAdf7M.js';
30
- import '../Loader_es_DXVVV9LE.js';
30
+ import '../Loader_es_D_NFpg8C.js';
31
31
  import '../Input_es_D2mNCqiH.js';
32
32
  import '../Label_es_BQDu9dwH.js';
33
33
  import '@itcase/icons/default';
@@ -1,4 +1,4 @@
1
- export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_DXVVV9LE.js';
1
+ export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_D_NFpg8C.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -8,7 +8,7 @@ import { useStyles } from '../hooks/useStyles/useStyles.js';
8
8
  import { O as Overlay } from '../Overlay_es_D_izIIUB.js';
9
9
  import { b as Title } from '../Icon_es_BGR9vYtq.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
- import { L as Loader } from '../Loader_es_DXVVV9LE.js';
11
+ import { L as Loader } from '../Loader_es_D_NFpg8C.js';
12
12
  import 'lodash/camelCase';
13
13
  import 'lodash/castArray';
14
14
  import 'lodash/upperFirst';
@@ -7,7 +7,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
7
7
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { useStyles } from '../hooks/useStyles/useStyles.js';
10
- import { B as Button } from '../Button_es_CaVzZgqG.js';
10
+ import { B as Button } from '../Button_es_kqE4jwUz.js';
11
11
  import { G as Group } from '../Group_es_DSZxyI1e.js';
12
12
  import { T as Text } from '../Text_es_BdFAdf7M.js';
13
13
  import '@itcase/common';
@@ -25,7 +25,7 @@ import 'lodash/maxBy';
25
25
  import '../hooks/useStyles/styleAttributes.js';
26
26
  import '../Icon_es_BGR9vYtq.js';
27
27
  import '../Link_es_BnUIX0QT.js';
28
- import '../Loader_es_DXVVV9LE.js';
28
+ import '../Loader_es_D_NFpg8C.js';
29
29
 
30
30
  var responseAppearanceConfirm = {
31
31
  confirm: {
@@ -179,7 +179,7 @@ var Response = urlWithAssetPrefix(function Response(props) {
179
179
  }, [imageSrc, svgSrc, SvgImage, width, height, svgFillClass]);
180
180
  // @ts-expect-error
181
181
  var _a = useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
182
- return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs("div", { className: "response__wrapper-inner", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
182
+ return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent })), jsxs("div", { className: "response__wrapper-inner", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
183
183
  primaryButton ||
184
184
  secondaryButtonLabel ||
185
185
  secondaryButton ||
@@ -95,6 +95,31 @@ var segmentedAppearanceError = {
95
95
  },
96
96
  };
97
97
 
98
+ var segmentedAppearanceShape = {
99
+ circular: {
100
+ shape: 'circular',
101
+ },
102
+ rounded: {
103
+ shape: 'rounded',
104
+ },
105
+ roundedL: {
106
+ shape: 'rounded',
107
+ shapeStrength: '1_5m',
108
+ },
109
+ roundedM: {
110
+ shape: 'rounded',
111
+ shapeStrength: '1m',
112
+ },
113
+ roundedS: {
114
+ shape: 'rounded',
115
+ shapeStrength: '0_5m',
116
+ },
117
+ roundedXL: {
118
+ shape: 'rounded',
119
+ shapeStrength: '2m',
120
+ },
121
+ };
122
+
98
123
  var segmentedAppearanceSize = {
99
124
  sizeL: {
100
125
  size: 'l',
@@ -175,7 +200,7 @@ var segmentedAppearanceWarning = {
175
200
  },
176
201
  };
177
202
 
178
- var segmentedAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceStyle), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceDefault), segmentedAppearanceWarning);
203
+ var segmentedAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, segmentedAppearanceDisabled), segmentedAppearanceSize), segmentedAppearanceShape), segmentedAppearanceStyle), segmentedAppearanceError), segmentedAppearanceSuccess), segmentedAppearanceDefault), segmentedAppearanceWarning);
179
204
 
180
205
  var segmentedConfig = {
181
206
  appearance: segmentedAppearance,
@@ -208,8 +233,8 @@ var Segmented = React.forwardRef(function (props) {
208
233
  }, [activeSegment, segmentsRefs]);
209
234
  var appearanceConfig = useAppearanceConfig(appearance, segmentedConfig);
210
235
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
211
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
212
- return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
236
+ var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
237
+ return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
213
238
  var isActive = String(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) === String(item.value);
214
239
  return (jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
215
240
  isDisabled &&
@@ -12,13 +12,18 @@
12
12
  align-items: center;
13
13
  gap: 3m;
14
14
  &-inner {
15
- flex-direction: column;
16
15
  width: 100%;
17
16
  display: flex;
17
+ flex-direction: column;
18
18
  align-items: center;
19
+ gap: 8px;
19
20
  }
20
21
  }
22
+ &__title {
23
+ text-align: center;
24
+ }
21
25
  &__desc {
26
+ text-align: center;
22
27
  display: flex;
23
28
  gap: 1m;
24
29
  }
@@ -73,16 +73,6 @@
73
73
  }
74
74
  }
75
75
  }
76
- .segmented {
77
- &_shape {
78
- &_rounded {
79
- border-radius: var(--segmented-shape-rounded);
80
- }
81
- &_circular {
82
- border-radius: 50%;
83
- }
84
- }
85
- }
86
76
  .segmented {
87
77
  &_size {
88
78
  @each $size in normal, compact, xxl, xl, l, m, s, xs, xxs {
@@ -201,6 +191,4 @@
201
191
  --segmented-item-size-s-min-height: 28px;
202
192
  --segmented-item-size-xs-min-height: 20px;
203
193
  --segmented-item-size-xxs-min-height: 16px;
204
-
205
- --segmented-shape-rounded: 8px;
206
194
  }
@@ -903,10 +903,11 @@ div.swiper-block__item {
903
903
  .swiper-block {
904
904
  &&_type_step {
905
905
  min-height: 100vh;
906
+ display: flex;
907
+ align-items: center;
906
908
  ^&__swiper {
907
909
  height: 100%;
908
910
  display: flex;
909
- align-items: center;
910
911
  }
911
912
  & .swiper-wrapper {
912
913
  align-items: center !important;
@@ -0,0 +1,25 @@
1
+ declare const segmentedAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedL: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedM: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedS: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedXL: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { segmentedAppearanceShape };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.54",
3
+ "version": "1.8.56",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -143,7 +143,7 @@
143
143
  "@commitlint/cli": "^19.8.1",
144
144
  "@commitlint/config-conventional": "^19.8.1",
145
145
  "@itcase/config": "^1.0.53",
146
- "@itcase/lint": "^1.1.23",
146
+ "@itcase/lint": "^1.1.24",
147
147
  "@itcase/types": "^1.0.6",
148
148
  "@rollup/plugin-alias": "^5.1.1",
149
149
  "@rollup/plugin-babel": "^6.0.4",
@@ -181,7 +181,7 @@
181
181
  "rollup-preserve-directives": "^1.1.3",
182
182
  "semantic-release": "^24.2.7",
183
183
  "storybook": "^9.0.17",
184
- "stylelint": "^16.21.1",
184
+ "stylelint": "^16.22.0",
185
185
  "typescript": "^5.8.3"
186
186
  }
187
187
  }