@pretto/picto 2.23.0 → 3.0.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/cjs/Camera.js ADDED
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var core = require('./core');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
+
10
+ function _extends() {
11
+ _extends = Object.assign || function (target) {
12
+ for (var i = 1; i < arguments.length; i++) {
13
+ var source = arguments[i];
14
+
15
+ for (var key in source) {
16
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17
+ target[key] = source[key];
18
+ }
19
+ }
20
+ }
21
+
22
+ return target;
23
+ };
24
+
25
+ return _extends.apply(this, arguments);
26
+ }
27
+
28
+ var Camera = (({
29
+ as: Component = "svg",
30
+ children = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("path", {
31
+ d: "M15,3a2,2,0,0,1,2,2V9l7-4V19l-7-4v4a2,2,0,0,1-2,2H2a2,2,0,0,1-2-2V5A2,2,0,0,1,2,3Zm0,17a1,1,0,0,0,1-1V5a1,1,0,0,0-1-1H2A1,1,0,0,0,1,5V19a1,1,0,0,0,1,1Zm2-9.85v3.7l6,3.43V6.72Z"
32
+ })),
33
+ ...props
34
+ }) => /*#__PURE__*/React__default['default'].createElement(Component, _extends({
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ width: "24",
37
+ height: "24",
38
+ viewBox: "0 0 24 24",
39
+ fill: "currentColor"
40
+ }, props), children));
41
+
42
+ function WrappedPicto(props) {
43
+ const {
44
+ optimise,
45
+ refresh
46
+ } = React.useContext(core.PictoContext);
47
+ React.useEffect(() => {
48
+ refresh();
49
+ }, []);
50
+ return optimise('p_2nf8iD', /*#__PURE__*/React__default['default'].createElement(Camera, props));
51
+ }
52
+
53
+ module.exports = WrappedPicto;
54
+ //# sourceMappingURL=Camera.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Camera.js","sources":["../svg/Camera.svg","../modules/Camera.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n as: Component = \"svg\",\n children = <><path d=\"M15,3a2,2,0,0,1,2,2V9l7-4V19l-7-4v4a2,2,0,0,1-2,2H2a2,2,0,0,1-2-2V5A2,2,0,0,1,2,3Zm0,17a1,1,0,0,0,1-1V5a1,1,0,0,0-1-1H2A1,1,0,0,0,1,5V19a1,1,0,0,0,1,1Zm2-9.85v3.7l6,3.43V6.72Z\" /></>,\n ...props\n}) => <Component xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" {...props}>{\n children\n }</Component>);","import React, { useContext, useEffect } from 'react'\n\nimport { PictoContext } from '../core'\nimport Camera from '../svg/Camera.svg'\n\nexport default function WrappedPicto(props) {\n const { optimise, refresh } = useContext(PictoContext)\n\n useEffect(() => {\n refresh()\n }, [])\n\n return optimise('p_2nf8iD', <Camera {...props} />)\n}\n"],"names":["as","Component","children","React","props","WrappedPicto","optimise","refresh","useContext","PictoContext","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,cAAgB,CAAC;AACfA,EAAAA,EAAE,EAAEC,SAAS,GAAG,KADD;AAEfC,EAAAA,QAAQ,gBAAGC,+FAAEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAAF,CAFI;AAGf,KAAGC;AAHY,CAAD,kBAIVD,wCAAC,SAAD;AAAW,EAAA,KAAK,EAAC,4BAAjB;AAA8C,EAAA,KAAK,EAAC,IAApD;AAAyD,EAAA,MAAM,EAAC,IAAhE;AAAqE,EAAA,OAAO,EAAC,WAA7E;AAAyF,EAAA,IAAI,EAAC;AAA9F,GAAiHC,KAAjH,GACFF,QADE,CAJN;;ACIe,SAASG,YAAT,CAAsBD,KAAtB,EAA6B;AAC1C,QAAM;AAAEE,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAwBC,gBAAU,CAACC,iBAAD,CAAxC;AAEAC,EAAAA,eAAS,CAAC,MAAM;AACdH,IAAAA,OAAO;AACR,GAFQ,EAEN,EAFM,CAAT;AAIA,SAAOD,QAAQ,CAAC,UAAD,eAAaH,wCAAC,MAAD,EAAYC,KAAZ,CAAb,CAAf;AACD;;;;"}
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var core = require('./core');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
+
10
+ function _extends() {
11
+ _extends = Object.assign || function (target) {
12
+ for (var i = 1; i < arguments.length; i++) {
13
+ var source = arguments[i];
14
+
15
+ for (var key in source) {
16
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17
+ target[key] = source[key];
18
+ }
19
+ }
20
+ }
21
+
22
+ return target;
23
+ };
24
+
25
+ return _extends.apply(this, arguments);
26
+ }
27
+
28
+ var FileCheck = (({
29
+ as: Component = "svg",
30
+ children = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("path", {
31
+ d: "M16.9999 11.0309L11.0079 17.6539L7.33594 13.7229L8.03694 13.0399L11.0449 16.2239L16.2719 10.3459L16.9999 11.0309Z"
32
+ }), /*#__PURE__*/React__default['default'].createElement("path", {
33
+ fillRule: "evenodd",
34
+ clipRule: "evenodd",
35
+ d: "M2 24H22V6L16 0H2V24ZM3 1H15V7H21V23H3V1ZM20.586 6H16V1.414L20.586 6Z"
36
+ })),
37
+ ...props
38
+ }) => /*#__PURE__*/React__default['default'].createElement(Component, _extends({
39
+ width: "24",
40
+ height: "24",
41
+ viewBox: "0 0 24 24",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ fill: "currentColor"
44
+ }, props), children));
45
+
46
+ function WrappedPicto(props) {
47
+ const {
48
+ optimise,
49
+ refresh
50
+ } = React.useContext(core.PictoContext);
51
+ React.useEffect(() => {
52
+ refresh();
53
+ }, []);
54
+ return optimise('p_LLbJ6', /*#__PURE__*/React__default['default'].createElement(FileCheck, props));
55
+ }
56
+
57
+ module.exports = WrappedPicto;
58
+ //# sourceMappingURL=FileCheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileCheck.js","sources":["../svg/file-check.svg","../modules/FileCheck.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n as: Component = \"svg\",\n children = <><path d=\"M16.9999 11.0309L11.0079 17.6539L7.33594 13.7229L8.03694 13.0399L11.0449 16.2239L16.2719 10.3459L16.9999 11.0309Z\" /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2 24H22V6L16 0H2V24ZM3 1H15V7H21V23H3V1ZM20.586 6H16V1.414L20.586 6Z\" /></>,\n ...props\n}) => <Component width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" {...props}>{\n children\n }</Component>);","import React, { useContext, useEffect } from 'react'\n\nimport { PictoContext } from '../core'\nimport FileCheck from '../svg/file-check.svg'\n\nexport default function WrappedPicto(props) {\n const { optimise, refresh } = useContext(PictoContext)\n\n useEffect(() => {\n refresh()\n }, [])\n\n return optimise('p_LLbJ6', <FileCheck {...props} />)\n}\n"],"names":["as","Component","children","React","props","WrappedPicto","optimise","refresh","useContext","PictoContext","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iBAAgB,CAAC;AACfA,EAAAA,EAAE,EAAEC,SAAS,GAAG,KADD;AAEfC,EAAAA,QAAQ,gBAAGC,+FAAEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAAF,eAAgIA;AAAM,IAAA,QAAQ,EAAC,SAAf;AAAyB,IAAA,QAAQ,EAAC,SAAlC;AAA4C,IAAA,CAAC,EAAC;AAA9C,IAAhI,CAFI;AAGf,KAAGC;AAHY,CAAD,kBAIVD,wCAAC,SAAD;AAAW,EAAA,KAAK,EAAC,IAAjB;AAAsB,EAAA,MAAM,EAAC,IAA7B;AAAkC,EAAA,OAAO,EAAC,WAA1C;AAAsD,EAAA,KAAK,EAAC,4BAA5D;AAAyF,EAAA,IAAI,EAAC;AAA9F,GAAiHC,KAAjH,GACFF,QADE,CAJN;;ACIe,SAASG,YAAT,CAAsBD,KAAtB,EAA6B;AAC1C,QAAM;AAAEE,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAwBC,gBAAU,CAACC,iBAAD,CAAxC;AAEAC,EAAAA,eAAS,CAAC,MAAM;AACdH,IAAAA,OAAO;AACR,GAFQ,EAEN,EAFM,CAAT;AAIA,SAAOD,QAAQ,CAAC,SAAD,eAAYH,wCAAC,SAAD,EAAeC,KAAf,CAAZ,CAAf;AACD;;;;"}