@bikdotai/bik-component-library 0.0.275-1 → 0.0.275-2

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.
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface NavigationHyperlinkProps {
3
3
  router: any;
4
4
  href: string;
5
- children: ReactNode;
5
+ children?: ReactNode;
6
6
  newTab?: boolean;
7
7
  }
8
8
  export declare const NavigationHyperlink: React.FC<NavigationHyperlinkProps>;
@@ -1,3 +1,3 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=n(require("styled-components")).default.div`
2
2
  // display: inline-block;
3
- `;exports.NaLinkWrapper=o,exports.NavigationHyperlink=n=>{const{router:i,href:t,children:r,newTab:l}=n;return e.jsx(o,Object.assign({onClick:e=>{if(t.includes("http")){const n=l||e.metaKey?"_blank":"_self";window.open(t,n)}else{const n=`${t.startsWith("/")?"":"/"}${t}`;e.metaKey?window.open(window.location.origin+n,"_blank"):(console.log("coming here"),i?(console.log("coming here router"),i.push(window.location.origin+n)):window.open(window.location.origin+n,"_self"))}}},{children:r}))};
3
+ `;exports.NaLinkWrapper=o,exports.NavigationHyperlink=n=>{const{router:i,href:t,newTab:r}=n;return e.jsx(o,Object.assign({onClick:e=>{if(t.includes("http")){const n=r||e.metaKey?"_blank":"_self";window.open(t,n)}else{const n=`${t.startsWith("/")?"":"/"}${t}`;e.metaKey?window.open(window.location.origin+n,"_blank"):(console.log("coming here"),i?(console.log("coming here router"),i.push(window.location.origin+n)):window.open(window.location.origin+n,"_self"))}}},{children:n.children}))};
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface NavigationHyperlinkProps {
3
3
  router: any;
4
4
  href: string;
5
- children: ReactNode;
5
+ children?: ReactNode;
6
6
  newTab?: boolean;
7
7
  }
8
8
  export declare const NavigationHyperlink: React.FC<NavigationHyperlinkProps>;
@@ -1,3 +1,3 @@
1
- import{jsx as o}from"react/jsx-runtime";import n from"styled-components";const e=n=>{const{router:e,href:t,children:r,newTab:l}=n;return o(i,Object.assign({onClick:o=>{if(t.includes("http")){const n=l||o.metaKey?"_blank":"_self";window.open(t,n)}else{const n=`${t.startsWith("/")?"":"/"}${t}`;o.metaKey?window.open(window.location.origin+n,"_blank"):(console.log("coming here"),e?(console.log("coming here router"),e.push(window.location.origin+n)):window.open(window.location.origin+n,"_self"))}}},{children:r}))},i=n.div`
1
+ import{jsx as o}from"react/jsx-runtime";import n from"styled-components";const e=n=>{const{router:e,href:t,newTab:r}=n;return o(i,Object.assign({onClick:o=>{if(t.includes("http")){const n=r||o.metaKey?"_blank":"_self";window.open(t,n)}else{const n=`${t.startsWith("/")?"":"/"}${t}`;o.metaKey?window.open(window.location.origin+n,"_blank"):(console.log("coming here"),e?(console.log("coming here router"),e.push(window.location.origin+n)):window.open(window.location.origin+n,"_self"))}}},{children:n.children}))},i=n.div`
2
2
  // display: inline-block;
3
3
  `;export{i as NaLinkWrapper,e as NavigationHyperlink};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.275-1",
3
+ "version": "0.0.275-2",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",