@grucloud/bau-ui 0.69.0 → 0.71.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.
- package/globalStyle/globalStyle.js +2 -2
- package/package.json +4 -4
- package/tabs/tabs.js +6 -4
- package/treeView/treeView.js +7 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const ColorPaletteDefault = [
|
|
2
|
-
["neutral", { h: "0", s: "0%", l: "
|
|
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
|
|
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.
|
|
4
|
+
"version": "0.71.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.
|
|
24
|
-
"@grucloud/bau-css": "^0.
|
|
23
|
+
"@grucloud/bau": "^0.71.0",
|
|
24
|
+
"@grucloud/bau-css": "^0.71.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2aab36dd50b19004b6c43e005e6c672c5d06932f"
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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();
|
package/treeView/treeView.js
CHANGED
|
@@ -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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|