@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
@@ -28,6 +28,7 @@ var menuItemAppearanceAccent = {
28
28
  fill: 'accentPrimary',
29
29
  fillHover: 'accentPrimaryHover',
30
30
  labelTextColor: 'accentTextPrimary',
31
+ borderColor: 'accentBorderSecondary',
31
32
  iconAfterFillIcon: 'accentItemPrimary',
32
33
  iconBeforeFillIcon: 'accentItemPrimary',
33
34
  },
@@ -47,6 +48,7 @@ var menuItemAppearanceError = {
47
48
  fillHover: 'errorPrimaryHover',
48
49
  labelTextColor: 'errorTextPrimary',
49
50
  labelTextColorHover: 'errorTextPrimary',
51
+ borderColor: 'errorBorderSecondary',
50
52
  iconAfterFillIcon: 'errorItemPrimary',
51
53
  iconBeforeFillIcon: 'errorItemPrimary',
52
54
  },
@@ -98,15 +100,17 @@ var menuItemAppearanceSize = {
98
100
  };
99
101
 
100
102
  var menuItemAppearanceStyle = {
101
- solid: {
103
+ full: {
102
104
  borderColor: 'none',
103
105
  },
104
- outlined: {
106
+ ghost: {
105
107
  fill: 'none',
108
+ borderColor: 'none',
106
109
  },
107
- full: {},
108
- ghost: {
110
+ outlined: {
109
111
  fill: 'none',
112
+ },
113
+ solid: {
110
114
  borderColor: 'none',
111
115
  },
112
116
  };
@@ -118,6 +122,7 @@ var menuItemAppearanceSurface = {
118
122
  fillActiveHover: 'surfaceHover',
119
123
  fillHover: 'surfaceHover',
120
124
  labelTextColor: 'surfaceTextPrimary',
125
+ borderColor: 'surfaceBorderQuaternary',
121
126
  iconAfterFillIcon: 'surfaceItemPrimary',
122
127
  iconBeforeFillIcon: 'surfaceItemPrimary',
123
128
  },
@@ -153,10 +158,10 @@ function MenuItem(props) {
153
158
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
154
159
  }, {});
155
160
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
156
- 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;
161
+ 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;
157
162
  // @ts-expect-error
158
163
  var menuItem = useStyles.useStyles(props).styles;
159
- return (jsxRuntime.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
164
+ return (jsxRuntime.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
160
165
  ? fillClass && "fill_".concat(fillClass)
161
166
  : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
162
167
  ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
@@ -6,24 +6,28 @@ var notificationsMock = [
6
6
  title: 'Text 123',
7
7
  desc: 'Text 123',
8
8
  status: 'error',
9
+ closeByTime: false,
9
10
  },
10
11
  {
11
12
  key: 2,
12
13
  title: 'Text 123',
13
14
  desc: 'Text 123',
14
15
  status: 'warning',
16
+ closeByTime: false,
15
17
  },
16
18
  {
17
19
  key: 3,
18
20
  title: 'Text 123',
19
21
  desc: 'Text 123',
20
22
  status: 'info',
23
+ closeByTime: false,
21
24
  },
22
25
  {
23
26
  key: 4,
24
27
  title: 'Text 123',
25
28
  desc: 'Text 123',
26
29
  status: 'success',
30
+ closeByTime: false,
27
31
  },
28
32
  ];
29
33
 
@@ -29,7 +29,7 @@ var notificationAppearanceDefault = {
29
29
  fill: 'surfacePrimary',
30
30
  fillHover: 'surfacePrimaryHover',
31
31
  titleTextColor: 'surfaceTextPrimary',
32
- titleTextSize: 'xxl',
32
+ titleTextSize: 'l',
33
33
  descTextColor: 'surfaceTextPrimary',
34
34
  descTextSize: 'm',
35
35
  borderColor: 'surfaceBorderPrimary',
@@ -46,7 +46,7 @@ var notificationAppearanceError = {
46
46
  fill: 'errorPrimary',
47
47
  fillHover: 'errorPrimaryHover',
48
48
  titleTextColor: 'errorTextPrimary',
49
- titleTextSize: 'xxl',
49
+ titleTextSize: 'l',
50
50
  descTextColor: 'errorTextPrimary',
51
51
  descTextSize: 'm',
52
52
  borderColor: 'errorBorderPrimary',
@@ -58,18 +58,35 @@ var notificationAppearanceError = {
58
58
  },
59
59
  };
60
60
 
61
+ var notificationAppearanceInfo = {
62
+ infoPrimary: {
63
+ fill: 'infoPrimary',
64
+ fillHover: 'infoPrimaryHover',
65
+ titleTextColor: 'infoTextPrimary',
66
+ titleTextSize: 'l',
67
+ descTextColor: 'infoTextPrimary',
68
+ descTextSize: 'm',
69
+ borderColor: 'infoBorderPrimary',
70
+ elevation: 8,
71
+ textColor: 'infoTextPrimary',
72
+ iconSize: 20,
73
+ closeIcon: _default.icons20.Action.Close,
74
+ closeIconFillIcon: 'infoItemPrimary',
75
+ },
76
+ };
77
+
61
78
  var notificationAppearanceSize = {};
62
79
 
63
80
  var notificationAppearanceStyle = {
64
- full: {},
65
- ghost: {
66
- fill: 'none',
81
+ solid: {
67
82
  borderColor: 'none',
68
83
  },
69
84
  outlined: {
70
85
  fill: 'none',
71
86
  },
72
- solid: {
87
+ full: {},
88
+ ghost: {
89
+ fill: 'none',
73
90
  borderColor: 'none',
74
91
  },
75
92
  };
@@ -79,7 +96,7 @@ var notificationAppearanceSuccess = {
79
96
  fill: 'successPrimary',
80
97
  fillHover: 'successPrimaryHover',
81
98
  titleTextColor: 'successTextPrimary',
82
- titleTextSize: 'xxl',
99
+ titleTextSize: 'l',
83
100
  descTextColor: 'successTextPrimary',
84
101
  descTextSize: 'm',
85
102
  borderColor: 'successBorderPrimary',
@@ -96,7 +113,7 @@ var notificationAppearanceWarning = {
96
113
  fill: 'warningPrimary',
97
114
  fillHover: 'warningPrimaryHover',
98
115
  titleTextColor: 'warningTextPrimary',
99
- titleTextSize: 'xxl',
116
+ titleTextSize: 'l',
100
117
  descTextColor: 'warningTextPrimary',
101
118
  descTextSize: 'm',
102
119
  borderColor: 'surfaceBorderPrimary',
@@ -108,7 +125,7 @@ var notificationAppearanceWarning = {
108
125
  },
109
126
  };
110
127
 
111
- var notificationAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceSuccess), notificationAppearanceWarning);
128
+ var notificationAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceInfo), notificationAppearanceSuccess), notificationAppearanceWarning);
112
129
 
113
130
  var notificationConfig = {
114
131
  appearance: notificationAppearance,
@@ -133,6 +150,7 @@ function NotificationWrapper(props) {
133
150
  var notifications = Notifications.useNotifications();
134
151
  var hideNotifications = Notifications.useNotificationsAPI().hideNotifications;
135
152
  var className = props.className, close = props.close;
153
+ console.log(notifications);
136
154
  return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
137
155
  }
138
156
 
@@ -8,7 +8,7 @@ var ceil = require('lodash/ceil');
8
8
  var ReactPaginate = require('react-paginate');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var useStyles = require('../hooks/useStyles/useStyles.js');
11
- var DropdownItem = require('../../DropdownItem_cjs_D-zoX7Ik.js');
11
+ var DropdownItem = require('../../DropdownItem_cjs_tH2DBClp.js');
12
12
  var Tooltip = require('../../Tooltip_cjs_DinScDnC.js');
13
13
  var Text = require('../../Text_cjs_C9fOm0nd.js');
14
14
  var _default = require('@itcase/icons/default');
@@ -57,12 +57,17 @@ var paginationAppearanceSize = {
57
57
  iconAfterSize: '24',
58
58
  iconBeforeFillSize: '24',
59
59
  iconBeforeSize: '24',
60
+ nextIcon: _default.icons32.Arrow.ChevronRightSmall,
60
61
  pageCountDescTextSize: 'l',
61
62
  pageCountDropdownItemDividerSize: 'xxs',
62
63
  pageCountDropdownItemLabelSize: 'm',
63
64
  pageCountDropdownItemSize: 'l',
65
+ pageCountInputIcon: _default.icons32.Arrow.ChevronDownSmall,
66
+ pageCountInputIcon: _default.icons24.Arrow.ChevronDownSmall,
67
+ pageCountInputIcon: _default.icons32.Arrow.ChevronDownSmall,
64
68
  pageCountInputIconFillSize: '24',
65
69
  pageCountInputTextSize: 'm',
70
+ previousIcon: _default.icons32.Arrow.ChevronLeftSmall,
66
71
  },
67
72
  sizeM: {
68
73
  size: 'm',
@@ -71,12 +76,16 @@ var paginationAppearanceSize = {
71
76
  iconAfterSize: '24',
72
77
  iconBeforeFillSize: '24',
73
78
  iconBeforeSize: '24',
79
+ nextIcon: _default.icons32.Arrow.ChevronRightSmall,
74
80
  pageCountDescTextSize: 'm',
75
81
  pageCountDropdownItemDividerSize: 'xxs',
76
82
  pageCountDropdownItemLabelSize: 'm',
77
83
  pageCountDropdownItemSize: 'l',
78
- pageCountInputIconFillSize: '24',
84
+ pageCountDropdownItemWidth: '64',
85
+ pageCountInputIcon: _default.icons14.Arrow.ChevronDownSmall,
86
+ pageCountInputIconFillSize: '14',
79
87
  pageCountInputTextSize: 'm',
88
+ previousIcon: _default.icons32.Arrow.ChevronLeftSmall,
80
89
  },
81
90
  sizeS: {
82
91
  size: 's',
@@ -85,12 +94,17 @@ var paginationAppearanceSize = {
85
94
  iconAfterSize: '20',
86
95
  iconBeforeFillSize: '20',
87
96
  iconBeforeSize: '20',
97
+ nextIcon: _default.icons32.Arrow.ChevronRightSmall,
98
+ previousIcon: _default.icons32.Arrow.ChevronLeftSmall,
88
99
  },
89
100
  sizeXS: {
90
101
  size: 'xs',
91
102
  labelTextSize: 'xs',
92
103
  beforeSize: '16',
93
104
  iconAfterFillSize: '16',
105
+ nextIcon: _default.icons32.Arrow.ChevronRightSmall,
106
+ pageCountInputIcon: _default.icons32.Arrow.ChevronDownSmall,
107
+ previousIcon: _default.icons32.Arrow.ChevronLeftSmall,
94
108
  },
95
109
  };
96
110
 
@@ -112,9 +126,7 @@ var paginationAppearanceSurface = {
112
126
  surfacePrimary: {
113
127
  fill: 'surfacePrimary',
114
128
  fillHover: 'surfaceSecondary',
115
- nextIcon: _default.icons32.Arrow.ChevronRightSmall,
116
129
  nextIconFillIcon: 'surfaceItemPrimary',
117
- pageCountDesc: 'кол-во строк',
118
130
  pageCountDescTextColor: 'surfaceTextPrimary',
119
131
  pageCountDropdownAlignment: 'topCenter',
120
132
  pageCountDropdownElevation: 8,
@@ -129,12 +141,9 @@ var paginationAppearanceSurface = {
129
141
  pageCountDropdownItemLabelColorActive: 'accentTextPrimary',
130
142
  pageCountDropdownItemLabelColorActiveHover: 'accentTextPrimary',
131
143
  pageCountDropdownItemLabelColorHover: 'surfaceTextPrimary',
132
- pageCountDropdownItemWidth: 'hug',
133
144
  pageCountDropdownShape: 'rounded',
134
- pageCountInputIcon: _default.icons24.Arrow.ChevronDownSmall,
135
145
  pageCountInputIconColor: 'surfaceItemPrimary',
136
146
  pageCountInputTextColor: 'surfaceTextPrimary',
137
- previousIcon: _default.icons32.Arrow.ChevronLeftSmall,
138
147
  previousIconFillIcon: 'surfaceItemPrimary',
139
148
  },
140
149
  };
@@ -210,14 +219,14 @@ function Pagination(props) {
210
219
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
211
220
  }, {});
212
221
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
213
- 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;
222
+ 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;
214
223
  var paginationStyles = useStyles.useStyles(props).styles;
215
- return (jsxRuntime.jsxs("div", { className: "pagination", "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.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 &&
224
+ return (jsxRuntime.jsxs("div", { className: clsx('pagination', sizeClass && "pagination_size_".concat(sizeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.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 &&
216
225
  "pagination_justify-content_".concat(justifyContentClass)),
217
226
  // pages settings
218
227
  forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
219
228
  // next button
220
- nextLabel: jsxRuntime.jsx(Tooltip.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: jsxRuntime.jsx(Tooltip.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_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Tooltip.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
229
+ nextLabel: jsxRuntime.jsx(Tooltip.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: jsxRuntime.jsx(Tooltip.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_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Tooltip.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
221
230
  return 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 &&
222
231
  pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return 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 &&
223
232
  pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ var _default = require('@itcase/icons/default');
4
+
5
+ var segmentedArgsMock = {
6
+ activeSegment: {
7
+ value: 1,
8
+ },
9
+ segments: [
10
+ {
11
+ label: 'Label 1',
12
+ iconAfter: _default.icons24.Placeholder,
13
+ iconBefore: _default.icons24.Placeholder,
14
+ value: 1,
15
+ },
16
+ {
17
+ label: 'Label 2',
18
+ iconAfter: _default.icons24.Placeholder,
19
+ iconBefore: _default.icons24.Placeholder,
20
+ value: 2,
21
+ },
22
+ {
23
+ label: 'Label 3',
24
+ iconAfter: _default.icons24.Placeholder,
25
+ iconBefore: _default.icons24.Placeholder,
26
+ value: 3,
27
+ },
28
+ {
29
+ label: 'Label 4',
30
+ iconAfter: _default.icons24.Placeholder,
31
+ iconBefore: _default.icons24.Placeholder,
32
+ value: 4,
33
+ },
34
+ ],
35
+ shape: 'rounded',
36
+ };
37
+
38
+ exports.segmentedArgsMock = segmentedArgsMock;
@@ -4,10 +4,12 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
+ var Tooltip = require('../../Tooltip_cjs_DinScDnC.js');
7
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
9
  var Text = require('../../Text_cjs_C9fOm0nd.js');
10
+ require('../hooks/useStyles/useStyles.js');
9
11
  require('lodash/camelCase');
10
- require('lodash/castArray');
12
+ require('lodash/maxBy');
11
13
  require('lodash/upperFirst');
12
14
  require('../context/Notifications.js');
13
15
  require('uuid');
@@ -16,9 +18,10 @@ require('../context/UIContext.js');
16
18
  require('../hooks/useMediaQueries/useMediaQueries.js');
17
19
  require('react-responsive');
18
20
  require('../utils/setViewportProperty.js');
19
- require('../hooks/useStyles/useStyles.js');
20
- require('lodash/maxBy');
21
21
  require('../hooks/useStyles/styleAttributes.js');
22
+ require('react-inlinesvg');
23
+ require('../../Link_cjs_DbRGq2Yk.js');
24
+ require('lodash/castArray');
22
25
 
23
26
  var segmentedAppearanceDefault = {
24
27
  defaultPrimary: {
@@ -110,7 +113,7 @@ var segmentedAppearanceStyle = {
110
113
  };
111
114
 
112
115
  var segmentedAppearanceSuccess = {
113
- success: {
116
+ successPrimary: {
114
117
  fill: 'successPrimary',
115
118
  fillHover: 'successPrimaryHover',
116
119
  labelTextColor: 'successTextSecondary',
@@ -136,7 +139,7 @@ var segmentedConfig = {
136
139
  },
137
140
  };
138
141
  var Segmented = React.forwardRef(function (props) {
139
- 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;
142
+ 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;
140
143
  var controlRef = React.useRef(null);
141
144
  var segmentsRefs = React.useMemo(function () {
142
145
  return new Map(segments.map(function (item) { return [item.value, React.createRef()]; }));
@@ -163,17 +166,17 @@ var Segmented = React.forwardRef(function (props) {
163
166
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
164
167
  }, {});
165
168
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
166
- 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;
167
- return (jsxRuntime.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: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxRuntime.jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
169
+ 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;
170
+ return (jsxRuntime.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: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxRuntime.jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
168
171
  ? fillActiveHoverClass &&
169
172
  "fill_active_hover_".concat(fillActiveHoverClass)
170
173
  : fillHoverClass && "fill_hover_".concat(fillHoverClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
171
174
  ? fillActiveClass && "fill_active_".concat(fillActiveClass)
172
- : 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: [jsxRuntime.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); } }), jsxRuntime.jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsxRuntime.jsx(Text.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)
175
+ : 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) && (jsxRuntime.jsx(Tooltip.Icon, { className: clsx('tile__icon'), appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), jsxRuntime.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); } }), jsxRuntime.jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsxRuntime.jsx(Text.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
176
  ? labelTextActiveColor
174
177
  : labelTextColor, textColorHover: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
175
178
  ? labelTextActiveHoverColor
176
- : labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsxRuntime.jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)), children: "\u00A0" })] }) }) }));
179
+ : labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsxRuntime.jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)) })] }) }) }));
177
180
  });
178
181
 
179
182
  exports.Segmented = Segmented;
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
6
  import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
7
- import { L as Label } from '../Label_es_DmDqs4Rc.js';
7
+ import { L as Label } from '../Label_es_DFSiy5sL.js';
8
8
  import { T as Text } from '../Text_es_BfLRfj-5.js';
9
9
  import 'react';
10
10
  import 'lodash/camelCase';
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CXS0aeon.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_DF1fhn97.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- import { icon24 } from '@itcase/icons/default';
1
+ import { icons24 } from '@itcase/icons/default';
2
2
 
3
3
  var choiceListMock = {
4
4
  active: {
@@ -7,32 +7,32 @@ var choiceListMock = {
7
7
  choices: [
8
8
  {
9
9
  label: 'Label 1',
10
- iconAfter: icon24.Placeholder,
11
- iconBefore: icon24.Placeholder,
10
+ iconAfter: icons24.Placeholder,
11
+ iconBefore: icons24.Placeholder,
12
12
  value: 1,
13
13
  },
14
14
  {
15
15
  label: 'Label 2',
16
- iconAfter: icon24.Placeholder,
17
- iconBefore: icon24.Placeholder,
16
+ iconAfter: icons24.Placeholder,
17
+ iconBefore: icons24.Placeholder,
18
18
  value: 2,
19
19
  },
20
20
  {
21
21
  label: 'Label 3',
22
- iconAfter: icon24.Placeholder,
23
- iconBefore: icon24.Placeholder,
22
+ iconAfter: icons24.Placeholder,
23
+ iconBefore: icons24.Placeholder,
24
24
  value: 3,
25
25
  },
26
26
  {
27
27
  label: 'Label 4',
28
- iconAfter: icon24.Placeholder,
29
- iconBefore: icon24.Placeholder,
28
+ iconAfter: icons24.Placeholder,
29
+ iconBefore: icons24.Placeholder,
30
30
  value: 4,
31
31
  },
32
32
  {
33
33
  label: 'Label 5',
34
- iconAfter: icon24.Placeholder,
35
- iconBefore: icon24.Placeholder,
34
+ iconAfter: icons24.Placeholder,
35
+ iconBefore: icons24.Placeholder,
36
36
  value: 5,
37
37
  },
38
38
  ],
@@ -43,23 +43,23 @@ var choiceListIconMock = {
43
43
  },
44
44
  choices: [
45
45
  {
46
- icon: icon24.Placeholder,
46
+ icon: icons24.Placeholder,
47
47
  value: 1,
48
48
  },
49
49
  {
50
- icon: icon24.Placeholder,
50
+ icon: icons24.Placeholder,
51
51
  value: 2,
52
52
  },
53
53
  {
54
- icon: icon24.Placeholder,
54
+ icon: icons24.Placeholder,
55
55
  value: 3,
56
56
  },
57
57
  {
58
- icon: icon24.Placeholder,
58
+ icon: icons24.Placeholder,
59
59
  value: 4,
60
60
  },
61
61
  {
62
- icon: icon24.Placeholder,
62
+ icon: icons24.Placeholder,
63
63
  value: 5,
64
64
  },
65
65
  ],
@@ -25,20 +25,34 @@ import '../Link_es_DxtZLeKY.js';
25
25
  var choiceAppearanceDefault = {
26
26
  defaultPrimary: {
27
27
  fill: 'surfaceSecondary',
28
+ fillItem: 'surfaceItemSecondary',
29
+ fillItemActive: 'surfaceItemQuaternary',
30
+ fillItemHover: 'surfaceItemHover',
28
31
  labelTextColor: 'surfaceTextPrimary',
29
32
  borderColor: 'surfaceBorderQuaternary',
30
33
  iconAfterFill: 'surfaceItemQuaternary',
34
+ iconAfterFillActive: 'surfaceItemSecondary',
31
35
  iconBeforeFill: 'surfaceItemQuaternary',
36
+ iconBeforeFillActive: 'surfaceItemSecondary',
37
+ iconFill: 'surfaceItemQuaternary',
38
+ iconFillActive: 'surfaceItemSecondary',
32
39
  },
33
40
  };
34
41
 
35
42
  var choiceAppearanceDisabled = {
36
43
  disabledPrimary: {
37
44
  fill: 'surfaceDisabled',
45
+ fillItem: 'surfaceItemDisabled',
46
+ fillItemActive: 'surfaceItemPrimary',
47
+ fillItemHover: 'surfaceItemHover',
38
48
  labelTextColor: 'surfaceTextQuaternary',
39
49
  borderColor: 'surfaceBorderPrimary',
40
50
  iconAfterFill: 'surfaceItemPrimary',
51
+ iconAfterFillActive: 'surfaceItemDisabled',
41
52
  iconBeforeFill: 'surfaceItemPrimary',
53
+ iconBeforeFillActive: 'surfaceItemDisabled',
54
+ iconFill: 'surfaceItemPrimary',
55
+ iconFillActive: 'surfaceItemDisabled',
42
56
  },
43
57
  };
44
58
 
@@ -62,11 +76,17 @@ var choiceAppearanceError = {
62
76
  var choiceAppearanceRequire = {
63
77
  requirePrimary: {
64
78
  fill: 'warningTertiary',
65
- fillItemActive: 'warningTertiary',
79
+ fillItem: 'warningTertiary',
80
+ fillItemActive: 'warningItemSecondary',
81
+ fillItemHover: 'warningItemHover',
66
82
  labelTextColor: 'surfaceTextPrimary',
67
83
  borderColor: 'warningBorderSecondary',
68
84
  iconAfterFill: 'warningItemSecondary',
85
+ iconAfterFillActive: 'warningTertiary',
69
86
  iconBeforeFill: 'warningItemSecondary',
87
+ iconBeforeFillActive: 'warningTertiary',
88
+ iconFill: 'warningItemSecondary',
89
+ iconFillActive: 'warningTertiary',
70
90
  },
71
91
  };
72
92
 
@@ -94,10 +114,14 @@ var choiceAppearanceStyle = {
94
114
  },
95
115
  ghost: {
96
116
  fill: 'none',
117
+ fillItem: 'none',
118
+ fillItemActive: 'none',
97
119
  borderColor: '0',
98
120
  },
99
121
  outlined: {
100
122
  fill: 'none',
123
+ fillItem: 'none',
124
+ fillItemActive: 'none',
101
125
  },
102
126
  solid: {
103
127
  borderColor: '0',
@@ -107,40 +131,21 @@ var choiceAppearanceStyle = {
107
131
  var choiceAppearanceSuccess = {
108
132
  successPrimary: {
109
133
  fill: 'successTertiary',
110
- fillItemActive: 'successTertiary',
134
+ fillItem: 'successTertiary',
135
+ fillItemActive: 'successItemSecondary',
136
+ fillItemHover: 'accentItemHover',
111
137
  labelTextColor: 'surfaceTextPrimary',
112
138
  borderColor: 'successBorderSecondary',
113
139
  iconAfterFill: 'successItemSecondary',
140
+ iconAfterFillActive: 'successTertiary',
114
141
  iconBeforeFill: 'successItemSecondary',
142
+ iconBeforeFillActive: 'successTertiary',
143
+ iconFill: 'successItemSecondary',
144
+ iconFillActive: 'successTertiary',
115
145
  },
116
146
  };
117
147
 
118
- var choiceAppearanceSurface = {
119
- surfacePrimary: {
120
- fill: 'surfacePrimary',
121
- fillItem: 'surfaceItemInverse',
122
- fillItemActive: 'surfaceItemSecondary',
123
- fillItemActiveHover: 'surfaceItemTertiary',
124
- fillItemHover: 'surfaceItemSecondary',
125
- labelTextActiveColor: 'surfaceTextPrimary',
126
- labelTextColor: 'surfaceTextPrimary',
127
- labelTextWrap: 'nowrap',
128
- borderColor: 'surfaceBorderSecondary',
129
- iconBeforeFill: 'surfaceItemPrimary',
130
- iconBeforeFillActive: 'surfaceItemPrimary',
131
- },
132
- surfaceSecondary: {
133
- fill: 'surfaceSecondary',
134
- fillItem: 'surfacePrimary',
135
- fillItemActive: 'surfacePrimary',
136
- fillItemHover: 'surfacePrimary',
137
- labelTextActiveColor: 'surfaceTextPrimary',
138
- labelTextColor: 'surfaceTextPrimary',
139
- labelTextWrap: 'nowrap',
140
- },
141
- };
142
-
143
- var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
148
+ var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize);
144
149
 
145
150
  var choiceConfig = {
146
151
  appearance: choiceAppearance,