cozy-ui 135.1.0 → 135.3.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/assets/icons/ui/cross-circle.svg +1 -1
  3. package/assets/icons/ui/shield-clean.svg +1 -0
  4. package/assets/icons/ui/shield-infected.svg +1 -0
  5. package/package.json +1 -1
  6. package/react/ActionsBar/Readme.md +61 -11
  7. package/react/ActionsBar/ResponsiveAction.jsx +3 -5
  8. package/react/ActionsBar/index.jsx +98 -71
  9. package/react/AppBar/index.js +66 -1
  10. package/react/Icon/Readme.md +5 -1
  11. package/react/Icons/CrossCircle.jsx +1 -4
  12. package/react/Icons/ShieldClean.jsx +12 -0
  13. package/react/Icons/ShieldInfected.jsx +13 -0
  14. package/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.js +16 -1
  15. package/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +6 -0
  16. package/transpiled/react/ActionsBar/ResponsiveAction.js +3 -2
  17. package/transpiled/react/ActionsBar/index.js +37 -24
  18. package/transpiled/react/AppBar/index.d.ts +3 -2
  19. package/transpiled/react/AppBar/index.js +53 -1
  20. package/transpiled/react/Icon/icons-sprite.d.ts +1 -1
  21. package/transpiled/react/Icon/icons-sprite.js +1 -1
  22. package/transpiled/react/Icons/CrossCircle.js +1 -2
  23. package/transpiled/react/Icons/ShieldClean.d.ts +2 -0
  24. package/transpiled/react/Icons/ShieldClean.js +13 -0
  25. package/transpiled/react/Icons/ShieldInfected.d.ts +2 -0
  26. package/transpiled/react/Icons/ShieldInfected.js +15 -0
  27. package/transpiled/react/MuiCozyTheme/overrides/makeDarkInvertedOverrides.d.ts +6 -0
  28. package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.d.ts +12 -0
  29. package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.js +13 -1
  30. package/transpiled/react/MuiCozyTheme/overrides/makeLightInvertedOverrides.d.ts +6 -0
  31. package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.d.ts +6 -0
  32. package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +6 -0
@@ -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
 
@@ -0,0 +1,2 @@
1
+ export default SvgShieldClean;
2
+ declare function SvgShieldClean(props: any): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/shield-clean.svg` to regenerate;
3
+ import React from 'react';
4
+
5
+ function SvgShieldClean(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ viewBox: "0 0 15 16"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ d: "M6.432 15.635c-.092 0-.178-.01-.257-.03a3.27 3.27 0 01-.237-.069c-1.782-.593-3.203-1.688-4.266-3.285C.61 10.655.052 8.933 0 7.085v-3.74c0-.33.096-.627.287-.89a1.63 1.63 0 01.742-.575L5.78.1c.184-.067.37-.1.553-.1.185 0 .37.033.554.099l4.75 1.781c.304.119.551.31.743.574.191.264.287.56.287.89v3.741a7.922 7.922 0 01-.04.792 3.683 3.683 0 00-.752-.08 4.178 4.178 0 00-.831.08 8.356 8.356 0 00.04-.792v-3.74l-4.75-1.781-4.75 1.78v3.741a7.52 7.52 0 001.345 4.355c.897 1.306 2.032 2.177 3.404 2.612.277-.092.548-.204.812-.336.264-.132.521-.284.772-.456v1.86a4.445 4.445 0 01-.406.179 11.43 11.43 0 00-.564.238 2.99 2.99 0 01-.248.069c-.085.02-.174.03-.267.03zm3.74.08a.648.648 0 01-.474-.198.648.648 0 01-.198-.475v-2.613c0-.185.066-.343.198-.475a.648.648 0 01.475-.198h.119v-.791c0-.436.155-.809.465-1.119.31-.31.683-.465 1.118-.465.435 0 .808.155 1.118.465.31.31.465.683.465 1.119v.791h.12c.184 0 .342.066.474.198.132.132.198.29.198.475v2.613a.648.648 0 01-.198.475.648.648 0 01-.475.198h-3.404zm.911-3.959h1.584v-.791a.766.766 0 00-.228-.565.766.766 0 00-.564-.227.766.766 0 00-.564.227.766.766 0 00-.228.565v.791z"
10
+ }));
11
+ }
12
+
13
+ export default SvgShieldClean;
@@ -0,0 +1,2 @@
1
+ export default SvgShieldInfected;
2
+ declare function SvgShieldInfected(props: any): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/shield-infected.svg` to regenerate;
3
+ import React from 'react';
4
+
5
+ function SvgShieldInfected(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ viewBox: "0 0 13 16"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ d: "M6.333 0L0 2.375v4.821c0 3.998 2.7 7.727 6.333 8.637 3.634-.91 6.334-4.639 6.334-8.637V2.375L6.333 0zm4.75 7.196c0 3.167-2.018 6.096-4.75 6.99-2.73-.894-4.75-3.815-4.75-6.99v-3.72l4.75-1.782 4.75 1.781v3.721z"
10
+ }), /*#__PURE__*/React.createElement("path", {
11
+ d: "M7.125 9.5H5.542v1.583h1.583V9.5zm0-5.542H5.542v3.959h1.583V3.958z"
12
+ }));
13
+ }
14
+
15
+ export default SvgShieldInfected;
@@ -1,4 +1,10 @@
1
1
  export function makeDarkInvertedOverrides(theme: any): {
2
+ MuiAppBar: {
3
+ colorDefault: {
4
+ backgroundColor: any;
5
+ color: any;
6
+ };
7
+ };
2
8
  MuiSelect: {
3
9
  iconOutlined: {
4
10
  top: string;
@@ -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
- return makeLightNormalOverrides(theme);
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
  };
@@ -1,4 +1,10 @@
1
1
  export function makeLightInvertedOverrides(theme: any): {
2
+ MuiAppBar: {
3
+ colorDefault: {
4
+ backgroundColor: any;
5
+ color: any;
6
+ };
7
+ };
2
8
  MuiSelect: {
3
9
  iconOutlined: {
4
10
  top: string;
@@ -1,4 +1,10 @@
1
1
  export function makeLightNormalOverrides(theme: any): {
2
+ MuiAppBar: {
3
+ colorDefault: {
4
+ backgroundColor: any;
5
+ color: any;
6
+ };
7
+ };
2
8
  MuiSelect: {
3
9
  iconOutlined: {
4
10
  top: string;
@@ -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',