@homecode/ui 4.18.45 → 4.18.47

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,17 @@
1
+ import * as React from 'react';
2
+
3
+ var _path, _path2;
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 SvgGeolocation = function SvgGeolocation(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ viewBox: "0 0 24 24",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "currentColor"
10
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
11
+ d: "M12 17c2.8 0 5-2.3 5-5 0-2.8-2.3-5-5-5-2.8 0-5 2.3-5 5 0 2.8 2.2 5 5 5z"
12
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
13
+ d: "M4.2 12.7c.3 3.8 3.3 6.8 7.1 7.1v2.9h1.4v-2.9c3.8-.3 6.8-3.3 7.1-7.1h2.9v-1.4h-2.9c-.3-3.8-3.3-6.8-7.1-7.1v-3h-1.4v2.9c-3.8.3-6.8 3.3-7.1 7.1h-3v1.4zM12 5.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5z"
14
+ })));
15
+ };
16
+
17
+ export { SvgGeolocation as default };
@@ -22,6 +22,7 @@ var ICONS = {
22
22
  fullscreenExit: () => import('./fullscreenExit.svg.js'),
23
23
  function: () => import('./function.svg.js'),
24
24
  gear: () => import('./gear.svg.js'),
25
+ geolocation: () => import('./geolocation.svg.js'),
25
26
  group: () => import('./group.svg.js'),
26
27
  history: () => import('./history.svg.js'),
27
28
  instagram: () => import('./instagram.svg.js'),
@@ -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);
@@ -22,6 +22,7 @@ declare const _default: {
22
22
  fullscreenExit: () => Promise<any>;
23
23
  function: () => Promise<any>;
24
24
  gear: () => Promise<any>;
25
+ geolocation: () => Promise<any>;
25
26
  group: () => Promise<any>;
26
27
  history: () => Promise<any>;
27
28
  instagram: () => Promise<any>;
@@ -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.45",
3
+ "version": "4.18.47",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",