@local-civics/mgmt-ui 0.1.159 → 0.1.160

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.d.ts CHANGED
@@ -285,6 +285,7 @@ type ClassProps = {
285
285
  onDeleteMember: (student: MemberItem) => void;
286
286
  onChangeUserRole: (user: MemberItem, role: string | null) => void;
287
287
  onCopyLinkClick: () => void;
288
+ onExportDataClick: () => void;
288
289
  };
289
290
  /**
290
291
  * Class
package/dist/index.js CHANGED
@@ -1035,6 +1035,13 @@ const SplitButton$3 = (props) => {
1035
1035
  onClick: props.onCopyClassLinkClick
1036
1036
  },
1037
1037
  "Copy class link"
1038
+ ), /* @__PURE__ */ React__namespace.createElement(
1039
+ core.Button,
1040
+ {
1041
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 14 }),
1042
+ onClick: props.onExportDataClick
1043
+ },
1044
+ "Export data (.csv)"
1038
1045
  ));
1039
1046
  };
1040
1047
 
@@ -1191,7 +1198,8 @@ const Class = (props) => {
1191
1198
  SplitButton$3,
1192
1199
  {
1193
1200
  onAddMembersClick: () => setOpened(true),
1194
- onCopyClassLinkClick: props.onCopyLinkClick
1201
+ onCopyClassLinkClick: props.onCopyLinkClick,
1202
+ onExportDataClick: props.onExportDataClick
1195
1203
  }
1196
1204
  ))), /* @__PURE__ */ React__namespace.createElement("div", { style: { position: "relative" } }, /* @__PURE__ */ React__namespace.createElement(core.LoadingOverlay, { visible: props.loading, overlayBlur: 2 }), /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(StatsGroup, { data: [
1197
1205
  {