@grucloud/bau-ui 0.203.0 → 0.300.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/bau-ui.d.ts +4 -1
- package/modal/modal.js +7 -1
- package/package.json +4 -4
package/bau-ui.d.ts
CHANGED
|
@@ -38,5 +38,8 @@ export type ComponentGeneric = (
|
|
|
38
38
|
) => ComponentReturned;
|
|
39
39
|
|
|
40
40
|
export type ComponentOption = {
|
|
41
|
-
class
|
|
41
|
+
// A class, or a list of classes, nested lists included
|
|
42
|
+
class?: string | ClassList;
|
|
42
43
|
} & DefaultDesignProps;
|
|
44
|
+
|
|
45
|
+
export type ClassList = (string | undefined | false | null | ClassList)[];
|
package/modal/modal.js
CHANGED
|
@@ -128,7 +128,13 @@ export default function (context, options = {}) {
|
|
|
128
128
|
} else {
|
|
129
129
|
search.delete("modal");
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
// Without a dangling "?" once the last parameter is removed
|
|
132
|
+
const query = search.toString();
|
|
133
|
+
window.history.pushState(
|
|
134
|
+
"",
|
|
135
|
+
"",
|
|
136
|
+
query ? `?${query}` : window.location.pathname + window.location.hash
|
|
137
|
+
);
|
|
132
138
|
}
|
|
133
139
|
});
|
|
134
140
|
observer.observe(dialogEl, { attributes: true });
|
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.300.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.300.0",
|
|
24
|
+
"@grucloud/bau-css": "^0.300.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7fcb57be43447051724d80dcb42308f8fb51286d"
|
|
30
30
|
}
|