@elliemae/ds-data-table-multi-select-cell 3.37.0-rc.4 → 3.37.0
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.
|
@@ -41,7 +41,6 @@ var import_ds_data_table_cell = require("@elliemae/ds-data-table-cell");
|
|
|
41
41
|
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
42
42
|
var import_useDataTableMultiSelectCell = require("./config/useDataTableMultiSelectCell.js");
|
|
43
43
|
var import_constants = require("./constants/index.js");
|
|
44
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
45
44
|
const StyledWrapper = (0, import_ds_system.styled)(import_ds_data_table_cell.DSDataTableCell, {
|
|
46
45
|
name: import_constants.DSDataTableMultiSelectCellName,
|
|
47
46
|
slot: import_constants.DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT
|
|
@@ -55,7 +54,7 @@ const StyledCheckbox = (0, import_ds_system.styled)(import_ds_form_checkbox.DSCo
|
|
|
55
54
|
})``;
|
|
56
55
|
const DSDataTableMultiSelectCell = (props) => {
|
|
57
56
|
const { propsWithDefault, xstyledProps } = (0, import_useDataTableMultiSelectCell.useDataTableMultiSelectCell)(props);
|
|
58
|
-
const ownerPropsConfig = (0,
|
|
57
|
+
const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(propsWithDefault);
|
|
59
58
|
const { checked, disabled, onChange } = propsWithDefault;
|
|
60
59
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { className: propsWithDefault.className, ...ownerPropsConfig, ...xstyledProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
60
|
StyledCheckbox,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSDataTableMultiSelectCell.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledCheckbox = styled(DSControlledCheckbox, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX,\n})``;\n\nconst DSDataTableMultiSelectCell: React.ComponentType<DSDataTableMultiSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableMultiSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { checked, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n <StyledCheckbox\n aria-label=\"Toggle row selected\"\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableMultiSelectCell.displayName = DSDataTableMultiSelectCellName;\nconst DSDataTableMultiSelectCellWithSchema = describe(DSDataTableMultiSelectCell);\nDSDataTableMultiSelectCellWithSchema.propTypes = DSDataTableMultiSelectCellPropTypesSchema;\n\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+BjB;AA9BN,8BAAwC;AACxC,uBAAuB;AACvB,8BAAqC;AACrC,gCAAgC;AAChC,mCAGO;AACP,yCAA4C;AAC5C,uBAAmF;AAEnF,MAAM,oBAAgB,yBAAO,2CAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,oDAAmC;AAC3C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,qBAAiB,yBAAO,8CAAsB;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,oDAAmC;AAC3C,CAAC;AAED,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,QAAI,gEAA4B,KAAK;AAC5E,QAAM,uBAAmB,uCAAc,gBAAgB;AACvD,QAAM,EAAE,SAAS,UAAU,SAAS,IAAI;AACxC,SACE,4CAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC9E;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,2CAAuC,kCAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { describe } from "@elliemae/ds-props-helpers";
|
|
3
|
+
import { describe, useOwnerProps } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { styled } from "@elliemae/ds-system";
|
|
5
5
|
import { DSControlledCheckbox } from "@elliemae/ds-form-checkbox";
|
|
6
6
|
import { DSDataTableCell } from "@elliemae/ds-data-table-cell";
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from "./react-desc-prop-types.js";
|
|
10
10
|
import { useDataTableMultiSelectCell } from "./config/useDataTableMultiSelectCell.js";
|
|
11
11
|
import { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from "./constants/index.js";
|
|
12
|
-
import { useOwnerProps } from "@elliemae/ds-utilities";
|
|
13
12
|
const StyledWrapper = styled(DSDataTableCell, {
|
|
14
13
|
name: DSDataTableMultiSelectCellName,
|
|
15
14
|
slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableMultiSelectCell.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { DSControlledCheckbox } from '@elliemae/ds-form-checkbox';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableMultiSelectCellT,\n DSDataTableMultiSelectCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableMultiSelectCell } from './config/useDataTableMultiSelectCell.js';\nimport { DATA_TABLE_MULTI_SELECT_CELL_SLOTS, DSDataTableMultiSelectCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.ROOT,\n})`\n justify-content: center;\n margin-left: 4px;\n`;\n\nconst StyledCheckbox = styled(DSControlledCheckbox, {\n name: DSDataTableMultiSelectCellName,\n slot: DATA_TABLE_MULTI_SELECT_CELL_SLOTS.CHECKBOX,\n})``;\n\nconst DSDataTableMultiSelectCell: React.ComponentType<DSDataTableMultiSelectCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableMultiSelectCell(props);\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n const { checked, disabled, onChange } = propsWithDefault;\n return (\n <StyledWrapper className={propsWithDefault.className} {...ownerPropsConfig} {...xstyledProps}>\n <StyledCheckbox\n aria-label=\"Toggle row selected\"\n checked={checked}\n onChange={onChange}\n disabled={disabled}\n {...ownerPropsConfig}\n />\n </StyledWrapper>\n );\n};\n\nDSDataTableMultiSelectCell.displayName = DSDataTableMultiSelectCellName;\nconst DSDataTableMultiSelectCellWithSchema = describe(DSDataTableMultiSelectCell);\nDSDataTableMultiSelectCellWithSchema.propTypes = DSDataTableMultiSelectCellPropTypesSchema;\n\nexport { DSDataTableMultiSelectCell, DSDataTableMultiSelectCellWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC+BjB;AA9BN,SAAS,UAAU,qBAAqB;AACxC,SAAS,cAAc;AACvB,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC;AAAA,EAEE;AAAA,OACK;AACP,SAAS,mCAAmC;AAC5C,SAAS,oCAAoC,sCAAsC;AAEnF,MAAM,gBAAgB,OAAO,iBAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,mCAAmC;AAC3C,CAAC;AAAA;AAAA;AAAA;AAKD,MAAM,iBAAiB,OAAO,sBAAsB;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,mCAAmC;AAC3C,CAAC;AAED,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,IAAI,4BAA4B,KAAK;AAC5E,QAAM,mBAAmB,cAAc,gBAAgB;AACvD,QAAM,EAAE,SAAS,UAAU,SAAS,IAAI;AACxC,SACE,oBAAC,iBAAc,WAAW,iBAAiB,WAAY,GAAG,kBAAmB,GAAG,cAC9E;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,uCAAuC,SAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table-multi-select-cell",
|
|
3
|
-
"version": "3.37.0
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table Multi Select Cell",
|
|
6
6
|
"files": [
|
|
@@ -37,18 +37,17 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@xstyled/styled-components": "~3.6.0",
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-
|
|
43
|
-
"@elliemae/ds-
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-typescript-helpers": "3.37.0
|
|
46
|
-
"@elliemae/ds-data-table-cell": "3.37.0-rc.4"
|
|
40
|
+
"@elliemae/ds-data-table-cell": "3.37.0",
|
|
41
|
+
"@elliemae/ds-grid": "3.37.0",
|
|
42
|
+
"@elliemae/ds-form-checkbox": "3.37.0",
|
|
43
|
+
"@elliemae/ds-props-helpers": "3.37.0",
|
|
44
|
+
"@elliemae/ds-system": "3.37.0",
|
|
45
|
+
"@elliemae/ds-typescript-helpers": "3.37.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@elliemae/pui-cli": "9.0.0-next.50",
|
|
50
49
|
"styled-components": "~5.3.9",
|
|
51
|
-
"@elliemae/ds-monorepo-devops": "3.37.0
|
|
50
|
+
"@elliemae/ds-monorepo-devops": "3.37.0"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
53
|
"@testing-library/jest-dom": "~5.16.4",
|