@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
@@ -1,14 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
- var index = require('./Response/img.js');
5
4
  var jsxRuntime = require('react/jsx-runtime');
6
5
  var React = require('react');
7
6
  var clsx = require('clsx');
8
7
  var SVG = require('react-inlinesvg');
9
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
9
  var useStyles = require('../hooks/useStyles/useStyles.js');
11
- var Button = require('../../Button_cjs_MfWRETXI.js');
10
+ var Button = require('../../Button_cjs_CYUpbdMO.js');
12
11
  var Group = require('../../Group_cjs_Cwt0gWk4.js');
13
12
  var Text = require('../../Text_cjs_DPhKj3wf.js');
14
13
  require('lodash/camelCase');
@@ -25,18 +24,17 @@ require('lodash/maxBy');
25
24
  require('../hooks/useStyles/styleAttributes.js');
26
25
  require('../../Tooltip_cjs_CaocDcQ5.js');
27
26
  require('../../Link_cjs_DbRGq2Yk.js');
28
- require('../../Loader_cjs_3VRzFLI2.js');
27
+ require('../../Loader_cjs___VikiqS.js');
29
28
 
30
29
  var responseAppearanceConfirm = {
31
30
  confirm: {
32
31
  fill: 'surfacePrimary',
33
32
  titleTextColor: 'surfaceTextPrimary',
33
+ titleTextSize: 'xxl',
34
34
  labelTextColor: 'surfaceTextPrimary',
35
- primaryButtonAppearance: 'accent sizeXXL',
35
+ descTextSize: 'm',
36
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
36
37
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
37
- svgFill: 'surfaceTertiary',
38
- SvgImage: index.resposeIcon.Confirm,
39
- svgPathFill: 'surfaceItemQuaternary',
40
38
  },
41
39
  };
42
40
 
@@ -44,12 +42,11 @@ var responseAppearanceFail = {
44
42
  fail: {
45
43
  fill: 'surfacePrimary',
46
44
  titleTextColor: 'surfaceTextPrimary',
45
+ titleTextSize: 'xxl',
47
46
  labelTextColor: 'surfaceTextPrimary',
48
- primaryButtonAppearance: 'accent sizeXXL',
47
+ descTextSize: 'm',
48
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
49
49
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
50
- svgFill: 'surfaceTertiary',
51
- SvgImage: index.resposeIcon.Fail,
52
- svgPathFill: 'surfaceItemQuaternary',
53
50
  },
54
51
  };
55
52
 
@@ -57,12 +54,11 @@ var responseAppearanceNothingFound = {
57
54
  nothingFound: {
58
55
  fill: 'surfacePrimary',
59
56
  titleTextColor: 'surfaceTextPrimary',
57
+ titleTextSize: 'xxl',
60
58
  labelTextColor: 'surfaceTextPrimary',
61
- primaryButtonAppearance: 'accent sizeXXL',
59
+ descTextSize: 'm',
60
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
62
61
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
63
- svgFill: 'surfaceTertiary',
64
- SvgImage: index.resposeIcon.NothingFound,
65
- svgPathFill: 'surfaceItemQuaternary',
66
62
  },
67
63
  };
68
64
 
@@ -70,12 +66,11 @@ var responseAppearanceRefresh = {
70
66
  refresh: {
71
67
  fill: 'surfacePrimary',
72
68
  titleTextColor: 'surfaceTextPrimary',
69
+ titleTextSize: 'xxl',
73
70
  labelTextColor: 'surfaceTextPrimary',
74
- primaryButtonAppearance: 'accent sizeXXL',
71
+ descTextSize: 'm',
72
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
75
73
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
76
- svgFill: 'surfaceTertiary',
77
- SvgImage: index.resposeIcon.Refresh,
78
- svgPathFill: 'surfaceItemQuaternary',
79
74
  },
80
75
  };
81
76
 
@@ -83,12 +78,11 @@ var responseAppearanceError = {
83
78
  error: {
84
79
  fill: 'surfacePrimary',
85
80
  titleTextColor: 'surfaceTextPrimary',
81
+ titleTextSize: 'xxl',
86
82
  labelTextColor: 'surfaceTextPrimary',
87
- primaryButtonAppearance: 'error sizeXXL',
88
- secondaryButtonAppearance: 'sizeXXL surfaceSecondary',
89
- svgFill: 'errorPrimary',
90
- SvgImage: index.resposeIcon.Error,
91
- svgPathFill: 'accentItemPrimary',
83
+ descTextSize: 'm',
84
+ primaryButtonAppearance: 'errorPrimary sizeXXL',
85
+ secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
92
86
  },
93
87
  };
94
88
 
@@ -96,12 +90,11 @@ var responseAppearanceSuccess = {
96
90
  success: {
97
91
  fill: 'surfacePrimary',
98
92
  titleTextColor: 'surfaceTextPrimary',
93
+ titleTextSize: 'xxl',
99
94
  labelTextColor: 'surfaceTextPrimary',
95
+ descTextSize: 'm',
100
96
  primaryButtonAppearance: 'accentPrimary sizeXXL',
101
97
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
102
- svgFill: 'accentPrimary',
103
- SvgImage: index.resposeIcon.Success,
104
- svgPathFill: 'accentItemPrimary',
105
98
  },
106
99
  };
107
100
 
@@ -109,12 +102,11 @@ var responseAppearanceUnableLoadData = {
109
102
  unableLoadData: {
110
103
  fill: 'surfacePrimary',
111
104
  titleTextColor: 'surfaceTextPrimary',
105
+ titleTextSize: 'xxl',
112
106
  labelTextColor: 'surfaceTextPrimary',
113
- primaryButtonAppearance: 'accent sizeXXL',
107
+ descTextSize: 'm',
108
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
114
109
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
115
- svgFill: 'surfaceTertiary',
116
- SvgImage: index.resposeIcon.UnableLoadData,
117
- svgPathFill: 'surfaceItemQuaternary',
118
110
  },
119
111
  };
120
112
 
@@ -122,12 +114,11 @@ var responseAppearanceWarning = {
122
114
  warning: {
123
115
  fill: 'surfacePrimary',
124
116
  titleTextColor: 'surfaceTextPrimary',
117
+ titleTextSize: 'xxl',
125
118
  labelTextColor: 'surfaceTextPrimary',
126
- primaryButtonAppearance: 'warning sizeXXL',
127
- secondaryButtonAppearance: 'sizeXXL surfaceSecondary',
128
- svgFill: 'warningPrimary',
129
- SvgImage: index.resposeIcon.Warning,
130
- svgPathFill: 'accentItemPrimary',
119
+ descTextSize: 'm',
120
+ primaryButtonAppearance: 'warningPrimary sizeXXL',
121
+ secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
131
122
  },
132
123
  };
133
124
 
@@ -10,7 +10,7 @@ var CreatableSelect = require('react-select/creatable');
10
10
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var Text = require('../../Text_cjs_DPhKj3wf.js');
12
12
  var Group = require('../../Group_cjs_Cwt0gWk4.js');
13
- var Divider = require('../../Divider_cjs_DzFVtGkF.js');
13
+ var Divider = require('../../Divider_cjs_DhqcldLH.js');
14
14
  require('../hooks/useStyles/useStyles.js');
15
15
  require('lodash/camelCase');
16
16
  require('lodash/maxBy');
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var _default = require('@itcase/icons/default');
4
+
5
+ var tabListMock = {
6
+ tabList: [
7
+ { key: 1, label: 'Tab 1', isActive: true },
8
+ { key: 2, label: 'Tab 2', isActive: false },
9
+ { key: 3, label: 'Tab 3', badgeValue: 3, isActive: false },
10
+ { key: 4, label: 'Tab 4', icon: _default.icon16.Placeholder, isActive: false },
11
+ ],
12
+ };
13
+
14
+ exports.tabListMock = tabListMock;
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
9
  var Tooltip = require('../../Tooltip_cjs_CaocDcQ5.js');
10
- var Divider = require('../../Divider_cjs_DzFVtGkF.js');
10
+ var Divider = require('../../Divider_cjs_DhqcldLH.js');
11
11
  var Link = require('../../Link_cjs_DbRGq2Yk.js');
12
12
  var Text = require('../../Text_cjs_DPhKj3wf.js');
13
13
  require('lodash/camelCase');
@@ -24,13 +24,67 @@ require('lodash/maxBy');
24
24
  require('../hooks/useStyles/styleAttributes.js');
25
25
  require('react-inlinesvg');
26
26
 
27
+ var tabAppearanceError = {
28
+ errorPrimary: {
29
+ fill: 'errorPrimary',
30
+ fillDisabled: 'errorDisabled',
31
+ labelColor: 'errorTextPrimary',
32
+ labelColorActive: 'errorTextAccent',
33
+ labelColorDisabled: 'errorTextDisabled',
34
+ dividerFillDisabled: 'errorDisabled',
35
+ badgeAppearance: 'error',
36
+ dividerFill: 'accentPrimary',
37
+ },
38
+ };
39
+
27
40
  var tabAppearanceSize = {
41
+ sizeXXL: {
42
+ size: 'xxl',
43
+ labelTextSize: 's',
44
+ badgeSize: 'xs',
45
+ badgeTextSize: 'xs',
46
+ dividerSize: 's',
47
+ },
48
+ sizeXL: {
49
+ size: 'xl',
50
+ labelTextSize: 's',
51
+ badgeSize: 'xs',
52
+ badgeTextSize: 'xs',
53
+ dividerSize: 's',
54
+ },
28
55
  sizeL: {
29
56
  size: 'l',
30
57
  labelTextSize: 's',
58
+ badgeSize: 'xs',
59
+ badgeTextSize: 'xs',
31
60
  dividerSize: 's',
61
+ },
62
+ sizeM: {
63
+ size: 'm',
64
+ labelTextSize: 's',
32
65
  badgeSize: 'xs',
66
+ badgeTextSize: 'xs',
67
+ dividerSize: 's',
68
+ },
69
+ sizeS: {
70
+ size: 's',
71
+ labelTextSize: 's',
72
+ badgeSize: 'xs',
73
+ badgeTextSize: 'xs',
74
+ dividerSize: 's',
75
+ },
76
+ sizeXS: {
77
+ size: 'xs',
78
+ labelTextSize: 'xs',
79
+ badgeSize: 'xs',
80
+ badgeTextSize: 'xs',
81
+ },
82
+ sizeXXS: {
83
+ size: 'xxs',
84
+ labelTextSize: 'xs',
85
+ badgeSize: 'xxs',
33
86
  badgeTextSize: 'xxs',
87
+ dividerSize: 's',
34
88
  },
35
89
  };
36
90
 
@@ -40,68 +94,99 @@ var tabAppearanceStyle = {
40
94
  },
41
95
  ghost: {
42
96
  fill: 'none',
43
- borderWidth: '0',
97
+ borderColor: 'none',
44
98
  },
45
99
  outlined: {
46
100
  fill: 'none',
47
101
  },
48
102
  solid: {
49
- borderWidth: '0',
103
+ borderColor: 'none',
104
+ },
105
+ };
106
+
107
+ var tabAppearanceSuccess = {
108
+ successPrimary: {
109
+ fill: 'successPrimary',
110
+ fillDisabled: 'successDisabled',
111
+ labelColor: 'successTextPrimary',
112
+ labelColorActive: 'successTextAccent',
113
+ labelColorDisabled: 'successTextDisabled',
114
+ dividerFillDisabled: 'successDisabled',
115
+ badgeAppearance: 'success',
116
+ dividerFill: 'accentPrimary',
50
117
  },
51
118
  };
52
119
 
53
120
  var tabAppearanceSurface = {
54
121
  surfacePrimary: {
55
122
  fill: 'surfacePrimary',
123
+ fillActive: 'surfacePrimary',
124
+ fillActiveHover: 'surfaceSecondary',
56
125
  fillDisabled: 'surfaceDisabled',
57
- labelColor: 'surfaceTextPrimary',
58
- labelColorActive: 'surfaceTextAccent',
59
- labelColorDisabled: 'surfaceTextDisabled',
126
+ fillHover: 'surfaceSecondary',
127
+ labelTextColor: 'surfaceTextPrimary',
128
+ labelTextColorActive: 'surfaceTextAccent',
129
+ borderColor: 'surfaceBorderPrimary',
60
130
  dividerFillDisabled: 'accentDisabled',
61
- dividerFill: 'surfaceTertiary',
62
- dividerFillActive: 'accentPrimary',
63
- dividerFillHover: 'accentPrimary',
64
131
  badgeAppearance: 'accentPrimary',
65
- },
66
- surfaceQuaternary: {
67
- fill: 'surfaceQuaternary',
68
- fillDisabled: 'surfaceDisabled',
69
- fillHover: 'surfaceTertiaryHover',
70
- labelColor: 'surfaceTextInverse',
71
- labelColorActive: 'surfaceTextInverse',
72
- labelColorDisabled: 'surfaceTextDisabled',
73
- dividerFillDisabled: 'accentDisabled',
74
- dividerFill: 'surfaceTertiary',
75
132
  dividerFillActive: 'accentPrimary',
76
- dividerFillHover: 'surfaceTertiary',
133
+ iconFillIcon: 'surfaceItemPrimary',
77
134
  },
78
135
  surfaceSecondary: {
79
136
  fill: 'surfaceSecondary',
137
+ fillActive: 'surfaceSecondary',
138
+ fillActiveHover: 'surfaceTertiary',
80
139
  fillDisabled: 'surfaceDisabled',
81
- fillHover: 'surfaceSecondaryHover',
82
- labelColor: 'surfaceTextPrimary',
83
- labelColorActive: 'surfaceTextAccent',
84
- labelColorDisabled: 'surfaceTextDisabled',
140
+ fillHover: 'surfaceTertiary',
141
+ labelTextColor: 'surfaceTextPrimary',
142
+ labelTextColorActive: 'surfaceTextAccent',
85
143
  dividerFillDisabled: 'accentDisabled',
86
- dividerFill: 'surfaceTertiary',
144
+ badgeAppearance: 'accentPrimary',
87
145
  dividerFillActive: 'accentPrimary',
88
- dividerFillHover: 'surfaceTertiary',
146
+ iconFillIcon: 'surfaceItemPrimary',
89
147
  },
90
148
  surfaceTertiary: {
91
149
  fill: 'surfaceTertiary',
150
+ fillActive: 'surfaceSecondary',
151
+ fillActiveHover: 'surfaceTertiary',
92
152
  fillDisabled: 'surfaceDisabled',
93
- fillHover: 'surfaceTertiaryHover',
94
- labelColor: 'surfaceTextPrimary',
95
- labelColorActive: 'surfaceTextAccent',
96
- labelColorDisabled: 'surfaceTextDisabled',
153
+ fillHover: 'surfaceSecondary',
154
+ labelTextColor: 'surfaceTextPrimary',
155
+ labelTextColorActive: 'surfaceTextAccent',
97
156
  dividerFillDisabled: 'accentDisabled',
98
- dividerFill: 'surfaceTertiary',
157
+ badgeAppearance: 'accentPrimary',
99
158
  dividerFillActive: 'accentPrimary',
100
- dividerFillHover: 'surfaceTertiary',
159
+ iconFillIcon: 'surfaceItemPrimary',
160
+ },
161
+ surfaceQuaternary: {
162
+ fill: 'surfaceQuaternary',
163
+ fillActive: 'accentPrimary',
164
+ fillActiveHover: 'surfaceTertiary',
165
+ fillDisabled: 'surfaceDisabled',
166
+ fillHover: 'surfaceQuaternary',
167
+ labelTextColor: 'surfaceTextInverse',
168
+ labelTextColorActive: 'surfaceTextInverse',
169
+ dividerFillDisabled: 'accentDisabled',
170
+ badgeAppearance: 'accentPrimary',
171
+ dividerFillActive: 'accentPrimary',
172
+ iconFillIcon: 'surfaceItemPrimary',
173
+ },
174
+ };
175
+
176
+ var tabAppearanceWarning = {
177
+ warningPrimary: {
178
+ fill: 'warningPrimary',
179
+ fillDisabled: 'warningDisabled',
180
+ labelColor: 'warningTextPrimary',
181
+ labelColorActive: 'warningTextAccent',
182
+ labelColorDisabled: 'warningTextDisabled',
183
+ dividerFillDisabled: 'warningDisabled',
184
+ badgeAppearance: 'warning',
185
+ dividerFill: 'accentPrimary',
101
186
  },
102
187
  };
103
188
 
104
- var tabAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
189
+ var tabAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tabAppearanceWarning), tabAppearanceError), tabAppearanceSuccess), tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
105
190
 
106
191
  var tabConfig = {
107
192
  appearance: tabAppearance,
@@ -110,27 +195,36 @@ var tabConfig = {
110
195
  },
111
196
  };
112
197
  function Tab(props) {
113
- 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;
198
+ 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;
114
199
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
115
200
  var _a;
116
201
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
117
202
  }, {});
118
203
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
119
- 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;
204
+ 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;
120
205
  // @ts-expect-error
121
206
  var tab = useStyles.useStyles(props).styles;
122
- return (jsxRuntime.jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', !isDisabled
207
+ return (jsxRuntime.jsx("div", { className: clsx('tab', className, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', !isActive
123
208
  ? fillClass && "fill_".concat(fillClass)
124
- : 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: jsxRuntime.jsx(Link.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: jsxRuntime.jsxs(React.Fragment, { children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [label && (jsxRuntime.jsx(Text.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 && (jsxRuntime.jsx(Tooltip.Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }), jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: isDisabled ? dividerFillDisabled : dividerFill, fillActive: isActive && dividerFillActive, fillActiveHover: dividerFillActiveHover, fillHover: isHover && dividerFillHover, zIndex: "1" })] })), after] }) }) }));
209
+ : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
210
+ ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
211
+ : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isActive
212
+ ? borderColorClass && "border-color_".concat(borderColorClass)
213
+ : borderColorActiveClass &&
214
+ "border-color_active_".concat(borderColorActiveClass), !isActive
215
+ ? borderColorHoverClass &&
216
+ "border-color_hover_".concat(borderColorHoverClass)
217
+ : borderColorActiveHoverClass &&
218
+ "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: jsxRuntime.jsxs(Link.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 || (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs("div", { className: "tab__wrapper", children: [label && (jsxRuntime.jsx(Text.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 && (jsxRuntime.jsx(Tooltip.Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
125
219
  }
126
220
 
127
221
  function TabGroup(props) {
128
- var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set, children = props.children;
222
+ 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;
129
223
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
130
224
  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;
131
225
  // @ts-expect-error
132
226
  var _a = useStyles.useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
133
- return (jsxRuntime.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 ? (jsxRuntime.jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
227
+ return (jsxRuntime.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 ? (jsxRuntime.jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key)); }), children] })) : (jsxRuntime.jsxs(React.Fragment, { children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsxRuntime.jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })) }));
134
228
  }
135
229
 
136
230
  exports.Tab = Tab;
@@ -6,7 +6,7 @@ import castArray from 'lodash/castArray';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
8
  import { icon16 } from '@itcase/icons/default';
9
- import { D as Divider } from '../Divider_es_BdU9qjKa.js';
9
+ import { D as Divider } from '../Divider_es_BEYLRagS.js';
10
10
  import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
11
11
  import { T as Text } from '../Text_es_BRb3qqKM.js';
12
12
  import 'lodash/camelCase';
@@ -0,0 +1,43 @@
1
+ import { icon16 } from '@itcase/icons/default';
2
+
3
+ var breadcrumbsListMock = {
4
+ breadcrumbsList: [
5
+ {
6
+ id: '1',
7
+ key: 1,
8
+ text: 'Text 123',
9
+ href: '/',
10
+ icon: icon16.Placeholder,
11
+ },
12
+ {
13
+ id: '2',
14
+ key: 2,
15
+ text: 'Text 123',
16
+ href: '/',
17
+ icon: icon16.Placeholder,
18
+ },
19
+ {
20
+ id: '3',
21
+ key: 3,
22
+ text: 'Text 123',
23
+ href: '/',
24
+ icon: icon16.Placeholder,
25
+ },
26
+ {
27
+ id: '4',
28
+ key: 4,
29
+ text: 'Text 123',
30
+ href: '/',
31
+ icon: icon16.Placeholder,
32
+ },
33
+ {
34
+ id: '5',
35
+ key: 5,
36
+ text: 'Text 123',
37
+ href: '/',
38
+ icon: icon16.Placeholder,
39
+ },
40
+ ],
41
+ };
42
+
43
+ export { breadcrumbsListMock };