@ulu/frontend 0.6.14 → 0.6.15

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
  &,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.6.14",
3
+ "version": "0.6.15",
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": [