@verifiedinc-public/shared-ui-elements 0.13.2-beta.1 → 0.13.2-beta.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.
@@ -19735,6 +19735,7 @@ const aM = Pi(
19735
19735
  ] }),
19736
19736
  sx: {
19737
19737
  alignItems: "center",
19738
+ width: "320px",
19738
19739
  ...l
19739
19740
  },
19740
19741
  children: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "0.13.2-beta.1",
3
+ "version": "0.13.2-beta.3",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -134,6 +134,7 @@ export const CustomAlertComponent = forwardRef<
134
134
  }
135
135
  sx={{
136
136
  alignItems: 'center',
137
+ width: '320px',
137
138
  ...sx,
138
139
  }}
139
140
  >
@@ -1,65 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
-
3
- import { Portal, Stack } from '@mui/material';
4
- import { fn } from '@storybook/test';
5
- import { Button } from '../../components';
6
- import { SnackbarProvider, useSnackbar } from '../../components/Snackbar';
7
-
8
- const Snackbar = (): React.JSX.Element => {
9
- const { updateSnackbar, closeSnackbar } = useSnackbar();
10
-
11
- const renderButton = (
12
- message: string,
13
- severity: string,
14
- ): React.JSX.Element => (
15
- <Button
16
- onClick={() => {
17
- updateSnackbar(message, severity as any);
18
- }}
19
- >
20
- {message}
21
- </Button>
22
- );
23
-
24
- return (
25
- <Stack>
26
- <Portal>
27
- <SnackbarProvider />
28
- </Portal>
29
- {renderButton('Success', 'success')}
30
- {renderButton('Error', 'error')}
31
- {renderButton('Warning', 'warning')}
32
- {renderButton('Info', 'info')}
33
- <Button
34
- onClick={() => {
35
- closeSnackbar();
36
- }}
37
- >
38
- Clear all
39
- </Button>
40
- </Stack>
41
- );
42
- };
43
-
44
- const meta = {
45
- title: 'Components/Snackbar',
46
-
47
- component: Snackbar,
48
- parameters: {
49
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
50
- layout: 'centered',
51
- },
52
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
53
- tags: ['autodocs'],
54
- args: {
55
- name: 'otp',
56
- onChange: fn(),
57
- disabled: false,
58
- },
59
- } satisfies Meta<typeof Snackbar>;
60
-
61
- export default meta;
62
- type Story = StoryObj<typeof Snackbar>;
63
-
64
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
65
- export const Default: Story = {};