@itcase/ui 1.8.33 → 1.8.35

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 (82) hide show
  1. package/dist/{ChipsGroup_cjs_DdWjvr_S.js → ChipsGroup_cjs_j3QOma3U.js} +49 -17
  2. package/dist/{ChipsGroup_es_CXS0aeon.js → ChipsGroup_es_DF1fhn97.js} +49 -17
  3. package/dist/{DatePicker_cjs_CJl9V32f.js → DatePicker_cjs_Bx5_lZNT.js} +23 -27
  4. package/dist/{DatePicker_es_C2Pi6aB-.js → DatePicker_es_A1FcasHs.js} +24 -28
  5. package/dist/{DropdownItem_cjs_D-zoX7Ik.js → DropdownItem_cjs_tH2DBClp.js} +4 -2
  6. package/dist/{DropdownItem_es_BMnIhUSe.js → DropdownItem_es_BeVv-pDA.js} +4 -2
  7. package/dist/{Label_cjs_CZMMdwt5.js → Label_cjs_CP4b6Mg2.js} +13 -85
  8. package/dist/{Label_es_DmDqs4Rc.js → Label_es_DFSiy5sL.js} +13 -85
  9. package/dist/cjs/components/Cell.js +1 -1
  10. package/dist/cjs/components/Chips.js +1 -1
  11. package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
  12. package/dist/cjs/components/Choice.js +33 -28
  13. package/dist/cjs/components/DatePeriod.js +6 -4
  14. package/dist/cjs/components/DatePicker.js +2 -2
  15. package/dist/cjs/components/Dropdown/stories/__mock__.js +2 -2
  16. package/dist/cjs/components/Dropdown.js +1 -1
  17. package/dist/cjs/components/Label.js +1 -1
  18. package/dist/cjs/components/MenuItem.js +11 -6
  19. package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
  20. package/dist/cjs/components/Notification.js +27 -9
  21. package/dist/cjs/components/Pagination.js +19 -10
  22. package/dist/cjs/components/Segmented/stories/__mock__.js +38 -0
  23. package/dist/cjs/components/Segmented.js +12 -9
  24. package/dist/components/Cell.js +1 -1
  25. package/dist/components/Chips.js +1 -1
  26. package/dist/components/Choice/stories/__mock__.js +16 -16
  27. package/dist/components/Choice.js +33 -28
  28. package/dist/components/DatePeriod.js +6 -4
  29. package/dist/components/DatePicker.js +2 -2
  30. package/dist/components/Dropdown/stories/__mock__.js +2 -2
  31. package/dist/components/Dropdown.js +1 -1
  32. package/dist/components/Label.js +1 -1
  33. package/dist/components/MenuItem.js +11 -6
  34. package/dist/components/Notification/stories/__mock__.js +4 -0
  35. package/dist/components/Notification.js +27 -9
  36. package/dist/components/Pagination.js +20 -11
  37. package/dist/components/Segmented/stories/__mock__.js +36 -0
  38. package/dist/components/Segmented.js +12 -9
  39. package/dist/css/components/Dropdown/Dropdown.css +7 -14
  40. package/dist/css/components/Notification/Notification.css +23 -0
  41. package/dist/css/components/Pagination/Pagination.css +19 -6
  42. package/dist/css/components/Segmented/Segmented.css +24 -0
  43. package/dist/css/styles/shape-strength/shape-strength.css +4 -9
  44. package/dist/stories/CellOverview.mdx +3 -2
  45. package/dist/stories/DatePeriodPlayground.mdx +2 -2
  46. package/dist/stories/RangeSliderOverview.mdx +0 -3
  47. package/dist/stories/VideoOverview.mdx +2 -10
  48. package/dist/stories/VideoPlayground.mdx +2 -2
  49. package/dist/types/components/Chips/appearance/chipsSize.d.ts +34 -0
  50. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +7 -9
  51. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +7 -0
  52. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +7 -0
  53. package/dist/types/components/Choice/appearance/choiceRequire.d.ts +6 -0
  54. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -0
  55. package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +6 -0
  56. package/dist/types/components/Choice/stories/__mock__/index.d.ts +9 -3
  57. package/dist/types/components/Label/appearance/labelAccent.d.ts +0 -8
  58. package/dist/types/components/Label/appearance/labelDanger.d.ts +0 -12
  59. package/dist/types/components/Label/appearance/labelDisable.d.ts +0 -2
  60. package/dist/types/components/Label/appearance/labelError.d.ts +0 -8
  61. package/dist/types/components/Label/appearance/labelInfo.d.ts +1 -6
  62. package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -10
  63. package/dist/types/components/Label/appearance/labelSecondary.d.ts +0 -10
  64. package/dist/types/components/Label/appearance/labelSize.d.ts +6 -0
  65. package/dist/types/components/Label/appearance/labelStyle.d.ts +4 -4
  66. package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -8
  67. package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -6
  68. package/dist/types/components/Label/appearance/labelWarning.d.ts +0 -9
  69. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +1 -0
  70. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +1 -0
  71. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +6 -4
  72. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
  73. package/dist/types/components/Notification/appearance/notificationInfo.d.ts +17 -0
  74. package/dist/types/components/Notification/appearance/notificationStyle.d.ts +4 -4
  75. package/dist/types/components/Notification/stories/__mock__/index.d.ts +1 -0
  76. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +12 -0
  77. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +0 -5
  78. package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -0
  79. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
  80. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +17 -0
  81. package/package.json +5 -5
  82. package/dist/types/components/Choice/appearance/choiceSurface.d.ts +0 -25
@@ -4,9 +4,9 @@ import { useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { DateTime } from 'luxon';
6
6
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
7
- import { D as DatePickerInput } from '../DatePicker_es_C2Pi6aB-.js';
7
+ import { D as DatePickerInput } from '../DatePicker_es_A1FcasHs.js';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CXS0aeon.js';
9
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DF1fhn97.js';
10
10
  import 'date-fns/locale';
11
11
  import 'react-datepicker';
12
12
  import '../hooks/useStyles/useStyles.js';
@@ -27,7 +27,7 @@ import 'react-inlinesvg';
27
27
  import '../Link_es_DxtZLeKY.js';
28
28
  import '../Loader_es_B2auu_rc.js';
29
29
  import '../Input_es_BW6cZThr.js';
30
- import '../Label_es_DmDqs4Rc.js';
30
+ import '../Label_es_DFSiy5sL.js';
31
31
  import '@itcase/icons/default';
32
32
  import 'lodash/castArray';
33
33
 
@@ -76,7 +76,7 @@ var datePeriodConfig = {
76
76
  },
77
77
  };
78
78
  function DatePeriod(props) {
79
- var className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, isSkeleton = props.isSkeleton, onChangeDatePeriod = props.onChangeDatePeriod;
79
+ var className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, isSkeleton = props.isSkeleton, monthsShown = props.monthsShown, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
80
80
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
81
81
  var _a;
82
82
  return (__assign(__assign({}, resultConfig), (_a = datePeriodConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
@@ -112,6 +112,8 @@ function DatePeriod(props) {
112
112
  showWeekNumbers: true,
113
113
  isClearable: false,
114
114
  isStartDefaultNull: true,
115
+ monthsShown: monthsShown,
116
+ onKeyDown: onKeyDown,
115
117
  }, endValue: datePeriodValueEnd, inputProps: {
116
118
  className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
117
119
  appearance: "".concat(datePickerInputAppearance, " ghost"),
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_C2Pi6aB-.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_A1FcasHs.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -26,5 +26,5 @@ import 'react-inlinesvg';
26
26
  import '../Link_es_DxtZLeKY.js';
27
27
  import '../Loader_es_B2auu_rc.js';
28
28
  import '../Input_es_BW6cZThr.js';
29
- import '../Label_es_DmDqs4Rc.js';
29
+ import '../Label_es_DFSiy5sL.js';
30
30
  import '@itcase/icons/default';
@@ -8,13 +8,13 @@ var dropdownListMock = {
8
8
  {
9
9
  key: 4,
10
10
  label: 'Item 4',
11
- iconBefore: icons24.Placeholder,
11
+ iconBefore: icons24.Placeholder.Default,
12
12
  isActive: false,
13
13
  },
14
14
  {
15
15
  key: 5,
16
16
  label: 'Item 5',
17
- iconAfter: icons24.Placeholder,
17
+ iconAfter: icons24.Placeholder.Default,
18
18
  isActive: false,
19
19
  },
20
20
  {
@@ -1,4 +1,4 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_BMnIhUSe.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_BeVv-pDA.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_DmDqs4Rc.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_DFSiy5sL.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -26,6 +26,7 @@ var menuItemAppearanceAccent = {
26
26
  fill: 'accentPrimary',
27
27
  fillHover: 'accentPrimaryHover',
28
28
  labelTextColor: 'accentTextPrimary',
29
+ borderColor: 'accentBorderSecondary',
29
30
  iconAfterFillIcon: 'accentItemPrimary',
30
31
  iconBeforeFillIcon: 'accentItemPrimary',
31
32
  },
@@ -45,6 +46,7 @@ var menuItemAppearanceError = {
45
46
  fillHover: 'errorPrimaryHover',
46
47
  labelTextColor: 'errorTextPrimary',
47
48
  labelTextColorHover: 'errorTextPrimary',
49
+ borderColor: 'errorBorderSecondary',
48
50
  iconAfterFillIcon: 'errorItemPrimary',
49
51
  iconBeforeFillIcon: 'errorItemPrimary',
50
52
  },
@@ -96,15 +98,17 @@ var menuItemAppearanceSize = {
96
98
  };
97
99
 
98
100
  var menuItemAppearanceStyle = {
99
- solid: {
101
+ full: {
100
102
  borderColor: 'none',
101
103
  },
102
- outlined: {
104
+ ghost: {
103
105
  fill: 'none',
106
+ borderColor: 'none',
104
107
  },
105
- full: {},
106
- ghost: {
108
+ outlined: {
107
109
  fill: 'none',
110
+ },
111
+ solid: {
108
112
  borderColor: 'none',
109
113
  },
110
114
  };
@@ -116,6 +120,7 @@ var menuItemAppearanceSurface = {
116
120
  fillActiveHover: 'surfaceHover',
117
121
  fillHover: 'surfaceHover',
118
122
  labelTextColor: 'surfaceTextPrimary',
123
+ borderColor: 'surfaceBorderQuaternary',
119
124
  iconAfterFillIcon: 'surfaceItemPrimary',
120
125
  iconBeforeFillIcon: 'surfaceItemPrimary',
121
126
  },
@@ -151,10 +156,10 @@ function MenuItem(props) {
151
156
  return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
152
157
  }, {});
153
158
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
154
- var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
159
+ var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
155
160
  // @ts-expect-error
156
161
  var menuItem = useStyles(props).styles;
157
- return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), !isActive
162
+ return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), !isActive
158
163
  ? fillClass && "fill_".concat(fillClass)
159
164
  : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
160
165
  ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
@@ -4,24 +4,28 @@ var notificationsMock = [
4
4
  title: 'Text 123',
5
5
  desc: 'Text 123',
6
6
  status: 'error',
7
+ closeByTime: false,
7
8
  },
8
9
  {
9
10
  key: 2,
10
11
  title: 'Text 123',
11
12
  desc: 'Text 123',
12
13
  status: 'warning',
14
+ closeByTime: false,
13
15
  },
14
16
  {
15
17
  key: 3,
16
18
  title: 'Text 123',
17
19
  desc: 'Text 123',
18
20
  status: 'info',
21
+ closeByTime: false,
19
22
  },
20
23
  {
21
24
  key: 4,
22
25
  title: 'Text 123',
23
26
  desc: 'Text 123',
24
27
  status: 'success',
28
+ closeByTime: false,
25
29
  },
26
30
  ];
27
31
 
@@ -27,7 +27,7 @@ var notificationAppearanceDefault = {
27
27
  fill: 'surfacePrimary',
28
28
  fillHover: 'surfacePrimaryHover',
29
29
  titleTextColor: 'surfaceTextPrimary',
30
- titleTextSize: 'xxl',
30
+ titleTextSize: 'l',
31
31
  descTextColor: 'surfaceTextPrimary',
32
32
  descTextSize: 'm',
33
33
  borderColor: 'surfaceBorderPrimary',
@@ -44,7 +44,7 @@ var notificationAppearanceError = {
44
44
  fill: 'errorPrimary',
45
45
  fillHover: 'errorPrimaryHover',
46
46
  titleTextColor: 'errorTextPrimary',
47
- titleTextSize: 'xxl',
47
+ titleTextSize: 'l',
48
48
  descTextColor: 'errorTextPrimary',
49
49
  descTextSize: 'm',
50
50
  borderColor: 'errorBorderPrimary',
@@ -56,18 +56,35 @@ var notificationAppearanceError = {
56
56
  },
57
57
  };
58
58
 
59
+ var notificationAppearanceInfo = {
60
+ infoPrimary: {
61
+ fill: 'infoPrimary',
62
+ fillHover: 'infoPrimaryHover',
63
+ titleTextColor: 'infoTextPrimary',
64
+ titleTextSize: 'l',
65
+ descTextColor: 'infoTextPrimary',
66
+ descTextSize: 'm',
67
+ borderColor: 'infoBorderPrimary',
68
+ elevation: 8,
69
+ textColor: 'infoTextPrimary',
70
+ iconSize: 20,
71
+ closeIcon: icons20.Action.Close,
72
+ closeIconFillIcon: 'infoItemPrimary',
73
+ },
74
+ };
75
+
59
76
  var notificationAppearanceSize = {};
60
77
 
61
78
  var notificationAppearanceStyle = {
62
- full: {},
63
- ghost: {
64
- fill: 'none',
79
+ solid: {
65
80
  borderColor: 'none',
66
81
  },
67
82
  outlined: {
68
83
  fill: 'none',
69
84
  },
70
- solid: {
85
+ full: {},
86
+ ghost: {
87
+ fill: 'none',
71
88
  borderColor: 'none',
72
89
  },
73
90
  };
@@ -77,7 +94,7 @@ var notificationAppearanceSuccess = {
77
94
  fill: 'successPrimary',
78
95
  fillHover: 'successPrimaryHover',
79
96
  titleTextColor: 'successTextPrimary',
80
- titleTextSize: 'xxl',
97
+ titleTextSize: 'l',
81
98
  descTextColor: 'successTextPrimary',
82
99
  descTextSize: 'm',
83
100
  borderColor: 'successBorderPrimary',
@@ -94,7 +111,7 @@ var notificationAppearanceWarning = {
94
111
  fill: 'warningPrimary',
95
112
  fillHover: 'warningPrimaryHover',
96
113
  titleTextColor: 'warningTextPrimary',
97
- titleTextSize: 'xxl',
114
+ titleTextSize: 'l',
98
115
  descTextColor: 'warningTextPrimary',
99
116
  descTextSize: 'm',
100
117
  borderColor: 'surfaceBorderPrimary',
@@ -106,7 +123,7 @@ var notificationAppearanceWarning = {
106
123
  },
107
124
  };
108
125
 
109
- var notificationAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceSuccess), notificationAppearanceWarning);
126
+ var notificationAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceInfo), notificationAppearanceSuccess), notificationAppearanceWarning);
110
127
 
111
128
  var notificationConfig = {
112
129
  appearance: notificationAppearance,
@@ -131,6 +148,7 @@ function NotificationWrapper(props) {
131
148
  var notifications = useNotifications();
132
149
  var hideNotifications = useNotificationsAPI().hideNotifications;
133
150
  var className = props.className, close = props.close;
151
+ console.log(notifications);
134
152
  return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
135
153
  }
136
154
 
@@ -6,10 +6,10 @@ import ceil from 'lodash/ceil';
6
6
  import ReactPaginate from 'react-paginate';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_BMnIhUSe.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_BeVv-pDA.js';
10
10
  import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
11
11
  import { T as Text } from '../Text_es_BfLRfj-5.js';
12
- import { icons32, icons24 } from '@itcase/icons/default';
12
+ import { icons32, icons14, icons24 } from '@itcase/icons/default';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/castArray';
15
15
  import 'lodash/upperFirst';
@@ -55,12 +55,17 @@ var paginationAppearanceSize = {
55
55
  iconAfterSize: '24',
56
56
  iconBeforeFillSize: '24',
57
57
  iconBeforeSize: '24',
58
+ nextIcon: icons32.Arrow.ChevronRightSmall,
58
59
  pageCountDescTextSize: 'l',
59
60
  pageCountDropdownItemDividerSize: 'xxs',
60
61
  pageCountDropdownItemLabelSize: 'm',
61
62
  pageCountDropdownItemSize: 'l',
63
+ pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
64
+ pageCountInputIcon: icons24.Arrow.ChevronDownSmall,
65
+ pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
62
66
  pageCountInputIconFillSize: '24',
63
67
  pageCountInputTextSize: 'm',
68
+ previousIcon: icons32.Arrow.ChevronLeftSmall,
64
69
  },
65
70
  sizeM: {
66
71
  size: 'm',
@@ -69,12 +74,16 @@ var paginationAppearanceSize = {
69
74
  iconAfterSize: '24',
70
75
  iconBeforeFillSize: '24',
71
76
  iconBeforeSize: '24',
77
+ nextIcon: icons32.Arrow.ChevronRightSmall,
72
78
  pageCountDescTextSize: 'm',
73
79
  pageCountDropdownItemDividerSize: 'xxs',
74
80
  pageCountDropdownItemLabelSize: 'm',
75
81
  pageCountDropdownItemSize: 'l',
76
- pageCountInputIconFillSize: '24',
82
+ pageCountDropdownItemWidth: '64',
83
+ pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
84
+ pageCountInputIconFillSize: '14',
77
85
  pageCountInputTextSize: 'm',
86
+ previousIcon: icons32.Arrow.ChevronLeftSmall,
78
87
  },
79
88
  sizeS: {
80
89
  size: 's',
@@ -83,12 +92,17 @@ var paginationAppearanceSize = {
83
92
  iconAfterSize: '20',
84
93
  iconBeforeFillSize: '20',
85
94
  iconBeforeSize: '20',
95
+ nextIcon: icons32.Arrow.ChevronRightSmall,
96
+ previousIcon: icons32.Arrow.ChevronLeftSmall,
86
97
  },
87
98
  sizeXS: {
88
99
  size: 'xs',
89
100
  labelTextSize: 'xs',
90
101
  beforeSize: '16',
91
102
  iconAfterFillSize: '16',
103
+ nextIcon: icons32.Arrow.ChevronRightSmall,
104
+ pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
105
+ previousIcon: icons32.Arrow.ChevronLeftSmall,
92
106
  },
93
107
  };
94
108
 
@@ -110,9 +124,7 @@ var paginationAppearanceSurface = {
110
124
  surfacePrimary: {
111
125
  fill: 'surfacePrimary',
112
126
  fillHover: 'surfaceSecondary',
113
- nextIcon: icons32.Arrow.ChevronRightSmall,
114
127
  nextIconFillIcon: 'surfaceItemPrimary',
115
- pageCountDesc: 'кол-во строк',
116
128
  pageCountDescTextColor: 'surfaceTextPrimary',
117
129
  pageCountDropdownAlignment: 'topCenter',
118
130
  pageCountDropdownElevation: 8,
@@ -127,12 +139,9 @@ var paginationAppearanceSurface = {
127
139
  pageCountDropdownItemLabelColorActive: 'accentTextPrimary',
128
140
  pageCountDropdownItemLabelColorActiveHover: 'accentTextPrimary',
129
141
  pageCountDropdownItemLabelColorHover: 'surfaceTextPrimary',
130
- pageCountDropdownItemWidth: 'hug',
131
142
  pageCountDropdownShape: 'rounded',
132
- pageCountInputIcon: icons24.Arrow.ChevronDownSmall,
133
143
  pageCountInputIconColor: 'surfaceItemPrimary',
134
144
  pageCountInputTextColor: 'surfaceTextPrimary',
135
- previousIcon: icons32.Arrow.ChevronLeftSmall,
136
145
  previousIconFillIcon: 'surfaceItemPrimary',
137
146
  },
138
147
  };
@@ -208,14 +217,14 @@ function Pagination(props) {
208
217
  return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
209
218
  }, {});
210
219
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
211
- var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize;
220
+ var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize, sizeClass = propsGenerator.sizeClass;
212
221
  var paginationStyles = useStyles(props).styles;
213
- return (jsxs("div", { className: "pagination", "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
222
+ return (jsxs("div", { className: clsx('pagination', sizeClass && "pagination_size_".concat(sizeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
214
223
  "pagination_justify-content_".concat(justifyContentClass)),
215
224
  // pages settings
216
225
  forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
217
226
  // next button
218
- nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
227
+ nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
219
228
  return activeDropdownItem === item ? (jsx(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 &&
220
229
  pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(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 &&
221
230
  pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
@@ -0,0 +1,36 @@
1
+ import { icons24 } from '@itcase/icons/default';
2
+
3
+ var segmentedArgsMock = {
4
+ activeSegment: {
5
+ value: 1,
6
+ },
7
+ segments: [
8
+ {
9
+ label: 'Label 1',
10
+ iconAfter: icons24.Placeholder,
11
+ iconBefore: icons24.Placeholder,
12
+ value: 1,
13
+ },
14
+ {
15
+ label: 'Label 2',
16
+ iconAfter: icons24.Placeholder,
17
+ iconBefore: icons24.Placeholder,
18
+ value: 2,
19
+ },
20
+ {
21
+ label: 'Label 3',
22
+ iconAfter: icons24.Placeholder,
23
+ iconBefore: icons24.Placeholder,
24
+ value: 3,
25
+ },
26
+ {
27
+ label: 'Label 4',
28
+ iconAfter: icons24.Placeholder,
29
+ iconBefore: icons24.Placeholder,
30
+ value: 4,
31
+ },
32
+ ],
33
+ shape: 'rounded',
34
+ };
35
+
36
+ export { segmentedArgsMock };
@@ -2,10 +2,12 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
4
4
  import clsx from 'clsx';
5
+ import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
5
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
7
  import { T as Text } from '../Text_es_BfLRfj-5.js';
8
+ import '../hooks/useStyles/useStyles.js';
7
9
  import 'lodash/camelCase';
8
- import 'lodash/castArray';
10
+ import 'lodash/maxBy';
9
11
  import 'lodash/upperFirst';
10
12
  import '../context/Notifications.js';
11
13
  import 'uuid';
@@ -14,9 +16,10 @@ import '../context/UIContext.js';
14
16
  import '../hooks/useMediaQueries/useMediaQueries.js';
15
17
  import 'react-responsive';
16
18
  import '../utils/setViewportProperty.js';
17
- import '../hooks/useStyles/useStyles.js';
18
- import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
+ import 'react-inlinesvg';
21
+ import '../Link_es_DxtZLeKY.js';
22
+ import 'lodash/castArray';
20
23
 
21
24
  var segmentedAppearanceDefault = {
22
25
  defaultPrimary: {
@@ -108,7 +111,7 @@ var segmentedAppearanceStyle = {
108
111
  };
109
112
 
110
113
  var segmentedAppearanceSuccess = {
111
- success: {
114
+ successPrimary: {
112
115
  fill: 'successPrimary',
113
116
  fillHover: 'successPrimaryHover',
114
117
  labelTextColor: 'successTextSecondary',
@@ -134,7 +137,7 @@ var segmentedConfig = {
134
137
  },
135
138
  };
136
139
  var Segmented = React.forwardRef(function (props) {
137
- var className = props.className, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === void 0 ? {} : _a, segments = props.segments, setActiveSegment = props.setActiveSegment, onChange = props.onChange;
140
+ var className = props.className, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === void 0 ? {} : _a, segments = props.segments, isSkeleton = props.isSkeleton, setActiveSegment = props.setActiveSegment, onChange = props.onChange;
138
141
  var controlRef = useRef(null);
139
142
  var segmentsRefs = useMemo(function () {
140
143
  return new Map(segments.map(function (item) { return [item.value, createRef()]; }));
@@ -161,17 +164,17 @@ var Segmented = React.forwardRef(function (props) {
161
164
  return (__assign(__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
162
165
  }, {});
163
166
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
164
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
165
- return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
167
+ var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
168
+ return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
166
169
  ? fillActiveHoverClass &&
167
170
  "fill_active_hover_".concat(fillActiveHoverClass)
168
171
  : fillHoverClass && "fill_hover_".concat(fillHoverClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
169
172
  ? fillActiveClass && "fill_active_".concat(fillActiveClass)
170
- : fillClass && "fill_".concat(fillClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [jsx("input", { id: item.label, className: "segmented__item-radio", type: "radio", name: name, checked: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value), value: item.value, onChange: function () { return onChangeValue(item); } }), jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsx(Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize, textColor: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
173
+ : fillClass && "fill_".concat(fillClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [(icon || iconSrc) && (jsx(Icon, { className: clsx('tile__icon'), appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), jsx("input", { id: item.label, className: "segmented__item-radio", type: "radio", name: name, checked: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value), value: item.value, onChange: function () { return onChangeValue(item); } }), jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsx(Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize, textColor: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
171
174
  ? labelTextActiveColor
172
175
  : labelTextColor, textColorHover: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
173
176
  ? labelTextActiveHoverColor
174
- : labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)), children: "\u00A0" })] }) }) }));
177
+ : labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)) })] }) }) }));
175
178
  });
176
179
 
177
180
  export { Segmented, segmentedAppearance, segmentedConfig };
@@ -1,5 +1,6 @@
1
1
  .dropdown {
2
2
  position: relative;
3
+ overflow: hidden;
3
4
  display: flex;
4
5
  &__wrapper {
5
6
  width: 100%;
@@ -33,17 +34,6 @@
33
34
  }
34
35
  }
35
36
  }
36
- .dropdown {
37
- &_shape {
38
- &_rounded {
39
- border-radius: var(--dropdown-shape-rounded);
40
- ^^&__wrapper {
41
- border-radius: var(--dropdown-shape-rounded);
42
- overflow: hidden;
43
- }
44
- }
45
- }
46
- }
47
37
  .dropdown {
48
38
  &_state_close {
49
39
  /* visibility: hidden; */
@@ -64,6 +54,7 @@
64
54
  flex-direction: column;
65
55
  justify-content: center;
66
56
  align-items: center;
57
+ transition: var(--dropdown-item-transition);
67
58
  &-link {
68
59
  display: flex;
69
60
  justify-content: space-between;
@@ -119,15 +110,17 @@
119
110
  }
120
111
  }
121
112
  :root {
122
- /* Sizes L */
113
+ --dropdown-item-transition: all 0.2s ease 0s;
114
+
115
+ /* Size L */
123
116
  --dropdown-item-size-l-padding: 8px 12px;
124
117
  --dropdown-item-size-l-gap: 12px;
125
118
 
126
- /* Sizes M */
119
+ /* Size M */
127
120
  --dropdown-item-size-s-padding: 6px 8px;
128
121
  --dropdown-item-size-s-gap: 0px;
129
122
 
130
- /* Sizes XS */
123
+ /* Size XS */
131
124
  --dropdown-item-size-xs-padding: 4px 8px;
132
125
  --dropdown-item-size-xs-gap: 8px;
133
126
  }
@@ -23,6 +23,29 @@
23
23
  }
24
24
  }
25
25
  }
26
+ .notification {
27
+ &&_float {
28
+ background: none;
29
+ padding: 0;
30
+ position: fixed;
31
+ top: 0;
32
+ right: 0;
33
+ z-index: 1000;
34
+ ^&__wrapper {
35
+ width: 100%;
36
+ position: relative;
37
+ display: flex;
38
+ flex-flow: column nowrap;
39
+ align-items: flex-end;
40
+ top: 20px;
41
+ right: 40px;
42
+ gap: 20px;
43
+ ^^&__item {
44
+ width: 320px;
45
+ }
46
+ }
47
+ }
48
+ }
26
49
  .notification__item {
27
50
  &_float {
28
51
  width: 100%;
@@ -14,20 +14,28 @@
14
14
  align-items: center;
15
15
  gap: 8px;
16
16
  &-text {
17
- color: var(--surface-text-primary);
18
17
  display: block;
19
18
  }
20
19
  }
21
20
  &__input {
22
- background: var(--color-surface-fill-primary);
23
- border: solid 1px
24
- var(--pagination-input-color, --color-surface-border-tertiary);
25
- border-radius: 8px;
26
21
  position: relative;
27
22
  display: flex;
28
23
  justify-content: center;
29
24
  align-items: center;
30
- gap: 4px;
25
+ }
26
+ &__dropdown {
27
+ }
28
+ }
29
+ .pagination {
30
+ @each $size in xxl, xl, l, m, s, xs, xxs {
31
+ &_size_$(size) {
32
+ ^&__input {
33
+ min-width: var(--pagination-input-size-$(size)-min-width);
34
+ min-height: var(--pagination-input-size-$(size)-min-height);
35
+ padding: var(--pagination-input-size-$(size)-padding);
36
+ gap: var(--pagination-input-size-$(size)-gap);
37
+ }
38
+ }
31
39
  }
32
40
  }
33
41
  .pagination {
@@ -142,4 +150,9 @@
142
150
  --paginator-item-disabled-fill-hover: none;
143
151
  --paginator-item-disabled-text: var(--color-surface-text-primary);
144
152
  --paginator-item-disabled-icon: var(--color-surface-item-disabled);
153
+
154
+ --pagination-input-size-m-padding: 0 12px;
155
+ --pagination-input-size-m-gap: 4px;
156
+ --pagination-input-size-m-min-height: 32px;
157
+ --pagination-input-size-m-min-width: 64px;
145
158
  }