@basic-ui/material 1.0.0-alpha.41 → 1.0.0-alpha.42

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basic-ui/material",
3
- "version": "1.0.0-alpha.41",
3
+ "version": "1.0.0-alpha.42",
4
4
  "description": "Accessible React Components used as building blocks for UI patterns",
5
5
  "author": "Lucas Terra <lucasterra7@gmail.com>",
6
6
  "license": "MIT",
@@ -62,5 +62,5 @@
62
62
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
63
63
  "tailwindcss": "^3.0.0"
64
64
  },
65
- "gitHead": "68a29b9cb6a7f16642a8bab33488e3f52b711cce"
65
+ "gitHead": "9d98154823367d97f34393a27e7ac76c809977c6"
66
66
  }
@@ -18,7 +18,12 @@ const Example = () => {
18
18
  <Button id="open-button" onClick={() => setOpen(true)} ref={buttonRef}>
19
19
  Open dialog
20
20
  </Button>
21
- <Popover open={open} onClose={() => setOpen(false)} anchorEl={buttonRef}>
21
+ <Popover
22
+ open={open}
23
+ onClose={() => setOpen(false)}
24
+ anchorEl={buttonRef}
25
+ width={200}
26
+ >
22
27
  Hello hello
23
28
  <TextField placeholder="Hello" />
24
29
  </Popover>
@@ -14,14 +14,15 @@ import { PopoverSurface } from './PopoverSurface';
14
14
  import type { PopoverContainerProps } from './PopoverContainer';
15
15
  import { PopoverContainer } from './PopoverContainer';
16
16
 
17
- export type PopoverProps = Omit<PopperProps & BoxProps, 'usePortal'> & {
18
- open: boolean;
19
- onClose: () => void;
20
- disableBackdropClick?: boolean;
21
- disableEscapeKeyDown?: boolean;
22
- backdropProps?: DialogBackdropProps;
23
- containerProps?: PopoverContainerProps;
24
- };
17
+ export type PopoverProps = BoxProps &
18
+ Omit<PopperProps, 'usePortal'> & {
19
+ open: boolean;
20
+ onClose: () => void;
21
+ disableBackdropClick?: boolean;
22
+ disableEscapeKeyDown?: boolean;
23
+ backdropProps?: DialogBackdropProps;
24
+ containerProps?: PopoverContainerProps;
25
+ };
25
26
 
26
27
  export const Popover = forwardRef<HTMLDivElement, PopoverProps>(
27
28
  function Popover(