@leapdevuk/component-toolbox 0.0.92 → 0.0.93

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.es.js CHANGED
@@ -3,7 +3,7 @@ var zo = (e, n, t) => n in e ? Bo(e, n, { enumerable: !0, configurable: !0, writ
3
3
  var L = (e, n, t) => zo(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import * as Ge from "react";
5
5
  import ma, { useState as _e, useEffect as ga, useRef as ya, createRef as qo, useCallback as Go, forwardRef as Qo } from "react";
6
- import { Accordion as Ko, AccordionDetails as pa, styled as ba, AccordionSummary as Zo, Alert as Xo, Tooltip as Vr, Link as Uo, Button as Ae, FormControlLabel as Jo, Checkbox as ei, Chip as ti, OutlinedInput as wa, InputAdornment as xa, Typography as Ue, SvgIcon as Ft, Dialog as va, DialogContent as Ca, DialogTitle as ri, IconButton as it, DialogActions as Ta, TextField as Zt, Popper as Ea, ClickAwayListener as Sa, Paper as ka, Box as ni, Drawer as ai, InputLabel as oi, Backdrop as ii, CircularProgress as si, Menu as ci, MenuItem as ui, Select as li, Snackbar as fi, Avatar as di, TextareaAutosize as hi } from "@mui/material";
6
+ import { Accordion as Ko, AccordionDetails as Zo, styled as pa, AccordionSummary as Xo, Alert as Uo, Tooltip as Vr, Link as Jo, Box as ba, Button as Ae, FormControlLabel as ei, Checkbox as ti, Chip as ri, OutlinedInput as wa, InputAdornment as xa, Typography as Ue, SvgIcon as Ft, Dialog as va, DialogContent as Ca, DialogTitle as ni, IconButton as it, DialogActions as Ta, TextField as Zt, Popper as Ea, ClickAwayListener as Sa, Paper as ka, Drawer as ai, InputLabel as oi, Backdrop as ii, CircularProgress as si, Menu as ci, MenuItem as ui, Select as li, Snackbar as fi, Avatar as di, TextareaAutosize as hi } from "@mui/material";
7
7
  import mi from "@emotion/styled";
8
8
  import "@emotion/react";
9
9
  import { NumericFormat as Yr } from "react-number-format";
@@ -644,7 +644,7 @@ React keys must be passed directly to JSX without using spread:
644
644
  }
645
645
  process.env.NODE_ENV === "production" ? jr.exports = _i() : jr.exports = Ri();
646
646
  var d = jr.exports;
647
- const Sf = (e) => /* @__PURE__ */ d.jsx(Ko, { ...e, children: e.children }), kf = (e) => /* @__PURE__ */ d.jsx(pa, { ...e, children: e.children });
647
+ const Sf = (e) => /* @__PURE__ */ d.jsx(Ko, { ...e, children: e.children }), kf = (e) => /* @__PURE__ */ d.jsx(Zo, { ...e, children: e.children });
648
648
  function He(e) {
649
649
  if (typeof e != "object" || e === null)
650
650
  return !1;
@@ -4356,8 +4356,8 @@ function hr(e, n) {
4356
4356
  }
4357
4357
  const hc = hr(/* @__PURE__ */ d.jsx("path", {
4358
4358
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
4359
- }), "ExpandMore"), Mf = ba((e) => /* @__PURE__ */ d.jsx(
4360
- Zo,
4359
+ }), "ExpandMore"), Mf = pa((e) => /* @__PURE__ */ d.jsx(
4360
+ Xo,
4361
4361
  {
4362
4362
  expandIcon: /* @__PURE__ */ d.jsx(hc, { fontSize: "small", sx: { paddingTop: "2px" } }),
4363
4363
  ...e
@@ -4368,7 +4368,7 @@ const hc = hr(/* @__PURE__ */ d.jsx("path", {
4368
4368
  padding: "0px 10px 0px 5px",
4369
4369
  minHeight: 35,
4370
4370
  maxHeight: 35
4371
- })), Df = (e) => /* @__PURE__ */ d.jsx(Xo, { severity: e.severity ? e.severity : "success", ...e, children: e.children }), Of = ({
4371
+ })), Df = (e) => /* @__PURE__ */ d.jsx(Uo, { severity: e.severity ? e.severity : "success", ...e, children: e.children }), Of = ({
4372
4372
  leftComponents: e,
4373
4373
  centerComponents: n,
4374
4374
  rightComponents: t,
@@ -4391,7 +4391,7 @@ const hc = hr(/* @__PURE__ */ d.jsx("path", {
4391
4391
  n && /* @__PURE__ */ d.jsx(d.Fragment, { children: n }),
4392
4392
  t && /* @__PURE__ */ d.jsx(d.Fragment, { children: t }),
4393
4393
  r && /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsx(Vr, { placement: "bottom-end", title: "Help for this Window", children: /* @__PURE__ */ d.jsx(
4394
- Uo,
4394
+ Jo,
4395
4395
  {
4396
4396
  component: "button",
4397
4397
  onClick: r,
@@ -4410,7 +4410,7 @@ const hc = hr(/* @__PURE__ */ d.jsx("path", {
4410
4410
  ) }) })
4411
4411
  ]
4412
4412
  }
4413
- ), Pf = (e) => /* @__PURE__ */ d.jsx(pa, { ...e, children: e.children }), We = (e) => /* @__PURE__ */ d.jsx(
4413
+ ), Pf = (e) => /* @__PURE__ */ d.jsx(ba, { ...e, children: e.children }), We = (e) => /* @__PURE__ */ d.jsx(
4414
4414
  Ae,
4415
4415
  {
4416
4416
  color: e.color || "primary",
@@ -4455,11 +4455,11 @@ const _f = ({
4455
4455
  disabled: t,
4456
4456
  onChange: r
4457
4457
  }) => /* @__PURE__ */ d.jsx(
4458
- Jo,
4458
+ ei,
4459
4459
  {
4460
4460
  style: e ? { marginLeft: 0, marginRight: 3 } : { marginLeft: 3, marginRight: 3 },
4461
4461
  control: /* @__PURE__ */ d.jsx(
4462
- ei,
4462
+ ti,
4463
4463
  {
4464
4464
  checked: n || !1,
4465
4465
  disabled: t,
@@ -4476,7 +4476,7 @@ const _f = ({
4476
4476
  label: e
4477
4477
  }
4478
4478
  ), Rf = (e) => /* @__PURE__ */ d.jsx(
4479
- ti,
4479
+ ri,
4480
4480
  {
4481
4481
  sx: e.sx ? e.sx : {
4482
4482
  marginLeft: "auto",
@@ -8010,7 +8010,7 @@ const bo = ({
8010
8010
  overflowY: "hidden"
8011
8011
  } : { padding: 0, minWidth: i || 400 },
8012
8012
  children: [
8013
- /* @__PURE__ */ d.jsx(ri, { style: { backgroundColor: "#f0f1f2", padding: 0 }, children: /* @__PURE__ */ d.jsxs(
8013
+ /* @__PURE__ */ d.jsx(ni, { style: { backgroundColor: "#f0f1f2", padding: 0 }, children: /* @__PURE__ */ d.jsxs(
8014
8014
  "div",
8015
8015
  {
8016
8016
  style: {
@@ -9078,13 +9078,13 @@ const bo = ({
9078
9078
  ) })
9079
9079
  ]
9080
9080
  }
9081
- ), rf = 46, nf = 40, Ff = ba((e) => {
9081
+ ), rf = 46, nf = 40, Ff = pa((e) => {
9082
9082
  var a;
9083
9083
  const [n, t] = _e(
9084
9084
  void 0
9085
9085
  ), r = ya(!1);
9086
9086
  return !r.current && !n && e.initialState && (t((a = e.initialState.sorting) == null ? void 0 : a.sortModel), r.current = !0), /* @__PURE__ */ d.jsx(
9087
- ni,
9087
+ ba,
9088
9088
  {
9089
9089
  sx: {
9090
9090
  width: "100%",