@elliemae/ds-data-table-single-select-cell 3.31.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DSDataTableSingleSelectCell.js +77 -0
- package/dist/cjs/DSDataTableSingleSelectCell.js.map +7 -0
- package/dist/cjs/config/useDataTableSingleSelectCell.js +54 -0
- package/dist/cjs/config/useDataTableSingleSelectCell.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 +47 -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 +52 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/esm/DSDataTableSingleSelectCell.js +49 -0
- package/dist/esm/DSDataTableSingleSelectCell.js.map +7 -0
- package/dist/esm/config/useDataTableSingleSelectCell.js +27 -0
- package/dist/esm/config/useDataTableSingleSelectCell.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 +17 -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 +22 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/types/DSDataTableSingleSelectCell.d.ts +5 -0
- package/dist/types/config/useDataTableSingleSelectCell.d.ts +11 -0
- package/dist/types/config/useValidateProps.d.ts +3 -0
- package/dist/types/constants/index.d.ts +6 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/react-desc-prop-types.d.ts +23 -0
- package/dist/types/tests/DSDataTableSingleSelectCell.test.d.ts +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,77 @@
|
|
|
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 DSDataTableSingleSelectCell_exports = {};
|
|
30
|
+
__export(DSDataTableSingleSelectCell_exports, {
|
|
31
|
+
DSDataTableSingleSelectCell: () => DSDataTableSingleSelectCell,
|
|
32
|
+
DSDataTableSingleSelectCellWithSchema: () => DSDataTableSingleSelectCellWithSchema
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DSDataTableSingleSelectCell_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
39
|
+
var import_ds_data_table_cell = require("@elliemae/ds-data-table-cell");
|
|
40
|
+
var import_ds_form_radio = require("@elliemae/ds-form-radio");
|
|
41
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
42
|
+
var import_useDataTableSingleSelectCell = require("./config/useDataTableSingleSelectCell.js");
|
|
43
|
+
var import_constants = require("./constants/index.js");
|
|
44
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
45
|
+
const StyledWrapper = (0, import_ds_system.styled)(import_ds_data_table_cell.DSDataTableCell, {
|
|
46
|
+
name: import_constants.DSDataTableSingleSelectCellName,
|
|
47
|
+
slot: import_constants.DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.ROOT
|
|
48
|
+
})`
|
|
49
|
+
justify-content: center;
|
|
50
|
+
margin-left: 4px;
|
|
51
|
+
`;
|
|
52
|
+
const StyledRadio = (0, import_ds_system.styled)(import_ds_form_radio.DSControlledRadio, {
|
|
53
|
+
name: import_constants.DSDataTableSingleSelectCellName,
|
|
54
|
+
slot: import_constants.DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.RADIO
|
|
55
|
+
})``;
|
|
56
|
+
const DSDataTableSingleSelectCell = (props) => {
|
|
57
|
+
const { propsWithDefault, xstyledProps } = (0, import_useDataTableSingleSelectCell.useDataTableSingleSelectCell)(props);
|
|
58
|
+
const ownerPropsConfig = (0, import_ds_utilities.useOwnerProps)(propsWithDefault);
|
|
59
|
+
const { selected, disabled, onChange } = propsWithDefault;
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { className: propsWithDefault.className, ...xstyledProps, ...ownerPropsConfig, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
+
StyledRadio,
|
|
62
|
+
{
|
|
63
|
+
"aria-checked": selected,
|
|
64
|
+
"aria-disabled": disabled,
|
|
65
|
+
title: "Toggle row selected",
|
|
66
|
+
"aria-label": "Toggle row selected",
|
|
67
|
+
checked: selected,
|
|
68
|
+
onChange,
|
|
69
|
+
disabled,
|
|
70
|
+
...ownerPropsConfig
|
|
71
|
+
}
|
|
72
|
+
) });
|
|
73
|
+
};
|
|
74
|
+
DSDataTableSingleSelectCell.displayName = import_constants.DSDataTableSingleSelectCellName;
|
|
75
|
+
const DSDataTableSingleSelectCellWithSchema = (0, import_ds_props_helpers.describe)(DSDataTableSingleSelectCell);
|
|
76
|
+
DSDataTableSingleSelectCellWithSchema.propTypes = import_react_desc_prop_types.DSDataTableSingleSelectCellPropTypesSchema;
|
|
77
|
+
//# sourceMappingURL=DSDataTableSingleSelectCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSDataTableSingleSelectCell.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 { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport { DSControlledRadio } from '@elliemae/ds-form-radio';\nimport {\n type DSDataTableSingleSelectCellT,\n DSDataTableSingleSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableSingleSelectCell } from './config/useDataTableSingleSelectCell.js';\nimport { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DSDataTableSingleSelectCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableSingleSelectCellName,\n slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledRadio = styled(DSControlledRadio, {\n name: DSDataTableSingleSelectCellName,\n slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.RADIO,\n})``;\n\nconst DSDataTableSingleSelectCell: React.ComponentType<DSDataTableSingleSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableSingleSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { selected, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...xstyledProps} {...ownerPropsConfig}>\n <StyledRadio\n aria-checked={selected}\n aria-disabled={disabled}\n title=\"Toggle row selected\"\n aria-label=\"Toggle row selected\"\n checked={selected}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableSingleSelectCell.displayName = DSDataTableSingleSelectCellName;\nconst DSDataTableSingleSelectCellWithSchema = describe(DSDataTableSingleSelectCell);\nDSDataTableSingleSelectCellWithSchema.propTypes = DSDataTableSingleSelectCellPropTypesSchema;\n\nexport { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCjB;AA/BN,8BAAyB;AACzB,uBAAuB;AACvB,gCAAgC;AAChC,2BAAkC;AAClC,mCAGO;AACP,0CAA6C;AAC7C,uBAAqF;AACrF,0BAA8B;AAE9B,MAAM,oBAAgB,yBAAO,2CAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,qDAAoC;AAC5C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,kBAAc,yBAAO,wCAAmB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,qDAAoC;AAC5C,CAAC;AAED,MAAM,8BAAuF,CAAC,UAAU;AACtG,QAAM,EAAE,kBAAkB,aAAa,QAAI,kEAA6B,KAAK;AAC7E,QAAM,uBAAmB,mCAAc,gBAAgB;AACvD,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AACzC,SACE,4CAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,cAAe,GAAG,kBAC1E;AAAA,IAAC;AAAA;AAAA,MACC,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,OAAM;AAAA,MACN,cAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,4BAA4B,cAAc;AAC1C,MAAM,4CAAwC,kCAAS,2BAA2B;AAClF,sCAAsC,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 useDataTableSingleSelectCell_exports = {};
|
|
30
|
+
__export(useDataTableSingleSelectCell_exports, {
|
|
31
|
+
useDataTableSingleSelectCell: () => useDataTableSingleSelectCell
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(useDataTableSingleSelectCell_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 useDataTableSingleSelectCell = (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.DSDataTableSingleSelectCellPropTypes);
|
|
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=useDataTableSingleSelectCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/config/useDataTableSingleSelectCell.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport {\n type DSDataTableSingleSelectCellT,\n DSDataTableSingleSelectCellPropTypes,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableSingleSelectCellCTX {\n propsWithDefault: DSDataTableSingleSelectCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableSingleSelectCell = (propsFromUser: DSDataTableSingleSelectCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableSingleSelectCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableSingleSelectCellPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n }),\n [propsWithDefault, xstyledProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,8BAAiE;AACjE,mCAIO;AACP,8BAAiC;AAQ1B,MAAM,+BAA+B,CAAC,kBAAsD;AAIjG,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,iEAAoC;AAIvE,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.DSDataTableSingleSelectCellName);
|
|
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 DSDataTableSingleSelectCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableSingleSelectCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableSingleSelectCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableSingleSelectCellName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAgD;AAEzC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,gDAA+B;AAClF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var constants_exports = {};
|
|
30
|
+
__export(constants_exports, {
|
|
31
|
+
DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID: () => DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID,
|
|
32
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS: () => DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,
|
|
33
|
+
DSDataTableSingleSelectCellName: () => DSDataTableSingleSelectCellName
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(constants_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
38
|
+
const DSDataTableSingleSelectCellName = "DSDataTableSingleSelectCell";
|
|
39
|
+
const DATA_TABLE_SINGLE_SELECT_CELL_SLOTS = {
|
|
40
|
+
ROOT: "root",
|
|
41
|
+
RADIO: "radio"
|
|
42
|
+
};
|
|
43
|
+
const DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(
|
|
44
|
+
DSDataTableSingleSelectCellName,
|
|
45
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS
|
|
46
|
+
);
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSDataTableSingleSelectCellName = 'DSDataTableSingleSelectCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_SINGLE_SELECT_CELL_SLOTS = {\n ROOT: 'root',\n RADIO: 'radio',\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_SINGLE_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableSingleSelectCellName,\n DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,kCAAkC;AAGxC,MAAM,sCAAsC;AAAA,EACjD,MAAM;AAAA,EACN,OAAO;AACT;AAGO,MAAM,gDAA4C;AAAA,EACvD;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_SINGLE_SELECT_CELL_DATA_TESTID: () => import_constants.DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID,
|
|
32
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS: () => import_constants.DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,
|
|
33
|
+
DSDataTableSingleSelectCell: () => import_DSDataTableSingleSelectCell.DSDataTableSingleSelectCell,
|
|
34
|
+
DSDataTableSingleSelectCellWithSchema: () => import_DSDataTableSingleSelectCell.DSDataTableSingleSelectCellWithSchema
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var import_DSDataTableSingleSelectCell = require("./DSDataTableSingleSelectCell.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 { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema } from './DSDataTableSingleSelectCell.js';\nexport { type DSDataTableSingleSelectCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,yCAAmF;AACnF,mCAAkD;AAClD,uBAA+F;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
DSDataTableSingleSelectCellPropTypes: () => DSDataTableSingleSelectCellPropTypes,
|
|
32
|
+
DSDataTableSingleSelectCellPropTypesSchema: () => DSDataTableSingleSelectCellPropTypesSchema,
|
|
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
|
+
selected: false,
|
|
41
|
+
disabled: false
|
|
42
|
+
};
|
|
43
|
+
const DSDataTableSingleSelectCellPropTypes = {
|
|
44
|
+
...import_ds_props_helpers.xstyledPropTypes,
|
|
45
|
+
...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDataTableSingleSelectCellName, import_constants.DATA_TABLE_SINGLE_SELECT_CELL_SLOTS),
|
|
46
|
+
className: import_ds_props_helpers.PropTypes.string.description("className for the wrapper"),
|
|
47
|
+
selected: import_ds_props_helpers.PropTypes.bool.description("Whether its selected or not"),
|
|
48
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("Whether its disabled or not"),
|
|
49
|
+
onChange: import_ds_props_helpers.PropTypes.func.description("onChange callback")
|
|
50
|
+
};
|
|
51
|
+
const DSDataTableSingleSelectCellPropTypesSchema = DSDataTableSingleSelectCellPropTypes;
|
|
52
|
+
//# 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 { DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableSingleSelectCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n selected: boolean;\n disabled: boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableSingleSelectCellName,\n typeof DATA_TABLE_SINGLE_SELECT_CELL_SLOTS\n > {\n className?: string;\n onChange?: (newVal: boolean) => void;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableSingleSelectCellT.DefaultProps = {\n selected: false,\n disabled: false,\n};\n\nexport const DSDataTableSingleSelectCellPropTypes: DSPropTypesSchema<DSDataTableSingleSelectCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n selected: PropTypes.bool.description('Whether its selected or not'),\n disabled: PropTypes.bool.description('Whether its disabled or not'),\n onChange: PropTypes.func.description('onChange callback'),\n};\n\nexport const DSDataTableSingleSelectCellPropTypesSchema =\n DSDataTableSingleSelectCellPropTypes as unknown as WeakValidationMap<DSDataTableSingleSelectCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsE;AAEtE,uBAAqF;AAyB9E,MAAM,eAA0D;AAAA,EACrE,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,MAAM,uCAA8F;AAAA,EACzG,GAAG;AAAA,EACH,OAAG,kDAAyB,kDAAiC,oDAAmC;AAAA,EAChG,WAAW,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,kCAAU,KAAK,YAAY,6BAA6B;AAAA,EAClE,UAAU,kCAAU,KAAK,YAAY,6BAA6B;AAAA,EAClE,UAAU,kCAAU,KAAK,YAAY,mBAAmB;AAC1D;AAEO,MAAM,6CACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { DSDataTableCell } from "@elliemae/ds-data-table-cell";
|
|
6
|
+
import { DSControlledRadio } from "@elliemae/ds-form-radio";
|
|
7
|
+
import {
|
|
8
|
+
DSDataTableSingleSelectCellPropTypesSchema
|
|
9
|
+
} from "./react-desc-prop-types.js";
|
|
10
|
+
import { useDataTableSingleSelectCell } from "./config/useDataTableSingleSelectCell.js";
|
|
11
|
+
import { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DSDataTableSingleSelectCellName } from "./constants/index.js";
|
|
12
|
+
import { useOwnerProps } from "@elliemae/ds-utilities";
|
|
13
|
+
const StyledWrapper = styled(DSDataTableCell, {
|
|
14
|
+
name: DSDataTableSingleSelectCellName,
|
|
15
|
+
slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.ROOT
|
|
16
|
+
})`
|
|
17
|
+
justify-content: center;
|
|
18
|
+
margin-left: 4px;
|
|
19
|
+
`;
|
|
20
|
+
const StyledRadio = styled(DSControlledRadio, {
|
|
21
|
+
name: DSDataTableSingleSelectCellName,
|
|
22
|
+
slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.RADIO
|
|
23
|
+
})``;
|
|
24
|
+
const DSDataTableSingleSelectCell = (props) => {
|
|
25
|
+
const { propsWithDefault, xstyledProps } = useDataTableSingleSelectCell(props);
|
|
26
|
+
const ownerPropsConfig = useOwnerProps(propsWithDefault);
|
|
27
|
+
const { selected, disabled, onChange } = propsWithDefault;
|
|
28
|
+
return /* @__PURE__ */ jsx(StyledWrapper, { className: propsWithDefault.className, ...xstyledProps, ...ownerPropsConfig, children: /* @__PURE__ */ jsx(
|
|
29
|
+
StyledRadio,
|
|
30
|
+
{
|
|
31
|
+
"aria-checked": selected,
|
|
32
|
+
"aria-disabled": disabled,
|
|
33
|
+
title: "Toggle row selected",
|
|
34
|
+
"aria-label": "Toggle row selected",
|
|
35
|
+
checked: selected,
|
|
36
|
+
onChange,
|
|
37
|
+
disabled,
|
|
38
|
+
...ownerPropsConfig
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
41
|
+
};
|
|
42
|
+
DSDataTableSingleSelectCell.displayName = DSDataTableSingleSelectCellName;
|
|
43
|
+
const DSDataTableSingleSelectCellWithSchema = describe(DSDataTableSingleSelectCell);
|
|
44
|
+
DSDataTableSingleSelectCellWithSchema.propTypes = DSDataTableSingleSelectCellPropTypesSchema;
|
|
45
|
+
export {
|
|
46
|
+
DSDataTableSingleSelectCell,
|
|
47
|
+
DSDataTableSingleSelectCellWithSchema
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=DSDataTableSingleSelectCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableSingleSelectCell.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 { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport { DSControlledRadio } from '@elliemae/ds-form-radio';\nimport {\n type DSDataTableSingleSelectCellT,\n DSDataTableSingleSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableSingleSelectCell } from './config/useDataTableSingleSelectCell.js';\nimport { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DSDataTableSingleSelectCellName } from './constants/index.js';\nimport { useOwnerProps } from '@elliemae/ds-utilities';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableSingleSelectCellName,\n slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledRadio = styled(DSControlledRadio, {\n name: DSDataTableSingleSelectCellName,\n slot: DATA_TABLE_SINGLE_SELECT_CELL_SLOTS.RADIO,\n})``;\n\nconst DSDataTableSingleSelectCell: React.ComponentType<DSDataTableSingleSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableSingleSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { selected, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...xstyledProps} {...ownerPropsConfig}>\n <StyledRadio\n aria-checked={selected}\n aria-disabled={disabled}\n title=\"Toggle row selected\"\n aria-label=\"Toggle row selected\"\n checked={selected}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableSingleSelectCell.displayName = DSDataTableSingleSelectCellName;\nconst DSDataTableSingleSelectCellWithSchema = describe(DSDataTableSingleSelectCell);\nDSDataTableSingleSelectCellWithSchema.propTypes = DSDataTableSingleSelectCellPropTypesSchema;\n\nexport { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACgCjB;AA/BN,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC;AAAA,EAEE;AAAA,OACK;AACP,SAAS,oCAAoC;AAC7C,SAAS,qCAAqC,uCAAuC;AACrF,SAAS,qBAAqB;AAE9B,MAAM,gBAAgB,OAAO,iBAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,oCAAoC;AAC5C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,cAAc,OAAO,mBAAmB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,oCAAoC;AAC5C,CAAC;AAED,MAAM,8BAAuF,CAAC,UAAU;AACtG,QAAM,EAAE,kBAAkB,aAAa,IAAI,6BAA6B,KAAK;AAC7E,QAAM,mBAAmB,cAAc,gBAAgB;AACvD,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AACzC,SACE,oBAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,cAAe,GAAG,kBAC1E;AAAA,IAAC;AAAA;AAAA,MACC,gBAAc;AAAA,MACd,iBAAe;AAAA,MACf,OAAM;AAAA,MACN,cAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,4BAA4B,cAAc;AAC1C,MAAM,wCAAwC,SAAS,2BAA2B;AAClF,sCAAsC,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import {
|
|
5
|
+
DSDataTableSingleSelectCellPropTypes,
|
|
6
|
+
defaultProps
|
|
7
|
+
} from "../react-desc-prop-types.js";
|
|
8
|
+
import { useValidateProps } from "./useValidateProps.js";
|
|
9
|
+
const useDataTableSingleSelectCell = (propsFromUser) => {
|
|
10
|
+
const propsWithDefault = useMemoMergePropsWithDefault(
|
|
11
|
+
propsFromUser,
|
|
12
|
+
defaultProps
|
|
13
|
+
);
|
|
14
|
+
useValidateProps(propsWithDefault, DSDataTableSingleSelectCellPropTypes);
|
|
15
|
+
const xstyledProps = useGetXstyledProps(propsWithDefault);
|
|
16
|
+
return React2.useMemo(
|
|
17
|
+
() => ({
|
|
18
|
+
propsWithDefault,
|
|
19
|
+
xstyledProps
|
|
20
|
+
}),
|
|
21
|
+
[propsWithDefault, xstyledProps]
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
useDataTableSingleSelectCell
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useDataTableSingleSelectCell.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useDataTableSingleSelectCell.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport {\n type DSDataTableSingleSelectCellT,\n DSDataTableSingleSelectCellPropTypes,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface DataTableSingleSelectCellCTX {\n propsWithDefault: DSDataTableSingleSelectCellT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useDataTableSingleSelectCell = (propsFromUser: DSDataTableSingleSelectCellT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSDataTableSingleSelectCellT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSDataTableSingleSelectCellPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n }),\n [propsWithDefault, xstyledProps],\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,oBAAoB,oCAAoC;AACjE;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AACP,SAAS,wBAAwB;AAQ1B,MAAM,+BAA+B,CAAC,kBAAsD;AAIjG,QAAM,mBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,mBAAiB,kBAAkB,oCAAoC;AAIvE,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 { DSDataTableSingleSelectCellName } from "../constants/index.js";
|
|
4
|
+
const useValidateProps = (props, propTypes) => {
|
|
5
|
+
useValidateTypescriptPropTypes(props, propTypes, DSDataTableSingleSelectCellName);
|
|
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 DSDataTableSingleSelectCellT } from '../react-desc-prop-types.js';\nimport { DSDataTableSingleSelectCellName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSDataTableSingleSelectCellT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSDataTableSingleSelectCellName);\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,uCAAuC;AAEzC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,+BAA+B;AAClF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { slotObjectToDataTestIds } from "@elliemae/ds-system";
|
|
3
|
+
const DSDataTableSingleSelectCellName = "DSDataTableSingleSelectCell";
|
|
4
|
+
const DATA_TABLE_SINGLE_SELECT_CELL_SLOTS = {
|
|
5
|
+
ROOT: "root",
|
|
6
|
+
RADIO: "radio"
|
|
7
|
+
};
|
|
8
|
+
const DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(
|
|
9
|
+
DSDataTableSingleSelectCellName,
|
|
10
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID,
|
|
14
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,
|
|
15
|
+
DSDataTableSingleSelectCellName
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSDataTableSingleSelectCellName = 'DSDataTableSingleSelectCell';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const DATA_TABLE_SINGLE_SELECT_CELL_SLOTS = {\n ROOT: 'root',\n RADIO: 'radio',\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_SINGLE_SELECT_CELL_DATA_TESTID = slotObjectToDataTestIds(\n DSDataTableSingleSelectCellName,\n DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,kCAAkC;AAGxC,MAAM,sCAAsC;AAAA,EACjD,MAAM;AAAA,EACN,OAAO;AACT;AAGO,MAAM,4CAA4C;AAAA,EACvD;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema } from "./DSDataTableSingleSelectCell.js";
|
|
3
|
+
import {} from "./react-desc-prop-types.js";
|
|
4
|
+
import { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID } from "./constants/index.js";
|
|
5
|
+
export {
|
|
6
|
+
DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID,
|
|
7
|
+
DATA_TABLE_SINGLE_SELECT_CELL_SLOTS,
|
|
8
|
+
DSDataTableSingleSelectCell,
|
|
9
|
+
DSDataTableSingleSelectCellWithSchema
|
|
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 { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema } from './DSDataTableSingleSelectCell.js';\nexport { type DSDataTableSingleSelectCellT } from './react-desc-prop-types.js';\nexport { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID } from './constants/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,6BAA6B,6CAA6C;AACnF,eAAkD;AAClD,SAAS,qCAAqC,iDAAiD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from "@elliemae/ds-props-helpers";
|
|
3
|
+
import { DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS } from "./constants/index.js";
|
|
4
|
+
const defaultProps = {
|
|
5
|
+
selected: false,
|
|
6
|
+
disabled: false
|
|
7
|
+
};
|
|
8
|
+
const DSDataTableSingleSelectCellPropTypes = {
|
|
9
|
+
...xstyledPropTypes,
|
|
10
|
+
...getPropsPerSlotPropTypes(DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS),
|
|
11
|
+
className: PropTypes.string.description("className for the wrapper"),
|
|
12
|
+
selected: PropTypes.bool.description("Whether its selected or not"),
|
|
13
|
+
disabled: PropTypes.bool.description("Whether its disabled or not"),
|
|
14
|
+
onChange: PropTypes.func.description("onChange callback")
|
|
15
|
+
};
|
|
16
|
+
const DSDataTableSingleSelectCellPropTypesSchema = DSDataTableSingleSelectCellPropTypes;
|
|
17
|
+
export {
|
|
18
|
+
DSDataTableSingleSelectCellPropTypes,
|
|
19
|
+
DSDataTableSingleSelectCellPropTypesSchema,
|
|
20
|
+
defaultProps
|
|
21
|
+
};
|
|
22
|
+
//# 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 { DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSDataTableSingleSelectCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n selected: boolean;\n disabled: boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableSingleSelectCellName,\n typeof DATA_TABLE_SINGLE_SELECT_CELL_SLOTS\n > {\n className?: string;\n onChange?: (newVal: boolean) => void;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableSingleSelectCellT.DefaultProps = {\n selected: false,\n disabled: false,\n};\n\nexport const DSDataTableSingleSelectCellPropTypes: DSPropTypesSchema<DSDataTableSingleSelectCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n selected: PropTypes.bool.description('Whether its selected or not'),\n disabled: PropTypes.bool.description('Whether its disabled or not'),\n onChange: PropTypes.func.description('onChange callback'),\n};\n\nexport const DSDataTableSingleSelectCellPropTypesSchema =\n DSDataTableSingleSelectCellPropTypes as unknown as WeakValidationMap<DSDataTableSingleSelectCellT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,kBAAkB,gCAAgC;AAEtE,SAAS,iCAAiC,2CAA2C;AAyB9E,MAAM,eAA0D;AAAA,EACrE,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,MAAM,uCAA8F;AAAA,EACzG,GAAG;AAAA,EACH,GAAG,yBAAyB,iCAAiC,mCAAmC;AAAA,EAChG,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,UAAU,KAAK,YAAY,6BAA6B;AAAA,EAClE,UAAU,UAAU,KAAK,YAAY,6BAA6B;AAAA,EAClE,UAAU,UAAU,KAAK,YAAY,mBAAmB;AAC1D;AAEO,MAAM,6CACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DSDataTableSingleSelectCellT } from './react-desc-prop-types.js';
|
|
3
|
+
declare const DSDataTableSingleSelectCell: React.ComponentType<DSDataTableSingleSelectCellT.Props>;
|
|
4
|
+
declare const DSDataTableSingleSelectCellWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSDataTableSingleSelectCellT.Props>;
|
|
5
|
+
export { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useGetXstyledProps } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import { type DSDataTableSingleSelectCellT } from '../react-desc-prop-types.js';
|
|
3
|
+
export interface DataTableSingleSelectCellCTX {
|
|
4
|
+
propsWithDefault: DSDataTableSingleSelectCellT.InternalProps;
|
|
5
|
+
xstyledProps: ReturnType<typeof useGetXstyledProps>;
|
|
6
|
+
instanceUid: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDataTableSingleSelectCell: (propsFromUser: DSDataTableSingleSelectCellT.Props) => {
|
|
9
|
+
propsWithDefault: DSDataTableSingleSelectCellT.InternalProps;
|
|
10
|
+
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DSDataTableSingleSelectCellName = "DSDataTableSingleSelectCell";
|
|
2
|
+
export declare const DATA_TABLE_SINGLE_SELECT_CELL_SLOTS: {
|
|
3
|
+
readonly ROOT: "root";
|
|
4
|
+
readonly RADIO: "radio";
|
|
5
|
+
};
|
|
6
|
+
export declare const DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID: Record<string, string>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DSDataTableSingleSelectCell, DSDataTableSingleSelectCellWithSchema } from './DSDataTableSingleSelectCell.js';
|
|
2
|
+
export { type DSDataTableSingleSelectCellT } from './react-desc-prop-types.js';
|
|
3
|
+
export { DATA_TABLE_SINGLE_SELECT_CELL_SLOTS, DATA_TABLE_SINGLE_SELECT_CELL_DATA_TESTID } from './constants/index.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
3
|
+
import { DSDataTableSingleSelectCellName, DATA_TABLE_SINGLE_SELECT_CELL_SLOTS } from './constants/index.js';
|
|
4
|
+
import type { WeakValidationMap } from 'react';
|
|
5
|
+
export declare namespace DSDataTableSingleSelectCellT {
|
|
6
|
+
interface RequiredProps {
|
|
7
|
+
}
|
|
8
|
+
interface DefaultProps {
|
|
9
|
+
selected: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDataTableSingleSelectCellName, typeof DATA_TABLE_SINGLE_SELECT_CELL_SLOTS> {
|
|
13
|
+
className?: string;
|
|
14
|
+
onChange?: (newVal: boolean) => void;
|
|
15
|
+
}
|
|
16
|
+
interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {
|
|
17
|
+
}
|
|
18
|
+
interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const defaultProps: DSDataTableSingleSelectCellT.DefaultProps;
|
|
22
|
+
export declare const DSDataTableSingleSelectCellPropTypes: DSPropTypesSchema<DSDataTableSingleSelectCellT.Props>;
|
|
23
|
+
export declare const DSDataTableSingleSelectCellPropTypesSchema: WeakValidationMap<DSDataTableSingleSelectCellT.Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-data-table-single-select-cell",
|
|
3
|
+
"version": "3.31.0-next.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - Data Table Single Select Cell",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css",
|
|
20
|
+
"*.scss"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"pnpm": ">=6",
|
|
28
|
+
"node": ">=16"
|
|
29
|
+
},
|
|
30
|
+
"author": "ICE MT",
|
|
31
|
+
"jestSonar": {
|
|
32
|
+
"sonar56x": true,
|
|
33
|
+
"reportPath": "reports",
|
|
34
|
+
"reportFile": "tests.xml",
|
|
35
|
+
"indent": 4
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@xstyled/styled-components": "~3.6.0",
|
|
39
|
+
"@elliemae/ds-data-table-cell": "3.31.0-next.6",
|
|
40
|
+
"@elliemae/ds-typescript-helpers": "3.31.0-next.6",
|
|
41
|
+
"@elliemae/ds-utilities": "3.31.0-next.6",
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.31.0-next.6",
|
|
43
|
+
"@elliemae/ds-form-radio": "3.31.0-next.6",
|
|
44
|
+
"@elliemae/ds-system": "3.31.0-next.6"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
48
|
+
"styled-components": "~5.3.9",
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.31.0-next.6"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@testing-library/jest-dom": "~5.16.4",
|
|
53
|
+
"@testing-library/react": "~12.1.3",
|
|
54
|
+
"@testing-library/user-event": "~13.5.0",
|
|
55
|
+
"react": "^17.0.2",
|
|
56
|
+
"react-dom": "^17.0.2",
|
|
57
|
+
"styled-components": "~5.3.9"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public",
|
|
61
|
+
"typeSafety": false
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
65
|
+
"test": "pui-cli test --passWithNoTests",
|
|
66
|
+
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
67
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
68
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
69
|
+
"dts:withdeps": "pnpm --filter {.}... dts",
|
|
70
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
71
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
72
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
73
|
+
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
74
|
+
}
|
|
75
|
+
}
|