@itcase/ui 1.8.36 → 1.8.38
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_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
- package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
- package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
- package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
- package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_DKoF73mp.js} +17 -17
- package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_CdEYxtwj.js} +17 -17
- package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
- package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
- package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
- package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
- 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 -48
- package/dist/cjs/components/Breadcrumbs.js +38 -120
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +16 -14
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +25 -21
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +103 -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/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +7 -9
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +3 -9
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
- package/dist/cjs/components/Segmented.js +28 -25
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +0 -1
- package/dist/cjs/components/Tab.js +1 -1
- 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/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 +33 -48
- package/dist/components/Breadcrumbs.js +38 -120
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +16 -14
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +25 -21
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +101 -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/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +7 -9
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +3 -9
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +8 -8
- package/dist/components/Segmented.js +28 -25
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +0 -1
- package/dist/components/Tab.js +1 -1
- 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 +24 -0
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/MenuItem/MenuItem.css +31 -0
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/Segmented/Segmented.css +16 -7
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- 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 +1 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
- 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 +1 -3
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- 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/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/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/appearance/segmentedDefault.d.ts +1 -1
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
- package/package.json +7 -7
- 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
|
@@ -3,38 +3,108 @@
|
|
|
3
3
|
var am = require('@itcase/icons/am');
|
|
4
4
|
var _default = require('@itcase/icons/default');
|
|
5
5
|
|
|
6
|
-
var dropdownListMock =
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
6
|
+
var dropdownListMock = [
|
|
7
|
+
{ key: 1, label: 'Item 1', isActive: true },
|
|
8
|
+
{ key: 2, label: 'Item 2', isActive: false },
|
|
9
|
+
{ key: 3, label: 'Item 3', badgeValue: 3, isActive: false },
|
|
10
|
+
{
|
|
11
|
+
key: 4,
|
|
12
|
+
label: 'Item 4',
|
|
13
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
14
|
+
isActive: false,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 5,
|
|
18
|
+
label: 'Item 5',
|
|
19
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
20
|
+
isActive: false,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: 6,
|
|
24
|
+
label: 'Item 6',
|
|
25
|
+
iconBefore: am.icon24.Check,
|
|
26
|
+
isActive: false,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 7,
|
|
30
|
+
label: 'Item 7',
|
|
31
|
+
iconAfter: am.icon24.Check,
|
|
32
|
+
isActive: false,
|
|
33
|
+
},
|
|
34
|
+
{ key: 8, label: 'Item 8', showDivider: true, isActive: false },
|
|
35
|
+
{ key: 9, label: 'Item 9', isActive: false },
|
|
36
|
+
];
|
|
37
|
+
var dropdownListSimpleMock = [
|
|
38
|
+
{ key: 1, label: 'Item 1', isActive: true },
|
|
39
|
+
{ key: 2, label: 'Item 2', isActive: false },
|
|
40
|
+
{ key: 3, label: 'Item 3', badgeValue: 3, isActive: false },
|
|
41
|
+
{
|
|
42
|
+
key: 4,
|
|
43
|
+
label: 'Item 4',
|
|
44
|
+
isActive: false,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: 5,
|
|
48
|
+
label: 'Item 5',
|
|
49
|
+
isActive: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: 6,
|
|
53
|
+
label: 'Item 6',
|
|
54
|
+
isActive: false,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: 7,
|
|
58
|
+
label: 'Item 7',
|
|
59
|
+
isActive: false,
|
|
60
|
+
},
|
|
61
|
+
{ key: 8, label: 'Item 8', showDivider: true, isActive: false },
|
|
62
|
+
{ key: 9, label: 'Item 9', isActive: false },
|
|
63
|
+
];
|
|
64
|
+
var dropdownListBeforeMock = [
|
|
65
|
+
{
|
|
66
|
+
key: 1,
|
|
67
|
+
label: 'Item 1',
|
|
68
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
69
|
+
isActive: true,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: 2,
|
|
73
|
+
label: 'Item 2',
|
|
74
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
75
|
+
isActive: false,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: 3,
|
|
79
|
+
label: 'Item 3',
|
|
80
|
+
badgeValue: 3,
|
|
81
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
82
|
+
isActive: false,
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
var dropdownListAfterMock = [
|
|
86
|
+
{
|
|
87
|
+
key: 1,
|
|
88
|
+
label: 'Item 1',
|
|
89
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
90
|
+
isActive: true,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: 2,
|
|
94
|
+
label: 'Item 2',
|
|
95
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
96
|
+
isActive: false,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: 3,
|
|
100
|
+
label: 'Item 3',
|
|
101
|
+
badgeValue: 3,
|
|
102
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
103
|
+
isActive: false,
|
|
104
|
+
},
|
|
105
|
+
];
|
|
39
106
|
|
|
107
|
+
exports.dropdownListAfterMock = dropdownListAfterMock;
|
|
108
|
+
exports.dropdownListBeforeMock = dropdownListBeforeMock;
|
|
40
109
|
exports.dropdownListMock = dropdownListMock;
|
|
110
|
+
exports.dropdownListSimpleMock = dropdownListSimpleMock;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DropdownItem = require('../../
|
|
3
|
+
var DropdownItem = require('../../DropdownItem_cjs_DQvByLbN.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -20,7 +20,7 @@ require('../hooks/useStyles/useStyles.js');
|
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
require('../../Divider_cjs_BmCJj3TN.js');
|
|
23
|
-
require('../../
|
|
23
|
+
require('../../Tooltip_cjs_DHduWa-v.js');
|
|
24
24
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('../../
|
|
9
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
12
12
|
require('lodash/upperFirst');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Tooltip = require('../../
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
11
11
|
require('lodash/upperFirst');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Label = require('../../
|
|
3
|
+
var Label = require('../../Label_cjs_BGJfyrOL.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -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_DHduWa-v.js');
|
|
23
23
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('../../
|
|
9
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
var Link = require('../../Link_cjs_DbRGq2Yk.js');
|
|
11
11
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -100,17 +100,15 @@ var menuItemAppearanceSize = {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
var menuItemAppearanceStyle = {
|
|
103
|
-
|
|
104
|
-
borderColor: 'none',
|
|
105
|
-
},
|
|
106
|
-
ghost: {
|
|
107
|
-
fill: 'none',
|
|
103
|
+
solid: {
|
|
108
104
|
borderColor: 'none',
|
|
109
105
|
},
|
|
110
106
|
outlined: {
|
|
111
107
|
fill: 'none',
|
|
112
108
|
},
|
|
113
|
-
|
|
109
|
+
full: {},
|
|
110
|
+
ghost: {
|
|
111
|
+
fill: 'none',
|
|
114
112
|
borderColor: 'none',
|
|
115
113
|
},
|
|
116
114
|
};
|
|
@@ -163,7 +161,7 @@ function MenuItem(props) {
|
|
|
163
161
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
164
162
|
}, {});
|
|
165
163
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
166
|
-
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,
|
|
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, 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;
|
|
167
165
|
// @ts-expect-error
|
|
168
166
|
var menuItem = useStyles.useStyles(props).styles;
|
|
169
167
|
return (jsxRuntime.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
|
|
@@ -185,7 +183,7 @@ function MenuItem(props) {
|
|
|
185
183
|
: labelTextActiveHoverColorDisabled
|
|
186
184
|
: !isDisabled
|
|
187
185
|
? labelTextHoverColor
|
|
188
|
-
: labelTextHoverColorDisabled, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, children: label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.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] }) }));
|
|
186
|
+
: labelTextHoverColorDisabled, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, children: label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.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, jsxRuntime.jsx(Tooltip.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 })] }) }));
|
|
189
187
|
}
|
|
190
188
|
|
|
191
189
|
exports.MenuItem = MenuItem;
|
|
@@ -8,7 +8,7 @@ var ReactDOM = require('react-dom');
|
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var Overlay = require('../../Overlay_cjs_CFOtnzDU.js');
|
|
11
|
-
var Tooltip = require('../../
|
|
11
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
12
12
|
var Loader = require('../../Loader_cjs_Ca4i0sER.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
@@ -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 Tooltip = require('../../
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
9
9
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
10
10
|
var _default = require('@itcase/icons/default');
|
|
11
11
|
var Notifications = require('../context/Notifications.js');
|
|
@@ -33,7 +33,6 @@ var notificationAppearanceDefault = {
|
|
|
33
33
|
descTextColor: 'surfaceTextPrimary',
|
|
34
34
|
descTextSize: 'm',
|
|
35
35
|
borderColor: 'surfaceBorderPrimary',
|
|
36
|
-
elevation: 8,
|
|
37
36
|
textColor: 'surfaceTextPrimary',
|
|
38
37
|
iconSize: 20,
|
|
39
38
|
closeIcon: _default.icons20.Action.Close,
|
|
@@ -50,7 +49,6 @@ var notificationAppearanceError = {
|
|
|
50
49
|
descTextColor: 'errorTextPrimary',
|
|
51
50
|
descTextSize: 'm',
|
|
52
51
|
borderColor: 'errorBorderPrimary',
|
|
53
|
-
elevation: 8,
|
|
54
52
|
textColor: 'errorTextPrimary',
|
|
55
53
|
iconSize: 20,
|
|
56
54
|
closeIcon: _default.icons20.Action.Close,
|
|
@@ -67,7 +65,6 @@ var notificationAppearanceInfo = {
|
|
|
67
65
|
descTextColor: 'infoTextPrimary',
|
|
68
66
|
descTextSize: 'm',
|
|
69
67
|
borderColor: 'infoBorderPrimary',
|
|
70
|
-
elevation: 8,
|
|
71
68
|
textColor: 'infoTextPrimary',
|
|
72
69
|
iconSize: 20,
|
|
73
70
|
closeIcon: _default.icons20.Action.Close,
|
|
@@ -100,7 +97,6 @@ var notificationAppearanceSuccess = {
|
|
|
100
97
|
descTextColor: 'successTextPrimary',
|
|
101
98
|
descTextSize: 'm',
|
|
102
99
|
borderColor: 'successBorderPrimary',
|
|
103
|
-
elevation: 8,
|
|
104
100
|
textColor: 'successTextPrimary',
|
|
105
101
|
iconSize: 20,
|
|
106
102
|
closeIcon: _default.icons20.Action.Close,
|
|
@@ -117,7 +113,6 @@ var notificationAppearanceWarning = {
|
|
|
117
113
|
descTextColor: 'warningTextPrimary',
|
|
118
114
|
descTextSize: 'm',
|
|
119
115
|
borderColor: 'surfaceBorderPrimary',
|
|
120
|
-
elevation: 8,
|
|
121
116
|
textColor: 'warningTextPrimary',
|
|
122
117
|
iconSize: 20,
|
|
123
118
|
closeIcon: _default.icons20.Action.Close,
|
|
@@ -134,7 +129,7 @@ var notificationConfig = {
|
|
|
134
129
|
},
|
|
135
130
|
};
|
|
136
131
|
function Notification(props) {
|
|
137
|
-
var id = props.id, className = props.className,
|
|
132
|
+
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;
|
|
138
133
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
139
134
|
var _a;
|
|
140
135
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = notificationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -143,14 +138,13 @@ function Notification(props) {
|
|
|
143
138
|
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;
|
|
144
139
|
// @ts-expect-error
|
|
145
140
|
var notificationStyles = useStyles.useStyles(props).styles;
|
|
146
|
-
return (jsxRuntime.jsxs("div", { className: clsx('notification__item',
|
|
141
|
+
return (jsxRuntime.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, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(Text.Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx(Tooltip.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] }));
|
|
147
142
|
}
|
|
148
143
|
|
|
149
144
|
function NotificationWrapper(props) {
|
|
150
145
|
var notifications = Notifications.useNotifications();
|
|
151
146
|
var hideNotifications = Notifications.useNotificationsAPI().hideNotifications;
|
|
152
147
|
var className = props.className, close = props.close;
|
|
153
|
-
console.log(notifications);
|
|
154
148
|
return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
|
|
155
149
|
}
|
|
156
150
|
|
|
@@ -8,8 +8,8 @@ var ceil = require('lodash/ceil');
|
|
|
8
8
|
var ReactPaginate = require('react-paginate');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var DropdownItem = require('../../
|
|
12
|
-
var Tooltip = require('../../
|
|
11
|
+
var DropdownItem = require('../../DropdownItem_cjs_DQvByLbN.js');
|
|
12
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
13
13
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
14
14
|
var _default = require('@itcase/icons/default');
|
|
15
15
|
require('lodash/camelCase');
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Button = require('../../
|
|
10
|
+
var Button = require('../../Button_cjs_plv5-qcj.js');
|
|
11
11
|
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
12
12
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -22,7 +22,7 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Tooltip_cjs_DHduWa-v.js');
|
|
26
26
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
27
27
|
require('../../Loader_cjs_Ca4i0sER.js');
|
|
28
28
|
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var clsx = require('clsx');
|
|
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_DHduWa-v.js');
|
|
11
11
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
12
12
|
var Scrollbar = require('../../Scrollbar_cjs_DcKOfcNp.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('../../../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
4
|
var _default = require('@itcase/icons/default');
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var segmentedMock = {
|
|
7
7
|
activeSegment: {
|
|
8
8
|
value: 1,
|
|
9
9
|
},
|
|
@@ -34,20 +34,20 @@ var segmentedArgsMock = {
|
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
};
|
|
37
|
-
var
|
|
37
|
+
var segmentedLabelMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
38
38
|
label: segment.label,
|
|
39
39
|
value: segment.value,
|
|
40
40
|
}); });
|
|
41
|
-
var
|
|
41
|
+
var segmentedIconMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
42
42
|
iconBefore: segment.iconBefore,
|
|
43
43
|
}); }).slice(3);
|
|
44
|
-
var
|
|
45
|
-
14:
|
|
46
|
-
16:
|
|
47
|
-
20:
|
|
44
|
+
var segmentedMockSize = {
|
|
45
|
+
14: segmentedMock.segments.map(function (segment) { return (tslib_es6.__assign(tslib_es6.__assign({}, segment), { iconAfter: _default.icons14.Placeholder.Default, iconBefore: _default.icons14.Placeholder.Default })); }),
|
|
46
|
+
16: segmentedMock.segments.map(function (segment) { return (tslib_es6.__assign(tslib_es6.__assign({}, segment), { iconAfter: _default.icons16.Placeholder.Default, iconBefore: _default.icons16.Placeholder.Default })); }),
|
|
47
|
+
20: segmentedMock.segments.map(function (segment) { return (tslib_es6.__assign(tslib_es6.__assign({}, segment), { iconAfter: _default.icons20.Placeholder.Default, iconBefore: _default.icons20.Placeholder.Default })); }),
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
50
|
+
exports.segmentedIconMock = segmentedIconMock;
|
|
51
|
+
exports.segmentedLabelMock = segmentedLabelMock;
|
|
52
|
+
exports.segmentedMock = segmentedMock;
|
|
53
|
+
exports.segmentedMockSize = segmentedMockSize;
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var Tooltip = require('../../
|
|
7
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
10
10
|
require('../hooks/useStyles/useStyles.js');
|
|
@@ -32,6 +32,7 @@ var segmentedAppearanceDefault = {
|
|
|
32
32
|
labelTextActiveColor: 'accentTextPrimary',
|
|
33
33
|
labelTextActiveHoverColor: 'accentTextPrimary',
|
|
34
34
|
labelTextColor: 'surfaceTextPrimary',
|
|
35
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
35
36
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
36
37
|
iconAfterFillActive: 'surfaceItemSecondary',
|
|
37
38
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
@@ -39,23 +40,22 @@ var segmentedAppearanceDefault = {
|
|
|
39
40
|
iconFill: 'surfaceItemQuaternary',
|
|
40
41
|
iconFillActive: 'surfaceItemSecondary',
|
|
41
42
|
indicatorFill: 'accentPrimary',
|
|
42
|
-
inputBorderColor: 'surfaceBorderQuaternary',
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
var segmentedAppearanceDisabled = {
|
|
47
47
|
disabledPrimary: {
|
|
48
48
|
fill: 'surfaceDisabled',
|
|
49
|
-
fillActive: '
|
|
50
|
-
|
|
49
|
+
fillActive: 'surfaceItemTertiary',
|
|
50
|
+
labelTextActiveColor: 'surfaceTextQuaternary',
|
|
51
51
|
labelTextColor: 'surfaceTextQuaternary',
|
|
52
|
+
borderColor: 'surfaceBorderPrimary',
|
|
52
53
|
iconAfterFill: 'surfaceItemPrimary',
|
|
53
54
|
iconAfterFillActive: 'surfaceItemDisabled',
|
|
54
55
|
iconBeforeFill: 'surfaceItemPrimary',
|
|
55
56
|
iconBeforeFillActive: 'surfaceItemDisabled',
|
|
56
57
|
iconFill: 'surfaceItemPrimary',
|
|
57
58
|
iconFillActive: 'surfaceItemDisabled',
|
|
58
|
-
inputBorderColor: 'surfaceBorderPrimary',
|
|
59
59
|
},
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -64,14 +64,16 @@ var segmentedAppearanceError = {
|
|
|
64
64
|
fill: 'errorTertiary',
|
|
65
65
|
fillActive: 'errorPrimary',
|
|
66
66
|
fillHover: 'errorItemHover',
|
|
67
|
-
|
|
67
|
+
labelTextActiveColor: 'errorTextPrimary',
|
|
68
|
+
labelTextColor: 'errorTextSecondary',
|
|
69
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
70
|
+
borderColor: 'errorBorderQuaternary',
|
|
68
71
|
iconAfterFill: 'errorItemSecondary',
|
|
69
72
|
iconAfterFillActive: 'errorItemTertiary',
|
|
70
73
|
iconBeforeFill: 'errorItemSecondary',
|
|
71
74
|
iconBeforeFillActive: 'errorItemTertiary',
|
|
72
75
|
iconFill: 'errorItemSecondary',
|
|
73
76
|
iconFillActive: 'errorItemTertiary',
|
|
74
|
-
inputBorderColor: 'errorBorderQuaternary',
|
|
75
77
|
},
|
|
76
78
|
};
|
|
77
79
|
|
|
@@ -105,19 +107,17 @@ var segmentedAppearanceSize = {
|
|
|
105
107
|
|
|
106
108
|
var segmentedAppearanceStyle = {
|
|
107
109
|
solid: {
|
|
108
|
-
|
|
110
|
+
borderColor: 'none',
|
|
109
111
|
},
|
|
110
112
|
outlined: {
|
|
111
113
|
fill: 'none',
|
|
112
114
|
fillActive: 'none',
|
|
113
115
|
},
|
|
114
|
-
full: {
|
|
115
|
-
inputBorderColor: '0',
|
|
116
|
-
},
|
|
116
|
+
full: {},
|
|
117
117
|
ghost: {
|
|
118
118
|
fill: 'none',
|
|
119
119
|
fillActive: 'none',
|
|
120
|
-
|
|
120
|
+
borderColor: 'none',
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
|
|
@@ -125,16 +125,17 @@ var segmentedAppearanceSuccess = {
|
|
|
125
125
|
successPrimary: {
|
|
126
126
|
fill: 'successTertiary',
|
|
127
127
|
fillActive: 'successItemSecondary',
|
|
128
|
-
fillHover: '
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
fillHover: 'successItemSecondary',
|
|
129
|
+
labelTextActiveColor: 'successTextPrimary',
|
|
130
|
+
labelTextColor: 'successTextSecondary',
|
|
131
|
+
labelTextHoverColor: 'successTextPrimary',
|
|
132
|
+
borderColor: 'successBorderSecondary',
|
|
131
133
|
iconAfterFill: 'successItemSecondary',
|
|
132
134
|
iconAfterFillActive: 'successTertiary',
|
|
133
135
|
iconBeforeFill: 'successItemSecondary',
|
|
134
136
|
iconBeforeFillActive: 'successTertiary',
|
|
135
137
|
iconFill: 'successItemSecondary',
|
|
136
138
|
iconFillActive: 'successTertiary',
|
|
137
|
-
inputBorderColor: 'successBorderSecondary',
|
|
138
139
|
},
|
|
139
140
|
};
|
|
140
141
|
|
|
@@ -143,15 +144,16 @@ var segmentedAppearanceWarning = {
|
|
|
143
144
|
fill: 'warningTertiary',
|
|
144
145
|
fillActive: 'warningItemSecondary',
|
|
145
146
|
fillHover: 'warningItemHover',
|
|
146
|
-
|
|
147
|
+
labelTextActiveColor: 'warningTextPrimary',
|
|
148
|
+
labelTextColor: 'warningTextSecondary',
|
|
147
149
|
labelTextColorHover: 'warningTextSecondary',
|
|
150
|
+
borderColor: 'warningBorderSecondary',
|
|
148
151
|
iconAfterFill: 'warningItemSecondary',
|
|
149
152
|
iconAfterFillActive: 'warningTertiary',
|
|
150
153
|
iconBeforeFill: 'warningItemSecondary',
|
|
151
154
|
iconBeforeFillActive: 'warningTertiary',
|
|
152
155
|
iconFill: 'warningItemSecondary',
|
|
153
156
|
iconFillActive: 'warningTertiary',
|
|
154
|
-
inputBorderColor: 'warningBorderSecondary',
|
|
155
157
|
},
|
|
156
158
|
};
|
|
157
159
|
|
|
@@ -191,16 +193,17 @@ var Segmented = React.forwardRef(function (props) {
|
|
|
191
193
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
192
194
|
}, {});
|
|
193
195
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
194
|
-
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass,
|
|
195
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass),
|
|
196
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
197
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsxRuntime.jsx("div", { className: "segmented__wrapper", children: jsxRuntime.jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
|
|
196
198
|
var isActive = String(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) === String(item.value);
|
|
197
|
-
return (jsxRuntime.jsx("div", { className: clsx('segmented__item', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
199
|
+
return (jsxRuntime.jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
198
200
|
isDisabled &&
|
|
199
|
-
'segmented__item_active_state_disabled',
|
|
201
|
+
'segmented__item_active_state_disabled', !isActive
|
|
202
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
203
|
+
: fillActiveHoverClass &&
|
|
204
|
+
"fill_active_hover_".concat(fillActiveHoverClass), isActive &&
|
|
200
205
|
fillActiveClass &&
|
|
201
|
-
"fill_active_".concat(fillActiveClass),
|
|
202
|
-
fillActiveHoverClass &&
|
|
203
|
-
"fill_active_hover_".concat(fillActiveHoverClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxRuntime.jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsxRuntime.jsx(Tooltip.Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
206
|
+
"fill_active_".concat(fillActiveClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxRuntime.jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsxRuntime.jsx(Tooltip.Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
204
207
|
? item.iconBeforeActive || item.iconBefore
|
|
205
208
|
: item.iconBefore, isActive: isActive })) : null, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsxRuntime.jsx(Tooltip.Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })) : null, item.iconAfter || item.iconAfterActive ? (jsxRuntime.jsx(Tooltip.Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
206
209
|
? item.iconAfterActive || item.iconAfter
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Select = require('react-select');
|
|
6
|
-
var Tooltip = require('../../
|
|
6
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var react = require('swiper/react');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('../../
|
|
9
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -125,7 +125,6 @@ var Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
125
125
|
}, {});
|
|
126
126
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
127
127
|
var size = propsGenerator.size, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillToggleActiveClass = propsGenerator.fillToggleActiveClass, fillToggleActiveHoverClass = propsGenerator.fillToggleActiveHoverClass, fillToggleClass = propsGenerator.fillToggleClass, fillToggleHoverClass = propsGenerator.fillToggleHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
|
|
128
|
-
console.log(checked);
|
|
129
128
|
return (jsxRuntime.jsxs("div", { className: clsx('switch', className, align && "switch_align_".concat(align), size && "switch_size_".concat(size)), children: [title && (jsxRuntime.jsx(Text.Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc })), jsxRuntime.jsxs("div", { className: 'switch__item', children: [jsxRuntime.jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", disabled: disabled, checked: checked || isActive,
|
|
130
129
|
// @ts-expect-error
|
|
131
130
|
ref: ref, onChange: onChange }), jsxRuntime.jsx("div", { className: clsx('switch__bg', !checked
|