@manuscripts/style-guide 3.1.4 → 3.1.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.
@@ -53,9 +53,7 @@ const dangerBtnStyles = (0, styled_components_1.css) `
53
53
  `;
54
54
  const disabledBtnStyles = (0, styled_components_1.css) `
55
55
  cursor: default;
56
- background-color: ${(props) => props.theme.colors.background.tertiary} !important;
57
- border-color: ${(props) => props.theme.colors.border.secondary} !important;
58
- color: ${(props) => props.theme.colors.text.onDark} !important;
56
+ ${(props) => btnColors(props.theme.colors.text.onDark, props.theme.colors.background.tertiary, props.theme.colors.border.secondary, false)}
59
57
  `;
60
58
  const miniBtnStyles = (0, styled_components_1.css) `
61
59
  padding: 3px 16px;
@@ -87,8 +85,11 @@ const btnStyles = (0, styled_components_1.css) `
87
85
  }
88
86
 
89
87
  ${(props) => props.danger && dangerBtnStyles}
90
- ${(props) => props.disabled && disabledBtnStyles}
91
88
  ${(props) => props.mini && miniBtnStyles}
89
+
90
+ :disabled {
91
+ ${disabledBtnStyles}
92
+ }
92
93
  `;
93
94
  const btnColors = (color, bg, border, important) => `
94
95
  ${color && 'color: ' + color}
@@ -27,9 +27,7 @@ const dangerBtnStyles = css `
27
27
  `;
28
28
  const disabledBtnStyles = css `
29
29
  cursor: default;
30
- background-color: ${(props) => props.theme.colors.background.tertiary} !important;
31
- border-color: ${(props) => props.theme.colors.border.secondary} !important;
32
- color: ${(props) => props.theme.colors.text.onDark} !important;
30
+ ${(props) => btnColors(props.theme.colors.text.onDark, props.theme.colors.background.tertiary, props.theme.colors.border.secondary, false)}
33
31
  `;
34
32
  const miniBtnStyles = css `
35
33
  padding: 3px 16px;
@@ -61,8 +59,11 @@ const btnStyles = css `
61
59
  }
62
60
 
63
61
  ${(props) => props.danger && dangerBtnStyles}
64
- ${(props) => props.disabled && disabledBtnStyles}
65
62
  ${(props) => props.mini && miniBtnStyles}
63
+
64
+ :disabled {
65
+ ${disabledBtnStyles}
66
+ }
66
67
  `;
67
68
  const btnColors = (color, bg, border, important) => `
68
69
  ${color && 'color: ' + color}
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.1.4",
4
+ "version": "3.1.6",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -39,7 +39,7 @@
39
39
  "prosemirror-commands": "1.7.1",
40
40
  "prosemirror-history": "1.4.1",
41
41
  "prosemirror-keymap": "1.2.3",
42
- "prosemirror-model": "1.25.1",
42
+ "prosemirror-model": "1.25.0",
43
43
  "prosemirror-state": "1.4.3",
44
44
  "prosemirror-view": "1.40.0",
45
45
  "react": "18.3.1",