@mx-cartographer/experiences 7.0.19 → 7.0.20-alpha.al0

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.
@@ -920,10 +920,8 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
920
920
  ee(v);
921
921
  }, ge = () => {
922
922
  ee(""), s(y.TRENDS_CLICK_ALL_CATEGORIES, A);
923
- };
924
- if (!p || !L) return /* @__PURE__ */ e(Q, {});
925
- const Ge = a.show_connections_widget_in_master ? "buttons" : "no-buttons", Be = L && d.length === 0;
926
- return /* @__PURE__ */ f(
923
+ }, Ge = a.show_connections_widget_in_master ? "buttons" : "no-buttons", Be = L && !d?.length;
924
+ return !p || !L ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(
927
925
  Ae,
928
926
  {
929
927
  accountOptions: d,
@@ -934,86 +932,83 @@ const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
934
932
  onBackClick: n,
935
933
  sx: t,
936
934
  title: D.title,
937
- children: [
938
- /* @__PURE__ */ f(
939
- _,
940
- {
941
- sx: {
942
- px: c ? 0 : 48
943
- },
944
- children: [
945
- /* @__PURE__ */ f(
946
- _,
947
- {
948
- flexDirection: "row",
949
- justifyContent: "space-between",
950
- sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
951
- children: [
952
- /* @__PURE__ */ e(
953
- Oe,
954
- {
955
- selectedCategoryGuid: J,
956
- selectedDateRange: r
957
- }
958
- ),
959
- /* @__PURE__ */ e(We, { onTabChange: me, selectedTab: z })
960
- ]
961
- }
962
- ),
963
- Be && /* @__PURE__ */ e(
964
- vt,
965
- {
966
- header: "",
967
- icon: "",
968
- onClick: () => {
969
- },
970
- primaryButton: D.empty_state_primary,
971
- subText: D.empty_state_sub_text,
972
- variant: Ge
973
- }
974
- ),
975
- /* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ f(pe, { onClick: ge, sx: { p: 0, pr: 5 }, children: [
976
- /* @__PURE__ */ e(se, { name: "arrow_back" }),
977
- D.all_categories
978
- ] }) }) }),
979
- /* @__PURE__ */ f(_, { flexDirection: x ? "row" : "column", gap: x ? 48 : 16, children: [
980
- z === "Chart" && /* @__PURE__ */ f(Fe, { children: [
981
- /* @__PURE__ */ e(O, { sx: { width: x ? "68%" : "100%" }, children: /* @__PURE__ */ e(
982
- Jt,
935
+ children: Be ? /* @__PURE__ */ e(
936
+ vt,
937
+ {
938
+ header: D.zero_state_content_header,
939
+ icon: "",
940
+ onClick: () => {
941
+ },
942
+ primaryButton: D.empty_state_primary,
943
+ subText: D.empty_state_sub_text,
944
+ variant: Ge
945
+ }
946
+ ) : /* @__PURE__ */ f(
947
+ _,
948
+ {
949
+ sx: {
950
+ px: c ? 0 : 48
951
+ },
952
+ children: [
953
+ /* @__PURE__ */ f(
954
+ _,
955
+ {
956
+ flexDirection: "row",
957
+ justifyContent: "space-between",
958
+ sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
959
+ children: [
960
+ /* @__PURE__ */ e(
961
+ Oe,
983
962
  {
984
- availableHeight: le,
985
- minHeight: 450,
986
- selectedDateRange: r,
987
- totals: u
963
+ selectedCategoryGuid: J,
964
+ selectedDateRange: r
988
965
  }
989
- ) }),
990
- /* @__PURE__ */ f(_, { gap: 16, sx: { width: x ? "32%" : "100%" }, children: [
991
- N && /* @__PURE__ */ e(Yt, { onInsightCardClick: o }),
992
- /* @__PURE__ */ e(
993
- Kt,
994
- {
995
- availableHeight: de,
996
- onCategoryClick: he
997
- }
998
- )
999
- ] })
1000
- ] }),
1001
- z === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
1002
- Ve,
966
+ ),
967
+ /* @__PURE__ */ e(We, { onTabChange: me, selectedTab: z })
968
+ ]
969
+ }
970
+ ),
971
+ /* @__PURE__ */ e(_, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ f(pe, { onClick: ge, sx: { p: 0, pr: 5 }, children: [
972
+ /* @__PURE__ */ e(se, { name: "arrow_back" }),
973
+ D.all_categories
974
+ ] }) }) }),
975
+ /* @__PURE__ */ f(_, { flexDirection: x ? "row" : "column", gap: x ? 48 : 16, children: [
976
+ z === "Chart" && /* @__PURE__ */ f(Fe, { children: [
977
+ /* @__PURE__ */ e(O, { sx: { width: x ? "68%" : "100%" }, children: /* @__PURE__ */ e(
978
+ Jt,
1003
979
  {
1004
- height: "unset",
1005
- monthlyCategoryTotals: u,
1006
- onClickRow: G,
1007
- selectedCategory: J,
1008
- selectedDateRange: r
980
+ availableHeight: le,
981
+ minHeight: 450,
982
+ selectedDateRange: r,
983
+ totals: u
1009
984
  }
1010
- ) })
1011
- ] })
1012
- ]
1013
- }
1014
- ),
1015
- te && /* @__PURE__ */ e(Xt, { onClose: ue })
1016
- ]
985
+ ) }),
986
+ /* @__PURE__ */ f(_, { gap: 16, sx: { width: x ? "32%" : "100%" }, children: [
987
+ N && /* @__PURE__ */ e(Yt, { onInsightCardClick: o }),
988
+ /* @__PURE__ */ e(
989
+ Kt,
990
+ {
991
+ availableHeight: de,
992
+ onCategoryClick: he
993
+ }
994
+ )
995
+ ] })
996
+ ] }),
997
+ z === "Table" && /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
998
+ Ve,
999
+ {
1000
+ height: "unset",
1001
+ monthlyCategoryTotals: u,
1002
+ onClickRow: G,
1003
+ selectedCategory: J,
1004
+ selectedDateRange: r
1005
+ }
1006
+ ) })
1007
+ ] }),
1008
+ te && /* @__PURE__ */ e(Xt, { onClose: ue })
1009
+ ]
1010
+ }
1011
+ )
1017
1012
  }
1018
1013
  );
1019
1014
  }, Qn = M(en);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.19",
3
+ "version": "7.0.20-alpha.al0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",