@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
|
@@ -0,0 +1,34 @@
|
|
|
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 SpinnerSize = 'small' | 'medium' | 'large';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the Spinner 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 spinner
|
|
25
|
+
* @param color - The color of the spinner
|
|
26
|
+
* @returns Object containing CSS class names for component styling
|
|
27
|
+
*/
|
|
28
|
+
declare const useStyles: (theme: Theme, colorScheme: string, size: SpinnerSize, color?: string) => {
|
|
29
|
+
spinner: string;
|
|
30
|
+
spinnerSmall: string;
|
|
31
|
+
spinnerMedium: string;
|
|
32
|
+
spinnerLarge: string;
|
|
33
|
+
};
|
|
34
|
+
export default useStyles;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Theme } from '@asgardeo/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the TextField component using BEM methodology
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @param disabled - Whether the component is disabled
|
|
24
|
+
* @param hasError - Whether the component has an error
|
|
25
|
+
* @param hasStartIcon - Whether the component has a start icon
|
|
26
|
+
* @param hasEndIcon - Whether the component has an end icon
|
|
27
|
+
* @returns Object containing CSS class names for component styling
|
|
28
|
+
*/
|
|
29
|
+
declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, hasError: boolean, hasStartIcon: boolean, hasEndIcon: boolean) => {
|
|
30
|
+
inputContainer: string;
|
|
31
|
+
input: string;
|
|
32
|
+
inputError: string;
|
|
33
|
+
inputDisabled: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
startIcon: string;
|
|
36
|
+
endIcon: string;
|
|
37
|
+
};
|
|
38
|
+
export default useStyles;
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { CSSProperties, FC, ReactNode, ElementType } from 'react';
|
|
19
|
-
|
|
20
|
-
export type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
|
|
21
|
-
export type TypographyColor = 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | 'textPrimary' | 'textSecondary' | 'inherit';
|
|
19
|
+
import { TypographyVariant, TypographyAlign, TypographyColor } from './Typography.styles';
|
|
22
20
|
export interface TypographyProps {
|
|
23
21
|
/**
|
|
24
22
|
* The content to be rendered
|
|
@@ -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
|
+
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline' | 'button';
|
|
20
|
+
export type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
|
|
21
|
+
export type TypographyColor = 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | 'textPrimary' | 'textSecondary' | 'inherit';
|
|
22
|
+
/**
|
|
23
|
+
* Creates styles for the Typography 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 variant - The typography variant
|
|
27
|
+
* @param align - Text alignment
|
|
28
|
+
* @param color - Color variant
|
|
29
|
+
* @param noWrap - Whether text should be truncated with ellipsis
|
|
30
|
+
* @param inline - Whether text should be displayed inline
|
|
31
|
+
* @param gutterBottom - Whether to add bottom margin
|
|
32
|
+
* @param fontWeight - Custom font weight
|
|
33
|
+
* @param fontSize - Custom font size
|
|
34
|
+
* @param lineHeight - Custom line height
|
|
35
|
+
* @returns Object containing CSS class names for component styling
|
|
36
|
+
*/
|
|
37
|
+
declare const useStyles: (theme: Theme, colorScheme: string, variant: TypographyVariant, align: TypographyAlign, color: TypographyColor, noWrap: boolean, inline: boolean, gutterBottom: boolean, fontWeight?: "normal" | "medium" | "semibold" | "bold" | number, fontSize?: string | number, lineHeight?: string | number) => {
|
|
38
|
+
typography: string;
|
|
39
|
+
typographyNoWrap: string;
|
|
40
|
+
typographyInline: string;
|
|
41
|
+
typographyGutterBottom: string;
|
|
42
|
+
typographyH1: string;
|
|
43
|
+
typographyH2: string;
|
|
44
|
+
typographyH3: string;
|
|
45
|
+
typographyH4: string;
|
|
46
|
+
typographyH5: string;
|
|
47
|
+
typographyH6: string;
|
|
48
|
+
typographySubtitle1: string;
|
|
49
|
+
typographySubtitle2: string;
|
|
50
|
+
typographyBody1: string;
|
|
51
|
+
typographyBody2: string;
|
|
52
|
+
typographyCaption: string;
|
|
53
|
+
typographyOverline: string;
|
|
54
|
+
typographyButton: string;
|
|
55
|
+
};
|
|
56
|
+
export default useStyles;
|
package/dist/index.d.ts
CHANGED
|
@@ -77,12 +77,12 @@ export { default as BaseSignUpButton } from './components/actions/SignUpButton/B
|
|
|
77
77
|
export * from './components/actions/SignUpButton/BaseSignUpButton';
|
|
78
78
|
export { default as SignUpButton } from './components/actions/SignUpButton/SignUpButton';
|
|
79
79
|
export * from './components/actions/SignUpButton/SignUpButton';
|
|
80
|
-
export { default as SignedIn } from './components/control/SignedIn';
|
|
81
|
-
export * from './components/control/SignedIn';
|
|
82
|
-
export { default as SignedOut } from './components/control/SignedOut';
|
|
83
|
-
export * from './components/control/SignedOut';
|
|
84
|
-
export { default as
|
|
85
|
-
export * from './components/control/
|
|
80
|
+
export { default as SignedIn } from './components/control/SignedIn/SignedIn';
|
|
81
|
+
export * from './components/control/SignedIn/SignedIn';
|
|
82
|
+
export { default as SignedOut } from './components/control/SignedOut/SignedOut';
|
|
83
|
+
export * from './components/control/SignedOut/SignedOut';
|
|
84
|
+
export { default as Loading } from './components/control/Loading/Loading';
|
|
85
|
+
export * from './components/control/Loading/Loading';
|
|
86
86
|
export { default as BaseSignIn } from './components/presentation/SignIn/BaseSignIn';
|
|
87
87
|
export * from './components/presentation/SignIn/BaseSignIn';
|
|
88
88
|
export { default as SignIn } from './components/presentation/SignIn/SignIn';
|