File tree 5 files changed +29
-9
lines changed 5 files changed +29
-9
lines changed Original file line number Diff line number Diff line change
1
+ declare module "!!raw-loader!*" {
2
+ const src : string ;
3
+ export default src ;
4
+ }
Original file line number Diff line number Diff line change @@ -42,6 +42,21 @@ export default withNextra({
42
42
] ,
43
43
} ) ;
44
44
45
+ // Inject "use client"; to UI Kit packages' entry (index.ts) file
46
+ config . module . rules . push ( {
47
+ test : / p a c k a g e s \/ .* \/ s r c \/ i n d e x \. t s $ / ,
48
+ use : [
49
+ {
50
+ loader : "string-replace-loader" ,
51
+ options : {
52
+ search : "^" ,
53
+ replace : '"use client";\n' ,
54
+ flags : "g" ,
55
+ } ,
56
+ } ,
57
+ ] ,
58
+ } ) ;
59
+
45
60
// Add raw file loader
46
61
config . module . rules . push ( {
47
62
test : / \. ( t s x | t s | m d x ) $ / ,
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ export const metadata = {
18
18
metadataBase : new URL ( "https://github.com/lumada-design/hv-uikit-react" ) ,
19
19
title : { default : "UI Kit" , template : "%s - UI Kit" } ,
20
20
description,
21
+ icons : "https://lumada-design.github.io/assets/uikit-icon.svg" ,
21
22
creator : "UI Kit Team" ,
22
23
applicationName : title ,
23
- // generator: "Next.js",
24
24
appleWebApp : { title } ,
25
25
openGraph : {
26
26
url : "@site" ,
Original file line number Diff line number Diff line change
1
+ import canvas from "!!raw-loader!../content/examples/canvas.mdx" ;
2
+ import charts from "!!raw-loader!../content/examples/charts.mdx" ;
3
+ import dnd from "!!raw-loader!../content/examples/dnd.mdx" ;
4
+ import inputs from "!!raw-loader!../content/examples/inputs.mdx" ;
5
+ import kpis from "!!raw-loader!../content/examples/kpis.mdx" ;
6
+ import tables from "!!raw-loader!../content/examples/tables.mdx" ;
1
7
import { clsx } from "clsx" ;
2
8
import Link from "next/link" ;
3
9
import {
4
10
HvIconContainer ,
5
11
HvTypography ,
6
12
} from "@hitachivantara/uikit-react-core" ;
7
13
8
- import canvas from "../content/examples/canvas.mdx?raw" ;
9
- import charts from "../content/examples/charts.mdx?raw" ;
10
- import dnd from "../content/examples/dnd.mdx?raw" ;
11
- import inputs from "../content/examples/inputs.mdx?raw" ;
12
- import kpis from "../content/examples/kpis.mdx?raw" ;
13
- import tables from "../content/examples/tables.mdx?raw" ;
14
-
15
14
/**
16
15
* Extracts the number of CodeBlock components in the given file content.
17
16
*/
Original file line number Diff line number Diff line change
1
+ import { MetaRecord } from "nextra" ;
2
+
1
3
export default {
2
4
index : {
3
5
type : "page" ,
@@ -29,4 +31,4 @@ export default {
29
31
title : "Examples" ,
30
32
theme : { layout : "full" , toc : false } ,
31
33
} ,
32
- } ;
34
+ } satisfies MetaRecord ;
You can’t perform that action at this time.
0 commit comments