@ulu/frontend 0.6.13 → 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.
- package/dist/mcp-data.json +507 -323
- package/dist/umd/frontend.css +1 -1
- package/lib/scss/_button.scss +1 -0
- package/lib/scss/components/_badge.scss +23 -7
- package/package.json +1 -1
package/lib/scss/_button.scss
CHANGED
|
@@ -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,25 +20,35 @@ $-fallbacks: (
|
|
|
20
20
|
|
|
21
21
|
/// Module Settings
|
|
22
22
|
/// @type Map
|
|
23
|
-
/// @prop {
|
|
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 {
|
|
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 {
|
|
28
|
-
/// @prop {
|
|
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)
|
|
34
|
+
/// @prop {Time} transition-duration [110ms] Transition duration amount for transitioned properties
|
|
30
35
|
/// @prop {Number} hover-scale [1.2] Scale of badge (if clickable) on hover (enlarges badge)
|
|
31
36
|
/// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
|
|
32
37
|
|
|
33
38
|
$config: (
|
|
34
|
-
"background-color":
|
|
39
|
+
"background-color": rgb(205, 205, 205),
|
|
40
|
+
"background-color-hover": null,
|
|
35
41
|
"border-radius": 50%,
|
|
36
42
|
"color": black,
|
|
43
|
+
"color-hover": null,
|
|
44
|
+
"box-shadow" : null,
|
|
45
|
+
"box-shadow-hover" : null,
|
|
37
46
|
"font-size": 1.5rem,
|
|
38
47
|
"font-weight": bold,
|
|
39
48
|
"font-family": true,
|
|
40
49
|
"width": 7rem,
|
|
41
50
|
"hover-scale": 1.2,
|
|
51
|
+
"transition-duration" : 110ms,
|
|
42
52
|
"sizes" : (
|
|
43
53
|
"small" : (
|
|
44
54
|
"font-size" : 1.2rem,
|
|
@@ -109,8 +119,11 @@ $config: (
|
|
|
109
119
|
background-position: center center;
|
|
110
120
|
text-align: center;
|
|
111
121
|
border-radius: get("border-radius");
|
|
112
|
-
transition: transform
|
|
113
|
-
|
|
122
|
+
transition-property: transform, color, box-shadow, background-color;
|
|
123
|
+
transition-duration: get("transition-duration");
|
|
124
|
+
transition-timing-function: ease-in-out;
|
|
125
|
+
box-shadow: get("box-shadow");
|
|
126
|
+
// In case this is used as a link or router-link
|
|
114
127
|
&,
|
|
115
128
|
&:hover,
|
|
116
129
|
&:focus,
|
|
@@ -125,6 +138,9 @@ $config: (
|
|
|
125
138
|
&:hover,
|
|
126
139
|
&:focus {
|
|
127
140
|
#{ $prefix }__inner {
|
|
141
|
+
color: color.get(get("color-hover"));
|
|
142
|
+
background-color: color.get(get("background-color-hover"));
|
|
143
|
+
box-shadow: get("box-shadow-hover");
|
|
128
144
|
transform: scale(get("hover-scale"));
|
|
129
145
|
}
|
|
130
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulu/frontend",
|
|
3
|
-
"version": "0.6.
|
|
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": [
|