@mx-cartographer/experiences 6.26.32 → 6.26.33
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/CHANGELOG.md
CHANGED
@@ -4,10 +4,11 @@ interface ToggleButtonListItemProps {
|
|
4
4
|
endIcon?: React.ReactNode;
|
5
5
|
isChecked: boolean;
|
6
6
|
isDisabled?: boolean;
|
7
|
+
isPrimaryTextBold?: boolean;
|
7
8
|
onClick: () => void;
|
8
9
|
onToggle: () => void;
|
9
10
|
primaryText: string;
|
10
11
|
secondaryText?: string;
|
11
12
|
}
|
12
|
-
export declare const ToggleButtonListItem: ({ avatar, endIcon, isChecked, isDisabled, onClick, onToggle, primaryText, secondaryText, }: ToggleButtonListItemProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export declare const ToggleButtonListItem: ({ avatar, endIcon, isChecked, isDisabled, isPrimaryTextBold, onClick, onToggle, primaryText, secondaryText, }: ToggleButtonListItemProps) => import("react/jsx-runtime").JSX.Element;
|
13
14
|
export {};
|
package/dist/index.es.js
CHANGED
@@ -4343,25 +4343,36 @@ const Dr = "connect_widget", Nr = "connections_widget", Xu = ({
|
|
4343
4343
|
endIcon: n,
|
4344
4344
|
isChecked: i,
|
4345
4345
|
isDisabled: a = !1,
|
4346
|
-
|
4347
|
-
|
4348
|
-
|
4349
|
-
|
4346
|
+
isPrimaryTextBold: o = !1,
|
4347
|
+
onClick: r,
|
4348
|
+
onToggle: s,
|
4349
|
+
primaryText: c,
|
4350
|
+
secondaryText: l
|
4350
4351
|
}) => (
|
4351
4352
|
//TODO: implement common/components/ListItemRow.tsx
|
4352
4353
|
/* @__PURE__ */ t(
|
4353
4354
|
j,
|
4354
4355
|
{
|
4355
|
-
secondaryAction: /* @__PURE__ */ t(pa, { checked: i, onChange:
|
4356
|
+
secondaryAction: /* @__PURE__ */ t(pa, { checked: i, onChange: s }),
|
4356
4357
|
sx: {
|
4357
4358
|
"& .MuiListItemSecondaryAction-root": { right: n ? 64 : 24 },
|
4358
4359
|
"& .MuiListItemButton-root": { pr: 24 }
|
4359
4360
|
},
|
4360
|
-
children: /* @__PURE__ */ d(ge, { onClick: a ? void 0 : () =>
|
4361
|
+
children: /* @__PURE__ */ d(ge, { onClick: a ? void 0 : () => r(), children: [
|
4361
4362
|
e && /* @__PURE__ */ t(Pe, { children: e }),
|
4362
|
-
/* @__PURE__ */ t(re, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ d(b, { children: [
|
4363
|
-
/* @__PURE__ */ t(
|
4364
|
-
|
4363
|
+
/* @__PURE__ */ t(re, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ d(b, { sx: { width: "100%" }, children: [
|
4364
|
+
/* @__PURE__ */ t(
|
4365
|
+
C,
|
4366
|
+
{
|
4367
|
+
bold: o,
|
4368
|
+
sx: {
|
4369
|
+
mr: 80
|
4370
|
+
},
|
4371
|
+
variant: "body1",
|
4372
|
+
children: c
|
4373
|
+
}
|
4374
|
+
),
|
4375
|
+
/* @__PURE__ */ t(C, { color: "text.secondary", variant: "caption", children: l })
|
4365
4376
|
] }) }) }),
|
4366
4377
|
!a && n && /* @__PURE__ */ t(gt, { children: n })
|
4367
4378
|
] })
|
@@ -18110,6 +18121,7 @@ const rC = ({
|
|
18110
18121
|
) : void 0,
|
18111
18122
|
endIcon: /* @__PURE__ */ t(je, {}),
|
18112
18123
|
isChecked: n.is_enabled,
|
18124
|
+
isPrimaryTextBold: !0,
|
18113
18125
|
onClick: () => l(!0),
|
18114
18126
|
onToggle: () => e({
|
18115
18127
|
...n,
|