@cssints/stuck 0.6.0 → 0.7.0

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
@@ -1,5 +1,4 @@
1
1
  import { Style, Wrap } from "cssints";
2
- //#region src/index.d.ts
3
2
  /** An edge a sticky element sticks to. */
4
3
  export type Side = "top" | "right" | "bottom" | "left";
5
4
  /** The scope of `sticky()`, for a scope that embeds it (its kernel `core`). */
@@ -78,5 +77,4 @@ export interface Stuck {
78
77
  *
79
78
  * @returns {Style | Wrap} the styles under the condition, or the condition of that side
80
79
  */
81
- export declare const stuck: Stuck;
82
- //#endregion
80
+ export declare const stuck: Stuck;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { attr, cn, container, within } from "cssints" with { type: "cssints" };
2
2
  import { lacking, scope } from "cssints/plugin";
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  const SIDES = [
5
5
  "top",
6
6
  "right",
@@ -53,5 +53,4 @@ const stuck = ((...args) => {
53
53
  if (SIDES.includes(side)) return under(side);
54
54
  throw new Error(`cssints: stuck: stuck() takes top, right, bottom or left, got "${side}"`);
55
55
  });
56
- //#endregion
57
56
  export { sticky, stuck, stuckScope };
package/dist/observer.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/observer.ts
1
+ // src/observer.ts
2
2
  const SIDES = [
3
3
  "top",
4
4
  "right",
@@ -50,4 +50,3 @@ if (typeof document !== "undefined" && !CSS.supports("container-type", "scroll-s
50
50
  attributeFilter: ["class"]
51
51
  });
52
52
  }
53
- //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssints/stuck",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Style a sticky element while it is stuck: @container scroll-state(stuck) natively, an IntersectionObserver fallback",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "peerDependencies": {
32
- "cssints": "^0.6.0"
32
+ "cssints": "^0.7.0"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=22"