decap-cms-ui-default 3.4.0 → 3.5.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/CHANGELOG.md +16 -0
- package/dist/decap-cms-ui-default.js +2 -2
- package/dist/decap-cms-ui-default.js.map +1 -1
- package/dist/esm/Icon/images/_index.js +13 -0
- package/dist/esm/ObjectWidgetTopBar.js +9 -7
- package/dist/esm/styles.js +41 -38
- package/package.json +2 -2
- package/src/Icon/images/_index.js +2 -0
- package/src/Icon/images/strikethrough.svg +1 -0
- package/src/ObjectWidgetTopBar.js +10 -2
- package/src/styles.js +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decap-cms-ui-default",
|
|
3
3
|
"description": "Default UI components for Decap CMS.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.5.1",
|
|
5
5
|
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-ui-default",
|
|
6
6
|
"bugs": "https://github.com/decaporg/decap-cms/issues",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"prop-types": "^15.7.2",
|
|
28
28
|
"react": "^19.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "46c6646c68ead2cd982acb236d7aff0356f313ba"
|
|
31
31
|
}
|
|
@@ -42,6 +42,7 @@ import iconRefresh from './refresh.svg';
|
|
|
42
42
|
import iconScroll from './scroll.svg';
|
|
43
43
|
import iconSearch from './search.svg';
|
|
44
44
|
import iconSettings from './settings.svg';
|
|
45
|
+
import iconStrikethrough from './strikethrough.svg';
|
|
45
46
|
import iconUser from './user.svg';
|
|
46
47
|
import iconWorkflow from './workflow.svg';
|
|
47
48
|
import iconWrite from './write.svg';
|
|
@@ -94,6 +95,7 @@ const images = {
|
|
|
94
95
|
scroll: iconScroll,
|
|
95
96
|
search: iconSearch,
|
|
96
97
|
settings: iconSettings,
|
|
98
|
+
strikethrough: iconStrikethrough,
|
|
97
99
|
user: iconUser,
|
|
98
100
|
workflow: iconWorkflow,
|
|
99
101
|
write: iconWrite,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="20" viewBox="0 0 22 20"><path fill="#7A8291" d="M14.712 12.557c.092.672.05 1.388-.163 2.156-.532 1.901-1.767 3.196-3.48 3.648a5.6 5.6 0 0 1-1.43.178c-2.092 0-4.25-1.04-5.469-2.251l-.524-.56 1.756-1.638.492.53c.988.979 3.035 1.821 4.563 1.42.893-.236 1.475-.88 1.78-1.969.165-.6.171-1.094.03-1.514Zm-.32-9.91-1.637 1.752c-1.051-.981-3.192-1.761-4.698-1.347-.858.232-1.416.82-1.707 1.797-.544 1.833.668 2.52 3.778 3.455.71.214 1.336.407 1.84.653H19.2v2.4H0v-2.4h5.617C4.261 7.988 3.35 6.52 4.05 4.165c.67-2.258 2.207-3.111 3.378-3.43 2.478-.668 5.436.483 6.965 1.911"/></svg>
|
|
@@ -113,12 +113,20 @@ class ObjectWidgetTopBar extends React.Component {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
render() {
|
|
116
|
-
const { onCollapseToggle, collapsed, heading = null } = this.props;
|
|
116
|
+
const { onCollapseToggle, collapsed, heading = null, t } = this.props;
|
|
117
117
|
|
|
118
118
|
return (
|
|
119
119
|
<TopBarContainer>
|
|
120
120
|
<ExpandButtonContainer hasHeading={!!heading}>
|
|
121
|
-
<ExpandButton
|
|
121
|
+
<ExpandButton
|
|
122
|
+
onClick={onCollapseToggle}
|
|
123
|
+
data-testid="expand-button"
|
|
124
|
+
aria-label={
|
|
125
|
+
collapsed
|
|
126
|
+
? t('editor.editorWidgets.object.expand')
|
|
127
|
+
: t('editor.editorWidgets.object.collapse')
|
|
128
|
+
}
|
|
129
|
+
>
|
|
122
130
|
<Icon type="chevron" direction={collapsed ? 'right' : 'down'} size="small" />
|
|
123
131
|
</ExpandButton>
|
|
124
132
|
{heading}
|
package/src/styles.js
CHANGED