@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-192
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/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +7 -6
- package/es/ListItem/ListItem.module.css +104 -55
- package/es/ListItem/ListItemWithAvatar.js +8 -7
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +7 -6
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +16 -10
- package/es/MultiSelect/props/defaultProps.js +9 -3
- package/es/MultiSelect/props/propTypes.js +7 -3
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/GroupSelect.js +9 -3
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Select/SelectWithAvatar.js +9 -3
- package/es/Select/SelectWithIcon.js +9 -3
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +104 -55
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +9 -3
- package/lib/MultiSelect/props/propTypes.js +9 -6
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/Select.module.css +33 -22
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +8 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +6 -3
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -8,27 +8,22 @@
|
|
|
8
8
|
.default.defaultHover {
|
|
9
9
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
10
|
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover,
|
|
12
|
-
/* .hoverEffect:focus.primary.defaultHover, */
|
|
13
|
-
.hoverEffect:hover.primary.borderHover
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
|
|
14
12
|
/* .hoverEffect:focus.primary.borderHover */
|
|
15
13
|
{
|
|
16
14
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
17
15
|
}
|
|
18
|
-
.primary.defaultHover,
|
|
19
|
-
.hoverEffect:hover.primary.active.border
|
|
16
|
+
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
20
17
|
/* .hoverEffect:focus.primary.active.border */
|
|
21
18
|
{
|
|
22
19
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
23
20
|
}
|
|
24
|
-
.primaryLight.defaultHover,
|
|
25
|
-
.hoverEffect:hover.primaryLight.borderHover
|
|
21
|
+
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
26
22
|
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
27
23
|
{
|
|
28
24
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
29
25
|
}
|
|
30
|
-
.green.defaultHover,
|
|
31
|
-
.hoverEffect:hover.green.borderHover
|
|
26
|
+
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
32
27
|
/* .hoverEffect:focus.green.borderHover */
|
|
33
28
|
{
|
|
34
29
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
@@ -56,9 +51,7 @@
|
|
|
56
51
|
.primaryFilled {
|
|
57
52
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
58
53
|
}
|
|
59
|
-
.hoverEffect:hover.primaryFilled,
|
|
60
|
-
/* .hoverEffect:focus.primaryFilled, */
|
|
61
|
-
.primaryFilled.active {
|
|
54
|
+
.hoverEffect:hover.primaryFilled, .primaryFilled.active {
|
|
62
55
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
63
56
|
}
|
|
64
57
|
.hoverEffect:hover.green.bgHover
|
|
@@ -66,18 +59,10 @@
|
|
|
66
59
|
{
|
|
67
60
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
68
61
|
}
|
|
69
|
-
.default.active,
|
|
70
|
-
.hoverEffect:hover.default.active,
|
|
71
|
-
/* .hoverEffect:focus.default.active, */
|
|
72
|
-
.primaryLight.active,
|
|
73
|
-
.primaryDark.active {
|
|
62
|
+
.default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
|
|
74
63
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
75
64
|
}
|
|
76
|
-
.default.active.border,
|
|
77
|
-
.hoverEffect:hover.default.active.border,
|
|
78
|
-
/* .hoverEffect:focus.default.active.border, */
|
|
79
|
-
.primaryLight.active.border,
|
|
80
|
-
.primaryDark.active.border {
|
|
65
|
+
.default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
81
66
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
82
67
|
}
|
|
83
68
|
.green.active {
|
|
@@ -89,15 +74,12 @@
|
|
|
89
74
|
.primary.active {
|
|
90
75
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
91
76
|
}
|
|
92
|
-
.danger.defaultHover,
|
|
93
|
-
.hoverEffect:hover.danger.borderHover
|
|
77
|
+
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
94
78
|
/* .hoverEffect:focus.danger.borderHover */
|
|
95
79
|
{
|
|
96
80
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
97
81
|
}
|
|
98
|
-
.hoverEffect:hover.danger.bgHover,
|
|
99
|
-
/* .hoverEffect:focus.danger.bgHover, */
|
|
100
|
-
.danger.active {
|
|
82
|
+
.hoverEffect:hover.danger.bgHover, .danger.active {
|
|
101
83
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
102
84
|
}
|
|
103
85
|
.hoverEffect:hover.primaryDark.bgHover
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { PureComponent } from 'react';
|
|
3
5
|
import { GroupSelect_defaultProps } from './props/defaultProps';
|
|
@@ -584,8 +586,12 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
584
586
|
htmlId,
|
|
585
587
|
iconOnHover,
|
|
586
588
|
isLoading,
|
|
587
|
-
dataSelectorId
|
|
589
|
+
dataSelectorId,
|
|
590
|
+
customProps
|
|
588
591
|
} = this.props;
|
|
592
|
+
const {
|
|
593
|
+
suggestionsProps = {}
|
|
594
|
+
} = customProps;
|
|
589
595
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
590
596
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
591
597
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -750,7 +756,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
750
756
|
a11y: {
|
|
751
757
|
role: 'heading'
|
|
752
758
|
}
|
|
753
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
759
|
+
})), /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
754
760
|
activeId: selectedId,
|
|
755
761
|
suggestions: options,
|
|
756
762
|
getRef: this.suggestionItemRef,
|
|
@@ -765,7 +771,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
765
771
|
ariaParentRole: 'listbox',
|
|
766
772
|
role: 'option'
|
|
767
773
|
}
|
|
768
|
-
}));
|
|
774
|
+
}, suggestionsProps)));
|
|
769
775
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
770
776
|
options: revampedGroups,
|
|
771
777
|
searchString: searchStr,
|
package/es/Select/Select.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -915,7 +917,7 @@ export class SelectComponent extends Component {
|
|
|
915
917
|
shrink: true,
|
|
916
918
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
917
919
|
eleRef: this.suggestionContainerRef
|
|
918
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
920
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
919
921
|
activeId: selectedId,
|
|
920
922
|
suggestions: suggestions,
|
|
921
923
|
getRef: this.suggestionItemRef,
|
|
@@ -932,9 +934,8 @@ export class SelectComponent extends Component {
|
|
|
932
934
|
a11y: {
|
|
933
935
|
ariaParentRole: 'listbox',
|
|
934
936
|
role: 'option'
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
937
|
+
}
|
|
938
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
938
939
|
isLoading: isFetchingOptions,
|
|
939
940
|
options: options,
|
|
940
941
|
searchString: searchStr,
|
|
@@ -3,29 +3,29 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.small {
|
|
6
|
-
max-height:
|
|
6
|
+
max-height: var(--zd_size200) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.medium {
|
|
10
|
-
max-height:
|
|
10
|
+
max-height: var(--zd_size350) ;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.large {
|
|
14
|
-
max-height:
|
|
14
|
+
max-height: var(--zd_size400) ;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.emptyState {
|
|
18
|
-
font-size:
|
|
18
|
+
font-size: var(--zd_font_size14) ;
|
|
19
19
|
color: var(--zdt_select_emptystate_text);
|
|
20
20
|
composes: semibold from '../common/common.module.css';
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.box_small .emptyState {
|
|
24
|
-
padding:
|
|
24
|
+
padding: var(--zd_size12) var(--zd_size6) ;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.box_medium .emptyState {
|
|
28
|
-
padding:
|
|
28
|
+
padding: var(--zd_size12) var(--zd_size15) ;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.hide {
|
|
@@ -37,32 +37,32 @@
|
|
|
37
37
|
}
|
|
38
38
|
/* css:lineheight-validation:ignore */
|
|
39
39
|
.arrowIcon {
|
|
40
|
-
height:
|
|
40
|
+
height: var(--zd_size8) ;
|
|
41
41
|
line-height: var(--zd_size8);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.small.search {
|
|
45
|
-
padding: 0
|
|
45
|
+
padding: 0 var(--zd_size5) ;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.medium.search {
|
|
49
|
-
padding:
|
|
49
|
+
padding: var(--zd_size3) var(--zd_size20) 0 ;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.title {
|
|
53
|
-
margin-bottom:
|
|
53
|
+
margin-bottom: var(--zd_size6) ;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.groupTitle {
|
|
57
|
-
margin:
|
|
57
|
+
margin: var(--zd_size6) 0 ;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.listItemContainer {
|
|
61
|
-
padding:
|
|
61
|
+
padding: var(--zd_size10) 0 ;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.responsivelistItemContainer {
|
|
65
|
-
padding:
|
|
65
|
+
padding: var(--zd_size10) 0 0 ;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.readonly {
|
|
@@ -85,22 +85,33 @@
|
|
|
85
85
|
|
|
86
86
|
.leftIcon {
|
|
87
87
|
position: absolute;
|
|
88
|
-
top: 0;
|
|
89
|
-
bottom: 0;
|
|
90
|
-
|
|
91
|
-
width: 30px;
|
|
88
|
+
top: 0 ;
|
|
89
|
+
bottom: 0 ;
|
|
90
|
+
width: var(--zd_size30) ;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
.
|
|
95
|
-
|
|
93
|
+
[dir=ltr] .leftIcon {
|
|
94
|
+
left: 0 ;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[dir=rtl] .leftIcon {
|
|
98
|
+
right: 0 ;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[dir=ltr] .iconSelect {
|
|
102
|
+
padding-left: var(--zd_size30) ;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[dir=rtl] .iconSelect {
|
|
106
|
+
padding-right: var(--zd_size30) ;
|
|
96
107
|
}
|
|
97
108
|
|
|
98
109
|
.dropBoxList {
|
|
99
|
-
padding:
|
|
110
|
+
padding: var(--zd_size10) 0 ;
|
|
100
111
|
}
|
|
101
112
|
|
|
102
113
|
.responsivedropBoxList {
|
|
103
|
-
padding:
|
|
114
|
+
padding: var(--zd_size10) 0 0 0 ;
|
|
104
115
|
}
|
|
105
116
|
|
|
106
117
|
.rotate {
|
|
@@ -120,5 +131,5 @@
|
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
.loader {
|
|
123
|
-
padding:
|
|
134
|
+
padding: var(--zd_size10) ;
|
|
124
135
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { SelectWithAvatar_defaultProps } from './props/defaultProps';
|
|
@@ -158,8 +160,12 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
158
160
|
htmlId,
|
|
159
161
|
needEffect,
|
|
160
162
|
isLoading,
|
|
161
|
-
dataSelectorId
|
|
163
|
+
dataSelectorId,
|
|
164
|
+
customProps
|
|
162
165
|
} = this.props;
|
|
166
|
+
const {
|
|
167
|
+
suggestionsProps = {}
|
|
168
|
+
} = customProps;
|
|
163
169
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
164
170
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
165
171
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -294,7 +300,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
294
300
|
a11y: {
|
|
295
301
|
role: 'heading'
|
|
296
302
|
}
|
|
297
|
-
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
303
|
+
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
298
304
|
activeId: selectedId,
|
|
299
305
|
suggestions: suggestions,
|
|
300
306
|
getRef: this.suggestionItemRef,
|
|
@@ -310,7 +316,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
310
316
|
ariaParentRole: 'listbox',
|
|
311
317
|
role: 'option'
|
|
312
318
|
}
|
|
313
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
319
|
+
}, suggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
314
320
|
isLoading: isFetchingOptions,
|
|
315
321
|
options: options,
|
|
316
322
|
searchString: searchStr,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component } from 'react';
|
|
2
4
|
import { SelectWithIcon_defaultProps } from './props/defaultProps';
|
|
3
5
|
import { SelectWithIcon_propTypes } from './props/propTypes';
|
|
@@ -345,8 +347,12 @@ class SelectWithIcon extends Component {
|
|
|
345
347
|
i18nKeys,
|
|
346
348
|
htmlId,
|
|
347
349
|
isLoading,
|
|
348
|
-
dataSelectorId
|
|
350
|
+
dataSelectorId,
|
|
351
|
+
customProps
|
|
349
352
|
} = this.props;
|
|
353
|
+
const {
|
|
354
|
+
listItemProps = {}
|
|
355
|
+
} = customProps;
|
|
350
356
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
351
357
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
352
358
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -477,7 +483,7 @@ class SelectWithIcon extends Component {
|
|
|
477
483
|
iconSize,
|
|
478
484
|
iconColor
|
|
479
485
|
} = options;
|
|
480
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
486
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
481
487
|
key: options[idKey],
|
|
482
488
|
value: options[valueKey],
|
|
483
489
|
size: "medium",
|
|
@@ -501,7 +507,7 @@ class SelectWithIcon extends Component {
|
|
|
501
507
|
ariaSelected: selectedId === options[idKey],
|
|
502
508
|
ariaLabel: options[valueKey]
|
|
503
509
|
}
|
|
504
|
-
});
|
|
510
|
+
}, listItemProps));
|
|
505
511
|
})) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
506
512
|
isLoading: isFetchingOptions,
|
|
507
513
|
options: options,
|
|
@@ -66,7 +66,8 @@ export const GroupSelect_defaultProps = {
|
|
|
66
66
|
isSearchClearOnClose: true,
|
|
67
67
|
i18nKeys: {},
|
|
68
68
|
iconOnHover: false,
|
|
69
|
-
isLoading: false
|
|
69
|
+
isLoading: false,
|
|
70
|
+
customProps: {}
|
|
70
71
|
};
|
|
71
72
|
export const SelectWithAvatar_defaultProps = {
|
|
72
73
|
animationStyle: 'bounce',
|
|
@@ -90,7 +91,8 @@ export const SelectWithAvatar_defaultProps = {
|
|
|
90
91
|
isSearchClearOnClose: true,
|
|
91
92
|
i18nKeys: {},
|
|
92
93
|
needEffect: true,
|
|
93
|
-
isLoading: false
|
|
94
|
+
isLoading: false,
|
|
95
|
+
customProps: {}
|
|
94
96
|
};
|
|
95
97
|
export const SelectWithIcon_defaultProps = {
|
|
96
98
|
isReadOnly: false,
|
|
@@ -115,5 +117,6 @@ export const SelectWithIcon_defaultProps = {
|
|
|
115
117
|
needIcon: true,
|
|
116
118
|
iconSize: '14',
|
|
117
119
|
i18nKeys: {},
|
|
118
|
-
isLoading: false
|
|
120
|
+
isLoading: false,
|
|
121
|
+
customProps: {}
|
|
119
122
|
};
|
|
@@ -169,7 +169,8 @@ export const GroupSelect_propTypes = {
|
|
|
169
169
|
}),
|
|
170
170
|
isLoading: PropTypes.bool,
|
|
171
171
|
dataSelectorId: PropTypes.string,
|
|
172
|
-
isDefaultSelectValue: PropTypes.bool
|
|
172
|
+
isDefaultSelectValue: PropTypes.bool,
|
|
173
|
+
customProps: PropTypes.string
|
|
173
174
|
};
|
|
174
175
|
export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
175
176
|
textBoxClass: PropTypes.string,
|
|
@@ -230,7 +231,8 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
230
231
|
htmlId: PropTypes.string,
|
|
231
232
|
needEffect: PropTypes.bool,
|
|
232
233
|
isLoading: PropTypes.bool,
|
|
233
|
-
dataSelectorId: PropTypes.string
|
|
234
|
+
dataSelectorId: PropTypes.string,
|
|
235
|
+
customProps: PropTypes.string
|
|
234
236
|
};
|
|
235
237
|
export const SelectWithIcon_propTypes = {
|
|
236
238
|
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
|
@@ -284,5 +286,6 @@ export const SelectWithIcon_propTypes = {
|
|
|
284
286
|
searchBoxSize: PropTypes.string,
|
|
285
287
|
needResponsive: PropTypes.bool,
|
|
286
288
|
boxSize: PropTypes.string,
|
|
287
|
-
emptyMessage: PropTypes.string
|
|
289
|
+
emptyMessage: PropTypes.string,
|
|
290
|
+
customProps: PropTypes.string
|
|
288
291
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* stencils default variables */
|
|
3
|
-
--stencil_height:
|
|
3
|
+
--stencil_height: var(--zd_size9);
|
|
4
4
|
--stencil_width: 100%;
|
|
5
5
|
--stencil_border_radius: 5px;
|
|
6
6
|
}
|
|
@@ -11,14 +11,23 @@
|
|
|
11
11
|
border-radius: var(--stencil_border_radius);
|
|
12
12
|
}
|
|
13
13
|
.stencil {
|
|
14
|
-
|
|
14
|
+
background-size: 800px 1px;
|
|
15
|
+
}
|
|
16
|
+
[dir=ltr] .stencil {
|
|
17
|
+
animation-name: placeHolderShimmer-ltr ;
|
|
18
|
+
animation-fill-mode: forwards;
|
|
19
|
+
animation-iteration-count: infinite;
|
|
20
|
+
animation-duration: var(--zd_transition10);
|
|
21
|
+
animation-timing-function: linear;
|
|
22
|
+
}
|
|
23
|
+
[dir=rtl] .stencil {
|
|
24
|
+
animation-name: placeHolderShimmer-rtl ;
|
|
15
25
|
animation-fill-mode: forwards;
|
|
16
26
|
animation-iteration-count: infinite;
|
|
17
27
|
animation-duration: var(--zd_transition10);
|
|
18
28
|
animation-timing-function: linear;
|
|
19
|
-
background-size: 800px 1px;
|
|
20
29
|
}
|
|
21
|
-
@keyframes placeHolderShimmer {
|
|
30
|
+
@keyframes placeHolderShimmer-ltr {
|
|
22
31
|
0% {
|
|
23
32
|
background-position: calc(var(--zd_size468) * -1) 0;
|
|
24
33
|
}
|
|
@@ -27,10 +36,19 @@
|
|
|
27
36
|
background-position: var(--zd_size468) 0;
|
|
28
37
|
}
|
|
29
38
|
}
|
|
39
|
+
@keyframes placeHolderShimmer-rtl {
|
|
40
|
+
0% {
|
|
41
|
+
background-position: calc(100% - (var(--zd_size468) * -1)) 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
100% {
|
|
45
|
+
background-position: var(--zd_size468) 100%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
30
48
|
|
|
31
49
|
.rectangular {
|
|
32
50
|
composes: stencil;
|
|
33
|
-
--stencil_height:
|
|
51
|
+
--stencil_height: var(--zd_size9);
|
|
34
52
|
--stencil_border_radius: 5px;
|
|
35
53
|
}
|
|
36
54
|
.primary {
|
|
@@ -47,16 +65,16 @@
|
|
|
47
65
|
}
|
|
48
66
|
|
|
49
67
|
.small {
|
|
50
|
-
--stencil_width:
|
|
68
|
+
--stencil_width: var(--zd_size110);
|
|
51
69
|
}
|
|
52
70
|
.default {
|
|
53
71
|
--stencil_width: 100%;
|
|
54
72
|
}
|
|
55
73
|
.medium {
|
|
56
|
-
--stencil_width:
|
|
74
|
+
--stencil_width: var(--zd_size170);
|
|
57
75
|
}
|
|
58
76
|
.large {
|
|
59
|
-
--stencil_width:
|
|
77
|
+
--stencil_width: var(--zd_size220);
|
|
60
78
|
}
|
|
61
79
|
|
|
62
80
|
.circle {
|
|
@@ -64,15 +82,15 @@
|
|
|
64
82
|
--stencil_border_radius: 50%;
|
|
65
83
|
}
|
|
66
84
|
.clarge {
|
|
67
|
-
--stencil_width:
|
|
68
|
-
--stencil_height:
|
|
85
|
+
--stencil_width: var(--zd_size42);
|
|
86
|
+
--stencil_height: var(--zd_size42);
|
|
69
87
|
}
|
|
70
88
|
.cmedium,
|
|
71
89
|
.cdefault {
|
|
72
|
-
--stencil_width:
|
|
73
|
-
--stencil_height:
|
|
90
|
+
--stencil_width: var(--zd_size30);
|
|
91
|
+
--stencil_height: var(--zd_size30);
|
|
74
92
|
}
|
|
75
93
|
.csmall {
|
|
76
|
-
--stencil_width:
|
|
77
|
-
--stencil_height:
|
|
94
|
+
--stencil_width: var(--zd_size20);
|
|
95
|
+
--stencil_height: var(--zd_size20);
|
|
78
96
|
}
|
package/es/Switch/Switch.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -48,7 +50,7 @@ export default class Switch extends React.Component {
|
|
|
48
50
|
customLabel = ''
|
|
49
51
|
} = customClass;
|
|
50
52
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
51
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
53
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
52
54
|
align: "vertical",
|
|
53
55
|
isCover: false,
|
|
54
56
|
alignBox: "row",
|
|
@@ -57,9 +59,8 @@ export default class Switch extends React.Component {
|
|
|
57
59
|
"data-title": disabled ? disableTitle : title,
|
|
58
60
|
"aria-checked": checked,
|
|
59
61
|
role: "switch",
|
|
60
|
-
dataSelectorId: dataSelectorId
|
|
61
|
-
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
62
|
+
dataSelectorId: dataSelectorId
|
|
63
|
+
}, SwitchProps), /*#__PURE__*/React.createElement(Box, {
|
|
63
64
|
className: `${style[size]} ${customSwitchSize}`
|
|
64
65
|
}, /*#__PURE__*/React.createElement("input", {
|
|
65
66
|
type: "checkbox",
|
|
@@ -77,16 +78,15 @@ export default class Switch extends React.Component {
|
|
|
77
78
|
"data-test-id": dataId,
|
|
78
79
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
79
80
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
80
|
-
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
81
|
+
})), text && /*#__PURE__*/React.createElement(Label, _extends({
|
|
81
82
|
text: text,
|
|
82
83
|
palette: labelPalette,
|
|
83
84
|
id: id,
|
|
84
85
|
size: labelSize,
|
|
85
86
|
type: "subtitle",
|
|
86
87
|
onClick: !disabled || !isReadOnly ? this.onChange : null,
|
|
87
|
-
customClass: customLabel
|
|
88
|
-
|
|
89
|
-
}));
|
|
88
|
+
customClass: customLabel
|
|
89
|
+
}, LabelProps)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
}
|
|
@@ -37,13 +37,11 @@
|
|
|
37
37
|
{
|
|
38
38
|
--switch_off_bg_color: var(--zdt_switch_effect_off_bg);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
/*rtl:begin:ignore*/
|
|
42
40
|
.label:after {
|
|
43
41
|
content: '';
|
|
44
42
|
display: block;
|
|
45
43
|
position: absolute;
|
|
46
|
-
right: 50
|
|
44
|
+
right: 50% ;
|
|
47
45
|
transition: all var(--zd_transition2);
|
|
48
46
|
box-shadow: var(--switch_cricle_box_shadow);
|
|
49
47
|
background-color: var(--switch_circle_bg_color);
|
|
@@ -55,59 +53,49 @@
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
.checked+.label:after {
|
|
58
|
-
right: -
|
|
56
|
+
right: calc( var(--zd_size1) * -1 ) ;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
/*rtl:end:ignore*/
|
|
62
|
-
|
|
63
59
|
.input {
|
|
64
60
|
display: none;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
63
|
.small {
|
|
68
|
-
height:
|
|
69
|
-
width:
|
|
64
|
+
height: var(--zd_size14) ;
|
|
65
|
+
width: var(--zd_size28) ;
|
|
70
66
|
}
|
|
71
|
-
|
|
72
|
-
/*rtl:begin:ignore*/
|
|
73
67
|
.switch_smallLabel {
|
|
74
|
-
height:
|
|
75
|
-
width:
|
|
76
|
-
top: -
|
|
77
|
-
left:
|
|
68
|
+
height: var(--zd_size9) ;
|
|
69
|
+
width: var(--zd_size22) ;
|
|
70
|
+
top: calc( var(--zd_size2) * -1 ) ;
|
|
71
|
+
left: var(--zd_size2) ;
|
|
78
72
|
}
|
|
79
|
-
|
|
80
|
-
/*rtl:end:ignore*/
|
|
81
73
|
.switch_smallLabel:after {
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
84
|
-
top: -
|
|
74
|
+
width: var(--zd_size12) ;
|
|
75
|
+
height: var(--zd_size12) ;
|
|
76
|
+
top: calc( var(--zd_size2) * -1 ) ;
|
|
85
77
|
}
|
|
86
78
|
|
|
87
79
|
.medium {
|
|
88
|
-
height:
|
|
89
|
-
width:
|
|
80
|
+
height: var(--zd_size18) ;
|
|
81
|
+
width: var(--zd_size34) ;
|
|
90
82
|
}
|
|
91
|
-
|
|
92
|
-
/*rtl:begin:ignore*/
|
|
93
83
|
.switch_mediumLabel {
|
|
94
|
-
height:
|
|
95
|
-
width:
|
|
96
|
-
top:
|
|
97
|
-
left:
|
|
84
|
+
height: var(--zd_size13) ;
|
|
85
|
+
width: var(--zd_size31) ;
|
|
86
|
+
top: var(--zd_size2) ;
|
|
87
|
+
left: var(--zd_size2) ;
|
|
98
88
|
}
|
|
99
|
-
|
|
100
|
-
/*rtl:end:ignore*/
|
|
101
89
|
.switch_mediumLabel:after {
|
|
102
|
-
width:
|
|
103
|
-
height:
|
|
104
|
-
top: -
|
|
90
|
+
width: var(--zd_size18) ;
|
|
91
|
+
height: var(--zd_size18) ;
|
|
92
|
+
top: calc( var(--zd_size3) * -1 ) ;
|
|
105
93
|
}
|
|
106
94
|
|
|
107
95
|
.input:disabled+.label {
|
|
96
|
+
opacity: 0.4;
|
|
108
97
|
border-color: var(--zdt_switch_default_off_bg);
|
|
109
98
|
cursor: not-allowed;
|
|
110
|
-
opacity: 0.4;
|
|
111
99
|
}
|
|
112
100
|
|
|
113
101
|
.switch {
|
|
@@ -128,6 +116,13 @@
|
|
|
128
116
|
|
|
129
117
|
.switch+label {
|
|
130
118
|
position: relative;
|
|
131
|
-
top: -
|
|
132
|
-
|
|
119
|
+
top: calc( var(--zd_size1) * -1 ) ;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[dir=ltr] .switch+label {
|
|
123
|
+
margin-left: var(--zd_size12) ;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[dir=rtl] .switch+label {
|
|
127
|
+
margin-right: var(--zd_size12) ;
|
|
133
128
|
}
|
package/es/Tab/Tab.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['text', 'tabAlpha', 'alphaActive', 'gammaActive', 'betaActive', 'deltaActive', 'tabGamma', 'tabBeta', 'tabDelta',', 'specialActive', 'tabSpecial', 'alphaActive_border', 'gammaActive_border', 'betaActive_border', 'deltaActive_border'] }] */
|
|
@@ -68,7 +70,7 @@ export default function Tab(_ref) {
|
|
|
68
70
|
let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
|
|
69
71
|
let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
|
|
70
72
|
let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
|
|
71
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
73
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
72
74
|
tourId: tourId,
|
|
73
75
|
tagName: isLink ? 'a' : 'div',
|
|
74
76
|
className: tabClass,
|
|
@@ -86,9 +88,8 @@ export default function Tab(_ref) {
|
|
|
86
88
|
"aria-selected": isActive ? true : false,
|
|
87
89
|
tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
|
|
88
90
|
"aria-label": text ? text : null,
|
|
89
|
-
dataSelectorId: dataSelectorId
|
|
90
|
-
|
|
91
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
91
|
+
dataSelectorId: dataSelectorId
|
|
92
|
+
}, customProps), /*#__PURE__*/React.createElement(Container, {
|
|
92
93
|
alignBox: "row",
|
|
93
94
|
align: "both",
|
|
94
95
|
className: styles.textContainer
|