@elliemae/ds-form-select 3.70.0-next.9 → 3.70.0-rc.1
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/Select.js +7 -22
- package/dist/cjs/Select.js.map +3 -3
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/package.json +1 -4
- package/dist/esm/Select.js +8 -23
- package/dist/esm/Select.js.map +3 -3
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/package.json +1 -4
- package/dist/types/Select.d.ts +3 -6
- package/dist/types/index.d.ts +1 -1
- package/package.json +8 -8
package/dist/cjs/Select.js
CHANGED
|
@@ -28,33 +28,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var Select_exports = {};
|
|
30
30
|
__export(Select_exports, {
|
|
31
|
-
DSSelect: () => DSSelect
|
|
31
|
+
DSSelect: () => DSSelect,
|
|
32
|
+
DSSelectWithSchema: () => DSSelectWithSchema
|
|
32
33
|
});
|
|
33
34
|
module.exports = __toCommonJS(Select_exports);
|
|
34
35
|
var React = __toESM(require("react"));
|
|
35
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_react = require("react");
|
|
37
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
37
|
var import_ds_form_combobox = require("@elliemae/ds-form-combobox");
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return selectedValues2;
|
|
44
|
-
}, [selectedValue, selectedValues2]);
|
|
45
|
-
if (Array.isArray(currentSelectedValue))
|
|
46
|
-
throw new Error("DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.");
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form_combobox.DSComboBox, { ...props, selectedValues: currentSelectedValue, onlySelectable: true });
|
|
48
|
-
};
|
|
49
|
-
const { selectedValues, ...restComboBoxPropTypes } = import_ds_form_combobox.ComboboxPropTypes;
|
|
50
|
-
const SelectPropTypes = {
|
|
51
|
-
...restComboBoxPropTypes,
|
|
52
|
-
selectedValue: import_ds_props_helpers.PropTypes.shape({
|
|
53
|
-
label: import_ds_props_helpers.PropTypes.string.isRequired,
|
|
54
|
-
value: import_ds_props_helpers.PropTypes.string.isRequired
|
|
55
|
-
})
|
|
56
|
-
};
|
|
38
|
+
var import_ds_form_single_combobox = require("@elliemae/ds-form-single-combobox");
|
|
39
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
40
|
+
const DSSelect = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form_single_combobox.DSSingleComboBox, { ...props, onlySelectable: true });
|
|
41
|
+
const { onlySelectable, ...filteredSchema } = import_ds_form_combobox.singleComboboxPropTypesSchema;
|
|
57
42
|
DSSelect.displayName = "DSSelect";
|
|
58
43
|
const DSSelectWithSchema = (0, import_ds_props_helpers.describe)(DSSelect);
|
|
59
|
-
DSSelectWithSchema.propTypes =
|
|
44
|
+
DSSelectWithSchema.propTypes = filteredSchema;
|
|
60
45
|
//# sourceMappingURL=Select.js.map
|
package/dist/cjs/Select.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Select.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["import { singleComboboxPropTypesSchema } from '@elliemae/ds-form-combobox';\nimport { DSSingleComboBox, type DSComboboxSingleT } from '@elliemae/ds-form-single-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nexport const DSSelect: React.ComponentType<Omit<DSComboboxSingleT.Props, 'onlySelectable'>> = (props) => (\n <DSSingleComboBox {...props} onlySelectable />\n);\n\nconst { onlySelectable, ...filteredSchema } = singleComboboxPropTypesSchema;\n\nDSSelect.displayName = 'DSSelect';\nexport const DSSelectWithSchema = describe(DSSelect);\n\nDSSelectWithSchema.propTypes = filteredSchema;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADMrB;AANF,8BAA8C;AAC9C,qCAAyD;AACzD,8BAAyB;AAGlB,MAAM,WAAiF,CAAC,UAC7F,4CAAC,mDAAkB,GAAG,OAAO,gBAAc,MAAC;AAG9C,MAAM,EAAE,gBAAgB,GAAG,eAAe,IAAI;AAE9C,SAAS,cAAc;AAChB,MAAM,yBAAqB,kCAAS,QAAQ;AAEnD,mBAAmB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
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
|
+
};
|
|
8
12
|
var __copyProps = (to, from, except, desc) => {
|
|
9
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
}
|
|
14
18
|
return to;
|
|
15
19
|
};
|
|
16
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -24,7 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
27
|
));
|
|
25
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
29
|
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
DSSelect: () => import_Select.DSSelect,
|
|
32
|
+
DSSelectWithSchema: () => import_Select.DSSelectWithSchema
|
|
33
|
+
});
|
|
27
34
|
module.exports = __toCommonJS(index_exports);
|
|
28
35
|
var React = __toESM(require("react"));
|
|
29
|
-
|
|
36
|
+
var import_Select = require("./Select.js");
|
|
30
37
|
//# sourceMappingURL=index.js.map
|
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
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["export { DSSelect, DSSelectWithSchema } from './Select.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,oBAA6C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/package.json
CHANGED
package/dist/esm/Select.js
CHANGED
|
@@ -1,30 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const DSSelect = (props) => {
|
|
7
|
-
|
|
8
|
-
const currentSelectedValue = useMemo(() => {
|
|
9
|
-
if (selectedValue !== void 0) return selectedValue;
|
|
10
|
-
return selectedValues2;
|
|
11
|
-
}, [selectedValue, selectedValues2]);
|
|
12
|
-
if (Array.isArray(currentSelectedValue))
|
|
13
|
-
throw new Error("DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.");
|
|
14
|
-
return /* @__PURE__ */ jsx(DSComboBox, { ...props, selectedValues: currentSelectedValue, onlySelectable: true });
|
|
15
|
-
};
|
|
16
|
-
const { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;
|
|
17
|
-
const SelectPropTypes = {
|
|
18
|
-
...restComboBoxPropTypes,
|
|
19
|
-
selectedValue: PropTypes.shape({
|
|
20
|
-
label: PropTypes.string.isRequired,
|
|
21
|
-
value: PropTypes.string.isRequired
|
|
22
|
-
})
|
|
23
|
-
};
|
|
3
|
+
import { singleComboboxPropTypesSchema } from "@elliemae/ds-form-combobox";
|
|
4
|
+
import { DSSingleComboBox } from "@elliemae/ds-form-single-combobox";
|
|
5
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
6
|
+
const DSSelect = (props) => /* @__PURE__ */ jsx(DSSingleComboBox, { ...props, onlySelectable: true });
|
|
7
|
+
const { onlySelectable, ...filteredSchema } = singleComboboxPropTypesSchema;
|
|
24
8
|
DSSelect.displayName = "DSSelect";
|
|
25
9
|
const DSSelectWithSchema = describe(DSSelect);
|
|
26
|
-
DSSelectWithSchema.propTypes =
|
|
10
|
+
DSSelectWithSchema.propTypes = filteredSchema;
|
|
27
11
|
export {
|
|
28
|
-
DSSelect
|
|
12
|
+
DSSelect,
|
|
13
|
+
DSSelectWithSchema
|
|
29
14
|
};
|
|
30
15
|
//# sourceMappingURL=Select.js.map
|
package/dist/esm/Select.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/Select.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { singleComboboxPropTypesSchema } from '@elliemae/ds-form-combobox';\nimport { DSSingleComboBox, type DSComboboxSingleT } from '@elliemae/ds-form-single-combobox';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nexport const DSSelect: React.ComponentType<Omit<DSComboboxSingleT.Props, 'onlySelectable'>> = (props) => (\n <DSSingleComboBox {...props} onlySelectable />\n);\n\nconst { onlySelectable, ...filteredSchema } = singleComboboxPropTypesSchema;\n\nDSSelect.displayName = 'DSSelect';\nexport const DSSelectWithSchema = describe(DSSelect);\n\nDSSelectWithSchema.propTypes = filteredSchema;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACMrB;AANF,SAAS,qCAAqC;AAC9C,SAAS,wBAAgD;AACzD,SAAS,gBAAgB;AAGlB,MAAM,WAAiF,CAAC,UAC7F,oBAAC,oBAAkB,GAAG,OAAO,gBAAc,MAAC;AAG9C,MAAM,EAAE,gBAAgB,GAAG,eAAe,IAAI;AAE9C,SAAS,cAAc;AAChB,MAAM,qBAAqB,SAAS,QAAQ;AAEnD,mBAAmB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
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
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSSelect, DSSelectWithSchema } from './Select.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,UAAU,0BAA0B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/package.json
CHANGED
package/dist/types/Select.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
+
import { type DSComboboxSingleT } from '@elliemae/ds-form-single-combobox';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
selectedValue: DSComboboxT.ItemOption;
|
|
5
|
-
};
|
|
6
|
-
export declare const DSSelect: React.ComponentType<Props>;
|
|
7
|
-
export {};
|
|
3
|
+
export declare const DSSelect: React.ComponentType<Omit<DSComboboxSingleT.Props, 'onlySelectable'>>;
|
|
4
|
+
export declare const DSSelectWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<Omit<DSComboboxSingleT.Props, "onlySelectable">>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DSSelect, DSSelectWithSchema } from './Select.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-select",
|
|
3
|
-
"version": "3.70.0-
|
|
3
|
+
"version": "3.70.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Select",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"pnpm": ">=9",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-form-combobox": "3.70.0-
|
|
40
|
-
"@elliemae/ds-props-helpers": "3.70.0-
|
|
39
|
+
"@elliemae/ds-form-combobox": "3.70.0-rc.1",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-rc.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@elliemae/pui-theme": "~2.13.0",
|
|
44
44
|
"jest": "^30.0.0",
|
|
45
|
-
"styled-components": "~5.3.
|
|
45
|
+
"styled-components": "~5.3.11",
|
|
46
46
|
"styled-system": "^5.1.5",
|
|
47
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-rc.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@elliemae/pui-theme": "~2.13.0",
|
|
51
51
|
"react": "^18.3.1",
|
|
52
52
|
"react-dom": "^18.3.1",
|
|
53
|
-
"styled-components": "~5.3.
|
|
53
|
+
"styled-components": "~5.3.11",
|
|
54
54
|
"styled-system": "^5.1.5"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
@@ -66,4 +66,4 @@
|
|
|
66
66
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
67
67
|
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|