calendarkit-prov2 2.0.7 → 2.0.8

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/README.md CHANGED
@@ -318,6 +318,7 @@ const sidebarMenus: SidebarMenuItem[] = [
318
318
  - [Documentation](https://react-calendarkit-prov2.vercel.app/)
319
319
  - [GitHub Repository](https://github.com/Sayzera/calendarkit-prov2)
320
320
  - [npm Package](https://www.npmjs.com/package/calendarkit-prov2)
321
+ - [Publishing to npm](PUBLISHING.md)
321
322
  - [Issues](https://github.com/Sayzera/calendarkit-prov2/issues)
322
323
 
323
324
  ---
package/dist/index.d.mts CHANGED
@@ -264,6 +264,11 @@ interface CalendarProps {
264
264
  isDarkMode?: boolean;
265
265
  onThemeToggle?: () => void;
266
266
  hideViewSwitcher?: boolean;
267
+ /**
268
+ * When true, hides the mobile floating action button (FAB) used to create events.
269
+ * Defaults to false (FAB is shown on viewports under 768px when not read-only).
270
+ */
271
+ hideFab?: boolean;
267
272
  /**
268
273
  * Hour (0–23) the Day and Week views initially scroll to on mount.
269
274
  * Defaults to 8 (08:00 AM).
package/dist/index.d.ts CHANGED
@@ -264,6 +264,11 @@ interface CalendarProps {
264
264
  isDarkMode?: boolean;
265
265
  onThemeToggle?: () => void;
266
266
  hideViewSwitcher?: boolean;
267
+ /**
268
+ * When true, hides the mobile floating action button (FAB) used to create events.
269
+ * Defaults to false (FAB is shown on viewports under 768px when not read-only).
270
+ */
271
+ hideFab?: boolean;
267
272
  /**
268
273
  * Hour (0–23) the Day and Week views initially scroll to on mount.
269
274
  * Defaults to 8 (08:00 AM).
package/dist/index.js CHANGED
@@ -4325,6 +4325,7 @@ var Scheduler = ({
4325
4325
  translations,
4326
4326
  hideViewSwitcher,
4327
4327
  hideLanguageSwitcher,
4328
+ hideFab = false,
4328
4329
  initialScrollHour = 8,
4329
4330
  reverseTime: reverseTimeProp = false,
4330
4331
  language = "tr",
@@ -4866,7 +4867,7 @@ var Scheduler = ({
4866
4867
  ), /* @__PURE__ */ React17__namespace.default.createElement("div", { className: "pl-2" }, /* @__PURE__ */ React17__namespace.default.createElement("div", { className: "font-semibold truncate text-sm" }, activeDragEvent.title), (view === "week" || view === "day") && getDragHeight() && getDragHeight() > 40 && /* @__PURE__ */ React17__namespace.default.createElement("div", { className: "text-xs opacity-80 mt-0.5 flex items-center gap-1" }, /* @__PURE__ */ React17__namespace.default.createElement("svg", { className: "w-3 h-3", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2" }, /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "12", cy: "12", r: "10" }), /* @__PURE__ */ React17__namespace.default.createElement("path", { d: "M12 6v6l4 2" })), dateFns.format(activeDragEvent.start, getTimeFormatFull(language)), " - ", dateFns.format(activeDragEvent.end, getTimeFormatFull(language)))), /* @__PURE__ */ React17__namespace.default.createElement("div", { className: "absolute bottom-1.5 right-1.5 opacity-60" }, /* @__PURE__ */ React17__namespace.default.createElement("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "currentColor" }, /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "9", cy: "5", r: "1.5" }), /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "15", cy: "5", r: "1.5" }), /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "9", cy: "12", r: "1.5" }), /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "15", cy: "12", r: "1.5" }), /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "9", cy: "19", r: "1.5" }), /* @__PURE__ */ React17__namespace.default.createElement("circle", { cx: "15", cy: "19", r: "1.5" }))))
4867
4868
  ) : null)
4868
4869
  )
4869
- ), isMounted && isMobile && !readOnly && reactDom.createPortal(
4870
+ ), isMounted && isMobile && !readOnly && !hideFab && reactDom.createPortal(
4870
4871
  /* @__PURE__ */ React17__namespace.default.createElement(
4871
4872
  "div",
4872
4873
  {