@asgardeo/react 0.2.3 → 0.2.4

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.
Files changed (62) hide show
  1. package/dist/esm/index.js +167 -40
  2. package/dist/esm/index.js.map +1 -1
  3. package/dist/esm/types/components/SignIn/fragments/EmailOtp.d.ts +1 -1
  4. package/package.json +5 -3
  5. package/dist/cjs/index.js +0 -45178
  6. package/dist/cjs/index.js.map +0 -1
  7. package/dist/cjs/types/components/SignIn/SignIn.d.ts +0 -31
  8. package/dist/cjs/types/components/SignIn/fragments/BasicAuth.d.ts +0 -35
  9. package/dist/cjs/types/components/SignIn/fragments/EmailOtp.d.ts +0 -32
  10. package/dist/cjs/types/components/SignIn/fragments/IdentifierFirst.d.ts +0 -35
  11. package/dist/cjs/types/components/SignIn/fragments/LoginOptionsBox.d.ts +0 -30
  12. package/dist/cjs/types/components/SignIn/fragments/SmsOtp.d.ts +0 -21
  13. package/dist/cjs/types/components/SignIn/fragments/Totp.d.ts +0 -33
  14. package/dist/cjs/types/components/SignInButton/SignInButton.d.ts +0 -29
  15. package/dist/cjs/types/components/SignOutButton/SignOutButton.d.ts +0 -27
  16. package/dist/cjs/types/components/SignedIn/SignedIn.d.ts +0 -29
  17. package/dist/cjs/types/components/SignedOut/SignedOut.d.ts +0 -29
  18. package/dist/cjs/types/components/public-components.d.ts +0 -22
  19. package/dist/cjs/types/contexts/asgardeo-context.d.ts +0 -21
  20. package/dist/cjs/types/contexts/branding-preference-context.d.ts +0 -21
  21. package/dist/cjs/types/contexts/i18n-context.d.ts +0 -21
  22. package/dist/cjs/types/hooks/use-authentication.d.ts +0 -27
  23. package/dist/cjs/types/hooks/use-config.d.ts +0 -23
  24. package/dist/cjs/types/hooks/use-on.d.ts +0 -20
  25. package/dist/cjs/types/hooks/use-translations.d.ts +0 -33
  26. package/dist/cjs/types/index.d.ts +0 -22
  27. package/dist/cjs/types/models/asgardeo-provider-props.d.ts +0 -24
  28. package/dist/cjs/types/models/auth-context.d.ts +0 -43
  29. package/dist/cjs/types/models/basic-auth-props.d.ts +0 -29
  30. package/dist/cjs/types/models/branding-preference-provider-props.d.ts +0 -22
  31. package/dist/cjs/types/models/email-otp-props.d.ts +0 -26
  32. package/dist/cjs/types/models/i18n.d.ts +0 -34
  33. package/dist/cjs/types/models/jwt-verify-options.d.ts +0 -25
  34. package/dist/cjs/types/models/login-options-box-props.d.ts +0 -24
  35. package/dist/cjs/types/models/public-models.d.ts +0 -19
  36. package/dist/cjs/types/models/sign-in.d.ts +0 -49
  37. package/dist/cjs/types/models/signed-props.d.ts +0 -22
  38. package/dist/cjs/types/models/totp-props.d.ts +0 -26
  39. package/dist/cjs/types/models/use-authentication.d.ts +0 -29
  40. package/dist/cjs/types/models/use-config.d.ts +0 -22
  41. package/dist/cjs/types/models/use-on.d.ts +0 -31
  42. package/dist/cjs/types/models/use-translations.d.ts +0 -22
  43. package/dist/cjs/types/oxygen-ui-react-auth-components/SignIn/SignIn.d.ts +0 -79
  44. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInAlert/SignInAlert.d.ts +0 -37
  45. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInButton/SignInButton.d.ts +0 -27
  46. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInDivider/SignInDivider.d.ts +0 -26
  47. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInFooter/SignInFooter.d.ts +0 -29
  48. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInImage/SignInImage.d.ts +0 -23
  49. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInLink/SignInLink.d.ts +0 -25
  50. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInPaper/SignInPaper.d.ts +0 -26
  51. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInPinInput/SignInPinInput.d.ts +0 -30
  52. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInTextField/SignInTextField.d.ts +0 -26
  53. package/dist/cjs/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts +0 -32
  54. package/dist/cjs/types/oxygen-ui-react-auth-components/index.d.ts +0 -19
  55. package/dist/cjs/types/oxygen-ui-react-auth-components/models/component.d.ts +0 -27
  56. package/dist/cjs/types/providers/AsgardeoProvider.d.ts +0 -34
  57. package/dist/cjs/types/providers/BrandingPreferenceProvider.d.ts +0 -32
  58. package/dist/cjs/types/providers/I18nProvider.d.ts +0 -33
  59. package/dist/cjs/types/theme/generate-theme-sign-in.d.ts +0 -28
  60. package/dist/cjs/types/theme/generate-theme.d.ts +0 -30
  61. package/dist/cjs/types/utils/crypto-utils.d.ts +0 -52
  62. package/dist/cjs/types/utils/session-store.d.ts +0 -25
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { Authenticator, BrandingProps } from '@asgardeo/js';
19
- import { ReactElement } from 'react';
20
- import { AlertType } from './sign-in';
21
- interface BasicAuthProps {
22
- alert?: AlertType;
23
- authenticator: Authenticator;
24
- brandingProps?: BrandingProps;
25
- handleAuthenticate: Function;
26
- renderLoginOptions?: ReactElement[];
27
- showSelfSignUp: boolean;
28
- }
29
- export default BasicAuthProps;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { BrandingProps } from '@asgardeo/js';
19
- interface BrandingPreferenceProviderProps {
20
- branding?: BrandingProps;
21
- }
22
- export default BrandingPreferenceProviderProps;
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { Authenticator, BrandingProps } from '@asgardeo/js';
19
- import { AlertType } from './sign-in';
20
- interface EmailOtpProps {
21
- alert?: AlertType;
22
- authenticator?: Authenticator;
23
- brandingProps?: BrandingProps;
24
- handleAuthenticate: Function;
25
- }
26
- export default EmailOtpProps;
@@ -1,34 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { BrandingPreferenceTextProps, ScreenType, TextObject } from '@asgardeo/js';
19
- export type I18nLocalization = {
20
- [key in ScreenType]: TextObject;
21
- } | {};
22
- export interface SetTranslationsProps {
23
- componentLocaleOverride?: string;
24
- componentTextOverrides?: BrandingPreferenceTextProps;
25
- screen?: ScreenType;
26
- }
27
- export interface I18n {
28
- setTranslations: (props: SetTranslationsProps) => Promise<boolean>;
29
- text: I18nLocalization;
30
- }
31
- export interface I18nProviderProps {
32
- providerLocaleOverride?: string;
33
- providerTextOverrides?: BrandingPreferenceTextProps;
34
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- interface JwtVerifyOptions {
19
- algorithms: string[];
20
- audience: string;
21
- clockTolerance: number;
22
- issuer: string;
23
- subject: string;
24
- }
25
- export default JwtVerifyOptions;
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- interface LoginOptionsBoxProps {
19
- displayName: string;
20
- handleOnClick: () => void;
21
- isAuthLoading: boolean;
22
- socialName: string;
23
- }
24
- export default LoginOptionsBoxProps;
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export type { UIAuthConfig } from '@asgardeo/js';
19
- export { Hooks } from './use-on';
@@ -1,49 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { BrandingProps } from '@asgardeo/js';
19
- import { ReactElement } from 'react';
20
- export interface SignInProps {
21
- basicAuthChildren?: ReactElement;
22
- brandingProps?: BrandingProps;
23
- emailOtpChildren?: ReactElement;
24
- identifierFirstChildren?: ReactElement;
25
- showFooter?: boolean;
26
- showLogo?: boolean;
27
- showSignUp?: boolean;
28
- smsOtpChildren?: ReactElement;
29
- totpChildren?: ReactElement;
30
- }
31
- export type AlertType = {
32
- alertType: {
33
- error?: boolean;
34
- info?: never;
35
- warning?: never;
36
- } | {
37
- error?: never;
38
- info?: boolean;
39
- warning?: never;
40
- } | {
41
- error?: never;
42
- infor?: never;
43
- warning?: boolean;
44
- };
45
- key: string;
46
- };
47
- export interface SignInButtonProps extends SignInProps {
48
- customComponent?: ReactElement;
49
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { ReactElement } from 'react';
19
- interface SignedProps {
20
- fallback?: ReactElement;
21
- }
22
- export default SignedProps;
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { Authenticator, BrandingProps } from '@asgardeo/js';
19
- import { AlertType } from './sign-in';
20
- interface TotpProps {
21
- alert?: AlertType;
22
- authenticator: Authenticator;
23
- brandingProps?: BrandingProps;
24
- handleAuthenticate: Function;
25
- }
26
- export default TotpProps;
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { AuthApiResponse, MeAPIResponse } from '@asgardeo/js';
19
- interface UseAuthentication {
20
- accessToken: string;
21
- authResponse: AuthApiResponse;
22
- isAuthenticated: Promise<boolean> | boolean;
23
- isGlobalLoading: boolean;
24
- setUsername: (username: string) => void;
25
- signOut: () => void;
26
- user: MeAPIResponse;
27
- username: string;
28
- }
29
- export default UseAuthentication;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { UIAuthConfig } from '@asgardeo/js';
19
- interface UseConfig {
20
- config: UIAuthConfig;
21
- }
22
- export default UseConfig;
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare enum Hooks {
19
- SignIn = 0,
20
- SignOut = 1
21
- }
22
- export interface UseOnProps {
23
- /**
24
- * The callback to be executed when the event is triggered.
25
- */
26
- callback: (response?: any) => void | Promise<void>;
27
- /**
28
- * The event to listen to.
29
- */
30
- event: Hooks;
31
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- interface UseTranslations {
19
- isLoading: boolean;
20
- t: (key: string) => string;
21
- }
22
- export default UseTranslations;
@@ -1,79 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { BoxProps } from '@oxygen-ui/react';
19
- import { ElementType, ForwardRefExoticComponent, ReactElement } from 'react';
20
- import { WithWrapperProps } from '../models/component';
21
- import SignInAlert from '../SignInAlert/SignInAlert';
22
- import SignInButton, { SignInButtonProps } from '../SignInButton/SignInButton';
23
- import SignInDivider from '../SignInDivider/SignInDivider';
24
- import SignInFooter from '../SignInFooter/SignInFooter';
25
- import SignInImage from '../SignInImage/SignInImage';
26
- import SignInLink, { SignInLinkProps } from '../SignInLink/SignInLink';
27
- import SignInPaper from '../SignInPaper/SignInPaper';
28
- import SignInPinInput from '../SignInPinInput/SignInPinInput';
29
- import SignInTextField, { SignInTextFieldProps } from '../SignInTextField/SignInTextField';
30
- import SignInTypography, { SignInTypographyProps } from '../SignInTypography/SignInTypography';
31
- import './sign-in.scss';
32
- type Footer = ReactElement | {
33
- copyrights?: {
34
- link?: string;
35
- text: string;
36
- };
37
- locale?: {
38
- text: string;
39
- };
40
- privacyPolicy?: {
41
- link?: string;
42
- text: string;
43
- };
44
- termsOfUse?: {
45
- link?: string;
46
- text: string;
47
- };
48
- };
49
- export type SignInProps<C extends ElementType = ElementType> = {
50
- component?: C;
51
- footer?: Footer;
52
- links?: SignInLinkProps[];
53
- loginOptions?: SignInButtonProps[];
54
- logo?: string;
55
- submitButton?: {
56
- text: string;
57
- } & SignInButtonProps;
58
- subtitle?: {
59
- text: string;
60
- } & SignInTypographyProps;
61
- textFields?: SignInTextFieldProps[];
62
- title?: {
63
- text: string;
64
- } & SignInTypographyProps;
65
- } & Omit<BoxProps, 'component'>;
66
- type SignInCompoundProps = {
67
- Alert: typeof SignInAlert;
68
- Button: typeof SignInButton;
69
- Divider: typeof SignInDivider;
70
- Footer: typeof SignInFooter;
71
- Image: typeof SignInImage;
72
- Link: typeof SignInLink;
73
- Paper: typeof SignInPaper;
74
- PinInput: typeof SignInPinInput;
75
- TextField: typeof SignInTextField;
76
- Typography: typeof SignInTypography;
77
- };
78
- declare const SignIn: ForwardRefExoticComponent<SignInProps> & WithWrapperProps & SignInCompoundProps;
79
- export default SignIn;
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { ElementType, ForwardRefExoticComponent } from 'react';
19
- import { WithWrapperProps } from '../models/component';
20
- import './sign-in-alert.scss';
21
- export type SignInAlertProps<C extends ElementType = ElementType> = {
22
- component?: C;
23
- } & ({
24
- error?: boolean;
25
- info?: never;
26
- warning?: never;
27
- } | {
28
- error?: never;
29
- info?: boolean;
30
- warning?: never;
31
- } | {
32
- error?: never;
33
- info?: never;
34
- warning?: boolean;
35
- });
36
- declare const SignInAlert: ForwardRefExoticComponent<SignInAlertProps> & WithWrapperProps;
37
- export default SignInAlert;
@@ -1,27 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { ButtonProps } from '@oxygen-ui/react';
19
- import { ElementType, ForwardRefExoticComponent } from 'react';
20
- import { WithWrapperProps } from '../models/component';
21
- import './sign-in-button.scss';
22
- export type SignInButtonProps<C extends ElementType = ElementType> = {
23
- component?: C;
24
- social?: boolean;
25
- } & Omit<ButtonProps, 'component'>;
26
- declare const SignInButton: ForwardRefExoticComponent<SignInButtonProps> & WithWrapperProps;
27
- export default SignInButton;
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { DividerProps } from '@oxygen-ui/react';
19
- import { ElementType, ForwardRefExoticComponent } from 'react';
20
- import { WithWrapperProps } from '../models/component';
21
- import './sign-in-divider.scss';
22
- export type SignInDividerProps<C extends ElementType = ElementType> = {
23
- component?: C;
24
- } & Omit<DividerProps, 'component'>;
25
- declare const SignInDivider: ForwardRefExoticComponent<SignInDividerProps> & WithWrapperProps;
26
- export default SignInDivider;
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { GridProps } from '@oxygen-ui/react';
19
- import { ElementType, ForwardRefExoticComponent } from 'react';
20
- import { WithWrapperProps } from '../models/component';
21
- import { SignInTypographyProps } from '../SignInTypography/SignInTypography';
22
- import './sign-in-footer.scss';
23
- export type SignInFooterProps<C extends ElementType = ElementType> = {
24
- component?: C;
25
- copyrights?: SignInTypographyProps;
26
- items?: GridProps[];
27
- } & Omit<GridProps, 'component'>;
28
- declare const SignInFooter: ForwardRefExoticComponent<SignInFooterProps> & WithWrapperProps;
29
- export default SignInFooter;
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { ForwardRefExoticComponent, ImgHTMLAttributes } from 'react';
19
- import { WithWrapperProps } from '../models/component';
20
- import './sign-in-image.scss';
21
- export type SignInImageProps = ImgHTMLAttributes<HTMLImageElement>;
22
- declare const SignInImage: ForwardRefExoticComponent<SignInImageProps> & WithWrapperProps;
23
- export default SignInImage;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { LinkProps } from '@oxygen-ui/react';
19
- import { ElementType, ForwardRefExoticComponent } from 'react';
20
- import { WithWrapperProps } from '../models/component';
21
- export type SignInLinkProps<C extends ElementType = ElementType> = {
22
- component?: C;
23
- } & Omit<LinkProps, 'component'>;
24
- declare const SignInLink: ForwardRefExoticComponent<SignInLinkProps> & WithWrapperProps;
25
- export default SignInLink;