@asgardeo/react 0.5.12 → 0.5.14
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.
- package/dist/cjs/index.js +4602 -3394
- package/dist/cjs/index.js.map +4 -4
- package/dist/components/control/{AsgardeoLoading.d.ts → Loading/Loading.d.ts} +6 -6
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +43 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +56 -0
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +31 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +52 -0
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +50 -0
- package/dist/components/presentation/SignIn/BaseSignIn.styles.d.ts +52 -0
- package/dist/components/presentation/SignUp/BaseSignUp.styles.d.ts +52 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +40 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +1 -4
- package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +47 -0
- package/dist/components/primitives/Alert/Alert.d.ts +1 -0
- package/dist/components/primitives/Alert/Alert.styles.d.ts +35 -0
- package/dist/components/primitives/Avatar/Avatar.styles.d.ts +35 -0
- package/dist/components/primitives/Button/Button.d.ts +5 -1
- package/dist/components/primitives/Button/Button.styles.d.ts +47 -0
- package/dist/components/primitives/Card/Card.styles.d.ts +39 -0
- package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +35 -0
- package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +33 -0
- package/dist/components/primitives/Dialog/Dialog.d.ts +61 -0
- package/dist/components/primitives/Dialog/Dialog.styles.d.ts +34 -0
- package/dist/components/primitives/Divider/Divider.styles.d.ts +38 -0
- package/dist/components/primitives/FormControl/FormControl.d.ts +7 -6
- package/dist/components/primitives/FormControl/FormControl.styles.d.ts +34 -0
- package/dist/components/primitives/InputLabel/InputLabel.d.ts +6 -1
- package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +36 -0
- package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +45 -0
- package/dist/components/primitives/Logo/Logo.d.ts +2 -5
- package/dist/components/primitives/Logo/Logo.styles.d.ts +34 -0
- package/dist/components/primitives/MultiInput/MultiInput.d.ts +8 -6
- package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +42 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts +3 -2
- package/dist/components/primitives/OtpField/OtpField.styles.d.ts +35 -0
- package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +33 -0
- package/dist/components/primitives/Select/Select.styles.d.ts +33 -0
- package/dist/components/primitives/Spinner/Spinner.styles.d.ts +34 -0
- package/dist/components/primitives/TextField/TextField.styles.d.ts +38 -0
- package/dist/components/primitives/Typography/Typography.d.ts +1 -3
- package/dist/components/primitives/Typography/Typography.styles.d.ts +56 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4502 -3300
- package/dist/index.js.map +4 -4
- package/package.json +4 -4
- package/dist/components/primitives/KeyValueInput/index.d.ts +0 -0
- package/dist/components/primitives/Popover/Popover.d.ts +0 -96
- /package/dist/components/control/{SignedIn.d.ts → SignedIn/SignedIn.d.ts} +0 -0
- /package/dist/components/control/{SignedOut.d.ts → SignedOut/SignedOut.d.ts} +0 -0
|
@@ -19,7 +19,7 @@ import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
|
19
19
|
/**
|
|
20
20
|
* Props for the Loading component.
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface LoadingProps {
|
|
23
23
|
/**
|
|
24
24
|
* Content to show when the user is not signed in.
|
|
25
25
|
*/
|
|
@@ -32,16 +32,16 @@ export interface AsgardeoLoadingProps {
|
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```tsx
|
|
35
|
-
* import {
|
|
35
|
+
* import { Loading } from '@asgardeo/auth-react';
|
|
36
36
|
*
|
|
37
37
|
* const App = () => {
|
|
38
38
|
* return (
|
|
39
|
-
* <
|
|
39
|
+
* <Loading fallback={<p>Finished Loading...</p>}>
|
|
40
40
|
* <p>Loading...</p>
|
|
41
|
-
* </
|
|
41
|
+
* </Loading>
|
|
42
42
|
* );
|
|
43
43
|
* }
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
declare const
|
|
47
|
-
export default
|
|
46
|
+
declare const Loading: FC<PropsWithChildren<LoadingProps>>;
|
|
47
|
+
export default Loading;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseCreateOrganization component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
};
|
|
43
|
+
export default useStyles;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseOrganizationList component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
};
|
|
56
|
+
export default useStyles;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the OrganizationList component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
24
|
+
*/
|
|
25
|
+
declare const useStyles: (theme: Theme, colorScheme: string) => {
|
|
26
|
+
root: string;
|
|
27
|
+
container: string;
|
|
28
|
+
errorState: string;
|
|
29
|
+
loadingOverlay: string;
|
|
30
|
+
};
|
|
31
|
+
export default useStyles;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseOrganizationProfile component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
};
|
|
52
|
+
export default useStyles;
|
package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseOrganizationSwitcher component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
};
|
|
50
|
+
export default useStyles;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseSignIn component
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
24
|
+
*/
|
|
25
|
+
declare const useStyles: (theme: Theme, colorScheme: string) => {
|
|
26
|
+
signIn: string;
|
|
27
|
+
card: string;
|
|
28
|
+
logoContainer: string;
|
|
29
|
+
header: string;
|
|
30
|
+
title: string;
|
|
31
|
+
subtitle: string;
|
|
32
|
+
messagesContainer: string;
|
|
33
|
+
messageItem: string;
|
|
34
|
+
errorContainer: string;
|
|
35
|
+
contentContainer: string;
|
|
36
|
+
loadingContainer: string;
|
|
37
|
+
loadingText: string;
|
|
38
|
+
divider: string;
|
|
39
|
+
centeredContainer: string;
|
|
40
|
+
passkeyContainer: string;
|
|
41
|
+
passkeyText: string;
|
|
42
|
+
form: string;
|
|
43
|
+
formDivider: string;
|
|
44
|
+
authenticatorSection: string;
|
|
45
|
+
authenticatorItem: string;
|
|
46
|
+
noAuthenticatorCard: string;
|
|
47
|
+
errorAlert: string;
|
|
48
|
+
messagesAlert: string;
|
|
49
|
+
flowMessagesContainer: string;
|
|
50
|
+
flowMessageItem: string;
|
|
51
|
+
};
|
|
52
|
+
export default useStyles;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseSignUp component
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
24
|
+
*/
|
|
25
|
+
declare const useStyles: (theme: Theme, colorScheme: string) => {
|
|
26
|
+
signUp: string;
|
|
27
|
+
card: string;
|
|
28
|
+
logoContainer: string;
|
|
29
|
+
header: string;
|
|
30
|
+
title: string;
|
|
31
|
+
subtitle: string;
|
|
32
|
+
messagesContainer: string;
|
|
33
|
+
messageItem: string;
|
|
34
|
+
errorContainer: string;
|
|
35
|
+
contentContainer: string;
|
|
36
|
+
loadingContainer: string;
|
|
37
|
+
loadingText: string;
|
|
38
|
+
divider: string;
|
|
39
|
+
centeredContainer: string;
|
|
40
|
+
passkeyContainer: string;
|
|
41
|
+
passkeyText: string;
|
|
42
|
+
form: string;
|
|
43
|
+
formDivider: string;
|
|
44
|
+
authenticatorSection: string;
|
|
45
|
+
authenticatorItem: string;
|
|
46
|
+
noAuthenticatorCard: string;
|
|
47
|
+
errorAlert: string;
|
|
48
|
+
messagesAlert: string;
|
|
49
|
+
flowMessagesContainer: string;
|
|
50
|
+
flowMessageItem: string;
|
|
51
|
+
};
|
|
52
|
+
export default useStyles;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseUserDropdown component
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
};
|
|
40
|
+
export default useStyles;
|
|
@@ -44,22 +44,19 @@ export interface BaseUserProfileProps {
|
|
|
44
44
|
picture?: string | string[];
|
|
45
45
|
username?: string | string[];
|
|
46
46
|
};
|
|
47
|
-
cancelButtonText?: string;
|
|
48
47
|
cardLayout?: boolean;
|
|
49
48
|
className?: string;
|
|
50
49
|
editable?: boolean;
|
|
51
50
|
fallback?: ReactElement;
|
|
52
51
|
flattenedProfile?: User;
|
|
53
52
|
mode?: 'inline' | 'popup';
|
|
54
|
-
onChange?: (field: string, value: any) => void;
|
|
55
53
|
onOpenChange?: (open: boolean) => void;
|
|
56
|
-
onSubmit?: (data: any) => void;
|
|
57
54
|
onUpdate?: (payload: any) => Promise<void>;
|
|
58
55
|
open?: boolean;
|
|
59
56
|
profile?: User;
|
|
60
|
-
saveButtonText?: string;
|
|
61
57
|
schemas?: Schema[];
|
|
62
58
|
title?: string;
|
|
59
|
+
error?: string | null;
|
|
63
60
|
}
|
|
64
61
|
declare const BaseUserProfile: FC<BaseUserProfileProps>;
|
|
65
62
|
export default BaseUserProfile;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseUserProfile component
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
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
|
+
name: string;
|
|
32
|
+
infoContainer: string;
|
|
33
|
+
info: string;
|
|
34
|
+
field: string;
|
|
35
|
+
lastField: string;
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
popup: string;
|
|
39
|
+
valuePlaceholder: string;
|
|
40
|
+
editButton: string;
|
|
41
|
+
fieldInner: string;
|
|
42
|
+
fieldActions: string;
|
|
43
|
+
complexTextarea: string;
|
|
44
|
+
objectKey: string;
|
|
45
|
+
objectValue: string;
|
|
46
|
+
};
|
|
47
|
+
export default useStyles;
|
|
@@ -43,6 +43,7 @@ export interface AlertDescriptionProps extends HTMLAttributes<HTMLParagraphEleme
|
|
|
43
43
|
*/
|
|
44
44
|
children?: ReactNode;
|
|
45
45
|
}
|
|
46
|
+
export declare const useAlertVariant: () => AlertVariant;
|
|
46
47
|
/**
|
|
47
48
|
* Alert component that displays important information with different severity levels.
|
|
48
49
|
*
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
export type AlertVariant = 'success' | 'error' | 'warning' | 'info';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the Alert component using BEM methodology
|
|
22
|
+
* @param theme - The theme object containing design tokens
|
|
23
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
24
|
+
* @param variant - The alert variant
|
|
25
|
+
* @returns Object containing CSS class names for component styling
|
|
26
|
+
*/
|
|
27
|
+
declare const useStyles: (theme: Theme, colorScheme: string, variant: AlertVariant) => {
|
|
28
|
+
alert: string;
|
|
29
|
+
variant: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
content: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
export default useStyles;
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
export type AvatarVariant = 'circular' | 'square';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the Avatar component using BEM methodology
|
|
22
|
+
* @param theme - The theme object containing design tokens
|
|
23
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
24
|
+
* @param size - The size of the avatar in pixels
|
|
25
|
+
* @param variant - The avatar variant
|
|
26
|
+
* @param backgroundColor - The background color for the avatar
|
|
27
|
+
* @returns Object containing CSS class names for component styling
|
|
28
|
+
*/
|
|
29
|
+
declare const useStyles: (theme: Theme, colorScheme: string, size: number, variant: AvatarVariant, backgroundColor?: string) => {
|
|
30
|
+
avatar: string;
|
|
31
|
+
variant: string;
|
|
32
|
+
image: string;
|
|
33
|
+
skeleton: string;
|
|
34
|
+
};
|
|
35
|
+
export default useStyles;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { ButtonHTMLAttributes } from 'react';
|
|
19
19
|
export type ButtonColor = 'primary' | 'secondary' | 'tertiary' | string;
|
|
20
|
-
export type ButtonVariant = 'solid' | 'outline' | 'text';
|
|
20
|
+
export type ButtonVariant = 'solid' | 'outline' | 'text' | 'icon';
|
|
21
21
|
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
22
22
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
23
23
|
/**
|
|
@@ -48,6 +48,10 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
48
48
|
* Icon to display after the button text
|
|
49
49
|
*/
|
|
50
50
|
endIcon?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* The shape of the button: square or round
|
|
53
|
+
*/
|
|
54
|
+
shape?: 'square' | 'round';
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
57
|
* Button component with multiple variants and types.
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
export type ButtonColor = 'primary' | 'secondary' | 'tertiary' | string;
|
|
20
|
+
export type ButtonVariant = 'solid' | 'outline' | 'text' | 'icon';
|
|
21
|
+
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
22
|
+
/**
|
|
23
|
+
* Creates styles for the Button component using BEM methodology
|
|
24
|
+
* @param theme - The theme object containing design tokens
|
|
25
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
26
|
+
* @param color - The button color
|
|
27
|
+
* @param variant - The button variant
|
|
28
|
+
* @param size - The button size
|
|
29
|
+
* @param fullWidth - Whether the button should take full width
|
|
30
|
+
* @param disabled - Whether the button is disabled
|
|
31
|
+
* @param loading - Whether the button is in loading state
|
|
32
|
+
* @returns Object containing CSS class names for component styling
|
|
33
|
+
*/
|
|
34
|
+
declare const useStyles: (theme: Theme, colorScheme: string, color: ButtonColor, variant: ButtonVariant, size: ButtonSize, fullWidth: boolean, disabled: boolean, loading: boolean, shape?: "square" | "round") => {
|
|
35
|
+
button: string;
|
|
36
|
+
size: string;
|
|
37
|
+
variant: string;
|
|
38
|
+
fullWidth: string;
|
|
39
|
+
loading: string;
|
|
40
|
+
shape: string;
|
|
41
|
+
spinner: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
startIcon: string;
|
|
44
|
+
endIcon: string;
|
|
45
|
+
content: string;
|
|
46
|
+
};
|
|
47
|
+
export default useStyles;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
export type CardVariant = 'default' | 'outlined' | 'elevated';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the Card component using BEM methodology
|
|
22
|
+
* @param theme - The theme object containing design tokens
|
|
23
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
24
|
+
* @param variant - The card variant
|
|
25
|
+
* @param clickable - Whether the card is clickable
|
|
26
|
+
* @returns Object containing CSS class names for component styling
|
|
27
|
+
*/
|
|
28
|
+
declare const useStyles: (theme: Theme, colorScheme: string, variant: CardVariant, clickable: boolean) => {
|
|
29
|
+
card: string;
|
|
30
|
+
variant: string;
|
|
31
|
+
clickable: string;
|
|
32
|
+
header: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
action: string;
|
|
36
|
+
content: string;
|
|
37
|
+
footer: string;
|
|
38
|
+
};
|
|
39
|
+
export default useStyles;
|