@mamrp/components 1.3.1 → 1.3.2

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.mjs CHANGED
@@ -1921,11 +1921,26 @@ import { DatePicker as DatePicker2, LocalizationProvider as LocalizationProvider
1921
1921
  import { AdapterMomentJalaali as AdapterMomentJalaali4 } from "@mui/x-date-pickers/AdapterMomentJalaali";
1922
1922
  import dayjs2 from "dayjs";
1923
1923
  import moment6 from "moment-jalaali";
1924
- import "moment/locale/fa";
1925
- import React12, { useState as useState7 } from "react";
1924
+ import React12 from "react";
1926
1925
  import { Controller as Controller6 } from "react-hook-form";
1927
1926
  moment6.locale("fa");
1928
1927
  moment6.loadPersian({ dialect: "persian-modern", usePersianDigits: true });
1928
+ moment6.updateLocale("fa", {
1929
+ months: [
1930
+ "\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
1931
+ "\u0627\u0631\u062F\u06CC\u0628\u0647\u0634\u062A",
1932
+ "\u062E\u0631\u062F\u0627\u062F",
1933
+ "\u062A\u06CC\u0631",
1934
+ "\u0645\u0631\u062F\u0627\u062F",
1935
+ "\u0634\u0647\u0631\u06CC\u0648\u0631",
1936
+ "\u0645\u0647\u0631",
1937
+ "\u0622\u0628\u0627\u0646",
1938
+ "\u0622\u0630\u0631",
1939
+ "\u062F\u06CC",
1940
+ "\u0628\u0647\u0645\u0646",
1941
+ "\u0627\u0633\u0641\u0646\u062F"
1942
+ ]
1943
+ });
1929
1944
  var DateMonthPicker = ({
1930
1945
  name,
1931
1946
  control,
@@ -1939,7 +1954,6 @@ var DateMonthPicker = ({
1939
1954
  clear = true
1940
1955
  }) => {
1941
1956
  const today = moment6();
1942
- const [open, setOpen] = useState7(false);
1943
1957
  const customLocaleText = {
1944
1958
  cancelButtonLabel: "\u0644\u063A\u0648",
1945
1959
  okButtonLabel: "\u062A\u0623\u06CC\u06CC\u062F",