@digdir/designsystemet-react 0.0.0-next-20240724125515
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/README.md +12 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @digdir/designsystemet-react
|
|
2
|
+
|
|
3
|
+
React implementation of the Designsystemet components
|
|
4
|
+
|
|
5
|
+
- Headless components.
|
|
6
|
+
- Uses `@digdir/designsystemet-theme` and `@digdir/designsystemet-css` for styling.
|
|
7
|
+
- All components support `forwardRef`.
|
|
8
|
+
- Most components extend and behave as native html-elements.
|
|
9
|
+
- Most components support composition and `asChild` for overriding the underlying html-element.
|
|
10
|
+
- SSR support.
|
|
11
|
+
|
|
12
|
+
Read the Designsystemet [README](https://github.com/digdir/designsystemet) to get started.
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@digdir/designsystemet-react",
|
|
3
|
+
"version": "0.0.0-next-20240724125515",
|
|
4
|
+
"description": "React components for Designsystemet",
|
|
5
|
+
"author": "Designsystemet team",
|
|
6
|
+
"repository": "https://github.com/digdir/designsystemet",
|
|
7
|
+
"homepage": "https://github.com/digdir/designsystemet/tree/main/packages/react",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/**"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "yarn run clean && tsc -p tsconfig.build.json && rollup -c --bundleConfigAsCjs",
|
|
23
|
+
"clean": "rimraf dist && rimraf tsc-build",
|
|
24
|
+
"copy-css-to-build": "copyfiles -u 1 ./src/**/*.css ./tsc-build/",
|
|
25
|
+
"types": "tsc --noEmit"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": ">=18.3.1",
|
|
29
|
+
"react-dom": ">=18.3.1"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@floating-ui/react": "0.26.12",
|
|
36
|
+
"@navikt/aksel-icons": "^5.12.2",
|
|
37
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
38
|
+
"@tanstack/react-virtual": "^3.5.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"copyfiles": "^2.4.1",
|
|
42
|
+
"rimraf": "^5.0.5",
|
|
43
|
+
"rollup": "^4.12.1",
|
|
44
|
+
"typescript": "^5.4.2"
|
|
45
|
+
}
|
|
46
|
+
}
|