react-better-html 1.1.195 → 1.1.197

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.mjs CHANGED
@@ -8607,7 +8607,7 @@ var TableComponent = forwardRef15(function Table({
8607
8607
  )
8608
8608
  ] })
8609
8609
  },
8610
- value.value
8610
+ value.value.toString()
8611
8611
  );
8612
8612
  }) : /* @__PURE__ */ jsx23(Text_default.unknown, { children: "No values" }) })
8613
8613
  ] }),
@@ -9355,7 +9355,7 @@ var Foldable_default = Foldable2;
9355
9355
 
9356
9356
  // src/components/SideMenu.tsx
9357
9357
  import { memo as memo27, useCallback as useCallback16, useEffect as useEffect15, useMemo as useMemo12 } from "react";
9358
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
9358
+ import { Fragment as Fragment8, jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
9359
9359
  var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundColor, onClick }) {
9360
9360
  const reactRouterDomPlugin2 = usePlugin("react-router-dom");
9361
9361
  if (!reactRouterDomPlugin2) {
@@ -9510,6 +9510,9 @@ var SideMenuComponent = function SideMenu({
9510
9510
  collapsable,
9511
9511
  withCloseButton,
9512
9512
  widthMobileHandle,
9513
+ absoluteComponent,
9514
+ additionalComponent,
9515
+ isLoading,
9513
9516
  backgroundColor,
9514
9517
  paddingTop
9515
9518
  }) {
@@ -9582,45 +9585,48 @@ var SideMenuComponent = function SideMenu({
9582
9585
  ) }),
9583
9586
  withCloseButton && mediaQuery.size1000 && /* @__PURE__ */ jsx27(Button_default.icon, { icon: "XMark", marginLeft: "auto", onClick: onClickXButton })
9584
9587
  ] }),
9585
- /* @__PURE__ */ jsx27(
9586
- Div_default.column,
9587
- {
9588
- width: "100%",
9589
- height: "100%",
9590
- overflowY: "auto",
9591
- paddingInline: theme2.styles.space,
9592
- paddingBottom: !isCollapsable && !readyBottomItems ? theme2.styles.space : void 0,
9593
- children: /* @__PURE__ */ jsx27(Div_default.column, { gap: theme2.styles.gap / 2, children: readyItems.map((item) => /* @__PURE__ */ jsx27(
9594
- MenuItemComponent,
9595
- {
9596
- item,
9597
- backgroundColor: readyBackgroundColor,
9598
- onClick: onClickXButton
9599
- },
9600
- item.text
9601
- )) })
9602
- }
9603
- ),
9604
- readyBottomItems && /* @__PURE__ */ jsx27(
9605
- Div_default.column,
9606
- {
9607
- borderTop: mediaQuery.size1000 ? `solid 1px ${theme2.colors.border}` : void 0,
9608
- gap: theme2.styles.gap / 2,
9609
- marginTop: "auto",
9610
- paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
9611
- paddingInline: theme2.styles.space,
9612
- paddingBottom: !isCollapsable ? theme2.styles.space : void 0,
9613
- children: readyBottomItems.map((item) => /* @__PURE__ */ jsx27(
9614
- MenuItemComponent,
9615
- {
9616
- item,
9617
- backgroundColor: readyBackgroundColor,
9618
- onClick: onClickXButton
9619
- },
9620
- item.text
9621
- ))
9622
- }
9623
- ),
9588
+ !isLoading ? /* @__PURE__ */ jsxs23(Fragment8, { children: [
9589
+ /* @__PURE__ */ jsx27(
9590
+ Div_default.column,
9591
+ {
9592
+ width: "100%",
9593
+ height: "100%",
9594
+ overflowY: "auto",
9595
+ paddingInline: theme2.styles.space,
9596
+ paddingBottom: !isCollapsable && !readyBottomItems ? theme2.styles.space : void 0,
9597
+ children: /* @__PURE__ */ jsx27(Div_default.column, { gap: theme2.styles.gap / 2, children: readyItems.map((item) => /* @__PURE__ */ jsx27(
9598
+ MenuItemComponent,
9599
+ {
9600
+ item,
9601
+ backgroundColor: readyBackgroundColor,
9602
+ onClick: onClickXButton
9603
+ },
9604
+ item.text
9605
+ )) })
9606
+ }
9607
+ ),
9608
+ readyBottomItems && /* @__PURE__ */ jsx27(
9609
+ Div_default.column,
9610
+ {
9611
+ borderTop: mediaQuery.size1000 ? `solid 1px ${theme2.colors.border}` : void 0,
9612
+ gap: theme2.styles.gap / 2,
9613
+ marginTop: "auto",
9614
+ paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
9615
+ paddingInline: theme2.styles.space,
9616
+ paddingBottom: !isCollapsable ? theme2.styles.space : void 0,
9617
+ children: readyBottomItems.map((item) => /* @__PURE__ */ jsx27(
9618
+ MenuItemComponent,
9619
+ {
9620
+ item,
9621
+ backgroundColor: readyBackgroundColor,
9622
+ onClick: onClickXButton
9623
+ },
9624
+ item.text
9625
+ ))
9626
+ }
9627
+ )
9628
+ ] }) : /* @__PURE__ */ jsx27(Div_default, { flex: 1, children: /* @__PURE__ */ jsx27(Loader_default.box, { text: isCollapsed ? "" : void 0 }) }),
9629
+ additionalComponent,
9624
9630
  isCollapsable && /* @__PURE__ */ jsx27(
9625
9631
  Div_default,
9626
9632
  {
@@ -9686,7 +9692,8 @@ var SideMenuComponent = function SideMenu({
9686
9692
  }
9687
9693
  )
9688
9694
  }
9689
- )
9695
+ ),
9696
+ absoluteComponent && /* @__PURE__ */ jsx27(Div_default, { position: "absolute", top: 0, left: 0, pointerEvents: "none", zIndex: 2, children: /* @__PURE__ */ jsx27(Div_default, { pointerEvents: "all", children: absoluteComponent }) })
9690
9697
  ]
9691
9698
  }
9692
9699
  );