@itcase/ui 1.8.136 → 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.
Files changed (43) hide show
  1. package/dist/{Button_cjs_BxoEdSG6.js → Button_cjs_BXEwg-En.js} +3 -3
  2. package/dist/{Button_es_B-SYHL6T.js → Button_es_DEn6z83v.js} +3 -3
  3. package/dist/{ChipsGroup_cjs_Du8WHI-Y.js → ChipsGroup_cjs_BNfzAmhc.js} +1 -1
  4. package/dist/{ChipsGroup_es_CzVlqaHv.js → ChipsGroup_es_UTiUhYs7.js} +1 -1
  5. package/dist/{DatePicker_cjs_BLOiIsfD.js → DatePicker_cjs_Dxbyx8GV.js} +1 -1
  6. package/dist/{DatePicker_es_VslTy9Qw.js → DatePicker_es_mX0NSjO5.js} +1 -1
  7. package/dist/cjs/components/Button.js +1 -1
  8. package/dist/cjs/components/Chips.js +1 -1
  9. package/dist/cjs/components/Choice.js +23 -9
  10. package/dist/cjs/components/CookiesWarning.js +1 -1
  11. package/dist/cjs/components/DatePeriod.js +3 -3
  12. package/dist/cjs/components/DatePicker.js +2 -2
  13. package/dist/cjs/components/Drawer.js +1 -1
  14. package/dist/cjs/components/Notification.js +7 -3
  15. package/dist/cjs/components/Response.js +1 -1
  16. package/dist/cjs/components/Switch.js +2 -2
  17. package/dist/cjs/components/Tab.js +1 -1
  18. package/dist/cjs/context/Notifications.js +4 -1
  19. package/dist/components/Button.js +1 -1
  20. package/dist/components/Chips.js +1 -1
  21. package/dist/components/Choice.js +23 -9
  22. package/dist/components/CookiesWarning.js +1 -1
  23. package/dist/components/DatePeriod.js +3 -3
  24. package/dist/components/DatePicker.js +2 -2
  25. package/dist/components/Drawer.js +1 -1
  26. package/dist/components/Notification.js +7 -3
  27. package/dist/components/Response.js +1 -1
  28. package/dist/components/Switch.js +2 -2
  29. package/dist/components/Tab.js +1 -1
  30. package/dist/context/Notifications.js +4 -1
  31. package/dist/css/components/Checkbox/Checkbox.css +11 -10
  32. package/dist/css/components/Icon/Icon.css +11 -10
  33. package/dist/css/components/Radio/Radio.css +11 -10
  34. package/dist/css/styles/border-color/border-color.css +5 -4
  35. package/dist/css/styles/bundle.css +22 -19
  36. package/dist/css/styles/fill/fill.css +11 -10
  37. package/dist/css/styles/text-color/text-color.css +5 -4
  38. package/dist/css/styles/width/width.css +1 -1
  39. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +19 -1
  40. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +0 -4
  41. package/dist/types/context/Notifications.d.ts +1 -1
  42. package/dist/types/context/Notifications.interface.d.ts +4 -1
  43. package/package.json +1 -1
@@ -461,10 +461,10 @@ const buttonConfig = {
461
461
  },
462
462
  };
463
463
  const Button = React.forwardRef(function Button(props, ref) {
464
- const { dataTestId, dataTour, className, appearance, label, Badge, href, htmlType = 'button', link, rel, target, before, after, isDisabled, isLoading = false, onClick, onMouseDown, children, } = props;
464
+ const { appearance, className, dataTestId, dataTour, label, Badge, href, htmlType = 'button', link, rel, target, before, after, isDisabled, isLoading = false, onClick, onMouseDown, children, } = props;
465
465
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, buttonConfig, isDisabled);
466
466
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
467
- const { fillClass, fillHoverClass, borderColorClass, borderTypeClass, borderWidthClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, elevationClass, icon, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'simple', shapeClass, shapeStrengthClass, sizeClass, widthClass, isSkeleton, } = propsGenerator;
467
+ const { fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, icon, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'simple', shapeClass, shapeStrengthClass, sizeClass, widthClass, isSkeleton, } = propsGenerator;
468
468
  const { label: labelStyles, styles: buttonStyles } = useStyles.useStyles(props);
469
469
  const buttonTypeClass = after ||
470
470
  before ||
@@ -480,7 +480,7 @@ const Button = React.forwardRef(function Button(props, ref) {
480
480
  ? 'buttom_type_label'
481
481
  : buttonTypeClass
482
482
  ? 'button_type_icon'
483
- : '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && `button_skeleton`), type: htmlType, disabled: isDisabled, "data-test-id": dataTestId && `${dataTestId}Button`, "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
483
+ : '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && `button_skeleton`), type: htmlType, "data-test-id": dataTestId && `${dataTestId}Button`, "data-tour": dataTour, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
484
484
  });
485
485
 
486
486
  exports.Button = Button;
@@ -459,10 +459,10 @@ const buttonConfig = {
459
459
  },
460
460
  };
461
461
  const Button = React.forwardRef(function Button(props, ref) {
462
- const { dataTestId, dataTour, className, appearance, label, Badge, href, htmlType = 'button', link, rel, target, before, after, isDisabled, isLoading = false, onClick, onMouseDown, children, } = props;
462
+ const { appearance, className, dataTestId, dataTour, label, Badge, href, htmlType = 'button', link, rel, target, before, after, isDisabled, isLoading = false, onClick, onMouseDown, children, } = props;
463
463
  const appearanceConfig = useAppearanceConfig(appearance, buttonConfig, isDisabled);
464
464
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
465
- const { fillClass, fillHoverClass, borderColorClass, borderTypeClass, borderWidthClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, elevationClass, icon, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'simple', shapeClass, shapeStrengthClass, sizeClass, widthClass, isSkeleton, } = propsGenerator;
465
+ const { fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, icon, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'simple', shapeClass, shapeStrengthClass, sizeClass, widthClass, isSkeleton, } = propsGenerator;
466
466
  const { label: labelStyles, styles: buttonStyles } = useStyles(props);
467
467
  const buttonTypeClass = after ||
468
468
  before ||
@@ -478,7 +478,7 @@ const Button = React.forwardRef(function Button(props, ref) {
478
478
  ? 'buttom_type_label'
479
479
  : buttonTypeClass
480
480
  ? 'button_type_icon'
481
- : '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && `button_skeleton`), type: htmlType, disabled: isDisabled, "data-test-id": dataTestId && `${dataTestId}Button`, "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
481
+ : '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && `button_skeleton`), type: htmlType, "data-test-id": dataTestId && `${dataTestId}Button`, "data-tour": dataTour, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
482
482
  });
483
483
 
484
484
  export { Button as B, buttonAppearance as a, buttonConfig as b };
@@ -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
  }
@@ -8,7 +8,7 @@ var DatePicker = require('react-datepicker');
8
8
  var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
11
- var Button = require('./Button_cjs_BxoEdSG6.js');
11
+ var Button = require('./Button_cjs_BXEwg-En.js');
12
12
  var Icon = require('./Icon_cjs_DKzT-zmQ.js');
13
13
  var Input = require('./Input_cjs_DDi5JVAV.js');
14
14
  var Label = require('./Label_cjs_D2YMjCoS.js');
@@ -6,7 +6,7 @@ import DatePicker from 'react-datepicker';
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 './Button_es_B-SYHL6T.js';
9
+ import { B as Button } from './Button_es_DEn6z83v.js';
10
10
  import { I as Icon } from './Icon_es_5JUPM7bP.js';
11
11
  import { I as Input } from './Input_es_BnCXATnh.js';
12
12
  import { L as Label } from './Label_es_B5uGQwNN.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button_cjs_BxoEdSG6.js');
3
+ var Button = require('../../Button_cjs_BXEwg-En.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -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');
@@ -28,14 +28,32 @@ require('../context/UrlAssetPrefix.js');
28
28
  require('../../Link_cjs_qKXVfU8e.js');
29
29
 
30
30
  const choiceAppearanceDefault = {
31
+ defaultMutedPrimary: {
32
+ fill: 'surfaceSecondary',
33
+ fillItem: 'surfaceSecondary',
34
+ fillItemActive: 'accentTertiary',
35
+ fillItemActiveHover: 'accentPrimary',
36
+ fillItemHover: 'surfaceTertiary',
37
+ labelTextColor: 'surfaceTextPrimary',
38
+ labelTextColorActive: 'surfaceTextPrimary',
39
+ labelTextColorActiveHover: 'accentTextPrimary',
40
+ borderColor: 'surfaceBorderSecondary',
41
+ iconAfterFill: 'surfaceItemQuaternary',
42
+ iconAfterFillActive: 'surfaceItemSecondary',
43
+ iconBeforeFill: 'surfaceItemQuaternary',
44
+ iconBeforeFillActive: 'surfaceItemSecondary',
45
+ iconFill: 'surfaceItemQuaternary',
46
+ iconFillActive: 'surfaceItemSecondary',
47
+ },
31
48
  defaultPrimary: {
32
49
  fill: 'surfaceSecondary',
33
50
  fillItem: 'surfaceSecondary',
34
51
  fillItemActive: 'accentPrimary',
35
52
  fillItemActiveHover: 'accentHoverPrimary',
36
53
  fillItemHover: 'surfaceTertiary',
37
- labelTextActiveColor: 'accentTextPrimary',
38
54
  labelTextColor: 'surfaceTextPrimary',
55
+ labelTextColorActive: 'accentTextPrimary',
56
+ labelTextColorActiveHover: 'accentTextPrimary',
39
57
  borderColor: 'surfaceBorderQuaternary',
40
58
  iconAfterFill: 'surfaceItemQuaternary',
41
59
  iconAfterFillActive: 'surfaceItemSecondary',
@@ -150,14 +168,10 @@ const choiceAppearanceStyle = {
150
168
  },
151
169
  outlined: {
152
170
  fill: 'none',
153
- fillItem: 'none',
154
- fillItemActive: 'none',
155
171
  },
156
172
  full: {},
157
173
  ghost: {
158
174
  fill: 'none',
159
- fillItem: 'none',
160
- fillItemActive: 'none',
161
175
  borderColor: 'none',
162
176
  },
163
177
  };
@@ -198,7 +212,7 @@ const choiceConfig = {
198
212
  },
199
213
  };
200
214
  function Choice(props) {
201
- const { id, dataTestId, dataTour, className, name, appearance, isDisabled = false, active = { value: undefined }, itemAfter, itemBefore, options = [], setActiveSegment, before, after, isCheckbox = false, isLoading = false, isSkeleton, } = props;
215
+ const { id, appearance, className, dataTestId, dataTour, name, active = { value: undefined }, itemAfter, itemBefore, options = [], before, after, isDisabled = false, isSkeleton, isCheckbox = false, isLoading = false, setActiveSegment, } = props;
202
216
  const controlRef = React.useRef(null);
203
217
  const optionsRefs = React.useMemo(() => new Map(options.map((item) => [item.value, React.createRef()])), [options]);
204
218
  const onChange = React.useCallback((event, item) => {
@@ -207,7 +221,7 @@ function Choice(props) {
207
221
  }, [isCheckbox, setActiveSegment]);
208
222
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, choiceConfig, isDisabled);
209
223
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
210
- const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextActiveColor, labelTextColor, labelTextSize, labelTextWeight, labelTextWrap, iconAfterFillDisabled, iconBeforeFillDisabled, iconFillDisabled, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeSize, iconFill, iconFillActive, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
224
+ const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextColor, labelTextColorActive, labelTextColorActiveHover, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterFillDisabled, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeFillDisabled, iconBeforeSize, iconFill, iconFillActive, iconFillDisabled, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
211
225
  const { styles } = useStyles.useStyles(props);
212
226
  return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'choice', size && `choice_size_${size}`, fillClass && `fill_${fillClass}`, wrapClass && `choice_wrap_${wrapClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `choice_skeleton`), ref: controlRef, "data-test-id": dataTestId && `${dataTestId}Choice`, "data-tour": dataTour, 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((item) => {
213
227
  const isActive = typeof active === 'object'
@@ -230,9 +244,9 @@ function Choice(props) {
230
244
  : fillItemDisabledClass &&
231
245
  `fill_disabled_${fillItemDisabledClass}`, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
232
246
  isDisabled &&
233
- 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: `${name}-${item.value}`, className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: (event) => onChange(event, item) }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: `${name}-${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
247
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: `${name}-${item.value}`, className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, checked: isActive, disabled: isDisabled, value: item.value, onChange: (event) => onChange(event, item) }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: `${name}-${item.value}`, children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconFillDisabled: iconBeforeFillDisabled, iconSize: iconBeforeSize, SvgImage: isActive
234
248
  ? item.iconBeforeActive || item.iconBefore
235
- : 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
249
+ : item.iconBefore, isActive: isActive, isDisabled: isDisabled })), item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorActiveHover: labelTextColorActiveHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconFillDisabled: iconAfterFillDisabled, iconSize: iconAfterSize, SvgImage: isActive
236
250
  ? item.iconAfterActive || item.iconAfter
237
251
  : item.iconAfter, isActive: isActive })), itemAfter] })] }, `${name}-${item.value}`));
238
252
  }) })), after && jsxRuntime.jsx("div", { className: "choice__after", children: after })] }));
@@ -6,7 +6,7 @@ var clsx = require('clsx');
6
6
  var Cookies = require('js-cookie');
7
7
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
8
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
- var Button = require('../../Button_cjs_BxoEdSG6.js');
9
+ var Button = require('../../Button_cjs_BXEwg-En.js');
10
10
  var Text = require('../../Text_cjs_DaH5tVvz.js');
11
11
  require('lodash/camelCase');
12
12
  require('lodash/castArray');
@@ -4,10 +4,10 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var common = require('@itcase/common');
7
- var DatePicker = require('../../DatePicker_cjs_BLOiIsfD.js');
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');
@@ -22,7 +22,7 @@ require('react-responsive');
22
22
  require('../utils/setViewportProperty.js');
23
23
  require('../hooks.js');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
- require('../../Button_cjs_BxoEdSG6.js');
25
+ require('../../Button_cjs_BXEwg-En.js');
26
26
  require('../../Icon_cjs_DKzT-zmQ.js');
27
27
  require('react-inlinesvg');
28
28
  require('../hoc/urlWithAssetPrefix.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../../DatePicker_cjs_BLOiIsfD.js');
3
+ var DatePicker = require('../../DatePicker_cjs_Dxbyx8GV.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -22,7 +22,7 @@ require('../hooks.js');
22
22
  require('../hooks/useStyles/styleAttributes.js');
23
23
  require('../hooks/useStyles/useStyles.js');
24
24
  require('lodash/maxBy');
25
- require('../../Button_cjs_BxoEdSG6.js');
25
+ require('../../Button_cjs_BXEwg-En.js');
26
26
  require('../../Icon_cjs_DKzT-zmQ.js');
27
27
  require('react-inlinesvg');
28
28
  require('../hoc/urlWithAssetPrefix.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;
@@ -8,7 +8,7 @@ var urlWithAssetPrefix = require('../hoc/urlWithAssetPrefix.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var useStyles = require('../hooks/useStyles/useStyles.js');
11
- var Button = require('../../Button_cjs_BxoEdSG6.js');
11
+ var Button = require('../../Button_cjs_BXEwg-En.js');
12
12
  var Group = require('../../Group_cjs_DxyobxPf.js');
13
13
  var Text = require('../../Text_cjs_DaH5tVvz.js');
14
14
  require('@itcase/common');
@@ -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 { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_B-SYHL6T.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_DEn6z83v.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -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';
@@ -26,14 +26,32 @@ import '../context/UrlAssetPrefix.js';
26
26
  import '../Link_es_P2b6ya7P.js';
27
27
 
28
28
  const choiceAppearanceDefault = {
29
+ defaultMutedPrimary: {
30
+ fill: 'surfaceSecondary',
31
+ fillItem: 'surfaceSecondary',
32
+ fillItemActive: 'accentTertiary',
33
+ fillItemActiveHover: 'accentPrimary',
34
+ fillItemHover: 'surfaceTertiary',
35
+ labelTextColor: 'surfaceTextPrimary',
36
+ labelTextColorActive: 'surfaceTextPrimary',
37
+ labelTextColorActiveHover: 'accentTextPrimary',
38
+ borderColor: 'surfaceBorderSecondary',
39
+ iconAfterFill: 'surfaceItemQuaternary',
40
+ iconAfterFillActive: 'surfaceItemSecondary',
41
+ iconBeforeFill: 'surfaceItemQuaternary',
42
+ iconBeforeFillActive: 'surfaceItemSecondary',
43
+ iconFill: 'surfaceItemQuaternary',
44
+ iconFillActive: 'surfaceItemSecondary',
45
+ },
29
46
  defaultPrimary: {
30
47
  fill: 'surfaceSecondary',
31
48
  fillItem: 'surfaceSecondary',
32
49
  fillItemActive: 'accentPrimary',
33
50
  fillItemActiveHover: 'accentHoverPrimary',
34
51
  fillItemHover: 'surfaceTertiary',
35
- labelTextActiveColor: 'accentTextPrimary',
36
52
  labelTextColor: 'surfaceTextPrimary',
53
+ labelTextColorActive: 'accentTextPrimary',
54
+ labelTextColorActiveHover: 'accentTextPrimary',
37
55
  borderColor: 'surfaceBorderQuaternary',
38
56
  iconAfterFill: 'surfaceItemQuaternary',
39
57
  iconAfterFillActive: 'surfaceItemSecondary',
@@ -148,14 +166,10 @@ const choiceAppearanceStyle = {
148
166
  },
149
167
  outlined: {
150
168
  fill: 'none',
151
- fillItem: 'none',
152
- fillItemActive: 'none',
153
169
  },
154
170
  full: {},
155
171
  ghost: {
156
172
  fill: 'none',
157
- fillItem: 'none',
158
- fillItemActive: 'none',
159
173
  borderColor: 'none',
160
174
  },
161
175
  };
@@ -196,7 +210,7 @@ const choiceConfig = {
196
210
  },
197
211
  };
198
212
  function Choice(props) {
199
- const { id, dataTestId, dataTour, className, name, appearance, isDisabled = false, active = { value: undefined }, itemAfter, itemBefore, options = [], setActiveSegment, before, after, isCheckbox = false, isLoading = false, isSkeleton, } = props;
213
+ const { id, appearance, className, dataTestId, dataTour, name, active = { value: undefined }, itemAfter, itemBefore, options = [], before, after, isDisabled = false, isSkeleton, isCheckbox = false, isLoading = false, setActiveSegment, } = props;
200
214
  const controlRef = useRef(null);
201
215
  const optionsRefs = useMemo(() => new Map(options.map((item) => [item.value, createRef()])), [options]);
202
216
  const onChange = useCallback((event, item) => {
@@ -205,7 +219,7 @@ function Choice(props) {
205
219
  }, [isCheckbox, setActiveSegment]);
206
220
  const appearanceConfig = useAppearanceConfig(appearance, choiceConfig, isDisabled);
207
221
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
208
- const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextActiveColor, labelTextColor, labelTextSize, labelTextWeight, labelTextWrap, iconAfterFillDisabled, iconBeforeFillDisabled, iconFillDisabled, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeSize, iconFill, iconFillActive, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
222
+ const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextColor, labelTextColorActive, labelTextColorActiveHover, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterFillDisabled, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeFillDisabled, iconBeforeSize, iconFill, iconFillActive, iconFillDisabled, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
209
223
  const { styles } = useStyles(props);
210
224
  return (jsxs("div", { id: id, className: clsx(className, 'choice', size && `choice_size_${size}`, fillClass && `fill_${fillClass}`, wrapClass && `choice_wrap_${wrapClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `choice_skeleton`), ref: controlRef, "data-test-id": dataTestId && `${dataTestId}Choice`, "data-tour": dataTour, 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((item) => {
211
225
  const isActive = typeof active === 'object'
@@ -228,9 +242,9 @@ function Choice(props) {
228
242
  : fillItemDisabledClass &&
229
243
  `fill_disabled_${fillItemDisabledClass}`, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
230
244
  isDisabled &&
231
- 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { id: `${name}-${item.value}`, className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: (event) => onChange(event, item) }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: `${name}-${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
245
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { id: `${name}-${item.value}`, className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, checked: isActive, disabled: isDisabled, value: item.value, onChange: (event) => onChange(event, item) }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: `${name}-${item.value}`, children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconFillDisabled: iconBeforeFillDisabled, iconSize: iconBeforeSize, SvgImage: isActive
232
246
  ? item.iconBeforeActive || item.iconBefore
233
- : 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
247
+ : item.iconBefore, isActive: isActive, isDisabled: isDisabled })), item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorActiveHover: labelTextColorActiveHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (jsx(Icon, { className: "choice__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (jsx(Icon, { className: "choice__item-icon", iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconFillDisabled: iconAfterFillDisabled, iconSize: iconAfterSize, SvgImage: isActive
234
248
  ? item.iconAfterActive || item.iconAfter
235
249
  : item.iconAfter, isActive: isActive })), itemAfter] })] }, `${name}-${item.value}`));
236
250
  }) })), after && jsx("div", { className: "choice__after", children: after })] }));
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { B as Button } from '../Button_es_B-SYHL6T.js';
7
+ import { B as Button } from '../Button_es_DEn6z83v.js';
8
8
  import { T as Text } from '../Text_es_RDU9GLCV.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -2,10 +2,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
- import { D as DatePickerInput } from '../DatePicker_es_VslTy9Qw.js';
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';
@@ -20,7 +20,7 @@ import 'react-responsive';
20
20
  import '../utils/setViewportProperty.js';
21
21
  import '../hooks.js';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
- import '../Button_es_B-SYHL6T.js';
23
+ import '../Button_es_DEn6z83v.js';
24
24
  import '../Icon_es_5JUPM7bP.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_VslTy9Qw.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_mX0NSjO5.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -20,7 +20,7 @@ import '../hooks.js';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
21
  import '../hooks/useStyles/useStyles.js';
22
22
  import 'lodash/maxBy';
23
- import '../Button_es_B-SYHL6T.js';
23
+ import '../Button_es_DEn6z83v.js';
24
24
  import '../Icon_es_5JUPM7bP.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.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 };
@@ -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 '../Button_es_B-SYHL6T.js';
9
+ import { B as Button } from '../Button_es_DEn6z83v.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';
@@ -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%;
@@ -1,12 +1,30 @@
1
1
  declare const choiceAppearanceDefault: {
2
+ defaultMutedPrimary: {
3
+ fill: string;
4
+ fillItem: string;
5
+ fillItemActive: string;
6
+ fillItemActiveHover: string;
7
+ fillItemHover: string;
8
+ labelTextColor: string;
9
+ labelTextColorActive: string;
10
+ labelTextColorActiveHover: string;
11
+ borderColor: string;
12
+ iconAfterFill: string;
13
+ iconAfterFillActive: string;
14
+ iconBeforeFill: string;
15
+ iconBeforeFillActive: string;
16
+ iconFill: string;
17
+ iconFillActive: string;
18
+ };
2
19
  defaultPrimary: {
3
20
  fill: string;
4
21
  fillItem: string;
5
22
  fillItemActive: string;
6
23
  fillItemActiveHover: string;
7
24
  fillItemHover: string;
8
- labelTextActiveColor: string;
9
25
  labelTextColor: string;
26
+ labelTextColorActive: string;
27
+ labelTextColorActiveHover: string;
10
28
  borderColor: string;
11
29
  iconAfterFill: string;
12
30
  iconAfterFillActive: string;
@@ -4,14 +4,10 @@ declare const choiceAppearanceStyle: {
4
4
  };
5
5
  outlined: {
6
6
  fill: string;
7
- fillItem: string;
8
- fillItemActive: string;
9
7
  };
10
8
  full: {};
11
9
  ghost: {
12
10
  fill: string;
13
- fillItem: string;
14
- fillItemActive: string;
15
11
  borderColor: string;
16
12
  };
17
13
  };
@@ -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.136",
3
+ "version": "1.8.138",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",