@homebound/truss 2.27.0 → 2.28.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/build/index.d.ts +1 -0
- package/build/index.js +9 -2
- package/build/index.js.map +1 -1
- package/build/plugin/index.js +35 -9
- package/build/plugin/index.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/build/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ declare const defaultSections: {
|
|
|
158
158
|
readonly outline: CreateMethodsFn;
|
|
159
159
|
readonly overflow: CreateMethodsFn;
|
|
160
160
|
readonly position: CreateMethodsFn;
|
|
161
|
+
readonly scrollSnap: CreateMethodsFn;
|
|
161
162
|
readonly scrollbarWidth: CreateMethodsFn;
|
|
162
163
|
readonly skins: CreateMethodsFn;
|
|
163
164
|
readonly spacing: CreateMethodsFn;
|
package/build/index.js
CHANGED
|
@@ -549,6 +549,12 @@ var position = () => newMethodsForProp("position", {
|
|
|
549
549
|
sticky: "sticky"
|
|
550
550
|
});
|
|
551
551
|
|
|
552
|
+
// src/sections/tachyons/scrollSnap.ts
|
|
553
|
+
var scrollSnap = () => [
|
|
554
|
+
...newMethodsForProp("scrollSnapAlign", {}, "ssa"),
|
|
555
|
+
...newMethodsForProp("scrollSnapType", {}, "sst")
|
|
556
|
+
];
|
|
557
|
+
|
|
552
558
|
// src/sections/tachyons/scrollbarWidth.ts
|
|
553
559
|
var scrollbarWidth = () => newMethodsForProp(
|
|
554
560
|
"scrollbarWidth",
|
|
@@ -865,6 +871,7 @@ var defaultSections = {
|
|
|
865
871
|
outline,
|
|
866
872
|
overflow,
|
|
867
873
|
position,
|
|
874
|
+
scrollSnap,
|
|
868
875
|
scrollbarWidth,
|
|
869
876
|
skins,
|
|
870
877
|
spacing,
|
|
@@ -1200,7 +1207,7 @@ class CssBuilder<T extends Properties> {
|
|
|
1200
1207
|
|
|
1201
1208
|
/** Reset active conditional modifiers for subsequent styles. */
|
|
1202
1209
|
get end() {
|
|
1203
|
-
return this.newCss({ selector: undefined, elseApplied: false });
|
|
1210
|
+
return this.newCss({ enabled: true, selector: undefined, elseApplied: false });
|
|
1204
1211
|
}
|
|
1205
1212
|
|
|
1206
1213
|
/** Add real CSS property/value pairs, either as add("prop", value) or add({ prop: value, ... }). */
|
|
@@ -1532,7 +1539,7 @@ class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"> {
|
|
|
1532
1539
|
|
|
1533
1540
|
/** Reset active conditional modifiers for subsequent styles. */
|
|
1534
1541
|
get end(): CssBuilder<T, S> {
|
|
1535
|
-
return this.newCss({ selector: undefined, elseApplied: false });
|
|
1542
|
+
return this.newCss({ enabled: true, selector: undefined, elseApplied: false });
|
|
1536
1543
|
}
|
|
1537
1544
|
|
|
1538
1545
|
/** Add real CSS property/value pairs, either as add("prop", value) or add({ prop: value, ... }). */
|