@arkyn/types 1.4.36 → 1.4.38
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/dist/components/PhoneInputProps.d.ts +70 -0
- package/dist/components/PhoneInputProps.d.ts.map +1 -0
- package/dist/components/PhoneInputProps.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +3 -2
- package/src/components/PhoneInputProps.ts +87 -0
- package/src/index.ts +1 -0
- package/dist/api/GetProps.d.ts +0 -10
- package/dist/api/GetProps.d.ts.map +0 -1
- package/dist/api/GetProps.js +0 -1
- package/dist/api/InboxFlowConnectionProps.d.ts +0 -6
- package/dist/api/InboxFlowConnectionProps.d.ts.map +0 -1
- package/dist/api/InboxFlowConnectionProps.js +0 -1
- package/dist/api/ResponseDTO.d.ts +0 -8
- package/dist/api/ResponseDTO.d.ts.map +0 -1
- package/dist/api/ResponseDTO.js +0 -1
- package/dist/bundle.js +0 -1
- package/dist/bundle.umd.cjs +0 -1
- package/dist/server/formControl.d.ts +0 -20
- package/dist/server/formControl.d.ts.map +0 -1
- package/dist/server/formControl.js +0 -1
- package/dist/utils/CalculateCardInstallmentProps.d.ts +0 -7
- package/dist/utils/CalculateCardInstallmentProps.d.ts.map +0 -1
- package/dist/utils/CalculateCardInstallmentProps.js +0 -1
@@ -0,0 +1,70 @@
|
|
1
|
+
import { countries } from "@arkyn/shared";
|
2
|
+
import type { ReactNode } from "react";
|
3
|
+
type CountryType = {
|
4
|
+
name: string;
|
5
|
+
code: string;
|
6
|
+
iso: string;
|
7
|
+
prefix: null | string;
|
8
|
+
flag: string;
|
9
|
+
mask: string;
|
10
|
+
};
|
11
|
+
type PhoneInputContainerProps = {
|
12
|
+
children: ReactNode;
|
13
|
+
onFocus: () => void;
|
14
|
+
isError: boolean;
|
15
|
+
disabled: boolean;
|
16
|
+
readOnly: boolean;
|
17
|
+
isLoading: boolean;
|
18
|
+
isFocused: boolean;
|
19
|
+
className?: string;
|
20
|
+
id: string;
|
21
|
+
variant: "solid" | "outline";
|
22
|
+
size: "md" | "lg";
|
23
|
+
};
|
24
|
+
type PhoneInputCountriesOverlayProps = {
|
25
|
+
isOpen: boolean;
|
26
|
+
onClick: () => void;
|
27
|
+
};
|
28
|
+
type PhoneInputCountryOptionProps = {
|
29
|
+
country: CountryType;
|
30
|
+
size: "md" | "lg";
|
31
|
+
isActive: boolean;
|
32
|
+
handleChangeValue: (country: CountryType) => void;
|
33
|
+
};
|
34
|
+
type PhoneInputCountryOptionsContainerProps = {
|
35
|
+
isOpen: boolean;
|
36
|
+
children: ReactNode;
|
37
|
+
search: string;
|
38
|
+
placeholder: string;
|
39
|
+
onSearch: (value: string) => void;
|
40
|
+
};
|
41
|
+
type PhoneInputCountrySelectorProps = {
|
42
|
+
size: "md" | "lg";
|
43
|
+
currentCountry: CountryType;
|
44
|
+
onClick: () => void;
|
45
|
+
};
|
46
|
+
type PhoneInputMaskProps = {
|
47
|
+
onFocus: () => void;
|
48
|
+
onBlur: () => void;
|
49
|
+
disabled: boolean;
|
50
|
+
size: "md" | "lg";
|
51
|
+
currentCountry: CountryType;
|
52
|
+
value: string;
|
53
|
+
onChange: (e: string) => void;
|
54
|
+
};
|
55
|
+
type PhoneInputProps = {
|
56
|
+
disabled?: boolean;
|
57
|
+
readOnly?: boolean;
|
58
|
+
isError?: boolean;
|
59
|
+
isLoading?: boolean;
|
60
|
+
size?: "md" | "lg";
|
61
|
+
variant?: "solid" | "outline";
|
62
|
+
className?: string;
|
63
|
+
defaultValue?: string;
|
64
|
+
notFoundCountryText?: string;
|
65
|
+
name: string;
|
66
|
+
searchCountryPlaceholder?: string;
|
67
|
+
defaultCountry?: (typeof countries)[number]["iso"];
|
68
|
+
};
|
69
|
+
export type { CountryType, PhoneInputContainerProps, PhoneInputCountriesOverlayProps, PhoneInputCountryOptionProps, PhoneInputCountryOptionsContainerProps, PhoneInputCountrySelectorProps, PhoneInputMaskProps, PhoneInputProps, };
|
70
|
+
//# sourceMappingURL=PhoneInputProps.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PhoneInputProps.d.ts","sourceRoot":"","sources":["../../src/components/PhoneInputProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,KAAK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WAAW,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,EAC5B,sCAAsC,EACtC,8BAA8B,EAC9B,mBAAmB,EACnB,eAAe,GAChB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
import { countries } from "@arkyn/shared";
|
package/dist/index.d.ts
CHANGED
@@ -29,6 +29,7 @@ export * from "./components/InputProps";
|
|
29
29
|
export * from "./components/ModalProps";
|
30
30
|
export * from "./components/MultiSelectProps";
|
31
31
|
export * from "./components/PaginationProps";
|
32
|
+
export * from "./components/PhoneInputProps";
|
32
33
|
export * from "./components/PopoverProps";
|
33
34
|
export * from "./components/RadioProps";
|
34
35
|
export * from "./components/RichTextProps";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B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;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -31,6 +31,7 @@ export * from "./components/InputProps";
|
|
31
31
|
export * from "./components/ModalProps";
|
32
32
|
export * from "./components/MultiSelectProps";
|
33
33
|
export * from "./components/PaginationProps";
|
34
|
+
export * from "./components/PhoneInputProps";
|
34
35
|
export * from "./components/PopoverProps";
|
35
36
|
export * from "./components/RadioProps";
|
36
37
|
export * from "./components/RichTextProps";
|
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arkyn/types",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.38",
|
4
4
|
"main": "./dist/bundle.js",
|
5
5
|
"module": "./src/index.ts",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./dist/index.d.ts",
|
8
8
|
"scripts": {
|
9
|
-
"
|
9
|
+
"clean": "rm -rf dist",
|
10
|
+
"build": "bun run clean && bunx tsc --project tsconfig.json",
|
10
11
|
"typecheck": "bunx tsc --project tsconfig.json --noEmit"
|
11
12
|
},
|
12
13
|
"dependencies": {
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { countries } from "@arkyn/shared";
|
2
|
+
import type { ReactNode } from "react";
|
3
|
+
|
4
|
+
type CountryType = {
|
5
|
+
name: string;
|
6
|
+
code: string;
|
7
|
+
iso: string;
|
8
|
+
prefix: null | string;
|
9
|
+
flag: string;
|
10
|
+
mask: string;
|
11
|
+
};
|
12
|
+
|
13
|
+
type PhoneInputContainerProps = {
|
14
|
+
children: ReactNode;
|
15
|
+
onFocus: () => void;
|
16
|
+
isError: boolean;
|
17
|
+
disabled: boolean;
|
18
|
+
readOnly: boolean;
|
19
|
+
isLoading: boolean;
|
20
|
+
isFocused: boolean;
|
21
|
+
className?: string;
|
22
|
+
id: string;
|
23
|
+
variant: "solid" | "outline";
|
24
|
+
size: "md" | "lg";
|
25
|
+
};
|
26
|
+
|
27
|
+
type PhoneInputCountriesOverlayProps = {
|
28
|
+
isOpen: boolean;
|
29
|
+
onClick: () => void;
|
30
|
+
};
|
31
|
+
|
32
|
+
type PhoneInputCountryOptionProps = {
|
33
|
+
country: CountryType;
|
34
|
+
size: "md" | "lg";
|
35
|
+
isActive: boolean;
|
36
|
+
handleChangeValue: (country: CountryType) => void;
|
37
|
+
};
|
38
|
+
|
39
|
+
type PhoneInputCountryOptionsContainerProps = {
|
40
|
+
isOpen: boolean;
|
41
|
+
children: ReactNode;
|
42
|
+
search: string;
|
43
|
+
placeholder: string;
|
44
|
+
onSearch: (value: string) => void;
|
45
|
+
};
|
46
|
+
|
47
|
+
type PhoneInputCountrySelectorProps = {
|
48
|
+
size: "md" | "lg";
|
49
|
+
currentCountry: CountryType;
|
50
|
+
onClick: () => void;
|
51
|
+
};
|
52
|
+
|
53
|
+
type PhoneInputMaskProps = {
|
54
|
+
onFocus: () => void;
|
55
|
+
onBlur: () => void;
|
56
|
+
disabled: boolean;
|
57
|
+
size: "md" | "lg";
|
58
|
+
currentCountry: CountryType;
|
59
|
+
value: string;
|
60
|
+
onChange: (e: string) => void;
|
61
|
+
};
|
62
|
+
|
63
|
+
type PhoneInputProps = {
|
64
|
+
disabled?: boolean;
|
65
|
+
readOnly?: boolean;
|
66
|
+
isError?: boolean;
|
67
|
+
isLoading?: boolean;
|
68
|
+
size?: "md" | "lg";
|
69
|
+
variant?: "solid" | "outline";
|
70
|
+
className?: string;
|
71
|
+
defaultValue?: string;
|
72
|
+
notFoundCountryText?: string;
|
73
|
+
name: string;
|
74
|
+
searchCountryPlaceholder?: string;
|
75
|
+
defaultCountry?: (typeof countries)[number]["iso"];
|
76
|
+
};
|
77
|
+
|
78
|
+
export type {
|
79
|
+
CountryType,
|
80
|
+
PhoneInputContainerProps,
|
81
|
+
PhoneInputCountriesOverlayProps,
|
82
|
+
PhoneInputCountryOptionProps,
|
83
|
+
PhoneInputCountryOptionsContainerProps,
|
84
|
+
PhoneInputCountrySelectorProps,
|
85
|
+
PhoneInputMaskProps,
|
86
|
+
PhoneInputProps,
|
87
|
+
};
|
package/src/index.ts
CHANGED
@@ -32,6 +32,7 @@ export * from "./components/InputProps";
|
|
32
32
|
export * from "./components/ModalProps";
|
33
33
|
export * from "./components/MultiSelectProps";
|
34
34
|
export * from "./components/PaginationProps";
|
35
|
+
export * from "./components/PhoneInputProps";
|
35
36
|
export * from "./components/PopoverProps";
|
36
37
|
export * from "./components/RadioProps";
|
37
38
|
export * from "./components/RichTextProps";
|
package/dist/api/GetProps.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import type { ResponseDTO } from "./ResponseDTO";
|
3
|
-
type ConfigDTO = {
|
4
|
-
cached: true;
|
5
|
-
cached_type: "url" | "url-token";
|
6
|
-
headers: RequestInit["headers"];
|
7
|
-
};
|
8
|
-
type GetProps = (url: string, config: ConfigDTO) => Promise<ResponseDTO>;
|
9
|
-
export type { GetProps };
|
10
|
-
//# sourceMappingURL=GetProps.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GetProps.d.ts","sourceRoot":"","sources":["../../src/api/GetProps.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,SAAS,GAAG;IACf,MAAM,EAAE,IAAI,CAAC;IACb,WAAW,EAAE,KAAK,GAAG,WAAW,CAAC;IACjC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC;AAEF,KAAK,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;AAEzE,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/api/GetProps.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"InboxFlowConnectionProps.d.ts","sourceRoot":"","sources":["../../src/api/InboxFlowConnectionProps.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ResponseDTO.d.ts","sourceRoot":"","sources":["../../src/api/ResponseDTO.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,CAAC,CAAC,GAAG,OAAO,IAAI;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/api/ResponseDTO.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/dist/bundle.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
package/dist/bundle.umd.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Schema } from "zod";
|
2
|
-
type SuccessResponse<T extends FormControlProps> = {
|
3
|
-
success: true;
|
4
|
-
data: T[1] extends Schema<infer U> ? U : never;
|
5
|
-
};
|
6
|
-
type ErrorResponse = {
|
7
|
-
success: false;
|
8
|
-
fields: {
|
9
|
-
[x: string]: string;
|
10
|
-
};
|
11
|
-
fieldErrors: {
|
12
|
-
[x: string]: string;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
type FormControlProps = [formData: {
|
16
|
-
[k: string]: any;
|
17
|
-
}, schema: Schema];
|
18
|
-
type FormControlReturnType<T extends FormControlProps> = SuccessResponse<T> | ErrorResponse;
|
19
|
-
export type { FormControlProps, FormControlReturnType };
|
20
|
-
//# sourceMappingURL=formControl.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"formControl.d.ts","sourceRoot":"","sources":["../../src/server/formControl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,KAAK,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAAI;IACjD,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;CAChD,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChC,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEF,KAAK,gBAAgB,GAAG,CAAC,QAAQ,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzE,KAAK,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,IACjD,eAAe,CAAC,CAAC,CAAC,GAClB,aAAa,CAAC;AAElB,YAAY,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
import { Schema } from "zod";
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CalculateCardInstallmentProps.d.ts","sourceRoot":"","sources":["../../src/utils/CalculateCardInstallmentProps.ts"],"names":[],"mappings":"AAAA,KAAK,6BAA6B,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|