@zohodesk/components 1.0.0-temp-229.1 → 1.0.0-temp-220.11
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 +35 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +15 -11
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +5 -0
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +5 -0
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +5 -0
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +5 -0
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +5 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +13 -9
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +5 -0
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +5 -0
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +5 -0
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +5 -0
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +5 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +15 -11
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +5 -0
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +5 -0
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +5 -0
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +5 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +5 -0
- package/es/Button/Button.js +14 -7
- package/es/Button/css/Button.module.css +54 -16
- package/es/Button/css/cssJSLogic.js +6 -1
- package/es/Button/props/propTypes.js +1 -0
- package/es/Card/Card.js +10 -39
- package/es/Card/props/defaultProps.js +1 -2
- package/es/Card/props/propTypes.js +1 -2
- package/es/DropBox/DropBox.js +3 -3
- package/es/ListItem/ListItem.js +11 -2
- package/es/ListItem/ListItem.module.css +9 -0
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +15 -1
- package/es/ListItem/props/propTypes.js +2 -1
- package/es/Modal/Modal.js +35 -14
- package/es/Modal/Portal/Portal.js +33 -0
- package/es/Modal/Portal/__tests__/Portal.spec.js +28 -0
- package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
- package/es/Modal/Portal/props/defaultProps.js +3 -0
- package/es/Modal/Portal/props/propTypes.js +5 -0
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +80 -10
- package/es/Popup/Popup.js +239 -107
- package/es/Popup/Registry.js +36 -0
- package/es/Popup/viewPort.js +15 -16
- package/es/Provider/Config.js +4 -1
- package/es/Provider/LibraryContext.js +7 -3
- package/es/RippleEffect/RippleEffect.module.css +3 -2
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +512 -64
- package/es/v1/Button/props/propTypes.js +2 -1
- package/es/v1/Switch/useSwitch.js +1 -1
- package/lib/Button/Button.js +12 -5
- package/lib/Button/css/Button.module.css +54 -16
- package/lib/Button/css/cssJSLogic.js +6 -2
- package/lib/Button/props/propTypes.js +1 -0
- package/lib/Card/Card.js +25 -54
- package/lib/Card/props/defaultProps.js +1 -2
- package/lib/Card/props/propTypes.js +1 -2
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/ListItem/ListItem.js +12 -3
- package/lib/ListItem/ListItem.module.css +9 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +15 -1
- package/lib/ListItem/props/propTypes.js +2 -1
- package/lib/Modal/Modal.js +40 -16
- package/lib/Modal/Portal/Portal.js +46 -0
- package/lib/Modal/Portal/__tests__/Portal.spec.js +37 -0
- package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
- package/lib/Modal/Portal/props/defaultProps.js +10 -0
- package/lib/Modal/Portal/props/propTypes.js +16 -0
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +80 -10
- package/lib/Popup/Popup.js +316 -162
- package/lib/Popup/Registry.js +46 -0
- package/lib/Popup/viewPort.js +15 -16
- package/lib/Provider/Config.js +4 -1
- package/lib/Provider/LibraryContext.js +7 -3
- package/lib/RippleEffect/RippleEffect.module.css +3 -2
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +512 -64
- package/lib/v1/Button/props/propTypes.js +2 -1
- package/lib/v1/Switch/useSwitch.js +1 -1
- package/package.json +12 -12
- package/result.json +1 -1
package/es/Provider/Config.js
CHANGED
|
@@ -8,7 +8,10 @@ let id = {
|
|
|
8
8
|
direction: 'ltr',
|
|
9
9
|
tooltipDebounce: 175,
|
|
10
10
|
getTooltipContainer: () => {},
|
|
11
|
-
autoComplete: false
|
|
11
|
+
autoComplete: false,
|
|
12
|
+
portalPrefix: '',
|
|
13
|
+
getPortalContainer: () => {},
|
|
14
|
+
getRootElement: () => {}
|
|
12
15
|
};
|
|
13
16
|
export function getLibraryConfig(key) {
|
|
14
17
|
return id[key];
|
|
@@ -10,6 +10,7 @@ const LibraryContextProvider = _ref => {
|
|
|
10
10
|
coloredTagVariant,
|
|
11
11
|
hasTagColorInheritedToText,
|
|
12
12
|
shouldIndicateSwitchState,
|
|
13
|
+
shouldStrikeThroughDisabledButton,
|
|
13
14
|
children
|
|
14
15
|
} = _ref;
|
|
15
16
|
const [value, setValue] = useState({
|
|
@@ -17,7 +18,8 @@ const LibraryContextProvider = _ref => {
|
|
|
17
18
|
direction,
|
|
18
19
|
coloredTagVariant,
|
|
19
20
|
hasTagColorInheritedToText,
|
|
20
|
-
shouldIndicateSwitchState
|
|
21
|
+
shouldIndicateSwitchState,
|
|
22
|
+
shouldStrikeThroughDisabledButton
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
function setGlobalContext(key, data) {
|
|
@@ -41,13 +43,15 @@ LibraryContextProvider.propTypes = {
|
|
|
41
43
|
coloredTagVariant: PropTypes.oneOf(['bold', 'subtle', 'minimal']),
|
|
42
44
|
hasTagColorInheritedToText: PropTypes.bool,
|
|
43
45
|
direction: PropTypes.string,
|
|
44
|
-
shouldIndicateSwitchState: PropTypes.bool
|
|
46
|
+
shouldIndicateSwitchState: PropTypes.bool,
|
|
47
|
+
shouldStrikeThroughDisabledButton: PropTypes.bool
|
|
45
48
|
};
|
|
46
49
|
LibraryContextProvider.defaultProps = {
|
|
47
50
|
isReducedMotion: getLibraryConfig('isReducedMotion'),
|
|
48
51
|
direction: getLibraryConfig('direction'),
|
|
49
52
|
coloredTagVariant: 'bold',
|
|
50
53
|
hasTagColorInheritedToText: true,
|
|
51
|
-
shouldIndicateSwitchState: false
|
|
54
|
+
shouldIndicateSwitchState: false,
|
|
55
|
+
shouldStrikeThroughDisabledButton: false
|
|
52
56
|
};
|
|
53
57
|
export default LibraryContextProvider;
|
|
@@ -100,9 +100,10 @@
|
|
|
100
100
|
{
|
|
101
101
|
background-color: var(--zdt_rippleeffect_secondary_bg);
|
|
102
102
|
}
|
|
103
|
-
.secondary.active {
|
|
103
|
+
.secondary.active, .hoverEffect:hover.secondary.active.bgHover {
|
|
104
104
|
background-color: var(--zdt_rippleeffect_secondary_active_bg);
|
|
105
105
|
}
|
|
106
|
-
.secondary.active.border
|
|
106
|
+
.secondary.active.border
|
|
107
|
+
.hoverEffect:hover.secondary.active.border {
|
|
107
108
|
border-color: var(--zdt_rippleeffect_secondary_active_border);
|
|
108
109
|
}
|