@zohodesk/components 1.0.0-temp-257.1 → 1.0.0-temp-259.2
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/CHANGELOG.md +2038 -0
- package/README.md +2 -2031
- package/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css +12 -12
- package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css +12 -12
- package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css +12 -12
- package/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css +12 -12
- package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css +12 -12
- package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css +12 -12
- package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css +12 -12
- package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css +12 -12
- package/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css +12 -12
- package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css +12 -12
- package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css +12 -12
- package/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css +12 -12
- package/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css +12 -12
- package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css +12 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css +12 -12
- package/es/Accordion/Accordion.js +1 -6
- package/es/Accordion/AccordionItem.js +1 -6
- package/es/Animation/Animation.js +1 -8
- package/es/AppContainer/AppContainer.js +1 -6
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +16 -16
- package/es/Avatar/Avatar.js +1 -6
- package/es/AvatarTeam/AvatarTeam.js +1 -7
- package/es/Button/Button.js +1 -6
- package/es/Buttongroup/Buttongroup.js +1 -14
- package/es/Card/Card.js +1 -9
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +17 -17
- package/es/Card/__tests__/__snapshots__/CardContent.spec.js.snap +12 -12
- package/es/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +4 -4
- package/es/CheckBox/CheckBox.js +1 -6
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +88 -88
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +45 -45
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +24 -24
- package/es/DateTime/DateWidget.js +0 -10
- package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +49 -49
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +87 -87
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +5 -5
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +6 -6
- package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +25 -25
- package/es/DropDown/DropDownHeading.js +1 -6
- package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +2 -2
- package/es/Heading/Heading.js +1 -6
- package/es/Label/Label.js +1 -6
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +4 -4
- package/es/ListItem/ListContainer.js +1 -6
- package/es/ListItem/ListItem.js +1 -6
- package/es/ListItem/ListItemWithAvatar.js +1 -6
- package/es/ListItem/ListItemWithCheckBox.js +1 -6
- package/es/ListItem/ListItemWithIcon.js +1 -6
- package/es/ListItem/ListItemWithRadio.js +1 -6
- package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +16 -16
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +41 -41
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +62 -62
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +41 -41
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +62 -62
- package/es/Modal/Modal.js +1 -8
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -9
- package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +6 -6
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +50 -50
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +31 -31
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +8 -8
- package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +4 -4
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +47 -47
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +94 -94
- package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -1
- package/es/RippleEffect/RippleEffect.js +1 -6
- package/es/Select/GroupSelect.js +1 -8
- package/es/Select/Select.js +1 -10
- package/es/Select/SelectWithAvatar.js +1 -9
- package/es/Select/SelectWithIcon.js +1 -7
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +6 -6
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +756 -756
- package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +9 -9
- package/es/Switch/Switch.js +1 -6
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +44 -44
- package/es/Tab/Tab.js +1 -6
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +2 -2
- package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +36 -36
- package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +1 -1
- package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +4 -4
- package/es/Tag/Tag.js +1 -6
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +46 -46
- package/es/TextBox/TextBox.js +1 -8
- package/es/TextBoxIcon/TextBoxIcon.js +1 -8
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +164 -164
- package/es/Textarea/Textarea.js +1 -8
- package/es/Tooltip/Tooltip.js +1 -8
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -5
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -5
- package/es/semantic/Button/Button.js +1 -6
- package/es/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +10 -10
- package/es/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/es/v1/Button/Button.js +7 -12
- package/es/v1/Button/README.md +3 -2
- package/es/v1/Button/__tests__/Button.spec.js +14 -6
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +298 -218
- package/es/v1/Button/constants/index.js +26 -20
- package/es/v1/Button/constants/presets.js +147 -0
- package/es/v1/Button/css/Button_v1.module.css +17 -8
- package/es/v1/Button/css/cssJSLogic.js +39 -26
- package/es/v1/Button/props/defaultProps.js +2 -6
- package/es/v1/Button/props/propTypes.js +12 -5
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +24 -24
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +14 -14
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +5 -5
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +5 -5
- package/es/v1/helpers/colorHelpers/colorHelper.js +117 -139
- package/es/v1/helpers/colorHelpers/constants/index.js +45 -4
- package/es/v1/shared/{Loader/Loader.js → Spinner/Spinner.js} +5 -5
- package/es/v1/shared/{Loader/__tests__/Loader.spec.js → Spinner/__tests__/Spinner.spec.js} +4 -4
- package/{lib/v1/shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap → es/v1/shared/Spinner/__tests__/__snapshots__/Spinner.spec.js.snap} +2 -2
- package/lib/Accordion/Accordion.js +1 -6
- package/lib/Accordion/AccordionItem.js +1 -6
- package/lib/Animation/Animation.js +1 -8
- package/lib/AppContainer/AppContainer.js +1 -6
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +16 -16
- package/lib/Avatar/Avatar.js +1 -6
- package/lib/AvatarTeam/AvatarTeam.js +1 -7
- package/lib/Button/Button.js +1 -7
- package/lib/Buttongroup/Buttongroup.js +1 -14
- package/lib/Card/Card.js +1 -8
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +17 -17
- package/lib/Card/__tests__/__snapshots__/CardContent.spec.js.snap +12 -12
- package/lib/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +4 -4
- package/lib/CheckBox/CheckBox.js +1 -6
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +88 -88
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +45 -45
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +24 -24
- package/lib/DateTime/DateWidget.js +0 -10
- package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +49 -49
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +87 -87
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +5 -5
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +6 -6
- package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +25 -25
- package/lib/DropDown/DropDownHeading.js +1 -6
- package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +2 -2
- package/lib/Heading/Heading.js +1 -6
- package/lib/Label/Label.js +1 -6
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +4 -4
- package/lib/ListItem/ListContainer.js +1 -7
- package/lib/ListItem/ListItem.js +1 -6
- package/lib/ListItem/ListItemWithAvatar.js +1 -6
- package/lib/ListItem/ListItemWithCheckBox.js +1 -6
- package/lib/ListItem/ListItemWithIcon.js +1 -6
- package/lib/ListItem/ListItemWithRadio.js +1 -6
- package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +2 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +16 -16
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +41 -41
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +62 -62
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +41 -41
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +62 -62
- package/lib/Modal/Modal.js +1 -8
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +1 -9
- package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +6 -6
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +50 -50
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +31 -31
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +8 -8
- package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +4 -4
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +47 -47
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +94 -94
- package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +1 -1
- package/lib/RippleEffect/RippleEffect.js +1 -6
- package/lib/Select/GroupSelect.js +1 -9
- package/lib/Select/Select.js +1 -11
- package/lib/Select/SelectWithAvatar.js +1 -9
- package/lib/Select/SelectWithIcon.js +1 -7
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +6 -6
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +756 -756
- package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +9 -9
- package/lib/Switch/Switch.js +1 -6
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +44 -44
- package/lib/Tab/Tab.js +1 -6
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +2 -2
- package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +36 -36
- package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +1 -1
- package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +4 -4
- package/lib/Tag/Tag.js +1 -6
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +46 -46
- package/lib/TextBox/TextBox.js +1 -8
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -8
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +164 -164
- package/lib/Textarea/Textarea.js +1 -8
- package/lib/Tooltip/Tooltip.js +1 -8
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -5
- package/lib/semantic/Button/Button.js +1 -6
- package/lib/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +10 -10
- package/lib/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/lib/v1/Button/Button.js +7 -12
- package/lib/v1/Button/README.md +3 -2
- package/lib/v1/Button/__tests__/Button.spec.js +66 -52
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +298 -218
- package/lib/v1/Button/constants/index.js +31 -28
- package/lib/v1/Button/constants/presets.js +165 -0
- package/lib/v1/Button/css/Button_v1.module.css +17 -8
- package/lib/v1/Button/css/cssJSLogic.js +26 -15
- package/lib/v1/Button/props/defaultProps.js +1 -5
- package/lib/v1/Button/props/propTypes.js +27 -4
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +24 -24
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +14 -14
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +5 -5
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +5 -5
- package/lib/v1/helpers/colorHelpers/colorHelper.js +127 -153
- package/lib/v1/helpers/colorHelpers/constants/index.js +45 -4
- package/lib/v1/shared/{Loader/Loader.js → Spinner/Spinner.js} +8 -8
- package/lib/v1/shared/{Loader/__tests__/Loader.spec.js → Spinner/__tests__/Spinner.spec.js} +4 -4
- package/{es/v1/shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap → lib/v1/shared/Spinner/__tests__/__snapshots__/Spinner.spec.js.snap} +2 -2
- package/package.json +15 -15
- /package/es/v1/shared/{Loader/Loader_v1.module.css → Spinner/Spinner_v1.module.css} +0 -0
- /package/es/v1/shared/{Loader → Spinner}/props/defaultProps.js +0 -0
- /package/es/v1/shared/{Loader → Spinner}/props/propTypes.js +0 -0
- /package/lib/v1/shared/{Loader/Loader_v1.module.css → Spinner/Spinner_v1.module.css} +0 -0
- /package/lib/v1/shared/{Loader → Spinner}/props/defaultProps.js +0 -0
- /package/lib/v1/shared/{Loader → Spinner}/props/propTypes.js +0 -0
package/lib/Textarea/Textarea.js
CHANGED
|
@@ -160,11 +160,4 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
160
160
|
|
|
161
161
|
exports["default"] = Textarea;
|
|
162
162
|
Textarea.defaultProps = _defaultProps.defaultProps;
|
|
163
|
-
Textarea.propTypes = _propTypes.propTypes;
|
|
164
|
-
// Textarea.docs = {
|
|
165
|
-
// componentGroup: 'Form Elements',
|
|
166
|
-
// folderName: 'Style Guide',
|
|
167
|
-
// external: true,
|
|
168
|
-
// description: ' '
|
|
169
|
-
// };
|
|
170
|
-
// }
|
|
163
|
+
Textarea.propTypes = _propTypes.propTypes;
|
package/lib/Tooltip/Tooltip.js
CHANGED
|
@@ -591,11 +591,4 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
591
591
|
|
|
592
592
|
exports["default"] = Tooltip;
|
|
593
593
|
Tooltip.propTypes = _propTypes.propTypes;
|
|
594
|
-
Tooltip.defaultProps = _defaultProps.defaultProps;
|
|
595
|
-
// Tooltip.docs = {
|
|
596
|
-
// componentGroup: 'Atom',
|
|
597
|
-
// folderName: 'Style Guide',
|
|
598
|
-
// description: ' ',
|
|
599
|
-
// external: true
|
|
600
|
-
// };
|
|
601
|
-
// }
|
|
594
|
+
Tooltip.defaultProps = _defaultProps.defaultProps;
|
|
@@ -119,8 +119,4 @@ var VelocityAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
119
119
|
exports["default"] = VelocityAnimation;
|
|
120
120
|
VelocityAnimation.defaultProps = _defaultProps.defaultProps;
|
|
121
121
|
VelocityAnimation.propTypes = _propTypes.propTypes;
|
|
122
|
-
VelocityAnimation.contextType = _LibraryContextInit["default"];
|
|
123
|
-
// VelocityAnimation.docs = {
|
|
124
|
-
// componentGroup: 'Animation'
|
|
125
|
-
// };
|
|
126
|
-
// }
|
|
122
|
+
VelocityAnimation.contextType = _LibraryContextInit["default"];
|
|
@@ -209,8 +209,4 @@ VelocityAnimationGroup.defaultProps = _objectSpread(_objectSpread({}, _defaultPr
|
|
|
209
209
|
component: _react["default"].Fragment
|
|
210
210
|
});
|
|
211
211
|
VelocityAnimationGroup.propTypes = _propTypes.propTypes;
|
|
212
|
-
VelocityAnimationGroup.contextType = _LibraryContextInit["default"];
|
|
213
|
-
// VelocityAnimationGroup.docs = {
|
|
214
|
-
// componentGroup: 'Animation'
|
|
215
|
-
// };
|
|
216
|
-
// }
|
|
212
|
+
VelocityAnimationGroup.contextType = _LibraryContextInit["default"];
|
|
@@ -98,9 +98,4 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
98
98
|
|
|
99
99
|
exports["default"] = Button;
|
|
100
100
|
Button.defaultProps = _defaultProps.defaultProps;
|
|
101
|
-
Button.propTypes = _propTypes.propTypes;
|
|
102
|
-
// Button.docs = {
|
|
103
|
-
// componentGroup: 'semantic',
|
|
104
|
-
// folderName: 'DefaultComponents'
|
|
105
|
-
// };
|
|
106
|
-
// }
|
|
101
|
+
Button.propTypes = _propTypes.propTypes;
|
|
@@ -4,7 +4,7 @@ exports[`ArrowIcon Should be render isActive is true 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
aria-hidden="true"
|
|
7
|
-
class="
|
|
7
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon active"
|
|
8
8
|
data-id="undefined_downIcon"
|
|
9
9
|
data-selector-id="container"
|
|
10
10
|
data-test-id="undefined_downIcon"
|
|
@@ -25,7 +25,7 @@ exports[`ArrowIcon Should be render isDisabled is true 1`] = `
|
|
|
25
25
|
<DocumentFragment>
|
|
26
26
|
<div
|
|
27
27
|
aria-hidden="true"
|
|
28
|
-
class="
|
|
28
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon disabled"
|
|
29
29
|
data-id="undefined_downIcon"
|
|
30
30
|
data-selector-id="container"
|
|
31
31
|
data-test-id="undefined_downIcon"
|
|
@@ -46,7 +46,7 @@ exports[`ArrowIcon Should be render isReadOnly is true 1`] = `
|
|
|
46
46
|
<DocumentFragment>
|
|
47
47
|
<div
|
|
48
48
|
aria-hidden="true"
|
|
49
|
-
class="
|
|
49
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon readonly"
|
|
50
50
|
data-id="undefined_downIcon"
|
|
51
51
|
data-selector-id="container"
|
|
52
52
|
data-test-id="undefined_downIcon"
|
|
@@ -67,7 +67,7 @@ exports[`ArrowIcon Should be render isRotated is true 1`] = `
|
|
|
67
67
|
<DocumentFragment>
|
|
68
68
|
<div
|
|
69
69
|
aria-hidden="true"
|
|
70
|
-
class="
|
|
70
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon rotated"
|
|
71
71
|
data-id="undefined_downIcon"
|
|
72
72
|
data-selector-id="container"
|
|
73
73
|
data-test-id="undefined_downIcon"
|
|
@@ -88,7 +88,7 @@ exports[`ArrowIcon Should be render with a11yAttributes 1`] = `
|
|
|
88
88
|
<DocumentFragment>
|
|
89
89
|
<div
|
|
90
90
|
aria-hidden="true"
|
|
91
|
-
class="
|
|
91
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon"
|
|
92
92
|
data-a11y-focus="true"
|
|
93
93
|
data-id="undefined_downIcon"
|
|
94
94
|
data-selector-id="container"
|
|
@@ -110,7 +110,7 @@ exports[`ArrowIcon Should be render with customClass 1`] = `
|
|
|
110
110
|
<DocumentFragment>
|
|
111
111
|
<div
|
|
112
112
|
aria-hidden="true"
|
|
113
|
-
class="
|
|
113
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon arrowIcon_containerClass"
|
|
114
114
|
data-id="undefined_downIcon"
|
|
115
115
|
data-selector-id="container"
|
|
116
116
|
data-test-id="undefined_downIcon"
|
|
@@ -131,7 +131,7 @@ exports[`ArrowIcon Should be render with customProps 1`] = `
|
|
|
131
131
|
<DocumentFragment>
|
|
132
132
|
<div
|
|
133
133
|
aria-hidden="true"
|
|
134
|
-
class="
|
|
134
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon"
|
|
135
135
|
data-id="undefined_downIcon"
|
|
136
136
|
data-selector-id="container"
|
|
137
137
|
data-test-id="hereIsTestId"
|
|
@@ -152,7 +152,7 @@ exports[`ArrowIcon Should be render with dataId 1`] = `
|
|
|
152
152
|
<DocumentFragment>
|
|
153
153
|
<div
|
|
154
154
|
aria-hidden="true"
|
|
155
|
-
class="
|
|
155
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon"
|
|
156
156
|
data-id="ArrowIcon-test-dataId_downIcon"
|
|
157
157
|
data-selector-id="container"
|
|
158
158
|
data-test-id="ArrowIcon-test-dataId_downIcon"
|
|
@@ -181,7 +181,7 @@ exports[`ArrowIcon Should be render with tagAttributes 1`] = `
|
|
|
181
181
|
<DocumentFragment>
|
|
182
182
|
<div
|
|
183
183
|
aria-hidden="true"
|
|
184
|
-
class="
|
|
184
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon"
|
|
185
185
|
data-id="undefined_downIcon"
|
|
186
186
|
data-selector-id="container"
|
|
187
187
|
data-test-id="undefined_downIcon"
|
|
@@ -203,7 +203,7 @@ exports[`ArrowIcon rendering the defult props 1`] = `
|
|
|
203
203
|
<DocumentFragment>
|
|
204
204
|
<div
|
|
205
205
|
aria-hidden="true"
|
|
206
|
-
class="
|
|
206
|
+
class="d-inline-flex d-flex-col d-items-center d-justify-center arrowIcon"
|
|
207
207
|
data-id="undefined_downIcon"
|
|
208
208
|
data-selector-id="container"
|
|
209
209
|
data-test-id="undefined_downIcon"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`InputFieldLine Should be render hasEffect is false 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
6
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
7
7
|
data-selector-id="container"
|
|
8
8
|
data-title=""
|
|
9
9
|
/>
|
|
@@ -13,7 +13,7 @@ exports[`InputFieldLine Should be render hasEffect is false 1`] = `
|
|
|
13
13
|
exports[`InputFieldLine Should be render hasPadding is true 1`] = `
|
|
14
14
|
<DocumentFragment>
|
|
15
15
|
<div
|
|
16
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
16
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
17
17
|
data-selector-id="container"
|
|
18
18
|
data-title=""
|
|
19
19
|
/>
|
|
@@ -23,7 +23,7 @@ exports[`InputFieldLine Should be render hasPadding is true 1`] = `
|
|
|
23
23
|
exports[`InputFieldLine Should be render isActive is true 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
25
|
<div
|
|
26
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder active"
|
|
26
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder active"
|
|
27
27
|
data-selector-id="container"
|
|
28
28
|
data-title=""
|
|
29
29
|
/>
|
|
@@ -33,7 +33,7 @@ exports[`InputFieldLine Should be render isActive is true 1`] = `
|
|
|
33
33
|
exports[`InputFieldLine Should be render isDisabled is true 1`] = `
|
|
34
34
|
<DocumentFragment>
|
|
35
35
|
<div
|
|
36
|
-
class="flex row varClass customContainer border_bottom disabled borderColor_default hasBorder"
|
|
36
|
+
class="d-flex d-flex-row varClass customContainer border_bottom disabled borderColor_default hasBorder"
|
|
37
37
|
data-selector-id="container"
|
|
38
38
|
data-title=""
|
|
39
39
|
/>
|
|
@@ -43,7 +43,7 @@ exports[`InputFieldLine Should be render isDisabled is true 1`] = `
|
|
|
43
43
|
exports[`InputFieldLine Should be render isReadOnly is true 1`] = `
|
|
44
44
|
<DocumentFragment>
|
|
45
45
|
<div
|
|
46
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
46
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
47
47
|
data-selector-id="container"
|
|
48
48
|
data-title=""
|
|
49
49
|
/>
|
|
@@ -53,7 +53,7 @@ exports[`InputFieldLine Should be render isReadOnly is true 1`] = `
|
|
|
53
53
|
exports[`InputFieldLine Should be render with title 1`] = `
|
|
54
54
|
<DocumentFragment>
|
|
55
55
|
<div
|
|
56
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
56
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
57
57
|
data-selector-id="container"
|
|
58
58
|
data-title="InputFieldLine Test Title"
|
|
59
59
|
/>
|
|
@@ -63,7 +63,7 @@ exports[`InputFieldLine Should be render with title 1`] = `
|
|
|
63
63
|
exports[`InputFieldLine Should render border - all 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
65
|
<div
|
|
66
|
-
class="flex row varClass customContainer border_all effect borderColor_default hasBorder"
|
|
66
|
+
class="d-flex d-flex-row varClass customContainer border_all effect borderColor_default hasBorder"
|
|
67
67
|
data-selector-id="container"
|
|
68
68
|
data-title=""
|
|
69
69
|
/>
|
|
@@ -73,7 +73,7 @@ exports[`InputFieldLine Should render border - all 1`] = `
|
|
|
73
73
|
exports[`InputFieldLine Should render border - bottom 1`] = `
|
|
74
74
|
<DocumentFragment>
|
|
75
75
|
<div
|
|
76
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
76
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
77
77
|
data-selector-id="container"
|
|
78
78
|
data-title=""
|
|
79
79
|
/>
|
|
@@ -83,7 +83,7 @@ exports[`InputFieldLine Should render border - bottom 1`] = `
|
|
|
83
83
|
exports[`InputFieldLine Should render border - none 1`] = `
|
|
84
84
|
<DocumentFragment>
|
|
85
85
|
<div
|
|
86
|
-
class="flex row varClass customContainer effect"
|
|
86
|
+
class="d-flex d-flex-row varClass customContainer effect"
|
|
87
87
|
data-selector-id="container"
|
|
88
88
|
data-title=""
|
|
89
89
|
/>
|
|
@@ -93,7 +93,7 @@ exports[`InputFieldLine Should render border - none 1`] = `
|
|
|
93
93
|
exports[`InputFieldLine Should render borderColor - dark 1`] = `
|
|
94
94
|
<DocumentFragment>
|
|
95
95
|
<div
|
|
96
|
-
class="flex row varClass customContainer border_bottom effect borderColor_dark hasBorder"
|
|
96
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_dark hasBorder"
|
|
97
97
|
data-selector-id="container"
|
|
98
98
|
data-title=""
|
|
99
99
|
/>
|
|
@@ -103,7 +103,7 @@ exports[`InputFieldLine Should render borderColor - dark 1`] = `
|
|
|
103
103
|
exports[`InputFieldLine Should render borderColor - default 1`] = `
|
|
104
104
|
<DocumentFragment>
|
|
105
105
|
<div
|
|
106
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
106
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
107
107
|
data-selector-id="container"
|
|
108
108
|
data-title=""
|
|
109
109
|
/>
|
|
@@ -113,7 +113,7 @@ exports[`InputFieldLine Should render borderColor - default 1`] = `
|
|
|
113
113
|
exports[`InputFieldLine Should render borderColor - error 1`] = `
|
|
114
114
|
<DocumentFragment>
|
|
115
115
|
<div
|
|
116
|
-
class="flex row varClass customContainer border_bottom effect borderColor_error hasBorder"
|
|
116
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_error hasBorder"
|
|
117
117
|
data-selector-id="container"
|
|
118
118
|
data-title=""
|
|
119
119
|
/>
|
|
@@ -123,7 +123,7 @@ exports[`InputFieldLine Should render borderColor - error 1`] = `
|
|
|
123
123
|
exports[`InputFieldLine Should render borderColor - transparent 1`] = `
|
|
124
124
|
<DocumentFragment>
|
|
125
125
|
<div
|
|
126
|
-
class="flex row varClass customContainer border_bottom effect borderColor_transparent hasBorder"
|
|
126
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_transparent hasBorder"
|
|
127
127
|
data-selector-id="container"
|
|
128
128
|
data-title=""
|
|
129
129
|
/>
|
|
@@ -133,7 +133,7 @@ exports[`InputFieldLine Should render borderColor - transparent 1`] = `
|
|
|
133
133
|
exports[`InputFieldLine Should render customClass 1`] = `
|
|
134
134
|
<DocumentFragment>
|
|
135
135
|
<div
|
|
136
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder inputFieldLine-custom-class"
|
|
136
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder inputFieldLine-custom-class"
|
|
137
137
|
data-selector-id="container"
|
|
138
138
|
data-title=""
|
|
139
139
|
/>
|
|
@@ -143,7 +143,7 @@ exports[`InputFieldLine Should render customClass 1`] = `
|
|
|
143
143
|
exports[`InputFieldLine Should render customProps 1`] = `
|
|
144
144
|
<DocumentFragment>
|
|
145
145
|
<div
|
|
146
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
146
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
147
147
|
data-selector-id="container"
|
|
148
148
|
data-test="inputFieldLine-test"
|
|
149
149
|
data-title=""
|
|
@@ -154,7 +154,7 @@ exports[`InputFieldLine Should render customProps 1`] = `
|
|
|
154
154
|
exports[`InputFieldLine Should render dataId 1`] = `
|
|
155
155
|
<DocumentFragment>
|
|
156
156
|
<div
|
|
157
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
157
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
158
158
|
data-id="inputFieldLine-test-id"
|
|
159
159
|
data-selector-id="container"
|
|
160
160
|
data-test-id="inputFieldLine-test-id"
|
|
@@ -166,7 +166,7 @@ exports[`InputFieldLine Should render dataId 1`] = `
|
|
|
166
166
|
exports[`InputFieldLine Should render size - medium 1`] = `
|
|
167
167
|
<DocumentFragment>
|
|
168
168
|
<div
|
|
169
|
-
class="flex row
|
|
169
|
+
class="d-flex d-flex-row d-overflow-y-auto d-overflow-x-hidden varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder"
|
|
170
170
|
data-selector-id="container"
|
|
171
171
|
data-title=""
|
|
172
172
|
/>
|
|
@@ -176,7 +176,7 @@ exports[`InputFieldLine Should render size - medium 1`] = `
|
|
|
176
176
|
exports[`InputFieldLine Should render size - xmedium 1`] = `
|
|
177
177
|
<DocumentFragment>
|
|
178
178
|
<div
|
|
179
|
-
class="flex row
|
|
179
|
+
class="d-flex d-flex-row d-overflow-y-auto d-overflow-x-hidden varClass customContainer xmedium padding_xmedium border_bottom effect borderColor_default hasBorder"
|
|
180
180
|
data-selector-id="container"
|
|
181
181
|
data-title=""
|
|
182
182
|
/>
|
|
@@ -186,7 +186,7 @@ exports[`InputFieldLine Should render size - xmedium 1`] = `
|
|
|
186
186
|
exports[`InputFieldLine rendering the defult props 1`] = `
|
|
187
187
|
<DocumentFragment>
|
|
188
188
|
<div
|
|
189
|
-
class="flex row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
189
|
+
class="d-flex d-flex-row varClass customContainer border_bottom effect borderColor_default hasBorder"
|
|
190
190
|
data-selector-id="container"
|
|
191
191
|
data-title=""
|
|
192
192
|
/>
|
package/lib/v1/Button/Button.js
CHANGED
|
@@ -25,7 +25,7 @@ var _constants2 = require("./constants");
|
|
|
25
25
|
|
|
26
26
|
var _Typography = _interopRequireDefault(require("../../Typography/Typography"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _Spinner = _interopRequireDefault(require("../shared/Spinner/Spinner"));
|
|
29
29
|
|
|
30
30
|
var _SuccessTick = _interopRequireDefault(require("../shared/SuccessTick/SuccessTick"));
|
|
31
31
|
|
|
@@ -72,7 +72,6 @@ var ButtonPresentational = /*#__PURE__*/(0, _react.forwardRef)(function ButtonPr
|
|
|
72
72
|
renderSuccess = props.renderSuccess,
|
|
73
73
|
children = props.children,
|
|
74
74
|
type = props.type,
|
|
75
|
-
isReadOnly = props.isReadOnly,
|
|
76
75
|
isSelected = props.isSelected,
|
|
77
76
|
title = props.title,
|
|
78
77
|
customProps = props.customProps,
|
|
@@ -133,7 +132,7 @@ var ButtonPresentational = /*#__PURE__*/(0, _react.forwardRef)(function ButtonPr
|
|
|
133
132
|
testId: testId ? "".concat(testId, "_loader") : undefined
|
|
134
133
|
}, hasCustomLoader ? undefined : loaderAttributes), hasCustomLoader ? (0, _renderNode["default"])(renderLoader, {
|
|
135
134
|
status: _constants2.STATUS.LOADING
|
|
136
|
-
}) : /*#__PURE__*/_react["default"].createElement(
|
|
135
|
+
}) : /*#__PURE__*/_react["default"].createElement(_Spinner["default"], {
|
|
137
136
|
customClass: loaderClassName
|
|
138
137
|
}));
|
|
139
138
|
};
|
|
@@ -202,7 +201,6 @@ var ButtonPresentational = /*#__PURE__*/(0, _react.forwardRef)(function ButtonPr
|
|
|
202
201
|
return /*#__PURE__*/_react["default"].createElement("button", _extends({}, containerAttributes, {
|
|
203
202
|
"aria-busy": isLoading,
|
|
204
203
|
disabled: isDisabledState,
|
|
205
|
-
"aria-readonly": isReadOnly,
|
|
206
204
|
"aria-pressed": isSelected
|
|
207
205
|
}, a11yAttributes, {
|
|
208
206
|
ref: ref,
|
|
@@ -215,8 +213,9 @@ exports.ButtonPresentational = ButtonPresentational;
|
|
|
215
213
|
ButtonPresentational.displayName = 'ButtonPresentational';
|
|
216
214
|
var Button = /*#__PURE__*/(0, _react.forwardRef)(function Button(props, ref) {
|
|
217
215
|
var palette = props.palette,
|
|
218
|
-
|
|
219
|
-
|
|
216
|
+
appearance = props.appearance,
|
|
217
|
+
hoverAppearance = props.hoverAppearance,
|
|
218
|
+
selectedAppearance = props.selectedAppearance,
|
|
220
219
|
variant = props.variant,
|
|
221
220
|
status = props.status,
|
|
222
221
|
loaderPlacement = props.loaderPlacement,
|
|
@@ -233,10 +232,8 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function Button(props, ref) {
|
|
|
233
232
|
type = props.type,
|
|
234
233
|
onClick = props.onClick,
|
|
235
234
|
isDisabled = props.isDisabled,
|
|
236
|
-
isReadOnly = props.isReadOnly,
|
|
237
235
|
isSelected = props.isSelected,
|
|
238
236
|
shape = props.shape,
|
|
239
|
-
paletteShade = props.paletteShade,
|
|
240
237
|
disabledAppearance = props.disabledAppearance,
|
|
241
238
|
title = props.title,
|
|
242
239
|
customProps = props.customProps,
|
|
@@ -248,16 +245,15 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function Button(props, ref) {
|
|
|
248
245
|
var isLoading = status === _constants2.STATUS.LOADING;
|
|
249
246
|
var isSuccess = status === _constants2.STATUS.SUCCESS;
|
|
250
247
|
var isDisabledState = isDisabled || isLoading;
|
|
251
|
-
var isInteractionDisabled = isDisabledState || isReadOnly;
|
|
252
248
|
var overlayActive = (isLoading || isSuccess) && loaderPlacement === _constants2.LOADER_PLACEMENT.OVERLAY;
|
|
253
249
|
var classNames = (0, _react.useMemo)(function () {
|
|
254
250
|
return (0, _cssJSLogic["default"])({
|
|
255
251
|
props: props
|
|
256
252
|
});
|
|
257
|
-
}, [palette,
|
|
253
|
+
}, [palette, appearance, hoverAppearance, selectedAppearance, size, variant, status, isDisabled, isSelected, shape, loaderPlacement, disabledAppearance, props.customClass]);
|
|
258
254
|
|
|
259
255
|
var handleClick = function handleClick(event) {
|
|
260
|
-
if (
|
|
256
|
+
if (isDisabledState) return;
|
|
261
257
|
onClick(event);
|
|
262
258
|
};
|
|
263
259
|
|
|
@@ -280,7 +276,6 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function Button(props, ref) {
|
|
|
280
276
|
renderSuccess: renderSuccess,
|
|
281
277
|
children: children,
|
|
282
278
|
type: type,
|
|
283
|
-
isReadOnly: isReadOnly,
|
|
284
279
|
isSelected: isSelected,
|
|
285
280
|
title: title,
|
|
286
281
|
customProps: customProps,
|
package/lib/v1/Button/README.md
CHANGED
|
@@ -62,8 +62,9 @@ import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
|
62
62
|
| `customId` | `string` | — | `data-id` attribute for automation |
|
|
63
63
|
| `testId` | `string` | — | `data-test-id` attribute for testing |
|
|
64
64
|
| `palette` | `oneOf: default, primary, secondary, danger, success` | `default` | Color palette |
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
65
|
+
| `appearance` | `array of: border, text, bg` | `['bg', 'border']` | Which treatments are colored at rest |
|
|
66
|
+
| `hoverAppearance` | `array of: border, text, bg` | `['bg', 'border']` | Which treatments are colored on hover/focus/active |
|
|
67
|
+
| `selectedAppearance` | `array of: border, text, bg` | `['bg', 'border']` | Which treatments are colored when `isSelected` |
|
|
67
68
|
| `variant` | `oneOf: text, icon, iconWithText` | `text` | Display variant |
|
|
68
69
|
| `size` | `oneOf: small, medium, large, full` | `medium` | Size variant |
|
|
69
70
|
| `status` | `oneOf: default, loading, success` | `default` | Status state |
|