onpe-voto 0.1.9 → 0.1.10

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/index.d.mts CHANGED
@@ -1,5 +1,70 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import * as react from 'react';
3
+ import { SVGProps, ReactNode, HTMLAttributes } from 'react';
4
+
5
+ declare const IconCheck: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
6
+
7
+ declare const IconClose: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
8
+
9
+ declare const IconCloseRadius: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
10
+
11
+ declare const IconHome: ({ ...props }: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
12
+
13
+ declare const IconInfo: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
14
+
15
+ declare const IconPhone: ({ ...props }: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
16
+
17
+ declare const IconSpinnerDesktop: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
18
+
19
+ declare const IconSpinnerMobile: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
20
+
21
+ declare const IconWarning: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
22
+
23
+ declare const IconWarningNotRecommended: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
24
+
25
+ declare const IconChrome: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
26
+
27
+ declare const IconChromeColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
28
+
29
+ declare const IconEdge: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
30
+
31
+ declare const IconEdgeColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
32
+
33
+ declare const IconMozilla: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
34
+
35
+ declare const IconMozillaColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
36
+
37
+ declare const IconSafari: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
38
+
39
+ declare const IconSafariColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
40
+
41
+ declare const IconElectionsGeneral: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
42
+
43
+ declare const IconElectionsRegionalesYMunicipales: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
44
+
45
+ declare const IconLogoONPE: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
46
+
47
+ declare const IconVotoDigital: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
48
+
49
+ declare const IconAndroid: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
50
+
51
+ declare const IconApple: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
52
+
53
+ declare const IconHuawei: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
54
+
55
+ declare const IconWindow: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
56
+
57
+ declare const FaceBookIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
58
+
59
+ declare const InstagramIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
60
+
61
+ declare const TikTokIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
62
+
63
+ declare const WhatsappIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
64
+
65
+ declare const XIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
66
+
67
+ declare const YoutubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
3
68
 
4
69
  type ButtonColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
5
70
  type ButtonSize = "small" | "normal" | "large";
@@ -21,4 +86,114 @@ declare const Footer: ({ showBrowserInfo, showContactInfo, children, showFooterC
21
86
 
22
87
  declare const BrowserRecommended: () => react_jsx_runtime.JSX.Element;
23
88
 
24
- export { BrowserRecommended, Button, type ButtonProps, Footer, type FooterProps };
89
+ interface PortalProps {
90
+ children?: ReactNode;
91
+ container?: Element | DocumentFragment | null;
92
+ }
93
+ declare const Portal: ({ children, container }: PortalProps) => react.ReactPortal | null;
94
+
95
+ type OverlayColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
96
+ interface OverlayProps {
97
+ show?: boolean;
98
+ onClick?: () => void;
99
+ color?: OverlayColor;
100
+ }
101
+ declare const Overlay: ({ show, onClick, color }: OverlayProps) => react_jsx_runtime.JSX.Element;
102
+
103
+ interface ShowProps {
104
+ condition: boolean;
105
+ loadingComponent: ReactNode;
106
+ children: ReactNode;
107
+ }
108
+ declare const Show: ({ condition, loadingComponent, children }: ShowProps) => react_jsx_runtime.JSX.Element;
109
+
110
+ interface ModalProps extends HTMLAttributes<HTMLDivElement> {
111
+ isOpen: boolean;
112
+ onClose: () => void;
113
+ children: ReactNode;
114
+ whitoutBackground?: boolean;
115
+ closeButton?: boolean;
116
+ closeDisabled?: boolean;
117
+ escapeToClose?: boolean;
118
+ disableFocus?: boolean;
119
+ disableFocusRestore?: boolean;
120
+ existTabIndex?: boolean;
121
+ zIndexLevel?: number;
122
+ onCloseComplete?: () => void;
123
+ overlayColor?: "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
124
+ }
125
+ 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;
126
+
127
+ interface ModalBrowserIncompatibleProps {
128
+ isOpen: boolean;
129
+ onClose: () => void;
130
+ className?: string;
131
+ zIndexLevel?: number;
132
+ }
133
+ declare const ModalBrowserIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalBrowserIncompatibleProps) => react_jsx_runtime.JSX.Element;
134
+
135
+ interface ModalSystemIncompatibleProps {
136
+ isOpen: boolean;
137
+ onClose: () => void;
138
+ className?: string;
139
+ zIndexLevel?: number;
140
+ }
141
+ declare const ModalSystemIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalSystemIncompatibleProps) => react_jsx_runtime.JSX.Element;
142
+
143
+ interface NotRecommendedProps {
144
+ isOpenBrowserError?: boolean;
145
+ isOpenDeviceError?: boolean;
146
+ bottom?: number | string;
147
+ right?: number | string;
148
+ }
149
+ declare const NotRecommended: ({ isOpenBrowserError, isOpenDeviceError, bottom, right, }: NotRecommendedProps) => react_jsx_runtime.JSX.Element;
150
+
151
+ interface ModalConfirmProps {
152
+ isOpen: boolean;
153
+ onClose: () => void;
154
+ title: string;
155
+ message: ReactNode;
156
+ icon?: "warning" | "success";
157
+ color?: "blue" | "red";
158
+ onConfirm?: () => void;
159
+ onCancel?: () => void;
160
+ textButtonConfirm?: string;
161
+ textButtonCancel?: string;
162
+ twoButtons?: boolean;
163
+ className?: string;
164
+ zIndexLevel?: number;
165
+ withoutAutoClose?: boolean;
166
+ }
167
+ declare const ModalConfirm: ({ isOpen, onClose, withoutAutoClose, title, message, icon, color, onConfirm, onCancel, textButtonConfirm, textButtonCancel, twoButtons, className, zIndexLevel, }: ModalConfirmProps) => react_jsx_runtime.JSX.Element;
168
+
169
+ interface ModalLoadingProps {
170
+ isOpen: boolean;
171
+ onClose?: () => void;
172
+ message?: string;
173
+ className?: string;
174
+ zIndexLevel?: number;
175
+ }
176
+ declare const ModalLoading: ({ isOpen, onClose, message, className, zIndexLevel, }: ModalLoadingProps) => react_jsx_runtime.JSX.Element;
177
+
178
+ interface ModalDnieVersionsProps {
179
+ isOpen: boolean;
180
+ onClose: () => void;
181
+ className?: string;
182
+ iconDnie1: ReactNode;
183
+ iconDnie2: ReactNode;
184
+ iconDnie3: ReactNode;
185
+ zIndexLevel?: number;
186
+ }
187
+ declare const ModalDnieVersions: ({ isOpen, onClose, className, iconDnie1, iconDnie2, iconDnie3, zIndexLevel, }: ModalDnieVersionsProps) => react_jsx_runtime.JSX.Element;
188
+
189
+ interface ModalNfcProps {
190
+ isOpen: boolean;
191
+ onClose: () => void;
192
+ className?: string;
193
+ iconNfc1: ReactNode;
194
+ iconNfc2: ReactNode;
195
+ zIndexLevel?: number;
196
+ }
197
+ declare const ModalNfc: ({ isOpen, onClose, className, iconNfc1, iconNfc2: _iconNfc2, zIndexLevel, }: ModalNfcProps) => react_jsx_runtime.JSX.Element;
198
+
199
+ export { BrowserRecommended, Button, type ButtonProps, FaceBookIcon, Footer, type FooterProps, IconAndroid, IconApple, IconCheck, IconChrome, IconChromeColor, IconClose, IconCloseRadius, IconEdge, IconEdgeColor, IconElectionsGeneral, IconElectionsRegionalesYMunicipales, IconHome, IconHuawei, IconInfo, IconLogoONPE, IconMozilla, IconMozillaColor, IconPhone, IconSafari, IconSafariColor, IconSpinnerDesktop, IconSpinnerMobile, IconVotoDigital, IconWarning, IconWarningNotRecommended, IconWindow, InstagramIcon, 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, TikTokIcon, WhatsappIcon, XIcon, YoutubeIcon };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,70 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import * as react from 'react';
3
+ import { SVGProps, ReactNode, HTMLAttributes } from 'react';
4
+
5
+ declare const IconCheck: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
6
+
7
+ declare const IconClose: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
8
+
9
+ declare const IconCloseRadius: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
10
+
11
+ declare const IconHome: ({ ...props }: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
12
+
13
+ declare const IconInfo: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
14
+
15
+ declare const IconPhone: ({ ...props }: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
16
+
17
+ declare const IconSpinnerDesktop: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
18
+
19
+ declare const IconSpinnerMobile: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
20
+
21
+ declare const IconWarning: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
22
+
23
+ declare const IconWarningNotRecommended: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
24
+
25
+ declare const IconChrome: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
26
+
27
+ declare const IconChromeColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
28
+
29
+ declare const IconEdge: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
30
+
31
+ declare const IconEdgeColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
32
+
33
+ declare const IconMozilla: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
34
+
35
+ declare const IconMozillaColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
36
+
37
+ declare const IconSafari: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
38
+
39
+ declare const IconSafariColor: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
40
+
41
+ declare const IconElectionsGeneral: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
42
+
43
+ declare const IconElectionsRegionalesYMunicipales: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
44
+
45
+ declare const IconLogoONPE: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
46
+
47
+ declare const IconVotoDigital: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
48
+
49
+ declare const IconAndroid: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
50
+
51
+ declare const IconApple: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
52
+
53
+ declare const IconHuawei: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
54
+
55
+ declare const IconWindow: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
56
+
57
+ declare const FaceBookIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
58
+
59
+ declare const InstagramIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
60
+
61
+ declare const TikTokIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
62
+
63
+ declare const WhatsappIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
64
+
65
+ declare const XIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
66
+
67
+ declare const YoutubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
3
68
 
4
69
  type ButtonColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
5
70
  type ButtonSize = "small" | "normal" | "large";
@@ -21,4 +86,114 @@ declare const Footer: ({ showBrowserInfo, showContactInfo, children, showFooterC
21
86
 
22
87
  declare const BrowserRecommended: () => react_jsx_runtime.JSX.Element;
23
88
 
24
- export { BrowserRecommended, Button, type ButtonProps, Footer, type FooterProps };
89
+ interface PortalProps {
90
+ children?: ReactNode;
91
+ container?: Element | DocumentFragment | null;
92
+ }
93
+ declare const Portal: ({ children, container }: PortalProps) => react.ReactPortal | null;
94
+
95
+ type OverlayColor = "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
96
+ interface OverlayProps {
97
+ show?: boolean;
98
+ onClick?: () => void;
99
+ color?: OverlayColor;
100
+ }
101
+ declare const Overlay: ({ show, onClick, color }: OverlayProps) => react_jsx_runtime.JSX.Element;
102
+
103
+ interface ShowProps {
104
+ condition: boolean;
105
+ loadingComponent: ReactNode;
106
+ children: ReactNode;
107
+ }
108
+ declare const Show: ({ condition, loadingComponent, children }: ShowProps) => react_jsx_runtime.JSX.Element;
109
+
110
+ interface ModalProps extends HTMLAttributes<HTMLDivElement> {
111
+ isOpen: boolean;
112
+ onClose: () => void;
113
+ children: ReactNode;
114
+ whitoutBackground?: boolean;
115
+ closeButton?: boolean;
116
+ closeDisabled?: boolean;
117
+ escapeToClose?: boolean;
118
+ disableFocus?: boolean;
119
+ disableFocusRestore?: boolean;
120
+ existTabIndex?: boolean;
121
+ zIndexLevel?: number;
122
+ onCloseComplete?: () => void;
123
+ overlayColor?: "blue" | "skyblue" | "skyblue-light" | "yellow" | "light-skyblue" | "gray" | "gray-light" | "gray-extra-light" | "red" | "dark-gray" | "green" | "yellow-light" | "primary";
124
+ }
125
+ 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;
126
+
127
+ interface ModalBrowserIncompatibleProps {
128
+ isOpen: boolean;
129
+ onClose: () => void;
130
+ className?: string;
131
+ zIndexLevel?: number;
132
+ }
133
+ declare const ModalBrowserIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalBrowserIncompatibleProps) => react_jsx_runtime.JSX.Element;
134
+
135
+ interface ModalSystemIncompatibleProps {
136
+ isOpen: boolean;
137
+ onClose: () => void;
138
+ className?: string;
139
+ zIndexLevel?: number;
140
+ }
141
+ declare const ModalSystemIncompatible: ({ isOpen, onClose, className, zIndexLevel, }: ModalSystemIncompatibleProps) => react_jsx_runtime.JSX.Element;
142
+
143
+ interface NotRecommendedProps {
144
+ isOpenBrowserError?: boolean;
145
+ isOpenDeviceError?: boolean;
146
+ bottom?: number | string;
147
+ right?: number | string;
148
+ }
149
+ declare const NotRecommended: ({ isOpenBrowserError, isOpenDeviceError, bottom, right, }: NotRecommendedProps) => react_jsx_runtime.JSX.Element;
150
+
151
+ interface ModalConfirmProps {
152
+ isOpen: boolean;
153
+ onClose: () => void;
154
+ title: string;
155
+ message: ReactNode;
156
+ icon?: "warning" | "success";
157
+ color?: "blue" | "red";
158
+ onConfirm?: () => void;
159
+ onCancel?: () => void;
160
+ textButtonConfirm?: string;
161
+ textButtonCancel?: string;
162
+ twoButtons?: boolean;
163
+ className?: string;
164
+ zIndexLevel?: number;
165
+ withoutAutoClose?: boolean;
166
+ }
167
+ declare const ModalConfirm: ({ isOpen, onClose, withoutAutoClose, title, message, icon, color, onConfirm, onCancel, textButtonConfirm, textButtonCancel, twoButtons, className, zIndexLevel, }: ModalConfirmProps) => react_jsx_runtime.JSX.Element;
168
+
169
+ interface ModalLoadingProps {
170
+ isOpen: boolean;
171
+ onClose?: () => void;
172
+ message?: string;
173
+ className?: string;
174
+ zIndexLevel?: number;
175
+ }
176
+ declare const ModalLoading: ({ isOpen, onClose, message, className, zIndexLevel, }: ModalLoadingProps) => react_jsx_runtime.JSX.Element;
177
+
178
+ interface ModalDnieVersionsProps {
179
+ isOpen: boolean;
180
+ onClose: () => void;
181
+ className?: string;
182
+ iconDnie1: ReactNode;
183
+ iconDnie2: ReactNode;
184
+ iconDnie3: ReactNode;
185
+ zIndexLevel?: number;
186
+ }
187
+ declare const ModalDnieVersions: ({ isOpen, onClose, className, iconDnie1, iconDnie2, iconDnie3, zIndexLevel, }: ModalDnieVersionsProps) => react_jsx_runtime.JSX.Element;
188
+
189
+ interface ModalNfcProps {
190
+ isOpen: boolean;
191
+ onClose: () => void;
192
+ className?: string;
193
+ iconNfc1: ReactNode;
194
+ iconNfc2: ReactNode;
195
+ zIndexLevel?: number;
196
+ }
197
+ declare const ModalNfc: ({ isOpen, onClose, className, iconNfc1, iconNfc2: _iconNfc2, zIndexLevel, }: ModalNfcProps) => react_jsx_runtime.JSX.Element;
198
+
199
+ export { BrowserRecommended, Button, type ButtonProps, FaceBookIcon, Footer, type FooterProps, IconAndroid, IconApple, IconCheck, IconChrome, IconChromeColor, IconClose, IconCloseRadius, IconEdge, IconEdgeColor, IconElectionsGeneral, IconElectionsRegionalesYMunicipales, IconHome, IconHuawei, IconInfo, IconLogoONPE, IconMozilla, IconMozillaColor, IconPhone, IconSafari, IconSafariColor, IconSpinnerDesktop, IconSpinnerMobile, IconVotoDigital, IconWarning, IconWarningNotRecommended, IconWindow, InstagramIcon, 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, TikTokIcon, WhatsappIcon, XIcon, YoutubeIcon };