@manuscripts/style-guide 1.7.1 → 1.7.2

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 (80) hide show
  1. package/dist/cjs/components/Comments/CommentBody.js +3 -3
  2. package/dist/cjs/components/Comments/CommentUser.js +1 -1
  3. package/dist/cjs/components/Comments/ResolveButton.js +3 -3
  4. package/dist/cjs/components/FileManager/FileCreatedDate.js +3 -3
  5. package/dist/cjs/components/FileManager/FileManager.js +7 -7
  6. package/dist/cjs/components/FileManager/OtherFilesSection.js +2 -2
  7. package/dist/cjs/components/FileManager/SupplementsSection.js +1 -2
  8. package/dist/cjs/components/References/CitationEditor.js +2 -2
  9. package/dist/cjs/components/References/ReferenceForm.js +8 -9
  10. package/dist/cjs/components/References/ReferenceSearch.js +2 -2
  11. package/dist/cjs/components/References/ReferencesModal.js +5 -5
  12. package/dist/cjs/components/RelativeDate.js +23 -6
  13. package/dist/cjs/components/{FileManager/Tooltip.js → Tooltip.js} +12 -7
  14. package/dist/cjs/index.js +1 -2
  15. package/dist/cjs/lib/files.js +4 -5
  16. package/dist/es/components/Comments/CommentBody.js +3 -3
  17. package/dist/es/components/Comments/CommentUser.js +1 -1
  18. package/dist/es/components/Comments/ResolveButton.js +3 -3
  19. package/dist/es/components/FileManager/FileCreatedDate.js +3 -3
  20. package/dist/es/components/FileManager/FileManager.js +7 -7
  21. package/dist/es/components/FileManager/OtherFilesSection.js +2 -2
  22. package/dist/es/components/FileManager/SupplementsSection.js +2 -3
  23. package/dist/es/components/References/CitationEditor.js +1 -1
  24. package/dist/es/components/References/ReferenceForm.js +6 -7
  25. package/dist/es/components/References/ReferenceSearch.js +1 -1
  26. package/dist/es/components/References/ReferencesModal.js +5 -5
  27. package/dist/es/components/RelativeDate.js +23 -6
  28. package/dist/es/components/Tooltip.js +25 -0
  29. package/dist/es/index.js +1 -2
  30. package/dist/es/lib/files.js +1 -2
  31. package/dist/types/components/AlertMessage.d.ts +1 -1
  32. package/dist/types/components/AuthorForm/RemoveAuthorButton.d.ts +1 -1
  33. package/dist/types/components/AutoSaveInput.d.ts +1 -1
  34. package/dist/types/components/Comments/CommentUser.d.ts +2 -3
  35. package/dist/types/components/Dialog.d.ts +1 -1
  36. package/dist/types/components/Dropdown.d.ts +1 -1
  37. package/dist/types/components/EditorHeader/EditorHeader.d.ts +1 -2
  38. package/dist/types/components/FileManager/FileActions.d.ts +1 -1
  39. package/dist/types/components/FileManager/FileManager.d.ts +1 -2
  40. package/dist/types/components/FileManager/util.d.ts +1 -0
  41. package/dist/types/components/Form.d.ts +1 -1
  42. package/dist/types/components/Inspector.d.ts +7 -9
  43. package/dist/types/components/NavDropdown.d.ts +1 -1
  44. package/dist/types/components/References/ReferenceForm.d.ts +1 -1
  45. package/dist/types/components/RelativeDate.d.ts +15 -1
  46. package/dist/types/components/Resizer/Resizer.d.ts +1 -1
  47. package/dist/types/components/Resizer/ResizerButton.d.ts +1 -1
  48. package/dist/types/components/Tooltip.d.ts +5 -0
  49. package/dist/types/components/icons/add-author.d.ts +2 -1
  50. package/dist/types/components/icons/add-comment-icon.d.ts +2 -1
  51. package/dist/types/components/icons/add-icon-active.d.ts +2 -1
  52. package/dist/types/components/icons/add-icon-inverted.d.ts +2 -1
  53. package/dist/types/components/icons/back-arrow.d.ts +2 -1
  54. package/dist/types/components/icons/bookmark.d.ts +2 -1
  55. package/dist/types/components/icons/google.d.ts +2 -1
  56. package/dist/types/components/icons/orcid.d.ts +2 -1
  57. package/dist/types/components/icons/project-notification.d.ts +2 -1
  58. package/dist/types/components/icons/project.d.ts +2 -1
  59. package/dist/types/components/icons/projects-list.d.ts +2 -1
  60. package/dist/types/components/icons/search.d.ts +2 -1
  61. package/dist/types/components/icons/tick-mark.d.ts +2 -1
  62. package/dist/types/components/icons/user.d.ts +2 -1
  63. package/dist/types/index.d.ts +1 -2
  64. package/dist/types/lib/capabilities.d.ts +3 -4
  65. package/package.json +30 -41
  66. package/dist/cjs/components/ColorField/ColorField.js +0 -49
  67. package/dist/cjs/components/ColorField/ColorSelector.js +0 -115
  68. package/dist/cjs/components/ColorField/index.js +0 -32
  69. package/dist/cjs/components/Tip.js +0 -83
  70. package/dist/es/components/ColorField/ColorField.js +0 -42
  71. package/dist/es/components/ColorField/ColorSelector.js +0 -85
  72. package/dist/es/components/ColorField/index.js +0 -16
  73. package/dist/es/components/FileManager/Tooltip.js +0 -20
  74. package/dist/es/components/Tip.js +0 -53
  75. package/dist/types/components/ColorField/ColorField.d.ts +0 -27
  76. package/dist/types/components/ColorField/ColorSelector.d.ts +0 -19
  77. package/dist/types/components/ColorField/index.d.ts +0 -16
  78. package/dist/types/components/FileManager/Tooltip.d.ts +0 -2
  79. package/dist/types/components/Tip.d.ts +0 -18
  80. package/styles/tip.css +0 -82
@@ -1,19 +0,0 @@
1
- /*!
2
- * © 2019 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import React from 'react';
17
- export declare const ColorSelector: React.FC<{
18
- handleChange: (value: string) => void;
19
- }>;
@@ -1,16 +0,0 @@
1
- /*!
2
- * © 2019 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export * from './ColorField';
@@ -1,2 +0,0 @@
1
- import ReactTooltip from 'react-tooltip';
2
- export declare const Tooltip: import("styled-components").StyledComponent<typeof ReactTooltip, import("styled-components").DefaultTheme, {}, never>;
@@ -1,18 +0,0 @@
1
- /*!
2
- * © 2019 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import React from 'react';
17
- import { Options } from 'tooltip.js';
18
- export declare const Tip: React.FC<Pick<Options, 'placement' | 'title'>>;
package/styles/tip.css DELETED
@@ -1,82 +0,0 @@
1
- .tooltip {
2
- z-index: 1000;
3
- position: absolute;
4
- background: #353535;
5
- color: #fff;
6
- padding: 2px 8px;
7
- border-radius: 3px;
8
- font-family: inherit;
9
- font-size: 14px;
10
- letter-spacing: -0.2px;
11
- opacity: 0.95;
12
- pointer-events: none;
13
- max-width: 300px;
14
- }
15
-
16
- .tooltip[x-placement^="top"] {
17
- margin-bottom: 5px;
18
- }
19
-
20
- .tooltip[x-placement^="bottom"] {
21
- margin-top: 5px;
22
- }
23
-
24
- .tooltip[x-placement^="right"] {
25
- margin-left: 5px;
26
- }
27
-
28
- .tooltip[x-placement^="left"] {
29
- margin-right: 5px;
30
- }
31
-
32
- .tooltip-arrow {
33
- width: 0;
34
- height: 0;
35
- border: 5px solid #353535;
36
- position: absolute;
37
- margin: 5px;
38
- }
39
-
40
- .tooltip[x-placement^="top"] .tooltip-arrow {
41
- border-width: 5px 5px 0 5px;
42
- border-left-color: transparent;
43
- border-right-color: transparent;
44
- border-bottom-color: transparent;
45
- bottom: -5px;
46
- left: calc(50% - 5px);
47
- margin-top: 0;
48
- margin-bottom: 0;
49
- }
50
-
51
- .tooltip[x-placement^="bottom"] .tooltip-arrow {
52
- border-width: 0 5px 5px 5px;
53
- border-left-color: transparent;
54
- border-right-color: transparent;
55
- border-top-color: transparent;
56
- top: -5px;
57
- left: calc(50% - 5px);
58
- margin-top: 0;
59
- margin-bottom: 0;
60
- }
61
-
62
- .tooltip[x-placement^="right"] .tooltip-arrow {
63
- border-width: 5px 5px 5px 0;
64
- border-left-color: transparent;
65
- border-top-color: transparent;
66
- border-bottom-color: transparent;
67
- left: -5px;
68
- top: calc(50% - 5px);
69
- margin-left: 0;
70
- margin-right: 0;
71
- }
72
-
73
- .tooltip[x-placement^="left"] .tooltip-arrow {
74
- border-width: 5px 0 5px 5px;
75
- border-right-color: transparent;
76
- border-top-color: transparent;
77
- border-bottom-color: transparent;
78
- right: -5px;
79
- top: calc(50% - 5px);
80
- margin-left: 0;
81
- margin-right: 0;
82
- }