@homebound/truss 2.28.0 → 2.29.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/build/index.d.ts CHANGED
@@ -136,6 +136,7 @@ type Sections = Record<SectionName, CreateMethodsFn>;
136
136
  type Aliases = Record<UtilityName, UtilityName[]>;
137
137
 
138
138
  declare const defaultSections: {
139
+ readonly animation: CreateMethodsFn;
139
140
  readonly border: CreateMethodsFn;
140
141
  readonly borderColor: CreateMethodsFn;
141
142
  readonly borderRadius: CreateMethodsFn;
@@ -165,6 +166,8 @@ declare const defaultSections: {
165
166
  readonly textAlign: CreateMethodsFn;
166
167
  readonly textDecoration: CreateMethodsFn;
167
168
  readonly textTransform: CreateMethodsFn;
169
+ readonly transform: CreateMethodsFn;
170
+ readonly transition: CreateMethodsFn;
168
171
  readonly typeScale: CreateMethodsFn;
169
172
  readonly typography: CreateMethodsFn;
170
173
  readonly userSelect: CreateMethodsFn;
package/build/index.js CHANGED
@@ -124,6 +124,19 @@ function comment(defs) {
124
124
  `;
125
125
  }
126
126
 
127
+ // src/sections/tachyons/animation.ts
128
+ var animation = () => [
129
+ ...newMethodsForProp("animation", {}),
130
+ ...newMethodsForProp("animationDelay", {}),
131
+ ...newMethodsForProp("animationDirection", {}),
132
+ ...newMethodsForProp("animationDuration", {}),
133
+ ...newMethodsForProp("animationFillMode", {}),
134
+ ...newMethodsForProp("animationIterationCount", {}),
135
+ ...newMethodsForProp("animationName", {}),
136
+ ...newMethodsForProp("animationPlayState", {}),
137
+ ...newMethodsForProp("animationTimingFunction", {})
138
+ ];
139
+
127
140
  // src/sections/tachyons/border.ts
128
141
  var borderDefs = [
129
142
  ["ba", ["borderStyle", "borderWidth"]],
@@ -658,6 +671,30 @@ var textTransform = () => newMethodsForProp(
658
671
  "tt"
659
672
  );
660
673
 
674
+ // src/sections/tachyons/transform.ts
675
+ var transform = () => [
676
+ ...newMethodsForProp("backfaceVisibility", {}),
677
+ ...newMethodsForProp("perspective", {}),
678
+ ...newMethodsForProp("perspectiveOrigin", {}),
679
+ ...newMethodsForProp("rotate", {}),
680
+ ...newMethodsForProp("scale", {}),
681
+ ...newMethodsForProp("transform", {}),
682
+ ...newMethodsForProp("transformBox", {}),
683
+ ...newMethodsForProp("transformOrigin", {}),
684
+ ...newMethodsForProp("transformStyle", {}),
685
+ ...newMethodsForProp("translate", {})
686
+ ];
687
+
688
+ // src/sections/tachyons/transition.ts
689
+ var transition = () => [
690
+ ...newMethodsForProp("transition", {}),
691
+ ...newMethodsForProp("transitionBehavior", {}),
692
+ ...newMethodsForProp("transitionDelay", {}),
693
+ ...newMethodsForProp("transitionDuration", {}),
694
+ ...newMethodsForProp("transitionProperty", {}),
695
+ ...newMethodsForProp("transitionTimingFunction", {})
696
+ ];
697
+
661
698
  // src/sections/tachyons/typeScale.ts
662
699
  var typeScale = ({ fonts }) => [
663
700
  ...Object.entries(fonts).map(([abbr, defs]) => {
@@ -849,6 +886,7 @@ var opacity = () => [
849
886
 
850
887
  // src/sections/tachyons/index.ts
851
888
  var defaultSections = {
889
+ animation,
852
890
  border,
853
891
  borderColor,
854
892
  borderRadius,
@@ -878,6 +916,8 @@ var defaultSections = {
878
916
  textAlign,
879
917
  textDecoration,
880
918
  textTransform,
919
+ transform,
920
+ transition,
881
921
  typeScale,
882
922
  typography,
883
923
  userSelect,
@@ -1207,7 +1247,7 @@ class CssBuilder<T extends Properties> {
1207
1247
 
1208
1248
  /** Reset active conditional modifiers for subsequent styles. */
1209
1249
  get end() {
1210
- return this.newCss({ selector: undefined, elseApplied: false });
1250
+ return this.newCss({ enabled: true, selector: undefined, elseApplied: false });
1211
1251
  }
1212
1252
 
1213
1253
  /** Add real CSS property/value pairs, either as add("prop", value) or add({ prop: value, ... }). */
@@ -1539,7 +1579,7 @@ class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"> {
1539
1579
 
1540
1580
  /** Reset active conditional modifiers for subsequent styles. */
1541
1581
  get end(): CssBuilder<T, S> {
1542
- return this.newCss({ selector: undefined, elseApplied: false });
1582
+ return this.newCss({ enabled: true, selector: undefined, elseApplied: false });
1543
1583
  }
1544
1584
 
1545
1585
  /** Add real CSS property/value pairs, either as add("prop", value) or add({ prop: value, ... }). */