@itcase/ui 1.8.23 → 1.8.25

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 (111) hide show
  1. package/dist/{Button_cjs_MfWRETXI.js → Button_cjs_CYUpbdMO.js} +133 -52
  2. package/dist/{Button_es_zW2pQTwL.js → Button_es_Dp6yFZgn.js} +133 -52
  3. package/dist/{ChipsGroup_cjs_CTh6644i.js → ChipsGroup_cjs_Ct-NrPmJ.js} +2 -1
  4. package/dist/{ChipsGroup_es_BFxBhYNB.js → ChipsGroup_es_BNuhlSG6.js} +2 -1
  5. package/dist/{DatePicker_cjs_uDJmwWkk.js → DatePicker_cjs_DamcZFbX.js} +2 -2
  6. package/dist/{DatePicker_es_5r0isX1_.js → DatePicker_es_Bm_onmmb.js} +2 -2
  7. package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
  8. package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
  9. package/dist/{DropdownItem_cjs_C6Jx7-kx.js → DropdownItem_cjs_B_7anyaJ.js} +1 -1
  10. package/dist/{DropdownItem_es_UdkGGVtg.js → DropdownItem_es_B4EZYdJA.js} +1 -1
  11. package/dist/{Label_cjs_jN0dxo1q.js → Label_cjs_ByGAWJcj.js} +168 -28
  12. package/dist/{Label_es_CFQzN-2m.js → Label_es_BtwZ3a2V.js} +168 -28
  13. package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
  14. package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
  17. package/dist/cjs/components/Breadcrumbs.js +46 -57
  18. package/dist/cjs/components/Button.js +2 -2
  19. package/dist/cjs/components/Cell.js +1 -1
  20. package/dist/cjs/components/Chips.js +1 -1
  21. package/dist/cjs/components/Choice.js +1 -1
  22. package/dist/cjs/components/CookiesWarning.js +2 -2
  23. package/dist/cjs/components/DatePeriod.js +81 -14
  24. package/dist/cjs/components/DatePicker.js +4 -4
  25. package/dist/cjs/components/Divider.js +1 -1
  26. package/dist/cjs/components/Dropdown.js +2 -2
  27. package/dist/cjs/components/Label.js +1 -1
  28. package/dist/cjs/components/Loader.js +1 -1
  29. package/dist/cjs/components/Modal.js +1 -1
  30. package/dist/cjs/components/Pagination.js +2 -2
  31. package/dist/cjs/components/Response.js +27 -36
  32. package/dist/cjs/components/Select.js +1 -1
  33. package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
  34. package/dist/cjs/components/Tab.js +133 -39
  35. package/dist/components/Accordion.js +1 -1
  36. package/dist/components/Breadcrumbs/stories/__mock__.js +43 -0
  37. package/dist/components/Breadcrumbs.js +46 -57
  38. package/dist/components/Button.js +2 -2
  39. package/dist/components/Cell.js +1 -1
  40. package/dist/components/Chips.js +1 -1
  41. package/dist/components/Choice.js +1 -1
  42. package/dist/components/CookiesWarning.js +2 -2
  43. package/dist/components/DatePeriod.js +81 -15
  44. package/dist/components/DatePicker.js +4 -4
  45. package/dist/components/Divider.js +1 -1
  46. package/dist/components/Dropdown.js +2 -2
  47. package/dist/components/Label.js +1 -1
  48. package/dist/components/Loader.js +1 -1
  49. package/dist/components/Modal.js +1 -1
  50. package/dist/components/Pagination.js +2 -2
  51. package/dist/components/Response.js +27 -36
  52. package/dist/components/Select.js +1 -1
  53. package/dist/components/Tab/stories/__mock__.js +12 -0
  54. package/dist/components/Tab.js +134 -40
  55. package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
  56. package/dist/css/components/Button/Button.css +4 -4
  57. package/dist/css/components/Label/Label.css +10 -9
  58. package/dist/css/components/Loader/Loader.css +21 -2
  59. package/dist/stories/Plsyground.mdx +1 -3
  60. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
  61. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
  62. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
  63. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
  64. package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
  65. package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
  66. package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
  67. package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
  68. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
  69. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
  70. package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
  71. package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
  72. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
  73. package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
  74. package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -4
  75. package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
  76. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +30 -37
  77. package/dist/types/components/DatePeriod/datePeriodIntervals.d.ts +3 -0
  78. package/dist/types/components/DatePeriod/index.d.ts +1 -0
  79. package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
  80. package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
  81. package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
  82. package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
  83. package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
  84. package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
  85. package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
  86. package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
  87. package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
  88. package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
  89. package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
  90. package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
  91. package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
  92. package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
  93. package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
  94. package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
  95. package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
  96. package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
  97. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
  98. package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
  99. package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
  100. package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
  101. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
  102. package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
  103. package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
  104. package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
  105. package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
  106. package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
  107. package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
  108. package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
  109. package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
  110. package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +4 -1
  111. package/package.json +8 -6
@@ -4,8 +4,8 @@ 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 } from '../Tooltip_es_D1w1s33u.js';
8
- import { D as Divider } from '../Divider_es_BdU9qjKa.js';
7
+ import { B as Badge, I as Icon } from '../Tooltip_es_D1w1s33u.js';
8
+ import { D as Divider } from '../Divider_es_BEYLRagS.js';
9
9
  import { L as Link } from '../Link_es_DxtZLeKY.js';
10
10
  import { T as Text } from '../Text_es_BRb3qqKM.js';
11
11
  import 'lodash/camelCase';
@@ -22,13 +22,67 @@ import 'lodash/maxBy';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
23
  import 'react-inlinesvg';
24
24
 
25
+ var tabAppearanceError = {
26
+ errorPrimary: {
27
+ fill: 'errorPrimary',
28
+ fillDisabled: 'errorDisabled',
29
+ labelColor: 'errorTextPrimary',
30
+ labelColorActive: 'errorTextAccent',
31
+ labelColorDisabled: 'errorTextDisabled',
32
+ dividerFillDisabled: 'errorDisabled',
33
+ badgeAppearance: 'error',
34
+ dividerFill: 'accentPrimary',
35
+ },
36
+ };
37
+
25
38
  var tabAppearanceSize = {
39
+ sizeXXL: {
40
+ size: 'xxl',
41
+ labelTextSize: 's',
42
+ badgeSize: 'xs',
43
+ badgeTextSize: 'xs',
44
+ dividerSize: 's',
45
+ },
46
+ sizeXL: {
47
+ size: 'xl',
48
+ labelTextSize: 's',
49
+ badgeSize: 'xs',
50
+ badgeTextSize: 'xs',
51
+ dividerSize: 's',
52
+ },
26
53
  sizeL: {
27
54
  size: 'l',
28
55
  labelTextSize: 's',
56
+ badgeSize: 'xs',
57
+ badgeTextSize: 'xs',
29
58
  dividerSize: 's',
59
+ },
60
+ sizeM: {
61
+ size: 'm',
62
+ labelTextSize: 's',
30
63
  badgeSize: 'xs',
64
+ badgeTextSize: 'xs',
65
+ dividerSize: 's',
66
+ },
67
+ sizeS: {
68
+ size: 's',
69
+ labelTextSize: 's',
70
+ badgeSize: 'xs',
71
+ badgeTextSize: 'xs',
72
+ dividerSize: 's',
73
+ },
74
+ sizeXS: {
75
+ size: 'xs',
76
+ labelTextSize: 'xs',
77
+ badgeSize: 'xs',
78
+ badgeTextSize: 'xs',
79
+ },
80
+ sizeXXS: {
81
+ size: 'xxs',
82
+ labelTextSize: 'xs',
83
+ badgeSize: 'xxs',
31
84
  badgeTextSize: 'xxs',
85
+ dividerSize: 's',
32
86
  },
33
87
  };
34
88
 
@@ -38,68 +92,99 @@ var tabAppearanceStyle = {
38
92
  },
39
93
  ghost: {
40
94
  fill: 'none',
41
- borderWidth: '0',
95
+ borderColor: 'none',
42
96
  },
43
97
  outlined: {
44
98
  fill: 'none',
45
99
  },
46
100
  solid: {
47
- borderWidth: '0',
101
+ borderColor: 'none',
102
+ },
103
+ };
104
+
105
+ var tabAppearanceSuccess = {
106
+ successPrimary: {
107
+ fill: 'successPrimary',
108
+ fillDisabled: 'successDisabled',
109
+ labelColor: 'successTextPrimary',
110
+ labelColorActive: 'successTextAccent',
111
+ labelColorDisabled: 'successTextDisabled',
112
+ dividerFillDisabled: 'successDisabled',
113
+ badgeAppearance: 'success',
114
+ dividerFill: 'accentPrimary',
48
115
  },
49
116
  };
50
117
 
51
118
  var tabAppearanceSurface = {
52
119
  surfacePrimary: {
53
120
  fill: 'surfacePrimary',
121
+ fillActive: 'surfacePrimary',
122
+ fillActiveHover: 'surfaceSecondary',
54
123
  fillDisabled: 'surfaceDisabled',
55
- labelColor: 'surfaceTextPrimary',
56
- labelColorActive: 'surfaceTextAccent',
57
- labelColorDisabled: 'surfaceTextDisabled',
124
+ fillHover: 'surfaceSecondary',
125
+ labelTextColor: 'surfaceTextPrimary',
126
+ labelTextColorActive: 'surfaceTextAccent',
127
+ borderColor: 'surfaceBorderPrimary',
58
128
  dividerFillDisabled: 'accentDisabled',
59
- dividerFill: 'surfaceTertiary',
60
- dividerFillActive: 'accentPrimary',
61
- dividerFillHover: 'accentPrimary',
62
129
  badgeAppearance: 'accentPrimary',
63
- },
64
- surfaceQuaternary: {
65
- fill: 'surfaceQuaternary',
66
- fillDisabled: 'surfaceDisabled',
67
- fillHover: 'surfaceTertiaryHover',
68
- labelColor: 'surfaceTextInverse',
69
- labelColorActive: 'surfaceTextInverse',
70
- labelColorDisabled: 'surfaceTextDisabled',
71
- dividerFillDisabled: 'accentDisabled',
72
- dividerFill: 'surfaceTertiary',
73
130
  dividerFillActive: 'accentPrimary',
74
- dividerFillHover: 'surfaceTertiary',
131
+ iconFillIcon: 'surfaceItemPrimary',
75
132
  },
76
133
  surfaceSecondary: {
77
134
  fill: 'surfaceSecondary',
135
+ fillActive: 'surfaceSecondary',
136
+ fillActiveHover: 'surfaceTertiary',
78
137
  fillDisabled: 'surfaceDisabled',
79
- fillHover: 'surfaceSecondaryHover',
80
- labelColor: 'surfaceTextPrimary',
81
- labelColorActive: 'surfaceTextAccent',
82
- labelColorDisabled: 'surfaceTextDisabled',
138
+ fillHover: 'surfaceTertiary',
139
+ labelTextColor: 'surfaceTextPrimary',
140
+ labelTextColorActive: 'surfaceTextAccent',
83
141
  dividerFillDisabled: 'accentDisabled',
84
- dividerFill: 'surfaceTertiary',
142
+ badgeAppearance: 'accentPrimary',
85
143
  dividerFillActive: 'accentPrimary',
86
- dividerFillHover: 'surfaceTertiary',
144
+ iconFillIcon: 'surfaceItemPrimary',
87
145
  },
88
146
  surfaceTertiary: {
89
147
  fill: 'surfaceTertiary',
148
+ fillActive: 'surfaceSecondary',
149
+ fillActiveHover: 'surfaceTertiary',
90
150
  fillDisabled: 'surfaceDisabled',
91
- fillHover: 'surfaceTertiaryHover',
92
- labelColor: 'surfaceTextPrimary',
93
- labelColorActive: 'surfaceTextAccent',
94
- labelColorDisabled: 'surfaceTextDisabled',
151
+ fillHover: 'surfaceSecondary',
152
+ labelTextColor: 'surfaceTextPrimary',
153
+ labelTextColorActive: 'surfaceTextAccent',
95
154
  dividerFillDisabled: 'accentDisabled',
96
- dividerFill: 'surfaceTertiary',
155
+ badgeAppearance: 'accentPrimary',
97
156
  dividerFillActive: 'accentPrimary',
98
- dividerFillHover: 'surfaceTertiary',
157
+ iconFillIcon: 'surfaceItemPrimary',
158
+ },
159
+ surfaceQuaternary: {
160
+ fill: 'surfaceQuaternary',
161
+ fillActive: 'accentPrimary',
162
+ fillActiveHover: 'surfaceTertiary',
163
+ fillDisabled: 'surfaceDisabled',
164
+ fillHover: 'surfaceQuaternary',
165
+ labelTextColor: 'surfaceTextInverse',
166
+ labelTextColorActive: 'surfaceTextInverse',
167
+ dividerFillDisabled: 'accentDisabled',
168
+ badgeAppearance: 'accentPrimary',
169
+ dividerFillActive: 'accentPrimary',
170
+ iconFillIcon: 'surfaceItemPrimary',
171
+ },
172
+ };
173
+
174
+ var tabAppearanceWarning = {
175
+ warningPrimary: {
176
+ fill: 'warningPrimary',
177
+ fillDisabled: 'warningDisabled',
178
+ labelColor: 'warningTextPrimary',
179
+ labelColorActive: 'warningTextAccent',
180
+ labelColorDisabled: 'warningTextDisabled',
181
+ dividerFillDisabled: 'warningDisabled',
182
+ badgeAppearance: 'warning',
183
+ dividerFill: 'accentPrimary',
99
184
  },
100
185
  };
101
186
 
102
- var tabAppearance = __assign(__assign(__assign({}, tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
187
+ var tabAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, tabAppearanceWarning), tabAppearanceError), tabAppearanceSuccess), tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
103
188
 
104
189
  var tabConfig = {
105
190
  appearance: tabAppearance,
@@ -108,27 +193,36 @@ var tabConfig = {
108
193
  },
109
194
  };
110
195
  function Tab(props) {
111
- var className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel, reset = props.reset, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, _c = props.isHover, isHover = _c === void 0 ? false : _c, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
196
+ var className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
112
197
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
113
198
  var _a;
114
199
  return (__assign(__assign({}, resultConfig), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
115
200
  }, {});
116
201
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
117
- var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, labelColor = propsGenerator.labelColor, labelColorActive = propsGenerator.labelColorActive, labelColorDisabled = propsGenerator.labelColorDisabled, labelTextAlign = propsGenerator.labelTextAlign, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextGradient = propsGenerator.labelTextGradient, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
202
+ var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
118
203
  // @ts-expect-error
119
204
  var tab = useStyles(props).styles;
120
- return (jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', !isDisabled
205
+ return (jsx("div", { className: clsx('tab', className, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', !isActive
121
206
  ? fillClass && "fill_".concat(fillClass)
122
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsx(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: isDisabled ? labelColorDisabled : labelColor, textColorActive: isActive && labelColorActive, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }), jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: isDisabled ? dividerFillDisabled : dividerFill, fillActive: isActive && dividerFillActive, fillActiveHover: dividerFillActiveHover, fillHover: isHover && dividerFillHover, zIndex: "1" })] })), after] }) }) }));
207
+ : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
208
+ ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
209
+ : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isActive
210
+ ? borderColorClass && "border-color_".concat(borderColorClass)
211
+ : borderColorActiveClass &&
212
+ "border-color_active_".concat(borderColorActiveClass), !isActive
213
+ ? borderColorHoverClass &&
214
+ "border-color_hover_".concat(borderColorHoverClass)
215
+ : borderColorActiveHoverClass &&
216
+ "border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isDisabled: isDisabled, isActive: isActive, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
123
217
  }
124
218
 
125
219
  function TabGroup(props) {
126
- var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set, children = props.children;
220
+ var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, tabAppearance = props.tabAppearance, tabList = props.tabList, set = props.set, children = props.children;
127
221
  var propsGenerator = useDevicePropsGenerator(props);
128
222
  var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
129
223
  // @ts-expect-error
130
224
  var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
131
- return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
225
+ return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key)); }), children] })) : (jsxs(React.Fragment, { children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })) }));
132
226
  }
133
227
 
134
228
  export { Tab, TabGroup, tabAppearance, tabConfig };
@@ -0,0 +1,22 @@
1
+ .breadcrumbs {
2
+ }
3
+ .breadcrumbs__item {
4
+ display: flex;
5
+ align-items: center;
6
+ }
7
+ .breadcrumbs__item {
8
+ @each $size in xxl, xl, l, m, s, xs, xxs {
9
+ &_size_$(size) {
10
+ gap: var(--breadcrumbs-item-$(size)-gap);
11
+ }
12
+ }
13
+ }
14
+ :root {
15
+ --breadcrumbs-item-xxl-gap: 12px;
16
+ --breadcrumbs-item-xl-gap: 8px;
17
+ --breadcrumbs-item-l-gap: 8px;
18
+ --breadcrumbs-item-m-gap: 8px;
19
+ --breadcrumbs-item-s-gap: 8px;
20
+ --breadcrumbs-item-xs-gap: 8px;
21
+ --breadcrumbs-item-xxs-gap: 8px;
22
+ }
@@ -70,9 +70,9 @@
70
70
  animation: buttonSkeleton 3s infinite linear !important;
71
71
  background-image: linear-gradient(
72
72
  90deg,
73
- var(--color-surface-secondary),
74
- var(--color-surface-tertiary),
75
- var(--color-surface-secondary)
73
+ var(--color-surface-fill-secondary),
74
+ var(--color-surface-fill-tertiary),
75
+ var(--color-surface-fill-secondary)
76
76
  ) !important;
77
77
  & * {
78
78
  opacity: 0%;
@@ -88,7 +88,7 @@
88
88
  }
89
89
  }
90
90
  .button {
91
- @each $size in xxs, xs, s, m, l, xl, xxl {
91
+ @each $size in xxl, xl, l, m, s, xs, xxs {
92
92
  &_size_$(size) {
93
93
  ^&__wrapper {
94
94
  min-width: var(--button-$(size)-min-width);
@@ -12,17 +12,18 @@
12
12
  }
13
13
  }
14
14
  .label {
15
- &_skeleton {
15
+ &&_skeleton {
16
+ background-size: 200% !important;
17
+ border: none;
18
+ animation: badgeSkeleton 3s infinite linear !important;
16
19
  background-image: linear-gradient(
17
20
  90deg,
18
- var(--color-surface-secondary),
19
- var(--color-surface-tertiary),
20
- var(--color-surface-secondary)
21
- );
22
- background-size: 200%;
23
- animation: labelSkeleton 3s infinite linear;
24
- ^&__label {
25
- color: transparent;
21
+ var(--color-surface-fill-secondary),
22
+ var(--color-surface-fill-tertiary),
23
+ var(--color-surface-fill-secondary)
24
+ ) !important;
25
+ & * {
26
+ opacity: 0%;
26
27
  }
27
28
  }
28
29
  }
@@ -12,8 +12,27 @@
12
12
  }
13
13
  }
14
14
  .loader {
15
- &_skeleton {
16
- position: relative;
15
+ &&_skeleton {
16
+ background-size: 200% !important;
17
+ border: none;
18
+ animation: loaderSkeleton 3s infinite linear !important;
19
+ background-image: linear-gradient(
20
+ 90deg,
21
+ var(--color-surface-fill-secondary),
22
+ var(--color-surface-fill-tertiary),
23
+ var(--color-surface-fill-secondary)
24
+ ) !important;
25
+ & * {
26
+ opacity: 0%;
27
+ }
28
+ }
29
+ }
30
+ @keyframes loaderSkeleton {
31
+ 0% {
32
+ background-position: 200%;
33
+ }
34
+ 100% {
35
+ background-position: -200%;
17
36
  }
18
37
  }
19
38
  .loader {
@@ -6,6 +6,4 @@ import * as BreadcrumbsStories from '../stories/Breadcrumbs.stories'
6
6
 
7
7
  # Playground
8
8
 
9
- <Canvas sourceState="shown" of={BreadcrumbsItemStories.Demo} />
10
-
11
- <Canvas sourceState="shown" of={BreadcrumbsItemStories.Demo} />
9
+ <Canvas sourceState="shown" of={BreadcrumbsStories.Demo} />
@@ -1,4 +1,3 @@
1
- import type { BreadcrumbsConfig, BreadcrumbsProps } from './Breadcrumbs.interface';
2
- declare const breadcrumbsConfig: BreadcrumbsConfig;
1
+ import type { BreadcrumbsProps } from './Breadcrumbs.interface';
3
2
  declare function Breadcrumbs(props: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
4
- export { Breadcrumbs, breadcrumbsConfig };
3
+ export { Breadcrumbs };
@@ -1,52 +1,45 @@
1
1
  declare const breadcrumbsAppearanceSize: {
2
2
  sizeXXL: {
3
- textSize: string;
4
- iconAfterFillSize: string;
5
- iconAfterSize: string;
6
- iconBeforeFillSize: string;
7
- iconBeforeSize: string;
3
+ size: string;
4
+ labelTextSize: string;
5
+ iconFillSize: string;
6
+ iconSize: string;
8
7
  };
9
8
  sizeXL: {
10
- textSize: string;
11
- iconAfterFillSize: string;
12
- iconAfterSize: string;
13
- iconBeforeFillSize: string;
14
- iconBeforeSize: string;
9
+ size: string;
10
+ labelTextSize: string;
11
+ iconFillSize: string;
12
+ iconSize: string;
15
13
  };
16
14
  sizeL: {
17
- textSize: string;
18
- iconAfterFillSize: string;
19
- iconAfterSize: string;
20
- iconBeforeFillSize: string;
21
- iconBeforeSize: string;
15
+ size: string;
16
+ labelTextSize: string;
17
+ iconFillSize: string;
18
+ iconSize: string;
22
19
  };
23
20
  sizeM: {
24
- textSize: string;
25
- iconAfterFillSize: string;
26
- iconAfterSize: string;
27
- iconBeforeFillSize: string;
28
- iconBeforeSize: string;
21
+ size: string;
22
+ labelTextSize: string;
23
+ iconFillSize: string;
24
+ iconSize: string;
29
25
  };
30
26
  sizeS: {
31
- textSize: string;
32
- iconAfterFillSize: string;
33
- iconAfterSize: string;
34
- iconBeforeFillSize: string;
35
- iconBeforeSize: string;
27
+ size: string;
28
+ labelTextSize: string;
29
+ iconFillSize: string;
30
+ iconSize: string;
36
31
  };
37
32
  sizeXS: {
38
- textSize: string;
39
- iconAfterFillSize: string;
40
- iconAfterSize: string;
41
- iconBeforeFillSize: string;
42
- iconBeforeSize: string;
33
+ size: string;
34
+ labelTextSize: string;
35
+ iconFillSize: string;
36
+ iconSize: string;
43
37
  };
44
38
  sizeXXS: {
45
- textSize: string;
46
- iconAfterFillSize: string;
47
- iconAfterSize: string;
48
- iconBeforeFillSize: string;
49
- iconBeforeSize: string;
39
+ size: string;
40
+ labelTextSize: string;
41
+ iconFillSize: string;
42
+ iconSize: string;
50
43
  };
51
44
  };
52
45
  export { breadcrumbsAppearanceSize };
@@ -3,18 +3,19 @@ declare const breadcrumbsAppearanceSurface: {
3
3
  fill: string;
4
4
  fillHover: string;
5
5
  textColor: string;
6
+ iconFillIcon: string;
6
7
  };
7
- surfaceQuaternary: {
8
+ surfaceSecondary: {
8
9
  fill: string;
9
10
  fillHover: string;
10
11
  textColor: string;
11
12
  };
12
- surfaceSecondary: {
13
+ surfaceTertiary: {
13
14
  fill: string;
14
15
  fillHover: string;
15
16
  textColor: string;
16
17
  };
17
- surfaceTertiary: {
18
+ surfaceQuaternary: {
18
19
  fill: string;
19
20
  fillHover: string;
20
21
  textColor: string;
@@ -0,0 +1,10 @@
1
+ declare const breadcrumbsListMock: {
2
+ breadcrumbsList: {
3
+ id: string;
4
+ key: number;
5
+ text: string;
6
+ href: string;
7
+ icon: string;
8
+ }[];
9
+ };
10
+ export { breadcrumbsListMock };
@@ -8,8 +8,7 @@ declare const buttonAppearanceAccent: {
8
8
  iconAfterFillIcon: string;
9
9
  iconBeforeFillIcon: string;
10
10
  iconFillIcon: string;
11
- loaderFill: string;
12
- loaderItemFill: string;
11
+ loaderAppearance: string;
13
12
  };
14
13
  accentPrimary: {
15
14
  fill: string;
@@ -19,8 +18,8 @@ declare const buttonAppearanceAccent: {
19
18
  borderColor: string;
20
19
  iconAfterFillIcon: string;
21
20
  iconBeforeFillIcon: string;
22
- loaderFill: string;
23
- loaderItemFill: string;
21
+ iconFillIcon: string;
22
+ loaderAppearance: string;
24
23
  };
25
24
  accentSecondary: {
26
25
  fill: string;
@@ -28,8 +27,10 @@ declare const buttonAppearanceAccent: {
28
27
  labelTextColor: string;
29
28
  labelTextColorHover: string;
30
29
  borderColor: string;
31
- loaderFill: string;
32
- loaderItemFill: string;
30
+ iconAfterFillIcon: string;
31
+ iconBeforeFillIcon: string;
32
+ iconFillIcon: string;
33
+ loaderAppearance: string;
33
34
  };
34
35
  };
35
36
  export { buttonAppearanceAccent };
@@ -4,16 +4,20 @@ declare const buttonAppearanceDanger: {
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
6
  labelTextColorHover: string;
7
- loaderFill: string;
8
- loaderItemFill: string;
7
+ iconAfterFillIcon: string;
8
+ iconBeforeFillIcon: string;
9
+ iconFillIcon: string;
10
+ loaderAppearance: string;
9
11
  };
10
12
  dangerPrimary: {
11
13
  fill: string;
12
14
  fillHover: string;
13
15
  labelTextColor: string;
14
16
  labelTextColorHover: string;
15
- loaderFill: string;
16
- loaderItemFill: string;
17
+ iconAfterFillIcon: string;
18
+ iconBeforeFillIcon: string;
19
+ iconFillIcon: string;
20
+ loaderAppearance: string;
17
21
  };
18
22
  };
19
23
  export { buttonAppearanceDanger };
@@ -4,8 +4,20 @@ declare const buttonAppearanceError: {
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
6
  labelTextColorHover: string;
7
- loaderFill: string;
8
- loaderItemFill: string;
7
+ iconAfterFillIcon: string;
8
+ iconBeforeFillIcon: string;
9
+ iconFillIcon: string;
10
+ loaderAppearance: string;
11
+ };
12
+ errorPrimary: {
13
+ fill: string;
14
+ fillHover: string;
15
+ labelTextColor: string;
16
+ labelTextColorHover: string;
17
+ iconAfterFillIcon: string;
18
+ iconBeforeFillIcon: string;
19
+ iconFillIcon: string;
20
+ loaderAppearance: string;
9
21
  };
10
22
  };
11
23
  export { buttonAppearanceError };
@@ -5,8 +5,21 @@ declare const buttonAppearanceInfo: {
5
5
  labelTextColor: string;
6
6
  labelTextColorHover: string;
7
7
  borderColor: string;
8
- loaderFill: string;
9
- loaderItemFill: string;
8
+ iconAfterFillIcon: string;
9
+ iconBeforeFillIcon: string;
10
+ iconFillIcon: string;
11
+ loaderAppearance: string;
12
+ };
13
+ infoPrimary: {
14
+ fill: string;
15
+ fillHover: string;
16
+ labelTextColor: string;
17
+ labelTextColorHover: string;
18
+ borderColor: string;
19
+ iconAfterFillIcon: string;
20
+ iconBeforeFillIcon: string;
21
+ iconFillIcon: string;
22
+ loaderAppearance: string;
10
23
  };
11
24
  infoSecondary: {
12
25
  fill: string;
@@ -14,8 +27,10 @@ declare const buttonAppearanceInfo: {
14
27
  labelTextColor: string;
15
28
  labelTextColorHover: string;
16
29
  borderColor: string;
17
- loaderFill: string;
18
- loaderItemFill: string;
30
+ iconAfterFillIcon: string;
31
+ iconBeforeFillIcon: string;
32
+ iconFillIcon: string;
33
+ loaderAppearance: string;
19
34
  };
20
35
  };
21
36
  export { buttonAppearanceInfo };
@@ -3,6 +3,19 @@ declare const buttonAppearancePrimary: {
3
3
  fill: string;
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
+ iconAfterFillIcon: string;
7
+ iconBeforeFillIcon: string;
8
+ iconFillIcon: string;
9
+ loaderAppearance: string;
10
+ };
11
+ primaryPrimary: {
12
+ fill: string;
13
+ fillHover: string;
14
+ labelTextColor: string;
15
+ iconAfterFillIcon: string;
16
+ iconBeforeFillIcon: string;
17
+ iconFillIcon: string;
18
+ loaderAppearance: string;
6
19
  };
7
20
  };
8
21
  export { buttonAppearancePrimary };