@zohodesk/dot 1.0.0-temp-54 → 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 (104) hide show
  1. package/README.md +10 -0
  2. package/es/Appearance/dark/mode/dotDarkMode.module.css +2 -3
  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 -3
  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/Field/Field.js +1 -1
  28. package/es/form/layout/Section/Section.js +3 -7
  29. package/es/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
  30. package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
  31. package/es/lookup/header/TicketHeader/TicketHeader.js +4 -7
  32. package/es/lookup/header/lookupHeaderCommon.module.css +2 -8
  33. package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
  34. package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  35. package/lib/Appearance/dark/mode/dotDarkMode.module.css +2 -3
  36. package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  37. package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
  38. package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
  39. package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
  40. package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
  41. package/lib/Appearance/default/mode/dotDefaultMode.module.css +2 -3
  42. package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  43. package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
  44. package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
  45. package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
  46. package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
  47. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  48. package/lib/form/fields/CurrencyField/CurrencyField.js +2 -2
  49. package/lib/form/fields/DateField/DateField.js +2 -2
  50. package/lib/form/fields/Fields.module.css +7 -5
  51. package/lib/form/fields/MultiSelectField/MultiSelectField.js +2 -2
  52. package/lib/form/fields/RadioField/RadioField.js +2 -2
  53. package/lib/form/fields/SelectField/SelectField.js +2 -2
  54. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
  55. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
  56. package/lib/form/fields/TextBoxField/TextBoxField.js +2 -2
  57. package/lib/form/fields/TextEditorField/TextEditorField.js +2 -2
  58. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  59. package/lib/form/fields/TextareaField/TextareaField.js +2 -2
  60. package/lib/form/layout/Field/Field.js +1 -1
  61. package/lib/form/layout/Section/Section.js +3 -7
  62. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
  63. package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
  64. package/lib/lookup/header/TicketHeader/TicketHeader.js +4 -7
  65. package/lib/lookup/header/lookupHeaderCommon.module.css +2 -8
  66. package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
  67. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  68. package/package.json +8 -4
  69. package/preprocess/dotThemeColors.js +98 -0
  70. package/preprocess/index.js +1 -0
  71. package/preprocess/json/dotVariableJson.js +90 -0
  72. package/src/Appearance/dark/mode/dotDarkMode.module.css +2 -3
  73. package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  74. package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
  75. package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
  76. package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
  77. package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
  78. package/src/Appearance/default/mode/dotDefaultMode.module.css +2 -3
  79. package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  80. package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
  81. package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
  82. package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
  83. package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
  84. package/src/form/fields/CheckBoxField/CheckBoxField.js +7 -1
  85. package/src/form/fields/CurrencyField/CurrencyField.js +8 -2
  86. package/src/form/fields/DateField/DateField.js +8 -2
  87. package/src/form/fields/Fields.module.css +8 -5
  88. package/src/form/fields/MultiSelectField/MultiSelectField.js +8 -2
  89. package/src/form/fields/RadioField/RadioField.js +8 -2
  90. package/src/form/fields/SelectField/SelectField.js +8 -2
  91. package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
  92. package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +10 -2
  93. package/src/form/fields/TextBoxField/TextBoxField.js +8 -2
  94. package/src/form/fields/TextEditorField/TextEditorField.js +10 -2
  95. package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  96. package/src/form/fields/TextareaField/TextareaField.js +8 -2
  97. package/src/form/layout/Field/Field.js +3 -4
  98. package/src/form/layout/Section/Section.js +10 -14
  99. package/src/lookup/header/ModuleHeader/ModuleHeader.js +3 -9
  100. package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +8 -21
  101. package/src/lookup/header/TicketHeader/TicketHeader.js +4 -7
  102. package/src/lookup/header/lookupHeaderCommon.module.css +0 -6
  103. package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
  104. package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
@@ -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);
@@ -296,9 +296,7 @@
296
296
 
297
297
  /* lookup header common */
298
298
  --zdt_lookupheader_default_bg: var(--zdt_cta_grey_10_bg);
299
- --zdt_lookupheader_white_bg: var(--dot_bg_white);
300
299
  --zdt_lookupheader_default_border: var(--zdt_cta_grey_35_border);
301
- --zdt_lookupheader_white_border: var(--zdt_cta_grey_15_border);
302
300
  --zdt_lookupheader_para_text: var(--dot_text_shuttleGrey);
303
301
  --zdt_lookupheader_input_border: var(--zd_border_smoke33);
304
302
 
@@ -459,6 +457,7 @@
459
457
  --zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
460
458
  --zdt_commonalert_success_hover_bg: #e9f7ef;
461
459
  --zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
460
+ --zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
462
461
  --zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
463
462
  --zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
464
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`
@@ -52,7 +52,13 @@ export default class RadioField extends PureComponent {
52
52
  } = customProps;
53
53
  return (
54
54
  <div
55
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
55
+ className={`${style.container} ${
56
+ isDisabled
57
+ ? style.disabled
58
+ : isReadOnly
59
+ ? style.readonly
60
+ : ''
61
+ }`}
56
62
  data-title={isDisabled ? title : ''}
57
63
  >
58
64
  {labelName && (
@@ -63,7 +69,7 @@ export default class RadioField extends PureComponent {
63
69
  palette={
64
70
  isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default'
65
71
  }
66
- customClass={`${isMandatory ? style.labelMandatory : ''}`}
72
+ customClass={`${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`}
67
73
  dataId={
68
74
  isDisabled
69
75
  ? `${dataId}_label_disabled`
@@ -100,7 +100,13 @@ export default class SelectField extends PureComponent {
100
100
  let uniqueId = htmlId ? htmlId : this.getNextId();
101
101
  return (
102
102
  <div
103
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
103
+ className={`${style.container} ${
104
+ isDisabled
105
+ ? style.disabled
106
+ : isReadOnly
107
+ ? style.readonly
108
+ : ''
109
+ }`}
104
110
  data-title={isDisabled ? title : ''}
105
111
  >
106
112
  {labelName && (
@@ -115,7 +121,7 @@ export default class SelectField extends PureComponent {
115
121
  ? 'primary'
116
122
  : labelPalette
117
123
  }
118
- customClass={`${labelCustomClass} ${
124
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
119
125
  isMandatory ? style.labelMandatory : ''
120
126
  }`}
121
127
  htmlFor={uniqueId}
@@ -141,10 +141,10 @@ export default class TagsMultiSelect extends React.Component {
141
141
  <Box className={style.tag} key={index}>
142
142
  <Tag
143
143
  text={name}
144
- onRemove={deleteTag.bind(this, name)}
144
+ onRemove={isReadOnly ? null : deleteTag.bind(this, name)}
145
145
  closeTitle={i18nKeys.deleteText}
146
146
  palette={tagType === 'SYSTEM' ? 'primary' : 'default'}
147
- disabled={isReadOnly}
147
+ isReadOnly={isReadOnly}
148
148
  />
149
149
  </Box>
150
150
  ) : null;
@@ -176,7 +176,7 @@ export default class TagsMultiSelect extends React.Component {
176
176
  isReadOnly={isReadOnly}
177
177
  ref={this.textBoxRef}
178
178
  needBorder={false}
179
- placeHolder={tagsList.length ? '' : '-'}
179
+ placeHolder={tagsList.length ? '' : (i18nKeys.placeholderText || '-')}
180
180
  onClick={!isReadOnly ? handleTogglePopup : undefined}
181
181
  customClass={{
182
182
  customTBoxWrap: style.custmInp,
@@ -308,7 +308,8 @@ TagsMultiSelect.propTypes = {
308
308
  errorMessage: PropTypes.string.isRequired,
309
309
  deleteText: PropTypes.string.isRequired,
310
310
  lessText: PropTypes.string.isRequired,
311
- moreText: PropTypes.string.isRequired
311
+ moreText: PropTypes.string.isRequired,
312
+ placeholderText: PropTypes.string
312
313
  }),
313
314
  borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
314
315
  needBorder: PropTypes.bool,
@@ -168,7 +168,15 @@ const TagsMultiSelectField = props => {
168
168
  }, []);
169
169
 
170
170
  return (
171
- <div className={style.container}>
171
+ <div
172
+ className={`${style.container} ${
173
+ isDisabled
174
+ ? fieldStyle.disabled
175
+ : isReadOnly
176
+ ? fieldStyle.readonly
177
+ : ''
178
+ }`}
179
+ >
172
180
  <Container alignBox='row' align='baseline' isCover={false}>
173
181
  {labelName && (
174
182
  <Label
@@ -179,7 +187,7 @@ const TagsMultiSelectField = props => {
179
187
  palette={
180
188
  isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette
181
189
  }
182
- customClass={`${isMandatory ? fieldStyle.labelMandatory : ''} ${
190
+ customClass={`${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${
183
191
  labelClass ? labelClass : ''
184
192
  }`}
185
193
  dataId={
@@ -88,7 +88,13 @@ export default class TextBoxField extends PureComponent {
88
88
 
89
89
  return (
90
90
  <div
91
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
91
+ className={`${style.container} ${
92
+ isDisabled
93
+ ? style.disabled
94
+ : isReadOnly
95
+ ? style.readonly
96
+ : ''
97
+ }`}
92
98
  data-title={isDisabled ? title : ''}
93
99
  >
94
100
  {labelName && (
@@ -103,7 +109,7 @@ export default class TextBoxField extends PureComponent {
103
109
  ? 'primary'
104
110
  : labelPalette
105
111
  }
106
- customClass={`${labelCustomClass} ${
112
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
107
113
  isMandatory ? style.labelMandatory : ''
108
114
  }`}
109
115
  htmlFor={uniqueId}
@@ -98,7 +98,15 @@ export default class TextEditorField extends PureComponent {
98
98
  } = customProps;
99
99
  let { ePhiTitle = '', ePhiText = '', ePhiStatus = false } = ePhiData;
100
100
  return (
101
- <div className={`${style.container} ${className}`}>
101
+ <div
102
+ className={`${style.container} ${
103
+ isDisabled
104
+ ? style.disabled
105
+ : isReadOnly
106
+ ? style.readonly
107
+ : ''
108
+ } ${className || ''}`}
109
+ >
102
110
  <Container isCover={false} alignBox='row' align='vertical'>
103
111
  {labelName && (
104
112
  <Box>
@@ -114,7 +122,7 @@ export default class TextEditorField extends PureComponent {
114
122
  : labelPalette
115
123
  }
116
124
  onClick={this.handleLabelClick}
117
- customClass={`${labelCustomClass} ${
125
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
118
126
  isMandatory ? style.labelMandatory : ''
119
127
  }`}
120
128
  dataId={
@@ -47,7 +47,7 @@ export default class TextEditorWrapper extends Component {
47
47
  ) {
48
48
  this.setState({ isEditorShow: true });
49
49
  } else {
50
- if (!this.state.isEditorFocus) {
50
+ if (!this.state.isEditorFocus && !this.props.isEditorDefaultOpen) {
51
51
  this.setState({ isEditorShow: false });
52
52
  }
53
53
  }
@@ -87,7 +87,13 @@ export default class TextareaField extends PureComponent {
87
87
  let uniqueId = htmlId ? htmlId : this.getNextId();
88
88
  return (
89
89
  <div
90
- className={`${style.container} ${isDisabled ? style.disabled : ''}`}
90
+ className={`${style.container} ${
91
+ isDisabled
92
+ ? style.disabled
93
+ : isReadOnly
94
+ ? style.readonly
95
+ : ''
96
+ }`}
91
97
  data-title={isDisabled ? title : ''}
92
98
  >
93
99
  {labelName && (
@@ -103,7 +109,7 @@ export default class TextareaField extends PureComponent {
103
109
  ? 'primary'
104
110
  : labelPalette
105
111
  }
106
- customClass={`${labelCustomClass} ${
112
+ customClass={`${style.fieldLabel} ${labelCustomClass} ${
107
113
  isMandatory ? style.labelMandatory : ''
108
114
  }`}
109
115
  htmlFor={uniqueId}
@@ -16,10 +16,9 @@ export default class Field extends Component {
16
16
  return (
17
17
  <React.Fragment>
18
18
  <div
19
- className={`${
20
- column == 'single' ? `${style.singleColumn}` : `${style[width]}`
21
- } ${`formFieldLi_${width}`} ${containerClass ? containerClass : ''} `}
22
- data-id={dataId}
19
+ className={`${containerClass ? containerClass : ''} ${
20
+ column == 'single' ? `${style.singleColumn}` : `${style[width]} `
21
+ }`} data-id={dataId}
23
22
  >
24
23
  <div
25
24
  className={`${className ? className : ''} ${`fieldWidth_${width}`}`}
@@ -14,21 +14,18 @@ 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 (
21
20
  <div data-id={dataId} className={containerClass ? containerClass : ''}>
22
- <div className={innerContainerClass ? innerContainerClass : '' }>
23
- {title && <div className={titleClass ? titleClass : ''}>{title}</div>}
24
- <div
25
- className={`${className ? className : ''} ${
26
- column == 'single' ? style.singleColumn : ''
27
- }`}
28
- data-id={formName && formName}
29
- >
30
- {this.props.children}
31
- </div>
21
+ {title && <div className={titleClass ? titleClass : ''}>{title}</div>}
22
+ <div
23
+ className={`${className ? className : ''} ${
24
+ column == 'single' ? style.singleColumn : ''
25
+ }`}
26
+ data-id={formName && formName}
27
+ >
28
+ {this.props.children}
32
29
  </div>
33
30
  </div>
34
31
  );
@@ -40,8 +37,7 @@ Section.propTypes = {
40
37
  containerClass: PropTypes.string,
41
38
  dataId: PropTypes.string,
42
39
  title: PropTypes.string,
43
- titleClass: PropTypes.string,
44
- innerContainerClass: PropTypes.string
40
+ titleClass: PropTypes.string
45
41
  };
46
42
  if (__DOCS__) {
47
43
  Section.docs = {
@@ -29,14 +29,13 @@ export default class ModuleHeader extends PureComponent {
29
29
  miniDescription,
30
30
  dataId,
31
31
  closeTitle,
32
- onSearchKeyDown,
33
- palette
32
+ onSearchKeyDown
34
33
  } = this.props;
35
34
  return (
36
35
  <Container
37
36
  align='vertical'
38
37
  alignBox='row'
39
- className={`${commonStyle.container} ${commonStyle[`${palette}`]}`}
38
+ className={`${commonStyle.container}`}
40
39
  isCover={false}
41
40
  wrap='wrap'
42
41
  dataId={dataId}
@@ -88,14 +87,9 @@ ModuleHeader.propTypes = {
88
87
  title: PropTypes.string,
89
88
  dataId: PropTypes.string,
90
89
  closeTitle: PropTypes.string,
91
- onSearchKeyDown: PropTypes.func,
92
- palette: PropTypes.oneOf(['default', 'white'])
90
+ onSearchKeyDown: PropTypes.func
93
91
  };
94
92
 
95
- ModuleHeader.defaultProps = {
96
- palette: 'default'
97
- }
98
-
99
93
  if (__DOCS__) {
100
94
  ModuleHeader.docs = {
101
95
  componentGroup: 'Lookup'
@@ -22,27 +22,14 @@ export default class ModuleHeader__default extends Component {
22
22
  render() {
23
23
  let { searchStr } = this.state;
24
24
  return (
25
- <div>
26
- <ModuleHeader
27
- title='Find Duplicate'
28
- needSearch
29
- searchStr={searchStr}
30
- onSearchChange={this.handleSearch}
31
- searchPlaceHolder='Search'
32
- miniDescription="Select a field to search for duplicate records"
33
- onLookupClose={()=>{}}
34
- />
35
- <ModuleHeader
36
- title='Find Duplicate'
37
- needSearch
38
- searchStr={searchStr}
39
- onSearchChange={this.handleSearch}
40
- searchPlaceHolder='Search'
41
- miniDescription="Select a field to search for duplicate records"
42
- onLookupClose={()=>{}}
43
- palette='white'
44
- />
45
- </div>
25
+ <ModuleHeader
26
+ title='Find Duplicate'
27
+ needSearch
28
+ searchStr={searchStr}
29
+ onSearchChange={this.handleSearch}
30
+ searchPlaceHolder='Search'
31
+ miniDescription="Select a field to search for duplicate records"
32
+ />
46
33
  );
47
34
  }
48
35
  }
@@ -32,15 +32,14 @@ export default class TicketHeader extends Component {
32
32
  needOnTypeSearch,
33
33
  getSearchBoxRef,
34
34
  needViewsList,
35
- i18nKeys,
36
- palette
35
+ i18nKeys
37
36
  } = this.props;
38
37
  let { menuEmptyMessage = 'No matches found' } = i18nKeys;
39
38
  return (
40
39
  <Container
41
40
  align='vertical'
42
41
  alignBox='row'
43
- className={`${commonStyle.container} ${commonStyle[`${palette}`]} ${commonResponsive.container} ${style.container}`}
42
+ className={`${commonStyle.container} ${commonResponsive.container} ${style.container}`}
44
43
  isCover={false}
45
44
  wrap='wrap'
46
45
  >
@@ -110,13 +109,11 @@ TicketHeader.propTypes = {
110
109
  title: PropTypes.string,
111
110
  i18nKeys: PropTypes.shape({
112
111
  menuEmptyMessage: PropTypes.string
113
- }),
114
- palette: PropTypes.oneOf(['default', 'white'])
112
+ })
115
113
  };
116
114
 
117
115
  TicketHeader.defaultProps = {
118
- i18nKeys: {},
119
- palette: 'default'
116
+ i18nKeys: {}
120
117
  };
121
118
 
122
119
  if (__DOCS__) {
@@ -2,15 +2,9 @@
2
2
  min-height: var(--zd_size51);
3
3
  position: relative;
4
4
  padding: 0 var(--zd_size52) 0 var(--zd_size10);
5
- }
6
- .default {
7
5
  background-color: var(--zdt_lookupheader_default_bg);
8
6
  border-bottom: solid 1px var(--zdt_lookupheader_default_border);
9
7
  }
10
- .white {
11
- background-color: var(--zdt_lookupheader_white_bg);
12
- border-bottom: solid 1px var(--zdt_lookupheader_white_border);
13
- }
14
8
  .searchContainer,
15
9
  .title {
16
10
  margin: 0 var(--zd_size20);