pixelon 0.9.0 → 0.9.2

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.
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export interface SupportRequestValues {
3
+ name: string;
4
+ email: string;
5
+ phone: string;
6
+ subject: string;
7
+ message: string;
8
+ }
9
+ export interface SupportRequestFormProps {
10
+ title?: string;
11
+ intro?: string;
12
+ /** La letra pequeña debajo del botón: «te respondemos al correo que dejes». */
13
+ note?: string;
14
+ /** Lo que ya se sabe de quien escribe (quien tiene cuenta no tiene por qué repetirlo). */
15
+ initial?: Partial<SupportRequestValues>;
16
+ /** Resuelve cuando la solicitud quedó guardada; rechaza (con mensaje) si no. */
17
+ onSubmit: (values: SupportRequestValues) => Promise<void>;
18
+ /** Ya se envió: se sella y enseña el acuse. El host lo persiste como quiera. */
19
+ sent?: boolean;
20
+ sentLabel?: string;
21
+ submitLabel?: string;
22
+ className?: string;
23
+ }
24
+ export declare const SupportRequestForm: React.FC<SupportRequestFormProps>;
25
+ export default SupportRequestForm;
package/dist/index.d.ts CHANGED
@@ -50,6 +50,8 @@ export { PhotoPicker } from './components/molecules/chat/StructuredContent/compo
50
50
  export type { PhotoEntry, PhotoEntryStatus, PhotoPickerProps } from './components/molecules/chat/StructuredContent/components/PhotoPicker/types';
51
51
  export { CredentialsCard } from './components/molecules/chat/StructuredContent/components/CredentialsCard/CredentialsCard';
52
52
  export type { CredentialRow, CredentialsCardProps } from './components/molecules/chat/StructuredContent/components/CredentialsCard/CredentialsCard';
53
+ export { SupportRequestForm } from './components/molecules/chat/StructuredContent/components/SupportRequestForm/SupportRequestForm';
54
+ export type { SupportRequestFormProps, SupportRequestValues } from './components/molecules/chat/StructuredContent/components/SupportRequestForm/SupportRequestForm';
53
55
  export { UserTools } from './components/molecules/chat/StructuredContent/components/UserTools/UserTools';
54
56
  export type { UserToolsConfig, UserToolItem } from './components/molecules/chat/StructuredContent/components/UserTools/types';
55
57
  export { ReactiveCrud } from './components/molecules/chat/StructuredContent/components/ReactiveCrud/ReactiveCrud';