@esperanca-ui/componentes 2.14.23 → 2.15.0
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 +11 -14
- package/README.md +2 -3
- package/dist/componentes-esperanca.es.js +6704 -7229
- package/dist/componentes-esperanca.es.js.map +1 -1
- package/dist/componentes-esperanca.umd.js +55 -55
- package/dist/componentes-esperanca.umd.js.map +1 -1
- package/dist/components/Background/Background.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Charts/ChartPreferencesMenu.d.ts +0 -1
- package/dist/components/Charts/chartTypes.d.ts +0 -1
- package/dist/components/GanttChart/GanttChart.d.ts +0 -10
- package/dist/components/PageHeader/PageHeader.d.ts +1 -2
- package/dist/components/Table/DataTable.d.ts +8 -1
- package/dist/components/TaskCalendar/TaskCalendar.d.ts +0 -17
- package/dist/index.d.ts +3 -7
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/components/LoginForm/LoginForm.d.ts +0 -31
- package/dist/components/LoginScreen/LoginScreen.d.ts +0 -66
- package/dist/hooks/useHorizontalDragScroll.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esperanca-ui/componentes",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"dev": "node node_modules/vite/bin/vite.js",
|
|
23
|
-
"dev:docs": "node
|
|
23
|
+
"dev:docs": "node node_modules/vite/bin/vite.js --config vite.config.docs.ts --host",
|
|
24
24
|
"build": "node node_modules/typescript/bin/tsc && node node_modules/vite/bin/vite.js build",
|
|
25
|
-
"build:docs": "node
|
|
25
|
+
"build:docs": "node node_modules/vite/bin/vite.js build --config vite.config.docs.ts",
|
|
26
26
|
"preview": "node node_modules/vite/bin/vite.js preview",
|
|
27
|
-
"preview:docs": "node
|
|
27
|
+
"preview:docs": "node node_modules/vite/bin/vite.js preview --config vite.config.docs.ts --host",
|
|
28
28
|
"pack-lib": "npm run build && npm pack"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1,66 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|