@xyo-network/react-drawer 2.76.2 → 2.76.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@storybook/react": "^7.6.19",
23
- "@xylabs/ts-scripts-yarn3": "^3.10.0",
24
- "@xylabs/tsconfig-react": "^3.10.0",
23
+ "@xylabs/ts-scripts-yarn3": "^3.10.4",
24
+ "@xylabs/tsconfig-react": "^3.10.4",
25
25
  "typescript": "^5.4.5"
26
26
  },
27
27
  "description": "Common React library for all XYO projects that use React",
@@ -75,6 +75,6 @@
75
75
  },
76
76
  "sideEffects": false,
77
77
  "types": "dist/browser/index.d.ts",
78
- "version": "2.76.2",
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 }