@ni/ok-react 0.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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ <div align="center">
2
+ <p><b>ni | ok | react</b></p>
3
+ </div>
4
+
5
+ # Ok React
6
+
7
+ Work in progress alpha package
@@ -0,0 +1,2 @@
1
+ import { Button } from '@ni/ok-components/dist/esm/button';
2
+ export declare const OkButton: import("@ni/fast-react-wrapper").ReactWrapper<Button, unknown>;
@@ -0,0 +1,4 @@
1
+ import { Button } from '@ni/ok-components/dist/esm/button';
2
+ import { wrap } from '../utilities/react-wrapper';
3
+ export const OkButton = wrap(Button);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { Button } from '@ni/ok-components/dist/esm/button';\nimport { wrap } from '../utilities/react-wrapper';\n\nexport const OkButton = wrap(Button);\n"]}
@@ -0,0 +1,4 @@
1
+ export declare const wrap: {
2
+ <TRegistry extends import("@ni/fast-foundation").FoundationElementRegistry<import("@ni/fast-foundation").FoundationElementDefinition, any>, TEvents>(registry: TRegistry, config?: import("@ni/fast-react-wrapper").ReactWrapperConfig<TEvents> | undefined): import("@ni/fast-react-wrapper").ReactWrapper<import("@ni/fast-react-wrapper").FoundationElementRegistryElement<TRegistry>, TEvents>;
3
+ <TElement extends HTMLElement, TEvents_1>(type: import("@ni/fast-element").Constructable<TElement>, config?: import("@ni/fast-react-wrapper").ReactWrapperConfig<TEvents_1> | undefined): import("@ni/fast-react-wrapper").ReactWrapper<TElement, TEvents_1>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { provideReactWrapper } from '@ni/fast-react-wrapper';
3
+ export const { wrap } = provideReactWrapper(React);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/react-wrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { provideReactWrapper } from '@ni/fast-react-wrapper';\n\nexport const { wrap } = provideReactWrapper(React);\n"]}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@ni/ok-react",
3
+ "version": "0.0.2",
4
+ "description": "React components for NI Ok Components",
5
+ "keywords": [
6
+ "Ok",
7
+ "react"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc -p ./tsconfig.json",
11
+ "lint": "eslint .",
12
+ "format": "eslint . --fix",
13
+ "pack": "npm pack",
14
+ "invoke-publish": "npm publish"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/ni/nimble.git",
19
+ "directory": "packages/react-workspace/ok-react"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "author": "National Instruments",
25
+ "license": "MIT",
26
+ "devDependencies": {
27
+ "@ni-private/eslint-config-nimble": "*",
28
+ "typescript": "~5.4.5"
29
+ },
30
+ "peerDependencies": {
31
+ "@ni/fast-react-wrapper": "^10.1.2",
32
+ "@ni/ok-components": "^0.0.2",
33
+ "react": "^16 || ^17 || ^18"
34
+ }
35
+ }