@manuscripts/style-guide 1.5.0-LEAN-3180-2 → 1.5.0-LEAN-3083

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 (82) hide show
  1. package/dist/cjs/components/Dialog.js +3 -3
  2. package/dist/cjs/components/SimpleModal.js +95 -0
  3. package/dist/cjs/components/StyledModal.js +3 -80
  4. package/dist/cjs/index.js +1 -4
  5. package/dist/es/components/Dialog.js +2 -2
  6. package/dist/es/components/SimpleModal.js +88 -0
  7. package/dist/es/components/StyledModal.js +3 -81
  8. package/dist/es/index.js +1 -4
  9. package/dist/types/components/Dialog.d.ts +1 -1
  10. package/dist/types/components/SimpleModal.d.ts +41 -0
  11. package/dist/types/components/StyledModal.d.ts +4 -26
  12. package/dist/types/index.d.ts +1 -4
  13. package/package.json +1 -2
  14. package/dist/cjs/components/AffiliationsList.js +0 -43
  15. package/dist/cjs/components/AuthorsContainer.js +0 -71
  16. package/dist/cjs/components/AuthorsList/Author.js +0 -99
  17. package/dist/cjs/components/AuthorsList/AuthorsList.js +0 -52
  18. package/dist/cjs/components/AuthorsList/index.js +0 -32
  19. package/dist/cjs/components/References/BibliographyItemSource.js +0 -91
  20. package/dist/cjs/components/References/CitationEditor.js +0 -146
  21. package/dist/cjs/components/References/CitationViewer.js +0 -69
  22. package/dist/cjs/components/References/ReferenceForm.js +0 -415
  23. package/dist/cjs/components/References/ReferenceLine.js +0 -52
  24. package/dist/cjs/components/References/ReferenceSearch.js +0 -124
  25. package/dist/cjs/components/References/ReferenceSearchResults.js +0 -68
  26. package/dist/cjs/components/References/ReferenceSearchResultsPlaceholder.js +0 -43
  27. package/dist/cjs/components/References/ReferenceSearchSection.js +0 -118
  28. package/dist/cjs/components/References/ReferencesModal.js +0 -220
  29. package/dist/cjs/components/References/SearchInput.js +0 -103
  30. package/dist/cjs/components/References/index.js +0 -20
  31. package/dist/cjs/components/SelectField.js +0 -25
  32. package/dist/cjs/components/Sidebar.js +0 -44
  33. package/dist/cjs/components/icons/delete-icon.js +0 -15
  34. package/dist/cjs/components/icons/link-icon.js +0 -11
  35. package/dist/cjs/components/icons/template-icon.js +0 -11
  36. package/dist/cjs/hooks/use-scroll-detection.js +0 -53
  37. package/dist/es/components/AffiliationsList.js +0 -36
  38. package/dist/es/components/AuthorsContainer.js +0 -41
  39. package/dist/es/components/AuthorsList/Author.js +0 -69
  40. package/dist/es/components/AuthorsList/AuthorsList.js +0 -45
  41. package/dist/es/components/AuthorsList/index.js +0 -16
  42. package/dist/es/components/References/BibliographyItemSource.js +0 -64
  43. package/dist/es/components/References/CitationEditor.js +0 -116
  44. package/dist/es/components/References/CitationViewer.js +0 -39
  45. package/dist/es/components/References/ReferenceForm.js +0 -385
  46. package/dist/es/components/References/ReferenceLine.js +0 -42
  47. package/dist/es/components/References/ReferenceSearch.js +0 -94
  48. package/dist/es/components/References/ReferenceSearchResults.js +0 -61
  49. package/dist/es/components/References/ReferenceSearchResultsPlaceholder.js +0 -36
  50. package/dist/es/components/References/ReferenceSearchSection.js +0 -88
  51. package/dist/es/components/References/ReferencesModal.js +0 -189
  52. package/dist/es/components/References/SearchInput.js +0 -73
  53. package/dist/es/components/References/index.js +0 -4
  54. package/dist/es/components/SelectField.js +0 -18
  55. package/dist/es/components/Sidebar.js +0 -18
  56. package/dist/es/components/icons/delete-icon.js +0 -8
  57. package/dist/es/components/icons/link-icon.js +0 -4
  58. package/dist/es/components/icons/template-icon.js +0 -4
  59. package/dist/es/hooks/use-scroll-detection.js +0 -49
  60. package/dist/types/components/AffiliationsList.d.ts +0 -22
  61. package/dist/types/components/AuthorsContainer.d.ts +0 -25
  62. package/dist/types/components/AuthorsList/Author.d.ts +0 -29
  63. package/dist/types/components/AuthorsList/AuthorsList.d.ts +0 -28
  64. package/dist/types/components/AuthorsList/index.d.ts +0 -16
  65. package/dist/types/components/References/BibliographyItemSource.d.ts +0 -38
  66. package/dist/types/components/References/CitationEditor.d.ts +0 -17
  67. package/dist/types/components/References/CitationViewer.d.ts +0 -24
  68. package/dist/types/components/References/ReferenceForm.d.ts +0 -35
  69. package/dist/types/components/References/ReferenceLine.d.ts +0 -10
  70. package/dist/types/components/References/ReferenceSearch.d.ts +0 -26
  71. package/dist/types/components/References/ReferenceSearchResults.d.ts +0 -26
  72. package/dist/types/components/References/ReferenceSearchResultsPlaceholder.d.ts +0 -2
  73. package/dist/types/components/References/ReferenceSearchSection.d.ts +0 -25
  74. package/dist/types/components/References/ReferencesModal.d.ts +0 -14
  75. package/dist/types/components/References/SearchInput.d.ts +0 -18
  76. package/dist/types/components/References/index.d.ts +0 -4
  77. package/dist/types/components/SelectField.d.ts +0 -27
  78. package/dist/types/components/Sidebar.d.ts +0 -2
  79. package/dist/types/components/icons/delete-icon.d.ts +0 -2
  80. package/dist/types/components/icons/link-icon.d.ts +0 -2
  81. package/dist/types/components/icons/template-icon.d.ts +0 -2
  82. package/dist/types/hooks/use-scroll-detection.d.ts +0 -22
@@ -1,24 +0,0 @@
1
- /*!
2
- * © 2024 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 { BibliographyItem } from '@manuscripts/json-schema';
17
- import React from 'react';
18
- export declare const CitedItems: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
- export declare const CitedItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
- export interface CitationViewerProps {
21
- rids: string[];
22
- items: BibliographyItem[];
23
- }
24
- export declare const CitationViewer: React.FC<CitationViewerProps>;
@@ -1,35 +0,0 @@
1
- /*!
2
- * © 2023 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 { BibliographyItem } from '@manuscripts/json-schema';
17
- import React, { MutableRefObject } from 'react';
18
- export declare const LabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
- export declare const FormField: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
- export declare const ReferenceTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, import("../Form").ErrorProps, never>;
21
- export declare const FlexForm: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "name" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "method" | "target" | "acceptCharset" | "action" | "encType" | "noValidate"> & React.RefAttributes<HTMLFormElement>>, import("styled-components").DefaultTheme, {}, never>;
22
- export declare const FormFields: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
- export type ReferenceFormValues = Pick<BibliographyItem, '_id' | 'title' | 'author' | 'DOI' | 'issued' | 'type' | 'container-title' | 'URL' | 'issue' | 'volume' | 'supplement' | 'page'>;
24
- export interface ReferenceFormActions {
25
- reset: () => void;
26
- }
27
- export declare const ReferenceForm: React.FC<{
28
- values: ReferenceFormValues;
29
- showDelete: boolean;
30
- handleChange: (values: ReferenceFormValues) => void;
31
- handleCancel: () => void;
32
- handleDelete: () => void;
33
- handleSave: (values: ReferenceFormValues) => void;
34
- actionsRef?: MutableRefObject<ReferenceFormActions | undefined>;
35
- }>;
@@ -1,10 +0,0 @@
1
- import { BibliographyItem } from '@manuscripts/json-schema';
2
- import React from 'react';
3
- export declare const Metadata: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const MetadataContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
- export declare const metadata: (item: BibliographyItem) => string;
6
- export declare const issuedYear: (item: Partial<BibliographyItem>) => string;
7
- export declare const authors: (item: BibliographyItem) => string;
8
- export declare const ReferenceLine: React.FC<{
9
- item: BibliographyItem;
10
- }>;
@@ -1,26 +0,0 @@
1
- /*!
2
- * © 2023 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 { BibliographyItem } from '@manuscripts/json-schema';
17
- import React from 'react';
18
- import { BibliographyItemSource } from './BibliographyItemSource';
19
- export declare const ReferenceSearch: React.FC<{
20
- query?: string;
21
- sources: BibliographyItemSource[];
22
- items: BibliographyItem[];
23
- handleAdd: () => void;
24
- handleCite: (items: BibliographyItem[]) => void;
25
- handleCancel: () => void;
26
- }>;
@@ -1,26 +0,0 @@
1
- /*!
2
- * © 2023 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 { BibliographyItem } from '@manuscripts/json-schema';
17
- import React from 'react';
18
- export declare const ReferenceSearchResultsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
- export declare const ReferenceSearchResult: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
- export declare const ReferenceSearchResults: React.FC<{
21
- items: BibliographyItem[];
22
- total: number;
23
- isSelected: (item: BibliographyItem) => boolean;
24
- handleSelect: (item: BibliographyItem) => void;
25
- handleShowMore: () => void;
26
- }>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ReferenceSearchResultsPlaceholder: React.FC;
@@ -1,25 +0,0 @@
1
- /*!
2
- * © 2023 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 { BibliographyItem } from '@manuscripts/json-schema';
17
- import React from 'react';
18
- import { BibliographyItemSource } from './BibliographyItemSource';
19
- export declare const Arrow: import("styled-components").StyledComponent<React.SFC<React.SVGAttributes<SVGElement>>, import("styled-components").DefaultTheme, {}, never>;
20
- export declare const ReferenceSearchSection: React.FC<{
21
- query: string;
22
- source: BibliographyItemSource;
23
- isSelected: (item: BibliographyItem) => boolean;
24
- handleSelect: (item: BibliographyItem) => void;
25
- }>;
@@ -1,14 +0,0 @@
1
- import { BibliographyItem } from '@manuscripts/json-schema';
2
- import React from 'react';
3
- import { ReferenceFormValues } from './ReferenceForm';
4
- export declare const normalize: (item: BibliographyItem) => ReferenceFormValues;
5
- export interface ReferencesModalProps {
6
- isOpen: boolean;
7
- handleCancel: () => void;
8
- items: BibliographyItem[];
9
- item?: BibliographyItem;
10
- citationCounts: Map<string, number>;
11
- handleSave: (item: BibliographyItem) => void;
12
- handleDelete: (item: BibliographyItem) => void;
13
- }
14
- export declare const ReferencesModal: React.FC<ReferencesModalProps>;
@@ -1,18 +0,0 @@
1
- /*!
2
- * © 2023 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, { InputHTMLAttributes } from 'react';
17
- export declare const SearchWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
- export declare const SearchInput: React.FC<InputHTMLAttributes<HTMLInputElement>>;
@@ -1,4 +0,0 @@
1
- export * from './CitationEditor';
2
- export * from './CitationViewer';
3
- export * from './ReferencesModal';
4
- export * from './BibliographyItemSource';
@@ -1,27 +0,0 @@
1
- /*!
2
- * © 2024 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 { FieldProps } from 'formik';
17
- import React from 'react';
18
- export type OptionType = {
19
- label: string;
20
- value: string;
21
- };
22
- interface Props {
23
- id?: string;
24
- options: OptionType[];
25
- }
26
- export declare const SelectField: React.FC<Props & FieldProps>;
27
- export {};
@@ -1,2 +0,0 @@
1
- export declare const SidebarStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
2
- export declare const SidebarContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const DeleteIcon: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const LinkIcon: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TemplateIcon: React.FC;
@@ -1,22 +0,0 @@
1
- /*!
2
- * © 2023 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 declare const useScrollDetection: (topTrigger: number, bottomTrigger: number) => {
17
- ref: (node: HTMLDivElement | null) => void;
18
- triggers: {
19
- bottom: boolean;
20
- top: boolean;
21
- };
22
- };