@grucloud/bau-ui 0.82.0 → 0.82.2
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/button/button.js +3 -2
- package/input/input.js +1 -1
- package/package.json +2 -2
- package/toggle/toggle.js +4 -2
package/button/button.js
CHANGED
|
@@ -102,12 +102,13 @@ export default function (context, options = {}) {
|
|
|
102
102
|
...props,
|
|
103
103
|
class: [
|
|
104
104
|
"button",
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
variant,
|
|
107
107
|
size,
|
|
108
108
|
color,
|
|
109
109
|
className,
|
|
110
|
-
|
|
110
|
+
options.class,
|
|
111
|
+
Array.isArray(props.class) ? props.class?.join(" ") : props.class,
|
|
111
112
|
],
|
|
112
113
|
href,
|
|
113
114
|
},
|
package/input/input.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grucloud/bau-ui",
|
|
3
3
|
"description": "Components library built with Bau",
|
|
4
|
-
"version": "0.82.
|
|
4
|
+
"version": "0.82.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BSD",
|
|
7
7
|
"keywords": [
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "0f9eef3e2bc98e9804a1b377c9acc89976851ed4"
|
|
30
30
|
}
|
package/toggle/toggle.js
CHANGED
|
@@ -12,6 +12,7 @@ export default function (context, options = {}) {
|
|
|
12
12
|
--toggle-background-color: rgba(255, 255, 255, 0.4)
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
|
+
|
|
15
16
|
const className = css`
|
|
16
17
|
color: inherit;
|
|
17
18
|
display: inline-flex;
|
|
@@ -31,11 +32,11 @@ export default function (context, options = {}) {
|
|
|
31
32
|
transition: all var(--transition-slow);
|
|
32
33
|
box-sizing: border-box;
|
|
33
34
|
cursor: pointer;
|
|
34
|
-
&[
|
|
35
|
+
&[selected="true"] {
|
|
35
36
|
background-color: var(--toggle-background-color);
|
|
36
37
|
box-shadow: var(--shadow-lg);
|
|
37
38
|
}
|
|
38
|
-
&[
|
|
39
|
+
&[selected="true"].solid {
|
|
39
40
|
filter: brightness(80%) !important;
|
|
40
41
|
}
|
|
41
42
|
&.outline,
|
|
@@ -81,6 +82,7 @@ export default function (context, options = {}) {
|
|
|
81
82
|
...props,
|
|
82
83
|
onclick: (event) => {
|
|
83
84
|
const { target } = event;
|
|
85
|
+
//debugger;
|
|
84
86
|
const pressed = target.getAttribute("aria-pressed");
|
|
85
87
|
target.setAttribute(
|
|
86
88
|
"aria-pressed",
|