@elliemae/ds-form-select 3.70.0-next.16 → 3.70.0-next.17
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 +2 -1
- package/dist/cjs/Select.js.map +2 -2
- package/dist/esm/Select.js +2 -1
- package/dist/esm/Select.js.map +2 -2
- package/dist/types/Select.d.ts +1 -0
- package/package.json +4 -4
package/dist/cjs/Select.js
CHANGED
|
@@ -28,7 +28,8 @@ 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"));
|
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": ["/* eslint-disable no-unused-vars */\nimport React, { useMemo } from 'react';\nimport { describe, PropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\ntype Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {\n selectedValue: DSComboboxT.ItemOption;\n};\n\nexport const DSSelect: React.ComponentType<Props> = (props) => {\n const { selectedValues, selectedValue } = props;\n const currentSelectedValue = useMemo(() => {\n if (selectedValue !== undefined) return selectedValue;\n return selectedValues;\n }, [selectedValue, selectedValues]);\n if (Array.isArray(currentSelectedValue))\n throw new Error('DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n\n return <DSComboBox {...props} selectedValues={currentSelectedValue} onlySelectable />;\n};\n\nconst { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;\n\nconst SelectPropTypes = {\n ...restComboBoxPropTypes,\n selectedValue: PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n};\n\nDSSelect.displayName = 'DSSelect';\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBd;AAjBT,mBAA+B;AAC/B,8BAAwD;AACxD,8BAAgE;AAMzD,MAAM,WAAuC,CAAC,UAAU;AAC7D,QAAM,EAAE,gBAAAA,iBAAgB,cAAc,IAAI;AAC1C,QAAM,2BAAuB,sBAAQ,MAAM;AACzC,QAAI,kBAAkB,OAAW,QAAO;AACxC,WAAOA;AAAA,EACT,GAAG,CAAC,eAAeA,eAAc,CAAC;AAClC,MAAI,MAAM,QAAQ,oBAAoB;AACpC,UAAM,IAAI,MAAM,uFAAuF;AAEzG,SAAO,4CAAC,sCAAY,GAAG,OAAO,gBAAgB,sBAAsB,gBAAc,MAAC;AACrF;AAEA,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,IAAI;AAErD,MAAM,kBAAkB;AAAA,EACtB,GAAG;AAAA,EACH,eAAe,kCAAU,MAAM;AAAA,IAC7B,OAAO,kCAAU,OAAO;AAAA,IACxB,OAAO,kCAAU,OAAO;AAAA,EAC1B,CAAC;AACH;AAEA,SAAS,cAAc;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-unused-vars */\nimport React, { useMemo } from 'react';\nimport { describe, PropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\ntype Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {\n selectedValue: DSComboboxT.ItemOption;\n};\n\nexport const DSSelect: React.ComponentType<Props> = (props) => {\n const { selectedValues, selectedValue } = props;\n const currentSelectedValue = useMemo(() => {\n if (selectedValue !== undefined) return selectedValue;\n return selectedValues;\n }, [selectedValue, selectedValues]);\n if (Array.isArray(currentSelectedValue))\n throw new Error('DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n\n return <DSComboBox {...props} selectedValues={currentSelectedValue} onlySelectable />;\n};\n\nconst { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;\n\nconst SelectPropTypes = {\n ...restComboBoxPropTypes,\n selectedValue: PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n};\n\nDSSelect.displayName = 'DSSelect';\nexport const DSSelectWithSchema = describe(DSSelect);\n\nDSSelectWithSchema.propTypes = SelectPropTypes as unknown as ValidationMap<Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBd;AAjBT,mBAA+B;AAC/B,8BAAwD;AACxD,8BAAgE;AAMzD,MAAM,WAAuC,CAAC,UAAU;AAC7D,QAAM,EAAE,gBAAAA,iBAAgB,cAAc,IAAI;AAC1C,QAAM,2BAAuB,sBAAQ,MAAM;AACzC,QAAI,kBAAkB,OAAW,QAAO;AACxC,WAAOA;AAAA,EACT,GAAG,CAAC,eAAeA,eAAc,CAAC;AAClC,MAAI,MAAM,QAAQ,oBAAoB;AACpC,UAAM,IAAI,MAAM,uFAAuF;AAEzG,SAAO,4CAAC,sCAAY,GAAG,OAAO,gBAAgB,sBAAsB,gBAAc,MAAC;AACrF;AAEA,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,IAAI;AAErD,MAAM,kBAAkB;AAAA,EACtB,GAAG;AAAA,EACH,eAAe,kCAAU,MAAM;AAAA,IAC7B,OAAO,kCAAU,OAAO;AAAA,IACxB,OAAO,kCAAU,OAAO;AAAA,EAC1B,CAAC;AACH;AAEA,SAAS,cAAc;AAChB,MAAM,yBAAqB,kCAAS,QAAQ;AAEnD,mBAAmB,YAAY;",
|
|
6
6
|
"names": ["selectedValues"]
|
|
7
7
|
}
|
package/dist/esm/Select.js
CHANGED
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", "/* eslint-disable no-unused-vars */\nimport React, { useMemo } from 'react';\nimport { describe, PropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\ntype Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {\n selectedValue: DSComboboxT.ItemOption;\n};\n\nexport const DSSelect: React.ComponentType<Props> = (props) => {\n const { selectedValues, selectedValue } = props;\n const currentSelectedValue = useMemo(() => {\n if (selectedValue !== undefined) return selectedValue;\n return selectedValues;\n }, [selectedValue, selectedValues]);\n if (Array.isArray(currentSelectedValue))\n throw new Error('DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n\n return <DSComboBox {...props} selectedValues={currentSelectedValue} onlySelectable />;\n};\n\nconst { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;\n\nconst SelectPropTypes = {\n ...restComboBoxPropTypes,\n selectedValue: PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n};\n\nDSSelect.displayName = 'DSSelect';\
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACkBd;AAjBT,SAAgB,eAAe;AAC/B,SAAS,UAAU,iBAAqC;AACxD,SAAS,YAA8B,yBAAyB;AAMzD,MAAM,WAAuC,CAAC,UAAU;AAC7D,QAAM,EAAE,gBAAAA,iBAAgB,cAAc,IAAI;AAC1C,QAAM,uBAAuB,QAAQ,MAAM;AACzC,QAAI,kBAAkB,OAAW,QAAO;AACxC,WAAOA;AAAA,EACT,GAAG,CAAC,eAAeA,eAAc,CAAC;AAClC,MAAI,MAAM,QAAQ,oBAAoB;AACpC,UAAM,IAAI,MAAM,uFAAuF;AAEzG,SAAO,oBAAC,cAAY,GAAG,OAAO,gBAAgB,sBAAsB,gBAAc,MAAC;AACrF;AAEA,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,IAAI;AAErD,MAAM,kBAAkB;AAAA,EACtB,GAAG;AAAA,EACH,eAAe,UAAU,MAAM;AAAA,IAC7B,OAAO,UAAU,OAAO;AAAA,IACxB,OAAO,UAAU,OAAO;AAAA,EAC1B,CAAC;AACH;AAEA,SAAS,cAAc;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport React, { useMemo } from 'react';\nimport { describe, PropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSComboBox, type DSComboboxT, ComboboxPropTypes } from '@elliemae/ds-form-combobox';\n\ntype Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {\n selectedValue: DSComboboxT.ItemOption;\n};\n\nexport const DSSelect: React.ComponentType<Props> = (props) => {\n const { selectedValues, selectedValue } = props;\n const currentSelectedValue = useMemo(() => {\n if (selectedValue !== undefined) return selectedValue;\n return selectedValues;\n }, [selectedValue, selectedValues]);\n if (Array.isArray(currentSelectedValue))\n throw new Error('DSSelect cannot be used with selectedValues as an array. Use DSMultiCombobox instead.');\n\n return <DSComboBox {...props} selectedValues={currentSelectedValue} onlySelectable />;\n};\n\nconst { selectedValues, ...restComboBoxPropTypes } = ComboboxPropTypes;\n\nconst SelectPropTypes = {\n ...restComboBoxPropTypes,\n selectedValue: PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n};\n\nDSSelect.displayName = 'DSSelect';\nexport const DSSelectWithSchema = describe(DSSelect);\n\nDSSelectWithSchema.propTypes = SelectPropTypes as unknown as ValidationMap<Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACkBd;AAjBT,SAAgB,eAAe;AAC/B,SAAS,UAAU,iBAAqC;AACxD,SAAS,YAA8B,yBAAyB;AAMzD,MAAM,WAAuC,CAAC,UAAU;AAC7D,QAAM,EAAE,gBAAAA,iBAAgB,cAAc,IAAI;AAC1C,QAAM,uBAAuB,QAAQ,MAAM;AACzC,QAAI,kBAAkB,OAAW,QAAO;AACxC,WAAOA;AAAA,EACT,GAAG,CAAC,eAAeA,eAAc,CAAC;AAClC,MAAI,MAAM,QAAQ,oBAAoB;AACpC,UAAM,IAAI,MAAM,uFAAuF;AAEzG,SAAO,oBAAC,cAAY,GAAG,OAAO,gBAAgB,sBAAsB,gBAAc,MAAC;AACrF;AAEA,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,IAAI;AAErD,MAAM,kBAAkB;AAAA,EACtB,GAAG;AAAA,EACH,eAAe,UAAU,MAAM;AAAA,IAC7B,OAAO,UAAU,OAAO;AAAA,IACxB,OAAO,UAAU,OAAO;AAAA,EAC1B,CAAC;AACH;AAEA,SAAS,cAAc;AAChB,MAAM,qBAAqB,SAAS,QAAQ;AAEnD,mBAAmB,YAAY;",
|
|
6
6
|
"names": ["selectedValues"]
|
|
7
7
|
}
|
package/dist/types/Select.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ type Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {
|
|
|
4
4
|
selectedValue: DSComboboxT.ItemOption;
|
|
5
5
|
};
|
|
6
6
|
export declare const DSSelect: React.ComponentType<Props>;
|
|
7
|
+
export declare const DSSelectWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<Props>;
|
|
7
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-select",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Select",
|
|
6
6
|
"files": [
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-form-combobox": "3.70.0-next.
|
|
40
|
-
"@elliemae/ds-props-helpers": "3.70.0-next.
|
|
39
|
+
"@elliemae/ds-form-combobox": "3.70.0-next.17",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.17"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@elliemae/pui-theme": "~2.13.0",
|
|
44
44
|
"jest": "^30.0.0",
|
|
45
45
|
"styled-components": "~5.3.9",
|
|
46
46
|
"styled-system": "^5.1.5",
|
|
47
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.17"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@elliemae/pui-theme": "~2.13.0",
|