@verifiedinc-public/shared-ui-elements 1.3.1 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -3,3 +3,4 @@ export * from './useCopyToClipboard';
3
3
  export * from './useDisclosure';
4
4
  export * from './useCallbackRef';
5
5
  export * from './useQRCode';
6
+ export * from './useSearchParams';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns a URLSearchParams object for the current URL search params.
3
+ * @param search
4
+ */
5
+ export function useSearchParams(search?: string | URLSearchParams) {
6
+ return new URLSearchParams(search ?? window.location.search);
7
+ }
@@ -121,9 +121,6 @@ export const theme = ({ primaryFontFace }: ThemeOptions) =>
121
121
  components: {
122
122
  MuiAlert: {
123
123
  styleOverrides: {
124
- root: {
125
- maxWidth: '339px',
126
- },
127
124
  action: {
128
125
  // the action wrapper is pretty narrow (only fits about 5 characters of text) and the default is to wrap the text, which looks really bad
129
126
  overflowWrap: 'normal',