@pretto/picto 3.5.0 → 3.6.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,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 ClockBold = (({
29
+ as: Component = "svg",
30
+ children = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("path", {
31
+ d: "M8.5,8.17h2.67v1.5H7V4.83H8.5Zm6-.17A6.5,6.5,0,1,1,8,1.5,6.51,6.51,0,0,1,14.5,8ZM13,8a5,5,0,1,0-5,5A5,5,0,0,0,13,8Z"
32
+ })),
33
+ ...props
34
+ }) => /*#__PURE__*/React__default['default'].createElement(Component, _extends({
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ width: "16",
37
+ height: "16",
38
+ viewBox: "0 0 16 16",
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_1ga8eC', /*#__PURE__*/React__default['default'].createElement(ClockBold, props));
51
+ }
52
+
53
+ module.exports = WrappedPicto;
54
+ //# sourceMappingURL=ClockBold.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClockBold.js","sources":["../svg/ClockBold.svg","../modules/ClockBold.js"],"sourcesContent":["import React from \"react\";\nexport default (({\n as: Component = \"svg\",\n children = <><path d=\"M8.5,8.17h2.67v1.5H7V4.83H8.5Zm6-.17A6.5,6.5,0,1,1,8,1.5,6.51,6.51,0,0,1,14.5,8ZM13,8a5,5,0,1,0-5,5A5,5,0,0,0,13,8Z\" /></>,\n ...props\n}) => <Component xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"currentColor\" {...props}>{\n children\n }</Component>);","import React, { useContext, useEffect } from 'react'\n\nimport { PictoContext } from '../core'\nimport ClockBold from '../svg/ClockBold.svg'\n\nexport default function WrappedPicto(props) {\n const { optimise, refresh } = useContext(PictoContext)\n\n useEffect(() => {\n refresh()\n }, [])\n\n return optimise('p_1ga8eC', <ClockBold {...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,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,SAAD,EAAeC,KAAf,CAAb,CAAf;AACD;;;;"}