@elliemae/ds-form-multi-combobox 3.60.0-next.6 → 3.60.0-next.60
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/MultiCombobox.js +4 -9
- package/dist/cjs/MultiCombobox.js.map +3 -3
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/MultiCombobox.js +5 -10
- package/dist/esm/MultiCombobox.js.map +3 -3
- package/dist/esm/index.js.map +2 -2
- package/dist/types/MultiCombobox.d.ts +3 -3
- package/dist/types/index.d.ts +1 -0
- package/package.json +23 -25
|
@@ -34,22 +34,17 @@ __export(MultiCombobox_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(MultiCombobox_exports);
|
|
35
35
|
var React = __toESM(require("react"));
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
37
|
var import_ds_form_combobox = require("@elliemae/ds-form-combobox");
|
|
38
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
39
39
|
const DSMultiComboBox = (props) => {
|
|
40
|
-
const { selectedValues
|
|
41
|
-
if (!Array.isArray(
|
|
40
|
+
const { selectedValues } = props;
|
|
41
|
+
if (!Array.isArray(selectedValues))
|
|
42
42
|
throw new Error(
|
|
43
43
|
"DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead."
|
|
44
44
|
);
|
|
45
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form_combobox.DSComboBox, { ...props });
|
|
46
46
|
};
|
|
47
|
-
const { selectedValues, ...restComboBoxPropTypes } = import_ds_form_combobox.ComboboxPropTypes;
|
|
48
|
-
const MultiComboboxPropTypes = {
|
|
49
|
-
...restComboBoxPropTypes,
|
|
50
|
-
selectedValues: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("Array of selected options").isRequired
|
|
51
|
-
};
|
|
52
47
|
DSMultiComboBox.displayName = "DSMultiComboBox";
|
|
53
48
|
const DSMultiComboBoxWithSchema = (0, import_ds_props_helpers.describe)(DSMultiComboBox);
|
|
54
|
-
DSMultiComboBoxWithSchema.propTypes =
|
|
49
|
+
DSMultiComboBoxWithSchema.propTypes = import_ds_form_combobox.multiComboboxPropTypesSchema;
|
|
55
50
|
//# sourceMappingURL=MultiCombobox.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/MultiCombobox.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable no-unused-vars */\nimport
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYd;
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-unused-vars */\nimport { DSComboBox, multiComboboxPropTypesSchema, type DSComboboxMultiT } from '@elliemae/ds-form-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nconst DSMultiComboBox: React.ComponentType<DSComboboxMultiT.Props> = (props) => {\n const { selectedValues } = props;\n\n if (!Array.isArray(selectedValues))\n throw new Error(\n 'DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead.',\n );\n return <DSComboBox {...props} />;\n};\n\nDSMultiComboBox.displayName = 'DSMultiComboBox';\nconst DSMultiComboBoxWithSchema = describe(DSMultiComboBox);\n\nDSMultiComboBoxWithSchema.propTypes = multiComboboxPropTypesSchema;\n\nexport { DSMultiComboBox, DSMultiComboBoxWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYd;AAXT,8BAAgF;AAChF,8BAAyB;AAGzB,MAAM,kBAA+D,CAAC,UAAU;AAC9E,QAAM,EAAE,eAAe,IAAI;AAE3B,MAAI,CAAC,MAAM,QAAQ,cAAc;AAC/B,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AACF,SAAO,4CAAC,sCAAY,GAAG,OAAO;AAChC;AAEA,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,kCAAS,eAAe;AAE1D,0BAA0B,YAAY;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export * from './MultiCombobox.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["export type { DSComboboxMultiT } from '@elliemae/ds-form-combobox';\nexport * from './MultiCombobox.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAc,+BADd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DSComboBox, multiComboboxPropTypesSchema } from "@elliemae/ds-form-combobox";
|
|
4
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
5
5
|
const DSMultiComboBox = (props) => {
|
|
6
|
-
const { selectedValues
|
|
7
|
-
if (!Array.isArray(
|
|
6
|
+
const { selectedValues } = props;
|
|
7
|
+
if (!Array.isArray(selectedValues))
|
|
8
8
|
throw new Error(
|
|
9
9
|
"DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead."
|
|
10
10
|
);
|
|
11
11
|
return /* @__PURE__ */ jsx(DSComboBox, { ...props });
|
|
12
12
|
};
|
|
13
|
-
const { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;
|
|
14
|
-
const MultiComboboxPropTypes = {
|
|
15
|
-
...restComboBoxPropTypes,
|
|
16
|
-
selectedValues: PropTypes.arrayOf(PropTypes.object).description("Array of selected options").isRequired
|
|
17
|
-
};
|
|
18
13
|
DSMultiComboBox.displayName = "DSMultiComboBox";
|
|
19
14
|
const DSMultiComboBoxWithSchema = describe(DSMultiComboBox);
|
|
20
|
-
DSMultiComboBoxWithSchema.propTypes =
|
|
15
|
+
DSMultiComboBoxWithSchema.propTypes = multiComboboxPropTypesSchema;
|
|
21
16
|
export {
|
|
22
17
|
DSMultiComboBox,
|
|
23
18
|
DSMultiComboBoxWithSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/MultiCombobox.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACYd;
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport { DSComboBox, multiComboboxPropTypesSchema, type DSComboboxMultiT } from '@elliemae/ds-form-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nconst DSMultiComboBox: React.ComponentType<DSComboboxMultiT.Props> = (props) => {\n const { selectedValues } = props;\n\n if (!Array.isArray(selectedValues))\n throw new Error(\n 'DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead.',\n );\n return <DSComboBox {...props} />;\n};\n\nDSMultiComboBox.displayName = 'DSMultiComboBox';\nconst DSMultiComboBoxWithSchema = describe(DSMultiComboBox);\n\nDSMultiComboBoxWithSchema.propTypes = multiComboboxPropTypesSchema;\n\nexport { DSMultiComboBox, DSMultiComboBoxWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACYd;AAXT,SAAS,YAAY,oCAA2D;AAChF,SAAS,gBAAgB;AAGzB,MAAM,kBAA+D,CAAC,UAAU;AAC9E,QAAM,EAAE,eAAe,IAAI;AAE3B,MAAI,CAAC,MAAM,QAAQ,cAAc;AAC/B,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AACF,SAAO,oBAAC,cAAY,GAAG,OAAO;AAChC;AAEA,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,SAAS,eAAe;AAE1D,0BAA0B,YAAY;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './MultiCombobox.js';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export type { DSComboboxMultiT } from '@elliemae/ds-form-combobox';\nexport * from './MultiCombobox.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type DSComboboxMultiT } from '@elliemae/ds-form-combobox';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const DSMultiComboBoxWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<DSComboboxT.Props>;
|
|
3
|
+
declare const DSMultiComboBox: React.ComponentType<DSComboboxMultiT.Props>;
|
|
4
|
+
declare const DSMultiComboBoxWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<DSComboboxMultiT.Props>;
|
|
5
5
|
export { DSMultiComboBox, DSMultiComboBoxWithSchema };
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-multi-combobox",
|
|
3
|
-
"version": "3.60.0-next.
|
|
3
|
+
"version": "3.60.0-next.60",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Multiple Combobox ",
|
|
6
6
|
"files": [
|
|
@@ -35,37 +35,35 @@
|
|
|
35
35
|
"reportFile": "tests.xml",
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
40
|
-
"test": "pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
41
|
-
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
42
|
-
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
43
|
-
"dts": "node ../../../scripts/dts.mjs",
|
|
44
|
-
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
45
|
-
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
46
|
-
},
|
|
47
38
|
"dependencies": {
|
|
48
|
-
"@elliemae/ds-form-combobox": "3.60.0-next.
|
|
49
|
-
"@elliemae/ds-props-helpers": "3.60.0-next.
|
|
39
|
+
"@elliemae/ds-form-combobox": "3.60.0-next.60",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.60.0-next.60"
|
|
50
41
|
},
|
|
51
42
|
"devDependencies": {
|
|
52
|
-
"@elliemae/
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"styled-system": "catalog:"
|
|
43
|
+
"@elliemae/pui-theme": "~2.13.0",
|
|
44
|
+
"jest": "^30.0.0",
|
|
45
|
+
"styled-components": "~5.3.9",
|
|
46
|
+
"styled-system": "^5.1.5",
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.60.0-next.60"
|
|
58
48
|
},
|
|
59
49
|
"peerDependencies": {
|
|
60
|
-
"@elliemae/pui-theme": "
|
|
61
|
-
"react": "
|
|
62
|
-
"react-dom": "
|
|
63
|
-
"styled-components": "
|
|
64
|
-
"styled-system": "
|
|
50
|
+
"@elliemae/pui-theme": "~2.13.0",
|
|
51
|
+
"react": "^18.3.1",
|
|
52
|
+
"react-dom": "^18.3.1",
|
|
53
|
+
"styled-components": "~5.3.9",
|
|
54
|
+
"styled-system": "^5.1.5"
|
|
65
55
|
},
|
|
66
56
|
"publishConfig": {
|
|
67
57
|
"access": "public",
|
|
68
58
|
"typeSafety": false
|
|
69
59
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
60
|
+
"scripts": {
|
|
61
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
62
|
+
"test": "ds-monorepo-devops test --passWithNoTests --coverage=\"false\"",
|
|
63
|
+
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
64
|
+
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
65
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
66
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
67
|
+
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
68
|
+
}
|
|
69
|
+
}
|