@ni/nimble-react 0.8.1 → 0.9.0
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/dist/esm/utilities/{react-wrapper/index.js → react-wrapper.js} +1 -1
- package/dist/esm/utilities/react-wrapper.js.map +1 -0
- package/package.json +27 -8
- package/styles/fonts.scss +4 -0
- package/styles/tokens.scss +4 -0
- package/dist/esm/utilities/react-wrapper/index.js.map +0 -1
- /package/dist/esm/utilities/{react-wrapper/index.d.ts → react-wrapper.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-wrapper.js","sourceRoot":"","sources":["../../../src/utilities/react-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,MAAM,YAAY,CAAC;AAW5C,MAAM,UAAU,IAAI,CAChB,YAA4B,EAC5B,UAAsB,EAAE;IAExB,OAAO,eAAe,CAAO;QACzB,GAAG,OAAO;QACV,YAAY;QACZ,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY,CAAE;KACjD,CAAC,CAAC;AACP,CAAC","sourcesContent":["import type { EventName, Options, ReactWebComponent } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport React from 'react';\n\nexport { type EventName } from '@lit/react';\nexport interface EventNames {\n [key: string]: EventName | string;\n}\n\ntype Constructor<T> = new () => T;\ntype Opts<\n I extends HTMLElement,\n E extends EventNames = NonNullable<unknown>\n> = Omit<Options<I, E>, 'elementClass' | 'react' | 'tagName'>;\n\nexport function wrap<I extends HTMLElement, E extends EventNames = NonNullable<unknown>>(\n elementClass: Constructor<I>,\n options: Opts<I, E> = {},\n): ReactWebComponent<I, E> {\n return createComponent<I, E>({\n ...options,\n elementClass,\n react: React,\n tagName: customElements.getName(elementClass)!\n });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "React components for the NI Nimble Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ni",
|
|
7
7
|
"nimble",
|
|
8
8
|
"react"
|
|
9
9
|
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
"./styles/*": "./styles/*",
|
|
14
|
+
"./icons/*": {
|
|
15
|
+
"types": "./dist/esm/icons/*.d.ts",
|
|
16
|
+
"import": "./dist/esm/icons/*.js"
|
|
17
|
+
},
|
|
18
|
+
"./*": {
|
|
19
|
+
"types": "./dist/esm/*.d.ts",
|
|
20
|
+
"import": "./dist/esm/*/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
"*": {
|
|
25
|
+
"icons/*": [
|
|
26
|
+
"dist/esm/icons/*.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"*": [
|
|
29
|
+
"dist/esm/*/index.d.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
10
33
|
"scripts": {
|
|
11
34
|
"build": "npm run build:icons && npm run build:components",
|
|
12
|
-
"build:icons": "
|
|
13
|
-
"build:icons:bundle": "rollup --bundleConfigAsCjs --config build/generate-icons/rollup.config.js",
|
|
14
|
-
"build:icons:run": "node build/generate-icons/dist/index.js",
|
|
35
|
+
"build:icons": "node build/generate-icons.mjs",
|
|
15
36
|
"build:components": "tsc -p ./tsconfig.json",
|
|
16
37
|
"lint": "eslint .",
|
|
17
38
|
"format": "eslint . --fix",
|
|
@@ -30,15 +51,13 @@
|
|
|
30
51
|
"devDependencies": {
|
|
31
52
|
"@ni-private/eslint-config-nimble": "*",
|
|
32
53
|
"@ni/fast-web-utilities": "^10.0.0",
|
|
33
|
-
"@ni/nimble-components": "^34.10.
|
|
54
|
+
"@ni/nimble-components": "^34.10.3",
|
|
34
55
|
"@ni/nimble-tokens": "^8.13.6",
|
|
35
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
36
|
-
"rollup": "^4.12.0",
|
|
37
56
|
"typescript": "~5.8.3"
|
|
38
57
|
},
|
|
39
58
|
"peerDependencies": {
|
|
40
59
|
"@lit/react": "^1.0.8",
|
|
41
|
-
"@ni/nimble-components": "^34.10.
|
|
60
|
+
"@ni/nimble-components": "^34.10.3",
|
|
42
61
|
"react": "^17 || ^18 || ^19"
|
|
43
62
|
}
|
|
44
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/react-wrapper/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,MAAM,YAAY,CAAC;AAW5C,MAAM,UAAU,IAAI,CAChB,YAA4B,EAC5B,UAAsB,EAAE;IAExB,OAAO,eAAe,CAAO;QACzB,GAAG,OAAO;QACV,YAAY;QACZ,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY,CAAE;KACjD,CAAC,CAAC;AACP,CAAC","sourcesContent":["import type { EventName, Options, ReactWebComponent } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport React from 'react';\n\nexport { type EventName } from '@lit/react';\nexport interface EventNames {\n [key: string]: EventName | string;\n}\n\ntype Constructor<T> = new () => T;\ntype Opts<\n I extends HTMLElement,\n E extends EventNames = NonNullable<unknown>\n> = Omit<Options<I, E>, 'elementClass' | 'react' | 'tagName'>;\n\nexport function wrap<I extends HTMLElement, E extends EventNames = NonNullable<unknown>>(\n elementClass: Constructor<I>,\n options: Opts<I, E> = {},\n): ReactWebComponent<I, E> {\n return createComponent<I, E>({\n ...options,\n elementClass,\n react: React,\n tagName: customElements.getName(elementClass)!\n });\n}\n"]}
|
|
File without changes
|