@manuscripts/style-guide 2.0.29-LEAN-4213.0 → 2.0.30-LEAN-4218.1

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 (50) hide show
  1. package/dist/cjs/components/ContextMenu.js +1 -0
  2. package/dist/cjs/components/Dialog.js +3 -0
  3. package/dist/cjs/components/MultiValueInput.js +152 -0
  4. package/dist/cjs/components/TextField.js +4 -4
  5. package/dist/cjs/components/icons/add-outline.js +1 -1
  6. package/dist/cjs/components/icons/circle-tick-animation.js +13 -2
  7. package/dist/cjs/components/icons/index.js +4 -12
  8. package/dist/cjs/components/icons/outline-embed.js +10 -0
  9. package/dist/cjs/index.js +1 -2
  10. package/dist/es/components/ContextMenu.js +2 -1
  11. package/dist/es/components/Dialog.js +4 -1
  12. package/dist/es/components/MultiValueInput.js +122 -0
  13. package/dist/es/components/TextField.js +1 -1
  14. package/dist/es/components/icons/add-outline.js +1 -1
  15. package/dist/es/components/icons/circle-tick-animation.js +13 -2
  16. package/dist/es/components/icons/index.js +1 -5
  17. package/dist/es/components/icons/outline-embed.js +5 -0
  18. package/dist/es/index.js +1 -2
  19. package/dist/types/components/Dialog.d.ts +2 -1
  20. package/dist/types/components/MultiValueInput.d.ts +8 -0
  21. package/dist/types/components/TextField.d.ts +1 -0
  22. package/dist/types/components/icons/circle-tick-animation.d.ts +0 -1
  23. package/dist/types/components/icons/index.d.ts +1 -5
  24. package/dist/types/components/icons/outline-embed.d.ts +4 -0
  25. package/dist/types/index.d.ts +1 -2
  26. package/package.json +1 -1
  27. package/dist/cjs/components/Drawer.js +0 -119
  28. package/dist/cjs/components/SelectedItemsBox.js +0 -69
  29. package/dist/cjs/components/icons/add-institution.js +0 -23
  30. package/dist/cjs/components/icons/add-user.js +0 -11
  31. package/dist/cjs/components/icons/affiliation-placeholder.js +0 -42
  32. package/dist/cjs/components/icons/affiliation.js +0 -10
  33. package/dist/cjs/components/icons/author-placeholder.js +0 -49
  34. package/dist/cjs/components/icons/x.js +0 -12
  35. package/dist/es/components/Drawer.js +0 -89
  36. package/dist/es/components/SelectedItemsBox.js +0 -62
  37. package/dist/es/components/icons/add-institution.js +0 -18
  38. package/dist/es/components/icons/add-user.js +0 -6
  39. package/dist/es/components/icons/affiliation-placeholder.js +0 -37
  40. package/dist/es/components/icons/affiliation.js +0 -5
  41. package/dist/es/components/icons/author-placeholder.js +0 -44
  42. package/dist/es/components/icons/x.js +0 -5
  43. package/dist/types/components/Drawer.d.ts +0 -16
  44. package/dist/types/components/SelectedItemsBox.d.ts +0 -12
  45. package/dist/types/components/icons/add-institution.d.ts +0 -4
  46. package/dist/types/components/icons/add-user.d.ts +0 -4
  47. package/dist/types/components/icons/affiliation-placeholder.d.ts +0 -19
  48. package/dist/types/components/icons/affiliation.d.ts +0 -4
  49. package/dist/types/components/icons/author-placeholder.d.ts +0 -19
  50. package/dist/types/components/icons/x.d.ts +0 -4
@@ -38,6 +38,7 @@ const icons = {
38
38
  Edit: icons_1.EditIcon,
39
39
  AddOutline: icons_1.AddOutlineIcon,
40
40
  Scroll: icons_1.ScrollIcon,
41
+ Delete: icons_1.DeleteIcon,
41
42
  };
42
43
  const ContextMenu = ({ actions }) => (react_1.default.createElement(Button_1.IconButtonGroup, { size: 32 }, actions.map((action) => {
43
44
  const Icon = icons[action.icon];
@@ -83,6 +83,7 @@ var Category;
83
83
  (function (Category) {
84
84
  Category["error"] = "error";
85
85
  Category["confirmation"] = "confirmation";
86
+ Category["warning"] = "warning";
86
87
  })(Category = exports.Category || (exports.Category = {}));
87
88
  const PrimaryAction = (props) => props.isDestructive ? (props.hasForm ? (react_1.default.createElement(Button_1.PrimaryButton, { danger: true, disabled: props.disabled, form: "formDialog", type: "submit" }, props.title)) : (react_1.default.createElement(Button_1.PrimaryButton, { danger: true, disabled: props.disabled, onClick: props.action, autoFocus: true }, props.title))) : props.hasForm ? (react_1.default.createElement(Button_1.PrimaryButton, { disabled: props.disabled, form: "formDialog", type: "submit" }, props.title)) : (react_1.default.createElement(Button_1.PrimaryButton, { disabled: props.disabled, onClick: props.action, autoFocus: true }, props.title));
88
89
  const SecondaryAction = (props) => (react_1.default.createElement(Button_1.SecondaryButton, { disabled: props.disabled, onClick: props.action }, props.title));
@@ -125,6 +126,8 @@ class Dialog extends react_1.default.Component {
125
126
  react_1.default.createElement(HeaderContainer, null,
126
127
  category === Category.error && (react_1.default.createElement(Icon, null,
127
128
  react_1.default.createElement(icons_1.AttentionRedIcon, null))),
129
+ category === Category.warning && (react_1.default.createElement(Icon, null,
130
+ react_1.default.createElement(icons_1.AttentionOrangeIcon, null))),
128
131
  header),
129
132
  react_1.default.createElement(exports.MessageContainer, null,
130
133
  message,
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MultiValueInput = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const styled_components_1 = __importDefault(require("styled-components"));
32
+ const TextField_1 = require("./TextField");
33
+ const Container = styled_components_1.default.div `
34
+ ${TextField_1.commonStyles}
35
+
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ gap: 4px;
39
+ align-items: center;
40
+ padding: 0;
41
+ background: hotpink
42
+
43
+
44
+ &:hover Input {
45
+ background-color: ${(props) => props.theme.colors.background.fifth};
46
+ }
47
+ &:has(Input:focus) {
48
+ background-color: ${(props) => props.theme.colors.background.fifth};
49
+ border-color: ${(props) => props.theme.colors.border.field.hover};
50
+ }
51
+ `;
52
+ const Chip = styled_components_1.default.span `
53
+ display: flex;
54
+ align-items: center;
55
+ background-color: #f2f2f2;
56
+ color: ${(props) => props.theme.colors.text.primary};
57
+ border-radius: 12px;
58
+ border: 1px solid ${(props) => props.theme.colors.border.tertiary};
59
+ padding: ${(props) => props.theme.grid.unit}px;
60
+ font-size: ${(props) => props.theme.font.size.small};
61
+ line-height: ${(props) => props.theme.font.lineHeight.normal};
62
+
63
+ & + Input {
64
+ padding-left: 0;
65
+ }
66
+ `;
67
+ const RemoveButton = styled_components_1.default.button `
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: 10px;
72
+ height: 10px;
73
+ color: white;
74
+ background: #6e6e6e;
75
+ margin-left: 4px;
76
+ border: none;
77
+ border-radius: 100%;
78
+ cursor: pointer;
79
+ font-size: 10px;
80
+
81
+ &:hover {
82
+ background: black;
83
+ }
84
+ `;
85
+ const Input = styled_components_1.default.input `
86
+ ${TextField_1.commonStyles}
87
+
88
+ border: none;
89
+ flex: 1;
90
+ min-width: 6em;
91
+ padding: 10px 16px;
92
+
93
+ appearance: none;
94
+ -moz-appearance: textfield;
95
+ -webkit-appearance: none;
96
+
97
+ &::-webkit-outer-spin-button,
98
+ &::-webkit-inner-spin-button {
99
+ -webkit-appearance: none;
100
+ margin: 0;
101
+ }
102
+
103
+ &::-moz-appearance: textfield;
104
+ `;
105
+ const MultiValueInput = ({ inputType, placeholder = '', initialValues = [], onChange, }) => {
106
+ const [values, setValues] = (0, react_1.useState)(initialValues);
107
+ const [currentValue, setCurrentValue] = (0, react_1.useState)('');
108
+ const handleAddValue = (value) => {
109
+ if (value.trim() && !values.includes(value.trim())) {
110
+ const updatedValues = [...values, value.trim()];
111
+ setValues(updatedValues);
112
+ onChange === null || onChange === void 0 ? void 0 : onChange(updatedValues);
113
+ }
114
+ setCurrentValue('');
115
+ };
116
+ const handleInputChange = (e) => {
117
+ const value = e.target.value;
118
+ if (inputType === 'number' && /^\d*$/.test(value)) {
119
+ setCurrentValue(value);
120
+ }
121
+ else if (inputType === 'text') {
122
+ setCurrentValue(value);
123
+ }
124
+ };
125
+ const handleBlur = () => {
126
+ if (currentValue) {
127
+ handleAddValue(currentValue);
128
+ }
129
+ };
130
+ const handleKeyDown = (e) => {
131
+ if (e.key === 'Enter') {
132
+ e.preventDefault();
133
+ handleAddValue(currentValue);
134
+ }
135
+ };
136
+ const handleRemoveValue = (index) => {
137
+ const updatedValues = values.filter((_, i) => i !== index);
138
+ setValues(updatedValues);
139
+ onChange === null || onChange === void 0 ? void 0 : onChange(updatedValues);
140
+ };
141
+ const xplaceholder = placeholder
142
+ ? placeholder
143
+ : inputType === 'number'
144
+ ? 'Enter number and press enter'
145
+ : 'Enter text and press enter';
146
+ return (react_1.default.createElement(Container, null,
147
+ values.map((value, index) => (react_1.default.createElement(Chip, { key: index },
148
+ value,
149
+ react_1.default.createElement(RemoveButton, { onMouseUp: () => handleRemoveValue(index) }, "\u00D7")))),
150
+ react_1.default.createElement(Input, { type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: xplaceholder })));
151
+ };
152
+ exports.MultiValueInput = MultiValueInput;
@@ -41,10 +41,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.TextFieldWrapper = exports.TextFieldLabel = exports.TextFieldGroup = exports.TextArea = exports.TextField = void 0;
44
+ exports.TextFieldWrapper = exports.TextFieldLabel = exports.TextFieldGroup = exports.TextArea = exports.TextField = exports.commonStyles = void 0;
45
45
  const react_1 = __importDefault(require("react"));
46
46
  const styled_components_1 = __importStar(require("styled-components"));
47
- const commonStyles = (0, styled_components_1.css) `
47
+ exports.commonStyles = (0, styled_components_1.css) `
48
48
  border: 1px solid
49
49
  ${(props) => props.error
50
50
  ? props.theme.colors.border.error
@@ -75,10 +75,10 @@ const commonStyles = (0, styled_components_1.css) `
75
75
  `;
76
76
  exports.TextField = styled_components_1.default.input `
77
77
  display: block;
78
- ${commonStyles}
78
+ ${exports.commonStyles}
79
79
  `;
80
80
  exports.TextArea = styled_components_1.default.textarea `
81
- ${commonStyles}
81
+ ${exports.commonStyles}
82
82
  max-width: 100%;
83
83
  `;
84
84
  exports.TextFieldGroup = styled_components_1.default.div `
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
- const AddOutlineIcon = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none" }, props),
7
+ const AddOutlineIcon = (props) => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none" },
8
8
  react_1.default.createElement("path", { d: "M6.875 1.27794C7.57115 0.876016 8.42885 0.876016 9.125 1.27794L14.125 4.16469C14.8212 4.56662 15.25 5.3094 15.25 6.11325V11.8868C15.25 12.6906 14.8212 13.4334 14.125 13.8353L9.125 16.7221C8.42885 17.124 7.57115 17.124 6.875 16.7221L1.875 13.8353C1.17885 13.4334 0.75 12.6906 0.75 11.8868V6.11325C0.75 5.3094 1.17885 4.56662 1.875 4.16469L6.875 1.27794Z", stroke: "#353535", strokeWidth: "1.5" }),
9
9
  react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00244 4.70996C7.78153 4.70996 7.60244 4.88905 7.60244 5.10996V8.30996H4.40244C4.18153 8.30996 4.00244 8.48905 4.00244 8.70996C4.00244 8.93087 4.18153 9.10996 4.40244 9.10996H7.60244V12.31C7.60244 12.5309 7.78153 12.71 8.00244 12.71C8.22336 12.71 8.40244 12.5309 8.40244 12.31V9.10996H11.6024C11.8234 9.10996 12.0024 8.93087 12.0024 8.70996C12.0024 8.48905 11.8234 8.30996 11.6024 8.30996H8.40244V5.10996C8.40244 4.88905 8.22336 4.70996 8.00244 4.70996Z", fill: "#353535" }),
10
10
  react_1.default.createElement("path", { d: "M7.60244 8.30996V8.80996H8.10244V8.30996H7.60244ZM7.60244 9.10996H8.10244V8.60996H7.60244V9.10996ZM8.40244 9.10996V8.60996H7.90244V9.10996H8.40244ZM8.40244 8.30996H7.90244V8.80996H8.40244V8.30996ZM8.10244 5.10996C8.10244 5.16519 8.05767 5.20996 8.00244 5.20996V4.20996C7.50539 4.20996 7.10244 4.6129 7.10244 5.10996H8.10244ZM8.10244 8.30996V5.10996H7.10244V8.30996H8.10244ZM4.40244 8.80996H7.60244V7.80996H4.40244V8.80996ZM4.50244 8.70996C4.50244 8.76519 4.45767 8.80996 4.40244 8.80996V7.80996C3.90538 7.80996 3.50244 8.2129 3.50244 8.70996H4.50244ZM4.40244 8.60996C4.45767 8.60996 4.50244 8.65473 4.50244 8.70996H3.50244C3.50244 9.20702 3.90538 9.60996 4.40244 9.60996V8.60996ZM7.60244 8.60996H4.40244V9.60996H7.60244V8.60996ZM8.10244 12.31V9.10996H7.10244V12.31H8.10244ZM8.00244 12.21C8.05767 12.21 8.10244 12.2547 8.10244 12.31H7.10244C7.10244 12.807 7.50539 13.21 8.00244 13.21V12.21ZM7.90244 12.31C7.90244 12.2547 7.94721 12.21 8.00244 12.21V13.21C8.4995 13.21 8.90244 12.807 8.90244 12.31H7.90244ZM7.90244 9.10996V12.31H8.90244V9.10996H7.90244ZM11.6024 8.60996H8.40244V9.60996H11.6024V8.60996ZM11.5024 8.70996C11.5024 8.65473 11.5472 8.60996 11.6024 8.60996V9.60996C12.0995 9.60996 12.5024 9.20702 12.5024 8.70996H11.5024ZM11.6024 8.80996C11.5472 8.80996 11.5024 8.76519 11.5024 8.70996H12.5024C12.5024 8.21291 12.0995 7.80996 11.6024 7.80996V8.80996ZM8.40244 8.80996H11.6024V7.80996H8.40244V8.80996ZM7.90244 5.10996V8.30996H8.90244V5.10996H7.90244ZM8.00244 5.20996C7.94721 5.20996 7.90244 5.16519 7.90244 5.10996H8.90244C8.90244 4.6129 8.4995 4.20996 8.00244 4.20996V5.20996Z", fill: "#353535" })));
@@ -38,6 +38,16 @@ const fadeIn = (0, styled_components_1.keyframes) `
38
38
  transform: scale(1);
39
39
  }
40
40
  `;
41
+ const fadeOut = (0, styled_components_1.keyframes) `
42
+ 0% {
43
+ opacity: 1;
44
+ transform: scale(1);
45
+ }
46
+ 100% {
47
+ opacity: 0;
48
+ transform: scale(0.8);
49
+ }
50
+ `;
41
51
  const fillCircle = (0, styled_components_1.keyframes) `
42
52
  from {
43
53
  stroke-dashoffset: 283;
@@ -61,6 +71,7 @@ const Svg = styled_components_1.default.svg `
61
71
  opacity: 0;
62
72
  animation: ${fadeIn} 0.3s ease-out forwards;
63
73
 
74
+ // Start fading out at 2.7s (300ms before the 3s unmount)
64
75
  @keyframes autoFadeOut {
65
76
  0%,
66
77
  90% {
@@ -92,8 +103,8 @@ const Tick = styled_components_1.default.polyline `
92
103
  stroke-linejoin: round;
93
104
  opacity: 0;
94
105
  `;
95
- const CircleTickAnimation = ({ size, style, }) => {
96
- return (react_1.default.createElement(Svg, { width: size, height: size, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", style: style },
106
+ const CircleTickAnimation = ({ size }) => {
107
+ return (react_1.default.createElement(Svg, { width: size, height: size, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" },
97
108
  react_1.default.createElement(Circle, { cx: "50", cy: "50", r: "45", strokeWidth: "5" }),
98
109
  react_1.default.createElement(Tick, { points: "30,50 45,65 70,40" })));
99
110
  };
@@ -18,8 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.LogoutIcon = exports.LinkIcon = exports.HelpIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = exports.FileVideoIcon = exports.FileUnknownIcon = exports.FileTableIcon = exports.FilePdfIcon = exports.FileMainDocumentIcon = exports.FileLatexIcon = exports.FileImageIcon = exports.FileGraphicalAbstractIcon = exports.FileFigureIcon = exports.FileDocumentIcon = exports.FileCorruptedIcon = exports.FileCompressedIcon = exports.FileCodeIcon = exports.FileAudioIcon = exports.EditAttrsTrackingIcon = exports.EditIcon = exports.DraggableIcon = exports.DotsIcon = exports.DeleteIcon = exports.DeleteSolidIcon = exports.CorrespondingAuthorIcon = exports.CommentResolveIcon = exports.CommentReplyIcon = exports.CitationCountIcon = exports.SystemUserAvatarIcon = exports.AffiliationPlaceholderIcon = exports.AuthorPlaceholderIcon = exports.AffiliationIcon = exports.AlertIcon = exports.AvatarIcon = exports.AttentionRedIcon = exports.AttentionOrangeIcon = exports.AttentionGreenIcon = exports.AttentionBlueIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowLeftIcon = exports.ArrowDownCircleIcon = exports.ArrowDownIcon = exports.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
22
- exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = exports.ToolbarUnorderedListIcon = exports.ToolbarUnderlineIcon = exports.ToolbarTableIcon = exports.ToolbarSymbolIcon = exports.ToolbarSuperscriptIcon = exports.ToolbarSubscriptIcon = exports.ToolbarOrderedListIcon = exports.ToolbarItalicIcon = exports.ToolbarFigureIcon = exports.ToolbarEquationIcon = exports.ToolbarCodeIcon = exports.ToolbarCitationIcon = exports.ToolbarBoldIcon = exports.TaskStepDoneIcon = exports.SliderOnIcon = exports.SliderOffIcon = exports.SectionCategoryIcon = exports.SearchIcon = exports.ScrollIcon = exports.SaveStatusSavingIcon = exports.SaveStatusSavedIcon = exports.SaveStatusOfflineIcon = exports.RoleReadingIcon = exports.RoleAnnotatingIcon = exports.PlusIcon = exports.OutlineUnorderedListIcon = exports.OutlineTableIcon = exports.OutlineSectionIcon = exports.OutlinePullQuoteIcon = exports.OutlineParagraphIcon = exports.OutlineOrderedListIcon = exports.OutlineManuscriptIcon = exports.OutlineFigureIcon = exports.OutlineEquationIcon = exports.OutlineCodeIcon = exports.OutlineBlockQuoteIcon = void 0;
21
+ exports.OutlineEquationIcon = exports.OutlineCodeIcon = exports.OutlineBlockQuoteIcon = exports.LogoutIcon = exports.LinkIcon = exports.HelpIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = exports.FileVideoIcon = exports.FileUnknownIcon = exports.FileTableIcon = exports.FilePdfIcon = exports.FileMainDocumentIcon = exports.FileLatexIcon = exports.FileImageIcon = exports.FileGraphicalAbstractIcon = exports.FileFigureIcon = exports.FileDocumentIcon = exports.FileCorruptedIcon = exports.FileCompressedIcon = exports.FileCodeIcon = exports.FileAudioIcon = exports.EditAttrsTrackingIcon = exports.EditIcon = exports.DraggableIcon = exports.DotsIcon = exports.DeleteIcon = exports.DeleteSolidIcon = exports.CorrespondingAuthorIcon = exports.CommentResolveIcon = exports.CommentReplyIcon = exports.CitationCountIcon = exports.SystemUserAvatarIcon = exports.AlertIcon = exports.AvatarIcon = exports.AttentionRedIcon = exports.AttentionOrangeIcon = exports.AttentionGreenIcon = exports.AttentionBlueIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowLeftIcon = exports.ArrowDownCircleIcon = exports.ArrowDownIcon = exports.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
22
+ exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = exports.ToolbarUnorderedListIcon = exports.ToolbarUnderlineIcon = exports.ToolbarTableIcon = exports.ToolbarSymbolIcon = exports.ToolbarSuperscriptIcon = exports.ToolbarSubscriptIcon = exports.ToolbarOrderedListIcon = exports.ToolbarItalicIcon = exports.ToolbarFigureIcon = exports.ToolbarEquationIcon = exports.ToolbarCodeIcon = exports.ToolbarCitationIcon = exports.ToolbarBoldIcon = exports.TaskStepDoneIcon = exports.SliderOnIcon = exports.SliderOffIcon = exports.SectionCategoryIcon = exports.SearchIcon = exports.ScrollIcon = exports.SaveStatusSavingIcon = exports.SaveStatusSavedIcon = exports.SaveStatusOfflineIcon = exports.RoleReadingIcon = exports.RoleAnnotatingIcon = exports.PlusIcon = exports.OutlineUnorderedListIcon = exports.OutlineTableIcon = exports.OutlineSectionIcon = exports.OutlinePullQuoteIcon = exports.OutlineParagraphIcon = exports.OutlineOrderedListIcon = exports.OutlineManuscriptIcon = exports.OutlineFigureIcon = exports.OutlineEmbedIcon = void 0;
23
23
  var add_author_1 = require("./add-author");
24
24
  Object.defineProperty(exports, "AddAuthorIcon", { enumerable: true, get: function () { return __importDefault(add_author_1).default; } });
25
25
  var add_comment_1 = require("./add-comment");
@@ -54,12 +54,6 @@ var avatar_1 = require("./avatar");
54
54
  Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return __importDefault(avatar_1).default; } });
55
55
  var alert_1 = require("./alert");
56
56
  Object.defineProperty(exports, "AlertIcon", { enumerable: true, get: function () { return __importDefault(alert_1).default; } });
57
- var affiliation_1 = require("./affiliation");
58
- Object.defineProperty(exports, "AffiliationIcon", { enumerable: true, get: function () { return __importDefault(affiliation_1).default; } });
59
- var author_placeholder_1 = require("./author-placeholder");
60
- Object.defineProperty(exports, "AuthorPlaceholderIcon", { enumerable: true, get: function () { return __importDefault(author_placeholder_1).default; } });
61
- var affiliation_placeholder_1 = require("./affiliation-placeholder");
62
- Object.defineProperty(exports, "AffiliationPlaceholderIcon", { enumerable: true, get: function () { return __importDefault(affiliation_placeholder_1).default; } });
63
57
  var system_user_avatar_1 = require("./system-user-avatar");
64
58
  Object.defineProperty(exports, "SystemUserAvatarIcon", { enumerable: true, get: function () { return __importDefault(system_user_avatar_1).default; } });
65
59
  var citation_count_1 = require("./citation-count");
@@ -126,6 +120,8 @@ var outline_code_1 = require("./outline-code");
126
120
  Object.defineProperty(exports, "OutlineCodeIcon", { enumerable: true, get: function () { return __importDefault(outline_code_1).default; } });
127
121
  var outline_equation_1 = require("./outline-equation");
128
122
  Object.defineProperty(exports, "OutlineEquationIcon", { enumerable: true, get: function () { return __importDefault(outline_equation_1).default; } });
123
+ var outline_embed_1 = require("./outline-embed");
124
+ Object.defineProperty(exports, "OutlineEmbedIcon", { enumerable: true, get: function () { return __importDefault(outline_embed_1).default; } });
129
125
  var outline_figure_1 = require("./outline-figure");
130
126
  Object.defineProperty(exports, "OutlineFigureIcon", { enumerable: true, get: function () { return __importDefault(outline_figure_1).default; } });
131
127
  var outline_manuscript_1 = require("./outline-manuscript");
@@ -204,7 +200,3 @@ var circle_tick_animation_1 = require("./circle-tick-animation");
204
200
  Object.defineProperty(exports, "CrclTickAnimation", { enumerable: true, get: function () { return __importDefault(circle_tick_animation_1).default; } });
205
201
  var profile_avatar_1 = require("./profile-avatar");
206
202
  Object.defineProperty(exports, "ProfileIcon", { enumerable: true, get: function () { return __importDefault(profile_avatar_1).default; } });
207
- var add_user_1 = require("./add-user");
208
- Object.defineProperty(exports, "AddUserIcon", { enumerable: true, get: function () { return __importDefault(add_user_1).default; } });
209
- var add_institution_1 = require("./add-institution");
210
- Object.defineProperty(exports, "AddInstitutionIcon", { enumerable: true, get: function () { return __importDefault(add_institution_1).default; } });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const OutlineEmbedIcon = (props) => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.9098 2.88889C12.5223 2.88889 13.0801 3.17103 13.4826 3.63755C13.8647 4.08044 14.1053 4.69112 14.1053 5.36813V11.5208C14.1053 12.1978 13.8647 12.8084 13.4826 13.2513C13.0801 13.7178 12.5223 14 11.9098 14H4.09026C3.47778 14 2.91998 13.7178 2.51747 13.2513C2.13533 12.8084 1.89478 12.1978 1.89478 11.5208V5.36813C1.89478 4.69112 2.13533 4.08044 2.51747 3.63755C2.91998 3.17103 3.47778 2.88889 4.09026 2.88889H11.9098Z", stroke: "#0D79D0", strokeWidth: "1.5" }),
9
+ react_1.default.createElement("path", { d: "M10.2468 8.01749C10.5665 8.21235 10.5665 8.67656 10.2468 8.87142L7.28654 10.6755C6.95334 10.8785 6.52634 10.6387 6.52634 10.2485L6.52634 6.6404C6.52634 6.25021 6.95334 6.01038 7.28654 6.21344L10.2468 8.01749Z", fill: "#0D79D0" })));
10
+ exports.default = OutlineEmbedIcon;
package/dist/cjs/index.js CHANGED
@@ -42,6 +42,7 @@ __exportStar(require("./components/Avatar"), exports);
42
42
  __exportStar(require("./components/Dialog"), exports);
43
43
  __exportStar(require("./components/Checkbox"), exports);
44
44
  __exportStar(require("./components/Form"), exports);
45
+ __exportStar(require("./components/MultiValueInput"), exports);
45
46
  __exportStar(require("./components/Resizer"), exports);
46
47
  __exportStar(require("./components/SaveStatus"), exports);
47
48
  __exportStar(require("./components/StyledModal"), exports);
@@ -63,9 +64,7 @@ __exportStar(require("./components/DatePicker"), exports);
63
64
  __exportStar(require("./components/Text"), exports);
64
65
  __exportStar(require("./components/RelativeDate"), exports);
65
66
  __exportStar(require("./components/Menus"), exports);
66
- __exportStar(require("./components/Drawer"), exports);
67
67
  __exportStar(require("./components/SelectField"), exports);
68
- __exportStar(require("./components/SelectedItemsBox"), exports);
69
68
  __exportStar(require("./hooks/use-dropdown"), exports);
70
69
  __exportStar(require("./hooks/use-menus"), exports);
71
70
  __exportStar(require("./hooks/use-scroll-detection"), exports);
@@ -16,7 +16,7 @@
16
16
  import React from 'react';
17
17
  import styled from 'styled-components';
18
18
  import { IconButton, IconButtonGroup } from './Button';
19
- import { AddCommentIcon, AddOutlineIcon, EditIcon, ScrollIcon } from './icons';
19
+ import { AddCommentIcon, AddOutlineIcon, DeleteIcon, EditIcon, ScrollIcon, } from './icons';
20
20
  import { Tooltip } from './Tooltip';
21
21
  const ContextMenuIconButton = styled(IconButton) `
22
22
  color: #6e6e6e;
@@ -32,6 +32,7 @@ const icons = {
32
32
  Edit: EditIcon,
33
33
  AddOutline: AddOutlineIcon,
34
34
  Scroll: ScrollIcon,
35
+ Delete: DeleteIcon,
35
36
  };
36
37
  export const ContextMenu = ({ actions }) => (React.createElement(IconButtonGroup, { size: 32 }, actions.map((action) => {
37
38
  const Icon = icons[action.icon];
@@ -25,7 +25,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
25
25
  import React from 'react';
26
26
  import styled from 'styled-components';
27
27
  import { ButtonGroup, PrimaryButton, SecondaryButton } from './Button';
28
- import { AttentionRedIcon } from './icons';
28
+ import { AttentionOrangeIcon, AttentionRedIcon } from './icons';
29
29
  import { StyledModal } from './StyledModal';
30
30
  import { TextField } from './TextField';
31
31
  const Icon = styled.div `
@@ -77,6 +77,7 @@ export var Category;
77
77
  (function (Category) {
78
78
  Category["error"] = "error";
79
79
  Category["confirmation"] = "confirmation";
80
+ Category["warning"] = "warning";
80
81
  })(Category || (Category = {}));
81
82
  const PrimaryAction = (props) => props.isDestructive ? (props.hasForm ? (React.createElement(PrimaryButton, { danger: true, disabled: props.disabled, form: "formDialog", type: "submit" }, props.title)) : (React.createElement(PrimaryButton, { danger: true, disabled: props.disabled, onClick: props.action, autoFocus: true }, props.title))) : props.hasForm ? (React.createElement(PrimaryButton, { disabled: props.disabled, form: "formDialog", type: "submit" }, props.title)) : (React.createElement(PrimaryButton, { disabled: props.disabled, onClick: props.action, autoFocus: true }, props.title));
82
83
  const SecondaryAction = (props) => (React.createElement(SecondaryButton, { disabled: props.disabled, onClick: props.action }, props.title));
@@ -119,6 +120,8 @@ export class Dialog extends React.Component {
119
120
  React.createElement(HeaderContainer, null,
120
121
  category === Category.error && (React.createElement(Icon, null,
121
122
  React.createElement(AttentionRedIcon, null))),
123
+ category === Category.warning && (React.createElement(Icon, null,
124
+ React.createElement(AttentionOrangeIcon, null))),
122
125
  header),
123
126
  React.createElement(MessageContainer, null,
124
127
  message,
@@ -0,0 +1,122 @@
1
+ import React, { useState } from 'react';
2
+ import styled from 'styled-components';
3
+ import { commonStyles } from './TextField';
4
+ const Container = styled.div `
5
+ ${commonStyles}
6
+
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ gap: 4px;
10
+ align-items: center;
11
+ padding: 0;
12
+ background: hotpink
13
+
14
+
15
+ &:hover Input {
16
+ background-color: ${(props) => props.theme.colors.background.fifth};
17
+ }
18
+ &:has(Input:focus) {
19
+ background-color: ${(props) => props.theme.colors.background.fifth};
20
+ border-color: ${(props) => props.theme.colors.border.field.hover};
21
+ }
22
+ `;
23
+ const Chip = styled.span `
24
+ display: flex;
25
+ align-items: center;
26
+ background-color: #f2f2f2;
27
+ color: ${(props) => props.theme.colors.text.primary};
28
+ border-radius: 12px;
29
+ border: 1px solid ${(props) => props.theme.colors.border.tertiary};
30
+ padding: ${(props) => props.theme.grid.unit}px;
31
+ font-size: ${(props) => props.theme.font.size.small};
32
+ line-height: ${(props) => props.theme.font.lineHeight.normal};
33
+
34
+ & + Input {
35
+ padding-left: 0;
36
+ }
37
+ `;
38
+ const RemoveButton = styled.button `
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ width: 10px;
43
+ height: 10px;
44
+ color: white;
45
+ background: #6e6e6e;
46
+ margin-left: 4px;
47
+ border: none;
48
+ border-radius: 100%;
49
+ cursor: pointer;
50
+ font-size: 10px;
51
+
52
+ &:hover {
53
+ background: black;
54
+ }
55
+ `;
56
+ const Input = styled.input `
57
+ ${commonStyles}
58
+
59
+ border: none;
60
+ flex: 1;
61
+ min-width: 6em;
62
+ padding: 10px 16px;
63
+
64
+ appearance: none;
65
+ -moz-appearance: textfield;
66
+ -webkit-appearance: none;
67
+
68
+ &::-webkit-outer-spin-button,
69
+ &::-webkit-inner-spin-button {
70
+ -webkit-appearance: none;
71
+ margin: 0;
72
+ }
73
+
74
+ &::-moz-appearance: textfield;
75
+ `;
76
+ export const MultiValueInput = ({ inputType, placeholder = '', initialValues = [], onChange, }) => {
77
+ const [values, setValues] = useState(initialValues);
78
+ const [currentValue, setCurrentValue] = useState('');
79
+ const handleAddValue = (value) => {
80
+ if (value.trim() && !values.includes(value.trim())) {
81
+ const updatedValues = [...values, value.trim()];
82
+ setValues(updatedValues);
83
+ onChange === null || onChange === void 0 ? void 0 : onChange(updatedValues);
84
+ }
85
+ setCurrentValue('');
86
+ };
87
+ const handleInputChange = (e) => {
88
+ const value = e.target.value;
89
+ if (inputType === 'number' && /^\d*$/.test(value)) {
90
+ setCurrentValue(value);
91
+ }
92
+ else if (inputType === 'text') {
93
+ setCurrentValue(value);
94
+ }
95
+ };
96
+ const handleBlur = () => {
97
+ if (currentValue) {
98
+ handleAddValue(currentValue);
99
+ }
100
+ };
101
+ const handleKeyDown = (e) => {
102
+ if (e.key === 'Enter') {
103
+ e.preventDefault();
104
+ handleAddValue(currentValue);
105
+ }
106
+ };
107
+ const handleRemoveValue = (index) => {
108
+ const updatedValues = values.filter((_, i) => i !== index);
109
+ setValues(updatedValues);
110
+ onChange === null || onChange === void 0 ? void 0 : onChange(updatedValues);
111
+ };
112
+ const xplaceholder = placeholder
113
+ ? placeholder
114
+ : inputType === 'number'
115
+ ? 'Enter number and press enter'
116
+ : 'Enter text and press enter';
117
+ return (React.createElement(Container, null,
118
+ values.map((value, index) => (React.createElement(Chip, { key: index },
119
+ value,
120
+ React.createElement(RemoveButton, { onMouseUp: () => handleRemoveValue(index) }, "\u00D7")))),
121
+ React.createElement(Input, { type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: xplaceholder })));
122
+ };
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import React from 'react';
17
17
  import styled, { css } from 'styled-components';
18
- const commonStyles = css `
18
+ export const commonStyles = css `
19
19
  border: 1px solid
20
20
  ${(props) => props.error
21
21
  ? props.theme.colors.border.error
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- const AddOutlineIcon = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none" }, props),
2
+ const AddOutlineIcon = (props) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none" },
3
3
  React.createElement("path", { d: "M6.875 1.27794C7.57115 0.876016 8.42885 0.876016 9.125 1.27794L14.125 4.16469C14.8212 4.56662 15.25 5.3094 15.25 6.11325V11.8868C15.25 12.6906 14.8212 13.4334 14.125 13.8353L9.125 16.7221C8.42885 17.124 7.57115 17.124 6.875 16.7221L1.875 13.8353C1.17885 13.4334 0.75 12.6906 0.75 11.8868V6.11325C0.75 5.3094 1.17885 4.56662 1.875 4.16469L6.875 1.27794Z", stroke: "#353535", strokeWidth: "1.5" }),
4
4
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00244 4.70996C7.78153 4.70996 7.60244 4.88905 7.60244 5.10996V8.30996H4.40244C4.18153 8.30996 4.00244 8.48905 4.00244 8.70996C4.00244 8.93087 4.18153 9.10996 4.40244 9.10996H7.60244V12.31C7.60244 12.5309 7.78153 12.71 8.00244 12.71C8.22336 12.71 8.40244 12.5309 8.40244 12.31V9.10996H11.6024C11.8234 9.10996 12.0024 8.93087 12.0024 8.70996C12.0024 8.48905 11.8234 8.30996 11.6024 8.30996H8.40244V5.10996C8.40244 4.88905 8.22336 4.70996 8.00244 4.70996Z", fill: "#353535" }),
5
5
  React.createElement("path", { d: "M7.60244 8.30996V8.80996H8.10244V8.30996H7.60244ZM7.60244 9.10996H8.10244V8.60996H7.60244V9.10996ZM8.40244 9.10996V8.60996H7.90244V9.10996H8.40244ZM8.40244 8.30996H7.90244V8.80996H8.40244V8.30996ZM8.10244 5.10996C8.10244 5.16519 8.05767 5.20996 8.00244 5.20996V4.20996C7.50539 4.20996 7.10244 4.6129 7.10244 5.10996H8.10244ZM8.10244 8.30996V5.10996H7.10244V8.30996H8.10244ZM4.40244 8.80996H7.60244V7.80996H4.40244V8.80996ZM4.50244 8.70996C4.50244 8.76519 4.45767 8.80996 4.40244 8.80996V7.80996C3.90538 7.80996 3.50244 8.2129 3.50244 8.70996H4.50244ZM4.40244 8.60996C4.45767 8.60996 4.50244 8.65473 4.50244 8.70996H3.50244C3.50244 9.20702 3.90538 9.60996 4.40244 9.60996V8.60996ZM7.60244 8.60996H4.40244V9.60996H7.60244V8.60996ZM8.10244 12.31V9.10996H7.10244V12.31H8.10244ZM8.00244 12.21C8.05767 12.21 8.10244 12.2547 8.10244 12.31H7.10244C7.10244 12.807 7.50539 13.21 8.00244 13.21V12.21ZM7.90244 12.31C7.90244 12.2547 7.94721 12.21 8.00244 12.21V13.21C8.4995 13.21 8.90244 12.807 8.90244 12.31H7.90244ZM7.90244 9.10996V12.31H8.90244V9.10996H7.90244ZM11.6024 8.60996H8.40244V9.60996H11.6024V8.60996ZM11.5024 8.70996C11.5024 8.65473 11.5472 8.60996 11.6024 8.60996V9.60996C12.0995 9.60996 12.5024 9.20702 12.5024 8.70996H11.5024ZM11.6024 8.80996C11.5472 8.80996 11.5024 8.76519 11.5024 8.70996H12.5024C12.5024 8.21291 12.0995 7.80996 11.6024 7.80996V8.80996ZM8.40244 8.80996H11.6024V7.80996H8.40244V8.80996ZM7.90244 5.10996V8.30996H8.90244V5.10996H7.90244ZM8.00244 5.20996C7.94721 5.20996 7.90244 5.16519 7.90244 5.10996H8.90244C8.90244 4.6129 8.4995 4.20996 8.00244 4.20996V5.20996Z", fill: "#353535" })));
@@ -10,6 +10,16 @@ const fadeIn = keyframes `
10
10
  transform: scale(1);
11
11
  }
12
12
  `;
13
+ const fadeOut = keyframes `
14
+ 0% {
15
+ opacity: 1;
16
+ transform: scale(1);
17
+ }
18
+ 100% {
19
+ opacity: 0;
20
+ transform: scale(0.8);
21
+ }
22
+ `;
13
23
  const fillCircle = keyframes `
14
24
  from {
15
25
  stroke-dashoffset: 283;
@@ -33,6 +43,7 @@ const Svg = styled.svg `
33
43
  opacity: 0;
34
44
  animation: ${fadeIn} 0.3s ease-out forwards;
35
45
 
46
+ // Start fading out at 2.7s (300ms before the 3s unmount)
36
47
  @keyframes autoFadeOut {
37
48
  0%,
38
49
  90% {
@@ -64,8 +75,8 @@ const Tick = styled.polyline `
64
75
  stroke-linejoin: round;
65
76
  opacity: 0;
66
77
  `;
67
- const CircleTickAnimation = ({ size, style, }) => {
68
- return (React.createElement(Svg, { width: size, height: size, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", style: style },
78
+ const CircleTickAnimation = ({ size }) => {
79
+ return (React.createElement(Svg, { width: size, height: size, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" },
69
80
  React.createElement(Circle, { cx: "50", cy: "50", r: "45", strokeWidth: "5" }),
70
81
  React.createElement(Tick, { points: "30,50 45,65 70,40" })));
71
82
  };
@@ -30,9 +30,6 @@ export { default as AttentionOrangeIcon } from './attention-orange';
30
30
  export { default as AttentionRedIcon } from './attention-red';
31
31
  export { default as AvatarIcon } from './avatar';
32
32
  export { default as AlertIcon } from './alert';
33
- export { default as AffiliationIcon } from './affiliation';
34
- export { default as AuthorPlaceholderIcon } from './author-placeholder';
35
- export { default as AffiliationPlaceholderIcon } from './affiliation-placeholder';
36
33
  export { default as SystemUserAvatarIcon } from './system-user-avatar';
37
34
  export { default as CitationCountIcon } from './citation-count';
38
35
  export { default as CommentReplyIcon } from './comment-reply';
@@ -66,6 +63,7 @@ export { default as LogoutIcon } from './logout';
66
63
  export { default as OutlineBlockQuoteIcon } from './outline-block-quote';
67
64
  export { default as OutlineCodeIcon } from './outline-code';
68
65
  export { default as OutlineEquationIcon } from './outline-equation';
66
+ export { default as OutlineEmbedIcon } from './outline-embed';
69
67
  export { default as OutlineFigureIcon } from './outline-figure';
70
68
  export { default as OutlineManuscriptIcon } from './outline-manuscript';
71
69
  export { default as OutlineOrderedListIcon } from './outline-ordered-list';
@@ -105,5 +103,3 @@ export { default as UploadIcon } from './upload';
105
103
  export { default as VerticalEllipsisIcon } from './vertical-ellipsis';
106
104
  export { default as CrclTickAnimation } from './circle-tick-animation';
107
105
  export { default as ProfileIcon } from './profile-avatar';
108
- export { default as AddUserIcon } from './add-user';
109
- export { default as AddInstitutionIcon } from './add-institution';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ const OutlineEmbedIcon = (props) => (React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
3
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.9098 2.88889C12.5223 2.88889 13.0801 3.17103 13.4826 3.63755C13.8647 4.08044 14.1053 4.69112 14.1053 5.36813V11.5208C14.1053 12.1978 13.8647 12.8084 13.4826 13.2513C13.0801 13.7178 12.5223 14 11.9098 14H4.09026C3.47778 14 2.91998 13.7178 2.51747 13.2513C2.13533 12.8084 1.89478 12.1978 1.89478 11.5208V5.36813C1.89478 4.69112 2.13533 4.08044 2.51747 3.63755C2.91998 3.17103 3.47778 2.88889 4.09026 2.88889H11.9098Z", stroke: "#0D79D0", strokeWidth: "1.5" }),
4
+ React.createElement("path", { d: "M10.2468 8.01749C10.5665 8.21235 10.5665 8.67656 10.2468 8.87142L7.28654 10.6755C6.95334 10.8785 6.52634 10.6387 6.52634 10.2485L6.52634 6.6404C6.52634 6.25021 6.95334 6.01038 7.28654 6.21344L10.2468 8.01749Z", fill: "#0D79D0" })));
5
+ export default OutlineEmbedIcon;
package/dist/es/index.js CHANGED
@@ -22,6 +22,7 @@ export * from './components/Avatar';
22
22
  export * from './components/Dialog';
23
23
  export * from './components/Checkbox';
24
24
  export * from './components/Form';
25
+ export * from './components/MultiValueInput';
25
26
  export * from './components/Resizer';
26
27
  export * from './components/SaveStatus';
27
28
  export * from './components/StyledModal';
@@ -43,9 +44,7 @@ export * from './components/DatePicker';
43
44
  export * from './components/Text';
44
45
  export * from './components/RelativeDate';
45
46
  export * from './components/Menus';
46
- export * from './components/Drawer';
47
47
  export * from './components/SelectField';
48
- export * from './components/SelectedItemsBox';
49
48
  export * from './hooks/use-dropdown';
50
49
  export * from './hooks/use-menus';
51
50
  export * from './hooks/use-scroll-detection';
@@ -42,7 +42,8 @@ interface DialogProps {
42
42
  }
43
43
  export declare enum Category {
44
44
  error = "error",
45
- confirmation = "confirmation"
45
+ confirmation = "confirmation",
46
+ warning = "warning"
46
47
  }
47
48
  export declare class Dialog extends React.Component<DialogProps, DialogState> {
48
49
  state: DialogState;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface MultiValueInputProps {
3
+ inputType: 'text' | 'number';
4
+ placeholder: string;
5
+ initialValues?: string[];
6
+ onChange?: (values: string[]) => void;
7
+ }
8
+ export declare const MultiValueInput: React.FC<MultiValueInputProps>;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  import React from 'react';
17
17
  import { ErrorProps } from './Form';
18
+ export declare const commonStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ErrorProps, import("styled-components").DefaultTheme>>;
18
19
  export declare const TextField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, ErrorProps, never>;
19
20
  export declare const TextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, ErrorProps, never>;
20
21
  export declare const TextFieldGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;