@itcase/ui 1.8.36 → 1.8.38

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 (142) hide show
  1. package/dist/{Avatar_cjs_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
  2. package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
  3. package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
  4. package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
  5. package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
  6. package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
  7. package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_DKoF73mp.js} +17 -17
  8. package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_CdEYxtwj.js} +17 -17
  9. package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
  10. package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
  11. package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
  12. package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
  13. package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
  14. package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +32 -48
  20. package/dist/cjs/components/Breadcrumbs.js +38 -120
  21. package/dist/cjs/components/Button.js +2 -2
  22. package/dist/cjs/components/Cell.js +2 -2
  23. package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
  24. package/dist/cjs/components/Chips.js +2 -2
  25. package/dist/cjs/components/Choice.js +16 -14
  26. package/dist/cjs/components/CookiesWarning.js +2 -2
  27. package/dist/cjs/components/DatePeriod.js +25 -21
  28. package/dist/cjs/components/DatePicker.js +4 -4
  29. package/dist/cjs/components/Drawer.js +1 -1
  30. package/dist/cjs/components/Dropdown/stories/__mock__.js +103 -33
  31. package/dist/cjs/components/Dropdown.js +2 -2
  32. package/dist/cjs/components/HeroTitle.js +1 -1
  33. package/dist/cjs/components/Icon.js +1 -1
  34. package/dist/cjs/components/InputPassword.js +1 -1
  35. package/dist/cjs/components/Label.js +2 -2
  36. package/dist/cjs/components/MenuItem.js +7 -9
  37. package/dist/cjs/components/Modal.js +1 -1
  38. package/dist/cjs/components/Notification.js +3 -9
  39. package/dist/cjs/components/Pagination.js +2 -2
  40. package/dist/cjs/components/Response.js +2 -2
  41. package/dist/cjs/components/Search.js +1 -1
  42. package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
  43. package/dist/cjs/components/Segmented.js +28 -25
  44. package/dist/cjs/components/Select.js +1 -1
  45. package/dist/cjs/components/Swiper.js +1 -1
  46. package/dist/cjs/components/Switch.js +0 -1
  47. package/dist/cjs/components/Tab.js +1 -1
  48. package/dist/cjs/components/Tile.js +1 -1
  49. package/dist/cjs/components/Title.js +1 -1
  50. package/dist/cjs/components/Tooltip.js +1 -1
  51. package/dist/components/Accordion.js +1 -1
  52. package/dist/components/Avatar.js +2 -2
  53. package/dist/components/AvatarStack.js +2 -2
  54. package/dist/components/Badge.js +1 -1
  55. package/dist/components/Breadcrumbs/stories/__mock__.js +33 -48
  56. package/dist/components/Breadcrumbs.js +38 -120
  57. package/dist/components/Button.js +2 -2
  58. package/dist/components/Cell.js +2 -2
  59. package/dist/components/Chips/stories/__mock__.js +2 -2
  60. package/dist/components/Chips.js +2 -2
  61. package/dist/components/Choice.js +16 -14
  62. package/dist/components/CookiesWarning.js +2 -2
  63. package/dist/components/DatePeriod.js +25 -21
  64. package/dist/components/DatePicker.js +4 -4
  65. package/dist/components/Drawer.js +1 -1
  66. package/dist/components/Dropdown/stories/__mock__.js +101 -34
  67. package/dist/components/Dropdown.js +2 -2
  68. package/dist/components/HeroTitle.js +1 -1
  69. package/dist/components/Icon.js +1 -1
  70. package/dist/components/InputPassword.js +1 -1
  71. package/dist/components/Label.js +2 -2
  72. package/dist/components/MenuItem.js +7 -9
  73. package/dist/components/Modal.js +1 -1
  74. package/dist/components/Notification.js +3 -9
  75. package/dist/components/Pagination.js +2 -2
  76. package/dist/components/Response.js +2 -2
  77. package/dist/components/Search.js +1 -1
  78. package/dist/components/Segmented/stories/__mock__.js +8 -8
  79. package/dist/components/Segmented.js +28 -25
  80. package/dist/components/Select.js +1 -1
  81. package/dist/components/Swiper.js +1 -1
  82. package/dist/components/Switch.js +0 -1
  83. package/dist/components/Tab.js +1 -1
  84. package/dist/components/Tile.js +1 -1
  85. package/dist/components/Title.js +1 -1
  86. package/dist/components/Tooltip.js +1 -1
  87. package/dist/css/components/Breadcrumbs/Breadcrumbs.css +24 -0
  88. package/dist/css/components/Icon/Icon.css +24 -0
  89. package/dist/css/components/MenuItem/MenuItem.css +31 -0
  90. package/dist/css/components/Notification/Notification.css +0 -48
  91. package/dist/css/components/Segmented/Segmented.css +16 -7
  92. package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
  93. package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
  94. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
  95. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
  96. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +1 -3
  97. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
  98. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
  99. package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
  100. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
  101. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
  102. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
  103. package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
  104. package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
  105. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +1 -3
  106. package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
  107. package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
  108. package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
  109. package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
  110. package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
  111. package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
  112. package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
  113. package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
  114. package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
  115. package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
  116. package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
  117. package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
  118. package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
  119. package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
  120. package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
  121. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
  122. package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
  123. package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
  124. package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
  125. package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
  126. package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
  127. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +1 -1
  128. package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
  129. package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
  130. package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
  131. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
  132. package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
  133. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
  134. package/package.json +7 -7
  135. package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
  136. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
  137. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
  138. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
  139. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
  140. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
  141. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
  142. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
4
4
  import clsx from 'clsx';
5
- import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
5
+ import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { T as Text } from '../Text_es_BfLRfj-5.js';
8
8
  import '../hooks/useStyles/useStyles.js';
@@ -30,6 +30,7 @@ var segmentedAppearanceDefault = {
30
30
  labelTextActiveColor: 'accentTextPrimary',
31
31
  labelTextActiveHoverColor: 'accentTextPrimary',
32
32
  labelTextColor: 'surfaceTextPrimary',
33
+ borderColor: 'surfaceBorderQuaternary',
33
34
  iconAfterFill: 'surfaceItemQuaternary',
34
35
  iconAfterFillActive: 'surfaceItemSecondary',
35
36
  iconBeforeFill: 'surfaceItemQuaternary',
@@ -37,23 +38,22 @@ var segmentedAppearanceDefault = {
37
38
  iconFill: 'surfaceItemQuaternary',
38
39
  iconFillActive: 'surfaceItemSecondary',
39
40
  indicatorFill: 'accentPrimary',
40
- inputBorderColor: 'surfaceBorderQuaternary',
41
41
  },
42
42
  };
43
43
 
44
44
  var segmentedAppearanceDisabled = {
45
45
  disabledPrimary: {
46
46
  fill: 'surfaceDisabled',
47
- fillActive: 'surfaceItemPrimary',
48
- fillHover: 'surfaceItemHover',
47
+ fillActive: 'surfaceItemTertiary',
48
+ labelTextActiveColor: 'surfaceTextQuaternary',
49
49
  labelTextColor: 'surfaceTextQuaternary',
50
+ borderColor: 'surfaceBorderPrimary',
50
51
  iconAfterFill: 'surfaceItemPrimary',
51
52
  iconAfterFillActive: 'surfaceItemDisabled',
52
53
  iconBeforeFill: 'surfaceItemPrimary',
53
54
  iconBeforeFillActive: 'surfaceItemDisabled',
54
55
  iconFill: 'surfaceItemPrimary',
55
56
  iconFillActive: 'surfaceItemDisabled',
56
- inputBorderColor: 'surfaceBorderPrimary',
57
57
  },
58
58
  };
59
59
 
@@ -62,14 +62,16 @@ var segmentedAppearanceError = {
62
62
  fill: 'errorTertiary',
63
63
  fillActive: 'errorPrimary',
64
64
  fillHover: 'errorItemHover',
65
- labelTextColor: 'errorTextPrimary',
65
+ labelTextActiveColor: 'errorTextPrimary',
66
+ labelTextColor: 'errorTextSecondary',
67
+ labelTextColorHover: 'errorTextPrimary',
68
+ borderColor: 'errorBorderQuaternary',
66
69
  iconAfterFill: 'errorItemSecondary',
67
70
  iconAfterFillActive: 'errorItemTertiary',
68
71
  iconBeforeFill: 'errorItemSecondary',
69
72
  iconBeforeFillActive: 'errorItemTertiary',
70
73
  iconFill: 'errorItemSecondary',
71
74
  iconFillActive: 'errorItemTertiary',
72
- inputBorderColor: 'errorBorderQuaternary',
73
75
  },
74
76
  };
75
77
 
@@ -103,19 +105,17 @@ var segmentedAppearanceSize = {
103
105
 
104
106
  var segmentedAppearanceStyle = {
105
107
  solid: {
106
- inputBorderColor: '0',
108
+ borderColor: 'none',
107
109
  },
108
110
  outlined: {
109
111
  fill: 'none',
110
112
  fillActive: 'none',
111
113
  },
112
- full: {
113
- inputBorderColor: '0',
114
- },
114
+ full: {},
115
115
  ghost: {
116
116
  fill: 'none',
117
117
  fillActive: 'none',
118
- inputBorderColor: '0',
118
+ borderColor: 'none',
119
119
  },
120
120
  };
121
121
 
@@ -123,16 +123,17 @@ var segmentedAppearanceSuccess = {
123
123
  successPrimary: {
124
124
  fill: 'successTertiary',
125
125
  fillActive: 'successItemSecondary',
126
- fillHover: 'accentItemHover',
127
- labelTextColor: 'surfaceTextPrimary',
128
- labelTextColorHover: 'successTextSecondary',
126
+ fillHover: 'successItemSecondary',
127
+ labelTextActiveColor: 'successTextPrimary',
128
+ labelTextColor: 'successTextSecondary',
129
+ labelTextHoverColor: 'successTextPrimary',
130
+ borderColor: 'successBorderSecondary',
129
131
  iconAfterFill: 'successItemSecondary',
130
132
  iconAfterFillActive: 'successTertiary',
131
133
  iconBeforeFill: 'successItemSecondary',
132
134
  iconBeforeFillActive: 'successTertiary',
133
135
  iconFill: 'successItemSecondary',
134
136
  iconFillActive: 'successTertiary',
135
- inputBorderColor: 'successBorderSecondary',
136
137
  },
137
138
  };
138
139
 
@@ -141,15 +142,16 @@ var segmentedAppearanceWarning = {
141
142
  fill: 'warningTertiary',
142
143
  fillActive: 'warningItemSecondary',
143
144
  fillHover: 'warningItemHover',
144
- labelTextColor: 'surfaceTextPrimary',
145
+ labelTextActiveColor: 'warningTextPrimary',
146
+ labelTextColor: 'warningTextSecondary',
145
147
  labelTextColorHover: 'warningTextSecondary',
148
+ borderColor: 'warningBorderSecondary',
146
149
  iconAfterFill: 'warningItemSecondary',
147
150
  iconAfterFillActive: 'warningTertiary',
148
151
  iconBeforeFill: 'warningItemSecondary',
149
152
  iconBeforeFillActive: 'warningTertiary',
150
153
  iconFill: 'warningItemSecondary',
151
154
  iconFillActive: 'warningTertiary',
152
- inputBorderColor: 'warningBorderSecondary',
153
155
  },
154
156
  };
155
157
 
@@ -189,16 +191,17 @@ var Segmented = React.forwardRef(function (props) {
189
191
  return (__assign(__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
190
192
  }, {});
191
193
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
192
- 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, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
193
- return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
194
+ 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, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
195
+ return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
194
196
  var isActive = String(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) === String(item.value);
195
- return (jsx("div", { className: clsx('segmented__item', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
197
+ return (jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
196
198
  isDisabled &&
197
- 'segmented__item_active_state_disabled', fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive &&
199
+ 'segmented__item_active_state_disabled', !isActive
200
+ ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
201
+ : fillActiveHoverClass &&
202
+ "fill_active_hover_".concat(fillActiveHoverClass), isActive &&
198
203
  fillActiveClass &&
199
- "fill_active_".concat(fillActiveClass), isActive &&
200
- fillActiveHoverClass &&
201
- "fill_active_hover_".concat(fillActiveHoverClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
204
+ "fill_active_".concat(fillActiveClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
202
205
  ? item.iconBeforeActive || item.iconBefore
203
206
  : item.iconBefore, isActive: isActive })) : null, item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })) : null, item.iconAfter || item.iconAfterActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
204
207
  ? item.iconAfterActive || item.iconAfter
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Select, { components } from 'react-select';
4
- import { I as Icon, B as Badge } from '../Tooltip_es_LV5ZNg3B.js';
4
+ import { I as Icon, B as Badge } from '../Tooltip_es_ltCY-w4M.js';
5
5
  import React, { useRef, useCallback, useEffect, useMemo } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { b as Title } from '../Tooltip_es_LV5ZNg3B.js';
7
+ import { b as Title } from '../Tooltip_es_ltCY-w4M.js';
8
8
  import '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -123,7 +123,6 @@ var Switch = React.forwardRef(function Switch(props, ref) {
123
123
  }, {});
124
124
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
125
125
  var size = propsGenerator.size, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillToggleActiveClass = propsGenerator.fillToggleActiveClass, fillToggleActiveHoverClass = propsGenerator.fillToggleActiveHoverClass, fillToggleClass = propsGenerator.fillToggleClass, fillToggleHoverClass = propsGenerator.fillToggleHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
126
- console.log(checked);
127
126
  return (jsxs("div", { className: clsx('switch', className, align && "switch_align_".concat(align), size && "switch_size_".concat(size)), children: [title && (jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc })), jsxs("div", { className: 'switch__item', children: [jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", disabled: disabled, checked: checked || isActive,
128
127
  // @ts-expect-error
129
128
  ref: ref, onChange: onChange }), jsx("div", { className: clsx('switch__bg', !checked
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge, I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
7
+ import { B as Badge, I as Icon } from '../Tooltip_es_ltCY-w4M.js';
8
8
  import { D as Divider } from '../Divider_es_kY-30pft.js';
9
9
  import { L as Link } from '../Link_es_DxtZLeKY.js';
10
10
  import { T as Text } from '../Text_es_BfLRfj-5.js';
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
6
+ import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_ltCY-w4M.js';
7
7
  import { T as Text } from '../Text_es_BfLRfj-5.js';
8
8
  import 'react';
9
9
  import 'lodash/camelCase';
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_LV5ZNg3B.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_ltCY-w4M.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
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_LV5ZNg3B.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_ltCY-w4M.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -12,6 +12,30 @@
12
12
  }
13
13
  }
14
14
  }
15
+ .breadcrumbs__item {
16
+ &&_skeleton {
17
+ background-size: 200% !important;
18
+ border: none;
19
+ animation: breadCrumbsItemSkeleton 3s infinite linear !important;
20
+ background-image: linear-gradient(
21
+ 90deg,
22
+ var(--color-surface-fill-secondary),
23
+ var(--color-surface-fill-tertiary),
24
+ var(--color-surface-fill-secondary)
25
+ ) !important;
26
+ & * {
27
+ opacity: 0%;
28
+ }
29
+ }
30
+ }
31
+ @keyframes breadCrumbsItemSkeleton {
32
+ 0% {
33
+ background-position: 200%;
34
+ }
35
+ 100% {
36
+ background-position: -200%;
37
+ }
38
+ }
15
39
  :root {
16
40
  --breadcrumbs-item-xxl-gap: 8px;
17
41
  --breadcrumbs-item-xl-gap: 8px;
@@ -302,6 +302,30 @@
302
302
  }
303
303
  }
304
304
  }
305
+ .icon {
306
+ &&_skeleton {
307
+ background-size: 200% !important;
308
+ border: none;
309
+ animation: iconSkeleton 3s infinite linear !important;
310
+ background-image: linear-gradient(
311
+ 90deg,
312
+ var(--color-surface-fill-secondary),
313
+ var(--color-surface-fill-tertiary),
314
+ var(--color-surface-fill-secondary)
315
+ ) !important;
316
+ & * {
317
+ opacity: 0%;
318
+ }
319
+ }
320
+ }
321
+ @keyframes iconSkeleton {
322
+ 0% {
323
+ background-position: 200%;
324
+ }
325
+ 100% {
326
+ background-position: -200%;
327
+ }
328
+ }
305
329
  .icon {
306
330
  &__tooltip {
307
331
  &.tooltip {
@@ -1,6 +1,13 @@
1
1
  .menu-item {
2
2
  display: flex;
3
3
  align-items: center;
4
+ &:hover {
5
+ ^&__tooltip {
6
+ visibility: visible !important;
7
+ animation-duration: 0.2s !important;
8
+ animation-name: menuTooltipShowAnimation !important;
9
+ }
10
+ }
4
11
  &__wrapper {
5
12
  width: 100%;
6
13
  position: relative;
@@ -12,6 +19,30 @@
12
19
  align-items: center;
13
20
  flex-grow: 1;
14
21
  }
22
+ ^&__tooltip {
23
+ visibility: hidden !important;
24
+ animation-duration: 0.2s !important;
25
+ animation-name: menuTooltipHideAnimation !important;
26
+ opacity: 100% !important;
27
+ }
28
+ }
29
+ }
30
+
31
+ @keyframes menuTooltipShowAnimation {
32
+ 0% {
33
+ visibility: hidden;
34
+ }
35
+ 100% {
36
+ visibility: visible;
37
+ }
38
+ }
39
+
40
+ @keyframes menuTooltipHideAnimation {
41
+ 0% {
42
+ visibility: visible;
43
+ }
44
+ 100% {
45
+ visibility: hidden;
15
46
  }
16
47
  }
17
48
 
@@ -76,54 +76,6 @@
76
76
  }
77
77
  }
78
78
  }
79
- .notification__item {
80
- &_status {
81
- &_success {
82
- /* background: var(--color-success-fill-primary);
83
- ^^&-wrapper {
84
- ^^^&-title {
85
- color: var(--color-success-text-secondary);
86
- }
87
- ^^^&-text {
88
- color: var(--color-success-text-secondary);
89
- }
90
- } */
91
- }
92
- &_error {
93
- /* background: var(--color-error-fill-primary);
94
- ^^&-wrapper {
95
- ^^^&-title {
96
- color: var(--color-error-text-secondary);
97
- }
98
- ^^^&-text {
99
- color: var(--color-error-text-secondary);
100
- }
101
- } */
102
- }
103
- &_warning {
104
- /* background: var(--color-primary-fill-primary);
105
- ^^&-wrapper {
106
- ^^^&-title {
107
- color: var(--color-primary-text-primary);
108
- }
109
- ^^^&-text {
110
- color: var(--color-primary-text-primary);
111
- }
112
- } */
113
- }
114
- &_info {
115
- /* background: var(--color-info-fill-primary);
116
- ^^&-wrapper {
117
- ^^^&-title {
118
- color: var(--color-info-text-primary);
119
- }
120
- ^^^&-text {
121
- color: var(--color-info-text-primary);
122
- }
123
- } */
124
- }
125
- }
126
- }
127
79
  .notification__item {
128
80
  min-width: 240px;
129
81
  padding: 12px;
@@ -24,8 +24,6 @@
24
24
  width 0.3s ease;
25
25
  }
26
26
  ^^&__item {
27
- min-width: 120px;
28
- border-radius: 6px;
29
27
  position: relative;
30
28
  display: flex;
31
29
  align-items: center;
@@ -90,6 +88,8 @@
90
88
  @each $size in normal, compact, xxl, xl, l, m, s, xs, xxs {
91
89
  &_$(size) {
92
90
  ^^&__item {
91
+ min-width: var(--segmented-item-size-$(size)-min-width);
92
+ border-radius: var(--segmented-item-size-$(size)-border-radius);
93
93
  &-label {
94
94
  min-height: var(--segmented-item-size-$(size)-min-height);
95
95
  padding: var(--segmented-item-size-$(size)-padding);
@@ -143,12 +143,9 @@
143
143
  .segmented__item {
144
144
  position: relative;
145
145
  display: flex;
146
-
147
- /*
148
- &:not(:last-child) {
149
- border-right: var(--chioce-item-border-right);
146
+ &_icon {
147
+ min-width: auto;
150
148
  }
151
- */
152
149
  & input {
153
150
  width: 100%;
154
151
  height: 100%;
@@ -178,6 +175,18 @@
178
175
  --segmented-item-size-xs-padding: 0 8px;
179
176
  --segmented-item-size-xxs-padding: 0 4px;
180
177
 
178
+ --segmented-item-size-l-min-width: 120px;
179
+ --segmented-item-size-m-min-width: 120px;
180
+ --segmented-item-size-s-min-width: 80px;
181
+ --segmented-item-size-xs-min-width: 80px;
182
+ --segmented-item-size-xxs-min-width: 60px;
183
+
184
+ --segmented-item-size-l-border-radius: 6px;
185
+ --segmented-item-size-m-border-radius: 6px;
186
+ --segmented-item-size-s-border-radius: 6px;
187
+ --segmented-item-size-xs-border-radius: 6px;
188
+ --segmented-item-size-xxs-border-radius: 6px;
189
+
181
190
  --segmented-item-size-l-gap: 12px;
182
191
  --segmented-item-size-m-gap: 8px;
183
192
  --segmented-item-size-s-gap: 8px;
@@ -1,12 +1,9 @@
1
1
  .segmented__item {
2
2
  position: relative;
3
3
  display: flex;
4
-
5
- /*
6
- &:not(:last-child) {
7
- border-right: var(--chioce-item-border-right);
4
+ &_icon {
5
+ min-width: auto;
8
6
  }
9
- */
10
7
  & input {
11
8
  width: 100%;
12
9
  height: 100%;
@@ -1,4 +1,4 @@
1
- import { Canvas, Controls, Meta } from '@storybook/blocks'
1
+ import { Canvas, Meta } from '@storybook/blocks'
2
2
 
3
3
  import * as BreadcrumbsStories from '../stories/BreadcrumbsDemo.stories'
4
4
 
@@ -1,19 +1,9 @@
1
1
  declare const breadcrumbsAppearanceAccent: {
2
- accent: {
3
- fill: string;
4
- fillHover: string;
5
- };
6
2
  accentPrimary: {
7
3
  fill: string;
8
- fillHover: string;
9
- borderColor: string;
10
- };
11
- accentSecondary: {
12
- fill: string;
13
- fillHover: string;
14
- textColor: string;
15
- textColorHover: string;
4
+ labelTextColor: string;
16
5
  borderColor: string;
6
+ iconFillIcon: string;
17
7
  };
18
8
  };
19
9
  export { breadcrumbsAppearanceAccent };
@@ -2,44 +2,37 @@ declare const breadcrumbsAppearanceSize: {
2
2
  sizeXXL: {
3
3
  size: string;
4
4
  labelTextSize: string;
5
- iconFillSize: string;
6
- iconSize: string;
5
+ icon: any;
7
6
  };
8
7
  sizeXL: {
9
8
  size: string;
10
9
  labelTextSize: string;
11
- iconFillSize: string;
12
- iconSize: string;
10
+ icon: any;
13
11
  };
14
12
  sizeL: {
15
13
  size: string;
16
14
  labelTextSize: string;
17
- iconFillSize: string;
18
- iconSize: string;
15
+ icon: any;
19
16
  };
20
17
  sizeM: {
21
18
  size: string;
22
19
  labelTextSize: string;
23
- iconFillSize: string;
24
- iconSize: string;
20
+ icon: any;
25
21
  };
26
22
  sizeS: {
27
23
  size: string;
28
24
  labelTextSize: string;
29
- iconFillSize: string;
30
- iconSize: string;
25
+ icon: any;
31
26
  };
32
27
  sizeXS: {
33
28
  size: string;
34
29
  labelTextSize: string;
35
- iconFillSize: string;
36
- iconSize: string;
30
+ icon: any;
37
31
  };
38
32
  sizeXXS: {
39
33
  size: string;
40
34
  labelTextSize: string;
41
- iconFillSize: string;
42
- iconSize: string;
35
+ icon: any;
43
36
  };
44
37
  };
45
38
  export { breadcrumbsAppearanceSize };
@@ -5,9 +5,7 @@ declare const breadcrumbsAppearanceStyle: {
5
5
  outlined: {
6
6
  fill: string;
7
7
  };
8
- full: {
9
- borderColor: string;
10
- };
8
+ full: {};
11
9
  ghost: {
12
10
  fill: string;
13
11
  borderColor: string;
@@ -1,24 +1,27 @@
1
1
  declare const breadcrumbsAppearanceSurface: {
2
2
  surfacePrimary: {
3
3
  fill: string;
4
- fillHover: string;
5
- textColor: string;
4
+ labelTextColor: string;
5
+ borderColor: string;
6
6
  iconFillIcon: string;
7
7
  };
8
8
  surfaceSecondary: {
9
9
  fill: string;
10
- fillHover: string;
11
- textColor: string;
10
+ labelTextColor: string;
11
+ borderColor: string;
12
+ iconFillIcon: string;
12
13
  };
13
14
  surfaceTertiary: {
14
15
  fill: string;
15
- fillHover: string;
16
- textColor: string;
16
+ labelTextColor: string;
17
+ borderColor: string;
18
+ iconFillIcon: string;
17
19
  };
18
20
  surfaceQuaternary: {
19
21
  fill: string;
20
- fillHover: string;
21
- textColor: string;
22
+ labelTextColor: string;
23
+ borderColor: string;
24
+ iconFillIcon: string;
22
25
  };
23
26
  };
24
27
  export { breadcrumbsAppearanceSurface };
@@ -1,33 +1,7 @@
1
1
  declare const breadcrumbsListMock: {
2
- breadcrumbsList: {
3
- id: string;
4
- key: number;
5
- text: string;
6
- href: string;
7
- icon: any;
8
- }[];
9
- };
10
- declare const breadcrumbsListMockSize: {
11
- xl: {
12
- icon: any;
13
- id: string;
14
- key: number;
15
- text: string;
16
- href: string;
17
- }[];
18
- l: {
19
- icon: any;
20
- id: string;
21
- key: number;
22
- text: string;
23
- href: string;
24
- }[];
25
- m: {
26
- id: string;
27
- key: number;
28
- text: string;
29
- href: string;
30
- icon: any;
31
- }[];
32
- };
33
- export { breadcrumbsListMock, breadcrumbsListMockSize };
2
+ id: string;
3
+ key: number;
4
+ text: string;
5
+ href: string;
6
+ }[];
7
+ export { breadcrumbsListMock };
@@ -26,5 +26,14 @@ declare const buttonAppearanceSurface: {
26
26
  iconFillIcon: string;
27
27
  loaderAppearance: string;
28
28
  };
29
+ surfaceQuaternary: {
30
+ fill: string;
31
+ fillHover: string;
32
+ labelTextColor: string;
33
+ iconAfterFillIcon: string;
34
+ iconBeforeFillIcon: string;
35
+ iconFillIcon: string;
36
+ loaderAppearance: string;
37
+ };
29
38
  };
30
39
  export { buttonAppearanceSurface };
@@ -5,9 +5,7 @@ declare const chipsAppearanceStyle: {
5
5
  outlined: {
6
6
  fill: string;
7
7
  };
8
- full: {
9
- borderColor: string;
10
- };
8
+ full: {};
11
9
  ghost: {
12
10
  fill: string;
13
11
  borderColor: string;
@@ -4,6 +4,7 @@ declare const choiceAppearanceDefault: {
4
4
  fillItem: string;
5
5
  fillItemActive: string;
6
6
  fillItemHover: string;
7
+ labelTextActiveColor: string;
7
8
  labelTextColor: string;
8
9
  borderColor: string;
9
10
  iconAfterFill: string;