alope-ui 1.2.2 → 1.2.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/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/BottomNavbar/BottomNavbar.d.ts +9 -0
- package/dist/components/BottomNavbar/BottomNavbarAction.d.ts +11 -0
- package/dist/components/Button/Button.d.ts +6 -5
- package/dist/components/Card/Card.d.ts +1 -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 +1 -1
- 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/Offcanvas/Offcanvas.d.ts +7 -1
- package/dist/components/Slider/Slider.d.ts +26 -0
- package/dist/components/TextInput/TextInput.d.ts +8 -1
- package/dist/components/Timeline/Timeline.d.ts +33 -0
- package/dist/components/Toast/ToastProvider.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts +4 -3
- package/dist/main.cjs +674 -634
- package/dist/main.d.ts +17 -6
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -24
|
@@ -8,7 +8,7 @@ declare const IconColors: {
|
|
|
8
8
|
error: string;
|
|
9
9
|
warning: string;
|
|
10
10
|
primary: string;
|
|
11
|
-
|
|
11
|
+
secondary: string;
|
|
12
12
|
};
|
|
13
13
|
declare const AlertType: {
|
|
14
14
|
success: string;
|
|
@@ -16,7 +16,7 @@ declare const AlertType: {
|
|
|
16
16
|
warning: string;
|
|
17
17
|
error: string;
|
|
18
18
|
primary: string;
|
|
19
|
-
|
|
19
|
+
secondary: string;
|
|
20
20
|
};
|
|
21
21
|
export type AlertProps = {
|
|
22
22
|
title: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface BottomNavbarProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChangeValue: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const BottomNavbar: React.FC<BottomNavbarProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BottomNavbarActionProps {
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
value: string;
|
|
6
|
+
selectedValue?: string;
|
|
7
|
+
onChangeValue?: (value: string) => void;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const BottomNavbarAction: React.FC<BottomNavbarActionProps>;
|
|
@@ -15,31 +15,31 @@ export declare const ButtonVariantsMap: {
|
|
|
15
15
|
ghost: string;
|
|
16
16
|
plain: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
secondary: {
|
|
19
19
|
solid: string;
|
|
20
20
|
outline: string;
|
|
21
21
|
ghost: string;
|
|
22
22
|
plain: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
success: {
|
|
25
25
|
solid: string;
|
|
26
26
|
outline: string;
|
|
27
27
|
ghost: string;
|
|
28
28
|
plain: string;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
warning: {
|
|
31
31
|
solid: string;
|
|
32
32
|
outline: string;
|
|
33
33
|
ghost: string;
|
|
34
34
|
plain: string;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
error: {
|
|
37
37
|
solid: string;
|
|
38
38
|
outline: string;
|
|
39
39
|
ghost: string;
|
|
40
40
|
plain: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
info: {
|
|
43
43
|
solid: string;
|
|
44
44
|
outline: string;
|
|
45
45
|
ghost: string;
|
|
@@ -48,6 +48,7 @@ export declare const ButtonVariantsMap: {
|
|
|
48
48
|
};
|
|
49
49
|
export type VariantType = keyof typeof ButtonVariantsMap;
|
|
50
50
|
export type Variant = keyof typeof ButtonVariantsMap[VariantType];
|
|
51
|
+
export declare const getVariantClasses: (variant: Variant, variantType: VariantType) => string;
|
|
51
52
|
export type ButtonProps = {
|
|
52
53
|
children?: React.ReactNode | string;
|
|
53
54
|
onClick?: () => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
declare const CodeInputSize: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
};
|
|
8
|
+
export type CodeInputProps = {
|
|
9
|
+
label?: string;
|
|
10
|
+
value: string;
|
|
11
|
+
length: number;
|
|
12
|
+
labelClassName?: string;
|
|
13
|
+
onCodeChange: (code: string) => void;
|
|
14
|
+
inputSize?: keyof typeof CodeInputSize;
|
|
15
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>;
|
|
16
|
+
export declare const CodeInput: React.FC<CodeInputProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CollectionProps<T> = {
|
|
2
|
+
title?: string;
|
|
3
|
+
data: T[];
|
|
4
|
+
children?: (item: T, index: number, isActive: boolean) => React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
suffixIcon?: React.ReactNode | ((item?: T, index?: number, isActive?: boolean) => React.ReactNode);
|
|
8
|
+
activeItem?: any;
|
|
9
|
+
onChangeActive?: (item: T, index: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function Collection<T extends {
|
|
12
|
+
id: any;
|
|
13
|
+
name?: string;
|
|
14
|
+
}>({ data, title, className, wrapperClassName, children, suffixIcon, activeItem, onChangeActive, }: CollectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
|
+
declare const DatePickerColors: {
|
|
3
|
+
success: {
|
|
4
|
+
input: string;
|
|
5
|
+
outline: string;
|
|
6
|
+
header: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
day: string;
|
|
9
|
+
};
|
|
10
|
+
info: {
|
|
11
|
+
input: string;
|
|
12
|
+
outline: string;
|
|
13
|
+
header: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
day: string;
|
|
16
|
+
};
|
|
17
|
+
error: {
|
|
18
|
+
input: string;
|
|
19
|
+
outline: string;
|
|
20
|
+
header: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
day: string;
|
|
23
|
+
};
|
|
24
|
+
warning: {
|
|
25
|
+
input: string;
|
|
26
|
+
outline: string;
|
|
27
|
+
header: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
day: string;
|
|
30
|
+
};
|
|
31
|
+
default: {
|
|
32
|
+
input: string;
|
|
33
|
+
outline: string;
|
|
34
|
+
header: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
day: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type DatePickerProps = {
|
|
40
|
+
label?: string;
|
|
41
|
+
selectedDate?: Date;
|
|
42
|
+
labelClassName?: string;
|
|
43
|
+
color?: keyof typeof DatePickerColors;
|
|
44
|
+
onDateChange?: (date: Date) => void;
|
|
45
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
46
|
+
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Variant, VariantType } from '../Button/Button';
|
|
2
|
+
declare const FABSizes: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
};
|
|
7
|
+
type FABProps = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
direction?: 'horizontal' | 'vertical';
|
|
10
|
+
size?: keyof typeof FABSizes;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
variantType?: VariantType;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
onOpen: () => void;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare const FAB: ({ children, direction, size, variant, variantType, isOpen, onOpen, icon }: FABProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
type Breakpoint = 'base' | 'md' | 'lg' | 'xl' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
export type ResponsiveValue<T extends number | string> = T | Partial<Record<Breakpoint, T>>;
|
|
4
|
+
type ResponsiveCols = ResponsiveValue<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
|
|
5
|
+
type ResponsiveGap = ResponsiveValue<1 | 2 | 3 | 4 | 5 | 6>;
|
|
6
|
+
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
cols?: ResponsiveCols;
|
|
9
|
+
gap?: ResponsiveGap;
|
|
10
|
+
}
|
|
11
|
+
export declare const Grid: ({ className, cols, gap, children, style, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
type Breakpoint = "base" | "md" | "lg" | "xl" | "lg" | "xl" | "2xl";
|
|
3
|
+
export type ResponsiveValueGrid<T extends number | string> = T | Partial<Record<Breakpoint, T>>;
|
|
4
|
+
type ResponsiveColSpan = ResponsiveValueGrid<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
|
|
5
|
+
export interface GridItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
colSpan?: ResponsiveColSpan;
|
|
8
|
+
}
|
|
9
|
+
export declare const GridItem: ({ className, colSpan, children, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "lg" | "xl" | "2xl";
|
|
3
|
+
export type ResponsiveValueMasonry<T extends number | string> = T | Partial<Record<Breakpoint, T>>;
|
|
4
|
+
type ResponsiveCols = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
|
|
5
|
+
type ResponsiveGap = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6>;
|
|
6
|
+
export interface MasonryProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
cols?: ResponsiveCols;
|
|
10
|
+
gap?: ResponsiveGap;
|
|
11
|
+
}
|
|
12
|
+
export declare const Masonry: React.ForwardRefExoticComponent<MasonryProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
declare const OffcanvasWidthVariants: {
|
|
3
|
+
default: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
};
|
|
2
8
|
interface OffcanvasProps {
|
|
3
9
|
isOpen: boolean;
|
|
4
10
|
onClose: () => void;
|
|
5
11
|
title: string;
|
|
6
12
|
children: React.ReactNode;
|
|
7
13
|
position?: 'left' | 'right';
|
|
8
|
-
width?:
|
|
14
|
+
width?: keyof typeof OffcanvasWidthVariants;
|
|
9
15
|
titleClassName?: string;
|
|
10
16
|
closeButtonClassName?: string;
|
|
11
17
|
className?: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
declare const SliderColor: {
|
|
3
|
+
primary: string;
|
|
4
|
+
error: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
success: string;
|
|
7
|
+
info: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
};
|
|
10
|
+
declare const SliderSize: {
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
};
|
|
16
|
+
export type SliderProps = {
|
|
17
|
+
label?: string;
|
|
18
|
+
prefixIcon?: React.ReactNode;
|
|
19
|
+
suffixIcon?: React.ReactNode;
|
|
20
|
+
color?: keyof typeof SliderColor;
|
|
21
|
+
sliderSize?: keyof typeof SliderSize;
|
|
22
|
+
showTooltip?: boolean;
|
|
23
|
+
showMarks?: boolean;
|
|
24
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
25
|
+
export declare const Slider: React.FC<SliderProps>;
|
|
26
|
+
export {};
|
|
@@ -2,5 +2,12 @@ import { default as React, InputHTMLAttributes } from 'react';
|
|
|
2
2
|
export type TextInputProps = {
|
|
3
3
|
label?: string;
|
|
4
4
|
error?: string;
|
|
5
|
+
labelClassName?: string;
|
|
6
|
+
errorClassName?: string;
|
|
5
7
|
} & InputHTMLAttributes<HTMLInputElement>;
|
|
6
|
-
export declare const TextInput: React.
|
|
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,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 {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ToastProps } from './Toast';
|
|
3
3
|
interface ToastContextType {
|
|
4
|
-
addToast: ({ title, message, type, variant, icon, onClose }: ToastProps) => void;
|
|
4
|
+
addToast: ({ title, message, type, variant, icon, onClose, }: ToastProps) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const useToast: () => ToastContextType;
|
|
7
7
|
interface ToastProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
declare const ToggleVariant: {
|
|
3
3
|
primary: string;
|
|
4
4
|
error: string;
|
|
5
5
|
warning: string;
|
|
@@ -7,11 +7,11 @@ export declare const ToggleVariant: {
|
|
|
7
7
|
info: string;
|
|
8
8
|
secondary: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
declare const ToggleThumbShape: {
|
|
11
11
|
stadium: string;
|
|
12
12
|
rounded: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
declare const ToggleSize: {
|
|
15
15
|
sm: string;
|
|
16
16
|
md: string;
|
|
17
17
|
lg: string;
|
|
@@ -25,3 +25,4 @@ export type ToggleProps = {
|
|
|
25
25
|
labelClassName?: string;
|
|
26
26
|
} & InputHTMLAttributes<HTMLInputElement>;
|
|
27
27
|
export declare const Toggle: React.FC<ToggleProps>;
|
|
28
|
+
export {};
|