@simoncomputing/mui-bueno-v2 0.19.4 → 0.19.6

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.ts CHANGED
@@ -43,10 +43,12 @@ export { Button } from './components/Buttons/Button/Button';
43
43
  export { Submit } from './components/Buttons/Submit/Submit';
44
44
  export { ScrollToTop } from './components/Buttons/ScrollToTop/ScrollToTop';
45
45
  export { LoadingButton } from './components/Buttons/LoadingButton/LoadingButton';
46
+ export { MenuButton } from './components/Buttons/MenuButton/MenuButton';
46
47
  export type { ButtonProps } from './components/Buttons/Button/Button';
47
48
  export type { SubmitProps } from './components/Buttons/Submit/Submit';
48
49
  export type { ScrollToTopProps } from './components/Buttons/ScrollToTop/ScrollToTop';
49
50
  export type { LoadingButtonProps } from './components/Buttons/LoadingButton/LoadingButton';
51
+ export type { MenuButtonProps } from './components/Buttons/MenuButton/MenuButton';
50
52
  export { ValidationError } from './components/Form/ValidationError/ValidationError';
51
53
  export { FormDebugger } from './components/Form/FormDebugger/FormDebugger';
52
54
  export { Stepper } from './components/Form/Stepper/Stepper';
@@ -72,7 +74,6 @@ export { DarkModeToggle } from './components/Navigation/Header/DarkModeToggle/Da
72
74
  export { ProfileMenu } from './components/Navigation/Header/ProfileMenu';
73
75
  export { EnvironmentBanner } from './components/Navigation/Header/EnvironmentBanner';
74
76
  export { Sidebar } from './components/Navigation/Sidebar/Sidebar';
75
- export { MenuButton } from './components/Navigation/MenuButton/MenuButton';
76
77
  export { NavBar } from './components/Navigation/NavBar/NavBar';
77
78
  export { FloatingNavBar } from './components/Navigation/NavBar/FloatingNavBar/FloatingNavBar';
78
79
  export { Drawer } from './components/Navigation/Header/Drawer';
@@ -82,7 +83,6 @@ export type { HeaderProps } from './components/Navigation/Header/Header';
82
83
  export type { DarkModeToggleProps } from './components/Navigation/Header/DarkModeToggle/DarkModeToggle';
83
84
  export type { ProfileMenuProps } from './components/Navigation/Header/ProfileMenu';
84
85
  export type { SidebarProps } from './components/Navigation/Sidebar/Sidebar';
85
- export type { MenuButtonProps } from './components/Navigation/MenuButton/MenuButton';
86
86
  export type { NavBarProps } from './components/Navigation/NavBar/NavBar';
87
87
  export type { FloatingNavBarProps } from './components/Navigation/NavBar/FloatingNavBar/FloatingNavBar';
88
88
  export type { DrawerProps } from './components/Navigation/Header/Drawer';
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './index.css';var WV = Object.defineProperty;
2
2
  var qV = (t, e, n) => e in t ? WV(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var rc = (t, e, n) => qV(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createTheme as IA, Typography as qe, Box as Ae, TextField as Ci, FormControl as Yo, Autocomplete as S1, FormControlLabel as Up, Checkbox as C1, FormLabel as DA, Button as qt, Card as na, CardContent as dv, IconButton as cr, Radio as UV, FormHelperText as KV, RadioGroup as YV, Slider as GV, MenuItem as In, ListItemIcon as w1, InputLabel as PA, Select as NA, Switch as JV, InputAdornment as ZV, useMediaQuery as da, useTheme as Fn, darken as Zw, alpha as Vf, lighten as XV, Popper as Kp, Fade as LA, Paper as ms, DialogActions as ml, Link as T1, Collapse as fv, Divider as bi, createSvgIcon as hr, Tooltip as yi, ToggleButton as QV, toggleButtonClasses as eH, rgbToHex as tH, ClickAwayListener as nH, Stack as rH, outlinedInputClasses as Xw, svgIconClasses as Qw, selectClasses as oH, List as $A, ListItem as mf, ListItemButton as iH, CircularProgress as FA, TableRow as Ga, TableCell as Ja, TableContainer as sH, Table as aH, TableHead as lH, TableBody as cH, TablePagination as uH, Dialog as dH, DialogTitle as fH, DialogContent as pH, DialogContentText as hH, useScrollTrigger as mH, Zoom as gH, Fab as yH, Stepper as bH, Step as vH, StepLabel as xH, Drawer as SH, MenuList as CH, ListItemText as BA, Menu as wH, Tabs as TH, Tab as _H, AppBar as kH, Toolbar as EH, Breadcrumbs as MH, Snackbar as OH, AlertTitle as AH } from "@mui/material";
4
+ import { createTheme as IA, Typography as qe, Box as Ae, TextField as Ci, FormControl as Yo, Autocomplete as S1, FormControlLabel as Up, Checkbox as C1, FormLabel as DA, Button as qt, Card as na, CardContent as dv, IconButton as cr, Radio as UV, FormHelperText as KV, RadioGroup as YV, Slider as GV, MenuItem as In, ListItemIcon as w1, InputLabel as PA, Select as NA, Switch as JV, InputAdornment as ZV, useMediaQuery as da, useTheme as Fn, darken as Zw, alpha as Vf, lighten as XV, Popper as Kp, Fade as LA, Paper as ms, DialogActions as ml, Link as T1, Collapse as fv, Divider as bi, createSvgIcon as hr, Tooltip as yi, ToggleButton as QV, toggleButtonClasses as eH, rgbToHex as tH, ClickAwayListener as nH, Stack as rH, outlinedInputClasses as Xw, svgIconClasses as Qw, selectClasses as oH, List as $A, ListItem as mf, ListItemButton as iH, CircularProgress as FA, TableRow as Ga, TableCell as Ja, TableContainer as sH, Table as aH, TableHead as lH, TableBody as cH, TablePagination as uH, Dialog as dH, DialogTitle as fH, DialogContent as pH, DialogContentText as hH, useScrollTrigger as mH, Zoom as gH, Fab as yH, Menu as bH, ListItemText as BA, Stepper as vH, Step as xH, StepLabel as SH, Drawer as CH, MenuList as wH, Tabs as TH, Tab as _H, AppBar as kH, Toolbar as EH, Breadcrumbs as MH, Snackbar as OH, AlertTitle as AH } from "@mui/material";
5
5
  import { jsx as S, jsxs as ee, Fragment as mn } from "react/jsx-runtime";
6
6
  import * as R from "react";
7
7
  import Pe, { useEffect as It, Children as RH, isValidElement as gf, cloneElement as yf, useRef as on, useMemo as Er, createContext as xu, useContext as Yp, forwardRef as Su, createElement as IH, useCallback as zr, useState as xt, useDebugValue as zA, useLayoutEffect as VA, Component as DH, useImperativeHandle as HA } from "react";
@@ -8756,7 +8756,9 @@ const Sme = (t) => {
8756
8756
  useFieldAsValue: g,
8757
8757
  errorMode: x = "normal",
8758
8758
  ...C
8759
- } = t, [_, T, w] = zn(e), { setValue: E } = w, { error: O } = T, P = {
8759
+ } = t, [_, T, w] = zn(e), { setValue: E } = w, { error: O } = T;
8760
+ g && t.freeSolo && console.error("MultiAutocomplete: `freeSolo` with `useFieldAsValue` not currently supported");
8761
+ const P = {
8760
8762
  ...ur(C, ["useFieldAsValue", "errorMode"]),
8761
8763
  getOptionLabel: y,
8762
8764
  options: r,
@@ -60461,6 +60463,29 @@ const b$ = xu(void 0), v$ = () => {
60461
60463
  )
60462
60464
  }
60463
60465
  ) });
60466
+ }, tme = (t) => {
60467
+ const { label: e, menuOptions: n = [], icon: r } = t, o = Il(), [i, s] = R.useState(null), a = !!i, l = (f) => {
60468
+ s(f.currentTarget);
60469
+ }, u = () => {
60470
+ s(null);
60471
+ };
60472
+ return n.length === 0 ? null : /* @__PURE__ */ ee(mn, { children: [
60473
+ /* @__PURE__ */ S(
60474
+ qt,
60475
+ {
60476
+ startIcon: r,
60477
+ variant: "outlined",
60478
+ color: "inherit",
60479
+ sx: { minWidth: 0, padding: 1 },
60480
+ onClick: l,
60481
+ children: e
60482
+ }
60483
+ ),
60484
+ /* @__PURE__ */ S(bH, { anchorEl: i, open: a, onClick: u, children: n.map((f) => /* @__PURE__ */ ee(In, { ...Cu(f, o), children: [
60485
+ f.icon && /* @__PURE__ */ S(w1, { children: f.icon }),
60486
+ /* @__PURE__ */ S(BA, { primary: f.label })
60487
+ ] }, f.label)) })
60488
+ ] });
60464
60489
  }, Fme = () => {
60465
60490
  const { values: t, errors: e, status: n } = jA(), { palette: r } = Fn();
60466
60491
  return /* @__PURE__ */ S(ms, { style: { backgroundColor: r.mode === "dark" ? "#303030" : "#f0f0f0", margin: "10px 0" }, children: /* @__PURE__ */ ee($A, { children: [
@@ -60495,7 +60520,7 @@ const b$ = xu(void 0), v$ = () => {
60495
60520
  orientation: a,
60496
60521
  ...ur({ ...t }, l)
60497
60522
  };
60498
- return /* @__PURE__ */ S(bH, { ...u, children: e.map((f) => /* @__PURE__ */ S(vH, { children: /* @__PURE__ */ S(xH, { children: f }) }, f)) });
60523
+ return /* @__PURE__ */ S(vH, { ...u, children: e.map((f) => /* @__PURE__ */ S(xH, { children: /* @__PURE__ */ S(SH, { children: f }) }, f)) });
60499
60524
  }, zme = (t) => {
60500
60525
  const {
60501
60526
  name: e,
@@ -60534,7 +60559,7 @@ const b$ = xu(void 0), v$ = () => {
60534
60559
  name: e,
60535
60560
  render: (T) => /* @__PURE__ */ ee("div", { children: [
60536
60561
  C.map((w, E) => /* @__PURE__ */ S(Pe.Fragment, { children: /* @__PURE__ */ S(
60537
- tme,
60562
+ nme,
60538
60563
  {
60539
60564
  variant: l,
60540
60565
  content: /* @__PURE__ */ ee(
@@ -60574,7 +60599,7 @@ const b$ = xu(void 0), v$ = () => {
60574
60599
  }
60575
60600
  )
60576
60601
  ] });
60577
- }, tme = ({ variant: t, content: e }) => {
60602
+ }, nme = ({ variant: t, content: e }) => {
60578
60603
  switch (t) {
60579
60604
  case "card":
60580
60605
  return /* @__PURE__ */ S(na, { "data-testid": "repeatable-form-group_card", sx: { padding: "8px", marginBottom: "8px" }, children: /* @__PURE__ */ S(dv, { children: e }) });
@@ -60748,8 +60773,8 @@ const b$ = xu(void 0), v$ = () => {
60748
60773
  ]
60749
60774
  }
60750
60775
  );
60751
- }, nme = (t) => {
60752
- const { menuOptionLists: e, anchor: n = "left", children: r } = t, { pathname: o } = _1(), i = Il(), [s, a] = xt(!1), l = (m, y) => /* @__PURE__ */ S(CH, { children: m.map((b) => /* @__PURE__ */ ee(
60776
+ }, rme = (t) => {
60777
+ const { menuOptionLists: e, anchor: n = "left", children: r } = t, { pathname: o } = _1(), i = Il(), [s, a] = xt(!1), l = (m, y) => /* @__PURE__ */ S(wH, { children: m.map((b) => /* @__PURE__ */ ee(
60753
60778
  In,
60754
60779
  {
60755
60780
  ...Cu(b, i, () => a(!1)),
@@ -60776,9 +60801,9 @@ const b$ = xu(void 0), v$ = () => {
60776
60801
  a(!1);
60777
60802
  }, [o]), p && /* @__PURE__ */ ee(mn, { children: [
60778
60803
  /* @__PURE__ */ S(cr, { onClick: () => a(!0), color: "inherit", title: "Menu", children: /* @__PURE__ */ S(B7, {}) }),
60779
- /* @__PURE__ */ S(SH, { "data-testid": "mobile-drawer", anchor: n, open: s, onClose: () => a(!1), children: /* @__PURE__ */ S(Ae, { sx: { width: 300 }, display: "flex", flexDirection: "column", justifyContent: "space-between", children: /* @__PURE__ */ S(Ae, { display: "flex", justifyContent: "start", flexDirection: "column", children: f }) }) })
60804
+ /* @__PURE__ */ S(CH, { "data-testid": "mobile-drawer", anchor: n, open: s, onClose: () => a(!1), children: /* @__PURE__ */ S(Ae, { sx: { width: 300 }, display: "flex", flexDirection: "column", justifyContent: "space-between", children: /* @__PURE__ */ S(Ae, { display: "flex", justifyContent: "start", flexDirection: "column", children: f }) }) })
60780
60805
  ] });
60781
- }, rme = (t) => {
60806
+ }, ome = (t) => {
60782
60807
  const { env: e, isProd: n } = t;
60783
60808
  return n ? null : /* @__PURE__ */ S(
60784
60809
  ms,
@@ -60795,32 +60820,9 @@ const b$ = xu(void 0), v$ = () => {
60795
60820
  ] })
60796
60821
  }
60797
60822
  );
60798
- }, ome = (t) => {
60799
- const { label: e, menuOptions: n = [], icon: r } = t, o = Il(), [i, s] = R.useState(null), a = !!i, l = (f) => {
60800
- s(f.currentTarget);
60801
- }, u = () => {
60802
- s(null);
60803
- };
60804
- return n.length === 0 ? null : /* @__PURE__ */ ee(mn, { children: [
60805
- /* @__PURE__ */ S(
60806
- qt,
60807
- {
60808
- startIcon: r,
60809
- variant: "outlined",
60810
- color: "inherit",
60811
- sx: { minWidth: 0, padding: 1 },
60812
- onClick: l,
60813
- children: e
60814
- }
60815
- ),
60816
- /* @__PURE__ */ S(wH, { anchorEl: i, open: a, onClick: u, children: n.map((f) => /* @__PURE__ */ ee(In, { ...Cu(f, o), children: [
60817
- f.icon && /* @__PURE__ */ S(w1, { children: f.icon }),
60818
- /* @__PURE__ */ S(BA, { primary: f.label })
60819
- ] }, f.label)) })
60820
- ] });
60821
60823
  }, ime = (t) => {
60822
60824
  const { displayName: e, userMenuOptions: n } = t;
60823
- return /* @__PURE__ */ S(ome, { label: e, menuOptions: n, icon: /* @__PURE__ */ S(V7, {}) });
60825
+ return /* @__PURE__ */ S(tme, { label: e, menuOptions: n, icon: /* @__PURE__ */ S(V7, {}) });
60824
60826
  }, TS = (t) => {
60825
60827
  const {
60826
60828
  menuOptions: e,
@@ -60891,7 +60893,7 @@ const b$ = xu(void 0), v$ = () => {
60891
60893
  ...i
60892
60894
  ] : i;
60893
60895
  return /* @__PURE__ */ ee(kH, { ref: n, position: f, sx: m, elevation: 4, children: [
60894
- e && /* @__PURE__ */ S(rme, { ...e }),
60896
+ e && /* @__PURE__ */ S(ome, { ...e }),
60895
60897
  u,
60896
60898
  /* @__PURE__ */ ee(
60897
60899
  EH,
@@ -60917,7 +60919,7 @@ const b$ = xu(void 0), v$ = () => {
60917
60919
  ) : r }),
60918
60920
  /* @__PURE__ */ ee(Ae, { display: "flex", gap: 2, alignItems: "center", children: [
60919
60921
  !l && !g && E,
60920
- g && /* @__PURE__ */ S(nme, { menuOptionLists: [o, a, O], anchor: "right" }),
60922
+ g && /* @__PURE__ */ S(rme, { menuOptionLists: [o, a, O], anchor: "right" }),
60921
60923
  !g && /* @__PURE__ */ ee(mn, { children: [
60922
60924
  /* @__PURE__ */ S(Ae, { display: "flex", gap: 0, children: a == null ? void 0 : a.map((P, D) => /* @__PURE__ */ ee(Ae, { display: "flex", alignItems: "center", children: [
60923
60925
  D > 0 && /* @__PURE__ */ S(
@@ -61221,9 +61223,9 @@ export {
61221
61223
  Ev as DateField,
61222
61224
  Ame as DateRangeField,
61223
61225
  jme as DecisionModal,
61224
- nme as Drawer,
61226
+ rme as Drawer,
61225
61227
  Sme as DynamicAutocomplete,
61226
- rme as EnvironmentBanner,
61228
+ ome as EnvironmentBanner,
61227
61229
  Whe as ErrorAlert,
61228
61230
  Tme as FileList,
61229
61231
  U8 as FileUpload,
@@ -61235,7 +61237,7 @@ export {
61235
61237
  s$ as LoadingButton,
61236
61238
  Y2 as LoadingIndicator,
61237
61239
  _me as Location,
61238
- ome as MenuButton,
61240
+ tme as MenuButton,
61239
61241
  Qh as Modal,
61240
61242
  Cme as MultiAutocomplete,
61241
61243
  sme as NavBar,