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

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 +10 -0
  2. package/es/DotProvider/hooks/useDotProvider.js +3 -3
  3. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +2 -0
  4. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +2 -0
  5. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +2 -0
  6. package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +2 -0
  7. package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +2 -0
  8. package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +2 -0
  9. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +2 -0
  10. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +2 -0
  11. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +2 -0
  12. package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +2 -0
  13. package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +2 -0
  14. package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +2 -0
  15. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +2 -0
  16. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +2 -0
  17. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +2 -0
  18. package/es/DotProvider/utils/constants.js +1 -2
  19. package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +1 -15
  20. package/es/DotProvider/utils/themeColorAssetsConfig.js +1 -73
  21. package/es/list/Comment/Comment.module.css +29 -29
  22. package/es/list/Dot/Dot.module.css +15 -15
  23. package/es/list/ListLayout/ListLayout.module.css +79 -79
  24. package/es/lookup/Lookup/Lookup.js +6 -4
  25. package/es/lookup/Lookup/__tests__/Lookup.spec.js +101 -4
  26. package/es/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +223 -2
  27. package/es/lookup/Lookup/props/propTypes.js +6 -1
  28. package/es/lookup/header/ModuleHeader/ModuleHeader.js +12 -5
  29. package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +87 -3
  30. package/es/lookup/header/ModuleHeader/props/defaultProps.js +2 -0
  31. package/es/lookup/header/ModuleHeader/props/propTypes.js +6 -0
  32. package/es/version2/lookup/AlertHeader/AlertHeader.js +19 -9
  33. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +122 -3
  34. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1728 -3
  35. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +6 -1
  36. package/es/version2/lookup/AlertHeader/props/defaultProps.js +2 -0
  37. package/es/version2/lookup/AlertHeader/props/propTypes.js +10 -0
  38. package/lib/DotProvider/hooks/useDotProvider.js +3 -3
  39. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +4 -0
  40. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +4 -0
  41. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +4 -0
  42. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +4 -0
  43. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +4 -0
  44. package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +4 -0
  45. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +4 -0
  46. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +4 -0
  47. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +4 -0
  48. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +4 -0
  49. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +4 -0
  50. package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +4 -0
  51. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +4 -0
  52. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +4 -0
  53. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +4 -0
  54. package/lib/DotProvider/utils/constants.js +2 -4
  55. package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +2 -17
  56. package/lib/DotProvider/utils/themeColorAssetsConfig.js +2 -77
  57. package/lib/list/Comment/Comment.module.css +29 -29
  58. package/lib/list/Dot/Dot.module.css +15 -15
  59. package/lib/list/ListLayout/ListLayout.module.css +79 -79
  60. package/lib/lookup/Lookup/Lookup.js +6 -4
  61. package/lib/lookup/Lookup/__tests__/Lookup.spec.js +101 -4
  62. package/lib/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +223 -2
  63. package/lib/lookup/Lookup/props/propTypes.js +8 -1
  64. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +13 -5
  65. package/lib/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +86 -2
  66. package/lib/lookup/header/ModuleHeader/props/defaultProps.js +2 -0
  67. package/lib/lookup/header/ModuleHeader/props/propTypes.js +6 -0
  68. package/lib/version2/lookup/AlertHeader/AlertHeader.js +19 -8
  69. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +121 -2
  70. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1728 -3
  71. package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -2
  72. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +2 -0
  73. package/lib/version2/lookup/AlertHeader/props/propTypes.js +10 -0
  74. package/package.json +6 -6
  75. package/es/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +0 -1
  76. package/es/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +0 -1
  77. package/es/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +0 -1
  78. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +0 -2
  79. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +0 -2
  80. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +0 -2
  81. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +0 -2
  82. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +0 -2
  83. package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +0 -2
  84. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +0 -2
  85. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +0 -2
  86. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +0 -2
  87. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +0 -2
  88. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +0 -2
  89. package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +0 -2
  90. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +0 -2
  91. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +0 -2
  92. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +0 -2
  93. package/lib/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +0 -3
  94. package/lib/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +0 -3
  95. package/lib/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +0 -3
  96. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +0 -5
  97. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +0 -5
  98. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +0 -5
  99. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +0 -5
  100. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +0 -5
  101. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +0 -5
  102. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +0 -5
  103. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +0 -5
  104. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +0 -5
  105. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +0 -5
  106. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +0 -5
  107. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +0 -5
  108. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +0 -5
  109. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +0 -5
  110. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +0 -5
package/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+
6
+ # 1.9.8
7
+
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
14
+
5
15
  # 1.9.7
6
16
 
7
17
  - **Upload** => upload_overlay_bg color contrast fixed
@@ -1,8 +1,8 @@
1
1
  import { useLayoutEffect } from 'react';
2
2
  import useDownloadAssetsAndSetAttr from "./useDownloadAssetsAndSetAttr";
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';
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';
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';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css';
@@ -1 +1,3 @@
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';
1
3
  import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css';
@@ -1,4 +1,3 @@
1
- export const LIBRARY_VARIABLES = 'variables';
2
1
  export const LIBRARY_COMPONENT = 'component';
3
2
  export const LIBRARY_DOT = 'dot';
4
3
  export const LIBRARY_SVG = 'svg';
@@ -10,6 +9,6 @@ export const THEME_COLOR_GREEN = 'green';
10
9
  export const THEME_COLOR_ORANGE = 'orange';
11
10
  export const THEME_COLOR_RED = 'red';
12
11
  export const THEME_COLOR_YELLOW = 'yellow';
13
- export const LIBRARIES = [LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
12
+ export const LIBRARIES = [LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
14
13
  export const THEME_APPEARANCES = [THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_DARK, THEME_APPEARANCE_PURE_DARK];
15
14
  export const THEME_COLORS = [THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW];
@@ -1,14 +1,5 @@
1
- import { LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK } from "./constants";
1
+ import { 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"),
12
3
  Lib_LightMode_Component: () => import(
13
4
  /* webpackChunkName: 'Lib_LightMode_Component' */
14
5
  "../libraryChunks/appearance/component/Light_Component"),
@@ -38,11 +29,6 @@ export const themeAppearanceImports = {
38
29
  '@zohodesk/svg/assets/Appearance/pureDark/mode/SVG_PureDarkMode.module.css')
39
30
  };
40
31
  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
- },
46
32
  [LIBRARY_COMPONENT]: {
47
33
  [THEME_APPEARANCE_LIGHT]: 'Lib_LightMode_Component',
48
34
  [THEME_APPEARANCE_DARK]: 'Lib_DarkMode_Component',
@@ -1,50 +1,5 @@
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";
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";
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"),
48
3
  Lib_Blue_Light_Component: () => import(
49
4
  /* webpackChunkName: 'Lib_Blue_Light_Component' */
50
5
  "../libraryChunks/themes/component/blue/Blue_Light_Component"),
@@ -182,33 +137,6 @@ export const themeColorImports = {
182
137
  "../libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG")
183
138
  };
184
139
  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
- },
212
140
  [LIBRARY_COMPONENT]: {
213
141
  [THEME_COLOR_BLUE]: {
214
142
  [THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Component',
@@ -1,29 +1,29 @@
1
- .varClass {
2
- --icon_color: var(--zdt_comment_iconText);
3
- }
4
- .container {
5
- composes: varClass;
6
- composes: inlineBlockMiddle from '../listCommon.module.css';
7
- position: relative;
8
- color: var(--icon_color);
9
- padding: 0 var(--zd_size2) ;
10
- cursor: pointer;
11
- }
12
- .container:hover {
13
- --icon_color: var(--zdt_comment_hover_iconText);
14
- }
15
- .count {
16
- position: absolute;
17
- top: var(--zd_size1) ;
18
- font-size: var(--zd_font_size9) ;
19
- text-align: center;
20
- }
21
- [dir=ltr] .count {
22
- left: 100% ;
23
- }
24
- [dir=rtl] .count {
25
- right: 100% ;
26
- }
27
- .commentIcon {
28
- font-size: var(--zd_font_size13) ;
29
- }
1
+ .varClass {
2
+ --icon_color: var(--zdt_comment_iconText);
3
+ }
4
+ .container {
5
+ composes: varClass;
6
+ composes: inlineBlockMiddle from '../listCommon.module.css';
7
+ position: relative;
8
+ color: var(--icon_color);
9
+ padding: 0 var(--zd_size2) ;
10
+ cursor: pointer;
11
+ }
12
+ .container:hover {
13
+ --icon_color: var(--zdt_comment_hover_iconText);
14
+ }
15
+ .count {
16
+ position: absolute;
17
+ top: var(--zd_size1) ;
18
+ font-size: var(--zd_font_size9) ;
19
+ text-align: center;
20
+ }
21
+ [dir=ltr] .count {
22
+ left: 100% ;
23
+ }
24
+ [dir=rtl] .count {
25
+ right: 100% ;
26
+ }
27
+ .commentIcon {
28
+ font-size: var(--zd_font_size13) ;
29
+ }
@@ -1,15 +1,15 @@
1
- .varClass {
2
- --dotColor: var(--zdt_dot_text)
3
- }
4
- .dot {
5
- composes: varClass;
6
- font-size: var(--zd_font_size16) ;
7
- color: var(--dotColor);
8
- transform: perspective(1px);
9
- }
10
- .list {
11
- margin: 0 var(--zd_size6) ;
12
- }
13
- .minimalList {
14
- margin: 0 var(--zd_size6) ;
15
- }
1
+ .varClass {
2
+ --dotColor: var(--zdt_dot_text)
3
+ }
4
+ .dot {
5
+ composes: varClass;
6
+ font-size: var(--zd_font_size16) ;
7
+ color: var(--dotColor);
8
+ transform: perspective(1px);
9
+ }
10
+ .list {
11
+ margin: 0 var(--zd_size6) ;
12
+ }
13
+ .minimalList {
14
+ margin: 0 var(--zd_size6) ;
15
+ }
@@ -1,80 +1,80 @@
1
- .varClass {
2
- --listBorder: var(--zdt_listLayout_border)
3
- }
4
-
5
- .container {
6
- position: relative;
7
- composes: varClass;
8
- }
9
-
10
- .listHover:hover, .hoveredStyle, .listHover:focus-within, .hoveredStyle:focus-within {
11
- background-color: var(--zdt_listLayout_hover_bg);
12
- }
13
-
14
- .active, .active:hover {
15
- background-color: var(--zdt_listLayout_active_bg);
16
- }
17
-
18
- .cursorPointer {
19
- cursor: pointer
20
- }
21
-
22
- /* View */
23
- .classic .innerContainer {
24
- min-height: var(--zd_size70) ;
25
- padding: var(--zd_size13) 0 ;
26
- }
27
-
28
- .compact .innerContainer {
29
- min-height: var(--zd_size41) ;
30
- padding: var(--zd_size5) 0 ;
31
- }
32
-
33
- .superCompact .innerContainer {
34
- min-height: var(--zd_size35) ;
35
- padding: var(--zd_size2) 0 ;
36
- }
37
-
38
- .compact .innerContainer,
39
- .classic .innerContainer,
40
- .superCompact .innerContainer {
41
- /* css:theme-validation:ignore */
42
- }
43
-
44
- .compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
45
- border-bottom: 1px dotted var(--listBorder);
46
- }
47
-
48
- [dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
49
- border-left: var(--zd_size2) solid transparent;
50
- }
51
-
52
- [dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
53
- border-right: var(--zd_size2) solid transparent;
54
- }
55
-
56
- [dir=ltr] .keyboardActive, [dir=ltr] .active {
57
- border-top-left-radius: var(--zd_size5);
58
- border-bottom-left-radius: var(--zd_size5);
59
- }
60
-
61
- [dir=rtl] .keyboardActive, [dir=rtl] .active {
62
- border-top-right-radius: var(--zd_size5);
63
- border-bottom-right-radius: var(--zd_size5);
64
- }
65
-
66
- [dir=ltr] .keyboardActive {
67
- border-left-color: var(--zdt_listLayout_keyboard_active_border);
68
- }
69
-
70
- [dir=rtl] .keyboardActive {
71
- border-right-color: var(--zdt_listLayout_keyboard_active_border);
72
- }
73
-
74
- [dir=ltr] .active {
75
- border-left-color: var(--zdt_listLayout_active_border);
76
- }
77
-
78
- [dir=rtl] .active {
79
- border-right-color: var(--zdt_listLayout_active_border);
1
+ .varClass {
2
+ --listBorder: var(--zdt_listLayout_border)
3
+ }
4
+
5
+ .container {
6
+ position: relative;
7
+ composes: varClass;
8
+ }
9
+
10
+ .listHover:hover, .hoveredStyle, .listHover:focus-within, .hoveredStyle:focus-within {
11
+ background-color: var(--zdt_listLayout_hover_bg);
12
+ }
13
+
14
+ .active, .active:hover {
15
+ background-color: var(--zdt_listLayout_active_bg);
16
+ }
17
+
18
+ .cursorPointer {
19
+ cursor: pointer
20
+ }
21
+
22
+ /* View */
23
+ .classic .innerContainer {
24
+ min-height: var(--zd_size70) ;
25
+ padding: var(--zd_size13) 0 ;
26
+ }
27
+
28
+ .compact .innerContainer {
29
+ min-height: var(--zd_size41) ;
30
+ padding: var(--zd_size5) 0 ;
31
+ }
32
+
33
+ .superCompact .innerContainer {
34
+ min-height: var(--zd_size35) ;
35
+ padding: var(--zd_size2) 0 ;
36
+ }
37
+
38
+ .compact .innerContainer,
39
+ .classic .innerContainer,
40
+ .superCompact .innerContainer {
41
+ /* css:theme-validation:ignore */
42
+ }
43
+
44
+ .compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
45
+ border-bottom: 1px dotted var(--listBorder);
46
+ }
47
+
48
+ [dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
49
+ border-left: var(--zd_size2) solid transparent;
50
+ }
51
+
52
+ [dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
53
+ border-right: var(--zd_size2) solid transparent;
54
+ }
55
+
56
+ [dir=ltr] .keyboardActive, [dir=ltr] .active {
57
+ border-top-left-radius: var(--zd_size5);
58
+ border-bottom-left-radius: var(--zd_size5);
59
+ }
60
+
61
+ [dir=rtl] .keyboardActive, [dir=rtl] .active {
62
+ border-top-right-radius: var(--zd_size5);
63
+ border-bottom-right-radius: var(--zd_size5);
64
+ }
65
+
66
+ [dir=ltr] .keyboardActive {
67
+ border-left-color: var(--zdt_listLayout_keyboard_active_border);
68
+ }
69
+
70
+ [dir=rtl] .keyboardActive {
71
+ border-right-color: var(--zdt_listLayout_keyboard_active_border);
72
+ }
73
+
74
+ [dir=ltr] .active {
75
+ border-left-color: var(--zdt_listLayout_active_border);
76
+ }
77
+
78
+ [dir=rtl] .active {
79
+ border-right-color: var(--zdt_listLayout_active_border);
80
80
  }
@@ -70,7 +70,8 @@ export default class Lookup extends Component {
70
70
  ...a11yAttributes
71
71
  } = a11y;
72
72
  const {
73
- focusScopeProps = {}
73
+ focusScopeProps = {},
74
+ freezeLayerProps
74
75
  } = customProps;
75
76
  const {
76
77
  needAutoFocus = true,
@@ -97,16 +98,17 @@ export default class Lookup extends Component {
97
98
  isCover: false,
98
99
  className: `${isMinHeight ? style.wrapper : style.coverwrap} ${style.containerWidth} ${containerClass}`
99
100
  }, children));
100
- return /*#__PURE__*/React.createElement(FreezeLayer, {
101
+ return /*#__PURE__*/React.createElement(FreezeLayer, _extends({
101
102
  align: "horizontal",
102
103
  animationName: "fade",
104
+ palette: "snow"
105
+ }, freezeLayerProps, {
103
106
  childAnimationName: childAnimationName,
104
107
  isActive: isActive,
105
- palette: "snow",
106
108
  forwardRef: forwardRef,
107
109
  onClick: onClick,
108
110
  customClass: customClass
109
- }, /*#__PURE__*/React.createElement(Container, {
111
+ }), /*#__PURE__*/React.createElement(Container, {
110
112
  alignBox: "row",
111
113
  className: style.container,
112
114
  dataId: "fldValue"
@@ -1,14 +1,37 @@
1
1
  import React from 'react';
2
- import { render } from '@testing-library/react';
2
+ import { cleanup, render } from '@testing-library/react';
3
3
  import Lookup from "../Lookup";
4
- describe('Lookup', () => {
5
- test('rendering the defult props', () => {
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', () => {
6
11
  const {
7
12
  asFragment
8
13
  } = render( /*#__PURE__*/React.createElement(Lookup, null));
9
14
  expect(asFragment()).toMatchSnapshot();
10
15
  });
11
- test('rendering isActive is true', () => {
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', () => {
12
35
  const {
13
36
  asFragment
14
37
  } = render( /*#__PURE__*/React.createElement(Lookup, {
@@ -16,4 +39,78 @@ describe('Lookup', () => {
16
39
  }));
17
40
  expect(asFragment()).toMatchSnapshot();
18
41
  });
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
+ });
19
116
  });