@savvycal/calendar 0.9.0 → 0.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"UnavailabilityOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/shared/UnavailabilityOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,UAAU,0BAA0B;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,kBAAkB,KAAK,MAAM,CAAC;CAChD;AAED,eAAO,MAAM,qBAAqB,kEAgChC,CAAC"}
1
+ {"version":3,"file":"UnavailabilityOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/shared/UnavailabilityOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,UAAU,0BAA0B;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,kBAAkB,KAAK,MAAM,CAAC;CAChD;AAED,eAAO,MAAM,qBAAqB,kEAiChC,CAAC"}
@@ -1,37 +1,38 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { memo as l } from "react";
3
- const p = l(function({
4
- blocks: i,
5
- column: r,
6
- cls: a
2
+ import { memo as o } from "react";
3
+ const v = o(function({
4
+ blocks: t,
5
+ column: n,
6
+ cls: r
7
7
  }) {
8
- return i.length === 0 ? null : /* @__PURE__ */ e(
8
+ return t.length === 0 ? null : /* @__PURE__ */ e(
9
9
  "div",
10
10
  {
11
11
  "aria-hidden": "true",
12
12
  style: {
13
13
  gridRow: "3 / -1",
14
- gridColumn: r,
14
+ gridColumn: n,
15
15
  position: "relative",
16
16
  pointerEvents: "none"
17
17
  },
18
- children: i.map((t, n) => /* @__PURE__ */ e(
18
+ children: t.map((i, a) => /* @__PURE__ */ e(
19
19
  "div",
20
20
  {
21
- className: a("unavailableOverlay"),
21
+ className: r("unavailableOverlay"),
22
22
  style: {
23
23
  position: "absolute",
24
- top: t.top,
24
+ top: i.top,
25
25
  left: 0,
26
26
  right: 0,
27
- height: t.height
27
+ height: i.height,
28
+ backgroundPosition: `0 ${-i.top}px`
28
29
  }
29
30
  },
30
- n
31
+ a
31
32
  ))
32
33
  }
33
34
  );
34
35
  });
35
36
  export {
36
- p as UnavailabilityOverlay
37
+ v as UnavailabilityOverlay
37
38
  };
@@ -8,9 +8,12 @@
8
8
  * @import "@savvycal/calendar/components.css";
9
9
  */
10
10
 
11
- /* Unavailable time overlay with cross-hatching */
11
+ /* Unavailable time overlay with cross-hatching.
12
+ * Do not use background-attachment: fixed — mobile browsers fail to paint
13
+ * fixed backgrounds inside overflow scrollers. Overlay blocks set
14
+ * background-position from their grid top so disjoint ranges share one
15
+ * stripe origin. */
12
16
  .cal-unavailable-overlay {
13
- background-attachment: fixed;
14
17
  background-image: repeating-linear-gradient(
15
18
  -45deg,
16
19
  oklch(0 0 0 / 0.02),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/calendar",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "jsdom": "^27.4.0",
48
48
  "tailwindcss": "^4.3.0",
49
49
  "typescript": "~5.9.3",
50
- "vite": "^7.3.3",
50
+ "vite": "^7.3.5",
51
51
  "vite-plugin-dts": "^4.5.4",
52
52
  "vitest": "^4.1.6"
53
53
  },