@itcase/ui 1.8.21 → 1.8.22

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 (191) hide show
  1. package/dist/{Avatar_cjs_CiQ14ufF.js → Avatar_cjs_DSXs1Yrg.js} +2 -21
  2. package/dist/{Avatar_es_No9vSqji.js → Avatar_es_DByUaJL6.js} +2 -21
  3. package/dist/{Button_cjs_CnStmeGt.js → Button_cjs_CukkOE-v.js} +5 -4
  4. package/dist/{Button_es_BV1bepl1.js → Button_es_DXcCJuNX.js} +5 -4
  5. package/dist/{ChipsGroup_cjs_CL00pWKy.js → ChipsGroup_cjs_9wrMZrzL.js} +1 -1
  6. package/dist/{ChipsGroup_es_Ciln2otW.js → ChipsGroup_es_CjGZ-ulT.js} +1 -1
  7. package/dist/{DatePicker_cjs_DGgkpGbI.js → DatePicker_cjs_BriuTQqj.js} +3 -3
  8. package/dist/{DatePicker_es_BIOyGm22.js → DatePicker_es_DzY_fVii.js} +3 -3
  9. package/dist/{DropdownItem_cjs_DT-zspEr.js → DropdownItem_cjs_DY61IdLK.js} +1 -1
  10. package/dist/{DropdownItem_es_BJLFqVuH.js → DropdownItem_es_D8mY9vFZ.js} +1 -1
  11. package/dist/{Label_cjs_Cqcf6ffp.js → Label_cjs_CnwET26s.js} +11 -3
  12. package/dist/{Label_es_CeNdA70T.js → Label_es_Dc18d1gY.js} +11 -3
  13. package/dist/{Link_cjs_BlXrJ15R.js → Link_cjs_DbRGq2Yk.js} +9 -9
  14. package/dist/{Link_es_CyJn7NFb.js → Link_es_DxtZLeKY.js} +9 -9
  15. package/dist/{Tooltip_cjs_Cq5kuaIK.js → Tooltip_cjs_PkuRdzzy.js} +3 -3
  16. package/dist/{Tooltip_es_D0PSqI2c.js → Tooltip_es_BaGfb-qC.js} +3 -3
  17. package/dist/cjs/components/Accordion.js +2 -2
  18. package/dist/cjs/components/Avatar.js +3 -3
  19. package/dist/cjs/components/AvatarStack.js +5 -5
  20. package/dist/cjs/components/Badge.js +2 -2
  21. package/dist/cjs/components/Breadcrumbs.js +3 -3
  22. package/dist/cjs/components/Button.js +3 -3
  23. package/dist/cjs/components/Cell.js +15 -149
  24. package/dist/cjs/components/Chips.js +3 -3
  25. package/dist/cjs/components/Choice.js +2 -2
  26. package/dist/cjs/components/Code.js +2 -8
  27. package/dist/cjs/components/CookiesWarning.js +3 -3
  28. package/dist/cjs/components/DatePeriod.js +6 -6
  29. package/dist/cjs/components/DatePicker.js +5 -5
  30. package/dist/cjs/components/Dropdown.js +3 -3
  31. package/dist/cjs/components/Icon.js +2 -2
  32. package/dist/cjs/components/InputPassword.js +71 -129
  33. package/dist/cjs/components/Label.js +3 -3
  34. package/dist/cjs/components/Link.js +1 -1
  35. package/dist/cjs/components/List.js +1 -1
  36. package/dist/cjs/components/Logo.js +1 -1
  37. package/dist/cjs/components/MenuItem.js +29 -9
  38. package/dist/cjs/components/Modal.js +2 -2
  39. package/dist/cjs/components/Pagination.js +3 -3
  40. package/dist/cjs/components/Response/img.js +33 -0
  41. package/dist/cjs/components/Response.js +81 -213
  42. package/dist/cjs/components/Search.js +2 -2
  43. package/dist/cjs/components/Select.js +2 -2
  44. package/dist/cjs/components/Swiper.js +2 -2
  45. package/dist/cjs/components/Tab.js +2 -2
  46. package/dist/cjs/components/Tile.js +10 -172
  47. package/dist/cjs/components/Title.js +2 -2
  48. package/dist/cjs/components/Tooltip.js +2 -2
  49. package/dist/components/Accordion.js +2 -2
  50. package/dist/components/Avatar.js +3 -3
  51. package/dist/components/AvatarStack.js +5 -5
  52. package/dist/components/Badge.js +2 -2
  53. package/dist/components/Breadcrumbs.js +3 -3
  54. package/dist/components/Button.js +3 -3
  55. package/dist/components/Cell.js +15 -149
  56. package/dist/components/Chips.js +3 -3
  57. package/dist/components/Choice.js +2 -2
  58. package/dist/components/Code.js +2 -8
  59. package/dist/components/CookiesWarning.js +3 -3
  60. package/dist/components/DatePeriod.js +6 -6
  61. package/dist/components/DatePicker.js +5 -5
  62. package/dist/components/Dropdown.js +3 -3
  63. package/dist/components/Icon.js +2 -2
  64. package/dist/components/InputPassword.js +71 -129
  65. package/dist/components/Label.js +3 -3
  66. package/dist/components/Link.js +1 -1
  67. package/dist/components/List.js +1 -1
  68. package/dist/components/Logo.js +1 -1
  69. package/dist/components/MenuItem.js +29 -9
  70. package/dist/components/Modal.js +2 -2
  71. package/dist/components/Pagination.js +3 -3
  72. package/dist/components/Response/img.js +31 -0
  73. package/dist/components/Response.js +81 -213
  74. package/dist/components/Search.js +2 -2
  75. package/dist/components/Select.js +2 -2
  76. package/dist/components/Swiper.js +2 -2
  77. package/dist/components/Tab.js +2 -2
  78. package/dist/components/Tile.js +10 -172
  79. package/dist/components/Title.js +2 -2
  80. package/dist/components/Tooltip.js +2 -2
  81. package/dist/css/components/AvatarStack/AvatarStack.css +2 -15
  82. package/dist/css/components/Code/Code.css +3 -6
  83. package/dist/css/components/Label/Label.css +4 -4
  84. package/dist/css/components/MenuItem/MenuItem.css +19 -43
  85. package/dist/css/components/Response/Response.css +6 -3
  86. package/dist/css/components/Tab/Tab.css +14 -31
  87. package/dist/css/components/Tile/Tile.css +7 -5
  88. package/dist/css/styles/svg-color/svg_fill.css +5 -5
  89. package/dist/stories/Plsyground.mdx +0 -1
  90. package/dist/stories/index.stories.js +5 -8
  91. package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
  92. package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
  93. package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
  94. package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
  95. package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
  96. package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
  97. package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
  98. package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
  99. package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
  100. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
  101. package/dist/types/components/{Response/appearance/responseDisabled.d.ts → InputPassword/appearance/inputPasswordDefault.d.ts} +9 -5
  102. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +15 -6
  103. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +7 -7
  104. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +15 -6
  105. package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
  106. package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
  107. package/dist/types/components/Link/Link.interface.d.ts +1 -1
  108. package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
  109. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
  110. package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
  111. package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
  112. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
  113. package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
  114. package/dist/types/components/Response/appearance/responseError.d.ts +6 -4
  115. package/dist/types/components/Response/appearance/responseSuccess.d.ts +6 -4
  116. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
  117. package/dist/types/components/Response/appearance/responseWarning.d.ts +6 -4
  118. package/dist/types/components/Response/img/index.d.ts +12 -0
  119. package/dist/types/components/Tile/appearance/tileSize.d.ts +0 -8
  120. package/dist/types/components/Tile/appearance/tileSurface.d.ts +0 -1
  121. package/package.json +1 -1
  122. package/dist/cjs/components/InputMask.js +0 -65
  123. package/dist/cjs/components/Panel.js +0 -44
  124. package/dist/components/InputMask.js +0 -62
  125. package/dist/components/Panel.js +0 -41
  126. package/dist/css/components/InputMask/InputMask.css +0 -77
  127. package/dist/css/components/Panel/Panel.css +0 -107
  128. package/dist/stories/Accordion.mdx +0 -11
  129. package/dist/stories/AccordionItem.mdx +0 -15
  130. package/dist/stories/Breadcrumbs.mdx +0 -15
  131. package/dist/stories/BreadcrumbsItem.mdx +0 -17
  132. package/dist/stories/Dot.mdx +0 -19
  133. package/dist/stories/Drawer.mdx +0 -11
  134. package/dist/stories/Dropdown.mdx +0 -12
  135. package/dist/stories/DropdownItem.mdx +0 -19
  136. package/dist/stories/Image.mdx +0 -15
  137. package/dist/stories/Input.mdx +0 -31
  138. package/dist/stories/InputPassword.mdx +0 -15
  139. package/dist/stories/Label.mdx +0 -11
  140. package/dist/stories/ListItem.mdx +0 -11
  141. package/dist/stories/Logo.mdx +0 -24
  142. package/dist/stories/MenuItem.mdx +0 -15
  143. package/dist/stories/Modal.mdx +0 -15
  144. package/dist/stories/Notification.mdx +0 -23
  145. package/dist/stories/Radio.mdx +0 -28
  146. package/dist/stories/Response.mdx +0 -11
  147. package/dist/stories/SearchInput.mdx +0 -19
  148. package/dist/stories/Switch.mdx +0 -23
  149. package/dist/stories/Tab.mdx +0 -27
  150. package/dist/stories/Text.mdx +0 -35
  151. package/dist/types/components/Cell/appearance/cellAccent.d.ts +0 -21
  152. package/dist/types/components/Cell/appearance/cellDanger.d.ts +0 -7
  153. package/dist/types/components/Cell/appearance/cellError.d.ts +0 -11
  154. package/dist/types/components/Cell/appearance/cellInfo.d.ts +0 -21
  155. package/dist/types/components/Cell/appearance/cellPrimary.d.ts +0 -8
  156. package/dist/types/components/Cell/appearance/cellSecondary.d.ts +0 -8
  157. package/dist/types/components/Cell/appearance/cellSuccess.d.ts +0 -11
  158. package/dist/types/components/Cell/appearance/cellWarning.d.ts +0 -11
  159. package/dist/types/components/InputMask/InputMask.d.ts +0 -5
  160. package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
  161. package/dist/types/components/InputMask/index.d.ts +0 -1
  162. package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +0 -20
  163. package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +0 -7
  164. package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +0 -21
  165. package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +0 -8
  166. package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +0 -8
  167. package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +0 -25
  168. package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +0 -11
  169. package/dist/types/components/Panel/Panel.d.ts +0 -5
  170. package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
  171. package/dist/types/components/Panel/index.d.ts +0 -1
  172. package/dist/types/components/Response/appearance/responseAccent.d.ts +0 -20
  173. package/dist/types/components/Response/appearance/responseDanger.d.ts +0 -7
  174. package/dist/types/components/Response/appearance/responseInfo.d.ts +0 -21
  175. package/dist/types/components/Response/appearance/responsePrimary.d.ts +0 -8
  176. package/dist/types/components/Response/appearance/responseRequire.d.ts +0 -20
  177. package/dist/types/components/Response/appearance/responseSecondary.d.ts +0 -8
  178. package/dist/types/components/Response/appearance/responseSize.d.ts +0 -59
  179. package/dist/types/components/Response/appearance/responseStyle.d.ts +0 -16
  180. package/dist/types/components/Response/appearance/responseSurface.d.ts +0 -25
  181. package/dist/types/components/Tile/appearance/tileAccent.d.ts +0 -20
  182. package/dist/types/components/Tile/appearance/tileDanger.d.ts +0 -7
  183. package/dist/types/components/Tile/appearance/tileDisabled.d.ts +0 -20
  184. package/dist/types/components/Tile/appearance/tileError.d.ts +0 -11
  185. package/dist/types/components/Tile/appearance/tileInfo.d.ts +0 -21
  186. package/dist/types/components/Tile/appearance/tilePrimary.d.ts +0 -8
  187. package/dist/types/components/Tile/appearance/tileRequire.d.ts +0 -20
  188. package/dist/types/components/Tile/appearance/tileSecondary.d.ts +0 -8
  189. package/dist/types/components/Tile/appearance/tileStyle.d.ts +0 -16
  190. package/dist/types/components/Tile/appearance/tileSuccess.d.ts +0 -11
  191. package/dist/types/components/Tile/appearance/tileWarning.d.ts +0 -11
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { b as Title, B as Badge } from '../Tooltip_es_D0PSqI2c.js';
6
+ import { b as Title, B as Badge } from '../Tooltip_es_BaGfb-qC.js';
7
7
  import { T as Text } from '../Text_es_BRb3qqKM.js';
8
8
  import 'react';
9
9
  import 'lodash/camelCase';
@@ -19,132 +19,9 @@ import '../utils/setViewportProperty.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
21
  import 'react-inlinesvg';
22
- import '../Link_es_CyJn7NFb.js';
23
-
24
- var tileAppearanceAccent = {
25
- accent: {
26
- fill: 'accentPrimary',
27
- fillHover: 'accentPrimaryHover',
28
- },
29
- accentPrimary: {
30
- fill: 'accentPrimary',
31
- fillHover: 'accentPrimaryHover',
32
- borderColor: 'accentBorderPrimary',
33
- },
34
- accentSecondary: {
35
- fill: 'accentPrimary',
36
- fillHover: 'accentPrimaryHover',
37
- labelTextColor: 'accentTextSecondary',
38
- labelTextColorHover: 'accentTextSecondary',
39
- borderColor: 'accentBorderPrimary',
40
- loaderItemFill: 'accentItemPrimary',
41
- },
42
- };
43
-
44
- var tileAppearanceDanger = {
45
- danger: {
46
- fill: 'dangerPrimary',
47
- fillHover: 'dangerPrimaryHover',
48
- },
49
- };
50
-
51
- var tileAppearanceDisabled = {
52
- disabledPrimary: {
53
- fill: 'surfaceFillDisabled',
54
- borderColor: 'errorBorderQuaternary',
55
- borderHover: 'errorBorderQuaternary',
56
- textColor: 'surfaceTextQuaternary',
57
- iconBeforeFill: 'errorItemQuaternary',
58
- iconClearFill: 'errorItemPrimary',
59
- placeholderTextColor: 'surfaceTextQuaternary',
60
- },
61
- disabledSecondary: {
62
- fill: 'surfaceSecondary',
63
- borderColor: 'surfaceBorderTertiary',
64
- borderHover: 'surfaceBorderQuaternary',
65
- iconBeforeFill: 'surfaceItemQuaternary',
66
- iconClearFill: 'surfaceItemPrimary',
67
- placeholderTextColor: 'surfaceTextSecondary',
68
- },
69
- };
70
-
71
- var tileAppearanceError = {
72
- error: {
73
- fill: 'errorPrimary',
74
- fillHover: 'errorPrimaryHover',
75
- labelTextColor: 'errorTextPrimary',
76
- labelTextColorHover: 'errorTextPrimary',
77
- loaderFill: 'errorPrimary',
78
- loaderItemFill: 'errorItemPrimary',
79
- },
80
- };
81
-
82
- var tileAppearanceInfo = {
83
- info: {
84
- fill: 'accentPrimary',
85
- fillHover: 'accentPrimaryHover',
86
- labelTextColor: 'accentTextPrimary',
87
- labelTextColorHover: 'accentTextPrimary',
88
- borderColor: 'accentBorderPrimary',
89
- loaderFill: 'accentPrimary',
90
- loaderItemFill: 'accentItemPrimary',
91
- },
92
- infoSecondary: {
93
- fill: 'accentPrimary',
94
- fillHover: 'accentPrimaryHover',
95
- labelTextColor: 'accentTextSecondary',
96
- labelTextColorHover: 'accentTextSecondary',
97
- borderColor: 'accentBorderPrimary',
98
- loaderFill: 'accentPrimary',
99
- loaderItemFill: 'accentItemPrimary',
100
- },
101
- };
102
-
103
- var tileAppearancePrimary = {
104
- primary: {
105
- fill: 'primaryPrimary',
106
- fillHover: 'primaryPrimaryHover',
107
- labelTextColor: 'primaryTextPrimary',
108
- },
109
- };
110
-
111
- var tileAppearanceRequire = {
112
- requirePrimary: {
113
- fill: 'warningTertiary',
114
- borderColor: 'warningBorderQuaternary',
115
- borderHover: 'warningBorderQuaternary',
116
- textColor: 'surfaceTextPrimary',
117
- iconBeforeFill: 'warningItemQuaternary',
118
- iconClearFill: 'warningItemPrimary',
119
- placeholderTextColor: 'surfaceTextQuaternary',
120
- },
121
- requireSecondary: {
122
- fill: 'surfaceSecondary',
123
- borderColor: 'surfaceBorderTertiary',
124
- borderHover: 'surfaceBorderQuaternary',
125
- iconBeforeFill: 'surfaceItemQuaternary',
126
- iconClearFill: 'surfaceItemPrimary',
127
- placeholderTextColor: 'surfaceTextSecondary',
128
- },
129
- };
130
-
131
- var tileAppearanceSecondary = {
132
- secondary: {
133
- fill: 'secondaryPrimary',
134
- fillHover: 'secondaryPrimaryHover',
135
- labelTextColor: 'secondaryTextPrimary',
136
- },
137
- };
22
+ import '../Link_es_DxtZLeKY.js';
138
23
 
139
24
  var tileAppearanceSize = {
140
- sizeXXL: {
141
- size: 'xxl',
142
- labelTextSize: 'xxl',
143
- iconAfterFillSize: '24',
144
- iconAfterSize: '24',
145
- iconBeforeFillSize: '24',
146
- iconBeforeSize: '24',
147
- },
148
25
  sizeXL: {
149
26
  size: 'xl',
150
27
  labelTextSize: 'l',
@@ -188,37 +65,10 @@ var tileAppearanceSize = {
188
65
  sizeXXS: {
189
66
  size: 'xxs',
190
67
  labelTextSize: 'xs',
191
- iconAfterFillSize: '14',
192
- iconAfterSize: '14',
193
- iconBeforeFillSize: '14',
194
- iconBeforeSize: '14',
195
- },
196
- };
197
-
198
- var tileAppearanceStyle = {
199
- full: {
200
- borderColor: '0',
201
- },
202
- ghost: {
203
- fill: 'none',
204
- borderColor: '0',
205
- },
206
- outlined: {
207
- fill: 'none',
208
- },
209
- solid: {
210
- borderColor: '0',
211
- },
212
- };
213
-
214
- var tileAppearanceSuccess = {
215
- success: {
216
- fill: 'successPrimary',
217
- fillHover: 'successPrimaryHover',
218
- labelTextColor: 'successTextSecondary',
219
- labelTextColorHover: 'successTextSecondary',
220
- loaderFill: 'successPrimary',
221
- loaderItemFill: 'successItemPrimary',
68
+ iconAfterFillSize: '16',
69
+ iconAfterSize: '16',
70
+ iconBeforeFillSize: '16',
71
+ iconBeforeSize: '16',
222
72
  },
223
73
  };
224
74
 
@@ -237,7 +87,6 @@ var tileAppearanceSurface = {
237
87
  fill: 'surfaceSecondary',
238
88
  fillHover: 'surfaceSecondaryHover',
239
89
  labelTextColor: 'surfaceTextPrimary',
240
- loaderFill: 'surfaceSecondary',
241
90
  loaderItemFill: 'surfaceItemPrimary',
242
91
  },
243
92
  surfaceTertiary: {
@@ -247,18 +96,7 @@ var tileAppearanceSurface = {
247
96
  },
248
97
  };
249
98
 
250
- var tileAppearanceWarning = {
251
- warning: {
252
- fill: 'warningPrimary',
253
- fillHover: 'warningPrimaryHover',
254
- labelTextColor: 'warningTextSecondary',
255
- labelTextColorHover: 'warningTextSecondary',
256
- loaderFill: 'warningPrimary',
257
- loaderItemFill: 'warningItemPrimary',
258
- },
259
- };
260
-
261
- var tileAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, tileAppearanceSize), tileAppearanceDisabled), tileAppearanceRequire), tileAppearanceStyle), tileAppearanceAccent), tileAppearanceDanger), tileAppearanceError), tileAppearanceInfo), tileAppearancePrimary), tileAppearanceSecondary), tileAppearanceSuccess), tileAppearanceSurface), tileAppearanceWarning);
99
+ var tileAppearance = __assign(__assign({}, tileAppearanceSize), tileAppearanceSurface);
262
100
 
263
101
  var tileConfig = {
264
102
  appearance: tileAppearance,
@@ -267,16 +105,16 @@ var tileConfig = {
267
105
  },
268
106
  };
269
107
  function Tile(props) {
270
- var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, size = props.size, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
108
+ var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
271
109
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
272
110
  var _a;
273
111
  return (__assign(__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
274
112
  }, {});
275
113
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
276
- var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
114
+ var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
277
115
  // @ts-expect-error
278
116
  var tileStyles = useStyles(props).styles;
279
- return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize, textColor: textColor, textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
117
+ return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badge && "tile_state_badge"), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize, textColor: textColor, textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
280
118
  }
281
119
 
282
120
  export { Tile, tileAppearance, tileConfig };
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_D0PSqI2c.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_BaGfb-qC.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -19,4 +19,4 @@ import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
20
  import '../Text_es_BRb3qqKM.js';
21
21
  import 'react-inlinesvg';
22
- import '../Link_es_CyJn7NFb.js';
22
+ import '../Link_es_DxtZLeKY.js';
@@ -1,4 +1,4 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_D0PSqI2c.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_BaGfb-qC.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -19,4 +19,4 @@ import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
20
  import '../Text_es_BRb3qqKM.js';
21
21
  import 'react-inlinesvg';
22
- import '../Link_es_CyJn7NFb.js';
22
+ import '../Link_es_DxtZLeKY.js';
@@ -1,4 +1,4 @@
1
- .avatar {
1
+ div.avatar {
2
2
  &-stack {
3
3
  margin: 0 0 0 4px;
4
4
  display: flex;
@@ -10,20 +10,7 @@
10
10
  transition: all 0.3s ease;
11
11
  cursor: pointer;
12
12
  &:hover {
13
- box-shadow: 0 4px 8px rgb(0, 0, 0, 0.16);
14
- z-index: 2;
15
- transition: all 0.3s ease;
16
- }
17
- ^^&__wrapper {
18
- background: linear-gradient(
19
- 90deg,
20
- var(--color-surface-tertiary) 0%,
21
- var(--color-accent-tertiary) 100%
22
- );
23
- }
24
- ^^&__image {
25
- width: 100px;
26
- height: auto;
13
+ z-index: 10;
27
14
  transition: all 0.3s ease;
28
15
  }
29
16
  &-text {
@@ -19,13 +19,12 @@
19
19
  }
20
20
  .code__input {
21
21
  &_size {
22
- @each $size in xxl, xl, l, m, s, xs, xxs {
22
+ @each $size in l, m {
23
23
  &_$(size) {
24
24
  min-width: var(--code-input-size-$(size)-width);
25
25
  min-height: var(--code-input-size-$(size)-height);
26
26
  max-width: var(--code-input-size-$(size)-width);
27
27
  max-height: var(--code-input-size-$(size)-height);
28
- padding: var(--code-input-size-$(size)-padding);
29
28
  }
30
29
  }
31
30
  }
@@ -50,12 +49,10 @@
50
49
  }
51
50
  :root {
52
51
  --code-input-shape-rounded: 0;
53
- @each $size, $width, $height, $padding, $gap in (xxl, xl, l, m, s, xs, xxs),
54
- (0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 0),
55
- (8, 8, 8, 8, 8, 8, 8) {
52
+ @each $size, $width, $height, $padding, $gap in (l, m), (56px, 48px),
53
+ (56px, 48px), (8px, 8px) {
56
54
  --code-input-size-$(size)-width: $width;
57
55
  --code-input-size-$(size)-height: $height;
58
- --code-input-size-$(size)-padding: $padding;
59
56
  --code-size-$(size)-gap: $gap;
60
57
  }
61
58
  }
@@ -1,6 +1,7 @@
1
1
  .label {
2
2
  position: relative;
3
3
  display: inline-flex;
4
+ align-items: center;
4
5
  &__inner {
5
6
  width: 100%;
6
7
  font-size: 0;
@@ -8,7 +9,6 @@
8
9
  display: flex;
9
10
  justify-content: center;
10
11
  align-items: center;
11
- gap: 4px;
12
12
  }
13
13
  }
14
14
  .label {
@@ -53,9 +53,8 @@
53
53
  &_size {
54
54
  @each $size in xxl, xl, l, m, s, xs, xxs {
55
55
  &_$(size) {
56
- ^^&__inner {
57
- padding: var(--label-size-$(size)-padding);
58
- }
56
+ padding: var(--label-size-$(size)-padding);
57
+ gap: var(--label-size-$(size)-gap);
59
58
  }
60
59
  }
61
60
  }
@@ -91,6 +90,7 @@ div.label {
91
90
  --label-size-xxs-shape-rounded: 12px;
92
91
 
93
92
  --label-size-xxl-padding: 10px 10px;
93
+ --label-size-xxl-gap: 8px;
94
94
  --label-size-xl-padding: 7px 8px;
95
95
  --label-size-l-padding: 4px 6px;
96
96
  --label-size-m-padding: 2px 8px;
@@ -1,9 +1,15 @@
1
1
  .menu-item {
2
- &__label {
2
+ align-items: center;
3
+ &__wrapper {
4
+ width: 100%;
3
5
  display: flex;
4
6
  align-items: center;
5
- gap: 4px;
6
7
  align-content: center;
8
+ ^&__label {
9
+ display: flex;
10
+ align-items: center;
11
+ flex-grow: 1;
12
+ }
7
13
  }
8
14
  }
9
15
 
@@ -11,55 +17,24 @@
11
17
  &_direction {
12
18
  &_horizontal {
13
19
  display: flex;
14
- ^^&__label {
15
- width: 100%;
16
- }
17
20
  }
18
21
  &_vertical {
19
22
  display: flex;
20
- ^^&__label {
21
- width: 100%;
22
- }
23
23
  }
24
24
  }
25
25
  }
26
26
 
27
27
  .menu-item {
28
- @each $val in flex-start, flex-end, center, space-between, space-around, space-evenly {
28
+ @each $val in flex-start, flex-end, center, space-between, space-around,
29
+ space-evenly {
29
30
  &_justify-content_$(val) {
30
- & > a {
31
+ ^&__wrapper {
31
32
  justify-content: $(val);
32
33
  }
33
34
  }
34
35
  }
35
36
  }
36
37
 
37
- .menu-item {
38
- &_set {
39
- &_filter {
40
- color: var(--color-surface-text-primary);
41
- padding: var(--menu-item-set-filter-padding);
42
- cursor: pointer;
43
- &:not(:last-child) {
44
- border-right: var(--menu-item-set-filter-border-right, initial);
45
- }
46
- &_active {
47
- & span {
48
- color: var(--menu-item-set-filter-active-color, initial);
49
- }
50
- }
51
- }
52
- }
53
- }
54
-
55
- .menu-item {
56
- &_set {
57
- &_subitem {
58
- transform: translate(var(--menu-item-set-subitem-padding-left));
59
- }
60
- }
61
- }
62
-
63
38
  .menu-item {
64
39
  &_shape {
65
40
  &_rounded {
@@ -75,7 +50,11 @@
75
50
  &_size {
76
51
  @each $size in xxl, xl, l, m, s, xs, xxs {
77
52
  &_$(size) {
78
- padding: var(--menu-item-size-$(size)-padding);
53
+ ^^&__wrapper {
54
+ min-height: var(--menu-item-size-$(size)-min-height);
55
+ padding: var(--menu-item-size-$(size)-padding);
56
+ gap: var(--menu-item-size-$(size)-gap);
57
+ }
79
58
  }
80
59
  }
81
60
  }
@@ -90,11 +69,8 @@
90
69
  --menu-item-size-xl-padding: 10px 8px;
91
70
  --menu-item-size-xxl-padding: 12px 10px;
92
71
 
93
- --menu-item-shape-rounded: 20px;
94
- --menu-item-set-subitem-padding-left: 36px;
72
+ --menu-item-size-m-min-height: 32px;
73
+ --menu-item-size-m-gap: 8px;
95
74
 
96
- --menu-item-set-filter-padding: 10px 16px;
97
- --menu-item-set-filter-border-right: 1px solid
98
- var(--color-surface-border-tertiary);
99
- --menu-item-set-filter-active-color: var(--color-surface-item-accent);
75
+ --menu-item-shape-rounded: 20px;
100
76
  }
@@ -11,12 +11,15 @@
11
11
  justify-content: center;
12
12
  align-items: center;
13
13
  gap: 3m;
14
+ &-inner {
15
+ flex-direction: column;
16
+ width: 100%;
17
+ display: flex;
18
+ align-items: center;
19
+ }
14
20
  }
15
21
  &__desc {
16
22
  display: flex;
17
- flex-direction: column;
18
- justify-content: center;
19
- align-items: center;
20
23
  gap: 1m;
21
24
  }
22
25
  &__button {
@@ -1,8 +1,14 @@
1
1
  .tab {
2
- &__label {
2
+ display: flex;
3
+ flex-flow: column nowrap;
4
+ justify-content: flex-end;
5
+ &__wrapper {
3
6
  display: flex;
4
- place-content: center center;
5
- align-items: center;
7
+ ^&__label {
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ }
6
12
  }
7
13
  }
8
14
  .tab-group {
@@ -10,29 +16,12 @@
10
16
  display: flex;
11
17
  flex-flow: row wrap;
12
18
  align-items: stretch;
13
- & .tab {
19
+ &__wrapper {
14
20
  display: flex;
15
- flex-flow: column nowrap;
16
- justify-content: flex-end;
17
- &__wrapper {
18
- display: flex;
19
- flex: 1;
20
- justify-content: center;
21
- align-items: center;
22
- gap: 4px;
23
- }
24
- &__label {
25
- display: flex;
26
- flex: 1;
27
- justify-content: center;
28
- }
29
- }
30
- }
31
- div.tab-reset {
32
- & .tab__wrapper {
33
- padding: 0;
34
- gap: 0;
35
- margin: 0;
21
+ flex: 1;
22
+ justify-content: center;
23
+ align-items: center;
24
+ gap: 4px;
36
25
  }
37
26
  }
38
27
  .tab {
@@ -69,12 +58,6 @@ div.tab-reset {
69
58
  }
70
59
  }
71
60
  :root {
72
- --tab-size-normal-padding: 12px;
73
- --tab-size-normal-gap: 4px;
74
-
75
- --tab-size-compact-padding: 12px;
76
- --tab-size-compact-gap: 4px;
77
-
78
61
  --tab-size-xxs-padding: 0px;
79
62
  --tab-size-xxs-gap: 4px;
80
63
 
@@ -22,7 +22,7 @@
22
22
  }
23
23
  .tile {
24
24
  &_size {
25
- @each $size in xxl, xl, l, m, s, xs, xxs, normal, compact {
25
+ @each $size in xl, l, m, s, xs, xxs {
26
26
  &_$(size) {
27
27
  min-width: var(--tile-size-$(size)-min-width);
28
28
  padding: var(--tile-size-$(size)-padding);
@@ -57,9 +57,11 @@
57
57
  --tile-type-icon: 0;
58
58
 
59
59
  /* Size */
60
- @each $size, $value in (xxl, xl, l, m, s, xs, xxs), (0, 0, 0, 0, 0, 0, 0) {
61
- --tile-size-$(size)-min-width: $value;
62
- --tile-size-$(size)-padding: $value;
63
- --tile-size-$(size)-gap: $value;
60
+ @each $size, $width, $padding, $gap in (xl, l, m, s, xs, xxs),
61
+ (400px, 320px, 240px, 172px, 96px, 80px), (24px, 24px, 16px, 8px, 8px, 4px),
62
+ (24px, 24px, 16px, 8px, 8px, 4px) {
63
+ --tile-size-$(size)-min-width: $width;
64
+ --tile-size-$(size)-padding: $padding;
65
+ --tile-size-$(size)-gap: $gap;
64
66
  }
65
67
  }
@@ -11,21 +11,21 @@
11
11
  stroke: none;
12
12
  fill: var(--color-$(type)-item-$(color));
13
13
  }
14
- & path,
14
+ /* & path,
15
15
  & circle {
16
16
  fill: var(--color-$(type)-item-$(color));
17
- }
17
+ } */
18
18
  }
19
19
  }
20
20
  &-$(color) {
21
21
  & svg {
22
22
  stroke: none;
23
- fill: var(--color-$(type)-$(color));
23
+ fill: var(--color-$(type)-fill-$(color));
24
24
  }
25
- & path,
25
+ /* & path,
26
26
  & circle {
27
27
  fill: var(--color-$(type)-item-$(color));
28
- }
28
+ } */
29
29
  }
30
30
  }
31
31
  }
@@ -1,7 +1,6 @@
1
1
  import { Canvas, Controls, Meta } from '@storybook/blocks'
2
2
 
3
3
  import * as BreadcrumbsStories from '../stories/Breadcrumbs.stories'
4
- import * as BreadcrumbsItemStories from '../stories/BreadcrubsItem.stories'
5
4
 
6
5
  <Meta title="Atoms / Breadcrumbs / Playground" />
7
6
 
@@ -1,38 +1,35 @@
1
- import AvatarStack from '.'
1
+ import { AvatarStack } from '../'
2
2
 
3
3
  const meta = {
4
- title: 'Atoms / Avatar Stack',
4
+ title: 'Molecules / Avatar Stack',
5
5
  component: AvatarStack,
6
6
  args: {
7
7
  avatarSize: 48,
8
- users: [
8
+ avatarsList: [
9
9
  {
10
10
  id: 0,
11
- src: 'https://as2.ftcdn.net/v2/jpg/07/52/13/37/1000_F_752133729_dz4GYDkaKZ6vRCNadT5Pz2EBe43ShRos.jpg',
11
+ src: '/avatar/Man.png',
12
12
  firstName: 'firstName',
13
13
  secondName: 'secondName',
14
14
  },
15
15
  {
16
16
  id: 1,
17
- src: 'https://as2.ftcdn.net/v2/jpg/07/52/13/37/1000_F_752133729_dz4GYDkaKZ6vRCNadT5Pz2EBe43ShRos.jpg',
17
+ src: '/avatar/Woman.png',
18
18
  firstName: 'firstName',
19
19
  secondName: 'secondName',
20
20
  },
21
21
  {
22
22
  id: 2,
23
- src: 'https://as2.ftcdn.net/v2/jpg/07/52/13/37/1000_F_752133729_dz4GYDkaKZ6vRCNadT5Pz2EBe43ShRos.jpg',
24
23
  firstName: 'firstName',
25
24
  secondName: 'secondName',
26
25
  },
27
26
  {
28
27
  id: 3,
29
- src: 'https://as2.ftcdn.net/v2/jpg/07/52/13/37/1000_F_752133729_dz4GYDkaKZ6vRCNadT5Pz2EBe43ShRos.jpg',
30
28
  firstName: 'firstName',
31
29
  secondName: 'secondName',
32
30
  },
33
31
  {
34
32
  id: 4,
35
- src: 'https://as2.ftcdn.net/v2/jpg/07/52/13/37/1000_F_752133729_dz4GYDkaKZ6vRCNadT5Pz2EBe43ShRos.jpg',
36
33
  firstName: 'firstName',
37
34
  secondName: 'secondName',
38
35
  },
@@ -1,19 +1,15 @@
1
1
  declare const avatarAppearanceAccent: {
2
2
  accent: {
3
3
  fill: string;
4
- fillHover: string;
5
4
  };
6
5
  accentPrimary: {
7
6
  fill: string;
8
- fillHover: string;
9
7
  borderColor: string;
10
8
  };
11
9
  accentSecondary: {
12
10
  fill: string;
13
- fillHover: string;
14
11
  borderColor: string;
15
12
  textColor: string;
16
- textColorHover: string;
17
13
  };
18
14
  };
19
15
  export { avatarAppearanceAccent };
@@ -1,7 +1,6 @@
1
1
  declare const avatarAppearanceDanger: {
2
2
  danger: {
3
3
  fill: string;
4
- fillHover: string;
5
4
  };
6
5
  };
7
6
  export { avatarAppearanceDanger };