ownui-system 0.0.1 → 0.0.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/README.md CHANGED
@@ -22,7 +22,7 @@
22
22
  - [x] Drawer
23
23
  - [x] Dropdown
24
24
  - [x] Accordion
25
+ - [x] BottomSheet
25
26
  - [ ] Tooltip
26
27
  - [ ] Radio / RadioGroup
27
28
  - [ ] Step
28
- - [ ] BottomSheet
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface BottomSheetBodyProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ declare function BottomSheetBody({ children, className }: BottomSheetBodyProps): import("react/jsx-runtime").JSX.Element;
7
+ export default BottomSheetBody;
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ declare function BottomSheetContents({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
3
+ export default BottomSheetContents;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ type BottomSheetContextValue = {
3
+ isOpen: boolean;
4
+ zIndex: number;
5
+ color: string;
6
+ onOpenChange: (isOpen: boolean) => void;
7
+ };
8
+ declare function useContext(): BottomSheetContextValue;
9
+ export declare function useBottomSheetContext(): {
10
+ BottomSheetProvider: import("react").Provider<BottomSheetContextValue | undefined>;
11
+ useContext: typeof useContext;
12
+ Context: import("react").Context<BottomSheetContextValue | undefined>;
13
+ };
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ComponentProps } from "react";
2
+ declare function BottomSheetHeader({ onPointerDown }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
+ export default BottomSheetHeader;
@@ -0,0 +1,23 @@
1
+ export declare function bottomSheetOpenClose(viewPort: string, minHeight: string, maxHeight: string): {
2
+ opened: {
3
+ top: string;
4
+ transition: {
5
+ duration: number;
6
+ ease: string;
7
+ };
8
+ };
9
+ closed: {
10
+ top: string;
11
+ transition: {
12
+ duration: number;
13
+ ease: string;
14
+ };
15
+ };
16
+ expanded: {
17
+ top: string;
18
+ transition: {
19
+ duration: number;
20
+ ease: string;
21
+ };
22
+ };
23
+ };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export interface BottomSheetProps {
3
+ isOpen: boolean;
4
+ removeDimmer?: boolean;
5
+ zIndex?: number;
6
+ children: React.ReactNode;
7
+ color?: string;
8
+ allowCloseOnClickBackDrop?: boolean;
9
+ onClose?: () => void;
10
+ onOpen?: () => void;
11
+ onOpenChange: (isOpen: boolean) => void;
12
+ }
13
+ declare function BottomSheet({ children, removeDimmer, isOpen, allowCloseOnClickBackDrop, color, zIndex, ...props }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
14
+ export default BottomSheet;
@@ -0,0 +1 @@
1
+ export { default as BottomSheet } from "./bottomsheet";
@@ -15,3 +15,4 @@ export * from "./Drawer";
15
15
  export * from "./Modal";
16
16
  export * from "./Dropdown";
17
17
  export * from "./Popover";
18
+ export * from "./BottomSheet";