@itcase/ui 1.8.33 → 1.8.34

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 (59) hide show
  1. package/dist/{DatePicker_cjs_CJl9V32f.js → DatePicker_cjs_C-VbK2J4.js} +1 -1
  2. package/dist/{DatePicker_es_C2Pi6aB-.js → DatePicker_es_CIEHQyHC.js} +1 -1
  3. package/dist/{Label_cjs_CZMMdwt5.js → Label_cjs_BWbVsB-u.js} +3 -3
  4. package/dist/{Label_es_DmDqs4Rc.js → Label_es_ouC2i_iI.js} +3 -3
  5. package/dist/cjs/components/Cell.js +1 -1
  6. package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
  7. package/dist/cjs/components/Choice.js +33 -28
  8. package/dist/cjs/components/DatePeriod.js +2 -2
  9. package/dist/cjs/components/DatePicker.js +2 -2
  10. package/dist/cjs/components/Dropdown/stories/__mock__.js +2 -2
  11. package/dist/cjs/components/Label.js +1 -1
  12. package/dist/cjs/components/MenuItem.js +11 -6
  13. package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
  14. package/dist/cjs/components/Notification.js +27 -9
  15. package/dist/cjs/components/Pagination.js +18 -9
  16. package/dist/cjs/components/Segmented/stories/__mock__.js +38 -0
  17. package/dist/cjs/components/Segmented.js +12 -9
  18. package/dist/components/Cell.js +1 -1
  19. package/dist/components/Choice/stories/__mock__.js +16 -16
  20. package/dist/components/Choice.js +33 -28
  21. package/dist/components/DatePeriod.js +2 -2
  22. package/dist/components/DatePicker.js +2 -2
  23. package/dist/components/Dropdown/stories/__mock__.js +2 -2
  24. package/dist/components/Label.js +1 -1
  25. package/dist/components/MenuItem.js +11 -6
  26. package/dist/components/Notification/stories/__mock__.js +4 -0
  27. package/dist/components/Notification.js +27 -9
  28. package/dist/components/Pagination.js +19 -10
  29. package/dist/components/Segmented/stories/__mock__.js +36 -0
  30. package/dist/components/Segmented.js +12 -9
  31. package/dist/css/components/Notification/Notification.css +23 -0
  32. package/dist/css/components/Pagination/Pagination.css +19 -6
  33. package/dist/css/components/Segmented/Segmented.css +24 -0
  34. package/dist/stories/CellOverview.mdx +3 -2
  35. package/dist/stories/DatePeriodPlayground.mdx +2 -2
  36. package/dist/stories/RangeSliderOverview.mdx +0 -3
  37. package/dist/stories/VideoOverview.mdx +2 -10
  38. package/dist/stories/VideoPlayground.mdx +2 -2
  39. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +7 -0
  40. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +7 -0
  41. package/dist/types/components/Choice/appearance/choiceRequire.d.ts +6 -0
  42. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -0
  43. package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +6 -0
  44. package/dist/types/components/Choice/stories/__mock__/index.d.ts +9 -3
  45. package/dist/types/components/Label/appearance/labelInfo.d.ts +1 -1
  46. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +1 -0
  47. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +1 -0
  48. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +6 -4
  49. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
  50. package/dist/types/components/Notification/appearance/notificationInfo.d.ts +17 -0
  51. package/dist/types/components/Notification/appearance/notificationStyle.d.ts +4 -4
  52. package/dist/types/components/Notification/stories/__mock__/index.d.ts +1 -0
  53. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +12 -0
  54. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +0 -5
  55. package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -0
  56. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
  57. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +17 -0
  58. package/package.json +5 -5
  59. package/dist/types/components/Choice/appearance/choiceSurface.d.ts +0 -25
@@ -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_ouC2i_iI.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
- 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,
@@ -4,7 +4,7 @@ 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_CIEHQyHC.js';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CXS0aeon.js';
10
10
  import 'date-fns/locale';
@@ -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_ouC2i_iI.js';
31
31
  import '@itcase/icons/default';
32
32
  import 'lodash/castArray';
33
33
 
@@ -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_CIEHQyHC.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_ouC2i_iI.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 { 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_ouC2i_iI.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