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.
- package/README.md +64 -1
- package/package.json +2 -2
- package/dist/App.d.ts +0 -2
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -23
- package/dist/components/Accordion/accordion-body.d.ts +0 -6
- package/dist/components/Accordion/accordion-context.d.ts +0 -16
- package/dist/components/Accordion/accordion-header.d.ts +0 -9
- package/dist/components/Accordion/accordion-item.d.ts +0 -11
- package/dist/components/Accordion/accordion-style.d.ts +0 -10
- package/dist/components/Accordion/accordion.d.ts +0 -12
- package/dist/components/Accordion/accortion-transition.d.ts +0 -24
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/Badge/Badge.stories.d.ts +0 -14
- package/dist/components/Badge/Badge.style.d.ts +0 -26
- package/dist/components/Badge/badge-transition.d.ts +0 -18
- package/dist/components/Badge/index.d.ts +0 -13
- package/dist/components/BottomSheet/bottomsheet-body.d.ts +0 -7
- package/dist/components/BottomSheet/bottomsheet-contents.d.ts +0 -3
- package/dist/components/BottomSheet/bottomsheet-context.d.ts +0 -14
- package/dist/components/BottomSheet/bottomsheet-header.d.ts +0 -3
- package/dist/components/BottomSheet/bottomsheet-transition.d.ts +0 -23
- package/dist/components/BottomSheet/bottomsheet.d.ts +0 -14
- package/dist/components/BottomSheet/index.d.ts +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -43
- package/dist/components/Button/Button.style.d.ts +0 -40
- package/dist/components/Button/index.d.ts +0 -12
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -30
- package/dist/components/Checkbox/Checkbox.style.d.ts +0 -28
- package/dist/components/Checkbox/CheckboxIcon.d.ts +0 -6
- package/dist/components/Checkbox/index.d.ts +0 -17
- package/dist/components/Dimmed/Dimmed.style.d.ts +0 -3
- package/dist/components/Dimmed/index.d.ts +0 -10
- package/dist/components/Divider/Divider.stories.d.ts +0 -19
- package/dist/components/Divider/index.d.ts +0 -8
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -36
- package/dist/components/Drawer/DrawerStyle.d.ts +0 -7
- package/dist/components/Drawer/drawer-content.d.ts +0 -8
- package/dist/components/Drawer/drawer-context.d.ts +0 -19
- package/dist/components/Drawer/drawer-transition.d.ts +0 -64
- package/dist/components/Drawer/drawer.d.ts +0 -14
- package/dist/components/Drawer/hook/useDrawer.d.ts +0 -20
- package/dist/components/Drawer/index.d.ts +0 -2
- package/dist/components/Dropdown/Dropdown.stories.d.ts +0 -12
- package/dist/components/Dropdown/dropdown-body.d.ts +0 -7
- package/dist/components/Dropdown/dropdown-content.d.ts +0 -6
- package/dist/components/Dropdown/dropdown-context.d.ts +0 -15
- package/dist/components/Dropdown/dropdown-item.d.ts +0 -9
- package/dist/components/Dropdown/dropdown-transition.d.ts +0 -20
- package/dist/components/Dropdown/dropdown-trigger.d.ts +0 -6
- package/dist/components/Dropdown/dropdown.d.ts +0 -10
- package/dist/components/Dropdown/hook/useDropdown.d.ts +0 -17
- package/dist/components/Dropdown/index.d.ts +0 -3
- package/dist/components/Input/Input.stories.d.ts +0 -37
- package/dist/components/Input/Input.style.d.ts +0 -7
- package/dist/components/Input/index.d.ts +0 -9
- package/dist/components/Modal/Modal.stories.d.ts +0 -12
- package/dist/components/Modal/hook/useModal.d.ts +0 -24
- package/dist/components/Modal/index.d.ts +0 -5
- package/dist/components/Modal/modal-body.d.ts +0 -6
- package/dist/components/Modal/modal-content.d.ts +0 -8
- package/dist/components/Modal/modal-context.d.ts +0 -22
- package/dist/components/Modal/modal-footer.d.ts +0 -6
- package/dist/components/Modal/modal-header.d.ts +0 -6
- package/dist/components/Modal/modal-transition.d.ts +0 -46
- package/dist/components/Modal/modal.d.ts +0 -19
- package/dist/components/Popover/Popover.stories.d.ts +0 -32
- package/dist/components/Popover/hook/usePopover.d.ts +0 -38
- package/dist/components/Popover/index.d.ts +0 -3
- package/dist/components/Popover/popover-content.d.ts +0 -6
- package/dist/components/Popover/popover-context.d.ts +0 -20
- package/dist/components/Popover/popover-transition.d.ts +0 -20
- package/dist/components/Popover/popover-trigger.d.ts +0 -3
- package/dist/components/Popover/popover.d.ts +0 -29
- package/dist/components/Skeleton/index.d.ts +0 -10
- package/dist/components/Tab/Tab.stories.d.ts +0 -16
- package/dist/components/Tab/Tab.style.d.ts +0 -29
- package/dist/components/Tab/index.d.ts +0 -9
- package/dist/components/Tab/tab-context.d.ts +0 -13
- package/dist/components/Tab/tab-group.d.ts +0 -9
- package/dist/components/Text/index.d.ts +0 -10
- package/dist/components/TextArea/TextArea.stories.d.ts +0 -33
- package/dist/components/TextArea/TextArea.style.d.ts +0 -6
- package/dist/components/TextArea/index.d.ts +0 -10
- package/dist/components/TextField/TextField.stories.d.ts +0 -30
- package/dist/components/TextField/index.d.ts +0 -10
- package/dist/components/index.d.ts +0 -18
- package/dist/components/shared/Flex.d.ts +0 -13
- package/dist/components/shared/Portal.d.ts +0 -9
- package/dist/components/shared/Spacing.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/useClickOutSideEffect.d.ts +0 -3
- package/dist/hooks/useDomRef.d.ts +0 -4
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +0 -7
- package/dist/hooks/useMounted.d.ts +0 -2
- package/dist/index.d.ts +0 -5
- package/dist/main.d.ts +0 -0
- package/dist/ownui-system.js +0 -6678
- package/dist/ownui-system.js.map +0 -1
- package/dist/ownui-system.umd.cjs +0 -36
- package/dist/ownui-system.umd.cjs.map +0 -1
- package/dist/styles/colors.d.ts +0 -38
- package/dist/styles/typography.d.ts +0 -173
- 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
|
-
##
|
|
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
|
+
"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,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,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,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,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,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,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,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,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,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;
|