@js-smart/react-kit 5.8.0 → 5.9.1
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/index.cjs +74 -0
- package/index.js +4071 -25
- package/lib/components/NextLink.d.ts +8 -6
- package/lib/components/OpenInNewIconLink.d.ts +2 -2
- package/lib/components/buttons/EditIconButton.d.ts +1 -1
- package/package.json +9 -9
- package/index.mjs +0 -4108
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
href: string;
|
|
4
|
+
linkText?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Reusable custom Next.js 13 Link component.
|
|
4
10
|
*
|
|
@@ -7,9 +13,5 @@ import { default as React } from 'react';
|
|
|
7
13
|
* @author Pavan Kumar Jadda
|
|
8
14
|
* @since 0.3.2
|
|
9
15
|
*/
|
|
10
|
-
export declare function NextLink(props:
|
|
11
|
-
|
|
12
|
-
linkText?: string;
|
|
13
|
-
target?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
+
export declare function NextLink(props: Readonly<Props>): React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface Props {
|
|
3
3
|
href: string;
|
|
4
4
|
linkText: string;
|
|
5
5
|
target: string;
|
|
@@ -13,5 +13,5 @@ interface OpenInNewIconLinkProps {
|
|
|
13
13
|
* @author Pavan Kumar Jadda
|
|
14
14
|
* @since 1.2.24
|
|
15
15
|
*/
|
|
16
|
-
export declare function OpenInNewIconLink(props:
|
|
16
|
+
export declare function OpenInNewIconLink(props: Readonly<Props>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -4,5 +4,5 @@ interface EditIconButtonProps {
|
|
|
4
4
|
onClick: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
5
|
color?: 'inherit' | 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
6
6
|
}
|
|
7
|
-
export declare function EditIconButton(props: EditIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function EditIconButton(props: Readonly<EditIconButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-smart/react-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.9.1",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"publishConfig": {
|
|
8
9
|
"access": "public"
|
|
9
10
|
},
|
|
10
11
|
"peerDependencies": {
|
|
11
12
|
"@emotion/react": "^11.14.0",
|
|
12
|
-
"@emotion/styled": "^11.14.
|
|
13
|
-
"@mui/icons-material": "^
|
|
14
|
-
"@mui/
|
|
15
|
-
"@mui/material": "^6.3.0",
|
|
13
|
+
"@emotion/styled": "^11.14.1",
|
|
14
|
+
"@mui/icons-material": "^7.2.0",
|
|
15
|
+
"@mui/material": "^7.2.0",
|
|
16
16
|
"date-fns": "^4.1.0",
|
|
17
|
-
"react": "^18.3.1",
|
|
18
|
-
"react-dom": "^18.3.1",
|
|
19
|
-
"react-router-dom": "^7.
|
|
17
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
18
|
+
"react-dom": "^18.3.1 || ^19.0.0",
|
|
19
|
+
"react-router-dom": "^7.6.3"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": {
|
|
32
32
|
"name": "Pavan Kumar Jadda",
|
|
33
|
-
"email": "
|
|
33
|
+
"email": "contact@pavankjadda.dev"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"react",
|