@elliemae/ds-data-table-multi-select-cell 3.31.0-next.6

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.
Files changed (34) hide show
  1. package/dist/cjs/DSDataTableMultiSelectCell.js +74 -0
  2. package/dist/cjs/DSDataTableMultiSelectCell.js.map +7 -0
  3. package/dist/cjs/config/useDataTableMultiSelectCell.js +54 -0
  4. package/dist/cjs/config/useDataTableMultiSelectCell.js.map +7 -0
  5. package/dist/cjs/config/useValidateProps.js +40 -0
  6. package/dist/cjs/config/useValidateProps.js.map +7 -0
  7. package/dist/cjs/constants/index.js +47 -0
  8. package/dist/cjs/constants/index.js.map +7 -0
  9. package/dist/cjs/index.js +41 -0
  10. package/dist/cjs/index.js.map +7 -0
  11. package/dist/cjs/package.json +7 -0
  12. package/dist/cjs/react-desc-prop-types.js +54 -0
  13. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  14. package/dist/esm/DSDataTableMultiSelectCell.js +46 -0
  15. package/dist/esm/DSDataTableMultiSelectCell.js.map +7 -0
  16. package/dist/esm/config/useDataTableMultiSelectCell.js +27 -0
  17. package/dist/esm/config/useDataTableMultiSelectCell.js.map +7 -0
  18. package/dist/esm/config/useValidateProps.js +10 -0
  19. package/dist/esm/config/useValidateProps.js.map +7 -0
  20. package/dist/esm/constants/index.js +17 -0
  21. package/dist/esm/constants/index.js.map +7 -0
  22. package/dist/esm/index.js +11 -0
  23. package/dist/esm/index.js.map +7 -0
  24. package/dist/esm/package.json +7 -0
  25. package/dist/esm/react-desc-prop-types.js +24 -0
  26. package/dist/esm/react-desc-prop-types.js.map +7 -0
  27. package/dist/types/DSDataTableMultiSelectCell.d.ts +5 -0
  28. package/dist/types/config/useDataTableMultiSelectCell.d.ts +11 -0
  29. package/dist/types/config/useValidateProps.d.ts +3 -0
  30. package/dist/types/constants/index.d.ts +6 -0
  31. package/dist/types/index.d.ts +3 -0
  32. package/dist/types/react-desc-prop-types.d.ts +23 -0
  33. package/dist/types/tests/DSDataTableMultiSelectCell.test.d.ts +1 -0
  34. package/package.json +76 -0
@@ -0,0 +1,74 @@
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 DSDataTableMultiSelectCell_exports = {};
30
+ __export(DSDataTableMultiSelectCell_exports, {
31
+ DSDataTableMultiSelectCell: () => DSDataTableMultiSelectCell,
32
+ DSDataTableMultiSelectCellWithSchema: () => DSDataTableMultiSelectCellWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSDataTableMultiSelectCell_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_ds_form_checkbox = require("@elliemae/ds-form-checkbox");
40
+ var import_ds_data_table_cell = require("@elliemae/ds-data-table-cell");
41
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
42
+ var import_useDataTableMultiSelectCell = require("./config/useDataTableMultiSelectCell.js");
43
+ var import_constants = require("./constants/index.js");
44
+ var import_ds_utilities = require("@elliemae/ds-utilities");
45
+ const StyledWrapper = (0, import_ds_system.styled)(import_ds_data_table_cell.DSDataTableCell, {
46
+ name: import_constants.DSDataTableMultiSelectCellName,
47
+ slot: import_constants.DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT
48
+ })`
49
+ justify-content: center;
50
+ margin-left: 4px;
51
+ `;
52
+ const StyledCheckbox = (0, import_ds_system.styled)(import_ds_form_checkbox.DSControlledCheckbox, {
53
+ name: import_constants.DSDataTableMultiSelectCellName,
54
+ slot: import_constants.DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX
55
+ })``;
56
+ const DSDataTableMultiSelectCell = (props) => {
57
+ const { propsWithDefault, xstyledProps } = (0, import_useDataTableMultiSelectCell.useDataTableMultiSelectCell)(props);
58
+ const ownerPropsConfig = (0, import_ds_utilities.useOwnerProps)(propsWithDefault);
59
+ const { checked, disabled, onChange } = propsWithDefault;
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ StyledCheckbox,
62
+ {
63
+ "aria-label": "Toggle row selected",
64
+ checked,
65
+ onChange,
66
+ disabled,
67
+ ...ownerPropsConfig
68
+ }
69
+ ) });
70
+ };
71
+ DSDataTableMultiSelectCell.displayName = import_constants.DSDataTableMultiSelectCellName;
72
+ const DSDataTableMultiSelectCellWithSchema = (0, import_ds_props_helpers.describe)(DSDataTableMultiSelectCell);
73
+ DSDataTableMultiSelectCellWithSchema.propTypes = import_react_desc_prop_types.DSDataTableMultiSelectCellPropTypesSchema;
74
+ //# sourceMappingURL=DSDataTableMultiSelectCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSDataTableMultiSelectCell.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledCheckbox = styled(DSControlledCheckbox, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX,\n})``;\n\nconst DSDataTableMultiSelectCell: React.ComponentType<DSDataTableMultiSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableMultiSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { checked, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n <StyledCheckbox\n aria-label=\"Toggle row selected\"\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableMultiSelectCell.displayName = DSDataTableMultiSelectCellName;\nconst DSDataTableMultiSelectCellWithSchema = describe(DSDataTableMultiSelectCell);\nDSDataTableMultiSelectCellWithSchema.propTypes = DSDataTableMultiSelectCellPropTypesSchema;\n\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCjB;AA/BN,8BAAyB;AACzB,uBAAuB;AACvB,8BAAqC;AACrC,gCAAgC;AAChC,mCAGO;AACP,yCAA4C;AAC5C,uBAAmF;AACnF,0BAA8B;AAE9B,MAAM,oBAAgB,yBAAO,2CAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,oDAAmC;AAC3C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,qBAAiB,yBAAO,8CAAsB;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,oDAAmC;AAC3C,CAAC;AAED,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,QAAI,gEAA4B,KAAK;AAC5E,QAAM,uBAAmB,mCAAc,gBAAgB;AACvD,QAAM,EAAE,SAAS,UAAU,SAAS,IAAI;AACxC,SACE,4CAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC9E;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,2CAAuC,kCAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,54 @@
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 useDataTableMultiSelectCell_exports = {};
30
+ __export(useDataTableMultiSelectCell_exports, {
31
+ useDataTableMultiSelectCell: () => useDataTableMultiSelectCell
32
+ });
33
+ module.exports = __toCommonJS(useDataTableMultiSelectCell_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
+ const useDataTableMultiSelectCell = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(
41
+ propsFromUser,
42
+ import_react_desc_prop_types.defaultProps
43
+ );
44
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSDataTableMultiSelectCellPropTypes);
45
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
46
+ return import_react.default.useMemo(
47
+ () => ({
48
+ propsWithDefault,
49
+ xstyledProps
50
+ }),
51
+ [propsWithDefault, xstyledProps]
52
+ );
53
+ };
54
+ //# sourceMappingURL=useDataTableMultiSelectCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useDataTableMultiSelectCell.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypes,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableMultiSelectCellCTX {\n propsWithDefault: DSDataTableMultiSelectCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableMultiSelectCell = (propsFromUser: DSDataTableMultiSelectCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableMultiSelectCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableMultiSelectCellPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n }),\n [propsWithDefault, xstyledProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,8BAAiE;AACjE,mCAIO;AACP,8BAAiC;AAQ1B,MAAM,8BAA8B,CAAC,kBAAqD;AAI/F,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,gEAAmC;AAItE,QAAM,mBAAe,4CAAmB,gBAAgB;AAExD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,YAAY;AAAA,EACjC;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
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 useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSDataTableMultiSelectCellName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { type DSDataTableMultiSelectCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableMultiSelectCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableMultiSelectCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableMultiSelectCellName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAA+C;AAExC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,+CAA8B;AACjF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,47 @@
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 constants_exports = {};
30
+ __export(constants_exports, {
31
+ DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID: () => DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID,
32
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS: () => DATA_TABLE_MULTI_SELECT_CELL_SLOTS,
33
+ DSDataTableMultiSelectCellName: () => DSDataTableMultiSelectCellName
34
+ });
35
+ module.exports = __toCommonJS(constants_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
38
+ const DSDataTableMultiSelectCellName = "DSDataTableMultiSelectCell";
39
+ const DATA_TABLE_MULTI_SELECT_CELL_SLOTS = {
40
+ ROOT: "root",
41
+ CHECKBOX: "checkbox"
42
+ };
43
+ const DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(
44
+ DSDataTableMultiSelectCellName,
45
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS
46
+ );
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSDataTableMultiSelectCellName = 'DSDataTableMultiSelectCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_MULTI_SELECT_CELL_SLOTS = {\n ROOT: 'root',\n CHECKBOX: 'checkbox',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableMultiSelectCellName,\n DATA_TABLE_MULTI_SELECT_CELL_SLOTS,\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,iCAAiC;AAGvC,MAAM,qCAAqC;AAAA,EAChD,MAAM;AAAA,EACN,UAAU;AACZ;AAGO,MAAM,+CAA2C;AAAA,EACtD;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
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 src_exports = {};
30
+ __export(src_exports, {
31
+ DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID: () => import_constants.DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID,
32
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS: () => import_constants.DATA_TABLE_MULTI_SELECT_CELL_SLOTS,
33
+ DSDataTableMultiSelectCell: () => import_DSDataTableMultiSelectCell.DSDataTableMultiSelectCell,
34
+ DSDataTableMultiSelectCellWithSchema: () => import_DSDataTableMultiSelectCell.DSDataTableMultiSelectCellWithSchema
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_DSDataTableMultiSelectCell = require("./DSDataTableMultiSelectCell.js");
39
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
40
+ var import_constants = require("./constants/index.js");
41
+ //# 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": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema } from './DSDataTableMultiSelectCell.js';\nexport { type DSDataTableMultiSelectCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,wCAAiF;AACjF,mCAAiD;AACjD,uBAA6F;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,54 @@
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 react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSDataTableMultiSelectCellPropTypes: () => DSDataTableMultiSelectCellPropTypes,
32
+ DSDataTableMultiSelectCellPropTypesSchema: () => DSDataTableMultiSelectCellPropTypesSchema,
33
+ defaultProps: () => defaultProps
34
+ });
35
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_constants = require("./constants/index.js");
39
+ const defaultProps = {
40
+ checked: false,
41
+ disabled: false
42
+ };
43
+ const DSDataTableMultiSelectCellPropTypes = {
44
+ ...import_ds_props_helpers.xstyledPropTypes,
45
+ ...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDataTableMultiSelectCellName, import_constants.DATA_TABLE_MULTI_SELECT_CELL_SLOTS),
46
+ className: import_ds_props_helpers.PropTypes.string.description("className for the wrapper"),
47
+ checked: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.bool, import_ds_props_helpers.PropTypes.oneOf(["mixed"])]).description(
48
+ "Whether the checkbox is checked"
49
+ ),
50
+ disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the checkbox is disabled"),
51
+ onChange: import_ds_props_helpers.PropTypes.func.description("Callback when the checkbox is toggled")
52
+ };
53
+ const DSDataTableMultiSelectCellPropTypesSchema = DSDataTableMultiSelectCellPropTypes;
54
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableMultiSelectCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: false;\n checked: 'mixed' | boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableMultiSelectCellName,\n typeof DATA_TABLE_MULTI_SELECT_CELL_SLOTS\n > {\n className?: string;\n onChange?: (newVal: boolean) => void;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableMultiSelectCellT.DefaultProps = {\n checked: false,\n disabled: false,\n};\n\nexport const DSDataTableMultiSelectCellPropTypes: DSPropTypesSchema<DSDataTableMultiSelectCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n checked: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['mixed'])]).description(\n 'Whether the checkbox is checked',\n ),\n disabled: PropTypes.bool.description('Whether the checkbox is disabled'),\n onChange: PropTypes.func.description('Callback when the checkbox is toggled'),\n};\n\nexport const DSDataTableMultiSelectCellPropTypesSchema =\n DSDataTableMultiSelectCellPropTypes as unknown as WeakValidationMap<DSDataTableMultiSelectCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsE;AAEtE,uBAAmF;AAyB5E,MAAM,eAAyD;AAAA,EACpE,SAAS;AAAA,EACT,UAAU;AACZ;AAEO,MAAM,sCAA4F;AAAA,EACvG,GAAG;AAAA,EACH,OAAG,kDAAyB,iDAAgC,mDAAkC;AAAA,EAC9F,WAAW,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,SAAS,kCAAU,UAAU,CAAC,kCAAU,MAAM,kCAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;AAAA,IACzE;AAAA,EACF;AAAA,EACA,UAAU,kCAAU,KAAK,YAAY,kCAAkC;AAAA,EACvE,UAAU,kCAAU,KAAK,YAAY,uCAAuC;AAC9E;AAEO,MAAM,4CACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,46 @@
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { describe } from "@elliemae/ds-props-helpers";
4
+ import { styled } from "@elliemae/ds-system";
5
+ import { DSControlledCheckbox } from "@elliemae/ds-form-checkbox";
6
+ import { DSDataTableCell } from "@elliemae/ds-data-table-cell";
7
+ import {
8
+ DSDataTableMultiSelectCellPropTypesSchema
9
+ } from "./react-desc-prop-types.js";
10
+ import { useDataTableMultiSelectCell } from "./config/useDataTableMultiSelectCell.js";
11
+ import { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from "./constants/index.js";
12
+ import { useOwnerProps } from "@elliemae/ds-utilities";
13
+ const StyledWrapper = styled(DSDataTableCell, {
14
+ name: DSDataTableMultiSelectCellName,
15
+ slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT
16
+ })`
17
+ justify-content: center;
18
+ margin-left: 4px;
19
+ `;
20
+ const StyledCheckbox = styled(DSControlledCheckbox, {
21
+ name: DSDataTableMultiSelectCellName,
22
+ slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX
23
+ })``;
24
+ const DSDataTableMultiSelectCell = (props) => {
25
+ const { propsWithDefault, xstyledProps } = useDataTableMultiSelectCell(props);
26
+ const ownerPropsConfig = useOwnerProps(propsWithDefault);
27
+ const { checked, disabled, onChange } = propsWithDefault;
28
+ return /* @__PURE__ */ jsx(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: /* @__PURE__ */ jsx(
29
+ StyledCheckbox,
30
+ {
31
+ "aria-label": "Toggle row selected",
32
+ checked,
33
+ onChange,
34
+ disabled,
35
+ ...ownerPropsConfig
36
+ }
37
+ ) });
38
+ };
39
+ DSDataTableMultiSelectCell.displayName = DSDataTableMultiSelectCellName;
40
+ const DSDataTableMultiSelectCellWithSchema = describe(DSDataTableMultiSelectCell);
41
+ DSDataTableMultiSelectCellWithSchema.propTypes = DSDataTableMultiSelectCellPropTypesSchema;
42
+ export {
43
+ DSDataTableMultiSelectCell,
44
+ DSDataTableMultiSelectCellWithSchema
45
+ };
46
+ //# sourceMappingURL=DSDataTableMultiSelectCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableMultiSelectCell.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledCheckbox = styled(DSControlledCheckbox, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX,\n})``;\n\nconst DSDataTableMultiSelectCell: React.ComponentType<DSDataTableMultiSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableMultiSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { checked, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n <StyledCheckbox\n aria-label=\"Toggle row selected\"\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableMultiSelectCell.displayName = DSDataTableMultiSelectCellName;\nconst DSDataTableMultiSelectCellWithSchema = describe(DSDataTableMultiSelectCell);\nDSDataTableMultiSelectCellWithSchema.propTypes = DSDataTableMultiSelectCellPropTypesSchema;\n\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACgCjB;AA/BN,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC;AAAA,EAEE;AAAA,OACK;AACP,SAAS,mCAAmC;AAC5C,SAAS,oCAAoC,sCAAsC;AACnF,SAAS,qBAAqB;AAE9B,MAAM,gBAAgB,OAAO,iBAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,mCAAmC;AAC3C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,iBAAiB,OAAO,sBAAsB;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,mCAAmC;AAC3C,CAAC;AAED,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,IAAI,4BAA4B,KAAK;AAC5E,QAAM,mBAAmB,cAAc,gBAAgB;AACvD,QAAM,EAAE,SAAS,UAAU,SAAS,IAAI;AACxC,SACE,oBAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC9E;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,uCAAuC,SAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
4
+ import {
5
+ DSDataTableMultiSelectCellPropTypes,
6
+ defaultProps
7
+ } from "../react-desc-prop-types.js";
8
+ import { useValidateProps } from "./useValidateProps.js";
9
+ const useDataTableMultiSelectCell = (propsFromUser) => {
10
+ const propsWithDefault = useMemoMergePropsWithDefault(
11
+ propsFromUser,
12
+ defaultProps
13
+ );
14
+ useValidateProps(propsWithDefault, DSDataTableMultiSelectCellPropTypes);
15
+ const xstyledProps = useGetXstyledProps(propsWithDefault);
16
+ return React2.useMemo(
17
+ () => ({
18
+ propsWithDefault,
19
+ xstyledProps
20
+ }),
21
+ [propsWithDefault, xstyledProps]
22
+ );
23
+ };
24
+ export {
25
+ useDataTableMultiSelectCell
26
+ };
27
+ //# sourceMappingURL=useDataTableMultiSelectCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useDataTableMultiSelectCell.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypes,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableMultiSelectCellCTX {\n propsWithDefault: DSDataTableMultiSelectCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableMultiSelectCell = (propsFromUser: DSDataTableMultiSelectCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableMultiSelectCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableMultiSelectCellPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n }),\n [propsWithDefault, xstyledProps],\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,oBAAoB,oCAAoC;AACjE;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AACP,SAAS,wBAAwB;AAQ1B,MAAM,8BAA8B,CAAC,kBAAqD;AAI/F,QAAM,mBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,mBAAiB,kBAAkB,mCAAmC;AAItE,QAAM,eAAe,mBAAmB,gBAAgB;AAExD,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,YAAY;AAAA,EACjC;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
3
+ import { DSDataTableMultiSelectCellName } from "../constants/index.js";
4
+ const useValidateProps = (props, propTypes) => {
5
+ useValidateTypescriptPropTypes(props, propTypes, DSDataTableMultiSelectCellName);
6
+ };
7
+ export {
8
+ useValidateProps
9
+ };
10
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useValidateProps.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { type DSDataTableMultiSelectCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableMultiSelectCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableMultiSelectCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableMultiSelectCellName);\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,sCAAsC;AAExC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,8BAA8B;AACjF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { slotObjectToDataTestIds } from "@elliemae/ds-system";
3
+ const DSDataTableMultiSelectCellName = "DSDataTableMultiSelectCell";
4
+ const DATA_TABLE_MULTI_SELECT_CELL_SLOTS = {
5
+ ROOT: "root",
6
+ CHECKBOX: "checkbox"
7
+ };
8
+ const DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(
9
+ DSDataTableMultiSelectCellName,
10
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS
11
+ );
12
+ export {
13
+ DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID,
14
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS,
15
+ DSDataTableMultiSelectCellName
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSDataTableMultiSelectCellName = 'DSDataTableMultiSelectCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_MULTI_SELECT_CELL_SLOTS = {\n ROOT: 'root',\n CHECKBOX: 'checkbox',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableMultiSelectCellName,\n DATA_TABLE_MULTI_SELECT_CELL_SLOTS,\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,iCAAiC;AAGvC,MAAM,qCAAqC;AAAA,EAChD,MAAM;AAAA,EACN,UAAU;AACZ;AAGO,MAAM,2CAA2C;AAAA,EACtD;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema } from "./DSDataTableMultiSelectCell.js";
3
+ import {} from "./react-desc-prop-types.js";
4
+ import { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID } from "./constants/index.js";
5
+ export {
6
+ DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID,
7
+ DATA_TABLE_MULTI_SELECT_CELL_SLOTS,
8
+ DSDataTableMultiSelectCell,
9
+ DSDataTableMultiSelectCellWithSchema
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -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", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema } from './DSDataTableMultiSelectCell.js';\nexport { type DSDataTableMultiSelectCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID } from './constants/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,4BAA4B,4CAA4C;AACjF,eAAiD;AACjD,SAAS,oCAAoC,gDAAgD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from "@elliemae/ds-props-helpers";
3
+ import { DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS } from "./constants/index.js";
4
+ const defaultProps = {
5
+ checked: false,
6
+ disabled: false
7
+ };
8
+ const DSDataTableMultiSelectCellPropTypes = {
9
+ ...xstyledPropTypes,
10
+ ...getPropsPerSlotPropTypes(DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS),
11
+ className: PropTypes.string.description("className for the wrapper"),
12
+ checked: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(["mixed"])]).description(
13
+ "Whether the checkbox is checked"
14
+ ),
15
+ disabled: PropTypes.bool.description("Whether the checkbox is disabled"),
16
+ onChange: PropTypes.func.description("Callback when the checkbox is toggled")
17
+ };
18
+ const DSDataTableMultiSelectCellPropTypesSchema = DSDataTableMultiSelectCellPropTypes;
19
+ export {
20
+ DSDataTableMultiSelectCellPropTypes,
21
+ DSDataTableMultiSelectCellPropTypesSchema,
22
+ defaultProps
23
+ };
24
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableMultiSelectCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: false;\n checked: 'mixed' | boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableMultiSelectCellName,\n typeof DATA_TABLE_MULTI_SELECT_CELL_SLOTS\n > {\n className?: string;\n onChange?: (newVal: boolean) => void;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableMultiSelectCellT.DefaultProps = {\n checked: false,\n disabled: false,\n};\n\nexport const DSDataTableMultiSelectCellPropTypes: DSPropTypesSchema<DSDataTableMultiSelectCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n checked: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['mixed'])]).description(\n 'Whether the checkbox is checked',\n ),\n disabled: PropTypes.bool.description('Whether the checkbox is disabled'),\n onChange: PropTypes.func.description('Callback when the checkbox is toggled'),\n};\n\nexport const DSDataTableMultiSelectCellPropTypesSchema =\n DSDataTableMultiSelectCellPropTypes as unknown as WeakValidationMap<DSDataTableMultiSelectCellT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,kBAAkB,gCAAgC;AAEtE,SAAS,gCAAgC,0CAA0C;AAyB5E,MAAM,eAAyD;AAAA,EACpE,SAAS;AAAA,EACT,UAAU;AACZ;AAEO,MAAM,sCAA4F;AAAA,EACvG,GAAG;AAAA,EACH,GAAG,yBAAyB,gCAAgC,kCAAkC;AAAA,EAC9F,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,SAAS,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;AAAA,IACzE;AAAA,EACF;AAAA,EACA,UAAU,UAAU,KAAK,YAAY,kCAAkC;AAAA,EACvE,UAAU,UAAU,KAAK,YAAY,uCAAuC;AAC9E;AAEO,MAAM,4CACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type DSDataTableMultiSelectCellT } from './react-desc-prop-types.js';
3
+ declare const DSDataTableMultiSelectCell: React.ComponentType<DSDataTableMultiSelectCellT.Props>;
4
+ declare const DSDataTableMultiSelectCellWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSDataTableMultiSelectCellT.Props>;
5
+ export { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema };
@@ -0,0 +1,11 @@
1
+ import { useGetXstyledProps } from '@elliemae/ds-props-helpers';
2
+ import { type DSDataTableMultiSelectCellT } from '../react-desc-prop-types.js';
3
+ export interface DataTableMultiSelectCellCTX {
4
+ propsWithDefault: DSDataTableMultiSelectCellT.InternalProps;
5
+ xstyledProps: ReturnType<typeof useGetXstyledProps>;
6
+ instanceUid: string;
7
+ }
8
+ export declare const useDataTableMultiSelectCell: (propsFromUser: DSDataTableMultiSelectCellT.Props) => {
9
+ propsWithDefault: DSDataTableMultiSelectCellT.InternalProps;
10
+ xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
11
+ };
@@ -0,0 +1,3 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import { type DSDataTableMultiSelectCellT } from '../react-desc-prop-types.js';
3
+ export declare const useValidateProps: (props: DSDataTableMultiSelectCellT.InternalProps, propTypes: WeakValidationMap<unknown>) => void;
@@ -0,0 +1,6 @@
1
+ export declare const DSDataTableMultiSelectCellName = "DSDataTableMultiSelectCell";
2
+ export declare const DATA_TABLE_MULTI_SELECT_CELL_SLOTS: {
3
+ readonly ROOT: "root";
4
+ readonly CHECKBOX: "checkbox";
5
+ };
6
+ export declare const DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID: Record<string, string>;
@@ -0,0 +1,3 @@
1
+ export { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema } from './DSDataTableMultiSelectCell.js';
2
+ export { type DSDataTableMultiSelectCellT } from './react-desc-prop-types.js';
3
+ export { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DATA_TABLE_MULTI_SELECT_CELL_DATA_TESTID } from './constants/index.js';
@@ -0,0 +1,23 @@
1
+ import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
+ import { DSDataTableMultiSelectCellName, DATA_TABLE_MULTI_SELECT_CELL_SLOTS } from './constants/index.js';
4
+ import type { WeakValidationMap } from 'react';
5
+ export declare namespace DSDataTableMultiSelectCellT {
6
+ interface RequiredProps {
7
+ }
8
+ interface DefaultProps {
9
+ disabled: false;
10
+ checked: 'mixed' | boolean;
11
+ }
12
+ interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableMultiSelectCellName, typeof DATA_TABLE_MULTI_SELECT_CELL_SLOTS> {
13
+ className?: string;
14
+ onChange?: (newVal: boolean) => void;
15
+ }
16
+ interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {
17
+ }
18
+ interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {
19
+ }
20
+ }
21
+ export declare const defaultProps: DSDataTableMultiSelectCellT.DefaultProps;
22
+ export declare const DSDataTableMultiSelectCellPropTypes: DSPropTypesSchema<DSDataTableMultiSelectCellT.Props>;
23
+ export declare const DSDataTableMultiSelectCellPropTypesSchema: WeakValidationMap<DSDataTableMultiSelectCellT.Props>;
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@elliemae/ds-data-table-multi-select-cell",
3
+ "version": "3.31.0-next.6",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Data Table Multi Select Cell",
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
+ "@xstyled/styled-components": "~3.6.0",
39
+ "@elliemae/ds-data-table-cell": "3.31.0-next.6",
40
+ "@elliemae/ds-system": "3.31.0-next.6",
41
+ "@elliemae/ds-typescript-helpers": "3.31.0-next.6",
42
+ "@elliemae/ds-utilities": "3.31.0-next.6",
43
+ "@elliemae/ds-form-checkbox": "3.31.0-next.6",
44
+ "@elliemae/ds-props-helpers": "3.31.0-next.6",
45
+ "@elliemae/ds-grid": "3.31.0-next.6"
46
+ },
47
+ "devDependencies": {
48
+ "@elliemae/pui-cli": "~9.0.0-next.31",
49
+ "styled-components": "~5.3.9",
50
+ "@elliemae/ds-monorepo-devops": "3.31.0-next.6"
51
+ },
52
+ "peerDependencies": {
53
+ "@testing-library/jest-dom": "~5.16.4",
54
+ "@testing-library/react": "~12.1.3",
55
+ "@testing-library/user-event": "~13.5.0",
56
+ "react": "^17.0.2",
57
+ "react-dom": "^17.0.2",
58
+ "styled-components": "~5.3.9"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public",
62
+ "typeSafety": false
63
+ },
64
+ "scripts": {
65
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
66
+ "test": "pui-cli test --passWithNoTests",
67
+ "lint": "node ../../../scripts/lint.mjs --fix",
68
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
69
+ "dts": "node ../../scripts/dts.mjs",
70
+ "dts:withdeps": "pnpm --filter {.}... dts",
71
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
72
+ "dev:build": "pnpm --filter {.}... build",
73
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
74
+ "checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
75
+ }
76
+ }