@pretto/picto 3.3.0 → 3.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.
@@ -0,0 +1,55 @@
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 BubbleDouble = (({
29
+ as: Component = "svg",
30
+ children = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("path", {
31
+ d: "M20,15a1,1,0,1,1-1-1A1,1,0,0,1,20,15Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,17,15Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,14,15ZM19.42,20a12.75,12.75,0,0,1-3.33.48C12.63,20.43,9,18.36,9,15c0-3.13,3.14-5.68,7-5.68s7,2.55,7,5.68a5.07,5.07,0,0,1-1.48,3.52l.84,2.69ZM6,16.57l-4.39,1.9,1.26-4A6.82,6.82,0,0,1,1,9.76C1,5.48,5.26,2,10.5,2c5,0,9.13,3.19,9.47,7.22a9.35,9.35,0,0,0-4-.89c-4.2,0-8,2.8-8,6.68a5.42,5.42,0,0,0,.41,2A17.1,17.1,0,0,1,6,16.57ZM24,15A6.25,6.25,0,0,0,21,9.8v0C21,4.67,16,1,10.5,1S0,4.7,0,9.76a7.75,7.75,0,0,0,1.79,4.92L.05,20.25l6.07-2.63A17,17,0,0,0,9,18.11a8.35,8.35,0,0,0,7.11,3.32A13.08,13.08,0,0,0,19.33,21L24,23l-1.32-4.25A5.87,5.87,0,0,0,24,15Z",
32
+ fillRule: "evenodd"
33
+ })),
34
+ ...props
35
+ }) => /*#__PURE__*/React__default['default'].createElement(Component, _extends({
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ width: "24",
38
+ height: "24",
39
+ viewBox: "0 0 24 24",
40
+ fill: "currentColor"
41
+ }, props), children));
42
+
43
+ function WrappedPicto(props) {
44
+ const {
45
+ optimise,
46
+ refresh
47
+ } = React.useContext(core.PictoContext);
48
+ React.useEffect(() => {
49
+ refresh();
50
+ }, []);
51
+ return optimise('p_2qOs6B', /*#__PURE__*/React__default['default'].createElement(BubbleDouble, props));
52
+ }
53
+
54
+ module.exports = WrappedPicto;
55
+ //# sourceMappingURL=BubbleDouble.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleDouble.js","sources":["../svg/BubbleDouble.svg","../modules/BubbleDouble.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n as: Component = \"svg\",\n children = <><path d=\"M20,15a1,1,0,1,1-1-1A1,1,0,0,1,20,15Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,17,15Zm-3,0a1,1,0,1,1-1-1A1,1,0,0,1,14,15ZM19.42,20a12.75,12.75,0,0,1-3.33.48C12.63,20.43,9,18.36,9,15c0-3.13,3.14-5.68,7-5.68s7,2.55,7,5.68a5.07,5.07,0,0,1-1.48,3.52l.84,2.69ZM6,16.57l-4.39,1.9,1.26-4A6.82,6.82,0,0,1,1,9.76C1,5.48,5.26,2,10.5,2c5,0,9.13,3.19,9.47,7.22a9.35,9.35,0,0,0-4-.89c-4.2,0-8,2.8-8,6.68a5.42,5.42,0,0,0,.41,2A17.1,17.1,0,0,1,6,16.57ZM24,15A6.25,6.25,0,0,0,21,9.8v0C21,4.67,16,1,10.5,1S0,4.7,0,9.76a7.75,7.75,0,0,0,1.79,4.92L.05,20.25l6.07-2.63A17,17,0,0,0,9,18.11a8.35,8.35,0,0,0,7.11,3.32A13.08,13.08,0,0,0,19.33,21L24,23l-1.32-4.25A5.87,5.87,0,0,0,24,15Z\" fillRule=\"evenodd\" /></>,\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 BubbleDouble from '../svg/BubbleDouble.svg'\n\nexport default function WrappedPicto(props) {\n const { optimise, refresh } = useContext(PictoContext)\n\n useEffect(() => {\n refresh()\n }, [])\n\n return optimise('p_2qOs6B', <BubbleDouble {...props} />)\n}\n"],"names":["as","Component","children","React","props","WrappedPicto","optimise","refresh","useContext","PictoContext","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oBAAgB,CAAC;AACfA,EAAAA,EAAE,EAAEC,SAAS,GAAG,KADD;AAEfC,EAAAA,QAAQ,gBAAGC,+FAAEA;AAAM,IAAA,CAAC,EAAC,0oBAAR;AAAmpB,IAAA,QAAQ,EAAC;AAA5pB,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,YAAD,EAAkBC,KAAlB,CAAb,CAAf;AACD;;;;"}
package/cjs/Plane.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 Plane = (({
29
+ as: Component = "svg",
30
+ children = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("path", {
31
+ d: "M10.57,21.5a.45.45,0,0,1-.2,0,.51.51,0,0,1-.3-.46V15.29L.85,12.36a.5.5,0,0,1,0-.94l22-8.88.06,0,.1,0h.14l.15.05h0l.07.06a.52.52,0,0,1,.1.11.38.38,0,0,1,.06.13.36.36,0,0,1,0,.1.61.61,0,0,1,0,.14h0l-3.83,18a.51.51,0,0,1-.3.37.49.49,0,0,1-.47-.06l-4.63-3.27-3.35,3.22A.49.49,0,0,1,10.57,21.5Zm3.93-4.41,4.34,3.06L22.17,4.49,11.35,14.86l3.14,2.22Zm-3.43-1.2v3.93l2.35-2.27Zm-8.6-4.06,8,2.53L20.78,4.44Z"
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_5z5Yv', /*#__PURE__*/React__default['default'].createElement(Plane, props));
51
+ }
52
+
53
+ module.exports = WrappedPicto;
54
+ //# sourceMappingURL=Plane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plane.js","sources":["../svg/Plane.svg","../modules/Plane.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n as: Component = \"svg\",\n children = <><path d=\"M10.57,21.5a.45.45,0,0,1-.2,0,.51.51,0,0,1-.3-.46V15.29L.85,12.36a.5.5,0,0,1,0-.94l22-8.88.06,0,.1,0h.14l.15.05h0l.07.06a.52.52,0,0,1,.1.11.38.38,0,0,1,.06.13.36.36,0,0,1,0,.1.61.61,0,0,1,0,.14h0l-3.83,18a.51.51,0,0,1-.3.37.49.49,0,0,1-.47-.06l-4.63-3.27-3.35,3.22A.49.49,0,0,1,10.57,21.5Zm3.93-4.41,4.34,3.06L22.17,4.49,11.35,14.86l3.14,2.22Zm-3.43-1.2v3.93l2.35-2.27Zm-8.6-4.06,8,2.53L20.78,4.44Z\" /></>,\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 Plane from '../svg/Plane.svg'\n\nexport default function WrappedPicto(props) {\n const { optimise, refresh } = useContext(PictoContext)\n\n useEffect(() => {\n refresh()\n }, [])\n\n return optimise('p_5z5Yv', <Plane {...props} />)\n}\n"],"names":["as","Component","children","React","props","WrappedPicto","optimise","refresh","useContext","PictoContext","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,aAAgB,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,SAAD,eAAYH,wCAAC,KAAD,EAAWC,KAAX,CAAZ,CAAf;AACD;;;;"}