@itcase/ui 1.8.39 → 1.8.41

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 (146) hide show
  1. package/dist/{Avatar_cjs_mqB6k6yB.js → Avatar_cjs_BbeDJ-No.js} +1 -1
  2. package/dist/{Avatar_es_DKL6hUIM.js → Avatar_es_B1Ao9Im_.js} +1 -1
  3. package/dist/{Button_cjs_CwduBuCx.js → Button_cjs_CcE72qEn.js} +3 -14
  4. package/dist/{Button_es_CBUUZuP3.js → Button_es_Cv4k5QQw.js} +3 -14
  5. package/dist/{ChipsGroup_cjs_Dq-QQCR_.js → ChipsGroup_cjs_p99H-9a8.js} +48 -64
  6. package/dist/{ChipsGroup_es_DdU5NMpc.js → ChipsGroup_es_CWq3TR_1.js} +48 -64
  7. package/dist/{DatePicker_cjs_0MnhwJnY.js → DatePicker_cjs_BC_SxUN5.js} +3 -3
  8. package/dist/{DatePicker_es_D4P4DT8L.js → DatePicker_es_DVIxGUlK.js} +3 -3
  9. package/dist/{DropdownItem_cjs_BuT4hQS1.js → DropdownItem_cjs_B1gGciTB.js} +26 -9
  10. package/dist/{DropdownItem_es_CrwvBzq_.js → DropdownItem_es_JVT4f6Nb.js} +26 -9
  11. package/dist/{Label_cjs_CKR9noZi.js → Label_cjs_Mb8j2bLu.js} +1 -5
  12. package/dist/{Label_es_Cz9OKQAr.js → Label_es_CIDBUVgO.js} +1 -5
  13. package/dist/{Tooltip_cjs_CiY50iRK.js → Tooltip_cjs_BBwH8sjA.js} +9 -2
  14. package/dist/{Tooltip_es_Cc2orRUE.js → Tooltip_es_Y2aoFQW7.js} +9 -2
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +2 -2
  21. package/dist/cjs/components/Cell.js +2 -2
  22. package/dist/cjs/components/Chips.js +3 -2
  23. package/dist/cjs/components/Choice.js +1 -1
  24. package/dist/cjs/components/CookiesWarning.js +2 -2
  25. package/dist/cjs/components/DatePeriod.js +6 -5
  26. package/dist/cjs/components/DatePicker.js +4 -4
  27. package/dist/cjs/components/Drawer.js +1 -1
  28. package/dist/cjs/components/Dropdown/stories/__mock__.js +27 -4
  29. package/dist/cjs/components/Dropdown.js +3 -3
  30. package/dist/cjs/components/HeroTitle.js +1 -1
  31. package/dist/cjs/components/Icon.js +1 -1
  32. package/dist/cjs/components/InputPassword.js +1 -1
  33. package/dist/cjs/components/Label.js +2 -2
  34. package/dist/cjs/components/MenuItem.js +1 -1
  35. package/dist/cjs/components/Modal.js +1 -1
  36. package/dist/cjs/components/Notification.js +1 -1
  37. package/dist/cjs/components/Pagination.js +66 -21
  38. package/dist/cjs/components/Radio.js +45 -65
  39. package/dist/cjs/components/Response.js +2 -2
  40. package/dist/cjs/components/Search.js +1 -1
  41. package/dist/cjs/components/Segmented.js +19 -2
  42. package/dist/cjs/components/Select.js +3 -3
  43. package/dist/cjs/components/Swiper.js +1 -1
  44. package/dist/cjs/components/Tab.js +1 -1
  45. package/dist/cjs/components/Textarea.js +1 -1
  46. package/dist/cjs/components/Tile.js +1 -1
  47. package/dist/cjs/components/Title.js +1 -1
  48. package/dist/cjs/components/Tooltip.js +1 -1
  49. package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +29 -0
  50. package/dist/cjs/hooks/useAppearanceConfig.js +9 -0
  51. package/dist/components/Accordion.js +1 -1
  52. package/dist/components/Avatar.js +2 -2
  53. package/dist/components/AvatarStack.js +2 -2
  54. package/dist/components/Badge.js +1 -1
  55. package/dist/components/Breadcrumbs.js +1 -1
  56. package/dist/components/Button.js +2 -2
  57. package/dist/components/Cell.js +2 -2
  58. package/dist/components/Chips.js +3 -2
  59. package/dist/components/Choice.js +1 -1
  60. package/dist/components/CookiesWarning.js +2 -2
  61. package/dist/components/DatePeriod.js +6 -5
  62. package/dist/components/DatePicker.js +4 -4
  63. package/dist/components/Drawer.js +1 -1
  64. package/dist/components/Dropdown/stories/__mock__.js +26 -5
  65. package/dist/components/Dropdown.js +3 -3
  66. package/dist/components/HeroTitle.js +1 -1
  67. package/dist/components/Icon.js +1 -1
  68. package/dist/components/InputPassword.js +1 -1
  69. package/dist/components/Label.js +2 -2
  70. package/dist/components/MenuItem.js +1 -1
  71. package/dist/components/Modal.js +1 -1
  72. package/dist/components/Notification.js +1 -1
  73. package/dist/components/Pagination.js +67 -22
  74. package/dist/components/Radio.js +45 -65
  75. package/dist/components/Response.js +2 -2
  76. package/dist/components/Search.js +1 -1
  77. package/dist/components/Segmented.js +19 -2
  78. package/dist/components/Select.js +3 -3
  79. package/dist/components/Swiper.js +1 -1
  80. package/dist/components/Tab.js +1 -1
  81. package/dist/components/Textarea.js +1 -1
  82. package/dist/components/Tile.js +1 -1
  83. package/dist/components/Title.js +1 -1
  84. package/dist/components/Tooltip.js +1 -1
  85. package/dist/css/components/Button/Button.css +7 -4
  86. package/dist/css/components/Dropdown/Dropdown.css +24 -0
  87. package/dist/css/components/Pagination/Pagination.css +82 -30
  88. package/dist/css/components/Pagination/css/__item/pagination__item.css +8 -8
  89. package/dist/css/components/Pagination/css/__item/pagination__item_size.css +8 -0
  90. package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +16 -16
  91. package/dist/css/components/Radio/Radio.css +44 -5
  92. package/dist/css/components/Select/Select.css +1 -0
  93. package/dist/css/components/Select/css/__indicators/select__indicators.css +1 -0
  94. package/dist/css/components/Swiper/Swiper.css +2 -2
  95. package/dist/css/styles/fill/fill.css +2 -1
  96. package/dist/css/styles/fill/fill_active.css +3 -0
  97. package/dist/css/styles/fill/fill_active_hover.css +7 -0
  98. package/dist/css/styles/fill/fill_hover.css +5 -9
  99. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +27 -0
  100. package/dist/hooks/useAppearanceConfig.js +3 -0
  101. package/dist/stories/ChipsOverview.mdx +10 -10
  102. package/dist/stories/ChipsPlayground.mdx +2 -2
  103. package/dist/stories/Components.mdx +378 -87
  104. package/dist/stories/useAppearanceConfig.mdx +83 -0
  105. package/dist/stories/useDevicePropsGenerator.mdx +6 -8
  106. package/dist/types/components/Button/appearance/buttonAccent.d.ts +0 -11
  107. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -3
  108. package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +5 -0
  109. package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +9 -0
  110. package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +3 -0
  111. package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +9 -12
  112. package/dist/types/components/Icon/appearance/iconDanger.d.ts +1 -0
  113. package/dist/types/components/Icon/appearance/iconDisabled.d.ts +1 -0
  114. package/dist/types/components/Icon/appearance/iconError.d.ts +1 -0
  115. package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -1
  116. package/dist/types/components/Icon/appearance/iconPrimary.d.ts +1 -0
  117. package/dist/types/components/Icon/appearance/iconSecondary.d.ts +1 -0
  118. package/dist/types/components/Icon/appearance/iconSuccess.d.ts +1 -0
  119. package/dist/types/components/Icon/appearance/iconSurface.d.ts +1 -0
  120. package/dist/types/components/Icon/appearance/iconWarning.d.ts +1 -0
  121. package/dist/types/components/Label/appearance/labelError.d.ts +0 -1
  122. package/dist/types/components/Label/appearance/labelGradient.d.ts +8 -0
  123. package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -1
  124. package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -1
  125. package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -1
  126. package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +22 -1
  127. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +20 -1
  128. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -1
  129. package/dist/types/components/Radio/Radio.appearance.d.ts +28 -48
  130. package/dist/types/components/Radio/appearance/radioDefault.d.ts +2 -14
  131. package/dist/types/components/Radio/appearance/radioDisabled.d.ts +5 -5
  132. package/dist/types/components/Radio/appearance/radioError.d.ts +6 -5
  133. package/dist/types/components/Radio/appearance/radioRequire.d.ts +5 -13
  134. package/dist/types/components/Radio/appearance/radioStyle.d.ts +4 -6
  135. package/dist/types/components/Radio/appearance/radioSuccess.d.ts +6 -5
  136. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +17 -0
  137. package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +1 -1
  138. package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -1
  139. package/dist/types/config/forms/datepicker.d.ts +18 -0
  140. package/dist/types/config/forms/index.d.ts +3 -0
  141. package/dist/types/config/forms/input.d.ts +14 -0
  142. package/dist/types/hooks/useAppearanceConfig/index.d.ts +1 -0
  143. package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +7 -0
  144. package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
  145. package/package.json +17 -17
  146. package/dist/types/hooks/useDeviceTargetClass.d.ts +0 -5
@@ -6,10 +6,10 @@ import ceil from 'lodash/ceil';
6
6
  import ReactPaginate from 'react-paginate';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_CrwvBzq_.js';
10
- import { I as Icon } from '../Tooltip_es_Cc2orRUE.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_JVT4f6Nb.js';
10
+ import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
11
11
  import { T as Text } from '../Text_es_BfLRfj-5.js';
12
- import { icons32, icons14 } from '@itcase/icons/default';
12
+ import { icons14, icons24, icons16 } from '@itcase/icons/default';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/castArray';
15
15
  import 'lodash/upperFirst';
@@ -35,8 +35,29 @@ var paginationAppearanceAccent = {
35
35
  },
36
36
  accentPrimary: {
37
37
  fill: 'accentPrimary',
38
- fillHover: 'accentPrimaryHover',
38
+ fillActive: 'accentQuaternary',
39
+ fillInput: 'surfacePrimary',
39
40
  borderColor: 'accentBorderPrimary',
41
+ textColor: 'accentTextPrimary',
42
+ builderIconFillIcon: 'accentItemPrimary',
43
+ nextIconFillIcon: 'accentItemPrimary',
44
+ pageCountDescTextColor: 'surfaceTextPrimary',
45
+ pageCountDropdownAlignment: 'topCenter',
46
+ pageCountDropdownElevation: 8,
47
+ pageCountDropdownFill: 'surfacePrimary',
48
+ pageCountDropdownItemDividerFill: 'surfaceSecondary',
49
+ pageCountDropdownItemFill: 'surfacePrimary',
50
+ pageCountDropdownItemFillActive: 'accentPrimary',
51
+ pageCountDropdownItemFillActiveHover: 'accentActiveHover',
52
+ pageCountDropdownItemFillHover: 'surfaceSecondary',
53
+ pageCountDropdownItemLabelAlign: 'center',
54
+ pageCountDropdownItemLabelColor: 'surfaceTextPrimary',
55
+ pageCountDropdownItemLabelColorActive: 'accentTextPrimary',
56
+ pageCountDropdownItemLabelColorActiveHover: 'accentTextPrimary',
57
+ pageCountDropdownItemLabelColorHover: 'surfaceTextPrimary',
58
+ pageCountInputIconColor: 'surfaceItemPrimary',
59
+ pageCountInputTextColor: 'surfaceTextPrimary',
60
+ previousIconFillIcon: 'accentItemPrimary',
40
61
  },
41
62
  accentSecondary: {
42
63
  fill: 'accentPrimary',
@@ -53,56 +74,76 @@ var paginationAppearanceSize = {
53
74
  sizeL: {
54
75
  size: 'l',
55
76
  labelTextSize: 'l',
77
+ textSize: 'l',
78
+ builderIcon: icons24.General.Dot,
56
79
  iconAfterFillSize: '24',
57
80
  iconAfterSize: '24',
58
81
  iconBeforeFillSize: '24',
59
82
  iconBeforeSize: '24',
60
- nextIcon: icons32.Arrow.ChevronRightSmall,
83
+ nextIcon: icons24.Arrow.ChevronRightSmall,
61
84
  pageCountDescTextSize: 'l',
62
85
  pageCountDropdownItemDividerSize: 'xxs',
63
86
  pageCountDropdownItemLabelSize: 'm',
64
87
  pageCountDropdownItemSize: 'l',
65
- pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
88
+ pageCountDropdownItemWidth: '64',
89
+ pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
66
90
  pageCountInputIconFillSize: '24',
67
- pageCountInputTextSize: 'm',
68
- previousIcon: icons32.Arrow.ChevronLeftSmall,
91
+ pageCountInputTextSize: 'l',
92
+ previousIcon: icons24.Arrow.ChevronLeftSmall,
69
93
  },
70
94
  sizeM: {
71
95
  size: 'm',
72
96
  labelTextSize: 'm',
97
+ textSize: 'm',
98
+ builderIcon: icons24.General.Dot,
73
99
  iconAfterFillSize: '24',
74
100
  iconAfterSize: '24',
75
101
  iconBeforeFillSize: '24',
76
102
  iconBeforeSize: '24',
77
- nextIcon: icons32.Arrow.ChevronRightSmall,
103
+ nextIcon: icons24.Arrow.ChevronRightSmall,
78
104
  pageCountDescTextSize: 'm',
79
105
  pageCountDropdownItemDividerSize: 'xxs',
80
106
  pageCountDropdownItemLabelSize: 'm',
81
107
  pageCountDropdownItemSize: 'l',
82
- pageCountDropdownItemWidth: '64',
83
108
  pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
84
109
  pageCountInputIconFillSize: '14',
85
110
  pageCountInputTextSize: 'm',
86
- previousIcon: icons32.Arrow.ChevronLeftSmall,
111
+ previousIcon: icons24.Arrow.ChevronLeftSmall,
87
112
  },
88
113
  sizeS: {
89
114
  size: 's',
90
115
  labelTextSize: 's',
116
+ textSize: 's',
117
+ builderIcon: icons24.General.Dot,
91
118
  iconAfterFillSize: '20',
92
119
  iconAfterSize: '20',
93
120
  iconBeforeFillSize: '20',
94
121
  iconBeforeSize: '20',
95
- nextIcon: icons32.Arrow.ChevronRightSmall,
96
- previousIcon: icons32.Arrow.ChevronLeftSmall,
122
+ nextIcon: icons16.Arrow.ChevronRightSmall,
123
+ pageCountDescTextSize: 's',
124
+ pageCountDropdownItemDividerSize: 'xxs',
125
+ pageCountDropdownItemLabelSize: 's',
126
+ pageCountDropdownItemSize: 's',
127
+ pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
128
+ pageCountInputTextSize: 's',
129
+ previousIcon: icons16.Arrow.ChevronLeftSmall,
97
130
  },
98
131
  sizeXS: {
99
132
  size: 'xs',
100
133
  labelTextSize: 'xs',
134
+ textSize: 'xs',
101
135
  beforeSize: '16',
136
+ // TODO: replace builderIcon: icons24.General.Dot with an builderIcon: icons14.General.Dot,
137
+ builderIcon: icons24.General.Dot,
102
138
  iconAfterFillSize: '16',
103
- nextIcon: icons32.Arrow.ChevronRightSmall,
104
- pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
105
- previousIcon: icons32.Arrow.ChevronLeftSmall,
139
+ nextIcon: icons14.Arrow.ChevronRightSmall,
140
+ pageCountDescTextSize: 'xs',
141
+ pageCountDropdownItemDividerSize: 'xxs',
142
+ pageCountDropdownItemLabelSize: 'xs',
143
+ pageCountDropdownItemSize: 'xs',
144
+ pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
145
+ pageCountInputTextSize: 'xs',
146
+ previousIcon: icons14.Arrow.ChevronLeftSmall,
106
147
  },
107
148
  };
108
149
 
@@ -123,7 +164,10 @@ var paginationAppearanceStyle = {
123
164
  var paginationAppearanceSurface = {
124
165
  surfacePrimary: {
125
166
  fill: 'surfacePrimary',
126
- fillHover: 'surfaceSecondary',
167
+ fillActive: 'surfaceTertiary',
168
+ fillInput: 'surfacePrimary',
169
+ textColor: 'surfaceTextPrimary',
170
+ builderIconFillIcon: 'surfaceItemPrimary',
127
171
  nextIconFillIcon: 'surfaceItemPrimary',
128
172
  pageCountDescTextColor: 'surfaceTextPrimary',
129
173
  pageCountDropdownAlignment: 'topCenter',
@@ -155,7 +199,7 @@ var paginationConfig = {
155
199
  },
156
200
  };
157
201
  function Pagination(props) {
158
- var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, isPageCount = props.isPageCount, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
202
+ var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, isPageCount = props.isPageCount, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, isPageLabelBuilder = props.isPageLabelBuilder, isSkeleton = props.isSkeleton, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
159
203
  /**
160
204
  * @deprecated The method should not be used
161
205
  */
@@ -217,14 +261,15 @@ function Pagination(props) {
217
261
  return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
218
262
  }, {});
219
263
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
220
- var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize, sizeClass = propsGenerator.sizeClass;
264
+ var justifyContentClass = propsGenerator.justifyContentClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillInputClass = propsGenerator.fillInputClass, fillInputHoverClass = propsGenerator.fillInputHoverClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, builderIcon = propsGenerator.builderIcon, builderIconFill = propsGenerator.builderIconFill, builderIconFillIcon = propsGenerator.builderIconFillIcon, builderIconFillSize = propsGenerator.builderIconFillSize, builderIconSize = propsGenerator.builderIconSize, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize, sizeClass = propsGenerator.sizeClass;
221
265
  var paginationStyles = useStyles(props).styles;
222
- return (jsxs("div", { className: clsx('pagination', sizeClass && "pagination_size_".concat(sizeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
266
+ return (jsxs("div", { className: clsx('pagination', sizeClass && "pagination_size_".concat(sizeClass), isSkeleton && "pagination_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: clsx('pagination__item_state_active cursor_type_default', fillActiveClass && "fill_active_".concat(fillActiveClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
223
267
  "pagination_justify-content_".concat(justifyContentClass)),
224
268
  // pages settings
225
- forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
269
+ forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: clsx('pagination__item pagination__item_next', sizeClass && "pagination__item_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass)),
226
270
  // next button
227
- nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
271
+ nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: clsx('pagination__item', sizeClass && "pagination__item_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass)), pageCount: paginationPagesCount, pageLabelBuilder: isPageLabelBuilder &&
272
+ (function () { return (jsx(Icon, { fill: builderIconFill, fillSize: builderIconFillSize, iconFill: builderIconFillIcon, iconSize: builderIconSize, shape: "circular", SvgImage: builderIcon })); }), pageLinkClassName: clsx('pagination__item-link', textSizeClass && "pagination__item-link_size_".concat(textSizeClass), textColorClass && 'text', textColorClass && "text-color_".concat(textColorClass)), pageRangeDisplayed: pageRangeDisplayed, previousClassName: clsx('pagination__item pagination__item_previous', sizeClass && "pagination__item_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass)), previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillInputClass), fillHoverClass && "fill_hover_".concat(fillInputHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
228
273
  return activeDropdownItem === item ? (jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
229
274
  pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
230
275
  pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
@@ -20,75 +20,56 @@ import '../hooks/useStyles/styleAttributes.js';
20
20
 
21
21
  var radioAppearanceDefault = {
22
22
  defaultPrimary: {
23
- fillCheckmark: 'surfacePrimary',
24
- fillRadio: 'surfaceTertiary',
25
- fillRadioActive: 'surfaceTertiary',
26
- fillRadioActiveHover: 'surfaceTertiary',
27
- fillRadioHover: 'surfaceTertiary',
23
+ fill: 'surfaceSecondary',
24
+ fillCheckmark: 'surfaceQuaternary',
28
25
  labelTextColor: 'surfaceTextPrimary',
29
26
  descTextColor: 'surfaceTextPrimary',
30
- borderColorRadio: 'surfaceBorderPrimary',
31
- borderColorRadioActive: 'surfaceBorderPrimary',
32
- borderColorRadioActiveHover: 'surfaceBorderPrimary',
33
- borderColorRadioHover: 'surfaceBorderPrimary',
34
- },
35
- defaultSecondary: {
36
- fill: 'surfacePrimary',
37
- borderColor: 'surfaceBorderTertiary',
38
- borderHover: 'surfaceBorderQuaternary',
39
- iconBeforeFill: 'surfaceItemQuaternary',
40
- iconClearFill: 'surfaceItemPrimary',
41
- placeholderTextColor: 'surfaceTextSecondary',
27
+ borderColor: 'surfaceBorderQuaternary',
28
+ borderColorRadio: 'surfaceBorderQuaternary',
29
+ borderColorRadioActive: 'surfaceBorderQuaternary',
42
30
  },
43
31
  };
44
32
 
45
33
  var radioAppearanceDisabled = {
46
34
  disabledPrimary: {
47
- fill: 'warningTertiary',
48
- borderColor: 'warningBorderQuaternary',
49
- borderHover: 'warningBorderQuaternary',
50
- textColor: 'surfaceTextPrimary',
51
- iconBeforeFill: 'warningItemQuaternary',
52
- iconClearFill: 'warningItemPrimary',
53
- placeholderTextColor: 'surfaceTextQuaternary',
35
+ fill: 'surfaceDisabled',
36
+ fillCheckmark: 'surfaceQuaternary',
37
+ labelTextColor: 'surfaceTextDisabled',
38
+ descTextColor: 'surfaceTextDisabled',
39
+ borderColor: 'surfaceBorderDisabled',
40
+ borderColorRadio: 'surfaceBorderDisabled',
41
+ borderColorRadioActive: 'surfaceBorderDisabled',
54
42
  },
55
43
  };
56
44
 
57
45
  var radioAppearanceError = {
58
- error: {
59
- fill: 'errorPrimary',
60
- fillHover: 'errorPrimaryHover',
61
- labelTextColor: 'errorTextPrimary',
62
- labelTextColorHover: 'errorTextPrimary',
63
- loaderFill: 'errorPrimary',
64
- loaderItemFill: 'errorItemPrimary',
46
+ errorPrimary: {
47
+ fill: 'errorTertiary',
48
+ fillCheckmark: 'errorPrimary',
49
+ labelTextColor: 'surfaceTextPrimary',
50
+ descTextColor: 'surfaceTextPrimary',
51
+ borderColor: 'errorBorderQuaternary',
52
+ borderColorRadio: 'errorBorderQuaternary',
53
+ borderColorRadioActive: 'errorBorderQuaternary',
65
54
  },
66
55
  };
67
56
 
68
57
  var radioAppearanceRequire = {
69
58
  requirePrimary: {
70
59
  fill: 'warningTertiary',
71
- borderColor: 'warningBorderQuaternary',
72
- borderHover: 'warningBorderQuaternary',
73
- textColor: 'surfaceTextPrimary',
74
- iconBeforeFill: 'warningItemQuaternary',
75
- iconClearFill: 'warningItemPrimary',
76
- placeholderTextColor: 'surfaceTextQuaternary',
77
- },
78
- requireSecondary: {
79
- fill: 'surfaceSecondary',
80
- borderColor: 'surfaceBorderTertiary',
81
- borderHover: 'surfaceBorderQuaternary',
82
- iconBeforeFill: 'surfaceItemQuaternary',
83
- iconClearFill: 'surfaceItemPrimary',
84
- placeholderTextColor: 'surfaceTextSecondary',
60
+ fillCheckmark: 'warningPrimary',
61
+ labelTextColor: 'surfaceTextPrimary',
62
+ descTextColor: 'surfaceTextPrimary',
63
+ borderColor: 'warningBorderSecondary',
64
+ borderColorRadio: 'warningBorderSecondary',
65
+ borderColorRadioActive: 'warningBorderSecondary',
85
66
  },
86
67
  };
87
68
 
88
69
  var radioAppearanceSize = {
89
70
  sizeM: {
90
71
  size: 'm',
91
- labelTextSize: 'm',
72
+ labelTextSize: 's',
92
73
  descTextSize: 'xs',
93
74
  },
94
75
  sizeXS: {
@@ -104,29 +85,28 @@ var radioAppearanceSize = {
104
85
  };
105
86
 
106
87
  var radioAppearanceStyle = {
107
- full: {
108
- borderColor: '0',
109
- },
110
- ghost: {
111
- fill: 'none',
112
- borderColor: '0',
88
+ solid: {
89
+ borderColor: 'none',
113
90
  },
114
91
  outlined: {
115
92
  fill: 'none',
116
93
  },
117
- solid: {
118
- borderColor: '0',
94
+ full: {},
95
+ ghost: {
96
+ fill: 'none',
97
+ borderColor: 'none',
119
98
  },
120
99
  };
121
100
 
122
101
  var radioAppearanceSuccess = {
123
- success: {
124
- fill: 'successPrimary',
125
- fillHover: 'successPrimaryHover',
126
- labelTextColor: 'successTextSecondary',
127
- labelTextColorHover: 'successTextSecondary',
128
- loaderFill: 'successPrimary',
129
- loaderItemFill: 'successItemPrimary',
102
+ successPrimary: {
103
+ fill: 'successTertiary',
104
+ fillCheckmark: 'accentItemSecondary',
105
+ labelTextColor: 'surfaceTextPrimary',
106
+ descTextColor: 'surfaceTextPrimary',
107
+ borderColor: 'accentBorderSecondary',
108
+ borderColorRadio: 'accentBorderSecondary',
109
+ borderColorRadioActive: 'accentBorderSecondary',
130
110
  },
131
111
  };
132
112
 
@@ -139,14 +119,14 @@ var radioConfig = {
139
119
  },
140
120
  };
141
121
  function Radio(props) {
142
- var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, onChange = props.onChange;
122
+ var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, isSkeleton = props.isSkeleton, onChange = props.onChange;
143
123
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
144
124
  var _a;
145
125
  return (__assign(__assign({}, resultConfig), (_a = radioConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
146
126
  }, {});
147
127
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
148
- var fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, fillRadioActiveClass = propsGenerator.fillRadioActiveClass, fillRadioActiveHoverClass = propsGenerator.fillRadioActiveHoverClass, fillRadioClass = propsGenerator.fillRadioClass, fillRadioHoverClass = propsGenerator.fillRadioHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorRadioActiveClass = propsGenerator.borderColorRadioActiveClass, borderColorRadioActiveHoverClass = propsGenerator.borderColorRadioActiveHoverClass, borderColorRadioClass = propsGenerator.borderColorRadioClass, borderColorRadioHoverClass = propsGenerator.borderColorRadioHoverClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b;
149
- return (jsxs(Tag, { className: clsx(className, 'radio', fillClass && "fill_".concat(fillClass)), htmlFor: id, children: [jsxs("div", { className: clsx('radio__item'), children: [jsx("input", { id: id, className: "radio__input", type: "radio", disabled: isDisabled && 'disabled', checked: checked, onChange: onChange }), jsx("div", { className: clsx('radio__state', shapeClass && "shape_".concat(shapeClass), !checked
128
+ var fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, fillRadioActiveClass = propsGenerator.fillRadioActiveClass, fillRadioActiveHoverClass = propsGenerator.fillRadioActiveHoverClass, fillRadioClass = propsGenerator.fillRadioClass, fillRadioHoverClass = propsGenerator.fillRadioHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorRadioActiveClass = propsGenerator.borderColorRadioActiveClass, borderColorRadioActiveHoverClass = propsGenerator.borderColorRadioActiveHoverClass, borderColorRadioClass = propsGenerator.borderColorRadioClass, borderColorRadioHoverClass = propsGenerator.borderColorRadioHoverClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b, sizeClass = propsGenerator.sizeClass;
129
+ return (jsxs(Tag, { className: clsx(className, 'radio', fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), isSkeleton && 'radio_skeleton', sizeClass && "radio_size_".concat(sizeClass)), htmlFor: id, children: [jsxs("div", { className: "radio__item", children: [jsx("input", { id: id, className: "radio__input", type: "radio", disabled: isDisabled && 'disabled', checked: checked, onChange: onChange }), jsx("div", { className: clsx('radio__state', !checked
150
130
  ? fillRadioClass && "fill_".concat(fillRadioClass)
151
131
  : fillRadioActiveClass && "fill_active_".concat(fillRadioActiveClass), !checked
152
132
  ? fillRadioHoverClass && "fill_hover_".concat(fillRadioHoverClass)
@@ -158,7 +138,7 @@ function Radio(props) {
158
138
  ? borderColorRadioHoverClass &&
159
139
  "border-color_hover_".concat(borderColorRadioHoverClass)
160
140
  : borderColorRadioActiveHoverClass &&
161
- "border-color_active_hover_".concat(borderColorRadioActiveHoverClass)), children: "\u00A0" }), jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && "fill_".concat(fillCheckmarkClass)), children: "\u00A0" })] }), label && (jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
141
+ "border-color_active_hover_".concat(borderColorRadioActiveHoverClass), shapeClass && "shape_".concat(shapeClass)), children: "\u00A0" }), jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && "fill_".concat(fillCheckmarkClass)), children: "\u00A0" })] }), label && (jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
162
142
  }
163
143
 
164
144
  export { Radio, radioAppearance, radioConfig };
@@ -6,7 +6,7 @@ import SVG from 'react-inlinesvg';
6
6
  import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button_es_CBUUZuP3.js';
9
+ import { B as Button } from '../Button_es_Cv4k5QQw.js';
10
10
  import { G as Group } from '../Group_es_CYW2Hquh.js';
11
11
  import { T as Text } from '../Text_es_BfLRfj-5.js';
12
12
  import '@itcase/common';
@@ -22,7 +22,7 @@ import 'react-responsive';
22
22
  import '../utils/setViewportProperty.js';
23
23
  import 'lodash/maxBy';
24
24
  import '../hooks/useStyles/styleAttributes.js';
25
- import '../Tooltip_es_Cc2orRUE.js';
25
+ import '../Tooltip_es_Y2aoFQW7.js';
26
26
  import '../Link_es_DxtZLeKY.js';
27
27
  import '../Loader_es_GYOr0UTX.js';
28
28
 
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { I as Icon } from '../Tooltip_es_Cc2orRUE.js';
8
+ import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
9
9
  import { T as Text } from '../Text_es_BfLRfj-5.js';
10
10
  import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
11
11
  import 'lodash/camelCase';
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
4
4
  import clsx from 'clsx';
5
- import { I as Icon } from '../Tooltip_es_Cc2orRUE.js';
5
+ import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { T as Text } from '../Text_es_BfLRfj-5.js';
8
8
  import '../hooks/useStyles/useStyles.js';
@@ -41,6 +41,23 @@ var segmentedAppearanceDefault = {
41
41
  iconFillActive: 'surfaceItemSecondary',
42
42
  indicatorFill: 'accentPrimary',
43
43
  },
44
+ defaultSecondary: {
45
+ fill: 'surfaceSecondary',
46
+ fillActive: 'accentPrimary',
47
+ fillActiveHover: 'accentPrimary',
48
+ fillHover: 'surfaceSecondary',
49
+ labelTextActiveColor: 'accentTextPrimary',
50
+ labelTextActiveHoverColor: 'accentTextPrimary',
51
+ labelTextColor: 'surfaceTextPrimary',
52
+ borderColor: 'surfaceBorderQuaternary',
53
+ iconAfterFill: 'surfaceItemQuaternary',
54
+ iconAfterFillActive: 'surfaceItemSecondary',
55
+ iconBeforeFill: 'surfaceItemQuaternary',
56
+ iconBeforeFillActive: 'surfaceItemSecondary',
57
+ iconFill: 'surfaceItemQuaternary',
58
+ iconFillActive: 'surfaceItemSecondary',
59
+ indicatorFill: 'accentPrimary',
60
+ },
44
61
  };
45
62
 
46
63
  var segmentedAppearanceDisabled = {
@@ -98,7 +115,7 @@ var segmentedAppearanceSize = {
98
115
  labelTextSize: 'xs',
99
116
  iconSize: '16',
100
117
  },
101
- sizeXSS: {
118
+ sizeXXS: {
102
119
  size: 'xxs',
103
120
  labelTextSize: 'xxs',
104
121
  iconSize: '14',
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Select, { components } from 'react-select';
4
- import { I as Icon, B as Badge } from '../Tooltip_es_Cc2orRUE.js';
4
+ import { I as Icon, B as Badge } from '../Tooltip_es_Y2aoFQW7.js';
5
5
  import React, { useRef, useCallback, useEffect, useMemo } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
@@ -51,7 +51,7 @@ var selectAppearanceDefault = {
51
51
  noOptionsText: 'Ничего не найдено...',
52
52
  noOptionsTextColor: 'surfaceTextPrimary',
53
53
  optionFill: 'surfacePrimary',
54
- optionFillHover: 'surfaceHover',
54
+ optionFillHover: 'surfaceSecondary',
55
55
  optionTextColor: 'surfaceTextPrimary',
56
56
  placeholder: 'Выбрать...',
57
57
  placeholderTextColor: 'surfaceTextQuaternary',
@@ -227,7 +227,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
227
227
  return {};
228
228
  }, [appearance]);
229
229
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
230
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, sizeClass = propsGenerator.sizeClass;
230
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
231
231
  return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
232
232
  IndicatorSeparator: function () { return null; },
233
233
  ClearIndicator: SelectClearIndicator,
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { b as Title } from '../Tooltip_es_Cc2orRUE.js';
7
+ import { b as Title } from '../Tooltip_es_Y2aoFQW7.js';
8
8
  import '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge, I as Icon } from '../Tooltip_es_Cc2orRUE.js';
7
+ import { B as Badge, I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
8
8
  import { D as Divider } from '../Divider_es_kY-30pft.js';
9
9
  import { L as Link } from '../Link_es_DxtZLeKY.js';
10
10
  import { T as Text } from '../Text_es_BfLRfj-5.js';
@@ -51,7 +51,7 @@ var textareaAppearanceDefault = {
51
51
 
52
52
  var textareaAppearanceDisabled = {
53
53
  disabledPrimary: {
54
- fill: 'surfaceFillDisabled',
54
+ fill: 'surfaceDisabled',
55
55
  borderColor: 'errorBorderQuaternary',
56
56
  borderHover: 'errorBorderQuaternary',
57
57
  textColor: 'surfaceTextQuaternary',
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_Cc2orRUE.js';
6
+ import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
7
7
  import { T as Text } from '../Text_es_BfLRfj-5.js';
8
8
  import 'react';
9
9
  import 'lodash/camelCase';
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_Cc2orRUE.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_Y2aoFQW7.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_Cc2orRUE.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_Y2aoFQW7.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -46,17 +46,20 @@
46
46
  ^^&__wrapper {
47
47
  min-width: var(
48
48
  --button-type-$(type)-$(size)-min-width,
49
- --button-$(size)-min-width
49
+ var(--button-$(size)-min-width),
50
50
  );
51
51
  min-height: var(
52
52
  --button-type-$(type)-$(size)-min-height,
53
- --button-$(size)-min-height
53
+ var(--button-$(size)-min-height)
54
54
  );
55
55
  padding: var(
56
56
  --button-type-$(type)-$(size)-padding,
57
- --button-$(size)-padding
57
+ var(--button-$(size)-padding)
58
+ );
59
+ gap: var(
60
+ --button-type-$(type)-$(size)-gap,
61
+ var(--button-$(size)-gap)
58
62
  );
59
- gap: var(--button-type-$(type)-$(size)-gap, --button-$(size)-gap);
60
63
  }
61
64
  }
62
65
  }
@@ -109,6 +109,30 @@
109
109
  }
110
110
  }
111
111
  }
112
+ .dropdown__item {
113
+ &&_skeleton {
114
+ background-size: 200% !important;
115
+ border: none;
116
+ animation: dropdownItemSkeleton 3s infinite linear !important;
117
+ background-image: linear-gradient(
118
+ 90deg,
119
+ var(--color-surface-fill-secondary),
120
+ var(--color-surface-fill-tertiary),
121
+ var(--color-surface-fill-secondary)
122
+ ) !important;
123
+ & * {
124
+ opacity: 0%;
125
+ }
126
+ }
127
+ }
128
+ @keyframes dropdownItemSkeleton {
129
+ 0% {
130
+ background-position: 200%;
131
+ }
132
+ 100% {
133
+ background-position: -200%;
134
+ }
135
+ }
112
136
  :root {
113
137
  --dropdown-item-transition: all 0.2s ease 0s;
114
138