@elliemae/ds-number-range-field 3.1.0-next.1 → 3.1.0-next.4
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.
|
@@ -27,7 +27,7 @@ __export(DSNumberRangeField_exports, {
|
|
|
27
27
|
module.exports = __toCommonJS(DSNumberRangeField_exports);
|
|
28
28
|
var React = __toESM(require("react"));
|
|
29
29
|
var import_react = __toESM(require("react"));
|
|
30
|
-
var
|
|
30
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
31
31
|
var import_NumberRangeFieldImpl = __toESM(require("./impl/NumberRangeFieldImpl"));
|
|
32
32
|
const DSNumberRangeField = ({
|
|
33
33
|
containerProps = {},
|
|
@@ -61,24 +61,24 @@ const DSNumberRangeField = ({
|
|
|
61
61
|
type
|
|
62
62
|
});
|
|
63
63
|
const numberRangeFieldProps = {
|
|
64
|
-
containerProps:
|
|
65
|
-
maxFrom:
|
|
66
|
-
minFrom:
|
|
67
|
-
maxTo:
|
|
68
|
-
minTo:
|
|
69
|
-
onChange:
|
|
70
|
-
placeholderFrom:
|
|
71
|
-
placeholderTo:
|
|
72
|
-
stepFrom:
|
|
73
|
-
stepTo:
|
|
74
|
-
value:
|
|
75
|
-
separator:
|
|
76
|
-
maskOptions:
|
|
77
|
-
type:
|
|
64
|
+
containerProps: import_ds_utilities.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
65
|
+
maxFrom: import_ds_utilities.PropTypes.number.description("Maximum number accepted in `From` field").defaultValue(null),
|
|
66
|
+
minFrom: import_ds_utilities.PropTypes.number.description("Minimum number accepted in `From` field").defaultValue(0),
|
|
67
|
+
maxTo: import_ds_utilities.PropTypes.number.description("Maximum number accepted in `To` field").defaultValue(null),
|
|
68
|
+
minTo: import_ds_utilities.PropTypes.number.description("Minimum number accepted in `To` field").defaultValue(0),
|
|
69
|
+
onChange: import_ds_utilities.PropTypes.func.description("Function executed when the value on the fields changes"),
|
|
70
|
+
placeholderFrom: import_ds_utilities.PropTypes.string.description("Placeholder value for the `From` field").defaultValue("From"),
|
|
71
|
+
placeholderTo: import_ds_utilities.PropTypes.string.description("Placeholder value for the `To` field").defaultValue("To"),
|
|
72
|
+
stepFrom: import_ds_utilities.PropTypes.number.description("Amount of units the `From` field value increases/decreases"),
|
|
73
|
+
stepTo: import_ds_utilities.PropTypes.number.description("Amount of units the `To` field value increases/decreases"),
|
|
74
|
+
value: import_ds_utilities.PropTypes.shape([import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.number]).description("Array with the values of both fields"),
|
|
75
|
+
separator: import_ds_utilities.PropTypes.string.description("Character that separates fields").defaultValue("-"),
|
|
76
|
+
maskOptions: import_ds_utilities.PropTypes.object.description("Object with mask configurations"),
|
|
77
|
+
type: import_ds_utilities.PropTypes.string.description("Type of input")
|
|
78
78
|
};
|
|
79
79
|
DSNumberRangeField.propTypes = numberRangeFieldProps;
|
|
80
80
|
DSNumberRangeField.displayName = "DSNumberRangeField";
|
|
81
|
-
const NumberRangeFieldWithSchema = (0,
|
|
81
|
+
const NumberRangeFieldWithSchema = (0, import_ds_utilities.describe)(DSNumberRangeField);
|
|
82
82
|
NumberRangeFieldWithSchema.propTypes = numberRangeFieldProps;
|
|
83
83
|
var DSNumberRangeField_default = DSNumberRangeField;
|
|
84
84
|
//# sourceMappingURL=DSNumberRangeField.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSNumberRangeField.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n maxFrom: PropTypes.number\n .description('Maximum number accepted in `From` field')\n .defaultValue(null),\n minFrom: PropTypes.number\n .description('Minimum number accepted in `From` field')\n .defaultValue(0),\n maxTo: PropTypes.number\n .description('Maximum number accepted in `To` field')\n .defaultValue(null),\n minTo: PropTypes.number\n .description('Minimum number accepted in `To` field')\n .defaultValue(0),\n onChange: PropTypes.func.description(\n 'Function executed when the value on the fields changes',\n ),\n placeholderFrom: PropTypes.string\n .description('Placeholder value for the `From` field')\n .defaultValue('From'),\n placeholderTo: PropTypes.string\n .description('Placeholder value for the `To` field')\n .defaultValue('To'),\n stepFrom: PropTypes.number.description(\n 'Amount of units the `From` field value increases/decreases',\n ),\n stepTo: PropTypes.number.description(\n 'Amount of units the `To` field value increases/decreases',\n ),\n value: PropTypes.shape([PropTypes.number, PropTypes.number]).description(\n 'Array with the values of both fields',\n ),\n separator: PropTypes.string\n .description('Character that separates fields')\n .defaultValue('-'),\n maskOptions: PropTypes.object.description('Object with mask configurations'),\n type: PropTypes.string.description('Type of input'),\n};\n\nDSNumberRangeField.propTypes = numberRangeFieldProps;\nDSNumberRangeField.displayName = 'DSNumberRangeField';\nconst NumberRangeFieldWithSchema = describe(DSNumberRangeField);\nNumberRangeFieldWithSchema.propTypes = numberRangeFieldProps;\n\nexport { NumberRangeFieldWithSchema, DSNumberRangeField };\nexport default DSNumberRangeField;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,kCAAiC;AAEjC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,iBAAiB,CAAC;AAAA,EAClB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW,MAAM;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAC;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,MAEA,mDAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,gBAAgB,8BAAU,OAAO,YAC/B,kDACF;AAAA,EACA,SAAS,8BAAU,OAChB,YAAY,yCAAyC,EACrD,aAAa,IAAI;AAAA,EACpB,SAAS,8BAAU,OAChB,YAAY,yCAAyC,EACrD,aAAa,CAAC;AAAA,EACjB,OAAO,8BAAU,OACd,YAAY,uCAAuC,EACnD,aAAa,IAAI;AAAA,EACpB,OAAO,8BAAU,OACd,YAAY,uCAAuC,EACnD,aAAa,CAAC;AAAA,EACjB,UAAU,8BAAU,KAAK,YACvB,wDACF;AAAA,EACA,iBAAiB,8BAAU,OACxB,YAAY,wCAAwC,EACpD,aAAa,MAAM;AAAA,EACtB,eAAe,8BAAU,OACtB,YAAY,sCAAsC,EAClD,aAAa,IAAI;AAAA,EACpB,UAAU,8BAAU,OAAO,YACzB,4DACF;AAAA,EACA,QAAQ,8BAAU,OAAO,YACvB,0DACF;AAAA,EACA,OAAO,8BAAU,MAAM,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE,YAC3D,sCACF;AAAA,EACA,WAAW,8BAAU,OAClB,YAAY,iCAAiC,EAC7C,aAAa,GAAG;AAAA,EACnB,aAAa,8BAAU,OAAO,YAAY,iCAAiC;AAAA,EAC3E,MAAM,8BAAU,OAAO,YAAY,eAAe;AACpD;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,kCAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React2 from "react";
|
|
3
|
-
import { describe, PropTypes } from "
|
|
3
|
+
import { describe, PropTypes } from "@elliemae/ds-utilities";
|
|
4
4
|
import NumberRangeFieldImpl from "./impl/NumberRangeFieldImpl";
|
|
5
5
|
const DSNumberRangeField = ({
|
|
6
6
|
containerProps = {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSNumberRangeField.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n maxFrom: PropTypes.number\n .description('Maximum number accepted in `From` field')\n .defaultValue(null),\n minFrom: PropTypes.number\n .description('Minimum number accepted in `From` field')\n .defaultValue(0),\n maxTo: PropTypes.number\n .description('Maximum number accepted in `To` field')\n .defaultValue(null),\n minTo: PropTypes.number\n .description('Minimum number accepted in `To` field')\n .defaultValue(0),\n onChange: PropTypes.func.description(\n 'Function executed when the value on the fields changes',\n ),\n placeholderFrom: PropTypes.string\n .description('Placeholder value for the `From` field')\n .defaultValue('From'),\n placeholderTo: PropTypes.string\n .description('Placeholder value for the `To` field')\n .defaultValue('To'),\n stepFrom: PropTypes.number.description(\n 'Amount of units the `From` field value increases/decreases',\n ),\n stepTo: PropTypes.number.description(\n 'Amount of units the `To` field value increases/decreases',\n ),\n value: PropTypes.shape([PropTypes.number, PropTypes.number]).description(\n 'Array with the values of both fields',\n ),\n separator: PropTypes.string\n .description('Character that separates fields')\n .defaultValue('-'),\n maskOptions: PropTypes.object.description('Object with mask configurations'),\n type: PropTypes.string.description('Type of input'),\n};\n\nDSNumberRangeField.propTypes = numberRangeFieldProps;\nDSNumberRangeField.displayName = 'DSNumberRangeField';\nconst NumberRangeFieldWithSchema = describe(DSNumberRangeField);\nNumberRangeFieldWithSchema.propTypes = numberRangeFieldProps;\n\nexport { NumberRangeFieldWithSchema, DSNumberRangeField };\nexport default DSNumberRangeField;\n"],
|
|
5
5
|
"mappings": "AAAA;ACAA;AACA;AACA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AA,EAC3E,MAAM,UAAU,OAAO,YAAY,eAAe;AACpD;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,SAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-number-range-field",
|
|
3
|
-
"version": "3.1.0-next.
|
|
3
|
+
"version": "3.1.0-next.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Number Range Field",
|
|
6
6
|
"files": [
|
|
@@ -42,18 +42,10 @@
|
|
|
42
42
|
"reportFile": "tests.xml",
|
|
43
43
|
"indent": 4
|
|
44
44
|
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
47
|
-
"test": "node ../../scripts/testing/test.mjs",
|
|
48
|
-
"lint": "node ../../scripts/lint.mjs",
|
|
49
|
-
"dts": "node ../../scripts/dts.mjs",
|
|
50
|
-
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
51
|
-
},
|
|
52
45
|
"dependencies": {
|
|
53
|
-
"@elliemae/ds-classnames": "3.1.0-next.
|
|
54
|
-
"@elliemae/ds-form": "3.1.0-next.
|
|
55
|
-
"@elliemae/ds-
|
|
56
|
-
"react-desc": "~4.1.3"
|
|
46
|
+
"@elliemae/ds-classnames": "3.1.0-next.4",
|
|
47
|
+
"@elliemae/ds-form": "3.1.0-next.4",
|
|
48
|
+
"@elliemae/ds-utilities": "3.1.0-next.4"
|
|
57
49
|
},
|
|
58
50
|
"peerDependencies": {
|
|
59
51
|
"lodash": "^4.17.21",
|
|
@@ -63,5 +55,13 @@
|
|
|
63
55
|
"publishConfig": {
|
|
64
56
|
"access": "public",
|
|
65
57
|
"typeSafety": false
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
61
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
62
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
63
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
64
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
65
|
+
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|