@serhii.olishevskyi/docs 1.2.5 → 1.2.7

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 CHANGED
@@ -4526,18 +4526,18 @@ var PageLinkWidget = ({
4526
4526
  );
4527
4527
  };
4528
4528
 
4529
- // src/UI/components/inputs/CheckboxComponent.tsx
4529
+ // src/UI/components/inputs/SwitchComponent.tsx
4530
4530
  var import_material22 = require("@mui/material");
4531
4531
  init_TranslateText();
4532
4532
  var import_jsx_runtime32 = require("react/jsx-runtime");
4533
- var CheckboxComponent = ({
4533
+ var SwitchComponent = ({
4534
4534
  checked = false,
4535
4535
  onChange,
4536
4536
  label,
4537
4537
  checkedLabel,
4538
4538
  uncheckedLabel,
4539
4539
  overrideNamespace,
4540
- checkboxProps,
4540
+ switchProps,
4541
4541
  ...props
4542
4542
  }) => {
4543
4543
  const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
@@ -4551,11 +4551,11 @@ var CheckboxComponent = ({
4551
4551
  import_material22.FormControlLabel,
4552
4552
  {
4553
4553
  control: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4554
- import_material22.Checkbox,
4554
+ import_material22.Switch,
4555
4555
  {
4556
4556
  checked,
4557
4557
  onChange,
4558
- ...checkboxProps
4558
+ ...switchProps
4559
4559
  }
4560
4560
  ),
4561
4561
  label: renderLabel(currentLabel),
@@ -4564,18 +4564,18 @@ var CheckboxComponent = ({
4564
4564
  ) });
4565
4565
  };
4566
4566
 
4567
- // src/UI/components/inputs/SwitchComponent.tsx
4567
+ // src/UI/components/inputs/CheckboxComponent.tsx
4568
4568
  var import_material23 = require("@mui/material");
4569
4569
  init_TranslateText();
4570
4570
  var import_jsx_runtime33 = require("react/jsx-runtime");
4571
- var SwitchComponent = ({
4571
+ var CheckboxComponent = ({
4572
4572
  checked = false,
4573
4573
  onChange,
4574
4574
  label,
4575
4575
  checkedLabel,
4576
4576
  uncheckedLabel,
4577
4577
  overrideNamespace,
4578
- switchProps,
4578
+ checkboxProps,
4579
4579
  ...props
4580
4580
  }) => {
4581
4581
  const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
@@ -4589,11 +4589,11 @@ var SwitchComponent = ({
4589
4589
  import_material23.FormControlLabel,
4590
4590
  {
4591
4591
  control: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4592
- import_material23.Switch,
4592
+ import_material23.Checkbox,
4593
4593
  {
4594
4594
  checked,
4595
4595
  onChange,
4596
- ...switchProps
4596
+ ...checkboxProps
4597
4597
  }
4598
4598
  ),
4599
4599
  label: renderLabel(currentLabel),
package/dist/index.mjs CHANGED
@@ -1791,21 +1791,21 @@ var PageLinkWidget = ({
1791
1791
  );
1792
1792
  };
1793
1793
 
1794
- // src/UI/components/inputs/CheckboxComponent.tsx
1794
+ // src/UI/components/inputs/SwitchComponent.tsx
1795
1795
  import {
1796
1796
  FormControlLabel,
1797
- Checkbox as Checkbox2,
1797
+ Switch,
1798
1798
  Box as Box6
1799
1799
  } from "@mui/material";
1800
1800
  import { jsx as jsx12 } from "react/jsx-runtime";
1801
- var CheckboxComponent = ({
1801
+ var SwitchComponent = ({
1802
1802
  checked = false,
1803
1803
  onChange,
1804
1804
  label,
1805
1805
  checkedLabel,
1806
1806
  uncheckedLabel,
1807
1807
  overrideNamespace,
1808
- checkboxProps,
1808
+ switchProps,
1809
1809
  ...props
1810
1810
  }) => {
1811
1811
  const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
@@ -1819,11 +1819,11 @@ var CheckboxComponent = ({
1819
1819
  FormControlLabel,
1820
1820
  {
1821
1821
  control: /* @__PURE__ */ jsx12(
1822
- Checkbox2,
1822
+ Switch,
1823
1823
  {
1824
1824
  checked,
1825
1825
  onChange,
1826
- ...checkboxProps
1826
+ ...switchProps
1827
1827
  }
1828
1828
  ),
1829
1829
  label: renderLabel(currentLabel),
@@ -1832,21 +1832,21 @@ var CheckboxComponent = ({
1832
1832
  ) });
1833
1833
  };
1834
1834
 
1835
- // src/UI/components/inputs/SwitchComponent.tsx
1835
+ // src/UI/components/inputs/CheckboxComponent.tsx
1836
1836
  import {
1837
1837
  FormControlLabel as FormControlLabel2,
1838
- Switch,
1838
+ Checkbox as Checkbox2,
1839
1839
  Box as Box7
1840
1840
  } from "@mui/material";
1841
1841
  import { jsx as jsx13 } from "react/jsx-runtime";
1842
- var SwitchComponent = ({
1842
+ var CheckboxComponent = ({
1843
1843
  checked = false,
1844
1844
  onChange,
1845
1845
  label,
1846
1846
  checkedLabel,
1847
1847
  uncheckedLabel,
1848
1848
  overrideNamespace,
1849
- switchProps,
1849
+ checkboxProps,
1850
1850
  ...props
1851
1851
  }) => {
1852
1852
  const currentLabel = label ?? (checked ? checkedLabel : uncheckedLabel);
@@ -1860,11 +1860,11 @@ var SwitchComponent = ({
1860
1860
  FormControlLabel2,
1861
1861
  {
1862
1862
  control: /* @__PURE__ */ jsx13(
1863
- Switch,
1863
+ Checkbox2,
1864
1864
  {
1865
1865
  checked,
1866
1866
  onChange,
1867
- ...switchProps
1867
+ ...checkboxProps
1868
1868
  }
1869
1869
  ),
1870
1870
  label: renderLabel(currentLabel),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serhii.olishevskyi/docs",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "DOCS.UA react packages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",