@pushwoosh/dumb-components 1.1.149 → 1.1.150
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.
|
@@ -63,7 +63,7 @@ export function Drawer({
|
|
|
63
63
|
onMouseDown: handleClickOutside,
|
|
64
64
|
"$padding": padding,
|
|
65
65
|
children: _jsx(DrawerContainer, {
|
|
66
|
-
"$width": drawerSizes[size],
|
|
66
|
+
"$width": size in drawerSizes ? drawerSizes[size] : size,
|
|
67
67
|
onClick: handleClose,
|
|
68
68
|
children: children
|
|
69
69
|
})
|
|
@@ -9,8 +9,8 @@ export type ContentPadding = {
|
|
|
9
9
|
};
|
|
10
10
|
/** Props of {@link Drawer}. */
|
|
11
11
|
export type DrawerProps = PropsWithChildren<{
|
|
12
|
-
/** Width preset
|
|
13
|
-
readonly size: keyof typeof drawerSizes
|
|
12
|
+
/** Width: a predefined preset, or an explicit CSS length (`${number}px` / `${number}%`). */
|
|
13
|
+
readonly size: keyof typeof drawerSizes | `${number}px` | `${number}%`;
|
|
14
14
|
/** Whether the drawer is open. */
|
|
15
15
|
readonly isOpen: boolean;
|
|
16
16
|
/** Stacking z-index; auto-layered when omitted. */
|