@uxf/smart-address 11.46.0 → 11.80.2

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/v1/v1.stories.d.ts +0 -6
  3. package/v1/v1.stories.js +0 -86
  4. /package/{config.d.ts → smart-address/config.d.ts} +0 -0
  5. /package/{config.js → smart-address/config.js} +0 -0
  6. /package/{v1 → smart-address/v1}/create-address-loader.d.ts +0 -0
  7. /package/{v1 → smart-address/v1}/create-address-loader.js +0 -0
  8. /package/{v1 → smart-address/v1}/create-zip-loader.d.ts +0 -0
  9. /package/{v1 → smart-address/v1}/create-zip-loader.js +0 -0
  10. /package/{v1 → smart-address/v1}/get-address-extended.d.ts +0 -0
  11. /package/{v1 → smart-address/v1}/get-address-extended.js +0 -0
  12. /package/{v1 → smart-address/v1}/get-address.d.ts +0 -0
  13. /package/{v1 → smart-address/v1}/get-address.js +0 -0
  14. /package/{v1 → smart-address/v1}/get-city-part.d.ts +0 -0
  15. /package/{v1 → smart-address/v1}/get-city-part.js +0 -0
  16. /package/{v1 → smart-address/v1}/get-city.d.ts +0 -0
  17. /package/{v1 → smart-address/v1}/get-city.js +0 -0
  18. /package/{v1 → smart-address/v1}/get-momc.d.ts +0 -0
  19. /package/{v1 → smart-address/v1}/get-momc.js +0 -0
  20. /package/{v1 → smart-address/v1}/get-mop.d.ts +0 -0
  21. /package/{v1 → smart-address/v1}/get-mop.js +0 -0
  22. /package/{v1 → smart-address/v1}/get-street.d.ts +0 -0
  23. /package/{v1 → smart-address/v1}/get-street.js +0 -0
  24. /package/{v1 → smart-address/v1}/index.d.ts +0 -0
  25. /package/{v1 → smart-address/v1}/index.js +0 -0
  26. /package/{v1 → smart-address/v1}/load-address-options.d.ts +0 -0
  27. /package/{v1 → smart-address/v1}/load-address-options.js +0 -0
  28. /package/{v1 → smart-address/v1}/load-address-options.test.d.ts +0 -0
  29. /package/{v1 → smart-address/v1}/load-address-options.test.js +0 -0
  30. /package/{v1 → smart-address/v1}/load-zip-options.d.ts +0 -0
  31. /package/{v1 → smart-address/v1}/load-zip-options.js +0 -0
  32. /package/{v1 → smart-address/v1}/load-zip-options.test.d.ts +0 -0
  33. /package/{v1 → smart-address/v1}/load-zip-options.test.js +0 -0
  34. /package/{v1 → smart-address/v1}/search-zip.d.ts +0 -0
  35. /package/{v1 → smart-address/v1}/search-zip.js +0 -0
  36. /package/{v1 → smart-address/v1}/search-zip.test.d.ts +0 -0
  37. /package/{v1 → smart-address/v1}/search-zip.test.js +0 -0
  38. /package/{v1 → smart-address/v1}/search.d.ts +0 -0
  39. /package/{v1 → smart-address/v1}/search.js +0 -0
  40. /package/{v1 → smart-address/v1}/search.test.d.ts +0 -0
  41. /package/{v1 → smart-address/v1}/search.test.js +0 -0
  42. /package/{v1 → smart-address/v1}/types.d.ts +0 -0
  43. /package/{v1 → smart-address/v1}/types.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/smart-address",
3
- "version": "11.46.0",
3
+ "version": "11.80.2",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare function Default(): React.JSX.Element;
package/v1/v1.stories.js DELETED
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Default = Default;
27
- const button_1 = require("@uxf/ui/button");
28
- const combobox_1 = require("@uxf/ui/combobox");
29
- const text_input_1 = require("@uxf/ui/text-input");
30
- const react_1 = __importStar(require("react"));
31
- const index_1 = require("./index");
32
- exports.default = {
33
- title: "Smart address/v1",
34
- };
35
- function Default() {
36
- const [addressValue, setAddressValue] = (0, react_1.useState)(null);
37
- const [zipValue, setZipValue] = (0, react_1.useState)(null);
38
- const [textValue, setTextValue] = (0, react_1.useState)("");
39
- const [content, setContent] = (0, react_1.useState)([]);
40
- const load = (type) => async () => {
41
- switch (type) {
42
- case "load-address":
43
- setContent(await index_1.SmartAddress.loadAddressOptions({ term: textValue, level: 1 }));
44
- break;
45
- case "load-zip":
46
- setContent(await index_1.SmartAddress.loadZipOptions({ term: textValue }));
47
- break;
48
- case "get-address":
49
- setContent(await index_1.SmartAddress.getAddress(parseInt(textValue, 10)));
50
- break;
51
- case "get-address-extended":
52
- setContent(await index_1.SmartAddress.getAddressExtended(parseInt(textValue, 10)));
53
- break;
54
- case "get-city":
55
- setContent(await index_1.SmartAddress.getCity(parseInt(textValue, 10)));
56
- break;
57
- case "get-city-part":
58
- setContent(await index_1.SmartAddress.getCityPart(parseInt(textValue, 10)));
59
- break;
60
- case "get-momc":
61
- setContent(await index_1.SmartAddress.getMomc(parseInt(textValue, 10)));
62
- break;
63
- case "get-mop":
64
- setContent(await index_1.SmartAddress.getMop(parseInt(textValue, 10)));
65
- break;
66
- case "get-street":
67
- setContent(await index_1.SmartAddress.getStreet(parseInt(textValue, 10)));
68
- break;
69
- }
70
- };
71
- return (react_1.default.createElement("div", { className: "mx-auto max-w-3xl space-y-4 rounded border bg-white p-4" },
72
- react_1.default.createElement(combobox_1.Combobox, { label: "Address combobox", loadOptions: index_1.SmartAddress.createAddressLoader({ level: 1 }), name: "combobox", onChange: setAddressValue, value: addressValue }),
73
- react_1.default.createElement(combobox_1.Combobox, { label: "Zip combobox", loadOptions: index_1.SmartAddress.createZipLoader({}), name: "combobox-smart-address", onChange: setZipValue, value: zipValue }),
74
- react_1.default.createElement(text_input_1.TextInput, { label: "Text input", name: "text-input", onChange: setTextValue, type: "text", value: textValue }),
75
- react_1.default.createElement("div", { className: "grid grid-cols-2 gap-4" },
76
- react_1.default.createElement(button_1.Button, { onClick: load("load-address") }, "Load Address Options"),
77
- react_1.default.createElement(button_1.Button, { onClick: load("load-zip") }, "Load Zip Options"),
78
- react_1.default.createElement(button_1.Button, { onClick: load("get-address") }, "Get Address"),
79
- react_1.default.createElement(button_1.Button, { onClick: load("get-address-extended") }, "Get Address Extended"),
80
- react_1.default.createElement(button_1.Button, { onClick: load("get-city") }, "Get City"),
81
- react_1.default.createElement(button_1.Button, { onClick: load("get-city-part") }, "Get City Part"),
82
- react_1.default.createElement(button_1.Button, { onClick: load("get-momc") }, "Get Momc"),
83
- react_1.default.createElement(button_1.Button, { onClick: load("get-mop") }, "Get Mop"),
84
- react_1.default.createElement(button_1.Button, { onClick: load("get-street") }, "Get Street")),
85
- react_1.default.createElement("pre", { className: "bg-gray-100 p-2 text-sm" }, JSON.stringify(content, null, 4))));
86
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes