@xyo-network/react-drawer 2.76.3 → 2.76.4

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
@@ -75,6 +75,6 @@
75
75
  },
76
76
  "sideEffects": false,
77
77
  "types": "dist/browser/index.d.ts",
78
- "version": "2.76.3",
78
+ "version": "2.76.4",
79
79
  "type": "module"
80
80
  }
@@ -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 <div style={{ width: '100vw', height: 'calc(100vh - 2rem)'}}><DrawerEx {...props} /></div>
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 }