@zohodesk/dot 1.0.0-temp-227 → 1.0.0-temp-228

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 (110) hide show
  1. package/README.md +2 -7
  2. package/es/ActionButton/ActionButton.js +19 -9
  3. package/es/ActionButton/props/defaultProps.js +2 -1
  4. package/es/ActionButton/props/propTypes.js +4 -1
  5. package/es/DotProvider/hooks/useDotProvider.js +3 -3
  6. package/es/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +1 -0
  7. package/es/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +1 -0
  8. package/es/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +1 -0
  9. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -2
  10. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -2
  11. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -2
  12. package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -2
  13. package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -2
  14. package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -2
  15. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -2
  16. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -2
  17. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -2
  18. package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -2
  19. package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -2
  20. package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -2
  21. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -2
  22. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -2
  23. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -2
  24. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +2 -0
  25. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +2 -0
  26. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +2 -0
  27. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +2 -0
  28. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +2 -0
  29. package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +2 -0
  30. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +2 -0
  31. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +2 -0
  32. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +2 -0
  33. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +2 -0
  34. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +2 -0
  35. package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +2 -0
  36. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +2 -0
  37. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +2 -0
  38. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +2 -0
  39. package/es/DotProvider/utils/constants.js +2 -1
  40. package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +15 -1
  41. package/es/DotProvider/utils/themeColorAssetsConfig.js +73 -1
  42. package/es/lookup/Lookup/Lookup.js +4 -6
  43. package/es/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
  44. package/es/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
  45. package/es/lookup/Lookup/props/propTypes.js +1 -6
  46. package/es/lookup/header/ModuleHeader/ModuleHeader.js +5 -12
  47. package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +3 -87
  48. package/es/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
  49. package/es/lookup/header/ModuleHeader/props/propTypes.js +0 -6
  50. package/es/version2/lookup/AlertHeader/AlertHeader.js +9 -19
  51. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +3 -122
  52. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
  53. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -6
  54. package/es/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
  55. package/es/version2/lookup/AlertHeader/props/propTypes.js +0 -10
  56. package/lib/ActionButton/ActionButton.js +18 -9
  57. package/lib/ActionButton/props/defaultProps.js +2 -1
  58. package/lib/ActionButton/props/propTypes.js +4 -1
  59. package/lib/DotProvider/hooks/useDotProvider.js +3 -3
  60. package/lib/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +3 -0
  61. package/lib/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +3 -0
  62. package/lib/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +3 -0
  63. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -4
  64. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -4
  65. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -4
  66. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -4
  67. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -4
  68. package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -4
  69. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -4
  70. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -4
  71. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -4
  72. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -4
  73. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -4
  74. package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -4
  75. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -4
  76. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -4
  77. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -4
  78. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +5 -0
  79. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +5 -0
  80. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +5 -0
  81. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +5 -0
  82. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +5 -0
  83. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +5 -0
  84. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +5 -0
  85. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +5 -0
  86. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +5 -0
  87. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +5 -0
  88. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +5 -0
  89. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +5 -0
  90. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +5 -0
  91. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +5 -0
  92. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +5 -0
  93. package/lib/DotProvider/utils/constants.js +4 -2
  94. package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +17 -2
  95. package/lib/DotProvider/utils/themeColorAssetsConfig.js +77 -2
  96. package/lib/lookup/Lookup/Lookup.js +4 -6
  97. package/lib/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
  98. package/lib/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
  99. package/lib/lookup/Lookup/props/propTypes.js +1 -8
  100. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -13
  101. package/lib/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +2 -86
  102. package/lib/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
  103. package/lib/lookup/header/ModuleHeader/props/propTypes.js +0 -6
  104. package/lib/version2/lookup/AlertHeader/AlertHeader.js +8 -19
  105. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +2 -121
  106. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
  107. package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +2 -4
  108. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
  109. package/lib/version2/lookup/AlertHeader/props/propTypes.js +0 -10
  110. package/package.json +8 -8
package/README.md CHANGED
@@ -2,15 +2,10 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
-
6
5
  # 1.9.8
7
6
 
8
- - **Lookup**
9
- - `freezeLayerProps` supported under `customProps` prop
10
- - **ModuleHeader**
11
- - `isDraggable`, `customClass` - Props supported
12
- - **version2/AlertHeader**
13
- - `isDraggable`, `customClass`, `renderCustomIcon`, `renderSecondaryContent`, `renderRightActions` - Props supported
7
+ - **DotProvider** - Variables package handled and separated the component & variable import files
8
+ - **Dependency**: @zohodesk/variables@1.3.0 , @zohodesk/components@1.6.6
14
9
 
15
10
  # 1.9.7
16
11
 
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  import React from 'react';
2
4
  import { defaultProps } from "./props/defaultProps";
3
5
  import { propTypes } from "./props/propTypes";
@@ -7,13 +9,16 @@ import Button from '@zohodesk/components/es/Button/Button';
7
9
  import { Container, Box } from '@zohodesk/components/es/Layout';
8
10
  import ResponsiveDropBox from '@zohodesk/components/es/ResponsiveDropBox/ResponsiveDropBox';
9
11
  import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
12
+ import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
10
13
  import style from "./ActionButton.module.css";
11
14
  import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
12
15
  export class ActionButton extends React.Component {
13
16
  constructor(props) {
14
17
  super(props);
18
+ this.getElementId = getUniqueId(this);
15
19
  this.handleTogglePopup = this.handleTogglePopup.bind(this);
16
20
  this.handlePopupOpen = this.handlePopupOpen.bind(this);
21
+ this.popupId = this.getElementId();
17
22
  }
18
23
 
19
24
  handlePopupOpen(e) {
@@ -64,8 +69,12 @@ export class ActionButton extends React.Component {
64
69
  isAbsolutePositioningNeeded,
65
70
  isRestrictScroll,
66
71
  positionsOffset,
67
- targetOffset
72
+ targetOffset,
73
+ a11yAttributes
68
74
  } = this.props;
75
+ const {
76
+ splitButton: a11yAttributes_splitButton
77
+ } = a11yAttributes;
69
78
  return /*#__PURE__*/React.createElement(Container, {
70
79
  alignBox: "row",
71
80
  isCover: false,
@@ -92,8 +101,7 @@ export class ActionButton extends React.Component {
92
101
  dataId: dataId,
93
102
  className: `${btnStyle.buttonReset} ${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} ${innerClassName} `,
94
103
  "data-title": dataTitle,
95
- tagName: "button",
96
- tabIndex: "0"
104
+ tagName: "button"
97
105
  }, /*#__PURE__*/React.createElement(Container, {
98
106
  align: "both"
99
107
  }, /*#__PURE__*/React.createElement(Box, {
@@ -113,22 +121,23 @@ export class ActionButton extends React.Component {
113
121
  }, text) : null)), subText ? /*#__PURE__*/React.createElement(Box, {
114
122
  "data-title": removeChildrenTooltip ? null : subText,
115
123
  className: style.subTxt
116
- }, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
124
+ }, subText) : null)), children ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _extends({}, a11yAttributes_splitButton, {
117
125
  onClick: onClick && !onHover ? this.handleTogglePopup : this.handlePopupOpen,
118
126
  onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
119
127
  onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
120
128
  className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
121
129
  dataId: `${dataId}_arrowButton`,
122
- tabIndex: "0",
123
130
  tagName: "button",
124
- dataSelectorId: `${dataSelectorId}_arrowButton`
125
- }, /*#__PURE__*/React.createElement(Container, {
131
+ dataSelectorId: `${dataSelectorId}_arrowButton`,
132
+ "aria-expanded": isPopupOpen,
133
+ "aria-controls": this.popupId
134
+ }), /*#__PURE__*/React.createElement(Container, {
126
135
  align: "both"
127
136
  }, /*#__PURE__*/React.createElement(Icon, {
128
137
  name: "ZD-down",
129
138
  size: "6",
130
139
  iconClass: style.arrow
131
- })), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveDropBox, {
140
+ }))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveDropBox, {
132
141
  size: "small",
133
142
  isActive: isPopupOpen,
134
143
  boxPosition: position,
@@ -146,7 +155,8 @@ export class ActionButton extends React.Component {
146
155
  isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
147
156
  isRestrictScroll: isRestrictScroll,
148
157
  positionsOffset: positionsOffset,
149
- targetOffset: targetOffset
158
+ targetOffset: targetOffset,
159
+ htmlId: this.popupId
150
160
  }, /*#__PURE__*/React.createElement(Box, {
151
161
  flexible: true,
152
162
  shrink: true,
@@ -15,5 +15,6 @@ export const defaultProps = {
15
15
  removeChildrenTooltip: false,
16
16
  innerClassName: '',
17
17
  isAbsolutePositioningNeeded: true,
18
- isRestrictScroll: false
18
+ isRestrictScroll: false,
19
+ a11yAttributes: {}
19
20
  };
@@ -33,5 +33,8 @@ export const propTypes = {
33
33
  isAbsolutePositioningNeeded: PropTypes.bool,
34
34
  isRestrictScroll: PropTypes.bool,
35
35
  positionsOffset: PropTypes.object,
36
- targetOffset: PropTypes.object
36
+ targetOffset: PropTypes.object,
37
+ a11yAttributes: PropTypes.shape({
38
+ splitButton: PropTypes.object
39
+ })
37
40
  };
@@ -1,8 +1,8 @@
1
1
  import { useLayoutEffect } from 'react';
2
2
  import useDownloadAssetsAndSetAttr from "./useDownloadAssetsAndSetAttr";
3
- import '@zohodesk/components/assets/Contrast/lightContrastLightness.module.css';
4
- import '@zohodesk/components/assets/Contrast/darkContrastLightness.module.css';
5
- import '@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.css';
3
+ import '@zohodesk/variables/assets/Contrast/lightContrastLightness.module.css';
4
+ import '@zohodesk/variables/assets/Contrast/darkContrastLightness.module.css';
5
+ import '@zohodesk/variables/assets/Contrast/pureDarkContrastLightness.module.css';
6
6
  import '@zohodesk/variables/assets/colorVariables.module.css';
7
7
  import '@zohodesk/variables/assets/dotVariables.module.css';
8
8
  import '@zohodesk/components/es/common/basic.module.css';
@@ -0,0 +1 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/mode/globalTokens_DarkMode.module.css';
@@ -0,0 +1 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/mode/globalTokens_LightMode.module.css';
@@ -0,0 +1 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/mode/globalTokens_PureDarkMode.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css';
@@ -1,3 +1 @@
1
- import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css';
2
- import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css';
3
1
  import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/themes/blue/blue_ctaTokens_DarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/dark/themes/blue/blue_ctaTokens_DarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/themes/blue/blue_ctaTokens_LightTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/light/themes/blue/blue_ctaTokens_LightModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/blue/blue_ctaTokens_PureDarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/blue/blue_ctaTokens_PureDarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/themes/green/green_ctaTokens_DarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/dark/themes/green/green_ctaTokens_DarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/themes/green/green_ctaTokens_LightTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/light/themes/green/green_ctaTokens_LightModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/green/green_ctaTokens_PureDarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/green/green_ctaTokens_PureDarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/themes/orange/orange_ctaTokens_DarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/dark/themes/orange/orange_ctaTokens_DarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/themes/orange/orange_ctaTokens_LightTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/light/themes/orange/orange_ctaTokens_LightModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/orange/orange_ctaTokens_PureDarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/orange/orange_ctaTokens_PureDarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/themes/red/red_ctaTokens_DarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/dark/themes/red/red_ctaTokens_DarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/themes/red/red_ctaTokens_LightTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/light/themes/red/red_ctaTokens_LightModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/red/red_ctaTokens_PureDarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/red/red_ctaTokens_PureDarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/dark/themes/yellow/yellow_ctaTokens_DarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/dark/themes/yellow/yellow_ctaTokens_DarkModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/light/themes/yellow/yellow_ctaTokens_LightTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/light/themes/yellow/yellow_ctaTokens_LightModifyCategory.module.css';
@@ -0,0 +1,2 @@
1
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/yellow/yellow_ctaTokens_PureDarkTheme.module.css';
2
+ import '@zohodesk/variables/assets/Appearance/pureDark/themes/yellow/yellow_ctaTokens_PureDarkModifyCategory.module.css';
@@ -1,3 +1,4 @@
1
+ export const LIBRARY_VARIABLES = 'variables';
1
2
  export const LIBRARY_COMPONENT = 'component';
2
3
  export const LIBRARY_DOT = 'dot';
3
4
  export const LIBRARY_SVG = 'svg';
@@ -9,6 +10,6 @@ export const THEME_COLOR_GREEN = 'green';
9
10
  export const THEME_COLOR_ORANGE = 'orange';
10
11
  export const THEME_COLOR_RED = 'red';
11
12
  export const THEME_COLOR_YELLOW = 'yellow';
12
- export const LIBRARIES = [LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
13
+ export const LIBRARIES = [LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
13
14
  export const THEME_APPEARANCES = [THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_DARK, THEME_APPEARANCE_PURE_DARK];
14
15
  export const THEME_COLORS = [THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW];
@@ -1,5 +1,14 @@
1
- import { LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK } from "./constants";
1
+ import { LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK } from "./constants";
2
2
  export const themeAppearanceImports = {
3
+ Lib_LightMode_Variables: () => import(
4
+ /* webpackChunkName: 'Lib_LightMode_Variables' */
5
+ "../libraryChunks/appearance/variables/Light_Variables"),
6
+ Lib_DarkMode_Variables: () => import(
7
+ /* webpackChunkName: 'Lib_DarkMode_Variables' */
8
+ "../libraryChunks/appearance/variables/Dark_Variables"),
9
+ Lib_PureDarkMode_Variables: () => import(
10
+ /* webpackChunkName: 'Lib_PureDarkMode_Variables' */
11
+ "../libraryChunks/appearance/variables/PureDark_Variables"),
3
12
  Lib_LightMode_Component: () => import(
4
13
  /* webpackChunkName: 'Lib_LightMode_Component' */
5
14
  "../libraryChunks/appearance/component/Light_Component"),
@@ -29,6 +38,11 @@ export const themeAppearanceImports = {
29
38
  '@zohodesk/svg/assets/Appearance/pureDark/mode/SVG_PureDarkMode.module.css')
30
39
  };
31
40
  export const themeAppearanceMapping = {
41
+ [LIBRARY_VARIABLES]: {
42
+ [THEME_APPEARANCE_LIGHT]: 'Lib_LightMode_Variables',
43
+ [THEME_APPEARANCE_DARK]: 'Lib_DarkMode_Variables',
44
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_PureDarkMode_Variables'
45
+ },
32
46
  [LIBRARY_COMPONENT]: {
33
47
  [THEME_APPEARANCE_LIGHT]: 'Lib_LightMode_Component',
34
48
  [THEME_APPEARANCE_DARK]: 'Lib_DarkMode_Component',
@@ -1,5 +1,50 @@
1
- import { LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK, THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW } from "./constants";
1
+ import { LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK, THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW } from "./constants";
2
2
  export const themeColorImports = {
3
+ Lib_Blue_Light_Variables: () => import(
4
+ /* webpackChunkName: 'Lib_Blue_Light_Variables' */
5
+ "../libraryChunks/themes/variables/blue/Blue_Light_Variables"),
6
+ Lib_Blue_Dark_Variables: () => import(
7
+ /* webpackChunkName: 'Lib_Blue_Dark_Variables' */
8
+ "../libraryChunks/themes/variables/blue/Blue_Dark_Variables"),
9
+ Lib_Blue_PureDark_Variables: () => import(
10
+ /* webpackChunkName: 'Lib_Blue_PureDark_Variables' */
11
+ "../libraryChunks/themes/variables/blue/Blue_PureDark_Variables"),
12
+ Lib_Green_Light_Variables: () => import(
13
+ /* webpackChunkName: 'Lib_Green_Light_Variables' */
14
+ "../libraryChunks/themes/variables/green/Green_Light_Variables"),
15
+ Lib_Green_Dark_Variables: () => import(
16
+ /* webpackChunkName: 'Lib_Green_Dark_Variables' */
17
+ "../libraryChunks/themes/variables/green/Green_Dark_Variables"),
18
+ Lib_Green_PureDark_Variables: () => import(
19
+ /* webpackChunkName: 'Lib_Green_PureDark_Variables' */
20
+ "../libraryChunks/themes/variables/green/Green_PureDark_Variables"),
21
+ Lib_Orange_Light_Variables: () => import(
22
+ /* webpackChunkName: 'Lib_Orange_Light_Variables' */
23
+ "../libraryChunks/themes/variables/orange/Orange_Light_Variables"),
24
+ Lib_Orange_Dark_Variables: () => import(
25
+ /* webpackChunkName: 'Lib_Orange_Dark_Variables' */
26
+ "../libraryChunks/themes/variables/orange/Orange_Dark_Variables"),
27
+ Lib_Orange_PureDark_Variables: () => import(
28
+ /* webpackChunkName: 'Lib_Orange_PureDark_Variables' */
29
+ "../libraryChunks/themes/variables/orange/Orange_PureDark_Variables"),
30
+ Lib_Red_Light_Variables: () => import(
31
+ /* webpackChunkName: 'Lib_Red_Light_Variables' */
32
+ "../libraryChunks/themes/variables/red/Red_Light_Variables"),
33
+ Lib_Red_Dark_Variables: () => import(
34
+ /* webpackChunkName: 'Lib_Red_Dark_Variables' */
35
+ "../libraryChunks/themes/variables/red/Red_Dark_Variables"),
36
+ Lib_Red_PureDark_Variables: () => import(
37
+ /* webpackChunkName: 'Lib_Red_PureDark_Variables' */
38
+ "../libraryChunks/themes/variables/red/Red_PureDark_Variables"),
39
+ Lib_Yellow_Light_Variables: () => import(
40
+ /* webpackChunkName: 'Lib_Yellow_Light_Variables' */
41
+ "../libraryChunks/themes/variables/yellow/Yellow_Light_Variables"),
42
+ Lib_Yellow_Dark_Variables: () => import(
43
+ /* webpackChunkName: 'Lib_Yellow_Dark_Variables' */
44
+ "../libraryChunks/themes/variables/yellow/Yellow_Dark_Variables"),
45
+ Lib_Yellow_PureDark_Variables: () => import(
46
+ /* webpackChunkName: 'Lib_Yellow_PureDark_Variables' */
47
+ "../libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables"),
3
48
  Lib_Blue_Light_Component: () => import(
4
49
  /* webpackChunkName: 'Lib_Blue_Light_Component' */
5
50
  "../libraryChunks/themes/component/blue/Blue_Light_Component"),
@@ -137,6 +182,33 @@ export const themeColorImports = {
137
182
  "../libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG")
138
183
  };
139
184
  export const themeColorMapping = {
185
+ [LIBRARY_VARIABLES]: {
186
+ [THEME_COLOR_BLUE]: {
187
+ [THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Variables',
188
+ [THEME_APPEARANCE_DARK]: 'Lib_Blue_Dark_Variables',
189
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_Blue_PureDark_Variables'
190
+ },
191
+ [THEME_COLOR_GREEN]: {
192
+ [THEME_APPEARANCE_LIGHT]: 'Lib_Green_Light_Variables',
193
+ [THEME_APPEARANCE_DARK]: 'Lib_Green_Dark_Variables',
194
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_Green_PureDark_Variables'
195
+ },
196
+ [THEME_COLOR_ORANGE]: {
197
+ [THEME_APPEARANCE_LIGHT]: 'Lib_Orange_Light_Variables',
198
+ [THEME_APPEARANCE_DARK]: 'Lib_Orange_Dark_Variables',
199
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_Orange_PureDark_Variables'
200
+ },
201
+ [THEME_COLOR_RED]: {
202
+ [THEME_APPEARANCE_LIGHT]: 'Lib_Red_Light_Variables',
203
+ [THEME_APPEARANCE_DARK]: 'Lib_Red_Dark_Variables',
204
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_Red_PureDark_Variables'
205
+ },
206
+ [THEME_COLOR_YELLOW]: {
207
+ [THEME_APPEARANCE_LIGHT]: 'Lib_Yellow_Light_Variables',
208
+ [THEME_APPEARANCE_DARK]: 'Lib_Yellow_Dark_Variables',
209
+ [THEME_APPEARANCE_PURE_DARK]: 'Lib_Yellow_PureDark_Variables'
210
+ }
211
+ },
140
212
  [LIBRARY_COMPONENT]: {
141
213
  [THEME_COLOR_BLUE]: {
142
214
  [THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Component',
@@ -70,8 +70,7 @@ export default class Lookup extends Component {
70
70
  ...a11yAttributes
71
71
  } = a11y;
72
72
  const {
73
- focusScopeProps = {},
74
- freezeLayerProps
73
+ focusScopeProps = {}
75
74
  } = customProps;
76
75
  const {
77
76
  needAutoFocus = true,
@@ -98,17 +97,16 @@ export default class Lookup extends Component {
98
97
  isCover: false,
99
98
  className: `${isMinHeight ? style.wrapper : style.coverwrap} ${style.containerWidth} ${containerClass}`
100
99
  }, children));
101
- return /*#__PURE__*/React.createElement(FreezeLayer, _extends({
100
+ return /*#__PURE__*/React.createElement(FreezeLayer, {
102
101
  align: "horizontal",
103
102
  animationName: "fade",
104
- palette: "snow"
105
- }, freezeLayerProps, {
106
103
  childAnimationName: childAnimationName,
107
104
  isActive: isActive,
105
+ palette: "snow",
108
106
  forwardRef: forwardRef,
109
107
  onClick: onClick,
110
108
  customClass: customClass
111
- }), /*#__PURE__*/React.createElement(Container, {
109
+ }, /*#__PURE__*/React.createElement(Container, {
112
110
  alignBox: "row",
113
111
  className: style.container,
114
112
  dataId: "fldValue"
@@ -1,37 +1,14 @@
1
1
  import React from 'react';
2
- import { cleanup, render } from '@testing-library/react';
2
+ import { render } from '@testing-library/react';
3
3
  import Lookup from "../Lookup";
4
- const SIZE_VALUES = ['small', 'xmedium', 'large', 'xlarge', 'full'];
5
- const CHILD_ANIMATION_NAME_VALUES = ['expand'];
6
- afterEach(() => {
7
- cleanup();
8
- });
9
- describe('Lookup snapshot - ', () => {
10
- test('Render with default props', () => {
4
+ describe('Lookup', () => {
5
+ test('rendering the defult props', () => {
11
6
  const {
12
7
  asFragment
13
8
  } = render( /*#__PURE__*/React.createElement(Lookup, null));
14
9
  expect(asFragment()).toMatchSnapshot();
15
10
  });
16
- test.each(SIZE_VALUES)('Render with size=%s', size => {
17
- const {
18
- asFragment
19
- } = render( /*#__PURE__*/React.createElement(Lookup, {
20
- isActive: true,
21
- size: size
22
- }));
23
- expect(asFragment()).toMatchSnapshot();
24
- });
25
- test.each(CHILD_ANIMATION_NAME_VALUES)('Render with childAnimationName=%s', childAnimationName => {
26
- const {
27
- asFragment
28
- } = render( /*#__PURE__*/React.createElement(Lookup, {
29
- isActive: true,
30
- childAnimationName: childAnimationName
31
- }));
32
- expect(asFragment()).toMatchSnapshot();
33
- });
34
- test('Render with isActive=true', () => {
11
+ test('rendering isActive is true', () => {
35
12
  const {
36
13
  asFragment
37
14
  } = render( /*#__PURE__*/React.createElement(Lookup, {
@@ -39,78 +16,4 @@ describe('Lookup snapshot - ', () => {
39
16
  }));
40
17
  expect(asFragment()).toMatchSnapshot();
41
18
  });
42
- test('Render with isMinHeight=true', () => {
43
- const {
44
- asFragment
45
- } = render( /*#__PURE__*/React.createElement(Lookup, {
46
- isActive: true,
47
- isMinHeight: true
48
- }));
49
- expect(asFragment()).toMatchSnapshot();
50
- });
51
- test('Render with children', () => {
52
- const {
53
- asFragment
54
- } = render( /*#__PURE__*/React.createElement(Lookup, {
55
- isActive: true
56
- }, /*#__PURE__*/React.createElement("div", null, "Lookup child content")));
57
- expect(asFragment()).toMatchSnapshot();
58
- });
59
- test('Render with custom classes', () => {
60
- const {
61
- asFragment
62
- } = render( /*#__PURE__*/React.createElement(Lookup, {
63
- isActive: true,
64
- customClass: "lookup-freeze-layer",
65
- containerClass: "lookup-container",
66
- lookupClass: "lookup-box"
67
- }));
68
- expect(asFragment()).toMatchSnapshot();
69
- });
70
- test('Render with customProps', () => {
71
- const {
72
- asFragment
73
- } = render( /*#__PURE__*/React.createElement(Lookup, {
74
- isActive: true,
75
- customProps: {
76
- freezeLayerProps: {
77
- palette: 'plain'
78
- }
79
- }
80
- }));
81
- expect(asFragment()).toMatchSnapshot();
82
- });
83
- test('Render with dataId', () => {
84
- const {
85
- asFragment
86
- } = render( /*#__PURE__*/React.createElement(Lookup, {
87
- isActive: true,
88
- dataId: "lookup-data-id"
89
- }));
90
- expect(asFragment()).toMatchSnapshot();
91
- });
92
- test('Render with htmlId', () => {
93
- const {
94
- asFragment
95
- } = render( /*#__PURE__*/React.createElement(Lookup, {
96
- isActive: true,
97
- htmlId: "lookup-html-id"
98
- }));
99
- expect(asFragment()).toMatchSnapshot();
100
- });
101
- test('Render with a11y attributes', () => {
102
- const {
103
- asFragment
104
- } = render( /*#__PURE__*/React.createElement(Lookup, {
105
- isActive: true,
106
- a11y: {
107
- role: 'region',
108
- ariaLabelledby: 'lookup-title',
109
- ariaDescribedby: 'lookup-description',
110
- ariaLabel: 'Lookup Dialog',
111
- ariaModal: true
112
- }
113
- }));
114
- expect(asFragment()).toMatchSnapshot();
115
- });
116
19
  });