@votodigital-onpeui/react 0.1.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/dist/chunk-4CXYX4SI.mjs +410 -0
- package/dist/chunk-4CXYX4SI.mjs.map +1 -0
- package/dist/chunk-VPOCM2HP.mjs +1038 -0
- package/dist/chunk-VPOCM2HP.mjs.map +1 -0
- package/dist/chunk-WZWNCN4H.mjs +878 -0
- package/dist/chunk-WZWNCN4H.mjs.map +1 -0
- package/dist/components.d.mts +135 -0
- package/dist/components.d.ts +135 -0
- package/dist/components.js +1456 -0
- package/dist/components.js.map +1 -0
- package/dist/components.mjs +4 -0
- package/dist/components.mjs.map +1 -0
- package/dist/icons.d.mts +68 -0
- package/dist/icons.d.ts +68 -0
- package/dist/icons.js +1314 -0
- package/dist/icons.js.map +1 -0
- package/dist/icons.mjs +4 -0
- package/dist/icons.mjs.map +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2359 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
type ButtonColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
|
|
6
|
+
type ButtonSize = "small" | "normal" | "large";
|
|
7
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
color: ButtonColor;
|
|
9
|
+
title: string;
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
}
|
|
12
|
+
declare function Button({ color, title, size, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
showBrowserInfo?: boolean;
|
|
16
|
+
showContactInfo?: boolean;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
isDevelopment?: boolean;
|
|
19
|
+
showFooterContent?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const Footer: ({ showBrowserInfo, showContactInfo, children, showFooterContent, isDevelopment, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare const BrowserRecommended: () => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface PortalProps {
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
container?: Element | DocumentFragment | null;
|
|
28
|
+
}
|
|
29
|
+
declare const Portal: ({ children, container }: PortalProps) => react.ReactPortal | null;
|
|
30
|
+
|
|
31
|
+
type OverlayColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
|
|
32
|
+
interface OverlayProps {
|
|
33
|
+
show?: boolean;
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
color?: OverlayColor;
|
|
36
|
+
}
|
|
37
|
+
declare const Overlay: ({ show, onClick, color }: OverlayProps) => react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
interface ShowProps {
|
|
40
|
+
condition: boolean;
|
|
41
|
+
loadingComponent: ReactNode;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
declare const Show: ({ condition, loadingComponent, children }: ShowProps) => react_jsx_runtime.JSX.Element;
|
|
45
|
+
|
|
46
|
+
interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
47
|
+
isOpen: boolean;
|
|
48
|
+
onClose: () => void;
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
whitoutBackground?: boolean;
|
|
51
|
+
closeButton?: boolean;
|
|
52
|
+
closeDisabled?: boolean;
|
|
53
|
+
escapeToClose?: boolean;
|
|
54
|
+
disableFocus?: boolean;
|
|
55
|
+
disableFocusRestore?: boolean;
|
|
56
|
+
existTabIndex?: boolean;
|
|
57
|
+
zIndexLevel?: number;
|
|
58
|
+
onCloseComplete?: () => void;
|
|
59
|
+
overlayColor?: "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
|
|
60
|
+
}
|
|
61
|
+
declare const Modal: ({ isOpen, onClose, children, whitoutBackground, closeButton, closeDisabled, escapeToClose, disableFocus, disableFocusRestore, existTabIndex, zIndexLevel, onCloseComplete, overlayColor: _overlayColor, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
62
|
+
|
|
63
|
+
interface ModalBrowserIncompatibleProps {
|
|
64
|
+
isOpen: boolean;
|
|
65
|
+
onClose: () => void;
|
|
66
|
+
className?: string;
|
|
67
|
+
zIndexLevel?: number;
|
|
68
|
+
}
|
|
69
|
+
declare const ModalBrowserIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalBrowserIncompatibleProps) => react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
interface ModalSystemIncompatibleProps {
|
|
72
|
+
isOpen: boolean;
|
|
73
|
+
onClose: () => void;
|
|
74
|
+
className?: string;
|
|
75
|
+
zIndexLevel?: number;
|
|
76
|
+
}
|
|
77
|
+
declare const ModalSystemIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalSystemIncompatibleProps) => react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
79
|
+
interface NotRecommendedProps {
|
|
80
|
+
isOpenBrowserError?: boolean;
|
|
81
|
+
isOpenDeviceError?: boolean;
|
|
82
|
+
bottom?: number | string;
|
|
83
|
+
right?: number | string;
|
|
84
|
+
}
|
|
85
|
+
declare const NotRecommended: ({ isOpenBrowserError, isOpenDeviceError, bottom, right, }: NotRecommendedProps) => react_jsx_runtime.JSX.Element;
|
|
86
|
+
|
|
87
|
+
interface ModalConfirmProps {
|
|
88
|
+
isOpen: boolean;
|
|
89
|
+
onClose: () => void;
|
|
90
|
+
title: string;
|
|
91
|
+
message: ReactNode;
|
|
92
|
+
icon?: "warning" | "success";
|
|
93
|
+
color?: "blue" | "red";
|
|
94
|
+
onConfirm?: () => void;
|
|
95
|
+
onCancel?: () => void;
|
|
96
|
+
textButtonConfirm?: string;
|
|
97
|
+
textButtonCancel?: string;
|
|
98
|
+
twoButtons?: boolean;
|
|
99
|
+
className?: string;
|
|
100
|
+
zIndexLevel?: number;
|
|
101
|
+
withoutAutoClose?: boolean;
|
|
102
|
+
}
|
|
103
|
+
declare const ModalConfirm: ({ isOpen, onClose, withoutAutoClose, title, message, icon, color, onConfirm, onCancel, textButtonConfirm, textButtonCancel, twoButtons, className, zIndexLevel, }: ModalConfirmProps) => react_jsx_runtime.JSX.Element;
|
|
104
|
+
|
|
105
|
+
interface ModalLoadingProps {
|
|
106
|
+
isOpen: boolean;
|
|
107
|
+
onClose?: () => void;
|
|
108
|
+
message?: string;
|
|
109
|
+
className?: string;
|
|
110
|
+
zIndexLevel?: number;
|
|
111
|
+
}
|
|
112
|
+
declare const ModalLoading: ({ isOpen, onClose, message, className, zIndexLevel, }: ModalLoadingProps) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
interface ModalDnieVersionsProps {
|
|
115
|
+
isOpen: boolean;
|
|
116
|
+
onClose: () => void;
|
|
117
|
+
className?: string;
|
|
118
|
+
iconDnie1: ReactNode;
|
|
119
|
+
iconDnie2: ReactNode;
|
|
120
|
+
iconDnie3: ReactNode;
|
|
121
|
+
zIndexLevel?: number;
|
|
122
|
+
}
|
|
123
|
+
declare const ModalDnieVersions: ({ isOpen, onClose, className, iconDnie1, iconDnie2, iconDnie3, zIndexLevel, }: ModalDnieVersionsProps) => react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
125
|
+
interface ModalNfcProps {
|
|
126
|
+
isOpen: boolean;
|
|
127
|
+
onClose: () => void;
|
|
128
|
+
className?: string;
|
|
129
|
+
iconNfc1: ReactNode;
|
|
130
|
+
iconNfc2: ReactNode;
|
|
131
|
+
zIndexLevel?: number;
|
|
132
|
+
}
|
|
133
|
+
declare const ModalNfc: ({ isOpen, onClose, className, iconNfc1, iconNfc2: _iconNfc2, zIndexLevel, }: ModalNfcProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
export { BrowserRecommended, Button, type ButtonProps, Footer, type FooterProps, Modal, ModalBrowserIncompatible, type ModalBrowserIncompatibleProps, ModalConfirm, type ModalConfirmProps, ModalDnieVersions, type ModalDnieVersionsProps, ModalLoading, type ModalLoadingProps, ModalNfc, type ModalNfcProps, type ModalProps, ModalSystemIncompatible, type ModalSystemIncompatibleProps, NotRecommended, type NotRecommendedProps, Overlay, type OverlayProps, Portal, type PortalProps, Show, type ShowProps };
|