@iobroker/adapter-react-v5 3.1.1 → 3.1.2

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/README.md CHANGED
@@ -641,6 +641,9 @@ If you still have questions, try to find an answer [here](https://mui.com/guides
641
641
  -->
642
642
 
643
643
  ## Changelog
644
+ ### 3.1.2 (2022-06-09)
645
+ * (bluefox) Added new document icon (read only)
646
+
644
647
  ### 3.1.1 (2022-06-09)
645
648
  * (bluefox) Allowed to work behind reverse proxy
646
649
 
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ // Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
15
+ var IconDocumentReadOnly = function IconDocumentReadOnly(props) {
16
+ return /*#__PURE__*/_react["default"].createElement("svg", {
17
+ onClick: function onClick(e) {
18
+ return props.onClick && props.onClick(e);
19
+ },
20
+ viewBox: "0 0 512 512",
21
+ width: props.width || 20,
22
+ height: props.height || props.width || 20,
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ className: props.className
25
+ }, /*#__PURE__*/_react["default"].createElement("path", {
26
+ fill: "currentColor",
27
+ d: "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"
28
+ }), /*#__PURE__*/_react["default"].createElement("path", {
29
+ fill: "currentColor",
30
+ stroke: "null",
31
+ d: "m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z"
32
+ }));
33
+ };
34
+
35
+ IconDocumentReadOnly.propTypes = {
36
+ onClick: _propTypes["default"].func,
37
+ width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
38
+ height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
39
+ className: _propTypes["default"].string
40
+ };
41
+ var _default = IconDocumentReadOnly;
42
+ exports["default"] = _default;
43
+ //# sourceMappingURL=IconDocumentReadOnly.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconDocumentReadOnly.js","names":["IconDocumentReadOnly","props","e","onClick","width","height","className","propTypes","PropTypes","func","oneOfType","number","string"],"sources":["IconDocumentReadOnly.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/\nconst IconDocumentReadOnly = props => {\n return <svg onClick={e => props.onClick && props.onClick(e)} viewBox=\"0 0 512 512\" width={props.width || 20} height={props.height || props.width || 20} xmlns=\"http://www.w3.org/2000/svg\" className={ props.className }>\n <path fill=\"currentColor\" d=\"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z\"/>\n <path fill=\"currentColor\" stroke=\"null\" d=\"m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z\"/>\n </svg>;\n}\n\nIconDocumentReadOnly.propTypes = {\n onClick: PropTypes.func,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string\n};\n\nexport default IconDocumentReadOnly;"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;AACA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,CAAAC,KAAK,EAAI;EAClC,oBAAO;IAAK,OAAO,EAAE,iBAAAC,CAAC;MAAA,OAAID,KAAK,CAACE,OAAN,IAAiBF,KAAK,CAACE,OAAN,CAAcD,CAAd,CAArB;IAAA,CAAf;IAAsD,OAAO,EAAC,aAA9D;IAA4E,KAAK,EAAED,KAAK,CAACG,KAAN,IAAe,EAAlG;IAAsG,MAAM,EAAEH,KAAK,CAACI,MAAN,IAAgBJ,KAAK,CAACG,KAAtB,IAA+B,EAA7I;IAAiJ,KAAK,EAAC,4BAAvJ;IAAoL,SAAS,EAAGH,KAAK,CAACK;EAAtM,gBACH;IAAM,IAAI,EAAC,cAAX;IAA0B,CAAC,EAAC;EAA5B,EADG,eAEH;IAAM,IAAI,EAAC,cAAX;IAA0B,MAAM,EAAC,MAAjC;IAAwC,CAAC,EAAC;EAA1C,EAFG,CAAP;AAIH,CALD;;AAOAN,oBAAoB,CAACO,SAArB,GAAiC;EAC7BJ,OAAO,EAAEK,qBAAA,CAAUC,IADU;EAE7BL,KAAK,EAAEI,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,MAA7B,CAApB,CAFsB;EAG7BP,MAAM,EAAEG,qBAAA,CAAUE,SAAV,CAAoB,CAACF,qBAAA,CAAUG,MAAX,EAAmBH,qBAAA,CAAUI,MAA7B,CAApB,CAHqB;EAI7BN,SAAS,EAAEE,qBAAA,CAAUI;AAJQ,CAAjC;eAOeZ,oB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "bluefox",