@elliemae/ds-data-table-action-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.
- package/dist/cjs/DSDataTableActionCell.js +63 -0
- package/dist/cjs/DSDataTableActionCell.js.map +7 -0
- package/dist/cjs/config/useDataTableActionCell.js +54 -0
- package/dist/cjs/config/useDataTableActionCell.js.map +7 -0
- package/dist/cjs/config/useValidateProps.js +40 -0
- package/dist/cjs/config/useValidateProps.js.map +7 -0
- package/dist/cjs/constants/index.js +46 -0
- package/dist/cjs/constants/index.js.map +7 -0
- package/dist/cjs/index.js +41 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/react-desc-prop-types.js +47 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/esm/DSDataTableActionCell.js +33 -0
- package/dist/esm/DSDataTableActionCell.js.map +7 -0
- package/dist/esm/config/useDataTableActionCell.js +24 -0
- package/dist/esm/config/useDataTableActionCell.js.map +7 -0
- package/dist/esm/config/useValidateProps.js +10 -0
- package/dist/esm/config/useValidateProps.js.map +7 -0
- package/dist/esm/constants/index.js +16 -0
- package/dist/esm/constants/index.js.map +7 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/react-desc-prop-types.js +17 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/types/DSDataTableActionCell.d.ts +5 -0
- package/dist/types/config/useDataTableActionCell.d.ts +11 -0
- package/dist/types/config/useValidateProps.d.ts +3 -0
- package/dist/types/constants/index.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/react-desc-prop-types.d.ts +21 -0
- package/dist/types/tests/DSDataTableActionCell.test.d.ts +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,63 @@
|
|
|
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 DSDataTableActionCell_exports = {};
|
|
30
|
+
__export(DSDataTableActionCell_exports, {
|
|
31
|
+
DSDataTableActionCell: () => DSDataTableActionCell,
|
|
32
|
+
DSDataTableActionCellWithSchema: () => DSDataTableActionCellWithSchema
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DSDataTableActionCell_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_useDataTableActionCell = require("./config/useDataTableActionCell.js");
|
|
41
|
+
var import_constants = require("./constants/index.js");
|
|
42
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
43
|
+
var import_ds_data_table_cell = require("@elliemae/ds-data-table-cell");
|
|
44
|
+
const StyledWrapper = (0, import_ds_system.styled)(import_ds_data_table_cell.DSDataTableCell, {
|
|
45
|
+
name: import_constants.DSDataTableActionCellName,
|
|
46
|
+
slot: import_constants.DATA_TABLE_ACTION_CELL_SLOTS.ROOT
|
|
47
|
+
})`
|
|
48
|
+
padding: 0;
|
|
49
|
+
position: sticky;
|
|
50
|
+
display: flex;
|
|
51
|
+
right: 0;
|
|
52
|
+
background: white;
|
|
53
|
+
overflow: visible;
|
|
54
|
+
`;
|
|
55
|
+
const DSDataTableActionCell = (props) => {
|
|
56
|
+
const { propsWithDefault, xstyledProps } = (0, import_useDataTableActionCell.useDataTableActionCell)(props);
|
|
57
|
+
const ownerPropsConfig = (0, import_ds_utilities.useOwnerProps)(propsWithDefault);
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: propsWithDefault.children });
|
|
59
|
+
};
|
|
60
|
+
DSDataTableActionCell.displayName = import_constants.DSDataTableActionCellName;
|
|
61
|
+
const DSDataTableActionCellWithSchema = (0, import_ds_props_helpers.describe)(DSDataTableActionCell);
|
|
62
|
+
DSDataTableActionCellWithSchema.propTypes = import_react_desc_prop_types.DSDataTableActionCellPropTypesSchema;
|
|
63
|
+
//# sourceMappingURL=DSDataTableActionCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSDataTableActionCell.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 DSDataTableActionCellT, DSDataTableActionCellPropTypesSchema } from './react-desc-prop-types.js';\nimport { useDataTableActionCell } from './config/useDataTableActionCell.js';\nimport { DATA_TABLE_ACTION_CELL_SLOTS, DSDataTableActionCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableActionCellName,\n slot: DATA_TABLE_ACTION_CELL_SLOTS.ROOT,\n})`\n padding: 0;\n position: sticky;\n display: flex;\n right: 0;\n background: white;\n overflow: visible;\n`;\n\nconst DSDataTableActionCell: React.ComponentType<DSDataTableActionCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableActionCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledWrapper>\n );\n};\n\nDSDataTableActionCell.displayName = DSDataTableActionCellName;\nconst DSDataTableActionCellWithSchema = describe(DSDataTableActionCell);\nDSDataTableActionCellWithSchema.propTypes = DSDataTableActionCellPropTypesSchema;\n\nexport { DSDataTableActionCell, DSDataTableActionCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADyBnB;AAxBJ,8BAAyB;AACzB,uBAAuB;AACvB,mCAAkF;AAClF,oCAAuC;AACvC,uBAAwE;AACxE,0BAA8B;AAC9B,gCAAgC;AAEhC,MAAM,oBAAgB,yBAAO,2CAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,8CAA6B;AACrC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASD,MAAM,wBAA2E,CAAC,UAAU;AAC1F,QAAM,EAAE,kBAAkB,aAAa,QAAI,sDAAuB,KAAK;AACvE,QAAM,uBAAmB,mCAAc,gBAAgB;AACvD,SACE,4CAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC7E,2BAAiB,UACpB;AAEJ;AAEA,sBAAsB,cAAc;AACpC,MAAM,sCAAkC,kCAAS,qBAAqB;AACtE,gCAAgC,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 useDataTableActionCell_exports = {};
|
|
30
|
+
__export(useDataTableActionCell_exports, {
|
|
31
|
+
useDataTableActionCell: () => useDataTableActionCell
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(useDataTableActionCell_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 useDataTableActionCell = (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.DSDataTableActionCellPropTypes);
|
|
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=useDataTableActionCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/config/useDataTableActionCell.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { type DSDataTableActionCellT, DSDataTableActionCellPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableActionCellCTX {\n propsWithDefault: DSDataTableActionCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableActionCell = (propsFromUser: DSDataTableActionCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableActionCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableActionCellPropTypes);\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,mCAA0F;AAC1F,8BAAiC;AAQ1B,MAAM,yBAAyB,CAAC,kBAAgD;AAIrF,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,2DAA8B;AAIjE,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.DSDataTableActionCellName);
|
|
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 DSDataTableActionCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableActionCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableActionCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableActionCellName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAA0C;AAEnC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,0CAAyB;AAC5E;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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_ACTION_CELL_DATA_TESTID: () => DATA_TABLE_ACTION_CELL_DATA_TESTID,
|
|
32
|
+
DATA_TABLE_ACTION_CELL_SLOTS: () => DATA_TABLE_ACTION_CELL_SLOTS,
|
|
33
|
+
DSDataTableActionCellName: () => DSDataTableActionCellName
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(constants_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
38
|
+
const DSDataTableActionCellName = "DSDataTableActionCell";
|
|
39
|
+
const DATA_TABLE_ACTION_CELL_SLOTS = {
|
|
40
|
+
ROOT: "root"
|
|
41
|
+
};
|
|
42
|
+
const DATA_TABLE_ACTION_CELL_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(
|
|
43
|
+
DSDataTableActionCellName,
|
|
44
|
+
DATA_TABLE_ACTION_CELL_SLOTS
|
|
45
|
+
);
|
|
46
|
+
//# 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 DSDataTableActionCellName = 'DSDataTableActionCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_ACTION_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_ACTION_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableActionCellName,\n DATA_TABLE_ACTION_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,4BAA4B;AAGlC,MAAM,+BAA+B;AAAA,EAC1C,MAAM;AACR;AAGO,MAAM,yCAAqC;AAAA,EAChD;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_ACTION_CELL_DATA_TESTID: () => import_constants.DATA_TABLE_ACTION_CELL_DATA_TESTID,
|
|
32
|
+
DATA_TABLE_ACTION_CELL_SLOTS: () => import_constants.DATA_TABLE_ACTION_CELL_SLOTS,
|
|
33
|
+
DSDataTableActionCell: () => import_DSDataTableActionCell.DSDataTableActionCell,
|
|
34
|
+
DSDataTableActionCellWithSchema: () => import_DSDataTableActionCell.DSDataTableActionCellWithSchema
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var import_DSDataTableActionCell = require("./DSDataTableActionCell.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 { DSDataTableActionCell, DSDataTableActionCellWithSchema } from './DSDataTableActionCell.js';\nexport { type DSDataTableActionCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_ACTION_CELL_SLOTS, DATA_TABLE_ACTION_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,mCAAuE;AACvE,mCAA4C;AAC5C,uBAAiF;",
|
|
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 react_desc_prop_types_exports = {};
|
|
30
|
+
__export(react_desc_prop_types_exports, {
|
|
31
|
+
DSDataTableActionCellPropTypes: () => DSDataTableActionCellPropTypes,
|
|
32
|
+
DSDataTableActionCellPropTypesSchema: () => DSDataTableActionCellPropTypesSchema,
|
|
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 DSDataTableActionCellPropTypes = {
|
|
41
|
+
...import_ds_props_helpers.xstyledPropTypes,
|
|
42
|
+
...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDataTableActionCellName, import_constants.DATA_TABLE_ACTION_CELL_SLOTS),
|
|
43
|
+
className: import_ds_props_helpers.PropTypes.string.description("className for the wrapper"),
|
|
44
|
+
children: import_ds_props_helpers.PropTypes.node.description("className for the wrapper")
|
|
45
|
+
};
|
|
46
|
+
const DSDataTableActionCellPropTypesSchema = DSDataTableActionCellPropTypes;
|
|
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 { DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableActionCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableActionCellName,\n typeof DATA_TABLE_ACTION_CELL_SLOTS\n > {\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: DSDataTableActionCellT.DefaultProps = {};\n\nexport const DSDataTableActionCellPropTypes: DSPropTypesSchema<DSDataTableActionCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n children: PropTypes.node.description('className for the wrapper'),\n};\n\nexport const DSDataTableActionCellPropTypesSchema =\n DSDataTableActionCellPropTypes as unknown as WeakValidationMap<DSDataTableActionCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsE;AAEtE,uBAAwE;AAsBjE,MAAM,eAAoD,CAAC;AAE3D,MAAM,iCAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,OAAG,kDAAyB,4CAA2B,6CAA4B;AAAA,EACnF,WAAW,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,kCAAU,KAAK,YAAY,2BAA2B;AAClE;AAEO,MAAM,uCACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { DSDataTableActionCellPropTypesSchema } from "./react-desc-prop-types.js";
|
|
6
|
+
import { useDataTableActionCell } from "./config/useDataTableActionCell.js";
|
|
7
|
+
import { DATA_TABLE_ACTION_CELL_SLOTS, DSDataTableActionCellName } from "./constants/index.js";
|
|
8
|
+
import { useOwnerProps } from "@elliemae/ds-utilities";
|
|
9
|
+
import { DSDataTableCell } from "@elliemae/ds-data-table-cell";
|
|
10
|
+
const StyledWrapper = styled(DSDataTableCell, {
|
|
11
|
+
name: DSDataTableActionCellName,
|
|
12
|
+
slot: DATA_TABLE_ACTION_CELL_SLOTS.ROOT
|
|
13
|
+
})`
|
|
14
|
+
padding: 0;
|
|
15
|
+
position: sticky;
|
|
16
|
+
display: flex;
|
|
17
|
+
right: 0;
|
|
18
|
+
background: white;
|
|
19
|
+
overflow: visible;
|
|
20
|
+
`;
|
|
21
|
+
const DSDataTableActionCell = (props) => {
|
|
22
|
+
const { propsWithDefault, xstyledProps } = useDataTableActionCell(props);
|
|
23
|
+
const ownerPropsConfig = useOwnerProps(propsWithDefault);
|
|
24
|
+
return /* @__PURE__ */ jsx(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: propsWithDefault.children });
|
|
25
|
+
};
|
|
26
|
+
DSDataTableActionCell.displayName = DSDataTableActionCellName;
|
|
27
|
+
const DSDataTableActionCellWithSchema = describe(DSDataTableActionCell);
|
|
28
|
+
DSDataTableActionCellWithSchema.propTypes = DSDataTableActionCellPropTypesSchema;
|
|
29
|
+
export {
|
|
30
|
+
DSDataTableActionCell,
|
|
31
|
+
DSDataTableActionCellWithSchema
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=DSDataTableActionCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableActionCell.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 DSDataTableActionCellT, DSDataTableActionCellPropTypesSchema } from './react-desc-prop-types.js';\nimport { useDataTableActionCell } from './config/useDataTableActionCell.js';\nimport { DATA_TABLE_ACTION_CELL_SLOTS, DSDataTableActionCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableActionCellName,\n slot: DATA_TABLE_ACTION_CELL_SLOTS.ROOT,\n})`\n padding: 0;\n position: sticky;\n display: flex;\n right: 0;\n background: white;\n overflow: visible;\n`;\n\nconst DSDataTableActionCell: React.ComponentType<DSDataTableActionCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableActionCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledWrapper>\n );\n};\n\nDSDataTableActionCell.displayName = DSDataTableActionCellName;\nconst DSDataTableActionCellWithSchema = describe(DSDataTableActionCell);\nDSDataTableActionCellWithSchema.propTypes = DSDataTableActionCellPropTypesSchema;\n\nexport { DSDataTableActionCell, DSDataTableActionCellWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACyBnB;AAxBJ,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAsC,4CAA4C;AAClF,SAAS,8BAA8B;AACvC,SAAS,8BAA8B,iCAAiC;AACxE,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAEhC,MAAM,gBAAgB,OAAO,iBAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,6BAA6B;AACrC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASD,MAAM,wBAA2E,CAAC,UAAU;AAC1F,QAAM,EAAE,kBAAkB,aAAa,IAAI,uBAAuB,KAAK;AACvE,QAAM,mBAAmB,cAAc,gBAAgB;AACvD,SACE,oBAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC7E,2BAAiB,UACpB;AAEJ;AAEA,sBAAsB,cAAc;AACpC,MAAM,kCAAkC,SAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { DSDataTableActionCellPropTypes, defaultProps } from "../react-desc-prop-types.js";
|
|
5
|
+
import { useValidateProps } from "./useValidateProps.js";
|
|
6
|
+
const useDataTableActionCell = (propsFromUser) => {
|
|
7
|
+
const propsWithDefault = useMemoMergePropsWithDefault(
|
|
8
|
+
propsFromUser,
|
|
9
|
+
defaultProps
|
|
10
|
+
);
|
|
11
|
+
useValidateProps(propsWithDefault, DSDataTableActionCellPropTypes);
|
|
12
|
+
const xstyledProps = useGetXstyledProps(propsWithDefault);
|
|
13
|
+
return React2.useMemo(
|
|
14
|
+
() => ({
|
|
15
|
+
propsWithDefault,
|
|
16
|
+
xstyledProps
|
|
17
|
+
}),
|
|
18
|
+
[propsWithDefault, xstyledProps]
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
useDataTableActionCell
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useDataTableActionCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useDataTableActionCell.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 DSDataTableActionCellT, DSDataTableActionCellPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableActionCellCTX {\n propsWithDefault: DSDataTableActionCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableActionCell = (propsFromUser: DSDataTableActionCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableActionCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableActionCellPropTypes);\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,SAAsC,gCAAgC,oBAAoB;AAC1F,SAAS,wBAAwB;AAQ1B,MAAM,yBAAyB,CAAC,kBAAgD;AAIrF,QAAM,mBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,mBAAiB,kBAAkB,8BAA8B;AAIjE,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 { DSDataTableActionCellName } from "../constants/index.js";
|
|
4
|
+
const useValidateProps = (props, propTypes) => {
|
|
5
|
+
useValidateTypescriptPropTypes(props, propTypes, DSDataTableActionCellName);
|
|
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 DSDataTableActionCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableActionCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableActionCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableActionCellName);\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,iCAAiC;AAEnC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,yBAAyB;AAC5E;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { slotObjectToDataTestIds } from "@elliemae/ds-system";
|
|
3
|
+
const DSDataTableActionCellName = "DSDataTableActionCell";
|
|
4
|
+
const DATA_TABLE_ACTION_CELL_SLOTS = {
|
|
5
|
+
ROOT: "root"
|
|
6
|
+
};
|
|
7
|
+
const DATA_TABLE_ACTION_CELL_DATA_TESTID = slotObjectToDataTestIds(
|
|
8
|
+
DSDataTableActionCellName,
|
|
9
|
+
DATA_TABLE_ACTION_CELL_SLOTS
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
DATA_TABLE_ACTION_CELL_DATA_TESTID,
|
|
13
|
+
DATA_TABLE_ACTION_CELL_SLOTS,
|
|
14
|
+
DSDataTableActionCellName
|
|
15
|
+
};
|
|
16
|
+
//# 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 DSDataTableActionCellName = 'DSDataTableActionCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_ACTION_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_ACTION_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableActionCellName,\n DATA_TABLE_ACTION_CELL_SLOTS,\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,4BAA4B;AAGlC,MAAM,+BAA+B;AAAA,EAC1C,MAAM;AACR;AAGO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSDataTableActionCell, DSDataTableActionCellWithSchema } from "./DSDataTableActionCell.js";
|
|
3
|
+
import {} from "./react-desc-prop-types.js";
|
|
4
|
+
import { DATA_TABLE_ACTION_CELL_SLOTS, DATA_TABLE_ACTION_CELL_DATA_TESTID } from "./constants/index.js";
|
|
5
|
+
export {
|
|
6
|
+
DATA_TABLE_ACTION_CELL_DATA_TESTID,
|
|
7
|
+
DATA_TABLE_ACTION_CELL_SLOTS,
|
|
8
|
+
DSDataTableActionCell,
|
|
9
|
+
DSDataTableActionCellWithSchema
|
|
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 { DSDataTableActionCell, DSDataTableActionCellWithSchema } from './DSDataTableActionCell.js';\nexport { type DSDataTableActionCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_ACTION_CELL_SLOTS, DATA_TABLE_ACTION_CELL_DATA_TESTID } from './constants/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,uBAAuB,uCAAuC;AACvE,eAA4C;AAC5C,SAAS,8BAA8B,0CAA0C;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from "@elliemae/ds-props-helpers";
|
|
3
|
+
import { DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS } from "./constants/index.js";
|
|
4
|
+
const defaultProps = {};
|
|
5
|
+
const DSDataTableActionCellPropTypes = {
|
|
6
|
+
...xstyledPropTypes,
|
|
7
|
+
...getPropsPerSlotPropTypes(DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS),
|
|
8
|
+
className: PropTypes.string.description("className for the wrapper"),
|
|
9
|
+
children: PropTypes.node.description("className for the wrapper")
|
|
10
|
+
};
|
|
11
|
+
const DSDataTableActionCellPropTypesSchema = DSDataTableActionCellPropTypes;
|
|
12
|
+
export {
|
|
13
|
+
DSDataTableActionCellPropTypes,
|
|
14
|
+
DSDataTableActionCellPropTypesSchema,
|
|
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 { DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableActionCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableActionCellName,\n typeof DATA_TABLE_ACTION_CELL_SLOTS\n > {\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: DSDataTableActionCellT.DefaultProps = {};\n\nexport const DSDataTableActionCellPropTypes: DSPropTypesSchema<DSDataTableActionCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n children: PropTypes.node.description('className for the wrapper'),\n};\n\nexport const DSDataTableActionCellPropTypesSchema =\n DSDataTableActionCellPropTypes as unknown as WeakValidationMap<DSDataTableActionCellT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,kBAAkB,gCAAgC;AAEtE,SAAS,2BAA2B,oCAAoC;AAsBjE,MAAM,eAAoD,CAAC;AAE3D,MAAM,iCAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,GAAG,yBAAyB,2BAA2B,4BAA4B;AAAA,EACnF,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,UAAU,KAAK,YAAY,2BAA2B;AAClE;AAEO,MAAM,uCACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DSDataTableActionCellT } from './react-desc-prop-types.js';
|
|
3
|
+
declare const DSDataTableActionCell: React.ComponentType<DSDataTableActionCellT.Props>;
|
|
4
|
+
declare const DSDataTableActionCellWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSDataTableActionCellT.Props>;
|
|
5
|
+
export { DSDataTableActionCell, DSDataTableActionCellWithSchema };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useGetXstyledProps } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import { type DSDataTableActionCellT } from '../react-desc-prop-types.js';
|
|
3
|
+
export interface DataTableActionCellCTX {
|
|
4
|
+
propsWithDefault: DSDataTableActionCellT.InternalProps;
|
|
5
|
+
xstyledProps: ReturnType<typeof useGetXstyledProps>;
|
|
6
|
+
instanceUid: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDataTableActionCell: (propsFromUser: DSDataTableActionCellT.Props) => {
|
|
9
|
+
propsWithDefault: DSDataTableActionCellT.InternalProps;
|
|
10
|
+
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
11
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DSDataTableActionCell, DSDataTableActionCellWithSchema } from './DSDataTableActionCell.js';
|
|
2
|
+
export { type DSDataTableActionCellT } from './react-desc-prop-types.js';
|
|
3
|
+
export { DATA_TABLE_ACTION_CELL_SLOTS, DATA_TABLE_ACTION_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 { DSDataTableActionCellName, DATA_TABLE_ACTION_CELL_SLOTS } from './constants/index.js';
|
|
4
|
+
import type { WeakValidationMap } from 'react';
|
|
5
|
+
export declare namespace DSDataTableActionCellT {
|
|
6
|
+
interface RequiredProps {
|
|
7
|
+
}
|
|
8
|
+
interface DefaultProps {
|
|
9
|
+
}
|
|
10
|
+
interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableActionCellName, typeof DATA_TABLE_ACTION_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: DSDataTableActionCellT.DefaultProps;
|
|
20
|
+
export declare const DSDataTableActionCellPropTypes: DSPropTypesSchema<DSDataTableActionCellT.Props>;
|
|
21
|
+
export declare const DSDataTableActionCellPropTypesSchema: WeakValidationMap<DSDataTableActionCellT.Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-data-table-action-cell",
|
|
3
|
+
"version": "3.31.0-next.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - Data Table Action 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-utilities": "3.31.0-next.6",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.31.0-next.6",
|
|
42
|
+
"@elliemae/ds-system": "3.31.0-next.6",
|
|
43
|
+
"@elliemae/ds-typescript-helpers": "3.31.0-next.6"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
47
|
+
"styled-components": "~5.3.9",
|
|
48
|
+
"@elliemae/ds-monorepo-devops": "3.31.0-next.6"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@testing-library/jest-dom": "~5.16.4",
|
|
52
|
+
"@testing-library/react": "~12.1.3",
|
|
53
|
+
"@testing-library/user-event": "~13.5.0",
|
|
54
|
+
"react": "^17.0.2",
|
|
55
|
+
"react-dom": "^17.0.2",
|
|
56
|
+
"styled-components": "~5.3.9"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public",
|
|
60
|
+
"typeSafety": true
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
64
|
+
"test": "pui-cli test --passWithNoTests",
|
|
65
|
+
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
66
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
67
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
68
|
+
"dts:withdeps": "pnpm --filter {.}... dts",
|
|
69
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
70
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
71
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
72
|
+
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
73
|
+
}
|
|
74
|
+
}
|