@homecode/ui 4.18.44 → 4.18.46

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.
@@ -45,6 +45,7 @@ var ICONS = {
45
45
  send: () => import('./send.svg.js'),
46
46
  settings: () => import('./settings.svg.js'),
47
47
  shoppingBag: () => import('./shoppingBag.svg.js'),
48
+ sparks: () => import('./sparks.svg.js'),
48
49
  table: () => import('./table.svg.js'),
49
50
  telegram: () => import('./telegram.svg.js'),
50
51
  };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+
3
+ var _path;
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ var SvgSparks = function SvgSparks(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ xmlSpace: "preserve",
9
+ viewBox: "0 0 256 256",
10
+ fill: "currentColor"
11
+ }, props), /*#__PURE__*/React.createElement("path", {
12
+ d: "M243.1 164.577c-1.058-4.845-2.571-6.106-18.685-15.239-8.306-4.685-16.531-9.763-18.437-11.103-10.337-7.414-18.618-19.582-22.342-32.73-.698-2.593-2.235-12.437-3.33-21.782-1.067-9.475-2.425-18.193-2.866-19.372-1.998-4.9-7.221-8.005-12.04-7.079-5.654 1.028-6.417 2.098-16.286 19.152-9.08 15.853-13.155 21.832-18.326 26.498-6.876 6.362-18.803 12.786-27.601 14.536-1.99.412-11.388 1.768-20.733 2.862-18.272 2.137-20.891 2.966-23.442 6.804-2.735 4.072-2.208 10.851 1.21 14.133.886.998 9.007 5.918 18.017 11.155 17.524 10.237 21.543 13.233 27.746 20.894 1.85 2.283 4.558 6.374 5.832 8.811 4.42 8.388 5.814 14.254 8.363 34.515 1.426 11.728 2.682 19.608 3.385 20.84 3.173 5.82 12.22 7.524 17.311 3.25.97-.756 5.443-8.015 10.102-16.19 4.658-8.175 9.789-16.662 11.444-18.776 7.544-10.31 19.137-18.436 31.578-22.032 2.305-.62 12.436-2.235 22.33-3.353 9.922-1.25 19.059-2.658 20.369-3.073 2.83-1.194 5.93-5.056 6.542-8.063.343-1.02.22-3.087-.142-4.658",
13
+ style: {
14
+ strokeWidth: 0.999999
15
+ }
16
+ }), _path || (_path = /*#__PURE__*/React.createElement("path", {
17
+ d: "M60.324 26.3c-1.087.345-2.625 1.909-6.256 6.536-5.97 7.494-8.547 9.847-13.138 11.88-4.497 2.069-7.96 2.494-17.57 2.244-8.627-.313-9.808-.003-10.918 2.998-1.075 2.908-.074 4.238 7.42 10.208C31.42 69.56 33.395 74.022 32.96 89.322c-.274 9.388-.023 10.44 3.165 11.62 2.72 1.005 4.144.04 9.358-6.562 5.773-7.247 8.734-9.777 13.231-11.845 4.462-1.975 7.796-2.34 16.962-2.042 8.183.361 9.972-.15 11.047-3.057s.415-4.005-6.339-9.382c-7.459-6.065-9.659-8.478-11.845-13.232-2.068-4.497-2.424-8.147-2.13-18.167.235-5.244.05-7.339-.552-8.307-1.084-1.681-3.616-2.618-5.533-2.047"
18
+ })));
19
+ };
20
+
21
+ export { SvgSparks as default };
@@ -15,7 +15,7 @@ const Router = (props) => {
15
15
  const fullPath = ctx.basePath + basePath;
16
16
  useEffect(() => {
17
17
  const onPopState = () => {
18
- STORE.go(window.location.pathname, {}, { replace: true });
18
+ STORE.go(window.location.pathname, STORE.query, { replace: true });
19
19
  };
20
20
  window.addEventListener('popstate', onPopState);
21
21
  return () => window.removeEventListener('popstate', onPopState);
@@ -45,6 +45,7 @@ declare const _default: {
45
45
  send: () => Promise<any>;
46
46
  settings: () => Promise<any>;
47
47
  shoppingBag: () => Promise<any>;
48
+ sparks: () => Promise<any>;
48
49
  table: () => Promise<any>;
49
50
  telegram: () => Promise<any>;
50
51
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import STORE from './store';
2
+ import type { RouterStore as RouterStoreType } from './store';
3
3
  import * as T from './Router.types';
4
4
  export declare const Router: {
5
5
  (props: T.Props): JSX.Element;
@@ -10,4 +10,4 @@ export * from './Redirect';
10
10
  export * from './Link/Link';
11
11
  export declare const RouterStore: any;
12
12
  export declare const RouterContext: import("react").Context<import("./context").ContextType>;
13
- export type RouterStore = typeof STORE;
13
+ export type RouterStore = RouterStoreType;
@@ -1,2 +1,4 @@
1
1
  declare const STORE: any;
2
- export default STORE;
2
+ export type RouterStore = typeof STORE;
3
+ declare const _default: any;
4
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.18.44",
3
+ "version": "4.18.46",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",