@zohodesk/dot 1.0.0-temp-117 → 1.0.0-temp-118

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 (45) hide show
  1. package/README.md +4 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +7 -2
  3. package/assets/Appearance/default/mode/dotDefaultMode.module.css +7 -2
  4. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +7 -2
  5. package/css_error.log +13 -1
  6. package/es/AttachmentViewer/AttachmentViewer.module.css +4 -5
  7. package/es/Drawer/Drawer.module.css +42 -3
  8. package/es/Message/Message.module.css +1 -1
  9. package/es/PlusIcon/PlusIcon.module.css +5 -2
  10. package/es/Separator/Separator.js +57 -0
  11. package/es/Separator/Separator.module.css +34 -0
  12. package/es/Separator/props/defaultProps.js +12 -0
  13. package/es/Separator/props/propTypes.js +11 -0
  14. package/es/ToastMessage/ToastMessage.module.css +7 -6
  15. package/es/common/boxShadow.module.css +77 -0
  16. package/es/form/fields/TextEditor/TextEditor.js +3 -3
  17. package/es/form/fields/TextEditor/TextEditor.module.css +161 -63
  18. package/es/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  19. package/es/list/DotNew/DotNew.module.css +8 -5
  20. package/es/list/TagNew/TagNew.module.css +4 -2
  21. package/es/lookup/Section/LookupSection.module.css +2 -2
  22. package/es/utils/editorUtils.js +1 -1
  23. package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  24. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  25. package/install.md +12 -0
  26. package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
  27. package/lib/Drawer/Drawer.module.css +42 -3
  28. package/lib/Message/Message.module.css +1 -1
  29. package/lib/PlusIcon/PlusIcon.module.css +5 -2
  30. package/lib/Separator/Separator.js +82 -0
  31. package/lib/Separator/Separator.module.css +34 -0
  32. package/lib/Separator/props/defaultProps.js +19 -0
  33. package/lib/Separator/props/propTypes.js +19 -0
  34. package/lib/ToastMessage/ToastMessage.module.css +7 -6
  35. package/lib/common/boxShadow.module.css +77 -0
  36. package/lib/form/fields/TextEditor/TextEditor.js +3 -3
  37. package/lib/form/fields/TextEditor/TextEditor.module.css +161 -63
  38. package/lib/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  39. package/lib/list/DotNew/DotNew.module.css +8 -5
  40. package/lib/list/TagNew/TagNew.module.css +4 -2
  41. package/lib/lookup/Section/LookupSection.module.css +2 -2
  42. package/lib/utils/editorUtils.js +1 -1
  43. package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  44. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  45. package/package.json +3 -3
@@ -0,0 +1,34 @@
1
+ .varClass {
2
+ --separator_fontSize: var(--zd_font_size15);
3
+ }
4
+ .separator {
5
+ font-size: var(--separator_fontSize);
6
+ margin: 0 var(--zd_size5);
7
+ }
8
+ .dot {
9
+ --separator_fontSize: var(--zd_font_size8);
10
+ }
11
+ .slash {
12
+ --separator_fontSize: var(--zd_font_size10);
13
+ /* line-height: var(--zd_size10); */
14
+ }
15
+ .arrow {
16
+ --separator_fontSize: var(--zd_font_size8);
17
+ /* line-height: var(--zd_size7); */
18
+ }
19
+ .comma {
20
+ --separator_fontSize: var(--zd_font_size15);
21
+ /* line-height: var(--zd_size13); */
22
+ }
23
+ .none {
24
+ display: none;
25
+ }
26
+ .default {
27
+ color: var(--zdt_separator_default_text);
28
+ }
29
+ .primary {
30
+ color: var(--zdt_separator_primary_text);
31
+ }
32
+ .secondary {
33
+ color: var(--zdt_separator_secondary_text);
34
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultProps = void 0;
7
+ var defaultProps = {
8
+ palette: 'default',
9
+ type: 'dot',
10
+ wrap: false,
11
+ shrink: false,
12
+ aligndirection: 'row',
13
+ customClass: {
14
+ customWrapper: '',
15
+ customSeparator: '',
16
+ customChildren: ''
17
+ }
18
+ };
19
+ exports.defaultProps = defaultProps;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.propTypes = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ var propTypes = {
10
+ aligndirection: _propTypes["default"].string,
11
+ children: _propTypes["default"].any,
12
+ palette: _propTypes["default"].oneOf(['default', 'primary', 'secondary']),
13
+ shrink: _propTypes["default"].bool,
14
+ type: _propTypes["default"].oneOf(['dot', 'slash', 'arrow', 'comma', 'none']),
15
+ wrap: _propTypes["default"].bool,
16
+ customClass: _propTypes["default"].obj,
17
+ customSeparatorType: _propTypes["default"].string
18
+ };
19
+ exports.propTypes = propTypes;
@@ -3,7 +3,7 @@
3
3
  position: relative;
4
4
  max-height: 100%;
5
5
  border-radius: 5px;
6
- box-shadow: 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow);
6
+ box-shadow: var(--bs_toastmessage_container);
7
7
  background-color: var(--zdt_toastmessage_default_bg);
8
8
  margin-bottom: var(--zd_size7);
9
9
  }[dir=ltr] .container {
@@ -149,6 +149,7 @@
149
149
  .alertleft {
150
150
  padding: var(--zd_size15) var(--zd_size25);
151
151
  }
152
+
152
153
  .alertico {
153
154
  min-width: var(--zd_size50);
154
155
  }
@@ -232,17 +233,17 @@
232
233
  background: var(--zdt_toastmessage_dropdown_bg);
233
234
  }
234
235
 
235
- .dropdown > i {
236
+ .dropdown>i {
236
237
  position: absolute;
237
238
  top: 50%;
238
239
  }
239
240
 
240
- [dir=ltr] .dropdown > i {
241
+ [dir=ltr] .dropdown>i {
241
242
  left: 50%;
242
243
  transform: translate(-50%, -50%);
243
244
  }
244
245
 
245
- [dir=rtl] .dropdown > i {
246
+ [dir=rtl] .dropdown>i {
246
247
  right: 50%;
247
248
  transform: translate(50%, -50%);
248
249
  }
@@ -260,7 +261,7 @@
260
261
  transition: padding var(--zd_transition3), height var(--zd_transition3);
261
262
  border-top: 1px solid var(--zdt_toastmessage_message_border);
262
263
  cursor: pointer;
263
- margin:0;
264
+ margin: 0;
264
265
  }
265
266
 
266
267
  [dir=ltr] .message {
@@ -325,4 +326,4 @@
325
326
 
326
327
  .primaryPlain {
327
328
  color: var(--zdt_toastmessage_primary_text);
328
- }
329
+ }
@@ -0,0 +1,77 @@
1
+ :global(.shadowOn) {
2
+ /* attachment viewer */
3
+ --bs_attachmentviewer_selected: 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset;
4
+
5
+ /* texteditor */
6
+ --bs_texteditor_menu: -1px 1px 2px 0 var(--zdt_texteditor_menu_after_box_shadow);
7
+ --bs_texteditor_ul: 0 1px 32px 0 var(--zdt_texteditor_dropdown_box_shadow);
8
+
9
+ /* subtab layout */
10
+ --bs_subtablayout_shadow: 0 0 6px var(--zdt_subtablayout_shadowstyle_box_shadow);
11
+
12
+ /* drawer */
13
+ --bs_drawer_shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
14
+
15
+ /* dot new */
16
+ --bs_dotnew_shadow: 0 0 15px 1px var(--zdt_dotnew_default_box_shadow);
17
+
18
+ /* tag new */
19
+ --bs_tagnew_shadow: 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow);
20
+
21
+ /* lookup section */
22
+ --bs_lookupsection_shadow: 0px 4px 20px var(--zdt_lookupsection_box_shadow);
23
+
24
+ /* message */
25
+ --bs_message_container: 0 0 19px 1px var(--zdt_message_default_box_shadow);
26
+
27
+ /* plus icon */
28
+ --bs_plusicon_container: 0 2px 3px 0 var(--zdt_plusicon_box_shadow);
29
+
30
+ /* toast message */
31
+ --bs_toastmessage_container: 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow);
32
+
33
+ /* global notification */
34
+ --bs_globalnotification_container: 0 4px 20px var(--globalnotification_box_shadow);
35
+
36
+ /* desktop notification */
37
+ --bs_desktopnotification_container: 0 4px 20px var(--zdt_desktopnotification_box_shadow);
38
+ }
39
+
40
+ :global(.shadowOffWithOutline) {
41
+ /* attachment viewer */
42
+ --bs_attachmentviewer_selected: 0 0 2px var(--zdt_contrast_shadow);
43
+
44
+ /* texteditor */
45
+ --bs_texteditor_menu: 0 0 2px var(--zdt_contrast_shadow);
46
+ --bs_texteditor_ul: 0 0 2px var(--zdt_contrast_shadow);
47
+
48
+ /* subtab layout */
49
+ --bs_subtablayout_shadow: 0 0 2px var(--zdt_contrast_shadow);
50
+
51
+ /* drawer */
52
+ --bs_drawer_shadow: 0 0 2px var(--zdt_contrast_shadow);
53
+
54
+ /* dot new */
55
+ --bs_dotnew_shadow: 0 0 2px var(--zdt_contrast_shadow);
56
+
57
+ /* tag new */
58
+ --bs_tagnew_shadow: 0 0 2px var(--zdt_contrast_shadow);
59
+
60
+ /* lookup section */
61
+ --bs_lookupsection_shadow: 0 0 2px var(--zdt_contrast_shadow);
62
+
63
+ /* message */
64
+ --bs_message_container: 0 0 2px var(--zdt_contrast_shadow);
65
+
66
+ /* plus icon */
67
+ --bs_plusicon_container: 0 0 2px var(--zdt_contrast_shadow);
68
+
69
+ /* toast message */
70
+ --bs_toastmessage_container: 0 0 2px var(--zdt_contrast_shadow);
71
+
72
+ /* global notification */
73
+ --bs_globalnotification_container: 0 0 2px var(--zdt_contrast_shadow);
74
+
75
+ /* desktop notification */
76
+ --bs_desktopnotification_container: 0 0 2px var(--zdt_contrast_shadow);
77
+ }
@@ -178,7 +178,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
178
178
  key: "handleGetContent",
179
179
  value: function handleGetContent() {
180
180
  var id = this.props.id;
181
- var editorObj = editor[id] ? editor[id] : {};
181
+ var editorObj = global.editor[id] ? global.editor[id] : {};
182
182
  var content = (0, _editorUtils.getRichEditorContent)(id);
183
183
  if (!(0, _editorUtils.editorContentValidate)(editorObj)) {
184
184
  content = '';
@@ -210,8 +210,8 @@ var TextEditor = /*#__PURE__*/function (_Component) {
210
210
  });
211
211
  var id = this.props.id;
212
212
  global.editor = global.editor || {};
213
- if (!editor[id]) {
214
- editor[id] = editorObj;
213
+ if (!global.editor[id]) {
214
+ global.editor[id] = editorObj;
215
215
  }
216
216
  var css = 'blockquote {margin:0 0 0 4px; }',
217
217
  head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],