@cssints/stuck 0.6.0 → 0.6.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 +1 -3
- package/dist/index.mjs +1 -2
- package/dist/observer.mjs +1 -2
- package/package.json +1 -1
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
|
-
|
|
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
package/package.json
CHANGED