@itcase/ui 1.8.137 → 1.8.139
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/{Button_cjs_BXEwg-En.js → Button_cjs_09OV2PKm.js} +16 -16
- package/dist/{Button_es_DEn6z83v.js → Button_es_CVZPF_rz.js} +16 -16
- package/dist/{ChipsGroup_cjs_Du8WHI-Y.js → ChipsGroup_cjs_BNfzAmhc.js} +1 -1
- package/dist/{ChipsGroup_es_CzVlqaHv.js → ChipsGroup_es_UTiUhYs7.js} +1 -1
- package/dist/{DatePicker_cjs_Dxbyx8GV.js → DatePicker_cjs_DIiwwZKt.js} +1 -1
- package/dist/{DatePicker_es_mX0NSjO5.js → DatePicker_es_BmxQxJ2u.js} +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePeriod.js +3 -3
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Drawer.js +3 -3
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +5 -4
- package/dist/cjs/components/Notification.js +7 -3
- package/dist/cjs/components/Response.js +13 -13
- package/dist/cjs/components/Switch.js +2 -2
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/context/Notifications.js +4 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Chips.js +1 -1
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePeriod.js +3 -3
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +5 -4
- package/dist/components/Notification.js +7 -3
- package/dist/components/Response.js +13 -13
- package/dist/components/Switch.js +2 -2
- package/dist/components/Tab.js +1 -1
- package/dist/context/Notifications.js +4 -1
- package/dist/css/components/Checkbox/Checkbox.css +11 -10
- package/dist/css/components/Drawer/Drawer.css +13 -8
- package/dist/css/components/Icon/Icon.css +11 -10
- package/dist/css/components/Radio/Radio.css +11 -10
- package/dist/css/styles/border-color/border-color.css +5 -4
- package/dist/css/styles/bundle.css +22 -19
- package/dist/css/styles/fill/fill.css +11 -10
- package/dist/css/styles/text-color/text-color.css +5 -4
- package/dist/css/styles/width/width.css +1 -1
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +0 -3
- package/dist/types/components/ModalSheetBottom/appearance/modalSheetBottomSize.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -1
- package/dist/types/components/Response/Response.constant.d.ts +7 -7
- package/dist/types/context/Notifications.d.ts +1 -1
- package/dist/types/context/Notifications.interface.d.ts +4 -1
- package/package.json +1 -1
|
@@ -81,7 +81,7 @@ function Drawer(props) {
|
|
|
81
81
|
const isOpenPrevRef = useRef(Boolean(_isOpen));
|
|
82
82
|
const appearanceConfig = useAppearanceConfig(appearance, drawerConfig);
|
|
83
83
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
84
|
-
const { direction, size, titleTextColor, titleTextSize, descTextColor, descTextSize, divider, dividerSize, zeroPadding, closeIcon, closeIconFill, closeIconFillIcon, closeIconFillSize, closeIconShape, closeIconSize, closeIconSrc, } = propsGenerator;
|
|
84
|
+
const { direction, size, titleTextColor, titleTextSize, titleTextWeight, descTextColor, descTextSize, divider, dividerSize, zeroPadding, closeIcon, closeIconFill, closeIconFillIcon, closeIconFillSize, closeIconShape, closeIconSize, closeIconSrc, } = propsGenerator;
|
|
85
85
|
useEffect(() => {
|
|
86
86
|
const isFromOpenToClose = isOpenPrevRef.current === true && !_isOpen;
|
|
87
87
|
if (isFromOpenToClose && onClose) {
|
|
@@ -94,9 +94,9 @@ function Drawer(props) {
|
|
|
94
94
|
console.warn('@itcase/ui Drawer warning: "isOpenModal" is deprecated, use "isOpen" instead.');
|
|
95
95
|
}
|
|
96
96
|
}, [_isOpen, onClose]);
|
|
97
|
-
return (jsxs(ReactDrawer, {
|
|
97
|
+
return (jsxs(ReactDrawer, { className: clsx('drawer', type && `drawer_type_${type}`, className, dataTour && `dataTour-${dataTour}`, stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), dataTour: dataTour, direction: direction || 'right', size: size || 600,
|
|
98
98
|
// Drawer set prefix "EZDrawer" for any id
|
|
99
|
-
customIdSuffix: dataTestId ? `_${dataTestId}` : undefined, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: _isOpen, 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", size: dividerSize, fill: "surfaceTertiary" })), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
99
|
+
customIdSuffix: dataTestId ? `_${dataTestId}` : undefined, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: _isOpen, 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, textWeight: titleTextWeight, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), divider && (jsx(Divider, { width: "fill", size: dividerSize, fill: "surfaceTertiary" })), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export { Drawer, drawerAppearance, drawerConfig };
|
package/dist/components/Modal.js
CHANGED
|
@@ -135,7 +135,7 @@ const getOrCreateModalElement = (modalQuerySelector, className = '') => {
|
|
|
135
135
|
};
|
|
136
136
|
// Modal component that is an abstraction around the portal API.
|
|
137
137
|
const Modal = React.forwardRef(function Modal(props, ref) {
|
|
138
|
-
const { id, appearance, className, dataTestId, dataTour, title, modalQuerySelector = '#modal-global', scroll = false, stickyHeader = false,
|
|
138
|
+
const { id, appearance, className, dataTestId, dataTour, title, absoluteHeader = false, modalQuerySelector = '#modal-global', scroll = false, stickyHeader = false, closeIcon, isDisabled, isSkeleton, isCloseOnBlur = true, isOpen: initialIsOpen = false, isOverlay = true, isScrollOnOpen = true, isSetFocusOnOpen = true, onClickOverlay, onCloseModal, onOpenModal, children, } = props;
|
|
139
139
|
// Query DOM element
|
|
140
140
|
const [modalElement, setModalElement] = useState(null);
|
|
141
141
|
const [isOpen, setIsOpen] = useState(initialIsOpen);
|
|
@@ -226,7 +226,7 @@ const Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
226
226
|
return (modalElement &&
|
|
227
227
|
ReactDOM.createPortal(
|
|
228
228
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
229
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, {
|
|
229
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, { width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, flex: "1", children: title })), closeIcon && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
|
|
230
230
|
// ref={modalOverlayRef}
|
|
231
231
|
fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
232
232
|
// A DOM element
|
|
@@ -25,7 +25,7 @@ import '../context/UrlAssetPrefix.js';
|
|
|
25
25
|
import '../Link_es_P2b6ya7P.js';
|
|
26
26
|
import '../Text_es_RDU9GLCV.js';
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const modalSheetBottomAppearanceSize = {
|
|
29
29
|
sizeL: {
|
|
30
30
|
size: 'l',
|
|
31
31
|
titleTextSize: 'h4',
|
|
@@ -34,9 +34,10 @@ const modalSheetBottomAppearance = {
|
|
|
34
34
|
size: 'm',
|
|
35
35
|
titleTextSize: 'h5',
|
|
36
36
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const modalSheetBottomAppearance = {
|
|
40
|
+
...modalSheetBottomAppearanceSize,
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
const modalSheetBottomConfig = {
|
|
@@ -138,20 +138,24 @@ const notificationConfig = {
|
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
140
|
function Notification(props) {
|
|
141
|
-
const { id,
|
|
141
|
+
const { id, appearance, className, dataTestId, dataTour, title, text, before, after, close,
|
|
142
|
+
// type,
|
|
143
|
+
isSkeleton, onClickClose, } = props;
|
|
142
144
|
const appearanceConfig = useAppearanceConfig(appearance, notificationConfig);
|
|
143
145
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
144
146
|
const { fillClass, titleTextColor, titleTextSize, descTextColor, descTextSize, elevationClass, sizeClass, widthClass, closeIcon, closeIconFill, closeIconFillIcon, closeIconFillSize, closeIconShape, closeIconSize, closeIconSrc, } = propsGenerator;
|
|
145
147
|
// @ts-expect-error
|
|
146
148
|
const { styles: notificationStyles } = useStyles(props);
|
|
147
|
-
return (jsxs("div", { className: clsx('notification__item', elevationClass && `elevation_${elevationClass}`, sizeClass && `notification__item_set_${sizeClass}`, widthClass && `width_${widthClass}`, fillClass && `fill_${fillClass}`, isSkeleton && `notification__item_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })),
|
|
149
|
+
return (jsxs("div", { className: clsx('notification__item', elevationClass && `elevation_${elevationClass}`, sizeClass && `notification__item_set_${sizeClass}`, widthClass && `width_${widthClass}`, fillClass && `fill_${fillClass}`, isSkeleton && `notification__item_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), close && (closeIcon || closeIconSrc) && (jsx(Icon, { className: clsx('notification__item-close', 'cursor_type_pointer'), fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: () => onClickClose && onClickClose(id) }))] }), after] }));
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
function NotificationWrapper(props) {
|
|
151
153
|
const notifications = useNotifications();
|
|
152
154
|
const { hideNotifications } = useNotificationsAPI();
|
|
153
155
|
const { className, close } = props;
|
|
154
|
-
return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map((notification, i) => (jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text,
|
|
156
|
+
return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map((notification, i) => (jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text,
|
|
157
|
+
// type={notification.type}
|
|
158
|
+
after: notification.after, close: close, onClickClose: hideNotifications }, i))) }) }));
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
export { Notification, NotificationWrapper, notificationAppearance, notificationConfig };
|
|
@@ -6,7 +6,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../
|
|
9
|
+
import { B as Button } from '../Button_es_CVZPF_rz.js';
|
|
10
10
|
import { G as Group } from '../Group_es_DJ6GHMrs.js';
|
|
11
11
|
import { T as Text } from '../Text_es_RDU9GLCV.js';
|
|
12
12
|
import '@itcase/common';
|
|
@@ -264,6 +264,17 @@ const RESPONSE_MESSAGES = {
|
|
|
264
264
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
265
265
|
secondaryButtonLabel: 'Отмена',
|
|
266
266
|
},
|
|
267
|
+
errorAccessDenied: {
|
|
268
|
+
appearance: 'unableLoadData ghost',
|
|
269
|
+
title: 'Доступ ограничен',
|
|
270
|
+
desc: 'Для выяснения причин и восстановления доступа обратитесь, пожалуйста, в техническую поддержку по электронной почте: support@example.com',
|
|
271
|
+
code: '401/403',
|
|
272
|
+
imageSrc: responseIcon.UnableLoadData,
|
|
273
|
+
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
274
|
+
primaryButtonLabel: 'Повторить',
|
|
275
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
276
|
+
secondaryButtonLabel: 'Отмена',
|
|
277
|
+
},
|
|
267
278
|
errorNetwork: {
|
|
268
279
|
appearance: 'unableLoadData ghost',
|
|
269
280
|
title: 'Ошибка соединения',
|
|
@@ -287,7 +298,7 @@ const RESPONSE_MESSAGES = {
|
|
|
287
298
|
secondaryButtonLabel: 'Отмена',
|
|
288
299
|
},
|
|
289
300
|
empty: {
|
|
290
|
-
appearance: '
|
|
301
|
+
appearance: 'empty ghost',
|
|
291
302
|
title: 'Список пуст',
|
|
292
303
|
desc: 'Нет данных по заданным параметрам',
|
|
293
304
|
code: '200',
|
|
@@ -295,17 +306,6 @@ const RESPONSE_MESSAGES = {
|
|
|
295
306
|
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
296
307
|
primaryButtonLabel: 'ОК',
|
|
297
308
|
},
|
|
298
|
-
errorAccessDenied: {
|
|
299
|
-
appearance: 'unableLoadData ghost',
|
|
300
|
-
title: 'Доступ ограничен',
|
|
301
|
-
desc: 'Для выяснения причин и восстановления доступа обратитесь, пожалуйста, в техническую поддержку по электронной почте: support@example.com',
|
|
302
|
-
code: '401/403',
|
|
303
|
-
imageSrc: responseIcon.UnableLoadData,
|
|
304
|
-
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
305
|
-
primaryButtonLabel: 'Повторить',
|
|
306
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
307
|
-
secondaryButtonLabel: 'Отмена',
|
|
308
|
-
},
|
|
309
309
|
warning: {
|
|
310
310
|
appearance: 'warning ghost',
|
|
311
311
|
title: 'Внимание',
|
|
@@ -22,9 +22,9 @@ import 'lodash/maxBy';
|
|
|
22
22
|
const switchAppearanceDefault = {
|
|
23
23
|
defaultPrimary: {
|
|
24
24
|
fill: 'surfaceTertiary',
|
|
25
|
-
fillActive: '
|
|
25
|
+
fillActive: 'successPrimary',
|
|
26
26
|
fillToggle: 'surfaceItemSecondary',
|
|
27
|
-
fillToggleActive: '
|
|
27
|
+
fillToggleActive: 'successItemPrimary',
|
|
28
28
|
titleTextColor: 'surfaceTextPrimary',
|
|
29
29
|
descTextColor: 'surfaceTextPrimary',
|
|
30
30
|
},
|
package/dist/components/Tab.js
CHANGED
|
@@ -226,7 +226,7 @@ function TabGroup(props) {
|
|
|
226
226
|
const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, widthClass, wrapClass, } = propsGenerator;
|
|
227
227
|
// @ts-expect-error
|
|
228
228
|
const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles(props);
|
|
229
|
-
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && '
|
|
229
|
+
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (jsxs(React.Fragment, { children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key))), children] })) }));
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
export { Tab, TabGroup, tabAppearance, tabConfig };
|
|
@@ -6,9 +6,9 @@ import { axiosInstanceITCase } from '@itcase/common';
|
|
|
6
6
|
|
|
7
7
|
const STATUSES = {
|
|
8
8
|
error: 'error',
|
|
9
|
-
warning: 'warning',
|
|
10
9
|
info: 'info',
|
|
11
10
|
success: 'success',
|
|
11
|
+
warning: 'warning',
|
|
12
12
|
};
|
|
13
13
|
const NotificationsContext = createContext([]);
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -124,6 +124,7 @@ function createNotification(notification, onClose) {
|
|
|
124
124
|
// let appearance = STATUSES.appearance
|
|
125
125
|
let closeByTime = 4500;
|
|
126
126
|
let appearance = '';
|
|
127
|
+
let after = null;
|
|
127
128
|
if (typeof notification === 'string') {
|
|
128
129
|
text = notification;
|
|
129
130
|
}
|
|
@@ -133,6 +134,7 @@ function createNotification(notification, onClose) {
|
|
|
133
134
|
text = notification.text ?? text;
|
|
134
135
|
status = notification.status ?? status;
|
|
135
136
|
closeByTime = notification.closeByTime ?? closeByTime;
|
|
137
|
+
after = notification.after ?? after;
|
|
136
138
|
}
|
|
137
139
|
switch (status) {
|
|
138
140
|
case 'success':
|
|
@@ -154,6 +156,7 @@ function createNotification(notification, onClose) {
|
|
|
154
156
|
title: title,
|
|
155
157
|
status: status,
|
|
156
158
|
text: text,
|
|
159
|
+
after: after,
|
|
157
160
|
closeByTime: closeByTime,
|
|
158
161
|
onClose: onClose,
|
|
159
162
|
};
|
|
@@ -207,16 +207,17 @@
|
|
|
207
207
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
208
208
|
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
209
209
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
210
|
-
pink-sand, vintage-rose, grapefruit,
|
|
211
|
-
pollen, flash-light, lemon-cream, flash,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
210
|
+
pink-sand, vintage-rose, grapefruit, light-pink, light-red, cream, almond,
|
|
211
|
+
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
212
|
+
dark-green, green, spearmint, mint, beryl, light-green, light-sky, sea-foam,
|
|
213
|
+
turquoise, blue, light-blue, cerulean, surf-blue, pacific-green,
|
|
214
|
+
blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
215
|
+
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue, indigo,
|
|
216
|
+
lavender-gray, lavender, mist-blue, storm-gray, cactus, pine-green,
|
|
217
|
+
cyprus-green, northern-blue, azure, alaskan-blue, khaki, dark-olive,
|
|
218
|
+
soft-white, antique-white, yellow-gold, gold, camel, walnut, stone, pebble,
|
|
219
|
+
cocoa, coastal-gray, white, black, outer-space, graphite-grey, alto,
|
|
220
|
+
athens-gray, sonic-silver {
|
|
220
221
|
&_active_$(palette) {
|
|
221
222
|
& .checkbox__state {
|
|
222
223
|
background: var(--color-palette-$(palette));
|
|
@@ -53,14 +53,6 @@
|
|
|
53
53
|
&__after {
|
|
54
54
|
z-index: 10;
|
|
55
55
|
}
|
|
56
|
-
&_sticky-button {
|
|
57
|
-
^^&__after {
|
|
58
|
-
width: 100%;
|
|
59
|
-
position: sticky;
|
|
60
|
-
left: 0;
|
|
61
|
-
bottom: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
56
|
}
|
|
65
57
|
.drawer {
|
|
66
58
|
&_reset-padding {
|
|
@@ -69,6 +61,19 @@
|
|
|
69
61
|
}
|
|
70
62
|
}
|
|
71
63
|
}
|
|
64
|
+
.drawer {
|
|
65
|
+
&_sticky-button {
|
|
66
|
+
^&__wrapper {
|
|
67
|
+
padding-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
^&__after {
|
|
70
|
+
width: 100%;
|
|
71
|
+
position: sticky;
|
|
72
|
+
left: 0;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
72
77
|
:root {
|
|
73
78
|
--drawer-overlay-background: rgb(116, 116, 116, 0.5);
|
|
74
79
|
--drawer-overlay-filter: blur(10px);
|
|
@@ -116,16 +116,17 @@
|
|
|
116
116
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
117
117
|
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
118
118
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
119
|
-
pink-sand, vintage-rose, grapefruit,
|
|
120
|
-
pollen, flash-light, lemon-cream, flash,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
119
|
+
pink-sand, vintage-rose, grapefruit, light-pink, light-red, cream, almond,
|
|
120
|
+
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
121
|
+
dark-green, green, spearmint, mint, beryl, light-green, light-sky, sea-foam,
|
|
122
|
+
turquoise, blue, light-blue, cerulean, surf-blue, pacific-green,
|
|
123
|
+
blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
124
|
+
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue, indigo,
|
|
125
|
+
lavender-gray, lavender, mist-blue, storm-gray, cactus, pine-green,
|
|
126
|
+
cyprus-green, northern-blue, azure, alaskan-blue, khaki, dark-olive,
|
|
127
|
+
soft-white, antique-white, yellow-gold, gold, camel, walnut, stone, pebble,
|
|
128
|
+
cocoa, coastal-gray, white, black, outer-space, graphite-grey, alto,
|
|
129
|
+
athens-gray, sonic-silver {
|
|
129
130
|
&_active_hover_$(palette) {
|
|
130
131
|
&:hover {
|
|
131
132
|
& svg {
|
|
@@ -184,16 +184,17 @@
|
|
|
184
184
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
185
185
|
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
186
186
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
187
|
-
pink-sand, vintage-rose, grapefruit,
|
|
188
|
-
pollen, flash-light, lemon-cream, flash,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
187
|
+
pink-sand, vintage-rose, grapefruit, light-pink, light-red, cream, almond,
|
|
188
|
+
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
189
|
+
dark-green, green, spearmint, mint, beryl, light-green, light-sky, sea-foam,
|
|
190
|
+
turquoise, blue, light-blue, cerulean, surf-blue, pacific-green,
|
|
191
|
+
blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
192
|
+
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue, indigo,
|
|
193
|
+
lavender-gray, lavender, mist-blue, storm-gray, cactus, pine-green,
|
|
194
|
+
cyprus-green, northern-blue, azure, alaskan-blue, khaki, dark-olive,
|
|
195
|
+
soft-white, antique-white, yellow-gold, gold, camel, walnut, stone, pebble,
|
|
196
|
+
cocoa, coastal-gray, white, black, outer-space, graphite-grey, alto,
|
|
197
|
+
athens-gray, sonic-silver {
|
|
197
198
|
&_active_$(palette) {
|
|
198
199
|
& .radio__state {
|
|
199
200
|
background: var(--color-palette-$(palette));
|
|
@@ -79,16 +79,17 @@
|
|
|
79
79
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
80
80
|
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
81
81
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
82
|
-
rose-gold, pink-sand, vintage-rose, grapefruit,
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, light-pink, light-red,
|
|
83
|
+
cream, almond, mellow-yellow, canary-yellow, pollen, flash-light,
|
|
84
|
+
lemon-cream, flash, dark-green, green, spearmint, mint, beryl,
|
|
85
|
+
light-green, light-sky, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
85
86
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
86
87
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
87
88
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
88
89
|
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
89
90
|
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
90
91
|
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
91
|
-
alto, athens-gray, sonic-silver {
|
|
92
|
+
outer-space, graphite-grey, alto, athens-gray, sonic-silver {
|
|
92
93
|
.border&_active_$(palette),
|
|
93
94
|
&_active_$(palette) {
|
|
94
95
|
border-width: 1px;
|
|
@@ -421,16 +421,17 @@ div.alignment {
|
|
|
421
421
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
422
422
|
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
423
423
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
424
|
-
rose-gold, pink-sand, vintage-rose, grapefruit,
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, light-pink, light-red,
|
|
425
|
+
cream, almond, mellow-yellow, canary-yellow, pollen, flash-light,
|
|
426
|
+
lemon-cream, flash, dark-green, green, spearmint, mint, beryl,
|
|
427
|
+
light-green, light-sky, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
427
428
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
428
429
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
429
430
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
430
431
|
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
431
432
|
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
432
433
|
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
433
|
-
alto, athens-gray, sonic-silver {
|
|
434
|
+
outer-space, graphite-grey, alto, athens-gray, sonic-silver {
|
|
434
435
|
.border&_active_$(palette),
|
|
435
436
|
&_active_$(palette) {
|
|
436
437
|
border-width: 1px;
|
|
@@ -900,16 +901,17 @@ textarea.fill {
|
|
|
900
901
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
901
902
|
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
902
903
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
903
|
-
pink-sand, vintage-rose, grapefruit,
|
|
904
|
-
pollen, flash-light, lemon-cream, flash,
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
904
|
+
pink-sand, vintage-rose, grapefruit, light-pink, light-red, cream, almond,
|
|
905
|
+
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
906
|
+
dark-green, green, spearmint, mint, beryl, light-green, light-sky, sea-foam,
|
|
907
|
+
turquoise, blue, light-blue, cerulean, surf-blue, pacific-green,
|
|
908
|
+
blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
909
|
+
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue, indigo,
|
|
910
|
+
lavender-gray, lavender, mist-blue, storm-gray, cactus, pine-green,
|
|
911
|
+
cyprus-green, northern-blue, azure, alaskan-blue, khaki, dark-olive,
|
|
912
|
+
soft-white, antique-white, yellow-gold, gold, camel, walnut, stone, pebble,
|
|
913
|
+
cocoa, coastal-gray, white, black, outer-space, graphite-grey, alto,
|
|
914
|
+
athens-gray, sonic-silver {
|
|
913
915
|
&_$(palette) {
|
|
914
916
|
background: var(--color-palette-$(palette));
|
|
915
917
|
&-item {
|
|
@@ -1264,16 +1266,17 @@ textarea.fill {
|
|
|
1264
1266
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
1265
1267
|
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
1266
1268
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
1267
|
-
rose-gold, pink-sand, vintage-rose, grapefruit,
|
|
1268
|
-
|
|
1269
|
-
|
|
1269
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, light-pink, light-red,
|
|
1270
|
+
cream, almond, mellow-yellow, canary-yellow, pollen, flash-light,
|
|
1271
|
+
lemon-cream, flash, dark-green, green, spearmint, mint, beryl,
|
|
1272
|
+
light-green, light-sky, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
1270
1273
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
1271
1274
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
1272
1275
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
1273
1276
|
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
1274
1277
|
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
1275
1278
|
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
1276
|
-
alto, athens-gray, sonic-silver {
|
|
1279
|
+
outer-space, graphite-grey, alto, athens-gray, sonic-silver {
|
|
1277
1280
|
.text&_active_$(palette),
|
|
1278
1281
|
&_active_$(palette) {
|
|
1279
1282
|
color: var(--color-palette-$(palette));
|
|
@@ -1392,7 +1395,7 @@ textarea.fill {
|
|
|
1392
1395
|
}
|
|
1393
1396
|
.width {
|
|
1394
1397
|
&_hug {
|
|
1395
|
-
display: inline-flex;
|
|
1398
|
+
display: inline-flex !important;
|
|
1396
1399
|
}
|
|
1397
1400
|
&_fill {
|
|
1398
1401
|
width: 100%;
|
|
@@ -117,16 +117,17 @@ textarea.fill {
|
|
|
117
117
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
118
118
|
pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
119
119
|
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
120
|
-
pink-sand, vintage-rose, grapefruit,
|
|
121
|
-
pollen, flash-light, lemon-cream, flash,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
pink-sand, vintage-rose, grapefruit, light-pink, light-red, cream, almond,
|
|
121
|
+
mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
|
|
122
|
+
dark-green, green, spearmint, mint, beryl, light-green, light-sky, sea-foam,
|
|
123
|
+
turquoise, blue, light-blue, cerulean, surf-blue, pacific-green,
|
|
124
|
+
blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
|
|
125
|
+
midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue, indigo,
|
|
126
|
+
lavender-gray, lavender, mist-blue, storm-gray, cactus, pine-green,
|
|
127
|
+
cyprus-green, northern-blue, azure, alaskan-blue, khaki, dark-olive,
|
|
128
|
+
soft-white, antique-white, yellow-gold, gold, camel, walnut, stone, pebble,
|
|
129
|
+
cocoa, coastal-gray, white, black, outer-space, graphite-grey, alto,
|
|
130
|
+
athens-gray, sonic-silver {
|
|
130
131
|
&_$(palette) {
|
|
131
132
|
background: var(--color-palette-$(palette));
|
|
132
133
|
&-item {
|
|
@@ -53,16 +53,17 @@
|
|
|
53
53
|
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
54
54
|
pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
55
55
|
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
56
|
-
rose-gold, pink-sand, vintage-rose, grapefruit,
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, light-pink, light-red,
|
|
57
|
+
cream, almond, mellow-yellow, canary-yellow, pollen, flash-light,
|
|
58
|
+
lemon-cream, flash, dark-green, green, spearmint, mint, beryl,
|
|
59
|
+
light-green, light-sky, sea-foam, turquoise, blue, light-blue, cerulean,
|
|
59
60
|
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
60
61
|
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
61
62
|
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
62
63
|
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
63
64
|
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
64
65
|
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
65
|
-
alto, athens-gray, sonic-silver {
|
|
66
|
+
outer-space, graphite-grey, alto, athens-gray, sonic-silver {
|
|
66
67
|
.text&_active_$(palette),
|
|
67
68
|
&_active_$(palette) {
|
|
68
69
|
color: var(--color-palette-$(palette));
|
|
@@ -9,17 +9,18 @@ declare const RESPONSE_MESSAGES: {
|
|
|
9
9
|
secondaryButtonAppearance: string;
|
|
10
10
|
secondaryButtonLabel: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
errorAccessDenied: {
|
|
13
13
|
appearance: string;
|
|
14
14
|
title: string;
|
|
15
15
|
desc: string;
|
|
16
|
+
code: string;
|
|
16
17
|
imageSrc: any;
|
|
17
18
|
primaryButtonAppearance: string;
|
|
18
19
|
primaryButtonLabel: string;
|
|
19
20
|
secondaryButtonAppearance: string;
|
|
20
21
|
secondaryButtonLabel: string;
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
errorNetwork: {
|
|
23
24
|
appearance: string;
|
|
24
25
|
title: string;
|
|
25
26
|
desc: string;
|
|
@@ -29,16 +30,17 @@ declare const RESPONSE_MESSAGES: {
|
|
|
29
30
|
secondaryButtonAppearance: string;
|
|
30
31
|
secondaryButtonLabel: string;
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
+
nothingFound: {
|
|
33
34
|
appearance: string;
|
|
34
35
|
title: string;
|
|
35
36
|
desc: string;
|
|
36
|
-
code: string;
|
|
37
37
|
imageSrc: any;
|
|
38
38
|
primaryButtonAppearance: string;
|
|
39
39
|
primaryButtonLabel: string;
|
|
40
|
+
secondaryButtonAppearance: string;
|
|
41
|
+
secondaryButtonLabel: string;
|
|
40
42
|
};
|
|
41
|
-
|
|
43
|
+
empty: {
|
|
42
44
|
appearance: string;
|
|
43
45
|
title: string;
|
|
44
46
|
desc: string;
|
|
@@ -46,8 +48,6 @@ declare const RESPONSE_MESSAGES: {
|
|
|
46
48
|
imageSrc: any;
|
|
47
49
|
primaryButtonAppearance: string;
|
|
48
50
|
primaryButtonLabel: string;
|
|
49
|
-
secondaryButtonAppearance: string;
|
|
50
|
-
secondaryButtonLabel: string;
|
|
51
51
|
};
|
|
52
52
|
warning: {
|
|
53
53
|
appearance: string;
|
|
@@ -7,9 +7,9 @@ declare function useNotificationsAPI(): {
|
|
|
7
7
|
showNotification: (notification: string | CreatedNotification, onClose?: SimpleCallback) => void;
|
|
8
8
|
notificationStatuses: {
|
|
9
9
|
error: string;
|
|
10
|
-
warning: string;
|
|
11
10
|
info: string;
|
|
12
11
|
success: string;
|
|
12
|
+
warning: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export { NotificationsProvider, useNotifications, useNotificationsAPI };
|