@asgardeo/react 0.11.1 → 0.11.3

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 (104) hide show
  1. package/dist/AsgardeoReactClient.d.ts +10 -10
  2. package/dist/__temp__/api.d.ts +6 -6
  3. package/dist/__temp__/models.d.ts +30 -30
  4. package/dist/cjs/index.js +5988 -5754
  5. package/dist/cjs/index.js.map +4 -4
  6. package/dist/components/adapters/FacebookButton.d.ts +1 -1
  7. package/dist/components/adapters/GitHubButton.d.ts +1 -1
  8. package/dist/components/adapters/GoogleButton.d.ts +1 -1
  9. package/dist/components/adapters/LinkedInButton.d.ts +1 -1
  10. package/dist/components/adapters/MicrosoftButton.d.ts +1 -1
  11. package/dist/components/adapters/SignInWithEthereumButton.d.ts +1 -1
  12. package/dist/components/adapters/SmsOtpButton.d.ts +1 -1
  13. package/dist/components/factories/FieldFactory.d.ts +25 -25
  14. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +1 -18
  15. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +1 -1
  16. package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +26 -26
  17. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +1 -31
  18. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +1 -6
  19. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +3 -3
  20. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +1 -27
  21. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +6 -6
  22. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +1 -25
  23. package/dist/components/presentation/User/BaseUser.d.ts +4 -4
  24. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +1 -15
  25. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -3
  26. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +1 -26
  27. package/dist/components/presentation/auth/AcceptInvite/index.d.ts +1 -1
  28. package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +13 -13
  29. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +51 -51
  30. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts +6 -10
  31. package/dist/components/presentation/auth/AuthOptionFactory.d.ts +1 -1
  32. package/dist/components/presentation/auth/InviteUser/index.d.ts +1 -1
  33. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +57 -57
  34. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts +6 -10
  35. package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +15 -15
  36. package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts +1 -27
  37. package/dist/components/presentation/auth/SignIn/SignIn.d.ts +1 -1
  38. package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts +12 -12
  39. package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts +15 -15
  40. package/dist/components/presentation/auth/SignIn/v1/types.d.ts +30 -30
  41. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +47 -47
  42. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +20 -20
  43. package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts +1 -26
  44. package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts +40 -40
  45. package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts +1 -1
  46. package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts +46 -46
  47. package/dist/components/primitives/Alert/Alert.d.ts +8 -8
  48. package/dist/components/primitives/Alert/Alert.styles.d.ts +1 -8
  49. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -4
  50. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -7
  51. package/dist/components/primitives/Button/Button.d.ts +14 -14
  52. package/dist/components/primitives/Button/Button.styles.d.ts +1 -13
  53. package/dist/components/primitives/Card/Card.d.ts +4 -4
  54. package/dist/components/primitives/Card/Card.styles.d.ts +1 -11
  55. package/dist/components/primitives/Checkbox/Checkbox.d.ts +8 -8
  56. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +1 -8
  57. package/dist/components/primitives/DatePicker/DatePicker.d.ts +12 -12
  58. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +1 -6
  59. package/dist/components/primitives/Dialog/Dialog.d.ts +17 -17
  60. package/dist/components/primitives/Dialog/Dialog.styles.d.ts +1 -9
  61. package/dist/components/primitives/Divider/Divider.d.ts +2 -2
  62. package/dist/components/primitives/Divider/Divider.styles.d.ts +1 -7
  63. package/dist/components/primitives/FormControl/FormControl.d.ts +4 -4
  64. package/dist/components/primitives/FormControl/FormControl.styles.d.ts +1 -5
  65. package/dist/components/primitives/InputLabel/InputLabel.d.ts +10 -10
  66. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +1 -7
  67. package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts +4 -4
  68. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +1 -17
  69. package/dist/components/primitives/Logo/Logo.d.ts +8 -8
  70. package/dist/components/primitives/Logo/Logo.styles.d.ts +1 -7
  71. package/dist/components/primitives/MultiInput/MultiInput.d.ts +28 -28
  72. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +1 -11
  73. package/dist/components/primitives/OtpField/OtpField.d.ts +20 -20
  74. package/dist/components/primitives/OtpField/OtpField.styles.d.ts +1 -6
  75. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +1 -5
  76. package/dist/components/primitives/Select/Select.d.ts +18 -18
  77. package/dist/components/primitives/Select/Select.styles.d.ts +1 -6
  78. package/dist/components/primitives/Spinner/Spinner.d.ts +4 -4
  79. package/dist/components/primitives/Spinner/Spinner.styles.d.ts +1 -6
  80. package/dist/components/primitives/TextField/TextField.d.ts +18 -18
  81. package/dist/components/primitives/TextField/TextField.styles.d.ts +1 -9
  82. package/dist/components/primitives/Typography/Typography.d.ts +24 -24
  83. package/dist/components/primitives/Typography/Typography.styles.d.ts +1 -19
  84. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +62 -62
  85. package/dist/contexts/Branding/BrandingContext.d.ts +12 -11
  86. package/dist/contexts/Branding/BrandingProvider.d.ts +10 -10
  87. package/dist/contexts/Flow/FlowContext.d.ts +25 -24
  88. package/dist/contexts/Flow/FlowProvider.d.ts +4 -4
  89. package/dist/contexts/I18n/I18nContext.d.ts +6 -5
  90. package/dist/contexts/I18n/I18nProvider.d.ts +1 -1
  91. package/dist/contexts/Theme/ThemeContext.d.ts +12 -11
  92. package/dist/contexts/Theme/ThemeProvider.d.ts +10 -10
  93. package/dist/contexts/Theme/types.d.ts +30 -30
  94. package/dist/contexts/User/UserContext.d.ts +2 -2
  95. package/dist/contexts/User/UserProvider.d.ts +2 -2
  96. package/dist/hooks/useBranding.d.ts +17 -17
  97. package/dist/hooks/useForm.d.ts +10 -9
  98. package/dist/hooks/useTranslation.d.ts +4 -4
  99. package/dist/index.d.ts +6 -26
  100. package/dist/index.js +5969 -5705
  101. package/dist/index.js.map +4 -4
  102. package/dist/utils/v2/flowTransformer.d.ts +7 -7
  103. package/dist/utils/v2/getAuthComponentHeadings.d.ts +2 -2
  104. package/package.json +2 -2
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface FacebookButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface GithubButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface GoogleButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface LinkedInButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface MicrosoftButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface SignInWithEthereumButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, HTMLAttributes } from 'react';
19
18
  import { WithPreferences } from '@asgardeo/browser';
19
+ import { FC, HTMLAttributes } from 'react';
20
20
  export interface SmsOtpButtonProps extends WithPreferences {
21
21
  /**
22
22
  * Whether the component is in loading state.
@@ -15,65 +15,65 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
+ import { FieldType } from '@asgardeo/browser';
18
19
  import { FC, ReactElement } from 'react';
19
20
  import { SelectOption } from '../primitives/Select/Select';
20
- import { FieldType } from '@asgardeo/browser';
21
21
  /**
22
22
  * Interface for field configuration.
23
23
  */
24
24
  export interface FieldConfig {
25
25
  /**
26
- * The name of the field.
27
- */
28
- name: string;
29
- /**
30
- * The field type.
26
+ * Additional CSS class name.
31
27
  */
32
- type: FieldType;
28
+ className?: string;
33
29
  /**
34
- * Display name for the field.
30
+ * Whether the field is disabled.
35
31
  */
36
- label: string;
32
+ disabled?: boolean;
37
33
  /**
38
- * Whether the field is required.
34
+ * Error message to display.
39
35
  */
40
- required: boolean;
36
+ error?: string;
41
37
  /**
42
- * Current value of the field.
38
+ * Display name for the field.
43
39
  */
44
- value: string;
40
+ label: string;
45
41
  /**
46
- * Callback function when the field value changes.
42
+ * The name of the field.
47
43
  */
48
- onChange: (value: string) => void;
44
+ name: string;
49
45
  /**
50
46
  * Callback function when the field loses focus.
51
47
  */
52
48
  onBlur?: () => void;
53
49
  /**
54
- * Whether the field is disabled.
50
+ * Callback function when the field value changes.
55
51
  */
56
- disabled?: boolean;
52
+ onChange: (value: string) => void;
57
53
  /**
58
- * Error message to display.
54
+ * Additional options for multi-valued fields.
59
55
  */
60
- error?: string;
56
+ options?: SelectOption[];
61
57
  /**
62
- * Additional CSS class name.
58
+ * Placeholder text for the field.
63
59
  */
64
- className?: string;
60
+ placeholder?: string;
65
61
  /**
66
- * Additional options for multi-valued fields.
62
+ * Whether the field is required.
67
63
  */
68
- options?: SelectOption[];
64
+ required: boolean;
69
65
  /**
70
66
  * Whether the field has been touched/interacted with by the user.
71
67
  */
72
68
  touched?: boolean;
73
69
  /**
74
- * Placeholder text for the field.
70
+ * The field type.
75
71
  */
76
- placeholder?: string;
72
+ type: FieldType;
73
+ /**
74
+ * Current value of the field.
75
+ */
76
+ value: string;
77
77
  }
78
78
  /**
79
79
  * Utility function to validate field values based on type
@@ -22,22 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- card: string;
28
- content: string;
29
- form: string;
30
- header: string;
31
- field: string;
32
- fieldGroup: string;
33
- textarea: string;
34
- textareaError: string;
35
- input: string;
36
- avatarContainer: string;
37
- actions: string;
38
- infoContainer: string;
39
- value: string;
40
- popup: string;
41
- errorAlert: string;
42
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
43
26
  export default useStyles;
@@ -15,9 +15,9 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
+ import { CreateOrganizationPayload } from '@asgardeo/browser';
18
19
  import { FC, ReactElement } from 'react';
19
20
  import { BaseCreateOrganizationProps } from './BaseCreateOrganization';
20
- import { CreateOrganizationPayload } from '@asgardeo/browser';
21
21
  /**
22
22
  * Props interface for the CreateOrganization component.
23
23
  */
@@ -16,7 +16,7 @@
16
16
  * under the License.
17
17
  */
18
18
  import { AllOrganizationsApiResponse, Organization } from '@asgardeo/browser';
19
- import { FC, ReactNode } from 'react';
19
+ import { CSSProperties, FC, ReactNode } from 'react';
20
20
  export interface OrganizationWithSwitchAccess extends Organization {
21
21
  canSwitch: boolean;
22
22
  }
@@ -24,18 +24,14 @@ export interface OrganizationWithSwitchAccess extends Organization {
24
24
  * Props interface for the BaseOrganizationList component.
25
25
  */
26
26
  export interface BaseOrganizationListProps {
27
- /**
28
- * Additional CSS class names to apply to the container
29
- */
30
- className?: string;
31
27
  /**
32
28
  * List of organizations discoverable to the signed-in user.
33
29
  */
34
30
  allOrganizations: AllOrganizationsApiResponse;
35
31
  /**
36
- * List of organizations associated to the signed-in user.
32
+ * Additional CSS class names to apply to the container
37
33
  */
38
- myOrganizations: Organization[];
34
+ className?: string;
39
35
  /**
40
36
  * Error message to display
41
37
  */
@@ -56,10 +52,30 @@ export interface BaseOrganizationListProps {
56
52
  * Whether more data is being loaded
57
53
  */
58
54
  isLoadingMore?: boolean;
55
+ /**
56
+ * Display mode: 'inline' for normal display, 'popup' for modal dialog
57
+ */
58
+ mode?: 'inline' | 'popup';
59
+ /**
60
+ * List of organizations associated to the signed-in user.
61
+ */
62
+ myOrganizations: Organization[];
63
+ /**
64
+ * Function called when popup open state changes (only used in popup mode)
65
+ */
66
+ onOpenChange?: (open: boolean) => void;
67
+ /**
68
+ * Function called when an organization is selected/clicked
69
+ */
70
+ onOrganizationSelect?: (organization: OrganizationWithSwitchAccess) => void;
59
71
  /**
60
72
  * Function called when refresh is requested
61
73
  */
62
74
  onRefresh?: () => Promise<void>;
75
+ /**
76
+ * Whether the popup is open (only used in popup mode)
77
+ */
78
+ open?: boolean;
63
79
  /**
64
80
  * Custom renderer for when no organizations are found
65
81
  */
@@ -81,33 +97,17 @@ export interface BaseOrganizationListProps {
81
97
  */
82
98
  renderOrganization?: (organization: OrganizationWithSwitchAccess, index: number) => ReactNode;
83
99
  /**
84
- * Function called when an organization is selected/clicked
100
+ * Whether to show the organization status in the list
85
101
  */
86
- onOrganizationSelect?: (organization: OrganizationWithSwitchAccess) => void;
102
+ showStatus?: boolean;
87
103
  /**
88
104
  * Inline styles to apply to the container
89
105
  */
90
- style?: React.CSSProperties;
91
- /**
92
- * Display mode: 'inline' for normal display, 'popup' for modal dialog
93
- */
94
- mode?: 'inline' | 'popup';
95
- /**
96
- * Function called when popup open state changes (only used in popup mode)
97
- */
98
- onOpenChange?: (open: boolean) => void;
99
- /**
100
- * Whether the popup is open (only used in popup mode)
101
- */
102
- open?: boolean;
106
+ style?: CSSProperties;
103
107
  /**
104
108
  * Title for the popup dialog (only used in popup mode)
105
109
  */
106
110
  title?: string;
107
- /**
108
- * Whether to show the organization status in the list
109
- */
110
- showStatus?: boolean;
111
111
  }
112
112
  /**
113
113
  * BaseOrganizationList component displays a list of organizations with pagination support.
@@ -22,35 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- header: string;
28
- headerInfo: string;
29
- title: string;
30
- subtitle: string;
31
- refreshButton: string;
32
- listContainer: string;
33
- organizationItem: string;
34
- organizationContent: string;
35
- organizationInfo: string;
36
- organizationName: string;
37
- organizationHandle: string;
38
- organizationStatus: string;
39
- statusText: string;
40
- statusTextActive: string;
41
- statusTextInactive: string;
42
- organizationActions: string;
43
- badge: string;
44
- badgeSuccess: string;
45
- badgeError: string;
46
- loadingContainer: string;
47
- loadingText: string;
48
- errorContainer: string;
49
- emptyContainer: string;
50
- emptyText: string;
51
- loadMoreButton: string;
52
- errorMargin: string;
53
- loadMoreMargin: string;
54
- popupContent: string;
55
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
56
26
  export default useStyles;
@@ -22,10 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- container: string;
28
- errorState: string;
29
- loadingOverlay: string;
30
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
31
26
  export default useStyles;
@@ -16,7 +16,7 @@
16
16
  * under the License.
17
17
  */
18
18
  import { OrganizationDetails } from '@asgardeo/browser';
19
- import { FC, ReactElement } from 'react';
19
+ import { FC, ReactElement, ReactNode } from 'react';
20
20
  export interface BaseOrganizationProfileProps {
21
21
  /**
22
22
  * Callback fired when the cancel button is clicked (only used in editable mode).
@@ -42,10 +42,10 @@ export interface BaseOrganizationProfileProps {
42
42
  * Array of field configurations to display. Each field specifies what organization data to show.
43
43
  */
44
44
  fields?: Array<{
45
+ editable?: boolean;
45
46
  key: keyof OrganizationDetails | 'attributes';
46
47
  label: string;
47
- editable?: boolean;
48
- render?: (value: any, organization: OrganizationDetails) => React.ReactNode;
48
+ render?: (value: any, organization: OrganizationDetails) => ReactNode;
49
49
  }>;
50
50
  /**
51
51
  * Display mode for the component.
@@ -22,31 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- card: string;
28
- header: string;
29
- orgInfo: string;
30
- name: string;
31
- handle: string;
32
- infoContainer: string;
33
- field: string;
34
- fieldLast: string;
35
- fieldContent: string;
36
- fieldActions: string;
37
- label: string;
38
- value: string;
39
- valueEmpty: string;
40
- statusBadge: string;
41
- permissionsList: string;
42
- permissionBadge: string;
43
- attributesList: string;
44
- attributeItem: string;
45
- attributeKey: string;
46
- attributeValue: string;
47
- popup: string;
48
- editButton: string;
49
- placeholderButton: string;
50
- fieldInput: string;
51
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
52
26
  export default useStyles;
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FC, ReactElement, ReactNode } from 'react';
18
+ import { CSSProperties, FC, ReactElement, ReactNode } from 'react';
19
19
  interface MenuItem {
20
20
  href?: string;
21
21
  icon?: ReactNode;
@@ -87,14 +87,14 @@ export interface BaseOrganizationSwitcherProps {
87
87
  * Additional menu items to display at the bottom of the dropdown.
88
88
  */
89
89
  menuItems?: MenuItem[];
90
- /**
91
- * Handler for when an organization is selected.
92
- */
93
- onOrganizationSwitch: (organization: Organization) => void;
94
90
  /**
95
91
  * Handler for when the manage profile button is clicked.
96
92
  */
97
93
  onManageProfile?: () => void;
94
+ /**
95
+ * Handler for when an organization is selected.
96
+ */
97
+ onOrganizationSwitch: (organization: Organization) => void;
98
98
  /**
99
99
  * List of available organizations.
100
100
  */
@@ -130,7 +130,7 @@ export interface BaseOrganizationSwitcherProps {
130
130
  /**
131
131
  * Custom styles for the component.
132
132
  */
133
- style?: React.CSSProperties;
133
+ style?: CSSProperties;
134
134
  }
135
135
  /**
136
136
  * BaseOrganizationSwitcher component displays an organization selector with a dropdown menu.
@@ -22,29 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- trigger: string;
28
- triggerLabel: string;
29
- content: string;
30
- header: string;
31
- headerInfo: string;
32
- headerName: string;
33
- headerMeta: string;
34
- headerRole: string;
35
- manageButton: string;
36
- menu: string;
37
- menuItem: string;
38
- menuDivider: string;
39
- organizationInfo: string;
40
- organizationName: string;
41
- organizationMeta: string;
42
- loadingContainer: string;
43
- loadingText: string;
44
- errorContainer: string;
45
- errorText: string;
46
- sectionHeader: string;
47
- sectionHeaderContainer: string;
48
- roleCapitalized: string;
49
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
50
26
  export default useStyles;
@@ -21,10 +21,6 @@ import { FC, ReactNode } from 'react';
21
21
  * Props for the BaseUser component.
22
22
  */
23
23
  export interface BaseUserProps {
24
- /**
25
- * The user object to display. If not provided, the component will render the fallback.
26
- */
27
- user: IUser | null;
28
24
  /**
29
25
  * Render prop that takes the user object and returns a ReactNode.
30
26
  * @param user - The authenticated user object from Asgardeo.
@@ -35,6 +31,10 @@ export interface BaseUserProps {
35
31
  * Optional element to render when no user is provided.
36
32
  */
37
33
  fallback?: ReactNode;
34
+ /**
35
+ * The user object to display. If not provided, the component will render the fallback.
36
+ */
37
+ user: IUser | null;
38
38
  }
39
39
  /**
40
40
  * Base User component that provides the core functionality for displaying user information.
@@ -22,19 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- trigger: string;
27
- userName: string;
28
- dropdownContent: string;
29
- dropdownMenu: string;
30
- menuItem: string;
31
- menuItemAnchor: string;
32
- divider: string;
33
- dropdownHeader: string;
34
- headerInfo: string;
35
- headerName: string;
36
- headerEmail: string;
37
- loadingContainer: string;
38
- loadingText: string;
39
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
40
26
  export default useStyles;
@@ -46,10 +46,13 @@ export interface BaseUserProfileProps {
46
46
  };
47
47
  cardLayout?: boolean;
48
48
  className?: string;
49
+ displayNameAttributes?: string[];
49
50
  editable?: boolean;
51
+ error?: string | null;
50
52
  fallback?: ReactElement;
51
53
  flattenedProfile?: User;
52
54
  hideFields?: string[];
55
+ isLoading?: boolean;
53
56
  mode?: 'inline' | 'popup';
54
57
  onOpenChange?: (open: boolean) => void;
55
58
  onUpdate?: (payload: any) => Promise<void>;
@@ -58,9 +61,6 @@ export interface BaseUserProfileProps {
58
61
  schemas?: Schema[];
59
62
  showFields?: string[];
60
63
  title?: string;
61
- error?: string | null;
62
- isLoading?: boolean;
63
- displayNameAttributes?: string[];
64
64
  }
65
65
  declare const BaseUserProfile: FC<BaseUserProfileProps>;
66
66
  export default BaseUserProfile;
@@ -22,30 +22,5 @@ import { Theme } from '@asgardeo/browser';
22
22
  * @param colorScheme - The current color scheme (used for memoization)
23
23
  * @returns Object containing CSS class names for component styling
24
24
  */
25
- declare const useStyles: (theme: Theme, colorScheme: string) => {
26
- root: string;
27
- alert: string;
28
- card: string;
29
- header: string;
30
- profileInfo: string;
31
- profileSummary: string;
32
- name: string;
33
- infoContainer: string;
34
- info: string;
35
- field: string;
36
- lastField: string;
37
- label: string;
38
- value: string;
39
- popup: string;
40
- valuePlaceholder: string;
41
- editButton: string;
42
- fieldInner: string;
43
- fieldActions: string;
44
- complexTextarea: string;
45
- objectKey: string;
46
- objectValue: string;
47
- sectionRow: string;
48
- sectionLabel: string;
49
- sectionValue: string;
50
- };
25
+ declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
51
26
  export default useStyles;
@@ -18,4 +18,4 @@
18
18
  export { default as AcceptInvite } from './v2/AcceptInvite';
19
19
  export type { AcceptInviteProps, AcceptInviteRenderProps } from './v2/AcceptInvite';
20
20
  export { default as BaseAcceptInvite } from './v2/BaseAcceptInvite';
21
- export type { BaseAcceptInviteProps, BaseAcceptInviteRenderProps, AcceptInviteFlowResponse, } from './v2/BaseAcceptInvite';
21
+ export type { BaseAcceptInviteProps, BaseAcceptInviteRenderProps, AcceptInviteFlowResponse } from './v2/BaseAcceptInvite';
@@ -30,6 +30,15 @@ export interface AcceptInviteProps {
30
30
  * If not provided, will try to read from window location.
31
31
  */
32
32
  baseUrl?: string;
33
+ /**
34
+ * Render props function for custom UI.
35
+ * If not provided, default UI will be rendered by the SDK.
36
+ */
37
+ children?: (props: AcceptInviteRenderProps) => ReactNode;
38
+ /**
39
+ * Custom CSS class name.
40
+ */
41
+ className?: string;
33
42
  /**
34
43
  * Flow ID from the invite link.
35
44
  * If not provided, will be extracted from URL query parameters.
@@ -57,14 +66,13 @@ export interface AcceptInviteProps {
57
66
  */
58
67
  onGoToSignIn?: () => void;
59
68
  /**
60
- * Custom CSS class name.
69
+ * Whether to show the subtitle.
61
70
  */
62
- className?: string;
71
+ showSubtitle?: boolean;
63
72
  /**
64
- * Render props function for custom UI.
65
- * If not provided, default UI will be rendered by the SDK.
73
+ * Whether to show the title.
66
74
  */
67
- children?: (props: AcceptInviteRenderProps) => ReactNode;
75
+ showTitle?: boolean;
68
76
  /**
69
77
  * Size variant for the component.
70
78
  */
@@ -73,14 +81,6 @@ export interface AcceptInviteProps {
73
81
  * Theme variant for the component card.
74
82
  */
75
83
  variant?: 'outlined' | 'elevated';
76
- /**
77
- * Whether to show the title.
78
- */
79
- showTitle?: boolean;
80
- /**
81
- * Whether to show the subtitle.
82
- */
83
- showSubtitle?: boolean;
84
84
  }
85
85
  /**
86
86
  * AcceptInvite component for end-users to accept an invite and set their password.