@serhii.olishevskyi/docs 1.2.10 → 1.2.11
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.js +1 -8
- package/dist/index.mjs +1 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4528,7 +4528,6 @@ var PageLinkWidget = ({
|
|
|
4528
4528
|
|
|
4529
4529
|
// src/UI/components/inputs/SwitchComponent.tsx
|
|
4530
4530
|
var import_material22 = require("@mui/material");
|
|
4531
|
-
init_context();
|
|
4532
4531
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4533
4532
|
var SwitchComponent = ({
|
|
4534
4533
|
checked = false,
|
|
@@ -4541,12 +4540,6 @@ var SwitchComponent = ({
|
|
|
4541
4540
|
...props
|
|
4542
4541
|
}) => {
|
|
4543
4542
|
const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
|
|
4544
|
-
const renderLabel = (node) => {
|
|
4545
|
-
if (typeof node === "string") {
|
|
4546
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TranslateText, { overrideNamespace, children: node });
|
|
4547
|
-
}
|
|
4548
|
-
return node;
|
|
4549
|
-
};
|
|
4550
4543
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material22.Box, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4551
4544
|
import_material22.FormControlLabel,
|
|
4552
4545
|
{
|
|
@@ -4558,7 +4551,7 @@ var SwitchComponent = ({
|
|
|
4558
4551
|
...switchProps
|
|
4559
4552
|
}
|
|
4560
4553
|
),
|
|
4561
|
-
label:
|
|
4554
|
+
label: currentLabel,
|
|
4562
4555
|
...props
|
|
4563
4556
|
}
|
|
4564
4557
|
) });
|
package/dist/index.mjs
CHANGED
|
@@ -1809,12 +1809,6 @@ var SwitchComponent = ({
|
|
|
1809
1809
|
...props
|
|
1810
1810
|
}) => {
|
|
1811
1811
|
const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
|
|
1812
|
-
const renderLabel = (node) => {
|
|
1813
|
-
if (typeof node === "string") {
|
|
1814
|
-
return /* @__PURE__ */ jsx12(TranslateText, { overrideNamespace, children: node });
|
|
1815
|
-
}
|
|
1816
|
-
return node;
|
|
1817
|
-
};
|
|
1818
1812
|
return /* @__PURE__ */ jsx12(Box6, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: /* @__PURE__ */ jsx12(
|
|
1819
1813
|
FormControlLabel,
|
|
1820
1814
|
{
|
|
@@ -1826,7 +1820,7 @@ var SwitchComponent = ({
|
|
|
1826
1820
|
...switchProps
|
|
1827
1821
|
}
|
|
1828
1822
|
),
|
|
1829
|
-
label:
|
|
1823
|
+
label: currentLabel,
|
|
1830
1824
|
...props
|
|
1831
1825
|
}
|
|
1832
1826
|
) });
|