@itcase/ui 1.8.23 → 1.8.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{Button_cjs_MfWRETXI.js → Button_cjs_CYUpbdMO.js} +133 -52
  2. package/dist/{Button_es_zW2pQTwL.js → Button_es_Dp6yFZgn.js} +133 -52
  3. package/dist/{ChipsGroup_cjs_CTh6644i.js → ChipsGroup_cjs_Ct-NrPmJ.js} +2 -1
  4. package/dist/{ChipsGroup_es_BFxBhYNB.js → ChipsGroup_es_BNuhlSG6.js} +2 -1
  5. package/dist/{DatePicker_cjs_uDJmwWkk.js → DatePicker_cjs_DamcZFbX.js} +2 -2
  6. package/dist/{DatePicker_es_5r0isX1_.js → DatePicker_es_Bm_onmmb.js} +2 -2
  7. package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
  8. package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
  9. package/dist/{DropdownItem_cjs_C6Jx7-kx.js → DropdownItem_cjs_B_7anyaJ.js} +1 -1
  10. package/dist/{DropdownItem_es_UdkGGVtg.js → DropdownItem_es_B4EZYdJA.js} +1 -1
  11. package/dist/{Label_cjs_jN0dxo1q.js → Label_cjs_ByGAWJcj.js} +168 -28
  12. package/dist/{Label_es_CFQzN-2m.js → Label_es_BtwZ3a2V.js} +168 -28
  13. package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
  14. package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
  17. package/dist/cjs/components/Breadcrumbs.js +46 -57
  18. package/dist/cjs/components/Button.js +2 -2
  19. package/dist/cjs/components/Cell.js +1 -1
  20. package/dist/cjs/components/Chips.js +1 -1
  21. package/dist/cjs/components/Choice.js +1 -1
  22. package/dist/cjs/components/CookiesWarning.js +2 -2
  23. package/dist/cjs/components/DatePeriod.js +81 -14
  24. package/dist/cjs/components/DatePicker.js +4 -4
  25. package/dist/cjs/components/Divider.js +1 -1
  26. package/dist/cjs/components/Dropdown.js +2 -2
  27. package/dist/cjs/components/Label.js +1 -1
  28. package/dist/cjs/components/Loader.js +1 -1
  29. package/dist/cjs/components/Modal.js +1 -1
  30. package/dist/cjs/components/Pagination.js +2 -2
  31. package/dist/cjs/components/Response.js +27 -36
  32. package/dist/cjs/components/Select.js +1 -1
  33. package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
  34. package/dist/cjs/components/Tab.js +133 -39
  35. package/dist/components/Accordion.js +1 -1
  36. package/dist/components/Breadcrumbs/stories/__mock__.js +43 -0
  37. package/dist/components/Breadcrumbs.js +46 -57
  38. package/dist/components/Button.js +2 -2
  39. package/dist/components/Cell.js +1 -1
  40. package/dist/components/Chips.js +1 -1
  41. package/dist/components/Choice.js +1 -1
  42. package/dist/components/CookiesWarning.js +2 -2
  43. package/dist/components/DatePeriod.js +81 -15
  44. package/dist/components/DatePicker.js +4 -4
  45. package/dist/components/Divider.js +1 -1
  46. package/dist/components/Dropdown.js +2 -2
  47. package/dist/components/Label.js +1 -1
  48. package/dist/components/Loader.js +1 -1
  49. package/dist/components/Modal.js +1 -1
  50. package/dist/components/Pagination.js +2 -2
  51. package/dist/components/Response.js +27 -36
  52. package/dist/components/Select.js +1 -1
  53. package/dist/components/Tab/stories/__mock__.js +12 -0
  54. package/dist/components/Tab.js +134 -40
  55. package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
  56. package/dist/css/components/Button/Button.css +4 -4
  57. package/dist/css/components/Label/Label.css +10 -9
  58. package/dist/css/components/Loader/Loader.css +21 -2
  59. package/dist/stories/Plsyground.mdx +1 -3
  60. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
  61. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
  62. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
  63. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
  64. package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
  65. package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
  66. package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
  67. package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
  68. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
  69. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
  70. package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
  71. package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
  72. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
  73. package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
  74. package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -4
  75. package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
  76. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +30 -37
  77. package/dist/types/components/DatePeriod/datePeriodIntervals.d.ts +3 -0
  78. package/dist/types/components/DatePeriod/index.d.ts +1 -0
  79. package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
  80. package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
  81. package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
  82. package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
  83. package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
  84. package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
  85. package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
  86. package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
  87. package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
  88. package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
  89. package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
  90. package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
  91. package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
  92. package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
  93. package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
  94. package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
  95. package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
  96. package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
  97. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
  98. package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
  99. package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
  100. package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
  101. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
  102. package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
  103. package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
  104. package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
  105. package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
  106. package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
  107. package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
  108. package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
  109. package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
  110. package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +4 -1
  111. package/package.json +8 -6
@@ -1,9 +1,9 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import { useMemo } from 'react';
4
3
  import clsx from 'clsx';
5
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
7
  import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
8
8
  import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
9
9
  import { T as Text } from '../Text_es_BRb3qqKM.js';
@@ -91,53 +91,46 @@ var breadcrumbsAppearanceSecondary = {
91
91
 
92
92
  var breadcrumbsAppearanceSize = {
93
93
  sizeXXL: {
94
- textSize: 'xxl',
95
- iconAfterFillSize: '24',
96
- iconAfterSize: '24',
97
- iconBeforeFillSize: '24',
98
- iconBeforeSize: '24',
94
+ size: 'xxl',
95
+ labelTextSize: 'xxl',
96
+ iconFillSize: '24',
97
+ iconSize: '24',
99
98
  },
100
99
  sizeXL: {
101
- textSize: 'l',
102
- iconAfterFillSize: '24',
103
- iconAfterSize: '24',
104
- iconBeforeFillSize: '24',
105
- iconBeforeSize: '24',
100
+ size: 'xl',
101
+ labelTextSize: 'l',
102
+ iconFillSize: '24',
103
+ iconSize: '24',
106
104
  },
107
105
  sizeL: {
108
- textSize: 'l',
109
- iconAfterFillSize: '24',
110
- iconAfterSize: '24',
111
- iconBeforeFillSize: '24',
112
- iconBeforeSize: '24',
106
+ size: 'l',
107
+ labelTextSize: 'l',
108
+ iconFillSize: '24',
109
+ iconSize: '24',
113
110
  },
114
111
  sizeM: {
115
- textSize: 'm',
116
- iconAfterFillSize: '24',
117
- iconAfterSize: '24',
118
- iconBeforeFillSize: '24',
119
- iconBeforeSize: '24',
112
+ size: 'm',
113
+ labelTextSize: 'm',
114
+ iconFillSize: '24',
115
+ iconSize: '24',
120
116
  },
121
117
  sizeS: {
122
- textSize: 's',
123
- iconAfterFillSize: '20',
124
- iconAfterSize: '20',
125
- iconBeforeFillSize: '20',
126
- iconBeforeSize: '20',
118
+ size: 's',
119
+ labelTextSize: 's',
120
+ iconFillSize: '20',
121
+ iconSize: '20',
127
122
  },
128
123
  sizeXS: {
129
- textSize: 'xs',
130
- iconAfterFillSize: '16',
131
- iconAfterSize: '16',
132
- iconBeforeFillSize: '16',
133
- iconBeforeSize: '16',
124
+ size: 'xs',
125
+ labelTextSize: 'xs',
126
+ iconFillSize: '16',
127
+ iconSize: '16',
134
128
  },
135
129
  sizeXXS: {
136
- textSize: 'xs',
137
- iconAfterFillSize: '14',
138
- iconAfterSize: '14',
139
- iconBeforeFillSize: '14',
140
- iconBeforeSize: '14',
130
+ size: 'xxs',
131
+ labelTextSize: 'xs',
132
+ iconFillSize: '14',
133
+ iconSize: '14',
141
134
  },
142
135
  };
143
136
 
@@ -171,11 +164,7 @@ var breadcrumbsAppearanceSurface = {
171
164
  fill: 'surfacePrimary',
172
165
  fillHover: 'surfacePrimaryHover',
173
166
  textColor: 'surfaceTextPrimary',
174
- },
175
- surfaceQuaternary: {
176
- fill: 'surfaceQuaternary',
177
- fillHover: 'surfaceQuaternaryHover',
178
- textColor: 'surfaceTextPrimary',
167
+ iconFillIcon: 'surfaceItemPrimary',
179
168
  },
180
169
  surfaceSecondary: {
181
170
  fill: 'surfaceSecondary',
@@ -187,6 +176,11 @@ var breadcrumbsAppearanceSurface = {
187
176
  fillHover: 'surfaceTertiaryHover',
188
177
  textColor: 'surfaceTextPrimary',
189
178
  },
179
+ surfaceQuaternary: {
180
+ fill: 'surfaceQuaternary',
181
+ fillHover: 'surfaceQuaternaryHover',
182
+ textColor: 'surfaceTextPrimary',
183
+ },
190
184
  };
191
185
 
192
186
  var breadcrumbsAppearanceWarning = {
@@ -200,34 +194,29 @@ var breadcrumbsAppearanceWarning = {
200
194
 
201
195
  var breadcrumbsAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, breadcrumbsAppearanceSize), breadcrumbsAppearanceStyle), breadcrumbsAppearanceAccent), breadcrumbsAppearanceDanger), breadcrumbsAppearanceError), breadcrumbsAppearanceInfo), breadcrumbsAppearancePrimary), breadcrumbsAppearanceSecondary), breadcrumbsAppearanceSuccess), breadcrumbsAppearanceSurface), breadcrumbsAppearanceWarning);
202
196
 
203
- var breadcrumbsConfig$1 = {
197
+ var breadcrumbsConfig = {
204
198
  appearance: breadcrumbsAppearance};
205
199
  function BreadcrumbsItem(props) {
206
- var className = props.className, appearance = props.appearance, href = props.href, onClick = props.onClick, children = props.children;
200
+ var className = props.className, appearance = props.appearance, href = props.href, isActive = props.isActive, onClick = props.onClick, children = props.children;
207
201
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
208
202
  var _a;
209
- return (__assign(__assign({}, resultConfig), (_a = breadcrumbsConfig$1.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
203
+ return (__assign(__assign({}, resultConfig), (_a = breadcrumbsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
210
204
  }, {});
211
205
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
212
- var fillClass = propsGenerator.fillClass, text = propsGenerator.text, textColor = propsGenerator.textColor, textColorHover = propsGenerator.textColorHover, textSize = propsGenerator.textSize, cursor = propsGenerator.cursor, iconAfter = propsGenerator.iconAfter, iconAfterBgFill = propsGenerator.iconAfterBgFill, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, shapeClass = propsGenerator.shapeClass, underlineClass = propsGenerator.underlineClass;
206
+ var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, text = propsGenerator.text, cursor = propsGenerator.cursor, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, underlineClass = propsGenerator.underlineClass;
213
207
  // @ts-expect-error
214
208
  var itemStyles = useStyles(props).styles;
215
- return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: textSize, textColor: textColor, textColorHover: textColorHover, children: text || children }), iconAfter && (jsx(Icon, { className: "breadcrumbs__item-icon", size: iconAfterSize, fill: iconAfterFill, bgFill: iconAfterBgFill, SvgImage: iconAfter }))] }));
209
+ return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', isActive && 'breadcrumbs__item_current', sizeClass && "breadcrumbs__item_size_".concat(sizeClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
216
210
  }
217
211
 
218
- var breadcrumbsConfig = {
219
- appearance: breadcrumbsAppearance};
220
212
  function Breadcrumbs(props) {
221
- var className = props.className, appearance = props.appearance, breadcrumbsList = props.breadcrumbsList, children = props.children;
222
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
223
- var _a;
224
- return (__assign(__assign({}, resultConfig), (_a = breadcrumbsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
225
- }, {});
226
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
227
- var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a, fillClass = propsGenerator.fillClass, iconAfter = propsGenerator.iconAfter, iconAfterBgFill = propsGenerator.iconAfterBgFill, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textColorHover = propsGenerator.textColorHover, textUnderline = propsGenerator.textUnderline, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
213
+ var className = props.className, breadcrumbsAppearance = props.breadcrumbsAppearance, breadcrumbsList = props.breadcrumbsList, children = props.children;
214
+ var propsGenerator = useDevicePropsGenerator(props);
215
+ var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
216
+ console.log(breadcrumbsAppearance);
228
217
  var breadcrumbsItemsList = useMemo(function () {
229
218
  if (breadcrumbsList) {
230
- return breadcrumbsList.map(function (item, i) { return (jsx(BreadcrumbsItem, { className: i + 1 === breadcrumbsList.length && 'breadcrumbs__item_current', text: item.text, textColor: textColor, textColorHover: textColorHover, textSize: textSize, href: item.href, iconAfter: i + 1 === breadcrumbsList.length && iconAfter, iconAfterBgFill: iconAfterBgFill, iconAfterFill: iconAfterFill, iconAfterSize: iconAfterSize, underline: textUnderline }, "breadcrumbsItem_".concat(item.id || item.text))); });
219
+ return breadcrumbsList.map(function (item, i) { return (jsx(BreadcrumbsItem, { appearance: breadcrumbsAppearance, text: item.text, icon: item.icon, iconSrc: item.icon, isActive: i + 1 === breadcrumbsList.length && true }, "breadcrumbsItem_".concat(item.key || item.id || item.text))); });
231
220
  }
232
221
  if (children) {
233
222
  return children;
@@ -235,7 +224,7 @@ function Breadcrumbs(props) {
235
224
  return [];
236
225
  }, [children, breadcrumbsList]);
237
226
  var breadcrumbsStyles = useStyles(props).styles;
238
- return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && "width_".concat(widthClass), directionClass && "direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs_shape_".concat(shapeClass)), style: breadcrumbsStyles, children: breadcrumbsItemsList }));
227
+ return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && "width_".concat(widthClass), directionClass && "direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), sizeClass && "size_".concat(sizeClass), shapeClass && "breadcrumbs_shape_".concat(shapeClass)), style: breadcrumbsStyles, children: breadcrumbsItemsList }));
239
228
  }
240
229
 
241
230
  export { Breadcrumbs, BreadcrumbsItem, breadcrumbsAppearance };
@@ -1,4 +1,4 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_zW2pQTwL.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_Dp6yFZgn.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -21,4 +21,4 @@ import '../hooks/useStyles/styleAttributes.js';
21
21
  import '../Text_es_BRb3qqKM.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../Link_es_DxtZLeKY.js';
24
- import '../Loader_es_DEYowVdU.js';
24
+ import '../Loader_es_DHKB6tTw.js';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
6
  import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
7
- import { L as Label } from '../Label_es_CFQzN-2m.js';
7
+ import { L as Label } from '../Label_es_BtwZ3a2V.js';
8
8
  import { T as Text } from '../Text_es_BRb3qqKM.js';
9
9
  import 'react';
10
10
  import 'lodash/camelCase';
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_BFxBhYNB.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_BNuhlSG6.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
7
  import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
8
- import { L as Loader } from '../Loader_es_DEYowVdU.js';
8
+ import { L as Loader } from '../Loader_es_DHKB6tTw.js';
9
9
  import { T as Text } from '../Text_es_BRb3qqKM.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { B as Button } from '../Button_es_zW2pQTwL.js';
6
+ import { B as Button } from '../Button_es_Dp6yFZgn.js';
7
7
  import { G as Group } from '../Group_es_CYW2Hquh.js';
8
8
  import { T as Text } from '../Text_es_BRb3qqKM.js';
9
9
  import '../tslib.es6_es_Bwu1Cn-t.js';
@@ -23,7 +23,7 @@ import 'lodash/maxBy';
23
23
  import '../hooks/useStyles/styleAttributes.js';
24
24
  import 'react-inlinesvg';
25
25
  import '../Link_es_DxtZLeKY.js';
26
- import '../Loader_es_DEYowVdU.js';
26
+ import '../Loader_es_DHKB6tTw.js';
27
27
 
28
28
  function CookiesWarning(props) {
29
29
  var className = props.className, message = props.message, _a = props.isHideOnScroll, isHideOnScroll = _a === void 0 ? false : _a;
@@ -1,10 +1,11 @@
1
1
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { useCallback } from 'react';
3
4
  import clsx from 'clsx';
4
- import { D as DatePickerInput } from '../DatePicker_es_5r0isX1_.js';
5
+ import { DateTime } from 'luxon';
6
+ import { D as DatePickerInput } from '../DatePicker_es_Bm_onmmb.js';
5
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_BFxBhYNB.js';
7
- import 'react';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_BNuhlSG6.js';
8
9
  import 'date-fns/locale';
9
10
  import 'react-datepicker';
10
11
  import '../hooks/useStyles/useStyles.js';
@@ -19,14 +20,14 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
19
20
  import 'react-responsive';
20
21
  import '../utils/setViewportProperty.js';
21
22
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Button_es_zW2pQTwL.js';
23
+ import '../Button_es_Dp6yFZgn.js';
23
24
  import '../Tooltip_es_D1w1s33u.js';
24
25
  import '../Text_es_BRb3qqKM.js';
25
26
  import 'react-inlinesvg';
26
27
  import '../Link_es_DxtZLeKY.js';
27
- import '../Loader_es_DEYowVdU.js';
28
+ import '../Loader_es_DHKB6tTw.js';
28
29
  import '../Input_es_CNduH28G.js';
29
- import '../Label_es_CFQzN-2m.js';
30
+ import '../Label_es_BtwZ3a2V.js';
30
31
  import '@itcase/icons/default';
31
32
  import 'lodash/castArray';
32
33
 
@@ -34,6 +35,44 @@ var datePeriodAppearance = {
34
35
  dev: {},
35
36
  };
36
37
 
38
+ /* eslint-disable perfectionist/sort-objects */
39
+ var DATE_PERIOD_INTERVALS = (function () {
40
+ var now = DateTime.local();
41
+ var today = now.toISODate();
42
+ var yesterday = now.minus({ days: 1 }).toISODate();
43
+ var backWeek = now.minus({ days: 6 }).toISODate();
44
+ var backMonth = now.minus({ months: 1, days: -1 }).toISODate();
45
+ var backQuarter = now.minus({ months: 3, days: -1 }).toISODate();
46
+ // NOTE: "Choice" wait in options list the objects with "value" and "label"
47
+ return {
48
+ today: {
49
+ label: 'Сегодня',
50
+ value: 'today',
51
+ dateIntervalsList: [today, today],
52
+ },
53
+ yesterday: {
54
+ label: 'Вчера',
55
+ value: 'yesterday',
56
+ dateIntervalsList: [yesterday, yesterday],
57
+ },
58
+ backWeek: {
59
+ label: 'Неделя',
60
+ value: 'backWeek',
61
+ dateIntervalsList: [backWeek, today],
62
+ },
63
+ backMonth: {
64
+ label: 'Месяц',
65
+ value: 'backMonth',
66
+ dateIntervalsList: [backMonth, today],
67
+ },
68
+ backQuarter: {
69
+ label: 'Квартал',
70
+ value: 'backQuarter',
71
+ dateIntervalsList: [backQuarter, today],
72
+ },
73
+ };
74
+ })();
75
+
37
76
  var datePeriodConfig = {
38
77
  appearance: datePeriodAppearance,
39
78
  setAppearance: function (appearanceConfig) {
@@ -41,21 +80,48 @@ var datePeriodConfig = {
41
80
  },
42
81
  };
43
82
  function DatePeriod(props) {
44
- var className = props.className, appearance = props.appearance, isSkeleton = props.isSkeleton, onClick = props.onClick;
83
+ var className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, isSkeleton = props.isSkeleton, onChangeDatePeriod = props.onChangeDatePeriod;
45
84
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
46
85
  var _a;
47
86
  return (__assign(__assign({}, resultConfig), (_a = datePeriodConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
48
87
  }, {});
49
88
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
50
- var fillClass = propsGenerator.fillClass, size = propsGenerator.size, _a = propsGenerator.chipsSize, chipsSize = _a === void 0 ? 'm' : _a, chipsShape = propsGenerator.chipsShape, _b = propsGenerator.datePickerSize, datePickerSize = _b === void 0 ? 'm' : _b, datePickerAppearance = propsGenerator.datePickerAppearance, datePickerInputFillHover = propsGenerator.datePickerInputFillHover, _c = propsGenerator.datePickerInputSize, datePickerInputSize = _c === void 0 ? 'm' : _c, datePickerInputTextSize = propsGenerator.datePickerInputTextSize, _d = propsGenerator.datePickerInputAppearance, datePickerInputAppearance = _d === void 0 ? 'defaultPrimary' : _d, _e = propsGenerator.chipsAppearance, chipsAppearance = _e === void 0 ? 'surfacePrimary' : _e, shapeClass = propsGenerator.shapeClass;
51
- return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), size && "date-period_size_".concat(size), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs(ChipsGroup, { direction: "horizontal", children: [jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0412\u0447\u0435\u0440\u0430", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041D\u0435\u0434\u0435\u043B\u044F", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041C\u0435\u0441\u044F\u0446", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041A\u0432\u0430\u0440\u0442\u0430\u043B", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0413\u043E\u0434", shape: chipsShape }), jsx(DatePickerInput, { datePickerProps: {
52
- appearance: "".concat(datePickerAppearance, " size").concat(datePickerSize.toUpperCase()),
53
- }, inputProps: {
89
+ var _b = propsGenerator, fillClass = _b.fillClass, _c = _b.chipsAppearance, chipsAppearance = _c === void 0 ? 'surfacePrimary sizeM' : _c, chipsShape = _b.chipsShape, _d = _b.datePickerAppearance, datePickerAppearance = _d === void 0 ? 'sizeM' : _d, _e = _b.datePickerInputAppearance, datePickerInputAppearance = _e === void 0 ? 'defaultPrimary' : _e, datePickerInputFillHover = _b.datePickerInputFillHover, _f = _b.datePickerInputSize, datePickerInputSize = _f === void 0 ? 'm' : _f, datePickerInputTextSize = _b.datePickerInputTextSize, shapeClass = _b.shapeClass, sizeClass = _b.sizeClass;
90
+ var onClickPeriodChips = useCallback(function (selectedPeriodItem) {
91
+ var dateStartIso = selectedPeriodItem.dateIntervalsList[0];
92
+ var dateEndIso = selectedPeriodItem.dateIntervalsList[1];
93
+ onChangeDatePeriod(dateStartIso, dateEndIso);
94
+ }, [onChangeDatePeriod]);
95
+ var onChangeDatePicker = useCallback(function (dateStart, dateEnd) {
96
+ var dateStartIso = null;
97
+ var dateEndIso = null;
98
+ if (dateStart) {
99
+ dateStartIso = DateTime.fromJSDate(dateStart).toISODate();
100
+ }
101
+ if (dateEnd) {
102
+ dateEndIso = DateTime.fromJSDate(dateEnd).toISODate();
103
+ }
104
+ onChangeDatePeriod(dateStartIso, dateEndIso);
105
+ }, [onChangeDatePeriod]);
106
+ var checkIsChipsActive = useCallback(function (targetPeriodItem) {
107
+ var dateStartIso = targetPeriodItem.dateIntervalsList[0];
108
+ var dateEndIso = targetPeriodItem.dateIntervalsList[1];
109
+ return (dateStartIso === datePeriodValueStart &&
110
+ dateEndIso === datePeriodValueEnd);
111
+ }, [datePeriodValueEnd, datePeriodValueStart]);
112
+ return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: chipsAppearance, label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { datePickerProps: {
113
+ appearance: datePickerAppearance,
114
+ selectsRange: true,
115
+ showWeekNumbers: true,
116
+ isClearable: false,
117
+ isStartDefaultNull: true,
118
+ }, endValue: datePeriodValueEnd, inputProps: {
119
+ className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
54
120
  appearance: "".concat(datePickerInputAppearance, " ghost"),
55
- textSize: datePickerInputTextSize,
56
121
  fillHover: datePickerInputFillHover,
57
- className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
58
- } })] }) }));
122
+ textSize: datePickerInputTextSize,
123
+ placeholder: 'Выбрать период',
124
+ }, value: datePeriodValueStart, onChange: onChangeDatePicker })] }) }));
59
125
  }
60
126
 
61
- export { DatePeriod, datePeriodAppearance, datePeriodConfig };
127
+ export { DATE_PERIOD_INTERVALS, DatePeriod, datePeriodAppearance, datePeriodConfig };
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_5r0isX1_.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_Bm_onmmb.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -19,12 +19,12 @@ import '../utils/setViewportProperty.js';
19
19
  import '../hooks/useStyles/useStyles.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Button_es_zW2pQTwL.js';
22
+ import '../Button_es_Dp6yFZgn.js';
23
23
  import '../Tooltip_es_D1w1s33u.js';
24
24
  import '../Text_es_BRb3qqKM.js';
25
25
  import 'react-inlinesvg';
26
26
  import '../Link_es_DxtZLeKY.js';
27
- import '../Loader_es_DEYowVdU.js';
27
+ import '../Loader_es_DHKB6tTw.js';
28
28
  import '../Input_es_CNduH28G.js';
29
- import '../Label_es_CFQzN-2m.js';
29
+ import '../Label_es_BtwZ3a2V.js';
30
30
  import '@itcase/icons/default';
@@ -1,4 +1,4 @@
1
- export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_BdU9qjKa.js';
1
+ export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_BEYLRagS.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_UdkGGVtg.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_B4EZYdJA.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
17
17
  import '../hooks/useStyles/useStyles.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Divider_es_BdU9qjKa.js';
20
+ import '../Divider_es_BEYLRagS.js';
21
21
  import '../Tooltip_es_D1w1s33u.js';
22
22
  import '../Text_es_BRb3qqKM.js';
23
23
  import 'react-inlinesvg';
@@ -1,4 +1,4 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_CFQzN-2m.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_BtwZ3a2V.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 { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_DEYowVdU.js';
1
+ export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_DHKB6tTw.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'clsx';
@@ -7,7 +7,7 @@ import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDev
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
8
  import { O as Overlay } from '../Overlay_es_cI_-_xUO.js';
9
9
  import { b as Title } from '../Tooltip_es_D1w1s33u.js';
10
- import { L as Loader } from '../Loader_es_DEYowVdU.js';
10
+ import { L as Loader } from '../Loader_es_DHKB6tTw.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
13
13
  import 'lodash/upperFirst';
@@ -6,7 +6,7 @@ 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_UdkGGVtg.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_B4EZYdJA.js';
10
10
  import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
11
11
  import { T as Text } from '../Text_es_BRb3qqKM.js';
12
12
  import { icon32, icon24 } from '@itcase/icons/default';
@@ -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 '../Divider_es_BdU9qjKa.js';
25
+ import '../Divider_es_BEYLRagS.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../Link_es_DxtZLeKY.js';
28
28
 
@@ -1,12 +1,11 @@
1
1
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
- import { resposeIcon } from './Response/img.js';
3
2
  import { jsx, jsxs } from 'react/jsx-runtime';
4
3
  import { useMemo } from 'react';
5
4
  import clsx from 'clsx';
6
5
  import SVG from 'react-inlinesvg';
7
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button_es_zW2pQTwL.js';
8
+ import { B as Button } from '../Button_es_Dp6yFZgn.js';
10
9
  import { G as Group } from '../Group_es_CYW2Hquh.js';
11
10
  import { T as Text } from '../Text_es_BRb3qqKM.js';
12
11
  import 'lodash/camelCase';
@@ -23,18 +22,17 @@ import 'lodash/maxBy';
23
22
  import '../hooks/useStyles/styleAttributes.js';
24
23
  import '../Tooltip_es_D1w1s33u.js';
25
24
  import '../Link_es_DxtZLeKY.js';
26
- import '../Loader_es_DEYowVdU.js';
25
+ import '../Loader_es_DHKB6tTw.js';
27
26
 
28
27
  var responseAppearanceConfirm = {
29
28
  confirm: {
30
29
  fill: 'surfacePrimary',
31
30
  titleTextColor: 'surfaceTextPrimary',
31
+ titleTextSize: 'xxl',
32
32
  labelTextColor: 'surfaceTextPrimary',
33
- primaryButtonAppearance: 'accent sizeXXL',
33
+ descTextSize: 'm',
34
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
34
35
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
35
- svgFill: 'surfaceTertiary',
36
- SvgImage: resposeIcon.Confirm,
37
- svgPathFill: 'surfaceItemQuaternary',
38
36
  },
39
37
  };
40
38
 
@@ -42,12 +40,11 @@ var responseAppearanceFail = {
42
40
  fail: {
43
41
  fill: 'surfacePrimary',
44
42
  titleTextColor: 'surfaceTextPrimary',
43
+ titleTextSize: 'xxl',
45
44
  labelTextColor: 'surfaceTextPrimary',
46
- primaryButtonAppearance: 'accent sizeXXL',
45
+ descTextSize: 'm',
46
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
47
47
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
48
- svgFill: 'surfaceTertiary',
49
- SvgImage: resposeIcon.Fail,
50
- svgPathFill: 'surfaceItemQuaternary',
51
48
  },
52
49
  };
53
50
 
@@ -55,12 +52,11 @@ var responseAppearanceNothingFound = {
55
52
  nothingFound: {
56
53
  fill: 'surfacePrimary',
57
54
  titleTextColor: 'surfaceTextPrimary',
55
+ titleTextSize: 'xxl',
58
56
  labelTextColor: 'surfaceTextPrimary',
59
- primaryButtonAppearance: 'accent sizeXXL',
57
+ descTextSize: 'm',
58
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
60
59
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
61
- svgFill: 'surfaceTertiary',
62
- SvgImage: resposeIcon.NothingFound,
63
- svgPathFill: 'surfaceItemQuaternary',
64
60
  },
65
61
  };
66
62
 
@@ -68,12 +64,11 @@ var responseAppearanceRefresh = {
68
64
  refresh: {
69
65
  fill: 'surfacePrimary',
70
66
  titleTextColor: 'surfaceTextPrimary',
67
+ titleTextSize: 'xxl',
71
68
  labelTextColor: 'surfaceTextPrimary',
72
- primaryButtonAppearance: 'accent sizeXXL',
69
+ descTextSize: 'm',
70
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
73
71
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
74
- svgFill: 'surfaceTertiary',
75
- SvgImage: resposeIcon.Refresh,
76
- svgPathFill: 'surfaceItemQuaternary',
77
72
  },
78
73
  };
79
74
 
@@ -81,12 +76,11 @@ var responseAppearanceError = {
81
76
  error: {
82
77
  fill: 'surfacePrimary',
83
78
  titleTextColor: 'surfaceTextPrimary',
79
+ titleTextSize: 'xxl',
84
80
  labelTextColor: 'surfaceTextPrimary',
85
- primaryButtonAppearance: 'error sizeXXL',
86
- secondaryButtonAppearance: 'sizeXXL surfaceSecondary',
87
- svgFill: 'errorPrimary',
88
- SvgImage: resposeIcon.Error,
89
- svgPathFill: 'accentItemPrimary',
81
+ descTextSize: 'm',
82
+ primaryButtonAppearance: 'errorPrimary sizeXXL',
83
+ secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
90
84
  },
91
85
  };
92
86
 
@@ -94,12 +88,11 @@ var responseAppearanceSuccess = {
94
88
  success: {
95
89
  fill: 'surfacePrimary',
96
90
  titleTextColor: 'surfaceTextPrimary',
91
+ titleTextSize: 'xxl',
97
92
  labelTextColor: 'surfaceTextPrimary',
93
+ descTextSize: 'm',
98
94
  primaryButtonAppearance: 'accentPrimary sizeXXL',
99
95
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
100
- svgFill: 'accentPrimary',
101
- SvgImage: resposeIcon.Success,
102
- svgPathFill: 'accentItemPrimary',
103
96
  },
104
97
  };
105
98
 
@@ -107,12 +100,11 @@ var responseAppearanceUnableLoadData = {
107
100
  unableLoadData: {
108
101
  fill: 'surfacePrimary',
109
102
  titleTextColor: 'surfaceTextPrimary',
103
+ titleTextSize: 'xxl',
110
104
  labelTextColor: 'surfaceTextPrimary',
111
- primaryButtonAppearance: 'accent sizeXXL',
105
+ descTextSize: 'm',
106
+ primaryButtonAppearance: 'accentPrimary sizeXXL',
112
107
  secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
113
- svgFill: 'surfaceTertiary',
114
- SvgImage: resposeIcon.UnableLoadData,
115
- svgPathFill: 'surfaceItemQuaternary',
116
108
  },
117
109
  };
118
110
 
@@ -120,12 +112,11 @@ var responseAppearanceWarning = {
120
112
  warning: {
121
113
  fill: 'surfacePrimary',
122
114
  titleTextColor: 'surfaceTextPrimary',
115
+ titleTextSize: 'xxl',
123
116
  labelTextColor: 'surfaceTextPrimary',
124
- primaryButtonAppearance: 'warning sizeXXL',
125
- secondaryButtonAppearance: 'sizeXXL surfaceSecondary',
126
- svgFill: 'warningPrimary',
127
- SvgImage: resposeIcon.Warning,
128
- svgPathFill: 'accentItemPrimary',
117
+ descTextSize: 'm',
118
+ primaryButtonAppearance: 'warningPrimary sizeXXL',
119
+ secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
129
120
  },
130
121
  };
131
122
 
@@ -8,7 +8,7 @@ import CreatableSelect from 'react-select/creatable';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { T as Text } from '../Text_es_BRb3qqKM.js';
10
10
  import { G as Group } from '../Group_es_CYW2Hquh.js';
11
- import { D as Divider } from '../Divider_es_BdU9qjKa.js';
11
+ import { D as Divider } from '../Divider_es_BEYLRagS.js';
12
12
  import '../hooks/useStyles/useStyles.js';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/maxBy';
@@ -0,0 +1,12 @@
1
+ import { icon16 } from '@itcase/icons/default';
2
+
3
+ var tabListMock = {
4
+ tabList: [
5
+ { key: 1, label: 'Tab 1', isActive: true },
6
+ { key: 2, label: 'Tab 2', isActive: false },
7
+ { key: 3, label: 'Tab 3', badgeValue: 3, isActive: false },
8
+ { key: 4, label: 'Tab 4', icon: icon16.Placeholder, isActive: false },
9
+ ],
10
+ };
11
+
12
+ export { tabListMock };