@arkyn/components 1.3.96 → 1.3.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ import { GoogleSearchPlacesProps } from "@arkyn/types";
2
+ declare function GoogleSearchPlaces({ googleMapsApiKey, onLoad, onPlacesChanged, options, ...rest }: GoogleSearchPlacesProps): import("react/jsx-runtime").JSX.Element;
3
+ export { GoogleSearchPlaces };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/GoogleSearchPlaces/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAIvD,iBAAS,kBAAkB,CAAC,EAC1B,gBAAgB,EAChB,MAAM,EACN,eAAe,EACf,OAAO,EACP,GAAG,IAAI,EACR,EAAE,uBAAuB,2CAgBzB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Input } from "../Input";
3
+ import { LoadScript, StandaloneSearchBox } from "@react-google-maps/api";
4
+ function GoogleSearchPlaces({ googleMapsApiKey, onLoad, onPlacesChanged, options, ...rest }) {
5
+ return (_jsx(LoadScript, { libraries: ["places"], googleMapsApiKey: googleMapsApiKey, loadingElement: _jsx(Input, { type: "text", ...rest }), children: _jsx(StandaloneSearchBox, { onLoad: onLoad, onPlacesChanged: onPlacesChanged, options: options, children: _jsx(Input, { type: "text", ...rest }) }) }));
6
+ }
7
+ export { GoogleSearchPlaces };
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export { RadioBox, RadioGroup } from "./components/Radio";
14
14
  export { Select } from "./components/Select";
15
15
  export { Switch } from "./components/Switch";
16
16
  export { Textarea } from "./components/Textarea";
17
+ export { GoogleSearchPlaces } from "./components/GoogleSearchPlaces";
17
18
  export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";
18
19
  export { Pagination } from "./components/Pagination";
19
20
  export { TabButton, TabContainer } from "./components/Tabs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAA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yB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ export { RadioBox, RadioGroup } from "./components/Radio";
16
16
  export { Select } from "./components/Select";
17
17
  export { Switch } from "./components/Switch";
18
18
  export { Textarea } from "./components/Textarea";
19
+ export { GoogleSearchPlaces } from "./components/GoogleSearchPlaces";
19
20
  // Navigation
20
21
  export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";
21
22
  export { Pagination } from "./components/Pagination";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/components",
3
- "version": "1.3.96",
3
+ "version": "1.3.97",
4
4
  "main": "./dist/bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Lucas Gonçalves",
@@ -0,0 +1,29 @@
1
+ import { GoogleSearchPlacesProps } from "@arkyn/types";
2
+ import { Input } from "../Input";
3
+ import { LoadScript, StandaloneSearchBox } from "@react-google-maps/api";
4
+
5
+ function GoogleSearchPlaces({
6
+ googleMapsApiKey,
7
+ onLoad,
8
+ onPlacesChanged,
9
+ options,
10
+ ...rest
11
+ }: GoogleSearchPlacesProps) {
12
+ return (
13
+ <LoadScript
14
+ libraries={["places"]}
15
+ googleMapsApiKey={googleMapsApiKey}
16
+ loadingElement={<Input type="text" {...rest} />}
17
+ >
18
+ <StandaloneSearchBox
19
+ onLoad={onLoad}
20
+ onPlacesChanged={onPlacesChanged}
21
+ options={options}
22
+ >
23
+ <Input type="text" {...rest} />
24
+ </StandaloneSearchBox>
25
+ </LoadScript>
26
+ );
27
+ }
28
+
29
+ export { GoogleSearchPlaces };
package/src/index.ts CHANGED
@@ -29,6 +29,7 @@ export { RadioBox, RadioGroup } from "./components/Radio";
29
29
  export { Select } from "./components/Select";
30
30
  export { Switch } from "./components/Switch";
31
31
  export { Textarea } from "./components/Textarea";
32
+ export { GoogleSearchPlaces } from "./components/GoogleSearchPlaces";
32
33
 
33
34
  // Navigation
34
35
  export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";