@elliemae/ds-form-single-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/SingleCombobox.js +2 -7
- package/dist/cjs/SingleCombobox.js.map +2 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/SingleCombobox.js +3 -8
- package/dist/esm/SingleCombobox.js.map +2 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/types/SingleCombobox.d.ts +3 -7
- package/dist/types/index.d.ts +1 -0
- package/package.json +23 -25
|
@@ -34,20 +34,15 @@ __export(SingleCombobox_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(SingleCombobox_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 DSSingleComboBox = (props) => {
|
|
40
40
|
const { selectedValue } = props;
|
|
41
41
|
if (Array.isArray(selectedValue))
|
|
42
42
|
throw new Error("DSSingleCombobox cannot be used with selectedValues as an array. Use DSMultiCombobox instead.");
|
|
43
43
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form_combobox.DSComboBox, { ...props, selectedValues: selectedValue });
|
|
44
44
|
};
|
|
45
|
-
const { selectedValues, ...restComboBoxPropTypes } = import_ds_form_combobox.ComboboxPropTypes;
|
|
46
|
-
const SingleComboboxPropTypes = {
|
|
47
|
-
...restComboBoxPropTypes,
|
|
48
|
-
selectedValue: import_ds_props_helpers.PropTypes.object.description("The selected value of the combobox.").isRequired
|
|
49
|
-
};
|
|
50
45
|
DSSingleComboBox.displayName = "DSSingleComboBox";
|
|
51
46
|
const DSSingleComboBoxWithSchema = (0, import_ds_props_helpers.describe)(DSSingleComboBox);
|
|
52
|
-
DSSingleComboBoxWithSchema.propTypes =
|
|
47
|
+
DSSingleComboBoxWithSchema.propTypes = import_ds_form_combobox.singleComboboxPropTypesSchema;
|
|
53
48
|
//# sourceMappingURL=SingleCombobox.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SingleCombobox.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;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-unused-vars */\nimport { DSComboBox, singleComboboxPropTypesSchema, type DSComboboxSingleT } from '@elliemae/ds-form-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nconst DSSingleComboBox: React.ComponentType<DSComboboxSingleT.Props> = (props) => {\n const { selectedValue } = props;\n\n if (Array.isArray(selectedValue))\n throw new Error('DSSingleCombobox cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n return <DSComboBox {...props} selectedValues={selectedValue} />;\n};\n\nDSSingleComboBox.displayName = 'DSSingleComboBox';\nconst DSSingleComboBoxWithSchema = describe(DSSingleComboBox);\n\nDSSingleComboBoxWithSchema.propTypes = singleComboboxPropTypesSchema;\n\nexport { DSSingleComboBox, DSSingleComboBoxWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUd;AATT,8BAAkF;AAClF,8BAAyB;AAGzB,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,cAAc,IAAI;AAE1B,MAAI,MAAM,QAAQ,aAAa;AAC7B,UAAM,IAAI,MAAM,+FAA+F;AACjH,SAAO,4CAAC,sCAAY,GAAG,OAAO,gBAAgB,eAAe;AAC/D;AAEA,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,kCAAS,gBAAgB;AAE5D,2BAA2B,YAAY;",
|
|
6
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 './SingleCombobox.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["export type { DSComboboxSingleT } from '@elliemae/ds-form-combobox';\nexport * from './SingleCombobox.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAc,gCADd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DSComboBox, singleComboboxPropTypesSchema } from "@elliemae/ds-form-combobox";
|
|
4
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
5
5
|
const DSSingleComboBox = (props) => {
|
|
6
6
|
const { selectedValue } = props;
|
|
7
7
|
if (Array.isArray(selectedValue))
|
|
8
8
|
throw new Error("DSSingleCombobox cannot be used with selectedValues as an array. Use DSMultiCombobox instead.");
|
|
9
9
|
return /* @__PURE__ */ jsx(DSComboBox, { ...props, selectedValues: selectedValue });
|
|
10
10
|
};
|
|
11
|
-
const { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;
|
|
12
|
-
const SingleComboboxPropTypes = {
|
|
13
|
-
...restComboBoxPropTypes,
|
|
14
|
-
selectedValue: PropTypes.object.description("The selected value of the combobox.").isRequired
|
|
15
|
-
};
|
|
16
11
|
DSSingleComboBox.displayName = "DSSingleComboBox";
|
|
17
12
|
const DSSingleComboBoxWithSchema = describe(DSSingleComboBox);
|
|
18
|
-
DSSingleComboBoxWithSchema.propTypes =
|
|
13
|
+
DSSingleComboBoxWithSchema.propTypes = singleComboboxPropTypesSchema;
|
|
19
14
|
export {
|
|
20
15
|
DSSingleComboBox,
|
|
21
16
|
DSSingleComboBoxWithSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/SingleCombobox.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport { DSComboBox, singleComboboxPropTypesSchema, type DSComboboxSingleT } from '@elliemae/ds-form-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nconst DSSingleComboBox: React.ComponentType<DSComboboxSingleT.Props> = (props) => {\n const { selectedValue } = props;\n\n if (Array.isArray(selectedValue))\n throw new Error('DSSingleCombobox cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n return <DSComboBox {...props} selectedValues={selectedValue} />;\n};\n\nDSSingleComboBox.displayName = 'DSSingleComboBox';\nconst DSSingleComboBoxWithSchema = describe(DSSingleComboBox);\n\nDSSingleComboBoxWithSchema.propTypes = singleComboboxPropTypesSchema;\n\nexport { DSSingleComboBox, DSSingleComboBoxWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACUd;AATT,SAAS,YAAY,qCAA6D;AAClF,SAAS,gBAAgB;AAGzB,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,cAAc,IAAI;AAE1B,MAAI,MAAM,QAAQ,aAAa;AAC7B,UAAM,IAAI,MAAM,+FAA+F;AACjH,SAAO,oBAAC,cAAY,GAAG,OAAO,gBAAgB,eAAe;AAC/D;AAEA,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAE5D,2BAA2B,YAAY;",
|
|
6
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 './SingleCombobox.js';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export type { DSComboboxSingleT } from '@elliemae/ds-form-combobox';\nexport * from './SingleCombobox.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
+
import { type DSComboboxSingleT } from '@elliemae/ds-form-combobox';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
selectedValue: DSComboboxT.ItemOption | null;
|
|
5
|
-
}
|
|
6
|
-
export type { DSComboboxT };
|
|
7
|
-
declare const DSSingleComboBox: React.ComponentType<Props>;
|
|
8
|
-
declare const DSSingleComboBoxWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<Props>;
|
|
3
|
+
declare const DSSingleComboBox: React.ComponentType<DSComboboxSingleT.Props>;
|
|
4
|
+
declare const DSSingleComboBoxWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<DSComboboxSingleT.Props>;
|
|
9
5
|
export { DSSingleComboBox, DSSingleComboBoxWithSchema };
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-single-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 Single 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-
|
|
49
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-props-helpers": "3.60.0-next.60",
|
|
40
|
+
"@elliemae/ds-form-combobox": "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
|
+
}
|