@hipay/hipay-material-ui 2.3.0-rcstyleguide-beta4 → 2.3.0-rcstyleguide-beta5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "2.3.0-rcstyleguide-beta4",
4
+ "version": "2.3.0-rcstyleguide-beta5",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",
package/es/App.js DELETED
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@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 _logo = _interopRequireDefault(require("./logo.svg"));
13
-
14
- require("./App.css");
15
-
16
- var _ref = _react.default.createElement("div", {
17
- className: "App"
18
- }, _react.default.createElement("header", {
19
- className: "App-header"
20
- }, _react.default.createElement("img", {
21
- src: _logo.default,
22
- className: "App-logo",
23
- alt: "logo"
24
- }), _react.default.createElement("p", null, "Edit ", _react.default.createElement("code", null, "src/App.js"), " and save to reload."), _react.default.createElement("a", {
25
- className: "App-link",
26
- href: "https://reactjs.org",
27
- target: "_blank",
28
- rel: "noopener noreferrer"
29
- }, "Learn React")));
30
-
31
- function App() {
32
- return _ref;
33
- }
34
-
35
- var _default = App;
36
- exports.default = _default;
package/es/index.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
6
-
7
- var _react = _interopRequireDefault(require("react"));
8
-
9
- var _reactDom = _interopRequireDefault(require("react-dom"));
10
-
11
- require("./index.css");
12
-
13
- var _App = _interopRequireDefault(require("./App"));
14
-
15
- var serviceWorker = _interopRequireWildcard(require("./serviceWorker"));
16
-
17
- _reactDom.default.render(_react.default.createElement(_App.default, null), document.getElementById('root')); // If you want your app to work offline and load faster, you can change
18
- // unregister() to register() below. Note this comes with some pitfalls.
19
- // Learn more about service workers: https://bit.ly/CRA-PWA
20
-
21
-
22
- serviceWorker.unregister();
@@ -1,118 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.register = register;
7
- exports.unregister = unregister;
8
- // This optional code is used to register a service worker.
9
- // register() is not called by default.
10
- // This lets the app load faster on subsequent visits in production, and gives
11
- // it offline capabilities. However, it also means that developers (and users)
12
- // will only see deployed updates on subsequent visits to a page, after all the
13
- // existing tabs open on the page have been closed, since previously cached
14
- // resources are updated in the background.
15
- // To learn more about the benefits of this model and instructions on how to
16
- // opt-in, read https://bit.ly/CRA-PWA
17
- var isLocalhost = Boolean(window.location.hostname === 'localhost' || // [::1] is the IPv6 localhost address.
18
- window.location.hostname === '[::1]' || // 127.0.0.1/8 is considered localhost for IPv4.
19
- window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
20
-
21
- function register(config) {
22
- if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
23
- // The URL constructor is available in all browsers that support SW.
24
- var publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
25
-
26
- if (publicUrl.origin !== window.location.origin) {
27
- // Our service worker won't work if PUBLIC_URL is on a different origin
28
- // from what our page is served on. This might happen if a CDN is used to
29
- // serve assets; see https://github.com/facebook/create-react-app/issues/2374
30
- return;
31
- }
32
-
33
- window.addEventListener('load', function () {
34
- var swUrl = "".concat(process.env.PUBLIC_URL, "/service-worker.js");
35
-
36
- if (isLocalhost) {
37
- // This is running on localhost. Let's check if a service worker still exists or not.
38
- checkValidServiceWorker(swUrl, config); // Add some additional logging to localhost, pointing developers to the
39
- // service worker/PWA documentation.
40
-
41
- navigator.serviceWorker.ready.then(function () {
42
- console.log('This web app is being served cache-first by a service ' + 'worker. To learn more, visit https://bit.ly/CRA-PWA');
43
- });
44
- } else {
45
- // Is not localhost. Just register service worker
46
- registerValidSW(swUrl, config);
47
- }
48
- });
49
- }
50
- }
51
-
52
- function registerValidSW(swUrl, config) {
53
- navigator.serviceWorker.register(swUrl).then(function (registration) {
54
- registration.onupdatefound = function () {
55
- var installingWorker = registration.installing;
56
-
57
- if (installingWorker == null) {
58
- return;
59
- }
60
-
61
- installingWorker.onstatechange = function () {
62
- if (installingWorker.state === 'installed') {
63
- if (navigator.serviceWorker.controller) {
64
- // At this point, the updated precached content has been fetched,
65
- // but the previous service worker will still serve the older
66
- // content until all client tabs are closed.
67
- console.log('New content is available and will be used when all ' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'); // Execute callback
68
-
69
- if (config && config.onUpdate) {
70
- config.onUpdate(registration);
71
- }
72
- } else {
73
- // At this point, everything has been precached.
74
- // It's the perfect time to display a
75
- // "Content is cached for offline use." message.
76
- console.log('Content is cached for offline use.'); // Execute callback
77
-
78
- if (config && config.onSuccess) {
79
- config.onSuccess(registration);
80
- }
81
- }
82
- }
83
- };
84
- };
85
- }).catch(function (error) {
86
- console.error('Error during service worker registration:', error);
87
- });
88
- }
89
-
90
- function checkValidServiceWorker(swUrl, config) {
91
- // Check if the service worker can be found. If it can't reload the page.
92
- fetch(swUrl).then(function (response) {
93
- // Ensure service worker exists, and that we really are getting a JS file.
94
- var contentType = response.headers.get('content-type');
95
-
96
- if (response.status === 404 || contentType != null && contentType.indexOf('javascript') === -1) {
97
- // No service worker found. Probably a different app. Reload the page.
98
- navigator.serviceWorker.ready.then(function (registration) {
99
- registration.unregister().then(function () {
100
- window.location.reload();
101
- });
102
- });
103
- } else {
104
- // Service worker found. Proceed as normal.
105
- registerValidSW(swUrl, config);
106
- }
107
- }).catch(function () {
108
- console.log('No internet connection found. App is running in offline mode.');
109
- });
110
- }
111
-
112
- function unregister() {
113
- if ('serviceWorker' in navigator) {
114
- navigator.serviceWorker.ready.then(function (registration) {
115
- registration.unregister();
116
- });
117
- }
118
- }