@arkyn/types 1.3.97 → 1.3.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,19 @@
1
- import type { SimpleInputProps } from "./InputProps";
2
1
  import type { StandaloneSearchBoxProps } from "@react-google-maps/api";
2
+ import type { SimpleInputProps } from "./InputProps";
3
3
  type GoogleSearchPlacesProps = {
4
4
  googleMapsApiKey: string;
5
- onLoad?: StandaloneSearchBoxProps["onLoad"];
6
- onPlacesChanged?: StandaloneSearchBoxProps["onPlacesChanged"];
5
+ onChange?: (e: {
6
+ street: string;
7
+ city: string;
8
+ state: string;
9
+ district: string;
10
+ cep: string;
11
+ coordinates: {
12
+ lat: number;
13
+ lng: number;
14
+ };
15
+ }) => void;
7
16
  options?: StandaloneSearchBoxProps["options"];
8
- } & Omit<SimpleInputProps, "onLoad" | "options" | "onPlacesChanged" | "type">;
17
+ } & Omit<SimpleInputProps, "onLoad" | "onChange" | "type">;
9
18
  export type { GoogleSearchPlacesProps };
10
19
  //# sourceMappingURL=GoogleSearchPlacesProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleSearchPlacesProps.d.ts","sourceRoot":"","sources":["../../src/components/GoogleSearchPlacesProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,KAAK,uBAAuB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAC5C,eAAe,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,SAAS,GAAG,iBAAiB,GAAG,MAAM,CAAC,CAAC;AAE9E,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"GoogleSearchPlacesProps.d.ts","sourceRoot":"","sources":["../../src/components/GoogleSearchPlacesProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,KAAK,uBAAuB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;KAC3C,KAAK,IAAI,CAAC;IACX,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC,CAAC;AAE3D,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
@@ -5,7 +5,7 @@ type RadioGroupProps = {
5
5
  defaultValue?: string;
6
6
  onChange?: (value: string) => void;
7
7
  size?: "sm" | "md" | "lg";
8
- } & HTMLAttributes<HTMLDivElement>;
8
+ } & Omit<HTMLAttributes<HTMLDivElement>, "onChange">;
9
9
  type RadioGroupContextType = {
10
10
  value: string;
11
11
  size: "sm" | "md" | "lg";
@@ -1 +1 @@
1
- {"version":3,"file":"RadioProps.d.ts","sourceRoot":"","sources":["../../src/components/RadioProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAElE,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EA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AE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "1.3.97",
3
+ "version": "1.3.99",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -1,11 +1,17 @@
1
- import type { SimpleInputProps } from "./InputProps";
2
1
  import type { StandaloneSearchBoxProps } from "@react-google-maps/api";
2
+ import type { SimpleInputProps } from "./InputProps";
3
3
 
4
4
  type GoogleSearchPlacesProps = {
5
5
  googleMapsApiKey: string;
6
- onLoad?: StandaloneSearchBoxProps["onLoad"];
7
- onPlacesChanged?: StandaloneSearchBoxProps["onPlacesChanged"];
6
+ onChange?: (e: {
7
+ street: string;
8
+ city: string;
9
+ state: string;
10
+ district: string;
11
+ cep: string;
12
+ coordinates: { lat: number; lng: number };
13
+ }) => void;
8
14
  options?: StandaloneSearchBoxProps["options"];
9
- } & Omit<SimpleInputProps, "onLoad" | "options" | "onPlacesChanged" | "type">;
15
+ } & Omit<SimpleInputProps, "onLoad" | "onChange" | "type">;
10
16
 
11
17
  export type { GoogleSearchPlacesProps };
@@ -6,7 +6,7 @@ type RadioGroupProps = {
6
6
  defaultValue?: string;
7
7
  onChange?: (value: string) => void;
8
8
  size?: "sm" | "md" | "lg";
9
- } & HTMLAttributes<HTMLDivElement>;
9
+ } & Omit<HTMLAttributes<HTMLDivElement>, "onChange">;
10
10
 
11
11
  type RadioGroupContextType = {
12
12
  value: string;