react-table-edit 1.0.5 → 1.0.7

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
@@ -1141,9 +1141,10 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1141
1141
  container: component,
1142
1142
  className: "formula-dropdown icon-dropdown p-0",
1143
1143
  style: {
1144
+ minWidth: selectTableRef?.current?.clientWidth,
1144
1145
  width: width ? width + 2 : "min-content",
1145
1146
  position: "fixed",
1146
- borderRadius: 6,
1147
+ borderRadius: 4,
1147
1148
  zIndex: 9999
1148
1149
  },
1149
1150
  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)(
@@ -2755,7 +2756,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
2755
2756
  e.preventDefault();
2756
2757
  },
2757
2758
  tag: "div",
2758
- style: { width: width ? width : "100%" },
2759
+ style: { width: "100%" },
2759
2760
  className: (0, import_classnames13.default)("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2760
2761
  children: [
2761
2762
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "select-table-container", children: [
@@ -2806,9 +2807,9 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
2806
2807
  container: component,
2807
2808
  className: "formula-dropdown icon-dropdown p-0",
2808
2809
  style: {
2809
- width: "min-content",
2810
+ width: width ? width + 2 : "min-content",
2810
2811
  position: "fixed",
2811
- borderRadius: 3,
2812
+ borderRadius: 4,
2812
2813
  zIndex: 9999
2813
2814
  },
2814
2815
  children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_reactstrap10.DropdownItem, { className: (0, import_classnames13.default)("p-0 menu-select-table"), style: { borderRadius: "6px" }, tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
package/dist/index.mjs CHANGED
@@ -1102,9 +1102,10 @@ var SelectTable = forwardRef((props, ref) => {
1102
1102
  container: component,
1103
1103
  className: "formula-dropdown icon-dropdown p-0",
1104
1104
  style: {
1105
+ minWidth: selectTableRef?.current?.clientWidth,
1105
1106
  width: width ? width + 2 : "min-content",
1106
1107
  position: "fixed",
1107
- borderRadius: 6,
1108
+ borderRadius: 4,
1108
1109
  zIndex: 9999
1109
1110
  },
1110
1111
  children: /* @__PURE__ */ jsx5(DropdownItem, { className: classnames3("p-0 menu-select-table"), tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ jsx5(
@@ -2724,7 +2725,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
2724
2725
  e.preventDefault();
2725
2726
  },
2726
2727
  tag: "div",
2727
- style: { width: width ? width : "100%" },
2728
+ style: { width: "100%" },
2728
2729
  className: classnames8("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2729
2730
  children: [
2730
2731
  /* @__PURE__ */ jsxs14("div", { className: "select-table-container", children: [
@@ -2775,9 +2776,9 @@ var SelectTableTree = forwardRef3((props, ref) => {
2775
2776
  container: component,
2776
2777
  className: "formula-dropdown icon-dropdown p-0",
2777
2778
  style: {
2778
- width: "min-content",
2779
+ width: width ? width + 2 : "min-content",
2779
2780
  position: "fixed",
2780
- borderRadius: 3,
2781
+ borderRadius: 4,
2781
2782
  zIndex: 9999
2782
2783
  },
2783
2784
  children: /* @__PURE__ */ jsx15(DropdownItem3, { className: classnames8("p-0 menu-select-table"), style: { borderRadius: "6px" }, tag: "div", header: true, children: dropdownOpen && /* @__PURE__ */ jsx15(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",