@hyphen/hyphen-components 2.19.1 → 2.19.2
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/dist/components/Drawer/Drawer.stories.d.ts +3 -1
- package/dist/hyphen-components.cjs.development.js +4 -1
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +4 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +67 -17
- package/src/components/Drawer/Drawer.tsx +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Drawer } from './Drawer';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
declare const meta: Meta<typeof Drawer>;
|
|
5
5
|
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Drawer>;
|
|
6
7
|
export declare const BasicUsage: () => React.JSX.Element;
|
|
8
|
+
export declare const OpenDrawer: Story;
|
|
7
9
|
export declare const Placement: () => React.JSX.Element;
|
|
8
10
|
export declare const DrawerHeader: () => React.JSX.Element;
|
|
9
11
|
export declare const TitleAndCloseButton: () => React.JSX.Element;
|
|
@@ -1953,7 +1953,10 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1953
1953
|
direction: "row",
|
|
1954
1954
|
justifyContent: "space-between",
|
|
1955
1955
|
alignItems: "center",
|
|
1956
|
-
padding:
|
|
1956
|
+
padding: {
|
|
1957
|
+
base: '2xl',
|
|
1958
|
+
tablet: '4xl'
|
|
1959
|
+
}
|
|
1957
1960
|
}, React.createElement(Box, {
|
|
1958
1961
|
className: styles$h.title,
|
|
1959
1962
|
fontWeight: "bold"
|