@necto-react/types 2.0.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/.turbo/turbo-build.log +20 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/dist/index.d.mts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +0 -0
- package/jsr.json +18 -0
- package/package.json +20 -0
- package/src/dom.ts +30 -0
- package/src/events.ts +13 -0
- package/src/index.ts +10 -0
- package/tsconfig.json +24 -0
- package/tsup.config.ts +10 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @necto-react/types@1.0.0 build /Users/botiszabo/Developer/necto/node-kit/packages/necto-react-types
|
|
4
|
+
> tsup --minify
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.4.0
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/botiszabo/Developer/necto/node-kit/packages/necto-react-types/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: esnext
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m0 B[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 21ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m397.00 B[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 25ms
|
|
17
|
+
DTS Build start
|
|
18
|
+
DTS ⚡️ Build success in 827ms
|
|
19
|
+
DTS dist/index.d.ts 1.20 KB
|
|
20
|
+
DTS dist/index.d.mts 1.20 KB
|
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Necto
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface FocusableElement extends Element, HTMLOrSVGElement {
|
|
12
|
+
}
|
|
13
|
+
interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
|
|
14
|
+
onMouseLeave: (event: any) => void;
|
|
15
|
+
onMouseEnter: (event: any) => void;
|
|
16
|
+
onTouchStart: () => void;
|
|
17
|
+
onPointerLeave: (event: any) => void;
|
|
18
|
+
onPointerEnter: (event: any) => void;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
role?: AriaRole | undefined;
|
|
21
|
+
tabIndex?: number | undefined;
|
|
22
|
+
style?: CSSProperties | undefined;
|
|
23
|
+
className?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
interface HoverEvent {
|
|
34
|
+
onHoverStart?: (event: HoverEvent) => void;
|
|
35
|
+
onHoverEnd?: (event: HoverEvent) => void;
|
|
36
|
+
onHoverChange?: (isHovering: boolean) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type { DOMAttributes, FocusableElement, HoverEvent };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface FocusableElement extends Element, HTMLOrSVGElement {
|
|
12
|
+
}
|
|
13
|
+
interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
|
|
14
|
+
onMouseLeave: (event: any) => void;
|
|
15
|
+
onMouseEnter: (event: any) => void;
|
|
16
|
+
onTouchStart: () => void;
|
|
17
|
+
onPointerLeave: (event: any) => void;
|
|
18
|
+
onPointerEnter: (event: any) => void;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
role?: AriaRole | undefined;
|
|
21
|
+
tabIndex?: number | undefined;
|
|
22
|
+
style?: CSSProperties | undefined;
|
|
23
|
+
className?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
interface HoverEvent {
|
|
34
|
+
onHoverStart?: (event: HoverEvent) => void;
|
|
35
|
+
onHoverEnd?: (event: HoverEvent) => void;
|
|
36
|
+
onHoverChange?: (isHovering: boolean) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type { DOMAttributes, FocusableElement, HoverEvent };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var b=(r,o,p,f)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!a.call(r,e)&&e!==p&&m(r,e,{get:()=>o[e],enumerable:!(f=t(o,e))||f.enumerable});return r};var c=r=>b(m({},"__esModule",{value:!0}),r);var d={};module.exports=c(d);
|
package/dist/index.mjs
ADDED
|
File without changes
|
package/jsr.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@necto-react/types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Necto's library for providing typing interfaces and definitions for React applications.",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.mjs",
|
|
9
|
+
"require": "./dist/index.cjs"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Corinvo OSS Team"
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@necto-react/types",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "Corinvo OSS Team",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@types/node": "^22.14.1",
|
|
9
|
+
"@types/react": "^19.1.2",
|
|
10
|
+
"@types/react-dom": "^19.1.2",
|
|
11
|
+
"tsup": "^8.4.0"
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"react": "^19.1.0",
|
|
15
|
+
"react-dom": "^19.1.0"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsup --minify"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/dom.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
AriaRole,
|
|
11
|
+
CSSProperties,
|
|
12
|
+
AriaAttributes,
|
|
13
|
+
DOMAttributes as ReactDOMAttributes,
|
|
14
|
+
} from "react";
|
|
15
|
+
|
|
16
|
+
export interface FocusableElement extends Element, HTMLOrSVGElement {};
|
|
17
|
+
|
|
18
|
+
export interface DOMAttributes<T = FocusableElement> extends AriaAttributes, ReactDOMAttributes<T> {
|
|
19
|
+
onMouseLeave: (event: any) => void;
|
|
20
|
+
onMouseEnter: (event: any) => void;
|
|
21
|
+
onTouchStart: () => void;
|
|
22
|
+
onPointerLeave: (event: any) => void;
|
|
23
|
+
onPointerEnter: (event: any) => void;
|
|
24
|
+
|
|
25
|
+
id?: string | undefined,
|
|
26
|
+
role?: AriaRole | undefined,
|
|
27
|
+
tabIndex?: number | undefined,
|
|
28
|
+
style?: CSSProperties | undefined,
|
|
29
|
+
className?: string | undefined
|
|
30
|
+
};
|
package/src/events.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface HoverEvent {
|
|
10
|
+
onHoverStart?: (event: HoverEvent) => void,
|
|
11
|
+
onHoverEnd?: (event: HoverEvent) => void,
|
|
12
|
+
onHoverChange?: (isHovering: boolean) => void
|
|
13
|
+
}
|
package/src/index.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"outDir": "./dist",
|
|
8
|
+
"rootDir": "./src",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": false,
|
|
15
|
+
"skipLibCheck": true
|
|
16
|
+
},
|
|
17
|
+
"include": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist"
|
|
23
|
+
]
|
|
24
|
+
}
|