@pisell/materials 2.2.46 → 2.2.47

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.
@@ -88,11 +88,12 @@ var ProductCard = function ProductCard(props) {
88
88
  return /*#__PURE__*/React.createElement("div", {
89
89
  className: classNames('pisell-lowcode-product-card-wrap', _defineProperty({}, 'pisell-lowcode-product-card-disabled', dataSource === null || dataSource === void 0 ? void 0 : dataSource.disabled))
90
90
  }, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.disabled) && /*#__PURE__*/React.createElement("div", {
91
- className: "delete-btn-wrapper",
92
- onClick: function onClick() {
91
+ className: "delete-btn-wrapper"
92
+ }, /*#__PURE__*/React.createElement(DeleteButton, {
93
+ onDelete: function onDelete() {
93
94
  return _onDelete === null || _onDelete === void 0 ? void 0 : _onDelete(dataSource);
94
95
  }
95
- }, /*#__PURE__*/React.createElement(DeleteButton, null)), /*#__PURE__*/React.createElement(CardPro, {
96
+ })), /*#__PURE__*/React.createElement(CardPro, {
96
97
  className: classNames('pisell-lowcode-product-card', (_classNames2 = {}, _defineProperty(_classNames2, 'pisell-lowcode-product-card-image', !showImage), _defineProperty(_classNames2, 'pisell-lowcode-normal-product-card', !showImage && isNormalProduct), _classNames2)),
97
98
  key: _id
98
99
  }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -63,8 +63,8 @@
63
63
  opacity: 1;
64
64
  pointer-events: auto;
65
65
  position: absolute;
66
- top: 0;
67
- right: 0;
66
+ top: 1px;
67
+ right: 1px;
68
68
  z-index: 10;
69
69
 
70
70
  .anticon {
@@ -96,14 +96,7 @@ var ProductCard = (props) => {
96
96
  ["pisell-lowcode-product-card-disabled"]: dataSource == null ? void 0 : dataSource.disabled
97
97
  })
98
98
  },
99
- (dataSource == null ? void 0 : dataSource.disabled) && /* @__PURE__ */ import_react.default.createElement(
100
- "div",
101
- {
102
- className: "delete-btn-wrapper",
103
- onClick: () => onDelete == null ? void 0 : onDelete(dataSource)
104
- },
105
- /* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, null)
106
- ),
99
+ (dataSource == null ? void 0 : dataSource.disabled) && /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-btn-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, { onDelete: () => onDelete == null ? void 0 : onDelete(dataSource) })),
107
100
  /* @__PURE__ */ import_react.default.createElement(
108
101
  import_cardPro.default,
109
102
  {
@@ -63,8 +63,8 @@
63
63
  opacity: 1;
64
64
  pointer-events: auto;
65
65
  position: absolute;
66
- top: 0;
67
- right: 0;
66
+ top: 1px;
67
+ right: 1px;
68
68
  z-index: 10;
69
69
 
70
70
  .anticon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.46",
3
+ "version": "2.2.47",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",