@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.
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice.js +30 -5
- package/dist/cjs/components/Code.js +28 -3
- package/dist/cjs/components/DatePeriod.js +1 -1
- package/dist/cjs/components/Drawer.js +15 -9
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +30 -5
- package/dist/components/Code.js +28 -3
- package/dist/components/DatePeriod.js +1 -1
- package/dist/components/Drawer.js +15 -9
- package/dist/css/components/Code/Code.css +13 -21
- package/dist/css/components/Drawer/Drawer.css +2 -0
- package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -2
- package/dist/types/components/Choice/appearance/choiceShape.d.ts +25 -0
- package/dist/types/components/Code/appearance/codeShape.d.ts +25 -0
- package/dist/types/components/Drawer/appearance/drawerSize.d.ts +8 -0
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +0 -3
- package/package.json +1 -1
- package/dist/{ChipsGroup_cjs_p5BbbozF.js → ChipsGroup_cjs_BLUYSr4v.js} +4 -4
- package/dist/{ChipsGroup_es_CSRBUuRU.js → ChipsGroup_es_DSwPxBuZ.js} +4 -4
|
@@ -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,
|
|
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 && "
|
|
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'
|
|
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,
|
|
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),
|
|
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('../../
|
|
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;
|
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_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,
|
|
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 && "
|
|
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'
|
|
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
|
package/dist/components/Code.js
CHANGED
|
@@ -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,
|
|
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),
|
|
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 '../
|
|
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
|
-
.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
}
|
|
@@ -5,7 +5,7 @@ declare const chipsAppearanceShape: {
|
|
|
5
5
|
rounded: {
|
|
6
6
|
shape: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
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
|
-
|
|
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 };
|
package/package.json
CHANGED
|
@@ -134,17 +134,17 @@ var chipsAppearanceShape = {
|
|
|
134
134
|
rounded: {
|
|
135
135
|
shape: 'rounded',
|
|
136
136
|
},
|
|
137
|
-
|
|
137
|
+
roundedS: {
|
|
138
138
|
shape: 'rounded',
|
|
139
|
-
shapeStrength: '
|
|
139
|
+
shapeStrength: '0_5m',
|
|
140
140
|
},
|
|
141
141
|
roundedM: {
|
|
142
142
|
shape: 'rounded',
|
|
143
143
|
shapeStrength: '1m',
|
|
144
144
|
},
|
|
145
|
-
|
|
145
|
+
roundedL: {
|
|
146
146
|
shape: 'rounded',
|
|
147
|
-
shapeStrength: '
|
|
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
|
-
|
|
135
|
+
roundedS: {
|
|
136
136
|
shape: 'rounded',
|
|
137
|
-
shapeStrength: '
|
|
137
|
+
shapeStrength: '0_5m',
|
|
138
138
|
},
|
|
139
139
|
roundedM: {
|
|
140
140
|
shape: 'rounded',
|
|
141
141
|
shapeStrength: '1m',
|
|
142
142
|
},
|
|
143
|
-
|
|
143
|
+
roundedL: {
|
|
144
144
|
shape: 'rounded',
|
|
145
|
-
shapeStrength: '
|
|
145
|
+
shapeStrength: '1_5m',
|
|
146
146
|
},
|
|
147
147
|
roundedXL: {
|
|
148
148
|
shape: 'rounded',
|