@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.
Files changed (78) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +35 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +15 -11
  4. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +5 -0
  5. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +5 -0
  6. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +5 -0
  7. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +5 -0
  8. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +5 -0
  9. package/assets/Appearance/light/mode/Component_LightMode.module.css +13 -9
  10. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +5 -0
  11. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +5 -0
  12. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +5 -0
  13. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +5 -0
  14. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +5 -0
  15. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +15 -11
  16. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +5 -0
  17. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +5 -0
  18. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +5 -0
  19. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +5 -0
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +5 -0
  21. package/es/Button/Button.js +14 -7
  22. package/es/Button/css/Button.module.css +54 -16
  23. package/es/Button/css/cssJSLogic.js +6 -1
  24. package/es/Button/props/propTypes.js +1 -0
  25. package/es/Card/Card.js +10 -39
  26. package/es/Card/props/defaultProps.js +1 -2
  27. package/es/Card/props/propTypes.js +1 -2
  28. package/es/DropBox/DropBox.js +3 -3
  29. package/es/ListItem/ListItem.js +11 -2
  30. package/es/ListItem/ListItem.module.css +9 -0
  31. package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +15 -1
  32. package/es/ListItem/props/propTypes.js +2 -1
  33. package/es/Modal/Modal.js +35 -14
  34. package/es/Modal/Portal/Portal.js +33 -0
  35. package/es/Modal/Portal/__tests__/Portal.spec.js +28 -0
  36. package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
  37. package/es/Modal/Portal/props/defaultProps.js +3 -0
  38. package/es/Modal/Portal/props/propTypes.js +5 -0
  39. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +80 -10
  40. package/es/Popup/Popup.js +239 -107
  41. package/es/Popup/Registry.js +36 -0
  42. package/es/Popup/viewPort.js +15 -16
  43. package/es/Provider/Config.js +4 -1
  44. package/es/Provider/LibraryContext.js +7 -3
  45. package/es/RippleEffect/RippleEffect.module.css +3 -2
  46. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +512 -64
  47. package/es/v1/Button/props/propTypes.js +2 -1
  48. package/es/v1/Switch/useSwitch.js +1 -1
  49. package/lib/Button/Button.js +12 -5
  50. package/lib/Button/css/Button.module.css +54 -16
  51. package/lib/Button/css/cssJSLogic.js +6 -2
  52. package/lib/Button/props/propTypes.js +1 -0
  53. package/lib/Card/Card.js +25 -54
  54. package/lib/Card/props/defaultProps.js +1 -2
  55. package/lib/Card/props/propTypes.js +1 -2
  56. package/lib/DropBox/DropBox.js +3 -3
  57. package/lib/ListItem/ListItem.js +12 -3
  58. package/lib/ListItem/ListItem.module.css +9 -0
  59. package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +15 -1
  60. package/lib/ListItem/props/propTypes.js +2 -1
  61. package/lib/Modal/Modal.js +40 -16
  62. package/lib/Modal/Portal/Portal.js +46 -0
  63. package/lib/Modal/Portal/__tests__/Portal.spec.js +37 -0
  64. package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
  65. package/lib/Modal/Portal/props/defaultProps.js +10 -0
  66. package/lib/Modal/Portal/props/propTypes.js +16 -0
  67. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +80 -10
  68. package/lib/Popup/Popup.js +316 -162
  69. package/lib/Popup/Registry.js +46 -0
  70. package/lib/Popup/viewPort.js +15 -16
  71. package/lib/Provider/Config.js +4 -1
  72. package/lib/Provider/LibraryContext.js +7 -3
  73. package/lib/RippleEffect/RippleEffect.module.css +3 -2
  74. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +512 -64
  75. package/lib/v1/Button/props/propTypes.js +2 -1
  76. package/lib/v1/Switch/useSwitch.js +1 -1
  77. package/package.json +12 -12
  78. package/result.json +1 -1
@@ -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
  }