@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.cjs.js +22 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +51 -32
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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) =>
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
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
|
-
|
|
9552
|
-
PaperProps: {
|
|
9561
|
+
} : {
|
|
9562
|
+
...e.MenuProps,
|
|
9553
9563
|
sx: {
|
|
9554
|
-
|
|
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
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
)
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
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" },
|