@manuscripts/style-guide 3.5.10 → 3.5.12

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 (32) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/Checkbox.js +1 -2
  3. package/dist/cjs/components/Dialog.js +38 -2
  4. package/dist/cjs/components/Form.js +16 -4
  5. package/dist/cjs/components/List.js +14 -0
  6. package/dist/cjs/components/MultiValueInput.js +1 -2
  7. package/dist/cjs/components/SelectField.js +7 -3
  8. package/dist/cjs/components/SelectedItemsBox.js +9 -3
  9. package/dist/cjs/components/icons/index.js +4 -2
  10. package/dist/cjs/components/icons/info-circle.js +5 -0
  11. package/dist/cjs/data/countryOptions.js +291 -0
  12. package/dist/cjs/index.js +1 -0
  13. package/dist/es/components/Checkbox.js +1 -2
  14. package/dist/es/components/Dialog.js +38 -2
  15. package/dist/es/components/Form.js +15 -3
  16. package/dist/es/components/List.js +14 -0
  17. package/dist/es/components/MultiValueInput.js +1 -2
  18. package/dist/es/components/SelectField.js +7 -3
  19. package/dist/es/components/SelectedItemsBox.js +9 -3
  20. package/dist/es/components/icons/index.js +1 -0
  21. package/dist/es/components/icons/info-circle.js +3 -0
  22. package/dist/es/data/countryOptions.js +288 -0
  23. package/dist/es/index.js +1 -0
  24. package/dist/types/components/Dialog.d.ts +1 -0
  25. package/dist/types/components/Form.d.ts +2 -0
  26. package/dist/types/components/SelectField.d.ts +1 -0
  27. package/dist/types/components/SelectedItemsBox.d.ts +1 -0
  28. package/dist/types/components/icons/index.d.ts +1 -0
  29. package/dist/types/components/icons/info-circle.d.ts +4 -0
  30. package/dist/types/data/countryOptions.d.ts +17 -0
  31. package/dist/types/index.d.ts +1 -0
  32. package/package.json +1 -1
package/README.md CHANGED
@@ -16,7 +16,7 @@ const Example: React.FunctionComponent<{
16
16
  )
17
17
  ```
18
18
 
19
- ## Development
19
+ ## Development
20
20
 
21
21
  Run `yarn build` to build the `dist` folder for distribution.
22
22
 
@@ -35,7 +35,7 @@ exports.CheckboxLabel = styled_components_1.default.label `
35
35
  width: 1px;
36
36
  }
37
37
 
38
- div {
38
+ > div {
39
39
  align-items: center;
40
40
  font-family: ${(props) => props.theme.font.family.sans};
41
41
  font-size: ${(props) => props.theme.font.size.normal};
@@ -64,7 +64,6 @@ exports.CheckboxLabel = styled_components_1.default.label `
64
64
  }
65
65
  }
66
66
 
67
-
68
67
  input:checked + div::before {
69
68
  background-color: transparent !important;
70
69
  border-color: transparent !important;
@@ -63,15 +63,51 @@ var Category;
63
63
  Category["warning"] = "warning";
64
64
  Category["success"] = "success";
65
65
  })(Category || (exports.Category = Category = {}));
66
+ const SecondaryTextDanger = styled_components_1.default.button.attrs({ type: 'button' }) `
67
+ align-items: center;
68
+ background: none;
69
+ border: none;
70
+ border-radius: ${(props) => props.theme.grid.radius.small};
71
+ color: ${(props) => props.theme.colors.text.error};
72
+ cursor: pointer;
73
+ display: inline-flex;
74
+ flex-shrink: 0;
75
+ font: ${(props) => props.theme.font.weight.normal}
76
+ ${(props) => props.theme.font.size.medium} /
77
+ ${(props) => props.theme.font.lineHeight.large}
78
+ ${(props) => props.theme.font.family.sans};
79
+ justify-content: center;
80
+ outline: none;
81
+ padding: 7px ${(props) => props.theme.grid.unit * 3}px;
82
+ text-decoration: none;
83
+ transition:
84
+ color 0.1s,
85
+ opacity 0.1s;
86
+
87
+ &:not([disabled]):hover,
88
+ &:not([disabled]):focus-visible {
89
+ text-decoration: underline;
90
+ }
91
+
92
+ &:not([disabled]):focus-visible {
93
+ outline: 3px solid ${(props) => props.theme.colors.outline.focus};
94
+ outline-offset: 2px;
95
+ }
96
+
97
+ &:disabled {
98
+ cursor: not-allowed;
99
+ opacity: 0.5;
100
+ }
101
+ `;
66
102
  const PrimaryAction = (props) => props.isDestructive ? (props.hasForm ? ((0, jsx_runtime_1.jsx)(Button_1.PrimaryButton, { danger: true, disabled: props.disabled, form: "formDialog", type: "submit", children: props.title })) : ((0, jsx_runtime_1.jsx)(Button_1.PrimaryButton, { danger: true, disabled: props.disabled, onClick: props.action, autoFocus: true, children: props.title }))) : props.hasForm ? ((0, jsx_runtime_1.jsx)(Button_1.PrimaryButton, { disabled: props.disabled, form: "formDialog", type: "submit", children: props.title })) : ((0, jsx_runtime_1.jsx)(Button_1.PrimaryButton, { disabled: props.disabled, onClick: props.action, autoFocus: true, children: props.title }));
67
- const SecondaryAction = (props) => ((0, jsx_runtime_1.jsx)(Button_1.SecondaryButton, { disabled: props.disabled, onClick: props.action, children: props.title }));
103
+ const SecondaryAction = (props) => props.variant === 'textDanger' ? ((0, jsx_runtime_1.jsx)(SecondaryTextDanger, { disabled: props.disabled, onClick: props.action, children: props.title })) : ((0, jsx_runtime_1.jsx)(Button_1.SecondaryButton, { disabled: props.disabled, onClick: props.action, children: props.title }));
68
104
  class Dialog extends react_1.default.Component {
69
105
  constructor() {
70
106
  super(...arguments);
71
107
  this.state = {
72
108
  primaryActionDisabled: true,
73
109
  };
74
- this.renderButtons = (props, disabled) => ((0, jsx_runtime_1.jsx)(ButtonsContainer, { children: props.actions.secondary ? (!props.actions.primary.isDestructive ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SecondaryAction, { action: props.actions.secondary.action, hasForm: !!this.props.confirmFieldText, title: props.actions.secondary.title }), (0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, title: props.actions.primary.title || 'Dismiss' })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: true, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' }), (0, jsx_runtime_1.jsx)(SecondaryAction, { action: props.actions.secondary.action, title: props.actions.secondary.title })] }))) : ((0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: props.actions.primary.isDestructive, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' })) }));
110
+ this.renderButtons = (props, disabled) => ((0, jsx_runtime_1.jsx)(ButtonsContainer, { children: props.actions.secondary ? (!props.actions.primary.isDestructive ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SecondaryAction, { action: props.actions.secondary.action, hasForm: !!this.props.confirmFieldText, title: props.actions.secondary.title, variant: props.actions.secondary.variant ?? 'default' }), (0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, title: props.actions.primary.title || 'Dismiss' })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: true, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' }), (0, jsx_runtime_1.jsx)(SecondaryAction, { action: props.actions.secondary.action, title: props.actions.secondary.title, variant: props.actions.secondary.variant ?? 'default' })] }))) : ((0, jsx_runtime_1.jsx)(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: props.actions.primary.isDestructive, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' })) }));
75
111
  this.checkInputValue = (event) => {
76
112
  const testingVal = this.props.confirmFieldText && this.props.confirmFieldText.toUpperCase();
77
113
  const target = event.target;
@@ -18,7 +18,7 @@ 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.InputErrorText = exports.InputHelperText = exports.LabelText = exports.Label = exports.FormSubtitle = exports.FormTitle = exports.FormActionsBar = exports.FormLabel = exports.FormRow = exports.FormField = exports.FormContainer = exports.FormError = exports.FormActions = exports.FormHeader = exports.CenteredForm = void 0;
21
+ exports.RequiredIndicator = exports.FormGroup = exports.InputErrorText = exports.InputHelperText = exports.LabelText = exports.Label = exports.FormSubtitle = exports.FormTitle = exports.FormActionsBar = exports.FormLabel = exports.FormRow = exports.FormField = exports.FormContainer = exports.FormError = exports.FormActions = exports.FormHeader = exports.CenteredForm = void 0;
22
22
  const formik_1 = require("formik");
23
23
  const styled_components_1 = __importDefault(require("styled-components"));
24
24
  exports.CenteredForm = (0, styled_components_1.default)(formik_1.Form) `
@@ -105,12 +105,13 @@ exports.FormSubtitle = styled_components_1.default.p `
105
105
  ${(props) => props.theme.font.size.medium} /
106
106
  ${(props) => props.theme.font.lineHeight.large}
107
107
  ${(props) => props.theme.font.family.sans};
108
+ margin-bottom: ${(props) => props.theme.grid.unit * 4}px;
109
+ margin-top: ${(props) => props.theme.grid.unit * 2}px;
108
110
  `;
109
111
  exports.Label = styled_components_1.default.label `
110
112
  display: inline-flex;
111
113
  align-items: center;
112
- gap: ${(props) => props.theme.grid.unit}px;
113
- color: ${(props) => props.theme.colors.text.secondary};
114
+ color: ${(props) => props.theme.colors.text.primary};
114
115
  font: ${(props) => props.theme.font.weight.normal}
115
116
  ${(props) => props.theme.font.size.normal} /
116
117
  ${(props) => props.theme.font.lineHeight.normal}
@@ -140,5 +141,16 @@ exports.InputErrorText = styled_components_1.default.span `
140
141
  ${(props) => props.theme.font.lineHeight.normal}
141
142
  ${(props) => props.theme.font.family.sans};
142
143
  display: block;
143
- margin-top: 4px;
144
+ `;
145
+ exports.FormGroup = styled_components_1.default.div `
146
+ display: flex;
147
+ flex-direction: row;
148
+ gap: ${(props) => props.theme.grid.unit * 2}px;
149
+ `;
150
+ exports.RequiredIndicator = styled_components_1.default.span `
151
+ color: ${(props) => props.theme.colors.text.error};
152
+ font: ${(props) => props.theme.font.weight.normal}
153
+ ${(props) => props.theme.font.size.medium} /
154
+ ${(props) => props.theme.font.lineHeight.normal}
155
+ ${(props) => props.theme.font.family.sans};
144
156
  `;
@@ -140,6 +140,13 @@ function withListNavigation(Component) {
140
140
  if (!element) {
141
141
  return;
142
142
  }
143
+ if (element.hasAttribute('disabled')) {
144
+ const tabbedElement = element.querySelector('[data-list-item][tabindex="0"]');
145
+ if (tabbedElement) {
146
+ tabbedElement.tabIndex = -1;
147
+ }
148
+ return;
149
+ }
143
150
  const firstItem = element.querySelector('[data-list-item]');
144
151
  if (!firstItem) {
145
152
  return;
@@ -156,6 +163,13 @@ function withListNavigation(Component) {
156
163
  return ((0, jsx_runtime_1.jsx)(Component, { ref: mergeRefs(containerRef, forwardedRef), ...props, onKeyDown: handleKeyDown, onBlur: handelOnBlur }));
157
164
  })) `
158
165
  outline: none;
166
+ &[disabled] {
167
+ pointer-events: none;
168
+ user-select: none;
169
+ border-color: #e4e4e4;
170
+ color: #b3b3b3;
171
+ opacity: 0.5;
172
+ }
159
173
  `;
160
174
  }
161
175
  function withNavigableListItem(Component) {
@@ -18,7 +18,6 @@ const Container = styled_components_1.default.div `
18
18
  padding: 4px 8px;
19
19
  background: ${(props) => props.theme.colors.background.primary};
20
20
 
21
-
22
21
  &:hover Input {
23
22
  background-color: ${(props) => props.theme.colors.background.fifth};
24
23
  }
@@ -126,6 +125,6 @@ const MultiValueInput = ({ id, inputType, placeholder = '', initialValues = [],
126
125
  : inputType === 'number'
127
126
  ? 'Enter number and press enter'
128
127
  : 'Enter text and press enter';
129
- return ((0, jsx_runtime_1.jsxs)(Container, { children: [values.map((value, index) => ((0, jsx_runtime_1.jsxs)(Chip, { children: [value, (0, jsx_runtime_1.jsx)(RemoveButton, { type: 'button', onClick: () => handleRemoveValue(index), children: "\u00D7" })] }, index))), (0, jsx_runtime_1.jsx)(Input, { id: id, type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: xplaceholder })] }));
128
+ return ((0, jsx_runtime_1.jsxs)(Container, { className: 'multi-value-input', children: [values.map((value, index) => ((0, jsx_runtime_1.jsxs)(Chip, { className: 'chip', children: [value, (0, jsx_runtime_1.jsx)(RemoveButton, { type: 'button', onClick: () => handleRemoveValue(index), children: "\u00D7" })] }, index))), (0, jsx_runtime_1.jsx)(Input, { id: id, type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: values.length > 0 ? '' : xplaceholder })] }));
130
129
  };
131
130
  exports.MultiValueInput = MultiValueInput;
@@ -7,7 +7,7 @@ exports.SelectField = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_select_1 = __importDefault(require("react-select"));
9
9
  const styled_components_1 = require("styled-components");
10
- const selectStyles = (theme, error, variant) => ({
10
+ const selectStyles = (theme, error, variant, listMaxHeight) => ({
11
11
  control: (base, state) => ({
12
12
  ...base,
13
13
  minHeight: variant === 'large' ? 40 : 32,
@@ -69,6 +69,10 @@ const selectStyles = (theme, error, variant) => ({
69
69
  overflow: 'hidden',
70
70
  boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
71
71
  }),
72
+ menuList: (base) => ({
73
+ ...base,
74
+ maxHeight: listMaxHeight || '300px',
75
+ }),
72
76
  placeholder: (base, state) => ({
73
77
  ...base,
74
78
  color: state.isFocused || state.selectProps.menuIsOpen
@@ -90,11 +94,11 @@ const selectStyles = (theme, error, variant) => ({
90
94
  },
91
95
  }),
92
96
  });
93
- const SelectField = ({ id, options, field, form, error, variant, isDisabled, ...rest }) => {
97
+ const SelectField = ({ id, options, field, form, error, variant, isDisabled, listMaxHeight, ...rest }) => {
94
98
  const theme = (0, styled_components_1.useTheme)();
95
99
  const name = field?.name || '';
96
100
  const value = field?.value;
97
- return ((0, jsx_runtime_1.jsx)(react_select_1.default, { inputId: id, options: options, name: name, classNamePrefix: name, value: options?.find((option) => option.value === value), onChange: (option) => form?.setFieldValue(name, option?.value), onBlur: field?.onBlur, styles: selectStyles(theme, error, variant), isDisabled: form?.isSubmitting || isDisabled, ...rest, theme: (base) => ({
101
+ return ((0, jsx_runtime_1.jsx)(react_select_1.default, { inputId: id, options: options, name: name, classNamePrefix: name, value: options?.find((option) => option.value === value), onChange: (option) => form?.setFieldValue(name, option?.value), onBlur: field?.onBlur, styles: selectStyles(theme, error, variant, listMaxHeight), isDisabled: form?.isSubmitting || isDisabled, ...rest, theme: (base) => ({
98
102
  ...base,
99
103
  colors: {
100
104
  ...base.colors,
@@ -12,6 +12,12 @@ const BoxContainer = styled_components_1.default.div `
12
12
  padding: 8px;
13
13
  min-height: 120px;
14
14
  background: ${(props) => props.theme.colors.background.primary};
15
+
16
+ &[disabled] {
17
+ color: #707070 !important;
18
+ background: #f5f5f5;
19
+ cursor: not-allowed;
20
+ }
15
21
  `;
16
22
  const ItemsList = styled_components_1.default.div `
17
23
  display: flex;
@@ -36,10 +42,10 @@ const Item = styled_components_1.default.div `
36
42
  display: flex;
37
43
  align-items: center;
38
44
  gap: 4px;
39
- background: #f2f2f2;
45
+ background: ${(props) => (props.disabled ? '#dddcdc' : '#f2f2f2')};
40
46
  border-radius: 6px;
41
47
  padding: 4px;
42
- color: ${(props) => props.theme.colors.text.primary};
48
+ color: ${(props) => props.disabled ? '#707070' : props.theme.colors.text.primary};
43
49
  font: ${(props) => props.theme.font.weight.normal}
44
50
  ${(props) => props.theme.font.size.small}
45
51
  ${(props) => props.theme.font.family.sans};
@@ -65,7 +71,7 @@ const RemoveButton = styled_components_1.default.button `
65
71
  }
66
72
  `;
67
73
  const SelectedItemsBox = ({ items, onRemove, placeholder = 'No items selected', ...props }) => {
68
- return ((0, jsx_runtime_1.jsx)(BoxContainer, { ...props, children: items.length > 0 ? ((0, jsx_runtime_1.jsx)(ItemsList, { children: items.map((item) => ((0, jsx_runtime_1.jsxs)(Item, { "data-cy": "item", children: [item.label, (0, jsx_runtime_1.jsx)(RemoveButton, { onClick: () => onRemove(item.id), "aria-label": `Remove ${item.label}`, children: "x" })] }, item.id))) })) : ((0, jsx_runtime_1.jsx)(EmptyContainer, { children: (0, jsx_runtime_1.jsx)(Placeholder, { children: placeholder }) })) }));
74
+ return ((0, jsx_runtime_1.jsx)(BoxContainer, { ...props, children: items.length > 0 ? ((0, jsx_runtime_1.jsx)(ItemsList, { children: items.map((item) => ((0, jsx_runtime_1.jsxs)(Item, { "data-cy": "item", disabled: !!props.disabled, children: [item.label, !props.disabled && ((0, jsx_runtime_1.jsx)(RemoveButton, { onClick: () => onRemove(item.id), "aria-label": `Remove ${item.label}`, children: "x" }))] }, item.id))) })) : ((0, jsx_runtime_1.jsx)(EmptyContainer, { children: (0, jsx_runtime_1.jsx)(Placeholder, { children: placeholder }) })) }));
69
75
  };
70
76
  exports.SelectedItemsBox = SelectedItemsBox;
71
77
  exports.default = exports.SelectedItemsBox;
@@ -19,8 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  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.CommentIcon = exports.CommentResolveIcon = exports.CommentReplyIcon = exports.CitationCountIcon = exports.SystemUserAvatarIcon = exports.ChatIcon = exports.CalendarIcon = exports.BookIcon = 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.AddRoleIcon = exports.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddFigureIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
22
- exports.ToolbarSpecialCharactersIcon = exports.ToolbarOrderedListIcon = exports.ToolbarItalicIcon = exports.ToolbarFigureIcon = exports.ToolbarEquationIcon = exports.ToolbarCodeIcon = exports.ToolbarCitationIcon = exports.ToolbarBoxedTextIcon = exports.ToolbarBoldIcon = exports.TickIcon = exports.TaskStepDoneIcon = exports.SupplementsIcon = exports.SliderOnIcon = exports.SliderOffIcon = exports.SectionCategoryIcon = exports.SearchIcon = exports.ScrollIcon = exports.SaveStatusErrorIcon = exports.SaveStatusSavingIcon = exports.SaveStatusSavedIcon = exports.SaveStatusOfflineIcon = exports.RoleReadingIcon = exports.RoleAnnotatingIcon = exports.PlusIcon = exports.ORCIDIcon = exports.OutlineUnorderedListIcon = exports.OutlineTableIcon = exports.OutlineSectionIcon = exports.OutlinePullQuoteIcon = exports.OutlineParagraphIcon = exports.OutlineOrderedListIcon = exports.OutlineManuscriptIcon = exports.OutlineFigureIcon = exports.OutlineEmbedIcon = exports.OutlineEquationIcon = exports.OutlineCodeIcon = exports.OutlineBlockQuoteIcon = exports.ManuscriptIcon = exports.LogoutIcon = exports.LockIcon = exports.LinkIcon = exports.InspectorPluginIcon = exports.ImageRightIcon = exports.ImageDefaultIcon = exports.ImageLeftIcon = exports.HelpIcon = exports.GlobeIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = exports.FileVideoIcon = void 0;
23
- exports.XIcon = exports.DangerIcon = exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = exports.TranslateIcon = exports.ToolbarUnindentIcon = exports.ToolbarIndentIcon = exports.ToolbarUnorderedListIcon = exports.ToolbarUnderlineIcon = exports.ToolbarTableIcon = exports.ToolbarSymbolIcon = exports.ToolbarSuperscriptIcon = exports.ToolbarSubscriptIcon = void 0;
22
+ exports.ToolbarOrderedListIcon = exports.ToolbarItalicIcon = exports.ToolbarFigureIcon = exports.ToolbarEquationIcon = exports.ToolbarCodeIcon = exports.ToolbarCitationIcon = exports.ToolbarBoxedTextIcon = exports.ToolbarBoldIcon = exports.TickIcon = exports.TaskStepDoneIcon = exports.SupplementsIcon = exports.SliderOnIcon = exports.SliderOffIcon = exports.SectionCategoryIcon = exports.SearchIcon = exports.ScrollIcon = exports.SaveStatusErrorIcon = exports.SaveStatusSavingIcon = exports.SaveStatusSavedIcon = exports.SaveStatusOfflineIcon = exports.RoleReadingIcon = exports.RoleAnnotatingIcon = exports.PlusIcon = exports.ORCIDIcon = exports.OutlineUnorderedListIcon = exports.OutlineTableIcon = exports.OutlineSectionIcon = exports.OutlinePullQuoteIcon = exports.OutlineParagraphIcon = exports.OutlineOrderedListIcon = exports.OutlineManuscriptIcon = exports.OutlineFigureIcon = exports.OutlineEmbedIcon = exports.OutlineEquationIcon = exports.OutlineCodeIcon = exports.OutlineBlockQuoteIcon = exports.ManuscriptIcon = exports.LogoutIcon = exports.LockIcon = exports.LinkIcon = exports.InspectorPluginIcon = exports.InfoCircleIcon = exports.ImageRightIcon = exports.ImageDefaultIcon = exports.ImageLeftIcon = exports.HelpIcon = exports.GlobeIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = exports.FileVideoIcon = void 0;
23
+ exports.XIcon = exports.DangerIcon = exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = exports.TranslateIcon = exports.ToolbarUnindentIcon = exports.ToolbarIndentIcon = exports.ToolbarUnorderedListIcon = exports.ToolbarUnderlineIcon = exports.ToolbarTableIcon = exports.ToolbarSymbolIcon = exports.ToolbarSuperscriptIcon = exports.ToolbarSubscriptIcon = exports.ToolbarSpecialCharactersIcon = void 0;
24
24
  var add_author_1 = require("./add-author");
25
25
  Object.defineProperty(exports, "AddAuthorIcon", { enumerable: true, get: function () { return __importDefault(add_author_1).default; } });
26
26
  var add_comment_1 = require("./add-comment");
@@ -137,6 +137,8 @@ var image_default_1 = require("./image-default");
137
137
  Object.defineProperty(exports, "ImageDefaultIcon", { enumerable: true, get: function () { return __importDefault(image_default_1).default; } });
138
138
  var image_right_1 = require("./image-right");
139
139
  Object.defineProperty(exports, "ImageRightIcon", { enumerable: true, get: function () { return __importDefault(image_right_1).default; } });
140
+ var info_circle_1 = require("./info-circle");
141
+ Object.defineProperty(exports, "InfoCircleIcon", { enumerable: true, get: function () { return __importDefault(info_circle_1).default; } });
140
142
  var inspector_plugin_1 = require("./inspector-plugin");
141
143
  Object.defineProperty(exports, "InspectorPluginIcon", { enumerable: true, get: function () { return __importDefault(inspector_plugin_1).default; } });
142
144
  var link_1 = require("./link");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const InfoCircleIcon = (props) => ((0, jsx_runtime_1.jsx)("svg", { width: "42", height: "42", viewBox: "0 0 42 42", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M19.25 26.25H22.75V29.75H19.25V26.25ZM19.25 12.25H22.75V22.75H19.25V12.25ZM20.9912 3.5C11.3225 3.5 3.5 11.3312 3.5 21C3.5 30.6688 11.3225 38.5 20.9912 38.5C30.66 38.5 38.5 30.6688 38.5 21C38.5 11.3312 30.66 3.5 20.9912 3.5ZM21 35C13.265 35 7 28.735 7 21C7 13.265 13.265 7 21 7C28.735 7 35 13.265 35 21C35 28.735 28.735 35 21 35Z", fill: "#6E6E6E" }) }));
5
+ exports.default = InfoCircleIcon;
@@ -0,0 +1,291 @@
1
+ "use strict";
2
+ /*!
3
+ * © 2024 Atypon Systems LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.COUNTRY_SELECT_OPTIONS = void 0;
19
+ const RAW_COUNTRY_OPTIONS = [
20
+ { name: 'Afghanistan', value: 'Afghanistan' },
21
+ { name: 'Albania', value: 'Albania' },
22
+ { name: 'Algeria', value: 'Algeria' },
23
+ { name: 'American Samoa', value: 'American Samoa' },
24
+ { name: 'Andorra', value: 'Andorra' },
25
+ { name: 'Angola', value: 'Angola' },
26
+ { name: 'Anguilla', value: 'Anguilla' },
27
+ { name: 'Antarctica', value: 'Antarctica' },
28
+ { name: 'Antigua and Barbuda', value: 'Antigua and Barbuda' },
29
+ { name: 'Argentina', value: 'Argentina' },
30
+ { name: 'Armenia', value: 'Armenia' },
31
+ { name: 'Aruba', value: 'Aruba' },
32
+ { name: 'Australia', value: 'Australia' },
33
+ { name: 'Austria', value: 'Austria' },
34
+ { name: 'Azerbaijan', value: 'Azerbaijan' },
35
+ { name: 'Bahamas', value: 'Bahamas' },
36
+ { name: 'Bahrain', value: 'Bahrain' },
37
+ { name: 'Bangladesh', value: 'Bangladesh' },
38
+ { name: 'Barbados', value: 'Barbados' },
39
+ { name: 'Belarus', value: 'Belarus' },
40
+ { name: 'Belgium', value: 'Belgium' },
41
+ { name: 'Belize', value: 'Belize' },
42
+ { name: 'Benin', value: 'Benin' },
43
+ { name: 'Bermuda', value: 'Bermuda' },
44
+ { name: 'Bhutan', value: 'Bhutan' },
45
+ { name: 'Bolivia', value: 'Bolivia' },
46
+ {
47
+ name: 'Bonaire, Sint Eustatius and Saba',
48
+ value: 'Bonaire, Sint Eustatius and Saba',
49
+ },
50
+ { name: 'Bosnia and Herzegovina', value: 'Bosnia and Herzegovina' },
51
+ { name: 'Botswana', value: 'Botswana' },
52
+ { name: 'Bouvet Island', value: 'Bouvet Island' },
53
+ { name: 'Brazil', value: 'Brazil' },
54
+ {
55
+ name: 'British Indian Ocean Territory',
56
+ value: 'British Indian Ocean Territory',
57
+ },
58
+ { name: 'Brunei Darussalam', value: 'Brunei Darussalam' },
59
+ { name: 'Bulgaria', value: 'Bulgaria' },
60
+ { name: 'Burkina Faso', value: 'Burkina Faso' },
61
+ { name: 'Burundi', value: 'Burundi' },
62
+ { name: 'Cabo Verde', value: 'Cabo Verde' },
63
+ { name: 'Cambodia', value: 'Cambodia' },
64
+ { name: 'Cameroon', value: 'Cameroon' },
65
+ { name: 'Canada', value: 'Canada' },
66
+ { name: 'Cayman Islands', value: 'Cayman Islands' },
67
+ { name: 'Central African Republic', value: 'Central African Republic' },
68
+ { name: 'Chad', value: 'Chad' },
69
+ { name: 'Chile', value: 'Chile' },
70
+ { name: 'China', value: 'China' },
71
+ { name: 'Christmas Island', value: 'Christmas Island' },
72
+ { name: 'Cocos (Keeling) Islands', value: 'Cocos (Keeling) Islands' },
73
+ { name: 'Colombia', value: 'Colombia' },
74
+ { name: 'Comoros', value: 'Comoros' },
75
+ { name: 'Congo - Brazzaville', value: 'Congo - Brazzaville' },
76
+ { name: 'Congo - Kinshasa', value: 'Congo - Kinshasa' },
77
+ { name: 'Cook Islands', value: 'Cook Islands' },
78
+ { name: 'Costa Rica', value: 'Costa Rica' },
79
+ { name: 'Croatia', value: 'Croatia' },
80
+ { name: 'Cuba', value: 'Cuba' },
81
+ { name: 'Curaçao', value: 'Curaçao' },
82
+ { name: 'Cyprus', value: 'Cyprus' },
83
+ { name: 'Czechia', value: 'Czechia' },
84
+ { name: "Côte d'Ivoire", value: "Côte d'Ivoire" },
85
+ { name: 'Denmark', value: 'Denmark' },
86
+ { name: 'Djibouti', value: 'Djibouti' },
87
+ { name: 'Dominica', value: 'Dominica' },
88
+ { name: 'Dominican Republic', value: 'Dominican Republic' },
89
+ { name: 'Ecuador', value: 'Ecuador' },
90
+ { name: 'Egypt', value: 'Egypt' },
91
+ { name: 'El Salvador', value: 'El Salvador' },
92
+ { name: 'Equatorial Guinea', value: 'Equatorial Guinea' },
93
+ { name: 'Eritrea', value: 'Eritrea' },
94
+ { name: 'Estonia', value: 'Estonia' },
95
+ { name: 'Eswatini', value: 'Eswatini' },
96
+ { name: 'Ethiopia', value: 'Ethiopia' },
97
+ { name: 'Falkland Islands (Malvinas)', value: 'Falkland Islands (Malvinas)' },
98
+ { name: 'Faroe Islands', value: 'Faroe Islands' },
99
+ { name: 'Fiji', value: 'Fiji' },
100
+ { name: 'Finland', value: 'Finland' },
101
+ { name: 'France', value: 'France' },
102
+ { name: 'French Guiana', value: 'French Guiana' },
103
+ { name: 'French Polynesia', value: 'French Polynesia' },
104
+ { name: 'French Southern Territories', value: 'French Southern Territories' },
105
+ { name: 'Gabon', value: 'Gabon' },
106
+ { name: 'Gambia', value: 'Gambia' },
107
+ { name: 'Georgia', value: 'Georgia' },
108
+ { name: 'Germany', value: 'Germany' },
109
+ { name: 'Ghana', value: 'Ghana' },
110
+ { name: 'Gibraltar', value: 'Gibraltar' },
111
+ { name: 'Greece', value: 'Greece' },
112
+ { name: 'Greenland', value: 'Greenland' },
113
+ { name: 'Grenada', value: 'Grenada' },
114
+ { name: 'Guadeloupe', value: 'Guadeloupe' },
115
+ { name: 'Guam', value: 'Guam' },
116
+ { name: 'Guatemala', value: 'Guatemala' },
117
+ { name: 'Guernsey', value: 'Guernsey' },
118
+ { name: 'Guinea', value: 'Guinea' },
119
+ { name: 'Guinea-Bissau', value: 'Guinea-Bissau' },
120
+ { name: 'Guyana', value: 'Guyana' },
121
+ { name: 'Haiti', value: 'Haiti' },
122
+ {
123
+ name: 'Heard Island and McDonald Islands',
124
+ value: 'Heard Island and McDonald Islands',
125
+ },
126
+ { name: 'Honduras', value: 'Honduras' },
127
+ { name: 'Hong Kong', value: 'Hong Kong' },
128
+ { name: 'Hungary', value: 'Hungary' },
129
+ { name: 'Iceland', value: 'Iceland' },
130
+ { name: 'India', value: 'India' },
131
+ { name: 'Indonesia', value: 'Indonesia' },
132
+ { name: 'Iran', value: 'Iran' },
133
+ { name: 'Iraq', value: 'Iraq' },
134
+ { name: 'Ireland', value: 'Ireland' },
135
+ { name: 'Isle of Man', value: 'Isle of Man' },
136
+ { name: 'Israel', value: 'Israel' },
137
+ { name: 'Italy', value: 'Italy' },
138
+ { name: 'Jamaica', value: 'Jamaica' },
139
+ { name: 'Japan', value: 'Japan' },
140
+ { name: 'Jersey', value: 'Jersey' },
141
+ { name: 'Jordan', value: 'Jordan' },
142
+ { name: 'Kazakhstan', value: 'Kazakhstan' },
143
+ { name: 'Kenya', value: 'Kenya' },
144
+ { name: 'Kiribati', value: 'Kiribati' },
145
+ { name: 'Kuwait', value: 'Kuwait' },
146
+ { name: 'Kyrgyzstan', value: 'Kyrgyzstan' },
147
+ { name: 'Laos', value: 'Laos' },
148
+ { name: 'Latvia', value: 'Latvia' },
149
+ { name: 'Lebanon', value: 'Lebanon' },
150
+ { name: 'Lesotho', value: 'Lesotho' },
151
+ { name: 'Liberia', value: 'Liberia' },
152
+ { name: 'Libya', value: 'Libya' },
153
+ { name: 'Liechtenstein', value: 'Liechtenstein' },
154
+ { name: 'Lithuania', value: 'Lithuania' },
155
+ { name: 'Luxembourg', value: 'Luxembourg' },
156
+ { name: 'Macao', value: 'Macao' },
157
+ { name: 'Madagascar', value: 'Madagascar' },
158
+ { name: 'Malawi', value: 'Malawi' },
159
+ { name: 'Malaysia', value: 'Malaysia' },
160
+ { name: 'Maldives', value: 'Maldives' },
161
+ { name: 'Mali', value: 'Mali' },
162
+ { name: 'Malta', value: 'Malta' },
163
+ { name: 'Marshall Islands', value: 'Marshall Islands' },
164
+ { name: 'Martinique', value: 'Martinique' },
165
+ { name: 'Mauritania', value: 'Mauritania' },
166
+ { name: 'Mauritius', value: 'Mauritius' },
167
+ { name: 'Mayotte', value: 'Mayotte' },
168
+ { name: 'Mexico', value: 'Mexico' },
169
+ { name: 'Micronesia', value: 'Micronesia' },
170
+ { name: 'Moldova', value: 'Moldova' },
171
+ { name: 'Monaco', value: 'Monaco' },
172
+ { name: 'Mongolia', value: 'Mongolia' },
173
+ { name: 'Montenegro', value: 'Montenegro' },
174
+ { name: 'Montserrat', value: 'Montserrat' },
175
+ { name: 'Morocco', value: 'Morocco' },
176
+ { name: 'Mozambique', value: 'Mozambique' },
177
+ { name: 'Myanmar', value: 'Myanmar' },
178
+ { name: 'Namibia', value: 'Namibia' },
179
+ { name: 'Nauru', value: 'Nauru' },
180
+ { name: 'Nepal', value: 'Nepal' },
181
+ { name: 'Netherlands', value: 'Netherlands' },
182
+ { name: 'New Caledonia', value: 'New Caledonia' },
183
+ { name: 'New Zealand', value: 'New Zealand' },
184
+ { name: 'Nicaragua', value: 'Nicaragua' },
185
+ { name: 'Niger', value: 'Niger' },
186
+ { name: 'Nigeria', value: 'Nigeria' },
187
+ { name: 'Niue', value: 'Niue' },
188
+ { name: 'Norfolk Island', value: 'Norfolk Island' },
189
+ { name: 'North Korea', value: 'North Korea' },
190
+ { name: 'North Macedonia', value: 'North Macedonia' },
191
+ { name: 'Northern Mariana Islands', value: 'Northern Mariana Islands' },
192
+ { name: 'Norway', value: 'Norway' },
193
+ { name: 'Oman', value: 'Oman' },
194
+ { name: 'Pakistan', value: 'Pakistan' },
195
+ { name: 'Palau', value: 'Palau' },
196
+ { name: 'Palestinian Territories', value: 'Palestinian Territories' },
197
+ { name: 'Panama', value: 'Panama' },
198
+ { name: 'Papua New Guinea', value: 'Papua New Guinea' },
199
+ { name: 'Paraguay', value: 'Paraguay' },
200
+ { name: 'Peru', value: 'Peru' },
201
+ { name: 'Philippines', value: 'Philippines' },
202
+ { name: 'Pitcairn', value: 'Pitcairn' },
203
+ { name: 'Poland', value: 'Poland' },
204
+ { name: 'Portugal', value: 'Portugal' },
205
+ { name: 'Puerto Rico', value: 'Puerto Rico' },
206
+ { name: 'Qatar', value: 'Qatar' },
207
+ { name: 'Romania', value: 'Romania' },
208
+ { name: 'Russia', value: 'Russia' },
209
+ { name: 'Rwanda', value: 'Rwanda' },
210
+ { name: 'Réunion', value: 'Réunion' },
211
+ { name: 'Saint Barthélemy', value: 'Saint Barthélemy' },
212
+ {
213
+ name: 'Saint Helena, Ascension and Tristan da Cunha',
214
+ value: 'Saint Helena, Ascension and Tristan da Cunha',
215
+ },
216
+ { name: 'Saint Kitts and Nevis', value: 'Saint Kitts and Nevis' },
217
+ { name: 'Saint Lucia', value: 'Saint Lucia' },
218
+ { name: 'Saint Martin (French part)', value: 'Saint Martin (French part)' },
219
+ { name: 'Saint Pierre and Miquelon', value: 'Saint Pierre and Miquelon' },
220
+ {
221
+ name: 'Saint Vincent and the Grenadines',
222
+ value: 'Saint Vincent and the Grenadines',
223
+ },
224
+ { name: 'Samoa', value: 'Samoa' },
225
+ { name: 'San Marino', value: 'San Marino' },
226
+ { name: 'Sao Tome and Principe', value: 'Sao Tome and Principe' },
227
+ { name: 'Saudi Arabia', value: 'Saudi Arabia' },
228
+ { name: 'Senegal', value: 'Senegal' },
229
+ { name: 'Serbia', value: 'Serbia' },
230
+ { name: 'Seychelles', value: 'Seychelles' },
231
+ { name: 'Sierra Leone', value: 'Sierra Leone' },
232
+ { name: 'Singapore', value: 'Singapore' },
233
+ { name: 'Sint Maarten (Dutch part)', value: 'Sint Maarten (Dutch part)' },
234
+ { name: 'Slovakia', value: 'Slovakia' },
235
+ { name: 'Slovenia', value: 'Slovenia' },
236
+ { name: 'Solomon Islands', value: 'Solomon Islands' },
237
+ { name: 'Somalia', value: 'Somalia' },
238
+ { name: 'South Africa', value: 'South Africa' },
239
+ {
240
+ name: 'South Georgia and the South Sandwich Islands',
241
+ value: 'South Georgia and the South Sandwich Islands',
242
+ },
243
+ { name: 'South Korea', value: 'South Korea' },
244
+ { name: 'South Sudan', value: 'South Sudan' },
245
+ { name: 'Spain', value: 'Spain' },
246
+ { name: 'Sri Lanka', value: 'Sri Lanka' },
247
+ { name: 'Sudan', value: 'Sudan' },
248
+ { name: 'Suriname', value: 'Suriname' },
249
+ { name: 'Svalbard and Jan Mayen', value: 'Svalbard and Jan Mayen' },
250
+ { name: 'Sweden', value: 'Sweden' },
251
+ { name: 'Switzerland', value: 'Switzerland' },
252
+ { name: 'Syria', value: 'Syria' },
253
+ { name: 'Taiwan', value: 'Taiwan' },
254
+ { name: 'Tajikistan', value: 'Tajikistan' },
255
+ { name: 'Tanzania', value: 'Tanzania' },
256
+ { name: 'Thailand', value: 'Thailand' },
257
+ { name: 'Timor-Leste', value: 'Timor-Leste' },
258
+ { name: 'Togo', value: 'Togo' },
259
+ { name: 'Tokelau', value: 'Tokelau' },
260
+ { name: 'Tonga', value: 'Tonga' },
261
+ { name: 'Trinidad and Tobago', value: 'Trinidad and Tobago' },
262
+ { name: 'Tunisia', value: 'Tunisia' },
263
+ { name: 'Turkmenistan', value: 'Turkmenistan' },
264
+ { name: 'Turks and Caicos Islands', value: 'Turks and Caicos Islands' },
265
+ { name: 'Tuvalu', value: 'Tuvalu' },
266
+ { name: 'Türkiye', value: 'Türkiye' },
267
+ { name: 'Uganda', value: 'Uganda' },
268
+ { name: 'Ukraine', value: 'Ukraine' },
269
+ { name: 'United Arab Emirates', value: 'United Arab Emirates' },
270
+ { name: 'United Kingdom', value: 'United Kingdom' },
271
+ { name: 'United States', value: 'United States' },
272
+ {
273
+ name: 'United States Minor Outlying Islands',
274
+ value: 'United States Minor Outlying Islands',
275
+ },
276
+ { name: 'Uruguay', value: 'Uruguay' },
277
+ { name: 'Uzbekistan', value: 'Uzbekistan' },
278
+ { name: 'Vanuatu', value: 'Vanuatu' },
279
+ { name: 'Vatican City', value: 'Vatican City' },
280
+ { name: 'Venezuela', value: 'Venezuela' },
281
+ { name: 'Vietnam', value: 'Vietnam' },
282
+ { name: 'Virgin Islands (British)', value: 'Virgin Islands (British)' },
283
+ { name: 'Virgin Islands (U.S.)', value: 'Virgin Islands (U.S.)' },
284
+ { name: 'Wallis and Futuna', value: 'Wallis and Futuna' },
285
+ { name: 'Western Sahara', value: 'Western Sahara' },
286
+ { name: 'Yemen', value: 'Yemen' },
287
+ { name: 'Zambia', value: 'Zambia' },
288
+ { name: 'Zimbabwe', value: 'Zimbabwe' },
289
+ { name: 'Åland Islands', value: 'Åland Islands' },
290
+ ];
291
+ exports.COUNTRY_SELECT_OPTIONS = RAW_COUNTRY_OPTIONS.map(({ name, value }) => ({ label: name, value }));
package/dist/cjs/index.js CHANGED
@@ -101,3 +101,4 @@ __exportStar(require("./hooks/use-scroll-detection"), exports);
101
101
  __exportStar(require("./hooks/use-focus-cycle"), exports);
102
102
  __exportStar(require("./lib/files"), exports);
103
103
  __exportStar(require("./lib/menus"), exports);
104
+ __exportStar(require("./data/countryOptions"), exports);
@@ -29,7 +29,7 @@ export const CheckboxLabel = styled.label `
29
29
  width: 1px;
30
30
  }
31
31
 
32
- div {
32
+ > div {
33
33
  align-items: center;
34
34
  font-family: ${(props) => props.theme.font.family.sans};
35
35
  font-size: ${(props) => props.theme.font.size.normal};
@@ -58,7 +58,6 @@ export const CheckboxLabel = styled.label `
58
58
  }
59
59
  }
60
60
 
61
-
62
61
  input:checked + div::before {
63
62
  background-color: transparent !important;
64
63
  border-color: transparent !important;
@@ -57,15 +57,51 @@ export var Category;
57
57
  Category["warning"] = "warning";
58
58
  Category["success"] = "success";
59
59
  })(Category || (Category = {}));
60
+ const SecondaryTextDanger = styled.button.attrs({ type: 'button' }) `
61
+ align-items: center;
62
+ background: none;
63
+ border: none;
64
+ border-radius: ${(props) => props.theme.grid.radius.small};
65
+ color: ${(props) => props.theme.colors.text.error};
66
+ cursor: pointer;
67
+ display: inline-flex;
68
+ flex-shrink: 0;
69
+ font: ${(props) => props.theme.font.weight.normal}
70
+ ${(props) => props.theme.font.size.medium} /
71
+ ${(props) => props.theme.font.lineHeight.large}
72
+ ${(props) => props.theme.font.family.sans};
73
+ justify-content: center;
74
+ outline: none;
75
+ padding: 7px ${(props) => props.theme.grid.unit * 3}px;
76
+ text-decoration: none;
77
+ transition:
78
+ color 0.1s,
79
+ opacity 0.1s;
80
+
81
+ &:not([disabled]):hover,
82
+ &:not([disabled]):focus-visible {
83
+ text-decoration: underline;
84
+ }
85
+
86
+ &:not([disabled]):focus-visible {
87
+ outline: 3px solid ${(props) => props.theme.colors.outline.focus};
88
+ outline-offset: 2px;
89
+ }
90
+
91
+ &:disabled {
92
+ cursor: not-allowed;
93
+ opacity: 0.5;
94
+ }
95
+ `;
60
96
  const PrimaryAction = (props) => props.isDestructive ? (props.hasForm ? (_jsx(PrimaryButton, { danger: true, disabled: props.disabled, form: "formDialog", type: "submit", children: props.title })) : (_jsx(PrimaryButton, { danger: true, disabled: props.disabled, onClick: props.action, autoFocus: true, children: props.title }))) : props.hasForm ? (_jsx(PrimaryButton, { disabled: props.disabled, form: "formDialog", type: "submit", children: props.title })) : (_jsx(PrimaryButton, { disabled: props.disabled, onClick: props.action, autoFocus: true, children: props.title }));
61
- const SecondaryAction = (props) => (_jsx(SecondaryButton, { disabled: props.disabled, onClick: props.action, children: props.title }));
97
+ const SecondaryAction = (props) => props.variant === 'textDanger' ? (_jsx(SecondaryTextDanger, { disabled: props.disabled, onClick: props.action, children: props.title })) : (_jsx(SecondaryButton, { disabled: props.disabled, onClick: props.action, children: props.title }));
62
98
  export class Dialog extends React.Component {
63
99
  constructor() {
64
100
  super(...arguments);
65
101
  this.state = {
66
102
  primaryActionDisabled: true,
67
103
  };
68
- this.renderButtons = (props, disabled) => (_jsx(ButtonsContainer, { children: props.actions.secondary ? (!props.actions.primary.isDestructive ? (_jsxs(_Fragment, { children: [_jsx(SecondaryAction, { action: props.actions.secondary.action, hasForm: !!this.props.confirmFieldText, title: props.actions.secondary.title }), _jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, title: props.actions.primary.title || 'Dismiss' })] })) : (_jsxs(_Fragment, { children: [_jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: true, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' }), _jsx(SecondaryAction, { action: props.actions.secondary.action, title: props.actions.secondary.title })] }))) : (_jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: props.actions.primary.isDestructive, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' })) }));
104
+ this.renderButtons = (props, disabled) => (_jsx(ButtonsContainer, { children: props.actions.secondary ? (!props.actions.primary.isDestructive ? (_jsxs(_Fragment, { children: [_jsx(SecondaryAction, { action: props.actions.secondary.action, hasForm: !!this.props.confirmFieldText, title: props.actions.secondary.title, variant: props.actions.secondary.variant ?? 'default' }), _jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, title: props.actions.primary.title || 'Dismiss' })] })) : (_jsxs(_Fragment, { children: [_jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: true, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' }), _jsx(SecondaryAction, { action: props.actions.secondary.action, title: props.actions.secondary.title, variant: props.actions.secondary.variant ?? 'default' })] }))) : (_jsx(PrimaryAction, { action: props.actions.primary.action, disabled: disabled, isDestructive: props.actions.primary.isDestructive, hasForm: !!this.props.confirmFieldText, title: props.actions.primary.title || 'Dismiss' })) }));
69
105
  this.checkInputValue = (event) => {
70
106
  const testingVal = this.props.confirmFieldText && this.props.confirmFieldText.toUpperCase();
71
107
  const target = event.target;
@@ -99,12 +99,13 @@ export const FormSubtitle = styled.p `
99
99
  ${(props) => props.theme.font.size.medium} /
100
100
  ${(props) => props.theme.font.lineHeight.large}
101
101
  ${(props) => props.theme.font.family.sans};
102
+ margin-bottom: ${(props) => props.theme.grid.unit * 4}px;
103
+ margin-top: ${(props) => props.theme.grid.unit * 2}px;
102
104
  `;
103
105
  export const Label = styled.label `
104
106
  display: inline-flex;
105
107
  align-items: center;
106
- gap: ${(props) => props.theme.grid.unit}px;
107
- color: ${(props) => props.theme.colors.text.secondary};
108
+ color: ${(props) => props.theme.colors.text.primary};
108
109
  font: ${(props) => props.theme.font.weight.normal}
109
110
  ${(props) => props.theme.font.size.normal} /
110
111
  ${(props) => props.theme.font.lineHeight.normal}
@@ -134,5 +135,16 @@ export const InputErrorText = styled.span `
134
135
  ${(props) => props.theme.font.lineHeight.normal}
135
136
  ${(props) => props.theme.font.family.sans};
136
137
  display: block;
137
- margin-top: 4px;
138
+ `;
139
+ export const FormGroup = styled.div `
140
+ display: flex;
141
+ flex-direction: row;
142
+ gap: ${(props) => props.theme.grid.unit * 2}px;
143
+ `;
144
+ export const RequiredIndicator = styled.span `
145
+ color: ${(props) => props.theme.colors.text.error};
146
+ font: ${(props) => props.theme.font.weight.normal}
147
+ ${(props) => props.theme.font.size.medium} /
148
+ ${(props) => props.theme.font.lineHeight.normal}
149
+ ${(props) => props.theme.font.family.sans};
138
150
  `;
@@ -132,6 +132,13 @@ export function withListNavigation(Component) {
132
132
  if (!element) {
133
133
  return;
134
134
  }
135
+ if (element.hasAttribute('disabled')) {
136
+ const tabbedElement = element.querySelector('[data-list-item][tabindex="0"]');
137
+ if (tabbedElement) {
138
+ tabbedElement.tabIndex = -1;
139
+ }
140
+ return;
141
+ }
135
142
  const firstItem = element.querySelector('[data-list-item]');
136
143
  if (!firstItem) {
137
144
  return;
@@ -148,6 +155,13 @@ export function withListNavigation(Component) {
148
155
  return (_jsx(Component, { ref: mergeRefs(containerRef, forwardedRef), ...props, onKeyDown: handleKeyDown, onBlur: handelOnBlur }));
149
156
  })) `
150
157
  outline: none;
158
+ &[disabled] {
159
+ pointer-events: none;
160
+ user-select: none;
161
+ border-color: #e4e4e4;
162
+ color: #b3b3b3;
163
+ opacity: 0.5;
164
+ }
151
165
  `;
152
166
  }
153
167
  export function withNavigableListItem(Component) {
@@ -12,7 +12,6 @@ const Container = styled.div `
12
12
  padding: 4px 8px;
13
13
  background: ${(props) => props.theme.colors.background.primary};
14
14
 
15
-
16
15
  &:hover Input {
17
16
  background-color: ${(props) => props.theme.colors.background.fifth};
18
17
  }
@@ -120,5 +119,5 @@ export const MultiValueInput = ({ id, inputType, placeholder = '', initialValues
120
119
  : inputType === 'number'
121
120
  ? 'Enter number and press enter'
122
121
  : 'Enter text and press enter';
123
- return (_jsxs(Container, { children: [values.map((value, index) => (_jsxs(Chip, { children: [value, _jsx(RemoveButton, { type: 'button', onClick: () => handleRemoveValue(index), children: "\u00D7" })] }, index))), _jsx(Input, { id: id, type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: xplaceholder })] }));
122
+ return (_jsxs(Container, { className: 'multi-value-input', children: [values.map((value, index) => (_jsxs(Chip, { className: 'chip', children: [value, _jsx(RemoveButton, { type: 'button', onClick: () => handleRemoveValue(index), children: "\u00D7" })] }, index))), _jsx(Input, { id: id, type: inputType, value: currentValue, onChange: handleInputChange, onKeyDown: handleKeyDown, onBlur: handleBlur, placeholder: values.length > 0 ? '' : xplaceholder })] }));
124
123
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Select from 'react-select';
3
3
  import { useTheme } from 'styled-components';
4
- const selectStyles = (theme, error, variant) => ({
4
+ const selectStyles = (theme, error, variant, listMaxHeight) => ({
5
5
  control: (base, state) => ({
6
6
  ...base,
7
7
  minHeight: variant === 'large' ? 40 : 32,
@@ -63,6 +63,10 @@ const selectStyles = (theme, error, variant) => ({
63
63
  overflow: 'hidden',
64
64
  boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
65
65
  }),
66
+ menuList: (base) => ({
67
+ ...base,
68
+ maxHeight: listMaxHeight || '300px',
69
+ }),
66
70
  placeholder: (base, state) => ({
67
71
  ...base,
68
72
  color: state.isFocused || state.selectProps.menuIsOpen
@@ -84,11 +88,11 @@ const selectStyles = (theme, error, variant) => ({
84
88
  },
85
89
  }),
86
90
  });
87
- export const SelectField = ({ id, options, field, form, error, variant, isDisabled, ...rest }) => {
91
+ export const SelectField = ({ id, options, field, form, error, variant, isDisabled, listMaxHeight, ...rest }) => {
88
92
  const theme = useTheme();
89
93
  const name = field?.name || '';
90
94
  const value = field?.value;
91
- return (_jsx(Select, { inputId: id, options: options, name: name, classNamePrefix: name, value: options?.find((option) => option.value === value), onChange: (option) => form?.setFieldValue(name, option?.value), onBlur: field?.onBlur, styles: selectStyles(theme, error, variant), isDisabled: form?.isSubmitting || isDisabled, ...rest, theme: (base) => ({
95
+ return (_jsx(Select, { inputId: id, options: options, name: name, classNamePrefix: name, value: options?.find((option) => option.value === value), onChange: (option) => form?.setFieldValue(name, option?.value), onBlur: field?.onBlur, styles: selectStyles(theme, error, variant, listMaxHeight), isDisabled: form?.isSubmitting || isDisabled, ...rest, theme: (base) => ({
92
96
  ...base,
93
97
  colors: {
94
98
  ...base.colors,
@@ -6,6 +6,12 @@ const BoxContainer = styled.div `
6
6
  padding: 8px;
7
7
  min-height: 120px;
8
8
  background: ${(props) => props.theme.colors.background.primary};
9
+
10
+ &[disabled] {
11
+ color: #707070 !important;
12
+ background: #f5f5f5;
13
+ cursor: not-allowed;
14
+ }
9
15
  `;
10
16
  const ItemsList = styled.div `
11
17
  display: flex;
@@ -30,10 +36,10 @@ const Item = styled.div `
30
36
  display: flex;
31
37
  align-items: center;
32
38
  gap: 4px;
33
- background: #f2f2f2;
39
+ background: ${(props) => (props.disabled ? '#dddcdc' : '#f2f2f2')};
34
40
  border-radius: 6px;
35
41
  padding: 4px;
36
- color: ${(props) => props.theme.colors.text.primary};
42
+ color: ${(props) => props.disabled ? '#707070' : props.theme.colors.text.primary};
37
43
  font: ${(props) => props.theme.font.weight.normal}
38
44
  ${(props) => props.theme.font.size.small}
39
45
  ${(props) => props.theme.font.family.sans};
@@ -59,6 +65,6 @@ const RemoveButton = styled.button `
59
65
  }
60
66
  `;
61
67
  export const SelectedItemsBox = ({ items, onRemove, placeholder = 'No items selected', ...props }) => {
62
- return (_jsx(BoxContainer, { ...props, children: items.length > 0 ? (_jsx(ItemsList, { children: items.map((item) => (_jsxs(Item, { "data-cy": "item", children: [item.label, _jsx(RemoveButton, { onClick: () => onRemove(item.id), "aria-label": `Remove ${item.label}`, children: "x" })] }, item.id))) })) : (_jsx(EmptyContainer, { children: _jsx(Placeholder, { children: placeholder }) })) }));
68
+ return (_jsx(BoxContainer, { ...props, children: items.length > 0 ? (_jsx(ItemsList, { children: items.map((item) => (_jsxs(Item, { "data-cy": "item", disabled: !!props.disabled, children: [item.label, !props.disabled && (_jsx(RemoveButton, { onClick: () => onRemove(item.id), "aria-label": `Remove ${item.label}`, children: "x" }))] }, item.id))) })) : (_jsx(EmptyContainer, { children: _jsx(Placeholder, { children: placeholder }) })) }));
63
69
  };
64
70
  export default SelectedItemsBox;
@@ -71,6 +71,7 @@ export { default as HelpIcon } from './help';
71
71
  export { default as ImageLeftIcon } from './image-left';
72
72
  export { default as ImageDefaultIcon } from './image-default';
73
73
  export { default as ImageRightIcon } from './image-right';
74
+ export { default as InfoCircleIcon } from './info-circle';
74
75
  export { default as InspectorPluginIcon } from './inspector-plugin';
75
76
  export { default as LinkIcon } from './link';
76
77
  export { default as LockIcon } from './lock';
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const InfoCircleIcon = (props) => (_jsx("svg", { width: "42", height: "42", viewBox: "0 0 42 42", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M19.25 26.25H22.75V29.75H19.25V26.25ZM19.25 12.25H22.75V22.75H19.25V12.25ZM20.9912 3.5C11.3225 3.5 3.5 11.3312 3.5 21C3.5 30.6688 11.3225 38.5 20.9912 38.5C30.66 38.5 38.5 30.6688 38.5 21C38.5 11.3312 30.66 3.5 20.9912 3.5ZM21 35C13.265 35 7 28.735 7 21C7 13.265 13.265 7 21 7C28.735 7 35 13.265 35 21C35 28.735 28.735 35 21 35Z", fill: "#6E6E6E" }) }));
3
+ export default InfoCircleIcon;
@@ -0,0 +1,288 @@
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
+ const RAW_COUNTRY_OPTIONS = [
17
+ { name: 'Afghanistan', value: 'Afghanistan' },
18
+ { name: 'Albania', value: 'Albania' },
19
+ { name: 'Algeria', value: 'Algeria' },
20
+ { name: 'American Samoa', value: 'American Samoa' },
21
+ { name: 'Andorra', value: 'Andorra' },
22
+ { name: 'Angola', value: 'Angola' },
23
+ { name: 'Anguilla', value: 'Anguilla' },
24
+ { name: 'Antarctica', value: 'Antarctica' },
25
+ { name: 'Antigua and Barbuda', value: 'Antigua and Barbuda' },
26
+ { name: 'Argentina', value: 'Argentina' },
27
+ { name: 'Armenia', value: 'Armenia' },
28
+ { name: 'Aruba', value: 'Aruba' },
29
+ { name: 'Australia', value: 'Australia' },
30
+ { name: 'Austria', value: 'Austria' },
31
+ { name: 'Azerbaijan', value: 'Azerbaijan' },
32
+ { name: 'Bahamas', value: 'Bahamas' },
33
+ { name: 'Bahrain', value: 'Bahrain' },
34
+ { name: 'Bangladesh', value: 'Bangladesh' },
35
+ { name: 'Barbados', value: 'Barbados' },
36
+ { name: 'Belarus', value: 'Belarus' },
37
+ { name: 'Belgium', value: 'Belgium' },
38
+ { name: 'Belize', value: 'Belize' },
39
+ { name: 'Benin', value: 'Benin' },
40
+ { name: 'Bermuda', value: 'Bermuda' },
41
+ { name: 'Bhutan', value: 'Bhutan' },
42
+ { name: 'Bolivia', value: 'Bolivia' },
43
+ {
44
+ name: 'Bonaire, Sint Eustatius and Saba',
45
+ value: 'Bonaire, Sint Eustatius and Saba',
46
+ },
47
+ { name: 'Bosnia and Herzegovina', value: 'Bosnia and Herzegovina' },
48
+ { name: 'Botswana', value: 'Botswana' },
49
+ { name: 'Bouvet Island', value: 'Bouvet Island' },
50
+ { name: 'Brazil', value: 'Brazil' },
51
+ {
52
+ name: 'British Indian Ocean Territory',
53
+ value: 'British Indian Ocean Territory',
54
+ },
55
+ { name: 'Brunei Darussalam', value: 'Brunei Darussalam' },
56
+ { name: 'Bulgaria', value: 'Bulgaria' },
57
+ { name: 'Burkina Faso', value: 'Burkina Faso' },
58
+ { name: 'Burundi', value: 'Burundi' },
59
+ { name: 'Cabo Verde', value: 'Cabo Verde' },
60
+ { name: 'Cambodia', value: 'Cambodia' },
61
+ { name: 'Cameroon', value: 'Cameroon' },
62
+ { name: 'Canada', value: 'Canada' },
63
+ { name: 'Cayman Islands', value: 'Cayman Islands' },
64
+ { name: 'Central African Republic', value: 'Central African Republic' },
65
+ { name: 'Chad', value: 'Chad' },
66
+ { name: 'Chile', value: 'Chile' },
67
+ { name: 'China', value: 'China' },
68
+ { name: 'Christmas Island', value: 'Christmas Island' },
69
+ { name: 'Cocos (Keeling) Islands', value: 'Cocos (Keeling) Islands' },
70
+ { name: 'Colombia', value: 'Colombia' },
71
+ { name: 'Comoros', value: 'Comoros' },
72
+ { name: 'Congo - Brazzaville', value: 'Congo - Brazzaville' },
73
+ { name: 'Congo - Kinshasa', value: 'Congo - Kinshasa' },
74
+ { name: 'Cook Islands', value: 'Cook Islands' },
75
+ { name: 'Costa Rica', value: 'Costa Rica' },
76
+ { name: 'Croatia', value: 'Croatia' },
77
+ { name: 'Cuba', value: 'Cuba' },
78
+ { name: 'Curaçao', value: 'Curaçao' },
79
+ { name: 'Cyprus', value: 'Cyprus' },
80
+ { name: 'Czechia', value: 'Czechia' },
81
+ { name: "Côte d'Ivoire", value: "Côte d'Ivoire" },
82
+ { name: 'Denmark', value: 'Denmark' },
83
+ { name: 'Djibouti', value: 'Djibouti' },
84
+ { name: 'Dominica', value: 'Dominica' },
85
+ { name: 'Dominican Republic', value: 'Dominican Republic' },
86
+ { name: 'Ecuador', value: 'Ecuador' },
87
+ { name: 'Egypt', value: 'Egypt' },
88
+ { name: 'El Salvador', value: 'El Salvador' },
89
+ { name: 'Equatorial Guinea', value: 'Equatorial Guinea' },
90
+ { name: 'Eritrea', value: 'Eritrea' },
91
+ { name: 'Estonia', value: 'Estonia' },
92
+ { name: 'Eswatini', value: 'Eswatini' },
93
+ { name: 'Ethiopia', value: 'Ethiopia' },
94
+ { name: 'Falkland Islands (Malvinas)', value: 'Falkland Islands (Malvinas)' },
95
+ { name: 'Faroe Islands', value: 'Faroe Islands' },
96
+ { name: 'Fiji', value: 'Fiji' },
97
+ { name: 'Finland', value: 'Finland' },
98
+ { name: 'France', value: 'France' },
99
+ { name: 'French Guiana', value: 'French Guiana' },
100
+ { name: 'French Polynesia', value: 'French Polynesia' },
101
+ { name: 'French Southern Territories', value: 'French Southern Territories' },
102
+ { name: 'Gabon', value: 'Gabon' },
103
+ { name: 'Gambia', value: 'Gambia' },
104
+ { name: 'Georgia', value: 'Georgia' },
105
+ { name: 'Germany', value: 'Germany' },
106
+ { name: 'Ghana', value: 'Ghana' },
107
+ { name: 'Gibraltar', value: 'Gibraltar' },
108
+ { name: 'Greece', value: 'Greece' },
109
+ { name: 'Greenland', value: 'Greenland' },
110
+ { name: 'Grenada', value: 'Grenada' },
111
+ { name: 'Guadeloupe', value: 'Guadeloupe' },
112
+ { name: 'Guam', value: 'Guam' },
113
+ { name: 'Guatemala', value: 'Guatemala' },
114
+ { name: 'Guernsey', value: 'Guernsey' },
115
+ { name: 'Guinea', value: 'Guinea' },
116
+ { name: 'Guinea-Bissau', value: 'Guinea-Bissau' },
117
+ { name: 'Guyana', value: 'Guyana' },
118
+ { name: 'Haiti', value: 'Haiti' },
119
+ {
120
+ name: 'Heard Island and McDonald Islands',
121
+ value: 'Heard Island and McDonald Islands',
122
+ },
123
+ { name: 'Honduras', value: 'Honduras' },
124
+ { name: 'Hong Kong', value: 'Hong Kong' },
125
+ { name: 'Hungary', value: 'Hungary' },
126
+ { name: 'Iceland', value: 'Iceland' },
127
+ { name: 'India', value: 'India' },
128
+ { name: 'Indonesia', value: 'Indonesia' },
129
+ { name: 'Iran', value: 'Iran' },
130
+ { name: 'Iraq', value: 'Iraq' },
131
+ { name: 'Ireland', value: 'Ireland' },
132
+ { name: 'Isle of Man', value: 'Isle of Man' },
133
+ { name: 'Israel', value: 'Israel' },
134
+ { name: 'Italy', value: 'Italy' },
135
+ { name: 'Jamaica', value: 'Jamaica' },
136
+ { name: 'Japan', value: 'Japan' },
137
+ { name: 'Jersey', value: 'Jersey' },
138
+ { name: 'Jordan', value: 'Jordan' },
139
+ { name: 'Kazakhstan', value: 'Kazakhstan' },
140
+ { name: 'Kenya', value: 'Kenya' },
141
+ { name: 'Kiribati', value: 'Kiribati' },
142
+ { name: 'Kuwait', value: 'Kuwait' },
143
+ { name: 'Kyrgyzstan', value: 'Kyrgyzstan' },
144
+ { name: 'Laos', value: 'Laos' },
145
+ { name: 'Latvia', value: 'Latvia' },
146
+ { name: 'Lebanon', value: 'Lebanon' },
147
+ { name: 'Lesotho', value: 'Lesotho' },
148
+ { name: 'Liberia', value: 'Liberia' },
149
+ { name: 'Libya', value: 'Libya' },
150
+ { name: 'Liechtenstein', value: 'Liechtenstein' },
151
+ { name: 'Lithuania', value: 'Lithuania' },
152
+ { name: 'Luxembourg', value: 'Luxembourg' },
153
+ { name: 'Macao', value: 'Macao' },
154
+ { name: 'Madagascar', value: 'Madagascar' },
155
+ { name: 'Malawi', value: 'Malawi' },
156
+ { name: 'Malaysia', value: 'Malaysia' },
157
+ { name: 'Maldives', value: 'Maldives' },
158
+ { name: 'Mali', value: 'Mali' },
159
+ { name: 'Malta', value: 'Malta' },
160
+ { name: 'Marshall Islands', value: 'Marshall Islands' },
161
+ { name: 'Martinique', value: 'Martinique' },
162
+ { name: 'Mauritania', value: 'Mauritania' },
163
+ { name: 'Mauritius', value: 'Mauritius' },
164
+ { name: 'Mayotte', value: 'Mayotte' },
165
+ { name: 'Mexico', value: 'Mexico' },
166
+ { name: 'Micronesia', value: 'Micronesia' },
167
+ { name: 'Moldova', value: 'Moldova' },
168
+ { name: 'Monaco', value: 'Monaco' },
169
+ { name: 'Mongolia', value: 'Mongolia' },
170
+ { name: 'Montenegro', value: 'Montenegro' },
171
+ { name: 'Montserrat', value: 'Montserrat' },
172
+ { name: 'Morocco', value: 'Morocco' },
173
+ { name: 'Mozambique', value: 'Mozambique' },
174
+ { name: 'Myanmar', value: 'Myanmar' },
175
+ { name: 'Namibia', value: 'Namibia' },
176
+ { name: 'Nauru', value: 'Nauru' },
177
+ { name: 'Nepal', value: 'Nepal' },
178
+ { name: 'Netherlands', value: 'Netherlands' },
179
+ { name: 'New Caledonia', value: 'New Caledonia' },
180
+ { name: 'New Zealand', value: 'New Zealand' },
181
+ { name: 'Nicaragua', value: 'Nicaragua' },
182
+ { name: 'Niger', value: 'Niger' },
183
+ { name: 'Nigeria', value: 'Nigeria' },
184
+ { name: 'Niue', value: 'Niue' },
185
+ { name: 'Norfolk Island', value: 'Norfolk Island' },
186
+ { name: 'North Korea', value: 'North Korea' },
187
+ { name: 'North Macedonia', value: 'North Macedonia' },
188
+ { name: 'Northern Mariana Islands', value: 'Northern Mariana Islands' },
189
+ { name: 'Norway', value: 'Norway' },
190
+ { name: 'Oman', value: 'Oman' },
191
+ { name: 'Pakistan', value: 'Pakistan' },
192
+ { name: 'Palau', value: 'Palau' },
193
+ { name: 'Palestinian Territories', value: 'Palestinian Territories' },
194
+ { name: 'Panama', value: 'Panama' },
195
+ { name: 'Papua New Guinea', value: 'Papua New Guinea' },
196
+ { name: 'Paraguay', value: 'Paraguay' },
197
+ { name: 'Peru', value: 'Peru' },
198
+ { name: 'Philippines', value: 'Philippines' },
199
+ { name: 'Pitcairn', value: 'Pitcairn' },
200
+ { name: 'Poland', value: 'Poland' },
201
+ { name: 'Portugal', value: 'Portugal' },
202
+ { name: 'Puerto Rico', value: 'Puerto Rico' },
203
+ { name: 'Qatar', value: 'Qatar' },
204
+ { name: 'Romania', value: 'Romania' },
205
+ { name: 'Russia', value: 'Russia' },
206
+ { name: 'Rwanda', value: 'Rwanda' },
207
+ { name: 'Réunion', value: 'Réunion' },
208
+ { name: 'Saint Barthélemy', value: 'Saint Barthélemy' },
209
+ {
210
+ name: 'Saint Helena, Ascension and Tristan da Cunha',
211
+ value: 'Saint Helena, Ascension and Tristan da Cunha',
212
+ },
213
+ { name: 'Saint Kitts and Nevis', value: 'Saint Kitts and Nevis' },
214
+ { name: 'Saint Lucia', value: 'Saint Lucia' },
215
+ { name: 'Saint Martin (French part)', value: 'Saint Martin (French part)' },
216
+ { name: 'Saint Pierre and Miquelon', value: 'Saint Pierre and Miquelon' },
217
+ {
218
+ name: 'Saint Vincent and the Grenadines',
219
+ value: 'Saint Vincent and the Grenadines',
220
+ },
221
+ { name: 'Samoa', value: 'Samoa' },
222
+ { name: 'San Marino', value: 'San Marino' },
223
+ { name: 'Sao Tome and Principe', value: 'Sao Tome and Principe' },
224
+ { name: 'Saudi Arabia', value: 'Saudi Arabia' },
225
+ { name: 'Senegal', value: 'Senegal' },
226
+ { name: 'Serbia', value: 'Serbia' },
227
+ { name: 'Seychelles', value: 'Seychelles' },
228
+ { name: 'Sierra Leone', value: 'Sierra Leone' },
229
+ { name: 'Singapore', value: 'Singapore' },
230
+ { name: 'Sint Maarten (Dutch part)', value: 'Sint Maarten (Dutch part)' },
231
+ { name: 'Slovakia', value: 'Slovakia' },
232
+ { name: 'Slovenia', value: 'Slovenia' },
233
+ { name: 'Solomon Islands', value: 'Solomon Islands' },
234
+ { name: 'Somalia', value: 'Somalia' },
235
+ { name: 'South Africa', value: 'South Africa' },
236
+ {
237
+ name: 'South Georgia and the South Sandwich Islands',
238
+ value: 'South Georgia and the South Sandwich Islands',
239
+ },
240
+ { name: 'South Korea', value: 'South Korea' },
241
+ { name: 'South Sudan', value: 'South Sudan' },
242
+ { name: 'Spain', value: 'Spain' },
243
+ { name: 'Sri Lanka', value: 'Sri Lanka' },
244
+ { name: 'Sudan', value: 'Sudan' },
245
+ { name: 'Suriname', value: 'Suriname' },
246
+ { name: 'Svalbard and Jan Mayen', value: 'Svalbard and Jan Mayen' },
247
+ { name: 'Sweden', value: 'Sweden' },
248
+ { name: 'Switzerland', value: 'Switzerland' },
249
+ { name: 'Syria', value: 'Syria' },
250
+ { name: 'Taiwan', value: 'Taiwan' },
251
+ { name: 'Tajikistan', value: 'Tajikistan' },
252
+ { name: 'Tanzania', value: 'Tanzania' },
253
+ { name: 'Thailand', value: 'Thailand' },
254
+ { name: 'Timor-Leste', value: 'Timor-Leste' },
255
+ { name: 'Togo', value: 'Togo' },
256
+ { name: 'Tokelau', value: 'Tokelau' },
257
+ { name: 'Tonga', value: 'Tonga' },
258
+ { name: 'Trinidad and Tobago', value: 'Trinidad and Tobago' },
259
+ { name: 'Tunisia', value: 'Tunisia' },
260
+ { name: 'Turkmenistan', value: 'Turkmenistan' },
261
+ { name: 'Turks and Caicos Islands', value: 'Turks and Caicos Islands' },
262
+ { name: 'Tuvalu', value: 'Tuvalu' },
263
+ { name: 'Türkiye', value: 'Türkiye' },
264
+ { name: 'Uganda', value: 'Uganda' },
265
+ { name: 'Ukraine', value: 'Ukraine' },
266
+ { name: 'United Arab Emirates', value: 'United Arab Emirates' },
267
+ { name: 'United Kingdom', value: 'United Kingdom' },
268
+ { name: 'United States', value: 'United States' },
269
+ {
270
+ name: 'United States Minor Outlying Islands',
271
+ value: 'United States Minor Outlying Islands',
272
+ },
273
+ { name: 'Uruguay', value: 'Uruguay' },
274
+ { name: 'Uzbekistan', value: 'Uzbekistan' },
275
+ { name: 'Vanuatu', value: 'Vanuatu' },
276
+ { name: 'Vatican City', value: 'Vatican City' },
277
+ { name: 'Venezuela', value: 'Venezuela' },
278
+ { name: 'Vietnam', value: 'Vietnam' },
279
+ { name: 'Virgin Islands (British)', value: 'Virgin Islands (British)' },
280
+ { name: 'Virgin Islands (U.S.)', value: 'Virgin Islands (U.S.)' },
281
+ { name: 'Wallis and Futuna', value: 'Wallis and Futuna' },
282
+ { name: 'Western Sahara', value: 'Western Sahara' },
283
+ { name: 'Yemen', value: 'Yemen' },
284
+ { name: 'Zambia', value: 'Zambia' },
285
+ { name: 'Zimbabwe', value: 'Zimbabwe' },
286
+ { name: 'Åland Islands', value: 'Åland Islands' },
287
+ ];
288
+ export const COUNTRY_SELECT_OPTIONS = RAW_COUNTRY_OPTIONS.map(({ name, value }) => ({ label: name, value }));
package/dist/es/index.js CHANGED
@@ -58,3 +58,4 @@ export * from './hooks/use-scroll-detection';
58
58
  export * from './hooks/use-focus-cycle';
59
59
  export * from './lib/files';
60
60
  export * from './lib/menus';
61
+ export * from './data/countryOptions';
@@ -30,6 +30,7 @@ interface DialogProps {
30
30
  secondary?: {
31
31
  action: () => void;
32
32
  title: string;
33
+ variant?: 'default' | 'textDanger';
33
34
  };
34
35
  onClose?: () => void;
35
36
  };
@@ -38,3 +38,5 @@ export declare const Label: import("styled-components").StyledComponent<"label",
38
38
  export declare const LabelText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
39
39
  export declare const InputHelperText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
40
40
  export declare const InputErrorText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
41
+ export declare const FormGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
42
+ export declare const RequiredIndicator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -24,6 +24,7 @@ interface Props {
24
24
  options: OptionType[];
25
25
  error?: boolean;
26
26
  variant?: 'small' | 'large';
27
+ listMaxHeight?: string;
27
28
  isDisabled?: boolean;
28
29
  isLoading?: boolean;
29
30
  isSearchable?: boolean;
@@ -7,6 +7,7 @@ interface SelectedItemsBoxProps extends React.HTMLAttributes<HTMLElement> {
7
7
  items: SelectedItem[];
8
8
  onRemove: (id: string) => void;
9
9
  placeholder?: string;
10
+ disabled?: boolean;
10
11
  }
11
12
  export declare const SelectedItemsBox: React.FC<SelectedItemsBoxProps>;
12
13
  export default SelectedItemsBox;
@@ -71,6 +71,7 @@ export { default as HelpIcon } from './help';
71
71
  export { default as ImageLeftIcon } from './image-left';
72
72
  export { default as ImageDefaultIcon } from './image-default';
73
73
  export { default as ImageRightIcon } from './image-right';
74
+ export { default as InfoCircleIcon } from './info-circle';
74
75
  export { default as InspectorPluginIcon } from './inspector-plugin';
75
76
  export { default as LinkIcon } from './link';
76
77
  export { default as LockIcon } from './lock';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ declare const InfoCircleIcon: React.FC<IconProps>;
4
+ export default InfoCircleIcon;
@@ -0,0 +1,17 @@
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 { OptionType } from '../components/SelectField';
17
+ export declare const COUNTRY_SELECT_OPTIONS: OptionType[];
@@ -59,3 +59,4 @@ export * from './hooks/use-scroll-detection';
59
59
  export * from './hooks/use-focus-cycle';
60
60
  export * from './lib/files';
61
61
  export * from './lib/menus';
62
+ export * from './data/countryOptions';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "3.5.10",
4
+ "version": "3.5.12",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",