@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.
- package/dist/{Button_cjs_MfWRETXI.js → Button_cjs_CYUpbdMO.js} +133 -52
- package/dist/{Button_es_zW2pQTwL.js → Button_es_Dp6yFZgn.js} +133 -52
- package/dist/{ChipsGroup_cjs_CTh6644i.js → ChipsGroup_cjs_Ct-NrPmJ.js} +2 -1
- package/dist/{ChipsGroup_es_BFxBhYNB.js → ChipsGroup_es_BNuhlSG6.js} +2 -1
- package/dist/{DatePicker_cjs_uDJmwWkk.js → DatePicker_cjs_DamcZFbX.js} +2 -2
- package/dist/{DatePicker_es_5r0isX1_.js → DatePicker_es_Bm_onmmb.js} +2 -2
- package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
- package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
- package/dist/{DropdownItem_cjs_C6Jx7-kx.js → DropdownItem_cjs_B_7anyaJ.js} +1 -1
- package/dist/{DropdownItem_es_UdkGGVtg.js → DropdownItem_es_B4EZYdJA.js} +1 -1
- package/dist/{Label_cjs_jN0dxo1q.js → Label_cjs_ByGAWJcj.js} +168 -28
- package/dist/{Label_es_CFQzN-2m.js → Label_es_BtwZ3a2V.js} +168 -28
- package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
- package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
- package/dist/cjs/components/Breadcrumbs.js +46 -57
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +81 -14
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +27 -36
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
- package/dist/cjs/components/Tab.js +133 -39
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +43 -0
- package/dist/components/Breadcrumbs.js +46 -57
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +1 -1
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +81 -15
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +27 -36
- package/dist/components/Select.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +12 -0
- package/dist/components/Tab.js +134 -40
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
- package/dist/css/components/Button/Button.css +4 -4
- package/dist/css/components/Label/Label.css +10 -9
- package/dist/css/components/Loader/Loader.css +21 -2
- package/dist/stories/Plsyground.mdx +1 -3
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
- package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -4
- package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +30 -37
- package/dist/types/components/DatePeriod/datePeriodIntervals.d.ts +3 -0
- package/dist/types/components/DatePeriod/index.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
- package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
- package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
- package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
- package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
- package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
- package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +4 -1
- 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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
iconBeforeSize: '24',
|
|
94
|
+
size: 'xxl',
|
|
95
|
+
labelTextSize: 'xxl',
|
|
96
|
+
iconFillSize: '24',
|
|
97
|
+
iconSize: '24',
|
|
99
98
|
},
|
|
100
99
|
sizeXL: {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
iconBeforeSize: '24',
|
|
100
|
+
size: 'xl',
|
|
101
|
+
labelTextSize: 'l',
|
|
102
|
+
iconFillSize: '24',
|
|
103
|
+
iconSize: '24',
|
|
106
104
|
},
|
|
107
105
|
sizeL: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
iconBeforeSize: '24',
|
|
106
|
+
size: 'l',
|
|
107
|
+
labelTextSize: 'l',
|
|
108
|
+
iconFillSize: '24',
|
|
109
|
+
iconSize: '24',
|
|
113
110
|
},
|
|
114
111
|
sizeM: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
iconBeforeSize: '24',
|
|
112
|
+
size: 'm',
|
|
113
|
+
labelTextSize: 'm',
|
|
114
|
+
iconFillSize: '24',
|
|
115
|
+
iconSize: '24',
|
|
120
116
|
},
|
|
121
117
|
sizeS: {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
iconBeforeSize: '20',
|
|
118
|
+
size: 's',
|
|
119
|
+
labelTextSize: 's',
|
|
120
|
+
iconFillSize: '20',
|
|
121
|
+
iconSize: '20',
|
|
127
122
|
},
|
|
128
123
|
sizeXS: {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
iconBeforeSize: '16',
|
|
124
|
+
size: 'xs',
|
|
125
|
+
labelTextSize: 'xs',
|
|
126
|
+
iconFillSize: '16',
|
|
127
|
+
iconSize: '16',
|
|
134
128
|
},
|
|
135
129
|
sizeXXS: {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
|
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
|
|
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,
|
|
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',
|
|
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,
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
|
|
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, {
|
|
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 '../
|
|
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 '../
|
|
24
|
+
import '../Loader_es_DHKB6tTw.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -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 '../
|
|
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';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
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 {
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
28
|
+
import '../Loader_es_DHKB6tTw.js';
|
|
28
29
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
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,
|
|
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
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
27
|
+
import '../Loader_es_DHKB6tTw.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
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';
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
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 '../
|
|
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';
|
package/dist/components/Modal.js
CHANGED
|
@@ -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 '../
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
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 '../
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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 '../
|
|
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 };
|