@ctlyst.id/internal-ui 3.3.16 → 3.4.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.d.mts CHANGED
@@ -20,6 +20,7 @@ export { ToastContainer } from 'react-toastify';
20
20
  import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
+ export { id } from 'date-fns/locale';
23
24
  export { ThemeTypings } from '@chakra-ui/styled-system';
24
25
 
25
26
  declare const AccordionEye: ({ position }: {
@@ -273,6 +274,7 @@ type DatepickerProps = DatePickerProps & {
273
274
  onClear?: () => void;
274
275
  showMonth?: boolean;
275
276
  shortMonth?: boolean;
277
+ timezoneLabel?: string;
276
278
  };
277
279
  declare const Datepicker: React__default.FC<DatepickerProps>;
278
280
 
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export { ToastContainer } from 'react-toastify';
20
20
  import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
+ export { id } from 'date-fns/locale';
23
24
  export { ThemeTypings } from '@chakra-ui/styled-system';
24
25
 
25
26
  declare const AccordionEye: ({ position }: {
@@ -273,6 +274,7 @@ type DatepickerProps = DatePickerProps & {
273
274
  onClear?: () => void;
274
275
  showMonth?: boolean;
275
276
  shortMonth?: boolean;
277
+ timezoneLabel?: string;
276
278
  };
277
279
  declare const Datepicker: React__default.FC<DatepickerProps>;
278
280
 
package/dist/index.js CHANGED
@@ -340,6 +340,7 @@ __export(src_exports, {
340
340
  forwardRef: () => import_react104.forwardRef,
341
341
  getSelectAllCheckboxState: () => getSelectAllCheckboxState,
342
342
  getTheme: () => getTheme,
343
+ id: () => id,
343
344
  isCellDisabled: () => isCellDisabled,
344
345
  selectStyles: () => selectStyles,
345
346
  theme: () => theme4,
@@ -1604,6 +1605,539 @@ var import_shared_utils8 = require("@chakra-ui/shared-utils");
1604
1605
  var import_internal_icon6 = require("@ctlyst.id/internal-icon");
1605
1606
  var import_react_datepicker = __toESM(require("react-datepicker"));
1606
1607
 
1608
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
1609
+ function buildFormatLongFn(args) {
1610
+ return (options = {}) => {
1611
+ const width = options.width ? String(options.width) : args.defaultWidth;
1612
+ const format = args.formats[width] || args.formats[args.defaultWidth];
1613
+ return format;
1614
+ };
1615
+ }
1616
+
1617
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
1618
+ function buildLocalizeFn(args) {
1619
+ return (value, options) => {
1620
+ const context = (options == null ? void 0 : options.context) ? String(options.context) : "standalone";
1621
+ let valuesArray;
1622
+ if (context === "formatting" && args.formattingValues) {
1623
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1624
+ const width = (options == null ? void 0 : options.width) ? String(options.width) : defaultWidth;
1625
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1626
+ } else {
1627
+ const defaultWidth = args.defaultWidth;
1628
+ const width = (options == null ? void 0 : options.width) ? String(options.width) : args.defaultWidth;
1629
+ valuesArray = args.values[width] || args.values[defaultWidth];
1630
+ }
1631
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
1632
+ return valuesArray[index];
1633
+ };
1634
+ }
1635
+
1636
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.mjs
1637
+ function buildMatchFn(args) {
1638
+ return (string, options = {}) => {
1639
+ const width = options.width;
1640
+ const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1641
+ const matchResult = string.match(matchPattern);
1642
+ if (!matchResult) {
1643
+ return null;
1644
+ }
1645
+ const matchedString = matchResult[0];
1646
+ const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1647
+ const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : (
1648
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1649
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString))
1650
+ );
1651
+ let value;
1652
+ value = args.valueCallback ? args.valueCallback(key) : key;
1653
+ value = options.valueCallback ? (
1654
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1655
+ options.valueCallback(value)
1656
+ ) : value;
1657
+ const rest = string.slice(matchedString.length);
1658
+ return { value, rest };
1659
+ };
1660
+ }
1661
+ function findKey(object, predicate) {
1662
+ for (const key in object) {
1663
+ if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
1664
+ return key;
1665
+ }
1666
+ }
1667
+ return void 0;
1668
+ }
1669
+ function findIndex(array, predicate) {
1670
+ for (let key = 0; key < array.length; key++) {
1671
+ if (predicate(array[key])) {
1672
+ return key;
1673
+ }
1674
+ }
1675
+ return void 0;
1676
+ }
1677
+
1678
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs
1679
+ function buildMatchPatternFn(args) {
1680
+ return (string, options = {}) => {
1681
+ const matchResult = string.match(args.matchPattern);
1682
+ if (!matchResult) return null;
1683
+ const matchedString = matchResult[0];
1684
+ const parseResult = string.match(args.parsePattern);
1685
+ if (!parseResult) return null;
1686
+ let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1687
+ value = options.valueCallback ? options.valueCallback(value) : value;
1688
+ const rest = string.slice(matchedString.length);
1689
+ return { value, rest };
1690
+ };
1691
+ }
1692
+
1693
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatDistance.mjs
1694
+ var formatDistanceLocale = {
1695
+ lessThanXSeconds: {
1696
+ one: "kurang dari 1 detik",
1697
+ other: "kurang dari {{count}} detik"
1698
+ },
1699
+ xSeconds: {
1700
+ one: "1 detik",
1701
+ other: "{{count}} detik"
1702
+ },
1703
+ halfAMinute: "setengah menit",
1704
+ lessThanXMinutes: {
1705
+ one: "kurang dari 1 menit",
1706
+ other: "kurang dari {{count}} menit"
1707
+ },
1708
+ xMinutes: {
1709
+ one: "1 menit",
1710
+ other: "{{count}} menit"
1711
+ },
1712
+ aboutXHours: {
1713
+ one: "sekitar 1 jam",
1714
+ other: "sekitar {{count}} jam"
1715
+ },
1716
+ xHours: {
1717
+ one: "1 jam",
1718
+ other: "{{count}} jam"
1719
+ },
1720
+ xDays: {
1721
+ one: "1 hari",
1722
+ other: "{{count}} hari"
1723
+ },
1724
+ aboutXWeeks: {
1725
+ one: "sekitar 1 minggu",
1726
+ other: "sekitar {{count}} minggu"
1727
+ },
1728
+ xWeeks: {
1729
+ one: "1 minggu",
1730
+ other: "{{count}} minggu"
1731
+ },
1732
+ aboutXMonths: {
1733
+ one: "sekitar 1 bulan",
1734
+ other: "sekitar {{count}} bulan"
1735
+ },
1736
+ xMonths: {
1737
+ one: "1 bulan",
1738
+ other: "{{count}} bulan"
1739
+ },
1740
+ aboutXYears: {
1741
+ one: "sekitar 1 tahun",
1742
+ other: "sekitar {{count}} tahun"
1743
+ },
1744
+ xYears: {
1745
+ one: "1 tahun",
1746
+ other: "{{count}} tahun"
1747
+ },
1748
+ overXYears: {
1749
+ one: "lebih dari 1 tahun",
1750
+ other: "lebih dari {{count}} tahun"
1751
+ },
1752
+ almostXYears: {
1753
+ one: "hampir 1 tahun",
1754
+ other: "hampir {{count}} tahun"
1755
+ }
1756
+ };
1757
+ var formatDistance = (token, count, options) => {
1758
+ let result;
1759
+ const tokenValue = formatDistanceLocale[token];
1760
+ if (typeof tokenValue === "string") {
1761
+ result = tokenValue;
1762
+ } else if (count === 1) {
1763
+ result = tokenValue.one;
1764
+ } else {
1765
+ result = tokenValue.other.replace("{{count}}", count.toString());
1766
+ }
1767
+ if (options == null ? void 0 : options.addSuffix) {
1768
+ if (options.comparison && options.comparison > 0) {
1769
+ return "dalam waktu " + result;
1770
+ } else {
1771
+ return result + " yang lalu";
1772
+ }
1773
+ }
1774
+ return result;
1775
+ };
1776
+
1777
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatLong.mjs
1778
+ var dateFormats = {
1779
+ full: "EEEE, d MMMM yyyy",
1780
+ long: "d MMMM yyyy",
1781
+ medium: "d MMM yyyy",
1782
+ short: "d/M/yyyy"
1783
+ };
1784
+ var timeFormats = {
1785
+ full: "HH.mm.ss",
1786
+ long: "HH.mm.ss",
1787
+ medium: "HH.mm",
1788
+ short: "HH.mm"
1789
+ };
1790
+ var dateTimeFormats = {
1791
+ full: "{{date}} 'pukul' {{time}}",
1792
+ long: "{{date}} 'pukul' {{time}}",
1793
+ medium: "{{date}}, {{time}}",
1794
+ short: "{{date}}, {{time}}"
1795
+ };
1796
+ var formatLong = {
1797
+ date: buildFormatLongFn({
1798
+ formats: dateFormats,
1799
+ defaultWidth: "full"
1800
+ }),
1801
+ time: buildFormatLongFn({
1802
+ formats: timeFormats,
1803
+ defaultWidth: "full"
1804
+ }),
1805
+ dateTime: buildFormatLongFn({
1806
+ formats: dateTimeFormats,
1807
+ defaultWidth: "full"
1808
+ })
1809
+ };
1810
+
1811
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatRelative.mjs
1812
+ var formatRelativeLocale = {
1813
+ lastWeek: "eeee 'lalu pukul' p",
1814
+ yesterday: "'Kemarin pukul' p",
1815
+ today: "'Hari ini pukul' p",
1816
+ tomorrow: "'Besok pukul' p",
1817
+ nextWeek: "eeee 'pukul' p",
1818
+ other: "P"
1819
+ };
1820
+ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
1821
+
1822
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/localize.mjs
1823
+ var eraValues = {
1824
+ narrow: ["SM", "M"],
1825
+ abbreviated: ["SM", "M"],
1826
+ wide: ["Sebelum Masehi", "Masehi"]
1827
+ };
1828
+ var quarterValues = {
1829
+ narrow: ["1", "2", "3", "4"],
1830
+ abbreviated: ["K1", "K2", "K3", "K4"],
1831
+ wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"]
1832
+ };
1833
+ var monthValues = {
1834
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1835
+ abbreviated: [
1836
+ "Jan",
1837
+ "Feb",
1838
+ "Mar",
1839
+ "Apr",
1840
+ "Mei",
1841
+ "Jun",
1842
+ "Jul",
1843
+ "Agt",
1844
+ "Sep",
1845
+ "Okt",
1846
+ "Nov",
1847
+ "Des"
1848
+ ],
1849
+ wide: [
1850
+ "Januari",
1851
+ "Februari",
1852
+ "Maret",
1853
+ "April",
1854
+ "Mei",
1855
+ "Juni",
1856
+ "Juli",
1857
+ "Agustus",
1858
+ "September",
1859
+ "Oktober",
1860
+ "November",
1861
+ "Desember"
1862
+ ]
1863
+ };
1864
+ var dayValues = {
1865
+ narrow: ["M", "S", "S", "R", "K", "J", "S"],
1866
+ short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
1867
+ abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
1868
+ wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]
1869
+ };
1870
+ var dayPeriodValues = {
1871
+ narrow: {
1872
+ am: "AM",
1873
+ pm: "PM",
1874
+ midnight: "tengah malam",
1875
+ noon: "tengah hari",
1876
+ morning: "pagi",
1877
+ afternoon: "siang",
1878
+ evening: "sore",
1879
+ night: "malam"
1880
+ },
1881
+ abbreviated: {
1882
+ am: "AM",
1883
+ pm: "PM",
1884
+ midnight: "tengah malam",
1885
+ noon: "tengah hari",
1886
+ morning: "pagi",
1887
+ afternoon: "siang",
1888
+ evening: "sore",
1889
+ night: "malam"
1890
+ },
1891
+ wide: {
1892
+ am: "AM",
1893
+ pm: "PM",
1894
+ midnight: "tengah malam",
1895
+ noon: "tengah hari",
1896
+ morning: "pagi",
1897
+ afternoon: "siang",
1898
+ evening: "sore",
1899
+ night: "malam"
1900
+ }
1901
+ };
1902
+ var formattingDayPeriodValues = {
1903
+ narrow: {
1904
+ am: "AM",
1905
+ pm: "PM",
1906
+ midnight: "tengah malam",
1907
+ noon: "tengah hari",
1908
+ morning: "pagi",
1909
+ afternoon: "siang",
1910
+ evening: "sore",
1911
+ night: "malam"
1912
+ },
1913
+ abbreviated: {
1914
+ am: "AM",
1915
+ pm: "PM",
1916
+ midnight: "tengah malam",
1917
+ noon: "tengah hari",
1918
+ morning: "pagi",
1919
+ afternoon: "siang",
1920
+ evening: "sore",
1921
+ night: "malam"
1922
+ },
1923
+ wide: {
1924
+ am: "AM",
1925
+ pm: "PM",
1926
+ midnight: "tengah malam",
1927
+ noon: "tengah hari",
1928
+ morning: "pagi",
1929
+ afternoon: "siang",
1930
+ evening: "sore",
1931
+ night: "malam"
1932
+ }
1933
+ };
1934
+ var ordinalNumber = (dirtyNumber, _options) => {
1935
+ const number = Number(dirtyNumber);
1936
+ return "ke-" + number;
1937
+ };
1938
+ var localize = {
1939
+ ordinalNumber,
1940
+ era: buildLocalizeFn({
1941
+ values: eraValues,
1942
+ defaultWidth: "wide"
1943
+ }),
1944
+ quarter: buildLocalizeFn({
1945
+ values: quarterValues,
1946
+ defaultWidth: "wide",
1947
+ argumentCallback: (quarter) => quarter - 1
1948
+ }),
1949
+ month: buildLocalizeFn({
1950
+ values: monthValues,
1951
+ defaultWidth: "wide"
1952
+ }),
1953
+ day: buildLocalizeFn({
1954
+ values: dayValues,
1955
+ defaultWidth: "wide"
1956
+ }),
1957
+ dayPeriod: buildLocalizeFn({
1958
+ values: dayPeriodValues,
1959
+ defaultWidth: "wide",
1960
+ formattingValues: formattingDayPeriodValues,
1961
+ defaultFormattingWidth: "wide"
1962
+ })
1963
+ };
1964
+
1965
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/match.mjs
1966
+ var matchOrdinalNumberPattern = /^ke-(\d+)?/i;
1967
+ var parseOrdinalNumberPattern = /\d+/i;
1968
+ var matchEraPatterns = {
1969
+ narrow: /^(sm|m)/i,
1970
+ abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,
1971
+ wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i
1972
+ };
1973
+ var parseEraPatterns = {
1974
+ any: [/^s/i, /^(m|e)/i]
1975
+ };
1976
+ var matchQuarterPatterns = {
1977
+ narrow: /^[1234]/i,
1978
+ abbreviated: /^K-?\s[1234]/i,
1979
+ wide: /^Kuartal ke-?\s?[1234]/i
1980
+ };
1981
+ var parseQuarterPatterns = {
1982
+ any: [/1/i, /2/i, /3/i, /4/i]
1983
+ };
1984
+ var matchMonthPatterns = {
1985
+ narrow: /^[jfmasond]/i,
1986
+ abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,
1987
+ wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i
1988
+ };
1989
+ var parseMonthPatterns = {
1990
+ narrow: [
1991
+ /^j/i,
1992
+ /^f/i,
1993
+ /^m/i,
1994
+ /^a/i,
1995
+ /^m/i,
1996
+ /^j/i,
1997
+ /^j/i,
1998
+ /^a/i,
1999
+ /^s/i,
2000
+ /^o/i,
2001
+ /^n/i,
2002
+ /^d/i
2003
+ ],
2004
+ any: [
2005
+ /^ja/i,
2006
+ /^f/i,
2007
+ /^ma/i,
2008
+ /^ap/i,
2009
+ /^me/i,
2010
+ /^jun/i,
2011
+ /^jul/i,
2012
+ /^ag/i,
2013
+ /^s/i,
2014
+ /^o/i,
2015
+ /^n/i,
2016
+ /^d/i
2017
+ ]
2018
+ };
2019
+ var matchDayPatterns = {
2020
+ narrow: /^[srkjm]/i,
2021
+ short: /^(min|sen|sel|rab|kam|jum|sab)/i,
2022
+ abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i,
2023
+ wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i
2024
+ };
2025
+ var parseDayPatterns = {
2026
+ narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i],
2027
+ any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i]
2028
+ };
2029
+ var matchDayPeriodPatterns = {
2030
+ narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,
2031
+ any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i
2032
+ };
2033
+ var parseDayPeriodPatterns = {
2034
+ any: {
2035
+ am: /^a/i,
2036
+ pm: /^pm/i,
2037
+ midnight: /^tengah m/i,
2038
+ noon: /^tengah h/i,
2039
+ morning: /pagi/i,
2040
+ afternoon: /siang/i,
2041
+ evening: /sore/i,
2042
+ night: /malam/i
2043
+ }
2044
+ };
2045
+ var match = {
2046
+ ordinalNumber: buildMatchPatternFn({
2047
+ matchPattern: matchOrdinalNumberPattern,
2048
+ parsePattern: parseOrdinalNumberPattern,
2049
+ valueCallback: (value) => parseInt(value, 10)
2050
+ }),
2051
+ era: buildMatchFn({
2052
+ matchPatterns: matchEraPatterns,
2053
+ defaultMatchWidth: "wide",
2054
+ parsePatterns: parseEraPatterns,
2055
+ defaultParseWidth: "any"
2056
+ }),
2057
+ quarter: buildMatchFn({
2058
+ matchPatterns: matchQuarterPatterns,
2059
+ defaultMatchWidth: "wide",
2060
+ parsePatterns: parseQuarterPatterns,
2061
+ defaultParseWidth: "any",
2062
+ valueCallback: (index) => index + 1
2063
+ }),
2064
+ month: buildMatchFn({
2065
+ matchPatterns: matchMonthPatterns,
2066
+ defaultMatchWidth: "wide",
2067
+ parsePatterns: parseMonthPatterns,
2068
+ defaultParseWidth: "any"
2069
+ }),
2070
+ day: buildMatchFn({
2071
+ matchPatterns: matchDayPatterns,
2072
+ defaultMatchWidth: "wide",
2073
+ parsePatterns: parseDayPatterns,
2074
+ defaultParseWidth: "any"
2075
+ }),
2076
+ dayPeriod: buildMatchFn({
2077
+ matchPatterns: matchDayPeriodPatterns,
2078
+ defaultMatchWidth: "any",
2079
+ parsePatterns: parseDayPeriodPatterns,
2080
+ defaultParseWidth: "any"
2081
+ })
2082
+ };
2083
+
2084
+ // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id.mjs
2085
+ var id = {
2086
+ code: "id",
2087
+ formatDistance,
2088
+ formatLong,
2089
+ formatRelative,
2090
+ localize,
2091
+ match,
2092
+ options: {
2093
+ weekStartsOn: 1,
2094
+ firstWeekContainsDate: 1
2095
+ }
2096
+ };
2097
+
2098
+ // src/utils/locale/_lib/buildLocalizeFn/index.ts
2099
+ function buildLocalizeFn2(args) {
2100
+ return (value, options) => {
2101
+ const context = (options == null ? void 0 : options.context) ? String(options.context) : "standalone";
2102
+ let valuesArray;
2103
+ if (context === "formatting" && args.formattingValues) {
2104
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
2105
+ const width = (options == null ? void 0 : options.width) ? String(options.width) : defaultWidth;
2106
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
2107
+ } else {
2108
+ const { defaultWidth } = args;
2109
+ const width = (options == null ? void 0 : options.width) ? String(options.width) : args.defaultWidth;
2110
+ valuesArray = args.values[width] || args.values[defaultWidth];
2111
+ }
2112
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
2113
+ return valuesArray[index];
2114
+ };
2115
+ }
2116
+
2117
+ // src/utils/locale/id/index.ts
2118
+ var monthValues2 = {
2119
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
2120
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"],
2121
+ wide: [
2122
+ "Januari",
2123
+ "Februari",
2124
+ "Maret",
2125
+ "April",
2126
+ "Mei",
2127
+ "Juni",
2128
+ "Juli",
2129
+ "Agustus",
2130
+ "September",
2131
+ "Oktober",
2132
+ "November",
2133
+ "Desember"
2134
+ ]
2135
+ };
2136
+ id.localize.month = buildLocalizeFn2({
2137
+ values: monthValues2,
2138
+ defaultWidth: "wide"
2139
+ });
2140
+
1607
2141
  // src/components/datepicker/components/styles.tsx
1608
2142
  var import_system6 = require("@chakra-ui/system");
1609
2143
  var import_react30 = require("@emotion/react");
@@ -2502,7 +3036,7 @@ var time_input_default = TimeInput;
2502
3036
  // src/components/datepicker/components/datepicker.tsx
2503
3037
  var import_jsx_runtime27 = require("react/jsx-runtime");
2504
3038
  var Datepicker = ({
2505
- id,
3039
+ id: id2,
2506
3040
  label,
2507
3041
  error,
2508
3042
  isError,
@@ -2514,11 +3048,12 @@ var Datepicker = ({
2514
3048
  onClear,
2515
3049
  showMonth,
2516
3050
  shortMonth,
3051
+ timezoneLabel,
2517
3052
  ...props
2518
3053
  }) => {
2519
3054
  var _a, _b;
2520
3055
  const selected = value ? new Date(value) : void 0;
2521
- const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "dd MMMM yyyy, HH:mm" : "dd MMMM yyyy";
3056
+ const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? `dd MMM yyyy, HH:mm '${timezoneLabel}'` : "dd MMM yyyy";
2522
3057
  const getTimeProps = () => {
2523
3058
  if (!withTime) return {};
2524
3059
  return {
@@ -2533,7 +3068,7 @@ var Datepicker = ({
2533
3068
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2534
3069
  import_react_datepicker.default,
2535
3070
  {
2536
- id,
3071
+ id: id2,
2537
3072
  name,
2538
3073
  selected,
2539
3074
  customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
@@ -2571,6 +3106,7 @@ var Datepicker = ({
2571
3106
  shouldCloseOnSelect: !(props.selectsRange || withTime),
2572
3107
  useShortMonthInDropdown: showMonth ? shortMonth : false,
2573
3108
  dateFormat,
3109
+ locale: id,
2574
3110
  ...getTimeProps(),
2575
3111
  ...props
2576
3112
  }
@@ -5188,7 +5724,7 @@ var useToast = () => {
5188
5724
  style: { backgroundColor: style == null ? void 0 : style.backgroundColor, color: style == null ? void 0 : style.color }
5189
5725
  });
5190
5726
  },
5191
- dismiss: (id) => import_react_toastify.toast.dismiss(id)
5727
+ dismiss: (id2) => import_react_toastify.toast.dismiss(id2)
5192
5728
  };
5193
5729
  };
5194
5730
 
@@ -7491,6 +8027,7 @@ var import_react104 = require("@chakra-ui/react");
7491
8027
  forwardRef,
7492
8028
  getSelectAllCheckboxState,
7493
8029
  getTheme,
8030
+ id,
7494
8031
  isCellDisabled,
7495
8032
  selectStyles,
7496
8033
  theme,