@elliemae/ds-form-select 3.70.0-next.1 → 3.70.0-next.10
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.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
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBd;AAjBT,
|
|
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';\nconst 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;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;AACvB,MAAM,yBAAqB,kCAAS,QAAQ;AAE5C,mBAAmB,YAAY;",
|
|
6
6
|
"names": ["selectedValues"]
|
|
7
7
|
}
|
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
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACkBd;AAjBT,SAAgB,
|
|
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';\nconst 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;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAE5C,mBAAmB,YAAY;",
|
|
6
6
|
"names": ["selectedValues"]
|
|
7
7
|
}
|
package/dist/types/Select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSComboboxT } from '@elliemae/ds-form-combobox';
|
|
3
|
-
|
|
3
|
+
type Props = DSComboboxT.Props<DSComboboxT.ItemOption> & {
|
|
4
4
|
selectedValue: DSComboboxT.ItemOption;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const DSSelect: React.ComponentType<Props>;
|
|
7
7
|
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.10",
|
|
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.10",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.10"
|
|
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.10"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@elliemae/pui-theme": "~2.13.0",
|