@itcase/ui 1.8.130 → 1.8.132

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 (29) hide show
  1. package/dist/{ChipsGroup_cjs_BMkiDYau.js → ChipsGroup_cjs_Du8WHI-Y.js} +15 -11
  2. package/dist/{ChipsGroup_es_Czu95rkL.js → ChipsGroup_es_CzVlqaHv.js} +15 -11
  3. package/dist/cjs/components/Chips.js +1 -1
  4. package/dist/cjs/components/DatePeriod.js +1 -1
  5. package/dist/cjs/components/MenuItem.js +11 -11
  6. package/dist/cjs/components/Pagination.js +48 -8
  7. package/dist/cjs/components/Response.js +29 -40
  8. package/dist/cjs/components/Segmented.js +5 -5
  9. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +2 -2
  10. package/dist/components/Chips.js +1 -1
  11. package/dist/components/DatePeriod.js +1 -1
  12. package/dist/components/MenuItem.js +11 -11
  13. package/dist/components/Pagination.js +48 -8
  14. package/dist/components/Response.js +29 -40
  15. package/dist/components/Segmented.js +5 -5
  16. package/dist/css/components/Pagination/Pagination.css +6 -0
  17. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +2 -2
  18. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +4 -0
  19. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -2
  20. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -3
  21. package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +232 -290
  22. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +6 -5
  23. package/dist/types/components/Pagination/appearance/paginationShape.d.ts +34 -0
  24. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +5 -1
  25. package/dist/types/components/Response/Response.constant.d.ts +6 -20
  26. package/dist/types/components/Segmented/Segmented.interface.d.ts +2 -2
  27. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +2 -2
  28. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
  29. package/package.json +6 -6
@@ -52,11 +52,15 @@ const chipsAppearanceDanger = {
52
52
 
53
53
  const chipsAppearanceDisabled = {
54
54
  disabled: {
55
- fill: 'surfaceDisabled',
56
- labelTextColor: 'surfaceTextDisabled',
57
- borderColor: 'surfaceBorderDisabled',
58
- iconAfterFillIcon: 'surfaceItemDisabled',
59
- iconBeforeFillIcon: 'surfaceItemDisabled',
55
+ fill: 'surfaceSecondary',
56
+ fillHover: 'surfaceSecondary',
57
+ labelTextActiveColor: 'surfaceTextQuaternary',
58
+ labelTextActiveColorHover: 'surfaceTextQuaternary',
59
+ labelTextColor: 'surfaceTextQuaternary',
60
+ labelTextColorHover: 'surfaceTextQuaternary',
61
+ borderColor: 'disabledBorderPrimary',
62
+ iconAfterFillIcon: 'disabledItemPrimary',
63
+ iconBeforeFillIcon: 'disabledItemPrimary',
60
64
  },
61
65
  };
62
66
 
@@ -244,7 +248,7 @@ const chipsAppearanceSurface = {
244
248
  fillHover: 'surfaceTertiary',
245
249
  labelTextActiveColor: 'accentTextPrimary',
246
250
  labelTextColor: 'surfaceTextPrimary',
247
- labelTextHoverColor: 'surfaceTextPrimary',
251
+ labelTextColorHover: 'surfaceTextPrimary',
248
252
  borderColor: 'surfaceBorderTertiary',
249
253
  activeIconItemFill: 'surfaceItemSecondary',
250
254
  badgeAppearance: 'surfacePrimary sizeXS solid',
@@ -260,7 +264,7 @@ const chipsAppearanceSurface = {
260
264
  fillHover: 'surfaceTertiary',
261
265
  labelTextActiveColor: 'accentTextPrimary',
262
266
  labelTextColor: 'surfaceTextPrimary',
263
- labelTextHoverColor: 'surfaceTextPrimary',
267
+ labelTextColorHover: 'surfaceTextPrimary',
264
268
  borderColor: 'surfaceBorderSecondary',
265
269
  iconAfterFillActiveIcon: 'accentItemPrimary',
266
270
  iconAfterFillIcon: 'surfaceItemPrimary',
@@ -315,16 +319,16 @@ const chipsConfig = {
315
319
  },
316
320
  };
317
321
  function Chips(props) {
318
- const { dataTestId, dataTour, className, appearance, label = '', isDisabled, iconAfter, iconAfterSrc, iconBefore, iconBeforeSrc, isActive, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
322
+ const { appearance, className, dataTestId, dataTour, label = '', iconAfter, iconAfterSrc, iconBefore, iconBeforeSrc, isActive, isDisabled, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
319
323
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, chipsConfig, isDisabled);
320
324
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
321
- const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveHoverColor, labelTextColor, labelTextHoverColor, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
325
+ const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
322
326
  const { styles: chipsStyles } = useStyles.useStyles(props);
323
- return (jsxRuntime.jsx("div", { "data-test-id": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, className: clsx(className, 'chips', !isActive
327
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', !isActive
324
328
  ? fillClass && `fill_${fillClass}`
325
329
  : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
326
330
  ? fillHoverClass && `fill_hover_${fillHoverClass}`
327
- : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (jsxRuntime.jsx(Icon.Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
331
+ : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), "data-test-id": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (jsxRuntime.jsx(Icon.Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
328
332
  }
329
333
 
330
334
  function ChipsGroup(props) {
@@ -50,11 +50,15 @@ const chipsAppearanceDanger = {
50
50
 
51
51
  const chipsAppearanceDisabled = {
52
52
  disabled: {
53
- fill: 'surfaceDisabled',
54
- labelTextColor: 'surfaceTextDisabled',
55
- borderColor: 'surfaceBorderDisabled',
56
- iconAfterFillIcon: 'surfaceItemDisabled',
57
- iconBeforeFillIcon: 'surfaceItemDisabled',
53
+ fill: 'surfaceSecondary',
54
+ fillHover: 'surfaceSecondary',
55
+ labelTextActiveColor: 'surfaceTextQuaternary',
56
+ labelTextActiveColorHover: 'surfaceTextQuaternary',
57
+ labelTextColor: 'surfaceTextQuaternary',
58
+ labelTextColorHover: 'surfaceTextQuaternary',
59
+ borderColor: 'disabledBorderPrimary',
60
+ iconAfterFillIcon: 'disabledItemPrimary',
61
+ iconBeforeFillIcon: 'disabledItemPrimary',
58
62
  },
59
63
  };
60
64
 
@@ -242,7 +246,7 @@ const chipsAppearanceSurface = {
242
246
  fillHover: 'surfaceTertiary',
243
247
  labelTextActiveColor: 'accentTextPrimary',
244
248
  labelTextColor: 'surfaceTextPrimary',
245
- labelTextHoverColor: 'surfaceTextPrimary',
249
+ labelTextColorHover: 'surfaceTextPrimary',
246
250
  borderColor: 'surfaceBorderTertiary',
247
251
  activeIconItemFill: 'surfaceItemSecondary',
248
252
  badgeAppearance: 'surfacePrimary sizeXS solid',
@@ -258,7 +262,7 @@ const chipsAppearanceSurface = {
258
262
  fillHover: 'surfaceTertiary',
259
263
  labelTextActiveColor: 'accentTextPrimary',
260
264
  labelTextColor: 'surfaceTextPrimary',
261
- labelTextHoverColor: 'surfaceTextPrimary',
265
+ labelTextColorHover: 'surfaceTextPrimary',
262
266
  borderColor: 'surfaceBorderSecondary',
263
267
  iconAfterFillActiveIcon: 'accentItemPrimary',
264
268
  iconAfterFillIcon: 'surfaceItemPrimary',
@@ -313,16 +317,16 @@ const chipsConfig = {
313
317
  },
314
318
  };
315
319
  function Chips(props) {
316
- const { dataTestId, dataTour, className, appearance, label = '', isDisabled, iconAfter, iconAfterSrc, iconBefore, iconBeforeSrc, isActive, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
320
+ const { appearance, className, dataTestId, dataTour, label = '', iconAfter, iconAfterSrc, iconBefore, iconBeforeSrc, isActive, isDisabled, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
317
321
  const appearanceConfig = useAppearanceConfig(appearance, chipsConfig, isDisabled);
318
322
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
319
- const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveHoverColor, labelTextColor, labelTextHoverColor, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
323
+ const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
320
324
  const { styles: chipsStyles } = useStyles(props);
321
- return (jsx("div", { "data-test-id": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, className: clsx(className, 'chips', !isActive
325
+ return (jsx("div", { className: clsx(className, 'chips', !isActive
322
326
  ? fillClass && `fill_${fillClass}`
323
327
  : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
324
328
  ? fillHoverClass && `fill_hover_${fillHoverClass}`
325
- : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
329
+ : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), "data-test-id": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
326
330
  }
327
331
 
328
332
  function ChipsGroup(props) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ChipsGroup = require('../../ChipsGroup_cjs_BMkiDYau.js');
3
+ var ChipsGroup = require('../../ChipsGroup_cjs_Du8WHI-Y.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_BLOiIsfD.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_BMkiDYau.js');
10
+ var ChipsGroup = require('../../ChipsGroup_cjs_Du8WHI-Y.js');
11
11
  require('date-fns/locale');
12
12
  require('react-datepicker');
13
13
  require('../hooks/useStyles/useStyles.js');
@@ -169,13 +169,13 @@ const menuItemAppearanceSurface = {
169
169
  },
170
170
  surfacePrimary: {
171
171
  fill: 'surfacePrimary',
172
- fillActive: 'surfaceHover',
173
- fillActiveHover: 'surfaceHover',
174
- fillHover: 'surfaceHover',
175
- labelTextActiveColor: 'accentTextSecondary',
176
- labelTextActiveHoverColor: 'surfaceTextPrimary',
172
+ fillActive: 'surfaceSecondary',
173
+ fillActiveHover: 'surfaceTertiary',
174
+ fillHover: 'surfaceSecondary',
175
+ labelTextActiveColor: 'surfaceTextPrimary',
176
+ labelTextActiveColorHover: 'surfaceTextPrimary',
177
177
  labelTextColor: 'surfaceTextPrimary',
178
- labelTextHoverColor: 'accentTextSecondary',
178
+ labelTextColorHover: 'surfaceTextPrimary',
179
179
  borderColor: 'surfaceBorderQuaternary',
180
180
  iconAfterFillIcon: 'surfaceItemPrimary',
181
181
  iconBeforeFillIcon: 'surfaceItemPrimary',
@@ -191,7 +191,7 @@ const menuItemAppearanceSurface = {
191
191
  fillActiveHover: 'surfaceHover',
192
192
  fillHover: 'surfaceSecondary',
193
193
  labelTextActiveColor: 'accentTextSecondary',
194
- labelTextActiveHoverColor: 'surfaceTextPrimary',
194
+ labelTextActiveColorHover: 'surfaceTextPrimary',
195
195
  borderColor: 'surfaceBorderQuaternary',
196
196
  iconAfterFillIcon: 'surfaceItemPrimary',
197
197
  iconBeforeFillIcon: 'surfaceItemPrimary',
@@ -219,7 +219,7 @@ const menuItemConfig = {
219
219
  },
220
220
  };
221
221
  function MenuItem(props) {
222
- const { appearance, className, label, href, link, LinkComponent, rel, showTooltip, target, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
222
+ const { appearance, className, label, href, link, LinkComponent, rel, showTooltip, target, easing, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
223
223
  const tooltipRef = React.useRef(null);
224
224
  const onMouseEnter = React.useCallback(() => {
225
225
  if (showTooltip) {
@@ -233,10 +233,10 @@ function MenuItem(props) {
233
233
  }, [showTooltip]);
234
234
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, menuItemConfig, isDisabled);
235
235
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
236
- const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelStyle, labelTextActiveColor, labelTextActiveHoverColor, labelTextColor, labelTextColorDisabled, labelTextColorHover, labelTextSize, labelWeight, labelWrap, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipFill, tooltipShape, tooltipShapeStrength, tooltipSize, tooltipText, tooltipTextColor, tooltipTextSize, tooltipTitleTextColor, typeClass, widthClass, isSkeleton, } = propsGenerator;
236
+ const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorDisabled, labelTextColorHover, labelTextSize, labelWeight, labelWrap, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, tooltipTitle, shapeClass, shapeStrengthClass, sizeClass, tooltipFill, tooltipShape, tooltipShapeStrength, tooltipSize, tooltipText, tooltipTextColor, tooltipTextSize, tooltipTitleTextColor, typeClass, widthClass, isSkeleton, } = propsGenerator;
237
237
  // @ts-expect-error
238
238
  const { styles: menuItem } = useStyles.useStyles(props);
239
- return (jsxRuntime.jsxs("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
239
+ return (jsxRuntime.jsxs("div", { className: clsx('menu-item', easing && `easing_${easing}`, isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
240
240
  'menu-item_label-icon', sizeClass && `menu-item_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, !isActive
241
241
  ? fillClass && `fill_${fillClass}`
242
242
  : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
@@ -244,7 +244,7 @@ function MenuItem(props) {
244
244
  : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass
245
245
  ? `shape-strength_${shapeStrengthClass}`
246
246
  : shapeClass === 'rounded' && 'shape-strength_default', typeClass && `menu-item_type_${typeClass}`, widthClass && `width_${widthClass}`, justifyContentClass &&
247
- `menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxRuntime.jsxs(Link.Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsxRuntime.jsx(Text.Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsxRuntime.jsx(Icon.Tooltip, { appearance: tooltipAppearance, className: "menu-item__tooltip", ref: tooltipRef, minWidth: "auto", size: tooltipSize, fill: tooltipFill, left: "100%", zIndex: "100", titleTextColor: tooltipTitleTextColor, paddingLeft: "2m", text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize,
247
+ `menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxRuntime.jsxs(Link.Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsxRuntime.jsx(Text.Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsxRuntime.jsx(Icon.Tooltip, { appearance: tooltipAppearance, className: "menu-item__tooltip", ref: tooltipRef, minWidth: "auto", size: tooltipSize, fill: tooltipFill, left: "100%", zIndex: "100", title: tooltipTitle, titleColor: tooltipTitleTextColor, paddingLeft: "2m", text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize,
248
248
  // centering="vertical"
249
249
  shape: tooltipShape, shapeStrength: tooltipShapeStrength, isTooltipDisableState: true }))] }));
250
250
  }
@@ -73,6 +73,40 @@ const paginationAppearanceAccent = {
73
73
  },
74
74
  };
75
75
 
76
+ const paginationAppearanceShape = {
77
+ circular: {
78
+ shape: 'circular',
79
+ },
80
+ rounded: {
81
+ fillInputShape: 'rounded',
82
+ pageCountDropdownShape: 'rounded',
83
+ },
84
+ roundedXL: {
85
+ fillInputShape: 'rounded',
86
+ fillInputShapeStrength: '2m',
87
+ pageCountDropdownShape: 'rounded',
88
+ pageCountDropdownShapeStrength: '2m'
89
+ },
90
+ roundedL: {
91
+ fillInputShape: 'rounded',
92
+ fillInputShapeStrength: '1_5m',
93
+ pageCountDropdownShape: 'rounded',
94
+ pageCountDropdownShapeStrength: '1_5m'
95
+ },
96
+ roundedM: {
97
+ fillInputShape: 'rounded',
98
+ fillInputShapeStrength: '1m',
99
+ pageCountDropdownShape: 'rounded',
100
+ pageCountDropdownShapeStrength: '1m'
101
+ },
102
+ roundedS: {
103
+ fillInputShape: 'rounded',
104
+ fillInputShapeStrength: '0_5m',
105
+ pageCountDropdownShape: 'rounded',
106
+ pageCountDropdownShapeStrength: '0_5m'
107
+ },
108
+ };
109
+
76
110
  const paginationAppearanceSize = {
77
111
  sizeL: {
78
112
  size: 'l',
@@ -168,16 +202,21 @@ const paginationAppearanceSurface = {
168
202
  surfacePrimary: {
169
203
  fill: 'surfacePrimary',
170
204
  fillHover: 'surfaceTertiary',
171
- fillActive: 'surfaceTertiary',
172
- fillActiveHover: 'surfaceTertiary',
205
+ fillActive: 'accentPrimary',
206
+ fillActiveHover: 'accentHoverPrimary',
173
207
  fillInput: 'surfacePrimary',
208
+ fillInputHover: 'surfaceTertiary',
174
209
  textColor: 'surfaceTextPrimary',
210
+ textColorHover: 'surfaceTextPrimary',
211
+ textColorActive: 'accentTextPrimary',
212
+ textColorActiveHover: 'accentTextPrimary',
175
213
  builderIconFillIcon: 'surfaceItemPrimary',
176
214
  nextIconFillIcon: 'surfaceItemPrimary',
177
215
  pageCountDescTextColor: 'surfaceTextPrimary',
178
216
  pageCountDropdownAlignment: 'topCenter',
179
217
  pageCountDropdownElevation: 8,
180
218
  pageCountDropdownFill: 'surfacePrimary',
219
+ pageCountDropdownFillHover: 'surfaceTertiary',
181
220
  pageCountDropdownItemDividerFill: 'surfaceSecondary',
182
221
  pageCountDropdownItemFill: 'surfacePrimary',
183
222
  pageCountDropdownItemFillActive: 'accentPrimary',
@@ -188,7 +227,6 @@ const paginationAppearanceSurface = {
188
227
  pageCountDropdownItemLabelColorActive: 'accentTextPrimary',
189
228
  pageCountDropdownItemLabelColorActiveHover: 'accentTextPrimary',
190
229
  pageCountDropdownItemLabelColorHover: 'surfaceTextPrimary',
191
- pageCountDropdownShape: 'rounded',
192
230
  pageCountInputIconColor: 'surfaceItemPrimary',
193
231
  pageCountInputTextColor: 'surfaceTextPrimary',
194
232
  previousIconFillIcon: 'surfaceItemPrimary',
@@ -199,6 +237,7 @@ const paginationAppearance = {
199
237
  ...paginationAppearanceSurface,
200
238
  ...paginationAppearanceAccent,
201
239
  ...paginationAppearanceSize,
240
+ ...paginationAppearanceShape,
202
241
  ...paginationAppearanceStyle,
203
242
  };
204
243
 
@@ -268,15 +307,16 @@ function Pagination(props) {
268
307
  }, [pageNumber]);
269
308
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, paginationConfig, isDisabled);
270
309
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
271
- const { justifyContentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, fillInputClass, fillInputHoverClass, textColorClass, textSizeClass, builderIcon, builderIconFill, builderIconFillIcon, builderIconFillSize, builderIconSize, marginPagesDisplayed, nextIcon, nextIconFill, nextIconFillIcon, nextIconFillSize, nextIconSize, pageCountDescTextColor, pageCountDescTextSize, pageCountDropdownAlignment, pageCountDropdownElevation, pageCountDropdownFill, pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize, pageCountDropdownItemFill, pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider, pageCountDropdownItemSize, pageCountDropdownItemWidth, pageCountDropdownShape, pageCountInputIcon, pageCountInputIconColor, pageCountInputIconFillSize, pageCountInputIconSrc, pageCountInputTextColor, pageCountInputTextSize, pageRangeDisplayed, previousIcon, previousIconFill, previousIconFillIcon, previousIconFillSize, previousIconSize, sizeClass, } = propsGenerator;
310
+ const { justifyContentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, fillInputClass, fillInputHoverClass, fillInputShapeClass, fillInputShapeStrengthClass, textColorClass, textColorHoverClass, textColorActiveClass, textColorActiveHoverClass, textSizeClass, builderIcon, builderIconFill, builderIconFillIcon, builderIconFillSize, builderIconSize, marginPagesDisplayed, nextIcon, nextIconFill, nextIconFillIcon, nextIconFillSize, nextIconSize, pageCountDescTextColor, pageCountDescTextSize, pageCountDropdownAlignment, pageCountDropdownElevation, pageCountDropdownFill, pageCountDropdownFillHover, pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize, pageCountDropdownItemFill, pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider, pageCountDropdownItemSize, pageCountDropdownItemWidth, pageCountDropdownShape, pageCountDropdownShapeStrength, pageCountInputIcon, pageCountInputIconColor, pageCountInputIconFillSize, pageCountInputIconSrc, pageCountInputTextColor, pageCountInputTextSize, pageRangeDisplayed, previousIcon, previousIconFill, previousIconFillIcon, previousIconFillSize, previousIconSize, sizeClass, } = propsGenerator;
272
311
  const { styles: paginationStyles } = useStyles.useStyles(props);
273
- return (allItemsCount > perPageCount && (jsxRuntime.jsxs("div", { className: clsx('pagination', sizeClass && `pagination_size_${sizeClass}`, isSkeleton && `pagination_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.jsx(ReactPaginate, { activeClassName: clsx('pagination__item_state_active cursor_type_default', fillActiveClass && `fill_active_${fillActiveClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
312
+ return (allItemsCount > perPageCount && (jsxRuntime.jsxs("div", { className: clsx('pagination', sizeClass && `pagination_size_${sizeClass}`, isSkeleton && `pagination_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.jsx(ReactPaginate, { activeClassName: clsx('pagination__item_state_active cursor_type_default', fillActiveClass && `fill_active_${fillActiveClass}`, fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`), activeLinkClassName: clsx('pagination__item-link_state_active', textColorActiveClass && `text-color_active_${textColorActiveClass}`, textColorActiveHoverClass &&
313
+ `text-color_active_hover_${textColorActiveHoverClass}`), breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
274
314
  `pagination_justify-content_${justifyContentClass}`), disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled",
275
315
  // pages settings
276
- forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: clsx('pagination__item pagination__item_next', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`),
316
+ forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: clsx('pagination__item pagination__item_next', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`),
277
317
  // next button
278
- nextLabel: jsxRuntime.jsx(Icon.Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: clsx('pagination__item', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`), pageCount: paginationPagesCount, pageLabelBuilder: isPageLabelBuilder &&
279
- (() => (jsxRuntime.jsx(Icon.Icon, { fill: builderIconFill, fillSize: builderIconFillSize, iconFill: builderIconFillIcon, iconSize: builderIconSize, shape: "circular", SvgImage: builderIcon }))), pageLinkClassName: clsx('pagination__item-link', textSizeClass && `pagination__item-link_size_${textSizeClass}`, textColorClass && 'text', textColorClass && `text-color_${textColorClass}`), pageRangeDisplayed: pageRangeDisplayed, previousClassName: clsx('pagination__item pagination__item_previous', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`), previousLabel: jsxRuntime.jsx(Icon.Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsxRuntime.jsx(Text.Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && `fill_${fillInputClass}`, fillHoverClass && `fill_hover_${fillInputHoverClass}`), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, setIsOpen: setIsOpenDropdown, shape: pageCountDropdownShape, isOpen: isOpenDropdown, children: pageCountDropdownArray.map((item, index) => activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
318
+ nextLabel: jsxRuntime.jsx(Icon.Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: clsx('pagination__item', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), pageCount: paginationPagesCount, pageLabelBuilder: isPageLabelBuilder &&
319
+ (() => (jsxRuntime.jsx(Icon.Icon, { fill: builderIconFill, fillSize: builderIconFillSize, iconFill: builderIconFillIcon, iconSize: builderIconSize, shape: "circular", SvgImage: builderIcon }))), pageLinkClassName: clsx('pagination__item-link', textSizeClass && `pagination__item-link_size_${textSizeClass}`, textColorClass && `text text-color_${textColorClass}`, textColorHoverClass && `text-color_hover_${textColorHoverClass}`), pageRangeDisplayed: pageRangeDisplayed, previousClassName: clsx('pagination__item pagination__item_previous', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), previousLabel: jsxRuntime.jsx(Icon.Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsxRuntime.jsx(Text.Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillInputClass && `fill_${fillInputClass}`, fillInputHoverClass && `fill_hover_${fillInputHoverClass}`, fillInputShapeClass && `shape_${fillInputShapeClass}`, fillInputShapeStrengthClass && `shape-strength_${fillInputShapeStrengthClass}`), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, fillHover: pageCountDropdownFillHover, elevation: pageCountDropdownElevation, setIsOpen: setIsOpenDropdown, shape: pageCountDropdownShape, shapeStrength: pageCountDropdownShapeStrength, isOpen: isOpenDropdown, children: pageCountDropdownArray.map((item, index) => activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
280
320
  pageCountDropdownItemShowDivider, isActive: true, onClick: (event) => handleDropdownItemClick(event, item) }, item)) : (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
281
321
  pageCountDropdownItemShowDivider, isActive: false, onClick: (event) => handleDropdownItemClick(event, item) }, item))) })] })] }))] })));
282
322
  }
@@ -255,79 +255,68 @@ const Response = urlWithAssetPrefix.urlWithAssetPrefix(function Response(props)
255
255
  });
256
256
 
257
257
  const RESPONSE_MESSAGES = {
258
- empty: {
259
- appearance: 'refresh ghost',
260
- title: ' Список пуст',
261
- desc: 'Нет данных по заданным параметрам',
262
- code: '500',
263
- imageSrc: index.responseIcon.Empty,
264
- primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
265
- primaryButtonLabel: 'ОК',
266
- },
267
258
  error: {
268
259
  appearance: 'error ghost',
269
260
  title: 'Ошибка',
270
261
  desc: 'Возникла проблема с обработкой вашего запроса. Повторите попытку позже или обратитесь в поддержку по электронной почте: support@example.com',
271
- code: '500',
262
+ // code: '500',
272
263
  imageSrc: index.responseIcon.Error,
273
264
  primaryButtonAppearance: 'errorPrimary sizeXXL solid rounded',
274
265
  primaryButtonLabel: 'ОК',
275
266
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
276
267
  secondaryButtonLabel: 'Отмена',
277
268
  },
278
- warning: {
279
- appearance: 'warning ghost',
280
- title: 'Внимание',
281
- imageSrc: index.responseIcon.Warning,
282
- primaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
283
- primaryButtonLabel: 'Повторить',
284
- secondaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
285
- secondaryButtonLabel: 'Отмена',
286
- },
287
- success: {
288
- appearance: 'refresh ghost',
289
- title: 'Готово',
290
- desc: 'Успешно выполнено',
291
- code: '500',
292
- imageSrc: index.responseIcon.Success,
293
- primaryButtonAppearance: 'successPrimary sizeXXL solid rounded',
294
- primaryButtonLabel: 'ОК',
269
+ errorNetwork: {
270
+ appearance: 'unableLoadData ghost',
271
+ title: 'Ошибка соединения',
272
+ desc: 'Не удалось подключиться. Проверьте интернет-соединение и повторите попытку',
273
+ // code: null,
274
+ imageSrc: index.responseIcon.UnableLoadData,
275
+ primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
276
+ primaryButtonLabel: 'Обновить',
295
277
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
296
- secondaryButtonLabel: 'Закрыть',
278
+ secondaryButtonLabel: 'Отмена',
297
279
  },
298
280
  nothingFound: {
299
281
  appearance: 'refresh ghost',
300
282
  title: 'Ничего не найдено',
301
283
  desc: 'Нет данных по заданным параметрам',
302
- code: '500',
284
+ // code: '500',
303
285
  imageSrc: index.responseIcon.NothingFound,
304
286
  primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
305
287
  primaryButtonLabel: 'Сбросить',
306
288
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
307
289
  secondaryButtonLabel: 'Отмена',
308
290
  },
309
- errorNetwork: {
310
- appearance: 'unableLoadData ghost',
311
- title: 'Ошибка соединения',
312
- desc: 'Не удалось подключиться.Проверьте интернет-соединение и повторите попытку',
313
- code: '503',
314
- imageSrc: index.responseIcon.UnableLoadData,
291
+ empty: {
292
+ appearance: 'refresh ghost',
293
+ title: 'Список пуст',
294
+ desc: 'Нет данных по заданным параметрам',
295
+ code: '200',
296
+ imageSrc: index.responseIcon.Empty,
315
297
  primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
316
- primaryButtonLabel: 'Обновить',
317
- secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
318
- secondaryButtonLabel: 'Отмена',
298
+ primaryButtonLabel: 'ОК',
319
299
  },
320
- errorRequest: {
300
+ errorAccessDenied: {
321
301
  appearance: 'unableLoadData ghost',
322
302
  title: 'Доступ ограничен',
323
303
  desc: 'Для выяснения причин и восстановления доступа обратитесь, пожалуйста, в техническую поддержку по электронной почте: support@example.com',
324
- code: '403',
304
+ code: '401/403',
325
305
  imageSrc: index.responseIcon.UnableLoadData,
326
306
  primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
327
307
  primaryButtonLabel: 'Повторить',
328
308
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
329
309
  secondaryButtonLabel: 'Отмена',
330
310
  },
311
+ warning: {
312
+ appearance: 'warning ghost',
313
+ title: 'Внимание',
314
+ imageSrc: index.responseIcon.Warning,
315
+ primaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
316
+ primaryButtonLabel: 'Повторить',
317
+ secondaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
318
+ secondaryButtonLabel: 'Отмена',
319
+ },
331
320
  };
332
321
 
333
322
  exports.responseIcon = index.responseIcon;
@@ -33,7 +33,7 @@ const segmentedAppearanceDefault = {
33
33
  fillActiveHover: 'accentPrimary',
34
34
  fillHover: 'surfaceSecondary',
35
35
  labelTextActiveColor: 'accentTextPrimary',
36
- labelTextActiveHoverColor: 'accentTextPrimary',
36
+ labelTextActiveColorHover: 'accentTextPrimary',
37
37
  labelTextColor: 'surfaceTextPrimary',
38
38
  borderColor: 'surfaceBorderQuaternary',
39
39
  iconAfterFill: 'surfaceItemQuaternary',
@@ -50,7 +50,7 @@ const segmentedAppearanceDefault = {
50
50
  fillActiveHover: 'accentHoverPrimary',
51
51
  fillHover: 'surfaceTertiary',
52
52
  labelTextActiveColor: 'accentTextPrimary',
53
- labelTextActiveHoverColor: 'accentTextPrimary',
53
+ labelTextActiveColorHover: 'accentTextPrimary',
54
54
  labelTextColor: 'surfaceTextPrimary',
55
55
  borderColor: 'surfaceBorderQuaternary',
56
56
  iconAfterFill: 'surfaceItemQuaternary',
@@ -173,7 +173,7 @@ const segmentedAppearanceSuccess = {
173
173
  fillHover: 'successItemSecondary',
174
174
  labelTextActiveColor: 'successTextPrimary',
175
175
  labelTextColor: 'successTextSecondary',
176
- labelTextHoverColor: 'successTextPrimary',
176
+ labelTextColorHover: 'successTextPrimary',
177
177
  borderColor: 'successBorderSecondary',
178
178
  iconAfterFill: 'successItemSecondary',
179
179
  iconAfterFillActive: 'successTertiary',
@@ -242,7 +242,7 @@ const Segmented = (props) => {
242
242
  }, [activeSegment, segmentsRefs]);
243
243
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, segmentedConfig, isDisabled);
244
244
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
245
- const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveHoverColor, labelTextColor, labelTextHoverColor, labelTextSize, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconFill, iconFillActive, iconFillDisabled, iconSize, indicatorFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
245
+ const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconFill, iconFillActive, iconFillDisabled, iconSize, indicatorFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
246
246
  return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `segmented_width_${widthClass}`, sizeClass && `segmented_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, isSkeleton && `segmented_skeleton`), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments?.map((item) => {
247
247
  const isActive = String(activeSegment?.value) === String(item.value);
248
248
  return (jsxRuntime.jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && `segmented__item_size_${sizeClass}`, isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
@@ -254,7 +254,7 @@ const Segmented = (props) => {
254
254
  fillActiveClass &&
255
255
  `fill_active_${fillActiveClass}`), ref: segmentsRefs.get(item.value), onClick: () => !isDisabled && onChangeValue(item), children: jsxRuntime.jsxs("div", { className: clsx('segmented__item-label', sizeClass && `segmented_size_${sizeClass}`), children: [item.iconBefore || item.iconBeforeActive ? (jsxRuntime.jsx(Icon.Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
256
256
  ? item.iconBeforeActive || item.iconBefore
257
- : item.iconBefore, isActive: isActive, isDisabled: isDisabled })) : null, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsxRuntime.jsx(Icon.Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive, isDisabled: isDisabled })) : null, item.iconAfter || item.iconAfterActive ? (jsxRuntime.jsx(Icon.Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
257
+ : item.iconBefore, isActive: isActive, isDisabled: isDisabled })) : null, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsxRuntime.jsx(Icon.Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive, isDisabled: isDisabled })) : null, item.iconAfter || item.iconAfterActive ? (jsxRuntime.jsx(Icon.Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
258
258
  ? item.iconAfterActive || item.iconAfter
259
259
  : item.iconAfter, isActive: isActive, isDisabled: isDisabled })) : null] }) }, `${name}-${item.value}`));
260
260
  }), jsxRuntime.jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && `fill_${indicatorFillClass}`) })] }) }) }));
@@ -49,7 +49,7 @@ const formatState = (key) => {
49
49
  // - matches "ActiveHover", "Active", "Hover" or "Disabled"
50
50
  // - case-insensitive because of the /i flag
51
51
  // Examples of matches:
52
- // "fillActiveHoverColor" -> match[0] === "ActiveHover"
52
+ // "fillActiveColorHover" -> match[0] === "ActiveHover"
53
53
  // "borderDisabled" -> match[0] === "Disabled"
54
54
  const stateMatch = key.match(/(ActiveHover|Active|Hover|Disabled)/i);
55
55
  if (!stateMatch) {
@@ -63,7 +63,7 @@ const formatState = (key) => {
63
63
  // Disabled -> disabled
64
64
  // The final .toLowerCase() ensures output is lowercased regardless of input casing.
65
65
  // Examples:
66
- // "fillActiveHoverColor" -> "_active_hover"
66
+ // "fillActiveColorHover" -> "_active_hover"
67
67
  // "borderDisabled" -> "disabled"
68
68
  return ('_' +
69
69
  stateMatch[0]
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_Czu95rkL.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CzVlqaHv.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_VslTy9Qw.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_Czu95rkL.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CzVlqaHv.js';
9
9
  import 'date-fns/locale';
10
10
  import 'react-datepicker';
11
11
  import '../hooks/useStyles/useStyles.js';