@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
|
@@ -7,32 +7,32 @@ var choiceListMock = {
|
|
|
7
7
|
choices: [
|
|
8
8
|
{
|
|
9
9
|
label: 'Label 1',
|
|
10
|
-
iconAfter: icons24.Placeholder,
|
|
11
|
-
iconBefore: icons24.Placeholder,
|
|
10
|
+
iconAfter: icons24.Placeholder.Default,
|
|
11
|
+
iconBefore: icons24.Placeholder.Default,
|
|
12
12
|
value: 1,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
label: 'Label 2',
|
|
16
|
-
iconAfter: icons24.Placeholder,
|
|
17
|
-
iconBefore: icons24.Placeholder,
|
|
16
|
+
iconAfter: icons24.Placeholder.Default,
|
|
17
|
+
iconBefore: icons24.Placeholder.Default,
|
|
18
18
|
value: 2,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
label: 'Label 3',
|
|
22
|
-
iconAfter: icons24.Placeholder,
|
|
23
|
-
iconBefore: icons24.Placeholder,
|
|
22
|
+
iconAfter: icons24.Placeholder.Default,
|
|
23
|
+
iconBefore: icons24.Placeholder.Default,
|
|
24
24
|
value: 3,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
label: 'Label 4',
|
|
28
|
-
iconAfter: icons24.Placeholder,
|
|
29
|
-
iconBefore: icons24.Placeholder,
|
|
28
|
+
iconAfter: icons24.Placeholder.Default,
|
|
29
|
+
iconBefore: icons24.Placeholder.Default,
|
|
30
30
|
value: 4,
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
label: 'Label 5',
|
|
34
|
-
iconAfter: icons24.Placeholder,
|
|
35
|
-
iconBefore: icons24.Placeholder,
|
|
34
|
+
iconAfter: icons24.Placeholder.Default,
|
|
35
|
+
iconBefore: icons24.Placeholder.Default,
|
|
36
36
|
value: 5,
|
|
37
37
|
},
|
|
38
38
|
],
|
|
@@ -43,23 +43,23 @@ var choiceListIconMock = {
|
|
|
43
43
|
},
|
|
44
44
|
choices: [
|
|
45
45
|
{
|
|
46
|
-
icon: icons24.Placeholder,
|
|
46
|
+
icon: icons24.Placeholder.Default,
|
|
47
47
|
value: 1,
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
icon: icons24.Placeholder,
|
|
50
|
+
icon: icons24.Placeholder.Default,
|
|
51
51
|
value: 2,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
icon: icons24.Placeholder,
|
|
54
|
+
icon: icons24.Placeholder.Default,
|
|
55
55
|
value: 3,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
icon: icons24.Placeholder,
|
|
58
|
+
icon: icons24.Placeholder.Default,
|
|
59
59
|
value: 4,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
icon: icons24.Placeholder,
|
|
62
|
+
icon: icons24.Placeholder.Default,
|
|
63
63
|
value: 5,
|
|
64
64
|
},
|
|
65
65
|
],
|
|
@@ -4,8 +4,8 @@ import React, { useRef, useMemo, createRef, 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 } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_GYOr0UTX.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -109,21 +109,21 @@ var choiceAppearanceSize = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
var choiceAppearanceStyle = {
|
|
112
|
-
|
|
112
|
+
solid: {
|
|
113
113
|
borderColor: '0',
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
outlined: {
|
|
116
116
|
fill: 'none',
|
|
117
117
|
fillItem: 'none',
|
|
118
118
|
fillItemActive: 'none',
|
|
119
|
+
},
|
|
120
|
+
full: {
|
|
119
121
|
borderColor: '0',
|
|
120
122
|
},
|
|
121
|
-
|
|
123
|
+
ghost: {
|
|
122
124
|
fill: 'none',
|
|
123
125
|
fillItem: 'none',
|
|
124
126
|
fillItemActive: 'none',
|
|
125
|
-
},
|
|
126
|
-
solid: {
|
|
127
127
|
borderColor: '0',
|
|
128
128
|
},
|
|
129
129
|
};
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_X1DzVhok.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,13 +16,13 @@ import '../context/UIContext.js';
|
|
|
16
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
17
|
import 'react-responsive';
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Tooltip_es_LV5ZNg3B.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Loader_es_GYOr0UTX.js';
|
|
26
26
|
|
|
27
27
|
var cookiesWarningAppearanceDefault = {
|
|
28
28
|
defaultPrimary: {
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { PartySuggestions } from 'react-dadata';
|
|
6
|
-
import { I as Input } from '../
|
|
6
|
+
import { I as Input } from '../Input_es_D9Y1Rj5Y.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -4,9 +4,9 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { DateTime } from 'luxon';
|
|
6
6
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
7
|
-
import { D as DatePickerInput } from '../
|
|
7
|
+
import { D as DatePickerInput } from '../DatePicker_es_GmkagjKf.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_4TOkv-fm.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
12
12
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -20,14 +20,14 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_X1DzVhok.js';
|
|
24
|
+
import '../Tooltip_es_LV5ZNg3B.js';
|
|
25
25
|
import '../Text_es_BfLRfj-5.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_DxtZLeKY.js';
|
|
28
|
-
import '../
|
|
29
|
-
import '../
|
|
30
|
-
import '../
|
|
28
|
+
import '../Loader_es_GYOr0UTX.js';
|
|
29
|
+
import '../Input_es_D9Y1Rj5Y.js';
|
|
30
|
+
import '../Label_es_Bn2aRjLl.js';
|
|
31
31
|
import '@itcase/icons/default';
|
|
32
32
|
import 'lodash/castArray';
|
|
33
33
|
|
|
@@ -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_GmkagjKf.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 '../
|
|
23
|
-
import '../
|
|
22
|
+
import '../Button_es_X1DzVhok.js';
|
|
23
|
+
import '../Tooltip_es_LV5ZNg3B.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../Link_es_DxtZLeKY.js';
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
29
|
-
import '../
|
|
27
|
+
import '../Loader_es_GYOr0UTX.js';
|
|
28
|
+
import '../Input_es_D9Y1Rj5Y.js';
|
|
29
|
+
import '../Label_es_Bn2aRjLl.js';
|
|
30
30
|
import '@itcase/icons/default';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import ReactDrawer from 'react-modern-drawer';
|
|
6
|
-
import { I as Icon, b as Title } from '../
|
|
6
|
+
import { I as Icon, b as Title } from '../Tooltip_es_LV5ZNg3B.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { icons24 } from '@itcase/icons/default';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { icon24 } from '@itcase/icons/am';
|
|
1
2
|
import { icons24 } from '@itcase/icons/default';
|
|
2
3
|
|
|
3
4
|
var dropdownListMock = {
|
|
@@ -20,13 +21,13 @@ var dropdownListMock = {
|
|
|
20
21
|
{
|
|
21
22
|
key: 6,
|
|
22
23
|
label: 'Item 6',
|
|
23
|
-
iconBefore:
|
|
24
|
+
iconBefore: icon24.Check,
|
|
24
25
|
isActive: false,
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
key: 7,
|
|
28
29
|
label: 'Item 7',
|
|
29
|
-
iconAfter:
|
|
30
|
+
iconAfter: icon24.Check,
|
|
30
31
|
isActive: false,
|
|
31
32
|
},
|
|
32
33
|
{ key: 8, label: 'Item 8', showDivider: true, isActive: false },
|
|
@@ -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_Loneq6M7.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Divider_es_kY-30pft.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Tooltip_es_LV5ZNg3B.js';
|
|
22
22
|
import '../Text_es_BfLRfj-5.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ import { useMemo } 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 } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, e as iconAppearance, i as iconConfig } from '../
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Tooltip_es_LV5ZNg3B.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input, a as inputAppearance, i as inputConfig } from '../
|
|
1
|
+
export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_D9Y1Rj5Y.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
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_Bn2aRjLl.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -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 '../Tooltip_es_LV5ZNg3B.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -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_GYOr0UTX.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
8
8
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -125,9 +125,14 @@ var menuItemAppearanceSurface = {
|
|
|
125
125
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
126
126
|
},
|
|
127
127
|
surfaceSecondary: {
|
|
128
|
-
fill: '
|
|
129
|
-
|
|
128
|
+
fill: 'surfacePrimary',
|
|
129
|
+
fillActive: 'surfaceSecondary',
|
|
130
|
+
fillActiveHover: 'surfaceSecondary',
|
|
131
|
+
fillHover: 'surfaceSecondary',
|
|
130
132
|
labelTextColor: 'surfaceTextPrimary',
|
|
133
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
134
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
135
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
131
136
|
},
|
|
132
137
|
surfaceTertiary: {
|
|
133
138
|
fill: 'surfaceTertiary',
|
|
@@ -156,14 +161,16 @@ function MenuItem(props) {
|
|
|
156
161
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
157
162
|
}, {});
|
|
158
163
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
159
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
164
|
+
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, shapeStrengthClass = propsGenerator.shapeStrengthClass; propsGenerator.centering; var iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
160
165
|
// @ts-expect-error
|
|
161
166
|
var menuItem = useStyles(props).styles;
|
|
162
167
|
return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), !isActive
|
|
163
168
|
? fillClass && "fill_".concat(fillClass)
|
|
164
169
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
165
170
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
166
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "
|
|
171
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
172
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
173
|
+
: shapeClass === 'rounded' && 'shape-strength_default', typeClass && "menu-item_type_".concat(typeClass), widthClass && "width_".concat(widthClass), justifyContentClass &&
|
|
167
174
|
"menu-item_justify-content_".concat(justifyContentClass), isSkeleton && "menu-item_skeleton"), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: isActive
|
|
168
175
|
? !isDisabled
|
|
169
176
|
? labelTextActiveColor
|
package/dist/components/Modal.js
CHANGED
|
@@ -6,8 +6,8 @@ import ReactDOM from 'react-dom';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { O as Overlay } from '../Overlay_es_DczPjVL9.js';
|
|
9
|
-
import { b as Title } from '../
|
|
10
|
-
import { L as Loader } from '../
|
|
9
|
+
import { b as Title } from '../Tooltip_es_LV5ZNg3B.js';
|
|
10
|
+
import { L as Loader } from '../Loader_es_GYOr0UTX.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { icons20 } from '@itcase/icons/default';
|
|
9
9
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
@@ -6,10 +6,10 @@ import ceil from 'lodash/ceil';
|
|
|
6
6
|
import ReactPaginate from 'react-paginate';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_Loneq6M7.js';
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
|
-
import { icons32, icons14
|
|
12
|
+
import { icons32, icons14 } from '@itcase/icons/default';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/castArray';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
@@ -61,8 +61,6 @@ var paginationAppearanceSize = {
|
|
|
61
61
|
pageCountDropdownItemLabelSize: 'm',
|
|
62
62
|
pageCountDropdownItemSize: 'l',
|
|
63
63
|
pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
|
|
64
|
-
pageCountInputIcon: icons24.Arrow.ChevronDownSmall,
|
|
65
|
-
pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
|
|
66
64
|
pageCountInputIconFillSize: '24',
|
|
67
65
|
pageCountInputTextSize: 'm',
|
|
68
66
|
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../
|
|
8
|
+
import { B as Button } from '../Button_es_X1DzVhok.js';
|
|
9
9
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -20,9 +20,9 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Tooltip_es_LV5ZNg3B.js';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Loader_es_GYOr0UTX.js';
|
|
26
26
|
|
|
27
27
|
var responseAppearanceConfirm = {
|
|
28
28
|
confirm: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
5
|
+
import ScrollContainer, { useScrollContainer } from 'react-indiana-drag-scroll';
|
|
6
|
+
import SimpleBar from 'simplebar-react';
|
|
6
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
9
|
import 'lodash/camelCase';
|
|
@@ -19,13 +20,14 @@ import 'lodash/maxBy';
|
|
|
19
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
21
|
|
|
21
22
|
function ScrollOnDrag(props) {
|
|
22
|
-
var className = props.className, scrollContainerProps = props.scrollContainerProps, children = props.children;
|
|
23
|
-
var ref = useRef(null);
|
|
23
|
+
var className = props.className, scrollContainerProps = props.scrollContainerProps, children = props.children, isScrollbar = props.isScrollbar;
|
|
24
24
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
25
|
+
var ref = useScrollContainer().ref;
|
|
25
26
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, _a = propsGenerator.widthClass, widthClass = _a === void 0 ? 'fill' : _a;
|
|
26
27
|
// @ts-expect-error
|
|
27
28
|
var _b = useStyles(props), scrollContainerStyles = _b.scrollContainer, styles = _b.styles;
|
|
28
|
-
|
|
29
|
+
var ScrollOnDragWrapper = isScrollbar ? SimpleBar : React.Fragment;
|
|
30
|
+
return (jsx(ScrollOnDragWrapper, { scrollableNodeProps: { ref: ref }, children: jsx("div", { className: clsx('scroll-on-drag', className, borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), borderWidthClass && "border-width_".concat(borderWidthClass), elevationClass && "elevation_".concat(elevationClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), heightClass && "height_".concat(heightClass), widthClass && "width_".concat(widthClass)), style: styles, children: jsx(ScrollContainer, __assign({ className: clsx(!isScrollbar && 'scroll-on-drag__wrapper'), ref: ref }, scrollContainerProps, { style: scrollContainerStyles, children: children })) }) }));
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export { ScrollOnDrag };
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../
|
|
8
|
+
import { I as Icon } from '../Tooltip_es_LV5ZNg3B.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __assign } from '../../../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
+
import { icons24, icons20, icons16, icons14 } from '@itcase/icons/default';
|
|
2
3
|
|
|
3
4
|
var segmentedArgsMock = {
|
|
4
5
|
activeSegment: {
|
|
@@ -7,30 +8,41 @@ var segmentedArgsMock = {
|
|
|
7
8
|
segments: [
|
|
8
9
|
{
|
|
9
10
|
label: 'Label 1',
|
|
10
|
-
iconAfter: icons24.Placeholder,
|
|
11
|
-
iconBefore: icons24.Placeholder,
|
|
11
|
+
iconAfter: icons24.Placeholder.Default,
|
|
12
|
+
iconBefore: icons24.Placeholder.Default,
|
|
12
13
|
value: 1,
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
label: 'Label 2',
|
|
16
|
-
iconAfter: icons24.Placeholder,
|
|
17
|
-
iconBefore: icons24.Placeholder,
|
|
17
|
+
iconAfter: icons24.Placeholder.Default,
|
|
18
|
+
iconBefore: icons24.Placeholder.Default,
|
|
18
19
|
value: 2,
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
label: 'Label 3',
|
|
22
|
-
iconAfter: icons24.Placeholder,
|
|
23
|
-
iconBefore: icons24.Placeholder,
|
|
23
|
+
iconAfter: icons24.Placeholder.Default,
|
|
24
|
+
iconBefore: icons24.Placeholder.Default,
|
|
24
25
|
value: 3,
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
label: 'Label 4',
|
|
28
|
-
iconAfter: icons24.Placeholder,
|
|
29
|
-
iconBefore: icons24.Placeholder,
|
|
29
|
+
iconAfter: icons24.Placeholder.Default,
|
|
30
|
+
iconBefore: icons24.Placeholder.Default,
|
|
30
31
|
value: 4,
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
|
-
|
|
34
|
+
};
|
|
35
|
+
var segmentedArgsLabelMock = segmentedArgsMock === null || segmentedArgsMock === void 0 ? void 0 : segmentedArgsMock.segments.map(function (segment) { return ({
|
|
36
|
+
label: segment.label,
|
|
37
|
+
value: segment.value,
|
|
38
|
+
}); });
|
|
39
|
+
var segmentedArgsIconMock = segmentedArgsMock === null || segmentedArgsMock === void 0 ? void 0 : segmentedArgsMock.segments.map(function (segment) { return ({
|
|
40
|
+
iconBefore: segment.iconBefore,
|
|
41
|
+
}); }).slice(3);
|
|
42
|
+
var segmentedArgsMockSize = {
|
|
43
|
+
14: segmentedArgsMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons14.Placeholder.Default, iconBefore: icons14.Placeholder.Default })); }),
|
|
44
|
+
16: segmentedArgsMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons16.Placeholder.Default, iconBefore: icons16.Placeholder.Default })); }),
|
|
45
|
+
20: segmentedArgsMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons20.Placeholder.Default, iconBefore: icons20.Placeholder.Default })); }),
|
|
34
46
|
};
|
|
35
47
|
|
|
36
|
-
export { segmentedArgsMock };
|
|
48
|
+
export { segmentedArgsIconMock, segmentedArgsLabelMock, segmentedArgsMock, segmentedArgsMockSize };
|