@grucloud/bau-ui 0.69.0 → 0.70.0

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.
@@ -1,5 +1,5 @@
1
1
  const ColorPaletteDefault = [
2
- ["neutral", { h: "0", s: "0%", l: "50%" }],
2
+ ["neutral", { h: "0", s: "0%", l: "10%" }],
3
3
  ["primary", { h: "230", s: "70%", l: "30%" }],
4
4
  ["secondary", { h: "338", s: "70%", l: "50%" }],
5
5
  ["success", { h: "120", s: "70%", l: "25%" }],
@@ -27,7 +27,7 @@ const variantToCss = () =>
27
27
  ([color]) =>
28
28
  `
29
29
  .outline.${color} {
30
- border: 1px solid ${darkVar(color)};
30
+ border: 1px solid var(--color-emphasis-600);
31
31
  color: var(--font-color-base)
32
32
  }
33
33
  .soft.${color} {
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.69.0",
4
+ "version": "0.70.0",
5
5
  "type": "module",
6
6
  "license": "BSD",
7
7
  "keywords": [
@@ -20,11 +20,11 @@
20
20
  "directory": "bau-ui"
21
21
  },
22
22
  "dependencies": {
23
- "@grucloud/bau": "^0.69.0",
24
- "@grucloud/bau-css": "^0.69.0"
23
+ "@grucloud/bau": "^0.70.0",
24
+ "@grucloud/bau-css": "^0.70.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typedoc": "0.24.8"
28
28
  },
29
- "gitHead": "6751716130fa828805362f979f6a28692fd7837f"
29
+ "gitHead": "d6e99e63ba58ed1de134100dd8106fef0eb6d286"
30
30
  }
package/tabs/tabs.js CHANGED
@@ -102,10 +102,12 @@ export default function (context, options = {}) {
102
102
  const search = new URLSearchParams(window.location.search);
103
103
  const tabName = search.get(tabsKey) ?? tabDefs[0].name;
104
104
 
105
- const nextTab = tabByName(tabName);
106
- tabCurrentState.val.exit?.call();
107
- tabCurrentState.val = nextTab;
108
- nextTab?.enter?.call();
105
+ if (tabName != tabCurrentState.val.name) {
106
+ const nextTab = tabByName(tabName);
107
+ tabCurrentState.val.exit?.call();
108
+ tabCurrentState.val = nextTab;
109
+ nextTab?.enter?.call();
110
+ }
109
111
  };
110
112
 
111
113
  hashchange();
@@ -118,11 +118,13 @@ export default function (context, options = {}) {
118
118
  children.map(Tree({ depth: depth + 1, maxDepth, parent: item }))
119
119
  );
120
120
  return li(
121
- Collapsible({
122
- expanded,
123
- Header,
124
- Content: children && depth < maxDepth && Content,
125
- })
121
+ children.length
122
+ ? Collapsible({
123
+ expanded,
124
+ Header,
125
+ Content: children && depth < maxDepth && Content,
126
+ })
127
+ : Header()
126
128
  );
127
129
  };
128
130