@dbosoft/nextjs-uicore 1.0.1 → 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
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.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"exports": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"typescript": "^5.3.3",
|
|
21
21
|
"@dbosoft/eslint-config": "1.0.0",
|
|
22
|
-
"@dbosoft/
|
|
23
|
-
"@dbosoft/
|
|
22
|
+
"@dbosoft/typescript-config": "1.0.0",
|
|
23
|
+
"@dbosoft/web-types": "1.0.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
package/src/subnav/index.tsx
CHANGED
|
@@ -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?:
|
|
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
|