@elliemae/ds-form-multi-combobox 3.26.0-next.11
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 +50 -0
- package/dist/cjs/MultiCombobox.js.map +7 -0
- package/dist/cjs/index.js +30 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/esm/MultiCombobox.js +20 -0
- package/dist/esm/MultiCombobox.js.map +7 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/types/MultiCombobox.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,50 @@
|
|
|
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 MultiCombobox_exports = {};
|
|
30
|
+
__export(MultiCombobox_exports, {
|
|
31
|
+
DSMultiComboBox: () => DSMultiComboBox
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(MultiCombobox_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
37
|
+
var import_ds_form_combobox = require("@elliemae/ds-form-combobox");
|
|
38
|
+
const DSMultiComboBox = (props) => {
|
|
39
|
+
const { selectedValues } = props;
|
|
40
|
+
if (!Array.isArray(selectedValues))
|
|
41
|
+
throw new Error(
|
|
42
|
+
"DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead."
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form_combobox.DSComboBox, { ...props });
|
|
45
|
+
};
|
|
46
|
+
DSMultiComboBox.propTypes = import_ds_form_combobox.ComboboxPropTypes;
|
|
47
|
+
DSMultiComboBox.displayName = "DSMultiComboBox";
|
|
48
|
+
const DSMultiComboBoxWithSchema = (0, import_ds_props_helpers.describe)(DSMultiComboBox);
|
|
49
|
+
DSMultiComboBoxWithSchema.propTypes = import_ds_form_combobox.ComboboxPropTypes;
|
|
50
|
+
//# sourceMappingURL=MultiCombobox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/MultiCombobox.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-unused-vars */\nimport React, { type WeakValidationMap } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\nexport const DSMultiComboBox: React.ComponentType<DSComboboxT.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.propTypes = ComboboxPropTypes as WeakValidationMap<unknown>;\nDSMultiComboBox.displayName = 'DSMultiComboBox';\nconst DSMultiComboBoxWithSchema = describe(DSMultiComboBox);\n\nDSMultiComboBoxWithSchema.propTypes = ComboboxPropTypes as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYd;AAVT,8BAAyB;AACzB,8BAAgE;AAEzD,MAAM,kBAA0D,CAAC,UAAU;AAChF,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,YAAY;AAC5B,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,kCAAS,eAAe;AAE1D,0BAA0B,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
|
+
var src_exports = {};
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
28
|
+
var React = __toESM(require("react"));
|
|
29
|
+
__reExport(src_exports, require("./MultiCombobox.js"), module.exports);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;ADAvB,wBAAc,+BAAd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { DSComboBox, ComboboxPropTypes } from "@elliemae/ds-form-combobox";
|
|
5
|
+
const DSMultiComboBox = (props) => {
|
|
6
|
+
const { selectedValues } = props;
|
|
7
|
+
if (!Array.isArray(selectedValues))
|
|
8
|
+
throw new Error(
|
|
9
|
+
"DSMultiCombobox cannot be used with selectedValues different than an array of items. Use DSSingleCombobox instead."
|
|
10
|
+
);
|
|
11
|
+
return /* @__PURE__ */ jsx(DSComboBox, { ...props });
|
|
12
|
+
};
|
|
13
|
+
DSMultiComboBox.propTypes = ComboboxPropTypes;
|
|
14
|
+
DSMultiComboBox.displayName = "DSMultiComboBox";
|
|
15
|
+
const DSMultiComboBoxWithSchema = describe(DSMultiComboBox);
|
|
16
|
+
DSMultiComboBoxWithSchema.propTypes = ComboboxPropTypes;
|
|
17
|
+
export {
|
|
18
|
+
DSMultiComboBox
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=MultiCombobox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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 React, { type WeakValidationMap } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\nexport const DSMultiComboBox: React.ComponentType<DSComboboxT.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.propTypes = ComboboxPropTypes as WeakValidationMap<unknown>;\nDSMultiComboBox.displayName = 'DSMultiComboBox';\nconst DSMultiComboBoxWithSchema = describe(DSMultiComboBox);\n\nDSMultiComboBoxWithSchema.propTypes = ComboboxPropTypes as WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACYd;AAVT,SAAS,gBAAgB;AACzB,SAAS,YAA8B,yBAAyB;AAEzD,MAAM,kBAA0D,CAAC,UAAU;AAChF,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,YAAY;AAC5B,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,SAAS,eAAe;AAE1D,0BAA0B,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;ACAvB,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiCombobox.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-form-multi-combobox",
|
|
3
|
+
"version": "3.26.0-next.11",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - Controlled Form Multiple Combobox ",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css",
|
|
20
|
+
"*.scss"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"pnpm": ">=6",
|
|
28
|
+
"node": ">=16"
|
|
29
|
+
},
|
|
30
|
+
"author": "ICE MT",
|
|
31
|
+
"jestSonar": {
|
|
32
|
+
"sonar56x": true,
|
|
33
|
+
"reportPath": "reports",
|
|
34
|
+
"reportFile": "tests.xml",
|
|
35
|
+
"indent": 4
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@elliemae/ds-form-combobox": "3.26.0-next.11",
|
|
39
|
+
"@elliemae/ds-props-helpers": "3.26.0-next.11"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
43
|
+
"@elliemae/pui-theme": "~2.7.0",
|
|
44
|
+
"styled-components": "~5.3.9",
|
|
45
|
+
"styled-system": "~5.1.5",
|
|
46
|
+
"@elliemae/ds-monorepo-devops": "3.26.0-next.11"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@elliemae/pui-theme": "~2.7.0",
|
|
50
|
+
"react": "^17.0.2",
|
|
51
|
+
"react-dom": "^17.0.2",
|
|
52
|
+
"styled-components": "~5.3.9",
|
|
53
|
+
"styled-system": "^5.1.5"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"typeSafety": false
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
61
|
+
"test": "pui-cli test --passWithNoTests",
|
|
62
|
+
"lint": "node ../../../scripts/lint.mjs",
|
|
63
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
64
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
65
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
66
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
67
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
68
|
+
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
69
|
+
}
|
|
70
|
+
}
|