cozy-ui 135.2.0 → 135.4.0
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 +20 -0
- package/assets/icons/ui/article.svg +1 -0
- package/assets/icons/ui/cross-circle.svg +1 -1
- package/package.json +2 -3
- package/react/ActionsBar/Readme.md +61 -11
- package/react/ActionsBar/ResponsiveAction.jsx +3 -5
- package/react/ActionsBar/index.jsx +98 -71
- package/react/AppBar/index.js +66 -1
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/Article.jsx +12 -0
- package/react/Icons/CrossCircle.jsx +1 -4
- package/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.js +16 -1
- package/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +6 -0
- package/transpiled/react/ActionsBar/ResponsiveAction.js +3 -2
- package/transpiled/react/ActionsBar/index.js +37 -24
- package/transpiled/react/AppBar/index.d.ts +3 -2
- package/transpiled/react/AppBar/index.js +53 -1
- package/transpiled/react/Icon/icons-sprite.d.ts +1 -1
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/Article.d.ts +2 -0
- package/transpiled/react/Icons/Article.js +14 -0
- package/transpiled/react/Icons/CrossCircle.js +1 -2
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkInvertedOverrides.d.ts +6 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.d.ts +12 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.js +13 -1
- package/transpiled/react/MuiCozyTheme/overrides/makeLightInvertedOverrides.d.ts +6 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.d.ts +6 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +6 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/article.svg` to regenerate;
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
function SvgArticle(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
fill: "none"
|
|
9
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
10
|
+
d: "M10.611 0c1.588 0 2.351.147 3.144.572.72.384 1.289.953 1.673 1.673.425.793.572 1.556.572 3.144v5.222c0 1.588-.147 2.351-.572 3.144a4.032 4.032 0 01-1.673 1.673c-.793.425-1.556.572-3.144.572H5.39c-1.588 0-2.351-.147-3.144-.572a4.032 4.032 0 01-1.673-1.673C.147 12.962 0 12.2 0 10.611V5.39C0 3.8.147 3.038.572 2.245A4.031 4.031 0 012.245.572C3.038.147 3.8 0 5.389 0h5.222zm0 1.455H5.39c-1.368 0-1.905.103-2.458.4a2.57 2.57 0 00-1.077 1.076c-.296.553-.4 1.09-.4 2.458v5.222c0 1.368.104 1.905.4 2.458.25.466.61.828 1.077 1.077.553.296 1.09.4 2.458.4h5.222c1.368 0 1.905-.104 2.458-.4.466-.25.828-.61 1.077-1.077.296-.553.4-1.09.4-2.458V5.39c0-1.368-.104-1.905-.4-2.458a2.577 2.577 0 00-1.077-1.077c-.553-.296-1.09-.4-2.458-.4zm-3.338 9.09a.727.727 0 110 1.455h-2.91a.727.727 0 110-1.454h2.91zm4.363-3.272a.727.727 0 010 1.454H4.364a.727.727 0 110-1.454h7.272zm0-3.273a.727.727 0 010 1.455H4.364a.727.727 0 010-1.455h7.272z"
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SvgArticle;
|
|
@@ -6,8 +6,7 @@ function SvgCrossCircle(props) {
|
|
|
6
6
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
7
|
viewBox: "0 0 16 16"
|
|
8
8
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
9
|
-
d: "M5.12 12L8 9.12 10.88 12 12 10.88 9.12 8 12 5.12 10.88 4 8 6.88 5.12 4 4 5.12 6.88 8 4 10.88 5.12 12zM8 16a7.79 7.79 0 01-3.12-.63 8.079 8.079 0 01-2.54-1.71 8.08 8.08 0 01-1.71-2.54A7.79 7.79 0 010 8c0-1.107.21-2.147.63-3.12.42-.973.99-1.82 1.71-2.54A8.079 8.079 0 014.88.63 7.79 7.79 0 018 0a7.79 7.79 0 013.12.63c.973.42 1.82.99 2.54 1.71s1.29 1.567 1.71 2.54c.42.973.63 2.013.63 3.12a7.79 7.79 0 01-.63 3.12 8.08 8.08 0 01-1.71 2.54 8.08 8.08 0 01-2.54 1.71A7.79 7.79 0 018 16z"
|
|
10
|
-
fill: "#5F6368"
|
|
9
|
+
d: "M5.12 12L8 9.12 10.88 12 12 10.88 9.12 8 12 5.12 10.88 4 8 6.88 5.12 4 4 5.12 6.88 8 4 10.88 5.12 12zM8 16a7.79 7.79 0 01-3.12-.63 8.079 8.079 0 01-2.54-1.71 8.08 8.08 0 01-1.71-2.54A7.79 7.79 0 010 8c0-1.107.21-2.147.63-3.12.42-.973.99-1.82 1.71-2.54A8.079 8.079 0 014.88.63 7.79 7.79 0 018 0a7.79 7.79 0 013.12.63c.973.42 1.82.99 2.54 1.71s1.29 1.567 1.71 2.54c.42.973.63 2.013.63 3.12a7.79 7.79 0 01-.63 3.12 8.08 8.08 0 01-1.71 2.54 8.08 8.08 0 01-2.54 1.71A7.79 7.79 0 018 16z"
|
|
11
10
|
}));
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export function makeDarkNormalOverrides(theme: any): {
|
|
2
|
+
MuiAppBar: {
|
|
3
|
+
colorDefault: {
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
color: any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
2
8
|
MuiSelect: {
|
|
3
9
|
iconOutlined: {
|
|
4
10
|
top: string;
|
|
@@ -1740,4 +1746,10 @@ export function makeDarkNormalOverrides(theme: any): {
|
|
|
1740
1746
|
border: string;
|
|
1741
1747
|
};
|
|
1742
1748
|
};
|
|
1749
|
+
} & {
|
|
1750
|
+
MuiAppBar: {
|
|
1751
|
+
colorDefault: {
|
|
1752
|
+
backgroundColor: any;
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1743
1755
|
};
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import merge from 'lodash/merge';
|
|
1
2
|
import { makeLightNormalOverrides } from "cozy-ui/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides";
|
|
2
3
|
export var makeDarkNormalOverrides = function makeDarkNormalOverrides(theme) {
|
|
3
|
-
|
|
4
|
+
var makeOverridesForDarkTheme = function makeOverridesForDarkTheme(theme) {
|
|
5
|
+
return {
|
|
6
|
+
MuiAppBar: {
|
|
7
|
+
colorDefault: {
|
|
8
|
+
backgroundColor: theme.palette.primary.main
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var DarkNormalOverrides = merge(makeLightNormalOverrides(theme), makeOverridesForDarkTheme(theme));
|
|
15
|
+
return DarkNormalOverrides;
|
|
4
16
|
};
|
|
@@ -10,6 +10,12 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
|
|
|
10
10
|
var _root, _objectSpread2, _root2, _root3;
|
|
11
11
|
|
|
12
12
|
return {
|
|
13
|
+
MuiAppBar: {
|
|
14
|
+
colorDefault: {
|
|
15
|
+
backgroundColor: theme.palette.grey.A400,
|
|
16
|
+
color: theme.palette.primary.contrastText
|
|
17
|
+
}
|
|
18
|
+
},
|
|
13
19
|
MuiSelect: {
|
|
14
20
|
iconOutlined: {
|
|
15
21
|
top: 'auto',
|