@kashifd/jwero-components 0.7.11 → 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 CHANGED
@@ -48199,7 +48199,7 @@ const iW = ({
48199
48199
  sx: {
48200
48200
  margin: 0,
48201
48201
  padding: "0.05rem",
48202
- // backgroundColor: theme.palette.,
48202
+ backgroundColor: "#fff",
48203
48203
  "&:hover": {
48204
48204
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)"
48205
48205
  }
@@ -48214,7 +48214,7 @@ const iW = ({
48214
48214
  sx: {
48215
48215
  padding: "0.35rem 0.5rem",
48216
48216
  borderRadius: "0.5rem",
48217
- backgroundColor: "white",
48217
+ backgroundColor: "#fff",
48218
48218
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)"
48219
48219
  },
48220
48220
  children: /* @__PURE__ */ b.jsxs(
@@ -48227,7 +48227,7 @@ const iW = ({
48227
48227
  fontWeight: 500
48228
48228
  },
48229
48229
  children: [
48230
- /* @__PURE__ */ b.jsxs("span", { style: { color: "#012687" }, children: [
48230
+ /* @__PURE__ */ b.jsxs("span", { style: { color: m.colors.text_primary }, children: [
48231
48231
  d != null && d.custom_name ? (d == null ? void 0 : d.custom_name) + " " : "Steps ",
48232
48232
  (d == null ? void 0 : d.current_step) ?? "1 "
48233
48233
  ] }),
@@ -49006,7 +49006,6 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
49006
49006
  bt,
49007
49007
  {
49008
49008
  variant: "lRegular",
49009
- sx: { color: r.colors.light_text_color },
49010
49009
  ...a == null ? void 0 : a.titleProps,
49011
49010
  children: a.title
49012
49011
  }
@@ -49079,32 +49078,32 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
49079
49078
  menuSx: v,
49080
49079
  popperSx: w
49081
49080
  }) => {
49082
- const T = bc(null), [O, P] = $r(!1), I = () => {
49083
- P(!0), t && t();
49084
- }, j = () => {
49085
- P(!1);
49081
+ const T = Nt(), O = bc(null), [P, I] = $r(!1), j = () => {
49082
+ I(!0), t && t();
49083
+ }, R = () => {
49084
+ I(!1);
49086
49085
  };
49087
49086
  return js(() => {
49088
- r && P(!1);
49087
+ r && I(!1);
49089
49088
  }, [r]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
49090
49089
  /* @__PURE__ */ b.jsxs(
49091
49090
  Ue,
49092
49091
  {
49093
- onClick: I,
49094
- ref: T,
49092
+ onClick: j,
49093
+ ref: O,
49095
49094
  direction: "row",
49096
49095
  alignItems: "center",
49097
49096
  justifyContent: "space-between",
49098
49097
  sx: {
49099
49098
  gap: "1rem",
49100
49099
  padding: "0.5rem 0.75rem 0.5rem 0.5rem",
49101
- backgroundColor: "#fff",
49100
+ backgroundColor: T.palette.background.paper,
49102
49101
  borderRadius: "0.5rem",
49103
49102
  border: "1px solid rgba(0, 0, 0, 0.08)",
49104
49103
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
49105
49104
  "&:hover": {
49106
49105
  cursor: "pointer",
49107
- bgcolor: "#F5F6F7",
49106
+ bgcolor: T.palette.mode === "light" ? "#f5f5f5" : "#2e2d2d",
49108
49107
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.50)"
49109
49108
  },
49110
49109
  ...d
@@ -49130,9 +49129,9 @@ const VF = /* @__PURE__ */ Ho(WF), YF = ({ ...e }) => /* @__PURE__ */ b.jsxs(
49130
49129
  /* @__PURE__ */ b.jsx(
49131
49130
  Vh,
49132
49131
  {
49133
- open: O,
49134
- onClose: j,
49135
- anchorEl: T == null ? void 0 : T.current,
49132
+ open: P,
49133
+ onClose: R,
49134
+ anchorEl: O == null ? void 0 : O.current,
49136
49135
  placement: "bottom-start",
49137
49136
  boxSx: w,
49138
49137
  children: /* @__PURE__ */ b.jsx(Qx, { menuList: a, boxSx: v })
@@ -58800,8 +58799,8 @@ const yz = (e, t = 10) => {
58800
58799
  onDeleteProps: t,
58801
58800
  isHovered: r
58802
58801
  }) => {
58803
- const a = e == null ? void 0 : e.flag, s = t == null ? void 0 : t.flag, c = e == null ? void 0 : e.onClick, d = t == null ? void 0 : t.onClick;
58804
- return /* @__PURE__ */ b.jsx(b.Fragment, { children: r && (a || s) && /* @__PURE__ */ b.jsxs(
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(
58805
58804
  Ue,
58806
58805
  {
58807
58806
  direction: "row",
@@ -58811,28 +58810,42 @@ const yz = (e, t = 10) => {
58811
58810
  right: "0rem",
58812
58811
  top: "0rem",
58813
58812
  gap: "0.25rem",
58814
- backgroundColor: "#fff",
58813
+ backgroundColor: a.colors.surface_white,
58815
58814
  borderRadius: "0.625rem",
58816
58815
  padding: "0.125 0.25rem",
58817
58816
  boxShadow: "0px 4px 16px 0px rgba(0, 0, 0, 0.12)"
58818
58817
  },
58819
58818
  children: [
58820
- a && /* @__PURE__ */ b.jsx(Bn, { title: "Edit", children: /* @__PURE__ */ b.jsx(
58819
+ s && /* @__PURE__ */ b.jsx(Bn, { title: "Edit", children: /* @__PURE__ */ b.jsx(
58821
58820
  wr,
58822
58821
  {
58823
- onClick: (g) => {
58824
- g.stopPropagation(), c && c();
58822
+ onClick: (m) => {
58823
+ m.stopPropagation(), d && d();
58825
58824
  },
58826
- children: /* @__PURE__ */ b.jsx($x, { height: "16", width: "16" })
58825
+ children: /* @__PURE__ */ b.jsx(
58826
+ $x,
58827
+ {
58828
+ height: "16",
58829
+ width: "16",
58830
+ stroke: a.colors.text_secondary
58831
+ }
58832
+ )
58827
58833
  }
58828
58834
  ) }),
58829
- s && /* @__PURE__ */ b.jsx(Bn, { title: "Delete", children: /* @__PURE__ */ b.jsx(
58835
+ c && /* @__PURE__ */ b.jsx(Bn, { title: "Delete", children: /* @__PURE__ */ b.jsx(
58830
58836
  wr,
58831
58837
  {
58832
- onClick: (g) => {
58833
- g.stopPropagation(), d && d();
58838
+ onClick: (m) => {
58839
+ m.stopPropagation(), g && g();
58834
58840
  },
58835
- children: /* @__PURE__ */ b.jsx(Hf, { height: 16, width: 16 })
58841
+ children: /* @__PURE__ */ b.jsx(
58842
+ Hf,
58843
+ {
58844
+ height: 16,
58845
+ width: 16,
58846
+ stroke: a.colors.negative
58847
+ }
58848
+ )
58836
58849
  }
58837
58850
  ) })
58838
58851
  ]
@@ -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: "#000", height: 18, width: 18 } })
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.tertiary,
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.text_tertiary },
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.text_tertiary,
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.text_tertiary },
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: "#E9EFFF",
59066
+ backgroundColor: t.colors.surface2_lightgrey,
59054
59067
  display: "flex",
59055
59068
  flexDirection: "row",
59056
59069
  alignItems: "center",