calendarkit-prov2 2.0.2 → 2.0.3
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +70 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ declare const LANGUAGE_META: Record<LanguageCode, {
|
|
|
10
10
|
rtl?: boolean;
|
|
11
11
|
}>;
|
|
12
12
|
declare const LOCALES: Record<LanguageCode, CalendarTranslations>;
|
|
13
|
+
declare const DATE_FNS_LOCALES: Record<LanguageCode, Locale>;
|
|
13
14
|
/**
|
|
14
15
|
* Returns the full translation object for a given language code,
|
|
15
16
|
* merged with any custom override translations.
|
|
@@ -197,6 +198,8 @@ interface CalendarTranslations {
|
|
|
197
198
|
eventsCount: string;
|
|
198
199
|
timezone: string;
|
|
199
200
|
localTime: string;
|
|
201
|
+
operations: string;
|
|
202
|
+
reverseTimeLabel: string;
|
|
200
203
|
search: string;
|
|
201
204
|
allTypes: string;
|
|
202
205
|
noTitle: string;
|
|
@@ -322,4 +325,4 @@ declare const Scheduler: React.FC<CalendarProps>;
|
|
|
322
325
|
/** Primary export — backward-compatible alias for v1 `@calendarkit/react` consumers. */
|
|
323
326
|
declare const ProScheduler: React.FC<CalendarProps>;
|
|
324
327
|
|
|
325
|
-
export { type CalendarEvent, type CalendarProps, type CalendarTheme, type CalendarTranslations, type CustomView, type EventAttachment, type EventReminder, type EventType, LANGUAGE_META, LOCALES, type LanguageCode, ProScheduler, type CalendarProps as ProSchedulerProps, type Resource, Scheduler, type SidebarMenuItem, type ThemeColors, type ViewType, cn, getTranslations };
|
|
328
|
+
export { type CalendarEvent, type CalendarProps, type CalendarTheme, type CalendarTranslations, type CustomView, DATE_FNS_LOCALES, type EventAttachment, type EventReminder, type EventType, LANGUAGE_META, LOCALES, type LanguageCode, ProScheduler, type CalendarProps as ProSchedulerProps, type Resource, Scheduler, type SidebarMenuItem, type ThemeColors, type ViewType, cn, getTranslations };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const LANGUAGE_META: Record<LanguageCode, {
|
|
|
10
10
|
rtl?: boolean;
|
|
11
11
|
}>;
|
|
12
12
|
declare const LOCALES: Record<LanguageCode, CalendarTranslations>;
|
|
13
|
+
declare const DATE_FNS_LOCALES: Record<LanguageCode, Locale>;
|
|
13
14
|
/**
|
|
14
15
|
* Returns the full translation object for a given language code,
|
|
15
16
|
* merged with any custom override translations.
|
|
@@ -197,6 +198,8 @@ interface CalendarTranslations {
|
|
|
197
198
|
eventsCount: string;
|
|
198
199
|
timezone: string;
|
|
199
200
|
localTime: string;
|
|
201
|
+
operations: string;
|
|
202
|
+
reverseTimeLabel: string;
|
|
200
203
|
search: string;
|
|
201
204
|
allTypes: string;
|
|
202
205
|
noTitle: string;
|
|
@@ -322,4 +325,4 @@ declare const Scheduler: React.FC<CalendarProps>;
|
|
|
322
325
|
/** Primary export — backward-compatible alias for v1 `@calendarkit/react` consumers. */
|
|
323
326
|
declare const ProScheduler: React.FC<CalendarProps>;
|
|
324
327
|
|
|
325
|
-
export { type CalendarEvent, type CalendarProps, type CalendarTheme, type CalendarTranslations, type CustomView, type EventAttachment, type EventReminder, type EventType, LANGUAGE_META, LOCALES, type LanguageCode, ProScheduler, type CalendarProps as ProSchedulerProps, type Resource, Scheduler, type SidebarMenuItem, type ThemeColors, type ViewType, cn, getTranslations };
|
|
328
|
+
export { type CalendarEvent, type CalendarProps, type CalendarTheme, type CalendarTranslations, type CustomView, DATE_FNS_LOCALES, type EventAttachment, type EventReminder, type EventType, LANGUAGE_META, LOCALES, type LanguageCode, ProScheduler, type CalendarProps as ProSchedulerProps, type Resource, Scheduler, type SidebarMenuItem, type ThemeColors, type ViewType, cn, getTranslations };
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var classVarianceAuthority = require('class-variance-authority');
|
|
|
10
10
|
var clsx = require('clsx');
|
|
11
11
|
var tailwindMerge = require('tailwind-merge');
|
|
12
12
|
var lucideReact = require('lucide-react');
|
|
13
|
+
var locale = require('date-fns/locale');
|
|
13
14
|
var dateFnsTz = require('date-fns-tz');
|
|
14
15
|
var utilities = require('@dnd-kit/utilities');
|
|
15
16
|
var rrule = require('rrule');
|
|
@@ -78,8 +79,6 @@ var Button = React15__namespace.forwardRef(
|
|
|
78
79
|
}
|
|
79
80
|
);
|
|
80
81
|
Button.displayName = "Button";
|
|
81
|
-
|
|
82
|
-
// src/locales/index.ts
|
|
83
82
|
var LANGUAGE_META = {
|
|
84
83
|
tr: { native: "T\xFCrk\xE7e", english: "Turkish", flag: "\u{1F1F9}\u{1F1F7}" },
|
|
85
84
|
en: { native: "English", english: "English", flag: "\u{1F1EC}\u{1F1E7}" },
|
|
@@ -182,6 +181,8 @@ var tr = {
|
|
|
182
181
|
eventsCount: "etkinlik",
|
|
183
182
|
timezone: "Zaman Dilimi",
|
|
184
183
|
localTime: "Yerel Saat",
|
|
184
|
+
operations: "\u0130\u015Flemler",
|
|
185
|
+
reverseTimeLabel: "Saat Y\xF6n\xFC",
|
|
185
186
|
search: "Etkinlik ara...",
|
|
186
187
|
allTypes: "T\xFCm T\xFCrler",
|
|
187
188
|
noTitle: "(Ba\u015Fl\u0131ks\u0131z)",
|
|
@@ -273,6 +274,8 @@ var en = {
|
|
|
273
274
|
eventsCount: "events",
|
|
274
275
|
timezone: "Time zone",
|
|
275
276
|
localTime: "Local Time",
|
|
277
|
+
operations: "Operations",
|
|
278
|
+
reverseTimeLabel: "Time Direction",
|
|
276
279
|
search: "Search events...",
|
|
277
280
|
allTypes: "All Types",
|
|
278
281
|
noTitle: "(No title)",
|
|
@@ -364,6 +367,8 @@ var fr = {
|
|
|
364
367
|
eventsCount: "\xE9v\xE9nements",
|
|
365
368
|
timezone: "Fuseau horaire",
|
|
366
369
|
localTime: "Heure locale",
|
|
370
|
+
operations: "Op\xE9rations",
|
|
371
|
+
reverseTimeLabel: "Direction du temps",
|
|
367
372
|
search: "Rechercher des \xE9v\xE9nements...",
|
|
368
373
|
allTypes: "Tous les types",
|
|
369
374
|
noTitle: "(Sans titre)",
|
|
@@ -455,6 +460,8 @@ var de = {
|
|
|
455
460
|
eventsCount: "Termine",
|
|
456
461
|
timezone: "Zeitzone",
|
|
457
462
|
localTime: "Ortszeit",
|
|
463
|
+
operations: "Aktionen",
|
|
464
|
+
reverseTimeLabel: "Zeitrichtung",
|
|
458
465
|
search: "Termine suchen...",
|
|
459
466
|
allTypes: "Alle Typen",
|
|
460
467
|
noTitle: "(Kein Titel)",
|
|
@@ -546,6 +553,8 @@ var es = {
|
|
|
546
553
|
eventsCount: "eventos",
|
|
547
554
|
timezone: "Zona horaria",
|
|
548
555
|
localTime: "Hora local",
|
|
556
|
+
operations: "Operaciones",
|
|
557
|
+
reverseTimeLabel: "Direcci\xF3n del tiempo",
|
|
549
558
|
search: "Buscar eventos...",
|
|
550
559
|
allTypes: "Todos los tipos",
|
|
551
560
|
noTitle: "(Sin t\xEDtulo)",
|
|
@@ -637,6 +646,8 @@ var it = {
|
|
|
637
646
|
eventsCount: "eventi",
|
|
638
647
|
timezone: "Fuso orario",
|
|
639
648
|
localTime: "Ora locale",
|
|
649
|
+
operations: "Operazioni",
|
|
650
|
+
reverseTimeLabel: "Direzione del tempo",
|
|
640
651
|
search: "Cerca eventi...",
|
|
641
652
|
allTypes: "Tutti i tipi",
|
|
642
653
|
noTitle: "(Senza titolo)",
|
|
@@ -728,6 +739,8 @@ var pt = {
|
|
|
728
739
|
eventsCount: "eventos",
|
|
729
740
|
timezone: "Fuso hor\xE1rio",
|
|
730
741
|
localTime: "Hora local",
|
|
742
|
+
operations: "Opera\xE7\xF5es",
|
|
743
|
+
reverseTimeLabel: "Dire\xE7\xE3o do tempo",
|
|
731
744
|
search: "Buscar eventos...",
|
|
732
745
|
allTypes: "Todos os tipos",
|
|
733
746
|
noTitle: "(Sem t\xEDtulo)",
|
|
@@ -819,6 +832,8 @@ var ar = {
|
|
|
819
832
|
eventsCount: "\u0623\u062D\u062F\u0627\u062B",
|
|
820
833
|
timezone: "\u0627\u0644\u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",
|
|
821
834
|
localTime: "\u0627\u0644\u062A\u0648\u0642\u064A\u062A \u0627\u0644\u0645\u062D\u0644\u064A",
|
|
835
|
+
operations: "\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",
|
|
836
|
+
reverseTimeLabel: "\u0627\u062A\u062C\u0627\u0647 \u0627\u0644\u0648\u0642\u062A",
|
|
822
837
|
search: "\u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u0623\u062D\u062F\u0627\u062B...",
|
|
823
838
|
allTypes: "\u062C\u0645\u064A\u0639 \u0627\u0644\u0623\u0646\u0648\u0627\u0639",
|
|
824
839
|
noTitle: "(\u0628\u062F\u0648\u0646 \u0639\u0646\u0648\u0627\u0646)",
|
|
@@ -910,6 +925,8 @@ var zh = {
|
|
|
910
925
|
eventsCount: "\u4E2A\u6D3B\u52A8",
|
|
911
926
|
timezone: "\u65F6\u533A",
|
|
912
927
|
localTime: "\u672C\u5730\u65F6\u95F4",
|
|
928
|
+
operations: "\u64CD\u4F5C",
|
|
929
|
+
reverseTimeLabel: "\u65F6\u95F4\u65B9\u5411",
|
|
913
930
|
search: "\u641C\u7D22\u6D3B\u52A8...",
|
|
914
931
|
allTypes: "\u6240\u6709\u7C7B\u578B",
|
|
915
932
|
noTitle: "\uFF08\u65E0\u6807\u9898\uFF09",
|
|
@@ -1001,6 +1018,8 @@ var ja = {
|
|
|
1001
1018
|
eventsCount: "\u4EF6\u306E\u30A4\u30D9\u30F3\u30C8",
|
|
1002
1019
|
timezone: "\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",
|
|
1003
1020
|
localTime: "\u30ED\u30FC\u30AB\u30EB\u6642\u9593",
|
|
1021
|
+
operations: "\u64CD\u4F5C",
|
|
1022
|
+
reverseTimeLabel: "\u6642\u9593\u306E\u65B9\u5411",
|
|
1004
1023
|
search: "\u30A4\u30D9\u30F3\u30C8\u3092\u691C\u7D22...",
|
|
1005
1024
|
allTypes: "\u3059\u3079\u3066\u306E\u30BF\u30A4\u30D7",
|
|
1006
1025
|
noTitle: "\uFF08\u30BF\u30A4\u30C8\u30EB\u306A\u3057\uFF09",
|
|
@@ -1092,6 +1111,8 @@ var ko = {
|
|
|
1092
1111
|
eventsCount: "\uAC1C \uC77C\uC815",
|
|
1093
1112
|
timezone: "\uC2DC\uAC04\uB300",
|
|
1094
1113
|
localTime: "\uB85C\uCEEC \uC2DC\uAC04",
|
|
1114
|
+
operations: "\uC791\uC5C5",
|
|
1115
|
+
reverseTimeLabel: "\uC2DC\uAC04 \uBC29\uD5A5",
|
|
1095
1116
|
search: "\uC77C\uC815 \uAC80\uC0C9...",
|
|
1096
1117
|
allTypes: "\uBAA8\uB4E0 \uC720\uD615",
|
|
1097
1118
|
noTitle: "(\uC81C\uBAA9 \uC5C6\uC74C)",
|
|
@@ -1183,6 +1204,8 @@ var ru = {
|
|
|
1183
1204
|
eventsCount: "\u0441\u043E\u0431\u044B\u0442\u0438\u0439",
|
|
1184
1205
|
timezone: "\u0427\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",
|
|
1185
1206
|
localTime: "\u041C\u0435\u0441\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",
|
|
1207
|
+
operations: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",
|
|
1208
|
+
reverseTimeLabel: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438",
|
|
1186
1209
|
search: "\u041F\u043E\u0438\u0441\u043A \u0441\u043E\u0431\u044B\u0442\u0438\u0439...",
|
|
1187
1210
|
allTypes: "\u0412\u0441\u0435 \u0442\u0438\u043F\u044B",
|
|
1188
1211
|
noTitle: "(\u0411\u0435\u0437 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430)",
|
|
@@ -1274,6 +1297,8 @@ var nl = {
|
|
|
1274
1297
|
eventsCount: "evenementen",
|
|
1275
1298
|
timezone: "Tijdzone",
|
|
1276
1299
|
localTime: "Lokale tijd",
|
|
1300
|
+
operations: "Bewerkingen",
|
|
1301
|
+
reverseTimeLabel: "Tijdrichting",
|
|
1277
1302
|
search: "Evenementen zoeken...",
|
|
1278
1303
|
allTypes: "Alle typen",
|
|
1279
1304
|
noTitle: "(Geen titel)",
|
|
@@ -1365,6 +1390,8 @@ var pl = {
|
|
|
1365
1390
|
eventsCount: "wydarze\u0144",
|
|
1366
1391
|
timezone: "Strefa czasowa",
|
|
1367
1392
|
localTime: "Czas lokalny",
|
|
1393
|
+
operations: "Operacje",
|
|
1394
|
+
reverseTimeLabel: "Kierunek czasu",
|
|
1368
1395
|
search: "Szukaj wydarze\u0144...",
|
|
1369
1396
|
allTypes: "Wszystkie typy",
|
|
1370
1397
|
noTitle: "(Bez tytu\u0142u)",
|
|
@@ -1456,6 +1483,8 @@ var sv = {
|
|
|
1456
1483
|
eventsCount: "h\xE4ndelser",
|
|
1457
1484
|
timezone: "Tidszon",
|
|
1458
1485
|
localTime: "Lokal tid",
|
|
1486
|
+
operations: "\xC5tg\xE4rder",
|
|
1487
|
+
reverseTimeLabel: "Tidsriktning",
|
|
1459
1488
|
search: "S\xF6k h\xE4ndelser...",
|
|
1460
1489
|
allTypes: "Alla typer",
|
|
1461
1490
|
noTitle: "(Ingen titel)",
|
|
@@ -1479,6 +1508,23 @@ var LOCALES = {
|
|
|
1479
1508
|
pl,
|
|
1480
1509
|
sv
|
|
1481
1510
|
};
|
|
1511
|
+
var DATE_FNS_LOCALES = {
|
|
1512
|
+
tr: locale.tr,
|
|
1513
|
+
en: locale.enUS,
|
|
1514
|
+
fr: locale.fr,
|
|
1515
|
+
de: locale.de,
|
|
1516
|
+
es: locale.es,
|
|
1517
|
+
it: locale.it,
|
|
1518
|
+
pt: locale.pt,
|
|
1519
|
+
ar: locale.ar,
|
|
1520
|
+
zh: locale.zhCN,
|
|
1521
|
+
ja: locale.ja,
|
|
1522
|
+
ko: locale.ko,
|
|
1523
|
+
ru: locale.ru,
|
|
1524
|
+
nl: locale.nl,
|
|
1525
|
+
pl: locale.pl,
|
|
1526
|
+
sv: locale.sv
|
|
1527
|
+
};
|
|
1482
1528
|
function getTranslations(language = "tr", overrides = {}) {
|
|
1483
1529
|
return { ...LOCALES[language], ...overrides };
|
|
1484
1530
|
}
|
|
@@ -1777,14 +1823,22 @@ var MiniCalendar = ({
|
|
|
1777
1823
|
currentDate,
|
|
1778
1824
|
onDateChange,
|
|
1779
1825
|
onViewChange,
|
|
1780
|
-
className
|
|
1826
|
+
className,
|
|
1827
|
+
locale
|
|
1781
1828
|
}) => {
|
|
1782
1829
|
const [viewDate, setViewDate] = React15__namespace.default.useState(currentDate);
|
|
1783
1830
|
React15__namespace.default.useEffect(() => {
|
|
1784
1831
|
setViewDate(currentDate);
|
|
1785
1832
|
}, [currentDate]);
|
|
1786
1833
|
const days = React15__namespace.default.useMemo(() => getMonthGrid(viewDate), [viewDate]);
|
|
1787
|
-
const weekDays =
|
|
1834
|
+
const weekDays = React15__namespace.default.useMemo(() => {
|
|
1835
|
+
const base = new Date(2024, 0, 7);
|
|
1836
|
+
return Array.from({ length: 7 }, (_, i) => {
|
|
1837
|
+
const d = new Date(base);
|
|
1838
|
+
d.setDate(base.getDate() + i);
|
|
1839
|
+
return dateFns.format(d, "EEEEE", { locale });
|
|
1840
|
+
});
|
|
1841
|
+
}, [locale]);
|
|
1788
1842
|
const handlePrev = () => {
|
|
1789
1843
|
const newDate = dateFns.subMonths(viewDate, 1);
|
|
1790
1844
|
setViewDate(newDate);
|
|
@@ -1801,7 +1855,7 @@ var MiniCalendar = ({
|
|
|
1801
1855
|
onDateChange(day);
|
|
1802
1856
|
if (onViewChange) onViewChange("day");
|
|
1803
1857
|
};
|
|
1804
|
-
return /* @__PURE__ */ React15__namespace.default.createElement("div", { className: cn("px-4 w-[260px]", className) }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center justify-between mb-4" }, /* @__PURE__ */ React15__namespace.default.createElement("span", { className: "text-sm font-semibold text-foreground capitalize" }, dateFns.format(viewDate, "MMMM yyyy")), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center bg-muted/40 rounded-lg p-0.5" }, /* @__PURE__ */ React15__namespace.default.createElement(
|
|
1858
|
+
return /* @__PURE__ */ React15__namespace.default.createElement("div", { className: cn("px-4 w-[260px]", className) }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center justify-between mb-4" }, /* @__PURE__ */ React15__namespace.default.createElement("span", { className: "text-sm font-semibold text-foreground capitalize" }, dateFns.format(viewDate, "MMMM yyyy", { locale })), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center bg-muted/40 rounded-lg p-0.5" }, /* @__PURE__ */ React15__namespace.default.createElement(
|
|
1805
1859
|
Button,
|
|
1806
1860
|
{
|
|
1807
1861
|
variant: "ghost",
|
|
@@ -1862,7 +1916,8 @@ var Sidebar = ({
|
|
|
1862
1916
|
onReverseTimeChange,
|
|
1863
1917
|
customViews,
|
|
1864
1918
|
activeCustomViewId,
|
|
1865
|
-
onCustomViewChange
|
|
1919
|
+
onCustomViewChange,
|
|
1920
|
+
locale
|
|
1866
1921
|
}) => {
|
|
1867
1922
|
const [calendarsOpen, setCalendarsOpen] = React15.useState(true);
|
|
1868
1923
|
const [timezoneOpen, setTimezoneOpen] = React15.useState(false);
|
|
@@ -1890,7 +1945,7 @@ var Sidebar = ({
|
|
|
1890
1945
|
}
|
|
1891
1946
|
};
|
|
1892
1947
|
const timezones = [
|
|
1893
|
-
{ value: "", label: "Local Time", acronym: "LOC" },
|
|
1948
|
+
{ value: "", label: translations?.localTime ?? "Local Time", acronym: "LOC" },
|
|
1894
1949
|
{ value: "UTC", label: "UTC", acronym: "UTC" },
|
|
1895
1950
|
{ value: "America/New_York", label: "New York", acronym: "EST" },
|
|
1896
1951
|
{ value: "America/Chicago", label: "Chicago", acronym: "CST" },
|
|
@@ -1940,8 +1995,8 @@ var Sidebar = ({
|
|
|
1940
1995
|
onClick: () => setMenusExpanded(true)
|
|
1941
1996
|
},
|
|
1942
1997
|
/* @__PURE__ */ React15__namespace.default.createElement(lucideReact.LayoutGrid, { className: "w-4 h-4" }),
|
|
1943
|
-
/* @__PURE__ */ React15__namespace.default.createElement("span", null, "\u0130\u015Flemler")
|
|
1944
|
-
), menusExpanded && /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "animate-in fade-in slide-in-from-top-2 duration-200" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center justify-between mb-2 px-1" }, /* @__PURE__ */ React15__namespace.default.createElement("span", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider" }, "\u0130\u015Flemler"), /* @__PURE__ */ React15__namespace.default.createElement(
|
|
1998
|
+
/* @__PURE__ */ React15__namespace.default.createElement("span", null, translations?.operations ?? "\u0130\u015Flemler")
|
|
1999
|
+
), menusExpanded && /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "animate-in fade-in slide-in-from-top-2 duration-200" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center justify-between mb-2 px-1" }, /* @__PURE__ */ React15__namespace.default.createElement("span", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider" }, translations?.operations ?? "\u0130\u015Flemler"), /* @__PURE__ */ React15__namespace.default.createElement(
|
|
1945
2000
|
"button",
|
|
1946
2001
|
{
|
|
1947
2002
|
onClick: () => setMenusExpanded(false),
|
|
@@ -1961,7 +2016,7 @@ var Sidebar = ({
|
|
|
1961
2016
|
)
|
|
1962
2017
|
},
|
|
1963
2018
|
/* @__PURE__ */ React15__namespace.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "w-4 h-4 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React15__namespace.default.createElement("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "3", y1: "10", x2: "21", y2: "10" })),
|
|
1964
|
-
/* @__PURE__ */ React15__namespace.default.createElement("span", null, "Takvim"),
|
|
2019
|
+
/* @__PURE__ */ React15__namespace.default.createElement("span", null, translations?.calendar ?? "Takvim"),
|
|
1965
2020
|
activeCustomMenu === null && /* @__PURE__ */ React15__namespace.default.createElement("span", { className: "ml-auto w-1.5 h-1.5 rounded-full bg-primary" })
|
|
1966
2021
|
), sidebarMenus?.map((item) => /* @__PURE__ */ React15__namespace.default.createElement(
|
|
1967
2022
|
"button",
|
|
@@ -1998,7 +2053,7 @@ var Sidebar = ({
|
|
|
1998
2053
|
reverseTime ? "bg-primary/10 border-primary/30 text-primary" : "bg-muted/30 border-border/50 text-muted-foreground hover:border-primary/30 hover:text-foreground"
|
|
1999
2054
|
)
|
|
2000
2055
|
},
|
|
2001
|
-
/* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center gap-2.5" }, /* @__PURE__ */ React15__namespace.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "w-4 h-4 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "12", y1: "19", x2: "12", y2: "5" }), /* @__PURE__ */ React15__namespace.default.createElement("polyline", { points: "5 12 12 5 19 12" }), /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "12", y1: "5", x2: "12", y2: "19", className: "opacity-40" }), /* @__PURE__ */ React15__namespace.default.createElement("polyline", { points: "5 12 12 19 19 12", className: "opacity-40" })), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-left" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-xs font-semibold leading-tight" }, "Saat Y\xF6n\xFC"), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-[10px] leading-tight opacity-70 mt-0.5" }, reverseTime ? "23:00 \u2192 00:00" : "00:00 \u2192 23:00"))),
|
|
2056
|
+
/* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex items-center gap-2.5" }, /* @__PURE__ */ React15__namespace.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "w-4 h-4 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "12", y1: "19", x2: "12", y2: "5" }), /* @__PURE__ */ React15__namespace.default.createElement("polyline", { points: "5 12 12 5 19 12" }), /* @__PURE__ */ React15__namespace.default.createElement("line", { x1: "12", y1: "5", x2: "12", y2: "19", className: "opacity-40" }), /* @__PURE__ */ React15__namespace.default.createElement("polyline", { points: "5 12 12 19 19 12", className: "opacity-40" })), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-left" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-xs font-semibold leading-tight" }, translations?.reverseTimeLabel ?? "Saat Y\xF6n\xFC"), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "text-[10px] leading-tight opacity-70 mt-0.5" }, reverseTime ? "23:00 \u2192 00:00" : "00:00 \u2192 23:00"))),
|
|
2002
2057
|
/* @__PURE__ */ React15__namespace.default.createElement("div", { className: cn(
|
|
2003
2058
|
"relative w-9 h-5 rounded-full transition-colors duration-200 shrink-0",
|
|
2004
2059
|
reverseTime ? "bg-primary" : "bg-border"
|
|
@@ -2009,7 +2064,7 @@ var Sidebar = ({
|
|
|
2009
2064
|
)), renderMiniCalendar ? (
|
|
2010
2065
|
// Custom mini-calendar: receives the same props as the built-in one
|
|
2011
2066
|
renderMiniCalendar({ currentDate, onDateChange, onViewChange })
|
|
2012
|
-
) : /* @__PURE__ */ React15__namespace.default.createElement(MiniCalendar, { currentDate, onDateChange, onViewChange }), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex-1 px-4 space-y-5 mt-5" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "bg-muted/20 rounded-2xl p-3 border-[0px] border-border/30" }, /* @__PURE__ */ React15__namespace.default.createElement(
|
|
2067
|
+
) : /* @__PURE__ */ React15__namespace.default.createElement(MiniCalendar, { currentDate, onDateChange, onViewChange, locale }), /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "flex-1 px-4 space-y-5 mt-5" }, /* @__PURE__ */ React15__namespace.default.createElement("div", { className: "bg-muted/20 rounded-2xl p-3 border-[0px] border-border/30" }, /* @__PURE__ */ React15__namespace.default.createElement(
|
|
2013
2068
|
"div",
|
|
2014
2069
|
{
|
|
2015
2070
|
className: "flex items-center justify-between cursor-pointer hover:bg-accent/50 p-2 -m-1 rounded-xl mb-2 transition-all duration-200",
|
|
@@ -4431,6 +4486,7 @@ var Scheduler = ({
|
|
|
4431
4486
|
onCalendarToggle,
|
|
4432
4487
|
translations: t,
|
|
4433
4488
|
renderMiniCalendar,
|
|
4489
|
+
locale,
|
|
4434
4490
|
sidebarMenus,
|
|
4435
4491
|
activeCustomMenu,
|
|
4436
4492
|
onCustomMenuChange: (id2) => {
|
|
@@ -4484,6 +4540,7 @@ var Scheduler = ({
|
|
|
4484
4540
|
onCalendarToggle,
|
|
4485
4541
|
translations: t,
|
|
4486
4542
|
renderMiniCalendar,
|
|
4543
|
+
locale,
|
|
4487
4544
|
sidebarMenus,
|
|
4488
4545
|
activeCustomMenu,
|
|
4489
4546
|
onCustomMenuChange: (id2) => {
|
|
@@ -4732,6 +4789,7 @@ var Scheduler = ({
|
|
|
4732
4789
|
};
|
|
4733
4790
|
var ProScheduler = Scheduler;
|
|
4734
4791
|
|
|
4792
|
+
exports.DATE_FNS_LOCALES = DATE_FNS_LOCALES;
|
|
4735
4793
|
exports.LANGUAGE_META = LANGUAGE_META;
|
|
4736
4794
|
exports.LOCALES = LOCALES;
|
|
4737
4795
|
exports.ProScheduler = ProScheduler;
|