@itcase/ui 1.8.74 → 1.8.76

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ChipsGroup = require('../../ChipsGroup_cjs_p5BbbozF.js');
3
+ var ChipsGroup = require('../../ChipsGroup_cjs_BLUYSr4v.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
@@ -98,6 +98,31 @@ var choiceAppearanceRequire = {
98
98
  },
99
99
  };
100
100
 
101
+ var choiceAppearanceShape = {
102
+ circular: {
103
+ shape: 'circular',
104
+ },
105
+ rounded: {
106
+ shape: 'rounded',
107
+ },
108
+ roundedS: {
109
+ shape: 'rounded',
110
+ shapeStrength: '0_5m',
111
+ },
112
+ roundedM: {
113
+ shape: 'rounded',
114
+ shapeStrength: '1m',
115
+ },
116
+ roundedL: {
117
+ shape: 'rounded',
118
+ shapeStrength: '1_5m',
119
+ },
120
+ roundedXL: {
121
+ shape: 'rounded',
122
+ shapeStrength: '2m',
123
+ },
124
+ };
125
+
101
126
  var choiceAppearanceSize = {
102
127
  sizeL: {
103
128
  size: 'l',
@@ -152,7 +177,7 @@ var choiceAppearanceSuccess = {
152
177
  },
153
178
  };
154
179
 
155
- var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize);
180
+ var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceShape), choiceAppearanceSize);
156
181
 
157
182
  var choiceConfig = {
158
183
  appearance: choiceAppearance,
@@ -172,13 +197,13 @@ function Choice(props) {
172
197
  }, [isCheckbox, setActiveSegment]);
173
198
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, choiceConfig);
174
199
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
175
- var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
200
+ var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, wrapClass = propsGenerator.wrapClass;
176
201
  var styles = useStyles.useStyles(props).styles;
177
- return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), isSkeleton && "choice_skeleton"), dataTestId: dataTestId && "".concat(dataTestId, "Choice"), dataTour: dataTour, ref: controlRef, style: styles, children: [before && jsxRuntime.jsx("div", { className: "choice__before", children: before }), isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
202
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), isSkeleton && "choice_skeleton"), dataTestId: dataTestId && "".concat(dataTestId, "Choice"), dataTour: dataTour, ref: controlRef, style: styles, children: [before && jsxRuntime.jsx("div", { className: "choice__before", children: before }), isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
178
203
  var isActive = typeof active === 'object'
179
204
  ? String(item.value) === String(active.value)
180
205
  : String(item.value) === String(active);
181
- return (jsxRuntime.jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
206
+ return (jsxRuntime.jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
182
207
  ? fillItemClass && "fill_".concat(fillItemClass)
183
208
  : fillItemDisabledClass &&
184
209
  "fill_disabled_".concat(fillItemDisabledClass), !isDisabled &&
@@ -196,7 +221,7 @@ function Choice(props) {
196
221
  : fillItemDisabledClass &&
197
222
  "fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
198
223
  isDisabled &&
199
- 'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
224
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
200
225
  ? item.iconBeforeActive || item.iconBefore
201
226
  : item.iconBefore, isActive: isActive })), item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: iconFillDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: iconAfterFillDisabled, iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconSize: iconAfterSize, SvgImage: isActive
202
227
  ? item.iconAfterActive || item.iconAfter
@@ -65,6 +65,31 @@ var codeAppearanceRequire = {
65
65
  },
66
66
  };
67
67
 
68
+ var codeAppearanceShape = {
69
+ circular: {
70
+ shape: 'circular',
71
+ },
72
+ rounded: {
73
+ shape: 'rounded',
74
+ },
75
+ roundedS: {
76
+ shape: 'rounded',
77
+ shapeStrength: '0_5m',
78
+ },
79
+ roundedM: {
80
+ shape: 'rounded',
81
+ shapeStrength: '1m',
82
+ },
83
+ roundedL: {
84
+ shape: 'rounded',
85
+ shapeStrength: '1_5m',
86
+ },
87
+ roundedXL: {
88
+ shape: 'rounded',
89
+ shapeStrength: '2m',
90
+ },
91
+ };
92
+
68
93
  var codeAppearanceSize = {
69
94
  sizeL: {
70
95
  size: 'l',
@@ -106,7 +131,7 @@ var codeAppearanceSuccess = {
106
131
  },
107
132
  };
108
133
 
109
- var codeAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, codeAppearanceDisabled), codeAppearanceRequire), codeAppearanceSize), codeAppearanceDefault), codeAppearanceStyle), codeAppearanceError), codeAppearanceSuccess);
134
+ var codeAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, codeAppearanceDisabled), codeAppearanceShape), codeAppearanceRequire), codeAppearanceSize), codeAppearanceDefault), codeAppearanceStyle), codeAppearanceError), codeAppearanceSuccess);
110
135
 
111
136
  var codeConfig = {
112
137
  appearance: codeAppearance,
@@ -119,11 +144,11 @@ function Code(props) {
119
144
  var _c = React.useState(''), otp = _c[0], setOtp = _c[1];
120
145
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, codeConfig);
121
146
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
122
- 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;
147
+ 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, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
123
148
  // NOTE: too many dependencies for "useCallback" and possible too many checks
124
149
  var renderInput = function (otpInputProps, index) {
125
150
  return (jsxRuntime.jsx("input", tslib_es6.__assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
126
- "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
151
+ "placeholder-text-color_".concat(inputPlaceholderTextColorClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
127
152
  "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass &&
128
153
  "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), name: "code-".concat(index), autoComplete: "one-time-code", placeholder: inputPlaceholder, onBlur: function (event) {
129
154
  onBlur && onBlur(event);
@@ -7,7 +7,7 @@ var common = require('@itcase/common');
7
7
  var DatePicker = require('../../DatePicker_cjs_DPe3TnXs.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
- var ChipsGroup = require('../../ChipsGroup_cjs_p5BbbozF.js');
10
+ var ChipsGroup = require('../../ChipsGroup_cjs_BLUYSr4v.js');
11
11
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
12
  require('date-fns/locale');
13
13
  require('react-datepicker');
@@ -4,39 +4,45 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var ReactDrawer = require('react-modern-drawer');
7
+ var Divider = require('../../Divider_cjs_rxMMBfLC.js');
7
8
  var Icon = require('../../Icon_cjs_BdX_3y6P.js');
8
9
  var Text = require('../../Text_cjs_B8nNXWBA.js');
9
10
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
10
11
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
12
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
13
  var _default = require('@itcase/icons/default');
13
- require('react-inlinesvg');
14
- require('../hoc/urlWithAssetPrefix.js');
15
- require('@itcase/common');
16
- require('../context/UrlAssetPrefix.js');
17
14
  require('../hooks/useStyles/useStyles.js');
18
15
  require('lodash/camelCase');
19
16
  require('lodash/maxBy');
20
17
  require('lodash/upperFirst');
21
18
  require('../context/Notifications.js');
22
19
  require('uuid');
20
+ require('@itcase/common');
23
21
  require('../context/UIContext.js');
24
22
  require('../hooks/useMediaQueries/useMediaQueries.js');
25
23
  require('react-responsive');
26
24
  require('../utils/setViewportProperty.js');
27
25
  require('../hooks/useStyles/styleAttributes.js');
26
+ require('react-inlinesvg');
27
+ require('../hoc/urlWithAssetPrefix.js');
28
+ require('../context/UrlAssetPrefix.js');
28
29
  require('../../Link_cjs_BqT6eVl6.js');
29
30
  require('lodash/castArray');
30
31
 
32
+ var drawerAppearanceSize = {
33
+ sizeH3: {
34
+ titleTextSize: 'h3',
35
+ descTextSize: 's',
36
+ iconSize: 24,
37
+ },
38
+ };
39
+
31
40
  var drawerAppearanceSurface = {
32
41
  surfacePrimary: {
33
42
  fill: 'surfacePrimary',
34
43
  fillHover: 'surfacePrimaryHover',
35
44
  titleTextColor: 'surfaceTextPrimary',
36
- titleTextSize: 'h3',
37
45
  descTextColor: 'surfaceTextPrimary',
38
- descTextSize: 's',
39
- iconSize: 24,
40
46
  closeIcon: _default.icons24.Action.Close,
41
47
  closeIconFillIcon: 'surfaceItemPrimary',
42
48
  },
@@ -59,7 +65,7 @@ var drawerAppearanceSurface = {
59
65
  },
60
66
  };
61
67
 
62
- var drawerAppearance = tslib_es6.__assign({}, drawerAppearanceSurface);
68
+ var drawerAppearance = tslib_es6.__assign(tslib_es6.__assign({}, drawerAppearanceSize), drawerAppearanceSurface);
63
69
 
64
70
  var drawerConfig = {
65
71
  appearance: drawerAppearance,
@@ -81,7 +87,7 @@ function Drawer(props) {
81
87
  }, [isOpenModal, onClose]);
82
88
  return (jsxRuntime.jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour), stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
83
89
  // Drawer set prefix "EZDrawer" for any id
84
- customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsxRuntime.jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx("div", { className: "drawer__close", children: jsxRuntime.jsx(Icon.Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon }) })), (title || desc) && (jsxRuntime.jsxs("div", { className: "drawer__header", children: [jsxRuntime.jsx(Icon.Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsxRuntime.jsx(Text.Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && jsxRuntime.jsx(Divider, { width: "fill", fill: "surfaceTertiary" }), children && jsxRuntime.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntime.jsx("div", { className: "drawer__after", children: after })] }));
90
+ customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsxRuntime.jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx("div", { className: "drawer__close", children: jsxRuntime.jsx(Icon.Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: onClickClose }) })), (title || desc) && (jsxRuntime.jsxs("div", { className: "drawer__header", children: [jsxRuntime.jsx(Icon.Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsxRuntime.jsx(Text.Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && jsxRuntime.jsx(Divider.Divider, { width: "fill", fill: "surfaceTertiary" }), children && jsxRuntime.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntime.jsx("div", { className: "drawer__after", children: after })] }));
85
91
  }
86
92
 
87
93
  exports.Drawer = Drawer;
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CSRBUuRU.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_DSwPxBuZ.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -96,6 +96,31 @@ var choiceAppearanceRequire = {
96
96
  },
97
97
  };
98
98
 
99
+ var choiceAppearanceShape = {
100
+ circular: {
101
+ shape: 'circular',
102
+ },
103
+ rounded: {
104
+ shape: 'rounded',
105
+ },
106
+ roundedS: {
107
+ shape: 'rounded',
108
+ shapeStrength: '0_5m',
109
+ },
110
+ roundedM: {
111
+ shape: 'rounded',
112
+ shapeStrength: '1m',
113
+ },
114
+ roundedL: {
115
+ shape: 'rounded',
116
+ shapeStrength: '1_5m',
117
+ },
118
+ roundedXL: {
119
+ shape: 'rounded',
120
+ shapeStrength: '2m',
121
+ },
122
+ };
123
+
99
124
  var choiceAppearanceSize = {
100
125
  sizeL: {
101
126
  size: 'l',
@@ -150,7 +175,7 @@ var choiceAppearanceSuccess = {
150
175
  },
151
176
  };
152
177
 
153
- var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize);
178
+ var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceShape), choiceAppearanceSize);
154
179
 
155
180
  var choiceConfig = {
156
181
  appearance: choiceAppearance,
@@ -170,13 +195,13 @@ function Choice(props) {
170
195
  }, [isCheckbox, setActiveSegment]);
171
196
  var appearanceConfig = useAppearanceConfig(appearance, choiceConfig);
172
197
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
173
- var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
198
+ var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, wrapClass = propsGenerator.wrapClass;
174
199
  var styles = useStyles(props).styles;
175
- return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), isSkeleton && "choice_skeleton"), dataTestId: dataTestId && "".concat(dataTestId, "Choice"), dataTour: dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
200
+ return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), isSkeleton && "choice_skeleton"), dataTestId: dataTestId && "".concat(dataTestId, "Choice"), dataTour: dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
176
201
  var isActive = typeof active === 'object'
177
202
  ? String(item.value) === String(active.value)
178
203
  : String(item.value) === String(active);
179
- return (jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
204
+ return (jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
180
205
  ? fillItemClass && "fill_".concat(fillItemClass)
181
206
  : fillItemDisabledClass &&
182
207
  "fill_disabled_".concat(fillItemDisabledClass), !isDisabled &&
@@ -194,7 +219,7 @@ function Choice(props) {
194
219
  : fillItemDisabledClass &&
195
220
  "fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
196
221
  isDisabled &&
197
- 'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
222
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
198
223
  ? item.iconBeforeActive || item.iconBefore
199
224
  : item.iconBefore, isActive: isActive })), item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconFillDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconAfterFillDisabled, iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconSize: iconAfterSize, SvgImage: isActive
200
225
  ? item.iconAfterActive || item.iconAfter
@@ -63,6 +63,31 @@ var codeAppearanceRequire = {
63
63
  },
64
64
  };
65
65
 
66
+ var codeAppearanceShape = {
67
+ circular: {
68
+ shape: 'circular',
69
+ },
70
+ rounded: {
71
+ shape: 'rounded',
72
+ },
73
+ roundedS: {
74
+ shape: 'rounded',
75
+ shapeStrength: '0_5m',
76
+ },
77
+ roundedM: {
78
+ shape: 'rounded',
79
+ shapeStrength: '1m',
80
+ },
81
+ roundedL: {
82
+ shape: 'rounded',
83
+ shapeStrength: '1_5m',
84
+ },
85
+ roundedXL: {
86
+ shape: 'rounded',
87
+ shapeStrength: '2m',
88
+ },
89
+ };
90
+
66
91
  var codeAppearanceSize = {
67
92
  sizeL: {
68
93
  size: 'l',
@@ -104,7 +129,7 @@ var codeAppearanceSuccess = {
104
129
  },
105
130
  };
106
131
 
107
- var codeAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, codeAppearanceDisabled), codeAppearanceRequire), codeAppearanceSize), codeAppearanceDefault), codeAppearanceStyle), codeAppearanceError), codeAppearanceSuccess);
132
+ var codeAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, codeAppearanceDisabled), codeAppearanceShape), codeAppearanceRequire), codeAppearanceSize), codeAppearanceDefault), codeAppearanceStyle), codeAppearanceError), codeAppearanceSuccess);
108
133
 
109
134
  var codeConfig = {
110
135
  appearance: codeAppearance,
@@ -117,11 +142,11 @@ function Code(props) {
117
142
  var _c = useState(''), otp = _c[0], setOtp = _c[1];
118
143
  var appearanceConfig = useAppearanceConfig(appearance, codeConfig);
119
144
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
120
- 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;
145
+ 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, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
121
146
  // NOTE: too many dependencies for "useCallback" and possible too many checks
122
147
  var renderInput = function (otpInputProps, index) {
123
148
  return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
124
- "placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
149
+ "placeholder-text-color_".concat(inputPlaceholderTextColorClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
125
150
  "border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass &&
126
151
  "border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), name: "code-".concat(index), autoComplete: "one-time-code", placeholder: inputPlaceholder, onBlur: function (event) {
127
152
  onBlur && onBlur(event);
@@ -5,7 +5,7 @@ import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
5
  import { D as DatePickerInput } from '../DatePicker_es_DIFs7Wgs.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 '../ChipsGroup_es_CSRBUuRU.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DSwPxBuZ.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
10
  import 'date-fns/locale';
11
11
  import 'react-datepicker';
@@ -2,39 +2,45 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import ReactDrawer from 'react-modern-drawer';
5
+ import { D as Divider } from '../Divider_es_CiRU0sTz.js';
5
6
  import { I as Icon, b as Title } from '../Icon_es_Xh3eVHNS.js';
6
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
7
8
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
9
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
11
  import { icons24 } from '@itcase/icons/default';
11
- import 'react-inlinesvg';
12
- import '../hoc/urlWithAssetPrefix.js';
13
- import '@itcase/common';
14
- import '../context/UrlAssetPrefix.js';
15
12
  import '../hooks/useStyles/useStyles.js';
16
13
  import 'lodash/camelCase';
17
14
  import 'lodash/maxBy';
18
15
  import 'lodash/upperFirst';
19
16
  import '../context/Notifications.js';
20
17
  import 'uuid';
18
+ import '@itcase/common';
21
19
  import '../context/UIContext.js';
22
20
  import '../hooks/useMediaQueries/useMediaQueries.js';
23
21
  import 'react-responsive';
24
22
  import '../utils/setViewportProperty.js';
25
23
  import '../hooks/useStyles/styleAttributes.js';
24
+ import 'react-inlinesvg';
25
+ import '../hoc/urlWithAssetPrefix.js';
26
+ import '../context/UrlAssetPrefix.js';
26
27
  import '../Link_es_BnUIX0QT.js';
27
28
  import 'lodash/castArray';
28
29
 
30
+ var drawerAppearanceSize = {
31
+ sizeH3: {
32
+ titleTextSize: 'h3',
33
+ descTextSize: 's',
34
+ iconSize: 24,
35
+ },
36
+ };
37
+
29
38
  var drawerAppearanceSurface = {
30
39
  surfacePrimary: {
31
40
  fill: 'surfacePrimary',
32
41
  fillHover: 'surfacePrimaryHover',
33
42
  titleTextColor: 'surfaceTextPrimary',
34
- titleTextSize: 'h3',
35
43
  descTextColor: 'surfaceTextPrimary',
36
- descTextSize: 's',
37
- iconSize: 24,
38
44
  closeIcon: icons24.Action.Close,
39
45
  closeIconFillIcon: 'surfaceItemPrimary',
40
46
  },
@@ -57,7 +63,7 @@ var drawerAppearanceSurface = {
57
63
  },
58
64
  };
59
65
 
60
- var drawerAppearance = __assign({}, drawerAppearanceSurface);
66
+ var drawerAppearance = __assign(__assign({}, drawerAppearanceSize), drawerAppearanceSurface);
61
67
 
62
68
  var drawerConfig = {
63
69
  appearance: drawerAppearance,
@@ -79,7 +85,7 @@ function Drawer(props) {
79
85
  }, [isOpenModal, onClose]);
80
86
  return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour), stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
81
87
  // Drawer set prefix "EZDrawer" for any id
82
- customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsx("div", { className: "drawer__close", children: jsx(Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon }) })), (title || desc) && (jsxs("div", { className: "drawer__header", children: [jsx(Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && jsx(Divider, { width: "fill", fill: "surfaceTertiary" }), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
88
+ customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsx("div", { className: "drawer__close", children: jsx(Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: onClickClose }) })), (title || desc) && (jsxs("div", { className: "drawer__header", children: [jsx(Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && jsx(Divider, { width: "fill", fill: "surfaceTertiary" }), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
83
89
  }
84
90
 
85
91
  export { Drawer, drawerAppearance, drawerConfig };
@@ -5,15 +5,11 @@
5
5
  justify-content: space-between;
6
6
  }
7
7
  }
8
- .code {
9
- &_size {
10
- @each $size in xxl, xl, l, m, s, xs, xxs {
11
- &_$(size) {
12
- ^^&__wrapper {
13
- gap: var(--code-size-$(size)-gap);
14
- }
15
- }
16
- }
8
+ .code__input {
9
+ border: none;
10
+ outline: none;
11
+ &:focus {
12
+ outline: none;
17
13
  }
18
14
  }
19
15
  .code__input {
@@ -36,18 +32,14 @@
36
32
  appearance: textfield;
37
33
  }
38
34
  }
39
- .code__input {
40
- border: none;
41
- outline: none;
42
- &:focus {
43
- outline: none;
44
- }
45
- &_shape {
46
- &_rounded {
47
- border-radius: var(--code-input-shape-rounded);
48
- }
49
- &_circular {
50
- border-radius: 50%;
35
+ .code {
36
+ &_size {
37
+ @each $size in xxl, xl, l, m, s, xs, xxs {
38
+ &_$(size) {
39
+ ^^&__wrapper {
40
+ gap: var(--code-size-$(size)-gap);
41
+ }
42
+ }
51
43
  }
52
44
  }
53
45
  }
@@ -46,7 +46,9 @@
46
46
  }
47
47
  &__wrapper {
48
48
  padding: 3m;
49
+ display: flex;
49
50
  flex: 1;
51
+ flex-direction: column;
50
52
  }
51
53
  &__after {
52
54
  z-index: 10;
@@ -5,7 +5,7 @@ declare const chipsAppearanceShape: {
5
5
  rounded: {
6
6
  shape: string;
7
7
  };
8
- roundedL: {
8
+ roundedS: {
9
9
  shape: string;
10
10
  shapeStrength: string;
11
11
  };
@@ -13,7 +13,7 @@ declare const chipsAppearanceShape: {
13
13
  shape: string;
14
14
  shapeStrength: string;
15
15
  };
16
- roundedS: {
16
+ roundedL: {
17
17
  shape: string;
18
18
  shapeStrength: string;
19
19
  };
@@ -0,0 +1,25 @@
1
+ declare const choiceAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedS: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedM: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedL: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedXL: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { choiceAppearanceShape };
@@ -0,0 +1,25 @@
1
+ declare const codeAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedS: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedM: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedL: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedXL: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { codeAppearanceShape };
@@ -0,0 +1,8 @@
1
+ declare const drawerAppearanceSize: {
2
+ sizeH3: {
3
+ titleTextSize: string;
4
+ descTextSize: string;
5
+ iconSize: number;
6
+ };
7
+ };
8
+ export { drawerAppearanceSize };
@@ -3,10 +3,7 @@ declare const drawerAppearanceSurface: {
3
3
  fill: string;
4
4
  fillHover: string;
5
5
  titleTextColor: string;
6
- titleTextSize: string;
7
6
  descTextColor: string;
8
- descTextSize: string;
9
- iconSize: number;
10
7
  closeIcon: string;
11
8
  closeIconFillIcon: string;
12
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.74",
3
+ "version": "1.8.76",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -134,17 +134,17 @@ var chipsAppearanceShape = {
134
134
  rounded: {
135
135
  shape: 'rounded',
136
136
  },
137
- roundedL: {
137
+ roundedS: {
138
138
  shape: 'rounded',
139
- shapeStrength: '1_5m',
139
+ shapeStrength: '0_5m',
140
140
  },
141
141
  roundedM: {
142
142
  shape: 'rounded',
143
143
  shapeStrength: '1m',
144
144
  },
145
- roundedS: {
145
+ roundedL: {
146
146
  shape: 'rounded',
147
- shapeStrength: '0_5m',
147
+ shapeStrength: '1_5m',
148
148
  },
149
149
  roundedXL: {
150
150
  shape: 'rounded',
@@ -132,17 +132,17 @@ var chipsAppearanceShape = {
132
132
  rounded: {
133
133
  shape: 'rounded',
134
134
  },
135
- roundedL: {
135
+ roundedS: {
136
136
  shape: 'rounded',
137
- shapeStrength: '1_5m',
137
+ shapeStrength: '0_5m',
138
138
  },
139
139
  roundedM: {
140
140
  shape: 'rounded',
141
141
  shapeStrength: '1m',
142
142
  },
143
- roundedS: {
143
+ roundedL: {
144
144
  shape: 'rounded',
145
- shapeStrength: '0_5m',
145
+ shapeStrength: '1_5m',
146
146
  },
147
147
  roundedXL: {
148
148
  shape: 'rounded',