@grucloud/bau-ui 0.203.0 → 0.204.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 CHANGED
@@ -38,5 +38,8 @@ export type ComponentGeneric = (
38
38
  ) => ComponentReturned;
39
39
 
40
40
  export type ComponentOption = {
41
- class?: string;
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
- window.history.pushState("", "", `?${search.toString()}`);
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.203.0",
4
+ "version": "0.204.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.203.0",
24
- "@grucloud/bau-css": "^0.203.0"
23
+ "@grucloud/bau": "^0.204.0",
24
+ "@grucloud/bau-css": "^0.204.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typedoc": "0.24.8"
28
28
  },
29
- "gitHead": "36dd6b52413e2030de691357ca6af0d9db954f10"
29
+ "gitHead": "9eef80910109310e2c703e3b006b158db92d6de7"
30
30
  }