@kingteza/crud-component 1.0.19 → 1.0.21

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.
@@ -1 +1 @@
1
- "use strict";const g=require("react/jsx-runtime"),q=require("antd"),A=require("../../../locale/hooks/translation-constants.cjs"),l=require("react"),f=require("react-i18next");;/* empty css */const d=require("react-router"),x=({className:s,to:n,onClick:t,tooltip:i,ref:y,...e})=>{var c;const{t:a}=f.useTranslation(A.TRANSLATION_NAMESPACE);let r;try{r=(c=d.useNavigate)==null?void 0:c.call(d)}catch(u){console.error(u)}const o=l.useMemo(()=>g.jsx(q.Button,{onClick:t||(n&&r?()=>r(n):void 0),className:s,...e,children:e.children||a(`button.${e.type}`)}),[s,r,t,e,a,n]);return i?g.jsx(q.Tooltip,{title:i,children:o}):o},h=({className:s,to:n,onClick:t,tooltip:i,ref:y,...e})=>{const a=d.useNavigate(),[r,o]=l.useState(!1),c=l.useCallback(async v=>{try{return o(!0),await t(v)}finally{o(!1)}},[t]),u=l.useMemo(()=>g.jsx(q.Button,{loading:r||e.loading,onClick:t?c:n?()=>a(n):void 0,className:s,...e}),[c,s,r,a,t,e,n]);return i?g.jsx(q.Tooltip,{title:i,children:u}):u};x.Async=h;module.exports=x;
1
+ "use strict";const g=require("react/jsx-runtime"),q=require("antd"),A=require("../../../locale/hooks/translation-constants.cjs"),l=require("react"),f=require("react-i18next");;/* empty css */const d=require("react-router-dom"),x=({className:s,to:n,onClick:t,tooltip:i,ref:y,...e})=>{var o;const{t:a}=f.useTranslation(A.TRANSLATION_NAMESPACE);let r;try{r=(o=d.useNavigate)==null?void 0:o.call(d)}catch(u){console.error(u)}const c=l.useMemo(()=>g.jsx(q.Button,{onClick:t||(n&&r?()=>r(n):void 0),className:s,...e,children:e.children||a(`button.${e.type}`)}),[s,r,t,e,a,n]);return i?g.jsx(q.Tooltip,{title:i,children:c}):c},h=({className:s,to:n,onClick:t,tooltip:i,ref:y,...e})=>{const a=d.useNavigate(),[r,c]=l.useState(!1),o=l.useCallback(async v=>{try{return c(!0),await t(v)}finally{c(!1)}},[t]),u=l.useMemo(()=>g.jsx(q.Button,{loading:r||e.loading,onClick:t?o:n?()=>a(n):void 0,className:s,...e}),[o,s,r,a,t,e,n]);return i?g.jsx(q.Tooltip,{title:i,children:u}):u};x.Async=h;module.exports=x;
@@ -4,7 +4,7 @@ import { TRANSLATION_NAMESPACE as h } from "../../../locale/hooks/translation-co
4
4
  import { useMemo as d, useState as v, useCallback as b } from "react";
5
5
  import { useTranslation as T } from "react-i18next";
6
6
  /* empty css */
7
- import { useNavigate as g } from "react-router";
7
+ import { useNavigate as g } from "react-router-dom";
8
8
  const S = ({
9
9
  className: o,
10
10
  to: e,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kingteza/crud-component",
3
3
  "private": false,
4
- "version": "1.0.19",
4
+ "version": "1.0.21",
5
5
  "description": "React CRUD component library with Ant Design",
6
6
  "keywords": [
7
7
  "react",
@@ -59,10 +59,11 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@ant-design/icons": "^5.5.2",
62
- "antd": "^5.22.6",
63
62
  "bootstrap-css-only": "^4.4.1",
64
63
  "browser-image-compression": "^2.0.2",
64
+ "dayjs": "^1.11.13",
65
65
  "file-saver": "^2.0.5",
66
+ "i18next": "^24.2.0",
66
67
  "mime": "^4.0.6",
67
68
  "papaparse": "^5.4.1",
68
69
  "path-browserify": "^1.0.1",
@@ -70,9 +71,8 @@
70
71
  "react-cropper": "^2.3.3",
71
72
  "react-dom": "^18.3.1",
72
73
  "react-highlight-words": "^0.20.0",
74
+ "react-i18next": "^15.2.0",
73
75
  "react-responsive": "^10.0.0",
74
- "react-router": "^7.1.1",
75
- "react-router-dom": "^7.1.1",
76
76
  "react-show-more-text": "^1.7.1",
77
77
  "uuid": "^11.0.3"
78
78
  },
@@ -86,14 +86,14 @@
86
86
  "@types/react-show-more-text": "^1.4.5",
87
87
  "@types/uuid": "^10.0.0",
88
88
  "@vitejs/plugin-react": "^4.3.4",
89
+ "antd": "^5.22.6",
89
90
  "eslint": "^9.17.0",
90
91
  "eslint-plugin-react-hooks": "^5.0.0",
91
92
  "eslint-plugin-react-refresh": "^0.4.16",
92
93
  "globals": "^15.14.0",
93
- "i18next": "^24.2.0",
94
94
  "react": "^18.0.0",
95
95
  "react-dom": "^18.0.0",
96
- "react-i18next": "^15.2.0",
96
+ "react-router-dom": "^7.0.2",
97
97
  "tsup": "^8.3.5",
98
98
  "typescript": "~5.6.2",
99
99
  "typescript-eslint": "^8.18.2",
@@ -102,12 +102,9 @@
102
102
  "vite-tsconfig-paths": "^5.1.4"
103
103
  },
104
104
  "peerDependencies": {
105
- "antd": ">=5.0.0",
106
- "i18next": ">=21.0.0",
107
- "react": ">=16.8.0",
108
- "react-dom": ">=16.8.0",
109
- "react-i18next": ">=11.0.0",
110
- "react-router": ">=6.0.0",
111
- "react-router-dom": ">=6.0.0"
105
+ "antd": ">=5.22.6",
106
+ "react": ">=18.3.1",
107
+ "react-dom": ">=18.3.1",
108
+ "react-router-dom": ">=7.0.0"
112
109
  }
113
110
  }