react-better-html 1.1.147 → 1.1.149

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.d.mts CHANGED
@@ -371,7 +371,7 @@ type ChipProps = {
371
371
  type ChipComponentType = {
372
372
  (props: ComponentPropWithRef<HTMLDivElement, ChipProps>): React.ReactElement;
373
373
  colored: (props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps, "color" | "backgroundColor"> & {
374
- color?: Color;
374
+ color?: string;
375
375
  }>) => React.ReactElement;
376
376
  };
377
377
  declare const ChipComponent: ChipComponentType;
@@ -490,6 +490,7 @@ type InternalToggleInputProps<Value> = {
490
490
  label?: string;
491
491
  labelColor?: string;
492
492
  text?: string;
493
+ textAdvanced?: React.ReactNode;
493
494
  errorText?: string;
494
495
  infoText?: string;
495
496
  value?: Value;
package/dist/index.d.ts CHANGED
@@ -371,7 +371,7 @@ type ChipProps = {
371
371
  type ChipComponentType = {
372
372
  (props: ComponentPropWithRef<HTMLDivElement, ChipProps>): React.ReactElement;
373
373
  colored: (props: ComponentPropWithRef<HTMLDivElement, OmitProps<ChipProps, "color" | "backgroundColor"> & {
374
- color?: Color;
374
+ color?: string;
375
375
  }>) => React.ReactElement;
376
376
  };
377
377
  declare const ChipComponent: ChipComponentType;
@@ -490,6 +490,7 @@ type InternalToggleInputProps<Value> = {
490
490
  label?: string;
491
491
  labelColor?: string;
492
492
  text?: string;
493
+ textAdvanced?: React.ReactNode;
493
494
  errorText?: string;
494
495
  infoText?: string;
495
496
  value?: Value;
package/dist/index.js CHANGED
@@ -6985,6 +6985,7 @@ var ToggleInputComponent = (0, import_react21.forwardRef)(function ToggleInput({
6985
6985
  label,
6986
6986
  labelColor,
6987
6987
  text,
6988
+ textAdvanced,
6988
6989
  errorText,
6989
6990
  infoText,
6990
6991
  value,
@@ -7066,13 +7067,19 @@ var ToggleInputComponent = (0, import_react21.forwardRef)(function ToggleInput({
7066
7067
  }
7067
7068
  ) : void 0
7068
7069
  ] }),
7069
- text && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7070
+ text ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7070
7071
  text,
7071
7072
  required && !label && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
7072
7073
  " ",
7073
7074
  "*"
7074
7075
  ] })
7075
- ] })
7076
+ ] }) : textAdvanced ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Div_default.row, { userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7077
+ textAdvanced,
7078
+ required && !label && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, marginLeft: 4, children: [
7079
+ " ",
7080
+ "*"
7081
+ ] })
7082
+ ] }) : void 0
7076
7083
  ] }),
7077
7084
  (errorText || infoText) && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
7078
7085
  Text_default,
@@ -8026,7 +8033,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
8026
8033
  }
8027
8034
  ),
8028
8035
  expandedRows[rowIndex] && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { colSpan: columns.length, children: renderExpandedRow(item, rowIndex) }) })
8029
- ] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8036
+ ] }, JSON.stringify(item) + rowIndex + getRowStyle)) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8030
8037
  withFooter && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "isFooter", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
8031
8038
  Div_default.column,
8032
8039
  {