@manuscripts/style-guide 3.4.4 → 3.4.6

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 (44) hide show
  1. package/dist/cjs/colors.js +2 -1
  2. package/dist/cjs/components/DatePicker.js +188 -0
  3. package/dist/cjs/components/Form.js +1 -1
  4. package/dist/cjs/components/FormCommon.js +53 -0
  5. package/dist/cjs/components/FormFieldContainer.js +24 -0
  6. package/dist/cjs/components/InspectorSection.js +4 -4
  7. package/dist/cjs/components/RadioButton.js +15 -5
  8. package/dist/cjs/components/RadioGroup.js +27 -0
  9. package/dist/cjs/components/SelectField.js +10 -4
  10. package/dist/cjs/components/TextField.js +24 -13
  11. package/dist/cjs/components/icons/calendar.js +7 -0
  12. package/dist/cjs/components/icons/globe.js +7 -0
  13. package/dist/cjs/components/icons/index.js +7 -3
  14. package/dist/cjs/defaultTheme.js +3 -3
  15. package/dist/cjs/index.js +7 -2
  16. package/dist/es/colors.js +1 -0
  17. package/dist/es/components/DatePicker.js +181 -0
  18. package/dist/es/components/Form.js +1 -1
  19. package/dist/es/components/FormCommon.js +45 -0
  20. package/dist/es/components/FormFieldContainer.js +17 -0
  21. package/dist/es/components/InspectorSection.js +4 -4
  22. package/dist/es/components/RadioButton.js +16 -6
  23. package/dist/es/components/RadioGroup.js +20 -0
  24. package/dist/es/components/SelectField.js +10 -4
  25. package/dist/es/components/TextField.js +24 -13
  26. package/dist/es/components/icons/calendar.js +3 -0
  27. package/dist/es/components/icons/globe.js +3 -0
  28. package/dist/es/components/icons/index.js +2 -0
  29. package/dist/es/defaultTheme.js +3 -3
  30. package/dist/es/index.js +5 -1
  31. package/dist/types/colors.d.ts +1 -0
  32. package/dist/types/components/DatePicker.d.ts +27 -0
  33. package/dist/types/components/FormCommon.d.ts +25 -0
  34. package/dist/types/components/FormFieldContainer.d.ts +26 -0
  35. package/dist/types/components/InspectorSection.d.ts +1 -0
  36. package/dist/types/components/RadioButton.d.ts +2 -2
  37. package/dist/types/components/RadioGroup.d.ts +28 -0
  38. package/dist/types/components/SelectField.d.ts +4 -2
  39. package/dist/types/components/icons/calendar.d.ts +19 -0
  40. package/dist/types/components/icons/globe.d.ts +19 -0
  41. package/dist/types/components/icons/index.d.ts +2 -0
  42. package/dist/types/index.d.ts +5 -1
  43. package/dist/types/theme.d.ts +2 -0
  44. package/package.json +3 -1
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * © 2026 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import React, { FC } from 'react';
17
+ export interface StyledRadioGroupOption {
18
+ label: string;
19
+ value: string;
20
+ }
21
+ export interface StyledRadioGroupProps {
22
+ name: string;
23
+ options: StyledRadioGroupOption[];
24
+ value?: string;
25
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
26
+ disabled?: boolean;
27
+ }
28
+ export declare const StyledRadioGroup: FC<StyledRadioGroupProps>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { FieldProps } from 'formik';
17
- import React from 'react';
17
+ import { FC } from 'react';
18
18
  export type OptionType = {
19
19
  label: string;
20
20
  value: string;
@@ -25,6 +25,8 @@ interface Props {
25
25
  error?: boolean;
26
26
  variant?: 'small' | 'large';
27
27
  isDisabled?: boolean;
28
+ isLoading?: boolean;
29
+ isSearchable?: boolean;
28
30
  }
29
- export declare const SelectField: React.FC<Props & Partial<FieldProps>>;
31
+ export declare const SelectField: FC<Props & Partial<FieldProps>>;
30
32
  export {};
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * © 2026 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import React from 'react';
17
+ import { IconProps } from './types';
18
+ export declare const CalendarIcon: React.FC<IconProps>;
19
+ export default CalendarIcon;
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * © 2026 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import React from 'react';
17
+ import { IconProps } from './types';
18
+ export declare const GlobeIcon: React.FC<IconProps>;
19
+ export default GlobeIcon;
@@ -36,6 +36,7 @@ export { default as AffiliationIcon } from './affiliation';
36
36
  export { default as AuthorPlaceholderIcon } from './author-placeholder';
37
37
  export { default as AffiliationPlaceholderIcon } from './affiliation-placeholder';
38
38
  export { default as BookIcon } from './book';
39
+ export { default as CalendarIcon } from './calendar';
39
40
  export { default as ChatIcon } from './chat';
40
41
  export { default as SystemUserAvatarIcon } from './system-user-avatar';
41
42
  export { default as CitationCountIcon } from './citation-count';
@@ -65,6 +66,7 @@ export { default as FileUnknownIcon } from './file-unknown';
65
66
  export { default as FileVideoIcon } from './file-video';
66
67
  export { default as HandleInspectorIcon } from './handle-inspector';
67
68
  export { default as HandleOutlineIcon } from './handle-outline';
69
+ export { default as GlobeIcon } from './globe';
68
70
  export { default as HelpIcon } from './help';
69
71
  export { default as ImageLeftIcon } from './image-left';
70
72
  export { default as ImageDefaultIcon } from './image-default';
@@ -14,13 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export { Theme } from './theme';
17
- export { defaultTheme } from './defaultTheme';
18
17
  export * as colors from './colors';
18
+ export { defaultTheme } from './defaultTheme';
19
19
  export * from './components/AlertMessage';
20
20
  export * from './components/Message';
21
21
  export * from './components/Button';
22
22
  export * from './components/ContextMenu';
23
23
  export * from './components/RadioButton';
24
+ export { StyledRadioGroup, type StyledRadioGroupOption, type StyledRadioGroupProps, } from './components/RadioGroup';
24
25
  export * from './components/Avatar';
25
26
  export * from './components/Dialog';
26
27
  export * from './components/DraggableModal';
@@ -32,6 +33,8 @@ export * from './components/SaveStatus';
32
33
  export * from './components/StyledModal';
33
34
  export * from './components/Sidebar';
34
35
  export * from './components/TextField';
36
+ export * from './components/FormFieldContainer';
37
+ export * from './components/FormCommon';
35
38
  export * from './components/ToggleSwitch';
36
39
  export { ToggleHeader, ToggleIcon } from './components/ToggleHeader';
37
40
  export * from './components/Tooltip';
@@ -46,6 +49,7 @@ export * from './components/Text';
46
49
  export * from './components/RelativeDate';
47
50
  export * from './components/Menus';
48
51
  export * from './components/Drawer';
52
+ export * from './components/DatePicker';
49
53
  export * from './components/SelectField';
50
54
  export * from './components/SelectedItemsBox';
51
55
  export * from './hooks/use-dropdown';
@@ -107,6 +107,8 @@ interface Text {
107
107
  muted: string;
108
108
  onDark: string;
109
109
  onLight: string;
110
+ greyMuted?: string;
111
+ greyLight?: string;
110
112
  }
111
113
  interface FontFamily {
112
114
  sans: string;
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.4.4",
4
+ "version": "3.4.6",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -43,6 +43,7 @@
43
43
  "prosemirror-state": "1.4.3",
44
44
  "prosemirror-view": "1.41.0",
45
45
  "react": "19.2.0",
46
+ "react-datepicker": "^7.6.0",
46
47
  "react-dnd": "16.0.1",
47
48
  "react-dnd-html5-backend": "16.0.1",
48
49
  "react-dom": "19.2.0",
@@ -73,6 +74,7 @@
73
74
  "@types/lodash": "4.17.16",
74
75
  "@types/node": "^20.19.25",
75
76
  "@types/react": "19.2.3",
77
+ "@types/react-datepicker": "^7.0.0",
76
78
  "@types/react-dom": "19.2.3",
77
79
  "@types/react-modal": "3.16.3",
78
80
  "@types/react-router-dom": "5.3.3",