@arkyn/components 1.3.152 → 1.3.154

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,11 +4,13 @@ declare function getConfig(props: CpfCnpjInputProps, isFocused: boolean): {
4
4
  suppressContentEditableWarning?: boolean | undefined;
5
5
  suppressHydrationWarning?: boolean | undefined;
6
6
  accessKey?: string | undefined;
7
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
7
8
  autoFocus?: boolean | undefined;
8
9
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
9
10
  contextMenu?: string | undefined;
10
11
  dir?: string | undefined;
11
12
  draggable?: (boolean | "true" | "false") | undefined;
13
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
12
14
  hidden?: boolean | undefined;
13
15
  id?: string | undefined;
14
16
  lang?: string | undefined;
@@ -29,7 +31,6 @@ declare function getConfig(props: CpfCnpjInputProps, isFocused: boolean): {
29
31
  rev?: string | undefined;
30
32
  typeof?: string | undefined;
31
33
  vocab?: string | undefined;
32
- autoCapitalize?: string | undefined;
33
34
  autoCorrect?: string | undefined;
34
35
  autoSave?: string | undefined;
35
36
  color?: string | undefined;
@@ -276,7 +277,6 @@ declare function getConfig(props: CpfCnpjInputProps, isFocused: boolean): {
276
277
  alt?: string | undefined;
277
278
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
278
279
  capture?: boolean | "user" | "environment" | undefined;
279
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
280
280
  maxLength?: number | undefined;
281
281
  minLength?: number | undefined;
282
282
  multiple?: boolean | undefined;
@@ -4,11 +4,13 @@ declare function getConfig(props: CurrencyInputProps, isFocused: boolean): {
4
4
  suppressContentEditableWarning?: boolean | undefined;
5
5
  suppressHydrationWarning?: boolean | undefined;
6
6
  accessKey?: string | undefined;
7
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
7
8
  autoFocus?: boolean | undefined;
8
9
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
9
10
  contextMenu?: string | undefined;
10
11
  dir?: string | undefined;
11
12
  draggable?: (boolean | "true" | "false") | undefined;
13
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
12
14
  hidden?: boolean | undefined;
13
15
  id?: string | undefined;
14
16
  lang?: string | undefined;
@@ -29,7 +31,6 @@ declare function getConfig(props: CurrencyInputProps, isFocused: boolean): {
29
31
  rev?: string | undefined;
30
32
  typeof?: string | undefined;
31
33
  vocab?: string | undefined;
32
- autoCapitalize?: string | undefined;
33
34
  autoCorrect?: string | undefined;
34
35
  autoSave?: string | undefined;
35
36
  color?: string | undefined;
@@ -275,7 +276,6 @@ declare function getConfig(props: CurrencyInputProps, isFocused: boolean): {
275
276
  alt?: string | undefined;
276
277
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
277
278
  capture?: boolean | "user" | "environment" | undefined;
278
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
279
279
  maxLength?: number | undefined;
280
280
  minLength?: number | undefined;
281
281
  multiple?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUvD,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA6H/C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUvD,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA+H/C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -43,7 +43,8 @@ function CurrencyInput(props) {
43
43
  const handleChange = (event) => {
44
44
  event.preventDefault();
45
45
  const [originalValue, maskedValue] = updateValues(event.target.value);
46
- onChangeValue(event, String(originalValue), String(maskedValue));
46
+ onChangeValue &&
47
+ onChangeValue(event, String(originalValue), String(maskedValue));
47
48
  };
48
49
  const handleKeyUp = (event) => onKeyPress && onKeyPress(event, event.key, event.key);
49
50
  useEffect(() => {
@@ -6,11 +6,13 @@ declare function getConfig(props: MaskedInputProps, isFocused: boolean): {
6
6
  suppressContentEditableWarning?: boolean | undefined;
7
7
  suppressHydrationWarning?: boolean | undefined;
8
8
  accessKey?: string | undefined;
9
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
9
10
  autoFocus?: boolean | undefined;
10
11
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
11
12
  contextMenu?: string | undefined;
12
13
  dir?: string | undefined;
13
14
  draggable?: (boolean | "true" | "false") | undefined;
15
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
14
16
  hidden?: boolean | undefined;
15
17
  id?: string | undefined;
16
18
  lang?: string | undefined;
@@ -31,7 +33,6 @@ declare function getConfig(props: MaskedInputProps, isFocused: boolean): {
31
33
  rev?: string | undefined;
32
34
  typeof?: string | undefined;
33
35
  vocab?: string | undefined;
34
- autoCapitalize?: string | undefined;
35
36
  autoCorrect?: string | undefined;
36
37
  autoSave?: string | undefined;
37
38
  color?: string | undefined;
@@ -277,7 +278,6 @@ declare function getConfig(props: MaskedInputProps, isFocused: boolean): {
277
278
  alt?: string | undefined;
278
279
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
279
280
  capture?: boolean | "user" | "environment" | undefined;
280
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
281
281
  maxLength?: number | undefined;
282
282
  minLength?: number | undefined;
283
283
  multiple?: boolean | undefined;
@@ -7,11 +7,13 @@ declare function getConfig(props: SimpleInputProps, isFocused: boolean): {
7
7
  suppressContentEditableWarning?: boolean | undefined;
8
8
  suppressHydrationWarning?: boolean | undefined;
9
9
  accessKey?: string | undefined;
10
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
10
11
  autoFocus?: boolean | undefined;
11
12
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
12
13
  contextMenu?: string | undefined;
13
14
  dir?: string | undefined;
14
15
  draggable?: (boolean | "true" | "false") | undefined;
16
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
15
17
  hidden?: boolean | undefined;
16
18
  id?: string | undefined;
17
19
  lang?: string | undefined;
@@ -32,7 +34,6 @@ declare function getConfig(props: SimpleInputProps, isFocused: boolean): {
32
34
  rev?: string | undefined;
33
35
  typeof?: string | undefined;
34
36
  vocab?: string | undefined;
35
- autoCapitalize?: string | undefined;
36
37
  autoCorrect?: string | undefined;
37
38
  autoSave?: string | undefined;
38
39
  color?: string | undefined;
@@ -278,7 +279,6 @@ declare function getConfig(props: SimpleInputProps, isFocused: boolean): {
278
279
  alt?: string | undefined;
279
280
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
280
281
  capture?: boolean | "user" | "environment" | undefined;
281
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
282
282
  maxLength?: number | undefined;
283
283
  minLength?: number | undefined;
284
284
  multiple?: boolean | undefined;
@@ -18,11 +18,13 @@ declare function getConfig(props: SelectProps, isFocused: boolean): {
18
18
  suppressContentEditableWarning?: boolean | undefined;
19
19
  suppressHydrationWarning?: boolean | undefined;
20
20
  accessKey?: string | undefined;
21
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
21
22
  autoFocus?: boolean | undefined;
22
23
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
23
24
  contextMenu?: string | undefined;
24
25
  dir?: string | undefined;
25
26
  draggable?: (boolean | "true" | "false") | undefined;
27
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
26
28
  hidden?: boolean | undefined;
27
29
  id?: string | undefined;
28
30
  lang?: string | undefined;
@@ -43,7 +45,6 @@ declare function getConfig(props: SelectProps, isFocused: boolean): {
43
45
  rev?: string | undefined;
44
46
  typeof?: string | undefined;
45
47
  vocab?: string | undefined;
46
- autoCapitalize?: string | undefined;
47
48
  autoCorrect?: string | undefined;
48
49
  autoSave?: string | undefined;
49
50
  color?: string | undefined;
@@ -287,7 +288,6 @@ declare function getConfig(props: SelectProps, isFocused: boolean): {
287
288
  alt?: string | undefined;
288
289
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
289
290
  capture?: boolean | "user" | "environment" | undefined;
290
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
291
291
  maxLength?: number | undefined;
292
292
  minLength?: number | undefined;
293
293
  multiple?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/components",
3
- "version": "1.3.152",
3
+ "version": "1.3.154",
4
4
  "main": "./dist/bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Lucas Gonçalves",
@@ -11,28 +11,28 @@
11
11
  "typecheck": "bunx tsc --project tsconfig.json --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@react-google-maps/api": "^2.19.3",
15
- "@react-input/mask": "^1.2.5",
16
- "framer-motion": "^11.3.21",
17
- "html-react-parser": "^5.1.16",
14
+ "@react-google-maps/api": "^2.20.3",
15
+ "@react-input/mask": "^1.2.15",
16
+ "framer-motion": "^11.11.17",
17
+ "html-react-parser": "^5.1.18",
18
18
  "is-hotkey": "^0.2.0",
19
19
  "lucide-react": "^0.424.0",
20
20
  "react-hot-toast": "^2.4.1",
21
21
  "react-scroll": "^1.9.0",
22
22
  "slate": "^0.103.0",
23
23
  "slate-history": "^0.109.0",
24
- "slate-react": "^0.110.1"
24
+ "slate-react": "^0.110.3"
25
25
  },
26
26
  "peerDependencies": {
27
- "@remix-run/react": "^2.9.2",
27
+ "@remix-run/react": "^2.11.0",
28
28
  "react": "^18.3.1",
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/react": "^18.3.3",
33
- "@types/react-dom": "^18.3.0",
32
+ "@types/react": "^18.3.12",
33
+ "@types/react-dom": "^18.3.1",
34
34
  "bun-types": "latest",
35
- "typescript": "^5.5.4",
36
- "vite": "^5.3.5"
35
+ "typescript": "^5.6.3",
36
+ "vite": "^5.4.11"
37
37
  }
38
38
  }
@@ -86,7 +86,9 @@ function CurrencyInput(props: CurrencyInputProps) {
86
86
  const handleChange = (event: ChangeEvent<HTMLInputElement>) => {
87
87
  event.preventDefault();
88
88
  const [originalValue, maskedValue] = updateValues(event.target.value);
89
- onChangeValue(event, String(originalValue), String(maskedValue));
89
+
90
+ onChangeValue &&
91
+ onChangeValue(event, String(originalValue), String(maskedValue));
90
92
  };
91
93
 
92
94
  const handleKeyUp = (event: KeyboardEvent<HTMLInputElement>) =>