@xyo-network/react-drawer 2.76.3 → 2.76.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/react'
|
2
|
+
|
2
3
|
import { DrawerEx, DrawerExProps } from './Drawer'
|
3
4
|
|
4
5
|
// eslint-disable-next-line import/no-default-export
|
@@ -7,7 +8,11 @@ export default {
|
|
7
8
|
} as Meta
|
8
9
|
|
9
10
|
const Template: StoryFn<React.FC<DrawerExProps>> = (props) => {
|
10
|
-
return
|
11
|
+
return (
|
12
|
+
<div style={{ height: 'calc(100vh - 2rem)', width: '100vw' }}>
|
13
|
+
<DrawerEx {...props} />
|
14
|
+
</div>
|
15
|
+
)
|
11
16
|
}
|
12
17
|
|
13
18
|
const Default = Template.bind({})
|
@@ -15,21 +20,21 @@ Default.args = {}
|
|
15
20
|
|
16
21
|
const WithOpen = Template.bind({})
|
17
22
|
WithOpen.args = {
|
18
|
-
open: true
|
23
|
+
open: true,
|
19
24
|
}
|
20
25
|
|
21
26
|
const WithFullScreen = Template.bind({})
|
22
27
|
WithFullScreen.args = {
|
28
|
+
heightVariant: 'full',
|
23
29
|
open: true,
|
24
30
|
widthVariant: 'full',
|
25
|
-
heightVariant: 'full'
|
26
31
|
}
|
27
32
|
|
28
33
|
const WithTitles = Template.bind({})
|
29
34
|
WithTitles.args = {
|
30
35
|
open: true,
|
36
|
+
subTitle: 'SubTitle',
|
31
37
|
title: 'Title',
|
32
|
-
subTitle: "SubTitle"
|
33
38
|
}
|
34
39
|
|
35
40
|
export { Default, WithFullScreen, WithOpen, WithTitles }
|