@elliemae/ds-zipcode-search 3.27.0-next.1 → 3.27.0-next.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.
package/dist/cjs/index.js CHANGED
@@ -29,10 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var src_exports = {};
31
31
  __export(src_exports, {
32
- default: () => import_DSZipCodeSearch.default
32
+ default: () => import_ds_legacy_zipcode_search.default
33
33
  });
34
34
  module.exports = __toCommonJS(src_exports);
35
35
  var React = __toESM(require("react"));
36
- __reExport(src_exports, require("./DSZipCodeSearch.js"), module.exports);
37
- var import_DSZipCodeSearch = __toESM(require("./DSZipCodeSearch.js"));
36
+ __reExport(src_exports, require("@elliemae/ds-legacy-zipcode-search"), module.exports);
37
+ var import_ds_legacy_zipcode_search = __toESM(require("@elliemae/ds-legacy-zipcode-search"));
38
38
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export * from './DSZipCodeSearch.js';\n\nexport { default } from './DSZipCodeSearch.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,iCAAd;AAEA,6BAAwB;",
4
+ "sourcesContent": ["export * from '@elliemae/ds-legacy-zipcode-search';\nexport { default } from '@elliemae/ds-legacy-zipcode-search';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,+CAAd;AACA,sCAAwB;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- export * from "./DSZipCodeSearch.js";
3
- import { default as default2 } from "./DSZipCodeSearch.js";
2
+ export * from "@elliemae/ds-legacy-zipcode-search";
3
+ import { default as default2 } from "@elliemae/ds-legacy-zipcode-search";
4
4
  export {
5
5
  default2 as default
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSZipCodeSearch.js';\n\nexport { default } from './DSZipCodeSearch.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AAEd,SAAS,WAAAA,gBAAe;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-zipcode-search';\nexport { default } from '@elliemae/ds-legacy-zipcode-search';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
6
6
  "names": ["default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- export * from './DSZipCodeSearch.js';
2
- export { default } from './DSZipCodeSearch.js';
1
+ export * from '@elliemae/ds-legacy-zipcode-search';
2
+ export { default } from '@elliemae/ds-legacy-zipcode-search';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-zipcode-search",
3
- "version": "3.27.0-next.1",
3
+ "version": "3.27.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Zipcode Search",
6
6
  "files": [
@@ -13,22 +13,6 @@
13
13
  ".": {
14
14
  "import": "./dist/esm/index.js",
15
15
  "require": "./dist/cjs/index.js"
16
- },
17
- "./props": {
18
- "import": "./dist/esm/props.js",
19
- "require": "./dist/cjs/props.js"
20
- },
21
- "./DSZipCodeSearch": {
22
- "import": "./dist/esm/DSZipCodeSearch.js",
23
- "require": "./dist/cjs/DSZipCodeSearch.js"
24
- },
25
- "./components/helper": {
26
- "import": "./dist/esm/components/helper.js",
27
- "require": "./dist/cjs/components/helper.js"
28
- },
29
- "./components/blocks": {
30
- "import": "./dist/esm/components/blocks.js",
31
- "require": "./dist/cjs/components/blocks.js"
32
16
  }
33
17
  },
34
18
  "sideEffects": [
@@ -51,15 +35,11 @@
51
35
  "indent": 4
52
36
  },
53
37
  "dependencies": {
54
- "@elliemae/ds-classnames": "3.27.0-next.1",
55
- "@elliemae/ds-dropdownmenu": "3.27.0-next.1",
56
- "@elliemae/ds-form": "3.27.0-next.1",
57
- "@elliemae/ds-props-helpers": "3.27.0-next.1",
58
- "@elliemae/ds-system": "3.27.0-next.1"
38
+ "@elliemae/ds-legacy-zipcode-search": "1.0.1"
59
39
  },
60
40
  "devDependencies": {
61
41
  "@elliemae/pui-cli": "~9.0.0-next.31",
62
- "@elliemae/ds-monorepo-devops": "3.27.0-next.1"
42
+ "@elliemae/ds-monorepo-devops": "3.27.0-next.2"
63
43
  },
64
44
  "peerDependencies": {
65
45
  "react": "^17.0.2",
@@ -71,13 +51,13 @@
71
51
  },
72
52
  "scripts": {
73
53
  "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
74
- "test": "pui-cli test --passWithNoTests",
75
- "lint": "node ../../../scripts/lint.mjs",
76
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
77
- "dts": "node ../../../scripts/dts.mjs",
54
+ "test": "exit 0 | echo",
55
+ "lint": "exit 0 | echo",
56
+ "eslint:fix": "exit 0 | echo",
57
+ "dts": "exit 0 | echo",
78
58
  "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
79
59
  "dev:build": "pnpm --filter {.}... build",
80
60
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
81
- "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
61
+ "checkDeps": "exit 0 | echo"
82
62
  }
83
63
  }
@@ -1,143 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var DSZipCodeSearch_exports = {};
30
- __export(DSZipCodeSearch_exports, {
31
- DSZipCodeSearch: () => DSZipCodeSearch,
32
- ZipCodeSearchWithSchema: () => ZipCodeSearchWithSchema,
33
- default: () => DSZipCodeSearch_default
34
- });
35
- module.exports = __toCommonJS(DSZipCodeSearch_exports);
36
- var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_react = require("react");
39
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
40
- var import_ds_dropdownmenu = __toESM(require("@elliemae/ds-dropdownmenu"));
41
- var import_ds_form = require("@elliemae/ds-form");
42
- var import_blocks = require("./components/blocks.js");
43
- var import_helper = require("./components/helper.js");
44
- var import_props = require("./props.js");
45
- const DSZipCodeSearch = ({
46
- disabled,
47
- value,
48
- placeholder,
49
- mask,
50
- onBlur,
51
- onChange,
52
- onSearch,
53
- containerProps,
54
- selectRightOptions,
55
- activeCount,
56
- options,
57
- tabIndex
58
- }) => {
59
- const ref = (0, import_react.useRef)(null);
60
- const [searchValue, setSearchValue] = (0, import_react.useState)(String(value));
61
- const [isOpen, setIsOpen] = (0, import_react.useState)(false);
62
- const [isActive, setIsActive] = (0, import_react.useState)(false);
63
- const [isInputFocus, setIsInputFocus] = (0, import_react.useState)(false);
64
- const [isSelected, setIsSelected] = (0, import_react.useState)(false);
65
- (0, import_react.useEffect)(() => {
66
- if (isInputFocus && activeCount <= searchValue.length && !isSelected) {
67
- setIsOpen(true);
68
- setIsActive(true);
69
- } else if (!isActive || activeCount > searchValue.length) {
70
- setIsOpen(false);
71
- }
72
- }, [isInputFocus, isActive, activeCount, searchValue, isSelected]);
73
- (0, import_react.useEffect)(() => {
74
- setSearchValue(String(value) || "");
75
- }, [value]);
76
- const onTypeInInput = (0, import_react.useCallback)(
77
- (e) => {
78
- const finalVal = e.target.value;
79
- onSearch(finalVal);
80
- setSearchValue(finalVal);
81
- setIsSelected(false);
82
- },
83
- [onSearch]
84
- );
85
- const onFocusInput = (0, import_react.useCallback)(() => {
86
- setIsInputFocus(true);
87
- }, []);
88
- const onInnerBlur = (0, import_react.useCallback)(
89
- (e) => {
90
- setIsInputFocus(false);
91
- onBlur(e);
92
- },
93
- [onBlur]
94
- );
95
- const onClose = (0, import_react.useCallback)(() => {
96
- setIsActive(false);
97
- }, []);
98
- const onSelectItem = (0, import_react.useCallback)(
99
- (item) => {
100
- setSearchValue(item.value);
101
- onChange(item);
102
- setIsSelected(true);
103
- ref.current.focus();
104
- setIsOpen(false);
105
- onClose();
106
- },
107
- [onChange, onClose]
108
- );
109
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.InputSearchWrapper, { ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
- import_ds_dropdownmenu.default,
111
- {
112
- isOpen: isOpen && options.length > 0,
113
- menuProps: { className: "input-search-menu" },
114
- onClose,
115
- onSelectMenuItem: onSelectItem,
116
- contentStyle: {
117
- maxHeight: 200
118
- },
119
- options: options.length > 0 ? [(0, import_helper.createDisabledOption)(selectRightOptions), ...(0, import_helper.noAddonOptions)(options)] : [],
120
- triggerComponent: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
- import_ds_form.DSInputMask,
122
- {
123
- disabled,
124
- innerRef: (_ref) => ref.current = _ref,
125
- mask,
126
- onBlur: onInnerBlur,
127
- onChange: onTypeInInput,
128
- onFocus: onFocusInput,
129
- placeholder,
130
- value: searchValue,
131
- tabIndex
132
- }
133
- ) })
134
- }
135
- ) });
136
- };
137
- DSZipCodeSearch.propTypes = import_props.zipcodeSearchProps;
138
- DSZipCodeSearch.defaultProps = import_props.defaultProps;
139
- DSZipCodeSearch.displayName = "DSZipCodeSearch";
140
- const ZipCodeSearchWithSchema = (0, import_ds_props_helpers.describe)(DSZipCodeSearch);
141
- ZipCodeSearchWithSchema.propTypes = import_props.zipcodeSearchProps;
142
- var DSZipCodeSearch_default = DSZipCodeSearch;
143
- //# sourceMappingURL=DSZipCodeSearch.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/DSZipCodeSearch.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable no-useless-escape */\n/* eslint-disable max-lines */\n/* eslint-disable indent */\nimport React, { useState, useEffect, useRef, useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { DSInputMask } from '@elliemae/ds-form';\nimport { InputSearchWrapper } from './components/blocks.js';\nimport { createDisabledOption, noAddonOptions } from './components/helper.js';\nimport { zipcodeSearchProps, defaultProps } from './props.js';\n\nconst DSZipCodeSearch = ({\n disabled,\n value,\n placeholder,\n mask,\n onBlur,\n onChange,\n onSearch,\n containerProps,\n selectRightOptions,\n activeCount,\n options,\n tabIndex,\n}) => {\n const ref = useRef(null);\n const [searchValue, setSearchValue] = useState(String(value));\n const [isOpen, setIsOpen] = useState(false);\n const [isActive, setIsActive] = useState(false);\n const [isInputFocus, setIsInputFocus] = useState(false);\n const [isSelected, setIsSelected] = useState(false);\n\n useEffect(() => {\n if (isInputFocus && activeCount <= searchValue.length && !isSelected) {\n setIsOpen(true);\n setIsActive(true);\n } else if (!isActive || activeCount > searchValue.length) {\n setIsOpen(false);\n }\n }, [isInputFocus, isActive, activeCount, searchValue, isSelected]);\n useEffect(() => {\n setSearchValue(String(value) || '');\n }, [value]);\n\n const onTypeInInput = useCallback(\n (e) => {\n const finalVal = e.target.value;\n onSearch(finalVal);\n setSearchValue(finalVal);\n setIsSelected(false);\n },\n [onSearch],\n );\n\n const onFocusInput = useCallback(() => {\n setIsInputFocus(true);\n }, []);\n\n const onInnerBlur = useCallback(\n (e) => {\n setIsInputFocus(false);\n onBlur(e);\n },\n [onBlur],\n );\n const onClose = useCallback(() => {\n setIsActive(false);\n }, []);\n const onSelectItem = useCallback(\n (item) => {\n setSearchValue(item.value);\n onChange(item);\n setIsSelected(true);\n ref.current.focus();\n setIsOpen(false);\n onClose();\n },\n [onChange, onClose],\n );\n\n return (\n <InputSearchWrapper {...containerProps}>\n <DSDropdownMenu\n isOpen={isOpen && options.length > 0}\n menuProps={{ className: 'input-search-menu' }}\n onClose={onClose}\n onSelectMenuItem={onSelectItem}\n contentStyle={{\n maxHeight: 200,\n }}\n options={options.length > 0 ? [createDisabledOption(selectRightOptions), ...noAddonOptions(options)] : []}\n triggerComponent={\n <div>\n <DSInputMask\n disabled={disabled}\n innerRef={(_ref) => (ref.current = _ref)}\n mask={mask}\n onBlur={onInnerBlur}\n onChange={onTypeInInput}\n onFocus={onFocusInput}\n placeholder={placeholder}\n value={searchValue}\n tabIndex={tabIndex}\n />\n </div>\n }\n />\n </InputSearchWrapper>\n );\n};\n\nDSZipCodeSearch.propTypes = zipcodeSearchProps;\n\nDSZipCodeSearch.defaultProps = defaultProps;\nDSZipCodeSearch.displayName = 'DSZipCodeSearch';\nconst ZipCodeSearchWithSchema = describe(DSZipCodeSearch);\nZipCodeSearchWithSchema.propTypes = zipcodeSearchProps;\n\nexport { DSZipCodeSearch, ZipCodeSearchWithSchema };\nexport default DSZipCodeSearch;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6FX;AA1FZ,mBAAgE;AAChE,8BAAyB;AACzB,6BAA2B;AAC3B,qBAA4B;AAC5B,oBAAmC;AACnC,oBAAqD;AACrD,mBAAiD;AAEjD,MAAM,kBAAkB,CAAC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,UAAM,qBAAO,IAAI;AACvB,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,OAAO,KAAK,CAAC;AAC5D,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAS,KAAK;AAC1C,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,KAAK;AAC9C,QAAM,CAAC,cAAc,eAAe,QAAI,uBAAS,KAAK;AACtD,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,KAAK;AAElD,8BAAU,MAAM;AACd,QAAI,gBAAgB,eAAe,YAAY,UAAU,CAAC,YAAY;AACpE,gBAAU,IAAI;AACd,kBAA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AC,IAAI,CAAC;AAAA,MACxG,kBACE,4CAAC,SACC;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,UAAU,CAAC,SAAU,IAAI,UAAU;AAAA,UACnC;AAAA,UACA,QAAQ;AAAA,UACR,UAAU;AAAA,UACV,SAAS;AAAA,UACT;AAAA,UACA,OAAO;AAAA,UACP;AAAA;AAAA,MACF,GACF;AAAA;AAAA,EAEJ,GACF;AAEJ;AAEA,gBAAgB,YAAY;AAE5B,gBAAgB,eAAe;AAC/B,gBAAgB,cAAc;AAC9B,MAAM,8BAA0B,kCAAS,eAAe;AACxD,wBAAwB,YAAY;AAGpC,IAAO,0BAAQ;",
6
- "names": ["DSDropdownMenu"]
7
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var blocks_exports = {};
30
- __export(blocks_exports, {
31
- InputSearchWrapper: () => InputSearchWrapper
32
- });
33
- module.exports = __toCommonJS(blocks_exports);
34
- var React = __toESM(require("react"));
35
- var import_ds_classnames = require("@elliemae/ds-classnames");
36
- const blockName = "input-search";
37
- const InputSearchWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
38
- //# sourceMappingURL=blocks.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/blocks.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'input-search';\n\nexport const InputSearchWrapper = aggregatedClasses('div')(blockName);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAkC;AAElC,MAAM,YAAY;AAEX,MAAM,yBAAqB,wCAAkB,KAAK,EAAE,SAAS;",
6
- "names": []
7
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var helper_exports = {};
30
- __export(helper_exports, {
31
- createDisabledOption: () => createDisabledOption,
32
- noAddonOptions: () => noAddonOptions
33
- });
34
- module.exports = __toCommonJS(helper_exports);
35
- var React = __toESM(require("react"));
36
- function createDisabledOption(label) {
37
- return {
38
- id: "no-option",
39
- type: "disabled",
40
- label,
41
- noAddon: true,
42
- "aria-disabled": true,
43
- className: "no-options",
44
- tabIndex: -1
45
- };
46
- }
47
- function noAddonOptions(options) {
48
- return options.map((op) => ({ ...op, noAddon: true }));
49
- }
50
- //# sourceMappingURL=helper.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/helper.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export function createDisabledOption(label) {\n return {\n id: 'no-option',\n type: 'disabled',\n label,\n noAddon: true,\n 'aria-disabled': true,\n className: 'no-options',\n tabIndex: -1,\n };\n}\n\nexport function noAddonOptions(options) {\n return options.map((op) => ({ ...op, noAddon: true }));\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,SAAS,qBAAqB,OAAO;AAC1C,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,UAAU;AAAA,EACZ;AACF;AAEO,SAAS,eAAe,SAAS;AACtC,SAAO,QAAQ,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,SAAS,KAAK,EAAE;AACvD;",
6
- "names": []
7
- }
package/dist/cjs/props.js DELETED
@@ -1,84 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var props_exports = {};
30
- __export(props_exports, {
31
- defaultProps: () => defaultProps,
32
- zipcodeSearchProps: () => zipcodeSearchProps
33
- });
34
- module.exports = __toCommonJS(props_exports);
35
- var React = __toESM(require("react"));
36
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
- var import_ds_form = require("@elliemae/ds-form");
38
- const zipcodeSearchProps = {
39
- /** html class attribute */
40
- className: import_ds_props_helpers.PropTypes.string.description("html class attribute"),
41
- /** Set of Properties attached to the main container */
42
- containerProps: import_ds_props_helpers.PropTypes.object.description("Set of Properties attached to the main container"),
43
- /** native tabindex property to handle focus order */
44
- tabIndex: import_ds_props_helpers.PropTypes.number.description("native tabindex property to handle focus order"),
45
- /** disable component */
46
- disabled: import_ds_props_helpers.PropTypes.bool.description("disable component"),
47
- /** input value */
48
- value: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.object]).description("input value").isRequired,
49
- /** function called on blur */
50
- onBlur: import_ds_props_helpers.PropTypes.func.description("function called on blur"),
51
- /** function called on change */
52
- onChange: import_ds_props_helpers.PropTypes.func.description("function called on change"),
53
- /** options to display */
54
- options: import_ds_props_helpers.PropTypes.arrayOf(
55
- import_ds_props_helpers.PropTypes.shape({
56
- label: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number]),
57
- value: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number])
58
- })
59
- ).description("options to display"),
60
- /** placeholder value */
61
- placeholder: import_ds_props_helpers.PropTypes.string.description("placeholder value"),
62
- /** format mask to apply */
63
- mask: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.any).description("format mask to apply"),
64
- /** function called onsearch */
65
- onSearch: import_ds_props_helpers.PropTypes.func.description("function called onsearch"),
66
- /** Correction messange */
67
- selectRightOptions: import_ds_props_helpers.PropTypes.string.description("Correction messange"),
68
- /** current amount */
69
- activeCount: import_ds_props_helpers.PropTypes.number.description("current amount")
70
- };
71
- const defaultProps = {
72
- disabled: false,
73
- value: "",
74
- placeholder: "_____-____",
75
- mask: import_ds_form.MASK_TYPES.ZIP_CODE_SEARCH,
76
- onBlur: () => null,
77
- onChange: () => null,
78
- onSearch: () => null,
79
- containerProps: {},
80
- selectRightOptions: "Please select the appropriate city",
81
- activeCount: 5,
82
- options: []
83
- };
84
- //# sourceMappingURL=props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { MASK_TYPES } from '@elliemae/ds-form';\n\nexport const zipcodeSearchProps = {\n /** html class attribute */\n className: PropTypes.string.description('html class attribute'),\n /** Set of Properties attached to the main container */\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n /** native tabindex property to handle focus order */\n tabIndex: PropTypes.number.description('native tabindex property to handle focus order'),\n /** disable component */\n disabled: PropTypes.bool.description('disable component'),\n /** input value */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description('input value')\n .isRequired,\n /** function called on blur */\n onBlur: PropTypes.func.description('function called on blur'),\n /** function called on change */\n onChange: PropTypes.func.description('function called on change'),\n /** options to display */\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n }),\n ).description('options to display'),\n /** placeholder value */\n placeholder: PropTypes.string.description('placeholder value'),\n /** format mask to apply */\n mask: PropTypes.arrayOf(PropTypes.any).description('format mask to apply'),\n /** function called onsearch */\n onSearch: PropTypes.func.description('function called onsearch'),\n /** Correction messange */\n selectRightOptions: PropTypes.string.description('Correction messange'),\n /** current amount */\n activeCount: PropTypes.number.description('current amount'),\n};\n\nexport const defaultProps = {\n disabled: false,\n value: '',\n placeholder: '_____-____',\n mask: MASK_TYPES.ZIP_CODE_SEARCH,\n onBlur: () => null,\n onChange: () => null,\n onSearch: () => null,\n containerProps: {},\n selectRightOptions: 'Please select the appropriate city',\n activeCount: 5,\n options: [],\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YA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AA,EACjB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,SAAS,CAAC;AACZ;",
6
- "names": []
7
- }
@@ -1,113 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useState, useEffect, useRef, useCallback } from "react";
4
- import { describe } from "@elliemae/ds-props-helpers";
5
- import DSDropdownMenu from "@elliemae/ds-dropdownmenu";
6
- import { DSInputMask } from "@elliemae/ds-form";
7
- import { InputSearchWrapper } from "./components/blocks.js";
8
- import { createDisabledOption, noAddonOptions } from "./components/helper.js";
9
- import { zipcodeSearchProps, defaultProps } from "./props.js";
10
- const DSZipCodeSearch = ({
11
- disabled,
12
- value,
13
- placeholder,
14
- mask,
15
- onBlur,
16
- onChange,
17
- onSearch,
18
- containerProps,
19
- selectRightOptions,
20
- activeCount,
21
- options,
22
- tabIndex
23
- }) => {
24
- const ref = useRef(null);
25
- const [searchValue, setSearchValue] = useState(String(value));
26
- const [isOpen, setIsOpen] = useState(false);
27
- const [isActive, setIsActive] = useState(false);
28
- const [isInputFocus, setIsInputFocus] = useState(false);
29
- const [isSelected, setIsSelected] = useState(false);
30
- useEffect(() => {
31
- if (isInputFocus && activeCount <= searchValue.length && !isSelected) {
32
- setIsOpen(true);
33
- setIsActive(true);
34
- } else if (!isActive || activeCount > searchValue.length) {
35
- setIsOpen(false);
36
- }
37
- }, [isInputFocus, isActive, activeCount, searchValue, isSelected]);
38
- useEffect(() => {
39
- setSearchValue(String(value) || "");
40
- }, [value]);
41
- const onTypeInInput = useCallback(
42
- (e) => {
43
- const finalVal = e.target.value;
44
- onSearch(finalVal);
45
- setSearchValue(finalVal);
46
- setIsSelected(false);
47
- },
48
- [onSearch]
49
- );
50
- const onFocusInput = useCallback(() => {
51
- setIsInputFocus(true);
52
- }, []);
53
- const onInnerBlur = useCallback(
54
- (e) => {
55
- setIsInputFocus(false);
56
- onBlur(e);
57
- },
58
- [onBlur]
59
- );
60
- const onClose = useCallback(() => {
61
- setIsActive(false);
62
- }, []);
63
- const onSelectItem = useCallback(
64
- (item) => {
65
- setSearchValue(item.value);
66
- onChange(item);
67
- setIsSelected(true);
68
- ref.current.focus();
69
- setIsOpen(false);
70
- onClose();
71
- },
72
- [onChange, onClose]
73
- );
74
- return /* @__PURE__ */ jsx(InputSearchWrapper, { ...containerProps, children: /* @__PURE__ */ jsx(
75
- DSDropdownMenu,
76
- {
77
- isOpen: isOpen && options.length > 0,
78
- menuProps: { className: "input-search-menu" },
79
- onClose,
80
- onSelectMenuItem: onSelectItem,
81
- contentStyle: {
82
- maxHeight: 200
83
- },
84
- options: options.length > 0 ? [createDisabledOption(selectRightOptions), ...noAddonOptions(options)] : [],
85
- triggerComponent: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
86
- DSInputMask,
87
- {
88
- disabled,
89
- innerRef: (_ref) => ref.current = _ref,
90
- mask,
91
- onBlur: onInnerBlur,
92
- onChange: onTypeInInput,
93
- onFocus: onFocusInput,
94
- placeholder,
95
- value: searchValue,
96
- tabIndex
97
- }
98
- ) })
99
- }
100
- ) });
101
- };
102
- DSZipCodeSearch.propTypes = zipcodeSearchProps;
103
- DSZipCodeSearch.defaultProps = defaultProps;
104
- DSZipCodeSearch.displayName = "DSZipCodeSearch";
105
- const ZipCodeSearchWithSchema = describe(DSZipCodeSearch);
106
- ZipCodeSearchWithSchema.propTypes = zipcodeSearchProps;
107
- var DSZipCodeSearch_default = DSZipCodeSearch;
108
- export {
109
- DSZipCodeSearch,
110
- ZipCodeSearchWithSchema,
111
- DSZipCodeSearch_default as default
112
- };
113
- //# sourceMappingURL=DSZipCodeSearch.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSZipCodeSearch.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-useless-escape */\n/* eslint-disable max-lines */\n/* eslint-disable indent */\nimport React, { useState, useEffect, useRef, useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { DSInputMask } from '@elliemae/ds-form';\nimport { InputSearchWrapper } from './components/blocks.js';\nimport { createDisabledOption, noAddonOptions } from './components/helper.js';\nimport { zipcodeSearchProps, defaultProps } from './props.js';\n\nconst DSZipCodeSearch = ({\n disabled,\n value,\n placeholder,\n mask,\n onBlur,\n onChange,\n onSearch,\n containerProps,\n selectRightOptions,\n activeCount,\n options,\n tabIndex,\n}) => {\n const ref = useRef(null);\n const [searchValue, setSearchValue] = useState(String(value));\n const [isOpen, setIsOpen] = useState(false);\n const [isActive, setIsActive] = useState(false);\n const [isInputFocus, setIsInputFocus] = useState(false);\n const [isSelected, setIsSelected] = useState(false);\n\n useEffect(() => {\n if (isInputFocus && activeCount <= searchValue.length && !isSelected) {\n setIsOpen(true);\n setIsActive(true);\n } else if (!isActive || activeCount > searchValue.length) {\n setIsOpen(false);\n }\n }, [isInputFocus, isActive, activeCount, searchValue, isSelected]);\n useEffect(() => {\n setSearchValue(String(value) || '');\n }, [value]);\n\n const onTypeInInput = useCallback(\n (e) => {\n const finalVal = e.target.value;\n onSearch(finalVal);\n setSearchValue(finalVal);\n setIsSelected(false);\n },\n [onSearch],\n );\n\n const onFocusInput = useCallback(() => {\n setIsInputFocus(true);\n }, []);\n\n const onInnerBlur = useCallback(\n (e) => {\n setIsInputFocus(false);\n onBlur(e);\n },\n [onBlur],\n );\n const onClose = useCallback(() => {\n setIsActive(false);\n }, []);\n const onSelectItem = useCallback(\n (item) => {\n setSearchValue(item.value);\n onChange(item);\n setIsSelected(true);\n ref.current.focus();\n setIsOpen(false);\n onClose();\n },\n [onChange, onClose],\n );\n\n return (\n <InputSearchWrapper {...containerProps}>\n <DSDropdownMenu\n isOpen={isOpen && options.length > 0}\n menuProps={{ className: 'input-search-menu' }}\n onClose={onClose}\n onSelectMenuItem={onSelectItem}\n contentStyle={{\n maxHeight: 200,\n }}\n options={options.length > 0 ? [createDisabledOption(selectRightOptions), ...noAddonOptions(options)] : []}\n triggerComponent={\n <div>\n <DSInputMask\n disabled={disabled}\n innerRef={(_ref) => (ref.current = _ref)}\n mask={mask}\n onBlur={onInnerBlur}\n onChange={onTypeInInput}\n onFocus={onFocusInput}\n placeholder={placeholder}\n value={searchValue}\n tabIndex={tabIndex}\n />\n </div>\n }\n />\n </InputSearchWrapper>\n );\n};\n\nDSZipCodeSearch.propTypes = zipcodeSearchProps;\n\nDSZipCodeSearch.defaultProps = defaultProps;\nDSZipCodeSearch.displayName = 'DSZipCodeSearch';\nconst ZipCodeSearchWithSchema = describe(DSZipCodeSearch);\nZipCodeSearchWithSchema.propTypes = zipcodeSearchProps;\n\nexport { DSZipCodeSearch, ZipCodeSearchWithSchema };\nexport default DSZipCodeSearch;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC6FX;AA1FZ,SAAgB,UAAU,WAAW,QAAQ,mBAAmB;AAChE,SAAS,gBAAgB;AACzB,OAAO,oBAAoB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,sBAAsB;AACrD,SAAS,oBAAoB,oBAAoB;AAEjD,MAAM,kBAAkB,CAAC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,MAAM,OAAO,IAAI;AACvB,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,OAAO,KAAK,CAAC;AAC5D,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,cAAc,eAAe,IAAI,SAAS,KAAK;AACtD,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAElD,YAAU,MAAM;AACd,QAAI,gBAAgB,eAAe,YAAY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AAG,GAAG,eAAe,OAAO,CAAC,IAAI,CAAC;AAAA,MACxG,kBACE,oBAAC,SACC;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,UAAU,CAAC,SAAU,IAAI,UAAU;AAAA,UACnC;AAAA,UACA,QAAQ;AAAA,UACR,UAAU;AAAA,UACV,SAAS;AAAA,UACT;AAAA,UACA,OAAO;AAAA,UACP;AAAA;AAAA,MACF,GACF;AAAA;AAAA,EAEJ,GACF;AAEJ;AAEA,gBAAgB,YAAY;AAE5B,gBAAgB,eAAe;AAC/B,gBAAgB,cAAc;AAC9B,MAAM,0BAA0B,SAAS,eAAe;AACxD,wBAAwB,YAAY;AAGpC,IAAO,0BAAQ;",
6
- "names": []
7
- }
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import { aggregatedClasses } from "@elliemae/ds-classnames";
3
- const blockName = "input-search";
4
- const InputSearchWrapper = aggregatedClasses("div")(blockName);
5
- export {
6
- InputSearchWrapper
7
- };
8
- //# sourceMappingURL=blocks.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/blocks.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'input-search';\n\nexport const InputSearchWrapper = aggregatedClasses('div')(blockName);\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,yBAAyB;AAElC,MAAM,YAAY;AAEX,MAAM,qBAAqB,kBAAkB,KAAK,EAAE,SAAS;",
6
- "names": []
7
- }
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- function createDisabledOption(label) {
3
- return {
4
- id: "no-option",
5
- type: "disabled",
6
- label,
7
- noAddon: true,
8
- "aria-disabled": true,
9
- className: "no-options",
10
- tabIndex: -1
11
- };
12
- }
13
- function noAddonOptions(options) {
14
- return options.map((op) => ({ ...op, noAddon: true }));
15
- }
16
- export {
17
- createDisabledOption,
18
- noAddonOptions
19
- };
20
- //# sourceMappingURL=helper.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/helper.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export function createDisabledOption(label) {\n return {\n id: 'no-option',\n type: 'disabled',\n label,\n noAddon: true,\n 'aria-disabled': true,\n className: 'no-options',\n tabIndex: -1,\n };\n}\n\nexport function noAddonOptions(options) {\n return options.map((op) => ({ ...op, noAddon: true }));\n}\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,SAAS,qBAAqB,OAAO;AAC1C,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,UAAU;AAAA,EACZ;AACF;AAEO,SAAS,eAAe,SAAS;AACtC,SAAO,QAAQ,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,SAAS,KAAK,EAAE;AACvD;",
6
- "names": []
7
- }
package/dist/esm/props.js DELETED
@@ -1,54 +0,0 @@
1
- import * as React from "react";
2
- import { PropTypes } from "@elliemae/ds-props-helpers";
3
- import { MASK_TYPES } from "@elliemae/ds-form";
4
- const zipcodeSearchProps = {
5
- /** html class attribute */
6
- className: PropTypes.string.description("html class attribute"),
7
- /** Set of Properties attached to the main container */
8
- containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
9
- /** native tabindex property to handle focus order */
10
- tabIndex: PropTypes.number.description("native tabindex property to handle focus order"),
11
- /** disable component */
12
- disabled: PropTypes.bool.description("disable component"),
13
- /** input value */
14
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description("input value").isRequired,
15
- /** function called on blur */
16
- onBlur: PropTypes.func.description("function called on blur"),
17
- /** function called on change */
18
- onChange: PropTypes.func.description("function called on change"),
19
- /** options to display */
20
- options: PropTypes.arrayOf(
21
- PropTypes.shape({
22
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
23
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
24
- })
25
- ).description("options to display"),
26
- /** placeholder value */
27
- placeholder: PropTypes.string.description("placeholder value"),
28
- /** format mask to apply */
29
- mask: PropTypes.arrayOf(PropTypes.any).description("format mask to apply"),
30
- /** function called onsearch */
31
- onSearch: PropTypes.func.description("function called onsearch"),
32
- /** Correction messange */
33
- selectRightOptions: PropTypes.string.description("Correction messange"),
34
- /** current amount */
35
- activeCount: PropTypes.number.description("current amount")
36
- };
37
- const defaultProps = {
38
- disabled: false,
39
- value: "",
40
- placeholder: "_____-____",
41
- mask: MASK_TYPES.ZIP_CODE_SEARCH,
42
- onBlur: () => null,
43
- onChange: () => null,
44
- onSearch: () => null,
45
- containerProps: {},
46
- selectRightOptions: "Please select the appropriate city",
47
- activeCount: 5,
48
- options: []
49
- };
50
- export {
51
- defaultProps,
52
- zipcodeSearchProps
53
- };
54
- //# sourceMappingURL=props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { MASK_TYPES } from '@elliemae/ds-form';\n\nexport const zipcodeSearchProps = {\n /** html class attribute */\n className: PropTypes.string.description('html class attribute'),\n /** Set of Properties attached to the main container */\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n /** native tabindex property to handle focus order */\n tabIndex: PropTypes.number.description('native tabindex property to handle focus order'),\n /** disable component */\n disabled: PropTypes.bool.description('disable component'),\n /** input value */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description('input value')\n .isRequired,\n /** function called on blur */\n onBlur: PropTypes.func.description('function called on blur'),\n /** function called on change */\n onChange: PropTypes.func.description('function called on change'),\n /** options to display */\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n }),\n ).description('options to display'),\n /** placeholder value */\n placeholder: PropTypes.string.description('placeholder value'),\n /** format mask to apply */\n mask: PropTypes.arrayOf(PropTypes.any).description('format mask to apply'),\n /** function called onsearch */\n onSearch: PropTypes.func.description('function called onsearch'),\n /** Correction messange */\n selectRightOptions: PropTypes.string.description('Correction messange'),\n /** current amount */\n activeCount: PropTypes.number.description('current amount'),\n};\n\nexport const defaultProps = {\n disabled: false,\n value: '',\n placeholder: '_____-____',\n mask: MASK_TYPES.ZIP_CODE_SEARCH,\n onBlur: () => null,\n onChange: () => null,\n onSearch: () => null,\n containerProps: {},\n selectRightOptions: 'Please select the appropriate city',\n activeCount: 5,\n options: [],\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAEpB,MAAM,qBAAqB;AAAA;AAAA,EAEhC,WAAW,UAAU,OAAO,YAAY,sBAAsB;AAAA;AAAA,EAE9D,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA;AAAA,EAE/F,UAAU,UAAU,OAAO,YAAY,gDAAgD;AAAA;AAAA,EAEvF,UAAU,UAAU,KAAK,YAAY,mBAAmB;AAAA;AAAA,EAExD,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,aAAa,EACzG;AAAA;AAAA,EAEH,QAAQ,UAAU,KAAK,YAAY,yBAAyB;AAAA;AAAA,EAE5D,UAAU,UAAU,KAAK,YAAY,2BAA2B;AAAA;AAAA,EAEhE,SAAS,UAAU;AAAA,IACjB,UAAU,MAAM;AAAA,MACd,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AAAA,MAC/D,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AAAA,IACjE,CAAC;AAAA,EACH,EAAE,YAAY,oBAAoB;AAAA;AAAA,EAElC,aAAa,UAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA,EAE7D,MAAM,UAAU,QAAQ,UAAU,GAAG,EAAE,YAAY,sBAAsB;AAAA;AAAA,EAEzE,UAAU,UAAU,KAAK,YAAY,0BAA0B;AAAA;AAAA,EAE/D,oBAAoB,UAAU,OAAO,YAAY,qBAAqB;AAAA;AAAA,EAEtE,aAAa,UAAU,OAAO,YAAY,gBAAgB;AAC5D;AAEO,MAAM,eAAe;AAAA,EAC1B,UAAU;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM,WAAW;AAAA,EACjB,QAAQ,MAAM;AAAA,EACd,UAAU,MAAM;AAAA,EAChB,UAAU,MAAM;AAAA,EAChB,gBAAgB,CAAC;AAAA,EACjB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,SAAS,CAAC;AACZ;",
6
- "names": []
7
- }
@@ -1,61 +0,0 @@
1
- declare const DSZipCodeSearch: {
2
- ({ disabled, value, placeholder, mask, onBlur, onChange, onSearch, containerProps, selectRightOptions, activeCount, options, tabIndex, }: {
3
- disabled: any;
4
- value: any;
5
- placeholder: any;
6
- mask: any;
7
- onBlur: any;
8
- onChange: any;
9
- onSearch: any;
10
- containerProps: any;
11
- selectRightOptions: any;
12
- activeCount: any;
13
- options: any;
14
- tabIndex: any;
15
- }): import("react/jsx-runtime.js").JSX.Element;
16
- propTypes: {
17
- className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
18
- containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
19
- tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
20
- disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
21
- value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
22
- onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
23
- onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
24
- options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
25
- placeholder: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
- mask: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
27
- onSearch: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
28
- selectRightOptions: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
29
- activeCount: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
- };
31
- defaultProps: {
32
- disabled: boolean;
33
- value: string;
34
- placeholder: string;
35
- mask: string;
36
- onBlur: () => null;
37
- onChange: () => null;
38
- onSearch: () => null;
39
- containerProps: {};
40
- selectRightOptions: string;
41
- activeCount: number;
42
- options: never[];
43
- };
44
- displayName: string;
45
- };
46
- declare const ZipCodeSearchWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
47
- disabled: any;
48
- value: any;
49
- placeholder: any;
50
- mask: any;
51
- onBlur: any;
52
- onChange: any;
53
- onSearch: any;
54
- containerProps: any;
55
- selectRightOptions: any;
56
- activeCount: any;
57
- options: any;
58
- tabIndex: any;
59
- }>;
60
- export { DSZipCodeSearch, ZipCodeSearchWithSchema };
61
- export default DSZipCodeSearch;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const InputSearchWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -1,10 +0,0 @@
1
- export declare function createDisabledOption(label: any): {
2
- id: string;
3
- type: string;
4
- label: any;
5
- noAddon: boolean;
6
- 'aria-disabled': boolean;
7
- className: string;
8
- tabIndex: number;
9
- };
10
- export declare function noAddonOptions(options: any): any;
@@ -1,41 +0,0 @@
1
- export declare const zipcodeSearchProps: {
2
- /** html class attribute */
3
- className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
4
- /** Set of Properties attached to the main container */
5
- containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
6
- /** native tabindex property to handle focus order */
7
- tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
8
- /** disable component */
9
- disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
10
- /** input value */
11
- value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
12
- /** function called on blur */
13
- onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
14
- /** function called on change */
15
- onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
16
- /** options to display */
17
- options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
18
- /** placeholder value */
19
- placeholder: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
20
- /** format mask to apply */
21
- mask: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
22
- /** function called onsearch */
23
- onSearch: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
24
- /** Correction messange */
25
- selectRightOptions: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
26
- /** current amount */
27
- activeCount: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
28
- };
29
- export declare const defaultProps: {
30
- disabled: boolean;
31
- value: string;
32
- placeholder: string;
33
- mask: string;
34
- onBlur: () => null;
35
- onChange: () => null;
36
- onSearch: () => null;
37
- containerProps: {};
38
- selectRightOptions: string;
39
- activeCount: number;
40
- options: never[];
41
- };
@@ -1 +0,0 @@
1
- export {};