@elliemae/ds-data-table-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/DSDataTableCell.js +58 -0
  2. package/dist/cjs/DSDataTableCell.js.map +7 -0
  3. package/dist/cjs/config/useDataTableCell.js +51 -0
  4. package/dist/cjs/config/useDataTableCell.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 +43 -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 +47 -0
  13. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  14. package/dist/esm/DSDataTableCell.js +28 -0
  15. package/dist/esm/DSDataTableCell.js.map +7 -0
  16. package/dist/esm/config/useDataTableCell.js +21 -0
  17. package/dist/esm/config/useDataTableCell.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 +13 -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 +17 -0
  26. package/dist/esm/react-desc-prop-types.js.map +7 -0
  27. package/dist/types/DSDataTableCell.d.ts +5 -0
  28. package/dist/types/config/useDataTableCell.d.ts +5 -0
  29. package/dist/types/config/useValidateProps.d.ts +3 -0
  30. package/dist/types/constants/index.d.ts +5 -0
  31. package/dist/types/index.d.ts +3 -0
  32. package/dist/types/react-desc-prop-types.d.ts +21 -0
  33. package/dist/types/tests/DSDataTableCell.test.d.ts +1 -0
  34. package/package.json +73 -0
@@ -0,0 +1,58 @@
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 DSDataTableCell_exports = {};
30
+ __export(DSDataTableCell_exports, {
31
+ DSDataTableCell: () => DSDataTableCell,
32
+ DSDataTableCellWithSchema: () => DSDataTableCellWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSDataTableCell_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_react_desc_prop_types = require("./react-desc-prop-types.js");
40
+ var import_useDataTableCell = require("./config/useDataTableCell.js");
41
+ var import_constants = require("./constants/index.js");
42
+ var import_ds_utilities = require("@elliemae/ds-utilities");
43
+ const StyledWrapper = (0, import_ds_system.styled)("div", { name: import_constants.DSDataTableCellName, slot: import_constants.DATA_TABLE_CELL_SLOTS.ROOT })`
44
+ display: flex;
45
+ align-items: center;
46
+ position: relative;
47
+ width: 100%;
48
+ padding: 0 ${({ theme }) => theme.space.xxs};
49
+ `;
50
+ const DSDataTableCell = (props) => {
51
+ const { propsWithDefault, xstyledProps } = (0, import_useDataTableCell.useDataTableCell)(props);
52
+ const ownerPropsConfig = (0, import_ds_utilities.useOwnerProps)(propsWithDefault);
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: propsWithDefault.children });
54
+ };
55
+ DSDataTableCell.displayName = import_constants.DSDataTableCellName;
56
+ const DSDataTableCellWithSchema = (0, import_ds_props_helpers.describe)(DSDataTableCell);
57
+ DSDataTableCellWithSchema.propTypes = import_react_desc_prop_types.DSDataTableCellPropTypesSchema;
58
+ //# sourceMappingURL=DSDataTableCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSDataTableCell.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 { type DSDataTableCellT, DSDataTableCellPropTypesSchema } from './react-desc-prop-types.js';\nimport { useDataTableCell } from './config/useDataTableCell.js';\nimport { DATA_TABLE_CELL_SLOTS, DSDataTableCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled('div', { name: DSDataTableCellName, slot: DATA_TABLE_CELL_SLOTS.ROOT })`\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n padding: 0 ${({ theme }) => theme.space.xxs};\n`;\n\nconst DSDataTableCell: React.ComponentType<DSDataTableCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledWrapper>\n );\n};\n\nDSDataTableCell.displayName = DSDataTableCellName;\nconst DSDataTableCellWithSchema = describe(DSDataTableCell);\nDSDataTableCellWithSchema.propTypes = DSDataTableCellPropTypesSchema;\n\nexport { DSDataTableCell, DSDataTableCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBnB;AAnBJ,8BAAyB;AACzB,uBAAuB;AACvB,mCAAsE;AACtE,8BAAiC;AACjC,uBAA2D;AAC3D,0BAA8B;AAE9B,MAAM,oBAAgB,yBAAO,OAAO,EAAE,MAAM,sCAAqB,MAAM,uCAAsB,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpF,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM;AAAA;AAG1C,MAAM,kBAA+D,CAAC,UAAU;AAC9E,QAAM,EAAE,kBAAkB,aAAa,QAAI,0CAAiB,KAAK;AACjE,QAAM,uBAAmB,mCAAc,gBAAgB;AACvD,SACE,4CAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC7E,2BAAiB,UACpB;AAEJ;AAEA,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,kCAAS,eAAe;AAC1D,0BAA0B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,51 @@
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 useDataTableCell_exports = {};
30
+ __export(useDataTableCell_exports, {
31
+ useDataTableCell: () => useDataTableCell
32
+ });
33
+ module.exports = __toCommonJS(useDataTableCell_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 useDataTableCell = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
41
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSDataTableCellPropTypes);
42
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
43
+ return import_react.default.useMemo(
44
+ () => ({
45
+ propsWithDefault,
46
+ xstyledProps
47
+ }),
48
+ [propsWithDefault, xstyledProps]
49
+ );
50
+ };
51
+ //# sourceMappingURL=useDataTableCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useDataTableCell.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { type DSDataTableCellT, DSDataTableCellPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const useDataTableCell = (propsFromUser: DSDataTableCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableCellT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSDataTableCellPropTypes);\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,mCAA8E;AAC9E,8BAAiC;AAE1B,MAAM,mBAAmB,CAAC,kBAA0C;AAIzE,QAAM,uBAAmB,sDAA6D,eAAe,yCAAY;AACjH,gDAAiB,kBAAkB,qDAAwB;AAI3D,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.DSDataTableCellName);
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 DSDataTableCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableCellName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAoC;AAE7B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,oCAAmB;AACtE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,43 @@
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_CELL_DATA_TESTID: () => DATA_TABLE_CELL_DATA_TESTID,
32
+ DATA_TABLE_CELL_SLOTS: () => DATA_TABLE_CELL_SLOTS,
33
+ DSDataTableCellName: () => DSDataTableCellName
34
+ });
35
+ module.exports = __toCommonJS(constants_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
38
+ const DSDataTableCellName = "DSDataTableCell";
39
+ const DATA_TABLE_CELL_SLOTS = {
40
+ ROOT: "root"
41
+ };
42
+ const DATA_TABLE_CELL_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(DSDataTableCellName, DATA_TABLE_CELL_SLOTS);
43
+ //# 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 DSDataTableCellName = 'DSDataTableCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_CELL_SLOTS = {\n ROOT: 'root',\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_CELL_DATA_TESTID = slotObjectToDataTestIds(DSDataTableCellName, DATA_TABLE_CELL_SLOTS);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,sBAAsB;AAG5B,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,kCAA8B,0CAAwB,qBAAqB,qBAAqB;",
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_CELL_DATA_TESTID: () => import_constants.DATA_TABLE_CELL_DATA_TESTID,
32
+ DATA_TABLE_CELL_SLOTS: () => import_constants.DATA_TABLE_CELL_SLOTS,
33
+ DSDataTableCell: () => import_DSDataTableCell.DSDataTableCell,
34
+ DSDataTableCellWithSchema: () => import_DSDataTableCell.DSDataTableCellWithSchema
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_DSDataTableCell = require("./DSDataTableCell.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 { DSDataTableCell, DSDataTableCellWithSchema } from './DSDataTableCell.js';\nexport { type DSDataTableCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_CELL_SLOTS, DATA_TABLE_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,6BAA2D;AAC3D,mCAAsC;AACtC,uBAAmE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
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 react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSDataTableCellPropTypes: () => DSDataTableCellPropTypes,
32
+ DSDataTableCellPropTypesSchema: () => DSDataTableCellPropTypesSchema,
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
+ const DSDataTableCellPropTypes = {
41
+ ...import_ds_props_helpers.xstyledPropTypes,
42
+ ...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDataTableCellName, import_constants.DATA_TABLE_CELL_SLOTS),
43
+ className: import_ds_props_helpers.PropTypes.string.description("className for the wrapper"),
44
+ children: import_ds_props_helpers.PropTypes.node.description("children for the wrapper")
45
+ };
46
+ const DSDataTableCellPropTypesSchema = DSDataTableCellPropTypes;
47
+ //# 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 { DSDataTableCellName, DATA_TABLE_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableCellName, typeof DATA_TABLE_CELL_SLOTS> {\n className?: string;\n children?: React.ReactNode;\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: DSDataTableCellT.DefaultProps = {};\n\nexport const DSDataTableCellPropTypes: DSPropTypesSchema<DSDataTableCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableCellName, DATA_TABLE_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n children: PropTypes.node.description('children for the wrapper'),\n};\n\nexport const DSDataTableCellPropTypesSchema =\n DSDataTableCellPropTypes as unknown as WeakValidationMap<DSDataTableCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsE;AAEtE,uBAA2D;AAmBpD,MAAM,eAA8C,CAAC;AAErD,MAAM,2BAAsE;AAAA,EACjF,GAAG;AAAA,EACH,OAAG,kDAAyB,sCAAqB,sCAAqB;AAAA,EACtE,WAAW,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,kCAAU,KAAK,YAAY,0BAA0B;AACjE;AAEO,MAAM,iCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
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 { DSDataTableCellPropTypesSchema } from "./react-desc-prop-types.js";
6
+ import { useDataTableCell } from "./config/useDataTableCell.js";
7
+ import { DATA_TABLE_CELL_SLOTS, DSDataTableCellName } from "./constants/index.js";
8
+ import { useOwnerProps } from "@elliemae/ds-utilities";
9
+ const StyledWrapper = styled("div", { name: DSDataTableCellName, slot: DATA_TABLE_CELL_SLOTS.ROOT })`
10
+ display: flex;
11
+ align-items: center;
12
+ position: relative;
13
+ width: 100%;
14
+ padding: 0 ${({ theme }) => theme.space.xxs};
15
+ `;
16
+ const DSDataTableCell = (props) => {
17
+ const { propsWithDefault, xstyledProps } = useDataTableCell(props);
18
+ const ownerPropsConfig = useOwnerProps(propsWithDefault);
19
+ return /* @__PURE__ */ jsx(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: propsWithDefault.children });
20
+ };
21
+ DSDataTableCell.displayName = DSDataTableCellName;
22
+ const DSDataTableCellWithSchema = describe(DSDataTableCell);
23
+ DSDataTableCellWithSchema.propTypes = DSDataTableCellPropTypesSchema;
24
+ export {
25
+ DSDataTableCell,
26
+ DSDataTableCellWithSchema
27
+ };
28
+ //# sourceMappingURL=DSDataTableCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableCell.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 { type DSDataTableCellT, DSDataTableCellPropTypesSchema } from './react-desc-prop-types.js';\nimport { useDataTableCell } from './config/useDataTableCell.js';\nimport { DATA_TABLE_CELL_SLOTS, DSDataTableCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled('div', { name: DSDataTableCellName, slot: DATA_TABLE_CELL_SLOTS.ROOT })`\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n padding: 0 ${({ theme }) => theme.space.xxs};\n`;\n\nconst DSDataTableCell: React.ComponentType<DSDataTableCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledWrapper>\n );\n};\n\nDSDataTableCell.displayName = DSDataTableCellName;\nconst DSDataTableCellWithSchema = describe(DSDataTableCell);\nDSDataTableCellWithSchema.propTypes = DSDataTableCellPropTypesSchema;\n\nexport { DSDataTableCell, DSDataTableCellWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACoBnB;AAnBJ,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAgC,sCAAsC;AACtE,SAAS,wBAAwB;AACjC,SAAS,uBAAuB,2BAA2B;AAC3D,SAAS,qBAAqB;AAE9B,MAAM,gBAAgB,OAAO,OAAO,EAAE,MAAM,qBAAqB,MAAM,sBAAsB,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpF,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM;AAAA;AAG1C,MAAM,kBAA+D,CAAC,UAAU;AAC9E,QAAM,EAAE,kBAAkB,aAAa,IAAI,iBAAiB,KAAK;AACjE,QAAM,mBAAmB,cAAc,gBAAgB;AACvD,SACE,oBAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC7E,2BAAiB,UACpB;AAEJ;AAEA,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,SAAS,eAAe;AAC1D,0BAA0B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
4
+ import { DSDataTableCellPropTypes, defaultProps } from "../react-desc-prop-types.js";
5
+ import { useValidateProps } from "./useValidateProps.js";
6
+ const useDataTableCell = (propsFromUser) => {
7
+ const propsWithDefault = useMemoMergePropsWithDefault(propsFromUser, defaultProps);
8
+ useValidateProps(propsWithDefault, DSDataTableCellPropTypes);
9
+ const xstyledProps = useGetXstyledProps(propsWithDefault);
10
+ return React2.useMemo(
11
+ () => ({
12
+ propsWithDefault,
13
+ xstyledProps
14
+ }),
15
+ [propsWithDefault, xstyledProps]
16
+ );
17
+ };
18
+ export {
19
+ useDataTableCell
20
+ };
21
+ //# sourceMappingURL=useDataTableCell.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useDataTableCell.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { type DSDataTableCellT, DSDataTableCellPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const useDataTableCell = (propsFromUser: DSDataTableCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableCellT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSDataTableCellPropTypes);\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,SAAgC,0BAA0B,oBAAoB;AAC9E,SAAS,wBAAwB;AAE1B,MAAM,mBAAmB,CAAC,kBAA0C;AAIzE,QAAM,mBAAmB,6BAA6D,eAAe,YAAY;AACjH,mBAAiB,kBAAkB,wBAAwB;AAI3D,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 { DSDataTableCellName } from "../constants/index.js";
4
+ const useValidateProps = (props, propTypes) => {
5
+ useValidateTypescriptPropTypes(props, propTypes, DSDataTableCellName);
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 DSDataTableCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableCellName);\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,2BAA2B;AAE7B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,mBAAmB;AACtE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { slotObjectToDataTestIds } from "@elliemae/ds-system";
3
+ const DSDataTableCellName = "DSDataTableCell";
4
+ const DATA_TABLE_CELL_SLOTS = {
5
+ ROOT: "root"
6
+ };
7
+ const DATA_TABLE_CELL_DATA_TESTID = slotObjectToDataTestIds(DSDataTableCellName, DATA_TABLE_CELL_SLOTS);
8
+ export {
9
+ DATA_TABLE_CELL_DATA_TESTID,
10
+ DATA_TABLE_CELL_SLOTS,
11
+ DSDataTableCellName
12
+ };
13
+ //# 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 DSDataTableCellName = 'DSDataTableCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_CELL_SLOTS = {\n ROOT: 'root',\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_CELL_DATA_TESTID = slotObjectToDataTestIds(DSDataTableCellName, DATA_TABLE_CELL_SLOTS);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,sBAAsB;AAG5B,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,8BAA8B,wBAAwB,qBAAqB,qBAAqB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { DSDataTableCell, DSDataTableCellWithSchema } from "./DSDataTableCell.js";
3
+ import {} from "./react-desc-prop-types.js";
4
+ import { DATA_TABLE_CELL_SLOTS, DATA_TABLE_CELL_DATA_TESTID } from "./constants/index.js";
5
+ export {
6
+ DATA_TABLE_CELL_DATA_TESTID,
7
+ DATA_TABLE_CELL_SLOTS,
8
+ DSDataTableCell,
9
+ DSDataTableCellWithSchema
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 { DSDataTableCell, DSDataTableCellWithSchema } from './DSDataTableCell.js';\nexport { type DSDataTableCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_CELL_SLOTS, DATA_TABLE_CELL_DATA_TESTID } from './constants/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,iBAAiB,iCAAiC;AAC3D,eAAsC;AACtC,SAAS,uBAAuB,mCAAmC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from "@elliemae/ds-props-helpers";
3
+ import { DSDataTableCellName, DATA_TABLE_CELL_SLOTS } from "./constants/index.js";
4
+ const defaultProps = {};
5
+ const DSDataTableCellPropTypes = {
6
+ ...xstyledPropTypes,
7
+ ...getPropsPerSlotPropTypes(DSDataTableCellName, DATA_TABLE_CELL_SLOTS),
8
+ className: PropTypes.string.description("className for the wrapper"),
9
+ children: PropTypes.node.description("children for the wrapper")
10
+ };
11
+ const DSDataTableCellPropTypesSchema = DSDataTableCellPropTypes;
12
+ export {
13
+ DSDataTableCellPropTypes,
14
+ DSDataTableCellPropTypesSchema,
15
+ defaultProps
16
+ };
17
+ //# 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 { DSDataTableCellName, DATA_TABLE_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableCellName, typeof DATA_TABLE_CELL_SLOTS> {\n className?: string;\n children?: React.ReactNode;\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: DSDataTableCellT.DefaultProps = {};\n\nexport const DSDataTableCellPropTypes: DSPropTypesSchema<DSDataTableCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableCellName, DATA_TABLE_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n children: PropTypes.node.description('children for the wrapper'),\n};\n\nexport const DSDataTableCellPropTypesSchema =\n DSDataTableCellPropTypes as unknown as WeakValidationMap<DSDataTableCellT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,kBAAkB,gCAAgC;AAEtE,SAAS,qBAAqB,6BAA6B;AAmBpD,MAAM,eAA8C,CAAC;AAErD,MAAM,2BAAsE;AAAA,EACjF,GAAG;AAAA,EACH,GAAG,yBAAyB,qBAAqB,qBAAqB;AAAA,EACtE,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,UAAU,KAAK,YAAY,0BAA0B;AACjE;AAEO,MAAM,iCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type DSDataTableCellT } from './react-desc-prop-types.js';
3
+ declare const DSDataTableCell: React.ComponentType<DSDataTableCellT.Props>;
4
+ declare const DSDataTableCellWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSDataTableCellT.Props>;
5
+ export { DSDataTableCell, DSDataTableCellWithSchema };
@@ -0,0 +1,5 @@
1
+ import { type DSDataTableCellT } from '../react-desc-prop-types.js';
2
+ export declare const useDataTableCell: (propsFromUser: DSDataTableCellT.Props) => {
3
+ propsWithDefault: DSDataTableCellT.InternalProps;
4
+ xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
5
+ };
@@ -0,0 +1,3 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import { type DSDataTableCellT } from '../react-desc-prop-types.js';
3
+ export declare const useValidateProps: (props: DSDataTableCellT.InternalProps, propTypes: WeakValidationMap<unknown>) => void;
@@ -0,0 +1,5 @@
1
+ export declare const DSDataTableCellName = "DSDataTableCell";
2
+ export declare const DATA_TABLE_CELL_SLOTS: {
3
+ readonly ROOT: "root";
4
+ };
5
+ export declare const DATA_TABLE_CELL_DATA_TESTID: Record<string, string>;
@@ -0,0 +1,3 @@
1
+ export { DSDataTableCell, DSDataTableCellWithSchema } from './DSDataTableCell.js';
2
+ export { type DSDataTableCellT } from './react-desc-prop-types.js';
3
+ export { DATA_TABLE_CELL_SLOTS, DATA_TABLE_CELL_DATA_TESTID } from './constants/index.js';
@@ -0,0 +1,21 @@
1
+ import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
+ import { DSDataTableCellName, DATA_TABLE_CELL_SLOTS } from './constants/index.js';
4
+ import type { WeakValidationMap } from 'react';
5
+ export declare namespace DSDataTableCellT {
6
+ interface RequiredProps {
7
+ }
8
+ interface DefaultProps {
9
+ }
10
+ interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableCellName, typeof DATA_TABLE_CELL_SLOTS> {
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+ interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {
15
+ }
16
+ interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {
17
+ }
18
+ }
19
+ export declare const defaultProps: DSDataTableCellT.DefaultProps;
20
+ export declare const DSDataTableCellPropTypes: DSPropTypesSchema<DSDataTableCellT.Props>;
21
+ export declare const DSDataTableCellPropTypesSchema: WeakValidationMap<DSDataTableCellT.Props>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@elliemae/ds-data-table-cell",
3
+ "version": "3.31.0-next.6",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Data Table 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-props-helpers": "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
+ },
44
+ "devDependencies": {
45
+ "@elliemae/pui-cli": "~9.0.0-next.31",
46
+ "styled-components": "~5.3.9",
47
+ "@elliemae/ds-monorepo-devops": "3.31.0-next.6"
48
+ },
49
+ "peerDependencies": {
50
+ "@testing-library/jest-dom": "~5.16.4",
51
+ "@testing-library/react": "~12.1.3",
52
+ "@testing-library/user-event": "~13.5.0",
53
+ "react": "^17.0.2",
54
+ "react-dom": "^17.0.2",
55
+ "styled-components": "~5.3.9"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public",
59
+ "typeSafety": true
60
+ },
61
+ "scripts": {
62
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
63
+ "test": "pui-cli test --passWithNoTests",
64
+ "lint": "node ../../../scripts/lint.mjs --fix",
65
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
66
+ "dts": "node ../../scripts/dts.mjs",
67
+ "dts:withdeps": "pnpm --filter {.}... dts",
68
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
69
+ "dev:build": "pnpm --filter {.}... build",
70
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
71
+ "checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
72
+ }
73
+ }