@wandelbots/wandelbots-js-react-components 2.49.0 → 2.50.0-pr.bugfix-remove-background-from-app-bar.394.be71b7f

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
@@ -744,12 +744,19 @@ const z0 = ({
744
744
  }
745
745
  ) }), qk = Ge(
746
746
  Ce((e) => {
747
- const { appIcon: t, appName: r, apps: n = [], onAppSelect: a, sx: o } = e, [s, i] = De(null), l = !!s, c = (h) => {
748
- i(h.currentTarget);
749
- }, u = () => {
750
- i(null);
751
- }, d = (h) => {
752
- u(), h.onClick ? h.onClick() : h.href && (window.location.href = h.href), a == null || a(h);
747
+ const {
748
+ appIcon: t,
749
+ appName: r,
750
+ apps: n = [],
751
+ onAppSelect: a,
752
+ disabled: o = !1,
753
+ sx: s
754
+ } = e, [i, l] = De(null), c = !!i, u = (p) => {
755
+ l(p.currentTarget);
756
+ }, d = () => {
757
+ l(null);
758
+ }, h = (p) => {
759
+ d(), p.onClick ? p.onClick() : p.href && (window.location.href = p.href), a == null || a(p);
753
760
  };
754
761
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
755
762
  /* @__PURE__ */ g.jsx(
@@ -763,21 +770,18 @@ const z0 = ({
763
770
  backgroundImage: "none",
764
771
  backgroundColor: "transparent"
765
772
  },
766
- ...o
773
+ ...s
767
774
  },
768
775
  children: /* @__PURE__ */ g.jsxs($g, { sx: { minHeight: "62px !important" }, children: [
769
- /* @__PURE__ */ g.jsx(re, { sx: { mr: 2, display: "flex", alignItems: "center" }, children: t }),
776
+ /* @__PURE__ */ g.jsx(re, { sx: { mr: 1, display: "flex", alignItems: "center" }, children: t }),
770
777
  /* @__PURE__ */ g.jsxs(re, { sx: { display: "flex", alignItems: "center", flexGrow: 1 }, children: [
771
778
  /* @__PURE__ */ g.jsx(
772
779
  he,
773
780
  {
774
- variant: "h6",
775
- component: "div",
781
+ component: "h1",
776
782
  sx: {
777
- fontWeight: 700,
778
- fontSize: "20px",
779
- lineHeight: "24px",
780
- letterSpacing: 0
783
+ fontWeight: "bold",
784
+ fontSize: "1rem"
781
785
  },
782
786
  children: r
783
787
  }
@@ -789,22 +793,23 @@ const z0 = ({
789
793
  "aria-label": "switch app",
790
794
  "aria-controls": "app-menu",
791
795
  "aria-haspopup": "true",
792
- onClick: c,
796
+ onClick: u,
797
+ disabled: o,
793
798
  sx: {
794
- ml: 2,
795
- width: 30,
796
- height: 30,
797
- borderRadius: "8px",
798
- padding: "5px",
799
- backgroundColor: (h) => zc(h.palette.common.white, 0.1),
799
+ ml: 1,
800
+ width: 28,
801
+ height: 28,
802
+ borderRadius: "6px",
803
+ padding: 0,
804
+ backgroundColor: (p) => zc(p.palette.common.white, 0.1),
800
805
  opacity: 1,
801
806
  "&:hover": {
802
- backgroundColor: (h) => zc(h.palette.common.white, 0.16)
807
+ backgroundColor: (p) => zc(p.palette.common.white, 0.16)
803
808
  },
804
809
  "& .MuiSvgIcon-root": {
805
- fontSize: "10px",
806
- width: "10px",
807
- height: "8px"
810
+ fontSize: "8px",
811
+ width: "8px",
812
+ height: "6px"
808
813
  }
809
814
  },
810
815
  children: /* @__PURE__ */ g.jsx(G0, {})
@@ -817,12 +822,12 @@ const z0 = ({
817
822
  /* @__PURE__ */ g.jsx(
818
823
  Ug,
819
824
  {
820
- open: l,
821
- onClick: u,
825
+ open: c,
826
+ onClick: d,
822
827
  sx: {
823
828
  backdropFilter: "blur(4px)",
824
829
  backgroundColor: "rgba(0, 0, 0, 0.3)",
825
- zIndex: (h) => h.zIndex.modal - 1
830
+ zIndex: (p) => p.zIndex.modal - 1
826
831
  }
827
832
  }
828
833
  ),
@@ -830,9 +835,9 @@ const z0 = ({
830
835
  Dg,
831
836
  {
832
837
  id: "app-menu",
833
- anchorEl: s,
834
- open: l,
835
- onClose: u,
838
+ anchorEl: i,
839
+ open: c,
840
+ onClose: d,
836
841
  anchorOrigin: {
837
842
  vertical: "bottom",
838
843
  horizontal: "left"
@@ -842,30 +847,16 @@ const z0 = ({
842
847
  horizontal: "left"
843
848
  },
844
849
  sx: {
845
- zIndex: (h) => h.zIndex.modal,
850
+ zIndex: (p) => p.zIndex.modal,
846
851
  "& .MuiPaper-root": {
847
852
  minWidth: 200,
848
853
  mt: 1
849
854
  }
850
855
  },
851
- children: n.map((h) => /* @__PURE__ */ g.jsxs(
852
- gn,
853
- {
854
- onClick: () => d(h),
855
- sx: {
856
- display: "flex",
857
- alignItems: "center",
858
- gap: 2,
859
- py: 1.5,
860
- px: 2
861
- },
862
- children: [
863
- /* @__PURE__ */ g.jsx(re, { sx: { display: "flex", alignItems: "center" }, children: h.icon }),
864
- /* @__PURE__ */ g.jsx(he, { variant: "body1", children: h.name })
865
- ]
866
- },
867
- h.id
868
- ))
856
+ children: n.map((p) => /* @__PURE__ */ g.jsxs(gn, { onClick: () => h(p), children: [
857
+ /* @__PURE__ */ g.jsx(re, { sx: { display: "flex", alignItems: "center" }, children: p.icon }),
858
+ /* @__PURE__ */ g.jsx(he, { variant: "body1", sx: { ml: 2 }, children: p.name })
859
+ ] }, p.id))
869
860
  }
870
861
  )
871
862
  ] });