@dbosoft/nextjs-uicore 1.0.2 → 1.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @dbosoft/nextjs-uicore
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5fc59bc: fixed missing navigation for github links in subnav
8
+
3
9
  ## 1.0.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dbosoft/nextjs-uicore",
3
3
  "description": "Core UI components for Next.js",
4
4
  "author": "dbosoft",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "sideEffects": false,
7
7
  "license": "MIT",
8
8
  "exports": {
@@ -18,9 +18,9 @@
18
18
  "next": "^14.0.4",
19
19
  "react": "^18.2.0",
20
20
  "typescript": "^5.3.3",
21
+ "@dbosoft/web-types": "1.0.0",
21
22
  "@dbosoft/eslint-config": "1.0.0",
22
- "@dbosoft/typescript-config": "1.0.0",
23
- "@dbosoft/web-types": "1.0.0"
23
+ "@dbosoft/typescript-config": "1.0.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -8,6 +8,7 @@ import { StarIcon } from '@heroicons/react/16/solid'
8
8
  import GithubIcon from '../icons/github.svg'
9
9
  import formatStarCount from './formatStarCount'
10
10
  import parseGithubUrl from './parseGithubUrl'
11
+ import Link from 'next/link';
11
12
 
12
13
  function GithubStarsButton({ url, hideGithubStars }: { url: string, hideGithubStars: boolean }) {
13
14
  const [starCount, setStarCount] = useState(-1)
@@ -63,7 +64,10 @@ function GithubStarsButton({ url, hideGithubStars }: { url: string, hideGithubSt
63
64
 
64
65
  return (
65
66
  <LinkButton icon={!showStarCount ? icon : undefined} label='Github' text={!showStarCount ? "Github" : ""}
66
- variant='neutral' >
67
+ variant='neutral'
68
+ url={url} external
69
+ Link={Link}
70
+ >
67
71
  {showStarCount ? <div className="inline-flex">
68
72
  <GithubIcon className="w-5 mr-2" />
69
73
  <div className='-my-2 mx-2 h-9 block bg-gray-300' style={{ width: "1px" }} />