@ulu/frontend 0.6.14 → 0.6.16

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.
@@ -31,6 +31,7 @@ $-fallbacks: (
31
31
  /// @prop {Keyword} font-weight [bold] Font weight
32
32
  /// @prop {String} font-family [true] Specify font family, defaults to typography font-family-sans
33
33
  /// @prop {Number} width [10rem] Width of badge (default size)
34
+ /// @prop {Time} transition-duration [110ms] Transition duration amount for transitioned properties
34
35
  /// @prop {Number} hover-scale [1.2] Scale of badge (if clickable) on hover (enlarges badge)
35
36
  /// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
36
37
 
@@ -47,6 +48,7 @@ $config: (
47
48
  "font-family": true,
48
49
  "width": 7rem,
49
50
  "hover-scale": 1.2,
51
+ "transition-duration" : 110ms,
50
52
  "sizes" : (
51
53
  "small" : (
52
54
  "font-size" : 1.2rem,
@@ -117,7 +119,9 @@ $config: (
117
119
  background-position: center center;
118
120
  text-align: center;
119
121
  border-radius: get("border-radius");
120
- transition: transform 100ms ease-in-out;
122
+ transition-property: transform, color, box-shadow, background-color;
123
+ transition-duration: get("transition-duration");
124
+ transition-timing-function: ease-in-out;
121
125
  box-shadow: get("box-shadow");
122
126
  // In case this is used as a link or router-link
123
127
  &,
@@ -203,12 +203,7 @@ $config: (
203
203
  #{ $prefix }--fit {
204
204
  @include cssvar.declare-ulu("popover-width", max-content);
205
205
  }
206
- // If you want to do something custom (and have it touch the edges)
207
- #{ $prefix }--no-padding {
208
- #{ $prefix }__inner {
209
- padding: 0;
210
- }
211
- }
206
+
212
207
  #{ $prefix }--large {
213
208
  @include cssvar.declare-ulu("popover-width", get("width-large"));
214
209
  }
@@ -224,6 +219,12 @@ $config: (
224
219
  padding: get("footer-padding-y-large") get("padding-large");
225
220
  }
226
221
  }
222
+ // If you want to do something custom (and have it touch the edges)
223
+ #{ $prefix }--no-padding {
224
+ #{ $prefix }__inner {
225
+ padding: 0;
226
+ }
227
+ }
227
228
  #{ $prefix }--prints {
228
229
  @media print {
229
230
  display: block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "description": "A framework-agnostic frontend toolkit providing a modular, tree-shakable library of accessible components and utilities. Designed for seamless integration, it features a highly configurable SCSS system for any environment and vanilla JavaScript modules optimized for traditional websites and content management systems.",
5
5
  "type": "module",
6
6
  "files": [