ownui-system 0.0.3 → 0.0.4

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.
Files changed (88) hide show
  1. package/README.md +64 -1
  2. package/package.json +2 -2
  3. package/dist/components/Accordion/accordion-body.d.ts +0 -6
  4. package/dist/components/Accordion/accordion-context.d.ts +0 -16
  5. package/dist/components/Accordion/accordion-header.d.ts +0 -9
  6. package/dist/components/Accordion/accordion-item.d.ts +0 -11
  7. package/dist/components/Accordion/accordion-style.d.ts +0 -10
  8. package/dist/components/Accordion/accordion.d.ts +0 -12
  9. package/dist/components/Accordion/accortion-transition.d.ts +0 -24
  10. package/dist/components/Accordion/index.d.ts +0 -2
  11. package/dist/components/Badge/Badge.style.d.ts +0 -26
  12. package/dist/components/Badge/badge-transition.d.ts +0 -18
  13. package/dist/components/Badge/index.d.ts +0 -13
  14. package/dist/components/BottomSheet/bottomsheet-body.d.ts +0 -7
  15. package/dist/components/BottomSheet/bottomsheet-contents.d.ts +0 -3
  16. package/dist/components/BottomSheet/bottomsheet-context.d.ts +0 -16
  17. package/dist/components/BottomSheet/bottomsheet-header.d.ts +0 -3
  18. package/dist/components/BottomSheet/bottomsheet-transition.d.ts +0 -23
  19. package/dist/components/BottomSheet/bottomsheet.d.ts +0 -16
  20. package/dist/components/BottomSheet/index.d.ts +0 -1
  21. package/dist/components/Button/Button.style.d.ts +0 -40
  22. package/dist/components/Button/index.d.ts +0 -12
  23. package/dist/components/Checkbox/Checkbox.style.d.ts +0 -28
  24. package/dist/components/Checkbox/CheckboxIcon.d.ts +0 -6
  25. package/dist/components/Checkbox/index.d.ts +0 -17
  26. package/dist/components/Dimmed/Dimmed.style.d.ts +0 -3
  27. package/dist/components/Dimmed/index.d.ts +0 -10
  28. package/dist/components/Divider/index.d.ts +0 -8
  29. package/dist/components/Drawer/DrawerStyle.d.ts +0 -7
  30. package/dist/components/Drawer/drawer-content.d.ts +0 -8
  31. package/dist/components/Drawer/drawer-context.d.ts +0 -19
  32. package/dist/components/Drawer/drawer-transition.d.ts +0 -64
  33. package/dist/components/Drawer/drawer.d.ts +0 -14
  34. package/dist/components/Drawer/hook/useDrawer.d.ts +0 -20
  35. package/dist/components/Drawer/index.d.ts +0 -2
  36. package/dist/components/Dropdown/dropdown-body.d.ts +0 -7
  37. package/dist/components/Dropdown/dropdown-content.d.ts +0 -6
  38. package/dist/components/Dropdown/dropdown-context.d.ts +0 -15
  39. package/dist/components/Dropdown/dropdown-item.d.ts +0 -9
  40. package/dist/components/Dropdown/dropdown-transition.d.ts +0 -20
  41. package/dist/components/Dropdown/dropdown-trigger.d.ts +0 -6
  42. package/dist/components/Dropdown/dropdown.d.ts +0 -10
  43. package/dist/components/Dropdown/hook/useDropdown.d.ts +0 -17
  44. package/dist/components/Dropdown/index.d.ts +0 -3
  45. package/dist/components/Input/Input.style.d.ts +0 -7
  46. package/dist/components/Input/index.d.ts +0 -9
  47. package/dist/components/Modal/hook/useModal.d.ts +0 -24
  48. package/dist/components/Modal/index.d.ts +0 -5
  49. package/dist/components/Modal/modal-body.d.ts +0 -6
  50. package/dist/components/Modal/modal-content.d.ts +0 -8
  51. package/dist/components/Modal/modal-context.d.ts +0 -22
  52. package/dist/components/Modal/modal-footer.d.ts +0 -6
  53. package/dist/components/Modal/modal-header.d.ts +0 -6
  54. package/dist/components/Modal/modal-transition.d.ts +0 -46
  55. package/dist/components/Modal/modal.d.ts +0 -19
  56. package/dist/components/Popover/hook/usePopover.d.ts +0 -38
  57. package/dist/components/Popover/index.d.ts +0 -3
  58. package/dist/components/Popover/popover-content.d.ts +0 -6
  59. package/dist/components/Popover/popover-context.d.ts +0 -20
  60. package/dist/components/Popover/popover-transition.d.ts +0 -20
  61. package/dist/components/Popover/popover-trigger.d.ts +0 -3
  62. package/dist/components/Popover/popover.d.ts +0 -29
  63. package/dist/components/Skeleton/index.d.ts +0 -10
  64. package/dist/components/Tab/Tab.style.d.ts +0 -29
  65. package/dist/components/Tab/index.d.ts +0 -9
  66. package/dist/components/Tab/tab-context.d.ts +0 -13
  67. package/dist/components/Tab/tab-group.d.ts +0 -9
  68. package/dist/components/Text/index.d.ts +0 -10
  69. package/dist/components/TextArea/TextArea.style.d.ts +0 -6
  70. package/dist/components/TextArea/index.d.ts +0 -10
  71. package/dist/components/TextField/index.d.ts +0 -10
  72. package/dist/components/index.d.ts +0 -18
  73. package/dist/components/shared/Flex.d.ts +0 -13
  74. package/dist/components/shared/Portal.d.ts +0 -9
  75. package/dist/components/shared/Spacing.d.ts +0 -6
  76. package/dist/hooks/index.d.ts +0 -4
  77. package/dist/hooks/useClickOutSideEffect.d.ts +0 -3
  78. package/dist/hooks/useDomRef.d.ts +0 -4
  79. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +0 -7
  80. package/dist/hooks/useMounted.d.ts +0 -2
  81. package/dist/index.d.ts +0 -2
  82. package/dist/ownui-system.js +0 -6500
  83. package/dist/ownui-system.js.map +0 -1
  84. package/dist/ownui-system.umd.cjs +0 -36
  85. package/dist/ownui-system.umd.cjs.map +0 -1
  86. package/dist/styles/colors.d.ts +0 -38
  87. package/dist/styles/typography.d.ts +0 -173
  88. package/dist/types/index.d.ts +0 -6
package/README.md CHANGED
@@ -2,7 +2,70 @@
2
2
 
3
3
  - react, tailwindcss
4
4
 
5
- ## Components
5
+ ## Getting stated
6
+
7
+ ### setup tailwind css
8
+
9
+ - install tailwind css
10
+
11
+ ```
12
+ # or yarn or pnpm
13
+ npm i autoprefixer postcss tailwindcss
14
+ npx tailwindcss init -p
15
+ ```
16
+
17
+ - configure tailwind.config
18
+
19
+ ```
20
+ /** @type {import('tailwindcss').Config} */
21
+ export default {
22
+ content: [
23
+ "./index.html",
24
+ "./src/**/*.{js,ts,jsx,tsx}",
25
+ ],
26
+ theme: {
27
+ extend: {},
28
+ },
29
+ };
30
+
31
+ ```
32
+
33
+ - add tailwind css to css file
34
+
35
+ ```
36
+ @tailwind base;
37
+ @tailwind components;
38
+ @tailwind utilities;
39
+ ```
40
+
41
+ ### install package
42
+
43
+ ```
44
+ npm i ownui-system
45
+ #
46
+ yarn add ownui-system
47
+ #
48
+ pnpm add ownui-system
49
+ ```
50
+
51
+ - include "./node_modules/ownui-system/dist/\*_/_.{js,jsx,ts,tsx}" to tailwind.config content
52
+
53
+ ```
54
+ /** @type {import('tailwindcss').Config} */
55
+ export default {
56
+ content: [
57
+ "./index.html",
58
+ "./src/**/*.{js,ts,jsx,tsx}",
59
+ "./node_modules/ownui-system/dist/**/*.{js,jsx,ts,tsx}"
60
+ ],
61
+ theme: {
62
+ extend: {},
63
+ },
64
+ };
65
+
66
+ ```
67
+
68
+ ## UI Components
6
69
 
7
70
  - [x] Button
8
71
  - [x] Input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ownui-system",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -21,10 +21,10 @@
21
21
  "keywords": [
22
22
  "react",
23
23
  "typescript",
24
+ "tailwind",
24
25
  "ownui"
25
26
  ],
26
27
  "scripts": {
27
- "dev": "vite",
28
28
  "build": "tsc && vite build",
29
29
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
30
30
  "lint:fix": "eslint --fix --ext tx,tsx \"src/**/*.{js,jsx,ts,tsx}\"",
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface AccordionBodyProps {
3
- children: React.ReactNode;
4
- }
5
- declare function AccordionBody({ children }: AccordionBodyProps): import("react/jsx-runtime").JSX.Element;
6
- export default AccordionBody;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- type AccordionContextValue = {
3
- selected?: string | number;
4
- defaultSelected?: string | number;
5
- type?: "single" | "multi";
6
- variant: "light" | "splitted" | "bordered";
7
- color: string;
8
- onChange: (selected?: string | number) => void;
9
- };
10
- declare function useContext(): AccordionContextValue;
11
- export declare function useAccordionContext(): {
12
- AccordionProvider: import("react").Provider<AccordionContextValue | undefined>;
13
- useContext: typeof useContext;
14
- Context: import("react").Context<AccordionContextValue | undefined>;
15
- };
16
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface AccordionHeaderProps {
3
- isOpen: boolean;
4
- children: React.ReactNode;
5
- icon?: React.ReactNode;
6
- onClick?: () => void;
7
- }
8
- declare function AccordionHeader({ children, isOpen, icon, onClick, }: AccordionHeaderProps): import("react/jsx-runtime").JSX.Element;
9
- export default AccordionHeader;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- interface AccordionItemProps {
3
- header: React.ReactNode;
4
- headerIcon?: React.ReactNode;
5
- body: React.ReactNode;
6
- value: string | number;
7
- className?: string;
8
- disabled?: boolean;
9
- }
10
- declare function AccordionItem({ className, header, headerIcon, body, value, disabled, }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
11
- export default AccordionItem;
@@ -1,10 +0,0 @@
1
- export declare const baseStyle: {
2
- light: string;
3
- bordered: string;
4
- splitted: string;
5
- };
6
- export declare const itemStyle: {
7
- light: string;
8
- bordered: string;
9
- splitted: string;
10
- };
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- interface AccordionProps {
3
- defaultSelected?: string | number;
4
- type?: "single" | "multi";
5
- variant?: "light" | "splitted" | "bordered";
6
- onChange?: (selected?: string | number) => void;
7
- children: React.ReactNode;
8
- color?: string;
9
- className?: string;
10
- }
11
- declare function Accordion({ className, children, defaultSelected, type, variant, color, onChange, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
12
- export default Accordion;
@@ -1,24 +0,0 @@
1
- export declare const collapse: {
2
- enter: {
3
- opacity: number;
4
- height: string;
5
- transition: {
6
- height: {
7
- duration: number;
8
- ease: string;
9
- };
10
- opacity: {
11
- duration: number;
12
- ease: string;
13
- };
14
- };
15
- };
16
- exit: {
17
- opacity: number;
18
- height: number;
19
- transition: {
20
- duration: number;
21
- ease: string;
22
- };
23
- };
24
- };
@@ -1,2 +0,0 @@
1
- export { default as Accordion } from "./accordion";
2
- export { default as AccordionItem } from "./accordion-item";
@@ -1,26 +0,0 @@
1
- export declare const baseStyle = "flex items-center justify-center absolute z-[1] text-center";
2
- export declare const badgeSizeMap: {
3
- small: string;
4
- medium: string;
5
- large: string;
6
- };
7
- export declare const badgePlacementMap: {
8
- small: {
9
- "top-left": string;
10
- "top-right": string;
11
- "bottom-left": string;
12
- "bottom-right": string;
13
- };
14
- medium: {
15
- "top-left": string;
16
- "top-right": string;
17
- "bottom-left": string;
18
- "bottom-right": string;
19
- };
20
- large: {
21
- "top-left": string;
22
- "top-right": string;
23
- "bottom-left": string;
24
- "bottom-right": string;
25
- };
26
- };
@@ -1,18 +0,0 @@
1
- export declare const fadeInOut: {
2
- enter: {
3
- opacity: number;
4
- transition: {
5
- opacity: {
6
- duration: number;
7
- ease: string;
8
- };
9
- };
10
- };
11
- exit: {
12
- opacity: number;
13
- transition: {
14
- duration: number;
15
- ease: string;
16
- };
17
- };
18
- };
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- interface BadgeProps {
3
- content?: React.ReactNode;
4
- color: string;
5
- children?: React.ReactNode;
6
- size?: "large" | "medium" | "small";
7
- placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
8
- className?: string;
9
- radius?: string | number;
10
- isVisible?: boolean;
11
- }
12
- declare function Badge({ className, radius, size, color, placement, content, isVisible, children, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
13
- export default Badge;
@@ -1,7 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from "react";
2
- declare function BottomSheetContents({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
3
- export default BottomSheetContents;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- type BottomSheetContextValue = {
3
- isOpen: boolean;
4
- zIndex: number;
5
- color: string;
6
- minHeight: string;
7
- maxHeight: string;
8
- onOpenChange: (isOpen: boolean) => void;
9
- };
10
- declare function useContext(): BottomSheetContextValue;
11
- export declare function useBottomSheetContext(): {
12
- BottomSheetProvider: import("react").Provider<BottomSheetContextValue | undefined>;
13
- useContext: typeof useContext;
14
- Context: import("react").Context<BottomSheetContextValue | undefined>;
15
- };
16
- export {};
@@ -1,3 +0,0 @@
1
- import { ComponentProps } from "react";
2
- declare function BottomSheetHeader({ onPointerDown }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
- export default BottomSheetHeader;
@@ -1,23 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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
- minHeight?: string;
10
- maxHeight?: string;
11
- onClose?: () => void;
12
- onOpen?: () => void;
13
- onOpenChange: (isOpen: boolean) => void;
14
- }
15
- declare function BottomSheet({ children, removeDimmer, isOpen, allowCloseOnClickBackDrop, color, zIndex, maxHeight, minHeight, ...props }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
16
- export default BottomSheet;
@@ -1 +0,0 @@
1
- export { default as BottomSheet } from "./bottomsheet";
@@ -1,40 +0,0 @@
1
- export type BUTTON_SIZE_TYPE = keyof typeof buttonSizeMap;
2
- export declare const baseStyle = "flex items-center justify-center h-fit transition-all duration-100 ease-linear w-[var(--width)] border-[1px] bg-[var(--bg-color)] border-[var(--border-color)] border-solid disabled:opacity-30";
3
- export declare const buttonSizeMap: {
4
- normal: {
5
- xsmall: string;
6
- small: string;
7
- medium: string;
8
- large: string;
9
- xlarge: string;
10
- };
11
- icon: {
12
- xsmall: string;
13
- small: string;
14
- medium: string;
15
- large: string;
16
- xlarge: string;
17
- };
18
- };
19
- export declare const buttonTextSize: {
20
- xsmall: string;
21
- small: string;
22
- medium: string;
23
- large: string;
24
- xlarge: string;
25
- };
26
- export declare function buttonHoverStyle(variant: "normal" | "line" | "text"): "hover:text-white hover:bg-[var(--border-color)] disabled:bg-[var(--bg-color)] disabled:text-current" | "hover:opacity-[0.9] hover:brightness-[0.9] disabled:bg-[var(--bg-color)]";
27
- export declare function buttonTypeMap(color: string): {
28
- normal: {
29
- "--bg-color": string;
30
- "--border-color": string;
31
- };
32
- line: {
33
- "--border-color": string;
34
- "--bg-color": string;
35
- };
36
- text: {
37
- "--bg-color": string;
38
- "--border-color": string;
39
- };
40
- };
@@ -1,12 +0,0 @@
1
- import { ComponentProps, ReactNode } from "react";
2
- export interface ButtonProps extends ComponentProps<"button"> {
3
- size?: "xsmall" | "small" | "medium" | "large" | "xlarge";
4
- variant?: "normal" | "line" | "text";
5
- width?: string;
6
- className?: string;
7
- startContent?: ReactNode;
8
- endContent?: ReactNode;
9
- isOnlyIcon?: boolean;
10
- }
11
- declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
12
- export default Button;
@@ -1,28 +0,0 @@
1
- export declare const labelStyle = "inline-flex gap-[6px] items-center ";
2
- export declare const wrapperStyle: {
3
- base: string;
4
- before: string;
5
- after: string;
6
- };
7
- export declare const iconStyle = "absolute z-[3]";
8
- export declare const checkBoxSize: {
9
- small: {
10
- box: string;
11
- icon: string;
12
- };
13
- medium: {
14
- box: string;
15
- icon: string;
16
- };
17
- large: {
18
- box: string;
19
- icon: string;
20
- };
21
- };
22
- export declare const radiusSize: {
23
- full: string;
24
- large: string;
25
- medium: string;
26
- small: string;
27
- none: string;
28
- };
@@ -1,6 +0,0 @@
1
- type CheckBoxIconProps = {
2
- isChecked?: boolean;
3
- className?: string;
4
- };
5
- declare function CheckIcon({ isChecked, className }: CheckBoxIconProps): import("react/jsx-runtime").JSX.Element;
6
- export default CheckIcon;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CheckboxProps {
3
- size?: "small" | "medium" | "large";
4
- isChecked?: boolean;
5
- disabled?: boolean;
6
- readOnly?: boolean;
7
- isRequired?: boolean;
8
- radius?: "small" | "medium" | "large" | "full" | "none";
9
- className?: string;
10
- children?: React.ReactNode;
11
- icon?: React.ReactNode;
12
- color?: string;
13
- name?: string;
14
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
15
- }
16
- declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
17
- export default Checkbox;
@@ -1,3 +0,0 @@
1
- export declare const baseStyle = "fixed top-0 left-0 w-full h-full ";
2
- export declare const dimmerStyle = "bg-[#000000]";
3
- export declare const withoutDimmerStyle = "bg-[transparent]";
@@ -1,10 +0,0 @@
1
- import { CSSProperties, PropsWithChildren } from "react";
2
- interface DimmedProps extends PropsWithChildren {
3
- className?: string;
4
- opacity?: CSSProperties["opacity"];
5
- removeDimmer?: boolean;
6
- zIndex?: number;
7
- onClick?: () => void;
8
- }
9
- declare function BackDrop({ children, onClick, className, opacity, removeDimmer, zIndex, }: DimmedProps): import("react/jsx-runtime").JSX.Element;
10
- export default BackDrop;
@@ -1,8 +0,0 @@
1
- type DividerProps = {
2
- size?: string | number;
3
- color?: string;
4
- direction?: "horizontal" | "vertical";
5
- margin?: string;
6
- };
7
- declare function Divider({ size, margin, color, direction, }: DividerProps): import("react/jsx-runtime").JSX.Element;
8
- export default Divider;
@@ -1,7 +0,0 @@
1
- export declare const drawerContentStyle = "fixed bg-[var(--bg-color)] z-[var(--zIndex)]";
2
- export declare const drawerPlacementStyle: {
3
- top: string;
4
- bottom: string;
5
- left: string;
6
- right: string;
7
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- interface DrawerContentProps {
3
- children: React.ReactNode | ((onClose: () => void) => React.ReactNode);
4
- className?: string;
5
- color?: string;
6
- }
7
- declare function DrawerContent({ children, className, color, }: DrawerContentProps): import("react/jsx-runtime").JSX.Element;
8
- export default DrawerContent;
@@ -1,19 +0,0 @@
1
- import { HTMLMotionProps } from "framer-motion";
2
- import { ComponentProps } from "react";
3
- import Drawer from "./drawer";
4
- type DrawerProps = ComponentProps<typeof Drawer>;
5
- type DrawerContextValue = {
6
- isOpen: DrawerProps["isOpen"];
7
- placement?: "top" | "bottom" | "left" | "right";
8
- motionVariant?: HTMLMotionProps<"div">["variants"];
9
- zIndex?: number;
10
- drawerId: string;
11
- onOpenChange: (isOpen: boolean) => void;
12
- };
13
- declare function useContext(): DrawerContextValue;
14
- export declare function useDrawerContext(): {
15
- DrawerProvider: import("react").Provider<DrawerContextValue | undefined>;
16
- useContext: typeof useContext;
17
- Context: import("react").Context<DrawerContextValue | undefined>;
18
- };
19
- export {};
@@ -1,64 +0,0 @@
1
- export declare const SlideInOutFromTop: {
2
- enter: {
3
- y: number;
4
- transition: {
5
- duration: number;
6
- ease: string;
7
- };
8
- };
9
- exit: {
10
- y: string;
11
- transition: {
12
- duration: number;
13
- ease: string;
14
- };
15
- };
16
- };
17
- export declare const SlideInOutFromBottom: {
18
- enter: {
19
- y: number;
20
- transition: {
21
- duration: number;
22
- ease: string;
23
- };
24
- };
25
- exit: {
26
- y: string;
27
- transition: {
28
- duration: number;
29
- ease: string;
30
- };
31
- };
32
- };
33
- export declare const SlideInOutFromLeft: {
34
- enter: {
35
- x: number;
36
- transition: {
37
- duration: number;
38
- ease: string;
39
- };
40
- };
41
- exit: {
42
- x: string;
43
- transition: {
44
- duration: number;
45
- ease: string;
46
- };
47
- };
48
- };
49
- export declare const SlideInOutFromRight: {
50
- enter: {
51
- x: number;
52
- transition: {
53
- duration: number;
54
- ease: string;
55
- };
56
- };
57
- exit: {
58
- x: string;
59
- transition: {
60
- duration: number;
61
- ease: string;
62
- };
63
- };
64
- };
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { HTMLMotionProps } from "framer-motion";
3
- export type DrawerProps = {
4
- onOpenChange: (isOpen: boolean) => void;
5
- isOpen: boolean;
6
- children?: React.ReactNode;
7
- placement?: "top" | "bottom" | "left" | "right";
8
- zIndex?: number;
9
- drawerId?: string;
10
- allowCloseOnClickBackDrop?: boolean;
11
- motionVariant?: HTMLMotionProps<"div">["variants"];
12
- };
13
- declare function Drawer({ children, motionVariant, allowCloseOnClickBackDrop, zIndex, placement, drawerId, ...restProps }: DrawerProps): import("react/jsx-runtime").JSX.Element;
14
- export default Drawer;
@@ -1,20 +0,0 @@
1
- import { HTMLMotionProps } from "framer-motion";
2
- type UseDrawerProps = {
3
- isOpen: boolean;
4
- placement?: "top" | "bottom" | "left" | "right";
5
- motionVariant?: HTMLMotionProps<"div">["variants"];
6
- zIndex?: number;
7
- drawerId: string;
8
- onOpen?: () => void;
9
- onClose?: () => void;
10
- onOpenChange: (isOpen: boolean) => void;
11
- };
12
- declare function useDrawer({ isOpen, placement, motionVariant, zIndex, drawerId, onOpen, onClose, onOpenChange, }: UseDrawerProps): {
13
- isOpen: boolean;
14
- placement: "bottom" | "left" | "right" | "top" | undefined;
15
- motionVariant: import("framer-motion").Variants | undefined;
16
- zIndex: number | undefined;
17
- drawerId: string;
18
- onOpenChange: (isOpen: boolean) => void;
19
- };
20
- export default useDrawer;
@@ -1,2 +0,0 @@
1
- export { default as Drawer } from "./drawer";
2
- export { default as DrawerContent } from "./drawer-content";
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- type DropdownBodyProps = {
3
- children: React.ReactNode;
4
- className?: string;
5
- };
6
- declare function DropdownBody({ children, className }: DropdownBodyProps): import("react/jsx-runtime").JSX.Element;
7
- export default DropdownBody;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- type DropdownContentProps = {
3
- children: React.ReactNode;
4
- };
5
- declare function DropdownContent({ children }: DropdownContentProps): import("react/jsx-runtime").JSX.Element;
6
- export default DropdownContent;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- type DropdownContextValue = {
3
- isOpen: boolean;
4
- selectedItem?: string;
5
- color?: string;
6
- onSelect: (name: string) => void;
7
- onOpenChange: (isOpen: boolean) => void;
8
- };
9
- declare function useContext(): DropdownContextValue;
10
- export declare function useDropdownContext(): {
11
- DropdownProvider: import("react").Provider<DropdownContextValue | undefined>;
12
- useContext: typeof useContext;
13
- Context: import("react").Context<DropdownContextValue | undefined>;
14
- };
15
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- type DropdownItemProps = {
3
- className?: string;
4
- value: string;
5
- children: React.ReactNode;
6
- disabled?: boolean;
7
- };
8
- declare function DropdownItem({ children, value, className, disabled, }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
9
- export default DropdownItem;