@ory/elements-react 1.0.0-next.16 → 1.0.0-next.17

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.
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { OryCardContentProps, OryCardProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
2
+ import { OryCardContentProps, OryCardProps, OryNodeOidcButtonProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
3
3
  import * as react from 'react';
4
- import { PropsWithChildren } from 'react';
4
+ import { ElementType, PropsWithChildren } from 'react';
5
5
  import { FlowError, LoginFlow, RecoveryFlow, RegistrationFlow, SettingsFlow, VerificationFlow } from '@ory/client-fetch';
6
6
 
7
7
  declare function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
@@ -16,6 +16,15 @@ declare function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element
16
16
 
17
17
  declare function DefaultCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
18
18
 
19
+ type DefaultSocialButtonProps = OryNodeOidcButtonProps & {
20
+ showLabel?: boolean;
21
+ logos?: Record<string, ElementType>;
22
+ };
23
+ declare function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
24
+ declare namespace DefaultButtonSocial {
25
+ var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
26
+ }
27
+
19
28
  declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
20
29
  declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
21
30
  declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
@@ -64,4 +73,4 @@ type VerificationFlowContextProps = {
64
73
  };
65
74
  declare function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
66
75
 
67
- export { DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
76
+ export { DefaultButtonSocial, DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { OryCardContentProps, OryCardProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
2
+ import { OryCardContentProps, OryCardProps, OryNodeOidcButtonProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
3
3
  import * as react from 'react';
4
- import { PropsWithChildren } from 'react';
4
+ import { ElementType, PropsWithChildren } from 'react';
5
5
  import { FlowError, LoginFlow, RecoveryFlow, RegistrationFlow, SettingsFlow, VerificationFlow } from '@ory/client-fetch';
6
6
 
7
7
  declare function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
@@ -16,6 +16,15 @@ declare function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element
16
16
 
17
17
  declare function DefaultCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
18
18
 
19
+ type DefaultSocialButtonProps = OryNodeOidcButtonProps & {
20
+ showLabel?: boolean;
21
+ logos?: Record<string, ElementType>;
22
+ };
23
+ declare function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
24
+ declare namespace DefaultButtonSocial {
25
+ var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
26
+ }
27
+
19
28
  declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
20
29
  declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
21
30
  declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
@@ -64,4 +73,4 @@ type VerificationFlowContextProps = {
64
73
  };
65
74
  declare function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
66
75
 
67
- export { DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
76
+ export { DefaultButtonSocial, DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };