@itcase/ui 1.8.35 → 1.8.37
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_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_plv5-qcj.js} +11 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_BigB2Wz6.js} +11 -2
- package/dist/ChipsGroup_cjs_DrOhD-Fc.js +312 -0
- package/dist/ChipsGroup_es_B9m4l0wN.js +307 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_CmqgSNw7.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_mk9wFTe9.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_KppIfto7.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_BGJfyrOL.js} +15 -13
- package/dist/{Label_es_DFSiy5sL.js → Label_es_C4Px7b-N.js} +15 -13
- 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_DHduWa-v.js} +76 -70
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_ltCY-w4M.js} +76 -70
- 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 +32 -41
- package/dist/cjs/components/Breadcrumbs.js +41 -124
- 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 +20 -18
- 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 +104 -33
- 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 +17 -12
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +3 -8
- 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 +26 -11
- package/dist/cjs/components/Segmented.js +84 -52
- 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 +32 -41
- package/dist/components/Breadcrumbs.js +41 -124
- 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 +20 -18
- 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 +102 -34
- 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 +17 -12
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +3 -8
- 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 +24 -12
- package/dist/components/Segmented.js +84 -52
- 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 +39 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +53 -30
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +64 -8
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +28 -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/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +4 -6
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +5 -8
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- 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/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/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -6
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- 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/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- 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 +8 -10
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +10 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +31 -9
- 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 +8 -7
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -1,37 +1,105 @@
|
|
|
1
|
+
import { icon24 } from '@itcase/icons/am';
|
|
1
2
|
import { icons24 } from '@itcase/icons/default';
|
|
2
3
|
|
|
3
|
-
var dropdownListMock =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
4
|
+
var dropdownListMock = [
|
|
5
|
+
{ key: 1, label: 'Item 1', isActive: true },
|
|
6
|
+
{ key: 2, label: 'Item 2', isActive: false },
|
|
7
|
+
{ key: 3, label: 'Item 3', badgeValue: 3, isActive: false },
|
|
8
|
+
{
|
|
9
|
+
key: 4,
|
|
10
|
+
label: 'Item 4',
|
|
11
|
+
iconBefore: icons24.Placeholder.Default,
|
|
12
|
+
isActive: false,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: 5,
|
|
16
|
+
label: 'Item 5',
|
|
17
|
+
iconAfter: icons24.Placeholder.Default,
|
|
18
|
+
isActive: false,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 6,
|
|
22
|
+
label: 'Item 6',
|
|
23
|
+
iconBefore: icon24.Check,
|
|
24
|
+
isActive: false,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: 7,
|
|
28
|
+
label: 'Item 7',
|
|
29
|
+
iconAfter: icon24.Check,
|
|
30
|
+
isActive: false,
|
|
31
|
+
},
|
|
32
|
+
{ key: 8, label: 'Item 8', showDivider: true, isActive: false },
|
|
33
|
+
{ key: 9, label: 'Item 9', isActive: false },
|
|
34
|
+
];
|
|
35
|
+
var dropdownListSimpleMock = [
|
|
36
|
+
{ key: 1, label: 'Item 1', isActive: true },
|
|
37
|
+
{ key: 2, label: 'Item 2', isActive: false },
|
|
38
|
+
{ key: 3, label: 'Item 3', badgeValue: 3, isActive: false },
|
|
39
|
+
{
|
|
40
|
+
key: 4,
|
|
41
|
+
label: 'Item 4',
|
|
42
|
+
isActive: false,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: 5,
|
|
46
|
+
label: 'Item 5',
|
|
47
|
+
isActive: false,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: 6,
|
|
51
|
+
label: 'Item 6',
|
|
52
|
+
isActive: false,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: 7,
|
|
56
|
+
label: 'Item 7',
|
|
57
|
+
isActive: false,
|
|
58
|
+
},
|
|
59
|
+
{ key: 8, label: 'Item 8', showDivider: true, isActive: false },
|
|
60
|
+
{ key: 9, label: 'Item 9', isActive: false },
|
|
61
|
+
];
|
|
62
|
+
var dropdownListBeforeMock = [
|
|
63
|
+
{
|
|
64
|
+
key: 1,
|
|
65
|
+
label: 'Item 1',
|
|
66
|
+
iconBefore: icons24.Placeholder.Default,
|
|
67
|
+
isActive: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: 2,
|
|
71
|
+
label: 'Item 2',
|
|
72
|
+
iconBefore: icons24.Placeholder.Default,
|
|
73
|
+
isActive: false,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: 3,
|
|
77
|
+
label: 'Item 3',
|
|
78
|
+
badgeValue: 3,
|
|
79
|
+
iconBefore: icons24.Placeholder.Default,
|
|
80
|
+
isActive: false,
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
var dropdownListAfterMock = [
|
|
84
|
+
{
|
|
85
|
+
key: 1,
|
|
86
|
+
label: 'Item 1',
|
|
87
|
+
iconAfter: icons24.Placeholder.Default,
|
|
88
|
+
isActive: true,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: 2,
|
|
92
|
+
label: 'Item 2',
|
|
93
|
+
iconAfter: icons24.Placeholder.Default,
|
|
94
|
+
isActive: false,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: 3,
|
|
98
|
+
label: 'Item 3',
|
|
99
|
+
badgeValue: 3,
|
|
100
|
+
iconAfter: icons24.Placeholder.Default,
|
|
101
|
+
isActive: false,
|
|
102
|
+
},
|
|
103
|
+
];
|
|
36
104
|
|
|
37
|
-
export { dropdownListMock };
|
|
105
|
+
export { dropdownListAfterMock, dropdownListBeforeMock, dropdownListMock, dropdownListSimpleMock };
|
|
@@ -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_KppIfto7.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_ltCY-w4M.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_ltCY-w4M.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_ltCY-w4M.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_ltCY-w4M.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_C4Px7b-N.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_ltCY-w4M.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, T as Tooltip } from '../Tooltip_es_ltCY-w4M.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';
|
|
@@ -98,17 +98,15 @@ var menuItemAppearanceSize = {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
var menuItemAppearanceStyle = {
|
|
101
|
-
|
|
102
|
-
borderColor: 'none',
|
|
103
|
-
},
|
|
104
|
-
ghost: {
|
|
105
|
-
fill: 'none',
|
|
101
|
+
solid: {
|
|
106
102
|
borderColor: 'none',
|
|
107
103
|
},
|
|
108
104
|
outlined: {
|
|
109
105
|
fill: 'none',
|
|
110
106
|
},
|
|
111
|
-
|
|
107
|
+
full: {},
|
|
108
|
+
ghost: {
|
|
109
|
+
fill: 'none',
|
|
112
110
|
borderColor: 'none',
|
|
113
111
|
},
|
|
114
112
|
};
|
|
@@ -125,9 +123,14 @@ var menuItemAppearanceSurface = {
|
|
|
125
123
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
126
124
|
},
|
|
127
125
|
surfaceSecondary: {
|
|
128
|
-
fill: '
|
|
129
|
-
|
|
126
|
+
fill: 'surfacePrimary',
|
|
127
|
+
fillActive: 'surfaceSecondary',
|
|
128
|
+
fillActiveHover: 'surfaceSecondary',
|
|
129
|
+
fillHover: 'surfaceSecondary',
|
|
130
130
|
labelTextColor: 'surfaceTextPrimary',
|
|
131
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
132
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
133
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
131
134
|
},
|
|
132
135
|
surfaceTertiary: {
|
|
133
136
|
fill: 'surfaceTertiary',
|
|
@@ -156,14 +159,16 @@ function MenuItem(props) {
|
|
|
156
159
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
157
160
|
}, {});
|
|
158
161
|
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;
|
|
162
|
+
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, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
160
163
|
// @ts-expect-error
|
|
161
164
|
var menuItem = useStyles(props).styles;
|
|
162
165
|
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
166
|
? fillClass && "fill_".concat(fillClass)
|
|
164
167
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
165
168
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
166
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "
|
|
169
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
170
|
+
? "shape-strength_".concat(shapeStrengthClass)
|
|
171
|
+
: shapeClass === 'rounded' && 'shape-strength_default', typeClass && "menu-item_type_".concat(typeClass), widthClass && "width_".concat(widthClass), justifyContentClass &&
|
|
167
172
|
"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
173
|
? !isDisabled
|
|
169
174
|
? labelTextActiveColor
|
|
@@ -176,7 +181,7 @@ function MenuItem(props) {
|
|
|
176
181
|
: labelTextActiveHoverColorDisabled
|
|
177
182
|
: !isDisabled
|
|
178
183
|
? labelTextHoverColor
|
|
179
|
-
: labelTextHoverColorDisabled, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }) }));
|
|
184
|
+
: labelTextHoverColorDisabled, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after, jsx(Tooltip, { className: "menu-item__tooltip", appearance: tooltipAppearance, minWidth: "auto", fill: tooltipFill, left: "100%", zIndex: "100", titleTextColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, centering: "vertical", shapeStrength: tooltipShapeStrength })] }) }));
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
export { MenuItem, menuItemAppearance, menuItemConfig };
|
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_ltCY-w4M.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_ltCY-w4M.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';
|
|
@@ -31,7 +31,6 @@ var notificationAppearanceDefault = {
|
|
|
31
31
|
descTextColor: 'surfaceTextPrimary',
|
|
32
32
|
descTextSize: 'm',
|
|
33
33
|
borderColor: 'surfaceBorderPrimary',
|
|
34
|
-
elevation: 8,
|
|
35
34
|
textColor: 'surfaceTextPrimary',
|
|
36
35
|
iconSize: 20,
|
|
37
36
|
closeIcon: icons20.Action.Close,
|
|
@@ -48,7 +47,6 @@ var notificationAppearanceError = {
|
|
|
48
47
|
descTextColor: 'errorTextPrimary',
|
|
49
48
|
descTextSize: 'm',
|
|
50
49
|
borderColor: 'errorBorderPrimary',
|
|
51
|
-
elevation: 8,
|
|
52
50
|
textColor: 'errorTextPrimary',
|
|
53
51
|
iconSize: 20,
|
|
54
52
|
closeIcon: icons20.Action.Close,
|
|
@@ -65,7 +63,6 @@ var notificationAppearanceInfo = {
|
|
|
65
63
|
descTextColor: 'infoTextPrimary',
|
|
66
64
|
descTextSize: 'm',
|
|
67
65
|
borderColor: 'infoBorderPrimary',
|
|
68
|
-
elevation: 8,
|
|
69
66
|
textColor: 'infoTextPrimary',
|
|
70
67
|
iconSize: 20,
|
|
71
68
|
closeIcon: icons20.Action.Close,
|
|
@@ -98,7 +95,6 @@ var notificationAppearanceSuccess = {
|
|
|
98
95
|
descTextColor: 'successTextPrimary',
|
|
99
96
|
descTextSize: 'm',
|
|
100
97
|
borderColor: 'successBorderPrimary',
|
|
101
|
-
elevation: 8,
|
|
102
98
|
textColor: 'successTextPrimary',
|
|
103
99
|
iconSize: 20,
|
|
104
100
|
closeIcon: icons20.Action.Close,
|
|
@@ -115,7 +111,6 @@ var notificationAppearanceWarning = {
|
|
|
115
111
|
descTextColor: 'warningTextPrimary',
|
|
116
112
|
descTextSize: 'm',
|
|
117
113
|
borderColor: 'surfaceBorderPrimary',
|
|
118
|
-
elevation: 8,
|
|
119
114
|
textColor: 'warningTextPrimary',
|
|
120
115
|
iconSize: 20,
|
|
121
116
|
closeIcon: icons20.Action.Close,
|
|
@@ -132,7 +127,7 @@ var notificationConfig = {
|
|
|
132
127
|
},
|
|
133
128
|
};
|
|
134
129
|
function Notification(props) {
|
|
135
|
-
var id = props.id, className = props.className,
|
|
130
|
+
var id = props.id, className = props.className, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, before = props.before, after = props.after, close = props.close, isSkeleton = props.isSkeleton, onClickClose = props.onClickClose;
|
|
136
131
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
137
132
|
var _a;
|
|
138
133
|
return (__assign(__assign({}, resultConfig), (_a = notificationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -141,7 +136,7 @@ function Notification(props) {
|
|
|
141
136
|
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, elevationClass = propsGenerator.elevationClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
142
137
|
// @ts-expect-error
|
|
143
138
|
var notificationStyles = useStyles(props).styles;
|
|
144
|
-
return (jsxs("div", { className: clsx('notification__item',
|
|
139
|
+
return (jsxs("div", { className: clsx('notification__item', elevationClass && "elevation_".concat(elevationClass), sizeClass && "notification__item_set_".concat(sizeClass), widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass), isSkeleton && "notification__item_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), close && (closeIcon || closeIconSrc) && (jsx(Icon, { className: clsx('notification__item-close', 'cursor_type_pointer'), fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: function () { return onClickClose && onClickClose(id); } }))] }), after] }));
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
function NotificationWrapper(props) {
|
|
@@ -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_KppIfto7.js';
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.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_BigB2Wz6.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_ltCY-w4M.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_ltCY-w4M.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,36 +1,48 @@
|
|
|
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
|
-
var
|
|
4
|
+
var segmentedMock = {
|
|
4
5
|
activeSegment: {
|
|
5
6
|
value: 1,
|
|
6
7
|
},
|
|
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 segmentedLabelMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
36
|
+
label: segment.label,
|
|
37
|
+
value: segment.value,
|
|
38
|
+
}); });
|
|
39
|
+
var segmentedIconMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
40
|
+
iconBefore: segment.iconBefore,
|
|
41
|
+
}); }).slice(3);
|
|
42
|
+
var segmentedMockSize = {
|
|
43
|
+
14: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons14.Placeholder.Default, iconBefore: icons14.Placeholder.Default })); }),
|
|
44
|
+
16: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons16.Placeholder.Default, iconBefore: icons16.Placeholder.Default })); }),
|
|
45
|
+
20: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons20.Placeholder.Default, iconBefore: icons20.Placeholder.Default })); }),
|
|
34
46
|
};
|
|
35
47
|
|
|
36
|
-
export {
|
|
48
|
+
export { segmentedIconMock, segmentedLabelMock, segmentedMock, segmentedMockSize };
|