@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
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
+ # 1.0.0-beta.205
6
+
7
+ - TagsMultiSelect => placeholderText key added in i18nKeys
8
+ - TextEditorWrapper => isEditorDefaultOpen setState Issue Check added
9
+
10
+ # 1.0.0-beta.204
11
+
12
+ - blueDefaultTheme & blueDarkTheme class name added in Mode & Blue DotTheme files
13
+ - GlobalNotification, DesktopNotification => customProps prop added
14
+
5
15
  # 1.0.0-beta.203
6
16
 
7
17
  - ListLayout => active, keyboarActive css priority fixed
@@ -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
  }
@@ -104,7 +104,7 @@ export default class CheckBoxField extends PureComponent {
104
104
  title: lockedInfoText
105
105
  }) : null);
106
106
  return /*#__PURE__*/React.createElement("div", {
107
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
107
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
108
108
  "data-title": isDisabled ? title : ''
109
109
  }, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
110
110
  className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
@@ -120,7 +120,7 @@ export default class CurrencyField extends PureComponent {
120
120
 
121
121
  let uniqueId = htmlId ? htmlId : this.getNextId();
122
122
  return /*#__PURE__*/React.createElement("div", {
123
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
123
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
124
124
  "data-title": isDisabled ? title : ''
125
125
  }, labelName && /*#__PURE__*/React.createElement("div", {
126
126
  className: style.labelContainer
@@ -128,7 +128,7 @@ export default class CurrencyField extends PureComponent {
128
128
  text: labelName,
129
129
  size: fieldSize === 'small' ? 'small' : 'medium',
130
130
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
131
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
131
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
132
132
  htmlFor: uniqueId,
133
133
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
134
134
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
@@ -124,7 +124,7 @@ export default class DateField extends PureComponent {
124
124
  } = customProps;
125
125
  let getAriaId = htmlId ? htmlId : this.getNextId();
126
126
  return /*#__PURE__*/React.createElement("div", {
127
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
127
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
128
128
  "data-title": isDisabled ? title : ''
129
129
  }, labelName && /*#__PURE__*/React.createElement("div", {
130
130
  className: style.labelContainer
@@ -134,7 +134,7 @@ export default class DateField extends PureComponent {
134
134
  size: fieldSize === 'small' ? 'small' : 'medium',
135
135
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
136
136
  onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
137
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
137
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
138
138
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
139
139
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
140
140
  name: "ZD-GN-info",
@@ -43,14 +43,16 @@
43
43
  [dir=rtl] .checkboxText {
44
44
  padding-right: var(--zd_size6);
45
45
  }
46
- .cbTextReadonly {
47
- cursor: not-allowed;
48
- }
49
46
  .cbTextPointer {
50
47
  cursor: pointer;
51
48
  }
52
- .disabled {
53
- composes: disabled from '~@zohodesk/components/lib/common/common.module.css';
49
+ .disabled, .readonly {
50
+ cursor: not-allowed;
51
+ }
52
+ .cbTextReadonly,
53
+ .disabled .fieldLabel,
54
+ .readonly .fieldLabel {
55
+ --label_cursor: not-allowed;
54
56
  }
55
57
  [dir=ltr] .radio {
56
58
  margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
@@ -136,7 +136,7 @@ export default class MultiSelectField extends PureComponent {
136
136
  let isDarkPalette = palette === 'dark';
137
137
  let uniqueId = htmlId ? htmlId : this.getNextId();
138
138
  return /*#__PURE__*/React.createElement("div", {
139
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
139
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
140
140
  "data-title": isDisabled ? title : ''
141
141
  }, labelName && /*#__PURE__*/React.createElement("div", {
142
142
  className: style.labelContainer
@@ -146,7 +146,7 @@ export default class MultiSelectField extends PureComponent {
146
146
  size: fieldSize === 'small' ? 'small' : 'medium',
147
147
  palette: isDarkPalette ? 'dark' : isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette // onClick={this.handleLabelClick}
148
148
  ,
149
- customClass: `${isMandatory ? style.labelMandatory : ''}`,
149
+ customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
150
150
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
151
151
  htmlFor: uniqueId
152
152
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
@@ -55,14 +55,14 @@ export default class RadioField extends PureComponent {
55
55
  ValidationMessageProps2 = {}
56
56
  } = customProps;
57
57
  return /*#__PURE__*/React.createElement("div", {
58
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
58
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
59
59
  "data-title": isDisabled ? title : ''
60
60
  }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
61
61
  text: labelName,
62
62
  size: "medium",
63
63
  id: id,
64
64
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
65
- customClass: `${isMandatory ? style.labelMandatory : ''}`,
65
+ customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
66
66
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
67
67
  }, LabelProps)), /*#__PURE__*/React.createElement("div", {
68
68
  className: `${style.fieldContainer} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
@@ -104,7 +104,7 @@ export default class SelectField extends PureComponent {
104
104
  } = customProps;
105
105
  let uniqueId = htmlId ? htmlId : this.getNextId();
106
106
  return /*#__PURE__*/React.createElement("div", {
107
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
107
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
108
108
  "data-title": isDisabled ? title : ''
109
109
  }, labelName && /*#__PURE__*/React.createElement("div", {
110
110
  className: style.labelContainer
@@ -112,7 +112,7 @@ export default class SelectField extends PureComponent {
112
112
  text: labelName,
113
113
  size: fieldSize === 'small' ? 'small' : 'medium',
114
114
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
115
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
115
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
116
116
  htmlFor: uniqueId,
117
117
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
118
118
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
@@ -146,10 +146,10 @@ export default class TagsMultiSelect extends React.Component {
146
146
  key: index
147
147
  }, /*#__PURE__*/React.createElement(Tag, {
148
148
  text: name,
149
- onRemove: deleteTag.bind(this, name),
149
+ onRemove: isReadOnly ? null : deleteTag.bind(this, name),
150
150
  closeTitle: i18nKeys.deleteText,
151
151
  palette: tagType === 'SYSTEM' ? 'primary' : 'default',
152
- disabled: isReadOnly
152
+ isReadOnly: isReadOnly
153
153
  })) : null;
154
154
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
155
155
  className: style.moreLess,
@@ -172,7 +172,7 @@ export default class TagsMultiSelect extends React.Component {
172
172
  isReadOnly: isReadOnly,
173
173
  ref: this.textBoxRef,
174
174
  needBorder: false,
175
- placeHolder: tagsList.length ? '' : '-',
175
+ placeHolder: tagsList.length ? '' : i18nKeys.placeholderText || '-',
176
176
  onClick: !isReadOnly ? handleTogglePopup : undefined,
177
177
  customClass: {
178
178
  customTBoxWrap: style.custmInp,
@@ -273,7 +273,8 @@ TagsMultiSelect.propTypes = {
273
273
  errorMessage: PropTypes.string.isRequired,
274
274
  deleteText: PropTypes.string.isRequired,
275
275
  lessText: PropTypes.string.isRequired,
276
- moreText: PropTypes.string.isRequired
276
+ moreText: PropTypes.string.isRequired,
277
+ placeholderText: PropTypes.string
277
278
  }),
278
279
  borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
279
280
  needBorder: PropTypes.bool,
@@ -182,7 +182,7 @@ const TagsMultiSelectField = props => {
182
182
  };
183
183
  }, []);
184
184
  return /*#__PURE__*/React.createElement("div", {
185
- className: style.container
185
+ className: `${style.container} ${isDisabled ? fieldStyle.disabled : isReadOnly ? fieldStyle.readonly : ''}`
186
186
  }, /*#__PURE__*/React.createElement(Container, {
187
187
  alignBox: "row",
188
188
  align: "baseline",
@@ -193,7 +193,7 @@ const TagsMultiSelectField = props => {
193
193
  id: id,
194
194
  size: labelSize,
195
195
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
196
- customClass: `${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
196
+ customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
197
197
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
198
198
  htmlFor: htmlId
199
199
  }, LabelProps)), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
@@ -97,7 +97,7 @@ export default class TextBoxField extends PureComponent {
97
97
  } = ePhiData;
98
98
  let uniqueId = htmlId ? htmlId : this.getNextId();
99
99
  return /*#__PURE__*/React.createElement("div", {
100
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
100
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
101
101
  "data-title": isDisabled ? title : ''
102
102
  }, labelName && /*#__PURE__*/React.createElement("div", {
103
103
  className: style.labelContainer
@@ -105,7 +105,7 @@ export default class TextBoxField extends PureComponent {
105
105
  text: labelName,
106
106
  size: fieldSize === 'small' ? 'small' : 'medium',
107
107
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
108
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
108
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
109
109
  htmlFor: uniqueId,
110
110
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
111
111
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
@@ -108,7 +108,7 @@ export default class TextEditorField extends PureComponent {
108
108
  ePhiStatus = false
109
109
  } = ePhiData;
110
110
  return /*#__PURE__*/React.createElement("div", {
111
- className: `${style.container} ${className}`
111
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''} ${className || ''}`
112
112
  }, /*#__PURE__*/React.createElement(Container, {
113
113
  isCover: false,
114
114
  alignBox: "row",
@@ -119,7 +119,7 @@ export default class TextEditorField extends PureComponent {
119
119
  htmlFor: !isReadOnly && !isDisabled ? id : undefined,
120
120
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
121
121
  onClick: this.handleLabelClick,
122
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
122
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
123
123
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
124
124
  }, LabelProps))), infoText ? /*#__PURE__*/React.createElement(Icon, {
125
125
  name: "ZD-GN-info",
@@ -70,7 +70,7 @@ export default class TextEditorWrapper extends Component {
70
70
  isEditorShow: true
71
71
  });
72
72
  } else {
73
- if (!this.state.isEditorFocus) {
73
+ if (!this.state.isEditorFocus && !this.props.isEditorDefaultOpen) {
74
74
  this.setState({
75
75
  isEditorShow: false
76
76
  });
@@ -95,7 +95,7 @@ export default class TextareaField extends PureComponent {
95
95
  } = customProps;
96
96
  let uniqueId = htmlId ? htmlId : this.getNextId();
97
97
  return /*#__PURE__*/React.createElement("div", {
98
- className: `${style.container} ${isDisabled ? style.disabled : ''}`,
98
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
99
99
  "data-title": isDisabled ? title : ''
100
100
  }, labelName && /*#__PURE__*/React.createElement("div", {
101
101
  className: style.labelContainer
@@ -104,7 +104,7 @@ export default class TextareaField extends PureComponent {
104
104
  id: id,
105
105
  size: fieldSize === 'small' ? 'small' : 'medium',
106
106
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
107
- customClass: `${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
107
+ customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
108
108
  htmlFor: uniqueId,
109
109
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
110
110
  }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
@@ -14,20 +14,17 @@ export default class Section extends Component {
14
14
  titleClass,
15
15
  className,
16
16
  column,
17
- formName,
18
- innerContainerClass
17
+ formName
19
18
  } = this.props;
20
19
  return /*#__PURE__*/React.createElement("div", {
21
20
  "data-id": dataId,
22
21
  className: containerClass ? containerClass : ''
23
- }, /*#__PURE__*/React.createElement("div", {
24
- className: innerContainerClass ? innerContainerClass : ''
25
22
  }, title && /*#__PURE__*/React.createElement("div", {
26
23
  className: titleClass ? titleClass : ''
27
24
  }, title), /*#__PURE__*/React.createElement("div", {
28
25
  className: `${className ? className : ''} ${column == 'single' ? style.singleColumn : ''}`,
29
26
  "data-id": formName && formName
30
- }, this.props.children)));
27
+ }, this.props.children));
31
28
  }
32
29
 
33
30
  }
@@ -37,8 +34,7 @@ Section.propTypes = {
37
34
  containerClass: PropTypes.string,
38
35
  dataId: PropTypes.string,
39
36
  title: PropTypes.string,
40
- titleClass: PropTypes.string,
41
- innerContainerClass: PropTypes.string
37
+ titleClass: PropTypes.string
42
38
  };
43
39
 
44
40
  if (false) {
@@ -50,7 +50,8 @@ export default class GlobalNotification extends React.Component {
50
50
  message,
51
51
  hideMessage,
52
52
  onClick,
53
- i18nKeys = {}
53
+ i18nKeys = {},
54
+ customProps
54
55
  } = this.props;
55
56
  let {
56
57
  closeTitle = 'Close'
@@ -60,7 +61,8 @@ export default class GlobalNotification extends React.Component {
60
61
  message: message,
61
62
  hideMessage: hideMessage,
62
63
  onClick: onClick,
63
- closeTitle: closeTitle
64
+ closeTitle: closeTitle,
65
+ customProps: customProps
64
66
  });
65
67
  }
66
68
 
@@ -72,7 +74,13 @@ GlobalNotification.propTypes = {
72
74
  onClick: PropTypes.func,
73
75
  showMessage: PropTypes.bool,
74
76
  type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error']),
75
- i18nKeys: PropTypes.object
77
+ i18nKeys: PropTypes.object,
78
+ customProps: PropTypes.shape({
79
+ ExtraProps: PropTypes.object
80
+ })
81
+ };
82
+ GlobalNotification.defaultProps = {
83
+ customProps: {}
76
84
  };
77
85
 
78
86
  if (false) {
@@ -96,12 +104,16 @@ export function GlobalNotificationUI(props) {
96
104
  type = '',
97
105
  message,
98
106
  onClick,
99
- closeTitle = ''
107
+ closeTitle = '',
108
+ customProps = {}
100
109
  } = props;
101
- return /*#__PURE__*/React.createElement("div", {
110
+ let {
111
+ ExtraProps = {}
112
+ } = customProps;
113
+ return /*#__PURE__*/React.createElement("div", _extends({
102
114
  className: `${style.message} ${type ? style[type] : ''}`,
103
115
  "data-id": `show_${type}_message`
104
- }, /*#__PURE__*/React.createElement(Container, {
116
+ }, ExtraProps), /*#__PURE__*/React.createElement(Container, {
105
117
  className: `${style.container}`,
106
118
  alignBox: "row",
107
119
  isCover: false,
@@ -57,7 +57,8 @@ export function DesktopNotificationUI(props) {
57
57
  onClose,
58
58
  needClose,
59
59
  customClass = {},
60
- i18nKeys = {}
60
+ i18nKeys = {},
61
+ customProps
61
62
  } = props;
62
63
  let {
63
64
  closeTitle = 'Close'
@@ -68,6 +69,9 @@ export function DesktopNotificationUI(props) {
68
69
  let {
69
70
  buttonPalette = 'dangerFilled'
70
71
  } = buttonPaletteObject[type] || {};
72
+ let {
73
+ ExtraProps = {}
74
+ } = customProps;
71
75
 
72
76
  function onClickSubmit(e) {
73
77
  onSubmit && onSubmit();
@@ -88,12 +92,12 @@ export function DesktopNotificationUI(props) {
88
92
  style: needAutoZindex && isAnimate ? {
89
93
  zIndex: `${Zindex}`
90
94
  } : {}
91
- }, /*#__PURE__*/React.createElement(Container, {
95
+ }, /*#__PURE__*/React.createElement(Container, _extends({
92
96
  className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`${size}`] ? style[`${size}`] : ''} ${isShrinkView ? style.globalNotify : ''} ${containerClass}`,
93
97
  isCover: false,
94
98
  dataId: dataId,
95
99
  isInline: uiVariantTwo
96
- }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
100
+ }, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
97
101
  type: type,
98
102
  title: title,
99
103
  variant: titleVariant,
@@ -177,7 +181,10 @@ DesktopNotification.propTypes = {
177
181
  submitText: PropTypes.string,
178
182
  submitType: PropTypes.oneOf(['primary', 'danger', 'success']),
179
183
  titleVariant: PropTypes.oneOf(['primary', 'secondary']),
180
- type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm'])
184
+ type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
185
+ customProps: PropTypes.shape({
186
+ ExtraProps: PropTypes.object
187
+ })
181
188
  };
182
189
  DesktopNotification.defaultProps = {
183
190
  isMore: false,
@@ -190,7 +197,8 @@ DesktopNotification.defaultProps = {
190
197
  needIcon: true,
191
198
  titleVariant: 'primary',
192
199
  isShrinkView: false,
193
- needClose: true
200
+ needClose: true,
201
+ customProps: {}
194
202
  };
195
203
 
196
204
  if (false) {