@asgardeo/react 0.2.4 → 0.4.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.
Files changed (128) hide show
  1. package/README.md +112 -6
  2. package/dist/AsgardeoReactClient.d.ts +38 -0
  3. package/dist/__temp__/api.d.ts +228 -0
  4. package/dist/__temp__/models.d.ts +97 -0
  5. package/dist/api/scim2/getMeProfile.d.ts +39 -0
  6. package/dist/api/scim2/getSchemas.d.ts +39 -0
  7. package/dist/api/scim2/updateMeProfile.d.ts +38 -0
  8. package/dist/cjs/index.js +17998 -0
  9. package/dist/cjs/index.js.map +7 -0
  10. package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +66 -0
  11. package/dist/components/actions/SignInButton/SignInButton.d.ts +65 -0
  12. package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +66 -0
  13. package/dist/components/actions/SignOutButton/SignOutButton.d.ts +65 -0
  14. package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +66 -0
  15. package/dist/components/actions/SignUpButton/SignUpButton.d.ts +66 -0
  16. package/dist/components/control/SignedIn.d.ts +45 -0
  17. package/dist/components/control/SignedOut.d.ts +45 -0
  18. package/dist/components/factories/FieldFactory.d.ts +107 -0
  19. package/dist/components/presentation/SignIn/BaseSignIn.d.ts +125 -0
  20. package/dist/components/presentation/SignIn/SignIn.d.ts +62 -0
  21. package/dist/{esm/types/hooks/use-config.d.ts → components/presentation/SignIn/options/EmailOtp.d.ts} +7 -5
  22. package/dist/components/presentation/SignIn/options/FacebookButton.d.ts +25 -0
  23. package/dist/components/presentation/SignIn/options/GitHubButton.d.ts +25 -0
  24. package/dist/components/presentation/SignIn/options/GoogleButton.d.ts +25 -0
  25. package/dist/components/presentation/SignIn/options/IdentifierFirst.d.ts +25 -0
  26. package/dist/components/presentation/SignIn/options/LinkedInButton.d.ts +25 -0
  27. package/dist/{esm/types/components/SignIn/fragments/SmsOtp.d.ts → components/presentation/SignIn/options/MicrosoftButton.d.ts} +9 -5
  28. package/dist/components/presentation/SignIn/options/MultiOptionButton.d.ts +26 -0
  29. package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +76 -0
  30. package/dist/{esm/types/components/SignOutButton/SignOutButton.d.ts → components/presentation/SignIn/options/SignInWithEthereumButton.d.ts} +7 -9
  31. package/dist/{esm/types/contexts/branding-preference-context.d.ts → components/presentation/SignIn/options/SmsOtp.d.ts} +9 -5
  32. package/dist/components/presentation/SignIn/options/SocialButton.d.ts +25 -0
  33. package/dist/{esm/types/contexts/asgardeo-context.d.ts → components/presentation/SignIn/options/Totp.d.ts} +9 -5
  34. package/dist/components/presentation/SignIn/options/UsernamePassword.d.ts +25 -0
  35. package/dist/components/presentation/SignIn/types.d.ts +124 -0
  36. package/dist/components/presentation/User/BaseUser.d.ts +66 -0
  37. package/dist/components/presentation/User/User.d.ts +62 -0
  38. package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts +76 -0
  39. package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +49 -0
  40. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +63 -0
  41. package/dist/components/presentation/UserProfile/UserProfile.d.ts +49 -0
  42. package/dist/components/primitives/Alert/Alert.d.ts +74 -0
  43. package/dist/{esm/types/components/SignIn/SignIn.d.ts → components/primitives/Avatar/Avatar.d.ts} +25 -14
  44. package/dist/components/primitives/Button/Button.d.ts +83 -0
  45. package/dist/components/primitives/Card/Card.d.ts +133 -0
  46. package/dist/{esm/types/oxygen-ui-react-auth-components/models/component.d.ts → components/primitives/Checkbox/Checkbox.d.ts} +22 -7
  47. package/dist/components/primitives/DatePicker/DatePicker.d.ts +50 -0
  48. package/dist/components/primitives/Divider/Divider.d.ts +58 -0
  49. package/dist/components/primitives/FormControl/FormControl.d.ts +50 -0
  50. package/dist/components/primitives/Icons/CircleAlert.d.ts +23 -0
  51. package/dist/components/primitives/Icons/CircleCheck.d.ts +23 -0
  52. package/dist/{esm/types/models/use-config.d.ts → components/primitives/Icons/Eye.d.ts} +7 -6
  53. package/dist/{esm/types/contexts/i18n-context.d.ts → components/primitives/Icons/EyeOff.d.ts} +7 -5
  54. package/dist/{esm/types/hooks/use-on.d.ts → components/primitives/Icons/Info.d.ts} +7 -4
  55. package/dist/components/primitives/Icons/TriangleAlert.d.ts +23 -0
  56. package/dist/components/primitives/InputLabel/InputLabel.d.ts +46 -0
  57. package/dist/components/primitives/OtpField/OtpField.d.ts +86 -0
  58. package/dist/{esm/types/components/SignInButton/SignInButton.d.ts → components/primitives/PasswordField/PasswordField.d.ts} +13 -11
  59. package/dist/components/primitives/Popover/Popover.d.ts +96 -0
  60. package/dist/components/primitives/Select/Select.d.ts +60 -0
  61. package/dist/components/primitives/Spinner/Spinner.d.ts +54 -0
  62. package/dist/components/primitives/TextField/TextField.d.ts +62 -0
  63. package/dist/components/primitives/Typography/Typography.d.ts +81 -0
  64. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +57 -0
  65. package/dist/{esm/types/components/public-components.d.ts → contexts/Asgardeo/AsgardeoProvider.d.ts} +9 -6
  66. package/dist/contexts/Asgardeo/useAsgardeo.d.ts +20 -0
  67. package/dist/contexts/Flow/FlowContext.d.ts +73 -0
  68. package/dist/contexts/Flow/FlowProvider.d.ts +46 -0
  69. package/dist/contexts/Flow/useFlow.d.ts +48 -0
  70. package/dist/contexts/I18n/I18nContext.d.ts +42 -0
  71. package/dist/{esm/types/components/SignedIn/SignedIn.d.ts → contexts/I18n/I18nProvider.d.ts} +12 -10
  72. package/dist/contexts/I18n/useI18n.d.ts +27 -0
  73. package/dist/{esm/types/models/asgardeo-provider-props.d.ts → contexts/Theme/ThemeContext.d.ts} +8 -7
  74. package/dist/{esm/types/models/branding-preference-provider-props.d.ts → contexts/Theme/ThemeProvider.d.ts} +8 -5
  75. package/dist/{esm/types/models/use-on.d.ts → contexts/Theme/types.d.ts} +22 -12
  76. package/dist/{esm/types/models/signed-props.d.ts → contexts/Theme/useTheme.d.ts} +4 -6
  77. package/dist/contexts/User/UserContext.d.ts +32 -0
  78. package/dist/contexts/User/UserProvider.d.ts +55 -0
  79. package/dist/contexts/User/useUser.d.ts +94 -0
  80. package/dist/hooks/useBrowserUrl.d.ts +47 -0
  81. package/dist/hooks/useForm.d.ts +192 -0
  82. package/dist/hooks/useTranslation.d.ts +52 -0
  83. package/dist/index.d.ts +121 -348
  84. package/dist/index.js +18064 -0
  85. package/dist/index.js.map +7 -0
  86. package/dist/{esm/types/models/public-models.d.ts → models/config.d.ts} +3 -3
  87. package/dist/utils/getMappedUserProfileValue.d.ts +51 -0
  88. package/package.json +55 -59
  89. package/dist/esm/index.js +0 -45278
  90. package/dist/esm/index.js.map +0 -1
  91. package/dist/esm/types/components/SignIn/fragments/BasicAuth.d.ts +0 -35
  92. package/dist/esm/types/components/SignIn/fragments/EmailOtp.d.ts +0 -32
  93. package/dist/esm/types/components/SignIn/fragments/IdentifierFirst.d.ts +0 -35
  94. package/dist/esm/types/components/SignIn/fragments/LoginOptionsBox.d.ts +0 -30
  95. package/dist/esm/types/components/SignIn/fragments/Totp.d.ts +0 -33
  96. package/dist/esm/types/components/SignedOut/SignedOut.d.ts +0 -29
  97. package/dist/esm/types/hooks/use-authentication.d.ts +0 -27
  98. package/dist/esm/types/hooks/use-translations.d.ts +0 -33
  99. package/dist/esm/types/index.d.ts +0 -22
  100. package/dist/esm/types/models/auth-context.d.ts +0 -43
  101. package/dist/esm/types/models/basic-auth-props.d.ts +0 -29
  102. package/dist/esm/types/models/email-otp-props.d.ts +0 -26
  103. package/dist/esm/types/models/i18n.d.ts +0 -34
  104. package/dist/esm/types/models/jwt-verify-options.d.ts +0 -25
  105. package/dist/esm/types/models/login-options-box-props.d.ts +0 -24
  106. package/dist/esm/types/models/sign-in.d.ts +0 -49
  107. package/dist/esm/types/models/totp-props.d.ts +0 -26
  108. package/dist/esm/types/models/use-authentication.d.ts +0 -29
  109. package/dist/esm/types/models/use-translations.d.ts +0 -22
  110. package/dist/esm/types/oxygen-ui-react-auth-components/SignIn/SignIn.d.ts +0 -79
  111. package/dist/esm/types/oxygen-ui-react-auth-components/SignInAlert/SignInAlert.d.ts +0 -37
  112. package/dist/esm/types/oxygen-ui-react-auth-components/SignInButton/SignInButton.d.ts +0 -27
  113. package/dist/esm/types/oxygen-ui-react-auth-components/SignInDivider/SignInDivider.d.ts +0 -26
  114. package/dist/esm/types/oxygen-ui-react-auth-components/SignInFooter/SignInFooter.d.ts +0 -29
  115. package/dist/esm/types/oxygen-ui-react-auth-components/SignInImage/SignInImage.d.ts +0 -23
  116. package/dist/esm/types/oxygen-ui-react-auth-components/SignInLink/SignInLink.d.ts +0 -25
  117. package/dist/esm/types/oxygen-ui-react-auth-components/SignInPaper/SignInPaper.d.ts +0 -26
  118. package/dist/esm/types/oxygen-ui-react-auth-components/SignInPinInput/SignInPinInput.d.ts +0 -30
  119. package/dist/esm/types/oxygen-ui-react-auth-components/SignInTextField/SignInTextField.d.ts +0 -26
  120. package/dist/esm/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts +0 -32
  121. package/dist/esm/types/oxygen-ui-react-auth-components/index.d.ts +0 -19
  122. package/dist/esm/types/providers/AsgardeoProvider.d.ts +0 -34
  123. package/dist/esm/types/providers/BrandingPreferenceProvider.d.ts +0 -32
  124. package/dist/esm/types/providers/I18nProvider.d.ts +0 -33
  125. package/dist/esm/types/theme/generate-theme-sign-in.d.ts +0 -28
  126. package/dist/esm/types/theme/generate-theme.d.ts +0 -30
  127. package/dist/esm/types/utils/crypto-utils.d.ts +0 -52
  128. package/dist/esm/types/utils/session-store.d.ts +0 -25
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { ButtonHTMLAttributes } from 'react';
19
+ export type ButtonColor = 'primary' | 'secondary' | 'tertiary' | string;
20
+ export type ButtonVariant = 'solid' | 'outline' | 'text';
21
+ export type ButtonSize = 'small' | 'medium' | 'large';
22
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
23
+ /**
24
+ * The button color that determines the color scheme
25
+ */
26
+ color?: ButtonColor;
27
+ /**
28
+ * The button variant that determines the visual style
29
+ */
30
+ variant?: ButtonVariant;
31
+ /**
32
+ * The size of the button
33
+ */
34
+ size?: ButtonSize;
35
+ /**
36
+ * Whether the button should take the full width of its container
37
+ */
38
+ fullWidth?: boolean;
39
+ /**
40
+ * Whether the button is in a loading state
41
+ */
42
+ loading?: boolean;
43
+ /**
44
+ * Icon to display before the button text
45
+ */
46
+ startIcon?: React.ReactNode;
47
+ /**
48
+ * Icon to display after the button text
49
+ */
50
+ endIcon?: React.ReactNode;
51
+ }
52
+ /**
53
+ * Button component with multiple variants and types.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * // Primary solid button
58
+ * <Button color="primary" variant="solid">
59
+ * Click me
60
+ * </Button>
61
+ *
62
+ * // Secondary outline button
63
+ * <Button color="secondary" variant="outline" size="large">
64
+ * Cancel
65
+ * </Button>
66
+ *
67
+ * // Text button with loading state
68
+ * <Button color="tertiary" variant="text" loading>
69
+ * Loading...
70
+ * </Button>
71
+ *
72
+ * // Button with icons
73
+ * <Button
74
+ * color="primary"
75
+ * startIcon={<Icon />}
76
+ * endIcon={<Arrow />}
77
+ * >
78
+ * Save and Continue
79
+ * </Button>
80
+ * ```
81
+ */
82
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
83
+ export default Button;
@@ -0,0 +1,133 @@
1
+ /**
2
+ * Copyright (import {CSSProperties, HTMLAttributes, forwardRef, useMemo, ReactNode, ForwardRefExoticComponent, Ref} from 'react';
3
+ import useTheme from '../../../theme/useTheme'; 2025, WSO2 LLC. (https://www.wso2.com).
4
+ *
5
+ * WSO2 LLC. licenses this file to you under the Apache License,
6
+ * Version 2.0 (the "License"); you may not use this file except
7
+ * in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { HTMLAttributes, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
20
+ export type CardVariant = 'default' | 'outlined' | 'elevated';
21
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
22
+ /**
23
+ * The visual variant of the card
24
+ */
25
+ variant?: CardVariant;
26
+ /**
27
+ * Whether the card should be clickable (shows hover effects)
28
+ */
29
+ clickable?: boolean;
30
+ /**
31
+ * Card content
32
+ */
33
+ children?: ReactNode;
34
+ }
35
+ export interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
36
+ /**
37
+ * Header content
38
+ */
39
+ children?: ReactNode;
40
+ }
41
+ export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
42
+ /**
43
+ * Title content
44
+ */
45
+ children?: ReactNode;
46
+ /**
47
+ * The heading level to use
48
+ */
49
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
50
+ }
51
+ export interface CardDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
52
+ /**
53
+ * Description content
54
+ */
55
+ children?: ReactNode;
56
+ }
57
+ export interface CardActionProps extends HTMLAttributes<HTMLDivElement> {
58
+ /**
59
+ * Action content
60
+ */
61
+ children?: ReactNode;
62
+ }
63
+ export interface CardContentProps extends HTMLAttributes<HTMLDivElement> {
64
+ /**
65
+ * Content
66
+ */
67
+ children?: ReactNode;
68
+ }
69
+ export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
70
+ /**
71
+ * Footer content
72
+ */
73
+ children?: ReactNode;
74
+ }
75
+ /**
76
+ * Card component that provides a flexible container for content.
77
+ *
78
+ * @example
79
+ * ```tsx
80
+ * <Card variant="elevated" clickable>
81
+ * <Card.Header>
82
+ * <Card.Title>Card Title</Card.Title>
83
+ * <Card.Description>Card Description</Card.Description>
84
+ * <Card.Action>
85
+ * <Button variant="link">Action</Button>
86
+ * </Card.Action>
87
+ * </Card.Header>
88
+ * <Card.Content>
89
+ * <p>Card content goes here</p>
90
+ * </Card.Content>
91
+ * <Card.Footer>
92
+ * <Button>Cancel</Button>
93
+ * <Button variant="outline">Submit</Button>
94
+ * </Card.Footer>
95
+ * </Card>
96
+ * ```
97
+ */
98
+ declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
99
+ /**
100
+ * Card header component that contains the title, description, and optional actions.
101
+ */
102
+ declare const CardHeader: ForwardRefExoticComponent<CardHeaderProps & RefAttributes<HTMLDivElement>>;
103
+ /**
104
+ * Card title component.
105
+ */
106
+ declare const CardTitle: ForwardRefExoticComponent<CardTitleProps & RefAttributes<HTMLHeadingElement>>;
107
+ /**
108
+ * Card description component.
109
+ */
110
+ declare const CardDescription: ForwardRefExoticComponent<CardDescriptionProps & RefAttributes<HTMLParagraphElement>>;
111
+ /**
112
+ * Card action component for action elements in the header.
113
+ */
114
+ declare const CardAction: ForwardRefExoticComponent<CardActionProps & RefAttributes<HTMLDivElement>>;
115
+ /**
116
+ * Card content component that contains the main content of the card.
117
+ */
118
+ declare const CardContent: ForwardRefExoticComponent<CardContentProps & RefAttributes<HTMLDivElement>>;
119
+ /**
120
+ * Card footer component that contains footer actions or additional information.
121
+ */
122
+ declare const CardFooter: ForwardRefExoticComponent<CardFooterProps & RefAttributes<HTMLDivElement>>;
123
+ export interface CardComponent extends ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>> {
124
+ Header: typeof CardHeader;
125
+ Title: typeof CardTitle;
126
+ Description: typeof CardDescription;
127
+ Action: typeof CardAction;
128
+ Content: typeof CardContent;
129
+ Footer: typeof CardFooter;
130
+ }
131
+ declare const _default: CardComponent;
132
+ export default _default;
133
+ export { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter };
@@ -15,13 +15,28 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- export type WithWrapperProps = MuiWrapperProps;
19
- export interface MuiWrapperProps {
18
+ import { FC, InputHTMLAttributes } from 'react';
19
+ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'type'> {
20
20
  /**
21
- * Component name with `Mui` prefix.
22
- * To provide maximum flexibility and performance, MUI needs a way to know the nature
23
- * of the child elements a component receives.
24
- * @see {@link https://mui.com/material-ui/guides/composition/#wrapping-components}
21
+ * Label text to display next to the checkbox
25
22
  */
26
- muiName: string;
23
+ label?: string;
24
+ /**
25
+ * Error message to display below the checkbox
26
+ */
27
+ error?: string;
28
+ /**
29
+ * Additional CSS class names
30
+ */
31
+ className?: string;
32
+ /**
33
+ * Whether the field is required
34
+ */
35
+ required?: boolean;
36
+ /**
37
+ * Helper text to display below the checkbox
38
+ */
39
+ helperText?: string;
27
40
  }
41
+ declare const Checkbox: FC<CheckboxProps>;
42
+ export default Checkbox;
@@ -0,0 +1,50 @@
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 { FC, InputHTMLAttributes } from 'react';
19
+ export interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'type'> {
20
+ /**
21
+ * Label text to display above the input
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Error message to display below the input
26
+ */
27
+ error?: string;
28
+ /**
29
+ * Additional CSS class names
30
+ */
31
+ className?: string;
32
+ /**
33
+ * Whether the field is required
34
+ */
35
+ required?: boolean;
36
+ /**
37
+ * Whether the field is disabled
38
+ */
39
+ disabled?: boolean;
40
+ /**
41
+ * Helper text to display below the input
42
+ */
43
+ helperText?: string;
44
+ /**
45
+ * Custom date format for the regex pattern
46
+ */
47
+ dateFormat?: string;
48
+ }
49
+ declare const DatePicker: FC<DatePickerProps>;
50
+ export default DatePicker;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { FC, HTMLAttributes } from 'react';
19
+ export type DividerOrientation = 'horizontal' | 'vertical';
20
+ export type DividerVariant = 'solid' | 'dashed' | 'dotted';
21
+ export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
22
+ /**
23
+ * The orientation of the divider
24
+ */
25
+ orientation?: DividerOrientation;
26
+ /**
27
+ * The variant style of the divider
28
+ */
29
+ variant?: DividerVariant;
30
+ /**
31
+ * Text to display in the center of the divider
32
+ */
33
+ children?: React.ReactNode;
34
+ /**
35
+ * Custom color for the divider
36
+ */
37
+ color?: string;
38
+ }
39
+ /**
40
+ * Divider component for separating content sections.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * // Basic horizontal divider
45
+ * <Divider />
46
+ *
47
+ * // Divider with text
48
+ * <Divider>OR</Divider>
49
+ *
50
+ * // Vertical divider
51
+ * <Divider orientation="vertical" />
52
+ *
53
+ * // Custom styled divider
54
+ * <Divider variant="dashed" color="#ccc">Continue with</Divider>
55
+ * ```
56
+ */
57
+ declare const Divider: FC<DividerProps>;
58
+ export default Divider;
@@ -0,0 +1,50 @@
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 { CSSProperties, FC, ReactNode } from 'react';
19
+ export interface FormControlProps {
20
+ /**
21
+ * The content to be wrapped by the form control
22
+ */
23
+ children: ReactNode;
24
+ /**
25
+ * Error message to display below the content
26
+ */
27
+ error?: string;
28
+ /**
29
+ * Helper text to display below the content
30
+ */
31
+ helperText?: string;
32
+ /**
33
+ * Additional CSS class names
34
+ */
35
+ className?: string;
36
+ /**
37
+ * Custom container style
38
+ */
39
+ style?: CSSProperties;
40
+ /**
41
+ * Custom alignment for helper text (default: left, center for OTP)
42
+ */
43
+ helperTextAlign?: 'left' | 'center';
44
+ /**
45
+ * Custom margin left for helper text (for components like Checkbox)
46
+ */
47
+ helperTextMarginLeft?: string;
48
+ }
49
+ declare const FormControl: FC<FormControlProps>;
50
+ export default FormControl;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { FC, SVGProps } from 'react';
19
+ /**
20
+ * CircleAlert icon component.
21
+ */
22
+ declare const CircleAlert: FC<SVGProps<SVGSVGElement>>;
23
+ export default CircleAlert;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { FC, SVGProps } from 'react';
19
+ /**
20
+ * CircleCheck icon component.
21
+ */
22
+ declare const CircleCheck: FC<SVGProps<SVGSVGElement>>;
23
+ export default CircleCheck;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
3
  *
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
@@ -15,8 +15,9 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { UIAuthConfig } from '@asgardeo/js';
19
- interface UseConfig {
20
- config: UIAuthConfig;
21
- }
22
- export default UseConfig;
18
+ import { FC, SVGProps } from 'react';
19
+ /**
20
+ * Eye icon component.
21
+ */
22
+ declare const Eye: FC<SVGProps<SVGSVGElement>>;
23
+ export default Eye;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
3
  *
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
@@ -15,7 +15,9 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { Context } from 'react';
19
- import { I18n } from '../models/i18n';
20
- declare const I18nContext: Context<I18n>;
21
- export default I18nContext;
18
+ import { FC, SVGProps } from 'react';
19
+ /**
20
+ * EyeOff icon component.
21
+ */
22
+ declare const EyeOff: FC<SVGProps<SVGSVGElement>>;
23
+ export default EyeOff;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
3
  *
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
@@ -15,6 +15,9 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { UseOnProps } from '../models/use-on';
19
- declare const useOn: (props: UseOnProps) => void;
20
- export default useOn;
18
+ import { FC, SVGProps } from 'react';
19
+ /**
20
+ * Info icon component.
21
+ */
22
+ declare const Info: FC<SVGProps<SVGSVGElement>>;
23
+ export default Info;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { FC, SVGProps } from 'react';
19
+ /**
20
+ * TriangleAlert icon component.
21
+ */
22
+ declare const TriangleAlert: FC<SVGProps<SVGSVGElement>>;
23
+ export default TriangleAlert;
@@ -0,0 +1,46 @@
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 { CSSProperties, FC, LabelHTMLAttributes, ReactNode } from 'react';
19
+ export interface InputLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'style'> {
20
+ /**
21
+ * Label text or content
22
+ */
23
+ children: ReactNode;
24
+ /**
25
+ * Whether the field is required
26
+ */
27
+ required?: boolean;
28
+ /**
29
+ * Whether there's an error state
30
+ */
31
+ error?: boolean;
32
+ /**
33
+ * Custom style overrides
34
+ */
35
+ style?: CSSProperties;
36
+ /**
37
+ * Display type for label positioning
38
+ */
39
+ variant?: 'block' | 'inline';
40
+ /**
41
+ * Custom margin bottom (useful for different form layouts)
42
+ */
43
+ marginBottom?: string;
44
+ }
45
+ declare const InputLabel: FC<InputLabelProps>;
46
+ export default InputLabel;
@@ -0,0 +1,86 @@
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 { CSSProperties, FC } from 'react';
19
+ export interface OtpInputProps {
20
+ /**
21
+ * Label text to display above the OTP input
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Error message to display below the OTP input
26
+ */
27
+ error?: string;
28
+ /**
29
+ * Additional CSS class names
30
+ */
31
+ className?: string;
32
+ /**
33
+ * Whether the field is required
34
+ */
35
+ required?: boolean;
36
+ /**
37
+ * Whether the field is disabled
38
+ */
39
+ disabled?: boolean;
40
+ /**
41
+ * Helper text to display below the OTP input
42
+ */
43
+ helperText?: string;
44
+ /**
45
+ * Number of OTP input fields
46
+ */
47
+ length?: number;
48
+ /**
49
+ * Current OTP value
50
+ */
51
+ value?: string;
52
+ /**
53
+ * Callback function called when OTP value changes
54
+ */
55
+ onChange?: (event: {
56
+ target: {
57
+ value: string;
58
+ };
59
+ }) => void;
60
+ /**
61
+ * Callback function called when OTP input is complete
62
+ */
63
+ onComplete?: (value: string) => void;
64
+ /**
65
+ * Type of input (text, number, password)
66
+ */
67
+ type?: 'text' | 'number' | 'password';
68
+ /**
69
+ * Placeholder character for each input field
70
+ */
71
+ placeholder?: string;
72
+ /**
73
+ * Custom container style
74
+ */
75
+ style?: CSSProperties;
76
+ /**
77
+ * Auto focus the first input on mount
78
+ */
79
+ autoFocus?: boolean;
80
+ /**
81
+ * Pattern for numeric input validation
82
+ */
83
+ pattern?: string;
84
+ }
85
+ declare const OtpField: FC<OtpInputProps>;
86
+ export default OtpField;