@itcase/ui 1.8.35 → 1.8.36
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/{Avatar_cjs_kADy_b4o.js → Avatar_cjs_DBoMi2WA.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_DHREqfOD.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_djJUZATX.js} +2 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_X1DzVhok.js} +2 -2
- package/dist/ChipsGroup_cjs_5xsEchPo.js +314 -0
- package/dist/ChipsGroup_es_4TOkv-fm.js +309 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_DffhgUnQ.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_GmkagjKf.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DxBpJAi9.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_Loneq6M7.js} +1 -1
- package/dist/{Input_cjs_arr_wxD2.js → Input_cjs_CPmXkQGd.js} +1 -0
- package/dist/{Input_es_BW6cZThr.js → Input_es_D9Y1Rj5Y.js} +1 -0
- package/dist/{Label_cjs_CP4b6Mg2.js → Label_cjs_C88e2CIP.js} +49 -49
- package/dist/{Label_es_DFSiy5sL.js → Label_es_Bn2aRjLl.js} +49 -49
- package/dist/{Loader_cjs_CCrbD8Em.js → Loader_cjs_Ca4i0sER.js} +4 -2
- package/dist/{Loader_es_B2auu_rc.js → Loader_es_GYOr0UTX.js} +4 -2
- package/dist/{Tooltip_cjs_DinScDnC.js → Tooltip_cjs_oS1iOamX.js} +4 -2
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_LV5ZNg3B.js} +4 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +13 -6
- package/dist/cjs/components/Breadcrumbs.js +17 -18
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +31 -0
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +3 -2
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +12 -5
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -4
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/ScrollOnDrag.js +5 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +24 -9
- package/dist/cjs/components/Segmented.js +80 -51
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +8 -9
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +13 -7
- package/dist/components/Breadcrumbs.js +17 -18
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +29 -0
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice/stories/__mock__.js +15 -15
- package/dist/components/Choice.js +7 -7
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +3 -2
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +12 -5
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +3 -5
- package/dist/components/Response.js +3 -3
- package/dist/components/ScrollOnDrag.js +7 -5
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +23 -11
- package/dist/components/Segmented.js +80 -51
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +8 -9
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +15 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +22 -30
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +53 -6
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +31 -0
- package/dist/css/styles/centering/centering.css +17 -0
- package/dist/css/styles/shape-strength/shape-strength.css +6 -0
- package/dist/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +5 -5
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +24 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +3 -1
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
- package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +5 -5
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -2
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +9 -11
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -2
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +8 -0
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +30 -8
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
- package/dist/types/context/UIContext.d.ts +3 -5
- package/package.json +3 -2
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
|
@@ -4,16 +4,16 @@ import { useRef, useCallback } 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 { I as Icon, T as Tooltip } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Tooltip_es_LV5ZNg3B.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var labelAppearanceAccent = {
|
|
11
11
|
accentMutedPrimary: {
|
|
12
|
-
fill: '
|
|
13
|
-
labelTextColor: '
|
|
14
|
-
borderColor: '
|
|
15
|
-
iconAfterFillIcon: '
|
|
16
|
-
iconBeforeFillIcon: '
|
|
12
|
+
fill: 'accentMutedPrimary',
|
|
13
|
+
labelTextColor: 'accentMutedTextQuaternary',
|
|
14
|
+
borderColor: 'accentMutedBorderSecondary',
|
|
15
|
+
iconAfterFillIcon: 'accentMutedItemQuaternary',
|
|
16
|
+
iconBeforeFillIcon: 'accentMutedItemQuaternary',
|
|
17
17
|
},
|
|
18
18
|
accentPrimary: {
|
|
19
19
|
fill: 'accentPrimary',
|
|
@@ -30,11 +30,11 @@ var labelAppearanceAccent = {
|
|
|
30
30
|
|
|
31
31
|
var labelAppearanceDanger = {
|
|
32
32
|
dangerMutedPrimary: {
|
|
33
|
-
fill: '
|
|
34
|
-
labelTextColor: '
|
|
35
|
-
borderColor: '
|
|
36
|
-
iconAfterFillIcon: '
|
|
37
|
-
iconBeforeFillIcon: '
|
|
33
|
+
fill: 'dangerMutedPrimary',
|
|
34
|
+
labelTextColor: 'dangerMutedTextQuaternary',
|
|
35
|
+
borderColor: 'dangerMutedBorderQuaternary',
|
|
36
|
+
iconAfterFillIcon: 'dangerMutedItemQuaternary',
|
|
37
|
+
iconBeforeFillIcon: 'dangerMutedItemQuaternary',
|
|
38
38
|
},
|
|
39
39
|
dangerPrimary: {
|
|
40
40
|
fill: 'dangerPrimary',
|
|
@@ -46,6 +46,13 @@ var labelAppearanceDanger = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
var labelAppearanceDisable = {
|
|
49
|
+
disableMutedPrimary: {
|
|
50
|
+
fill: 'disableMutedPrimary',
|
|
51
|
+
labelTextColor: 'disableMutedTextPrimary',
|
|
52
|
+
borderColor: 'disableMutedBorderSecondary',
|
|
53
|
+
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
54
|
+
iconBeforeFillIcon: 'disableMutedItemPrimary',
|
|
55
|
+
},
|
|
49
56
|
disablePrimary: {
|
|
50
57
|
fill: 'disablePrimary',
|
|
51
58
|
labelTextColor: 'disableTextPrimary',
|
|
@@ -53,22 +60,15 @@ var labelAppearanceDisable = {
|
|
|
53
60
|
iconAfterFillIcon: 'disableItemPrimary',
|
|
54
61
|
iconBeforeFillIcon: 'disableItemPrimary',
|
|
55
62
|
},
|
|
56
|
-
disableMuted: {
|
|
57
|
-
fill: 'disableMuted',
|
|
58
|
-
labelTextColor: 'disableMutedTextPrimary',
|
|
59
|
-
borderColor: 'disableMutedBorderSecondary',
|
|
60
|
-
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
61
|
-
iconBeforeFillIcon: 'disableMutedItemPrimary',
|
|
62
|
-
},
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
var labelAppearanceError = {
|
|
66
66
|
errorMutedPrimary: {
|
|
67
|
-
fill: '
|
|
68
|
-
labelTextColor: '
|
|
69
|
-
borderColor: '
|
|
70
|
-
iconAfterFillIcon: '
|
|
71
|
-
iconBeforeFillIcon: '
|
|
67
|
+
fill: 'errorMutedPrimary',
|
|
68
|
+
labelTextColor: 'errorMutedTextQuaternary',
|
|
69
|
+
borderColor: 'errorMutedBorderSecondary',
|
|
70
|
+
iconAfterFillIcon: 'errorMutedItemQuaternary',
|
|
71
|
+
iconBeforeFillIcon: 'errorMutedItemQuaternary',
|
|
72
72
|
},
|
|
73
73
|
errorPrimary: {
|
|
74
74
|
fill: 'errorPrimary',
|
|
@@ -82,7 +82,7 @@ var labelAppearanceError = {
|
|
|
82
82
|
|
|
83
83
|
var labelAppearanceInfo = {
|
|
84
84
|
infoMutedPrimary: {
|
|
85
|
-
fill: '
|
|
85
|
+
fill: 'infoMutedPrimary',
|
|
86
86
|
labelTextColor: 'infoMutedTextPrimary',
|
|
87
87
|
borderColor: 'infoMutedBorderSecondary',
|
|
88
88
|
iconAfterFillIcon: 'infoMutedItemPrimary',
|
|
@@ -106,11 +106,11 @@ var labelAppearanceInfo = {
|
|
|
106
106
|
|
|
107
107
|
var labelAppearancePrimary = {
|
|
108
108
|
primaryMutedPrimary: {
|
|
109
|
-
fill: '
|
|
110
|
-
labelTextColor: '
|
|
111
|
-
borderColor: '
|
|
112
|
-
iconAfterFillIcon: '
|
|
113
|
-
iconBeforeFillIcon: '
|
|
109
|
+
fill: 'primaryMutedPrimary',
|
|
110
|
+
labelTextColor: 'primaryMutedTextSecondary',
|
|
111
|
+
borderColor: 'primaryMutedBorderTertiary',
|
|
112
|
+
iconAfterFillIcon: 'primaryMutedItemSecondary',
|
|
113
|
+
iconBeforeFillIcon: 'primaryMutedItemSecondary',
|
|
114
114
|
},
|
|
115
115
|
primaryPrimary: {
|
|
116
116
|
fill: 'primaryPrimary',
|
|
@@ -123,11 +123,11 @@ var labelAppearancePrimary = {
|
|
|
123
123
|
|
|
124
124
|
var labelAppearanceSecondary = {
|
|
125
125
|
secondaryMutedPrimary: {
|
|
126
|
-
fill: '
|
|
127
|
-
labelTextColor: '
|
|
128
|
-
borderColor: '
|
|
129
|
-
iconAfterFillIcon: '
|
|
130
|
-
iconBeforeFillIcon: '
|
|
126
|
+
fill: 'secondaryMutedPrimary',
|
|
127
|
+
labelTextColor: 'secondaryMutedTextQuaternary',
|
|
128
|
+
borderColor: 'secondaryMutedBorderDisabled',
|
|
129
|
+
iconAfterFillIcon: 'secondaryMutedItemQuaternary',
|
|
130
|
+
iconBeforeFillIcon: 'secondaryMutedItemQuaternary',
|
|
131
131
|
},
|
|
132
132
|
secondaryPrimary: {
|
|
133
133
|
fill: 'secondaryPrimary',
|
|
@@ -213,11 +213,11 @@ var labelAppearanceStyle = {
|
|
|
213
213
|
|
|
214
214
|
var labelAppearanceSuccess = {
|
|
215
215
|
successMutedPrimary: {
|
|
216
|
-
fill: '
|
|
217
|
-
labelTextColor: '
|
|
218
|
-
borderColor: '
|
|
219
|
-
iconAfterFillIcon: '
|
|
220
|
-
iconBeforeFillIcon: '
|
|
216
|
+
fill: 'successMutedPrimary',
|
|
217
|
+
labelTextColor: 'successMutedTextPrimary',
|
|
218
|
+
borderColor: 'successMutedBorderSecondary',
|
|
219
|
+
iconAfterFillIcon: 'successMutedItemPrimary',
|
|
220
|
+
iconBeforeFillIcon: 'successMutedItemPrimary',
|
|
221
221
|
},
|
|
222
222
|
successPrimary: {
|
|
223
223
|
fill: 'successPrimary',
|
|
@@ -231,11 +231,11 @@ var labelAppearanceSuccess = {
|
|
|
231
231
|
|
|
232
232
|
var labelAppearanceSurface = {
|
|
233
233
|
surfaceMutedPrimary: {
|
|
234
|
-
fill: '
|
|
235
|
-
labelTextColor: '
|
|
236
|
-
borderColor: '
|
|
237
|
-
iconAfterFillIcon: '
|
|
238
|
-
iconBeforeFillIcon: '
|
|
234
|
+
fill: 'surfaceMutedPrimary',
|
|
235
|
+
labelTextColor: 'surfaceMutedTextQuaternary',
|
|
236
|
+
borderColor: 'surfaceMutedBorderQuaternary',
|
|
237
|
+
iconAfterFillIcon: 'surfaceMutedItemQuaternary',
|
|
238
|
+
iconBeforeFillIcon: 'surfaceMutedItemQuaternary',
|
|
239
239
|
},
|
|
240
240
|
surfacePrimary: {
|
|
241
241
|
fill: 'surfacePrimary',
|
|
@@ -260,11 +260,11 @@ var labelAppearanceSurface = {
|
|
|
260
260
|
|
|
261
261
|
var labelAppearanceWarning = {
|
|
262
262
|
warningMutedPrimary: {
|
|
263
|
-
fill: '
|
|
264
|
-
labelTextColor: '
|
|
265
|
-
borderColor: '
|
|
266
|
-
iconAfterFillIcon: '
|
|
267
|
-
iconBeforeFillIcon: '
|
|
263
|
+
fill: 'warningMutedPrimary',
|
|
264
|
+
labelTextColor: 'warningMutedTextSecondary',
|
|
265
|
+
borderColor: 'warningMutedBorderSecondary',
|
|
266
|
+
iconAfterFillIcon: 'warningMutedItemSecondary',
|
|
267
|
+
iconBeforeFillIcon: 'warningMutedItemSecondary',
|
|
268
268
|
},
|
|
269
269
|
warningPrimary: {
|
|
270
270
|
fill: 'warningPrimary',
|
|
@@ -105,10 +105,12 @@ function Loader(props) {
|
|
|
105
105
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
106
106
|
}, {});
|
|
107
107
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
108
|
-
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
108
|
+
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
109
109
|
// @ts-expect-error
|
|
110
110
|
var loader = useStyles.useStyles(props).styles;
|
|
111
|
-
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "
|
|
111
|
+
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
112
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
113
|
+
: shapeClass === 'rounded' && 'shape-strength_default'), style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsxRuntime.jsx(Text.Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
exports.Loader = Loader;
|
|
@@ -103,10 +103,12 @@ function Loader(props) {
|
|
|
103
103
|
return (__assign(__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
104
104
|
}, {});
|
|
105
105
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
106
|
-
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
106
|
+
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
107
107
|
// @ts-expect-error
|
|
108
108
|
var loader = useStyles(props).styles;
|
|
109
|
-
return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "
|
|
109
|
+
return (jsxs("div", { className: clsx('loader', className, widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), sizeClass && "loader_size_".concat(sizeClass), isSkeleton && "loader_skeleton", type && "loader_type_".concat(type), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
110
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
111
|
+
: shapeClass === 'rounded' && 'shape-strength_default'), style: loader, children: [children || (jsxs("div", { className: "loader__inner", children: [jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) }), jsx("span", { className: clsx('loader__item', itemFillClass && "fill_".concat(itemFillClass)) })] })), text && (jsx(Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
export { Loader as L, loaderAppearance as a, loaderConfig as l };
|
|
@@ -1067,10 +1067,12 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1067
1067
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1068
1068
|
}, {});
|
|
1069
1069
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
1070
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1070
|
+
var alignClass = propsGenerator.alignClass, centeringClass = propsGenerator.centeringClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1071
1071
|
// @ts-expect-error
|
|
1072
1072
|
var tooltipStyles = useStyles.useStyles(props).styles;
|
|
1073
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass),
|
|
1073
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
1074
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
1075
|
+
: shapeClass === 'rounded' && 'shape-strength_default', alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsxRuntime.jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxRuntime.jsxs("div", { className: "tooltip__inner", children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1074
1076
|
});
|
|
1075
1077
|
|
|
1076
1078
|
exports.Badge = Badge;
|
|
@@ -1065,10 +1065,12 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1065
1065
|
return (__assign(__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1066
1066
|
}, {});
|
|
1067
1067
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1068
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1068
|
+
var alignClass = propsGenerator.alignClass, centeringClass = propsGenerator.centeringClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1069
1069
|
// @ts-expect-error
|
|
1070
1070
|
var tooltipStyles = useStyles(props).styles;
|
|
1071
|
-
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass),
|
|
1071
|
+
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
1072
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
1073
|
+
: shapeClass === 'rounded' && 'shape-strength_default', alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxs("div", { className: "tooltip__inner", children: [title && (jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1072
1074
|
});
|
|
1073
1075
|
|
|
1074
1076
|
export { Badge as B, Icon as I, Tooltip as T, tooltipAppearance as a, Title as b, titleConfig as c, titleAppearance as d, iconAppearance as e, badgeAppearance as f, badgeConfig as g, iconConfig as i, tooltipConfig as t };
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var castArray = require('lodash/castArray');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Tooltip = require('../../
|
|
10
|
+
var Tooltip = require('../../Tooltip_cjs_oS1iOamX.js');
|
|
11
11
|
var Divider = require('../../Divider_cjs_BmCJj3TN.js');
|
|
12
12
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
13
13
|
var _default = require('@itcase/icons/default');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Avatar = require('../../
|
|
3
|
+
var Avatar = require('../../Avatar_cjs_DBoMi2WA.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -16,7 +16,7 @@ require('../context/UIContext.js');
|
|
|
16
16
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
17
17
|
require('react-responsive');
|
|
18
18
|
require('../utils/setViewportProperty.js');
|
|
19
|
-
require('../../
|
|
19
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Avatar = require('../../
|
|
8
|
+
var Avatar = require('../../Avatar_cjs_DBoMi2WA.js');
|
|
9
9
|
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
11
11
|
require('react');
|
|
@@ -21,7 +21,7 @@ require('react-responsive');
|
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
27
27
|
require('../../Image_cjs_CCWqbNn4.js');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../../../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
+
var am = require('@itcase/icons/am');
|
|
4
5
|
|
|
5
6
|
var breadcrumbsListMock = {
|
|
6
7
|
breadcrumbsList: [
|
|
@@ -9,37 +10,43 @@ var breadcrumbsListMock = {
|
|
|
9
10
|
key: 1,
|
|
10
11
|
text: 'Text 123',
|
|
11
12
|
href: '/',
|
|
12
|
-
icon:
|
|
13
|
+
icon: am.icon24.ChevronRightSmall,
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
id: '2',
|
|
16
17
|
key: 2,
|
|
17
18
|
text: 'Text 123',
|
|
18
19
|
href: '/',
|
|
19
|
-
icon:
|
|
20
|
+
icon: am.icon24.ChevronRightSmall,
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
id: '3',
|
|
23
24
|
key: 3,
|
|
24
25
|
text: 'Text 123',
|
|
25
26
|
href: '/',
|
|
26
|
-
icon:
|
|
27
|
+
icon: am.icon24.ChevronRightSmall,
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
id: '4',
|
|
30
31
|
key: 4,
|
|
31
32
|
text: 'Text 123',
|
|
32
33
|
href: '/',
|
|
33
|
-
icon:
|
|
34
|
+
icon: am.icon24.ChevronRightSmall,
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
id: '5',
|
|
37
38
|
key: 5,
|
|
38
39
|
text: 'Text 123',
|
|
39
40
|
href: '/',
|
|
40
|
-
icon:
|
|
41
|
+
icon: am.icon24.ChevronRightSmall,
|
|
41
42
|
},
|
|
42
43
|
],
|
|
43
44
|
};
|
|
45
|
+
var breadcrumbsListMockSize = {
|
|
46
|
+
xl: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign(tslib_es6.__assign({}, item), { icon: am.icon24.ChevronRightSmall })); }),
|
|
47
|
+
l: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign(tslib_es6.__assign({}, item), { icon: am.icon24.ChevronRightSmall })); }),
|
|
48
|
+
m: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (tslib_es6.__assign({}, item)); }),
|
|
49
|
+
};
|
|
44
50
|
|
|
45
51
|
exports.breadcrumbsListMock = breadcrumbsListMock;
|
|
52
|
+
exports.breadcrumbsListMockSize = breadcrumbsListMockSize;
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
|
-
var Tooltip = require('../../
|
|
9
|
+
var Tooltip = require('../../Tooltip_cjs_oS1iOamX.js');
|
|
10
10
|
var Link = require('../../Link_cjs_DbRGq2Yk.js');
|
|
11
11
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -107,47 +107,47 @@ var breadcrumbsAppearanceSize = {
|
|
|
107
107
|
sizeL: {
|
|
108
108
|
size: 'l',
|
|
109
109
|
labelTextSize: 'l',
|
|
110
|
-
iconFillSize: '
|
|
111
|
-
iconSize: '
|
|
110
|
+
iconFillSize: '20',
|
|
111
|
+
iconSize: '20',
|
|
112
112
|
},
|
|
113
113
|
sizeM: {
|
|
114
114
|
size: 'm',
|
|
115
115
|
labelTextSize: 'm',
|
|
116
|
-
iconFillSize: '
|
|
117
|
-
iconSize: '
|
|
116
|
+
iconFillSize: '16',
|
|
117
|
+
iconSize: '16',
|
|
118
118
|
},
|
|
119
119
|
sizeS: {
|
|
120
120
|
size: 's',
|
|
121
121
|
labelTextSize: 's',
|
|
122
|
-
iconFillSize: '
|
|
123
|
-
iconSize: '
|
|
122
|
+
iconFillSize: '16',
|
|
123
|
+
iconSize: '16',
|
|
124
124
|
},
|
|
125
125
|
sizeXS: {
|
|
126
126
|
size: 'xs',
|
|
127
127
|
labelTextSize: 'xs',
|
|
128
|
-
iconFillSize: '
|
|
129
|
-
iconSize: '
|
|
128
|
+
iconFillSize: '14',
|
|
129
|
+
iconSize: '14',
|
|
130
130
|
},
|
|
131
131
|
sizeXXS: {
|
|
132
132
|
size: 'xxs',
|
|
133
133
|
labelTextSize: 'xs',
|
|
134
|
-
iconFillSize: '
|
|
135
|
-
iconSize: '
|
|
134
|
+
iconFillSize: '12',
|
|
135
|
+
iconSize: '12',
|
|
136
136
|
},
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
var breadcrumbsAppearanceStyle = {
|
|
140
|
-
|
|
140
|
+
solid: {
|
|
141
141
|
borderColor: '0',
|
|
142
142
|
},
|
|
143
|
-
|
|
143
|
+
outlined: {
|
|
144
144
|
fill: 'none',
|
|
145
|
+
},
|
|
146
|
+
full: {
|
|
145
147
|
borderColor: '0',
|
|
146
148
|
},
|
|
147
|
-
|
|
149
|
+
ghost: {
|
|
148
150
|
fill: 'none',
|
|
149
|
-
},
|
|
150
|
-
solid: {
|
|
151
151
|
borderColor: '0',
|
|
152
152
|
},
|
|
153
153
|
};
|
|
@@ -215,7 +215,6 @@ function Breadcrumbs(props) {
|
|
|
215
215
|
var className = props.className, breadcrumbsAppearance = props.breadcrumbsAppearance, breadcrumbsList = props.breadcrumbsList, children = props.children;
|
|
216
216
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
217
217
|
var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
218
|
-
console.log(breadcrumbsAppearance);
|
|
219
218
|
var breadcrumbsItemsList = React.useMemo(function () {
|
|
220
219
|
if (breadcrumbsList) {
|
|
221
220
|
return breadcrumbsList.map(function (item, i) { return (jsxRuntime.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))); });
|
|
@@ -224,7 +223,7 @@ function Breadcrumbs(props) {
|
|
|
224
223
|
return children;
|
|
225
224
|
}
|
|
226
225
|
return [];
|
|
227
|
-
}, [children, breadcrumbsList]);
|
|
226
|
+
}, [children, breadcrumbsList, breadcrumbsAppearance]);
|
|
228
227
|
var breadcrumbsStyles = useStyles.useStyles(props).styles;
|
|
229
228
|
return (jsxRuntime.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 }));
|
|
230
229
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../../
|
|
3
|
+
var Button = require('../../Button_cjs_djJUZATX.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('clsx');
|
|
8
|
-
require('../../
|
|
8
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
9
9
|
require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -23,7 +23,7 @@ require('../hooks/useStyles/styleAttributes.js');
|
|
|
23
23
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
26
|
-
require('../../
|
|
26
|
+
require('../../Loader_cjs_Ca4i0sER.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -5,8 +5,8 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Tooltip = require('../../
|
|
9
|
-
var Label = require('../../
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_oS1iOamX.js');
|
|
9
|
+
var Label = require('../../Label_cjs_C88e2CIP.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
11
11
|
require('react');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var am = require('@itcase/icons/am');
|
|
4
|
+
|
|
5
|
+
var chipsListMock = {
|
|
6
|
+
chipsList: [
|
|
7
|
+
{
|
|
8
|
+
id: 1,
|
|
9
|
+
label: 'Chips 1',
|
|
10
|
+
isActive: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 2,
|
|
14
|
+
label: 'Chips 2',
|
|
15
|
+
isActive: false,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 3,
|
|
19
|
+
label: 'Chips 3',
|
|
20
|
+
isActive: false,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 4,
|
|
24
|
+
label: 'Chips 4',
|
|
25
|
+
iconAfter: am.icon24.Check,
|
|
26
|
+
isActive: false,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.chipsListMock = chipsListMock;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ChipsGroup = require('../../
|
|
4
|
-
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
3
|
+
var ChipsGroup = require('../../ChipsGroup_cjs_5xsEchPo.js');
|
|
5
4
|
require('react/jsx-runtime');
|
|
6
|
-
require('react');
|
|
7
5
|
require('clsx');
|
|
6
|
+
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
7
|
+
require('react');
|
|
8
8
|
require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -19,7 +19,7 @@ require('../utils/setViewportProperty.js');
|
|
|
19
19
|
require('../hooks/useStyles/useStyles.js');
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
|
-
require('../../
|
|
22
|
+
require('../../Tooltip_cjs_oS1iOamX.js');
|
|
23
23
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
@@ -9,32 +9,32 @@ var choiceListMock = {
|
|
|
9
9
|
choices: [
|
|
10
10
|
{
|
|
11
11
|
label: 'Label 1',
|
|
12
|
-
iconAfter: _default.icons24.Placeholder,
|
|
13
|
-
iconBefore: _default.icons24.Placeholder,
|
|
12
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
13
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
14
14
|
value: 1,
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
label: 'Label 2',
|
|
18
|
-
iconAfter: _default.icons24.Placeholder,
|
|
19
|
-
iconBefore: _default.icons24.Placeholder,
|
|
18
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
19
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
20
20
|
value: 2,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
label: 'Label 3',
|
|
24
|
-
iconAfter: _default.icons24.Placeholder,
|
|
25
|
-
iconBefore: _default.icons24.Placeholder,
|
|
24
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
25
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
26
26
|
value: 3,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
label: 'Label 4',
|
|
30
|
-
iconAfter: _default.icons24.Placeholder,
|
|
31
|
-
iconBefore: _default.icons24.Placeholder,
|
|
30
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
31
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
32
32
|
value: 4,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
label: 'Label 5',
|
|
36
|
-
iconAfter: _default.icons24.Placeholder,
|
|
37
|
-
iconBefore: _default.icons24.Placeholder,
|
|
36
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
37
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
38
38
|
value: 5,
|
|
39
39
|
},
|
|
40
40
|
],
|
|
@@ -45,23 +45,23 @@ var choiceListIconMock = {
|
|
|
45
45
|
},
|
|
46
46
|
choices: [
|
|
47
47
|
{
|
|
48
|
-
icon: _default.icons24.Placeholder,
|
|
48
|
+
icon: _default.icons24.Placeholder.Default,
|
|
49
49
|
value: 1,
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
icon: _default.icons24.Placeholder,
|
|
52
|
+
icon: _default.icons24.Placeholder.Default,
|
|
53
53
|
value: 2,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
icon: _default.icons24.Placeholder,
|
|
56
|
+
icon: _default.icons24.Placeholder.Default,
|
|
57
57
|
value: 3,
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
icon: _default.icons24.Placeholder,
|
|
60
|
+
icon: _default.icons24.Placeholder.Default,
|
|
61
61
|
value: 4,
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
icon: _default.icons24.Placeholder,
|
|
64
|
+
icon: _default.icons24.Placeholder.Default,
|
|
65
65
|
value: 5,
|
|
66
66
|
},
|
|
67
67
|
],
|