@teselagen/ui 0.10.22 → 0.10.23

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.
@@ -3,4 +3,4 @@ declare function DisabledLoadingComponent({ disabled, loading, loadingText }: {
3
3
  disabled: any;
4
4
  loading: any;
5
5
  loadingText: any;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
package/index.cjs.js CHANGED
@@ -35098,6 +35098,7 @@ const DisplayOptions = /* @__PURE__ */ __name(({
35098
35098
  }, "DisplayOptions");
35099
35099
  const { LoadingComponent: LoadingComponent2 } = ReactTableDefaults;
35100
35100
  function DisabledLoadingComponent({ disabled, loading, loadingText }) {
35101
+ if (!loading) return null;
35101
35102
  return /* @__PURE__ */ React.createElement(
35102
35103
  LoadingComponent2,
35103
35104
  {
@@ -67669,6 +67670,7 @@ function AdvancedOptions({
67669
67670
  __name(AdvancedOptions, "AdvancedOptions");
67670
67671
  const TgHTMLSelect = /* @__PURE__ */ __name((_O) => {
67671
67672
  var _P = _O, { disabled } = _P, rest = __objRest(_P, ["disabled"]);
67673
+ rest["data-test-value"] = rest.value;
67672
67674
  if (disabled) {
67673
67675
  const opt = rest.options.find((o2) => o2.value === rest.value);
67674
67676
  return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames("bp3-html-select", rest.className) }), opt.label);
package/index.es.js CHANGED
@@ -35080,6 +35080,7 @@ const DisplayOptions = /* @__PURE__ */ __name(({
35080
35080
  }, "DisplayOptions");
35081
35081
  const { LoadingComponent: LoadingComponent2 } = ReactTableDefaults;
35082
35082
  function DisabledLoadingComponent({ disabled, loading, loadingText }) {
35083
+ if (!loading) return null;
35083
35084
  return /* @__PURE__ */ React__default.createElement(
35084
35085
  LoadingComponent2,
35085
35086
  {
@@ -67651,6 +67652,7 @@ function AdvancedOptions({
67651
67652
  __name(AdvancedOptions, "AdvancedOptions");
67652
67653
  const TgHTMLSelect = /* @__PURE__ */ __name((_O) => {
67653
67654
  var _P = _O, { disabled } = _P, rest = __objRest(_P, ["disabled"]);
67655
+ rest["data-test-value"] = rest.value;
67654
67656
  if (disabled) {
67655
67657
  const opt = rest.options.find((o2) => o2.value === rest.value);
67656
67658
  return /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames("bp3-html-select", rest.className) }), opt.label);
package/index.umd.js CHANGED
@@ -62701,6 +62701,7 @@ ${latestSubscriptionCallbackError.current.stack}
62701
62701
  }, "DisplayOptions");
62702
62702
  const { LoadingComponent } = ReactTableDefaults;
62703
62703
  function DisabledLoadingComponent({ disabled, loading, loadingText }) {
62704
+ if (!loading) return null;
62704
62705
  return /* @__PURE__ */ React.createElement(
62705
62706
  LoadingComponent,
62706
62707
  {
@@ -95104,6 +95105,7 @@ ${latestSubscriptionCallbackError.current.stack}
95104
95105
  __name(AdvancedOptions, "AdvancedOptions");
95105
95106
  const TgHTMLSelect = /* @__PURE__ */ __name((_O) => {
95106
95107
  var _P = _O, { disabled } = _P, rest = __objRest(_P, ["disabled"]);
95108
+ rest["data-test-value"] = rest.value;
95107
95109
  if (disabled) {
95108
95110
  const opt = rest.options.find((o2) => o2.value === rest.value);
95109
95111
  return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames$1("bp3-html-select", rest.className) }), opt.label);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.10.22",
3
+ "version": "0.10.23",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/TeselaGen/tg-oss",
@@ -3,6 +3,7 @@ import { ReactTableDefaults } from "@teselagen/react-table";
3
3
  const { LoadingComponent } = ReactTableDefaults;
4
4
 
5
5
  function DisabledLoadingComponent({ disabled, loading, loadingText }) {
6
+ if (!loading) return null;
6
7
  return (
7
8
  <LoadingComponent
8
9
  className={disabled ? "disabled" : ""}
@@ -6,6 +6,7 @@ import classNames from "classnames";
6
6
  // look like a regular html select with the selected option displayed
7
7
  // (instead of greyed out and without the ability to have tooltips working)
8
8
  const TgHTMLSelect = ({ disabled, ...rest }) => {
9
+ rest["data-test-value"] = rest.value;
9
10
  if (disabled) {
10
11
  const opt = rest.options.find(o => o.value === rest.value);
11
12
  return (