alope-ui 1.2.0 → 1.2.3
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/dist/components/Accordion/Accordion.d.ts +18 -0
- package/dist/components/Alert/Alert.d.ts +34 -0
- package/dist/components/Avatar/Avatar.d.ts +38 -0
- package/dist/components/Avatar/AvatarGroup.d.ts +10 -0
- package/dist/components/Badge/Badge.d.ts +25 -0
- package/dist/components/BottomNavbar/BottomNavbar.d.ts +9 -0
- package/dist/components/BottomNavbar/BottomNavbarAction.d.ts +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/components/Button/Button.d.ts +68 -0
- package/dist/components/Card/Card.d.ts +20 -0
- package/dist/components/CheckboxInput/CheckboxInput.d.ts +10 -0
- package/dist/components/CheckboxInput/ListCheckboxInput.d.ts +55 -0
- package/dist/components/CodeInput/CodeInput.d.ts +17 -0
- package/dist/components/Collection/Collection.d.ts +14 -0
- package/dist/components/DatePicker/DatePicker.d.ts +47 -0
- package/dist/components/FAB/FAB.d.ts +18 -0
- package/dist/components/FileUpload/FIleUpload.d.ts +14 -0
- package/dist/components/Grid/Grid.d.ts +12 -0
- package/dist/components/Grid/GridItem.d.ts +10 -0
- package/dist/components/Masonry/Masonry.d.ts +13 -0
- package/dist/components/Modal/Modal.d.ts +13 -0
- package/dist/components/Offcanvas/Offcanvas.d.ts +20 -0
- package/dist/components/Pagination/Pagination.d.ts +22 -0
- package/dist/components/RadioInput/RadioInput.d.ts +55 -0
- package/dist/components/SelectInput/SelectInput.d.ts +14 -0
- package/dist/components/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/Slider/Slider.d.ts +26 -0
- package/dist/components/Spinner/Spinner.d.ts +23 -0
- package/dist/components/Table/Table.d.ts +34 -0
- package/dist/components/Tabs/Tabs.d.ts +57 -0
- package/dist/components/TextInput/TextInput.d.ts +13 -0
- package/dist/components/Textarea/Textarea.d.ts +8 -0
- package/dist/components/Timeline/Timeline.d.ts +33 -0
- package/dist/components/Toast/Toast.d.ts +28 -0
- package/dist/components/Toast/ToastProvider.d.ts +11 -0
- package/dist/components/Toggle/Toggle.d.ts +28 -0
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/index.css +1 -0
- package/dist/main.cjs +749 -0
- package/dist/main.d.ts +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type Column<T> = {
|
|
2
|
+
header: string;
|
|
3
|
+
accessor: keyof T;
|
|
4
|
+
render?: (value: T[keyof T], row: T) => React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const TableSize: {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
export type TableType<T> = {
|
|
12
|
+
columns: Column<T>[];
|
|
13
|
+
data: T[];
|
|
14
|
+
striped?: boolean;
|
|
15
|
+
stripeColor?: string;
|
|
16
|
+
headerClassName?: string;
|
|
17
|
+
dataColumnClassName?: string;
|
|
18
|
+
dataRowClassName?: string;
|
|
19
|
+
tableClassName?: string;
|
|
20
|
+
captionClassName?: string;
|
|
21
|
+
containerClassName?: string;
|
|
22
|
+
customEmptyData?: React.ReactNode;
|
|
23
|
+
size?: keyof typeof TableSize;
|
|
24
|
+
caption?: string;
|
|
25
|
+
captionPosition?: 'top' | 'bottom';
|
|
26
|
+
stickyHeader?: boolean;
|
|
27
|
+
selectable?: boolean;
|
|
28
|
+
onSelectionChange?: (selected: T[]) => void;
|
|
29
|
+
selectedRows?: T[];
|
|
30
|
+
};
|
|
31
|
+
export declare function Table<T extends {
|
|
32
|
+
id: any;
|
|
33
|
+
}>({ columns, data, striped, stripeColor, headerClassName, dataColumnClassName, dataRowClassName, customEmptyData, tableClassName, captionClassName, containerClassName, size, caption, captionPosition, stickyHeader, selectable, onSelectionChange, selectedRows, }: TableType<T>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const TabsVariants: {
|
|
2
|
+
line: {
|
|
3
|
+
wrapper: string;
|
|
4
|
+
button: string;
|
|
5
|
+
active: string;
|
|
6
|
+
inactive: string;
|
|
7
|
+
};
|
|
8
|
+
solid: {
|
|
9
|
+
wrapper: string;
|
|
10
|
+
button: string;
|
|
11
|
+
active: string;
|
|
12
|
+
inactive: string;
|
|
13
|
+
};
|
|
14
|
+
subtle: {
|
|
15
|
+
wrapper: string;
|
|
16
|
+
button: string;
|
|
17
|
+
active: string;
|
|
18
|
+
inactive: string;
|
|
19
|
+
};
|
|
20
|
+
inline: {
|
|
21
|
+
wrapper: string;
|
|
22
|
+
button: string;
|
|
23
|
+
active: string;
|
|
24
|
+
inactive: string;
|
|
25
|
+
};
|
|
26
|
+
outline: {
|
|
27
|
+
wrapper: string;
|
|
28
|
+
button: string;
|
|
29
|
+
active: string;
|
|
30
|
+
inactive: string;
|
|
31
|
+
};
|
|
32
|
+
plain: {
|
|
33
|
+
wrapper: string;
|
|
34
|
+
button: string;
|
|
35
|
+
active: string;
|
|
36
|
+
inactive: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type Tabs = {
|
|
40
|
+
label: string;
|
|
41
|
+
content: React.ReactNode;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
link?: string;
|
|
44
|
+
};
|
|
45
|
+
export type TabsProps = {
|
|
46
|
+
tabs: Tabs[];
|
|
47
|
+
variant?: keyof typeof TabsVariants;
|
|
48
|
+
fitted?: boolean;
|
|
49
|
+
wrapperClassName?: string;
|
|
50
|
+
buttonClassName?: string;
|
|
51
|
+
activeClassName?: string;
|
|
52
|
+
inactiveClassName?: string;
|
|
53
|
+
activeTab?: number;
|
|
54
|
+
onTabChange?: (index: number) => void;
|
|
55
|
+
};
|
|
56
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
|
+
export type TextInputProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
labelClassName?: string;
|
|
6
|
+
errorClassName?: string;
|
|
7
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
8
|
+
export declare const TextInput: React.ForwardRefExoticComponent<{
|
|
9
|
+
label?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
errorClassName?: string;
|
|
13
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
|
+
export type TextareaType = {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
autoResize?: boolean;
|
|
6
|
+
customClassName?: string;
|
|
7
|
+
} & InputHTMLAttributes<HTMLTextAreaElement>;
|
|
8
|
+
export declare const Textarea: React.FC<TextareaType>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
declare const DotColors: {
|
|
3
|
+
success: string;
|
|
4
|
+
info: string;
|
|
5
|
+
error: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
declare const LineColors: {
|
|
11
|
+
success: string;
|
|
12
|
+
info: string;
|
|
13
|
+
error: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
primary: string;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
export type TimelineProps = {
|
|
19
|
+
position?: 'split' | 'right' | 'left';
|
|
20
|
+
lineColor?: keyof typeof LineColors;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
};
|
|
23
|
+
export type TimelineItemProps = {
|
|
24
|
+
title: string;
|
|
25
|
+
time: string;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
dotColor?: keyof typeof DotColors;
|
|
28
|
+
icon?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare const Timeline: React.FC<TimelineProps> & {
|
|
31
|
+
Item: React.FC<TimelineItemProps>;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ToastProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
message: string;
|
|
5
|
+
type: keyof typeof ToastTypes;
|
|
6
|
+
position?: keyof typeof ToastPositions;
|
|
7
|
+
variant?: keyof typeof ToastVariants;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ToastVariants: {
|
|
12
|
+
outline: string;
|
|
13
|
+
solid: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const ToastPositions: {
|
|
16
|
+
topLeft: string;
|
|
17
|
+
bottomLeft: string;
|
|
18
|
+
topRight: string;
|
|
19
|
+
bottomRight: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const ToastTypes: {
|
|
22
|
+
success: string;
|
|
23
|
+
info: string;
|
|
24
|
+
warning: string;
|
|
25
|
+
error: string;
|
|
26
|
+
};
|
|
27
|
+
declare const Toast: React.FC<ToastProps>;
|
|
28
|
+
export default Toast;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToastProps } from './Toast';
|
|
3
|
+
interface ToastContextType {
|
|
4
|
+
addToast: ({ title, message, type, variant, icon, onClose }: ToastProps) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useToast: () => ToastContextType;
|
|
7
|
+
interface ToastProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
declare const ToggleVariant: {
|
|
3
|
+
primary: string;
|
|
4
|
+
error: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
success: string;
|
|
7
|
+
info: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
};
|
|
10
|
+
declare const ToggleThumbShape: {
|
|
11
|
+
stadium: string;
|
|
12
|
+
rounded: string;
|
|
13
|
+
};
|
|
14
|
+
declare const ToggleSize: {
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
};
|
|
19
|
+
export type ToggleProps = {
|
|
20
|
+
customSize?: keyof typeof ToggleSize;
|
|
21
|
+
variant?: keyof typeof ToggleVariant;
|
|
22
|
+
thumbShape?: keyof typeof ToggleThumbShape;
|
|
23
|
+
label?: string;
|
|
24
|
+
wrapperClassName?: string;
|
|
25
|
+
labelClassName?: string;
|
|
26
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
+
export declare const Toggle: React.FC<ToggleProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TooltipProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
text: string;
|
|
4
|
+
showArrow?: boolean;
|
|
5
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
offset?: number;
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
animationDuration?: number;
|
|
12
|
+
delay?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@theme{ --color-success: #50C878; --color-info: #0096FF; --color-warning: #FFAC1C; --color-error: #F87171; --color-primary: #6366F1; --color-secondary: #D1D5DB; --color-primary-700: #4338CA; --color-success-700: #3C9C5A; --color-info-700: #0070C0; --color-warning-700: #CC8700; --color-error-700: #DC2626; --color-secondary-700: #9CA3AF; --color-success-30: #C2E6D3; --color-info-30: #B8DFFF; --color-warning-30: #FFE2B2; --color-error-30: #FECACA; --color-primary-30: #A6B8FF; --color-secondary-30: #E4E7EC; }@layer components{@keyframes flash-anim{0%{background-color:#a3b7c299}to{background-color:#d1dbe099}}.flash{animation:flash-anim .8s linear infinite alternate}@keyframes shimmer-anim{0%{background-position:-200% 0}to{background-position:200% 0}}.shimmer{position:relative;overflow:hidden;background:linear-gradient(90deg,#b3c3ccb3 25%,#e7ecefe6,#b3c3ccb3 75%);background-size:200% 100%;animation:shimmer-anim 2.5s infinite linear}}*{font-family:Inter,sans-serif;font-optical-sizing:auto;font-style:normal}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@source "../dist";
|