@grucloud/bau-ui 0.54.0 → 0.54.1

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/avatar/avatar.js CHANGED
@@ -42,6 +42,9 @@ export default function (context, options = {}) {
42
42
  visibility: visible;
43
43
  opacity: 1;
44
44
  }
45
+ & .hide {
46
+ display: none;
47
+ }
45
48
  `;
46
49
  return function Avatar(...args) {
47
50
  let [
@@ -81,7 +84,8 @@ export default function (context, options = {}) {
81
84
  onerror,
82
85
  class: () =>
83
86
  classNames(
84
- !errorState.val && !loadingState.val && "visible",
87
+ !loadingState.val && "visible",
88
+ errorState.val && "hide",
85
89
  color,
86
90
  variant,
87
91
  size,
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.54.0",
4
+ "version": "0.54.1",
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": "9b8e31ede97bea288f6018f8bd5e03247906e405"
29
+ "gitHead": "db51837dc43765621754ba2f8bc16b7c47dd2c7f"
30
30
  }
@@ -3,7 +3,7 @@ import { toPropsAndChildren } from "@grucloud/bau/bau.js";
3
3
 
4
4
  export default function (context, options = {}) {
5
5
  const { bau, css, keyframes } = context;
6
- const { span } = bau.tags;
6
+ const { div } = bau.tags;
7
7
 
8
8
  const opacityKeyFrame = keyframes`
9
9
  0% {
@@ -46,7 +46,7 @@ export default function (context, options = {}) {
46
46
  },
47
47
  ...children
48
48
  ] = toPropsAndChildren(args);
49
- return span(
49
+ return div(
50
50
  {
51
51
  ...props,
52
52
  class: classNames(