@leapdevuk/component-toolbox 0.0.99 → 0.0.100

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
@@ -9532,41 +9532,60 @@ const id = ({
9532
9532
  }
9533
9533
  ) }), ff = (e, n, t) => {
9534
9534
  let r = [];
9535
- return e.includes("All") && !n.includes("All") ? r = t.concat("All") : !e.includes("All") && n.includes("All") ? r = [] : r = e.filter((a) => a !== "All"), r;
9536
- }, sd = (e) => /* @__PURE__ */ d.jsx(
9537
- mi,
9538
- {
9539
- fullWidth: !0,
9540
- sx: e.sx,
9541
- variant: "outlined",
9542
- value: e.value,
9543
- MenuProps: e.MenuProps && e.multiple ? {
9544
- ...e.MenuProps,
9545
- sx: {
9546
- ".MuiButtonBase-root": {
9547
- borderRadius: 0,
9548
- padding: "4px 8px 4px 0px"
9535
+ return e.includes("All") && !n.includes("All") ? r = t.concat("All") : !e.includes("All") && n.includes("All") ? r = [] : e.filter((a) => a !== "All").length === t.length ? r = e.concat("All") : r = e.filter((a) => a !== "All"), r;
9536
+ }, sd = (e) => {
9537
+ var n;
9538
+ return /* @__PURE__ */ d.jsx(
9539
+ mi,
9540
+ {
9541
+ fullWidth: !0,
9542
+ sx: e.sx,
9543
+ variant: "outlined",
9544
+ value: e.value,
9545
+ disabled: e.disabled,
9546
+ MenuProps: e.MenuProps && e.multiple ? {
9547
+ ...e.MenuProps,
9548
+ sx: {
9549
+ ...e.MenuProps.sx,
9550
+ ".MuiButtonBase-root": {
9551
+ borderRadius: 0,
9552
+ padding: "4px 8px 4px 0px"
9553
+ }
9554
+ },
9555
+ variant: "menu",
9556
+ PaperProps: {
9557
+ sx: {
9558
+ borderRadius: 0
9559
+ }
9549
9560
  }
9550
- },
9551
- variant: "menu",
9552
- PaperProps: {
9561
+ } : {
9562
+ ...e.MenuProps,
9553
9563
  sx: {
9554
- borderRadius: 0
9564
+ ...(n = e.MenuProps) == null ? void 0 : n.sx,
9565
+ ".MuiButtonBase-root": {
9566
+ borderRadius: 0
9567
+ }
9568
+ },
9569
+ variant: "menu",
9570
+ PaperProps: {
9571
+ sx: {
9572
+ borderRadius: 0
9573
+ }
9555
9574
  }
9556
- }
9557
- } : e.MenuProps,
9558
- onChange: (n, t) => e.multiple ? e.onChange(
9559
- ff(
9560
- n.target.value,
9561
- e.originalValue || [],
9562
- e.fullList || []
9563
- )
9564
- ) : e.onChange && e.onChange(n, t),
9565
- renderValue: e.renderValue,
9566
- multiple: e.multiple,
9567
- children: e.children
9568
- }
9569
- ), cd = (e) => /* @__PURE__ */ d.jsx(
9575
+ },
9576
+ onChange: (t, r) => e.multiple ? e.onChange(
9577
+ ff(
9578
+ t.target.value,
9579
+ e.originalValue || [],
9580
+ e.fullList || []
9581
+ )
9582
+ ) : e.onChange && e.onChange(t, r),
9583
+ renderValue: e.renderValue,
9584
+ multiple: e.multiple,
9585
+ children: e.children
9586
+ }
9587
+ );
9588
+ }, cd = (e) => /* @__PURE__ */ d.jsx(
9570
9589
  gi,
9571
9590
  {
9572
9591
  anchorOrigin: e.anchorOrigin ? e.anchorOrigin : { vertical: "bottom", horizontal: "right" },