@esperanca-ui/componentes 2.14.21 → 2.14.22
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/COMPONENTS.md +3 -1
- package/README.md +3 -2
- package/dist/componentes-esperanca.es.js +6470 -6005
- package/dist/componentes-esperanca.es.js.map +1 -1
- package/dist/componentes-esperanca.umd.js +52 -52
- package/dist/componentes-esperanca.umd.js.map +1 -1
- package/dist/components/LoginForm/LoginForm.d.ts +31 -0
- package/dist/components/LoginScreen/LoginScreen.d.ts +66 -0
- package/dist/components/TaskCalendar/TaskCalendar.d.ts +7 -0
- package/dist/hooks/useHorizontalDragScroll.d.ts +17 -0
- package/dist/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps } from '../Card/Card';
|
|
3
|
+
|
|
4
|
+
export interface LoginFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSubmit'> {
|
|
5
|
+
logo?: React.ReactNode;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
error?: React.ReactNode;
|
|
10
|
+
emailLabel?: React.ReactNode;
|
|
11
|
+
emailPlaceholder?: string;
|
|
12
|
+
emailValue?: string;
|
|
13
|
+
onEmailChange?: (value: string) => void;
|
|
14
|
+
passwordLabel?: React.ReactNode;
|
|
15
|
+
passwordPlaceholder?: string;
|
|
16
|
+
passwordValue?: string;
|
|
17
|
+
onPasswordChange?: (value: string) => void;
|
|
18
|
+
showRememberMe?: boolean;
|
|
19
|
+
rememberMe?: boolean;
|
|
20
|
+
rememberMeLabel?: React.ReactNode;
|
|
21
|
+
onRememberMeChange?: (checked: boolean) => void;
|
|
22
|
+
forgotPasswordAction?: React.ReactNode;
|
|
23
|
+
submitLabel?: React.ReactNode;
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
loadingText?: React.ReactNode;
|
|
26
|
+
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
27
|
+
footer?: React.ReactNode;
|
|
28
|
+
support?: React.ReactNode;
|
|
29
|
+
cardVariant?: CardProps['variant'];
|
|
30
|
+
}
|
|
31
|
+
export declare function LoginForm({ logo, badge, title, description, error, emailLabel, emailPlaceholder, emailValue, onEmailChange, passwordLabel, passwordPlaceholder, passwordValue, onPasswordChange, showRememberMe, rememberMe, rememberMeLabel, onRememberMeChange, forgotPasswordAction, submitLabel, isLoading, loadingText, onSubmit, footer, support, cardVariant, className, children, style, ...props }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps } from '../Card/Card';
|
|
3
|
+
|
|
4
|
+
export type LoginScreenStep = 'credentials' | 'two-factor';
|
|
5
|
+
export type LoginScreenVariant = 'split' | 'compact';
|
|
6
|
+
export interface LoginScreenFeature {
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface LoginScreenProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSubmit'> {
|
|
12
|
+
brand?: React.ReactNode;
|
|
13
|
+
brandMark?: React.ReactNode;
|
|
14
|
+
eyebrow?: React.ReactNode;
|
|
15
|
+
badge?: React.ReactNode;
|
|
16
|
+
title?: React.ReactNode;
|
|
17
|
+
description?: React.ReactNode;
|
|
18
|
+
panelTitle?: React.ReactNode;
|
|
19
|
+
panelDescription?: React.ReactNode;
|
|
20
|
+
step?: LoginScreenStep;
|
|
21
|
+
variant?: LoginScreenVariant;
|
|
22
|
+
cardVariant?: CardProps['variant'];
|
|
23
|
+
status?: React.ReactNode;
|
|
24
|
+
error?: React.ReactNode;
|
|
25
|
+
emailLabel?: React.ReactNode;
|
|
26
|
+
emailPlaceholder?: string;
|
|
27
|
+
emailValue?: string;
|
|
28
|
+
onEmailChange?: (value: string) => void;
|
|
29
|
+
passwordLabel?: React.ReactNode;
|
|
30
|
+
passwordPlaceholder?: string;
|
|
31
|
+
passwordValue?: string;
|
|
32
|
+
onPasswordChange?: (value: string) => void;
|
|
33
|
+
showRememberMe?: boolean;
|
|
34
|
+
rememberMe?: boolean;
|
|
35
|
+
rememberMeLabel?: React.ReactNode;
|
|
36
|
+
onRememberMeChange?: (checked: boolean) => void;
|
|
37
|
+
forgotPasswordAction?: React.ReactNode;
|
|
38
|
+
submitLabel?: React.ReactNode;
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
loadingText?: React.ReactNode;
|
|
41
|
+
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
42
|
+
secondaryAction?: React.ReactNode;
|
|
43
|
+
footer?: React.ReactNode;
|
|
44
|
+
support?: React.ReactNode;
|
|
45
|
+
ssoActions?: React.ReactNode;
|
|
46
|
+
ssoLabel?: React.ReactNode;
|
|
47
|
+
twoFactorTitle?: React.ReactNode;
|
|
48
|
+
twoFactorDescription?: React.ReactNode;
|
|
49
|
+
verificationHint?: React.ReactNode;
|
|
50
|
+
codeLabel?: React.ReactNode;
|
|
51
|
+
codePlaceholder?: string;
|
|
52
|
+
codeValue?: string;
|
|
53
|
+
onCodeChange?: (value: string) => void;
|
|
54
|
+
codeLength?: number;
|
|
55
|
+
codeInputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode'];
|
|
56
|
+
showTrustDevice?: boolean;
|
|
57
|
+
trustDevice?: boolean;
|
|
58
|
+
trustDeviceLabel?: React.ReactNode;
|
|
59
|
+
onTrustDeviceChange?: (checked: boolean) => void;
|
|
60
|
+
recoveryAction?: React.ReactNode;
|
|
61
|
+
onBack?: () => void;
|
|
62
|
+
backLabel?: React.ReactNode;
|
|
63
|
+
highlights?: LoginScreenFeature[];
|
|
64
|
+
hero?: React.ReactNode;
|
|
65
|
+
}
|
|
66
|
+
export declare function LoginScreen({ brand, brandMark, eyebrow, badge, title, description, panelTitle, panelDescription, step, variant, cardVariant, status, error, emailLabel, emailPlaceholder, emailValue, onEmailChange, passwordLabel, passwordPlaceholder, passwordValue, onPasswordChange, showRememberMe, rememberMe, rememberMeLabel, onRememberMeChange, forgotPasswordAction, submitLabel, isLoading, loadingText, onSubmit, secondaryAction, footer, support, ssoActions, ssoLabel, twoFactorTitle, twoFactorDescription, verificationHint, codeLabel, codePlaceholder, codeValue, onCodeChange, codeLength, codeInputMode, showTrustDevice, trustDevice, trustDeviceLabel, onTrustDeviceChange, recoveryAction, onBack, backLabel, highlights, hero, className, children, style, ...props }: LoginScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,6 +23,10 @@ export interface TaskCalendarItem {
|
|
|
23
23
|
project?: React.ReactNode;
|
|
24
24
|
progress?: number;
|
|
25
25
|
tags?: React.ReactNode[];
|
|
26
|
+
hours?: React.ReactNode;
|
|
27
|
+
monthTitle?: React.ReactNode;
|
|
28
|
+
monthAssignee?: React.ReactNode;
|
|
29
|
+
monthProject?: React.ReactNode;
|
|
26
30
|
}
|
|
27
31
|
export interface TaskCalendarRenderContext {
|
|
28
32
|
date: Date;
|
|
@@ -53,5 +57,8 @@ export interface TaskCalendarProps extends Omit<CardProps, 'children'> {
|
|
|
53
57
|
renderTask?: (task: TaskCalendarItem, context: TaskCalendarRenderContext) => React.ReactNode;
|
|
54
58
|
showViewSwitcher?: boolean;
|
|
55
59
|
views?: TaskCalendarView[];
|
|
60
|
+
dragToScroll?: boolean;
|
|
61
|
+
monthTaskVariant?: 'stacked' | 'badge';
|
|
62
|
+
monthDayMinHeight?: number | string;
|
|
56
63
|
}
|
|
57
64
|
export declare const TaskCalendar: React.ForwardRefExoticComponent<TaskCalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PointerEventHandler, RefObject } from 'react';
|
|
2
|
+
|
|
3
|
+
interface UseHorizontalDragScrollOptions {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
}
|
|
7
|
+
interface DragScrollHandlers<T extends HTMLElement> {
|
|
8
|
+
ref: RefObject<T>;
|
|
9
|
+
isDragging: boolean;
|
|
10
|
+
onPointerDown: PointerEventHandler<T>;
|
|
11
|
+
onPointerMove: PointerEventHandler<T>;
|
|
12
|
+
onPointerUp: PointerEventHandler<T>;
|
|
13
|
+
onPointerCancel: PointerEventHandler<T>;
|
|
14
|
+
onPointerLeave: PointerEventHandler<T>;
|
|
15
|
+
}
|
|
16
|
+
export declare function useHorizontalDragScroll<T extends HTMLElement = HTMLDivElement>({ enabled, threshold, }?: UseHorizontalDragScrollOptions): DragScrollHandlers<T>;
|
|
17
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export { ConfirmDialog } from './components/ConfirmDialog/ConfirmDialog';
|
|
|
28
28
|
export { ToastProvider, useToast } from './components/Toast/Toast';
|
|
29
29
|
export { Tooltip } from './components/Tooltip/Tooltip';
|
|
30
30
|
export { Loading } from './components/Loading/Loading';
|
|
31
|
+
export { LoginForm } from './components/LoginForm/LoginForm';
|
|
32
|
+
export { LoginScreen } from './components/LoginScreen/LoginScreen';
|
|
31
33
|
export { Portal } from './components/Portal/Portal';
|
|
32
34
|
export { useTheme } from './hooks/useTheme';
|
|
33
35
|
export { useKeyboardNavigation } from './hooks/useKeyboardNavigation';
|
|
@@ -62,6 +64,8 @@ export type { ConfirmDialogProps } from './components/ConfirmDialog/ConfirmDialo
|
|
|
62
64
|
export type { ToastProps } from './components/Toast/Toast';
|
|
63
65
|
export type { TooltipProps } from './components/Tooltip/Tooltip';
|
|
64
66
|
export type { LoadingProps } from './components/Loading/Loading';
|
|
67
|
+
export type { LoginFormProps } from './components/LoginForm/LoginForm';
|
|
68
|
+
export type { LoginScreenFeature, LoginScreenProps, LoginScreenStep, LoginScreenVariant, } from './components/LoginScreen/LoginScreen';
|
|
65
69
|
export type { PortalProps } from './components/Portal/Portal';
|
|
66
70
|
export type { SidebarProps, SidebarItem, SidebarSection, SidebarIconMap, SidebarIconName } from './components/Sidebar/Sidebar';
|
|
67
71
|
export type { Column, DataTableProps, PaginationProps, SortDirection } from './components/Table/DataTable';
|