@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,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
|
+
/**
|
|
20
|
+
* Creates styles for the Checkbox 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 hasError - Whether the checkbox has an error state
|
|
24
|
+
* @param required - Whether the checkbox is required
|
|
25
|
+
* @returns Object containing CSS class names for component styling
|
|
26
|
+
*/
|
|
27
|
+
declare const useStyles: (theme: Theme, colorScheme: string, hasError: boolean, required: boolean) => {
|
|
28
|
+
container: string;
|
|
29
|
+
input: string;
|
|
30
|
+
errorInput: string;
|
|
31
|
+
label: string;
|
|
32
|
+
errorLabel: string;
|
|
33
|
+
required: string;
|
|
34
|
+
};
|
|
35
|
+
export default useStyles;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 DatePicker 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 hasError - Whether the date picker has an error state
|
|
24
|
+
* @param disabled - Whether the date picker is disabled
|
|
25
|
+
* @returns Object containing CSS class names for component styling
|
|
26
|
+
*/
|
|
27
|
+
declare const useStyles: (theme: Theme, colorScheme: string, hasError: boolean, disabled: boolean) => {
|
|
28
|
+
input: string;
|
|
29
|
+
errorInput: string;
|
|
30
|
+
disabledInput: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
export default useStyles;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { UseFloatingReturn, UseInteractionsReturn } from '@floating-ui/react';
|
|
19
|
+
import React from 'react';
|
|
20
|
+
interface DialogOptions {
|
|
21
|
+
initialOpen?: boolean;
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
open?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface DialogHookReturn extends UseFloatingReturn, UseInteractionsReturn {
|
|
26
|
+
descriptionId: string | undefined;
|
|
27
|
+
labelId: string | undefined;
|
|
28
|
+
open: boolean;
|
|
29
|
+
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
30
|
+
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
31
|
+
setOpen: (open: boolean) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function useDialog({ initialOpen, open: controlledOpen, onOpenChange: setControlledOpen, }?: DialogOptions): DialogHookReturn;
|
|
34
|
+
export declare const useDialogContext: () => DialogHookReturn;
|
|
35
|
+
export declare function Dialog({ children, ...options }: {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
} & DialogOptions): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
interface DialogTriggerProps {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & DialogTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
43
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
export declare const DialogHeading: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
45
|
+
export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
46
|
+
interface DialogCloseProps {
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
export declare const DialogClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
export interface DialogComponent extends React.FC<{
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
} & DialogOptions> {
|
|
54
|
+
Trigger: typeof DialogTrigger;
|
|
55
|
+
Content: typeof DialogContent;
|
|
56
|
+
Heading: typeof DialogHeading;
|
|
57
|
+
Description: typeof DialogDescription;
|
|
58
|
+
Close: typeof DialogClose;
|
|
59
|
+
}
|
|
60
|
+
declare const _default: DialogComponent;
|
|
61
|
+
export default _default;
|
|
@@ -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
|
+
/**
|
|
20
|
+
* Creates styles for the Dialog 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
|
+
overlay: string;
|
|
27
|
+
content: string;
|
|
28
|
+
dropdownContent: string;
|
|
29
|
+
header: string;
|
|
30
|
+
headerTitle: string;
|
|
31
|
+
contentBody: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
export default useStyles;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 DividerOrientation = 'horizontal' | 'vertical';
|
|
20
|
+
export type DividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
21
|
+
/**
|
|
22
|
+
* Creates styles for the Divider component using BEM methodology
|
|
23
|
+
* @param theme - The theme object containing design tokens
|
|
24
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
25
|
+
* @param orientation - The divider orientation
|
|
26
|
+
* @param variant - The divider variant
|
|
27
|
+
* @param color - Custom color for the divider
|
|
28
|
+
* @param hasChildren - Whether the divider has children (text)
|
|
29
|
+
* @returns Object containing CSS class names for component styling
|
|
30
|
+
*/
|
|
31
|
+
declare const useStyles: (theme: Theme, colorScheme: string, orientation: DividerOrientation, variant: DividerVariant, color?: string, hasChildren?: boolean) => {
|
|
32
|
+
divider: string;
|
|
33
|
+
vertical: string;
|
|
34
|
+
horizontal: string;
|
|
35
|
+
line: string;
|
|
36
|
+
text: string;
|
|
37
|
+
};
|
|
38
|
+
export default useStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
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
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
19
|
+
export type FormControlHelperTextAlign = 'left' | 'center';
|
|
19
20
|
export interface FormControlProps {
|
|
20
21
|
/**
|
|
21
22
|
* The content to be wrapped by the form control
|
|
@@ -33,18 +34,18 @@ export interface FormControlProps {
|
|
|
33
34
|
* Additional CSS class names
|
|
34
35
|
*/
|
|
35
36
|
className?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Custom container style
|
|
38
|
-
*/
|
|
39
|
-
style?: CSSProperties;
|
|
40
37
|
/**
|
|
41
38
|
* Custom alignment for helper text (default: left, center for OTP)
|
|
42
39
|
*/
|
|
43
|
-
helperTextAlign?:
|
|
40
|
+
helperTextAlign?: FormControlHelperTextAlign;
|
|
44
41
|
/**
|
|
45
42
|
* Custom margin left for helper text (for components like Checkbox)
|
|
46
43
|
*/
|
|
47
44
|
helperTextMarginLeft?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Custom container style
|
|
47
|
+
*/
|
|
48
|
+
style?: CSSProperties;
|
|
48
49
|
}
|
|
49
50
|
declare const FormControl: FC<FormControlProps>;
|
|
50
51
|
export default FormControl;
|
|
@@ -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 FormControlHelperTextAlign = 'left' | 'center';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the FormControl 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 helperTextAlign - The alignment for helper text
|
|
25
|
+
* @param helperTextMarginLeft - Custom margin left for helper text
|
|
26
|
+
* @param hasError - Whether the form control has an error
|
|
27
|
+
* @returns Object containing CSS class names for component styling
|
|
28
|
+
*/
|
|
29
|
+
declare const useStyles: (theme: Theme, colorScheme: string, helperTextAlign: FormControlHelperTextAlign, helperTextMarginLeft?: string, hasError?: boolean) => {
|
|
30
|
+
formControl: string;
|
|
31
|
+
helperText: string;
|
|
32
|
+
helperTextError: string;
|
|
33
|
+
};
|
|
34
|
+
export default useStyles;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { CSSProperties, FC, LabelHTMLAttributes, ReactNode } from 'react';
|
|
19
|
+
export type InputLabelVariant = 'block' | 'inline';
|
|
19
20
|
export interface InputLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'style'> {
|
|
20
21
|
/**
|
|
21
22
|
* Label text or content
|
|
@@ -36,11 +37,15 @@ export interface InputLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelEleme
|
|
|
36
37
|
/**
|
|
37
38
|
* Display type for label positioning
|
|
38
39
|
*/
|
|
39
|
-
variant?:
|
|
40
|
+
variant?: InputLabelVariant;
|
|
40
41
|
/**
|
|
41
42
|
* Custom margin bottom (useful for different form layouts)
|
|
42
43
|
*/
|
|
43
44
|
marginBottom?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Additional CSS class names
|
|
47
|
+
*/
|
|
48
|
+
className?: string;
|
|
44
49
|
}
|
|
45
50
|
declare const InputLabel: FC<InputLabelProps>;
|
|
46
51
|
export default InputLabel;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
export type InputLabelVariant = 'block' | 'inline';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the InputLabel 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 display variant of the label
|
|
25
|
+
* @param error - Whether the label has an error state
|
|
26
|
+
* @param marginBottom - Custom margin bottom value
|
|
27
|
+
* @returns Object containing CSS class names for component styling
|
|
28
|
+
*/
|
|
29
|
+
declare const useStyles: (theme: Theme, colorScheme: string, variant: InputLabelVariant, error: boolean, marginBottom?: string) => {
|
|
30
|
+
label: string;
|
|
31
|
+
error: string;
|
|
32
|
+
requiredIndicator: string;
|
|
33
|
+
block: string;
|
|
34
|
+
inline: string;
|
|
35
|
+
};
|
|
36
|
+
export default useStyles;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 KeyValueInput 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 readOnly - Whether the component is read-only
|
|
25
|
+
* @param hasError - Whether the component has an error
|
|
26
|
+
* @returns Object containing CSS class names for component styling
|
|
27
|
+
*/
|
|
28
|
+
declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, readOnly: boolean, hasError: boolean) => {
|
|
29
|
+
container: string;
|
|
30
|
+
label: string;
|
|
31
|
+
requiredIndicator: string;
|
|
32
|
+
pairsList: string;
|
|
33
|
+
pairRow: string;
|
|
34
|
+
pairInput: string;
|
|
35
|
+
addRow: string;
|
|
36
|
+
removeButton: string;
|
|
37
|
+
addButton: string;
|
|
38
|
+
helperText: string;
|
|
39
|
+
emptyState: string;
|
|
40
|
+
readOnlyPair: string;
|
|
41
|
+
readOnlyKey: string;
|
|
42
|
+
readOnlyValue: string;
|
|
43
|
+
counterText: string;
|
|
44
|
+
};
|
|
45
|
+
export default useStyles;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { FC } from 'react';
|
|
19
|
+
export type LogoSize = 'small' | 'medium' | 'large';
|
|
19
20
|
/**
|
|
20
21
|
* Props for the Logo component.
|
|
21
22
|
*/
|
|
@@ -39,11 +40,7 @@ export interface LogoProps {
|
|
|
39
40
|
/**
|
|
40
41
|
* Size of the logo.
|
|
41
42
|
*/
|
|
42
|
-
size?:
|
|
43
|
-
/**
|
|
44
|
-
* Custom style object.
|
|
45
|
-
*/
|
|
46
|
-
style?: React.CSSProperties;
|
|
43
|
+
size?: LogoSize;
|
|
47
44
|
}
|
|
48
45
|
/**
|
|
49
46
|
* Logo component that displays the brand logo from theme or custom source.
|
|
@@ -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 LogoSize = 'small' | 'medium' | 'large';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the Logo 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 logo
|
|
25
|
+
* @returns Object containing CSS class names for component styling
|
|
26
|
+
*/
|
|
27
|
+
declare const useStyles: (theme: Theme, colorScheme: string, size: LogoSize) => {
|
|
28
|
+
logo: string;
|
|
29
|
+
size: string;
|
|
30
|
+
small: string;
|
|
31
|
+
medium: string;
|
|
32
|
+
large: string;
|
|
33
|
+
};
|
|
34
|
+
export default useStyles;
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
19
|
+
export type MultiInputType = 'text' | 'email' | 'tel' | 'url' | 'password' | 'date' | 'boolean';
|
|
20
|
+
export type MultiInputFieldType = 'STRING' | 'DATE_TIME' | 'BOOLEAN';
|
|
19
21
|
export interface MultiInputProps {
|
|
20
22
|
/**
|
|
21
23
|
* Label text to display above the inputs
|
|
@@ -53,18 +55,14 @@ export interface MultiInputProps {
|
|
|
53
55
|
* Callback when values change
|
|
54
56
|
*/
|
|
55
57
|
onChange: (values: string[]) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Custom style object
|
|
58
|
-
*/
|
|
59
|
-
style?: CSSProperties;
|
|
60
58
|
/**
|
|
61
59
|
* Input type
|
|
62
60
|
*/
|
|
63
|
-
type?:
|
|
61
|
+
type?: MultiInputType;
|
|
64
62
|
/**
|
|
65
63
|
* Field type for different input components
|
|
66
64
|
*/
|
|
67
|
-
fieldType?:
|
|
65
|
+
fieldType?: MultiInputFieldType;
|
|
68
66
|
/**
|
|
69
67
|
* Icon to display at the start (left) of each input
|
|
70
68
|
*/
|
|
@@ -81,6 +79,10 @@ export interface MultiInputProps {
|
|
|
81
79
|
* Maximum number of fields to allow (default: unlimited)
|
|
82
80
|
*/
|
|
83
81
|
maxFields?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Custom style object
|
|
84
|
+
*/
|
|
85
|
+
style?: CSSProperties;
|
|
84
86
|
}
|
|
85
87
|
declare const MultiInput: FC<MultiInputProps>;
|
|
86
88
|
export default MultiInput;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 MultiInputType = 'text' | 'email' | 'tel' | 'url' | 'password' | 'date' | 'boolean';
|
|
20
|
+
export type MultiInputFieldType = 'STRING' | 'DATE_TIME' | 'BOOLEAN';
|
|
21
|
+
/**
|
|
22
|
+
* Creates styles for the MultiInput component using BEM methodology
|
|
23
|
+
* @param theme - The theme object containing design tokens
|
|
24
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
25
|
+
* @param disabled - Whether the component is disabled
|
|
26
|
+
* @param hasError - Whether the component has an error
|
|
27
|
+
* @param canAddMore - Whether more items can be added
|
|
28
|
+
* @param canRemove - Whether items can be removed
|
|
29
|
+
* @returns Object containing CSS class names for component styling
|
|
30
|
+
*/
|
|
31
|
+
declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, hasError: boolean, canAddMore: boolean, canRemove: boolean) => {
|
|
32
|
+
container: string;
|
|
33
|
+
inputRow: string;
|
|
34
|
+
inputWrapper: string;
|
|
35
|
+
plusIcon: string;
|
|
36
|
+
listContainer: string;
|
|
37
|
+
listItem: string;
|
|
38
|
+
listItemText: string;
|
|
39
|
+
removeButton: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
};
|
|
42
|
+
export default useStyles;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import { FC, CSSProperties } from 'react';
|
|
19
|
+
export type OtpFieldType = 'text' | 'number' | 'password';
|
|
19
20
|
export interface OtpInputProps {
|
|
20
21
|
/**
|
|
21
22
|
* Label text to display above the OTP input
|
|
@@ -64,7 +65,7 @@ export interface OtpInputProps {
|
|
|
64
65
|
/**
|
|
65
66
|
* Type of input (text, number, password)
|
|
66
67
|
*/
|
|
67
|
-
type?:
|
|
68
|
+
type?: OtpFieldType;
|
|
68
69
|
/**
|
|
69
70
|
* Placeholder character for each input field
|
|
70
71
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export type OtpFieldType = 'text' | 'number' | 'password';
|
|
20
|
+
/**
|
|
21
|
+
* Creates styles for the OtpField 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 disabled - Whether the component is disabled
|
|
25
|
+
* @param hasError - Whether the component has an error
|
|
26
|
+
* @param length - Number of OTP input fields
|
|
27
|
+
* @returns Object containing CSS class names for component styling
|
|
28
|
+
*/
|
|
29
|
+
declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, hasError: boolean, length: number) => {
|
|
30
|
+
inputContainer: string;
|
|
31
|
+
input: string;
|
|
32
|
+
inputError: string;
|
|
33
|
+
inputDisabled: string;
|
|
34
|
+
};
|
|
35
|
+
export default useStyles;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 PasswordField 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 showPassword - Whether the password is currently visible
|
|
24
|
+
* @param disabled - Whether the component is disabled
|
|
25
|
+
* @param hasError - Whether the component has an error
|
|
26
|
+
* @returns Object containing CSS class names for component styling
|
|
27
|
+
*/
|
|
28
|
+
declare const useStyles: (theme: Theme, colorScheme: string, showPassword: boolean, disabled: boolean, hasError: boolean) => {
|
|
29
|
+
toggleIcon: string;
|
|
30
|
+
visibleIcon: string;
|
|
31
|
+
hiddenIcon: string;
|
|
32
|
+
};
|
|
33
|
+
export default useStyles;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 Select 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
|
+
* @returns Object containing CSS class names for component styling
|
|
26
|
+
*/
|
|
27
|
+
declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, hasError: boolean) => {
|
|
28
|
+
select: string;
|
|
29
|
+
selectError: string;
|
|
30
|
+
selectDisabled: string;
|
|
31
|
+
option: string;
|
|
32
|
+
};
|
|
33
|
+
export default useStyles;
|