@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-191
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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +12 -5
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
- package/es/AppContainer/AppContainer.js +10 -9
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +4 -5
- package/es/Avatar/Avatar.module.css +22 -52
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +74 -66
- package/es/Button/Button.js +5 -6
- package/es/Button/css/Button.module.css +100 -162
- package/es/Buttongroup/Buttongroup.module.css +17 -52
- package/es/CheckBox/CheckBox.js +18 -8
- package/es/CheckBox/CheckBox.module.css +60 -37
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DateTime/DateTime.module.css +57 -86
- package/es/DateTime/DateWidget.module.css +7 -11
- package/es/DateTime/YearView.module.css +21 -34
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/es/DropBox/css/DropBox.module.css +6 -24
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +13 -19
- package/es/DropDown/DropDownItem.module.css +22 -43
- 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 +23 -12
- package/es/Label/LabelColors.module.css +7 -1
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +4 -5
- package/es/ListItem/ListItem.module.css +87 -90
- package/es/ListItem/ListItemWithAvatar.js +4 -5
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +4 -5
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/es/MultiSelect/MultiSelect.module.css +69 -55
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/SelectedOptions.module.css +5 -11
- package/es/MultiSelect/Suggestions.js +6 -8
- package/es/PopOver/PopOver.module.css +4 -4
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +25 -6
- package/es/Radio/Radio.module.css +40 -23
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +1 -0
- package/es/Radio/props/propTypes.js +7 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +64 -147
- package/es/RippleEffect/RippleEffect.module.css +27 -9
- package/es/Select/Select.js +4 -5
- package/es/Select/Select.module.css +22 -33
- package/es/Stencils/Stencils.module.css +14 -32
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +35 -32
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/Tab.module.css +39 -28
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +2 -4
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +29 -51
- package/es/Tag/Tag.module.css +91 -66
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +20 -36
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/es/Textarea/Textarea.js +4 -6
- package/es/Textarea/Textarea.module.css +60 -36
- package/es/Tooltip/Tooltip.module.css +13 -12
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/common/animation.module.css +29 -227
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +15 -5
- package/es/common/common.module.css +36 -82
- package/es/common/customscroll.module.css +32 -29
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/Animation/Animation.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +15 -9
- package/es/v1/CheckBox/props/propTypes.js +1 -0
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +7 -6
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +21 -6
- package/es/v1/Radio/props/defaultProps.js +1 -0
- package/es/v1/Radio/props/propTypes.js +7 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
- package/es/v1/Select/GroupSelect.js +1 -1
- package/es/v1/Select/Select.js +5 -6
- package/es/v1/Select/SelectWithAvatar.js +5 -7
- package/es/v1/Select/SelectWithIcon.js +1 -1
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Select/props/propTypes.js +1 -3
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +18 -18
- package/es/v1/Tab/v1Tab.module.css +39 -28
- package/es/v1/Tab/v1Tabs.module.css +29 -51
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/Tooltip/Tooltip.js +1 -1
- package/es/v1/Typography/css/Typography.module.css +33 -39
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +22 -52
- package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
- package/lib/Button/css/Button.module.css +100 -162
- package/lib/Buttongroup/Buttongroup.module.css +17 -52
- package/lib/CheckBox/CheckBox.js +34 -24
- package/lib/CheckBox/CheckBox.module.css +60 -37
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DateTime/DateTime.module.css +57 -86
- package/lib/DateTime/DateWidget.module.css +7 -11
- package/lib/DateTime/YearView.module.css +21 -34
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/lib/DropBox/css/DropBox.module.css +6 -24
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +13 -19
- package/lib/DropDown/DropDownItem.module.css +22 -43
- 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 +23 -12
- package/lib/Label/LabelColors.module.css +7 -1
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +87 -90
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/lib/MultiSelect/MultiSelect.module.css +69 -55
- package/lib/MultiSelect/SelectedOptions.module.css +5 -11
- package/lib/PopOver/PopOver.module.css +4 -4
- package/lib/Radio/Radio.js +45 -26
- package/lib/Radio/Radio.module.css +40 -23
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +1 -0
- package/lib/Radio/props/propTypes.js +7 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +64 -147
- package/lib/RippleEffect/RippleEffect.module.css +27 -9
- package/lib/Select/Select.module.css +22 -33
- package/lib/Stencils/Stencils.module.css +14 -32
- package/lib/Switch/Switch.module.css +35 -32
- package/lib/Tab/Tab.module.css +39 -28
- package/lib/Tab/Tabs.module.css +29 -51
- package/lib/Tag/Tag.module.css +91 -66
- package/lib/TextBox/TextBox.module.css +20 -36
- package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/lib/Textarea/Textarea.module.css +60 -36
- package/lib/Tooltip/Tooltip.module.css +13 -12
- package/lib/common/animation.module.css +29 -227
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +15 -5
- package/lib/common/common.module.css +36 -82
- package/lib/common/customscroll.module.css +32 -29
- package/lib/common/transition.module.css +10 -50
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/Animation/Animation.js +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +7 -1
- package/lib/v1/CheckBox/props/propTypes.js +1 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/lib/v1/ListItem/ListContainer.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
- package/lib/v1/Radio/Radio.js +22 -7
- package/lib/v1/Radio/props/defaultProps.js +1 -0
- package/lib/v1/Radio/props/propTypes.js +7 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/lib/v1/Select/GroupSelect.js +1 -1
- package/lib/v1/Select/Select.js +1 -1
- package/lib/v1/Select/SelectWithAvatar.js +4 -6
- package/lib/v1/Select/SelectWithIcon.js +1 -1
- package/lib/v1/Select/props/defaultProps.js +1 -1
- package/lib/v1/Select/props/propTypes.js +1 -3
- package/lib/v1/Tab/Tabs.js +2 -2
- package/lib/v1/Tab/v1Tab.module.css +39 -28
- package/lib/v1/Tab/v1Tabs.module.css +29 -51
- package/lib/v1/Tooltip/Tooltip.js +1 -1
- package/lib/v1/Typography/css/Typography.module.css +33 -39
- package/package.json +10 -10
- package/es/v1/Provider/AvatarSize.js +0 -13
- package/es/v1/Provider/Config.js +0 -18
- package/es/v1/Provider/CssProvider.js +0 -16
- package/es/v1/Provider/IdProvider.js +0 -66
- package/es/v1/Provider/LibraryContext.js +0 -37
- package/es/v1/Provider/LibraryContextInit.js +0 -3
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
- package/es/v1/Provider/ZindexProvider.js +0 -57
- package/es/v1/Provider/index.js +0 -4
- package/es/v1/Responsive/CustomResponsive.js +0 -195
- package/es/v1/Responsive/RefWrapper.js +0 -39
- package/es/v1/Responsive/ResizeComponent.js +0 -197
- package/es/v1/Responsive/ResizeObserver.js +0 -140
- package/es/v1/Responsive/Responsive.js +0 -194
- package/es/v1/Responsive/index.js +0 -9
- package/es/v1/Responsive/props/defaultProps.js +0 -13
- package/es/v1/Responsive/props/propTypes.js +0 -25
- package/lib/v1/Provider/AvatarSize.js +0 -24
- package/lib/v1/Provider/Config.js +0 -27
- package/lib/v1/Provider/CssProvider.js +0 -27
- package/lib/v1/Provider/IdProvider.js +0 -79
- package/lib/v1/Provider/LibraryContext.js +0 -76
- package/lib/v1/Provider/LibraryContextInit.js +0 -15
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/v1/Provider/ZindexProvider.js +0 -69
- package/lib/v1/Provider/index.js +0 -81
- package/lib/v1/Responsive/CustomResponsive.js +0 -242
- package/lib/v1/Responsive/RefWrapper.js +0 -57
- package/lib/v1/Responsive/ResizeComponent.js +0 -268
- package/lib/v1/Responsive/ResizeObserver.js +0 -168
- package/lib/v1/Responsive/Responsive.js +0 -274
- package/lib/v1/Responsive/index.js +0 -55
- package/lib/v1/Responsive/props/defaultProps.js +0 -23
- package/lib/v1/Responsive/props/propTypes.js +0 -39
- package/result.json +0 -1
package/es/v1/Radio/Radio.js
CHANGED
|
@@ -24,6 +24,9 @@ const Radio = props => {
|
|
|
24
24
|
active,
|
|
25
25
|
isFilled,
|
|
26
26
|
customClass,
|
|
27
|
+
customProps,
|
|
28
|
+
getRef,
|
|
29
|
+
children,
|
|
27
30
|
a11y
|
|
28
31
|
} = props;
|
|
29
32
|
let {
|
|
@@ -36,11 +39,16 @@ const Radio = props => {
|
|
|
36
39
|
let {
|
|
37
40
|
ariaHidden,
|
|
38
41
|
role = 'radio',
|
|
42
|
+
tabIndex,
|
|
39
43
|
ariaChecked = checked,
|
|
40
44
|
ariaLabel,
|
|
41
45
|
ariaLabelledby,
|
|
42
46
|
ariaReadonly = isReadOnly || disabled ? true : false
|
|
43
47
|
} = a11y;
|
|
48
|
+
let {
|
|
49
|
+
ContainerProps = {},
|
|
50
|
+
LabelProps = {}
|
|
51
|
+
} = customProps;
|
|
44
52
|
|
|
45
53
|
function onChange(e) {
|
|
46
54
|
const {
|
|
@@ -49,6 +57,10 @@ const Radio = props => {
|
|
|
49
57
|
onChange && onChange(value, e);
|
|
50
58
|
}
|
|
51
59
|
|
|
60
|
+
function handleGetRef(ele) {
|
|
61
|
+
getRef && getRef(ele, value);
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
return /*#__PURE__*/React.createElement(Container, {
|
|
53
65
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
54
66
|
isCover: false,
|
|
@@ -59,12 +71,14 @@ const Radio = props => {
|
|
|
59
71
|
"data-title": toolTip,
|
|
60
72
|
onClick: !isReadOnly && !disabled ? onChange : '',
|
|
61
73
|
"aria-checked": ariaChecked,
|
|
62
|
-
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
74
|
+
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : tabIndex || '0',
|
|
75
|
+
eleRef: handleGetRef,
|
|
63
76
|
role: role,
|
|
64
77
|
"aria-Hidden": ariaHidden,
|
|
65
78
|
"aria-label": ariaLabel,
|
|
66
79
|
"aria-labelledby": ariaLabelledby,
|
|
67
|
-
"aria-readonly": ariaReadonly
|
|
80
|
+
"aria-readonly": ariaReadonly,
|
|
81
|
+
...ContainerProps
|
|
68
82
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
69
83
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
70
84
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
@@ -93,16 +107,17 @@ const Radio = props => {
|
|
|
93
107
|
className: style.text
|
|
94
108
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
95
109
|
text: text,
|
|
96
|
-
palette:
|
|
110
|
+
palette: labelPalette,
|
|
97
111
|
size: labelSize,
|
|
98
112
|
type: "title",
|
|
99
113
|
clipped: true,
|
|
100
114
|
dataId: `${text}_label`,
|
|
101
115
|
variant: variant,
|
|
102
116
|
title: toolTip ? toolTip : text,
|
|
103
|
-
customClass: `${checked && active
|
|
104
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
105
|
-
|
|
117
|
+
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
118
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
|
|
119
|
+
...LabelProps
|
|
120
|
+
})), children);
|
|
106
121
|
};
|
|
107
122
|
|
|
108
123
|
export default Radio;
|
|
@@ -4,6 +4,7 @@ export const propTypes = {
|
|
|
4
4
|
checked: PropTypes.bool,
|
|
5
5
|
disabled: PropTypes.bool,
|
|
6
6
|
disabledTitle: PropTypes.string,
|
|
7
|
+
getRef: PropTypes.func,
|
|
7
8
|
id: PropTypes.string,
|
|
8
9
|
isFilled: PropTypes.bool,
|
|
9
10
|
isReadOnly: PropTypes.bool,
|
|
@@ -20,14 +21,20 @@ export const propTypes = {
|
|
|
20
21
|
customRadio: PropTypes.string,
|
|
21
22
|
customLabel: PropTypes.string
|
|
22
23
|
}),
|
|
24
|
+
customProps: PropTypes.exact({
|
|
25
|
+
ContainerProps: PropTypes.object,
|
|
26
|
+
LabelProps: PropTypes.object
|
|
27
|
+
}),
|
|
23
28
|
a11y: PropTypes.shape({
|
|
24
29
|
ariaChecked: PropTypes.bool,
|
|
25
30
|
ariaHidden: PropTypes.bool,
|
|
26
31
|
role: PropTypes.string,
|
|
32
|
+
tabIndex: PropTypes.oneOfType(PropTypes.string, PropTypes.number),
|
|
27
33
|
ariaLabelledby: PropTypes.string,
|
|
28
34
|
ariaLabel: PropTypes.string,
|
|
29
35
|
ariaReadonly: PropTypes.bool
|
|
30
36
|
}),
|
|
37
|
+
children: PropTypes.node,
|
|
31
38
|
onChange: PropTypes.func,
|
|
32
39
|
text: PropTypes.string
|
|
33
40
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
6
4
|
import DropBox from '../DropBox/DropBox';
|
|
7
5
|
import { Container } from '../Layout';
|
|
8
|
-
import { ResponsiveReceiver } from '
|
|
6
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
9
7
|
import style from '../../ResponsiveDropBox/ResponsiveDropBox.module.css';
|
|
10
8
|
export default function ResponsiveDropBox(props) {
|
|
11
9
|
const {
|
|
@@ -38,9 +36,9 @@ export default function ResponsiveDropBox(props) {
|
|
|
38
36
|
}])
|
|
39
37
|
};
|
|
40
38
|
}, []);
|
|
41
|
-
return /*#__PURE__*/React.createElement(DropBox,
|
|
39
|
+
return /*#__PURE__*/React.createElement(DropBox, { ...props,
|
|
42
40
|
customClass: dropBoxClasses
|
|
43
|
-
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
44
42
|
query: responsiveFunc,
|
|
45
43
|
responsiveId: "Helmet"
|
|
46
44
|
}, _ref2 => {
|
|
@@ -16,7 +16,7 @@ import DropDownHeading from '../DropDown/DropDownHeading';
|
|
|
16
16
|
import { Container, Box } from '../Layout';
|
|
17
17
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
18
18
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
19
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
20
|
import style from '../../Select/Select.module.css';
|
|
21
21
|
/**** Methods ****/
|
|
22
22
|
|
package/es/v1/Select/Select.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -16,7 +14,7 @@ import EmptyState from '../MultiSelect/EmptyState';
|
|
|
16
14
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
17
15
|
import { Icon } from '@zohodesk/icons';
|
|
18
16
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
17
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
18
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
21
19
|
/**** Methods ****/
|
|
22
20
|
|
|
@@ -919,7 +917,7 @@ export class SelectComponent extends Component {
|
|
|
919
917
|
shrink: true,
|
|
920
918
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
921
919
|
eleRef: this.suggestionContainerRef
|
|
922
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
920
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
923
921
|
activeId: selectedId,
|
|
924
922
|
suggestions: suggestions,
|
|
925
923
|
getRef: this.suggestionItemRef,
|
|
@@ -936,8 +934,9 @@ export class SelectComponent extends Component {
|
|
|
936
934
|
a11y: {
|
|
937
935
|
ariaParentRole: 'listbox',
|
|
938
936
|
role: 'option'
|
|
939
|
-
}
|
|
940
|
-
|
|
937
|
+
},
|
|
938
|
+
...SuggestionsProps
|
|
939
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
941
940
|
isLoading: isFetchingOptions,
|
|
942
941
|
options: options,
|
|
943
942
|
searchString: searchStr,
|
|
@@ -10,13 +10,13 @@ import Tag from '../Tag/Tag';
|
|
|
10
10
|
import Textbox from '../TextBox/TextBox';
|
|
11
11
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
12
12
|
import { Container, Box } from '../Layout';
|
|
13
|
-
import Card, { CardContent, CardHeader
|
|
13
|
+
import Card, { CardContent, CardHeader } from '../Card/Card';
|
|
14
14
|
import Suggestions from '../MultiSelect/Suggestions';
|
|
15
15
|
import EmptyState from '../MultiSelect/EmptyState';
|
|
16
16
|
import DropDownHeading from '../DropDown/DropDownHeading';
|
|
17
17
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
18
18
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
19
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
20
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
21
21
|
/**** CSS ****/
|
|
22
22
|
|
|
@@ -158,9 +158,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
158
158
|
htmlId,
|
|
159
159
|
needEffect,
|
|
160
160
|
isLoading,
|
|
161
|
-
dataSelectorId
|
|
162
|
-
getHeader,
|
|
163
|
-
getFooter
|
|
161
|
+
dataSelectorId
|
|
164
162
|
} = this.props;
|
|
165
163
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
166
164
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -296,7 +294,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
296
294
|
a11y: {
|
|
297
295
|
role: 'heading'
|
|
298
296
|
}
|
|
299
|
-
})) : null,
|
|
297
|
+
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
300
298
|
activeId: selectedId,
|
|
301
299
|
suggestions: suggestions,
|
|
302
300
|
getRef: this.suggestionItemRef,
|
|
@@ -323,7 +321,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
323
321
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
324
322
|
isCover: false,
|
|
325
323
|
align: "both"
|
|
326
|
-
}, /*#__PURE__*/React.createElement(Loader, null)))
|
|
324
|
+
}, /*#__PURE__*/React.createElement(Loader, null))))));
|
|
327
325
|
}) : null);
|
|
328
326
|
}
|
|
329
327
|
|
|
@@ -12,7 +12,7 @@ import EmptyState from '../MultiSelect/EmptyState';
|
|
|
12
12
|
import { Container, Box } from '../Layout';
|
|
13
13
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
14
14
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
15
|
-
import { ResponsiveReceiver } from '
|
|
15
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
16
16
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
17
17
|
/**** Methods ****/
|
|
18
18
|
|
|
@@ -230,9 +230,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
230
230
|
htmlId: PropTypes.string,
|
|
231
231
|
needEffect: PropTypes.bool,
|
|
232
232
|
isLoading: PropTypes.bool,
|
|
233
|
-
dataSelectorId: PropTypes.string
|
|
234
|
-
getFooter: PropTypes.func,
|
|
235
|
-
getHeader: PropTypes.func
|
|
233
|
+
dataSelectorId: PropTypes.string
|
|
236
234
|
};
|
|
237
235
|
export const SelectWithIcon_propTypes = {
|
|
238
236
|
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
package/es/v1/Switch/Switch.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,7 +43,7 @@ const Switch = props => {
|
|
|
45
43
|
customLabel = ''
|
|
46
44
|
} = customClass;
|
|
47
45
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
48
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
46
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
49
47
|
align: "vertical",
|
|
50
48
|
isCover: false,
|
|
51
49
|
alignBox: "row",
|
|
@@ -54,8 +52,9 @@ const Switch = props => {
|
|
|
54
52
|
"data-title": disabled ? disableTitle : title,
|
|
55
53
|
"aria-checked": checked,
|
|
56
54
|
role: "switch",
|
|
57
|
-
dataSelectorId: dataSelectorId
|
|
58
|
-
|
|
55
|
+
dataSelectorId: dataSelectorId,
|
|
56
|
+
...SwitchProps
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
58
|
className: `${style[size]} ${customSwitchSize}`
|
|
60
59
|
}, /*#__PURE__*/React.createElement("input", {
|
|
61
60
|
type: "checkbox",
|
|
@@ -73,15 +72,16 @@ const Switch = props => {
|
|
|
73
72
|
"data-test-id": dataId,
|
|
74
73
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
75
74
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
76
|
-
})), text && /*#__PURE__*/React.createElement(Label,
|
|
75
|
+
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
77
76
|
text: text,
|
|
78
77
|
palette: labelPalette,
|
|
79
78
|
id: id,
|
|
80
79
|
size: labelSize,
|
|
81
80
|
type: "subtitle",
|
|
82
81
|
onClick: !disabled || !isReadOnly ? onChange : null,
|
|
83
|
-
customClass: customLabel
|
|
84
|
-
|
|
82
|
+
customClass: customLabel,
|
|
83
|
+
...LabelProps
|
|
84
|
+
}));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
Switch.defaultProps = defaultProps;
|
package/es/v1/Tab/Tab.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { useMemo, useCallback } from 'react';
|
|
4
2
|
import { Tab_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { Tab_propTypes } from './props/propTypes';
|
|
@@ -67,7 +65,7 @@ export default function Tab(_ref) {
|
|
|
67
65
|
let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
|
|
68
66
|
let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
|
|
69
67
|
let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
|
|
70
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
68
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
71
69
|
tourId: tourId,
|
|
72
70
|
tagName: isLink ? 'a' : 'div',
|
|
73
71
|
className: tabClass,
|
|
@@ -85,8 +83,9 @@ export default function Tab(_ref) {
|
|
|
85
83
|
"aria-selected": isActive ? true : false,
|
|
86
84
|
tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
|
|
87
85
|
"aria-label": text ? text : null,
|
|
88
|
-
dataSelectorId: dataSelectorId
|
|
89
|
-
|
|
86
|
+
dataSelectorId: dataSelectorId,
|
|
87
|
+
...customProps
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
90
89
|
alignBox: "row",
|
|
91
90
|
align: "both",
|
|
92
91
|
className: styles.textContainer
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { TabContentWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabContentWrapper_propTypes } from './props/propTypes';
|
|
@@ -18,15 +16,16 @@ const TabContentWrapper = _ref => {
|
|
|
18
16
|
tagName,
|
|
19
17
|
a11y
|
|
20
18
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
19
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
22
20
|
flexible: true,
|
|
23
21
|
style: style,
|
|
24
22
|
dataId: dataId,
|
|
25
23
|
className: className,
|
|
26
24
|
onScroll: onScroll,
|
|
27
25
|
dataSelectorId: dataSelectorId,
|
|
28
|
-
tagName: tagName
|
|
29
|
-
|
|
26
|
+
tagName: tagName,
|
|
27
|
+
...a11y
|
|
28
|
+
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
|
package/es/v1/Tab/TabWrapper.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { useState, useCallback } from 'react';
|
|
4
2
|
import { TabWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabWrapper_propTypes } from './props/propTypes';
|
|
@@ -37,7 +35,7 @@ function TabWrapper(_ref) {
|
|
|
37
35
|
let TabsChild = child.type;
|
|
38
36
|
let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
|
|
39
37
|
return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
|
|
40
|
-
,
|
|
38
|
+
, { ...child.props,
|
|
41
39
|
selectedTab: selectedTab,
|
|
42
40
|
onSelect: setSelectedTab,
|
|
43
41
|
type: type,
|
|
@@ -48,7 +46,7 @@ function TabWrapper(_ref) {
|
|
|
48
46
|
needAppearance: needAppearance,
|
|
49
47
|
hookToDisableInternalState: hookToDisableInternalState,
|
|
50
48
|
align: align
|
|
51
|
-
})
|
|
49
|
+
});
|
|
52
50
|
}));
|
|
53
51
|
}
|
|
54
52
|
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
2
|
import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
|
|
5
3
|
import Tab from './Tab';
|
|
@@ -7,13 +5,13 @@ import { Tabs_defaultProps } from './props/defaultProps';
|
|
|
7
5
|
import { Tabs_propTypes } from './props/propTypes';
|
|
8
6
|
import { remConvert, getTotalDimension, cs, throttle, cancelBubblingEffect } from '../../utils/Common';
|
|
9
7
|
import { Box, Container } from '../Layout';
|
|
10
|
-
import ResizeObserver from '
|
|
8
|
+
import ResizeObserver from '../../Responsive/ResizeObserver';
|
|
11
9
|
import ListItem from '../ListItem/ListItem';
|
|
12
10
|
import { Icon } from '@zohodesk/icons';
|
|
13
11
|
import tabsStyle from './v1Tabs.module.css';
|
|
14
12
|
import Popup from '../Popup/Popup';
|
|
15
13
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
16
|
-
import { ResponsiveReceiver } from '
|
|
14
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
17
15
|
import btnstyle from '../../semantic/Button/semanticButton.module.css';
|
|
18
16
|
|
|
19
17
|
const Tabs = props => {
|
|
@@ -394,7 +392,7 @@ const Tabs = props => {
|
|
|
394
392
|
classProps.className = itemClass;
|
|
395
393
|
}
|
|
396
394
|
|
|
397
|
-
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab,
|
|
395
|
+
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, { ...child.props,
|
|
398
396
|
key: child.props.id,
|
|
399
397
|
getTabRef: getTabRef,
|
|
400
398
|
onSelect: onSelect // recalculateDimension={tabElement.current[recalculateDimension]}
|
|
@@ -405,22 +403,23 @@ const Tabs = props => {
|
|
|
405
403
|
needBorder: needTabBorder,
|
|
406
404
|
needAppearance: needAppearance,
|
|
407
405
|
align: align,
|
|
408
|
-
isVirtual: isVirtual
|
|
409
|
-
|
|
406
|
+
isVirtual: isVirtual,
|
|
407
|
+
...classProps
|
|
408
|
+
});
|
|
410
409
|
}), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
|
|
411
410
|
className: `${tabsStyle.menu} `,
|
|
412
411
|
dataSelectorId: `${dataSelectorId}_moreIcon`
|
|
413
|
-
}, /*#__PURE__*/React.createElement(Container,
|
|
412
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
414
413
|
className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
|
|
415
414
|
align: "both",
|
|
416
415
|
onClick: togglePopupLocal,
|
|
417
416
|
dataId: "moreTabs",
|
|
418
|
-
eleRef: getTargetRef
|
|
419
|
-
|
|
417
|
+
eleRef: getTargetRef,
|
|
418
|
+
...MoreButtonProps,
|
|
420
419
|
"aria-label": "MoreTabs",
|
|
421
420
|
role: "link",
|
|
422
421
|
tagName: "button"
|
|
423
|
-
}
|
|
422
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
424
423
|
name: iconName,
|
|
425
424
|
size: iconSize
|
|
426
425
|
})), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
@@ -430,7 +429,7 @@ const Tabs = props => {
|
|
|
430
429
|
let {
|
|
431
430
|
tabletMode
|
|
432
431
|
} = _ref2;
|
|
433
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
432
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
434
433
|
isActive: isPopupReady,
|
|
435
434
|
isAnimate: true,
|
|
436
435
|
size: "medium",
|
|
@@ -440,12 +439,12 @@ const Tabs = props => {
|
|
|
440
439
|
boxPosition: position,
|
|
441
440
|
getRef: getContainerRef,
|
|
442
441
|
isBoxPaddingNeed: true,
|
|
443
|
-
isArrow: false
|
|
444
|
-
|
|
442
|
+
isArrow: false,
|
|
443
|
+
...DropBoxProps,
|
|
445
444
|
isResponsivePadding: true,
|
|
446
445
|
needFocusScope: true,
|
|
447
446
|
onClose: togglePopupLocal
|
|
448
|
-
}
|
|
447
|
+
}, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
|
|
449
448
|
flexible: true,
|
|
450
449
|
shrink: true,
|
|
451
450
|
scroll: "vertical",
|
|
@@ -466,7 +465,7 @@ const Tabs = props => {
|
|
|
466
465
|
dataId
|
|
467
466
|
} = child.props;
|
|
468
467
|
const value = text ? text : showTitleInMoreOptions ? title : null;
|
|
469
|
-
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem,
|
|
468
|
+
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, {
|
|
470
469
|
key: id,
|
|
471
470
|
value: value,
|
|
472
471
|
onClick: moreTabSelect,
|
|
@@ -479,8 +478,9 @@ const Tabs = props => {
|
|
|
479
478
|
customListItem: menuItemClass
|
|
480
479
|
},
|
|
481
480
|
target: "self",
|
|
482
|
-
dataId: `${dataId}_Tab
|
|
483
|
-
|
|
481
|
+
dataId: `${dataId}_Tab`,
|
|
482
|
+
...ListItemProps
|
|
483
|
+
}, !showTitleInMoreOptions ? children : null);
|
|
484
484
|
})));
|
|
485
485
|
})) : null);
|
|
486
486
|
}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
.tab {
|
|
2
2
|
text-transform: uppercase;
|
|
3
|
+
cursor: pointer;
|
|
3
4
|
letter-spacing: 0.6px;
|
|
4
5
|
text-decoration: none;
|
|
5
|
-
cursor: pointer;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.vertical {
|
|
8
|
-
height: 100
|
|
9
|
+
height: 100%;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.horizontal {
|
|
11
|
-
width: 100
|
|
12
|
-
max-width: 100
|
|
13
|
+
width: 100%;
|
|
14
|
+
max-width: 100%;
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.textContainer,
|
|
15
18
|
.tabText {
|
|
16
|
-
max-width: inherit
|
|
19
|
+
max-width: inherit;
|
|
17
20
|
}
|
|
21
|
+
|
|
18
22
|
.tabText {
|
|
19
23
|
composes: dotted from '../../common/common.module.css';
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
.disabled {
|
|
22
27
|
cursor: not-allowed;
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
.border {
|
|
25
31
|
border-bottom: 1px solid var(--zdt_tab_default_border);
|
|
26
32
|
}
|
|
@@ -30,71 +36,76 @@
|
|
|
30
36
|
.delta {
|
|
31
37
|
transition: all var(--zd_transition2);
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
.alpha {
|
|
34
|
-
|
|
41
|
+
padding: 0 18px;
|
|
42
|
+
font-size: 11px;
|
|
35
43
|
line-height: 3;
|
|
36
|
-
padding: 0 var(--zd_size18) ;
|
|
37
44
|
}
|
|
45
|
+
|
|
38
46
|
.tabAlpha {
|
|
39
47
|
composes: alpha;
|
|
40
48
|
color: var(--zdt_tab_alpha_text);
|
|
41
49
|
}
|
|
50
|
+
|
|
42
51
|
.alphaHover:hover {
|
|
43
|
-
color: var(--
|
|
52
|
+
color: var(--zdt_base_color);
|
|
44
53
|
background-color: var(--zdt_tab_alpha_hover_bg);
|
|
45
54
|
}
|
|
55
|
+
|
|
46
56
|
.alphaActive {
|
|
47
57
|
composes: alpha;
|
|
48
58
|
color: var(--zdt_tab_alpha_active_text);
|
|
49
59
|
}
|
|
50
|
-
|
|
60
|
+
|
|
61
|
+
.alphaActive_border,
|
|
62
|
+
.betaActive_border {
|
|
51
63
|
border-color: var(--zdt_tab_alpha_active_border);
|
|
52
64
|
}
|
|
65
|
+
|
|
53
66
|
.deltaActive_border {
|
|
54
67
|
border-color: var(--zdt_tab_delta_active_border);
|
|
55
68
|
}
|
|
69
|
+
|
|
56
70
|
.beta {
|
|
57
|
-
|
|
71
|
+
padding: 0 4px;
|
|
72
|
+
font-size: 14px;
|
|
58
73
|
line-height: 4.2857;
|
|
74
|
+
margin-right: 40px;
|
|
59
75
|
text-transform: capitalize;
|
|
60
|
-
padding: 0 var(--zd_size4) ;
|
|
61
|
-
}
|
|
62
|
-
[dir=ltr] .beta {
|
|
63
|
-
margin-right: var(--zd_size40) ;
|
|
64
|
-
}
|
|
65
|
-
[dir=rtl] .beta {
|
|
66
|
-
margin-left: var(--zd_size40) ;
|
|
67
76
|
}
|
|
77
|
+
|
|
68
78
|
.tabBeta {
|
|
69
79
|
composes: beta;
|
|
70
80
|
color: var(--zdt_tab_alpha_text);
|
|
71
81
|
}
|
|
82
|
+
|
|
72
83
|
.betaHover:hover {
|
|
73
|
-
color: var(--
|
|
84
|
+
color: var(--zdt_base_color);
|
|
74
85
|
}
|
|
86
|
+
|
|
75
87
|
.betaActive {
|
|
76
88
|
composes: beta;
|
|
77
|
-
color: var(--
|
|
89
|
+
color: var(--zdt_base_color);
|
|
78
90
|
}
|
|
91
|
+
|
|
79
92
|
.delta {
|
|
80
|
-
|
|
93
|
+
padding: 0 4px;
|
|
94
|
+
font-size: 11px;
|
|
81
95
|
line-height: 3;
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
[dir=ltr] .delta {
|
|
85
|
-
margin-right: var(--zd_size10) ;
|
|
86
|
-
}
|
|
87
|
-
[dir=rtl] .delta {
|
|
88
|
-
margin-left: var(--zd_size10) ;
|
|
96
|
+
margin-right: 10px;
|
|
89
97
|
}
|
|
98
|
+
|
|
90
99
|
.tabDelta {
|
|
91
100
|
composes: delta;
|
|
92
101
|
color: var(--zdt_tab_alpha_text);
|
|
93
102
|
}
|
|
103
|
+
|
|
94
104
|
.deltaHover:hover {
|
|
95
105
|
color: var(--zdt_tab_alpha_active_text);
|
|
96
106
|
}
|
|
107
|
+
|
|
97
108
|
.deltaActive {
|
|
98
109
|
composes: delta;
|
|
99
110
|
color: var(--zdt_tab_alpha_active_text);
|
|
100
|
-
}
|
|
111
|
+
}
|