@kashifd/jwero-components 0.6.63 → 0.6.65
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 +23 -32
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -47003,33 +47003,21 @@ const aa = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ x.jsxs(
|
|
|
47003
47003
|
placement: r = "bottom",
|
|
47004
47004
|
onClose: a,
|
|
47005
47005
|
anchorEl: s,
|
|
47006
|
-
boxSx: c
|
|
47006
|
+
boxSx: c,
|
|
47007
|
+
popperProps: d
|
|
47007
47008
|
}) => {
|
|
47008
|
-
const
|
|
47009
|
+
const m = t && !!s ? "transition-popper" : void 0;
|
|
47009
47010
|
return /* @__PURE__ */ x.jsx(
|
|
47010
47011
|
Ta,
|
|
47011
47012
|
{
|
|
47012
|
-
id:
|
|
47013
|
+
id: m,
|
|
47013
47014
|
open: t,
|
|
47014
47015
|
anchorEl: s,
|
|
47015
47016
|
transition: !0,
|
|
47016
47017
|
placement: r,
|
|
47017
47018
|
sx: { zIndex: 9999 },
|
|
47018
|
-
|
|
47019
|
-
|
|
47020
|
-
name: "preventOverflow",
|
|
47021
|
-
options: {
|
|
47022
|
-
boundary: "window"
|
|
47023
|
-
}
|
|
47024
|
-
},
|
|
47025
|
-
{
|
|
47026
|
-
name: "flip",
|
|
47027
|
-
options: {
|
|
47028
|
-
fallbackPlacements: ["top", "right", "left"]
|
|
47029
|
-
}
|
|
47030
|
-
}
|
|
47031
|
-
],
|
|
47032
|
-
children: ({ TransitionProps: m }) => /* @__PURE__ */ x.jsx(As, { onClickAway: a, children: /* @__PURE__ */ x.jsx(Oa, { ...m, timeout: 350, children: /* @__PURE__ */ x.jsx(
|
|
47019
|
+
...d,
|
|
47020
|
+
children: ({ TransitionProps: v }) => /* @__PURE__ */ x.jsx(As, { onClickAway: a, children: /* @__PURE__ */ x.jsx(Oa, { ...v, timeout: 350, children: /* @__PURE__ */ x.jsx(
|
|
47033
47021
|
Ue,
|
|
47034
47022
|
{
|
|
47035
47023
|
sx: {
|
|
@@ -49311,17 +49299,18 @@ const sW = ({
|
|
|
49311
49299
|
primaryButtonProps: e,
|
|
49312
49300
|
secondaryButtonProps: t,
|
|
49313
49301
|
options: r,
|
|
49314
|
-
customClose: a
|
|
49302
|
+
customClose: a,
|
|
49303
|
+
popperProps: s
|
|
49315
49304
|
}) => {
|
|
49316
|
-
const
|
|
49305
|
+
const c = br(), [d, g] = ln(!1), [m, v] = ln(
|
|
49317
49306
|
null
|
|
49318
|
-
),
|
|
49319
|
-
|
|
49320
|
-
},
|
|
49321
|
-
|
|
49307
|
+
), w = (O) => {
|
|
49308
|
+
O.stopPropagation(), d ? (g(!1), v(null)) : (g(!0), v(O.currentTarget), t != null && t.onClick && (t == null || t.onClick(O)));
|
|
49309
|
+
}, T = (O) => {
|
|
49310
|
+
O == null || O.stopPropagation(), g(!1), v(null);
|
|
49322
49311
|
};
|
|
49323
49312
|
return vc(() => {
|
|
49324
|
-
a && (
|
|
49313
|
+
a && (v(null), g(!1));
|
|
49325
49314
|
}, [a]), /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
49326
49315
|
/* @__PURE__ */ x.jsxs(
|
|
49327
49316
|
Ue,
|
|
@@ -49347,7 +49336,7 @@ const sW = ({
|
|
|
49347
49336
|
borderRadius: "0.5rem 0 0 0.5rem",
|
|
49348
49337
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
|
|
49349
49338
|
"&:hover": {
|
|
49350
|
-
backgroundColor:
|
|
49339
|
+
backgroundColor: c.palette.grey[200]
|
|
49351
49340
|
},
|
|
49352
49341
|
padding: "0 1rem",
|
|
49353
49342
|
height: "100%",
|
|
@@ -49359,7 +49348,7 @@ const sW = ({
|
|
|
49359
49348
|
/* @__PURE__ */ x.jsx(Co, { title: t == null ? void 0 : t.tooltip, children: /* @__PURE__ */ x.jsx(
|
|
49360
49349
|
Ue,
|
|
49361
49350
|
{
|
|
49362
|
-
onClick:
|
|
49351
|
+
onClick: w,
|
|
49363
49352
|
alignItems: "center",
|
|
49364
49353
|
justifyContent: "center",
|
|
49365
49354
|
sx: {
|
|
@@ -49367,7 +49356,7 @@ const sW = ({
|
|
|
49367
49356
|
padding: "0 0.5em",
|
|
49368
49357
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
|
|
49369
49358
|
"&:hover": {
|
|
49370
|
-
backgroundColor:
|
|
49359
|
+
backgroundColor: c.palette.grey[200]
|
|
49371
49360
|
},
|
|
49372
49361
|
height: "100%",
|
|
49373
49362
|
...t == null ? void 0 : t.sx
|
|
@@ -49381,10 +49370,11 @@ const sW = ({
|
|
|
49381
49370
|
/* @__PURE__ */ x.jsx(
|
|
49382
49371
|
zp,
|
|
49383
49372
|
{
|
|
49384
|
-
open:
|
|
49385
|
-
onClose:
|
|
49386
|
-
anchorEl:
|
|
49373
|
+
open: d,
|
|
49374
|
+
onClose: T,
|
|
49375
|
+
anchorEl: m,
|
|
49387
49376
|
placement: "bottom",
|
|
49377
|
+
popperProps: s,
|
|
49388
49378
|
children: /* @__PURE__ */ x.jsx(Xx, { menuList: [{ options: r }] })
|
|
49389
49379
|
}
|
|
49390
49380
|
)
|
|
@@ -49565,9 +49555,10 @@ const sW = ({
|
|
|
49565
49555
|
alt: d == null ? void 0 : d.name,
|
|
49566
49556
|
sx: {
|
|
49567
49557
|
bgcolor: !(d != null && d.url) || (d == null ? void 0 : d.url) !== "" ? s.colors.secondary : "transparent",
|
|
49558
|
+
color: "#fff",
|
|
49568
49559
|
...a
|
|
49569
49560
|
},
|
|
49570
|
-
children: !(d != null && d.url)
|
|
49561
|
+
children: !(d != null && d.url) && (d == null ? void 0 : d.url) !== "" && c(d == null ? void 0 : d.name)
|
|
49571
49562
|
},
|
|
49572
49563
|
g
|
|
49573
49564
|
))
|