@manuscripts/style-guide 3.5.32 → 3.6.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.
- package/dist/cjs/components/SelectField.js +2 -2
- package/dist/es/components/SelectField.js +2 -2
- package/dist/types/components/Dialog.d.ts +1 -1
- package/dist/types/components/Tooltip.d.ts +1 -1
- package/dist/types/components/icons/add-author.d.ts +2 -1
- package/dist/types/components/icons/add-figure.d.ts +2 -1
- package/dist/types/components/icons/affiliation-placeholder.d.ts +2 -1
- package/dist/types/components/icons/author-placeholder.d.ts +2 -1
- package/dist/types/components/icons/danger.d.ts +2 -1
- package/dist/types/components/icons/section-category.d.ts +2 -1
- package/dist/types/components/icons/x.d.ts +1 -1
- package/package.json +47 -52
|
@@ -34,7 +34,7 @@ const selectStyles = (theme, error, variant, listMaxHeight) => ({
|
|
|
34
34
|
: theme.colors.text.greyMuted || theme.colors.text.secondary,
|
|
35
35
|
backgroundColor: !state.isDisabled ? '#F2FBFC' : 'transparent',
|
|
36
36
|
},
|
|
37
|
-
padding: state.isFocused ? '0 7px' : '0 8px',
|
|
37
|
+
padding: state.isFocused ? '0 1px 0 7px' : '0 2px 0 8px',
|
|
38
38
|
backgroundColor: state.isDisabled
|
|
39
39
|
? '#F5F5F5'
|
|
40
40
|
: state.isFocused
|
|
@@ -46,7 +46,7 @@ const selectStyles = (theme, error, variant, listMaxHeight) => ({
|
|
|
46
46
|
}),
|
|
47
47
|
valueContainer: (base) => ({
|
|
48
48
|
...base,
|
|
49
|
-
padding: '0 8px',
|
|
49
|
+
padding: '0 2px 0 8px',
|
|
50
50
|
}),
|
|
51
51
|
singleValue: (base, state) => ({
|
|
52
52
|
...base,
|
|
@@ -28,7 +28,7 @@ const selectStyles = (theme, error, variant, listMaxHeight) => ({
|
|
|
28
28
|
: theme.colors.text.greyMuted || theme.colors.text.secondary,
|
|
29
29
|
backgroundColor: !state.isDisabled ? '#F2FBFC' : 'transparent',
|
|
30
30
|
},
|
|
31
|
-
padding: state.isFocused ? '0 7px' : '0 8px',
|
|
31
|
+
padding: state.isFocused ? '0 1px 0 7px' : '0 2px 0 8px',
|
|
32
32
|
backgroundColor: state.isDisabled
|
|
33
33
|
? '#F5F5F5'
|
|
34
34
|
: state.isFocused
|
|
@@ -40,7 +40,7 @@ const selectStyles = (theme, error, variant, listMaxHeight) => ({
|
|
|
40
40
|
}),
|
|
41
41
|
valueContainer: (base) => ({
|
|
42
42
|
...base,
|
|
43
|
-
padding: '0 8px',
|
|
43
|
+
padding: '0 2px 0 8px',
|
|
44
44
|
}),
|
|
45
45
|
singleValue: (base, state) => ({
|
|
46
46
|
...base,
|
|
@@ -50,7 +50,7 @@ export declare enum Category {
|
|
|
50
50
|
export declare class Dialog extends React.Component<DialogProps, DialogState> {
|
|
51
51
|
state: DialogState;
|
|
52
52
|
componentDidMount(): void;
|
|
53
|
-
render():
|
|
53
|
+
render(): React.JSX.Element;
|
|
54
54
|
private renderButtons;
|
|
55
55
|
private checkInputValue;
|
|
56
56
|
private setDisabledBtnState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tooltip as ReactTooltip } from 'react-tooltip';
|
|
3
|
-
export declare const Tooltip: (props: React.ComponentProps<typeof ReactTooltip>) =>
|
|
3
|
+
export declare const Tooltip: (props: React.ComponentProps<typeof ReactTooltip>) => React.JSX.Element;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import { IconProps } from './types';
|
|
17
|
-
declare const AddAuthorIcon: (props: IconProps) =>
|
|
18
|
+
declare const AddAuthorIcon: (props: IconProps) => React.JSX.Element;
|
|
18
19
|
export default AddAuthorIcon;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import { IconProps } from './types';
|
|
17
|
-
declare const AddFigureIcon: (props: IconProps) =>
|
|
18
|
+
declare const AddFigureIcon: (props: IconProps) => React.JSX.Element;
|
|
18
19
|
export default AddFigureIcon;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import { IconProps } from './types';
|
|
17
|
-
declare const AffiliationPlaceholderIcon: (props: IconProps) =>
|
|
18
|
+
declare const AffiliationPlaceholderIcon: (props: IconProps) => React.JSX.Element;
|
|
18
19
|
export default AffiliationPlaceholderIcon;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import { IconProps } from './types';
|
|
17
|
-
declare const AuthorPlaceholderIcon: (props: IconProps) =>
|
|
18
|
+
declare const AuthorPlaceholderIcon: (props: IconProps) => React.JSX.Element;
|
|
18
19
|
export default AuthorPlaceholderIcon;
|
|
@@ -13,5 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
import React from 'react';
|
|
17
|
+
declare const SectionCategoryIcon: () => React.JSX.Element;
|
|
17
18
|
export default SectionCategoryIcon;
|
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
|
+
"version": "3.6.1",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -18,92 +18,87 @@
|
|
|
18
18
|
"**/*.css"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "npm-run-
|
|
21
|
+
"build": "npm-run-all2 --parallel build:*",
|
|
22
22
|
"build:cjs": "tsc --outDir dist/cjs --module commonjs",
|
|
23
23
|
"build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration",
|
|
24
24
|
"build-storybook": "storybook build",
|
|
25
|
-
"dev": "npm-run-
|
|
25
|
+
"dev": "npm-run-all2 --parallel 'build:* --watch'",
|
|
26
26
|
"lint": "eslint src stories --ext .ts,.tsx --max-warnings=0 --fix",
|
|
27
27
|
"prebuild": "rimraf dist",
|
|
28
28
|
"prettier": "prettier --write \"{src,stories}/**/*.{ts,tsx}\"",
|
|
29
|
-
"preversion": "npm-run-
|
|
29
|
+
"preversion": "npm-run-all2 --parallel lint typecheck",
|
|
30
30
|
"storybook": "storybook dev -p 6006",
|
|
31
31
|
"test": "vitest run",
|
|
32
32
|
"typecheck": "tsc --noEmit",
|
|
33
33
|
"version": "pnpm build",
|
|
34
|
-
"
|
|
35
|
-
"prepare": "husky install"
|
|
34
|
+
"prepare": "husky"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
|
-
"@headlessui/react": "2.2.
|
|
39
|
-
"
|
|
40
|
-
"formik": "2.4.6",
|
|
41
|
-
"lodash": "4.17.21",
|
|
37
|
+
"@headlessui/react": "2.2.10",
|
|
38
|
+
"formik": "2.4.9",
|
|
42
39
|
"prosemirror-commands": "1.7.1",
|
|
43
40
|
"prosemirror-history": "1.4.1",
|
|
44
41
|
"prosemirror-keymap": "1.2.3",
|
|
45
42
|
"prosemirror-model": "1.25.0",
|
|
46
43
|
"prosemirror-state": "1.4.3",
|
|
47
44
|
"prosemirror-view": "1.41.0",
|
|
48
|
-
"react": "19.2.
|
|
45
|
+
"react": "19.2.6",
|
|
49
46
|
"react-dnd": "16.0.1",
|
|
50
47
|
"react-dnd-html5-backend": "16.0.1",
|
|
51
|
-
"react-dom": "19.2.
|
|
52
|
-
"react-is": "19.2.0",
|
|
48
|
+
"react-dom": "19.2.6",
|
|
53
49
|
"react-router-dom": "5.3.4",
|
|
54
|
-
"react-select": "5.10.
|
|
55
|
-
"react-tooltip": "
|
|
50
|
+
"react-select": "5.10.2",
|
|
51
|
+
"react-tooltip": "6.0.2",
|
|
56
52
|
"styled-components": "5.3.11"
|
|
57
53
|
},
|
|
58
54
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "7.
|
|
60
|
-
"@babel/preset-env": "7.
|
|
61
|
-
"@babel/preset-react": "7.
|
|
62
|
-
"@babel/preset-typescript": "7.
|
|
63
|
-
"@eslint/eslintrc": "3.3.
|
|
64
|
-
"@eslint/js": "9.39.
|
|
55
|
+
"@babel/core": "7.29.0",
|
|
56
|
+
"@babel/preset-env": "7.29.5",
|
|
57
|
+
"@babel/preset-react": "7.28.5",
|
|
58
|
+
"@babel/preset-typescript": "7.28.5",
|
|
59
|
+
"@eslint/eslintrc": "3.3.5",
|
|
60
|
+
"@eslint/js": "9.39.4",
|
|
61
|
+
"@fontsource/lato": "5.2.7",
|
|
65
62
|
"@manuscripts/eslint-config": "0.5.1",
|
|
66
|
-
"@storybook/addon-actions": "8.
|
|
67
|
-
"@storybook/addon-essentials": "8.
|
|
68
|
-
"@storybook/addon-interactions": "8.
|
|
69
|
-
"@storybook/addon-links": "8.
|
|
70
|
-
"@storybook/blocks": "8.
|
|
71
|
-
"@storybook/react": "8.
|
|
72
|
-
"@storybook/react-webpack5": "8.
|
|
73
|
-
"@storybook/test": "8.
|
|
74
|
-
"@vitest/coverage-v8": "4.1.6",
|
|
63
|
+
"@storybook/addon-actions": "8.6.18",
|
|
64
|
+
"@storybook/addon-essentials": "8.6.18",
|
|
65
|
+
"@storybook/addon-interactions": "8.6.18",
|
|
66
|
+
"@storybook/addon-links": "8.6.18",
|
|
67
|
+
"@storybook/blocks": "8.6.18",
|
|
68
|
+
"@storybook/react": "8.6.18",
|
|
69
|
+
"@storybook/react-webpack5": "8.6.18",
|
|
70
|
+
"@storybook/test": "8.6.18",
|
|
75
71
|
"@types/lodash": "4.17.16",
|
|
76
72
|
"@types/node": "^20.19.25",
|
|
77
|
-
"@types/react": "19.2.
|
|
73
|
+
"@types/react": "19.2.17",
|
|
78
74
|
"@types/react-dom": "19.2.3",
|
|
79
75
|
"@types/react-router-dom": "5.3.3",
|
|
80
|
-
"@types/styled-components": "5.1.
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
82
|
-
"@typescript-eslint/parser": "8.
|
|
83
|
-
"
|
|
84
|
-
"babel-loader": "
|
|
76
|
+
"@types/styled-components": "5.1.36",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "8.59.3",
|
|
78
|
+
"@typescript-eslint/parser": "8.59.3",
|
|
79
|
+
"@vitest/coverage-v8": "4.1.6",
|
|
80
|
+
"babel-loader": "10.1.1",
|
|
85
81
|
"eslint": "9.39.1",
|
|
86
82
|
"eslint-config-prettier": "10.1.8",
|
|
87
|
-
"eslint-plugin-diff": "2.
|
|
83
|
+
"eslint-plugin-diff": "2.1.7",
|
|
88
84
|
"eslint-plugin-header": "3.1.1",
|
|
89
85
|
"eslint-plugin-import": "2.32.0",
|
|
90
86
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
91
|
-
"eslint-plugin-mdx": "3.
|
|
92
|
-
"eslint-plugin-
|
|
93
|
-
"eslint-plugin-
|
|
94
|
-
"eslint-plugin-promise": "7.2.1",
|
|
87
|
+
"eslint-plugin-mdx": "3.7.0",
|
|
88
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
89
|
+
"eslint-plugin-promise": "7.3.0",
|
|
95
90
|
"eslint-plugin-react": "7.37.5",
|
|
96
|
-
"eslint-plugin-react-hooks": "7.
|
|
97
|
-
"eslint-plugin-simple-import-sort": "
|
|
98
|
-
"eslint-plugin-storybook": "10.
|
|
99
|
-
"husky": "
|
|
100
|
-
"
|
|
101
|
-
"npm-run-
|
|
102
|
-
"prettier": "3.
|
|
103
|
-
"rimraf": "6.
|
|
104
|
-
"storybook": "8.
|
|
105
|
-
"
|
|
106
|
-
"
|
|
91
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
92
|
+
"eslint-plugin-simple-import-sort": "13.0.0",
|
|
93
|
+
"eslint-plugin-storybook": "10.3.6",
|
|
94
|
+
"husky": "9.1.7",
|
|
95
|
+
"jsdom": "29.1.1",
|
|
96
|
+
"npm-run-all2": "8.0.4",
|
|
97
|
+
"prettier": "3.8.3",
|
|
98
|
+
"rimraf": "6.1.3",
|
|
99
|
+
"storybook": "8.6.18",
|
|
100
|
+
"typescript": "5.9.2",
|
|
101
|
+
"vitest": "4.1.7"
|
|
107
102
|
},
|
|
108
103
|
"engines": {
|
|
109
104
|
"node": ">=22"
|