@mxenabled/connect-widget 2.5.0 → 2.5.1

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
@@ -67415,7 +67415,7 @@ function withProtection(SensitiveComponent) {
67415
67415
  }
67416
67416
 
67417
67417
  const ProtectedTextField = withProtection(X0);
67418
- const ProtectedRadio = withProtection(Radio);
67418
+ withProtection(Radio);
67419
67419
  const ProtectedSelect = withProtection(Select);
67420
67420
  const ProtectedSelectionBox = withProtection(q0);
67421
67421
  withProtection(UserFeedback);
@@ -84178,33 +84178,43 @@ const DeleteMemberSurvey = (props) => {
84178
84178
  ) })
84179
84179
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
84180
84180
  /* @__PURE__ */ jsxRuntimeExports.jsx(D, { sx: { marginBottom: 4 }, truncate: false, variant: "H2", children: __("Disconnect institution") }),
84181
- /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(D, { "data-test": "disconnect-disclaimer", truncate: false, variant: "Paragraph", children: [
84182
- _p(
84183
- "connect/deletesurvey/disclaimer/text",
84184
- "Why do you want to disconnect %1?",
84185
- member.name
84186
- ),
84187
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 15 }, children: "*" })
84188
- ] }) }),
84189
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.reasons, children: reasonList.map((reason, i) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { marginBottom: 20 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
84190
- ProtectedRadio,
84191
- {
84192
- autoFocus: i === 0,
84193
- checked: selectedReason === reason,
84194
- "data-test": `radio-${reason.replace(/\s+/g, "-")}`,
84195
- "data-testid": "disconnect-option",
84196
- id: reason,
84197
- label: reason,
84198
- labelPosition: "right",
84199
- name: "reasons",
84200
- onChange: () => {
84201
- setSelectedReason(reason);
84202
- },
84203
- required: true
84204
- },
84205
- reason
84206
- ) }, reason)) }),
84207
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: { color: "#666", fontSize: 13, marginBottom: 12 }, children: [
84181
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { children: [
84182
+ /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel$1, { id: "disconnect-options-label", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
84183
+ D,
84184
+ {
84185
+ component: "p",
84186
+ "data-test": "disconnect-disclaimer",
84187
+ truncate: false,
84188
+ variant: "Paragraph",
84189
+ children: [
84190
+ _p(
84191
+ "connect/deletesurvey/disclaimer/text",
84192
+ "Why do you want to disconnect %1?",
84193
+ member.name
84194
+ ),
84195
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 15 }, children: "*" })
84196
+ ]
84197
+ }
84198
+ ) }),
84199
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.reasons, children: reasonList.map((reason, i) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
84200
+ q0,
84201
+ {
84202
+ autoFocus: i === 0,
84203
+ "data-test": `selection-${reason.replace(/\s+/g, "-")}`,
84204
+ "data-testid": "disconnect-option",
84205
+ error: isSubmitted && !selectedReason,
84206
+ inputProps: {
84207
+ "aria-labelledby": "disconnect-options-label"
84208
+ },
84209
+ message: reason,
84210
+ name: "selected-reason",
84211
+ onChange: (e) => setSelectedReason(e.target.value),
84212
+ selected: selectedReason === reason,
84213
+ value: reason
84214
+ }
84215
+ ) }, reason)) })
84216
+ ] }),
84217
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: { color: "#666", fontSize: 13, marginBottom: 12, marginTop: 4 }, children: [
84208
84218
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
84209
84219
  " ",
84210
84220
  __("Required")