@itcase/ui 1.8.22 → 1.8.24

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 (150) hide show
  1. package/dist/{Avatar_cjs_DSXs1Yrg.js → Avatar_cjs_D84VawE9.js} +1 -1
  2. package/dist/{Avatar_es_DByUaJL6.js → Avatar_es_CUnfNViT.js} +1 -1
  3. package/dist/{Button_cjs_CukkOE-v.js → Button_cjs_CYUpbdMO.js} +138 -49
  4. package/dist/{Button_es_DXcCJuNX.js → Button_es_Dp6yFZgn.js} +138 -49
  5. package/dist/{ChipsGroup_cjs_9wrMZrzL.js → ChipsGroup_cjs_CTh6644i.js} +1 -1
  6. package/dist/{ChipsGroup_es_CjGZ-ulT.js → ChipsGroup_es_BFxBhYNB.js} +1 -1
  7. package/dist/{DatePicker_cjs_BriuTQqj.js → DatePicker_cjs_DamcZFbX.js} +3 -3
  8. package/dist/{DatePicker_es_DzY_fVii.js → DatePicker_es_Bm_onmmb.js} +3 -3
  9. package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
  10. package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
  11. package/dist/{DropdownItem_cjs_DY61IdLK.js → DropdownItem_cjs_B_7anyaJ.js} +2 -2
  12. package/dist/{DropdownItem_es_D8mY9vFZ.js → DropdownItem_es_B4EZYdJA.js} +2 -2
  13. package/dist/{Label_cjs_CnwET26s.js → Label_cjs_ByGAWJcj.js} +169 -29
  14. package/dist/{Label_es_Dc18d1gY.js → Label_es_BtwZ3a2V.js} +169 -29
  15. package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
  16. package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
  17. package/dist/{Tooltip_cjs_PkuRdzzy.js → Tooltip_cjs_CaocDcQ5.js} +82 -24
  18. package/dist/{Tooltip_es_BaGfb-qC.js → Tooltip_es_D1w1s33u.js} +82 -24
  19. package/dist/cjs/components/Accordion.js +2 -2
  20. package/dist/cjs/components/Avatar.js +2 -2
  21. package/dist/cjs/components/AvatarStack.js +2 -2
  22. package/dist/cjs/components/Badge.js +1 -1
  23. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
  24. package/dist/cjs/components/Breadcrumbs.js +47 -58
  25. package/dist/cjs/components/Button.js +3 -3
  26. package/dist/cjs/components/Cell.js +2 -2
  27. package/dist/cjs/components/Chips.js +2 -2
  28. package/dist/cjs/components/Choice.js +2 -2
  29. package/dist/cjs/components/CookiesWarning.js +3 -3
  30. package/dist/cjs/components/DatePeriod.js +6 -6
  31. package/dist/cjs/components/DatePicker.js +5 -5
  32. package/dist/cjs/components/Divider.js +1 -1
  33. package/dist/cjs/components/Dropdown.js +3 -3
  34. package/dist/cjs/components/Icon.js +1 -1
  35. package/dist/cjs/components/InputPassword.js +1 -1
  36. package/dist/cjs/components/Label.js +2 -2
  37. package/dist/cjs/components/Loader.js +1 -1
  38. package/dist/cjs/components/MenuItem.js +1 -1
  39. package/dist/cjs/components/Modal.js +2 -2
  40. package/dist/cjs/components/ModalSheetBottom.js +19 -5
  41. package/dist/cjs/components/Pagination.js +3 -3
  42. package/dist/cjs/components/Response.js +28 -37
  43. package/dist/cjs/components/Search.js +1 -1
  44. package/dist/cjs/components/Select.js +2 -2
  45. package/dist/cjs/components/Swiper.js +1 -1
  46. package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
  47. package/dist/cjs/components/Tab.js +134 -40
  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 +2 -2
  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 +43 -0
  56. package/dist/components/Breadcrumbs.js +47 -58
  57. package/dist/components/Button.js +3 -3
  58. package/dist/components/Cell.js +2 -2
  59. package/dist/components/Chips.js +2 -2
  60. package/dist/components/Choice.js +2 -2
  61. package/dist/components/CookiesWarning.js +3 -3
  62. package/dist/components/DatePeriod.js +6 -6
  63. package/dist/components/DatePicker.js +5 -5
  64. package/dist/components/Divider.js +1 -1
  65. package/dist/components/Dropdown.js +3 -3
  66. package/dist/components/Icon.js +1 -1
  67. package/dist/components/InputPassword.js +1 -1
  68. package/dist/components/Label.js +2 -2
  69. package/dist/components/Loader.js +1 -1
  70. package/dist/components/MenuItem.js +1 -1
  71. package/dist/components/Modal.js +2 -2
  72. package/dist/components/ModalSheetBottom.js +19 -5
  73. package/dist/components/Pagination.js +3 -3
  74. package/dist/components/Response.js +28 -37
  75. package/dist/components/Search.js +1 -1
  76. package/dist/components/Select.js +2 -2
  77. package/dist/components/Swiper.js +1 -1
  78. package/dist/components/Tab/stories/__mock__.js +12 -0
  79. package/dist/components/Tab.js +134 -40
  80. package/dist/components/Tile.js +1 -1
  81. package/dist/components/Title.js +1 -1
  82. package/dist/components/Tooltip.js +1 -1
  83. package/dist/css/components/Badge/Badge.css +3 -3
  84. package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
  85. package/dist/css/components/Button/Button.css +4 -4
  86. package/dist/css/components/Label/Label.css +10 -9
  87. package/dist/css/components/Loader/Loader.css +21 -2
  88. package/dist/css/styles/border-color/border-color.css +19 -0
  89. package/dist/css/styles/border-color/border-color_active.css +38 -0
  90. package/dist/css/styles/border-color/border-color_focus.css +25 -1
  91. package/dist/css/styles/border-color/border-color_hover.css +32 -0
  92. package/dist/stories/Plsyground.mdx +1 -3
  93. package/dist/types/components/Badge/appearance/badgeAccent.d.ts +13 -1
  94. package/dist/types/components/Badge/appearance/badgeDanger.d.ts +7 -1
  95. package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +6 -1
  96. package/dist/types/components/Badge/appearance/badgeError.d.ts +7 -2
  97. package/dist/types/components/Badge/appearance/badgeInfo.d.ts +1 -3
  98. package/dist/types/components/Badge/appearance/badgePrimary.d.ts +7 -1
  99. package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +7 -1
  100. package/dist/types/components/Badge/appearance/badgeStyle.d.ts +5 -7
  101. package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +7 -1
  102. package/dist/types/components/Badge/appearance/badgeWarning.d.ts +7 -1
  103. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
  104. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
  105. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
  106. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
  107. package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
  108. package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
  109. package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
  110. package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
  111. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
  112. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
  113. package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
  114. package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
  115. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
  116. package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
  117. package/dist/types/components/Button/appearance/buttonWarning.d.ts +14 -2
  118. package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
  119. package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
  120. package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
  121. package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
  122. package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
  123. package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
  124. package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
  125. package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
  126. package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
  127. package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
  128. package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
  129. package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
  130. package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
  131. package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
  132. package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
  133. package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
  134. package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +2 -1
  135. package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
  136. package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
  137. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
  138. package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
  139. package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
  140. package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
  141. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
  142. package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
  143. package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
  144. package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
  145. package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
  146. package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
  147. package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
  148. package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
  149. package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
  150. package/package.json +10 -12
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
- var Tooltip = require('./Tooltip_cjs_PkuRdzzy.js');
8
+ var Tooltip = require('./Tooltip_cjs_CaocDcQ5.js');
9
9
  var Image = require('./Image_cjs_CCWqbNn4.js');
10
10
  var Text = require('./Text_cjs_DPhKj3wf.js');
11
11
 
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon } from './Tooltip_es_BaGfb-qC.js';
6
+ import { I as Icon } from './Tooltip_es_D1w1s33u.js';
7
7
  import { I as Image } from './Image_es_DZUVp0FS.js';
8
8
  import { T as Text } from './Text_es_BRb3qqKM.js';
9
9
 
@@ -4,9 +4,9 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
- var Tooltip = require('./Tooltip_cjs_PkuRdzzy.js');
7
+ var Tooltip = require('./Tooltip_cjs_CaocDcQ5.js');
8
8
  var Link = require('./Link_cjs_DbRGq2Yk.js');
9
- var Loader = require('./Loader_cjs_3VRzFLI2.js');
9
+ var Loader = require('./Loader_cjs___VikiqS.js');
10
10
  var Text = require('./Text_cjs_DPhKj3wf.js');
11
11
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
12
12
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
@@ -21,8 +21,7 @@ var buttonAppearanceAccent = {
21
21
  iconAfterFillIcon: 'accentItemPrimary',
22
22
  iconBeforeFillIcon: 'accentItemPrimary',
23
23
  iconFillIcon: 'accentItemPrimary',
24
- loaderFill: 'accentPrimary',
25
- loaderItemFill: 'accentItemPrimary',
24
+ loaderAppearance: 'accentPrimary',
26
25
  },
27
26
  accentPrimary: {
28
27
  fill: 'accentPrimary',
@@ -32,8 +31,8 @@ var buttonAppearanceAccent = {
32
31
  borderColor: 'accentBorderPrimary',
33
32
  iconAfterFillIcon: 'accentItemPrimary',
34
33
  iconBeforeFillIcon: 'accentItemPrimary',
35
- loaderFill: 'accentPrimary',
36
- loaderItemFill: 'accentItemPrimary',
34
+ iconFillIcon: 'accentItemPrimary',
35
+ loaderAppearance: 'accentPrimary',
37
36
  },
38
37
  accentSecondary: {
39
38
  fill: 'accentPrimary',
@@ -41,8 +40,10 @@ var buttonAppearanceAccent = {
41
40
  labelTextColor: 'accentTextSecondary',
42
41
  labelTextColorHover: 'accentTextSecondary',
43
42
  borderColor: 'accentBorderPrimary',
44
- loaderFill: 'accentPrimary',
45
- loaderItemFill: 'accentItemPrimary',
43
+ iconAfterFillIcon: 'accentItemPrimary',
44
+ iconBeforeFillIcon: 'accentItemPrimary',
45
+ iconFillIcon: 'accentItemPrimary',
46
+ loaderAppearance: 'accentPrimary',
46
47
  },
47
48
  };
48
49
 
@@ -52,16 +53,20 @@ var buttonAppearanceDanger = {
52
53
  fillHover: 'dangerHover',
53
54
  labelTextColor: 'dangerTextSecondary',
54
55
  labelTextColorHover: 'dangerTextSecondary',
55
- loaderFill: 'dangerPrimary',
56
- loaderItemFill: 'dangerItemPrimary',
56
+ iconAfterFillIcon: 'dangerItemPrimary',
57
+ iconBeforeFillIcon: 'dangerItemPrimary',
58
+ iconFillIcon: 'dangerItemPrimary',
59
+ loaderAppearance: 'dangerPrimary',
57
60
  },
58
61
  dangerPrimary: {
59
62
  fill: 'dangerPrimary',
60
63
  fillHover: 'dangerHover',
61
64
  labelTextColor: 'dangerTextPrimary',
62
65
  labelTextColorHover: 'dangerTextPrimary',
63
- loaderFill: 'dangerPrimary',
64
- loaderItemFill: 'dangerItemPrimary',
66
+ iconAfterFillIcon: 'dangerItemPrimary',
67
+ iconBeforeFillIcon: 'dangerItemPrimary',
68
+ iconFillIcon: 'dangerItemPrimary',
69
+ loaderAppearance: 'dangerPrimary',
65
70
  },
66
71
  };
67
72
 
@@ -71,29 +76,56 @@ var buttonAppearanceError = {
71
76
  fillHover: 'errorHover',
72
77
  labelTextColor: 'errorTextPrimary',
73
78
  labelTextColorHover: 'errorTextPrimary',
74
- loaderFill: 'errorPrimary',
75
- loaderItemFill: 'errorItemPrimary',
79
+ iconAfterFillIcon: 'errorItemPrimary',
80
+ iconBeforeFillIcon: 'errorItemPrimary',
81
+ iconFillIcon: 'errorItemPrimary',
82
+ loaderAppearance: 'errorPrimary',
83
+ },
84
+ errorPrimary: {
85
+ fill: 'errorPrimary',
86
+ fillHover: 'errorHover',
87
+ labelTextColor: 'errorTextPrimary',
88
+ labelTextColorHover: 'errorTextPrimary',
89
+ iconAfterFillIcon: 'errorItemPrimary',
90
+ iconBeforeFillIcon: 'errorItemPrimary',
91
+ iconFillIcon: 'errorItemPrimary',
92
+ loaderAppearance: 'errorPrimary',
76
93
  },
77
94
  };
78
95
 
79
96
  var buttonAppearanceInfo = {
80
97
  info: {
81
- fill: 'accentPrimary',
82
- fillHover: 'accentPrimaryHover',
83
- labelTextColor: 'accentTextPrimary',
84
- labelTextColorHover: 'accentTextPrimary',
85
- borderColor: 'accentBorderPrimary',
86
- loaderFill: 'accentPrimary',
87
- loaderItemFill: 'accentItemPrimary',
98
+ fill: 'infoPrimary',
99
+ fillHover: 'infoPrimaryHover',
100
+ labelTextColor: 'infoTextPrimary',
101
+ labelTextColorHover: 'infoTextPrimary',
102
+ borderColor: 'infoBorderPrimary',
103
+ iconAfterFillIcon: 'infoItemPrimary',
104
+ iconBeforeFillIcon: 'infoItemPrimary',
105
+ iconFillIcon: 'infoItemPrimary',
106
+ loaderAppearance: 'infoPrimary',
107
+ },
108
+ infoPrimary: {
109
+ fill: 'infoPrimary',
110
+ fillHover: 'infoPrimaryHover',
111
+ labelTextColor: 'infoTextPrimary',
112
+ labelTextColorHover: 'infoTextPrimary',
113
+ borderColor: 'infoBorderPrimary',
114
+ iconAfterFillIcon: 'infoItemPrimary',
115
+ iconBeforeFillIcon: 'infoItemPrimary',
116
+ iconFillIcon: 'infoItemPrimary',
117
+ loaderAppearance: 'infoPrimary',
88
118
  },
89
119
  infoSecondary: {
90
- fill: 'accentPrimary',
91
- fillHover: 'accentPrimaryHover',
92
- labelTextColor: 'accentTextSecondary',
93
- labelTextColorHover: 'accentTextSecondary',
94
- borderColor: 'accentBorderPrimary',
95
- loaderFill: 'accentPrimary',
96
- loaderItemFill: 'accentItemPrimary',
120
+ fill: 'infoPrimary',
121
+ fillHover: 'infoPrimaryHover',
122
+ labelTextColor: 'infoTextSecondary',
123
+ labelTextColorHover: 'infoTextSecondary',
124
+ borderColor: 'infoBorderPrimary',
125
+ iconAfterFillIcon: 'infoItemPrimary',
126
+ iconBeforeFillIcon: 'infoItemPrimary',
127
+ iconFillIcon: 'infoItemPrimary',
128
+ loaderAppearance: 'infoPrimary',
97
129
  },
98
130
  };
99
131
 
@@ -102,6 +134,19 @@ var buttonAppearancePrimary = {
102
134
  fill: 'primaryPrimary',
103
135
  fillHover: 'primaryPrimaryHover',
104
136
  labelTextColor: 'primaryTextPrimary',
137
+ iconAfterFillIcon: 'primaryItemPrimary',
138
+ iconBeforeFillIcon: 'primaryItemPrimary',
139
+ iconFillIcon: 'primaryItemPrimary',
140
+ loaderAppearance: 'primaryPrimary',
141
+ },
142
+ primaryPrimary: {
143
+ fill: 'primaryPrimary',
144
+ fillHover: 'primaryPrimaryHover',
145
+ labelTextColor: 'primaryTextPrimary',
146
+ iconAfterFillIcon: 'primaryItemPrimary',
147
+ iconBeforeFillIcon: 'primaryItemPrimary',
148
+ iconFillIcon: 'primaryItemPrimary',
149
+ loaderAppearance: 'primaryPrimary',
105
150
  },
106
151
  };
107
152
 
@@ -110,6 +155,19 @@ var buttonAppearanceSecondary = {
110
155
  fill: 'secondaryPrimary',
111
156
  fillHover: 'secondaryPrimaryHover',
112
157
  labelTextColor: 'secondaryTextPrimary',
158
+ iconAfterFillIcon: 'secondaryItemPrimary',
159
+ iconBeforeFillIcon: 'secondaryItemPrimary',
160
+ iconFillIcon: 'secondaryItemPrimary',
161
+ loaderAppearance: 'secondaryPrimary',
162
+ },
163
+ secondaryPrimary: {
164
+ fill: 'secondaryPrimary',
165
+ fillHover: 'secondaryPrimaryHover',
166
+ labelTextColor: 'secondaryTextPrimary',
167
+ iconAfterFillIcon: 'secondaryItemPrimary',
168
+ iconBeforeFillIcon: 'secondaryItemPrimary',
169
+ iconFillIcon: 'secondaryItemPrimary',
170
+ loaderAppearance: 'secondaryPrimary',
113
171
  },
114
172
  };
115
173
 
@@ -121,6 +179,7 @@ var buttonAppearanceSize = {
121
179
  iconAfterSize: 24,
122
180
  iconBeforeFillSize: 24,
123
181
  iconBeforeSize: 24,
182
+ loaderSize: 'l',
124
183
  },
125
184
  sizeXL: {
126
185
  size: 'xl',
@@ -129,6 +188,7 @@ var buttonAppearanceSize = {
129
188
  iconAfterSize: 24,
130
189
  iconBeforeFillSize: 24,
131
190
  iconBeforeSize: 24,
191
+ loaderSize: 'l',
132
192
  },
133
193
  sizeL: {
134
194
  size: 'l',
@@ -137,6 +197,7 @@ var buttonAppearanceSize = {
137
197
  iconAfterSize: 24,
138
198
  iconBeforeFillSize: 24,
139
199
  iconBeforeSize: 24,
200
+ loaderSize: 'l',
140
201
  },
141
202
  sizeM: {
142
203
  size: 'm',
@@ -145,6 +206,7 @@ var buttonAppearanceSize = {
145
206
  iconAfterSize: 24,
146
207
  iconBeforeFillSize: 24,
147
208
  iconBeforeSize: 24,
209
+ loaderSize: 'l',
148
210
  },
149
211
  sizeS: {
150
212
  size: 's',
@@ -153,6 +215,7 @@ var buttonAppearanceSize = {
153
215
  iconAfterSize: 20,
154
216
  iconBeforeFillSize: 20,
155
217
  iconBeforeSize: 20,
218
+ loaderSize: 'l',
156
219
  },
157
220
  sizeXS: {
158
221
  size: 'xs',
@@ -161,6 +224,7 @@ var buttonAppearanceSize = {
161
224
  iconAfterSize: 16,
162
225
  iconBeforeFillSize: 16,
163
226
  iconBeforeSize: 16,
227
+ loaderSize: 'l',
164
228
  },
165
229
  sizeXXS: {
166
230
  size: 'xxs',
@@ -169,6 +233,7 @@ var buttonAppearanceSize = {
169
233
  iconAfterSize: 14,
170
234
  iconBeforeFillSize: 14,
171
235
  iconBeforeSize: 14,
236
+ loaderSize: 'l',
172
237
  },
173
238
  };
174
239
 
@@ -176,12 +241,10 @@ var buttonAppearanceStyle = {
176
241
  full: {},
177
242
  ghost: {
178
243
  fill: 'none',
179
- fillHover: 'none',
180
244
  borderColor: '0',
181
245
  },
182
246
  outlined: {
183
247
  fill: 'none',
184
- fillHover: 'none',
185
248
  },
186
249
  solid: {
187
250
  borderColor: '0',
@@ -192,10 +255,22 @@ var buttonAppearanceSuccess = {
192
255
  success: {
193
256
  fill: 'successPrimary',
194
257
  fillHover: 'successHover',
195
- labelTextColor: 'successTextSecondary',
196
- labelTextColorHover: 'successTextSecondary',
197
- loaderFill: 'successPrimary',
198
- loaderItemFill: 'successItemPrimary',
258
+ labelTextColor: 'successTextPrimary',
259
+ labelTextColorHover: 'successTextPrimary',
260
+ iconAfterFillIcon: 'successItemPrimary',
261
+ iconBeforeFillIcon: 'successItemPrimary',
262
+ iconFillIcon: 'successItemPrimary',
263
+ loaderAppearance: 'successPrimary',
264
+ },
265
+ successPrimary: {
266
+ fill: 'successPrimary',
267
+ fillHover: 'successHover',
268
+ labelTextColor: 'successTextPrimary',
269
+ labelTextColorHover: 'successTextPrimary',
270
+ iconAfterFillIcon: 'successItemPrimary',
271
+ iconBeforeFillIcon: 'successItemPrimary',
272
+ iconFillIcon: 'successItemPrimary',
273
+ loaderAppearance: 'successPrimary',
199
274
  },
200
275
  };
201
276
 
@@ -204,25 +279,28 @@ var buttonAppearanceSurface = {
204
279
  fill: 'surfacePrimary',
205
280
  fillHover: 'surfaceSecondary',
206
281
  labelTextColor: 'surfaceTextPrimary',
282
+ iconAfterFillIcon: 'surfaceItemPrimary',
283
+ iconBeforeFillIcon: 'surfaceItemPrimary',
207
284
  iconFillIcon: 'surfaceItemPrimary',
285
+ loaderAppearance: 'surfacePrimary',
208
286
  },
209
287
  surfaceSecondary: {
210
288
  fill: 'surfaceSecondary',
211
289
  fillHover: 'surfaceSecondaryHover',
212
290
  labelTextColor: 'surfaceTextPrimary',
213
- loaderFill: 'surfaceSecondary',
214
- loaderItemFill: 'surfaceItemPrimary',
291
+ iconAfterFillIcon: 'surfaceItemPrimary',
292
+ iconBeforeFillIcon: 'surfaceItemPrimary',
293
+ iconFillIcon: 'surfaceItemPrimary',
294
+ loaderAppearance: 'surfacePrimary',
215
295
  },
216
296
  surfaceTertiary: {
217
297
  fill: 'surfaceTertiary',
218
298
  fillHover: 'surfaceTertiaryHover',
219
299
  labelTextColor: 'surfaceTextPrimary',
220
- },
221
- surfaceQuaternary: {
222
- fill: 'surfaceQuaternary',
223
- fillHover: 'surfaceHover',
224
- labelTextColor: 'surfaceTextPrimary',
225
- labelTextColorHover: 'surfaceTextHover',
300
+ iconAfterFillIcon: 'surfaceItemPrimary',
301
+ iconBeforeFillIcon: 'surfaceItemPrimary',
302
+ iconFillIcon: 'surfaceItemPrimary',
303
+ loaderAppearance: 'surfacePrimary',
226
304
  },
227
305
  };
228
306
 
@@ -230,10 +308,22 @@ var buttonAppearanceWarning = {
230
308
  warning: {
231
309
  fill: 'warningPrimary',
232
310
  fillHover: 'warningHover',
233
- labelTextColor: 'warningTextSecondary',
234
- labelTextColorHover: 'warningTextSecondary',
235
- loaderFill: 'warningPrimary',
236
- loaderItemFill: 'warningItemPrimary',
311
+ labelTextColor: 'warningTextPrimary',
312
+ labelTextColorHover: 'warningTextPrimary',
313
+ iconAfterFillIcon: 'warningItemPrimary',
314
+ iconBeforeFillIcon: 'warningItemPrimary',
315
+ iconFillIcon: 'warningItemPrimary',
316
+ loaderAppearance: 'warningPrimary',
317
+ },
318
+ warningPrimary: {
319
+ fill: 'warningPrimary',
320
+ fillHover: 'warningHover',
321
+ labelTextColor: 'warningTextPrimary',
322
+ labelTextColorHover: 'warningTextPrimary',
323
+ iconAfterFillIcon: 'warningItemPrimary',
324
+ iconBeforeFillIcon: 'warningItemPrimary',
325
+ iconFillIcon: 'warningItemPrimary',
326
+ loaderAppearance: 'warningPrimary',
237
327
  },
238
328
  };
239
329
 
@@ -252,12 +342,11 @@ var Button = React.forwardRef(function Button(props, ref) {
252
342
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = buttonConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
253
343
  }, {});
254
344
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
255
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, _c = propsGenerator.loadertype, loadertype = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
345
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
256
346
  var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
257
347
  replace: [/\./, '-'],
258
348
  });
259
349
  // const a = propsGenerator.
260
- // @ts-expect-error
261
350
  var _d = useStyles.useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
262
351
  var buttonTypeClass = after ||
263
352
  before ||
@@ -275,7 +364,7 @@ var Button = React.forwardRef(function Button(props, ref) {
275
364
  ? 'button_type_icon'
276
365
  : '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
277
366
  ? "shape-strength_".concat(shapeStrengthClass)
278
- : shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loadertype, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
367
+ : shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
279
368
  });
280
369
 
281
370
  exports.Button = Button;