@zohodesk/dot 1.0.0-temp-51 → 1.0.0-temp-55

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 (89) hide show
  1. package/README.md +10 -0
  2. package/es/Appearance/dark/mode/dotDarkMode.module.css +2 -1
  3. package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  4. package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
  5. package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
  6. package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
  7. package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
  8. package/es/Appearance/default/mode/dotDefaultMode.module.css +2 -1
  9. package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  10. package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
  11. package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
  12. package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
  13. package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
  14. package/es/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  15. package/es/form/fields/CurrencyField/CurrencyField.js +2 -2
  16. package/es/form/fields/DateField/DateField.js +2 -2
  17. package/es/form/fields/Fields.module.css +7 -5
  18. package/es/form/fields/MultiSelectField/MultiSelectField.js +2 -2
  19. package/es/form/fields/RadioField/RadioField.js +2 -2
  20. package/es/form/fields/SelectField/SelectField.js +2 -2
  21. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
  22. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
  23. package/es/form/fields/TextBoxField/TextBoxField.js +2 -2
  24. package/es/form/fields/TextEditorField/TextEditorField.js +2 -2
  25. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  26. package/es/form/fields/TextareaField/TextareaField.js +2 -2
  27. package/es/form/layout/Section/Section.js +3 -7
  28. package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
  29. package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  30. package/lib/Appearance/dark/mode/dotDarkMode.module.css +2 -1
  31. package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  32. package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
  33. package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
  34. package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
  35. package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
  36. package/lib/Appearance/default/mode/dotDefaultMode.module.css +2 -1
  37. package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  38. package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
  39. package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
  40. package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
  41. package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
  42. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  43. package/lib/form/fields/CurrencyField/CurrencyField.js +2 -2
  44. package/lib/form/fields/DateField/DateField.js +2 -2
  45. package/lib/form/fields/Fields.module.css +7 -5
  46. package/lib/form/fields/MultiSelectField/MultiSelectField.js +2 -2
  47. package/lib/form/fields/RadioField/RadioField.js +2 -2
  48. package/lib/form/fields/SelectField/SelectField.js +2 -2
  49. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
  50. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
  51. package/lib/form/fields/TextBoxField/TextBoxField.js +2 -2
  52. package/lib/form/fields/TextEditorField/TextEditorField.js +2 -2
  53. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  54. package/lib/form/fields/TextareaField/TextareaField.js +2 -2
  55. package/lib/form/layout/Section/Section.js +3 -7
  56. package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
  57. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  58. package/package.json +8 -4
  59. package/preprocess/dotThemeColors.js +98 -0
  60. package/preprocess/index.js +1 -0
  61. package/preprocess/json/dotVariableJson.js +90 -0
  62. package/src/Appearance/dark/mode/dotDarkMode.module.css +2 -1
  63. package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  64. package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
  65. package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
  66. package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
  67. package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
  68. package/src/Appearance/default/mode/dotDefaultMode.module.css +2 -1
  69. package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  70. package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
  71. package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
  72. package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
  73. package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
  74. package/src/form/fields/CheckBoxField/CheckBoxField.js +7 -1
  75. package/src/form/fields/CurrencyField/CurrencyField.js +8 -2
  76. package/src/form/fields/DateField/DateField.js +8 -2
  77. package/src/form/fields/Fields.module.css +8 -5
  78. package/src/form/fields/MultiSelectField/MultiSelectField.js +8 -2
  79. package/src/form/fields/RadioField/RadioField.js +8 -2
  80. package/src/form/fields/SelectField/SelectField.js +8 -2
  81. package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
  82. package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +10 -2
  83. package/src/form/fields/TextBoxField/TextBoxField.js +8 -2
  84. package/src/form/fields/TextEditorField/TextEditorField.js +10 -2
  85. package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  86. package/src/form/fields/TextareaField/TextareaField.js +8 -2
  87. package/src/form/layout/Section/Section.js +10 -14
  88. package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
  89. package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
@@ -85,7 +85,8 @@ function DesktopNotificationUI(props) {
85
85
  _props$customClass = props.customClass,
86
86
  customClass = _props$customClass === void 0 ? {} : _props$customClass,
87
87
  _props$i18nKeys = props.i18nKeys,
88
- i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys;
88
+ i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys,
89
+ customProps = props.customProps;
89
90
  var _i18nKeys$closeTitle = i18nKeys.closeTitle,
90
91
  closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
91
92
  var containerClass = customClass.containerClass;
@@ -94,6 +95,9 @@ function DesktopNotificationUI(props) {
94
95
  _ref$buttonPalette = _ref.buttonPalette,
95
96
  buttonPalette = _ref$buttonPalette === void 0 ? 'dangerFilled' : _ref$buttonPalette;
96
97
 
98
+ var _customProps$ExtraPro = customProps.ExtraProps,
99
+ ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
100
+
97
101
  function onClickSubmit(e) {
98
102
  onSubmit && onSubmit();
99
103
  }
@@ -113,12 +117,12 @@ function DesktopNotificationUI(props) {
113
117
  style: needAutoZindex && isAnimate ? {
114
118
  zIndex: "".concat(Zindex)
115
119
  } : {}
116
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
120
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
117
121
  className: "".concat(_DesktopNotificationModule["default"].container, " ").concat(isAnimate ? animateClass : animateRemoveClass, " ").concat(_DesktopNotificationModule["default"]["".concat(size)] ? _DesktopNotificationModule["default"]["".concat(size)] : '', " ").concat(isShrinkView ? _DesktopNotificationModule["default"].globalNotify : '', " ").concat(containerClass),
118
122
  isCover: false,
119
123
  dataId: dataId,
120
124
  isInline: uiVariantTwo
121
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
125
+ }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
122
126
  type: type,
123
127
  title: title,
124
128
  variant: titleVariant,
@@ -204,7 +208,10 @@ DesktopNotification.propTypes = {
204
208
  submitText: _propTypes["default"].string,
205
209
  submitType: _propTypes["default"].oneOf(['primary', 'danger', 'success']),
206
210
  titleVariant: _propTypes["default"].oneOf(['primary', 'secondary']),
207
- type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm'])
211
+ type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
212
+ customProps: _propTypes["default"].shape({
213
+ ExtraProps: _propTypes["default"].object
214
+ })
208
215
  };
209
216
  DesktopNotification.defaultProps = {
210
217
  isMore: false,
@@ -217,7 +224,8 @@ DesktopNotification.defaultProps = {
217
224
  needIcon: true,
218
225
  titleVariant: 'primary',
219
226
  isShrinkView: false,
220
- needClose: true
227
+ needClose: true,
228
+ customProps: {}
221
229
  };
222
230
 
223
231
  if (false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-51",
3
+ "version": "1.0.0-temp-55",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -17,7 +17,8 @@
17
17
  "build:dev": "npm run clean && npm run build:es --module:mode=dev -- -w",
18
18
  "rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
19
19
  "prepare": "npm run init && npm run build && npm run build:es && npm run rtl",
20
- "init": "npm run clean",
20
+ "init": "npm run clean && npm run build:variables",
21
+ "build:variables": "node ./preprocess/index",
21
22
  "lint": "react-cli lint",
22
23
  "lintAll": "react-cli lint ./src",
23
24
  "lintAllFix": "npm run lintAll --eslint:fix=true",
@@ -32,7 +33,7 @@
32
33
  "velocity-react": "^1.4.3",
33
34
  "@zohodesk/variables": "1.0.0-beta.25",
34
35
  "@zohodesk/i18n": "^1.0.0-beta.7",
35
- "@zohodesk/components": "1.0.0-alpha-219",
36
+ "@zohodesk/components": "1.0.0-temp-41",
36
37
  "@zohodesk/icons": "1.0.0-beta.85",
37
38
  "@zohodesk/svg": "1.0.0-beta.37",
38
39
  "@zohodesk/virtualizer": "1.0.3",
@@ -42,11 +43,14 @@
42
43
  "velocity-react": "^1.4.3",
43
44
  "@zohodesk/variables": "^1.0.0-beta.25",
44
45
  "@zohodesk/i18n": "^1.0.0-beta.7",
45
- "@zohodesk/components": "1.0.0-alpha-219",
46
+ "@zohodesk/components": "1.0.0-alpha-221",
46
47
  "@zohodesk/icons": "^1.0.0-beta.85",
47
48
  "@zohodesk/svg": "^1.0.0-beta.37"
48
49
  },
49
50
  "react-cli": {
51
+ "preprocessor": {
52
+ "runner": "preprocess/index.js"
53
+ },
50
54
  "app": {
51
55
  "removePropTypes": {
52
56
  "removeImport": true
@@ -0,0 +1,98 @@
1
+ var { dotThemeVariables } = require('./json/dotVariableJson');
2
+ let fs = require('fs');
3
+ let path = require('path');
4
+ let baseFolder = 'Appearance';
5
+ let mode = ['default', 'dark'];
6
+ let themes = ['blue', 'green', 'orange', 'red', 'yellow'];
7
+ let themeFiles = [];
8
+ mode.forEach(mode => {
9
+ themes.forEach(theme => {
10
+ let themeFilesString = `../src/${baseFolder}/${mode}/themes/${theme}/${
11
+ theme + capitalizeFirstLetter(mode)
12
+ }DotTheme.module.css`;
13
+ themeFiles.push(path.join(__dirname, themeFilesString));
14
+ });
15
+ });
16
+ let files = themeFiles;
17
+
18
+ function capitalizeFirstLetter(string) {
19
+ return string.charAt(0).toUpperCase() + string.slice(1);
20
+ }
21
+
22
+ function generate(mode, theme) {
23
+ let exportVariables = [];
24
+ let counter = 0;
25
+ let newLine = '';
26
+ dotThemeVariables.map(dotVariable => {
27
+ let commentName = dotVariable[3];
28
+ counting = counter++;
29
+ if (counting != 0) {
30
+ newLine = `\n\t`;
31
+ }
32
+ if (mode == 'default') {
33
+ let dotDefaultColors = dotVariable[1][1];
34
+ let colorsResult = '';
35
+ if (theme == 'blue') {
36
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[0]};`];
37
+ } else if (theme == 'green') {
38
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[1]};`];
39
+ } else if (theme == 'orange') {
40
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[2]};`];
41
+ } else if (theme == 'red') {
42
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[3]};`];
43
+ } else if (theme == 'yellow') {
44
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDefaultColors[4]};`];
45
+ }
46
+ exportVariables.push(
47
+ commentName ? `${newLine}\n\t/* ${commentName} */` : '',
48
+ colorsResult
49
+ );
50
+ } else if (mode == 'dark') {
51
+ let dotDarkColors = dotVariable[2][1];
52
+ let colorsResult = '';
53
+ if (theme == 'blue') {
54
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[0]};`];
55
+ } else if (theme == 'green') {
56
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[1]};`];
57
+ } else if (theme == 'orange') {
58
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[2]};`];
59
+ } else if (theme == 'red') {
60
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[3]};`];
61
+ } else if (theme == 'yellow') {
62
+ colorsResult = [`\n\t--zdt_${dotVariable[0]}: ${dotDarkColors[4]};`];
63
+ }
64
+ exportVariables.push(
65
+ commentName ? `${newLine}\n\t/* ${commentName} */` : '',
66
+ colorsResult
67
+ );
68
+ }
69
+ });
70
+ return exportVariables.join('');
71
+ }
72
+
73
+ let arrayIndexCounter = 0;
74
+ mode.forEach(mode => {
75
+ themes.forEach(theme => {
76
+ let fileString = files[arrayIndexCounter];
77
+ // let splitPath = fileString.split(/\\/g);
78
+ let getMode = mode;
79
+ let getTheme = theme;
80
+ if (theme == 'blue') {
81
+ if (mode == 'default') {
82
+ blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
83
+ } else if (mode == 'dark') {
84
+ blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
85
+ }
86
+ } else {
87
+ blueSelector = '';
88
+ }
89
+ fs.writeFileSync(
90
+ fileString,
91
+ `[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
92
+ getMode,
93
+ getTheme
94
+ )}\n}`
95
+ );
96
+ arrayIndexCounter++;
97
+ });
98
+ });
@@ -0,0 +1 @@
1
+ require('./dotThemeColors');
@@ -0,0 +1,90 @@
1
+ /* sample color order =>
2
+ --zdt_cta_variable_name,
3
+ [['defaultMode'], ['blue', 'green', 'orange', 'red', 'yellow']],
4
+ [['darkMode'], ['blue', 'green', 'orange', 'red', 'yellow']], ['css comment name'] */
5
+
6
+ const dotThemeVariables = [
7
+ [
8
+ 'freezelayer_darklight_bg',
9
+ [
10
+ ['default'],
11
+ [
12
+ 'rgba(44, 51, 77, 0.94)',
13
+ 'rgba(15, 34, 38, 0.94)',
14
+ 'rgba(36, 30, 19, 0.94)',
15
+ 'rgba(34, 15, 27, 0.94)',
16
+ 'rgba(34, 36, 18, 0.94)'
17
+ ]
18
+ ],
19
+ [
20
+ ['dark'],
21
+ [
22
+ 'rgba(27, 33, 43, 0.9)',
23
+ 'rgba(27, 33, 43, 0.9)',
24
+ 'rgba(27, 33, 43, 0.9)',
25
+ 'rgba(27, 33, 43, 0.9)',
26
+ 'rgba(27, 33, 43, 0.9)'
27
+ ]
28
+ ],
29
+ ['freezelayer']
30
+ ],
31
+ [
32
+ 'commonEmptyState_dark_title',
33
+ [
34
+ ['default'],
35
+ [
36
+ 'var(--dot_text_white)',
37
+ 'var(--dot_text_white)',
38
+ 'var(--dot_text_white)',
39
+ 'var(--dot_text_white)',
40
+ 'var(--dot_text_white)'
41
+ ]
42
+ ],
43
+ [
44
+ ['dark'],
45
+ [
46
+ 'var(--dot_text_white)',
47
+ 'var(--dot_text_white)',
48
+ 'var(--dot_text_white)',
49
+ 'var(--dot_text_white)',
50
+ 'var(--dot_text_white)'
51
+ ]
52
+ ],
53
+ ['common empty state']
54
+ ],
55
+ [
56
+ 'commonEmptyState_dark_description',
57
+ [
58
+ ['default'],
59
+ [
60
+ 'var(--dot_text_white)',
61
+ 'var(--dot_text_white)',
62
+ 'var(--dot_text_white)',
63
+ 'var(--dot_text_white)',
64
+ 'var(--dot_text_white)'
65
+ ]
66
+ ],
67
+ [
68
+ ['dark'],
69
+ [
70
+ 'var(--dot_text_white)',
71
+ 'var(--dot_text_white)',
72
+ 'var(--dot_text_white)',
73
+ 'var(--dot_text_white)',
74
+ 'var(--dot_text_white)'
75
+ ]
76
+ ]
77
+ ],
78
+ [
79
+ 'commonEmptyState_dark_link',
80
+ [['default'], ['#6cbbfc', '#4ac064', '#e57717', '#ff6363', '#e8b923']],
81
+ [['dark'], ['#479dff', '#45a159', '#ff801f', '#e94f4f', '#d79835']]
82
+ ],
83
+ [
84
+ 'commonEmptyState_dark_link_hover',
85
+ [['default'], ['#2469ff', '#0e7526', '#b25900', '#ab1a18', '#b59100']],
86
+ [['dark'], ['#2469ff', '#0e7c1c', '#a85100', '#a81111', '#9b6808']]
87
+ ]
88
+ ];
89
+
90
+ module.exports = { dotThemeVariables: dotThemeVariables };
@@ -1,4 +1,4 @@
1
- [data-mode='dark'] {
1
+ [data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
2
2
  /* action button */
3
3
  --zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
4
4
  --zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
@@ -457,6 +457,7 @@
457
457
  --zdt_commonalert_close_hover_bg: #583a45;
458
458
  --zdt_commonalert_success_hover_bg: #2c4e42;
459
459
  --zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
460
+ --zdt_commonalert_plaininfo_hover_bg: #262f3d;
460
461
  --zdt_commonalert_danger_hover_bg: #583a45;
461
462
  --zdt_commonalert_error_hover_bg: #583a45;
462
463
  --zdt_commonalert_warning_hover_bg: #583c2c;
@@ -1,10 +1,10 @@
1
- [data-mode='dark'][data-theme='blue'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #479dff;
9
- --zdt_commonEmptyState_dark_link_hover: #2469ff;
1
+ [data-mode='dark'][data-theme='blue'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #479dff;
9
+ --zdt_commonEmptyState_dark_link_hover: #2469ff;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='dark'][data-theme='green'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #45a159;
9
- --zdt_commonEmptyState_dark_link_hover: #0e7c1c;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #45a159;
9
+ --zdt_commonEmptyState_dark_link_hover: #0e7c1c;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='dark'][data-theme='orange'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #ff801f;
9
- --zdt_commonEmptyState_dark_link_hover: #a85100;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #ff801f;
9
+ --zdt_commonEmptyState_dark_link_hover: #a85100;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='dark'][data-theme='red'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #e94f4f;
9
- --zdt_commonEmptyState_dark_link_hover: #a81111;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #e94f4f;
9
+ --zdt_commonEmptyState_dark_link_hover: #a81111;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='dark'][data-theme='yellow'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #d79835;
9
- --zdt_commonEmptyState_dark_link_hover: #9b6808;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #d79835;
9
+ --zdt_commonEmptyState_dark_link_hover: #9b6808;
10
10
  }
@@ -1,4 +1,4 @@
1
- [data-mode='default'] {
1
+ [data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
2
2
  /* action button */
3
3
  --zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
4
4
  --zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
@@ -457,6 +457,7 @@
457
457
  --zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
458
458
  --zdt_commonalert_success_hover_bg: #e9f7ef;
459
459
  --zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
460
+ --zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
460
461
  --zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
461
462
  --zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
462
463
  --zdt_commonalert_warning_hover_bg: #fff1e6;
@@ -1,10 +1,10 @@
1
- [data-mode='default'][data-theme='blue'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #6cbbfc;
9
- --zdt_commonEmptyState_dark_link_hover: #2469ff;
1
+ [data-mode='default'][data-theme='blue'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #6cbbfc;
9
+ --zdt_commonEmptyState_dark_link_hover: #2469ff;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='default'][data-theme='green'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #4ac064;
9
- --zdt_commonEmptyState_dark_link_hover: #0e7526;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #4ac064;
9
+ --zdt_commonEmptyState_dark_link_hover: #0e7526;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='default'][data-theme='orange'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #e57717;
9
- --zdt_commonEmptyState_dark_link_hover: #b25900;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #e57717;
9
+ --zdt_commonEmptyState_dark_link_hover: #b25900;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='default'][data-theme='red'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #ff6363;
9
- --zdt_commonEmptyState_dark_link_hover: #ab1a18;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #ff6363;
9
+ --zdt_commonEmptyState_dark_link_hover: #ab1a18;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  [data-mode='default'][data-theme='yellow'] {
2
- /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
4
-
5
- /* common empty state */
6
- --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
- --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
- --zdt_commonEmptyState_dark_link: #e8b923;
9
- --zdt_commonEmptyState_dark_link_hover: #b59100;
2
+ /* freezelayer */
3
+ --zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
4
+
5
+ /* common empty state */
6
+ --zdt_commonEmptyState_dark_title: var(--dot_text_white);
7
+ --zdt_commonEmptyState_dark_description: var(--dot_text_white);
8
+ --zdt_commonEmptyState_dark_link: #e8b923;
9
+ --zdt_commonEmptyState_dark_link_hover: #b59100;
10
10
  }
@@ -118,7 +118,13 @@ export default class CheckBoxField extends PureComponent {
118
118
  );
119
119
  return (
120
120
  <div
121
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
121
+ className={`${style.container} ${
122
+ isDisabled
123
+ ? style.disabled
124
+ : isReadOnly
125
+ ? style.readonly
126
+ : ''
127
+ }`}
122
128
  data-title={isDisabled ? title : ''}
123
129
  >
124
130
  {isDirectCol && labelElement}
@@ -101,7 +101,13 @@ export default class CurrencyField extends PureComponent {
101
101
 
102
102
  return (
103
103
  <div
104
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
104
+ className={`${style.container} ${
105
+ isDisabled
106
+ ? style.disabled
107
+ : isReadOnly
108
+ ? style.readonly
109
+ : ''
110
+ }`}
105
111
  data-title={isDisabled ? title : ''}
106
112
  >
107
113
  {labelName && (
@@ -116,7 +122,7 @@ export default class CurrencyField extends PureComponent {
116
122
  ? 'primary'
117
123
  : labelPalette
118
124
  }
119
- customClass={`${labelCustomClass} ${
125
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
120
126
  isMandatory ? style.labelMandatory : ''
121
127
  }`}
122
128
  htmlFor={uniqueId}
@@ -106,7 +106,13 @@ export default class DateField extends PureComponent {
106
106
  let getAriaId = htmlId ? htmlId : this.getNextId();
107
107
  return (
108
108
  <div
109
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
109
+ className={`${style.container} ${
110
+ isDisabled
111
+ ? style.disabled
112
+ : isReadOnly
113
+ ? style.readonly
114
+ : ''
115
+ }`}
110
116
  data-title={isDisabled ? title : ''}
111
117
  >
112
118
  {labelName && (
@@ -123,7 +129,7 @@ export default class DateField extends PureComponent {
123
129
  : labelPalette
124
130
  }
125
131
  onClick={isDisabled || isReadOnly ? null : this.handleLabelClick}
126
- customClass={`${labelCustomClass} ${
132
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
127
133
  isMandatory ? style.labelMandatory : ''
128
134
  }`}
129
135
  dataId={
@@ -38,14 +38,17 @@
38
38
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
39
39
  line-height: normal;
40
40
  }
41
- .cbTextReadonly {
42
- cursor: not-allowed;
43
- }
44
41
  .cbTextPointer {
45
42
  cursor: pointer;
46
43
  }
47
- .disabled {
48
- composes: disabled from '~@zohodesk/components/lib/common/common.module.css';
44
+ .disabled,
45
+ .readonly {
46
+ cursor: not-allowed;
47
+ }
48
+ .cbTextReadonly,
49
+ .disabled .fieldLabel,
50
+ .readonly .fieldLabel {
51
+ --label_cursor: not-allowed;
49
52
  }
50
53
  .radio {
51
54
  margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
@@ -118,7 +118,13 @@ export default class MultiSelectField extends PureComponent {
118
118
  let uniqueId = htmlId ? htmlId : this.getNextId();
119
119
  return (
120
120
  <div
121
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
121
+ className={`${style.container} ${
122
+ isDisabled
123
+ ? style.disabled
124
+ : isReadOnly
125
+ ? style.readonly
126
+ : ''
127
+ }`}
122
128
  data-title={isDisabled ? title : ''}
123
129
  >
124
130
  {labelName && (
@@ -137,7 +143,7 @@ export default class MultiSelectField extends PureComponent {
137
143
  : labelPalette
138
144
  }
139
145
  // onClick={this.handleLabelClick}
140
- customClass={`${isMandatory ? style.labelMandatory : ''}`}
146
+ customClass={`${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`}
141
147
  dataId={
142
148
  isDisabled
143
149
  ? `${dataId}_label_disabled`