@ulu/frontend 0.6.13 → 0.6.14

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.
@@ -28,6 +28,7 @@ $-fallbacks: (
28
28
  /// @prop {Dimension} min-width [9rem] The smallest width for all buttons
29
29
  /// @prop {Dimension} padding [(0.75em 1.5em)] Button inner padding value, pass space separated list
30
30
  /// @prop {CssValue} white-space [nowrap] Adjust button line wrapping, by default line's are not wrapped
31
+ /// @prop {Dimension} gap [0.5em] Gap to use between items within the button
31
32
  /// @prop {String} border-color ["control-border"] The border color for the button, usually if there is no border we set this to match the background color so if a button with no borders is adjacent a style that has borders the heights will match.
32
33
  /// @prop {String} border-color-hover ["control-border-hover"] Color of border when button is hovered
33
34
  /// @prop {String} border-color-active ["control-border-active"] Color of border when a button has active class
@@ -20,20 +20,28 @@ $-fallbacks: (
20
20
 
21
21
  /// Module Settings
22
22
  /// @type Map
23
- /// @prop {Number} background-color [gray] Background color (if no image)
23
+ /// @prop {Color} background-color [gray] Background color (if no image)
24
+ /// @prop {Color} background-color-hover [null] Optional background color for hover when using badge--clickable modifier
24
25
  /// @prop {Number} border-radius [50%] Border radius of badge
25
- /// @prop {Number} color [black] Type color
26
+ /// @prop {Color} color [black] Type color
27
+ /// @prop {Color} color-hover [null] Optional color for hover when using badge--clickable modifier
28
+ /// @prop {CssValue} box-shadow [null] Optional box-shadow
29
+ /// @prop {CssValue} box-shadow-hover [null] Optional box-shadow for hover when using badge--clickable modifier
26
30
  /// @prop {Number} font-size [1.3rem] Font size (basic ie. 1.3rem) for badge
27
- /// @prop {Number} font-weight [bold] Font weight
28
- /// @prop {Number} font-family [true] Specify font family, defaults to typography font-family-sans
31
+ /// @prop {Keyword} font-weight [bold] Font weight
32
+ /// @prop {String} font-family [true] Specify font family, defaults to typography font-family-sans
29
33
  /// @prop {Number} width [10rem] Width of badge (default size)
30
34
  /// @prop {Number} hover-scale [1.2] Scale of badge (if clickable) on hover (enlarges badge)
31
35
  /// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
32
36
 
33
37
  $config: (
34
- "background-color": gray,
38
+ "background-color": rgb(205, 205, 205),
39
+ "background-color-hover": null,
35
40
  "border-radius": 50%,
36
41
  "color": black,
42
+ "color-hover": null,
43
+ "box-shadow" : null,
44
+ "box-shadow-hover" : null,
37
45
  "font-size": 1.5rem,
38
46
  "font-weight": bold,
39
47
  "font-family": true,
@@ -110,7 +118,8 @@ $config: (
110
118
  text-align: center;
111
119
  border-radius: get("border-radius");
112
120
  transition: transform 100ms ease-in-out;
113
- // Incase this is used as a link or router-link
121
+ box-shadow: get("box-shadow");
122
+ // In case this is used as a link or router-link
114
123
  &,
115
124
  &:hover,
116
125
  &:focus,
@@ -125,6 +134,9 @@ $config: (
125
134
  &:hover,
126
135
  &:focus {
127
136
  #{ $prefix }__inner {
137
+ color: color.get(get("color-hover"));
138
+ background-color: color.get(get("background-color-hover"));
139
+ box-shadow: get("box-shadow-hover");
128
140
  transform: scale(get("hover-scale"));
129
141
  }
130
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
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": [