@kashifd/jwero-components 0.7.10 → 0.7.12
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 +49 -36
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -46888,6 +46888,7 @@ const aa = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ b.jsxs(
|
|
|
46888
46888
|
{
|
|
46889
46889
|
title: (c == null ? void 0 : c.label) ?? "",
|
|
46890
46890
|
onClick: c == null ? void 0 : c.onClick,
|
|
46891
|
+
disabled: c == null ? void 0 : c.disabled,
|
|
46891
46892
|
variant: "outlined"
|
|
46892
46893
|
}
|
|
46893
46894
|
),
|
|
@@ -46901,6 +46902,7 @@ const aa = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ b.jsxs(
|
|
|
46901
46902
|
loading: v,
|
|
46902
46903
|
position: "end"
|
|
46903
46904
|
},
|
|
46905
|
+
disabled: s == null ? void 0 : s.disabled,
|
|
46904
46906
|
boxSx: {
|
|
46905
46907
|
background: (s == null ? void 0 : s.buttonType) === "positive" ? w.colors.attention : w.colors.negative,
|
|
46906
46908
|
"&:hover": {
|
|
@@ -48197,7 +48199,7 @@ const iW = ({
|
|
|
48197
48199
|
sx: {
|
|
48198
48200
|
margin: 0,
|
|
48199
48201
|
padding: "0.05rem",
|
|
48200
|
-
|
|
48202
|
+
backgroundColor: "#fff",
|
|
48201
48203
|
"&:hover": {
|
|
48202
48204
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)"
|
|
48203
48205
|
}
|
|
@@ -48212,7 +48214,7 @@ const iW = ({
|
|
|
48212
48214
|
sx: {
|
|
48213
48215
|
padding: "0.35rem 0.5rem",
|
|
48214
48216
|
borderRadius: "0.5rem",
|
|
48215
|
-
backgroundColor: "
|
|
48217
|
+
backgroundColor: "#fff",
|
|
48216
48218
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)"
|
|
48217
48219
|
},
|
|
48218
48220
|
children: /* @__PURE__ */ b.jsxs(
|
|
@@ -48225,7 +48227,7 @@ const iW = ({
|
|
|
48225
48227
|
fontWeight: 500
|
|
48226
48228
|
},
|
|
48227
48229
|
children: [
|
|
48228
|
-
/* @__PURE__ */ b.jsxs("span", { style: { color:
|
|
48230
|
+
/* @__PURE__ */ b.jsxs("span", { style: { color: m.colors.text_primary }, children: [
|
|
48229
48231
|
d != null && d.custom_name ? (d == null ? void 0 : d.custom_name) + " " : "Steps ",
|
|
48230
48232
|
(d == null ? void 0 : d.current_step) ?? "1 "
|
|
48231
48233
|
] }),
|
|
@@ -49004,7 +49006,6 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
|
|
|
49004
49006
|
bt,
|
|
49005
49007
|
{
|
|
49006
49008
|
variant: "lRegular",
|
|
49007
|
-
sx: { color: r.colors.light_text_color },
|
|
49008
49009
|
...a == null ? void 0 : a.titleProps,
|
|
49009
49010
|
children: a.title
|
|
49010
49011
|
}
|
|
@@ -49077,32 +49078,32 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
|
|
|
49077
49078
|
menuSx: v,
|
|
49078
49079
|
popperSx: w
|
|
49079
49080
|
}) => {
|
|
49080
|
-
const T = bc(null), [
|
|
49081
|
-
|
|
49082
|
-
},
|
|
49083
|
-
|
|
49081
|
+
const T = Nt(), O = bc(null), [P, I] = $r(!1), j = () => {
|
|
49082
|
+
I(!0), t && t();
|
|
49083
|
+
}, R = () => {
|
|
49084
|
+
I(!1);
|
|
49084
49085
|
};
|
|
49085
49086
|
return js(() => {
|
|
49086
|
-
r &&
|
|
49087
|
+
r && I(!1);
|
|
49087
49088
|
}, [r]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
49088
49089
|
/* @__PURE__ */ b.jsxs(
|
|
49089
49090
|
Ue,
|
|
49090
49091
|
{
|
|
49091
|
-
onClick:
|
|
49092
|
-
ref:
|
|
49092
|
+
onClick: j,
|
|
49093
|
+
ref: O,
|
|
49093
49094
|
direction: "row",
|
|
49094
49095
|
alignItems: "center",
|
|
49095
49096
|
justifyContent: "space-between",
|
|
49096
49097
|
sx: {
|
|
49097
49098
|
gap: "1rem",
|
|
49098
49099
|
padding: "0.5rem 0.75rem 0.5rem 0.5rem",
|
|
49099
|
-
backgroundColor:
|
|
49100
|
+
backgroundColor: T.palette.background.paper,
|
|
49100
49101
|
borderRadius: "0.5rem",
|
|
49101
49102
|
border: "1px solid rgba(0, 0, 0, 0.08)",
|
|
49102
49103
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
|
|
49103
49104
|
"&:hover": {
|
|
49104
49105
|
cursor: "pointer",
|
|
49105
|
-
bgcolor: "#
|
|
49106
|
+
bgcolor: T.palette.mode === "light" ? "#f5f5f5" : "#2e2d2d",
|
|
49106
49107
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.50)"
|
|
49107
49108
|
},
|
|
49108
49109
|
...d
|
|
@@ -49128,9 +49129,9 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
|
|
|
49128
49129
|
/* @__PURE__ */ b.jsx(
|
|
49129
49130
|
Vh,
|
|
49130
49131
|
{
|
|
49131
|
-
open:
|
|
49132
|
-
onClose:
|
|
49133
|
-
anchorEl:
|
|
49132
|
+
open: P,
|
|
49133
|
+
onClose: R,
|
|
49134
|
+
anchorEl: O == null ? void 0 : O.current,
|
|
49134
49135
|
placement: "bottom-start",
|
|
49135
49136
|
boxSx: w,
|
|
49136
49137
|
children: /* @__PURE__ */ b.jsx(Qx, { menuList: a, boxSx: v })
|
|
@@ -58798,8 +58799,8 @@ const yz = (e, t = 10) => {
|
|
|
58798
58799
|
onDeleteProps: t,
|
|
58799
58800
|
isHovered: r
|
|
58800
58801
|
}) => {
|
|
58801
|
-
const a = e == null ? void 0 : e.flag,
|
|
58802
|
-
return /* @__PURE__ */ b.jsx(b.Fragment, { children: r && (
|
|
58802
|
+
const a = Nt(), s = e == null ? void 0 : e.flag, c = t == null ? void 0 : t.flag, d = e == null ? void 0 : e.onClick, g = t == null ? void 0 : t.onClick;
|
|
58803
|
+
return /* @__PURE__ */ b.jsx(b.Fragment, { children: r && (s || c) && /* @__PURE__ */ b.jsxs(
|
|
58803
58804
|
Ue,
|
|
58804
58805
|
{
|
|
58805
58806
|
direction: "row",
|
|
@@ -58809,28 +58810,42 @@ const yz = (e, t = 10) => {
|
|
|
58809
58810
|
right: "0rem",
|
|
58810
58811
|
top: "0rem",
|
|
58811
58812
|
gap: "0.25rem",
|
|
58812
|
-
backgroundColor:
|
|
58813
|
+
backgroundColor: a.colors.surface_white,
|
|
58813
58814
|
borderRadius: "0.625rem",
|
|
58814
58815
|
padding: "0.125 0.25rem",
|
|
58815
58816
|
boxShadow: "0px 4px 16px 0px rgba(0, 0, 0, 0.12)"
|
|
58816
58817
|
},
|
|
58817
58818
|
children: [
|
|
58818
|
-
|
|
58819
|
+
s && /* @__PURE__ */ b.jsx(Bn, { title: "Edit", children: /* @__PURE__ */ b.jsx(
|
|
58819
58820
|
wr,
|
|
58820
58821
|
{
|
|
58821
|
-
onClick: (
|
|
58822
|
-
|
|
58822
|
+
onClick: (m) => {
|
|
58823
|
+
m.stopPropagation(), d && d();
|
|
58823
58824
|
},
|
|
58824
|
-
children: /* @__PURE__ */ b.jsx(
|
|
58825
|
+
children: /* @__PURE__ */ b.jsx(
|
|
58826
|
+
$x,
|
|
58827
|
+
{
|
|
58828
|
+
height: "16",
|
|
58829
|
+
width: "16",
|
|
58830
|
+
stroke: a.colors.text_secondary
|
|
58831
|
+
}
|
|
58832
|
+
)
|
|
58825
58833
|
}
|
|
58826
58834
|
) }),
|
|
58827
|
-
|
|
58835
|
+
c && /* @__PURE__ */ b.jsx(Bn, { title: "Delete", children: /* @__PURE__ */ b.jsx(
|
|
58828
58836
|
wr,
|
|
58829
58837
|
{
|
|
58830
|
-
onClick: (
|
|
58831
|
-
|
|
58838
|
+
onClick: (m) => {
|
|
58839
|
+
m.stopPropagation(), g && g();
|
|
58832
58840
|
},
|
|
58833
|
-
children: /* @__PURE__ */ b.jsx(
|
|
58841
|
+
children: /* @__PURE__ */ b.jsx(
|
|
58842
|
+
Hf,
|
|
58843
|
+
{
|
|
58844
|
+
height: 16,
|
|
58845
|
+
width: 16,
|
|
58846
|
+
stroke: a.colors.negative
|
|
58847
|
+
}
|
|
58848
|
+
)
|
|
58834
58849
|
}
|
|
58835
58850
|
) })
|
|
58836
58851
|
]
|
|
@@ -58871,9 +58886,7 @@ const yz = (e, t = 10) => {
|
|
|
58871
58886
|
dueDate: e == null ? void 0 : e.dueDate,
|
|
58872
58887
|
completedOn: e == null ? void 0 : e.completedOn,
|
|
58873
58888
|
type: e == null ? void 0 : e.status
|
|
58874
|
-
});
|
|
58875
|
-
console.log(j, R, z);
|
|
58876
|
-
const M = j ? T.colors.light_red : T.colors.light_green, U = j ? T.colors.negative : T.colors.positive, X = j ? `Overdue ${z}` : (e == null ? void 0 : e.status) === "completed" ? `Completed ${z}` : "", L = g && (e == null ? void 0 : e.status) !== "completed";
|
|
58889
|
+
}), M = j ? T.colors.light_red : T.colors.light_green, U = j ? T.colors.negative : T.colors.positive, X = j ? `Overdue ${z}` : (e == null ? void 0 : e.status) === "completed" ? `Completed ${z}` : "", L = g && (e == null ? void 0 : e.status) !== "completed";
|
|
58877
58890
|
return /* @__PURE__ */ b.jsxs(
|
|
58878
58891
|
Ue,
|
|
58879
58892
|
{
|
|
@@ -58927,7 +58940,7 @@ const yz = (e, t = 10) => {
|
|
|
58927
58940
|
{
|
|
58928
58941
|
onClick: r == null ? void 0 : r.onRedirect,
|
|
58929
58942
|
sx: { margin: 0, padding: "0.25rem" },
|
|
58930
|
-
children: r != null && r.icon ? r == null ? void 0 : r.icon : /* @__PURE__ */ b.jsx(jm, { sx: { stroke:
|
|
58943
|
+
children: r != null && r.icon ? r == null ? void 0 : r.icon : /* @__PURE__ */ b.jsx(jm, { sx: { stroke: T.colors.surface_white, height: 18, width: 18 } })
|
|
58931
58944
|
}
|
|
58932
58945
|
)
|
|
58933
58946
|
] }),
|
|
@@ -58958,7 +58971,7 @@ const yz = (e, t = 10) => {
|
|
|
58958
58971
|
/* @__PURE__ */ b.jsx(
|
|
58959
58972
|
Vm,
|
|
58960
58973
|
{
|
|
58961
|
-
stroke: T.colors.
|
|
58974
|
+
stroke: T.colors.text_secondary,
|
|
58962
58975
|
height: "14",
|
|
58963
58976
|
width: "14"
|
|
58964
58977
|
}
|
|
@@ -58967,7 +58980,7 @@ const yz = (e, t = 10) => {
|
|
|
58967
58980
|
bt,
|
|
58968
58981
|
{
|
|
58969
58982
|
variant: "lRegular",
|
|
58970
|
-
sx: { color: T.colors.
|
|
58983
|
+
sx: { color: T.colors.text_secondary },
|
|
58971
58984
|
children: Fd({ date: e == null ? void 0 : e.dueDate })
|
|
58972
58985
|
}
|
|
58973
58986
|
),
|
|
@@ -59002,7 +59015,7 @@ const yz = (e, t = 10) => {
|
|
|
59002
59015
|
/* @__PURE__ */ b.jsx(
|
|
59003
59016
|
Vm,
|
|
59004
59017
|
{
|
|
59005
|
-
stroke: T.colors.
|
|
59018
|
+
stroke: T.colors.text_secondary,
|
|
59006
59019
|
height: "14",
|
|
59007
59020
|
width: "14"
|
|
59008
59021
|
}
|
|
@@ -59011,7 +59024,7 @@ const yz = (e, t = 10) => {
|
|
|
59011
59024
|
bt,
|
|
59012
59025
|
{
|
|
59013
59026
|
variant: "lRegular",
|
|
59014
|
-
sx: { color: T.colors.
|
|
59027
|
+
sx: { color: T.colors.text_secondary },
|
|
59015
59028
|
children: Fd({ date: e == null ? void 0 : e.createdAt })
|
|
59016
59029
|
}
|
|
59017
59030
|
)
|
|
@@ -59050,7 +59063,7 @@ const yz = (e, t = 10) => {
|
|
|
59050
59063
|
sx: {
|
|
59051
59064
|
borderRadius: "0.625rem",
|
|
59052
59065
|
padding: "0.25rem 0.5rem",
|
|
59053
|
-
backgroundColor:
|
|
59066
|
+
backgroundColor: t.colors.surface2_lightgrey,
|
|
59054
59067
|
display: "flex",
|
|
59055
59068
|
flexDirection: "row",
|
|
59056
59069
|
alignItems: "center",
|