@itcase/ui 1.8.137 → 1.8.138

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.
@@ -337,7 +337,7 @@ function ChipsGroup(props) {
337
337
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
338
338
  // @ts-expect-error
339
339
  const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles.useStyles(props);
340
- return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_type_horizontal_scroll', 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 ? (jsxRuntime.jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
340
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-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 ? (jsxRuntime.jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
341
341
  ? children
342
342
  : chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id))) })) : children ? (children) : (chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id)))) }));
343
343
  }
@@ -335,7 +335,7 @@ function ChipsGroup(props) {
335
335
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
336
336
  // @ts-expect-error
337
337
  const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles(props);
338
- return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_type_horizontal_scroll', 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 ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
338
+ return (jsx("div", { className: clsx(className, 'chips-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 ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
339
339
  ? children
340
340
  : chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id))) })) : children ? (children) : (chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id)))) }));
341
341
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ChipsGroup = require('../../ChipsGroup_cjs_Du8WHI-Y.js');
3
+ var ChipsGroup = require('../../ChipsGroup_cjs_BNfzAmhc.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
@@ -7,7 +7,7 @@ var common = require('@itcase/common');
7
7
  var DatePicker = require('../../DatePicker_cjs_Dxbyx8GV.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_Du8WHI-Y.js');
10
+ var ChipsGroup = require('../../ChipsGroup_cjs_BNfzAmhc.js');
11
11
  require('date-fns/locale');
12
12
  require('react-datepicker');
13
13
  require('../hooks/useStyles/useStyles.js');
@@ -96,7 +96,7 @@ function Drawer(props) {
96
96
  console.warn('@itcase/ui Drawer warning: "isOpenModal" is deprecated, use "isOpen" instead.');
97
97
  }
98
98
  }, [_isOpen, onClose]);
99
- return (jsxRuntime.jsxs(ReactDrawer, { dataTour: dataTour, className: clsx('drawer', type && `drawer_type_${type}`, className, dataTour && `dataTour-${dataTour}`, stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
99
+ return (jsxRuntime.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,
100
100
  // Drawer set prefix "EZDrawer" for any id
101
101
  customIdSuffix: dataTestId ? `_${dataTestId}` : undefined, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: _isOpen, 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", size: dividerSize, fill: "surfaceTertiary" })), children && jsxRuntime.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntime.jsx("div", { className: "drawer__after", children: after })] }));
102
102
  }
@@ -140,20 +140,24 @@ const notificationConfig = {
140
140
  },
141
141
  };
142
142
  function Notification(props) {
143
- const { id, dataTestId, dataTour, className, appearance, title, desc, before, after, close, isSkeleton, onClickClose, } = props;
143
+ const { id, appearance, className, dataTestId, dataTour, title, text, before, after, close,
144
+ // type,
145
+ isSkeleton, onClickClose, } = props;
144
146
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, notificationConfig);
145
147
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
146
148
  const { fillClass, titleTextColor, titleTextSize, descTextColor, descTextSize, elevationClass, sizeClass, widthClass, closeIcon, closeIconFill, closeIconFillIcon, closeIconFillSize, closeIconShape, closeIconSize, closeIconSrc, } = propsGenerator;
147
149
  // @ts-expect-error
148
150
  const { styles: notificationStyles } = useStyles.useStyles(props);
149
- return (jsxRuntime.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, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(Text.Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx(Icon.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] }));
151
+ return (jsxRuntime.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, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(Text.Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx(Icon.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] }));
150
152
  }
151
153
 
152
154
  function NotificationWrapper(props) {
153
155
  const notifications = Notifications.useNotifications();
154
156
  const { hideNotifications } = Notifications.useNotificationsAPI();
155
157
  const { className, close } = props;
156
- return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map((notification, i) => (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i))) }) }));
158
+ return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map((notification, i) => (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text,
159
+ // type={notification.type}
160
+ after: notification.after, close: close, onClickClose: hideNotifications }, i))) }) }));
157
161
  }
158
162
 
159
163
  exports.Notification = Notification;
@@ -24,9 +24,9 @@ require('lodash/maxBy');
24
24
  const switchAppearanceDefault = {
25
25
  defaultPrimary: {
26
26
  fill: 'surfaceTertiary',
27
- fillActive: 'successTertiary',
27
+ fillActive: 'successPrimary',
28
28
  fillToggle: 'surfaceItemSecondary',
29
- fillToggleActive: 'accentItemSecondary',
29
+ fillToggleActive: 'successItemPrimary',
30
30
  titleTextColor: 'surfaceTextPrimary',
31
31
  descTextColor: 'surfaceTextPrimary',
32
32
  },
@@ -228,7 +228,7 @@ function TabGroup(props) {
228
228
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, widthClass, wrapClass, } = propsGenerator;
229
229
  // @ts-expect-error
230
230
  const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles.useStyles(props);
231
- return (jsxRuntime.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_type_horizontal_scroll', 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 ? (jsxRuntime.jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (jsxRuntime.jsxs(React.Fragment, { children: [tabList?.map((item) => (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key))), children] })) }));
231
+ return (jsxRuntime.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 ? (jsxRuntime.jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (jsxRuntime.jsxs(React.Fragment, { children: [tabList?.map((item) => (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key))), children] })) }));
232
232
  }
233
233
 
234
234
  exports.Tab = Tab;
@@ -8,9 +8,9 @@ var common = require('@itcase/common');
8
8
 
9
9
  const STATUSES = {
10
10
  error: 'error',
11
- warning: 'warning',
12
11
  info: 'info',
13
12
  success: 'success',
13
+ warning: 'warning',
14
14
  };
15
15
  const NotificationsContext = React.createContext([]);
16
16
  /* eslint-disable @typescript-eslint/no-unused-vars */
@@ -126,6 +126,7 @@ function createNotification(notification, onClose) {
126
126
  // let appearance = STATUSES.appearance
127
127
  let closeByTime = 4500;
128
128
  let appearance = '';
129
+ let after = null;
129
130
  if (typeof notification === 'string') {
130
131
  text = notification;
131
132
  }
@@ -135,6 +136,7 @@ function createNotification(notification, onClose) {
135
136
  text = notification.text ?? text;
136
137
  status = notification.status ?? status;
137
138
  closeByTime = notification.closeByTime ?? closeByTime;
139
+ after = notification.after ?? after;
138
140
  }
139
141
  switch (status) {
140
142
  case 'success':
@@ -156,6 +158,7 @@ function createNotification(notification, onClose) {
156
158
  title: title,
157
159
  status: status,
158
160
  text: text,
161
+ after: after,
159
162
  closeByTime: closeByTime,
160
163
  onClose: onClose,
161
164
  };
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CzVlqaHv.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_UTiUhYs7.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -5,7 +5,7 @@ import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
5
  import { D as DatePickerInput } from '../DatePicker_es_mX0NSjO5.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_CzVlqaHv.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_UTiUhYs7.js';
9
9
  import 'date-fns/locale';
10
10
  import 'react-datepicker';
11
11
  import '../hooks/useStyles/useStyles.js';
@@ -94,7 +94,7 @@ 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, { dataTour: dataTour, className: clsx('drawer', type && `drawer_type_${type}`, className, dataTour && `dataTour-${dataTour}`, stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
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
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 })] }));
100
100
  }
@@ -138,20 +138,24 @@ const notificationConfig = {
138
138
  },
139
139
  };
140
140
  function Notification(props) {
141
- const { id, dataTestId, dataTour, className, appearance, title, desc, before, after, close, isSkeleton, onClickClose, } = props;
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 })), desc && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), 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] }));
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, close: close, onClickClose: hideNotifications }, i))) }) }));
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 };
@@ -22,9 +22,9 @@ import 'lodash/maxBy';
22
22
  const switchAppearanceDefault = {
23
23
  defaultPrimary: {
24
24
  fill: 'surfaceTertiary',
25
- fillActive: 'successTertiary',
25
+ fillActive: 'successPrimary',
26
26
  fillToggle: 'surfaceItemSecondary',
27
- fillToggleActive: 'accentItemSecondary',
27
+ fillToggleActive: 'successItemPrimary',
28
28
  titleTextColor: 'surfaceTextPrimary',
29
29
  descTextColor: 'surfaceTextPrimary',
30
30
  },
@@ -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 && 'group_type_horizontal_scroll', 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] })) }));
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, cream, mellow-yellow, canary-yellow,
211
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
212
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
213
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
214
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
215
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
216
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
217
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
218
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
219
- sonic-silver {
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));
@@ -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, cream, mellow-yellow, canary-yellow,
120
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
121
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
122
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
123
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
124
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
125
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
126
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
127
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
128
- sonic-silver {
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, cream, mellow-yellow, canary-yellow,
188
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
189
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
190
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
191
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
192
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
193
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
194
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
195
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
196
- sonic-silver {
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, cream, mellow-yellow,
83
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
84
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
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, cream, mellow-yellow,
425
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
426
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
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, cream, mellow-yellow, canary-yellow,
904
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
905
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
906
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
907
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
908
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
909
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
910
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
911
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
912
- sonic-silver {
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, cream, mellow-yellow,
1268
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
1269
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
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, cream, mellow-yellow, canary-yellow,
121
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
122
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
123
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
124
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
125
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
126
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
127
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
128
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
129
- sonic-silver {
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, cream, mellow-yellow,
57
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
58
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
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));
@@ -1,6 +1,6 @@
1
1
  .width {
2
2
  &_hug {
3
- display: inline-flex;
3
+ display: inline-flex !important;
4
4
  }
5
5
  &_fill {
6
6
  width: 100%;
@@ -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 };
@@ -1,7 +1,9 @@
1
+ import React from 'react';
1
2
  import type { Id } from '@itcase/common';
2
3
  interface Notification {
3
4
  id: Id;
4
5
  _closeTimeout?: ReturnType<typeof setTimeout>;
6
+ after: React.ReactNode;
5
7
  closeByTime: number | false;
6
8
  status: 'error' | 'info' | 'success' | 'warning';
7
9
  text: string;
@@ -11,6 +13,7 @@ interface Notification {
11
13
  }
12
14
  interface CreatedNotification {
13
15
  id?: Notification['id'];
16
+ after?: Notification['after'];
14
17
  closeByTime?: Notification['closeByTime'];
15
18
  status?: Notification['status'];
16
19
  text?: Notification['text'];
@@ -27,4 +30,4 @@ interface NotificationsProviderProps {
27
30
  */
28
31
  isLogRequestsErrors: boolean;
29
32
  }
30
- export type { Notification, CreatedNotification, NotificationsProviderProps };
33
+ export type { CreatedNotification, Notification, NotificationsProviderProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.137",
3
+ "version": "1.8.138",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",