react-table-edit 1.0.4 → 1.0.5

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/index.js CHANGED
@@ -1056,7 +1056,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1056
1056
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1057
1057
  "div",
1058
1058
  {
1059
- className: (0, import_classnames4.default)("react-select-table", { "is-invalid": invalid }),
1059
+ className: (0, import_classnames4.default)("react-select-table", { "is-invalid": invalid, "no-header": noHeader }),
1060
1060
  ref,
1061
1061
  id,
1062
1062
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref: selectTableRef, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -1143,12 +1143,13 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1143
1143
  style: {
1144
1144
  width: width ? width + 2 : "min-content",
1145
1145
  position: "fixed",
1146
- borderRadius: 3,
1146
+ borderRadius: 6,
1147
1147
  zIndex: 9999
1148
1148
  },
1149
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_reactstrap4.DropdownItem, { className: (0, import_classnames4.default)("p-0 menu-select-table"), style: { borderRadius: "6px" }, tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1149
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_reactstrap4.DropdownItem, { className: (0, import_classnames4.default)("p-0 menu-select-table"), tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1150
1150
  "div",
1151
1151
  {
1152
+ style: { backgroundColor: "none" },
1152
1153
  onMouseDown: (e) => {
1153
1154
  if (!isDisabled) {
1154
1155
  inputRef?.current.focus();
@@ -1156,7 +1157,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1156
1157
  }
1157
1158
  },
1158
1159
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "r-select-grid", children: [
1159
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "r-select-gridtable", ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RenderTable, {}) }),
1160
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_classnames4.default)("r-select-gridtable", { "no-header": noHeader }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RenderTable, {}) }),
1160
1161
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_classnames4.default)("r-select-footer", { "d-none": !(showFooter === true || handleAdd) }), children: [
1161
1162
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_reactstrap4.Button, { outline: true, color: "primary", onClick: handleAdd, className: (0, import_classnames4.default)("r-btn d-flex align-items-center", { "d-none": !handleAdd }), children: [
1162
1163
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_becoxy_icons2.Plus, { className: "me-50", fontSize: 16 }),
package/dist/index.mjs CHANGED
@@ -1017,7 +1017,7 @@ var SelectTable = forwardRef((props, ref) => {
1017
1017
  return /* @__PURE__ */ jsx5(
1018
1018
  "div",
1019
1019
  {
1020
- className: classnames3("react-select-table", { "is-invalid": invalid }),
1020
+ className: classnames3("react-select-table", { "is-invalid": invalid, "no-header": noHeader }),
1021
1021
  ref,
1022
1022
  id,
1023
1023
  children: /* @__PURE__ */ jsx5("div", { ref: selectTableRef, children: /* @__PURE__ */ jsxs5(
@@ -1104,12 +1104,13 @@ var SelectTable = forwardRef((props, ref) => {
1104
1104
  style: {
1105
1105
  width: width ? width + 2 : "min-content",
1106
1106
  position: "fixed",
1107
- borderRadius: 3,
1107
+ borderRadius: 6,
1108
1108
  zIndex: 9999
1109
1109
  },
1110
- children: /* @__PURE__ */ jsx5(DropdownItem, { className: classnames3("p-0 menu-select-table"), style: { borderRadius: "6px" }, tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ jsx5(
1110
+ children: /* @__PURE__ */ jsx5(DropdownItem, { className: classnames3("p-0 menu-select-table"), tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ jsx5(
1111
1111
  "div",
1112
1112
  {
1113
+ style: { backgroundColor: "none" },
1113
1114
  onMouseDown: (e) => {
1114
1115
  if (!isDisabled) {
1115
1116
  inputRef?.current.focus();
@@ -1117,7 +1118,7 @@ var SelectTable = forwardRef((props, ref) => {
1117
1118
  }
1118
1119
  },
1119
1120
  children: /* @__PURE__ */ jsxs5("div", { className: "r-select-grid", children: [
1120
- /* @__PURE__ */ jsx5("div", { className: "r-select-gridtable", ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ jsx5(RenderTable, {}) }),
1121
+ /* @__PURE__ */ jsx5("div", { className: classnames3("r-select-gridtable", { "no-header": noHeader }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: /* @__PURE__ */ jsx5(RenderTable, {}) }),
1121
1122
  /* @__PURE__ */ jsxs5("div", { className: classnames3("r-select-footer", { "d-none": !(showFooter === true || handleAdd) }), children: [
1122
1123
  /* @__PURE__ */ jsxs5(Button, { outline: true, color: "primary", onClick: handleAdd, className: classnames3("r-btn d-flex align-items-center", { "d-none": !handleAdd }), children: [
1123
1124
  /* @__PURE__ */ jsx5(Plus, { className: "me-50", fontSize: 16 }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",