ownui-system 0.0.2 → 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 (103) hide show
  1. package/README.md +64 -1
  2. package/package.json +2 -2
  3. package/dist/App.d.ts +0 -2
  4. package/dist/components/Accordion/Accordion.stories.d.ts +0 -23
  5. package/dist/components/Accordion/accordion-body.d.ts +0 -6
  6. package/dist/components/Accordion/accordion-context.d.ts +0 -16
  7. package/dist/components/Accordion/accordion-header.d.ts +0 -9
  8. package/dist/components/Accordion/accordion-item.d.ts +0 -11
  9. package/dist/components/Accordion/accordion-style.d.ts +0 -10
  10. package/dist/components/Accordion/accordion.d.ts +0 -12
  11. package/dist/components/Accordion/accortion-transition.d.ts +0 -24
  12. package/dist/components/Accordion/index.d.ts +0 -2
  13. package/dist/components/Badge/Badge.stories.d.ts +0 -14
  14. package/dist/components/Badge/Badge.style.d.ts +0 -26
  15. package/dist/components/Badge/badge-transition.d.ts +0 -18
  16. package/dist/components/Badge/index.d.ts +0 -13
  17. package/dist/components/BottomSheet/bottomsheet-body.d.ts +0 -7
  18. package/dist/components/BottomSheet/bottomsheet-contents.d.ts +0 -3
  19. package/dist/components/BottomSheet/bottomsheet-context.d.ts +0 -14
  20. package/dist/components/BottomSheet/bottomsheet-header.d.ts +0 -3
  21. package/dist/components/BottomSheet/bottomsheet-transition.d.ts +0 -23
  22. package/dist/components/BottomSheet/bottomsheet.d.ts +0 -14
  23. package/dist/components/BottomSheet/index.d.ts +0 -1
  24. package/dist/components/Button/Button.stories.d.ts +0 -43
  25. package/dist/components/Button/Button.style.d.ts +0 -40
  26. package/dist/components/Button/index.d.ts +0 -12
  27. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -30
  28. package/dist/components/Checkbox/Checkbox.style.d.ts +0 -28
  29. package/dist/components/Checkbox/CheckboxIcon.d.ts +0 -6
  30. package/dist/components/Checkbox/index.d.ts +0 -17
  31. package/dist/components/Dimmed/Dimmed.style.d.ts +0 -3
  32. package/dist/components/Dimmed/index.d.ts +0 -10
  33. package/dist/components/Divider/Divider.stories.d.ts +0 -19
  34. package/dist/components/Divider/index.d.ts +0 -8
  35. package/dist/components/Drawer/Drawer.stories.d.ts +0 -36
  36. package/dist/components/Drawer/DrawerStyle.d.ts +0 -7
  37. package/dist/components/Drawer/drawer-content.d.ts +0 -8
  38. package/dist/components/Drawer/drawer-context.d.ts +0 -19
  39. package/dist/components/Drawer/drawer-transition.d.ts +0 -64
  40. package/dist/components/Drawer/drawer.d.ts +0 -14
  41. package/dist/components/Drawer/hook/useDrawer.d.ts +0 -20
  42. package/dist/components/Drawer/index.d.ts +0 -2
  43. package/dist/components/Dropdown/Dropdown.stories.d.ts +0 -12
  44. package/dist/components/Dropdown/dropdown-body.d.ts +0 -7
  45. package/dist/components/Dropdown/dropdown-content.d.ts +0 -6
  46. package/dist/components/Dropdown/dropdown-context.d.ts +0 -15
  47. package/dist/components/Dropdown/dropdown-item.d.ts +0 -9
  48. package/dist/components/Dropdown/dropdown-transition.d.ts +0 -20
  49. package/dist/components/Dropdown/dropdown-trigger.d.ts +0 -6
  50. package/dist/components/Dropdown/dropdown.d.ts +0 -10
  51. package/dist/components/Dropdown/hook/useDropdown.d.ts +0 -17
  52. package/dist/components/Dropdown/index.d.ts +0 -3
  53. package/dist/components/Input/Input.stories.d.ts +0 -37
  54. package/dist/components/Input/Input.style.d.ts +0 -7
  55. package/dist/components/Input/index.d.ts +0 -9
  56. package/dist/components/Modal/Modal.stories.d.ts +0 -12
  57. package/dist/components/Modal/hook/useModal.d.ts +0 -24
  58. package/dist/components/Modal/index.d.ts +0 -5
  59. package/dist/components/Modal/modal-body.d.ts +0 -6
  60. package/dist/components/Modal/modal-content.d.ts +0 -8
  61. package/dist/components/Modal/modal-context.d.ts +0 -22
  62. package/dist/components/Modal/modal-footer.d.ts +0 -6
  63. package/dist/components/Modal/modal-header.d.ts +0 -6
  64. package/dist/components/Modal/modal-transition.d.ts +0 -46
  65. package/dist/components/Modal/modal.d.ts +0 -19
  66. package/dist/components/Popover/Popover.stories.d.ts +0 -32
  67. package/dist/components/Popover/hook/usePopover.d.ts +0 -38
  68. package/dist/components/Popover/index.d.ts +0 -3
  69. package/dist/components/Popover/popover-content.d.ts +0 -6
  70. package/dist/components/Popover/popover-context.d.ts +0 -20
  71. package/dist/components/Popover/popover-transition.d.ts +0 -20
  72. package/dist/components/Popover/popover-trigger.d.ts +0 -3
  73. package/dist/components/Popover/popover.d.ts +0 -29
  74. package/dist/components/Skeleton/index.d.ts +0 -10
  75. package/dist/components/Tab/Tab.stories.d.ts +0 -16
  76. package/dist/components/Tab/Tab.style.d.ts +0 -29
  77. package/dist/components/Tab/index.d.ts +0 -9
  78. package/dist/components/Tab/tab-context.d.ts +0 -13
  79. package/dist/components/Tab/tab-group.d.ts +0 -9
  80. package/dist/components/Text/index.d.ts +0 -10
  81. package/dist/components/TextArea/TextArea.stories.d.ts +0 -33
  82. package/dist/components/TextArea/TextArea.style.d.ts +0 -6
  83. package/dist/components/TextArea/index.d.ts +0 -10
  84. package/dist/components/TextField/TextField.stories.d.ts +0 -30
  85. package/dist/components/TextField/index.d.ts +0 -10
  86. package/dist/components/index.d.ts +0 -18
  87. package/dist/components/shared/Flex.d.ts +0 -13
  88. package/dist/components/shared/Portal.d.ts +0 -9
  89. package/dist/components/shared/Spacing.d.ts +0 -6
  90. package/dist/hooks/index.d.ts +0 -4
  91. package/dist/hooks/useClickOutSideEffect.d.ts +0 -3
  92. package/dist/hooks/useDomRef.d.ts +0 -4
  93. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +0 -7
  94. package/dist/hooks/useMounted.d.ts +0 -2
  95. package/dist/index.d.ts +0 -5
  96. package/dist/main.d.ts +0 -0
  97. package/dist/ownui-system.js +0 -6678
  98. package/dist/ownui-system.js.map +0 -1
  99. package/dist/ownui-system.umd.cjs +0 -36
  100. package/dist/ownui-system.umd.cjs.map +0 -1
  101. package/dist/styles/colors.d.ts +0 -38
  102. package/dist/styles/typography.d.ts +0 -173
  103. 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.2",
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}\"",
package/dist/App.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function App(): import("react/jsx-runtime").JSX.Element;
2
- export default App;
@@ -1,23 +0,0 @@
1
- import { Accordion } from '.';
2
- import type { StoryObj } from "@storybook/react";
3
- declare const meta: {
4
- title: string;
5
- component: typeof Accordion;
6
- parameters: {
7
- layout: string;
8
- };
9
- argTypes: {
10
- type: {
11
- if: {
12
- arg: string;
13
- exists: true;
14
- };
15
- };
16
- };
17
- };
18
- export default meta;
19
- type Story = StoryObj<typeof meta>;
20
- export declare const Default: Story;
21
- export declare const Bordered: Story;
22
- export declare const Splitted: Story;
23
- export declare const Multi: Story;
@@ -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,14 +0,0 @@
1
- import Badge from '.';
2
- import type { StoryObj } from "@storybook/react";
3
- declare const meta: {
4
- title: string;
5
- component: typeof Badge;
6
- parameters: {
7
- layout: string;
8
- };
9
- tags: string[];
10
- };
11
- export default meta;
12
- type Story = StoryObj<typeof meta>;
13
- export declare const Default: Story;
14
- export declare const WithContent: Story;
@@ -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,14 +0,0 @@
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 {};
@@ -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,14 +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
- 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;
@@ -1 +0,0 @@
1
- export { default as BottomSheet } from "./bottomsheet";
@@ -1,43 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- declare const meta: {
4
- title: string;
5
- component: import("react").ForwardRefExoticComponent<Omit<import('.').ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
6
- parameters: {
7
- layout: string;
8
- };
9
- argTypes: {
10
- type: {
11
- if: {
12
- arg: string;
13
- exists: true;
14
- };
15
- };
16
- children: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- disabled: {
22
- control: {
23
- type: string;
24
- };
25
- };
26
- startContent: {
27
- if: {
28
- arg: string;
29
- exists: true;
30
- };
31
- };
32
- endContent: {
33
- if: {
34
- arg: string;
35
- exists: true;
36
- };
37
- };
38
- };
39
- tags: string[];
40
- };
41
- export default meta;
42
- type Story = StoryObj<typeof meta>;
43
- export declare const Default: Story;
@@ -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,30 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- declare const meta: {
4
- title: string;
5
- component: import("react").ForwardRefExoticComponent<import('.').CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
6
- parameters: {
7
- layout: string;
8
- };
9
- argTypes: {
10
- isChecked: {
11
- if: {
12
- arg: string;
13
- exists: true;
14
- };
15
- };
16
- radius: {
17
- control: string;
18
- options: string[];
19
- };
20
- size: {
21
- control: string;
22
- options: string[];
23
- };
24
- };
25
- };
26
- export default meta;
27
- type Story = StoryObj<typeof meta>;
28
- export declare const Default: Story;
29
- export declare const Controlled: Story;
30
- export declare const Disabled: Story;
@@ -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,19 +0,0 @@
1
- import Divider from '.';
2
- import type { StoryObj } from "@storybook/react";
3
- declare const meta: {
4
- title: string;
5
- component: typeof Divider;
6
- parameters: {
7
- layout: string;
8
- };
9
- argTypes: {
10
- direction: {
11
- control: string;
12
- options: string[];
13
- };
14
- };
15
- tags: string[];
16
- };
17
- export default meta;
18
- type Story = StoryObj<typeof meta>;
19
- export declare const Default: Story;
@@ -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,36 +0,0 @@
1
- import type { StoryObj } from "@storybook/react";
2
- import Drawer from "./drawer";
3
- declare const meta: {
4
- title: string;
5
- component: typeof Drawer;
6
- parameters: {
7
- layout: string;
8
- };
9
- argTypes: {
10
- children: {
11
- if: {
12
- arg: string;
13
- exists: false;
14
- };
15
- };
16
- isOpen: {
17
- if: {
18
- arg: string;
19
- exists: false;
20
- };
21
- };
22
- motionVariant: {
23
- if: {
24
- arg: string;
25
- exists: true;
26
- };
27
- };
28
- };
29
- };
30
- export default meta;
31
- type Story = StoryObj<typeof meta>;
32
- export declare const Default: Story;
33
- export declare const FromTop: Story;
34
- export declare const FromBottom: Story;
35
- export declare const FromLeft: Story;
36
- export declare const FromRight: Story;
@@ -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;