@dbosoft/nextjs-uicore 1.0.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
1
- # @dbosoft/nextjs-uicore
2
-
3
- ## 1.0.0
4
-
5
- ### Major Changes
6
-
7
- - restructured nextjs components
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies
12
- - @dbosoft/react-uicore@1.0.0
1
+ # @dbosoft/nextjs-uicore
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4122817: fixed subnav titlelink
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - ec24215: update @heroicons/react to v2
14
+
15
+ ## 1.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - restructured nextjs components
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @dbosoft/react-uicore@1.0.0
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.0",
5
+ "version": "1.0.2",
6
6
  "sideEffects": false,
7
7
  "license": "MIT",
8
8
  "exports": {
@@ -19,15 +19,15 @@
19
19
  "react": "^18.2.0",
20
20
  "typescript": "^5.3.3",
21
21
  "@dbosoft/eslint-config": "1.0.0",
22
- "@dbosoft/web-types": "1.0.0",
23
- "@dbosoft/typescript-config": "1.0.0"
22
+ "@dbosoft/typescript-config": "1.0.0",
23
+ "@dbosoft/web-types": "1.0.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
29
  "@headlessui/react": "^1.4.3",
30
- "@heroicons/react": "^1.0.5",
30
+ "@heroicons/react": "^2.1.3",
31
31
  "classnames": "^2.3.1",
32
32
  "isomorphic-unfetch": "^4.0.2",
33
33
  "unfetch": "^4.2.0",
@@ -1,5 +1,5 @@
1
1
  import { Disclosure } from '@headlessui/react'
2
- import { MenuIcon, XIcon } from '@heroicons/react/outline'
2
+ import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
3
3
  import classNames from 'classnames'
4
4
  import type { LinkType, Variant } from '@dbosoft/react-uicore/linkbutton'
5
5
  import MenuItemsOverflow from './partials/MenuItemsOverflow'
@@ -23,6 +23,11 @@ export interface ILinkMenuItem {
23
23
  active?: boolean
24
24
  }
25
25
 
26
+ export interface ITitleLink {
27
+ url: string,
28
+ text?: string,
29
+ }
30
+
26
31
 
27
32
  export interface ICtaItem {
28
33
  text: string,
@@ -33,7 +38,7 @@ export interface ICtaItem {
33
38
  }
34
39
 
35
40
  interface ISubNavProps {
36
- titleLink?: ILinkMenuItem,
41
+ titleLink?: ITitleLink,
37
42
  titleContent?: JSX.Element,
38
43
  ctaLinks: ICtaItem[],
39
44
  hideGithubStars: boolean,
@@ -70,7 +75,7 @@ function Subnav({
70
75
  text={titleLink.text}
71
76
 
72
77
  url={titleLink.url} >{titleContent}</TitleLink>}
73
- {titleContent}
78
+ {!titleLink && titleContent}
74
79
  </div>
75
80
  <div className="hidden sm:-my-px sm:ml-6 sm:flex">
76
81
  <MenuItemsDefault
@@ -88,9 +93,9 @@ function Subnav({
88
93
  <Disclosure.Button className="bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-secondary">
89
94
  <span className="sr-only">Open main menu</span>
90
95
  {open ? (
91
- <XIcon aria-hidden="true" className="block h-6 w-6" />
96
+ <XMarkIcon aria-hidden="true" className="block h-6 w-6" />
92
97
  ) : (
93
- <MenuIcon aria-hidden="true" className="block h-6 w-6" />
98
+ <Bars3Icon aria-hidden="true" className="block h-6 w-6" />
94
99
  )}
95
100
  </Disclosure.Button>
96
101
  </div>
@@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react'
4
4
  import fetch from 'isomorphic-unfetch'
5
5
  import type { IconObject } from '@dbosoft/react-uicore/linkbutton';
6
6
  import LinkButton from '@dbosoft/react-uicore/linkbutton';
7
- import { StarIcon } from '@heroicons/react/solid'
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'
@@ -4,7 +4,7 @@ import Link from 'next/link'
4
4
 
5
5
 
6
6
  const TitleLink: FC<{
7
- text: string,
7
+ text?: string,
8
8
  url: string,
9
9
  children?: ReactNode
10
10
  }> = ({