react-table-edit 0.6.4 → 0.6.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
@@ -2017,7 +2017,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
2017
2017
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2018
2018
  "div",
2019
2019
  {
2020
- className: (0, import_classnames11.default)("react-select-table"),
2020
+ className: (0, import_classnames11.default)("react-select-table", { "is-invalid": invalid }),
2021
2021
  ref,
2022
2022
  id,
2023
2023
  children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { ref: selectTableRef, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
@@ -2041,7 +2041,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
2041
2041
  },
2042
2042
  tabIndex: 0,
2043
2043
  tag: "div",
2044
- className: (0, import_classnames11.default)("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "is-invalid": invalid }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2044
+ className: (0, import_classnames11.default)("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2045
2045
  children: [
2046
2046
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "select-table-container", children: [
2047
2047
  isMulti ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_classnames11.default)("select-value is-mutil", { "d-none": searchTerm }), children: value?.map((ele, index) => {
@@ -2081,7 +2081,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
2081
2081
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.Spinner, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }),
2082
2082
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.Spinner, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" })
2083
2083
  ] }),
2084
- (isClearable || value) && !isDisabled && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2084
+ isClearable && value && !isDisabled && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2085
2085
  "div",
2086
2086
  {
2087
2087
  className: (0, import_classnames11.default)("cursor-pointer"),
package/dist/index.mjs CHANGED
@@ -1982,7 +1982,7 @@ var SelectTable = forwardRef2((props, ref) => {
1982
1982
  return /* @__PURE__ */ jsx13(
1983
1983
  "div",
1984
1984
  {
1985
- className: classnames6("react-select-table"),
1985
+ className: classnames6("react-select-table", { "is-invalid": invalid }),
1986
1986
  ref,
1987
1987
  id,
1988
1988
  children: /* @__PURE__ */ jsx13("div", { ref: selectTableRef, children: /* @__PURE__ */ jsxs12(
@@ -2006,7 +2006,7 @@ var SelectTable = forwardRef2((props, ref) => {
2006
2006
  },
2007
2007
  tabIndex: 0,
2008
2008
  tag: "div",
2009
- className: classnames6("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "is-invalid": invalid }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2009
+ className: classnames6("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
2010
2010
  children: [
2011
2011
  /* @__PURE__ */ jsxs12("div", { className: "select-table-container", children: [
2012
2012
  isMulti ? /* @__PURE__ */ jsx13(Fragment14, { children: /* @__PURE__ */ jsx13("div", { className: classnames6("select-value is-mutil", { "d-none": searchTerm }), children: value?.map((ele, index) => {
@@ -2046,7 +2046,7 @@ var SelectTable = forwardRef2((props, ref) => {
2046
2046
  /* @__PURE__ */ jsx13(Spinner, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }),
2047
2047
  /* @__PURE__ */ jsx13(Spinner, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" })
2048
2048
  ] }),
2049
- (isClearable || value) && !isDisabled && /* @__PURE__ */ jsx13(
2049
+ isClearable && value && !isDisabled && /* @__PURE__ */ jsx13(
2050
2050
  "div",
2051
2051
  {
2052
2052
  className: classnames6("cursor-pointer"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.6.4",
4
+ "version": "0.6.5",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",